/* Authoritative styles: existing Weaver, game and hub presentation. */
:root:where(:not(.duet-game):not(.duet-hub)) {
  color-scheme: dark;
  --black-void: #050505;
  --black-obsidian: #1a1a1a;
  --white-pure: #ffffff;
  --grey-200: #e0e0e0;
  --text-muted: #858585;
  --grey-700: #333333;
  --amber-light: #d4a853;
  --amber-glow-08: rgba(212,168,83,.08);
  --amber-glow-30: rgba(212,168,83,.3);
  --border-hairline: #292929;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", Menlo, Consolas, monospace;
  --page-width: 900px;
}
:where(html:not(.duet-game):not(.duet-hub)) * { box-sizing: border-box; }
html:where(:not(.duet-game):not(.duet-hub)) { scroll-behavior: smooth; }
:where(html:not(.duet-game):not(.duet-hub)) body { margin: 0; background: var(--black-void); color: var(--grey-200); font: 16px/1.65 var(--font-sans); }
:where(html:not(.duet-game):not(.duet-hub)) a { color: var(--amber-light); text-underline-offset: 3px; }
:where(html:not(.duet-game):not(.duet-hub)) a:focus-visible, :where(html:not(.duet-game):not(.duet-hub)) button:focus-visible { outline: 2px solid var(--amber-light); outline-offset: 4px; }
:where(html:not(.duet-game):not(.duet-hub)) .skip-link { position: absolute; left: -9999px; top: 0; }
:where(html:not(.duet-game):not(.duet-hub)) .skip-link:focus { left: 1rem; top: 1rem; z-index: 10; padding: .75rem; background: #000; }
:where(html:not(.duet-game):not(.duet-hub)) .site-header { border-bottom: 1px solid var(--border-hairline); }
:where(html:not(.duet-game):not(.duet-hub)) .site-nav { max-width: var(--page-width); margin: auto; padding: 14px 20px; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
:where(html:not(.duet-game):not(.duet-hub)) .site-nav a { color: var(--grey-200); text-decoration: none; font: 12px var(--font-mono); letter-spacing: .06em; }
:where(html:not(.duet-game):not(.duet-hub)) .site-nav a:hover { color: var(--amber-light); }
:where(html:not(.duet-game):not(.duet-hub)) .site-brand { font-size: 16px !important; letter-spacing: .18em !important; color: var(--white-pure) !important; margin-right: auto; }
:where(html:not(.duet-game):not(.duet-hub)) .page { max-width: var(--page-width); margin: 0 auto; padding: 38px 20px 52px; }
:where(html:not(.duet-game):not(.duet-hub)) .hero { padding: 20px 0 30px; margin-bottom: 26px; border-bottom: 1px solid var(--border-hairline); }
:where(html:not(.duet-game):not(.duet-hub)) .sigil { display: block; width: 76px; height: 76px; margin: 0 0 20px; }
:where(html:not(.duet-game):not(.duet-hub)) .eyebrow, :where(html:not(.duet-game):not(.duet-hub)) .kicker { margin: 0 0 10px; font: 11px var(--font-mono); letter-spacing: .15em; text-transform: uppercase; color: var(--amber-light); }
:where(html:not(.duet-game):not(.duet-hub)) h1 { margin: 0; color: var(--white-pure); font-size: clamp(2.5rem, 7vw, 4.3rem); font-weight: 300; letter-spacing: -.035em; line-height: 1.08; text-shadow: 0 0 20px var(--amber-glow-30); }
:where(html:not(.duet-game):not(.duet-hub)) h1 span { color: var(--amber-light); }
:where(html:not(.duet-game):not(.duet-hub)) h2 { margin: 0 0 12px; color: var(--white-pure); font-size: clamp(1.45rem, 4vw, 2rem); font-weight: 300; letter-spacing: -.015em; line-height: 1.25; }
:where(html:not(.duet-game):not(.duet-hub)) h3 { margin: 0 0 8px; color: var(--white-pure); font-size: 1rem; font-weight: 400; }
:where(html:not(.duet-game):not(.duet-hub)) .lead { max-width: 70ch; margin: 18px 0; font-size: clamp(1.05rem, 2.4vw, 1.25rem); line-height: 1.7; }
:where(html:not(.duet-game):not(.duet-hub)) .muted { color: var(--text-muted); }
:where(html:not(.duet-game):not(.duet-hub)) .status { display: grid; grid-template-columns: 10px 1fr; gap: 12px; max-width: 780px; margin: 26px 0; padding: 18px; border: 1px solid #8c6d42; border-left: 4px solid var(--amber-light); background: var(--amber-glow-08); }
:where(html:not(.duet-game):not(.duet-hub)) .status-mark { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--amber-light); }
:where(html:not(.duet-game):not(.duet-hub)) .status strong { display: block; font: 700 11px var(--font-mono); letter-spacing: .1em; color: var(--amber-light); }
:where(html:not(.duet-game):not(.duet-hub)) .status p { margin: 8px 0 0; }
:where(html:not(.duet-game):not(.duet-hub)) .section { margin: 38px 0; padding: 26px; border: 1px solid var(--border-hairline); background: linear-gradient(180deg, rgba(212,168,83,.035), transparent); }
:where(html:not(.duet-game):not(.duet-hub)) .grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 18px 0; }
:where(html:not(.duet-game):not(.duet-hub)) .card { padding: 18px; border: 1px solid var(--border-hairline); background: var(--black-obsidian); }
:where(html:not(.duet-game):not(.duet-hub)) .card p { margin: 0; color: var(--text-muted); font-size: 14px; }
:where(html:not(.duet-game):not(.duet-hub)) .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 6px; }
:where(html:not(.duet-game):not(.duet-hub)) .actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; border: 1px solid var(--amber-light); color: var(--grey-200); font: 12px var(--font-mono); text-decoration: none; }
:where(html:not(.duet-game):not(.duet-hub)) .actions a:hover { background: var(--amber-glow-08); color: var(--amber-light); }
:where(html:not(.duet-game):not(.duet-hub)) ul { padding-left: 22px; }
:where(html:not(.duet-game):not(.duet-hub)) li { margin: 8px 0; }
:where(html:not(.duet-game):not(.duet-hub)) footer { border-top: 1px solid var(--border-hairline); padding: 22px 20px 30px; color: var(--text-muted); font: 11px/1.7 var(--font-mono); }
:where(html:not(.duet-game):not(.duet-hub)) .footer-inner { max-width: var(--page-width); margin: auto; }
@media(max-width:620px) { :where(html:not(.duet-game):not(.duet-hub)) .page { padding: 26px 16px 38px; } :where(html:not(.duet-game):not(.duet-hub)) .section { padding: 18px; } :where(html:not(.duet-game):not(.duet-hub)) .grid { grid-template-columns: 1fr; } :where(html:not(.duet-game):not(.duet-hub)) .site-nav { padding-inline: 16px; gap: 12px 16px; } }
@media(prefers-reduced-motion:reduce) { html:where(:not(.duet-game):not(.duet-hub)) { scroll-behavior: auto; } }


