/* thegodfigther — MMA palpites, mobile-first */

:root {
    --bg-deep: #0a0b0f;
    --bg-card: #12141c;
    --bg-elevated: #1a1d28;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f2f3f7;
    --muted: #8b90a0;
    --accent: #c41e3a;
    --accent-dim: #8f1529;
    --gold: #d4af37;
    --gold-dim: #9a7b24;
    --ok: #2ecc71;
    --danger: #e74c3c;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    --font: "Inter", system-ui, sans-serif;
    --display: "Bebas Neue", Impact, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: calc(var(--vh, 1vh) * 100);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg-deep);
}

.no-scroll {
    overflow: hidden;
}

.app-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(196, 30, 58, 0.35), transparent 55%),
        radial-gradient(ellipse 80% 50% at 100% 50%, rgba(212, 175, 55, 0.08), transparent 50%),
        var(--bg-deep);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 11, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    font-family: var(--display);
    font-size: 1.75rem;
    letter-spacing: 0.04em;
    color: var(--text);
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
}

.site-nav a:hover {
    color: var(--text);
}

.site-nav__user {
    color: var(--muted);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-content {
    padding-bottom: 2.5rem;
}

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container.narrow {
    max-width: 520px;
}

.flash-bar {
    padding-top: 0.75rem;
}

.msg {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin: 0 0 0.75rem;
    list-style: none;
}

.msg-error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.35);
    color: #ffb4a8;
}

.msg-ok {
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #b8f5d0;
}

.msg-info {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 0.8125rem;
}

.lead {
    font-size: 1rem;
}

.page-title {
    font-family: var(--display);
    font-size: 2rem;
    letter-spacing: 0.03em;
    margin: 1rem 0 0.5rem;
    font-weight: 400;
}

/* Auth */
.auth-wrap {
    min-height: calc((var(--vh, 1vh) * 100) - 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow);
}

.auth-title {
    font-family: var(--display);
    font-size: 2.25rem;
    margin: 0 0 0.25rem;
    letter-spacing: 0.04em;
}

.auth-lead {
    margin: 0 0 1.25rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.25rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

.auth-switch a {
    color: var(--gold);
    font-weight: 600;
}

/* Forms */
.form-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.field span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="datetime-local"],
input[type="file"],
select {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    font: inherit;
}

input:focus,
select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    border: none;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* scale no :active quebra layout no primeiro toque em Safari/Chrome mobile */
@media (hover: hover) and (pointer: fine) {
    .btn:active {
        transform: scale(0.98);
    }
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn[aria-busy="true"]:not(:disabled) {
    opacity: 0.75;
    pointer-events: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    color: #fff;
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.35);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: #0a0b0f;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.4rem 0.65rem;
    font-size: 0.8125rem;
}

/* Event hero */
.event-hero {
    padding: 1.25rem 1rem 0.5rem;
}

.event-hero__badge {
    display: inline-block;
    margin: 0 0 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.event-hero__title {
    font-family: var(--display);
    font-size: clamp(2rem, 8vw, 2.75rem);
    line-height: 1;
    margin: 0 0 0.5rem;
    letter-spacing: 0.03em;
}

.event-hero__meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.9375rem;
}

.event-hero__lock {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
}

/* Barra de estatísticas do jogador (evento) */
.stats-page__head {
    padding: 0.5rem 0 0.25rem;
}

.stats-page__back {
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gold);
    text-decoration: none;
    margin-bottom: 0.15rem;
}

.stats-page__back:hover {
    text-decoration: underline;
}

.stats-page__event {
    margin: 0;
    font-size: 0.85rem;
}

.stats-page .player-stats {
    position: static;
    margin: 0.5rem 0 1.5rem;
    border-bottom: none;
    background: transparent;
    backdrop-filter: none;
}

.stats-page .player-stats__inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: var(--shadow);
}

/* Resumo de palpites (página estatísticas) */
.stats-bets {
    margin-bottom: 2rem;
}

.stats-bets__title {
    font-family: var(--display);
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    margin: 0 0 0.35rem;
    font-weight: 400;
    color: var(--muted);
}

