/* ============================================================
   TotemFut - design system
   Tipografia esportiva (Bebas Neue) + paleta de campo
   ============================================================ */

:root {
    color-scheme: dark;

    --bg: #f7f9fb;
    --surface: #ffffff;
    --text: #17211b;
    --muted: #5d6b63;

    /* Paleta de campo */
    --pitch-grass-1: #0f5e2c;
    --pitch-grass-2: #0a4a23;
    --pitch-grass-3: #073718;
    --pitch-grass-4: #041d0c;
    --pitch-line: rgba(255, 255, 255, 0.22);
    --pitch-line-strong: rgba(255, 255, 255, 0.5);

    /* Acentos */
    --pitch-gold: #f5c84b;
    --pitch-gold-deep: #d9a924;
    --pitch-cream: #fff8e1;
    --pitch-ink: #0c2a17;
    --pitch-red: #e0353b;        /* cartão / contestação */
    --pitch-blue: #1a73e8;        /* destaques alternativos */

    /* Tipografia */
    --font-display: 'Bebas Neue', 'Anton', 'Impact', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-mono: 'Russo One', 'JetBrains Mono', Consolas, monospace;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img, svg {
    vertical-align: middle;
}

.totem-shell {
    min-height: 100vh;
    padding: clamp(24px, 4vw, 56px);
}

/* ============================================================
   TELA INICIAL (totem grande, paisagem)
   ============================================================ */

body.page-inicio {
    background:
        radial-gradient(ellipse at 50% -10%, rgba(245, 200, 75, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 50% 30%, var(--pitch-grass-1) 0%, var(--pitch-grass-2) 55%, var(--pitch-grass-4) 100%);
    color: var(--pitch-cream);
    overflow: hidden;
}

body.page-inicio .totem-shell {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: clamp(20px, 3vw, 48px);
}

/* Background do campo */
.pitch {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.pitch__field {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Holofotes de estádio */
.stadium-lights {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.stadium-lights::before,
.stadium-lights::after {
    content: "";
    position: absolute;
    top: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(245, 200, 75, 0.18) 0%, transparent 65%);
    filter: blur(20px);
    animation: stadium-flicker 7s ease-in-out infinite;
}

.stadium-lights::before { left: -15%; }
.stadium-lights::after  { right: -15%; animation-delay: 1.2s; }

@keyframes stadium-flicker {
    0%, 100% { opacity: 0.9; }
    47%      { opacity: 0.7; }
    50%      { opacity: 1; }
    53%      { opacity: 0.85; }
}

/* Bandeirinhas no topo */
.pennants {
    position: fixed;
    top: 0;
    left: -10%;
    right: -10%;
    height: 36px;
    z-index: 3;
    pointer-events: none;
    display: flex;
    align-items: flex-start;
    gap: 0;
    overflow: hidden;
}

.pennants::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.pennants__row {
    display: flex;
    width: 100%;
}

.pennants__row span {
    flex: 1 0 28px;
    height: 24px;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    transform-origin: top center;
    animation: pennant-sway 4.5s ease-in-out infinite;
}

.pennants__row span:nth-child(odd)  { background: var(--pitch-gold); animation-delay: 0s; }
.pennants__row span:nth-child(even) { background: #ffffff; animation-delay: 0.2s; }
.pennants__row span:nth-child(3n)   { background: var(--pitch-red); animation-delay: 0.4s; }

@keyframes pennant-sway {
    0%, 100% { transform: rotateZ(-3deg); }
    50%      { transform: rotateZ(3deg); }
}

/* Bolas decorativas */
.pitch__ball {
    position: absolute;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.4));
    opacity: 0.95;
}

.pitch__ball--tl {
    top: 6%; left: 5%;
    width: clamp(60px, 7vw, 110px);
    transform: rotate(-14deg);
}

.pitch__ball--br {
    bottom: 7%; right: 5%;
    width: clamp(70px, 9vw, 130px);
    transform: rotate(18deg);
}

.pitch__trophy {
    position: absolute;
    top: 6%; right: 6%;
    width: clamp(56px, 5vw, 90px);
    opacity: 0.95;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.4));
    animation: trophy-shine 3.5s ease-in-out infinite;
}

@keyframes trophy-shine {
    0%, 100% { filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.4)) brightness(1); }
    50%      { filter: drop-shadow(0 10px 26px rgba(245, 200, 75, 0.6)) brightness(1.15); }
}

