/* Studio direction v2. Overrides v1 for side-by-side source review. */
@font-face{font-family:"Nunito Sans";src:url('./fonts/NunitoSans.ttf') format('truetype');font-weight:200 1000;font-style:normal;font-display:swap}
:root{--ink:#153456;--forest:#1468ce;--forest-2:#0755b8;--mint:#ffd052;--mint-soft:#fff1b8;--paper:#f1f7ff;--white:#fff;--mist:#e3ecf7;--muted:#536d8a;--coral:#ed6371;--line:#d7e3f1;--shadow:0 24px 60px #193f7126;--radius-card:24px;--radius-control:16px}
body{font-family:"Nunito Sans","Avenir Next", "Segoe UI","PingFang SC",sans-serif;font-size:16px;letter-spacing:0}
button{font-weight:800}button:focus-visible,a:focus-visible{outline:3px solid #ee8e16;outline-offset:4px}button:active{transform:translateY(2px)}
.brand{font-size:29px;font-weight:950;letter-spacing:-1.5px}.brand-mark{background:#ffd052;color:#17427a;border-radius:11px;box-shadow:0 3px 0 #daa32b;transform:rotate(-9deg);font-size:21px;width:38px;height:38px}
.site-nav{position:absolute;left:0;right:0;top:0;z-index:9;background:transparent;border:0;color:white;height:88px;padding-inline:5vw}.nav-links{font-size:15px}.language-button{color:white;font-size:14px;border:1px solid #ffffff65;border-radius:12px}.nav-play,.primary-cta{background:linear-gradient(#ffe184,#ffca3d);color:#193b66;box-shadow:0 5px 0 #ce9220,0 10px 24px #152c5c30;border:1px solid #ffedac}.nav-play:hover,.primary-cta:hover{background:#ffde73;transform:translateY(-2px)}
.hero{position:relative;isolation:isolate;min-height:760px;grid-template-columns:1fr 1.1fr;background:#134c99;color:white;padding:140px 5vw 100px;gap:5vw}.hero::before{content:"";position:absolute;z-index:-2;inset:0;background:linear-gradient(90deg,#072c64f5 0%,#0b438dc9 50%,#2079c45c),url('../assets/harbor-demo/scene_a.png') center/cover}.hero::after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:35px;background:var(--paper);clip-path:ellipse(55% 100% at 50% 100%)}
.hero-copy{max-width:570px}.chapter-label{font-size:14px;letter-spacing:.07em;color:#ffdc70;margin-bottom:20px}.hero h1{font-size:clamp(48px,5.2vw,76px);font-weight:950;line-height:1.05;letter-spacing:-2px;text-shadow:0 4px 0 #062b64}.hero p{font-size:19px;color:#e1edff;line-height:1.6;max-width:420px}.hero-actions{gap:20px}.primary-cta{min-width:236px;padding:19px 26px;font-size:21px;border-radius:18px}.text-cta{color:white;border:0;background:transparent;padding:16px 0;font-size:16px}.platform-note{color:#d6e8ff;font-size:13px;margin-top:25px}.live-dot{background:#90ddaf}.hero-art{min-height:0;transform:rotate(2deg);border:7px solid white;border-radius:28px;overflow:visible;box-shadow:0 24px 0 -12px #082d6659,0 30px 80px #00183c66;background:white}.hero-art>img{min-height:0;aspect-ratio:1.2;object-fit:cover;border-radius:21px}.hero-art::after{border-radius:20px;pointer-events:none}.art-caption{font-size:14px}.find-ring{display:none}.hero-art .cat-challenge{position:absolute;left:33%;top:48%;width:13%;height:18%;border:0;background:transparent;z-index:4}.challenge-label{position:absolute;left:50%;top:-30px;transform:translateX(-50%) rotate(-2deg);z-index:5;padding:15px 24px;background:white;color:#183d70;box-shadow:0 6px 0 #bdd4ec;border-radius:17px;white-space:nowrap;font-size:18px;font-weight:900}.hero-art.solved .cat-challenge{border:4px solid #ffe078;border-radius:50%;background:#ffd05230}.hero-art.solved{transform:rotate(0)}
.mode-preview{background:var(--paper);color:var(--ink);padding:65px 5vw 110px}.mode-intro{text-align:center;margin-bottom:38px}.mode-intro h2{font-size:44px;letter-spacing:-1px}.mode-intro p{color:var(--muted);font-size:17px}.mode-panel{display:inline-grid;width:calc(50% - 14px);grid-template-columns:1fr;gap:16px;vertical-align:top;border:1px solid #d7e6f6;background:white;border-radius:24px;padding:22px;margin-right:10px;box-shadow:0 7px 0 #dce7f3;transition:transform .25s}.mode-panel:hover{transform:translateY(-5px)}.mode-panel .mode-index{display:none}.mode-panel img{grid-row:1;height:240px}.mode-panel h3{font-size:29px;letter-spacing:-.5px}.mode-panel p{color:var(--muted);max-width:none;margin:10px 0}.mode-panel button{color:#0864cb;font-size:16px}.final-hook{text-align:center;background:#e2efff;padding:60px 20px 100px}.final-hook h2{font-size:38px;margin:0 0 12px}.final-hook p{color:var(--muted);margin-bottom:26px}.final-hook .primary-cta{margin:auto}.landing-view footer{padding:24px 5vw 70px;display:flex;justify-content:space-between;background:#e2efff;color:var(--muted);font-size:13px}
.lobby-view{background:#eff5fd}.lobby-header{background:white;color:var(--ink);border-bottom:1px solid var(--line);height:86px}.welcome small{color:var(--muted);font-size:12px}.welcome strong{font-size:16px}.header-tools button{color:var(--ink);border-color:var(--line);font-size:13px}.lobby-shell{grid-template-columns:230px 1fr}.mode-switcher{background:white;color:var(--ink);border-right:1px solid var(--line)}.mode-switcher>p{color:var(--muted);font-size:12px}.mode-button{color:#56718f;padding:16px 12px;margin-bottom:10px}.mode-button.active{background:#e4f0ff;color:#0860be;box-shadow:inset 4px 0 #1f78dd}.mode-button strong{font-size:15px}.mode-button small{font-size:11px}.local-progress{border-color:var(--line)}.local-progress>span,.local-progress small{color:var(--muted);font-size:12px}.local-progress>div{background:#e6eef9}.local-progress i{background:#3188e9}.world-content{padding:36px 36px 110px}.world-heading{padding:30px;border-radius:24px;background:linear-gradient(90deg,#124f9ff5,#1468cfcc),url('../assets/harbor-demo/scene_a.png') center/cover;color:white;grid-template-columns:1fr 260px}.world-heading>div>span{color:#ffdc6c;font-size:13px}.world-heading h1{font-size:42px;letter-spacing:-1px}.world-heading p{color:#dcecff;font-size:15px}.continue-card{background:#ffd052;color:#173f70;border-radius:17px;box-shadow:0 5px 0 #d7a32c;padding:22px}.continue-card span{color:#554621;font-size:12px}.continue-card strong{font-size:17px}.difficulty-tabs{margin-top:28px}.difficulty-tabs button{font-size:15px;padding:14px 20px}.level-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.level-image{aspect-ratio:1.9}.level-copy{padding:20px}.level-copy small{font-size:12px}.level-copy h3{font-size:20px;margin-top:7px}.completion{font-size:13px}.level-card{border:1px solid #d9e4f0;box-shadow:0 5px 0 #dae6f4}.level-card.current{outline:3px solid #2584e8;outline-offset:0}.status-chip,.done-chip{font-size:12px}.lock-layer strong{font-size:15px}.lock-layer button{font-size:13px}.level-number{font-size:13px;width:34px;height:34px}
.game-header{background:#fafdff;color:var(--ink);border-bottom:1px solid #c9daec;height:82px}.round-control{background:white;border:1px solid #c6d8eb;color:#276bb8;box-shadow:0 3px 0 #dae4ee;width:44px;height:44px}.level-title small{font-size:12px;color:var(--muted)}.level-title strong{font-size:18px}.game-progress>span{background:#dfebf7;height:10px}.game-progress i{background:#2b87e9}.game-progress strong,.game-progress small{color:#256fbd}.mistake-count span{font-size:12px;color:var(--muted)}.mistake-count i{width:12px;height:12px}.mistake-count i.used{background:#dce3ed}.hidden-stage{top:82px;background:#d4e1ec}.scene-image,.difference-stage img{object-fit:contain}.target-dock{top:82px;background:#fafdff}.dock-label small{font-size:14px}.dock-label strong{font-size:15px}.target-item strong{font-size:15px}.target-item small{font-size:12px}.target-item{padding-block:15px}.hint-button{background:linear-gradient(#ffde78,#ffcc42);color:#183e70;box-shadow:0 4px 0 #cda02a}.hint-button strong{font-size:16px}.hint-button small,.hint-button.compact small{color:#635120;font-size:11px}.hint-symbol{background:#fff4c4;color:#2c5180}.game-view{background:#dfebf7}.difference-stage{top:82px;background:#cbd9e8}.difference-stage figure{background:#e3ebf3}.difference-pips i{background:#d9e6f3}.difference-pips i.found{background:#2584e8}.difference-pips strong{color:#246ebc}.difference-footer{background:#fafdff}.difference-footer strong{font-size:14px}.difference-footer span{font-size:12px}.zoom-tools{background:#164b85}.modal-kicker{font-size:12px}.game-modal p{font-size:15px}.modal-primary{background:#ffd052;color:#183e70;box-shadow:0 4px 0 #d5a430}.modal-link{font-size:13px}.result-stats small,.game-modal .save-note{font-size:12px}.review-rail{opacity:.5;bottom:6px;transition:opacity .2s}.review-rail:hover,.review-rail:focus-within{opacity:1}.review-rail button{font-size:11px;padding:7px 9px}
.preview-image{width:100%;border-radius:16px;aspect-ratio:1.5;object-fit:cover;margin:18px 0}.game-modal{max-height:90dvh;overflow:auto}.locale-control{position:fixed;right:18px;bottom:65px;z-index:99;background:white;border:1px solid #cbdcec;border-radius:12px;padding:9px 13px;color:#174a85;box-shadow:0 4px 12px #174a8520}
@media(prefers-reduced-motion:no-preference){.hero-copy{animation:enter .7s both}.hero-art{animation:enter .9s .12s both}.challenge-label{animation:bob 2.8s ease-in-out infinite}.mode-panel{animation:enter .8s both;animation-timeline:view();animation-range:entry 0% entry 30%}.primary-cta span{animation:nudge 2s ease-in-out infinite}@keyframes enter{from{opacity:0;translate:0 24px}to{opacity:1;translate:0 0}}@keyframes bob{50%{translate:0 -7px}}@keyframes nudge{50%{translate:5px 0}}}
@media(max-width:1050px){.world-heading{grid-template-columns:1fr}.lobby-shell{grid-template-columns:200px 1fr}.world-content{padding:24px}.hero{gap:30px;padding-inline:30px}.hero h1{font-size:54px}}
@media(max-width:760px){.site-nav{height:74px;padding-inline:20px}.hero{padding:104px 20px 55px;grid-template-columns:1fr;gap:44px;min-height:auto}.hero-art{order:0}.hero-art,.hero-art>img{min-height:0}.hero-art>img{aspect-ratio:1.35}.hero h1{font-size:48px;letter-spacing:-1px}.hero p{font-size:17px;margin:18px 0 24px}.chapter-label{font-size:12px}.hero-copy{padding:0}.primary-cta{min-width:195px;font-size:18px;padding:17px 22px}.hero-actions{gap:13px}.platform-note{font-size:11px}.challenge-label{font-size:14px;top:-23px;padding:12px 18px}.mode-preview{padding:40px 20px}.mode-intro h2{font-size:32px}.mode-panel{display:grid;width:100%;margin:0 0 22px;padding:16px}.mode-panel img{grid-column:auto;height:190px}.mode-panel h3{font-size:25px}.lobby-header{height:72px}.lobby-shell{grid-template-columns:1fr}.mode-switcher{border:0}.mode-button{margin:0}.world-content{padding:18px 16px 100px}.world-heading{padding:24px;gap:20px}.world-heading h1{font-size:32px}.world-heading p{font-size:14px}.level-grid{gap:12px}.level-image{aspect-ratio:1.15}.level-copy{padding:12px;display:block}.level-copy h3{font-size:16px}.level-copy small{font-size:11px}.completion{display:block;margin-top:10px}.lock-layer strong{font-size:12px}.status-chip,.done-chip{font-size:10px}.game-header{height:72px;padding-inline:10px;gap:8px}.level-title strong{font-size:14px}.level-title small{font-size:10px}.round-control{width:36px;height:36px}.mistake-count i{width:9px;height:9px}.hidden-stage{top:72px}.target-dock{top:auto}.target-item strong{font-size:13px}.target-item small{font-size:10px}.target-item{padding:6px}.difference-stage{top:72px}.difference-pips{bottom:-4px}.difference-footer span{font-size:11px}.review-rail{opacity:.85}.locale-control{bottom:53px;font-size:12px}.final-hook h2{font-size:30px}.landing-view footer{display:block}.game-modal h2{font-size:28px}}
/* Catalog refinement: words never break into letters; controls retain intrinsic width. */
body{word-break:normal;overflow-wrap:normal}button,select{word-break:normal;white-space:nowrap}h1,h2,h3,p{word-break:normal;hyphens:none}.mode-button>span:last-child,.level-title,.level-copy,.world-heading>div{min-width:0}.mode-symbol{flex-shrink:0}.mode-button strong{font-size:14px;white-space:nowrap}.mode-button small{white-space:normal;line-height:1.4}.lobby-header{grid-template-columns:230px minmax(0,1fr) auto}.world-heading{grid-template-columns:minmax(0,1fr) 285px;padding:24px 28px;gap:24px}.world-heading h1{font-size:clamp(28px,2.6vw,40px);line-height:1.2}.world-heading p{max-width:670px}.continue-card{grid-template-columns:minmax(0,1fr) 25px;padding:18px 20px;gap:4px 12px}.continue-card>span{font-size:11px;white-space:nowrap}.continue-card strong{font-size:17px;white-space:nowrap}.continue-card small{grid-column:1;font-size:12px}.continue-card i{grid-column:2;grid-row:1/4}.world-content{min-width:0}.difficulty-tabs{margin:22px 0 16px}.catalog-controls{display:grid;grid-template-columns:minmax(200px,2fr) repeat(3,minmax(125px,1fr));gap:12px;scroll-margin-top:16px}.catalog-controls label{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:12px;font-weight:800;color:#536d8a}.catalog-controls input,.catalog-controls select{width:100%;min-width:0;height:43px;border:1px solid #c9d9ec;border-radius:11px;background:#fff;color:#153456;font:inherit;font-size:14px;padding:0 12px}.catalog-controls input::placeholder{color:#637b96}.catalog-summary{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:18px 0 12px;font-size:13px;color:#536d8a}.catalog-summary small{font-size:11px}.catalog-summary button,.catalog-empty button{border:0;background:none;color:#0755b8;text-decoration:underline;padding:5px 10px}.level-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.catalog-card{padding:0;text-align:left;color:var(--ink);white-space:normal;min-width:0;display:block}.catalog-card .level-image{aspect-ratio:1.65}.catalog-card .level-copy{display:block;padding:13px 14px}.catalog-card h3{font-size:17px;line-height:1.35;margin:5px 0 8px;white-space:normal;min-height:2.7em}.catalog-card small{font-size:12px}.card-action{font-size:12px;color:#0864cb}.catalog-card .status-chip{font-size:10px;padding:5px 8px;white-space:nowrap}.catalog-card .level-number{width:25px;height:25px;font-size:11px}.catalog-pager{display:flex;justify-content:center;align-items:center;gap:18px;margin-top:24px;font-size:13px}.catalog-pager button{padding:10px 16px;border:1px solid #c9d9ec;border-radius:10px;background:white;color:#175caa}.catalog-pager button:disabled{opacity:.4;cursor:default}.catalog-empty{grid-column:1/-1;text-align:center;padding:48px;background:white;border:1px dashed #c9d9ec;border-radius:16px}.level-title strong{white-space:normal;line-height:1.2}.hero-actions{flex-wrap:wrap}.game-progress{min-width:0}.mistake-count{flex-shrink:0}.challenge-label{max-width:95%;white-space:normal;text-align:center}.review-rail{max-width:calc(100vw - 16px);overflow-x:auto}.game-modal button{white-space:normal;word-break:normal}.game-modal .modal-primary{padding:12px 16px}
@media(min-width:1800px){.level-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1250px){.level-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.world-heading{grid-template-columns:minmax(0,1fr) 260px}.continue-card strong{font-size:16px}.catalog-controls{grid-template-columns:repeat(3,minmax(0,1fr))}.catalog-search{grid-column:1/-1}}
@media(max-width:1000px){.world-heading{grid-template-columns:1fr}.continue-card{width:285px;max-width:100%}.level-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-summary{align-items:flex-start;flex-direction:column}.game-header{grid-template-columns:44px minmax(110px,1fr) minmax(100px,1fr) auto 44px;gap:10px}.mistake-count span{display:none}}
@media(max-width:760px){.lobby-header{grid-template-columns:1fr auto}.mode-button{min-width:0}.mode-button strong{font-size:13px}.world-heading{padding:20px;gap:18px}.world-heading h1{font-size:28px}.catalog-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.catalog-search{grid-column:1/-1}.catalog-controls label:last-child{grid-column:1/-1}.catalog-card .level-image{aspect-ratio:1.4}.catalog-card h3{font-size:15px}.catalog-card .level-copy{padding:11px}.level-grid{gap:12px}.difficulty-tabs{overflow-x:auto}.difficulty-tabs button{font-size:13px;padding:12px}.game-header{grid-template-columns:36px minmax(0,1fr) auto 36px}.game-header .level-title strong{font-size:13px}.level-title small{font-size:9px}.catalog-summary small{line-height:1.5}}
@media(max-width:360px){.level-grid{grid-template-columns:1fr}.header-tools{gap:4px}.header-tools button{padding:8px;font-size:11px}}
