:root {
  --bg: #06110d;
  --bg2: #0b1f17;
  --panel: rgba(16, 38, 29, 0.78);
  --panel-2: rgba(24, 54, 42, 0.9);
  --line: rgba(198, 255, 61, 0.14);
  --text: #eefcf2;
  --muted: #8fb5a2;
  --lime: #c6ff3d;
  --lime-d: #9fd11a;
  --gold: #ffd166;
  --pink: #ff4d6d;
  --cyan: #38bdf8;
  --violet: #a78bfa;
  --r: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --ui: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  overflow-x: hidden;
  overscroll-behavior: none;
}
/* estádio à noite: refletores + listras do gramado */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 40% at 15% -5%, rgba(198, 255, 61, 0.16), transparent 70%),
    radial-gradient(60% 40% at 85% -5%, rgba(56, 189, 248, 0.14), transparent 70%),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.018) 0 64px, transparent 64px 128px),
    linear-gradient(180deg, #0a1d15 0%, #06110d 60%, #040c09 100%);
}
body::after {
  content: '';
  position: fixed; left: 50%; top: 40%; width: 520px; height: 520px; z-index: -1;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
  pointer-events: none;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; touch-action: manipulation; }
input { font: inherit; color: inherit; }
.hidden { display: none !important; }

#app { max-width: 560px; margin: 0 auto; min-height: 100%; padding: 14px 16px calc(24px + var(--safe-b)); position: relative; }
@media (min-width: 900px) {
  #app.wide { max-width: 1100px; }
}

