:root { --soft:#eceee1; --action-ink:#fff; }
:root[data-theme="book"] { --base:#f6f4ec; --ink:#193f37; --green:#164d3f; --line:#d4d4c4; --white:#fffdf6; }
:root[data-theme="circle"] { --base:#fbfaf6; --ink:#163f3e; --green:#15665b; --muted:#486158; --line:#d5dfd7; --white:#fff; --soft:#eef4e9; }
:root[data-theme="city"] { color-scheme:dark; --base:#101423; --ink:#fff6eb; --green:#ffd29a; --action-ink:#281d20; --muted:#c9c6d7; --line:#494a60; --white:#1b2033; --soft:#28293f; }
.theme-tools,.theme-trigger,.theme-option,.sample-head,.sample-tabs,.sample-line { display:flex; align-items:center; }
.theme-tools { gap:12px; }.theme-trigger { gap:7px; border:1px solid var(--line); background:var(--white); padding:7px 13px; border-radius:25px; font-weight:700; min-height:42px; }.theme-trigger .ico { width:18px; }
#theme-dialog { width:min(410px,92vw); padding:22px; background:var(--white); color:var(--ink); border:1px solid var(--line); }
.theme-heading {display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.theme-heading h2{font-size:26px}.theme-heading button{background:none;border:0;font-size:24px;padding:4px 12px}.theme-options {display:grid;gap:8px}.theme-option {width:100%;text-align:start;gap:12px;border:1px solid var(--line);border-radius:12px;padding:11px;background:var(--base);color:var(--ink)}.theme-option strong,.theme-option small {display:block}.theme-option small{color:var(--muted)}.theme-option[aria-pressed=true]{outline:2px solid var(--green);outline-offset:-2px}.selected-mark{margin-inline-start:auto;font-weight:700;visibility:hidden}.theme-option[aria-pressed=true] .selected-mark{visibility:visible}.swatch{width:45px;height:40px;border:1px solid var(--line);border-radius:8px;flex:none}.swatch.book{background:linear-gradient(90deg,#184738 50%,#fff3d4 50%)}.swatch.circle{background:linear-gradient(135deg,#e9eee1 52%,#267768 52%)}.swatch.city{background:linear-gradient(155deg,#171b39 42%,#594e79 70%,#ffc58e)}
.theme-hero {position:relative;display:grid;grid-template-columns:1fr 1fr;min-height:clamp(380px,32vw,485px);isolation:isolate;}
.theme-copy {align-self:center;min-width:0;padding:clamp(26px,4vw,60px)}
.theme-copy h1 {font-size:clamp(47px,5.4vw,78px);line-height:1.23}.theme-copy h1 em{font-style:normal}.theme-copy>p{font-size:clamp(16px,1.55vw,21px);margin-top:14px;max-width:440px}.theme-eyebrow{display:block;font-size:14px;font-weight:700;margin-bottom:12px}
.theme-art {position:relative;overflow:hidden}.theme-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.theme-copy .button{color:var(--action-ink)}.sample-link {border:0;border-bottom:1px solid currentColor;background:none;font-weight:650;padding:4px}.sample-caption{position:absolute;bottom:20px;left:20px;border-radius:13px 13px 13px 1px;padding:8px 15px;background:#fffdf3;color:#21382c;font:italic 21px/1.3 Georgia,serif}
[data-theme=book] .theme-hero{border:6px solid #244e3c;border-radius:12px;background:#fffbed;box-shadow:0 6px #d5cdb5,0 12px 24px #2c322017;overflow:hidden}
[data-theme=book] .theme-art:after{content:'';position:absolute;inset:0;background:linear-gradient(270deg,#142e2760,transparent 8%)}
[data-theme=circle] .theme-hero{grid-template-columns:.9fr 1.12fr;gap:clamp(24px,5vw,70px)}[data-theme=circle] .theme-copy{padding-inline:0}[data-theme=circle] .theme-art{border-radius:32px 80px 32px 32px}[data-theme=circle] .theme-copy em{color:#147968}[data-theme=circle] .button{border-radius:24px}
[data-theme=city] .theme-hero{display:flex;border-radius:16px;overflow:hidden;background:#101423;color:#fff6eb}
[data-theme=city] .theme-art{position:absolute;inset:0;z-index:-1}[data-theme=city] .theme-art img{object-position:center 55%}
[data-theme=city] .theme-art:after{content:'';position:absolute;inset:0;background:linear-gradient(270deg,#101427 0%,#12162ad9 28%,#12162a22 70%,transparent),linear-gradient(0deg,#10142399,transparent 25%)}
[data-theme=city] .theme-copy em{color:#ffd29a}[data-theme=city] .theme-copy>p{color:#e5e1eb}
.theme-sample{margin:33px 0}.sample-head,.sample-line{justify-content:space-between;gap:16px}.sample-tabs{gap:4px;flex-wrap:wrap}.sample-tabs button{background:transparent;color:var(--ink);border:0;border-radius:22px;padding:7px 15px}.sample-tabs [aria-pressed=true]{background:var(--green);color:var(--action-ink)}.sample-line{margin-top:13px;padding:19px 24px;border:1px solid var(--line);border-radius:14px;background:var(--white)}.sample-line small{color:var(--muted)}.sample-line p{color:var(--ink);text-align:start;font:23px/1.5 Georgia,serif}.sample-line [hidden]{display:none}
[data-theme=circle] .sample-line{background:var(--soft);border:0;border-inline-start:4px solid #c2945c}[data-theme=city] .sample-line{background:none;border-width:1px 0;border-radius:0}
[data-theme=city] .button{color:var(--action-ink)}[data-theme=city] :is(.prompt,.round,.roomhead,.role-card,nav [aria-current],.choice,.close,.skip:focus){background:var(--soft);color:var(--ink)}
[data-theme=city] :is(input,textarea,select,.compose input,.compose textarea){background:var(--base);color:var(--ink);border-color:var(--line)}
[data-theme=city] .post p{color:var(--ink)}[data-theme=city] .choice.correct{background:#224f42}[data-theme=city] .choice.wrong{background:#58332f}[data-theme=city] :is(.source,.kicker){color:var(--green)}[data-theme=city] #notice{color:var(--action-ink)}[data-theme=city] input[type=radio]{accent-color:#ffd29a}
@media(min-width:701px){.theme-art img{transition:transform .5s ease}[data-theme=circle] .theme-art:hover img{transform:scale(1.03)}}
@media(max-width:1080px){.navwrap{flex-wrap:wrap;padding-block:10px;gap:8px}.navwrap nav{order:3;width:100%;justify-content:center;flex-wrap:wrap}.theme-tools{margin-inline-start:auto}}
@media(max-width:700px){.theme-hero,[data-theme=circle] .theme-hero{grid-template-columns:minmax(0,1fr);gap:0;min-height:0}.theme-art{height:210px}.theme-copy,[data-theme=circle] .theme-copy{padding:22px}.theme-copy h1{font-size:44px}.theme-copy h1 br{display:block}.theme-tools{gap:6px}.theme-trigger{font-size:13px;padding:5px 9px;gap:4px}.supervisor>span:last-child{display:none}.supervisor .portrait{width:36px;height:36px}.brand strong{font-size:21px}.brand img{width:35px}.sample-head,.sample-line{align-items:flex-start;flex-direction:column;gap:10px}.sample-line{padding:16px}.theme-sample h2{font-size:27px}.sample-line p{font-size:21px}.sample-tabs button{padding:6px 12px}.sample-caption{font-size:16px}[data-theme=city] .theme-art{height:100%}[data-theme=city] .theme-hero{min-height:355px}[data-theme=city] .theme-art img{object-position:33% 50%}[data-theme=city] .theme-art:after{background:linear-gradient(270deg,#111326e8,#10142365 70%,#10142322)}}
@media(prefers-reduced-motion:no-preference){.theme-hero,.theme-sample [data-cue],#sample-answer:not([hidden]){animation:theme-enter .35s ease-out both}@keyframes theme-enter{from{opacity:.15;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}}
@media(prefers-reduced-motion:reduce){.theme-art img,.card{transition:none}}
