/*
Theme Name: Redoulus
Template: twentytwentyfive
Description: Redoulus, the game lab of Dezignza. Dark child theme of Twenty Twenty-Five.
Author: Dezignza
Author URI: https://dezignza.co.za
Version: 1.1.1
Requires at least: 6.7
License: GNU General Public License v2 or later
Text Domain: redoulus
*/

:root {
	--rd-ease-out: cubic-bezier(.16, 1, .3, 1);
	--rd-dur-1: 120ms;
	--rd-dur-2: 220ms;
	--rd-radius-md: 8px;
	--rd-radius-lg: 20px;
	--rd-border: var(--wp--preset--color--accent-6);
	--rd-gutter: clamp(16px, 4vw, 40px);
	color-scheme: dark;
}

::selection { background: var(--wp--preset--color--accent-1); color: var(--wp--preset--color--base); }
html { scrollbar-color: var(--wp--preset--color--accent-6) var(--wp--preset--color--base); }
*, *::before, *::after { box-sizing: border-box; }
body { caret-color: var(--wp--preset--color--accent-1); overflow-x: clip; }

a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
:where(a, button, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-2);
	outline-offset: 3px;
	border-radius: 4px;
}

.rd-skip {
	position: absolute; left: 16px; top: -64px; z-index: 10;
	padding: 12px 16px; border-radius: var(--rd-radius-md);
	background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base);
	font-weight: 600; text-decoration: none;
}
.rd-skip:focus { top: 12px; }

/* Header */
.rd-header { padding: 20px var(--rd-gutter); border-bottom: 1px solid var(--rd-border); }
.rd-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	max-width: var(--wp--style--global--wide-size); margin-inline: auto;
}
.rd-lockup { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.rd-lockup__logo { display: block; border-radius: 4px; }
.rd-lockup__logo img { display: block; width: 168px; height: auto; }
.rd-powered {
	font-size: .8125rem; color: var(--wp--preset--color--accent-4);
	padding-left: 2px; letter-spacing: .01em;
}
.rd-powered a { color: var(--wp--preset--color--contrast); font-weight: 600; text-decoration: none; }
.rd-powered a:hover { color: var(--wp--preset--color--accent-2); text-decoration: underline; }

.rd-nav { display: flex; gap: 4px; }
.rd-nav a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
	border-radius: var(--rd-radius-md);
	color: var(--wp--preset--color--contrast); font-weight: 600; text-decoration: none;
	transition: background-color var(--rd-dur-1) var(--rd-ease-out), color var(--rd-dur-1) var(--rd-ease-out);
}
.rd-nav a:hover { background: var(--wp--preset--color--accent-3); color: var(--wp--preset--color--accent-2); }
.rd-nav a[aria-current="page"] { color: var(--wp--preset--color--accent-2); box-shadow: inset 0 -2px 0 var(--wp--preset--color--accent-1); border-radius: 0; }

/* Buttons */
.rd-btn {
	display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px;
	border-radius: var(--rd-radius-md);
	background: var(--wp--preset--color--accent-1); color: var(--wp--preset--color--base);
	font-weight: 600; font-size: 1.0625rem; text-decoration: none;
	box-shadow: 0 6px 20px rgb(91 151 158 / .22), inset 0 1px 0 rgb(255 255 255 / .25);
	transition: background-color var(--rd-dur-1) var(--rd-ease-out), transform var(--rd-dur-1) var(--rd-ease-out), box-shadow var(--rd-dur-2) var(--rd-ease-out);
}
.rd-btn:hover { background: var(--wp--preset--color--accent-2); box-shadow: 0 10px 28px rgb(119 174 180 / .3), inset 0 1px 0 rgb(255 255 255 / .3); }
.rd-btn:active { transform: translateY(1px) scale(.98); }
.rd-btn svg { width: 20px; height: 20px; transition: transform var(--rd-dur-2) var(--rd-ease-out); }
.rd-btn:hover svg { transform: translateX(3px); }

