/* =========================================================================
   LaaCLab — design system
   Palette & type taken from the project style guide (Motiva Sans Medium;
   deep-red + dark-navy tones). Motiva Sans is a proprietary font, so the
   stack below falls back to system sans — drop the real font file in
   /static/web/fonts and add an @font-face to match the mockups exactly.
   ========================================================================= */

:root {
  /* Brand */
  --brand: #e01e2b;          /* vivid red — logo, active nav, primary actions */
  --brand-dark: #6e0f18;     /* deep red from the palette swatch */
  --brand-glow: rgba(224, 30, 43, 0.35);

  /* Surfaces (dark theme, default) */
  --bg: #0a0b12;
  --surface: #12131f;
  --surface-2: #181a2b;
  --surface-3: #23253d;
  --border: #23243a;
  --border-soft: #1b1d2e;

  /* Text */
  --text: #e9eaf2;
  --text-muted: #9aa0b4;
  --text-dim: #6b7086;

  /* Status */
  --critical: #ef4444;
  --warning: #f59e0b;
  --stable: #22c55e;
  --info: #a855f7;

  /* Shape & type */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --gap: 20px;
  --sidebar-w: 240px;
  --topbar-h: 68px;
  --font-sans: "Motiva Sans", "Inter", system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* Optional light theme (toggled by the moon button). */
:root.light {
  --bg: #eef0f6;
  --surface: #ffffff;
  --surface-2: #f4f5fb;
  --surface-3: #e6e8f2;
  --border: #dcdfea;
  --border-soft: #e8eaf2;
  --text: #14152b;
  --text-muted: #545a70;
  --text-dim: #8b90a4;
  --shadow: 0 8px 30px rgba(20, 21, 43, 0.12);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--brand-glow); }

/* --- App shell ---------------------------------------------------------- */

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* --- Sidebar ------------------------------------------------------------ */

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 16px;
  background: linear-gradient(180deg, #0c0d16, #08090f);
  border-right: 1px solid var(--border-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 18px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.3px;
}
.brand svg { width: 30px; height: 30px; }

.nav { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.nav-item svg { width: 22px; height: 22px; flex: none; }
.nav-item:hover { background: var(--surface); color: var(--text); }
.nav-item.is-active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px var(--brand-glow);
}

.sidebar-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }

.level-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.level-card .who { display: flex; align-items: center; gap: 10px; }
.level-card .flame {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 30%, #ff8a3c, var(--brand-dark));
  font-size: 16px;
}
.level-card .lvl { font-size: 12px; color: var(--brand); font-weight: 700; }
.level-card .xp { font-size: 11px; color: var(--text-dim); }

/* --- Top bar ------------------------------------------------------------ */

.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  background: rgba(10, 11, 18, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
:root.light .topbar { background: rgba(238, 240, 246, 0.9); }

.search {
  flex: 1;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  position: relative;
}
.search input {
  border: none; background: none; outline: none;
  color: var(--text); width: 100%; font-size: 14px;
}
.search-sugestoes {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  max-height: 360px;
  overflow: auto;
}
.search-sugestao {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.search-sugestao:hover,
.search-sugestao:focus {
  background: var(--surface-2);
}
.search-sugestao-ir {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}
.search-sugestao--vazia {
  font-weight: 500;
  color: var(--text-muted);
  cursor: default;
}

.topbar-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-muted);
  background: transparent; border: none; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn { position: relative; }

.topbar-notify { position: relative; }
.notify-dot {
  position: absolute; top: 8px; right: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 2px var(--surface), 0 0 8px var(--brand);
}
.notify-panel {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: min(360px, calc(100vw - 48px));
  max-height: min(420px, 70vh);
  overflow: auto;
  z-index: 40;
  background: var(--surface);
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 0 24px var(--brand-glow);
  padding: 12px 14px 10px;
}
.notify-panel-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.notify-item {
  display: block;
  padding: 10px 8px;
  border-radius: 10px;
  border-bottom: 1px solid var(--border-soft);
  color: inherit;
}
.notify-item:last-child { border-bottom: none; }
.notify-item:hover { background: var(--surface-2); }
.notify-item-kicker {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
}
.notify-item-title { font-weight: 700; font-size: 14px; margin: 2px 0; }
.notify-item-text { font-size: 12px; color: var(--text-muted); }
.notify-item-when { font-size: 11px; color: var(--text-dim); margin-top: 4px; }

.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-3);
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: #fff;
  overflow: hidden; border: 2px solid var(--border);
}

