/* ============================================================
   OS DESMANTELADOS — app.css
   Identidade: amarelo e preto, placar de estádio e colete.
   ============================================================ */

/* ---------- Tokens (tema claro) ---------- */
:root {
    color-scheme: light;
    --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;

    --bg: #FAF6E8;
    --surface: #FFFFFF;
    --surface-2: #FCF9EE;
    --surface-3: #F2ECD8;
    --line: #EAE2C8;
    --line-strong: #D8CDA8;
    --text: #17140A;
    --text-2: #5A5340;
    --text-3: #887F66;

    --primary: #FFC800;
    --primary-hover: #F2BC00;
    --on-primary: #17140A;
    --primary-soft: #FFF2BF;
    --primary-soft-text: #7A5900;
    --accent: #FFC800;
    --on-accent: #17140A;
    --focus: #B88A00;
    --ring-soft: rgba(255, 200, 0, .25);

    --danger: #D23A3F;
    --danger-soft: #FBE8E8;
    --warn-text: #A04E00;
    --star: #E6A100;
    --gk-bg: #DDEBFF;
    --gk-fg: #1B4FA0;

    --hl-fg: var(--text);
    --hl-bg: linear-gradient(transparent 58%, var(--accent) 58%, var(--accent) 90%, transparent 90%);

    --inverse-bg: #17140A;
    --inverse-fg: #FAF6E8;
    --inverse-accent: #FFD000;

    --board: #15130C;
    --board-2: #2E2912;
    --board-text: #FAF6E8;
    --board-dim: rgba(250, 246, 232, .62);
    --board-line: rgba(255, 255, 255, .10);
    --board-accent: #FFD000;

    --shadow-1: 0 1px 2px rgba(23, 20, 10, .06);
    --shadow-2: 0 12px 32px -14px rgba(23, 20, 10, .28);
    --shadow-3: 0 24px 60px -18px rgba(23, 20, 10, .42);

    --r-sm: 10px;
    --r: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --top-h: 60px;
    --nav-h: 66px;
    --safe-b: env(safe-area-inset-bottom, 0px);
    --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Tokens (tema escuro) ---------- */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #0E0D09;
        --surface: #17150F;
        --surface-2: #1D1B13;
        --surface-3: #27241A;
        --line: #302C1F;
        --line-strong: #453F2B;
        --text: #F6F1DF;
        --text-2: #BEB69C;
        --text-3: #878068;
        --primary: #FFD000;
        --primary-hover: #FFDC3D;
        --on-primary: #17140A;
        --primary-soft: rgba(255, 208, 0, .13);
        --primary-soft-text: #FFD84D;
        --focus: #FFD000;
        --ring-soft: rgba(255, 208, 0, .18);
        --danger: #FF6368;
        --danger-soft: rgba(255, 99, 104, .12);
        --warn-text: #FFB45C;
        --star: #FFC531;
        --gk-bg: rgba(90, 160, 255, .16);
        --gk-fg: #9CC4FF;
        --hl-fg: var(--accent);
        --hl-bg: none;
        --inverse-bg: #F6F1DF;
        --inverse-fg: #17140A;
        --inverse-accent: #8A6400;
        --board: #14120B;
        --board-2: #302A10;
        --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
        --shadow-2: 0 12px 32px -14px rgba(0, 0, 0, .7);
        --shadow-3: 0 24px 60px -18px rgba(0, 0, 0, .8);
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0E0D09;
    --surface: #17150F;
    --surface-2: #1D1B13;
    --surface-3: #27241A;
    --line: #302C1F;
    --line-strong: #453F2B;
    --text: #F6F1DF;
    --text-2: #BEB69C;
    --text-3: #878068;
    --primary: #FFD000;
    --primary-hover: #FFDC3D;
    --on-primary: #17140A;
    --primary-soft: rgba(255, 208, 0, .13);
    --primary-soft-text: #FFD84D;
    --focus: #FFD000;
    --ring-soft: rgba(255, 208, 0, .18);
    --danger: #FF6368;
    --danger-soft: rgba(255, 99, 104, .12);
    --warn-text: #FFB45C;
    --star: #FFC531;
    --gk-bg: rgba(90, 160, 255, .16);
    --gk-fg: #9CC4FF;
    --hl-fg: var(--accent);
    --hl-bg: none;
    --inverse-bg: #F6F1DF;
    --inverse-fg: #17140A;
    --inverse-accent: #8A6400;
    --board: #14120B;
    --board-2: #302A10;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 12px 32px -14px rgba(0, 0, 0, .7);
    --shadow-3: 0 24px 60px -18px rgba(0, 0, 0, .8);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--top-h) + 12px);
}
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
svg { display: block; }
ul, ol { padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--accent); color: #0D1A12; }

.i {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.sr {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.skip {
    position: fixed;
    left: 12px;
    top: -60px;
    z-index: 100;
    background: var(--inverse-bg);
    color: var(--inverse-fg);
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
}
.skip:focus { top: 10px; }
.muted { color: var(--text-3); }
.small { font-size: .875rem; }
.danger-text { color: var(--danger) !important; }

/* ---------- Header (transparente no topo, vidro fosco ao rolar,
   e no PC vira uma pílula flutuante) ---------- */
.hdr {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    max-width: 896px;
    margin: 0 auto;
    border-bottom: 1px solid transparent;
    transition: top .3s ease-out, max-width .3s ease-out, background-color .3s, border-color .3s, box-shadow .3s;
}
.hdr.is-scrolled,
.hdr.menu-open {
    border-color: var(--line);
    background: color-mix(in srgb, var(--bg) 95%, transparent);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .hdr.is-scrolled,
    .hdr.menu-open {
        background: color-mix(in srgb, var(--bg) 55%, transparent);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
    }
}
.hdr-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    height: var(--top-h);
    padding: 0 16px;
    transition: padding .3s ease-out, height .3s ease-out;
}
.hdr-links { display: none; align-items: center; gap: 6px; }
.hdr-link {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 9px;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--text-2);
    text-decoration: none;
    transition: background .2s, color .2s;
}
.hdr-link:hover { background: var(--surface-3); color: var(--text); }
.hdr-link[aria-current="page"] { color: var(--text); background: var(--primary-soft); }
.hdr-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 9px;
    font-size: .9375rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, border-color .2s, transform .12s;
}
.hdr-btn:active { transform: scale(.96); }
.hdr-btn .i { width: 16px; height: 16px; }
.hdr-btn-outline {
    width: 36px;
    padding: 0;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--text);
}
.hdr-btn-outline:hover { background: var(--surface-3); }
.hdr-btn-outline .i { width: 18px; height: 18px; }
.hdr-btn-primary { background: var(--primary); color: var(--on-primary); }
.hdr-btn-primary:hover { background: var(--primary-hover); }
.hdr-live {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--danger);
    box-shadow: 0 0 0 2px var(--bg);
    animation: pulse 1.4s ease-in-out infinite;
}
.hdr-toggle { width: 40px; height: 40px; border-radius: 10px; }

/* Ícone do menu: as linhas viram um X */
.mt { width: 22px; height: 22px; transition: transform .3s ease-in-out; }
.mt-a { stroke-dasharray: 12 63; transition: stroke-dasharray .3s ease-in-out, stroke-dashoffset .3s ease-in-out; }
.hdr-toggle[aria-expanded="true"] .mt { transform: rotate(-45deg); }
.hdr-toggle[aria-expanded="true"] .mt-a { stroke-dasharray: 20 300; stroke-dashoffset: -32.42px; }

/* Menu do celular (tela cheia abaixo do header) */
.mmenu {
    position: fixed;
    z-index: 49;
    top: var(--top-h);
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 95%, transparent);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .mmenu {
        background: color-mix(in srgb, var(--bg) 55%, transparent);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
    }
}
.mmenu-in {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    height: 100%;
    padding: 16px 16px calc(16px + var(--safe-b));
    animation: menuIn .25s ease-out;
}
.mmenu-links { display: grid; gap: 6px; }
.mmenu-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 54px;
    padding: 0 14px;
    border-radius: 12px;
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    font-size: 1.5rem;
    color: var(--text);
    text-decoration: none;
    transition: background .2s;
}
.mmenu-link:hover { background: var(--surface-3); }
.mmenu-link .i { width: 22px; height: 22px; color: var(--text-3); }
.mmenu-link[aria-current="page"] { background: var(--primary-soft); }
.mmenu-link[aria-current="page"] .i { color: var(--primary-soft-text); }
.mmenu-link .hdr-live { position: static; margin-left: auto; }
.mmenu-foot { display: grid; gap: 12px; }
@keyframes menuIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
body.menu-lock { overflow: hidden; }

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 4px 4px;
    margin-left: -4px;
    text-decoration: none;
    border-radius: 12px;
    transition: background .2s;
}
.brand:hover { background: var(--surface-3); }
.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--board);
    color: var(--board-accent);
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 1px var(--board-line), 0 6px 16px -8px rgba(20, 18, 11, .7);
    flex: none;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-word {
    display: flex;
    flex-direction: column;
    line-height: .88;
    font-family: var(--font-display);
    text-transform: uppercase;
}
.brand-word small {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .2em;
    color: var(--text-3);
}
.brand-word b {
    font-size: 1.4rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: .005em;
}

/* ---------- Navegação ---------- */
.nav {
    position: fixed;
    z-index: 45;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--nav-h) + var(--safe-b));
    padding: 6px 6px var(--safe-b);
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    background: var(--surface);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
}
.nav a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--text-3);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
    border-radius: 14px;
    transition: color .2s;
}
.nav-ic {
    width: 58px;
    height: 30px;
    border-radius: 99px;
    display: grid;
    place-items: center;
    transition: background .25s var(--ease), color .2s;
}
.nav-ic .i { width: 23px; height: 23px; }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] .nav-ic { background: var(--primary-soft); color: var(--primary-soft-text); }
.nav-live {
    position: absolute;
    top: 5px;
    left: calc(50% + 13px);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--danger);
    box-shadow: 0 0 0 2px var(--surface);
    animation: pulse 1.4s ease-in-out infinite;
}

/* ---------- Layout ---------- */
main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 16px 8px;
}
.view { animation: viewIn .35s var(--ease); }

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 6px 2px 18px;
}
.page-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    font-size: clamp(2rem, 7vw, 2.75rem);
    line-height: .95;
}
.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.375rem;
    letter-spacing: .01em;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.1;
}
.card-title {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: .02em;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    line-height: 1.1;
}
.count {
    font-family: var(--font);
    font-size: .8125rem;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0;
    background: var(--surface-3);
    color: var(--text-2);
    padding: 2px 9px;
    border-radius: 99px;
    font-variant-numeric: tabular-nums;
}
.label {
    display: block;
    font-size: .8125rem;
    font-weight: 700;
    color: var(--text-2);
    letter-spacing: .02em;
    margin-bottom: 8px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 16px;
    box-shadow: var(--shadow-1);
}
.card + .card { margin-top: 12px; }