/* Home */
.rd-home {
	display: grid; gap: 40px; align-items: center;
	max-width: calc(var(--wp--style--global--wide-size) + 2 * var(--rd-gutter)); margin-inline: auto;
	padding: 48px var(--rd-gutter) 64px;
}
.rd-home__title {
	font-size: clamp(2.75rem, 7vw + .5rem, 5.75rem); line-height: 1; letter-spacing: -.03em;
	margin: 0 0 24px; text-wrap: balance;
}
.rd-home__title span { color: var(--wp--preset--color--accent-2); }
.rd-home__lede { font-size: 1.25rem; line-height: 1.55; max-width: 34ch; margin: 0 0 16px; color: var(--wp--preset--color--contrast); }
.rd-home__body { max-width: 52ch; margin: 0 0 32px; color: var(--wp--preset--color--accent-4); }
.rd-home__art { position: relative; justify-self: start; width: min(56vw, 240px); }
.rd-home__art img { display: block; width: 100%; height: auto; transform: rotate(-8deg); filter: drop-shadow(0 24px 40px rgb(0 0 0 / .45)); }
.rd-pips {
	display: flex; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none;
}
.rd-pips li { width: 12px; height: 12px; border-radius: 50%; background: var(--wp--preset--color--accent-1); }
.rd-pips li:nth-child(2) { background: var(--wp--preset--color--accent-6); }

@media (min-width: 900px) {
	.rd-home { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); padding-block: 96px 120px; min-height: 62vh; }
	.rd-home__art { justify-self: end; width: min(36vw, 440px); }
}

/* Games */
.rd-games { max-width: calc(var(--wp--style--global--wide-size) + 2 * var(--rd-gutter)); margin-inline: auto; padding: 48px var(--rd-gutter) 96px; }
.rd-games__title { font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem); line-height: 1; letter-spacing: -.03em; margin: 0 0 16px; }
.rd-games__lede { max-width: 52ch; margin: 0 0 48px; color: var(--wp--preset--color--accent-4); font-size: 1.125rem; }
.rd-games__list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }

.rd-game {
	position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: start;
	padding: 20px; border: 1px solid var(--rd-border); border-radius: var(--rd-radius-lg);
	background: var(--wp--preset--color--accent-3);
	box-shadow: inset 0 1px 0 rgb(255 255 255 / .04);
	transition: border-color var(--rd-dur-2) var(--rd-ease-out), transform var(--rd-dur-2) var(--rd-ease-out), background-color var(--rd-dur-2) var(--rd-ease-out);
}
.rd-game:hover { border-color: var(--wp--preset--color--accent-1); background: var(--wp--preset--color--accent-5); transform: translateY(-2px); }
.rd-game:active { transform: translateY(0) scale(.995); }
.rd-game:focus-within { border-color: var(--wp--preset--color--accent-2); }
.rd-game__icon { width: 72px; height: 72px; border-radius: 16px; display: block; box-shadow: 0 8px 20px rgb(0 0 0 / .35); }
.rd-game__name { font-size: 1.5rem; line-height: 1.15; margin: 0 0 6px; letter-spacing: -.01em; }
.rd-game__name a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.rd-game__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rd-game__name a:focus-visible { outline: none; }
.rd-game__line { margin: 0 0 10px; color: var(--wp--preset--color--accent-4); max-width: 60ch; }
.rd-game__more { display: inline-flex; align-items: center; gap: 6px; color: var(--wp--preset--color--accent-2); font-weight: 600; font-size: .9375rem; }
.rd-game__more svg { width: 18px; height: 18px; transition: transform var(--rd-dur-2) var(--rd-ease-out); }
.rd-game:hover .rd-game__more svg { transform: translateX(3px); }

@media (min-width: 700px) {
	.rd-game { grid-template-columns: 120px minmax(0, 1fr); gap: 28px; padding: 28px; align-items: center; }
	.rd-game__icon { width: 120px; height: 120px; border-radius: 27px; }
	.rd-game__name { font-size: 1.875rem; }
}

/* Snake Eyes */
.rd-se { max-width: calc(var(--wp--style--global--wide-size) + 2 * var(--rd-gutter)); margin-inline: auto; padding: 40px var(--rd-gutter) 80px; }
.rd-se__hero { display: grid; gap: 24px; justify-items: start; margin-bottom: 64px; }
.rd-se__icon { width: 112px; height: 112px; border-radius: 25px; display: block; box-shadow: 0 12px 32px rgb(0 0 0 / .45); }
.rd-se__kicker { margin: 0 0 8px; color: var(--wp--preset--color--accent-2); font-weight: 600; letter-spacing: .02em; }
.rd-se__title { font-size: clamp(2.75rem, 8vw + .5rem, 5.5rem); line-height: 1; letter-spacing: -.03em; margin: 0 0 16px; }
.rd-se__pitch { font-size: 1.25rem; line-height: 1.5; max-width: 34ch; margin: 0 0 28px; }
.rd-stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rd-store {
	display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 56px; padding: 8px 20px;
	border: 1px dashed var(--wp--preset--color--accent-4); border-radius: var(--rd-radius-md);
	background: var(--wp--preset--color--accent-3); cursor: default;
}
.rd-store__small { font-size: .75rem; color: var(--wp--preset--color--accent-4); }
.rd-store__name { font-size: 1.125rem; font-weight: 600; line-height: 1.1; }
.rd-se__h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem); letter-spacing: -.02em; line-height: 1.1; margin: 0 0 24px; }

