/* ==========================================================
   RAFFLE TASKS, REWARDS, COMMUNITY UNLOCKS AND WORLD FIRSTS
   Routine editing should happen in the HTML, not this file.
   ========================================================== */

.raffle-board-panel {
	padding: 10px 0 6px;
	border: 1px solid #3b2f1f;
	border-top: 0;
	background: rgba(240, 215, 183, .18);
}

.raffle-board-panel .table-scroll {
	width: calc(100% - 20px);
	max-width: calc(100% - 20px);
	margin: 0 10px;
	overflow-x: visible;
}

.raffle-task-table,
#newspost-content .raffle-task-table {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	table-layout: fixed;
}

.raffle-task-table th,
.raffle-task-table td {
	overflow-wrap: anywhere;
	word-break: normal;
}

.raffle-task-table .raffle-col-done {
	width: 9%;
	padding-right: 3px;
	padding-left: 3px;
	text-align: center;
	white-space: nowrap;
	overflow-wrap: normal;
	word-break: keep-all;
}

.raffle-task-table .raffle-col-task { text-align: left; }

/* Live-site table rules must not override task alignment or hidden rows. */
#newspost-content .raffle-task-table th,
#newspost-content .raffle-task-table td,
.news-article-content .raffle-task-table th,
.news-article-content .raffle-task-table td {
	vertical-align: middle !important;
	float: none !important;
}
#newspost-content .raffle-task-table .raffle-col-task,
.news-article-content .raffle-task-table .raffle-col-task,
#newspost-content .raffle-task-table .raffle-col-task b,
.news-article-content .raffle-task-table .raffle-col-task b { text-align: left !important; }
.raffle-task-table .raffle-col-task .raffle-sort-button { flex-direction: row; justify-content: flex-start; text-align: left; }
.raffle-task-table .raffle-pin-button,
.raffle-task-table .raffle-entry { vertical-align: middle; }
#newspost-content .raffle-task-table tr.raffle-task-row[hidden],
.news-article-content .raffle-task-table tr.raffle-task-row[hidden] { display: none !important; }
.raffle-world-first-group-label { margin: 10px 0 5px; font: bold 13px Arial, Helvetica, sans-serif; color: #332716; }
.raffle-task-table .raffle-col-board { width: 15%; text-align: center; }
.raffle-task-table .raffle-col-completions { width: 24%; text-align: center; }
.raffle-task-table .raffle-col-entries { width: 15%; text-align: center; }

.raffle-task-row[hidden] {
	display: none !important;
}

.raffle-entry {
	display: inline-block;
	padding: 4px 6px;
	border: 2px solid #382418;
	background: #0b0b0b;
	box-shadow: inset 0 0 0 1px #000, 0 1px 0 rgba(255, 255, 255, .12);
	color: #90c040;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: normal;
	line-height: 1;
	white-space: nowrap;
}

.raffle-entry--bonus {
	background: #6b5631;
	color: #fff;
}

.raffle-task-checkbox,
.raffle-filter-option input {
	appearance: none;
	-webkit-appearance: none;
	display: inline-block;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent url("https://cdn.runescape.com/assets/img/external/oldschool/newsposts/icons/Icon-False.png") center / contain no-repeat;
	cursor: pointer;
	vertical-align: middle;
}

.raffle-task-checkbox:checked,
.raffle-filter-option input:checked {
	background-image: url("https://cdn.runescape.com/assets/img/external/oldschool/newsposts/icons/Icon-True.png");
}

.raffle-task-checkbox:focus-visible,
.raffle-filter-option input:focus-visible {
	outline: 1px dotted #382418;
	outline-offset: 2px;
}

.raffle-task-table tr.is-user-complete > td {
	background-color: rgba(73, 116, 48, .12) !important;
}

.raffle-task-table tr.is-user-complete .raffle-col-task b {
	text-decoration: line-through;
	text-decoration-thickness: 1px;
	opacity: .72;
}

/* ---------- Task controls ---------- */
.raffle-task-navigation { padding: 6px 4px; }
.raffle-task-navigation .osrsTabNavigation__track {
	flex-wrap: wrap;
	gap: 3px;
	overflow: visible;
	scroll-behavior: auto;
}
.raffle-task-navigation .osrsTabButton { padding: 7px 6px; transition: none; }
.raffle-task-navigation .osrsTabScrollButton { display: none !important; }

.raffle-board-panel .raffle-task-row[hidden],
.raffle-prize-gallery .raffle-gallery-card[hidden],
.raffle-pager[hidden],
.raffle-pager [hidden] { display: none !important; }

.raffle-pager {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: 12px 10px 16px;
	font: 13px Arial, Helvetica, sans-serif;
	text-shadow: none;
}
.raffle-pager button {
	border: 1px solid #211a11;
	border-radius: 0;
	padding: 7px 10px;
	background: #0b0b0b;
	color: #90c040;
	font: inherit;
	line-height: 1.2;
	text-shadow: none;
	box-shadow: none;
	cursor: pointer;
	transition: none;
}
.raffle-pager button:disabled { opacity: .45; cursor: default; }
.raffle-pager button:focus-visible { outline: 1px solid #382418; outline-offset: 2px; }
.raffle-pager-count { flex-basis: 100%; text-align: center; color: #332716; }
.raffle-page-label { min-width: 85px; text-align: center; }
.raffle-pager .raffle-pager-all { margin-left: 8px; }

.raffle-task-toolbar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
	margin: 8px 0 0;
}

.raffle-task-action,
.raffle-task-navigation .raffle-task-action {
	flex: 0 0 auto;
	width: auto;
	align-self: center;
	white-space: nowrap;
	padding: 7px 9px;
	border: 2px solid #382418;
	background: #0b0b0b;
	box-shadow: inset 0 0 0 1px #000, 0 1px 0 rgba(255, 255, 255, .12);
	color: #90c040;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
}

.raffle-task-action:hover,
.raffle-task-action:focus-visible {
	color: #a8dc54;
	text-decoration: underline;
}

.raffle-task-action[aria-pressed="true"] {
	background: #646464;
	color: #fff;
}

/* ---------- Moveable completion panel ---------- */
.raffle-progress-panel {
	margin: 0 0 12px;
	padding: 11px;
	border: 1px solid #3b2f1f;
	background: rgba(240, 215, 183, .28);
	box-sizing: border-box;
}

.raffle-progress-overall {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
}

.raffle-progress-overall > div {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 8px 10px;
	border: 2px solid #382418;
	background: #0b0b0b;
	box-shadow: inset 0 0 0 1px #000, 0 1px 0 rgba(255, 255, 255, .12);
	color: #90c040;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	line-height: 1.25;
	text-align: center;
}

.raffle-progress-overall strong {
	font-size: 17px;
}

.raffle-progress-label {
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: .35px;
}

.raffle-all-breakdown {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
	margin-top: 8px;
}

.raffle-board-progress-chip {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 6px 7px;
	border: 1px solid #3b2f1f;
	background: rgba(255, 255, 255, .14);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	line-height: 1.25;
	text-align: center;
}

.raffle-board-progress-chip strong { font-size: 12px; }

/* ---------- All tab: search + board filters ---------- */
.raffle-board-panel > .raffle-tag-filter { margin: 0 10px 10px; }
.raffle-tag-select {
	min-width: 0;
	padding: 6px 8px;
	border: 1px solid #3b2f1f;
	background: #0b0b0b;
	color: #90c040;
	font: inherit;
	outline: none;
	box-shadow: none;
}

#newspost-content .raffle-tag-select:focus,
#newspost-content .raffle-task-search:focus {
	outline: none !important;
	box-shadow: none !important;
	border-color: #3b2f1f;
}
#newspost-content .raffle-tag-select:focus-visible,
#newspost-content .raffle-task-search:focus-visible {
	outline: 1px dotted #382418 !important;
	outline-offset: 2px;
}
.raffle-all-tools input,
.raffle-all-tools select,
.raffle-pin-icon {
	transition: none !important;
	animation: none !important;
}
#newspost-content .raffle-pin-button:hover,
#newspost-content .raffle-pin-button:active {
	transform: none !important;
	filter: none !important;
	box-shadow: none !important;
}
.raffle-pin-button {
	display: inline-grid;
	place-items: center;
	width: 26px;
	height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #382418;
	cursor: pointer;
	transition: none !important;
	animation: none !important;
	transform: none !important;
	box-shadow: none;
}
.raffle-pin-icon { display: inline-block; width: 16px; height: 20px; vertical-align: middle; }
.raffle-pin-button .raffle-pin-icon { opacity: .55; }
.raffle-pin-button[aria-pressed="true"] .raffle-pin-icon { opacity: 1; }
.raffle-pin-button:disabled { cursor: default; }
.raffle-task-table .raffle-col-pin { width: 32px; padding: 3px 1px; text-align: center; }
.raffle-breakdown-toggle { margin-top: 8px; }
#newspost-content .raffle-breakdown-toggle > summary {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	font-weight: normal;
	cursor: pointer;
	text-align: center;
}
.raffle-pin-button:focus-visible { outline: 1px dotted #382418; outline-offset: 2px; }
.raffle-pinned-panel {
	margin-bottom: 12px;
	padding: 10px;
	border: 1px solid #3b2f1f;
	background: rgba(240, 215, 183, .28);
}
.raffle-pinned-heading { display: flex; justify-content: space-between; font-family: Arial, Helvetica, sans-serif; font-size: 15px; font-weight: bold; }
#newspost-content .raffle-pin-message { margin: 8px 0; font-size: 12px; }
.raffle-pin-message:empty { display: none; }
#newspost-content .raffle-pinned-table { margin: 8px 0 0; }

.raffle-all-tools {
	display: grid;
	gap: 7px;
	margin: 0 10px 10px;
}

.raffle-task-search-wrap {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 7px;
	padding: 7px 8px;
	border: 1px solid #3b2f1f;
	background: rgba(240, 215, 183, .24);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
}

.raffle-task-search {
	min-width: 0;
	padding: 6px 8px;
	border: 1px solid #3b2f1f;
	background: rgba(255, 255, 255, .72);
	color: #211a12;
	font: inherit;
	font-weight: normal;
	box-sizing: border-box;
}

.raffle-all-filters {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	padding: 8px;
	border: 1px solid #3b2f1f;
	background: rgba(240, 215, 183, .24);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
}

.raffle-filter-label {
	font-weight: bold;
	margin-right: 2px;
}

.raffle-filter-option {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 6px;
	border: 2px solid #382418;
	background: #0b0b0b;
	color: #90c040;
	cursor: pointer;
}

.raffle-filter-option input {
	margin: 0;
	accent-color: #597f2f;
}

/* ---------- Sortable table headings ---------- */
.raffle-sort-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: inherit;
	cursor: pointer;
}

