/* CRAQUE — protótipo 1. Tema único: gramado à noite, cards de papel. */
/* Bandeiras: o Windows não desenha emoji de bandeira (mostra "BR"). Esta fonte cobre só os caracteres
   de bandeira (unicode-range), então o resto do texto continua com as fontes normais. */
@font-face { font-family: 'Twemoji Country Flags'; src: url('fonts/TwemojiCountryFlags.woff2') format('woff2');
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F; font-display: swap; }
/* fontes do jogo (tools/craque_fonts.py) */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/barlow-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/barlow-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/barlow-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/barlow-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-condensed-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-condensed-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/barlow-condensed-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/barlow-condensed-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/barlow-condensed-800-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/barlow-condensed-800-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Caveat Brush'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/caveat-brush-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Caveat Brush'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/caveat-brush-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Great Vibes'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/great-vibes-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Great Vibes'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/great-vibes-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Homemade Apple'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/homemade-apple-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Kaushan Script'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/kaushan-script-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Kaushan Script'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/kaushan-script-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Monsieur La Doulaise'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/monsieur-la-doulaise-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Monsieur La Doulaise'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/monsieur-la-doulaise-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Mrs Saint Delafield'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/mrs-saint-delafield-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Mrs Saint Delafield'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/mrs-saint-delafield-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Pinyon Script'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/pinyon-script-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Pinyon Script'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/pinyon-script-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/playfair-display-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/playfair-display-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 900; font-display: swap; src: url('fonts/playfair-display-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 900; font-display: swap; src: url('fonts/playfair-display-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rock Salt'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/rock-salt-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sedgwick Ave'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/sedgwick-ave-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Sedgwick Ave'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/sedgwick-ave-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Yellowtail'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/yellowtail-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Yellowtail'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/yellowtail-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Zeyada'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/zeyada-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Zeyada'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/zeyada-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* fim das fontes do jogo */
:root {
  --pitch: #0F3D2A;
  --pitch-2: #145235;
  --line: rgba(255, 255, 255, 0.14);
  --paper: #FBF8EF;
  --paper-2: #EFE9D8;
  --ink: #13201A;
  --muted: #5E6B63;
  --gold: #F2C230;
  --green: #22A45D;
  --red: #D8404A;
  --blue: #2F6FD6;
  --display: 'Twemoji Country Flags', 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Twemoji Country Flags', 'Barlow', system-ui, sans-serif;
  /* Escala de texto: peso 800 só no logo, título de tela e números em destaque */
  --t-hero: 800 clamp(64px, 20vw, 96px)/0.9 var(--display);
  --t-num: 800 44px/1 var(--display);
  --t-h1: 800 30px/1.05 var(--display);
  --t-h2: 700 22px/1.1 var(--display);
  --t-item: 700 18px/1.15 var(--display);
  --t-body: 500 16px/1.4 var(--body);
  --t-small: 500 14px/1.35 var(--body);
  --t-label: 600 12px var(--display);
  color-scheme: dark;
}
/* Paleta e medidas comuns (guia visual no CLAUDE.md): regra nova usa estas variáveis em vez de cor solta */
:root {
  /* texto sobre o verde: principal, apoio, rótulo/nota e desligado (todos com contraste AA no gramado) */
  --tx-1: #FBF8EF; --tx-2: #D3E4D9; --tx-3: #B9CDBF; --tx-4: #9DB5A6;
  /* texto sobre o papel creme */
  --ink-2: #5E6B63;
  /* superfícies: bloco escuro translúcido, bloco em destaque, borda; placar/ao vivo quase preto */
  --panel: rgba(255, 255, 255, .06); --panel-2: rgba(255, 255, 255, .1); --panel-line: rgba(255, 255, 255, .12);
  --board: #07110C; --board-2: #0E1A14;
  /* ouro: claro (sobre escuro), sombra do botão, legível sobre o papel */
  --gold-2: #F4D675; --gold-deep: #A9861C; --gold-ink: #8A6400;
  /* ganho e perda: sobre o verde e sobre o papel; certo (azul) sobre o papel */
  --up: #7BE3A0; --up-ink: #1E7A45; --down: #FF9AA2; --down-ink: #B83A2E; --info-ink: #1D4C9E;
  /* cantos e sombras */
  --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 22px;
  --sh-press: 0 3px 0 rgba(0, 0, 0, .35); --sh-float: 0 12px 28px rgba(0, 0, 0, .3);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--pitch);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 56px, rgba(255, 255, 255, 0.025) 56px 112px);
  color: var(--paper);
  font: 500 16px/1.4 var(--body);
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

#app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: calc(12px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-left, 0px)) calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- barra do jogador ---------- */
.bar {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px));
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  background: rgba(10, 42, 29, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 10px;
}
.bar-name { font: 800 20px/1 var(--display); letter-spacing: 0.02em; white-space: nowrap; display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.bar-name .bn { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bar-sub { font-size: 13px; color: #B9CDBF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-tot { display: flex; gap: 7px; font: 700 15px var(--display); color: #DDE9E0; font-variant-numeric: tabular-nums; }
.bar-tot span { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.bar-tot small { font: 600 10px var(--body); color: #9DB5A6; letter-spacing: 0.06em; margin-top: 2px; }
.ovr {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--ink);
  display: grid; place-items: center;
  font: 800 24px var(--display);
  line-height: 1;
}
.ovr.up { animation: pop 0.5s ease; }

/* medidores Técnico / Torcida */
.rel { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 0.8fr auto; gap: 8px; align-items: end; }
.rel .mb i.fame { background: var(--gold); }
.rel .m { display: flex; flex-direction: row; align-items: center; gap: 6px; min-width: 0; cursor: pointer; }
.rel .ml { font-size: 16px; line-height: 1; flex: none; }
.rel .m .mb { flex: 1; }
.rel .mb { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.rel .mb i { display: block; height: 100%; background: #9DB5A6; transition: width 0.4s; }
.rel .mb i.hi { background: #5FD690; }
.rel .mb i.lo { background: var(--red); }

/* escudos */
.crest { width: 28px; height: 28px; object-fit: contain; vertical-align: middle; margin-right: 8px; flex: none; }
.crest.xs { width: 18px; height: 18px; margin-right: 5px; }
.crest.lg { width: 40px; height: 40px; margin-right: 10px; }
.crest.xl { width: 76px; height: 76px; display: block; margin: 4px auto 10px; }
.with-crest { display: flex; align-items: center; }
.offer .club { display: flex; align-items: center; min-width: 0; }

/* taças */
.trophy { flex: none; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.3)); }
.titles { display: flex; flex-direction: column; gap: 6px; }
.title-won { display: flex; align-items: center; gap: 12px; background: rgba(242, 194, 48, 0.16); border: 1px solid rgba(242, 194, 48, 0.5); border-radius: 12px; padding: 6px 12px; animation: pop 0.45s ease; }
.title-won span { font-size: 13px; color: #F7E3A0; line-height: 1.15; }
.title-won b { font: 800 22px var(--display); color: var(--paper); }
.award { display: flex; align-items: center; gap: 8px; }
.award.ballon { justify-content: center; }
.room-title { font: 800 14px var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.room { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.room div { background: var(--paper-2); border-radius: 12px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.room b { font: 800 22px/1 var(--display); }
.room span { font-size: 12px; color: var(--muted); line-height: 1.15; }
.rel-delta { font-size: 14px; color: #CFE0D4; margin: 0; }

/* opções de evento com o que está em jogo */
.btn.opt { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.btn.opt small { font: 600 13px/1.25 var(--body); letter-spacing: 0; opacity: 0.85; }
/* chance em destaque: uma linha por resultado (verde dá certo, vermelho dá errado) e o custo/fixo à parte */
.btn.opt .odds { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 4px 8px; margin-top: 4px; font: var(--t-small); letter-spacing: 0; text-align: left; }
.btn.opt .od-row { display: contents; }
.btn.opt .od-row b { min-width: 44px; padding: 2px 6px; border-radius: 999px; background: rgba(19, 32, 26, .14); font: 800 13px/1.2 var(--body); text-align: center; }
.btn.opt .od-row.win b { background: #1E7A45; color: #fff; }
.btn.opt .od-row.lose b { background: #B83A2E; color: #fff; }
.btn.opt .od-always { grid-column: 1 / -1; text-align: center; opacity: .8; font-size: 13px; }
.btn.ghost.opt .od-row b { background: rgba(255, 255, 255, .14); }
.btn.ghost.opt .od-row.win b { background: #23804B; }
.btn.ghost.opt .od-row.lose b { background: #B83A2E; }
.btn.ghost.opt .odds { color: #D3E4D9; }

/* características com espaços e níveis */
.eyebrow.small { font-size: 12px; color: #B9CDBF; }
.chip b { font-weight: 800; color: var(--gold); }
.chip.empty { background: transparent; border: 1px dashed rgba(255, 255, 255, 0.25); color: #9DB5A6; white-space: nowrap; }
.choice b .tag { vertical-align: middle; margin-left: 4px; }

/* temporada explicada */
.table-line { margin: 0; font: 700 18px var(--display); color: var(--gold); letter-spacing: 0.02em; }
.why-card { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; }
.delta-in { margin: 0; font: 800 20px var(--display); }
.delta-in.up { color: var(--green); }
.delta-in.down { color: var(--red); }
.why { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.why li { display: flex; justify-content: space-between; gap: 10px; border-top: 1px dashed #D6CEB8; padding-top: 4px; }
.why b { font: 800 16px var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.why b.up { color: var(--green); }
.why b.down { color: var(--red); }
.why b.pot { color: #B98700; }
.why b.zero { color: var(--muted, #8A9A90); }
.why b.note { font-size: 14px; }
.why-note { margin: 0 0 8px; font-size: 14px; line-height: 1.35; color: #5A4A10; background: #FFF4CC; border-radius: 10px; padding: 8px 10px; }
.pe-gain { margin: 8px 0 0; font-size: 14px; line-height: 1.35; color: #1F4B2E; background: #E3F4E8; border-radius: 10px; padding: 8px 10px; }
.rival-line { margin: 8px 0 0; font-size: 14px; line-height: 1.35; color: #14233D; background: #E6EEFB; border-radius: 10px; padding: 8px 10px; }
.rival-line.hot { background: #FDE4E1; color: #4A1410; }
.fin-rival { margin: 10px 0 0; border-radius: 10px; background: #E6EEFB; color: #14233D; padding: 8px 10px; font-size: 13px; }
.fin-rival b { display: block; margin-bottom: 4px; font-size: 14px; }
.fin-rival table { width: 100%; border-collapse: collapse; }
.fin-rival td { padding: 2px 0; }
.fin-rival td + td { text-align: right; font-weight: 700; width: 25%; }
.star-line { margin: 8px 0 0; font-size: 14px; line-height: 1.35; color: #3B2A06; background: #FFF4CC; border-radius: 10px; padding: 8px 10px; }
.final .why li { border-color: #D6CEB8; }
.contract { margin: 0; color: #CFE0D4; font-size: 14px; }
.btn small { display: block; font: 600 13px/1.25 var(--body); letter-spacing: 0; opacity: 0.85; margin-top: 2px; }

/* card estilo FUT */
.fut { display: flex; justify-content: center; }
.fut canvas { width: min(340px, 86vw); height: auto; aspect-ratio: 600 / 860; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45)); animation: pop 0.5s ease; }

/* ---------- telas ---------- */
#screen { display: flex; flex-direction: column; gap: 12px; animation: enter 0.28s ease-out; }
.eyebrow { font: 700 13px var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
h1, h2 { font-family: var(--display); margin: 0; letter-spacing: 0.01em; text-wrap: balance; }
h1 { font-size: clamp(64px, 20vw, 96px); font-weight: 800; line-height: 0.9; }
h2 { font-size: 30px; font-weight: 800; line-height: 1.05; }
.hero { position: relative; padding-top: 4px; }
.ball3d { width: 100%; height: 190px; margin: -4px 0 -6px; opacity: 0; transform: scale(.85); transition: opacity .6s ease, transform .6s cubic-bezier(.2,1.4,.4,1); touch-action: none; cursor: grab; background: radial-gradient(ellipse 16% 4% at 50% 95%, rgba(0,0,0,.4), transparent); }
.ball3d.ready { opacity: 1; transform: none; }
.ball3d canvas { width: 100%; height: 100%; display: block; }
.lead { color: #CFE0D4; margin: 0; max-width: 40ch; }

.card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice {
  text-align: left;
  width: 100%;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  transition: transform 0.08s;
}
.choice:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.choice .ic { font-size: 30px; grid-row: span 2; }
.choice b { font: 800 21px/1.05 var(--display); }
.choice .d { font-size: 14px; color: var(--muted); }
.choice.combo { box-shadow: 0 0 0 3px var(--gold), 0 3px 0 rgba(0, 0, 0, 0.35); }
.tag {
  display: inline-block;
  font: 700 12px var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 1px 7px;
  background: var(--paper-2);
  color: var(--ink);
  white-space: nowrap;
}
.tag.gold { background: var(--gold); }
.tag.green { background: #CDEFD9; color: #0E5A30; }
.tag.red { background: #F8D3D6; color: #8E1B24; }
.tag.blue { background: #D6E4FA; color: #1D4C9E; }

.btn {
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  font: 800 20px var(--display);
  letter-spacing: 0.03em;
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.4);
  width: 100%;
}
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4); }
.btn.ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px var(--line); }
.btn:disabled { opacity: 0.5; }
/* Todo botão afunda um pouco no toque; "scale" se soma ao transform próprio de cada um */
button { transition: scale .08s ease-out; }
button:not(:disabled):active { scale: .97; }

/* criação */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font: 700 13px var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: #B9CDBF; }
.field input {
  border: 0; border-radius: 12px; padding: 12px 14px;
  font: 700 20px var(--display); background: var(--paper); color: var(--ink);
}
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.seg button {
  border: 0; border-radius: 12px; padding: 10px 6px;
  background: rgba(255, 255, 255, 0.08); color: var(--paper);
  font: 700 17px var(--display);
}
.seg button.on { background: var(--paper); color: var(--ink); }
.seg.flags { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.seg.flags button { font-size: 24px; padding: 8px 0; }

/* propostas */
.offer { display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: left; }
.offer .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.offer .stars { flex: none; }
.offer .club { font-size: clamp(19px, 5.6vw, 24px); }
.offer .club { font: 800 24px/1 var(--display); }
.offer .lg { font-size: 13px; color: var(--muted); }
.offer .facts { display: flex; flex-wrap: wrap; gap: 6px; }
.stars { color: #C69A00; letter-spacing: 1px; font-size: 13px; white-space: nowrap; }

/* traços atuais */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; background: rgba(255, 255, 255, 0.1); border-radius: 999px; padding: 3px 10px; }
.chip.syn { background: var(--gold); color: var(--ink); font-weight: 700; }

/* temporada */
/* Topo da temporada: o papel no time (tag) vai embaixo do nome do clube, sem espremer o título */
.season-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.season-head > div { width: 100%; }
.counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.counter { background: var(--paper); color: var(--ink); border-radius: 12px; padding: 8px 4px; text-align: center; }
.counter b { display: block; font: 800 32px/1 var(--display); font-variant-numeric: tabular-nums; }
.counter span { font-size: 12px; color: var(--muted); font-weight: 600; }
.counter.rate b { color: var(--green); }
.feed { display: flex; flex-direction: column; gap: 6px; min-height: 40px; }
.feed div { background: rgba(255, 255, 255, 0.08); border-radius: 10px; padding: 8px 12px; animation: enter 0.25s ease-out; }
.awards { display: flex; flex-direction: column; gap: 6px; }
.award { background: var(--gold); color: var(--ink); border-radius: 12px; padding: 8px 12px; font: 800 20px var(--display); animation: pop 0.45s ease; }
.award.ballon { background: linear-gradient(135deg, #FFE27A, #E0A800); font-size: 26px; text-align: center; box-shadow: 0 0 30px rgba(242, 194, 48, 0.6); }
.news { background: var(--paper); color: var(--ink); border-radius: 12px; padding: 10px 14px; }
.news .np { font: 800 12px var(--display); letter-spacing: 0.16em; color: var(--muted); border-bottom: 2px solid var(--ink); padding-bottom: 4px; margin-bottom: 6px; }
.news p { margin: 4px 0; font: 700 19px/1.15 var(--display); }
.delta { font: 700 16px var(--display); }
.delta.up { color: #7BE3A2; }
.delta.down { color: #FF9AA2; }

/* evento */
.event-card { display: flex; flex-direction: column; gap: 8px; }
.event-card .ic { font-size: 40px; }
.result { border-radius: 12px; padding: 10px 12px; font-weight: 700; }
.result.ok { background: #CDEFD9; color: #0E5A30; }
.result.ko { background: #F8D3D6; color: #8E1B24; }

/* card final */
.final { background: var(--paper); color: var(--ink); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.4); }
.final .headrow { display: flex; gap: 12px; align-items: center; }
.grade { width: 72px; height: 84px; border-radius: 14px; display: grid; place-items: center; font: 800 58px var(--display); background: var(--ink); color: var(--gold); flex: none; }
.grade.S { background: linear-gradient(135deg, #FFE27A, #C98E00); color: var(--ink); }
.final .who b { font: 800 28px/1 var(--display); display: block; }
.final .who span { color: var(--muted); font-size: 14px; }
.verdict { font: 800 24px/1.05 var(--display); color: var(--pitch-2); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.stats div { background: var(--paper-2); border-radius: 10px; padding: 6px; text-align: center; }
.stats b { display: block; font: 800 26px/1 var(--display); font-variant-numeric: tabular-nums; }
.stats span { font-size: 12px; color: var(--muted); font-weight: 600; }
.timeline { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.timeline div { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px; border-bottom: 1px dashed #D6CEB8; padding: 3px 0; }
.timeline span:last-child { font-variant-numeric: tabular-nums; color: var(--muted); }
.score { font: 800 18px var(--display); color: var(--muted); text-align: right; }

.hall { display: flex; flex-direction: column; gap: 6px; }
.hall div { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; background: rgba(255, 255, 255, 0.07); border-radius: 10px; padding: 6px 10px; font-size: 14px; }
.hall b { font: 800 20px var(--display); color: var(--gold); }
.hall small { color: #9DB5A6; }
.muted { color: #9DB5A6; font-size: 14px; }

@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
@keyframes pop { 0% { transform: scale(0.7); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Mini carta da pré-temporada */
.mcard.metal { position: sticky; }
.mcard { position: sticky; top: calc(var(--bar-h, 0px) + env(safe-area-inset-top, 0px) + 8px); z-index: 4; display: grid; grid-template-columns: 78px 1fr; gap: 12px; align-items: center; padding: 16px 14px 10px; border-radius: 16px;
  color: var(--mc-ink); overflow: hidden; }
.mcard > *:not(.mc-tier) { position: relative; z-index: 1; }
.mcard > .mc-tier { z-index: 1; }
.mcard.bronze, .mcard.prata, .mcard.ouro, .mcard.icone { background: var(--metal); }
.mcard.bronze { --mc-ink: #2E1A0B; }
.mcard.prata { --mc-ink: #18222D; }
.mcard.ouro { --mc-ink: #2E2100; }
.mcard.icone { --mc-ink: #F4D675; }

/* Metal: vários pontos de luz (polido), riscos finos (escovado), chanfro e um reflexo que passa */
.metal.bronze { --metal: linear-gradient(115deg, #6B3E1C 0%, #D9A174 17%, #8E5429 33%, #F2C9A0 50%, #A9693A 66%, #E0AC80 82%, #5E3517 100%); }
.metal.prata { --metal: linear-gradient(115deg, #6F7A86 0%, #F4F7FA 17%, #A3AEBA 33%, #FFFFFF 50%, #8D98A5 66%, #E6EBF0 82%, #5E6873 100%); }
.metal.ouro { --metal: linear-gradient(115deg, #7C5A10 0%, #F7E39A 17%, #C08E1E 33%, #FFF4C4 50%, #B8891F 66%, #F2D57A 82%, #6E4F0C 100%); }
.metal.icone { --metal: conic-gradient(from 200deg at 70% 30%, rgba(255,110,199,.18), rgba(122,252,255,.18), rgba(255,243,138,.18), rgba(138,255,161,.18), rgba(178,141,255,.18), rgba(255,110,199,.18)), linear-gradient(115deg, #120E20 0%, #3A3060 20%, #1A1530 40%, #4B3F7A 55%, #15112A 75%, #0B0914 100%); }
.metal { position: relative; overflow: hidden;
  box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, .7), inset -1.5px -1.5px 0 rgba(0, 0, 0, .35), inset 0 0 0 4px rgba(0, 0, 0, .06), 0 3px 0 rgba(0, 0, 0, .35); }
.metal.icone { box-shadow: inset 1.5px 1.5px 0 rgba(244, 214, 117, .55), inset -1.5px -1.5px 0 rgba(0, 0, 0, .6), 0 3px 0 rgba(0, 0, 0, .45); }
.metal::before { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: repeating-linear-gradient(178deg, rgba(255, 255, 255, .07) 0 1px, rgba(0, 0, 0, .04) 1px 2px, transparent 2px 3px); }
.metal::after { content: ''; position: absolute; top: -50%; bottom: -50%; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 62% { left: -60%; } 100% { left: 130%; } }
.metal.icone::after { background: linear-gradient(100deg, transparent, rgba(244, 214, 117, .35), transparent); }
.mcard b, .mcard span, .ovr.metal { text-shadow: 0 1px 0 rgba(255, 255, 255, .45), 0 -1px 0 rgba(0, 0, 0, .18); }
.mcard.icone b, .mcard.icone span, .ovr.metal.icone { text-shadow: 0 2px 0 rgba(0, 0, 0, .6); }
.ovr.metal { background: var(--metal); }
.ovr.metal.bronze { color: #2E1A0B; } .ovr.metal.prata { color: #18222D; } .ovr.metal.ouro { color: #2E2100; } .ovr.metal.icone { color: #F4D675; }
.mc-tier { position: absolute; right: 12px; top: 5px; font: 800 11px var(--display); letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.mcard.pop { animation: mc-pop .5s ease; }
.mcard.icone .mc-at.up i, .mcard.icone .mc-ovr i.up { color: #7BE3A0; }
.mcard.icone .mc-at.down i, .mcard.icone .mc-ovr i.down { color: #FF8A93; }
.mcard.icone .mc-at.up { background: rgba(123, 227, 160, 0.15); }
@keyframes mc-pop { 40% { transform: scale(1.03); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5), 0 3px 0 rgba(0, 0, 0, 0.35); } }
.mc-ovr { position: relative; text-align: center; border-right: 2px solid currentColor; border-right-color: color-mix(in srgb, currentColor 25%, transparent); padding-right: 8px; }
.mc-ovr b { display: block; font: 800 50px/0.9 var(--display); }
.mc-ovr span { font: 800 18px var(--display); }
.mc-ovr i, .mc-at i { font: 800 15px var(--display); font-style: normal; }
.mc-ovr i { position: absolute; top: -8px; right: -2px; }
.mc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 12px; }
.mc-at { display: flex; align-items: baseline; gap: 5px; padding: 1px 4px; border-radius: 6px; transition: background .2s; }
.mc-at b { font: 800 24px/1.1 var(--display); min-width: 28px; text-align: right; font-variant-numeric: tabular-nums; }
.mc-at span { font: 700 16px var(--display); }
.mc-at i { margin-left: auto; }
.mc-at.up { background: rgba(14, 90, 48, 0.18); }
.mc-at.down { background: rgba(142, 27, 36, 0.16); }
.mc-at.up i, .mc-ovr i.up { color: #0E6A35; }
.mc-at.down i, .mc-ovr i.down { color: #A01E28; }
.choice.sel { box-shadow: 0 0 0 3px #fff, 0 3px 0 rgba(0, 0, 0, 0.35); }
.btn:disabled { opacity: 0.55; }
.choice .d .tag { white-space: normal; display: inline-block; line-height: 1.3; margin-top: 4px; }
.mcard.tierup .mc-tier { opacity: 1; animation: mc-pop .6s ease 2; }

/* Investimentos */
.wallet { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: #CFE0D4; }
.wallet b { font: 800 20px var(--display); color: var(--gold); margin-left: 4px; }
.choice .pips { font-size: 13px; letter-spacing: 2px; color: var(--gold-ink, #9A7400); vertical-align: middle; margin-left: 4px; }
.choice:disabled { opacity: 0.5; }
.muted.small { font-size: 13px; margin: 0; }
.patr { color: var(--muted) !important; margin: 10px 0 0 !important; }

/* Resumo da temporada aparecendo aos poucos */
.rv { opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease; }
.rv.in { opacity: 1; transform: none; }
.title-won.rv { transform: scale(.6); }
.title-won.rv.in { transform: none; animation: trophy-in .8s cubic-bezier(.2, 1.5, .4, 1); }
.award.rv.in { animation: trophy-in .6s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes trophy-in { 0% { transform: scale(.4) rotate(-8deg); } 60% { transform: scale(1.12) rotate(2deg); } 100% { transform: none; } }
.title-won.rv.in svg { animation: shine 1.2s ease .3s; }
@keyframes shine { 50% { filter: drop-shadow(0 0 12px rgba(255, 214, 90, .9)) brightness(1.2); } }
.counter.pop { animation: mc-pop .5s ease; }
.skip-hint { text-align: center; font-size: 12px; color: #9DB5A6; margin: 4px 0 0; }
.feed div.rv:not(.in), .award.rv:not(.in) { animation: none; }
.feed:empty { min-height: 0; }

/* Blocos do resumo mais separados */
#after { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
#after > .rv:last-child { display: flex; flex-direction: column; gap: 10px; }

/* Jornal da temporada (popup) */
.paper-wrap { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 20px 16px;
  background: rgba(4, 16, 10, 0.72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade-in .25s ease; }
.paper-wrap.out { animation: fade-out .25s ease forwards; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.paper { margin: auto 0; flex-shrink: 0; width: min(100%, 380px); background: #F4EEDC; color: #1B1A17; padding: 14px 16px 12px; border-radius: 3px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 0 60px rgba(120, 90, 30, 0.18);
  font-family: 'Twemoji Country Flags', 'Playfair Display', Georgia, serif; animation: paper-spin .5s cubic-bezier(.2, .9, .3, 1.1);
  position: relative; transform-style: preserve-3d; }
@keyframes paper-spin { 0% { transform: perspective(900px) translateZ(-1400px) rotateZ(-200deg) rotateX(40deg) scale(.4); opacity: 0; }
  60% { opacity: 1; } 78% { transform: perspective(900px) translateZ(40px) rotateZ(10deg) rotateX(-8deg) scale(1.03); }
  100% { transform: perspective(900px) translateZ(0) rotateZ(-1.5deg) rotateX(0) scale(1); } }
/* Dobrado ao meio: a metade de cima está dobrada para a frente (a aba mostra o verso); ao abrir, ela sobe pela dobra */
.paper.folded { background: transparent; box-shadow: none; }
.paper.folded .pp-in { clip-path: inset(50% 0 0 0); background: #F4EEDC; margin: -14px -16px -12px; padding: 14px 16px 12px; box-shadow: 0 20px 50px rgba(0,0,0,.55); }
.pp-flap { position: absolute; left: 0; right: 0; top: 0; height: 50%; transform-origin: 50% 100%; transform: perspective(1400px) rotateX(-180deg);
  transform-style: preserve-3d; transition: transform .5s cubic-bezier(.3, .1, .2, 1); z-index: 3; }
.pp-flap.open { transform: perspective(1400px) rotateX(0deg); }
.pp-flap-front, .pp-flap-back { position: absolute; left: 0; right: 0; top: 0; bottom: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.pp-flap-front { background: #F4EEDC; padding: 14px 16px 12px; box-sizing: border-box; bottom: auto; clip-path: inset(0 0 50% 0); }
.pp-flap { overflow: visible; }
.pp-flap-back { transform: rotateX(180deg);
  /* verso: colunas de texto apagadas (tinta vazando do outro lado), com um título em cima */
  background-color: #EFE8D4;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.14), transparent 25%, transparent 75%, rgba(0,0,0,.08)),
    linear-gradient(rgba(27,26,23,.16), rgba(27,26,23,.16)),
    repeating-linear-gradient(90deg, transparent 0 30%, #EFE8D4 30% 34%),
    repeating-linear-gradient(0deg, rgba(27,26,23,.09) 0 2px, transparent 2px 7px);
  background-size: 100% 100%, 70% 16px, 100% 100%, 100% 100%;
  background-position: 0 0, 15% 18px, 0 0, 0 0;
  background-repeat: no-repeat, no-repeat, repeat, repeat; }
/* Depois de aberto: brilho passando e flutuação leve */
.paper.flat { animation: paper-float 6s ease-in-out infinite; }
.paper.flat::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: 3px;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 48%, transparent 60%) no-repeat; background-size: 250% 100%;
  animation: paper-glare 1.1s ease-out forwards; }
@keyframes paper-glare { from { background-position: 120% 0; } to { background-position: -60% 0; } }
@keyframes paper-float { 0%, 100% { transform: perspective(900px) rotateZ(-1.5deg) rotateX(0) rotateY(0); } 50% { transform: perspective(900px) rotateZ(-1.2deg) rotateX(2deg) rotateY(-3deg); } }
@media (prefers-reduced-motion: reduce) { .paper, .paper.flat { animation: none; } }
.paper-wrap .paper { transform: rotate(-1.5deg); }
.pp-top { display: flex; justify-content: space-between; font: 600 11px var(--body); text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid #1B1A17; padding-bottom: 4px; }
.pp-name { font-weight: 900; font-size: clamp(30px, 10vw, 40px); text-align: center; line-height: 1.05; margin-top: 6px; letter-spacing: -.01em; }
.pp-motto { text-align: center; font-style: italic; font-size: 12px; border-bottom: 3px double #1B1A17; padding-bottom: 6px; margin-bottom: 10px; }
.pp-head { margin: 0 0 10px; font-weight: 900; font-size: 27px; line-height: 1.08; text-wrap: balance; }
.pp-body { display: grid; grid-template-columns: 136px 1fr; gap: 12px; align-items: start; }
.pp-photo { background: #DDD4BC; padding: 10px 8px 6px; text-align: center; font: italic 11px/1.25 'Twemoji Country Flags', Georgia, serif; }
.pp-photo { margin: 0; padding: 6px 6px 5px; }
.pp-photo svg { display: block; width: 100%; height: auto; margin-bottom: 5px; filter: sepia(.3) saturate(.85) contrast(1.05); border: 1px solid rgba(27, 26, 23, .5); }
.pp-extra { background: #B3141F; color: #FFF6E0; font: 800 12px var(--body); text-transform: uppercase; letter-spacing: .14em; text-align: center; padding: 4px 6px; margin: -4px 0 8px; }
.pp-opinion { margin-top: 10px; padding-top: 8px; border-top: 3px double #1B1A17; }
.pp-opinion span { display: block; font: 700 10px var(--body); text-transform: uppercase; letter-spacing: .12em; color: #6B6553; }
.pp-opinion b { display: block; font-size: 17px; margin: 2px 0 3px; }
.pp-opinion p { margin: 0; font: italic 13.5px/1.4 'Twemoji Country Flags', Georgia, serif; }
.pp-col { font-size: 14px; line-height: 1.35; }
.pp-stats { margin: 0 0 6px; font: 700 14px var(--body); }
.pp-sub { margin: 0 0 6px; padding-top: 6px; border-top: 1px solid rgba(27, 26, 23, .3); font-weight: 700; }
.pp-tap { text-align: center; font: 600 11px var(--body); color: #6B6553; margin-top: 10px; }
.rv:not(.in) { pointer-events: none; }
.pp-lede { margin: 0 0 6px; font: 14px/1.4 'Twemoji Country Flags', Georgia, serif; }
.wallet span { white-space: nowrap; }
.wallet b { font-size: 18px; }
.choices.inv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* estilo do lance decisivo: dois jeitos lado a lado, com a chance pela carta em cada um */
.st-lead { margin-bottom: 4px; }
.choices.style-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.btn.opt.style { padding: 10px 8px; min-height: 0; }
.btn.opt.style .st-ico { line-height: 1; }
.btn.opt.style small { font-size: 12px; line-height: 1.2; }
.choice.inv { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; }
.choice.inv .ic { font-size: 24px; }
.choice.inv b { font-size: 17px; }
.choice.inv .pips { margin-left: 0; font-size: 11px; }
.choice.inv .d { font-size: 13px; font-weight: 700; color: var(--ink); }

/* Jogo decisivo */
.moment-card .with-crest { display: flex; align-items: center; gap: 10px; font: 800 20px var(--display); color: var(--muted); }
.moment-card .with-crest .crest { width: 40px; height: 40px; }
.stakes { margin: 0; font: 700 14px var(--body); color: #8A6400; }
.lead.small { font-size: 14px; }
.kick-stage { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 3px 0 rgba(0, 0, 0, .35); touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: pointer; }
.kick-svg { display: block; width: 100%; height: auto; }
.k-keeper { fill: #F2C230; }


.k-aim line { stroke: #FFE27A; stroke-width: 2.5; stroke-dasharray: 6 5; }
.k-aim circle { fill: none; stroke: #FFE27A; stroke-width: 3; }
.k-net.shake { animation: net-shake .5s ease 2; }
@keyframes net-shake { 25% { transform: translate(0, 3px); } 75% { transform: translate(0, -2px); } }
.kick-banner { position: absolute; left: 50%; top: 13%; transform: translate(-50%, -50%) scale(.3); opacity: 0; font: 800 34px var(--display); box-shadow: 0 4px 0 rgba(0, 0, 0, .3); letter-spacing: .02em;
  padding: 4px 18px; border-radius: 12px; pointer-events: none; white-space: nowrap; }
.kick-banner.show { animation: banner-in .5s cubic-bezier(.2, 1.5, .4, 1) forwards; }
.kick-banner.ok { background: var(--gold); color: var(--ink); }
.kick-banner.ko { background: #F8D3D6; color: #8E1B24; }
@keyframes banner-in { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.kick-help { text-align: center; margin: 0; color: #CFE0D4; font-size: 15px; min-height: 22px; }
.k-wallman rect { fill: #C9303C; }
.k-wallman .k-shorts { fill: #F4F4F4; }
.k-wallman .k-socks { fill: #9E1F2A; }
.k-wallman .k-head { fill: #E8B58C; }
.ball3d-fly { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.kick-banner { z-index: 3; }
.k-keeper .kp-shirt { fill: #F2C230; }
.k-keeper .kp-arm { fill: #E0AE1C; }
.k-keeper .kp-shorts { fill: #1E2A36; }
.k-keeper .kp-sock { fill: #F2C230; }
.k-keeper .kp-glove { fill: #B8F25C; stroke: #6E9E24; stroke-width: 1.5; }
.k-keeper .kp-num { font: 800 20px var(--display); fill: #1E2A36; }
.k-keeper .kp-hair { fill: #3A2615; }
#k-bulge.pop { animation: bulge .6s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes bulge { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: .75; } }
.k-crowd.cheer g { animation: hop .32s ease-in-out 5 alternate; transform-box: fill-box; }
.k-crowd.cheer g:nth-child(3n) { animation-delay: .08s; }
.k-crowd.cheer g:nth-child(3n+1) { animation-delay: .16s; }
@keyframes hop { to { transform: translateY(-6px); } }
.move-line { border-radius: 12px; padding: 10px 12px; font: 800 22px var(--display); text-align: center; }
.move-line.up { background: #CDEFD9; color: #0E5A30; }
.move-line.down { background: #F8D3D6; color: #8E1B24; }
.move-line.rv.in { animation: trophy-in .6s cubic-bezier(.2, 1.5, .4, 1); }
.k-keeper .kp-up { display: none; }
.k-keeper.diving .kp-up { display: inline; }
.k-keeper.diving .kp-rest { display: none; }
.num-pick { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.num-pick input { width: 74px; text-align: center; font: 800 22px var(--display); }
.num-pick button { min-width: 42px; padding: 8px 0; border-radius: 10px; border: 0; background: rgba(255, 255, 255, 0.1); color: #fff; font: 800 18px var(--display); }
.k-flash circle { opacity: 0; }
.k-flash.on circle { animation: flash .5s ease-out 3; }
.k-flash.on circle:nth-child(2n) { animation-delay: .15s; }
.k-flash.on circle:nth-child(3n) { animation-delay: .3s; }
.k-flash.on circle:nth-child(5n) { animation-delay: .45s; }
@keyframes flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
.k-wallman .k-arms { fill: #A8222D; }

.k-wallman path { fill: #C9303C; }
.k-wallman path.k-hair { fill: #2A1A0E; }

/* Copa do Mundo */
.wc-call { display: flex; gap: 12px; align-items: center; background: linear-gradient(135deg, #0E5A30, #1FA35A); border-radius: 14px; padding: 12px 14px; box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.wc-call.rv.in { animation: trophy-in .6s cubic-bezier(.2, 1.5, .4, 1); }
.wc-call .wc-flag { font-size: 40px; line-height: 1; }
.wc-call b { display: block; font: 800 22px var(--display); color: #fff; }
.wc-call span { font-size: 14px; color: #D9F5E3; }
.wc-miss { margin: 0; font-size: 14px; color: #CFE0D4; background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 10px 12px; }
.wc-hint { margin: 0; font-size: 14px; color: #FFE9A0; background: rgba(242, 194, 48, .12); border: 1px solid rgba(242, 194, 48, .35); border-radius: 12px; padding: 8px 12px; }
.wc-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wc-bigflag { font-size: 84px; line-height: 1; animation: trophy-in .8s cubic-bezier(.2, 1.5, .4, 1); }
.wc-rules p { margin: 0 0 6px; } .wc-rules p:last-child { margin: 0; }
.wc-list { display: flex; flex-direction: column; gap: 8px; }
.wc-game { background: var(--paper); color: var(--ink); border-radius: 12px; padding: 8px 12px; border-left: 6px solid #9DB5A6; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.wc-game.w { border-left-color: #1FA35A; } .wc-game.l { border-left-color: #C9303C; } .wc-game.d { border-left-color: #F2C230; }
.wc-game.enter { animation: trophy-in .5s cubic-bezier(.2, 1.4, .4, 1); }
.wc-game .st { width: 100%; font: 700 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wc-game .line { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.wc-game .line b { font: 800 26px var(--display); }
.wc-game .them { font: 700 17px var(--body); }
.wc-game .me { font-size: 15px; }
.wc-game .grp { width: 100%; font: 800 15px var(--display); }
.wc-game .grp.ok { color: #0E6A35; } .wc-game .grp.ko { color: #A01E28; }
.wc-champ { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px; border-radius: 16px; background: radial-gradient(circle at 50% 30%, rgba(255, 226, 122, .45), rgba(255, 226, 122, 0) 70%); animation: trophy-in .9s cubic-bezier(.2, 1.5, .4, 1); }
.wc-champ .trophy { filter: drop-shadow(0 0 18px rgba(255, 214, 90, .9)); }
.wc-champ b { font: 800 34px var(--display); color: var(--gold); letter-spacing: .02em; }
.wc-champ span { color: #D9F5E3; }
.wc-out { text-align: center; font: 800 24px var(--display); background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 12px; }
.wc-stats { text-align: center; margin: 0; color: #CFE0D4; }
#wc-after { display: flex; flex-direction: column; gap: 12px; overflow-x: clip; } /* o banner de campeão cresce 12% na animação: sem isso a página rolava para o lado por um instante */
.snd-mini { border: 0; background: rgba(255, 255, 255, .1); border-radius: 999px; font-size: 13px; padding: 2px 7px; cursor: pointer; }
.btn.small-btn { padding: 10px; font-size: 16px; }
.crest-pick-t { font: 700 12px var(--display); letter-spacing: .12em; text-transform: uppercase; color: #B9CDBF; text-align: center; }
.crest-pick { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x mandatory; }
.crest-pick button { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 78px; padding: 8px 4px; border-radius: 12px;
  border: 2px solid transparent; background: rgba(255, 255, 255, .08); color: #CFE0D4; font: 600 11px/1.15 var(--body); scroll-snap-align: start; cursor: pointer; }
.crest-pick button .crest { width: 36px; height: 36px; }
.crest-pick button span { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crest-pick button.on { border-color: var(--gold); background: rgba(242, 194, 48, .15); color: #fff; }
.choice.inv .price { font: 800 14px var(--display); color: #8A6400; margin-top: 2px; }
.choice.inv:disabled .price { color: var(--muted); }
.choice.inv.full .price { color: #0E6A35; }
.choice.inv.bought { animation: mc-pop .35s ease; box-shadow: 0 0 0 3px var(--gold), 0 3px 0 rgba(0, 0, 0, .35); }
.inv-tip { margin: 0; }
.btn.inv-go { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 3; }
.wc-game .mom { font: 700 13px var(--body); padding: 2px 8px; border-radius: 999px; }
.wc-game .mom.ok { background: #CDEFD9; color: #0E5A30; } .wc-game .mom.ko { background: #F8D3D6; color: #8E1B24; }
.wc-game .rt { margin-left: auto; font: 800 14px var(--display); color: var(--muted); }
.wc-game .rt.motm { color: #8A6400; }
.wc-live .st { font: 700 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wc-live .line { display: flex; align-items: center; gap: 10px; font-size: 24px; }
.wc-live .line b { font: 800 30px var(--display); }
.wc-live .line span:last-child { font: 700 17px var(--body); }
.inv-bar { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 3; }
.inv-bar .btn { width: 100%; box-shadow: 0 4px 0 rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .35); }

/* Conquistas */
.ach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ach { background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 2px; color: #9DB5A6; }
.ach .ic { font-size: 24px; filter: grayscale(1); opacity: .6; }
.ach b { font: 800 16px/1.1 var(--display); color: #CFE0D4; }
.ach .d { font-size: 12px; line-height: 1.25; }
.ach .by { font: 700 11px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
.ach.on { background: var(--paper); color: var(--muted); }
.ach.on .ic { filter: none; opacity: 1; }
.ach.on b { color: var(--ink); }
.ach.on .by { color: #8A6400; }
.ach.new { box-shadow: 0 0 0 3px var(--gold); animation: trophy-in .7s cubic-bezier(.2, 1.5, .4, 1); }
.ach-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.ach-bar i { display: block; height: 100%; background: var(--gold); border-radius: inherit; }
.final .ach-grid { margin-top: 4px; }
.final .ach { background: rgba(0, 0, 0, .05); }

/* Carreira do dia */
.daily, .daily-res { display: flex; flex-direction: column; gap: 3px; text-align: left; width: 100%; border: 0; border-radius: 14px; padding: 12px 14px; cursor: pointer;
  background: linear-gradient(135deg, #1C5A8A, #0F3553); color: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, .35); font: inherit; }
.daily .dl-top, .daily-res .dl-top { font: 700 12px var(--display); letter-spacing: .12em; text-transform: uppercase; color: #BFE0FF; }
.daily b { font: 800 24px var(--display); }
.daily b span { font: 600 15px var(--body); color: #D9ECFF; }
.daily .dl-sub { font-size: 13px; color: #D9ECFF; }
.daily-res { cursor: default; margin-top: 10px; gap: 8px; }
.daily-res b { font: 800 20px var(--display); }
.moment-card .with-crest .crest { background: rgba(0, 0, 0, .1); border-radius: 12px; padding: 4px; box-sizing: content-box; }

/* Posições defensivas: seletor com 4 posições e minigames de goleiro/zagueiro */
.seg.pos4 { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seg.pos4 button { font-size: 14px; padding-left: 0; padding-right: 0; }
.k-keeper.mine .kp-shirt { fill: #3FA7F0; }
.k-keeper.mine .kp-arm { fill: #2E8AD0; }
.k-keeper.mine .kp-sock { fill: #3FA7F0; }
.tk-zone { fill: rgba(80, 230, 130, .28); stroke: #7CF0A4; stroke-width: 2; stroke-dasharray: 6 4; }

/* Revelação da carta nova (subiu de faixa) */
.walkout { position: fixed; inset: 0; z-index: 60; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #1B2A22 0%, #050A07 70%);
  --wo: #F7E39A; animation: fade-in .3s ease; cursor: pointer; }
.walkout.wo-bronze { --wo: #E0AC80; } .walkout.wo-prata { --wo: #E6EBF0; } .walkout.wo-ouro { --wo: #F7E39A; } .walkout.wo-icone { --wo: #B28DFF; }
.walkout.out { animation: fade-out .25s ease forwards; }
.wo-beams { position: absolute; inset: -50%; background: repeating-conic-gradient(from 0deg at 50% 50%, color-mix(in srgb, var(--wo) 22%, transparent) 0deg 6deg, transparent 6deg 30deg);
  animation: wo-spin 14s linear infinite; opacity: .5; }
@keyframes wo-spin { to { transform: rotate(360deg); } }
.wo-step { position: absolute; opacity: 0; transform: scale(.4); color: #fff; text-align: center; }
.wo-flag { font-size: 110px; animation: wo-step .8s ease forwards; }
.wo-pos { font: 800 clamp(36px, 12vw, 64px)/1.05 var(--display); padding: 0 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--wo); animation: wo-step .8s ease .8s forwards; }
.wo-crest img { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 0 24px var(--wo)); }
.wo-crest { animation: wo-step .9s ease 1.6s forwards; }
@keyframes wo-step { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; transform: scale(1.05); } 75% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.3); } }
.wo-card { position: relative; width: min(74vw, 300px); opacity: 0; transform: perspective(900px) rotateY(90deg) scale(.6); }
.wo-card canvas { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 30px color-mix(in srgb, var(--wo) 70%, transparent)); }
.walkout.shown .wo-card { animation: wo-card .9s cubic-bezier(.2, 1.3, .4, 1) forwards; }
@keyframes wo-card { 0% { opacity: 0; transform: perspective(900px) rotateY(90deg) scale(.6); } 60% { opacity: 1; transform: perspective(900px) rotateY(-12deg) scale(1.04); } 100% { opacity: 1; transform: perspective(900px) rotateY(0) scale(1); } }
.wo-title { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 28px); left: 0; right: 0; text-align: center; opacity: 0; color: #fff; }
.wo-title span { display: block; font: 700 14px var(--body); letter-spacing: .3em; text-transform: uppercase; opacity: .75; }
.wo-title b { display: block; padding: 0 12px; line-height: 1.02; font: 800 clamp(28px, 9vw, 46px)/1.02 var(--display); color: var(--wo); text-transform: uppercase; letter-spacing: .08em; text-shadow: 0 0 20px color-mix(in srgb, var(--wo) 60%, transparent); }
.walkout.shown .wo-title { animation: wo-in .5s ease .4s forwards; }
.wo-tap { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); left: 0; right: 0; text-align: center; color: #9DB5A6; font: 600 13px var(--body); opacity: 0; }
.walkout.shown .wo-tap { animation: wo-in .4s ease 1.2s forwards; }
@keyframes wo-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.walkout.skip .wo-step { display: none; }

/* Carta gasta no fim da carreira: riscos, manchas e cor desbotando */
.mcard.worn1 { filter: saturate(.8) sepia(.12); }
.mcard.worn2 { filter: saturate(.6) sepia(.28) contrast(.96); }
.mcard.worn1::before, .mcard.worn2::before {
  background:
    linear-gradient(24deg, transparent 31%, rgba(255, 255, 255, .45) 31.2%, transparent 31.8%),
    linear-gradient(160deg, transparent 64%, rgba(0, 0, 0, .28) 64.2%, transparent 64.7%),
    linear-gradient(8deg, transparent 78%, rgba(255, 255, 255, .35) 78.1%, transparent 78.5%),
    radial-gradient(ellipse at 88% 84%, rgba(50, 30, 10, .28), transparent 34%),
    repeating-linear-gradient(178deg, rgba(255, 255, 255, .07) 0 1px, rgba(0, 0, 0, .04) 1px 2px, transparent 2px 3px); }
.mcard.worn2::before {
  background:
    linear-gradient(24deg, transparent 31%, rgba(255, 255, 255, .5) 31.2%, transparent 31.8%),
    linear-gradient(160deg, transparent 64%, rgba(0, 0, 0, .32) 64.2%, transparent 64.7%),
    linear-gradient(8deg, transparent 78%, rgba(255, 255, 255, .4) 78.1%, transparent 78.5%),
    linear-gradient(118deg, transparent 12%, rgba(0, 0, 0, .25) 12.2%, transparent 12.6%),
    linear-gradient(70deg, transparent 52%, rgba(255, 255, 255, .35) 52.1%, transparent 52.5%),
    radial-gradient(ellipse at 88% 84%, rgba(50, 30, 10, .4), transparent 38%),
    radial-gradient(ellipse at 8% 12%, rgba(50, 30, 10, .3), transparent 26%),
    repeating-linear-gradient(178deg, rgba(255, 255, 255, .07) 0 1px, rgba(0, 0, 0, .04) 1px 2px, transparent 2px 3px); }
.mcard.worn2 .mc-tier::after { content: ' · veterana'; }
@media (prefers-reduced-motion: reduce) {
  .walkout .wo-step { display: none; }
  .walkout.shown .wo-card, .walkout.shown .wo-title, .walkout.shown .wo-tap { opacity: 1; transform: none; }
}

/* Revelação de carta especial: cor do brilho */
.walkout.wo-sp-tots { --wo: #6FA0FF; } .walkout.wo-sp-heroi { --wo: #FF6A4C; } .walkout.wo-sp-copa { --wo: #FFE27A; } .walkout.wo-sp-bola { --wo: #FFD65A; }
.wo-bigflag { font-size: 140px; line-height: 1; }

/* Cartas especiais no fim da carreira */
.sp-cards { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; }
.sp-cards canvas { width: 118px; height: auto; flex-shrink: 0; scroll-snap-align: start; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .45)); }

/* Álbum da carreira (stories) */
.album { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
  background: radial-gradient(circle at 50% 30%, #1D4430, #071510); color: #fff; animation: fade-in .25s ease; overflow: hidden; user-select: none; -webkit-user-select: none; }
.album.out { animation: fade-out .25s ease forwards; }
.al-prog { display: flex; gap: 3px; width: 100%; }
.al-prog i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; position: relative; }
.al-prog i.on { background: #fff; }
.al-prog i.now::after { content: ''; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: al-fill 3.6s linear forwards; }
@keyframes al-fill { from { transform: scaleX(0); } }
.al-x { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 22px); right: 12px; background: rgba(0, 0, 0, .35); color: #fff; border: 0; border-radius: 50%; width: 36px; height: 36px; font-size: 18px; z-index: 2; }
.al-t { font: 800 26px var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.al-card { width: min(52vw, 210px); animation: pop .45s ease; }
.al-card.big { width: min(72vw, 290px); margin-top: 10px; }
.al-card.small { width: min(40vw, 160px); }
.al-card canvas { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.al-clip { background: #F4EEDC; color: #1B1A17; transform: rotate(-2deg); padding: 8px 10px; width: min(92%, 360px); box-shadow: 0 8px 20px rgba(0, 0, 0, .5);
  display: grid; grid-template-columns: 1fr 88px; gap: 2px 8px; font-family: 'Twemoji Country Flags', Georgia, serif; animation: enter .5s ease .15s both; }
.al-clip span { grid-column: 1 / 3; font: 900 13px 'Twemoji Country Flags', Georgia, serif; border-bottom: 3px double #1B1A17; padding-bottom: 2px; }
.al-clip b { font: 900 16px/1.15 'Twemoji Country Flags', Georgia, serif; align-self: center; }
.al-clip svg { width: 88px; height: auto; filter: sepia(.3) saturate(.85); border: 1px solid rgba(27, 26, 23, .5); }
.al-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.al-chips em { font: 700 13px var(--body); font-style: normal; background: rgba(255, 255, 255, .12); padding: 4px 10px; border-radius: 99px; }
.al-chart { width: 100%; max-width: 380px; }
.al-chart text { fill: #fff; font: 600 10px var(--body); }
.al-share { margin-top: auto; width: 100%; }
@media (prefers-reduced-motion: reduce) { .al-prog i.now { background: #fff; } }
.trophy-real { width: auto; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }
.wc-champ .trophy-real { filter: drop-shadow(0 0 18px rgba(255, 214, 90, .9)); }

/* Pré-temporada numa tela só */
[hidden] { display: none !important; }
.prep-sec { font: 800 13px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 14px 0 -2px; }
.prep-done { background: rgba(123, 227, 160, .14); border: 1px solid rgba(123, 227, 160, .45); color: #CDEFD9; border-radius: 12px; padding: 10px 12px; font: 600 15px/1.35 var(--body); animation: enter .4s ease; }
.prep-done b { color: var(--gold); }
.choice .fx { display: inline-block; margin-top: 3px; font-weight: 600; color: #3E5A4A; }
.choice .fx .warn { font-weight: 400; }
.prep-note { margin: 2px 0 0; }
.bar-btns { display: flex; gap: 6px; align-self: end; }
.bar-btns .snd-mini { min-width: 32px; }

/* Confirmação em dois toques: o card escolhido ganha borda dourada e uma faixa com a ação embaixo; tocar de novo confirma */
.choice.armed { box-shadow: 0 0 0 3px var(--gold), 0 3px 0 rgba(0, 0, 0, .35); }
.arm-back { grid-column: 1 / -1; align-self: stretch; display: block; margin: 6px -14px -12px; padding: 6px 8px; border-radius: 0 0 16px 16px;
  background: var(--gold); color: var(--ink); text-align: center; }
.arm-back b { font: 800 14px/1.2 var(--display); }
.choice.inv .arm-back { margin: 6px -12px -10px; }
.offer.card .arm-back { margin: 4px -14px -14px; }
.inv-bar #b-skip { margin: 0; }
.sp-cards canvas { cursor: pointer; border-radius: 10px; transition: transform .15s; }
.sp-cards canvas.on { transform: translateY(-4px); filter: drop-shadow(0 0 6px var(--gold)) drop-shadow(0 4px 8px rgba(0, 0, 0, .45)); }

/* Visual do jogador na criação */
.look { display: grid; grid-template-columns: 104px 1fr; gap: 10px; align-items: center; }
.look-pv svg { width: 104px; height: auto; display: block; border-radius: 10px; filter: sepia(.2); border: 2px solid rgba(255, 255, 255, .15); }
.look-opts { display: flex; flex-direction: column; gap: 8px; }
.look-row { display: flex; flex-wrap: wrap; gap: 6px; }
.look-row button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); padding: 0; cursor: pointer; }
.look-row button.on { border-color: #fff; box-shadow: 0 0 0 2px var(--gold); }
.look-row.txt button { width: auto; height: auto; border-radius: 999px; padding: 4px 9px; background: rgba(255, 255, 255, .1); color: #fff; font: 700 13px var(--body); }
.look-row.txt button.on { background: var(--paper); color: var(--ink); box-shadow: none; }
.look-row.off { opacity: .35; pointer-events: none; }
.field label small { font-weight: 500; opacity: .7; }
.inv-bar .btn:disabled { opacity: 1; background: #24503B; color: #CFE0D4; box-shadow: 0 4px 0 rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .35); cursor: default; }
.inv-bar .btn:disabled small { color: #9DB5A6; }
.inv-bar .btn.wait:disabled { background: #143A2A; color: #E8F1EA; box-shadow: inset 0 0 0 2px rgba(242, 193, 46, .55), 0 6px 18px rgba(0, 0, 0, .45); }
.up-ar { display: inline-block; font: 900 1.1em var(--display); color: var(--gold); margin-left: 2px; animation: up-ar 1.1s ease-in-out infinite; }
@keyframes up-ar { 50% { transform: translateY(-4px); } }

/* Voltar ao início: ícone na barra, link na criação e janela de confirmação do jogo */
.home-btn, .cfg-btn { display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.bar-btns .snd-mini { min-width: 34px; height: 30px; display: inline-flex; align-items: center; justify-content: center; }
.back-link { align-self: flex-start; border: 0; background: rgba(255, 255, 255, .1); color: #fff; border-radius: 999px; padding: 6px 14px; font: 700 14px var(--body); margin-bottom: 6px; cursor: pointer; }
.ask-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(4, 16, 10, .72); animation: fade-in .2s ease; }
.ask { width: min(100%, 340px); background: var(--paper); color: var(--ink); border-radius: 18px; padding: 18px 16px 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.ask b { font: 800 22px var(--display); }
.ask p { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.ask .btn.ghost { color: var(--ink); border-color: rgba(19, 32, 26, .25); }

/* Proposta: hoje × proposta */
.deal { width: 100%; border-collapse: separate; border-spacing: 0; margin: 10px 0 12px; background: #fff; color: #13201A; border-radius: 12px; overflow: hidden; font-size: 14px; box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.deal th, .deal td { padding: 6px 8px; text-align: left; vertical-align: middle; border-bottom: 1px solid #E5ECE7; }
.deal tr:last-child th, .deal tr:last-child td { border-bottom: 0; }
.deal thead th { font: 800 12px var(--display); text-transform: uppercase; letter-spacing: .05em; color: #6A7A70; background: #F2F6F3; }
.deal tbody th { font-weight: 700; color: #6A7A70; white-space: nowrap; width: 1%; }
.deal td:last-child { font-weight: 700; }
.deal td.up { color: #0E7A3E; }
.deal td.up::after { content: ' ▲'; font-size: 10px; }
.deal td.down { color: #B3261E; }
.deal td.down::after { content: ' ▼'; font-size: 10px; }
.deal .crest.xs { vertical-align: -4px; }
.arm-back small { display: block; font-weight: 600; opacity: .85; margin-top: 2px; }

/* Lance decisivo: placar, minuto e situação */
.mom-board { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 4px; }
.mom-board .crest { width: 40px; height: 40px; margin: 0; }
.mom-board b { font: 800 34px var(--display); font-variant-numeric: tabular-nums; }
.mom-min { font: 800 15px var(--display); background: #C0392B; color: #fff; border-radius: 8px; padding: 2px 7px; margin-left: 2px; }
.mom-ctx { margin: 2px 0 8px; font-weight: 700; font-size: 14px; color: #0E5A30; text-align: center; }

/* Ficha do jogador */
#bar-ovr, #bar-name { cursor: pointer; }
.link-btn { background: none; border: 0; padding: 0 0 0 6px; color: #F4D675; font: 700 12px var(--body, inherit); letter-spacing: 0; text-transform: none; cursor: pointer; text-decoration: underline; }
.sheet-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(4, 14, 9, .72); display: flex; align-items: flex-end; justify-content: center; animation: fade-in .2s; }
.sheet-wrap.out { opacity: 0; transition: opacity .2s; }
.sheet { width: 100%; max-width: 520px; height: min(82vh, 700px); display: flex; flex-direction: column; background: #FBF8EF; color: #13201A; border-radius: 20px 20px 0 0; box-shadow: 0 -6px 30px rgba(0,0,0,.4); overflow: hidden; }
.sh-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 10px; }
.sh-head > div { flex: 1; min-width: 0; }
.sh-head b { display: block; font: 800 22px/1.1 var(--display); }
.sh-head span { font-size: 13px; color: #5E6E64; }
.sh-head .ovr { width: 48px; height: 48px; font-size: 24px; display: grid; place-items: center; border-radius: 12px; flex: none; }
.sh-x { background: #E8EEEA; border: 0; border-radius: 50%; width: 34px; height: 34px; font-size: 15px; cursor: pointer; color: #13201A; flex: none; }
.sh-tabs { display: flex; gap: 4px; margin: 0 16px 6px; padding: 4px; background: #ECF1ED; border-radius: 12px; }
.sh-tabs button { flex: 1; border: 0; background: transparent; color: #56675C; padding: 8px 4px; border-radius: 9px; font: 800 14px var(--display); cursor: pointer; }
.sh-tabs button.on { background: #fff; color: #0E5A30; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.sh-body { overflow-y: auto; padding: 2px 16px calc(20px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.sh-sec { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 800 12px var(--display); letter-spacing: .08em; text-transform: uppercase; color: #0E5A30; margin: 16px 0 8px; }
.sh-sec span { font: 600 12px var(--body, inherit); letter-spacing: 0; text-transform: none; color: #7A887F; text-align: right; }
.sh-hint { font-size: 13px; color: #6A7A70; }
/* atributos em blocos */
.sh-at { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sh-at div { position: relative; background: #fff; border: 1px solid #E3E9E5; border-radius: 12px; padding: 8px 4px 6px; text-align: center; }
.sh-at div.key { border-color: #E2B93B; background: #FFFBEC; }
.sh-at b { display: block; font: 800 26px/1 var(--display); font-variant-numeric: tabular-nums; }
.sh-at span { font-size: 12px; font-weight: 700; color: #6A7A70; }
.sh-at i { position: absolute; top: 4px; right: 6px; font: 800 11px var(--display); font-style: normal; color: #0E7A3E; }
/* características: uma linha cada */
.sh-tr { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid #ECF0ED; }
.sh-tr:last-child { border-bottom: 0; }
.sh-tr .ic { font-size: 22px; width: 30px; text-align: center; flex: none; }
.sh-tr div { min-width: 0; }
.sh-tr b { display: block; font-size: 15px; }
.sh-tr small { display: block; font-size: 12px; color: #6A7A70; line-height: 1.3; }
.sh-tr.empty { justify-content: center; color: #93A098; font-size: 13px; font-weight: 700; border: 1.5px dashed #D5DED8; border-radius: 10px; margin: 4px 0; }
.sh-tr.empty .sh-pips { display: flex; gap: 4px; }
.sh-tr.empty .sh-pips i { width: 10px; height: 10px; border-radius: 3px; border: 1.5px dashed #B5C2BA; }
.dots { font-style: normal; color: #D9A400; font-size: 10px; letter-spacing: 1px; margin-left: 6px; vertical-align: 2px; }
.dots s { text-decoration: none; color: #DDE3DF; }
/* combinações */
.sh-cb { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff; border: 1px solid #E3E9E5; border-radius: 12px; padding: 9px 10px; margin-bottom: 6px; }
.sh-cb b { display: block; font-size: 14px; }
.sh-cb small { display: block; font-size: 12px; color: #6A7A70; }
.sh-cb .pill { flex: none; max-width: 48%; text-align: right; font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 999px; background: #EEF2EF; color: #56675C; }
.sh-cb.on { border-color: #1FA35A; background: #F0FAF4; }
.sh-cb.on .pill { background: #1FA35A; color: #fff; }
.sh-cb.near { border-color: #E2B93B; }
.sh-cb.near .pill { background: #FFF1C2; color: #7A5700; }
.sh-cb.off { opacity: .45; }
/* carreira */
.sh-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.sh-nums div { background: #fff; border: 1px solid #E3E9E5; border-radius: 12px; padding: 8px 2px; text-align: center; }
.sh-nums b { display: block; font: 800 24px/1.1 var(--display); }
.sh-nums span { font-size: 11px; color: #6A7A70; line-height: 1.2; display: block; }
.sh-seasons { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.sh-seasons th, .sh-seasons td { padding: 6px 3px; text-align: center; border-bottom: 1px solid #EEF2EF; }
.sh-seasons thead th { font-size: 11px; color: #7A887F; font-weight: 700; text-transform: uppercase; }
.sh-seasons td.cl { text-align: left; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.sh-room { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.sh-room div { background: #fff; border: 1px solid #E3E9E5; border-radius: 12px; padding: 8px 4px; text-align: center; }
.sh-room b { display: block; font-size: 14px; }
.sh-room span { display: block; font-size: 11px; color: #6A7A70; line-height: 1.2; }

/* Ranking */
.rk-tabs { display: flex; gap: 6px; margin: 8px 0; }
.rk-tabs button { flex: 1; border: 0; border-radius: 10px; padding: 9px; font: 800 15px var(--display); background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
.rk-tabs button.on { background: #F4D675; color: #13201A; }
.rk-tabs button:disabled { opacity: .35; }
.rk-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 4px; scrollbar-width: none; }
.rk-chips button { flex: none; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 12px; background: transparent; color: #DDEBE2; font-weight: 700; font-size: 14px; cursor: pointer; }
.rk-chips button.on { background: #fff; color: #0E5A30; border-color: #fff; }
.rk-sub { margin: 4px 0 8px; }
.rk-list { display: flex; flex-direction: column; gap: 6px; }
.rk-item { display: flex; align-items: center; gap: 10px; background: #FBF8EF; color: #13201A; border-radius: 12px; padding: 8px 12px; }
.rk-item.me { outline: 3px solid #F4D675; }
.rk-pos { width: 32px; font: 800 18px var(--display); text-align: center; }
.rk-who { flex: 1; min-width: 0; }
.rk-who b { display: block; font-size: 16px; }
.rk-who small { display: block; font-size: 12px; color: #5E6E64; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-v { font: 800 22px var(--display); text-align: right; }
.rk-v small { display: block; font: 600 11px var(--body, inherit); color: #6A7A70; }
.rk-nick { margin: 8px 0 12px; }
.rk-nick b { display: block; font-size: 16px; }
.rk-row { display: flex; gap: 8px; margin-top: 6px; }
.rk-row input { flex: 1; min-width: 0; font-size: 16px; padding: 10px 12px; border-radius: 10px; border: 2px solid #CFDAD3; background: #fff; color: var(--ink); }
.rk-row .btn { width: auto; margin: 0; padding: 10px 16px; }
/* Dentro de um card creme: texto de apoio escuro (o verde-claro sumia) e sombra do botão em dourado escuro, não cinza */
.card .muted, .card .muted.small { color: #4F5C55; }
.card .btn:not(.ghost) { box-shadow: 0 3px 0 #A97C12; }
.card .btn:not(.ghost):active { box-shadow: 0 1px 0 #A97C12; }
.rk-msg { color: #B3261E; font-weight: 700; margin: 6px 0 0; }
.rk-edit { display: block; margin: 12px auto 0; color: #DDEBE2; }
/* Ranking: bloco da tela inicial */
.rk-home { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px; cursor: pointer; text-align: left; color: #fff;
  border: 1px solid rgba(244, 214, 117, .45); background: linear-gradient(135deg, rgba(244, 214, 117, .18), rgba(255, 255, 255, .05) 60%); }
.rk-home:active { transform: translateY(1px); }
.rk-home .podium-ico { flex: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)); }
.rk-home-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rk-home-t b { font: 800 22px/1 var(--display); letter-spacing: .02em; }
.rk-home-t small { font: 500 14px/1.3 var(--body); color: #D3E4D9; }
.rk-home-t small b { font: inherit; font-weight: 800; color: #F4D675; }
.rk-home-go .ico { width: 20px; height: 20px; color: #F4D675; }
/* Ranking: tela */
.rk-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 6px; }
.rk-head h2 { margin: 2px 0 0; line-height: 1.05; }
.rk-head .podium-ico { flex: none; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); }
.rk-g { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font: 800 16px/1 var(--display); color: #13201A; background: #C9D1D8; }
.rk-g.gS { background: linear-gradient(135deg, #FFE68A, #F2C230 55%, #C99A12); }
.rk-g.gA { background: linear-gradient(135deg, #E8EEF5, #B7C3D0); }
.rk-g.gB { background: #8FD6AE; }
.rk-g.gC { background: #F0B27A; }
.rk-g.gD { background: #B9B4AA; }
.rk-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin: 6px 0 10px; }
.rk-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; min-width: 0; padding: 0 2px; }
.rk-step.empty { visibility: hidden; }
.rk-medal { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 18px/1 var(--display); color: #13201A; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.rk-step.s1 .rk-medal { width: 42px; height: 42px; font-size: 22px; background: linear-gradient(135deg, #FFE68A, #F2C230 55%, #C99A12); }
.rk-step.s2 .rk-medal { background: linear-gradient(135deg, #FFFFFF, #C9D1D8 55%, #8D98A5); }
.rk-step.s3 .rk-medal { background: linear-gradient(135deg, #F2C9A0, #D99A6A 55%, #8E5429); }
.rk-nk { font: 800 16px/1.1 var(--display); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-step small { font-size: 11px; color: #B9CDBF; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-step .rk-v { color: #fff; font-size: 20px; text-align: center; }
.rk-step .rk-v small { color: #B9CDBF; text-align: center; }
.rk-block { display: block; width: 100%; border-radius: 10px 10px 0 0; margin-top: 4px; }
.rk-step.s1 .rk-block { height: 54px; background: linear-gradient(180deg, rgba(242, 194, 48, .55), rgba(242, 194, 48, .12)); }
.rk-step.s2 .rk-block { height: 36px; background: linear-gradient(180deg, rgba(201, 209, 216, .45), rgba(201, 209, 216, .1)); }
.rk-step.s3 .rk-block { height: 24px; background: linear-gradient(180deg, rgba(217, 154, 106, .45), rgba(217, 154, 106, .1)); }
.rk-step.me .rk-nk { color: #F4D675; }
.rk-item .rk-g { margin-right: 2px; }
.rk-mine { position: sticky; bottom: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.rk-empty { text-align: center; padding: 18px 0; }

/* Copa/Mundial ao vivo: relógio e gols no minuto */
.wc-game .clk { font-style: normal; background: #13201A; color: #F4D675; border-radius: 6px; padding: 1px 6px; margin-left: 4px; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.wc-game.playing .clk { animation: clk-blink 1s steps(2) infinite; }
.wc-game.paused .clk { background: #C0392B; color: #fff; animation: none; }
@keyframes clk-blink { 50% { opacity: .75; } }
.wc-game .gls { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.wc-game .gl { font-size: 12px; color: #34453A; }
.wc-game .gl i { display: inline-block; min-width: 26px; font-style: normal; font-weight: 800; color: #6A7A70; font-variant-numeric: tabular-nums; }
.wc-game .gl.t { color: #9A2A20; }
.wc-game.goal-u { animation: goal-u .7s; }
.wc-game.goal-t { animation: goal-t .7s; }
@keyframes goal-u { 30% { box-shadow: 0 0 0 4px #1FA35A; transform: scale(1.02); } }
@keyframes goal-t { 30% { box-shadow: 0 0 0 4px #C0392B; } }

/* Janela: novas propostas e pedido de país/liga */
.off-tools { display: flex; gap: 8px; margin: 10px 0 4px; }
.off-tools .tool { flex: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 12px; padding: 8px 6px; font: 800 14px var(--display); cursor: pointer; }
.off-tools .tool small { display: block; font: 600 11px var(--body, inherit); color: #BFD3C6; margin-top: 1px; }
.off-tools .tool:disabled { opacity: .4; cursor: default; }
.ask-msg { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: #F4D675; text-align: center; }
.offer.fresh { animation: trophy-in .6s cubic-bezier(.2, 1.5, .4, 1); box-shadow: 0 0 0 3px #F4D675; }
.lg-row { display: flex; align-items: center; gap: 8px; width: 100%; background: #fff; border: 1px solid #E3E9E5; border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; font-size: 14px; color: #13201A; cursor: pointer; flex-wrap: wrap; text-align: left; }
.lg-row b { flex: 1; }
.lg-row .stars { color: var(--amber-ink, #9A6A00); font-size: 12px; letter-spacing: 1px; }
.lg-row em { font-style: normal; font-weight: 800; min-width: 40px; text-align: right; color: #7A5700; }
.lg-row em.hi { color: #0E7A3E; }
.lg-row em.lo { color: #B3261E; }
.lg-row.armed { border-color: #F4D675; box-shadow: 0 0 0 2px #F4D675; }
.lg-row .arm-back { flex-basis: 100%; margin: 6px -12px -10px; }

/* Copa/Mundial: pular jogo e simular até o fim */
.wc-sim { display: flex; gap: 8px; margin: 12px 0 4px; }
.wc-sim .tool { flex: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 12px; padding: 9px 6px; font: 800 14px var(--display); cursor: pointer; }
.wc-sim.on .tool { opacity: .45; pointer-events: none; }

/* Carta 3D metálica */
.card3d-host { position: relative; touch-action: none; }
.card3d-host .card3d-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.card3d-host.has3d > canvas:not(.card3d-cv) { visibility: hidden; }
.fut.card3d-host { min-height: 440px; }
.wo-card.card3d-host { min-height: 380px; }
.cv-page { text-align: center; padding-top: 8px; }
.card3d-host.big { height: min(62vh, 520px); margin: 6px auto 4px; max-width: 420px; }
.card3d-host.big > canvas:not(.card3d-cv) { height: 100%; width: auto; }
.cv-info b { display: block; font: 800 30px var(--display); color: #fff; }
.cv-info span { color: #CFE0D4; font-size: 14px; }
.cv-hint { margin: 6px 0 12px; }
.wo-card.card3d-host.has3d { transform: none; }
.wo-card.card3d-host.has3d { animation: none; transition: opacity .5s ease; }
.walkout.shown .wo-card.card3d-host.has3d { opacity: 1; }
.walkout .wo-card.has3d .card3d-cv { filter: drop-shadow(0 0 30px color-mix(in srgb, var(--wo) 60%, transparent)); }

/* Temporada: carta que sobe + selo da nota */
.s-hero { display: flex; align-items: center; gap: 14px; }
.scard { width: 84px; height: 104px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; background: var(--metal); color: var(--mc-ink, #2E1A0B); }
.scard.bronze { --mc-ink: #2E1A0B; } .scard.prata { --mc-ink: #18222D; } .scard.ouro { --mc-ink: #2E2100; } .scard.icone { --mc-ink: #F4D675; }
.scard > * { position: relative; z-index: 1; }
.scard b { font: 800 44px/1 var(--display); font-variant-numeric: tabular-nums; }
.scard .sc-tier { font: 800 10px var(--display); letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.scard .sc-pos { font: 800 13px var(--display); letter-spacing: .08em; opacity: .8; }
.scard.pop { animation: mc-pop .55s ease; }
.scard.tierup { animation: mc-pop .6s ease 2; box-shadow: 0 0 0 3px var(--gold), 0 0 26px rgba(244, 214, 117, .7); }
.s-verdict { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sv-lbl { font: 800 22px/1.1 var(--display); color: #fff; }
.sv-lbl.top { color: var(--gold); } .sv-lbl.good { color: #7BE3A0; } .sv-lbl.low { color: #FF9AA2; } .sv-lbl.idle { color: #B9CDBF; }
.sv-d { font: 800 26px/1 var(--display); font-style: normal; }
.sv-d.up { color: #7BE3A0; } .sv-d.down { color: #FF8A93; } .sv-d.zero { color: #CFE0D4; }
.sv-d:not(:empty) { animation: mc-pop .5s ease; }
details.more { background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 4px 12px; }
details.more > summary { cursor: pointer; font-weight: 700; color: #CFE0D4; padding: 8px 0; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: ' ▾'; }
details.more[open] > summary::after { content: ' ▴'; }
details.more[open] { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; }
details.more .hl { background: rgba(255, 255, 255, 0.08); border-radius: 10px; padding: 8px 12px; }

/* Fundo fixo atrás da tela (só as cores da bandeira na Copa, ver #club-bg.nat) */
#club-bg { position: fixed; inset: 0 0 auto 0; height: 420px; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .6s; overflow: hidden;
  background: none; }
#club-bg.on { opacity: 1; }
#screen { position: relative; z-index: 1; }
.bar-tip { position: fixed; z-index: 50; background: var(--paper); color: var(--ink); font: 700 13px var(--body); padding: 6px 10px; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.35); animation: enter .2s ease-out; max-width: 210px; }

/* Tela cheia de título */
.bigmoment { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, rgba(244, 214, 117, .35), rgba(6, 20, 12, .96) 62%); animation: enter .25s ease-out; cursor: pointer; }
.bigmoment.out { opacity: 0; transition: opacity .25s; }
.bm-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 0 24px; animation: trophy-in .7s cubic-bezier(.2, 1.5, .4, 1); }
.bm-art svg, .bm-art img { width: 150px; height: auto; filter: drop-shadow(0 10px 30px rgba(244, 214, 117, .55)); }
.bm-emoji { font-size: 110px; line-height: 1; }
.bm-top { font: 800 16px var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-top: 10px; }
.bm-name { font: 800 34px/1.05 var(--display); color: #fff; }
.bm-in small { color: #B9CDBF; margin-top: 18px; }
.bm-confetti i { position: absolute; top: -20px; width: 8px; height: 14px; border-radius: 2px; animation: bm-fall 2s linear infinite; opacity: .9; }
@keyframes bm-fall { to { transform: translateY(110vh) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .bm-confetti { display: none; } }

/* Criação: carta no centro */
.cc { position: relative; width: 230px; margin: 4px auto 0; border-radius: 18px; padding: 12px 14px 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.cc > * { position: relative; z-index: 1; }
.cc-top { width: 100%; display: flex; align-items: center; gap: 8px; }
.cc-num { width: 64px; font: 800 38px/1 var(--display); background: transparent; border: 0; color: inherit; padding: 0; -moz-appearance: textfield; }
.cc-num::-webkit-inner-spin-button, .cc-num::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cc-flag { margin-left: auto; font-size: 30px; line-height: 1; }
.cc-photo { border: 0; padding: 0; background: none; border-radius: 12px; overflow: hidden; }
.cc-photo svg { width: 150px; height: auto; display: block; border-radius: 12px; }
.cc-name { width: 100%; text-align: center; font: 800 26px/1.1 var(--display); text-transform: uppercase; background: rgba(255,255,255,.1); border: 0; border-radius: 10px; color: inherit; padding: 6px 4px; }
.cc-acts { display: flex; justify-content: center; gap: 8px; margin: 2px 0 6px; }
.cc-acts .cr-dice { height: 40px; font-size: 15px; }
.cr-more { text-align: center; margin: 10px 4px 14px; }
.look-panel { display: flex; flex-direction: column; gap: 8px; align-items: center; background: rgba(255,255,255,.06); border-radius: 12px; padding: 10px; }
.look-panel[hidden] { display: none; }
.seg.flags.one-line { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 52px; overflow-x: auto; scrollbar-width: none; }
.seg.flags.one-line::-webkit-scrollbar { display: none; }

/* Coleção */
.col-top { background: rgba(255,255,255,.07); border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: baseline; }
.col-top b { font: 800 30px/1 var(--display); color: var(--gold); }
.col-top span { color: #CFE0D4; font-size: 14px; }
.col-bar { grid-column: 1 / -1; height: 8px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 4px; }
.col-bar i { display: block; height: 100%; background: var(--gold); }
.col-page { display: flex; flex-direction: column; gap: 8px; }
.col-pt { display: flex; justify-content: space-between; font: 800 14px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.col-pt span { color: #CFE0D4; letter-spacing: .04em; }
.col-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.col-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 0; color: #CFE0D4; font: 700 11px var(--body); text-align: center; min-width: 0; }
.col-slot span { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-slot img { width: 100%; aspect-ratio: 600 / 860; display: block; object-fit: contain; }
.col-slot.has img:not([src]) { visibility: hidden; }
.col-slot.has { background: none; }
.col-slot span.flag { font-size: 20px; line-height: 1.1; }
.col-ghost { width: 100%; aspect-ratio: 600 / 860; border-radius: 10px; border: 2px dashed rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font: 800 28px var(--display); color: rgba(255,255,255,.25); }
.col-slot.empty span { opacity: .6; }

.col-rar { font: 800 9px var(--display); letter-spacing: .1em; text-transform: uppercase; font-style: normal; padding: 1px 6px; border-radius: 6px; }
.col-rar.rara { background: #2A4D9B; color: #fff; }
.col-rar.epica { background: #7C3AED; color: #fff; }
.col-rar.lendaria { background: linear-gradient(90deg, #FF6EC7, #7AFCFF, #FFF38A); color: #1A1030; }

/* Conta */
.cloud-line { font-size: 14px; }
.acc-form { display: flex; flex-direction: column; gap: 10px; }
.acc-form input { width: 100%; box-sizing: border-box; }
.acc-err { color: #FF9AA2; font-weight: 700; margin: 0; }
.acc-ok { color: #9FE6B8; font-weight: 700; margin: 0; }
/* Google, GitHub e Discord */
.acc-prov { display: flex; flex-direction: column; gap: 8px; }
.acc-prov:empty { display: none; }
.prov-btn { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 18px; }
.prov-ico { width: 22px; height: 22px; display: inline-grid; place-items: center; flex: none; }
.prov-ico svg { width: 100%; height: 100%; display: block; }
.acc-or { display: flex; align-items: center; gap: 10px; margin-top: 4px; color: #C3D6CA; font-size: 13px; }
.acc-or::before, .acc-or::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, .18); }
.acc-ways { display: flex; flex-direction: column; gap: 8px; }
.acc-way { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.acc-way > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.acc-way small { color: #C3D6CA; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-way .btn { width: auto; padding: 8px 14px; font-size: 16px; }
.acc-way .link-btn { font-size: 13px; }

/* Álbum de folhear */
.book { position: relative; perspective: 1400px; width: 100%; max-width: 440px; margin: 0 auto; touch-action: pan-y; }
.bk-page { position: relative; background: #F4EEDD; color: #2B2618; border-radius: 6px 14px 14px 6px; padding: 14px 14px 10px 20px; min-height: 470px;
  box-shadow: inset 12px 0 18px -10px rgba(0,0,0,.35), 0 12px 30px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 10px;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.018) 0 2px, transparent 2px 4px); }
.bk-leaf { position: absolute; inset: 0; transform-origin: left center; backface-visibility: hidden; z-index: 2; }
.bk-page.cover { background: linear-gradient(135deg, #0F4A2F, #1B6A43 55%, #0A3322); color: #F4D675; align-items: center; justify-content: center; text-align: center;
  border: 3px solid #B8891F; box-shadow: inset 12px 0 18px -10px rgba(0,0,0,.5), 0 12px 30px rgba(0,0,0,.35); }
.bk-cover { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bk-cover .bk-emb { font-size: 64px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
.bk-cover > b { font: 800 44px/1 var(--display); letter-spacing: .2em; }
.bk-cover > span { font: 800 20px var(--display); letter-spacing: .5em; color: #FFF1C2; }
.bk-prog { margin-top: 24px; color: #FFF1C2; font-size: 15px; min-width: 200px; }
.bk-prog b { font: 800 28px var(--display); color: #F4D675; }
.bk-cover small { color: #CFE0D4; margin-top: 10px; }
.bk-head { display: flex; justify-content: space-between; align-items: baseline; font: 800 15px var(--display); letter-spacing: .12em; text-transform: uppercase; color: #7A5A12; border-bottom: 2px solid rgba(122,90,18,.35); padding-bottom: 6px; }
.bk-head span { color: #5B5340; letter-spacing: .04em; }
.bk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; align-content: start; flex: 1; }
.bk-page .col-slot { color: #3B3526; }
.bk-page .col-slot.has img { filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.bk-page .col-ghost { border-color: rgba(60,50,30,.3); color: rgba(60,50,30,.35); background: rgba(0,0,0,.03); }
.bk-foot { text-align: center; font: 700 12px var(--display); color: #8A7F66; }
.bk-nav { display: flex; align-items: center; justify-content: center; gap: 18px; color: #CFE0D4; font-weight: 700; }
.bk-arrow { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font: 800 28px/1 var(--display); }
.bk-arrow:disabled { opacity: .3; }

/* Jornal 3D */
.paper-wrap.paper3d { padding: 0; overflow: hidden; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; touch-action: none; }
.paper3d .np-dim { position: absolute; inset: 0; background: rgba(4, 10, 7, .8); opacity: 0; }
.paper3d .np-cv { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; }
.paper3d .np-hint { position: absolute; left: 0; right: 0; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); margin: 0; text-align: center; color: #E9DFC9; opacity: 0; transition: opacity .6s; font: 600 14px var(--body); letter-spacing: .04em; pointer-events: none; z-index: 2; }

/* Tela inicial: atalhos em grade */
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hg { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left;
  padding: 12px 12px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--paper); min-height: 64px; }
.hg:active { transform: translateY(1px); }
.hg i { font-style: normal; font-size: 24px; grid-row: span 2; }
.hg b { font: 800 18px/1.1 var(--display); letter-spacing: .02em; }
.hg small { font-size: 12px; color: #B9CDBF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.home-snd { align-self: center; font-size: 14px; padding: 2px 0; }
.mine-btn { width: 100%; }
.home-grid > .hg:last-child:nth-child(odd) { grid-column: span 2; }
.mine-btn small em { font-style: normal; color: var(--gold); font-weight: 700; }
.home-foot { display: flex; justify-content: center; gap: 22px; margin-top: 4px; }

/* Minigame: a cena fica no meio da tela (mais perto do polegar), não colada no topo */
#kick { display: flex; flex-direction: column; justify-content: center; gap: 10px;
  min-height: calc(100svh - var(--bar-h, 0px) - env(safe-area-inset-top, 0px) - 110px); }

/* Resultado do lance decisivo */
.mom-res { text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 18px 16px; animation: mc-pop .45s ease; }
.mom-res .mom-board { justify-content: center; }
.mom-res .mr-big { font: 800 44px/1 var(--display); letter-spacing: .02em; }
.mom-res.ok .mr-big { color: var(--green); }
.mom-res.ko .mr-big { color: #B3242F; }
.mom-res .mr-txt { margin: 0; font-weight: 600; }

/* Configurações */
.cfg-wrap { position: fixed; inset: 0; z-index: 70; background: rgba(4, 12, 8, .7); display: flex; align-items: flex-end; justify-content: center; animation: fade-in .2s ease; }
.cfg { width: min(100%, 460px); max-height: 92svh; overflow-y: auto; background: #10301F; border-radius: 20px 20px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 12px; box-shadow: 0 -10px 40px rgba(0,0,0,.4); animation: enter .25s ease-out; }
.cfg-head { display: flex; justify-content: space-between; align-items: center; }
.cfg-head b { font: 800 22px var(--display); }
.cfg-x { border: 0; background: rgba(255,255,255,.1); color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 16px; }
.cfg-row { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.05); }
.cfg-t { display: flex; gap: 10px; align-items: center; }
.cfg-t i { font-style: normal; font-size: 22px; }
.cfg-t b { display: block; font: 800 17px var(--display); }
.cfg-t small { display: block; color: #B9CDBF; font-size: 13px; }
.cfg-seg button { font-size: 15px; padding: 9px 4px; }
.cfg-note { margin: 0; color: #93AD9D; font-size: 12px; }
.cfg-wrap.shown, .cfg-wrap.shown .cfg { animation: none; }

/* ===== Acabamento visual (paleta, contraste, hierarquia) ===== */
:root { --label: #8FD6AE; --text-2: #D3E4D9; --amber-ink: #9A6A00; }
/* Amarelo só para a ação principal e o que está selecionado; rótulos em verde-claro */
.eyebrow { color: var(--label); font-weight: 700; font-size: 12px; letter-spacing: .16em; }
.eyebrow.small { color: #C9DCCF; }
.link-btn { color: #EAF3EE; text-decoration-color: rgba(234, 243, 238, .5); text-underline-offset: 3px; }
.stars { color: var(--amber-ink); }
/* Textos secundários mais legíveis sobre o verde */
.lead { color: #E1EEE5; }
.muted { color: #C3D6CA; }
.skip-hint { color: #C9DCCF; font-size: 13px; }
.hg small { color: #CFE0D5; }
/* Hierarquia: título de tela maior, rótulos menores */
h2 { font-size: 34px; line-height: 1.02; }
.field label { font-weight: 600; color: #C9DCCF; }
/* Carreira do dia dentro da paleta (verde e creme, detalhe dourado) */
.daily, .daily-res { background: linear-gradient(135deg, #1D6B45, #0E4630); box-shadow: inset 0 0 0 1.5px rgba(242, 194, 48, .45), 0 3px 0 rgba(0, 0, 0, .35); }
.daily .dl-top, .daily-res .dl-top { color: var(--label); }
.daily b span, .daily .dl-sub { color: #E1EEE5; }

/* Barra do topo: nome curto em cada medidor, barra mais grossa, clube mais visível */
.bar-sub { font-size: 14px; color: #E1EEE5; font-weight: 600; }
.rel .m { flex-direction: column; align-items: stretch; gap: 3px; }
.rel .ml { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #D3E4D9; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.rel .ml small { font-size: 10.5px; }
.rel .ml .ico { width: 14px; height: 14px; flex: none; }
.rel .mb { height: 7px; background: rgba(255, 255, 255, .2); }
.rel .mb i { background: #C3D6CA; }
.snd-mini .ico { width: 19px; height: 19px; }
.ico { display: block; }
.hg i .ico { width: 26px; height: 26px; color: var(--label); }

/* Tela inicial: carreira em andamento como carta */
.cont-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; text-align: left; width: 100%; border: 0; border-radius: 16px; padding: 12px 14px;
  background: var(--gold); color: var(--ink); box-shadow: 0 3px 0 rgba(0, 0, 0, .4); font: inherit; }
.cont-card:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .4); }
.cont-card .scard { width: 62px; height: 78px; border-radius: 11px; }
.cont-card .scard b { font-size: 32px; }
.cont-card .cc-info { display: flex; flex-direction: column; min-width: 0; }
.cont-card .cc-info small { font: 700 12px var(--display); letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.cont-card .cc-info b { font: 800 26px/1.05 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cont-card .cc-info span { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 5px; opacity: .85; }
.cont-card .cc-go { font: 800 34px var(--display); opacity: .7; }

/* Propostas: papel no time e força do time em destaque */
.of-key { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin: 2px 0; }
.of-role { font: 800 17px var(--display); letter-spacing: .04em; text-transform: uppercase; padding: 6px 10px; border-radius: 10px; background: #EEF2EF; color: var(--ink); }
.of-role small { display: block; font: 600 11px/1.2 var(--body); letter-spacing: 0; text-transform: none; opacity: .85; margin-top: 1px; }
.of-role.green { background: #CDEFD9; color: #0E5A30; } .of-role.blue { background: #D6E4FA; color: #1D4C9E; } .of-role.red { background: #F8D3D6; color: #8E1B24; }
.of-str { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 8px; }
.of-str small { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.of-str b { font: 800 24px/1 var(--display); color: var(--ink); }
.of-str i { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: #E3E6E1; overflow: hidden; margin-top: 3px; }
.of-str em { display: block; height: 100%; background: linear-gradient(90deg, #7FB894, #1F7A48); border-radius: 4px; }
.of-kind { font-weight: 800; }
.of-kind.blue { color: #1D4C9E; } .of-kind.green { color: #0E5A30; } .of-kind.gold { color: #8A6200; } .of-kind.red { color: #8E1B24; }

/* Telas curtas no meio da tela */
#screen.center { justify-content: center; min-height: calc(100svh - var(--bar-h, 0px) - env(safe-area-inset-top, 0px) - 90px); }
.ev-res { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 18px; animation: mc-pop .45s ease; }
.ev-res .er-ic { font-size: 54px; line-height: 1; }
.ev-res .eyebrow { color: var(--muted); }
.ev-res .er-txt { margin: 0; font: 700 20px/1.3 var(--body); }
.ev-res.ok .er-txt { color: #0E5A30; } .ev-res.ko .er-txt { color: #8E1B24; }
/* Opção paga sem saldo */
.choices .btn.locked { opacity: 0.5; cursor: not-allowed; }
/* O que a escolha mudou: geral e efeitos (verde ajuda, vermelho atrapalha) */
.er-fx { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 4px; }
.er-fx span { font: 700 13px/1.2 var(--body); padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.06); color: #33413A; }
.er-fx span.up { background: #DDF3E4; color: #0E5A30; }
.er-fx span.down { background: #FBE1E3; color: #8E1B24; }
.er-fx .er-ovr { font-size: 15px; font-weight: 800; flex-basis: 100%; max-width: max-content; margin: 0 auto 2px; }
.mom-res .mr-big { font-size: 58px; animation: mr-pop .7s cubic-bezier(.2, 1.6, .4, 1); }
.mom-res.ok .mr-big { text-shadow: 0 0 24px rgba(34, 164, 93, .35); }
.mom-res .mom-board b { font-size: 44px; }
@keyframes mr-pop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }

/* No computador: o jogo numa moldura, com estádio à noite em volta */
@media (min-width: 760px) {
  body { background:
      radial-gradient(60% 45% at 12% 0%, rgba(255, 244, 200, .10), transparent 70%),
      radial-gradient(60% 45% at 88% 0%, rgba(255, 244, 200, .10), transparent 70%),
      radial-gradient(90% 70% at 50% 100%, #145235, #0A2A1C 70%) fixed; }
  #app { background: var(--pitch); background-image: repeating-linear-gradient(0deg, transparent 0 56px, rgba(255, 255, 255, 0.025) 56px 112px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 80px rgba(0, 0, 0, .55); border-radius: 0 0 22px 22px; }
}

/* Ícones próprios em linha com o texto; propostas sem quebra no rótulo */
.home-snd { display: inline-flex; align-items: center; gap: 6px; }
.home-snd .ico, .off-tools .tool .ico, .dl-top .ico { width: 16px; height: 16px; vertical-align: -3px; }
.cfg-t i { color: var(--label); display: grid; place-items: center; width: 26px; }
.cfg-t i .ico { width: 22px; height: 22px; }
.cfg-head b { display: inline-flex; align-items: center; gap: 8px; }
.of-role { font-size: 15px; white-space: nowrap; }
.of-str small { white-space: nowrap; font-size: 11px; }
.home-snd .ico, .off-tools .tool .ico, .dl-top .ico { display: inline-block; margin-right: 4px; }
/* Medidores empilhados: a barra mantém a altura (a regra antiga flex:1 zerava ela na coluna) */
.rel .m .mb { flex: none; }
/* Rótulo do resultado de evento ocupa a largura toda e quebra sem sobrepor o texto */
.ev-res .eyebrow { width: 100%; flex: none; line-height: 1.35; }
.ev-res .er-ic, .ev-res .er-txt { flex: none; }
/* Sem o véu cinza do toque no iPhone: o estado escolhido já tem borda própria */
button, a, .choice { -webkit-tap-highlight-color: transparent; }
/* Celulares estreitos: rótulos dos medidores não encostam um no outro, nome e clube ganham espaço */
.rel .ml { min-width: 0; overflow: hidden; }
.rel .ml small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 370px) {
  .rel .ml { gap: 3px; letter-spacing: 0; }
  .rel .ml small { font-size: 9.5px; }
  .rel .ml .ico { width: 12px; height: 12px; }
  .bar-tot { gap: 4px; font-size: 14px; }
  .bar-tot small { font-size: 9px; letter-spacing: 0; }
}
.rel .ml small { line-height: 1.3; }
/* A característica escolhida fica nítida enquanto os números sobem; as outras apagam */
.choice.chosen:disabled { opacity: 1; box-shadow: 0 0 0 3px var(--gold), 0 3px 0 rgba(0, 0, 0, .35); }

/* ===== Escala de texto (A0: regras gerais) ===== */
h2 { font: var(--t-h1); letter-spacing: .01em; }
.eyebrow { font: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.prep-sec { font: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.choice b { font: var(--t-h2); }
.choice .d { font: var(--t-small); color: #4F5C55; }
.btn small, .btn.opt small { font: var(--t-small); letter-spacing: 0; opacity: 1; }
.btn.ghost small { color: #D3E4D9; }
.muted.small, .prep-note { font-size: 14px; color: #D3E4D9; }
.seg button, .cfg-seg button { font: 700 16px var(--display); }
.ask .btn.ghost small { color: var(--muted); }

/* ===== Escala de texto (A1: barra do topo) ===== */
.bar-name { font: var(--t-h2); letter-spacing: .01em; }
.bar-sub { font: var(--t-small); font-weight: 600; color: #E1EEE5; }
.bar-tot { font: 700 16px var(--display); }
.bar-tot small { font: var(--t-label); letter-spacing: .06em; text-transform: uppercase; color: #B9CDBF; }
.rel .ml { font: var(--t-label); letter-spacing: .06em; }
.rel .ml small { font: inherit; letter-spacing: inherit; line-height: 1.3; }
@media (max-width: 370px) {
  .bar-name { font: var(--t-item); }
  .bar-tot small, .rel .ml, .rel .ml small { letter-spacing: 0; }
  .rel .ml small { font-size: 12px; }
  .bar-tot small { font-size: 12px; }
}

/* ===== Escala de texto (A2: início) ===== */
.hg b { font: var(--t-item); letter-spacing: .01em; }
.hg small { font: 500 14px/1.3 var(--body); color: #D3E4D9; }
.hg i { width: 36px; height: 36px; border-radius: 999px; background: rgba(143, 214, 174, .16); display: grid; place-items: center; }
.hg i .ico { width: 20px; height: 20px; color: var(--label); }
.cont-card .cc-info b { font: var(--t-h2); }
.cont-card .cc-info small { font: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: #5A4200; opacity: 1; }
.cont-card .cc-info span { font: 500 14px/1.3 var(--body); color: #3A3010; opacity: 1; }
.cont-card .cc-go { display: grid; place-items: center; color: #5A4200; opacity: 1; }
.cont-card .cc-go .ico { width: 28px; height: 28px; }
.scard .sc-tier { font-weight: 600; }
.scard .sc-pos { font-weight: 700; }
.daily { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: center; }
.daily .dl-seal { grid-row: 1 / span 3; width: 44px; height: 44px; border-radius: 999px; background: rgba(242, 194, 48, .18); color: #F2C230; display: grid; place-items: center; align-self: center; }
.daily .dl-seal .ico { width: 22px; height: 22px; }
.daily .dl-top, .daily-res .dl-top { font: var(--t-label); letter-spacing: .14em; }
.daily b { font: var(--t-h2); }
.daily b span, .daily .dl-sub { font: 500 14px/1.35 var(--body); }
.home-snd { font: 500 14px var(--body); }
.hg small { white-space: normal; overflow: visible; line-height: 1.25; }
.hg { align-content: center; row-gap: 2px; }
@media (max-width: 370px) {
  .hg { padding-left: 10px; padding-right: 8px; column-gap: 8px; }
  .hg i { width: 32px; height: 32px; }
  .hg i .ico { width: 18px; height: 18px; }
}

/* ===== Escala de texto (A3: configurações) ===== */
.cfg-head b { font: var(--t-h2); }
.cfg-x { display: grid; place-items: center; }
.cfg-x .ico { width: 18px; height: 18px; }
.cfg-grp { display: flex; flex-direction: column; gap: 8px; }
.cfg-box { background: rgba(255, 255, 255, .05); border-radius: 16px; overflow: hidden; }
.cfg-box .cfg-row { background: none; border-radius: 0; padding: 14px 12px; gap: 10px; }
.cfg-box .cfg-row + .cfg-row { border-top: 1px solid rgba(255, 255, 255, .06); }
.cfg-t { gap: 12px; }
.cfg-t i { width: 36px; height: 36px; flex: none; border-radius: 999px; background: rgba(143, 214, 174, .16); color: var(--label); display: grid; place-items: center; }
.cfg-t i .ico { width: 20px; height: 20px; }
.cfg-t b { font: var(--t-item); }
.cfg-t small { font: 500 14px/1.35 var(--body); color: #C9DCCF; }
.cfg-seg { padding: 4px; gap: 4px; border-radius: 12px; background: rgba(0, 0, 0, .22); }
.cfg-seg button { background: transparent; color: #D3E4D9; border-radius: 9px; padding: 8px 4px; }
.cfg-seg button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.cfg-note { font: 500 14px/1.35 var(--body); color: #B9CDBF; display: flex; gap: 6px; align-items: flex-start; }
.cfg-note .ico { width: 15px; height: 15px; flex: none; margin-top: 2px; }

/* ===== Escala de texto (A4: pré-temporada) ===== */
.choice.inv b { font: var(--t-item); }
.choice.inv .d { font: 600 14px/1.3 var(--body); color: var(--ink); }
.choice.inv .price { font: 700 14px var(--display); }
.choice .pips, .choice.inv .pips { font-size: 12px; }
.wallet { font: var(--t-small); }
.chip { font: var(--t-small); }
.chip b { font-weight: 700; }
.chip.syn { font-weight: 600; }
.prep-done { font: 600 16px/1.35 var(--body); }
.choice .fx { font: 600 14px/1.35 var(--body); }

/* ===== Escala de texto (A5: propostas) ===== */
.offer .club { font: var(--t-h2); }
.offer .lg { font: var(--t-small); }
.offer .of-kind { font: 700 16px/1.1 var(--display); }
.of-role { font: 700 16px var(--display); letter-spacing: .04em; }
.of-str small { font: var(--t-label); letter-spacing: .08em; }
.of-str b { font: 800 28px/1 var(--display); }
.stars { font-size: 14px; }
.off-tools .tool, .wc-sim .tool { font: 700 16px var(--display); }
.off-tools .tool small { font: 500 12px var(--body); }
.deal thead th { font: var(--t-label); letter-spacing: .06em; }
.lg-row em { font-weight: 700; }

/* ===== Escala de texto (A6: evento e resultado) ===== */
.btn { font-weight: 700; }
.event-card p { font: var(--t-body); }
.ev-res .er-txt { font: 600 18px/1.35 var(--body); }
.mom-min { font: 700 14px var(--display); }
.mom-ctx { font: 600 14px/1.35 var(--body); }
.mom-res .mr-txt { font: 600 16px/1.4 var(--body); }

/* ===== Escala de texto (A7: fim de temporada) ===== */
.sv-lbl { font: var(--t-h2); }
.sv-d { font: 800 28px/1 var(--display); font-style: normal; }
.counter span { font: 500 14px/1.2 var(--body); }
.move-line { font: var(--t-h2); }
.title-won b { font: var(--t-h2); }
.title-won span { font: var(--t-small); line-height: 1.15; }
.award { font: 700 20px var(--display); }
.award.ballon { font-size: 26px; }
.news .np { font: var(--t-label); letter-spacing: .14em; }
.news p { font: var(--t-item); }
.feed div { font: var(--t-body); }
details.more > summary { font: 600 16px var(--body); }
.why b { font-weight: 700; }

/* ===== Selos de ícone (Parte B) ===== */
.seal { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; flex: none; }
.seal .ico { width: 22px; height: 22px; }
.seal.sm { width: 32px; height: 32px; } .seal.sm .ico { width: 16px; height: 16px; }
.seal.lg { width: 52px; height: 52px; } .seal.lg .ico { width: 26px; height: 26px; }
.seal.green  { background: #CDEFD9; color: #0E5A30; }
.seal.blue   { background: #D6E4FA; color: #1D4C9E; }
.seal.sand   { background: #EFE9D8; color: #13201A; }
.seal.red    { background: #F8D3D6; color: #8E1B24; }
.seal.gold   { background: #FBE7A6; color: #7A5600; }
.seal.purple { background: #EADFFF; color: #5B35B0; }
/* xs: selo dentro de uma linha de texto (chips, avisos, combinações) */
.seal.xs { display: inline-grid; width: 20px; height: 20px; vertical-align: -5px; } .seal.xs .ico { width: 12px; height: 12px; }
.choice .ic:has(.seal), .sh-tr .ic:has(.seal) { display: grid; place-items: center; }
.sh-tr .ic:has(.seal) { width: auto; }

/* Evento: selo grande + rótulo do tom acima do título */
.event-card .ev-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ev-tag { font: var(--t-label); letter-spacing: .14em; text-transform: uppercase; }
.ev-tag.green { color: #0E5A30; } .ev-tag.red { color: #8E1B24; } .ev-tag.blue { color: #1D4C9E; } .ev-tag.back { color: #7A4FD6; }
.ev-mem { margin: 6px 0 2px; padding: 6px 10px; border-left: 3px solid #7A4FD6; background: rgba(122, 79, 214, .08); border-radius: 0 8px 8px 0; font: 600 14px/1.35 var(--body); color: #4A3A6E; }
.ev-res .er-ic:has(.seal) { display: grid; place-items: center; }

/* Conquistas com selo: sem o filtro cinza (a bloqueada usa o selo de cadeado) */
.ach .ic:has(.seal) { filter: none; opacity: 1; }
.ach:not(.on) .ic .seal { opacity: .75; }
.ach b { font: 700 16px/1.1 var(--display); }
.ach .d { font-weight: 500; }

/* Fim de carreira: explicação da pontuação */
.score-how { margin-top: 6px; }
.score-how summary { color: var(--ink); }
.sh-parts { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-direction: column; }
.sh-parts li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #ECF0ED; font: var(--t-small); color: #34453A; }
.sh-parts li b { font: 700 16px var(--display); color: var(--ink); white-space: nowrap; }
.sh-parts li.tot { border-bottom: 0; font-weight: 700; color: var(--ink); }
.sh-parts li.tot b { font-size: 18px; }
.sh-bands, .sh-next { margin: 0 0 4px; font: var(--t-small); color: #5E6B63; }
.sh-next { color: #7A5600; font-weight: 600; }
details.more.score-how { background: #F2F4EE; }
details.more.score-how > summary { color: var(--ink); }

.tl-loan { font: var(--t-label); letter-spacing: .06em; text-transform: uppercase; color: #1D4C9E; margin-left: 4px; }

/* Fisioterapia sozinha embaixo, na largura toda */
.choices.inv-grid .choice.inv[data-v="fisio"] { grid-column: 1 / -1; }

/* ===== Twemoji: ícones coloridos iguais em todo aparelho ===== */
.tw { display: inline-block; vertical-align: -0.2em; flex: none; }
.tw-xs { width: 16px; height: 16px; } .tw-sm { width: 20px; height: 20px; } .tw-md { width: 28px; height: 28px; } .tw-lg { width: 40px; height: 40px; }
/* dentro de um texto: acompanha o tamanho da letra */
.tw-tx { width: 1.15em; height: 1.15em; vertical-align: -0.22em; }
.choice .ic:has(.tw), .sh-tr .ic:has(.tw) { display: grid; place-items: center; }
/* Conquistas: emoji real; bloqueada em cinza com cadeado pequeno no canto */
.ach .ic { position: relative; display: inline-block; width: max-content; filter: none; opacity: 1; font-size: 0; line-height: 0; }
.ach:not(.on) .ic .tw-md { filter: grayscale(1); opacity: .35; }
.ach .ic .tw-xs { position: absolute; right: -6px; bottom: -3px; }
.bm-emoji .tw { width: 1em; height: 1em; vertical-align: 0; }

.cfg-credit { margin: 2px 0 0; text-align: center; font: 500 12px var(--body); color: #93AD9D; }
.cfg-credit a { color: inherit; }
/* Foco nos treinos: 4 opções lado a lado */
.train-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.train-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; border: 2px solid transparent; background: var(--paper, #FBF7EE); color: var(--ink, #14231B); cursor: pointer; }
.train-opt b { font: 700 15px var(--display); }
.train-opt.on { border-color: var(--gold); background: #FFF4CC; box-shadow: 0 0 0 2px rgba(242, 193, 46, .35); }
.train-txt { margin: 8px 0 0; color: #CFE0D4; }
.train-txt b { color: var(--gold); }

/* ---------- Sala de Troféus (prancha "Estante de clube") ---------- */
body.sala-on { overflow: hidden; }
.sala { position: fixed; inset: 0; z-index: 70; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #145235, #0F3D2A 45%); color: var(--paper); }
.sala > * { max-width: 480px; margin-left: auto; margin-right: auto; }
.sl-top { position: relative; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 0; overflow: hidden; }
.sl-deco { position: absolute; top: 70px; right: -60px; width: 230px; height: 260px; border-radius: 50% 50% 46% 46% / 40% 40% 60% 60%; border: 22px solid rgba(255, 255, 255, .045); pointer-events: none; }
.sl-title { position: relative; display: flex; align-items: center; gap: 12px; }
.sl-back { width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .08); color: var(--paper); display: grid; place-items: center; flex: none; cursor: pointer; }
.sl-back svg { width: 20px; height: 20px; }
.sl-title h2 { margin: 0; font: 800 26px/1 var(--display); letter-spacing: .01em; }
.sl-who { position: relative; margin-top: 14px; font: 700 14px/1.2 var(--display); color: var(--label); letter-spacing: .06em; text-transform: uppercase; }
.sl-count { position: relative; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.sl-count.car { margin-top: 4px; }
.sl-count b { font: 800 46px/1 var(--display); color: var(--gold); }
.sl-count span { font: 700 18px/1.2 var(--display); color: var(--label); }
.sl-count.car span { color: var(--paper); }
.sl-count em { font-style: normal; color: var(--gold); }
.sl-bar { position: relative; height: 10px; margin-top: 8px; border-radius: 999px; background: linear-gradient(180deg, #1E120A, #2E1C10); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); overflow: hidden; }
.sl-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(180deg, #FFE68A, #F2C230 50%, #B98700); }
.sl-seg { position: relative; margin-top: 14px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .25); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.sl-seg button { height: 40px; border: 0; border-radius: 999px; background: none; color: #CDEFD9; font: 700 16px var(--display); cursor: pointer; }
.sl-seg button.on { background: var(--paper); color: var(--ink); }
.sl-metas { position: relative; display: flex; gap: 8px; padding-top: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.sl-metas::-webkit-scrollbar { display: none; }
.sl-meta { flex: none; width: 150px; box-sizing: border-box; padding: 9px 11px; border-radius: 14px; background: rgba(0, 0, 0, .22); display: flex; flex-direction: column; gap: 5px; }
.sl-meta > span { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.sl-meta b { font: 700 14px/1.1 var(--display); color: #CDEFD9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-meta i { font: 800 16px/1 var(--display); font-style: normal; color: var(--paper); }
.sl-meta em { display: block; height: 5px; border-radius: 999px; background: rgba(0, 0, 0, .35); overflow: hidden; }
.sl-meta s { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.sl-meta.done { box-shadow: inset 0 0 0 1.5px rgba(242, 194, 48, .6); }
.sl-tabs { position: relative; display: flex; gap: 18px; padding-top: 10px; }
.sl-tabs button { min-height: 44px; display: flex; align-items: center; gap: 5px; border: 0; border-bottom: 3px solid transparent; background: none; padding: 0; font: 700 17px var(--display); color: var(--label); cursor: pointer; }
.sl-tabs button span { font-weight: 600; font-size: 15px; }
.sl-tabs button.on { color: var(--paper); border-bottom-color: var(--gold); }
.sl-tabs button.on span { color: var(--gold); }
.sl-case { position: relative; margin-top: 10px; min-height: 70vh; padding: 14px 10px calc(28px + env(safe-area-inset-bottom, 0px)); border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, #2C1A0E, #1F130A 30%, #1A1008); box-shadow: inset 0 2px 0 rgba(255, 220, 170, .12), 0 -6px 18px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 18px; }
.sl-hint { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 236, 190, .07); font: 500 14px/1.35 var(--body); color: #E9DCC0; }
.sl-shelf { display: flex; flex-direction: column; gap: 8px; }
.sl-shelf header { display: flex; align-items: center; gap: 8px; padding: 0 2px; min-height: 28px; }
.sl-shelf header b { font: 700 18px/1 var(--display); color: var(--paper); }
.sl-shelf header > span { margin-left: auto; font: 700 15px/1 var(--display); color: #D9C7A3; text-align: right; }
.sl-shelf header > span.where { font-size: 14px; }
.sl-full { padding: 2px 9px; border-radius: 999px; background: linear-gradient(180deg, #FFE68A, #F2C230); color: var(--ink); font: 800 14px/18px var(--display); font-style: normal; letter-spacing: .03em; }
.sl-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sl-honra { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Nicho: moldura de madeira, holofote, sombra no chão e placa de latão */
.ni { position: relative; display: flex; flex-direction: column; width: 100%; min-width: 0; padding: 5px 5px 0; border: 0; border-radius: 10px; color: inherit; font: inherit; text-align: center; cursor: pointer;
  background: linear-gradient(180deg, #5A3820, #3A2414 60%, #2C1A0E); box-shadow: 0 3px 0 rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 220, 170, .18); -webkit-tap-highlight-color: transparent; }
.ni:active { transform: translateY(1px); }
.ni.gold { background: linear-gradient(160deg, #FFE68A, #F2C230 35%, #B98700 70%, #FFE68A); box-shadow: 0 3px 0 rgba(0, 0, 0, .35), 0 0 16px rgba(242, 194, 48, .25); }
.ni i, .ni b { font-style: normal; }
.ni-box { position: relative; aspect-ratio: 102 / 122; border-radius: 6px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 9px; box-sizing: border-box;
  background: linear-gradient(180deg, #120D09, #1E150E 70%, #2A1D13); box-shadow: inset 0 8px 14px rgba(0, 0, 0, .7), inset 0 -1px 0 rgba(255, 236, 190, .08); }
.ni-clip { position: absolute; inset: 0; border-radius: 6px; overflow: hidden; pointer-events: none; }
.ni-leg { display: none; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 35%, #5B3A8F, #2A1648 62%, #140A26); }
.ni-leg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(190, 220, 255, .16) 44%, rgba(255, 200, 240, .12) 52%, rgba(255, 255, 255, 0) 64%); }
.ni.leg .ni-leg { display: block; }
.ni-light { position: absolute; top: 0; left: -10%; width: 120%; height: 90%; opacity: 0; background: radial-gradient(ellipse at 50% 0%, rgba(255, 240, 200, .5), rgba(255, 240, 200, .12) 45%, rgba(255, 240, 200, 0) 72%); }
.ni-bulb { position: absolute; top: 0; left: 30%; width: 40%; height: 3px; border-radius: 0 0 3px 3px; opacity: 0; background: #FFF4D6; box-shadow: 0 0 10px 2px rgba(255, 236, 180, .8); }
.ni.lit .ni-light, .ni.lit .ni-bulb { opacity: 1; }
.ni-floor { position: absolute; bottom: 5px; left: 22%; width: 56%; height: 9px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0) 70%); }
/* Foto sempre a 74% da altura do nicho, apoiada no chão (fora do fluxo: o nicho não cresce com a foto) */
/* Segurar o dedo não abre a foto (a silhueta da taça que falta não pode ser revelada) */
.ni { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.ni-img { pointer-events: none; -webkit-user-drag: none; position: absolute; left: 7%; right: 7%; bottom: 9px; width: 86%; height: 74%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .65)); }
.ni.mini .ni-img { bottom: 4px; }
.ni.miss .ni-img { filter: brightness(0) drop-shadow(0 0 1px rgba(255, 236, 190, .5)); opacity: .85; }
.ni-ring, .ni-new, .ni-cnt { display: none; }
.ni.nova .ni-ring { display: block; position: absolute; inset: 0; border-radius: 6px; box-shadow: inset 0 0 0 2px #F2C230, inset 0 0 20px rgba(242, 194, 48, .45); pointer-events: none; }
.ni.nova .ni-new { display: block; position: absolute; top: 6px; left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--gold); color: var(--ink); font: 800 14px/20px var(--display); letter-spacing: .04em; }
.ni.multi .ni-cnt { display: block; position: absolute; top: 6px; right: 6px; min-width: 30px; padding: 0 7px; box-sizing: border-box; border-radius: 999px; background: var(--paper); color: var(--ink);
  font: 800 15px/24px var(--display); text-align: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.ni.gold .ni-cnt { background: linear-gradient(180deg, #FFE68A, #F2C230); }
.ni-shelf { position: relative; display: block; height: 6px; margin: 0 -5px; background: linear-gradient(180deg, #7A4E2E, #3A2414); box-shadow: 0 2px 3px rgba(0, 0, 0, .4); }
.ni-plq { display: block; margin: 4px 0 6px; padding: 3px 5px; border-radius: 4px; font: 700 14px/1.1 var(--display); text-wrap: balance; overflow-wrap: anywhere;
  color: #2A1A08; background: linear-gradient(180deg, #EED48A, #C9A24A 55%, #A88232); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 1px 2px rgba(0, 0, 0, .5); }
.ni.miss .ni-plq { color: #D9C7A3; background: #1E140C; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 220, 170, .1); }
.sl-honra .ni .ni-box { aspect-ratio: 160 / 150; }
.ni.mini { width: 44px; flex: none; padding: 3px 3px 0; border-radius: 7px; pointer-events: none; }
.ni.mini .ni-box { aspect-ratio: 38 / 46; padding-bottom: 4px; border-radius: 4px; }
.ni.mini .ni-shelf { height: 4px; margin: 0 -3px 3px; }
.ni.mini .ni-floor { height: 5px; bottom: 2px; }
.ni.mini .ni-ring, .ni.mini .ni-new, .ni.mini .ni-cnt { display: none; }
.ni.big { width: 128px; flex: none; pointer-events: none; }
.ni.anim { width: 160px; pointer-events: none; }
.ni.anim .ni-box { aspect-ratio: 150 / 170; }

/* Folha de detalhe */
.sl-sheet-wrap { position: fixed; inset: 0; z-index: 75; background: rgba(4, 14, 9, .62); display: flex; align-items: flex-end; justify-content: center; animation: slFade .2s ease-out; }
.sl-sheet { width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; box-sizing: border-box; padding: 10px 18px calc(22px + env(safe-area-inset-bottom, 0px)); border-radius: 24px 24px 0 0;
  background: var(--paper); color: var(--ink); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 -10px 30px rgba(0, 0, 0, .4); animation: slUp .25s cubic-bezier(.2, .8, .3, 1); }
.sl-grab { align-self: center; width: 40px; height: 5px; border-radius: 999px; background: #D8D2C2; }
.sl-sh-top { display: flex; gap: 14px; align-items: flex-start; }
.sl-sh-top > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-top: 4px; }
.sl-where { display: flex; align-items: center; gap: 6px; font: 700 14px/1.2 var(--display); color: #3E6B53; letter-spacing: .05em; text-transform: uppercase; }
.sl-sh-top h3 { margin: 0; font: 800 28px/1 var(--display); color: var(--ink); overflow-wrap: anywhere; }
.sl-times { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.sl-times b { font: 800 40px/1 var(--display); color: #B98700; }
.sl-times span, .sl-miss { margin: 4px 0 0; font: 600 15px/1.3 var(--body); color: #4A5A51; }
.sl-hist > div { display: flex; align-items: center; gap: 10px; min-height: 48px; border-top: 1px solid #ECE6D6; }
.sl-hist b { width: 44px; flex: none; font: 800 18px var(--display); }
.sl-hist .crest { width: 28px; height: 28px; flex: none; }
.sl-hist span { flex: 1; min-width: 0; font: 600 15px/1.2 var(--body); }
.sl-hist em { font: 500 14px/1.2 var(--body); font-style: normal; color: #5C6B62; text-align: right; }
.sl-how { padding: 14px; border-radius: 14px; background: #F1ECDD; display: flex; flex-direction: column; gap: 4px; }
.sl-how small { font: 700 14px/1.2 var(--display); color: #3E6B53; letter-spacing: .05em; text-transform: uppercase; }
.sl-how b { font: 700 20px/1.2 var(--display); }
.sl-sheet .btn { margin: 0; }
@keyframes slFade { from { opacity: 0; } }
@keyframes slUp { from { transform: translateY(40px); opacity: 0; } }

/* Entrada na tela inicial */
.sl-home { width: 100%; display: flex; align-items: center; gap: 12px; margin: 10px 0 2px; padding: 10px 14px 10px 10px; border-radius: 16px; cursor: pointer; text-align: left; color: var(--paper);
  border: 1px solid rgba(255, 220, 170, .14); background: linear-gradient(180deg, #2C1A0E, #1F130A); box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.sl-home.has-new { border: 2px solid var(--gold); box-shadow: 0 0 0 3px rgba(242, 194, 48, .18), 0 4px 12px rgba(0, 0, 0, .3); }
.sl-minis { display: flex; align-items: flex-start; gap: 4px; flex: none; }
.sl-h-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.sl-h-txt b { font: 800 20px/1.05 var(--display); }
.sl-h-txt small { font: 700 15px var(--display); color: #D9C7A3; }
.sl-h-txt em { font-style: normal; color: var(--gold); }
.sl-h-new { flex: none; padding: 3px 9px; border-radius: 999px; background: var(--gold); color: var(--ink); font: 800 14px/18px var(--display); letter-spacing: .03em; }
.sl-h-go { flex: none; color: #D9C7A3; display: grid; }
.sl-h-go svg { width: 20px; height: 20px; }
@media (max-width: 350px) { .sl-minis .ni:first-child { display: none; } .sl-row { gap: 6px; } .sl-case { padding-left: 8px; padding-right: 8px; } }

/* A taça entrando na estante */
.sl-anim { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 40%, rgba(10, 30, 20, .9), rgba(3, 8, 5, .96) 70%); animation: slFade .25s ease-out; transition: opacity .2s; cursor: pointer; }
.sl-anim.out { opacity: 0; }
.sl-an-in { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px; }
.sl-an-lbl { display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: 0; }
.sl-an-lbl.on { opacity: 1; }
.sl-an-lbl span { font: 700 15px var(--display); letter-spacing: .12em; color: var(--gold); }
.sl-an-lbl b { font: 800 34px/1 var(--display); color: var(--paper); text-align: center; }
.sl-an-lbl .sl-full { margin-top: 6px; }
.sl-an-in > small { color: #9DB5A6; font-size: 13px; }
.sl-spark { position: absolute; top: 0; width: 5px; height: 5px; border-radius: 50%; background: #FFE68A; box-shadow: 0 0 6px 1px rgba(255, 220, 120, .8); pointer-events: none; opacity: 0; }
.sh-sala { margin-left: auto; font-size: 13px; letter-spacing: 0; text-transform: none; color: #0E5A30; text-decoration-color: rgba(14, 90, 48, .5); }
.ni-sil { filter: brightness(0) drop-shadow(0 0 1px rgba(255, 236, 190, .5)); }

/* ---------- Criação do personagem (prancha: passo 1 quem é, passo 2 como ele é) ---------- */
.cr-title { margin: 2px 0 6px; font: 800 30px/1.05 var(--display); }
.cr-lbl { font: 700 14px var(--display); letter-spacing: .08em; color: var(--label); text-transform: uppercase; margin: 12px 0 6px; }
.cr-lbl b { margin-left: 4px; font: 600 14px var(--body); letter-spacing: 0; text-transform: none; color: #E3F3E9; }
.cc { width: 210px; }
.cc-photo svg { width: 132px; }
.cr-flags { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.cr-flags button { height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; cursor: pointer; }
.cr-flags button.on { background: var(--paper); }
.cr-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cr-top .back-link { margin: 0; }
.cr-dice { height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); color: var(--paper); display: flex; align-items: center; gap: 8px; font: 700 16px var(--display); cursor: pointer; }
.cr-stage { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; margin-top: 6px; }
.cr-big { position: relative; height: 252px; border-radius: 18px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(ellipse at 50% 30%, #2A8257, #145235 55%, #0C3322); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.cr-big::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: repeating-linear-gradient(90deg, #1E6A44 0 22px, #22744B 22px 44px); }
.cr-big::after { content: ''; position: absolute; bottom: 10px; left: 50%; width: 110px; height: 14px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 70%); }
.cr-big svg { position: relative; z-index: 1; height: 240px; width: auto; }
.cr-side { display: flex; flex-direction: column; }
.cr-side .cr-lbl { margin: 0 0 6px; letter-spacing: .06em; }
.cr-side .cr-lbl + .cr-clip + .cr-lbl { margin-top: 10px; }
.cr-clip { padding: 4px 4px 3px; background: #DDD4BC; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.cr-clip svg { display: block; width: 100%; height: auto; filter: sepia(.3) saturate(.85) contrast(1.05); border: 1px solid rgba(27, 26, 23, .5); box-sizing: border-box; }
.cr-tabs { margin-top: 12px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .25); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.cr-tabs button { height: 40px; border: 0; border-radius: 999px; background: transparent; color: #CDEFD9; font: 700 16px var(--display); cursor: pointer; }
.cr-tabs button.on { background: var(--paper); color: var(--ink); }
.cr-rows { display: flex; flex-direction: column; padding-bottom: 8px; }
.cr-row .cr-lbl { margin-top: 14px; }
.cr-sw { display: flex; flex-wrap: wrap; gap: 2px; }
.cr-sw button { position: relative; width: 42px; height: 44px; border: 0; padding: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.cr-sw i { width: 32px; height: 32px; border-radius: 999px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22); }
.cr-sw button.on i { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--gold); }
.cr-sw button.lock i { opacity: .45; }
.cr-sw button.lock img { position: absolute; right: 2px; bottom: 2px; width: 16px; height: 16px; }
.cr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-chips button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--paper); font: 600 15px var(--body); cursor: pointer; }
.cr-chips button.on { background: var(--paper); color: var(--ink); font-weight: 700; }
/* Corte e barba com miniatura do rosto */
.cr-chips.faces button { display: inline-flex; align-items: center; gap: 7px; padding: 0 14px 0 4px; }
.cr-chips.faces svg { width: 34px; height: 34px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.cr-chips.faces button.on svg { background: #DCE8DF; }
/* Prévia de perto (abas Corpo e Cabelo): rosto e ombros, sem o gramado */
.cr-big.zoom { align-items: center; }
.cr-big.zoom::before, .cr-big.zoom::after { display: none; }
.cr-big.zoom svg { height: 100%; }
.cr-lock { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; padding: 8px 10px; border-radius: 10px; background: rgba(242, 194, 48, .14); font: 600 14px/1.3 var(--body); color: #FBE7A6; }
@media (max-width: 350px) { .cr-stage { grid-template-columns: minmax(0, 1fr) 84px; } .cr-big { height: 236px; } .cr-big svg { height: 224px; } }

/* Toque duplo não dá zoom (comprar rápido no Safari dava zoom); o pinça continua funcionando */
html, body, button, a, input, .choice { touch-action: manipulation; }
/* Efeitos que crescem (títulos e prêmios do resumo pulando na tela) não alargam a página no celular */
/* Só no bloco do resumo (onde os títulos e prêmios crescem): na tela toda cortava as bordas dos botões.
   (clip não cria rolagem própria: a barra fixa embaixo continua funcionando) */
#after { overflow-x: clip; padding-left: 14px; padding-right: 14px; margin-left: -14px; margin-right: -14px; }
/* Minigame do meia (provisório: sprites da barreira; o companheiro em outra cor) */
.ps-mate { filter: hue-rotate(150deg) saturate(1.2); }
/* Resenha do podcast no resumo: cartão escuro, frase em itálico */
.news.resenha { background: #1B1A17; color: var(--paper); margin-top: 8px; }
.news.resenha .np { color: #F2C230; border-bottom-color: rgba(255, 255, 255, .25); letter-spacing: .06em; }
.news.resenha p { font: italic 600 17px/1.3 var(--body); }
.news.resenha .rs-item + .rs-item { margin-top: 10px; padding-top: 8px; border-top: 1px dashed rgba(255, 255, 255, .18); }
/* Nas redes: post do jogador e comentários */
.sp-h1 { font: 800 44px/1 var(--display); margin: 4px 0 8px; color: #fff; }
.sp-tag { display: inline-block; width: fit-content; align-self: flex-start; border: 2px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 3px 12px; font: 800 13px var(--display); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.sp-card { background: var(--paper); color: var(--ink); padding: 14px 14px 4px; }
.sp-head, .sp-com { display: flex; gap: 10px; align-items: flex-start; }
.sp-head { align-items: center; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.sp-head b, .sp-com b { font: 800 18px var(--display); }
.sp-head small, .sp-com small { display: block; color: #7A7466; font-size: 13px; }
.sp-com small { display: inline; margin-left: 8px; }
.sp-ava { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #1E4A33; color: #fff; display: grid; place-items: center; font: 800 20px var(--display); }
.sp-head .sp-ava { width: 46px; height: 46px; font-size: 24px; }
.sp-check { width: 15px; height: 15px; vertical-align: -2px; margin-left: 4px; }
.sp-text { font-size: 18px; line-height: 1.35; margin: 12px 0; }
.sp-stats { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--ink); }
.sp-stats span { display: inline-flex; align-items: center; gap: 6px; }
.sp-stats b { font: 800 18px var(--display); }
.sp-stats i { width: 1px; height: 18px; background: #CFC7B4; }
.sp-ch { font: 800 20px var(--display); margin: 8px 0 4px; }
.sp-com { padding: 9px 0; border-top: 1px solid #E4DCCB; }
.sp-com p { margin: 2px 0 0; font-size: 15px; line-height: 1.3; }
.xw { background: #000; color: #E7E9EA; border-radius: 14px; overflow: hidden; margin: 0 -4px; border: 1px solid #2F3336; font: 400 15px/1.35 -apple-system, 'Segoe UI', Roboto, var(--body), sans-serif; }
.xw b { font-weight: 700; color: #E7E9EA; }
.xw small { color: #71767B; font-size: 14px; }
.xw-main { padding: 12px 14px 0; border-bottom: 1px solid #2F3336; }
.xw-head { display: flex; align-items: center; gap: 10px; }
.xw-head div { line-height: 1.25; min-width: 0; }
.xw-head small { display: block; }
.xw-ava { flex: none; width: 36px; height: 36px; border-radius: 50%; color: #fff; display: grid; place-items: center; font: 700 15px var(--body); }
.xw-ava.big { width: 42px; height: 42px; font-size: 18px; }
.xw-chk { width: 17px; height: 17px; vertical-align: -3px; margin-left: 3px; }
.xw-text { font-size: 18px; line-height: 1.4; margin: 12px 0; white-space: pre-line; overflow-wrap: anywhere; }
.xw-when { color: #71767B; font-size: 14px; margin: 0 0 10px; }
.xw-sum { display: flex; gap: 18px; padding: 10px 0; border-top: 1px solid #2F3336; color: #71767B; font-size: 14px; }
.xw-acts { display: flex; justify-content: space-between; color: #71767B; font-size: 13px; padding: 8px 0 10px; max-width: 360px; }
.xw-acts span { display: inline-flex; align-items: center; gap: 5px; }
.xw-acts svg { width: 17px; height: 17px; }
.xw-acts .on { color: #F91880; }
.xw-acts.big { border-top: 1px solid #2F3336; padding: 10px 6px; }
.xw-acts.big svg { width: 21px; height: 21px; }
.xw-rep { display: flex; gap: 10px; padding: 12px 14px 0; border-bottom: 1px solid #2F3336; }
.xw-rep.self { padding: 10px 0 4px; border: 0; }
.xw-rc { flex: 1; min-width: 0; }
.xw-rh { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xw-rh small { font-size: 14px; }
.xw-rt { margin: 2px 0 0; overflow-wrap: anywhere; }
.xw-rt small { display: block; font-size: 13px; margin-bottom: 2px; }
.xw-rt em { font-style: normal; color: #1D9BF0; }
.xw .sp-reply { border-left: 2px solid #2F3336; padding-left: 10px; margin-top: 8px; }
.xw .sp-hbtn { border-color: #536471; color: #E7E9EA; font-size: 15px; }
.xw .sp-hbtn small { color: #71767B; }
.xw small.sp-out { display: block; margin-top: 4px; color: #F2C230; font-weight: 700; }
.sp-note { text-align: center; color: rgba(255, 255, 255, .55); font-size: 12px; margin: 8px 0 12px; }
.sp-reply { margin: 6px 0 0; padding: 6px 0 0 10px; border-left: 2px solid #E4DCCB; }
.sp-reply b { font-size: 16px; }
.sp-fx { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: rgba(242, 194, 48, .14); color: var(--gold); font: 700 15px/1.3 var(--body); }
.sp-fx.ko { background: rgba(237, 73, 86, .14); color: #FF8A93; }
.sp-fx.none { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .65); }
.sp-hbtn { display: block; width: 100%; margin: 2px 0; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 10px; background: transparent; color: var(--ink); font: 800 16px var(--display); text-align: left; cursor: pointer; }
.sp-hbtn small { display: block; margin: 0; font: 600 13px/1.25 var(--body); color: #7A7466; }
.sp-com small.sp-out { display: block; margin: 4px 0 0; color: #1E4A33; font-weight: 700; }

/* ---------- Pacotinhos (pranchas "Pacotinhos"): raridades, abrir, Meus itens, troca, avisos ---------- */
.rk-livre { --rk: #8FD6AE; --rk-frame: rgba(255,255,255,.16); --rk-glow: none; --rk-selo: rgba(255,255,255,.14); --rk-ink: #FBF8EF; }
.rk-comum { --rk: #C98A5A; --rk-frame: url(assets/cartas/bronze.jpg) center/cover; --rk-glow: 0 0 0 1px #6E4021, 0 0 16px rgba(227,150,90,.45); --rk-selo: #8A5530; --rk-ink: #FFF1E4; }
.rk-raro { --rk: #C9D1D8; --rk-frame: url(assets/cartas/prata.jpg) center/cover; --rk-glow: 0 0 0 1px #6B7682, 0 0 22px rgba(220,235,255,.55); --rk-selo: #DDE3E9; --rk-ink: #13201A; }
.rk-epico { --rk: #F2C230; --rk-frame: url(assets/cartas/dourada.jpg) center/cover; --rk-glow: 0 0 0 1px #8A6400, 0 0 28px rgba(255,214,90,.7); --rk-selo: #F2C230; --rk-ink: #13201A; }
.rk-lendario { --rk: #B48CFF; --rk-frame: linear-gradient(135deg, rgba(143,227,255,.55), rgba(199,155,255,.15) 35%, rgba(255,155,213,.5) 65%, rgba(255,227,143,.45)), url(assets/cartas/icone.jpg) center/cover;
  --rk-glow: 0 0 0 1px #3B2A7A, 0 0 32px rgba(170,120,255,.85); --rk-selo: linear-gradient(90deg, #8FE3FF, #C79BFF, #FF9BD5, #FFE38F); --rk-ink: #13201A; }
.pk-selo { display: inline-block; background: var(--rk-selo); color: var(--rk-ink); border-radius: 999px; padding: 2px 10px; font: 800 14px/1.3 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.pk-fichas { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.08); border-radius: 999px; padding: 6px 12px; transition: background .3s, color .3s; }
.pk-fichas b { font: 800 20px/1 var(--display); font-variant-numeric: tabular-nums; }
.pk-fichas b small { font: 600 14px var(--body); }
.pk-fichas.lit { background: var(--gold); color: var(--ink); }
.pk-tile { position: relative; display: block; aspect-ratio: 1 / 1.12; border-radius: 14px; padding: 4px; box-sizing: border-box; background: var(--rk-frame); box-shadow: var(--rk-glow); }
.pk-tile .pk-in, .pk-card .pk-in { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 10px; overflow: hidden; position: relative;
  background: radial-gradient(circle at 50% 40%, #1E6B45, #0B2E20 75%); }
.rk-lendario .pk-in { background: radial-gradient(circle at 50% 40%, #3A2A7A, #120A2A 75%); }
.pk-tile .pk-in img { width: 86%; height: 86%; object-fit: contain; }
.pk-tile .pk-in { position: absolute; inset: 4px; width: auto; height: auto; }
.pk-tile.locked .pk-in { inset: 2px; }
.pk-tile.locked { background: rgba(255,255,255,.03); box-shadow: none; border: 2px dashed var(--rk); padding: 2px; }
.pk-tile.locked .pk-in img { filter: brightness(0) invert(1); opacity: .16; }
.pk-new { position: absolute; top: -14px; right: -18px; transform: rotate(10deg); background: var(--red); color: #fff; border-radius: 8px; padding: 6px 14px; font: 800 22px/1 var(--display);
  letter-spacing: .08em; box-shadow: 0 0 0 3px var(--paper), 0 4px 10px rgba(0,0,0,.3); z-index: 2; }
.pk-new.sm { top: -8px; right: -6px; transform: none; border-radius: 999px; padding: 2px 8px; font-size: 14px; box-shadow: none; }

/* Envelope de figurinha */
.pk-pack { position: relative; width: 170px; height: 236px; filter: drop-shadow(0 14px 18px rgba(0,0,0,.45)); }
.pk-env { position: absolute; inset: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(112deg, rgba(255,255,255,0) 28%, rgba(255,255,255,.26) 40%, rgba(255,255,255,0) 52%), repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 17px, rgba(0,0,0,.06) 17px 34px), linear-gradient(180deg, #1F7C49, #0F3D2A 70%, #0B2E20);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/10px 51% repeat-x, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top/10px 51% repeat-x;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/10px 51% repeat-x, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top/10px 51% repeat-x; }
.pk-seal { position: absolute; left: 0; right: 0; top: 0; height: 26px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.2) 0 2px, rgba(0,0,0,.22) 2px 4px), linear-gradient(180deg, #23834F, #1D7646); }
.pk-seal.b { top: auto; bottom: 0; height: 22px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.2) 0 2px, rgba(0,0,0,.22) 2px 4px); }
.pk-k { font: 700 14px/1 var(--display); letter-spacing: .24em; color: #8FD6AE; }
.pk-logo { font: 800 42px/.9 var(--display); color: var(--gold); letter-spacing: .01em; }
.pk-band { align-self: stretch; height: 30px; background: url(assets/cartas/dourada.jpg) center/cover; display: grid; place-items: center; font: 800 15px/1 var(--display); letter-spacing: .16em; color: var(--ink); }
.pk-s { font: 600 14px/1 var(--body); color: #CFE0D4; }
.pk-pack.mini { width: 40px; height: 56px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); }
.pk-pack.mini .pk-env { gap: 2px; -webkit-mask-size: 4px 51%, 4px 51%; mask-size: 4px 51%, 4px 51%; }
.pk-pack.mini .pk-k, .pk-pack.mini .pk-s, .pk-pack.mini .pk-seal { display: none; }
.pk-pack.mini .pk-logo { font-size: 10px; }
.pk-pack.mini .pk-band { height: 8px; font-size: 0; }

/* Tela de abrir */
.pk-wrap { position: fixed; inset: 0; z-index: 70; overflow: hidden; background: radial-gradient(circle at 50% 40%, #1B5E3D, #0B2E20 72%); color: var(--paper); cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent; animation: fade-in .25s ease; }
.pk-wrap.out { opacity: 0; transition: opacity .2s; }
.pk-dim { position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, #241850, #050B08 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.pk-wrap.dark .pk-dim { opacity: .92; }
.pk-rays { position: absolute; left: 50%; top: 38%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: repeating-conic-gradient(from 0deg, rgba(180,140,255,.18) 0 7deg, rgba(0,0,0,0) 7deg 18deg); -webkit-mask: radial-gradient(closest-side, #000, #0000); mask: radial-gradient(closest-side, #000, #0000); }
.pk-wrap.rays .pk-rays { opacity: 1; animation: pk-spin 12s linear infinite; }
@keyframes pk-spin { to { transform: rotate(360deg); } }
.pk-top { position: absolute; left: 16px; right: 16px; top: calc(16px + env(safe-area-inset-top, 0px)); display: flex; justify-content: space-between; align-items: center; min-height: 44px; z-index: 3; }
.pk-skip { border: 0; cursor: pointer; color: var(--paper); background: rgba(255,255,255,.1); border-radius: 999px; padding: 0 14px; height: 44px; font: 700 15px/1 var(--display); }
.pk-stage { position: relative; z-index: 1; height: 100%; max-width: 480px; margin: 0 auto; box-sizing: border-box; padding: calc(84px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: center; }
.pk-eyebrow { align-self: flex-start; font: 600 12px var(--display); letter-spacing: .14em; text-transform: uppercase; color: #8FD6AE; }
.pk-holder { position: relative; margin: auto 0; }
.pk-halo { position: absolute; left: -110px; top: -90px; width: 390px; height: 416px; border-radius: 50%; opacity: 0; pointer-events: none; }
.pk-leak { position: absolute; left: 4px; right: 4px; top: 16px; height: 18px; border-radius: 50%; filter: blur(5px); opacity: 0; }
.pk-flash { position: absolute; width: 460px; height: 460px; border-radius: 50%; opacity: 0; pointer-events: none; z-index: 1; }
.pk-idle { align-self: stretch; display: flex; flex-direction: column; gap: 16px; }
.pk-idle > b { text-align: center; font: 800 26px/1 var(--display); }
.pk-box { background: rgba(0,0,0,.28); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.pk-odds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 15px; }
.pk-odds span { display: flex; align-items: center; gap: 8px; }
.pk-odds i { width: 12px; height: 12px; border-radius: 3px; background: var(--rk); }
.pk-odds b { margin-left: auto; }
.pk-pity { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: #CFE0D4; }
.pk-pity > div:first-child { display: flex; justify-content: space-between; }
.pk-pity > div b { color: var(--paper); }
.pk-bars { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
.pk-bars i { height: 6px; border-radius: 2px; background: rgba(255,255,255,.14); }
.pk-bars i.on { background: #B48CFF; }
.pk-card { position: relative; width: 230px; height: 262px; margin-top: 50px; border-radius: 20px; padding: 6px; box-sizing: border-box; background: var(--rk-frame); box-shadow: var(--rk-glow); }
.pk-card .pk-in { border-radius: 15px; }
.pk-card .pk-in img { width: 88%; height: 88%; object-fit: contain; }
.pk-sheen { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.45) 45%, rgba(255,255,255,0) 55%); transform: translateX(-120%); }
.pk-info { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; margin-top: 24px; }
.pk-lend { font: 800 44px/1 var(--display); letter-spacing: .06em; background: linear-gradient(90deg, #8FE3FF, #C79BFF, #FF9BD5, #FFE38F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pk-rep { background: rgba(255,255,255,.14); border-radius: 8px; padding: 6px 14px; font: 800 20px/1 var(--display); letter-spacing: .08em; }
.pk-name { font: 800 34px/1 var(--display); }
.pk-desc { font-size: 15px; color: #CFE0D4; }
.pk-foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; font: 700 17px/1 var(--display); color: #CFE0D4; }
.pk-dots { display: flex; gap: 8px; }
.pk-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); }
.pk-dots i.on { background: var(--paper); }
.pk-parts { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 2; }
.pk-parts i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; opacity: 0; }
.pk-tk { position: absolute; left: 0; top: 0; width: 34px; height: 34px; z-index: 4; pointer-events: none; opacity: 0; }
.pk-res { align-self: stretch; display: flex; flex-direction: column; gap: 16px; height: 100%; cursor: default; }
.pk-h { font: 800 38px/1 var(--display); }
.pk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pk-grid:has(> .pk-t:only-child) { grid-template-columns: minmax(0, 150px); justify-content: center; text-align: center; }
.pk-t { display: flex; flex-direction: column; gap: 8px; }
.pk-t > b { font: 700 16px/1.1 var(--display); }
.pk-t.dup .pk-tile { opacity: .55; box-shadow: none; }
.pk-plus { font: 700 15px/1 var(--display); color: var(--gold); }
.pk-res .pk-pity { background: rgba(0,0,0,.25); border-radius: 14px; padding: 12px 14px; }
.pk-acts { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.pk-acts .link-btn { align-self: center; min-height: 44px; font-size: 16px; padding: 0 12px; }
@media (prefers-reduced-motion: reduce) { .pk-wrap.rays .pk-rays { animation: none; } }

/* Fim de carreira: pacotinhos ganhos */
.pk-won { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; border: 1.5px solid rgba(242,194,48,.55); background: rgba(242,194,48,.06); border-radius: 16px; padding: 14px; margin: 12px 0; }
.pk-won-art { position: relative; width: 62px; height: 66px; }
.pk-won-art .pk-pack { position: absolute; left: 4px; top: 4px; transform: rotate(-6deg); z-index: 1; }
.pk-won-art .pk-pack.back { left: 18px; top: 0; transform: rotate(8deg); z-index: 0; }
.pk-won-txt b { display: block; font: var(--t-h2); }
.pk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pk-chips span { background: rgba(255,255,255,.1); border-radius: 999px; padding: 3px 10px; font-size: 14px; white-space: nowrap; }
.pk-chips em { font-style: normal; color: var(--gold); font-weight: 700; }
.pk-won .btn { grid-column: 1 / -1; margin: 0; }
.pk-won small { grid-column: 1 / -1; text-align: center; color: #CFE0D4; font-size: 14px; }

/* Tela inicial: um bloco só para pacotinhos, pênalti e meus itens */
.hb { background: rgba(255,255,255,.06); border-radius: 16px; padding: 4px 12px; display: flex; flex-direction: column; }
.hb-row { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; min-height: 64px; border: 0; background: none; color: var(--paper); text-align: left; padding: 6px 0; cursor: pointer; }
.hb-row + .hb-row { border-top: 1px solid rgba(255,255,255,.08); }
.hb-art { position: relative; width: 48px; height: 52px; display: grid; place-items: center; }
.hb-art img { width: 44px; height: 44px; border-radius: 10px; background: radial-gradient(circle at 50% 40%, #1E6B45, #0B2E20 75%); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.2); }
.hb-badge { position: absolute; top: -4px; left: -6px; min-width: 22px; height: 22px; border-radius: 999px; background: var(--red); color: #fff; font: 800 14px/22px var(--display); font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--pitch); }
.hb-t b { display: block; font: var(--t-item); }
.hb-t b small { font: 600 14px var(--body); color: #CFE0D4; }
.hb-t > small { display: block; font-size: 14px; color: #8FD6AE; }
.hb-go { border-radius: 10px; padding: 9px 14px; font: 800 16px/1 var(--display); box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.hb-go.gold { background: var(--gold); color: var(--ink); box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.hb-chev .ico { width: 22px; height: 22px; color: #CFE0D4; }
.hb-bar { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); margin-top: 6px; }
.hb-bar em { display: block; height: 100%; border-radius: 2px; background: #8FD6AE; }

/* Meus itens */
.mi-top { display: flex; justify-content: space-between; align-items: center; }
.mi-top .back-link { margin: 0; }
.mi-prog { display: grid; grid-template-columns: 1fr auto; gap: 6px; font-size: 14px; color: #CFE0D4; margin: 4px 0 12px; }
.mi-prog b { color: var(--paper); font: 700 16px var(--display); }
.mi-prog i { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); }
.mi-prog em { display: block; height: 100%; border-radius: 2px; background: #8FD6AE; }
.mi-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 0 16px; }
.mi-tabs button { flex: none; min-height: 40px; border: 0; border-radius: 999px; padding: 0 14px; background: rgba(255,255,255,.1); color: var(--paper); font: 700 15px var(--display); cursor: pointer; }
.mi-tabs button small { font: 600 13px var(--body); opacity: .8; }
.mi-tabs button.on { background: var(--paper); color: var(--ink); }
.mi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; }
.mi-t { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; border: 0; background: none; color: var(--paper); text-align: left; padding: 0; cursor: pointer; }
.mi-t > b { font: 700 15px/1.1 var(--display); }
.mi-t .pk-tile { width: 100%; }
.mi-lock { position: absolute; right: 6px; bottom: 6px; }
.mi-fx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.mi-fx .mi-t { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; background: rgba(255,255,255,.06); border-radius: 12px; padding: 8px; }
.mi-fx .mi-t .pk-tile { grid-row: span 2; width: 52px; }
.mi-fx .pk-selo { justify-self: start; font-size: 13px; }
.mi-note { margin: 14px 0 !important; }
.nb-leg { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; margin: 4px 0 10px; }
.nb-leg span { display: inline-flex; align-items: center; gap: 6px; }
.nb-leg i { width: 12px; height: 12px; border-radius: 3px; border: 1.5px dashed var(--rk); }
.nb-leg i.on { background: var(--paper); border: 0; }
.nb-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.nb-c { height: 44px; border-radius: 9px; border: 2px dashed var(--rk); background: rgba(255,255,255,.03); color: var(--rk); font: 800 18px/1 var(--display); cursor: pointer; padding: 0; }
.nb-c.on { background: var(--paper); color: var(--ink); border-style: solid; }
.nb-c.sel { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* Troca de fichas (folha de baixo) */
.tr-sheet { width: 100%; max-width: 480px; background: #15583A; border-radius: 22px 22px 0 0; padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; color: var(--paper); }
.tr-grab { align-self: center; width: 40px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); }
.tr-head { display: flex; justify-content: space-between; align-items: center; }
.tr-head b { font: var(--t-h1); }
.tr-item { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.tr-item > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tr-item > div b { font: var(--t-h2); }
.tr-item > div > span:last-child { font-size: 14px; color: #CFE0D4; }
.tr-prev { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.6); border-radius: 4px; padding: 2px 6px; font: 800 12px/1.2 var(--display); letter-spacing: .1em; }
.tr-math { background: rgba(0,0,0,.2); border-radius: 12px; padding: 4px 12px; }
.tr-math > div { display: flex; justify-content: space-between; align-items: center; min-height: 34px; font-size: 15px; color: #CFE0D4; }
.tr-math b { color: var(--paper); font: 800 20px var(--display); display: inline-flex; align-items: center; gap: 4px; }
.tr-after { border-top: 1px solid rgba(255,255,255,.1); }
.tr-sheet .btn { margin: 0; }
.tr-sheet .btn.tr-short:disabled { opacity: 1; background: rgba(255,255,255,.12); color: var(--paper); box-shadow: none; }
.tr-sheet .link-btn { align-self: center; min-height: 40px; font-size: 16px; padding: 0 12px; }
.tr-costs { margin: 0; text-align: center; font-size: 14px; color: #CFE0D4; }

/* Criação com cadeados: número com raridade, grade de números, peças travadas e prévia */
button.cc-num { width: auto; display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--rk); border-radius: 10px; padding: 2px 10px 2px 8px; background: rgba(0,0,0,.18); color: inherit; cursor: pointer; min-height: 44px; }
button.cc-num b { font: 800 34px/1 var(--display); }
button.cc-num span { display: flex; flex-direction: column; align-items: flex-start; font: 600 14px/1.1 var(--body); opacity: .9; }
button.cc-num small { font: 700 12px/1 var(--display); letter-spacing: .06em; opacity: .7; align-self: flex-start; margin-top: 6px; }
.cc-caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; opacity: .75; }
/* Nome editável: lápis ao lado, sem precisar de dica */
.cc-name-w { position: relative; width: 100%; display: block; cursor: text; }
.cc-name-w .cc-name { padding: 6px 36px; }
.cc-name-w .ico { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); opacity: .7; pointer-events: none; }
.cc-name-w .cc-name-dice { position: absolute; left: 2px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.cc-name-w .cc-name-dice:active { transform: translateY(-50%) rotate(-20deg) scale(.92); }
/* Botão fixo no rodapé: o conteúdo some num degradê atrás dele em vez de aparecer cortado em volta */
.inv-bar.fade::before { content: ''; position: absolute; z-index: -1; left: -16px; right: -16px; top: -44px; bottom: calc(-10px - env(safe-area-inset-bottom, 0px)); background: linear-gradient(to bottom, rgba(15, 61, 42, 0), var(--pitch) 40px); pointer-events: none; }
button.cc-num em { font: 800 13px/1.1 var(--display); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--rk); }
.nb-sheet { max-height: 88vh; }
.nb-scroll { overflow-y: auto; margin: 0 -16px; padding: 0 16px; }
.nb-count { font-size: 14px; color: #CFE0D4; }
.nb-sec { font: 600 12px var(--display); letter-spacing: .14em; text-transform: uppercase; color: #8FD6AE; margin: 12px 0 6px; }
.nb-sec.first { margin-top: 2px; }
.nb-sheet .nb-leg { margin-top: 14px; }
.cr-chips button.lock { background: transparent; border: 1.5px dashed var(--rk); color: #E9F1EC; }
.cr-chips button.lock .tw { width: 14px; height: 14px; vertical-align: -2px; }
.cr-chips button.pv, .cr-sw button.pv i { box-shadow: 0 0 0 2px var(--rk), 0 0 12px var(--rk); }
.cr-sw button.lock i { opacity: .55; outline: 1.5px dashed var(--rk); outline-offset: 2px; }
.cr-prev { position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--paper); color: var(--ink); border-radius: 6px; padding: 3px 8px; font: 800 13px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.lk-note { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; background: var(--paper); color: var(--ink); border-radius: 14px; padding: 12px; margin-bottom: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35); border-left: 5px solid var(--rk); animation: fade-in .2s; }
.lk-note b { display: block; font: 700 18px/1.15 var(--display); }
.lk-note small { display: block; font-size: 14px; color: #4F5C55; margin-top: 2px; }
.lk-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lk-acts button { min-height: 40px; border-radius: 10px; padding: 0 14px; font: 800 16px/1 var(--display); cursor: pointer; border: 2px solid var(--ink); background: transparent; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.lk-acts .lk-open { background: var(--gold); border-color: var(--gold); }
.lk-note.in-sheet { margin: 10px 0 0; }

/* Pênalti da sorte */
.pen-stage { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 3px 0 rgba(0,0,0,.35); margin-top: 8px; user-select: none; -webkit-user-select: none; }
.pen-stage .kick-svg { display: block; width: 100%; height: auto; }
.pen-c { position: absolute; width: 14%; aspect-ratio: 46 / 52; transform: translate(-50%, -50%); border: 1.5px solid #F2C230; border-radius: 9px; padding: 0; cursor: pointer;
  background: linear-gradient(180deg, #1F7C49, #0F3D2A); box-shadow: 0 4px 10px rgba(0,0,0,.35); display: grid; place-items: center; color: #F2C230; transition: transform .2s; z-index: 2; }
.pen-c:active, .pen-c.aim { transform: translate(-50%, -50%) scale(1.08); }
.pen-q { font: 800 28px/1 var(--display); }
.pen-c.open { background: var(--paper); border-color: var(--pc); border-width: 3px; color: var(--ink); animation: pen-flip .35s ease; }
.pen-c.open.won { box-shadow: 0 0 0 3px var(--gold), 0 0 20px rgba(242,194,48,.8); }
.pen-c.open.miss { opacity: .6; }
.pen-p { font: 800 13px/1.05 var(--display); text-align: center; padding: 0 3px; }
@keyframes pen-flip { from { transform: translate(-50%, -50%) rotateY(90deg); } to { transform: translate(-50%, -50%) rotateY(0); } }
.pen-banner { position: absolute; left: 50%; top: 12%; transform: translate(-50%, 0) scale(.6); opacity: 0; padding: 6px 18px; border-radius: 999px; background: var(--gold); color: var(--ink); font: 800 30px/1 var(--display); letter-spacing: .04em; z-index: 3; pointer-events: none; transition: transform .25s cubic-bezier(.2,1.4,.4,1), opacity .2s; }
.pen-banner.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.pen-banner.bad { background: #F8D3D6; color: #8E1B24; }
.pen-box { background: rgba(0,0,0,.25); border-radius: 14px; padding: 12px 14px; margin: 12px 0; }
.pen-leg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 15px; }
.pen-leg span { display: flex; align-items: center; gap: 8px; }
.pen-leg i { width: 12px; height: 12px; border-radius: 3px; }
.pen-leg b { margin-left: auto; }
.pen-note { margin: 10px 0 0; font-size: 14px; color: #CFE0D4; }
#pen-hint:disabled { opacity: 1; background: var(--gold); color: var(--ink); }
.pen-res { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: rgba(255,255,255,.06); border-radius: 16px; padding: 16px; margin-bottom: 12px; animation: fade-in .3s; }
.pen-rt { font: var(--t-h2); }
.pen-tile { width: 120px; }
.pen-name { font: 800 26px/1 var(--display); }
.pen-sub { font-size: 15px; color: #CFE0D4; }
.pen-fichas { display: flex; align-items: center; gap: 10px; font: 800 30px/1 var(--display); color: var(--gold); }
.pen-pack .pk-pack.mini { transform: scale(1.8); margin: 26px 0; }
.pen-wait { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 20px 0; padding: 26px 0; border-radius: 50%; aspect-ratio: 1; max-width: 260px; margin-inline: auto; justify-content: center;
  border: 3px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); }
.pen-wait span, .pen-wait small { font-size: 15px; color: #CFE0D4; }
.pen-wait b { font: 800 44px/1 var(--display); font-variant-numeric: tabular-nums; }
.pen-mean { display: flex; flex-direction: column; gap: 6px; }
.pen-mean b { font: var(--t-item); }
.pen-mean span { font-size: 15px; color: #CFE0D4; }
.pen-mean .btn { margin: 6px 0 0; }
.acc-legal { text-align: center; margin-top: 4px; }
.acc-legal a { color: inherit; text-underline-offset: 3px; }
/* Escolha de característica: aviso de atributo já no 99 */
.choice .d .cap-note { display: inline-block; margin-top: 4px; color: #8A6400; font-weight: 700; }
.prep-note .cap-note { color: var(--gold); font-weight: 700; }

/* Conta: reiniciar progresso */
.acc-reset { margin-top: 22px; padding: 14px; border-radius: 14px; border: 1.5px solid rgba(216,64,74,.45); background: rgba(216,64,74,.07); }
.acc-reset b { display: block; font: var(--t-item); }
.acc-reset p { margin: 4px 0 10px; font-size: 14px; color: #CFE0D4; }
.acc-reset .btn { margin: 0; }
.btn.ghost.acc-danger { color: #FFB3B9; box-shadow: inset 0 0 0 2px rgba(216,64,74,.7); }
/* Assinatura da carta: grade 2x3 na criação e arte do item nos pacotinhos */
.sig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sig-b { min-height: 72px; padding: 6px 8px; border: 2px solid transparent; border-radius: 14px; background: rgba(255, 255, 255, .08); color: var(--paper); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; overflow: hidden; }
.sig-b span { font-size: 26px; line-height: 1.25; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.sig-b small { font: 700 13px var(--body); opacity: .75; }
.sig-b.on { border-color: #F2C230; background: rgba(242, 194, 48, .12); }
.sig-b.lock { border: 1.5px dashed var(--rk); }
.sig-b.lock span { opacity: .55; }
.sig-b.pv { border-style: solid; }
.fin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fin-b { position: relative; padding: 6px 4px; border: 2px solid transparent; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--paper); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.fin-lk { position: absolute; top: 10px; right: 8px; }
.fin-b small { font: 700 11.5px var(--body); letter-spacing: -.01em; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.fin-b.on { border-color: #F2C230; background: rgba(242, 194, 48, .12); }
.fin-b.lock { border: 1.5px dashed var(--rk); }
.fin-b.lock .fin-sw { opacity: .45; }
.fin-sw { display: block; width: 100%; aspect-ratio: 2 / 3; border-radius: 8px; background: center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.fin-sw.std { background: linear-gradient(135deg, #8E5429, #F2C9A0 30%, #A3AEBA 55%, #F7E39A 80%, #7C5A10); }
.pk-in img.fin-art { width: 58%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 255, 255, .2); }
.pk-tile.locked .pk-in img.fin-art { filter: grayscale(1); opacity: .3; }
.sig-art { font-size: 22px; line-height: 1.2; color: #F4EBD2; transform: rotate(-8deg); white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; padding: 4px; }
.pk-card .sig-art { font-size: 40px; }
.pk-tile.locked .sig-art { opacity: .3; }
/* Fim de carreira enxuto: nota, edição da carta, compartilhar, pacotinhos; o resto no resumo fechado */
.fin-sum { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(0, 0, 0, .22); }
.fin-sum .grade { width: 52px; height: 60px; font-size: 42px; border-radius: 12px; }
.fin-sum b { display: block; font: 800 20px/1.15 var(--display); color: #fff; }
.fin-sum span { display: block; font: 600 14px var(--body); color: #B9CDBF; margin-top: 2px; }
.ed-box { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .06); }
.ed-t { font: 800 20px var(--display); color: #fff; }
.ed-tabs { padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .25); display: flex; gap: 4px; }
.ed-tabs button { flex: 1; height: 38px; border: 0; border-radius: 999px; background: transparent; color: #CDEFD9; font: 700 16px var(--display); cursor: pointer; }
.ed-tabs button.on { background: var(--paper); color: var(--ink); }
.ed-box .sig-msg { margin: 0; }
.fin-acts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.fin-acts .btn { margin: 0; }
details.fin-more { background: rgba(255, 255, 255, .06); border-radius: 16px; padding: 4px 12px; }
details.fin-more > summary { cursor: pointer; list-style: none; padding: 12px 0; font: 700 17px var(--display); color: #E9F1EC; display: flex; align-items: center; gap: 8px; }
details.fin-more > summary::-webkit-details-marker { display: none; }
details.fin-more > summary::after { content: '▾'; margin-left: auto; }
details.fin-more[open] > summary::after { content: '▴'; }
details.fin-more > summary em { font: 700 12px var(--body); font-style: normal; color: var(--ink); background: var(--gold); border-radius: 999px; padding: 2px 8px; }
details.fin-more[open] { display: flex; flex-direction: column; gap: 12px; padding-bottom: 12px; }
.fin-links { display: flex; gap: 8px; }
.fin-links button { flex: 1; }
.fin-links button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .08); color: #E9F1EC; font: 700 14px var(--display); cursor: pointer; }
/* Dicas da primeira experiência (ui/tips.js) */

/* Treino dos lances: por cima da tela atual */
.trn-wrap { position: fixed; inset: 0; z-index: 75; background: var(--pitch); color: var(--paper); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.trn { max-width: 480px; margin: 0 auto; padding: 14px 16px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.trn-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: env(safe-area-inset-top); }
.trn-head b { font: 800 18px/1.2 var(--display, inherit); color: #fff; display: flex; align-items: center; gap: 8px; }
.trn .lead { margin: 0; }
.trn-steps { margin: 0; padding: 14px 16px 14px 34px; background: rgba(255,255,255,.08); border-radius: 14px; color: #E9F2EC; display: grid; gap: 8px; font: 500 15px/1.4 var(--body, inherit); }
.trn-tip { margin: 0; color: #CFE3D6; font: 600 14px/1.35 var(--body, inherit); text-align: center; }
.trn-score { margin: 6px 0 0; font: 700 13px/1.2 var(--body, inherit); opacity: .75; }
.trn-menu { display: grid; gap: 8px; }
.mom-train { align-self: center; min-height: 40px; font-size: 14px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; }

/* Post e detalhe da taça: fechar no topo e botão fixo embaixo (sem rolar até o fim) */
.sp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sp-x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.sp-x svg { width: 20px; height: 20px; }
.sp-sticky { position: sticky; bottom: 0; padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, var(--pitch) 35%); z-index: 2; }
.sl-sheet { position: relative; }
.sl-sh-x { position: sticky; top: 0; align-self: flex-end; margin: -4px -6px -50px 0; z-index: 3; background: rgba(27, 26, 23, .55); }
.sl-sh-foot { position: sticky; bottom: calc(-22px - env(safe-area-inset-bottom, 0px)); padding: 10px 0 calc(22px + env(safe-area-inset-bottom, 0px)); margin-bottom: calc(-22px - env(safe-area-inset-bottom, 0px)); background: inherit; z-index: 2; }

/* Novidades da versão */
.news-list { display: grid; gap: 12px; margin: 4px 0 14px; }
.news-it { display: flex; gap: 12px; align-items: flex-start; }
.news-it b { display: block; font: 800 15px/1.25 var(--body); }
.news-it small { display: block; opacity: .8; font: 500 13px/1.35 var(--body); margin-top: 2px; }

/* Opinião do jogador (ui/feedback.js) */
.fb { display: flex; flex-direction: column; gap: 14px; }
.fb .lead { margin: 0; }
.fb-q { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.05); }
.fb-q b { font: 800 16px var(--display); }
.fb-q small { color: #93AD9D; font-size: 12px; margin-top: -6px; }
.fb-rate { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.fb-rate button { border: 0; background: rgba(255,255,255,.06); border-radius: 12px; padding: 8px 0; display: grid; place-items: center; opacity: .55; transition: transform .12s, opacity .12s; }
.fb-rate button.on { opacity: 1; background: rgba(255,214,90,.18); box-shadow: inset 0 0 0 2px var(--gold); transform: scale(1.06); }
.fb-likes { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-likes button { border: 0; border-radius: 999px; padding: 8px 12px; background: rgba(255,255,255,.08); color: var(--paper); font: 700 14px var(--body); }
.fb-likes button.on { background: var(--gold); color: #10301F; }
.fb-q textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 70px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.25); color: var(--paper); font: 500 15px/1.35 var(--body); padding: 10px; }
.fb-q textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.fb-msg { margin: 0; min-height: 1em; color: #FFB4A2; font-size: 14px; }
.fb-msg.ok { color: #B9CDBF; }
.fb-card { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; background: rgba(255,255,255,.06); color: var(--paper); box-shadow: inset 0 0 0 1px rgba(242,194,48,.35); }
.fb-card > div { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.fb-card > div b { font: 800 17px var(--display); }
.fb-card > div span { grid-column: 2; color: #B9CDBF; font-size: 14px; }
.fb-card.done { opacity: .9; }
/* Opinião em destaque: borda dourada e brilho leve até a primeira resposta */
.fb-home { width: 100%; box-shadow: inset 0 0 0 2px var(--gold); background: rgba(242,194,48,.12); }
.fb-home b { color: var(--gold); }
.fb-home:not(.done), .fb-card:not(.done) { animation: fb-glow 2.4s ease-in-out infinite; }
.fb-home.done { box-shadow: inset 0 0 0 1px rgba(242,194,48,.4); background: rgba(255,255,255,.05); }
.fb-card:not(.done) { box-shadow: inset 0 0 0 2px var(--gold); background: rgba(242,194,48,.12); }
.btn.ghost.fb-btn { box-shadow: inset 0 0 0 2px var(--gold); color: var(--gold); margin-top: 10px; }
@keyframes fb-glow { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 8px rgba(242,194,48,.45)); } }
@media (prefers-reduced-motion: reduce) { .fb-home, .fb-card { animation: none !important; } }

/* Desafio "bata minha nota" (ui/challenge.js) */
.dz-home { position: relative; background: rgba(242,194,48,.12); color: var(--paper); box-shadow: inset 0 0 0 2px var(--gold); margin: 4px 0 14px; }
.dz-home p { margin: 8px 0 0; color: #D3E4D9; font-size: 14px; }
.dz-x { position: absolute; top: 8px; right: 8px; border: 0; background: rgba(255,255,255,.1); color: #fff; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.dz-x .ico { width: 14px; height: 14px; }
.dz-top, .dz-res { display: flex; gap: 10px; align-items: center; }
.dz-top small, .dz-res small { display: block; color: #8FD6AE; font: 700 12px var(--body); letter-spacing: .08em; text-transform: uppercase; }
.dz-top b, .dz-res b { display: block; font: 800 20px/1.1 var(--display); padding-right: 30px; }
.dz-top span, .dz-res span { display: block; color: #D3E4D9; font-size: 13px; margin-top: 2px; }
.dz-res { background: rgba(255,255,255,.06); color: var(--paper); margin: 14px 0 0; }
.dz-res.win { box-shadow: inset 0 0 0 2px var(--gold); background: rgba(242,194,48,.14); }
.dz-res.win b { color: var(--gold); }
.btn.ghost.dz-btn { margin-top: 12px; width: 100%; }

/* Computador com mouse (html.desk, ligado por ui/desktop.js) */
.desk { scrollbar-color: rgba(255,255,255,.22) transparent; }
/* Lance maior: o campo sai da coluna e usa a altura da tela */
.desk .kick-stage { --kw: min(720px, 94vw, calc((100dvh - 240px) * 1.125)); width: var(--kw); max-width: none; margin-left: calc(50% - var(--kw) / 2); }
.desk .kick-help { font-size: 17px; margin-top: 6px; }
/* Janelas no meio da tela, com os quatro cantos arredondados */
.desk .cfg-wrap, .desk .sheet-wrap, .desk .sl-sheet-wrap { align-items: center; padding: 24px; }
.desk .cfg, .desk .sheet, .desk .sl-sheet, .desk .tr-sheet { border-radius: 20px; }
/* Passar o mouse */
.desk .btn:not(:disabled):hover { filter: brightness(1.07); }
.desk .btn.ghost:not(:disabled):hover { background: rgba(255,255,255,.06); }
.desk .hg:hover, .desk .cont-card:hover, .desk .choices .btn:hover { transform: translateY(-1px); }
.desk .fin-links button:hover, .desk .link-btn:hover { color: var(--gold); }
.desk-hint { text-align: center; color: #93AD9D; font-size: 13px; margin: 2px 0 0; }
/* Robôs do ranking */
.sh-parts b.neg { color: #E8857A; }

/* Câmera e efeitos dos minigames (cine.js) */
.k-cam { position: relative; transform-origin: 0 0; transition: filter .5s ease; }
.k-cam[data-grade="goal"] { filter: saturate(1.25) brightness(1.06) contrast(1.05); }
.k-cam[data-grade="miss"] { filter: saturate(.55) brightness(.85); }
.k-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.k-flashwhite { position: absolute; inset: 0; background: #FFFBE8; opacity: 0; pointer-events: none; z-index: 2; mix-blend-mode: screen; }
.k-flashwhite.on { animation: k-white .45s ease-out; }
.k-flashwhite.on.strong { animation-duration: .7s; }
@keyframes k-white { 0% { opacity: .85; } 100% { opacity: 0; } }
.kick-stage.cine .k-crowd g:nth-child(7n) { animation: k-sway 1.6s ease-in-out infinite alternate; transform-box: fill-box; }
.kick-stage.cine .k-crowd g:nth-child(11n) { animation: k-sway 1.1s ease-in-out infinite alternate-reverse; transform-box: fill-box; }
@keyframes k-sway { to { transform: translateY(-1.5px); } }
.kick-stage.cine .k-crowd.cheer g { animation: hop .32s ease-in-out 5 alternate; }
.k-beams { mix-blend-mode: screen; animation: k-beam 6s ease-in-out infinite alternate; }
@keyframes k-beam { to { opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .k-beams, .kick-stage.cine .k-crowd g { animation: none !important; } }

/* Origem e desafio na criação (engine/origins.js) */
.cr-chips button.lock { opacity: .55; }
.cr-chips button img { vertical-align: -3px; }
.cr-desc { margin: 6px 2px 0; font: 500 14px/1.35 var(--body); color: #CFE3D6; }
.ch-note { margin: 4px 0 8px; }
.facts .tag.ch-break { background: rgba(232, 92, 72, .2); color: #FFC7BD; }
.btn.opt .ch-warn { display: block; margin-top: 4px; font: 600 13px var(--body); color: #FFC7BD; }
.cr-chips.terms button { min-height: 36px; padding: 0 12px; font-size: 14px; }
.term-desc { margin-bottom: 10px; }

/* ===== Reta final: a corrida da liga na tela da temporada (ui/season.js) ===== */
.race { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 12px; padding: 10px 12px 8px; display: grid; gap: 4px; }
.race .rc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.race .rc-rd { font: 700 13px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--label, #8FD6AE); font-variant-numeric: tabular-nums; }
.race .rc-pos { font: 800 30px/1 var(--display); font-variant-numeric: tabular-nums; color: #fff; }
.race .rc-spark { width: 100%; height: 40px; display: block; overflow: visible; }
.race .rc-spark line { stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.race .rc-spark polyline { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.race .rc-spark circle { fill: var(--gold); }
.race .rc-lbl { margin: 0; font: 700 16px/1.3 var(--body); color: var(--text-2, #D3E4D9); }
.race .rc-lbl.up { color: #8FD6AE; }
.race .rc-lbl.down { color: #FF9AA2; }
.race.end .rc-lbl { font: 700 20px/1.25 var(--display); }
.race.end.win { border-color: var(--gold); background: rgba(242, 194, 48, 0.12); }
.race.end.win .rc-lbl { color: var(--gold); }
.race.end.miss .rc-lbl { color: #FF9AA2; }
.race.end { animation: mc-pop .5s ease; }

/* ===== Tabela do grupo na Copa e no Mundial (ui/worldcup.js) ===== */
.wc-tbl { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; }
.wc-tbl .wt-h, .wc-tbl .wt-r { display: grid; grid-template-columns: minmax(0, 1fr) 40px 52px; align-items: center; gap: 6px; }
.wc-tbl .wt-h { font: 700 12px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--label, #8FD6AE); padding-bottom: 4px; }
.wc-tbl .wt-h span + span, .wc-tbl .wt-r > :not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.wc-tbl .wt-r { font: 600 15px var(--body); padding: 4px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.wc-tbl .wt-r > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-tbl .wt-r i { display: inline-block; width: 18px; font-style: normal; color: var(--text-2, #D3E4D9); opacity: .7; }
.wc-tbl .wt-r.in i { color: var(--gold); opacity: 1; }
.wc-tbl .wt-r b { font: 800 18px var(--display); }
.wc-tbl .wt-r.me { color: var(--gold); }
.wc-tbl .wt-n { margin: 4px 0 0; font: 500 12px var(--body); color: var(--text-2, #D3E4D9); opacity: .8; }
.wc-game .oth { width: 100%; font: 500 13px var(--body); color: var(--muted); }

/* ===== Para a próxima: meta da carreira seguinte (ui/finale.js) ===== */
.fin-goal { margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: rgba(242, 194, 48, 0.10); border: 1px solid rgba(242, 194, 48, 0.35); display: grid; gap: 4px; }
.fin-goal .fg-h { font: 700 12px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.fin-goal p { margin: 0; font: 600 15px/1.35 var(--body); color: #fff; }
.fin-goal b { color: var(--gold); }

/* ===== Sequência de dias (ui/packs.js): calendariozinho na tela inicial e no fim de carreira ===== */
.sk { background: rgba(255, 255, 255, .06); border-radius: 16px; padding: 10px 12px 12px; display: grid; gap: 8px; }
.sk.fin { margin-top: 8px; border: 1px solid rgba(242, 194, 48, .35); }
.sk-h b { display: block; font: 800 18px/1.2 var(--display); color: #fff; }
.sk-h b em { font-style: normal; color: var(--gold); }
.sk-h small { display: block; font: 500 13px/1.3 var(--body); color: var(--text-2, #D3E4D9); margin-top: 2px; }
.sk-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.sk-d { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; background: rgba(0, 0, 0, .18); border: 1.5px solid transparent; opacity: .75; }
.sk-d .sk-wd { font: 600 11px var(--body); color: var(--text-2, #D3E4D9); white-space: nowrap; }
.sk-d b { font: 700 12px var(--body); color: #fff; white-space: nowrap; }
.sk-d.done { opacity: 1; background: rgba(34, 164, 93, .25); }
.sk-d.today { opacity: 1; border-color: var(--gold); }
.sk-d.today b { color: var(--gold); }

/* ===== Copa e Mundial: um jogo por vez (os anteriores viram fichinhas) ===== */
.wc-list > .wc-game:not(:last-child) { display: none; }
.wc-path { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.wc-path:empty { display: none; }
.wc-path .wp { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; background: var(--paper); color: var(--ink); border-left: 4px solid #9DB5A6; font: 600 12px var(--body); }
.wc-path .wp small { font: 700 10px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wc-path .wp b { font: 800 15px var(--display); }
.wc-path .wp i { font-style: normal; color: var(--muted); }
.wc-path .wp.w { border-left-color: #1FA35A; } .wc-path .wp.l { border-left-color: #C9303C; } .wc-path .wp.d { border-left-color: #F2C230; }
button.sk-d { font: inherit; color: inherit; cursor: pointer; }
.sk-d.claim { opacity: 1; background: rgba(242, 194, 48, .22); border-color: var(--gold); animation: sk-pulse 1.4s ease-in-out infinite; }
.sk-d.claim b { color: var(--gold); }
@keyframes sk-pulse { 50% { box-shadow: 0 0 0 4px rgba(242, 194, 48, .25); } }
.sk.won .sk-h small { color: var(--gold); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .sk-d.claim { animation: none; } }
.race .rc-tbl { display: grid; gap: 2px; }
.race .rt-r { display: grid; grid-template-columns: 22px 20px minmax(0, 1fr) 36px; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 8px; font: 600 14px var(--body); color: var(--text-2, #D3E4D9); }
.race .rt-r i { font-style: normal; font-variant-numeric: tabular-nums; opacity: .8; }
.race .rt-r span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.race .rt-r b { text-align: right; font: 800 16px var(--display); font-variant-numeric: tabular-nums; color: #fff; }
.race .rt-r.me { background: rgba(242, 194, 48, .16); color: var(--gold); }
.race .rt-r.me b { color: var(--gold); }
.race .rt-r.cut { border-bottom: 1.5px dashed rgba(255, 255, 255, .45); border-radius: 8px 8px 0 0; }
.race .rt-gap { text-align: center; font-size: 12px; line-height: 1; opacity: .5; }

/* De onde vieram minutos, gols e nota (tela da temporada) */
.src-card { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 12px; padding: 8px 12px; display: grid; gap: 6px; }
.src-card .sr-row { display: grid; gap: 3px; }
.src-card .sr-l { font: 700 12px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--label, #8FD6AE); }
.src-card .sr-l b { color: #fff; letter-spacing: 0; text-transform: none; font-size: 14px; }
.src-card .sr-cs { display: flex; flex-wrap: wrap; gap: 4px; }
.src-card .sr-c { font: 600 13px var(--body); color: var(--text-2, #D3E4D9); background: rgba(255, 255, 255, 0.06); border-radius: 6px; padding: 2px 6px; }
.src-card .sr-c b { font-weight: 800; }
.src-card .sr-c.up b { color: #8FD6AE; }
.src-card .sr-c.down b { color: #FF9AA2; }
.src-card .sr-c.sr-exp { background: none; border: 1px dashed rgba(255, 255, 255, .22); }

/* Pré-temporada: um toque aplica, "Desfazer" ao lado de "Seguir" */
.inv-bar { display: flex; gap: 8px; }
.inv-bar #b-undo { width: auto; flex: 0 0 auto; padding-left: 14px; padding-right: 14px; margin: 0; background: #1E3F30; color: #E8F1EA; }

/* Tela larga (computador ou tablet deitado): temporada e pré-temporada em 2 colunas (o celular fica igual) */
@media (min-width: 1000px) {
  #app:has(#screen > .s-hero), #app:has(#screen > .inv-bar) { max-width: 1040px; }
  /* Criar jogador: carta e botões de visual à esquerda, parados; posição, pé, país e "Começar" à direita */
  #screen:has(> .cc-side) { display: grid; grid-template-columns: 380px minmax(0, 1fr); grid-template-rows: repeat(24, auto) 1fr; column-gap: 32px; align-items: start; }
  #screen:has(> .cc-side) > * { grid-column: 2; }
  #screen:has(> .cc-side) > .cc-side { grid-column: 1; grid-row: 1 / -1; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; padding-top: 64px; align-items: center; }
  #screen:has(> .cc-side) > .back-link { justify-self: start; }
  /* Temporada: carta, números e mini tabela à esquerda; o resumo (jornal, comentário, detalhes, botões) à direita */
  #screen:has(> .s-hero) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(6, auto) 1fr; column-gap: 24px; align-items: start; }
  #screen:has(> .s-hero) > * { grid-column: 1; }
  #screen:has(> .s-hero) > #after { grid-column: 2; grid-row: 1 / -1; }
  /* Pré-temporada: a carta fica parada à esquerda; as escolhas à direita */
  #screen:has(> .inv-bar):not(:has(> .cc-side)) { display: grid; grid-template-columns: 400px minmax(0, 1fr); grid-template-rows: repeat(24, auto) 1fr; column-gap: 28px; align-items: start; }
  #screen:has(> .inv-bar):not(:has(> .cc-side)) > * { grid-column: 2; }
  #screen:has(> .inv-bar) > .mcard { grid-column: 1; grid-row: 1 / -1; }
}
.cc-side { display: contents; }
details.more .src-card { margin: 2px 0 8px; }

/* Monitor grande: o jogo inteiro um pouco maior, para ler de longe (celular, tablet e notebook de 768 px de altura ficam iguais).
   O zoom não corrige as unidades vh/svh/dvh, então as alturas que dependem da tela são divididas por --z aqui. */
@media (min-width: 1280px) and (min-height: 860px) {
  html.desk { zoom: var(--z); --z: 1.15; }
  html.desk #app { min-height: calc(100dvh / var(--z)); }
  html.desk #kick { min-height: calc(100svh / var(--z) - var(--bar-h, 0px) - 110px); }
  html.desk #screen.center { min-height: calc(100svh / var(--z) - var(--bar-h, 0px) - 90px); }
  html.desk .kick-stage { --kw: min(720px, 94vw, calc((100dvh / var(--z) - 240px) * 1.125)); }
  html.desk .sheet { height: min(calc(82vh / var(--z)), 700px); }
  html.desk .card3d-host.big { height: min(calc(62vh / var(--z)), 520px); }
  html.desk .cfg { max-height: calc(92svh / var(--z)); }
  html.desk .sl-case { min-height: calc(70vh / var(--z)); }
  html.desk .sl-sheet, html.desk .nb-sheet { max-height: calc(88vh / var(--z)); }
}
@media (min-width: 1600px) and (min-height: 1000px) { html.desk { --z: 1.3; } }

/* ---------- Animações de momento (src/ui/motion.js) ---------- */
.mo-wrap { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px max(16px, env(safe-area-inset-left, 0px));
  background: radial-gradient(120% 80% at 50% 35%, #145235, #082015 75%); animation: fade-in .2s ease; cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
.mo-wrap.out { opacity: 0; transition: opacity .2s; }
.mo-wrap.shake .mo-card { animation: mo-shake .35s ease; }
@keyframes mo-shake { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }
.mo-card { width: 100%; max-width: 420px; max-height: 100%; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.mo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mo-top small { display: block; font: var(--t-label); letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.mo-top b { font: var(--t-h1); color: var(--paper); }
.mo-stamp { width: 82px; height: 82px; flex: none; border-radius: 18px; display: grid; place-items: center; font: 800 58px/1 var(--display);
  background: var(--paper-2); color: var(--muted); transition: background .25s, color .25s; }
.mo-stamp.g-C { background: #C9D3CC; color: #33463B; } .mo-stamp.g-B { background: #D8E4F5; color: #24477E; }
.mo-stamp.g-A { background: #E9E0FA; color: #4B2E8F; } .mo-stamp.g-S { background: var(--gold); color: var(--ink); }
.mo-stamp.bump { animation: mo-bump .28s cubic-bezier(.3, 1.6, .5, 1); }
.mo-stamp.final { animation: mo-slam .55s cubic-bezier(.2, 1.4, .4, 1); box-shadow: 0 0 0 4px rgba(242, 194, 48, .35), 0 0 40px rgba(242, 194, 48, .5); }
@keyframes mo-bump { 45% { transform: scale(1.18) rotate(-4deg); } }
@keyframes mo-slam { 0% { transform: scale(2.1) rotate(-14deg); opacity: .2; } 60% { transform: scale(.92) rotate(3deg); opacity: 1; } 100% { transform: none; } }
.mo-total { display: flex; align-items: baseline; gap: 8px; color: var(--paper); }
.mo-total b { font: 800 52px/1 var(--display); font-variant-numeric: tabular-nums; }
.mo-total span { font: 700 15px var(--display); color: var(--label); letter-spacing: .06em; text-transform: uppercase; }
.mo-bar { position: relative; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .1); margin-bottom: 18px; }
.mo-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; background: linear-gradient(90deg, #6F8F7B, var(--gold)); }
.mo-tick { position: absolute; top: -4px; bottom: -4px; width: 2px; background: rgba(255, 255, 255, .35); }
.mo-tick em { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font: 700 12px var(--display); font-style: normal; color: var(--text-2); }
.mo-tick.hit { background: var(--gold); } .mo-tick.hit em { color: var(--gold); }
.mo-parts { list-style: none; margin: 0; padding: 12px 14px; background: var(--paper); color: var(--ink); border-radius: 16px; display: grid; gap: 6px; overflow: hidden; }
.mo-parts li { display: flex; justify-content: space-between; gap: 10px; font: var(--t-small); opacity: .18; transform: translateX(-6px); transition: opacity .2s, transform .2s; }
.mo-parts li.in { opacity: 1; transform: none; }
.mo-parts li span { min-width: 0; }
.mo-parts li b { font: 800 17px var(--display); font-variant-numeric: tabular-nums; flex: none; }
.mo-parts li b.neg { color: var(--red); }
.mo-verdict { min-height: 44px; font: 800 21px/1.1 var(--display); color: var(--gold); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.mo-verdict.in { opacity: 1; transform: none; }
.mo-verdict small { display: block; margin-top: 3px; font: 600 14px var(--body); color: var(--text-2); }
.mo-hint { margin: 0; text-align: center; font-size: 12px; color: var(--label); }
.mo-rcard { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mo-rk { font: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.mo-rcard h3 { margin: 0 0 16px; text-align: center; font: var(--t-h1); color: var(--paper); text-wrap: balance; }
/* Roleta: verde do tamanho exato da chance (--g), marcas a cada 10 números, aro claro */
.mo-wbox { --wd: min(270px, 68vw, 42svh); position: relative; width: var(--wd); aspect-ratio: 1; }
html.desk .mo-wbox { --wd: min(270px, 68vw, calc(42svh / var(--z, 1))); }
.mo-wheel { position: absolute; inset: 0; border-radius: 50%; will-change: transform;
  background: radial-gradient(circle, transparent 57%, rgba(0, 0, 0, .14) 57.5% 58.5%, transparent 59%),
    repeating-conic-gradient(rgba(255, 255, 255, .5) 0 .7deg, transparent .7deg 36deg),
    repeating-conic-gradient(rgba(0, 0, 0, .12) 0 .5deg, transparent .5deg 3.6deg),
    conic-gradient(#2BB868 0 var(--g), #1E8F50 var(--g) var(--g), #E04B55 var(--g) 360deg);
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 7px rgba(0, 0, 0, .35), 0 14px 40px rgba(0, 0, 0, .55), inset 0 0 0 3px rgba(0, 0, 0, .15); }
.mo-wheel::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .22), transparent 55%); }
.mo-wl { position: absolute; left: 50%; top: 50%; font: 800 clamp(20px, 6vw, 26px) var(--display); color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--wd) * -.37)); }
.mo-pin { position: absolute; z-index: 2; left: 50%; top: -14px; width: 26px; height: 32px; margin-left: -13px; background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 100% 45%, 50% 100%, 0 45%); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5)); }
.mo-hub { position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: var(--ink); color: var(--paper); box-shadow: 0 0 0 4px var(--paper), 0 6px 16px rgba(0, 0, 0, .4); transition: background .15s; }
.mo-hub b { font: 800 clamp(34px, 11vw, 46px)/1 var(--display); }
.mo-hub.w b { color: #6EE7A0; } .mo-hub.l b { color: #FF8A92; }
.mo-roll.is-ok .mo-hub { background: var(--green); } .mo-roll.is-ko .mo-hub { background: var(--red); }
.mo-roll.is-ok .mo-hub b, .mo-roll.is-ko .mo-hub b { color: #fff; }
.mo-roll.is-ok .mo-hub, .mo-roll.is-ko .mo-hub { animation: mo-pop .35s ease; }
.mo-roll.is-ok .mo-pin, .mo-roll.is-ko .mo-pin { animation: mo-nod .4s ease; }
@keyframes mo-pop { 40% { transform: translate(-50%, -50%) scale(1.14); } }
@keyframes mo-nod { 30% { transform: translateY(5px); } }
.mo-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 13px; color: var(--text-2); margin-top: 6px; }
.mo-keys span { display: inline-flex; align-items: center; gap: 6px; }
.mo-keys i { width: 10px; height: 10px; border-radius: 3px; background: #2BB868; } .mo-keys .l i { background: #E04B55; }
.mo-out { min-height: 1.4em; margin: 0; font: 700 18px var(--display); color: var(--paper); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.mo-roll.is-ok .mo-out, .mo-roll.is-ko .mo-out { opacity: 1; transform: none; }
.mo-roll.is-ok .mo-out { color: #6EE7A0; } .mo-roll.is-ko .mo-out { color: #FF8A92; }
@media (prefers-reduced-motion: reduce) { .mo-wrap, .mo-wrap * { animation: none !important; transition: none !important; } }
.mo-move { background: radial-gradient(110% 70% at 50% 40%, color-mix(in srgb, var(--kit, #145235) 55%, #082015), #082015 78%); }
.mo-mcard { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--paper); }
.mo-crests { display: flex; align-items: center; justify-content: center; gap: 18px; height: 120px; margin-bottom: 8px; }
.mo-crests .crest.xl { width: 92px; height: 92px; margin: 0; }
.mo-old { animation: mo-old .7s ease .35s forwards; }
.mo-new { opacity: 0; transform: translateX(40px) scale(.6); animation: mo-new .6s cubic-bezier(.3, 1.5, .5, 1) .55s forwards; }
.mo-arrow { font: 800 44px var(--display); color: var(--kit2, var(--gold)); opacity: .8; }
@keyframes mo-old { to { opacity: .25; transform: translateX(-24px) scale(.7); filter: grayscale(1); } }
@keyframes mo-new { to { opacity: 1; transform: none; } }
.mo-mcard small { font: var(--t-label); letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.mo-mcard b { font: var(--t-h1); text-wrap: balance; }
.mo-mcard > span { font: var(--t-small); color: var(--text-2); }
.mo-climb { margin: 4px 0 10px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; font: var(--t-small); color: var(--text-2); }
.mo-climb .mo-rank { font: 800 30px/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.mo-climb.done .mo-rank { animation: mo-bump .3s cubic-bezier(.3, 1.6, .5, 1); }
/* Técnico, Torcida e Fama: valor que mudou sobe ao lado da barra (core.js, barDelta) */
.rel .m { position: relative; }
.rel .m-d { position: absolute; right: -2px; top: -15px; font: 800 13px/1 var(--display); padding: 2px 6px; border-radius: 999px; pointer-events: none;
  animation: m-d 2.1s ease forwards; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.rel .m-d.up { background: var(--green); color: #fff; } .rel .m-d.down { background: var(--red); color: #fff; }
@keyframes m-d { 0% { opacity: 0; transform: translateY(6px) scale(.7); } 15% { opacity: 1; transform: translateY(0) scale(1.08); } 25% { transform: scale(1); } 80% { opacity: 1; transform: translateY(-6px); } 100% { opacity: 0; transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .rel .m-d { display: none; } }
/* Primeiro contrato (motion.js, firstContract) */
.mo-sign { flex-direction: column; gap: 16px; }
.mo-doc { position: relative; width: 100%; max-width: 360px; background: var(--paper); color: var(--ink); border-radius: 14px; padding: 18px 18px 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5); animation: mo-doc-in .45s cubic-bezier(.2, 1.2, .4, 1); transform-origin: 50% 80%; }
@keyframes mo-doc-in { from { opacity: 0; transform: translateY(30px) rotate(-3deg) scale(.92); } }
.mo-doc > small { font: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mo-doc-club { display: block; font: var(--t-h1); margin: 2px 0 10px; padding-right: 70px; text-wrap: balance; }
.mo-doc ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 4px; border-top: 1px solid rgba(0, 0, 0, .1); padding-top: 8px; }
.mo-doc li { display: flex; justify-content: space-between; gap: 10px; font: var(--t-small); }
.mo-doc li span { color: var(--muted); }
.mo-sigline { position: relative; height: 64px; border-bottom: 1.5px solid var(--ink); }
.mo-sig { position: absolute; left: 6px; right: 6px; bottom: 2px; font: var(--sig, 44px)/1.35 'Mrs Saint Delafield', 'Great Vibes', cursive; padding: 0 6px; color: #1C3F94; white-space: nowrap;
  clip-path: inset(0 100% 0 0); animation: mo-write 1.1s ease-in-out .5s forwards; }
@keyframes mo-write { to { clip-path: inset(0 0 0 0); } }
.mo-siglbl { display: block; margin-top: 4px; font: 600 11px var(--body); color: var(--muted); letter-spacing: .04em; }
.mo-seal { position: absolute; top: 12px; right: 12px; opacity: 0; animation: mo-seal .45s cubic-bezier(.2, 1.5, .4, 1) 1.6s forwards; }
.mo-seal .crest.xl { width: 64px; height: 64px; margin: 0; }
@keyframes mo-seal { from { opacity: 0; transform: scale(2.2) rotate(-18deg); } to { opacity: 1; transform: rotate(-8deg); } }
.mo-welcome { margin: 0; font: var(--t-h1); color: var(--gold); opacity: 0; animation: mo-show .4s ease 1.9s forwards; }
@keyframes mo-show { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mo-sig { clip-path: none; } .mo-seal, .mo-welcome { opacity: 1; } }
/* Lesão séria no resumo (season.js): a carta pisca em vermelho e o curativo cai sobre ela */
.s-hero { position: relative; }
.s-hero.hurt .scard { animation: inj-flash .9s ease .3s 2; }
@keyframes inj-flash { 40% { box-shadow: 0 0 0 4px var(--red), 0 0 28px rgba(216, 64, 74, .75); filter: saturate(.6); } }
.sc-inj { position: absolute; left: 4px; bottom: -10px; z-index: 2; background: var(--red); color: #fff; font: 700 12px var(--display); letter-spacing: .02em;
  padding: 3px 9px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); transform-origin: 20% 50%; animation: inj-drop .5s cubic-bezier(.3, 1.6, .5, 1) .5s both; }
@keyframes inj-drop { from { opacity: 0; transform: translateY(-26px) rotate(-12deg) scale(.6); } to { opacity: 1; transform: rotate(-4deg); } }
/* Duelo com o rival de geração */
.rival-line p { margin: 0; }
.rv-duel { margin-top: 8px; display: grid; gap: 5px; }
.rd-row { display: grid; grid-template-columns: 64px 1fr 30px; align-items: center; gap: 8px; font: 700 13px var(--display); }
.rd-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-row b { text-align: right; font-variant-numeric: tabular-nums; }
.rd-bar { height: 9px; border-radius: 5px; background: rgba(0, 0, 0, .1); overflow: hidden; }
.rd-bar i { display: block; height: 100%; width: 0; border-radius: 5px; transition: width .9s cubic-bezier(.3, 1.1, .5, 1) .15s; }
.rival-line.in .rd-bar i { width: var(--w); }
.rd-row.me i { background: #22A45D; } .rd-row.him i { background: #2F6FD6; }
.rival-line.hot .rd-row.him i { background: #D8404A; }
.rd-flip { justify-self: start; margin-top: 2px; font: 800 13px var(--display); padding: 2px 9px; border-radius: 999px; color: #fff; opacity: 0; }
.rd-flip.up { background: var(--green); } .rd-flip.down { background: var(--red); }
.rival-line.in .rd-flip { animation: inj-drop .5s cubic-bezier(.3, 1.6, .5, 1) 1s both; }
/* Convocação (motion.js, callUp) */
.mo-list { position: relative; width: 100%; max-width: 380px; background: var(--paper); color: var(--ink); border-radius: 16px; padding: 16px; display: grid; gap: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5); animation: mo-doc-in .45s cubic-bezier(.2, 1.2, .4, 1); }
.mo-list-h { display: flex; align-items: center; gap: 12px; }
.mo-list-h small { display: block; font: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mo-list-h b { font: var(--t-h1); }
.mo-sect { opacity: 0; animation: mo-show .3s ease var(--d) forwards; }
.mo-sect > span { display: block; font: 700 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.mo-names { display: grid; gap: 4px; }
.mo-names i { display: block; height: 10px; border-radius: 5px; background: var(--paper-2); }
.mo-me { font: 800 18px/1.1 var(--display); color: var(--ink); background: var(--gold); border-radius: 6px; padding: 2px 8px; justify-self: start; animation: mo-bump .4s cubic-bezier(.3, 1.6, .5, 1) 1.5s both; }
.mo-callstamp { position: absolute; right: 14px; top: 14px; font: 800 22px var(--display); color: var(--green); border: 3px solid var(--green); border-radius: 8px; padding: 2px 10px;
  text-transform: uppercase; opacity: 0; animation: mo-seal .45s cubic-bezier(.2, 1.5, .4, 1) 1.8s forwards; }
@media (prefers-reduced-motion: reduce) { .sc-inj, .rd-flip, .mo-sect, .mo-callstamp { opacity: 1; animation: none; } .rd-bar i { width: var(--w); transition: none; } }
/* Barra do topo: número que mudou conta até o novo e brilha (core.js, totCount) */
.bar-tot b { font: inherit; }
.bar-tot span.tot-up b { color: var(--gold); text-shadow: 0 0 12px rgba(242, 194, 48, .7); transition: color .4s, text-shadow .4s; }
/* Início: engrenagem branca no link de Configurações */
.gear-ic { display: inline-flex; vertical-align: -3px; } .gear-ic svg { width: 17px; height: 17px; }
/* Evento: opções entrando em sequência e o ícone pulando */
.event-card .ev-top > :first-child { animation: ev-hop .55s cubic-bezier(.3, 1.6, .5, 1) .15s both; }
@keyframes ev-hop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: translateY(-6px) scale(1.12); opacity: 1; } 100% { transform: none; } }
.event-card ~ .choices > .btn { animation: enter .35s ease-out both; }
.event-card ~ .choices > .btn:nth-child(1) { animation-delay: .18s; } .event-card ~ .choices > .btn:nth-child(2) { animation-delay: .3s; }
.event-card ~ .choices > .btn:nth-child(3) { animation-delay: .42s; } .event-card ~ .choices > .btn:nth-child(4) { animation-delay: .54s; }
@media (prefers-reduced-motion: reduce) { .event-card .ev-top > :first-child, .event-card ~ .choices > .btn { animation: none; } }

/* Início: carta da última carreira flutuando, com nota e recorde */
.last-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; text-align: left; width: 100%; border: 0; border-radius: 16px; padding: 12px 16px;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--paper); font: inherit; }
.last-card .lc-card { display: block; width: 66px; height: 95px; perspective: 400px; }
.last-card .lc-card img { display: block; width: 100%; height: 100%; border-radius: 6px; background: rgba(255, 255, 255, .08);
  box-shadow: 0 10px 16px rgba(0, 0, 0, .4); animation: lc-float 4.2s ease-in-out infinite; }
@keyframes lc-float { 0%, 100% { transform: translateY(0) rotateY(-10deg) rotate(-3deg); } 50% { transform: translateY(-6px) rotateY(10deg) rotate(2deg); } }
.last-card .lc-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.last-card .lc-info small { font: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: #B9CDBF; }
.last-card .lc-info b { font: var(--t-h2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.last-card .lc-info span { font: 600 14px/1.35 var(--body); color: #E8F1EA; }
.last-card .lc-g { font: 800 16px var(--display); font-style: normal; padding: 0 6px; border-radius: 5px; background: #E8F1EA; color: var(--ink); }
.last-card .lc-g.g-S { background: var(--gold); } .last-card .lc-g.g-A { background: #E9E0FA; color: #4B2E8F; }
.last-card .lc-rec { color: #B9CDBF !important; font-size: 13px !important; }

/* Resumo da temporada: carta, nota e tabela na frente; a história do ano num bloco só, em linhas mais leves */
.feed:empty, .awards:empty { display: none; }
#screen:has(> #after) .counters { gap: 0; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 14px; padding: 6px 0; }
#screen:has(> #after) .counter { background: none; color: var(--paper); border-radius: 0; padding: 4px; }
#screen:has(> #after) .counter + .counter { box-shadow: inset 1.5px 0 0 var(--line); }
#screen:has(> #after) .counter span { color: #B9CDBF; }
#screen:has(> #after) .counter.rate b { color: #7BE3A0; }
.story { display: flex; flex-direction: column; background: rgba(255, 255, 255, .05); border-radius: 14px; padding: 4px 14px; }
.story > * { margin: 0 !important; padding: 12px 0 !important; background: none !important; border-radius: 0 !important; color: #E8F1EA !important; }
.story > * + * { border-top: 1px solid rgba(255, 255, 255, .1); }
.story .st-hl { font: 600 15px/1.35 var(--body); color: #CFE0D4 !important; }
.story .news .np { color: #9DB5A6; border: 0; padding: 0; margin-bottom: 4px; }
.story .news:not(.resenha) p { margin: 0; font: 800 21px/1.15 var(--display); color: var(--paper); }
.story .news.resenha .np { color: #C9A93A; }
.story .news.resenha p { margin: 0; font: italic 500 15px/1.35 var(--body); color: #CFE0D4; }
.story .rival-line p { font-size: 14px; color: #CFE0D4; }
.story .rival-line .rd-bar { background: rgba(255, 255, 255, .12); }
.story .rival-line.hot p { color: #FFB4B9; }
#after > .star-line, #after > .pe-gain, #after > .wc-miss { margin: 0; background: none; color: #CFE0D4; padding: 0 2px; font-size: 14px; }
#after > .star-line b, #after > .pe-gain b { color: var(--paper); }
/* Evento: o papel ganha o tom do tipo (faixa no topo e um leve degradê), sem mudar o peso do texto */
.event-card[class*=' t-'] { --tn: transparent; --tb: var(--paper); background: linear-gradient(180deg, var(--tb), var(--paper) 120px); box-shadow: inset 0 5px 0 var(--tn), 0 3px 0 rgba(0, 0, 0, .35); }
.event-card.t-green { --tn: #1FA35A; --tb: #E2F2E6; } .event-card.t-red { --tn: #D8404A; --tb: #F8E3E2; }
.event-card.t-blue { --tn: #2F6FD6; --tb: #E4ECF8; } .event-card.t-gold { --tn: #E0A800; --tb: #F8EDCB; }
.event-card.t-purple, .event-card.t-back { --tn: #7A4FD6; --tb: #ECE5F8; }
/* Fim de carreira: a carta do resumo desbota em sépia */
.s-hero .scard { transition: filter 1.8s ease; }
.s-hero .scard.aged { filter: sepia(.85) saturate(.8) contrast(.95) brightness(.95); }
.sc-aged { display: inline-block; margin-top: 6px; font: 700 12px var(--display); letter-spacing: .12em; text-transform: uppercase; color: #F5E9D0; background: #6B5233;
  padding: 3px 9px; border-radius: 4px; transform: rotate(-3deg); align-self: flex-start; animation: aged-in .6s ease 1.2s both; }
@keyframes aged-in { from { opacity: 0; transform: rotate(-3deg) scale(1.4); } }

/* Fim de carreira: a nota em destaque logo abaixo da carta */
.fin-sum { gap: 16px; padding: 14px 16px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1.5px var(--line); }
.fin-sum .grade { width: 72px; height: 84px; font-size: 60px; border-radius: 14px; flex: none; }
.fin-sum small { display: block; font: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: #9DB5A6; }
.fin-sum b { font: 800 26px/1.1 var(--display); }
.fin-sum span { font-size: 15px; }
.fin-sum.rec { box-shadow: inset 0 0 0 2px rgba(242, 194, 48, .6); }
.fin-sum.rec span { color: var(--gold); font-weight: 700; }
/* Assinaturas e acabamentos numa linha que rola para o lado */
.ed-box .sig-grid, .ed-box .fin-grid { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -12px; padding: 2px 12px 4px; scrollbar-width: none; overscroll-behavior-x: contain; }
.ed-box .sig-grid::-webkit-scrollbar, .ed-box .fin-grid::-webkit-scrollbar { display: none; }
.ed-box .sig-b { flex: 0 0 128px; scroll-snap-align: start; }
.ed-box .fin-b { flex: 0 0 76px; scroll-snap-align: start; }
.ed-cnt { margin: -2px 0 0; font: 500 13px var(--body); color: #9DB5A6; }
/* Prêmios da carreira (sequência de dias e pacotinhos) num bloco só */
.fin-prizes { display: flex; flex-direction: column; background: rgba(255, 255, 255, .05); border-radius: 16px; padding: 12px 14px 4px; }
.fin-prizes .fp-t { font: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: #9DB5A6; }
.fin-prizes > .sk, .fin-prizes > .pk-won { margin: 0; background: none !important; box-shadow: none !important; border: 0 !important; border-radius: 0; padding: 12px 0; }
.fin-prizes > * + .pk-won { border-top: 1px solid rgba(255, 255, 255, .1) !important; }
.fin-prizes .pk-won .btn { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 2px rgba(242, 194, 48, .6); }

/* Pré-temporada: treinos numa lista compacta (um papel só, uma linha por treino); as características seguem em cartão */
.choices.inv-grid { grid-template-columns: 1fr; gap: 0; background: var(--paper); border-radius: 16px; box-shadow: 0 3px 0 rgba(0, 0, 0, .35); overflow: hidden; }
.choices.inv-grid .choice.inv { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "ic name pips" "ic d price"; gap: 1px 10px; align-items: center;
  border-radius: 0; box-shadow: none; padding: 10px 14px; background: transparent; }
.choices.inv-grid .choice.inv + .choice.inv { border-top: 1px solid #E4EAE6; }
.choices.inv-grid .choice.inv[data-v] { grid-column: auto; }
.choices.inv-grid .choice.inv .ic { grid-area: ic; font-size: 22px; }
.choices.inv-grid .choice.inv b { grid-area: name; font: 800 17px/1.15 var(--display); }
.choices.inv-grid .choice.inv .pips { grid-area: pips; justify-self: end; letter-spacing: 1px; }
.choices.inv-grid .choice.inv .d { grid-area: d; font: 500 13.5px/1.3 var(--body); color: #4A5A50; }
.choices.inv-grid .choice.inv .price { grid-area: price; justify-self: end; margin: 0; white-space: nowrap; }
.choices.inv-grid .choice.inv:active { transform: none; background: #EEF3EF; }
.choices.inv-grid .choice.inv.armed { box-shadow: inset 0 0 0 3px var(--gold); background: #FFF8E0; }
.choices.inv-grid .choice.inv .arm-back { grid-column: 1 / -1; grid-area: auto; margin: 6px -14px -10px; border-radius: 0; }
.choices.inv-grid .choice.inv.bought { box-shadow: inset 0 0 0 3px var(--gold); }
/* Lance decisivo: a chance de cada estilo num selo, para comparar de relance */
.btn.opt.style { position: relative; padding-top: 14px; display: flex; flex-direction: column; align-items: center; }
.btn.opt.style > small { margin-bottom: 8px; }
.btn.opt.style .st-pct { display: inline-flex; align-items: baseline; gap: 5px; align-self: center; margin-top: auto; padding: 3px 10px; border-radius: 999px;
  background: var(--ink); color: #E8F1EA; font: 600 12px var(--body); }
.btn.opt.style .st-pct b { font: 800 20px/1 var(--display); color: var(--gold); }

/* Post no X: as respostas entram uma a uma depois do post (um toque mostra tudo) */
.xw.xw-live .xw-rep { animation: xw-in .4s ease-out both; animation-delay: calc(.7s + var(--i, 0) * .45s); }
.xw.xw-done .xw-rep { animation: none; }
@keyframes xw-in { from { opacity: 0; transform: translateY(12px); } }
.xw .xn { font-style: normal; font-variant-numeric: tabular-nums; }
/* Bola da tela inicial sem 3D (desligado, sem WebGL ou a biblioteca não chegou): bola desenhada girando devagar */
.ball3d.flat { opacity: 1; transform: none; display: grid; place-items: center; }
.ball3d.flat img { width: 112px; height: 112px; animation: ball-flat 9s linear infinite; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); }
@keyframes ball-flat { to { transform: rotate(360deg); } }
/* Carreira Relâmpago (ui/relampago.js): botão da tela inicial, quadro das 5 casas, cones e resultado */
.rl-btn { width: 100%; margin-top: 10px; box-shadow: inset 0 0 0 1.5px rgba(242, 194, 48, .45); }
.rl-dz .rl-go { margin-top: 10px; }
.rl-rules p { margin: 0 0 8px; font-size: 15px; line-height: 1.35; }
.rl-rules p:last-child { margin: 0; }
.rl-rules .tw { vertical-align: -3px; margin-right: 4px; }
.rl-head h2 { margin: 2px 0 8px; }
.rl-rule { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -2px 0 8px; font-size: 13px; color: rgba(255, 255, 255, .78); }
.rl-dots { display: inline-flex; gap: 5px; flex: none; }
.rl-dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); }
.rl-dots i.g { background: #1E7A45; border-color: #1E7A45; }
.rl-dots i.x { background: #B83A2E; border-color: #B83A2E; }
.rl-row b i { font: 600 11px var(--body, inherit); font-style: normal; color: var(--muted); margin-right: 4px; }
.rl-reveal.lost .rl-prize { opacity: .5; filter: grayscale(1); }
.rl-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 8px; }
.rl-cell { min-height: 58px; border-radius: 10px; background: rgba(255, 255, 255, .07); padding: 5px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; overflow: hidden; }
.rl-cell small { font: 700 10px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--label); white-space: nowrap; }
.rl-cell.now { box-shadow: inset 0 0 0 2px var(--gold); }
.rl-cell.out { background: rgba(216, 64, 74, .18); }
.rl-cell .rl-q { font: 800 20px var(--display); color: rgba(255, 255, 255, .3); }
.rl-cell em { font: 600 10.5px/1.1 var(--body); font-style: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rl-cell .crest.xs { margin: 0; }
.rl-ga { font: 800 18px var(--display); color: var(--gold); }
.rl-tr { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 2px; }
.rl-tr i { font: 700 11px var(--body); font-style: normal; margin-right: 2px; }
.rl-res { margin-top: 10px; }
.rl-score { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rl-score b { display: block; font: 800 28px/1 var(--display); }
.rl-score small { color: var(--muted); font-size: 13px; }
.rl-grade { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font: 800 18px var(--display); background: #C9D3CC; color: var(--ink); }
.rl-grade.big { width: 54px; height: 54px; border-radius: 12px; font-size: 34px; }
.rl-grade.g-S { background: var(--gold); }
.rl-grade.g-A { background: #8FD6AE; }
.rl-grade.g-D { background: #F8D3D6; color: #8E1B24; }
.rl-row { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid rgba(19, 32, 26, .1); font-size: 14px; }
.rl-row small { font: 700 11px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rl-row .rl-val { display: flex; align-items: center; min-width: 0; font-weight: 600; }
.rl-row b { font: 800 16px var(--display); }
.rl-row.best b { color: #1E7A45; }
.rl-row.out b { color: #B83A2E; }
.rl-combos { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 13.5px; }
.rl-combos .tw { vertical-align: -2px; }
.rl-duel { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: start; margin-top: 6px; }
.rl-x { font: 800 22px var(--display); color: var(--gold); align-self: center; }
.rl-col { background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rl-col.me { box-shadow: inset 0 0 0 2px var(--gold); }
.rl-col-h { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.rl-col-h b { font: 800 16px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-mini { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; font-size: 12px; min-width: 0; }
.rl-mini small { font: 700 9.5px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--label); }
.rl-mini em { font-style: normal; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rl-mini .rl-ga { font-size: 15px; }
.rl-mini .rl-tr { justify-content: flex-start; }
.rl-mini.out { opacity: .55; }
.rl-col-t { font: 800 20px var(--display); color: var(--gold); text-align: center; margin-top: 2px; }
.rl-ask { text-align: center; font: 700 17px var(--display); color: #E1EEE5; margin: 10px 0 0; }
#rl-share small { display: block; font: 600 12px var(--body); opacity: .8; letter-spacing: 0; }
#rl-home { display: block; margin: 12px auto 0; }
/* Carreira Relâmpago: prêmio revelado depois do pênalti */
.rl-reveal { margin-top: 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; animation: rl-pop .45s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes rl-pop { from { opacity: 0; transform: scale(.7); } }
.rl-reveal > small { font: 700 13px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.rl-reveal.ok > small { color: #1E7A45; }
.rl-reveal.ko > small { color: #B83A2E; }
.rl-prize { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rl-prize .crest { width: 64px; height: 64px; margin: 0; }
.rl-prize em { font: 800 24px/1.1 var(--display); font-style: normal; }
.rl-prize .rl-ga { font-size: 44px; color: var(--ink); }
.rl-prize .rl-ti { display: inline-flex; align-items: center; gap: 2px; margin: 0 4px; }
.rl-prize .rl-ti i { font: 800 18px var(--display); font-style: normal; }
.rl-prize small { font: 700 12px var(--display); color: var(--amber-ink); text-transform: uppercase; }
.rl-pts { font: 800 20px var(--display); color: #1E7A45; }
.rl-gas { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 0 8px; }
.rl-gas i { font: 700 14px var(--display); font-style: normal; text-transform: uppercase; color: var(--muted); text-align: left; }
.rl-gas .rl-ga { font-size: 40px; text-align: right; }
.rl-sum { font-weight: 600; font-size: 14px; }
.rl-sum small { display: block; font: 700 11px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rl-reveal .btn { width: 100%; margin-top: 4px; }
.rl-reveal .rl-pts { display: block; width: 100%; text-align: center; }
/* Carreira Relâmpago: escolha da bola, bolas que sobraram e o que escapou */
.rl-pick { text-align: center; padding: 14px 10px 16px; animation: rl-pop .35s cubic-bezier(.2, 1.5, .4, 1); }
.rl-pick > small { display: block; font: 700 13px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.rl-balls { display: flex; justify-content: center; gap: 8px; }
.rl-ball { position: relative; width: 54px; height: 54px; border-radius: 50%; border: 0; background: rgba(19, 32, 26, .07); display: grid; place-items: center; cursor: pointer; padding: 0; transition: transform .12s; }
.rl-ball:not([disabled]):active { transform: scale(.9); }
.rl-ball:not([disabled]) { box-shadow: inset 0 0 0 2px var(--gold); }
.rl-ball i { position: absolute; right: -2px; bottom: -2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--ink); color: #fff; font: 800 11px/18px var(--display); font-style: normal; }
.rl-ball[disabled] { cursor: default; opacity: .35; }
.rl-ball.g[disabled] { background: rgba(30, 122, 69, .25); }
.rl-ball.x[disabled] { background: rgba(184, 58, 46, .2); }

/* ===== Pré-temporada ousada: treino tocando na carta, características como cartas lado a lado ===== */
.pre-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.pre-head h2 { margin: 0; }
.pre-head .coins { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 20px;
  background: rgba(0, 0, 0, .25); border: 1px solid rgba(242, 194, 48, .5); }
.pre-head .coins b { font: 800 22px var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.mcard.trainable { padding-bottom: 8px; box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, .7), inset -1.5px -1.5px 0 rgba(0, 0, 0, .35), 0 3px 0 rgba(0, 0, 0, .35), 0 14px 30px rgba(0, 0, 0, .35); }
.mcard.trainable .mc-grid { gap: 6px; }
button.mc-at { font: inherit; color: inherit; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); background: rgba(255, 255, 255, .16);
  border-radius: 10px; padding: 3px 7px 2px; display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: "v l d" "p p c"; align-items: baseline; column-gap: 5px;
  text-align: left; cursor: pointer; min-height: 48px; }
.mcard.icone button.mc-at { background: rgba(255, 255, 255, .07); }
button.mc-at b { grid-area: v; } button.mc-at > span { grid-area: l; } button.mc-at i { grid-area: d; justify-self: end; }
button.mc-at .pips { grid-area: p; font: 9px/1 var(--body); letter-spacing: 1px; opacity: .7; align-self: center; }
button.mc-at .price { grid-area: c; justify-self: end; font: 800 13px var(--display); font-style: normal; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
button.mc-at .price .tw { width: 13px; height: 13px; }
button.mc-at:not(:disabled):active { transform: scale(.96); }
button.mc-at:disabled { cursor: default; }
button.mc-at.poor .price { opacity: .5; }
/* Liberado x bloqueado: o que dá para treinar fica em relevo com o preço numa pílula verde; sem estrelas
   (ou no máximo) fica chapado, tracejado e apagado. O rótulo da faixa ganha uma linha só dele acima da grade */
.mcard.trainable { padding-top: 26px; }
.mcard.trainable .mc-tier { top: 8px; right: 16px; }
button.mc-at:not(:disabled) { background: rgba(255, 255, 255, .5); border-color: color-mix(in srgb, currentColor 40%, transparent);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .8); }
button.mc-at:not(:disabled) .price { padding: 1px 6px 1px 7px; border-radius: 9px; background: #0E6A35; color: #fff; text-shadow: none; }
button.mc-at:disabled { background: transparent; border-style: dashed; box-shadow: none; }
button.mc-at:disabled > b, button.mc-at:disabled > span, button.mc-at:disabled .pips { opacity: .45; }
button.mc-at.poor .price { opacity: .55; }
.mcard.icone button.mc-at:not(:disabled) { background: rgba(255, 255, 255, .16); box-shadow: 0 2px 0 rgba(0, 0, 0, .5), inset 0 1px 0 rgba(244, 214, 117, .35); }
.mcard.icone button.mc-at:not(:disabled) .price { background: #7BE3A0; color: #0B0914; }
.mcard.icone button.mc-at:disabled { background: transparent; }
button.mc-at.full .price { opacity: .65; text-transform: uppercase; }
button.mc-at.up { background: rgba(255, 255, 255, .75); }
.mcard.icone button.mc-at.up { background: rgba(123, 227, 160, .15); }
.at-help { margin: 8px 0 4px; }
.at-help .ah-row { display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: start; }
.at-help .ah-row > b { font: 800 15px/1.6 var(--display); color: var(--gold, #E9C46A); }
.at-help .ah-row span { display: block; font-weight: 700; }
.at-help .ah-row em { font-style: normal; font-weight: 600; opacity: .7; }
.at-help .ah-row small { display: block; opacity: .85; line-height: 1.35; }
.mc-hint { grid-column: 1 / -1; margin: 2px 0 0; font: 700 12px var(--display); letter-spacing: .04em; text-align: center; opacity: .8; display: flex; align-items: center; justify-content: center; gap: 4px; }
.pick-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 16px 0 -4px; }
.pick-h b { font: 800 22px var(--display); }
.pick-h span { font-size: 13px; color: #D3E4D9; }
.choices.tr-pick { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; align-items: stretch; padding-top: 8px; }
.choice.tr { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 10px 8px 12px; min-height: 176px;
  border: 3px solid transparent; transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease; }
.choice.tr > .tag { align-self: flex-start; margin: 0; font-size: 10px; }
.choice.tr .ic { font-size: 0; margin: 4px 0 2px; }
.choice.tr .ic .tw { width: 46px; height: 46px; }
.choice.tr b { font: 800 18px/1.05 var(--display); }
.choice.tr b small { display: block; font: 700 13px var(--display); color: #0E5A30; }
.choice.tr .d { font: 600 12px/1.3 var(--body); color: #4A5750; }
.choice.tr .d .fx { display: block; margin-top: 2px; }
.choice.tr.combo { border-color: var(--gold); box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.tr-pick .choice.chosen:disabled { opacity: 1; border-color: var(--gold); transform: translateY(-8px) rotate(-1.5deg); box-shadow: 0 14px 28px rgba(0, 0, 0, .45), 0 0 0 4px rgba(242, 194, 48, .3); }
.tr-pick .choice:disabled:not(.chosen) { opacity: .4; transform: scale(.96); }
.inv-chip { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 46px; margin-top: 12px; padding: 6px 12px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05); color: #FBF8EF; font: 600 14px var(--body); text-align: left; cursor: pointer; }
.inv-chip .nm { flex: 1; } .inv-chip .nm b { font-weight: 700; }
.inv-chip .pips { font-size: 10px; letter-spacing: 1px; color: var(--gold); }
.inv-chip .price { font: 800 15px var(--display); font-style: normal; color: var(--gold); display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.inv-chip:disabled { opacity: .55; cursor: default; }
.inv-chip.full { border-color: rgba(123, 227, 160, .5); }
.inv-chip.full .price { color: #7BE3A0; text-transform: uppercase; }
.inv-chip.bought, button.mc-at.bought { animation: mc-pop .35s ease; }
@media (max-width: 360px) { .choice.tr .d { font-size: 11px; } .choice.tr .ic .tw { width: 38px; height: 38px; } }

/* ===== Estilo ousado: temporada ao vivo (O1) ===== */
/* Topo com as cores do clube (--k1/--k2 vêm do escudo, ui/season.js) */
#screen > .sx-head { position: relative; flex-direction: row; align-items: center; gap: 12px; padding: 14px 14px 10px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(120deg, color-mix(in srgb, var(--k1) 34%, rgba(6, 14, 10, .6)), color-mix(in srgb, var(--k2) 26%, rgba(6, 14, 10, .6)));
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .08), 0 8px 22px rgba(0, 0, 0, .25); }
.sx-head::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--k1) 0 50%, var(--k2) 50% 100%); }
.sx-head .crest { width: 48px; height: 48px; margin: 0; flex: 0 0 auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)); }
.season-head.sx-head > .sx-id { width: auto; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sx-head h2 { margin: 0; font: 800 26px/1 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.sx-head .eyebrow { color: rgba(255, 255, 255, .78); font-size: 12px; letter-spacing: .1em; }
.sx-head .tag { margin: 0; flex: 0 0 auto; align-self: center; }
/* Faixa "ao vivo": ponto pulsando, rodada grande e barra de andamento */
.sx-live { display: grid; grid-template-columns: auto 1fr auto; align-items: end; column-gap: 8px; row-gap: 6px; padding: 0 2px; }
.sx-dot { width: 8px; height: 8px; border-radius: 4px; background: #FF5A5F; align-self: center; animation: sx-pulse 1.2s infinite; }
@keyframes sx-pulse { 50% { opacity: .3; } }
.sx-live > b { font: 700 13px var(--display); letter-spacing: .16em; text-transform: uppercase; color: #D3E4D9; align-self: center; }
.sx-rd { font: 800 15px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.sx-rd b { font-size: 28px; font-variant-numeric: tabular-nums; margin-left: 4px; }
.sx-rd small { font-size: 15px; color: rgba(255, 255, 255, .5); }
.sx-prog { grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.sx-prog > i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--gold); }
.sx-live.end .sx-dot { background: var(--gold); animation: none; }
.sx-live.end > b { color: var(--gold); }
.sx-live.end .sx-rd { font: 700 14px var(--body); letter-spacing: 0; text-transform: none; color: #D3E4D9; align-self: center; }
.sx-live.end .sx-prog > i { width: 100% !important; }
/* Carta à esquerda, veredito e contadores grandes ao lado */
#screen > .s-hero { align-items: stretch; gap: 12px; }
.s-hero .scard { width: 104px; height: auto; min-height: 134px; border-radius: 16px; flex: 0 0 auto; }
.s-hero .scard b { font-size: 54px; }
.sx-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.sx-side .s-verdict { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; min-height: 24px; }
.sx-side .sv-lbl { font: 800 21px/1.05 var(--display); }
.sx-side .sv-d { display: inline-flex; align-items: baseline; font: 800 28px/1 var(--display); }
.sx-side .sv-d s { font: 700 17px var(--display); color: rgba(255, 255, 255, .45); margin-right: 6px; }
.sx-side .sv-d small { font: 600 13px var(--body); color: #D3E4D9; margin-left: 6px; }
#screen:has(> #after) .sx-side .counters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: none; box-shadow: none; padding: 0; border-radius: 0; flex: 1; }
#screen:has(> #after) .sx-side .counter { background: rgba(255, 255, 255, .07); box-shadow: none; border-radius: 12px; padding: 6px 2px 5px; display: flex; flex-direction: column; justify-content: center; }
#screen:has(> #after) .sx-side .counter:nth-child(2) { background: rgba(242, 194, 48, .16); box-shadow: inset 0 0 0 1px rgba(242, 194, 48, .5); }
#screen:has(> #after) .sx-side .counter:nth-child(2) b { color: var(--gold); }
.sx-side .counter b { font: 800 30px/1 var(--display); }
.sx-side .counter span { font: 600 12px/1.2 var(--body); }
.s-hero .sc-inj { left: 2px; bottom: -24px; }
#screen > .s-hero.hurt { margin-bottom: 16px; }
/* Mini tabela: título da briga em cima, sua posição grande */
.race .rc-rd { color: #D3E4D9; }
.race .rc-pos { font-size: 32px; }
.race.end .rc-pos { font-size: 44px; color: var(--gold); }
/* Ticker dos lances do ano (só enquanto a temporada corre) */
#screen > #feed { gap: 8px; max-height: 196px; overflow: hidden; }
#screen > #feed:has(> .tk-i:nth-child(3)) { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
#feed .tk-i { display: flex; align-items: center; gap: 8px; border-radius: 14px; padding: 10px 12px; background: rgba(255, 255, 255, .08); font: 500 14px/1.3 var(--body); animation: sx-tk .35s cubic-bezier(.2, 1.3, .4, 1); }
#feed .tk-i:first-child { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: 0 3px 0 rgba(0, 0, 0, .3); }
#feed .tk-i .tw { flex: 0 0 auto; }
@keyframes sx-tk { from { opacity: 0; transform: translateY(-12px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .sx-dot, #feed .tk-i { animation: none; } }
/* ----- fim O1 ----- */

/* ===== Estilo ousado: fim de temporada (O2) ===== */
#screen > #after { gap: 12px; }
/* Prêmio: faixa dourada; taça com troféu grande */
#after .awards { gap: 8px; }
#after .award:not(.ballon) { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 6px 12px; border-radius: 14px;
  background: var(--gold); color: var(--ink); box-shadow: 0 4px 0 #A9861C; font: 800 19px/1.1 var(--display); text-align: center; }
#after .title-won { border-radius: 16px; box-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
/* "O que falaram": jornal, resenha, lance e rival em carrossel horizontal */
.sx-lbl { margin: 2px 0 -4px; font: 700 13px var(--display); letter-spacing: .14em; text-transform: uppercase; color: #D3E4D9; }
#after > .story { flex-direction: row; align-items: stretch; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 14px;
  background: none; border-radius: 0; padding: 2px 14px 6px; margin: 0 -14px; scrollbar-width: none; }
#after > .story::-webkit-scrollbar { display: none; }
#after > .story > * { flex: 0 0 min(80%, 300px); scroll-snap-align: start; padding: 12px 14px !important; border-radius: 16px !important; border-top: 0 !important;
  background: rgba(255, 255, 255, .08) !important; display: flex; flex-direction: column; gap: 6px; }
#after > .story > :only-child { flex-basis: 100%; }
#after > .story > .news:not(.resenha) { background: #F3EBD7 !important; color: #1F1A12 !important; box-shadow: 0 3px 0 rgba(0, 0, 0, .3); }
#after > .story > .news:not(.resenha) .np { color: #6B5B3E; font: 700 11px var(--display); letter-spacing: .14em; text-transform: uppercase; }
#after > .story > .news:not(.resenha) p { font: 700 19px/1.15 Georgia, 'Times New Roman', serif; color: #1F1A12; }
#after > .story > .resenha { background: #1B1A17 !important; }
#after > .story > .resenha .np { color: #F2C230; }
#after > .story > .st-hl { flex-direction: row; align-items: center; gap: 10px; font: 600 15px/1.35 var(--body); color: #E8F1EA !important; }
#after > .story > .rival-line p { font-size: 14px; line-height: 1.3; }
#after > .story > .rival-line.hot { background: rgba(216, 64, 74, .18) !important; }
/* Botões: seguir e postar lado a lado; despedida e parar embaixo; detalhes como link no fim */
#after > .rv.s-acts { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; align-items: stretch; }
#after > .s-acts > * { grid-column: 1 / -1; margin: 0; }
#after > .s-acts > #b-next, #after > .s-acts > #b-post { grid-column: auto; margin: 0; width: 100%; min-height: 58px; }
#after > .s-acts > #b-post { padding: 6px 8px; font-size: 16px; line-height: 1.1; }
#after > .s-acts > #b-post small { font-size: 10.5px; line-height: 1.2; margin-top: 2px; }
#after > details.more { order: 1; background: none; padding: 0; text-align: center; }
#after > details.more > summary { padding: 4px 0 8px; color: #D3E4D9; font: 600 15px var(--body); text-decoration: underline; text-underline-offset: 3px; }
#after > details.more[open] { text-align: left; background: rgba(255, 255, 255, .06); padding: 4px 12px 12px; }
#after > details.more[open] > summary { text-decoration: none; }
#after > .pe-gain, #after > .star-line { line-height: 1.35; }
/* ----- fim O2 ----- */

/* ===== Estilo ousado: decisão (O3) ===== */
/* Cartão claro centrado: faixa de cor no topo, ícone num círculo, categoria, título grande e texto */
.event-card.ob3 { --tn: #2F6FD6; --tc: #E4EDFB; position: relative; overflow: hidden; align-items: center; text-align: center; gap: 8px; padding: 24px 18px 20px; border-radius: 22px;
  background: var(--paper); box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
.event-card.ob3::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--tn); }
.event-card.ob3.t-green { --tn: #1FA35A; --tc: #DDF3E4; } .event-card.ob3.t-red { --tn: #D8404A; --tc: #F8E3E2; }
.event-card.ob3.t-blue { --tn: #2F6FD6; --tc: #E4EDFB; } .event-card.ob3.t-gold { --tn: #E0A800; --tc: #F8EDCB; }
.event-card.ob3.t-purple, .event-card.ob3.t-back { --tn: #7A4FD6; --tc: #ECE5F8; }
.event-card.ob3 .ev-top { flex-direction: column; gap: 8px; margin: 2px 0 0; }
.ob3-ic { width: 96px; height: 96px; border-radius: 50%; background: var(--tc); display: grid; place-items: center; }
.ob3-ic .tw { width: 60px; height: 60px; }
.event-card.ob3 .ev-tag { font: 700 12px var(--display); letter-spacing: .16em; color: var(--tn); }
.event-card.ob3 .ev-tag.green { color: #17864A; }
.event-card.ob3 h2 { margin: 0; font: 800 30px/1.02 var(--display); text-wrap: balance; }
.event-card.ob3 .ob3-txt { margin: 0; font: 500 16px/1.4 var(--body); color: #3D4A43; text-wrap: pretty; }
.event-card.ob3 .ev-mem { align-self: stretch; text-align: left; }
/* Opções: mesmo peso visual (nenhuma é o botão dourado); lado a lado quando são duas, empilhadas quando são mais */
.choices.ob3-opts { gap: 10px; }
.choices.ob3-opts.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.btn.opt.ob3-opt { --oc: #B9CDBF; align-items: stretch; justify-content: flex-start; gap: 8px; padding: 12px; min-height: 0; text-align: left; border-radius: 18px;
  background: rgba(255, 255, 255, .06); color: var(--paper); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--oc) 75%, transparent), 0 3px 0 rgba(0, 0, 0, .3); }
.btn.opt.ob3-opt.k-risk { --oc: #F2C230; background: rgba(242, 194, 48, .1); }
.btn.opt.ob3-opt.k-safe { --oc: #7FB0FF; background: rgba(127, 176, 255, .1); }
.btn.opt.ob3-opt:active { transform: scale(.97); }
.ob3-tag { align-self: flex-start; font: 700 11px var(--display); letter-spacing: .12em; text-transform: uppercase; border-radius: 6px; padding: 2px 7px; }
.k-risk .ob3-tag { background: #FF9F43; color: #2A1500; } .k-safe .ob3-tag { background: #7FB0FF; color: #0B1F44; }
.ob3-opt .ob3-lbl { font: 800 21px/1.05 var(--display); letter-spacing: .01em; }
.ob3-opt > small { font: 600 13px/1.3 var(--body); color: #D3E4D9; }
.ob3-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #D8404A; flex: none; }
.ob3-bar i { display: block; background: #22A45D; } .ob3-bar i.l { flex: 1; background: #D8404A; }
.ob3-bar.safe i { background: #7FB0FF; }
.btn.opt.ob3-opt .odds { display: flex; flex-direction: column; gap: 4px; margin: 0; font: 600 13px/1.3 var(--body); text-align: left; color: var(--paper); justify-content: flex-start; align-items: stretch; }
.btn.opt.ob3-opt .od-row { display: block; }
.btn.opt.ob3-opt .od-row b { min-width: 0; padding: 0; background: none !important; font: inherit; font-weight: 800; }
.btn.opt.ob3-opt .od-row b::after { content: ' · '; font-weight: 600; }
.btn.opt.ob3-opt .od-row.win { color: #A9F0C6; } .btn.opt.ob3-opt .od-row.lose { color: #FFB4B8; } .btn.opt.ob3-opt .od-row.safe { color: #C9DCFF; }
.btn.opt.ob3-opt .od-always { text-align: left; color: #D3E4D9; opacity: 1; font-size: 12.5px; }
.btn.opt.ob3-opt .ch-warn { margin-top: 0; }
.btn.opt.ob3-opt.locked { opacity: .5; }
.choices.ob3-opts.two .ob3-opt { min-height: 172px; }
.ob3-note { margin: -2px 0 0; font: 500 13px/1.35 var(--body); color: #B9CCBF; text-align: center; }
/* Confirmação em dois toques (proposta de clube) dentro do cartão */
.btn.opt.ob3-opt.armed { box-shadow: inset 0 0 0 3px var(--gold), 0 3px 0 rgba(0, 0, 0, .3); }
/* Resultado: o mesmo cartão claro "vira" e ganha o carimbo */
.ev-res.ob3-res { position: relative; border-radius: 22px; padding: 26px 18px 20px; box-shadow: 0 18px 40px rgba(0, 0, 0, .4); animation: ob3-flip .35s ease-out both; }
.ev-res.ob3-res .er-ic { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: #E4EDFB; }
.ev-res.ob3-res.ok .er-ic { background: #DDF3E4; } .ev-res.ob3-res.ko .er-ic { background: #FBE1E3; } .ev-res.ob3-res.calm .er-ic { background: #E4EDFB; }
.ev-res.ob3-res.calm .er-txt { color: var(--ink); }
.ob3-stamp { position: absolute; top: 16px; right: 12px; z-index: 1; font: 800 19px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px 4px; border-radius: 8px;
  border: 3px solid currentColor; background: rgba(251, 248, 239, .88); transform: rotate(-8deg); animation: ob3-stamp .45s ease-out .2s both; }
.ob3-stamp.s-ok { color: #1E8A4C; } .ob3-stamp.s-ko { color: #C2323C; } .ob3-stamp.s-calm { color: #2F6FD6; }
@keyframes ob3-stamp { 0% { transform: scale(2.2) rotate(-14deg); opacity: 0; } 60% { transform: scale(.95) rotate(-8deg); opacity: 1; } 100% { transform: rotate(-8deg); opacity: 1; } }
@keyframes ob3-flip { from { transform: perspective(900px) rotateY(90deg); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .ev-res.ob3-res, .ob3-stamp { animation: none; } }
@media (max-width: 360px) { .event-card.ob3 h2 { font-size: 26px; } .ev-res.ob3-res .er-ic { width: 72px; height: 72px; } .ob3-stamp { font-size: 16px; } .ob3-opt .ob3-lbl { font-size: 19px; } .btn.opt.ob3-opt { padding: 10px; } }
/* Tela larga: cartão do evento à esquerda; opções (e a comparação da proposta) à direita */
@media (min-width: 1000px) {
  #app:has(#screen > .event-card.ob3) { max-width: 1000px; }
  #screen:has(> .event-card.ob3) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto repeat(6, auto) 1fr; column-gap: 28px; align-items: start; }
  #screen:has(> .event-card.ob3) > * { grid-column: 2; }
  #screen:has(> .event-card.ob3) > .eyebrow { grid-column: 1 / -1; }
  #screen:has(> .event-card.ob3) > .event-card { grid-column: 1; grid-row: 2 / -1; }
  #app:has(#screen > .ob3-res) { max-width: 560px; }
}

/* ----- fim O3 ----- */

/* ===== Estilo ousado: janela de transferências (O4) ===== */
.of-h { margin: 2px 0 0; font: 800 30px/1.02 var(--display); }
.of-sub { margin: 4px 0 0; font: 600 15px/1.35 var(--body); color: #C9D8CE; }
.of-sub .tw { vertical-align: -2px; }
.of-fame { margin: 10px 0 0; text-align: center; }
.of-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 14px -16px 0; padding: 4px 16px 22px; scroll-padding-inline: 16px;
  scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; align-items: flex-start; }
.of-rail::-webkit-scrollbar { display: none; }
.of-card { flex: 0 0 min(86%, 340px); scroll-snap-align: center; border-radius: 24px; background: var(--paper); color: var(--ink); overflow: hidden;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .42); display: flex; flex-direction: column; transition: transform .25s ease, opacity .25s ease; }
.of-rail:has(> .of-card + .of-card) > .of-card:not(.cur) { transform: scale(.95); opacity: .7; }
.of-card:only-child { margin: 0 auto; }
.of-card.fresh { animation: trophy-in .6s cubic-bezier(.2, 1.5, .4, 1); box-shadow: 0 0 0 3px #F4D675, 0 16px 34px rgba(0, 0, 0, .42); }
.of-band { position: relative; min-height: 118px; padding: 14px 104px 14px 14px; display: flex; align-items: flex-end; color: #FBF8EF;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--of-c) 70%, #fff 12%) 0%, transparent 60%), linear-gradient(135deg, var(--of-c) 0%, color-mix(in srgb, var(--of-c) 62%, #000) 100%); }
.of-band .crest.of-crest { position: absolute; right: 12px; top: 12px; width: 84px; height: 84px; margin: 0; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35)); }
.of-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.of-id .of-kind { align-self: flex-start; font: 700 11px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; background: rgba(255, 255, 255, .9); color: var(--ink);
  border-radius: 6px; padding: 4px 7px 3px; }
.of-id .of-kind.gold { background: var(--gold); color: var(--ink); } .of-id .of-kind.blue { background: #D6E4FA; color: #1D4C9E; }
.of-id .of-kind.green { background: #CDEFD9; color: #0E5A30; } .of-id .of-kind.red { background: #F8D3D6; color: #8E1B24; }
.of-name { font: 800 27px/1 var(--display); text-shadow: 0 2px 0 rgba(0, 0, 0, .25); overflow-wrap: anywhere; }
.of-lg { font: 600 13px/1.25 var(--body); color: rgba(255, 255, 255, .85); }
.of-lg .stars { color: #F4D675; font-size: 12px; margin-left: 2px; }
.of-body { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.of-role2 > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.of-role2 b { font: 800 19px/1.1 var(--display); }
.of-role2 span { font: 600 13px var(--body); color: #5E6B63; white-space: nowrap; }
.of-role2 i { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 6px; }
.of-role2 em { height: 8px; border-radius: 4px; background: #E3DED0; }
.of-role2.green em.on { background: #22A45D; } .of-role2.blue em.on { background: #3D7BD9; } .of-role2.red em.on { background: #D9434F; }
.of-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.of-tiles > div { border-radius: 12px; background: #EFE9D8; padding: 8px 2px 7px; text-align: center; min-width: 0; }
.of-tiles b { display: block; font: 800 22px/1 var(--display); white-space: nowrap; }
.of-tiles > div:nth-child(2) { container-type: inline-size; }
/* Salário: encolhe com a largura da caixa ("R$ 999 mil" e "R$ 12,5 mi" ≈ 3,8 letras de 1em) para nunca vazar */
.of-tiles b.wage { font-size: min(22px, 25cqi); line-height: 22px; }
.of-tiles small { font: 600 11px var(--body); color: #5E6B63; }
.of-body > .tag.ch-break { align-self: flex-start; margin: -4px 0 0; }
.of-terms { display: flex; flex-direction: column; gap: 6px; }
.of-tl { font: 700 12px var(--display); letter-spacing: .12em; text-transform: uppercase; color: #5E6B63; }
.of-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; background: #EFE9D8; border-radius: 12px; padding: 4px; }
.of-seg button { min-height: 50px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; cursor: pointer; padding: 2px; min-width: 0; }
.of-seg button .tw { width: 18px; height: 18px; margin: 0; }
.of-seg button small { font: 700 11px var(--body); white-space: nowrap; }
.of-seg button.on { background: var(--ink); color: var(--paper); }
.of-terms .term-desc { margin: 0; font: 500 13px/1.3 var(--body); color: #5E6B63; }
button.offer.of-sign { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; border: 0; border-radius: 14px;
  background: var(--gold); color: var(--ink); font: 800 19px/1.1 var(--display); box-shadow: 0 4px 0 #A9861C; cursor: pointer; padding: 8px 12px; text-align: center; margin-top: 2px; }
button.offer.of-sign:active { transform: translateY(2px); box-shadow: 0 2px 0 #A9861C; }
button.offer.of-sign.armed { background: var(--ink); color: var(--paper); box-shadow: 0 4px 0 #000, 0 0 0 3px var(--gold); }
button.offer.of-sign.armed > .lbl { display: none; }
button.offer.of-sign .arm-back { margin: 0; padding: 0; background: none; color: inherit; border-radius: 0; }
button.offer.of-sign .arm-back b { font: 800 19px/1.1 var(--display); color: var(--gold); }
button.offer.of-sign .arm-back small { font: 600 12px var(--body); opacity: .85; }
.of-dots { display: flex; justify-content: center; gap: 6px; margin-top: -8px; }
.of-dots i { width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .3); transition: width .2s ease, background .2s ease; }
.of-dots i.on { width: 22px; background: var(--gold); }
.of-hint { margin: 6px 0 0; text-align: center; font: 600 13px/1.3 var(--body); color: #B9CCBF; }
.of-hint ~ .off-tools, .of-dots ~ .off-tools, .of-rail ~ .off-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin-top: 14px; }
.off-tools .tool { min-height: 52px; border-radius: 14px; }
@media (min-width: 1000px) {
  #app:has(#screen > .of-rail) { max-width: 1120px; }
  .of-rail { flex-wrap: wrap; justify-content: center; overflow: visible; margin: 18px 0 0; padding: 4px 0 8px; gap: 16px; scroll-snap-type: none; }
  .of-card { flex: 1 1 240px; max-width: 320px; }
  .of-rail:has(> .of-card + .of-card) > .of-card:not(.cur) { transform: none; opacity: 1; }
  .of-dots, .of-hint { display: none; }
  #screen:has(> .of-rail) > .off-tools, #screen:has(> .of-rail) > #b-retire, #screen:has(> .of-rail) > .ask-msg { max-width: 520px; width: 100%; margin-left: auto; margin-right: auto; }
}
/* ----- fim O4 ----- */

/* ===== Estilo ousado: lance decisivo (O5) ===== */
/* Placar escuro: escudos, gols, minuto ao vivo piscando e a competição */
.ob5-board { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; background: #050A07; border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.ob5-board .crest { width: 42px; height: 42px; margin: 0; }
.ob5-g { font: 800 42px/1 var(--display); font-variant-numeric: tabular-nums; min-width: 22px; text-align: center; }
.ob5-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ob5-min { display: flex; align-items: center; gap: 6px; font: 800 22px/1 var(--display); color: #FF5A5F; }
.ob5-min i { width: 8px; height: 8px; border-radius: 50%; background: #FF5A5F; animation: ob5-pulse 1s infinite; }
.ob5-x { font: 800 26px/1 var(--display); color: #9DB5A6; }
.ob5-mid small { font: 700 11px/1.15 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #9DB5A6; text-align: center; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob5-board.no-score .ob5-g { display: none; }
.ob5-board.no-score { justify-content: space-between; }
@keyframes ob5-pulse { 50% { opacity: .35; } }
/* Título grande do lance, o que vale (dourado) e o contexto */
.ob5-head { display: flex; flex-direction: column; gap: 6px; }
.ob5-head h2 { margin: 2px 0 0; font: 800 36px/.98 var(--display); text-transform: uppercase; text-wrap: balance; }
.ob5-stakes { margin: 0; display: flex; align-items: flex-start; gap: 8px; font: 700 15px/1.3 var(--body); color: var(--gold); }
.ob5-stakes .tw { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.ob5-txt { margin: 0; font: 500 14.5px/1.4 var(--body); color: #C9D8CE; }
.chips.ob5-facts { gap: 6px; }
.chips.ob5-facts .chip { font-size: 13px; padding: 5px 10px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .1); }
.ob5-how { margin-top: -4px; font: 500 14px/1.4 var(--body); color: #C9D8CE; }
.ob5-how summary { cursor: pointer; font: 700 14px var(--body); color: var(--gold); list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.ob5-how summary::-webkit-details-marker { display: none; }
.ob5-how summary::after { content: '+'; font: 800 18px/1 var(--display); }
.ob5-how[open] summary::after { content: '−'; }
.ob5-how p { margin: 2px 0 0; }
/* Os dois estilos: cartões grandes com a chance pela carta no alto */
.ob5-q { margin: 2px 0 -4px; font: 800 20px var(--display); color: var(--paper); }
.choices.style-grid.ob5-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.btn.opt.style.ob5-st { align-items: flex-start; justify-content: flex-start; gap: 6px; padding: 12px; text-align: left; border-radius: 18px; background: var(--gold); color: var(--ink);
  box-shadow: 0 4px 0 #A9861C; }
.btn.opt.style.ob5-st.s1 { background: #FF9F43; color: #2A1500; box-shadow: 0 4px 0 #B86A1F; }
.btn.opt.style.ob5-st:active { transform: translateY(3px); box-shadow: 0 1px 0 #A9861C; }
.ob5-st-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.ob5-st-top .tw { width: 28px; height: 28px; }
.btn.opt.style.ob5-st .st-pct { margin: 0; padding: 0; background: none; color: inherit; display: flex; flex-direction: column; align-items: flex-end; font: 700 10.5px/1 var(--body); letter-spacing: .02em; opacity: .8; }
.btn.opt.style.ob5-st .st-pct b { font: 800 30px/1 var(--display); color: inherit; opacity: 1; }
.ob5-st-nm { font: 800 23px/1 var(--display); }
.btn.opt.style.ob5-st small { font: 600 12.5px/1.3 var(--body); opacity: .9; color: inherit; }
/* Rodapé: decidir no automático e treinar */
.ob5-foot { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.btn.ghost.ob5-auto { flex: 1; min-width: 0; padding: 8px 10px; font-size: 16px; border-radius: 14px; }
.btn.ghost.ob5-auto small { display: block; font: 600 12px var(--body); color: #C9D8CE; }
.ob5-train { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 14px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06); color: var(--paper); font: 600 14px var(--body); align-self: auto; }
@media (max-width: 360px) { .ob5-head h2 { font-size: 30px; } .ob5-g { font-size: 34px; } .ob5-board .crest { width: 34px; height: 34px; } }
@media (prefers-reduced-motion: reduce) { .ob5-min i { animation: none; } }
/* Tela larga: placar e lance à esquerda; estilos e botões à direita */
@media (min-width: 1000px) {
  #app:has(#screen > .ob5-head) { max-width: 1000px; }
  #screen:has(> .ob5-head) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; align-items: start; grid-auto-flow: dense; }
  #screen:has(> .ob5-head) > * { grid-column: 1; }
  #screen:has(> .ob5-head) > .ob5-q { grid-column: 2; grid-row: 1; align-self: end; margin: 0; }
  #screen:has(> .ob5-head) > .ob5-styles { grid-column: 2; grid-row: 2 / span 3; }
  #screen:has(> .ob5-head) > .ob5-foot { grid-column: 2; grid-row: 5; }
  .btn.opt.style.ob5-st { min-height: 200px; }
}

/* ----- fim O5 ----- */

/* ===== Estilo ousado: fim de carreira (O6) ===== */
.o6-eb { text-align: center; }
.o6-v { margin: 2px 0 0; text-align: center; font: 800 30px/1.02 var(--display); text-wrap: balance; }
.o6-hero { position: relative; display: flex; justify-content: center; margin: 10px -16px 2px; padding: 0 16px; isolation: isolate; overflow-x: clip; overflow-y: visible; }
.o6-hero::before { content: ''; position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; margin: -280px 0 0 -280px; z-index: -1; pointer-events: none; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(244, 214, 117, .09) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 40%, transparent); mask: radial-gradient(closest-side, #000 40%, transparent); }
.o6-hero .fut.card3d-host { min-height: 0; width: 236px; height: 338px; }
.o6-hero .fut canvas:not(.card3d-cv) { width: 100%; height: 100%; }
.o6-medal { position: absolute; left: 50%; top: -8px; margin-left: 84px; width: 72px; height: 72px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #FFE48A 0%, #E2A913 100%); color: #3A2600; transform: rotate(8deg); z-index: 3;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .5), inset 0 -3px 0 rgba(0, 0, 0, .2), inset 0 0 0 2px rgba(255, 255, 255, .35); animation: o6-stamp .5s .2s cubic-bezier(.2, 1.6, .4, 1) both; }
.o6-medal small { font: 700 10px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.o6-medal b { font: 800 40px/.9 var(--display); }
.o6-medal.g-S { background: conic-gradient(from 210deg, #FF9AD8, #9AF6FF, #FFF38A, #9CFFB0, #C2A6FF, #FF9AD8); color: #1E1440; }
.o6-medal.g-B { background: linear-gradient(145deg, #F2F4F6 0%, #A9B2BA 100%); color: #26303A; }
.o6-medal.g-C { background: linear-gradient(145deg, #F2C29A 0%, #B06A35 100%); color: #3A1D08; }
.o6-medal.g-D { background: linear-gradient(145deg, #C9D2CC 0%, #6E7B73 100%); color: #1B231E; }
@keyframes o6-stamp { from { transform: rotate(-20deg) scale(1.8); opacity: 0; } to { transform: rotate(8deg) scale(1); opacity: 1; } }
.o6-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; margin-top: 4px; }
.o6-nums b { display: block; font: 800 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.o6-nums small { font: 600 12px var(--body); color: #C9D8CE; }
.o6-pts { display: flex; flex-direction: column; gap: 6px; }
.o6-pl { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 700 14px var(--body); }
.o6-pl b { font: 800 18px var(--display); }
.o6-pl span { color: #F4D675; }
.o6-pts > i { display: block; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.o6-pts > i em { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #7BE3A0, #F4D675); transform-origin: left; animation: o6-bar 1s .4s ease-out both; }
@keyframes o6-bar { from { transform: scaleX(0); } }
.o6-pts small { font: 600 12px var(--body); color: #B9CCBF; }
.o6-goal { display: flex; flex-direction: column; gap: 2px; margin-top: -4px; }
.o6-goal p { margin: 0; font: 500 13px/1.35 var(--body); color: #D3E4D9; }
.o6-goal p .tw { vertical-align: -2px; }
.fin-acts.o6-acts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.fin-acts.o6-acts.solo { grid-template-columns: 1fr; }
.o6-acts .btn { margin: 0; min-height: 56px; font-size: 19px; padding-left: 8px; padding-right: 8px; white-space: nowrap; }
.o6-acts .dz-btn .tw { width: 20px; height: 20px; }
.o6-acts .btn.ghost.dz-btn { margin: 0; width: auto; border: 2px solid var(--gold); background: rgba(242, 194, 48, .08); color: #FBF8EF; display: flex; align-items: center; justify-content: center; gap: 6px; }
.o6-acts .dz-btn small { display: none; }
.o6-dz .card { margin: 0; }
.o6-prizes { padding: 4px 12px; gap: 0; }
.o6-prizes > .sk, .o6-prizes > .pk-won { padding: 10px 0; }
.o6-prizes .sk { gap: 6px; }
.o6-prizes .sk-h b { font-size: 16px; }
.o6-prizes .sk-h small { font-size: 12px; }
.o6-prizes .sk:not(:has(.sk-d.claim)) .sk-cal { display: none; }
.o6-prizes .pk-won { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; }
.o6-prizes .pk-won-art { width: 44px; height: 46px; transform: scale(.7); transform-origin: left center; }
.o6-prizes .pk-won-txt b { font: 800 16px/1.15 var(--display); }
.o6-prizes .pk-chips { display: block; margin: 2px 0 0; font: 500 12px/1.3 var(--body); color: #C9D8CE; }
.o6-prizes .pk-chips span { display: inline; padding: 0; background: none; border: 0; font: inherit; color: inherit; }
.o6-prizes .pk-chips span + span::before { content: ' · '; }
.o6-prizes .pk-chips em { color: var(--gold); font-style: normal; }
.o6-prizes .pk-won .btn { grid-column: auto; white-space: nowrap; margin: 0; width: auto; min-height: 40px; padding: 0 14px; font-size: 16px; }
.o6-prizes .pk-won > small { display: none; }
.o6-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 2px; }
.o6-links .link-btn { padding: 8px 0; font: 600 14px var(--body); color: #C9D8CE; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.o6-links .link-btn.on { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.o6-links .link-btn.gold { color: var(--gold); font-weight: 700; }
.o6-links .link-btn em { font: 700 11px var(--body); font-style: normal; color: var(--ink); background: var(--gold); border-radius: 999px; padding: 1px 6px; }
.o6-panel[hidden] { display: none; }
#o6-ed .ed-box { margin: 0; }
details.fin-more.o6-panel:not([open]) { display: none; }
@media (min-width: 1000px) {
  #app:has(#screen > .o6-hero) { max-width: 1040px; }
  #screen:has(> .o6-hero) { display: grid; grid-template-columns: 420px minmax(0, 1fr); grid-template-rows: repeat(14, auto) 1fr; column-gap: 32px; align-items: start; }
  #screen:has(> .o6-hero) > * { grid-column: 2; }
  #screen:has(> .o6-hero) > .o6-hero { grid-column: 1; grid-row: 1 / -1; position: sticky; top: 16px; padding-top: 40px; margin: 0; }
  .o6-hero .fut.card3d-host { width: 300px; height: 430px; }
  .o6-medal { margin-left: 110px; top: 24px; width: 84px; height: 84px; }
  .o6-medal b { font-size: 46px; }
  .o6-eb, .o6-v { text-align: left; }
  .o6-links { justify-content: flex-start; }
}
.o6-prizes .pk-chips span { white-space: normal; }
.o6-acts .btn.dz-btn { font-size: 17px; }
/* ----- fim O6 ----- */
.rl-rest { width: 100%; }
.rl-rest small, .rl-miss small { display: block; font: 700 11px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.rl-rest span { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 10px; }
.rl-rest i { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 12.5px; opacity: .7; }
.rl-rest em { font-style: normal; font-weight: 600; }
.rl-after { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(19, 32, 26, .1); font-size: 14px; }
.rl-rec { color: #1E7A45; }
.rl-miss { margin-top: 4px; display: flex; flex-direction: column; gap: 3px; }
.rl-miss span { display: flex; align-items: center; gap: 5px; }
.rl-miss span i { font-style: normal; color: var(--muted); font-size: 12.5px; }
.rl-b3 { width: 40px; height: 40px; }

/* ===== Dicas recolhidas (E1): uma linha antes do botão de ação; tocar abre o texto ===== */
.tip-card { border-radius: 14px; background: #FFF6D6; color: var(--ink); border: 2px solid var(--gold); box-shadow: 0 3px 0 rgba(0, 0, 0, .25); animation: enter .3s ease-out; }
.tip-card summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; cursor: pointer; list-style: none; }
.tip-card summary::-webkit-details-marker { display: none; }
.tip-card .tip-ic { flex: none; display: inline-flex; }
.tip-card summary b { flex: 1; min-width: 0; font: 800 16px/1.15 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tip-card summary em { flex: none; font: 700 13px var(--body); font-style: normal; color: #6B5B1E; }
.tip-card summary em::after { content: ' ›'; display: inline-block; margin-left: 2px; font-weight: 800; transition: transform .2s; }
.tip-card[open] summary em::after { transform: rotate(90deg); }
.tip-body { padding: 0 12px 12px 40px; }
.tip-body p { margin: 0 0 8px; font: 500 15px/1.35 var(--body); }
.tip-acts { display: flex; gap: 8px; }
.tip-acts button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; font: 700 15px var(--display); cursor: pointer; }
.tip-ok { background: var(--ink); color: var(--gold); }
.tip-off { background: transparent; color: #5E5A4E; text-decoration: underline; }
/* Resumo da temporada: a dica aparece junto com os botões (que entram aos poucos) */
.tip-card:has(+ .rv:not(.in)) { opacity: 0; pointer-events: none; }
.tip-card:has(+ .rv) { transition: opacity .35s ease; }
/* Tela baixa: os chips do lance vão para dentro de "Como funciona o lance" */
.ob5-how .ob5-facts { display: none; margin-top: 8px; }
@media (max-height: 700px) {
  .ob5-facts:not(.in) { display: none; }
  .ob5-how .ob5-facts.in { display: flex; }
}
/* Computador: nas grades de 2 colunas a dica fica na coluna das escolhas, sem quebrar a grade */
@media (min-width: 1000px) {
  #screen:has(> .ob5-head) > .tip-card { grid-column: 2; grid-row: 6; }
  #screen:has(> .of-rail) > .tip-card { max-width: 520px; width: 100%; margin-left: auto; margin-right: auto; }
}
/* Temporada ao vivo: a nota anda junto com os números e ganha a cor da faixa (abaixo de 6,3 · até 6,9 · 7,0 ou mais, como "Boa temporada") */
#screen .counter.rate.rt-lo b, #screen:has(> #after) .counter.rate.rt-lo b { color: #FF9A8A; }
#screen .counter.rate.rt-mid b, #screen:has(> #after) .counter.rate.rt-mid b { color: #F2D27A; }
#screen .counter.rate.rt-hi b, #screen:has(> #after) .counter.rate.rt-hi b { color: #7BE3A0; }
/* ----- fim E1 ----- */

/* ===== E2: polegar e toque ===== */
/* Barra presa embaixo (fim de temporada e fim de carreira): seguir fica ao alcance do polegar, com o mesmo degradê da
   criação (.inv-bar.fade). Fica presa só enquanto o lugar dela na tela ainda está abaixo da dobra; depois rola junto. */
.go-bar { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 3; }
.go-bar::before { content: ''; position: absolute; z-index: -1; left: -16px; right: -16px; top: -36px; bottom: calc(-10px - env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to bottom, rgba(15, 61, 42, 0), var(--pitch) 34px); pointer-events: none; }
.go-bar .btn { box-shadow: 0 4px 0 rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .35); }
#screen:has(> .go-bar) .rv { scroll-margin-bottom: 96px; }
/* Fim de temporada: seguir e postar lado a lado (como era no fim do resumo) */
.s-go { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; align-items: stretch; margin-top: 12px; }
.s-go > #b-next, .s-go > #b-post { margin: 0; width: 100%; min-height: 58px; }
.s-go > #b-post { padding: 6px 8px; font-size: 16px; line-height: 1.1; }
.s-go > #b-post small { font-size: 12px; line-height: 1.2; margin-top: 2px; }
@media (min-width: 1000px) { #screen:has(> .s-hero) > .s-go { grid-column: 2; } }
/* Fim de carreira: Compartilhar (dourado) e Nova carreira lado a lado, 52 px; Desafiar logo abaixo, no fluxo */
.fin-acts.o6-acts.go-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.o6-acts.go-bar .btn { min-height: 52px; }
.o6-acts .btn.o6-again { background: #1E3F30; color: #FBF8EF; box-shadow: inset 0 0 0 2px var(--gold), 0 4px 0 rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .35); }
.o6-dz { display: flex; flex-direction: column; gap: 10px; }
.o6-dz .btn.ghost.dz-btn { margin: 0; min-height: 48px; border: 2px solid rgba(242, 194, 48, .7); background: rgba(242, 194, 48, .08); color: #FBF8EF; font-size: 17px; }
.o6-dz .dz-btn .tw { width: 20px; height: 20px; vertical-align: -4px; }
.o6-dz .dz-btn small { font-size: 12px; color: #C9D8CE; }
.o6-links .link-btn { min-height: 44px; }

/* Pré-temporada: enquanto falta escolher a característica, o botão fica no fim da tela, discreto (não cobre as cartas);
   depois da escolha ele volta a ficar preso embaixo, dourado */
.inv-bar:has(#b-skip.wait) { position: static; }
.inv-bar:has(#b-skip.wait)::before { display: none; }
.inv-bar .btn.wait:disabled { background: transparent; box-shadow: inset 0 0 0 2px rgba(242, 193, 46, .45); min-height: 0; padding-top: 10px; padding-bottom: 10px; font-size: 17px; }
/* Tela baixa: a carta dos atributos não fica presa no topo (com a barra de cima ela tomava metade da tela) */
@media (max-height: 760px) and (max-width: 999px) { .mcard, .mcard.metal { position: relative; top: auto; } }
/* Fisioterapeuta: o ícone num selo claro, para não sumir no verde */
.inv-chip > .tw:first-child { box-sizing: content-box; padding: 5px; border-radius: 50%; background: #F3EBD7; flex: none; }

/* Alvos de toque de 44 px */
.seg button, .cr-chips button { min-height: 44px; }
#f-name { min-height: 44px; }
#b-dice1, #b-look { min-height: 44px; }
.tip-acts button { min-height: 44px; }
.ob5-how summary { min-height: 44px; }
#after > details.more > summary { padding: 12px 0; }
/* Ícones da barra (engrenagem e voltar) e links pequenos: área de toque maior sem mudar o desenho */
.bar-btns { gap: 8px; }
.bar-btns .snd-mini, .back-link, .eyebrow .link-btn[data-sheet] { position: relative; }
.bar-btns .snd-mini::after { content: ''; position: absolute; inset: -7px -4px; }
.back-link::after { content: ''; position: absolute; inset: -8px -2px; }
.eyebrow .link-btn[data-sheet]::after { content: ''; position: absolute; inset: -15px -6px; }
/* Opção bloqueada: o motivo ('Sem saldo...') em cor plena, com cadeado; só o resto do cartão fica apagado */
.btn.opt.ob3-opt.locked { opacity: 1; --oc: rgba(242, 194, 48, .4); }
.btn.opt.ob3-opt.locked > :not(small) { opacity: .45; }
.btn.opt.ob3-opt.locked > small { color: #FBF8EF; font-weight: 700; }
.btn.opt.ob3-opt.locked > small .tw { width: 15px; height: 15px; vertical-align: -2px; margin-right: 3px; }
/* Ganhos em verde legível (contraste ≥ 4,5:1) */
.rel .m-d.up { background: #9BF0BC; color: #0B2A1A; }
.why b.up { color: #157A41; font-weight: 800; }
.delta-in.up { color: #157A41; }
.src-card .sr-c.up b { color: #9BF0BC; font-weight: 800; }
/* Piso de 12 px para texto que informa */
.tr-pick .choice .d, .tr-pick .tag { font-size: 12px; }
#after > .story > .news:not(.resenha) .np { font-size: 12px; }
.ob3-tag { font-size: 12px; }
button.mc-at .pips { font-size: 11px; opacity: .85; }
/* ----- fim E2 ----- */

/* ----- E3: toque do lance na tela toda ----- */
/* O toque conta em qualquer lugar (kick.js onTap): a dica fica logo abaixo do palco, maior, e a área abaixo vira zona de toque */
.kick-help { font-size: 17px; font-weight: 600; line-height: 1.35; padding: 4px 8px 0; }
#kick, #rl-kick { cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.desk .kick-help { font-size: 18px; }
/* ----- fim E3 ----- */

/* ----- E4: duelo direto com o rival e revanche ----- */
/* Linha do rival na tela do lance (ui/match.js rivalTag): mesma forma do "o que vale", em vermelho de duelo */
.ob5-rival { margin: 0; display: flex; align-items: flex-start; gap: 8px; font: 600 14px/1.35 var(--body); color: #FFB3B8; }
.ob5-rival .tw { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.ob5-rival b { color: #FFE1E3; font-weight: 800; }
/* Placar histórico da revanche no balanço do fim (ui/finale.js rivalBlock) */
.fin-rival .fr-hist { display: block; margin: -2px 0 4px; font-size: 12.5px; font-weight: 600; color: #4A5A78; }
/* ----- fim E4 ----- */

/* ----- E5: marcos da temporada e progresso das conquistas ----- */
/* Marco redondo no resumo (res.milestones, ui/season.js): mesma faixa do prêmio, em tinta com borda dourada para não parecer troféu */
#after .award.milestone:not(.ballon) { background: #12261B; color: #FBE7A1; box-shadow: inset 0 0 0 2px var(--gold), 0 4px 0 rgba(0, 0, 0, .3); font: 800 17px/1.15 var(--display); }
#after .award.milestone .tw { width: 22px; height: 22px; flex: none; }
/* Conquistas: barra do recorde (melhor carreira guardada) nas trancadas e grupo "Quase lá" */
.ach-prog { position: relative; display: block; height: 16px; margin-top: 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.ach-prog i { display: block; height: 100%; background: linear-gradient(90deg, #A9861C, var(--gold)); border-radius: inherit; }
.ach-prog em { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 800 11px var(--display); font-style: normal; letter-spacing: .04em; color: #FBF8EF; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.ach-near .ach { box-shadow: inset 0 0 0 2px rgba(242, 194, 48, .55); }
.ach-near .ach b { color: #FBF8EF; }
.ach-near-t { color: var(--gold); }
/* ----- fim E5 ----- */

/* ----- E6: placar escuro no lance inteiro e "pouco espaço" no formato O3 ----- */
/* Faixa baixa do placar (O5) em cima da cena do minigame e do treino (ui/match.js board, ui/training.js) */
.ob5-board.mini { gap: 8px; padding: 7px 12px; border-radius: 14px; min-height: 52px; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.ob5-board.mini .crest { width: 30px; height: 30px; }
.ob5-board.mini .ob5-g { font-size: 28px; min-width: 16px; }
.ob5-board.mini .ob5-mid { flex-direction: row; justify-content: center; gap: 8px; }
.ob5-board.mini .ob5-min { font-size: 17px; }
.ob5-board.mini .ob5-x { font-size: 18px; }
.ob5-board.mini small { font-size: 10.5px; }
/* A cena perde a altura que a faixa ocupa (o rótulo de cima saiu; a faixa é ~30 px maior) */
.ob5-board.mini + #kick { min-height: calc(100svh - var(--bar-h, 0px) - env(safe-area-inset-top, 0px) - 150px); }
@media (min-width: 1280px) and (min-height: 860px) {
  html.desk .ob5-board.mini + #kick { min-height: calc(100svh / var(--z) - var(--bar-h, 0px) - 150px); }
}
/* Treino: "TREINO" no lugar do minuto, acertos de quantas tentativas no lugar do placar */
.trn-board { justify-content: space-between; }
.trn-board .ob5-mid { flex: 1; }
.ob5-min.trn-live { color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }
.ob5-min.trn-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.trn-sc { display: flex; align-items: baseline; gap: 4px; flex: none; max-width: 34%; }
.trn-sc b { font: 800 28px/1 var(--display); font-variant-numeric: tabular-nums; color: #fff; }
.trn-sc small { font: 700 11px/1.15 var(--display); letter-spacing: .1em; text-transform: uppercase; color: #9DB5A6; text-align: right; }
/* Treino: os passos como três cartões numerados; pular vira link */
.trn-steps.ob5-steps { list-style: none; padding: 0; background: none; gap: 10px; }
.ob5-steps li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #050A07; border: 1px solid rgba(255, 255, 255, .12); }
.ob5-steps li > b { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); font: 800 19px/1 var(--display); }
.ob5-steps li > span { padding-top: 6px; }
.trn-skip-link { align-self: center; min-height: 44px; padding: 0 12px; border: 0; background: none; color: #CFE3D6; font: 600 15px var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* Resultado do lance no campo escuro: título grande e texto, sem o cartão creme */
.ob5-res { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 6px 4px 2px; animation: enter .3s ease-out; }
.ob5-res .mr-big { font: 800 58px/1 var(--display); letter-spacing: .02em; animation: mr-pop .7s cubic-bezier(.2, 1.6, .4, 1); }
.ob5-res.ok .mr-big { color: #5FD690; text-shadow: 0 0 26px rgba(95, 214, 144, .45); }
.ob5-res.ko .mr-big { color: #FF6B73; }
.ob5-res .mr-txt { margin: 0; font: 600 16px/1.4 var(--body); color: #E3EEE7; text-wrap: pretty; }
.trn .ob5-res .mr-big { font-size: 48px; }
/* O gol entra contando no placar */
.ob5-g.bump { animation: ob5-bump .6s cubic-bezier(.2, 1.6, .4, 1); color: var(--gold); }
@keyframes ob5-bump { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.35); opacity: 1; } 100% { transform: none; } }
/* Título grande ganho no lance: faixa dourada com a taça */
.ob5-prize { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 16px; background: linear-gradient(135deg, #F4D675, #E0A800 60%, #B8860B);
  color: var(--ink); box-shadow: 0 10px 26px rgba(224, 168, 0, .35); animation: mr-pop .7s cubic-bezier(.2, 1.6, .4, 1) .25s both; }
.ob5-prize svg, .ob5-prize img { width: 52px; height: 52px; object-fit: contain; flex: none; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .3)); }
.ob5-prize span { display: flex; flex-direction: column; min-width: 0; }
.ob5-prize small { font: 700 12px var(--display); letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
.ob5-prize b { font: 800 26px/1.05 var(--display); text-transform: uppercase; }
/* Confete curto (uma queda só), por cima de tudo e sem pegar o toque */
.ob5-confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.ob5-confetti i { animation-iteration-count: 1; animation-fill-mode: both; }
@media (prefers-reduced-motion: reduce) { .ob5-g.bump, .ob5-prize, .ob5-res .mr-big { animation: none; } }
@media (max-width: 360px) { .ob5-res .mr-big { font-size: 48px; } .ob5-board.mini .ob5-g { font-size: 24px; } .ob5-board.mini .crest { width: 26px; height: 26px; } .ob5-prize b { font-size: 22px; } }
@media (min-width: 1000px) { #app:has(#screen > .ob5-res) { max-width: 560px; } }
/* Pouco espaço (ui/offers.js squad): faixa com as cores do clube no lugar da cor do tom; escudo no círculo */
.event-card.ob3.sq-card::before { background: linear-gradient(90deg, var(--k1) 0 50%, var(--k2) 50% 100%); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15); }
.event-card.ob3.sq-card .ob3-ic .crest { width: 62px; height: 62px; margin: 0; }
.event-card.ob3.sq-card .ob3-txt b { color: var(--ink); }
/* ----- fim E6 ----- */

/* ===== E7: Copa e Mundial no estilo ousado (ui/worldcup.js) ===== */
/* Fundo com as cores da bandeira no lugar do escudo do clube (core.js clubBg com cores) */
#club-bg.nat { background: linear-gradient(118deg, var(--n1) 0 34%, var(--n2) 34% 66%, var(--n3) 66%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .07) 55%, transparent); mask-image: linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .07) 55%, transparent); }
/* Lance e pênaltis: o mesmo placar escuro do lance da temporada, com bandeira e nome de cada lado */
.wc-o5 { display: flex; flex-direction: column; gap: 12px; }
#wc-after:has(> .wc-o5) { scroll-margin-top: calc(var(--bar-h, 0px) + 10px); }
.wc-board { gap: 8px; }
.wcb-t { flex: none; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.wcb-t .tw { width: 40px; height: 40px; }
.wcb-t small { max-width: 100%; font: 700 11px/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: #C9D8CE; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-board .ob5-mid .ob5-min { white-space: nowrap; }
.wc-board.mini .wcb-t { width: auto; }
.wc-board.mini .wcb-t small { display: none; }
.wc-board.mini .wcb-t .tw { width: 30px; height: 30px; }
.wc-o5 .ob5-head h2 { font-size: 32px; }
/* Fim da Copa: faixa dourada (campeão), prateada (vice) ou escura com a fase em que caiu */
.wc-end { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 6px 4px; text-align: center; animation: trophy-in .9s cubic-bezier(.2, 1.5, .4, 1); }
.wc-end.champ { background: radial-gradient(circle at 50% 28%, rgba(255, 226, 122, .4), rgba(255, 226, 122, 0) 68%); }
.wc-end.champ .trophy, .wc-end.champ .trophy-real { filter: drop-shadow(0 0 18px rgba(255, 214, 90, .9)); }
.wc-end .wc-bigflag { font-size: 72px; }
.wc-end .crest.xl { margin: 0; }
.wc-band { display: block; width: 100%; padding: 10px 14px; border-radius: 14px; font: 800 26px/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; }
.wc-band.gold { background: var(--gold); color: var(--ink); box-shadow: 0 4px 0 #A9861C, 0 10px 26px rgba(224, 168, 0, .3); }
.wc-band.silver { background: linear-gradient(135deg, #F1F4F6, #C3CBD2 60%, #9EA8B1); color: #1C2329; box-shadow: 0 4px 0 #7D868E; }
.wc-band.phase { background: #050A07; color: var(--paper); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.wc-end-who { font: 600 15px/1.35 var(--body); color: #D9F5E3; }
.wc-end-who .tw { vertical-align: -3px; }
#wc-after > .sx-lbl { margin: 4px 0 -4px; }
.wc-end-stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.wc-end-stats span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px; background: rgba(255, 255, 255, .08);
  font: 600 12.5px/1.15 var(--body); color: #C9D8CE; text-align: center; }
.wc-end-stats b { font: 800 28px/1 var(--display); color: var(--paper); }
@media (max-width: 360px) { .wc-o5 .ob5-head h2 { font-size: 28px; } .wcb-t { width: 54px; } .wcb-t .tw { width: 34px; height: 34px; } .wc-band { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { .wc-end { animation: none; } }
/* ----- fim E7 ----- */

/* ===== E8: Carreira Relâmpago no estilo ousado (ui/relampago.js) e pacotinho com palco escuro (ui/packs.js) ===== */
/* Placar do alto: casa, nome da casa e pontos (reaproveita .ob5-board) */
.rl-ob { justify-content: space-between; padding: 10px 14px; }
.rl-ob-c { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 54px; }
.rl-ob-c small { font: 700 10.5px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #9DB5A6; }
.rl-ob-c b { font: 800 30px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--paper); }
.rl-ob-c.pts { align-items: flex-end; }
.rl-ob-c.pts b { color: var(--gold); }
.rl-ob-nm { font: 800 26px/1 var(--display); text-transform: uppercase; color: var(--paper); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-head .rl-rule { margin: 8px 0; }
/* Faixa das 5 casas em escuro */
.rl-board .rl-cell { background: #050A07; border: 1px solid rgba(255, 255, 255, .1); }
.rl-board .rl-cell.done:not(.out) { border-color: rgba(95, 214, 144, .45); }
.rl-board .rl-cell.out { background: rgba(216, 64, 74, .2); }
/* Escolher a bola: bolas grandes no gramado, de frente para o gol */
.rl-pick { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px; text-align: center; overflow: hidden;
  min-height: max(250px, calc(100svh - var(--bar-h, 0px) - env(safe-area-inset-top, 0px) - 330px)); padding: 16px 10px 26px; border-radius: 18px;
  background: repeating-linear-gradient(180deg, #2E8B4F 0 34px, #277C46 34px 68px); border: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 0 40px rgba(0, 0, 0, .3);
  animation: rl-pop .35s cubic-bezier(.2, 1.5, .4, 1); }
.rl-pick::before { content: ''; position: absolute; left: 50%; top: 14px; width: 62%; height: 38%; transform: translateX(-50%); border: 3px solid rgba(255, 255, 255, .7); border-bottom: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .12) 0 2px, transparent 2px 12px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .12) 0 2px, transparent 2px 12px); }
.rl-pick::after { content: ''; position: absolute; left: 0; right: 0; top: calc(14px + 38%); border-top: 3px solid rgba(255, 255, 255, .6); }
.rl-pick > small { position: relative; margin: 0; font: 800 18px var(--display); letter-spacing: .08em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
.rl-pick .rl-balls { position: relative; gap: 6px; }
.rl-pick .rl-ball { width: clamp(50px, 15.5vw, 66px); height: clamp(50px, 15.5vw, 66px); background: rgba(0, 0, 0, .22); }
.rl-pick .rl-ball:not([disabled]) { box-shadow: inset 0 0 0 3px var(--gold), 0 6px 14px rgba(0, 0, 0, .35); }
.rl-pick .rl-ball .tw, .rl-pick .rl-b3 { width: 78%; height: 78%; }
.rl-pick .rl-ball i { background: #050A07; box-shadow: 0 0 0 2px var(--gold); }
.rl-pick .rl-ball.g[disabled] { background: rgba(95, 214, 144, .45); opacity: .6; }
.rl-pick .rl-ball.x[disabled] { background: rgba(216, 64, 74, .45); opacity: .6; }
/* Depois da cobrança: o palco fica e o resultado entra como carimbo por cima */
.rl-stage { display: grid; }
.rl-stage > * { grid-area: 1 / 1; min-width: 0; }
.rl-stage > .rl-reveal { z-index: 3; margin: 0; align-self: stretch; justify-content: center; gap: 8px; padding: 16px 14px; border-radius: 18px;
  background: rgba(5, 10, 7, .8); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); color: var(--paper); animation: enter .25s ease-out; }
.rl-stamp { display: inline-block; padding: 4px 18px; border: 4px solid currentColor; border-radius: 12px; font: 800 52px/1 var(--display); text-transform: uppercase; letter-spacing: .04em;
  transform: rotate(-6deg); animation: rl-stamp .45s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes rl-stamp { from { opacity: 0; transform: rotate(-6deg) scale(2.2); } }
.rl-reveal.ok .rl-stamp { color: #5FD690; text-shadow: 0 0 22px rgba(95, 214, 144, .45); }
.rl-reveal.ko .rl-stamp { color: #FF6B73; }
.rl-stage > .rl-reveal > small { font: 700 14px var(--display); letter-spacing: .08em; text-transform: uppercase; color: #C9D8CE !important; }
.rl-stage .rl-prize em { color: var(--paper); }
.rl-stage .rl-prize .rl-ga { color: var(--gold); }
.rl-stage .rl-gas i, .rl-stage .rl-sum small, .rl-stage .rl-rest small { color: #9DB5A6; }
.rl-stage .rl-prize small { color: var(--gold); }
.rl-stage .rl-pts { color: #5FD690; font-size: 24px; }
.rl-stage .rl-rest i { opacity: .85; }
/* Resultado: placar escuro, colunas do duelo, detalhe recolhido */
.rl-rh { margin-bottom: 10px; }
.rl-rh h2 { margin: 2px 0 0; font: 800 34px/.98 var(--display); text-transform: uppercase; text-wrap: balance; }
.rl-sb { gap: 8px; margin-bottom: 10px; }
.rl-sb-t { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.rl-sb-t:last-child { align-items: flex-end; }
.rl-sb-t b { max-width: 100%; font: 800 15px/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: #C9D8CE; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-sb-t.me b { color: var(--gold); }
.rl-sb .ob5-g { color: #9DB5A6; }
.rl-sb .ob5-g.win { color: var(--paper); }
.rl-sb.solo .rl-grade { width: 52px; height: 52px; border-radius: 12px; font-size: 32px; flex: none; }
.rl-sb.solo .ob5-mid { align-items: flex-start; }
.rl-sb.solo .ob5-mid small { text-transform: none; letter-spacing: 0; font: 600 13px var(--body); }
.rl-sb.solo .rl-ob-c.pts b { font-size: 38px; }
/* Notas fortes (no lugar do pastel) */
.rl-grade { background: #C9D3CC; color: #050A07; box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.rl-grade.g-S { background: var(--gold); }
.rl-grade.g-A { background: #5FD690; }
.rl-grade.g-B { background: #7FC4FF; }
.rl-grade.g-C { background: #E8DCC0; }
.rl-grade.g-D { background: #FF6B73; color: #2A0508; }
.rl-duel { grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 10px; }
.rl-col { background: #050A07; border: 1px solid rgba(255, 255, 255, .1); gap: 6px; padding: 10px; }
.rl-col.me { border-color: var(--gold); box-shadow: none; }
.rl-col-h b { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: #C9D8CE; }
.rl-col.me .rl-col-h b { color: var(--gold); }
.rl-mini em { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }
.rl-res { margin: 0 0 10px; padding: 12px 14px; border-radius: 16px; background: #050A07; border: 1px solid rgba(255, 255, 255, .1); color: var(--paper); }
.rl-res .rl-combos { margin-top: 0; }
.rl-res .rl-after { margin-top: 0; padding-top: 0; border-top: 0; }
.rl-res .rl-combos + .rl-after { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .1); }
.rl-res .rl-rec { color: #5FD690; }
.rl-res .rl-miss small, .rl-res .rl-miss span i { color: #9DB5A6; }
.rl-det { margin: -6px 0 6px; }
.rl-det[open] { padding: 0 12px 6px; border-radius: 16px; background: #050A07; border: 1px solid rgba(255, 255, 255, .1); }
.rl-det[open] summary { margin: 0 -2px; }
.rl-det .rl-row { border-top-color: rgba(255, 255, 255, .1); color: var(--paper); }
.rl-det .rl-row small, .rl-det .rl-row b i { color: #9DB5A6; }
.rl-det .rl-row.best b { color: #5FD690; }
.rl-det .rl-row.out b { color: #FF6B73; }
.rl-det .rl-how { grid-template-columns: 74px 1fr; align-items: baseline; font-size: 13px; line-height: 1.35; }
.rl-det .rl-how b { font: 800 13px var(--body, inherit); color: var(--gold); }
.rl-bands { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 4px; border-top: 1px solid rgba(255, 255, 255, .1); }
.rl-bands span { font-size: 13px; color: #9DB5A6; padding: 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, .06); }
.rl-bands span b { color: var(--paper); }
.rl-bands span.on { background: var(--gold); color: var(--ink); }
.rl-bands span.on b { color: var(--ink); }
.rl-sb ~ .rl-board { margin-bottom: 10px; }
@media (max-width: 360px) { .rl-ob-nm { font-size: 22px; } .rl-ob-c b { font-size: 26px; } .rl-stamp { font-size: 44px; } .rl-rh h2 { font-size: 30px; } .rl-sb .ob5-g { font-size: 34px; } }
@media (prefers-reduced-motion: reduce) { .rl-stamp { animation: none; } }
@media (min-width: 1280px) and (min-height: 860px) {
  html.desk .rl-pick { min-height: max(250px, calc(100svh / var(--z) - var(--bar-h, 0px) - 330px)); }
}
/* Pacotinho: palco radial escuro, envelope em contraste e "Toque para abrir" logo abaixo dele */
.pk-wrap { background: radial-gradient(circle at 50% 38%, #12301F, #050A07 70%); }
.pk-holder { margin: auto 0 0; }
.pk-holder .pk-pack { filter: drop-shadow(0 0 1.5px rgba(242, 194, 48, .9)) drop-shadow(0 0 26px rgba(242, 194, 48, .28)) drop-shadow(0 16px 20px rgba(0, 0, 0, .6)); }
.pk-cta { margin: 22px 0 0; font: 800 26px/1 var(--display); text-align: center; color: var(--gold); }
.pk-idle { margin-top: auto; padding-top: 18px; }
/* Fim da revelação (1 peça): garantia e botões entram embaixo, sem tela de resumo */
.pk-stage.end { cursor: default; }
.pk-stage.last .pk-card { margin-top: 8px; }
.pk-stage.last .pk-info { margin-top: 18px; gap: 6px; }
.pk-foot.pk-end { align-self: stretch; align-items: stretch; gap: 12px; font: inherit; color: inherit; cursor: default; }
.pk-end .pk-pity { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 10px 14px; font-size: 14px; }
.pk-end .pk-acts { margin-top: 0; gap: 8px; }
.pk-acts .btn.ghost { margin: 0; }
@media (max-height: 700px) {
  .pk-stage.last { padding-top: calc(70px + env(safe-area-inset-top, 0px)); }
  .pk-stage.last .pk-card { width: 170px; height: 194px; margin-top: 0; }
  .pk-stage.last .pk-name { font-size: 28px; }
  .pk-stage.last .pk-info { margin-top: 12px; }
  .pk-stage.last .pk-desc { font-size: 14px; }
}
/* ----- fim E8 ----- */

/* ===== E9: reta final antes do lance decisivo (ui/season.js, preRace) ===== */
.pr-path .rt-r { grid-template-columns: 58px 20px minmax(0, 1fr) auto; animation: pr-in .32s ease-out both; }
.pr-path .rt-r i { font: 700 12px var(--display); letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.pr-path .rt-r b { font: 700 12px var(--body); letter-spacing: .04em; text-transform: uppercase; color: #8FD6AE; }
@keyframes pr-in { from { opacity: 0; transform: translateY(6px); } }
.pr-duel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(180deg, #0E1A14, #07110C); border: 1.5px solid rgba(242, 194, 48, .55); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); animation: pr-in .35s ease-out both; }
.pr-duel[hidden] { display: none; }
.pr-duel .crest { width: 44px; height: 44px; margin: 0; }
.pr-duel .pr-x { display: grid; gap: 2px; text-align: center; font: 600 14px/1.25 var(--body); color: #D3E4D9; }
.pr-duel .pr-x b { font: 800 20px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.sx-live.hold .sx-dot { background: var(--gold); }
.sx-live.hold > b { color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .pr-path .rt-r, .pr-duel { animation: none; } }

/* ===== Conferência (E10) ===== */
/* O carimbo do resultado entra com scale(2,2): crescendo do canto de cima à direita a página não rola para o lado por um instante */
.ob3-stamp { transform-origin: 100% 0; }

/* ===== Visual novo (2026-10-27): um bloco por grupo de telas; cada bloco usa as variáveis do topo (--tx-*, --panel, --r-*) ===== */
/* ----- V0: componentes comuns e computador (botões, abas, etiquetas, janelas, barra do topo, moldura no computador) ----- */
/* Etiquetas: um formato só (ARRISCADA, SEGURA, NOVA, BASE, EMPRÉSTIMO, BANCO, RETA FINAL); a cor dá o sentido */
.tag, .ob3-tag, .of-id .of-kind, .choice.tr > .tag, .tr-pick .tag {
  display: inline-block; padding: 4px 7px 3px; border-radius: 6px; font: 700 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.choice .d .tag { line-height: 1.2; }

/* Escolhido: um jeito só em abas, segmentados e chips. No verde, trilho escuro e o escolhido em creme com texto escuro;
   no papel (ficha, propostas), o contrário: escolhido em verde-escuro com texto creme */
.seg.cfg-seg, .seg.fb-seg, .rk-tabs, .sl-seg, .ed-tabs {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: var(--r-md); background: rgba(0, 0, 0, .24); }
.seg.cfg-seg button, .seg.fb-seg button, .rk-tabs button, .sl-seg button, .ed-tabs button {
  min-height: 44px; height: auto; padding: 8px 6px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--tx-2); font: 700 16px/1.1 var(--display); box-shadow: none; }
.seg.cfg-seg button.on, .seg.fb-seg button.on, .rk-tabs button.on, .sl-seg button.on, .ed-tabs button.on {
  background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.desk .seg.cfg-seg button:not(.on):hover, .desk .seg.fb-seg button:not(.on):hover, .desk .rk-tabs button:not(.on):not(:disabled):hover,
.desk .sl-seg button:not(.on):hover, .desk .ed-tabs button:not(.on):hover { background: var(--panel-2); color: var(--tx-1); }
/* Chips de filtro (ranking, itens, opinião): pílula; o escolhido igual às abas */
.rk-chips button, .mi-tabs button, .fb-likes button {
  min-height: 40px; padding: 0 14px; border: 1px solid var(--panel-line); border-radius: 999px; background: var(--panel); color: var(--tx-2); font: 700 15px var(--display); }
.rk-chips button.on, .mi-tabs button.on, .fb-likes button.on { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.mi-tabs button small { color: inherit; }
.fb-rate button.on { background: rgba(251, 248, 239, .14); box-shadow: inset 0 0 0 2px var(--paper); }
/* Abas de texto (Sala de Troféus): sublinhado creme */
.sl-tabs button { color: var(--tx-3); }
.sl-tabs button.on { color: var(--tx-1); border-bottom-color: var(--paper); }
.sl-tabs button.on span { color: var(--tx-2); }
/* No papel */
.sh-tabs button { color: var(--ink-2); }
.sh-tabs button.on { background: var(--ink); color: var(--paper); box-shadow: none; }

/* Botão secundário: mais leve que o dourado (uma ação principal por tela) */
.btn.ghost { padding: 10px 16px; min-height: 48px; font: 700 17px/1.15 var(--display); background: transparent; color: var(--tx-1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); }
.btn.ghost small { font: 600 13px/1.25 var(--body); color: var(--tx-3); margin-top: 2px; }
.desk .btn.ghost:not(:disabled):hover { background: var(--panel-2); }
.ask .btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(19, 32, 26, .2); }
.desk .ask .btn.ghost:not(:disabled):hover { background: rgba(19, 32, 26, .06); }

/* Voltar: pílula com a seta desenhada, mesma altura em toda tela */
.back-link { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px 0 12px; border-radius: 999px; background: var(--panel-2); color: var(--tx-1); font: 700 15px var(--body); }
.desk .back-link:hover { background: rgba(255, 255, 255, .16); }

/* Links de texto: 14 px e área de toque de 44 px, sem mudar o desenho de link */
.link-btn { position: relative; font-size: 14px; }
.eyebrow .link-btn { font-size: 13px; }
.link-btn::after { content: ''; position: absolute; inset: -12px -4px; }
/* Rótulo de seção (conquistas, Sala, despedida): igual ao eyebrow; no papel, cinza do papel */
.room-title { margin-top: 4px; font: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.room-title.ach-near-t { color: var(--gold-2); }
.final .room-title, .card .room-title { color: var(--ink-2); }
/* Rolagem até um bloco (resumo, Copa): o bloco para abaixo da barra grudada no topo, não embaixo dela */
html:has(#bar:not([hidden])) { scroll-padding-top: calc(var(--bar-h, 0px) + 12px); }
/* Folha sem abas (pedir ao empresário): do tamanho do conteúdo, até o limite de sempre. A ficha (com abas) fica com a
   altura fixa para não pular de tamanho ao trocar de aba, um pouco mais baixa (menos creme vazio nas abas curtas) */
.sheet:not(:has(.sh-tabs)) { height: auto; max-height: min(82vh, 700px); }
html.desk .sheet:not(:has(.sh-tabs)) { height: auto; max-height: min(calc(82vh / var(--z, 1)), 700px); }
.sheet:not(:has(.sh-tabs)) > .sh-body { flex: 1 1 auto; min-height: 0; }
.sheet:has(.sh-tabs) { height: min(74vh, 640px); }
html.desk .sheet:has(.sh-tabs) { height: min(calc(74vh / var(--z, 1)), 640px); }
/* Celular estreito: o par do fim da temporada (dourado + postar) cabe sem quebrar o dourado em duas linhas */
@media (max-width: 370px) {
  .s-go, #after > .rv.s-acts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .s-go > #b-next, #after > .s-acts > #b-next { padding-inline: 8px; font-size: 18px; }
  .s-go > #b-post, #after > .s-acts > #b-post { padding-inline: 6px; font-size: 15px; }
}

/* Janela de confirmação: título, texto e as duas ações com o mesmo peso de sempre */
.ask { width: min(100%, 360px); gap: 10px; padding: 20px 18px 16px; border-radius: var(--r-xl); box-shadow: var(--sh-float), 0 0 0 1px rgba(0, 0, 0, .08); }
.ask b { font: var(--t-h1); font-size: 26px; line-height: 1.05; text-wrap: balance; }
.ask p { margin: 0 0 6px; font: 500 16px/1.4 var(--body); color: var(--ink-2); }
.ask .btn { margin: 0; }

/* Dica da primeira vez: bloco de apoio (escuro), sem competir com o cartão e o botão dourado */
.tip-card { background: var(--panel-2); color: var(--tx-1); border: 1px solid var(--panel-line); box-shadow: none; }
.tip-card summary b { color: var(--tx-1); font: 700 16px/1.15 var(--display); }
.tip-card summary em { color: var(--label); }
.tip-body p { color: var(--tx-2); }
.tip-ok { background: var(--paper); color: var(--ink); }
.tip-off { color: var(--tx-3); }

/* Barra do topo: fundo de placar (mais escuro que o gramado), separada do conteúdo que rola por baixo */
.bar { background: rgba(7, 17, 12, .9); border-color: var(--panel-line); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
/* Barra do topo no computador (tela larga): uma linha só, como um placar (nome, medidores com o estado, números, nota) */
.rel .ml .mv { display: none; }
@media (min-width: 1000px) {
  .bar { grid-template-columns: minmax(150px, 1.25fr) repeat(3, minmax(92px, 1fr)) auto auto auto; column-gap: 20px; padding: 10px 12px 10px 16px; border-radius: var(--r-lg); }
  .bar > .rel { display: contents; }
  .bar .bar-id { grid-column: 1; grid-row: 1; }
  .bar .rel .m { grid-row: 1; align-self: center; gap: 6px; }
  .bar .rel .m:nth-child(1) { grid-column: 2; } .bar .rel .m:nth-child(2) { grid-column: 3; } .bar .rel .m:nth-child(3) { grid-column: 4; }
  .bar .rel .ml { justify-content: flex-start; }
  .bar .rel .ml .mv { display: block; margin-left: auto; font: 600 13px var(--body); font-style: normal; letter-spacing: 0; text-transform: none; color: var(--tx-3); white-space: nowrap; }
  .bar .bar-tot { grid-column: 5; grid-row: 1; gap: 14px; padding-left: 20px; border-left: 1px solid var(--panel-line); }
  .bar .ovr { grid-column: 6; grid-row: 1; }
  .bar .bar-btns { grid-column: 7; grid-row: 1; align-self: center; }
}

/* Computador e tablet deitado: a moldura tem a mesma largura em toda tela da carreira (antes mudava de tela para tela);
   a barra do topo ocupa a moldura toda e a tela fica no meio dela, com a largura que tiver */
@media (min-width: 1000px) {
  /* moldura: até 1120 px; na tela menor que isso ocupa a largura toda (como antes). A barra fica 24 px para dentro de cada lado
     (o 100vw conta a barra de rolagem; a moldura é fixa e não rola para o lado) */
  :root { --frame: min(1120px, 100vw / var(--z, 1)); --bar-w: min(1088px, 100vw / var(--z, 1) - 48px); }
  body:has(#bar:not([hidden]))::before { content: ''; position: fixed; z-index: -1; top: 0; bottom: 0; left: 50%; width: var(--frame); transform: translateX(-50%); pointer-events: none;
    background: var(--pitch) repeating-linear-gradient(0deg, transparent 0 56px, rgba(255, 255, 255, .025) 56px 112px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 80px rgba(0, 0, 0, .55); }
  body:has(#bar:not([hidden])) #app { background: none; box-shadow: none; }
  #bar:not([hidden]) { margin-inline: calc((100% - var(--bar-w)) / 2); }
}
/* ----- fim V0 ----- */

/* ----- V1: início e telas de fora (Minhas carreiras, ranking, conquistas, conta, configurações, opinião) ----- */
/* Minhas carreiras: Sala e atalhos juntos; Hall da Fama em linhas com a nota (mesma etiqueta do ranking) e os pontos em destaque */
.mc-side { display: flex; flex-direction: column; gap: 10px; }
.mc-side .sl-home { margin: 0; }
@media (max-width: 380px) { .mc-side .sl-minis .ni:first-child { display: none; } }
.mc-hall { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.mc-list { display: flex; flex-direction: column; gap: 8px; }
.mc-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 68px; padding: 10px 14px 10px 10px;
  border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--panel-line); }
.mc-row.best { background: linear-gradient(90deg, rgba(242, 194, 48, .13), rgba(242, 194, 48, .03) 70%), var(--panel); border-color: rgba(244, 214, 117, .38); }
.mc-row .rk-g { width: 42px; height: 42px; border-radius: 12px; font-size: 26px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18); }
.mc-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mc-who b { font: 700 18px/1.12 var(--display); letter-spacing: .01em; color: var(--tx-1); }
.mc-who small { font: 500 13px/1.3 var(--body); color: var(--tx-3); }
.mc-pts { font: 800 26px/1 var(--display); color: var(--tx-1); text-align: right; font-variant-numeric: tabular-nums; }
.mc-pts small { display: block; margin-top: 2px; font: 600 12px var(--body); color: var(--tx-3); }
.mc-row.best .mc-pts { color: var(--gold-2); }
.mc-empty { display: flex; align-items: center; gap: 12px; margin: 0; padding: 16px; border-radius: var(--r-md); border: 1.5px dashed rgba(255, 255, 255, .2);
  font: 500 15px/1.35 var(--body); color: var(--tx-2); }
.mc-empty .ico { flex: none; width: 30px; height: 30px; color: var(--label); }

/* Conquistas: cabeçalho com a barra; blocos Quase lá → Conquistadas → Faltam; a conquistada em papel creme (figurinha colada),
   a que falta como espaço vazio tracejado; Quase lá uma por linha, com a barra larga */
.ach-head { display: flex; flex-direction: column; gap: 6px; }
.ach-head .ach-bar { height: 10px; margin-top: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.ach-head .ach-bar i { background: linear-gradient(90deg, var(--gold-deep), var(--gold) 60%, var(--gold-2)); }
.ach-head small { font: 600 13px var(--body); color: var(--tx-3); }
.ach-page { display: flex; flex-direction: column; gap: 18px; margin-top: 6px; }
.ach-sec { display: flex; flex-direction: column; gap: 10px; }
.ach-sec > .eyebrow { display: flex; align-items: center; gap: 8px; }
.ach-sec > .eyebrow span { padding: 1px 8px; border-radius: 999px; background: var(--panel-2); color: var(--tx-2); font: 700 12px/18px var(--body); letter-spacing: 0; }
.ach-page .ach-grid { gap: 8px; }
.ach-page .ach { gap: 2px; padding: 9px 9px 10px; border-radius: var(--r-md); background: rgba(255, 255, 255, .03); border: 1px dashed rgba(255, 255, 255, .2); color: var(--tx-3); }
.ach-page .ach .ic { margin-bottom: 2px; }
.ach-page .ach b { color: var(--tx-2); }
.ach-page .ach .d { font: 500 12px/1.28 var(--body); color: var(--tx-3); }
.ach-page .ach.on { background: var(--paper); border: 1px solid transparent; box-shadow: var(--sh-press); }
.ach-page .ach.on b { color: var(--ink); }
.ach-page .ach.on .d { color: var(--ink-2); }
.ach-page .ach.on .by { margin-top: auto; padding-top: 2px; color: var(--gold-ink); font-size: 12px; }
.ach-page .ach-near { grid-template-columns: 1fr; }
.ach-page .ach-near .ach { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: center;
  border: 1.5px solid rgba(242, 194, 48, .5); background: rgba(242, 194, 48, .07); box-shadow: none; }
.ach-page .ach-near .ach .ic { grid-row: 1 / span 2; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 2px rgba(242, 194, 48, .45); }
.ach-page .ach-near .ach .ic .tw-xs { right: -4px; bottom: -2px; }
.ach-page .ach-near .ach b { color: var(--tx-1); }
.ach-page .ach-near .ach .d { color: var(--tx-2); }
.ach-page .ach-near .ach-prog { grid-column: 1 / -1; height: 20px; margin-top: 8px; }
.ach-page .ach-prog em { font-size: 12px; }

/* Ranking: pódio num quadro escuro (como os placares), lista em blocos escuros, a sua linha em dourado; sem conexão = pódio apagado */
.rk-side { display: flex; flex-direction: column; gap: 10px; }
.rk-side > * { margin: 0; }
.rk-side .rk-sub { color: var(--tx-2); }
.rk-list { gap: 8px; }
.rk-list .rk-podium { position: relative; margin: 2px 0 4px; padding: 18px 10px 0; gap: 6px; border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(90% 70% at 50% 0%, rgba(242, 194, 48, .16), transparent 70%), var(--board); border: 1px solid var(--panel-line); box-shadow: var(--sh-float); }
.rk-list .rk-step small { font-size: 12px; color: var(--tx-3); }
.rk-list .rk-step .rk-v small { font-size: 12px; }
.rk-list .rk-step .rk-block { margin-top: 6px; border-radius: 10px 10px 0 0; }
.rk-list .rk-step.s1 .rk-block { height: 64px; box-shadow: inset 0 2px 0 rgba(255, 230, 140, .6); }
.rk-list .rk-step.s2 .rk-block { height: 44px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4); }
.rk-list .rk-step.s3 .rk-block { height: 30px; box-shadow: inset 0 2px 0 rgba(242, 201, 160, .45); }
.rk-list .rk-item { min-height: 60px; padding: 8px 12px 8px 8px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--panel-line); color: var(--tx-1); }
.rk-list .rk-pos { flex: none; color: var(--tx-3); font-size: 18px; }
.rk-list .rk-who small { font-size: 13px; color: var(--tx-3); }
.rk-list .rk-item .rk-v { color: var(--tx-1); font-variant-numeric: tabular-nums; }
.rk-list .rk-item .rk-v small { font-size: 12px; color: var(--tx-3); }
.rk-list .rk-item.me { outline: 0; border: 1.5px solid var(--gold); background: linear-gradient(90deg, rgba(242, 194, 48, .2), rgba(242, 194, 48, .06)), #123A27; }
.rk-list .rk-item.me .rk-pos, .rk-list .rk-item.me .rk-who b { color: var(--gold-2); }
.rk-list .rk-mine { box-shadow: var(--sh-float); }
.rk-list .rk-count, .rk-list .rk-none { margin: 4px 0 0; text-align: center; color: var(--tx-3); }
.rk-state { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 20px 92px; text-align: center; overflow: hidden;
  border-radius: var(--r-lg); background: radial-gradient(90% 70% at 50% 0%, rgba(255, 255, 255, .06), transparent 70%), var(--board); border: 1px solid var(--panel-line); }
.rk-state > .ico { width: 40px; height: 40px; margin-bottom: 4px; color: var(--label); }
.rk-state b { font: 700 19px/1.15 var(--display); color: var(--tx-1); }
.rk-state span { max-width: 32ch; font: 500 15px/1.4 var(--body); color: var(--tx-2); }
.rk-ghost { position: absolute; left: 10px; right: 10px; bottom: 0; display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 6px; }
.rk-ghost i { display: block; border-radius: 10px 10px 0 0; background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); }
.rk-ghost i:nth-child(1) { height: 44px; } .rk-ghost i:nth-child(2) { height: 64px; } .rk-ghost i:nth-child(3) { height: 30px; }
/* Carregando: o desenho do pódio e das linhas piscando de leve */
.rk-skel { display: flex; flex-direction: column; gap: 8px; }
.rk-skel > i, .rk-skel-pod { border-radius: var(--r-md); background: var(--panel); animation: v1-blink 1.2s ease-in-out infinite; }
.rk-skel > i { display: block; height: 60px; }
.rk-skel-pod { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 6px; height: 196px; padding: 0 10px; border-radius: var(--r-lg); background: var(--board); border: 1px solid var(--panel-line); }
.rk-skel-pod i { display: block; border-radius: 10px 10px 0 0; background: rgba(255, 255, 255, .08); }
.rk-skel-pod i:nth-child(1) { height: 44px; } .rk-skel-pod i:nth-child(2) { height: 64px; } .rk-skel-pod i:nth-child(3) { height: 30px; }
.rk-skel span { text-align: center; font: 500 13px var(--body); color: var(--tx-3); }
@keyframes v1-blink { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .rk-skel > i, .rk-skel-pod { animation: none; } }
.rk-edit { min-height: 44px; padding: 0 12px; font-size: 14px; }

/* Conta: links com toque de 44 px; reiniciar progresso separado e discreto no pé (o perigo continua vermelho) */
.acc-links { display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: -2px; }
.acc-links .link-btn { min-height: 44px; padding: 0 12px; font: 600 15px var(--body); color: var(--tx-1); text-decoration-color: rgba(251, 248, 239, .45); }
.acc-links p { margin: 2px 0 0; text-align: center; }
.acc-reset { margin-top: 28px; padding: 18px 0 0; border: 0; border-top: 1px solid var(--panel-line); border-radius: 0; background: none; }
.acc-reset b { font: 700 16px var(--display); letter-spacing: .02em; color: var(--tx-2); }
.acc-reset p { margin: 4px 0 12px; color: var(--tx-3); }
.acc-reset .btn.ghost.acc-danger { width: auto; min-height: 44px; padding: 10px 18px; font-size: 17px; color: var(--down); box-shadow: inset 0 0 0 1.5px rgba(255, 154, 162, .55); }
.acc-legal { margin-top: 10px; }
.acc-legal a { display: inline-block; padding: 12px 4px; }
.acc-st { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--panel-line);
  font: 600 15px var(--body); color: var(--tx-1); }
.acc-st::before { content: ''; flex: none; width: 22px; height: 22px; background: var(--label);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 19h10.5a4 4 0 0 0 .6-7.9A6 6 0 0 0 6.5 11.9 3.6 3.6 0 0 0 7 19z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 19h10.5a4 4 0 0 0 .6-7.9A6 6 0 0 0 6.5 11.9 3.6 3.6 0 0 0 7 19z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.acc-ways-t { margin-top: 10px; }
.acc-way { min-height: 60px; border: 1px solid var(--panel-line); background: var(--panel); }
.acc-way .btn.ghost { min-height: 40px; padding: 8px 14px; font-size: 16px; background: var(--panel-2); color: var(--tx-1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); }
.acc-way .link-btn { min-height: 44px; padding: 0 4px 0 10px; font-size: 14px; color: var(--tx-2); }

/* Configurações: "Dar opinião" vira uma linha de atalho (o dourado fica com "Pronto"); link das novidades com toque maior */
.cfg .btn.ghost.fb-btn { display: flex; align-items: center; gap: 10px; min-height: 52px; margin-top: 12px; padding: 10px 12px 10px 14px; text-align: left;
  font: 700 18px var(--display); letter-spacing: .01em; color: var(--tx-1); background: rgba(242, 194, 48, .08); box-shadow: inset 0 0 0 1px rgba(244, 214, 117, .4); }
.cfg .fb-btn span { flex: 1; }
.cfg .fb-btn .ico { flex: none; width: 20px; height: 20px; color: var(--gold-2); }
.cfg-credit .link-btn { min-height: 44px; padding: 0 10px; font-size: 14px; }

/* Opinião: perguntas numeradas (5 rapidinhas), escolhas com toque de 44 px */
.fb { counter-reset: fbq; }
.fb-q { counter-increment: fbq; border: 1px solid var(--panel-line); }
.fb-q > b, .fb-q > label > b { display: flex; align-items: flex-start; gap: 8px; font: 700 17px/1.2 var(--display); color: var(--tx-1); }
.fb-q > b::before, .fb-q > label > b::before { content: counter(fbq); flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: -2px; border-radius: 999px;
  background: rgba(143, 214, 174, .16); color: var(--label); font: 800 15px/1 var(--display); }
.fb-q > small { margin: -4px 0 0 32px; font-size: 13px; color: var(--tx-3); }
.fb-rate button { min-height: 52px; opacity: .7; }
.fb-likes button { min-height: 44px; padding: 8px 14px; font-size: 15px; }
.fb-q textarea::placeholder { color: var(--tx-4); }

/* Computador e tablet deitado: Minhas carreiras e ranking em 2 colunas; conquistas em 3 */
@media (min-width: 1000px) {
  #app:has(#screen > .mc-side), #app:has(#screen > .rk-side) { max-width: 1000px; }
  #screen:has(> .mc-side) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; align-content: start; align-items: start; }
  #screen:has(> .mc-side) > * { grid-column: 1 / -1; }
  #screen:has(> .mc-side) > .back-link { justify-self: start; }
  #screen:has(> .mc-side) > .mc-side { grid-column: 1; }
  #screen:has(> .mc-side) > .mc-hall { grid-column: 2; margin-top: 0; }
  #screen:has(> .rk-side) { display: grid; grid-template-columns: 400px minmax(0, 1fr); grid-template-rows: repeat(4, auto) 1fr; column-gap: 32px; align-items: start; }
  #screen:has(> .rk-side) > * { grid-column: 1; }
  #screen:has(> .rk-side) > .back-link { justify-self: start; }
  #screen:has(> .rk-side) > .rk-list { grid-column: 2; grid-row: 1 / -1; }
  #screen:has(> .rk-side) > .rk-edit { justify-self: start; margin: 0; }
  #screen:has(> .rk-side) .rk-chips { flex-wrap: wrap; overflow: visible; }
  #app:has(#screen > .ach-page) { max-width: 860px; }
  .ach-page .ach-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ach-page .ach-grid.ach-near { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ----- fim V1 ----- */

/* ----- V2: pré-temporada, decisões e mercado (pré-temporada, ficha, evento, base, janela, pouco espaço) ----- */
/* Decisão (evento e pouco espaço): todas as opções no mesmo cartão escuro, com o tipo só na etiqueta e num leve brilho
   no alto (laranja = arriscada, azul = segura). O dourado fica para a opção escolhida (1º toque). */
.btn.opt.ob3-opt { --oc: rgba(255, 255, 255, .2); --ot: rgba(255, 255, 255, .07); position: relative; gap: 9px; padding: 14px 14px 13px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--ot), rgba(255, 255, 255, .02) 64px), rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1.5px var(--oc), var(--sh-press); }
.btn.opt.ob3-opt.k-risk { --oc: rgba(255, 255, 255, .2); --ot: rgba(255, 159, 67, .16); background: linear-gradient(180deg, var(--ot), rgba(255, 255, 255, .02) 64px), rgba(255, 255, 255, .05); }
.btn.opt.ob3-opt.k-safe { --oc: rgba(255, 255, 255, .2); --ot: rgba(127, 176, 255, .16); background: linear-gradient(180deg, var(--ot), rgba(255, 255, 255, .02) 64px), rgba(255, 255, 255, .05); }
.btn.opt.ob3-opt.armed { background: linear-gradient(180deg, rgba(242, 194, 48, .2), rgba(242, 194, 48, .08) 64px), rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 3px var(--gold), var(--sh-press); }
.btn.opt.ob3-opt.locked { --oc: rgba(255, 255, 255, .1); }
.ob3-opt .ob3-lbl { font: 800 22px/1.05 var(--display); color: var(--tx-1); }
.ob3-bar { height: 8px; border-radius: 4px; }
/* Chance e resultado em duas colunas: o número grande à esquerda (verde certo, vermelho errado, azul certo) e o texto alinhado */
.btn.opt.ob3-opt .odds { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 9px; align-items: baseline; font: 600 14px/1.3 var(--body); color: var(--tx-2); }
.btn.opt.ob3-opt .od-row { display: contents; }
.btn.opt.ob3-opt .od-row b { font: 800 18px/1 var(--display); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.btn.opt.ob3-opt .od-row b::after { content: none; }
.btn.opt.ob3-opt .od-row.win b { color: var(--up); } .btn.opt.ob3-opt .od-row.win > span { color: #D2F5DF; }
.btn.opt.ob3-opt .od-row.lose b { color: var(--down); } .btn.opt.ob3-opt .od-row.lose > span { color: #FFD6D9; }
.btn.opt.ob3-opt .od-row.safe b { color: #9CC2FF; font-size: 16px; } .btn.opt.ob3-opt .od-row.safe > span { color: #DDE8FF; }
.btn.opt.ob3-opt .od-always { grid-column: 1 / -1; margin-top: 2px; padding-top: 7px; border-top: 1px solid rgba(255, 255, 255, .1); color: var(--tx-2); font: 600 13px/1.3 var(--body); }
.ob3-opt > small { font: 600 14px/1.35 var(--body); color: var(--tx-2); }
.choices.ob3-opts.two .ob3-opt { min-height: 176px; }
.ob3-note { font: 500 13px/1.35 var(--body); color: var(--tx-3); }
/* Pouco espaço: "Pedir empréstimo" abre a lista de clubes (seta), as outras resolvem na hora */
.btn.opt.ob3-opt[data-sq="loan"] { padding-right: 54px; }
.btn.opt.ob3-opt[data-sq="loan"]::after { content: '›'; position: absolute; right: 14px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; display: grid; place-items: center;
  padding-bottom: 3px; box-sizing: border-box; background: rgba(255, 255, 255, .1); font: 800 26px/1 var(--display); color: var(--tx-1); }
/* Cartão do evento: mais presença no celular alto; mais compacto no celular baixo */
@media (min-height: 760px) and (max-width: 999px) {
  .event-card.ob3 { gap: 10px; padding: 30px 20px 24px; }
  .event-card.ob3 .ob3-ic { width: 108px; height: 108px; }
  .event-card.ob3 .ob3-ic .tw { width: 68px; height: 68px; }
  .event-card.ob3 h2 { font-size: 32px; }
  .choices.ob3-opts { gap: 12px; }
}
@media (max-height: 700px) and (max-width: 999px) {
  .event-card.ob3 { gap: 6px; padding: 20px 16px 16px; }
  .event-card.ob3 .ob3-ic { width: 76px; height: 76px; }
  .event-card.ob3 .ob3-ic .tw { width: 48px; height: 48px; }
  .event-card.ob3.sq-card .ob3-ic .crest { width: 50px; height: 50px; }
  .choices.ob3-opts.two .ob3-opt { min-height: 0; }
}
/* Computador: as opções empilhadas na coluna da direita, do tamanho do cartão do evento */
@media (min-width: 1000px) {
  #screen:has(> .event-card.ob3) .choices.ob3-opts.two { grid-template-columns: minmax(0, 1fr); }
  #screen:has(> .event-card.ob3) .choices.ob3-opts.two .ob3-opt { min-height: 0; }
  #screen:has(> .event-card.ob3) .btn.opt.ob3-opt { padding: 16px 18px 15px; }
  #screen:has(> .event-card.ob3) .btn.opt.ob3-opt[data-sq="loan"] { padding-right: 58px; }
}
/* Duas opções lado a lado no celular: a coluna é estreita, então o texto corre por baixo do número (sem recuo) */
@media (max-width: 999px) {
  .choices.ob3-opts.two .btn.opt.ob3-opt .odds { display: flex; flex-direction: column; gap: 6px; }
  .choices.ob3-opts.two .btn.opt.ob3-opt .od-row { display: block; }
  .choices.ob3-opts.two .btn.opt.ob3-opt .od-row b { margin-right: 5px; }
}
@media (max-width: 360px) { .ob3-opt .ob3-lbl { font-size: 19px; } .btn.opt.ob3-opt { padding: 12px 11px 11px; } .btn.opt.ob3-opt .odds { column-gap: 7px; } }

/* Resultado da decisão: no alto, no lugar do cartão do evento, com a faixa da cor do resultado e o que foi escolhido */
.ev-res.ob3-res { --rc: #2F6FD6; overflow: hidden; gap: 10px; padding: 32px 20px 24px; border-radius: var(--r-xl); }
.ev-res.ob3-res::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--rc); }
.ev-res.ob3-res.ok { --rc: #1FA35A; } .ev-res.ob3-res.ko { --rc: #D8404A; } .ev-res.ob3-res.calm { --rc: #2F6FD6; }
.ev-res.ob3-res .er-ic { width: 96px; height: 96px; }
.ev-res.ob3-res .er-ic .tw { width: 60px; height: 60px; }
.ev-res.ob3-res > .eyebrow { margin-top: 2px; color: var(--ink-2); }
.er-pick { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 8px; max-width: 100%; padding: 6px 14px; border-radius: 999px;
  background: rgba(19, 32, 26, .07); font: 700 17px/1.2 var(--display); color: var(--ink); text-wrap: balance; }
.er-pick small { font: 700 12px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.ev-res.ob3-res .er-txt { margin-top: 2px; font: 700 21px/1.3 var(--body); text-wrap: pretty; }
.ev-res.ob3-res.calm .er-txt { color: var(--ink); }
.ev-res.ob3-res .er-fx { gap: 8px; margin-top: 6px; }
.ev-res.ob3-res .er-fx span { font: 700 14px/1.2 var(--body); padding: 6px 12px; }
.ev-res.ob3-res .er-fx .er-ovr { font-size: 16px; }
.ob3-stamp { top: 18px; right: 10px; }
#screen > .ev-res.ob3-res + .btn { margin-top: 4px; }
@media (max-height: 700px) and (max-width: 999px) {
  .ev-res.ob3-res { gap: 8px; padding: 26px 16px 18px; }
  .ev-res.ob3-res .er-ic { width: 80px; height: 80px; }
  .ev-res.ob3-res .er-ic .tw { width: 50px; height: 50px; }
  .ev-res.ob3-res .er-txt { font-size: 19px; }
}

/* Roleta da decisão arriscada: etiqueta laranja (como a da opção), números da roda sempre de pé, resultado grande */
.mo-rk { padding: 4px 10px 3px; border-radius: 6px; background: #FF9F43; color: #2A1500; font: 700 12px var(--display); letter-spacing: .14em; }
.mo-wl { transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--wd) * -.37)) rotate(calc(-1 * (var(--a) + var(--rot, 0deg)))); }
.mo-keys { font-size: 14px; color: var(--tx-2); }
.mo-out { font: 800 30px/1.1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.mo-roll.is-ok .mo-out { color: var(--up); } .mo-roll.is-ko .mo-out { color: var(--down); }

/* Pré-temporada: cartas de característica mais legíveis (ganho de atributo em verde, efeito em tinta escura) */
.choice.tr { gap: 5px; padding: 12px 10px 14px; border-radius: var(--r-md); }
.choice.tr > .tag { font-size: 12px; padding: 2px 7px; }
.choice.tr .ic .tw { width: 52px; height: 52px; }
.choice.tr b { font: 800 20px/1.05 var(--display); color: var(--ink); }
.choice.tr .d { font: 600 13px/1.35 var(--body); color: #3B4842; }
.choice.tr .d .at { display: inline-block; margin: 1px 0 3px; padding: 2px 9px; border-radius: 999px; background: #DDF3E4; color: var(--up-ink); font: 800 13px/1.3 var(--display); letter-spacing: .02em; }
.choice.tr .d .fx { color: #3B4842; font: 600 13px/1.35 var(--body); }
.pick-h { margin-top: 18px; }
.pick-h span { font: 600 13px var(--body); color: var(--tx-3); }
.train-txt { color: var(--tx-2); }
.train-txt b { color: var(--tx-1); }

/* Ficha: ícone da característica num círculo (como nos cartões de decisão) e nada que informa abaixo de 12 px */
.sh-tr { gap: 12px; padding: 10px 2px; }
.sh-tr .ic { width: 40px; height: 40px; border-radius: 50%; background: #EEF3EF; }
.sh-tr .ic .tw { width: 24px; height: 24px; }
.sh-tr .ic:has(.seal) { background: none; height: auto; }
.sh-tr b { font: 700 16px/1.25 var(--body); }
.sh-tr small { font-size: 13px; color: var(--ink-2); }
.sh-tr.empty { min-height: 48px; }
.sh-at i { font-size: 12px; }
.sh-nums span, .sh-room span { font-size: 12px; }
.sh-seasons thead th { font-size: 12px; }

/* Pedir ao empresário: país à esquerda (fixo no alto enquanto rola), ligas da mais forte para a mais fraca,
   chance em destaque com a cor e uma barrinha do tamanho dela */
.lg-legend { display: grid; grid-template-columns: minmax(0, 1fr) 78px 62px; gap: 8px; padding: 6px 13px 0; font: 700 12px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.lg-legend span:nth-child(3) { text-align: center; }
.lg-pick .lg-ct .sh-sec { position: sticky; top: 0; z-index: 1; justify-content: flex-start; gap: 8px; margin: 0; padding: 14px 0 8px; background: var(--paper); font-size: 13px; }
.lg-pick .lg-ct .sh-sec .tw { width: 20px; height: 20px; }
.lg-row { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 78px 62px; gap: 8px; align-items: center; min-height: 52px; padding: 8px 12px 10px; border-radius: var(--r-md); }
.lg-row b { font: 700 16px/1.2 var(--body); }
.lg-row .stars { font-size: 13px; }
.lg-row em { justify-self: center; min-width: 54px; padding: 4px 8px; border-radius: 999px; text-align: center; font: 800 17px/1.1 var(--display); background: #FFF1C2; color: #6E4E00; }
.lg-row em.hi { background: #DDF3E4; color: #11673A; }
.lg-row em.lo { background: #FBE1E3; color: #A3242E; }
.lg-row::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: var(--ch, 0); background: #E2B93B; border-radius: 0 2px 2px 0; }
.lg-row:has(em.hi)::after { background: #1FA35A; } .lg-row:has(em.lo)::after { background: #D8404A; }
.lg-row.armed::after { content: none; }
/* ----- fim V2 ----- */

/* ----- V3: lances e minigames (lance, minigames, resultado, treino, reta final, Relâmpago) ----- */
/* Lance decisivo (ui/match.js momentIntro): título, contexto em texto de apoio e o que vale em duas linhas (ganho/perda) */
.ob5-head { gap: 8px; }
.ob5-head .ob5-txt { font: 500 15px/1.4 var(--body); color: var(--tx-2); text-wrap: pretty; }
.lc-stakes { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 7px 12px; margin-top: 2px; padding: 11px 14px;
  border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--panel-line); }
.lc-st { display: contents; }
.lc-st b { display: inline-flex; align-items: center; gap: 7px; font: 700 12px/1.25 var(--display); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.lc-st b::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.lc-st span { font: 600 15px/1.3 var(--body); color: var(--tx-1); }
.lc-st > span:only-child { grid-column: 1 / -1; }
.lc-st.win b { color: var(--up); }
.lc-st.lose b { color: var(--down); }
/* O que pesa da carta (chips) e "Como funciona": blocos de apoio, sem dourado (o dourado fica para a escolha) */
.chips.ob5-facts .chip { padding: 5px 10px; background: var(--panel); border: 1px solid var(--panel-line); color: var(--tx-2); font: 500 13px/1.25 var(--body); }
.ob5-how summary { gap: 8px; color: var(--tx-2); font: 600 14px var(--body); }
.ob5-how summary::after { content: '+'; order: -1; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--panel-2);
  border: 1px solid var(--panel-line); color: var(--tx-1); font: 800 16px/1 var(--display); }
.ob5-how[open] summary::after { content: '−'; }
.ob5-how > p { color: var(--tx-2); }
/* Os dois estilos: cartões de papel iguais (nenhum é o melhor), chance pela carta em número grande; o dourado marca o toque */
.ob5-q { margin: 6px 0 -2px; font: 800 22px/1.1 var(--display); color: var(--tx-1); }
.btn.opt.style.ob5-st, .btn.opt.style.ob5-st.s1 { gap: 4px; padding: 12px 12px 14px; border-radius: var(--r-lg); background: var(--paper); color: var(--ink);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .35), 0 12px 24px rgba(0, 0, 0, .22); }
.btn.opt.style.ob5-st:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .35), inset 0 0 0 3px var(--gold); }
.btn.opt.style.ob5-st .ob5-st-top .tw { width: 32px; height: 32px; }
.btn.opt.style.ob5-st .st-pct { gap: 3px; color: var(--ink-2); opacity: 1; font: 700 12px/1 var(--body); letter-spacing: 0; }
.btn.opt.style.ob5-st .st-pct b { color: var(--ink); font-size: 34px; }
.btn.opt.style.ob5-st .ob5-st-nm { margin-top: 2px; color: var(--ink); font-size: 25px; }
.btn.opt.style.ob5-st small { color: var(--ink-2); font: 600 13px/1.3 var(--body); opacity: 1; }
.desk .btn.opt.style.ob5-st:hover { box-shadow: 0 4px 0 rgba(0, 0, 0, .35), 0 12px 24px rgba(0, 0, 0, .22), inset 0 0 0 3px var(--gold); }
/* Rodapé: decidir no automático e treinar, em tom de apoio */
.btn.ghost.ob5-auto small { color: var(--tx-3); }
.ob5-train { background: var(--panel); border-color: var(--panel-line); color: var(--tx-1); }

/* Resultado do lance: no alto como o resultado do evento (placar, o grito com luz atrás e os botões logo abaixo).
   O grito ganha uma área própria e alta, para a tela não ficar com meia tela vazia nem os botões longe dele. */
#screen > .ob5-res, .trn > .ob5-res { justify-content: center; gap: 10px; min-height: clamp(200px, 36svh, 340px); padding: 24px 8px; border-radius: var(--r-xl);
  background: radial-gradient(closest-side, var(--lc-glow, transparent), transparent); }
.ob5-res.ok { --lc-glow: rgba(95, 214, 144, .17); }
.ob5-res.ko { --lc-glow: rgba(255, 107, 115, .13); }
#screen > .ob5-res .mr-big { font-size: clamp(48px, 17vw, 72px); }
#screen > .ob5-res .mr-txt, .trn > .ob5-res .mr-txt { max-width: 34ch; font: 600 17px/1.4 var(--body); color: var(--tx-1); }
.lc-acts { display: flex; flex-direction: column; gap: 12px; }
.ob5-res > .ob5-prize { align-self: stretch; margin-top: 14px; text-align: left; }

/* Minigame: a área do lance vira o campo de jogo (luz no meio, cantos escuros), a cena no centro e a dica numa pílula logo abaixo.
   A área inteira já recebe o toque (kick.js onTap); o fundo só mostra isso. */
#screen > .ob5-board.mini + #kick, .trn > #trn-mini { margin: 0 -8px; padding: 14px 8px 18px; border-radius: var(--r-xl);
  background: radial-gradient(95% 55% at 50% 42%, rgba(255, 255, 255, .07), rgba(0, 0, 0, 0) 70%), rgba(0, 0, 0, .2); }
.kick-help { display: block; width: fit-content; max-width: 100%; min-height: 44px; margin: 2px auto 0; padding: 11px 18px;
  border-radius: 22px; background: rgba(5, 10, 7, .62); border: 1px solid var(--panel-line); box-shadow: var(--sh-press);
  color: var(--tx-1); font: 600 16px/1.3 var(--body); text-align: center; text-wrap: balance; }
.kick-help b { color: var(--gold-2); font-weight: 700; }
.kick-help::before { content: ''; display: inline-block; width: 10px; height: 10px; margin: 0 10px 2px 0; vertical-align: middle; border-radius: 50%; background: var(--gold);
  animation: lc-ping 1.3s ease-out infinite; }
@keyframes lc-ping { 0% { box-shadow: 0 0 0 0 rgba(242, 194, 48, .7); } 80%, 100% { box-shadow: 0 0 0 10px rgba(242, 194, 48, 0); } }
.kick-help.off { visibility: hidden; }
.kick-help.done::before { display: none; }
@media (prefers-reduced-motion: reduce) { .kick-help::before { animation: none; } }

/* Treino (ui/training.js): tela cheia em coluna; na abertura o bloco (lance, passos e botão) fica no meio da altura;
   passos numa linha do tempo; o jogo ocupa o meio da tela */
.trn { min-height: 100%; }
.trn-head b { font-size: 20px; }
.trn-intro > .trn-head { min-height: 44px; }
.trn-intro > .trn-hero { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.trn-ico { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--panel-2); box-shadow: inset 0 0 0 2px rgba(242, 194, 48, .55); }
.trn-hero h2 { margin: 0; font: 800 34px/1 var(--display); text-transform: uppercase; }
.trn-intro > :last-child { margin-bottom: auto; }
.trn > .lead { font: 500 16px/1.4 var(--body); color: var(--tx-2); }
.trn-steps.ob5-steps { gap: 0; padding: 16px 16px 16px 14px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--panel-line); }
.ob5-steps li { position: relative; gap: 14px; padding: 0 0 18px; border: 0; border-radius: 0; background: none; font: 500 16px/1.4 var(--body); color: var(--tx-1); }
.ob5-steps li:last-child { padding-bottom: 0; }
.ob5-steps li:not(:last-child)::before { content: ''; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; border-radius: 2px; background: rgba(242, 194, 48, .35); }
.trn > #trn-mini { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.trn-tip { color: var(--tx-2); font: 500 15px/1.4 var(--body); text-wrap: pretty; }
.trn .ob5-res .mr-big { font-size: clamp(44px, 15vw, 60px); }
/* Menu do treino: linhas com o ícone à esquerda; os lances da sua posição em destaque */
.trn-menu .btn.ghost { display: grid; grid-template-columns: 36px 1fr; align-items: center; column-gap: 12px; padding: 12px 16px; text-align: left; font-size: 19px; }
.trn-menu .btn.ghost > .tw { grid-row: span 2; width: 30px; height: 30px; justify-self: center; }
.trn-menu .btn.ghost > small { grid-column: 2; margin: 0; color: var(--tx-3); }
.trn-menu .btn.ghost.mine { background: var(--panel); box-shadow: inset 0 0 0 2px rgba(242, 194, 48, .55); }
.trn-menu .btn.ghost.mine > small { color: var(--gold-2); }

/* Carreira Relâmpago, entrada (ui/relampago.js intro): as 5 casas desenhadas como no jogo e as regras em lista com ícone */
.rl-intro { display: flex; flex-direction: column; gap: 12px; }
.rl-i-lead { margin: 0; font: 500 16px/1.4 var(--body); color: var(--tx-2); }
.rl-i-lead b { color: var(--tx-1); }
.rl-i-map { display: flex; flex-direction: column; gap: 6px; }
.rl-i-map .rl-board { margin: 0; }
.rl-i-map .rl-cell { min-height: 62px; justify-content: space-between; padding: 7px 4px 8px; }
.rl-i-balls { display: flex; gap: 3px; }
.rl-i-balls i { width: 6px; height: 6px; border-radius: 50%; background: var(--tx-3); }
.rl-i-groups { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.rl-i-groups span { display: flex; align-items: center; justify-content: center; gap: 6px; padding-top: 6px; border-top: 2px solid var(--panel-line);
  font: 700 12px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--tx-3); }
.rl-i-groups span:first-child { grid-column: span 3; }
.rl-i-groups span:last-child { grid-column: span 2; }
.rl-i-groups .tw { width: 16px; height: 16px; }
.rl-i-rules { list-style: none; margin: 0; padding: 2px 14px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--panel-line); }
.rl-i-rules li { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 12px; padding: 11px 0; font: 500 15px/1.4 var(--body); color: var(--tx-2); }
.rl-i-rules li + li { border-top: 1px solid var(--panel-line); }
.rl-i-rules li .tw { width: 22px; height: 22px; margin-top: 1px; }
.rl-i-rules b { color: var(--tx-1); font-weight: 700; }

/* Tela baixa: regras do Relâmpago mais juntas para o nome e o "Começar" aparecerem sem rolar tanto */
@media (max-height: 700px) {
  .rl-intro { gap: 10px; }
  .rl-i-map .rl-cell { min-height: 46px; padding: 5px 4px 6px; }
  .rl-i-lead { font-size: 15px; }
  .rl-i-rules li { padding: 7px 0; font-size: 14px; line-height: 1.35; }
}
/* Celular pequeno (360×640): o "Começar" ainda aparece sem rolar */
@media (max-height: 660px) {
  .rl-intro { gap: 8px; }
  .rl-i-lead { font-size: 14px; }
  .rl-i-map .rl-cell { min-height: 40px; padding: 4px 4px 5px; }
  .rl-i-groups span { padding-top: 4px; }
  .rl-i-rules li { padding: 5px 0; }
}

/* Computador: o palco já sai da coluna e ocupa a altura; o campo escuro em volta fica só no celular e no tablet.
   A dica é mais baixa (mouse) e o palco desconta a altura dela para caber inteiro na tela. */
html.desk #screen > .ob5-board.mini + #kick, .desk .trn > #trn-mini { margin: 0; padding: 0; background: none; }
.desk .kick-help { min-height: 0; padding: 7px 16px; font-size: 17px; }
.desk .kick-stage { --kw: min(720px, 94vw, calc((100dvh - 262px) * 1.125)); }
.desk .trn .kick-stage { --kw: min(720px, 94vw, calc((100dvh - 300px) * 1.125)); }
/* Lance no computador: cartões de estilo maiores (ícone e chance no alto, nome e explicação embaixo, alinhados entre os dois) */
@media (min-width: 1000px) {
  .btn.opt.style.ob5-st { padding: 16px 16px 18px; }
  .btn.opt.style.ob5-st .ob5-st-top { min-height: 92px; align-items: flex-start; }
  .btn.opt.style.ob5-st .ob5-st-top .tw { width: 40px; height: 40px; }
  .btn.opt.style.ob5-st .st-pct b { font-size: 42px; }
  .btn.opt.style.ob5-st .ob5-st-nm { font-size: 30px; }
  .btn.opt.style.ob5-st small { font-size: 14px; }
}
@media (min-width: 1280px) and (min-height: 860px) {
  html.desk .kick-stage { --kw: min(720px, 94vw, calc((100dvh / var(--z) - 262px) * 1.125)); }
  html.desk .trn .kick-stage { --kw: min(720px, 94vw, calc((100dvh / var(--z) - 300px) * 1.125)); }
  html.desk #screen > .ob5-res, html.desk .trn > .ob5-res { min-height: clamp(200px, calc(36svh / var(--z)), 340px); }
}
/* ----- fim V3 ----- */

/* ----- V4: temporada, Copa e fim de carreira (ao vivo, resumo, jornal, X, Copa/Mundial, fim) ----- */
/* Temporada: a faixa "ao vivo" vira placar de TV (--board): ponto, rodada grande e a barra de andamento embaixo */
.sx-live { padding: 8px 12px 9px; border-radius: var(--r-md); background: var(--board); box-shadow: inset 0 0 0 1px var(--panel-line), var(--sh-press); }
.sx-live > b { color: var(--tx-2); }
.sx-live .sx-prog { height: 5px; background: rgba(255, 255, 255, .1); }
.sx-live.end .sx-rd { color: var(--tx-2); }
/* Veredito da temporada: é a manchete do ano, maior que os números ao lado */
.sx-side .s-verdict { min-height: 30px; row-gap: 4px; }
.sx-side .sv-lbl { font: 800 clamp(23px, 6.6vw, 27px)/1 var(--display); text-wrap: balance; }
.sx-side .sv-lbl.idle { color: var(--tx-2); }
.sx-side .sv-lbl.mid, .sx-side .sv-lbl.ok { color: var(--tx-1); }
/* Prêmios e marcos do ano: faixa de prêmio (dourado claro, sem relevo de botão); o botão dourado da tela é só o de seguir */
#after .award:not(.ballon) { justify-content: flex-start; gap: 10px; min-height: 50px; padding: 8px 14px 8px 12px; border-radius: var(--r-md); text-align: left;
  background: linear-gradient(100deg, rgba(242, 194, 48, .22), rgba(242, 194, 48, .05) 75%); color: var(--gold-2);
  box-shadow: inset 0 0 0 1px rgba(242, 194, 48, .45); font: 800 19px/1.1 var(--display); }
#after .award:not(.ballon) .tw { width: 26px; height: 26px; flex: none; }
#after .award.milestone:not(.ballon) { background: var(--panel); color: var(--tx-1); box-shadow: inset 0 0 0 1px var(--panel-line); font: 700 17px/1.15 var(--display); }
#after .title-won { border-radius: var(--r-md); background: linear-gradient(100deg, rgba(242, 194, 48, .26), rgba(242, 194, 48, .07) 75%); border-color: rgba(242, 194, 48, .55); }
#after .title-won span { color: var(--gold-2); }
/* "O que falaram": rótulos de 12 px e o lance do ano com rótulo, como os outros cartões */
#after > .story > .news .np, #after > .story > .st-hl .np { font: 700 12px var(--display); letter-spacing: .14em; text-transform: uppercase; }
#after > .story > .st-hl { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px; }
#after > .story > .st-hl .np { color: var(--tx-3); }
#after > .story > .st-hl p { margin: 0; font: 700 18px/1.25 var(--display); color: var(--tx-1); }
#after > .story > .st-hl p .tw { width: 22px; height: 22px; vertical-align: -4px; }
/* Detalhes da temporada: o porquê da nota em bloco de apoio escuro (o papel creme fica para o cartão principal) */
#after .why-card { margin: 0; background: var(--panel); color: var(--tx-1); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--panel-line); }
#after .why-card .delta-in.up { color: var(--up); } #after .why-card .delta-in.down { color: var(--down); }
#after .why-card .why li { border-top-color: var(--panel-line); color: var(--tx-2); }
#after .why-card .why b.up { color: var(--up); } #after .why-card .why b.down { color: var(--down); }
#after .why-card .why b.pot { color: var(--gold-2); } #after .why-card .why b.zero { color: var(--tx-4); }
#after .why-card .why-note { background: rgba(242, 194, 48, .1); color: var(--tx-1); box-shadow: inset 3px 0 0 var(--gold); }
@media (min-width: 1000px) {
  /* Computador: a coluna da direita tem largura para os cartões lado a lado (nada cortado na borda) */
  #after > .story { flex-wrap: wrap; overflow: visible; scroll-snap-type: none; margin: 0; padding: 0; }
  #after > .story > * { flex: 1 1 calc(50% - 5px); min-width: 0; }
  /* Temporada ao vivo: os lances do ano entram na coluna da direita (vazia até o resumo), em vez de embaixo da tabela */
  #screen:has(> .s-hero) > #feed { grid-column: 2; grid-row: 1 / span 4; max-height: none; }
}
/* Título em tela cheia: fundo fechado (a tela de trás não aparece), raios dourados girando devagar e o nome grande */
.bigmoment { background: radial-gradient(circle at 50% 40%, rgba(244, 214, 117, .36), rgba(244, 214, 117, 0) 44%), radial-gradient(120% 90% at 50% 40%, #11452D, #04100A 72%); }
.bigmoment::before { content: ''; position: absolute; left: 50%; top: 40%; width: 1100px; height: 1100px; margin: -550px 0 0 -550px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 236, 170, .08) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 25%, transparent 70%); mask: radial-gradient(closest-side, #000 25%, transparent 70%); animation: v4-spin 60s linear infinite; }
@keyframes v4-spin { to { transform: rotate(1turn); } }
.bm-top { font-size: 18px; letter-spacing: .22em; color: var(--gold-2); margin-top: 14px; }
.bm-name { font-size: clamp(36px, 11vw, 48px); line-height: 1; text-wrap: balance; max-width: 16ch; text-shadow: 0 4px 18px rgba(0, 0, 0, .45); }
.bm-in small { font: 600 13px var(--body); color: var(--tx-3); margin-top: 22px; }
@media (prefers-reduced-motion: reduce) { .bigmoment::before { animation: none; } }
/* Copa e Mundial · convocação: bandeira (ou escudo) num disco com brilho, título e o como funciona em linhas de apoio */
.wc-hero { gap: 8px; padding-top: 4px; }
.wc-hero > .eyebrow { margin: 0; }
.wc-mark { position: relative; display: grid; place-items: center; width: 132px; height: 132px; margin: 6px 0 4px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 214, 117, .3), rgba(244, 214, 117, .06) 62%, transparent 70%); }
.wc-mark::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(244, 214, 117, .4); }
.wc-mark .wc-bigflag { font-size: 84px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .4)); }
.wc-mark .crest.xl { margin: 0; width: 84px; height: 84px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .4)); }
.wc-hero h2 { margin: 0; font: 800 30px/1.05 var(--display); text-wrap: balance; }
.wc-hero .lead { color: var(--tx-2); text-wrap: pretty; }
.wc-rules { display: grid; gap: 0; padding: 4px 14px; border-radius: var(--r-lg); background: var(--panel); box-shadow: inset 0 0 0 1px var(--panel-line); }
.wc-rules p { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 0; font: 500 15px/1.35 var(--body); color: var(--tx-2); }
.wc-rules p + p { border-top: 1px solid var(--panel-line); }
.wc-rules p .tw { width: 26px; height: 26px; flex: none; }
.wc-rules b { color: var(--tx-1); }
/* Jogos: tabela do grupo, fichas dos jogos anteriores e o jogo da vez como placar escuro (--board), número grande */
.wc-list > .wc-game { background: var(--board-2); color: var(--tx-1); border-radius: var(--r-md); border-left-width: 5px; padding: 10px 14px 12px;
  box-shadow: inset 0 0 0 1px var(--panel-line), var(--sh-press); row-gap: 6px; }
.wc-list > .wc-game .st { color: var(--tx-3); }
.wc-list > .wc-game .line { gap: 12px; }
.wc-list > .wc-game .line b { font: 800 36px/1 var(--display); font-variant-numeric: tabular-nums; color: #fff; letter-spacing: .01em; }
.wc-list > .wc-game .line .tw { width: 30px; height: 30px; }
.wc-list > .wc-game .them { display: inline-flex; align-items: center; gap: 8px; font: 700 19px/1.1 var(--display); color: var(--tx-1); }
.wc-list > .wc-game .clk { background: rgba(255, 255, 255, .1); color: var(--gold-2); }
.wc-list > .wc-game.paused .clk { background: #C0392B; color: #fff; }
.wc-list > .wc-game .gls { width: 100%; padding-top: 6px; border-top: 1px solid var(--panel-line); }
.wc-list > .wc-game .gl { font-size: 13px; color: var(--tx-2); }
.wc-list > .wc-game .gl i { color: var(--tx-4); }
.wc-list > .wc-game .gl b { color: #fff; }
.wc-list > .wc-game .gl.t { color: var(--down); }
.wc-list > .wc-game .mom.ok { background: rgba(123, 227, 160, .16); color: var(--up); }
.wc-list > .wc-game .mom.ko { background: rgba(255, 154, 162, .16); color: var(--down); }
.wc-list > .wc-game .rt { color: var(--tx-3); }
.wc-list > .wc-game .rt.motm { color: var(--gold-2); }
.wc-list > .wc-game .oth { color: var(--tx-3); }
.wc-list > .wc-game .grp { font-size: 16px; }
.wc-list > .wc-game .grp.ok { color: var(--up); } .wc-list > .wc-game .grp.ko { color: var(--down); }
.wc-list > .wc-game.goal-u, .wc-list > .wc-game.goal-t { animation-duration: .7s; }
.wc-path .wp { background: var(--board-2); color: var(--tx-1); box-shadow: inset 0 0 0 1px var(--panel-line); padding: 5px 10px 5px 8px; }
.wc-path .wp small { font-size: 12px; color: var(--tx-3); }
.wc-path .wp i { color: var(--tx-3); }
.wc-tbl { border-radius: var(--r-md); background: var(--panel); border-color: var(--panel-line); }
.wc-tbl .wt-h { color: var(--label); }
.wc-tbl .wt-r.me { background: rgba(242, 194, 48, .12); border-radius: 8px; }
.wc-tbl .wt-r.me > span:first-child i { color: var(--gold); }
/* Fim: um cartão só com a bandeira, a faixa do resultado, a linha de como foi e os seus números */
.wc-end { gap: 10px; padding: 18px 14px 14px; border-radius: var(--r-xl); background: var(--panel); box-shadow: inset 0 0 0 1px var(--panel-line); }
.wc-end.champ { background: radial-gradient(circle at 50% 22%, rgba(255, 226, 122, .38), rgba(255, 226, 122, 0) 62%), var(--panel); box-shadow: inset 0 0 0 1.5px rgba(242, 194, 48, .55); }
.wc-end.vice { box-shadow: inset 0 0 0 1.5px rgba(214, 222, 229, .4); }
.wc-end .wc-bigflag { font-size: 76px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .4)); }
.wc-end .crest.xl { width: 80px; height: 80px; }
.wc-end .wc-band { width: auto; max-width: 100%; padding: 9px 18px; border-radius: var(--r-sm); font-size: 25px; }
.wc-band.phase { background: var(--board); border: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), var(--sh-press); }
.wc-end-who { color: var(--tx-2); }
.wc-end .sx-lbl { align-self: stretch; margin: 6px 0 0; padding-top: 12px; border-top: 1px solid var(--panel-line); font-size: 12px; color: var(--tx-3); }
.wc-end .wc-end-stats { align-self: stretch; gap: 0; }
.wc-end .wc-end-stats span { background: none; border-radius: 0; padding: 2px 4px; font: 600 13px/1.15 var(--body); color: var(--tx-3); }
.wc-end .wc-end-stats span + span { box-shadow: inset 1px 0 0 var(--panel-line); }
.wc-end .wc-end-stats b { font-size: 32px; color: var(--tx-1); }
@media (max-width: 360px) { .wc-end .wc-band { font-size: 21px; } .wc-hero h2 { font-size: 27px; } }
/* Convocação (animação): o seu nome com mais peso e o carimbo maior */
.mo-call .mo-list { padding: 18px; border-radius: var(--r-xl); }
.mo-call .mo-me { font-size: 20px; padding: 3px 10px; box-shadow: 0 2px 0 var(--gold-deep); }
.mo-call .mo-callstamp { top: auto; bottom: 34px; right: 22px; font-size: 23px; background: rgba(251, 248, 239, .85); } /* embaixo, ao lado do seu nome: no topo cobria o título em 360 px */
/* Reta final antes do lance: a corrida e o duelo maiores (a tela é curta e passa em 3 s) */
#screen:has(> #pr-duel) .race { padding: 14px 14px 12px; gap: 8px; border-radius: var(--r-lg); }
#screen:has(> #pr-duel) .race .rc-spark { height: 72px; }
#screen:has(> #pr-duel) .race .rc-pos { font-size: 40px; }
#screen:has(> #pr-duel) .race .rc-lbl { font: 700 18px/1.25 var(--display); }
#screen > .pr-duel { padding: 16px 16px; gap: 12px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--board-2), var(--board)); }
#screen > .pr-duel .crest { width: 56px; height: 56px; }
#screen > .pr-duel .pr-x { font-size: 15px; color: var(--tx-2); }
#screen > .pr-duel .pr-x b { font-size: 26px; }
#screen:has(> #pr-duel) .pr-path .rt-r { padding: 7px 8px; font-size: 16px; }
@media (max-width: 374px) { #screen > .pr-duel .crest { width: 46px; height: 46px; } #screen > .pr-duel .pr-x b { font-size: 22px; } }
#screen:has(> #pr-duel) .pr-path .rt-r b { color: var(--up); }
/* Post no X: o efeito do post com a cor do sentido (ganho em verde, perda em vermelho), sem o dourado da ação */
.sp-fx { padding: 9px 12px; border-radius: var(--r-sm); background: rgba(123, 227, 160, .12); color: var(--up); box-shadow: inset 3px 0 0 var(--up); }
.sp-fx.ko { background: rgba(255, 154, 162, .12); color: var(--down); box-shadow: inset 3px 0 0 var(--down); }
.sp-fx.none { background: var(--panel); color: var(--tx-3); box-shadow: inset 3px 0 0 var(--tx-4); }
.sp-top .eyebrow { margin: 0; }
.sp-note { color: var(--tx-4); }
/* Nota final (animação): o quadro ganha moldura de placar e o total em destaque */
.mo-score .mo-card { padding: 18px 16px 14px; border-radius: var(--r-xl); background: rgba(4, 12, 8, .55); box-shadow: inset 0 0 0 1px var(--panel-line), var(--sh-float); }
.mo-score .mo-total b { color: #fff; }
/* Fim de carreira: um dourado só (Compartilhar); Nova carreira e Desafiar como secundários neutros; números num bloco */
.o6-acts .btn.o6-again { background: #1E3F30; color: var(--tx-1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3), 0 4px 0 rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .35); }
.o6-dz .btn.ghost.dz-btn { border: 0; background: var(--panel-2); color: var(--tx-1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22), var(--sh-press); border-radius: var(--r-md); }
.o6-dz .dz-btn small { color: var(--tx-3); }
.o6-nums { gap: 0; padding: 12px 4px 10px; border-radius: var(--r-lg); background: var(--panel); box-shadow: inset 0 0 0 1px var(--panel-line); }
.o6-nums > div + div { box-shadow: inset 1px 0 0 var(--panel-line); }
.o6-nums b { font-size: 32px; }
.o6-nums small { font-size: 13px; color: var(--tx-3); }
.o6-pl span { color: var(--gold-2); }
.o6-goal p { color: var(--tx-2); }
/* ----- fim V4 ----- */

/* ----- V5: cartas e coleção (carta nova, álbum, coleção, carta 3D, Sala de Troféus, pacotinhos, itens) ----- */
/* Carta desenhando (album.js, cardview.js mount3d: classe .ld até o CRAQUE_CARD terminar): silhueta com brilho
   passando no lugar da carta pela metade (só a nota e a posição enquanto o escudo e a fonte da assinatura carregam) */
@keyframes v5-shim { to { background-position: -200% 0; } }
.al-card.ld, .cv-page .card3d-host.ld > canvas:not(.card3d-cv) {
  background: linear-gradient(110deg, rgba(255, 255, 255, .05) 30%, rgba(255, 255, 255, .13) 50%, rgba(255, 255, 255, .05) 70%) 0 0 / 200% 100%;
  border-radius: 16px 16px 46% 46% / 16px 16px 22% 22%; }
.al-card.ld { animation: pop .45s ease, v5-shim 1.3s linear infinite; }
.al-card.ld canvas { opacity: 0; }
.cv-page .card3d-host.ld > canvas:not(.card3d-cv) { animation: v5-shim 1.3s linear infinite; }
.al-card canvas, .cv-page .card3d-host > canvas:not(.card3d-cv) { transition: opacity .3s ease; }
/* O canvas vazio tem 300×150: com a proporção da carta fixa, nada pula nem alarga a tela enquanto ela desenha */
.al-card { aspect-ratio: 600 / 860; }
.al-card canvas { height: 100%; aspect-ratio: 600 / 860; }
.cv-page .card3d-host.big > canvas:not(.card3d-cv) { aspect-ratio: 600 / 860; max-width: 100%; object-fit: contain; }

/* Carta nova: no computador e no tablet a carta cresce com a altura da tela; o "Toque para continuar" mais legível */
.wo-card { width: min(74vw, 340px, max(220px, calc((100svh - 230px) * .7))); }
.wo-title span { opacity: 1; color: var(--tx-2); }
.wo-tap { font: 600 14px var(--body); color: var(--tx-3); letter-spacing: .02em; }

/* Álbum (stories): uma coluna de celular no meio da tela larga; título no alto, carta e números no meio da altura que sobra */
.album { gap: 12px; padding-left: max(16px, calc(50% - 240px)); padding-right: max(16px, calc(50% - 240px)); }
.al-x { right: max(12px, calc(50% - 236px)); }
.al-x::after { content: ''; position: absolute; inset: -4px; } /* toque de 44 px sem mudar o desenho */
.al-t { margin-top: 4px; text-align: center; line-height: 1.05; }
.album > .al-t + * { margin-top: auto; }
.album > .al-chips { margin-bottom: auto; }
/* Cartas maiores, limitadas pela altura (a temporada tem o recorte de jornal embaixo; a especial fica sozinha) */
.al-card { width: min(66vw, 280px, max(150px, calc((100svh - 340px) / 1.433))); }
.al-card.big { width: min(78vw, 330px, max(170px, calc((100svh - 210px) / 1.433))); }
.al-clip { width: min(100%, 380px); }
/* Carta especial: o nome dela vira o título embaixo da carta (antes uma pílula igual às dos números) */
.al-card.big + .al-chips em { background: none; box-shadow: none; padding: 0; font: 800 24px/1.1 var(--display); letter-spacing: .03em; text-transform: uppercase; color: var(--tx-1); text-align: center; }
.al-chips em { font-size: 14px; padding: 5px 12px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--panel-line); }
/* Última página: a carta final é a estrela (antes era a menor da história), com brilho dourado; curva mais baixa e nomes legíveis */
.al-chart { flex: none; height: min(150px, 18svh); max-width: 420px; }
.al-chart text { font: 600 11px var(--body); paint-order: stroke; stroke: rgba(7, 21, 16, .85); stroke-width: 3px; }
.al-card.small { width: min(58vw, 250px, max(130px, calc((100svh - 400px) / 1.433))); }
.al-card.small canvas { filter: drop-shadow(0 0 24px rgba(244, 214, 117, .38)) drop-shadow(0 8px 16px rgba(0, 0, 0, .5)); }
.al-share { flex: none; margin-top: 0; max-width: 440px; }
/* Tela larga: as laterais escurecem um pouco, a história fica como uma tela de celular no meio */
@media (min-width: 700px) {
  .album { background: linear-gradient(90deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0) calc(50% - 300px), rgba(0, 0, 0, 0) calc(50% + 300px), rgba(0, 0, 0, .3)), radial-gradient(circle at 50% 30%, #1D4430, #071510); }
}

/* Coleção (álbum de folhear): a página ocupa a altura da tela; nomes das vagas legíveis (11 → 13 px) e paginação no padrão */
.bk-page { min-height: clamp(470px, calc(100svh - 210px), 660px); }
.bk-grid { align-content: space-evenly; gap: 14px 12px; }
.bk-head { font-size: 16px; color: var(--gold-ink); align-items: center; }
.bk-head span { font: 700 14px var(--display); letter-spacing: .02em; color: #5B5340; background: rgba(122, 90, 18, .1); border-radius: 999px; padding: 3px 10px; }
.bk-page .col-slot { font: 600 13px/1.2 var(--body); color: var(--ink); gap: 6px; }
.bk-page .col-slot.empty span { opacity: 1; color: var(--ink-2); }
.bk-page .col-slot span.flag { font-size: 22px; }
.bk-page .col-ghost { border-radius: var(--r-sm); }
.col-rar { font-size: 12px; padding: 2px 7px; }
.bk-foot { font: 700 13px var(--display); color: var(--ink-2); }
.bk-cover small { font-size: 14px; color: var(--tx-2); margin-top: 6px; }
/* Capa: sumário com cada parte do álbum (tocar abre a parte); emblema e margens menores para caber em 360×640 */
.bk-cover .bk-emb { font-size: 52px; }
.bk-prog { margin-top: 14px; }
.bk-idx { display: flex; flex-direction: column; width: min(100%, 280px); margin-top: 12px; border-top: 1px solid rgba(244, 214, 117, .22); }
.bk-idx button { display: grid; grid-template-columns: minmax(0, 1fr) 70px 46px; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; border: 0;
  border-bottom: 1px solid rgba(244, 214, 117, .22); background: none; color: var(--tx-1); font: 700 16px var(--display); text-align: left; cursor: pointer; }
.bk-idx button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-idx i { height: 6px; border-radius: 999px; background: rgba(0, 0, 0, .3); overflow: hidden; }
.bk-idx em { display: block; height: 100%; border-radius: 999px; background: var(--gold); }
.bk-idx b { text-align: right; font: 800 16px var(--display); color: var(--gold-2); font-variant-numeric: tabular-nums; }
.bk-idx button.full b::after { content: ' ✓'; }
.desk .bk-idx button:hover span { color: var(--gold-2); }
.bk-nav { gap: 16px; color: var(--tx-2); font: 700 17px var(--display); }
.bk-nav #bk-n { min-width: 120px; text-align: center; }
.bk-arrow { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--panel-line), var(--sh-press); }
.bk-arrow:disabled { opacity: .35; box-shadow: inset 0 0 0 1px var(--panel-line); }

/* Carta aberta (coleção e link compartilhado): nome, posição e dica mais legíveis; botões separados */
.cv-info b { font-size: 32px; line-height: 1.05; }
.cv-info span { font-size: 15px; color: var(--tx-2); }
.cv-page .cv-hint { color: var(--tx-3); margin: 6px 0 16px; }
.cv-info { margin-top: 6px; }
.cv-page .btn + .btn { margin-top: 10px; }
/* Celular baixo (360×640): os dois botões cabem na tela sem rolar (a carta encolhe um pouco) */
@media (max-height: 700px) {
  .cv-page .card3d-host.big { height: min(55vh, 520px); }
  .cv-info { margin-top: 0; }
  .cv-page .cv-hint { margin: 2px 0 10px; }
}

/* Sala de Troféus: na tela larga a estante cresce (640 px) e cabe uma taça a mais por prateleira */
@media (min-width: 1000px) {
  .sala > * { max-width: 640px; }
  .sl-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .sl-honra { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sl-deco { right: -20px; }
  .sl-metas { margin: 0; padding-left: 0; padding-right: 0; }
  .sl-meta { flex: 1 1 0; width: auto; min-width: 0; }
}
.sl-meta b { color: var(--tx-2); }
.sl-hist em { color: var(--ink-2); }

/* Pacotinhos: "Pacotinho 1 de 4" num selo no meio, acima do envelope (antes solto no canto, em 12 px) */
.pk-stage > .pk-eyebrow { align-self: center; padding: 6px 14px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--panel-line);
  font: 700 13px var(--display); letter-spacing: .14em; color: var(--tx-2); }
.pk-odds { font-size: 15px; color: var(--tx-2); }
.pk-odds b { color: var(--tx-1); }
.pk-pity { color: var(--tx-2); }
/* Resumo (abrir todos): os itens no meio da tela, botões embaixo; com muitos itens a grade rola em vez de sair da tela */
.pk-res > .pk-eyebrow { margin-top: auto; }
.pk-res .pk-h { margin-top: -6px; }
.pk-res .pk-grid { flex: 0 1 auto; min-height: 0; overflow-y: auto; padding: 10px 6px 4px; margin: -10px -6px 0; gap: 16px 12px; scrollbar-width: none; }
.pk-t > b { font: 700 15px/1.15 var(--display); }
.pk-acts #pk-close.btn { margin: 0; }

/* Monitor grande (zoom --z): as alturas acima que dependem da tela, divididas pelo zoom */
@media (min-width: 1280px) and (min-height: 860px) {
  html.desk .wo-card { width: min(74vw, 340px, max(220px, calc((100svh / var(--z) - 230px) * .7))); }
  html.desk .al-card { width: min(66vw, 280px, max(150px, calc((100svh / var(--z) - 340px) / 1.433))); }
  html.desk .al-card.big { width: min(78vw, 330px, max(170px, calc((100svh / var(--z) - 210px) / 1.433))); }
  html.desk .al-card.small { width: min(58vw, 250px, max(130px, calc((100svh / var(--z) - 400px) / 1.433))); }
  html.desk .al-chart { height: min(150px, calc(18svh / var(--z))); }
  html.desk .bk-page { min-height: clamp(470px, calc(100svh / var(--z) - 210px), 660px); }
}
/* ----- fim V5 ----- */