/* Weaver: scoped Loptr Lab adaptation. Source of truth: public/style.css. */
html:where(:not(.duet-game):not(.duet-hub)).weaver {
 --surface:#050505; --surface-container:#151515; --surface-raised:#1a1a1a;
 --on-surface:#e0e0e0; --on-surface-variant:#ababab; --outline:#333333;
 --primary:#d4a853; --font-body:"Helvetica Neue",Helvetica,Arial,sans-serif;
 --space-1:.4rem; --space-2:.8rem; --space-3:1.2rem; --space-4:1.6rem;
 --space-5:2.4rem; --space-6:3.2rem;
 font-size:125%; scroll-behavior:smooth; color-scheme:dark;
}
.weaver:where(:not(.duet-game):not(.duet-hub)) body {margin:0;background:var(--surface);color:var(--on-surface);font:1rem/1.65 var(--font-body);}
.weaver:where(:not(.duet-game):not(.duet-hub)) a {color:var(--primary);text-underline-offset:.2em;}
.weaver:where(:not(.duet-game):not(.duet-hub)) :is(a,button):focus-visible {outline:3px solid var(--primary);outline-offset:4px;}
.weaver:where(:not(.duet-game):not(.duet-hub)) .shell {width:min(1140px,calc(100% - 2.4rem));margin-inline:auto;overflow-wrap:anywhere;}
.weaver:where(:not(.duet-game):not(.duet-hub)) header {position:relative;padding-inline-end:6rem;min-height:0;padding:var(--space-6) 0 var(--space-5);}
.weaver:where(:not(.duet-game):not(.duet-hub)) .hero {max-width:48rem;text-align:left;padding:0;margin:0;border:0;}
.weaver:where(:not(.duet-game):not(.duet-hub)) :is(.eyebrow,.label) {color:var(--primary);font:600 1rem/1.5 var(--font-body);letter-spacing:normal;text-transform:none;}
.weaver:where(:not(.duet-game):not(.duet-hub)) .hero h1 {margin:var(--space-3) 0;font:500 clamp(2.5rem,6vw,4rem)/1.1 var(--font-body);letter-spacing:normal;color:var(--on-surface);text-shadow:none;}
.weaver:where(:not(.duet-game):not(.duet-hub)) .subtitle {max-width:60ch;margin:var(--space-3) 0 var(--space-4);font-size:1.2rem;line-height:1.5;color:var(--on-surface);}
.weaver:where(:not(.duet-game):not(.duet-hub)) :is(.door,.link-button,button) {appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:48px;max-width:100%;padding:.6rem 1rem;border:1px solid var(--outline);border-radius:.6rem;background:var(--surface-container);color:var(--on-surface);font:600 1rem/1.5 var(--font-body);letter-spacing:normal;text-transform:none;text-decoration:none;cursor:pointer;white-space:normal;}
.weaver:where(:not(.duet-game):not(.duet-hub)) .door {border-color:var(--primary);margin:0 var(--space-2) var(--space-2) 0;}
.weaver:where(:not(.duet-game):not(.duet-hub)) .door + .door {border-color:var(--outline);}
.weaver:where(:not(.duet-game):not(.duet-hub)) :is(.door,.link-button,button):hover {background:var(--surface-raised);border-color:var(--primary);}
.weaver:where(:not(.duet-game):not(.duet-hub)) :is(.door,.link-button,button):active {box-shadow:inset 0 0 0 1px var(--primary);}
.weaver:where(:not(.duet-game):not(.duet-hub)) .meta {margin-top:var(--space-3);color:var(--on-surface-variant);font:1rem/1.6 var(--font-body);letter-spacing:normal;text-transform:none;}
.weaver:where(:not(.duet-game):not(.duet-hub)) main {padding-bottom:var(--space-4);}
.weaver:where(:not(.duet-game):not(.duet-hub)) section {border-top:1px solid var(--outline);padding:var(--space-5) 0;}
.weaver:where(:not(.duet-game):not(.duet-hub)) .section-head {max-width:72ch;margin-bottom:var(--space-3);}
.weaver:where(:not(.duet-game):not(.duet-hub)) section h2 {margin:var(--space-2) 0 var(--space-3);font:500 clamp(1.6rem,3vw,2rem)/1.25 var(--font-body);letter-spacing:normal;color:var(--on-surface);}
.weaver:where(:not(.duet-game):not(.duet-hub)) section h3 {margin:var(--space-2) 0;font:600 1.2rem/1.4 var(--font-body);color:var(--on-surface);}
.weaver:where(:not(.duet-game):not(.duet-hub)) p {font-size:1rem;line-height:1.65;margin:var(--space-2) 0 var(--space-3);}
.weaver:where(:not(.duet-game):not(.duet-hub)) :is(.section-head p,.card p) {color:var(--on-surface);max-width:72ch;}
.weaver:where(:not(.duet-game):not(.duet-hub)) .grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-3);}
.weaver:where(:not(.duet-game):not(.duet-hub)) .card {min-width:0;padding:var(--space-3);border:1px solid var(--outline);border-radius:.6rem;background:var(--surface-container);}
.weaver:where(:not(.duet-game):not(.duet-hub)) .chain {display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-1);margin-top:var(--space-3);}
.weaver:where(:not(.duet-game):not(.duet-hub)) .node {padding:.5rem .6rem;border:1px solid var(--outline);background:var(--surface-container);color:var(--on-surface);font:1rem/1.5 var(--font-body);}
.weaver:where(:not(.duet-game):not(.duet-hub)) .arrow {color:var(--primary);}
.weaver:where(:not(.duet-game):not(.duet-hub)) .quote {max-width:65ch;margin:var(--space-4) 0;padding:.2rem 0 .2rem var(--space-3);border-left:2px solid var(--primary);font-size:1.2rem;color:var(--on-surface);}
.weaver:where(:not(.duet-game):not(.duet-hub)) .questions {counter-reset:q;list-style:none;padding:0;margin:var(--space-3) 0;}
.weaver:where(:not(.duet-game):not(.duet-hub)) .questions li {counter-increment:q;position:relative;padding:var(--space-2) 0 var(--space-2) 2.4rem;border-bottom:1px solid var(--outline);color:var(--on-surface);}
.weaver:where(:not(.duet-game):not(.duet-hub)) .questions li::before {content:counter(q,decimal-leading-zero);position:absolute;left:0;top:var(--space-2);color:var(--primary);font:1rem/1.5 var(--font-body);}
.weaver:where(:not(.duet-game):not(.duet-hub)) :is(.access,.notice) {margin-top:var(--space-3);padding:var(--space-3);border:1px solid var(--outline);border-radius:.6rem;background:var(--surface-container);color:var(--on-surface);}
.weaver:where(:not(.duet-game):not(.duet-hub)) .notice strong {color:var(--on-surface);}
.weaver:where(:not(.duet-game):not(.duet-hub)) .actions {display:flex;flex-wrap:wrap;gap:var(--space-2);margin-top:var(--space-3);}
.weaver:where(:not(.duet-game):not(.duet-hub)) .status {display:grid;grid-template-columns:minmax(0,1fr);max-width:none;gap:var(--space-1);margin-top:var(--space-3);}
.weaver:where(:not(.duet-game):not(.duet-hub)) .status-row {display:flex;min-width:0;justify-content:space-between;gap:var(--space-3);padding:var(--space-2) 0;border-bottom:1px solid var(--outline);}
.weaver:where(:not(.duet-game):not(.duet-hub)) .status-row span:last-child {color:var(--primary);font:1rem/1.5 var(--font-body);letter-spacing:normal;text-transform:none;}
.weaver:where(:not(.duet-game):not(.duet-hub)) footer {padding:var(--space-4) 0 7rem;color:var(--on-surface-variant);font-size:1rem;}
.weaver:where(:not(.duet-game):not(.duet-hub)) footer nav {display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-3);margin-bottom:var(--space-3);}
.weaver:where(:not(.duet-game):not(.duet-hub)) footer nav a {display:inline-flex;align-items:center;min-height:48px;}
.weaver:where(:not(.duet-game):not(.duet-hub)) .pixie {position:fixed;right:max(1rem,env(safe-area-inset-right));bottom:max(1rem,env(safe-area-inset-bottom));z-index:10;}
.weaver:where(:not(.duet-game):not(.duet-hub)) .pixie>button {border-color:var(--primary);box-shadow:0 4px 16px #0008;}
.weaver:where(:not(.duet-game):not(.duet-hub)) .pixie-panel {overflow-wrap:anywhere;display:none;width:min(26rem,calc(100vw - 2rem));max-height:calc(100dvh - 7rem);overflow:auto;margin-bottom:var(--space-2);padding:var(--space-3);border:1px solid var(--outline);border-radius:.6rem;background:var(--surface-container);box-shadow:0 4px 20px #0008;}
.weaver:where(:not(.duet-game):not(.duet-hub)) .pixie-panel.open {display:block;}
.weaver:where(:not(.duet-game):not(.duet-hub)) .pixie-panel strong {color:var(--primary);font:600 1rem/1.5 var(--font-body);}
.weaver:where(:not(.duet-game):not(.duet-hub)) .pixie-panel p {color:var(--on-surface);font-size:1rem;}
@media(max-width:839px) {
 .weaver:where(:not(.duet-game):not(.duet-hub)) .grid {grid-template-columns:minmax(0,1fr);}
 .weaver:where(:not(.duet-game):not(.duet-hub)) .status-row {flex-direction:column;align-items:flex-start;gap:var(--space-1);}
}
@media(max-width:599px) {
 .weaver:where(:not(.duet-game):not(.duet-hub)) .shell {width:calc(100% - 1.6rem);}
 .weaver:where(:not(.duet-game):not(.duet-hub)) header {padding:var(--space-5) 0;}
 .weaver:where(:not(.duet-game):not(.duet-hub)) .hero h1 {font-size:clamp(2.2rem,10vw,3rem);}
}
@media(prefers-reduced-motion:reduce) {html:where(:not(.duet-game):not(.duet-hub)).weaver {scroll-behavior:auto;}}
/* Private invitation controls inherit the existing Weaver reading roles. */
.weaver:where(:not(.duet-game):not(.duet-hub)) :is(input,select,textarea) {width:100%;max-width:100%;min-width:0;padding:.6rem;border:1px solid var(--on-surface-variant);border-radius:.4rem;background:var(--surface);color:var(--on-surface);font:1rem/1.5 var(--font-body);}
.weaver:where(:not(.duet-game):not(.duet-hub)) :is(input,select,textarea):focus-visible {outline:3px solid var(--primary);outline-offset:4px;}
.weaver:where(:not(.duet-game):not(.duet-hub)) #invitation-content {min-width:0;display:grid;gap:var(--space-2);}
.weaver:where(:not(.duet-game):not(.duet-hub)) #invitation-content pre {white-space:pre-wrap;overflow-wrap:anywhere;font:1rem/1.65 var(--font-body);margin:0;}
.weaver:where(:not(.duet-game):not(.duet-hub)) .companion-icon {width:40px;height:40px;object-fit:contain;margin-right:.5rem;}
.weaver:where(:not(.duet-game):not(.duet-hub)) button:disabled {opacity:.65;cursor:wait;}
.weaver:where(:not(.duet-game):not(.duet-hub)) [hidden] {display:none;}

/* Owner-supplied Weaver mark; distinct from PIXIE's unchanged Companion icon. */
.weaver:where(:not(.duet-game):not(.duet-hub)) .weaver-sigil {position:absolute;inset-block-start:2.4rem;inset-inline-end:0;width:4.8rem;height:4.8rem;color:#d4a853;}
:where(html:not(.duet-game):not(.duet-hub)) .weaver-sigil .ring,:where(html:not(.duet-game):not(.duet-hub)) .weaver-sigil .thread {fill:none;stroke:currentColor;stroke-width:1.4;stroke-linejoin:round;}
:where(html:not(.duet-game):not(.duet-hub)) .weaver-sigil .ring {opacity:.5;}
:where(html:not(.duet-game):not(.duet-hub)) .weaver-sigil .inner {opacity:.65;}
:where(html:not(.duet-game):not(.duet-hub)) .weaver-sigil .core {fill:currentColor;animation:weaver-breathe 7s ease-in-out infinite;}
@keyframes weaver-breathe {0%,100% {opacity:1;}50% {opacity:.5;}}
@media(max-width:700px) {
 .weaver:where(:not(.duet-game):not(.duet-hub)) header {padding-inline-end:0;}
 .weaver:where(:not(.duet-game):not(.duet-hub)) .weaver-sigil {position:static;display:block;margin:0 0 1.6rem auto;width:3.2rem;height:3.2rem;}
}
@media(prefers-reduced-motion:reduce) {:where(html:not(.duet-game):not(.duet-hub)) .weaver-sigil .core {animation:none;opacity:1;}}

/* One shared mark for artistic expression; reuse the owner-supplied Weaver sigil. */
.weaver:where(:not(.duet-game):not(.duet-hub)) .shared-histories{position:relative}
.weaver:where(:not(.duet-game):not(.duet-hub)) .shared-histories>.section-head{padding-inline-end:80px}
.weaver:where(:not(.duet-game):not(.duet-hub)) .shared-histories>.shared-art-symbol{position:absolute;inset-block-start:32px;inset-inline-end:0;width:56px;height:56px;margin:0;transform-origin:center;animation:shared-art-breathe 7s ease-in-out infinite}
@keyframes shared-art-breathe{0%,100%{transform:scale(1);opacity:.8}50%{transform:scale(1.04);opacity:1}}
@media(max-width:700px){.weaver:where(:not(.duet-game):not(.duet-hub)) .shared-histories>.section-head{padding-inline-end:64px}.weaver:where(:not(.duet-game):not(.duet-hub)) .shared-histories>.shared-art-symbol{width:40px;height:40px}}
@media(prefers-reduced-motion:reduce){.weaver:where(:not(.duet-game):not(.duet-hub)) .shared-histories>.shared-art-symbol{animation:none;opacity:1}}

/* Classic game, including local recovery. */

        :root:where(.duet-game) {
            --black-void: #050505;
            --black-obsidian: #1a1a1a;
            --white-pure: #ffffff;
            --grey-200: #e0e0e0;
            --text-muted: #666666;
            --grey-700: #333333;
            --amber-light: #d4a853;
            --amber-glow-08: rgba(212,168,83,0.08);
            --amber-glow-10: rgba(212,168,83,0.10);
            --amber-glow-30: rgba(212,168,83,0.3);
            --border-hairline: #1a1a1a;
            --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
            --font-mono: 'SF Mono', 'Menlo', 'Consolas', monospace;
        }
        :where(html.duet-game) * { box-sizing: border-box; }
        :where(html.duet-game) body {
            font-family: var(--font-sans);
            background: var(--black-void);
            color: var(--grey-200);
            margin: 0;
        }
        :where(html.duet-game) .page {
            max-width: 900px;
            margin: 0 auto;
            padding: 32px 20px 48px;
        }

        :where(html.duet-game) .hero {
            padding-bottom: 20px;
            margin-bottom: 28px;
            border-bottom: 1px solid var(--border-hairline);
        }
        :where(html.duet-game) .hero-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            gap: 16px;
            flex-wrap: wrap;
        }
        :where(html.duet-game) .hero-eyebrow {
            font-size: 12.8px;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: var(--amber-light);
            margin: 0 0 8px 0;
        }
        :where(html.duet-game) .hero h1 {
            font-size: 3rem;
            font-weight: 300;
            letter-spacing: -0.02em;
            color: var(--white-pure);
            text-shadow: 0 0 20px var(--amber-glow-30);
            margin: 0;
        }
        :where(html.duet-game) .hero-meta {
            text-align: right;
            font-size: 12px;
            color: var(--text-muted);
            letter-spacing: 0.1em;
            text-transform: uppercase;
            line-height: 1.8;
        }
        :where(html.duet-game) .hero p.tagline {
            font-size: 15px;
            line-height: 1.55;
            opacity: 0.85;
            max-width: 62ch;
            margin: 20px 0 16px 0;
        }
        :where(html.duet-game) .hero-nav {
            display: flex;
            flex-wrap: wrap;
            gap: 8px 18px;
            font-family: var(--font-mono);
            font-size: 13px;
        }
        :where(html.duet-game) .hero-nav a {
            color: var(--grey-200);
            opacity: 0.75;
            text-decoration: none;
            border-bottom: 1px solid transparent;
        }
        :where(html.duet-game) .hero-nav a:hover {
            opacity: 1;
            border-bottom-color: var(--amber-light);
        }
        :where(html.duet-game) .quickstart {
            background: var(--black-obsidian);
            border-left: 2px solid var(--amber-light);
            padding: 10px 14px;
            font-size: 14px;
            line-height: 1.5;
            margin-top: 16px;
        }
        :where(html.duet-game) .quickstart kbd {
            background: var(--black-void);
            border: 1px solid var(--grey-700);
            padding: 1px 6px;
            font-family: var(--font-mono);
        }


        /* Halloween 2026 release mission control */
        :where(html.duet-game) .release-section{margin:40px 0;border:1px solid var(--border-hairline);padding:28px;background:linear-gradient(180deg,rgba(212,168,83,.07),transparent)}
        :where(html.duet-game) .release-kicker{font:11px var(--font-mono);color:var(--amber-light);letter-spacing:.14em;text-transform:uppercase;margin-bottom:10px}
        :where(html.duet-game) .release-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;flex-wrap:wrap}
        :where(html.duet-game) .release-section h2{color:var(--white-pure);font-size:clamp(1.7rem,4vw,2.6rem);font-weight:300;margin:0 0 8px;letter-spacing:-.02em}
        :where(html.duet-game) .release-date{font:700 clamp(1.2rem,3vw,1.8rem) var(--font-mono);color:var(--white-pure);white-space:nowrap}
        :where(html.duet-game) .release-lead{max-width:70ch;line-height:1.7;color:var(--grey-200);opacity:.9;margin:12px 0 20px}
        :where(html.duet-game) .release-countdown{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:18px 0 24px}
        :where(html.duet-game) .countdown-cell{border:1px solid var(--border-hairline);padding:14px;background:rgba(255,255,255,.015);text-align:center}
        :where(html.duet-game) .countdown-cell strong{display:block;font:300 1.7rem var(--font-mono);color:var(--white-pure)}
        :where(html.duet-game) .countdown-cell span{display:block;margin-top:4px;color:var(--text-muted);font:10px var(--font-mono);text-transform:uppercase;letter-spacing:.1em}
        :where(html.duet-game) .readiness-title{display:flex;justify-content:space-between;gap:12px;font:12px var(--font-mono);text-transform:uppercase;letter-spacing:.1em;color:var(--amber-light)}
        :where(html.duet-game) .readiness-track{height:7px;background:var(--black-obsidian);margin:8px 0 20px;border:1px solid var(--border-hairline)}
        :where(html.duet-game) .readiness-track span{display:block;height:100%;width:0;background:var(--amber-light);transition:width .35s ease}
        :where(html.duet-game) .gate-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
        :where(html.duet-game) .gate{display:grid;grid-template-columns:28px 1fr;gap:10px;border:1px solid var(--border-hairline);padding:12px;background:rgba(255,255,255,.012)}
        :where(html.duet-game) .gate input{margin-top:2px;width:18px;height:18px;accent-color:var(--amber-light)}
        :where(html.duet-game) .gate strong{display:block;color:var(--white-pure);font-size:13px;font-weight:400}
        :where(html.duet-game) .gate small{display:block;color:var(--text-muted);line-height:1.4;margin-top:3px}
        :where(html.duet-game) .release-note{margin-top:18px;padding:13px;border-left:2px solid var(--amber-light);background:var(--black-obsidian);color:var(--text-muted);font-size:12px;line-height:1.6}
        :where(html.duet-game) .broadcast-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:20px;padding-top:18px;border-top:1px solid var(--border-hairline)}
        :where(html.duet-game) .broadcast-status{font:12px var(--font-mono);color:var(--text-muted)}
        @media(max-width:700px){:where(html.duet-game) .release-section{padding:20px}:where(html.duet-game) .release-countdown{grid-template-columns:repeat(2,1fr)}:where(html.duet-game) .gate-list{grid-template-columns:1fr}}


        :where(html.duet-game) .platform-roadmap{margin:40px 0;border:1px solid var(--border-hairline);padding:26px;background:rgba(255,255,255,.012)}
        :where(html.duet-game) .platform-roadmap h2{color:var(--white-pure);font-size:1.8rem;font-weight:300;margin:0 0 8px}:where(html.duet-game) .platform-roadmap h2:before{content:"↗";color:var(--amber-light);margin-right:12px}
        :where(html.duet-game) .platform-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}:where(html.duet-game) .platform-card{border:1px solid var(--border-hairline);padding:16px}:where(html.duet-game) .platform-card h3{font:700 12px var(--font-mono);letter-spacing:.1em;color:var(--amber-light);text-transform:uppercase}:where(html.duet-game) .platform-card p,:where(html.duet-game) .platform-card li{color:var(--text-muted);font-size:12px;line-height:1.6}:where(html.duet-game) .platform-card ol{padding-left:20px;margin:10px 0 0}
        :where(html.duet-game) .portfolio-lane{margin-top:12px;padding:13px;border-left:2px solid var(--amber-light);color:var(--grey-200);font-size:12px;line-height:1.6}:where(html.duet-game) .portfolio-lane strong{color:var(--white-pure)}
        @media(max-width:700px){:where(html.duet-game) .platform-grid{grid-template-columns:1fr}}


        /* Platform launch board */
        :where(html.duet-game) .launch-board{margin:40px 0;border:1px solid var(--amber-light);padding:28px;background:linear-gradient(180deg,rgba(212,168,83,.09),rgba(255,255,255,.01))}
        :where(html.duet-game) .launch-board h2{color:var(--white-pure);font-size:clamp(1.8rem,4vw,2.7rem);font-weight:300;margin:0 0 8px}
        :where(html.duet-game) .launch-kicker{font:11px var(--font-mono);color:var(--amber-light);letter-spacing:.14em;text-transform:uppercase;margin-bottom:10px}
        :where(html.duet-game) .launch-deadline{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin:18px 0;padding:16px;border:1px solid var(--border-hairline);background:var(--black-obsidian)}
        :where(html.duet-game) .launch-deadline strong{font:700 15px var(--font-mono);color:var(--white-pure);letter-spacing:.06em}
        :where(html.duet-game) .launch-deadline span{font:12px var(--font-mono);color:var(--text-muted)}
        :where(html.duet-game) .launch-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:18px 0 22px}
        :where(html.duet-game) .launch-step{border:1px solid var(--border-hairline);padding:14px;min-height:125px;background:rgba(255,255,255,.012)}
        :where(html.duet-game) .launch-step b{display:block;font:700 11px var(--font-mono);color:var(--amber-light);margin-bottom:7px}
        :where(html.duet-game) .launch-step strong{display:block;color:var(--white-pure);font-size:13px;font-weight:400;margin-bottom:5px}
        :where(html.duet-game) .launch-step small{display:block;color:var(--text-muted);font-size:11px;line-height:1.45}
        :where(html.duet-game) .project-board{margin:40px 0;border:1px solid var(--border-hairline);padding:28px;background:rgba(255,255,255,.012)}
        :where(html.duet-game) .project-board h2{color:var(--white-pure);font-size:clamp(1.7rem,4vw,2.4rem);font-weight:300;margin:0 0 8px}
        :where(html.duet-game) .project-board .lead{max-width:70ch;line-height:1.7;color:var(--grey-200);opacity:.9}
        :where(html.duet-game) .project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:20px}
        :where(html.duet-game) .project-card{border:1px solid var(--border-hairline);padding:16px;min-height:205px;display:flex;flex-direction:column;background:var(--black-obsidian)}
        :where(html.duet-game) .project-card.featured{border-color:var(--amber-light)}
        :where(html.duet-game) .project-card .type{font:10px var(--font-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--amber-light);margin-bottom:8px}
        :where(html.duet-game) .project-card h3{font-size:15px;color:var(--white-pure);font-weight:400;margin:0 0 7px}
        :where(html.duet-game) .project-card p{font-size:12px;line-height:1.55;color:var(--text-muted);margin:0 0 12px}
        :where(html.duet-game) .project-card .project-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:auto}
        :where(html.duet-game) .project-card a{border:1px solid var(--border-hairline);padding:7px 9px;color:var(--grey-200);font:10px var(--font-mono);text-decoration:none;text-transform:uppercase;letter-spacing:.05em}
        :where(html.duet-game) .project-card a:hover{border-color:var(--amber-light);color:var(--amber-light)}
        :where(html.duet-game) .choice-note{margin-top:18px;padding:13px;border-left:2px solid var(--amber-light);color:var(--text-muted);font-size:12px;line-height:1.6}
        @media(max-width:850px){:where(html.duet-game) .launch-steps{grid-template-columns:repeat(2,minmax(0,1fr))}:where(html.duet-game) .project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
        @media(max-width:600px){:where(html.duet-game) .launch-board,:where(html.duet-game) .project-board{padding:20px}:where(html.duet-game) .launch-steps,:where(html.duet-game) .project-grid{grid-template-columns:1fr}}


        :where(html.duet-game) .media-atmosphere{margin:40px 0;border:1px solid var(--border-hairline);padding:28px;background:rgba(255,255,255,.012)}
        :where(html.duet-game) .media-atmosphere h2{color:var(--white-pure);font-size:clamp(1.7rem,4vw,2.4rem);font-weight:300;margin:0 0 8px}
        :where(html.duet-game) .media-atmosphere .lead{max-width:72ch;line-height:1.7;color:var(--grey-200);opacity:.9}
        :where(html.duet-game) .media-grid{display:grid;grid-template-columns:1.35fr .65fr;gap:14px;margin-top:20px}
        :where(html.duet-game) .video-frame{aspect-ratio:16/9;width:100%;border:1px solid var(--border-hairline);background:#000}
        :where(html.duet-game) .media-card{border:1px solid var(--border-hairline);padding:18px;background:var(--black-obsidian)}
        :where(html.duet-game) .media-card h3{font-size:14px;color:var(--white-pure);font-weight:400;margin:0 0 7px}
        :where(html.duet-game) .media-card p{font-size:12px;line-height:1.6;color:var(--text-muted);margin:0 0 12px}
        :where(html.duet-game) .media-links{display:flex;gap:8px;flex-wrap:wrap}:where(html.duet-game) .media-links a{border:1px solid var(--border-hairline);padding:8px 10px;color:var(--grey-200);font:10px var(--font-mono);text-decoration:none;text-transform:uppercase}:where(html.duet-game) .media-links a:hover{border-color:var(--amber-light);color:var(--amber-light)}
        :where(html.duet-game) .bridge{margin-top:20px;border:1px solid var(--amber-light);padding:20px;background:rgba(212,168,83,.05)}
        :where(html.duet-game) .bridge h3{font-size:14px;color:var(--amber-light);font-weight:400;margin:0 0 8px}:where(html.duet-game) .bridge-flow{font:11px var(--font-mono);line-height:1.9;color:var(--grey-200);overflow:auto;white-space:nowrap;padding:12px;border:1px solid var(--border-hairline);background:var(--black-obsidian)}
        @media(max-width:750px){:where(html.duet-game) .media-grid{grid-template-columns:1fr}:where(html.duet-game) .media-atmosphere{padding:20px}}

        /* Community ownership / Xbox proof layer */
        :where(html.duet-game) .power-section{margin:40px 0;border:1px solid var(--border-hairline);padding:28px;background:linear-gradient(180deg,rgba(212,168,83,.045),transparent)}
        :where(html.duet-game) .power-section .power-kicker{font:11px var(--font-mono);color:var(--amber-light);letter-spacing:.14em;text-transform:uppercase;margin-bottom:10px}
        :where(html.duet-game) .power-section h2{color:var(--white-pure);font-size:clamp(1.7rem,4vw,2.6rem);font-weight:300;margin:0 0 12px;letter-spacing:-.02em}
        :where(html.duet-game) .power-section .lead{max-width:68ch;line-height:1.7;color:var(--grey-200);opacity:.9}
:where(html.duet-game) .toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
            border-top: 1px solid var(--border-hairline);
            border-bottom: 1px solid var(--border-hairline);
            padding: 16px 0;
            margin-bottom: 32px;
        }
        :where(html.duet-game) .chip-row {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }
        :where(html.duet-game) .chip {
            padding: 10px 20px;
            font-family: var(--font-sans);
            font-size: 12px;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            border: 1px solid var(--border-hairline);
            background: transparent;
            color: var(--text-muted);
            border-radius: 0;
            cursor: pointer;
        }
        :where(html.duet-game) .chip:hover {
            border-color: var(--amber-light);
            color: var(--amber-light);
        }
        :where(html.duet-game) .chip.active {
            border-color: var(--amber-light);
            background: var(--amber-glow-08);
            color: var(--amber-light);
        }
        :where(html.duet-game) .chip.chip-hidden {
            display: none;
        }
        :where(html.duet-game) .turn-meta {
            font-family: var(--font-mono);
            font-size: 15.2px;
            color: var(--text-muted);
            letter-spacing: 0.05em;
        }

        :where(html.duet-game) .board-row {
            display: flex;
            gap: 40px;
            align-items: flex-start;
            flex-wrap: wrap;
            margin-bottom: 32px;
            position: relative;
        }
        :where(html.duet-game) #visual-board {
            display: grid;
            grid-template-columns: repeat(8, 46px);
            grid-template-rows: repeat(8, 46px);
            gap: 0;
            border: 1px solid var(--border-hairline);
            width: fit-content;
            max-width: 100%;
        }
        :where(html.duet-game) .sq {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        @media (max-width: 460px) {
            :where(html.duet-game) #visual-board {
                grid-template-columns: repeat(8, 36px);
                grid-template-rows: repeat(8, 36px);
            }
        }
        :where(html.duet-game) .sq.light { background: #1f1f1f; }
        :where(html.duet-game) .sq.dark { background: #141414; }
        :where(html.duet-game) .sq.ruin {
            background: var(--amber-glow-10);
            animation: ruin-breathe var(--ruin-duration, 3.2s) ease-in-out infinite;
        }
        :where(html.duet-game) .sq.sanctuary {
            background: rgba(102,102,102,0.10);
            animation: sanctuary-breathe var(--sanctuary-duration, 4.5s) ease-in-out infinite;
        }
        @keyframes ruin-breathe {
            0%, 100% { background-color: var(--amber-glow-10); }
            50% { background-color: rgba(212,168,83, var(--ruin-peak, 0.18)); }
        }
        @keyframes sanctuary-breathe {
            0%, 100% { background-color: rgba(102,102,102,0.10); }
            50% { background-color: rgba(102,102,102, var(--sanctuary-peak, 0.14)); }
        }
        @media (prefers-reduced-motion: reduce) {
            :where(html.duet-game) .sq.ruin { animation: none; background: var(--amber-glow-10); }
            :where(html.duet-game) .sq.sanctuary { animation: none; background: rgba(102,102,102,0.10); }
        }
        :where(html.duet-game) .sq.selected { box-shadow: inset 0 0 0 1px var(--text-muted); }
        :where(html.duet-game) .sq.veiled::before {
            content: "";
            position: absolute;
            inset: 0;
            background-image: repeating-linear-gradient(
                45deg,
                rgba(224,224,224,0.08) 0px,
                rgba(224,224,224,0.08) 2px,
                transparent 2px,
                transparent 10px
            );
            pointer-events: none;
        }
        :where(html.duet-game) .sq.elev-0 { border-bottom: 0px solid var(--amber-glow-10); }
        :where(html.duet-game) .sq.elev-1 { border-bottom: 3px solid var(--amber-glow-10); }
        :where(html.duet-game) .sq.elev-2 { border-bottom: 6px solid var(--amber-glow-10); }
        :where(html.duet-game) .sq.elev-3 { border-bottom: 9px solid var(--amber-glow-10); }

        :where(html.duet-game) .sq.fog-unexplored {
            background: #000000 !important;
            border-bottom-color: transparent !important;
        }
        :where(html.duet-game) .sq.fog-stale {
            filter: grayscale(60%) brightness(0.55);
        }
        :where(html.duet-game) .sq.fog-stale::after {
            content: "";
            position: absolute;
            inset: 0;
            background: repeating-linear-gradient(
                135deg,
                rgba(0,0,0,0.35) 0px,
                rgba(0,0,0,0.35) 3px,
                transparent 3px,
                transparent 7px
            );
            pointer-events: none;
        }

        :where(html.duet-game) .piece-token {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: 2px solid var(--border-hairline);
            background: var(--black-obsidian);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            color: var(--grey-200);
            opacity: 0.92;
            position: relative;
        }
        :where(html.duet-game) .piece-token.special { width: 36px; height: 36px; font-size: 16px; }
        :where(html.duet-game) .piece-token.owner-w { border-color: var(--amber-light); }
        :where(html.duet-game) .piece-token.owner-b { border-color: var(--text-muted); }
        :where(html.duet-game) .legal-dot {
            position: absolute;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--amber-light);
            opacity: 0.7;
        }
        :where(html.duet-game) .hp-badge {
            position: absolute;
            bottom: -14px;
            left: 50%;
            transform: translateX(-50%);
            font-family: var(--font-mono);
            font-size: 9px;
            color: var(--text-muted);
            white-space: nowrap;
        }

        :where(html.duet-game) .sidebar {
            flex: 1;
            min-width: 240px;
            display: flex;
            flex-direction: column;
            gap: 28px;
        }
        :where(html.duet-game) .panel {
            background: transparent;
            border: 1px solid var(--border-hairline);
            padding: 20px;
            margin: 0;
            max-width: 640px;
        }
        :where(html.duet-game) .panel-eyebrow {
            font-size: 12.8px;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: var(--amber-light);
            margin: 0 0 14px 0;
            font-weight: 400;
        }
        :where(html.duet-game) .history-log {
            max-height: 200px;
            overflow-y: auto;
            margin: 0;
            padding-left: 1.2em;
            font-family: var(--font-mono);
            font-size: 13px;
            line-height: 1.6;
            color: var(--grey-200);
        }
        :where(html.duet-game) .history-log li { margin: 2px 0; }

        :where(html.duet-game) .legend-key {
            font-size: 15.2px;
            line-height: 2;
            color: var(--text-muted);
        }
        :where(html.duet-game) .legend-key .swatch {
            display: inline-block;
            width: 10px;
            height: 10px;
            margin-right: 10px;
        }
        :where(html.duet-game) .ruin-swatch { background: var(--amber-glow-30); border: 1px solid var(--amber-light); }
        :where(html.duet-game) .sanctuary-swatch { border: 1px solid var(--text-muted); background: rgba(102,102,102,0.10); }
        :where(html.duet-game) .selected-swatch { border: 1px solid var(--text-muted); }
        :where(html.duet-game) .legal-swatch { border-radius: 50%; background: var(--amber-light); opacity: 0.7; }

        :where(html.duet-game) .help-body {
            font-size: 15.2px;
            color: var(--grey-200);
            line-height: 1.8;
        }
        :where(html.duet-game) .mono-accent {
            font-family: var(--font-mono);
            color: var(--white-pure);
        }

        :where(html.duet-game) .controls { margin-bottom: 20px; }
        :where(html.duet-game) .command-bar {
            display: flex;
            gap: 16px;
            align-items: center;
            flex-wrap: wrap;
        }
        :where(html.duet-game) .command-bar-field {
            flex: 1;
            min-width: 220px;
            display: flex;
            align-items: center;
            gap: 8px;
            border: 1px solid var(--border-hairline);
            padding: 12px 16px;
            font-family: var(--font-mono);
            font-size: 15.2px;
            color: var(--text-muted);
        }
        :where(html.duet-game) .command-bar-field input {
            flex: 1;
            background: transparent;
            border: none;
            color: var(--white-pure);
            font-family: var(--font-mono);
            font-size: 15.2px;
            outline: none;
            padding: 0;
        }
        :where(html.duet-game) .btn-primary {
            border: 1px solid var(--amber-light);
            background: transparent;
            color: var(--amber-light);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-size: 12px;
            font-family: var(--font-sans);
            padding: 13px 28px;
            cursor: pointer;
            border-radius: 0;
        }
        :where(html.duet-game) .btn-primary:hover { background: var(--amber-glow-08); }
        :where(html.duet-game) .btn-primary:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }
        :where(html.duet-game) .btn-primary[aria-pressed="true"] {
            background: var(--amber-glow-08);
            box-shadow: 0 0 0 1px var(--amber-light) inset;
        }

        :where(html.duet-game) #legend {
            font-family: var(--font-mono);
            font-size: 13px;
            color: var(--text-muted);
            margin: 6px 0 14px 0;
        }
        :where(html.duet-game) #legend kbd {
            background: var(--black-obsidian);
            border: 1px solid var(--grey-700);
            padding: 1px 6px;
            font-family: inherit;
        }

        :where(html.duet-game) #log {
            white-space: pre-wrap;
            background: var(--black-obsidian);
            color: var(--grey-200);
            padding: 14px;
            border: 1px solid var(--border-hairline);
            border-radius: 0;
            max-height: 200px;
            overflow-y: auto;
            font-family: var(--font-mono);
            font-size: 13px;
        }

        :where(html.duet-game) .panel h2 {
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            border-left: 2px solid var(--amber-light);
            padding-left: 8px;
            margin: 0 0 10px 0;
            font-weight: 400;
        }
        :where(html.duet-game) .panel h3 {
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--amber-light);
            margin: 14px 0 4px 0;
            font-weight: 400;
        }
        :where(html.duet-game) .panel p { font-size: 14px; line-height: 1.5; margin: 4px 0; }
        :where(html.duet-game) .support-option {
            padding-top: 12px;
            margin-top: 12px;
            border-top: 1px solid var(--border-hairline);
        }
        :where(html.duet-game) .support-option:first-of-type { border-top: none; margin-top: 4px; padding-top: 4px; }

        :where(html.duet-game) .key-row {
            display: flex;
            gap: 16px;
            margin: 24px 0;
            flex-wrap: wrap;
        }
        :where(html.duet-game) .key-panel {
            flex: 1;
            min-width: 200px;
            display: flex;
            align-items: center;
            gap: 16px;
        }
        :where(html.duet-game) .key-token {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--black-obsidian);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }
        :where(html.duet-game) .rebirth-token { border: 2px solid var(--amber-light); }
        :where(html.duet-game) .death-token { border: 2px solid var(--text-muted); }
        :where(html.duet-game) .key-label {
            text-transform: uppercase;
            letter-spacing: 0.1em;
            font-size: 15.2px;
            color: var(--grey-200);
        }

        :where(html.duet-game) input, :where(html.duet-game) button, :where(html.duet-game) select {
            font-size: 16px;
            padding: 5px;
            background: var(--black-obsidian);
            color: var(--grey-200);
            border: 1px solid var(--black-obsidian);
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
        }
        :where(html.duet-game) button, :where(html.duet-game) select { cursor: pointer; }

        :where(html.duet-game) .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        :where(html.duet-game) .pass-overlay {
            position: absolute;
            inset: 0;
            background: var(--black-void);
            border: 1px solid var(--border-hairline);
            z-index: 10;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 20px;
            padding: 32px;
            text-align: center;
        }
        :where(html.duet-game) .pass-overlay.hidden { display: none; }
        :where(html.duet-game) .pass-overlay p {
            font-size: 15px;
            color: var(--text-muted);
            max-width: 40ch;
            margin: 0;
        }
        :where(html.duet-game) .pass-overlay .turn-name {
            font-size: 1.75rem;
            font-weight: 300;
            color: var(--white-pure);
        }

        @media (max-width: 700px) {
            :where(html.duet-game) .board-row { flex-direction: column; }
            :where(html.duet-game) .sidebar { min-width: 0; width: 100%; }
        }

        /* Obsidian Realm splash — same breathing technique as the Mortis Pulsr page:
           a slow ease-in-out opacity pulse on an accent bar and on the sigil's core
           paths, with prefers-reduced-motion respected throughout. */
        :where(html.duet-game) .realm-splash {
            position: relative;
            padding: 3rem 1.75rem 3rem 2.25rem;
            margin-bottom: 40px;
            background: var(--black-void);
            border: 1px solid var(--border-hairline);
            overflow: hidden;
        }
        :where(html.duet-game) .realm-splash .crack {
            position: absolute;
            top: 0; left: 0; bottom: 0;
            width: 3px;
            background: linear-gradient(180deg, var(--amber-light), var(--text-muted) 55%, var(--amber-light));
            animation: realm-pulse 7s ease-in-out infinite;
        }
        @keyframes realm-pulse {
            0%, 100% { opacity: 0.45; }
            50% { opacity: 1; }
        }
        @media (prefers-reduced-motion: reduce) {
            :where(html.duet-game) .realm-splash .crack { animation: none; opacity: 0.8; }
        }
        :where(html.duet-game) .realm-splash .sigil {
            position: absolute;
            top: 1.5rem;
            right: 1.75rem;
            width: 96px;
            height: auto;
        }
        :where(html.duet-game) .realm-splash .sigil .ep {
            animation: realm-eye-pulse 7s ease-in-out infinite;
        }
        @keyframes realm-eye-pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        @media (prefers-reduced-motion: reduce) {
            :where(html.duet-game) .realm-splash .sigil .ep { animation: none; }
        }
        :where(html.duet-game) .realm-splash .signal {
            font-family: var(--font-mono);
            font-size: 12px;
            letter-spacing: 0.08em;
            color: var(--text-muted);
            text-transform: lowercase;
            margin: 0 0 16px 0;
        }
        :where(html.duet-game) .realm-splash h2 {
            font-family: var(--font-sans);
            font-weight: 300;
            font-size: clamp(1.6rem, 4vw, 2.4rem);
            line-height: 1.3;
            letter-spacing: -0.01em;
            color: var(--white-pure);
            margin: 0 0 16px 0;
            max-width: 20ch;
        }
        :where(html.duet-game) .realm-splash .body {
            font-size: 15px;
            color: var(--grey-200);
            opacity: 0.85;
            max-width: 46ch;
            line-height: 1.6;
            margin: 0 0 28px 0;
        }
        :where(html.duet-game) #front-page {
            min-height: calc(100vh - 64px);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        :where(html.duet-game) #front-page .realm-splash {
            width: 100%;
        }

        /* Splash artwork and actions use the existing obsidian/amber identity.
           The owner-supplied red in the illustration stays an image accent. */
        :where(html.duet-game) #realm-intro {
            display: grid;
            grid-template-columns: minmax(0, 1.1fr) minmax(230px, .9fr);
            grid-template-areas: "copy sigil" "copy art" "status art" "actions art";
            align-items: center;
            column-gap: clamp(24px, 4vw, 48px);
            row-gap: 8px;
            padding: clamp(24px, 4vw, 42px);
            border: 0;
            background: transparent;
        }
        :where(html.duet-game) #realm-intro .realm-copy { grid-area: copy; min-width: 0; }
        :where(html.duet-game) #realm-intro .signal { margin-bottom: 16px; }
        :where(html.duet-game) #realm-intro h1 {
            margin: 0 0 16px;
            padding-right: 0;
            max-width: 16ch;
            color: var(--white-pure);
            font: 300 clamp(1.6rem, 4vw, 2.4rem)/1.3 var(--font-sans);
            letter-spacing: -.01em;
            text-shadow: none;
        }
        :where(html.duet-game) #realm-intro .body { max-width: 54ch; margin-bottom: 12px; }
        :where(html.duet-game) #realm-intro .realm-art {
            grid-area: art;
            min-width: 0;
            width: 100%;
            margin: 0;
            align-self: stretch;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        :where(html.duet-game) #realm-intro .realm-art-frame {
            position: relative;
            width: 100%;
            overflow: visible;
            background: transparent;
        }
        :where(html.duet-game) #realm-intro .realm-art-frame img {
            display: block;
            width: 100%;
            height: auto;
            max-width: 100%;
            object-fit: contain;
        }
        :where(html.duet-game) #realm-intro .realm-art figcaption {
            display: grid;
            justify-items: center;
            gap: 2px;
            padding: 12px 4px 0;
            color: #f1dcc7;
            font: 600 var(--duet-reading-size)/1.5 Georgia, "Times New Roman", serif;
            text-align: center;
        }
        :where(html.duet-game) #realm-intro .realm-art figcaption em {
            color: #ef8b91;
            font: italic 600 clamp(1.5rem, 2.6vw, 2.1rem)/1.12 cursive;
        }
        :where(html.duet-game) #realm-intro .current-state-banner { grid-area: status; max-width:none; width:100%; margin:12px 0; padding:12px 0; border:0; background:transparent; }
        :where(html.duet-game) #realm-intro .realm-actions {
            grid-area: actions;
            display: flex;
            flex-wrap: wrap;
            align-items: stretch;
            gap: 10px;
            min-width: 0;
            margin-top: 4px;
        }
        :where(html.duet-game) #realm-intro .realm-actions > .btn-primary {
            display: flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
            min-height: 48px;
            max-width: 100%;
            margin: 0;
            padding: 12px 16px;
            border: 1px solid #777;
            color: var(--grey-200);
            background: transparent;
            font: 400 var(--duet-reading-size)/1.5 var(--font-sans);
            letter-spacing: normal;
            text-transform: none;
            text-align: center;
            text-decoration: none;
            white-space: normal;
            overflow-wrap: anywhere;
        }
        :where(html.duet-game) #realm-intro .realm-actions > .btn-primary:first-child {
            border-color: var(--amber-light);
            color: var(--amber-light);
        }
        :where(html.duet-game) #realm-intro .realm-actions > .btn-primary:hover {
            color: var(--amber-light);
            border-color: var(--amber-light);
        }
        :where(html.duet-game) .sign-in-page { max-width: 760px; padding-top: clamp(28px, 6vw, 64px); }
        :where(html.duet-game) .sign-in-page h1 { margin: 24px 0 18px; font-size: clamp(2rem, 6vw, 3.2rem); }
        :where(html.duet-game) .sign-in-page p { max-width: 68ch; line-height: 1.7; }
        :where(html.duet-game) .signin-form { max-width: 620px; margin: 24px 0; padding: 20px; border: 1px solid #665333; background: rgba(212,168,83,.055); }
        :where(html.duet-game) .signin-form label { display: block; margin-bottom: 8px; color: var(--amber-light); }
        :where(html.duet-game) .signin-form input { display: block; width: 100%; min-height: 48px; margin-bottom: 16px; padding: 10px 12px; border: 1px solid #777; background: #111; color: var(--white-pure); font: 1rem/1.5 var(--font-sans); }
        :where(html.duet-game) .signin-form button { min-height: 48px; }
        :where(html.duet-game) .signin-boundary { padding: 14px 16px; border-left: 3px solid var(--amber-light); background: var(--amber-glow-08); }
        @media (max-width: 760px) {
            :where(html.duet-game) #realm-intro { grid-template-columns: minmax(0,1fr); grid-template-areas: "sigil" "copy" "art" "status" "actions"; }
            :where(html.duet-game) #realm-intro .realm-art { width: min(100%, 390px); justify-self: center; margin: 6px 0 12px; }
        }
        @media (max-width: 600px) {
            :where(html.duet-game) #realm-intro { padding: 24px; }
            :where(html.duet-game) #realm-intro .realm-actions { display: grid; grid-template-columns: minmax(0,1fr); }
            :where(html.duet-game) #realm-intro .realm-actions > .btn-primary { width: 100%; }
            :where(html.duet-game) #realm-intro .realm-art { width: min(100%, 320px); }
        }

        /* Loptr Lab / ibloud property sigils — see DESIGN_BIBLE.md. Same
           nested-line grammar and breathing rhythm as the sigil above. */
        :where(html.duet-game) .hero-meta-row {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
            text-decoration: none;
            color: inherit;
        }
        :where(html.duet-game) .hero-meta-row:hover .hero-meta {
            color: var(--amber-light);
        }
        :where(html.duet-game) .footer-mark-row {
            display: inline-flex;
            align-items: center;
            margin-right: 10px;
            vertical-align: middle;
        }
        :where(html.duet-game) .mark-icon {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
        }
        :where(html.duet-game) .sigil-loptr-lab .ring,
        :where(html.duet-game) .sigil-ibloud .ring {
            fill: none;
            stroke: var(--border-hairline);
            stroke-width: 1.5;
        }
        :where(html.duet-game) .sigil-loptr-lab .spoke,
        :where(html.duet-game) .sigil-loptr-lab .node,
        :where(html.duet-game) .sigil-loptr-lab .frame {
            fill: none;
            stroke: var(--text-muted);
            stroke-width: 1.5;
            stroke-linejoin: round;
        }
        :where(html.duet-game) .sigil-loptr-lab .core,
        :where(html.duet-game) .sigil-ibloud .core {
            fill: var(--amber-light);
            animation: sigil-breathe 7s ease-in-out infinite;
        }
        :where(html.duet-game) .sigil-ibloud .diamond-outer {
            fill: none;
            stroke: var(--border-hairline);
            stroke-width: 1.5;
        }
        :where(html.duet-game) .sigil-ibloud .diamond-mid,
        :where(html.duet-game) .sigil-ibloud .diamond-inner {
            fill: none;
            stroke: var(--text-muted);
            stroke-width: 1.5;
        }
        :where(html.duet-game) .sigil-ibloud .fracture {
            fill: none;
            stroke: var(--amber-light);
            stroke-width: 1.25;
            stroke-linejoin: round;
            opacity: 0.85;
        }
        :where(html.duet-game) .sigil-ibloud .signal {
            stroke: var(--text-muted);
            stroke-width: 1.25;
        }
        :where(html.duet-game) .sigil-ibloud .signal.broken {
            stroke-dasharray: 2 2;
        }
        @keyframes sigil-breathe {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        @media (prefers-reduced-motion: reduce) {
            :where(html.duet-game) .sigil-loptr-lab .core,
            :where(html.duet-game) .sigil-ibloud .core { animation: none; }
        }

        /* Collapsible secondary-content disclosures (Need Help / Lore / Ways
           to Support) — native <details>/<summary>, collapsed by default.
           Summary styled to match the existing .panel h2 treatment so it
           reads the same as the rest of the design system. */
        :where(html.duet-game) details.panel { padding: 0; }
        :where(html.duet-game) details.panel > summary {
            display: block;
            cursor: pointer;
            padding: 20px;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            border-left: 2px solid var(--amber-light);
            font-weight: 400;
            color: var(--grey-200);
            list-style: revert;
        }
        :where(html.duet-game) details.panel > summary:hover { color: var(--amber-light); }
        :where(html.duet-game) details.panel[open] > summary {
            border-bottom: 1px solid var(--border-hairline);
            margin-bottom: 0;
        }
        :where(html.duet-game) details.panel > .details-body {
            padding: 20px;
        }
        :where(html.duet-game) .feedback-panel { margin-top: 24px; }
        :where(html.duet-game) .feedback-panel fieldset { border: 0; padding: 0; margin: 16px 0; }
        :where(html.duet-game) .feedback-panel legend, :where(html.duet-game) .feedback-panel label { display: block; margin-bottom: 8px; }
        :where(html.duet-game) .feedback-panel select, :where(html.duet-game) .feedback-panel textarea {
            width: 100%;
            max-width: 42rem;
            background: var(--black-soft);
            color: var(--grey-200);
            border: 1px solid var(--border-hairline);
            padding: 10px;
        }
        :where(html.duet-game) .feedback-panel textarea { min-height: 6rem; resize: vertical; }
        :where(html.duet-game) .feedback-consent { display: flex !important; gap: 10px; align-items: flex-start; }
        :where(html.duet-game) .feedback-consent input { margin-top: 4px; }

        /* Shared navigation and a contained, readable project area. */
        :where(html.duet-game) [hidden] { display:none !important; }
        :root:where(.duet-game) { --text-muted:#aaa; }
        :where(html.duet-game) .site-header { position:sticky; top:0; z-index:20; background:var(--black-void); border-bottom:1px solid #333; }
        :where(html.duet-game) .site-nav { max-width:1100px; margin:auto; padding:10px 20px; display:flex; flex-wrap:wrap; gap:4px 12px; }
        :where(html.duet-game) .site-nav a { color:var(--grey-200); text-decoration:none; padding:12px 8px; min-height:44px; font-size:14px; }
        :where(html.duet-game) .site-nav a[aria-current] { color:var(--amber-light); text-decoration:underline; text-underline-offset:6px; }
        :where(html.duet-game) .site-brand { font-weight:700; margin-right:auto; }
        :where(html.duet-game) .skip-link { position:fixed; top:-100px; left:12px; z-index:30; background:var(--black-obsidian); color:white; padding:14px; }
        :where(html.duet-game) .skip-link:focus { top:8px; }
        :where(html.duet-game) a:focus-visible,:where(html.duet-game) button:focus-visible,:where(html.duet-game) input:focus-visible,:where(html.duet-game) summary:focus-visible { outline:3px solid var(--amber-light); outline-offset:4px; }
        :where(html.duet-game) .project-info { max-width:1100px; }
        :where(html.duet-game) .project-info section { margin:0 0 24px; scroll-margin-top:130px; }
        :where(html.duet-game) .project-info h2 { font-size:clamp(1.5rem,3vw,2rem); line-height:1.25; }
        :where(html.duet-game) .project-info p,:where(html.duet-game) .project-info li,:where(html.duet-game) .project-info small { font-size:15px; line-height:1.65; }
        :where(html.duet-game) .project-info .project-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); }
        :where(html.duet-game) .project-info .launch-steps { grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr)); }
        :where(html.duet-game) .project-info .media-grid { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
        :where(html.duet-game) .project-info .project-card { min-height:0; }
        :where(html.duet-game) .project-info .media-links a,:where(html.duet-game) .project-info .project-actions a { font-size:12px; padding:12px; min-height:44px; }
        :where(html.duet-game) .bridge-flow { white-space:normal; overflow-wrap:anywhere; line-height:1.8; }
        :where(html.duet-game) .video-link-panel { padding:22px; border:1px solid #333; background:var(--black-obsidian); }
        :where(html.duet-game) .video-link-panel h3 { margin:0; color:white; }
        :where(html.duet-game) .video-link-panel a { display:inline-block; text-decoration:none; }
        :where(html.duet-game) #front-page,:where(html.duet-game) #game-screen,:where(html.duet-game) #remote-game-screen { scroll-margin-top:130px; }
        @media(max-width:700px) { :where(html.duet-game) .site-nav { padding:6px 12px; gap:0 4px; } :where(html.duet-game) .site-brand { flex-basis:100%; } :where(html.duet-game) .project-info .media-grid,:where(html.duet-game) .project-info .platform-grid { grid-template-columns:1fr; } :where(html.duet-game) .project-info section { padding:18px; scroll-margin-top:190px; } :where(html.duet-game) #front-page,:where(html.duet-game) #game-screen,:where(html.duet-game) #remote-game-screen { scroll-margin-top:190px; } }

        /* Splash: one play entry, with project navigation kept in the shared header. */
        :where(html.duet-game) .site-nav { max-width:900px; }
        :where(html.duet-game) #front-page { min-height:0; display:block; padding-top:48px; padding-bottom:48px; }
        :where(html.duet-game) #realm-intro { margin:0; padding:40px; }
        :where(html.duet-game) #realm-intro .sigil { grid-area:sigil; position:relative; inset:auto; width:80px; justify-self:end; align-self:start; }
        :where(html.duet-game) #realm-intro .signal { margin-bottom:18px; font-size:var(--duet-reading-size); }
        :where(html.duet-game) #realm-intro h2 { max-width:none; padding-right:100px; margin-bottom:20px; }
        :where(html.duet-game) #realm-intro .body { max-width:54ch; margin-bottom:28px; opacity:1; }
        @media(max-width:600px) {
            :where(html.duet-game) #front-page { padding-top:24px; padding-bottom:24px; }
            :where(html.duet-game) #realm-intro { padding:24px; }
            :where(html.duet-game) #realm-intro .sigil { width:56px; }
        }
     :where(html.duet-game) .nav-more{position:relative}:where(html.duet-game) .nav-more summary{cursor:pointer;padding:12px 8px;min-height:44px}:where(html.duet-game) .nav-more>div{position:absolute;right:0;top:100%;z-index:100;background:var(--bg-deep,#111);border:1px solid var(--border-hairline,#555);min-width:220px;padding:8px;display:grid}:where(html.duet-game) .nav-more a{display:block}:where(html.duet-game) .nav-more summary:focus-visible{outline:2px solid var(--amber-light);outline-offset:2px}
@media(max-width:700px){:where(html.duet-game) .power-section{padding:20px}}

        /* Current outage / transparent project status */
        :where(html.duet-game) .current-state-banner{max-width:760px;margin:20px auto;padding:16px 18px;border:1px solid #d4a853;border-left:4px solid #d4a853;background:rgba(212,168,83,.07);text-align:left}
        :where(html.duet-game) .current-state-banner>strong,:where(html.duet-game) .state-label{font:700 11px var(--font-mono);letter-spacing:.12em;color:var(--amber-light)}
        :where(html.duet-game) .current-state-banner p{margin:8px 0 0;font-size:13px;line-height:1.65;color:var(--grey-200)}
        :where(html.duet-game) .current-state-section{border-color:#8c6d42}
        :where(html.duet-game) .state-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0}
        :where(html.duet-game) .state-card{border:1px solid var(--border-hairline);padding:16px;background:var(--black-obsidian)}
        :where(html.duet-game) .state-card h3{margin:8px 0;color:var(--white-pure);font-size:15px;font-weight:400}
        :where(html.duet-game) .state-card p,:where(html.duet-game) .state-list li{font-size:13px;line-height:1.65;color:var(--text-muted)}
        :where(html.duet-game) .state-card p{margin:8px 0}
        :where(html.duet-game) .state-card a,:where(html.duet-game) .state-list a{color:var(--amber-light);text-underline-offset:3px}
        :where(html.duet-game) .state-subheading{margin:24px 0 8px;color:var(--white-pure);font-weight:400}
        :where(html.duet-game) .state-list{padding-left:22px}
        :where(html.duet-game) .state-list li{margin:7px 0}
        :where(html.duet-game) .contributor-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
        @media(max-width:800px){:where(html.duet-game) .contributor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
        @media(max-width:600px){:where(html.duet-game) .state-grid,:where(html.duet-game) .contributor-grid{grid-template-columns:1fr}:where(html.duet-game) .current-state-banner{padding:13px}}

    :where(html.duet-game) .sigil-entry{cursor:pointer !important;}
:where(html.duet-game) .lobby-actions{display:flex !important; gap: 12px !important; flex-wrap: wrap !important; margin-bottom: 20px !important;}
:where(html.duet-game) .lobby-join{display:flex !important; gap: 12px !important; align-items: center !important; flex-wrap: wrap !important;}
:where(html.duet-game) .lobby-code-field{min-width:0;flex:0 1 220px;max-width:100% !important;box-sizing:border-box;}
:where(html.duet-game) .lobby-code-input{text-transform:uppercase !important;min-width:0;width:100%;box-sizing:border-box;}
:where(html.duet-game) .lobby-status{margin-top:16px !important;}
:where(html.duet-game) .lobby-back{margin-top:20px !important; border-color: var(--text-muted) !important; color: var(--text-muted) !important;}
:where(html.duet-game) .muted-action{border-color: var(--text-muted) !important; color: var(--text-muted) !important;}
:where(html.duet-game) .fog-details{ margin-top:8px !important; padding-top:8px !important; border-top:1px solid var(--border-hairline) !important;}
:where(html.duet-game) .amber-copy{color:var(--amber-light) !important;}
:where(html.duet-game) .mono-copy{font-family:var(--font-mono) !important; font-size:13px !important;}
:where(html.duet-game) .engine-footer{margin-top: 36px !important; padding-top: 16px !important; border-top: 1px solid var(--border-hairline) !important; font-size: 13px !important; opacity: 0.6 !important;}
:where(html.duet-game) .engine-link{color: var(--grey-200) !important;}
:where(html.duet-game) .engine-link{color:var(--grey-200) !important}
:where(html.duet-game) .bridge-copy{margin-top:12px !important}
:where(html.duet-game) .platform-note{margin-top:10px !important}
:where(html.duet-game) [hidden]{display:none!important}
:where(html.duet-game) #remote-board{display:grid;grid-template-columns:repeat(8,46px);grid-template-rows:repeat(8,46px);border:1px solid var(--border-hairline);width:fit-content}

/* Break This Build navigation hub. */

:root:where(.duet-hub){color-scheme:dark;--bg:#0d0f12;--panel:#15191e;--text:#f2f4f7;--muted:#aab2bd;--line:#303740;--accent:#d8ff4f}
:where(html.duet-hub) *{box-sizing:border-box}:where(html.duet-hub) body{margin:0;background:var(--bg);color:var(--text);font:18px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
:where(html.duet-hub) main{max-width:920px;margin:0 auto;padding:48px 24px 96px}:where(html.duet-hub) h1{font-size:clamp(48px,9vw,86px);line-height:.95;margin:0 0 24px;letter-spacing:-.04em}
:where(html.duet-hub) h2{font-size:26px;margin:48px 0 12px}:where(html.duet-hub) p{max-width:720px}:where(html.duet-hub) a{color:var(--accent)}:where(html.duet-hub) .lede{font-size:25px;line-height:1.35;color:var(--muted);max-width:720px}
:where(html.duet-hub) .callout{border:1px solid var(--line);background:var(--panel);padding:24px;margin:32px 0;border-radius:10px}
:where(html.duet-hub) pre{overflow:auto;background:#090b0d;border:1px solid var(--line);padding:20px;border-radius:8px;font-size:16px}
:where(html.duet-hub) ul{padding-left:24px}:where(html.duet-hub) .state{font-weight:700;letter-spacing:.02em}:where(html.duet-hub) .ask{font-size:24px;font-weight:650}
:where(html.duet-hub) small{color:var(--muted)}
:where(html.duet-hub) .video-wrap{position:relative;padding-bottom:56.25%;height:0;overflow:hidden;margin:32px 0;border-radius:10px}
:where(html.duet-hub) .video-wrap iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}
:where(html.duet-hub) .paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:30px 0}:where(html.duet-hub) .path{border:1px solid var(--line);background:var(--panel);border-radius:10px;padding:24px}:where(html.duet-hub) .path h2{font-size:26px;margin:0 0 12px}:where(html.duet-hub) .path p{margin:0 0 18px}:where(html.duet-hub) .path .tag{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);font-weight:700}:where(html.duet-hub) .path a.action{display:inline-block;padding:11px 15px;border:1px solid var(--accent);border-radius:5px;text-decoration:none;font-weight:700;margin:4px 8px 4px 0}:where(html.duet-hub) .path a.action:hover,:where(html.duet-hub) .path a.action:focus-visible{background:var(--accent);color:var(--bg)}:where(html.duet-hub) .milestones{list-style:none;padding:0;display:grid;gap:10px}:where(html.duet-hub) .milestones li{border:1px solid var(--line);background:var(--panel);border-radius:8px;padding:15px 18px;display:grid;grid-template-columns:135px 1fr;gap:12px}:where(html.duet-hub) .milestones time{font-weight:700;color:var(--accent)}:where(html.duet-hub) .examples{display:flex;gap:10px;flex-wrap:wrap}:where(html.duet-hub) .examples a{border:1px solid var(--line);border-radius:6px;padding:8px 12px;color:var(--text);text-decoration:none}:where(html.duet-hub) .examples a:hover,:where(html.duet-hub) .examples a:focus-visible{border-color:var(--accent);color:var(--accent)}:where(html.duet-hub) :focus-visible{outline:3px solid var(--accent);outline-offset:3px}@media(max-width:650px){:where(html.duet-hub) .paths,:where(html.duet-hub) .milestones li{grid-template-columns:1fr}:where(html.duet-hub) main{padding:32px 18px 64px}}

:where(html.duet-hub) .path{min-width:0}
/* PIXIE: quiet contextual assistance with native disclosure fallback. */
html:where(.duet-hub){scroll-padding-bottom:110px}:where(html.duet-hub) main{padding-bottom:140px!important}:where(html.duet-hub) .pixie-dock{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));z-index:50;font-size:15px}:where(html.duet-hub) .pixie-dock>summary{cursor:pointer;min-height:60px;display:flex;align-items:center;gap:12px;border:1px solid #b9dfc4;border-radius:35px;padding:8px 22px 8px 12px;background:#223b34;color:#effaf2;box-shadow:0 8px 30px #0008;font-weight:700;list-style:none}:where(html.duet-hub) .pixie-dock>summary::-webkit-details-marker{display:none}:where(html.duet-hub) .pixie-spark{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#122521;color:#e9c68d;font-size:28px}:where(html.duet-hub) .pixie-dock>summary small{display:block;font-size:11px;color:#c7dfce;font-weight:400}:where(html.duet-hub) .pixie-panel{position:absolute;right:0;bottom:78px;width:min(400px,calc(100vw - 32px));max-height:calc(100dvh - 120px);overflow:auto;overscroll-behavior:contain;background:#172326;color:#edf2ec;border:1px solid #688878;border-radius:16px;padding:22px;box-shadow:0 12px 50px #0008}:where(html.duet-hub) .pixie-panel h2{font-size:24px;margin:0 0 10px}:where(html.duet-hub) .pixie-panel h3{font-size:16px;margin:18px 0 8px}:where(html.duet-hub) .pixie-panel p{margin:0 0 12px}:where(html.duet-hub) .pixie-panel a{color:#b9dfc4}:where(html.duet-hub) .pixie-panel small{color:#c0cbc5}:where(html.duet-hub) .pixie-links{list-style:none;padding:0}:where(html.duet-hub) .pixie-links li{padding:10px 0;border-bottom:1px solid #3a4b46}:where(html.duet-hub) .pixie-links a{display:inline-block;min-height:36px}:where(html.duet-hub) .pixie-links small{display:block;font-size:12px}:where(html.duet-hub) .pixie-close{min-height:44px;background:transparent;color:#b9dfc4;border:1px solid #688878;border-radius:7px;padding:10px 16px;cursor:pointer}:where(html.duet-hub) .pixie-private{border-left:3px solid #e9c68d;padding:10px 14px;background:#252c25}:where(html.duet-hub) .pixie-context{color:#e9c68d;font-size:12px}:where(html.duet-hub) .pixie-restore{display:inline-block;margin-top:24px;min-height:44px}:where(html.duet-hub) .pixie-hide{display:none}.pixie-js:where(.duet-hub) .pixie-hide{display:inline-block}@media(prefers-reduced-motion:reduce){:where(html.duet-hub) .pixie-dock *{animation:none!important;transition:none!important}}


/* Existing shared interaction rules. */
/* Shared action spacing for Break This Build and the Duet demo.
 * Material Web buttons: https://material-web.dev/components/button/
 * Touch targets: https://support.google.com/accessibility/android/answer/7101858
 * Uses each page's existing brand colors; no remote CSS or JS dependency.
 */
:root:where(:is(.duet-demo,.duet-hub)){--action-gap:8px;--action-padding:16px;--action-target:48px}
:where(html:is(.duet-demo,.duet-hub)) .action-links{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--action-gap);margin-block:16px}
:where(html:is(.duet-demo,.duet-hub)) .action-links>a{display:inline-flex;align-items:center;min-height:var(--action-target);min-width:var(--action-target);max-width:100%;padding:8px 12px;line-height:1.4;overflow-wrap:anywhere;color:var(--accent,var(--amber-light,#d4a853));text-underline-offset:4px}
:where(html:is(.duet-demo,.duet-hub)) .action-links>a:visited{color:var(--accent,var(--amber-light,#d4a853))}
:where(html:is(.duet-demo,.duet-hub)) .action-links>a:focus-visible{outline:3px solid currentColor;outline-offset:3px}
:where(html:is(.duet-demo,.duet-hub)) .action-links>a:hover{text-decoration-thickness:2px}
:where(html:is(.duet-demo,.duet-hub)) .path .action-links>a.action{display:inline-flex;margin:0;padding:12px var(--action-padding)}
:where(html:is(.duet-demo,.duet-hub)) .path .action-links>a:not(.action){flex-basis:100%}
:where(html:is(.duet-demo,.duet-hub)) .realm-splash>.btn-primary{min-height:var(--action-target);max-width:100%;white-space:normal;margin-block:8px 16px}

/* Existing local recovery layout overrides. */
:where(html.duet-recovery) body{overflow-x:hidden} :where(html.duet-recovery) .page{max-width:1200px} :where(html.duet-recovery) a{color:var(--amber-light)} :where(html.duet-recovery) button{min-height:44px} :where(html.duet-recovery) nav{margin-bottom:20px} :where(html.duet-recovery) .board-access{margin:16px 0;padding:16px;border:1px solid var(--border-hairline)} :where(html.duet-recovery) .board-access h2{font-size:16px} :where(html.duet-recovery) .board-access p{line-height:1.5} :where(html.duet-recovery) #board-navigator{padding:14px;border:2px solid var(--amber-light);width:fit-content;cursor:pointer} :where(html.duet-recovery) #board-navigator:focus-visible{outline:3px solid white;outline-offset:3px} :where(html.duet-recovery) .sq.keyboard-cursor{outline:3px solid var(--amber-light);outline-offset:-4px;z-index:1} :where(html.duet-recovery) #board-key-settings button{margin:8px 8px 0 0}  :where(html.duet-recovery) .board-row{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start} :where(html.duet-recovery) #visual-board{width:100%;max-width:720px;aspect-ratio:1;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr))} :where(html.duet-recovery) .board-row .sidebar{min-width:0;width:auto;gap:20px} :where(html.duet-recovery) .board-row .panel{max-width:none;padding:16px} :where(html.duet-recovery) .piece-token{width:72%;height:72%;font-size:clamp(18px,3vw,36px)} :where(html.duet-recovery) .piece-token.special{width:80%;height:80%;font-size:clamp(18px,2.7vw,32px)} @media(max-width:700px){:where(html.duet-recovery) .board-row{grid-template-columns:minmax(0,1fr)} :where(html.duet-recovery) .board-row .sidebar{width:100%} :where(html.duet-recovery) .piece-token{font-size:clamp(18px,5vw,32px)} :where(html.duet-recovery) .piece-token.special{font-size:clamp(18px,4.7vw,30px)}} :where(html.duet-recovery) .recovery-support-row{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);gap:24px;align-items:start;margin:24px 0} :where(html.duet-recovery) .recovery-support-row .panel{max-width:none;min-width:0} :where(html.duet-recovery) .recovery-menus{display:grid;gap:16px;min-width:0} :where(html.duet-recovery) .recovery-menus .key-row{margin:0;padding:16px;gap:12px} :where(html.duet-recovery) .recovery-menus .key-panel{min-width:0;gap:8px} :where(html.duet-recovery) .recovery-menus .key-token{width:32px;height:32px;flex-shrink:0} :where(html.duet-recovery) .recovery-support-row button{white-space:normal;margin-top:8px;max-width:100%} @media(max-width:700px){:where(html.duet-recovery) .recovery-support-row{grid-template-columns:minmax(0,1fr)}}

:where(html.duet-hub) .review-spacer{margin-top:18px}

/* Reveal playable information through contrast, not decorative brightness.
   Keep Fog visibility rules unchanged. Shared by the official and recovery boards. */
:where(html.duet-game) {--text-muted:#c2c2c2;--duet-reading-size:1.125rem;--duet-heading-size:1.375rem}
:where(html.duet-game) .page{max-width:1200px}
:where(html.duet-game) :is(.body,.quickstart,.tagline,.turn-meta,.panel p,.panel-eyebrow,.history-log,.legend-key,.help-body,.command-bar-field input,.btn-primary,.chip,.board-access p,.board-access summary,.access-route,#legend,#log,.key-label,.site-nav a,.current-state-banner p,.current-state-banner>strong,.signal,.hero-eyebrow,.pass-overlay p,#play-mode-status,#board-input-status,#audio-status,.board-access button,.board-access label,.board-access select,.board-access output,.panel label,.panel input,.panel select,.panel textarea,.panel summary){font-size:var(--duet-reading-size);line-height:1.5}
:where(html.duet-game) :is(.panel h2,.panel h3,.board-access h2){font-size:var(--duet-heading-size);line-height:1.4}
:where(html.duet-game) #realm-intro :is(.body,.signal,.current-state-banner p,.current-state-banner>strong,.realm-actions > .btn-primary){font-size:var(--duet-reading-size);line-height:1.5}
:where(html.duet-game) #realm-intro .crack{display:none}
:where(html.duet-game) #realm-intro .sigil-entry:focus-visible{outline:3px solid #fff;outline-offset:4px}
:where(html.duet-game) #realm-intro .sigil-entry polygon:first-child{stroke:#c2c2c2}
:where(html.duet-game) :is(.btn-primary,.chip){min-height:44px;white-space:normal}
:where(html.duet-game) .board-row{display:flex;flex-wrap:wrap;gap:1.5rem;align-items:flex-start}
:where(html.duet-game) :is(#visual-board,#remote-board){width:min(100%,640px);max-width:100%;aspect-ratio:1;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr));flex:0 1 640px}
:where(html.duet-game) .sidebar{min-width:0;max-width:100%}
:where(html.duet-game) .sq.light{background-color:#303030}
:where(html.duet-game) .sq.dark{background-color:#101010}
:where(html.duet-game) .sq{border:1px solid #777}
:where(html.duet-game) .piece-token{width:76%;height:76%;font-size:clamp(1.1rem,4vw,2.25rem);color:#fff;opacity:1;background:#080808}
:where(html.duet-game) .piece-token.special{width:82%;height:82%;font-size:clamp(1.1rem,3.8vw,2.1rem)}
:where(html.duet-game) .piece-token.owner-w{border:3px solid #e6bc69}
:where(html.duet-game) .piece-token.owner-b{border:3px dashed #f1f1f1}
:where(html.duet-game) .sq.selected{box-shadow:inset 0 0 0 3px #fff}
:where(html.duet-game) .legal-dot{width:clamp(8px,1.5vw,14px);height:clamp(8px,1.5vw,14px);background:#f4d28b;border:1px solid #111;opacity:1}
:where(html.duet-game) .sq.fog-unexplored{border-color:#333}
:where(html.duet-game) .sq.fog-stale{filter:grayscale(60%) brightness(.8)}
:where(html.duet-game) .hp-badge{font-size:.875rem;color:#fff;background:#080808;bottom:0;max-width:100%}
:where(html.duet-game) .access-route a{text-decoration:underline}
:where(html.duet-game) :is(a,button,input,summary):focus-visible{outline:3px solid #fff;outline-offset:3px}
@media(max-width:700px){:where(html.duet-game) .board-row{flex-direction:column}:where(html.duet-game) :is(#visual-board,#remote-board){flex:auto}:where(html.duet-game) .sidebar{width:100%}}
@media(forced-colors:active){:where(html.duet-game) .piece-token.owner-b{border-style:dashed}:where(html.duet-game) .piece-token.owner-w{border-style:solid}}

/* Integrated local accessibility and optional PIXIE opening coaching. */
:where(html.duet-game) .board-access{margin:16px 0;padding:16px;border:1px solid #777;background:var(--black-obsidian)}
:where(html.duet-game) .board-access :is(h2,h3){margin:0 0 10px;font-size:var(--duet-heading-size);line-height:1.4}
:where(html.duet-game) .board-access p{max-width:78ch;line-height:1.5}
:where(html.duet-game) #board-navigator{width:fit-content;max-width:100%;padding:14px;border:2px solid #c2c2c2;background:#080808;color:#fff;cursor:pointer}
:where(html.duet-game) #board-navigator:focus-visible{outline:3px solid #fff;outline-offset:4px}
:where(html.duet-game) .sq.keyboard-cursor{outline:3px double #fff;outline-offset:-5px;z-index:2}
:where(html.duet-game) .sq.legal-target{outline:2px dashed #fff;outline-offset:-4px}
:where(html.duet-game) #board-key-settings button,:where(html.duet-game) #audio-settings button{min-height:44px;margin:6px 8px 6px 0}
:where(html.duet-game) #board-key-settings summary,:where(html.duet-game) #audio-settings summary{min-height:44px;display:flex;align-items:center;cursor:pointer}
:where(html.duet-game) .coaching-consent{border:0;padding:0;margin:14px 0}
:where(html.duet-game) .coaching-consent legend{padding:0 0 8px}
:where(html.duet-game) .coaching-consent label{display:flex;align-items:center;gap:12px;min-height:48px;padding:6px 0;cursor:pointer}
:where(html.duet-game) .coaching-consent input{width:24px;height:24px;flex:0 0 24px;accent-color:#d4a853}
:where(html.duet-game) .onboarding-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(16rem,.85fr);grid-template-areas:"intro keyboard" "coaching keyboard";gap:8px 24px;align-items:start}
:where(html.duet-game) .onboarding-intro{grid-area:intro;min-width:0}
:where(html.duet-game) .coaching-setup{grid-area:coaching;min-width:0}
:where(html.duet-game) .keyboard-access{grid-area:keyboard;align-self:start;min-width:0;margin:0;padding:12px}
:where(html.duet-game) .keyboard-access>summary{min-height:48px;padding:8px 0;font-weight:700;cursor:pointer}
:where(html.duet-game) .pixie-tip{margin-top:16px;padding:16px;border:1px solid #d4a853;border-left:4px solid #d4a853;background:#111}
:where(html.duet-game) .pixie-tip p{margin:8px 0 14px}
:where(html.duet-game) .pixie-tip button{min-height:48px;margin:4px 8px 4px 0}
:where(html.duet-game) .playtest-checkpoint{border:2px solid #fff;background:#101010;color:#fff}
:where(html.duet-game) .playtest-checkpoint :is(input,button){min-height:48px;max-width:100%;font:inherit}
:where(html.duet-game) .playtest-checkpoint input{width:min(100%,24rem);padding:10px 12px;background:#080808;color:#fff;border:2px solid #c2c2c2}
:where(html.duet-game) .playtest-checkpoint textarea{display:block;width:min(100%,40rem);min-height:6rem;padding:10px 12px;background:#080808;color:#fff;border:2px solid #c2c2c2;font:inherit;resize:vertical}
:where(html.duet-game) .playtest-checkpoint button{margin:6px 8px 6px 0;padding:10px 14px;border:2px solid #c2c2c2;background:#080808;color:#fff;cursor:pointer}
:where(html.duet-game) .playtest-checkpoint button:disabled{opacity:.65;cursor:not-allowed}
:where(html.duet-game) .checkpoint-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;justify-items:start}
:where(html.duet-game) .playtest-record-note{font-size:.95em;color:#e0e0e0}
:where(html.duet-game) #audio-settings :is(input,select){min-height:44px;max-width:100%}
:where(html.duet-game) #audio-settings input[type=range]{width:min(100%,420px);vertical-align:middle}
:where(html.duet-game) #pass-overlay[role=dialog]{box-sizing:border-box;max-width:none;max-height:none;overflow:auto;isolation:isolate}
:where(html.duet-game) #pass-overlay[role=dialog] h2{margin:0 0 12px}
@media(forced-colors:active){
 :where(html.duet-game) .sq.keyboard-cursor{outline:3px double Highlight}
 :where(html.duet-game) .sq.legal-target{outline:2px dashed CanvasText}
 :where(html.duet-game) #board-navigator{border:2px solid ButtonText}
}
@media(max-width:700px){
 :where(html.duet-game) .board-access{padding:14px}
 :where(html.duet-game) .onboarding-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:"intro" "keyboard" "coaching";gap:8px}
 :where(html.duet-game) .keyboard-access{margin:0;padding:10px}
 :where(html.duet-game) .coaching-consent label{align-items:flex-start;padding-block:10px}
 :where(html.duet-game) #board-key-settings button,:where(html.duet-game) #audio-settings button{max-width:100%;white-space:normal}
}

/* iPad/Safari control visibility regression: retain native input affordances. */
:where(html.duet-game){color-scheme:dark}
:where(html.duet-game) input:is([type=checkbox],[type=radio],[type=range]),:where(html.duet-game) select{-webkit-appearance:auto;appearance:auto;accent-color:#d4a853;padding:0}
:where(html.duet-game) #audio-settings :is(button,select),:where(html.duet-game) #board-key-settings button{border:1px solid #c2c2c2;background:#080808;color:#fff;padding:8px 12px;min-height:44px}
:where(html.duet-game) #audio-settings button[aria-pressed=true]{border-color:#d4a853;background:#332818}
:where(html.duet-game) #audio-settings input[type=range]{background:transparent;border:0}
:where(html.duet-game) .lobby-join{gap:16px !important}
:where(html.duet-game) #pass-overlay[role=dialog]{padding:clamp(12px,3vw,32px)}
