.rd-button,
.rd-submit {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 12px 20px;
	border: 1px solid transparent;
	border-radius: var(--rd-radius-xs);
	font-size: 14px;
	font-weight: 750;
	line-height: 1.2;
	cursor: pointer;
	transition: transform .2s var(--rd-ease), box-shadow .2s var(--rd-ease), background .2s ease, border-color .2s ease;
}

.rd-button:hover,
.rd-submit:hover {
	transform: translateY(-2px);
}

.rd-button--primary,
.rd-submit {
	background: var(--rd-navy);
	box-shadow: 0 10px 22px rgba(23, 32, 51, .13);
	color: #fff;
}

.rd-button--primary:hover,
.rd-submit:hover {
	background: var(--rd-navy-soft);
	box-shadow: 0 14px 30px rgba(23, 32, 51, .19);
	color: #fff;
}

/* Theme styles must never turn primary actions into low-contrast text. */
body.rankdaily-v30 .rd-button--primary,
body.rankdaily-v30 .rd-submit {
	border-color: #172033 !important;
	background: #172033 !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff;
}

body.rankdaily-v30 .rd-button--primary:hover,
body.rankdaily-v30 .rd-button--primary:focus-visible,
body.rankdaily-v30 .rd-submit:hover,
body.rankdaily-v30 .rd-submit:focus-visible {
	border-color: #26324a !important;
	background: #26324a !important;
	color: #fff !important;
}

.rd-button--secondary {
	border-color: var(--rd-line);
	background: var(--rd-surface);
	color: var(--rd-navy);
}

.rd-button--secondary:hover {
	border-color: var(--rd-line-strong);
	box-shadow: var(--rd-shadow-sm);
}

.rd-continue-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: min(calc(100% - 48px), 900px);
	gap: 24px;
	padding: 22px 24px;
	border: 1px solid var(--rd-line-strong);
	border-radius: var(--rd-radius-sm);
	margin: 32px auto 0;
	background: var(--rd-surface);
	box-shadow: var(--rd-shadow-sm);
}

.rd-continue-card[hidden] { display: none; }
.rd-continue-card .rd-eyebrow,
.rd-continue-card h2 { margin: 0; }
.rd-continue-card h2 { margin-top: 5px; font-size: clamp(20px, 2.4vw, 28px); }

.rd-home-progress {
	display: grid;
	grid-template-columns: .8fr 1fr 1.45fr;
	width: min(calc(100% - 48px), var(--rd-page-width));
	margin: 28px auto 0;
	border: 1px solid var(--rd-line);
	border-radius: var(--rd-radius-sm);
	background: rgba(255, 253, 248, .72);
	box-shadow: var(--rd-shadow-sm);
}

.rd-home-progress article {
	display: grid;
	align-content: center;
	min-height: 128px;
	gap: 6px;
	padding: 22px 26px;
	border-left: 1px solid var(--rd-line);
}

.rd-home-progress article:first-child { border-left: 0; }
.rd-home-progress strong { color: var(--rd-navy); font-family: var(--rd-font-display); font-size: clamp(20px, 2.2vw, 27px); line-height: 1.15; }
.rd-home-progress small { color: var(--rd-muted); font-size: 12px; }
.rd-home-progress i { display: block; width: 100%; height: 5px; overflow: hidden; border-radius: 999px; background: var(--rd-paper-deep); }
.rd-home-progress i b { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--rd-blue); transition: width .4s var(--rd-ease); }

.rd-daily-preview__date small {
	display: block;
	margin-top: 8px;
	color: var(--rd-muted);
	font-size: 11px;
	line-height: 1.35;
}

.rd-practice-note { padding: 10px 12px; border-left: 3px solid var(--rd-blue); background: var(--rd-blue-soft); color: var(--rd-navy) !important; font-size: 13px; }

.rd-legal-panel,
.rd-legal-grid article,
.rd-not-found__actions {
	border: 1px solid var(--rd-line);
	border-radius: var(--rd-radius-sm);
	background: var(--rd-surface);
}

.rd-legal-panel { max-width: 760px; padding: clamp(24px, 4vw, 42px); }
.rd-legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rd-legal-grid article { padding: clamp(22px, 3vw, 34px); }
.rd-legal-panel h2,
.rd-legal-grid h2 { margin-bottom: 10px; font-size: clamp(19px, 2vw, 25px); }
.rd-legal-panel p,
.rd-legal-grid p { margin: 0 0 14px; color: var(--rd-muted); overflow-wrap: anywhere; }
.rd-not-found__actions { display: flex; align-items: center; flex-wrap: wrap; max-width: 820px; gap: 12px; padding: clamp(22px, 4vw, 36px); }

