
:root{color-scheme:dark;--cyan:#49c9ed;--green:#31d158;--orange:#ff9f0a;--yellow:#ffdf08;--pink:#ff375f;--purple:#c653e9;--mint:#00cfba}*{box-sizing:border-box}body{margin:0;min-height:100vh;color:white;background:radial-gradient(ellipse at 58% 20%,#27a4c323,transparent 29%),radial-gradient(ellipse at 42% 88%,#ed8c2420,transparent 25%),linear-gradient(125deg,#0a204d 0%,#2d104b 55%,#124b65 100%);background-attachment:fixed;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:17px;line-height:1.4}button,a{touch-action:manipulation}button{font:inherit;color:inherit;cursor:pointer}a{color:inherit}#app{max-width:1240px;margin:auto;padding:28px 30px 24px;min-height:100vh;display:flex;flex-direction:column}#play{flex:1}.game-header{display:flex;gap:10px;align-items:center;margin-bottom:18px}.home{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#32c3fb2e;color:var(--cyan);flex-shrink:0}.home svg{width:24px;fill:none;stroke:currentColor;stroke-width:1.4}.game-name h1{font-size:19px;margin:0;font-weight:750}.game-name p{font-size:13px;font-weight:600;color:#ffffffb8;margin:2px 0 0}.points{margin-left:auto;text-align:right}.points strong{display:block;color:var(--yellow);font-size:23px;font-weight:900;font-variant-numeric:tabular-nums}.points span{display:block;font-size:10px;letter-spacing:1px;font-weight:800;color:#ffffff99}.score-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}.metric{text-align:center;background:#0003;border:1px solid #ffffff14;border-radius:11px;padding:8px 6px 7px;min-width:0}.metric-label{color:var(--tint);font-size:11px;font-weight:800;white-space:nowrap;display:flex;align-items:center;justify-content:center;gap:3px}.metric-label svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2;flex-shrink:0}.metric strong{display:block;font-family:ui-rounded,"SF Pro Rounded",-apple-system,sans-serif;font-weight:900;font-size:25px;font-variant-numeric:tabular-nums;line-height:1.25;margin:2px 0 5px}.meter{height:3px;background:#ffffff26;border-radius:5px;overflow:hidden}.meter span{display:block;height:100%;background:var(--tint);transition:width .35s}.progress-section{margin:18px 0}.progress-section>div{display:flex;justify-content:space-between;font-size:13px;font-weight:900;color:#ffffffbd;letter-spacing:.15px}progress{display:block;width:100%;height:4px;margin-top:8px;border:0;border-radius:20px;overflow:hidden;background:#ffffff1f}progress::-webkit-progress-bar{background:#ffffff1f}progress::-webkit-progress-value{background:var(--cyan)}.challenge-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.scenario-card{border:1px solid #ffffff21;border-radius:22px;padding:18px;background:linear-gradient(135deg,#ffffff24,#ffffff12);box-shadow:0 8px 16px #00000022}.scenario-label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;font-weight:900;color:var(--cyan)}.instruction{font-size:9px;letter-spacing:.7px;color:#ffffff80;text-align:right}.scenario-card h2{font-family:ui-rounded,"SF Pro Rounded",-apple-system,BlinkMacSystemFont,sans-serif;font-size:34px;font-weight:900;line-height:1.15;margin:17px 0}.scenario-card p{font-size:20px;font-weight:500;color:#ffffffde;line-height:1.45;margin:0}#choices{display:grid;gap:9px}.choice{display:flex;align-items:center;gap:12px;text-align:left;border:1px solid #ffffff17;background:#00000036;border-radius:16px;padding:13px;font-weight:600;width:100%;line-height:1.4;min-height:66px}.choice:hover{background:#ffffff14;border-color:#49c9ed99}.letter{display:grid;place-items:center;border-radius:50%;width:34px;height:34px;flex:none;background:#32c3fb2b;color:var(--cyan);font-size:18px;font-weight:900}.choice .chevron{color:#ffffff59;font-size:23px;font-weight:400;margin-left:auto;padding-left:3px}.consequence{background:#00000052;border:1.5px solid var(--feedback-color);border-radius:22px;padding:17px;--feedback-color:var(--orange)}.consequence.strong{--feedback-color:var(--green)}.feedback-heading{display:flex;align-items:center;gap:10px}.feedback-icon{border-radius:50%;width:48px;height:48px;flex:none;display:grid;place-items:center;background:#ff9f0a25;color:var(--feedback-color);font-size:26px}.strong .feedback-icon{background:#31d15825}.feedback-heading h3{font-size:13px;font-weight:900;color:var(--feedback-color);margin:0}.feedback-heading p{font-size:12px;color:#ffffffa6;margin:2px 0 0}#consequence-text{font-weight:600;margin:14px 0;line-height:1.45}.effects{display:flex;flex-wrap:wrap;gap:6px}.effect{font-size:12px;font-weight:700;background:#ffffff14;border-radius:30px;padding:5px 8px;color:var(--green)}.effect.negative{color:var(--orange)}.next{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;border:0;border-radius:15px;background:var(--feedback-color);color:#000;padding:14px 16px;font-size:14px;font-weight:900;margin-top:16px;text-align:left}.next span{font-size:22px}.next:hover,.replay:hover{filter:brightness(1.12)}footer{display:flex;justify-content:space-between;gap:18px;font-size:11px;letter-spacing:.6px;color:#ffffffa6;margin-top:44px;padding-top:16px}footer a{text-underline-offset:4px;letter-spacing:0;font-size:13px}.result{max-width:1080px;width:100%;margin:10px auto 0;text-align:center}.profile-icon{width:112px;height:112px;border:4px solid var(--cyan);outline:10px solid #49c9ed22;border-radius:50%;display:grid;place-items:center;font-size:56px;color:var(--cyan);margin:20px auto 32px}.eyebrow{font-size:12px;letter-spacing:1.8px;font-weight:900;color:var(--cyan)}.result h2{font-family:ui-rounded,-apple-system,sans-serif;font-size:34px;line-height:1.2;margin:16px 0;font-weight:900}#profile-message{color:#ffffffd1;max-width:720px;margin:0 auto 20px}.result-stats{display:flex;gap:8px;margin-bottom:18px}.result-stats>div{flex:1;background:#ffffff12;border-radius:14px;padding:15px}.result-stats strong{display:block;font-size:24px;font-weight:900}.result-stats span{display:block;font-size:12px;color:#ffffffad}.result-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.result-card{background:#00000045;border:1px solid #ffffff1a;border-radius:20px;padding:18px;text-align:left}.result-card h3{font-size:17px;font-weight:900;color:var(--cyan);margin:0 0 12px}.result-card h4{font-size:20px;margin:0 0 10px}.result-card p{font-size:15px;color:#ffffffc7;line-height:1.5}.level{font-size:14px;color:#ffffffa0;padding:4px 0}.level.current{color:white;font-weight:700}.level.current span{color:var(--cyan)}.final-score{display:flex;justify-content:space-between;padding:5px 0;font-size:16px;color:#ffffffc7}.final-score strong{color:white}#final-scores{border-top:1px solid #ffffff26;padding-top:12px}.demo-note{font-size:13px!important;color:#ffffff99!important;margin-top:17px}.app-store,.replay{display:block;width:100%;padding:17px;border-radius:17px;border:0;margin-top:18px;text-decoration:none;font-size:17px;font-weight:900}.app-store{background:linear-gradient(90deg,#1caee9,#187dec)}.replay{background:linear-gradient(90deg,#ff9f0a,#ffdf08);color:#000}.skip{position:absolute;top:-80px;left:15px;z-index:2;background:#fff;color:#000;padding:10px}.skip:focus{top:10px}:focus-visible{outline:3px solid var(--cyan);outline-offset:4px}h2:focus{outline:none}[hidden]{display:none!important}@media(min-width:1600px){#app{padding-top:45px}}@media(max-width:950px) and (min-width:760px){.metric-label{font-size:9px}.metric-label svg{width:10px}.instruction{font-size:8px}.scenario-label{font-size:11px}}@media(max-width:759px){#app{padding:12px 16px 20px}.score-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 8px}.metric-label{font-size:10px}.metric strong{font-size:21px}.challenge-layout{grid-template-columns:1fr;gap:13px}.scenario-card h2{font-size:26px;margin:14px 0}.scenario-card p{font-size:17px}.choice{font-size:15px}.game-header{margin-bottom:13px}.progress-section{margin:13px 0}.result-columns{grid-template-columns:1fr}.result h2{font-size:30px}footer{flex-direction:column;gap:8px;margin-top:28px}.instruction{font-size:8px}.scenario-label{font-size:12px}.game-name h1{font-size:18px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}.demo-banner{text-align:center;padding:18px 0 28px}.demo-banner strong{color:var(--cyan);letter-spacing:1.5px}.demo-banner p{color:#ffffffbb;line-height:1.6}.demo-logo{width:76px;height:76px;border-radius:16px;object-fit:cover}.score-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.pending{background:#ffffff12;color:#ffffffbf;font-size:16px;cursor:default}#consequence-text{white-space:pre-line}#demo-complete{font-size:20px;color:var(--cyan)}@media(max-width:759px){.score-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.metric-label{font-size:11px}.demo-logo{width:60px;height:60px}}footer{flex-wrap:wrap}
.about-open,#about-close{border:1px solid #7888bd70;border-radius:24px;background:#333b6b;color:#38d2c5;padding:12px 22px;font-size:17px;font-weight:700;cursor:pointer}#about{color:white;border:1px solid #ffffff25;padding:0;border-radius:30px;width:min(1060px,94vw);max-height:90dvh;background:linear-gradient(145deg,#0c1230,#17102d 55%,#05343c);overflow:auto}#about::backdrop{background:#000a;backdrop-filter:blur(5px)}.about-bar{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;padding:16px 24px;background:#101637f2}.about-bar h2{margin:0;font-size:24px}.about-content{padding:26px}.about-hero{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:28px}.author-book{position:relative;aspect-ratio:1.12;overflow:hidden}.author{width:100%;height:90%;object-fit:cover;object-position:top;mask-image:linear-gradient(#000 72%,transparent)}.book{position:absolute;width:43%;right:3.5%;bottom:1.5%;border-radius:4px;box-shadow:-8px 14px 25px #0009}.about-intro{text-align:center}.about-intro h2{font-family:ui-rounded,system-ui,sans-serif;font-size:clamp(27px,4vw,40px);font-weight:900}.about-intro h3{color:#38d2c5;font-size:24px;line-height:1.45}.about-intro p,.book-core p{font-size:20px;line-height:1.65;color:#ffffffce}.about-intro strong{color:#ffb33d}.book-core{margin:30px 0;padding:26px;border:2px solid #ffb33d66;border-radius:26px;text-align:center;background:#ffb33d0d}.book-core h3{color:#ffac35;font-size:27px}.about-cards{display:grid;grid-template-columns:1fr 1fr;gap:20px}.about-card{padding:25px;border-radius:26px;border:1px solid #ffffff25;background:#080a2099;--accent:#37d4c8}.about-card.amber{--accent:#ffab35}.about-card.blue{--accent:#39baff}.about-card.green{--accent:#39d86d}.about-icon{display:grid;place-items:center;width:62px;height:62px;font-size:35px;border-radius:18px;background:color-mix(in srgb,var(--accent) 16%,transparent);color:var(--accent)}.about-card h3{font-size:25px;margin:20px 0 10px}.about-card h4{font-size:14px;letter-spacing:1.5px;color:var(--accent)}.about-card p{font-size:18px;color:#ffffffcc;line-height:1.6}.about-card a{color:var(--accent);font-weight:700;text-underline-offset:4px}@media(max-width:700px){.about-hero,.about-cards{grid-template-columns:1fr}.about-content{padding:20px}.about-intro h2{font-size:32px}.about-bar{padding:14px 20px}}