/* ---------- Formulários ---------- */
textarea,
input[type="text"],
input[type="number"] {
    width: 100%;
    font-size: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea {
    resize: none;
    min-height: 56px;
    line-height: 1.45;
    display: block;
}
textarea:focus,
input[type="text"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--ring-soft);
}
::placeholder { color: var(--text-3); opacity: 1; }
.field { display: block; }
.field + .field { margin-top: 18px; }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 13px;
    font-weight: 700;
    font-size: .9375rem;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    transition: transform .12s var(--ease), background .15s, box-shadow .15s, color .15s, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn .i { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 22px -12px var(--primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-soft { background: var(--primary-soft); color: var(--primary-soft-text); }
.btn-soft:hover { filter: brightness(.97); }
.btn-ghost { background: var(--surface-3); color: var(--text); }
.btn-ghost:hover { background: var(--line); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-accent { background: var(--board-accent); color: #17140A; }
.btn-lg { min-height: 56px; font-size: 1.0625rem; border-radius: 16px; padding: 12px 22px; }
.btn-block { width: 100%; }

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--text-2);
    flex: none;
    transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn.sm { width: 34px; height: 34px; border-radius: 10px; }
.icon-btn.sm .i { width: 18px; height: 18px; }
.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: .875rem;
    color: var(--text-2);
    padding: 6px 8px;
    border-radius: 8px;
    text-decoration: none;
}
.link-btn:hover { color: var(--text); background: var(--surface-3); }
.link-btn.danger { color: var(--danger); }

/* Controle segmentado */
.seg {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 4px;
    padding: 4px;
    background: var(--surface-3);
    border-radius: 13px;
}
.seg button {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .9rem;
    color: var(--text-2);
    white-space: nowrap;
    transition: background .2s var(--ease), color .2s, box-shadow .2s;
}
.seg button:hover { color: var(--text); }
.seg button[aria-checked="true"],
.seg button[aria-selected="true"] {
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-1), 0 0 0 1px var(--line);
}
.seg-scroll {
    grid-auto-columns: minmax(max-content, 1fr);
    overflow-x: auto;
    scrollbar-width: none;
}
.seg-scroll::-webkit-scrollbar { display: none; }

/* Stepper */
.stepper {
    display: inline-flex;
    align-items: center;
    background: var(--surface-3);
    border-radius: 13px;
    padding: 4px;
}
.stepper button {
    width: 40px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--text);
}
.stepper button:hover { background: var(--surface); }
.stepper button .i { width: 18px; height: 18px; stroke-width: 2.5; }
.stepper output {
    min-width: 40px;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* Chips / radios */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip > span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 99px;
    background: var(--surface-2);
    border: 1.5px solid var(--line);
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.chip > span:hover { border-color: var(--line-strong); }
.chip input:checked + span { background: var(--primary); border-color: transparent; color: var(--on-primary); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.team-chip .dot { width: 12px; height: 12px; border-radius: 4px; background: var(--team); margin-right: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.color-chip > span {
    width: 42px;
    padding: 0;
    border-radius: 12px;
    background: var(--c);
    border: 2px solid rgba(0, 0, 0, .1);
}
.color-chip input:checked + span {
    background: var(--c);
    border-color: transparent;
    box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--text);
}

/* Switch */
.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
    cursor: pointer;
}
.switch-row:first-child { border-top: 0; }
.switch-row b { display: block; font-weight: 700; }
.switch-row small { display: block; color: var(--text-3); font-size: .8125rem; }
.switch {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    width: 50px;
    height: 30px;
    border-radius: 99px;
    background: var(--line-strong);
    position: relative;
    cursor: pointer;
    transition: background .2s;
}
.switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    transition: transform .22s var(--ease);
}
.switch:checked { background: var(--primary); }
.switch:checked::after { transform: translateX(20px); }

/* ============================================================
   SORTEAR
   ============================================================ */
.hero { padding: 8px 2px 18px; }
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary-soft-text);
    background: var(--primary-soft);
    padding: 5px 11px;
    border-radius: 99px;
    margin-bottom: 12px;
}
.hero-kicker .i { width: 14px; height: 14px; }
.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    font-size: clamp(2.3rem, 10vw, 3.6rem);
    line-height: .9;
    letter-spacing: -.005em;
    transition: font-size .3s var(--ease);
}
.hero-title em {
    font-style: inherit;
    color: var(--hl-fg);
    background: var(--hl-bg);
    padding: 0 .06em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.hero-sub {
    color: var(--text-2);
    max-width: 44ch;
    margin-top: 12px;
    font-size: 1.0625rem;
}
.has-players .hero-kicker,
.has-players .hero-sub { display: none; }
.has-players .hero-title { font-size: clamp(1.8rem, 7vw, 2.5rem); }

.add-card { padding: 14px; }
.add-row { display: flex; gap: 8px; align-items: flex-end; }
.add-row textarea { flex: 1; }
.add-row .btn { height: 56px; flex: none; padding: 0 16px; }
.add-hint { font-size: .8125rem; color: var(--text-3); margin-top: 8px; }
.add-hint button { color: var(--primary-soft-text); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
}
.mode-help {
    grid-column: 1 / -1;
    font-size: .875rem;
    color: var(--text-2);
    padding: 10px 12px;
    background: var(--surface-2);
    border-radius: 12px;
    border: 1px dashed var(--line-strong);
}

.list-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 2px 10px;
}
.player-list {
    list-style: none;
    display: grid;
    gap: 8px;
    container-type: inline-size;
}
.prow {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 6px;
    padding: 6px 6px 6px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
}
.prow.is-new { animation: rowIn .35s var(--ease) both; }
.prow-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}
.prow-name {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 40px;
    padding: 4px 6px;
    border-radius: 9px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}
.prow-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow-name:hover { background: var(--surface-2); }
.prow-name .i-gk { color: var(--gk-fg); width: 18px; height: 18px; }
.gk-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px 0 10px;
    border-radius: 99px;
    font-size: .8125rem;
    font-weight: 700;
    color: var(--text-3);
    border: 1.5px dashed var(--line-strong);
    transition: background .15s, color .15s, border-color .15s;
}
.gk-toggle .i { width: 17px; height: 17px; }
.gk-toggle:hover { color: var(--text-2); border-color: var(--text-3); }
.gk-toggle[aria-pressed="true"] {
    border-style: solid;
    border-color: transparent;
    background: var(--gk-bg);
    color: var(--gk-fg);
}
.prow.is-balanced {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    grid-template-areas: "num name del" ". extra extra";
    row-gap: 2px;
    padding-bottom: 8px;
}
.prow.is-balanced .prow-num { grid-area: num; }
.prow.is-balanced .prow-name { grid-area: name; }
.prow.is-balanced .prow-del { grid-area: del; }
.prow-extra {
    grid-area: extra;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding-right: 4px;
}
@container (min-width: 520px) {
    .prow.is-balanced {
        grid-template-columns: 24px minmax(0, 1fr) auto auto;
        grid-template-areas: "num name extra del";
        padding-bottom: 6px;
    }
    .prow-extra { padding-right: 0; flex-wrap: nowrap; gap: 12px; }
}
.pos-seg {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    background: var(--surface-3);
    border-radius: 11px;
}
.pos-seg button {
    height: 32px;
    padding: 0 11px;
    border-radius: 8px;
    font-size: .8125rem;
    font-weight: 700;
    color: var(--text-3);
    transition: background .15s, color .15s;
}
.pos-seg button:hover { color: var(--text); }
.pos-seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.pos-seg button[data-pos="GOL"][aria-pressed="true"] { background: var(--gk-bg); color: var(--gk-fg); }
.stars { display: inline-flex; }
.stars button {
    width: 31px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--line-strong);
    transition: color .15s, transform .12s var(--ease);
}
.stars button:active { transform: scale(.85); }
.stars button .i { width: 23px; height: 23px; stroke-width: 1.6; }
.stars button.on { color: var(--star); }
.stars button.on .i { fill: currentColor; }

.empty {
    text-align: center;
    padding: 28px 20px 24px;
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--r-lg);
    color: var(--text-2);
}
.empty .art { width: 150px; margin: 0 auto 14px; color: var(--primary-soft-text); }
.empty h3 {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.35rem;
    color: var(--text);
    line-height: 1.1;
}
.empty p { margin-top: 4px; font-size: .9375rem; }
.empty .btn { margin-top: 16px; }

.sticky-cta {
    position: sticky;
    bottom: calc(var(--nav-h) + var(--safe-b) + 10px);
    z-index: 20;
    margin-top: 16px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-3);
}
.cta-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 8px;
    padding: 2px 6px 9px;
    font-size: .8125rem;
    color: var(--text-2);
}
.cta-summary b { color: var(--text); }
.cta-summary .i { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; }
.cta-summary .warn { color: var(--warn-text); font-weight: 600; }
.cta-summary .sep { color: var(--line-strong); }
.cta-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }

/* Times */
.result-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 4px 0 14px;
}
.result-mode {
    margin-left: auto;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-3);
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-weight: 700;
    color: var(--text-2);
    padding: 8px 10px 8px 4px;
    margin-left: -4px;
    border-radius: 10px;
    width: 100%;
}
.back-link:hover { color: var(--text); }
.teams-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}
.team {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-1);
}
.animate .team { animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }
.team-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px 10px 10px;
    background: var(--team);
    color: var(--team-fg);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .08);
    isolation: isolate;
}
.team-head::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .12) 0 7px, transparent 7px 14px);
    opacity: .55;
    pointer-events: none;
}
.team-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 2px 6px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    font-size: 1.4rem;
    letter-spacing: .01em;
    line-height: 1.1;
    color: inherit;
}
.team-name:hover { background: rgba(0, 0, 0, .08); }
.team-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-name .i { width: 15px; height: 15px; opacity: .65; }
.team-meta { font-size: .8125rem; font-weight: 700; opacity: .85; font-variant-numeric: tabular-nums; white-space: nowrap; }
.team-meta.over { opacity: 1; text-decoration: underline wavy; }
.team-players { list-style: none; padding: 6px; }
.tp {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 6px 10px;
    border-radius: 10px;
    text-align: left;
    font-weight: 600;
}
.tp:hover { background: var(--surface-2); }
.tp-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: .6875rem;
    font-weight: 800;
    letter-spacing: .06em;
    padding: 3px 7px;
    border-radius: 7px;
    background: var(--surface-3);
    color: var(--text-2);
}
.tp-badge .i { width: 12px; height: 12px; }
.tp-badge.gk { background: var(--gk-bg); color: var(--gk-fg); }
.tp-stars { display: inline-flex; align-items: center; gap: 2px; font-size: .8125rem; font-weight: 700; color: var(--star); font-variant-numeric: tabular-nums; }
.tp-stars .i { width: 14px; height: 14px; fill: currentColor; stroke-width: 1.5; }
.tp-empty {
    margin: 4px;
    padding: 9px 10px;
    border: 1.5px dashed var(--line);
    border-radius: 10px;
    color: var(--text-3);
    font-size: .875rem;
}

.balance { margin-bottom: 12px; }
.balance-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.balance-top .label { margin: 0; }
.balance-verdict { font-weight: 700; font-size: .875rem; }
.balance-verdict.good { color: var(--primary-soft-text); }
.balance-verdict.warn { color: var(--warn-text); }
.bal-rows { display: grid; gap: 6px; margin-top: 10px; }
.bal-row {
    display: grid;
    grid-template-columns: minmax(70px, 110px) minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
    font-size: .875rem;
    font-weight: 600;
}
.bal-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bal-bar { height: 10px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.bal-bar i {
    display: block;
    height: 100%;
    width: var(--w);
    background: var(--team);
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
    animation: grow .8s var(--ease) both;
    transform-origin: left;
}
.bal-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.balance-foot { margin-top: 10px; font-size: .8125rem; color: var(--text-3); }

.bench { margin-bottom: 12px; border-style: dashed; }
.bench-list { display: flex; flex-wrap: wrap; gap: 8px; }
.bench-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 99px;
    background: var(--surface-2);
    border: 1.5px solid var(--line);
    font-weight: 600;
}
.bench-chip:hover { border-color: var(--primary); }
.bench-chip .i { width: 16px; height: 16px; color: var(--gk-fg); }

.result-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.result-cta .btn-primary { grid-column: 1 / -1; }

.placeholder {
    text-align: center;
    padding: 56px 24px;
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--r-xl);
    color: var(--text-2);
}
.placeholder .art { width: 210px; margin: 0 auto 18px; color: var(--primary-soft-text); opacity: .9; }
.placeholder h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; color: var(--text); }