.raffle-col-task .raffle-sort-button { justify-content: flex-start; }

.raffle-sort-button:hover,
.raffle-sort-button:focus-visible {
	text-decoration: underline;
	outline: none;
}

.raffle-sort-indicator {
	display: inline-flex;
	flex: 0 0 18px;
	width: 18px;
	height: 16px;
	line-height: 1;
}

.raffle-sort-icon { display: block; width: 18px; height: 16px; }
.raffle-sort-up, .raffle-sort-down { opacity: .6; }
.raffle-sort-indicator[data-direction="asc"] .raffle-sort-up,
.raffle-sort-indicator[data-direction="desc"] .raffle-sort-down { opacity: 1; }
.raffle-sort-indicator[data-direction="asc"] .raffle-sort-down,
.raffle-sort-indicator[data-direction="desc"] .raffle-sort-up { opacity: .25; }

/* ---------- Rewards / Community Unlocks / World Firsts ---------- */
.raffle-reward-list,
.raffle-world-firsts {
	width: 100%;
	max-width: 650px;
	margin: .85em auto 1.45em;
}

.raffle-reward-group-label {
	margin: 1.15em 0 .45em;
	font-size: 13px;
	font-weight: bold;
	text-align: center;
}

.raffle-reward-card {
	--reward-image: none;
	--reward-accent: #6d4d21;
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) 88px;
	grid-template-areas: "meta body art";
	align-items: center;
	min-height: 70px;
	width: 100%;
	margin: 0;
	overflow: hidden;
	border: 1px solid #3b2f1f;
	background: rgba(240, 215, 183, .38);
	box-sizing: border-box;
}

