/* =====================================================================
   fsociety // store — style.css
   ===================================================================== */

@font-face {
  font-family: 'VT323';
  src: url('../fonts/vt323-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/ibm-plex-mono-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #060606;
  --bg-2: #0d0d0d;
  --bg-3: #151515;
  --paper: #e9e1d3;
  --muted: #8d877c;
  --dim: #4b4840;
  --red: #e5484d;
  --blue: #7a7ee6;
  --line: rgba(233, 225, 211, .13);

  --font-pixel: 'VT323', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --font-mono: 'Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 8px 14px; background: var(--red); color: var(--bg);
  transform: translateY(-200%); transition: transform .2s;
}
.skip:focus { transform: none; }

.caret::after {
  content: '█';
  margin-left: .08em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------------------------------------------------------------------
   Botões
   --------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 12px 22px;
  border: 1px solid var(--paper);
  background: transparent;
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
  text-transform: lowercase;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .3s var(--ease), border-color .3s;
}
.btn::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }

.btn--primary { background: var(--red); border-color: var(--red); color: var(--bg); }
.btn--primary:hover { border-color: var(--paper); }

.btn--sm { padding: 7px 14px; font-size: 13px; }

.btn:disabled,
.btn[aria-disabled='true'] { opacity: .35; cursor: not-allowed; pointer-events: none; }

/* ---------------------------------------------------------------------
   CRT overlay
   --------------------------------------------------------------------- */
.crt { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.crt::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, .22) 2px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%);
}
.crt::after {
  content: '';
  position: absolute; inset: -100px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07;
  animation: noise .9s steps(5) infinite;
}
@keyframes noise {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-40px, 20px); }
  40% { transform: translate(30px, -50px); }
  60% { transform: translate(-60px, -20px); }
  80% { transform: translate(50px, 40px); }
  100% { transform: translate(0, 0); }
}

/* ---------------------------------------------------------------------
   Boot
   --------------------------------------------------------------------- */
.boot { display: none; }
.js.is-booting .boot {
  position: fixed; inset: 0; z-index: 150;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 24px;
  padding: var(--gutter);
  background: var(--bg);
  cursor: pointer;
  /* failsafe: se o JS morrer, o boot some sozinho */
  animation: bootFailsafe 0s 7s forwards;
}
.boot.is-done { display: flex; position: fixed; inset: 0; z-index: 150; padding: var(--gutter); background: var(--bg); animation: bootOut .5s steps(6) forwards; }
.boot__log {
  font-family: var(--font-pixel);
  font-size: clamp(18px, 2.3vw, 30px);
  line-height: 1.25;
  white-space: pre-wrap;
  word-break: break-word;
}
.boot__line.is-hello { color: var(--red); font-size: 1.6em; margin-top: .3em; }
.boot__line .ok { color: var(--paper); background: var(--red); padding: 0 .25em; }
.boot__skip { font-size: 12px; color: var(--dim); }
@keyframes bootOut {
  0% { clip-path: inset(0 0 0 0); }
  30% { clip-path: inset(30% 0 40% 0); transform: translateX(-3%); }
  60% { clip-path: inset(46% 0 46% 0); transform: translateX(4%); }
  100% { clip-path: inset(50% 0 50% 0); visibility: hidden; }
}
@keyframes bootFailsafe { to { visibility: hidden; pointer-events: none; } }

