/* =====================================================================
   IA RafaTech — Catálogo de projetos criados com IA
   Paleta: grafite, cinza, cinza claro e amarelo dourado
   ===================================================================== */

:root {
  --bg: #0e0e10;
  --bg2: #141417;
  --surface: #1a1a1e;
  --surface2: #222227;
  --line: #2d2d33;
  --line2: #3b3b43;
  --text: #ededf0;
  --muted: #a3a3ad;
  --dim: #6d6d78;
  --light: #e8e8eb;
  --light2: #d5d5da;
  --ink: #18181b;
  --gold: #e8b931;
  --gold2: #f7d774;
  --gold3: #b9881b;
  --red: #ff4d4d;
  --green: #4ade80;

  --radius: 20px;
  --maxw: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --f-head: 'Sora', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --f-pixel: 'Press Start 2P', ui-monospace, monospace;
  --f-mono: ui-monospace, 'Cascadia Code', 'SFMono-Regular', Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--f-body);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--gold); color: var(--ink); }

.wrap { width: min(var(--maxw), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.gold-text {
  background: linear-gradient(100deg, var(--gold3), var(--gold) 30%, var(--gold2) 50%, var(--gold) 70%, var(--gold3));
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -250% 0; } }

/* Fundo ------------------------------------------------------------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(232, 185, 49, .13), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 56px 56px;
  mask-image: linear-gradient(#000 40%, transparent 95%);
}

/* Cabeçalho --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(14, 14, 16, .72);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header-in { display: flex; align-items: center; gap: 24px; height: 78px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.1rem var(--f-head); letter-spacing: -.01em; }
.brand-logo { height: 52px; width: auto; flex: none; transition: transform .3s var(--ease), filter .3s; }
.brand:hover .brand-logo { transform: translateY(-1px) scale(1.03); filter: drop-shadow(0 4px 12px rgba(232, 185, 49, .35)); }
.brand b { color: var(--gold); font-weight: 800; }
.brand small {
  font: 400 9px/1 var(--f-pixel); letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); margin-left: 4px; text-shadow: 0 0 10px rgba(232, 185, 49, .45); white-space: nowrap;
}
.nav-inline { display: flex; gap: 6px; margin-left: auto; }
.nav-inline a {
  position: relative; padding: 8px 14px; border-radius: 999px; color: var(--muted);
  font-weight: 500; font-size: .95rem; transition: color .2s, background .2s;
}
.nav-inline a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-inline a.is-active { color: var(--ink); background: var(--gold); }

.menu-btn {
  display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 14px;
  border: 1px solid var(--line2); border-radius: 999px; font-weight: 600; font-size: .9rem;
  transition: border-color .2s, background .2s; position: relative; z-index: 160;
}
.menu-btn:hover { border-color: var(--gold); }
.burger { width: 18px; height: 12px; position: relative; }
.burger i { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease), opacity .2s; }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 5px; }
.burger i:nth-child(3) { top: 10px; }
.menu-open .burger i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-open .burger i:nth-child(2) { opacity: 0; }
.menu-open .burger i:nth-child(3) { top: 5px; transform: rotate(-45deg); }
.menu-open .site-header { z-index: 200; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open .nav-inline { visibility: hidden; }
.menu-open .menu-btn { border-color: var(--gold); background: var(--gold); color: var(--ink); }

/* Menu em tela cheia ------------------------------------------------ */
.menu {
  position: fixed; inset: 0; z-index: 150;
  background:
    radial-gradient(700px 500px at 85% 20%, rgba(232, 185, 49, .16), transparent 70%),
    radial-gradient(600px 400px at 10% 90%, rgba(255, 255, 255, .05), transparent 70%),
    #0b0b0d;
  clip-path: circle(0 at var(--ox, 95%) var(--oy, 34px));
  transition: clip-path .7s var(--ease), visibility 0s .7s;
  visibility: hidden;
  display: flex; align-items: center;
  overflow-y: auto;
}
.menu-open .menu { clip-path: circle(150% at var(--ox, 95%) var(--oy, 34px)); visibility: visible; transition: clip-path .7s var(--ease); }
.menu-in { width: min(var(--maxw), 100% - 32px); margin-inline: auto; padding: 100px 0 40px; display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: end; }
.menu-list { display: flex; flex-direction: column; }
.menu-item {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(40px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.menu-open .menu-item { opacity: 1; transform: none; transition-delay: calc(var(--i) * 70ms + 200ms); }
.mi-num { font: 500 .85rem var(--f-mono); color: var(--dim); }
.mi-label {
  font: 800 clamp(2.2rem, 7vw, 4.8rem)/1.05 var(--f-head); letter-spacing: -.03em;
  background: linear-gradient(90deg, var(--gold) 50%, var(--text) 50%);
  background-size: 200% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background-position .55s var(--ease);
}
.mi-side { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .9rem; }
.mi-arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line2);
  display: grid; place-items: center; transition: transform .4s var(--ease), background .3s, border-color .3s, color .3s;
}
.menu-item:hover .mi-label, .menu-item:focus-visible .mi-label { background-position: 0 0; }
.menu-item:hover .mi-arrow, .menu-item:focus-visible .mi-arrow { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: rotate(-45deg); }
.menu-item:hover .mi-num { color: var(--gold); }
.menu-aside { color: var(--muted); font-size: .95rem; opacity: 0; transform: translateY(20px); transition: .6s var(--ease); }
.menu-open .menu-aside { opacity: 1; transform: none; transition-delay: .55s; }
.menu-aside strong { display: block; color: var(--text); font: 700 1.1rem var(--f-head); margin-bottom: 6px; }
.menu-aside .pill { margin-top: 16px; }

/* Botões e selos ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  transition: transform .2s var(--ease), box-shadow .3s, background .2s, border-color .2s, color .2s;
}
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 30px -8px rgba(232, 185, 49, .6); }
.btn-gold:hover { background: var(--gold2); transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(232, 185, 49, .7); }
.btn-ghost { border: 1px solid var(--line2); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; box-shadow: none; }
.btn-arcade {
  font: 400 .85rem/1 var(--f-pixel); letter-spacing: .04em;
  padding: 18px 22px; border-radius: 10px; background: var(--gold); color: var(--ink);
  box-shadow: 0 6px 0 var(--gold3), 0 10px 26px -6px rgba(232, 185, 49, .6);
}
.btn-arcade:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--gold3), 0 14px 30px -6px rgba(232, 185, 49, .7); }
.btn-arcade:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--gold3); }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--muted);
}
.pill-gold { background: rgba(232, 185, 49, .12); border-color: rgba(232, 185, 49, .35); color: var(--gold); }
.badge-ex {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  font: 700 .65rem var(--f-body); letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px; background: rgba(14, 14, 16, .8); color: var(--muted); border: 1px solid var(--line2);
}
.status { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; color: var(--green); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(74, 222, 128, .18); }
.status.soon { color: var(--muted); }
.status.soon::before { box-shadow: none; }

/* Home: hero -------------------------------------------------------- */
.hero { text-align: center; padding: 84px 0 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: var(--muted); font-size: .88rem; font-weight: 500;
}
.eyebrow i { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; color: var(--ink); font-style: normal; font-size: .7rem; font-weight: 800; }
.hero h1 { font: 800 clamp(2.3rem, 6.4vw, 4.6rem)/1.04 var(--f-head); letter-spacing: -.035em; margin: 22px auto 20px; max-width: 15ch; text-wrap: balance; }
.lead { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 600px; margin: 0 auto; }
.hero .scroll-hint { margin-top: 30px; color: var(--dim); font-size: .85rem; display: inline-flex; align-items: center; gap: 8px; }
.scroll-hint span { width: 18px; height: 28px; border: 2px solid var(--line2); border-radius: 10px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; left: 50%; top: 5px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }

/* Home: portais (menu interativo das categorias) -------------------- */
.portals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: 90px; }
.portal {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 26px; background: linear-gradient(180deg, var(--surface2), var(--surface));
  border: 1px solid var(--line);
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), border-color .3s, box-shadow .4s;
  will-change: transform;
  opacity: 0; translate: 0 30px; animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--i) * 110ms + 150ms);
}
@keyframes rise { to { opacity: 1; translate: 0 0; } }
.portal::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(232, 185, 49, .18), transparent 60%);
}
.portal:hover { border-color: rgba(232, 185, 49, .55); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(232, 185, 49, .2); transition: transform .12s linear, border-color .3s, box-shadow .4s; }
.portal:hover::before { opacity: 1; }
.portal > * { position: relative; z-index: 1; }
.portal-art {
  height: 240px; display: grid; place-items: center; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% 120%, rgba(232, 185, 49, .16), transparent 60%), #121215;
}
.portal-body { padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.portal-num { font: 500 .8rem var(--f-mono); color: var(--gold); letter-spacing: .1em; }
.portal h2 { font: 800 2rem/1.1 var(--f-head); letter-spacing: -.02em; }
.portal p { color: var(--muted); font-size: .98rem; }
.portal-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.portal-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--gold); }
.portal-cta svg { transition: transform .35s var(--ease); }
.portal:hover .portal-cta svg { transform: translateX(6px); }

