/* ============ TrucoRaiz — identidade visual ============ */
:root {
  --bg: #193d54;
  --bg2: #224c65;
  --panel: #2c5975;
  --panel2: #356889;
  --line: #4687aa;
  --line2: #323843;
  --text: #f3f5f8;
  --muted: #8c95a3;
  --blue: #8db4c6;
  --blue2: #62a5c6;
  --blue-ink: #3c94be;
  --blue-soft: rgba(141, 180, 198, .12);
  --ok: #7ee2b8;
  --bad: #ff8a8a;
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bebas Neue', 'Oswald', Impact, 'Arial Narrow', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--blue); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.blue { color: var(--blue); }

/* ---------- botões ---------- */
.btn {
  border: 1px solid var(--line2); background: var(--panel2); color: var(--text);
  padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 14px;
  transition: transform .08s, background .15s, border-color .15s, box-shadow .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:hover { border-color: var(--blue); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary { background: var(--blue); color: #061019; border-color: var(--blue); }
.btn.primary:hover { background: #9cc6da; box-shadow: 0 0 0 4px var(--blue-soft); }
.btn.white { background: #fff; color: #000; border-color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger { border-color: #4a2a2e; color: var(--bad); background: transparent; }
.btn.big { padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }

input, select {
  width: 100%; background: var(--bg2); border: 1px solid var(--line2); color: var(--text);
  padding: 12px 14px; border-radius: 10px; font-size: 15px; outline: none; font-family: inherit;
}
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
label { display: block; font-size: 12px; color: var(--muted); margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- marca ---------- */
.brand { color: var(--text); display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 28px; letter-spacing: .04em; line-height: 1; }
.brand img { width: 38px; height: 46px; }
.brand b { color: var(--blue); font-weight: 400; }

/* ---------- topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 22px;
  padding: 10px 24px; background: rgba(25, 61, 84, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topbar nav { display: flex; gap: 4px; }
.topbar nav a { color: var(--muted); padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.topbar nav a:hover { color: var(--text); }
.topbar nav a.active { color: var(--text); background: var(--panel2); }
.topbar .spacer { flex: 1; }
.wallet {
  display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line);
  padding: 6px 6px 6px 14px; border-radius: 12px;
}
.wallet .amount { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.wallet .label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.userchip { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px; border-radius: 10px; }
.userchip:hover { background: var(--panel); }

/* ---------- avatar ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; position: relative; }
.avatar svg { width: 55%; height: 55%; }
.avatar.lg { width: 64px; height: 64px; }
.avatar.xl { width: 84px; height: 84px; }
.avatar .bot-tag { position: absolute; bottom: -4px; right: -6px; background: #fff; color: #000; font-size: 9px; font-weight: 800; padding: 1px 4px; border-radius: 5px; }

/* ---------- auth / landing ---------- */
.landing { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.landing .hero {
  position: relative; overflow: hidden; padding: 56px; display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(900px 500px at 20% 110%, rgba(141, 180, 198, .18), transparent 60%),
    radial-gradient(600px 400px at 90% -10%, rgba(255, 255, 255, .06), transparent 60%),
    var(--bg);
  border-right: 1px solid var(--line);
}
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(52px, 6vw, 88px); line-height: .9; margin: 0; letter-spacing: .01em; }
.hero h1 span { color: var(--blue); }
.hero p.lead { color: #c3c9d2; font-size: 18px; max-width: 520px; line-height: 1.55; }
.hero .fan { position: absolute; right: 40px; top: 15%; display: flex; pointer-events: none; opacity: .95; }
.hero .fan .card { width: 124px; margin-left: -62px; box-shadow: 0 30px 60px rgba(3, 12, 18, .6); }
.hero .fan .card:nth-child(1) { transform: rotate(-18deg) translateY(30px); }
.hero .fan .card:nth-child(2) { transform: rotate(-6deg) translateY(4px); }
.hero .fan .card:nth-child(3) { transform: rotate(6deg) translateY(4px); }
.hero .fan .card:nth-child(4) { transform: rotate(18deg) translateY(30px); }
.landing .feats { display: flex; gap: 28px; flex-wrap: wrap; }
.landing .feat b { display: block; font-family: var(--display); font-size: 34px; font-weight: 400; color: var(--blue); }
.landing .feat span { color: var(--muted); font-size: 13px; }
.authbox { display: flex; align-items: center; justify-content: center; padding: 40px; }
.authcard { width: 100%; max-width: 400px; }
.authcard h2 { font-size: 26px; margin: 0 0 6px; }
.tabs { display: flex; background: var(--panel); border: 1px solid var(--line); padding: 4px; border-radius: 12px; margin: 24px 0 8px; }
.tabs button { flex: 1; background: none; border: 0; color: var(--muted); padding: 10px; border-radius: 9px; font-weight: 700; }
.tabs button.active { background: #fff; color: #000; }
.bonus-note { margin-top: 18px; padding: 14px; border: 1px dashed var(--line2); border-radius: 12px; color: #c3c9d2; font-size: 13px; display: flex; gap: 12px; align-items: center; }
.bonus-note strong { white-space: nowrap; color: var(--blue); font-size: 20px; font-family: var(--display); font-weight: 400; letter-spacing: .03em; }
.err { color: var(--bad); font-size: 13px; min-height: 18px; margin-top: 10px; }

/* ---------- layout páginas ---------- */
.page { max-width: 1280px; margin: 0 auto; padding: 28px 24px 60px; }
.page h2.title { font-family: var(--display); font-weight: 400; font-size: 40px; margin: 0 0 4px; letter-spacing: .02em; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- lobby ---------- */
.lobby { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.lobby-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.modetabs { display: flex; gap: 10px; }
.modetab {
  border: 1px solid var(--line2); background: var(--panel); color: var(--muted); border-radius: 14px; padding: 12px 18px;
  text-align: left; min-width: 180px;
}
.modetab b { display: block; color: var(--text); font-size: 16px; }
.modetab small { font-size: 12px; }
.modetab.active { border-color: var(--blue); background: linear-gradient(180deg, rgba(141, 180, 198, .10), transparent); }
.modetab.active b { color: var(--blue); }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); padding: 4px; border-radius: 12px; }
.seg button { background: none; border: 0; color: var(--muted); padding: 8px 16px; border-radius: 9px; font-weight: 700; }
.seg button.active { background: var(--panel2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }

.stakes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.stake {
  position: relative; overflow: hidden; padding: 18px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel2), var(--panel)); display: flex; flex-direction: column; gap: 12px;
  transition: border-color .15s, transform .15s;
}
.stake:hover { border-color: var(--blue); transform: translateY(-2px); }
.stake .tier { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.stake .val { font-family: var(--display); font-size: 44px; line-height: .9; letter-spacing: .01em; }
.stake .val small { font-size: 20px; color: var(--muted); margin-right: 4px; }
.stake .prize { font-size: 13px; color: #c3c9d2; }
.stake .prize b { color: var(--blue); }
.stake .live { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.stake .live .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 5px; background: #3a414c; }
.stake .live .on .dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.stake .live .wait .dot { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.stake .suitbg { position: absolute; right: -14px; top: -10px; width: 90px; height: 90px; opacity: .05; }
.stake.locked { opacity: .55; }

.section-title { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 12px; }
.section-title h3 { margin: 0; font-size: 16px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.tables-list { display: flex; flex-direction: column; gap: 8px; }
.trow {
  display: grid; grid-template-columns: 1.3fr 1fr 1.5fr auto; align-items: center; gap: 16px;
  padding: 12px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line);
}
.trow .mode { font-weight: 700; }
.trow .mode small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.seats-mini { display: flex; gap: 6px; align-items: center; }
.seats-mini .s { width: 28px; height: 28px; border-radius: 50%; border: 1.5px dashed var(--line2); display: grid; place-items: center; }
.seats-mini .s.f { border: 0; }
.seats-mini .count { margin-left: 8px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.badge { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .06em; }
.badge.wait { background: var(--blue-soft); color: var(--blue); }
.badge.play { background: rgba(126, 226, 184, .12); color: var(--ok); }
.badge.end { background: #222; color: var(--muted); }
.empty { padding: 26px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: 12px; }

.side .box { padding: 18px; margin-bottom: 14px; }
.side h4 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.onlinebig { font-family: var(--display); font-size: 48px; line-height: 1; }
.onlinebig small { font-family: var(--font); font-size: 13px; color: var(--muted); margin-left: 6px; }
.pulse { width: 9px; height: 9px; background: var(--ok); border-radius: 50%; display: inline-block; box-shadow: 0 0 0 0 rgba(126, 226, 184, .6); animation: pulse 1.6s infinite; margin-right: 8px; vertical-align: middle; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(126, 226, 184, 0); } 100% { box-shadow: 0 0 0 0 rgba(126, 226, 184, 0); } }
.rules { font-size: 13px; line-height: 1.6; color: #c3c9d2; }
.rules ul { padding-left: 18px; margin: 6px 0; }
.rules .ranks { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.rules .ranks span { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; font-weight: 700; font-size: 12px; }

/* ---------- tabelas genéricas ---------- */
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.grid td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
table.grid tr:last-child td { border-bottom: 0; }
.pos { color: var(--ok); font-weight: 700; }
.neg { color: var(--bad); font-weight: 700; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 18px 0; }
.stat { padding: 16px 18px; }
.stat .k { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.stat .v { font-family: var(--display); font-size: 34px; margin-top: 4px; }

/* ---------- MESA ---------- */
.game { position: fixed; inset: 0; top: 0; z-index: 40; background: var(--bg); display: flex; flex-direction: column; }
.game-top { display: flex; align-items: center; gap: 16px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: var(--bg2); }
.game-top .info { display: flex; gap: 18px; align-items: center; color: var(--muted); font-size: 13px; }
.game-top .info b { color: var(--text); }
.felt-wrap { flex: 1; position: relative; overflow: hidden; display: grid; place-items: center; padding: 12px; }
.felt {
  position: relative; width: min(1100px, 100%); height: min(680px, 100%); border-radius: 260px / 200px;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(141, 180, 198, .10), transparent 55%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 6px),
    radial-gradient(ellipse at center, #356b89 0%, #244f68 70%, #1d425a 100%);
  border: 2px solid #407ea1;
  box-shadow: inset 0 0 0 10px #20435b, inset 0 0 0 12px rgba(141, 180, 198, .22), inset 0 0 80px rgba(3, 12, 18, .8), 0 30px 80px rgba(3, 12, 18, .6);
}
.felt .watermark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .05; width: 260px; pointer-events: none; }

.scoreboard {
  position: absolute; left: 18px; top: 14px; z-index: 5; display: flex; gap: 0; align-items: stretch;
  background: rgba(29, 66, 90, .9); border: 1px solid var(--line2); border-radius: 14px; overflow: hidden;
}
.scoreboard .team { padding: 8px 16px; text-align: center; min-width: 76px; }
.scoreboard .team .n { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.scoreboard .team .p { font-family: var(--display); font-size: 38px; line-height: 1; }
.scoreboard .team.us .p { color: var(--blue); }
.scoreboard .x { display: grid; place-items: center; color: var(--muted); font-weight: 700; border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0 10px; }
.handinfo { position: absolute; right: 18px; top: 14px; z-index: 5; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.valbadge { background: #fff; color: #000; font-weight: 900; padding: 8px 14px; border-radius: 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.valbadge b { font-family: var(--display); font-size: 26px; font-weight: 400; margin-left: 6px; vertical-align: -3px; }
.valbadge.hot { background: var(--blue); }
.rounds { display: flex; gap: 6px; }
.rounds .r { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line2); display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--muted); background: rgba(3, 12, 18, .4); }
.rounds .r.w { background: var(--blue); color: #000; border-color: var(--blue); }
.rounds .r.l { background: #498db3; color: #fff; }
.rounds .r.t { background: #fff; color: #000; }
.special-banner { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 6; background: var(--blue); color: #000; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; padding: 8px 16px; border-radius: 999px; }

/* assentos */
.seat { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; transition: opacity .2s; }
.seat.pos-0 { left: 50%; bottom: -6px; transform: translate(-50%, 0); display: none; }
.seat.pos-1 { right: 18px; top: 50%; transform: translateY(-50%); flex-direction: column; }
.seat.pos-2 { left: 50%; top: 18px; transform: translateX(-50%); flex-direction: column; }
.seat.pos-3 { left: 18px; top: 50%; transform: translateY(-50%); flex-direction: column; }
.seat .plate { display: flex; align-items: center; gap: 10px; background: rgba(29, 66, 90, .92); border: 1px solid var(--line2); padding: 6px 14px 6px 6px; border-radius: 999px; position: relative; }
.seat .plate .nm { font-weight: 700; font-size: 14px; max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat .plate .tm { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.seat.partner .plate .tm { color: var(--blue); }
.seat.active .plate { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft), 0 0 24px rgba(141, 180, 198, .25); }
.seat.off { opacity: .55; }
.seat .ring { position: absolute; inset: -4px; border-radius: 50%; pointer-events: none; }
.seat .backs { display: flex; }
.seat .backs .card { width: 46px; margin-left: -26px; }
.seat .backs .card:first-child { margin-left: 0; }
.dealer-chip { position: absolute; top: -8px; left: -8px; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #000; font-size: 10px; font-weight: 900; display: grid; place-items: center; }

.timer-ring { --p: 1; position: absolute; inset: -4px; border-radius: 50%; background: conic-gradient(var(--blue) calc(var(--p) * 360deg), transparent 0); -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%); mask: radial-gradient(circle, transparent 60%, #000 61%); }
.timer-ring.low { background: conic-gradient(#fff calc(var(--p) * 360deg), transparent 0); }

/* centro */
.center { position: absolute; left: 50%; top: 50%; width: 360px; height: 280px; transform: translate(-50%, -52%); z-index: 3; }
.played { position: absolute; width: 84px; transition: transform .25s ease-out, opacity .25s; }
.played.p0 { left: 50%; top: 58%; transform: translate(-50%, 0) rotate(2deg); }
.played.p1 { left: 74%; top: 50%; transform: translate(-50%, -50%) rotate(-6deg); }
.played.p2 { left: 50%; top: 42%; transform: translate(-50%, -100%) rotate(-3deg); }
.played.p3 { left: 26%; top: 50%; transform: translate(-50%, -50%) rotate(5deg); }
.played.win .card { box-shadow: 0 0 0 3px var(--blue), 0 0 30px rgba(141, 180, 198, .5); }
.played.old { opacity: .55; }
.played .who { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.vira-zone { position: absolute; left: 9%; top: 50%; transform: translateY(-50%); z-index: 3; display: flex; align-items: center; gap: 0; }
.vira-zone .deck { width: 66px; aspect-ratio: 5 / 7; position: relative; }
.vira-zone .deck .card { position: absolute; top: 0; left: 0; }
.vira-zone .vira { width: 72px; margin-left: 12px; }
.vira-zone .lbl { position: absolute; bottom: -30px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.vira-zone .lbl b { color: var(--blue); }
.size-4 .vira-zone { left: 14%; top: 26%; }
.manilhas-fixas { position: absolute; left: 18px; bottom: 18px; z-index: 3; display: flex; gap: 4px; align-items: flex-end; background: rgba(29, 66, 90, .85); border: 1px solid var(--line2); padding: 8px; border-radius: 12px; }
.manilhas-fixas .card { width: 34px; }
.manilhas-fixas span { font-size: 10px; color: var(--muted); text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .1em; margin-right: 4px; }

/* minha mão */
.myarea { position: relative; z-index: 10; display: flex; align-items: flex-end; justify-content: center; gap: 24px; padding: 0 18px 16px; margin-top: -120px; pointer-events: none; }
.myarea > * { pointer-events: auto; }
.myhand { display: flex; gap: 10px; align-items: flex-end; }
.myhand .card { width: 112px; cursor: default; transition: transform .15s, box-shadow .15s; }
.myhand.can .card { cursor: pointer; }
.myhand.can .card:hover { transform: translateY(-18px); box-shadow: 0 0 0 3px var(--blue), 0 20px 40px rgba(3, 12, 18, .6); }
.myhand .card.dim { filter: brightness(.6); }
.me-plate { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.me-plate .plate { display: flex; align-items: center; gap: 10px; background: rgba(29, 66, 90, .92); border: 1px solid var(--line2); padding: 6px 14px 6px 6px; border-radius: 999px; position: relative; }
.me-plate.active .plate { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 170px; }
.btn-truco {
  font-family: var(--display); font-size: 34px; letter-spacing: .06em; padding: 10px 22px; border-radius: 14px;
  background: #fff; color: #000; border: 0; box-shadow: 0 6px 0 #9aa3ae, 0 14px 30px rgba(3, 12, 18, .5);
}
.btn-truco:hover:not(:disabled) { background: var(--blue); box-shadow: 0 6px 0 #2f7fbf, 0 14px 30px rgba(141, 180, 198, .3); }
.btn-truco:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 #9aa3ae; }
.btn-truco:disabled { opacity: .25; cursor: not-allowed; }
.cover-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); background: rgba(29, 66, 90, .9); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 12px; cursor: pointer; user-select: none; }
.cover-toggle.on { color: #000; background: var(--blue); border-color: var(--blue); }
.yourturn { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--blue); font-weight: 800; text-align: center; }

/* balões */
.bubble {
  position: absolute; z-index: 20; background: #fff; color: #000; font-weight: 800; padding: 8px 14px; border-radius: 14px; white-space: nowrap;
  animation: pop .25s ease-out, fade 0.4s ease-in 2.6s forwards; pointer-events: none; font-size: 14px;
}
.bubble.truco { font-family: var(--display); font-weight: 400; font-size: 44px; padding: 4px 22px; background: var(--blue); letter-spacing: .04em; box-shadow: 0 10px 40px rgba(141, 180, 198, .5); }
.bubble.sys { background: #407ea0; color: #fff; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fade { to { opacity: 0; transform: translateY(-10px); } }

/* modais */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(3, 12, 18, .55); display: grid; place-items: center; backdrop-filter: blur(3px); animation: fadein .2s; }
.overlay.soft { background: transparent; backdrop-filter: none; pointer-events: none; }
.overlay.soft .modal { pointer-events: auto; }
@keyframes fadein { from { opacity: 0; } }
.modal { background: var(--panel); border: 1px solid var(--line2); border-radius: 20px; padding: 26px; max-width: 460px; width: calc(100% - 32px); text-align: center; box-shadow: 0 40px 100px rgba(3, 12, 18, .7); }
.modal h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 52px; letter-spacing: .03em; line-height: 1; }
.modal h3.blue { color: var(--blue); }
.modal p { color: #c3c9d2; }
.modal .row { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.modal .row .btn { flex: 1; min-width: 110px; }
.modal .cards-row { display: flex; gap: 8px; justify-content: center; margin: 14px 0; }
.modal .cards-row .card { width: 74px; }
.result-amt { font-family: var(--display); font-size: 60px; color: var(--blue); line-height: 1; margin: 10px 0; }

/* sala de espera */
.waiting { position: absolute; inset: 0; display: grid; place-items: center; z-index: 8; }
.waiting .box { text-align: center; max-width: 520px; padding: 30px; }
.waiting h3 { font-family: var(--display); font-weight: 400; font-size: 46px; margin: 0; letter-spacing: .02em; }
.wait-seats { display: flex; gap: 18px; justify-content: center; margin: 24px 0; }
.wait-seats .ws { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 92px; }
.wait-seats .ws .empty-seat { width: 64px; height: 64px; border-radius: 50%; border: 2px dashed var(--line2); display: grid; place-items: center; color: var(--muted); animation: breathe 1.6s infinite; }
.wait-seats .ws small { font-size: 12px; color: var(--muted); max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wait-seats .ws .team-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
@keyframes breathe { 50% { border-color: var(--blue); } }

/* chat rápido */
.quickchat { position: absolute; right: 18px; bottom: 18px; z-index: 12; }
.quickchat .menu { position: absolute; right: 0; bottom: 48px; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; min-width: 180px; }
.quickchat .menu button { background: none; border: 0; color: var(--text); text-align: left; padding: 8px 10px; border-radius: 8px; font-size: 13px; }
.quickchat .menu button:hover { background: var(--panel2); }
.chatlog { position: absolute; left: 18px; bottom: 18px; z-index: 2; width: 260px; max-height: 120px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; font-size: 12px; color: var(--muted); pointer-events: none; mask-image: linear-gradient(transparent, #000 40%); }
.chatlog b { color: #c3c9d2; }

/* ---------- CARTAS ---------- */
.card { display: block; aspect-ratio: 5 / 7; border-radius: 8%; filter: drop-shadow(0 6px 10px rgba(3, 12, 18, .45)); }
.card svg { width: 100%; height: 100%; display: block; }

/* toast */
.toasts { position: fixed; right: 18px; top: 74px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #fff; color: #000; padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(3, 12, 18, .5); animation: pop .2s; max-width: 360px; }
.toast.error { background: #2a1416; color: #ffb3b3; border: 1px solid #5a2a2e; }
.toast.ok { background: var(--blue); color: #000; }

/* avatar picker */
.avatars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 14px; }
.avatars button { background: none; border: 2px solid transparent; border-radius: 50%; padding: 3px; }
.avatars button.sel { border-color: var(--blue); }

@media (max-width: 980px) {
  .landing { grid-template-columns: 1fr; }
  .landing .hero { min-height: 420px; padding: 32px; }
  .hero .fan { display: none; }
  .lobby { grid-template-columns: 1fr; }
  .trow { grid-template-columns: 1fr 1fr; }
  .topbar nav a { padding: 8px 8px; }
  .myhand .card { width: 84px; }
  .played { width: 64px; }
  .center { width: 280px; }
  .btn-truco { font-size: 26px; }
  .vira-zone { transform: translateY(-50%) scale(.75); }
  .chatlog { display: none; }
}
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
  .topbar nav { order: 3; width: 100%; }
  .brand span.txt { display: none; }
  .myarea { flex-direction: column; align-items: center; gap: 10px; margin-top: -60px; }
  .actions { flex-direction: row; min-width: 0; }
  .seat .plate .nm { max-width: 80px; }
  .scoreboard .team { min-width: 56px; padding: 6px 10px; }
  .scoreboard .team .p { font-size: 28px; }
}
.avatar.xs { width: 28px; height: 28px; }
.avatar.xs .bot-tag { display: none; }
.played.new { animation: playin .28s ease-out; }
@keyframes playin { from { opacity: 0; filter: blur(2px); } }

/* ---------- duplas (lobby e sala de espera) ---------- */
.seats-mini .duo { display: flex; align-items: center; gap: 5px; padding: 4px 8px 4px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg2); }
.seats-mini .duo span { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-right: 2px; }
.seats-mini .vs { color: var(--muted); font-size: 12px; }
.seats-mini .s.free { background: transparent; color: var(--blue); font-weight: 800; font-size: 15px; line-height: 1; border-color: var(--blue); padding: 0; }
.seats-mini .s.free:hover { background: var(--blue); color: #000; border-style: solid; }
.trow { grid-template-columns: 1.1fr .9fr 2fr auto; }
.teams { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 22px 0 10px; }
.teambox { border: 1px solid var(--line2); border-radius: 18px; padding: 14px 16px 6px; background: rgba(29, 66, 90, .6); }
.teambox.mine { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.teambox .team-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 800; }
.teambox.mine .team-lbl { color: var(--blue); }
.teambox .wait-seats { margin: 12px 0 6px; gap: 10px; }
.vs-big { font-family: var(--display); font-size: 40px; color: var(--muted); }
.wait-seats .ws .empty-seat { background: transparent; color: var(--blue); font-size: 26px; cursor: pointer; }
.wait-seats .ws .empty-seat:hover { background: var(--blue-soft); border-style: solid; border-color: var(--blue); animation: none; }
.wait-seats .ws.me small { color: var(--blue); }
label.check { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-size: 13px; color: #c3c9d2; text-align: left; cursor: pointer; margin-top: 16px; }
label.check input { width: auto; margin-top: 2px; accent-color: var(--blue); }
@media (max-width: 640px) { .teams { flex-direction: column; gap: 8px; } }

/* ---------- treino grátis ---------- */
.practice-banner {
  margin-top: 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  padding: 18px 22px; border-radius: 18px; border: 1px dashed var(--blue);
  background: radial-gradient(500px 160px at 0% 50%, rgba(141, 180, 198, .14), transparent 70%), var(--panel);
}
.practice-banner .pb-cards { display: flex; }
.practice-banner .pb-cards .card { width: 52px; }
.practice-banner .pb-cards .card:first-child { transform: rotate(-10deg); }
.practice-banner .pb-cards .card:last-child { margin-left: -22px; transform: rotate(8deg) translateY(4px); }
.practice-banner .pb-text b { font-size: 18px; display: block; margin: 2px 0 4px; }
.practice-banner .pb-text span { color: #c3c9d2; font-size: 14px; line-height: 1.5; }
.practice-banner .pb-text span b { display: inline; font-size: inherit; margin: 0; color: var(--blue); }
.practice-banner .pb-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); font-weight: 800; }
.practice-banner .pb-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
@media (max-width: 760px) { .practice-banner { grid-template-columns: 1fr; } .practice-banner .pb-side { align-items: stretch; } }

/* ---------- dicas ---------- */
.myhand .card.hint { box-shadow: 0 0 0 3px var(--blue), 0 0 34px rgba(141, 180, 198, .55); transform: translateY(-12px); animation: hintbob 1.4s ease-in-out infinite; }
@keyframes hintbob { 50% { transform: translateY(-18px); } }
.hint-tip { background: rgba(141, 180, 198, .14); border: 1px solid rgba(141, 180, 198, .5); color: #d8eeff; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.modal .hint-tip { white-space: normal; border-radius: 12px; margin-top: 10px; }
.btn-truco.hint-pulse { animation: truco-pulse 1s ease-in-out infinite; }
@keyframes truco-pulse { 50% { box-shadow: 0 6px 0 #2f7fbf, 0 0 0 8px rgba(141, 180, 198, .35); background: var(--blue); } }
.btn.hinted { box-shadow: 0 0 0 3px var(--blue), 0 0 20px rgba(141, 180, 198, .5); }
.myarea .hint-tip { position: relative; z-index: 3; margin-bottom: 22px; }
.rules .ranks i { font-style: normal; font-size: 13px; }
.rules .ranks i.r { color: #ff5a5a; }
.rules .ranks i.k { color: #fff; }

/* =========== MARCA: logo com moldura animada =========== */
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.brand { gap: 12px; }
.brand-badge {
  position: relative; isolation: isolate; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(3, 12, 18, .55), 0 0 26px rgba(141, 180, 198, .22);
}
.brand-badge::before {
  content: ''; position: absolute; inset: -2px; border-radius: 16px; z-index: -2;
  background: conic-gradient(from var(--ang), rgba(141, 180, 198, .15) 0 55%, #8db4c6 70%, #ffffff 78%, #8db4c6 86%, rgba(141, 180, 198, .15) 100%);
  animation: brand-spin 3.5s linear infinite;
}
.brand-badge::after {
  content: ''; position: absolute; inset: 1px; border-radius: 13px; z-index: -1;
  background: radial-gradient(circle at 30% 18%, #456280 0%, #1f465d 62%, #08141c 100%);
}
@keyframes brand-spin { to { --ang: 360deg; } }
.brand .brand-badge img { width: 74%; height: auto; transform: rotate(-6deg); filter: drop-shadow(0 3px 8px rgba(141, 180, 198, .45)); animation: brand-float 3.6s ease-in-out infinite; transition: transform .45s cubic-bezier(.3, 1.7, .5, 1); }
@keyframes brand-float { 50% { translate: 0 -2px; } }
.brand:hover .brand-badge img { transform: rotate(10deg) scale(1.14); }
.brand-word { font-family: var(--display); letter-spacing: .06em; line-height: 1; display: flex; gap: .2em; font-size: 30px; text-shadow: 0 2px 14px rgba(3, 12, 18, .6); }
.brand-word .w1 { color: #fff; }
.brand-word .w2 {
  background: linear-gradient(100deg, #8db4c6 0%, #8db4c6 42%, #ffffff 50%, #8db4c6 58%, #8db4c6 100%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: brand-shine 5s ease-in-out infinite; text-shadow: none; filter: drop-shadow(0 0 10px rgba(141, 180, 198, .35));
}
@keyframes brand-shine { 0%, 55% { background-position: 100% 0; } 100% { background-position: -60% 0; } }
.brand-sm .brand-badge { width: 36px; height: 36px; border-radius: 11px; }
.brand-sm .brand-badge::before { border-radius: 13px; } .brand-sm .brand-badge::after { border-radius: 10px; }
.brand-sm .brand-word { font-size: 22px; }
.brand-lg .brand-badge { width: 66px; height: 66px; border-radius: 19px; }
.brand-lg .brand-badge::before { border-radius: 21px; } .brand-lg .brand-badge::after { border-radius: 18px; }
.brand-lg .brand-word { font-size: 40px; }

/* =========== MENU com ícones, separadores e motion =========== */
.topbar .mainnav {
  display: flex; align-items: center; gap: 0; padding: 5px; border-radius: 14px;
  background: linear-gradient(180deg, #2e5f7d, #224c65); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 6px 20px rgba(3, 12, 18, .35);
}
.topbar .mainnav .navbtn {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px;
  color: var(--muted); font-weight: 700; font-size: 14px; background: transparent;
  transition: color .2s, background .25s, transform .15s, box-shadow .25s;
}
.topbar .mainnav .navbtn + .navbtn::before { content: ''; position: absolute; left: 0; top: 26%; height: 48%; width: 1px; background: linear-gradient(180deg, transparent, #39414c, transparent); transition: opacity .2s; }
.topbar .mainnav .navbtn.active::before, .topbar .mainnav .navbtn.active + .navbtn::before { opacity: 0; }
.topbar .mainnav .navbtn svg { width: 18px; height: 18px; transition: transform .4s cubic-bezier(.3, 1.8, .5, 1); }
.topbar .mainnav .navbtn::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 0; height: 2px; border-radius: 2px; background: var(--blue); transition: width .25s, left .25s; }
.topbar .mainnav .navbtn:hover { color: var(--text); background: rgba(141, 180, 198, .07); }
.topbar .mainnav .navbtn:hover svg { transform: translateY(-2px) rotate(-10deg) scale(1.15); }
.topbar .mainnav .navbtn:not(.active):hover::after { width: 44%; left: 28%; }
.topbar .mainnav .navbtn:active { transform: scale(.95); }
.topbar .mainnav .navbtn.active {
  color: #061019; background: linear-gradient(180deg, #a6dbff, #5cb3f3);
  box-shadow: 0 6px 18px rgba(141, 180, 198, .35), inset 0 1px 0 rgba(255, 255, 255, .55);
  animation: nav-pop .35s cubic-bezier(.3, 1.6, .5, 1);
}
@keyframes nav-pop { from { transform: scale(.9); } }
@media (max-width: 1100px) { .topbar .mainnav .navbtn span { display: none; } .topbar .mainnav .navbtn { padding: 9px 12px; } }

/* =========== AVATARES: seletor centralizado =========== */
.avatar svg { width: 62%; height: 62%; }
.avatars { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 16px 8px; }
.avatars button { border: 0; padding: 4px 0 0; background: none; border-radius: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.avatars button .avatar { transition: box-shadow .2s, transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.avatars button:hover .avatar { transform: scale(1.08) rotate(-4deg); }
.avatars button.sel { color: var(--blue); font-weight: 700; }
.avatars button.sel .avatar { box-shadow: 0 0 0 3px var(--panel), 0 0 0 6px var(--blue), 0 0 22px rgba(141, 180, 198, .5); }

/* =========== DISTRIBUIÇÃO das cartas =========== */
.deal-layer { position: fixed; inset: 0; pointer-events: none; z-index: 58; }
.deal-deck { position: absolute; width: 70px; aspect-ratio: 5 / 7; transform: translate(-50%, -50%); transition: opacity .3s, transform .3s; }
.deal-deck .dk { position: absolute; inset: 0; width: 100%; }
.deal-deck .dk.a { animation: shuf-a .25s ease-in-out 3 alternate; }
.deal-deck .dk.b { animation: shuf-b .25s ease-in-out 3 alternate; }
.deal-deck .dk.c { transform: translate(2px, -2px); }
@keyframes shuf-a { 50% { transform: translateX(-46px) rotate(-12deg); } }
@keyframes shuf-b { 50% { transform: translateX(46px) rotate(12deg); } }
.deal-deck.gone { opacity: 0; transform: translate(-50%, -50%) scale(.8); }
.deal-card { position: absolute; width: 70px; }
/* sem filter (drop-shadow) nas cartas da distribuição: no celular ele deixava um quadrado fantasma no meio */
.deal-layer .card { filter: none !important; box-shadow: 0 5px 12px rgba(3, 12, 18, .45); }
.dealing .myhand .card, .dealing .seat .backs .card, .dealing .vira-zone .vira { opacity: 0; }
.myhand .card.flipin { animation: flipin .45s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes flipin { from { transform: perspective(600px) rotateY(90deg) translateY(10px); opacity: .3; } }

/* botão fechar (X) */
.close-x {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line2); background: var(--panel2); color: var(--muted); font-size: 16px; line-height: 1;
  display: grid; place-items: center; transition: color .2s, border-color .2s, transform .3s cubic-bezier(.3, 1.6, .5, 1), background .2s;
}
.close-x:hover { color: #000; background: var(--blue); border-color: var(--blue); transform: rotate(90deg); }

/* =========== TOGGLE Mineiro / Paulista =========== */
.modetoggle {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 6px; gap: 0;
  border-radius: 20px; background: linear-gradient(180deg, #2d5a76, #1f465d); border: 1px solid var(--line2);
  box-shadow: inset 0 2px 8px rgba(3, 12, 18, .5), 0 10px 30px rgba(3, 12, 18, .35); max-width: 760px;
}
.modetoggle .mt-thumb {
  position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); border-radius: 15px; z-index: 0;
  background: linear-gradient(135deg, #b9d2de 0%, #62a5c6 100%);
  box-shadow: 0 10px 28px rgba(141, 180, 198, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform .45s cubic-bezier(.3, 1.35, .45, 1);
}
.modetoggle[data-on="paulista"] .mt-thumb { transform: translateX(100%); }
.modetoggle .modetab {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; text-align: left;
  border: 0; background: none; min-width: 0; padding: 12px 18px; border-radius: 15px; color: var(--muted);
  transition: color .3s;
}
.modetoggle .modetab b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: .04em; color: var(--text); line-height: 1; transition: color .3s; }
.modetoggle .modetab small { display: block; font-size: 12px; margin-top: 4px; transition: color .3s; }
.modetoggle .modetab .mt-ic { width: 38px; flex-shrink: 0; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.modetoggle .modetab .mt-ic .card { width: 100%; }
.modetoggle .modetab:not(.active):hover b { color: var(--blue); }
.modetoggle .modetab:not(.active) .mt-ic { opacity: .55; transform: rotate(-8deg) scale(.9); }
.modetoggle .modetab.active b { color: #061019; }
.modetoggle .modetab.active small { color: #0d3b63; }
.modetoggle .modetab.active .mt-ic { transform: rotate(-6deg) scale(1.08); }
@media (max-width: 640px) { .modetoggle .modetab small { display: none; } .modetoggle .modetab b { font-size: 20px; } }

/* =========== CARTA VENCEDORA da rodada =========== */
.played.old { opacity: 1; }
.played.lost { opacity: .45; filter: grayscale(.4); }
.played.win { z-index: 5; }
.played.win .card { animation: win-card .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.played.win.us .card { box-shadow: 0 0 0 3px #8db4c6, 0 0 40px rgba(141, 180, 198, .8); }
.played.win.them .card { box-shadow: 0 0 0 3px #ffffff, 0 0 40px rgba(255, 255, 255, .55); }
@keyframes win-card { 0% { transform: scale(1); } 45% { transform: scale(1.28) rotate(-4deg); } 100% { transform: scale(1.15); } }
.win-badge {
  position: absolute; left: 50%; top: -14px; transform: translateX(-50%); white-space: nowrap; z-index: 6;
  font-size: 11px; font-weight: 900; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px;
  animation: badge-in .45s .15s cubic-bezier(.3, 1.7, .5, 1) both;
}
.played.win.us .win-badge { background: #8db4c6; color: #061019; box-shadow: 0 6px 18px rgba(141, 180, 198, .6); }
.played.win.them .win-badge { background: #fff; color: #000; box-shadow: 0 6px 18px rgba(255, 255, 255, .35); }
@keyframes badge-in { from { transform: translateX(-50%) translateY(8px) scale(.5); opacity: 0; } }

/* =========== EFEITO no jogador que ganhou a rodada =========== */
#fx-fixed { position: fixed; inset: 0; pointer-events: none; z-index: 57; }
.rb { position: absolute; width: 0; height: 0; }
.rb .ring { position: absolute; left: 0; top: 0; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; border: 3px solid currentColor; opacity: 0; animation: ring-out 1.4s cubic-bezier(.2, .7, .3, 1) forwards; }
.rb .r2 { animation-delay: .18s; } .rb .r3 { animation-delay: .36s; }
.rb.us { color: #8db4c6; } .rb.them { color: #ffffff; }
@keyframes ring-out { 0% { transform: scale(.6); opacity: .95; } 100% { transform: scale(3.2); opacity: 0; } }
.rb-tag {
  position: absolute; left: 0; top: -58px; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--display); font-size: 26px; letter-spacing: .04em; padding: 6px 16px 4px; border-radius: 12px;
  animation: tag-pop 2.6s cubic-bezier(.3, 1.6, .5, 1) forwards;
}
.rb.us .rb-tag { background: linear-gradient(135deg, #b9d2de, #62a5c6); color: #061019; box-shadow: 0 10px 30px rgba(141, 180, 198, .55); }
.rb.them .rb-tag { background: #fff; color: #000; box-shadow: 0 10px 30px rgba(3, 12, 18, .5); }
.rb-star { display: inline-block; margin-right: 6px; animation: star-spin 1s ease-out; }
@keyframes star-spin { from { transform: rotate(-200deg) scale(0); } }
@keyframes tag-pop { 0% { transform: translateX(-50%) translateY(14px) scale(.4); opacity: 0; } 12% { transform: translateX(-50%) translateY(0) scale(1.08); opacity: 1; } 20% { transform: translateX(-50%) scale(1); } 85% { opacity: 1; } 100% { transform: translateX(-50%) translateY(-16px); opacity: 0; } }
.rb-tie { position: absolute; transform: translate(-50%, -50%); text-align: center; background: rgba(29, 66, 90, .92); border: 1px solid var(--line2); border-radius: 16px; padding: 10px 22px; animation: tag-pop2 2.4s ease forwards; }
.rb-tie b { display: block; font-family: var(--display); font-weight: 400; font-size: 34px; color: #fff; letter-spacing: .05em; }
.rb-tie span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
@keyframes tag-pop2 { 0% { transform: translate(-50%, -50%) scale(.5); opacity: 0; } 12% { transform: translate(-50%, -50%) scale(1.06); opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }

/* =========== BANNER de pontos no fim da mão =========== */
.hand-banner { position: fixed; z-index: 59; pointer-events: none; display: grid; place-items: center; overflow: hidden; border-radius: 260px / 200px; animation: hb-bg .35s ease both; }
.hand-banner.us { background: radial-gradient(ellipse at center, rgba(141, 180, 198, .28), rgba(9, 23, 31, .55) 65%); }
.hand-banner.them { background: radial-gradient(ellipse at center, rgba(255, 255, 255, .12), rgba(3, 12, 18, .6) 65%); }
.hand-banner.tie { background: rgba(3, 12, 18, .5); }
@keyframes hb-bg { from { opacity: 0; } }
.hand-banner.out { animation: hb-out .4s ease forwards; }
@keyframes hb-out { to { opacity: 0; transform: scale(1.04); } }
.hb-rays { position: absolute; width: 900px; height: 900px; left: 50%; top: 50%; margin: -450px 0 0 -450px; opacity: .5; animation: rays 6s linear infinite; }
.hand-banner.us .hb-rays { background: repeating-conic-gradient(rgba(141, 180, 198, .22) 0 8deg, transparent 8deg 22deg); -webkit-mask: radial-gradient(circle, #000 10%, transparent 60%); mask: radial-gradient(circle, #000 10%, transparent 60%); }
.hand-banner.them .hb-rays { background: repeating-conic-gradient(rgba(255, 255, 255, .10) 0 8deg, transparent 8deg 22deg); -webkit-mask: radial-gradient(circle, #000 10%, transparent 60%); mask: radial-gradient(circle, #000 10%, transparent 60%); }
.hand-banner.tie .hb-rays { display: none; }
@keyframes rays { to { transform: rotate(360deg); } }
.hb-card {
  position: relative; text-align: center; padding: 22px 44px 20px; border-radius: 26px; min-width: 320px;
  background: linear-gradient(180deg, rgba(46, 94, 121, .96), rgba(28, 62, 87, .96)); border: 1px solid var(--line2);
  animation: hb-in .6s cubic-bezier(.25, 1.6, .45, 1) both;
}
.hand-banner.us .hb-card { border-color: #8db4c6; box-shadow: 0 0 0 4px rgba(141, 180, 198, .18), 0 30px 80px rgba(3, 12, 18, .6), 0 0 80px rgba(141, 180, 198, .35); }
.hand-banner.them .hb-card { border-color: #ffffff55; box-shadow: 0 30px 80px rgba(3, 12, 18, .7); }
@keyframes hb-in { 0% { transform: scale(.3) rotate(-8deg); opacity: 0; } 60% { transform: scale(1.06) rotate(1deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
.hb-team { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .3em; color: var(--muted); }
.hand-banner.us .hb-team { color: #8db4c6; }
.hb-points { font-family: var(--display); font-size: 120px; line-height: .9; margin: 4px 0 2px; color: #fff; animation: pts-pop .7s .15s cubic-bezier(.3, 1.8, .5, 1) both; }
.hand-banner.us .hb-points { background: linear-gradient(180deg, #ffffff, #8db4c6); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(141, 180, 198, .6)); }
@keyframes pts-pop { from { transform: scale(2.2); opacity: 0; } }
.hb-sub { font-size: 16px; font-weight: 800; color: #e6edf5; }
.hb-who { display: flex; justify-content: center; gap: 14px; margin-top: 12px; }
.hb-who span { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line2); padding: 4px 12px 4px 4px; border-radius: 999px; font-size: 13px; animation: badge-in2 .4s cubic-bezier(.3, 1.6, .5, 1) both; }
.hb-who span:nth-child(2) { animation-delay: .1s; }
.hb-who .avatar { width: 30px; height: 30px; }
@keyframes badge-in2 { from { transform: translateY(10px) scale(.7); opacity: 0; } }
.hb-score { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; }
.hb-score span { display: flex; flex-direction: column; align-items: center; }
.hb-score small { font-size: 10px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-weight: 800; }
.hb-score em { font-style: normal; font-family: var(--display); font-size: 42px; line-height: 1; color: #fff; }
.hb-score i { font-style: normal; color: var(--muted); font-weight: 800; }
.hb-score span.bump em { animation: bump .5s cubic-bezier(.3, 1.8, .5, 1); color: #8db4c6; }
.hand-banner.them .hb-score span.bump em { color: #fff; }
@keyframes bump { 0% { transform: translateY(-14px) scale(1.6); } }
.hand-banner .cf { position: absolute; left: var(--x); top: -40px; width: 22px; height: 22px; transform: scale(var(--s)); animation: cf-fall 2.4s var(--d) cubic-bezier(.25, .6, .4, 1) forwards; }
.hand-banner .cf svg { width: 100%; height: 100%; }
@keyframes cf-fall { to { transform: translateY(820px) rotate(var(--r)) scale(var(--s)); opacity: .2; } }

/* =========== MESAS: bilhete de trem antigo =========== */
.stakes { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.ticket {
  --paper: #f4f0e6; --ink: #152b38; --muted-ink: #6f6a5f; --hole: var(--bg);
  position: relative; display: grid; grid-template-columns: 1fr 104px; color: var(--ink);
  background:
    repeating-linear-gradient(0deg, rgba(3, 12, 18, .018) 0 1px, transparent 1px 3px),
    radial-gradient(120% 90% at 20% 0%, #fbf8f1, var(--paper) 60%, #e9e3d4);
  border-radius: 12px; filter: drop-shadow(0 12px 22px rgba(3, 12, 18, .45));
  transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), filter .25s;
  /* recortes do picote (meia-lua em cima e embaixo da linha do canhoto) e serrilhado nas bordas */
  -webkit-mask:
    radial-gradient(circle 11px at calc(100% - 104px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle 11px at calc(100% - 104px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle 11px at calc(100% - 104px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle 11px at calc(100% - 104px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket:hover { transform: translateY(-4px) rotate(-.6deg); filter: drop-shadow(0 18px 28px rgba(3, 12, 18, .5)) drop-shadow(0 0 18px rgba(141, 180, 198, .25)); }
.tk-main { position: relative; padding: 14px 16px 14px 18px; border-right: 2px dashed #b9b2a2; min-width: 0; }
.tk-main::before { content: ''; position: absolute; inset: 6px 8px 6px 6px; border: 1px solid #cfc7b5; border-radius: 8px; pointer-events: none; }
.tk-head { display: flex; justify-content: space-between; align-items: center; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-ink); font-weight: 800; padding: 0 4px 8px; border-bottom: 1px solid #d8d0bf; }
.tk-no { font-family: 'Courier New', monospace; letter-spacing: .06em; color: #8a2b2b; font-weight: 700; }
.tk-mid { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 4px 6px; }
.tk-class { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted-ink); font-weight: 700; }
.tk-class b { color: #2c6480; }
.tk-val { font-family: var(--display); font-size: 54px; line-height: .95; color: var(--ink); letter-spacing: .01em; }
.tk-val small { font-size: 22px; margin-right: 3px; color: var(--muted-ink); }
.tk-val sup { font-size: 26px; vertical-align: top; position: relative; top: 6px; }
.tk-route { font-size: 12px; font-weight: 700; color: #2e566d; margin-top: 2px; }
.tk-route i { font-style: normal; color: #2c6480; margin: 0 2px; }
.tk-stamp {
  flex-shrink: 0; width: 74px; height: 74px; border-radius: 50%; border: 2.5px solid #60a5c8; color: #2c6480;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transform: rotate(-14deg);
  opacity: .82; box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5.5px #60a5c8;
}
.tk-stamp span { width: 26px; height: 26px; } .tk-stamp svg { width: 100%; height: 100%; }
.tk-stamp em { font-style: normal; font-size: 8.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.tk-rows { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 0; margin: 4px 4px 0; border: 1px solid #d3cbb9; border-radius: 6px; overflow: hidden; }
.tk-rows div { padding: 6px 8px; display: flex; flex-direction: column; gap: 1px; }
.tk-rows div + div { border-left: 1px solid #d3cbb9; }
.tk-rows span { font-size: 9px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-ink); font-weight: 800; }
.tk-rows b { font-size: 14px; font-variant-numeric: tabular-nums; }
.tk-rows .pay { background: #2d5b77; } .tk-rows .pay span { color: #a9b1bc; } .tk-rows .pay b { color: #fff; }
.tk-prize { display: flex; justify-content: space-between; align-items: center; margin: 8px 4px 0; padding: 8px 10px; border-radius: 6px; background: linear-gradient(90deg, #d9eeff, #eef7ff); border: 1px solid #a9d3f5; }
.tk-prize span { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; color: #1d5f9c; }
.tk-prize b { font-family: var(--display); font-size: 26px; font-weight: 400; color: #0d3b63; line-height: 1; }
.tk-stub { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 8px; padding: 14px 12px 14px 14px; text-align: center; }
.tk-live { display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.tk-live b { font-family: var(--display); font-size: 30px; font-weight: 400; }
.tk-live span { font-size: 9px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; color: var(--muted-ink); }
.tk-live.on b { color: #1f8a5b; } .tk-live.wait b { color: #2c6480; }
.tk-btn {
  border: 0; border-radius: 8px; padding: 11px 6px; font-family: var(--display); font-size: 20px; letter-spacing: .08em;
  background: #2d5b77; color: #fff; box-shadow: 0 4px 0 #000; transition: transform .1s, background .2s, box-shadow .1s;
}
.tk-btn:hover:not(:disabled) { background: #60a5c8; box-shadow: 0 4px 0 #0d3b63; }
.tk-btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
.tk-btn:disabled { background: #b8b1a2; box-shadow: none; cursor: not-allowed; font-size: 15px; }
.ticket.locked { filter: grayscale(.7) drop-shadow(0 12px 22px rgba(3, 12, 18, .45)); }
.ticket.locked:hover { transform: none; }
.tk-void { position: absolute; left: 34%; top: 42%; transform: translate(-50%, -50%) rotate(-12deg); border: 3px solid #b3261e; color: #b3261e; font-family: var(--display); font-size: 24px; letter-spacing: .1em; padding: 2px 12px; border-radius: 6px; opacity: .8; pointer-events: none; background: rgba(244, 240, 230, .55); }

/* =========== CANGA + BOT PENSANDO =========== */
.myhand .card.locked { filter: grayscale(.6) brightness(.55); transform: translateY(6px) scale(.96); }
.myhand.can .card.locked { cursor: not-allowed; }
.myhand.can .card.locked:hover { transform: translateY(6px) scale(.96); box-shadow: none; }
.myhand .card.canga-max { transform: translateY(-16px); box-shadow: 0 0 0 3px #ffb020, 0 0 36px rgba(255, 176, 32, .6); animation: hintbob 1.2s ease-in-out infinite; }
.plate { position: relative; }
.thinking { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 5px 8px; border-radius: 999px;
  background: #f4f7fb; box-shadow: 0 4px 12px rgba(3, 12, 18, .4); z-index: 3; }
.thinking::after { content: ''; position: absolute; bottom: -4px; left: 50%; width: 8px; height: 8px; background: #f4f7fb; transform: translateX(-50%) rotate(45deg); }
.thinking i { width: 6px; height: 6px; border-radius: 50%; background: #60a5c8; animation: think 1.1s ease-in-out infinite; }
.thinking i:nth-child(2) { animation-delay: .15s; } .thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes think { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* =========== BILHETES v2: valor centralizado, botão grande, motion por classe =========== */
.tk-wrap { --acc: #60a5c8; --acc2: #8db4c6; --shine: rgba(255, 255, 255, .55); display: flex; flex-direction: column; gap: 10px; }
.tk-wrap .ticket { overflow: hidden; }
.tk-mid { position: relative; justify-content: center; padding: 12px 4px 8px; }
.tk-center { flex: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.tk-class { margin-bottom: 2px; }
.tk-class b { color: var(--acc); }
.tk-val { font-size: 60px; }
.tk-route i { color: var(--acc); }
.tk-mid .tk-stamp { position: absolute; right: -2px; top: 50%; margin-top: -30px; width: 60px; height: 60px; color: var(--acc); border-color: var(--acc);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5.5px var(--acc); opacity: .55; }
.tk-mid .tk-stamp span { width: 20px; height: 20px; } .tk-mid .tk-stamp em { font-size: 7px; }
.tk-head { border-bottom: 2px solid var(--acc); }
.tk-stub { justify-content: center; gap: 18px; }
.tk-live b { font-size: 36px; }
.tk-shine { position: absolute; inset: 0; pointer-events: none; z-index: 2; mix-blend-mode: soft-light; opacity: 0;
  background: linear-gradient(105deg, transparent 35%, var(--shine) 48%, transparent 60%) no-repeat; background-size: 250% 100%; }

.tk-btn { width: 100%; padding: 14px 18px; font-size: 28px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(180deg, #407ea1, #28546c); box-shadow: 0 5px 0 #000, 0 0 0 1px rgba(255, 255, 255, .08) inset; position: relative; overflow: hidden; }
.tk-btn em { font-style: normal; font-family: var(--sans, Inter), sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .04em; padding: 4px 10px;
  border-radius: 999px; background: var(--acc); color: #fff; }
/* ícone de play em SVG (mask): o caractere ▶ vira emoji no iOS/Android */
.tk-btn::before { content: ''; flex: none; width: 13px; height: 15px; color: var(--acc2); background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 15'%3E%3Cpath d='M1 1.2v12.6c0 .8.9 1.3 1.6.9l10-6.3c.6-.4.6-1.3 0-1.7L2.6.3C1.9-.1 1 .4 1 1.2z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 15'%3E%3Cpath d='M1 1.2v12.6c0 .8.9 1.3 1.6.9l10-6.3c.6-.4.6-1.3 0-1.7L2.6.3C1.9-.1 1 .4 1 1.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s; }
.tk-btn:disabled::before { content: none; }
.tk-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .18) 50%, transparent 60%); transform: translateX(-100%); }
.tk-btn:hover:not(:disabled) { background: linear-gradient(180deg, var(--acc), #0d3b63); box-shadow: 0 5px 0 #15508a, 0 0 24px color-mix(in srgb, var(--acc) 55%, transparent); }
.tk-btn:hover:not(:disabled)::before { transform: translateX(4px); color: #fff; }
.tk-btn:hover:not(:disabled)::after { transform: translateX(100%); transition: transform .6s; }
.tk-btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 #000; }
.tk-btn:disabled { font-size: 20px; }

/* classes: cor de destaque e um motion leve próprio */
.tier-0 { --acc: #4f8f5a; --acc2: #9be0a6; }
.tier-0 .tk-stamp { animation: tk-bob 3.6s ease-in-out infinite; }
.tier-1 { --acc: #a8642f; --acc2: #f0b27a; --shine: rgba(240, 178, 122, .7); }
.tier-1 .tk-shine { animation: tk-sweep 6s ease-in-out infinite; }
.tier-2 { --acc: #6d7b8c; --acc2: #d5dde6; --shine: rgba(255, 255, 255, .9); }
.tier-2 .tk-shine { animation: tk-sweep 4.8s ease-in-out infinite; }
.tier-3 { --acc: #b8860b; --acc2: #ffd75e; --shine: rgba(255, 215, 94, .95); }
.tier-3 .tk-shine { animation: tk-sweep 4s ease-in-out infinite; }
.tier-3 .ticket { filter: drop-shadow(0 12px 22px rgba(3, 12, 18, .45)) drop-shadow(0 0 10px rgba(255, 200, 60, .18)); }
.tier-4 { --acc: #42c6e6; --acc2: #9cf1ff; --shine: rgba(156, 241, 255, .95); }
.tier-4 .tk-shine { animation: tk-sweep 3.6s ease-in-out infinite; }
.tier-4 .tk-stamp { animation: tk-twinkle 2.4s ease-in-out infinite; }
.tier-5 { --acc: #60a5c8; --acc2: #8db4c6; --shine: rgba(141, 180, 198, .95); }
.tier-5 .tk-shine { animation: tk-sweep 3.4s ease-in-out infinite; }
.tier-5 .ticket { animation: tk-glow 3s ease-in-out infinite; --glow: rgba(141, 180, 198, .35); }
.tier-6 { --acc: #7046c2; --acc2: #c6a8ff; --shine: rgba(198, 168, 255, .95); }
.tier-6 .tk-shine { animation: tk-sweep 3.2s ease-in-out infinite; }
.tier-6 .tk-stamp { animation: tk-spin 14s linear infinite; }
.tier-7 { --acc: #b3261e; --acc2: #ffcf5a; --shine: rgba(255, 207, 90, 1); }
.tier-7 .tk-shine { animation: tk-sweep 2.8s ease-in-out infinite; }
.tier-7 .ticket { animation: tk-glow 2.4s ease-in-out infinite; --glow: rgba(255, 190, 60, .4); }
.tier-7 .tk-stamp { animation: tk-spin 10s linear infinite; }
.tk-wrap.locked .tk-shine, .tk-wrap.locked .ticket, .tk-wrap.locked .tk-stamp { animation: none; }

@keyframes tk-sweep { 0%, 55% { opacity: 0; background-position: 130% 0; } 60% { opacity: 1; } 95% { opacity: 1; background-position: -30% 0; } 100% { opacity: 0; background-position: -30% 0; } }
@keyframes tk-bob { 0%, 100% { transform: rotate(-14deg) translateY(0); } 50% { transform: rotate(-10deg) translateY(-3px); } }
@keyframes tk-twinkle { 0%, 100% { transform: rotate(-14deg) scale(1); opacity: .55; } 50% { transform: rotate(-14deg) scale(1.08); opacity: .85; } }
@keyframes tk-spin { from { transform: rotate(-14deg); } to { transform: rotate(346deg); } }
@keyframes tk-glow { 0%, 100% { filter: drop-shadow(0 12px 22px rgba(3, 12, 18, .45)); } 50% { filter: drop-shadow(0 12px 22px rgba(3, 12, 18, .45)) drop-shadow(0 0 16px var(--glow)); } }

/* =========== motion das cartas mais lento e fluido =========== */
.myhand .card { transition: transform .32s cubic-bezier(.22, .9, .3, 1), box-shadow .32s, filter .3s; }
.played { transition: transform .45s cubic-bezier(.22, .9, .3, 1), opacity .45s, filter .45s; }
.played.new { animation: none; }
.played.p0 { --fx: 0px; --fy: 220px; --fr: -8deg; }
.played.p1 { --fx: 220px; --fy: 0px; --fr: 18deg; }
.played.p2 { --fx: 0px; --fy: -200px; --fr: 10deg; }
.played.p3 { --fx: -220px; --fy: 0px; --fr: -18deg; }
.played.new .card { animation: playfly .62s cubic-bezier(.2, .85, .3, 1) both; }
.played.new.win .card { animation: playfly .62s cubic-bezier(.2, .85, .3, 1) both, win-card .6s .62s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes playfly {
  0% { transform: translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(1.15); opacity: 0; }
  25% { opacity: 1; }
  80% { transform: translate(0, 0) rotate(0) scale(.98); }
  100% { transform: none; }
}
.myhand .card.flipin { animation-duration: .6s; }

/* =========== janela de truco / mão de onze: embaixo, sem tampar a mesa =========== */
.overlay.pop { background: linear-gradient(180deg, transparent 55%, rgba(3, 12, 18, .45)); backdrop-filter: none; place-items: end end; padding: 0 22px 22px 0; pointer-events: none; }
.overlay.pop .modal { pointer-events: auto; max-width: 380px; padding: 0 20px 18px; overflow: hidden; position: relative;
  animation: pop-in .5s cubic-bezier(.2, 1.3, .4, 1) both; border-color: rgba(141, 180, 198, .45); box-shadow: 0 24px 60px rgba(3, 12, 18, .7), 0 0 0 1px rgba(141, 180, 198, .15); }
.overlay.pop .modal h3 { font-size: 40px; margin: 4px 0; }
.overlay.pop .modal p { margin: 6px 0 12px; font-size: 14px; }
.overlay.pop .cards-row .card { width: 58px; }
@keyframes pop-in { from { transform: translateY(120px) scale(.92); opacity: 0; } }
.pop-timer { position: relative; height: 26px; margin: 0 -20px 12px; background: rgba(255, 255, 255, .05); border-bottom: 1px solid var(--line2); overflow: hidden; }
.pop-timer i { position: absolute; inset: 0; transform-origin: left center; transform: scaleX(var(--p, 1));
  background: linear-gradient(90deg, #60a5c8, #8db4c6); box-shadow: 0 0 18px rgba(141, 180, 198, .7); transition: background .3s; }
.pop-timer i::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .18) 0 10px, transparent 10px 20px); animation: pop-stripes .8s linear infinite; }
.pop-timer span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-weight: 900; font-size: 13px; color: #fff; text-shadow: 0 1px 3px #000; font-variant-numeric: tabular-nums; }
.pop-timer.low i { background: linear-gradient(90deg, #b3261e, #ff6b5a); box-shadow: 0 0 20px rgba(255, 80, 60, .8); animation: pop-blink .5s ease-in-out infinite alternate; }
@keyframes pop-stripes { to { background-position: 28px 0; } }
@keyframes pop-blink { to { opacity: .6; } }
@media (max-width: 700px) { .overlay.pop { place-items: end center; padding: 0 10px 10px; } }

/* =========== PLACAR DA MESA v2: destacado =========== */
.scoreboard.sb2 { display: block; padding: 0; left: 16px; top: 12px; border-radius: 16px; border: 0; overflow: visible;
  background: linear-gradient(180deg, #f6f9fc, #dfe8f2); color: #0d1c26;
  box-shadow: 0 0 0 2px #20435b, 0 0 0 4px rgba(141, 180, 198, .65), 0 16px 40px rgba(3, 12, 18, .65), 0 0 40px rgba(141, 180, 198, .25); }
.sb2 .sb-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 14px; border-radius: 14px 14px 0 0;
  background: #20435b; color: #fff; font-family: var(--display); font-size: 17px; letter-spacing: .2em; }
.sb2 .sb-head em { font-style: normal; font-family: inherit; font-size: 13px; letter-spacing: .12em; color: #8db4c6; }
.sb2 .sb-body { display: flex; align-items: stretch; padding: 8px 10px 10px; gap: 4px; }
.sb2 .x { border: 0; color: #8a96a5; font-family: var(--display); font-size: 26px; padding: 0 4px; align-self: center; }
.sb-team { text-align: center; min-width: 92px; padding: 4px 6px 6px; border-radius: 10px; transition: background .4s; }
.sb-team .n { font-size: 11px; text-transform: uppercase; letter-spacing: .18em; font-weight: 900; color: #4a5563; }
.sb-team .p { display: inline-block; margin: 2px 0 6px; padding: 2px 10px 0; border-radius: 8px; background: #20435b;
  font-family: var(--display); font-size: 52px; line-height: 1; color: #fff; box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .08), 0 3px 0 rgba(3, 12, 18, .25); }
.sb-team.us .p { color: #8db4c6; text-shadow: 0 0 14px rgba(141, 180, 198, .8); }
.sb-team.them .p { color: #fff; text-shadow: 0 0 10px rgba(255, 255, 255, .4); }
.sb-team .p span { display: inline-block; }
.sb-team.bump .p span { animation: sb-bump .8s cubic-bezier(.3, 1.8, .5, 1); }
.sb-team.bump { animation: sb-flash 1.2s ease-out; }
@keyframes sb-bump { 0% { transform: translateY(-22px) scale(1.5); opacity: 0; } 60% { opacity: 1; } }
@keyframes sb-flash { 0% { background: rgba(141, 180, 198, .55); } 100% { background: transparent; } }
.sb-pips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; width: 84px; margin: 0 auto; }
.sb-pips i { height: 6px; border-radius: 2px; background: rgba(32, 67, 91, .14); transition: background .4s; }
.sb-team.us .sb-pips i.on { background: #60a5c8; box-shadow: 0 0 6px rgba(69, 148, 227, .6); }
.sb-team.them .sb-pips i.on { background: #20435b; }
.sb2.lead-us .sb-team.us .n::before, .sb2.lead-them .sb-team.them .n::before { content: '▲ '; color: #1f8a5b; }
.sb-team.hot .p { animation: sb-hot 1.2s ease-in-out infinite; }
@keyframes sb-hot { 50% { box-shadow: 0 0 0 3px #ffb020, 0 0 22px rgba(255, 176, 32, .7); } }
@media (max-width: 700px) {
  .sb-team { min-width: 66px; } .sb-team .p { font-size: 34px; } .sb-pips { width: 60px; } .sb2 .sb-head { font-size: 13px; }
}

/* =========== timer da jogada: anel em volta do slot inteiro (avatar + nome) diminuindo =========== */
.plate-timer { --p: 1; position: absolute; inset: -5px; border-radius: 999px; pointer-events: none; z-index: 2; padding: 3px;
  background: conic-gradient(from 0deg, #8db4c6 0deg, #60a5c8 calc(var(--p) * 360deg), rgba(255, 255, 255, .07) calc(var(--p) * 360deg));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 6px rgba(141, 180, 198, .8)); }
.plate-timer.low { background: conic-gradient(from 0deg, #ff6b5a 0deg, #b3261e calc(var(--p) * 360deg), rgba(255, 255, 255, .07) calc(var(--p) * 360deg));
  filter: drop-shadow(0 0 8px rgba(255, 80, 60, .9)); animation: pt-blink .45s ease-in-out infinite alternate; }
@keyframes pt-blink { to { opacity: .55; } }
.seat .plate, .me-plate .plate { border-radius: 999px; }

/* toggle de modo ocupando toda a largura */
.modetoggle { max-width: none; width: 100%; }
.modetoggle .modetab { justify-content: center; padding: 16px 22px; }
.modetoggle .modetab b { font-size: 32px; }
.modetoggle .modetab .mt-ic { width: 46px; }

/* prêmio do bilhete: faixa preta, valor branco brilhando com reflexo correndo */
.tk-prize { position: relative; overflow: hidden; background: linear-gradient(180deg, #376c8d, #20435b); border: 1px solid #000;
  box-shadow: 0 0 0 2px var(--acc), 0 6px 16px rgba(3, 12, 18, .35); padding: 10px 14px; }
.tk-prize span { color: var(--acc2); }
.tk-prize b { color: #fff; font-size: 32px; text-shadow: 0 0 10px rgba(255, 255, 255, .7), 0 0 22px var(--acc2); animation: prize-glow 2.2s ease-in-out infinite; }
.tk-prize::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%);
  transform: translateX(-100%); animation: prize-sweep 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes prize-glow { 50% { text-shadow: 0 0 16px rgba(255, 255, 255, .95), 0 0 34px var(--acc2); } }
@keyframes prize-sweep { 0%, 50% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.tk-wrap.locked .tk-prize b, .tk-wrap.locked .tk-prize::after { animation: none; }

/* =========== SIDEBAR v2: contador online + regras =========== */
.side .box { position: relative; overflow: hidden; border-radius: 18px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(141, 180, 198, .09), transparent 60%), linear-gradient(180deg, #2e5e79, #214861);
  border: 1px solid var(--line2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 14px 34px rgba(3, 12, 18, .35); }
.side .box::before { content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #8db4c6, transparent); opacity: .7; }
.side h4 { display: flex; align-items: center; gap: 8px; color: #cfe6fb; font-size: 11.5px; letter-spacing: .18em; }
.side h4::before { content: ''; width: 14px; height: 2px; background: #8db4c6; border-radius: 2px; }

.live-box { text-align: center; padding-bottom: 20px !important; }
.live-box h4 { justify-content: center; }
.live-box h4::after { content: ''; width: 14px; height: 2px; background: #8db4c6; border-radius: 2px; }
.live-radar { position: relative; width: 132px; height: 132px; margin: 12px auto 10px; display: grid; place-items: center; }
.lr-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(141, 180, 198, .5); animation: lr-pulse 2.6s ease-out infinite; }
.lr-ring.r2 { animation-delay: 1.3s; }
@keyframes lr-pulse { 0% { transform: scale(.62); opacity: .9; } 100% { transform: scale(1.12); opacity: 0; } }
.lr-core { position: relative; width: 96px; height: 96px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #2a3442, #20435b 70%); border: 2px solid #8db4c6;
  box-shadow: 0 0 0 5px rgba(141, 180, 198, .12), 0 0 30px rgba(141, 180, 198, .35), inset 0 0 18px rgba(141, 180, 198, .2); }
.lr-core b { font-family: var(--display); font-size: 46px; line-height: .9; color: #fff; text-shadow: 0 0 14px rgba(141, 180, 198, .8); }
.lr-core small { font-size: 10px; text-transform: uppercase; letter-spacing: .2em; color: #8db4c6; font-weight: 800; }
.live-sub { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--muted);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line2); }
.live-sub b { color: #fff; font-size: 15px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fd07f; box-shadow: 0 0 0 0 rgba(47, 208, 127, .6); animation: live-dot 1.6s infinite; }
@keyframes live-dot { 70% { box-shadow: 0 0 0 8px rgba(47, 208, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 208, 127, 0); } }

.how-box ul.steps { list-style: none; padding: 0; margin: 0; counter-reset: st; display: flex; flex-direction: column; gap: 8px; }
.how-box ul.steps li { counter-increment: st; position: relative; padding: 8px 10px 8px 40px; border-radius: 10px; background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .05); font-size: 13px; line-height: 1.45; transition: background .2s, border-color .2s, transform .2s; }
.how-box ul.steps li:hover { background: rgba(141, 180, 198, .07); border-color: rgba(141, 180, 198, .3); transform: translateX(3px); }
.how-box ul.steps li::before { content: counter(st); position: absolute; left: 9px; top: 8px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  font-family: var(--display); font-size: 15px; background: linear-gradient(135deg, #b9d2de, #62a5c6); color: #061019; }

.rl-tag { display: inline-block; margin-bottom: 12px; padding: 5px 10px; border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: #8db4c6; color: #061019; }
.man-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.man { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px 8px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(141, 180, 198, .1), rgba(255, 255, 255, .02)); border: 1px solid rgba(141, 180, 198, .2);
  animation: man-in .5s calc(var(--i) * 90ms) cubic-bezier(.3, 1.5, .5, 1) both; }
.man .card { width: 44px; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.man:hover .card { transform: translateY(-5px) rotate(-5deg) scale(1.06); }
.man b { font-size: 11px; font-weight: 800; color: #fff; white-space: nowrap; }
.man em { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 9.5px; font-weight: 900; padding: 1px 6px; border-radius: 6px; background: #20435b; color: #8db4c6; border: 1px solid rgba(141, 180, 198, .4); }
.man .su { width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: #f4f7fb; display: grid; }
.man .su svg { width: 100%; height: 100%; }
@keyframes man-in { from { transform: translateY(10px) scale(.9); opacity: 0; } }
.rl-lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; color: var(--muted); margin: 4px 0 6px; }
.rk-bar { display: flex; gap: 4px; margin-bottom: 14px; }
.rk-bar span { flex: 1; text-align: center; padding: 6px 0; border-radius: 7px; font-family: var(--display); font-size: 18px; line-height: 1;
  color: #fff; background: rgba(141, 180, 198, calc(.55 - var(--i) * .05)); border: 1px solid rgba(141, 180, 198, .25); }
.ladder { display: flex; align-items: center; justify-content: space-between; gap: 2px; margin-bottom: 12px; }
.ladder span { min-width: 38px; text-align: center; padding: 5px 4px 4px; border-radius: 8px; font-family: var(--display); font-size: 22px; line-height: 1; background: #f4f7fb; color: #0d1c26; }
.ladder span small { display: block; font-family: Inter, sans-serif; font-size: 8.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #2c6480; }
.ladder span.t { background: #8db4c6; }
.ladder i { font-style: normal; color: #8db4c6; font-weight: 900; }
.rl-note { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 0; }
.rl-note b { color: #fff; }

/* rodadas da mão, acopladas embaixo do placar */
.sb-rounds { background: #20435b; border-radius: 0 0 14px 14px; padding: 7px 10px 10px; }
.sb-rl { display: block; text-align: center; font-size: 9.5px; text-transform: uppercase; letter-spacing: .2em; color: #8a96a5; font-weight: 800; margin-bottom: 6px; }
.sb-rd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rd { display: flex; flex-direction: column; align-items: center; padding: 4px 2px 5px; border-radius: 8px; background: rgba(255, 255, 255, .05); border: 1px dashed rgba(255, 255, 255, .14); }
.rd small { font-size: 9.5px; font-weight: 800; color: #8a96a5; letter-spacing: .08em; }
.rd b { font-family: var(--display); font-weight: 400; font-size: 17px; letter-spacing: .06em; line-height: 1.05; color: #5b6573; text-transform: uppercase; }
.rd.cur { border: 1px solid #8db4c6; animation: rd-cur 1.4s ease-in-out infinite; }
.rd.cur b { font-size: 12px; color: #8db4c6; padding-top: 3px; }
@keyframes rd-cur { 50% { box-shadow: 0 0 12px rgba(141, 180, 198, .45); } }
.rd.w, .rd.l, .rd.t { border-style: solid; }
.rd.fresh { animation: rd-in .6s cubic-bezier(.3, 1.7, .5, 1) both; }
.rd.w { background: linear-gradient(180deg, #b9d2de, #62a5c6); border-color: #b9d2de; box-shadow: 0 0 14px rgba(141, 180, 198, .55); }
.rd.w small, .rd.w b { color: #061019; }
.rd.l { background: #f4f7fb; border-color: #fff; }
.rd.l small, .rd.l b { color: #0d1c26; }
.rd.t { background: #ffb020; border-color: #ffcf5a; }
.rd.t small, .rd.t b { color: #1a1000; }
@keyframes rd-in { from { transform: scale(1.5); opacity: 0; } }

/* prêmio: menos brilho; botão dentro do bilhete */
.tk-prize { box-shadow: 0 0 0 1.5px var(--acc), 0 4px 10px rgba(3, 12, 18, .25); }
.tk-prize b { text-shadow: 0 0 6px rgba(255, 255, 255, .25); animation: none; }
.tk-prize::after { background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .1) 50%, transparent 58%); animation-duration: 4.5s; }
.tk-main .tk-btn { margin: 10px 4px 0; width: calc(100% - 8px); padding: 11px 14px; font-size: 26px; border-radius: 10px; box-shadow: 0 4px 0 #000; }
.tk-main .tk-btn:hover:not(:disabled) { box-shadow: 0 4px 0 #15508a, 0 0 14px color-mix(in srgb, var(--acc) 40%, transparent); }

/* =========== MESA: ajustes =========== */
/* placar no canto superior esquerdo da tela */
.scoreboard.sb2 { position: fixed; left: 16px; top: 70px; z-index: 20; }
/* nós = verde suave, eles = vermelho suave */
.sb-team.us .p { color: #8ee6a8; text-shadow: 0 0 12px rgba(142, 230, 168, .55); }
.sb-team.them .p { color: #ff9a9a; text-shadow: 0 0 12px rgba(255, 154, 154, .45); }
.sb-team.us .n { color: #2f8a4f; } .sb-team.them .n { color: #b84545; }
.sb-team.us .sb-pips i.on { background: #5fcf84; box-shadow: 0 0 6px rgba(95, 207, 132, .6); }
.sb-team.them .sb-pips i.on { background: #ec7b7b; box-shadow: 0 0 6px rgba(236, 123, 123, .5); }
@keyframes sb-flash { 0% { background: rgba(142, 230, 168, .5); } 100% { background: transparent; } }
.sb-team.them.bump { animation-name: sb-flash-r; }
@keyframes sb-flash-r { 0% { background: rgba(255, 154, 154, .5); } 100% { background: transparent; } }
.rd.w { background: linear-gradient(180deg, #b9f2c9, #7fd99c); border-color: #b9f2c9; box-shadow: 0 0 12px rgba(127, 217, 156, .5); }
.rd.w small, .rd.w b { color: #0b2a15; }
.rd.l { background: linear-gradient(180deg, #ffc9c9, #f39494); border-color: #ffc9c9; box-shadow: 0 0 12px rgba(243, 148, 148, .45); }
.rd.l small, .rd.l b { color: #3a0b0b; }
.played.win.us .card { box-shadow: 0 0 0 3px #8ee6a8, 0 0 40px rgba(142, 230, 168, .75); }
.played.win.them .card { box-shadow: 0 0 0 3px #ff9a9a, 0 0 40px rgba(255, 154, 154, .6); }
.played.win.us .win-badge { background: #8ee6a8; color: #062012; box-shadow: 0 6px 18px rgba(142, 230, 168, .5); }
.played.win.them .win-badge { background: #ff9a9a; color: #2a0606; box-shadow: 0 6px 18px rgba(255, 154, 154, .45); }

/* janela de truco: centralizada logo acima da mão, menor */
.overlay.pop { place-items: end center; padding: 0 0 245px; background: none; }
.overlay.pop .modal { max-width: 340px; padding: 0 16px 14px; background: rgba(36, 79, 104, .97); }
.overlay.pop .modal h3 { font-size: 32px; }
.overlay.pop .modal p { font-size: 13px; margin: 4px 0 10px; }
.overlay.pop .row .btn { padding: 9px 14px; }
.pop-timer { margin: 0 -16px 10px; height: 22px; }
@media (max-width: 700px) { .overlay.pop { padding-bottom: 190px; } }

/* banner de quem ganhou: fundo mais sólido pra não misturar com a mesa */
.hand-banner.us { background: radial-gradient(ellipse at center, rgba(20, 60, 35, .85), rgba(9, 23, 31, .9) 70%); }
.hand-banner.them { background: radial-gradient(ellipse at center, rgba(60, 20, 20, .85), rgba(8, 20, 28, .9) 70%); }
.hand-banner.tie { background: rgba(8, 20, 28, .88); }
.hb-card { background: linear-gradient(180deg, #326481, #20435b); }

/* manilhas maiores e chat fora do caminho */
.manilhas-fixas { padding: 10px 12px; gap: 6px; background: rgba(29, 66, 90, .95); box-shadow: 0 10px 26px rgba(3, 12, 18, .5); }
.manilhas-fixas .card { width: 50px; }
.manilhas-fixas span { font-size: 11px; font-weight: 800; color: #cfe6fb; }
.chatlog { left: auto; right: 18px; bottom: 64px; align-items: flex-end; text-align: right; }

/* jogar coberta: botão de verdade */
.btn-cover { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 12px; cursor: pointer; text-align: left;
  border: 1px solid var(--line2); background: linear-gradient(180deg, #39708f, #244f68); color: #e8eef5; font-weight: 800; font-size: 14px;
  box-shadow: 0 4px 0 #000; transition: transform .1s, box-shadow .1s, background .2s; }
.btn-cover small { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.btn-cover .bc-card { width: 22px; height: 32px; border-radius: 4px; flex-shrink: 0; border: 1.5px solid #8db4c6;
  background: repeating-linear-gradient(45deg, #60a5c8 0 3px, #184d8a 3px 6px); transition: transform .3s; }
.btn-cover:hover { background: linear-gradient(180deg, #222935, #2c5975); }
.btn-cover:hover .bc-card { transform: rotateY(180deg); }
.btn-cover:active { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
.btn-cover.on { background: linear-gradient(180deg, #b9d2de, #62a5c6); color: #061019; border-color: #b9d2de; box-shadow: 0 4px 0 #60a5c8, 0 0 18px rgba(141, 180, 198, .5); }
.btn-cover.on small { color: #0d3b63; }
.myhand .card.cover-armed { filter: brightness(.85); outline: 2px dashed #8db4c6; outline-offset: 3px; }

/* =========== BOTÃO CAMPEONATO no topo =========== */
.cupbtn { position: relative; display: flex; align-items: center; gap: 10px; margin-left: 14px; padding: 7px 16px 7px 8px; border-radius: 14px; overflow: hidden;
  text-decoration: none; color: #1a1000; background: linear-gradient(135deg, #ffe08a 0%, #f5b82e 45%, #d98a0b 100%);
  box-shadow: 0 0 0 1px #ffe9a8 inset, 0 6px 18px rgba(245, 184, 46, .35); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s;
  animation: cup-pulse 2.8s ease-in-out infinite; }
.cupbtn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 0 0 1px #fff2c4 inset, 0 10px 28px rgba(245, 184, 46, .55); }
.cupbtn.active { box-shadow: 0 0 0 2px #fff inset, 0 0 0 3px #f5b82e, 0 8px 24px rgba(245, 184, 46, .55); }
.cup-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #1a1000; color: #ffd75e; }
.cup-ic svg { width: 22px; height: 22px; animation: cup-wiggle 3.5s ease-in-out infinite; }
.cup-tx { display: flex; flex-direction: column; line-height: 1.05; }
.cup-tx b { font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: .06em; }
.cup-tx small { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.cup-shine { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .7) 50%, transparent 65%); transform: translateX(-120%); animation: cup-shine 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes cup-shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes cup-wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-12deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-6deg); } }
@keyframes cup-pulse { 50% { box-shadow: 0 0 0 1px #ffe9a8 inset, 0 6px 26px rgba(245, 184, 46, .6); } }
@media (max-width: 900px) { .cup-tx small { display: none; } .cupbtn { padding-right: 10px; } }
.badge.cup { background: linear-gradient(135deg, #ffe08a, #f5b82e); color: #1a1000; }

/* =========== PÁGINA DO CAMPEONATO =========== */
.tz { max-width: 1180px; }
.tz-hero { position: relative; display: flex; align-items: center; gap: 26px; padding: 26px 30px; border-radius: 24px; margin-bottom: 18px; overflow: hidden;
  background: radial-gradient(90% 140% at 0% 0%, rgba(245, 184, 46, .28), transparent 60%), linear-gradient(135deg, #1a1508, #20435b 70%);
  border: 1px solid rgba(245, 184, 46, .35); box-shadow: 0 20px 50px rgba(3, 12, 18, .45); }
.tz-hero h1 { font-family: var(--display); font-weight: 400; font-size: 52px; letter-spacing: .03em; margin: 2px 0 6px; line-height: 1;
  background: linear-gradient(180deg, #fff6d6, #f5b82e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tz-hero p { margin: 0; color: #d7cfb8; max-width: 640px; line-height: 1.5; }
.tz-hero p b { color: #ffd75e; }
.tz-kicker { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .2em; color: #f5b82e; }
.tz-cup { position: relative; flex-shrink: 0; width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; color: #ffd75e;
  background: radial-gradient(circle at 35% 30%, #3a2c08, #20435b 70%); border: 2px solid #f5b82e; box-shadow: 0 0 0 6px rgba(245, 184, 46, .12), 0 0 40px rgba(245, 184, 46, .35); }
.tz-cup svg { width: 60px; height: 60px; position: relative; z-index: 1; animation: cup-float 3s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(255, 215, 94, .6)); }
.tz-cup.sm { width: 64px; height: 64px; } .tz-cup.sm svg { width: 34px; height: 34px; }
.tz-rays { position: absolute; inset: -30px; border-radius: 50%; background: repeating-conic-gradient(rgba(245, 184, 46, .18) 0 10deg, transparent 10deg 24deg);
  -webkit-mask: radial-gradient(circle, transparent 40%, #000 45%, transparent 72%); mask: radial-gradient(circle, transparent 40%, #000 45%, transparent 72%); animation: rays 14s linear infinite; }
@keyframes cup-float { 50% { transform: translateY(-4px) rotate(-3deg); } }
.tz .modetoggle { margin-bottom: 16px; }
.tz-sec { font-size: 13px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin: 22px 0 12px; }
.tz-me { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; margin-bottom: 8px;
  background: linear-gradient(90deg, rgba(245, 184, 46, .18), rgba(245, 184, 46, .04)); border: 1px solid rgba(245, 184, 46, .45); }
.tz-me > div { flex: 1; display: flex; flex-direction: column; } .tz-me span { color: var(--muted); font-size: 13px; }
.tz-me-ic { font-size: 30px; animation: cup-float 3s ease-in-out infinite; }
.tz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tz-card { --c1: #c98a4b; --c2: #7a4a1d; position: relative; padding: 18px; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; gap: 12px;
  background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--c1) 30%, transparent), transparent 60%), linear-gradient(180deg, #2e5f7d, #1f475e);
  border: 1px solid color-mix(in srgb, var(--c1) 55%, transparent); box-shadow: 0 14px 34px rgba(3, 12, 18, .4); transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), box-shadow .25s; }
.tz-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(3, 12, 18, .5), 0 0 24px color-mix(in srgb, var(--c1) 30%, transparent); }
.tz-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .08) 50%, transparent 60%); transform: translateX(-100%); animation: cup-shine 5s ease-in-out infinite; }
.cup-0 { --c1: #d08a4e; } .cup-1 { --c1: #c4ced9; } .cup-2 { --c1: #f5b82e; } .cup-3 { --c1: #5fd6f0; } .cup-4 { --c1: #ff6b5a; }
.tz-card.mine { box-shadow: 0 0 0 2px var(--c1), 0 14px 34px rgba(3, 12, 18, .4); }
.tz-top { display: flex; justify-content: space-between; align-items: center; }
.tz-tier { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .14em; color: #0d1c26; background: var(--c1); padding: 4px 10px; border-radius: 8px; }
.tz-mode { font-size: 11px; color: var(--muted); font-weight: 700; }
.tz-buy small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-weight: 800; }
.tz-buy b { font-family: var(--display); font-weight: 400; font-size: 46px; line-height: 1; color: #fff; }
.tz-prizes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tz-prizes > div { padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); display: flex; flex-direction: column; }
.tz-prizes .p1 { background: linear-gradient(180deg, rgba(245, 184, 46, .2), rgba(245, 184, 46, .05)); border-color: rgba(245, 184, 46, .4); }
.tz-prizes span { font-size: 11px; font-weight: 800; color: var(--muted); }
.tz-prizes b { font-family: var(--display); font-weight: 400; font-size: 24px; color: #fff; line-height: 1.1; }
.tz-prizes .p1 b { color: #ffd75e; }
.tz-prizes small { font-size: 10px; color: var(--muted); }
.tz-pot { font-size: 12px; color: var(--muted); } .tz-pot b { color: #fff; }
.tz-fill { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); } .tz-fill b { color: #fff; }
.tz-dots { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; }
.tz-dots i { height: 8px; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.tz-dots i.on { background: var(--c1); box-shadow: 0 0 6px color-mix(in srgb, var(--c1) 60%, transparent); }
.tz-btn { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px; border: 0; border-radius: 12px; cursor: pointer;
  font-family: var(--display); font-size: 24px; letter-spacing: .08em; color: #0d1c26; background: linear-gradient(180deg, #fff, #dfe6ee); box-shadow: 0 4px 0 #6b7480; transition: transform .1s, box-shadow .1s, filter .2s; }
.tz-btn em { font-style: normal; font-family: Inter, sans-serif; font-size: 12px; font-weight: 900; padding: 4px 9px; border-radius: 999px; background: #20435b; color: var(--c1); }
.tz-btn:hover:not(:disabled) { filter: brightness(1.08); background: linear-gradient(180deg, color-mix(in srgb, var(--c1) 40%, #fff), var(--c1)); }
.tz-btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #6b7480; }
.tz-btn:disabled { cursor: not-allowed; opacity: .5; font-size: 16px; }
.tz-btn.out { background: transparent; color: var(--c1); box-shadow: inset 0 0 0 2px var(--c1); font-size: 16px; }
.tz-link { text-align: center; font-size: 12px; color: var(--muted); }
.tz-run { display: flex; flex-direction: column; gap: 8px; }
.tz-runrow { display: grid; grid-template-columns: 170px 170px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; text-decoration: none; color: var(--text);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line2); transition: background .2s, transform .2s; }
.tz-runrow:hover { background: rgba(245, 184, 46, .08); transform: translateX(3px); }
.tz-runrow .st { font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.tz-runrow .go { color: #f5b82e; font-weight: 800; font-size: 13px; }
i.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 0 rgba(255, 77, 77, .6); animation: live-dot 1.4s infinite; margin-right: 6px; }
.tz-rules { margin-top: 22px; padding: 20px 24px; }
.tz-rules ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; color: #c9d1db; }
.tz-rules b { color: #fff; }

/* chave */
.tzb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 10px 0 18px; }
.tzb-status { padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line2); display: flex; align-items: center; }
.tzb-status.running { color: #fff; border-color: #ff4d4d; }
.tzb-status.finished { color: #1a1000; background: #f5b82e; }
.tzb { display: flex; gap: 26px; overflow-x: auto; padding: 6px 4px 20px; }
.tzb-col { flex: 1; min-width: 240px; display: flex; flex-direction: column; }
.tzb-stage { text-align: center; font-size: 11px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; color: #f5b82e; margin-bottom: 12px; }
.tzb-ms { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 14px; }
.tzm { position: relative; padding: 10px; border-radius: 14px; background: linear-gradient(180deg, #2e5f7d, #214861); border: 1px solid var(--line2); display: flex; flex-direction: column; gap: 6px; }
.tzm.st-playing { border-color: #ff4d4d; box-shadow: 0 0 18px rgba(255, 77, 77, .2); }
.tzm.mine { box-shadow: 0 0 0 2px #8db4c6, 0 0 20px rgba(141, 180, 198, .25); }
.tzm-st { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); display: flex; align-items: center; }
.tzm-st.live { color: #ff7a7a; } .tzm-st.soon { color: #ffd75e; } .tzm-st.soon i { font-style: normal; margin-left: 4px; }
.tzm-team { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.tzm-team .avs { display: flex; } .tzm-team .avs > * { width: 26px; height: 26px; } .tzm-team .avs > * + * { margin-left: -8px; }
.tzm-team .nm { flex: 1; font-size: 12.5px; font-weight: 700; line-height: 1.25; }
.tzm-team .sc { font-family: var(--display); font-weight: 400; font-size: 24px; min-width: 26px; text-align: right; }
.tzm-team.win { background: linear-gradient(90deg, rgba(142, 230, 168, .2), rgba(142, 230, 168, .04)); }
.tzm-team.win .sc { color: #8ee6a8; }
.tzm-team.lost { opacity: .45; }
.tzm-team.me .nm { color: #8db4c6; }
.tzm-team.tbd { opacity: .5; font-style: italic; }
.tzm-go { margin-top: 4px; }
.tzb-col.champ { min-width: 200px; }
.tzc { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 14px; border-radius: 18px; text-align: center;
  background: linear-gradient(180deg, rgba(245, 184, 46, .14), rgba(245, 184, 46, .02)); border: 1px dashed rgba(245, 184, 46, .5); }
.tzc.on { border-style: solid; box-shadow: 0 0 30px rgba(245, 184, 46, .3); }
.tzc b { font-size: 15px; } .tzc span { color: #ffd75e; font-weight: 800; font-size: 13px; }
.tzc .avs { display: flex; gap: 4px; } .tzc .avs > * { width: 40px; height: 40px; }
.tzr { padding: 18px; }
.tzr-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.tzr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tzr-slot { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; border: 1px dashed var(--line2); color: var(--muted); font-size: 13px; }
.tzr-slot > :first-child { width: 30px; height: 30px; flex-shrink: 0; }
.tzr-slot.on { border-style: solid; color: var(--text); background: rgba(255, 255, 255, .03); animation: man-in .4s cubic-bezier(.3, 1.5, .5, 1) both; }
.tzr-slot.me { border-color: #8db4c6; }
.tzr-slot .q { display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .05); font-weight: 900; }
@media (max-width: 700px) { .tz-hero { flex-direction: column; text-align: center; } .tz-hero h1 { font-size: 38px; } .tz-runrow { grid-template-columns: 1fr; } }
.wo-note { padding: 8px 12px; border-radius: 10px; background: rgba(255, 176, 32, .12); border: 1px solid rgba(255, 176, 32, .4); font-size: 13px; }

/* banner de fim de mão: só o cartão no centro da mesa, sem cobrir placar, manilhas, botões e seu perfil */
.hand-banner, .hand-banner.us, .hand-banner.them, .hand-banner.tie { background: none; border-radius: 0; overflow: visible; z-index: 12; }
.hb-rays { width: 520px; height: 520px; margin: -260px 0 0 -260px; opacity: .35; }
.hb-card { box-shadow: 0 24px 60px rgba(3, 12, 18, .75); }

/* chave: status com prefixo próprio (não herdar estilos de .waiting) e avatares compactos */
.tzm .tzm-team { width: 100%; box-sizing: border-box; }
.tzm-team .avs .bot-tag { display: none; }
.cup-tx small { white-space: nowrap; }

/* bilhete mais baixo: detalhes de valor em linha fina embaixo do botão */
.tk-fine { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 8px 4px 0; font-size: 11px; color: var(--muted-ink); font-weight: 600; white-space: nowrap; }
.tk-fine i { width: 1px; height: 11px; background: #cfc7b5; }
.tk-fine b { color: var(--ink); font-weight: 800; }
.tk-mid { padding: 8px 4px 4px; }
.tk-val { font-size: 52px; }
.tk-prize { margin-top: 6px; padding: 8px 12px; }
.tk-main { padding-top: 12px; padding-bottom: 12px; }
/* linha fina no mesmo estilo do antigo cabeçalho do bilhete */
.tk-fine { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; color: var(--muted-ink); padding-top: 8px; border-top: 1px solid #d8d0bf; gap: 10px; }
.tk-fine b { color: #8a2b2b; font-family: 'Courier New', monospace; letter-spacing: .04em; font-size: 11px; }
.tk-mid { padding-top: 2px; }
.tk-fine { letter-spacing: .05em; gap: 7px; font-size: 9.5px; overflow: hidden; }
.tk-fine b { font-size: 10.5px; letter-spacing: 0; }
/* carimbos de Mestre e Lenda: parados na mesma posição dos outros, só um pulso leve */
.tier-6 .tk-stamp, .tier-7 .tk-stamp { animation: tk-twinkle 2.6s ease-in-out infinite; }
.tk-fine { justify-content: space-between; letter-spacing: .04em; }

/* botão Campeonatos v2: escuro, borda dourada, texto dourado e troféu ilustrado */
.cupbtn { color: #ffd75e; padding: 6px 18px 6px 8px; gap: 8px; animation: none;
  background: linear-gradient(180deg, #2a2108, #1d445a) padding-box, linear-gradient(135deg, #fff0b3, #f5b82e 40%, #a86b08 70%, #ffe08a) border-box;
  border: 1.5px solid transparent; box-shadow: 0 6px 18px rgba(3, 12, 18, .45), 0 0 16px rgba(245, 184, 46, .18); }
.cupbtn:hover { box-shadow: 0 10px 26px rgba(3, 12, 18, .5), 0 0 26px rgba(245, 184, 46, .4); }
.cupbtn.active { box-shadow: 0 0 0 2px rgba(245, 184, 46, .5), 0 0 26px rgba(245, 184, 46, .4); }
.cup-art { width: 40px; height: 40px; display: grid; place-items: center; }
.cup-art svg { width: 38px; height: 38px; filter: drop-shadow(0 2px 6px rgba(245, 184, 46, .5)); animation: cup-wiggle 3.5s ease-in-out infinite; transform-origin: 50% 90%; }
.cupbtn .cup-tx { font-family: var(--display); font-size: 23px; letter-spacing: .07em; line-height: 1;
  background: linear-gradient(180deg, #fff6d6, #f5b82e 60%, #d98a0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cup-shine { background: linear-gradient(105deg, transparent 40%, rgba(255, 240, 180, .25) 50%, transparent 60%); }
.tz-feenote { display: inline-block; margin-top: 8px; font-size: 11px; color: #a89c7c; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(245, 184, 46, .25); }


/* =========== BILHETE: prêmio e botão no clima de bilhete antigo =========== */
.tk-prize { background: repeating-linear-gradient(-45deg, rgba(3, 12, 18, .025) 0 2px, transparent 2px 5px), #ebe3cf;
  border: 2px solid var(--acc); box-shadow: inset 0 0 0 3px #ebe3cf, inset 0 0 0 4px color-mix(in srgb, var(--acc) 55%, transparent); border-radius: 6px; padding: 8px 14px; }
.tk-prize span { color: var(--acc); font-weight: 900; letter-spacing: .16em; }
.tk-prize b { color: var(--ink); text-shadow: none; font-size: 32px; }
.tk-prize::after { background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .45) 50%, transparent 58%); }
.tk-main .tk-btn { border-radius: 6px; color: #f4f0e6; font-size: 25px; letter-spacing: .14em;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 5px), color-mix(in srgb, var(--acc) 78%, #1a1206);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--acc) 78%, #1a1206), inset 0 0 0 4px rgba(244, 240, 230, .55), 0 3px 0 color-mix(in srgb, var(--acc) 50%, #000); }
.tk-main .tk-btn::before { color: #f4f0e6; }
.tk-main .tk-btn em { background: #f4f0e6; color: color-mix(in srgb, var(--acc) 80%, #000); font-family: 'Courier New', monospace; font-weight: 900; border-radius: 4px; }
.tk-main .tk-btn:hover:not(:disabled) { background: color-mix(in srgb, var(--acc) 92%, #000); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--acc) 92%, #000), inset 0 0 0 4px rgba(244, 240, 230, .75), 0 3px 0 color-mix(in srgb, var(--acc) 50%, #000); }
.tk-main .tk-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--acc) 78%, #1a1206), inset 0 0 0 4px rgba(244, 240, 230, .55); }
.tk-main .tk-btn:disabled { background: #cfc7b5; color: #6f6a5f; box-shadow: none; }

/* =========== CAMPEONATO: cards =========== */
.tz-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .tz-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tz-grid { grid-template-columns: 1fr; } }
.tz-pot { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.tz-pot span { font-size: 13px; } .tz-pot em { font-style: normal; color: var(--muted); font-size: 11px; }
.tz-pot small { font-size: 11px; color: var(--muted); }
.tz-when { font-size: 11px; color: #ffd75e; font-weight: 700; } .tz-when i { font-style: normal; }
.tz-mini { align-self: center; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; text-decoration: none;
  color: var(--c1); padding: 5px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c1) 50%, transparent);
  background: color-mix(in srgb, var(--c1) 10%, transparent); transition: background .2s, transform .2s; }
.tz-mini:hover { background: color-mix(in srgb, var(--c1) 22%, transparent); transform: translateY(-1px); }
.tz-prizes small { font-size: 9.5px; }

/* grande campeonato: ocupa a linha inteira */
.tz-big { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 22px; align-items: center; padding: 24px 26px;
  background: radial-gradient(70% 120% at 0% 0%, color-mix(in srgb, var(--c1) 35%, transparent), transparent 60%),
    radial-gradient(60% 120% at 100% 100%, rgba(245, 184, 46, .18), transparent 60%), linear-gradient(135deg, #295674, #20435b 70%);
  border: 1.5px solid color-mix(in srgb, var(--c1) 70%, transparent); box-shadow: 0 20px 50px rgba(3, 12, 18, .5), 0 0 40px color-mix(in srgb, var(--c1) 18%, transparent); }
.tz-big .tzg-left, .tz-big .tzg-mid, .tz-big .tzg-right { display: flex; flex-direction: column; gap: 12px; }
.tz-big .tz-top { flex-direction: column; align-items: flex-start; gap: 6px; }
.tzg-cup svg { width: 86px; height: 86px; filter: drop-shadow(0 6px 18px rgba(245, 184, 46, .55)); animation: cup-float 3s ease-in-out infinite; }
.tz-big .tz-buy b { font-size: 58px; }
.tz-big .tz-prizes b { font-size: 30px; }
.tz-big .tz-dots { gap: 2px; }
@media (max-width: 900px) { .tz-big { grid-template-columns: 1fr; } }
.tz-logo { margin-left: auto; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-right: 10px; }
.tz-logo img { width: 104px; filter: drop-shadow(0 10px 24px rgba(3, 12, 18, .6)) drop-shadow(0 0 18px rgba(245, 184, 46, .25)); animation: tz-logo 4s ease-in-out infinite; }
.tz-logo span { font-family: var(--display); font-size: 26px; letter-spacing: .08em; color: #fff; }
.tz-logo span b { font-weight: 400; color: #8db4c6; }
@keyframes tz-logo { 50% { transform: translateY(-5px) rotate(4deg); } }
@media (max-width: 900px) { .tz-logo { display: none; } }
/* preço no botão Jogar: maior e em negrito, fácil de ler */
.tk-main .tk-btn em { font-family: Inter, system-ui, sans-serif; font-size: 15px; font-weight: 900; letter-spacing: .01em; padding: 4px 11px; }
/* preço no botão Inscrever: sem pastilha, só o valor, maior */
.tz-btn em { background: none; padding: 0; border-radius: 0; color: #0d1c26; font-size: 17px; font-weight: 900; letter-spacing: .01em; }
/* Grande Campeonato: coluna da esquerda centralizada (título, troféu, inscrição e valor) */
.tz-big .tzg-left { align-items: center; text-align: center; }
.tz-big .tz-top { align-items: center; }
.tz-big .tz-buy { display: flex; flex-direction: column; align-items: center; }

/* =========== CAMPEONATO: cards como bilhete (versão premium) =========== */
.cup-0 { --c1: #d08a4e; --ink-c: #8a4a17; } .cup-1 { --c1: #b9c4d0; --ink-c: #55657a; } .cup-2 { --c1: #f5b82e; --ink-c: #a06c06; }
.cup-3 { --c1: #5fd6f0; --ink-c: #3ec7ea; } .cup-4 { --c1: #ff6b5a; --ink-c: #b3261e; }
.tz-card { --paper: #f4f0e6; --ink: #152b38; --muted-ink: #6f6a5f;
  color: var(--ink); border: 0; border-radius: 16px; padding: 0 18px 16px; gap: 10px;
  background:
    repeating-linear-gradient(0deg, rgba(3, 12, 18, .018) 0 1px, transparent 1px 3px),
    radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--c1) 22%, transparent), transparent 60%),
    radial-gradient(120% 90% at 20% 0%, #fbf8f1, var(--paper) 60%, #e9e3d4);
  box-shadow: 0 14px 30px rgba(3, 12, 18, .45), inset 0 0 0 1px rgba(3, 12, 18, .06); }
.tz-card:hover { box-shadow: 0 20px 40px rgba(3, 12, 18, .55), 0 0 26px color-mix(in srgb, var(--c1) 35%, transparent); }
.tz-card.mine { box-shadow: 0 0 0 3px var(--c1), 0 14px 30px rgba(3, 12, 18, .45); }
.tz-card::after { background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .5) 50%, transparent 60%); mix-blend-mode: soft-light; }
/* faixa metálica da copa no topo */
.tz-card .tz-top { margin: 0 -18px; padding: 11px 18px; border-radius: 16px 16px 0 0;
  background: linear-gradient(110deg, color-mix(in srgb, var(--c1) 70%, #000) 0%, var(--c1) 35%, color-mix(in srgb, var(--c1) 45%, #fff) 50%, var(--c1) 65%, color-mix(in srgb, var(--c1) 70%, #000) 100%);
  background-size: 220% 100%; animation: tz-foil 6s ease-in-out infinite; }
@keyframes tz-foil { 50% { background-position: 100% 0; } }
.tz-card .tz-tier { background: none; padding: 0; color: #0d1c26; font-size: 12px; letter-spacing: .18em; }
.tz-card .tz-mode { color: rgba(13, 28, 38, .75); font-weight: 800; }
/* valor da inscrição na cor da copa */
.tz-card .tz-buy { text-align: center; padding-top: 4px; }
.tz-card .tz-buy small { color: var(--muted-ink); }
.tz-card .tz-buy b { color: var(--ink-c); text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
/* prêmios em quadros de papel carimbados */
.tz-card .tz-prizes > div { background: #ebe3cf; border: 1.5px solid color-mix(in srgb, var(--ink-c) 45%, transparent); border-radius: 8px; align-items: center; text-align: center; }
.tz-card .tz-prizes .p1 { border: 2px solid var(--c1); box-shadow: inset 0 0 0 2px #ebe3cf, inset 0 0 0 3px color-mix(in srgb, var(--c1) 60%, transparent); }
.tz-card .tz-prizes span { color: var(--muted-ink); }
.tz-card .tz-prizes b, .tz-card .tz-prizes .p1 b { color: var(--ink); }
.tz-card .tz-prizes .p1 b { color: var(--ink-c); }
.tz-card .tz-prizes small { color: var(--muted-ink); }
.tz-card .tz-pot span, .tz-card .tz-pot b { color: var(--ink); }
.tz-card .tz-pot em, .tz-card .tz-pot small { color: var(--muted-ink); }
/* picote: daqui pra baixo é o canhoto da inscrição */
.tz-card .tz-fill { position: relative; margin-top: 4px; padding-top: 14px; color: var(--muted-ink); text-align: center; align-items: center; }
.tz-card .tz-fill b { color: var(--ink); }
.tz-perf { position: absolute; left: -18px; right: -18px; top: 0; border-top: 2px dashed #b9b2a2; }
.tz-perf::before, .tz-perf::after { content: ''; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.tz-perf::before { left: -11px; } .tz-perf::after { right: -11px; }
.tz-card .tz-dots { width: 100%; }
.tz-card .tz-dots i { background: rgba(3, 12, 18, .1); }
.tz-card .tz-dots i.on { background: var(--ink-c); box-shadow: none; }
.tz-card .tz-when { color: var(--ink-c); }
/* botão carimbado na cor da copa, igual aos bilhetes de mesa */
.tz-card .tz-btn { border-radius: 8px; color: #f4f0e6; letter-spacing: .14em;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 5px), color-mix(in srgb, var(--ink-c) 85%, #1a1206);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--ink-c) 85%, #1a1206), inset 0 0 0 4px rgba(244, 240, 230, .55), 0 3px 0 color-mix(in srgb, var(--ink-c) 55%, #000); }
.tz-card .tz-btn em { color: #f4f0e6; }
.tz-card .tz-btn:hover:not(:disabled) { filter: none; background: color-mix(in srgb, var(--ink-c) 100%, #000); }
.tz-card .tz-btn:disabled { background: #cfc7b5; color: #6f6a5f; box-shadow: none; opacity: 1; }
.tz-card .tz-btn.out { background: transparent; color: var(--ink-c); box-shadow: inset 0 0 0 2px var(--ink-c); }
.tz-card .tz-mini { color: var(--ink-c); border-color: color-mix(in srgb, var(--ink-c) 45%, transparent); background: color-mix(in srgb, var(--c1) 14%, transparent); }

/* Grande Campeonato: bilhete largo, canhoto na direita */
.tz-big { --stub: 300px; grid-template-columns: 1fr 1.3fr var(--stub); padding: 0 26px 0 26px; gap: 22px; align-items: stretch;
  background:
    repeating-linear-gradient(0deg, rgba(3, 12, 18, .018) 0 1px, transparent 1px 3px),
    radial-gradient(60% 120% at 0% 0%, color-mix(in srgb, var(--c1) 22%, transparent), transparent 60%),
    radial-gradient(60% 120% at 100% 100%, rgba(245, 184, 46, .18), transparent 60%),
    radial-gradient(120% 90% at 20% 0%, #fbf8f1, var(--paper) 60%, #e9e3d4);
  border: 0; box-shadow: 0 20px 44px rgba(3, 12, 18, .5), 0 0 34px color-mix(in srgb, var(--c1) 20%, transparent);
  -webkit-mask: radial-gradient(circle 13px at calc(100% - 26px - var(--stub) - 11px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle 13px at calc(100% - 26px - var(--stub) - 11px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 13px at calc(100% - 26px - var(--stub) - 11px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle 13px at calc(100% - 26px - var(--stub) - 11px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat; }
.tz-big .tzg-left, .tz-big .tzg-mid, .tz-big .tzg-right { padding: 22px 0; justify-content: center; }
.tz-big .tzg-right { position: relative; padding-left: 0; }
.tz-big .tzg-right::before { content: ''; position: absolute; left: -12px; top: 0; bottom: 0; border-left: 2px dashed #b9b2a2; }
.tz-big .tzg-right .tz-perf { display: none; }
.tz-big .tzg-right .tz-fill { padding-top: 0; margin-top: 0; }
.tz-big .tz-top { margin: 0; border-radius: 10px; padding: 8px 14px; }
.tz-big .tz-top .tz-mode { font-size: 11px; }
@media (max-width: 900px) { .tz-big { grid-template-columns: 1fr; -webkit-mask: none; mask: none; padding-bottom: 16px; } .tz-big .tzg-right::before { display: none; } }

/* =========== sininho de notificações =========== */
.bellbtn { position: relative; width: 40px; height: 36px; display: grid; place-items: center; border-radius: 10px; cursor: pointer;
  background: transparent; border: 1px solid var(--line2); color: var(--text); transition: background .2s, border-color .2s; }
.bellbtn:hover { background: rgba(141, 180, 198, .1); border-color: rgba(141, 180, 198, .5); }
.bellbtn svg { width: 19px; height: 19px; }
.bellbtn.ring svg { animation: bell-ring 2.4s ease-in-out infinite; transform-origin: 50% 10%; color: #8db4c6; }
@keyframes bell-ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(16deg); } 80% { transform: rotate(-14deg); } 85% { transform: rotate(10deg); } 90% { transform: rotate(-6deg); } }
.bell-n { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: none;
  background: #ff4d4d; color: #fff; font-size: 10.5px; font-weight: 900; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.bell-n.on { display: block; animation: bump .5s cubic-bezier(.3, 1.8, .5, 1); }
.notes-panel { position: fixed; top: 74px; right: 18px; z-index: 80; width: 380px; max-height: 70vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #31607e, #214861); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 30px 70px rgba(3, 12, 18, .7);
  animation: np-in .25s cubic-bezier(.3, 1.4, .5, 1); overflow: hidden; }
@keyframes np-in { from { transform: translateY(-8px) scale(.97); opacity: 0; } }
.np-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line2); }
.np-x { background: none; border: 0; color: var(--muted); font-size: 16px; cursor: pointer; }
.np-x:hover { color: #fff; }
.np-list { overflow-y: auto; padding: 6px; }
.np-item { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: start; padding: 10px 10px; border-radius: 10px;
  color: #c9d1db; text-decoration: none; font-size: 13px; line-height: 1.45; transition: background .15s; }
a.np-item:hover { background: rgba(141, 180, 198, .08); }
.np-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: transparent; }
.np-item.new { color: #fff; background: rgba(141, 180, 198, .05); }
.np-item.new .np-dot { background: #8db4c6; box-shadow: 0 0 8px rgba(141, 180, 198, .8); }
.np-item.ok.new .np-dot { background: #8ee6a8; box-shadow: 0 0 8px rgba(142, 230, 168, .8); }
.np-at { font-size: 11px; color: var(--muted); white-space: nowrap; }
.np-empty { padding: 24px 16px; text-align: center; color: var(--muted); font-size: 13px; }
@media (max-width: 500px) { .notes-panel { left: 10px; right: 10px; width: auto; } }

/* =========== campeonato: cancelar em vermelho e prêmios sem quebrar linha =========== */
.tz-card .tz-btn.out { background: #fbe4e1; color: #b3261e; box-shadow: inset 0 0 0 2px #b3261e, 0 3px 0 #7a1712; font-size: 15px; letter-spacing: .06em; }
.tz-card .tz-btn.out:hover:not(:disabled) { background: #b3261e; color: #fff; box-shadow: inset 0 0 0 2px #7a1712, 0 3px 0 #5a0f0b; }
.tz-card .tz-prizes b { font-size: 21px; white-space: nowrap; }
.tz-big .tz-prizes b { font-size: 30px; }
/* topo sem apertar: botão de campeonatos e saldo nunca quebram */
.cupbtn { flex-shrink: 0; white-space: nowrap; margin-left: 10px; }
.wallet, .wallet .amount, .wallet .label { white-space: nowrap; }
.wallet { flex-shrink: 0; }
.topbar .userchip > div { white-space: nowrap; }
@media (max-width: 1500px) { .mainnav .navbtn { padding-left: 10px; padding-right: 10px; } }
@media (max-width: 1350px) { .userchip > div { display: none; } }
.tz-card .tz-btn:disabled { font-size: 13px; letter-spacing: .05em; line-height: 1.2; }

/* menu do topo: aba selecionada escura com texto azul (bem legível) */
.topbar .mainnav .navbtn.active { color: #b9d2de; background: linear-gradient(180deg, rgba(141, 180, 198, .2), rgba(141, 180, 198, .08));
  box-shadow: inset 0 0 0 1px rgba(141, 180, 198, .45), 0 0 18px rgba(141, 180, 198, .18); }
.topbar .mainnav .navbtn.active::after { width: 56%; left: 22%; background: #8db4c6; box-shadow: 0 0 8px #8db4c6; }
@media (max-width: 1500px) { .userchip > div { display: none; } }

/* =========== janela de truco v3 =========== */
.overlay.pop { padding-bottom: 200px; }
.overlay.pop .modal { max-width: 360px; padding: 0 18px 16px; text-align: center; border-color: rgba(141, 180, 198, .5); }
.tq-caller { display: inline-flex; align-items: center; gap: 10px; margin: 2px auto 6px; padding: 5px 14px 5px 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); text-align: left; }
.tq-caller > :first-child { width: 34px; height: 34px; }
.tq-caller b { display: block; font-size: 14px; line-height: 1.1; }
.tq-caller span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; color: #8db4c6; font-weight: 800; }
.tq-title { display: flex; align-items: center; justify-content: center; gap: 12px; }
.overlay.pop .tq-title h3 { margin: 0; font-size: 46px; line-height: 1; color: #fff; text-shadow: 0 0 22px rgba(141, 180, 198, .7); animation: tq-shake .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tq-shake { 0% { transform: scale(1.6) rotate(-6deg); opacity: 0; } 60% { transform: scale(.95) rotate(2deg); opacity: 1; } }
.tq-val { padding: 4px 10px; border-radius: 10px; background: #8db4c6; color: #061019; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.tq-val b { font-family: var(--display); font-weight: 400; font-size: 22px; vertical-align: -2px; margin-left: 2px; }
.overlay.pop .tq-sub { margin: 6px 0 12px; font-size: 13px; color: var(--muted); }
.tq-sub b { color: #fff; }
.tq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tq-btn { padding: 12px; border-radius: 12px; border: 0; cursor: pointer; font-family: var(--display); font-size: 22px; letter-spacing: .08em; transition: transform .1s, filter .2s; }
.tq-btn.run { background: linear-gradient(180deg, #ffd0cc, #f4a39b); color: #5a0f0b; box-shadow: 0 4px 0 #c96a61; }
.tq-btn.ok { background: linear-gradient(180deg, #cdf5d8, #92dfa8); color: #0b3a1b; box-shadow: 0 4px 0 #5daa75; }
.tq-btn:hover { filter: brightness(1.06); } .tq-btn:active { transform: translateY(3px); box-shadow: none; }
.tq-raise { position: relative; width: 100%; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: 12px; cursor: pointer; overflow: hidden;
  background: linear-gradient(135deg, #ffe08a, #f5b82e 45%, #e08a0b); color: #2a1600; box-shadow: 0 4px 0 #9a5d06, 0 0 22px rgba(245, 184, 46, .45);
  animation: tq-pulse 1.4s ease-in-out infinite; transition: transform .1s; }
.tq-raise::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%); transform: translateX(-100%); animation: cup-shine 2.2s ease-in-out infinite; }
@keyframes tq-pulse { 50% { box-shadow: 0 4px 0 #9a5d06, 0 0 34px rgba(245, 184, 46, .75); } }
.tq-raise:active { transform: translateY(3px); box-shadow: none; }
.tq-up { font-size: 18px; animation: tq-up 1s ease-in-out infinite; }
@keyframes tq-up { 50% { transform: translateY(-4px); } }
.tq-rl { font-family: var(--display); font-size: 28px; letter-spacing: .08em; }
.tq-jump { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 10px; background: #2a1600; color: #ffd75e; font-weight: 900; }
.tq-jump s { opacity: .55; font-size: 14px; } .tq-jump i { font-style: normal; font-size: 13px; }
.tq-jump b { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; color: #fff; text-shadow: 0 0 10px rgba(255, 215, 94, .9); }
.tq-btn.hinted, .tq-raise.hinted { outline: 3px solid #8db4c6; outline-offset: 3px; }
/* preço do botão Inscrever nunca quebra entre "R$" e o valor */
.tz-btn em { white-space: nowrap; font-size: 16px; }
.tz-card .tz-btn { gap: 10px; letter-spacing: .1em; }
/* Grande Campeonato: faixa colorida no topo igual aos outros bilhetes */
.tz-big { grid-template-rows: auto 1fr; row-gap: 0; }
.tz-big .tz-top { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; margin: 0 -26px; padding: 12px 26px; border-radius: 16px 16px 0 0; }
.tz-big .tz-top .tz-tier { font-size: 13px; }
.tz-big .tz-top .tz-mode { font-size: 12px; }

/* =========== LIGAS =========== */
.lg-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 6px; border-radius: 999px; font-size: 11px; font-weight: 900;
  letter-spacing: .06em; text-transform: uppercase; color: var(--lg); background: color-mix(in srgb, var(--lg) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--lg) 45%, transparent); white-space: nowrap; }
.lg-badge i { width: 12px; height: 12px; display: grid; } .lg-badge i svg { width: 100%; height: 100%; }
.lg-badge.uc { margin-top: 3px; font-size: 10px; }
.lg-7.lg-badge, .lg-6.lg-badge { box-shadow: 0 0 10px color-mix(in srgb, var(--lg) 40%, transparent); }
.uc-name { font-weight: 800; line-height: 1.1; }
.userchip { cursor: pointer; }

.lg-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 6px 14px; align-items: center; padding: 14px 16px; border-radius: 14px;
  background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--lg) 22%, transparent), transparent 60%), rgba(255, 255, 255, .03);
  border: 1px solid color-mix(in srgb, var(--lg) 40%, transparent); }
.lg-emblem { grid-row: span 2; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; color: var(--lg);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--lg) 35%, #356a8b), #20435b 75%); border: 2px solid var(--lg);
  box-shadow: 0 0 18px color-mix(in srgb, var(--lg) 40%, transparent); transform: rotate(-6deg); animation: lg-float 3.4s ease-in-out infinite; }
.lg-emblem i { width: 28px; height: 28px; display: grid; } .lg-emblem svg { width: 100%; height: 100%; }
@keyframes lg-float { 50% { transform: rotate(4deg) translateY(-2px); } }
.lg-info small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); font-weight: 800; }
.lg-info b { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; color: var(--lg); margin-right: 8px; }
.lg-info span { font-weight: 800; font-size: 13px; color: #fff; }
.lg-prog span { font-size: 12px; color: var(--muted); } .lg-prog b { color: #fff; }
.lg-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-bottom: 5px; }
.lg-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--lg) 60%, #000), var(--lg)); box-shadow: 0 0 10px var(--lg); transition: width .6s; }
.lg-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lg-li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .07); color: var(--lg); opacity: .5; }
.lg-li i { width: 18px; height: 18px; display: grid; } .lg-li svg { width: 100%; height: 100%; }
.lg-li b { font-size: 11px; color: #fff; } .lg-li span { font-size: 10px; color: var(--muted); }
.lg-li.done { opacity: .8; } .lg-li.cur { opacity: 1; border-color: var(--lg); background: color-mix(in srgb, var(--lg) 12%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--lg) 30%, transparent); }
.lg-how { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 10px 0 0; }
.lg-delta { display: inline-block; margin: 2px 0 8px; padding: 4px 12px; border-radius: 999px; font-weight: 900; font-size: 13px; }
.lg-delta.up { color: #0b3a1b; background: #92dfa8; } .lg-delta.down { color: #5a0f0b; background: #f4a39b; }

/* moldura da liga nos jogadores da mesa */
.plate.lgp { border-color: color-mix(in srgb, var(--lg) 55%, var(--line2)) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lg) 18%, transparent); }
.plate.lgp .avatar, .plate.lgp > div > .av { box-shadow: 0 0 0 2px var(--lg); border-radius: 50%; }
.plate.lgp-6, .plate.lgp-7 { box-shadow: 0 0 14px color-mix(in srgb, var(--lg) 35%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--lg) 30%, transparent); }
.lg-mini { color: var(--lg); font-weight: 900; }

/* janelinha de perfil */
.profile-pop { position: fixed; top: 74px; right: 18px; z-index: 81; width: 380px; max-height: calc(100vh - 90px); overflow-y: auto; padding: 18px;
  background: linear-gradient(180deg, #31607e, #214861); border: 1px solid var(--line2); border-radius: 18px; box-shadow: 0 30px 70px rgba(3, 12, 18, .7);
  animation: np-in .25s cubic-bezier(.3, 1.4, .5, 1); display: flex; flex-direction: column; gap: 12px; }
.pp-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 16px; cursor: pointer; }
.pp-x:hover { color: #fff; }
.pp-head { display: flex; align-items: center; gap: 14px; }
.pp-head b { display: block; font-size: 18px; margin-bottom: 4px; }
.pp-av { position: relative; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.pp-av span { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); font-size: 9.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em;
  padding: 2px 7px; border-radius: 999px; background: #8db4c6; color: #061019; opacity: 0; transition: opacity .2s; }
.pp-av:hover span { opacity: 1; }
.pp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pp-stats div { text-align: center; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); }
.pp-stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; }
.pp-stats span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.profile-pop details { border-radius: 12px; border: 1px solid rgba(255, 255, 255, .07); padding: 0 12px; }
.profile-pop summary { cursor: pointer; padding: 10px 0; font-weight: 800; font-size: 13px; color: #cfe6fb; }
.profile-pop details[open] { padding-bottom: 12px; }
.pp-foot { display: flex; gap: 8px; justify-content: space-between; }
.acc { display: flex; flex-direction: column; gap: 12px; }
.acc-row label { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 800; margin: 0 0 5px; }
.acc-row small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.acc-form { display: flex; gap: 6px; } .acc-form input { flex: 1; min-width: 0; margin: 0; }
.acc-static { padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .03); font-size: 13px; color: #c9d1db; }
@media (max-width: 500px) { .profile-pop { left: 10px; right: 10px; width: auto; } }

/* ranking */
.rk-layout { display: grid; grid-template-columns: 1fr 340px; gap: 16px; margin-top: 18px; align-items: start; }
.rk-side { padding: 18px; } .rk-h { margin: 0 0 10px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.rk tr.me { background: rgba(141, 180, 198, .1); }
.rk tr.top1 { background: linear-gradient(90deg, rgba(245, 184, 46, .14), transparent); }
.rk-pos { font-weight: 900; font-size: 15px; }
.rk-player { display: flex; gap: 10px; align-items: center; }
.rk-pts { font-family: var(--display); font-weight: 400; font-size: 20px; }
@media (max-width: 1000px) { .rk-layout { grid-template-columns: 1fr; } }

/* extrato: linha que a notificação apontou */
.tx-flash td { animation: tx-flash 2.6s ease-out 2; }
@keyframes tx-flash { 0% { background: rgba(141, 180, 198, .45); box-shadow: inset 0 0 0 1px #8db4c6; } 100% { background: transparent; } }

/* botão Campeonatos um pouco pra direita */
.cupbtn { margin-left: 30px; }
/* bilhete: botão em cima, prêmio embaixo um pouco menor */
.tk-main .tk-btn { margin-top: 8px; }
.tk-main .tk-prize { margin-top: 8px; padding: 6px 12px; }
.tk-main .tk-prize b { font-size: 25px; }
/* topo: no modo compacto some só o nome, o avatar fica */
@media (max-width: 1500px) { .userchip > div { display: block; } .userchip > div:not(.avatar) { display: none; } }

/* ===== emblemas ilustrados das ligas ===== */
.lg-art { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 2px 3px rgba(3, 12, 18, .5)); }
.lg-badge { padding: 2px 10px 2px 4px; gap: 6px; }
.lg-badge i { width: 20px; height: 20px; }
.lg-emblem { width: 72px; height: 72px; background: none; border: 0; box-shadow: none; border-radius: 0; transform: none; animation: lg-float 3.4s ease-in-out infinite;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--lg) 45%, transparent)); }
@keyframes lg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.lg-li i { width: 40px; height: 40px; margin-bottom: 3px; }
.lg-li { opacity: .45; filter: grayscale(.5); } .lg-li.done { opacity: .85; filter: none; } .lg-li.cur { filter: none; }

/* chip do jogador no topo */
.topbar .userchip { display: flex; align-items: center; gap: 10px; padding: 5px 8px 5px 5px; border-radius: 14px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--lg) 16%, #28546c), #234963 70%);
  border: 1px solid color-mix(in srgb, var(--lg) 38%, transparent); transition: border-color .2s, box-shadow .2s, transform .2s; }
.topbar .userchip:hover { background: linear-gradient(120deg, color-mix(in srgb, var(--lg) 24%, #28546c), #234963 70%);
  border-color: var(--lg); box-shadow: 0 0 18px color-mix(in srgb, var(--lg) 30%, transparent); transform: translateY(-1px); }
.userchip .avatar { box-shadow: 0 0 0 2px var(--lg); }
.uc-txt { display: flex; flex-direction: column; gap: 2px; min-width: 96px; }
.uc-txt .uc-name { font-size: 14px; font-weight: 800; color: #fff; }
.uc-lg { display: flex; align-items: baseline; gap: 7px; line-height: 1; }
.uc-lg b { font-family: var(--display); font-weight: 400; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--lg); }
.uc-lg span { font-size: 10.5px; font-weight: 800; color: var(--muted); }
.uc-bar { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 2px; }
.uc-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--lg) 55%, #000), var(--lg)); }
.uc-emb { width: 40px; height: 40px; display: grid; flex-shrink: 0; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--lg) 45%, transparent)); transition: transform .25s; }
.userchip:hover .uc-emb { transform: scale(1.08) rotate(-4deg); }
@media (max-width: 1500px) { .userchip > .uc-txt { display: none; } }

/* ranking centralizado */
.rk th, .rk td { text-align: center; }
.rk-player { justify-content: center; }
.rk .lg-badge { margin: 0 auto; }

.cupbtn { margin-left: 60px; }

/* inscrito em campeonato: botões da tab jogar travados em vermelho */
.tk-btn.tz-lock, .tk-btn.tz-lock:disabled { background: linear-gradient(180deg, #e2483b, #8f1d14); color: #fff; box-shadow: 0 4px 0 #5a0f0b;
  font-family: var(--sans, Inter), sans-serif; font-size: 12.5px; font-weight: 900; letter-spacing: .05em; line-height: 1.25; padding: 12px 10px; cursor: not-allowed; text-align: center; }
/* já está em outra fila: botão apagado, carimbo tracejado no papel do bilhete */
.tk-main .tk-btn.q-lock, .tk-main .tk-btn.q-lock:disabled { background: transparent; color: #8a8273; box-shadow: none;
  border: 1.5px dashed #b8b1a2; font-family: var(--sans, Inter), sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: 12px 10px; cursor: not-allowed; }
.tk-main .tk-btn.q-lock::after { content: none; }

/* sala de espera: botão de voltar */
.waiting .wait-back { display: inline-flex; align-items: center; gap: 8px; margin: 18px auto 0; padding: 10px 22px; border-radius: 12px; font-weight: 800;
  background: transparent; color: var(--muted); border: 1px solid rgba(255, 255, 255, .14); transition: color .2s, border-color .2s, background .2s; }
.waiting .wait-back span { transition: transform .2s; }
.waiting .wait-back:hover { color: #fff; border-color: var(--blue, #8db4c6); background: rgba(141, 180, 198, .08); }
.waiting .wait-back:hover span { transform: translateX(-3px); }
.cupbtn { margin-left: 110px; }
@media (max-width: 1400px) { .cupbtn { margin-left: 40px; } }
table.grid.rk th, table.grid.rk td { text-align: center; vertical-align: middle; }
table.grid.rk { table-layout: fixed; }
table.grid.rk th:nth-child(1) { width: 8%; } table.grid.rk th:nth-child(2) { width: 28%; } table.grid.rk th:nth-child(3) { width: 20%; }
table.grid.rk th:nth-child(4) { width: 12%; } table.grid.rk th:nth-child(5), table.grid.rk th:nth-child(6) { width: 9%; } table.grid.rk th:nth-child(7) { width: 14%; }
table.grid.rk .rk-player { justify-content: center; }
table.grid.rk .rk-player b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.grid.rk .rk-player { width: 180px; max-width: 100%; margin: 0 auto; justify-content: flex-start; }
@media (max-width: 1600px) { .cupbtn { margin-left: 50px; } }
@media (max-width: 1400px) { .cupbtn { margin-left: 20px; } }

/* copas = ligas (0 Iniciante … 7 Lenda) + 8 Grande Campeonato */
.cup-0 { --c1: #6fcf86; --ink-c: #2f7a43; } .cup-1 { --c1: #d08a4e; --ink-c: #8a4a17; } .cup-2 { --c1: #b9c4d0; --ink-c: #55657a; }
.cup-3 { --c1: #f5b82e; --ink-c: #a06c06; } .cup-4 { --c1: #5fd6f0; --ink-c: #3ec7ea; } .cup-5 { --c1: #8db4c6; --ink-c: #3c94be; }
.cup-6 { --c1: #b18cff; --ink-c: #5b33b0; } .cup-7 { --c1: #ff6b5a; --ink-c: #b3261e; } .cup-8 { --c1: #f5b82e; --ink-c: #8a5a06; }

/* troféu dourado no topo da aba Campeonato (celular e computador) */
.tz-cup svg { width: 66px; height: 66px; }
.tz-cup.sm svg { width: 38px; height: 38px; }

/* ===== formato da mesa: 1x1 / 2x2 (embaixo do Mineiro/Paulista) ===== */
.sizetoggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; padding: 6px; width: 100%;
  border-radius: 18px; background: linear-gradient(180deg, #2d5a76, #1f465d); border: 1px solid var(--line2);
  box-shadow: inset 0 2px 8px rgba(3, 12, 18, .5), 0 8px 22px rgba(3, 12, 18, .3);
}
.sizetoggle button {
  display: flex; align-items: center; justify-content: center; gap: 14px; border: 0; background: none; text-align: left;
  padding: 13px 18px; border-radius: 14px; color: var(--muted); cursor: pointer; transition: background .25s, color .25s, transform .2s;
}
.sizetoggle .st-ic { display: flex; width: 54px; flex-shrink: 0; color: var(--muted); opacity: .7; transition: color .25s, opacity .25s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.sizetoggle .st-ic svg { width: 100%; height: auto; }
.sizetoggle .st-tx { display: flex; flex-direction: column; min-width: 0; }
.sizetoggle button b { font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: .05em; line-height: 1; color: var(--text); transition: color .25s; }
.sizetoggle button small { font-size: 12.5px; margin-top: 3px; }
.sizetoggle button:not(.active):hover b, .sizetoggle button:not(.active):hover .st-ic { color: var(--blue); opacity: 1; }
.sizetoggle button:active { transform: scale(.98); }
.sizetoggle button.active { background: linear-gradient(135deg, #b9d2de 0%, #62a5c6 100%); box-shadow: 0 6px 18px rgba(141, 180, 198, .3); }
.sizetoggle button.active .st-ic { color: #0d3b63; opacity: 1; transform: scale(1.06); }
.sizetoggle button.active b { color: #061019; }
.sizetoggle button.active small { color: #0d3b63; }
html[data-theme="bilhete"] .sizetoggle { background: rgba(28, 63, 91, .7); border-color: rgba(244, 240, 230, .12); }
html[data-theme="bilhete"] .sizetoggle button.active { background: var(--paper-tex); box-shadow: 0 8px 22px rgba(3, 12, 20, .45), inset 0 0 0 1px #d6cdb9; }
html[data-theme="bilhete"] .sizetoggle button.active .st-ic { color: var(--ink); }
html[data-theme="bilhete"] .sizetoggle button.active b { color: var(--ink); }
html[data-theme="bilhete"] .sizetoggle button.active small { color: var(--ink-muted); font-weight: 700; }
@media (max-width: 640px) {
  .sizetoggle button { padding: 11px 8px; gap: 9px; }
  .sizetoggle .st-ic { width: 42px; }
  .sizetoggle button b { font-size: 25px; }
  .sizetoggle button small { display: none; }
}