.rd-hero-link,
.rd-inline-link,
.rd-text-link,
.rd-card-action,
.rd-original-toggle {
	color: var(--rd-blue);
	font-size: 14px;
	font-weight: 750;
	text-decoration: underline;
	text-decoration-color: rgba(49, 87, 213, .35);
	text-underline-offset: 5px;
}

.rd-hero-link:hover,
.rd-inline-link:hover,
.rd-text-link:hover,
.rd-card-action:hover {
	color: var(--rd-blue-dark);
	text-decoration-color: currentColor;
}

.rd-daily-preview {
	position: relative;
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr) 190px;
	gap: clamp(24px, 4vw, 48px);
	align-items: center;
	padding: 42px 0;
	border-top: 2px solid var(--rd-category-accent, var(--rd-teal));
	border-bottom: 1px solid var(--rd-line);
}

.rd-daily-preview::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 100%;
	background: linear-gradient(90deg, var(--rd-category-soft, #e5f3ef), transparent 28%);
	content: "";
	opacity: .42;
	pointer-events: none;
}

.rd-daily-preview > * {
	position: relative;
	z-index: 1;
}

.rd-daily-preview__date {
	padding-right: 28px;
	border-right: 1px solid var(--rd-line);
}

.rd-daily-preview__date span {
	display: block;
	margin-bottom: 9px;
	color: var(--rd-category-accent, var(--rd-teal));
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.rd-daily-preview__date strong {
	display: block;
	font-family: var(--rd-font-display);
	font-size: 22px;
	line-height: 1.05;
}

.rd-daily-preview__copy h3 {
	margin: 10px 0 10px;
	font-size: clamp(2rem, 3.8vw, 3rem);
}

.rd-daily-preview__copy > p:not(.rd-game-meta):not(.rd-daily-preview__complete) {
	margin: 0;
	color: var(--rd-muted);
}

.rd-daily-preview__complete {
	margin: 12px 0 0;
	color: var(--rd-category-deep, var(--rd-teal));
	font-size: 13px;
	font-weight: 750;
}

.rd-daily-preview__action {
	display: grid;
	gap: 16px;
}

.rd-daily-preview__action > span {
	display: flex;
	align-items: baseline;
	gap: 8px;
	color: var(--rd-muted);
	font-size: 10px;
	font-weight: 750;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.rd-daily-preview__action b {
	color: var(--rd-category-accent, var(--rd-teal));
	font-family: var(--rd-font-display);
	font-size: 42px;
	line-height: .8;
}

.rd-daily-preview.is-completed {
	border-top-color: var(--rd-green);
}

.rd-category-grid {
	display: grid;
}

.rd-category-grid--compact {
	grid-template-columns: repeat(5, 1fr);
	border-top: 1px solid var(--rd-line);
	border-bottom: 1px solid var(--rd-line);
}

.rd-category-grid--editorial {
	grid-template-columns: 1fr;
	border-top: 1px solid var(--rd-line);
}

.rd-category-card {
	position: relative;
	display: grid;
	align-items: center;
	color: var(--rd-ink);
	transition: background .22s ease, transform .22s var(--rd-ease), box-shadow .22s ease;
}

.rd-category-grid--compact .rd-category-card {
	grid-template-rows: auto auto 1fr auto;
	min-height: 250px;
	padding: 24px 18px 20px;
	border-left: 1px solid var(--rd-line);
}

.rd-category-grid--compact .rd-category-card:first-child {
	border-left: 0;
}

.rd-category-grid--editorial .rd-category-card {
	grid-template-columns: 60px 42px minmax(0, 1fr) 180px 24px;
	gap: 24px;
	min-height: 112px;
	padding: 22px 16px 22px 4px;
	border-bottom: 1px solid var(--rd-line);
}

.rd-category-card:hover {
	z-index: 2;
	background: var(--rd-category-soft, rgba(255, 255, 255, .46));
}

.rd-category-grid--compact .rd-category-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--rd-shadow-sm);
}

.rd-category-index {
	color: var(--rd-faint);
	font-family: var(--rd-font-display);
	font-size: 15px;
}

.rd-category-grid--compact .rd-category-index {
	margin-bottom: 26px;
}

.rd-category-icon {
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	color: var(--rd-category-accent, var(--rd-blue));
}

.rd-category-icon svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.65;
}

.rd-category-grid--compact .rd-category-icon {
	margin-bottom: 14px;
}

.rd-category-card__title {
	margin: 0 0 8px;
	font-size: 1.55rem;
}

.rd-category-card__copy > span {
	display: block;
	color: var(--rd-muted);
	font-size: 13px;
	line-height: 1.55;
}

