  :root {
    --bg: #0c1321;
    --card-bg: #161e30;
    --card-bg-alt: #1a263a;
    --accent: #2db06f;
    --accent-blue: #4791db;
    --text-primary: #f5f6f8;
    --text-muted: #96a3ba;
    --thin-edge: #d97706;
    --loss: #ef5350;
    --divider: #28364e;
    --recap-win-bg: #173a2b;
    --recap-loss-bg: #461d27;
    --low-confidence: #6b7688;
    --grade-s: #f2c14e;
    --grade-s-glow: rgba(242, 193, 78, .55);
    --grade-d: #e0552b;
  }
  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    position: relative;
  }

  /* --- Ambient animated background --- */
  .bg-fx { position: fixed; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
  .bg-fx .blob { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .28; animation: drift 20s ease-in-out infinite; }
  .bg-fx .b1 { width: 440px; height: 440px; background: var(--accent); top: -140px; left: -120px; }
  .bg-fx .b2 { width: 400px; height: 400px; background: var(--accent-blue); bottom: -160px; right: -100px; animation-duration: 24s; animation-delay: -6s; }
  .bg-fx .b3 { width: 300px; height: 300px; background: var(--accent-blue); top: 46%; left: 58%; opacity: .14; animation-duration: 28s; animation-delay: -12s; }

  header {
    position: sticky; top: 0; z-index: 10;
    padding: 30px 20px 22px;
    text-align: center;
    background: rgba(22, 30, 48, 0.72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--divider);
  }
  header::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-blue), transparent);
    background-size: 200% 100%; animation: gradientShift 6s linear infinite;
  }
  header .brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 6px; }
  header .brand img {
    height: 42px; width: 42px; display: block; border-radius: 9px;
    animation: logoGlow 3.2s ease-in-out infinite;
  }
  header h1 {
    margin: 0; font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700;
    font-size: 1.8rem; letter-spacing: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-blue), var(--accent));
    background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
    color: transparent; animation: gradientShift 5s linear infinite;
  }
  header p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

  /* header is position:sticky, so its padding isn't just a one-time cost at
     page load -- it permanently eats vertical space at every scroll
     position. On a phone-height viewport that's a real chunk of the
     screen gone for good, so it shrinks specifically here rather than
     just at the top-of-page moment a desktop-oriented breakpoint would
     imply. */
  @media (max-width: 480px) {
    header { padding: 14px 16px 12px; }
    header .brand img { height: 32px; width: 32px; }
    header h1 { font-size: 1.35rem; letter-spacing: 1px; }
    header p { font-size: 0.8rem; }
  }

  main { max-width: 1220px; margin: 0 auto; padding: 24px 16px 60px; }
  section { margin-bottom: 48px; }
  section.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
  section.reveal.in-view { opacity: 1; transform: none; }
  h2 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px;
    color: var(--accent-blue); margin: 0 0 16px; border-bottom: 1px solid var(--divider);
    padding-bottom: 8px;
  }

  /* --- Search --- */
  .search-row { display: flex; gap: 10px; position: relative; }
  .search-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); pointer-events: none;
  }
  input[type="text"] {
    flex: 1; padding: 14px 16px 14px 44px; font-size: 1rem; border-radius: 10px;
    border: 1px solid var(--divider); background: var(--card-bg); color: var(--text-primary);
    transition: box-shadow .2s ease, border-color .2s ease;
    font-family: inherit;
  }
  input[type="text"]:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 4px rgba(71,145,219,.18); }
  button {
    padding: 14px 22px; font-size: 1rem; font-weight: 600; border-radius: 10px;
    border: none; background: linear-gradient(135deg, var(--accent), #23935c); color: #06120c; cursor: pointer;
    box-shadow: 0 4px 14px rgba(45,176,111,.25);
    transition: transform .18s ease, box-shadow .18s ease;
  }
  button:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(45,176,111,.4); }
  button:active { transform: translateY(0); box-shadow: 0 4px 14px rgba(45,176,111,.25); }
  /* --- Search suggestions dropdown --- */
  .suggest-dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30;
    background: var(--card-bg); border: 1px solid var(--divider); border-radius: 12px;
    box-shadow: 0 14px 32px rgba(0,0,0,.45);
    max-height: 320px; overflow-y: auto;
    animation: fadeSlideIn .1s ease both;
  }
  .suggest-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; cursor: pointer;
    border-bottom: 1px solid var(--divider);
    transition: background .12s ease;
  }
  .suggest-row:last-child { border-bottom: none; }
  .suggest-row:hover, .suggest-row.active { background: var(--card-bg-alt); }
  .suggest-thumb {
    width: 32px; height: 32px; flex: none; border-radius: 8px;
    background: var(--card-bg-alt); border: 1px solid var(--divider);
    object-fit: cover;
  }
  .suggest-thumb.svg-logo { object-fit: contain; padding: 3px; }
  span.suggest-thumb.placeholder {
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.85rem;
    color: var(--text-muted);
  }
  .suggest-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
  .suggest-title {
    font-size: 0.92rem; font-weight: 600; color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .suggest-subtitle {
    font-size: 0.76rem; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  .hint { color: var(--text-muted); font-size: 0.85rem; margin: 8px 0 20px; min-height: 1.2em; }
  .status { color: var(--text-muted); text-align: center; padding: 24px 0; }
  .result-card {
    background: var(--card-bg); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px;
    border-left: 5px solid var(--accent);
    animation: fadeSlideIn .5s cubic-bezier(.22,1,.36,1) both;
    animation-delay: calc(var(--i, 0) * 70ms);
    transition: transform .22s cubic-bezier(.22,1,.36,1), box-shadow .22s ease;
  }
  .result-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.35), 0 0 0 1px rgba(45,176,111,.15); }
  .result-card.thin { border-left-color: var(--thin-edge); }
  .matchup { font-weight: 700; font-size: 1.05rem; }
  .pill {
    display: inline-block; background: var(--card-bg-alt); color: var(--accent-blue);
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
    padding: 4px 10px; border-radius: 20px; margin: 6px 0;
  }
  .selection { font-size: 0.95rem; margin-bottom: 10px; }
  .odds-row { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0; }
  .odds { font-weight: 700; }
  .edge { color: var(--text-muted); font-size: 0.88rem; }
  .edge.thin { color: var(--thin-edge); }
  .meter-track { background: var(--card-bg-alt); border-radius: 6px; height: 6px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,.4); }
  .meter-fill {
    background: var(--accent); height: 100%; border-radius: 6px; width: 0;
    box-shadow: 0 0 8px rgba(45,176,111,.6);
    animation: fillMeter 1s cubic-bezier(.22,1,.36,1) forwards;
    animation-delay: calc(var(--i, 0) * 70ms + .2s);
  }

  /* --- Compact card identity: thumbnail + title/subtitle + grade, shared by
     search-result cards and daily-picks/recap cards. Replaces the old
     matchup-heading + market-pill + selection-line block with a single
     compact row so the player/team is the headline, not buried text. */
  .card-identity { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
  .card-identity-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  .card-title {
    font-weight: 700; font-size: 1rem; color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .card-subtitle {
    font-size: 0.78rem; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .card-thumb {
    width: 36px; height: 36px; flex: none; border-radius: 9px;
    background: var(--card-bg-alt); border: 1px solid var(--divider);
    object-fit: cover;
  }
  .card-thumb.svg-logo { object-fit: contain; padding: 4px; }
  span.card-thumb.placeholder {
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.95rem;
    color: var(--text-muted);
  }
  .bet-phrase { font-size: 0.92rem; color: var(--text-primary); margin-bottom: 8px; }
  .bet-phrase-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
  .bet-phrase-row .bet-phrase { margin-bottom: 0; }

  /* --- Prop-option tabs: one player/team can carry several qualifying
     lines (hits, HR, RBI, ...) -- these switch which one prop-detail shows,
     instead of stacking a separate card per bet type. */
  .prop-options {
    display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px;
  }
  .prop-option {
    display: flex; align-items: center; gap: 6px;
    background: var(--card-bg-alt); border: 1px solid var(--divider); border-radius: 20px;
    padding: 5px 6px 5px 12px; font: inherit; color: var(--text-muted); cursor: pointer;
    font-size: 0.82rem; transition: background .15s ease, border-color .15s ease, color .15s ease;
  }
  .prop-option:hover { border-color: rgba(71,145,219,.4); color: var(--text-primary); }
  .prop-option.active { background: var(--card-bg); border-color: var(--accent-blue); color: var(--text-primary); }
  .grade-badge-sm {
    min-width: 26px; height: 22px; padding: 0 6px; font-size: 0.7rem; border-radius: 7px;
  }
  .meter-fill.thin { background: var(--thin-edge); box-shadow: 0 0 8px rgba(217,119,6,.5); }
  .strength-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; }
  .badge-limited {
    display: inline-block; background: rgba(107, 118, 136, 0.18); color: var(--low-confidence);
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
    padding: 3px 8px; border-radius: 10px; margin-left: 8px; vertical-align: middle;
  }
  .alt-book-toggle {
    display: inline-flex; align-items: center; background: none; border: none;
    color: var(--accent-blue); font: inherit; font-size: 0.78rem; font-weight: 600;
    cursor: pointer; padding: 2px 0; margin: -2px 0 4px; text-decoration: none;
  }
  .alt-book-toggle:hover { text-decoration: underline; }

  .day-badge {
    display: inline-block; background: rgba(71, 145, 219, 0.18); color: var(--accent-blue);
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.4px;
    padding: 3px 8px; border-radius: 10px; margin-left: 8px; vertical-align: middle;
  }
  .no-bets-phrase { color: var(--text-muted); font-style: italic; }
  .no-bets-note { font-size: 0.82rem; color: var(--text-muted); margin: 2px 0 4px; line-height: 1.4; }

  .panel-extras { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--divider); }
  .extras-loading { font-size: 0.78rem; color: var(--text-muted); padding: 4px 0; }
  .gamelog-strip { margin-bottom: 8px; }
  .gamelog-label {
    display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.4px;
    text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px;
  }
  .gamelog-bars { display: flex; align-items: flex-end; gap: 4px; height: 36px; }
  .gl-bar {
    flex: 1 1 0; min-width: 6px; height: var(--h, 10%); border-radius: 3px 3px 1px 1px;
    background: var(--card-bg-alt); border: 1px solid var(--divider); align-self: flex-end;
    transition: height .2s ease;
  }
  .gl-bar.hit { background: var(--accent); border-color: var(--accent); }
  .gl-bar.miss { background: var(--loss); border-color: var(--loss); opacity: 0.75; }
  .gl-bar.empty { background: none; border-style: dashed; opacity: 0.4; }
  .weather-chip {
    display: inline-flex; align-items: center; gap: 4px; font-size: 0.78rem;
    color: var(--text-muted);
  }

  .news-strip { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
  .news-item {
    border-left: 3px solid var(--divider); background: var(--card-bg-alt);
    border-radius: 0 6px 6px 0; padding: 6px 10px;
  }
  .news-item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
  .news-badge {
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
    color: var(--text-muted);
  }
  .news-date { font-size: 0.68rem; color: var(--text-muted); }
  .news-desc { font-size: 0.8rem; color: var(--text-primary); line-height: 1.35; }
  .news-item.news-il_placed { border-left-color: var(--loss); }
  .news-item.news-il_placed .news-badge { color: var(--loss); }
  .news-item.news-il_activated { border-left-color: var(--accent); }
  .news-item.news-il_activated .news-badge { color: var(--accent); }
  .news-item.news-trade, .news-item.news-callup { border-left-color: var(--accent-blue); }
  .news-item.news-trade .news-badge, .news-item.news-callup .news-badge { color: var(--accent-blue); }
  .card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
  .grade-badge {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    min-width: 46px; height: 34px; padding: 0 10px; border-radius: 9px;
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1rem;
    color: #0c1321; cursor: default;
  }
  .grade-s {
    background: linear-gradient(135deg, #f2c14e, #e8a83a);
    box-shadow: 0 0 10px var(--grade-s-glow), inset 0 1px 0 rgba(255,255,255,.4);
  }
  .grade-a-plus, .grade-a, .grade-a-minus { background: var(--accent); }
  .grade-b-plus, .grade-b, .grade-b-minus { background: var(--accent-blue); color: var(--text-primary); }
  .grade-c-plus, .grade-c, .grade-c-minus { background: var(--thin-edge); }
  .grade-d-plus, .grade-d, .grade-d-minus { background: var(--grade-d); color: var(--text-primary); }
  .grade-f { background: var(--loss); color: var(--text-primary); }

  /* --- Today's Picks / Yesterday's Recap --- */
  .two-col {
    display: flex; gap: 24px; align-items: stretch;
  }
  .two-col > .daily-card { flex: 1 1 0; min-width: 0; }
  @media (max-width: 860px) { .two-col { flex-direction: column; } }
  .daily-card {
    display: flex; flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--divider);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
    transition: box-shadow .22s ease, border-color .22s ease;
  }
  .daily-card:hover { border-color: rgba(71,145,219,.35); }
  .daily-card-head { display: flex; align-items: center; gap: 9px; margin: 2px 4px 4px; }
  .daily-card-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; animation: pulseDot 2.2s ease-out infinite; transition: background .3s ease; }
  .daily-card-head.blue .dot { background: var(--accent-blue); animation-name: pulseDotBlue; }
  .daily-card-head .dot.live { background: var(--loss); animation: pulseDotLive 1.4s ease-out infinite; }
  .daily-card-head h3 {
    margin: 0; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--text-primary); font-weight: 700;
  }
  .daily-card-sub { font-size: 0.85rem; color: var(--text-muted); margin: 0 4px 12px; }
  /* flex:1 lets the shorter column's card list stretch to match the taller
     column's overall height (the .daily-card itself is stretched by the
     grid above) instead of leaving a visually uneven gap only on one side. */
  .pick-list { display: flex; flex-direction: column; gap: 10px; flex: 1; }

  .pick-card {
    position: relative;
    background: var(--card-bg); border-radius: 14px; padding: 14px 16px;
    border-left: 6px solid var(--accent);
    /* Individual cards vary in content (notes present/absent, a thin-edge
       pill, live state) -- a shared min-height keeps every card in both
       columns visually consistent instead of each one hugging its own
       content height. Doesn't clip anything, just pads shorter cards up. */
    min-height: 168px; box-sizing: border-box;
    display: flex; flex-direction: column;
    animation: fadeSlideIn .5s cubic-bezier(.22,1,.36,1) both;
    animation-delay: calc(var(--i, 0) * 70ms);
    transition: transform .22s cubic-bezier(.22,1,.36,1), box-shadow .22s ease, background .3s ease;
  }
  .pick-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.35), 0 0 0 1px rgba(45,176,111,.15); }
  .pick-card.thin { border-left-color: var(--thin-edge); }
  .pick-card.hit { background: var(--recap-win-bg); }
  .hit-crown {
    position: absolute; top: -12px; right: 16px;
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--grade-s), #e8a83a);
    color: #06120c;
    box-shadow: 0 0 10px var(--grade-s-glow), 0 4px 10px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.4);
    animation: popBadge .5s cubic-bezier(.34,1.56,.64,1) both, crownGlow 2.4s ease-in-out .5s infinite;
  }
  .hit-crown svg { width: 15px; height: 15px; }
  .pick-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
  .pick-card .card-thumb { width: 40px; height: 40px; }
  .pick-card .card-title { font-size: 1.05rem; }
  .pick-card .bet-phrase { font-size: 0.98rem; margin-bottom: 6px; }
  .pick-card .odds-row { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0; flex-wrap: wrap; gap: 6px; }
  .pick-card .odds { font-weight: 700; font-size: 1.05rem; color: var(--accent); }
  .pick-card.thin .odds { color: var(--thin-edge); }
  .pick-card .edge { color: var(--text-muted); font-size: 0.9rem; }
  .pick-card .edge.thin { color: var(--thin-edge); }
  .pick-card .meter-track { background: var(--card-bg-alt); border-radius: 6px; height: 6px; overflow: hidden; }
  .pick-card .pick-note {
    margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--divider);
    font-size: 0.85rem; line-height: 1.5; color: var(--text-muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }

  /* --- Live in-game tracking (today's picks only) --- */
  .live-slot:empty { display: none; }
  .live-state { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 0.85rem; }
  .live-badge {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--loss); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.5px;
  }
  .live-badge::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--loss);
    animation: pulseDotLive 1.4s ease-out infinite;
  }
  .live-score { color: var(--text-primary); font-weight: 600; }
  .live-progress { margin: 4px 0 8px; }
  .live-progress-track { background: var(--card-bg-alt); border-radius: 6px; height: 6px; overflow: hidden; }
  .live-progress-fill {
    background: var(--accent-blue); height: 100%; border-radius: 6px;
    transition: width .4s ease;
  }
  .live-progress.cleared .live-progress-fill { background: var(--accent); box-shadow: 0 0 8px rgba(45,176,111,.6); }
  .live-progress-label { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
  .live-progress.cleared .live-progress-label { color: var(--accent); font-weight: 600; }
  .pick-card .pill {
    display: inline-block; background: var(--card-bg-alt); color: var(--accent-blue);
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
    padding: 5px 11px; border-radius: 20px;
  }
  .pick-card .pill.thin-pill { background: rgba(217,119,6,0.18); color: var(--thin-edge); }

  /* recap-specific: tinted card background + status pill + result units */
  .pick-card.recap.win { background: var(--recap-win-bg); border-left-color: var(--accent); }
  .pick-card.recap.loss { background: var(--recap-loss-bg); border-left-color: var(--loss); }
  .pick-card.recap.push { border-left-color: var(--text-muted); }
  .pick-card.recap.pending { border-left-color: var(--accent-blue); }
  .status-pill {
    display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px;
    padding: 5px 12px; border-radius: 20px; text-transform: uppercase;
  }
  .pick-card.recap .status-pill {
    animation: popBadge .45s cubic-bezier(.34,1.56,.64,1) both;
    animation-delay: calc(var(--i, 0) * 70ms + .25s);
  }
  .status-pill.win { background: var(--accent); color: #06120c; }
  .status-pill.loss { background: var(--loss); color: #2b0a0a; }
  .status-pill.push { background: var(--card-bg-alt); color: var(--text-muted); }
  .status-pill.pending { background: var(--accent-blue); color: #06121f; }
  .result-row { display: flex; justify-content: flex-end; }
  .units-result { font-weight: 700; font-size: 1.4rem; font-family: 'Space Grotesk', sans-serif; }
  .units-result.win { color: var(--accent); }
  .units-result.loss { color: var(--loss); }
  .units-result.push, .units-result.pending { color: var(--text-muted); }

  .graphic-placeholder {
    padding: 70px 20px; color: var(--text-muted); font-size: 0.9rem; text-align: center;
    border: 1px dashed var(--divider); border-radius: 10px;
  }

  /* --- Loading skeletons --- */
  .skeleton {
    position: relative; overflow: hidden; border-radius: 14px;
    background: linear-gradient(90deg, var(--card-bg) 0%, var(--card-bg-alt) 50%, var(--card-bg) 100%);
    background-size: 800px 100%;
    animation: shimmer 1.6s linear infinite;
  }
  .skeleton-card { height: 118px; margin-bottom: 16px; }
  .skeleton-stat { height: 74px; border-radius: 12px; }

  /* --- Analytics --- */
  .stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
  .stat-card {
    background: var(--card-bg); border-radius: 12px; padding: 16px;
    animation: popIn .5s cubic-bezier(.22,1,.36,1) both;
    transition: transform .22s cubic-bezier(.22,1,.36,1), box-shadow .22s ease;
  }
  .stat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.3); }
  .stat-cards .stat-card:nth-child(1) { animation-delay: .00s }
  .stat-cards .stat-card:nth-child(2) { animation-delay: .04s }
  .stat-cards .stat-card:nth-child(3) { animation-delay: .08s }
  .stat-cards .stat-card:nth-child(4) { animation-delay: .12s }
  .stat-cards .stat-card:nth-child(5) { animation-delay: .16s }
  .stat-cards .stat-card:nth-child(6) { animation-delay: .20s }
  .stat-cards .stat-card:nth-child(7) { animation-delay: .24s }
  .stat-cards .stat-card:nth-child(8) { animation-delay: .28s }
  .stat-cards .stat-card:nth-child(9) { animation-delay: .32s }
  .stat-cards .stat-card:nth-child(10) { animation-delay: .36s }
  .stat-card .label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
  .stat-card .value { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; margin-top: 4px; }
  .stat-card .value.positive { color: var(--accent); }
  .stat-card .value.negative { color: var(--loss); }
  .charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
  @media (max-width: 720px) { .charts-row { grid-template-columns: 1fr; } }
  .chart-box {
    background: var(--card-bg); border-radius: 14px; padding: 18px;
    animation: popIn .55s cubic-bezier(.22,1,.36,1) both;
    transition: transform .22s cubic-bezier(.22,1,.36,1), box-shadow .22s ease;
  }
  .chart-box:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.3); }
  .chart-box canvas { max-height: 260px; }
  table { width: 100%; border-collapse: collapse; background: var(--card-bg); border-radius: 14px; overflow: hidden; }
  th, td { text-align: left; padding: 10px 14px; font-size: 0.88rem; border-bottom: 1px solid var(--divider); }
  th { color: var(--text-muted); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.5px; }
  td.win { color: var(--accent); font-weight: 600; }
  td.loss { color: var(--loss); font-weight: 600; }
  td.push { color: var(--text-muted); }
  td.pending { color: var(--accent-blue); }
  tbody tr { transition: background .15s ease; }
  tbody tr:hover { background: rgba(71,145,219,.06); }
  .table-wrap { overflow-x: auto; border-radius: 14px; }
  .market-table { margin-bottom: 24px; }

  footer { text-align: center; color: var(--text-muted); font-size: 0.8rem; padding: 24px 20px; border-top: 1px solid var(--divider); }

  /* --- Keyframes --- */
  @keyframes fadeSlideIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
  @keyframes popBadge { 0% { opacity: 0; transform: scale(.6); } 60% { transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
  @keyframes fillMeter { to { width: var(--target, 0%); } }
  @keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(45,176,111,.55); }
    70% { box-shadow: 0 0 0 8px rgba(45,176,111,0); }
  }
  @keyframes pulseDotBlue {
    0%, 100% { box-shadow: 0 0 0 0 rgba(71,145,219,.55); }
    70% { box-shadow: 0 0 0 8px rgba(71,145,219,0); }
  }
  @keyframes pulseDotLive {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,83,80,.6); }
    70% { box-shadow: 0 0 0 9px rgba(239,83,80,0); }
  }
  @keyframes drift {
    0% { transform: translate(0,0) scale(1); }
    50% { transform: translate(30px,-24px) scale(1.08); }
    100% { transform: translate(0,0) scale(1); }
  }
  @keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
  @keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
  @keyframes logoGlow {
    0%, 100% { box-shadow: 0 0 14px 0 rgba(45,176,111,.35); }
    50% { box-shadow: 0 0 22px 4px rgba(45,176,111,.55); }
  }
  @keyframes crownGlow {
    0%, 100% { box-shadow: 0 0 10px var(--grade-s-glow), 0 4px 10px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.4); }
    50% { box-shadow: 0 0 20px var(--grade-s-glow), 0 4px 10px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.4); }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: .001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .001ms !important;
      scroll-behavior: auto !important;
    }
  }
