/* Site do jogo, com o mesmo visual do launcher (estadio a noite, azul e vidro).
   Cores da marca nos tokens abaixo; o escudo e o site/crest.png. */
:root {
  --bg: #060b16;
  --blue: #1f7ee8;
  --blue-hi: #4aa3ff;
  --blue-deep: #0c3f86;
  --text: #eef3fa;
  --soft: #aebbd0;
  --muted: #8a9ab3;
  --dim: #6f82a0;
  --line: rgba(255, 255, 255, .08);
  --glass: linear-gradient(180deg, rgba(18, 30, 54, .72), rgba(10, 18, 34, .72));
  --ok: #3ddc84;
  --warn: #ffb547;
  --err: #ff5d6c;
  --radius: 16px;
  --display: "Bahnschrift", "Barlow Condensed", "DIN Alternate", "Arial Narrow", system-ui, sans-serif;
  --body: "Segoe UI Variable Text", "Segoe UI", "Inter", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 14px/1.5 var(--body); -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: .92em ui-monospace, Consolas, monospace; background: rgba(255, 255, 255, .07); padding: 1px 6px; border-radius: 6px; color: var(--text); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; position: relative; z-index: 1; padding-top: 28px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); margin: 0; }

/* ------------------------------------------------ fundo: estadio a noite (igual ao launcher) */
.bg, .bg > * { position: fixed; inset: 0; pointer-events: none; }
.bg { z-index: 0; overflow: hidden; }
.sky {
  background:
    radial-gradient(120% 80% at 50% 115%, #0d3b2a 0%, rgba(13, 59, 42, 0) 55%),
    radial-gradient(90% 70% at 18% -10%, rgba(31, 126, 232, .35), rgba(31, 126, 232, 0) 60%),
    radial-gradient(70% 60% at 100% 0%, rgba(74, 163, 255, .18), rgba(74, 163, 255, 0) 60%),
    linear-gradient(180deg, #081226 0%, #060b16 55%, #05100f 100%);
}
.beam {
  width: 70%; height: 140%; top: -30%;
  background: conic-gradient(from 180deg at 50% 0%, transparent 162deg, rgba(190, 220, 255, .10) 176deg, rgba(190, 220, 255, .16) 180deg, rgba(190, 220, 255, .10) 184deg, transparent 198deg);
  filter: blur(6px); transform-origin: 50% 0%;
  animation: sway 14s ease-in-out infinite alternate;
}
.beam.l { left: -18%; --r0: -24deg; --r1: -14deg; }
.beam.r { right: -18%; left: auto; --r0: 24deg; --r1: 14deg; animation-duration: 17s; }
@keyframes sway { from { transform: rotate(var(--r0)); } to { transform: rotate(var(--r1)); } }
.lamp {
  width: 220px; height: 30px; top: -10px; bottom: auto;
  background: radial-gradient(closest-side, rgba(235, 245, 255, .95), rgba(160, 205, 255, .35) 45%, transparent);
  filter: blur(2px);
}
.lamp.l { left: 4%; right: auto; } .lamp.r { right: 4%; left: auto; }
.pitch { top: auto; height: 60vh; opacity: .9; }
.pitch svg { width: 100%; height: 100%; display: block; }
.vignette { background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .55)); }
.grain {
  opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------ topo */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(6, 11, 22, .72); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 22px; min-height: 58px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.mini { display: flex; align-items: center; gap: 10px; font: 700 13px/1 var(--display); letter-spacing: .18em; color: #c9d5e6; text-transform: uppercase; white-space: nowrap; }
.mini:hover { text-decoration: none; color: #fff; }
.mini img { width: 22px; height: 22px; object-fit: contain; }
.nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--muted); padding: 7px 12px; border-radius: 8px; white-space: nowrap; font-weight: 500; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); text-decoration: none; }
.nav a[aria-current="page"] { color: #fff; background: rgba(31, 126, 232, .18); box-shadow: inset 0 0 0 1px rgba(74, 163, 255, .25); }
.nav .live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); vertical-align: 1px; }
.session { display: flex; align-items: center; gap: 14px; }
.session form { margin: 0; }
.me { color: #fff; font-weight: 600; }

/* ------------------------------------------------ botoes */
.btn, button.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 24px; border: 0; border-radius: 12px; cursor: pointer;
  font: 700 16px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: #fff;
  background: linear-gradient(180deg, #3d9bff 0%, #1f7ee8 48%, #1466cc 100%);
  box-shadow: 0 10px 30px rgba(31, 126, 232, .4), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .18);
  transition: transform .12s, box-shadow .2s, filter .2s;
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 48%, transparent 62%);
  transform: translateX(-120%);
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:hover::before { transform: translateX(120%); transition: transform .7s ease; }
.btn:active { transform: translateY(2px) scale(.99); }
.btn svg { width: 18px; height: 18px; fill: currentColor; position: relative; }
.btn.big { height: 62px; padding: 0 34px; font-size: 21px; border-radius: 14px; }
.btn.small { height: 36px; padding: 0 16px; font-size: 13px; border-radius: 10px; box-shadow: 0 6px 18px rgba(31, 126, 232, .35), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn.ghost { background: rgba(12, 22, 40, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); backdrop-filter: blur(8px); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px rgba(74, 163, 255, .6); }
.btn.danger { background: linear-gradient(180deg, #ff7683, #e2303f); box-shadow: 0 8px 22px rgba(226, 48, 63, .35), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn.full { width: 100%; margin-top: 6px; }
button.link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; }
button.link:hover { color: #fff; text-decoration: underline; }
button.link.danger { color: var(--err); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid rgba(124, 192, 255, .8); outline-offset: 3px; }

/* ------------------------------------------------ capa (igual ao launcher) */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: stretch; margin: 8px 0 28px; }
.hero-main { display: flex; flex-direction: column; justify-content: center; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 28px; }
.crest { position: relative; width: 170px; flex: none; }
.crest::before {
  content: ""; position: absolute; inset: -38%;
  background: radial-gradient(closest-side, rgba(239, 68, 68, .35), rgba(37, 99, 235, .3) 55%, rgba(37, 99, 235, 0));
  animation: pulse 5s ease-in-out infinite;
}
.crest img { position: relative; display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .55)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes pulse { 50% { opacity: .6; transform: scale(.94); } }
.title {
  font: 700 clamp(46px, 7vw, 76px)/.88 var(--display); font-stretch: condensed;
  letter-spacing: .01em; text-transform: uppercase; margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, #dce6f2 55%, #9fb2c9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .35));
}
.title em {
  font-style: normal; display: block;
  background: linear-gradient(180deg, #fff4b8 0%, #f5c542 50%, #b7791f 100%);
  -webkit-background-clip: text; background-clip: text;
}
.tagline { margin: 14px 0 0; color: var(--muted); font-size: 16px; max-width: 380px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px;
  border-radius: 999px; background: rgba(12, 22, 40, .7); border: 1px solid var(--line);
  color: #c3cfdf; font-size: 13px; backdrop-filter: blur(8px); white-space: nowrap;
}
.chip b { color: #fff; font: 700 15px/1 var(--display); font-variant-numeric: tabular-nums; }
.chip svg { width: 15px; height: 15px; fill: none; stroke: #7fa6d6; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.led { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #56657d; box-shadow: 0 0 0 3px rgba(86, 101, 125, .2); }
.on .led, .led.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(61, 220, 132, .18), 0 0 10px var(--ok); animation: blink 2.4s ease-in-out infinite; }
.off .led { background: var(--err); box-shadow: 0 0 0 3px rgba(255, 93, 108, .18); }
@keyframes blink { 50% { box-shadow: 0 0 0 5px rgba(61, 220, 132, .08), 0 0 14px var(--ok); } }

/* ------------------------------------------------ paineis de vidro */
.glass, .card {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(14px); min-width: 0;
}
.card { padding: 20px 22px; }
main > .card { margin-bottom: 22px; }
.head {
  display: flex; align-items: center; gap: 12px; margin: 0 0 14px;
  font: 700 12.5px/1 var(--display); letter-spacing: .22em; color: var(--blue-hi); text-transform: uppercase;
}
.head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(74, 163, 255, .4), transparent); }
.head .count { order: 2; color: var(--dim); letter-spacing: .12em; }
.head a { order: 3; font: 600 12px/1 var(--body); letter-spacing: 0; text-transform: none; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 22px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-title { font: 700 44px/.95 var(--display); text-transform: uppercase; margin: 0 0 6px; letter-spacing: .01em; }
.page-sub { color: var(--muted); margin: 0 0 24px; }
.gap { margin-top: 28px; }
.gap-s { margin: 10px 0 0; }

/* noticias */
.newsbox { display: flex; flex-direction: column; max-height: 460px; padding: 18px 0 0; }
.newsbox .head { padding: 0 22px; }
.newsbox .list { overflow-y: auto; padding: 0 22px 12px; }
.list::-webkit-scrollbar { width: 6px; }
.list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 3px; }
.news { padding: 12px 0 14px; border-bottom: 1px solid var(--line); animation: rise .5s both; }
.news:last-child { border-bottom: 0; }
.news time { font: 600 11px/1 var(--display); letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }
.news h3 { margin: 7px 0 6px; font: 700 19px/1.15 var(--display); color: #fff; }
.news p { color: var(--soft); margin: 0 0 6px; }
.news.new h3::before {
  content: "NOVO"; display: inline-block; vertical-align: 3px; margin-right: 8px; padding: 3px 6px 2px; border-radius: 4px;
  font: 700 9.5px/1 var(--display); letter-spacing: .12em; background: var(--blue); color: #fff;
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* jogadores online e partidas */
.people, .games, .matches, .admin-news { list-style: none; padding: 0; margin: 0; }
.people li, .games li, .matches li, .admin-news li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.people li:first-child, .games li:first-child, .matches li:first-child, .admin-news li:first-child { border-top: 0; }
.avatar {
  width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center;
  font: 700 15px/1 var(--display); color: #fff; text-transform: uppercase;
  background: linear-gradient(180deg, #2a8af0, #0c3f86); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
  position: relative;
}
.avatar::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); border: 2px solid #0d1830; }
.avatar.plain::after { display: none; }
.who { flex: 1; min-width: 0; }
.who b { display: block; color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who small { color: var(--dim); font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font: 700 10.5px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px 4px; border-radius: 6px; background: rgba(255, 255, 255, .07); color: var(--soft); white-space: nowrap; }
.tag.playing { background: rgba(31, 126, 232, .22); color: #bfe0ff; }
.pitch-ico { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; background: rgba(61, 220, 132, .12); }
.pitch-ico svg { width: 18px; height: 18px; fill: none; stroke: var(--ok); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.slots { font: 700 17px/1 var(--display); font-variant-numeric: tabular-nums; color: #fff; }
.slots small { color: var(--dim); font-size: 13px; }
.bar-mini { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); margin-top: 6px; overflow: hidden; }
.bar-mini i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-deep), var(--blue-hi)); }

/* numeros grandes */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 22px; }
.stats.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stat { padding: 16px 18px; }
.stat dt { color: var(--dim); font: 600 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.stat dd { margin: 8px 0 0; font: 700 34px/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 10px; }
.stat dd .led { width: 10px; height: 10px; }
.stat.accent dd { color: var(--blue-hi); }
.updated { color: var(--dim); font-size: 12px; }

/* tabela de ranking */
.table-scroll { overflow-x: auto; }
table.rank { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rank th { text-align: left; color: var(--dim); font: 600 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; padding: 0 10px 10px; }
.rank td { padding: 10px; border-top: 1px solid var(--line); }
.rank .n { text-align: right; }
.rank .pts { font: 700 17px/1 var(--display); color: #fff; }
.rank .pos { width: 3em; }
.medal { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font: 700 13px/1 var(--display); color: var(--muted); background: rgba(255, 255, 255, .05); }
.rank tr:nth-child(1) .medal { background: linear-gradient(180deg, #ffe08a, #d19a1f); color: #2b1c00; }
.rank tr:nth-child(2) .medal { background: linear-gradient(180deg, #eef3fa, #9fb2c9); color: #1a2333; }
.rank tr:nth-child(3) .medal { background: linear-gradient(180deg, #f3b98a, #a8622d); color: #2a1406; }

/* formularios */
.auth { max-width: 460px; margin: 24px auto; padding: 32px; }
.auth .crest { width: 84px; margin: -4px auto 12px; }
.auth h1 { font: 700 34px/1 var(--display); text-transform: uppercase; text-align: center; }
.auth > p { text-align: center; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > span { font-weight: 600; font-size: 13px; color: #c9d5e6; }
.field small { color: var(--dim); font-size: 12px; }
input, textarea {
  width: 100%; background: rgba(4, 9, 20, .6); color: #fff; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px;
  padding: 11px 13px; font: inherit;
}
input:focus, textarea:focus { border-color: var(--blue-hi); box-shadow: 0 0 0 3px rgba(74, 163, 255, .2); outline: none; }
input[aria-invalid="true"] { border-color: var(--err); }
.err { color: var(--err); font-size: 12.5px; }
.notice { border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; backdrop-filter: blur(8px); }
.notice.ok { background: rgba(61, 220, 132, .12); border: 1px solid rgba(61, 220, 132, .35); color: #c9f5dc; }
.notice.bad { background: rgba(255, 93, 108, .12); border: 1px solid rgba(255, 93, 108, .4); color: #ffd3d7; }
.switch { text-align: center; color: var(--muted); margin: 18px 0 0; }
form.inline { display: flex; gap: 10px; align-items: flex-end; }
form.inline .field { flex: 1; margin: 0; }

/* conta */
.profile { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 22px; }
.profile .avatar { width: 64px; height: 64px; border-radius: 18px; font-size: 30px; }
.profile .avatar::after { display: none; }
.profile .info { flex: 1; min-width: 0; }
.profile p { margin: 0; color: var(--muted); }
.balance { padding: 14px 20px; text-align: right; }
.balance span { display: block; color: var(--dim); font: 600 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.balance strong { font: 700 30px/1.2 var(--display); color: var(--blue-hi); font-variant-numeric: tabular-nums; }
.res { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font: 700 14px/1 var(--display); color: #fff; flex: none; }
.res.win { background: var(--ok); color: #03220f; }
.res.draw { background: var(--warn); color: #2a1a00; }
.res.loss { background: var(--err); }
.score { font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; }
.matches time { margin-left: auto; color: var(--dim); font-size: 12.5px; }
.admin-news li { justify-content: space-between; }
.admin-news form { margin: 0; }

/* como jogar */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.steps li { counter-increment: step; padding: 18px 22px 18px 76px; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; left: 22px; top: 18px; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; font: 700 18px/1 var(--display); color: #fff;
  background: linear-gradient(180deg, #3d9bff, #1466cc); box-shadow: 0 6px 16px rgba(31, 126, 232, .4);
}
.steps h3 { margin-bottom: 4px; font-size: 20px; }
.steps p { margin: 0; color: var(--soft); }

.foot { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 26px; color: var(--dim); font-size: 12.5px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .newsbox { max-height: none; }
  .stats, .stats.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .grid, .grid.three { grid-template-columns: 1fr; }
  .stats, .stats.six { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 12px 14px; }
  .stat dd { font-size: 28px; }
  .brand { gap: 16px; }
  .crest { width: 84px; }
  .title { font-size: clamp(30px, 9.5vw, 44px); }
  .bar { gap: 10px; }
  .nav { order: 3; flex-basis: 100%; }
  .session { margin-left: auto; }
  .auth { padding: 24px 20px; }
  .card { padding: 18px; }
  .page-title { font-size: 36px; }
  form.inline { flex-direction: column; align-items: stretch; }
  .matches time { display: none; }
  .btn.big { height: 54px; font-size: 18px; padding: 0 24px; }
  .balance { text-align: left; }
}