/* --- Page ---------------------------------------------------------------- */

.page { padding: 24px 28px 40px; }

.page-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.page-head .icon-badge {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-dark), #2a0c10);
  color: var(--brand);
}
.page-head h1 { margin: 0; font-size: 26px; }
.page-head p { margin: 2px 0 0; color: var(--text-muted); font-size: 13px; }

/* --- Reusable bits ------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px;
}

.section-title { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.badge--critical { background: rgba(239, 68, 68, 0.15); color: var(--critical); }
.badge--warning  { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge--stable   { background: rgba(34, 197, 94, 0.15); color: var(--stable); }
.badge--discussion { background: rgba(168, 85, 247, 0.15); color: var(--info); }
.badge--info     { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }

.score-chip {
  display: inline-grid; place-items: center;
  min-width: 30px; height: 26px; padding: 0 8px;
  border-radius: 8px; font-weight: 700; font-size: 13px; color: #fff;
}
.score-chip.critical { background: var(--critical); }
.score-chip.warning  { background: var(--warning); color: #1a1200; }
.score-chip.stable   { background: var(--stable); color: #06210f; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px;
  font-weight: 700; font-size: 14px; cursor: pointer;
  border: 1px solid transparent; background: var(--surface-2); color: var(--text);
  transition: filter 0.15s, background 0.15s;
}
.btn:hover { filter: brightness(1.1); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--outline { background: transparent; border-color: var(--brand); color: var(--brand); }

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.critical { background: var(--critical); }
.dot.warning  { background: var(--warning); }
.dot.stable   { background: var(--stable); }

/* Placeholder game-cover tile (no third-party art shipped). */
.cover {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.45));
}

.progress { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }

.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }

/* Loading / empty helpers */
.skeleton { color: var(--text-dim); font-size: 13px; padding: 12px 0; }

/* --- Layout helper: content + right rail -------------------------------- */

.with-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--gap);
  align-items: start;
  min-width: 0;
  max-width: 100%;
}
.with-rail > * { min-width: 0; max-width: 100%; }
.rail { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }

@media (max-width: 1080px) {
  .with-rail { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* =========================================================================
   Screen-specific pieces
   ========================================================================= */

/* Bugômetro gauge */
.gauge-wrap { display: grid; place-items: center; gap: 8px; }
.gauge { position: relative; width: 240px; height: 150px; }
.gauge .value { font-size: 52px; font-weight: 800; line-height: 1; }
.gauge .max { color: var(--text-muted); font-weight: 600; }

.metric-card {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--border-soft);
}
.metric-card .m-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.metric-card .m-label { font-size: 13px; color: var(--text-muted); }
.metric-card .m-value { font-weight: 800; font-size: 18px; }

.chart-card { margin-top: var(--gap); }
.chart-legend { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.range-tabs { display: inline-flex; gap: 4px; background: var(--surface-2); border-radius: 10px; padding: 4px; }
.range-tabs button {
  border: none; background: transparent; color: var(--text-muted);
  padding: 5px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 12px;
}
.range-tabs button.is-active { background: var(--info); color: #fff; }

.activity-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.activity-item:last-child { border-bottom: none; }
.activity-item .a-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); }
.activity-item .a-title { font-weight: 700; font-size: 14px; }
.activity-item .a-sub { font-size: 12px; color: var(--text-dim); }
.activity-item .a-when { margin-left: auto; font-size: 12px; color: var(--text-dim); white-space: nowrap; }

.rank-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.rank-row .cover { width: 42px; height: 30px; font-size: 10px; }
.rank-row .r-name { flex: 1; font-weight: 600; }

/* Library grid */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--gap); }
.game-card { display: flex; flex-direction: column; gap: 10px; }
.game-card .cover { aspect-ratio: 16 / 11; font-size: 22px; }
.game-card .fav { position: absolute; top: 8px; right: 8px; z-index: 2; color: var(--brand); }
.game-card .g-name { font-weight: 700; }

