/* SÓ ME FOLD — HOME GAME · identidade: preto, aço escovado, vermelho sangue, ♠ (logo oficial) */
:root {
  --paper: #0B0B0D;        /* fundo */
  --paper-2: #1C1C21;      /* toque / áreas suaves */
  --card: #141417;         /* superfícies */
  --line: #2C2C32;         /* divisórias */
  --edge: #4A4A52;         /* bordas (aço) */
  --ink: #ECEAE6;          /* texto */
  --ink-2: #A9A6A1;        /* texto secundário */
  --red: #A8131B;          /* vermelho do logo (fundos e bordas) */
  --red-2: #7E0D13;
  --red-txt: #EF5157;      /* vermelho para texto sobre preto (contraste AA) */
  --red-soft: #2A0E11;
  --ok: #5BC98A;
  --ok-soft: #0F2619;
  --steel: linear-gradient(180deg, #FFFFFF 0%, #D9D9DC 38%, #8D8D94 52%, #C9C9CD 70%, #F1F1F2 100%);
  --surface: linear-gradient(180deg, #1A1A1E 0%, #121215 100%);
  --serif: "Bahnschrift Condensed", "Bahnschrift", "Roboto Condensed", "Arial Narrow", "Liberation Sans Narrow", sans-serif-condensed, "Segoe UI", sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --touch: 64px;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; } /* telas/modais escondidos não podem bloquear toques */
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(ellipse 120% 70% at 50% 0%, #1A1A1F 0%, var(--paper) 62%) fixed var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px;
  display: flex; flex-direction: column; min-height: 100vh;
  user-select: none; -webkit-user-select: none;
}
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- topo ---------- */
.topbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 8px 20px; background: linear-gradient(180deg, #16161A, #0B0B0D); border-bottom: 2px solid var(--red); box-shadow: 0 2px 18px rgba(168, 19, 27, .18); }
.brand-mark { height: 52px; width: auto; display: block; border-radius: 8px; }
.brand { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; min-height: 56px; }
.spade { color: var(--red-txt); font-size: 34px; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 34px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--steel); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.tagline { font-family: var(--serif); font-weight: 700; color: var(--red-txt); font-size: 17px; letter-spacing: 0.18em; text-transform: uppercase; }
.queue-badge { margin-left: auto; align-self: center; background: var(--red); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 15px; font-weight: 700; }
.update-banner { background: var(--red); color: #fff; padding: 12px 20px; font-size: 17px; }

main { flex: 1; padding: 18px 20px 28px; }
.screen { max-width: 1100px; margin: 0 auto; }
.title { font-family: var(--serif); font-size: clamp(30px, 4.2vw, 46px); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; margin: 6px 0 4px; background: var(--steel); -webkit-background-clip: text; background-clip: text; color: transparent; }
.title small { font-family: var(--sans); font-size: 18px; color: var(--ink-2); font-weight: 400; }
.subtitle { margin: 0 0 16px; color: var(--ink-2); }
.section-title { border-left: 4px solid var(--red); padding-left: 10px; font-family: var(--serif); font-size: 24px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); margin: 28px 0 10px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.danger-title { color: var(--red-txt); }
.hint { color: var(--ink-2); font-size: 15px; }
.sub { font-family: var(--serif); margin: 6px 0 10px; }
.big-text { font-size: 20px; }
.big-text strong, .red { color: var(--red-txt); }

/* ---------- botões (todos ≥ 64 px) ---------- */
.btn {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 2px solid var(--edge); border-radius: var(--radius);
  min-height: var(--touch); min-width: var(--touch); padding: 10px 18px; cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); background: var(--paper-2); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, #BE1A23 0%, var(--red) 55%, #8A0F16 100%); color: #fff; border-color: #C7212A; font-weight: 700; letter-spacing: 0.02em; box-shadow: 0 4px 16px rgba(168, 19, 27, .28); }
.btn.primary:active { background: var(--red-2); }
.btn.danger { color: var(--red-txt); border-color: var(--red); font-weight: 700; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn.small { font-size: 16px; padding: 8px 14px; }
.btn.big { width: 100%; min-height: 84px; font-size: 26px; margin-top: 16px; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }
.back { margin-top: 18px; }

/* ---------- formulários ---------- */
.panel { background: var(--surface); border: 2px solid var(--edge); border-radius: var(--radius); padding: 16px 18px; }
.panel.spaced { margin-top: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin: 8px 0; }
.label { display: block; color: var(--ink-2); margin: 8px 0 6px; font-size: 15px; }
.input {
  font: inherit; font-size: 22px; min-height: var(--touch); padding: 8px 14px; width: 220px;
  border: 2px solid var(--edge); border-radius: var(--radius); background: var(--paper); color: var(--ink);
  user-select: text; -webkit-user-select: text;
}
.input.wide { width: 300px; max-width: 100%; }
.paste { width: 100%; font: inherit; font-size: 17px; padding: 10px 12px; border: 2px solid var(--edge); border-radius: var(--radius); background: var(--paper); color: var(--ink); margin: 8px 0; user-select: text; -webkit-user-select: text; }
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.chip-btn { font-size: 16px; padding: 6px 14px; background: var(--paper-2); border-color: var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 15px; background: var(--paper); }
.chip.bad { border-color: var(--red); color: var(--red-txt); }
.seg { display: inline-flex; }
.seg-btn { border-radius: 0; font-size: 17px; }
.seg-btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.seg-btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.seg-btn + .seg-btn { border-left-width: 0; }
.seg-btn.active { background: var(--red); color: #fff; border-color: var(--red); }
.import-box summary { cursor: pointer; min-height: 56px; display: flex; align-items: center; }
.import-box { margin-top: 12px; }

/* ---------- início ---------- */
.home-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.home-qr { display: flex; align-items: center; gap: 12px; background: var(--card); border: 2px solid var(--edge); border-radius: var(--radius); padding: 10px 14px; max-width: 360px; }
.home-qr-img { width: 120px; height: 120px; flex: none; }
.home-qr-img svg { width: 100%; height: 100%; display: block; }
.home-qr-text { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--ink-2); }
.home-qr-text strong { font-family: var(--serif); font-size: 19px; color: var(--ink); }
.recent { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.recent-label { font-family: var(--serif); font-style: italic; color: var(--ink-2); }
.recent-list { display: flex; gap: 10px; flex-wrap: wrap; }
.recent-btn { background: var(--paper-2); font-weight: 600; }
.grid { display: grid; gap: 14px; }
.players { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.player-btn { font-size: 21px; font-weight: 600; min-height: 84px; }

/* ---------- tela do jogador ---------- */
.me-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.again { width: 100%; margin: 6px 0 14px; background: var(--red-soft); border-color: var(--red); color: var(--red-txt); font-weight: 700; font-size: 20px; }
.drinks { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 6px 0 16px; }
.drink-btn { text-align: left; display: flex; flex-direction: column; gap: 4px; min-height: 120px; }
.drink-btn .d-name { font-family: var(--serif); font-size: 26px; font-weight: 700; }
.drink-btn .d-size { color: var(--ink-2); }
.drink-btn .d-price { font-size: 24px; font-weight: 700; color: var(--red-txt); margin-top: auto; }
.drink-btn .d-out { color: var(--red-txt); font-weight: 700; }
.me-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.me-action { display: flex; align-items: center; gap: 12px; text-align: left; min-height: 84px; }
.me-action .ma-ic { font-size: 28px; line-height: 1; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); flex: none; }
.me-action .ma-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.me-action small { color: var(--ink-2); font-size: 15px; }
#me-live { border-color: var(--red); }
#me-receipt { border-color: #C9A227; }
.link-btn { font: inherit; font-size: 16px; color: var(--ink-2); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; min-height: 48px; padding: 0 4px; cursor: pointer; }

.confirm-card, .account-card { background: var(--card); border: 2px solid var(--edge); border-radius: var(--radius); padding: 22px; margin-top: 14px; }
.confirm-who { font-size: 20px; color: var(--ink-2); }
.confirm-drink { font-family: var(--serif); font-size: 32px; font-weight: 700; margin: 4px 0 18px; }
.qty { display: flex; align-items: center; gap: 18px; }
.qty-btn { font-size: 40px; width: 84px; height: 84px; padding: 0; }
.qty-value { font-size: 48px; font-weight: 700; min-width: 90px; text-align: center; }
.qty-value small { display: block; font-size: 14px; font-weight: 400; color: var(--ink-2); }
.confirm-total { margin-top: 18px; font-size: 24px; }
.confirm-total strong { color: var(--red-txt); }

.result { text-align: center; padding: 30px 10px; }
.level-badge { display: inline-block; font-family: var(--serif); font-size: 22px; border: 2px solid var(--red); color: var(--red-txt); border-radius: 999px; padding: 6px 18px; }
.roast { font-family: var(--serif); font-size: clamp(28px, 4.2vw, 46px); line-height: 1.25; margin: 24px auto; max-width: 900px; }
.result-total { font-size: 26px; }
.result-total strong { color: var(--red-txt); }
.progress { height: 8px; background: var(--paper-2); border-radius: 999px; overflow: hidden; max-width: 600px; margin: 22px auto 18px; }
.progress span { display: block; height: 100%; width: 100%; background: var(--red); }
.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.result-actions .btn { min-width: 200px; }

.due-hero { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--ok-soft); border: 2px solid var(--ok); border-radius: var(--radius); padding: 16px 20px; margin-top: 10px; }
.due-hero.owe { background: var(--red-soft); border-color: var(--red); }
.due-hero small { font-size: 18px; color: var(--ink-2); }
.due-hero strong { font-size: 40px; font-family: var(--serif); }
.due-hero.owe strong { color: var(--red-txt); }
.items { list-style: none; padding: 0; margin: 0; }
.items li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 19px; }
.items li.section-row { border-bottom: 0; padding-top: 16px; font-family: var(--serif); font-weight: 700; }
.req-PENDENTE strong { color: var(--ink-2); } .req-APROVADO strong { color: var(--ok); } .req-RECUSADO strong { color: var(--red-txt); }
.account-foot { margin-top: 14px; border-top: 2px solid var(--edge); padding-top: 10px; }
.account-foot div { display: flex; justify-content: space-between; font-size: 19px; padding: 4px 0; }
.spaced-top { margin-top: 14px; }
.food-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quick { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.quick .btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; min-height: 80px; }
.quick .btn small { color: var(--ink-2); }

/* ---------- PIN ---------- */
.pin-dots { display: flex; gap: 14px; margin: 10px 0 20px; }
.pin-dots span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--edge); }
.pin-dots span.on { background: var(--red); border-color: var(--red); box-shadow: 0 0 10px rgba(239, 81, 87, .5); }
.keypad { display: grid; grid-template-columns: repeat(3, 96px); gap: 12px; }
.keypad .btn { font-size: 30px; height: 84px; }
.keypad .kp-word { font-size: 18px; }

/* ---------- painel do host ---------- */
.host-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; overflow-x: auto; background: var(--paper); padding: 8px 0; border-bottom: 2px solid var(--edge); margin-bottom: 12px; }
.tab { font: inherit; font-size: 18px; font-weight: 600; min-height: var(--touch); padding: 8px 18px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); cursor: pointer; white-space: nowrap; }
.tab.active { background: var(--red); color: #fff; border-color: var(--red); }
.tab-count { display: inline-block; background: var(--red); color: #fff; border-radius: 999px; padding: 0 9px; margin-left: 6px; font-size: 15px; }
.alerts { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.alert { background: var(--card); border: 2px solid var(--line); border-left: 6px solid var(--red); border-radius: var(--radius); padding: 14px 16px; font-size: 18px; }
.clickable { cursor: pointer; }
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0; }
.qa { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; min-height: 96px; }
.qa strong { font-size: 20px; }
.qa small { color: var(--ink-2); }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 10px; }
.metric { background: var(--surface); border: 2px solid var(--edge); border-radius: var(--radius); padding: 14px; }
.metric small { color: var(--ink-2); display: block; }
.metric strong { font-size: 26px; }
.metric.hl { border-color: var(--red); }
.metric.hl strong { color: var(--red-txt); }

.requests-box { border: 3px solid var(--red); border-radius: var(--radius); padding: 4px 16px 12px; margin: 6px 0; background: var(--card); }
.requests-box .section-title { margin-top: 10px; }

.ranking { list-style: none; padding: 0; margin: 0; }
.rank-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center; padding: 10px 8px; border-bottom: 1px solid var(--line); border-radius: 10px; min-height: 72px; }
.rank-row:active { background: var(--paper-2); }
.rank-name { font-size: 20px; font-weight: 600; }
.rank-name small { display: block; font-weight: 400; color: var(--ink-2); font-size: 14px; }
.rank-total { font-size: 20px; font-weight: 700; }
.rank-action { display: flex; gap: 8px; justify-content: flex-end; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 15px; font-weight: 700; border: 2px solid; }
.badge.PAGO { color: var(--ok); border-color: var(--ok); }
.badge.PENDENTE { color: var(--red-txt); border-color: var(--red); }
.badge.SEM_CONSUMO { color: var(--ink-2); border-color: var(--line); }