.rd-se__shots { margin-bottom: 64px; }
.rd-shots {
	display: flex; gap: 16px; margin: 0 calc(-1 * var(--rd-gutter)); padding: 4px var(--rd-gutter) 16px; list-style: none;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rd-gutter); overscroll-behavior-x: contain;
}
.rd-shots li { flex: 0 0 min(62vw, 240px); scroll-snap-align: start; }
.rd-shots img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--rd-border); box-shadow: 0 16px 36px rgb(0 0 0 / .4); }
@media (min-width: 1100px) {
	.rd-shots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-inline: 0; padding-inline: 0; overflow: visible; }
	.rd-shots li { flex: none; }
}

.rd-features { display: grid; gap: 16px; margin: 0 0 48px; padding: 0; list-style: none; }
.rd-features li { padding: 20px 24px; border: 1px solid var(--rd-border); border-radius: var(--rd-radius-lg); background: var(--wp--preset--color--accent-3); }
.rd-features h3 { font-size: 1.1875rem; margin: 0 0 6px; }
.rd-features p { margin: 0; color: var(--wp--preset--color--accent-4); }
@media (min-width: 700px) { .rd-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .rd-features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.rd-se__links { display: flex; gap: 8px; border-top: 1px solid var(--rd-border); padding-top: 24px; }
.rd-se__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px 0 0; font-weight: 600; margin-right: 12px; }

@media (min-width: 700px) {
	.rd-se__hero { grid-template-columns: 160px minmax(0, 1fr); gap: 40px; align-items: center; }
	.rd-se__icon { width: 160px; height: 160px; border-radius: 36px; }
}

