*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#142c47;color:#fff;font-family:Arial,Helvetica,sans-serif}body{background:radial-gradient(ellipse at 20% 25%,#326783,#193752 48%,#0e233c)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,[role=button]:focus-visible{outline:4px solid #fff;outline-offset:3px}button{color:inherit}header{max-width:1260px;margin:auto;display:flex;justify-content:space-between;align-items:center;min-height:76px;padding:10px 36px}.identity{color:#fff;font-weight:800;text-decoration:none;font-size:21px;letter-spacing:-.8px}nav{display:flex;gap:7px;align-items:center}nav button,nav a{min-height:44px;padding:10px 13px;border:0;border-radius:10px;background:transparent;color:#d9e9ee;text-decoration:none;font-size:13px;font-weight:700}nav button:hover,nav a:hover{background:#ffffff18}main{display:grid;grid-template-columns:440px 390px;align-items:start;gap:65px;justify-content:center;padding:8px 30px 40px}.cabinet{width:440px;filter:drop-shadow(0 24px 24px #06162577)}.stage-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:0 7px 12px;text-align:center}.stage-heading p{margin:0 0 5px;color:#b9dce6;font-weight:800;font-size:10px;letter-spacing:2px}.stage-heading h1{margin:0;font-size:25px;letter-spacing:-.8px}.stage-heading>button{width:45px;height:45px;border-radius:50%;background:#244864;border:2px solid #437897;font-size:35px;line-height:30px;box-shadow:0 4px #0b2239}.board-wrap{position:relative;border:7px solid #74bed2;border-radius:34px;background:#bce4e7;box-shadow:inset 0 0 0 4px #ecfaf1,0 7px #377893;overflow:hidden}#board{display:block;width:100%;height:auto;background:#bbe1e4;touch-action:manipulation}.pin{cursor:pointer;outline:none}.pin:hover .pin-gold,.pin:focus-visible .pin-gold{fill:#fff99c}.pin.hint .ring{stroke:#fff;stroke-width:7;filter:drop-shadow(0 0 9px #ffff80)}.pin.open{pointer-events:none;opacity:.23}.pin .touch{fill:transparent;stroke:none}.pin-gold{fill:url(#pinMetal);stroke:#876319;stroke-width:3}.pin text{pointer-events:none}.token{pointer-events:none;filter:drop-shadow(0 3px 1px #172c4433)}.goal-image{cursor:pointer}.tools{display:flex;justify-content:space-between;gap:8px;padding:17px 2px 0}.tools button{flex:1;display:flex;align-items:center;justify-content:center;gap:5px;border:2px solid #406d8a;border-radius:13px;min-height:48px;background:#214965;box-shadow:0 4px #0c223a;font-size:20px;font-weight:900}.tools span{font-size:11px;letter-spacing:.2px}.tools button:hover{background:#326783}.tools button:disabled{opacity:.4}.tools #work{background:#f7c849;border-color:#ffd868;color:#42341d;box-shadow:0 4px #977128}aside{padding:10px 0;height:min(760px,calc(100vh - 110px));overflow:auto;scrollbar-width:thin;scrollbar-color:#496c84 transparent}.rail-title{font-size:13px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:#c5e5e8;margin-bottom:16px;display:flex;justify-content:space-between;align-items:center}#rail-close{display:none}#stage-list{display:grid;gap:11px}.stage-option{display:grid;grid-template-columns:123px 1fr 42px;align-items:center;gap:14px;min-height:87px;padding:7px;background:#204664;border:2px solid #315b77;border-radius:15px;text-align:left;box-shadow:0 4px #0d253e;cursor:pointer}.stage-option.active{border-color:#ffcb51;background:#2b5872}.stage-option .preview{width:123px;height:69px;object-fit:contain;background:#102238;border-radius:9px}.stage-option .label{font-size:16px;line-height:1.15;font-weight:800;letter-spacing:-.3px}.stage-option small{display:block;font-size:9px;color:#92c2d6;letter-spacing:1px;margin-top:6px}.direct-work{width:40px;height:44px;display:grid;place-items:center;border:0;background:#113049;border-radius:9px}.done-badge{display:inline-block;color:#b4e288;margin-left:7px}.result{position:absolute;inset:auto 25px 28px;padding:18px;display:flex;gap:12px;align-items:center;justify-content:space-between;border-radius:18px;border:3px solid #fff2b0;background:#fbc748;color:#3c3525;box-shadow:0 5px #806537}.result[hidden]{display:none}.result strong{font-size:25px}.result button{min-height:45px;border:0;background:#224b67;color:white;padding:8px 17px;border-radius:10px;font-weight:800}.result.lost{background:#e96550;border-color:#ffbc83;color:white}dialog{color:#1b3545;padding:0;border:7px solid #75bdd0;border-radius:24px;box-shadow:0 30px 100px #001529a0;background:#f6faf1}dialog::backdrop{background:#071b31d9;backdrop-filter:blur(7px)}#reader{width:min(960px,95vw);max-height:94dvh;overflow:hidden}.reader-top{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:13px 20px;background:#224e6a;color:white}.reader-top strong{font-size:22px}.reader-top button,#about-close{height:44px;width:44px;border:0;background:#f7c84a;color:#3b3324;border-radius:10px;font-size:28px}#reader-body{padding:25px 30px;max-height:calc(94dvh - 92px);overflow:auto;--ab-ink:#213e50;--ab-muted:#607580;--ab-line:#d1ddda;--ab-panel:#eef4ea;--ab-accent:#235c72}#reader-body .ab-image img{object-fit:contain}#about-view{width:min(540px,94vw);padding:25px;max-height:90dvh;overflow:auto}#about-close{float:right}#about-body h2{font-size:35px}#about-body p{line-height:1.6}#about-body a{color:#245571}.loader{position:fixed;inset:0;z-index:100;background:#17354f;display:grid;place-content:center;font-size:16px;font-weight:800;gap:20px;text-align:center}.loader span{width:170px;height:8px;border-radius:10px;background:linear-gradient(90deg,#ffd94f 70%,#355975 70%)}.loader[hidden]{display:none}.toast{position:fixed;bottom:15px;left:50%;transform:translateX(-50%);pointer-events:none;background:#091e34;color:#fff;border-radius:12px;padding:13px 21px;z-index:20;opacity:0;transition:opacity .2s;max-width:90vw;text-align:center;font-size:13px}.toast.show{opacity:1}.spark{pointer-events:none}
@media(max-width:900px){main{grid-template-columns:420px 290px;gap:30px;padding-inline:18px}.cabinet{width:420px}.stage-option{grid-template-columns:85px 1fr 35px;gap:10px}.stage-option .preview{width:85px;height:62px}.stage-option .label{font-size:14px}.direct-work{width:33px}}
@media(max-width:740px){header{min-height:56px;padding:5px 11px}.identity{font-size:16px}nav{gap:0}nav button,nav a{font-size:11px;padding:8px;min-height:44px}main{display:block;padding:8px 9px 22px}.cabinet{width:min(430px,100%);margin:auto}.stage-heading{padding-bottom:10px}.stage-heading h1{font-size:21px}.stage-heading>button{width:41px;height:41px}.board-wrap{border-width:5px;border-radius:28px}.tools{padding-top:12px;gap:6px}.tools button{min-height:47px;border-radius:11px}.tools span{font-size:10px}aside{display:none;position:fixed;inset:0;z-index:30;height:100dvh;padding:19px;background:#173a56;overflow:auto}aside.open{display:block}.rail-title{position:sticky;top:-19px;background:#173a56;padding:6px 0 13px;z-index:2}#rail-close{display:block;width:44px;height:44px;border:0;background:#f9cb51;color:#403423;border-radius:11px;font-size:25px}.stage-option{grid-template-columns:115px 1fr 45px}.stage-option .preview{width:115px;height:76px}.stage-option .label{font-size:17px}.direct-work{width:43px;height:47px}#reader{width:97vw;max-height:96dvh;border-width:4px;border-radius:18px}.reader-top{padding:8px 12px}.reader-top strong{font-size:18px}#reader-body{padding:18px 12px;max-height:calc(96dvh - 76px)}.result{inset:auto 12px 15px;padding:12px}.result strong{font-size:22px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

@media(min-width:741px){.cabinet{width:min(440px,calc((100dvh - 215px) * .647));justify-self:center}.stage-heading h1{font-size:clamp(19px,2vw,25px)}main{padding-bottom:14px}}
@media(max-width:740px){.cabinet{width:min(430px,100%,calc((100dvh - 183px) * .647))}.stage-heading h1{font-size:clamp(16px,5vw,21px)}.tools span{font-size:9px}}

.pin.open{visibility:hidden}.pin.just-pulled{visibility:visible;opacity:1;animation:withdraw .32s ease-in forwards;transform-box:fill-box;transform-origin:center}.pin.just-pulled .touch{visibility:hidden}@keyframes withdraw{to{translate:var(--pull-x,110px) 0;opacity:0}}

.result{inset:56% 14px auto;padding:10px 13px;background:#fbc748ee}.result strong{font-size:20px}.result button{min-height:40px;font-size:12px;padding:7px 14px}.earned-picture{animation:project-reveal .5s ease-out;transform-origin:220px 560px}@keyframes project-reveal{from{opacity:0;scale:.8}to{opacity:1;scale:1}}.all-clear .stage-option{border-color:#8bca99}.all-clear .rail-title{color:#b4e288}.spark{animation:spark-fall .8s ease-out forwards;transform-box:fill-box;transform-origin:center}@keyframes spark-fall{from{opacity:1;translate:0 -35px;scale:.2}to{opacity:0;translate:12px 85px;rotate:90deg;scale:1}}

/* Review repair: a single glass tower, full-width project destination, earned picture wall. */
nav a{display:flex;align-items:center;justify-content:center}
.pin .touch{pointer-events:all}.pin.locked .pin-gold{filter:saturate(.55)}.token.uncolored{filter:grayscale(1) brightness(1.5) drop-shadow(0 2px 1px #172c4433)}
.glass-chamber.activated{filter:drop-shadow(0 0 5px #b1ffca55)}
.result{inset:auto 21px 36%;padding:8px 12px;min-height:54px;background:#fbc748f5}.result strong{font-size:20px}.result button{min-height:38px}
#finale{width:min(1100px,97vw);max-height:96dvh;overflow:hidden;background:linear-gradient(135deg,#224e61,#102e43)}
#earned-wall{padding:20px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;max-height:calc(96dvh - 82px);overflow:auto;perspective:1400px}
.earned-tile{position:relative;padding:5px;border:3px solid #e4c86d;border-radius:11px;box-shadow:0 6px #746136,0 8px 15px #091c3580;background:#143449;overflow:hidden;animation:tile-earned .9s cubic-bezier(.16,1,.3,1) both;animation-delay:calc(var(--tile) * .065s)}
.earned-tile img{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#0f2539}.earned-tile span{display:block;padding:7px 4px;color:#f4f3da;font-size:12px;font-weight:bold;text-align:left}.earned-tile:hover{border-color:#fff8c6}
@keyframes tile-earned{from{opacity:0;transform:translateY(-90px) rotateX(-70deg) scale(.65)}to{opacity:1;transform:translateY(0) rotateX(0) scale(1)}}
@media(min-width:741px){main{grid-template-columns:480px 340px;gap:35px}.cabinet{width:min(460px,calc((100dvh - 185px)*.647))}header{min-height:64px}.stage-option{grid-template-columns:108px 1fr 38px;gap:10px}.stage-option .preview{width:108px;height:65px}.stage-option .label{font-size:14px}aside{opacity:.9}}
@media(max-width:740px){.result{inset:auto 12px 36%;padding:7px 10px;min-height:48px}.result strong{font-size:18px}.result button{font-size:11px;min-height:34px}.cabinet{width:min(440px,100%,calc((100dvh - 169px)*.647))}.tools{padding-top:9px}.stage-heading{padding-bottom:8px}main{padding-top:4px}#earned-wall{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:11px}.earned-tile span{font-size:10px}.earned-tile{border-width:2px}#finale{border-width:4px;border-radius:18px}}

.token.group-b{filter:drop-shadow(0 3px 1px #172c4433)}.token.group-b.uncolored{filter:grayscale(1) brightness(1.5)}

@media(min-width:741px){.cabinet{width:min(460px,calc((100dvh - 205px)*.647))}}

.pin>g{pointer-events:none}