.lines { list-style: none; padding: 0; margin: 10px 0 0; }
.lines li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.lines li small { display: block; color: var(--ink-2); font-size: 14px; }
.lines li.removed { color: var(--ink-2); }
.lines li.removed .l-desc > span, .lines li.removed .l-val { text-decoration: line-through; }
.lines li.off .l-desc > span { color: var(--ink-2); }
.l-val { font-weight: 700; }
.l-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.live-list .l-act .btn.danger { min-width: 120px; }
.champ { font-family: var(--serif); font-size: 26px; color: var(--red-txt); padding: 10px 0; }

.checkin { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 10px 0 14px; }
.checkin-tile { border: 2px solid var(--line); border-radius: var(--radius); padding: 8px; display: flex; flex-direction: column; gap: 6px; background: var(--paper); }
.checkin-tile.on { border-color: var(--red); background: var(--red-soft); }
.checkin-tile.done { border-color: var(--ok); background: var(--ok-soft); }
.ci-name { font-weight: 700; font-size: 19px; }
.ci-flags { display: flex; gap: 6px; }
.ci-flag { flex: 1; font-size: 14px; padding: 6px 8px; background: var(--card); border-color: var(--line); }
.ci-flag.on { background: var(--red); color: #fff; border-color: var(--red); }
.ci-flag.done { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }

.result-pick { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 10px 0; }
.result-pick .btn { font-weight: 600; }
.result-pick .btn.picked { opacity: 0.3; }
.result-order { padding-left: 0; list-style: none; margin: 8px 0 12px; }
.result-order li { display: grid; grid-template-columns: 52px 1fr auto auto; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 19px; align-items: center; }
.result-order .pos { font-family: var(--serif); font-weight: 700; color: var(--red-txt); }

.season { list-style: none; padding: 0; margin: 0; }
.season li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.season .pos { font-family: var(--serif); font-size: 24px; color: var(--ink-2); }
.season li:nth-child(1) .pos { color: var(--red-txt); }
.season .nm { font-size: 20px; font-weight: 600; }
.season .nm small { display: block; font-weight: 400; color: var(--ink-2); font-size: 14px; }
.season .pts { font-size: 24px; font-weight: 700; text-align: right; }
.season .pts .delta { display: block; font-size: 14px; font-weight: 600; }
.season .pts .delta.up { color: var(--ok); }
.season .pts .delta.down { color: var(--red-txt); }
.hist-list { list-style: none; padding: 0; margin: 0 0 12px; }
.hist-list li { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.hist-list li > strong { font-family: var(--serif); font-size: 22px; color: var(--red-txt); }
.hist-text { display: flex; flex-direction: column; }
.hist-podium { font-size: 18px; font-weight: 600; }
.hist-text small { color: var(--ink-2); }

.funds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fund h3 { font-family: var(--serif); margin: 0 0 8px; font-size: 22px; }
.fund h3 small { display: block; font-family: var(--sans); font-weight: 400; font-size: 14px; color: var(--ink-2); }
.fund-rows div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 16px; }
.fund-rows div.hl { font-weight: 700; color: var(--red-txt); }

.stock { list-style: none; padding: 0; margin: 0; }
.stock li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.stock li.low { color: var(--red-txt); font-weight: 700; }
.stock-bar { flex-basis: 100%; height: 10px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.stock-bar span { display: block; height: 100%; background: var(--ink-2); }
.stock li.low .stock-bar span { background: var(--red); }

.steps { list-style: none; padding: 0; display: grid; gap: 10px; }
.step { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--card); border: 2px solid var(--line); border-left-width: 8px; border-radius: var(--radius); padding: 12px 16px; }
.step.ok { border-left-color: var(--ok); }
.step.warn { border-left-color: var(--red); }
.step-text strong { display: block; font-size: 19px; }
.step-text small { color: var(--ink-2); font-size: 15px; }
.step.warn .step-text small { color: var(--red-txt); }

/* ---------- barra de baixo, modal, aviso ---------- */
.bottombar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.host-link { color: var(--ink-2); }
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.72); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 20; }
.modal-box { background: var(--paper); border: 2px solid var(--edge); border-radius: var(--radius); padding: 24px; max-width: 540px; width: 100%; }
.modal-box p { font-size: 22px; margin: 0 0 16px; white-space: pre-line; max-height: 60vh; overflow-y: auto; }
.modal-box .input { width: 100%; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 30;
  display: flex; align-items: center; gap: 14px;
  background: #1F1F24; color: var(--ink); border: 1px solid var(--edge); border-left: 5px solid var(--red); padding: 12px 14px 12px 20px; border-radius: var(--radius);
  font-size: 18px; max-width: 92vw; box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
.toast-btn { background: var(--red); color: #fff; border-color: var(--red); font-weight: 700; }

/* ---------- celular ---------- */
/* ---------- galera: comprovantes, jogo da semana, WhatsApp ---------- */
.due-hero.neutral { background: var(--paper-2); border-color: var(--line); }
.due-hero.neutral strong { font-size: 32px; }
.file-btn { font-size: 20px; display: flex; align-items: center; justify-content: center; width: 100%; margin: 14px 0; border-style: dashed; }
.rc-preview { display: block; max-width: 100%; max-height: 50vh; margin: 0 auto 14px; border: 2px solid var(--line); border-radius: var(--radius); }
#screen-receipt .btn.primary.big { width: 100%; }
.consent { display: block; width: 100%; text-align: left; margin: 14px 0 6px; font-size: 18px; white-space: normal; }
.consent.on { border-color: var(--ok); background: var(--ok-soft); }
.receipts { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 12px; }
.receipts li.hint { padding: 8px 0; }
.receipt { display: grid; grid-template-columns: 180px 1fr; gap: 16px; background: var(--card); border: 2px solid var(--red); border-radius: var(--radius); padding: 12px; }
.rc-thumb { width: 180px; height: 240px; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); cursor: zoom-in; }
.rc-info { display: flex; flex-direction: column; gap: 6px; }
.rc-info > strong { font-size: 22px; }
.rc-info > small { color: var(--ink-2); }
.rc-vals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0; }
.rc-vals div { border: 2px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.rc-vals div.hl { border-color: var(--red); }
.rc-vals small { display: block; color: var(--ink-2); font-size: 14px; }
.rc-vals strong { font-size: 22px; }
.rc-act { display: flex; gap: 10px; margin-top: auto; }
.rc-act .btn { flex: 1; min-height: var(--touch); font-size: 18px; }
.items li.rc-APROVADO strong { color: var(--ok); }
.items li.rc-RECUSADO strong { color: var(--red-txt); }
details > summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-size: 18px; }
.grid.rsvp { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 10px 0; }
.rsvp-btn { font-size: 17px; }
.rsvp-btn.yes { background: var(--ok-soft); border-color: var(--ok); }
.rsvp-btn.wait { background: var(--paper-2); border-color: var(--ink-2); border-style: dashed; }
.rsvp-btn.no { color: var(--ink-2); border-color: var(--line); text-decoration: line-through; }
.wa-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.wa-list li.sent .l-desc > span::after { content: ' ✓'; color: var(--ok); }
.gm-list { margin: 6px 0 12px; padding-left: 28px; font-size: 19px; }
.gm-list li { padding: 4px 0; }