.seo {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--text-2);
    font-size: .9375rem;
    max-width: 72ch;
}
.seo h2 {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.35rem;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.1;
}
.seo h3 { font-size: 1rem; color: var(--text); margin: 16px 0 4px; }
.seo p + p { margin-top: 8px; }
.seo a { color: var(--primary-soft-text); font-weight: 700; }

/* Mobile: editor e resultado em telas separadas */
#view-sortear[data-sub="editor"] .pane-result { display: none; }
#view-sortear[data-sub="times"] .pane-editor,
#view-sortear[data-sub="times"] .seo { display: none; }

/* ============================================================
   JOGO
   ============================================================ */
.game { display: grid; gap: 14px; }
.match-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 2px 2px 10px;
}
.match-n {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    font-size: 1.5rem;
    line-height: 1;
}
.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font);
    font-style: normal;
    font-size: .6875rem;
    font-weight: 800;
    letter-spacing: .1em;
    color: #fff;
    background: var(--danger);
    padding: 4px 9px;
    border-radius: 99px;
}
.live-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
.chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 99px;
    background: var(--surface-3);
    color: var(--text-2);
    font-size: .8125rem;
    font-weight: 700;
}
.chip-btn:hover { color: var(--text); }
.chip-btn .i { width: 16px; height: 16px; }

.board {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: var(--r-xl);
    padding: 16px 14px 16px;
    color: var(--board-text);
    background-color: var(--board);
    background-image:
        radial-gradient(120% 70% at 50% -10%, var(--board-2), transparent 70%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 46px, transparent 46px 92px);
    box-shadow: var(--shadow-3), inset 0 0 0 1px var(--board-line);
}
.board::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: var(--board-line);
    z-index: -1;
}
.board-clock { position: relative; text-align: center; padding: 6px 0 16px; }
.clock-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(0, 0, 0, .25);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--board-dim);
}
.clock-label .i { width: 14px; height: 14px; }
.clock {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(4.75rem, 25vw, 8rem);
    line-height: .9;
    margin: 8px 0 12px;
    font-variant-numeric: tabular-nums;
    letter-spacing: .01em;
    transition: color .3s, text-shadow .3s;
}
.board.is-running .clock { color: var(--board-accent); text-shadow: 0 0 40px rgba(255, 208, 0, .35); }
.board.is-ended .clock { color: #FF6B70; animation: blink 1.1s steps(2, start) infinite; }
.clock-bar {
    height: 4px;
    max-width: 300px;
    margin: 0 auto 16px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .1);
    overflow: hidden;
}
.clock-bar i { display: block; height: 100%; width: 0; background: var(--board-accent); border-radius: inherit; transition: width .25s linear; }
.clock-ctrls { display: flex; align-items: center; justify-content: center; gap: 20px; }
.round-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--board-text);
    background: rgba(255, 255, 255, .08);
    transition: transform .12s var(--ease), background .15s;
}
.round-btn:hover { background: rgba(255, 255, 255, .15); }
.round-btn:active { transform: scale(.92); }
.round-btn .i { width: 22px; height: 22px; }
.round-btn.play {
    width: 80px;
    height: 80px;
    background: var(--board-accent);
    color: #17140A;
    box-shadow: 0 12px 32px -8px rgba(255, 208, 0, .5);
}
.round-btn.play .i { width: 32px; height: 32px; }
.board-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    padding: 10px 10px 10px 14px;
    border-radius: 16px;
    background: rgba(255, 99, 104, .16);
    box-shadow: inset 0 0 0 1px rgba(255, 99, 104, .35);
    font-weight: 700;
    animation: rowIn .35s var(--ease);
}
.board-alert span { display: flex; align-items: center; gap: 8px; }
.score {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--board-line);
}
.score::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
    border: 2px solid var(--board-line);
    border-radius: 50%;
    transform: translate(-50%, -46%);
    z-index: -1;
}
.side { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.side-name {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    font-weight: 700;
    font-size: 1rem;
}
.side-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-name .dot { flex: none; width: 13px; height: 13px; border-radius: 4px; background: var(--team); box-shadow: 0 0 0 2px rgba(255, 255, 255, .18); }
.side-score {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(5rem, 26vw, 8.5rem);
    line-height: .88;
    font-variant-numeric: tabular-nums;
}
.side-score.bump { animation: bump .6s var(--ease); }
.score-x {
    align-self: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--board-dim);
    margin-top: -40px;
}
.goal-btn {
    width: 100%;
    max-width: 210px;
    min-height: 60px;
    margin-top: 8px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--team);
    color: var(--team-fg);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.45rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    box-shadow: 0 12px 26px -14px var(--team), inset 0 -3px 0 rgba(0, 0, 0, .2), inset 0 0 0 1px rgba(0, 0, 0, .08);
    transition: transform .1s var(--ease), filter .15s;
}
.goal-btn:hover { filter: brightness(1.05); }
.goal-btn:active { transform: scale(.95) translateY(1px); }
.goal-btn .i { width: 22px; height: 22px; stroke-width: 3; }
.end-btn { margin-top: 12px; }

.feed { list-style: none; display: grid; gap: 2px; max-height: 380px; overflow-y: auto; margin: 0 -6px; }
.ev {
    display: grid;
    grid-template-columns: 34px 12px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 5px 4px 5px 6px;
    border-radius: 10px;
}
.ev:first-child { animation: rowIn .35s var(--ease); }
.ev:hover { background: var(--surface-2); }
.ev-min {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-3);
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.ev .dot,
.mi-evs .dot,
.qchip .dot,
.win-row .dot,
.mi-team .dot,
.team-pick .dot,
.fn .dot,
.rank-name .dot { flex: none; width: 11px; height: 11px; border-radius: 3px; background: var(--team); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.ev-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.qchip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px 7px 10px;
    border-radius: 99px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-weight: 700;
    font-size: .875rem;
}
.qchip .n { font-size: .75rem; font-weight: 800; color: var(--text-3); }
.wins { display: grid; gap: 4px; margin-bottom: 8px; }
.win-row { display: flex; align-items: center; gap: 10px; padding: 6px 2px; font-weight: 600; }
.win-row .val { margin-left: auto; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; line-height: 1; font-variant-numeric: tabular-nums; }

.empty-state { text-align: center; max-width: 460px; margin: 7vh auto 0; padding: 0 8px; }
.empty-state .art { width: 190px; margin: 0 auto 20px; color: var(--primary-soft-text); }
.empty-state h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    font-size: 1.9rem;
    line-height: 1;
}
.empty-state p { color: var(--text-2); margin-top: 10px; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }

/* ============================================================
   RESENHA
   ============================================================ */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.tile {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 14px;
    box-shadow: var(--shadow-1);
}
.tile b {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.tile span { font-size: .8125rem; font-weight: 600; color: var(--text-2); }
.tile.hl { background: var(--board); color: var(--board-text); border-color: transparent; }
.tile.hl b { color: var(--board-accent); }
.tile.hl span { color: var(--board-dim); }
.res-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.res-grid > *, .game > *, .split > * { min-width: 0; }
.res-grid .card + .card { margin-top: 0; }
.rank { list-style: none; display: grid; gap: 6px; margin-top: 14px; }
.rank-row {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 9px 14px 9px 9px;
    border-radius: 14px;
    background: var(--surface-2);
}
.rank-row::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--w, 0%);
    background: var(--primary-soft);
    z-index: -1;
    animation: grow .8s var(--ease) both;
    transform-origin: left;
}
.rank-pos {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    background: var(--surface-3);
    color: var(--text-2);
}
.rank-pos.p1 { background: #F5C518; color: #3A2C00; }
.rank-pos.p2 { background: #CBD3D8; color: #23292D; }
.rank-pos.p3 { background: #DB9563; color: #2E1606; }
.rank-name { min-width: 0; font-weight: 700; }
.rank-name > span { display: flex; align-items: center; gap: 7px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rank-name small { display: block; font-weight: 500; font-size: .8125rem; color: var(--text-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rank-val {
    text-align: right;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.6rem;
    line-height: .95;
    font-variant-numeric: tabular-nums;
}
.rank-val small { display: block; font-family: var(--font); font-size: .6875rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.rank-empty { margin-top: 14px; }
.matches { display: grid; gap: 8px; }
.match-item { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; }
.match-item summary {
    list-style: none;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto minmax(0, 1fr) 18px;
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    cursor: pointer;
    border-radius: 14px;
}
.match-item summary::-webkit-details-marker { display: none; }
.mi-n { font-family: var(--font-display); font-weight: 700; color: var(--text-3); }
.mi-team { display: flex; align-items: center; gap: 7px; min-width: 0; font-weight: 500; color: var(--text-2); }
.mi-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-team.right { justify-content: flex-end; }
.mi-team.win { font-weight: 800; color: var(--text); }
.mi-score {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.mi-score i { font-style: normal; color: var(--text-3); margin: 0 5px; font-weight: 600; }
.chev-d { width: 18px; height: 18px; color: var(--text-3); transition: transform .2s var(--ease); }
details[open] > summary .chev-d { transform: rotate(180deg); }
.mi-body { padding: 0 14px 12px; }
.mi-evs { list-style: none; display: grid; gap: 4px; font-size: .9375rem; }
.mi-evs li { display: grid; grid-template-columns: 30px 11px 1fr; align-items: center; gap: 10px; }
.mi-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    font-size: .8125rem;
    color: var(--text-3);
}
.new-night { margin-top: 14px; }

/* ============================================================
   MAIS
   ============================================================ */
.mais { max-width: 720px; margin: 0 auto; }
.mais .card + .card { margin-top: 14px; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 14px; }
.steps li {
    counter-increment: step;
    position: relative;
    padding-left: 44px;
    color: var(--text-2);
}
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    background: var(--primary-soft);
    color: var(--primary-soft-text);
}
.steps b { color: var(--text); }
.acc { border-top: 1px solid var(--line); }
.acc:first-of-type { border-top: 0; }
.acc > summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 10px;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary .chev-d { margin-left: auto; }
.acc-ic {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--surface-3);
    color: var(--text-2);
    flex: none;
}
.acc-ic .i { width: 19px; height: 19px; }
.acc-body { padding: 0 4px 16px 52px; color: var(--text-2); font-size: .9375rem; }
.acc-body p + p { margin-top: 8px; }
.acc-body h4 { color: var(--text); font-size: .9375rem; margin: 14px 0 2px; }
.acc-body ul { padding-left: 18px; display: grid; gap: 4px; }
.acc-body a { color: var(--primary-soft-text); font-weight: 700; }
.support {
    background: var(--board);
    color: var(--board-text);
    border-color: transparent;
    background-image: radial-gradient(90% 90% at 100% 0%, var(--board-2), transparent 70%);
}
.support .card-title { color: var(--board-accent); }
.support p { color: var(--board-dim); }
.menu-list { list-style: none; margin: -6px; }
.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: 13px;
    text-decoration: none;
    font-weight: 700;
}
.menu-item:hover { background: var(--surface-2); }
.menu-item small { display: block; font-weight: 500; font-size: .8125rem; color: var(--text-3); }
.menu-item .acc-ic { background: var(--primary-soft); color: var(--primary-soft-text); }
.menu-item .chev { margin-left: auto; color: var(--text-3); width: 18px; height: 18px; }
.pref-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pref-row + .pref-row { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.pref-row p { color: var(--text-3); font-size: .875rem; max-width: 40ch; }
.pref-row b { display: block; }

/* ============================================================
   SHEET (dialog), TOAST, RODAPÉ
   ============================================================ */
.sheet {
    border: 0;
    padding: 0;
    margin: auto auto 0;
    width: 100%;
    max-width: 560px;
    max-height: min(90dvh, 780px);
    background: var(--surface);
    color: var(--text);
    border-radius: 26px 26px 0 0;
    box-shadow: var(--shadow-3);
    overflow: hidden;
}
.sheet[open] { display: flex; flex-direction: column; animation: sheetUp .34s var(--ease); }
.sheet::backdrop {
    background: rgba(10, 9, 5, .55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    animation: fade .25s ease;
}
/* flex: 1 1 auto (não "flex: 1"): no Safari, base 0 deixava a janela com altura 0 (só o fundo escuro) */
.sheet-inner { display: flex; flex-direction: column; min-height: 0; max-height: inherit; flex: 1 1 auto; }
.sheet-band { height: 7px; background: var(--team); flex: none; }
.grabber { width: 42px; height: 5px; border-radius: 99px; background: var(--line-strong); margin: 8px auto 0; flex: none; }
.sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px 8px 20px;
    flex: none;
}
.sheet-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    font-size: 1.65rem;
    line-height: 1.02;
    padding-top: 6px;
}
.sheet-sub { color: var(--text-2); margin-top: 2px; }
.sheet-body { padding: 6px 20px calc(20px + var(--safe-b)); overflow-y: auto; }
.sheet-text { color: var(--text-2); margin-bottom: 14px; }
.sheet-text b { color: var(--text); }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sheet-actions .btn { flex: 1 1 auto; }
.pick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pick {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 56px;
    padding: 8px 14px;
    border-radius: 15px;
    background: var(--surface-2);
    border: 1.5px solid var(--line);
    font-weight: 700;
    text-align: left;
    transition: border-color .15s, background .15s, transform .1s;
}
.pick:hover { border-color: var(--primary); }
.pick:active { transform: scale(.97); }
.pick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick .i { color: var(--gk-fg); width: 18px; height: 18px; }
.pick-extra { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pick-extra .btn { flex: 1 1 140px; }
.pick-col { display: grid; gap: 8px; }
.team-pick {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 10px 14px;
    border-radius: 15px;
    background: var(--surface-2);
    border: 1.5px solid var(--line);
    font-weight: 700;
    text-align: left;
}
.team-pick:hover { border-color: var(--primary); }
.team-pick .dot { width: 16px; height: 16px; border-radius: 5px; }
.team-pick .dot-empty { background: transparent; box-shadow: inset 0 0 0 2px var(--line-strong); }
.team-pick small { margin-left: auto; color: var(--text-3); font-weight: 600; text-align: right; }
.team-pick:disabled { opacity: .5; cursor: default; }
.team-pick:disabled:hover { border-color: var(--line); }
.final {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 16px 12px;
    border-radius: 18px;
    text-align: center;
    color: var(--board-text);
    background: var(--board);
    background-image: radial-gradient(100% 100% at 50% 0%, var(--board-2), transparent 75%);
}
.fs { font-family: var(--font-display); font-weight: 800; font-size: 3.6rem; line-height: .95; font-variant-numeric: tabular-nums; }
.fx { font-family: var(--font-display); font-size: 1.5rem; color: var(--board-dim); }
.fn { display: flex; align-items: center; justify-content: center; gap: 7px; font-weight: 700; font-size: .9375rem; min-width: 0; }
.fn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.toast {
    position: fixed;
    z-index: 70;
    left: 50%;
    bottom: calc(var(--nav-h) + var(--safe-b) + 14px);
    transform: translate(-50%, 16px);
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    max-width: calc(100% - 32px);
    padding: 12px 12px 12px 16px;
    border-radius: 15px;
    background: var(--inverse-bg);
    color: var(--inverse-fg);
    font-weight: 600;
    font-size: .9375rem;
    box-shadow: var(--shadow-3);
    transition: opacity .2s, transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast-act {
    flex: none;
    padding: 6px 10px;
    border-radius: 8px;
    color: var(--inverse-accent);
    font-weight: 800;
    font-size: .8125rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.toast-act:hover { background: rgba(127, 127, 127, .15); }

/* ---------- Rodapé (nome gigante + logo flutuante) ---------- */
.site-footer {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* no celular, deixa espaço pra barra de navegação fixa */
    padding-bottom: calc(var(--nav-h) + var(--safe-b));
}
.sf {
    position: relative;
    margin-top: 80px;
    border-top: 1px solid var(--line);
    background: var(--bg);
}
.sf-inner {
    position: relative;
    max-width: 1280px;
    min-height: 30rem;
    margin: 0 auto;
    padding: 40px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sf-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 48px;
    text-align: center;
}
.sf-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    font-size: 2rem;
    line-height: 1.1;
    color: var(--text);
}
.sf-desc {
    margin-top: 8px;
    width: 100%;
    max-width: 24rem;
    padding: 0 16px;
    font-weight: 600;
    color: var(--text-3);
}
.sf-social { display: flex; gap: 16px; margin: 14px 0 32px; }
.sf-social a { color: var(--text-3); transition: color .2s; }
.sf-social a:hover { color: var(--text); }
.sf-social .i { width: 24px; height: 24px; transition: transform .3s var(--ease); }
.sf-social a:hover .i { transform: scale(1.1); }
.sf-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    padding: 0 16px;
    font-size: .875rem;
    font-weight: 500;
}
.sf-nav a { color: var(--text-3); text-decoration: none; transition: color .3s; }
.sf-nav a:hover { color: var(--text); font-weight: 600; }
.sf-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 80px;
    padding: 0 16px;
    text-align: center;
    font-size: .8125rem;
    color: var(--text-3);
}
.sf-giant {
    position: absolute;
    left: 50%;
    bottom: 10.5rem;
    transform: translateX(-50%);
    max-width: 95vw;
    padding: 0 16px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3rem, 12vw, 10rem);
    line-height: 1;
    letter-spacing: -.02em;
    white-space: nowrap;
    text-align: center;
    color: transparent;
    background: linear-gradient(to bottom,
        color-mix(in srgb, var(--text) 20%, transparent),
        color-mix(in srgb, var(--text) 10%, transparent),
        transparent);
    -webkit-background-clip: text;
    background-clip: text;
    pointer-events: none;
    user-select: none;
}
.sf-logo {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 6.5rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 24px;
    border: 2px solid var(--line);
    background: color-mix(in srgb, var(--bg) 60%, transparent);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, .5));
    transition: border-color .4s;
}
.sf-logo:hover { border-color: var(--text); }
.sf-logo-in {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(to bottom right, var(--text), color-mix(in srgb, var(--text) 80%, transparent));
    color: var(--bg);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .2);
}
.sf-logo-in svg { width: 32px; height: 32px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3)); }
.sf-line {
    position: absolute;
    left: 50%;
    bottom: 8.5rem;
    transform: translateX(-50%);
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--line-strong), transparent);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.sf-fade {
    position: absolute;
    left: 0;
    bottom: 7.5rem;
    width: 100%;
    height: 6rem;
    background: linear-gradient(to top, var(--bg), color-mix(in srgb, var(--bg) 80%, transparent), color-mix(in srgb, var(--bg) 40%, transparent));
    filter: blur(1em);
    pointer-events: none;
}
:root[data-theme="dark"] .sf-logo { filter: drop-shadow(0 0 20px rgba(255, 255, 255, .3)); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .sf-logo { filter: drop-shadow(0 0 20px rgba(255, 255, 255, .3)); }
}
@media (min-width: 640px) {
    .sf-inner { min-height: 35rem; }
    .sf-top { margin-bottom: 80px; }
    .sf-bottom { font-size: .9375rem; }
    .sf-giant { bottom: 10rem; }
    .sf-logo { bottom: 6rem; }
    .sf-logo-in { width: 64px; height: 64px; }
    .sf-logo-in svg { width: 40px; height: 40px; }
    .sf-fade { bottom: 7rem; }
}
@media (min-width: 768px) {
    .sf-inner { min-height: 40rem; }
    .sf-top { margin-bottom: 0; }
    .sf-bottom { flex-direction: row; justify-content: space-between; gap: 4px; margin-top: 96px; padding: 0; text-align: left; }
    .sf-giant { bottom: 8rem; }
    .sf-logo { bottom: 5rem; }
    .sf-logo-in { width: 96px; height: 96px; }
    .sf-logo-in svg { width: 56px; height: 56px; }
}

/* ============================================================
   DESKTOP
   ============================================================ */
@media (min-width: 640px) {
    .sheet { margin: auto; border-radius: 24px; }
    .sheet[open] { animation: pop .26s var(--ease); }
    .grabber { display: none; }
    .sheet-head { padding-top: 18px; }
    .pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    :root { --top-h: 60px; --nav-h: 0px; }
    /* No PC a navegação mora no header; a barra de baixo some */
    .nav, .hdr-toggle, .mmenu { display: none !important; }
    .hdr-links { display: flex; }
    .hdr { border: 1px solid transparent; border-radius: 14px; margin-top: 0; }
    .hdr.is-scrolled {
        top: 16px;
        max-width: 780px;
        border-color: var(--line);
        box-shadow: var(--shadow-2);
    }
    .hdr.is-scrolled .hdr-nav { padding: 0 8px; height: 56px; }
    main { padding: 28px 28px 8px; }
    .sticky-cta { bottom: 16px; }
    .toast { bottom: 24px; }
    .site-footer { padding-bottom: 0; }
    .only-mobile { display: none !important; }
}
/* Telas médias (tablet / janela pequena no PC): uma coluna centralizada */
@media (min-width: 640px) and (max-width: 999px) {
    .split, .game, .res-grid, .tiles, #view-resenha .page-head {
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
    }
    #view-sortear .seo { margin-left: auto; margin-right: auto; max-width: 680px; }
}
@media (min-width: 1000px) {
    /* Times: ações no topo, sem barra fixa por cima dos cards */
    .pane-result { display: flex; flex-direction: column; }
    .pane-result .result-cta {
        order: 1;
        position: static;
        grid-template-columns: 1fr 1fr 1.3fr;
        margin: 0 0 14px;
        padding: 0;
        background: none;
        border: 0;
        box-shadow: none;
    }
    .pane-result .result-cta .btn-primary { grid-column: auto; min-height: 46px; font-size: .9375rem; }
    .pane-result .bench, .pane-result .balance { order: 2; }
    .pane-result .teams-grid { order: 3; }
    .pane-result .placeholder { order: 0; }

    /* Mais: duas colunas */
    .mais { max-width: 1120px; columns: 2; column-gap: 18px; }
    .mais .page-head { column-span: all; }
    .mais .card { break-inside: avoid; margin: 0 0 18px; }
    .mais .card + .card { margin-top: 0; }

    .split {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        gap: 32px;
        align-items: start;
    }
    #view-sortear .pane-editor,
    #view-sortear .seo { display: block !important; }
    #view-sortear .pane-result { display: flex !important; }
    .pane-result { padding-top: 8px; }
    .game { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px; align-items: start; }
    .game-side .card + .card { margin-top: 14px; }
    .res-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
    .board { padding: 24px 24px 22px; }
}

/* Monitores grandes: aproveita a largura e aumenta o placar */
@media (min-width: 1440px) {
    main { max-width: 1320px; }
    .clock { font-size: 9.5rem; }
    .side-score { font-size: 10rem; }
    .goal-btn { max-width: 260px; min-height: 68px; font-size: 1.6rem; }
    .board { padding: 32px 32px 28px; }
    .score::before { width: 190px; height: 190px; }
}