.chip-filter { display: inline-flex; gap: 8px; }
.chip-filter .chip { padding: 6px 14px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; }

/* Community + home: faixa horizontal com barra para arrastar */
.game-picker,
.update-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: scroll;
  overflow-y: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: auto;
  scrollbar-color: var(--brand) var(--surface-3);
}
.game-picker::-webkit-scrollbar,
.update-grid::-webkit-scrollbar {
  height: 12px;
}
.game-picker::-webkit-scrollbar-track,
.update-grid::-webkit-scrollbar-track {
  background: var(--surface-3);
  border-radius: 999px;
}
.game-picker::-webkit-scrollbar-thumb,
.update-grid::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 999px;
}
.game-tile {
  flex: 0 0 148px;
  width: 148px;
  min-width: 148px;
  max-width: 148px;
  padding: 14px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: 8px; cursor: pointer;
}
.game-tile.is-active { border-color: var(--warning); background: #2a2410; }
.game-tile .t-name { font-weight: 800; }
.game-tile .t-count { font-size: 12px; color: var(--text-muted); }

.topic {
  display: flex; align-items: center; gap: 16px;
  padding: 18px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--border-soft);
}
.topic .t-body { flex: 1; }
.topic .t-title { font-size: 17px; font-weight: 700; }
.topic .t-meta { font-size: 12px; color: var(--text-dim); margin: 3px 0 8px; }
.topic .t-excerpt { font-size: 13px; color: var(--text-muted); max-width: 60ch; }

.stat-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.stat-row .s-label { color: var(--text-muted); }
.stat-row .s-value { font-weight: 700; }

.filter-list { display: flex; flex-direction: column; gap: 10px; }
.filter-list a { font-weight: 600; }

/* Alerts */
.alert-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; margin-bottom: 16px;
}
.alert-toolbar .search {
  flex: 1; min-width: 180px; margin: 0;
}
.chip-filter .chip {
  border: 0; cursor: pointer; font: inherit;
}
.chip-filter .chip.is-off {
  background: var(--surface-3);
  color: var(--text-muted);
}
.alert-row {
  display: flex; align-items: center; gap: 18px;
  padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border-soft);
}
.alert-row .cover { width: 150px; height: 84px; font-size: 14px; flex: none; }
.alert-row .a-body { flex: 1; }
.alert-row .a-title { font-size: 18px; font-weight: 700; margin: 6px 0 4px; }
.alert-row .a-text { color: var(--text-muted); font-size: 13px; max-width: 60ch; }
.alert-row .a-when { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.alert-row .a-status { display: grid; place-items: center; gap: 8px; }
.status-glyph { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; }
.status-glyph.critical { background: rgba(239,68,68,0.15); color: var(--critical); }
.status-glyph.warning  { background: rgba(245,158,11,0.15); color: var(--warning); }
.status-glyph.stable   { background: rgba(34,197,94,0.15); color: var(--stable); }

.summary-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 8px; font-size: 15px;
  width: 100%; border: 0; background: transparent; color: inherit;
  font-family: inherit; text-align: left; cursor: pointer; border-radius: 10px;
}
.summary-row .n { font-weight: 800; }
.summary-row:hover, .summary-row.is-on { background: var(--surface-2); }