/* ---------- torneio ao vivo (jogadores) ---------- */
.live-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(142, 27, 27, .5); animation: livepulse 1.8s infinite; vertical-align: middle; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(142, 27, 27, .5); } 70% { box-shadow: 0 0 0 10px rgba(142, 27, 27, 0); } 100% { box-shadow: 0 0 0 0 rgba(142, 27, 27, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.live-strip { display: flex; align-items: center; gap: 14px; width: 100%; min-height: var(--touch); margin-bottom: 14px; padding: 10px 18px; font: inherit; text-align: left; color: var(--ink); background: var(--red-soft); border: 2px solid var(--red); border-radius: var(--radius); cursor: pointer; }
.live-strip-text { display: flex; flex-direction: column; flex: 1; font-size: 16px; color: var(--ink-2); }
.live-strip-text strong { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.live-strip-go { font-weight: 700; color: var(--red-txt); font-size: 18px; }
.bottom-left { display: flex; gap: 10px; }
.lv-banner { font-size: 20px; font-weight: 600; padding: 12px 16px; border-radius: var(--radius); background: var(--paper-2); border: 2px solid var(--line); margin-bottom: 12px; }
.lv-banner.bubble { background: var(--red-soft); border-color: var(--red); color: var(--red-txt); }
.lv-banner.money, .lv-banner.champ { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.lv-banner.champ { font-family: var(--serif); font-size: 26px; text-align: center; }
.lv-hero .metric strong { font-size: 30px; }
.lv-prizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lv-prizes .hint { grid-column: 1 / -1; margin: 2px 0 0; }
.lv-prize { background: var(--card); border: 2px solid var(--edge); border-radius: var(--radius); padding: 10px 12px; text-align: center; }
.lv-prize.first { border-color: var(--red); }
.lv-prize small { display: block; color: var(--ink-2); }
.lv-prize strong { display: block; font-size: 26px; color: var(--red-txt); font-family: var(--serif); }
.lv-winner { display: block; font-weight: 700; margin-top: 2px; }
.lv-table-wrap { overflow-x: auto; border: 2px solid var(--edge); border-radius: var(--radius); background: var(--card); }
.lv-table { width: 100%; border-collapse: collapse; font-size: 17px; }
.lv-table th { text-align: left; font-size: 14px; color: var(--ink-2); font-weight: 600; padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.lv-table td { padding: 10px 12px; border-bottom: 1px dashed var(--line); white-space: nowrap; }
.lv-table td.nm { font-weight: 600; }
.lv-table td.num, .lv-table th:nth-child(n+3) { text-align: center; font-variant-numeric: tabular-nums; }
.lv-table tr.out td { color: var(--ink-2); }
.lv-table tr.out td.nm { text-decoration: line-through; font-weight: 400; }
.lv-table .tag { font-size: 14px; font-weight: 700; margin-left: 6px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); text-decoration: none; display: inline-block; }
.lv-feed { list-style: none; padding: 0; margin: 0 0 16px; }
.lv-feed li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 17px; }
.lv-feed .f-time { color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 48px; }
.lv-feed li.f-elim { color: var(--red-txt); font-weight: 600; }
.lv-feed li.f-rebuy span:last-child::before { content: '🔁 '; }
#screen-live .title .live-dot { margin-right: 6px; }

/* ---------- marca: logo, aço e vermelho ---------- */
select.input { appearance: auto; }
.input::placeholder, .paste::placeholder { color: #6E6B67; }
.input:focus, .paste:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(168, 19, 27, .25); }
.player-btn { font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: 0.01em; border-color: #55555E; }
.player-btn:active, .drink-btn:active { border-color: var(--red); }
.drink-btn .d-name { text-transform: uppercase; letter-spacing: 0.02em; }
.recent-btn { border-color: var(--red); }
#screen-pin { text-align: center; }
#screen-pin .pin-dots { justify-content: center; }
#screen-pin .keypad { margin: 0 auto; justify-content: center; }
.pin-logo { display: block; width: min(200px, 46vw); height: auto; margin: 0 auto 8px; border-radius: 18px; }
.home-qr { background: var(--surface); }
.home-qr-img { background: #fff; border-radius: 10px; padding: 6px; } /* QR precisa de fundo claro para a câmera ler */
.roast { color: var(--ink); }
.level-badge { background: var(--red-soft); }
.result-total strong, .confirm-total strong { color: var(--red-txt); }
.lines li, .items li { border-bottom-color: var(--line); }
.bottombar { background: linear-gradient(0deg, #101013, #0B0B0D); }
.brand:active .brand-mark { transform: scale(0.96); }
.spade { color: var(--red-txt); }

/* ---------- ícones, atalhos e aviso de nível ---------- */
.t-ic { margin-right: 6px; }
.qa { position: relative; }
.qa .qa-ic { font-size: 24px; display: block; margin-bottom: 4px; }
.kbd-hint { color: var(--ink-2); font-size: 14px; margin: -4px 0 10px; }
.kbd-hint kbd { font-family: ui-monospace, Consolas, monospace; border: 1px solid var(--edge); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; color: var(--ink); background: var(--paper-2); }
.flash { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px; text-align: center; background: radial-gradient(ellipse at center, rgba(168,19,27,.94), rgba(11,11,13,.97) 72%); animation: flashin .45s ease-out; cursor: pointer; }
.flash.brk { background: radial-gradient(ellipse at center, rgba(31,94,58,.94), rgba(11,11,13,.97) 72%); }
.flash small { font-family: var(--serif); letter-spacing: .28em; font-size: clamp(16px, 2.4vw, 28px); color: #fff; opacity: .9; }
.flash strong { font-family: var(--serif); font-size: clamp(64px, 14vw, 170px); line-height: 1; background: var(--steel); -webkit-background-clip: text; background-clip: text; color: transparent; }
.flash span { color: #fff; font-size: clamp(18px, 2.6vw, 30px); }
@keyframes flashin { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: none; } }
/* ranking: pódio */
.season li.p1 .pos, .season li.p2 .pos, .season li.p3 .pos { font-size: 30px; }
.season li.p1 { background: linear-gradient(90deg, rgba(201,162,39,.12), transparent 60%); }
/* resultado: entrada animada */
#screen-result .level-badge { animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
#screen-result .roast { animation: rise .5s ease-out .1s both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #screen-result .level-badge, #screen-result .roast, .flash { animation: none; } }

/* ---------- código da mesa ---------- */
.code-wrap { max-width: 520px; margin: 0 auto; text-align: center; }
#screen-code .pin-dots { justify-content: center; }
#screen-code .keypad { margin: 0 auto 12px; justify-content: center; }
.mesa-code { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 6px 0 10px; }
.mesa-code small { color: var(--ink-2); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.mesa-code strong { font-family: var(--serif); font-size: 44px; letter-spacing: .12em; color: var(--red-txt); }

/* ---------- pedido de rebuy / cash ---------- */
.req-cards { grid-template-columns: repeat(2, 1fr); }
.req-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; min-height: 130px; padding: 16px 20px; }
.req-card .rq-name { font-family: var(--serif); font-size: 26px; font-weight: 700; text-transform: uppercase; }
.req-card .rq-price { font-size: 28px; font-weight: 700; color: var(--red-txt); margin-top: auto; }
.req-card .rq-chips { color: var(--ink-2); }
.req-status { font-weight: 700; margin: 0 0 10px; }
.req-status.ok { color: var(--ok); }
.req-status.closed { color: var(--red-txt); }
.chip-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:disabled { background: #2A2A30; border-color: var(--edge); color: #77757A; box-shadow: none; opacity: 1; }

/* ---------- relógio do torneio ---------- */
.clk-box { background: var(--surface); border: 2px solid var(--edge); border-radius: 18px; padding: 16px 20px 14px; text-align: center; margin: 6px 0 10px; }
.clk-box.rodando { border-color: var(--red); box-shadow: 0 0 0 1px rgba(168, 19, 27, .35), 0 8px 30px rgba(168, 19, 27, .15); }
.clk-box.pausado { border-color: #C9A227; }
.clk-box.break { border-color: var(--ok); }
.clk-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.clk-level { font-family: var(--serif); font-weight: 700; font-size: 26px; letter-spacing: .06em; background: var(--steel); -webkit-background-clip: text; background-clip: text; color: transparent; }
.clk-status { font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--ink-2); }
.clk-box.rodando .clk-status { color: var(--red-txt); }
.clk-box.pausado .clk-status { color: #E8C24A; }
.clk-box.break .clk-status { color: var(--ok); }
.clk-time { font-family: var(--serif); font-weight: 700; font-size: clamp(64px, 13vw, 132px); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .02em; margin: 8px 0 6px; color: var(--ink); }
.clk-box.pausado .clk-time { color: #E8C24A; animation: clkblink 1.4s steps(2, start) infinite; }
@keyframes clkblink { to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .clk-box.pausado .clk-time { animation: none; } }
.clk-bar { height: 8px; background: var(--paper-2); border-radius: 999px; overflow: hidden; margin: 0 auto 10px; max-width: 760px; }
.clk-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #7E0D13, #EF5157); transition: width .5s linear; }
.clk-box.break .clk-bar span { background: var(--ok); }
.clk-blinds { font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 6vw, 58px); line-height: 1.05; }
.clk-blinds small { display: block; font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.clk-ante { display: block; font-size: 20px; color: var(--ink-2); }
.clk-next { color: var(--ink-2); font-size: 17px; margin: 8px 0 10px; }
.clk-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.clk-chip { font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--edge); color: var(--ink-2); }
.clk-chip.ok { border-color: var(--ok); color: var(--ok); }
.clk-chip.warn { border-color: #C9A227; color: #E8C24A; }
.clk-chip.bad { border-color: var(--red); color: var(--red-txt); background: var(--red-soft); }
.clk-upcoming { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.clk-upcoming li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--card); }
.clk-upcoming .u-n { font-family: var(--serif); font-weight: 700; color: var(--red-txt); min-width: 34px; }
.clk-upcoming .u-b { flex: 1; font-weight: 600; }
.clk-upcoming .u-m { color: var(--ink-2); font-size: 14px; }
.clk-upcoming li.brk { border-color: var(--ok); }
.clk-ctl { display: grid; grid-template-columns: 1fr .7fr 1.6fr .7fr 1fr; gap: 8px; max-width: 900px; margin: 4px auto 14px; padding: 8px; border-radius: 16px; background: rgba(168, 19, 27, .08); border: 1px solid rgba(168, 19, 27, .55); box-shadow: 0 0 24px rgba(168, 19, 27, .12) inset; }
.clk-ctl .btn { min-height: 72px; font-size: 18px; font-weight: 700; padding: 8px 10px; }
.clk-ctl .clk-main { font-size: 22px; }
.clk-ctl .clk-main.paused { background: linear-gradient(180deg, #3A3A40, #24242A); border-color: var(--edge); box-shadow: none; }
.clock-more { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin: -2px 0 6px; }
.clk-mini { display: flex; align-items: center; gap: 14px; justify-content: space-between; background: var(--surface); border: 2px solid var(--edge); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 10px; }
.clk-mini.rodando { border-color: var(--red); }
.clk-mini.pausado { border-color: #C9A227; }
.clk-mini-info { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; cursor: pointer; }
.clk-mini-info strong { font-family: var(--serif); font-size: 20px; }
.clk-mini-time { font-family: var(--serif); font-weight: 700; font-size: 30px; font-variant-numeric: tabular-nums; }
.clk-mini-info small { color: var(--ink-2); font-weight: 700; letter-spacing: .1em; }
.strip-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.paste.mono { font-family: ui-monospace, Consolas, monospace; font-size: 16px; }

@media (max-width: 760px) {
  .home-qr { display: none !important; }
  .funds, .quick-actions { grid-template-columns: 1fr 1fr; }
  .me-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
  .me-action { flex-direction: column; align-items: flex-start; gap: 6px; min-height: 104px; padding: 10px 12px; }
  .me-action .ma-ic { width: 34px; height: 34px; font-size: 22px; }
  .me-action strong { font-size: 16px; }
  .me-action small { font-size: 14px; }
  .receipt { grid-template-columns: 1fr; }
  .clk-ctl { grid-template-columns: 1fr 1fr; }
  .clk-ctl .clk-main { grid-column: 1 / -1; order: -1; }
  .lv-prizes { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .lv-prize strong { font-size: 19px; }
  .lv-table { font-size: 15px; }
  .lv-table th, .lv-table td { padding: 8px 8px; }
  .rc-thumb { width: 100%; height: 260px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  main { padding: 14px 16px 24px; }
  .tagline { display: none; }
  .players { grid-template-columns: repeat(2, 1fr); }
  .drinks { grid-template-columns: 1fr 1fr; }
  .drink-btn { min-height: 104px; }
  .drink-btn .d-name { font-size: 19px; }
  .funds, .quick-actions, .food-choices { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 1fr auto; }
  .rank-row .badge { justify-self: start; }
  .lines li { grid-template-columns: 1fr auto; }
  .lines li .l-act { grid-column: 1 / -1; justify-content: flex-start; }
  .keypad { grid-template-columns: repeat(3, 1fr); }
  .input, .input.wide { width: 100%; }
  .seg { width: 100%; } .seg-btn { flex: 1; }
  .result-actions .btn { min-width: 0; flex: 1; }
}

/* ===== 05/10/2026: privacidade, Pix, desfazer, lugares, chip race, card, primeiro acesso ===== */
.update-banner { display: block; width: 100%; border: 0; text-align: left; cursor: pointer; font: inherit; }
.kiosk-banner { display: flex; flex-direction: column; gap: 4px; background: var(--red-soft); border: 2px dashed var(--red); border-radius: var(--radius); padding: 14px 18px; margin: 10px 0; }
.kiosk-banner span { color: var(--ink-2); font-size: 16px; }
.kiosk-hint { margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--edge); border-radius: var(--radius); }
.me-action.pix { border-color: #2BB3A3; }
.me-action.pix .ma-ic { background: #0E2522; border-color: #2BB3A3; }
.undo-btn { background: #2B2410; border-color: #D4AF37; color: #F2D675; font-weight: 800; min-width: 170px; }
.pix-steps { margin: 14px 0; padding-left: 22px; line-height: 1.6; color: var(--ink); }
.pix-steps li { margin: 4px 0; }
.pix-code { font-size: 14px; word-break: break-all; margin: 10px 0 14px; }
.pix-qr { background: #fff; border-radius: 14px; padding: 14px; width: min(320px, 100%); margin: 10px auto; }
.pix-qr svg { width: 100%; height: auto; display: block; }
.wait-dots { display: flex; gap: 10px; justify-content: center; margin: 24px 0; }
.wait-dots span { width: 14px; height: 14px; border-radius: 50%; background: var(--red); animation: wd 1.2s infinite ease-in-out; }
.wait-dots span:nth-child(2) { animation-delay: .2s; } .wait-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes wd { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
.seats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 10px 0; }
.seat-table { background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius); padding: 12px 14px; }
.seat-table > strong { font-family: var(--serif); text-transform: uppercase; letter-spacing: .5px; color: var(--red-txt); }
.seat-list { list-style: none; margin: 8px 0 0; padding: 0; }
.seat-list li { display: flex; gap: 10px; align-items: center; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 17px; }
.seat-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); border: 1px solid var(--edge); font-weight: 800; font-size: 15px; flex: none; }
.seat-alert { background: var(--red-soft); border: 2px solid var(--red); border-radius: var(--radius); padding: 12px 14px; margin: 10px 0; }
.seat-alert ul { margin: 6px 0 10px; padding-left: 20px; }
.titles { list-style: none; padding: 0; margin: 6px 0 12px; display: grid; gap: 8px; }
.titles li { display: grid; grid-template-columns: 44px auto 1fr; gap: 4px 10px; align-items: baseline; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.titles .t-ic { font-size: 28px; grid-row: span 2; align-self: center; }
.titles .t-who { color: var(--red-txt); font-weight: 700; }
.titles small { grid-column: 2 / 4; color: var(--ink-2); }
.alert-inline { background: var(--red-soft); border: 1px solid var(--red); color: var(--ink); border-radius: 10px; padding: 10px 12px; font-weight: 600; }
.card-img { width: min(420px, 100%); display: block; margin: 14px auto 0; border-radius: 12px; border: 1px solid var(--edge); }
.season li.clickable { cursor: pointer; }
.season li.clickable:active { background: var(--paper-2); }
.onboard { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: grid; place-items: center; z-index: 60; padding: 18px; }
.onboard-box { background: var(--surface); border: 1px solid var(--edge); border-radius: 20px; padding: 26px 22px 18px; width: min(420px, 100%); text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.ob-icon { font-size: 54px; }
.onboard-box h2 { font-family: var(--serif); text-transform: uppercase; margin: 8px 0 6px; background: var(--steel); -webkit-background-clip: text; background-clip: text; color: transparent; }
.onboard-box p { color: var(--ink-2); line-height: 1.5; min-height: 72px; }
.ob-dots { display: flex; gap: 8px; justify-content: center; margin: 10px 0 16px; }
.ob-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.ob-dots span.on { background: var(--red); }
@media (max-width: 760px) {
  /* uma mão: o atalho "De novo" fica fixo embaixo, perto do polegar */
  #screen-me .again { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; margin: 0; z-index: 20; box-shadow: 0 8px 28px rgba(0,0,0,.7); background: #2A0E11; }
  #screen-me { padding-bottom: 96px; }
  .toast { bottom: calc(112px + env(safe-area-inset-bottom)); }
  .seats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .wait-dots span { animation: none; opacity: 1; } }

.stock-count-row { align-items: center; flex-wrap: wrap; }
.stock-count-row .sc-name { min-width: 220px; font-weight: 600; }
.stock-count-row .input { width: 110px; }

/* temporada: evolução, conquistas, confronto direto */
.evo { background: #141417; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.evo-svg { width: 100%; height: auto; display: block; }
.evo-grid { stroke: #2C2C32; stroke-width: 1; }
.evo-axis { fill: #8E8B86; font-size: 13px; }
.evo-label { fill: var(--ink); font-size: 14px; font-weight: 600; }
.evo-pt:hover circle:last-of-type { r: 6; }
.h2h-row { align-items: center; }
.h2h-row select { min-width: 160px; }
.h2h-x { font-family: var(--serif); font-size: 26px; color: var(--red-txt); }
.h2h-card { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 12px; }
.h2h-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.h2h-side.win { border-color: var(--red); background: var(--red-soft); }
.h2h-name { font-family: var(--serif); text-transform: uppercase; font-size: 20px; }
.h2h-num { font-size: 44px; font-family: var(--serif); }
.h2h-vs { font-family: var(--serif); font-size: 22px; color: var(--ink-2); }

/* ---------- editor visual da estrutura de blinds ---------- */
.ed { margin-top: 10px; }
.ed-tpls { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin-bottom: 10px; }
.ed-tpl-l { align-self: center; color: var(--ink-2); font-size: 15px; width: 100%; }
.ed-tpl-w { display: flex; gap: 4px; align-items: stretch; }
.ed-tpl { font: inherit; color: var(--ink); background: var(--paper-2); border: 2px solid var(--edge); border-radius: 12px; padding: 8px 14px; min-height: 56px; cursor: pointer; text-align: left; display: flex; flex-direction: column; justify-content: center; }
.ed-tpl strong { font-family: var(--serif); text-transform: uppercase; letter-spacing: .03em; font-size: 18px; }
.ed-tpl small { color: var(--ink-2); font-size: 14px; }
.ed-tpl:hover { border-color: var(--red); }
.ed-tpl.ghost { background: transparent; border-style: dashed; color: var(--ink-2); }
.ed-sum { margin: 6px 0 10px; color: var(--ink-2); font-size: 15px; }
.ed-sum.dirty { color: var(--red-txt); font-weight: 700; }
.ed-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ed-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px; }
.ed-row.brk { background: #17140E; border-color: #3A3020; }
.ed-row.now { border: 2px solid var(--red); box-shadow: 0 0 0 3px rgba(168, 19, 27, .18); }
.ed-row.locked { opacity: .5; }
.ed-n { font-family: var(--serif); font-size: 26px; font-weight: 700; text-align: center; line-height: 1; }
.ed-n small { display: block; font-family: var(--sans); font-size: 14px; color: var(--red-txt); font-weight: 700; margin-top: 2px; text-transform: uppercase; }
.ed-fields { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.ed-step { display: flex; align-items: center; gap: 2px; }
.ed-step-l { font-size: 14px; color: var(--ink-2); min-width: 34px; text-align: right; margin-right: 4px; text-transform: uppercase; letter-spacing: .04em; }
.ed-step.wide .ed-step-l { min-width: 0; text-transform: none; letter-spacing: 0; font-size: 15px; }
.ed-sb, .ed-act { font: inherit; font-size: 22px; font-weight: 700; color: var(--ink); background: var(--paper-2); border: 1px solid var(--edge); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.ed-sb:hover:not(:disabled), .ed-act:hover:not(:disabled) { border-color: var(--red); background: var(--red-soft); }
.ed-sb:disabled, .ed-act:disabled { opacity: .3; cursor: not-allowed; }
.ed-v { font: inherit; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; width: 86px; height: 44px; text-align: center; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; user-select: text; }
.ed-v:focus { outline: none; border-color: var(--red); }
.ed-label { width: 240px; max-width: 100%; height: 44px; min-height: 44px; font-size: 17px; }
.ed-acts { display: flex; gap: 4px; }
.ed-adds { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 12px 0; }
.ed-add { min-width: 150px; }
.ed-bar { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 0 4px; background: linear-gradient(180deg, rgba(18, 18, 21, 0), #121215 30%); z-index: 2; }
.ed-save { margin-left: auto; min-width: 220px; }
.ed-mode { display: flex; border: 2px solid var(--edge); border-radius: 12px; overflow: hidden; }
.ed-mode-b { font: inherit; font-size: 16px; color: var(--ink-2); background: transparent; border: 0; padding: 0 14px; min-height: 56px; cursor: pointer; }
.ed-mode-b.on { background: var(--red); color: #fff; font-weight: 700; }
.ed-text { margin-top: 14px; }
.ed-text > summary { cursor: pointer; color: var(--ink-2); font-size: 15px; min-height: 44px; display: flex; align-items: center; }
/* toque (tablet/celular): alvos de 64 px como no resto do app */
@media (pointer: coarse) {
  .ed-sb, .ed-act { width: 64px; height: 64px; }
  .ed-v { height: 64px; width: 92px; }
  .ed-label { height: 64px; }
  .ed-row { grid-template-columns: 44px 1fr; }
  .ed-acts { grid-column: 1 / -1; justify-content: flex-end; }
}
.modal-choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; max-height: 50vh; overflow: auto; }
.modal-choices .btn { min-width: 120px; }
