@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Courgette&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');
:root{--bg:#faf8f3;--ink:#172b2a;--muted:var(--text-muted);--gold:#bc873d;--line:var(--border)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif}button,a,input{touch-action:manipulation}button,a{transition:.2s}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--secondary);outline-offset:4px}header{max-width:1200px;margin:auto;padding:26px 36px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.brand{color:var(--ink);text-decoration:none;font-size:26px;display:flex;align-items:center;gap:10px}.brand>span{font-size:10px;letter-spacing:2px;border-left:1px solid var(--border);padding-left:13px}nav{display:flex;gap:10px}nav button,.play-top button{border:0;background:none;color:var(--ink);padding:10px}main{max-width:1200px;margin:auto;padding:0 36px}.hero{display:grid;grid-template-columns:1.2fr 1fr;align-items:center;min-height:480px;gap:40px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:var(--gold)}h1{font-family:'Playfair Display',Georgia,serif;font-size:64px;line-height:1.12;letter-spacing:-2px;margin:22px 0}h1 em{font-style:normal;color:var(--text)}.intro{font-size:17px;line-height:1.7;max-width:470px;color:var(--muted)}.primary{display:inline-flex;align-items:center;justify-content:center;gap:30px;background:var(--ink);color:var(--secondary);text-decoration:none;border:0;border-radius:10px;padding:16px 24px;font-weight:600}.primary:hover{background:var(--surface)}.chips{display:flex;gap:18px;margin-top:26px;color:var(--muted);font-size:11px}.chips span:before{content:'✓ ';color:var(--text)}.art{height:350px;position:relative;display:grid;place-items:center}.halo{position:absolute;width:320px;height:320px;border-radius:50%;background:var(--surface);border:28px solid var(--border)}.book{position:relative;width:180px;height:225px;background:linear-gradient(120deg,var(--surface),var(--surface));border-radius:12px 22px 22px 12px;box-shadow:12px 12px 0 #d7cab2,18px 20px 35px #183b3029;transform:rotate(-12deg);border:2px solid var(--border);display:grid;place-items:center}.book:before{content:'';position:absolute;inset:14px;border:1px solid var(--border);border-radius:5px}.book span{font-size:70px;color:var(--link)}.tag{position:absolute;padding:12px 20px;background:var(--surface);border:1px solid var(--line);border-radius:9px;font-size:10px;letter-spacing:2px;box-shadow:0 8px 25px #172b2a09}.tag1{top:48px;right:5px;transform:rotate(8deg)}.tag2{bottom:22px;left:8px;transform:rotate(-5deg)}.spark{position:absolute;top:30px;left:30px;font-size:50px;color:var(--link)}.section-title{display:flex;align-items:end;justify-content:space-between;margin:10px 0 26px}h2{font-family:'Playfair Display',Georgia,serif;font-size:32px;margin:10px 0}.muted{color:var(--muted);font-size:13px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.card{background:var(--surface);padding:28px;border:1px solid var(--line);border-radius:18px}.icon{width:54px;height:54px;border-radius:15px;background:#faf0db;color:var(--link);display:grid;place-items:center;font-size:30px;margin-bottom:26px}.purple{background:var(--surface);color:var(--ui-plain-text)}.green{background:var(--surface);color:var(--text)}.category{font-size:10px;letter-spacing:1.5px;color:var(--muted);font-weight:700}h3{font-size:22px;margin:12px 0}.card p{color:var(--muted);line-height:1.65;min-height:55px;font-size:14px}.card small{font-size:11px;color:var(--text-muted)}.card button{display:flex;justify-content:space-between;width:100%;padding:18px 0 0;margin-top:22px;border:0;border-top:1px solid var(--line);background:var(--surface);text-align:left;font-weight:700;color:var(--ink)}.live{display:flex;gap:35px;justify-content:space-between;align-items:center;background:var(--surface);border-radius:18px;padding:30px 36px;margin-top:30px}.live p:not(.eyebrow){color:var(--muted);max-width:650px;line-height:1.6;font-size:14px}.toggle{min-width:185px;font-weight:600}.toggle input{accent-color:var(--secondary);width:20px;height:20px;vertical-align:middle}.toggle small{display:block;color:var(--muted);font-size:10px;margin-top:10px;font-weight:400}.stats{display:flex;justify-content:space-around;padding:35px 0;text-align:center;font-size:11px;color:var(--muted)}.stats b{display:block;font-size:25px;color:var(--ink);margin-bottom:8px}footer{max-width:1200px;margin:auto;padding:26px 36px;border-top:1px solid var(--line);font-size:12px}footer p{color:var(--muted);max-width:750px;line-height:1.7;font-size:11px}.play-top{display:flex;justify-content:space-between;align-items:center;margin:25px 0;color:var(--muted);font-size:12px}.game-wrap{max-width:820px;margin:40px auto 80px}.game-meta{display:flex;justify-content:space-between;font-weight:600;font-size:14px}.progress-track{height:5px;background:#e4e8df;border-radius:5px;margin:18px 0 25px}#bar{height:100%;background:var(--surface);border-radius:5px;transition:width .3s}.question-card{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:36px}.question-top{display:flex;justify-content:space-between;color:var(--gold);font-size:12px}.question-card h2{font-size:34px;line-height:1.35;margin:30px 0}.answers{display:grid;grid-template-columns:1fr 1fr;gap:13px}.answer{display:flex;align-items:center;gap:15px;text-align:left;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:12px;color:var(--ink);min-height:65px}.answer span{background:var(--surface);padding:5px 10px;border-radius:6px;font-size:12px}.answer:hover:not(:disabled){border-color:var(--border)}.answer.correct{background:var(--surface);border-color:var(--border)}.answer.wrong{background:var(--surface);border-color:var(--border)}.answer.selected{border:2px solid var(--border)}.answer:disabled{cursor:default;color:var(--ink);opacity:1}.game-actions{display:flex;gap:12px;justify-content:end;margin-top:25px}.secondary,#moreHint{background:var(--surface);border:1px solid var(--border);padding:13px 20px;border-radius:9px;color:var(--ink)}#feedback{background:var(--surface);padding:20px;border-radius:12px;margin-top:22px;line-height:1.65;font-size:14px}#feedback strong{display:block}#feedback small{color:var(--muted)}#hint{font-size:18px;line-height:1.6;color:var(--muted)}#moreHint{margin-bottom:20px}.note{text-align:center;color:var(--muted);font-size:12px;line-height:1.7}.finish{text-align:center;padding:25px}.finish b{font-size:60px;display:block;color:var(--text);margin:22px}.finish .primary{margin:10px}body.live-screen .question-card h2{font-size:42px}body.live-screen .answer{font-size:21px}[hidden]{display:none!important}@media(max-width:750px){header{padding:20px}.brand{font-size:22px}.brand>span{display:none}nav{gap:0}nav button{font-size:12px;padding:8px}main{padding:0 20px}.hero{grid-template-columns:1fr;gap:0;padding:30px 0}.hero h1{font-size:47px}.art{height:270px}.halo{width:240px;height:240px}.book{width:130px;height:175px}.tag1{right:15%;top:25px}.tag2{left:12%}.cards{grid-template-columns:1fr}.section-title{display:block}.live{display:block;padding:25px}.toggle{display:block;margin-top:20px}.stats{gap:15px;font-size:10px}.stats b{font-size:20px}.question-card{padding:22px}.question-card h2,body.live-screen .question-card h2{font-size:27px}.answers{grid-template-columns:1fr}.game-wrap{margin-top:20px}.game-actions{flex-wrap:wrap}.chips{gap:12px;font-size:10px}footer{padding:24px 20px}.play-top{font-size:10px}}
/* Premium midnight game theme */
:root{--bg:#080e19;--ink:#f6f7fc;--muted:var(--text-muted);--gold:#cdcdcd;--line:var(--border)}
html{scroll-behavior:smooth}body{background:radial-gradient(ellipse at 70% 0%,var(--bg) 0,transparent 50%),var(--bg);color:var(--ink)}header{border-bottom:1px solid var(--border)}.brand{color:var(--text)}.brand>span{color:var(--text);border-color:var(--border)}nav button,.play-top button{color:var(--secondary)}h1,h2{font-family:'DM Sans',sans-serif;font-weight:700}h1{font-size:60px;letter-spacing:-2.5px}h1 em{background:linear-gradient(100deg,var(--surface),var(--surface));background-clip:text;color:transparent}.eyebrow{color:var(--ui-plain-text)}.primary{background:linear-gradient(110deg,var(--surface),var(--surface));border:1px solid var(--secondary);box-shadow:0 8px 30px #94949425;border-radius:18px;color:var(--secondary)}.primary:hover{background:linear-gradient(110deg,var(--surface),var(--surface));transform:translateY(-2px)}.hero{padding:40px 0;gap:65px;min-height:500px}.intro{color:var(--text)}.chips span:before{color:var(--ui-plain-text)}.art{height:auto;min-height:370px;display:block;border:1px solid #ffffff15;border-radius:25px;overflow:hidden;background:linear-gradient(160deg,#19223b,#101725);box-shadow:0 25px 60px #0005}.art img{width:100%;height:235px;object-fit:cover;display:block}.art-caption{padding:22px 25px}.art-caption h3{font-size:28px;margin:10px 0}.art-caption p{color:var(--muted);font-size:12px;margin-bottom:20px}.art-caption .primary{width:100%;padding:13px}.story-badge{font-size:9px;font-weight:600;letter-spacing:1px;background:#787878;color:var(--ui-plain-text);border-radius:8px;padding:5px 9px}.section-title h2{font-size:28px}.card{background:linear-gradient(150deg,var(--surface),var(--surface));border:1px solid var(--border);border-radius:22px;box-shadow:0 10px 25px #0002}.card:hover{border-color:var(--border);transform:translateY(-3px)}.icon{background:linear-gradient(140deg,#a8a8a8,#565656);color:var(--text);box-shadow:inset 0 1px 0 #fff4,0 7px 16px #0003;font-size:33px;width:65px;height:65px;border-radius:20px}.icon.purple{background:linear-gradient(140deg,#91b957,#305b37)}.icon.green{background:linear-gradient(140deg,#ecc354,#875717)}.category{color:var(--ui-plain-text)}.card button{background:var(--ui-control-bg);color:var(--secondary);border:1px solid var(--secondary);padding:13px 18px;border-radius:13px;box-shadow:0 5px 15px #0002;color:var(--ui-control-label) !important}.card button:hover{filter:brightness(1.15)}.card small{color:var(--text-muted)}.live{background:linear-gradient(120deg,var(--surface),var(--surface));border:1px solid var(--border);border-radius:22px}.live h2{font-size:27px}.toggle input{accent-color:var(--secondary)}.stats{border-bottom:0}.stats b{color:var(--ui-plain-text)}footer{color:var(--text);border-color:var(--border)}footer strong{color:var(--text)}.progress-track{background:#182232}.progress-track #bar{background:linear-gradient(90deg,#aaaaaa,#698ee9)}.question-card{background:linear-gradient(140deg,var(--surface),var(--surface));border:1px solid var(--border);border-radius:25px;box-shadow:0 20px 50px #0003}.question-top{color:var(--ui-plain-text)}.answer{background:linear-gradient(130deg,var(--surface),var(--surface));border:1px solid var(--border);color:var(--text);border-radius:17px}.answer span{background:color-mix(in srgb,var(--surface) 3.14%,transparent);color:var(--text);border-radius:50%;padding:6px 10px}.answer:hover:not(:disabled){border-color:var(--border);background:var(--surface)}.answer:disabled{color:var(--text)}.answer.correct{background:linear-gradient(105deg,var(--surface),var(--surface));border-color:var(--border)}.answer.wrong{background:var(--surface);border-color:var(--border)}.answer.selected{border:2px solid var(--border)}.secondary,#moreHint{background:var(--surface);border:1px solid var(--border);color:var(--text);border-radius:14px}#feedback{background:linear-gradient(130deg,var(--surface),var(--surface));border:1px solid var(--border);border-radius:20px}#feedback strong{color:var(--ui-plain-text)}.finish b{color:var(--ui-plain-text)}.mobile-nav{display:none}
@media(max-width:750px){header{padding:20px 22px}.hero{padding:26px 0;gap:28px}.hero h1{font-size:42px;letter-spacing:-1.6px;margin:15px 0}.hero .intro{font-size:14px}.hero>.art{min-height:0}.art img{height:185px}.art-caption{padding:18px 22px}.art-caption h3{font-size:25px}.hero>div:first-child>.primary{width:100%;padding:14px}.chips{justify-content:center;font-size:9px}.cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.card{padding:14px 10px;border-radius:18px;text-align:center}.card .icon{width:48px;height:48px;font-size:26px;margin:0 auto 14px;border-radius:14px}.category{font-size:7px;letter-spacing:.5px}.card h3{font-size:14px;line-height:1.3;min-height:36px}.card p{display:none}.card small{font-size:9px;display:block;min-height:32px;line-height:1.4}.card button{font-size:10px;padding:10px 6px;margin-top:10px;gap:3px}.card button span{display:none}.section-title h2{font-size:23px}.section-title .muted{font-size:11px}.live{padding:22px}.live h2{font-size:22px}.stats{padding:26px 0}.stats b{font-size:23px}.question-card{padding:24px 18px}.question-card h2{font-family:'DM Sans',sans-serif;font-size:25px;letter-spacing:-.4px}.answer{padding:15px;min-height:60px}.question-top{font-size:10px}.mobile-nav{position:fixed;bottom:16px;left:20px;right:20px;z-index:10;background:color-mix(in srgb,var(--surface) 94.9%,transparent);border:1px solid var(--border);border-radius:22px;padding:10px;display:flex;justify-content:space-around;backdrop-filter:blur(16px);box-shadow:0 10px 35px #0008}.mobile-nav button{display:flex;flex-direction:column;align-items:center;gap:3px;background:none;border:0;font-size:9px;color:var(--secondary);min-width:65px}.mobile-nav button:first-child{color:var(--ui-plain-text)}.mobile-nav button span{font-size:23px}footer{padding-bottom:110px}.game-actions .primary{width:100%;padding:15px}.game-actions .secondary{width:100%}}
/* Raised game buttons with a physical press response. */
.primary,.card button{background:var(--ui-control-bg);border:1px solid var(--secondary);border-bottom-color:var(--secondary);box-shadow:inset 0 2px 0 #ffffff40,inset 0 -1px 1px #48484880,0 5px 0 #404040,0 10px 18px #0005;text-shadow:0 1px 2px #2b2b2b80;transition:transform .12s,box-shadow .12s,filter .15s;color:var(--ui-control-label) !important}
.primary:hover,.card button:hover{background:var(--ui-control-bg);transform:translateY(-1px);color:var(--ui-control-label) !important}
.primary:active,.card button:active{transform:translateY(4px);box-shadow:inset 0 1px 3px #0004,0 1px 0 #404040,0 3px 8px #0004}
.answer{background:linear-gradient(180deg,var(--surface),var(--surface));border:1px solid var(--border);border-bottom-color:var(--border);box-shadow:inset 0 1px 1px #ffffff15,0 4px 0 #050a14,0 8px 14px #0003;transition:transform .12s,box-shadow .12s}
.answer:hover:not(:disabled){background:linear-gradient(180deg,var(--surface),var(--surface));transform:translateY(-1px)}
.answer:active:not(:disabled){transform:translateY(3px);box-shadow:inset 0 1px 3px #0004,0 1px 0 #050a14}
.answer.correct{background:linear-gradient(180deg,var(--surface),var(--surface) 48%,var(--surface));border-color:var(--border);box-shadow:inset 0 2px 1px #ffffff35,0 4px 0 #3a3a3a,0 7px 15px #0003}
.answer.wrong{background:linear-gradient(180deg,var(--surface),var(--surface));box-shadow:inset 0 1px 1px #ffffff15,0 4px 0 #24101a}
.secondary,#moreHint{background:linear-gradient(180deg,var(--surface),var(--surface));box-shadow:inset 0 1px 1px #ffffff25,0 4px 0 #0b1120;border:1px solid var(--border)}
.secondary:active,#moreHint:active{transform:translateY(3px);box-shadow:inset 0 1px 3px #0004,0 1px 0 #0b1120}
@media(prefers-reduced-motion:reduce){button,a{transition:none!important}}
.icon.sculpted{background-image:url('/icons-3d.png')!important;background-size:300% 200%!important;background-repeat:no-repeat!important;background-color:transparent!important;width:86px;height:86px;border:0!important;border-radius:0!important;box-shadow:none!important;filter:drop-shadow(0 6px 5px #0003)}
.icon.sculpted.book{background-position:0 0!important}.icon.sculpted.shield{background-position:50% 0!important}.icon.sculpted.community{background-position:100% 0!important}.icon.sculpted.trophy{background-position:0 100%!important}
.card{background:linear-gradient(145deg,var(--surface),var(--surface));border-color:var(--border);border-radius:18px;box-shadow:none}
.primary,.card button{background:var(--ui-control-bg);box-shadow:inset 0 1px 0 #ffffff28,0 3px 0 #3f3f3f,0 5px 12px #0002;border-color:var(--secondary);border-radius:12px;text-shadow:none;color:var(--ui-control-label) !important}
.answer{box-shadow:inset 0 1px 0 #ffffff12,0 2px 0 #050a14,0 4px 10px #0002;background:linear-gradient(180deg,var(--surface),var(--surface));border-color:var(--border);border-radius:13px}
.card h3{letter-spacing:-.3px}.category{color:var(--ui-plain-text)}.live{background:linear-gradient(105deg,var(--surface),var(--surface));border-color:var(--border)}.hero h1{font-size:48px;letter-spacing:-1.5px}
@media(max-width:750px){.icon.sculpted{width:66px;height:66px;margin:0 auto 10px}.hero h1{font-size:35px}.card{padding:16px 10px}.card h3{font-size:14px}}
/* Pastel learning app theme */
:root{color-scheme:light;--bg:#f7f6fb;--ink:var(--ui-plain-text);--muted:var(--text-muted);--gold:#7d7d7d;--line:var(--border)}
body{background:var(--bg);color:var(--ui-plain-text)}header{border-color:var(--border)}.brand{color:var(--ui-plain-text)}.brand>span{color:var(--ui-plain-text);border-color:var(--border)}nav button,.play-top button{color:var(--ui-plain-text)}h1 em{background:var(--surface);color:var(--ui-plain-text);background-clip:border-box;padding:0 5px}.eyebrow{color:var(--ui-plain-text)}.intro,.muted,.card p,.live p:not(.eyebrow){color:var(--ui-plain-text)}.hero{background:linear-gradient(120deg,var(--surface),var(--surface));border-radius:26px;padding:30px;margin:22px 0 30px;gap:35px}.hero h1{font-size:41px}.art{background:#ffffff70;border:0;box-shadow:none}.art-caption h3{color:var(--ui-plain-text)}.art-caption p{color:var(--ui-plain-text)}.story-badge{background:#ededed;color:var(--ui-plain-text)}.chips,.card small{color:var(--ui-plain-text)}.chips span:before{color:var(--text)}.card{background:var(--surface);border:0;border-radius:25px;box-shadow:none}.card:nth-child(3n+2){background:var(--surface)}.card:nth-child(3n){background:var(--surface)}.category{color:var(--ui-plain-text)}.card h3{color:var(--ui-plain-text)}.icon.sculpted{filter:drop-shadow(0 5px 4px #57575720)}.primary,.card button{background:var(--ui-control-bg);border:1px solid var(--secondary);color:var(--secondary);border-radius:25px;text-shadow:none;box-shadow:none;color:var(--ui-control-label) !important}.primary:hover,.card button:hover{background:var(--ui-control-bg);color:var(--ui-control-label) !important}.primary:active,.card button:active{box-shadow:none;transform:translateY(2px)}.card button{padding:12px 18px}.live{background:var(--surface);border:0;box-shadow:none}.live h2{color:var(--ui-plain-text)}.toggle{color:var(--ui-plain-text)}.toggle small{color:var(--ui-plain-text)}.toggle input{accent-color:var(--secondary)}.stats b{color:var(--ui-plain-text)}.stats{color:var(--ui-plain-text)}footer{color:var(--ui-plain-text);border-color:var(--border)}footer strong{color:var(--ui-plain-text)}.progress-track{background:#e7deed}.progress-track #bar{background:linear-gradient(90deg,#c1c1c1,#9cbbdf)}.question-card{background:var(--surface);border:1px solid var(--border);box-shadow:0 8px 26px #70707008;border-radius:27px}.question-top{color:var(--ui-plain-text)}.question-card h2{color:var(--ui-plain-text)}.answer{background:var(--surface);color:var(--ui-plain-text);border:1px solid var(--border);box-shadow:none;border-radius:17px}.answer span{background:var(--surface);color:var(--ui-plain-text)}.answer:disabled{color:var(--ui-plain-text)}.answer:hover:not(:disabled){background:var(--surface);border-color:var(--border)}.answer.correct{background:var(--surface);color:var(--text);border-color:var(--border);box-shadow:none}.answer.wrong{background:var(--surface);color:var(--text);border-color:var(--border);box-shadow:none}.answer.selected{border:2px solid var(--border)}.secondary,#moreHint{background:var(--surface);color:var(--ui-plain-text);border:1px solid var(--border);box-shadow:none;border-radius:25px}#feedback{background:var(--surface);border:0;border-radius:23px;color:var(--text)}#feedback strong{color:var(--text)}#feedback small{color:var(--text-muted)}#hint,.note{color:var(--ui-plain-text)}.finish b{color:var(--ui-plain-text)}.mobile-nav{background:var(--surface);border:0;border-radius:35px;box-shadow:0 8px 25px #27272725}.mobile-nav button{color:var(--ui-plain-text)}.mobile-nav button:first-child{color:var(--secondary)}
@media(max-width:750px){.hero{padding:24px;margin:15px 0 25px;gap:20px}.hero h1{font-size:34px}.hero .intro{font-size:12px}.cards{grid-template-columns:1fr 1fr;gap:12px}.card{padding:18px 12px}.card .icon.sculpted{width:72px;height:72px}.card h3{font-size:16px}.card small{font-size:10px}.card button{padding:10px 9px;font-size:11px}.live{padding:23px}.question-card h2{font-size:25px}.answer{padding:16px}.game-wrap{margin-bottom:70px}}
body{font-size:16px}.eyebrow{font-size:12px}.intro{font-size:17px}.chips{font-size:13px}.category{font-size:12px}.card p{font-size:16px}.card small{font-size:14px}.card h3{font-size:23px}.card button,.primary,.secondary,#moreHint{font-size:15px}.live p:not(.eyebrow){font-size:16px}.toggle small{font-size:13px}.muted,.game-meta,.play-top{font-size:14px}.question-top{font-size:14px}.answer{font-size:18px}.answer span{font-size:15px}#feedback{font-size:17px}#feedback small{font-size:14px}.note{font-size:14px}footer,footer p{font-size:13px}.icon.sculpted{display:grid;place-items:center;background-image:none!important;background:#ffffff70!important;border:1px solid #ffffffa0!important;border-radius:22px!important;width:74px;height:74px;filter:none;box-shadow:inset 0 1px 1px #fff8!important}.icon.sculpted svg{width:38px;height:38px;stroke:var(--ui-plain-text);stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}.icon.sculpted.shield svg{stroke:#59806b}.icon.sculpted.trophy svg{stroke:#a78b41}
@media(max-width:750px){.hero .intro{font-size:16px}.hero h1{font-size:36px}.chips{font-size:11px;flex-wrap:wrap}.cards{grid-template-columns:1fr;gap:16px}.card{padding:24px;text-align:left}.card .icon.sculpted{margin:0 0 17px;width:70px;height:70px}.card h3{font-size:23px;min-height:0}.card p{display:block;font-size:16px;min-height:0}.card small{font-size:14px;min-height:0}.card button{font-size:16px;padding:14px 20px}.category{font-size:11px}.live h2{font-size:25px}.live p:not(.eyebrow){font-size:16px}.answer{font-size:18px;padding:18px;line-height:1.5}.question-card h2{font-size:29px}.question-top{font-size:12px}.game-actions .primary{font-size:16px}.note{font-size:14px}.mobile-nav button{font-size:12px}footer p{font-size:13px}}
/* Midnight adventure missions */
:root{color-scheme:dark;--bg:#080d28;--ink:#f3edf8;--muted:var(--text-muted);--gold:#d2b17e;--line:var(--border)}body{background:radial-gradient(ellipse at 80% 0%,var(--bg) 0,transparent 65%),var(--bg);color:var(--text)}.brand{color:var(--link)}.brand>span{color:var(--ui-plain-text);border-color:var(--border)}nav button,.play-top button{color:var(--ui-plain-text)}header{border-color:var(--border)}.eyebrow{color:var(--link)}.hero{background:radial-gradient(ellipse at right,color-mix(in srgb,var(--surface) 26.67%,transparent),transparent 70%),linear-gradient(120deg,var(--surface),var(--surface));border:1px solid var(--border)}.hero h1{font-family:Georgia,serif;color:var(--text)}.hero h1 em{background:none;color:var(--link);padding:0}.intro,.chips,.muted,.card p,.card small{color:var(--ui-plain-text)}.art{background:#19233d;border:1px solid #80808044}.art-caption h3{color:var(--ui-plain-text)}.art-caption p{color:var(--ui-plain-text)}.story-badge{background:#71717140;color:var(--ui-plain-text)}.card,.card:nth-child(3n+2),.card:nth-child(3n){background:linear-gradient(145deg,var(--surface),var(--surface));border:1px solid var(--border);box-shadow:inset 0 1px 0 #fff1}.card:nth-child(3n+2){background:linear-gradient(145deg,var(--surface),var(--surface));border-color:var(--border)}.card:nth-child(3n){background:linear-gradient(145deg,var(--surface),var(--surface));border-color:var(--border)}.category{color:var(--ui-plain-text)}.card h3{color:var(--ui-plain-text)}.primary,.card button{background:var(--ui-control-bg);border:1px solid var(--secondary);color:var(--secondary);box-shadow:inset 0 1px 0 #fff3,0 3px 0 #2b2b2b;border-radius:14px;color:var(--ui-control-label) !important}.primary:hover,.card button:hover{background:var(--ui-control-bg);color:var(--ui-control-label) !important}.icon.sculpted{background:linear-gradient(140deg,#594a3955,#323232)!important;border:1px solid #d1b27155!important;box-shadow:inset 0 1px 0 #fff2,0 3px 9px #0003!important;border-radius:20px!important}.icon.sculpted svg,.icon.sculpted.shield svg,.icon.sculpted.trophy svg{stroke:#e2c487}.live{background:linear-gradient(120deg,var(--surface),var(--surface));border:1px solid var(--border)}.live h2{color:var(--ui-plain-text)}.live p:not(.eyebrow),.toggle{color:var(--ui-plain-text)}.toggle small{color:var(--ui-plain-text)}.stats{color:var(--ui-plain-text)}.stats b{color:var(--link)}footer,footer p{color:var(--ui-plain-text);border-color:var(--border)}footer strong{color:var(--link)}.progress-track{background:#17203a;border:1px solid #7e7e7e2a}.progress-track #bar{background:linear-gradient(90deg,#a17b40,#e8c985)}.question-card{background:linear-gradient(140deg,var(--surface),var(--surface));border:1px solid var(--border);box-shadow:0 15px 35px #0003}.question-card h2{color:var(--text)}.question-top{color:var(--link)}.answer{background:linear-gradient(130deg,var(--surface),var(--surface));color:var(--ui-plain-text);border-color:var(--border);box-shadow:inset 0 1px 0 #fff1}.answer span{background:color-mix(in srgb,var(--surface) 20%,transparent);color:var(--link)}.answer:disabled{color:var(--ui-plain-text)}.answer:hover:not(:disabled){background:var(--surface);border-color:var(--border)}.answer.correct{background:linear-gradient(120deg,var(--surface),var(--surface));border-color:var(--border);color:var(--text)}.answer.wrong{background:linear-gradient(120deg,var(--surface),var(--surface));border-color:var(--border);color:var(--text)}.answer.selected{border:2px solid var(--border)}.secondary,#moreHint{background:var(--surface);border-color:var(--border);color:var(--ui-plain-text);border-radius:15px}#feedback{background:var(--surface);border:1px solid var(--border);color:var(--text)}#feedback strong{color:var(--link)}#feedback small{color:var(--text-muted)}#hint,.note{color:var(--ui-plain-text)}.finish b{color:var(--link)}.mobile-nav{background:color-mix(in srgb,var(--surface) 93.73%,transparent);border:1px solid var(--border);box-shadow:0 10px 22px #0006}.mobile-nav button{color:var(--ui-plain-text)}.mobile-nav button:first-child{color:var(--secondary)}
/* White canvas outside the colored game panels. */
html,body{background:var(--bg)}body{color:var(--ui-plain-text)}.brand{color:var(--ui-plain-text)}.brand>span{color:var(--ui-plain-text);border-color:var(--border)}header{border-color:var(--border)}nav button,.play-top button{color:var(--ui-plain-text)}.section-title h2{color:var(--ui-plain-text)}.section-title .eyebrow{color:var(--ui-plain-text)}.section-title .muted{color:var(--ui-plain-text)}.game-meta{color:var(--ui-plain-text)}.note{color:var(--ui-plain-text)}footer,footer p{color:var(--ui-plain-text);border-color:var(--border)}footer strong{color:var(--ui-plain-text)}.live,.question-card{color:var(--text)}.stats{color:var(--ui-plain-text)}.stats b{color:var(--ui-plain-text)}
/* Neutral pearl-gray canvas. */
html,body{background:var(--bg)}header,footer{border-color:var(--border)}
/* Violet fading into black outside the colored cards. */
html{background:var(--bg)}body{background:radial-gradient(ellipse at 75% 0%,var(--bg) 0%,var(--bg) 26%,transparent 58%),linear-gradient(145deg,var(--bg) 0%,var(--bg) 70%);color:var(--text);min-height:100vh}.brand{color:var(--ui-plain-text)}.brand>span{color:var(--ui-plain-text);border-color:var(--border)}header,footer{border-color:var(--border)}nav button,.play-top button{color:var(--ui-plain-text)}.section-title h2{color:var(--ui-plain-text)}.section-title .eyebrow{color:var(--ui-plain-text)}.section-title .muted{color:var(--ui-plain-text)}.game-meta{color:var(--ui-plain-text)}.note{color:var(--ui-plain-text)}footer,footer p{color:var(--ui-plain-text)}footer strong{color:var(--ui-plain-text)}.stats{color:var(--ui-plain-text)}.stats b{color:var(--ui-plain-text)}
/* Luxury smoked glass, consistent with the main portal. */
html,body{background:var(--bg)}body{background:radial-gradient(ellipse at 80% 0%,color-mix(in srgb,var(--bg) 3.14%,transparent),transparent 45%),var(--bg);color:var(--text);color-scheme:dark}.hero,.art,.live,.question-card{background:linear-gradient(135deg,#ffffff0f,#ffffff03 50%,#ffffff07);border:1px solid #ffffff20;box-shadow:inset 0 1px 0 #ffffff15,0 16px 40px #0008;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}.answer{background:linear-gradient(135deg,color-mix(in srgb,var(--surface) 4.71%,transparent),color-mix(in srgb,var(--surface) 1.57%,transparent));border-color:var(--border)}.answer:hover:not(:disabled){background:color-mix(in srgb,var(--surface) 7.84%,transparent);border-color:var(--border)}.answer.correct{background:linear-gradient(120deg,var(--surface),var(--surface));border-color:var(--border)}.answer.wrong{background:linear-gradient(120deg,var(--surface),var(--surface));border-color:var(--border)}.mobile-nav{background:color-mix(in srgb,var(--surface) 92.94%,transparent);border-color:var(--border);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}header,footer{border-color:var(--border)}.intro,.chips,.muted,.card p,.card small{color:var(--text-muted)}

.adventure-catalog{margin:42px 0}.catalog-search{display:block;color:var(--ui-plain-text);font-size:16px;margin:20px 0}.catalog-search input{display:block;width:100%;margin-top:10px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text);padding:15px;font:inherit}.adventure-number{width:58px;height:58px;display:grid;place-items:center;margin-bottom:18px;border:1px solid var(--border);border-radius:18px;background:linear-gradient(135deg,color-mix(in srgb,var(--surface) 25.1%,transparent),var(--surface));font-size:23px;font-weight:700;color:var(--link)}.adventure-catalog .card h3{min-height:60px}

/* Love-inspired lettering on the library titles; questions remain easy to read. */
.hero h1,.section-title h2,.card h3,.live h2,.art-caption h3{font-family:'DM Sans',sans-serif;font-weight:400;letter-spacing:0;line-height:1.4;text-shadow:0 2px 9px #0004}.hero h1{font-size:44px}.section-title h2,.live h2{font-size:30px}.card h3{font-size:25px}.adventure-catalog .card h3{min-height:70px}@media(max-width:700px){.hero h1{font-size:36px}.section-title h2,.live h2{font-size:28px}.card h3{font-size:24px}}

/* Match the portal's balanced adventure typography. */
.hero h1,.section-title h2,.live h2{font-family:'Playfair Display',Georgia,serif;font-weight:600;letter-spacing:-.4px;line-height:1.3;text-shadow:none}.card h3,.art-caption h3{font-family:'DM Sans',sans-serif;font-weight:700;letter-spacing:-.25px;line-height:1.4;text-shadow:none}.card h3{font-size:23px}.adventure-catalog .card h3{min-height:65px}@media(max-width:700px){.hero h1{font-size:36px}.section-title h2,.live h2{font-size:28px}.card h3{font-size:22px}}

/* Consistent functional text in every game and results screen. */
body,button,input,select{font-family:'DM Sans',sans-serif}.hero h1,.section-title h2,.live h2{font-family:'Playfair Display',Georgia,serif;font-weight:600;line-height:1.3}.card h3,.art-caption h3,.question-card h2,.finish h2{font-family:'DM Sans',sans-serif;font-weight:700;line-height:1.4}.card p,.intro,.live p:not(.eyebrow){font-size:16px;line-height:1.75}.primary,.secondary,.card button,#moreHint{font-size:15px;font-weight:600}.answer{font-family:'DM Sans',sans-serif;font-size:18px;line-height:1.5}.catalog-search{font-family:'DM Sans',sans-serif;font-size:16px}
/* Calm, coherent game library surfaces and functional controls. */
.hero h1,.section-title h2,.live h2{font-family:'DM Sans',sans-serif;font-weight:700;letter-spacing:-.8px;line-height:1.25}.hero h1{font-size:40px}.section-title h2,.live h2{font-size:28px}.card,.card:nth-child(3n+2),.card:nth-child(3n){border-radius:20px;box-shadow:none;border-color:var(--border)}.card h3{font-size:22px;letter-spacing:-.35px}.card p{font-size:16px;color:var(--ui-plain-text);line-height:1.7}.card button,.primary{border-radius:12px;min-height:46px;background:var(--ui-control-bg);border:1px solid var(--secondary);box-shadow:none;color:var(--secondary);color:var(--ui-control-label) !important}.card button:hover,.primary:hover{background:var(--ui-control-bg);color:var(--ui-control-label) !important}.secondary,#moreHint{border-radius:12px;min-height:44px;background:color-mix(in srgb,var(--surface) 3.53%,transparent);border-color:var(--border);color:var(--ui-plain-text)}.question-card{border-radius:20px;border-color:var(--border);box-shadow:0 8px 24px #0003}.answer{border-radius:12px;box-shadow:none;min-height:54px}.live,.hero,.art{border-radius:20px;box-shadow:none;border-color:#ffffff16}.adventure-number{border-radius:14px;background:color-mix(in srgb,var(--surface) 2.75%,transparent);border-color:var(--border)}.catalog-search input{border-radius:12px}.art-caption h3{font-size:22px}.adventure-catalog .card h3{min-height:62px}@media(max-width:700px){.hero h1{font-size:34px}.section-title h2,.live h2{font-size:26px}}

/* Illustrated story covers in the same 3D world as the explorer mascot. */
.card{overflow:hidden;position:relative}.game-cover{aspect-ratio:1/1;width:calc(100% + 44px);margin:-22px -22px 22px;background-repeat:no-repeat;background-size:300% 400%;background-color:var(--surface);flex-shrink:0}.adventure-catalog .game-cover{margin-top:-22px}.card .game-cover~.icon.sculpted{display:none}.adventure-catalog .adventure-number{position:absolute;top:14px;left:14px;width:38px;height:38px;margin:0;border-radius:11px;background:color-mix(in srgb,var(--surface) 85.1%,transparent);backdrop-filter:blur(8px);border:1px solid var(--border);font-size:16px;color:var(--text)}.card .category{display:block;margin-top:0}.cards .card{padding:22px}@media(max-width:700px){.game-cover{aspect-ratio:1/1}.cards .card{padding:22px}}

/* A compact illustrated library: two cards per row on phones. */
#games .cards,.adventure-catalog .cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}
.cards .card{display:flex;flex-direction:column;min-width:0;padding:14px;border-radius:16px;gap:0;background-color:var(--surface);border:1px solid var(--border)}
.cards .card .game-cover{aspect-ratio:1/1;width:calc(100% + 28px);height:auto;margin:-14px -14px 14px;background-size:300% 400%;flex-shrink:0}
.cards .card h3,.adventure-catalog .card h3{font-size:19px;line-height:1.35;min-height:0;margin:7px 0 10px;letter-spacing:-.3px}
.cards .card .category{font-size:10px;line-height:1.5;letter-spacing:.7px;margin:0;color:var(--ui-plain-text)}
.cards .card p{font-size:14px;line-height:1.55;margin:0 0 12px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.cards .card small{display:block;font-size:12px;line-height:1.5;margin:0 0 14px;color:var(--ui-plain-text)}
.cards .card button{width:100%;min-height:44px;padding:10px 12px;margin-top:auto;border-radius:10px;font-size:14px;line-height:1.35;background:var(--ui-control-bg);border:1px solid var(--secondary);box-shadow:inset 0 1px 0 #ffffff21,0 3px 0 #303030;white-space:normal;color:var(--ui-control-label) !important}
.cards .card button:active{transform:translateY(2px);box-shadow:0 1px 0 #303030}.adventure-catalog .adventure-number{top:9px;left:9px;width:30px;height:30px;font-size:13px;border-radius:9px;background:var(--surface)}
.answers{gap:14px}.answer{background:var(--surface);border:1px solid var(--border);padding:16px;line-height:1.5}.question-card h2{margin-bottom:20px}.question-card .finish button{margin:10px 8px 0 0}.feedback{padding:18px;line-height:1.6}
@media(min-width:1100px){.adventure-catalog .cards{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){#games .cards,.adventure-catalog .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.cards .card{padding:12px;border-radius:14px}.cards .card .game-cover{aspect-ratio:1/1;width:calc(100% + 24px);margin:-12px -12px 12px}.cards .card h3,.adventure-catalog .card h3{font-size:17px;margin:6px 0 9px;line-height:1.35}.cards .card p{font-size:13px;margin-bottom:10px}.cards .card small{font-size:11px;margin-bottom:12px}.cards .card button{font-size:13px;padding:9px 7px;min-height:44px}.cards .card .category{font-size:9px;letter-spacing:.4px}.section-title{margin-bottom:20px}.section-title h2{font-size:25px}.adventure-catalog{margin-top:30px}}

/* Small game tiles: illustration, title, and one short action. */
#games .cards,.adventure-catalog .cards{grid-template-columns:repeat(auto-fill,minmax(130px,170px));justify-content:start;gap:14px 12px}
.cards .card{padding:10px;border-radius:12px}.cards .card .game-cover{width:calc(100% + 20px);margin:-10px -10px 9px;aspect-ratio:1/1}
.cards .card .category,.cards .card p,.cards .card small{display:none}
.cards .card h3,.adventure-catalog .card h3{font-size:15px;line-height:1.3;min-height:39px;margin:2px 0 10px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;letter-spacing:-.2px}
.cards .card button{min-height:40px;font-size:11px;letter-spacing:.05em;padding:8px 9px;border-radius:8px;white-space:nowrap}.adventure-catalog .adventure-number{width:25px;height:25px;top:7px;left:7px;font-size:11px;border-radius:7px}
@media(max-width:700px){#games .cards,.adventure-catalog .cards{grid-template-columns:repeat(2,minmax(0,1fr));max-width:332px;gap:12px}.cards .card h3,.adventure-catalog .card h3{font-size:14px;min-height:37px;margin-bottom:8px}.cards .card button{min-height:40px;font-size:11px}}
/* Sideways game shelves replace the long vertical card grids. */
#games .cards.adventure-rail,.adventure-catalog .cards.adventure-rail{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch;width:100%;max-width:none;gap:14px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scroll-padding-inline:4px;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#a4a4a4 #ffffff09;padding:5px 4px 13px;-webkit-overflow-scrolling:touch}
.adventure-rail>.card{flex:0 0 170px;width:170px;min-width:0;scroll-snap-align:start}
.adventure-rail:focus-visible{outline:2px solid var(--border);outline-offset:3px;border-radius:10px}
.adventure-rail-controls{display:flex;align-items:center;gap:7px;flex-shrink:0;margin-left:auto}
.adventure-rail-controls[hidden]{display:none}
.adventure-rail-controls button{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid var(--secondary);border-radius:10px;background:var(--ui-control-bg);box-shadow:inset 0 1px #fff3,0 2px #0c0c0c;color:var(--secondary);font-size:20px;line-height:1;color:var(--ui-control-label) !important}
.adventure-rail-controls button:disabled{opacity:.35;cursor:default;box-shadow:none}
#games>.section-title,.adventure-catalog>.section-title{gap:12px;flex-wrap:wrap;align-items:center}
html.library-embedded body{display:flow-root;min-height:0;overflow-x:hidden}
@media(max-width:700px){.adventure-rail>.card{flex-basis:148px;width:148px}.adventure-rail-controls button{width:40px;height:40px}#games>.section-title>.muted{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.adventure-rail{scroll-behavior:auto}}
/* Ivory blends into warm gold on the library's sculpted play buttons. */
#games .cards .card button,.adventure-catalog .cards .card button,#landing .hero .primary{position:relative;display:flex;align-items:center;justify-content:center;min-height:40px;padding:9px 12px;border:1px solid var(--secondary);border-bottom:4px solid var(--secondary);border-radius:10px;background:linear-gradient(180deg,color-mix(in srgb,var(--surface) 53.33%,transparent),transparent 44%),linear-gradient(115deg,var(--surface) 0%,var(--surface) 27%,var(--surface) 56%,var(--surface) 82%,var(--surface) 100%);color:var(--secondary);font-weight:800;letter-spacing:.035em;line-height:1.3;text-shadow:0 1px #fff9;box-shadow:inset 0 1px 1px #fff,inset 0 -2px 2px #b17b2733,0 3px 0 #69451c,0 6px 10px #0006;transition:transform .12s,box-shadow .12s,filter .12s;white-space:normal}
#games .cards .card button:not(:disabled):hover,.adventure-catalog .cards .card button:not(:disabled):hover,#landing .hero .primary:not(:disabled):hover{filter:brightness(1.04);transform:translateY(-1px)}
#games .cards .card button:not(:disabled):active,.adventure-catalog .cards .card button:not(:disabled):active,#landing .hero .primary:not(:disabled):active{transform:translateY(3px);box-shadow:inset 0 1px 3px #89531533,0 1px 0 #69451c;filter:none}
#games .cards .card button:focus-visible,.adventure-catalog .cards .card button:focus-visible,#landing .hero .primary:focus-visible{outline:2px solid var(--secondary);outline-offset:4px}
@media(prefers-reduced-motion:reduce){#games .cards .card button,.adventure-catalog .cards .card button,#landing .hero .primary{transition:none}}
/* The surrounding platform already supplies the brand and page navigation. */
html.library-embedded header>.brand{display:none}
html.library-embedded header{min-height:0;padding:0 36px 6px;border:0;justify-content:flex-end;background:transparent;box-shadow:none}
html.library-embedded header nav{gap:5px}
html.library-embedded header nav button{padding:7px 9px;min-height:32px;font-size:11px}
@media(max-width:700px){html.library-embedded header{padding:0 20px 4px}html.library-embedded header nav button{min-height:36px}}
.icon.sculpted.trophy img{display:block;object-fit:contain;filter:drop-shadow(0 2px 0 #67431c) drop-shadow(0 3px 4px #0005)}

/* Same opaque, quiet UI as the profile and surrounding portal. */
body{background:var(--bg);color:var(--text)}
.hero,.live,.art,.question-card,.cards .card,.cards .card:nth-child(3n+2),.cards .card:nth-child(3n){background:var(--surface);border-color:#3a3a3a;box-shadow:none}
body .primary,body .secondary,body .card button,body #moreHint,body .adventure-rail-controls button,body header nav button{background:var(--ui-control-bg)!important;border:1px solid var(--secondary)!important;color:var(--secondary);box-shadow:none!important;text-shadow:none;filter:none!important;transform:none!important;color:var(--ui-control-label) !important}
body .primary:not(:disabled):hover,body .card button:not(:disabled):hover,body .secondary:not(:disabled):hover{background:var(--ui-control-bg)!important;color:var(--ui-control-label) !important}
body header nav button.active{background:var(--ui-control-bg)!important;color:var(--secondary);border-color:var(--secondary)!important;color:var(--ui-control-label) !important}
body input,body select,body .answer{background:var(--surface);border-color:var(--border);box-shadow:none}
body .adventure-number{background:var(--surface);backdrop-filter:none}
body .adventure-rail-controls button:disabled{opacity:.35}
body .primary:focus-visible,body .secondary:focus-visible,body .card button:focus-visible{outline:2px solid var(--secondary);outline-offset:3px}
.hero,.live,.art,.question-card{backdrop-filter:none;-webkit-backdrop-filter:none}
/* All game-card Play labels use solid white. */
body .cards .card button,body .cards .card button:hover,body .cards .card button:active,body .cards .card button:disabled{color:var(--secondary)!important;text-shadow:none!important}

/* Compact, stationary game library and Noah introduction. */
#landing .hero{min-height:0;gap:20px;padding:18px;margin:0 0 18px;grid-template-columns:1.2fr 1fr}
#landing .hero h1{font-size:28px;line-height:1.2;margin:8px 0}
#landing .hero .eyebrow{margin:0 0 6px;font-size:10px}
#landing .hero .intro{font-size:13px;line-height:1.5;margin:8px 0 12px}
#landing .hero .chips{margin-top:10px;gap:10px;font-size:10px;flex-wrap:wrap}
#landing .hero .art{height:auto;min-height:0;overflow:hidden}
#landing .hero .art img{width:100%;height:130px;object-fit:cover}
#landing .hero .art-caption{padding:10px 12px}
#landing .hero .art-caption h3{font-size:18px;margin:4px 0}
#landing .hero .art-caption p{font-size:12px;line-height:1.4;margin:5px 0 10px}
.adventure-rail>.card{flex-basis:138px;width:138px}
.cards .card{padding:8px;border-radius:10px}
.cards .card .game-cover{width:calc(100% + 16px);margin:-8px -8px 7px;aspect-ratio:1/1}
.cards .card h3,.adventure-catalog .card h3{font-size:13px;line-height:1.3;min-height:34px;margin:0 0 6px}
#games .cards .card button,.adventure-catalog .cards .card button,#landing .hero .primary{min-height:34px;padding:7px 9px;font-size:12px;gap:8px;border-radius:7px;color:var(--secondary)!important;text-shadow:none!important}
#landing button,#landing a,#landing .hero,#landing .art,#landing .card,#landing .game-cover{animation:none!important;transition:none!important}
#landing .card:hover,#landing .card:active,#landing .hero .primary:hover,#landing .hero .primary:active{transform:none!important}
@media(max-width:700px){#landing .hero{grid-template-columns:1fr 1fr;gap:12px;padding:12px}#landing .hero h1{font-size:21px}#landing .hero .intro{font-size:12px}#landing .hero .art img{height:110px}#landing .hero .art-caption{padding:8px}#landing .hero .art-caption h3{font-size:16px}#landing .hero .chips{font-size:9px;gap:6px}.adventure-rail>.card{flex-basis:124px;width:124px}}
@media(max-width:390px){#landing .hero{grid-template-columns:1fr}#landing .hero .art{display:grid;grid-template-columns:1fr 1fr;align-items:center}#landing .hero .art img{height:120px}}

.mobile-library-toolbar,.mobile-noah-banner,.mobile-collection-title{display:none}
@media(max-width:800px){
 html.library-embedded header{padding:0 14px 8px}
 html.library-embedded header #home{display:none}
 html.library-embedded header nav button{border-radius:8px;font-size:11px;min-height:32px}
 main#landing{padding:0 14px 24px;max-width:100%}
 #landing>.hero{display:none}
 .mobile-noah-banner{display:flex;align-items:center;gap:14px;min-height:84px;padding:10px;border:1px solid var(--border);border-radius:14px;background:var(--surface);margin:0 0 16px}
 .mobile-noah-banner img{width:86px;height:66px;object-fit:cover;border-radius:9px;flex:none}
 .mobile-noah-banner strong{font-size:17px;line-height:1.35;color:var(--link);max-width:240px}
 .mobile-library-toolbar{display:block;margin-bottom:18px}
 .mobile-library-toolbar h1{font:700 24px/1.25 'DM Sans',sans-serif;letter-spacing:-.4px;margin:0 0 12px}
 .mobile-library-toolbar input{width:100%;height:44px;padding:10px 13px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);font:inherit;font-size:16px}
 .mobile-library-filters{display:flex;gap:7px;overflow-x:auto;padding:10px 0 3px}
 .mobile-library-filters button{min-height:40px;padding:8px 12px;border:1px solid var(--secondary);border-radius:20px;background:var(--ui-control-bg);color:var(--secondary);font-size:13px;white-space:nowrap;color:var(--ui-control-label) !important}
 .mobile-library-filters button[aria-pressed=true]{background:var(--ui-control-bg);border-color:var(--secondary);color:var(--ui-control-label) !important}
 #landing .section-title,#landing .adventure-rail-controls,#landing .catalog-search{display:none!important}
 .mobile-collection-title{display:block;font:650 17px/1.3 'DM Sans',sans-serif;margin:0 0 12px;color:var(--text)}
 #games .cards.adventure-rail,.adventure-catalog .cards.adventure-rail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;max-width:none;overflow:visible;padding:0;scroll-snap-type:none}
 #landing .adventure-rail>.card{width:100%;min-width:0;padding:8px;border-radius:12px;display:flex;flex-direction:column;text-align:left}
 #landing .cards .card .game-cover{width:calc(100% + 16px);aspect-ratio:1/1;margin:-8px -8px 8px}
 #landing .cards .card h3{font-size:14px;line-height:1.35;min-height:38px;margin:0 0 8px}
 #landing .cards .card button{min-height:42px;width:100%;padding:9px 8px;font-size:13px;color:var(--secondary)!important;margin-top:auto}
 #landing .adventure-catalog{margin-top:22px}
 #landing .mobile-filter-hidden,#landing .mobile-section-empty{display:none!important}
 #landing>.live,#landing>.stats{display:none}
 html.library-embedded footer{display:none}
}
/* Collections swipe on mobile; the web introduction and six games share a grid. */
#landing #games .cards.adventure-rail,#landing .adventure-catalog .cards.adventure-rail{display:flex;flex-flow:row nowrap;gap:12px;align-items:stretch;justify-content:flex-start;width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;padding:4px 2px 12px;scroll-snap-type:x proximity;scroll-padding-inline:2px;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
#landing #games .adventure-rail>.card,#landing .adventure-catalog .adventure-rail>.card{flex:0 0 160px;width:160px;max-width:160px;min-width:0;scroll-snap-align:start;display:flex;flex-direction:column}
#landing .adventure-rail>.card .game-cover{aspect-ratio:1/1;background-repeat:no-repeat}
#landing .adventure-rail>.card button{margin-top:auto;color:var(--secondary)!important}
@media(max-width:800px){#landing #games .adventure-rail>.card,#landing .adventure-catalog .adventure-rail>.card{flex-basis:44vw;width:44vw;max-width:190px}}
@media(min-width:801px){
 html.library-embedded header{box-sizing:border-box;width:100%;max-width:1280px;margin:0 auto;padding:0 0 12px}
 main#landing{box-sizing:border-box;width:100%;max-width:1280px;margin:0 auto;padding:0;display:grid;grid-template-columns:minmax(220px,260px) minmax(0,1fr);gap:20px;align-items:start}
 main#landing[hidden]{display:none}
 #landing>.hero{grid-column:1;grid-row:1;display:flex;flex-direction:column;align-items:stretch;gap:14px;margin:0;padding:18px;min-height:0;width:100%;min-width:0;border-radius:16px}
 #landing .hero h1{font-size:26px;line-height:1.2;margin:8px 0}
 #landing .hero .intro{font-size:13px;line-height:1.5;margin:8px 0 12px}
 #landing .hero .primary{display:inline-flex;width:max-content;max-width:100%;min-height:36px;padding:8px 14px;gap:8px;flex:none}
 #landing .hero .chips{display:flex;flex-wrap:wrap;gap:6px 10px;font-size:10px;margin-top:10px}
 #landing .hero .art{width:100%;height:auto;min-height:0}
 #landing .hero .art img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover}
 #landing .hero .art-caption{padding:12px}
 #landing .hero .art-caption h3{font-size:18px;margin:4px 0}
 #landing .hero .art-caption p{font-size:12px;line-height:1.5;margin:5px 0 10px}
 #landing>#games{grid-column:2;grid-row:1;min-width:0;margin:0}
 #landing #games>.section-title{margin:0 0 14px;align-items:flex-start;gap:8px}
 #landing #games>.section-title h2{font-size:26px;line-height:1.25;margin:5px 0}
 #landing #games>.section-title .muted,#games .adventure-rail-controls{display:none!important}
 #landing #games .cards.adventure-rail{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-flow:row;gap:14px;align-items:stretch;overflow:visible;padding:0;scroll-snap-type:none}
 #landing #games .adventure-rail>.card{width:100%;max-width:none;min-width:0;padding:10px;border-radius:12px}
 #landing #games .cards .card .game-cover{width:calc(100% + 20px);margin:-10px -10px 10px;aspect-ratio:1/1}
 #landing #games .card h3{font-size:14px;line-height:1.35;min-height:38px;margin:0 0 8px}
 #landing #games .card button{min-height:38px;font-size:12px}
 #landing>.adventure-catalog{grid-column:1/-1;width:100%;min-width:0;margin:0}
 #landing .adventure-catalog .section-title{margin:0 0 10px}
 #landing .adventure-catalog .section-title h2{font-size:24px;margin:4px 0}
 #landing .catalog-search{width:100%;max-width:360px;margin:10px 0 14px;font-size:13px}
 #landing .catalog-search input{box-sizing:border-box;width:100%;min-height:40px;margin-top:6px;padding:9px 12px;font-size:14px;border-radius:9px}
 #landing>.live{grid-column:1/-1;box-sizing:border-box;width:100%;max-width:760px;justify-self:center;min-height:0;margin:0;padding:12px 14px;gap:14px;border-radius:12px;align-items:center}
 #landing>.live>div{min-width:0;flex:1}
 #landing>.live .eyebrow{font-size:9px;letter-spacing:1.2px;margin:0 0 4px}
 #landing>.live h2{font-size:18px;line-height:1.25;margin:0 0 5px;letter-spacing:-.25px}
 #landing>.live p:not(.eyebrow){max-width:460px;font-size:12px;line-height:1.4;margin:0}
 #landing>.live .toggle{flex:0 0 144px;min-width:0;margin:0;font-size:12px}
 #landing>.live .toggle input{width:18px;height:18px}
 #landing>.live .toggle small{font-size:10px;line-height:1.35;margin-top:4px}
 #landing>.stats{grid-column:1/-1;box-sizing:border-box;display:flex;justify-content:center;align-items:flex-start;gap:32px;width:100%;max-width:760px;justify-self:center;margin:0;padding:0 0 4px;text-align:center}
 #landing .stats>span{flex:1;min-width:0}
 #landing .stats b{font-size:22px}
 #landing .stats span{font-size:11px;line-height:1.5}
 html.library-embedded body>footer{display:none}
}
/* Teal play actions echo the scout's tunic and retain white labels. */
#landing .cards .card button,#landing .hero .art .primary{background:var(--surface)!important;border-color:var(--secondary)!important;color:var(--secondary)!important;box-shadow:none!important;text-shadow:none!important}
#landing .cards .card button:not(:disabled):hover,#landing .hero .art .primary:hover{background:var(--surface)!important;border-color:var(--secondary)!important;color:var(--secondary)!important}
#landing .cards .card button:not(:disabled):active,#landing .hero .art .primary:active{background:var(--surface)!important}
#landing .cards .card button:focus-visible,#landing .hero .art .primary:focus-visible{outline:2px solid var(--secondary);outline-offset:3px}

/* Library canvas and controls share the surrounding platform appearance. */
html[data-theme=light],html[data-theme=light] body{background:var(--bg)!important;color:var(--text);color-scheme:light;--ink:#000;--muted:var(--text-muted);--line:var(--border)}
html[data-theme=light] #landing{background:var(--surface);color:var(--text)}
html[data-theme=light] #landing :is(.hero,.art,.live,.mobile-noah-banner,.card,.card:nth-child(3n+2),.card:nth-child(3n)){background:var(--surface)!important;border-color:#dedee5!important;box-shadow:none!important;backdrop-filter:none}
html[data-theme=light] #landing :is(h1,h2,h3,p,small,strong,.eyebrow,.intro,.chips,.muted,.category,.mobile-collection-title,.catalog-search,.toggle,.stats,.section-title){color:var(--text-muted)!important;text-shadow:none!important}
html[data-theme=light] #landing :is(input,select,.mobile-library-filters button){background:var(--surface)!important;color:var(--secondary)!important;border-color:var(--secondary)!important;box-shadow:none!important}
html[data-theme=light] #landing input::placeholder{color:var(--text-muted);opacity:1}
html[data-theme=light] #landing .mobile-library-filters button[aria-pressed=true]{background:var(--surface)!important;color:var(--secondary)!important;border-color:var(--secondary)!important}
html body header nav button{display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;min-height:34px;margin:0;padding:7px 10px;border:1px solid var(--secondary)!important;border-radius:8px;background:var(--surface)!important;color:var(--secondary)!important;font:650 12px/20px 'DM Sans',sans-serif;letter-spacing:normal;box-shadow:none!important;text-shadow:none!important}
html body header nav button:hover{background:var(--surface)!important}
html[data-theme=light] body header nav button{background:var(--surface)!important;color:var(--secondary)!important;border-color:var(--secondary)!important}
html[data-theme=light] body header nav button:hover{background:var(--surface)!important}
html[data-theme=light] #play{color:var(--text)}
html[data-theme=light] #landing .stats :is(b,span){color:var(--text)!important;text-shadow:none!important;opacity:1}
/* Focused solo quiz layout, neutral surfaces and compact answers. */
html body #play{max-width:900px;margin:16px auto 24px;color:var(--text)}
html body #play .play-top{gap:8px;margin-bottom:12px;font-size:14px}
html body #play .progress-track{height:5px;margin:10px 0 16px;background:#32363c}
html body #play .question-card{padding:22px;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:none;backdrop-filter:none}
html body #play .question-top{font-size:12px;color:var(--text);letter-spacing:.03em}
html body #play .question-card h2{font:650 clamp(20px,2.5vw,28px)/1.35 'DM Sans',sans-serif;margin:18px 0 20px;color:var(--text)}
html body #play #answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
html body #play .answer{display:flex;align-items:center;gap:10px;min-height:56px;padding:12px;font-size:16px;line-height:1.4;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--text);box-shadow:none}
html body #play .answer span{flex:0 0 28px;width:28px;height:28px;border-radius:5px;background:var(--surface);color:var(--text);font-size:13px}
html body #play .answer:hover:not(:disabled){background:var(--surface);border-color:var(--border)}
html body #play .answer.correct{background:var(--surface);border-color:var(--border);color:var(--text)}
html body #play .answer.wrong{background:var(--surface);border-color:var(--border);color:var(--text)}
html body #play .note{font-size:12px;line-height:1.5;margin:10px 0;color:var(--text-muted)}
html[data-theme=light] body #play .question-card{background:var(--surface);border-color:var(--border)}
html[data-theme=light] body #play .question-card h2{color:var(--text)}
html[data-theme=light] body #play .answer{background:var(--surface);color:var(--text);border-color:var(--border)}
html[data-theme=light] body #play .question-top,html[data-theme=light] body #play .note{color:var(--text-muted)}
@media(max-width:600px){html body #play{margin:8px auto 18px}html body #play .question-card{padding:14px;border-radius:9px}html body #play .question-card h2{font-size:21px;margin:14px 0}html body #play #answers{grid-template-columns:1fr;gap:8px}html body #play .answer{min-height:48px;padding:9px 10px;font-size:15px}}

.guest-save-prompt{margin-top:24px;padding:20px;border:1px solid currentColor;border-radius:16px;text-align:center}.guest-save-prompt p{line-height:1.6}.guest-save-prompt a{display:block;margin:14px auto;max-width:340px;color:inherit}.guest-save-prompt a.primary{color:var(--secondary);text-decoration:none;padding:14px;border-radius:12px;background:var(--surface)}.guest-save-prompt a:focus-visible{outline:3px solid currentColor;outline-offset:4px}

/* Unified discovery library: the same search and filters on mobile and desktop. */
html.library-embedded main#landing{display:flex;flex-direction:column;gap:24px;max-width:1280px;padding:8px 2px 24px;min-width:0}
html.library-embedded main#landing[hidden]{display:none}
html.library-embedded #landing>.hero{display:none}
html.library-embedded #landing>.mobile-noah-banner{display:none}
html.library-embedded #landing>.mobile-library-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:14px;width:100%;margin:0;padding:0}
html.library-embedded .mobile-library-toolbar h1{font-size:26px;line-height:1.2;letter-spacing:-.03em;margin:0;flex:1;min-width:160px}
html.library-embedded .mobile-library-toolbar input{box-sizing:border-box;flex:1;min-width:180px;max-width:360px;min-height:46px;border-radius:12px;padding:12px 16px;font-size:15px;border:1px solid var(--border);background:var(--surface);color:var(--text)}
html.library-embedded .mobile-library-filters{display:flex;flex-wrap:wrap;gap:8px;width:100%;margin:0}
html.library-embedded .mobile-library-filters button{min-height:42px;padding:9px 16px;border-radius:22px;border:1px solid var(--secondary);background:var(--surface);color:var(--secondary);font-size:13px;box-shadow:none;text-shadow:none}
html.library-embedded #landing .mobile-library-filters button[aria-pressed=true]{background:var(--surface)!important;color:var(--secondary)!important;border-color:var(--secondary)!important}
html.library-embedded #landing .mobile-library-toolbar>p{width:100%;font-size:14px}
html.library-embedded #landing>#games,html.library-embedded #landing>.adventure-catalog{width:100%;margin:0;min-width:0}
html.library-embedded #landing .mobile-collection-title{display:block;font-size:19px;line-height:1.3;margin:0 0 14px}
html.library-embedded #landing #games>.section-title,html.library-embedded #landing .adventure-catalog>.section-title,html.library-embedded #landing .catalog-search,html.library-embedded #landing .adventure-rail-controls{display:none!important}
html.library-embedded #landing :is(#games,.adventure-catalog) .cards.adventure-rail{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;width:100%;padding:0;overflow:visible;scroll-snap-type:none}
html.library-embedded #landing :is(#games,.adventure-catalog) .adventure-rail>.card{box-sizing:border-box;display:flex;flex-direction:column;flex:none;width:100%;max-width:none;min-width:0;padding:12px;border:1px solid var(--border);border-radius:16px;background:var(--surface);text-align:left;overflow:hidden;box-shadow:none}
html.library-embedded #landing :is(#games,.adventure-catalog) .card .game-cover{width:calc(100% + 24px);margin:-12px -12px 12px;aspect-ratio:1/1;border-radius:0}
html.library-embedded #landing .card .category{font-size:10px;line-height:1.5;letter-spacing:.06em;color:var(--text)}
html.library-embedded #landing .card h3{font-size:16px;line-height:1.35;min-height:44px;letter-spacing:-.01em;margin:6px 0 10px;color:var(--text)}
html.library-embedded #landing .card p{display:none}
html.library-embedded #landing .card small{font-size:11px;line-height:1.5;margin-bottom:12px;color:var(--text-muted);min-height:0}
html.library-embedded #landing .card button{width:100%;min-height:44px;padding:11px;margin-top:auto;background:var(--surface)!important;color:var(--secondary)!important;border:1px solid var(--secondary)!important;border-radius:10px;font-size:13px;font-weight:800;text-shadow:none!important;box-shadow:none!important}
html.library-embedded #landing .mobile-filter-hidden,html.library-embedded #landing .mobile-section-empty{display:none!important}
html.library-embedded #landing button:focus-visible,html.library-embedded #landing input:focus-visible{outline:3px solid var(--secondary)!important;outline-offset:3px}
html.library-embedded[data-theme=light] #landing .card{background:var(--surface)!important;border-color:var(--border)!important}
html.library-embedded[data-theme=light] #landing .card h3{color:var(--text)!important}
html.library-embedded[data-theme=light] #landing .card :is(small,.category){color:var(--text-muted)!important}
html.library-embedded[data-theme=light] #landing .card button{background:var(--surface)!important;color:var(--secondary)!important;border-color:var(--secondary)!important}
@media(max-width:800px){html.library-embedded main#landing{padding:4px 0 20px;gap:20px}html.library-embedded #landing :is(#games,.adventure-catalog) .cards.adventure-rail{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}html.library-embedded .mobile-library-toolbar h1{font-size:24px;flex-basis:100%}html.library-embedded .mobile-library-toolbar input{max-width:none;width:100%;flex-basis:100%}html.library-embedded #landing .card h3{font-size:14px;min-height:38px}html.library-embedded .mobile-library-filters button{padding:9px 12px}}
html.library-embedded[data-theme=light] #landing :is(.mobile-collection-title,.mobile-library-toolbar h1){color:var(--text)!important}
/* Compact swipeable collections, with existing arrow and keyboard controls. */
html.library-embedded #landing :is(#games,.adventure-catalog) .cards.adventure-rail{display:flex;flex-flow:row nowrap;gap:14px;overflow-x:auto;overflow-y:hidden;padding:4px 2px 14px;scroll-snap-type:x proximity;scroll-padding:2px;overscroll-behavior-x:contain;scrollbar-width:thin}
html.library-embedded #landing :is(#games,.adventure-catalog) .adventure-rail>.card{flex:0 0 174px;width:174px;max-width:174px;scroll-snap-align:start}
html.library-embedded #landing #games>.section-title,html.library-embedded #landing .adventure-catalog>.section-title{display:flex!important;justify-content:flex-end;margin:-46px 0 8px;min-height:38px;pointer-events:none}
html.library-embedded #landing :is(#games,.adventure-catalog)>.section-title>*:not(.adventure-rail-controls){display:none!important}
html.library-embedded #landing .adventure-rail-controls{display:flex!important;gap:6px;pointer-events:auto}
html.library-embedded #landing .adventure-rail-controls[hidden]{display:none!important}
html.library-embedded #landing .adventure-rail-controls button{min-width:36px;min-height:36px;border-radius:50%;background:var(--surface);color:var(--secondary);border:1px solid var(--secondary);box-shadow:none}
html.library-embedded #landing .mobile-collection-title{padding-right:90px;min-height:28px;margin-bottom:12px}
html.library-embedded #landing .mobile-library-toolbar h1{font-size:22px}
@media(max-width:600px){html.library-embedded #landing :is(#games,.adventure-catalog) .adventure-rail>.card{flex-basis:44vw;width:44vw;max-width:180px}html.library-embedded #landing .card .game-cover{aspect-ratio:1/1}html.library-embedded .mobile-library-toolbar{gap:10px!important}html.library-embedded #landing .mobile-collection-title{font-size:17px}}
/* Readable web cards; preserve horizontal discovery and the mobile card width. */
@media(min-width:601px){html.library-embedded #landing :is(#games,.adventure-catalog) .adventure-rail>.card{flex-basis:230px;width:230px;max-width:230px;padding:14px}html.library-embedded #landing :is(#games,.adventure-catalog) .card .game-cover{width:calc(100% + 28px);margin:-14px -14px 14px}html.library-embedded #landing .card h3{font-size:18px;line-height:1.35;min-height:49px;white-space:normal;overflow:visible;text-overflow:clip;color:var(--text)!important}html.library-embedded #landing .card .category{font-size:12px;line-height:1.5;color:var(--text)!important}html.library-embedded #landing .card small{display:block;font-size:13px;line-height:1.5;color:var(--text-muted)!important}html.library-embedded #landing .card button{font-size:14px;min-height:46px}html.library-embedded[data-theme=light] #landing .card h3{color:var(--text)!important}html.library-embedded[data-theme=light] #landing .card :is(.category,small){color:var(--text-muted)!important}}

/* Compact library cards; keep Play targets comfortable to tap. */
html.library-embedded header #fullscreen{display:none!important}
html.library-embedded #landing :is(#games,.adventure-catalog) .adventure-rail>.card{flex-basis:190px;width:190px;max-width:190px;padding:10px;border-radius:12px}
html.library-embedded #landing :is(#games,.adventure-catalog) .card .game-cover{width:calc(100% + 20px);margin:-10px -10px 10px;aspect-ratio:1/1}
html.library-embedded #landing .card h3{font-size:16px;line-height:1.35;min-height:43px;margin:5px 0 8px}
html.library-embedded #landing .card small{font-size:12px;margin-bottom:8px}
html.library-embedded #landing .card button{min-height:44px;padding:10px;font-size:13px}
@media(max-width:800px){html.library-embedded header{display:none!important}}
@media(max-width:600px){html.library-embedded #landing :is(#games,.adventure-catalog) .adventure-rail>.card{flex-basis:clamp(120px,36vw,150px);width:clamp(120px,36vw,150px);max-width:150px}html.library-embedded #landing .card h3{font-size:14px;min-height:38px}html.library-embedded #landing .card small{font-size:11px}}
/* Both collections share the same centered canvas and balanced action buttons. */
html.library-embedded main#landing{box-sizing:border-box;width:100%;max-width:1120px!important;margin-inline:auto!important;padding-inline:12px!important}
html.library-embedded #landing :is(#games,.adventure-catalog){box-sizing:border-box;width:100%;max-width:1080px;margin-inline:auto!important}
html.library-embedded #landing :is(#games,.adventure-catalog) .cards.adventure-rail{justify-content:safe center!important}
html.library-embedded #landing .mobile-collection-title{text-align:center!important;width:100%;font-size:22px;line-height:1.3}
html.library-embedded #landing .mobile-library-filters{justify-content:center!important}
html.library-embedded #landing .card button{min-height:44px!important;padding:10px 12px!important;font-size:14px!important;line-height:1.4!important;text-align:center!important}
html.library-embedded #landing .adventure-rail-controls button{min-width:44px!important;min-height:44px!important}
html.library-embedded:not([data-theme=light]) #landing :is(h1,h2,h3,p,small,span,button,a,label){color:var(--text)!important}