/* Home */
.hero {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 460 / 215;
  min-height: 160px;
  max-height: 360px;
  display: flex; align-items: center;
  padding: clamp(16px, 4vw, 40px) clamp(48px, 6vw, 72px);
  color: #fff;
  background-size: cover;
  background-position: center;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center center; z-index: 0;
  display: block;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.28) 45%, rgba(0,0,0,0.08) 100%); z-index: 1; }
.hero .hero-text { position: relative; z-index: 2; max-width: min(34ch, 70%); font-size: clamp(18px, 2.8vw, 30px); font-weight: 800; line-height: 1.2; text-shadow: 0 2px 16px rgba(0,0,0,0.55); }
.hero .dots { position: absolute; bottom: 18px; left: 40px; z-index: 3; display: flex; gap: 8px; }
.hero .dots span { width: 26px; height: 4px; border-radius: 999px; background: rgba(255,255,255,0.35); cursor: pointer; }
.hero .dots span.on { background: #fff; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.45); color: #fff; cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
.hero-arrow svg { width: 20px; height: 20px; }
.hero-arrow:hover { background: rgba(0,0,0,0.7); }
.hero-arrow--prev { left: 16px; }
.hero-arrow--next { right: 16px; }

.update-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--gap);
  margin-top: var(--gap);
}
.update-card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  flex: 0 0 220px;
  min-width: 220px;
  scroll-snap-align: start;
}
.update-card .cover { aspect-ratio: 16 / 9; height: auto; border-radius: 0; }
.update-card .u-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.update-card .u-title { font-weight: 800; font-size: 14px; }
.update-card .u-text { font-size: 12px; color: var(--text-muted); }
.update-card .u-when { font-size: 11px; color: var(--text-dim); }

.news-block { margin-top: var(--gap); }
.news-heading {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}
.news-kicker {
  margin: 4px 0 12px;
  color: var(--text-muted);
  font-size: 13px;
}
.news-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 168px;
  display: flex;
  align-items: flex-end;
  padding: 22px 56px 28px 28px;
  color: #fff;
  background: linear-gradient(135deg, #2b2d47, #14152b);
  border: 2px solid var(--brand);
  box-shadow: 0 0 18px var(--brand-glow), 0 0 40px rgba(224, 30, 43, 0.18);
}
.news-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
}
.news-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.12) 100%);
}
.news-copy { position: relative; z-index: 2; max-width: min(46ch, 78%); }
.news-game {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 4px;
}
.news-title { font-size: clamp(18px, 2.4vw, 26px); font-weight: 800; line-height: 1.2; }
.news-text { margin-top: 6px; font-size: 13px; color: rgba(255,255,255,0.88); line-height: 1.4; }
.news-when { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,0.7); }
.news-hero .dots { position: absolute; bottom: 14px; left: 28px; z-index: 3; display: flex; gap: 8px; }
.news-hero .dots span { width: 22px; height: 4px; border-radius: 999px; background: rgba(255,255,255,0.35); cursor: pointer; }
.news-hero .dots span.on { background: #fff; }
.news-hero .hero-arrow { z-index: 3; }

.trending-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); }
.trending-item:last-child { border-bottom: none; }
.trending-item .t-txt { flex: 1; font-weight: 600; font-size: 14px; }

.fav-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.fav-row .cover { width: 34px; height: 34px; border-radius: 8px; font-size: 10px; }
.fav-row .f-name { flex: 1; font-weight: 600; }

.podium-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--text-dim);
}
.podium-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.podium-item:last-child { border-bottom: none; }
.podium-place {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 2px;
}
.podium-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}
.podium-name:hover { color: var(--brand); text-decoration: underline; }

@media (max-width: 720px) {
  .hero { max-height: 240px; padding: 20px 52px; }
  .hero .hero-text { max-width: 100%; }
  .hero .dots { left: 24px; }
}