/* ============================================================
   ANIMAÇÕES
   ============================================================ */
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.22); color: var(--board-accent); } 100% { transform: scale(1); } }
@keyframes blink { to { opacity: .35; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

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

/* ============================================================
   COMPARTILHADO (site + painel)
   ============================================================ */
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: none;
    background: var(--board);
    color: var(--board-accent);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: .9rem;
    letter-spacing: .02em;
    box-shadow: inset 0 0 0 1px var(--board-line);
}
.avatar.lg { width: 52px; height: 52px; font-size: 1.25rem; }
.avatar.xl { width: 84px; height: 84px; font-size: 2rem; }
.star-row { display: inline-flex; gap: 1px; color: var(--line-strong); }
.star-row .i { width: 15px; height: 15px; stroke-width: 1.6; }
.star-row .i.on { color: var(--star); fill: currentColor; }
.tag {
    font-size: .6875rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--primary-soft);
    color: var(--primary-soft-text);
    vertical-align: 2px;
}
.tag.off { background: var(--surface-3); color: var(--text-3); }
a.tp, a.bench-chip { color: inherit; text-decoration: none; }
.loading { padding: 60px 0; text-align: center; color: var(--text-3); }
.roster-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 12px; }
.roster-tools > input { flex: 1 1 220px; }
.search-box {
    flex: 1 1 220px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring-soft); }
.search-box .i { color: var(--text-3); }
.search-box input[type="text"] { border: 0; background: none; padding: 11px 0; box-shadow: none; }
.sort-seg { flex: 0 1 auto; }
.chip-opt {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 99px;
    background: var(--surface-2);
    border: 1.5px solid var(--line);
    font-weight: 700;
    font-size: .9rem;
}
.chip-opt[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.tiles-5 { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }

/* ---------- Site: ao vivo ---------- */
.live-block { margin-top: 28px; }
.live-block > .section-title { margin-bottom: 12px; }
.live-wait { display: flex; align-items: center; gap: 14px; }
.live-wait > .i { width: 32px; height: 32px; color: var(--primary-soft-text); }
.board-status { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--board-dim); }
.board.viewer .score { padding-bottom: 6px; }
.ev-ro { grid-template-columns: 34px 12px minmax(0, 1fr); }

/* ---------- Site: peladas ---------- */
.pelada-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.pelada-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-1);
    color: inherit;
    text-decoration: none;
    transition: transform .2s var(--ease), box-shadow .2s;
}
.pelada-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.pelada-card.is-open, .prow-pelada.is-open { border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring-soft); }
.pc-date, .pp-date {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    background: var(--board);
    color: var(--board-text);
}
.pc-date b, .pp-date b { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--board-accent); }
.pc-date small, .pp-date small { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.pc-main, .pp-main { min-width: 0; }
.pc-main b, .pp-main b { display: block; text-transform: capitalize; }
.pc-main small, .pp-main small { display: block; font-size: .8125rem; color: var(--text-3); }
.pc-top { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .8125rem; font-weight: 700; color: var(--primary-soft-text); }
.pc-top .i { width: 14px; height: 14px; }
.pelada-card .chev { width: 18px; height: 18px; color: var(--text-3); }

/* ---------- Site: jogadores ---------- */
.pcards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.pcard {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "av main" "stats stats";
    align-items: center;
    gap: 12px 14px;
    padding: 14px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-1);
    color: inherit;
    text-decoration: none;
    transition: transform .2s var(--ease), box-shadow .2s;
}
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.pcard .avatar { grid-area: av; }
.pcard-main { grid-area: main; min-width: 0; }
.pcard-main b { display: block; font-size: 1.05rem; }
.pcard-main small { display: block; font-size: .8125rem; color: var(--text-3); margin-bottom: 2px; }
.pcard-stats { grid-area: stats; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pcard-stats span {
    padding: 6px 4px;
    border-radius: 10px;
    background: var(--surface-2);
    text-align: center;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-3);
}
.pcard-stats b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; line-height: 1.1; letter-spacing: 0; color: var(--text); }
.profile { display: flex; align-items: center; gap: 18px; margin: 10px 0 18px; }
.profile .page-title { font-size: clamp(2rem, 8vw, 3rem); }
.profile .star-row .i { width: 20px; height: 20px; }
.table-wrap { overflow-x: auto; }
.stat-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.stat-table th {
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: .75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-3);
}
.stat-table td { padding: 10px; border-bottom: 1px solid var(--line); font-weight: 600; }
.stat-table tr:last-child td { border-bottom: 0; }
.stat-table th:not(:first-child), .stat-table td:not(:first-child) { text-align: center; }
.stat-table td a { color: var(--text); font-weight: 700; text-decoration: none; text-transform: capitalize; }

/* ============================================================
   PAINEL ADMIN
   ============================================================ */
body.admin-page { --nav-h: 0px; }

/* Login */
.login {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px 16px;
    background: radial-gradient(80% 60% at 50% 0%, var(--primary-soft), transparent 70%), var(--bg);
}
.login-card {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 28px 24px;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-3);
}
.login-mark { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 10px; }
.login-mark svg { width: 36px; height: 36px; }
.login-title { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 2rem; line-height: 1; }
.login-card .label { margin-top: 14px; }
.login-admins { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.login-admin {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1.5px solid var(--line);
    background: var(--surface-2);
    font-weight: 700;
    text-align: left;
    transition: border-color .15s, background .15s;
}
.login-admin:hover { border-color: var(--line-strong); }
.login-admin[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); }
.login-key {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: var(--surface-2);
}
.login-key:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring-soft); }
.login-key .i { color: var(--text-3); }
.login-key input {
    flex: 1;
    min-width: 0;
    padding: 13px 0;
    border: 0;
    outline: none;
    background: none;
    color: var(--text);
    font-size: 16px;
    letter-spacing: .06em;
}
.login-msg { min-height: 1.4em; margin: 6px 0; font-size: .875rem; font-weight: 600; color: var(--danger); }
.login-back { align-self: center; margin-top: 8px; }

/* Estrutura: barra lateral + conteúdo */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.sb {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 12px;
    overflow-y: auto;
    background: var(--surface);
    border-right: 1px solid var(--line);
}
.sb-top { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.sb-org { min-width: 0; }
.sb-org b { display: block; font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.1rem; line-height: 1.1; white-space: nowrap; }
.sb-org small { display: block; font-size: .75rem; color: var(--text-3); }
.sb-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sb-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    color: var(--text-2);
    font-size: .9375rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.sb-item:hover { background: var(--surface-3); color: var(--text); }
.sb-item[aria-current="page"] { background: var(--primary-soft); color: var(--text); }
.sb-item[aria-current="page"] .i { color: var(--primary-soft-text); }
.sb-item .i { width: 19px; height: 19px; flex: none; }
.sb-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-badge {
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 99px;
    background: var(--surface-3);
    color: var(--text-2);
    font-size: .75rem;
    font-style: normal;
    font-weight: 700;
}
.sb-live { position: static; flex: none; }
.sb-label { padding: 16px 10px 6px; font-size: .6875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.sb-bottom { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; border-top: 1px solid var(--line); }
.sb-scrim { display: none; }
.main-col { min-width: 0; display: flex; flex-direction: column; }
.ab {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 60px;
    padding: 0 16px 0 10px;
    background: var(--bg);
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .9375rem; }
.crumbs b { white-space: nowrap; }
.ab-spacer { flex: 1; }
.sync-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 99px;
    background: var(--surface-3);
    color: var(--text-2);
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}
.sync-pill i { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; }
.sync-pill.saving i { background: var(--star); animation: pulse 1s infinite; }
.sync-pill.error { color: var(--danger); }
.sync-pill.error i { background: var(--danger); }
.me { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.admin-main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 20px 16px 48px; }
#view-sortear[data-empty="true"] .sortear-body { display: none; }
#view-sortear[data-empty="false"] #sortearEmpty { display: none; }

/* Visão geral */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.dash-big { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.8rem; margin: 4px 0; }
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.dash-stats div { padding: 12px; border-radius: 14px; background: var(--surface-2); }
.dash-stats b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; }
.dash-stats span { font-size: .8125rem; font-weight: 600; color: var(--text-2); }
.dash-live {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 16px;
    background: var(--board);
    color: var(--board-text);
    text-decoration: none;
}
.dash-live > b { font-family: var(--font-display); font-weight: 800; font-size: 2rem; }
.dash-live-t { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; }
.dash-live-t.right { justify-content: flex-end; }
.dash-live-t .dot { width: 11px; height: 11px; border-radius: 3px; background: var(--team); flex: none; }
.dash-live-clock {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--board-accent);
}
.dash-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-actions .btn { flex: 1 1 auto; }

/* Jogadores do grupo */
.roster { list-style: none; display: grid; gap: 8px; container-type: inline-size; }
.rrow {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "av main" "ctrl ctrl";
    align-items: center;
    gap: 8px 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
}
.rrow .avatar { grid-area: av; }
.rrow-main { grid-area: main; min-width: 0; text-align: left; padding: 4px; border-radius: 8px; }
.rrow-main:hover { background: var(--surface-2); }
.rrow-main b { display: block; }
.rrow-main small { display: block; font-size: .8125rem; color: var(--text-3); }
.rrow-ctrl { grid-area: ctrl; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.rrow.is-off { opacity: .6; }
@container (min-width: 640px) {
    .rrow { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "av main ctrl"; }
    .rrow-ctrl { gap: 12px; flex-wrap: nowrap; }
}

/* Peladas (admin) */
.pelada-list { list-style: none; display: grid; gap: 8px; }
.prow-pelada {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-areas: "d m" "a a";
    align-items: center;
    gap: 10px 14px;
    padding: 12px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
}
.prow-pelada .pp-date { grid-area: d; }
.prow-pelada .pp-main { grid-area: m; }
.pp-actions { grid-area: a; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
@media (min-width: 700px) {
    .prow-pelada { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "d m a"; }
}

/* Configurações */
.config-grid { display: grid; gap: 14px; }
.config-grid .card + .card { margin-top: 0; }

/* Barra lateral: gaveta no celular, recolhível no PC */
@media (max-width: 999px) {
    .shell { grid-template-columns: minmax(0, 1fr); }
    .sb {
        position: fixed;
        z-index: 60;
        top: 0;
        bottom: 0;
        left: 0;
        width: 280px;
        transform: translateX(-100%);
        transition: transform .3s var(--ease);
        box-shadow: var(--shadow-3);
    }
    .sb-open .sb { transform: none; }
    .sb-scrim {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 55;
        background: rgba(10, 9, 5, .5);
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s;
    }
    .sb-open .sb-scrim { opacity: 1; pointer-events: auto; }
    .me-name, .crumbs .muted { display: none; }
}
@media (min-width: 1000px) {
    .shell.sb-collapsed { grid-template-columns: 72px minmax(0, 1fr); }
    .sb-collapsed .sb-org,
    .sb-collapsed .sb-item span,
    .sb-collapsed .sb-badge,
    .sb-collapsed .sb-label { display: none; }
    .sb-collapsed .sb-item { justify-content: center; padding: 0; }
    .sb-collapsed .sb-top { justify-content: center; padding-left: 0; padding-right: 0; }
    .admin-main { padding: 28px 28px 48px; }
    .dash-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
    .dash-grid > :last-child { grid-column: 1 / -1; }
    .config-grid { grid-template-columns: 1fr 1fr; }
}
/* Com a lateral aberta sobra menos espaço: lista e times um embaixo do outro */
@media (min-width: 1000px) and (max-width: 1299px) {
    .admin-page .split { display: block; }
    .admin-page .pane-result { margin-top: 28px; }
}
/* ============================================================
   LISTAS (inscrição)
   ============================================================ */
.lista-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--primary);
    color: var(--on-primary);
    text-align: left;
    text-decoration: none;
    box-shadow: 0 12px 28px -16px var(--primary);
    transition: transform .15s var(--ease), filter .15s;
}
.lista-cta:hover { filter: brightness(1.04); }
.lista-cta:active { transform: scale(.99); }
.lista-cta-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(0, 0, 0, .12); flex: none; }
.lista-cta-ic .i { width: 22px; height: 22px; }
.lista-cta-main { flex: 1; min-width: 0; }
.lista-cta-main b { display: block; font-weight: 800; }
.lista-cta-main small { display: block; font-size: .8125rem; font-weight: 600; opacity: .8; }
.lista-cta .chev { width: 20px; height: 20px; }