.raffle-reward-card::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 5;
	height: 3px;
	background: var(--reward-accent);
}

.raffle-reward-art {
	grid-area: art;
	position: relative;
	align-self: stretch;
	display: grid;
	place-items: center;
	min-width: 0;
	min-height: 68px;
	padding: 8px;
	border-left: 1px solid rgba(59, 47, 31, .55);
	background-image:
		linear-gradient(rgba(20, 14, 10, .22), rgba(20, 14, 10, .38)),
		var(--reward-image);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	box-sizing: border-box;
}

.raffle-reward-body {
	grid-area: body;
	min-width: 0;
	padding: 8px 10px;
	text-align: left;
}

.raffle-reward-name {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 18px;
	font-weight: bold;
	line-height: 1.25;
}

.raffle-reward-subline {
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.25;
}

.raffle-eligibility {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 3px 7px;
	margin-top: 5px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10.5px;
	line-height: 1.25;
}

.raffle-eligibility strong { color: #4e6f2a; }
.raffle-reward-card.is-ineligible .raffle-eligibility strong { color: #8a4d1d; }
.raffle-eligibility span { opacity: .84; }

.raffle-reward-meta,
.raffle-world-first-result {
	grid-area: meta;
	align-self: center;
	margin-left: 12px;
	margin-right: 0;
	padding: 6px 9px;
	border: 2px solid #382418;
	background: #0b0b0b;
	color: #90c040;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	box-shadow: inset 0 0 0 1px #000, 0 1px 0 rgba(255, 255, 255, .12);
	font-weight: bold;
	line-height: 1.15;
	text-align: center;
	white-space: nowrap;
}

.raffle-prize-amount {
	width: 52px;
	min-width: 52px;
	max-width: 52px;
	box-sizing: border-box;
}

.raffle-reward-card.is-community-prize,
.raffle-reward-card.is-unlocked,
.raffle-world-first-card.is-claimed {
	--reward-accent: #1f7a36;
}

.raffle-reward-card.is-locked,
.raffle-world-first-card.is-unclaimed {
	--reward-accent: #8a6b14;
}

.raffle-reward-card.is-locked {
	background: rgba(104, 91, 70, .25);
	border-style: dashed;
}

.raffle-reward-card.is-locked .raffle-reward-art {
	background-image: none;
}

.raffle-reward-card.is-locked .raffle-reward-art::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(20, 14, 10, .22), rgba(20, 14, 10, .38)), var(--reward-image);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	filter: grayscale(.8) brightness(.62);
}