/* Game detail */
.detail-hero { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; padding: 24px; color: #fff; }
.detail-hero .dh-title { position: relative; z-index: 2; font-size: 48px; font-weight: 900; letter-spacing: 2px; }
.detail-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); font-size: 18px; font-weight: 700; }
.vote { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.vote.up { color: var(--stable); }
.vote.down { color: var(--critical); }
.comment { display: flex; gap: 10px; padding: 12px; background: var(--surface-2); border-radius: 12px; margin-bottom: 12px; }
.comment .avatar { width: 30px; height: 30px; font-size: 11px; flex: none; }
.comment .c-author { font-weight: 700; font-size: 13px; }
.comment .c-text { font-size: 13px; color: var(--text-muted); }

/* Profile */
.profile-head { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.profile-head .avatar-lg { width: 120px; height: 120px; border-radius: 50%; font-size: 40px; }
.profile-stats { display: flex; gap: 40px; margin-left: auto; text-align: center; }
.profile-stats .n { font-size: 26px; font-weight: 800; }
.profile-stats .l { font-size: 12px; color: var(--text-muted); }
.profile-recent { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.profile-recent .cover { width: 90px; height: 52px; font-size: 11px; flex: none; }

/* Grids used across screens */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stack { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; max-width: 100%; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.mt { margin-top: var(--gap); }

/* ---- Estados de tela ---------------------------------------------------
   O JS herdado fazia console.error e deixava a tela em branco, então
   "quebrou" e "não tem nada aqui" eram visualmente idênticos. Um banco
   recém-migrado sem seed cai em vazio em quase toda tela: é a primeira
   experiência de quem clona o projeto, não caso de canto. */
.estado {
  padding: 28px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.estado--erro { color: var(--critical); }
.estado--vazio { color: var(--text-dim); }

/* ---- Telas de autenticação (login / registro) --------------------------
   login.html e registro.html tinham este bloco copiado byte a byte num
   <style> de cada <head> — CSS compartilhado por duas páginas pertence
   ao arquivo de CSS, não a uma cópia que a guarda de casca nem cobre
   (o <style> fica fora dos marcadores CASCA:INICIO/FIM). Escopado por
   `body[data-casca="auth"]` (em vez de `body` puro) para não vazar
   `display:grid;place-items:center` para as outras sete páginas, que
   compartilham este mesmo arquivo. */
body[data-casca="auth"] { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.auth {
  width: 100%; max-width: 400px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow);
}
.auth .brand { justify-content: center; font-size: 24px; padding-bottom: 8px; }
.auth .brand svg { width: 34px; height: 34px; color: var(--brand); }
.auth h1 { font-size: 20px; margin: 8px 0 4px; text-align: center; }
.auth .sub { text-align: center; color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }
.auth form { display: flex; flex-direction: column; gap: 14px; }
.auth label { font-size: 13px; color: var(--text-muted); display: block; margin-bottom: 6px; }
.auth input {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  font-size: 14px; outline: none;
}
.auth input:focus { border-color: var(--brand); }
.auth .btn { justify-content: center; width: 100%; margin-top: 4px; }
.auth .alt { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-muted); }
.auth .alt a { color: var(--brand); font-weight: 700; }
.auth .err { color: var(--critical); font-size: 12px; margin-top: 4px; }
.auth .helptext { color: var(--text-dim); font-size: 11px; }
.auth ul.errorlist { list-style: none; padding: 0; margin: 0 0 8px; }
.auth ul.errorlist li { color: var(--critical); font-size: 13px; }
.auth .checkbox { display: flex; align-items: center; gap: 8px; }
.auth .checkbox input { width: auto; }

/* ---- Tela de jogo (vitrine estilo loja) -------------------------------- */
.store-page { position: relative; overflow: hidden; }
.store-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(28px) saturate(1.35);
  transform: scale(1.12);
  opacity: 0.42;
  z-index: 0;
  pointer-events: none;
}
.store-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,10,18,0.35), rgba(8,10,18,0.88));
}
.store-page > *:not(.store-bg) { position: relative; z-index: 1; }
.store-head { margin-bottom: 18px; }
.store-back { color: var(--text-muted); font-size: 13px; font-weight: 700; }
.store-back:hover { color: var(--brand); }
.store-head h1 { margin: 8px 0 4px; font-size: clamp(28px, 4vw, 44px); letter-spacing: 0.5px; }
.store-top {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 320px);
  gap: 20px;
  align-items: start;
  min-width: 0;
}
.store-media { position: relative; min-width: 0; }
.store-stage {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.store-frame, .store-shot {
  width: 100%; height: 100%;
  border: 0; display: block;
  object-fit: cover;
}
video.store-frame { object-fit: contain; background: #000; }
.store-shot--empty { display: grid; place-items: center; color: var(--text-dim); }
.store-media > .hero-arrow { z-index: 4; }
.store-thumbs {
  margin-top: 10px;
  gap: 8px;
}
.store-thumb {
  flex: 0 0 108px;
  width: 108px; height: 60px;
  padding: 0; border: 2px solid transparent;
  border-radius: 8px; overflow: hidden;
  background: #000; cursor: pointer; position: relative;
}
.store-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-thumb.is-on { border-color: #66c0f4; }
.store-thumb-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #fff; font-size: 18px;
  background: rgba(0,0,0,0.35);
}
.store-panel {
  background: rgba(12, 14, 22, 0.88);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px;
  backdrop-filter: blur(10px);
}
.store-cover {
  width: 100%; aspect-ratio: 460 / 215;
  object-fit: cover; border-radius: 8px;
  display: block; margin-bottom: 12px;
}
.store-tagline { color: var(--text-muted); font-size: 14px; line-height: 1.45; margin: 0 0 12px; }
.store-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.store-chip {
  background: rgba(102, 192, 244, 0.12);
  border: 1px solid rgba(102, 192, 244, 0.45);
  color: #66c0f4;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.store-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.store-kpi {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}
.store-kpi-n { font-size: 22px; font-weight: 800; color: #66c0f4; }
.store-kpi-l { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.store-meta { margin-top: 12px; }
.store-block { margin-top: var(--gap); }
.store-story { margin: 10px 0 0; line-height: 1.65; color: var(--text-muted); font-size: 15px; }
.store-reqs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 12px; }
.store-req-h { font-weight: 800; margin-bottom: 8px; }
.store-req-l { font-size: 13px; color: var(--text-muted); padding: 4px 0; border-bottom: 1px solid var(--border-soft); }
.store-bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: var(--gap);
}
@media (max-width: 1080px) {
  .store-top { grid-template-columns: 1fr; }
  .store-bottom { grid-template-columns: 1fr; }
  .store-reqs { grid-template-columns: 1fr; }
}

.game-card--vitrine {
  border: 1px solid rgba(102, 192, 244, 0.55);
  box-shadow: 0 0 0 1px rgba(102, 192, 244, 0.15);
}
.game-card .cover { position: relative; }
.game-card .store-thumb-play {
  height: 28px; inset: auto 8px 8px auto;
  width: auto; padding: 0 8px;
  font-size: 11px; font-weight: 800;
  border-radius: 8px;
  background: rgba(0,0,0,0.55);
}
#ex-vitrine:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.ex-vitrine-card {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  gap: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(102, 192, 244, 0.4);
  background: linear-gradient(90deg, #1b2838, #0c1018);
  min-width: 0;
}
.ex-vitrine-art {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
}
.ex-vitrine-copy {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.ex-vitrine-copy h2 { margin: 0; font-size: 20px; }
.ex-vitrine-copy p { margin: 0; color: var(--text-muted); line-height: 1.45; }
.ex-vitrine-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #66c0f4;
}
.ex-vitrine-copy .btn { width: fit-content; margin-top: 6px; }
@media (max-width: 720px) {
  .ex-vitrine-card { grid-template-columns: 1fr; }
  #ex-vitrine { grid-template-columns: 1fr; }
}
