/* =============================================================
   Ranking de vendas — Grupo Ice Beer
   Visual: premium / cinematic / liquid gold
   ============================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --bg-0: #05070b;
  --bg-1: #0a0f1a;
  --bg-2: #131a29;
  --ink: #f4ecd8;
  --ink-soft: rgba(244, 236, 216, 0.68);
  --ink-muted: rgba(244, 236, 216, 0.42);
  --gold-1: #ffe39a;
  --gold-2: #f5b538;
  --gold-3: #c77d00;
  --gold-glow: rgba(255, 190, 80, 0.35);
  --silver: #dde7f0;
  --bronze: #e08a4d;
  --border: rgba(255, 215, 140, 0.14);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --danger: #ff6b6b;
  --ok: #5bd27a;
  --radius: 18px;
  --radius-sm: 12px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-0);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ------ Fundo cinematográfico ------ */
.scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 10% -10%, rgba(199, 125, 0, 0.22), transparent 60%),
    radial-gradient(900px 700px at 110% 0%, rgba(60, 100, 180, 0.16), transparent 65%),
    radial-gradient(800px 800px at 50% 120%, rgba(245, 181, 56, 0.10), transparent 70%),
    linear-gradient(180deg, #05070b 0%, #080c15 50%, #03050a 100%);
}

.scene::before,
.scene::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: drift 22s ease-in-out infinite alternate;
}
.scene::before {
  background: radial-gradient(circle, #c77d00 0%, transparent 60%);
  top: -18vw;
  left: -12vw;
}
.scene::after {
  background: radial-gradient(circle, #4a72c9 0%, transparent 60%);
  bottom: -20vw;
  right: -10vw;
  animation-delay: -8s;
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4vw, 3vw, 0) scale(1.08); }
  100% { transform: translate3d(-3vw, 2vw, 0) scale(0.98); }
}

.scene .grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1.2px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

#bubbles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ------ Beer scroll meter ------ */
.beer-scroll {
  position: fixed;
  right: clamp(8px, 1.6vw, 22px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 12;
  pointer-events: none;
}

.beer-meter {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  width: 78px;
}

.beer-label {
  font-size: 0.54rem;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  font-family: var(--font-display);
  transform: rotate(90deg);
  transform-origin: center;
  margin-bottom: 0.4rem;
}

.mug-wrap {
  position: relative;
  width: 50px;
  height: 80px;
}
.mug-glow {
  position: absolute;
  inset: -8px -6px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 75%, rgba(245, 181, 56, 0.42), transparent 70%);
  filter: blur(10px);
  opacity: 0.45;
}
.mug {
  position: absolute;
  inset: 0;
  border-radius: 10px 10px 14px 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(230, 250, 255, 0.2), rgba(165, 210, 230, 0.06));
  border: 2px solid rgba(210, 245, 255, 0.45);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.mug-handle {
  position: absolute;
  right: -13px;
  top: 16px;
  width: 16px;
  height: 38px;
  border-radius: 0 12px 12px 0;
  border: 3px solid rgba(210, 245, 255, 0.45);
  border-left: none;
}

.beer-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--beer-level, 0%);
  background: linear-gradient(180deg, #ffd36f 0%, #f5b538 45%, #c77d00 100%);
  transition: height 0.3s var(--ease-out);
}
.beer-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.09) 0 4px,
    rgba(255, 255, 255, 0) 4px 10px
  );
}
.beer-foam {
  position: absolute;
  left: -8%;
  right: -8%;
  top: -7px;
  height: 12px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 12% 60%, #fff, rgba(255, 255, 255, 0.7) 60%, transparent 62%),
    radial-gradient(circle at 30% 45%, #fff, rgba(255, 255, 255, 0.7) 60%, transparent 62%),
    radial-gradient(circle at 48% 60%, #fff, rgba(255, 255, 255, 0.7) 60%, transparent 62%),
    radial-gradient(circle at 66% 48%, #fff, rgba(255, 255, 255, 0.75) 60%, transparent 62%),
    radial-gradient(circle at 84% 55%, #fff, rgba(255, 255, 255, 0.75) 60%, transparent 62%);
  animation: foamWave 1.8s ease-in-out infinite alternate;
}
@keyframes foamWave {
  from { transform: translateX(-3px); }
  to { transform: translateX(3px); }
}

.meter-track span {
  display: inline-block;
  min-width: 42px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--gold-1);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  padding: 0.22rem 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.26);
}

/* ------ Layout ------ */
.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  position: relative;
  z-index: 1;
}

/* ------ Topbar ------ */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  display: grid;
  place-items: center;
  color: #ffcf45;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1.35rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 30px -10px var(--gold-glow),
    0 0 0 1px rgba(255, 215, 140, 0.3);
  position: relative;
  overflow: hidden;
  text-shadow: 0 0 14px rgba(255, 207, 69, 0.65);
}
.brand-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 55%, rgba(255, 255, 255, 0.25) 57%, transparent 60%);
  transform: translateX(-100%);
  animation: shine 5s ease-in-out infinite;
}

