/* ============================================================
   PRISM — Base Styles & Design System
   Professional, minimal dark theme
   ============================================================ */

/* ---- Design Tokens ---- */
:root {
  /* Backgrounds — deep prism black */
  --bg-primary: #06060b;
  --bg-secondary: #0c0c14;
  --bg-card: #101019;
  --bg-elevated: #15161f;

  /* Text */
  --text-primary: #f2f3f8;
  --text-secondary: #b6b8c8;
  --text-muted: #8b8da0;

  /* Accents — vivid prismatic spectrum */
  --accent-cyan: #00e5ff;
  --accent-purple: #a855f7;
  --accent-rose: #f43f8e;
  --accent-gold: #fbbf24;
  --accent-green: #34d399;
  --accent-danger: #ef4444;

  /* Prism gradient — the brand signature (cyan→purple→rose→gold) */
  --prism-gradient: linear-gradient(100deg, #00e5ff 0%, #a855f7 38%, #f43f8e 68%, #fbbf24 100%);

  /* Glass */
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-hover: rgba(255, 255, 255, 0.06);

  /* Rarity Colors (standard CS2) */
  --rarity-consumer: #b0c3d9;
  --rarity-industrial: #5e98d9;
  --rarity-milspec: #4b69ff;
  --rarity-restricted: #8847ff;
  --rarity-classified: #d32ce6;
  --rarity-covert: #eb4b4b;
  --rarity-gold: #ffd700;

  /* Typography — Space Grotesk (display/marca) + Inter (corpo) */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Layout */
  --nav-height: 64px;
  --feed-height: 36px;
  --content-top: calc(var(--nav-height) + var(--feed-height));
  --container-max: 1320px;
  --container-pad: 24px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows — no glow, just depth */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ---- Keyboard focus visibility (WCAG 2.4.7) ---- */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
  border-radius: inherit;
}

.case-card:focus-visible,
.inv-card:focus-visible,
.inv-item:focus-visible,
.trade-item:focus-visible,
.tab-bar__tab:focus-visible,
.battle-case-option:focus-visible,
.case-item:focus-visible,
.transfer-recipient:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: #22223a;
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-elevated) var(--bg-primary);
}

/* ---- Selection ---- */
::selection {
  background: rgba(139, 92, 246, 0.35);
  color: var(--text-primary);
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(6, 6, 11, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--glass-border);
}

/* Hairline espectral — a 'luz refratada' que assina o site (estática) */
.nav::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--prism-gradient);
  opacity: 0.85;
  z-index: 1;
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav__logo-icon {
  font-size: 1.1rem;
  color: var(--accent-purple);
}

.nav__logo-text {
  color: var(--text-primary);
}

/* Nav Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav__link {
  position: relative;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: color var(--duration-normal) var(--ease-out),
              background var(--duration-normal) var(--ease-out);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--text-primary);
  background: var(--glass-hover);
}

.nav__link.active {
  color: var(--text-primary);
}

.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 2px;
  background: var(--prism-gradient);
  border-radius: var(--radius-full);
  z-index: 2;
}

/* Nav Actions */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav__balance {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  white-space: nowrap;
}

.nav__balance-icon {
  font-size: 0.75rem;
  opacity: 0.7;
}

.nav__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  object-fit: cover;
  transition: border-color var(--duration-normal) var(--ease-out);
  cursor: pointer;
}

.nav__avatar:hover {
  border-color: var(--accent-purple);
}

/* Hamburger (mobile) */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}

.nav__hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
}

/* ---- Buttons ---- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-out);
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--bg-elevated);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
}

/* Borda-gradiente prismática que RESPEITA o border-radius (pseudo mascarado) */
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--prism-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: filter var(--duration-normal) var(--ease-out);
}

.btn--primary:hover {
  background: #1b1c28;
  transform: translateY(-1px);
}

.btn--primary:hover::after {
  filter: saturate(1.3) brightness(1.18);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn--outline:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn--deposit {
  background: var(--accent-green);
  color: #06060b;
  border: none;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-full);
}

