:root {
      --bg: #f3f5f8;
      --bg-2: #ffffff;
      --card: #ffffff;
      --card-2: #f7f8fb;
      --line: #e4e8ef;
      --line-2: #d5dae3;
      --red: #ff2a42;
      --red-2: #e11d36;
      --red-dim: rgba(255, 42, 66, 0.12);
      --text: #1b2433;
      --muted: #6b7385;
      --faint: #8b93a3;
      --green: #1aa36a;
      --green-dim: rgba(26, 163, 106, 0.12);
      --amber: #c58912;
      --amber-dim: rgba(197, 137, 18, 0.14);
      --shadow: 0 8px 24px rgba(27, 36, 51, 0.06);
      --radius: 16px;
      --radius-sm: 12px;
      --ex-back: #3a8ad4;
      --ex-back-ink: #d7ecff;
      --ex-back-deep: #173252;
      --ex-lay: #e05688;
      --ex-lay-ink: #ffe0ec;
      --ex-lay-deep: #4a1b30;
      --ex-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
      --bar: 64px;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    html, body {
      min-height: 100%;
      background: var(--bg);
      color: var(--text);
      font-family: Inter, system-ui, sans-serif;
      font-size: 14px;
      font-weight: 500;
      line-height: 1.45;
      overflow-x: clip;
    }
    h1, h2, h3, h4 { font-weight: 500; }
    b, strong { font-weight: 600; }

    button, input { font-family: inherit; }
    button { cursor: pointer; border: 0; background: none; color: inherit; }
    img { display: block; max-width: 100%; }
    a { color: inherit; text-decoration: none; }

    button:focus-visible,
    input:focus-visible,
    a:focus-visible {
      outline: 2px solid var(--red);
      outline-offset: 2px;
    }

    .app {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      overflow-x: clip;
    }
    .demo-banner {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px 14px;
      padding: 8px 16px;
      background: #1b2433;
      color: #f4f6f9;
      font-size: 12.5px;
      line-height: 1.4;
      border-bottom: 1px solid #2a3344;
    }
    .demo-banner b {
      color: #fff;
      font-size: 12px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .demo-banner span { color: #c5ccd8; }
    .demo-banner-keys { margin-left: auto; }
    .demo-banner code {
      font-family: var(--ex-mono);
      font-size: 11.5px;
      color: #fff;
      background: #2a3344;
      padding: 1px 6px;
      border-radius: 4px;
    }
    @media (max-width: 720px) {
      .demo-banner-keys { margin-left: 0; }
    }
    body.book-nav-open {
      overflow: hidden;
    }

    /* ========== HEADER ========== */
    .topbar {
      position: sticky;
      top: 0;
      z-index: 50;
      display: flex;
      align-items: center;
      gap: 14px;
      height: var(--bar);
      padding: 0 16px 0 12px;
      background: #fff;
      border-bottom: 1px solid var(--line);
    }
    .book-burger { display: none; order: 0; }
    .book-scrim { display: none; }
    .brand { order: 1; }
    .search { order: 2; }
    .nav-links { order: 3; }
    .top-right { order: 4; }

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
      color: var(--text);
    }
    .logo {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      background: var(--red);
      color: #fff;
      display: grid;
      place-items: center;
      flex-shrink: 0;
      font-weight: 600;
      font-size: 22px;
      letter-spacing: -0.06em;
      box-shadow: 0 8px 16px rgba(255, 42, 66, 0.22);
    }
    .logo-img {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      object-fit: contain;
      background: #fff;
      border: 1px solid var(--line);
      flex-shrink: 0;
    }
    .brand-text {
      font-size: 17px;
      font-weight: 600;
      letter-spacing: -0.04em;
      line-height: 1;
    }

    .search {
      width: min(280px, 26vw);
      height: 42px;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0 14px;
      background: #f3f5f8;
      border: 1px solid transparent;
      border-radius: 12px;
      flex-shrink: 0;
      color: var(--muted);
      transition: background 160ms, border-color 160ms, box-shadow 160ms;
    }
    .search:focus-within {
      background: #fff;
      border-color: var(--red);
      box-shadow: 0 0 0 3px var(--red-dim);
      color: var(--text);
    }
    .search-ico-svg { flex-shrink: 0; }

    .search input {
      width: 100%;
      background: none;
      border: 0;
      color: var(--text);
      outline: none;
      font-size: 13px;
    }

    .search input::placeholder { color: var(--faint); }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 2px;
      flex: 1;
      min-width: 0;
      overflow-x: auto;
      scrollbar-width: none;
      padding: 4px;
      background: #f3f5f8;
      border-radius: 12px;
    }
    .nav-links::-webkit-scrollbar { display: none; }

    .nav-links a {
      white-space: nowrap;
      padding: 8px 12px;
      border-radius: 9px;
      color: #3a4250;
      font-size: 13px;
      font-weight: 500;
      letter-spacing: -0.01em;
      transition: color 160ms, background 160ms, box-shadow 160ms;
    }

    .nav-links a:hover { color: var(--text); background: #fff; }
    .nav-links a.active {
      color: var(--text);
      background: #fff;
      box-shadow: 0 1px 2px rgba(27, 36, 51, 0.08);
    }

    .top-right {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-left: auto;
      flex-shrink: 0;
    }

    .icon-btn {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      color: #2a3344;
      background: #eef1f6;
      transition: background 160ms, color 160ms;
    }
    .icon-btn:hover { background: #e4e8ef; color: var(--text); }

    .btn-login {
      height: 40px; padding: 0 16px; border-radius: 12px;
      background: var(--red); color: #fff; font-weight: 600; font-size: 13px;
      display: grid; place-items: center;
      box-shadow: 0 8px 16px rgba(255, 42, 66, 0.22);
    }
    .btn-login:hover { filter: brightness(1.05); }

    .profile-wrap { position: relative; }
    .profile {
      display: flex;
      align-items: center;
      gap: 10px;
      height: 44px;
      padding: 4px 12px 4px 4px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: #fff;
      transition: background 160ms, border-color 160ms, box-shadow 160ms;
    }
    .profile:hover { background: #f7f8fb; border-color: #c5cad6; }
    .profile-wrap.open .profile {
      background: #fff;
      border-color: var(--red);
      box-shadow: 0 0 0 3px var(--red-dim);
    }

    .user-avatar {
      position: relative;
      width: var(--ua, 40px);
      height: var(--ua, 40px);
      flex-shrink: 0;
      display: grid;
      place-items: center;
    }
    .user-avatar-face {
      position: relative;
      width: 100%;
      height: 100%;
      border-radius: 50%;
      overflow: hidden;
      display: grid;
      place-items: center;
      background: linear-gradient(165deg, #ff6b7b 0%, var(--red) 100%);
      color: #fff;
      box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line);
    }
    .user-avatar-face em {
      font-style: normal;
      font-weight: 600;
      font-size: calc(var(--ua, 40px) * 0.34);
      letter-spacing: 0.02em;
      line-height: 1;
    }
    .user-avatar-face img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 18%;
      border-radius: 50%;
    }
    .user-avatar-pip {
      position: absolute;
      right: -1px;
      bottom: -1px;
      width: 11px;
      height: 11px;
      border-radius: 50%;
      background: var(--green);
      box-shadow: 0 0 0 2px #fff;
      z-index: 1;
    }

    .profile .meta { line-height: 1.2; text-align: left; }
    .profile .name { display: block; font-size: 13px; font-weight: 500; letter-spacing: -0.02em; }
    .profile .sub {
      font-size: 11px;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 4px;
      font-weight: 500;
    }
    .profile .sub svg { transition: transform 180ms ease; }
    .profile-wrap.open .sub svg { transform: rotate(180deg); }

    .profile-menu {
      position: absolute;
      top: calc(100% + 10px);
      right: 0;
      width: min(320px, calc(100vw - 24px));
      padding: 8px;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 20px;
      box-shadow: 0 24px 56px rgba(27, 36, 51, 0.12), 0 2px 8px rgba(27, 36, 51, 0.05);
      z-index: 70;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateY(8px);
      transform-origin: top right;
      transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
    }
    .profile-wrap.open .profile-menu {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: none;
    }

    .pm-head {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 0 0 8px;
      padding: 10px 10px 12px;
      border-radius: 14px;
      background: #f7f8fb;
    }
    .pm-avatar .user-avatar-face {
      box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ffc4cb;
    }
    .pm-who { min-width: 0; flex: 1; }
    .pm-who strong {
      display: block;
      font-size: 14px;
      font-weight: 500;
      letter-spacing: -0.03em;
      line-height: 1.25;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .pm-who span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      margin-top: 2px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .pm-badge {
      flex-shrink: 0;
      height: 22px;
      padding: 0 8px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      background: var(--red-dim);
      color: var(--red);
      font-size: 10px;
      font-style: normal;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .pm-wallet {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 0 0 8px;
      padding: 12px 12px;
      border-radius: 14px;
      background: #fff8f8;
      border: 1px solid #ffd4d8;
      color: var(--text);
    }
    .pm-wallet-ico {
      width: 38px;
      height: 38px;
      border-radius: 11px;
      display: grid;
      place-items: center;
      background: var(--red);
      color: #fff;
      font-size: 14px;
      box-shadow: 0 8px 16px rgba(255, 42, 66, 0.22);
      flex-shrink: 0;
    }
    .pm-wallet-copy { flex: 1; min-width: 0; }
    .pm-wallet-copy small {
      display: block;
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .pm-wallet-copy b {
      display: block;
      margin-top: 2px;
      font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 20px;
      font-weight: 600;
      letter-spacing: -0.04em;
      line-height: 1.15;
    }
    .pm-wallet-cta {
      display: flex;
      align-items: center;
      gap: 6px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 500;
      flex-shrink: 0;
    }
    .pm-wallet-cta i { font-size: 10px; }
    .pm-wallet:hover {
      border-color: #ffc4cb;
      box-shadow: 0 8px 18px rgba(255, 42, 66, 0.08);
    }
    .pm-wallet:hover .pm-wallet-cta { color: var(--red); }

    .pm-nav { display: grid; gap: 2px; padding: 2px 0 4px; }
    .pm-nav a {
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: 46px;
      padding: 7px 8px;
      border-radius: 12px;
      color: var(--text);
    }
    .pm-ico {
      width: 34px;
      height: 34px;
      border-radius: 10px;
      display: grid;
      place-items: center;
      background: #f3f5f8;
      color: #3a4250;
      font-size: 13px;
      flex-shrink: 0;
      transition: background 160ms, color 160ms;
    }
    .pm-copy { flex: 1; min-width: 0; }
    .pm-copy b { display: block; font-size: 13px; font-weight: 500; letter-spacing: -0.02em; }
    .pm-copy small { display: block; color: var(--faint); font-size: 11px; margin-top: 1px; }
    .pm-chev { color: #c5cad6; font-size: 10px; flex-shrink: 0; transition: color 160ms, transform 160ms; }
    .pm-nav a:hover { background: #f7f8fb; }
    .pm-nav a:hover .pm-ico { background: var(--red-dim); color: var(--red); }
    .pm-nav a:hover .pm-chev { color: var(--muted); transform: translateX(2px); }
    .pm-nav a.pm-staff .pm-ico { background: var(--red); color: #fff; }
    .pm-nav a.pm-staff:hover .pm-ico { background: var(--red); color: #fff; }

    .profile-menu form { margin: 2px 0 0; padding-top: 6px; border-top: 1px solid var(--line); }
    .profile-menu form button {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: 44px;
      padding: 8px 8px;
      border-radius: 12px;
      color: var(--red-2);
      font-size: 13px;
      font-weight: 500;
    }
    .profile-menu form button .pm-ico {
      background: var(--red-dim);
      color: var(--red-2);
    }
    .profile-menu form button:hover { background: #fff5f6; }

    @media (prefers-reduced-motion: reduce) {
      .profile-menu,
      .pm-nav a,
      .pm-ico,
      .pm-chev,
      .profile .sub svg,
      .sport { transition: none; transform: none; }
    }

    /* ========== SHELL ========== */
    .shell {
      display: grid;
      grid-template-columns: 72px minmax(0, 1fr);
      flex: 1;
      min-height: 0;
      transition: grid-template-columns 260ms ease;
    }
    .shell.rail-open {
      grid-template-columns: 268px minmax(0, 1fr);
    }

    /* ========== SPORT RAIL ========== */
    .rail {
      position: sticky;
      top: var(--bar);
      height: calc(100dvh - var(--bar));
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 10px 8px 14px;
      border-right: 1px solid var(--line);
      background: #fafbfc;
      overflow: hidden;
    }
    .rail-kicker {
      display: none;
      margin: 0 8px 10px;
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .rail-list {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      flex: 1;
      width: 100%;
      overflow-x: hidden;
      overflow-y: auto;
      padding: 4px 2px 8px;
    }
    .rail-list::-webkit-scrollbar { width: 0; }

    .sport {
      position: relative;
      width: 48px;
      height: 48px;
      border-radius: 14px;
      display: grid;
      place-items: center;
      color: var(--text);
      flex-shrink: 0;
      border: 1px solid transparent;
      transition: background 160ms, color 160ms, box-shadow 160ms, width 220ms ease, border-color 160ms, transform 160ms;
    }
    .sport-ico {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      background: #fff;
      color: #3a4250;
      flex-shrink: 0;
      border: 1px solid var(--line);
      box-shadow: 0 4px 12px rgba(27, 36, 51, 0.04);
      transition: background 160ms, color 160ms, box-shadow 160ms, border-color 160ms;
    }
    .sport i {
      font-size: 17px;
      width: 20px;
      text-align: center;
      line-height: 1;
    }
    .sport-name {
      display: none;
      min-width: 0;
      font-size: 14px;
      font-weight: 500;
      letter-spacing: -0.02em;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      text-align: left;
    }
    .sport-count {
      position: absolute;
      top: 2px;
      right: 2px;
      display: grid;
      place-items: center;
      min-width: 16px;
      height: 16px;
      padding: 0 4px;
      border-radius: 999px;
      background: #fff;
      border: 1px solid var(--line);
      color: var(--muted);
      font-size: 9px;
      font-weight: 600;
      font-style: normal;
      line-height: 1;
      box-shadow: 0 2px 6px rgba(27, 36, 51, 0.08);
    }
    .sport:hover {
      background: transparent;
    }
    .sport:hover .sport-ico {
      border-color: #ffc4cb;
      color: var(--red);
      background: #fff;
      box-shadow: 0 8px 16px rgba(255, 42, 66, 0.1);
    }
    .sport:hover .sport-count {
      border-color: #ffc4cb;
      color: var(--red);
      background: #fff;
    }
    .sport.active .sport-ico {
      background: var(--red);
      border-color: var(--red);
      color: #fff;
      box-shadow: 0 8px 16px rgba(255, 42, 66, 0.22);
    }
    .sport.active .sport-name { color: var(--text); }
    .sport.active .sport-count {
      background: #fff;
      border-color: #fff;
      color: var(--red);
      box-shadow: 0 2px 8px rgba(255, 42, 66, 0.2);
    }

    .rail-sport {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
      gap: 4px;
    }
    .rail-sport.more { display: none; }
    .rail-leagues { display: none; }
    .rail-league {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
      min-height: 34px;
      padding: 4px 8px;
      border-radius: 9px;
      color: #5a6472;
      font-size: 13px;
      font-weight: 500;
      background: transparent;
      transition: background 140ms, color 140ms, box-shadow 140ms;
    }
    .rail-league:hover {
      color: var(--text);
      background: #fff;
    }
    .rail-league.on {
      color: var(--red);
      background: #fff;
      box-shadow: 0 4px 10px rgba(27, 36, 51, 0.05);
    }
    .rail-league img.crest,
    .rail-league .crest-fallback {
      width: 22px;
      height: 22px;
      flex-shrink: 0;
      border-radius: 50%;
      object-fit: contain;
      background: #fff;
      box-shadow: 0 0 0 1px var(--line);
    }
    .rail-league .crest-fallback {
      font-size: 8px;
      color: #5a6472;
    }
    .rail-league.on .crest-fallback {
      color: var(--red);
      box-shadow: 0 0 0 1px #ffc4cb;
    }
    .rail-league span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .view-all {
      margin-top: auto;
      width: 48px;
      height: 48px;
      padding: 0;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: #fff;
      color: #3a4250;
      display: grid;
      place-items: center;
      flex-shrink: 0;
      box-shadow: 0 4px 12px rgba(27, 36, 51, 0.04);
      transition: color 180ms, border-color 180ms, background 180ms, width 220ms ease, box-shadow 180ms;
    }
    .view-all-label { display: none; font-size: 13px; font-weight: 500; }
    .view-all:hover {
      color: var(--red);
      border-color: #ffc4cb;
      background: #fff8f8;
      box-shadow: 0 8px 16px rgba(255, 42, 66, 0.1);
    }
    .view-all:focus-visible {
      outline: 2px solid var(--red);
      outline-offset: 2px;
    }

    .rail.open {
      align-items: stretch;
      padding: 14px 10px 12px;
      background: #fff;
    }
    .rail.open .rail-kicker { display: block; }
    .rail.open .rail-list {
      align-items: stretch;
      overflow-y: auto;
      padding: 0;
      gap: 4px;
    }
    .rail.open .sport {
      width: 100%;
      height: 52px;
      grid-template-columns: 40px minmax(0, 1fr) auto;
      justify-content: start;
      align-items: center;
      gap: 10px;
      padding: 0 10px 0 6px;
      background: #fff;
      border-color: var(--line);
      box-shadow: 0 6px 16px rgba(27, 36, 51, 0.04);
    }
    .rail.open .sport-ico {
      background: #f3f5f8;
      border-color: transparent;
      box-shadow: none;
    }
    .rail.open .sport.active .sport-ico {
      background: var(--red);
      border-color: var(--red);
      color: #fff;
    }
    .rail.open .sport-name { display: block; }
    .rail.open .sport-count {
      position: static;
      min-width: 24px;
      height: 24px;
      padding: 0 8px;
      font-size: 11px;
      box-shadow: none;
      background: #f3f5f8;
      border: 0;
      color: var(--muted);
    }
    .rail.open .sport:hover {
      border-color: #ffc4cb;
      background: #fff;
      box-shadow: 0 10px 22px rgba(255, 42, 66, 0.08);
      transform: translateY(-1px);
    }
    .rail.open .sport.active {
      background: #fff8f8;
      border-color: #ffc4cb;
      box-shadow: 0 10px 22px rgba(255, 42, 66, 0.08);
    }
    .rail.open .sport.active .sport-count {
      background: var(--red-dim);
      color: var(--red);
    }
    .rail.open .rail-sport.more { display: flex; }
    .rail.open .rail-sport { align-items: stretch; gap: 6px; }
    .rail.open .rail-sport.is-on .rail-leagues {
      display: flex;
      flex-direction: column;
      gap: 2px;
      margin: 0 2px 12px 18px;
      padding: 6px;
      background: #f6f7fa;
      border: 1px solid #eef1f6;
      border-radius: 12px;
    }
    .rail.open .rail-sport.is-on.is-folded .rail-leagues { display: none; }
    .rail.open .view-all {
      width: 100%;
      height: 44px;
      grid-template-columns: 18px auto;
      justify-content: center;
      gap: 10px;
      margin-top: 10px;
    }
    .rail.open .view-all-label { display: inline; }

    /* ========== BOARD ========== */
    .board {
      display: grid;
      grid-template-columns: 300px minmax(0, 1fr) 340px;
      gap: 18px;
      padding: 18px 20px 28px;
      align-items: start;
      min-width: 0;
      overflow-x: hidden;
    }

    .card {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }

    .card-pad { padding: 16px; }
    .col-left { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

    .section-title {
      font-size: 15px;
      font-weight: 600;
      margin-bottom: 12px;
      letter-spacing: -0.02em;
    }

    /* Live match */
    .live-card {
      padding: 14px 14px 16px;
    }

    .live-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 14px;
    }

    .league-chip {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
      padding: 6px 10px 6px 6px;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 12px;
    }

    .league-chip img {
      width: 22px;
      height: 22px;
      object-fit: contain;
      flex-shrink: 0;
    }

    .league-chip strong { font-size: 13px; display: block; line-height: 1.2; }
    .league-chip span { font-size: 11px; color: var(--muted); }

    .live-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 10px;
      border-radius: 999px;
      background: var(--red);
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      box-shadow: 0 8px 16px rgba(255, 42, 66, 0.28);
      flex-shrink: 0;
    }

    .live-badge i {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #fff;
      box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
      animation: pulse 1.6s infinite;
    }

    @keyframes pulse {
      70% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
    }
    @media (prefers-reduced-motion: reduce) {
      .live-badge i { animation: none; }
      .ghost:hover, .btn-bet:hover, .m-row:hover, .play-tile:hover, .join-btn:hover, .safe-card:hover { transform: none; }
    }

    .scoreboard {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 8px;
      margin-bottom: 14px;
      padding: 14px 8px 12px;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 16px;
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    }

    .team {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      text-align: center;
      min-width: 0;
    }

    .team-crest {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: var(--card-2);
      border: 1px solid var(--line);
      box-shadow: 0 6px 14px rgba(27, 36, 51, 0.06);
    }

    .team img {
      width: 40px;
      height: 40px;
      object-fit: contain;
    }

    .team b {
      font-size: 12px;
      font-weight: 600;
      line-height: 1.25;
      max-width: 100%;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }

    .score-block {
      text-align: center;
      min-width: 84px;
    }

    .score-block .nums {
      font-size: 30px;
      font-weight: 700;
      letter-spacing: -0.04em;
      line-height: 1;
      font-variant-numeric: tabular-nums;
    }
    .score-block .nums span {
      margin: 0 3px;
      color: var(--faint);
      font-weight: 500;
    }

    .score-block .min {
      display: inline-flex;
      margin-top: 8px;
      padding: 3px 8px;
      border-radius: 999px;
      background: var(--red-dim);
      color: var(--red-2);
      font-size: 11px;
      font-weight: 700;
    }

    .bet-row {
      display: grid;
      grid-template-columns: 40px 1fr 40px;
      gap: 8px;
      align-items: center;
    }

    .ghost {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      border: 1px solid var(--line-2);
      display: grid;
      place-items: center;
      color: var(--muted);
      background: #fff;
      transition: color 180ms, border-color 180ms, background 180ms, transform 180ms;
    }
    .ghost:hover { color: var(--text); background: var(--card-2); transform: translateY(-1px); }
    .ghost.loved { color: var(--red); border-color: rgba(255, 42, 66, 0.4); background: var(--red-dim); }

    .btn-bet {
      height: 44px;
      border-radius: 12px;
      background: linear-gradient(180deg, #ff4b5e 0%, #ff2a42 100%);
      color: #fff;
      font-weight: 700;
      font-size: 14px;
      box-shadow: 0 10px 28px rgba(255, 42, 66, 0.45);
      transition: transform 180ms, filter 180ms;
    }
    .btn-bet:hover { filter: brightness(1.06); transform: translateY(-1px); }
    a.btn-bet { display: grid; place-items: center; text-decoration: none; }

    .btn-outline {
      width: 100%;
      height: 40px;
      border-radius: 12px;
      border: 1px solid var(--line-2);
      color: var(--text);
      font-weight: 600;
      background: transparent;
      transition: background 180ms, border-color 180ms;
    }
    .btn-outline:hover { background: var(--card-2); border-color: #c5cad6; }

    /* Favorite leagues */
    .fav {
      margin-top: 0;
      display: flex;
      flex-direction: column;
      max-height: min(72vh, 680px);
      background: linear-gradient(180deg, rgba(27, 36, 51, 0.025) 0%, #fff 28%);
    }

    .fav-head {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 12px;
    }
    .fav-head .char-top { min-width: 0; }
    .fav-head .section-title { font-size: 15px; }
    .fav .char-ico,
    .matches .char-ico {
      color: var(--red);
      border-color: rgba(255, 42, 66, 0.22);
    }
    .fav-count {
      margin-left: auto;
      font-size: 11px;
      font-weight: 700;
      color: var(--muted);
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 3px 8px;
      min-width: 26px;
      text-align: center;
    }
    .fav-all {
      font-size: 12px;
      font-weight: 700;
      color: var(--muted);
      padding: 4px 8px;
      border-radius: 8px;
    }
    .fav-all:hover { color: var(--text); background: var(--card-2); }
    .fav-find {
      position: relative;
      display: block;
      margin-bottom: 10px;
    }
    .fav-find i {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--faint);
      font-size: 12px;
      pointer-events: none;
    }
    .fav-find input {
      width: 100%;
      height: 40px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff;
      color: var(--text);
      padding: 0 12px 0 34px;
      font: inherit;
      font-size: 13px;
      transition: border-color 180ms, box-shadow 180ms;
    }
    .fav-find input:focus {
      outline: none;
      border-color: rgba(255, 42, 66, 0.45);
      box-shadow: 0 0 0 3px var(--red-dim);
    }
    .fav-find input::placeholder { color: var(--faint); }
    .fav-list {
      overflow-y: auto;
      min-height: 0;
      padding-right: 2px;
      display: grid;
      gap: 8px;
    }
    .comp-block {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 14px;
      overflow: hidden;
      transition: border-color 180ms, box-shadow 180ms;
    }
    .comp-block:hover,
    .comp-block.is-open {
      border-color: #d0d6e2;
      box-shadow: 0 6px 16px rgba(27, 36, 51, 0.05);
    }
    .comp-block.is-fav { border-color: rgba(255, 42, 66, 0.22); }
    .comp-toggle {
      min-width: 32px;
      height: 28px;
      padding: 0 8px;
      border-radius: 999px;
      background: var(--card-2);
      border: 1px solid var(--line);
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
    }
    .comp-toggle:hover, .comp-block.is-open .comp-toggle {
      color: var(--text);
      background: #eef1f6;
    }
    .comp-teams {
      display: grid;
      gap: 2px;
      padding: 0 8px 8px;
      border-top: 1px solid var(--line);
      margin-top: 2px;
    }
    .comp-teams[hidden] { display: none; }
    .team-row {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 7px 8px;
      border-radius: 10px;
    }
    .team-row:hover { background: var(--card-2); }
    .team-row span { min-width: 0; }
    .team-row b { display: block; font-size: 12px; }
    .team-row em { display: block; font-size: 10px; color: var(--muted); font-style: normal; }
    .club-block { padding: 16px; margin-bottom: 14px; min-width: 0; max-width: 100%; }
    .club-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
      gap: 8px;
      width: 100%;
      min-width: 0;
    }
    .club-card {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px;
      border-radius: 12px;
      background: var(--card-2);
      min-width: 0;
    }
    .club-card[hidden], .event-row[hidden], .event-block[hidden] { display: none !important; }
    .club-card:hover { background: #eef1f6; }
    .club-card b { display: block; font-size: 13px; }
    .club-card em { display: block; font-size: 11px; color: var(--muted); font-style: normal; }

    .league-row {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 6px 6px 6px 8px;
      border-radius: 14px;
      transition: background 180ms;
    }
    .league-row:hover { background: transparent; }
    .league-row.is-fav .info b { color: var(--text); }
    .league-open {
      display: flex;
      align-items: center;
      gap: 10px;
      flex: 1;
      min-width: 0;
      padding: 4px 2px;
      border-radius: 8px;
    }
    .league-open:hover { color: inherit; }

    .league-row img.crest,
    .league-chip img.crest {
      object-fit: contain;
      background: #eef1f6;
      border-radius: 50%;
      padding: 3px;
      flex-shrink: 0;
    }
    .league-row img.crest { width: 32px; height: 32px; }

    .league-row .info { flex: 1; min-width: 0; }
    .league-row .info b { display: block; font-size: 13px; }
    .league-row .info span {
      font-size: 11px;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .league-row .info span img {
      width: 14px;
      height: 10px;
      object-fit: cover;
      border-radius: 2px;
    }

    .heart {
      width: 32px;
      height: 32px;
      color: var(--faint);
      display: grid;
      place-items: center;
      border-radius: 10px;
      flex-shrink: 0;
    }
    .heart:hover { color: var(--red); background: var(--red-dim); }
    .heart.on { color: var(--red); }

    .spotlight {
      overflow: hidden;
      min-width: 0;
    }
    .spotlight .hero-copy,
    .spotlight .hero-player,
    .spotlight .stats-grid {
      transition: opacity 280ms ease, transform 280ms ease;
    }
    .spotlight.is-swap .hero-copy,
    .spotlight.is-swap .hero-player,
    .spotlight.is-swap .stats-grid {
      opacity: 0;
      transform: translateY(8px);
    }

    /* Hero */
    .hero {
      position: relative;
      height: 148px;
      overflow: hidden;
      color: #fff;
      background:
        radial-gradient(90% 120% at 88% 18%, rgba(255, 255, 255, 0.18), transparent 42%),
        linear-gradient(118deg, #9b0d22 0%, #ff2a42 46%, #5c0814 100%);
      border: 0;
      border-radius: 0;
    }

    .hero-copy {
      position: relative;
      z-index: 2;
      padding: 16px 18px 18px;
      max-width: 62%;
    }
    .spot-kicker {
      margin: 0 0 6px;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      opacity: 0.78;
    }

    .hero-copy .first {
      font-size: 15px;
      font-weight: 600;
      opacity: 0.92;
    }

    .hero-copy h1 {
      font-size: 24px;
      font-weight: 700;
      letter-spacing: -0.04em;
      line-height: 1.05;
      margin: 1px 0 6px;
      color: #fff;
    }

    .hero-copy .pos {
      font-size: 12px;
      opacity: 0.82;
    }

    .rating {
      position: absolute;
      top: 12px;
      right: 12px;
      z-index: 3;
      padding: 5px 10px;
      border-radius: 999px;
      background: rgba(0, 0, 0, 0.38);
      backdrop-filter: blur(8px);
      font-weight: 800;
      font-size: 12px;
      letter-spacing: -0.02em;
    }

    .hero-player {
      position: absolute;
      right: 0;
      bottom: 0;
      height: 100%;
      width: 46%;
      z-index: 1;
      pointer-events: none;
    }

    .hero-player img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 12%;
      filter: drop-shadow(-10px 4px 16px rgba(0, 0, 0, 0.28));
    }
    .spot-timer {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 4;
      height: 3px;
      background: rgba(255, 255, 255, 0.18);
    }
    .spot-timer i {
      display: block;
      height: 100%;
      width: 0;
      background: #fff;
      transform-origin: left center;
    }
    .spotlight.is-timed .spot-timer i {
      width: 100%;
      transition: width 20s linear;
    }

    /* Stats */
    .stats-grid {
      display: grid;
      gap: 10px;
      padding: 12px;
      background: var(--card);
    }

    .char-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }

    .char,
    .passing {
      background: var(--card-2);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 12px 12px 14px;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .char.is-good { border-color: rgba(26, 163, 106, 0.22); background: linear-gradient(180deg, rgba(26, 163, 106, 0.06), var(--card-2) 42%); }
    .char.is-warn { border-color: rgba(197, 137, 18, 0.24); background: linear-gradient(180deg, rgba(197, 137, 18, 0.07), var(--card-2) 42%); }
    .char.is-style { border-color: rgba(255, 42, 66, 0.16); background: linear-gradient(180deg, rgba(255, 42, 66, 0.05), var(--card-2) 42%); }

    .char-top {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .char-ico {
      width: 26px;
      height: 26px;
      border-radius: 8px;
      display: grid;
      place-items: center;
      flex-shrink: 0;
      font-size: 11px;
      background: #fff;
      color: var(--muted);
      border: 1px solid var(--line);
    }
    .char.is-good .char-ico { color: var(--green); border-color: rgba(26, 163, 106, 0.28); }
    .char.is-warn .char-ico { color: var(--amber); border-color: rgba(197, 137, 18, 0.3); }
    .char.is-style .char-ico,
    .passing .char-ico { color: var(--red); border-color: rgba(255, 42, 66, 0.22); }

    .char .label,
    .passing h3 {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
      margin: 0;
    }

    .char p {
      font-size: 13px;
      font-weight: 600;
      line-height: 1.4;
      color: var(--text);
      margin: 0;
      flex: 1;
    }

    .pill {
      display: inline-flex;
      align-items: center;
      align-self: flex-start;
      padding: 4px 8px;
      border-radius: 999px;
      font-size: 10px;
      font-weight: 700;
    }
    .pill.good { background: var(--green-dim); color: var(--green); }
    .pill.warn { background: var(--amber-dim); color: var(--amber); }

    .passing { padding: 12px 14px 14px; }
    .pass-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
    }
    .pass-item {
      min-width: 0;
      padding: 8px 10px 10px;
      border-radius: 10px;
      background: #fff;
      border: 1px solid var(--line);
    }
    .pass-item.is-forward {
      border-color: rgba(255, 42, 66, 0.28);
      background: #fff5f6;
    }
    .pass-meta {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 6px;
      margin-bottom: 8px;
      font-size: 11px;
      color: var(--muted);
    }
    .pass-meta b {
      color: var(--text);
      font-size: 13px;
      font-variant-numeric: tabular-nums;
    }

    .track {
      height: 7px;
      background: #eef0f4;
      border-radius: 99px;
      overflow: hidden;
    }

    .track span {
      display: block;
      height: 100%;
      border-radius: 99px;
      background: linear-gradient(90deg, #ff8a97, var(--red));
      transition: width 320ms ease;
    }
    .pass-item.is-forward .track span {
      background: linear-gradient(90deg, #ff5a6c, var(--red));
    }
    .spot-dots {
      display: flex;
      justify-content: center;
      gap: 6px;
      padding: 0 10px 10px;
    }
    .spot-dots button {
      width: 7px;
      height: 7px;
      border-radius: 99px;
      background: var(--line-2);
    }
    .spot-dots button.on { background: var(--red); width: 16px; }

    /* Matches */
    .col-mid { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
    .matches {
      margin-top: 0;
      padding: 14px 12px 12px;
      background: linear-gradient(180deg, rgba(27, 36, 51, 0.025) 0%, #fff 22%);
    }

    .matches-head {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 12px;
      padding: 0 4px;
    }
    .matches-head .section-title { font-size: 15px; }
    .matches-list { display: grid; gap: 10px; }
    .matches-empty { color: var(--muted); padding: 14px 8px; font-size: 13px; }

    .m-row {
      display: grid;
      gap: 10px;
      padding: 12px 12px 11px;
      border-radius: 16px;
      background: #fff;
      border: 1px solid var(--line);
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
      transition: border-color 180ms, box-shadow 180ms, transform 180ms;
    }
    .m-row:hover {
      border-color: #d0d6e2;
      box-shadow: 0 10px 22px rgba(27, 36, 51, 0.07);
      transform: translateY(-1px);
    }

    .m-meta {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }
    .m-comp { flex: 1; min-width: 0; }
    .m-comp b {
      display: block;
      font-size: 12px;
      line-height: 1.2;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .m-comp span { font-size: 11px; color: var(--muted); }

    .m-sides {
      display: grid;
      gap: 6px;
      padding: 8px 10px;
      border-radius: 12px;
      background: var(--card-2);
      border: 1px solid var(--line);
    }
    .m-side {
      display: grid;
      grid-template-columns: 24px minmax(0, 1fr) 28px;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }
    .m-side b {
      font-size: 13px;
      font-weight: 600;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    .m-side em {
      font-style: normal;
      font-size: 16px;
      font-weight: 700;
      text-align: right;
      font-variant-numeric: tabular-nums;
      letter-spacing: -0.03em;
    }
    .m-side.is-win b { color: var(--text); }
    .m-side.is-win em { color: var(--red); }
    .m-side.is-lose b,
    .m-side.is-lose em { color: var(--muted); font-weight: 500; }

    .m-row .events {
      justify-content: flex-start;
      padding: 0 2px;
    }

    .events {
      display: flex;
      justify-content: center;
      gap: 3px;
    }

    .ev {
      width: 14px;
      height: 16px;
      border-radius: 2px;
    }
    .ev.yc { background: #f5d000; }
    .ev.rc { background: #e10600; }
    .ev.goal {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: #fff;
      box-shadow: inset 0 0 0 2px #222;
    }

    .m-rate {
      min-width: 42px;
      height: 28px;
      padding: 0 8px;
      border-radius: 999px;
      background: #eef1f6;
      display: grid;
      place-items: center;
      font-size: 11px;
      font-weight: 700;
      border: 1px solid transparent;
      flex-shrink: 0;
    }
    .m-rate.hi { background: var(--green-dim); color: var(--green); border-color: rgba(26, 163, 106, 0.2); }
    .m-rate.mid { background: var(--amber-dim); color: var(--amber); border-color: rgba(197, 137, 18, 0.22); }

    /* Right column */
    .col-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
    .kick-card .char-ico,
    .play-card .char-ico { color: var(--red); border-color: rgba(255, 42, 66, 0.22); }

    .join-card {
      padding: 16px 16px 14px;
    }
    .join-top {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 10px;
    }
    .join-card .char-ico {
      color: var(--red);
      border-color: rgba(255, 42, 66, 0.22);
    }
    .join-kicker {
      margin: 0;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--red-2);
    }
    .join-card h2 {
      font-size: 22px;
      font-weight: 700;
      letter-spacing: -0.03em;
      line-height: 1.2;
      margin-bottom: 6px;
    }
    .join-card h2 em {
      font-style: normal;
      color: var(--red);
    }
    .join-card > p {
      font-size: 13px;
      color: var(--muted);
      line-height: 1.45;
    }
    .join-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-top: 14px;
    }
    .join-btn {
      height: 44px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      font-size: 13px;
      font-weight: 700;
      background: linear-gradient(180deg, #ff4b5e 0%, #ff2a42 100%);
      color: #fff;
      box-shadow: 0 10px 22px rgba(255, 42, 66, 0.28);
      transition: transform 180ms, filter 180ms;
    }
    .join-btn:hover { filter: brightness(1.06); transform: translateY(-1px); color: #fff; }
    .join-btn.is-ghost {
      background: #fff;
      color: var(--text);
      border: 1px solid var(--line-2);
      box-shadow: none;
    }
    .join-btn.is-ghost:hover {
      color: var(--text);
      background: var(--card-2);
      border-color: #c5cad6;
      filter: none;
    }

    .kick-card, .play-card { padding: 14px; }
    .kick-list { display: grid; gap: 8px; }
    .kick-row {
      padding: 10px;
      border-radius: 14px;
      background: #fff;
      border: 1px solid var(--line);
    }
    .kick-meta {
      display: grid;
      grid-template-columns: 44px minmax(0, 1fr);
      gap: 10px;
      align-items: center;
      margin-bottom: 8px;
    }
    .kick-when { font-size: 11px; color: var(--muted); line-height: 1.2; }
    .kick-when b { display: block; color: var(--text); font-size: 13px; }
    .kick-when em {
      display: inline-flex;
      font-style: normal;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: #fff;
      background: var(--red);
      border-radius: 999px;
      padding: 2px 6px;
    }
    .kick-sides { display: grid; gap: 4px; min-width: 0; }
    .kick-sides span {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      font-weight: 600;
      min-width: 0;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    .kick-odds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .kick-odds .odd-chip { min-width: 0; width: 100%; padding: 6px 4px 5px; }

    .play-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .play-tile {
      display: grid;
      gap: 4px;
      padding: 12px 10px;
      border-radius: 14px;
      background: var(--card-2);
      border: 1px solid var(--line);
      min-width: 0;
      transition: border-color 180ms, background 180ms, transform 180ms;
    }
    .play-tile:hover { background: #fff; border-color: #d0d6e2; transform: translateY(-1px); }
    .play-tile i {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      display: grid;
      place-items: center;
      background: #fff;
      border: 1px solid var(--line);
      color: var(--red);
      font-size: 12px;
    }
    .play-tile b { font-size: 13px; }
    .play-tile span { font-size: 11px; color: var(--muted); }

    .safe-card {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 14px;
      color: var(--text);
      background: linear-gradient(180deg, rgba(27, 36, 51, 0.025) 0%, #fff 70%);
      transition: border-color 180ms, box-shadow 180ms, transform 180ms;
    }
    .safe-card:hover {
      color: var(--text);
      border-color: #d0d6e2;
      box-shadow: 0 8px 18px rgba(27, 36, 51, 0.06);
      transform: translateY(-1px);
    }
    .safe-age {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      background: var(--red-dim);
      color: var(--red-2);
      border: 1px solid rgba(255, 42, 66, 0.18);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: -0.02em;
      flex-shrink: 0;
    }
    .safe-copy { flex: 1; min-width: 0; }
    .safe-copy b { display: block; font-size: 13px; line-height: 1.25; }
    .safe-copy span { display: block; font-size: 12px; color: var(--muted); }
    .safe-card > i {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      display: grid;
      place-items: center;
      margin-left: auto;
      color: var(--muted);
      font-size: 11px;
      background: var(--card-2);
      border: 1px solid var(--line);
      flex-shrink: 0;
    }

    .actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-bottom: 0;
    }

    .btn-friend {
      height: 48px;
      border-radius: 12px;
      background: #fff;
      border: 1px solid var(--line);
      font-weight: 700;
      display: grid;
      place-items: center;
      transition: background 180ms;
    }
    .btn-friend:hover { background: #eef1f6; }

    .actions .btn-bet { height: 48px; }

    .wallet { padding: 18px 16px 16px; }

    .wallet .label {
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 6px;
    }

    .balance-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .balance {
      font-size: 32px;
      font-weight: 600;
      letter-spacing: -0.03em;
    }

    .delta {
      padding: 4px 8px;
      border-radius: 8px;
      background: var(--green-dim);
      color: var(--green);
      font-size: 12px;
      font-weight: 700;
    }

    .wallet .hint {
      margin-top: 8px;
      font-size: 12px;
      color: var(--muted);
    }
    .delta.down { background: var(--red-dim); color: var(--red-2); }
    .wallet-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
    .wallet-actions button, .wallet-actions a {
      height: 32px; border-radius: 8px; background: var(--card-2);
      color: var(--muted); font-size: 12px; font-weight: 700;
      display: grid; place-items: center;
    }
    .wallet-actions button:hover, .wallet-actions a:hover { color: var(--text); background: #eef1f6; }

    .chart-card { margin-top: 0; padding: 16px 14px 10px; }

    .chart-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
    }

    .legend {
      display: flex;
      gap: 8px;
      font-size: 11px;
      color: var(--muted);
    }
    .legend-btn { color: var(--faint); }
    .legend-btn.on { color: var(--text); }

    .legend i {
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      margin-right: 4px;
    }
    .legend .this { background: var(--red); }
    .legend .last { background: var(--green); }

    .chart-wrap { position: relative; }
    .chart-hits {
      position: absolute; left: 0; right: 0; top: 0; height: 140px;
      display: grid; grid-template-columns: repeat(7, 1fr); z-index: 2;
    }
    .chart-hit { height: 100%; border-radius: 8px; }
    .chart-hit:hover, .chart-hit.on { background: rgba(27, 36, 51, 0.04); }
    .chart-card.hide-this .this-line,
    .chart-card.hide-last .last-line { opacity: 0.12; }
    .days span.on { color: var(--text); font-weight: 700; }
    .tip b { display: block; }
    .tip small { display: block; color: #666; font-weight: 500; font-size: 10px; }

    .tip {
      position: absolute;
      left: 58%;
      top: 8px;
      transform: translateX(-50%);
      background: #fff;
      color: #111;
      padding: 6px 10px;
      border-radius: 8px;
      font-size: 11px;
      font-weight: 700;
      line-height: 1.25;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
      pointer-events: none;
    }
    .tip span { display: block; color: #666; font-weight: 500; font-size: 10px; }

    .days {
      display: flex;
      justify-content: space-between;
      padding: 0 4px 4px;
      font-size: 10px;
      color: var(--faint);
    }

    .history { margin-top: 14px; padding: 16px 12px; }

    .bet-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .bet-card {
      background: var(--card-2);
      border-radius: 12px;
      padding: 10px;
    }

    .bet-card .when {
      display: flex;
      justify-content: space-between;
      font-size: 10px;
      color: var(--muted);
      margin-bottom: 8px;
    }

    .bet-card .when img {
      width: 16px;
      height: 16px;
      object-fit: contain;
    }

    .bet-vs {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 4px;
      margin-bottom: 8px;
    }

    .bet-vs .t {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      width: 40px;
    }

    .bet-vs img { width: 22px; height: 22px; object-fit: contain; }
    .bet-vs .t span { font-size: 9px; color: var(--muted); text-align: center; }
    .bet-vs strong { font-size: 14px; }

    .win {
      display: inline-flex;
      padding: 2px 7px;
      border-radius: 6px;
      background: var(--green-dim);
      color: var(--green);
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.04em;
    }
    .win.lose { background: var(--red-dim); color: var(--red-2); }

    .odds {
      font-size: 11px;
      color: var(--muted);
      margin: 6px 0 8px;
    }

    .money {
      display: flex;
      justify-content: space-between;
      font-size: 10px;
      color: var(--muted);
    }
    .money b { display: block; font-size: 12px; margin-top: 2px; }
    .money .up { color: var(--green); }
    .money .down { color: var(--red-2); }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation: none !important;
        transition: none !important;
      }
    }

    @media (max-width: 1280px) {
      .board { grid-template-columns: 270px 1fr 300px; }
      .hero-copy h1 { font-size: 28px; }
      .brand-text { display: none; }

      .topbar {
        height: auto;
        min-height: 0;
        display: grid;
        grid-template-columns: 40px auto minmax(0, 1fr) auto;
        grid-template-areas:
          "burger brand search account"
          "nav nav nav nav";
        align-items: center;
        column-gap: 8px;
        row-gap: 0;
        padding: 8px 10px 0;
      }
      .book-burger {
        display: grid;
        grid-area: burger;
        place-items: center;
        width: 40px;
        height: 40px;
        border-radius: 11px;
        background: #f3f5f8;
        color: var(--text);
        font-size: 15px;
      }
      .book-burger[aria-expanded="true"] {
        background: var(--red-dim);
        color: var(--red);
      }
      .brand { grid-area: brand; }
      .logo, .logo-img { width: 36px; height: 36px; border-radius: 10px; }
      .search {
        grid-area: search;
        width: auto;
        min-width: 0;
        height: 40px;
        padding: 0 12px;
      }
      .search input {
        min-width: 0;
        width: 100%;
        text-overflow: ellipsis;
        font-size: 13px;
      }
      .search input::placeholder { font-size: 12px; }
      .search-panel { width: 100%; max-width: none; }
      .top-right {
        grid-area: account;
        margin-left: 0;
        position: static;
      }
      .profile { padding: 2px; height: 40px; width: 40px; justify-content: center; }
      .profile .meta { display: none; }
      .btn-login {
        height: 40px;
        padding: 0 12px;
        font-size: 12px;
        white-space: nowrap;
        box-shadow: none;
        border-radius: 11px;
      }
      .nav-links {
        grid-area: nav;
        flex: none;
        width: auto;
        margin: 8px -10px 0;
        padding: 6px 10px 8px;
        gap: 4px;
        border-radius: 0;
        background: #f3f5f8;
        border-top: 1px solid var(--line);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent);
      }
      .nav-links a {
        padding: 7px 12px;
        font-size: 12px;
        background: transparent;
      }
      .nav-links a.active {
        background: #fff;
        box-shadow: 0 1px 2px rgba(27, 36, 51, 0.08);
      }

      .book-scrim {
        display: none;
        position: fixed;
        inset: var(--bar, 64px) 0 0 0;
        z-index: 40;
        background: rgba(27, 36, 51, 0.45);
      }
      .book-scrim.is-on { display: block; }

      .shell,
      .shell.rail-open {
        display: block;
        grid-template-columns: none;
      }
      .rail {
        position: fixed;
        left: 0;
        top: var(--bar, 64px);
        z-index: 45;
        width: min(86vw, 300px);
        height: calc(100dvh - var(--bar, 64px));
        max-height: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 12px 10px calc(16px + env(safe-area-inset-bottom));
        overflow: hidden;
        border-right: 1px solid var(--line);
        background: #fff;
        box-shadow: none;
        transform: translateX(-105%);
        transition: transform 220ms ease, box-shadow 220ms ease;
        pointer-events: none;
      }
      .rail.open {
        transform: none;
        box-shadow: 16px 0 40px rgba(27, 36, 51, 0.18);
        max-height: none;
        pointer-events: auto;
        padding: 12px 10px calc(16px + env(safe-area-inset-bottom));
      }
      .rail-list {
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 0;
      }
      .rail .view-all { display: none; }
    }

    @media (max-width: 1100px) {
      .board { grid-template-columns: 1fr 1fr; }
      .col-left { grid-column: 1; }
      .col-mid { grid-column: 1 / -1; order: -1; }
      .col-right { grid-column: 2; }
    }

    @media (max-width: 780px) {
      .topbar {
        grid-template-columns: 40px 1fr auto;
        grid-template-areas:
          "burger brand account"
          "search search search"
          "nav nav nav";
      }
      .search {
        margin-top: 2px;
        height: 38px;
      }
      .board {
        grid-template-columns: 1fr;
        padding: 12px 12px 24px;
        gap: 12px;
      }
      .col-left, .col-right, .col-mid { grid-column: auto; order: 0; }
      .char-grid { grid-template-columns: 1fr; }
      .stats-grid { grid-template-columns: 1fr; }
      .pass-grid { grid-template-columns: 1fr 1fr; }
      .m-row { padding: 11px; }
      .m-row .events { display: none; }
      .event-row { grid-template-columns: 1fr; gap: 12px; }
      .event-odds { width: 100%; }
      .event-odds .odd-chip { flex: 1; min-width: 0; }

      .hero { height: 132px; }
      .hero-copy { max-width: 70%; padding: 14px 14px 16px; }
      .hero-copy .first { font-size: 14px; }
      .hero-copy h1 { font-size: 20px; }
      .sport-hero-row { flex-wrap: wrap; gap: 8px; }
      .sport-hero-row h1 { font-size: 22px; }
      .scoreboard { gap: 4px; padding: 12px 6px 10px; }
      .team-crest { width: 48px; height: 48px; }
      .score-block .nums { font-size: 26px; }
      .card-pad { padding: 14px; }
    }

    @media (max-width: 420px) {
      .logo, .logo-img { width: 36px; height: 36px; border-radius: 10px; }
      .m-side { grid-template-columns: 22px minmax(0, 1fr) 24px; }
      .join-actions { grid-template-columns: 1fr; }
      .btn-login { padding: 0 10px; }
    }

    .search { position: relative; }

    .search-panel {
      max-height: 380px;
      overflow: auto;
      display: none;
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      width: min(320px, 100%);
      max-width: calc(100vw - 24px);
      background: var(--card);
      border: 1px solid var(--line-2);
      border-radius: 12px;
      box-shadow: var(--shadow);
      z-index: 60;
    }
    .search-panel.open { display: block; }
    .search-panel a, .search-panel .empty {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      font-size: 13px;
    }
    .search-panel a:hover, .search-panel a.on { background: var(--card-2); }
    .search-panel img, .search-ico {
      width: 22px; height: 22px; object-fit: contain; flex-shrink: 0;
    }
    .search-ico {
      display: grid; place-items: center; border-radius: 6px;
      background: var(--card-2); font-size: 10px; font-weight: 600; color: var(--muted);
    }
    .search-panel a span { display: grid; gap: 1px; min-width: 0; }
    .search-panel a b { font-size: 13px; }
    .search-panel a small { color: var(--muted); font-size: 11px; }
    .search-panel .empty { color: var(--muted); }

    .toast {
      position: fixed;
      top: 76px;
      right: 20px;
      z-index: 120;
      padding: 12px 16px;
      border-radius: 12px;
      background: var(--card);
      border: 1px solid var(--line-2);
      box-shadow: var(--shadow);
      font-size: 13px;
      font-weight: 600;
    }
    .toast.ok { border-color: rgba(26, 163, 106, 0.35); }
    .toast.err { border-color: rgba(255, 42, 66, 0.45); }

    .overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.55);
      z-index: 80;
      place-items: center;
      padding: 20px;
    }
    .overlay.show { display: grid; }
    .overlay[hidden] { display: none !important; }

    .modal {
      width: min(420px, 100%);
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 20px;
      box-shadow: var(--shadow);
    }
    .modal h3 { font-size: 18px; margin-bottom: 6px; }
    .modal .sub { color: var(--muted); font-size: 12px; margin-bottom: 16px; }
    .odds-row {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 8px;
      margin-bottom: 14px;
    }
    .odd-btn {
      border: 1px solid var(--line-2);
      border-radius: 12px;
      padding: 10px 8px;
      background: var(--card-2);
      text-align: center;
    }
    .odd-btn small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
    .odd-btn b { font-size: 16px; }
    .odd-btn.picked { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
    .field { margin-bottom: 14px; }
    .field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
    .field input, .field select {
      width: 100%;
      height: 42px;
      border-radius: 10px;
      border: 1px solid var(--line-2);
      background: #fff;
      color: var(--text);
      padding: 0 12px;
      font-size: 14px;
    }
    .field input::placeholder { color: var(--faint); }
    .modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .btn-ghost {
      height: 44px;
      border-radius: 12px;
      border: 1px solid var(--line-2);
      font-weight: 600;
    }

    .page-card { padding: 28px; min-height: 280px; }
    .page-kicker {
      margin: 0 0 6px;
      font-family: var(--ex-mono);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--red);
    }
    .page-card h1 { font-size: 28px; margin-bottom: 8px; }
    .page-card p { color: var(--muted); max-width: 52ch; }
    .page-card p + p { margin-top: 12px; }
    .page-card.is-policy {
      max-width: 760px;
      margin: 0 auto;
      padding: 32px 32px 28px;
    }
    .page-card.is-policy p,
    .page-card.is-policy li { max-width: none; }
    .policy-lede {
      font-size: 15px;
      color: var(--text) !important;
      line-height: 1.55;
    }
    .policy-meta {
      margin-top: 8px !important;
      font-size: 12px;
      letter-spacing: 0.02em;
    }
    .policy-toc {
      margin: 22px 0 8px;
      padding: 16px 18px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: var(--card-2);
    }
    .policy-toc p {
      margin: 0 0 10px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--red);
    }
    .policy-toc ol {
      margin: 0;
      padding-left: 18px;
      display: grid;
      gap: 6px;
    }
    .policy-toc a {
      color: var(--text);
      text-decoration: none;
      font-weight: 600;
    }
    .policy-toc a:hover { color: var(--red); }
    .policy-section { margin-top: 28px; scroll-margin-top: 24px; }
    .policy-section h2 {
      font-size: 18px;
      letter-spacing: -0.03em;
      margin-bottom: 10px;
    }
    .policy-section ul {
      margin: 12px 0 0;
      padding-left: 18px;
      display: grid;
      gap: 8px;
      color: var(--muted);
    }
    .policy-section li { line-height: 1.5; }
    .policy-section a {
      color: var(--text);
      font-weight: 700;
      text-decoration: none;
    }
    .policy-section a:hover { color: var(--red); }
    @media (max-width: 720px) {
      .page-card.is-policy { padding: 22px 18px 20px; }
    }

    .friends-list { display: grid; gap: 8px; }
    .friend {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px;
      border-radius: 12px;
      background: var(--card-2);
    }
    .friend img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
    .friend b { display: block; }
    .friend span { font-size: 12px; color: var(--muted); }
    .dot {
      width: 8px; height: 8px; border-radius: 50%;
      background: var(--faint); margin-left: auto;
    }
    .dot.on { background: var(--green); }

    .detail-score { font-size: 42px; font-weight: 600; text-align: center; margin: 8px 0; }
    .markets { display: grid; gap: 8px; margin-top: 16px; }

    .crest-fallback {
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: #eef1f6;
      color: var(--text);
      font-weight: 600;
      flex-shrink: 0;
    }

    .match-page {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 16px;
      align-items: start;
      min-width: 0;
    }
    .match-main { min-width: 0; }
    .club-grid { width: 100%; min-width: 0; }
    .match-hero { grid-column: 1 / -1; padding: 18px 20px 0; min-width: 0; max-width: 100%; }
    .crumbs { display: flex; gap: 8px; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
    .crumbs a:hover { color: var(--text); }
    .hero-kick { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
    .hero-vs {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 16px;
      padding: 8px 0 18px;
    }
    .hero-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
    .hero-mid { text-align: center; color: var(--muted); font-size: 12px; }
    .sport-hero-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
    .sport-hero-row h1 { font-size: 28px; }
    .sport-hero-row i { font-size: 36px; color: var(--muted); }
    .hero-meta { color: var(--muted); margin-top: 4px; }
    .league-pills {
      display: flex;
      flex-wrap: nowrap;
      gap: 8px;
      padding: 14px 0 4px;
      max-width: 100%;
      overflow-x: auto;
    }
    .league-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 10px;
      border-radius: 999px;
      background: var(--card-2);
      color: inherit;
      text-decoration: none;
      font-size: 12px;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .league-pill img.crest { width: 16px; height: 16px; padding: 1px; }
    .league-pill.on { background: var(--red); color: #fff; }

    .match-tabs { display: flex; gap: 4px; overflow-x: auto; border-top: 1px solid var(--line); }
    .tab {
      padding: 12px 14px;
      color: var(--muted);
      font-weight: 600;
      font-size: 13px;
      white-space: nowrap;
    }
    .tab.on { color: var(--text); box-shadow: inset 0 -2px 0 var(--red); }
    .tab-panel { display: none; margin-bottom: 12px; }
    .tab-panel.on { display: block; }

    .prob-bar { display: flex; height: 28px; border-radius: 8px; overflow: hidden; font-size: 11px; font-weight: 700; }
    .prob-bar span { display: grid; place-items: center; }
    .p-home { background: #1f6f43; color: #fff; }
    .p-draw { background: #4a4d57; color: #fff; }
    .p-away { background: #c45a12; color: #fff; }
    .prob-legend { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--muted); }
    .h2h-box { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; text-align: center; }
    .h2h-box div { background: var(--card-2); border-radius: 12px; padding: 12px; }
    .h2h-box b { display: block; font-size: 22px; }
    .h2h-box span { color: var(--muted); font-size: 12px; }
    .disclaimer { margin: 10px 0; font-size: 11px; color: var(--faint); font-style: italic; }
    .meeting { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
    .meeting strong { color: var(--text); }

    .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .form-dots { display: flex; gap: 6px; margin-top: 8px; }
    .form-dots i {
      width: 28px; height: 28px; border-radius: 8px;
      display: grid; place-items: center; font-size: 12px; font-weight: 600;
    }
    .form-W { background: var(--green-dim); color: var(--green); }
    .form-D { background: #eef0f4; color: var(--muted); }
    .form-L { background: var(--red-dim); color: var(--red-2); }

    .stat-row { display: grid; grid-template-columns: 48px 1fr 48px; gap: 10px; align-items: center; margin-bottom: 10px; }
    .stat-row small { display: block; text-align: center; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
    .stat-track { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: #eef1f6; }
    .stat-track i { display: block; height: 100%; }

    .market-filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; }
    .filter-chip {
      padding: 7px 12px; border-radius: 999px; background: var(--card-2);
      font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap;
    }
    .filter-chip.on { background: var(--red); color: #fff; }

    .market-card { margin-bottom: 10px; overflow: hidden; }
    .market-head {
      width: 100%; display: flex; justify-content: space-between; align-items: center;
      padding: 12px 14px; font-weight: 700; background: var(--card-2);
    }
    .market-card.shut .market-body { display: none; }
    .market-card.shut .market-head svg { transform: rotate(-90deg); }
    .market-body { padding: 12px; }
    .flame { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff8a1d; margin-left: 6px; box-shadow: 0 0 8px #ff8a1d; }
    .odds-grid { display: grid; gap: 8px; }
    .cols-2 { grid-template-columns: 1fr 1fr; }
    .cols-3 { grid-template-columns: 1fr 1fr 1fr; }
    .odd-chip {
      background: #fff; border: 1px solid var(--line); border-radius: 12px;
      padding: 8px 8px 7px; text-align: center;
      min-width: 72px;
      transition: border-color 160ms, background 160ms, box-shadow 160ms, color 160ms;
    }
    .odd-chip small {
      display: block; color: var(--muted); font-size: 10px; font-weight: 600;
      letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px;
    }
    .odd-chip b {
      font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 15px; font-weight: 700; letter-spacing: -0.03em; color: var(--text);
    }
    .odd-chip:hover { border-color: var(--red); background: #fff1f3; }
    .odd-chip.on { border-color: var(--red); background: #fff1f3; box-shadow: 0 0 0 3px var(--red-dim); }
    .ou-row { display: grid; grid-template-columns: 48px 1fr; gap: 8px; align-items: center; margin-bottom: 8px; color: var(--muted); font-size: 12px; }

    .event-block {
      padding: 0;
      margin-bottom: 14px;
      overflow: hidden;
      container-type: inline-size;
      min-width: 0;
    }
    .event-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 16px 18px 14px;
      background: linear-gradient(180deg, #fff, #f8f9fc);
      border-bottom: 1px solid var(--line);
    }
    .event-head h2 {
      margin: 0;
      font-size: 15px;
      font-weight: 500;
      letter-spacing: -0.02em;
    }
    .event-head span {
      min-width: 24px;
      height: 24px;
      padding: 0 8px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      background: var(--red);
      color: #fff;
      font-size: 11px;
      font-weight: 600;
      text-align: center;
      box-shadow: 0 6px 12px rgba(255, 42, 66, 0.18);
    }
    .event-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 16px;
      align-items: center;
      padding: 14px 16px;
      border-top: 1px solid var(--line);
      background: #fff;
      transition: background 160ms ease, box-shadow 160ms ease;
      min-width: 0;
    }
    .event-row:first-of-type { border-top: 0; }
    .event-row:hover {
      background: #fff8f8;
      box-shadow: inset 0 0 0 1px #ffc4cb;
    }
    .event-row.is-live {
      background: #fff8f8;
    }
    .event-meta {
      display: grid;
      grid-template-columns: 58px minmax(0, 1fr);
      gap: 14px;
      align-items: center;
      min-width: 0;
    }
    .event-when {
      display: grid;
      place-items: center;
      gap: 2px;
      min-height: 56px;
      padding: 8px 6px;
      border-radius: 12px;
      background: #f3f5f8;
      text-align: center;
    }
    .event-when span {
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .event-when b {
      font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 15px;
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--text);
    }
    .event-when em {
      display: inline-block;
      font-style: normal;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #fff;
      background: var(--red);
      border-radius: 999px;
      padding: 3px 7px;
    }
    .event-row.is-live .event-when {
      background: var(--red);
      box-shadow: 0 8px 16px rgba(255, 42, 66, 0.22);
    }
    .event-row.is-live .event-when span,
    .event-row.is-live .event-when b { color: #fff; }
    .event-row.is-live .event-when em {
      background: #fff;
      color: var(--red);
    }
    .event-fixture { display: grid; gap: 8px; min-width: 0; }
    .event-league {
      display: flex;
      align-items: center;
      gap: 7px;
      min-width: 0;
      max-width: 100%;
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.04em;
      line-height: 1.2;
      color: var(--muted);
    }
    .event-league em {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-style: normal;
      font-weight: 500;
    }
    .event-league img.crest,
    .event-league .crest-fallback {
      width: 18px;
      height: 18px;
      border-radius: 5px;
      object-fit: contain;
      background: #fff;
      border: 1px solid var(--line);
      padding: 1px;
      flex-shrink: 0;
    }
    .event-teams {
      display: flex;
      flex-direction: column;
      gap: 8px;
      font-weight: 500;
      font-size: 14px;
      letter-spacing: -0.02em;
    }
    .event-teams > span { display: flex; align-items: center; gap: 10px; min-width: 0; }
    .event-teams em {
      flex: 1;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-style: normal;
      font-weight: 500;
    }
    .event-teams img.crest,
    .event-teams .crest-fallback {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      flex-shrink: 0;
      background: #fff;
      border: 1px solid var(--line);
    }
    .event-team-score {
      flex-shrink: 0;
      min-width: 1.25em;
      font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 16px;
      font-weight: 700;
      letter-spacing: -0.03em;
      text-align: right;
      color: var(--text);
    }
    .event-row.is-live .event-team-score { color: var(--red); }
    .event-odds { display: flex; align-items: stretch; gap: 8px; flex-shrink: 0; }
    .event-odds .odd-chip {
      min-width: 72px;
      min-height: 56px;
      padding: 8px 10px;
      display: grid;
      align-content: center;
      border-radius: 12px;
      background: #f7f8fb;
      box-shadow: inset 0 0 0 1px var(--line);
    }
    .event-odds .odd-chip small { color: var(--red); margin-bottom: 3px; }
    .event-odds .odd-chip b { font-size: 16px; }
    .event-odds .odd-chip:hover,
    .event-odds .odd-chip.on {
      background: var(--red);
      border-color: var(--red);
      box-shadow: 0 8px 16px rgba(255, 42, 66, 0.22);
    }
    .event-odds .odd-chip:hover small,
    .event-odds .odd-chip:hover b,
    .event-odds .odd-chip.on small,
    .event-odds .odd-chip.on b { color: #fff; }
    .event-ft {
      min-width: 56px;
      min-height: 56px;
      padding: 8px 12px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      background: #f3f5f8;
      color: var(--muted);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.08em;
    }
    .event-score { font-size: 18px; font-weight: 600; letter-spacing: -0.03em; }
    .event-score.is-final {
      min-width: 70px;
      padding: 10px 14px;
      border-radius: 12px;
      background: #eef1f6;
      text-align: center;
    }
    @container (max-width: 580px) {
      .event-row { grid-template-columns: 1fr; gap: 10px; }
      .event-odds { width: 100%; }
      .event-odds .odd-chip { flex: 1; min-width: 0; }
      .event-ft { width: 100%; }
    }
    .event-empty {
      margin: 0;
      padding: 4px 18px 18px;
      color: var(--muted);
    }

    .slip-card { padding: 0; overflow: hidden; min-width: 0; }
    .slip-head-actions {
      display: flex;
      align-items: flex-start;
      gap: 8px;
    }
    .slip-tabs[hidden] { display: none !important; }
    .slip-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      padding: 16px 16px 12px;
    }
    .slip-kicker {
      margin: 0 0 2px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .slip-head h2 {
      margin: 0;
      font-size: 18px;
      font-weight: 600;
      letter-spacing: -0.03em;
    }
    .slip-balance {
      display: grid;
      gap: 2px;
      min-width: 0;
      padding: 8px 10px;
      border-radius: 12px;
      background: #eef1f6;
      text-align: right;
    }
    .slip-balance span {
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .slip-balance b {
      font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 15px;
      letter-spacing: -0.03em;
      color: var(--text);
    }
    .slip-tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4px;
      margin: 0 16px 12px;
      padding: 4px;
      border-radius: 12px;
      background: #f3f5f8;
    }
    .slip-tabs button {
      height: 36px;
      border-radius: 9px;
      border: 0;
      background: transparent;
      color: #3a4250;
      font-weight: 600;
      font-size: 13px;
    }
    .slip-tabs button.on {
      background: #fff;
      color: var(--text);
      box-shadow: 0 1px 2px rgba(27, 36, 51, 0.08);
    }
    .slip-empty {
      display: grid;
      justify-items: center;
      gap: 6px;
      margin: 4px 16px 16px;
      padding: 22px 14px;
      border-radius: 14px;
      background: #f7f8fb;
      color: var(--muted);
      font-size: 13px;
      text-align: center;
    }
    .slip-empty[hidden] { display: none !important; }
    .slip-empty-ico {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      background: #eef1f6;
      color: #2a3344;
      font-size: 18px;
      margin-bottom: 4px;
    }
    .slip-empty p { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); }
    .slip-empty span { display: block; font-size: 12px; color: var(--faint); line-height: 1.45; }
    #slip-items {
      display: grid;
      gap: 10px;
      padding: 0 16px;
    }
    .slip-item {
      display: grid;
      gap: 10px;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 12px;
      box-shadow: 0 8px 18px rgba(27, 36, 51, 0.04);
    }
    .slip-item-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
    }
    .slip-item-event {
      display: grid;
      gap: 7px;
      min-width: 0;
      flex: 1;
    }
    .slip-item-market {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.04em;
      color: var(--muted);
    }
    .slip-item-side {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }
    .slip-item-side em {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-style: normal;
      font-size: 14px;
      font-weight: 600;
      letter-spacing: -0.02em;
      color: var(--text);
    }
    .slip-crest {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      object-fit: cover;
      background: #eef1f6;
      border: 1px solid var(--line);
      flex-shrink: 0;
    }
    .crest-fallback.slip-crest {
      font-size: 9px;
      padding: 0;
    }
    .slip-item-remove {
      width: 40px;
      height: 40px;
      display: grid;
      place-items: center;
      flex-shrink: 0;
      border-radius: 10px;
      border: 1px solid var(--line);
      background: #fff;
      color: #5b6474;
      font-size: 15px;
    }
    .slip-item-remove:hover {
      border-color: #ffc4cb;
      background: #fff1f3;
      color: var(--red);
    }
    .slip-item-pick {
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 48px;
      padding: 8px 12px;
      border-radius: 12px;
      background: var(--red);
      color: #fff;
      box-shadow: 0 8px 16px rgba(255, 42, 66, 0.22);
    }
    .slip-item-pick small {
      display: grid;
      place-items: center;
      min-width: 22px;
      height: 22px;
      padding: 0 6px;
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.18);
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.04em;
    }
    .slip-item-pick span {
      flex: 1;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 13px;
      font-weight: 700;
    }
    .slip-item-pick b {
      font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 16px;
      font-weight: 700;
      letter-spacing: -0.03em;
      flex-shrink: 0;
    }
    .slip-item-stake,
    .slip-item-win {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      min-height: 40px;
      padding: 8px 12px;
      border-radius: 10px;
      background: #f7f8fb;
    }
    .slip-item-stake span,
    .slip-item-win span {
      font-size: 12px;
      font-weight: 600;
      color: var(--muted);
    }
    .slip-item .stake-mini {
      width: 148px;
      height: 32px;
      margin: 0;
      border-radius: 8px;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--text);
      padding: 0 10px;
      text-align: right;
      font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 14px;
      font-weight: 700;
      letter-spacing: -0.02em;
    }
    .slip-item .stake-mini:focus {
      outline: none;
      border-color: var(--red);
      box-shadow: 0 0 0 3px var(--red-dim);
    }
    .slip-item-win em {
      margin: 0;
      font-style: normal;
      font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 14px;
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--green);
    }
    .slip-item.is-suspended,
    .slip-item.suspended {
      border-color: #ffc4cb;
      background: #fff8f8;
    }
    .slip-item-warn,
    .slip-item .warn {
      display: block;
      color: var(--red-2);
      font-size: 12px;
      font-weight: 600;
      line-height: 1.4;
    }
    .slip-clear {
      display: block;
      margin: 0 16px 8px auto;
      background: none;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
    }
    .slip-clear:hover { color: var(--red); }
    .slip-stake-field { margin: 8px 16px 0; }
    .slip-note {
      margin: 8px 16px 0;
      font-size: 12px;
      color: var(--faint);
      line-height: 1.45;
    }
    .slip-error {
      margin: 0;
      padding: 10px 12px;
      border-radius: 10px;
      background: #fff1f3;
      color: var(--red-2);
      font-size: 13px;
      font-weight: 600;
      line-height: 1.4;
    }
    .slip-error[hidden] { display: none !important; }
    .slip-place { width: calc(100% - 32px); margin: 12px 16px 16px; }
    .cookies-card {
      position: fixed;
      left: 16px;
      bottom: 16px;
      z-index: 85;
      width: min(520px, calc(100vw - 32px));
      padding: 30px;
      text-align: center;
      color: #1e2337;
      background: #d1d1d1;
      border-radius: 8px;
      box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
      transition: transform 0.5s ease, opacity 0.5s ease;
    }
    .cookies-card.hide {
      transform: translateY(calc(100% + 32px));
      opacity: 0;
      pointer-events: none;
    }
    .cookies-card__icon {
      width: 55px;
      height: 55px;
      margin: 0 auto;
      border-radius: 50%;
      background: var(--red);
      color: #fff;
      font-size: 28px;
      display: grid;
      place-items: center;
      box-shadow: 0 0 0 6px rgba(255, 42, 66, 0.18);
    }
    .cookies-card__content {
      margin: 18px 0 0;
      font-size: 14px;
      line-height: 1.55;
      color: #1e2337;
    }
    .cookies-card__content a {
      color: var(--red);
      font-weight: 700;
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    .cookies-card__btn { margin-top: 18px; }
    .cookies-card__allow {
      width: 100%;
      height: 48px;
      border-radius: 10px;
      background: var(--red);
      color: #fff;
      font-weight: 600;
      font-size: 15px;
      letter-spacing: 0.02em;
    }
    .cookies-card__allow:hover { filter: brightness(1.06); }
    @media (max-width: 767px) {
      .cookies-card {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        padding: 18px 16px 16px;
        border-radius: 12px 12px 0 0;
      }
    }
    @media (prefers-reduced-motion: reduce) {
      .cookies-card { transition: none; }
    }
    .slip-return { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 8px; }
    .slip-return b { color: var(--green); }
    .slip-payout {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
      margin: 14px 16px 0;
      padding: 12px 0 0;
      border-top: 1px solid var(--line);
    }
    .slip-payout span {
      font-size: 13px;
      font-weight: 600;
      color: var(--muted);
    }
    .slip-payout b {
      font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 16px;
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--green);
    }
    .modal .slip-payout { margin: 14px 0 0; }

    .ex-page {
      --ex-back: #3a8ad4;
      --ex-back-ink: #d7ecff;
      --ex-back-deep: #173252;
      --ex-lay: #e05688;
      --ex-lay-ink: #ffe0ec;
      --ex-lay-deep: #4a1b30;
      --ex-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    }

    .ex-hero { grid-column: 1 / -1; padding: 20px 22px 16px; overflow: hidden; position: relative; }
    .ex-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; position: relative; }
    .ex-brand { display: flex; align-items: center; gap: 14px; }
    .ex-mark {
      width: 44px; height: 44px; border-radius: 12px;
      background: #f7f8fb; border: 1px solid var(--line);
      display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 10px; flex-shrink: 0;
    }
    .ex-mark i:first-child { background: var(--ex-back); border-radius: 2px; }
    .ex-mark i:last-child { background: var(--ex-lay); border-radius: 2px; }
    .ex-eyebrow {
      font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
      color: var(--muted); font-weight: 700; margin-bottom: 2px;
    }
    .ex-hero h1 { font-size: 26px; letter-spacing: -0.03em; line-height: 1.1; }
    .ex-lede { position: relative; color: var(--muted); margin: 12px 0 16px; max-width: 62ch; }
    .ex-legend { display: flex; gap: 8px; position: relative; }
    .leg-back, .leg-lay {
      min-width: 72px; padding: 8px 14px; border-radius: 9px;
      font-size: 12px; font-weight: 600; text-align: center; letter-spacing: 0.04em;
    }
    .leg-back { background: var(--ex-back); color: #fff; }
    .leg-lay { background: var(--ex-lay); color: #fff; }

    .ex-tape {
      position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
      gap: 10px; margin-bottom: 16px;
    }
    .ex-tape div {
      background: #fff; border: 1px solid var(--line);
      border-radius: 12px; padding: 10px 12px;
    }
    .ex-tape dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
    .ex-tape dd {
      font-family: var(--ex-mono); font-size: 22px; font-weight: 700;
      letter-spacing: -0.03em; margin-top: 2px;
    }

    .ex-chips {
      position: relative; display: flex; gap: 8px; overflow-x: auto;
      padding: 2px 0 6px; scrollbar-width: none;
    }
    .ex-chips::-webkit-scrollbar { display: none; }
    .ex-chip {
      display: inline-flex; align-items: center; gap: 7px;
      padding: 7px 12px; border-radius: 999px; background: var(--card-2);
      border: 1px solid transparent; color: var(--muted);
      font-size: 12px; font-weight: 700; white-space: nowrap;
      transition: background 180ms, color 180ms, border-color 180ms;
    }
    .ex-chip svg { width: 14px; height: 14px; }
    .ex-chip:hover { color: var(--text); }
    .ex-chip.on { background: #fff; color: #141518; }

    .ex-event {
      padding: 0 0 6px; margin-bottom: 14px; overflow: hidden;
      position: relative;
    }
    .ex-event-head { display: block; padding: 16px 16px 12px; }
    .match-page.ex-page {
      grid-template-columns: minmax(0, 1fr);
    }
    .ex-page .match-main,
    .ex-page .game-crumb,
    .ex-page .ex-hero { grid-column: 1 / -1; }

    .ex-event-head:hover { background: #f7f8fb; }
    .ex-event-head:hover .ex-side b { color: var(--text); }

    body.bet-cart-lock { overflow: hidden; }

    .bet-cart-fab {
      position: fixed;
      top: 112px;
      right: 16px;
      z-index: 88;
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 148px;
      height: 56px;
      padding: 0 14px 0 6px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: #fff;
      color: var(--text);
      font-family: inherit;
      cursor: pointer;
      box-shadow: var(--shadow);
      transition: transform 180ms ease, box-shadow 180ms ease;
    }
    .bet-cart-fab:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(27, 36, 51, 0.1); }
    .bet-cart-fab.pulse { animation: ex-fab-pulse 520ms ease; }
    @keyframes ex-fab-pulse {
      0% { transform: scale(1); }
      35% { transform: scale(1.06); }
      100% { transform: scale(1); }
    }
    .bet-cart-fab-ico {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: var(--red);
      color: #fff;
      font-size: 16px;
      flex-shrink: 0;
    }
    .bet-cart-fab-copy { text-align: left; color: var(--text); }
    .bet-cart-fab-copy small {
      display: block;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .bet-cart-fab-copy b {
      display: block;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: -0.02em;
      color: var(--text);
    }
    .bet-cart-count {
      position: absolute;
      top: -4px;
      right: -4px;
      min-width: 20px;
      height: 20px;
      padding: 0 5px;
      border-radius: 999px;
      background: var(--red);
      color: #fff;
      font-size: 11px;
      font-weight: 600;
      font-style: normal;
      line-height: 20px;
      text-align: center;
      box-shadow: 0 0 0 2px #fff;
    }
    .bet-cart-count[hidden] { display: none !important; }
    .bet-cart.open .bet-cart-fab {
      opacity: 0;
      pointer-events: none;
      transform: translateY(-6px);
    }

    .bet-cart-layer {
      position: fixed;
      inset: 0;
      z-index: 92;
      display: grid;
      align-items: start;
      justify-items: end;
      padding: 88px 16px 16px;
    }
    .bet-cart-layer[hidden] { display: none !important; }
    .bet-cart-scrim {
      position: absolute;
      inset: 0;
      background: rgba(27, 36, 51, 0.46);
      border: 0;
      cursor: pointer;
    }
    .bet-cart [hidden] { display: none !important; }
    .bet-cart-panel {
      position: relative;
      z-index: 1;
      width: min(420px, calc(100vw - 32px));
      max-height: calc(100vh - 96px);
      overflow: auto;
      display: grid;
      gap: 0;
      transform: translateY(-8px);
      animation: ex-cart-in 200ms ease forwards;
    }
    .bet-cart-panel .slip-card {
      position: relative;
      top: auto;
      overflow: hidden;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 14px;
      box-shadow: 0 10px 28px rgba(27, 36, 51, 0.05), 0 22px 50px rgba(27, 36, 51, 0.12);
    }
    .bet-cart-panel .slip-card[hidden] { display: none !important; }
    .bet-cart-panel .slip-head {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 16px 18px;
      border-bottom: 1px solid var(--line);
      background: linear-gradient(180deg, #fff, #f8f9fc);
    }
    .slip-head-ico {
      width: 42px;
      height: 42px;
      border-radius: 11px;
      display: grid;
      place-items: center;
      background: var(--red);
      color: #fff;
      font-size: 16px;
      box-shadow: 0 8px 16px rgba(255, 42, 66, 0.2);
      flex-shrink: 0;
    }
    .slip-head-copy { min-width: 0; flex: 1; }
    .bet-cart-panel .slip-head h2 {
      margin: 0;
      font-size: 17px;
      font-weight: 600;
      letter-spacing: -0.03em;
      text-transform: none;
      line-height: 1.2;
    }
    .bet-cart-panel .slip-head p {
      margin: 2px 0 0;
      color: var(--muted);
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0;
      text-transform: none;
      line-height: 1.35;
    }
    .bet-cart-panel .slip-head .ex-slip-close { margin-left: 4px; }
    .bet-cart-panel .slip-balance {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      width: 100%;
      padding: 12px 14px;
      border-radius: 10px;
      background: #f8f9fc;
      border: 1px solid var(--line);
      text-align: left;
    }
    .bet-cart-panel .slip-balance:hover { border-color: var(--line-2); background: #fff; }
    .bet-cart-panel .slip-balance span {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .bet-cart-panel .slip-balance b {
      font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 16px;
      letter-spacing: -0.03em;
      color: var(--text);
    }
    .slip-body {
      padding: 18px 20px 20px;
      display: grid;
      gap: 16px;
    }
    .bet-cart-panel .slip-tabs {
      margin: 0;
      background: #f3f5f8;
      border-radius: 10px;
    }
    .bet-cart-panel .slip-tabs button {
      height: 34px;
      border-radius: 8px;
      font-weight: 700;
    }
    .bet-cart-panel .slip-empty,
    .bet-cart-panel .ex-empty {
      margin: 0;
      padding: 28px 16px;
      border-radius: 12px;
      border: 1px dashed var(--line);
      background: #fbfcfe;
    }
    .bet-cart-panel .slip-empty-ico {
      background: #fff;
      border: 1px solid var(--line);
      color: var(--red);
    }
    .bet-cart-panel #slip-items { padding: 0; gap: 10px; }
    .bet-cart-panel .slip-clear {
      margin: 0 0 0 auto;
    }
    .bet-cart-panel .field { margin-bottom: 0; }
    .slip-addon {
      display: flex;
      align-items: stretch;
    }
    .slip-addon input {
      flex: 1;
      min-width: 0;
      height: 42px;
      border: 1px solid var(--line);
      border-right: 0;
      border-radius: 8px 0 0 8px;
      background: #fbfcfe;
      padding: 0 12px;
      color: var(--text);
      font-weight: 700;
    }
    .slip-addon input:focus {
      outline: none;
      border-color: var(--red);
      box-shadow: 0 0 0 3px var(--red-dim);
      background: #fff;
    }
    .slip-addon span {
      display: grid;
      place-items: center;
      padding: 0 12px;
      min-width: 46px;
      background: #eef1f6;
      border: 1px solid var(--line);
      border-left: 0;
      border-radius: 0 8px 8px 0;
      color: #4b5563;
      font-size: 12px;
      font-weight: 600;
    }
    .bet-cart-panel .slip-payout {
      margin: 0;
      padding: 14px 0 0;
    }
    .bet-cart-panel .slip-note {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
    }
    .bet-cart-panel .slip-place,
    .bet-cart-panel .ex-place {
      width: 100%;
      height: 46px;
      margin: 0;
      border-radius: 10px;
      box-shadow: 0 10px 20px rgba(255, 42, 66, 0.2);
    }
    #cart-pane-sport { display: grid; gap: 16px; }
    #ex-ticket { display: grid; gap: 16px; }
    #ex-ticket[hidden] { display: none !important; }
    #ex-slip[hidden],
    #cart-pane-sport[hidden] { display: none !important; }
    .bet-cart-panel .ex-slip {
      padding: 0;
      border: 0;
      border-radius: 0;
      box-shadow: none;
      background: transparent;
    }
    .bet-cart-panel #sport-slip { border-radius: 14px; }
    .bet-cart-panel .ex-wallet {
      margin: 0;
      padding: 0 0 14px;
      border-radius: 0;
      background: none;
      border: 0;
      border-bottom: 1px solid var(--line);
    }
    .ex-slip-close {
      width: 40px;
      height: 40px;
      flex-shrink: 0;
      border-radius: 10px;
      background: #fff;
      border: 1px solid var(--line);
      color: #3a4250;
      font-size: 16px;
    }
    .ex-slip-close:hover { background: #f3f5f8; }
    @keyframes ex-cart-in {
      to { transform: none; }
    }
    .ex-clear {
      width: 100%;
      margin-top: 8px;
      height: 40px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
    }
    .ex-clear:hover { color: var(--red); }

    @media (prefers-reduced-motion: reduce) {
      .bet-cart-panel { animation: none; transform: none; }
      .bet-cart-fab { transition: none; }
    }
    @media (max-width: 640px) {
      .bet-cart-fab { top: 104px; right: 10px; }
      .bet-cart-layer { padding: 0; align-items: stretch; }
      .bet-cart-panel {
        width: 100%;
        max-height: 86vh;
        align-self: end;
      }
      .bet-cart-panel #sport-slip { border-radius: 18px 18px 0 0; }
    }
    .ex-vs {
      display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
    }
    .ex-side { display: flex; align-items: center; gap: 10px; min-width: 0; }
    .ex-side.away { justify-content: flex-end; text-align: right; }
    .ex-side b { font-size: 15px; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ex-mid { text-align: center; }
    .ex-live, .ex-when {
      display: inline-flex; align-items: center; gap: 6px;
      font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    }
    .ex-live { color: var(--red-2); }
    .ex-live::before {
      content: ""; width: 7px; height: 7px; border-radius: 50%;
      background: var(--red); box-shadow: 0 0 0 0 rgba(255, 42, 66, 0.7);
      animation: ex-pulse 1.6s ease-out infinite;
    }
    .ex-when { color: var(--muted); }
    .ex-score {
      display: block; margin-top: 4px;
      font-family: var(--ex-mono); font-size: 22px; font-weight: 700; letter-spacing: -0.04em;
    }
    .ex-score.mute { color: var(--faint); font-size: 16px; }
    .ex-comp {
      display: flex; align-items: center; gap: 8px; justify-content: center;
      margin-top: 10px; color: var(--faint); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
    }
    .ex-comp span { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }

    .ex-market { border-top: 1px solid var(--line); }
    .ex-market-head {
      width: 100%; display: grid;
      grid-template-columns: 1fr auto auto 14px; align-items: center; gap: 12px;
      padding: 11px 16px; color: var(--muted); font-size: 12px; font-weight: 700;
    }
    .ex-market-head span:first-child { color: var(--text); text-align: left; }
    .ex-market-head em { font-style: normal; color: var(--faint); font-weight: 600; font-size: 11px; }
    .ex-market-head svg { transition: transform 180ms; }
    .ex-market.shut .ex-market-body { display: none; }
    .ex-market.shut .ex-market-head svg { transform: rotate(-90deg); }
    .ex-market-body { padding: 0 12px 10px; }
    .ex-cols-lab { display: grid; grid-template-columns: 1fr 1fr; width: 336px; text-align: center; gap: 10px; }
    .ex-cols-lab i { font-style: normal; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
    .ex-cols-lab i:first-child { color: #8ec4f0; }
    .ex-cols-lab i:last-child { color: #f4a8c4; }

    .ex-runner {
      display: grid; grid-template-columns: minmax(120px, 1fr) auto;
      gap: 12px; align-items: center; padding: 5px 4px;
      border-top: 1px solid var(--line);
    }
    .ex-name {
      display: flex; align-items: center; gap: 8px;
      font-weight: 600; font-size: 13px; min-width: 0;
    }
    .ex-ladder { display: flex; align-items: stretch; gap: 0; }
    .ex-book { display: grid; grid-template-columns: repeat(3, 52px); gap: 3px; }
    .ex-spread { width: 8px; margin: 4px 4px; border-radius: 99px; background: #e4e8ef; }

    .ex-cell {
      border-radius: 7px; padding: 6px 2px 5px; text-align: center; min-height: 46px;
      transition: filter 160ms, box-shadow 160ms, transform 160ms;
    }
    .ex-cell b {
      display: block; font-family: var(--ex-mono); font-size: 13px; font-weight: 700;
      line-height: 1.15; font-variant-numeric: tabular-nums;
    }
    .ex-cell small { display: block; font-size: 10px; opacity: 0.8; margin-top: 2px; }
    .ex-cell.back { background: var(--ex-back-deep); color: var(--ex-back-ink); }
    .ex-cell.back.best { background: var(--ex-back); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
    .ex-cell.lay { background: var(--ex-lay-deep); color: var(--ex-lay-ink); }
    .ex-cell.lay.best { background: var(--ex-lay); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
    .ex-cell:hover { filter: brightness(1.1); }
    .ex-cell.on { box-shadow: 0 0 0 2px #fff; transform: translateY(-1px); }

    .ex-slip { padding: 16px; }
    .ex-wallet {
      display: flex; justify-content: space-between; align-items: baseline;
      padding: 12px 14px; border-radius: 12px;
      background: var(--card-2);
      border: 1px solid var(--line-2);
    }
    .ex-wallet span { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
    .ex-wallet strong {
      font-family: var(--ex-mono); font-size: 22px; letter-spacing: -0.03em;
    }
    .ex-empty {
      display: flex; flex-direction: column; align-items: center;
      text-align: center; padding: 22px 8px 12px; color: var(--muted);
    }
    .ex-empty .slip-empty-ico { margin-bottom: 8px; }
    .ex-empty p { color: var(--text); font-weight: 700; margin: 0; }
    .ex-empty > span:not(.slip-empty-ico) {
      display: block; margin-top: 6px; font-size: 12px; color: var(--faint); line-height: 1.45;
    }

    .ex-pick {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto auto;
      align-items: center;
      gap: 8px 10px;
      padding: 10px 10px 10px 12px;
      border-radius: 10px;
      background: #f8f9fc;
      border: 1px solid var(--line);
    }
    #ex-items { display: grid; gap: 8px; }
    .ex-pick-copy { min-width: 0; }
    .ex-pick-copy .sel {
      display: block;
      margin: 0;
      font-size: 13px;
      letter-spacing: -0.02em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .ex-pick small { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ex-pick .ex-pick-odds {
      position: static;
      font-family: var(--ex-mono);
      font-size: 15px;
      font-weight: 700;
      color: var(--ex-back);
    }
    .ex-pick [data-ex-remove] {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      color: var(--muted);
      font-size: 18px;
      line-height: 1;
    }
    .ex-pick [data-ex-remove]:hover { color: var(--red); background: #fff; }
    .ex-side-tag { margin-bottom: 0; }
    .ex-pick.is-lay .ex-pick-odds { color: var(--ex-lay); }
    .ex-side-tag {
      display: inline-block; padding: 2px 7px; border-radius: 999px;
      font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
      background: var(--ex-back); color: #fff; margin-bottom: 4px;
    }
    .ex-pick.is-lay .ex-side-tag { background: var(--ex-lay); }

    .ex-stake-row {
      display: flex; align-items: center; height: 46px;
      border: 1px solid var(--line-2); border-radius: 10px; background: #fff;
      padding: 0 12px; margin-bottom: 8px;
    }
    .ex-stake-row span { color: var(--muted); font-weight: 700; }
    .ex-stake-row input {
      border: 0; background: transparent; height: 44px; width: 100%;
      color: var(--text); font-family: var(--ex-mono); font-size: 20px; font-weight: 700;
      padding: 0 8px;
    }
    .ex-stakes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
    .ex-stakes button {
      height: 32px; border-radius: 8px; background: var(--card-2);
      color: var(--muted); font-size: 12px; font-weight: 700;
    }
    .ex-stakes button:hover, .ex-stakes button.on { background: #fff; color: #141518; }

    .ex-ledger {
      display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 12px;
    }
    .ex-ledger div {
      background: #fff; border-radius: 10px; padding: 10px;
    }
    .ex-ledger span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
    .ex-ledger b { font-family: var(--ex-mono); font-size: 16px; color: var(--green); }
    .ex-ledger div:last-child b { color: var(--text); }
    .ex-slip.is-lay .ex-ledger div:last-child b { color: var(--red-2); }

    .ex-place { width: 100%; }
    .ex-slip.is-back .ex-place {
      background: linear-gradient(180deg, #4ca0e8, #2f7ec8);
      box-shadow: 0 10px 28px rgba(47, 126, 200, 0.35);
    }
    .ex-slip.is-lay .ex-place {
      background: linear-gradient(180deg, #ec6e9a, #d23d72);
      box-shadow: 0 10px 28px rgba(210, 61, 114, 0.35);
    }
    .ex-place:disabled { opacity: 0.6; transform: none; }

    @keyframes ex-pulse {
      0% { box-shadow: 0 0 0 0 rgba(255, 42, 66, 0.55); }
      100% { box-shadow: 0 0 0 8px rgba(255, 42, 66, 0); }
    }
    @media (prefers-reduced-motion: reduce) {
      .ex-live::before { animation: none; }
      .ex-cell { transition: none; }
    }

    @media (max-width: 900px) {
      .match-page { grid-template-columns: 1fr; }
      .match-hero, .match-main, .match-slip, .ex-hero { grid-column: 1; }
      .ex-tape { grid-template-columns: 1fr 1fr 1fr; }
    }
    @media (max-width: 820px) {
      .ex-hero { padding: 16px 14px 12px; }
      .ex-hero h1 { font-size: 22px; }
      .ex-lede { font-size: 13px; }
      .ex-legend { width: 100%; }
      .leg-back, .leg-lay { flex: 1; }
      .ex-side b { font-size: 13px; }
      .ex-score { font-size: 18px; }
      .ex-runner { grid-template-columns: 1fr; gap: 8px; }
      .ex-market-head { grid-template-columns: 1fr auto 14px; }
      .ex-cols-lab { display: none; }
      .ex-ladder { overflow-x: auto; padding-bottom: 4px; }
      .ex-book { grid-template-columns: repeat(3, 56px); }
      .ex-hero-top { flex-wrap: wrap; }
      .ex-tape dd { font-size: 18px; }
    }

    .auth-card { max-width: 520px; }
    .auth-form { margin-top: 20px; }
    .auth-split {
      display: grid;
      grid-template-columns: minmax(118px, 42%) 1fr;
      gap: 8px;
    }
    .auth-screen {
      min-height: 100vh;
      display: grid;
      place-items: center;
      padding: 32px 16px;
      background:
        radial-gradient(80% 60% at 50% -10%, rgba(255, 42, 66, 0.16), transparent 50%),
        var(--bg);
    }
    .auth-screen .auth-card { width: min(520px, 100%); }
    .auth-logo { margin-bottom: 16px; }
    .auth-logo-wrap {
      display: flex;
      justify-content: center;
      width: 100%;
      margin-bottom: 12px;
    }

    body.is-auth { background: var(--bg); }
    body.is-auth .app {
      min-height: 100vh;
      background:
        radial-gradient(80% 60% at 50% -10%, rgba(255, 42, 66, 0.16), transparent 50%),
        var(--bg);
    }
    body.is-auth .shell { display: block; flex: 1; }
    body.is-auth .board {
      min-height: 100vh;
      display: grid;
      place-items: center;
      grid-template-columns: none;
      padding: 32px 16px 48px;
    }
    body.is-auth .auth-mid {
      grid-column: auto;
      justify-self: center;
      width: 100%;
      max-width: 520px;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
    }
    .auth-back {
      display: inline-flex;
      align-items: center;
      align-self: flex-start;
      gap: 8px;
      height: 36px;
      padding: 0 12px 0 10px;
      border-radius: 10px;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--text);
      font-size: 13px;
      font-weight: 600;
      box-shadow: var(--shadow);
    }
    .auth-back i { font-size: 12px; color: var(--muted); }
    .auth-back:hover { background: var(--card-2); color: var(--text); }
    body.is-auth .auth-card { width: 100%; }

    .account-page { grid-column: 1 / -1; width: 100%; min-width: 0; }
    .account-desk-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 300px;
      gap: 16px;
      align-items: start;
    }
    .account-hero {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 18px 22px;
      border-bottom: 1px solid var(--line);
      background: linear-gradient(180deg, #fff, #f8f9fc);
    }
    .account-avatar { flex-shrink: 0; }
    .account-avatar img {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      object-fit: cover;
      box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--line);
    }
    .account-who { min-width: 0; flex: 1; }
    .account-kicker {
      margin: 0 0 4px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .account-hero h1 {
      margin: 0;
      font-size: 22px;
      font-weight: 600;
      letter-spacing: -0.04em;
      line-height: 1.15;
    }
    .account-hero p {
      margin: 4px 0 0;
      color: var(--muted);
      font-size: 13px;
      max-width: none;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .account-body { padding: 18px 22px 22px; }
    .account-desk .pm-wallet { margin: 0 0 18px; }
    .account-form { margin-top: 0; }
    .account-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      align-items: stretch;
    }
    .account-panel {
      margin: 0;
      padding: 16px 16px 8px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #f8f9fc;
      min-width: 0;
    }
    .account-panel legend {
      padding: 0 8px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .account-desk .field label {
      font-size: 12px;
      font-weight: 700;
      color: #4b5563;
    }
    .account-desk .field input,
    .account-desk .field select {
      height: 44px;
      border-radius: 10px;
      border: 1px solid var(--line);
      background: #fff;
      width: 100%;
      color: var(--text);
      padding: 0 12px;
      font: 14px Inter, sans-serif;
    }
    .account-desk .field input:focus,
    .account-desk .field select:focus {
      outline: none;
      border-color: var(--red);
      box-shadow: 0 0 0 3px var(--red-dim);
    }
    .account-desk .field input:disabled {
      background: #eef1f6;
      color: var(--muted);
      cursor: not-allowed;
    }
    .account-desk .game-addon input {
      width: auto;
      height: 44px;
      border-right: 0;
      border-radius: 8px 0 0 8px;
    }
    .account-desk .game-addon span { min-height: 44px; }
    .account-hint { font-size: 12px; color: var(--muted); margin: 0 0 12px; max-width: none; line-height: 1.45; }
    .account-hint a { color: var(--red); font-weight: 700; text-decoration: none; }
    .account-hint a:hover { text-decoration: underline; }
    .account-actions {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      margin-top: 16px;
    }
    .account-desk .account-actions .game-submit {
      width: auto;
      min-width: 180px;
      margin-top: 0;
      padding: 0 22px;
    }
    .account-actions .btn-bet { padding: 0 22px; }
    .account-actions .btn-outline {
      width: auto;
      min-width: 140px;
      display: grid;
      place-items: center;
      padding: 0 16px;
    }
    .account-side-nav { padding: 8px 10px 12px; }
    .account-desk .game-side .game-panel { position: static; }
    .account-meta { margin-top: 16px; }
    .account-meta-body { display: grid; gap: 12px; padding: 16px 18px 18px; }
    .account-stat {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 12px;
    }
    .account-stat span {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .account-stat b {
      font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 14px;
      letter-spacing: -0.03em;
    }
    .account-stat .up { color: var(--green); }
    .account-stat .down { color: var(--red-2); }
    .account-kyc {
      height: 24px;
      padding: 0 8px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      font-family: Inter, sans-serif;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      background: #eef1f6;
      color: #4b5563;
    }
    .account-kyc.is-approved { background: var(--green-dim); color: var(--green); }
    .account-kyc.is-pending { background: var(--amber-dim); color: var(--amber); }
    .account-kyc.is-rejected { background: var(--red-dim); color: var(--red-2); }
    @media (max-width: 980px) {
      .account-desk-grid { grid-template-columns: 1fr; }
      .account-meta { margin-top: 0; }
    }
    @media (max-width: 820px) {
      .account-grid { grid-template-columns: 1fr; }
      .account-hero { flex-wrap: wrap; }
      .account-desk .account-actions .game-submit { width: 100%; }
    }
    .account-mark {
      width: 52px;
      height: 52px;
      border-radius: 14px;
      font-size: 20px;
    }
    .wallet-desk { display: flex; flex-direction: column; gap: 16px; }
    .wallet-desk .pm-wallet { margin: 0; }
    .wallet-desk .pm-wallet:hover { filter: none; }
    .wallet-desk .pm-wallet-cta.up { color: #3dd68c; }
    .wallet-desk .pm-wallet-cta.down { color: #ff6b78; }
    .wallet-hero-body { padding-top: 16px; padding-bottom: 16px; }
    .wallet-ops {
      display: grid;
      grid-template-columns: repeat(2, minmax(280px, 1fr));
      gap: 16px;
      align-items: stretch;
    }
    .wallet-card {
      min-width: 0;
      display: flex;
      flex-direction: column;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 16px;
      box-shadow: 0 10px 28px rgba(27, 36, 51, 0.05);
      overflow: hidden;
    }
    .wallet-card-head {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 18px 20px;
      border-bottom: 1px solid var(--line);
      background: linear-gradient(180deg, #fff, #f8f9fc);
    }
    .wallet-card-ico {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      color: #fff;
      font-size: 16px;
      flex-shrink: 0;
    }
    .wallet-card-ico.in { background: var(--red); box-shadow: 0 8px 16px rgba(255, 42, 66, 0.22); }
    .wallet-card-ico.out { background: #111318; }
    .wallet-card-head h2 {
      margin: 0;
      font-size: 18px;
      font-weight: 600;
      letter-spacing: -0.03em;
    }
    .wallet-card-head p {
      margin: 3px 0 0;
      color: var(--muted);
      font-size: 13px;
      max-width: none;
    }
    .wallet-card-body {
      display: flex;
      flex-direction: column;
      flex: 1;
      padding: 20px;
    }
    .wallet-card-body .game-submit,
    .wallet-card-body .btn-outline {
      width: 100%;
      height: 48px;
      margin-top: auto;
      display: grid;
      place-items: center;
    }
    .wallet-card-body .account-hint { margin-top: auto; margin-bottom: 12px; }
    .wallet-card-body .account-hint + .game-submit { margin-top: 0; }
    .wallet-card-body .btn-outline { background: #fff; }
    .wallet-label {
      display: block;
      font-size: 12px;
      font-weight: 700;
      color: #4b5563;
      margin-bottom: 8px;
    }
    .wallet-amount .game-addon input {
      height: 52px;
      font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 22px;
      font-weight: 700;
      letter-spacing: -0.04em;
    }
    .wallet-amount .game-addon span {
      min-width: 56px;
      font-size: 12px;
    }
    .wallet-desk .stake-chips {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
      margin: 0 0 16px;
    }
    .wallet-desk .stake-chips button {
      width: 100%;
      min-width: 0;
      height: 40px;
      background: #f3f5f8;
    }
    .wallet-desk .stake-chips button:hover {
      background: var(--red-dim);
      color: var(--red);
    }
    .wallet-methods { display: grid; gap: 8px; }
    .account-desk .wallet-method {
      display: flex;
      align-items: center;
      gap: 12px;
      min-height: 52px;
      margin: 0;
      padding: 8px 12px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--text);
      font-size: 13px;
      cursor: pointer;
    }
    .account-desk .wallet-method > i {
      width: 32px;
      height: 32px;
      border-radius: 9px;
      display: grid;
      place-items: center;
      background: #f3f5f8;
      color: #3a4250;
      font-size: 13px;
      flex-shrink: 0;
    }
    .account-desk .wallet-method span { flex: 1; min-width: 0; }
    .account-desk .wallet-method b {
      display: block;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: -0.02em;
    }
    .account-desk .wallet-method small {
      display: block;
      color: var(--faint);
      font-size: 11px;
      margin-top: 1px;
    }
    .account-desk .wallet-method input[type="radio"] {
      appearance: none;
      width: 18px;
      height: 18px;
      margin: 0 0 0 auto;
      padding: 0;
      flex-shrink: 0;
      border: 2px solid #c5cad6;
      border-radius: 50%;
      background: #fff;
      box-shadow: none;
      cursor: pointer;
    }
    .account-desk .wallet-method input[type="radio"]:focus {
      outline: none;
      box-shadow: 0 0 0 3px var(--red-dim);
      border-color: var(--red);
    }
    .account-desk .wallet-method input[type="radio"]:checked {
      border-color: var(--red);
      background: radial-gradient(circle, var(--red) 45%, #fff 48%);
    }
    .account-desk .wallet-method:hover { border-color: #c5cad6; }
    .account-desk .wallet-method:has(input:checked) {
      border-color: var(--red);
      background: #fff8f8;
    }
    .account-desk .wallet-method:has(input:checked) > i {
      background: var(--red-dim);
      color: var(--red);
    }
    .wallet-move { padding-top: 8px; padding-bottom: 8px; }
    .wallet-move .tx-row:first-child { border-top: 0; }
    @media (max-width: 900px) {
      .wallet-ops { grid-template-columns: 1fr; }
    }
    .wallet-open { display: grid; gap: 4px; padding: 8px 10px 14px; }
    .wallet-open-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      min-height: 52px;
      padding: 8px 10px;
      border-radius: 12px;
    }
    a.wallet-open-row:hover { background: #f7f8fb; }
    .wallet-open-row b { display: block; font-size: 13px; }
    .wallet-open-row span { display: block; color: var(--faint); font-size: 11px; margin-top: 2px; }
    .wallet-open .account-hint { margin: 8px 6px; }
    .wallet-bank { display: grid; gap: 4px; margin: 0 0 12px; }
    .wallet-bank b { font-size: 15px; letter-spacing: -0.02em; }
    .wallet-bank span { color: var(--muted); font-size: 13px; }
    .bets-desk { display: flex; flex-direction: column; gap: 16px; }
    .bets-cols { display: grid; gap: 16px; min-width: 0; }
    .bets-stats {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      padding-top: 16px;
      padding-bottom: 16px;
    }
    .bets-stat {
      padding: 12px 14px;
      border-radius: 12px;
      background: #f8f9fc;
      border: 1px solid var(--line);
    }
    .bets-stat span {
      display: block;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .bets-stat b {
      display: block;
      margin-top: 4px;
      font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 18px;
      letter-spacing: -0.04em;
    }
    .bets-stat .up { color: var(--green); }
    .bets-empty {
      grid-column: 1 / -1;
      margin: 4px 0;
      color: var(--muted);
      font-size: 13px;
    }
    .bets-desk .bet-grid {
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 12px;
    }
    .bets-desk .bet-ticket {
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding: 14px;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 14px;
      box-shadow: 0 8px 20px rgba(27, 36, 51, 0.04);
    }
    .bet-ticket-head {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 11px;
      font-weight: 600;
      color: var(--muted);
    }
    .bet-ticket-league {
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
      flex: 1;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .bet-ticket-head .bet-status { margin-left: auto; flex-shrink: 0; }
    .bets-desk .bet-vs {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-radius: 12px;
      background: #f8f9fc;
      color: inherit;
      text-decoration: none;
    }
    .bets-desk a.bet-vs:hover { background: #eef1f6; }
    .bets-desk .bet-vs .t {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 8px;
      width: auto;
      flex: 1;
      min-width: 0;
    }
    .bets-desk .bet-vs .t.away { justify-content: flex-end; }
    .bets-desk .bet-vs .t span {
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
      text-align: left;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .bets-desk .bet-vs strong {
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: 15px;
      flex-shrink: 0;
    }
    .bets-desk .bet-vs img { width: 22px; height: 22px; }
    .bet-pick {
      display: flex;
      align-items: baseline;
      gap: 8px;
      margin: 0;
      font-size: 13px;
    }
    .bet-pick b { font-weight: 600; letter-spacing: -0.02em; }
    .bet-pick span {
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-weight: 700;
      color: var(--red);
    }
    .bet-pick small { color: var(--faint); font-size: 11px; margin-left: auto; }
    .bet-legs {
      list-style: none;
      margin: 0;
      padding: 8px 10px;
      border-radius: 10px;
      background: #f8f9fc;
      display: grid;
      gap: 6px;
    }
    .bet-legs li {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
    }
    .bet-legs li span { flex: 1; min-width: 0; }
    .bet-legs li b {
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: 12px;
    }
    .bet-money {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      padding-top: 8px;
      border-top: 1px solid var(--line);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .bet-money b {
      display: block;
      margin-top: 2px;
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: 15px;
      letter-spacing: -0.03em;
      text-transform: none;
      color: var(--text);
    }
    .bet-money .up { color: var(--green); }
    .bet-money .down { color: var(--red-2); }
    .bet-status {
      display: inline-flex;
      height: 22px;
      padding: 0 8px;
      border-radius: 999px;
      align-items: center;
      font-size: 10px;
      font-style: normal;
      font-weight: 600;
      letter-spacing: 0.06em;
      background: var(--amber-dim);
      color: var(--amber);
    }
    .bet-status.is-won { background: var(--green-dim); color: var(--green); }
    .bet-status.is-lost { background: var(--red-dim); color: var(--red-2); }
    .bet-status.is-refunded { background: #eef1f6; color: #4b5563; }
    .bet-status.is-pending { background: var(--amber-dim); color: var(--amber); }
    .bet-status.is-cashed { background: var(--green-dim); color: var(--green); }
    .bet-cashout {
      display: grid;
      gap: 8px;
      margin-top: 2px;
      padding-top: 10px;
      border-top: 1px solid var(--line);
    }
    .bet-cashout-full {
      width: 100%;
      height: 40px;
      border-radius: 10px;
      background: var(--red);
      color: #fff;
      font-size: 13px;
      font-weight: 700;
      box-shadow: 0 8px 16px rgba(255, 42, 66, 0.18);
    }
    .bet-cashout-full:hover { filter: brightness(1.05); }
    .bet-cashout-part {
      display: grid;
      gap: 8px;
    }
    .bet-cashout-part label {
      display: grid;
      grid-template-columns: auto 1fr;
      align-items: center;
      gap: 10px;
      font-size: 12px;
      font-weight: 600;
      color: var(--muted);
    }
    .bet-cashout-range { width: 100%; accent-color: var(--red); }
    .bet-cashout-row { display: flex; gap: 8px; }
    .bet-cashout-amount {
      flex: 1;
      min-width: 0;
      height: 38px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #f7f8fb;
      padding: 0 10px;
      text-align: right;
      font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
      font-weight: 700;
    }
    .bet-cashout-part button {
      height: 38px;
      padding: 0 12px;
      border-radius: 10px;
      border: 1px solid var(--line);
      background: #fff;
      font-size: 12px;
      font-weight: 700;
    }
    .bet-cashout-part button:hover { border-color: var(--red); color: var(--red); }
    @media (max-width: 720px) {
      .bets-stats { grid-template-columns: 1fr 1fr; }
    }
    .field-error { display: block; color: var(--red-2); font-size: 12px; margin-top: 6px; }
    .check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
    .check.is-legal { align-items: flex-start; margin-bottom: 10px; }
    .check.is-legal input { margin-top: 3px; flex-shrink: 0; }
    .check a { color: var(--text); font-weight: 700; text-decoration: none; }
    .check a:hover { color: var(--red); }
    .auth-foot {
      margin-top: 14px;
      font-size: 13px;
      color: var(--muted);
      text-align: center;
      max-width: none;
      width: 100%;
    }
    .auth-foot a { color: var(--text); font-weight: 700; text-decoration: none; }
    .auth-foot a:hover { color: var(--red); }

    .demo-login {
      width: 100%;
      margin-top: 16px;
      padding: 12px 14px;
      border-radius: 12px;
      background: #fff;
      border: 1px dashed var(--red);
      text-align: center;
      display: grid;
      gap: 2px;
    }
    .demo-login span {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .demo-login b { font-size: 13px; color: var(--text); }
    .demo-login small { color: var(--faint); font-size: 12px; }
    .demo-login:hover { border-color: var(--red); background: #fff5f6; }
    .account-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
    .tx-list { display: grid; gap: 8px; }
    .tx-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
    .tx-row span { display: block; color: var(--muted); font-size: 12px; }
    .tx-row .up { color: var(--green); }
    .tx-row .down { color: var(--red-2); }

    .game-desk {
      grid-column: 1 / -1;
      min-width: 0;
    }
    .game-live-board { margin-top: 16px; }
    .game-crumb {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 14px;
      font-size: 13px;
      font-weight: 600;
      color: var(--muted);
    }
    .game-crumb a { color: var(--red); }
    .game-crumb a:hover { text-decoration: underline; }
    .game-crumb i { font-size: 9px; }
    .game-desk-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 300px;
      gap: 16px;
      align-items: start;
    }
    .game-panel {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 10px 28px rgba(27, 36, 51, 0.05);
      min-width: 0;
    }
    .game-panel-head {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 18px 22px;
      border-bottom: 1px solid var(--line);
      background: linear-gradient(180deg, #fff, #f8f9fc);
    }
    .game-panel-icon {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      background: var(--red);
      color: #fff;
      font-size: 18px;
      box-shadow: 0 8px 16px rgba(255, 42, 66, 0.2);
      flex-shrink: 0;
    }
    .game-panel-head h1,
    .game-panel-head h2 {
      margin: 0;
      font-size: 18px;
      letter-spacing: -0.03em;
      font-weight: 600;
    }
    .game-panel-head p {
      margin: 3px 0 0;
      color: var(--muted);
      font-size: 13px;
      max-width: none;
    }
    .game-balance {
      margin-left: auto;
      display: grid;
      gap: 2px;
      text-align: right;
      flex-shrink: 0;
    }
    .game-balance span {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .game-balance b {
      font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 16px;
      letter-spacing: -0.03em;
    }
    .game-panel-body {
      position: relative;
      padding: 22px;
    }
    .game-side { min-width: 0; }
    .game-side .game-panel { position: sticky; top: 80px; }
    .game-field { display: grid; gap: 6px; margin-bottom: 12px; }
    .game-field label { font-size: 12px; font-weight: 700; color: #4b5563; }
    .game-addon { display: flex; align-items: stretch; }
    .game-addon input {
      flex: 1;
      min-width: 0;
      height: 42px;
      border: 1px solid var(--line);
      border-right: 0;
      border-radius: 8px 0 0 8px;
      padding: 0 12px;
      background: #fbfcfe;
      font: 14px Inter, sans-serif;
      color: var(--text);
    }
    .game-addon input:focus {
      outline: none;
      border-color: var(--red);
      box-shadow: 0 0 0 3px var(--red-dim);
      background: #fff;
    }
    .game-addon span {
      display: grid;
      place-items: center;
      padding: 0 12px;
      min-width: 48px;
      background: #eef1f6;
      border: 1px solid var(--line);
      border-radius: 0 8px 8px 0;
      color: #4b5563;
      font-size: 12px;
      font-weight: 700;
    }
    .game-submit {
      display: grid;
      place-items: center;
      width: 100%;
      height: 46px;
      margin-top: 14px;
      border: 0;
      border-radius: 10px;
      background: var(--red);
      color: #fff;
      font: 700 14px Inter, sans-serif;
      box-shadow: 0 10px 20px rgba(255, 42, 66, 0.2);
      text-decoration: none;
    }
    .game-submit:hover { background: var(--red-2); color: #fff; }
    .game-submit:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
    .game-note {
      margin: 10px 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
      max-width: none;
    }
    @media (max-width: 980px) {
      .game-desk-grid { grid-template-columns: 1fr; }
      .game-side .game-panel { position: static; }
      .game-panel-head { flex-wrap: wrap; }
      .game-balance { margin-left: 58px; text-align: left; }
    }
    .game-result { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 28px; margin-top: 12px; }
    .game-flash { margin-top: 14px; color: var(--amber); font-weight: 700; }
    .game-flash.is-win { color: var(--green); }
    .game-flash.is-lose { color: var(--red); }
    .game-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
    .house .game-actions {
      display: flex;
      align-items: stretch;
      gap: 8px;
      margin-top: 12px;
    }
    .house .game-actions .game-submit,
    .house .game-actions .btn-outline {
      flex: 1 1 0;
      width: auto;
      min-width: 0;
      height: 46px;
      margin: 0;
    }
    .house-pay {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px 18px;
      list-style: none;
      margin: 14px 0 0;
      padding: 12px 14px;
      border-radius: 12px;
      background: #f8f9fc;
      border: 1px solid var(--line);
    }
    .house-pay li {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      font-size: 12px;
      color: var(--muted);
    }
    .house-pay b {
      color: var(--text);
      font-family: "IBM Plex Mono", ui-monospace, monospace;
    }
    .slot-machine {
      margin: 12px 0 0;
      padding: 18px 14px;
      border-radius: 12px;
      background: #111318;
    }
    .slot-machine.is-win .slot-reels b { box-shadow: 0 0 0 2px #3dd68c; }
    .slot-machine.is-bust .slot-reels b { box-shadow: 0 0 0 2px #ff2a42; }
    .slot-reels { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
    .slot-reels b {
      display: grid;
      place-items: center;
      height: 110px;
      border-radius: 12px;
      background: #1a1d24;
      border: 1px solid #2a2e38;
      color: #fff;
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: clamp(18px, 3vw, 26px);
      font-weight: 700;
      letter-spacing: 0.04em;
      overflow: hidden;
    }
    .slot-reels b.spin span { display: inline-block; animation: house-reel 0.08s linear infinite; }
    @keyframes house-reel {
      from { transform: translateY(-6px); opacity: 0.45; }
      to { transform: translateY(6px); opacity: 1; }
    }
    .poker-felt {
      margin: 12px 0 0;
      padding: 16px 12px;
      border-radius: 12px;
      background: #111318;
    }
    .poker-hand { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
    .poker-card {
      display: grid;
      place-content: center;
      gap: 2px;
      height: 108px;
      border-radius: 10px;
      background: #fff;
      color: #141518;
      border: 1px solid #d8dce6;
      font-weight: 600;
      text-align: center;
    }
    .poker-card b { font-size: 22px; line-height: 1; letter-spacing: -0.04em; }
    .poker-card em { font-style: normal; font-size: 20px; line-height: 1; }
    .poker-card.red { color: #ff2a42; }
    .poker-card.black { color: #141518; }
    .poker-card.on { box-shadow: 0 0 0 2px var(--red); }
    .poker-card:disabled { cursor: default; }
    .belote-scoreline {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 28px;
      min-width: 220px;
    }
    .belote-scoreline span {
      display: block;
      color: rgba(255,255,255,0.55);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 4px;
    }
    .belote-hand {
      display: grid;
      grid-template-columns: repeat(8, minmax(0, 1fr));
      gap: 6px;
      margin: 12px 0 0;
    }
    .belote-hand .poker-card { height: 92px; }
    .belote-hand .poker-card b { font-size: 16px; }
    .belote-hand .poker-card em { font-size: 16px; }
    .aviator-embed {
      display: block;
      width: 100%;
      min-height: 560px;
      border: 0;
      border-radius: 12px;
      background: #111318;
    }
    .aviator-tape {
      display: flex;
      gap: 6px;
      overflow-x: auto;
      list-style: none;
      margin: 0 0 12px;
      padding: 0 0 4px;
    }
    .aviator-tape li {
      flex-shrink: 0;
      height: 26px;
      padding: 0 8px;
      border-radius: 6px;
      display: grid;
      place-items: center;
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: 11px;
      font-weight: 700;
      background: #eef1f6;
      color: #141518;
    }
    .aviator-tape li.hot { background: #ff2a42; color: #fff; }
    .aviator-tape li.cold { color: #6b7280; }
    .aviator-tape li.muted { background: transparent; color: var(--muted); font-family: Inter, sans-serif; font-weight: 500; }
    .aviator-sky {
      position: relative;
      height: 280px;
      overflow: hidden;
      border-radius: 12px;
      background: #111318;
      color: #fff;
    }
    .aviator-sky.is-air .aviator-plane { opacity: 1; }
    .aviator-sky.is-bust { background: #1a1214; }
    .aviator-sky.is-bust #aviator-mult { color: #ff2a42; }
    .aviator-sky.is-win #aviator-mult { color: #3dd68c; }
    .aviator-plot {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
    }
    .aviator-plot path {
      fill: none;
      stroke: #ff2a42;
      stroke-width: 1.4;
      stroke-linecap: round;
      vector-effect: non-scaling-stroke;
    }
    .aviator-plane {
      position: absolute;
      left: 0;
      top: 86%;
      font-size: 18px;
      color: #ff2a42;
      opacity: 0;
      transform: translate(-50%, -50%) rotate(18deg);
      z-index: 2;
    }
    #aviator-mult {
      position: absolute;
      left: 50%;
      top: 42%;
      transform: translate(-50%, -50%);
      margin: 0;
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: clamp(36px, 7vw, 56px);
      font-weight: 700;
      letter-spacing: -0.04em;
      z-index: 1;
    }
    #aviator-status {
      position: absolute;
      left: 16px;
      bottom: 12px;
      color: rgba(255,255,255,0.55);
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .aviator-rail {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-top: 14px;
    }
    .aviator .game-actions {
      display: flex;
      align-items: stretch;
      gap: 8px;
      margin-top: 12px;
    }
    .aviator .game-actions .game-submit,
    .aviator .game-actions .btn-outline {
      flex: 1 1 0;
      width: auto;
      min-width: 0;
      height: 46px;
      margin: 0;
    }
    .aviator-fair {
      margin: 12px 0 0;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.45;
      word-break: break-all;
      max-width: none;
    }
    .turbo-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin: 0 0 16px;
    }
    .turbo-pills button {
      height: 34px;
      padding: 0 12px;
      border-radius: 8px;
      background: #eef1f6;
      font-weight: 700;
      font-size: 13px;
    }
    .turbo-pills button.on { background: var(--red); color: #fff; }
    .turbo-panel { display: none; }
    .turbo-panel.on { display: block; }
    .turbo-stage {
      position: relative;
      min-height: 140px;
      margin: 12px 0;
      border-radius: 12px;
      background: #111318;
      color: #fff;
      display: grid;
      place-content: center;
      text-align: center;
      gap: 6px;
    }
    .turbo-stage b {
      margin: 0;
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: clamp(32px, 6vw, 48px);
      letter-spacing: -0.04em;
    }
    .turbo-stage span { color: rgba(255,255,255,0.55); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
    .turbo-stage.is-win b { color: #3dd68c; }
    .turbo-stage.is-bust b { color: #ff2a42; }
    .turbo-range { display: grid; gap: 8px; margin: 12px 0; color: var(--muted); font-size: 13px; }
    .turbo-range input { width: 100%; }
    .turbo .game-actions {
      display: flex;
      align-items: stretch;
      gap: 8px;
      margin-top: 12px;
    }
    .turbo .game-actions.turbo-three { display: grid; grid-template-columns: 1fr 1fr 1fr; }
    .turbo .game-actions .game-submit,
    .turbo .game-actions .btn-outline {
      flex: 1 1 0;
      width: auto;
      min-width: 0;
      height: 46px;
      margin: 0;
    }
    .turbo-plinko {
      display: grid;
      grid-template-columns: repeat(9, 1fr);
      gap: 4px;
      margin: 12px 0 16px;
    }
    .turbo-plinko i {
      display: grid;
      place-items: center;
      height: 48px;
      border-radius: 8px;
      background: #111318;
      color: #fff;
      font-style: normal;
      font-size: 11px;
      font-weight: 700;
      font-family: "IBM Plex Mono", ui-monospace, monospace;
    }
    .turbo-plinko i.on { background: var(--red); }
    .turbo-hilo {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin: 12px 0;
    }
    .turbo-hilo div {
      border-radius: 12px;
      background: #111318;
      color: #fff;
      padding: 16px 12px;
      text-align: center;
    }
    .turbo-hilo span { display: block; color: rgba(255,255,255,0.55); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
    .turbo-hilo b { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 36px; }
    .turbo-keno {
      display: grid;
      grid-template-columns: repeat(8, 1fr);
      gap: 4px;
      margin: 12px 0 16px;
    }
    .turbo-keno button {
      height: 36px;
      border-radius: 8px;
      background: #eef1f6;
      font-weight: 700;
      font-size: 12px;
    }
    .turbo-keno button.on { background: var(--red); color: #fff; }
    .turbo-keno button.hit { background: #3dd68c; color: #111; }
    .turbo-keno button.drawn { box-shadow: 0 0 0 2px #111318; }
    #turbo-mines button.safe { background: #3dd68c; color: #111; }
    #turbo-mines button.mine { background: #ff2a42; color: #fff; }
    #turbo-roulette-pocket[data-color="red"] { color: #ff6b78; }
    #turbo-roulette-pocket[data-color="black"] { color: #fff; }
    #turbo-roulette-pocket[data-color="green"] { color: #3dd68c; }
    @media (max-width: 640px) {
      .turbo-keno { grid-template-columns: repeat(5, 1fr); }
      .turbo .game-actions.turbo-three { grid-template-columns: 1fr; }
      .house-pay { grid-template-columns: 1fr; }
      .belote-hand { grid-template-columns: repeat(4, minmax(0, 1fr)); }
      .poker-hand { gap: 6px; }
      .poker-card { height: 88px; }
      .house .game-actions { flex-direction: column; }
    }
    @media (max-width: 640px) {
      .aviator-sky { height: 220px; }
      .aviator-rail { grid-template-columns: 1fr; }
    }
    @media (prefers-reduced-motion: reduce) {
      .aviator-plane { display: none; }
    }
    .mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
    .mines-grid button {
      height: 40px; border-radius: 8px; background: var(--card-2); font-weight: 700;
    }
    .mines-grid button:hover { background: #eef1f6; }
    .game-lock {
      position: absolute;
      inset: 0;
      z-index: 4;
      display: grid;
      place-content: center;
      gap: 12px;
      padding: 24px;
      text-align: center;
      background: rgba(243, 245, 248, 0.88);
      border-radius: inherit;
    }
    .game-lock p { margin: 0; max-width: none; color: var(--text); font-weight: 700; }
    .game-lock .game-submit { min-width: 160px; margin-top: 0; width: auto; padding: 0 22px; }
    .game-table:has(.game-lock) .roulette { pointer-events: none; }
    .stake-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin: 0 0 14px;
    }
    .stake-chips button {
      height: 36px;
      min-width: 52px;
      padding: 0 12px;
      border-radius: 10px;
      background: #eef1f6;
      font-weight: 700;
      font-size: 13px;
    }
    .stake-chips button:hover { background: #e4e8ef; }
    .roulette-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 16px;
      flex-wrap: wrap;
    }
    .roulette-pocket-wrap { display: flex; align-items: center; gap: 14px; }
    .roulette-pocket {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 28px;
      font-weight: 700;
      color: #fff;
      background: #0e8a4a;
      flex-shrink: 0;
    }
    .roulette-pocket[data-color="red"] { background: #c1292e; }
    .roulette-pocket[data-color="black"] { background: #16181d; }
    .roulette-pocket[data-color="green"] { background: #0e8a4a; }
    .roulette-kicker {
      margin: 0 0 4px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .roulette-pick {
      margin: 0;
      font-size: 16px;
      font-weight: 600;
      color: var(--text);
      max-width: none;
    }
    .roulette-tape {
      display: flex;
      gap: 6px;
      overflow-x: auto;
      max-width: 100%;
      padding-bottom: 2px;
    }
    .roulette-tape span { color: var(--muted); font-size: 12px; }
    .roulette-tape i {
      flex-shrink: 0;
      width: 28px;
      height: 28px;
      border-radius: 6px;
      display: grid;
      place-items: center;
      color: #fff;
      font-style: normal;
      font-size: 11px;
      font-weight: 600;
      background: #16181d;
    }
    .roulette-tape i.red { background: #c1292e; }
    .roulette-tape i.green { background: #0e8a4a; }
    .roulette-felt {
      background: #14633f;
      border-radius: 12px;
      padding: 10px;
      overflow-x: auto;
    }
    .roulette-grid {
      min-width: 640px;
      display: grid;
      grid-template-columns: 42px repeat(12, minmax(36px, 1fr)) 48px;
      grid-template-rows: repeat(3, 42px) 36px 36px;
      gap: 2px;
    }
    .roulette-grid button {
      color: #fff;
      font-weight: 600;
      font-size: 13px;
      border-radius: 2px;
    }
    .roulette-grid .n-red { background: #c1292e; }
    .roulette-grid .n-black { background: #16181d; }
    .roulette-grid .n-green { background: #0e8a4a; }
    .roulette-grid .roulette-out {
      background: rgba(0, 0, 0, 0.28);
      font-size: 11px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .roulette-grid .on { box-shadow: inset 0 0 0 2px #f5d76e; }
    .roulette-grid .hit { box-shadow: inset 0 0 0 2px #fff; }
    .roulette .game-submit { width: 100%; margin-top: 14px; }
    .roulette-note {
      margin: 10px 0 0;
      font-size: 12px;
      color: var(--faint);
      max-width: none;
    }
    .game-flash.is-win { color: var(--green); }
    .game-flash.is-lose { color: var(--red-2); }
    #game-rounds { padding: 8px 22px 16px; }
    #game-rounds .tx-row:first-child { border-top: 0; }
    .game-rounds-empty {
      margin: 0;
      padding: 8px 0 12px;
      color: var(--muted);
      font-size: 13px;
    }
    .btn-bet:disabled { opacity: 0.55; cursor: not-allowed; }
    .friends-list .friend, .friend {
      display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line);
    }
    .friend img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
    .friend b { display: block; }
    .friend span { color: var(--muted); font-size: 12px; }
    .friend .dot { margin-left: auto; }

    .kyc-desk .account-hero p {
      white-space: normal;
      overflow: visible;
      text-overflow: unset;
    }
    .kyc-desk .account-kyc { flex-shrink: 0; }
    .kyc-banner {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      padding: 14px 16px;
      margin-bottom: 18px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fbfcfe;
    }
    .kyc-banner-ico {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      display: grid;
      place-items: center;
      background: var(--red-dim);
      color: var(--red);
      flex-shrink: 0;
    }
    .kyc-banner.is-off .kyc-banner-ico {
      background: #e7f7ef;
      color: var(--green);
    }
    .kyc-banner.is-approved .kyc-banner-ico {
      background: var(--green-dim);
      color: var(--green);
    }
    .kyc-banner strong { display: block; font-size: 14px; }
    .kyc-banner p {
      margin: 4px 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
      max-width: none;
    }
    .kyc-state {
      padding: 12px 14px;
      margin-bottom: 16px;
      border-radius: 10px;
      background: #fff4e5;
      color: #b15c00;
      font-size: 13px;
    }
    .kyc-state p { margin: 0; max-width: none; }
    .kyc-state.is-ok { background: #e7f7ef; color: var(--green); }
    .kyc-state.is-bad { background: var(--red-dim); color: var(--red-2); }
    .kyc-docs.user {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 8px;
    }
    .kyc-docs.user a {
      display: grid;
      gap: 6px;
      width: 100%;
      text-decoration: none;
      color: inherit;
    }
    .kyc-docs.user img {
      width: 100%;
      height: 110px;
      object-fit: cover;
      border-radius: 10px;
      border: 1px solid var(--line);
      background: #fff;
    }
    .kyc-docs.user span {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .kyc-desk .field input[type="file"] {
      height: auto;
      padding: 10px 12px;
      background: #fbfcfe;
    }
    .wd-user-list { display: grid; gap: 12px; }
    .wd-user-card {
      padding: 14px 16px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fbfcfe;
    }
    .wd-user-card header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
    }
    .wd-user-card strong { display: block; font-size: 14px; }
    .wd-user-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
    .wd-user-meta {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin: 14px 0 0;
    }
    .wd-user-meta .span { grid-column: 1 / -1; }
    .wd-user-meta dt {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .wd-user-meta dd {
      margin: 4px 0 0;
      font-size: 14px;
      font-weight: 700;
      word-break: break-word;
    }
    .pager { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
    .pager-bar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .pager-meta {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      font-weight: 600;
    }
    .pager-meta b { color: var(--ink); }
    .pager-chips { display: flex; flex-wrap: wrap; gap: 8px; }
    .pager-chip {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 36px;
      height: 36px;
      padding: 0 12px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: #fff;
      color: #4b5563;
      font: 700 12.5px Inter, sans-serif;
      text-decoration: none;
    }
    .pager-chip:hover { border-color: #ffc4cb; color: var(--ink); }
    .pager-chip.on {
      background: var(--red);
      border-color: var(--red);
      color: #fff;
    }
    .pager-chip.off { opacity: 0.4; pointer-events: none; }

    @media (max-width: 820px) {
      .wd-user-meta { grid-template-columns: 1fr; }
    }

    .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;
    }

    .site-foot {
      margin-top: auto;
      background: #14181f;
      color: #f3f5f8;
    }
    .site-foot-inner {
      max-width: 1180px;
      margin: 0 auto;
      padding: 56px 32px 40px;
      display: grid;
      gap: 52px;
    }
    .site-foot-hero {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 40px 48px;
    }
    .site-foot-tagline {
      margin: 0;
      max-width: 11.5em;
      font-size: clamp(28px, 3.6vw, 44px);
      font-weight: 700;
      letter-spacing: -0.045em;
      line-height: 1.12;
      color: #fff;
    }
    .site-foot-touch {
      flex: 0 1 420px;
      width: min(420px, 100%);
    }
    .site-foot-touch p {
      margin: 0 0 12px;
      font-size: 15px;
      font-weight: 600;
      letter-spacing: -0.02em;
      color: #fff;
    }
    .site-foot-mail {
      display: flex;
      align-items: center;
      gap: 8px;
      height: 52px;
      padding: 5px 5px 5px 18px;
      border: 1px solid rgba(255, 255, 255, 0.38);
      border-radius: 999px;
      background: transparent;
    }
    .site-foot-mail input {
      flex: 1;
      min-width: 0;
      height: 100%;
      border: 0;
      background: none;
      color: #fff;
      outline: none;
      font-size: 14px;
    }
    .site-foot-mail input::placeholder { color: rgba(255, 255, 255, 0.45); }
    .site-foot-mail button {
      height: 100%;
      padding: 0 22px;
      border-radius: 999px;
      background: var(--red);
      color: #fff;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.01em;
      box-shadow: 0 8px 16px rgba(255, 42, 66, 0.28);
    }
    .site-foot-mail button:hover { filter: brightness(1.06); }
    .site-foot-mail:focus-within { border-color: #fff; }
    .site-foot-mail-err {
      display: block;
      margin-top: 8px;
      color: #ff8b96;
      font-size: 12px;
      font-weight: 600;
    }

    .site-foot-cols {
      display: grid;
      grid-template-columns: 1.15fr 1fr 1fr auto;
      gap: 32px 40px;
      align-items: start;
    }
    .site-foot-col {
      display: grid;
      gap: 12px;
      justify-items: start;
    }
    .site-foot-col h3 {
      margin: 0 0 4px;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.55);
    }
    .site-foot-col > a {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: #fff;
      font-size: 14px;
      font-weight: 500;
      letter-spacing: -0.01em;
    }
    .site-foot-col > a i {
      width: 16px;
      color: var(--red);
      font-size: 13px;
      text-align: center;
    }
    .site-foot-col > a:hover { color: var(--red); }

    .site-foot-social {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .site-foot-social a,
    .site-foot-social span {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.55);
      display: grid;
      place-items: center;
      color: #fff;
      font-size: 14px;
    }
    .site-foot-social a:hover {
      background: var(--red);
      border-color: var(--red);
      color: #fff;
    }

    .site-foot-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 10px 24px;
      max-width: 1180px;
      margin: 0 auto;
      padding: 18px 32px 28px;
      border-top: 1px solid rgba(255, 255, 255, 0.12);
      color: rgba(255, 255, 255, 0.55);
      font-size: 13px;
    }
    .site-foot-bar nav {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 28px;
    }
    .site-foot-bar a { color: rgba(255, 255, 255, 0.55); font-weight: 500; }
    .site-foot-bar a:hover { color: #fff; }

    @media (max-width: 900px) {
      .site-foot-inner { padding: 40px 20px 28px; gap: 36px; }
      .site-foot-hero { flex-direction: column; align-items: stretch; }
      .site-foot-tagline { max-width: 14em; }
      .site-foot-touch { width: 100%; flex: none; }
      .site-foot-cols { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
      .site-foot-bar { padding: 16px 20px 24px; }
    }
    @media (max-width: 640px) {
      .site-foot-cols { grid-template-columns: 1fr; gap: 24px; }
      .site-foot-tagline { font-size: 28px; }
      .site-foot-mail { height: 48px; padding-left: 14px; }
      .site-foot-mail button { padding: 0 16px; }
    }