@keyframes shine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(120%); }
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-title strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}
.brand-title small {
  font-size: 0.78rem;
  color: var(--ink-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-link {
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s var(--ease-out);
  background: var(--surface);
  backdrop-filter: blur(10px);
}
.nav-link:hover {
  color: var(--gold-1);
  border-color: var(--gold-2);
  box-shadow: 0 0 24px -4px var(--gold-glow);
  transform: translateY(-1px);
}

/* ------ Hero / título ------ */
.hero {
  text-align: center;
  padding: 2.5rem 0 3rem;
  position: relative;
  animation: fadeUp 1s var(--ease-out) both;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 215, 140, 0.08);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-1);
}
.hero .eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 10px var(--gold-2);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  margin: 1rem 0 0.5rem;
  letter-spacing: -0.025em;
  line-height: 1.02;
  background: linear-gradient(180deg, #ffffff 0%, #ffe6a8 55%, #c77d00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 30px rgba(255, 190, 80, 0.25));
}

.hero p.lead {
  color: var(--ink-soft);
  font-size: 0.94rem;
  max-width: 360px;
  margin: 0 auto;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ------ Cartões / glass ------ */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at var(--mx, 50%) 0, rgba(255, 215, 140, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

.card h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-1);
}

/* ------ Seletor de período ------ */
.controls {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}
@media (min-width: 720px) {
  .controls {
    grid-template-columns: auto 1fr auto;
    align-items: end;
  }
}

.year-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.pill {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  letter-spacing: 0.04em;
  font-size: 0.92rem;
}
.pill:hover {
  color: var(--gold-1);
  border-color: var(--gold-2);
  transform: translateY(-1px);
}
.pill[aria-selected="true"] {
  color: #1a0d00;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  border-color: transparent;
  box-shadow: 0 8px 20px -8px var(--gold-glow);
}

.period-select {
  position: relative;
}
.period-btn {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  transition: all 0.3s var(--ease-out);
}
.period-btn:hover,
.period-btn[aria-expanded="true"] {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(245, 181, 56, 0.12);
}
.period-btn .chev {
  transition: transform 0.35s var(--ease-out);
  color: var(--gold-1);
}
.period-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

.period-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  border-radius: 14px;
  padding: 0.4rem;
  background: rgba(12, 16, 24, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  max-height: 320px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transition: all 0.25s var(--ease-out);
  z-index: 30;
}
.period-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.period-option {
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-size: 0.95rem;
  transition: background 0.2s var(--ease-out);
}
.period-option:hover { background: rgba(255, 215, 140, 0.08); }
.period-option[aria-selected="true"] {
  background: linear-gradient(135deg, rgba(255, 215, 140, 0.18), rgba(199, 125, 0, 0.1));
  color: var(--gold-1);
}
.period-option small {
  color: var(--ink-muted);
  font-size: 0.76rem;
}

.controls-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
  display: block;
}