/* Stage do QR */
.qr-stage {
    position: relative;
    z-index: 2;
    width: min(1180px, 100%);
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: clamp(20px, 3vw, 40px);
    padding: clamp(20px, 3vw, 36px);
    color: var(--pitch-cream);
}

.qr-stage__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.qr-stage__badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px 10px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    border: 1.5px solid rgba(245, 200, 75, 0.4);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.95rem;
    backdrop-filter: blur(6px);
}

.qr-stage__badge svg {
    width: 30px;
    height: 30px;
}

.qr-stage__eyebrow {
    margin: 0;
    color: var(--pitch-gold);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
}

.qr-stage__main {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
}

/* QR como ticket de estádio */
.qr-card {
    justify-self: center;
    width: min(520px, 90%);
    padding: clamp(20px, 2.5vw, 32px) clamp(20px, 2.5vw, 32px) clamp(28px, 3vw, 40px);
    background: #ffffff;
    color: var(--pitch-ink);
    text-align: center;
    position: relative;
    /* Ticket: cantos arredondados + entalhes laterais */
    border-radius: 24px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(245, 200, 75, 0.5),
        0 0 0 10px rgba(0, 0, 0, 0.25);
    -webkit-mask:
        radial-gradient(circle at 0 75%, transparent 14px, #000 14.5px) left/100% 100% no-repeat,
        radial-gradient(circle at 100% 75%, transparent 14px, #000 14.5px) right/100% 100% no-repeat;
    -webkit-mask-composite: source-in;
            mask:
        radial-gradient(circle at 0 75%, transparent 14px, #000 14.5px) left/100% 100% no-repeat,
        radial-gradient(circle at 100% 75%, transparent 14px, #000 14.5px) right/100% 100% no-repeat;
            mask-composite: intersect;
}

.qr-card::before,
.qr-card::after {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    border: 4px solid var(--pitch-gold);
    border-radius: 6px;
}

.qr-card::before {
    top: 14px; left: 14px;
    border-right: none; border-bottom: none;
}

.qr-card::after {
    bottom: 14px; right: 14px;
    border-left: none; border-top: none;
}

.qr-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin: 0 0 14px;
    background: var(--pitch-ink);
    color: var(--pitch-gold);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 4px;
    border-radius: 6px;
}

.qr-card__tag::before,
.qr-card__tag::after {
    content: "";
    width: 6px; height: 6px;
    background: var(--pitch-gold);
    border-radius: 50%;
}

.qr-card__frame {
    background: #ffffff;
    padding: clamp(8px, 1.2vw, 16px);
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(12, 42, 23, 0.15);
}

.qr-card__frame svg {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
}

.qr-card__caption {
    margin: 18px 0 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 2px;
    color: var(--pitch-ink);
}

.qr-stage__copy h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 7vw, 6rem);
    line-height: 0.92;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.qr-stage__copy h1 span {
    color: var(--pitch-gold);
    display: block;
}

.qr-stage__copy p {
    margin: 18px 0 28px;
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    line-height: 1.45;
    color: rgba(255, 248, 225, 0.88);
    max-width: 480px;
}

.qr-stage__steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.qr-stage__steps li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.35);
    border-left: 4px solid var(--pitch-gold);
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
}

.qr-stage__steps li span {
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--pitch-gold);
    color: var(--pitch-ink);
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.qr-stage__footer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-self: center;
    padding: 8px 16px;
    color: rgba(255, 248, 225, 0.65);
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.8rem;
    font-family: var(--font-body);
}

.qr-stage__pulse {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--pitch-gold);
    box-shadow: 0 0 0 0 rgba(245, 200, 75, 0.7);
    animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(245, 200, 75, 0.7); }
    70%  { box-shadow: 0 0 0 14px rgba(245, 200, 75, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 200, 75, 0); }
}