/* Arte: navegador animado (Sites) */
.art-browser { width: 78%; max-width: 280px; border-radius: 12px; background: #1d1d22; border: 1px solid var(--line2); overflow: hidden; box-shadow: 0 20px 40px -20px #000; transition: transform .5s var(--ease); }
.portal:hover .art-browser { transform: translateY(-6px) scale(1.03); }

/* Mock de navegador (reaproveitado em cards e páginas) */
.mock-browser { position: absolute; inset: 0; display: flex; flex-direction: column; background: #1d1d22; }
.art-browser .mock-browser { position: relative; }
.mb-bar { display: flex; align-items: center; gap: 6px; padding: 9px 10px; background: #26262c; border-bottom: 1px solid var(--line); }
.mb-bar i { width: 8px; height: 8px; border-radius: 50%; background: #4a4a52; }
.mb-bar i:first-child { background: #ff6159; }
.mb-bar i:nth-child(2) { background: #ffbd2e; }
.mb-bar i:nth-child(3) { background: #28c941; }
.mb-bar span { margin-left: 8px; flex: 1; height: 16px; border-radius: 6px; background: #1a1a1e; font: 500 .62rem/16px var(--f-mono); color: var(--dim); padding: 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mb-page { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mb-hero { height: 38%; min-height: 40px; border-radius: 8px; background: linear-gradient(120deg, var(--c, var(--gold)), color-mix(in srgb, var(--c, var(--gold)) 30%, #2a2a30)); position: relative; overflow: hidden; }
.mb-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-100%); animation: sweep 3s 1s infinite; }
@keyframes sweep { to { transform: translateX(100%); } }
.mb-line { height: 8px; border-radius: 4px; background: #34343b; width: var(--w, 100%); transform-origin: left; animation: type 3.2s var(--ease) infinite; animation-delay: var(--d, 0s); }
@keyframes type { 0% { transform: scaleX(0); } 35%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: .4; } }
.mb-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: auto; }
.mb-cols i { height: 26px; border-radius: 6px; background: #2a2a30; border: 1px solid #34343b; }

/* Palco 3D (cubo e anéis) */
.stage3d { position: absolute; inset: 0; display: grid; place-items: center; perspective: 700px; overflow: hidden;
  background: radial-gradient(circle at 50% 60%, rgba(232, 185, 49, .14), transparent 60%), linear-gradient(#141418, #0e0e11); }
.stage3d::after { content: ""; position: absolute; left: -20%; right: -20%; bottom: -30%; height: 60%;
  background: linear-gradient(rgba(232, 185, 49, .25) 1px, transparent 1px) 0 0 / 100% 22px, linear-gradient(90deg, rgba(232, 185, 49, .25) 1px, transparent 1px) 0 0 / 22px 100%;
  transform: perspective(300px) rotateX(62deg); mask-image: linear-gradient(transparent, #000 70%); opacity: .5; }
.portal-art .stage3d { position: relative; width: 100%; height: 100%; }
.shape { --s: 90px; position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; animation: spin 9s linear infinite; z-index: 1; }
@keyframes spin { from { transform: rotateX(-22deg) rotateY(0); } to { transform: rotateX(-22deg) rotateY(360deg); } }
.shape i { position: absolute; inset: 0; border: 2px solid var(--gold); background: rgba(232, 185, 49, .08); box-shadow: inset 0 0 22px rgba(232, 185, 49, .25); }
.shape-cubo i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.shape-cubo i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.shape-cubo i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.shape-cubo i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.shape-cubo i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.shape-cubo i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); background: rgba(232, 185, 49, .2); }
.shape-aneis i { border-radius: 50%; background: none; }
.shape-aneis i:nth-child(1) { transform: rotateY(0); }
.shape-aneis i:nth-child(2) { transform: rotateY(60deg); }
.shape-aneis i:nth-child(3) { transform: rotateY(120deg); }
.shape-aneis i:nth-child(4) { transform: rotateX(90deg); border-color: var(--light2); }
.shape-aneis i:nth-child(5) { inset: 38%; background: var(--gold); box-shadow: 0 0 30px var(--gold); border: 0; }
.shape-aneis i:nth-child(6) { display: none; }
.portal:hover .shape, .card:hover .shape { animation-duration: 3s; }

/* Arte: mini fliperamas (Jogos) */
.art-arcade { display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding-top: 22px; }
.art-arcade .cab { zoom: .46; filter: none; pointer-events: none; }
.art-arcade .cab:nth-child(2) { zoom: .54; }
.portal:hover .art-arcade .cab { transform: translateY(-14px); }
.portal:hover .art-arcade .cab:nth-child(2) { transform: translateY(-22px); }
.art-arcade .cab:nth-child(3) { transition-delay: .06s; }

/* Seção "Como funciona" (faixa cinza claro) ------------------------- */
.how { background: var(--light); color: var(--ink); padding: 80px 0; position: relative; }
.how::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .04) 1px, transparent 1px) 0 0 / 40px 40px; pointer-events: none; }
.how .wrap { position: relative; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-head h2 { font: 800 clamp(1.8rem, 4vw, 2.6rem)/1.1 var(--f-head); letter-spacing: -.03em; }
.sec-head p { color: var(--muted); max-width: 440px; }
.how .sec-head p { color: #5d5d66; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--light2); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; }
.step-n { font: 800 3.6rem/1 var(--f-head); color: var(--gold); letter-spacing: -.04em; }
.step h3 { font: 700 1.2rem var(--f-head); margin: 16px 0 6px; }
.step p { color: #5d5d66; font-size: .97rem; }
.step-ic { position: absolute; top: 24px; right: 24px; width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: var(--gold); display: grid; place-items: center; }

/* Grade de cards ---------------------------------------------------- */
.section { padding: 80px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(232, 185, 49, .5); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .9); }
.card-prev { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #111; border-bottom: 1px solid var(--line); }
.card-prev > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-prev > img { transform: scale(1.05); }
.card-body { padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font: 600 .72rem var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.card h3 { font: 700 1.25rem/1.25 var(--f-head); letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: .93rem; }
.card-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; }
.card-go { font-weight: 600; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; color: var(--text); transition: color .2s, gap .3s var(--ease); }
.card:hover .card-go { color: var(--gold); gap: 10px; }
.card .scr { position: absolute; inset: 0; }

/* Telas de fliperama (animações "attract mode") --------------------- */
.scr { position: relative; overflow: hidden; background: #050507; --c: var(--gold); }
.scr i { position: absolute; display: block; }
.scr::after { /* scanlines + vinheta */
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: repeating-linear-gradient(rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .65));
}
.scr-label {
  position: absolute; left: 0; right: 0; bottom: 10%; z-index: 6; text-align: center;
  font: 400 clamp(7px, 1.1vw, 10px) var(--f-pixel); color: #fff; text-shadow: 0 0 6px var(--c);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* corrida */
.scr-corrida { background: linear-gradient(#1a0d2e 0 22%, #3b1d4a 30%, #c2563a 36%, #2a6b3a 36%, #1d4a28); }
.scr-corrida::before { /* pista */
  content: ""; position: absolute; inset: 36% 0 0 0; z-index: 1;
  background: linear-gradient(90deg, transparent 0 4%, #fff 4% 5%, #47474f 5% 95%, #fff 95% 96%, transparent 96%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
}
.scr-corrida i:not(:nth-of-type(6)) { /* faixas centrais */
  z-index: 2; left: 50%; top: 36%; width: 4%; height: 7%; margin-left: -2%; background: #f2f2f2;
  transform-origin: top center; animation: dash 1.2s linear infinite;
}
.scr-corrida i:nth-child(2) { animation-delay: -.24s; }
.scr-corrida i:nth-child(3) { animation-delay: -.48s; }
.scr-corrida i:nth-child(4) { animation-delay: -.72s; }
.scr-corrida i:nth-child(5) { animation-delay: -.96s; }
@keyframes dash { from { top: 36%; transform: scale(.15); } to { top: 104%; transform: scale(1.6); } }
.scr-corrida i:nth-of-type(6) { /* kart */
  z-index: 3; left: 50%; bottom: 14%; width: 18%; height: 11%; margin-left: -9%;
  background: var(--c); border-radius: 30% 30% 10% 10%;
  box-shadow: -9px 4px 0 -2px #111, 9px 4px 0 -2px #111, inset 0 -4px 0 rgba(0, 0, 0, .3);
  animation: kart 2.4s ease-in-out infinite;
}
.scr-corrida i:nth-of-type(6)::before { content: ""; position: absolute; left: 30%; right: 30%; top: -45%; height: 55%; border-radius: 50% 50% 20% 20%; background: #f2c9a0; box-shadow: inset 0 3px 0 #d33; }
.scr-corrida .scr-label, .scr-estrelas .scr-label { bottom: auto; top: 12%; }
@keyframes kart { 0%, 100% { translate: -55% 0; rotate: -4deg; } 50% { translate: 55% 0; rotate: 4deg; } }

/* blocos */
.scr-blocos {
  background:
    linear-gradient(rgba(232, 185, 49, .09) 1px, transparent 1px) 0 0 / 100% 12.5%,
    linear-gradient(90deg, rgba(232, 185, 49, .09) 1px, transparent 1px) 0 0 / 12.5% 100%,
    #07070a;
}
.scr-blocos::before { /* pilha no fundo */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 25%; z-index: 1;
  background:
    linear-gradient(90deg, var(--c) 0 46%, transparent 46%) 0 0 / 25% 50% repeat-x,
    linear-gradient(90deg, #8b8b95 0 92%, transparent 92%) 0 100% / 12.5% 50% repeat-x;
  opacity: .9;
}
.scr-blocos i { z-index: 2; top: -14%; width: 11.5%; height: 12.5%; background: var(--c); border: 2px solid rgba(0, 0, 0, .35); box-shadow: 0 0 10px rgba(232, 185, 49, .5); animation: fall 2.6s steps(8) infinite; }
.scr-blocos i:nth-child(1) { left: 12.5%; }
.scr-blocos i:nth-child(2) { left: 37.5%; animation-delay: -.9s; background: #c7c7cf; box-shadow: none; }
.scr-blocos i:nth-child(3) { left: 62.5%; animation-delay: -1.7s; }
.scr-blocos i:nth-child(4) { left: 87.5%; animation-delay: -.4s; background: #ff5c5c; box-shadow: 0 0 10px #ff5c5c; }
.scr-blocos i:nth-child(5) { left: 25%; animation-delay: -2.1s; background: #c7c7cf; box-shadow: none; }
.scr-blocos i:nth-child(6) { left: 75%; animation-delay: -1.3s; }
@keyframes fall { to { top: 75%; } }

/* estrelas (padrão) */
.scr-estrelas { background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--c) 30%, transparent), transparent 60%), #05050a; }
.scr-estrelas i:not(:nth-of-type(6)) { width: 2px; height: 2px; background: #fff; top: -5%; box-shadow: 0 0 4px #fff; animation: star 1.8s linear infinite; }
.scr-estrelas i:nth-child(1) { left: 15%; }
.scr-estrelas i:nth-child(2) { left: 35%; animation-delay: -.6s; }
.scr-estrelas i:nth-child(3) { left: 58%; animation-delay: -1.2s; }
.scr-estrelas i:nth-child(4) { left: 78%; animation-delay: -.3s; }
.scr-estrelas i:nth-child(5) { left: 90%; animation-delay: -1.5s; }
@keyframes star { to { top: 105%; } }
.scr-estrelas i:nth-of-type(6) { left: 50%; bottom: 14%; width: 16%; aspect-ratio: 1; margin-left: -8%; background: var(--c); clip-path: polygon(50% 0, 100% 100%, 50% 78%, 0 100%); animation: kart 3s ease-in-out infinite; }

/* em breve (chiado) */
.scr-embreve { background: repeating-radial-gradient(circle at 30% 40%, #202024 0 1px, #0b0b0e 1px 3px); animation: noise .25s steps(2) infinite; }
@keyframes noise { 50% { background-position: 3px -2px; } }

/* Fliperama (gabinete) ---------------------------------------------- */
.cab {
  --c: var(--gold);
  position: relative; flex: 0 0 210px; display: flex; flex-direction: column; align-items: center;
  scroll-snap-align: center; cursor: pointer;
  transition: transform .45s var(--ease), filter .45s;
  filter: brightness(.55) saturate(.6);
}
.cab.is-sel, .cab:focus-visible { filter: none; transform: translateY(-12px) scale(1.04); outline: none; }
.cab-top {
  position: relative; width: 100%; height: 60px; display: grid; place-items: center;
  background: linear-gradient(#2c2c33, #1c1c21); border: 2px solid #3d3d46; border-bottom: 0; border-radius: 16px 16px 0 0;
  box-shadow: inset 0 -6px 14px rgba(0, 0, 0, .5);
}
.cab-top::before { /* luzes da marquise */
  content: ""; position: absolute; left: 10px; right: 10px; top: 5px; height: 4px;
  background: radial-gradient(circle, var(--c) 0 1.5px, transparent 2px) 0 0 / 10px 4px repeat-x; opacity: .35;
}
.cab.is-sel .cab-top::before { opacity: 1; animation: chase .5s steps(2) infinite; }
@keyframes chase { to { background-position: 10px 0; } }
.marquee {
  font: 400 11px/1.4 var(--f-pixel); color: var(--c); text-align: center; padding: 6px 10px 0; text-transform: uppercase;
  text-shadow: 0 0 4px var(--c), 0 0 14px var(--c);
}
.cab-body {
  width: 94%; padding: 14px 14px 0; display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(90deg, #131316, #26262c 14%, #2b2b32 50%, #26262c 86%, #131316);
  border-inline: 2px solid #3d3d46;
}
.cab-screen {
  position: relative; width: 100%; aspect-ratio: 4 / 3.4; border-radius: 12px; overflow: hidden;
  border: 7px solid #0a0a0c; background: #000;
  box-shadow: 0 0 0 2px #3d3d46, inset 0 0 0 1px #333;
  transition: box-shadow .45s;
}
.cab-screen .scr { position: absolute; inset: 0; }
.cab.is-sel .cab-screen { box-shadow: 0 0 0 2px #3d3d46, 0 0 36px color-mix(in srgb, var(--c) 55%, transparent); }
.cab-panel {
  width: 116%; height: 50px; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 13px;
  background: linear-gradient(#3a3a42, #222227); border: 2px solid #474750; border-radius: 10px 10px 4px 4px;
  transform: perspective(240px) rotateX(38deg); transform-origin: top;
}
.stick { position: relative; width: 8px; height: 20px; margin-right: 10px; background: linear-gradient(90deg, #555, #888, #555); border-radius: 3px; transform-origin: bottom; }
.stick::before { content: ""; position: absolute; left: 50%; top: -9px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8, transparent 40%), var(--c); }
.cab.is-sel .stick { animation: wiggle 1.4s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -18deg; } 75% { rotate: 18deg; } }
.pbtn { width: 15px; height: 15px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8, transparent 45%), var(--b, #c7c7cf); box-shadow: 0 3px 0 rgba(0, 0, 0, .5); }
.pbtn:nth-of-type(2) { --b: var(--red); }
.pbtn:nth-of-type(3) { --b: var(--gold); }
.cab.is-sel .pbtn:nth-of-type(2) { animation: press 1.4s .3s infinite; }
@keyframes press { 0%, 60%, 100% { translate: 0 0; box-shadow: 0 3px 0 rgba(0, 0, 0, .5); } 70% { translate: 0 3px; box-shadow: none; } }
.cab-lower {
  width: 94%; height: 130px; padding-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: linear-gradient(90deg, #111114, #1f1f24 14%, #24242a 50%, #1f1f24 86%, #111114);
  border-inline: 2px solid #3d3d46;
}
.coins { display: flex; gap: 10px; }
.coins i { width: 26px; height: 34px; border-radius: 4px; background: #141417; border: 2px solid #44444c; position: relative; }
.coins i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 14px; margin-left: -1.5px; background: var(--red); box-shadow: 0 0 6px var(--red); border-radius: 2px; }
.cab.is-sel .coins i::after { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.insert { font: 400 7px var(--f-pixel); color: var(--dim); letter-spacing: .05em; }
.cab.is-sel .insert { color: var(--gold); animation: blink 1s steps(1) infinite; }
.cab-base { width: 100%; height: 16px; background: linear-gradient(#1a1a1e, #0c0c0e); border: 2px solid #3d3d46; border-radius: 0 0 6px 6px; }
.cab-shadow { width: 120%; height: 24px; margin-top: -6px; background: radial-gradient(ellipse, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%); opacity: 0; transition: opacity .45s; }
.cab.is-sel .cab-shadow { opacity: 1; }
.cab.is-soon { cursor: default; }
.cab.is-soon .marquee { color: var(--dim); text-shadow: none; }

/* Página de catálogo ------------------------------------------------ */
.cat-head { padding: 54px 0 30px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--dim); font-size: .88rem; margin-bottom: 18px; }
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-current] { color: var(--muted); }
.cat-head h1 { font: 800 clamp(2.2rem, 5.4vw, 3.8rem)/1.05 var(--f-head); letter-spacing: -.035em; }
.cat-head .lead { margin: 14px 0 0; text-align: left; }
.tabs { position: relative; display: inline-flex; gap: 4px; padding: 5px; margin-top: 28px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.tab { position: relative; z-index: 1; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .3s; display: inline-flex; gap: 8px; align-items: center; }
.tab small { font-size: .75rem; opacity: .7; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--ink); }
.tab-ind { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--gold); transition: transform .45s var(--ease), width .45s var(--ease); }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--radius); }

/* Sala de fliperamas ------------------------------------------------ */
.arcade {
  position: relative; margin-top: 10px; border-radius: 28px; overflow: hidden;
  background: radial-gradient(900px 400px at 50% 0, rgba(232, 185, 49, .12), transparent 70%), linear-gradient(#111114, #0a0a0c);
  border: 1px solid var(--line);
}
.arcade-floor {
  position: absolute; left: -50%; right: -50%; bottom: -10px; height: 46%; pointer-events: none;
  background:
    linear-gradient(rgba(232, 185, 49, .35) 2px, transparent 2px) 0 0 / 100% 46px,
    linear-gradient(90deg, rgba(232, 185, 49, .3) 2px, transparent 2px) 0 0 / 70px 100%;
  transform: perspective(380px) rotateX(64deg); transform-origin: bottom;
  mask-image: linear-gradient(transparent, #000 60%);
  animation: floor 2.2s linear infinite;
}
@keyframes floor { to { background-position: 0 46px, 0 0; } }
.arcade-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 28px 0; flex-wrap: wrap; }
.arcade-title { font: 400 clamp(.85rem, 2vw, 1.15rem)/1.4 var(--f-pixel); color: var(--gold); text-shadow: 0 0 12px rgba(232, 185, 49, .6); }
.arcade-title::after { content: "_"; animation: blink 1s steps(1) infinite; }
.arcade-tools { display: flex; gap: 10px; align-items: center; color: var(--dim); font-size: .82rem; }
.kbd { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line2); border-bottom-width: 3px; font: 600 .75rem var(--f-mono); color: var(--muted); }
.sound-btn { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line2); font-size: .8rem; color: var(--muted); }
.sound-btn[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); }
.cabinets {
  position: relative; display: flex; gap: 36px; padding: 50px max(28px, calc(50% - 560px)) 34px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; justify-content: safe center;
}
.cabinets::-webkit-scrollbar { display: none; }
.game-info {
  position: relative; margin: 0 28px 28px; padding: 26px; border-radius: 20px;
  background: rgba(20, 20, 23, .88); backdrop-filter: blur(8px); border: 1px solid var(--line2);
  display: grid; grid-template-columns: 1fr auto; gap: 20px 32px; align-items: center;
}
.game-info h2 { font: 800 clamp(1.5rem, 3vw, 2.1rem)/1.1 var(--f-head); letter-spacing: -.02em; margin: 4px 0 8px; }
.game-info p { color: var(--muted); max-width: 640px; }
.gi-ctrl { margin-top: 12px; font-size: .88rem; color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.gi-ctrl b { color: var(--gold); font-weight: 600; white-space: nowrap; }
.gi-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.game-info.swap { animation: swap .4s var(--ease); }
@keyframes swap { from { opacity: .2; transform: translateY(8px); } }

/* Página do projeto ------------------------------------------------- */
.proj { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; padding: 20px 0 70px; }
.proj-prev {
  position: relative; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line2); background: #0c0c0e; box-shadow: 0 40px 80px -40px #000;
}
.proj-prev > img { width: 100%; height: 100%; object-fit: cover; }
.proj-prev.is-game { border: 14px solid #1a1a1e; outline: 2px solid #3d3d46; border-radius: 28px; }
.proj-prev .scr { position: absolute; inset: 0; }
.proj-prev .scr-label { font-size: clamp(9px, 1.4vw, 14px); }
.proj-prev .shape { --s: 140px; }
.proj-info h1 { font: 800 clamp(2.1rem, 4.6vw, 3.4rem)/1.05 var(--f-head); letter-spacing: -.035em; margin: 14px 0 6px; }
.proj-sub { color: var(--gold); font-weight: 500; font-size: 1.08rem; }
.proj-desc { color: var(--muted); margin: 16px 0 22px; font-size: 1.04rem; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; padding: 18px 0; border-block: 1px solid var(--line); margin-bottom: 26px; font-size: .92rem; }
.meta dt { color: var(--dim); }
.meta dd { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.proj-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.prompt-sec { padding: 10px 0 80px; }
.prompt-box { border-radius: 18px; overflow: hidden; border: 1px solid var(--line2); background: #0b0b0d; }
.prompt-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.prompt-bar .dots { display: flex; gap: 6px; }
.prompt-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); }
.prompt-bar .dots i:first-child { background: var(--gold); }
.prompt-bar span { font: 500 .82rem var(--f-mono); color: var(--muted); margin-right: auto; }
.copy-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line2); font-size: .85rem; font-weight: 600; transition: .2s; }
.copy-btn:hover { border-color: var(--gold); color: var(--gold); }
.copy-btn.ok { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.prompt-box pre { margin: 0; padding: 24px 24px 26px; font: 400 .95rem/1.75 var(--f-mono); color: #d9d9de; white-space: pre-wrap; word-break: break-word; counter-reset: ln; }
.prompt-box pre .ln { display: block; padding-left: 3.2em; position: relative; }
.prompt-box pre .ln::before { counter-increment: ln; content: counter(ln); position: absolute; left: 0; width: 2em; text-align: right; color: var(--dim); }
.prompt-tip { margin-top: 14px; color: var(--dim); font-size: .88rem; }

/* Rodapé ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--dim); font-size: .88rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--gold); }

/* Transição de página (glitch suave) -------------------------------- */
.glitch { position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: 0; }
.glitch::before { /* cortina escura */
  content: ""; position: absolute; inset: 0; background: var(--bg); opacity: 0;
}
.glitch::after { /* linhas de varredura */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: repeating-linear-gradient(rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px);
}
.glitch i {
  position: absolute; left: -5%; right: -5%; top: var(--t); height: var(--h); opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(232, 185, 49, .55) 20%, rgba(0, 225, 255, .35) 55%, rgba(255, 60, 110, .3) 80%, transparent);
  mix-blend-mode: screen; transform: translateX(var(--x));
  animation: gband var(--dur, .42s) steps(4) var(--d) both;
}
@keyframes gband {
  0% { opacity: 0; }
  25% { opacity: 1; transform: translateX(calc(var(--x) * -1)); }
  50% { opacity: .4; transform: translateX(var(--x)); }
  75% { opacity: .9; transform: translateX(calc(var(--x) * .3)); }
  100% { opacity: 0; transform: none; }
}
.g-out .glitch, .g-in .glitch { opacity: 1; }
.g-out .glitch { pointer-events: auto; }
.g-out .glitch::before { animation: gfade .42s cubic-bezier(.6, 0, .9, .4) forwards; }
.g-in .glitch::before { opacity: 1; animation: gfade .45s ease-out reverse forwards; }
@keyframes gfade { from { opacity: 0; } to { opacity: 1; } }
.g-out :is(#site-header, main, #site-footer, .menu) { animation: gshift .42s steps(1) both; }
.g-in :is(#site-header, main, #site-footer, .menu) { animation: gshift .32s steps(1) reverse both; }
@keyframes gshift {
  0% { transform: none; filter: none; }
  12% { transform: translateX(-4px); filter: drop-shadow(3px 0 rgba(255, 40, 90, .5)) drop-shadow(-3px 0 rgba(0, 220, 255, .5)); }
  28% { transform: translateX(3px) skewX(-1.5deg); clip-path: inset(8% 0 24% 0); }
  40% { transform: translateX(-2px); clip-path: none; filter: drop-shadow(-4px 0 rgba(255, 40, 90, .45)) drop-shadow(4px 0 rgba(0, 220, 255, .45)); }
  58% { transform: translateX(5px); clip-path: inset(30% 0 6% 0); filter: none; }
  72% { transform: translateX(-1px); clip-path: none; filter: drop-shadow(2px 0 rgba(255, 40, 90, .4)) drop-shadow(-2px 0 rgba(0, 220, 255, .4)); }
  86%, 100% { transform: none; clip-path: none; filter: none; }
}

/* Telas com capa (imagem real do projeto) */
.scr-capa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Responsivo -------------------------------------------------------- */
@media (max-width: 960px) {
  .portals { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .portal-art { height: 210px; }
  .steps { grid-template-columns: 1fr; }
  .proj { grid-template-columns: 1fr; gap: 30px; }
  .menu-in { grid-template-columns: 1fr; gap: 30px; }
  .game-info { grid-template-columns: 1fr; }
  .gi-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .nav-inline { display: none; }
  .menu-btn { margin-left: auto; }
  .hero { padding: 56px 0 36px; }
  .how, .section { padding: 60px 0; }
  .brand small { font-size: 7px; }
  .brand-logo { height: 38px; }
  .header-in { height: 66px; gap: 12px; }
  .mi-side .mi-count { display: none; }
  .menu-item { grid-template-columns: 34px 1fr auto; }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 10px 8px; }
  .tab small { display: none; }
  .arcade-top { padding: 20px 18px 0; }
  .arcade-tools .hint { display: none; }
  .cabinets { gap: 22px; padding-top: 40px; }
  .game-info { margin: 0 14px 14px; padding: 20px; }
  .gi-actions .btn { flex: 1; }
  .prompt-box pre { padding: 18px 16px; font-size: .86rem; }
  .prompt-box pre .ln { padding-left: 2.6em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .portal { opacity: 1; translate: none; }
}

/* Fliperama na página inicial --------------------------------------- */
.hero { padding-bottom: 34px; }
.home-arcade { scroll-margin-top: 80px; padding-bottom: 80px; }
.others-head { margin-bottom: 28px; }
.portals-2 { grid-template-columns: repeat(2, 1fr); }

/* Player de jogo dentro do site ------------------------------------- */
.play-sec { padding-bottom: 20px; }
.player {
  --c: var(--gold);
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 22px; background: #000; border: 1px solid var(--line2);
  box-shadow: 0 40px 90px -40px #000, 0 0 60px -30px color-mix(in srgb, var(--c) 60%, transparent);
}
.player-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 200px); min-height: 320px; background: #050507; }
.player-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.player-poster { position: absolute; inset: 0; overflow: hidden; }
.player-poster > img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.42) saturate(1.1); transform: scale(1.04); }
.player-poster > .scr { position: absolute; inset: 0; filter: brightness(.55); }
.poster-ui {
  position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 24px; text-align: center;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .15), rgba(0, 0, 0, .7));
}
.poster-title { font: 400 clamp(14px, 2.6vw, 28px)/1.5 var(--f-pixel); color: #fff; text-shadow: 0 0 18px var(--c), 0 0 4px var(--c); max-width: 22ch; }
.play-start { font-size: clamp(.8rem, 1.6vw, 1rem); padding: 20px 28px; animation: pulse 2s ease-in-out infinite; }
.play-start[disabled] { opacity: .5; animation: none; cursor: default; }
@keyframes pulse { 50% { box-shadow: 0 6px 0 var(--gold3), 0 0 0 10px rgba(232, 185, 49, .12), 0 10px 26px -6px rgba(232, 185, 49, .6); } }
.poster-ctrl { color: var(--light2); font-size: .88rem; max-width: 620px; opacity: .85; }
.player-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: linear-gradient(#1a1a1e, #131316); border-top: 1px solid var(--line); }
.pb-title { flex: 1; text-align: center; font: 400 10px/1.4 var(--f-pixel); color: var(--c); text-shadow: 0 0 8px var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; white-space: nowrap;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: var(--text); font-size: .88rem; font-weight: 600; transition: .2s;
}
.pb-btn:hover { border-color: var(--gold); color: var(--gold); }
.pb-btn[hidden] { display: none; }
.pb-btn[disabled] { opacity: .45; pointer-events: none; }
.pb-ic { display: inline-flex; font-style: normal; }
.pb-full { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.pb-full:hover { background: var(--gold2); color: var(--ink); }
.player-tip { margin-top: 12px; color: var(--dim); font-size: .85rem; text-align: center; }
.proj-game { grid-template-columns: 1.25fr .75fr; align-items: start; padding: 34px 0 40px; }
.proj-game .meta { margin-bottom: 0; }

/* Tela cheia (nativa) e modo maximizado (quando não há tela cheia, ex. iPhone) */
.player:fullscreen, .player.is-max { width: 100vw; height: 100vh; height: 100dvh; border: 0; border-radius: 0; }
.player:-webkit-full-screen { width: 100vw; height: 100vh; border: 0; border-radius: 0; }
.player.is-max { position: fixed; inset: 0; z-index: 250; }
.player:fullscreen .player-stage, .player.is-max .player-stage { flex: 1; aspect-ratio: auto; max-height: none; min-height: 0; }
.player:-webkit-full-screen .player-stage { flex: 1; aspect-ratio: auto; max-height: none; min-height: 0; }

@media (max-width: 960px) {
  .portals-2 { grid-template-columns: 1fr; }
  .proj-game { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 720px) {
  .player-stage { aspect-ratio: auto; height: 62vh; min-height: 0; max-height: none; }
  .pb-title { display: none; }
  .player-bar { justify-content: space-between; }
  .pb-btn { padding: 9px 11px; font-size: .82rem; }
  .player-tip { display: none; }
}

/* Destaques + "Ver todos" ------------------------------------------- */
[hidden] { display: none !important; }
.more-wrap { display: flex; justify-content: center; margin-top: 30px; }
.arcade-more { position: relative; margin: -6px 0 22px; }
.ver-todos { gap: 10px; background: rgba(20, 20, 23, .85); }
.ver-todos .pill { padding: 3px 9px; font-size: .75rem; }
.vt-ic { display: inline-flex; transition: transform .3s var(--ease); }
.vt-ic.up { transform: rotate(180deg); }
.reveal { animation: reveal .5s var(--ease) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.cab.reveal { animation-name: reveal-cab; }
@keyframes reveal-cab { from { opacity: 0; translate: 0 24px; } }
.cabinets.is-all { flex-wrap: wrap; overflow: visible; justify-content: center; row-gap: 40px; scroll-snap-type: none; }

/* Título principal: caixa alta + glitch + letras recarregando ------- */
.hero .hero-title {
  font: 800 clamp(1.85rem, 5.4vw, 4.3rem)/1.08 var(--f-head); letter-spacing: -.02em; text-transform: uppercase;
  max-width: 19ch; margin: 22px auto 22px;
}
.scramble { display: inline-block; white-space: nowrap; text-align: left; color: var(--text); }
.scramble .sc-c { color: var(--gold); opacity: .85; text-shadow: 0 0 12px rgba(232, 185, 49, .7); }
.glitch-txt {
  position: relative; display: inline-block;
  background: linear-gradient(100deg, var(--gold3), var(--gold) 30%, var(--gold2) 50%, var(--gold) 70%, var(--gold3));
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite, gjit 4.8s steps(1) infinite;
}
.glitch-txt::before, .glitch-txt::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0;
  -webkit-text-fill-color: currentColor; mix-blend-mode: screen;
}
.glitch-txt::before { color: #ff2d6f; animation: gA 4.8s steps(1) infinite; }
.glitch-txt::after { color: #22d3ee; animation: gB 4.8s steps(1) infinite; }
@keyframes gjit { 0%, 6%, 52%, 55%, 100% { transform: none; } 2% { transform: translateX(2px) skewX(-6deg); } 4% { transform: translateX(-2px); } 53% { transform: translateX(-1px) skewX(4deg); } }
@keyframes gA {
  0%, 7%, 51%, 56%, 100% { opacity: 0; transform: none; clip-path: none; }
  1% { opacity: .85; transform: translate(-4px, 0); clip-path: inset(8% 0 62% 0); }
  3% { opacity: .85; transform: translate(4px, -1px); clip-path: inset(58% 0 14% 0); }
  5% { opacity: .7; transform: translate(-2px, 1px); clip-path: inset(32% 0 44% 0); }
  52% { opacity: .8; transform: translate(3px, 0); clip-path: inset(70% 0 4% 0); }
  54% { opacity: .6; transform: translate(-3px, 0); clip-path: inset(12% 0 70% 0); }
}
@keyframes gB {
  0%, 7%, 51%, 56%, 100% { opacity: 0; transform: none; clip-path: none; }
  1% { opacity: .85; transform: translate(4px, 1px); clip-path: inset(48% 0 26% 0); }
  3% { opacity: .85; transform: translate(-4px, 0); clip-path: inset(16% 0 60% 0); }
  5% { opacity: .7; transform: translate(2px, -1px); clip-path: inset(66% 0 8% 0); }
  52% { opacity: .8; transform: translate(-3px, 1px); clip-path: inset(24% 0 52% 0); }
  54% { opacity: .6; transform: translate(3px, 0); clip-path: inset(56% 0 20% 0); }
}
