:root{--night:#061b27;--ink:#092332;--panel:#0d2b39;--panel2:#103444;--sea:#0e3644;--sea-text:#acc8cb;--ivory:#fff6df;--cream:#e8e1cd;--faint:#85a6ab;--line:rgba(164,208,198,.19);--teal:#93dec1;--gold:#f3c98c;--coral:#fbad92;--error:#ef8e85;--safe:#b2efc5;--shadow:0 22px 80px rgba(0,10,20,.28)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;background:var(--night);color:var(--ivory);font-family:'Trebuchet MS','Segoe UI',sans-serif;line-height:1.5}button,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,.island-node:focus-visible,.bridge-hit:focus-visible{outline:3px solid var(--coral);outline-offset:4px}button:disabled{opacity:.4;cursor:not-allowed}button[hidden],div[hidden],p[hidden]{display:none!important}a{text-decoration:none;color:inherit}.ambient{position:fixed;z-index:-1;pointer-events:none;border-radius:50%;filter:blur(95px);opacity:.4}.ambient-one{width:55vw;height:44vw;background:#135c61;top:-25vw;left:-22vw}.ambient-two{width:45vw;height:40vw;background:#123e5c;bottom:-23vw;right:-20vw}.page-shell{max-width:1568px;margin:auto;padding:0 44px}
.masthead{height:92px;display:flex;align-items:center;justify-content:space-between;gap:30px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;font-size:15px;letter-spacing:.135em;font-weight:800;white-space:nowrap}.brand-symbol{color:var(--gold);font-size:37px;line-height:1}.brand-accent{color:var(--teal)}.brand small{font-size:10px;color:var(--gold);margin-left:3px}.masthead-middle{color:#8baeb4;font-weight:700;font-size:10px;letter-spacing:.24em;display:flex;align-items:center;gap:12px;white-space:nowrap}.brand-line{height:1px;background:var(--line);width:32px}.issue{font-size:11px;letter-spacing:.15em;color:var(--cream);white-space:nowrap}.status-dot{display:inline-block;width:7px;height:7px;margin-right:9px;border-radius:100%;background:#ace7b5;box-shadow:0 0 13px #70c994}
.hero{padding:37px 1px 31px}.eyebrow,.overline{display:flex;align-items:center;gap:12px;color:var(--gold);letter-spacing:.22em;font-size:10px;font-weight:800}.tiny-star{font-size:15px}.eyebrow-rule{height:1px;width:36px;background:var(--gold);opacity:.6}.hero-content{display:flex;justify-content:space-between;align-items:center}.hero h1{font-family:Georgia,'Times New Roman',serif;font-weight:normal;font-size:clamp(58px,6.7vw,105px);line-height:1;letter-spacing:-.065em;margin:4px 0 4px}.hero h1>span:first-child{color:var(--teal)}.hero-period{color:var(--gold)}.hero-description{font-size:19px;letter-spacing:.015em;color:var(--cream);margin:0}.hero-detail{font-size:13px;color:var(--faint);margin:8px 0 0}.hero-detail em{color:var(--gold);font-style:normal}.hero-stamp{display:flex;align-items:center;gap:18px;color:#d6b17d;opacity:.65}.hero-stamp span{font-size:9px;letter-spacing:.2em;line-height:1.8;font-weight:800}
.workbench{display:grid;grid-template-columns:minmax(0,1.76fr) minmax(330px,.84fr);gap:17px;align-items:start}.map-panel,.reading-panel,.activity-panel{background:linear-gradient(145deg,#113745 0,#0b2b39 100%);border:1px solid var(--line);box-shadow:var(--shadow)}.map-panel{overflow:hidden;border-radius:11px}.panel-topline{height:40px;background:rgba(6,24,34,.58);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 25px}.topline-tag,.mini-signal{font-size:10px;letter-spacing:.2em;font-weight:800;color:var(--teal)}.little-diamond{color:var(--gold);margin-right:9px;font-size:10px}.topline-index{color:var(--faint);margin-left:8px}.mini-signal{font-size:9px;color:var(--faint);letter-spacing:.11em}.pulse{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:7px;background:var(--teal);box-shadow:0 0 9px var(--teal)}.chart-top{padding:22px 26px 14px;display:flex;justify-content:space-between;align-items:start;gap:10px}.chart-top h2{font-family:Georgia,serif;font-size:28px;font-weight:normal;letter-spacing:-.03em;margin:0 0 2px}.chart-top p{color:var(--faint);font-size:12px;margin:0}.chart-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:end}.small-icon-btn,.utility-btn{border:1px solid var(--line);background:rgba(255,255,255,.035);border-radius:5px;color:#c7ded9;font-size:11px;padding:9px 11px;white-space:nowrap;transition:.2s}.small-icon-btn:hover,.utility-btn:hover,.secondary-action:hover,.challenge-bottom button:hover{background:rgba(128,226,204,.14);border-color:rgba(128,226,204,.45)}.small-icon-btn span{margin-right:5px;color:var(--gold);font-size:15px}
.map-scene{margin:0 14px;border:1px solid #37626a;position:relative;border-radius:5px;overflow:hidden;background:#0b3340}.map-scene::before,.map-scene::after{content:'';position:absolute;width:75px;height:75px;pointer-events:none;z-index:2}.map-scene::before{left:9px;top:9px;border-left:1px solid rgba(238,205,160,.35);border-top:1px solid rgba(238,205,160,.35)}.map-scene::after{right:9px;bottom:9px;border-right:1px solid rgba(238,205,160,.35);border-bottom:1px solid rgba(238,205,160,.35)}#harbourMap{display:block;width:100%;height:auto;touch-action:manipulation}.map-compass-label{font-size:10px;letter-spacing:3px;font-family:monospace;fill:#97c6c5;opacity:.48}.bridge-group{cursor:pointer}.bridge-hit{fill:none;stroke:transparent;stroke-width:28}.bridge-core{fill:none;stroke:url(#bridgeWarm);stroke-width:15;stroke-linecap:round;opacity:.96}.bridge-planks{fill:none;stroke:#6b523d;stroke-width:15;stroke-dasharray:1 11;opacity:.65}.bridge-lantern{fill:none;stroke:#fff4c8;stroke-width:2;stroke-dasharray:2 15;opacity:.92}.bridge-group.used .bridge-core{stroke:#eeb08f;stroke-width:15;opacity:.32}.bridge-group.used .bridge-lantern{stroke:#ffb8a0;stroke-dasharray:2 8;opacity:.7}.bridge-group:hover .bridge-core{stroke:#fff6cf}.bridge-group.used .bridge-planks{opacity:.1}.island-node{cursor:pointer;outline:none}.island-node .island-water-glow{fill:#6ce2b6;opacity:.11}.island-node .island-land{fill:url(#landFill);stroke:#8ed6b9;stroke-width:1.4}.island-node .island-harbour-ring{fill:none;stroke:#d5bd8e;stroke-dasharray:3 5;stroke-width:1.4;opacity:.8}.island-node .island-letter{fill:#fff1cd;text-anchor:middle;font:bold 26px Georgia,serif}.island-node .island-name{fill:#ccdfdb;text-anchor:middle;font:12px 'Trebuchet MS',sans-serif;letter-spacing:1px;paint-order:stroke;stroke:#092a37;stroke-width:3}.island-node .island-degree{font:11px 'Trebuchet MS',sans-serif;fill:#cde9dd;text-anchor:middle}.island-node.odd .island-harbour-ring{stroke:var(--coral);stroke-width:3;stroke-dasharray:none}.island-node.odd .island-water-glow{fill:#f3a58f;opacity:.2}.island-node:hover .island-land,.island-node:focus-visible .island-land{stroke:#fff3c1;stroke-width:4}.island-node.current .island-land{stroke:#fff1c1;stroke-width:3}.island-node.pending .island-harbour-ring{stroke:#fff5af;stroke-width:5;stroke-dasharray:4 3}.boat-halo{fill:#ffd6a0;opacity:.17}.boat-hull{fill:#ffd9a0;stroke:#fdf2c9;stroke-width:1}.boat-sail{fill:#ecb48f}.boat-mast{stroke:#fff3c8;stroke-width:2}.route-order{fill:#f3b68e;font-size:11px;font-family:monospace;font-weight:bold;paint-order:stroke;stroke:#082c38;stroke-width:3}.map-legend{position:absolute;left:18px;bottom:15px;display:flex;gap:16px;align-items:center;flex-wrap:wrap;pointer-events:none;font-size:10px;color:#d5e4d8;letter-spacing:.015em;background:rgba(6,25,34,.84);padding:7px 10px;border-radius:3px;border:1px solid rgba(222,219,181,.12)}.map-legend>span{display:flex;align-items:center;gap:6px}.legend-line{display:inline-block;width:22px;border-top:4px solid var(--gold)}.legend-line.used{border-top-color:var(--coral);opacity:.5}.legend-odd{display:inline-block;width:11px;height:11px;border:2px solid var(--coral);border-radius:50%}
.command-deck{margin:17px 23px 0;display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}.mode-controls{display:flex;align-items:center;gap:12px}.deck-label{color:var(--faint);letter-spacing:.15em;font-size:9px;font-weight:800}.mode-segment{display:flex;background:#051f2b;border:1px solid rgba(180,218,203,.22);border-radius:5px;overflow:hidden}.mode-segment button{background:transparent;border:0;color:#99b8ba;padding:9px 19px;font-size:12px;font-weight:800}.mode-segment button.active{background:var(--teal);color:#052a31}.mode-segment button span{margin-right:7px}.deck-actions{display:flex;gap:8px}.action-hint{color:#b9dccb;background:rgba(136,215,191,.065);border-top:1px solid var(--line);padding:13px 24px;margin:16px 0 0;font-size:12px;min-height:44px}
.sidebar{display:flex;flex-direction:column;gap:14px}.section-tabs{display:grid;grid-template-columns:1fr 1fr;background:#092b38;border:1px solid var(--line);padding:5px;border-radius:8px;gap:4px}.section-tabs button{border:none;border-radius:5px;padding:11px 8px;background:transparent;color:#9ab9b8;font-weight:800;font-size:12px;letter-spacing:.035em}.section-tabs button.selected{background:#275447;color:#f8f2dd;box-shadow:0 3px 10px rgba(0,0,0,.18)}.section-tabs span{font-size:10px;color:var(--gold);margin-left:4px}.reading-panel,.activity-panel{border-radius:9px;padding:22px}.reading-header{display:flex;justify-content:space-between;align-items:center}.read-label,.degree-heading,.math-rule span,.scoreline span{font-size:10px;color:var(--gold);font-weight:800;letter-spacing:.15em}.reading-glyph{color:var(--teal);opacity:.8;font-size:24px}.big-result{margin:0 0 7px;display:flex;align-items:end;justify-content:space-between;gap:8px}.result-number{font-family:Georgia,serif;font-size:73px;line-height:1;color:var(--ivory)}.result-unit{display:block;color:#aed0ce;font-size:9px;letter-spacing:.12em;font-weight:800;margin:6px 0 0}.verdict{border:1px solid #d4c294;border-radius:3px;padding:7px 10px;color:var(--gold);font-size:10px;font-weight:800;letter-spacing:.07em;white-space:nowrap;margin-bottom:6px}.verdict.bad{color:var(--coral);border-color:var(--coral)}.interpretation{color:#aac6c5;font-size:12px;line-height:1.6;min-height:36px;margin:13px 0 22px}.stat-line{border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr 1fr;padding:15px 0 14px}.stat-line>div{display:flex;flex-direction:column;gap:1px;padding-left:14px;border-left:1px solid var(--line)}.stat-line>div:first-child{border:0;padding-left:0}.stat-line small{color:var(--faint);font-size:9px;letter-spacing:.1em;font-weight:bold}.stat-line strong{font-size:19px;line-height:1.25;font-family:Georgia,serif;font-weight:normal;color:var(--cream)}.degree-heading{margin:21px 0 13px;display:flex;justify-content:space-between;color:#c2d3c8}.degree-heading span{color:var(--faint)}.degree-bars{display:flex;flex-direction:column;gap:10px}.degree-row{display:grid;grid-template-columns:18px 1fr 17px;align-items:center;gap:9px;font-size:11px;color:#cbded7}.degree-track{height:7px;border-radius:4px;background:#0b202c;overflow:hidden}.degree-fill{display:block;height:100%;background:linear-gradient(90deg,#3b8e87,#9ee8bd);border-radius:4px;transition:width .25s}.degree-row.odd .degree-fill{background:linear-gradient(90deg,#ad6769,#f4ab91)}.degree-row.odd .degree-count{color:var(--coral)}.math-rule{margin-top:20px;border:1px solid var(--line);background:rgba(0,15,23,.25);padding:11px 13px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.math-rule strong{font-size:12px;color:#d4e2d9;font-weight:normal;font-family:monospace}
.activity-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.activity-heading h3{font:normal 23px Georgia,serif;margin:3px 0 0}.side-sparkle{color:var(--gold);font-size:27px}.preset-list{display:grid;gap:8px}.preset{border:1px solid rgba(151,211,194,.17);border-radius:5px;background:rgba(0,15,25,.23);padding:11px 13px;text-align:left;color:#e3e8d9;display:flex;justify-content:space-between;gap:8px;align-items:center}.preset:hover{border-color:var(--teal);background:rgba(130,219,184,.08)}.preset.selected{border-color:var(--gold);background:rgba(222,191,128,.105)}.preset-name{display:block;font-size:13px;font-weight:bold}.preset-tag{display:block;font-size:10px;color:var(--faint);margin-top:2px}.preset-arrow{color:var(--gold);font-size:18px}.little-note{border-top:1px solid var(--line);margin-top:17px;display:flex;align-items:start;gap:12px;padding-top:13px}.note-star{color:var(--gold)}.little-note p{margin:0;color:#a6c7c3;font-size:11px;line-height:1.6}.route-button{border:1px solid var(--teal);background:rgba(129,216,194,.13);color:#d9f1de;width:100%;display:flex;justify-content:space-between;align-items:center;border-radius:5px;margin-top:15px;padding:12px 14px;font-weight:bold;font-size:12px;transition:.2s}.route-button:hover{background:rgba(142,226,193,.28)}.route-reveal{color:#ecd9b3;font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.challenge-header{display:flex;justify-content:space-between;gap:12px;font-size:10px;letter-spacing:.12em;color:var(--gold);font-weight:800}.progress-dots{display:flex;gap:6px;margin:13px 0 20px}.progress-dot{flex:1;height:5px;background:#21424a;border-radius:9px}.progress-dot.current{background:var(--gold)}.progress-dot.solved{background:var(--teal)}.challenge-difficulty{font-size:10px;letter-spacing:.16em;color:var(--teal);font-weight:800}.challenge-panel h3{font:normal 24px/1.3 Georgia,serif;margin:12px 0}.challenge-instruction{color:#a4c6c6;font-size:12px;line-height:1.5;margin:0 0 19px}.number-answer{width:100%;background:#071e2a;border:1px solid #537276;border-radius:5px;padding:13px 15px;color:var(--ivory);font-size:17px;outline:none}.number-answer:focus{border-color:var(--gold)}.number-answer::placeholder{color:#809da2}.answer-unit{font-size:10px;color:var(--faint);margin-top:6px}.option-list{display:flex;flex-direction:column;gap:8px}.answer-option{display:block;width:100%;text-align:left;color:#d5e2d9;background:#0b2531;border:1px solid var(--line);border-radius:5px;padding:11px;font-size:12px}.answer-option:before{content:'○';color:var(--gold);margin-right:11px;font-size:16px}.answer-option.selected{background:#23483f;border-color:var(--teal)}.answer-option.selected:before{content:'◉';color:var(--teal)}.build-answer{font-size:12px;background:#0a2432;color:#cbd9cd;border:1px dashed #678b84;padding:11px 13px;line-height:1.7}.challenge-buttons{display:grid;grid-template-columns:1fr auto;gap:9px;margin-top:16px}.primary-action{border:0;background:var(--gold);color:#102c34;border-radius:4px;padding:13px 14px;font-size:12px;font-weight:800;display:flex;justify-content:space-between;align-items:center;gap:12px}.primary-action:hover{background:#ffe1a9}.secondary-action{background:transparent;color:var(--teal);border:1px solid var(--line);border-radius:4px;padding:12px 17px;font-weight:800;font-size:12px}.hint-text,.explanation-text,.check-feedback{color:#e7ddbd;font-size:12px;line-height:1.6;margin:13px 0 0;background:rgba(237,204,137,.065);border-left:2px solid var(--gold);padding:10px 12px}.check-feedback{color:#f4bcab;border-color:var(--coral)}.check-feedback.success{color:var(--safe);border-color:var(--teal)}.challenge-bottom{display:flex;justify-content:space-between;gap:8px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.challenge-bottom button{border:0;color:#b3d9ca;background:none;text-decoration:underline;text-underline-offset:4px;text-decoration-color:rgba(157,205,182,.34);font-size:11px}.challenge-bottom button:hover{color:var(--gold)}.scoreline{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:14px;margin-top:17px}.scoreline strong{font-size:17px;font-family:Georgia,serif;font-weight:normal;color:var(--gold)}
.field-guide{display:grid;grid-template-columns:1.25fr repeat(3,1fr);gap:22px;margin:30px 0 18px;align-items:stretch}.guide-intro{padding:20px 8px 15px 0}.guide-intro h2{font:normal clamp(23px,2.1vw,34px)/1.12 Georgia,serif;letter-spacing:-.04em;margin:14px 0}.guide-intro em{color:var(--teal);font-weight:normal}.guide-intro p{font-size:12px;color:#a6bfc2;line-height:1.7;max-width:300px}.guide-intro p strong{color:var(--cream)}.guide-card{background:#0b2a37;border:1px solid var(--line);border-radius:8px;padding:20px;min-height:190px;display:flex;flex-direction:column}.guide-number{color:var(--gold);font:normal 22px Georgia,serif}.guide-card h3{font:normal 19px Georgia,serif;margin:9px 0}.guide-card p{font-size:11px;color:#adc6c7;line-height:1.65;margin:0 0 15px}.guide-card strong{color:var(--cream)}.card-formula{margin-top:auto;font:11px monospace;color:var(--teal)}.real-world{display:flex;align-items:start;gap:19px;border:1px solid var(--line);padding:18px 23px;background:rgba(15,49,62,.42);border-radius:7px}.real-icon{color:var(--gold);font-size:31px;line-height:1}.real-world strong{display:block;font:18px Georgia,serif}.real-world p{margin:6px 0 0;color:var(--faint);font-size:12px;line-height:1.6}footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;padding:23px 0 28px;margin-top:36px;color:#749ba0;font-size:9px;font-weight:800;letter-spacing:.15em}
@media(max-width:1250px){.page-shell{padding:0 25px}.workbench{grid-template-columns:minmax(0,1.45fr) minmax(325px,.9fr)}.map-legend{font-size:9px;gap:7px}.guide-card{padding:15px}.guide-intro h2{font-size:24px}.hero-stamp{display:none}}
@media(max-width:980px){.masthead-middle{display:none}.workbench{grid-template-columns:1fr}.sidebar{display:grid;grid-template-columns:1fr 1fr;align-items:start}.section-tabs{grid-column:1/-1}.field-guide{grid-template-columns:repeat(2,1fr)}.guide-intro{padding-left:15px}.reading-panel,.activity-panel{min-height:100%}}
@media(max-width:650px){.page-shell{padding:0 12px}.masthead{height:65px}.brand{font-size:12px;gap:6px}.brand-symbol{font-size:25px}.issue{font-size:9px;letter-spacing:.05em}.hero{padding:22px 5px}.eyebrow{font-size:9px}.hero h1{font-size:clamp(47px,12vw,70px)}.hero-description{font-size:16px}.hero-detail{max-width:350px;line-height:1.5}.chart-top{padding:15px}.chart-top h2{font-size:24px}.chart-top p{max-width:240px}.chart-actions{gap:4px}.small-icon-btn{font-size:10px;padding:6px}.small-icon-btn span{margin-right:2px}.map-scene{margin:0 6px}.map-legend{left:8px;bottom:7px;padding:5px;font-size:8px;gap:5px}.legend-line{width:10px}.island-node .island-name{font-size:13px}.command-deck{margin:12px 13px 0}.deck-label{display:none}.mode-segment button{padding:9px 14px}.utility-btn{padding:8px;font-size:10px}.action-hint{padding:11px 13px;font-size:11px}.sidebar{display:flex}.section-tabs{grid-column:auto}.field-guide{grid-template-columns:1fr;gap:10px;margin-top:20px}.guide-intro{padding:14px}.guide-card{min-height:unset}.real-world{padding:14px}footer{flex-wrap:wrap;gap:7px}.hero-stamp{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