.stats-bets__intro {
    margin: 0 0 0.65rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.stats-bets__intro-strong {
    color: var(--text);
}

.stats-bets__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1.15rem;
}

.stats-bets__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
}

.stats-bets__chip-ic {
    font-size: 0.8rem;
    line-height: 1;
    font-weight: 900;
}

.stats-bets__chip-txt {
    text-transform: uppercase;
}

.stats-bets__chip--hit {
    background: #0d1f14;
    color: #9fefb8;
    border-color: #2ecc71;
}

.stats-bets__chip--hit .stats-bets__chip-ic {
    color: #2ecc71;
}

.stats-bets__chip--miss {
    background: #1f1010;
    color: #ffb3b0;
    border-color: #c0392b;
}

.stats-bets__chip--miss .stats-bets__chip-ic {
    color: #e74c3c;
}

.stats-bets__chip--await {
    background: #1a170c;
    color: #f0d78c;
    border-color: #c9a227;
}

.stats-bets__chip--await .stats-bets__chip-ic {
    color: #d4af37;
}

.stats-bets__chip--none {
    background: #12141a;
    color: #a8adb8;
    border-color: #3d424d;
}

.stats-bets__chip--none .stats-bets__chip-ic {
    color: #8b90a0;
}

.stats-bets__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.stats-bets__item {
    background: #0b0e14;
    border: 1px solid #252830;
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
}

.stats-bets__item--hit {
    border-color: rgba(46, 204, 113, 0.35);
    box-shadow: inset 3px 0 0 rgba(46, 204, 113, 0.85);
}

.stats-bets__item--miss {
    border-color: rgba(192, 57, 43, 0.4);
    box-shadow: inset 3px 0 0 rgba(231, 76, 60, 0.85);
}

.stats-bets__item--await {
    border-color: rgba(201, 162, 39, 0.4);
    box-shadow: inset 3px 0 0 rgba(212, 175, 55, 0.75);
}

.stats-bets__item--none {
    border-color: #2a2e38;
    box-shadow: inset 3px 0 0 rgba(139, 144, 160, 0.45);
}

.stats-bets__row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
    margin-bottom: 0.35rem;
}

.stats-bets__num {
    font-family: var(--display);
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    color: var(--gold);
}

.stats-bets__match {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.3;
}

.stats-bets__pick {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
}

.stats-bets__pick-label {
    color: var(--muted);
    font-weight: 600;
    margin-right: 0.25rem;
}

.stats-bets__pick--empty {
    margin: 0;
    font-size: 0.875rem;
}

.stats-bets__pick--compact {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    line-height: 1.45;
}

.stats-bets__state-ic {
    margin-right: 0.25rem;
    font-weight: 800;
}

.stats-bets__item--hit .stats-bets__state-ic {
    color: #2ecc71;
}

.stats-bets__item--miss .stats-bets__state-ic {
    color: #e74c3c;
}

.stats-bets__item--await .stats-bets__state-ic {
    color: #d4af37;
}

.stats-bets__item--none .stats-bets__state-ic {
    color: #8b90a0;
}

.stats-bets__official {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.player-stats {
    position: sticky;
    top: 56px;
    z-index: 40;
    margin: 0 0 0.5rem;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 11, 15, 0.92);
    backdrop-filter: blur(12px);
}

.player-stats__inner {
    padding-top: 0.75rem;
    padding-bottom: 0.85rem;
}

.player-stats__title {
    font-family: var(--display);
    font-size: 1.35rem;
    letter-spacing: 0.05em;
    margin: 0 0 0.65rem;
    font-weight: 400;
    color: var(--muted);
}

.player-stats__score {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-bottom: 0.85rem;
}

.player-stats__big {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 5rem;
}

.player-stats__big-num {
    font-family: var(--display);
    font-size: 2.75rem;
    line-height: 1;
    color: var(--gold);
    letter-spacing: 0.04em;
}

.player-stats__big-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-top: 0.2rem;
}

.player-stats__ratio {
    flex: 1;
    min-width: 200px;
}

.player-stats__ratio-line {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.player-stats__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
    margin-bottom: 0.35rem;
}

@media (max-width: 480px) {
    .player-stats__grid {
        grid-template-columns: 1fr;
    }
}

