 :root { --green: #1c8961; --space: 24px; --card-radius: 12px; --control-radius: 8px; font-family: "Open Sans", system-ui, sans-serif; color: #20362f; background: #f5f8f6; }
* { box-sizing: border-box; }
body { margin: 0; }
.game-shell { position: relative; isolation: isolate; min-height: 100dvh; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
header { padding: var(--space); background: white; font-size: 1.8rem; font-weight: 700; }
a { color: var(--green); text-decoration: none; }
main { flex: 1; padding: var(--space); }
.challenge { text-align: center; padding-block: 48px; }
h1 { font-size: 1.8rem; } h2 { font-size: 1.25rem; }
button { background: var(--green); color: white; border: 0; border-radius: var(--control-radius); padding: 16px 24px; font: inherit; cursor: pointer; margin-block: 12px; }
button:disabled { opacity: .6; cursor: default; }
input { font: inherit; padding: 12px; border: 1px solid #bacbc1; border-radius: var(--control-radius); }
input[inputmode] { display: block; width: 100%; margin-block: 12px; }
fieldset { border: 0; padding: 0; } legend { margin-bottom: 12px; }
.option { display: flex; align-items: center; gap: 12px; padding: 16px; background: white; border-radius: var(--card-radius); margin-block: 8px; }
.card { background: white; padding: 16px; border-radius: var(--card-radius); margin-block: 16px; }
nav { display: flex; justify-content: space-around; gap: 16px; background: white; border-radius: 24px; margin: 16px 24px; padding: 20px; box-shadow: 0 4px 24px #20362f12; }
nav a { color: #64766d; } nav a.active { color: var(--green); font-weight: 700; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
/* Route navigation focuses the page heading for screen readers. */
h1:focus { outline: none; }
#blazor-error-ui { display: none; background: #fff4ce; padding: 16px; position: fixed; bottom: 0; width: 100%; }

/* Shared game chrome */
:root { --green: #166b50; background: #f8f8f2; color: #183d32; font-family: "Segoe UI", system-ui, sans-serif; }
body { background-image: radial-gradient(ellipse at 80% 0%, #e6eddd80, transparent 50%); }
/* Constrain content while the shell and decorative background span the viewport. */
.game-shell > .app-header,.game-shell > main { width: 100%; max-width: 1040px; margin-inline: auto; }
.app-header { display: flex; align-items: center; justify-content: space-between; padding: 28px 40px; background: transparent; }
.brand { display: flex; align-items: center; font-size: 29px; font-weight: 800; letter-spacing: -1.5px; color: #183d32; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 37px; height: 37px; margin-right: 10px; border-radius: 12px; background: #183d32; color: #d6ef9b; font-size: 32px; font-style: italic; }
.brand-mark span { color: #d6ef9b; }.brand-dot { color: #73a461; }
.brand-tagline { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: #62796b; }
main { padding: 12px 40px 24px; }
nav { align-self: center; width: min(420px, calc(100% - 48px)); margin: 8px 24px 24px; border: 1px solid #e2e8dc; border-radius: 22px; padding: 18px; box-shadow: 0 8px 28px #183d3208; }
nav a { font-size: 14px; padding: 8px 18px; border-radius: 12px; transition: background .2s, color .2s; } nav a.active { background: #edf4e4; }
/* Main screen */
/* Show the main content immediately; decorative elements animate independently. */
.home-intro { padding: 24px 0 30px; }
.eyebrow { font-size: 10px; letter-spacing: 2.4px; font-weight: 800; color: #65865b; }
.home-intro h1 { font-size: clamp(38px, 5.5vw, 60px); letter-spacing: -2.6px; line-height: 1.06; font-weight: 800; margin: 16px 0; }
.home-intro h1 span { color: #679351; }
.home-intro p { color: #65746c; font-size: 15px; line-height: 1.8; margin: 0; }
.daily-card { position: relative; overflow: hidden; background: #183d32; border-radius: 28px; padding: 28px 32px; color: #fffef3; box-shadow: 0 16px 32px #183d3215; }
.daily-card::before { content: ""; position: absolute; width: 380px; height: 380px; right: -90px; top: -140px; background: radial-gradient(circle, #b9d98620, transparent 70%); pointer-events: none; }
.daily-topline { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.daily-label { display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 800; letter-spacing: 1.8px; color: #d0e8ac; }
.live-dot { width: 6px; height: 6px; background: #c0e58b; border-radius: 50%; box-shadow: 0 0 0 4px #c0e58b12; }
.edition { font-size: 9px; letter-spacing: 1.2px; color: #acbcb0; }
.daily-content { display: grid; grid-template-columns: 1fr 240px; align-items: center; gap: 20px; padding: 22px 0; }
.daily-copy h2 { font-size: clamp(25px, 3.6vw, 36px); letter-spacing: -1px; margin: 0 0 12px; font-weight: 750; }
.daily-copy p { color: #c1cfc5; line-height: 1.8; font-size: 14px; }
.challenge-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.challenge-tags span { border: 1px solid #ffffff20; padding: 7px 11px; border-radius: 8px; font-size: 11px; color: #dfe9dc; }
.curiosity-art { position: relative; height: 210px; display: grid; place-items: center; }
.question-orb { width: 130px; height: 130px; border-radius: 36px; transform: rotate(-12deg); display: grid; place-items: center; font-size: 94px; font-weight: 850; line-height: 1; color: #183d32; background: linear-gradient(135deg, #e1f3b2, #afd580); box-shadow: 8px 12px 0 #0c2a2240, inset 0 2px 0 #ffffff60; }
.orbit { position: absolute; width: 210px; height: 155px; border: 1px solid #c4e49a30; border-radius: 50%; transform: rotate(-30deg); }
.orbit-two { transform: rotate(40deg); width: 175px; height: 200px; }
.art-star,.art-number { position: absolute; color: #d1e6a8; }.star-one { left: 17px; top: 24px; font-size: 27px; }.star-two { right: 10px; bottom: 48px; font-size: 30px; }
.number-one { right: 5px; top: 17px; font-size: 16px; transform: rotate(12deg); }.number-two { left: 14px; bottom: 38px; font-size: 28px; transform: rotate(-15deg); }
.art-caption { position: absolute; bottom: 0; font-size: 8px; letter-spacing: 3px; color: #b3c5b5; }
.daily-action { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; border-top: 1px solid #ffffff16; padding-top: 22px; }
.play-button { display: flex; align-items: center; justify-content: space-between; gap: 50px; background: #d6eea8; color: #183d32; border-radius: 12px; font-size: 15px; font-weight: 750; padding: 16px 22px; margin: 0; transition: transform .2s, background .2s, box-shadow .2s; }
.play-button span { font-size: 23px; line-height: 1; }.play-button:hover { transform: translateY(-2px); background: #e4f6c4; box-shadow: 0 5px 16px #0002; }.play-button:active { transform: translateY(0); }
.action-note { font-size: 11px; color: #b9cbbc; }.home-error { flex-basis: 100%; margin: 0; color: #ffe4c7; }
.loading-status { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #d9e4d5; margin: 10px 0; }.loading-dot { width: 8px; height: 8px; border-radius: 50%; background: #d6eea8; animation: loading-pulse 1s ease-in-out infinite alternate; }
.how-to { padding-top: 32px; }.section-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; }.section-caption h2 { font-size: 16px; letter-spacing: -.3px; margin: 0; }.section-caption > span { font-size: 8px; font-weight: 750; letter-spacing: 1.5px; color: #7b897c; }
.discovery-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }.discovery-steps article { padding: 20px; border: 1px solid #e3e7db; border-radius: 16px; background: #ffffff60; }.step-number { display: inline-block; font-size: 11px; font-weight: 800; color: #75985d; padding-bottom: 10px; }.discovery-steps h3 { font-size: 14px; margin: 0 0 8px; font-weight: 750; }.discovery-steps p { font-size: 12px; line-height: 1.7; color: #6f7c71; margin: 0; }
.home-footer { text-align: center; font-size: 11px; color: #768573; margin: 26px 0 6px; }.home-footer span { color: #87a764; margin-right: 6px; }
@keyframes home-appear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes loading-pulse { to { opacity: .35; } }
@media (max-width: 600px) { .app-header { padding: 22px 24px; }.brand-tagline { font-size: 8px; letter-spacing: 1px; } main { padding: 8px 24px 20px; }.home-intro { padding-top: 14px; }.home-intro h1 { letter-spacing: -1.8px; }.daily-card { padding: 24px; }.daily-content { grid-template-columns: 1fr 115px; gap: 5px; }.curiosity-art { height: 170px; transform: scale(.7); transform-origin: center; width: 180px; margin-left: -30px; }.edition { display: none; }.daily-copy h2 { font-size: 25px; }.daily-copy p { font-size: 12px; }.challenge-tags span { font-size: 10px; }.daily-action { gap: 12px; }.play-button { width: 100%; }.action-note { text-align: center; width: 100%; }.section-caption > span { display: none; }.discovery-steps { gap: 8px; }.discovery-steps article { padding: 14px 10px; }.discovery-steps h3 { font-size: 12px; }.discovery-steps p { font-size: 11px; } }
@media (max-width: 380px) { .daily-content { grid-template-columns: 1fr; }.curiosity-art { display: none; }.brand-tagline { display: none; }.discovery-steps { grid-template-columns: 1fr; }.home-footer { line-height: 1.7; } }
@media (prefers-reduced-motion: reduce) { .home-screen,.loading-dot { animation: none; }.play-button,nav a { transition: none; } }

/* Results and settings share the home screen's visual language. */
.detail-screen { animation: home-appear .5s ease both; }
.page-intro { padding: 24px 0 30px; }
.page-intro h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -2px; line-height: 1.1; font-weight: 800; margin: 16px 0; }
.page-intro h1 span { color: #679351; }
.page-intro p { color: #65746c; font-size: 15px; line-height: 1.8; margin: 0; }
.score-card { display: grid; grid-template-columns: 1fr minmax(160px, .45fr); gap: 28px; align-items: center; padding: 32px; border-radius: 28px; color: #fffef3; background: radial-gradient(circle at top right, #b9d98620, transparent 65%), #183d32; box-shadow: 0 16px 32px #183d3215; }
.score-card h2 { font-size: clamp(25px, 3.6vw, 36px); letter-spacing: -1px; line-height: 1.2; margin: 22px 0 14px; }
.score-card p { color: #c1cfc5; font-size: 14px; line-height: 1.8; margin: 0; }
.score-total { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; padding: 24px 16px; border: 1px solid #d6eea830; border-radius: 20px; background: #d6eea80a; }
.score-total strong { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(36px, 6vw, 64px); line-height: 1.2; letter-spacing: -2px; color: #d6eea8; margin: 8px 0 12px; }
.score-total > span:last-child { font-size: 10px; letter-spacing: 2px; color: #c1cfc5; font-weight: 700; }
.score-spark { font-size: 28px; color: #d6eea8; }
.result-breakdown { padding-top: 32px; }
.result-list { display: grid; gap: 12px; margin-top: 18px; }
.result-card { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 16px; padding: 20px; margin: 0; border: 1px solid #e3e7db; }
.result-number,.settings-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #edf4e4; color: #537844; font-size: 12px; font-weight: 800; }
.result-copy { min-width: 0; }
.result-copy h3,.settings-row h3,.about-card h3 { margin: 0 0 7px; font-size: 15px; font-weight: 750; }
.result-copy p,.settings-row p,.about-card p { margin: 0; color: #65746c; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.result-score { background: #edf4e4; color: #166b50; border-radius: 8px; padding: 8px 12px; font-size: 12px; white-space: nowrap; }
.page-action { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 24px; }
.page-action p,.settings-note { font-size: 12px; line-height: 1.7; color: #65746c; }
.primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; background: #166b50; font-size: 14px; font-weight: 700; margin: 0; }
.primary-button:hover { background: #183d32; }
.primary-button span { font-size: 21px; }
.secondary-button { background: transparent; border: 1px solid #bacbc1; color: #166b50; font-size: 14px; }
.state-card { text-align: center; padding: 36px 24px; border: 1px solid #e3e7db; }
.state-card .loading-dot { display: inline-block; background: #166b50; }
.state-card h2 { font-size: 22px; margin: 16px 0 10px; }
.state-card p { color: #65746c; font-size: 14px; line-height: 1.8; margin-bottom: 24px; }
.settings-section + .settings-section { margin-top: 30px; }
.settings-card { padding: 0 24px; border: 1px solid #e3e7db; margin: 18px 0 12px; }
.settings-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 24px 0; }
.settings-row .account-button { margin: 0; min-height: 44px; justify-content: center; }
.settings-row + .settings-row { border-top: 1px solid #e3e7db; }
.settings-icon { font-size: 23px; }
.setting-value { font-size: 11px; font-weight: 700; color: #537844; background: #edf4e4; padding: 8px 10px; border-radius: 8px; }
.settings-note { margin: 0 4px; }
.app-build-info { overflow-wrap: anywhere; }
.android-sign-in [hidden] { display: none; }
.about-card { display: flex; align-items: center; gap: 24px; border: 1px solid #e3e7db; padding: 24px; margin: 18px 0 0; background: #edf4e460; }
.about-mark { flex-shrink: 0; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: #183d32; color: #d6eea8; font-size: 52px; font-weight: 800; transform: rotate(-8deg); }
.text-link { display: inline-block; font-size: 13px; font-weight: 700; margin-top: 16px; }
.text-link:hover { text-decoration: underline; }
@media (max-width: 600px) {
    .page-intro { padding-top: 14px; }.page-intro h1 { letter-spacing: -1.5px; }
    .score-card { padding: 24px; grid-template-columns: 1fr; gap: 24px; }.score-total { padding: 16px; }.score-total strong { font-size: 48px; }
    .result-card { grid-template-columns: 36px 1fr; gap: 12px; padding: 16px; }.result-number { width: 36px; height: 36px; }.result-score { grid-column: 2; justify-self: start; }
    .page-action { gap: 10px; }.page-action .primary-button { width: 100%; }.page-action p { margin: 0; }
    .settings-card { padding-inline: 16px; }.settings-row { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding-block: 20px; }.setting-value { grid-column: 2; justify-self: start; }
    .settings-row .account-button { grid-column: 2; justify-self: start; max-width: 100%; padding: 12px 16px; }
    .about-card { align-items: flex-start; gap: 16px; padding: 20px; }.about-mark { width: 48px; height: 48px; font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) { .detail-screen { animation: none; } }

/* Playful detail screens: vector badges, organic shapes, and gentle motion. */
.decorative-icon { display: block; width: 26px; height: 26px; flex-shrink: 0; }
.play-button > .decorative-icon { width: 22px; height: 22px; }
.primary-button > .decorative-icon,.secondary-button > .decorative-icon { width: 20px; height: 20px; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; }
.text-link > .decorative-icon { width: 18px; height: 18px; }
.archive-home-link > .decorative-icon { width: 22px; height: 22px; }
.icon-fill { fill: #afd580; fill-opacity: .28; }
nav a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 16px; padding: 8px 12px; }
nav .decorative-icon { width: 20px; height: 20px; }
.detail-screen { position: relative; isolation: isolate; }
.abstract-backdrop { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.abstract-blob { position: absolute; display: block; filter: blur(1px); }
.blob-lime { width: min(65%, 460px); aspect-ratio: 1; right: -8%; top: 0; border-radius: 62% 38% 40% 60% / 48% 56% 44% 52%; background: radial-gradient(circle at 35% 30%, #e4efc7b0, #d7e5be30 70%); transform: rotate(-20deg); animation: shape-drift 8s ease-in-out 2 alternate; }
.blob-sage { width: min(55%, 360px); aspect-ratio: 1; left: -12%; top: 42%; border-radius: 38% 62% 64% 36% / 56% 38% 62% 44%; background: linear-gradient(135deg, #d2e5dc60, #e9edcd40); }
.abstract-ring { position: absolute; width: 220px; height: 140px; right: 5%; top: 38px; border: 1px solid #8da46b25; border-radius: 50%; transform: rotate(-32deg); }
.abstract-ring::after { content: ''; position: absolute; inset: 14px -18px; border: 1px solid #8da46b20; border-radius: 50%; transform: rotate(55deg); }
.abstract-dots { position: absolute; right: 3%; bottom: 16%; width: 115px; height: 100px; background-image: radial-gradient(#71945b30 1.5px, transparent 1.5px); background-size: 14px 14px; transform: rotate(-12deg); mask-image: linear-gradient(to bottom, black, transparent); }
.abstract-spark { position: absolute; right: 10%; top: 35px; color: #75985d60; transform: rotate(15deg); }
.abstract-spark .decorative-icon { width: 42px; height: 42px; }
.detail-screen .card { border-radius: 26px; box-shadow: 0 8px 28px #183d3206; }
.score-card { position: relative; isolation: isolate; overflow: hidden; border-radius: 36px; }
.score-card::before,.score-card::after { content: ''; position: absolute; z-index: -1; pointer-events: none; width: 300px; height: 300px; border: 1px solid #d6eea814; border-radius: 42% 58% 60% 40%; right: -70px; top: -110px; transform: rotate(25deg); }
.score-card::after { right: -100px; top: -85px; transform: rotate(60deg); }
.score-total { border-radius: 28px; background: linear-gradient(145deg, #d6eea813, #d6eea804); box-shadow: inset 0 1px 0 #ffffff0d; }
.trophy-badge { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 22px; background: #d6eea815; border: 1px solid #d6eea825; transform: rotate(-8deg); animation: badge-float 3s ease-in-out 4; }
.trophy-badge .decorative-icon { width: 40px; height: 40px; }
.result-number,.settings-icon { border-radius: 16px; background: linear-gradient(135deg, #e8f2d6, #dfece3); box-shadow: inset 0 1px 0 #fff9, 0 4px 10px #183d3206; }
.result-score { display: inline-flex; align-items: center; gap: 6px; border-radius: 14px; }
.result-score .decorative-icon { width: 16px; height: 16px; }
.setting-value { border-radius: 14px; }
.about-mark { border-radius: 24px; box-shadow: 5px 6px 0 #183d3210; animation: badge-float 3s ease-in-out 4; }
.about-mark .decorative-icon { width: 46px; height: 46px; }
.detail-screen .primary-button,.detail-screen .secondary-button { border-radius: 18px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.detail-screen .primary-button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px #183d3220; }
.detail-screen .primary-button:active,.detail-screen .secondary-button:active { transform: scale(.98); }
.result-card { animation: card-reveal .5s ease both; animation-delay: var(--reveal-delay, 0ms); }
.settings-card,.about-card { animation: card-reveal .6s ease both; animation-delay: .1s; }.about-card { animation-delay: .2s; }
.result-card,.about-card { transition: border-color .2s ease, box-shadow .2s ease; }
@media (hover: hover) { .result-card:hover,.about-card:hover { border-color: #b7cba2; box-shadow: 0 10px 26px #183d3210; }.settings-row:hover .settings-icon { transform: rotate(-6deg); }.settings-icon { transition: transform .2s ease; } }
@keyframes card-reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes badge-float { 0%,100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-5px) rotate(-3deg); } }
@keyframes shape-drift { from { transform: rotate(-20deg) translateY(0); } to { transform: rotate(-8deg) translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .abstract-blob { animation: none; } }
@media (max-width: 600px) { .score-card { border-radius: 28px; }.detail-screen .card { border-radius: 22px; }.abstract-ring { right: -90px; opacity: .6; }.abstract-spark { right: 1%; top: 0; }.about-mark .decorative-icon { width: 30px; height: 30px; }nav { gap: 4px; padding: 12px; }nav a { gap: 6px; padding: 10px 8px; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) {
    .detail-screen,.detail-screen * { animation: none; transition: none; }
    .detail-screen .primary-button:hover,.detail-screen .primary-button:active,.detail-screen .secondary-button:active,.settings-row:hover .settings-icon { transform: none; }
}

/* Carry the illustrated style through discovery and gameplay. */
.home-screen { position: relative; isolation: isolate; }
.home-screen .daily-card { border-radius: 38px; }
.home-screen .play-button { border-radius: 18px; }
.challenge-tags span { border-radius: 14px; }
.discovery-steps article { position: relative; border-radius: 26px; background: #ffffffb0; box-shadow: 0 8px 24px #183d3205; animation: card-reveal .6s ease both; }
.discovery-steps article:nth-child(2) { animation-delay: .08s; }.discovery-steps article:nth-child(3) { animation-delay: .16s; }
.step-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 18px; margin-bottom: 16px; color: #166b50; background: linear-gradient(140deg, #e0edc5, #e6efe7); box-shadow: inset 0 1px 0 #fff; }
.step-icon .decorative-icon { width: 30px; height: 30px; }
.discovery-steps .step-number { position: absolute; top: 24px; right: 20px; }
.question-orb { animation: curiosity-bob 4s ease-in-out 3; }
.question-panel { padding: 32px; border: 1px solid #dce5d4; border-radius: 34px; background: linear-gradient(135deg, #fffffff0, #f6f9eff0); box-shadow: 0 16px 40px #183d3208; animation: card-reveal .5s ease both; }
.question-topline { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.question-badge { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 20px; color: #d6eea8; background: #183d32; transform: rotate(-6deg); box-shadow: 4px 5px 0 #183d3210; }
.question-badge .decorative-icon { width: 32px; height: 32px; }
.question-panel > h2 { font-size: clamp(23px, 3vw, 30px); line-height: 1.4; letter-spacing: -.7px; margin: 0 0 28px; }
.question-panel legend { font-size: 13px; color: #65746c; font-weight: 700; }
.question-hints { margin: -8px 0 24px; }
.question-hint-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.question-hint-button { min-height: 44px; padding: 10px 14px; margin: 0; }
.question-hint-progress { color: #65746c; font-size: 12px; }
.question-hint-list { display: grid; gap: 12px; margin: 14px 0 0; padding: 18px 20px 18px 42px; border: 1px solid #d3e1bf; border-radius: 18px; background: #edf4e4; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.question-hint-list li { padding-left: 4px; }
.question-hint-list li::marker { color: #537844; font-weight: 700; }
.question-panel .option { border: 1px solid #dde5d7; border-radius: 20px; padding: 18px 20px; margin-block: 12px; transition: background .2s, border-color .2s, box-shadow .2s; cursor: pointer; line-height: 1.6; }
.question-panel .option-selected { background: #edf5df; border-color: #729c5d; box-shadow: 0 0 0 2px #729c5d15; }
.question-panel input { accent-color: #166b50; border-radius: 16px; }
.question-panel input[inputmode] { padding: 18px; background: #fff; border-color: #c5d4ba; }
.question-panel fieldset:disabled .option { cursor: default; }
.question-panel .primary-button { margin-top: 18px; }
.question-panel .feedback-card { position: relative; background: #eaf3df; border: 1px solid #d3e1bf; padding: 24px; margin-top: 24px; animation: card-reveal .4s ease both; }
.feedback-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 15px; background: #fff9; color: #166b50; }
.feedback-card h2 { margin: 14px 0 8px; }.feedback-card p { color: #536b54; line-height: 1.8; overflow-wrap: anywhere; }
.question-loading { display: flex; align-items: center; gap: 10px; color: #65746c; }.question-loading .loading-dot { background: #166b50; }
@keyframes curiosity-bob { 0%,100% { transform: translateY(0) rotate(-12deg); } 50% { transform: translateY(-7px) rotate(-8deg); } }
@media (hover: hover) { .question-panel fieldset:not(:disabled) .option:hover { border-color: #8cad78; background: #f0f6e8; }.discovery-steps article:hover .step-icon { transform: rotate(-6deg); }.step-icon { transition: transform .2s; } }
@media (max-width: 600px) { .home-screen .daily-card { border-radius: 30px; }.discovery-steps article { border-radius: 22px; }.step-icon { width: 40px; height: 40px; border-radius: 15px; }.discovery-steps .step-number { top: 16px; right: 10px; font-size: 9px; }.question-panel { padding: 22px; border-radius: 28px; }.question-panel .option { padding: 16px; }.question-panel .primary-button { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .home-screen,.home-screen *,.question-screen,.question-screen * { animation: none; transition: none; }.discovery-steps article:hover .step-icon { transform: none; }.home-screen .play-button:hover,.home-screen .play-button:active { transform: none; } }

/* Archive navigation and locally saved challenge cards. */
nav { width: min(560px, calc(100% - 48px)); }
.archive-screen .page-intro { padding-block: 16px 20px; }
.archive-screen .page-intro h1 { font-size: clamp(30px, 4vw, 40px); margin-block: 10px; }
.archive-screen .page-intro p { font-size: 13px; }
.archive-list { display: grid; gap: 8px; }
.detail-screen .archive-card { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; margin: 0; border: 1px solid #dce5d4; padding: 12px 16px; border-radius: 18px; }
.archive-card > .settings-icon { grid-column: 1; grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 12px; }
.archive-card > .settings-icon .decorative-icon { width: 22px; height: 22px; }
.archive-copy { grid-column: 2; min-width: 0; }.archive-copy h2 { font-size: 15px; margin: 0 0 3px; }.archive-copy p { font-size: 11px; color: #65746c; margin: 0; line-height: 1.5; }
.archive-card > .result-score { grid-column: 2; justify-self: start; padding: 3px 8px; border-radius: 8px; font-size: 11px; }
.archive-card > .primary-button { grid-column: 3; grid-row: 1 / 3; min-height: 44px; padding: 10px 12px; gap: 10px; font-size: 12px; border-radius: 12px; }
.archive-card > .primary-button .decorative-icon { width: 16px; height: 16px; }
.archive-home-link { display: flex; align-items: center; gap: 16px; padding: 22px; margin-top: 28px; border: 1px solid #dce5d4; border-radius: 26px; background: #ffffff90; }
.archive-home-link > span:nth-child(2) { flex: 1; }.archive-home-link strong { display: block; font-size: 15px; }.archive-home-link small { display: block; margin-top: 6px; color: #65746c; line-height: 1.6; }.archive-home-link > span:last-child { font-size: 24px; }
@media (max-width: 600px) { nav a { flex-direction: column; font-size: 11px; gap: 5px; }nav { gap: 2px; }.detail-screen .archive-card { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px; }.archive-card > .settings-icon { display: none; }.archive-copy,.archive-card > .result-score { grid-column: 1; }.archive-card > .primary-button { grid-column: 2; }.archive-home-link { padding: 18px; } }

/* Information pages and appearance controls. */
.settings-link { color: inherit; }
.settings-link:hover h3 { text-decoration: underline; }
.theme-select { font: inherit; font-size: 13px; padding: 10px 12px; border: 1px solid #bacbc1; border-radius: 14px; background: #edf4e4; color: #183d32; max-width: 100%; }
.faq-card,.policy-card { border: 1px solid #e3e7db; padding: 8px 24px; margin-top: 18px; }
.faq-card details { padding: 20px 0; }
.faq-card details + details { border-top: 1px solid #e3e7db; }
.faq-card summary { cursor: pointer; font-size: 15px; font-weight: 750; line-height: 1.6; }
.faq-card p,.policy-card p { font-size: 14px; line-height: 1.9; color: #65746c; margin: 12px 0 0; }
.policy-card { padding-block: 24px; }
.policy-card h3 { font-size: 16px; margin: 28px 0 0; }
.policy-card h3:first-child { margin-top: 0; }
@media (max-width: 600px) { .theme-select { grid-column: 2; justify-self: start; }.settings-link > .decorative-icon { grid-column: 2; }.faq-card,.policy-card { padding-inline: 20px; } }

/* Dark palette keeps the same green accents and illustrated surfaces. */
:root {
    color-scheme: light;
    --page-background: #f8f8f2;
    --text-color: #183d32;
    --muted-text-color: #65746c;
    --surface-background: #fff;
    --button-background: #166b50;
    --button-text: #fff;
    --link-hover-color: #183d32;
    --bs-body-color: var(--text-color);
    --bs-body-bg: var(--page-background);
    --bs-emphasis-color: var(--text-color);
    --bs-secondary-color: var(--muted-text-color);
    --bs-heading-color: var(--text-color);
    --bs-link-color: var(--green);
    --bs-link-hover-color: var(--link-hover-color);
}
body { color: var(--text-color); background-color: var(--page-background); }
.card { --bs-card-color: var(--text-color); --bs-card-bg: var(--surface-background); color: var(--text-color); }
/* Headings inherit the foreground of dark feature cards as well as regular surfaces. */
h1,h2,h3,h4,h5,h6 { color: inherit; }
button { background: var(--button-background); color: var(--button-text); }
a:hover { color: var(--link-hover-color); }
input::placeholder { color: var(--muted-text-color); opacity: 1; }
:root[data-theme="dark"] {
    color-scheme: dark;
    --green: #a6d790;
    --page-background: #101e19;
    --text-color: #e4eee5;
    --muted-text-color: #b5c7b9;
    --surface-background: #1b3027;
    --button-background: #b9dd98;
    --button-text: #183d32;
    --link-hover-color: #d6eea8;
    background: var(--page-background);
    color: var(--text-color);
}
[data-theme="dark"] body { background-image: radial-gradient(ellipse at 80% 0%, #29413080, transparent 50%); }
[data-theme="dark"] .brand { color: #e4eee5; }
[data-theme="dark"] .card,[data-theme="dark"] nav,[data-theme="dark"] .option { background: #1b3027; }
[data-theme="dark"] .discovery-steps article,[data-theme="dark"] .archive-home-link,[data-theme="dark"] .about-card { background: #1b3027d9; }
[data-theme="dark"] .question-panel { background: linear-gradient(135deg, #1b3027f0, #20382cf0); }
[data-theme="dark"] .brand-tagline,[data-theme="dark"] .home-intro p,[data-theme="dark"] .page-intro p,[data-theme="dark"] .section-caption > span,[data-theme="dark"] .discovery-steps p,[data-theme="dark"] .home-footer,[data-theme="dark"] .result-copy p,[data-theme="dark"] .settings-row p,[data-theme="dark"] .about-card p,[data-theme="dark"] .page-action p,[data-theme="dark"] .settings-note,[data-theme="dark"] .state-card p,[data-theme="dark"] .question-panel legend,[data-theme="dark"] .question-loading,[data-theme="dark"] .archive-copy p,[data-theme="dark"] .archive-home-link small,[data-theme="dark"] .faq-card p,[data-theme="dark"] .policy-card p { color: #b5c7b9; }
[data-theme="dark"] .home-intro h1 span,[data-theme="dark"] .page-intro h1 span,[data-theme="dark"] .eyebrow,[data-theme="dark"] .step-number { color: #a6d790; }
[data-theme="dark"] nav a { color: #b5c7b9; }
[data-theme="dark"] nav a.active,[data-theme="dark"] .result-score,[data-theme="dark"] .setting-value { color: #c6e7a9; background: #2d4935; }
[data-theme="dark"] .result-number,[data-theme="dark"] .settings-icon,[data-theme="dark"] .step-icon { color: #c6e7a9; background: linear-gradient(135deg, #355338, #29473a); box-shadow: inset 0 1px 0 #ffffff12; }
[data-theme="dark"] .card,[data-theme="dark"] nav,[data-theme="dark"] .discovery-steps article,[data-theme="dark"] .question-panel,[data-theme="dark"] .question-panel .option,[data-theme="dark"] .archive-home-link,[data-theme="dark"] .settings-row + .settings-row,[data-theme="dark"] .faq-card details + details { border-color: #3a5545; }
[data-theme="dark"] input,[data-theme="dark"] .question-panel input[inputmode],[data-theme="dark"] .theme-select { background: #14271f; color: #e4eee5; border-color: #62816a; }
[data-theme="dark"] .question-panel input { accent-color: #a6d790; }
[data-theme="dark"] .question-panel .option-selected,[data-theme="dark"] .question-panel fieldset:not(:disabled) .option:hover { background: #304b33; border-color: #a6d790; }
[data-theme="dark"] .question-panel .feedback-card { background: #29432e; border-color: #62816a; }
[data-theme="dark"] .question-hint-list { background: #29432e; border-color: #62816a; }
[data-theme="dark"] .question-hint-progress { color: #b5c7b9; }
[data-theme="dark"] .question-hint-list li::marker { color: #c6e7a9; }
[data-theme="dark"] .feedback-card p { color: #c5d9c4; }
[data-theme="dark"] .feedback-icon { color: #c6e7a9; background: #355338; }
[data-theme="dark"] .primary-button { background: #b9dd98; color: #183d32; }
[data-theme="dark"] .primary-button:hover { background: #d6eea8; }
[data-theme="dark"] .secondary-button { color: #c6e7a9; border-color: #62816a; }
[data-theme="dark"] .blob-lime,[data-theme="dark"] .blob-sage { opacity: .12; }
[data-theme="dark"] #blazor-error-ui { background: #493d20; color: #fff4ce; }
[data-theme="dark"] .status-bar-safe-area { background-color: #101e19; }

/* Native modal provides keyboard focus containment and Escape to close. */
.share-dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 24px; border: 1px solid #62816a; border-radius: 24px; color: var(--text-color); background: var(--surface-background); box-shadow: 0 24px 80px #0005; }
.share-dialog::backdrop { background: #07140dcc; }
.share-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.share-dialog-header h2 { margin: 0; }
.share-dialog-header button { margin: 0; padding: 10px 14px; }
.share-dialog > p { color: var(--muted-text-color); font-size: 13px; line-height: 1.7; }
.share-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.share-actions :is(button, a) { margin: 0; }
.share-actions [hidden] { display: none; }
.share-status { min-height: 1.7em; margin-bottom: 0; }

.share-image-preview { display: block; width: 100%; border-radius: 16px; margin-bottom: 16px; }
.share-dialog[open] { animation: share-open .28s ease-out; }
.share-dialog[open]::backdrop { animation: share-backdrop .28s ease-out; }
.share-dialog .share-actions { justify-content: center; }
.share-dialog .share-actions :is(button, a) { width: 56px; height: 56px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 18px; transition: transform .18s ease, box-shadow .18s ease; }
.share-dialog .share-actions .decorative-icon { width: 26px; height: 26px; transition: transform .18s ease; }
.share-dialog .share-actions a.primary-button { color: #fffef3; }
[data-theme="dark"] .share-dialog .share-actions a.primary-button { color: #183d32; }
.share-dialog[open] .share-actions :is(button, a) { animation: share-icon-in .32s ease-out backwards; }
.share-dialog .share-actions :is(button, a):nth-child(2) { animation-delay: .05s; }
.share-dialog .share-actions :is(button, a):nth-child(3) { animation-delay: .1s; }
.share-dialog .share-actions :is(button, a):nth-child(4) { animation-delay: .15s; }
.share-dialog .share-actions :is(button, a):nth-child(5) { animation-delay: .2s; }
.share-dialog .share-actions :is(button, a):nth-child(6) { animation-delay: .25s; }
.share-dialog .share-actions :is(button, a):focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
@media (hover: hover) {
    .share-dialog .share-actions :is(button, a):not(:disabled):hover { transform: translateY(-3px); box-shadow: 0 6px 16px #183d3226; }
    .share-dialog .share-actions :is(button, a):not(:disabled):hover .decorative-icon { transform: rotate(-6deg) scale(1.08); }
}
.share-dialog .share-actions :is(button, a):not(:disabled):active { transform: scale(.94); }
@keyframes share-open { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes share-backdrop { from { opacity: 0; } to { opacity: 1; } }
@keyframes share-icon-in { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .share-dialog[open],.share-dialog[open]::backdrop,.share-dialog[open] .share-actions :is(button, a) { animation: none; }
    .share-dialog .share-actions :is(button, a),.share-dialog .share-actions .decorative-icon { transition: none; transform: none !important; }
}

.admin-question-videos { padding: 24px; }
.admin-store-assets { padding: 24px; border-top: 1px solid #e2e8dc; }
.admin-store-assets p { color: var(--muted-text-color); line-height: 1.7; }
.admin-store-assets .secondary-button { min-height: 44px; }
@media (max-width: 600px) {
    .admin-store-assets { padding: 20px 16px; }
    .admin-store-assets .share-actions { flex-direction: column; }
    .admin-store-assets .secondary-button { width: 100%; justify-content: space-between; }
}
[data-theme="dark"] .admin-store-assets { border-color: #3a5545; }
.question-video-short-label { display: none; }
@media (max-width: 600px) {
    .admin-question-videos { padding: 20px 16px; }
    .admin-question-videos .share-actions { gap: 8px; }
    .admin-question-videos .secondary-button { min-height: 44px; padding: 10px 12px; margin: 0; gap: 6px; }
    .question-video-label { display: none; }
    .question-video-short-label { display: inline; }
}
.admin-question-videos p { color: var(--muted-text-color); line-height: 1.7; }
.admin-video-frame { display: block; width: min(100%, 270px); margin: 24px auto 0; border-radius: 18px; }
.admin-video-frame[hidden] { display: none; }

/* Community forms share the same surfaces and focus styles as the game. */
.community-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 28px; margin-top: 26px; }
.community-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; }
.community-links .decorative-icon { width: 20px; height: 20px; }
.contact-form { padding: 28px; border: 1px solid #dce5d4; }
.form-field { display: grid; gap: 8px; margin-bottom: 22px; min-width: 0; }
.form-field label { font-size: 14px; font-weight: 700; }
.form-field label span { font-weight: 400; color: var(--muted-text-color); }
.form-field input,.form-field textarea,.form-field select { width: 100%; min-width: 0; padding: 14px; border: 1px solid #bacbc1; border-radius: 14px; font: inherit; font-size: 14px; color: var(--text-color); background: var(--surface-background); }
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field textarea::placeholder { color: var(--muted-text-color); opacity: 1; }
.form-field small,.form-note { color: var(--muted-text-color); font-size: 12px; line-height: 1.7; }
.form-note { margin: 0 0 22px; }
.form-availability { padding: 12px 16px; border-radius: 14px; color: var(--text-color); background: var(--page-background); font-size: 13px; }
[data-theme="dark"] .form-field input,[data-theme="dark"] .form-field textarea,[data-theme="dark"] .form-field select { background: #14271f; border-color: #62816a; }
@media (max-width: 600px) { .contact-form { padding: 20px; }.contact-form .primary-button { width: 100%; } }

.request-progress { display: block; position: relative; overflow: hidden; width: 160px; max-width: 100%; height: 5px; border-radius: 999px; background: currentColor; background: color-mix(in srgb, currentColor 20%, transparent); }
.request-progress::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: inherit; background: currentColor; animation: request-progress 1.2s ease-in-out infinite; }
.contact-form button:has(.request-progress) { min-height: 52px; }
.question-rating > .request-progress { margin-top: 16px; color: var(--green); }
@keyframes request-progress { from { transform: translateX(-100%); } to { transform: translateX(350%); } }
@media (prefers-reduced-motion: reduce) { .request-progress::after { animation: none; left: 30%; } }
.question-ratings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.question-rating { display: flex; flex-direction: column; min-width: 0; padding: 20px; }
.question-rating h3 { margin: 0 0 16px; font-size: 16px; }
.question-rating .share-actions { margin-top: auto; padding-top: 8px; }
.question-rating .share-actions :is(button, a) { padding: 12px 16px; }
.question-rating p { margin-bottom: 0; }
.question-rating p:empty { margin: 0; }
.question-rating[aria-busy="true"] button { cursor: wait; }
.question-rating [aria-pressed="true"] { border-color: var(--color-primary, #679351); outline: 2px solid #679351; }
@media (max-width: 800px) { .question-ratings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .question-ratings { grid-template-columns: minmax(0, 1fr); } }
.promo-preview-card { padding: 28px; background: linear-gradient(145deg, #eaf0e1, #f8f8f2); border: 1px solid #e3e7db; }
.promo-buttons { justify-content: center; }
.promo-buttons p:empty { display: none; }
[data-theme="dark"] .promo-preview-card { background: linear-gradient(145deg, #253d32, #192b23); border-color: #3b5142; }
@media (max-width: 600px) { .promo-preview-card { padding: 16px; } }
.promo-frame { display: block; height: auto; width: min(100%, 420px); aspect-ratio: 9 / 16; margin: auto; overflow: hidden; position: relative; isolation: isolate; container-type: inline-size; background: #183d32; color: #fffef3; border-radius: 24px; box-shadow: 0 20px 60px #183d3226; }
.promo-frame:fullscreen { width: min(100vw, 56.25dvh); height: 100dvh; border-radius: 0; box-shadow: none; margin: auto; }
.promo-frame::backdrop { background: #183d32; }
.admin-store-preview { aspect-ratio: auto; margin: 24px auto 0; border-radius: 12px; }
.admin-store-preview[hidden] { display: none; }