#newspost-content .raffle-lock-mark,
.news-article-content .raffle-lock-mark,
.raffle-lock-mark {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	transform: translate(-50%, -50%);
	display: block;
	width: 28px !important;
	height: 32px !important;
	margin: 0 !important;
	background: url("https://cdn.runescape.com/assets/img/external/oldschool/newsposts/icons/Padlock.png") center / contain no-repeat;
}

.raffle-community-label {
	display: inline-block;
	margin-bottom: 5px;
	padding: 3px 6px;
	border: 1px solid #382418;
	background: #0b0b0b;
	color: #90c040;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-weight: bold;
	line-height: 1.2;
}

.raffle-unlock-card {
	grid-template-columns: auto minmax(0, 1fr) 88px;
	grid-template-areas:
		"meta body art"
		"progress progress art";
	padding-bottom: 6px;
}

.raffle-progress-wrap {
	grid-area: progress;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 7px;
	padding: 0 8px 0 9px;
}

.raffle-progress-number {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-weight: bold;
	white-space: nowrap;
}

.raffle-world-progress {
	width: 100%;
	height: 10px;
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid #59452c;
	background: rgba(0, 0, 0, .12);
}

.raffle-world-progress::-webkit-progress-bar { background: rgba(0, 0, 0, .12); }
.raffle-world-progress::-webkit-progress-value { background: #6d4d21; }
.raffle-world-progress::-moz-progress-bar { background: #6d4d21; }

.raffle-progress-number {
	min-width: 38px;
	font-size: 11px;
	font-weight: bold;
	text-align: right;
}

.raffle-world-first-result {
	min-width: 94px;
	max-width: 122px;
	font-weight: normal;
	white-space: normal;
}

.raffle-world-first-result strong { display: block; font-weight: bold; }

.raffle-updated {
	font-size: 12px;
	font-style: italic;
	text-align: center;
}

@media (max-width: 650px) {
	.raffle-board-panel .table-scroll {
		width: calc(100% - 10px);
		max-width: calc(100% - 10px);
		margin: 0 5px;
	}

	.raffle-task-table th,
	.raffle-task-table td {
		padding: 5px 3px;
		font-size: 11px;
	}

	.raffle-task-table .raffle-col-done { width: 9%; }
	.raffle-task-table .raffle-col-board { width: 15%; }
	.raffle-task-table .raffle-col-completions { width: 24%; }
	.raffle-task-table .raffle-col-entries { width: 15%; }

	.raffle-entry {
		padding: 3px 4px;
		font-size: 10.5px;
	}

	.raffle-sort-button {
		flex-direction: column;
		gap: 2px;
	}

	.raffle-sort-indicator { font-size: 12px; }

	.raffle-task-toolbar { justify-content: stretch; }
	.raffle-task-action { width: 100%; }
	.raffle-progress-overall { grid-template-columns: 1fr; }
	.raffle-progress-overall strong { font-size: 15px; }
	.raffle-all-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.raffle-all-filters { justify-content: flex-start; }
	.raffle-filter-label { width: 100%; }
	.raffle-reward-list,
	.raffle-world-firsts { max-width: 100%; }
	.raffle-reward-card { grid-template-columns: auto minmax(0, 1fr) 76px; min-height: 64px; }
	.raffle-reward-art { min-height: 62px; }
	.raffle-reward-body { padding: 7px 9px; }
	.raffle-reward-name { font-size: 17px; }
	.raffle-reward-subline { font-size: 11px; }
	.raffle-reward-meta { margin-left: 7px; padding: 5px 7px; font-size: 11.5px; }
	.raffle-unlock-card {
		grid-template-columns: auto minmax(0, 1fr) 76px;
		grid-template-areas: "meta body art" "progress progress art";
	}
	.raffle-world-first-result { min-width: 88px; max-width: 106px; margin-left: 6px; padding: 5px 6px; font-size: 10.5px; }
}

@media (max-width: 420px) {
	.raffle-all-breakdown { grid-template-columns: 1fr; }
}

/* Card options: these apply to Prizes, World Goals and World Firsts. */
.raffle-reward-list,
.raffle-world-firsts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	align-items: stretch;
}
.raffle-reward-card { grid-column: 1 / -1; min-width: 0; }
.raffle-reward-details {
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.3;
	white-space: pre-line;
}
.raffle-reward-name,
.raffle-reward-subline,
.raffle-reward-details,
.raffle-eligibility { overflow-wrap: anywhere; }
.raffle-reward-card.is-image-free,
.raffle-reward-card.is-image-background {
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-areas: "meta body";
}
.raffle-unlock-card.is-image-free,
.raffle-unlock-card.is-image-background {
	grid-template-areas: "meta body" "progress progress";
}
.is-image-free .raffle-reward-art,
.is-image-background .raffle-reward-art { display: none; }
.raffle-reward-card.is-image-background::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(240, 221, 190, .8), rgba(240, 221, 190, .88)), var(--reward-image);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}
.is-image-background .raffle-reward-body,
.is-image-background .raffle-reward-meta,
.is-image-background .raffle-world-first-result,
.is-image-background .raffle-progress-wrap { position: relative; z-index: 1; }
.is-image-background.is-locked .raffle-reward-art {
	display: block;
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 28px;
	height: 32px;
	min-height: 0;
	padding: 0;
	border: 0;
}
.is-image-background.is-locked .raffle-reward-art::before { display: none; }
.is-image-background.is-locked .raffle-reward-body { padding-right: 44px; }
.raffle-reward-card--half {
	grid-column: span 1;
	grid-template-columns: auto minmax(0, 1fr) 56px;
	grid-template-areas: "meta body art";
	align-content: start;
}
.raffle-reward-card--half.raffle-unlock-card {
	grid-template-areas: "meta body art" "progress progress art";
}
.raffle-reward-card--half .raffle-reward-name { font-size: 17px; }
.raffle-reward-card--half .raffle-reward-meta,
.raffle-reward-card--half .raffle-world-first-result {
	justify-self: start;
	margin: 6px 0 6px 6px;
	max-width: 78px;
	min-width: 0;
	white-space: normal;
	overflow-wrap: anywhere;
}
.raffle-reward-card--half .raffle-prize-amount { min-width: 40px; width: auto; }
.raffle-reward-card--half .raffle-progress-wrap { grid-template-columns: minmax(0, 1fr); gap: 3px; }
.raffle-reward-card--half .raffle-progress-number { white-space: normal; overflow-wrap: anywhere; }
.raffle-reward-card--half.is-image-free,
.raffle-reward-card--half.is-image-background {
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-areas: "meta body";
}
.raffle-reward-card--half.raffle-unlock-card.is-image-free,
.raffle-reward-card--half.raffle-unlock-card.is-image-background {
	grid-template-areas: "meta body" "progress progress";
}
@media (max-width: 520px) {
	.raffle-reward-list,
	.raffle-world-firsts { grid-template-columns: minmax(0, 1fr); }
}