@media (max-width: 900px) {
    .qr-stage__main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .qr-stage__copy {
        display: grid;
        justify-items: center;
    }

    .qr-stage__copy p {
        margin-inline: auto;
    }

    .qr-stage__steps {
        width: 100%;
        max-width: 360px;
    }
}

/* ============================================================
   FLUXO (mobile-first - jogador no celular)
   ============================================================ */

body.page-fluxo {
    background:
        radial-gradient(circle at 50% -20%, rgba(245, 200, 75, 0.16) 0%, transparent 50%),
        radial-gradient(circle at 50% -10%, var(--pitch-grass-1) 0%, var(--pitch-grass-2) 45%, var(--pitch-grass-4) 100%);
    color: var(--pitch-cream);
    min-height: 100vh;
}

body.page-fluxo .totem-shell {
    padding: clamp(16px, 4vw, 32px);
    max-width: 540px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Linhas do campo como overlay sutil no fundo */
body.page-fluxo::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(180deg, transparent 49.5%, var(--pitch-line) 50%, transparent 50.5%),
        radial-gradient(circle at center, transparent 96px, var(--pitch-line) 96px, var(--pitch-line) 98px, transparent 99px);
    background-size: 100% 100%, 220px 220px;
    background-position: 0 0, center;
    background-repeat: no-repeat;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.fluxo {
    display: grid;
    gap: clamp(20px, 4vw, 32px);
    position: relative;
    z-index: 1;
}

.fluxo__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.fluxo__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    border: 1.5px solid rgba(245, 200, 75, 0.4);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.fluxo__brand svg {
    width: 26px; height: 26px;
}

/* Stepper estilo placar */
.stepper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 999px;
    border: 1px solid rgba(245, 200, 75, 0.25);
}

.stepper__item {
    display: grid;
    place-items: center;
}

.stepper__dot {
    display: grid;
    place-items: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.stepper__item--current .stepper__dot {
    background: var(--pitch-gold);
    color: var(--pitch-ink);
    border-color: var(--pitch-gold);
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(245, 200, 75, 0.18);
}

.stepper__item--done .stepper__dot {
    background: rgba(245, 200, 75, 0.2);
    color: var(--pitch-gold);
    border-color: rgba(245, 200, 75, 0.4);
}

.fluxo__panel {
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 100%);
    border: 1px solid rgba(245, 200, 75, 0.18);
    border-radius: 24px;
    padding: clamp(22px, 5vw, 36px);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* Faixa diagonal decorativa no canto do painel */
.fluxo__panel::before {
    content: "";
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    background: linear-gradient(135deg, var(--pitch-gold) 0%, var(--pitch-gold-deep) 100%);
    opacity: 0.12;
    transform: rotate(45deg);
    pointer-events: none;
}

.fluxo__panel--center {
    text-align: center;
}

.fluxo__eyebrow {
    margin: 0 0 10px;
    color: var(--pitch-gold);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
}

.fluxo__title {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 2.8rem);
    line-height: 1;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.fluxo__title span {
    color: var(--pitch-gold);
}

.fluxo__lead {
    margin: 0 0 24px;
    font-size: 1.02rem;
    line-height: 1.55;
    color: rgba(255, 248, 225, 0.82);
}

/* ----- Formulário ----- */

.form {
    display: grid;
    gap: 18px;
}

.field {
    display: grid;
    gap: 6px;
}

.field__label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pitch-cream);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.field__input {
    width: 100%;
    padding: 15px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.97);
    color: var(--pitch-ink);
    font-size: 1.05rem;
    font-family: inherit;
    font-weight: 500;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    -webkit-appearance: none;
    appearance: none;
}

.field__input:focus {
    outline: none;
    border-color: var(--pitch-gold);
    box-shadow: 0 0 0 4px rgba(245, 200, 75, 0.25);
    transform: translateY(-1px);
}

.field__input::placeholder {
    color: rgba(12, 42, 23, 0.4);
}

.field__hint {
    font-size: 0.82rem;
    color: rgba(255, 248, 225, 0.65);
    line-height: 1.4;
}

.field__error {
    font-size: 0.82rem;
    color: #ffc9b8;
    font-weight: 700;
}

.field--invalid .field__input {
    border-color: var(--pitch-red);
    box-shadow: 0 0 0 4px rgba(224, 53, 59, 0.2);
}

