/* Tema verde claro — layout no estilo de site de odds (menu à esquerda, jogos no meio, cupom à direita) */
:root {
  --bg: #edf6ed;
  --bg-2: #f5fbf5;
  --panel: #ffffff;
  --panel-2: #f1f8f1;
  --line: #d6e9d7;
  --row-line: #e4f0e4;
  --text: #15301a;
  --muted: #5d7762;
  --accent: #388e3c;          /* botões principais */
  --accent-strong: #2e7d32;   /* textos e links em verde */
  --accent-ink: #ffffff;
  --accent-soft: #e3f3e4;     /* botões do menu */
  --bar: #388e3c;             /* faixas: cabeçalho de campeonato, cupom */
  --bar-dark: #2e7d32;        /* topo do site */
  --odd-bg: #c8e6c9;
  --odd-hover: #b3dbb5;
  --odd-text: #1b5e20;
  --green: #2e7d32;
  --red: #d32f2f;
  --amber: #b26a00;
  --live: #e53935;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(27, 94, 32, .08);
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --display: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-strong); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
svg.i { width: 24px; height: 24px; fill: currentColor; flex: none; }

/* ---------- topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  height: 64px; padding: 0 20px;
  background: var(--bar-dark); color: #fff;
  box-shadow: 0 2px 8px rgba(27, 94, 32, .2);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: #fff; font-family: var(--display); font-weight: 800; font-size: 25px; letter-spacing: .3px; text-transform: uppercase; white-space: nowrap; }
.brand > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: #fff; color: var(--bar-dark); display: grid; place-items: center; font-size: 18px; font-weight: 900; flex: none; }
.lookup { margin-left: auto; display: flex; gap: 6px; flex: none; }
.lookup input { width: 190px; padding: 9px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .15); color: #fff; font-family: var(--display); font-size: 17px; letter-spacing: 1px; }
.lookup input::placeholder { color: rgba(255, 255, 255, .8); font-family: var(--font); font-size: 13px; letter-spacing: 0; }
.lookup input:focus { outline: 2px solid #fff; outline-offset: -1px; }
.lookup .btn { background: #fff; color: var(--bar-dark); border-color: #fff; }

/* ---------- botões genéricos (bilhete e painel) ---------- */
.btn { border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 9px 14px; border-radius: 8px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { background: var(--panel-2); border-color: var(--odd-hover); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; padding: 13px; font-size: 16px; }

.demo-banner { background: #fff8d6; color: #6b5800; text-align: center; font-size: 13px; padding: 6px 12px; border-bottom: 1px solid #efe1a0; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 290px minmax(0, 1fr) 370px; gap: 16px; max-width: 1500px; margin: 0 auto; padding: 16px; align-items: start; }
.sidebar, .slip { position: sticky; top: 80px; }

/* ---------- menu da esquerda ---------- */
.sidebar { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 96px); overflow: auto; }
.logo { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 0 18px; color: var(--text); }
.logo svg { width: 112px; height: 124px; }
.logo-name { margin-top: 10px; font-family: var(--display); font-weight: 800; font-size: 27px; line-height: 1; text-transform: uppercase; color: var(--accent-strong); }
.logo-tag { margin-top: 5px; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.menu-item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 62px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--accent-soft); color: var(--text); font-family: var(--display); font-weight: 700; font-size: 22px; text-align: left; }
.menu-item:hover { background: #d3ebd4; }
.menu-item.active { background: var(--bar); color: #fff; }
.menu-item .chev { margin-left: auto; width: 22px; height: 22px; transition: transform .15s; }
.menu-item.open .chev { transform: rotate(180deg); }
.menu-sub { display: flex; flex-direction: column; gap: 2px; padding: 4px 0 6px 8px; max-height: 380px; overflow: auto; }
.menu-sub .cat { margin: 8px 10px 2px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.sub-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font-size: 14.5px; font-weight: 500; text-align: left; }
.sub-item:hover { background: var(--panel-2); }
.sub-item.active { background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; }
.sub-item .count { color: var(--muted); font-size: 12px; font-weight: 500; }
.sub-loading { padding: 10px; font-size: 13px; }
.menu-cta { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 66px; border-radius: 8px; background: var(--bar-dark); color: #fff; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .5px; text-transform: uppercase; }
.menu-cta:hover { background: #256b29; }

.chips { display: none; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.chip { flex: none; padding: 9px 14px; border: 0; border-radius: 999px; background: var(--panel); color: var(--text); font-weight: 700; font-size: 14px; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line); }
.chip.active { background: var(--bar); color: #fff; box-shadow: none; }

/* ---------- faixa de destaque ---------- */
.banner {
  position: relative; height: 272px; margin-bottom: 14px; border-radius: var(--radius); overflow: hidden;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 70px, transparent 70px 140px),
    radial-gradient(ellipse at 50% 120%, rgba(255, 255, 255, .25), transparent 60%),
    linear-gradient(120deg, #2e7d32, #66bb6a 50%, #43a047);
}
.banner::before {
  content: ""; position: absolute; inset: 0; opacity: .28;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 270' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='white' stroke-width='3'%3E%3Crect x='20' y='15' width='760' height='240'/%3E%3Cline x1='400' y1='15' x2='400' y2='255'/%3E%3Ccircle cx='400' cy='135' r='55'/%3E%3Crect x='20' y='70' width='95' height='130'/%3E%3Crect x='685' y='70' width='95' height='130'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.banner-tiles { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 20px 30px; padding: 20px; }
.tile {
  padding: 14px 14px; border-radius: 8px; border: 3px solid #a5d6a7;
  background: linear-gradient(180deg, #4caf50, #2e7d32);
  box-shadow: 0 0 0 3px #1b5e20, 0 10px 22px rgba(0, 0, 0, .22), inset 0 2px 0 rgba(255, 255, 255, .35);
  color: #fff; font-family: var(--display); font-weight: 800; font-size: 31px; line-height: 1.05;
  letter-spacing: .5px; text-align: center; text-transform: uppercase; text-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- título + busca ---------- */
.view-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-bottom: 14px; }
.view-icon { width: 56px; height: 56px; flex: none; border-radius: 8px; background: var(--bar); color: #fff; display: grid; place-items: center; }
.view-icon svg { width: 32px; height: 32px; }
.view-title-wrap { flex: 1 1 auto; display: flex; align-items: center; gap: 14px; min-width: 0; }
.view-head h1 { min-width: 0; margin: 0; font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.1; }
.search { flex: 1 1 300px; max-width: 520px; display: flex; height: 58px; border-radius: 8px; overflow: hidden; background: var(--panel); box-shadow: var(--shadow); }
.search input { flex: 1; min-width: 0; border: 0; padding: 0 16px; background: transparent; color: var(--text); font-size: 16px; }
.search input::placeholder { color: #9bb19e; }
.search input:focus { outline: none; }
.search:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.search button { width: 66px; border: 0; background: var(--bar); color: #fff; display: grid; place-items: center; }
.search button svg { width: 28px; height: 28px; }

/* ---------- lista de jogos ---------- */
.games { background: var(--panel); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.comp-head { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 7px 14px; background: var(--bar); color: #fff; }
.comp-head .flag { width: 26px; height: 26px; flex: none; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 15px; line-height: 1; overflow: hidden; }
.comp-head .flag img { width: 100%; height: 100%; object-fit: cover; }
.comp-head .flag svg { width: 100%; height: 100%; }
.comp-head h2 { flex: 1; min-width: 0; margin: 0; font-size: 17.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comp-head h2 a { color: #fff; }
.comp-head h2 a:hover { text-decoration: underline; }
.legend { display: flex; padding-right: 78px; color: #dff2e0; font-size: 16px; }
.legend span { width: 75px; text-align: center; }

.event { border-bottom: 1px solid var(--row-line); }
.event:last-child { border-bottom: 0; }
.event-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 80px; padding: 6px 14px; }
.ev-time { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding-right: 10px; border-right: 1px solid var(--row-line); font-size: 17px; line-height: 1.55; }
.ev-teams { min-width: 0; }
.team { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 17px; font-weight: 700; }
.team + .team { margin-top: 10px; }
.tname { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.crest { position: relative; overflow: hidden; width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); border: 1.5px solid #a5d6a7; color: var(--accent-strong); font-size: 10px; font-weight: 900; letter-spacing: -.2px; }
.crest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 2px; background: #fff; }
.ev-note { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.live-badge { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: var(--live); font-size: 12px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; }
.live-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.ev-actions { display: flex; align-items: center; gap: 8px; }
.odds-group { display: flex; border-radius: 8px; overflow: hidden; background: var(--odd-bg); }
.odds-group .odd {
  position: relative; width: 75px; height: 66px; border: 0; background: transparent; color: var(--odd-text);
  font-size: 20px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.odds-group .odd + .odd::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; background: rgba(255, 255, 255, .85); }
.odds-group .odd small { display: none; }
@media (hover: hover) { .odds-group .odd:hover:not(:disabled) { background: var(--odd-hover); } }
.odds-group .odd.selected, .odds-group .odd.selected:hover:not(:disabled) { background: var(--bar-dark); color: #fff; }
.odds-group .odd.selected::before, .odds-group .odd.selected + .odd::before { opacity: 0; }
.odds-group .odd:disabled { color: rgba(27, 94, 32, .4); cursor: not-allowed; }
.odds-empty { display: flex; align-items: center; justify-content: center; width: 225px; height: 66px; border: 0; border-radius: 8px; background: var(--odd-bg); color: var(--odd-text); font-size: 15px; font-weight: 700; }
.odds-empty:hover { background: var(--odd-hover); }
.more-btn { width: 70px; height: 66px; border: 0; border-radius: 8px; background: var(--bar); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.more-btn b { font-size: 26px; font-weight: 700; }
.more-btn small { font-size: 10.5px; font-weight: 700; margin-top: 3px; opacity: .9; }
.more-btn:hover, .more-btn.open { background: var(--bar-dark); }
.more-btn:disabled { opacity: .35; cursor: not-allowed; }

.comp-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 17px 16px; border: 0; border-bottom: 1px solid var(--row-line); background: var(--panel); color: var(--text); font-size: 16.5px; font-weight: 700; text-align: left; }
.comp-row:hover { background: var(--panel-2); }
.comp-row .count { color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; }

/* mercados abertos (+) */
.markets { padding: 4px 14px 14px; background: var(--bg-2); border-top: 1px solid var(--row-line); }
.market { margin-top: 12px; }
.market-title { margin-bottom: 6px; padding: 8px 12px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-strong); font-size: 14px; font-weight: 700; }
.line { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.line-label { width: 104px; flex: none; font-size: 13px; font-weight: 600; color: var(--muted); }
.line .odds { flex: 1; display: flex; gap: 6px; min-width: 0; }
.odd.wide { flex: 1 1 0; min-width: 0; min-height: 52px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.odd.wide small { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 4px; font-size: 12px; color: var(--muted); }
.odd.wide b { font-size: 18px; color: var(--odd-text); }
@media (hover: hover) { .odd.wide:hover:not(:disabled) { border-color: var(--accent); background: var(--panel-2); } }
.odd.wide.selected, .odd.wide.selected:hover:not(:disabled) { background: var(--bar-dark); border-color: var(--bar-dark); }
.odd.wide.selected small, .odd.wide.selected b { color: #fff; }
.odd.wide:disabled { opacity: .45; cursor: not-allowed; }

.empty, .loading { padding: 40px 14px; text-align: center; color: var(--muted); }
.games .empty { background: var(--panel); }
.skeleton { height: 80px; margin-bottom: 2px; background: linear-gradient(90deg, #f6fbf6 0%, #e4f2e5 50%, #f6fbf6 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* regulamento */
.doc { padding: 22px 26px; background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 15.5px; line-height: 1.55; }
.doc h2 { margin: 18px 0 8px; font-family: var(--display); font-size: 24px; color: var(--accent-strong); }
.doc h2:first-child { margin-top: 0; }
.doc li { margin-bottom: 7px; }

/* ---------- cupom ---------- */
.slip { display: flex; flex-direction: column; background: var(--panel); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.slip-head { position: relative; display: flex; align-items: center; justify-content: center; height: 56px; padding: 0 14px; background: var(--bar); color: #fff; }
.slip-head h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 25px; }
.slip-head .pill { margin-left: 6px; padding: 0 8px; border-radius: 999px; background: #fff; color: var(--bar-dark); font-size: 14px; font-weight: 800; vertical-align: 3px; }
.slip-sub { display: flex; justify-content: space-between; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--row-line); background: var(--panel-2); font-size: 13px; font-weight: 700; color: var(--muted); }
.slip-clear { border: 0; background: none; padding: 0; color: var(--accent-strong); font-size: 13px; font-weight: 700; }
.slip-close { position: absolute; left: 12px; display: none; border: 0; background: none; color: #fff; font-size: 20px; }
.slip-body { min-height: 300px; max-height: calc(100vh - 480px); overflow: auto; }
.slip-empty { padding: 90px 30px; text-align: center; color: #9bb19e; font-size: 14px; }
.slip-item { position: relative; padding: 12px 44px 12px 16px; border-bottom: 1px solid var(--row-line); }
.slip-item .pick { font-weight: 700; padding-right: 50px; }
.slip-item .mk, .slip-item .ev { font-size: 12.5px; color: var(--muted); }
.slip-item .price { position: absolute; right: 44px; top: 11px; font-size: 20px; font-weight: 700; color: var(--accent-strong); }
.slip-item .old { margin-right: 4px; font-size: 14px; color: var(--muted); text-decoration: line-through; }
.slip-item .rm { position: absolute; right: 10px; top: 12px; width: 26px; height: 26px; border: 0; border-radius: 6px; background: var(--accent-soft); color: var(--accent-strong); font-size: 17px; line-height: 1; }
.slip-item.changed { background: #fff7e3; }
.slip-item.changed .price { color: var(--amber); }
.slip-item.problem { background: #fdeeee; }
.slip-item .warn { margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--red); }
.slip-foot { display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 16px; border-top: 1px solid var(--line); }
.totals { display: flex; justify-content: space-between; gap: 10px; }
.totals span { display: block; font-size: 15px; }
.totals b { display: block; font-size: 22px; font-weight: 700; color: var(--accent-strong); }
.totals .r { text-align: right; }
.slip-type { margin-top: 2px; font-size: 12px; font-weight: 700; color: var(--muted); }
.inline-field { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: 10px; font-size: 15px; }
.inline-field input, .money { width: 100%; height: 50px; border: 1px solid transparent; border-radius: 6px; background: #eef6ee; color: var(--text); font-size: 16px; }
.inline-field input { padding: 0 12px; }
.inline-field input:focus, .money:focus-within { outline: 2px solid var(--accent); outline-offset: -1px; }
.money { display: flex; align-items: center; }
.money span { padding-left: 12px; color: var(--muted); font-weight: 700; }
.money input { height: 100%; border: 0; background: transparent; outline: none !important; padding: 0 10px 0 6px; }
.btn-finalizar { width: 100%; height: 64px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font-family: var(--display); font-weight: 700; font-size: 23px; }
.btn-finalizar:hover:not(:disabled) { background: var(--accent-strong); }
.btn-finalizar:disabled { background: #d5e8d6; cursor: not-allowed; }
.slip-note { font-size: 11.5px; line-height: 1.4; text-align: center; color: var(--muted); }
.alert { padding: 10px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.alert-warn { background: #fff7e3; color: var(--amber); border: 1px solid #f1d89a; }
.alert-err { background: #fdeeee; color: var(--red); border: 1px solid #f3c1c1; }

/* usados nas páginas de bilhete e painel */
.sum-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.sum-row b { font-family: var(--display); font-size: 22px; font-weight: 700; }
.sum-row.big b { color: var(--accent-strong); font-size: 28px; }
.side-title { margin: 14px 10px 6px; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.field label { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 700; color: var(--muted); }
.field input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); color: var(--text); font-size: 15px; }

.slip-fab { display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; justify-content: space-between; align-items: center; padding: 15px 18px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; box-shadow: 0 10px 28px rgba(27, 94, 32, .35); }
.slip-fab b { font-size: 21px; }
.backdrop { display: none; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #1f4d24; color: #fff; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(20px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

footer.site { max-width: 1500px; margin: 6px auto 40px; padding: 0 20px; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- responsivo ---------- */
@media (max-width: 1240px) {
  .layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .sidebar { display: none; }
  .chips { display: flex; }
  .banner { height: 220px; }
  .tile { font-size: 27px; }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding: 12px 12px 92px; }
  .topbar { height: 56px; padding: 0 14px; gap: 10px; }
  .brand { font-size: 21px; }
  .lookup input { width: 128px; }
  .lookup .btn { font-size: 0; padding: 9px 13px; }
  .lookup .btn::after { content: "→"; font-size: 17px; }
  .banner { height: 150px; }
  .banner-tiles { gap: 10px 12px; padding: 12px; }
  .tile { padding: 8px 10px; font-size: 17px; border-width: 2px; box-shadow: 0 0 0 2px #1b5e20, 0 6px 14px rgba(0, 0, 0, .2); }
  .view-head { flex-wrap: wrap; gap: 10px; }
  .view-icon { width: 44px; height: 44px; }
  .view-icon svg { width: 26px; height: 26px; }
  .view-head h1 { font-size: 23px; }
  .view-title-wrap { gap: 10px; }
  .search { flex: 1 1 100%; max-width: none; height: 50px; }
  .legend { display: none; }
  .comp-head h2 { font-size: 16px; white-space: normal; }
  .event-row { grid-template-columns: 54px minmax(0, 1fr); gap: 10px; padding: 10px 12px; }
  .ev-time { font-size: 14px; line-height: 1.4; padding-right: 8px; }
  .team { font-size: 15.5px; }
  .ev-actions { grid-column: 1 / -1; }
  .odds-group, .odds-empty { flex: 1; width: auto; }
  .odds-group .odd { flex: 1 1 0; width: auto; height: 56px; }
  .odds-group .odd small { display: block; font-size: 11px; font-weight: 500; opacity: .75; }
  .more-btn { width: 60px; height: 56px; }
  .odds-empty { height: 56px; }
  .line { flex-direction: column; align-items: stretch; gap: 4px; }
  .line-label { width: auto; }
  .slip { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60; max-height: 88vh; border-radius: 16px 16px 0 0; transform: translateY(105%); transition: transform .25s ease; }
  .slip.open { transform: translateY(0); }
  .slip-close { display: block; }
  .slip-body { flex: 1; min-height: 120px; max-height: none; }
  .slip-empty { padding: 30px; }
  .slip-fab.has-items { display: flex; }
  .backdrop.open { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(10, 40, 14, .45); }
}
@media (max-width: 400px) {
  .lookup input { width: 110px; }
  .tile { font-size: 15px; }
}