.lista-card {
    overflow: hidden;
    border-radius: var(--r-xl);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-2);
}
.lista-card + .lista-card { margin-top: 18px; }
.lista-head {
    padding: 20px 18px 18px;
    color: var(--board-text);
    background-color: var(--board);
    background-image: radial-gradient(120% 90% at 100% 0%, var(--board-2), transparent 70%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 40px, transparent 40px 80px);
}
.lh-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: .6875rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .1);
    color: var(--board-dim);
}
.lh-status.open { background: var(--board-accent); color: #17140A; }
.lh-status.open::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
.lh-title {
    margin: 10px 0 12px;
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    font-size: clamp(1.8rem, 7vw, 2.6rem);
    line-height: .95;
}
.lh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lh-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .08);
    font-size: .875rem;
    font-weight: 600;
}
.lh-chip .i { width: 15px; height: 15px; color: var(--board-accent); }
.lh-progress { margin-top: 16px; font-size: .875rem; color: var(--board-dim); }
.lh-progress b { color: var(--board-text); }
.lh-bar { height: 6px; margin-bottom: 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.lh-bar i { display: block; height: 100%; border-radius: inherit; background: var(--board-accent); transition: width .5s var(--ease); }
.lista-body { display: grid; gap: 16px; padding: 16px; }
.lista-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lista-actions .btn { flex: 1 1 auto; }

.join-form { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: var(--primary-soft); }
.join-form .label { margin: 0; color: var(--text); }
.join-row { display: flex; flex-wrap: wrap; gap: 8px; }
.join-row input[type="text"] { flex: 1 1 200px; background: var(--surface); }
.join-kind { flex: 0 0 auto; }
.join-hint { margin: 0; }
.join-done {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--primary-soft);
}
.join-done > div { flex: 1 1 180px; min-width: 0; }
.join-done b { display: block; }
.join-done small { display: block; font-size: .875rem; color: var(--text-2); }
.join-ok { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); flex: none; }
.join-ok .i { width: 20px; height: 20px; stroke-width: 3; }
.join-closed { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); color: var(--text-2); font-weight: 600; }
.entry-add .join-row .btn { flex: 0 0 auto; }

.ls-grid { display: grid; gap: 14px; }
.ls-side { display: grid; gap: 14px; align-content: start; }
.ls-block { padding: 14px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.ls-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.15rem; }
.ls-title .i { width: 18px; height: 18px; color: var(--primary-soft-text); }
.ls-wait .ls-title .i { color: var(--text-3); }
.ls-list { list-style: none; display: grid; gap: 2px; }
.ls-row { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 4px 6px 4px 4px; border-radius: 10px; }
.ls-row:nth-child(odd) { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.ls-n { width: 28px; flex: none; text-align: right; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ls-n::after { content: '-'; margin-left: 1px; }
.ls-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-name b { font-weight: 700; }
.ls-row.is-empty .ls-name { color: var(--line-strong); }
.ls-row.is-me { background: var(--primary-soft) !important; box-shadow: inset 0 0 0 1.5px var(--primary); }
.ls-acts { display: flex; gap: 2px; flex: none; }
.tag.you { background: var(--primary); color: var(--on-primary); }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.form-grid .field + .field { margin-top: 0; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
input[type="date"], input[type="time"] {
    width: 100%;
    font-size: 16px;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
}
input[type="date"]:focus, input[type="time"]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring-soft); }
.num-field input { text-align: center; font-weight: 700; }

@media (min-width: 760px) {
    .ls-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
    .lista-head { padding: 26px 26px 22px; }
    .lista-body { padding: 22px 26px 26px; }
}
/* ============================================================
   CONTA DO JOGADOR (entrar / criar conta / perfil)
   ============================================================ */
.hdr-nav .brand { margin-right: auto; }
.hdr-account {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px 0 10px;
    margin-right: 8px;
    border-radius: 99px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--text);
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
    flex: none;
}
.hdr-account .i { width: 17px; height: 17px; }
.hdr-account.is-in { padding: 0; border: 0; background: none; width: 38px; height: 38px; justify-content: center; }
.hdr-account.is-in .avatar { box-shadow: 0 0 0 2px var(--primary); }
@media (min-width: 900px) { .hdr-account { order: 3; margin: 0 0 0 6px; } .hdr-links { order: 2; } }

.avatar.has-photo { overflow: hidden; background: var(--surface-3); }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.sm { width: 34px; height: 34px; font-size: .85rem; }
.avatar.sm .i { width: 18px; height: 18px; }
.avatar.xs { width: 24px; height: 24px; font-size: .7rem; }
.tag.acc { background: var(--gk-bg); color: var(--gk-fg); }

/* Card de login (escuro, no estilo do componente de referência) */
.auth {
    display: grid;
    place-items: center;
    min-height: calc(100vh - var(--top-h) - 40px);
    padding: 12px 0 24px;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 36px 28px 28px;
    border-radius: 32px;
    text-align: center;
    color: #F4F1E6;
    background: linear-gradient(160deg, #22201A 0%, #15130E 55%, #100F0B 100%);
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.auth-logo {
    width: 76px;
    height: 76px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #17140A;
    background: radial-gradient(circle at 30% 25%, #FFE779, #FFC800 60%, #E0A800);
    box-shadow: 0 0 0 4px rgba(255, 208, 0, .14), 0 16px 34px -12px rgba(255, 200, 0, .55);
}
.auth-logo svg { width: 46px; height: 46px; }
.auth-brand { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 2rem; line-height: 1; }
.auth-sub { margin: 10px auto 22px; max-width: 32ch; color: rgba(244, 241, 230, .62); font-size: .9375rem; }
.auth-form { display: grid; gap: 12px; text-align: left; }
.auth-input,
.auth-card input[type="text"].auth-input {
    width: 100%;
    height: 54px;
    padding: 0 22px;
    border-radius: 99px;
    border: 1.5px solid transparent;
    background: rgba(255, 255, 255, .07);
    color: #F4F1E6;
    font-size: 16px;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.auth-input::placeholder { color: rgba(244, 241, 230, .45); }
.auth-input:focus { outline: none; border-color: #FFD000; background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 4px rgba(255, 208, 0, .14); }
.auth-pass { position: relative; }
.auth-pass .auth-input { padding-right: 54px; }
.auth-eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: rgba(244, 241, 230, .5);
}
.auth-eye:hover, .auth-eye.on { color: #FFD000; }
.auth-eye .i { width: 19px; height: 19px; }
.auth-sep { border: 0; height: 1px; margin: 6px 0; background: rgba(255, 255, 255, .08); }
.auth-btn {
    width: 100%;
    height: 54px;
    border-radius: 99px;
    font-weight: 800;
    font-size: 1.0625rem;
    background: rgba(255, 255, 255, .08);
    color: #F4F1E6;
    transition: filter .15s, transform .12s;
}
.auth-btn.primary { background: #FFD000; color: #17140A; box-shadow: 0 14px 30px -14px rgba(255, 208, 0, .8); }
.auth-btn:hover { filter: brightness(1.06); }
.auth-btn:active { transform: scale(.98); }
.auth-btn:disabled { opacity: .6; pointer-events: none; }
.auth-link { color: #F4F1E6; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.auth-link:hover { color: #FFD000; }
.auth-link.small { justify-self: center; font-size: .875rem; font-weight: 600; color: rgba(244, 241, 230, .6); }
.auth-foot { margin-top: 22px; color: rgba(244, 241, 230, .6); font-size: .9375rem; }
.auth-steps { display: flex; justify-content: center; gap: 6px; margin: 4px 0 -2px; }
.auth-steps i { width: 26px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .12); transition: background .3s; }
.auth-steps i.on { background: #FFD000; }
.auth-card .seg { background: rgba(255, 255, 255, .07); }
.auth-card .seg button { color: rgba(244, 241, 230, .6); }
.auth-card .seg button[aria-checked="true"] { background: #FFD000; color: #17140A; box-shadow: none; }

.pos-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pos-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 22px 12px 18px;
    border-radius: 22px;
    border: 1.5px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .05);
    color: #F4F1E6;
    transition: border-color .15s, background .15s, transform .12s;
}
.pos-card .i { width: 34px; height: 34px; color: rgba(244, 241, 230, .6); margin-bottom: 4px; }
.pos-card b { font-size: 1rem; }
.pos-card small { font-size: .8125rem; color: rgba(244, 241, 230, .5); }
.pos-card:active { transform: scale(.97); }
.pos-card[aria-checked="true"] { border-color: #FFD000; background: rgba(255, 208, 0, .1); }
.pos-card[aria-checked="true"] .i { color: #FFD000; }

.photo-pick { display: flex; flex-direction: column; align-items: center; gap: 12px; cursor: pointer; }
.photo-ring {
    position: relative;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 2px dashed rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .05);
    color: rgba(244, 241, 230, .55);
}
.photo-ring img { width: 100%; height: 100%; object-fit: cover; }
.photo-ring > .i { width: 38px; height: 38px; }
.photo-pick:hover .photo-ring { border-color: #FFD000; color: #FFD000; }

/* Meu perfil */
.me-card { display: grid; gap: 20px; }
.me-card .photo-ring.lg { border: 3px solid var(--primary); background: var(--board); color: var(--board-accent); overflow: visible; }
.me-card .photo-ring.lg img { border-radius: 50%; }
.me-card .photo-ring.lg > b { font-family: var(--font-display); font-weight: 800; font-size: 3rem; }
.photo-badge {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 0 0 3px var(--surface);
}
.photo-badge .i { width: 18px; height: 18px; }
.me-form { display: grid; gap: 16px; }
.me-form .field + .field { margin-top: 0; }
@media (min-width: 760px) {
    .me-card { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 28px; }
}

/* Lista com conta */
.join-form.is-account { gap: 12px; }
.join-me { display: flex; align-items: center; gap: 12px; }
.join-me small { display: block; font-size: .8125rem; color: var(--text-2); }
.join-me b { display: block; font-size: 1.15rem; }
.join-login { font-size: .875rem; color: var(--text-2); }
.join-login a { color: var(--text); font-weight: 800; }
.ls-row .avatar.xs { margin-left: -2px; }

/* ============================================================
   REGISTRO (AUDITORIA)
   ============================================================ */
.log-filters { margin-bottom: 16px; }
.log-list { list-style: none; display: grid; gap: 4px; }
.log-day {
    margin: 18px 0 6px;
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.05rem;
    letter-spacing: .02em;
    color: var(--text-2);
}
.log-day:first-child { margin-top: 0; }
.log-row {
    display: grid;
    grid-template-columns: 46px 34px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
}
.log-row.is-player { background: var(--surface-2); }
.log-time { padding-top: 6px; font-family: var(--font-display); font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.log-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-soft-text); }
.log-row.is-player .log-ic { background: var(--gk-bg); color: var(--gk-fg); }
.log-ic .i { width: 17px; height: 17px; }
.log-main { min-width: 0; padding-top: 2px; }
.log-main b { font-weight: 800; }
.log-txt { display: block; color: var(--text-2); font-size: .9375rem; overflow-wrap: anywhere; }
.acc-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px;
    border-radius: 14px;
    background: var(--gk-bg);
}
.acc-note > div { flex: 1; min-width: 0; }
.acc-note b { display: block; }
.acc-note small { display: block; color: var(--text-2); font-size: .8125rem; }
/* ============================================================
   CONTAGEM REGRESSIVA DA LISTA + POSIÇÕES DO FUTSAL
   ============================================================ */
.countdown {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 22px 16px;
    border-radius: 22px;
    text-align: center;
    color: var(--board-text);
    background-color: var(--board);
    background-image: radial-gradient(90% 120% at 50% 0%, var(--board-2), transparent 70%);
    box-shadow: inset 0 0 0 1px var(--board-line);
}
.cd-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--board-dim); }
.cd-label .i { width: 18px; height: 18px; color: var(--board-accent); }
.cd-boxes { display: flex; align-items: flex-start; justify-content: center; gap: 6px; }
.cd-boxes > i { padding-top: 8px; font-style: normal; font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--board-dim); }
.cd-box { display: grid; justify-items: center; gap: 4px; min-width: 64px; }
.cd-box b {
    display: block;
    min-width: 64px;
    padding: 6px 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .07);
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.4rem, 12vw, 3.6rem);
    line-height: 1;
    color: var(--board-accent);
    font-variant-numeric: tabular-nums;
}
.cd-box b.flip { animation: cdFlip .45s var(--ease); }
.cd-box small { font-size: .6875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--board-dim); }
.cd-hint { max-width: 34ch; font-size: .875rem; color: var(--board-dim); }
.countdown.is-close .cd-box b { color: #FF6B70; animation: pulse 1s infinite; }
.countdown.is-close .cd-hint { color: var(--board-text); font-weight: 700; }
@keyframes cdFlip { 0% { transform: translateY(-30%) scale(.9); opacity: .2; } 100% { transform: none; opacity: 1; } }
.cd-inline { font-variant-numeric: tabular-nums; }
.lh-status.soon { background: rgba(255, 255, 255, .12); color: var(--board-accent); }
.lh-status.soon::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
.soon-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 99px;
    background: var(--board);
    color: var(--board-accent);
    font-size: .6875rem;
    font-weight: 800;
    letter-spacing: .04em;
    vertical-align: 2px;
    text-transform: none;
}
.soon-pill .i { width: 12px; height: 12px; }
.opens-field { margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--primary-soft); }
.opens-field .label { display: flex; align-items: center; gap: 6px; color: var(--text); }
.opens-field .label .i { width: 16px; height: 16px; }
.opens-field small { display: block; margin-top: 8px; }
input[type="datetime-local"] {
    width: 100%;
    font-size: 16px;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: var(--surface);
    color: var(--text);
}
input[type="datetime-local"]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring-soft); }
.pos-cards .pos-card { padding: 18px 10px 16px; }
.seg.pos-seg4 { grid-auto-columns: 1fr; }
.seg.pos-seg4 button { padding: 0 6px; }
@media (max-width: 380px) { .cd-box, .cd-box b { min-width: 54px; } .cd-boxes { gap: 3px; } }
/* ============================================================
   CADASTROS (aprovação de contas)
   ============================================================ */