.form__alert {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(224, 53, 59, 0.15);
    border: 1px solid rgba(224, 53, 59, 0.5);
    color: #ffe5e5;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Botões */
.cta {
    appearance: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 22px;
    margin-top: 8px;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--pitch-gold) 0%, var(--pitch-gold-deep) 100%);
    color: var(--pitch-ink);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    box-shadow:
        0 14px 30px rgba(245, 200, 75, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.cta:hover,
.cta:focus-visible {
    outline: none;
    transform: translateY(-2px);
    box-shadow:
        0 18px 40px rgba(245, 200, 75, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cta:active {
    transform: translateY(0);
}

.cta:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.cta svg {
    width: 22px; height: 22px;
}

.cta--lg {
    font-size: 1.45rem;
    padding: 22px 24px;
    letter-spacing: 3px;
}

.cta--ghost {
    background: transparent;
    color: var(--pitch-cream);
    border: 1.5px solid rgba(245, 200, 75, 0.5);
    box-shadow: none;
    font-family: var(--font-display);
    letter-spacing: 2px;
}

.cta--ghost:hover,
.cta--ghost:focus-visible {
    background: rgba(245, 200, 75, 0.1);
    border-color: var(--pitch-gold);
    color: var(--pitch-gold);
    box-shadow: none;
}

/* ----- Pagamento (estilo ticket) ----- */

.payment {
    display: grid;
    gap: 22px;
}

.payment__price {
    display: grid;
    gap: 4px;
    padding: 18px 18px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(245, 200, 75, 0.18) 0%, rgba(245, 200, 75, 0.08) 100%);
    border: 1px dashed rgba(245, 200, 75, 0.6);
    text-align: center;
    position: relative;
}

.payment__price-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 248, 225, 0.85);
    font-family: var(--font-display);
}

.payment__price-value {
    font-family: var(--font-mono);
    font-size: 2.4rem;
    color: var(--pitch-gold);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.payment__qr {
    background: #ffffff;
    padding: 18px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
    position: relative;
    border: 2px solid rgba(245, 200, 75, 0.3);
}

.payment__qr::before,
.payment__qr::after {
    content: "";
    position: absolute;
    width: 22px; height: 22px;
    border: 3px solid var(--pitch-gold);
    border-radius: 4px;
}

.payment__qr::before {
    top: 10px; left: 10px;
    border-right: none; border-bottom: none;
}

.payment__qr::after {
    bottom: 10px; right: 10px;
    border-left: none; border-top: none;
}

.payment__qr svg {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
}

.payment__copy {
    display: grid;
    gap: 8px;
}

.payment__copy-label {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--pitch-cream);
    text-transform: uppercase;
    letter-spacing: 2.5px;
}

.payment__copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.payment__copy-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.97);
    color: var(--pitch-ink);
    font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
    font-size: 0.78rem;
    text-overflow: ellipsis;
}

.payment__copy-input:focus {
    outline: none;
    border-color: var(--pitch-gold);
    box-shadow: 0 0 0 3px rgba(245, 200, 75, 0.25);
}

.payment__copy-btn {
    appearance: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--pitch-gold) 0%, var(--pitch-gold-deep) 100%);
    color: var(--pitch-ink);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 1.5px;
    transition: transform 160ms ease;
}

.payment__copy-btn:hover,
.payment__copy-btn:focus-visible {
    outline: none;
    transform: translateY(-1px);
}

.payment__copy-btn svg {
    width: 18px; height: 18px;
}

.payment__copy-btn--ok {
    background: linear-gradient(180deg, #6cf28b 0%, #3dc35c 100%);
}

.payment__copy-hint {
    font-size: 0.8rem;
    color: rgba(255, 248, 225, 0.65);
}

.payment__steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    counter-reset: passos;
}

.payment__steps li {
    counter-increment: passos;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    color: rgba(255, 248, 225, 0.92);
    font-size: 0.95rem;
    line-height: 1.4;
}

.payment__steps li::before {
    content: counter(passos);
    flex: 0 0 26px;
    height: 26px;
    display: grid;
    place-items: center;
    background: var(--pitch-gold);
    color: var(--pitch-ink);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-top: 1px;
}

