
    /* santi.glass design tokens and liquid glass styling */
    :root {
      --bg: #F2F2F7;
      --surface: #FFFFFF;
      --elevated: #F9F9FB;
      --text: #000000;
      --secondary: #636366;
      --border: rgba(0, 0, 0, 0.08);
      --accent-fill: #0071E3;
      --accent-text: #0066CC;
      --glass-bg: rgba(255, 255, 255, 0.72);
      --glass-border: rgba(255, 255, 255, 0.65);
      --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08), inset 0 1px 1px 0 rgba(255, 255, 255, 0.9);
      --glass-frost: blur(28px) saturate(180%);
    }

    html.dark {
      --bg: #000000;
      --surface: #1C1C1E;
      --elevated: #2C2C2E;
      --text: #FFFFFF;
      --secondary: #AEAEB2;
      --border: rgba(255, 255, 255, 0.12);
      --accent-fill: #0070E0;
      --accent-text: #409CFF;
      --glass-bg: rgba(28, 28, 30, 0.68);
      --glass-border: rgba(255, 255, 255, 0.14);
      --glass-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5), inset 0 1px 1px 0 rgba(255, 255, 255, 0.22);
      --glass-frost: blur(28px) saturate(190%);
    }

    /* Apple continuous curvature simulation & transitions */
    * {
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    body {
      background-color: var(--bg);
      color: var(--text);
      font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
      transition: background-color 0.25s ease, color 0.25s ease;
    }

    /* Spring-like active click feedback */
    .btn-spring {
      transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.16s ease, background-color 0.16s ease;
    }
    .btn-spring:active {
      transform: scale(0.96);
    }

    /* Scrollbar styling */
    ::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }
    ::-webkit-scrollbar-track {
      background: transparent;
    }
    ::-webkit-scrollbar-thumb {
      background: rgba(142, 142, 147, 0.3);
      border-radius: 9999px;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: rgba(142, 142, 147, 0.5);
    }

    /* Custom outline */
    *:focus-visible {
      outline: 2px solid var(--accent-fill);
      outline-offset: 2px;
    }

    /* Seamless monochrome sweep across the Chrome wordmark. */
    .chrome-gradient {
      color: var(--text);
      display: inline-block;
    }
    @supports ((background-clip: text) or (-webkit-background-clip: text)) {
      .chrome-gradient {
        background-image: linear-gradient(90deg, #000000 0%, #ffffff 50%, #000000 100%);
        background-size: 360px 100%;
        background-repeat: repeat-x;
        background-position: 0 0;
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
        -webkit-text-stroke: 0.4px rgba(128, 128, 128, 0.35);
        animation: chrome-sweep 5s linear infinite;
      }
    }
    @keyframes chrome-sweep {
      from { background-position: 0 0; }
      to { background-position: 360px 0; }
    }
    @media (prefers-reduced-motion: reduce) {
      .chrome-gradient {
        animation: none;
        background: none;
        color: var(--text);
        -webkit-text-fill-color: var(--text);
        -webkit-text-stroke: 0;
      }
    }
  
/* Shared navigation and actual refracting glass, using santi.glass optics. */
:root {
  --glass-fill: rgba(255, 255, 255, .72);
  --glass-fill-strong: rgba(255, 255, 255, .86);
  --glass-tint: rgba(255, 255, 255, .22);
  --glass-tint-strong: rgba(255, 255, 255, .48);
  --glass-stroke: rgba(255, 255, 255, .65);
  --glass-sheen: rgba(255, 255, 255, .15);
  --blur-glass: 24px;
  --blur-glass-strong: 40px;
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, .12);
  --shadow-glass-edge: inset 0 1px 0 rgba(255, 255, 255, .85);
  --shadow-solid: 0 4px 16px rgba(0, 0, 0, .12);
  --surface-elevated: #fff;
  --separator: rgba(60, 60, 67, .29);
  --lens-bezel: 28px;
  --lens-depth: 26px;
  --lens-ior: 1.5;
  --lens-aberration: .12;
  --lens-frost: 1.5px;
  --lens-frost-strong: 7px;
  --lens-specular: .6;
  --lens-saturation: 1.5;
}
html.dark {
  --glass-fill: rgba(44, 44, 46, .62);
  --glass-fill-strong: rgba(28, 28, 30, .86);
  --glass-tint: rgba(44, 44, 46, .20);
  --glass-tint-strong: rgba(28, 28, 30, .58);
  --glass-stroke: rgba(255, 255, 255, .14);
  --glass-sheen: rgba(255, 255, 255, .09);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, .55);
  --shadow-glass-edge: inset 0 1px 0 rgba(255, 255, 255, .12);
  --shadow-solid: 0 4px 16px rgba(0, 0, 0, .5);
  --surface-elevated: #2c2c2e;
  --separator: rgba(84, 84, 88, .65);
}
[hidden] { display: none !important; }
.site-header { position: fixed; inset: 16px 16px auto; z-index: 60; max-width: 1024px; margin: auto; }
.top-bar { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 6px 12px; gap: 12px; border-radius: 999px; }
.top-brand { display: flex; align-items: center; gap: 8px; min-height: 44px; border-radius: 999px; font-weight: 700; letter-spacing: -.025em; flex-shrink: 0; }
.brand-icon { display: flex; width: 30px; height: 30px; align-items: center; justify-content: center; background: #000; border-radius: 8px; }
.brand-icon img { width: 24px; height: 24px; }
.top-nav, .top-actions { display: flex; align-items: center; gap: 4px; }
.top-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--secondary); font-size: 15px; font-weight: 500; transition: background .2s, color .2s; }
.top-link:hover, .top-link[aria-expanded="true"] { color: var(--text); background: rgba(128, 128, 128, .14); }
.top-link svg { width: 12px; height: 12px; transition: transform .2s; }
.top-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.top-actions #appearanceBtn, .top-actions #quickThemeBtn { height: 44px; min-width: 44px; }
.top-actions #appearanceBtn { padding: 0 12px; }
.top-actions #appearanceMenu { top: 100%; }
.games-panel { position: absolute; inset: 68px 0 auto; border-radius: 32px; padding: 32px; max-height: calc(100dvh - 104px); overflow-y: auto; overscroll-behavior: contain; }
.games-panel::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.game-menu-grid { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 32px; }
.menu-group h2 { margin-bottom: 12px; color: var(--secondary); font-size: 13px; font-weight: 400; }
.menu-game { display: block; min-height: 44px; padding: 7px 0; font-size: 21px; font-weight: 650; line-height: 1.35; letter-spacing: -.025em; color: var(--text); border-radius: 8px; }
.menu-game:hover, .menu-game[aria-current="page"] { color: var(--accent-text); }
.menu-resource { display: flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--text); border-radius: 8px; }
.menu-resource:hover { color: var(--accent-text); }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 90; padding: 12px 20px; border-radius: 999px; background: var(--surface); color: var(--text); }
.skip-link:focus { top: 16px; }
.game-card { text-decoration: none; }
.game-card:focus-visible { outline-offset: 4px; }
.game-breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--secondary); font-size: 14px; margin-bottom: 24px; }
.game-breadcrumb a { min-height: 44px; display: inline-flex; align-items: center; color: var(--accent-text); border-radius: 8px; }
.game-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.game-intro h1 { font-size: clamp(34px, 4.3vw, 48px); line-height: 1.12; font-weight: 750; letter-spacing: -.025em; margin: 0 0 20px; }
.game-overview { color: var(--secondary); font-size: 17px; line-height: 1.65; }
.game-artwork { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 22px; }
.game-page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.capability-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.capability-group { background: var(--surface); border-radius: 22px; padding: 24px; }
.capability-group h3 { font-size: 20px; line-height: 1.3; font-weight: 600; margin: 0 0 16px; }
.capability-group ul { padding: 0; list-style: none; }
.capability-group li { position: relative; padding-left: 18px; color: var(--secondary); font-size: 16px; line-height: 1.65; margin-top: 10px; }
.capability-group li::before { content: ""; position: absolute; top: 11px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-fill); }
.shared-features { background: var(--surface); padding: 24px; border-radius: 22px; }
.shared-features summary { min-height: 44px; display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 17px; font-weight: 600; }
.shared-features summary::after { content: "+"; margin-left: auto; font-size: 24px; color: var(--secondary); }
.shared-features[open] summary::after { content: "−"; }
.shared-features .capability-layout { margin-top: 16px; }
.shared-features .capability-group { padding: 0; }
.page-note { color: var(--secondary); font-size: 14px; line-height: 1.6; }
@media (max-width: 760px) {
  .desktop-link, .top-actions #quickThemeBtn { display: none; }
  .top-bar { gap: 6px; padding: 6px 10px; }
  .top-brand { font-size: 15px; gap: 6px; }
  .top-link { padding: 0 10px; }
  .top-actions #appearanceBtn > span { display: none; }
  .game-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .menu-group:last-child { grid-column: 1 / -1; padding-top: 20px; border-top: .5px solid var(--border); }
  .menu-resource-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games-panel { padding: 24px; border-radius: 22px; }
  .menu-game { font-size: 18px; }
  .game-intro, .capability-layout { grid-template-columns: 1fr; }
  .game-intro { gap: 24px; }
  .game-artwork { order: -1; }
}
@media (max-width: 360px) {
  .top-brand { font-size: 13px; }
  .top-link { font-size: 14px; padding: 0 8px; }
  .games-panel { padding: 20px; }
  .menu-game { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* glass material lives in /mono-assets/liquid-glass.css */

/* Glass material tuned to the supplied Apple Music references.
   Foreground stays crisp; only live content behind the surface is refracted. */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
:root {
  --glass-tint: linear-gradient(180deg, rgb(255 255 255 / .66), rgb(246 246 248 / .56));
  --glass-tint-strong: linear-gradient(180deg, rgb(255 255 255 / .82), rgb(246 246 248 / .76));
  --glass-rim-top: rgb(255 255 255 / .75);
  --glass-rim-bottom: rgb(0 0 0 / .10);
  --glass-rim-edge: rgb(255 255 255 / .22);
  --glass-soft-light: rgb(255 255 255 / .12);
  --glass-selected: rgb(0 0 0 / .07);
  --lens-bezel: 22px;
  --lens-depth: 34px;
  --lens-aberration: .015;
  --lens-frost: .65px;
  --lens-frost-strong: 2.4px;
  --lens-specular: .16;
  --lens-saturation: 1.1;
  --shadow-glass: 0 6px 22px rgb(0 0 0 / .16);
}
html.dark {
  --glass-tint: linear-gradient(180deg, rgb(43 43 43 / .72), rgb(30 30 30 / .66));
  --glass-tint-strong: linear-gradient(180deg, rgb(38 38 38 / .86), rgb(27 27 27 / .80));
  --glass-rim-top: rgb(255 255 255 / .28);
  --glass-rim-bottom: rgb(255 255 255 / .16);
  --glass-rim-edge: rgb(255 255 255 / .10);
  --glass-soft-light: rgb(255 255 255 / .045);
  --glass-selected: rgb(0 0 0 / .68);
  --shadow-glass: 0 6px 22px rgb(0 0 0 / .24);
}
.top-link[aria-expanded="true"] {
  background: var(--glass-selected);
  box-shadow: inset 0 1px 3px rgb(0 0 0 / .12);
}
.glass-search { border-radius: 999px; --lens-bezel: 18px; --lens-depth: 26px; }
.glass-search #gameSearch { background: transparent; border-color: transparent; box-shadow: none; font-size: 16px; }