.rd-category-grid--compact .rd-category-card__status {
	align-self: end;
	margin-top: 22px;
}

.rd-category-card__count {
	display: block;
	color: var(--rd-muted);
	font-size: 11px;
	font-weight: 650;
}

.rd-category-progress {
	display: grid;
	gap: 5px;
	margin-top: 4px;
	color: var(--rd-muted);
	font-size: 10px;
}

.rd-category-progress i,
.rd-week-goal i {
	display: block;
	height: 3px;
	overflow: hidden;
	background: var(--rd-line);
}

.rd-category-progress b,
.rd-week-goal b {
	display: block;
	width: 0;
	height: 100%;
	background: var(--rd-category-accent, var(--rd-blue));
	transition: width .5s var(--rd-ease);
}

.rd-category-arrow {
	color: var(--rd-category-accent, var(--rd-blue));
	font-weight: 800;
}

.rd-category-grid--compact .rd-category-arrow {
	position: absolute;
	right: 18px;
	bottom: 20px;
}

.rd-explore-feature {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 210px;
	gap: 44px;
	align-items: center;
	min-height: 285px;
	padding: 44px 48px;
	margin-bottom: 36px;
	overflow: hidden;
	border: 1px solid var(--rd-line);
	border-radius: var(--rd-radius-lg);
	background: linear-gradient(125deg, var(--rd-surface) 0 66%, var(--rd-category-soft, var(--rd-blue-soft)) 66% 100%);
	box-shadow: var(--rd-shadow-sm);
}

.rd-explore-feature::after {
	position: absolute;
	right: -60px;
	bottom: -100px;
	width: 260px;
	height: 260px;
	border: 1px solid var(--rd-category-accent, var(--rd-blue));
	border-radius: 50%;
	content: "";
	opacity: .22;
}

.rd-explore-feature__copy {
	position: relative;
	z-index: 1;
}

.rd-explore-feature h2 {
	max-width: 720px;
	margin-bottom: 12px;
	font-size: clamp(2.2rem, 4.5vw, 3.65rem);
}

.rd-explore-feature__copy > p:not(.rd-detail-kicker) {
	max-width: 620px;
	margin-bottom: 24px;
	color: var(--rd-muted);
}

.rd-explore-feature__mark {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	text-align: center;
}

.rd-explore-feature__mark strong {
	color: var(--rd-category-accent, var(--rd-blue));
	font-family: var(--rd-font-display);
	font-size: 96px;
	font-weight: 500;
	line-height: .8;
}

.rd-explore-feature__mark span {
	margin-top: 18px;
	color: var(--rd-muted);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .15em;
	text-transform: uppercase;
}

.rd-filters {
	position: sticky;
	z-index: 30;
	top: 12px;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px;
	margin-bottom: 30px;
	border: 1px solid rgba(196, 188, 173, .78);
	border-radius: var(--rd-radius-sm);
	background: rgba(255, 253, 248, .9);
	box-shadow: 0 10px 26px rgba(23, 32, 51, .06);
	backdrop-filter: blur(14px);
}

.rd-filters button {
	min-height: 38px;
	padding: 8px 12px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: var(--rd-muted);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.rd-filters button:hover,
.rd-filters button.is-active {
	background: var(--rd-navy);
	color: #fff;
}

.rd-filters .rd-filter-surprise {
	margin-left: auto;
	color: var(--rd-blue);
}

.rd-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.rd-challenge-card {
	position: relative;
	display: flex;
	min-height: 250px;
	flex-direction: column;
	padding: 27px 26px 23px;
	overflow: hidden;
	border: 1px solid var(--rd-line);
	border-radius: var(--rd-radius);
	background: var(--rd-surface);
	color: var(--rd-ink);
	transition: transform .24s var(--rd-ease), box-shadow .24s ease, border-color .24s ease;
}

.rd-challenge-card::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
	background: var(--rd-category-accent, var(--rd-blue));
	content: "";
}

.rd-challenge-card::after {
	position: absolute;
	right: -36px;
	top: -48px;
	width: 128px;
	height: 128px;
	border-radius: 50%;
	background: var(--rd-category-soft, var(--rd-blue-soft));
	content: "";
	opacity: .66;
}

.rd-challenge-card:hover {
	z-index: 2;
	transform: translateY(-5px);
	border-color: var(--rd-category-accent, var(--rd-blue));
	box-shadow: var(--rd-shadow-lift);
}

.rd-challenge-card__number {
	position: absolute;
	z-index: 1;
	top: 18px;
	right: 20px;
	color: var(--rd-category-deep, var(--rd-blue));
	font-family: var(--rd-font-display);
	font-size: 20px;
	font-weight: 700;
	opacity: .52;
}