.sb-badge.alert { background: var(--danger); color: #fff; }
.cad-cta { background: var(--danger); color: #fff; box-shadow: 0 12px 28px -16px var(--danger); }
.cad-list { display: grid; gap: 10px; }
.cad-sec { margin: 26px 0 10px; }
.cad-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px 16px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-1);
}
.cad-card.is-pendente { border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring-soft); }
.cad-card.is-recusado { opacity: .75; }
.cad-main { display: grid; gap: 3px; min-width: 0; }
.cad-name { font-size: 1.15rem; }
.cad-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .875rem; color: var(--text-2); overflow-wrap: anywhere; }
.cad-meta .i { width: 15px; height: 15px; }
.cad-link, .cad-new {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 4px;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: .8125rem;
    font-weight: 600;
    background: var(--gk-bg);
    color: var(--gk-fg);
}
.cad-new { background: var(--primary-soft); color: var(--primary-soft-text); align-self: start; justify-self: start; }
.cad-link .i { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.cad-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.cad-actions .btn { flex: 1 1 140px; }
.cad-empty { display: flex; align-items: center; gap: 14px; }
.cad-empty > .i { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-soft-text); flex: none; }
@media (min-width: 760px) {
    .cad-card { grid-template-columns: auto minmax(0, 1fr) auto; }
    .cad-actions { grid-column: auto; flex-direction: column; }
}

