:root {
  color-scheme: dark;
  --bg: #070708;
  --bg-soft: #0d0d0f;
  --surface: #111113;
  --surface-2: #17171a;
  --surface-3: #1e1e21;
  --surface-glass: rgba(17, 17, 19, .88);
  --text: #f7f7f8;
  --text-strong: #ffffff;
  --muted: #99999f;
  --muted-2: #73737a;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .17);
  --input: #0b0b0d;
  --red: #e3131b;
  --red-bright: #ff3038;
  --red-dark: #850008;
  --red-soft: rgba(227, 19, 27, .12);
  --green: #22c978;
  --green-soft: rgba(34, 201, 120, .12);
  --orange: #f79009;
  --gold: #f4c84e;
  --shadow: 0 24px 70px rgba(0, 0, 0, .46);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, .25);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max: 1320px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f6;
  --bg-soft: #eeeeef;
  --surface: #ffffff;
  --surface-2: #f8f8f9;
  --surface-3: #ededee;
  --surface-glass: rgba(255, 255, 255, .91);
  --text: #252528;
  --text-strong: #0c0c0e;
  --muted: #727278;
  --muted-2: #99999f;
  --line: rgba(14, 14, 17, .10);
  --line-strong: rgba(14, 14, 17, .19);
  --input: #fafafa;
  --red-soft: rgba(227, 19, 27, .08);
  --shadow: 0 24px 60px rgba(27, 27, 32, .12);
  --shadow-soft: 0 10px 28px rgba(27, 27, 32, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  transition: background-color .22s ease, color .22s ease;
}
body.modal-open, body.sidebar-open { overflow: hidden; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -4;
  background:
    radial-gradient(900px 620px at -8% 5%, rgba(227, 19, 27, .20), transparent 68%),
    radial-gradient(720px 540px at 105% 86%, rgba(227, 19, 27, .12), transparent 70%),
    linear-gradient(140deg, var(--bg) 0%, var(--bg) 58%, color-mix(in srgb, var(--bg), #3b0004 12%) 100%);
}
html[data-theme="light"] body::before {
  background:
    radial-gradient(900px 620px at -8% 5%, rgba(227, 19, 27, .11), transparent 68%),
    radial-gradient(720px 540px at 105% 86%, rgba(227, 19, 27, .07), transparent 70%),
    linear-gradient(140deg, #f7f7f8 0%, #f4f4f5 60%, #f8eeee 100%);
}
.page-texture {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
  opacity: .78;
}
.page-texture::before {
  content: "";
  position: absolute;
  width: 105vw;
  height: 42vh;
  left: -18vw;
  top: 16vh;
  transform: rotate(-13deg);
  border-radius: 50%;
  background: linear-gradient(180deg, transparent, rgba(227, 19, 27, .07), transparent);
  filter: blur(20px);
}
.page-texture::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
em { color: var(--red-bright); font-style: normal; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ui-icon { flex: 0 0 auto; }
.muted { color: var(--muted); }
.align-right { text-align: right; display: grid; justify-items: end; gap: 6px; }

/* Header público */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg), transparent 10%);
  backdrop-filter: blur(20px) saturate(125%);
}
.header-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, var(--red-bright), var(--red-dark));
  box-shadow: 0 11px 26px rgba(227, 19, 27, .30), inset 0 0 0 1px rgba(255, 255, 255, .2);
  font-weight: 1000;
  font-size: 23px;
  letter-spacing: -.08em;
  transform: skew(-5deg);
}
.brand-mark.xl { width: 92px; height: 92px; border-radius: 25px; font-size: 52px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { color: var(--text-strong); font-size: 14px; letter-spacing: .19em; }
.brand-copy small { margin-top: 6px; color: var(--muted); font-size: 7px; letter-spacing: .20em; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 4px; margin-left: auto; white-space: nowrap; }
.main-nav a { padding: 10px 12px; border-radius: 10px; color: var(--muted); font-size: 13px; font-weight: 730; transition: .16s ease; }
.main-nav a:hover { color: var(--text-strong); background: var(--surface-2); }
.main-nav a.active { color: var(--text-strong); background: var(--red-soft); }
.main-nav .nav-admin { border: 1px solid rgba(227, 19, 27, .34); color: var(--red-bright); }
.header-account { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.user-chip { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 12px; font-weight: 800; }
.user-chip img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(227, 19, 27, .65); }
.user-chip span { max-width: 105px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-button { padding: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.text-button:hover { color: var(--text-strong); }
.icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: .16s ease;
}
.icon-button:hover { border-color: var(--line-strong); background: var(--surface-3); }
.theme-toggle { font-size: 20px; }
.menu-toggle { display: none; margin-left: auto; }
.site-main { width: min(var(--max), calc(100% - 40px)); min-height: calc(100vh - 190px); margin: 0 auto; }
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 72px auto 0;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  gap: 28px;
  color: var(--muted);
  font-size: 12px;
}
.site-footer > div { margin-right: auto; }
.site-footer p { margin: 5px 0 0; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a:hover { color: var(--text-strong); }
.brand-mini { color: var(--text-strong); font-weight: 950; letter-spacing: .2em; }

/* Controles */
.button {
  min-height: 43px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 830;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary, .button.twitch { color: #fff; background: linear-gradient(140deg, var(--red-bright), var(--red-dark)); box-shadow: 0 12px 28px rgba(227, 19, 27, .23); }
.button.primary:hover, .button.twitch:hover { filter: brightness(1.08); }
.button.ghost { color: var(--text); background: var(--surface-2); border-color: var(--line); }
.button.ghost:hover { background: var(--surface-3); border-color: var(--line-strong); }
.button.success { color: #55e69e; background: var(--green-soft); border-color: rgba(34, 201, 120, .34); }
html[data-theme="light"] .button.success { color: #087a44; }
.button.danger { color: #ff858b; background: var(--red-soft); border-color: rgba(227, 19, 27, .34); }
html[data-theme="light"] .button.danger { color: #b10d15; }
.button.small { min-height: 36px; padding: 8px 12px; border-radius: 9px; font-size: 11px; }
.button.large { min-height: 52px; padding: 14px 21px; font-size: 14px; }
.button.full { width: 100%; }
.button[disabled] { opacity: .42; cursor: not-allowed; transform: none; box-shadow: none; }
.button-spinner { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: var(--input);
  color: var(--text-strong);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, textarea:focus, select:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(227, 19, 27, .10); }
textarea { min-height: 104px; resize: vertical; }
label { display: grid; gap: 8px; color: var(--text); font-size: 12px; font-weight: 760; }
label small { color: var(--muted); font-weight: 500; line-height: 1.45; }
label.is-disabled { opacity: .5; }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-weight: 550; }
.check input { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--red); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.panel-head h2 { margin: 4px 0 0; color: var(--text-strong); font-size: 21px; letter-spacing: -.025em; }
.panel-step { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px; display: grid; place-items: center; color: var(--red-bright); background: var(--red-soft); font-weight: 900; font-size: 11px; }
.eyebrow { color: var(--red-bright); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.eyebrow.success { color: var(--green); }
.status-pill, .badge {
  width: max-content;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.status-pill.open, .badge.open, .badge.confirmed, .badge.eligible, .badge.winner, .badge.completed {
  color: #5fe4a4;
  border-color: rgba(34, 201, 120, .3);
  background: var(--green-soft);
}
html[data-theme="light"] .status-pill.open, html[data-theme="light"] .badge.open, html[data-theme="light"] .badge.confirmed, html[data-theme="light"] .badge.eligible, html[data-theme="light"] .badge.winner, html[data-theme="light"] .badge.completed { color: #087a44; }
.badge.draft, .badge.closed, .badge.expired, .badge.cancelled { color: var(--muted); }
.badge.drawing, .badge.drawn_pending, .badge.payment_pending, .badge.waitlist { color: #f8bd64; border-color: rgba(247, 144, 9, .3); background: rgba(247, 144, 9, .10); }
.badge.finished { color: var(--gold); border-color: rgba(244, 200, 78, .3); background: rgba(244, 200, 78, .10); }
.badge.disqualified, .badge.payment_error { color: #ff878d; border-color: rgba(227, 19, 27, .30); background: var(--red-soft); }
.flash, .alert { margin: 18px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 13px; }
.flash.success { border-color: rgba(34, 201, 120, .3); }
.flash.error, .alert.error { border-color: rgba(227, 19, 27, .35); }
.callout { padding: 14px 16px; border: 1px solid rgba(227, 19, 27, .20); border-radius: 13px; display: flex; align-items: flex-start; gap: 10px; background: var(--red-soft); color: var(--muted); font-size: 12px; line-height: 1.55; }
.empty-state { min-height: 130px; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); text-align: center; }
.empty-state.compact { min-height: 88px; }
.empty-state p { margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid .full { grid-column: 1 / -1; }
.premium-form { display: grid; gap: 17px; }
.section-stack { display: flex; flex-direction: column; gap: 17px; }
.control-row { display: flex; flex-wrap: wrap; gap: 9px; }
.inline-form { display: flex; align-items: center; gap: 7px; }
.inline-form input, .inline-form select { min-width: 120px; }

/* Home */
.hero { min-height: 700px; padding: 78px 0 66px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); align-items: center; gap: 70px; }
.hero-copy h1 { max-width: 730px; margin: 15px 0 20px; color: var(--text-strong); font-size: clamp(52px, 6.5vw, 90px); line-height: .98; letter-spacing: -.065em; }
.hero-copy > p { max-width: 660px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.hero-actions { margin-top: 31px; display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 11px; }
.trust-row span { display: flex; align-items: center; gap: 7px; }
.trust-row b { color: var(--text); font-weight: 700; }
.hero-visual { min-height: 530px; position: relative; display: grid; place-items: center; }
.hero-red-orbit { position: absolute; width: 430px; height: 430px; border: 1px solid rgba(227, 19, 27, .22); border-radius: 50%; box-shadow: 0 0 0 46px rgba(227, 19, 27, .025), 0 0 0 92px rgba(227, 19, 27, .018); animation: floatOrbit 8s ease-in-out infinite; }
@keyframes floatOrbit { 50% { transform: translateY(-10px) rotate(4deg); } }
.hero-logo { width: 270px; height: 270px; position: relative; border: 1px solid rgba(255, 255, 255, .10); border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 25%, #2a2a2d, #0b0b0d 66%); box-shadow: 0 40px 100px rgba(0, 0, 0, .55), 0 0 80px rgba(227, 19, 27, .12); }
html[data-theme="light"] .hero-logo { background: radial-gradient(circle at 35% 25%, #fff, #dedee1 68%); box-shadow: 0 35px 70px rgba(20, 20, 25, .18), 0 0 70px rgba(227, 19, 27, .10); }
.hero-logo span { color: var(--red-bright); font-size: 150px; font-weight: 1000; letter-spacing: -.12em; transform: skew(-6deg); text-shadow: 0 12px 30px rgba(227, 19, 27, .25); }
.hero-logo small { position: absolute; bottom: 40px; color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .2em; }
.hero-float { position: absolute; min-width: 150px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; gap: 10px; background: var(--surface-glass); box-shadow: var(--shadow-soft); backdrop-filter: blur(14px); }
.hero-float i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 16px var(--red); }
.hero-float small { display: block; color: var(--muted); font-size: 7px; letter-spacing: .12em; }
.hero-float strong { display: block; margin-top: 2px; color: var(--text-strong); font-size: 13px; }
.hero-float-a { top: 74px; left: 20px; }
.hero-float-b { right: 0; top: 205px; }
.hero-float-c { bottom: 55px; left: 65px; }
.experience-section { padding: 70px 0; }
.section-heading { max-width: 720px; margin-bottom: 30px; }
.section-heading h2 { margin: 8px 0; color: var(--text-strong); font-size: clamp(35px, 4vw, 54px); letter-spacing: -.045em; }
.section-heading p { margin: 0; color: var(--muted); }
.experience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.experience-card { min-height: 450px; padding: 34px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl); display: flex; flex-direction: column; background: linear-gradient(150deg, var(--surface), var(--surface-2)); box-shadow: var(--shadow-soft); }
.experience-card::after { content: ""; width: 260px; height: 260px; position: absolute; right: -110px; bottom: -120px; border-radius: 50%; background: rgba(227, 19, 27, .11); filter: blur(10px); }
.experience-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.experience-icon { width: 62px; height: 62px; border: 1px solid rgba(227, 19, 27, .26); border-radius: 17px; display: grid; place-items: center; color: var(--red-bright); background: var(--red-soft); }
.card-index { margin-top: 48px; color: var(--muted-2); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.experience-card h3 { margin: 8px 0 12px; color: var(--text-strong); font-size: 34px; letter-spacing: -.035em; }
.experience-card > p { max-width: 560px; margin: 0; color: var(--muted); line-height: 1.7; }
.experience-meta { margin-top: auto; padding-top: 28px; display: flex; gap: 32px; }
.experience-meta div { display: grid; gap: 4px; }
.experience-meta span { color: var(--muted); font-size: 8px; letter-spacing: .13em; }
.experience-meta strong { color: var(--text-strong); font-size: 22px; }
.card-link { margin-top: 22px; color: var(--text-strong); font-size: 13px; font-weight: 800; }
.card-link b { color: var(--red-bright); margin-left: 8px; }
.how-section { padding: 60px 0 80px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-grid > div { padding: 27px; border: 1px solid var(--line); border-radius: 20px; background: color-mix(in srgb, var(--surface), transparent 12%); }
.how-grid b { color: var(--red-bright); font-size: 11px; letter-spacing: .12em; }
.how-grid h3 { margin: 12px 0 7px; color: var(--text-strong); font-size: 20px; }
.how-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

/* Páginas públicas */
.page-hero { min-height: 290px; padding: 70px 0 44px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.page-hero.compact { min-height: 230px; }
.page-hero h1 { margin: 10px 0 13px; color: var(--text-strong); font-size: clamp(44px, 5vw, 70px); line-height: 1; letter-spacing: -.055em; }
.page-hero p { max-width: 670px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.prize-orb { width: 210px; height: 210px; flex: 0 0 auto; border: 1px solid rgba(227, 19, 27, .25); border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 5px; background: radial-gradient(circle, var(--red-soft), transparent 70%); text-align: center; }
.prize-orb small { color: var(--muted); font-size: 8px; letter-spacing: .13em; }
.prize-orb strong { color: var(--text-strong); font-size: 30px; }
.battle-summary { padding: 20px 24px; border: 1px solid var(--line); border-radius: 20px; display: flex; align-items: center; gap: 25px; background: var(--surface); box-shadow: var(--shadow-soft); }
.battle-summary div { display: grid; gap: 3px; }
.battle-summary small { color: var(--muted); font-size: 8px; letter-spacing: .12em; }
.battle-summary strong { color: var(--text-strong); font-size: 21px; }
.profile-hero { width: 110px; height: 110px; border: 3px solid rgba(227, 19, 27, .45); border-radius: 28px; object-fit: cover; box-shadow: var(--shadow); }
.closed-state, .success-ticket { max-width: 760px; margin: 35px auto 90px; padding: 44px; border: 1px solid var(--line); border-radius: var(--radius-xl); display: grid; justify-items: center; gap: 12px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.closed-state h2, .success-ticket h2 { margin: 3px 0; color: var(--text-strong); font-size: 32px; letter-spacing: -.035em; }
.closed-state p, .success-ticket p { margin: 0; color: var(--muted); }
.lock-orb, .ticket-icon { width: 70px; height: 70px; border: 1px solid rgba(227, 19, 27, .25); border-radius: 50%; display: grid; place-items: center; color: var(--red-bright); background: var(--red-soft); font-size: 27px; font-weight: 900; }
.ticket-code { margin-top: 8px; padding: 9px 12px; border: 1px dashed var(--line-strong); border-radius: 9px; color: var(--muted); font-family: ui-monospace, monospace; font-size: 11px; }
.form-stage { padding: 20px 0 90px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 42px; align-items: start; }
.form-side { padding: 20px 0; }
.form-side h2 { margin: 9px 0 10px; color: var(--text-strong); font-size: 38px; letter-spacing: -.04em; }
.form-side > p { color: var(--muted); line-height: 1.7; }
.identity-card { margin-top: 25px; padding: 15px; border: 1px solid var(--line); border-radius: 17px; display: flex; align-items: center; gap: 13px; background: var(--surface); box-shadow: var(--shadow-soft); }
.identity-card img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; }
.identity-card > div { min-width: 0; flex: 1; display: grid; }
.identity-card small { color: var(--muted); font-size: 7px; letter-spacing: .13em; }
.identity-card strong { color: var(--text-strong); }
.identity-card span { color: var(--muted); font-size: 11px; }
.identity-card > b { color: var(--green); font-size: 8px; letter-spacing: .08em; }
.privacy-note { margin-top: 15px; padding: 13px; border-radius: 13px; display: flex; gap: 9px; color: var(--muted); background: var(--surface-2); font-size: 11px; }
.privacy-note p { margin: 0; }
.field-number { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--red-bright); background: var(--red-soft); font-size: 9px; font-weight: 900; }
.terms-box { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.terms-scroll { max-height: 190px; padding: 16px; overflow-y: auto; color: var(--muted); font-size: 11px; line-height: 1.65; }
.terms-box .check { padding: 14px; border-top: 1px solid var(--line); }
.battle-rules-mini { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.battle-rules-mini div { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: center; }
.battle-rules-mini b { display: block; color: var(--text-strong); }
.battle-rules-mini span { color: var(--muted); font-size: 9px; }
.game-picker { position: relative; display: grid; gap: 8px; }
.selected-game { min-height: 72px; padding: 10px; border: 1px dashed var(--line-strong); border-radius: 12px; display: flex; align-items: center; gap: 12px; color: var(--muted); }
.selected-game img { width: 50px; height: 50px; border-radius: 10px; object-fit: cover; }
.selected-game div { display: grid; }
.selected-game strong { color: var(--text-strong); }
.selected-game small { color: var(--muted); }
.game-results { max-height: 310px; position: absolute; left: 0; right: 0; top: 75px; z-index: 20; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }
.game-option { width: 100%; padding: 10px; border: 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 11px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.game-option:hover { background: var(--surface-2); }
.game-option img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; }
.game-option span { display: grid; }
.game-option strong { color: var(--text-strong); font-size: 12px; }
.game-option small { color: var(--muted); font-size: 9px; }
.price-confirm { padding: 15px; border: 1px solid rgba(227, 19, 27, .22); border-radius: 14px; display: flex; align-items: center; justify-content: space-between; background: var(--red-soft); }
.price-confirm span { color: var(--muted); font-size: 8px; letter-spacing: .12em; }
.price-confirm strong { color: var(--text-strong); font-size: 22px; }
.registered-game { width: 100%; max-width: 460px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; display: flex; align-items: center; gap: 13px; background: var(--surface-2); text-align: left; }
.registered-game img { width: 70px; height: 70px; border-radius: 12px; object-fit: cover; }
.registered-game div { display: grid; }
.registered-game small { color: var(--muted); font-size: 8px; }
.registered-game strong { color: var(--text-strong); }
.registered-game span { color: var(--muted); font-size: 11px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.user-metrics { grid-template-columns: repeat(3, 1fr); }
.metric-grid > article:not(.metric-card) { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.metric-grid > article > span { color: var(--muted); font-size: 8px; letter-spacing: .12em; }
.metric-grid > article > strong { display: block; margin-top: 6px; color: var(--text-strong); font-size: 25px; }
.metric-grid > article > small { color: var(--muted); }
.split-panels { padding: 20px 0 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.activity-list { display: grid; gap: 9px; }
.activity-item { padding: 13px; border: 1px solid var(--line); border-radius: 13px; display: flex; align-items: center; justify-content: space-between; gap: 15px; background: var(--surface-2); }
.activity-item > div { display: grid; }
.activity-item strong { color: var(--text-strong); }
.activity-item small { color: var(--muted); font-size: 10px; }

/* Admin */
.admin-main { width: 100%; min-height: 100vh; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.admin-sidebar {
  width: 252px;
  height: 100vh;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 120;
  padding: 24px 17px 18px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--surface), var(--bg) 15%);
}
.admin-sidebar-brand { padding: 0 6px 22px; display: flex; align-items: center; justify-content: space-between; }
.sidebar-close { display: none; }
.admin-nav { display: grid; gap: 5px; }
.admin-nav-label { padding: 9px 13px; color: var(--muted-2); font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.admin-nav a, .admin-sidebar-tools a, .admin-sidebar-tools button {
  width: 100%; min-height: 46px; padding: 0 13px; border: 0; border-radius: 11px; display: flex; align-items: center; gap: 12px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; text-align: left;
}
.admin-nav a:hover, .admin-sidebar-tools a:hover, .admin-sidebar-tools button:hover { color: var(--text-strong); background: var(--surface-2); }
.admin-nav a.active { color: #fff; background: linear-gradient(135deg, var(--red-bright), var(--red-dark)); box-shadow: 0 12px 28px rgba(227, 19, 27, .22); }
.admin-sidebar-tools { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 3px; }
.admin-sidebar-account { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; gap: 10px; background: var(--surface-2); }
.admin-sidebar-account > img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.admin-sidebar-account > div { min-width: 0; flex: 1; display: grid; }
.admin-sidebar-account strong { overflow: hidden; color: var(--text-strong); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.admin-sidebar-account small { color: var(--muted); font-size: 9px; }
.admin-sidebar-account .icon-button { width: 32px; height: 32px; }
.admin-system-status { margin-top: 11px; padding: 0 5px; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.admin-system-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(34, 201, 120, .5); }
.admin-system-status small { margin-left: auto; }
.admin-content { grid-column: 2; min-width: 0; padding: 36px clamp(24px, 4vw, 58px) 70px; }
.admin-mobile-bar { display: none; }
.admin-sidebar-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(0, 0, 0, .58); backdrop-filter: blur(3px); }
.admin-title { margin-bottom: 25px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.admin-page-head h1 { margin: 5px 0 7px; color: var(--text-strong); font-size: clamp(36px, 4vw, 51px); letter-spacing: -.055em; }
.admin-page-head p { margin: 0; color: var(--muted); font-size: 13px; }
.page-head-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.dashboard-metrics .metric-card { min-height: 126px; padding: 20px; border: 1px solid var(--line); border-radius: 17px; display: flex; align-items: center; gap: 15px; background: var(--surface); box-shadow: var(--shadow-soft); }
.metric-icon { width: 45px; height: 45px; border-radius: 13px; display: grid; place-items: center; color: var(--red-bright); background: var(--red-soft); }
.metric-card > div:last-child { min-width: 0; display: grid; }
.metric-card span { color: var(--muted); font-size: 8px; letter-spacing: .12em; }
.metric-card strong { margin-top: 3px; color: var(--text-strong); font-size: 26px; line-height: 1.1; }
.metric-card small { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.compact-metrics { margin-bottom: 18px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-grid .wide { grid-column: 1 / -1; }
.dashboard-grid { margin-top: 18px; }
.operation-card { min-height: 250px; }
.operation-summary { padding: 17px; border: 1px solid var(--line); border-radius: 15px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--surface-2); }
.operation-amount { display: grid; }
.operation-amount small { color: var(--muted); font-size: 8px; letter-spacing: .11em; }
.operation-amount strong { color: var(--text-strong); font-size: 25px; }
.progress-meta { margin-top: 18px; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.progress-bar { height: 6px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: var(--surface-3); }
.progress-bar i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--red-dark), var(--red-bright)); }
.table-count { color: var(--muted); font-size: 10px; }
.data-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
.data-table { width: 100%; min-width: 780px; border-collapse: collapse; background: var(--surface); }
.data-table th, .data-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 11px; }
.data-table th { position: sticky; top: 0; z-index: 2; color: var(--muted); background: var(--surface-2); font-size: 8px; letter-spacing: .12em; }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td strong { display: block; color: var(--text-strong); }
.data-table td small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.table-user, .table-game { display: flex; align-items: center; gap: 10px; }
.table-user img { width: 39px; height: 39px; border-radius: 10px; object-fit: cover; }
.table-game img { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; }
.table-user div, .table-game div { min-width: 0; }
.sensitive-value { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.usage-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.usage-pills span { padding: 5px 8px; border-radius: 999px; background: var(--surface-3); font-size: 9px; }
.search-form { width: min(430px, 100%); padding: 4px 4px 4px 12px; border: 1px solid var(--line); border-radius: 13px; display: flex; align-items: center; gap: 8px; background: var(--surface); }
.search-form > span { color: var(--muted); }
.search-form input { padding: 8px 4px; border: 0; box-shadow: none; background: transparent; }
.privacy-callout { margin-bottom: 16px; }
.users-table-panel { padding: 0; overflow: hidden; }
.users-table-panel .panel-head { padding: 22px 22px 0; }
.users-table-panel .data-table-wrap { border: 0; border-top: 1px solid var(--line); border-radius: 0; }

/* Admin iFood */
.ifood-admin-grid { align-items: start; }
.draw-control-panel { display: grid; gap: 16px; }
.draw-summary-visual { padding: 18px; border: 1px solid var(--line); border-radius: 16px; display: flex; align-items: center; gap: 20px; background: var(--surface-2); }
.winner-stack-preview { width: 100px; height: 80px; position: relative; }
.winner-stack-preview span { width: 54px; height: 68px; position: absolute; left: calc(var(--i) * 12px); top: calc(var(--i) * 2px); border: 1px solid rgba(227, 19, 27, .28); border-radius: 12px; display: grid; place-items: center; color: var(--red-bright); background: var(--surface); box-shadow: var(--shadow-soft); transform: rotate(calc((var(--i) - 1.5) * 4deg)); }
.draw-summary-visual > div:last-child { display: grid; }
.draw-summary-visual strong { color: var(--text-strong); font-size: 19px; }
.draw-summary-visual small { color: var(--muted); }
.copy-field { display: grid; gap: 7px; }
.copy-field > span { display: flex; gap: 7px; }
.copy-field input { min-width: 0; flex: 1; color: var(--muted); font-family: ui-monospace, monospace; font-size: 9px; }
.copy-field .icon-button { flex: 0 0 auto; }
.winners-panel { overflow: hidden; }
.ifood-winner-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ifood-winner-card { padding: 16px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; display: grid; justify-items: center; gap: 7px; background: linear-gradient(150deg, var(--surface-2), var(--surface)); text-align: center; }
.ifood-winner-card::after { content: ""; width: 100px; height: 100px; position: absolute; right: -50px; bottom: -50px; border-radius: 50%; background: var(--red-soft); }
.winner-number { position: absolute; top: 10px; left: 10px; z-index: 1; color: var(--red-bright); font-size: 9px; font-weight: 900; }
.ifood-winner-card img { width: 66px; height: 66px; border: 2px solid rgba(227, 19, 27, .42); border-radius: 50%; object-fit: cover; }
.ifood-winner-card div { display: grid; }
.ifood-winner-card strong { color: var(--text-strong); font-size: 12px; }
.ifood-winner-card small, .masked-id { color: var(--muted); font-size: 9px; }
.ifood-winner-card b { color: var(--red-bright); font-size: 17px; }

/* Admin batalha */
.campaign-builder { max-width: 930px; margin: 15px auto; padding: 34px; }
.builder-head { margin-bottom: 26px; display: flex; align-items: center; gap: 16px; }
.builder-icon { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; color: var(--red-bright); background: var(--red-soft); }
.builder-head h2 { margin: 4px 0; color: var(--text-strong); font-size: 28px; }
.builder-head p { margin: 0; color: var(--muted); }
.builder-actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 9px; }
.battle-admin-grid { align-items: start; }
.battle-control-panel, .battle-draw-panel { min-height: 390px; display: flex; flex-direction: column; gap: 16px; }
.battle-status-line { padding: 15px; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; gap: 12px; background: var(--surface-2); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted-2); }
.status-dot.open, .status-dot.drawing { background: var(--green); box-shadow: 0 0 13px rgba(34, 201, 120, .45); }
.battle-status-line div { display: grid; }
.battle-status-line strong { color: var(--text-strong); }
.battle-status-line small { color: var(--muted); }
.battle-controls { margin-bottom: auto; }
.case-preview { min-height: 170px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; display: grid; align-items: center; background: radial-gradient(circle at 50% 50%, var(--red-soft), transparent 65%), var(--surface-2); }
.case-marker, .case-preview::after { content: ""; width: 2px; position: absolute; top: 0; bottom: 0; left: 50%; z-index: 3; background: var(--red-bright); box-shadow: 0 0 14px rgba(227, 19, 27, .8); }
.case-preview-track { padding: 20px; display: flex; justify-content: center; gap: 9px; opacity: .65; transform: translateX(-18px); }
.case-preview-track span { width: 92px; padding: 9px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 11px; display: grid; justify-items: center; gap: 5px; background: var(--surface); }
.case-preview-track img { width: 55px; height: 55px; border-radius: 9px; object-fit: cover; }
.case-preview-track small { max-width: 75px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.case-empty { color: var(--muted); font-size: 11px; }
.draw-card { padding: 17px; border: 1px solid rgba(227, 19, 27, .25); border-radius: 17px; display: grid; grid-template-columns: 100px 1fr; gap: 16px; background: linear-gradient(145deg, var(--red-soft), var(--surface-2)); }
.draw-profile { position: relative; }
.draw-profile > img { width: 100px; height: 100px; border-radius: 18px; object-fit: cover; }
.draw-profile > span { width: 30px; height: 30px; position: absolute; right: -6px; bottom: -6px; border: 3px solid var(--surface); border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--red); }
.draw-card h3 { margin: 4px 0; color: var(--text-strong); font-size: 25px; }
.draw-card p { margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.draw-game { padding: 9px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; gap: 10px; background: var(--surface); }
.draw-game img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; }
.draw-game div { display: grid; }
.draw-game strong { color: var(--text-strong); font-size: 11px; }
.draw-game small { color: var(--muted); font-size: 9px; }
.draw-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.result-entry { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.result-entry form { display: grid; gap: 10px; }
.waitlist-panel .callout { margin-bottom: 14px; }
.queue-number { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--red-bright); background: var(--red-soft); font-weight: 900; }
.disqualify-form input { max-width: 130px; }
.rank-list { display: grid; gap: 9px; }
.rank-row { padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; background: var(--surface-2); }
.rank-row.leader { border-color: rgba(227, 19, 27, .28); background: linear-gradient(90deg, var(--red-soft), var(--surface-2)); }
.place { color: var(--red-bright); font-size: 18px; font-weight: 950; }
.rank-user { display: flex; align-items: center; gap: 10px; }
.rank-user img { width: 39px; height: 39px; border-radius: 10px; object-fit: cover; }
.rank-user div { min-width: 0; display: grid; }
.rank-user strong { color: var(--text-strong); }
.rank-user small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.rank-value { color: var(--text-strong); font-size: 18px; font-weight: 900; }

/* Modal de sorteio no painel */
.modal-layer { position: fixed; inset: 0; z-index: 300; padding: 30px; display: grid; place-items: center; background: rgba(0, 0, 0, .80); backdrop-filter: blur(12px); }
.admin-draw-modal { width: min(1120px, 96vw); padding: 30px; position: relative; overflow: hidden; border: 1px solid rgba(227, 19, 27, .42); border-radius: 28px; background: #0a0a0c; box-shadow: 0 45px 130px rgba(0, 0, 0, .75), 0 0 100px rgba(227, 19, 27, .13); color: #fff; }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 5; background: rgba(255, 255, 255, .08); color: #fff; }
.admin-case-head { text-align: center; }
.admin-case-head span { color: #ff5158; font-size: 9px; font-weight: 900; letter-spacing: .17em; }
.admin-case-head h2 { margin: 6px 0 20px; font-size: 31px; }
.admin-case-window { height: 230px; position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, .10); border-radius: 18px; display: flex; align-items: center; background: radial-gradient(circle at center, rgba(227, 19, 27, .13), transparent 55%), #101013; }
.admin-case-window::before, .admin-case-window::after { content: ""; width: 130px; position: absolute; top: 0; bottom: 0; z-index: 3; pointer-events: none; }
.admin-case-window::before { left: 0; background: linear-gradient(90deg, #101013, transparent); }
.admin-case-window::after { right: 0; background: linear-gradient(-90deg, #101013, transparent); }
.admin-case-window > i { width: 3px; position: absolute; top: 0; bottom: 0; left: 50%; z-index: 4; background: #ff3038; box-shadow: 0 0 18px #ff3038; }
.admin-case-track { padding-left: 18px; display: flex; gap: 12px; will-change: transform; transition: transform 5.4s cubic-bezier(.08, .62, .08, 1); }
.admin-case-item { width: 178px; height: 174px; padding: 14px; flex: 0 0 auto; border: 1px solid rgba(255, 255, 255, .10); border-radius: 15px; display: grid; justify-items: center; align-content: center; gap: 7px; background: linear-gradient(145deg, #19191d, #0e0e11); }
.admin-case-item.is-selected { border-color: rgba(255, 48, 56, .65); }
.admin-case-item img { width: 80px; height: 80px; border-radius: 15px; object-fit: cover; }
.admin-case-item strong { max-width: 150px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-case-item small { max-width: 150px; overflow: hidden; color: #999; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.admin-case-result { margin-top: 20px; padding: 15px; border: 1px solid rgba(255, 48, 56, .25); border-radius: 15px; display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 14px; background: rgba(227, 19, 27, .09); animation: rise .35s ease; }
.admin-case-result > img { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; }
.admin-case-result span { color: #ff5158; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.admin-case-result h3 { margin: 2px 0; font-size: 21px; }
.admin-case-result p { margin: 0; color: #aaa; font-size: 10px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* Legal, instalação e pagamento */
.legal-page { max-width: 880px; margin: 60px auto; padding: 42px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow); }
.legal-page h1 { margin: 10px 0 28px; color: var(--text-strong); font-size: 45px; }
.legal-page h2 { margin-top: 30px; color: var(--text-strong); font-size: 21px; }
.legal-page p, .legal-page li { color: var(--muted); font-size: 13px; line-height: 1.75; }
.payment-state { text-align: center; }
.countdown { margin: 15px; color: var(--text-strong); font-size: 43px; font-weight: 950; }
.install-body { min-height: 100vh; padding: 35px; display: grid; place-items: center; }
.install-shell { width: min(920px, 100%); }
.install-shell > .brand-lockup { margin-bottom: 22px; }
.install-card { padding: 38px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.install-card h1 { margin: 10px 0; color: var(--text-strong); font-size: 42px; letter-spacing: -.045em; }
.install-card .lead { color: var(--muted); }
.install-form { margin-top: 25px; }
.install-form h2 { grid-column: 1 / -1; margin: 10px 0 0; color: var(--text-strong); font-size: 18px; }
.check-stack { display: flex; flex-direction: column; gap: 12px; }
.secret-box { margin: 17px 0; padding: 18px; overflow-wrap: anywhere; border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--input); }

/* Toast */
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 500; display: flex; flex-direction: column; gap: 9px; }
.toast { max-width: 360px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); box-shadow: var(--shadow); font-size: 12px; animation: toastIn .25s ease; }
.toast.error { border-color: rgba(227, 19, 27, .36); }
.toast.success { border-color: rgba(34, 201, 120, .32); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* Responsividade */
@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .ifood-winner-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { gap: 35px; }
  .admin-content { padding-left: 28px; padding-right: 28px; }
}

@media (max-width: 980px) {
  .header-inner { min-height: 70px; }
  .menu-toggle { display: inline-grid; }
  .main-nav { position: fixed; inset: 78px 16px auto; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 16px; display: none; flex-direction: column; align-items: stretch; background: var(--surface); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; }
  .header-account { margin-left: auto; }
  .header-account .user-chip span, .header-account .text-button { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-visual { min-height: 470px; }
  .experience-grid, .split-panels, .admin-grid, .form-stage { grid-template-columns: 1fr; }
  .admin-grid .wide { grid-column: auto; }
  .admin-shell { display: block; }
  .admin-content { padding: 102px 22px 60px; }
  .admin-mobile-bar { height: 72px; padding: 0 18px; position: fixed; inset: 0 0 auto 0; z-index: 105; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: var(--surface-glass); backdrop-filter: blur(20px); }
  .admin-mobile-actions { display: flex; gap: 8px; }
  .admin-sidebar { transform: translateX(-105%); transition: transform .22s ease; box-shadow: 30px 0 80px rgba(0, 0, 0, .45); }
  .admin-sidebar.open { transform: translateX(0); }
  .sidebar-close { display: inline-grid; }
  .admin-title { align-items: flex-start; flex-direction: column; }
  .page-head-actions, .search-form { width: 100%; }
  .ifood-winner-grid { grid-template-columns: repeat(2, 1fr); }
  .campaign-builder { margin: 0; }
}

@media (max-width: 650px) {
  .site-header { min-height: 66px; }
  .header-inner { width: calc(100% - 24px); min-height: 66px; gap: 8px; }
  .brand-copy { display: none; }
  .main-nav { top: 70px; }
  .header-account .theme-toggle { width: 38px; height: 38px; }
  .login-button { padding-inline: 11px; }
  .site-main, .site-footer { width: min(100% - 24px, var(--max)); }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .hero { padding: 52px 0; }
  .hero-copy h1 { font-size: 51px; }
  .hero-copy > p { font-size: 14px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 380px; }
  .hero-red-orbit { width: 310px; height: 310px; }
  .hero-logo { width: 205px; height: 205px; }
  .hero-logo span { font-size: 112px; }
  .hero-logo small { bottom: 28px; }
  .hero-float { min-width: 135px; padding: 10px; }
  .hero-float-a { top: 20px; left: 0; }
  .hero-float-b { right: 0; top: 155px; }
  .hero-float-c { left: 15px; bottom: 20px; }
  .experience-card { min-height: 410px; padding: 24px; }
  .experience-card h3 { font-size: 29px; }
  .experience-meta { gap: 20px; }
  .how-grid, .metric-grid, .user-metrics { grid-template-columns: 1fr; }
  .page-hero { align-items: flex-start; flex-direction: column; }
  .page-hero h1 { font-size: 48px; }
  .prize-orb { width: 170px; height: 170px; }
  .battle-summary { width: 100%; justify-content: space-between; gap: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .panel, .closed-state, .success-ticket, .legal-page { padding: 21px; border-radius: 20px; }
  .admin-content { padding: 94px 13px 45px; }
  .admin-page-head h1 { font-size: 40px; }
  .dashboard-metrics .metric-card { min-height: 104px; }
  .ifood-winner-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .battle-rules-mini { grid-template-columns: 1fr; }
  .draw-card { grid-template-columns: 1fr; }
  .draw-profile > img { width: 85px; height: 85px; }
  .rank-row { grid-template-columns: 34px minmax(0, 1fr); }
  .rank-value { grid-column: 2; }
  .inline-form, .draw-actions, .builder-actions { align-items: stretch; flex-direction: column; }
  .inline-form input, .inline-form select { min-width: 0; }
  .modal-layer { padding: 10px; }
  .admin-draw-modal { padding: 20px 12px; }
  .admin-case-window { height: 190px; }
  .admin-case-item { width: 140px; height: 145px; }
  .admin-case-item img { width: 60px; height: 60px; }
  .admin-case-result { grid-template-columns: 50px 1fr; }
  .admin-case-result .button { grid-column: 1 / -1; }
  .case-opening { padding: 16px; }
  .case-opening-head h2 { font-size: 28px; }
  .case-window { height: 260px; }
  .case-item { width: 175px; height: 215px; }
  .case-window::before, .case-window::after { width: 70px; }
  .participant-reveal-main { align-items: center; flex-direction: column; text-align: center; }
  .participant-reveal-copy h2 { font-size: 34px; }
}

.prize-winners {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, var(--red) 48%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--red) 10%, transparent);
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Acesso sem página inicial */
.login-only-page { min-height: 100vh; }
.login-only-page .site-main { min-height: 100vh; padding: 24px; display: grid; place-items: center; }
.access-gate { width: min(560px, 100%); }
.access-card { padding: 48px; border: 1px solid var(--line); border-radius: 30px; display: grid; justify-items: center; gap: 18px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.access-card h1 { margin: 0; color: var(--text-strong); font-size: clamp(34px, 7vw, 54px); letter-spacing: -.05em; }
.access-card p { max-width: 430px; margin: 0 0 8px; color: var(--muted); line-height: 1.7; }
.access-card .brand-mark.xl { width: 82px; height: 82px; font-size: 44px; }
.access-links { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.access-links a { color: var(--text); }

/* Resultado do iFood exibido diretamente no painel do streamer */
.admin-winners-modal { width: min(1180px, 94vw); max-height: 92vh; padding: 32px; overflow: auto; position: relative; border: 1px solid rgba(255, 48, 56, .38); border-radius: 28px; background: var(--surface); box-shadow: 0 36px 120px rgba(0, 0, 0, .5); }
.admin-winners-modal > header { margin-bottom: 24px; text-align: center; }
.admin-winners-modal > header span { color: var(--red-2); font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.admin-winners-modal > header h2 { margin: 5px 0; color: var(--text-strong); font-size: clamp(30px, 5vw, 48px); }
.admin-winners-modal > header p { margin: 0; color: var(--muted); }
.admin-winner-grid { margin-bottom: 24px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.admin-winner-card { min-height: 220px; padding: 18px; position: relative; border: 1px solid var(--line); border-radius: 18px; display: grid; justify-items: center; align-content: center; gap: 5px; background: var(--surface-2); text-align: center; animation: winnerCardIn .45s ease both; }
.admin-winner-card > b { position: absolute; top: 12px; left: 12px; color: var(--red-2); }
.admin-winner-card img { width: 76px; height: 76px; border: 3px solid rgba(255, 48, 56, .45); border-radius: 50%; object-fit: cover; }
.admin-winner-card strong { max-width: 100%; overflow: hidden; color: var(--text-strong); text-overflow: ellipsis; white-space: nowrap; }
.admin-winner-card small, .admin-winner-card span { color: var(--muted); font-size: 10px; }
.admin-winner-card em { color: var(--red-2); font-size: 20px; font-style: normal; font-weight: 900; }
@keyframes winnerCardIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@media (max-width: 1050px) { .admin-winner-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 650px) {
  .access-card { padding: 32px 22px; }
  .admin-winners-modal { padding: 22px 14px; }
  .admin-winner-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-winner-card { min-height: 185px; padding: 12px; }
}