/* ---------------------------------------------------------------------
   Nav
   --------------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  font-size: 13px;
  background: linear-gradient(to bottom, rgba(6, 6, 6, .85), rgba(6, 6, 6, 0));
  transition: transform .5s var(--ease), background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(6, 6, 6, .82); border-bottom-color: var(--line); backdrop-filter: blur(8px); }
.nav.is-hidden { transform: translateY(-110%); }
.nav:focus-within { transform: none; }

.nav__logo { font-family: var(--font-pixel); font-size: 30px; line-height: 1; text-decoration: none; }
.nav__logo .caret::after { color: var(--red); }

.nav__links { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav__links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.nav__links a:hover { color: var(--paper); }

.nav__links a[aria-current='page'] { color: var(--red); }

.nav__right { display: flex; align-items: center; gap: 16px; }
.nav__coins { font-size: 11px; letter-spacing: .14em; color: var(--muted); white-space: nowrap; }
.btn.is-active { background: var(--paper); color: var(--bg); }

/* seletor de idioma */
.lang { display: inline-flex; border: 1px solid var(--line); }
.lang button {
  padding: 5px 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.lang button:hover { color: var(--paper); }
.lang button[aria-pressed='true'] { background: var(--red); color: var(--bg); }

/* botão hambúrguer (mobile) */
.burger {
  display: none;
  position: relative;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.burger span {
  position: absolute; left: 10px; right: 10px; height: 2px;
  background: var(--paper);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.burger span:first-child { top: 14px; }
.burger span:last-child { top: 23px; }
.burger[aria-expanded='true'] span:first-child { top: 18px; transform: rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { top: 18px; transform: rotate(-45deg); }

/* menu mobile em tela cheia */
.mmenu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 100px var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: var(--bg);
  background-image: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(233, 225, 211, .03) 3px 4px);
}
.mmenu[hidden] { display: none; }
.mmenu__links { display: flex; flex-direction: column; gap: 4px; }
.mmenu__links a {
  font-family: var(--font-pixel);
  font-size: clamp(44px, 13vw, 72px);
  line-height: 1.05;
  text-decoration: none;
  color: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.mmenu__links a[aria-current='page'], .mmenu__links a:active { color: var(--red); }
.mmenu__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mmenu__coins { font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.mmenu .lang button { padding: 10px 16px; font-size: 14px; }
.menu-open .nav { transform: none; background: var(--bg); }

@media (max-width: 1180px) {
  .nav__coins { display: none; }
}
@media (max-width: 820px) {
  .nav__main, .nav__lang { display: none; }
  .burger { display: block; }
  .nav__right { gap: 10px; }
  .nav__logo { font-size: 26px; }
}

/* ---------------------------------------------------------------------
   Glitch (texto com aberração cromática)
   --------------------------------------------------------------------- */
.glitch { position: relative; }
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  pointer-events: none;
  text-shadow: none;
  clip-path: inset(0 0 100% 0);
}
.glitch::before { color: var(--red); animation: glA 3.4s steps(1) infinite; }
.glitch::after { color: var(--blue); animation: glB 2.8s steps(1) infinite; }
.glitch.is-burst::before { animation-duration: .45s; }
.glitch.is-burst::after { animation-duration: .38s; }

@keyframes glA {
  0%, 82%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  83% { clip-path: inset(12% 0 68% 0); transform: translateX(-.06em); }
  86% { clip-path: inset(58% 0 18% 0); transform: translateX(.05em); }
  89% { clip-path: inset(34% 0 48% 0); transform: translateX(-.03em); }
  92% { clip-path: inset(80% 0 4% 0); transform: translateX(.07em); }
}
@keyframes glB {
  0%, 76%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  77% { clip-path: inset(70% 0 10% 0); transform: translateX(.06em); }
  80% { clip-path: inset(20% 0 62% 0); transform: translateX(-.05em); }
  84% { clip-path: inset(44% 0 40% 0); transform: translateX(.04em); }
}

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 110px 0 90px;
  overflow: hidden;
  text-align: center;
}

.hero__rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .32; }
.hero::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  height: 28%;
  background: linear-gradient(to bottom, rgba(6, 6, 6, 0), var(--bg));
  pointer-events: none;
}

.hero__mask {
  position: absolute; left: 50%; top: 50%;
  width: min(80vh, 94vw);
  aspect-ratio: 1;
  translate: -50% -50%;
}
.mask {
  position: relative; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
  filter: brightness(.48) contrast(1.15);
}
.mask img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }
.mask__slice {
  position: absolute; inset: 0;
  background: url('../assets/img/mask-poster.jpg') 50% 46% / cover no-repeat;
  opacity: 0;
}
.mask__slice--a { animation: sliceA 4.2s steps(1) infinite; }
.mask__slice--b { animation: sliceB 5.6s steps(1) infinite; filter: sepia(1) saturate(5) hue-rotate(-45deg); mix-blend-mode: screen; }
@keyframes sliceA {
  0%, 86%, 100% { opacity: 0; clip-path: inset(0 0 100% 0); transform: none; }
  87% { opacity: 1; clip-path: inset(22% 0 62% 0); transform: translateX(-6%); }
  90% { opacity: 1; clip-path: inset(50% 0 36% 0); transform: translateX(5%); }
  93% { opacity: 1; clip-path: inset(70% 0 18% 0); transform: translateX(-3%); }
  95% { opacity: 0; }
}
@keyframes sliceB {
  0%, 70%, 100% { opacity: 0; clip-path: inset(0 0 100% 0); transform: none; }
  71% { opacity: .8; clip-path: inset(38% 0 52% 0); transform: translateX(4%); }
  73% { opacity: .8; clip-path: inset(8% 0 80% 0); transform: translateX(-5%); }
  75% { opacity: 0; }
}

.hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }

.hero__eyebrow {
  margin: 0 0 8px;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.hero__eyebrow strong { color: var(--red); font-weight: 700; }

.hero__title {
  margin: 0;
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(76px, 17vw, 270px);
  line-height: .85;
  letter-spacing: -.01em;
  color: #fff8ea;
  text-shadow:
    -.035em 0 0 rgba(229, 72, 77, .9),
    .035em 0 0 rgba(122, 126, 230, .9),
    0 0 .25em rgba(255, 240, 220, .35);
  /* textura de painel de LED */
  -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 3px, rgba(0, 0, 0, .55) 3px 4px);
  mask-image: repeating-linear-gradient(to bottom, #000 0 3px, rgba(0, 0, 0, .55) 3px 4px);
  white-space: nowrap;
}

.hero__hello {
  margin: 14px 0 0;
  font-family: var(--font-pixel);
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.1;
  color: var(--red);
  min-height: 1.1em;
}

.hero__sub { margin: 18px 0 0; max-width: 44ch; color: var(--paper); opacity: .8; font-size: 14px; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

.hud { position: absolute; inset: 0; z-index: 3; pointer-events: none; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hud > span { position: absolute; }
.hud__tl { top: 84px; left: var(--gutter); display: flex; align-items: center; gap: 8px; }
.hud__tr { top: 84px; right: var(--gutter); }
.hud__bl { bottom: 28px; left: var(--gutter); animation: bob 2s ease-in-out infinite; }
.hud__br { bottom: 28px; right: var(--gutter); }
.rec { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: blink 1.2s steps(1) infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

@media (max-width: 640px) {
  .hud__tr, .hud__br { display: none; }
}

/* estado inicial da intro (só quando há JS) */
.js [data-intro] { opacity: 0; }

/* ---------------------------------------------------------------------
   Fitas / marquee
   --------------------------------------------------------------------- */
.tape { position: relative; z-index: 4; padding: 70px 0; overflow: hidden; }
.marquee { overflow: hidden; padding: 14px 0; white-space: nowrap; }
.marquee--red { background: var(--red); color: var(--bg); transform: rotate(-3deg) scale(1.08); position: relative; z-index: 2; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.marquee--paper { background: var(--paper); color: var(--bg); transform: rotate(2.4deg) scale(1.08); margin-top: -34px; }
.marquee__inner { display: flex; align-items: center; width: max-content; will-change: transform; }
.marquee__inner > * {
  font-family: var(--font-pixel);
  font-style: normal;
  font-size: clamp(30px, 4.4vw, 62px);
  line-height: 1;
  padding-inline: .45em;
  text-transform: uppercase;
}
.marquee__inner > i { opacity: .55; }

/* ---------------------------------------------------------------------
   Seções
   --------------------------------------------------------------------- */
.section { position: relative; padding: clamp(90px, 15vh, 170px) 0; }

.section__head {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: clamp(36px, 6vh, 64px);
  border-bottom: 1px solid var(--line);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.section__head b { color: var(--red); font-weight: 700; }

.js .reveal { opacity: 0; transform: translateY(40px); }

/* ---------------------------------------------------------------------
   Manifesto
   --------------------------------------------------------------------- */
.manifesto__text {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: clamp(36px, 5.6vw, 88px);
  line-height: 1;
  max-width: 1150px;
}
.manifesto__text em, .manifesto__text .hl { font-style: normal; color: var(--red); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: clamp(60px, 10vh, 120px) 0 0;
  border-top: 1px solid var(--line);
}
.stat { padding: 26px 20px 6px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column-reverse; }
.stat + .stat { padding-left: 20px; }
.stat:last-child { border-right: 0; }
.stat dt { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.stat dd { margin: 0; font-family: var(--font-pixel); font-size: clamp(54px, 6vw, 96px); line-height: 1; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------------------------------------------------------------------
   Store
   --------------------------------------------------------------------- */
.store { overflow-x: clip; }
.store__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.store__title { margin: 0; font-family: var(--font-pixel); font-weight: 400; font-size: clamp(72px, 12vw, 180px); line-height: .8; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.chip:hover { color: var(--paper); border-color: var(--paper); }
.chip[aria-pressed='true'] { background: var(--paper); border-color: var(--paper); color: var(--bg); }

.store__swiper { overflow: visible; }
.store__swiper .swiper-slide { height: auto; }

.card {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: border-color .35s, transform .5s var(--ease);
}
.card:hover { border-color: var(--red); transform: translateY(-6px); }

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  overflow: hidden;
  background:
    repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0, 0, 0, .35) 3px 4px),
    radial-gradient(circle at 50% 45%, #1f1d1a, #070707 70%);
  border-bottom: 1px solid var(--line);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.1); transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }

.card__glyph {
  font-family: var(--font-pixel);
  font-size: clamp(70px, 8vw, 120px);
  line-height: 1;
  color: var(--paper);
  text-shadow: -.04em 0 var(--red), .04em 0 var(--blue), 0 0 .3em rgba(255, 240, 220, .25);
  white-space: pre;
}
.card:hover .card__glyph { animation: jitter .32s steps(2) infinite; }
@keyframes jitter {
  0% { transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  25% { transform: translate(-3px, 1px); clip-path: inset(10% 0 30% 0); }
  50% { transform: translate(3px, -1px); clip-path: inset(0 0 0 0); }
  75% { transform: translate(-2px, 0); clip-path: inset(40% 0 10% 0); }
}

.card__code { position: absolute; top: 12px; left: 14px; font-size: 12px; color: var(--muted); }
.card__tag {
  position: absolute; top: 12px; right: 12px;
  padding: 2px 8px;
  background: var(--red); color: var(--bg);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.card__soldout {
  position: absolute; inset: auto 0 18px; transform: rotate(-4deg);
  padding: 4px 0; background: var(--paper); color: var(--bg);
  font-family: var(--font-pixel); font-size: 26px; text-transform: uppercase; letter-spacing: .1em;
}
.card.is-soldout .card__glyph { opacity: .3; }

.card__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.card__title { margin: 0; font-family: var(--font-pixel); font-weight: 400; font-size: 34px; line-height: 1; }
.card__desc { flex: 1; margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.card__foot {
  display: flex; flex-direction: column; gap: 14px;
  padding-top: 16px; border-top: 1px dashed var(--line);
}
.card__price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card__price strong { font-family: var(--font-pixel); font-weight: 400; font-size: 40px; line-height: .9; }
.card__price small { font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.card__foot .btn { width: 100%; padding-block: 11px; }

.store__empty { padding: 60px 0; color: var(--muted); }
.store__sub { margin: 18px 0 0; max-width: 46ch; color: var(--muted); }
.card__cat { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }

/* ---------------------------------------------------------------------
   Página /store
   --------------------------------------------------------------------- */
.shop { padding: clamp(110px, 16vh, 160px) 0 clamp(80px, 12vh, 140px); }
.shop__hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: 44px; }
.shop__title {
  margin: 0;
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(96px, 22vw, 300px);
  line-height: .78;
  color: #fff8ea;
  text-shadow: -.03em 0 rgba(229, 72, 77, .9), .03em 0 rgba(122, 126, 230, .9), 0 0 .25em rgba(255, 240, 220, .25);
}
.shop__intro { max-width: 420px; }
.shop__sub { margin: 0 0 14px; color: var(--muted); }
.shop__back { font-size: 13px; color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--dim); }
.shop__back:hover { color: var(--red); border-color: var(--red); }

.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  padding: 16px 0;
  border-block: 1px solid var(--line);
}
.search {
  flex: 1 1 260px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: border-color .2s;
}
.search:focus-within { border-color: var(--red); }
.search__prompt { color: var(--red); font-size: 13px; white-space: nowrap; }
.search input {
  flex: 1; min-width: 0;
  padding: 12px 0;
  border: 0; outline: 0;
  background: transparent;
  color: var(--paper);
  font: inherit; font-size: 16px; /* 16px evita zoom automático no iOS */
}
.search input::placeholder { color: var(--dim); }
.sort { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.sort select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--paper);
  font: inherit; font-size: 14px;
  cursor: pointer;
}
.sort select:focus { border-color: var(--red); outline: 0; }

.shop__count { margin: 22px 0 18px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 20px;
  margin: 0; padding: 0; list-style: none;
}
.grid__item { display: flex; }
.grid__item .card { width: 100%; }
.grid__empty { grid-column: 1 / -1; padding: 60px 0; color: var(--muted); }
.shop .coins__warn { margin-top: 60px; }

@media (max-width: 640px) {
  .toolbar .chips { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .chip { white-space: nowrap; }
  .sort { width: 100%; }
  .sort select { flex: 1; }
}

.store__controls { display: flex; align-items: center; gap: 24px; margin-top: 36px; }
.store__count { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.store__progress.swiper-pagination-progressbar {
  position: relative; flex: 1; height: 2px;
  background: var(--line);
  --swiper-pagination-color: var(--red);
}
.store__nav { display: flex; gap: 8px; }
.navbtn {
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.navbtn:hover { background: var(--paper); color: var(--bg); border-color: var(--paper); }
.navbtn.swiper-button-disabled { opacity: .3; pointer-events: none; }

/* ---------------------------------------------------------------------
   Como comprar (horizontal)
   --------------------------------------------------------------------- */
.how { position: relative; padding: clamp(90px, 15vh, 170px) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.how__track { display: flex; flex-direction: column; gap: 20px; padding-inline: var(--gutter); }
.how__intro .section__head { margin-bottom: 28px; }
.how__title {
  margin: 0;
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(46px, 12vw, 80px);
  line-height: .9;
  overflow-wrap: anywhere;
}
.how__title em { font-style: normal; color: var(--red); }
.how__hint { margin: 24px 0 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: none; }

.step {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 30px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.step__n {
  font-family: var(--font-pixel);
  font-size: clamp(110px, 13vw, 210px);
  line-height: .75;
  color: transparent;
  -webkit-text-stroke: 1px var(--paper);
}
.step:hover .step__n { color: var(--red); -webkit-text-stroke-color: var(--red); }
.step h3 { margin: 0 0 10px; font-family: var(--font-pixel); font-weight: 400; font-size: 40px; line-height: 1; }
.step p { margin: 0; color: var(--muted); max-width: 40ch; }
.step strong { color: var(--paper); }
.step code { font-family: var(--font-mono); font-size: 12px; color: var(--red); }

@media (min-width: 900px) {
  .how { padding: 0; }
  .how__pin { height: 100vh; display: flex; align-items: center; overflow: hidden; }
  .how__track { flex-direction: row; align-items: stretch; gap: 24px; width: max-content; padding-right: 12vw; }
  .how__intro { width: min(600px, 42vw); display: flex; flex-direction: column; justify-content: center; padding-right: 40px; }
  /* cabe "intermediários." inteiro na coluna (fonte proporcional à largura) */
  .how__title { font-size: min(92px, 4.6vw); overflow-wrap: normal; }
  .how__hint { display: block; }
  .step { width: min(520px, 38vw); min-height: 64vh; }
}

/* ---------------------------------------------------------------------
   Moedas
   --------------------------------------------------------------------- */
.coins__title { margin: 0 0 40px; font-family: var(--font-pixel); font-weight: 400; font-size: clamp(64px, 10vw, 150px); line-height: .8; }
.coins__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  margin: 0; padding: 0; list-style: none;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.coin {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  padding: 26px 22px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: background-color .3s, color .3s;
}
.coin__glyph { font-size: 46px; line-height: 1; margin-bottom: 14px; transition: transform .5s var(--ease); }
.coin__sym { font-family: var(--font-pixel); font-size: 34px; line-height: 1; }
.coin__net { font-size: 12px; color: var(--muted); transition: color .3s; }
.coin:hover { background: var(--red); color: var(--bg); }
.coin:hover .coin__net { color: var(--bg); }
.coin:hover .coin__glyph { transform: translateX(8px) rotate(-8deg); }

.coins__warn {
  margin: 40px 0 0; padding: 18px 20px;
  border: 1px dashed var(--red);
  font-size: 13.5px; color: var(--paper);
  max-width: 820px;
}
.coins__warn strong { color: var(--red); margin-right: 8px; text-transform: uppercase; letter-spacing: .1em; }

/* ---------------------------------------------------------------------
   FAQ
   --------------------------------------------------------------------- */
.faq__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(30px, 6vw, 100px); }
.faq__side { align-self: start; position: sticky; top: 100px; }
.faq__title { margin: 0; font-family: var(--font-pixel); font-weight: 400; font-size: clamp(64px, 9vw, 140px); line-height: .8; }
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0;
  font-family: var(--font-pixel); font-size: clamp(24px, 2.5vw, 34px); line-height: 1.05;
  list-style: none; cursor: pointer;
  transition: color .2s;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: '+'; color: var(--red); font-size: 1.2em; }
.faq__list details[open] summary::after { content: '−'; }
.faq__list summary:hover { color: var(--red); }
.faq__list p { margin: 0 0 24px; max-width: 64ch; color: var(--muted); }
@media (max-width: 820px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__side { position: static; }
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.footer { position: relative; padding: clamp(80px, 14vh, 150px) 0 30px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__big {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: clamp(60px, 13.5vw, 230px);
  line-height: .8;
  white-space: nowrap;
  color: var(--paper);
  text-shadow: -.03em 0 rgba(229, 72, 77, .85), .03em 0 rgba(122, 126, 230, .85);
}
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; margin-top: 60px; }
.footer__term { font-size: 14px; }
.footer__term p { margin: 0; }
.footer__term ul { margin: 8px 0 12px; padding-left: 2ch; list-style: none; }
.footer__term li::before { content: '> '; color: var(--red); }
.footer__term a { color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--dim); }
.footer__term a:hover { border-color: var(--red); color: var(--red); }
.prompt { color: var(--red); }
.footer__links { display: flex; flex-direction: column; gap: 6px; }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--paper); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.footer__bottom a { color: var(--muted); }

/* ---------------------------------------------------------------------
   Checkout (dialog)
   --------------------------------------------------------------------- */
.checkout {
  width: min(540px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: 1px solid var(--paper);
  background: var(--bg-2);
  color: var(--paper);
  box-shadow: -8px 0 0 rgba(229, 72, 77, .5), 8px 0 0 rgba(122, 126, 230, .35), 0 40px 120px rgba(0, 0, 0, .8);
  overflow: auto;
}
.checkout::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(4px); }
.checkout[open] { animation: dlgIn .45s var(--ease); }
@keyframes dlgIn {
  0% { opacity: 0; clip-path: inset(48% 0 48% 0); }
  60% { opacity: 1; clip-path: inset(0 0 0 0); transform: translateX(-6px); }
  100% { transform: none; }
}

.checkout__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 8px 6px 14px;
  background: var(--paper); color: var(--bg);
  font-size: 12px; font-weight: 700;
}
.checkout__close { width: 30px; height: 30px; border: 0; background: transparent; color: var(--bg); cursor: pointer; font-size: 16px; }
.checkout__close:hover { background: var(--red); }
.checkout__body { padding: 24px 24px 26px; }
.checkout__prompt { margin: 0; font-size: 12px; color: var(--red); }
.checkout__name { margin: 10px 0 2px; font-family: var(--font-pixel); font-weight: 400; font-size: 46px; line-height: .95; }
.checkout__price { margin: 0; font-family: var(--font-pixel); font-size: 34px; color: var(--muted); }
.checkout__coins { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; padding: 0; list-style: none; }
.checkout__coins li { padding: 3px 8px; border: 1px solid var(--line); font-size: 12px; }
.checkout__steps { margin: 0 0 16px; padding-left: 20px; font-size: 13px; color: var(--muted); }
.checkout__steps li + li { margin-top: 4px; }
.checkout__host { margin: 0; font-size: 13px; color: var(--muted); }
.checkout__host strong { color: var(--paper); }
.checkout__warn { margin: 6px 0 0; font-size: 13px; color: var(--red); }
.checkout__error { margin: 14px 0 0; padding: 10px 12px; border: 1px dashed var(--red); font-size: 13px; }
.checkout__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* ---------------------------------------------------------------------
   Movimento reduzido
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .js .reveal, .js [data-intro] { opacity: 1; transform: none; }
  .crt::after { display: none; }
}