/* ------ Stats row ------ */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
}
.stat {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 0%, var(--gold-1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------ PÓDIO ------ */
.podium-section {
  margin: 3rem 0 2rem;
}
.podium-section .title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.podium-section .title h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.podium-section .title p {
  margin: 0.4rem 0 0;
  font-size: 0.73rem;
  color: var(--ink-muted);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: end;
  gap: 0.8rem;
  max-width: 780px;
  margin: 0 auto;
  perspective: 1200px;
}
@media (max-width: 560px) {
  .podium { grid-template-columns: 1fr 1fr 1fr; gap: 0.4rem; }
}

.pedestal {
  position: relative;
  opacity: 0;
  transform: translateY(60px) scale(0.9);
  animation: podiumRise 0.9s var(--ease-out) forwards;
}
.pedestal.p2 { animation-delay: 0.25s; }
.pedestal.p3 { animation-delay: 0.05s; }
.pedestal.p1 { animation-delay: 0.55s; }

@keyframes podiumRise {
  0% { opacity: 0; transform: translateY(80px) scale(0.88); filter: blur(8px); }
  60% { filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.pedestal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.6rem 0;
  text-align: center;
}

.avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: #1a0d00;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
  box-shadow:
    0 20px 40px -10px var(--gold-glow),
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    0 0 0 3px rgba(0, 0, 0, 0.3),
    0 0 0 4px var(--gold-2);
  position: relative;
  animation: floatY 4s ease-in-out infinite;
}
.pedestal.p2 .avatar {
  background: linear-gradient(135deg, #fff, #8ea5b8);
  box-shadow:
    0 16px 30px -10px rgba(200, 220, 240, 0.35),
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    0 0 0 3px rgba(0, 0, 0, 0.3),
    0 0 0 4px #b7c7d6;
  color: #0a0f1a;
}
.pedestal.p3 .avatar {
  background: linear-gradient(135deg, #ffd49a, #a6542a);
  box-shadow:
    0 16px 30px -10px rgba(224, 138, 77, 0.35),
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    0 0 0 3px rgba(0, 0, 0, 0.3),
    0 0 0 4px #c87d42;
  color: #1a0d00;
}
.pedestal.p1 .avatar {
  width: 104px;
  height: 104px;
  font-size: 2rem;
  animation-duration: 3.5s;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.crown {
  position: absolute;
  top: -46px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.4rem;
  filter: drop-shadow(0 0 20px var(--gold-glow)) drop-shadow(0 0 4px var(--gold-2));
  animation: crownFloat 3s ease-in-out infinite;
}
@keyframes crownFloat {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-4deg); }
  50% { transform: translateX(-50%) translateY(-6px) rotate(4deg); }
}

.spotlight {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 220px;
  background: radial-gradient(ellipse at top, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
  animation: lightPulse 3s ease-in-out infinite;
  z-index: -1;
}
@keyframes lightPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.pedestal-name {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 0.25rem;
}
.pedestal.p1 .pedestal-name {
  font-size: 1.18rem;
  background: linear-gradient(180deg, #fff, var(--gold-1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pedestal-sales {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.pedestal-sales strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-1);
  font-size: 1.1rem;
  margin-right: 0.3rem;
}

.block {
  margin-top: 1.1rem;
  width: 100%;
  border-radius: 16px 16px 6px 6px;
  position: relative;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom-width: 0;
}

.pedestal.p1 .block {
  height: 210px;
  background:
    linear-gradient(180deg, rgba(255, 227, 154, 0.18), rgba(199, 125, 0, 0.35)),
    linear-gradient(180deg, #1a1408 0%, #0a0805 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 227, 154, 0.4),
    0 40px 80px -20px var(--gold-glow),
    0 0 0 1px rgba(255, 215, 140, 0.25);
}
.pedestal.p2 .block {
  height: 160px;
  background:
    linear-gradient(180deg, rgba(221, 231, 240, 0.14), rgba(100, 120, 140, 0.28)),
    linear-gradient(180deg, #141923 0%, #0a0f17 100%);
  box-shadow:
    inset 0 1px 0 rgba(221, 231, 240, 0.35),
    0 30px 50px -20px rgba(200, 220, 240, 0.2),
    0 0 0 1px rgba(221, 231, 240, 0.15);
}
.pedestal.p3 .block {
  height: 130px;
  background:
    linear-gradient(180deg, rgba(255, 212, 154, 0.15), rgba(166, 84, 42, 0.28)),
    linear-gradient(180deg, #1c1208 0%, #0c0806 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 212, 154, 0.35),
    0 30px 50px -20px rgba(224, 138, 77, 0.2),
    0 0 0 1px rgba(224, 138, 77, 0.15);
}

.block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 30%, transparent 100%),
    repeating-linear-gradient(90deg, transparent 0 40px, rgba(255, 255, 255, 0.02) 40px 41px);
}

.block .pos-number {
  font-size: 4.2rem;
  line-height: 1;
  background: linear-gradient(180deg, #fff 0%, var(--gold-1) 50%, var(--gold-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px var(--gold-glow));
}
.pedestal.p2 .block .pos-number {
  background: linear-gradient(180deg, #fff, #b7c7d6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(200, 220, 240, 0.35));
  font-size: 3.4rem;
}
.pedestal.p3 .block .pos-number {
  background: linear-gradient(180deg, #ffd49a, #a6542a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(224, 138, 77, 0.3));
  font-size: 3.1rem;
}
.pedestal.p1 .block .pos-number { font-size: 4.8rem; }

.block .reflect {
  position: absolute;
  top: 0;
  left: -60%;
  width: 60%;
  height: 100%;
  background: linear-gradient(115deg, transparent 45%, rgba(255, 255, 255, 0.08) 50%, transparent 55%);
  animation: sweep 6s ease-in-out infinite;
  animation-delay: 2s;
}
@keyframes sweep {
  0%, 80%, 100% { transform: translateX(0); }
  100% { transform: translateX(280%); }
}

/* ------ Lista do resto do ranking ------ */
.list-section { margin-top: 3rem; }

.ranking-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.row {
  display: grid;
  grid-template-columns: 54px 1fr 220px auto;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1.2rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease-out), border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  animation: rowIn 0.6s var(--ease-out) forwards;
}
.row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.row:hover {
  transform: translateX(4px);
  border-color: rgba(255, 215, 140, 0.3);
  background: linear-gradient(180deg, rgba(255, 215, 140, 0.07), rgba(255, 215, 140, 0.015));
}
.row:hover::before { opacity: 1; }

@keyframes rowIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .row {
    grid-template-columns: 44px 1fr auto;
  }
  .row .bar-wrap { display: none; }
}

.row .pos {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  text-align: center;
  letter-spacing: -0.02em;
}

.row .ident {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}
.row .avatar-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  background: linear-gradient(140deg, rgba(255, 215, 140, 0.18), rgba(199, 125, 0, 0.1));
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.row .name {
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.row .bar-wrap {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
}
.row .bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-1));
  border-radius: 999px;
  transition: width 1.4s var(--ease-out);
  box-shadow: 0 0 20px -2px var(--gold-glow);
  position: relative;
}
.row .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-100%);
  animation: barShimmer 2.2s ease-in-out infinite;
}
@keyframes barShimmer {
  to { transform: translateX(100%); }
}

.row .sales {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}
.row .sales small {
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-left: 0.3rem;
}

/* ------ Estado vazio / carregando ------ */
.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.empty .big {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0.4rem 0;
}

.skeleton {
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer {
  to { background-position: -200% 0; }
}

/* ------ Mensagens ------ */
.msg {
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-top: 0.8rem;
}
.msg-error {
  color: #ffbaba;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
}
.msg-ok {
  color: #b8f3c3;
  background: rgba(91, 210, 122, 0.1);
  border: 1px solid rgba(91, 210, 122, 0.3);
}

/* ------ Footer ------ */
.footer-note {
  margin-top: 3rem;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* =============================================================
   PAINEL ADMIN
   ============================================================= */
.admin-hero {
  text-align: center;
  padding: 1.5rem 0 2rem;
}
.admin-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0;
  background: linear-gradient(180deg, #fff, var(--gold-1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.admin-hero p {
  color: var(--ink-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0.4rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  font-size: 0.9rem;
}
.btn:hover {
  border-color: var(--gold-2);
  color: var(--gold-1);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px var(--gold-glow);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: #1a0d00;
  border-color: transparent;
  box-shadow: 0 10px 24px -8px var(--gold-glow);
}
.btn-primary:hover {
  color: #1a0d00;
  filter: brightness(1.05);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
}
.btn-danger {
  background: rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.4);
  color: #ffbaba;
}
.btn-danger:hover {
  background: rgba(255, 107, 107, 0.25);
  color: #ffd4d4;
  box-shadow: 0 10px 24px -10px rgba(255, 107, 107, 0.4);
}

label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.45rem;
}

input,
select,
textarea {
  font: inherit;
  color: var(--ink);
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(245, 181, 56, 0.15);
}

.field-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: flex-end;
}
.field-row > .field {
  flex: 1 1 180px;
}

.admin-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}
@media (min-width: 860px) {
  .admin-grid.two { grid-template-columns: 1fr 1fr; }
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-top: 1rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: rgba(0, 0, 0, 0.3);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 215, 140, 0.03); }

.inline-input {
  width: 5.5rem;
  padding: 0.35rem 0.55rem;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Entrada de sessão (login) mais destacada */
.auth-card {
  max-width: 460px;
  margin: 2rem auto;
  animation: fadeUp 0.8s var(--ease-out) both;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .beer-scroll { display: none; }
}
