:root{color-scheme:dark;--bg:#10141b;--surface:#1b2430;--tile:#26313d;--text:#f4ebdc;--muted:#b8c2cc;--gold:#ebc36b;--blue:#72c5ea;--line:#3a4653;--pin:#c7b69a;--radius:18px;--shadow:0 24px 70px #0005;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.5}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);min-width:280px}button,input,select,textarea{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{color:var(--text);cursor:pointer}button:disabled{opacity:.42;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #fff;outline-offset:4px}a{color:inherit;text-decoration:none}button{border:0}svg{display:block}p{margin:0 0 1em}h1,h2,h3{line-height:1.13;margin:0}h1,h2,.serif{font-family:Georgia,"Times New Roman",serif;font-weight:400}small,.muted{color:var(--muted)}[hidden]{display:none!important}.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden;white-space:nowrap}.nowrap{white-space:nowrap}
#app{min-height:100vh;min-height:100svh}.shell{max-width:1180px;margin:auto;padding:0 42px}.site-header{height:94px;border-bottom:1px solid #ffffff10;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{display:flex;align-items:center;gap:11px;background:none;padding:0;font-size:17px;font-weight:650;letter-spacing:.24em}.brand svg{width:38px;height:38px}.brand small{font-size:10px;letter-spacing:.16em;font-weight:500;display:block;margin-top:2px}.header-actions{display:flex;gap:8px;align-items:center}.icon-button,.text-button{min-height:46px;background:transparent;border-radius:10px;padding:10px 14px;transition:background .15s}.icon-button{min-width:46px;font-size:20px}.text-button{font-size:13px;color:var(--muted)}.icon-button:hover,.text-button:hover{background:#ffffff09}.eyebrow{font-size:10px;font-weight:650;letter-spacing:.21em;text-transform:uppercase;color:var(--gold);margin-bottom:20px}.dot{display:inline-block;width:5px;height:5px;vertical-align:middle;border-radius:50%;background:var(--gold);margin-right:9px}.hero{display:grid;grid-template-columns:1.1fr 1fr;gap:70px;align-items:center;min-height:490px;padding:55px 0 45px}.hero h1{font-size:clamp(39px,4.6vw,58px);letter-spacing:-.035em;line-height:1.08}.hero h1 em{font-style:italic;color:var(--gold)}.hero-copy>p{color:var(--muted);font-size:15px;line-height:1.8;max-width:390px;margin:24px 0 26px}.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;border-radius:11px;padding:12px 22px;background:var(--surface);border:1px solid var(--line);font-weight:600;font-size:14px;transition:background .15s,transform .15s}.button:hover:not(:disabled){background:#293746}.button.primary{background:var(--gold);border-color:var(--gold);color:#201e18}.button.primary:hover:not(:disabled){background:#f4d48e}.button.blue-button{background:#24465a;color:#bae7fa;border-color:#436578}.button.small{min-height:42px;padding:8px 14px;font-size:12px}.button.block{width:100%}.sub-note{font-size:11px;color:var(--muted);margin-top:19px;display:flex;gap:20px}.hero-art{max-width:390px;width:100%;justify-self:end;position:relative}.hero-art:before{content:'';position:absolute;inset:40px -15px 0;border-radius:50%;background:radial-gradient(ellipse,#b9965520,transparent 72%);z-index:-1}.art-note{display:flex;justify-content:space-between;font-size:9px;letter-spacing:.22em;color:var(--gold);padding:0 8px 17px}.art-note span:last-child{color:var(--blue)}.art-board{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;padding:12px;border-radius:22px;background:#171e27;border:1px solid #455260;box-shadow:var(--shadow);transform:rotate(-4deg)}.art-tile{aspect-ratio:1;background:linear-gradient(150deg,#2d3945,#202a34);border:1px solid #ffffff10;border-radius:10px;overflow:hidden}.art-caption{text-align:center;font-family:Georgia,serif;font-style:italic;color:var(--muted);font-size:14px;letter-spacing:.015em;margin-top:25px}.tiny-diamond{display:inline-block;width:5px;height:5px;border:1px solid var(--gold);transform:rotate(45deg);margin-right:8px}.strands{transform-origin:50px 50px;transition:transform .16s ease-out;fill:none;stroke-linecap:round;stroke-linejoin:round}.strands.gold{--strand:var(--gold)}.strands.blue{--strand:var(--blue)}.strand-core{stroke:var(--strand);stroke-width:3.8;fill:none}.strand-halo{stroke:var(--strand);stroke-width:10;opacity:.10;fill:none}.strand-node{fill:var(--strand);stroke:#26313d;stroke-width:1.5}.weave-cut{stroke:#26313d;stroke-width:8;fill:none}.reveal-blue{opacity:.93}.art-tile .strand-core{stroke-width:2.9}.art-tile .weave-cut{stroke-width:6.5}.chapter{border-top:1px solid #ffffff13;padding:29px 0 40px}.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:23px;gap:15px}.section-heading h2{font-size:27px;letter-spacing:-.02em}.section-heading .eyebrow{margin-bottom:10px;font-size:9px;color:var(--muted)}.progress-label{font-size:11px;color:var(--muted)}.levels{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.level-card{text-align:left;min-height:112px;padding:16px;background:#19212b;border:1px solid #ffffff10;border-radius:12px;position:relative;transition:border-color .15s,background .15s}.level-card:hover{border-color:#ebc36b75;background:#202a35}.level-number{font-size:11px;font-weight:650;letter-spacing:.11em;color:var(--gold);display:block;margin-bottom:12px}.level-card strong{font-size:12px;display:block;line-height:1.4;font-weight:500}.level-card small{font-size:10px;display:block;margin-top:5px}.level-check{position:absolute;right:14px;top:13px;color:var(--gold)}.level-card.recommended{border-color:#ebc36b65}.home-footer{border-top:1px solid #ffffff10;padding:22px 0 32px;display:flex;justify-content:space-between;gap:15px;font-size:11px;color:var(--muted)}.home-footer span:last-child{font-family:Georgia,serif;font-style:italic}.build-note{font-size:11px;color:var(--muted);padding:11px 0;border-bottom:1px solid #ffffff0c}.build-note a{text-decoration:underline;text-underline-offset:3px}
.play-header{padding:23px 0 22px;display:flex;justify-content:space-between;align-items:center;gap:14px}.play-title .eyebrow{font-size:9px;margin-bottom:8px;color:var(--muted)}.play-title h1{font-size:32px;letter-spacing:-.025em}.stage-switch{display:flex;align-items:center;gap:10px}.stage-dots{display:flex;gap:5px}.stage-dots span{width:5px;height:5px;border-radius:50%;background:#4b5562}.stage-dots .past{background:var(--gold)}.stage-dots .current{width:17px;border-radius:4px;background:var(--gold)}.play-layout{display:grid;grid-template-columns:minmax(0,610px) minmax(220px,1fr);gap:42px;align-items:start;padding-bottom:38px}.board-column{min-width:0}.layer-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;min-height:46px}.layer-switch{background:#19212b;border:1px solid var(--line);border-radius:10px;padding:3px;display:flex}.layer-switch button{min-width:94px;min-height:39px;padding:7px 17px;background:transparent;border-radius:7px;color:var(--muted);font-size:12px;font-weight:650}.layer-switch button.active.gold{background:#ebc36b20;color:var(--gold)}.layer-switch button.active.blue{background:#72c5ea20;color:var(--blue)}.layer-name{font-size:15px;font-weight:600;letter-spacing:.02em}.layer-name.gold{color:var(--gold)}.layer-name.blue{color:var(--blue)}.connection-badges{display:flex;gap:8px;align-items:center;font-size:10px;flex-wrap:wrap;justify-content:flex-end}.connection-badges span{border:1px solid #45515e;padding:5px 8px;border-radius:20px;color:var(--muted)}.connection-badges .complete.gold{color:var(--gold);border-color:#ebc36b70}.connection-badges .complete.blue{color:var(--blue);border-color:#72c5ea70}.board-wrap{max-width:545px;margin:auto;position:relative}.board-labels{display:grid;grid-template-columns:repeat(var(--size),1fr);margin:0 12px 7px 37px;gap:4px;color:var(--muted);font-size:10px;text-align:center;letter-spacing:.04em}.board-frame{display:flex;gap:8px;align-items:stretch}.row-labels{width:17px;flex:none;display:grid;grid-template-rows:repeat(var(--size),1fr);font-size:10px;color:var(--muted);text-align:center;padding:12px 0}.row-labels span{display:flex;align-items:center;justify-content:center}.board-grid{flex:1;min-width:0;background:#171f28;border:1px solid #465360;border-radius:19px;padding:11px;box-shadow:var(--shadow);display:grid;gap:4px}.board-row{display:grid;grid-template-columns:repeat(var(--size),minmax(0,1fr));gap:4px}.tile{position:relative;aspect-ratio:1;padding:0;min-width:0;background:linear-gradient(145deg,#2b3744,#222d38);border-radius:9px;overflow:visible;box-shadow:inset 0 1px #ffffff0e,inset 0 -2px #0002;outline:1px solid #ffffff09;outline-offset:-1px;touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none}.tile svg{width:100%;height:100%;overflow:hidden;border-radius:9px;pointer-events:none}.tile.selected{outline:2px solid #f3e5ca;outline-offset:-2px;z-index:1}.tile.link-selected:not(.selected){outline:2px dashed #b9c7d780;outline-offset:-3px}.tile.pinned{background:linear-gradient(145deg,#28313b,#242d35)}.tile:hover{background:linear-gradient(145deg,#354453,#2a3743)}.tile.pinged{outline:3px solid var(--blue);outline-offset:-3px}.tile:focus-visible{outline:3px solid #fff;outline-offset:2px;z-index:2}.tile-badge{position:absolute;right:4px;top:3px;font-size:10px;line-height:16px;min-width:16px;text-align:center;color:var(--pin);background:#17202dc7;border-radius:4px;pointer-events:none}.tile-badge.link{color:#e0e5ec;font-size:9px;border:1px solid #9da9b16b}.note-badge{position:absolute;left:5px;bottom:3px;font-size:11px;color:#f4ebdc;background:#18222bcf;border-radius:3px;padding:0 2px;pointer-events:none}.edge-issue{position:absolute;width:4px;height:4px;border-radius:50%;background:#f8ead0a0;pointer-events:none}.edge-issue.north{left:calc(50% - 2px);top:3px}.edge-issue.east{top:calc(50% - 2px);right:3px}.edge-issue.south{left:calc(50% - 2px);bottom:3px}.edge-issue.west{top:calc(50% - 2px);left:3px}.board-caption{display:flex;justify-content:space-between;gap:10px;padding:15px 2px 0 27px;color:var(--muted);font-size:10px}.board-caption strong{font-weight:600;color:var(--text)}.turn-controls{display:flex;gap:9px;justify-content:center;margin:21px 0 11px;padding-left:25px}.turn-controls .button{min-width:105px}.turn-controls .turn-icon{font-size:21px;line-height:1}.utility-controls{display:flex;gap:5px;justify-content:center;flex-wrap:wrap;padding-left:25px}.utility-controls button{font-size:12px;min-height:44px;border-radius:9px;background:transparent;padding:10px 14px;color:var(--muted)}.utility-controls button:hover{background:#ffffff09;color:var(--text)}.utility-controls .active{color:var(--blue);background:#72c5ea15}.mode-bar,.pause-banner{margin-bottom:12px;background:#1d3345;color:#d2eaf6;border:1px solid #416379;border-radius:10px;padding:12px 15px;font-size:12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.pause-banner{background:#3a3120;border-color:#776342;color:#f0d8a8}.coach{display:flex;gap:12px;border-top:1px solid #ebc36b45;border-bottom:1px solid #ebc36b25;padding:13px 0;margin-bottom:16px;font-size:12px;color:#eee0c3;align-items:start}.coach .coach-glyph{color:var(--gold);font-size:17px}.coach p{margin:0;line-height:1.6;flex:1}.coach button{flex:none;background:none;color:var(--muted);min-height:36px;min-width:36px;border-radius:6px;margin:-5px -4px}.play-aside{padding-top:6px}.aside-card{border-top:1px solid #ffffff20;padding:22px 0;margin-bottom:10px}.aside-card .eyebrow{color:var(--muted);font-size:9px;margin-bottom:14px}.aside-card h2{font-size:28px;margin-bottom:15px}.aside-card p{font-size:13px;color:var(--muted);line-height:1.75;max-width:270px}.rule-line{display:flex;gap:13px;align-items:center;margin:14px 0;color:var(--muted);font-size:11px}.rule-line b{color:var(--gold);font-size:17px;font-weight:400}.session-details{display:flex;gap:24px;margin-top:21px}.session-details strong{display:block;font-size:20px;font-weight:400;color:var(--text)}.session-details small{font-size:10px}.partner-card{display:flex;align-items:center;gap:10px;background:#1a2632;border:1px solid #3c4b59;border-radius:12px;padding:13px;margin-bottom:23px}.avatar{display:flex;align-items:center;justify-content:center;width:37px;height:37px;border-radius:50%;background:#72c5ea18;color:var(--blue);font-size:18px}.partner-card strong{display:block;font-size:12px}.partner-card small{font-size:10px}.inline-status{font-size:11px;color:var(--muted);margin-top:8px}.compare-board{margin-top:30px}.compare-board>.layer-name{margin:0 0 12px 26px}.hint-strip{border:1px solid #4e6774;background:#1e303c;color:#dbedf2;font-size:12px;border-radius:11px;padding:12px 15px;margin-top:15px}.hint-strip p{margin:0}.hint-strip button{background:none;color:var(--muted);font-size:11px;text-decoration:underline;min-height:36px}.completion-panel{border-top:1px solid #ebc36b65;margin-top:12px;padding-top:22px}.completion-panel .eyebrow{color:var(--gold);margin-bottom:12px}.completion-panel h2{font-size:35px;letter-spacing:-.03em;margin-bottom:13px}.completion-panel p{font-size:13px;color:var(--muted);line-height:1.7}.completion-panel .actions{margin-top:22px}.board-grid.is-solved .tile{background:linear-gradient(145deg,#2e3b47,#26323c)}.board-grid.is-solved{border-color:#b39c687a}.board-grid.is-solved .reveal-blue{animation:reveal .9s ease both}@keyframes reveal{from{opacity:0}to{opacity:.93}}.proposal{background:#26382f;border:1px solid #62806c;border-radius:12px;padding:14px;margin-bottom:13px;font-size:12px}.proposal p{margin-bottom:11px}.signal-caption{min-height:23px;font-size:11px;color:var(--blue);text-align:center;margin-top:9px}
.lobby{max-width:680px;margin:48px auto 65px}.lobby h1{font-size:43px;letter-spacing:-.03em;margin-bottom:14px}.lobby>p{color:var(--muted);font-size:14px;line-height:1.8;max-width:500px}.setup-panel{padding:27px;background:#19222c;border:1px solid var(--line);border-radius:18px;margin-top:25px}.form-row{display:flex;align-items:end;gap:13px;flex-wrap:wrap}.field{display:flex;flex-direction:column;gap:8px;flex:1;min-width:170px;margin-bottom:18px}.field label{font-size:12px;color:var(--muted)}input,select{background:#111922;border:1px solid #526171;border-radius:9px;padding:12px 13px;color:var(--text);min-height:48px;max-width:100%;width:100%}select{appearance:auto}.lobby .divider{font-size:11px;color:var(--muted);padding:24px 0 5px}.invitation{border:1px solid #4b5c6c;background:#111922;border-radius:10px;padding:13px;display:flex;gap:12px;align-items:center;justify-content:space-between;margin:18px 0 20px}.room-code{font-size:18px;letter-spacing:.16em;color:var(--gold);font-variant-numeric:tabular-nums}.invite-url{font-size:10px;color:var(--muted);word-break:break-all;margin-top:5px}.seats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.seat{background:#1b2631;border:1px solid #405060;padding:18px;border-radius:12px;min-height:100px}.seat .seat-layer{font-size:10px;letter-spacing:.13em;color:var(--gold);margin-bottom:11px}.seat.blue .seat-layer{color:var(--blue)}.seat strong{font-size:14px;display:block}.seat small{font-size:11px}.waiting{border-style:dashed;opacity:.8}.test-only{background:#293126;border:1px solid #4b6147;border-radius:10px;padding:13px;font-size:12px;color:#d8e5d3;margin:18px 0}.test-only a{text-decoration:underline;text-underline-offset:3px}.lobby .form-row .button{margin-bottom:18px}.lobby .footer-actions{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-top:24px}
.dialog-overlay{position:fixed;inset:0;z-index:100;background:#05080bc7;backdrop-filter:blur(9px);display:flex;align-items:center;justify-content:center;padding:22px}.dialog{width:min(100%,500px);max-height:calc(100dvh - 44px);overflow:auto;background:#1b2430;border:1px solid #52606d;border-radius:20px;padding:30px;box-shadow:var(--shadow);position:relative}.dialog h2{font-size:32px;letter-spacing:-.025em;margin:4px 40px 14px 0}.dialog p{font-size:13px;color:var(--muted);line-height:1.75}.dialog .close-dialog{position:absolute;right:14px;top:13px;min-height:44px;min-width:44px;background:transparent;border-radius:9px;color:var(--muted);font-size:22px}.dialog .eyebrow{margin-bottom:12px}.dialog .actions{margin-top:22px}.demo-pair{display:flex;justify-content:center;gap:38px;margin:27px 0}.demo-pair>div{width:108px}.demo-pair small{display:block;text-align:center;font-size:10px;letter-spacing:.15em;margin-bottom:12px}.demo-tile{background:var(--tile);border-radius:12px;box-shadow:inset 0 1px #ffffff20;overflow:hidden}.demo-caption{text-align:center!important;color:var(--text)!important;min-height:42px}.edge-demo{display:grid;grid-template-columns:1fr 1fr;gap:4px;max-width:215px;margin:22px auto}.edge-demo .demo-tile{aspect-ratio:1}.tutorial-bottom{display:flex;gap:12px;justify-content:space-between;margin-top:18px}.tutorial-bottom .text-button{padding:8px;font-size:11px}.toggle-row{display:flex;align-items:center;gap:15px;justify-content:space-between;padding:16px 0;border-top:1px solid #ffffff15}.toggle-row strong{font-size:13px;font-weight:500}.toggle-row small{display:block;font-size:11px;margin-top:5px}.toggle-row input{width:22px;height:22px;min-height:22px;flex:none;accent-color:var(--gold)}.help-rule{border-top:1px solid #ffffff17;padding:14px 0}.help-rule strong{font-size:13px;font-weight:500;display:block;margin-bottom:5px}.help-rule p{margin:0;font-size:12px}.hint-options{display:flex;flex-direction:column;gap:11px;margin:22px 0}.hint-options .button{justify-content:space-between;text-align:left}.hint-options .button small{font-size:10px;font-weight:400}.chat-dialog{width:450px}.chat-messages{min-height:160px;max-height:40vh;overflow:auto;display:flex;flex-direction:column;gap:14px;padding:10px 0 19px}.chat-message{background:#253440;border-radius:12px;padding:12px 14px;max-width:94%;overflow-wrap:anywhere}.chat-message.self{align-self:flex-end;background:#354137}.chat-message strong{display:block;font-size:10px;color:var(--gold);margin-bottom:5px}.chat-message p{font-size:13px;margin:0;color:var(--text);white-space:pre-wrap}.chat-form{display:flex;gap:8px}.chat-form input{min-width:0}.chat-form .button{padding:10px 14px}.chat-quick{display:flex;gap:6px;flex-wrap:wrap;margin:13px 0}.chat-quick button{font-size:11px;border:1px solid var(--line);background:transparent;border-radius:20px;padding:8px 12px;min-height:40px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 30px);padding:13px 20px;background:#e9e1d1;color:#25282c;border-radius:12px;z-index:200;font-size:12px;box-shadow:0 12px 40px #0005;pointer-events:none;min-width:220px;text-align:center}.loading{padding:100px 20px;text-align:center;color:var(--muted)}.local-warning{font-size:10px;color:#e0cb9a;margin-top:12px}.no-motion *{animation:none!important;transition:none!important}
@media(min-width:1200px){.play-layout{grid-template-columns:minmax(0,660px) 1fr;gap:60px}.board-wrap{max-width:535px}}@media(max-width:950px){.shell{padding:0 26px}.hero{gap:35px;min-height:460px}.hero-art{max-width:320px}.hero h1{font-size:44px}.play-layout{gap:25px;grid-template-columns:minmax(0,1fr) 235px}.play-title h1{font-size:29px}.aside-card h2{font-size:26px}.level-card{padding:14px 12px}.level-card strong{font-size:11px}.board-grid{padding:8px;gap:3px}.board-row{gap:3px}.turn-controls .button{min-width:86px;padding:10px 14px}}
@media(max-width:760px){.shell{padding:0 20px}.site-header{height:78px}.brand{font-size:14px;letter-spacing:.18em}.brand svg{width:32px;height:32px}.hero{padding:36px 0 35px;gap:35px;min-height:0}.hero h1{font-size:38px}.hero-copy>p{font-size:13px;margin:19px 0 22px}.hero .actions{gap:9px}.hero .button{font-size:12px;padding:11px 16px}.hero-art{max-width:275px}.sub-note{font-size:9px;gap:12px}.levels{grid-template-columns:repeat(5,1fr);gap:7px}.level-card{min-height:112px;padding:12px 9px}.level-card strong{font-size:10px}.level-number{font-size:10px;margin-bottom:9px}.level-card small{font-size:9px}.level-check{right:8px;top:10px;font-size:10px}.play-layout{grid-template-columns:1fr;gap:16px}.play-aside{padding-top:0;display:flex;flex-wrap:wrap;gap:18px}.aside-card{display:none}.partner-card{margin:0;width:100%;padding:10px 12px}.session-details{margin:0}.session-card{display:block;width:100%;padding:18px 0 0;margin:0}.session-card>.eyebrow{display:none}.session-card .session-details{justify-content:center}.play-title h1{font-size:30px}.play-header{padding:23px 0 18px}.board-wrap{max-width:470px}.board-labels{margin-left:35px;margin-right:11px}.board-grid{padding:10px;gap:4px}.board-row{gap:4px}.board-caption{font-size:10px}.turn-controls{margin-top:20px}.completion-panel{width:100%;text-align:center;margin-bottom:20px}.completion-panel .actions{justify-content:center}.completion-panel p{max-width:420px;margin:auto}.completion-panel h2{font-size:34px}.turn-controls .button{min-width:105px}.coach{max-width:470px;margin:0 auto 16px}.layer-bar{max-width:470px;margin:0 auto 16px}.mode-bar,.pause-banner,.proposal{max-width:470px;margin-left:auto;margin-right:auto}.home-footer{font-size:10px}}
@media(max-width:540px){.shell{padding:0 17px}.site-header{height:71px}.header-actions{gap:0}.header-actions .text-button{font-size:11px;padding:8px}.header-actions .icon-button{font-size:18px;padding:8px;min-width:40px}.brand small{font-size:8px}.brand{gap:8px}.hero{grid-template-columns:1fr;padding:32px 0 29px;gap:34px}.hero h1{font-size:46px}.hero-copy>p{font-size:13px;max-width:340px;margin:19px 0 23px}.hero .button{min-height:49px;font-size:13px;padding:12px 21px}.hero-art{max-width:275px;justify-self:center;margin:0 0 2px}.art-note{font-size:8px;padding-bottom:13px}.art-board{padding:9px;gap:4px;border-radius:17px}.art-tile{border-radius:7px}.art-caption{font-size:12px;margin-top:20px}.sub-note{margin-top:15px;font-size:10px}.hero .eyebrow{margin-bottom:16px}.chapter{padding-top:24px}.section-heading h2{font-size:25px}.levels{grid-template-columns:repeat(2,1fr);gap:9px}.level-card{min-height:97px;padding:14px 15px}.level-card strong{font-size:12px}.level-number{font-size:10px;margin-bottom:9px}.level-card small{font-size:10px}.level-check{right:14px;top:12px;font-size:12px}.home-footer{padding-bottom:24px}.home-footer span:last-child{display:none}.play-header{padding:20px 0 17px}.play-title h1{font-size:27px}.play-title .eyebrow{font-size:8px;margin-bottom:7px}.stage-dots{gap:4px}.stage-dots span{width:4px;height:4px}.stage-dots .current{width:11px}.layer-bar{margin-bottom:15px;gap:7px}.layer-switch button{min-width:75px;padding:8px 12px;font-size:11px}.layer-switch{padding:2px}.connection-badges{font-size:9px;gap:5px}.connection-badges span{padding:4px 6px}.board-frame{gap:5px}.row-labels{width:14px;font-size:9px;padding:8px 0}.board-grid{padding:8px;border-radius:15px;gap:3px}.board-row{gap:3px}.board-labels{font-size:9px;margin-left:29px;margin-right:9px;gap:3px}.tile{border-radius:7px}.tile svg{border-radius:7px}.tile-badge{font-size:8px;right:3px;top:2px;min-width:12px;line-height:12px}.tile-badge.link{font-size:8px}.board-caption{font-size:9px;padding-left:21px;padding-top:12px}.turn-controls{padding-left:19px;gap:7px;margin:17px 0 8px}.turn-controls .button{min-width:88px;font-size:12px;padding:10px 14px;min-height:48px}.turn-controls .button:last-child{min-width:70px}.utility-controls{padding-left:19px;gap:1px}.utility-controls button{font-size:11px;padding:9px 12px}.coach{font-size:11px;padding:11px 0;gap:9px}.coach .coach-glyph{font-size:15px}.play-layout{padding-bottom:25px;gap:9px}.signal-caption{font-size:10px}.lobby{margin:30px auto 45px}.lobby h1{font-size:36px}.lobby>p{font-size:13px}.setup-panel{padding:20px 16px}.form-row{gap:6px}.field{min-width:140px}.seats{gap:8px}.seat{padding:14px 12px}.seat strong{font-size:12px}.invitation{padding:12px;gap:8px}.room-code{font-size:15px;letter-spacing:.12em}.invitation .button{font-size:11px;padding:9px 12px}.dialog-overlay{padding:12px;align-items:center}.dialog{padding:25px 22px;max-height:calc(100dvh - 24px);border-radius:17px}.dialog h2{font-size:29px}.dialog p{font-size:12px}.demo-pair{gap:28px;margin:23px 0}.demo-pair>div{width:95px}.chat-dialog{align-self:end;max-height:calc(100dvh - 24px)}.chat-messages{max-height:42dvh}.stage-switch .text-button{display:none}.layer-name{font-size:13px}.build-note{font-size:10px}.completion-panel h2{font-size:31px}.local-warning{font-size:9px}}
@media(max-width:350px){.shell{padding:0 11px}.hero h1{font-size:41px}.brand{font-size:12px}.header-actions .text-button{padding:7px 5px}.layer-switch button{min-width:66px;padding:8px 9px}.connection-badges span{font-size:8px;padding:4px 5px}.board-grid{padding:6px;gap:3px}.board-row{gap:3px}.row-labels{padding:6px 0}.board-labels{margin-right:7px;margin-left:27px}.turn-controls{gap:6px}.turn-controls .button{min-width:81px;padding:10px 11px}.turn-controls .button:last-child{min-width:65px}.utility-controls button{padding:9px 10px}.play-title h1{font-size:25px}.demo-pair{gap:20px}.dialog{padding:24px 18px}.dialog .button{padding:11px 15px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(max-height:520px) and (orientation:landscape){.site-header{height:62px}.dialog{max-height:calc(100dvh - 20px)}.hero{min-height:0}.board-wrap{max-width:385px}.play-layout{grid-template-columns:1fr}.dialog-overlay{padding:10px}.chat-messages{min-height:85px;max-height:28dvh}}

/* TWO-FOLD 2 — board-first layout, sculpted tubes, quiet progression. */
.shell{max-width:1000px;padding:0 28px}.shell.play-shell{max-width:640px;padding:0 24px}
.site-header{height:68px}.brand{gap:10px}.brand svg{width:31px;height:31px}.brand>span{font-size:16px;letter-spacing:.12em}.brand small{display:none}
.home-intro{display:grid;grid-template-columns:1fr 300px;gap:48px;align-items:center;padding:44px 0 34px}.home-intro h1{font-size:clamp(40px,6vw,66px);line-height:1.02;letter-spacing:-.055em;margin:12px 0 24px}.home-intro .eyebrow{font-size:10px;letter-spacing:.13em}.home-intro h1 em{color:var(--gold);font-weight:400}.home-intro .hero-art{transform:rotate(-6deg);max-width:280px;margin:auto}.home-intro .art-note,.home-intro .art-caption{display:none}.home-intro .art-board{padding:10px;gap:3px;border-radius:17px}.home-intro .art-tile{border-radius:6px}
.journey-card{width:100%;display:flex;align-items:center;gap:15px;background:linear-gradient(110deg,#232c35,#19232d);border:1px solid #48505885;border-radius:16px;text-align:left;padding:17px 20px;margin:0 0 24px;color:var(--text)}
.journey-card:hover{border-color:#a08d6270}.rank-emblem{color:var(--gold);display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:12px;border:1px solid #bcaa6c45;font-size:25px;background:#ebc36b0a}.journey-copy{display:grid;gap:7px;flex:1;min-width:0}.journey-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.journey-top strong{font-size:13px;font-weight:650}.journey-top small{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.xp-track{display:block;height:4px;background:#080f1766;border-radius:5px;overflow:hidden}.xp-track i{display:block;height:100%;background:linear-gradient(90deg,var(--gold),#e4dfb5);border-radius:5px;transition:width .35s ease}.journey-bottom{color:var(--muted);font-size:11px;line-height:1.2}.journey-card.compact{padding:9px 13px;border-radius:11px;gap:11px;margin-bottom:15px}.compact .rank-emblem{height:29px;width:29px;font-size:20px;border:0;background:transparent}.compact .journey-copy{gap:4px}.compact .journey-top strong{font-size:11px}.compact .journey-top small{font-size:10px}.compact .journey-bottom{font-size:10px}.compact .xp-track{height:3px}
.campaign{padding-bottom:45px}.campaign .section-heading{margin-bottom:14px;align-items:center}.campaign h2{font-size:23px;letter-spacing:-.025em}.campaign .progress-label{font-size:11px}.chapters{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:start}.chapter-group{border:1px solid #ffffff13;background:#1b243070;border-radius:12px;overflow:hidden}.chapter-group[open]{grid-column:1/-1;border-color:#c4b17945;background:#1e2830}.chapter-group summary{min-height:57px;cursor:pointer;display:flex;align-items:center;gap:12px;padding:13px 17px;list-style:none}.chapter-group summary::-webkit-details-marker{display:none}.chapter-group summary:after{content:'+';color:var(--muted);font-size:18px}.chapter-group[open] summary:after{content:'−'}.chapter-group summary strong{font-size:13px;flex:1}.chapter-group summary>span:last-of-type{font-size:11px;color:var(--muted)}.chapter-icon{width:26px;text-align:center;color:var(--gold);font-size:20px}.levels{display:flex;flex-wrap:wrap;gap:8px;padding:0 17px 17px}.puzzle-stop{height:51px;min-width:51px;border:1px solid #ffffff13;border-radius:10px;background:#131d27;position:relative;font-variant-numeric:tabular-nums;font-size:14px}.puzzle-stop:hover{border-color:#c1a971}.puzzle-stop.recommended{background:var(--gold);color:#272017;border-color:var(--gold)}.puzzle-stop.done{background:#314437;color:#b4d4b2}.puzzle-stop small{position:absolute;right:4px;top:1px;font-size:9px}.rank-list{display:grid;gap:3px;margin:17px 0}.rank-row{display:flex;align-items:center;gap:15px;padding:10px;border-radius:9px}.rank-row.current{background:#ebc36b12;outline:1px solid #ebc36b30}.rank-row>span{font-size:22px;width:27px;text-align:center;color:var(--gold)}.rank-row>div{flex:1;display:grid;gap:1px}.rank-row strong{font-size:13px}.rank-row small{font-size:11px;color:var(--muted)}
.play-header{padding:17px 0 13px;align-items:center}.play-title h1{font-size:27px;letter-spacing:-.035em;line-height:1.1}.play-title .eyebrow{font-size:9px;margin:0 0 5px}.play-header>.text-button{font-size:11px;padding:9px}
.play-layout{display:flex;flex-direction:column;gap:0;padding-bottom:20px}.board-column{width:100%}.play-aside{width:100%;padding:0;display:block}.layer-bar{margin:0 auto 6px;max-width:100%;min-height:40px;gap:8px}.layer-switch{padding:3px}.layer-switch button{min-height:38px;min-width:90px;font-size:12px;padding:7px 15px}.layer-name{font-size:13px}.connection-badges{gap:7px}.connection-badges span{font-size:13px;border:1px solid #ffffff17;border-radius:8px;min-height:33px;min-width:40px;display:inline-flex;justify-content:center;align-items:center;padding:3px 8px;background:#111923}.connection-badges span.complete{border-color:currentColor;background:#ffffff08}.objective-line{font-size:11px;color:var(--muted);margin:0 0 8px 4px;min-height:16px}
.board-wrap{max-width:530px;width:100%;margin:0 auto}.board-labels{margin:0 7px 5px 28px;gap:2px;font-size:10px;color:#a5b1bd}.board-frame{gap:7px}.row-labels{width:14px;min-width:14px;font-size:10px;padding:7px 0;gap:2px}.board-grid{padding:6px;gap:2px;border-radius:15px;background:#101922;border:1px solid #52606b;box-shadow:0 14px 50px #0005,inset 0 1px #ffffff13}.board-row{gap:2px}.tile{border-radius:6px;background:linear-gradient(145deg,#2e3c48,#222e3a);outline:1px solid #ffffff07;outline-offset:-1px;box-shadow:inset 0 1px 1px #ffffff12,inset 0 -2px 2px #0004}.tile svg{border-radius:6px}.tile:hover{background:linear-gradient(145deg,#384958,#2a3a47)}.tile.selected{outline:2px solid #e9dcc4;outline-offset:-3px;box-shadow:inset 0 0 14px #e9dcc408}.tile.link-selected:not(.selected){outline:2px dashed #c7d2dcaa;outline-offset:-3px}.tile-blank{background:#0d1620!important;outline:none!important;box-shadow:inset 0 2px 5px #0004!important;pointer-events:none;opacity:.7}.tile.pinned{background:linear-gradient(145deg,#343b40,#282f34)}.tile-badge{min-width:15px;line-height:15px;top:4px;right:4px;border-radius:4px;font-size:10px;background:#111922d9;z-index:2}.tile-badge.link{font-size:11px;border-color:#929da670}.counter-badge{position:absolute;left:4px;top:4px;font-size:13px;line-height:15px;color:#e1d7bd;background:#111922d9;border:1px solid #afa08575;border-radius:4px;padding:0 2px;pointer-events:none;z-index:2}.edge-issue{width:4px;height:4px;box-shadow:none;background:#f5d18c;opacity:.65;z-index:2}.note-badge{font-size:11px;right:4px;bottom:4px}
.strands{stroke-linecap:butt;stroke-linejoin:round;transition:transform .18s cubic-bezier(.2,.8,.2,1)}.strands.gold{--strand:#e3b45b;--rim:#654b29;--shine:#fff0b2}.strands.blue{--strand:#69b8d6;--rim:#315568;--shine:#d6f5ff}.strand-halo{stroke:var(--strand);stroke-width:20;opacity:.045;fill:none}.pipe-shadow{stroke:#07121ee6;stroke-width:15;fill:none}.pipe-rim{stroke:var(--rim);stroke-width:12;fill:none}.strand-core,.art-tile .strand-core{stroke:var(--strand);stroke-width:8;fill:none}.pipe-shine{stroke:var(--shine);stroke-width:2.1;opacity:.66;fill:none}.weave-cut,.art-tile .weave-cut{stroke:#222e39;stroke-width:19;fill:none}.strand-node{stroke:none;fill:none}.terminal-rim{fill:#101b25;stroke:var(--rim);stroke-width:2.4;stroke-linejoin:round}.terminal-gem{fill:var(--strand);stroke:var(--shine);stroke-width:1}.terminal-glint{fill:var(--shine);stroke:none}.is-solved .strand-halo{opacity:.09}.is-solved .pipe-shine{opacity:.9}
.board-caption{max-width:530px;margin:auto;padding:9px 1px 2px 21px;min-height:27px;font-size:10px}.board-caption strong{font-size:11px}.signal-caption:empty{display:none}.turn-controls{display:flex;justify-content:center;gap:9px;margin-top:7px}.turn-controls .button{font-size:26px;line-height:1;min-height:47px;min-width:84px;padding:6px 20px;border-radius:11px}.turn-controls .button:last-child{min-width:64px;font-size:23px}.utility-controls{margin-top:3px;gap:5px;justify-content:center}.utility-controls button{min-height:43px;font-size:12px;padding:9px 16px}.coach{padding:8px 9px;border:1px solid #b79f5538;border-radius:9px;background:#bfa35809;margin:0 0 10px;max-width:none;gap:8px;font-size:11px;align-items:center}.coach p{line-height:1.4}.coach button{min-width:36px;min-height:32px;margin:-3px}.coach .coach-glyph{font-size:16px}.pause-banner,.proposal{margin-bottom:9px}.hint-strip{padding:11px 12px;font-size:12px}.hint-strip p{line-height:1.5}.hint-strip button{font-size:20px;min-width:36px;text-decoration:none}.partner-inline{display:flex;justify-content:center;align-items:center;gap:7px;font-size:11px;color:var(--muted);margin:7px 0}.presence-dot{height:6px;width:6px;border-radius:50%;background:#ae8953}.presence-dot.online{background:#a5c897}.completion-panel{text-align:center;padding:17px 0 8px;margin-top:12px;width:100%}.completion-panel .eyebrow{font-size:10px;margin-bottom:9px}.completion-panel h2{font-size:28px;margin-bottom:9px}.completion-panel .actions{margin-top:15px;justify-content:center}.completion-panel p{font-size:12px}.mastery-finish{margin-top:15px!important;color:var(--gold)!important}
.dialog{max-width:490px;padding:25px}.dialog h2{font-size:29px;line-height:1.1;margin-bottom:15px}.dialog p{font-size:13px;line-height:1.55}.dialog .dialog-subtitle{font-size:11px;line-height:1.5;color:var(--muted)}.help-rule{margin-bottom:13px}.help-rule strong{font-size:13px}.help-rule p{margin-top:4px}.shortcut-grid{display:grid;grid-template-columns:max-content 1fr;gap:7px 13px;font-size:12px;align-items:center;margin:18px 0}.shortcut-grid kbd{border:1px solid #71809050;border-bottom-width:2px;background:#111a24;border-radius:5px;padding:3px 6px;font:11px ui-monospace,monospace;text-align:center;color:var(--gold)}.toggle-row{padding:12px 0}.toggle-row strong{font-size:13px}.toggle-row small{font-size:11px}.lobby{max-width:620px;padding:30px 0 35px}.lobby h1{font-size:38px;margin-bottom:22px}.setup-panel{padding:22px}.lobby .test-only{font-size:11px;line-height:1.5;padding:11px 13px}.lobby .seat-layer{font-size:9px}.seats{margin:20px 0}.seat{padding:17px}.invite-url{max-width:360px}.lobby .eyebrow{font-size:10px}.demo-caption{min-height:20px}.demo-pair{max-width:260px;margin:18px auto}.dialog .demo-pair .demo-tile{aspect-ratio:1}.dialog .eyebrow{font-size:10px}
@media(min-width:760px){.play-shell .board-wrap{max-width:485px}.play-shell .board-caption{max-width:485px}.play-shell .play-layout{grid-template-columns:none}.play-shell .site-header{height:62px}}
@media(max-width:760px){.shell{padding:0 20px}.shell.play-shell{max-width:540px;padding:0 18px}.home-intro{grid-template-columns:1fr 210px;gap:15px;padding:30px 0}.home-intro .hero-art{max-width:200px}.play-aside{display:block}.home-intro h1{font-size:49px}.site-header{height:60px}.play-header{padding:14px 0 12px}.play-title h1{font-size:26px}.board-wrap{max-width:485px}.layer-bar{max-width:none}.play-layout{gap:0}.coach{max-width:none}.completion-panel{margin-bottom:12px}.lobby h1{font-size:34px}.journey-card{padding:13px 15px}}
@media(max-width:540px){.shell,.shell.play-shell{padding:0 14px}.site-header{height:56px}.brand svg{width:28px;height:28px}.brand>span{font-size:14px}.header-actions .text-button{font-size:12px;min-height:44px;padding:8px 10px}.header-actions .icon-button{min-width:44px}.home-intro{grid-template-columns:1fr 135px;gap:9px;padding:28px 0}.home-intro h1{font-size:43px}.home-intro .eyebrow{font-size:8px;letter-spacing:.08em;max-width:180px}.home-intro .hero-art{max-width:133px}.home-intro .actions{gap:7px;flex-wrap:nowrap}.home-intro .button{min-height:46px;padding:10px 13px;font-size:12px;gap:6px}.home-intro .art-board{padding:4px;border-radius:10px}.home-intro .art-tile{border-radius:3px}.chapters{grid-template-columns:1fr}.chapter-group summary{min-height:53px;padding:12px 14px}.chapter-group summary strong{font-size:12px}.levels{padding:0 14px 14px;gap:7px}.puzzle-stop{min-width:45px;height:45px;font-size:13px}.journey-card{margin-bottom:21px}.journey-card.compact{margin-bottom:10px;padding:8px 10px}.journey-top strong{font-size:12px}.journey-bottom{font-size:10px}.rank-emblem{width:35px;height:35px}.campaign h2{font-size:21px}.campaign .progress-label{font-size:10px}.play-header{padding:12px 0 11px}.play-title h1{font-size:24px}.play-title .eyebrow{font-size:8px}.layer-switch button{min-width:78px;min-height:38px}.board-grid{padding:5px;gap:2px;border-radius:12px}.board-row{gap:2px}.board-frame{gap:5px}.row-labels{width:12px;min-width:12px;font-size:9px;padding:6px 0}.board-labels{margin-left:23px;margin-right:6px;font-size:9px;gap:2px}.tile,.tile svg{border-radius:5px}.tile-badge{right:3px;top:3px;min-width:12px;font-size:9px;line-height:12px}.tile-badge.link{font-size:10px}.counter-badge{left:3px;top:3px;font-size:11px;line-height:12px;padding:0 1px}.tile.selected{outline-offset:-2px}.coach{margin-bottom:8px;font-size:11px;padding:6px 8px;gap:7px}.coach button{min-height:34px;min-width:34px}.objective-line{font-size:10px;margin-bottom:6px}.board-caption{padding:8px 1px 2px 18px;min-height:25px;font-size:9px}.turn-controls .button{min-width:83px;min-height:46px;padding:5px 19px;font-size:27px}.turn-controls .button:last-child{min-width:65px}.utility-controls button{padding:8px 15px;min-height:42px}.completion-panel h2{font-size:25px}.dialog{padding:23px;max-height:calc(100dvh - 28px)}.dialog h2{font-size:27px}.lobby{padding:24px 0}.lobby h1{font-size:32px}.setup-panel{padding:16px}.test-only{margin:12px 0}.rank-row{padding:7px}.rank-row strong{font-size:12px}.rank-row small{font-size:10px}.rank-list{gap:2px}.rank-row>span{font-size:19px}.dialog .dialog-subtitle{font-size:10px}}
@media(max-width:350px){.shell,.shell.play-shell{padding:0 7px}.board-grid{padding:4px}.board-labels{margin-left:22px;margin-right:5px}.home-intro{grid-template-columns:1fr 103px}.home-intro h1{font-size:39px}.home-intro .hero-art{max-width:104px}.home-intro .button{padding:9px 11px}.journey-top strong{font-size:11px}.compact .journey-bottom{font-size:9px}.turn-controls .button{min-width:82px}.utility-controls button{padding:8px 12px}.layer-switch button{min-width:75px}.puzzle-stop{min-width:44px;height:44px}}
@media(max-height:520px) and (orientation:landscape){.shell.play-shell{max-width:600px}.play-shell .board-wrap{max-width:365px}.play-shell .board-caption{max-width:365px}.play-shell .site-header{height:52px}.play-shell .play-header{padding:8px 0}.play-shell .play-title h1{font-size:23px}}
@media(prefers-reduced-motion:reduce){.strands,.xp-track i{transition:none!important}}

/* v3 — board-first layout. Journey lives in the puzzle library, never above play. */
.shell.play-shell{max-width:700px;padding:0 18px;--board-fit:560px}
.play-shell .site-header{height:49px}
.play-shell .brand>span{font-size:14px;letter-spacing:.17em}
.play-shell .brand svg{width:29px;height:29px}
.play-shell .header-actions{gap:0}
.play-shell .header-actions button{min-height:44px}
.play-shell .play-header{padding:8px 0;gap:12px;min-height:60px}
.play-shell .play-title .eyebrow{margin:0 0 3px;font-size:9px;letter-spacing:.14em}
.play-shell .play-title h1{font-size:clamp(22px,3vw,28px);line-height:1.12}
.play-shell .play-layout{display:flex;gap:0;padding:0 0 10px}
.play-shell .board-column,.play-shell .play-aside{width:100%}
.play-shell .board-wrap,.play-shell .board-caption{max-width:min(100%,var(--board-fit));width:100%;margin-left:auto;margin-right:auto}
.play-shell .layer-bar{margin:0 auto 3px;min-height:40px;max-width:var(--board-fit)}
.play-shell .layer-switch{padding:2px}
.play-shell .layer-switch button{min-height:36px;min-width:76px;padding:5px 13px}
.play-shell .connection-badges span{border:0;background:none;min-width:28px;padding:2px;font-size:13px}
.play-shell .objective-line{max-width:var(--board-fit);margin:0 auto 5px;padding-left:1px;min-height:15px;font-size:11px}
.play-shell .board-caption{padding-top:5px;min-height:26px;display:flex;gap:8px;align-items:center}
.play-shell #selected-caption{min-width:0;display:flex;gap:4px;align-items:center;white-space:nowrap}
.play-shell #input-caption{white-space:nowrap;font-size:10px}
.caption-note{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:160px;min-height:25px;border-radius:5px;padding:2px 6px;background:#dbc38115;color:#eddbac;font-size:11px;text-align:left}
.play-shell .turn-controls{margin-top:3px;gap:8px}
.play-shell .turn-controls .button{min-height:44px;min-width:78px;font-size:26px;padding:5px 19px}
.play-shell .turn-controls .button:last-child{min-width:62px}
.play-shell .utility-controls{margin:1px 0 0}
.play-shell .utility-controls button{min-height:40px;font-size:12px;padding:7px 15px}
.play-shell .coach{margin:0 auto 6px;font-size:11px;max-width:var(--board-fit)}
.play-shell .signal-caption{max-width:var(--board-fit);margin:3px auto;font-size:11px;min-height:0}
.play-shell .partner-activity{display:flex;align-items:center;justify-content:center;gap:6px;min-height:25px;font-size:11px;margin:1px auto;color:#c3cdd4}
.play-shell .partner-activity:empty{display:none}
.partner-move{padding:3px 8px;border-radius:6px;background:#66c6bd14;color:#a3e9de;font-size:11px;min-height:26px}
.play-shell.completed-view .layer-bar,.play-shell.completed-view .objective-line,.play-shell.completed-view .board-caption,.play-shell.completed-view #coach-area,.play-shell.completed-view #partner-activity,.play-shell.completed-view #signal-caption{display:none}
.play-shell.completed-view .completion-panel{border-top:1px solid #d6b96745;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px auto 0;padding:12px 0 0;max-width:var(--board-fit);text-align:left}
.completion-copy{min-width:0}
.play-shell.completed-view .completion-panel .eyebrow{font-size:9px;letter-spacing:.12em;margin:0 0 3px}
.play-shell.completed-view .completion-panel h2{font-size:25px;line-height:1.1;margin:0 0 5px}
.play-shell.completed-view .completion-panel p{margin:0;font-size:11px;color:var(--muted);white-space:nowrap}
.play-shell.completed-view .completion-panel .actions{margin:0;gap:2px;flex-direction:column;flex-wrap:nowrap}
.play-shell.completed-view .completion-panel .button{padding:10px 13px;min-height:44px;font-size:12px;white-space:nowrap}
.play-shell.completed-view .completion-panel .text-button{min-height:28px;font-size:11px;padding:3px 10px}
.play-shell.completed-view .completion-panel:has(.mastery-finish){flex-wrap:wrap}
.play-shell.completed-view .completion-panel .mastery-finish{width:100%;margin:0!important;color:var(--gold);font-size:11px}
.is-solved .tile-extra,.is-solved .tile-badge,.is-solved .counter-badge{display:none!important}

/* Distinct physical mechanics: tint + icon + hover text + tap/long-press details. */
.tile.pinned{background:linear-gradient(140deg,#494437,#342f27);box-shadow:inset 0 0 0 1px #dac18b44}
.tile.linked-tile{background:linear-gradient(140deg,#39344f,#292a3e)}
.tile.counter-tile{background:linear-gradient(140deg,#24474c,#21363d)}
.tile.linked-tile.counter-tile{background:linear-gradient(140deg,#464058,#24454a)}
.tile.pinned:hover{background:linear-gradient(140deg,#59523e,#41392d)}
.tile.linked-tile:hover{background:linear-gradient(140deg,#4b4568,#34344c)}
.tile.counter-tile:hover{background:linear-gradient(140deg,#30575c,#29444b)}
.tile-badge,.tile-badge.link,.counter-badge{top:4px;right:4px;left:auto;min-width:20px;height:20px;line-height:18px;font-size:14px!important;border-radius:5px;background:#151a21f5;border:1px solid #e7c9869c;display:flex;align-items:center;justify-content:center;color:#f5ddb0;box-shadow:0 1px 3px #0007;pointer-events:auto;z-index:3;padding:1px 2px}
.tile-badge.link{color:#e0ccff;border-color:#bba1e0a8;font-size:16px!important}
.counter-badge{left:4px;right:auto;color:#b2eee5;border-color:#6cccc0a8}
.tile-badge svg{width:15px;height:15px;border-radius:0;overflow:visible}
.note-badge{position:absolute;left:4px;right:auto;bottom:4px;top:auto;width:21px;height:21px;line-height:19px;padding:0;display:flex;justify-content:center;align-items:center;border:1px solid #f4dca494;border-radius:5px;font-size:14px;color:#ffedc6;background:#4f4425;z-index:3;pointer-events:auto;box-shadow:0 1px 3px #0007}
.tile.has-note{box-shadow:inset 0 0 0 2px #e4cd854a,inset 0 0 20px #f6d5780c}
.keep-badge{background:#45452b;color:#e9e5a9}
.tile.partner-last::after{content:'';position:absolute;inset:3px;border:2px solid #8be0d2;border-radius:4px;pointer-events:none;z-index:2}
.activity-badge{position:absolute;bottom:4px;right:4px;font-size:10px;line-height:17px;min-width:27px;padding:0 3px;background:#153d3b;color:#b6ffef;border:1px solid #72c7b8;border-radius:4px;z-index:3;pointer-events:none}
.tile.hint-target{outline:3px solid #d5afea;outline-offset:-3px}
.tile-tooltip{position:fixed;z-index:85;max-width:min(290px,calc(100vw - 20px));padding:9px 11px;border-radius:8px;border:1px solid #788799;background:#17232ef5;color:#e8edf1;font-size:12px;line-height:1.5;box-shadow:0 5px 22px #0007;pointer-events:none}
.hint-popover{position:fixed;z-index:80;width:330px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;padding:17px 45px 17px 17px;border:1px solid #cfa8e17a;border-radius:13px;background:#232837fa;color:#f1ebf5;box-shadow:0 10px 40px #0009;backdrop-filter:blur(9px)}
.hint-popover .eyebrow{color:#e1bfee;margin:0 0 6px;font-size:10px;letter-spacing:.14em}
.hint-popover p{margin:0;font-size:13px;line-height:1.5}
.hint-close{position:absolute;right:4px;top:4px;min-width:40px;min-height:40px;background:transparent;color:#e8ddef;border-radius:8px;font-size:25px;line-height:1;padding:6px}
.hint-close:hover{background:#ffffff12}
.hint-preview{display:flex;align-items:center;justify-content:center;gap:20px;margin:16px auto}
.hint-preview small{display:block;font-size:10px;margin-bottom:6px;text-align:center}
.hint-preview .demo-tile{width:93px;aspect-ratio:1}
.hint-preview>span{color:var(--muted);font-size:23px}
.dialog-overlay{z-index:100}
.note-input{display:block;width:100%;min-height:47px;border:1px solid #657082;border-radius:9px;background:#111a23;padding:11px;color:var(--text);font-size:16px;margin:8px 0 12px}
.note-presets{display:flex;gap:8px;margin-bottom:13px}
.note-presets button{background:#ffffff09;border:1px solid #68738655;border-radius:7px;padding:7px 12px;min-height:40px;font-size:12px}
.dialog .hint-options{margin-bottom:13px}
.dialog .hint-options .button small{font-size:12px;line-height:1.5;white-space:normal}
@media(max-width:540px){.shell.play-shell{padding:0 12px}.play-shell .site-header{height:46px}.play-shell .play-header{min-height:56px}.play-shell .play-title h1{font-size:23px}.play-shell.completed-view .completion-panel h2{font-size:23px}.play-shell .layer-switch button{min-height:36px}.tile-badge,.tile-badge.link,.counter-badge{top:3px;right:3px;min-width:18px;height:18px;line-height:16px;padding:1px;font-size:12px!important}.counter-badge{left:3px;right:auto}.tile-badge svg{width:13px;height:13px}.tile-badge.link{font-size:14px!important}.note-badge{left:3px;bottom:3px;width:18px;height:18px;font-size:12px}.activity-badge{font-size:9px;bottom:3px;right:3px;min-width:24px;line-height:16px}.caption-note{max-width:110px;font-size:10px}.hint-popover{font-size:12px}.play-shell .utility-controls button{padding:7px 13px}.completion-panel .button{max-width:165px}.play-shell .board-labels{font-size:10px}}
@media(max-width:350px){.shell.play-shell{padding:0 6px}.play-shell .play-title h1{font-size:21px}.play-shell.completed-view .completion-panel h2{font-size:21px}.play-shell.completed-view .completion-panel p{font-size:10px}.play-shell.completed-view .completion-panel .button{font-size:11px;padding:9px 11px}.play-shell .utility-controls button{padding:7px 11px}}
@media(max-height:540px) and (min-width:650px){.shell.play-shell{max-width:1000px}.play-shell .site-header{height:44px}.play-shell .play-header{min-height:50px}.play-shell .board-wrap{max-width:min(100%,var(--board-fit))}.play-shell.completed-view .play-layout{display:grid;grid-template-columns:minmax(285px,1fr) minmax(200px,.6fr);align-items:center;gap:22px}.play-shell.completed-view .completion-panel{flex-direction:column;align-items:flex-start;border:0;margin:0}.play-shell.completed-view .completion-panel .actions{align-items:flex-start}.play-shell.completed-view .completion-panel p{white-space:normal}}

/* Playsible integration */
.header-actions a { text-decoration: none; white-space: nowrap; }
.home-description { color: var(--muted); line-height: 1.7; margin: 0 0 24px; }
.next-rank { display: flex; gap: 16px; align-items: center; color: #9297a4; padding: 20px 28px; border: 1px dashed #353a46; border-radius: 16px; margin: 14px 0 30px; }
.next-rank strong { display: block; font-size: 17px; font-weight: 500; color: #a5aab5; margin-top: 4px; }
.current-thread { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; border-top: 1px solid #343844; }
.current-thread h2 { margin: 8px 0; font-size: 25px; }
.current-thread p { color: #a5aab5; }
.play-timing { display: flex; align-items: center; gap: 20px; }
#elapsed-time { font-variant-numeric: tabular-nums; color: #b8bdc8; }
.result-score { display: flex; align-items: baseline; gap: 12px; margin: 14px 0; }
.result-score strong { color: #eec674; font-size: 40px; }
.result-score span, .score-status { color: #a5aab5; font-size: 13px; }
@media (max-width: 520px) { .header-actions { gap: 6px; } .header-actions .text-button { padding: 8px 6px; font-size: 12px; } .current-thread { align-items: flex-start; flex-direction: column; } .play-timing { gap: 8px; } }
.score-tabs { display: flex; gap: 12px; margin: 16px 0; }
.score-tabs [aria-pressed="true"] { color: #eec674; border-color: #eec674; }
.scores-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.scores-table th, .scores-table td { padding: 12px 8px; text-align: left; border-bottom: 1px solid #343844; }
.scores-table th { color: #a5aab5; font-weight: 500; }
.scores-table td:last-child, .scores-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.personal-score strong { color: #eec674; }
@media (max-width: 430px) { .header-actions .account-link { display: none; } }

/* Navigation shares one tap-target height, including links and icon buttons. */
.brand-group { display: flex; align-items: center; gap: 12px; min-width: 0; }
.playsible-home { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; flex: 0 0 44px; }
.playsible-home:hover { background: #ffffff09; }
.playsible-mark { display: grid; grid-template-columns: repeat(2, 9px); gap: 3px; transform: rotate(-8deg); }
.playsible-mark i { width: 9px; height: 9px; background: #fff; border-radius: 2px; }
.playsible-mark i:nth-child(2) { background: #a99fff; }
.playsible-mark i:nth-child(3) { background: #ce7aff; }
.playsible-mark i:nth-child(4) { background: #7668ed; }
.site-header .header-actions > a, .site-header .header-actions > button { display: inline-flex; align-items: center; justify-content: center; height: 44px; min-height: 44px; padding-top: 0; padding-bottom: 0; line-height: 1; }
.site-header .header-actions > .icon-button { width: 44px; min-width: 44px; padding: 0; }
.expanded-game .shell.play-shell { max-width: 840px; }
.hosted-game:not(.compact-frame):not(.expanded-game) .playsible-home, .hosted-game:not(.compact-frame):not(.expanded-game) .playsible-link, .hosted-game:not(.compact-frame) .account-link { display: none; }
.hosted-game:not(.compact-frame) .header-actions > .expand-button { display: inline-flex!important; }
.hosted-game.compact-frame .header-actions > .expand-button { display: none!important; }
@media (max-width: 760px) { .site-header .header-actions > .expand-button { display: none; } }
@media (max-width: 540px) {
    .playsible-link { display: none!important; }
    .brand-group { gap: 4px; }
    .site-header { gap: 4px; }
    .site-header .brand { gap: 6px; }
    .site-header .brand > span { font-size: 12px; letter-spacing: .1em; }
    .site-header .header-actions { gap: 0; }
}
@media (max-width: 430px) { .site-header .header-actions > .account-link { display: none; } }