/* ---------- tipografia ---------- */
.logo { font-family: var(--display); letter-spacing: 1px; line-height: 0.9; text-transform: uppercase; }
.logo .a { color: var(--text); }
.logo .b { color: var(--lime); text-shadow: 0 0 24px rgba(198, 255, 61, 0.45); }
h2 { font-family: var(--display); font-weight: 400; letter-spacing: 0.5px; text-transform: uppercase; margin: 0 0 10px; font-size: 26px; }
h3 { font-family: var(--ui); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: 14px; color: var(--muted); margin: 18px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.money { font-family: var(--display); color: var(--gold); letter-spacing: 0.5px; }

/* ---------- componentes ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 12px 18px; border-radius: 16px;
  font-family: var(--ui); font-weight: 700; font-size: 20px; letter-spacing: 1px; text-transform: uppercase;
  background: var(--panel-2); border: 1px solid var(--line);
  transition: transform 0.08s ease, filter 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; pointer-events: none; }
.btn.primary { background: linear-gradient(180deg, #d6ff5c, var(--lime-d)); color: #0b1a05; border: 0; box-shadow: 0 6px 0 #6f9410, 0 12px 26px rgba(198, 255, 61, 0.25); }
.btn.primary:active { transform: translateY(4px); box-shadow: 0 2px 0 #6f9410; }
.btn.pink { background: linear-gradient(180deg, #ff6b85, #e23357); color: #fff; border: 0; box-shadow: 0 6px 0 #9c1732; }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 42px; font-size: 16px; border-radius: 12px; padding: 8px 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.row > * { flex: 1; }
.stack > * + * { margin-top: 12px; }

.seg { display: flex; background: rgba(0,0,0,0.3); border-radius: 14px; padding: 4px; gap: 4px; border: 1px solid var(--line); }
.seg button { flex: 1; min-height: 44px; border-radius: 10px; font-family: var(--ui); font-weight: 700; font-size: 17px; color: var(--muted); padding: 4px 6px; line-height: 1.05; }
.seg button small { display: block; font-size: 11px; font-weight: 600; opacity: 0.8; letter-spacing: 0.5px; }
.seg button.on { background: var(--lime); color: #0b1a05; box-shadow: 0 4px 14px rgba(198,255,61,0.3); }
.seg.ro button { pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,0.25); font-family: var(--ui); font-weight: 700; font-size: 16px; color: var(--muted); }
.chip.on { background: var(--lime); color: #0b1a05; border-color: transparent; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 48px; height: 48px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); font-size: 26px; font-weight: 700; }
.stepper .v { font-family: var(--display); font-size: 34px; min-width: 50px; text-align: center; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.switch { width: 58px; height: 34px; border-radius: 99px; background: rgba(255,255,255,0.12); position: relative; flex: none; transition: background 0.2s; }
.switch::after { content: ''; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.switch.on { background: var(--lime); }
.switch.on::after { transform: translateX(24px); background: #0b1a05; }
.field { width: 100%; min-height: 54px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,0.35); padding: 10px 14px; font-size: 20px; font-family: var(--ui); font-weight: 600; outline: none; }
.field:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(198,255,61,0.18); }
.code-field { text-transform: uppercase; letter-spacing: 10px; text-align: center; font-family: var(--display); font-size: 34px; }

/* ---------- home ---------- */
.home-hero { text-align: center; padding: 22px 0 8px; }
.home-hero .logo { font-size: clamp(58px, 17vw, 96px); }
.home-hero .tag { font-family: var(--ui); font-size: 18px; color: var(--muted); letter-spacing: 1px; margin-top: 10px; }
.ball { display: inline-block; font-size: 44px; animation: bounce 1.6s cubic-bezier(.3,0,.5,1) infinite; filter: drop-shadow(0 8px 6px rgba(0,0,0,0.5)); }
@keyframes bounce { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-26px) rotate(180deg); } }
.hero-cards { position: relative; height: 150px; margin: 8px auto 4px; width: 280px; }
.hero-cards .mini-fut { position: absolute; left: 50%; top: 0; transform-origin: 50% 120%; }
.hero-cards .mini-fut:nth-child(1) { transform: translateX(-50%) rotate(-16deg); animation: fan1 3s ease-in-out infinite; }
.hero-cards .mini-fut:nth-child(2) { transform: translateX(-50%) rotate(0); z-index: 2; animation: fan2 3s ease-in-out infinite; }
.hero-cards .mini-fut:nth-child(3) { transform: translateX(-50%) rotate(16deg); animation: fan3 3s ease-in-out infinite; }
@keyframes fan1 { 50% { transform: translateX(-50%) rotate(-22deg); } }
@keyframes fan2 { 50% { transform: translateX(-50%) translateY(-8px); } }
@keyframes fan3 { 50% { transform: translateX(-50%) rotate(22deg); } }
.mini-fut { width: 92px; height: 128px; border-radius: 12px 12px 30px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--display); font-size: 40px; box-shadow: var(--shadow); }
.mini-fut.gold { background: linear-gradient(160deg, #fff1b8, #e3b341 55%, #a67c12); color: #3b2a00; }
.mini-fut.myst { background: linear-gradient(160deg, #6d5bd0, #1f7a8c 60%, #0f2e3a); color: #fff; }
.mini-fut.lime { background: linear-gradient(160deg, #eaff9d, #9fd11a 60%, #496b06); color: #172600; }
.mini-fut span { font-family: var(--ui); font-size: 13px; letter-spacing: 1px; font-weight: 700; }
.avatar-pick { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.avatar-pick button { aspect-ratio: 1; border-radius: 12px; font-size: 24px; background: rgba(0,0,0,0.25); border: 1px solid transparent; }
.avatar-pick button.on { border-color: var(--lime); background: rgba(198,255,61,0.15); transform: scale(1.08); }
details.how { margin-top: 16px; }
details.how summary { font-family: var(--ui); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; list-style: none; }
details.how summary::after { content: ' ▾'; color: var(--lime); }
details.how ol { padding-left: 20px; line-height: 1.5; color: #cfe6d9; }
details.how li { margin-bottom: 6px; }

/* ---------- lobby ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); font-size: 20px; flex: none; display: grid; place-items: center; }
.room-code { text-align: center; }
.room-code .code { font-family: var(--display); font-size: 64px; letter-spacing: 12px; color: var(--lime); line-height: 1; text-shadow: 0 0 30px rgba(198,255,61,0.4); padding-left: 12px; }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.member { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(0,0,0,0.25); border: 1px solid var(--line); position: relative; animation: pop 0.35s cubic-bezier(.2,1.6,.4,1); }
.member.empty { opacity: 0.45; border-style: dashed; animation: none; }
.member .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; flex: none; border: 2px solid var(--c, var(--lime)); background: rgba(0,0,0,0.3); }
.member .nm { font-family: var(--ui); font-weight: 700; font-size: 18px; line-height: 1.05; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member .sub { font-size: 12px; color: var(--muted); }
.member .x { position: absolute; right: 4px; top: 4px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,77,109,0.2); color: var(--pink); font-size: 14px; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.setting { margin-top: 14px; }
.setting label { display: block; font-family: var(--ui); font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.local-row { display: flex; gap: 8px; align-items: center; }
.local-row .field { min-height: 48px; font-size: 18px; }
.local-row .av { width: 48px; height: 48px; border-radius: 14px; font-size: 22px; background: rgba(0,0,0,0.3); border: 2px solid var(--c); flex: none; }
.sticky-cta { position: sticky; bottom: 0; margin: 18px -16px 0; padding: 22px 16px calc(12px + var(--safe-b)); z-index: 5; background: linear-gradient(180deg, rgba(6,17,13,0) 0%, rgba(6,17,13,0.92) 30%, #06110d 100%); }
.sticky-cta p { margin: 8px 0 0; }
.end-cta { margin-top: 22px; }

/* ---------- draft ---------- */
.d-top { display: flex; align-items: center; gap: 10px; }
.d-top .grp { font-family: var(--display); font-size: 22px; text-transform: uppercase; line-height: 1; }
.d-top .lot { font-family: var(--ui); font-size: 14px; color: var(--muted); letter-spacing: 1px; font-weight: 700; }
.progress { height: 6px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; margin: 8px 0 4px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), var(--cyan)); border-radius: 99px; transition: width 0.6s ease; }
.groups-line { display: flex; gap: 4px; margin-top: 4px; }
.groups-line span { flex: 1; font-family: var(--ui); font-size: 11px; text-align: center; color: var(--muted); padding: 3px 0; border-radius: 6px; background: rgba(255,255,255,0.04); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; overflow: hidden; }
.groups-line span.on { background: rgba(198,255,61,0.18); color: var(--lime); font-weight: 700; }
.groups-line span.done { color: #4f6f60; text-decoration: line-through; }

.stage { display: flex; flex-direction: column; align-items: center; padding: 10px 0 4px; position: relative; }

/* carta estilo FUT */
.fut-wrap { perspective: 1000px; }
.fut {
  --c1: #fff1b8; --c2: #e3b341; --c3: #8a6410; --ink: #2d2000;
  width: 210px; height: 292px; position: relative; border-radius: 18px 18px 46px 46px;
  background: linear-gradient(155deg, var(--c1) 0%, var(--c2) 48%, var(--c3) 100%);
  color: var(--ink); box-shadow: 0 18px 40px rgba(0,0,0,0.55), inset 0 0 0 2px rgba(255,255,255,0.35), inset 0 0 0 6px rgba(0,0,0,0.08);
  overflow: hidden; transform-style: preserve-3d;
}
.fut::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.55) 45%, transparent 60%); transform: translateX(-120%); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 60%, 100% { transform: translateX(120%); } }
.fut.flip-in { animation: flipIn 0.9s cubic-bezier(.2,.9,.3,1.2); }
@keyframes flipIn { 0% { transform: rotateY(180deg) scale(0.4); opacity: 0; filter: brightness(3); } 60% { transform: rotateY(-12deg) scale(1.06); opacity: 1; filter: brightness(1.4); } 100% { transform: rotateY(0) scale(1); filter: none; } }
.fut.t-myst { --c1: #b8a6ff; --c2: #4f46e5; --c3: #0e3a4a; --ink: #fff; }
.fut.t-icon { --c1: #fffbe8; --c2: #f5e7b0; --c3: #b69545; --ink: #2d2000; }
.fut.t-gold { --c1: #fff1b8; --c2: #e3b341; --c3: #8a6410; --ink: #2d2000; }
.fut.t-silver { --c1: #ffffff; --c2: #c5ced6; --c3: #6b7885; --ink: #1d242b; }
.fut.t-bronze { --c1: #f3c9a4; --c2: #b8743c; --c3: #5e3515; --ink: #2a1405; }
.fut .ovr { position: absolute; left: 16px; top: 16px; text-align: center; line-height: 0.85; }
.fut .ovr b { display: block; font-family: var(--display); font-size: 46px; font-weight: 400; line-height: 1.05; margin-bottom: 2px; }
.fut .ovr i { font-style: normal; font-family: var(--ui); font-weight: 800; font-size: 17px; letter-spacing: 1px; }
.fut .ovr .q { animation: qpulse 1.2s ease-in-out infinite; display: inline-block; }
@keyframes qpulse { 50% { transform: scale(1.15); text-shadow: 0 0 16px rgba(255,255,255,0.8); } }
.fut .flag { position: absolute; left: 18px; top: 104px; width: 34px; height: 23px; object-fit: cover; border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.fut .era { position: absolute; left: 14px; top: 134px; width: 42px; text-align: center; font-family: var(--ui); font-weight: 800; font-size: 13px; }
.fut .mono { position: absolute; right: 16px; top: 22px; width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 50px; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.45), rgba(0,0,0,0.12)); border: 2px solid rgba(255,255,255,0.35); }
.fut .name { position: absolute; left: 10px; right: 10px; top: 162px; text-align: center; font-family: var(--display); font-size: 25px; line-height: 1.02; text-transform: uppercase; }
.fut .team { position: absolute; left: 12px; right: 12px; bottom: 58px; text-align: center; font-family: var(--ui); font-weight: 700; font-size: 15px; opacity: 0.85; border-top: 1px solid currentColor; padding-top: 6px; }
.fut .pos { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); font-family: var(--ui); font-weight: 800; font-size: 15px; letter-spacing: 2px; padding: 3px 12px; border-radius: 99px; background: rgba(0,0,0,0.18); white-space: nowrap; }
.fut.small { width: 150px; height: 208px; border-radius: 14px 14px 34px 34px; }
.fut.small .ovr { left: 11px; top: 10px; } .fut.small .ovr b { font-size: 34px; } .fut.small .ovr i { font-size: 13px; }
.fut.small .flag { left: 12px; top: 74px; width: 26px; height: 17px; } .fut.small .era { left: 7px; top: 95px; font-size: 11px; width: 38px; }
.fut.small .mono { right: 10px; top: 14px; width: 84px; height: 84px; font-size: 36px; }
.fut.small .name { top: 114px; font-size: 18px; } .fut.small .team { bottom: 40px; font-size: 12px; padding-top: 4px; } .fut.small .pos { bottom: 12px; font-size: 12px; }

.stage-msg { font-family: var(--ui); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: 1px; text-align: center; margin-top: 12px; min-height: 26px; }
.stamp { position: absolute; top: 118px; left: 50%; z-index: 6; transform: translateX(-50%) rotate(-12deg); font-family: var(--display); font-size: 44px; padding: 4px 18px; border: 5px solid currentColor; border-radius: 12px; color: var(--pink); background: rgba(6,17,13,0.8); text-transform: uppercase; animation: stamp 0.45s cubic-bezier(.2,1.6,.4,1) both; white-space: nowrap; letter-spacing: 1px; }
.stamp.lime { color: var(--lime); }
.stamp.gold { color: var(--gold); }
@keyframes stamp { from { transform: translateX(-50%) rotate(-12deg) scale(3); opacity: 0; } to { transform: translateX(-50%) rotate(-12deg) scale(1); opacity: 1; } }

/* timer ring */
.timer { position: absolute; right: 0; top: 6px; width: 62px; height: 62px; }
.timer svg { transform: rotate(-90deg); }
.timer .tv { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 22px; }
.timer.hot .tv { color: var(--pink); animation: beat 0.5s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(1.2); } }

/* painel de lance */
.bidbox { text-align: center; }
.bid-display { font-family: var(--display); font-size: 76px; line-height: 1; color: var(--gold); text-shadow: 0 0 30px rgba(255,209,102,0.35); }
.bid-display small { font-size: 22px; margin-left: 4px; }
.bid-limits { display: flex; justify-content: space-between; font-family: var(--ui); font-weight: 700; color: var(--muted); font-size: 14px; margin: 2px 4px 6px; text-transform: uppercase; letter-spacing: 0.5px; }
input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--gold) var(--p, 0%), rgba(255,255,255,0.1) var(--p, 0%)); outline: none; margin: 8px 0 12px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 4px solid var(--gold); box-shadow: 0 4px 12px rgba(0,0,0,0.5); }
input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 4px solid var(--gold); }
.quick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 12px; }
.quick button { min-height: 46px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); font-family: var(--ui); font-weight: 800; font-size: 17px; }
.quick button.neg { color: var(--pink); }
.quick button.pos { color: var(--lime); }
.sealed { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(0,0,0,0.3); border: 1px dashed rgba(255,209,102,0.5); font-family: var(--ui); font-weight: 700; font-size: 20px; }
.sealed .lock { font-size: 30px; animation: wobble 1.5s ease-in-out infinite; }
@keyframes wobble { 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
.who { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.who .p { display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 99px; background: rgba(0,0,0,0.3); border: 1px solid var(--line); font-family: var(--ui); font-weight: 700; font-size: 15px; }
.who .p .d { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; border: 2px solid var(--c); }
.who .p.done { border-color: var(--lime); }
.who .p.done::after { content: '✓'; color: var(--lime); }
.who .p.wait::after { content: '…'; color: var(--muted); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

/* lances revelados */
.reveal-list { display: flex; flex-direction: column; gap: 6px; }
.rv { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(0,0,0,0.28); position: relative; overflow: hidden; animation: slideIn 0.4s both; }
.rv .bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c); opacity: 0.16; transform-origin: left; animation: grow 0.8s ease-out both; }
.rv .av { font-size: 20px; z-index: 1; text-align: center; }
.rv .nm { font-family: var(--ui); font-weight: 700; font-size: 18px; z-index: 1; }
.rv .val { font-family: var(--display); font-size: 24px; color: var(--gold); z-index: 1; }
.rv.win { outline: 2px solid var(--lime); }
.rv.win .nm::after { content: ' 🏆'; }
.rv.tie { outline: 2px solid var(--pink); }
.rv .to { font-size: 11px; color: var(--muted); margin-left: 6px; font-weight: 600; }
@keyframes slideIn { from { transform: translateX(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes grow { from { transform: scaleX(0); } }

/* times (rodapé) */
.teams { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.teams::-webkit-scrollbar { display: none; }
.tm { flex: none; width: 128px; padding: 10px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); scroll-snap-align: start; text-align: left; position: relative; }
.tm.me { border-color: var(--c); box-shadow: 0 0 0 1px var(--c) inset; }
.tm.off { opacity: 0.55; }
.tm .h { display: flex; align-items: center; gap: 6px; }
.tm .h .e { font-size: 18px; }
.tm .h .n { font-family: var(--ui); font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm .b { font-family: var(--display); font-size: 22px; color: var(--gold); margin-top: 2px; }
.tm .b small { display: block; font-size: 13px; color: var(--muted); font-family: var(--ui); margin: -2px 0 0; }
.tm .dots { display: flex; gap: 3px; margin-top: 6px; flex-wrap: wrap; }
.tm .dots i { width: 12px; height: 12px; border-radius: 4px; background: rgba(255,255,255,0.1); }
.tm .dots i.f { background: var(--c); }
.tm .flash { animation: flash 1s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 6px var(--gold); } }
.tm .btn-dot { position: absolute; right: 8px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* modal / folha */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade 0.2s; }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: #0c2119; border-radius: 24px 24px 0 0; padding: 18px 16px calc(20px + var(--safe-b)); border-top: 1px solid var(--line); animation: up 0.3s cubic-bezier(.2,.9,.3,1); }
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: 24px; } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40%); } }

