/* Twin worlds share coordinates and piece art; only the setup changes. */
.worlds-page{max-width:1440px;margin:auto;color:#111;padding-top:26px}
.worlds-hero{display:flex;justify-content:space-between;align-items:center;gap:28px;padding:0 0 24px;border-bottom:1px solid #bac3af}
.worlds-hero .eyebrow{font-size:12px;letter-spacing:2px}
.worlds-hero h2{font-size:clamp(42px,5.3vw,72px);font-weight:750;line-height:1.04;letter-spacing:-3px;margin:10px 0 14px}
.worlds-hero h2 em{font-family:Georgia,serif;font-weight:400;color:#516348}
.worlds-hero p{font-size:18px;line-height:1.45;margin:0}
.worlds-orbit{position:relative;width:180px;height:120px;display:flex;align-items:center;justify-content:center;isolation:isolate;margin-right:20px;flex:none}
.worlds-orbit span{display:grid;place-items:center;width:88px;height:88px;border:1px solid #71837e;border-radius:50%;background:#d5e6debb;font:italic 40px Georgia,serif;transform:translateX(10px);box-shadow:0 8px 30px #2a433410}
.worlds-orbit span:last-child{transform:translateX(-10px);background:#e3dbedbb;border-color:#8c7a9e}
.worlds-orbit i{position:absolute;inset:0;border:1px dashed #87927e;border-radius:50%;transform:rotate(-20deg) scale(1.2,.68);z-index:-1;animation:worlds-orbit 18s linear infinite}
@keyframes worlds-orbit{to{transform:rotate(340deg) scale(1.2,.68)}}
.worlds-toolbar{display:flex;gap:24px;align-items:end;margin:20px 0 26px}
.worlds-toolbar label{display:grid;gap:7px;font-size:14px;font-weight:650}
.worlds-toolbar select{box-sizing:border-box;width:300px;max-width:100%;padding:10px 32px 10px 12px;border:1px solid #9eac95;border-radius:8px;background:#fafbf6;color:#111;font:500 15px 'DM Sans',sans-serif;min-height:44px}
.worlds-toolbar>div{display:grid;gap:6px;margin-bottom:5px;font-size:14px}
#worlds-progress{font-weight:700}#worlds-score{color:#45533d}
.worlds-page button{font-family:'DM Sans',sans-serif;min-height:44px;font-size:14px;line-height:1.25;cursor:pointer;border:1px solid #a9b59b;border-radius:8px;background:#f9faf4;color:#111;padding:10px 14px}
.worlds-page button:focus-visible,.worlds-page select:focus-visible{outline:3px solid #5d794a;outline-offset:3px}
.worlds-page button:hover:not(:disabled){background:#e2ebcb;border-color:#667c53}
.worlds-page button:disabled{cursor:default;opacity:.55}
#worlds-flip{margin-left:auto}
.worlds-question{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px}
.worlds-question h3{font-size:24px;letter-spacing:-.6px;margin:0 0 7px;line-height:1.2}
.worlds-question p{margin:0;font-size:15px;color:#36432e;font-weight:550}
.worlds-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;max-width:1160px;margin:auto}
.world-card{--world-accent:#386a5a;--world-tint:#e3eee6;min-width:0;padding:18px;border:1px solid #9cab9b;border-radius:16px;background:linear-gradient(160deg,#fffefa,var(--world-tint));box-shadow:0 4px 22px #22351b09}
.world-b{--world-accent:#755785;--world-tint:#ece5ef;border-color:#b4a6bd}
.world-card>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px}
.world-card h3{font-size:25px;letter-spacing:-.5px;margin:0;color:var(--world-accent)}
.world-card>header>span{font-size:13px;text-align:right;max-width:21ch;line-height:1.4}
.world-board-frame{max-width:min(100%,calc(100svh - 430px));min-width:min(100%,280px);padding:7px;background:var(--board-frame);border-radius:6px;box-shadow:0 0 0 1px var(--board-edge),0 7px 16px #15241a22;margin:0 auto 18px}
.world-board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));aspect-ratio:1;background-image:var(--board-art);background-size:100% 100%;width:100%}
.world-square{position:relative;aspect-ratio:1;min-width:0;display:grid;place-items:center}
.world-square .piece{height:95%;width:95%;cursor:inherit;filter:drop-shadow(0 1px 1px #1113)}
.world-square small{font:650 clamp(9px,1vw,12px)/1 'DM Sans',sans-serif;position:absolute;color:#111;text-shadow:0 0 3px white,0 0 3px white;z-index:2;pointer-events:none}
.world-rank{top:3px;left:3px}.world-file{bottom:2px;right:3px}
.world-changed{box-shadow:inset 0 0 0 3px #edc653;background:#f0c94466}
.world-changed::after{content:'';position:absolute;inset:5px;border:1px solid #fff7bd;pointer-events:none}
.world-choices{display:grid;grid-template-columns:1fr .7fr 1fr;gap:7px;margin:0;padding:0;border:0;min-width:0}
.world-choices legend{font-size:14px;font-weight:600;line-height:1.3;margin-bottom:8px}
.world-choices button{padding-inline:6px;background:#ffffffb8}
.world-choices button[aria-pressed=true]{background:var(--world-accent);color:#fff;border-color:var(--world-accent);box-shadow:0 0 0 2px var(--world-tint)}
.world-choices:disabled button{opacity:.65}.world-choices:disabled button[aria-pressed=true]{opacity:1}
.world-result{display:grid;gap:5px;margin-top:15px;padding-top:14px;border-top:1px solid #a6b09b}
.world-result>span{font-size:13px;color:#3f4a3a}.world-result strong{font-size:27px;letter-spacing:-.6px;line-height:1.15}.world-result small{font-size:14px}
.world-play{margin-top:14px;width:100%}
.worlds-check-row{display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1160px;margin:20px auto}
.worlds-check-row p{font-size:16px;line-height:1.5;margin:0}.worlds-check-row small{font-size:14px;color:#48513e}
#worlds-check,#worlds-next{background:#dce997;border-color:#8a9d52;font-size:16px;font-weight:700;min-width:200px;min-height:50px}
.worlds-reveal{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr);gap:32px;padding:24px;max-width:1160px;margin:24px auto;border:1px solid #abb99b;border-radius:12px;background:#e8eddf}
.worlds-reveal .eyebrow{font-size:12px;letter-spacing:1px}.worlds-reveal h3{font-size:28px;letter-spacing:-.6px;margin:10px 0;line-height:1.15}.worlds-reveal p{font-size:16px;line-height:1.6;margin:0}
.worlds-reveal .worlds-evidence{font-size:14px;line-height:1.6;border-left:1px solid #aeb9a1;padding-left:24px;color:#34412d}
.worlds-footnote{max-width:1160px;margin:18px auto 0;font-size:13px;line-height:1.55;color:#4b5543}
/* Six page destinations; shorter screens keep the same usable game area. */
.primary-nav{grid-template-columns:repeat(6,minmax(0,1fr));max-width:1190px}
.main-header{gap:20px}.primary-nav .menu-item{padding-inline:12px}
@media(min-width:761px) and (max-width:1100px){.primary-nav .menu-item{padding-inline:6px}.menu-title{font-size:19px}.menu-subtitle{font-size:11px}.main-header .brand{font-size:20px}.main-header .brand-logo{width:32px;height:32px}.main-header{gap:12px}}
@media(max-width:760px){
 .main-header{height:204px;grid-template-rows:50px 144px;padding-top:4px;gap:4px;align-items:start}
 .primary-nav{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,68px);gap:4px}
 .primary-nav .menu-item{min-height:0;padding:10px 10px;justify-content:center;gap:4px}.menu-title{font-size:21px}.menu-subtitle{font-size:12px}
 .play-page{--header-height:204px}
 .worlds-page{padding-top:20px}.worlds-hero{gap:12px;padding-bottom:20px}.worlds-hero h2{font-size:43px;letter-spacing:-1.8px}.worlds-hero p{font-size:16px}.worlds-orbit{width:90px;height:90px;margin-right:6px}.worlds-orbit span{width:55px;height:55px;font-size:28px}.worlds-orbit span{transform:translateX(8px)}.worlds-orbit span:last-child{transform:translateX(-8px)}
 .worlds-toolbar{display:grid;grid-template-columns:1fr auto;gap:14px;margin:18px 0 22px}.worlds-toolbar label{grid-column:1/-1}.worlds-toolbar select{width:100%}.worlds-toolbar>div{font-size:13px}.worlds-toolbar button{padding-inline:10px}
 .worlds-question{align-items:start}.worlds-question h3{font-size:21px}.worlds-question p{font-size:14px}#worlds-hint{max-width:130px;font-size:13px;padding:8px}
 .worlds-pair{gap:12px}.world-card{padding:10px;border-radius:10px}.world-card>header{display:block;margin-bottom:10px}.world-card h3{font-size:21px}.world-card>header>span{display:none}.world-board-frame{min-width:0;max-width:100%;padding:4px;margin-bottom:12px}.world-choices{grid-template-columns:1fr;gap:6px}.world-choices button{min-height:40px;font-size:14px}.world-choices legend{font-size:13px}.world-square small{font-size:8px}.world-changed{box-shadow:inset 0 0 0 2px #edc653}.world-changed::after{inset:3px}.world-result strong{font-size:23px}.world-result small{font-size:12px}.world-play{font-size:13px!important;padding-inline:5px!important}
 .worlds-check-row{align-items:stretch;flex-direction:column;gap:12px;margin-top:16px}.worlds-check-row p{font-size:15px}.worlds-check-row button{width:100%}
 .worlds-reveal{grid-template-columns:1fr;gap:18px;padding:18px;margin-top:18px}.worlds-reveal h3{font-size:25px}.worlds-reveal .worlds-evidence{padding:16px 0 0;border-left:0;border-top:1px solid #aeb9a1}
}
@media(prefers-reduced-motion:reduce){.worlds-orbit i{animation:none}}
/* Keep the comparison in view before the explanatory reveal. */
@media(min-width:761px){
 .worlds-page{max-width:1280px;padding-top:18px}
 .worlds-hero{padding-bottom:16px;gap:20px}
 .worlds-hero>div:first-child{display:grid;grid-template-columns:auto minmax(220px,1fr);column-gap:36px;align-items:center;flex:1}
 .worlds-hero .eyebrow{grid-column:1;font-size:11px}
 .worlds-hero h2{grid-column:1;font-size:50px;letter-spacing:-2px;margin:8px 0 0}
 .worlds-hero p{grid-column:2;grid-row:1/span 2;font-size:16px}
 .worlds-orbit{width:120px;height:80px;margin-right:10px}.worlds-orbit span{width:65px;height:65px;font-size:30px}
 .worlds-toolbar{margin:14px 0 16px;gap:20px}.worlds-toolbar label{gap:5px}
 .worlds-question{margin-bottom:14px}.worlds-question h3{font-size:22px;margin-bottom:5px}
 .worlds-pair,.worlds-check-row,.worlds-reveal,.worlds-footnote{max-width:1000px}
 .world-card{padding:14px}.world-card>header{margin-bottom:12px}.world-card h3{font-size:23px}
 .world-board-frame{max-width:min(100%,calc(100svh - 430px));margin-bottom:14px}
 .worlds-check-row{margin-block:16px}
}
@media(min-width:761px) and (max-width:1000px){.worlds-hero>div:first-child{column-gap:22px;grid-template-columns:auto 1fr}.worlds-hero h2{font-size:40px}.worlds-hero p{font-size:14px}.worlds-orbit{display:none}}
@media(max-width:760px){
 .worlds-hero{display:block;padding-bottom:16px}.worlds-orbit{display:none}
 .worlds-hero h2{font-size:36px;letter-spacing:-1.5px;margin:8px 0 10px;white-space:nowrap}.worlds-hero p{font-size:14px;line-height:1.45}.worlds-hero .eyebrow{font-size:11px}
 .worlds-toolbar{margin:14px 0 18px;gap:10px}.worlds-toolbar label{gap:4px}.worlds-toolbar>div{font-size:12px;gap:4px}.worlds-toolbar select{font-size:14px}
 .worlds-question h3{font-size:19px;letter-spacing:-.4px}.worlds-question p{font-size:13px}
 .worlds-pair{gap:8px}.world-card{padding:7px}.world-card>header{margin-bottom:8px}.world-board-frame{padding:3px}.world-choices button{padding-inline:3px}
}
