/* HUB'ZINHO — gravura em cobalto sobre papel, tipografia do Hermes Agent. */

@font-face { font-family: 'Rules Expanded'; font-weight: 400; font-display: swap; src: url(fonts/RulesExpanded-Regular.woff2) format('woff2'); }
@font-face { font-family: 'Rules Expanded'; font-weight: 700; font-display: swap; src: url(fonts/RulesExpanded-Bold.woff2) format('woff2'); }
@font-face { font-family: 'Rules Compressed'; font-weight: 400; font-display: swap; src: url(fonts/RulesCompressed-Regular.woff2) format('woff2'); }
@font-face { font-family: 'Rules Compressed'; font-weight: 600; font-display: swap; src: url(fonts/RulesCompressed-Medium.woff2) format('woff2'); }
@font-face { font-family: 'Collapse'; font-weight: 400; font-display: swap; src: url(fonts/Collapse-Regular.woff2) format('woff2'); }
@font-face { font-family: 'Collapse'; font-weight: 700; font-display: swap; src: url(fonts/Collapse-Bold.woff2) format('woff2'); }
@font-face { font-family: 'Mondwest'; font-weight: 400; font-display: swap; src: url(fonts/Mondwest-Regular.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url(fonts/JetBrainsMono-Regular.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 700; font-display: swap; src: url(fonts/JetBrainsMono-Bold.woff2) format('woff2'); }

:root {
  --font-display: 'Rules Expanded', 'Arial Black', sans-serif;
  --font-numeral: 'Rules Compressed', 'Arial Narrow', sans-serif;
  --font-body: 'JetBrains Mono', ui-monospace, monospace;
  --font-serif: 'Collapse', 'Trebuchet MS', serif;
  --font-pixel: 'Mondwest', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --paper: #ECEAE3;
  --paper-2: #E1DED4;
  --paper-3: #D6D2C6;
  --ink: #0B0B14;
  --ink-2: #33333F;
  --muted: #6A6874;
  --line: rgba(11, 11, 20, .16);
  --cobalt: #2433F0;
  --cobalt-deep: #1520B4;
  --cobalt-soft: #C9CDFB;
  --on-cobalt: #F1EFE8;
  --lemon: #EEFF3A;
  --orange: #E8501A;
  --lilac: #D6CAFF;
  --mint: #C3F4D0;
  --pink: #FF9BD6;
  --good: #1B8A4C;
  --warn: #B88600;
  --bad: #D2361A;
  --series-in: #2B35F0;
  --series-out: #E8501A;
  --shadow-hard: 4px 4px 0 var(--ink);
  --shadow-hard-sm: 2px 2px 0 var(--ink);
  --radius: 0;
  --radius-sm: 0;
  --rail: 236px;
  --ease-spring: cubic-bezier(.2, 1.4, .4, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color-scheme: light;
}

:root[data-theme="noite"] {
  --paper: #070A2B;
  --paper-2: #0D1240;
  --paper-3: #151B55;
  --ink: #F1EEE6;
  --ink-2: #C9C7D6;
  --muted: #8E90B4;
  --line: rgba(241, 238, 230, .14);
  --cobalt: #3B49FF;
  --cobalt-deep: #2A35D8;
  --cobalt-soft: #1E2670;
  --on-cobalt: #F1EFE8;
  --lemon: #E4F53A;
  --orange: #F06A30;
  --lilac: #8C7BE8;
  --mint: #4FB879;
  --pink: #E07BBE;
  --good: #5FD08E;
  --warn: #E8C14A;
  --bad: #FF6B4A;
  --series-in: #7C86FF;
  --series-out: #E0602A;
  --shadow-hard: 4px 4px 0 #000;
  --shadow-hard-sm: 2px 2px 0 #000;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font: 400 14px/1.6 var(--font-body);
  overflow-x: clip;
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out);
}
body::after {
  /* granulação de papel */
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: var(--grain);
  opacity: .22;
  mix-blend-mode: multiply;
  z-index: 200;
}
:root[data-theme="noite"] body::after { mix-blend-mode: screen; opacity: .08; }
button, input { font: inherit; color: inherit; }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
button { cursor: pointer; }
a { color: inherit; }
::selection { background: var(--lemon); color: #0B0B14; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- peças compartilhadas ---------- */

.wordmark {
  font: 700 22px/0.92 var(--font-display);
  letter-spacing: .01em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: flex-start;
}
.wordmark .apos { color: var(--cobalt); display: inline-block; animation: twinkle 2.6s ease-in-out infinite; transform-origin: 50% 40%; }

.tag {
  font: 400 11px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.index { font: 400 12px/1 var(--font-mono); letter-spacing: .04em; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px 6px 9px;
  border-radius: 0;
  border: 1.5px solid currentColor;
  font: 400 11px/1 var(--font-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill .dot { width: 7px; height: 7px; border-radius: 0; background: currentColor; }
.pill.live .dot { animation: pulse 1.6s ease-in-out infinite; }
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px 6px;
  border-radius: 0;
  font: 700 11px/1 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--lemon);
  color: #0B0B14;
  border: 2px solid #0B0B14;
  box-shadow: var(--shadow-hard-sm);
  transform: rotate(var(--tilt, -2deg));
  transition: transform .4s var(--ease-spring);
  white-space: nowrap;
}
.sticker:hover { transform: rotate(0deg) scale(1.06); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 0;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: 700 13px/1 var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-hard);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background .3s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--cobalt); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 0;
  border: 1.5px solid var(--line);
  background: transparent;
  transition: background .2s, transform .2s var(--ease-spring), border-color .2s;
}
.icon-btn:hover { background: var(--paper-2); border-color: var(--ink); transform: rotate(-6deg); }

/* gravura pontilhada (máscara PNG colorida por CSS ou canvas) */
.engraving { position: relative; display: block; }
.engraving canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }

/* letreiro corrido */
.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: 400 12px/1 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track { display: inline-flex; gap: 0; padding: 9px 0; animation: marquee 38s linear infinite; }
.marquee-track span { padding: 0 18px; display: inline-flex; gap: 18px; align-items: center; }
.marquee-track b { font-weight: 700; color: var(--lemon); }
.marquee-track .star { color: var(--cobalt-soft); }
:root[data-theme="noite"] .marquee-track .star { color: var(--lemon); }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* estrelinhas */
.spark {
  position: absolute;
  width: var(--s, 18px);
  height: var(--s, 18px);
  color: var(--c, var(--lemon));
  animation: twinkle var(--d, 2.4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  pointer-events: none;
}
.spark svg { width: 100%; height: 100%; fill: currentColor; }

/* ---------- valores privados ---------- */
.money { font-variant-numeric: tabular-nums; transition: filter .35s var(--ease-out), opacity .35s; }
:root.private .money { filter: blur(9px); opacity: .7; }

/* ---------- animações ---------- */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes twinkle {
  0%, 100% { transform: scale(.6) rotate(0deg); opacity: .55; }
  50% { transform: scale(1.12) rotate(45deg); opacity: 1; }
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@keyframes rise {
  from { opacity: 0; transform: translateY(28px) rotate(var(--rise-tilt, 1.2deg)) scale(.98); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-8px); }
  40%, 60% { transform: translateX(8px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-8px) rotate(var(--r, 0deg)); } }
@keyframes stamp {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(2.4) rotate(-14deg); }
  60% { opacity: 1; transform: translate(-50%, -50%) scale(.94) rotate(-8deg); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-8deg); }
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }

.reveal { animation: rise .9s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }

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

/* Cara de app: sem barras de rolagem visíveis, sem pinça de zoom no toque,
   sem seleção de texto (campos de digitação continuam selecionáveis). */
* { scrollbar-width: none !important; }
*::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
html { touch-action: pan-x pan-y; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable="true"] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
img { -webkit-user-drag: none; }
