/* =========================================================================
   MAEDAS GAMES — sistema de design comum a todas as páginas e jogos.
   Regras de elementos (h1, input, label…) só valem fora dos jogos
   (body:not(.game)); os componentes usam classes e valem em todo o lado.
   Página nova: <link rel="stylesheet" href="/site.css">, <script src="/site.js" defer>
   e o esqueleto  <main class="page"> <header class="page-head">…</header> … </main>
   ========================================================================= */
:root {
  --bg: #070b14;
  --bg-2: #0c1322;
  --card: #111a2c;
  --card-2: #16213a;
  --line: #22304d;
  --line-2: #2d3e63;
  --text: #eef2fb;
  --muted: #93a1bd;
  --faint: #64748b;
  --accent: #22c55e;
  --accent-2: #16a34a;
  --accent-ink: #04210f;
  --blue: #3b82f6;
  --gold: #fbbf24;
  --err: #f87171;
  --warn: #fbbf24;
  --ok: #4ade80;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --nav-h: 60px;
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base (páginas do site) */
* { box-sizing: border-box; }
body:not(.game) {
  margin: 0; font-family: var(--font); color: var(--text); font-size: 15px; line-height: 1.5;
  background: radial-gradient(1200px 600px at 15% -10%, rgba(34, 197, 94, .10), transparent 60%),
              radial-gradient(900px 500px at 100% 0%, rgba(59, 130, 246, .10), transparent 60%), var(--bg);
  background-attachment: fixed; min-height: 100vh; -webkit-font-smoothing: antialiased;
}
body:not(.game) a:not([class]) { color: #8ab4ff; }
a.card, a.game-card { color: var(--text); }
body:not(.game) h1 { margin: 0 0 4px; font-size: 26px; font-weight: 800; letter-spacing: -.4px; }
body:not(.game) h2 { margin: 0 0 8px; font-size: 18px; font-weight: 750; }
body:not(.game) label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; font-weight: 600; }
body:not(.game) input:not([type=checkbox]):not([type=radio]):not([type=file]), body:not(.game) select, body:not(.game) textarea {
  width: 100%; padding: 11px 13px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
body:not(.game) input:focus, body:not(.game) select:focus, body:not(.game) textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 197, 94, .22);
}
body.center { display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 20px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* ---------------------------------------------------------------- layout */
.page, .wrap { max-width: 1120px; margin: 0 auto; padding: 28px 20px 96px; }
.page.narrow { max-width: 560px; }
.page.mid { max-width: 820px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); }
.page-head p { margin: 2px 0 0; color: var(--muted); }
.section-title { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------------------------------------------------------------- cartões */
.card, .box, .panel {
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset;
}
.box { width: 100%; max-width: 420px; padding: 28px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card h2, .box h2 { margin-top: 0; }

/* hero (portal) */
.hero {
  position: relative; overflow: hidden; border-radius: 22px; padding: 38px 32px; margin-bottom: 28px;
  background: linear-gradient(100deg, rgba(7, 11, 20, .94) 25%, rgba(7, 11, 20, .25)), url("/assets/stadium.svg") center 70%/cover;
  border: 1px solid var(--line);
}
.hero h1 { font-size: 36px !important; }
.hero p { color: #c7d2e8; max-width: 520px; margin: 6px 0 18px; }

/* grelha de jogos (capa colorida + ações) */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.game-card {
  display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  background: var(--card); text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.game-card .cover { height: 168px; display: flex; align-items: center; justify-content: center; font-size: 72px; position: relative; }
.game-card .cover.foot { background: radial-gradient(circle at 50% 120%, #4ade80 0, #16a34a 35%, #065f46 75%); }
.game-card .cover.goball { background: radial-gradient(circle at 50% 120%, #a78bfa 0, #6d28d9 40%, #312e81 80%); }
.game-card .cover .ribbon { position: absolute; top: 12px; right: 12px; background: #0b1220; color: #fff; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; letter-spacing: .5px; }
.game-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game-card h3 { margin: 0; font-size: 21px; font-weight: 800; }
.game-card p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.game-card.soon { opacity: .75; pointer-events: none; }

/* ---------------------------------------------------------------- botões */
.btn, button.go {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px;
  padding: 10px 18px; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 800; font-size: 14px;
  cursor: pointer; text-decoration: none; transition: filter .15s, transform .1s, background .15s; white-space: nowrap;
}
.btn:hover, button.go:hover { filter: brightness(1.08); }
.btn:active, button.go:active { transform: translateY(1px); }
button.go { width: 100%; margin-top: 22px; padding: 12px; font-size: 15px; }
.btn.ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--line-2); font-weight: 650; }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.btn.blue { background: var(--blue); color: #fff; }
.btn.danger { background: #b91c1c; color: #fff; }
.btn.small { padding: 6px 12px; font-size: 12.5px; }
.btn.lg { padding: 14px 24px; font-size: 16px; }
.btn.block { width: 100%; }
button:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; }

/* botão grande de escolha (menus dos jogos) */
.choice {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 18px 20px; margin-bottom: 12px;
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, .12); color: #fff; cursor: pointer; font: inherit; font-family: var(--font);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.choice:hover { transform: translateY(-2px); box-shadow: var(--shadow); filter: brightness(1.07); }
.choice .ico { width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, .14); display: flex; align-items: center; justify-content: center; font-size: 26px; flex: none; }
.choice b { display: block; font-size: 18px; font-weight: 800; }
.choice small { display: block; font-size: 13px; opacity: .85; margin-top: 2px; }
.choice .go-arrow { margin-left: auto; font-size: 22px; opacity: .7; }
.choice.green { background: linear-gradient(135deg, #16a34a, #065f46); }
.choice.blue { background: linear-gradient(135deg, #2563eb, #1e3a8a); }
.choice.dark { background: linear-gradient(135deg, #1e293b, #0f172a); }
.choice.red { background: linear-gradient(135deg, #b91c1c, #7f1d1d); }
.choice.compact { padding: 12px 16px; margin-bottom: 8px; border-radius: 14px; }
.choice.compact .ico { width: 38px; height: 38px; font-size: 19px; border-radius: 11px; }
.choice.compact b { font-size: 15px; }

/* ---------------------------------------------------------------- abas e segmentos */
.tabs, .seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; }
.tabs { display: flex; margin-bottom: 18px; }
.tabs button, .seg button {
  flex: 1; border: 0; padding: 8px 16px; border-radius: 999px; background: transparent; color: var(--muted);
  font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: background .15s, color .15s; white-space: nowrap;
}
.tabs button.on, .seg button.on { background: var(--card-2); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 2px 8px rgba(0, 0, 0, .3); }
.tabs button:hover:not(.on), .seg button:hover:not(.on) { color: var(--text); }

/* ---------------------------------------------------------------- formulários e mensagens */
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.err { color: var(--err); font-size: 13.5px; min-height: 18px; margin-top: 12px; }
.okmsg { color: var(--ok); font-size: 13.5px; margin-top: 8px; }
.links { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13.5px; }
.back { display: block; text-align: center; margin-top: 18px; color: var(--muted) !important; font-size: 13.5px; text-decoration: none; }
.back:hover { color: var(--text) !important; }
.notice { border-radius: 12px; padding: 10px 14px; font-size: 13.5px; border: 1px solid; margin-bottom: 14px; white-space: pre-line; }
.notice.info { background: rgba(59, 130, 246, .12); border-color: rgba(59, 130, 246, .4); }
.notice.warn { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .4); color: #fde68a; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.sitefoot { max-width: 1120px; margin: 0 auto; padding: 18px 20px 110px; color: var(--faint); font-size: 12.5px; text-align: center; border-top: 1px solid var(--line); }
@media (min-width: 761px) { .sitefoot { padding-bottom: 28px; } }

/* ---------------------------------------------------------------- etiquetas, avatar */
.tag, .chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: #cbd5e1; border: 1px solid var(--line); }
.tag.green { background: rgba(34, 197, 94, .14); color: #86efac; border-color: rgba(34, 197, 94, .35); }
.tag.amber { background: rgba(251, 191, 36, .12); color: #fde68a; border-color: rgba(251, 191, 36, .35); }
.tag.gray { color: var(--muted); }
.tag.blue { background: rgba(59, 130, 246, .14); color: #bfdbfe; border-color: rgba(59, 130, 246, .35); }
.badge { background: #ef4444; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 800; padding: 1px 6px; line-height: 16px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, #2563eb, #16a34a); border: 2px solid rgba(255, 255, 255, .1);
}
.avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.avatar.lg { width: 96px; height: 96px; font-size: 34px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); display: inline-block; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(74, 222, 128, .2); }

/* ---------------------------------------------------------------- estatísticas e troféus */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.stat, .st { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; }
.stat b, .st b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.3px; }
.stat span, .st span { font-size: 12px; color: var(--muted); }
.trophies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.trophy { border-radius: 14px; padding: 14px 8px; text-align: center; border: 1px solid rgba(251, 191, 36, .3);
  background: radial-gradient(circle at 50% 0, rgba(251, 191, 36, .18), transparent 70%), var(--bg-2); }
.trophy .t-ico { font-size: 26px; }
.trophy b { display: block; font-size: 24px; color: var(--gold); line-height: 1.2; }
.trophy span { font-size: 12px; color: var(--muted); }
.trophy.zero { filter: grayscale(1); opacity: .6; }

/* ---------------------------------------------------------------- tabelas */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.table th, table.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
table.table th { background: var(--bg-2); color: var(--muted); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; }
table.table .name { text-align: left; }
table.table tr:last-child td { border-bottom: 0; }
table.table tbody tr { cursor: pointer; transition: background .12s; }
table.table tbody tr:hover td { background: rgba(255, 255, 255, .03); }
table.table tr.me td { background: rgba(34, 197, 94, .08); }
.who { display: flex; align-items: center; gap: 10px; }
table.table .pos { font-weight: 900; font-size: 16px; }

/* ---------------------------------------------------------------- diálogos */
dialog.mg-dialog {
  background: var(--card); color: var(--text); border: 1px solid var(--line-2); border-radius: 20px; padding: 22px;
  width: min(560px, 94vw); box-shadow: var(--shadow); font-family: var(--font); font-size: 14px; line-height: 1.5;
}
dialog.mg-dialog, dialog.mg-dialog:focus, dialog.mg-dialog :focus:not(:focus-visible) { outline: none; }
dialog.mg-dialog::backdrop { background: rgba(3, 6, 12, .7); backdrop-filter: blur(3px); }

/* ---------------------------------------------------------------- navegação */
.sitenav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; gap: 22px; padding: 0 22px;
  background: rgba(7, 11, 20, .82); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line);
  font-family: var(--font); width: 100%; align-self: stretch;
}
.sitenav .brand { display: flex; align-items: center; gap: 9px; font-weight: 900; font-size: 17px; color: var(--text); text-decoration: none; letter-spacing: -.2px; }
.sitenav .brand img { width: 30px; height: 30px; border-radius: 9px; }
.sitenav .brand span { color: var(--accent); }
.sitenav .nav-links { display: flex; gap: 2px; flex: 1; }
.sitenav .nav-links a {
  display: flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none; padding: 8px 13px; border-radius: 999px;
  font-size: 14px; font-weight: 650; transition: background .15s, color .15s;
}
.sitenav .nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.sitenav .nav-links a.on { color: var(--text); background: rgba(34, 197, 94, .14); }
.sitenav .me { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.sitenav .me a.me-link { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 650; }
.sitenav .me .avatar { width: 34px; height: 34px; font-size: 14px; }
.ni { font-size: 16px; line-height: 1; }
.sitenav .brand.game-brand {
  font-size: 19px; letter-spacing: 1.5px; font-weight: 950;
  background: linear-gradient(90deg, #4ade80, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(34, 197, 94, .35));
}
.sitenav .brand span { margin-left: 4px; }
.sitenav .me-menu { position: relative; }
.sitenav .me-btn {
  display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid var(--line);
  color: var(--text); font: 650 14px var(--font); transition: border-color .15s, box-shadow .15s;
}
.sitenav .me-btn:hover, .sitenav .me-btn[aria-expanded="true"] { border-color: rgba(34, 197, 94, .5); box-shadow: 0 0 16px rgba(34, 197, 94, .22); }
.sitenav .me-btn:focus-visible, .sitenav .me-drop [role="menuitem"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sitenav .me-btn .caret { font-size: 11px; color: var(--muted); }
.sitenav .me-drop {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 6px; z-index: 80; display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(180deg, rgba(17, 24, 39, .98), rgba(7, 11, 20, .98)); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 0 24px rgba(34, 197, 94, .12); animation: meDrop .14s ease-out;
}
.sitenav .me-drop[hidden] { display: none; }
@keyframes meDrop { from { opacity: 0; transform: translateY(-6px); } }
.sitenav .me-drop [role="menuitem"] {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; border: 0; background: none;
  color: var(--text); text-decoration: none; font: 600 14px var(--font); text-align: left; cursor: pointer; position: relative;
}
.sitenav .me-drop [role="menuitem"]:hover, .sitenav .me-drop [role="menuitem"]:focus { background: rgba(255, 255, 255, .06); outline: none; }
.sitenav .me-drop .premium-item { color: #fde68a; background: linear-gradient(90deg, rgba(250, 204, 21, .16), rgba(250, 204, 21, .03)); }
.sitenav .me-drop .premium-item.on { box-shadow: inset 0 0 0 1px rgba(250, 204, 21, .45); }
.sitenav .me-drop .logout-item { color: #fca5a5; }
.sitenav .me-drop .badge { margin-left: 6px; }
.sitenav .me-drop hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }
@media (max-width: 760px) { .sitenav .me-btn { padding: 4px 8px 4px 4px; } .sitenav .me-drop { position: fixed; right: 10px; top: calc(var(--nav-h) + 4px); min-width: min(260px, calc(100vw - 20px)); } .sitenav .me-drop [role="menuitem"] { padding: 13px 12px; } }

/* barra inferior (telemóvel / app instalada) */
.tabbar { display: none; }
@media (max-width: 760px) {
  .sitenav { padding: 0 14px; gap: 12px; }
  .sitenav .nav-links { flex: 1; }
  .sitenav .me .nm { display: none; }
  .sitenav .brand { font-size: 16px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(7, 11, 20, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); font-family: var(--font);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--faint); font-size: 10.5px; font-weight: 700; padding: 4px 0; position: relative; }
  .tabbar a .ni { font-size: 21px; filter: grayscale(1) opacity(.75); }
  .tabbar a.on { color: var(--accent); }
  .tabbar a.on .ni { filter: none; }
  .tabbar .badge { position: absolute; top: 0; left: 55%; }
  .page, .wrap { padding: 20px 14px 96px; }
  .hero { padding: 26px 20px; }
  .hero h1 { font-size: 28px !important; }
}

/* jogos em ecrã inteiro: a navegação só aparece nos menus */
body.game .sitenav, body.game .tabbar { display: none; }
body.game.at-menu .sitenav { display: flex; }
@media (max-width: 760px) { body.game.at-menu .tabbar { display: grid; } }

/* ---------------------------------------------------------------- ecrã de estádio (manutenção, menus dos jogos) */
.stadium-bg, body.stadium-bg:not(.game) {
  min-height: 100vh; width: 100%; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: linear-gradient(180deg, rgba(7, 11, 20, .25), rgba(7, 11, 20, .88)), url("/assets/stadium.svg") center bottom/cover no-repeat, #04140c;
  font-family: var(--font);
}
body.game.at-menu { display: block !important; overflow: auto !important; }
body.game.at-menu .stadium-bg { min-height: calc(100vh - var(--nav-h)); }
@media (max-width: 760px) { body.game.at-menu .stadium-bg { padding-bottom: 96px; align-items: flex-start; } }
.room-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; background: rgba(12, 19, 34, .7); }
.mg-input { padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: 13px; }
.mg-input:focus { outline: none; border-color: var(--accent); }
.glass {
  width: 100%; max-width: 460px; border-radius: 22px; padding: 30px 28px; color: var(--text); font-family: var(--font);
  background: rgba(10, 16, 30, .74); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55); font-size: 14px; line-height: 1.5;
}
.glass.wide { max-width: 860px; }
.glass.center { text-align: center; }
.big-ico { width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-size: 36px;
  background: linear-gradient(135deg, rgba(251, 191, 36, .25), rgba(251, 191, 36, .05)); border: 1px solid rgba(251, 191, 36, .4); }
.glass h2 { margin: 0 0 8px; font-size: 24px; font-weight: 800; }
.glass .lead { margin: 0 0 20px; color: #c7d2e8; line-height: 1.55; white-space: pre-line; }
.game-logo { text-align: center; margin: 4px 0 22px; }
.game-logo .wordmark { font-size: 40px; font-weight: 900; letter-spacing: 1px; line-height: 1;
  background: linear-gradient(180deg, #bbf7d0, #22c55e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.game-logo small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }

/* ---------------------------------------------------------------- folha modal (assistentes e diálogos dos jogos) */
.sheet-wrap { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 14px;
  background: rgba(3, 6, 12, .66); backdrop-filter: blur(4px); animation: mg-fade .18s ease; }
.sheet {
  width: min(620px, 96vw); max-height: 94vh; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, var(--card-2), var(--card)); color: var(--text); border: 1px solid var(--line-2);
  border-radius: 22px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); font-family: var(--font); font-size: 14px; line-height: 1.45;
  animation: mg-rise .22s cubic-bezier(.2, .8, .2, 1); user-select: text;
}
.sheet.wide { width: min(940px, 96vw); }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px 6px; }
.sheet-head h2 { margin: 2px 0 0; font-size: 22px; font-weight: 850; letter-spacing: -.3px; color: var(--text); }
.sheet-x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); color: var(--text); cursor: pointer; font-size: 15px; flex: none; }
.sheet-x:hover { background: rgba(255, 255, 255, .12); }
.steps { display: flex; gap: 6px; padding: 8px 22px 4px; flex-wrap: wrap; }
.steps span { font-size: 12px; font-weight: 700; color: var(--faint); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.steps span.on { color: var(--accent-ink); background: var(--accent); border-color: transparent; }
.steps span.done { color: #86efac; border-color: rgba(34, 197, 94, .35); }
.sheet-body { padding: 14px 22px; overflow-y: auto; }
.sheet-foot { display: flex; align-items: center; gap: 8px; padding: 14px 22px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; justify-content: flex-end; }
.sheet .btn, .sheet .seg button { font-family: var(--font); }

/* cartões de opção (escolha única) */
.opt-list { display: flex; flex-direction: column; gap: 10px; }
.opt-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line-2);
  background: rgba(255, 255, 255, .03); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.opt-card:hover { border-color: #4b5f8c; transform: translateY(-1px); }
.opt-card input { position: absolute; opacity: 0; pointer-events: none; }
.opt-card:has(input:checked) { border-color: var(--accent); background: rgba(34, 197, 94, .1); box-shadow: 0 0 0 3px rgba(34, 197, 94, .15); }
.opt-ico { width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .07); display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none; }
.opt-text { flex: 1; min-width: 0; }
.opt-text b { display: block; font-size: 16px; }
.opt-text small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

/* grelha de países */
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; max-height: min(420px, 48vh); overflow-y: auto; padding: 2px; }
.country-chip { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  cursor: pointer; font-size: 13.5px; transition: border-color .12s, background .12s; }
.country-chip:hover { border-color: #4b5f8c; }
.country-chip:has(input:checked) { border-color: rgba(34, 197, 94, .6); background: rgba(34, 197, 94, .1); }
.country-chip input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.country-chip img { width: 22px; height: 15px; border-radius: 3px; object-fit: cover; }
.cc-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-n { font-size: 11.5px; color: var(--faint); font-weight: 700; }

/* treinadores */
.coach-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.coach-row { display: grid; grid-template-columns: auto 1fr 170px; gap: 10px; align-items: center; }
@media (max-width: 560px) { .coach-row { grid-template-columns: auto 1fr; } .coach-row select { grid-column: 2; } }

/* sorteio: cartões nas cores do clube */
.draw-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.draw-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; color: var(--club-ink);
  background: linear-gradient(115deg, var(--club) 0%, var(--club) 60%, color-mix(in srgb, var(--club) 65%, #000) 100%);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); animation: mg-pop .45s cubic-bezier(.2, .9, .3, 1.3) both; }
.draw-crest { width: 48px; height: 48px; border-radius: 50% 50% 46% 46% / 40% 40% 60% 60%; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 22px; background: var(--club-ink); color: var(--club); flex: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.draw-club { flex: 1; min-width: 0; }
.draw-club b { display: block; font-size: 18px; font-weight: 900; letter-spacing: .3px; }
.draw-club small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; opacity: .9; }
.draw-club img { width: 20px; height: 14px; border-radius: 2px; }
.draw-coach { text-align: right; font-size: 13px; }
.draw-coach span { display: block; font-size: 11px; opacity: .8; text-transform: uppercase; letter-spacing: .8px; }

@keyframes mg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mg-rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes mg-pop { from { opacity: 0; transform: scale(.9) translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-wrap, .draw-card { animation: none !important; } }

/* ---------------------------------------------------------------- tabelas e janelas dos jogos */
.sheet.xwide { width: min(1320px, 97vw); }
.mg-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: rgba(0, 0, 0, .18); }
table.mg-table { width: 100%; border-collapse: collapse; font-size: 13px; color: var(--text); }
.mg-table th { position: sticky; top: 0; z-index: 1; background: var(--bg-2); color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 9px 8px; text-align: center; white-space: nowrap; }
.mg-table td { padding: 7px 8px; border-top: 1px solid rgba(255, 255, 255, .05); text-align: center; white-space: nowrap; }
.mg-table .l { text-align: left; } .mg-table .r { text-align: right; }
.mg-table tbody tr { cursor: pointer; transition: background .1s; }
.mg-table tbody tr:hover td { background: rgba(255, 255, 255, .05); }
.mg-table tbody tr.sel td { background: color-mix(in srgb, var(--tm-accent, #22c55e) 22%, transparent); }
.mg-table tbody tr.me td { background: rgba(34, 197, 94, .1); }
.mg-table td img { width: 20px; height: 14px; border-radius: 2px; vertical-align: middle; }
.mg-table.compact td { padding: 5px 6px; }
.mg-table td.pos { color: var(--ok); } .mg-table td.neg { color: var(--err); }
.pos-badge { display: inline-block; min-width: 22px; padding: 1px 5px; border-radius: 6px; font-weight: 800; font-size: 11px; color: #fff; }
.pos-badge.g { background: #d97706; } .pos-badge.d { background: #2563eb; } .pos-badge.m { background: #059669; } .pos-badge.a { background: #dc2626; }
.skill-pill { display: inline-block; min-width: 28px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-weight: 800; }
.skill-pill.big { font-size: 22px; min-width: 52px; padding: 8px 10px; border-radius: 14px; text-align: center; background: var(--tm-accent, #22c55e); color: var(--tm-on-accent, #04210f); }
.club-chip { display: inline-block; padding: 2px 9px; border-radius: 6px; font-weight: 800; font-size: 12px; letter-spacing: .2px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }

/* procurar jogadores */
.search-filters { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.search-filters #fltQ { flex: 1 1 240px; }
.search-filters select { width: auto !important; }
.search-filters .fl { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.search-filters .num { width: 70px !important; }
.search-filters .ck { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.search-filters .ck input { accent-color: var(--accent); }

/* elenco de um clube, nas cores do clube */
.club-sheet { background: linear-gradient(180deg, var(--tm-surface), var(--tm-bg)); border-color: var(--tm-line); }
.club-hero { display: flex; align-items: center; gap: 14px; padding: 18px 20px; color: var(--tm-team-ink);
  background: linear-gradient(110deg, var(--tm-team) 0%, var(--tm-team) 58%, color-mix(in srgb, var(--tm-team) 55%, #000) 100%); }
.club-crest { width: 54px; height: 54px; flex: none; border-radius: 50% 50% 46% 46% / 40% 40% 60% 60%; display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 900; background: var(--tm-team-ink); color: var(--tm-team); box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.club-id { flex: 1; min-width: 0; }
.club-name { font-size: 22px; font-weight: 900; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.club-sub { font-size: 13px; opacity: .92; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.club-sub img { width: 20px; height: 14px; border-radius: 2px; }
.club-pick { max-width: 210px; padding: 7px 10px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .25); background: rgba(255, 255, 255, .92); color: #0f172a; font: inherit; font-size: 13px; }
.club-hero .sheet-x { background: rgba(255, 255, 255, .9); color: #0f172a; border-color: transparent; }
.club-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--tm-line); border-bottom: 1px solid var(--tm-line); }
.club-stats > div { background: var(--tm-surface-2); padding: 10px 14px; position: relative; }
.club-stats span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; font-weight: 700; }
.club-stats b { font-size: 16px; color: var(--text); }
.club-stats i { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.club-stats i::after { content: ""; position: absolute; inset: 0; width: var(--v); border-radius: 3px; background: var(--tm-accent); }
.club-body { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
.club-list { max-height: min(56vh, 520px); }
.club-side { display: flex; flex-direction: column; gap: 12px; }
.player-card { border: 1px solid var(--tm-line); border-radius: 16px; padding: 14px; background: rgba(0, 0, 0, .2); display: flex; flex-direction: column; gap: 10px; }
.pc-top { display: flex; gap: 12px; align-items: center; }
.pc-top b { display: block; font-size: 16px; }
.pc-top small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12.5px; }
.pc-top img { width: 18px; height: 12px; border-radius: 2px; }
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pc-grid > div { background: rgba(255, 255, 255, .04); border-radius: 10px; padding: 7px 9px; }
.pc-grid span { display: block; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; font-weight: 700; }
.pc-grid b { font-size: 13.5px; }
.club-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.club-actions .btn { width: 100%; }
.club-sheet .btn:not(.ghost) { background: var(--tm-accent); color: var(--tm-on-accent); }
@media (max-width: 860px) { .club-body { grid-template-columns: 1fr; } .club-stats { grid-template-columns: repeat(2, 1fr); } }

/* classificação */
.class-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 980px) { .class-grid { grid-template-columns: 1fr; } }
.table-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(0, 0, 0, .18); }
.table-card-head { padding: 9px 12px; font-weight: 850; font-size: 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.table-card .mg-table th { position: static; }
.rank { display: inline-flex; width: 22px; height: 22px; border-radius: 7px; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; font-style: normal; background: rgba(255, 255, 255, .06); }
.rank.up { background: rgba(34, 197, 94, .25); color: #86efac; }
.rank.down { background: rgba(239, 68, 68, .22); color: #fca5a5; }
.rank.champ { background: rgba(251, 191, 36, .28); color: #fde68a; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 12.5px; color: var(--muted); align-items: center; }
.legend b { color: var(--text); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.info-btn { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .06); color: var(--muted); font: 800 12px var(--font); cursor: pointer; vertical-align: middle; margin-left: 6px; }
.info-btn:hover { color: var(--text); }
.offer-card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line-2); border-radius: 14px; margin-bottom: 10px; background: rgba(255, 255, 255, .03); flex-wrap: wrap; }
.offer-text { flex: 1; min-width: 200px; font-size: 13.5px; }
.dialog-sheet { width: min(480px, 94vw); }
.dlg-ico { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: rgba(255, 255, 255, .07); flex: none; }
.dlg-text { font-size: 14px; line-height: 1.55; color: #dbe3f3; }
.dlg-text input, .dlg-text select { background: var(--bg-2) !important; color: var(--text) !important; border: 1px solid var(--line-2) !important; border-radius: 10px !important; padding: 8px 10px !important; font: inherit !important; }
.sell-opt { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; align-items: center; padding: 14px; border: 1px solid var(--line-2); border-radius: 16px; margin-bottom: 10px; background: rgba(255, 255, 255, .03); }
.sell-opt > div:first-child { grid-column: 1 / -1; }
.sell-opt b { display: block; font-size: 15px; }
.sell-opt small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.money-input { display: flex; flex-direction: column; gap: 8px; }
.money-field { display: flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 4px 12px; max-width: 320px; }
.money-field span { color: var(--muted); font-weight: 800; }
.money-field input { flex: 1; min-width: 0; background: transparent !important; border: 0 !important; color: var(--text) !important; font: 800 20px var(--font) !important; padding: 6px 0 !important; outline: none; box-shadow: none !important; }
.money-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.money-words { font-size: 12.5px; color: var(--accent); min-height: 16px; font-weight: 700; }
.res { display: inline-block; min-width: 64px; padding: 2px 8px; border-radius: 7px; font-weight: 800; font-size: 12px; text-align: center; }
.res.V { background: rgba(34, 197, 94, .22); color: #86efac; } .res.D { background: rgba(239, 68, 68, .22); color: #fca5a5; } .res.E { background: rgba(251, 191, 36, .2); color: #fde68a; }
.mg-table tr.cup-row td { background: rgba(251, 191, 36, .05); }
.class-head { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 12px; }
.class-head h2 { margin: 0; }
.class-round { font-size: 15px; color: var(--muted); text-align: center; }
.class-round b { color: var(--text); font-size: 17px; }
.class-season { text-align: right; font-size: 12.5px; color: var(--accent); font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
@media (max-width: 700px) { .class-head { grid-template-columns: 1fr auto; } .class-round, .class-season { grid-column: 1; text-align: left; } }

/* amigos dentro dos jogos */
html.embedded body { padding: 0 !important; }
html.embedded .page, html.embedded .wrap { padding: 12px !important; }
#mgFriendsDock { position: fixed; left: 14px; bottom: 14px; z-index: 9300; }
#mgFriendsDock button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(12, 19, 34, .92); color: #fff; font-size: 21px; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 0, 0, .45); position: relative; }
#mgFriendsDock button:hover { transform: scale(1.06); }
#mgFriendsDock .badge { position: absolute; top: -4px; right: -4px; }
#mgFriendsPane { position: fixed; left: 14px; bottom: 72px; z-index: 9800; width: min(880px, 94vw); height: min(620px, 78vh); display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); animation: mg-rise .2s ease; font-family: var(--font); color: var(--text); }
#mgFriendsPane .fp-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
#mgFriendsPane iframe { flex: 1; border: 0; width: 100%; background: var(--bg); }
.mg-toast { position: fixed; left: 14px; bottom: 72px; z-index: 9900; padding: 12px 16px; border-radius: 14px; background: #1d4ed8; color: #fff; font: 700 14px var(--font); box-shadow: var(--shadow); cursor: pointer; animation: mg-rise .25s ease; }
body.game.at-menu #mgFriendsDock { bottom: 84px; }
@media (min-width: 761px) { body.game.at-menu #mgFriendsDock { bottom: 14px; } }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpis > div { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.kpis span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; font-weight: 700; }
.kpis b { font-size: 15.5px; }
.kpis .pos, .mg-table .pos, .season-end .pos { color: var(--ok); } .kpis .neg, .mg-table .neg { color: var(--err); }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .two-cols, .kpis { grid-template-columns: 1fr; } }
.mg-table tr.sum td { border-top: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.season-end .table-card { margin: 0; }

/* resumo da rodada */
.sum-head { margin-bottom: 14px; }
.sum-head h2 { margin: 2px 0 0; font-size: 22px; }
.draw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; }
.draw-pair { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.draw-pair b { color: var(--muted); }
.draw-pair .dp-n { width: 24px; height: 24px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, .07); color: var(--muted); }
.draw-pair.reveal { opacity: 0; animation: mg-pop .5s cubic-bezier(.2, .9, .3, 1.3) forwards; }
.champ-card { display: flex; align-items: center; gap: 10px; font-size: 18px; padding: 18px; border-radius: 16px; border: 1px solid rgba(251, 191, 36, .4);
  background: radial-gradient(circle at 20% 0, rgba(251, 191, 36, .2), transparent 70%), var(--bg-2); }
.champ-card .club-chip { font-size: 16px; padding: 4px 12px; }

/* re-render da mesma janela: sem animação de abertura nem revelação repetida */
.mg-still, .mg-still * { animation: none !important; }
.mg-still .draw-pair.reveal { opacity: 1 !important; }
.coach-tag { display:inline-block; margin-left:6px; padding:1px 7px; border-radius:999px; font-size:11.5px; font-weight:700; background:rgba(147,197,253,.14); color:#bfdbfe; white-space:nowrap; vertical-align:middle; }
.season-end { max-height: calc(100vh - 90px); overflow-y: auto; }
.season-end .two-cols { grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); }
.se-scorers td { vertical-align: middle; padding-top: 6px; padding-bottom: 6px; line-height: 1.5; }
.se-promos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 14px; padding: 10px 12px; }
.se-promos > div { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.se-promos > div span { flex: 1; color: var(--muted, #94a3b8); }
.hm-av { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; vertical-align: -5px; box-shadow: 0 0 0 2px #facc15; }
.coach-tag .hm-av { width: 16px; height: 16px; vertical-align: -3px; }
.hm-free { opacity: .8; font-weight: 900; }

/* zonas da classificação */
.mg-table tr.zone-up td { background: rgba(34, 197, 94, .13); }
.mg-table tr.zone-down td { background: rgba(239, 68, 68, .14); }
.mg-table tr.zone-champ td { background: rgba(59, 130, 246, .2); }
.sup-tag { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; font-size: 9.5px; font-weight: 800; letter-spacing: .4px; background: rgba(250, 204, 21, .18); color: #fde68a; border: 1px solid rgba(250, 204, 21, .45); vertical-align: middle; }
.room-card.premium { border-color: #f59e0b !important; box-shadow: 0 0 0 1px rgba(245, 158, 11, .5), 0 8px 26px rgba(245, 158, 11, .15); }

/* ===== sala de espera (lobby) ===== */
.ol-lobby { font-family: var(--font, system-ui) !important; max-width: 1200px !important; }
.ol-lobby .ol-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; margin: 6px 0 16px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(34,197,94,.14), rgba(59,130,246,.10) 55%, rgba(15,23,42,.6)); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 14px 40px rgba(0,0,0,.35); flex-wrap: wrap; }
.ol-lobby .ol-title { flex: 1; min-width: 200px; }
.ol-lobby .ol-title h1 { margin: 2px 0; font-size: 26px; font-weight: 900; letter-spacing: -.3px; }
.ol-lobby .ol-sub { color: #94a3b8; font-size: 13px; }
.ol-lobby .ol-code { display: flex; flex-direction: column; align-items: center; padding: 8px 16px; border-radius: 14px; background: rgba(2,6,23,.55); border: 1px dashed rgba(148,163,184,.45); }
.ol-lobby .ol-code small { font-size: 10px; letter-spacing: 2px; color: #94a3b8; font-weight: 800; }
.ol-lobby .ol-code b { font-size: 24px; letter-spacing: 6px; font-family: ui-monospace, monospace; color: #e2e8f0; }
.ol-lobby .ol-card { background: linear-gradient(180deg, rgba(30,41,59,.72), rgba(15,23,42,.82)) !important; border: 1px solid rgba(255,255,255,.08) !important; border-radius: 18px !important; padding: 18px 20px !important; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.ol-lobby .ol-card h3 { font-size: 16px !important; font-weight: 800; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 12px !important; }
.ol-lobby .ol-field { display: grid !important; grid-template-columns: 120px 1fr; gap: 6px 14px !important; padding: 11px 0 !important; border-bottom: 1px solid rgba(255,255,255,.06) !important; font-size: 13.5px !important; }
.ol-lobby .ol-field > span:first-child { width: auto !important; font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: #64748b !important; padding-top: 6px; }
.ol-lobby .ol-field > :not(:first-child) { grid-column: 2; }
.ol-lobby .ol-field select, .ol-lobby .ol-field input[type=number], .ol-lobby .ol-field input[type=text] { background: rgba(2,6,23,.6) !important; border: 1px solid rgba(148,163,184,.25) !important; border-radius: 10px !important; padding: 7px 10px !important; color: #e2e8f0 !important; font-size: 13.5px; }
.ol-lobby .ol-field label { display: inline-flex; align-items: center; gap: 6px; color: #cbd5e1; }
.ol-lobby input[type=checkbox], .ol-lobby input[type=radio] { accent-color: #22c55e; width: 16px; height: 16px; }
.ol-lobby .ol-player { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px !important; margin-bottom: 8px; border-radius: 14px; background: rgba(2,6,23,.45); border: 1px solid rgba(255,255,255,.06) !important; }
.ol-lobby .ol-pl { display: flex; align-items: center; gap: 8px; }
.ol-lobby .ol-av { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 900; background: linear-gradient(135deg, #22c55e, #3b82f6); color: #fff; }
.ol-lobby .ol-name { color: #e2e8f0; font-weight: 700; text-decoration: none; }
.ol-lobby .ol-st { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.ol-lobby .ol-st.ok { background: rgba(34,197,94,.16); color: #4ade80; }
.ol-lobby .ol-st.wait { background: rgba(251,191,36,.14); color: #fbbf24; }
.ol-lobby .ol-ready { border: 0 !important; border-radius: 14px !important; padding: 15px !important; font-size: 17px !important; font-weight: 900 !important; background: linear-gradient(135deg, #2563eb, #1d4ed8) !important; box-shadow: 0 10px 26px rgba(37,99,235,.35); }
.ol-lobby .ol-ready.on { background: linear-gradient(135deg, #22c55e, #16a34a) !important; box-shadow: 0 10px 26px rgba(34,197,94,.35); }
.ol-lobby ul li { margin-bottom: 4px; color: #cbd5e1; }
.ol-lobby ul li::marker { color: #22c55e; }
@media (max-width: 700px) { .ol-lobby .ol-field { grid-template-columns: 1fr; } .ol-lobby .ol-field > :not(:first-child) { grid-column: 1; } }
.ol-lobby .ol-tabs { display: flex; gap: 6px; padding: 4px; margin-bottom: 8px; border-radius: 14px; background: rgba(2,6,23,.5); border: 1px solid rgba(255,255,255,.06); overflow-x: auto; }
.ol-lobby .ol-tabs button { flex: 1; white-space: nowrap; border: 0; border-radius: 10px; padding: 9px 12px; background: transparent; color: #94a3b8; font: 700 13.5px var(--font, system-ui); cursor: pointer; }
.ol-lobby .ol-tabs button.on { background: linear-gradient(135deg, #22c55e, #16a34a); color: #04210f; }
.ol-lobby .ol-sec[hidden] { display: none; }
.ol-lobby .ol-rules summary { cursor: pointer; list-style: none; }
.ol-lobby .ol-rules summary::-webkit-details-marker { display: none; }
.ol-lobby .ol-countries { max-height: 220px !important; }
@media (max-width: 700px) { .ol-lobby .ol-head { padding: 14px; } .ol-lobby .ol-title h1 { font-size: 21px; } .ol-lobby .ol-code b { font-size: 18px; letter-spacing: 3px; } }
.premium-btn { background: linear-gradient(135deg, #f59e0b, #d97706) !important; color: #111 !important; font-weight: 800; }
.premium-btn.on { background: linear-gradient(135deg, #fde68a, #f59e0b) !important; }
dialog.prem-dlg { width: min(640px, 94vw); }
.prem-hero { position: relative; padding: 6px 0 10px; }
.prem-hero h2 { margin: 4px 0; font-size: 24px; }
.prem-price b { font-size: 26px; color: #fbbf24; }
.prem-x { position: absolute; right: 0; top: 0; }
.prem-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.prem-col { padding: 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.prem-col.on { border-color: rgba(245,158,11,.55); background: rgba(245,158,11,.08); }
.prem-col > b { font-size: 15px; margin-bottom: 2px; }
.prem-pay { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.prem-pay .btn { flex: 1; min-width: 150px; }
@media (max-width: 560px) { .prem-cols { grid-template-columns: 1fr; } .sitenav .premium-btn { padding: 6px 8px; font-size: 12px; } }

/* ===== responsivo: telas pequenas ===== */
@media (max-width: 760px) {
  .glass, .glass.wide { width: 96vw !important; max-width: 96vw !important; padding: 16px !important; }
  .room-card .row { flex-wrap: wrap; }
  .sheet, .sheet.xwide { width: 96vw !important; max-width: 96vw !important; }
  .two-cols, .class-grid, .draw-grid { grid-template-columns: 1fr !important; }
  .ol-sp-window, .ol-sp-window.wide { width: 96vw !important; }
  .sp-grid, .tv-grid { grid-template-columns: 1fr !important; }
  .mg-table { font-size: 12px; }
  .table-card { overflow-x: auto; }
  dialog.mg-dialog { width: 94vw !important; max-width: 94vw !important; }
  .sitenav .me .nm { display: none; }
}
@media (max-width: 480px) {
  .glass h2 { font-size: 20px !important; }
  .btn.lg { padding: 12px 18px; font-size: 15px; }
}

/* sala: card de configuração com altura estável */
.ol-lobby .ol-grid { align-items: start; }
.ol-lobby .ol-grid > .ol-card:first-child { min-height: 620px; }
.ol-times2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 6px; }
.ol-t { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; background: rgba(2,6,23,.45); border: 1px solid rgba(255,255,255,.06); font-size: 12px; color: #94a3b8; }
.ol-t.main { border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.08); color: #bbf7d0; font-weight: 700; }
.ol-t-in { display: flex; align-items: center; gap: 6px; }
.ol-t-in input { width: 100%; background: rgba(2,6,23,.7); border: 1px solid rgba(148,163,184,.25); border-radius: 8px; padding: 6px 8px; color: #e2e8f0; font: 700 14px var(--font, system-ui); }
.ol-t-in i { font-style: normal; color: #64748b; font-size: 11px; min-width: 26px; }
@media (max-width: 760px) { .ol-times2 { grid-template-columns: repeat(2, 1fr); } .ol-lobby .ol-grid > .ol-card:first-child { min-height: 0; } }
.ol-rules-btn { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.ol-rules-btn > span:first-child { font-size: 24px; }
.ol-rules-btn small { display: block; color: #94a3b8; font-size: 12px; }
.ol-rules-btn > span:nth-child(2) { flex: 1; }
.ol-rules-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ol-rules-list li { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); line-height: 1.5; font-size: 13.5px; }
/* lista de jogos */
.glass.wide { max-width: 1180px !important; width: min(1180px, 96vw) !important; }
.room-coaches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.coach-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: #e2e8f0; font: 600 13px var(--font, system-ui); cursor: pointer; }
.coach-chip:hover { border-color: #22c55e; }
.coach-chip i { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 900; font-size: 12px; background: linear-gradient(135deg, #22c55e, #3b82f6); color: #fff; }
.coach-chip.empty { cursor: default; padding: 4px 10px; color: #64748b; border-style: dashed; }
.room-flags { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 13px; margin-bottom: 10px; }
.room-flags img { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; }
.room-flags .more { padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 11.5px; font-weight: 700; }
.room-flags .faint { margin-left: 6px; }
/* novidades */
.news-list { display: grid; gap: 10px; }
.news-item { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.news-item h4 { margin: 0 0 6px; font-size: 15px; } .news-item ul { margin: 0; padding-left: 18px; line-height: 1.55; font-size: 13.5px; }
/* novidades por jogo: chips coloridos + abas (refs Mobbin: incident.io "What's new", Gumloop changelog, Searchable tags) */
.news-dlg .news-list { max-height: min(62vh, 560px); overflow: auto; padding-right: 2px; }
.news-tabs { display: flex; flex-wrap: wrap; margin: 0 0 12px; }
.news-tabs button { display: inline-flex; align-items: center; gap: 6px; }
.news-count { min-width: 18px; padding: 0 6px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; color: var(--muted); }
.news-tabs button.on .news-count { color: var(--text); background: rgba(255,255,255,.14); }
.news-tab-gofoot.on { box-shadow: inset 0 -2px 0 #22c55e !important; }
.news-tab-goball.on { box-shadow: inset 0 -2px 0 #38bdf8 !important; }
.news-tab-portal.on { box-shadow: inset 0 -2px 0 #fbbf24 !important; }
.news-item { position: relative; overflow: hidden; }
.news-item::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--news-c, var(--line-2)); }
.news-gofoot { --news-c: #22c55e; } .news-goball { --news-c: #38bdf8; } .news-portal { --news-c: #fbbf24; }
.news-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 12px; }
.news-chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; }
.news-chip-gofoot { color: #bbf7d0; background: rgba(34,197,94,.16); border: 1px solid rgba(34,197,94,.45); }
.news-chip-goball { color: #bae6fd; background: rgba(56,189,248,.16); border: 1px solid rgba(56,189,248,.45); }
.news-chip-portal { color: #fde68a; background: rgba(251,191,36,.14); border: 1px solid rgba(251,191,36,.45); }
.news-ver { font-weight: 800; color: var(--text); }
.news-date { margin-left: auto; }
.news-empty { padding: 26px 10px; text-align: center; color: var(--muted); }

.ol-lobby { width: min(1200px, 96vw) !important; box-sizing: border-box; }
.ol-lobby .ol-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) !important; }
@media (max-width: 900px) { .ol-lobby .ol-grid { grid-template-columns: 1fr !important; } }
.rules-sheet .sheet-body { max-height: 72vh; overflow-y: auto; }
.rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rules-sec { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); font-size: 13.5px; line-height: 1.55; }
.rules-sec h3 { margin: 0 0 8px; font-size: 15.5px; }
.rules-sec ul { margin: 6px 0; padding-left: 18px; } .rules-sec li { margin-bottom: 4px; } .rules-sec p { margin: 4px 0; }
.rules-sec .mg-table { width: 100%; font-size: 12.5px; }
@media (max-width: 800px) { .rules-grid { grid-template-columns: 1fr; } }

.seg[hidden] { display: none !important; }

.ol-times2 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 6px !important; }
.ol-t { padding: 7px 9px !important; font-size: 11.5px !important; gap: 3px !important; }
.ol-t-in input { padding: 4px 7px !important; font-size: 13px !important; }
.ol-lobby .ol-grid > .ol-card:first-child { min-height: 560px !important; }
@media (max-width: 1000px) { .ol-times2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.ol-flags { display: flex; flex-wrap: wrap; gap: 6px; max-height: 220px; overflow-y: auto; }
.ol-flags span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); font-size: 12.5px; }
.ol-flags img { width: 18px; height: 12px; border-radius: 2px; }

.mg-table tbody tr.me td, table.table tr.me td { background: transparent; }
.mg-table tbody tr.me.zone-mid td { background: rgba(59,130,246,.10); }
.mg-table tbody tr.me td:first-child { box-shadow: inset 4px 0 0 #60a5fa; }
.mg-table thead tr.sortable th { cursor: pointer; user-select: none; }
.mg-table thead tr.sortable th:hover { color: #e2e8f0; }
.sound-btn { position: fixed; right: 14px; bottom: 70px; z-index: 9300; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); background: rgba(12,19,34,.92); color: #fff; font-size: 18px; cursor: pointer; }

.mg-still .draw-pair.reveal { opacity: 0 !important; animation: mg-pop .5s cubic-bezier(.2,.9,.3,1.3) forwards !important; }

.season-end > div:last-child { position: sticky; bottom: -1px; padding: 12px 0 4px; background: linear-gradient(180deg, transparent, rgba(15,23,42,.97) 30%); z-index: 2; }

.draw-pair.pending { opacity: .35; }
.draw-pair.rolling { border-color: #facc15 !important; box-shadow: 0 0 0 1px rgba(250,204,21,.6), 0 0 18px rgba(250,204,21,.25); }
.draw-slot .club-chip.q { background: rgba(255,255,255,.1); color: #94a3b8; min-width: 70px; display: inline-block; text-align: center; }
.draw-slot.landed .club-chip { animation: mg-pop .35s cubic-bezier(.2,.9,.3,1.3); }

.bracket { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.br-col { min-width: 230px; display: flex; flex-direction: column; gap: 8px; }
.br-h { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #94a3b8; padding: 4px 2px; }
.br-m { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); font-size: 12.5px; }
.br-m > div:last-child { text-align: right; }
.br-m > div:not(.w) .club-chip { opacity: .55; }
.br-m b { white-space: nowrap; }

/* fim de temporada numa só tela */
.season-end { width: min(1500px, 97vw) !important; max-width: 97vw !important; max-height: calc(100vh - 80px); padding: 16px 20px !important; }
.se-grid { display: grid; grid-template-columns: 1.35fr 1fr 1.1fr; gap: 10px; }
.se-grid .mg-table td { padding-top: 4px !important; padding-bottom: 4px !important; font-size: 12.5px; }
.se-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; padding: 8px 10px; }
.se-dh { display: block; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: #94a3b8; margin-bottom: 3px; }
.se-row { display: grid; grid-template-columns: 20px 1fr auto; gap: 6px; align-items: center; padding: 1px 4px; border-radius: 6px; font-size: 12px; }
.se-row i { font-style: normal; color: #94a3b8; text-align: right; }
.se-row span { padding: 0 6px; border-radius: 4px; font-weight: 800; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.se-row.up { background: rgba(34,197,94,.13); } .se-row.down { background: rgba(239,68,68,.14); } .se-row.champ { background: rgba(59,130,246,.22); }
.se-row.me { box-shadow: inset 3px 0 0 #60a5fa; }
.se-scorers td { line-height: 1.3 !important; }
.se-promos { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important; padding: 6px 10px !important; gap: 4px 12px !important; }
.se-promos > div { font-size: 12px !important; }
@media (max-width: 1100px) { .se-grid { grid-template-columns: 1fr 1fr; } .se-final { grid-column: 1 / -1; } .season-end { max-height: none; } }
@media (max-width: 700px) { .se-grid { grid-template-columns: 1fr; } }

/* carta de convite de clube */
.jl-wrap { background: radial-gradient(circle at 50% 30%, rgba(20,14,6,.55), rgba(0,0,0,.85)) !important; }
.jl-paper { position: relative; width: min(620px, 94vw); max-height: 92vh; overflow-y: auto; padding: 34px 40px 26px; color: #3b2a14;
  background: radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.55), transparent 55%), radial-gradient(ellipse at 90% 95%, rgba(150,100,40,.22), transparent 50%),
    repeating-linear-gradient(0deg, rgba(120,80,30,.035) 0 1px, transparent 1px 28px), linear-gradient(160deg, #f6ead0, #ecd9b0 60%, #e2c993);
  border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 0 60px rgba(140,90,30,.28); font-family: "Special Elite", "Courier New", monospace;
  border-top: 10px solid var(--c1); animation: jlIn .9s cubic-bezier(.2,.9,.25,1.1); transform-origin: 50% 100%; }
@keyframes jlIn { 0% { opacity: 0; transform: translateY(70px) rotate(-4deg) scale(.85); } 100% { opacity: 1; transform: none; } }
.jl-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: #8a6a3c; font-size: 18px; cursor: pointer; }
.jl-stamp { position: absolute; top: 74px; right: 26px; transform: rotate(14deg); border: 3px double #b91c1c; color: #b91c1c; padding: 3px 10px;
  font-weight: 700; letter-spacing: 3px; font-size: 13px; opacity: .65; border-radius: 4px; }
.jl-head { display: flex; gap: 16px; align-items: center; border-bottom: 2px solid rgba(90,60,20,.35); padding-bottom: 14px; }
.jl-crest { width: 64px; height: 74px; flex: none; background: var(--c1); color: var(--c2); clip-path: polygon(50% 0, 100% 14%, 100% 60%, 50% 100%, 0 60%, 0 14%);
  display: grid; place-items: center; font: 800 18px "Playfair Display", serif; box-shadow: inset 0 0 0 4px rgba(255,255,255,.25); }
.jl-club { font: 700 28px/1.05 "Playfair Display", Georgia, serif; color: #2a1c0a; text-transform: uppercase; letter-spacing: 1px; padding-right: 120px; }
.jl-sub { font-size: 12.5px; color: #7a5a2c; margin-top: 3px; }
.jl-date { text-align: right; font-size: 13px; color: #6b4e24; margin: 12px 0 6px; font-style: italic; }
.jl-body p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.55; }
.jl-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 10px; }
.jl-facts > div { border: 1px dashed rgba(90,60,20,.45); border-radius: 6px; padding: 7px 6px; text-align: center; background: rgba(255,250,235,.4); }
.jl-facts i { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: #8a6a3c; font-style: normal; }
.jl-facts b { font: 700 17px "Playfair Display", serif; color: #2a1c0a; } .jl-facts small { font-size: 11px; color: #7a5a2c; }
.jl-stars { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; margin-bottom: 8px; }
.jl-stars > i { width: 100%; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #8a6a3c; font-style: normal; }
.jl-sign { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 10px; }
.jl-sigline { font: 26px "Homemade Apple", cursive; color: #1e3a8a; border-bottom: 1px solid rgba(90,60,20,.5); padding: 0 12px 2px 0; transform: rotate(-3deg); }
.jl-sign small { font-size: 11.5px; color: #7a5a2c; }
.jl-seal { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; color: var(--c2);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), transparent 40%), var(--c1);
  box-shadow: 0 4px 10px rgba(0,0,0,.35), inset 0 0 0 6px rgba(0,0,0,.18), inset 0 0 0 9px rgba(255,255,255,.15);
  font: 800 17px "Playfair Display", serif; transform: rotate(-12deg); animation: jlSeal .5s .7s both cubic-bezier(.3,1.6,.5,1); }
@keyframes jlSeal { from { transform: scale(2.4) rotate(-30deg); opacity: 0; } to { transform: rotate(-12deg); opacity: 1; } }
.jl-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 2px solid rgba(90,60,20,.25); }
.jl-btn { font-family: "Special Elite", monospace; font-size: 14px; padding: 10px 16px; border-radius: 8px; cursor: pointer; border: 1px solid #8a6a3c; }
.jl-btn.ghost { background: rgba(255,250,235,.5); color: #4a3418; }
.jl-btn.gold { background: linear-gradient(180deg, #fde68a, #d4a017); color: #2a1c0a; border-color: #a16207; font-weight: 700; box-shadow: 0 3px 0 #92400e, 0 6px 16px rgba(161,98,7,.4); }
.jl-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
@media (max-width: 560px) { .jl-paper { padding: 26px 18px 18px; } .jl-facts { grid-template-columns: 1fr 1fr; } .jl-club { font-size: 21px; padding-right: 0; } .jl-stamp { display: none; } }

/* zona de subida/descida também no time do treinador */
.mg-table tbody tr.me.zone-down td { background: rgba(239, 68, 68, .2) !important; }
.mg-table tbody tr.me.zone-up td { background: rgba(34, 197, 94, .16) !important; }
.mg-table tbody tr.me.zone-champ td { background: rgba(59, 130, 246, .2) !important; }

/* ---- GOFOOT: lobby mais compacto + banner do topo (pequeno / médio / grande) ---- */
body.game.at-menu .stadium-bg { align-items: flex-start; padding-top: 12px; }
body.game.at-menu .glass { padding-top: 16px; }
.lobby-hero { position: relative; overflow: hidden; border-radius: 20px; margin: 0 0 14px; display: flex; align-items: center;
  background: #0a0e16 url("/gofoot/banner-bg.svg") right center/auto 100% no-repeat; border: 1px solid rgba(200, 255, 46, .16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }
.lobby-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, #c8ff2e, #22c55e); }
.lobby-hero.small { height: 86px; }
.lobby-hero.medium { height: 168px; }
.lobby-hero.large { height: 236px; }
.lobby-hero.custom { background: #0a0e16; }
.lobby-hero.custom::before { display: none; }
.lobby-hero.custom img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lh-text { position: relative; z-index: 1; padding: 0 32px; line-height: 1; max-width: 62%; }
.lh-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.lh-chip { font: 700 10.5px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: 1.2px; text-transform: uppercase;
  color: #cbd5e1; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); padding: 5px 8px; border-radius: 6px; }
.lh-chip.live { color: #0b0f02; background: #c8ff2e; border-color: #c8ff2e; }
.lh-word { font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif; font-style: italic; font-weight: 900; font-size: 64px;
  letter-spacing: -1px; color: #fff; text-transform: uppercase; line-height: .9; }
.lh-word { display: flex; align-items: flex-end; white-space: nowrap; }
.lh-word .w-go { display: inline-flex; align-items: flex-end; color: #fff; animation: lhInL .7s cubic-bezier(.2, .8, .2, 1) both; }
.lh-word .w-ball { display: inline-block; width: .64em; height: .64em; margin: 0 .03em .06em .04em; transform-origin: 50% 50%;
  filter: drop-shadow(0 .05em .12em rgba(0, 0, 0, .5)); animation: lhRoll 1s cubic-bezier(.2, .8, .2, 1) .1s both, lhSpin 9s linear 1.1s infinite; }
.lh-word .w-ball svg { display: block; width: 100%; height: 100%; }
.lh-word .w-foot { margin-left: .04em; padding-right: .08em; color: #c8ff2e;
  background: linear-gradient(100deg, #c8ff2e 0 38%, #f7ffe0 48%, #c8ff2e 58% 100%) 100% 0 / 260% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 .06em .3em rgba(200, 255, 46, .28));
  animation: lhInR .7s cubic-bezier(.2, .8, .2, 1) .08s both, lhShine 5s ease-in-out 1.2s infinite; }
@keyframes lhInL { from { opacity: 0; transform: translateX(-.4em) skewX(-12deg); } to { opacity: 1; transform: none; } }
@keyframes lhInR { from { opacity: 0; transform: translateX(.5em) skewX(-12deg); } to { opacity: 1; transform: none; } }
@keyframes lhRoll { from { opacity: 0; transform: translateX(-1.6em) rotate(-400deg); } to { opacity: 1; transform: none; } }
@keyframes lhSpin { to { transform: rotate(360deg); } }
@keyframes lhShine { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .lh-word .w-go, .lh-word .w-ball, .lh-word .w-foot { animation: none; } }
.lh-tag { margin-top: 10px; font-size: 13.5px; font-weight: 600; color: #aab4c5; line-height: 1.35; }
.lobby-hero.small .lh-chips, .lobby-hero.small .lh-tag { display: none; }
.lobby-hero.small .lh-word { font-size: 48px; }
.lobby-hero.large .lh-word { font-size: 92px; }
.lobby-hero.large .lh-tag { font-size: 15px; margin-top: 14px; }
@media (max-width: 760px) {
  .lobby-hero.small { height: 72px; } .lobby-hero.medium { height: 128px; } .lobby-hero.large { height: 170px; }
  .lh-text { padding: 0 18px; max-width: 78%; }
  .lh-word, .lobby-hero.small .lh-word { font-size: 42px; } .lobby-hero.large .lh-word { font-size: 58px; }
  .lh-chip { font-size: 9px; } .lh-tag { font-size: 11.5px; }
  .lobby-hero.medium .lh-tag { display: none; }
}
/* lobby do GOFOOT no computador: fundo do estádio do tamanho da janela (não da página inteira, senão os refletores
   saem da tela quando há muitas salas) e caixa estreita o suficiente para os refletores aparecerem dos lados */
@media (min-width: 900px) {
  body.game.at-menu .stadium-bg {
    background: linear-gradient(180deg, rgba(7, 11, 20, .25), rgba(7, 11, 20, .88)) fixed,
                url("/assets/stadium.svg") center bottom / 100% auto no-repeat fixed, #050913;
  }
  body.game.at-menu .glass.wide { width: min(1080px, calc(100vw - 420px)) !important; max-width: 1080px !important; }
}
/* cartão de sala compacto: bandeiras ao lado do anfitrião, estado e ações à direita */
.room-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.room-title { min-width: 0; line-height: 1.7; }
.room-side { display: flex; align-items: center; gap: 6px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.room-flags.inline { display: inline-flex; vertical-align: middle; margin: 0 0 0 6px; gap: 3px; }
.room-flags.inline img { width: 18px; height: 12px; }
.room-tags { gap: 6px; margin-top: 10px; }
@media (max-width: 760px) {
  .room-head { flex-direction: column; }
  .room-side { justify-content: flex-start; }
}

/* Medalhas de contribuidor (ref. Mobbin: Duolingo achievements, Base44 levels, Apple Music milestones) */
.mg-medals { display: inline-flex; gap: 6px; flex-wrap: wrap; vertical-align: middle; }
.mg-medal { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 750; padding: 3px 10px 3px 4px; border-radius: 999px;
  border: 1px solid var(--m-c, #64748b); background: color-mix(in srgb, var(--m-c, #64748b) 16%, transparent); color: #f1f5f9; }
.mg-medal i { font-style: normal; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff8, transparent 60%), var(--m-c, #64748b); font-size: 11px; }
.mg-medal.bronze { --m-c: #cd7f32; } .mg-medal.prata { --m-c: #b8c4d6; } .mg-medal.ouro { --m-c: #f5c542; } .mg-medal.diamante { --m-c: #67e8f9; }
.mg-medal-card { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 14px;
  border: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, var(--m-c, #334155) 14%, transparent), transparent); margin-bottom: 10px; }
.mg-medal-card.bronze { --m-c: #cd7f32; } .mg-medal-card.prata { --m-c: #b8c4d6; } .mg-medal-card.ouro { --m-c: #f5c542; } .mg-medal-card.diamante { --m-c: #67e8f9; }
.mg-medal-card .disc { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 26px;
  background: radial-gradient(circle at 30% 25%, #ffffff55, transparent 55%), var(--m-c, #334155); box-shadow: 0 0 0 3px #0006, 0 0 18px color-mix(in srgb, var(--m-c, #334155) 55%, transparent); }
.mg-medal-card.none .disc { filter: grayscale(1); opacity: .5; }
.mg-medal-card .meter { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; margin: 6px 0 3px; }
.mg-medal-card .meter b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--m-c, #22c55e), #fff8); }

/* Tema claro do ArenaKix nas páginas de conta, estatísticas e ranking (site.js decide onde). O GOFOOT nunca recebe data-gb-theme. */
.gb-themebtn { flex:none; display:grid; place-items:center; width:38px; height:38px; margin-right:8px; padding:0; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.05); color:var(--text); cursor:pointer; transition:transform .15s, border-color .15s; }
.gb-themebtn:hover { transform:rotate(-8deg); border-color:rgba(251,191,36,.7); }
.gb-themebtn:focus-visible { outline:2px solid #60a5fa; outline-offset:2px; }
@media (prefers-reduced-motion:reduce) { .gb-themebtn { transition:none; } .gb-themebtn:hover { transform:none; } }
html[data-gb-theme=light] { --bg:#d9e1ec; --bg-2:#fff; --card:#fff; --card-2:#f3f6fa; --line:rgba(15,23,42,.28); --line-2:rgba(15,23,42,.4); --text:#0a1020; --muted:#414d63; --faint:#414d63; --accent:#15803d; --err:#9f1239; --ok:#14532d; --gold:#6b3d07; --shadow:0 12px 30px rgba(15,23,42,.2); color-scheme:light; }
html[data-gb-theme=light] body:not(.game) { background:var(--bg); }
html[data-gb-theme=light] body:not(.game) a:not([class]) { color:#1e3fae; }
html[data-gb-theme=light] .sitenav, html[data-gb-theme=light] .tabbar { background:rgba(255,255,255,.92); border-color:var(--line); }
html[data-gb-theme=light] .table tr:hover td { background:rgba(15,23,42,.05); }
html[data-gb-theme=light] .seg { background:rgba(15,23,42,.1); }
@media (max-width:480px) { .gb-themebtn { width:34px; height:34px; margin-right:2px; } .sitenav:has(.gb-themebtn) .nav-links span:last-child { display:none; } }
html[data-gb-theme=light] .tag.green { color:#14532d; background:rgba(22,163,74,.16); }
html[data-gb-theme=light] .tag.blue { color:#1e3fae; }
html[data-gb-theme=light] .tag.amber { color:#6b3d07; }
@media (max-width:400px) { .sitenav:has(.gb-themebtn) { gap:5px; padding-left:8px; padding-right:8px; } .sitenav:has(.gb-themebtn) .brand { font-size:15px; min-width:0; } .sitenav:has(.gb-themebtn) .nav-links { flex:none; } .sitenav:has(.gb-themebtn) .nav-links a { padding-left:5px; padding-right:5px; } .sitenav:has(.gb-themebtn) .brand img { display:none; } }
.portal-notice { padding:8px 16px; text-align:center; font-size:13.5px; line-height:1.4; color:#dbeafe; background:rgba(59,130,246,.16); border-bottom:1px solid rgba(59,130,246,.3); grid-column:1 / -1; }
.portal-notice.is-warn { color:#fde68a; background:rgba(245,158,11,.15); border-bottom-color:rgba(245,158,11,.32); }

/* ArenaKix: medalha de MVP no perfil (contagem + notas) */
.gb-mvp { position:relative; display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin:12px 0; padding:12px 16px; border-radius:16px; overflow:hidden;
  background:linear-gradient(135deg, rgba(251,191,36,.18), rgba(245,158,11,.06) 60%, rgba(255,255,255,.02)); border:1px solid rgba(251,191,36,.45);
  box-shadow:0 8px 24px -12px rgba(245,158,11,.55), inset 0 1px 0 rgba(255,255,255,.12); animation:gbMvpIn .5s cubic-bezier(.2,.8,.2,1) both; }
.gb-mvp::after { content:""; position:absolute; inset:0; background:linear-gradient(110deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%); transform:translateX(-100%); animation:gbMvpShine 4.5s ease-in-out 1s infinite; pointer-events:none; }
.gb-mvp.is-zero { filter:saturate(.35); }
.gb-mvp-medal { flex:none; width:46px; height:46px; border-radius:50%; display:grid; place-items:center;
  background:radial-gradient(circle at 35% 30%, #fde68a, #f59e0b 55%, #b45309); box-shadow:0 0 0 3px rgba(251,191,36,.25), 0 6px 18px -4px rgba(245,158,11,.8); }
.gb-mvp-medal svg { width:24px; height:24px; fill:#fff; filter:drop-shadow(0 1px 1px rgba(120,53,15,.6)); }
.gb-mvp-main, .gb-mvp-note { display:flex; flex-direction:column; line-height:1.1; }
.gb-mvp small { font-size:11px; letter-spacing:.06em; text-transform:uppercase; opacity:.75; }
.gb-mvp-main b { font-size:26px; font-weight:800; color:#fbbf24; }
.gb-mvp-main b i { font-style:normal; font-size:13px; font-weight:600; margin-left:5px; opacity:.8; }
.gb-mvp-note { padding-left:14px; border-left:1px solid rgba(251,191,36,.3); }
.gb-mvp-note b { font-size:18px; font-weight:700; }
@keyframes gbMvpIn { from { opacity:0; transform:translateY(6px) scale(.98); } to { opacity:1; transform:none; } }
@keyframes gbMvpShine { 0%, 70% { transform:translateX(-100%); } 100% { transform:translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .gb-mvp, .gb-mvp::after { animation:none; } }