.rd-challenge-card__meta,
.rd-game-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	color: var(--rd-category-deep, var(--rd-teal));
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.rd-challenge-card__meta {
	position: relative;
	z-index: 1;
	padding-right: 45px;
}

.rd-challenge-card__meta i,
.rd-game-meta i {
	font-style: normal;
	opacity: .45;
}

.rd-challenge-card h2,
.rd-challenge-card h3 {
	position: relative;
	z-index: 1;
	margin: 28px 0 12px;
	font-size: 1.55rem;
	line-height: 1.14;
}

.rd-challenge-card__summary {
	position: relative;
	z-index: 1;
	display: -webkit-box;
	margin: 0 0 24px;
	overflow: hidden;
	color: var(--rd-muted);
	font-size: 13px;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.rd-challenge-card__footer {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
}

.rd-completed-badge {
	padding: 5px 8px;
	border-radius: 999px;
	background: #e5f3e9;
	color: #167c43;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.rd-card-grid--category .rd-challenge-card:first-child {
	grid-column: span 2;
	min-height: 320px;
	padding: 38px;
	background: linear-gradient(135deg, var(--rd-surface) 0 67%, var(--rd-category-soft, var(--rd-blue-soft)) 67% 100%);
}

.rd-card-grid--category .rd-challenge-card:first-child h2 {
	max-width: 650px;
	font-size: clamp(2rem, 4vw, 3rem);
}

.rd-card-grid--category .rd-challenge-card:first-child .rd-challenge-card__summary {
	max-width: 620px;
	font-size: 15px;
	-webkit-line-clamp: 4;
}

.rd-category-outro {
	display: flex;
	justify-content: center;
	gap: 12px;
	padding-top: 58px;
}

.rd-filter-empty {
	padding: 40px 0;
	color: var(--rd-muted);
	text-align: center;
}

.rd-scoring-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(440px, .9fr);
	gap: 44px;
	align-items: center;
	padding: 42px 0;
}

.rd-scoring-card h2 {
	margin-bottom: 12px;
	font-size: 2rem;
}

.rd-scoring-card p:last-child {
	margin: 0;
	color: var(--rd-muted);
}

.rd-score-key {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.rd-score-key > span {
	display: grid;
	gap: 6px;
	padding: 10px 20px;
	border-left: 1px solid var(--rd-line);
	color: var(--rd-muted);
	font-size: 11px;
	font-weight: 700;
}

.rd-score-key b {
	color: var(--rd-ink);
	font-family: var(--rd-font-display);
	font-size: 30px;
}

.rd-privacy-highlight {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 22px;
	padding: 38px 36px;
	margin-bottom: 18px;
	border-left: 3px solid var(--rd-blue);
	background: rgba(255, 253, 248, .58);
}

.rd-privacy-highlight h2 {
	margin-bottom: 10px;
	font-size: 1.85rem;
}

.rd-privacy-highlight p:last-child {
	margin: 0;
	color: var(--rd-muted);
}

.rd-info-icon {
	display: grid;
	width: 40px;
	height: 40px;
	place-items: center;
	border-radius: 50%;
	background: var(--rd-blue-soft);
	color: var(--rd-blue);
}

.rd-info-icon svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.rd-privacy-control {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 36px;
	align-items: center;
	padding: 38px 0;
	border-top: 1px solid var(--rd-line);
	border-bottom: 1px solid var(--rd-line);
}

.rd-privacy-control h2 {
	margin-bottom: 10px;
	font-size: 1.8rem;
}

.rd-privacy-control p:last-child {
	margin: 0;
	color: var(--rd-muted);
}

.rd-privacy-updated {
	margin: 20px 0 0;
	color: var(--rd-muted);
	font-size: 12px;
}

.rd-empty {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	gap: 26px;
	align-items: center;
	padding: 34px;
	border: 1px solid var(--rd-line);
	border-radius: var(--rd-radius);
	background: var(--rd-surface);
}

.rd-empty__icon {
	display: grid;
	width: 52px;
	height: 52px;
	place-items: center;
	border-radius: 50%;
	background: var(--rd-blue-soft);
	color: var(--rd-blue);
}

.rd-empty__icon svg {
	width: 24px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.rd-empty h1,
.rd-empty h2 {
	margin-bottom: 8px;
}

.rd-empty p:last-child {
	margin: 0;
	color: var(--rd-muted);
}

.rd-empty__actions {
	display: grid;
	gap: 12px;
}

.rd-related .rd-card-grid {
	grid-template-columns: repeat(3, 1fr);
}

.rd-related .rd-challenge-card {
	min-height: 210px;
}