.btn--deposit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn--danger {
  background: var(--accent-danger);
  color: #fff;
  border: none;
}

.btn--danger:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
}

.btn--ghost:hover {
  color: var(--text-primary);
  background: var(--glass);
}

.btn--lg {
  padding: 14px 36px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn--sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn--xs {
  padding: 3px 8px;
  font-size: 0.7rem;
  border-radius: var(--radius-sm);
}

.btn--icon {
  padding: 8px;
  border-radius: var(--radius-md);
  width: 36px;
  height: 36px;
}

/* Shimmer — varredura diagonal branca, SÓ no hover/focus (gatilho semântico) */
.btn__shimmer {
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  z-index: 0;
}

.btn:hover .btn__shimmer,
.btn:focus-visible .btn__shimmer {
  animation: btnShimmer 0.6s var(--ease-out);
}

@keyframes btnShimmer {
  to { left: 160%; }
}

.btn:disabled,
.btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ---- Live Feed ---- */
.live-feed {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  height: var(--feed-height);
  z-index: 999;
  background: rgba(6, 6, 11, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.live-feed__label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px 0 16px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-rose);
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 1;
  background: rgba(6, 6, 11, 0.9);
}

.live-feed__dot {
  width: 6px;
  height: 6px;
  background: var(--accent-rose);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.live-feed__track {
  display: flex;
  align-items: center;
  gap: 16px;
  animation: feedScroll 60s linear infinite;
  white-space: nowrap;
}

.live-feed__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: var(--glass);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.live-feed__item img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
}

.live-feed__item-name {
  font-weight: 600;
  color: var(--text-primary);
}

.live-feed__item-skin {
  font-weight: 500;
}

.live-feed__item-value {
  color: var(--accent-gold);
  font-weight: 600;
}

/* ---- Footer ---- */
.footer {
  position: relative;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 48px 0 24px;
  margin-top: 80px;
  z-index: 10;
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__brand-name {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.footer__brand-tagline {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer__col-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer__col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.footer__col-links a:hover {
  color: var(--text-primary);
}

/* Bloco de jogo responsável / 18+ */
.footer__responsible {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: var(--container-max);
  margin: 24px auto 0;
  padding: 16px var(--container-pad);
  border-top: 1px solid var(--glass-border);
}
.age-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--accent-rose, #f43f8e);
  color: var(--accent-rose, #f43f8e);
  font-weight: 800;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.footer__responsible-text {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted, #8a8b9e);
  margin: 0;
}
.footer__responsible-text strong { color: var(--text-secondary, #cfd2e0); }
.footer__responsible-text a { color: var(--accent-cyan, #00e5ff); }
.footer__responsible-text a:hover { text-decoration: underline; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px var(--container-pad) 0;
  border-top: 1px solid var(--glass-border);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer__fineprint { font-size: 0.7rem; color: var(--text-muted); opacity: 0.8; margin: 0; text-align: right; }

.footer__18 {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--accent-rose);
  border-radius: var(--radius-sm);
  color: var(--accent-rose);
  font-weight: 600;
}

/* ---- Keyframes (minimal set) ---- */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}

@keyframes feedScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Main Content Area ---- */
#pageContent {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* Section shared padding */
.page-section {
  padding-top: calc(var(--content-top) + 32px);
  padding-bottom: 60px;
}

.section-header {
  text-align: left;
  margin-bottom: 32px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: 0;
  margin-bottom: 8px;
}

/* Aresta espectral à esquerda do título (assinatura editorial) */
.section-title::before {
  content: '';
  width: 5px;
  align-self: stretch;
  min-height: 1.1em;
  border-radius: var(--radius-full);
  background: var(--prism-gradient);
  flex-shrink: 0;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- Utility ---- */
.text-gradient {
  background: var(--prism-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* Fallback: navegadores sem background-clip:text → cor sólida (marca não some) */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .text-gradient {
    color: var(--accent-cyan);
    -webkit-text-fill-color: var(--accent-cyan);
    background: none;
  }
}

.text-success { color: var(--accent-green); }
.text-danger  { color: var(--accent-rose); }
.text-sm      { font-size: 0.75rem; }

.price {
  color: var(--accent-gold);
  font-variant-numeric: tabular-nums;
}

/* ── Tags de metadados ricos (StatTrak™, fase Doppler, gems, Fade%, Fire&Ice) ── */
.meta-st {
  color: #d98a4f;
  font-weight: 700;
  letter-spacing: .2px;
}
.meta-pat {
  font-weight: 700;
  letter-spacing: .2px;
}
.meta-pat--phase    { color: #c084fc; }
.meta-pat--fade     { color: var(--accent-gold); }
.meta-pat--ruby     { color: #ff2d55; text-shadow: 0 0 8px rgba(255,45,85,.45); }
.meta-pat--sapphire { color: #3b82f6; text-shadow: 0 0 8px rgba(59,130,246,.5); }
.meta-pat--emerald  { color: #10d99a; text-shadow: 0 0 8px rgba(16,217,154,.45); }
.meta-pat--bp       { color: #67e8f0; }
.meta-pat--bluegem  { color: #2f80ff; text-shadow: 0 0 10px rgba(47,128,255,.6); }
.meta-pat--fireice {
  background: linear-gradient(90deg, #ff3b3b 0%, #ff8a3b 25%, #ffffff 50%, #4ea8ff 75%, #2f6bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.meta-seed { color: var(--text-muted); }
.meta-souvenir { color: #ffd36b; font-weight: 800; text-shadow: 0 0 8px rgba(255,211,107,.4); }
.meta-nametag { color: var(--text-secondary, #aab); font-style: italic; }

/* Botão fantasma */
.btn--ghost { background: transparent; border: 1px solid rgba(255,255,255,.14); color: var(--text-secondary, #cfd2e0); }
.btn--ghost:hover { border-color: var(--accent-cyan, #00e5ff); color: #fff; }

/* ── Barra de float (espectro FN→BS) ── */
.float-bar { position: relative; height: 8px; border-radius: 6px; overflow: hidden; margin: 10px 0 4px; }
.float-bar__track { display: flex; width: 100%; height: 100%; }
.float-bar__track span { display: block; height: 100%; }
.float-bar__marker { position: absolute; top: -3px; width: 3px; height: 14px; background: #fff; border-radius: 2px; box-shadow: 0 0 6px rgba(255,255,255,.9), 0 0 2px #000; transform: translateX(-50%); }
.float-bar__val { font-size: .72rem; color: var(--text-muted, #8a8b9e); font-variant-numeric: tabular-nums; margin-bottom: 6px; }

/* ── Adesivos ── */
.stickers-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.sticker { width: 42px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.sticker img { width: 42px; height: 31px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.sticker__bar { width: 100%; height: 3px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.sticker__bar i { display: block; height: 100%; background: linear-gradient(90deg,#ef4444,#eab308,#22c55e); }

/* ── Chaveiro ── */
.charm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); font-size: .78rem; margin: 6px 0; }
.charm-chip img { width: 26px; height: 26px; object-fit: contain; }

/* ── Drawer de inspeção ── */
.inspect-overlay { position: fixed; inset: 0; z-index: 4000; display: none; }
.inspect-overlay.open { display: block; }
.inspect-backdrop { position: absolute; inset: 0; background: rgba(2,2,8,.72); backdrop-filter: blur(4px); }
.inspect-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 94vw); overflow-y: auto; background: linear-gradient(180deg,#0d0e16,#070710); border-left: 1px solid color-mix(in srgb, var(--rar, #fff) 50%, transparent); box-shadow: -20px 0 60px rgba(0,0,0,.6); padding: 22px 22px 40px; animation: slideInRight .28s cubic-bezier(.2,.8,.2,1); }
@keyframes slideInRight { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.inspect-close { position: absolute; top: 12px; right: 14px; background: none; border: none; color: #9a9bae; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.inspect-close:hover { color: #fff; }
.inspect-hero { position: relative; height: 180px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.inspect-glow { position: absolute; inset: 0; }
.inspect-img { position: relative; max-width: 90%; max-height: 170px; object-fit: contain; filter: drop-shadow(0 8px 24px rgba(0,0,0,.6)); }
.inspect-title { font-family: var(--font-display, inherit); font-size: 1.2rem; font-weight: 700; }
.inspect-sub { display: flex; align-items: center; gap: 6px; font-size: .82rem; margin: 4px 0 8px; color: var(--text-secondary, #aab); }
.inspect-dot { width: 8px; height: 8px; border-radius: 50%; }
.inspect-coll { color: var(--text-muted, #8a8b9e); }
.inspect-price { font-size: 1.5rem; font-weight: 800; color: var(--accent-gold, #fbbf24); font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.inspect-section { margin: 14px 0; }
.inspect-section h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted, #8a8b9e); margin: 0 0 6px; }
.inspect-count { background: rgba(255,255,255,.1); border-radius: 999px; padding: 1px 7px; font-size: .7rem; }
.inspect-meta { font-size: .85rem; line-height: 1.6; margin: 6px 0; }
.inspect-row { display: flex; justify-content: space-between; font-size: .82rem; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.06); }
.inspect-row b { font-variant-numeric: tabular-nums; }
.nametag-line { font-style: italic; color: #cfd2e0; }
.inspect-ingame { width: 100%; margin-top: 16px; }

/* Botão inspecionar no card de inventário */
.inv-card { position: relative; }
.inv-card__inspect { position: absolute; top: 8px; right: 8px; z-index: 2; width: 30px; height: 30px; border-radius: 8px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12); color: #fff; cursor: pointer; opacity: 0; transition: opacity .15s; }
.inv-card:hover .inv-card__inspect { opacity: 1; }
.inv-card__img { cursor: pointer; }

/* Toast da inspeção */
.inspect-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: #15161f; border: 1px solid rgba(255,255,255,.12); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: .85rem; opacity: 0; pointer-events: none; transition: .25s; z-index: 4100; }
.inspect-toast.show { opacity: 1; transform: translateX(-50%); }

/* Flash de "big win" — drop covert/gold (cor da raridade nas bordas da tela) */
.big-win-flash {
  position: fixed;
  inset: 0;
  z-index: 3500;
  pointer-events: none;
  box-shadow: inset 0 0 130px 24px color-mix(in srgb, var(--bw, #ffd700) 55%, transparent);
  animation: bigWinFlash 1.1s ease-out forwards;
}
@keyframes bigWinFlash {
  0%   { opacity: 0; }
  14%  { opacity: 1; }
  100% { opacity: 0; }
}

/* Vinheta vermelha sutil na derrota */
.lose-flash {
  position: fixed;
  inset: 0;
  z-index: 3400;
  pointer-events: none;
  box-shadow: inset 0 0 90px 12px rgba(239, 68, 68, .32);
  animation: loseFlash .75s ease-out forwards;
}
@keyframes loseFlash {
  0%   { opacity: 0; }
  18%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ── Badge "Justo" no nav ── */
.nav__link--pf {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-cyan, #00e5ff);
  border: 1px solid color-mix(in srgb, var(--accent-cyan, #00e5ff) 30%, transparent);
  border-radius: 999px;
  padding: 3px 10px;
}
.nav__link--pf:hover { background: color-mix(in srgb, var(--accent-cyan, #00e5ff) 12%, transparent); }

/* ── Modal Provably Fair ── */
.pf-overlay { position: fixed; inset: 0; z-index: 4200; display: none; }
.pf-overlay.open { display: flex; align-items: center; justify-content: center; }
.pf-backdrop { position: absolute; inset: 0; background: rgba(2,2,8,.74); backdrop-filter: blur(4px); }
.pf-panel {
  position: relative;
  width: min(560px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #0d0e16, #08080f);
  border: 1px solid color-mix(in srgb, var(--accent-cyan, #00e5ff) 24%, transparent);
  border-radius: 16px;
  padding: 26px 24px 30px;
  box-shadow: 0 24px 70px rgba(0,0,0,.6);
  animation: fadeInUp .3s var(--ease-out, ease);
}
.pf-close { position: absolute; top: 12px; right: 16px; background: none; border: none; color: #9a9bae; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.pf-close:hover { color: #fff; }
.pf-title { font-family: var(--font-display, inherit); font-size: 1.4rem; margin: 0 0 6px; }
.pf-sub { color: var(--text-secondary, #aab); font-size: .9rem; margin: 0 0 14px; }
.pf-how { margin: 0 0 18px; padding-left: 18px; color: var(--text-secondary, #cfd2e0); font-size: .84rem; line-height: 1.7; }
.pf-how code { background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 4px; font-size: .8rem; }
.pf-field { margin: 12px 0; }
.pf-field > label, .pf-verify > label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted, #8a8b9e); margin-bottom: 5px; }
.pf-mono { display: block; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .76rem; color: #cfd2e0; word-break: break-all; background: rgba(255,255,255,.04); padding: 7px 10px; border-radius: 8px; margin-bottom: 4px; }
.pf-row { display: flex; gap: 8px; }
.pf-input { flex: 1; min-width: 0; background: rgba(255,255,255,.05); border: 1px solid var(--glass-border, rgba(255,255,255,.1)); border-radius: 8px; padding: 8px 10px; color: #fff; font-size: .82rem; font-family: ui-monospace, monospace; }
.pf-input:focus-visible { outline: 2px solid var(--accent-cyan, #00e5ff); outline-offset: 1px; }
.pf-hist { display: flex; flex-direction: column; gap: 3px; }
.pf-hist__row { display: flex; justify-content: space-between; gap: 8px; font-size: .76rem; padding: 4px 8px; background: rgba(255,255,255,.03); border-radius: 6px; }
.pf-hist__name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-secondary, #aab); }
.pf-verify { margin: 16px 0; padding: 14px; border: 1px solid var(--glass-border, rgba(255,255,255,.1)); border-radius: 12px; display: flex; flex-direction: column; gap: 8px; }
.pf-result { font-size: .82rem; line-height: 1.6; margin-top: 4px; }
.pf-actions { margin: 8px 0; }
.pf-note { font-size: .76rem; color: var(--text-muted, #8a8b9e); line-height: 1.6; margin: 14px 0 0; border-top: 1px solid rgba(255,255,255,.06); padding-top: 12px; }

/* FAQ (reusa o modal PF) */
.faq-item { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.faq-q { font-size: .92rem; font-weight: 700; color: #fff; margin: 0 0 5px; }
.faq-a { font-size: .84rem; line-height: 1.6; color: var(--text-secondary, #aab); margin: 0; }
.faq-a b { color: var(--text-primary, #fff); }

/* Balance flash animations */
.balance--insufficient {
  animation: balanceFlash 0.4s ease;
  color: var(--accent-rose) !important;
}
.balance--positive {
  animation: balanceFlash 0.4s ease;
  color: var(--accent-green) !important;
}
.balance--negative {
  animation: balanceFlash 0.4s ease;
  color: var(--accent-rose) !important;
}

@keyframes balanceFlash {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  :root {
    --container-pad: 16px;
  }

  .nav__links {
    display: none;
  }

  .nav__links.nav__links--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card, #0c0c14);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 8px 16px 16px;
    gap: 2px;
    z-index: 250;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  }

  .nav__links.nav__links--open .nav__link {
    padding: 14px 10px;
    border-radius: var(--radius-md);
    width: 100%;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__inner {
    gap: 16px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
