:root {
  color-scheme: dark;
  --surfaceff88c-ground: #0c0c0c;
  --surfaceff88c-layer: #131b15;
  --surfaceff88c-panel: #19251c;
  --surfaceff88c-sage: #8fbc8f;
  --surfaceff88c-ink: #e8f1e6;
  --surfaceff88c-muted: #b4c5b3;
  --surfaceff88c-line: #344638;
  --surfaceff88c-pink: #ad1457;
  --surfaceff88c-green: #228b22;
  --surfaceff88c-focus: #f3c4d7;
  --surfaceff88c-width: 430px;
  --surfaceff88c-header: 66px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; background: var(--surfaceff88c-ground); color: var(--surfaceff88c-ink); font: 15px/1.65 "Segoe UI", Arial, sans-serif; overflow-wrap: break-word; }
button, input, summary { font: inherit; }
button, a, summary, input { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: #b5dab3; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--surfaceff88c-focus); outline-offset: 3px; }
button:disabled { cursor: default; opacity: .5; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; flex-shrink: 0; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: "Cascadia Code", "Consolas", monospace; font-weight: 700; line-height: 1.35; letter-spacing: -.035em; }
h1 { font-size: clamp(23px, 6.4vw, 29px); }
h2 { font-size: 21px; }
h3 { font-size: 16px; }
p + p { margin-top: 13px; }
ul, ol { padding-left: 22px; }
li + li { margin-top: 9px; }
.surfaceff88c-canvas { width: min(100%, var(--surfaceff88c-width)); min-height: 100dvh; margin-inline: auto; background: var(--surfaceff88c-ground); border-inline: 1px solid #202b22; }
.surfaceff88c-skip { position: fixed; top: 4px; left: 50%; z-index: 100; transform: translate(-50%, -160%); background: var(--surfaceff88c-ink); color: #0c0c0c; padding: 10px 18px; border-radius: 3px; }
.surfaceff88c-skip:focus { transform: translate(-50%, 0); }
.surfaceff88c-topline { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: min(100%, var(--surfaceff88c-width)); z-index: 40; background: #0c0c0c; border-bottom: 1px solid var(--surfaceff88c-line); }
.surfaceff88c-headerrow { min-height: var(--surfaceff88c-header); display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; }
.surfaceff88c-brand { display: flex; gap: 6px; align-items: center; flex-shrink: 0; text-decoration: none; color: var(--surfaceff88c-ink); font: 700 18px/1 "Consolas", monospace; letter-spacing: -.05em; }
.surfaceff88c-brand img { width: 31px; height: 31px; object-fit: contain; border-radius: 4px; }
.surfaceff88c-actions { display: flex; align-items: center; gap: 4px; }
.surfaceff88c-register, .surfaceff88c-login { min-height: 44px; padding: 8px 9px; border: 0; border-radius: 3px; font-size: 12px; font-weight: 700; }
.surfaceff88c-register { background: var(--surfaceff88c-pink); color: #fff; }
.surfaceff88c-login { background: transparent; color: var(--surfaceff88c-sage); }
.surfaceff88c-register:hover { background: #c81e68; }
.surfaceff88c-login:hover { background: var(--surfaceff88c-panel); }
.surfaceff88c-menu { position: static; }
.surfaceff88c-menu > summary { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; list-style: none; cursor: pointer; color: var(--surfaceff88c-sage); border-radius: 3px; }
.surfaceff88c-menu > summary::-webkit-details-marker { display: none; }
.surfaceff88c-menu[open] > summary { background: var(--surfaceff88c-panel); color: #fff; }
.surfaceff88c-menu svg { width: 24px; height: 24px; }
.surfaceff88c-menupanel { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 155px); overflow-y: auto; overscroll-behavior: contain; background: #111813; padding: 10px 16px 18px; border-bottom: 2px solid var(--surfaceff88c-pink); box-shadow: 0 12px 24px #0009; }
.surfaceff88c-menupanel > a { display: flex; min-height: 44px; align-items: center; text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--surfaceff88c-line); }
.surfaceff88c-menugroup { border-bottom: 1px solid var(--surfaceff88c-line); }
.surfaceff88c-menugroup summary { min-height: 48px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; list-style: none; }
.surfaceff88c-menugroup summary::-webkit-details-marker { display: none; }
.surfaceff88c-menugroup summary::after { content: "+"; color: var(--surfaceff88c-sage); font-size: 22px; }
.surfaceff88c-menugroup[open] summary::after { content: "−"; }
.surfaceff88c-menugroup a { display: block; padding: 10px 12px; min-height: 44px; text-decoration: none; font-size: 14px; }
.surfaceff88c-menufoot { font-size: 12px; color: var(--surfaceff88c-muted); padding-top: 12px; }
.surfaceff88c-main { padding-top: var(--surfaceff88c-header); padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.surfaceff88c-intro { padding: 23px 16px 19px; background: linear-gradient(135deg, #1b2a1d, #0c0c0c 78%); border-bottom: 1px solid var(--surfaceff88c-line); }
.surfaceff88c-kicker { color: var(--surfaceff88c-sage); text-transform: uppercase; letter-spacing: .12em; font: 700 11px/1.5 "Consolas", monospace; margin-bottom: 11px; }
.surfaceff88c-intro h1 { margin-bottom: 13px; }
.surfaceff88c-intro p { color: var(--surfaceff88c-muted); font-size: 14px; }
.surfaceff88c-introlinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.surfaceff88c-introlinks a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 12px; background: var(--surfaceff88c-panel); border-radius: 4px; text-decoration: none; font-size: 13px; }
.surfaceff88c-age { display: flex; gap: 9px; align-items: flex-start; border-left: 3px solid var(--surfaceff88c-pink); margin-top: 16px; padding-left: 10px; }
.surfaceff88c-age strong { font-family: "Consolas", monospace; color: #f4c6d9; white-space: nowrap; }
.surfaceff88c-age span { color: var(--surfaceff88c-muted); font-size: 12px; }
.surfaceff88c-reel { padding-top: 14px; }
.surfaceff88c-reelstrip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.surfaceff88c-reelstrip::-webkit-scrollbar { display: none; }
.surfaceff88c-banner { flex: 0 0 100%; border: 0; background: transparent; padding: 0 12px; scroll-snap-align: start; }
.surfaceff88c-banner img { width: 100%; aspect-ratio: 2/1; object-fit: contain; border-radius: 5px; }
.surfaceff88c-reelcontrols { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 4px 12px; }
.surfaceff88c-reelarrow { border: 0; background: none; color: var(--surfaceff88c-sage); width: 44px; height: 44px; font-size: 24px; }
.surfaceff88c-dotgroup { display: flex; gap: 0; }
.surfaceff88c-dot { border: 0; background: transparent; width: 44px; height: 44px; padding: 17px; }
.surfaceff88c-dot::after { content: ""; display: block; width: 10px; height: 4px; background: var(--surfaceff88c-line); transition: background-color .15s ease; }
.surfaceff88c-dot[aria-pressed="true"]::after { background: var(--surfaceff88c-sage); }
.surfaceff88c-caption { padding: 4px 16px 16px; font-size: 12px; color: var(--surfaceff88c-muted); }
.surfaceff88c-jumprow { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; border-block: 1px solid var(--surfaceff88c-line); background: #141e16; scrollbar-width: thin; }
.surfaceff88c-jumprow a { display: inline-flex; min-height: 44px; align-items: center; flex-shrink: 0; font-size: 12px; font-weight: 700; text-decoration: none; padding: 7px 9px; border-radius: 2px; }
.surfaceff88c-jumprow a:hover { background: #263b28; }
.surfaceff88c-shelf { padding: 22px 12px 16px; border-bottom: 1px solid var(--surfaceff88c-line); scroll-margin-top: 80px; }
.surfaceff88c-shelfhead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.surfaceff88c-shelfhead::before { content: ""; width: 4px; height: 30px; background: var(--surfaceff88c-green); flex-shrink: 0; }
.surfaceff88c-shelf:nth-of-type(even) .surfaceff88c-shelfhead::before { background: var(--surfaceff88c-pink); }
.surfaceff88c-shelf h2 { font-size: 18px; }
.surfaceff88c-shelf > p { font-size: 13px; color: var(--surfaceff88c-muted); margin-bottom: 14px; }
.surfaceff88c-games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px 7px; list-style: none; padding: 0; margin: 0; }
.surfaceff88c-games li { min-width: 0; margin: 0; }
.surfaceff88c-game { width: 100%; padding: 0; border: 0; background: transparent; text-align: left; display: flex; flex-direction: column; gap: 6px; min-height: 100px; }
.surfaceff88c-game img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: var(--surfaceff88c-panel); }
.surfaceff88c-game span { display: block; width: 100%; color: var(--surfaceff88c-ink); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.surfaceff88c-game:hover span { color: var(--surfaceff88c-sage); }
.surfaceff88c-shelfroutes { display: flex; flex-wrap: wrap; gap: 6px 15px; margin-top: 15px; padding-top: 10px; border-top: 1px dashed var(--surfaceff88c-line); }
.surfaceff88c-shelfroutes a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
.surfaceff88c-reading { padding: 28px 16px 22px; border-bottom: 1px solid var(--surfaceff88c-line); }
.surfaceff88c-reading h2 { margin-bottom: 14px; }
.surfaceff88c-reading h3 { margin: 20px 0 8px; color: var(--surfaceff88c-sage); }
.surfaceff88c-reading p, .surfaceff88c-reading li { color: #ccdac9; font-size: 14px; }
.surfaceff88c-reading strong { color: var(--surfaceff88c-ink); }
.surfaceff88c-lead { color: var(--surfaceff88c-ink) !important; font-weight: 600; }
.surfaceff88c-margin-note { margin: 18px 0; padding: 13px 14px; border-left: 3px solid var(--surfaceff88c-sage); background: #152018; font-size: 13px; color: var(--surfaceff88c-muted); }
.surfaceff88c-path { counter-reset: surfaceff88c-step; list-style: none; padding: 0; margin: 18px 0; }
.surfaceff88c-path li { counter-increment: surfaceff88c-step; padding: 0 0 18px 40px; position: relative; border-left: 1px solid var(--surfaceff88c-line); margin: 0 0 0 13px; }
.surfaceff88c-path li:last-child { padding-bottom: 0; border-left: 0; }
.surfaceff88c-path li::before { content: counter(surfaceff88c-step, decimal-leading-zero); position: absolute; left: -14px; top: 0; width: 29px; height: 29px; background: #182a1b; color: var(--surfaceff88c-sage); border: 1px solid var(--surfaceff88c-line); display: grid; place-items: center; font: 700 12px/1 "Consolas", monospace; }
.surfaceff88c-path strong { display: block; margin-bottom: 5px; }
.surfaceff88c-paired { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 17px 0; }
.surfaceff88c-paired article { border-top: 2px solid var(--surfaceff88c-sage); padding-top: 9px; }
.surfaceff88c-paired article:last-child { border-top-color: var(--surfaceff88c-pink); }
.surfaceff88c-paired h3 { margin: 0 0 8px; font-size: 14px; }
.surfaceff88c-paired p { font-size: 12px; }
.surfaceff88c-terms { margin: 18px 0 0; }
.surfaceff88c-terms dt { color: var(--surfaceff88c-sage); font: 700 15px/1.5 "Consolas", monospace; padding-top: 15px; border-top: 1px solid var(--surfaceff88c-line); }
.surfaceff88c-terms dd { margin: 7px 0 16px; color: #ccdac9; font-size: 14px; }
.surfaceff88c-q { border-top: 1px solid var(--surfaceff88c-line); margin-top: 12px; }
.surfaceff88c-q summary { padding: 13px 18px 13px 0; min-height: 48px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--surfaceff88c-ink); }
.surfaceff88c-q p { padding-bottom: 14px; }
.surfaceff88c-checklist { padding: 14px 0; margin-top: 12px; }
.surfaceff88c-checkline { display: flex; gap: 11px; padding: 11px 0; align-items: flex-start; min-height: 44px; border-bottom: 1px solid var(--surfaceff88c-line); font-size: 13px; color: #ccdac9; cursor: pointer; }
.surfaceff88c-checkline input { flex: 0 0 20px; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--surfaceff88c-green); }
.surfaceff88c-checknote { font-size: 12px !important; color: var(--surfaceff88c-muted) !important; margin-top: 9px; }
.surfaceff88c-textbutton { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; border: 0; border-radius: 3px; padding: 10px 12px; background: var(--surfaceff88c-pink); color: #fff; font-weight: 600; font-size: 13px; margin-top: 15px; }
.surfaceff88c-textbutton svg { width: 18px; height: 18px; }
.surfaceff88c-extension { padding: 27px 16px 20px; background: #141c16; border-top: 3px solid var(--surfaceff88c-pink); }
.surfaceff88c-extension h2 { font-size: 20px; margin-bottom: 10px; }
.surfaceff88c-extension > p { font-size: 13px; color: var(--surfaceff88c-muted); }
.surfaceff88c-extension h3 { font-size: 16px; margin: 24px 0 10px; }
.surfaceff88c-promogroup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.surfaceff88c-promogroup button { display: flex; gap: 9px; align-items: center; text-align: left; min-height: 48px; border: 0; background: #243228; color: #e8f1e6; padding: 10px; font-size: 12px; line-height: 1.4; border-radius: 3px; }
.surfaceff88c-promogroup button:last-child { grid-column: 1 / -1; background: #6e153d; }
.surfaceff88c-promogroup svg { width: 20px; height: 20px; color: #a9d5a6; }
.surfaceff88c-directory { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.surfaceff88c-directory li { margin: 0; border-bottom: 1px solid var(--surfaceff88c-line); min-width: 0; }
.surfaceff88c-directory a { display: flex; align-items: center; min-height: 48px; font-size: 12px; text-decoration: none; padding: 7px 0; gap: 6px; }
.surfaceff88c-directory a::before { content: "↗"; color: var(--surfaceff88c-sage); }
.surfaceff88c-disclaimer { margin-top: 21px; padding-top: 15px; border-top: 1px solid var(--surfaceff88c-line); color: var(--surfaceff88c-muted); font-size: 12px; }
.surfaceff88c-disclaimer p + p { margin-top: 9px; }
.surfaceff88c-copyright { color: var(--surfaceff88c-muted); text-align: center; font-size: 11px; padding: 22px 16px 12px; }
.surfaceff88c-dock { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, var(--surfaceff88c-width)); z-index: 35; background: #111a13; border-top: 1px solid var(--surfaceff88c-line); padding: 0 5px env(safe-area-inset-bottom, 0px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.surfaceff88c-dockitem { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 68px; gap: 5px; padding: 10px 2px 7px; border: 0; background: transparent; color: var(--surfaceff88c-muted); text-decoration: none; font-size: 11px; line-height: 1.3; }
.surfaceff88c-dockitem svg { width: 23px; height: 23px; stroke-width: 1.8; transition: transform .15s ease, color .15s ease; }
.surfaceff88c-dockitem:hover svg { color: #c9ebc4; transform: translateY(-2px); }
.surfaceff88c-dockitem[aria-current="page"] { color: #c9ebc4; font-weight: 700; }
.surfaceff88c-dockitem[aria-current="page"]::before { content: ""; position: absolute; height: 3px; top: -1px; left: 22%; right: 22%; background: var(--surfaceff88c-sage); }
.surfaceff88c-dockitem:nth-child(2) { color: #f4c6d9; }
@media (min-width: 375px) {
  .surfaceff88c-headerrow { padding-inline: 15px; }
  .surfaceff88c-brand { font-size: 20px; gap: 8px; }
  .surfaceff88c-register, .surfaceff88c-login { padding-inline: 12px; font-size: 13px; }
  .surfaceff88c-games { gap: 14px 9px; }
  .surfaceff88c-game span { font-size: 12px; }
}
@media (min-width: 430px) {
  .surfaceff88c-games { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 8px; }
  .surfaceff88c-game span { font-size: 11px; }
  .surfaceff88c-canvas { box-shadow: 0 0 0 1px #253728; }
}
@media (max-width: 340px) {
  .surfaceff88c-headerrow { padding-inline: 8px; gap: 4px; }
  .surfaceff88c-brand { font-size: 16px; gap: 5px; }
  .surfaceff88c-brand img { width: 28px; height: 28px; }
  .surfaceff88c-actions { gap: 1px; }
  .surfaceff88c-register, .surfaceff88c-login { padding-inline: 7px; }
  .surfaceff88c-reading, .surfaceff88c-extension { padding-inline: 13px; }
  .surfaceff88c-shelf { padding-inline: 10px; }
  .surfaceff88c-dockitem { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