.payment__confirm {
    margin: 0;
}

.payment__status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(245, 200, 75, 0.12);
    border: 1px solid rgba(245, 200, 75, 0.45);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--pitch-cream);
}

.payment__status-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--pitch-gold);
    box-shadow: 0 0 0 4px rgba(245, 200, 75, 0.2);
    animation: blink 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

.payment__status--ok {
    background: rgba(108, 242, 139, 0.15);
    border-color: rgba(108, 242, 139, 0.55);
    color: #e8ffed;
}

.payment__status--ok .payment__status-dot {
    background: #6cf28b;
    box-shadow: 0 0 0 4px rgba(108, 242, 139, 0.25);
    animation: none;
}

.payment__status--err {
    background: rgba(224, 53, 59, 0.15);
    border-color: rgba(224, 53, 59, 0.5);
    color: #ffe5e5;
}

.payment__status--err .payment__status-dot {
    background: var(--pitch-red);
    animation: none;
}

.payment__ticket {
    display: inline-block;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 248, 225, 0.85);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.payment__ticket:hover {
    color: var(--pitch-gold);
}

.payment__back {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 248, 225, 0.65);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.payment__back:hover {
    color: var(--pitch-gold);
}

/* ----- Aguardando (camera) ----- */

.partida {
    display: grid;
    gap: 18px;
}

.partida .estado {
    display: grid;
    gap: 16px;
    justify-items: center;
    text-align: center;
    animation: fade-in 350ms ease-out;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.status__radar {
    position: relative;
    width: 160px; height: 160px;
    display: grid;
    place-items: center;
    margin-bottom: 4px;
}

.status__radar-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(245, 200, 75, 0.5);
    animation: radar 2.4s ease-out infinite;
}

.status__radar-pulse--delay {
    animation-delay: 1.2s;
}

@keyframes radar {
    0%   { transform: scale(0.4); opacity: 0.9; }
    100% { transform: scale(1.4); opacity: 0; }
}

.status__ball {
    width: 90px; height: 90px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    animation: bob 2.4s ease-in-out infinite;
}

.status__ball--big {
    width: 100px; height: 100px;
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

.status__hint {
    margin: 4px 0 12px;
    font-size: 0.88rem;
    color: rgba(255, 248, 225, 0.55);
}

/* Checks com aparência de painel tático */
.checks {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 340px;
}

.checks__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(245, 200, 75, 0.18);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
}

.checks__dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #6cf28b;
    box-shadow: 0 0 0 4px rgba(108, 242, 139, 0.25);
    flex-shrink: 0;
}

.checks__dot--pending {
    background: rgba(245, 200, 75, 0.75);
    box-shadow: 0 0 0 4px rgba(245, 200, 75, 0.2);
    animation: blink 1.4s ease-in-out infinite;
}

.checks__dot--err {
    background: var(--pitch-red);
    box-shadow: 0 0 0 4px rgba(224, 53, 59, 0.25);
    animation: none;
}

@keyframes blink {
    0%, 100% { opacity: 0.55; }
    50%      { opacity: 1; }
}

/* Heros (vitória, derrota, pronto, etc.) */
.hero {
    width: 130px;
    height: 130px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    margin: 4px auto 8px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5);
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0.3;
    animation: pulse-ring 2.4s ease-out infinite;
}

@keyframes pulse-ring {
    0%   { transform: scale(0.9); opacity: 0.4; }
    100% { transform: scale(1.2); opacity: 0; }
}

.hero--gold { background: rgba(245, 200, 75, 0.2); color: var(--pitch-gold); }
.hero--win  { background: radial-gradient(circle, rgba(245, 200, 75, 0.35) 0%, rgba(245, 200, 75, 0.15) 70%); color: var(--pitch-gold); }
.hero--lose { background: rgba(224, 53, 59, 0.18); color: var(--pitch-red); }

.hero__icon {
    width: 68px; height: 68px;
}

.cta--outline {
    appearance: none;
    border: 1.5px solid var(--pitch-red);
    background: rgba(224, 53, 59, 0.1);
    color: #ffd9d9;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 22px;
    border-radius: 14px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 2px;
    transition: background 160ms ease, transform 160ms ease;
}