.player-stats__col {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.7rem;
}

.player-stats__col--hit {
    border-color: rgba(46, 204, 113, 0.28);
}

.player-stats__col--miss {
    border-color: rgba(231, 76, 60, 0.28);
}

.player-stats__col-title {
    margin: 0 0 0.45rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
}

.player-stats__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.player-stats__empty {
    margin: 0;
    font-size: 0.9rem;
}

.player-stats__pill {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
}

.player-stats__pill--hit {
    background: rgba(46, 204, 113, 0.22);
    color: #b8f5d0;
    border: 1px solid rgba(46, 204, 113, 0.35);
}

.player-stats__pill--miss {
    background: rgba(231, 76, 60, 0.18);
    color: #ffc4bc;
    border: 1px solid rgba(231, 76, 60, 0.35);
}

.player-stats__foot {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.pill {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    vertical-align: middle;
}

.pill-ok {
    background: rgba(46, 204, 113, 0.2);
    color: var(--ok);
}

.pill-danger {
    background: rgba(231, 76, 60, 0.2);
    color: #ff8a7a;
}

.pill-gold {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
}

/* Fight grid */
.fights-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 1rem;
}

.fight-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1rem 1.25rem;
    box-shadow: var(--shadow);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Palpite vs resultado oficial (evento) */
.fight-card--hit {
    background: linear-gradient(165deg, rgba(46, 204, 113, 0.28) 0%, rgba(18, 20, 28, 0.98) 55%, var(--bg-card) 100%);
    border-color: rgba(46, 204, 113, 0.55);
    box-shadow:
        0 0 0 1px rgba(46, 204, 113, 0.2),
        0 12px 36px rgba(46, 204, 113, 0.18);
}

.fight-card--miss {
    background: linear-gradient(165deg, rgba(231, 76, 60, 0.26) 0%, rgba(18, 20, 28, 0.98) 55%, var(--bg-card) 100%);
    border-color: rgba(231, 76, 60, 0.5);
    box-shadow:
        0 0 0 1px rgba(231, 76, 60, 0.18),
        0 12px 36px rgba(231, 76, 60, 0.14);
}

.fight-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.fight-card__top > * {
    min-width: 0;
}

.fight-card__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.fight-card__num {
    font-family: var(--display);
    font-size: 1.25rem;
    letter-spacing: 0.06em;
    color: var(--muted);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fight-card__fighters {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.fight-card__vs {
    font-family: var(--display);
    font-size: 1.5rem;
    color: var(--accent);
    text-align: center;
}

.fighter {
    text-align: center;
}

.fighter__photo {
    width: 100%;
    max-width: 120px;
    aspect-ratio: 1;
    margin: 0 auto 0.5rem;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--bg-elevated), #0e0f14);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fighter__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fighter__initials {
    font-family: var(--display);
    font-size: 2.5rem;
    color: var(--muted);
}

.fighter__name {
    display: block;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.25;
    hyphens: auto;
}

.fighter--picked .fighter__photo {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.35);
}

.fighter--picked .fighter__name {
    color: var(--gold);
}