/* Minimal gallery: one native expand control, with no hover effects. */
.raffle-prize-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	align-items: start;
	width: 100%;
	max-width: 650px;
	margin: .85em auto 1.45em;
}
.raffle-gallery-card {
	--reward-image: none;
	min-width: 0;
	border: 1px solid #3b2f1f;
	background: rgba(240, 215, 183, .38);
	box-sizing: border-box;
}
#newspost-content .raffle-gallery-summary {
	display: block;
	margin: 0;
	padding: 0;
	font: inherit;
	color: #000;
	list-style: none;
	cursor: pointer;
	text-align: left;
	text-shadow: none !important;
}
.raffle-gallery-summary::-webkit-details-marker { display: none; }
.raffle-gallery-summary::marker { content: ""; }
.raffle-gallery-summary:focus-visible { outline: 1px dotted #382418; outline-offset: 2px; }
.raffle-gallery-image {
	display: block;
	position: relative;
	height: 140px;
	box-sizing: border-box;
	width: 100%;
	background-color: rgba(59, 47, 31, .12);
	background-image: var(--reward-image);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	border-bottom: 1px solid #3b2f1f;
}
.raffle-gallery-quantity,
.raffle-gallery-status {
	position: absolute;
	top: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 3px 4px;
	border: 1px solid #382418;
	background: #0b0b0b;
	color: #90c040;
	font: normal 12px/1.2 Arial, Helvetica, sans-serif;
	text-shadow: none !important;
	filter: none;
	white-space: nowrap;
	box-sizing: border-box;
}
.raffle-gallery-quantity { left: 4px; width: 46px; font-variant-numeric: tabular-nums; }
.raffle-gallery-status { right: 4px; }
.raffle-gallery-check { width: 12px; height: 12px; flex: 0 0 12px; background: center / contain no-repeat; }
.raffle-gallery-check.is-true { background-image: url("https://cdn.runescape.com/assets/img/external/oldschool/newsposts/icons/Icon-True.png"); }
.raffle-gallery-check.is-false { background-image: url("https://cdn.runescape.com/assets/img/external/oldschool/newsposts/icons/Icon-False.png"); }
.raffle-gallery-name {
	display: block;
	position: relative;
	min-height: 40px;
	padding: 8px;
	font: bold 15px/1.25 Arial, Helvetica, sans-serif;
	overflow-wrap: anywhere;
}
.raffle-gallery-type { display: block; margin-bottom: 3px; font-size: 10px; font-weight: normal; }
.raffle-gallery-card.is-static .raffle-gallery-summary { cursor: default; }
.raffle-gallery-card.is-expandable .raffle-gallery-name { padding-right: 26px; }
.raffle-gallery-expand { position: absolute; right: 8px; bottom: 8px; width: 12px; height: 12px; pointer-events: none; }
.raffle-gallery-expand::before,
.raffle-gallery-expand::after { content: ""; position: absolute; background: currentColor; }
.raffle-gallery-expand::before { left: 0; top: 5px; width: 12px; height: 2px; }
.raffle-gallery-expand::after { left: 5px; top: 0; width: 2px; height: 12px; }
.raffle-gallery-card[open] .raffle-gallery-expand::after { display: none; }
.raffle-gallery-card,
.raffle-gallery-card * { text-shadow: none !important; }
.raffle-gallery-world { grid-column: 1 / -1; }
#newspost-content .raffle-gallery-world .raffle-gallery-summary {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 176px;
	grid-template-areas: "name image";
	align-items: center;
}
.raffle-gallery-world .raffle-gallery-image { grid-area: image; height: 104px; border-bottom: 0; border-left: 1px solid #3b2f1f; }
.raffle-gallery-world .raffle-gallery-name { grid-area: name; font-size: 18px; }
.raffle-gallery-world .raffle-gallery-type { font-size: 12px; }
.raffle-gallery-panel {
	padding: 8px;
	border-top: 1px solid #3b2f1f;
	font: 12px/1.35 Arial, Helvetica, sans-serif;
	overflow-wrap: anywhere;
}
.raffle-gallery-panel:empty { display: none; }
.raffle-gallery-panel .raffle-reward-details { margin: 0 0 7px; }
#newspost-content .raffle-gallery-panel p { margin: 0 0 7px; }
.raffle-gallery-requirements strong { font-size: 12px; }
#newspost-content .raffle-gallery-requirements ul { margin: 5px 0 0 !important; padding-left: 16px !important; }
#newspost-content .raffle-gallery-requirements li { margin: 3px 0; padding: 0; }
.raffle-gallery-progress { display: grid; gap: 4px; margin-top: 8px; font-size: 11px; }
.raffle-gallery-progress progress {
	width: 100%;
	min-width: 0;
	height: 10px;
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid #382418;
	background: rgba(0, 0, 0, .12);
}
.raffle-gallery-progress progress::-webkit-progress-bar { background: rgba(0, 0, 0, .12); }
.raffle-gallery-progress progress::-webkit-progress-value { background: #597f2f; }
.raffle-gallery-progress progress::-moz-progress-bar { background: #597f2f; }
@media (max-width: 600px) { .raffle-prize-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) {
	.raffle-prize-gallery { grid-template-columns: minmax(0, 1fr); }
	#newspost-content .raffle-gallery-world .raffle-gallery-summary { grid-template-columns: minmax(0, 1fr); grid-template-areas: "image" "name"; }
	.raffle-gallery-world .raffle-gallery-image { border-left: 0; border-bottom: 1px solid #3b2f1f; }
}

/* Revealed World Goals: full-width cards, visible rewards and progress. */
.raffle-unlock-card.is-reward-revealed {
	grid-template-columns: 26px minmax(0, 1fr) 208px;
	grid-template-areas: "meta body art" "meta progress art";
	min-height: 142px;
	border-style: solid;
	box-shadow: none;
	padding-bottom: 0;
}
.raffle-unlock-card.is-reward-revealed,
.raffle-unlock-card.is-reward-revealed * { text-shadow: none !important; }
.raffle-unlock-card.is-reward-revealed .raffle-reward-art {
	grid-row: 1 / -1;
	align-self: start;
	width: 208px;
	height: 140px;
	min-height: 140px;
	margin: 0;
	background-image: var(--reward-image);
	background-size: contain;
	background-origin: border-box;
	background-color: rgba(59, 47, 31, .08);
	filter: none;
}
.raffle-unlock-card.is-reward-revealed .raffle-reward-art::before { display: none; }
.raffle-unlock-card.is-reward-revealed .raffle-reward-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	min-width: 0;
	width: auto;
	margin: 0;
	padding: 5px 3px;
	border: 0;
	border-right: 1px solid #3b2f1f;
	box-shadow: none;
	box-sizing: border-box;
}
.raffle-unlock-card.is-reward-revealed .raffle-reward-meta span {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}
.raffle-unlock-card.is-reward-revealed .raffle-reward-subline { font-size: 15px; line-height: 1.35; }
.raffle-unlock-card.is-reward-revealed .raffle-progress-wrap { padding-bottom: 8px; }
.raffle-cash-art { display: block; width: 100%; max-width: 112px; height: auto; }

/* World Firsts use the prize gallery, with an always-visible claim panel. */
.raffle-world-first-gallery.raffle-prize-gallery {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
}
.raffle-world-first-gallery .raffle-world-first-card {
	display: flex;
	flex-direction: column;
	grid-column: auto;
	box-shadow: none;
}
.raffle-world-first-gallery .raffle-gallery-image { flex: 0 0 140px; }
.raffle-world-first-gallery .raffle-gallery-name { min-height: 0; padding-bottom: 5px; }
.raffle-world-first-prize {
	padding: 0 8px 10px;
	font: normal 12px/1.35 Arial, Helvetica, sans-serif;
	text-align: left;
	overflow-wrap: anywhere;
}
.raffle-world-first-gallery .raffle-reward-details { margin: 0; padding: 0 8px 10px; }
.raffle-world-first-gallery .raffle-world-first-result {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	gap: 3px 6px;
	min-width: 0;
	max-width: none;
	min-height: 30px;
	margin: auto 0 0;
	padding: 5px 8px;
	border: 0;
	border-top: 1px solid #3b2f1f;
	box-shadow: none;
	font: normal 12px/1.25 Arial, Helvetica, sans-serif;
	box-sizing: border-box;
	text-align: center;
}
.raffle-world-first-gallery .raffle-world-first-result strong {
	max-width: 100%;
	font-weight: bold;
	overflow-wrap: anywhere;
}
.raffle-world-first-winners {
	flex-basis: 100%;
	min-width: 0;
	text-align: left;
	line-height: 1.4;
	overflow-wrap: anywhere;
}
.raffle-world-first-winners details {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	box-shadow: none;
}
#newspost-content .raffle-world-first-winners summary,
.raffle-world-first-winners summary {
	display: list-item;
	margin: 0;
	padding: 2px 0;
	background: transparent;
	border: 0;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
#newspost-content .raffle-world-first-winners ul,
#newspost-content .raffle-world-first-winners ol,
.raffle-world-first-winners ul,
.raffle-world-first-winners ol { margin: 5px 0 0; padding-left: 18px; }
#newspost-content .raffle-world-first-winners li,
.raffle-world-first-winners li { margin: 4px 0; padding: 0; font: inherit; color: inherit; }
#newspost-content .raffle-world-first-winners p,
.raffle-world-first-winners p { margin: 5px 0; font: inherit; color: inherit; }
.raffle-world-first-gallery .raffle-world-first-winners strong { display: inline; }
.raffle-world-first-winners a { color: inherit; text-decoration: underline; }
@media (max-width: 600px) {
	.raffle-world-first-gallery.raffle-prize-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.raffle-unlock-card.is-reward-revealed .raffle-progress-wrap { grid-template-columns: minmax(0, 1fr); gap: 3px; }
}
@media (max-width: 520px) {
	.raffle-unlock-card.is-reward-revealed {
		grid-template-columns: 26px minmax(0, 1fr);
		grid-template-areas: "meta art" "meta body" "meta progress";
	}
	.raffle-unlock-card.is-reward-revealed .raffle-reward-art {
		grid-row: auto;
		justify-self: center;
		border-left: 0;
		border-bottom: 1px solid #3b2f1f;
	}
}
@media (max-width: 420px) {
	.raffle-world-first-gallery.raffle-prize-gallery { grid-template-columns: minmax(0, 1fr); }
}