/* Site: esperando aprovação */
.wait-card { display: grid; justify-items: center; gap: 8px; margin: 6px 0 4px; }
.wait-card .photo-ring { width: 104px; height: 104px; border-style: solid; border-color: rgba(255, 208, 0, .5); }
.wait-ini { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: #FFD000; }
.wait-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 99px;
    background: rgba(255, 208, 0, .14);
    color: #FFD000;
    font-size: .8125rem;
    font-weight: 800;
}
.wait-badge .i { width: 15px; height: 15px; animation: pulse 1.6s infinite; }
.wait-name { font-size: 1.25rem; color: #F4F1E6; }
.wait-card small { color: rgba(244, 241, 230, .55); }
.auth-sub.small-note { margin-top: -10px; font-size: .875rem; }
.auth-btn.as-link { display: grid; place-items: center; text-decoration: none; }
/* ============================================================
   RANKING (leaderboard)
   ============================================================ */
.lb-tabs { margin-bottom: 16px; }
.lb {
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-1);
    overflow: hidden;
}
.lb-head, .lb-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 34px 44px 34px;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
}
.lb-row .avatar { width: 34px; height: 34px; }
.lb-head .lb-x, .lb-row .lb-x { display: none; }
.lb-head {
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-3);
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
}
.lb-head span:nth-child(n+3) { text-align: center; }
.lb-row {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    transition: background .15s;
    animation: lbIn .4s var(--ease) both;
}
.lb-row:last-child { border-bottom: 0; }
.lb-row:hover { background: var(--surface-2); }
@keyframes lbIn { from { opacity: 0; transform: translateY(6px); } }
.lb-row:nth-child(2) { animation-delay: .02s; } .lb-row:nth-child(3) { animation-delay: .05s; }
.lb-row:nth-child(4) { animation-delay: .08s; } .lb-row:nth-child(5) { animation-delay: .11s; }
.lb-rank {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    background: var(--surface-3);
    color: var(--text-2);
}
.lb-row.p1 .lb-rank { background: #F5C518; color: #3A2C00; }
.lb-row.p2 .lb-rank { background: #CBD3D8; color: #23292D; }
.lb-row.p3 .lb-rank { background: #DB9563; color: #2E1606; }
.lb-row.p1 { background: linear-gradient(90deg, rgba(245, 197, 24, .16), transparent 70%); }
.lb-row.p2 { background: linear-gradient(90deg, rgba(203, 211, 216, .18), transparent 70%); }
.lb-row.p3 { background: linear-gradient(90deg, rgba(219, 149, 99, .16), transparent 70%); }
.lb-player { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lb-player .avatar { flex: none; }
.lb-name { display: grid; min-width: 0; }
.lb-name b, .lb-name small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lb-name small { font-size: .8125rem; color: var(--text-3); }
.lb-num { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-2); }
.lb-streak {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-weight: 800;
    font-size: .875rem;
    color: #E0A800;
    font-variant-numeric: tabular-nums;
}
.lb-streak .i { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.lb-streak.zero { color: var(--text-3); opacity: .55; }
.lb-score { display: grid; justify-items: end; line-height: 1.05; }
.lb-score b { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.lb-score small { font-size: .6875rem; color: var(--text-3); font-weight: 700; }
.lb-delta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1px;
    font-size: .8125rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.lb-delta .i { width: 16px; height: 16px; }
.lb-delta.up { color: #1F9D55; }
.lb-delta.up .i { transform: rotate(180deg); }
.lb-delta.down { color: var(--danger); }
.lb-delta.same { color: var(--text-3); }
.lb-delta.new { font-size: .6875rem; text-transform: uppercase; color: var(--primary-soft-text); }
.lb-note { margin-top: 12px; }
@media (min-width: 640px) {
    .lb-head, .lb-row { grid-template-columns: 40px minmax(0, 1fr) 44px 44px 44px 56px 72px 52px; padding: 12px 18px; gap: 12px; }
    .lb-head .lb-x, .lb-row .lb-x { display: block; }
}
/* ============================================================
   LOGO (imagem oficial da pelada)
   ============================================================ */
img.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: none;
    box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .6);
    object-fit: cover;
}
img.brand-mark.login-mark { width: 104px; height: 104px; margin: 0 auto 12px; box-shadow: 0 0 0 4px rgba(255, 208, 0, .14), 0 18px 36px -14px rgba(255, 200, 0, .55); }
img.auth-logo {
    display: block;
    width: 104px;
    height: 104px;
    background: none;
    object-fit: cover;
}
.sf-logo { padding: 8px; border-radius: 50%; }
.sf-logo-in { border-radius: 50%; background: none; box-shadow: none; overflow: hidden; }
.sf-logo-in img { width: 100%; height: 100%; display: block; }

/* Ranking simples: coluna escolhida em destaque */
.lb-head, .lb-row { grid-template-columns: 30px minmax(0, 1fr) repeat(4, 40px); }
.lb-head span:nth-child(n+3) { text-align: center; }
.lb-head .on { color: var(--text); }
.lb-num.on { color: var(--text); font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
@media (min-width: 640px) {
    .lb-head, .lb-row { grid-template-columns: 40px minmax(0, 1fr) repeat(4, 72px); }
}
.hdr-btn, .hdr-link { white-space: nowrap; }

/* Lista: quem ainda não pode colocar o nome */
.join-gate {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 18px;
    background: var(--surface-2);
    border: 1px dashed var(--line-strong);
}
.join-gate-ic { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-soft-text); }
.join-gate-ic .i { width: 22px; height: 22px; }
.join-gate b { display: block; font-size: 1.0625rem; }
.join-gate p { margin: 3px 0 0; color: var(--text-2); font-size: .9375rem; }
.join-gate-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Tela "esperando aprovação" */
.auth-card.wait-card { display: grid; gap: 18px; text-align: left; justify-items: stretch; margin: 0; }
.wait-top { display: flex; align-items: center; gap: 14px; }
.wait-av {
    flex: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(255, 208, 0, .12);
    border: 2px solid rgba(255, 208, 0, .55);
    color: #FFD000;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.7rem;
}
.wait-av img { width: 100%; height: 100%; object-fit: cover; }
.wait-who { display: grid; min-width: 0; }
.wait-who b { font-size: 1.35rem; color: #F4F1E6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wait-who small { color: rgba(244, 241, 230, .55); font-size: .9375rem; }
.wait-card .wait-badge { justify-self: start; }
.wait-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.wait-steps li { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 0; color: rgba(244, 241, 230, .45); font-weight: 600; }
.wait-steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 40px; bottom: -8px; width: 2px; background: rgba(244, 241, 230, .12); }
.wait-steps i { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); }
.wait-steps .i { width: 16px; height: 16px; }
.wait-steps li.done { color: #F4F1E6; }
.wait-steps li.done i { background: #1F9D55; color: #fff; }
.wait-steps li.now { color: #FFD000; }
.wait-steps li.now i { background: rgba(255, 208, 0, .16); color: #FFD000; box-shadow: 0 0 0 4px rgba(255, 208, 0, .08); }
.wait-steps li.now .i { animation: pulse 1.6s infinite; }
.wait-note { margin: 0; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); color: rgba(244, 241, 230, .7); font-size: .9375rem; }
.wait-card .auth-foot { margin: 0; text-align: center; }
/* Login de admin (só a chave) */
.auth-foot.auth-admin { margin-top: 10px; }
.auth-admin .auth-link.small { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.auth-admin .i { width: 16px; height: 16px; }
.key-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
/* Cadastros: cartão de pedido (estilo card 21st) */
.cad-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.cad-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 12px 28px -20px rgba(0, 0, 0, .45);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.cad-card:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 18px 36px -22px rgba(0, 0, 0, .55); }
.cad-card.is-pendente { border-color: color-mix(in srgb, var(--primary) 55%, var(--line)); box-shadow: 0 0 0 3px var(--ring-soft), 0 12px 28px -20px rgba(0, 0, 0, .45); }
.cad-card.is-recusado { opacity: .8; }
.cad-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cad-av { position: relative; flex: none; }
.cad-dot { position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid var(--surface); background: var(--text-3); }
.is-pendente .cad-dot { background: var(--primary); animation: pulse 1.6s infinite; }
.is-aprovado .cad-dot { background: #1F9D55; }
.is-recusado .cad-dot { background: var(--danger); }
.cad-main { display: grid; gap: 4px; min-width: 0; flex: 1; }
.cad-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.cad-name { font-size: 1.0625rem; font-weight: 800; }
.cad-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 22px;
    padding: 0 8px;
    border-radius: 99px;
    font-size: .75rem;
    font-weight: 700;
    background: var(--surface-3);
    color: var(--text-2);
}
.cad-chip .i { width: 13px; height: 13px; }
.cad-email { font-size: .8125rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cad-status {
    flex: none;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: .6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: var(--surface-3);
    color: var(--text-2);
}
.is-pendente .cad-status { background: var(--primary-soft); color: var(--primary-soft-text); }
.is-aprovado .cad-status { background: rgba(31, 157, 85, .14); color: #1F9D55; }
.is-recusado .cad-status { background: var(--danger-soft); color: var(--danger); }
.cad-card .cad-link {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1.4;
    background: var(--gk-bg);
    color: var(--gk-fg);
}
.cad-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.cad-when { display: inline-flex; align-items: center; gap: 5px; font-size: .8125rem; color: var(--text-3); }
.cad-when .i { width: 14px; height: 14px; }
.cad-card .cad-actions { display: flex; gap: 8px; grid-column: auto; flex-direction: row; margin-left: auto; }
.cad-card .cad-actions .btn { flex: none; height: 38px; min-height: 38px; padding: 0 14px; border-radius: 12px; font-size: .875rem; }
.cad-card .cad-no { color: var(--danger); }
.cad-card .cad-no:hover { background: var(--danger-soft); }
@media (max-width: 420px) {
    .cad-card .cad-actions { width: 100%; }
    .cad-card .cad-actions .btn { flex: 1; }
}
.cad-list .cad-card { align-items: stretch; }

/* ============================================================
   ONLINE (bolinha amarela = no site agora, cinza = fora)
   ============================================================ */
.av-on { position: relative; display: inline-flex; flex: none; }
.on-dot {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #8A8572;
    border: 2.5px solid var(--surface);
    box-sizing: content-box;
}
.on-dot.on { background: #FFD000; box-shadow: 0 0 0 0 rgba(255, 208, 0, .6); animation: onPing 2s infinite; }
@keyframes onPing { 0% { box-shadow: 0 0 0 0 rgba(255, 208, 0, .55); } 70% { box-shadow: 0 0 0 7px rgba(255, 208, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 208, 0, 0); } }
.avatar.lg + .on-dot { width: 14px; height: 14px; }
.avatar.xl + .on-dot { width: 18px; height: 18px; right: 4px; bottom: 4px; border-width: 3px; }
.cad-av .on-dot { right: 1px; bottom: 1px; }
.online-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 12px;
    border-radius: 99px;
    font-size: .8125rem;
    font-weight: 700;
    background: var(--surface-3);
    color: var(--text-3);
}
.online-chip .on-dot { position: static; width: 9px; height: 9px; border: 0; }
.online-chip.on { background: rgba(255, 208, 0, .14); color: var(--primary-soft-text); }
.on-txt { color: var(--text-3); }
.on-txt.on { color: var(--primary-soft-text); font-weight: 700; }

/* ============================================================
   INSTALAR O APP
   ============================================================ */
.install-bar {
    position: fixed;
    z-index: 44;
    left: 12px;
    right: 12px;
    bottom: calc(var(--nav-h) + var(--safe-b) + 10px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 10px 12px;
    border-radius: 18px;
    background: #1B1810;
    color: #F4F1E6;
    border: 1px solid rgba(255, 208, 0, .28);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7);
    animation: ibIn .45s var(--ease) both;
}
@keyframes ibIn { from { opacity: 0; transform: translateY(16px); } }
.install-bar img { border-radius: 50%; flex: none; }
.ib-txt { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.ib-txt b { font-size: .9375rem; }
.ib-txt small { font-size: .8125rem; color: rgba(244, 241, 230, .6); }
.install-bar .ib-go { height: 38px; min-height: 38px; padding: 0 16px; border-radius: 12px; font-size: .875rem; }
.ib-x { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: rgba(244, 241, 230, .55); cursor: pointer; }
.ib-x .i { width: 18px; height: 18px; }
@media (min-width: 900px) { .install-bar { display: none; } }

.inst-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; justify-content: center; }
.inst-backdrop { position: absolute; inset: 0; background: rgba(8, 7, 4, .6); opacity: 0; transition: opacity .25s; }
.inst-sheet {
    position: relative;
    width: 100%;
    max-width: 460px;
    padding: 22px 20px calc(22px + var(--safe-b));
    border-radius: 26px 26px 0 0;
    background: #17150F;
    color: #F4F1E6;
    box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .8);
    transform: translateY(100%);
    transition: transform .35s var(--ease);
}
.inst-modal.open .inst-backdrop { opacity: 1; }
.inst-modal.open .inst-sheet { transform: none; }
@media (min-width: 640px) { .inst-modal { align-items: center; } .inst-sheet { border-radius: 26px; } }
.inst-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .07); color: inherit; cursor: pointer; }
.inst-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding-right: 40px; }
.inst-head img { border-radius: 16px; flex: none; box-shadow: 0 8px 20px -10px rgba(255, 200, 0, .6); }
.inst-head b { display: block; font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.4rem; line-height: 1.05; }
.inst-head small { color: rgba(244, 241, 230, .6); font-size: .875rem; }
.inst-lead { margin: 0 0 14px; color: rgba(244, 241, 230, .8); }
.inst-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: st; }
.inst-steps li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); counter-increment: st; }
.inst-steps li > i { position: relative; flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 208, 0, .14); color: #FFD000; }
.inst-steps li > i::after { content: counter(st); position: absolute; top: -6px; left: -6px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #FFD000; color: #1A1500; font-size: .6875rem; font-weight: 800; font-style: normal; }
.inst-steps li > i .i { width: 21px; height: 21px; }
.inst-steps span { line-height: 1.35; }
.inst-steps small { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: .8125rem; color: rgba(244, 241, 230, .55); }
.inst-steps small .i { width: 16px; height: 16px; }
.is-app .install-card { display: none; }

/* App aberto pela tela de início do iPhone: respeita a área do relógio/bateria */
@media (display-mode: standalone) {
    body { padding-top: env(safe-area-inset-top, 0px); }
    body::before { content: ""; position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px); background: var(--bg); }
    .hdr { top: env(safe-area-inset-top, 0px); }
    .mmenu { top: calc(var(--top-h) + env(safe-area-inset-top, 0px)); }
}
.install-card .menu-item { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }

/* Remover foto */
.photo-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.photo-rm { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; font: inherit; font-size: .875rem; font-weight: 700; }
.photo-rm .i { width: 16px; height: 16px; }
.auth-link.photo-rm { justify-self: center; margin: 4px auto 0; color: #FF6B6B; text-decoration: none; }
/* Visão geral: cartões alinhados, botões sempre embaixo com respiro */
.dash-grid > .card { margin: 0; display: flex; flex-direction: column; }
.dash-grid > .card > .label { margin-bottom: 2px; }
.dash-grid > .card .dash-actions { margin-top: auto; padding-top: 4px; }
.dash-pelada.is-empty .dash-big { margin: 6px 0 4px; }
.dash-pelada.is-empty .dash-text { margin: 0 0 22px; max-width: 42ch; }
.dash-pelada.is-empty .dash-actions .btn { flex: 0 0 auto; }
.dash-stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .dash-stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 559px) { .dash-pelada.is-empty .dash-actions .btn { flex: 1 1 auto; } }
/* Título da página com subtítulo: um respiro entre os dois */
.page-head > div > .page-title + .muted { margin-top: 6px; }
/* Meu perfil: respiro entre o cartão e os números */
.me-card + .tiles { margin-top: 14px; }
/* Regras (página Mais): ícones no amarelo do tema, igual aos outros itens */
.acc summary .acc-ic { background: var(--primary-soft); color: var(--primary-soft-text); }
.acc[open] summary .acc-ic { background: var(--primary); color: #1A1500; }
.acc[open] summary .chev-d { color: var(--primary-soft-text); }
.install-card .menu-item { font-weight: 700; }

/* ============================================================
   CARA OU COROA (desempate)
   ============================================================ */
.coin-box { display: grid; gap: 14px; margin: 6px 0 4px; }
.coin-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.coin-side {
    display: grid;
    gap: 2px;
    justify-items: center;
    padding: 10px 8px;
    border-radius: 14px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    text-align: center;
    min-width: 0;
}
.coin-side small { font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-soft-text); }
.coin-side b { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-side .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--team, var(--primary)); flex: none; }
.coin-stage { height: 200px; display: grid; place-items: center; perspective: 900px; }
.coin { position: relative; width: 132px; height: 132px; transform-style: preserve-3d; }
.coin.flipping { animation: coinToss 2.2s cubic-bezier(.25, .7, .3, 1) forwards; }
@keyframes coinToss {
    0% { transform: translateY(0) rotateY(0deg) scale(1); }
    40% { transform: translateY(-58px) rotateY(calc(var(--end) * .55)) scale(1.12); }
    75% { transform: translateY(0) rotateY(calc(var(--end) * .92)) scale(1); }
    86% { transform: translateY(-10px) rotateY(calc(var(--end) * .97)); }
    100% { transform: translateY(0) rotateY(var(--end)); }
}
.coin-face {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: radial-gradient(circle at 34% 28%, #FFF4B0 0%, #FFD21F 42%, #E0A200 78%, #B57D00 100%);
    box-shadow: inset 0 0 0 5px #C98F00, inset 0 0 0 8px #FFE36B, inset 0 -8px 16px rgba(120, 80, 0, .35), 0 14px 34px -12px rgba(255, 200, 0, .7);
}
.coin-face.front img { width: 82%; height: 82%; border-radius: 50%; object-fit: cover; }
.coin-face.back { transform: rotateY(180deg); color: #5A3D00; align-content: center; gap: 2px; }
.coin-face.back .crown { width: 56px; height: 56px; fill: #5A3D00; stroke: #5A3D00; stroke-width: 1.2; stroke-linejoin: round; }
.coin-face.back span { font-family: var(--font-display); font-weight: 800; font-style: italic; letter-spacing: .08em; font-size: 1.05rem; }
.coin-msg { min-height: 1.5em; text-align: center; font-size: 1.05rem; color: var(--text-2); }
.coin-msg b { color: var(--text); }
.coin-next[hidden] { display: none; }

/* Site dos jogadores: moeda aparece por cima de tudo, ao vivo */
.coin-overlay {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(8, 7, 4, .72);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: fade .25s ease;
}
.coin-card {
    width: 100%;
    max-width: 380px;
    display: grid;
    gap: 12px;
    justify-items: stretch;
    padding: 22px 20px 18px;
    border-radius: 26px;
    background: #17150F;
    color: #F4F1E6;
    border: 1px solid rgba(255, 208, 0, .3);
    box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .9);
    text-align: center;
    --surface-2: rgba(255, 255, 255, .05);
    --line: rgba(255, 255, 255, .08);
    --text: #F4F1E6;
    --text-2: rgba(244, 241, 230, .7);
    --primary-soft-text: #FFD000;
}
.coin-card .hero-kicker { justify-self: center; }
.coin-card h2 { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 2rem; line-height: 1; }
.acc-body .acc-sub { margin: 6px 0 2px; padding-left: 18px; list-style: circle; }
.acc-body .acc-sub li + li { margin-top: 2px; }