.fight-card__official {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.fight-card__official p {
    margin: 0.25rem 0;
}

.fight-card__locked-msg {
    color: var(--muted);
    font-size: 0.9375rem;
    margin: 0 0 0.5rem;
}

.fight-card__summary {
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    font-size: 0.9375rem;
}

.fight-card__summary--compact {
    border-top: 1px solid var(--border);
    padding-top: 0.6rem;
    margin-bottom: 0.55rem;
}

.fight-card__summary p {
    margin: 0.25rem 0;
}

.fight-card--compact {
    padding-bottom: 1rem;
}

.fight-card__inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.fight-card__faces {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: none;
}

.faces__vs {
    font-family: var(--display);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-transform: uppercase;
}

.face {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(145deg, var(--bg-elevated), #0e0f14);
    border: 2px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.face--picked {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

.face__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.face__initials {
    font-family: var(--display);
    font-size: 1.65rem;
    color: var(--muted);
}

.pick-crude {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.35;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.35rem;
    align-items: baseline;
    justify-content: flex-end;
    text-align: right;
    flex: 1;
}

.pick-crude__label {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}

.pick-crude__sep {
    color: var(--muted);
}

@media (max-width: 420px) {
    .fight-card__inline {
        flex-direction: column;
        align-items: flex-start;
    }

    .pick-crude {
        justify-content: flex-start;
        text-align: left;
        width: 100%;
    }
}

/* Modal (editar palpite) */
.modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
}

.modal.modal--open {
    display: block;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
}

.modal__panel {
    position: relative;
    width: calc(100% - 2rem);
    max-width: 520px;
    margin: calc(var(--vh, 1vh) * 10) auto 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem 1rem 1.25rem;
}

.modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.modal__title {
    font-family: var(--display);
    font-size: 1.6rem;
    letter-spacing: 0.04em;
}

.modal__close {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.modal__close:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.modal__body {
    font-size: 0.9375rem;
    color: var(--text);
}

.modal__body p {
    margin: 0 0 0.85rem;
}

.modal__body p:last-child {
    margin-bottom: 0;
}

.modal__body--scroll {
    max-height: min(55vh, 360px);
    overflow-y: auto;
    padding-right: 0.2rem;
}

/* Pick form */
.pick-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* Safari/iOS: reduz estilo “nativo” em inputs/botões dentro do form */
    color-scheme: dark;
}

/* Altura estável: evita “pulo” quando o botão muda de estado (WebKit mobile) */
.pick-form .btn-block {
    min-height: 3.25rem;
    box-sizing: border-box;
}

.pick-group {
    margin: 0;
    padding: 0;
    border: none;
}

.pick-group legend {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.seg {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.seg__opt {
    position: relative;
    flex: 1;
    min-width: calc(50% - 0.25rem);
}

.seg--rounds .seg__opt {
    min-width: calc(33.33% - 0.35rem);
    flex: 1;
}

.seg__opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.seg__opt span {
    display: block;
    text-align: center;
    padding: 0.65rem 0.5rem;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.seg__opt input:focus-visible + span {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.seg__opt input:checked + span {
    border-color: var(--accent);
    background: rgba(196, 30, 58, 0.2);
    color: #fff;
}

.seg--methods .seg__opt {
    min-width: 100%;
}

@media (min-width: 480px) {
    .seg--methods .seg__opt {
        min-width: calc(33.33% - 0.35rem);
        flex: 1;
    }
}

/*
 * Salvar palpite (iPhone): Safari pinta submit/button como controlo nativo.
 * Mesmo padrão dos métodos — <span> com o visual; submit invisível cobre a área (toque envia).
 */
.seg--methods .seg__opt--save {
    flex: 1 1 100%;
    flex-basis: 100%;
    min-width: 100%;
    width: 100%;
    max-width: 100%;
    cursor: pointer;
}

/* Seletor reforçado (.pick-form) para ganhar à cascata e evitar cache parcial */
.pick-form .seg--methods .seg__opt.seg__opt--save > span {
    position: relative;
    z-index: 1;
    pointer-events: none;
    background-color: var(--accent);
    background-image: none;
    border: 2px solid var(--accent);
    color: #fff;
}

.seg--methods .seg__opt--save input.pick-save-hit[type="submit"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    z-index: 2;
    opacity: 0;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    border: 0;
    background: transparent;
    color: transparent;
    font-size: 1px;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
}

.seg--methods .seg__opt--save input.pick-save-hit[type="submit"]:disabled + span,
.seg--methods .seg__opt--save input.pick-save-hit[type="submit"][aria-busy="true"] + span {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (hover: none) and (pointer: coarse) {
    .pick-form .seg--methods .seg__opt.seg__opt--save > span {
        font-size: 1rem;
        padding: 0.7rem 0.65rem;
        min-height: 3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--accent);
        background-image: none;
        border: 2px solid var(--accent);
        color: #fff;
    }
}

.seg__opt--compact span {
    font-family: var(--display);
    font-size: 1.35rem;
    padding: 0.55rem;
}

/* Admin */
.admin-home .admin-links,
.admin-fights {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.admin-links li {
    margin-bottom: 0.75rem;
}

.quick-panel,
.quick-fights {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.1rem 1.25rem;
    margin: 1.25rem 0;
    box-shadow: var(--shadow);
}

.quick-panel__title {
    font-family: var(--display);
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    margin: 0 0 0.5rem;
    font-weight: 400;
}

.quick-panel__title--spaced {
    margin-top: 2rem;
}

.quick-panel__event {
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.quick-panel__status {
    margin: 0 0 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.quick-panel__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.quick-panel__hint {
    margin: 0.75rem 0 0;
}

.quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1rem 0;
}

.quick-stats--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-stats__item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.85rem;
    text-align: center;
}

.quick-stats__num {
    display: block;
    font-family: var(--display);
    font-size: 2rem;
    line-height: 1;
    color: var(--gold);
    letter-spacing: 0.04em;
}

.quick-stats__label {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.35rem;
    line-height: 1.3;
}

@media (min-width: 780px) {
    .quick-stats--wide {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.quick-pick-fight,
.quick-result-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.75rem;
    max-width: 420px;
}

.quick-result-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0.5rem 0 0.25rem;
}

.quick-result-back {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
    white-space: nowrap;
}

.quick-result-back:hover {
    text-decoration: underline;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1rem 0 1.5rem;
}

.ranking-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
}

.ranking-card__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.ranking-card__pos {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--display);
    font-size: 1.1rem;
}

.ranking-card__name {
    margin: 0;
    font-size: 1rem;
}

.ranking-card__mail {
    margin: 0.05rem 0 0;
    font-size: 0.82rem;
}

.ranking-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.ranking-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    font-size: 0.78rem;
    color: var(--text);
}

.ranking-chip--hit {
    border-color: rgba(46, 204, 113, 0.5);
    color: #9ff0c0;
}

.ranking-chip--miss {
    border-color: rgba(231, 76, 60, 0.5);
    color: #ffb3a9;
}

.quick-fight-bets {
    margin: 1rem 0;
    padding: 0.75rem 0 0;
    border-top: 1px solid var(--border);
}

.quick-fight-bets__status {
    margin-bottom: 0.5rem;
}

.quick-fight-bets__hint {
    margin: 0.5rem 0 0;
}

.field--check {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.field--check input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.field--check-column {
    align-items: flex-start;
}

.field--check-column > span {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.45;
}

.field-link-btn {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--gold);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.field-link-btn:hover {
    color: #e6c76a;
}

.field-link-btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

.inline-row {
    margin: 0;
}

.quick-fight {
    border-top: 1px solid var(--border);
    padding: 1rem 0 0.25rem;
    margin-top: 0.75rem;
}

.quick-fight:first-of-type {
    border-top: none;
    margin-top: 0.5rem;
    padding-top: 0;
}

.quick-fight__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.quick-fight__num {
    font-family: var(--display);
    font-size: 1.1rem;
    color: var(--muted);
    letter-spacing: 0.06em;
}

.quick-fight__names {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    line-height: 1.35;
}

.quick-fight__vs {
    color: var(--muted);
    font-weight: 600;
    margin: 0 0.25rem;
}

.tag-a,
.tag-b {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 0.2rem;
}

.tag-a {
    background: rgba(196, 30, 58, 0.35);
    color: #ffb3c0;
}

.tag-b {
    background: rgba(65, 105, 225, 0.35);
    color: #b4c4ff;
}

.quick-fight__form {
    margin: 0;
}

.quick-fight__fields {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

@media (min-width: 560px) {
    .quick-fight__fields {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
    }

    .quick-fight__fields .field--inline {
        flex: 1;
        min-width: 140px;
    }
}

.field--inline span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.quick-fight__actions {
    margin-top: 0.75rem;
}

.quick-fight__clear {
    margin: 0.5rem 0 0;
}

.table-wrap {
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th,
.data-table td {
    padding: 0.65rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--bg-elevated);
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.actions {
    white-space: nowrap;
}

.inline-form {
    display: inline-flex;
    gap: 0.25rem;
    margin-left: 0.25rem;
    vertical-align: middle;
}

.page-install {
    min-height: calc(var(--vh, 1vh) * 100);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.install-card {
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.install-card .warn {
    color: #ffb4a8;
    font-size: 0.9rem;
}

.install-card code {
    background: var(--bg-elevated);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}