.cta--outline:hover,
.cta--outline:focus-visible {
    outline: none;
    background: rgba(224, 53, 59, 0.2);
    transform: translateY(-1px);
}

.cta--outline:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.fluxo__eyebrow--win {
    color: var(--pitch-gold);
    font-size: 1rem;
    letter-spacing: 6px;
}

.fluxo__eyebrow--lose {
    color: var(--pitch-red);
    font-size: 1rem;
    letter-spacing: 5px;
}

/* "GOOOL" badge dramático na vitória */
.gol-badge {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 12vw, 5.5rem);
    letter-spacing: 2px;
    color: var(--pitch-gold);
    line-height: 0.95;
    text-shadow:
        0 4px 0 rgba(0, 0, 0, 0.3),
        0 0 30px rgba(245, 200, 75, 0.6);
    animation: gol-bounce 1.2s ease-out;
}

@keyframes gol-bounce {
    0%   { transform: scale(0.3) rotate(-12deg); opacity: 0; }
    40%  { transform: scale(1.2) rotate(4deg); opacity: 1; }
    60%  { transform: scale(0.95) rotate(-2deg); }
    100% { transform: scale(1) rotate(0); }
}

.info-box {
    width: 100%;
    padding: 16px 18px;
    border-radius: 14px;
    font-size: 0.95rem;
    text-align: left;
    line-height: 1.5;
}

.info-box strong {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.info-box--ok {
    background: rgba(245, 200, 75, 0.14);
    border: 1px dashed rgba(245, 200, 75, 0.55);
    color: #fff8e1;
}

.info-box--ok .info-box__codigo {
    display: block;
    font-family: var(--font-mono);
    word-break: break-all;
    color: var(--pitch-gold);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.info-box--info {
    background: rgba(26, 115, 232, 0.14);
    border: 1px solid rgba(26, 115, 232, 0.45);
    color: #e3f0ff;
}

.contestar {
    width: 100%;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(224, 53, 59, 0.08);
    border: 1px dashed rgba(224, 53, 59, 0.45);
    display: grid;
    gap: 12px;
}

.contestar__lead {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(255, 248, 225, 0.85);
}

.contador {
    font-family: var(--font-display);
    font-size: 4.5rem;
    color: var(--pitch-gold);
    line-height: 1;
    min-height: 1em;
    text-shadow: 0 0 30px rgba(245, 200, 75, 0.5);
}

.loader {
    display: inline-flex;
    gap: 10px;
    margin: 8px 0 4px;
}

.loader span {
    width: 14px; height: 14px;
    background: var(--pitch-gold);
    border-radius: 50%;
    animation: loader 1.2s ease-in-out infinite;
}

.loader span:nth-child(2) { animation-delay: 0.18s; }
.loader span:nth-child(3) { animation-delay: 0.36s; }

@keyframes loader {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%            { transform: scale(1.0); opacity: 1; }
}

/* Confete (vitória) */
.confetti {
    position: fixed;
    top: -20px;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}

.confetti span {
    position: absolute;
    top: -20px;
    width: 10px;
    height: 16px;
    border-radius: 2px;
    opacity: 0;
    animation: confetti-fall linear forwards;
}

.confetti span:nth-child(5n+1) { background: var(--pitch-gold); }
.confetti span:nth-child(5n+2) { background: #ffffff; }
.confetti span:nth-child(5n+3) { background: var(--pitch-red); }
.confetti span:nth-child(5n+4) { background: var(--pitch-blue); }
.confetti span:nth-child(5n+5) { background: var(--pitch-grass-1); }

@keyframes confetti-fall {
    0%   { transform: translateY(-30px) rotate(0); opacity: 0; }
    10%  { opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0.8; }
}

.status__cta {
    width: 100%;
    max-width: 320px;
    margin-top: 4px;
}

.status--err .status__hint {
    color: #ffd9c8;
}

/* Breakpoint tablet/desktop */
@media (min-width: 720px) {
    body.page-fluxo .totem-shell {
        max-width: 640px;
    }

    .fluxo__title {
        font-size: 2.8rem;
    }
}
