:root{color-scheme:dark;--page:#101218;--panel:#171b24;--lift:#202632;--edge:#2a303c;--text:#f5f7fb;--muted:#abb4c3;--accent:#64efd8;--radius:18px;font:16px/1.55 "DM Sans","PingFang SC","Microsoft YaHei",system-ui,sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--page);color:var(--text)}
[hidden]{display:none!important}
button,input{font:inherit}
button{cursor:pointer}
button:disabled{cursor:default}
a{color:inherit;text-decoration:none}
button,a,input{ -webkit-tap-highlight-color:transparent}
:focus-visible{outline:3px solid #81f4e1;outline-offset:4px}
p,ul,h1,h2,h3,h4{margin:0}
.frame{width:min(1240px,calc(100% - 88px));margin-inline:auto}
.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip{position:fixed;z-index:10;top:10px;left:10px;background:#123332;padding:8px;border-radius:5px}
.top{height:76px;background:#12151c;border-bottom:1px solid #262d38}
.header-row{height:100%;display:flex;align-items:center;justify-content:space-between;gap:26px}
.brand{display:inline-flex;align-items:center;gap:11px;font-weight:850;font-size:19px;letter-spacing:.01em;flex-shrink:0}
.brand small{display:block;color:#92abaf;font:750 .64rem/1.3 ui-monospace,monospace;letter-spacing:.15em}
.brand-icon{width:34px;height:34px;display:grid;place-content:center;gap:3px;transform:skew(-12deg);background:#183732;border:1px solid #2b6258;border-radius:9px}
.brand-icon i{display:block;width:15px;height:2px;border-radius:2px;background:#74fadf}
.brand-icon i:nth-child(2){transform:translateX(3px)}
.header-row nav{display:flex;align-items:center;gap:28px;font-size:.94rem;font-weight:700;color:var(--muted)}
.header-row nav a{padding-block:24px;white-space:nowrap}
.header-row nav a[aria-current],.header-row nav a:hover,.guide-link:hover{color:#82eedb}
.progress{white-space:nowrap;border:1px solid #343b49;border-radius:999px;padding:7px 13px;color:var(--muted);font-size:.87rem}
.progress b{color:var(--accent)}
.hero{margin-block:27px 48px;min-height:405px;border:1px solid #2b3842;border-radius:22px;overflow:hidden;background:#101925 url('./marble-hero.jpg') center/cover no-repeat;position:relative}
.hero::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,14,22,.98) 0%,rgba(10,14,22,.88) 23%,rgba(10,14,22,.3) 50%,transparent 73%);pointer-events:none}
.hero-inner{position:relative;padding:35px clamp(28px,4.3vw,66px) 38px}
.eyebrow{display:flex;align-items:center;gap:9px;font:750 .82rem/1.4 ui-monospace,monospace;letter-spacing:.18em;color:var(--accent)}
.eyebrow span{width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 12px var(--accent)}
h1{font-size:clamp(2.5rem,6.5vw,5.2rem);letter-spacing:-.065em;line-height:1.05;font-weight:920}
.hero h1,.library-hero h1{margin:.2em 0 .24em}
h1 em{font-style:normal;color:#83f5df}
.hero-desc,.library-hero>p:not(.eyebrow){color:#d2dae6;font-size:1.05rem}
.hero-actions{display:flex;align-items:center;gap:12px;margin-top:23px;flex-wrap:wrap}
.primary,.secondary{display:inline-flex;justify-content:center;align-items:center;gap:7px;border-radius:10px;padding:10px 17px;min-height:44px;font-size:.94rem;line-height:1.2;font-weight:780}
.primary{background:#80efd9;color:#0b211e;border:1px solid transparent}
.primary:hover{background:#adfaeb}
.secondary{background:#18202be6;color:var(--text);border:1px solid #3a4654}
.secondary:hover{border-color:#74cfbf;background:#242f39}
.primary span{font-size:.74em}
.catalog{scroll-margin-top:16px;margin-bottom:52px}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:19px}
.section-head h2{font-size:clamp(1.8rem,3.6vw,2.5rem);letter-spacing:-.055em;line-height:1.2;margin-bottom:6px}
.section-head p,.play-heading>div>p:not(.eyebrow){color:var(--muted)}
.search{display:flex;gap:9px;align-items:center;width:min(300px,100%);border:1px solid var(--edge);padding:6px 11px;background:#181d27;border-radius:10px}
.search>span{font-size:21px;color:#90a9b4}
.search input{border:0;color:var(--text);background:none;min-height:33px;width:100%;outline:none}
.search:focus-within{outline:2px solid #74eed7;outline-offset:2px}
.search input::placeholder{color:#a6afc1}
.filters{display:flex;gap:7px;flex-wrap:wrap;padding-bottom:15px;border-bottom:1px solid var(--edge)}
.filters button,.text-button{color:var(--muted);min-height:39px;border:1px solid var(--edge);background:#171b24;border-radius:9px;padding:6px 11px;white-space:nowrap;font-weight:700;font-size:.88rem}
.filters button span{color:var(--accent);font-weight:800}
.filters button:hover,.text-button:hover{color:var(--text);border-color:#4b6e71}
.filters [aria-pressed=true],.text-button[aria-pressed=true]{color:#adf7e6;background:#183630;border-color:#427466}
.results-row{display:flex;align-items:center;justify-content:space-between;min-height:56px;color:var(--muted);font-size:.91rem}
.results-row .text-button{min-height:31px}
.card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.challenge{min-width:0;border-radius:var(--radius);overflow:hidden;border:1px solid #2c3542;background:var(--panel);transition:transform .18s,border-color .18s}
.challenge:hover{border-color:var(--accent);transform:translateY(-3px)}
.challenge:focus-within{outline:2px solid var(--accent);outline-offset:3px}
.challenge>a{display:flex;flex-direction:column;height:100%}
.challenge>a:focus-visible{outline:none}
.card-art{position:relative;aspect-ratio:2.06;background:linear-gradient(135deg,var(--tone),#111a27);overflow:hidden;border-bottom:1px solid #363c47}
.card-art canvas{display:block;width:100%;height:100%}
.art-label{position:absolute;bottom:9px;left:11px;border:1px solid #ffffff25;border-radius:5px;background:#101820da;color:var(--accent);padding:2px 6px;font:800 .69rem/1.45 ui-monospace,monospace;letter-spacing:.08em}
.card-content{display:flex;flex-direction:column;flex:1;gap:6px;padding:14px 14px 15px}
.card-meta{display:flex;justify-content:space-between;gap:4px;align-items:center;color:var(--accent);font-weight:700;font-size:.83rem}
.card-meta span+span{color:#a6aebd;font-size:.78rem}
.card-meta span.complete{color:#83f5df}
.card-content h3{font-weight:850;font-size:1.26rem;letter-spacing:-.035em}
.card-content p{font-size:.95rem;color:var(--muted);flex:1;min-height:2.95em}
.card-play{display:flex;gap:8px;align-items:center;color:var(--accent);font-size:.88rem;font-weight:800;margin-top:9px}
.card-play i{font-style:normal;font-size:.67rem}
.more-row{text-align:center;margin-top:25px}
.no-results{padding:40px 14px;text-align:center;color:var(--muted);border:1px dashed var(--edge);border-radius:10px}
.footer{background:#131720;border-top:1px solid var(--edge);padding:25px 0;color:var(--muted)}
.footer>.frame{display:flex;justify-content:space-between;align-items:center;gap:10px}
.footer p,.footer>.frame>a:last-child{font-size:.92rem}
.footer .brand{color:var(--text);font-size:1rem}
.footer .brand-icon{scale:.84}
.library-hero{margin:27px 0 38px;padding:clamp(24px,5vw,58px);border-radius:22px;border:1px solid #31434a;background:linear-gradient(90deg,#111923 0%,#122025e6 38%,#10202b56 100%),url('./marble-hero.jpg') center/cover}
.library-hero>p:not(.eyebrow){max-width:535px}
.reference-group{margin-bottom:27px;scroll-margin-top:14px}
.group-head{display:flex;align-items:center;margin-bottom:10px;gap:10px}
.group-head h3{font-size:1.38rem;flex:1}
.group-icon{display:grid;place-items:center;width:34px;height:34px;color:var(--accent);background:var(--tone);border-radius:8px}
.group-head a,.reference-list header a,.guide-link{color:#86efde;font-size:.91rem;font-weight:750}
.group-head a:hover,.reference-list header a:hover,.play-guide a:hover{text-decoration:underline}
.reference-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.reference-list article{border-radius:12px;padding:14px 16px;background:var(--panel);border:1px solid var(--edge)}
.reference-list article header{display:flex;gap:7px 10px;justify-content:space-between;align-items:baseline;margin-bottom:6px;flex-wrap:wrap}
.reference-list h4{font-size:1.13rem}
.reference-list p{color:var(--muted);line-height:1.6}
.reference-list .feedback{color:#d9e6ed;margin-top:8px;padding-left:9px;border-left:2px solid color-mix(in srgb,var(--accent) 74%,#1b2433)}
@media(max-width:1120px){.frame{width:calc(100% - 58px)}.card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){.frame{width:calc(100% - 38px)}.hero{min-height:360px}.hero::before{background:linear-gradient(90deg,#0a0e16f2,#0a0e16b8 35%,#0a0e1638)}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.frame{width:calc(100% - 24px)}.top{height:auto}.header-row{gap:5px 10px;min-height:65px;flex-wrap:wrap;padding-block:10px}.header-row nav{order:3;width:100%;justify-content:center;gap:16px;border-top:1px solid var(--edge)}.header-row nav a{padding:5px 0 0}.brand{font-size:1rem}.progress{font-size:.81rem}.hero{margin-top:13px;margin-bottom:31px;background-position:57% center;min-height:0}.hero-inner{padding:25px 16px}.hero h1,.library-hero h1{font-size:3.12rem}.hero-desc{font-size:.94rem}.hero-actions{gap:6px}.primary,.secondary{padding:8px 10px;font-size:.88rem}.section-head{align-items:start;flex-direction:column}.search{width:100%}.filters{gap:5px}.filters button{padding:5px 7px}.card-grid{gap:9px}.card-content{padding:10px 8px}.card-content h3{font-size:1.12rem}.card-content p{font-size:.87rem}.card-meta{font-size:.76rem}.art-label{max-width:calc(100% - 10px);bottom:4px;left:5px;font-size:.60rem}.footer>.frame{align-items:flex-start;flex-direction:column}.reference-list{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

body{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
@media(max-width:560px){
  .filters button,.results-row .text-button{min-height:44px}
  .search input{min-height:37px;font-size:1rem}
}

.footer .frame{flex-wrap:wrap;gap:16px 24px}
.footer nav{display:flex;flex-wrap:wrap;gap:2px 18px}
.footer nav a,.footer summary{display:inline-flex;align-items:center;min-height:42px;font-size:.92rem}
.footer nav a:hover,.footer summary:hover{color:#adfaeb;text-decoration:underline}
.harbor-shell .footer{background:#e3efe6;border-color:#c5d8cc;color:#315955}
.harbor-shell .footer .brand{color:#18383a}
.harbor-shell .footer nav a:hover,.harbor-shell .footer summary:hover{color:#135b50}
.editorial{max-width:960px;padding-block:clamp(32px,6vw,68px)}
.editorial-head{padding-bottom:26px;border-bottom:1px solid var(--edge)}
.editorial-head h1{font-size:clamp(2.2rem,5.5vw,4.2rem);margin:10px 0 14px}
.editorial-head>p:last-child{font-size:1.08rem;color:var(--muted)}
.editorial-body section{padding:23px 0;border-bottom:1px solid var(--edge);scroll-margin-top:12px}
.editorial-body h2,.level-notes h2{font-size:clamp(1.25rem,3vw,1.62rem);line-height:1.3}
.editorial-body p,.level-notes p{max-width:72ch;margin-top:9px;line-height:1.75}
.editorial-body p a,.guide-level-links a,.level-notes a,.consent-notice a{color:#92efde;text-decoration:underline;text-underline-offset:.2em;overflow-wrap:anywhere}
.guide-index,.guide-level-links{display:flex;flex-wrap:wrap;gap:6px 16px;padding:0;list-style:none}
.guide-index{padding-top:14px}
.guide-index a,.guide-level-links a{display:inline-flex;align-items:center;min-height:44px}
.guide-index a{background:var(--panel);border:1px solid var(--edge);border-radius:8px;padding-inline:11px}
.guide-index a:hover{border-color:var(--accent)}
.guide-level-links{margin-top:7px}
.level-notes{margin:20px 0 28px;border:1px solid var(--edge);border-radius:14px;background:var(--panel);padding:16px 18px}
.level-notes a{display:inline-flex;align-items:center;min-height:42px}
.harbor-shell .level-notes,.harbor-shell .consent-notice{background:#f6f8ed;border-color:#bbcfc3}
.harbor-shell .level-notes a,.harbor-shell .consent-notice a{color:#126356}
.consent-notice{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 24px;margin:0 0 24px;border:1px solid var(--edge);border-radius:14px;background:var(--panel);padding:12px 16px}
.consent-notice p{font-size:.91rem;margin-top:3px}
.consent-notice p a{display:inline-block;margin-inline-start:.65em}
.consent-actions{display:flex;flex-wrap:wrap;gap:8px}
.consent-actions button{min-height:44px;border:1px solid #54616e;border-radius:8px;padding:6px 12px;color:#edf8f4;background:#212b33;font-weight:700;font-size:.89rem}
.consent-actions button:hover,.consent-actions button:focus-visible{border-color:#92efde}
.harbor-shell .consent-actions button{color:#154e44;background:#e7f3eb;border-color:#829f93}
.consent-actions button:disabled{opacity:.55}
.consent-settings summary{cursor:pointer;gap:.45em}
.consent-settings summary::before{content:'▸'}
.consent-settings[open] summary::before{content:'▾'}
.consent-settings p{margin-bottom:8px}
@media(max-width:560px){
  .footer .frame{gap:4px 12px}
  .footer nav{gap:0 14px}
  .arcade-shell .header-row .brand small{display:none}
}

.scene-loading{position:absolute;z-index:2;inset:0;display:grid;place-items:center;color:#c2ddea;background:#17212d;font-weight:750;pointer-events:none}
[data-render=ready] .scene-loading,[data-view="3d"] .scene-loading,[data-view="2d"] .scene-loading{display:none}
[data-render=loading] #board,[data-render=loading] #game-fx,[data-view=loading] #vehicle-buttons{visibility:hidden}
.station-board .scene-loading{background:#276761;color:#effdf3}
.play-level-nav{display:flex;align-items:center;gap:6px;position:relative;font-size:.92rem;min-width:0;z-index:5}
.play-level-nav details{position:relative;min-width:0}
.play-level-nav summary,.level-step{display:grid;min-height:40px;place-items:center;padding-inline:10px;border:1px solid #46536a;border-radius:7px;color:#e3eef8;background:#202d40;cursor:pointer;white-space:nowrap}
.play-level-nav summary{display:list-item;list-style-position:inside;padding-block:8px}
.play-level-nav .all-levels{display:grid;position:absolute;right:0;top:calc(100% + 6px);grid-template-columns:repeat(6,1fr);gap:4px;width:min(258px,calc(100vw - 30px));padding:8px;border:1px solid #3c4a5d;border-radius:9px;background:#182333;box-shadow:0 11px 30px #0c1019ad}
.all-levels a{display:grid;place-items:center;min-height:34px;border-radius:5px;background:#29374a;color:#e6eef4;font-weight:700}
.all-levels a[aria-current]{background:#85ebd7;color:#142926}
.all-levels a.level-done:not([aria-current]){color:#8fedce}
.station-level-nav{margin-top:12px}
.station-level-nav .all-levels{right:auto;left:0}
.station-level-nav summary,.station-level-nav .level-step{background:#f1f6e8;border-color:#b9cfc0;color:#234b48}
@media(max-width:560px){.play-level-nav .all-levels{width:228px}.all-levels a{min-height:38px}.play-level-nav summary,.level-step{min-height:43px}}

.full-catalog.frame{width:min(1480px,calc(100% - 48px))}
.full-catalog .catalog{margin:18px 0 23px}
.catalog-heading{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:9px}
.catalog-heading h1{font-size:clamp(1.85rem,3.5vw,3.05rem);letter-spacing:-.05em}
.catalog-heading p{color:#a5b3c3;margin-top:6px;font-size:.92rem}
.catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.catalog-toolbar .filters{border:0;padding:0;gap:5px}
.catalog-toolbar .filters button,.catalog-toolbar .text-button{min-height:34px}
.catalog-index{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.catalog-game{min-width:0;border:1px solid #344357;border-radius:12px;background:linear-gradient(155deg,color-mix(in srgb,var(--tone) 45%,#1c2635),#151d28 74%);overflow:hidden}
.catalog-game>a{display:flex;height:100%;flex-direction:column}
.catalog-game:hover,.catalog-game:focus-within{border-color:var(--accent);background:linear-gradient(155deg,var(--tone),#182633 77%)}
.catalog-game>a:focus-visible{outline-offset:-3px}
.catalog-preview{display:block;position:relative;aspect-ratio:5/3;background:radial-gradient(ellipse at 50% 40%,var(--tone),#121c2b);border-bottom:1px solid #52647b61;overflow:hidden}
.catalog-preview img,.catalog-preview video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.catalog-preview video{visibility:hidden}
.catalog-preview video[data-playing]{visibility:visible}
.catalog-card-body{display:flex;flex-direction:column;gap:4px;padding:11px 13px 13px;flex:1}
.catalog-card-style{color:var(--play-color);font-size:.71rem;font-weight:750;letter-spacing:.035em}
.catalog-card-title{display:flex;align-items:center;justify-content:space-between;gap:4px}
.catalog-game strong{color:#eff6fa;font-size:clamp(.88rem,1.45vw,1.07rem);font-weight:820;line-height:1.2}
.catalog-card-title>span{color:var(--accent);font-size:1.12rem;line-height:1}
.catalog-card-caption{color:#bfcbd8;font-size:.85rem;line-height:1.4}
.catalog-game small{color:var(--accent);font-size:.73rem;line-height:1.35;margin-top:auto}
[data-browse-all] .catalog-game[data-spotlight]{grid-column:span 2;grid-row:span 2}
[data-browse-all] [data-spotlight] .catalog-preview{min-height:0;flex:1;aspect-ratio:auto;background:#122e3a}
[data-browse-all] [data-spotlight] .catalog-preview :is(img,video){object-fit:contain}
[data-browse-all] [data-spotlight] .catalog-card-body{flex:0;padding:15px 17px 17px}
@media(min-width:621px){
  [data-browse-all] [data-spotlight] .catalog-card-body{order:-1}
  [data-browse-all] [data-spotlight] .catalog-preview{border-bottom:0;border-top:1px solid #52647b61}
}
[data-browse-all] [data-spotlight] strong{font-size:clamp(1.45rem,2.6vw,2.4rem)}
[data-browse-all] [data-spotlight] .catalog-card-caption{font-size:.94rem}
.catalog-controls{display:flex;align-items:center;gap:6px;flex:none}
.catalog-toolbar .filters{flex:1;min-width:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#5c7785 transparent;padding-bottom:2px}
.catalog-toolbar .filters button,.catalog-controls .text-button{flex:none}
@media(min-width:900px){.full-catalog .catalog{margin-top:13px}}
@media(max-width:900px){.catalog-index{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){
  .full-catalog.frame{width:calc(100% - 24px)}
  .full-catalog .catalog{margin-top:11px}
  .catalog-index{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  [data-browse-all] .catalog-game[data-spotlight]{grid-row:auto}
  [data-browse-all] [data-spotlight] .catalog-preview{aspect-ratio:5/3;flex:none}
  [data-browse-all] [data-spotlight] .catalog-card-body{padding:9px 11px 11px}
  .catalog-heading{align-items:stretch;flex-direction:column;gap:7px}
  .catalog-heading h1{font-size:1.71rem}
  .catalog-heading p{margin-top:3px}
  .catalog-heading .search input{min-height:30px}
  .catalog-toolbar{display:grid;gap:5px}
  .catalog-controls{justify-content:flex-end}
  .catalog-toolbar .filters button,.catalog-toolbar .text-button{min-height:36px}
  .catalog-controls .text-button{font-size:.79rem;padding-inline:8px}
  .catalog-card-body{padding:8px 8px 9px}
  .catalog-card-caption{font-size:.78rem}
}
@media(max-width:365px){
  .puzzle-page .play-level-nav{gap:3px}
  .play-level-nav summary,.level-step{padding-inline:6px;font-size:.78rem}
}
@media(min-width:981px) and (max-height:700px){
  .full-catalog .catalog{margin-top:7px}
  .catalog-heading h1{font-size:2.02rem}
  .catalog-heading p{margin-top:2px}
  body:has(.full-catalog) .top{height:58px}
  body:has(.full-catalog) .header-row nav a{padding-block:14px}
}

/* Player progress and sharing */
.player-button{
  display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:7px 12px;
  color:#e8f7f6;background:#192c36;border:1px solid #3b5764;border-radius:9px;
  font:inherit;font-size:.875rem;font-weight:750;white-space:nowrap;text-decoration:none;cursor:pointer
}
.player-button:hover,.player-button[aria-pressed=true]{background:#25444c;border-color:#77cfc4}
.player-button:focus-visible,.player-page a:focus-visible,.share-dialog input:focus-visible{outline:2px solid #93eee0;outline-offset:3px}
.player-button:disabled{opacity:.6;cursor:wait}
.player-button-primary{background:#8de5d5;border-color:#8de5d5;color:#102629}
.player-button-primary:hover{background:#b1f6e9;color:#102629}
.progress[aria-current=page]{border-color:#5eafa1;color:var(--ink)}
.level-player-tools{display:grid;justify-items:end;gap:7px}
.level-player-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px 10px;color:#b8c7d5;font-size:.8rem}
.level-player-actions .player-button{min-height:32px;padding:3px 9px;font-size:.8rem}
[data-saved-state]{color:#8bdacf}
.challenge-note{color:#a2ebdf;font-size:.83rem;text-align:right;margin:0}
.result-reward{flex-basis:100%;color:#a2ebdf;font-weight:750;font-size:.88rem;text-align:center;margin:2px 0 7px}
.harbor-shell .level-player-tools{justify-items:start}
.harbor-shell :is(.level-player-actions,.challenge-note,[data-saved-state],.result-reward){color:#276557}
.harbor-shell .station-index{gap:5px}
.harbor-shell .station-index b{font-size:.8rem}
.station-result-actions{flex-wrap:wrap}
.lobby-continue{margin:0 0 24px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border:1px solid #3c5b63;border-radius:13px;background:#192b34}
.lobby-continue h2,.lobby-continue p{margin:0}
.lobby-continue h2{font-size:.84rem;color:#96c9c3}
.lobby-continue p{margin-top:2px;color:#eefdf9;font-weight:780}
.player-page{padding-block:clamp(24px,5vw,54px);min-height:65vh}
.player-page :is(h1,h2,h3,p,ul,dl,dd){margin:0}
.player-page-head,.player-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.player-page-head{margin-bottom:22px}
.player-page-head h1{font-size:clamp(2rem,4.5vw,3.35rem);line-height:1.1}
.player-overview,.player-sessions{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:12px;margin-bottom:14px}
.player-rank,.player-totals,.player-panel,.player-game{border:1px solid #344955;border-radius:14px;background:#17242e}
.player-rank{display:flex;align-items:center;gap:16px;padding:18px;background:radial-gradient(ellipse at 5% 10%,#2a5356,#172a33 74%)}
.player-rank-mark{min-width:74px;min-height:74px;display:grid;place-items:center;border-radius:18px;border:1px solid #6cadac;background:#172f39;color:#a3f5e6;font-size:1.35rem;font-weight:900}
.player-rank-copy{flex:1;min-width:0}
.player-rank-copy h2{color:#f4fff9;font-size:1.45rem}
.player-rank-copy p{color:#e4f1f0;font-size:.88rem;font-weight:740}
.player-rank-copy small{display:block;color:#afc6cc}
.player-page progress{appearance:none;width:100%;height:7px;border:0;border-radius:99px;background:#0f1b24;overflow:hidden;vertical-align:middle}
.player-page progress::-webkit-progress-bar{background:#101b25;border-radius:99px}
.player-page progress::-webkit-progress-value{background:var(--game-accent,#88e8d3);border-radius:99px}
.player-page progress::-moz-progress-bar{background:var(--game-accent,#88e8d3);border-radius:99px}
.player-totals{display:grid;grid-template-columns:repeat(3,1fr);align-content:center}
.player-totals>div{padding:8px 10px;text-align:center}
.player-totals>div+div{border-inline-start:1px solid #3a4e5b}
.player-totals dt{font-size:.84rem;color:#b4c7d0}
.player-totals dd{white-space:nowrap}
.player-totals b{font-size:clamp(1.45rem,3vw,2.1rem);color:#f0fffa;font-variant-numeric:tabular-nums}
.player-totals small{color:#afc2cd}
.player-panel{padding:15px 17px;min-width:0}
.player-panel h2,.player-game-section h2{font-size:1.19rem}
.player-panel p{color:#b9cbd4;margin-top:6px;font-size:.91rem}
.player-panel .player-button{margin-top:8px}
.player-section-title>span{color:#a2e5da;font-weight:750}
.player-list{list-style:none;padding:0}
.player-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid #2e4350;font-size:.89rem}
.player-list li:last-child{border:0;padding-bottom:0}
.player-list a{color:#e4faf4;text-underline-offset:4px}
.player-list span{flex-shrink:0;color:#a3b9ca;font-size:.81rem}
.player-game-section{margin-block:26px}
.player-filters{display:flex;flex-wrap:wrap;gap:6px}
.player-filters .player-button{min-height:34px;padding:4px 9px}
.player-games{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:8px;margin-top:11px}
.player-game{display:flex;align-items:center;gap:11px;padding:10px}
.player-game-mark{display:grid;place-items:center;width:38px;height:38px;flex:none;border:1px solid color-mix(in srgb,var(--game-accent) 55%,#344955);border-radius:10px;color:var(--game-accent);background:#101d27;font-size:1.26rem}
.player-game-copy{flex:1;min-width:0}
.player-game-copy h3{font-size:.97rem}
.player-game-copy span{color:#b2c8d6;font-size:.82rem}
.player-game .player-button{min-height:35px}
.player-empty{padding:19px 0;color:#b1c4d0}
.share-dialog{color:#f0f9fa;background:#192a36;border:1px solid #4d6a78;border-radius:17px;width:min(460px,calc(100% - 24px));max-width:none;padding:20px 21px;box-shadow:0 12px 50px #0008}
.share-dialog::backdrop{background:#070c14cc}
.share-dialog h2{margin:0 39px 5px 0;font-size:1.32rem}
.share-dialog p{margin-block:5px 13px;color:#c1d4d9}
.share-close{position:absolute;right:12px;top:12px}
.share-close .player-button{min-width:34px;min-height:34px;padding:0;font-size:1.3rem}
.share-link-label{display:block;color:#d5e5e9;font-size:.84rem;font-weight:740}
.share-link-label input{display:block;width:100%;margin:5px 0 12px;padding:8px 10px;color:#f1fff9;background:#10202c;border:1px solid #506779;border-radius:8px;font:inherit;font-weight:450}
.share-commands{display:flex;flex-wrap:wrap;gap:6px}
.share-dialog p.share-status{color:#9ce8d7;min-height:1.2em;margin-block:11px 0;font-size:.85rem}
@media(max-width:680px){
  .player-overview,.player-sessions{grid-template-columns:minmax(0,1fr);gap:8px}
  .player-page-head{margin-bottom:15px}
  .level-player-tools .level-player-actions{gap:4px 7px}
}
@media(max-width:400px){
  .player-game-section .player-section-title{align-items:flex-start;flex-direction:column;gap:7px}
  .player-rank-mark{min-width:60px;min-height:60px}
  .lobby-continue{padding:10px 12px}
}

.level-objective{
  --objective-accent:var(--accent,#8de5d5);
  display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;
  padding:10px 13px;border-inline-start:4px solid var(--objective-accent);
  border-bottom:1px solid #45596b;
  background:linear-gradient(110deg,color-mix(in srgb,var(--objective-accent) 13%,#202d3b),#1b2938);
  color:#f1f8fe
}
.objective-copy{flex:1 1 12em;min-width:0}
.objective-copy h2{margin:0 0 2px;color:var(--objective-accent);font-size:.81rem;line-height:1.25}
.objective-copy p{margin:0;font-size:.98rem;line-height:1.4;font-weight:730}
.objective-facts{display:flex;flex-wrap:wrap;gap:6px;margin:0;min-width:0}
.objective-facts>div{padding:4px 9px 5px;background:#111e2c;border:1px solid #4e657a;border-radius:7px;max-width:100%}
.objective-facts dt{color:#cbd8e4;font-size:.74rem;line-height:1.28;font-weight:670}
.objective-facts dd{margin:1px 0 0;color:var(--objective-accent);font-size:1.27rem;font-weight:900;line-height:1.18;font-variant-numeric:tabular-nums}
.harbor-shell .level-objective{--objective-accent:#215b4b;background:#e8f5e9;color:#163b35;border-bottom-color:#bfd8c9}
.harbor-shell .objective-facts>div{background:#fafcf1;border-color:#b7d5c4}
.harbor-shell .objective-facts dt{color:#365b52}
@media(max-width:760px){
  .level-objective{gap:6px 12px;padding:8px 9px}
  .objective-copy p{font-size:.9rem}
  .objective-facts>div{padding-inline:7px}
  .objective-facts dd{font-size:1.08rem}
}

.objective-clues{
  display:flex;flex-wrap:wrap;gap:5px;flex-basis:100%;margin:0;padding:0;list-style:none
}
.objective-clues li{
  background:#132334;border:1px solid #4e657a;border-radius:6px;
  padding:4px 7px;color:#e9f4fe;font-size:.84rem;line-height:1.27;font-weight:680
}

[data-tutorial-toggle]{
  border:1px solid #596783;border-radius:8px;background:#29364c;color:#fff0c3;
  padding:5px 9px;font-size:.85rem;font-weight:780;white-space:nowrap;min-height:37px
}
.hud-actions [data-tutorial-toggle][aria-expanded=true],.compact-controls [data-tutorial-toggle][aria-expanded=true],[data-tutorial-toggle][aria-expanded=true]{
  opacity:1;color:#2c2314;background:#ffe397;border-color:#ffe397
}
.tutorial-panel{
  display:flex;justify-content:space-between;align-items:center;gap:8px 14px;
  padding:9px 12px;background:#282539;color:#f8f1fb;border-block:1px solid #776957;border-inline-start:4px solid #ffe397
}
.tutorial-copy{min-width:0}
.tutorial-copy h2{font-size:.86rem;color:#ffe397;margin-bottom:3px}
.tutorial-copy p{font-size:.9rem;line-height:1.45}
.tutorial-copy .tutorial-note{margin-top:2px;color:#dfd2ee;font-size:.77rem;font-variant-numeric:tabular-nums}
.tutorial-actions{display:flex;align-items:center;flex-wrap:wrap;gap:5px;flex:none}
.tutorial-actions :is(button,a){
  display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:5px 9px;
  white-space:nowrap;border:1px solid #a392ac;border-radius:7px;background:#352e47;color:#fff1fd;font-size:.83rem;font-weight:740
}
.tutorial-actions [data-tutorial-locate]{background:#ffe397;color:#282014;border-color:#ffe397}
.tutorial-actions :is(button,a):hover{border-color:#ffe397}
[data-tutorial-target]{
  outline:3px solid #ffdc60!important;outline-offset:2px!important;
  box-shadow:0 0 0 5px #332811e8!important
}
.objective-clues[data-tutorial-target]{outline-offset:4px!important;border-radius:5px}
.station-hud [data-tutorial-toggle]{color:#26524b;background:#edf5e3;border-color:#b0c6aa}
.station-hud [data-tutorial-toggle][aria-expanded=true]{color:#2c2314;background:#ffe397;border-color:#c6a357}
@media(max-width:620px){
  .arcade-hud,.station-hud{flex-wrap:wrap}
  .arcade-hud .hud-actions,.station-hud .station-action-group{max-width:100%;flex-wrap:wrap}
  .station-hud [data-tutorial-toggle]{min-height:44px;font-size:.78rem;padding-inline:6px}
  .tutorial-panel{flex-wrap:wrap;align-items:start;padding:8px 9px}
  .tutorial-actions{flex-basis:100%;justify-content:flex-end}
}
@media(max-width:620px) and (orientation:portrait){
  .puzzle-layout .puzzle-game:has(.tutorial-panel:not([hidden])) .puzzle-surface{
    height:clamp(204px,calc(100svh - 535px),350px)
  }
}

.tutorial-panel[data-mode=visual]{align-items:start;flex-wrap:wrap}
.tutorial-panel[data-mode=visual] .tutorial-copy h2{margin:7px 0;font-size:1rem}
.tutorial-panel[data-mode=visual] .tutorial-actions{margin-inline-start:auto}
.tutorial-actions [data-tutorial-begin]{border-color:#ffe397;background:#ffe397;color:#272216}
.tutorial-visuals{flex:1 1 100%;min-width:0}
.tutorial-visual-tabs{
  display:flex;gap:5px;margin-bottom:9px;
  border-bottom:1px solid #746883
}
.tutorial-visual-tabs button{
  flex:1;min-width:0;min-height:39px;padding:4px 6px;
  border:1px solid transparent;border-bottom:0;border-radius:8px 8px 0 0;
  background:#312c42;color:#e6dded;white-space:nowrap;font-weight:750;font-size:.87rem
}
.tutorial-visual-tabs button[aria-pressed=true]{border-color:#907b83;background:#403650;color:#ffedba}
.tutorial-visual-tabs button:hover{color:#ffedba}
.tutorial-visuals figure{
  display:grid;grid-template-columns:minmax(0,480px) minmax(130px,1fr);
  gap:11px;align-items:center;margin:0
}
.tutorial-visuals :is(img,video){
  display:block;width:100%;height:auto;aspect-ratio:5/3;
  border-radius:9px;border:1px solid #786a85;background:#172232;object-fit:contain
}
.tutorial-visuals figcaption{font-size:.9rem;line-height:1.45;color:#f4ebfa;min-width:0}
.tutorial-visuals figcaption strong{font-size:1.05rem;text-wrap:balance}
.tutorial-visuals figcaption small{display:block;margin-top:5px;color:#cfc3db;font-size:.76rem}
.tutorial-visuals figcaption ol{
  display:flex;flex-direction:column;gap:7px;
  margin:0;padding:0;list-style:none
}
.tutorial-visuals figcaption li{
  display:flex;align-items:center;gap:6px;
  color:#fff3ec;font-size:.85rem;font-weight:700
}
.tutorial-role-number{
  display:grid;place-items:center;flex:none;
  width:21px;height:21px;border-radius:50%;background:#ffdf86;color:#17212c;font-weight:850;font-size:.77rem
}
.tutorial-visuals figcaption li:nth-child(2) .tutorial-role-number{background:#b0edff}
.tutorial-visuals figcaption li:nth-child(3) .tutorial-role-number{background:#e8c5ff}
@media(max-width:760px){
  .tutorial-visuals figure{grid-template-columns:minmax(0,1fr);gap:7px}
  .tutorial-visuals figcaption ol{flex-direction:row;flex-wrap:wrap;gap:6px 12px}
  .tutorial-visuals figcaption strong{font-size:.91rem}
}
@media(max-width:620px){
  .tutorial-panel[data-mode=visual] .tutorial-actions{flex-basis:auto}
  .tutorial-panel[data-mode=visual] .tutorial-actions :is(button,a){padding-inline:7px}
  .tutorial-visual-tabs button{min-height:40px;font-size:.8rem}
}