/* Support and privacy */
.rd-doc { max-width: calc(46rem + 2 * var(--rd-gutter)); margin-inline: auto; padding: 40px var(--rd-gutter) 80px; }
.rd-doc__head { margin-bottom: 48px; }
.rd-doc__back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; color: var(--wp--preset--color--accent-2); font-weight: 600; text-decoration: none; }
.rd-doc__back::before { content: ""; width: 8px; height: 8px; margin-right: 10px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.rd-doc__back:hover { text-decoration: underline; }
.rd-doc__title { font-size: clamp(2.25rem, 5vw + 1rem, 4rem); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 20px; text-wrap: balance; }
.rd-doc__lede { font-size: 1.1875rem; line-height: 1.55; max-width: 52ch; margin: 0; }
.rd-doc__meta { margin: 16px 0 0; font-size: .9375rem; color: var(--wp--preset--color--accent-4); }
.rd-doc__section { margin-top: 48px; }
.rd-doc__section + .rd-doc__section { padding-top: 40px; border-top: 1px solid var(--rd-border); }
.rd-doc__h2 { font-size: clamp(1.375rem, 1.5vw + 1rem, 1.875rem); letter-spacing: -.015em; line-height: 1.15; margin: 0 0 16px; }
.rd-doc p, .rd-doc li { max-width: 68ch; line-height: 1.65; }
.rd-doc p { margin: 0 0 16px; }
.rd-doc ul { margin: 0 0 16px; padding-left: 1.25em; }
.rd-doc li { margin-bottom: 10px; }
.rd-doc li::marker { color: var(--wp--preset--color--accent-1); }

.rd-faq { border-block: 1px solid var(--rd-border); margin-bottom: 8px; }
.rd-doc__section:has(> .rd-faq) + .rd-doc__section { border-top: 0; padding-top: 0; }
.rd-faq details + details { border-top: 1px solid var(--rd-border); }
.rd-faq summary {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 0;
	font-weight: 600; font-size: 1.0625rem; cursor: pointer; list-style: none;
	transition: color var(--rd-dur-1) var(--rd-ease-out);
}
.rd-faq summary::-webkit-details-marker { display: none; }
.rd-faq summary::after {
	content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px;
	border-right: 2px solid var(--wp--preset--color--accent-2); border-bottom: 2px solid var(--wp--preset--color--accent-2);
	transform: translateY(-3px) rotate(45deg); transition: transform var(--rd-dur-2) var(--rd-ease-out);
}
.rd-faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.rd-faq summary:hover { color: var(--wp--preset--color--accent-2); }
.rd-faq details p { margin: 0 0 20px; color: var(--wp--preset--color--accent-4); }

/* Contact form (Contact Form 7 markup) */
.rd-form { display: grid; gap: 20px; margin-top: 8px; }
.rd-form p { margin: 0; }
.rd-form label { display: grid; gap: 8px; font-weight: 600; }
.rd-form input[type="text"], .rd-form input[type="email"], .rd-form textarea {
	width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--rd-radius-md);
	border: 1px solid var(--wp--preset--color--accent-4); background: var(--wp--preset--color--accent-3);
	color: var(--wp--preset--color--contrast); font: inherit; font-weight: 400;
	transition: border-color var(--rd-dur-1) var(--rd-ease-out), box-shadow var(--rd-dur-1) var(--rd-ease-out);
}
.rd-form textarea { min-height: 160px; resize: vertical; }
.rd-form input:hover, .rd-form textarea:hover { border-color: var(--wp--preset--color--accent-2); }
.rd-form input:focus-visible, .rd-form textarea:focus-visible {
	outline: none; border-color: var(--wp--preset--color--accent-2); box-shadow: 0 0 0 3px rgb(119 174 180 / .35);
}
.rd-form .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.rd-form .wpcf7-acceptance label { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; line-height: 1.5; }
.rd-form input[type="checkbox"] { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--wp--preset--color--accent-1); }
.rd-form .wpcf7-submit {
	justify-self: start; min-height: 48px; padding: 0 28px; border: 0; border-radius: var(--rd-radius-md); cursor: pointer;
	background: var(--wp--preset--color--accent-1); color: var(--wp--preset--color--base); font: inherit; font-weight: 600; font-size: 1.0625rem;
	box-shadow: 0 6px 20px rgb(91 151 158 / .22), inset 0 1px 0 rgb(255 255 255 / .25);
	transition: background-color var(--rd-dur-1) var(--rd-ease-out), transform var(--rd-dur-1) var(--rd-ease-out);
}
.rd-form .wpcf7-submit:hover { background: var(--wp--preset--color--accent-2); }
.rd-form .wpcf7-submit:active { transform: translateY(1px) scale(.98); }
.rd-form .wpcf7-submit:disabled { opacity: .55; cursor: not-allowed; }
.rd-form .wpcf7-not-valid { border-color: #ff8a80; }
.rd-form .wpcf7-not-valid-tip { display: block; margin-top: 6px; color: #ffb4ab; font-weight: 400; font-size: .9375rem; }
.rd-form .wpcf7-spinner { margin: 0 0 0 12px; vertical-align: middle; }
.rd-form .wpcf7-response-output { margin: 0 !important; padding: 12px 16px !important; border-radius: var(--rd-radius-md); border-width: 1px !important; }
.rd-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.rd-footer { border-top: 1px solid var(--rd-border); padding: 40px var(--rd-gutter); color: var(--wp--preset--color--accent-4); font-size: .9375rem; }
.rd-footer__inner {
	display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: baseline;
	max-width: var(--wp--style--global--wide-size); margin-inline: auto;
}
.rd-footer p { margin: 0; }
.rd-footer__links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.rd-footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
.rd-footer a { color: var(--wp--preset--color--contrast); font-weight: 600; }
.rd-footer a:hover { color: var(--wp--preset--color--accent-2); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.rd-game:hover, .rd-btn:active { transform: none; }
}

/* Snake Eyes page: numbers, 8 shots, chip lists */
.rd-numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: -24px 0 64px; padding: 0; list-style: none; }
.rd-numbers li { display: grid; gap: 2px; padding: 18px 20px; border: 1px solid var(--rd-border); border-radius: var(--rd-radius-lg); background: var(--wp--preset--color--accent-3); }
.rd-numbers b { font-size: clamp(2rem, 3vw + 1rem, 3rem); line-height: 1; letter-spacing: -.03em; color: var(--wp--preset--color--accent-2); }
.rd-numbers span { color: var(--wp--preset--color--accent-4); font-weight: 600; }
@media (min-width: 800px) { .rd-numbers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .rd-shots.rd-shots--8 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.rd-se__lists { display: grid; gap: 40px; margin-bottom: 48px; }
.rd-se__lists .rd-se__h2 { font-size: 1.375rem; margin-bottom: 16px; }
.rd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rd-chips li { padding: 8px 14px; border: 1px solid var(--rd-border); border-radius: 999px; background: var(--wp--preset--color--accent-3); font-weight: 600; font-size: .9375rem; line-height: 1.3; }
@media (min-width: 1000px) { .rd-se__lists { grid-template-columns: 1fr 1fr; } .rd-se__lists > div:last-child { grid-column: 1 / -1; } }