/* campo */
.pitch { position: relative; border-radius: 18px; padding: 14px 6px; background: repeating-linear-gradient(180deg, #1c6b3f 0 38px, #1a6139 38px 76px); border: 2px solid rgba(255,255,255,0.35); overflow: hidden; }
.pitch::before { content: ''; position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; transform: translate(-50%, -50%); }
.pitch::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid rgba(255,255,255,0.3); }
.pline { display: flex; justify-content: space-around; position: relative; z-index: 1; margin: 6px 0; }
.pp { width: 84px; text-align: center; animation: pop 0.4s both; }
.pp .ci { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 20px; background: linear-gradient(160deg, #fff1b8, #c99a2e); color: #2d2000; border: 3px solid #fff; position: relative; box-shadow: 0 4px 10px rgba(0,0,0,0.4); }
.pp.empty .ci { background: rgba(0,0,0,0.25); border: 2px dashed rgba(255,255,255,0.4); color: rgba(255,255,255,0.5); }
.pp .ci .o { position: absolute; right: -8px; top: -8px; background: #0b1a05; color: var(--lime); border-radius: 8px; font-size: 14px; padding: 1px 5px; border: 1px solid var(--lime); }
.pp .nm { font-family: var(--ui); font-weight: 700; font-size: 13px; line-height: 1.05; margin-top: 4px; text-shadow: 0 1px 3px rgba(0,0,0,0.8); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pp .pr { font-family: var(--ui); font-size: 12px; color: var(--gold); font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.pp .fl { width: 16px; height: 11px; vertical-align: -1px; border-radius: 2px; margin-right: 3px; }

/* resultados */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; margin: 10px 0 18px; height: 230px; }
.pod { flex: 1; max-width: 130px; text-align: center; }
.pod .av { font-size: 38px; animation: bounceIn 0.8s cubic-bezier(.2,1.6,.4,1) both; }
.pod .nm { font-family: var(--ui); font-weight: 800; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .sc { font-family: var(--display); font-size: 22px; color: var(--lime); }
.pod .blk { border-radius: 12px 12px 0 0; display: grid; place-items: center; font-family: var(--display); font-size: 40px; color: rgba(0,0,0,0.5); transform-origin: bottom; animation: rise 0.9s cubic-bezier(.2,.9,.3,1) both; }
.pod.p1 .blk { height: 120px; background: linear-gradient(180deg, #ffe38a, #d4a017); animation-delay: 1.2s; }
.pod.p2 .blk { height: 86px; background: linear-gradient(180deg, #f1f5f9, #94a3b8); animation-delay: 0.7s; }
.pod.p3 .blk { height: 60px; background: linear-gradient(180deg, #f3c9a4, #a0612d); animation-delay: 0.2s; }
.pod.p1 .av { animation-delay: 1.6s; } .pod.p2 .av { animation-delay: 1.1s; } .pod.p3 .av { animation-delay: 0.6s; }
@keyframes rise { from { transform: scaleY(0); } }
@keyframes bounceIn { from { transform: translateY(-80px) scale(0.3); opacity: 0; } }
.rank { display: grid; grid-template-columns: 30px 34px 1fr auto; gap: 8px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(0,0,0,0.25); border: 1px solid var(--line); margin-bottom: 8px; cursor: pointer; animation: slideIn 0.4s both; }
.rank .pos { font-family: var(--display); font-size: 24px; color: var(--muted); }
.rank.r1 .pos { color: var(--gold); }
.rank .e { font-size: 24px; }
.rank .n { font-family: var(--ui); font-weight: 700; font-size: 19px; line-height: 1.1; }
.rank .n small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.rank .s { text-align: right; font-family: var(--display); font-size: 26px; color: var(--lime); line-height: 1; }
.rank .s small { display: block; font-family: var(--ui); font-size: 12px; color: var(--muted); }
.awards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.award { padding: 12px; border-radius: 14px; background: rgba(0,0,0,0.25); border: 1px solid var(--line); }
.award .t { font-family: var(--ui); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); }
.award .p { font-family: var(--ui); font-weight: 700; font-size: 17px; line-height: 1.1; margin-top: 4px; }
.award .w { font-size: 13px; color: var(--muted); margin-top: 2px; }
.team-block { margin-top: 16px; }
.team-block .hdr { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.team-block .hdr .e { font-size: 26px; }
.team-block .hdr .n { font-family: var(--display); font-size: 22px; text-transform: uppercase; flex: 1; }
.team-block .hdr .s { font-family: var(--display); font-size: 26px; color: var(--lime); }

/* reações */
.reacts { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.reacts button { width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,0.3); border: 1px solid var(--line); font-size: 22px; }
.reacts button:active { transform: scale(1.3); }
.float-react { position: fixed; bottom: 90px; font-size: 38px; z-index: 60; pointer-events: none; animation: floatUp 2.4s ease-out forwards; }
.float-react small { display: block; font-family: var(--ui); font-size: 12px; font-weight: 700; text-align: center; background: rgba(0,0,0,0.6); border-radius: 6px; padding: 0 4px; }
@keyframes floatUp { 0% { transform: translateY(0) scale(0.5); opacity: 0; } 15% { transform: translateY(-30px) scale(1.2); opacity: 1; } 100% { transform: translateY(-340px) scale(1); opacity: 0; } }

/* troca de aparelho (modo local) */
.handoff { text-align: center; padding: 28px 16px; }
.handoff .big { font-size: 72px; animation: bounceIn 0.6s cubic-bezier(.2,1.6,.4,1); }
.handoff .who-now { font-family: var(--display); font-size: 40px; text-transform: uppercase; line-height: 1.05; margin: 8px 0; color: var(--c, var(--lime)); }

/* toast */
#toast { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: #1b3b2e; border: 1px solid var(--line); border-left: 4px solid var(--lime); padding: 12px 14px; border-radius: 12px; font-family: var(--ui); font-weight: 700; font-size: 17px; box-shadow: var(--shadow); animation: toastIn 0.3s ease-out; }
.toast.err { border-left-color: var(--pink); }
@keyframes toastIn { from { transform: translateY(-20px); opacity: 0; } }

/* confete */
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }

.conn { position: fixed; bottom: calc(8px + var(--safe-b)); left: 50%; transform: translateX(-50%); background: var(--pink); color: #fff; padding: 6px 14px; border-radius: 99px; font-family: var(--ui); font-weight: 700; z-index: 80; font-size: 14px; }

/* desktop / ipad: palco e times lado a lado */
@media (min-width: 900px) {
  .draft-grid { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; }
  .draft-grid .teams { flex-direction: column; overflow: visible; }
  .draft-grid .tm { width: 100%; }
  .fut { width: 240px; height: 334px; }
  .fut .mono { width: 136px; height: 136px; font-size: 58px; }
  .fut .name { top: 184px; font-size: 28px; }
  .fut .flag { top: 118px; } .fut .era { top: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* ícone da boleta (tíquete dourado) */
.bol { display: inline-block; width: 1.25em; height: 0.8em; margin-left: 0.14em; vertical-align: -0.04em; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 16'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='%23fff4b8'/><stop offset='.55' stop-color='%23f5c542'/><stop offset='1' stop-color='%23c98a0a'/></linearGradient></defs><path d='M3 .8h20a2.2 2.2 0 0 1 2.2 2.2v2.6a2.4 2.4 0 0 0 0 4.8V13a2.2 2.2 0 0 1-2.2 2.2H3A2.2 2.2 0 0 1 .8 13v-2.6a2.4 2.4 0 0 0 0-4.8V3A2.2 2.2 0 0 1 3 .8z' fill='url(%23g)' stroke='%237a5200' stroke-width='.8'/><path d='M8.6 2.6v10.8' stroke='%237a5200' stroke-width='.9' stroke-dasharray='1.4 1.3'/><circle cx='4.6' cy='8' r='1.5' fill='%237a5200'/><text x='16.8' y='11.9' font-family='Arial Black,Arial,sans-serif' font-weight='900' font-size='10.5' text-anchor='middle' fill='%235a3d00'>B</text></svg>") center / contain no-repeat; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.35)); }
.bid-display .bol { width: 0.55em; height: 0.36em; vertical-align: 0.12em; }
/* histórico de lances e empate */
.rh-title { font-family: var(--ui); font-weight: 800; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin: 12px 2px 6px; }
.rh-wrap { margin-top: 10px; padding-top: 4px; border-top: 1px dashed rgba(255,255,255,0.12); }
.rh .rv { padding: 5px 10px; } .rh .rv .nm { font-size: 15px; } .rh .rv .val { font-size: 18px; } .rh .rv .av { font-size: 16px; }
.rv.still, .rv.still .bar { animation: none; }
.rh .rv.tie { outline-width: 1px; }
.tie-banner { text-align: center; padding: 12px 10px 14px; border-radius: 16px; background: linear-gradient(180deg, rgba(255,77,109,0.22), rgba(255,77,109,0.06)); border: 2px solid var(--pink); animation: tiePulse 1s ease-in-out 3; }
.tie-banner .tb-big { font-family: var(--display); font-size: 34px; color: var(--pink); text-transform: uppercase; line-height: 1.1; }
.tie-banner .tb-sub { font-family: var(--ui); font-weight: 800; font-size: 22px; margin-top: 2px; }
.tie-banner .tb-rule { font-size: 15px; margin-top: 6px; color: #ffe1e7; }
.tie-banner .tb-out { font-size: 13px; margin-top: 6px; color: var(--muted); }
@keyframes tiePulse { 50% { box-shadow: 0 0 0 6px rgba(255,77,109,0.25); } }
