/* Full-bleed studio photography; the four logo colours appear as one filament line. */
:root {
  --bg: #0f1217; --panel: #181d25; --fg: #f2f5f8; --muted: #aab4c0; --line: #2c3440; --ink: #14161a;
  --red: #f2303a; --green: #2fc43b; --yellow: #ffcb1f; --blue: #3aa5ff;
  --display: "Baloo 2", system-ui, sans-serif;
  --body: Figtree, system-ui, sans-serif;
  --gutter: clamp(18px, 6vw, 96px);
  --filament: linear-gradient(90deg, var(--red), var(--yellow) 34%, var(--green) 67%, var(--blue));
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.06rem/1.6 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.03; margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.7rem, 6.4vw, 5.6rem); letter-spacing: -.025em; }
h2 { font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -.02em; }
h3 { font-weight: 700; font-size: 1.5rem; }
p { margin: 0; max-width: 56ch; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: 4px; }

.filament { position: fixed; inset: 0 0 auto; height: 5px; z-index: 11; background: var(--filament); transform: scaleX(var(--progress, 0)); transform-origin: 0 50%; }
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 4px 16px; padding: 10px var(--gutter); background: rgb(15 18 23 / .86); backdrop-filter: blur(12px); }
.brand img { width: 104px; }
.top nav { display: flex; gap: clamp(12px, 2.6vw, 34px); font-weight: 600; }
.top nav a { text-decoration: none; padding: 6px 0; background: var(--filament) 0 100% / 0 3px no-repeat; transition: background-size .3s; }
.top nav a:hover, .top nav a[aria-current] { background-size: 100% 3px; }

.hero { position: relative; min-height: calc(100svh - 72px); display: grid; align-items: center; overflow: hidden; padding: 48px var(--gutter); }
.hero-media { position: absolute; inset: 0 0 0 26%; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; animation: orbit 18s ease-in-out infinite alternate; }
.hero-media::after { content: ""; position: absolute; inset: -2px; background: linear-gradient(90deg, var(--bg) 0, rgb(15 18 23 / .5) 24%, transparent 46%), linear-gradient(0deg, var(--bg), transparent 20%); }
@keyframes orbit { from { transform: scale(1.05) translate(-1%, 0); } to { transform: scale(1.13) translate(2%, -1%); } }
.hero-copy { position: relative; max-width: min(600px, 44vw); display: grid; gap: 22px; }
.hero-copy p { max-width: 34ch; font-size: 1.2rem; color: #dbe2ea; }
.row { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; }
.cta { display: inline-block; padding: 16px 28px; border-radius: 14px; background: var(--yellow); color: var(--ink); font-weight: 700; text-decoration: none; box-shadow: 0 5px 0 #b18700; transition: transform .16s, box-shadow .16s; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #b18700; }
.cta:active { transform: translateY(4px); box-shadow: 0 1px 0 #b18700; }
.quiet { font-weight: 700; text-underline-offset: 7px; text-decoration-thickness: 2px; text-decoration-color: var(--blue); }
.quiet:hover { color: var(--blue); }

.block { padding: clamp(56px, 8vw, 120px) var(--gutter); display: grid; gap: 26px; }
.feature { position: relative; display: grid; align-items: end; min-height: min(78svh, 760px); overflow: hidden; }
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg), transparent 26%), linear-gradient(270deg, rgb(15 18 23 / .7), transparent 46%); }
.feature div { position: relative; z-index: 1; padding: 0 var(--gutter) 72px; display: grid; gap: 14px; justify-items: end; text-align: right; margin-left: auto; max-width: min(560px, 46vw); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters button { font: 600 1rem var(--body); color: var(--fg); background: none; border: 2px solid var(--line); border-radius: 999px; padding: 10px 20px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filters button:hover { border-color: var(--muted); }
.filters button[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { display: grid; gap: 8px; align-content: start; max-width: 520px; }
.frame { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 16px; margin-bottom: 8px; background: var(--panel); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .frame img { transform: scale(1.05); }
.card p, .note, .process ol li p { color: var(--muted); }
.reals { display: grid; border-top: 1px solid var(--line); }
.real { display: grid; grid-template-columns: 1.1fr 1.3fr auto; gap: 8px 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .25s; }
.real:hover { padding-left: 14px; }
.real strong { font: 700 1.3rem/1.2 var(--display); }
.real span { color: var(--muted); }
.real em { font-style: normal; font-weight: 600; color: var(--blue); }

.process { background: #1b1e24; }
.banner { position: relative; isolation: isolate; overflow: hidden; min-height: min(86svh, 780px); display: grid; align-content: center; justify-items: center; gap: clamp(28px, 3.4vw, 44px); padding: clamp(56px, 6vw, 84px) var(--gutter); background: #0d0e12; }
.banner-photo { position: absolute; inset: 0; z-index: -2; background: url(../assets/carreteis.svg) 0 50% / cover no-repeat; }
.from-card { position: absolute; z-index: -1; background: url(../assets/cartao.webp) no-repeat; }
.pika { left: 0; top: 0; height: 100%; aspect-ratio: 272 / 690; background-size: auto 148.4%; background-position: 0 0; mask-image: linear-gradient(90deg, #000 82%, transparent), linear-gradient(0deg, transparent, #000 14%); mask-composite: intersect; }
.groot { right: clamp(0px, 4.4vw - 46px, 110px); bottom: 14%; height: min(42%, 340px); aspect-ratio: 260 / 335; background-size: 590.8% auto; background-position: 66.3% 91.9%; mask-image: radial-gradient(ellipse 54% 60% at 50% 54%, #000 78%, transparent); }
.figure { position: absolute; z-index: -1; width: auto; max-width: none; filter: drop-shadow(0 10px 18px rgb(0 0 0 / .6)); }
.warrior { right: clamp(130px, 13.5vw, 300px); bottom: 30%; height: 54%; }
.anime { right: clamp(4px, 1.8vw, 60px); bottom: 33%; height: 44%; }
.corner { position: absolute; z-index: -1; width: clamp(150px, 27vw, 430px); height: auto; }
.corner.tr { top: 0; right: 0; }
.corner.bl { bottom: 0; left: 0; }
.corner.br { bottom: 0; right: 0; }
.banner-brand { display: grid; justify-items: center; gap: 14px; }
.banner-brand img { width: min(520px, 76vw); filter: drop-shadow(0 12px 28px rgb(0 0 0 / .6)); }
.banner-brand p { padding: 8px 28px; border: 3px solid var(--yellow); border-radius: 999px; background: rgb(10 11 14 / .9); font: italic 700 clamp(1.05rem, 2.2vw, 1.6rem)/1.3 var(--display); text-align: center; }
.banner-cats { list-style: none; margin: 0; padding: 14px 0; display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 18px; background: rgb(10 11 14 / .82); }
.banner-cats li { display: grid; justify-items: center; align-content: start; gap: 8px; max-width: 12em; padding: 0 clamp(10px, 1.4vw, 34px); text-align: center; font: 700 1.1rem/1.15 var(--display); }
.banner-cats li + li { border-left: 2px solid var(--yellow); }
.banner-cats svg { width: 52px; fill: none; stroke: var(--yellow); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.process ol { list-style: none; counter-reset: s; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.process ol li { counter-increment: s; display: grid; gap: 8px; align-content: start; border-top: 4px solid var(--c); padding-top: 20px; }
.process ol li:nth-child(1) { --c: var(--red); }
.process ol li:nth-child(2) { --c: var(--yellow); }
.process ol li:nth-child(3) { --c: var(--green); }
.process ol li::before { content: counter(s); font: 800 2.4rem/1 var(--display); color: var(--c); }

.contact { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; background: radial-gradient(ellipse at 12% 46%, rgb(150 14 14 / .55), transparent 52%), #0d0e12; padding: clamp(96px, 11vw, 160px) var(--gutter); }
.contact-brand { display: grid; justify-items: center; gap: 18px; padding-right: clamp(24px, 4vw, 64px); text-align: center; }
.contact-brand img { width: min(480px, 100%); filter: drop-shadow(0 12px 28px rgb(0 0 0 / .6)); }
.contact-brand p { font: 700 1.3rem/1.25 var(--display); }
.contact-list { display: grid; justify-items: start; gap: 18px; border-left: 4px solid var(--yellow); padding-left: clamp(24px, 4vw, 64px); }
.contact-list h2 { display: flex; align-items: center; gap: 14px; padding: 8px 30px 6px 18px; margin-bottom: 6px; border-radius: 22px 14px 14px 26px; background: var(--yellow); color: var(--ink); font-style: italic; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.contact svg:not(.corner) { flex: none; width: 52px; height: 52px; fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linejoin: round; }
.line { display: flex; align-items: center; gap: 18px; width: min(430px, 100%); text-decoration: none; }
.line svg { padding: 9px; border-radius: 50%; background: #0f9f2f; color: #fff; transition: transform .2s; }
.line:hover svg { transform: rotate(-8deg) scale(1.08); }
.line span { flex: 1; min-width: 0; padding: 4px 18px 8px 0; border: solid #2fc43b; border-width: 0 3px 3px 0; border-radius: 0 0 24px 0; font: 700 clamp(1.25rem, 2.3vw, 1.75rem)/1.2 var(--display); transition: border-color .2s; }
.line b { display: block; font-size: .72em; color: var(--muted); }
.line:hover span { border-color: var(--yellow); }
.line.ig svg { border-radius: 14px; background: linear-gradient(45deg, #f7a531, #d92e7f 50%, #6a3fd0); }
.line.ig span { border-color: var(--red); }
.line.ig:hover span { border-color: var(--yellow); }
.contact-social { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; width: 100%; border-top: 3px solid var(--yellow); margin-top: 8px; padding-top: 24px; }
.contact-social .line { width: min(300px, 100%); }
.qr { width: 132px; border-radius: 14px; background: #fff; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding: 32px var(--gutter); color: var(--muted); }

.page-head { padding-block: clamp(48px, 7vw, 96px); }
.challenge { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; padding: clamp(40px, 6vw, 80px) var(--gutter); background: var(--panel); }
.challenge div { display: grid; gap: 12px; }
.picker { display: grid; gap: 20px; justify-items: start; }
.picker fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.picker legend { font-weight: 700; padding: 0 0 6px; }
.file { position: relative; padding: 14px 24px; border: 2px solid var(--fg); border-radius: 14px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.file:hover { background: var(--fg); color: var(--bg); }
.file:focus-within { outline: 3px solid var(--yellow); outline-offset: 4px; }
.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
#rom-error { color: #ff8b91; font-weight: 600; }
.tag { display: grid; gap: 16px; justify-items: start; }
.tag button.cta { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
#tag-status:empty { display: none; }
#tag-status { font-weight: 600; color: var(--yellow); }
.tag-game { display: grid; gap: 16px; justify-items: start; padding: 20px; border: 2px solid var(--yellow); border-radius: 16px; max-width: 60ch; }
.player { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; background: #0b0d11; }
.player > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 16px; }
.player button { font: 600 1rem var(--body); color: var(--fg); background: none; border: 2px solid var(--fg); border-radius: 10px; padding: 6px 14px; cursor: pointer; }
.player iframe { flex: 1; width: 100%; border: 0; }

@media (max-width: 820px) {
  .top { flex-wrap: wrap; padding-block: 8px; }
  .brand img { width: 84px; }
  .top nav { font-size: .94rem; }
  .hero { align-items: end; min-height: calc(100svh - 60px); }
  .hero-copy { max-width: none; }
  .hero-media { left: 0; }
  .hero-media::after { background: linear-gradient(0deg, var(--bg) 22%, rgb(15 18 23 / .72) 52%, transparent 82%); }
  .hero-media img { object-position: 62% 50%; }
  .cards, .process ol, .real { grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-block: 104px 120px; }
  .contact-brand { padding: 0; }
  .contact-list { border-left: 0; border-top: 4px solid var(--yellow); padding: 32px 0 0; }
  .banner { padding-block: 96px 560px; }
  .banner-photo { opacity: .35; }
  .pika { top: auto; bottom: 62px; height: 220px; aspect-ratio: 290 / 340; background-size: 529.7% auto; background-position: 0 48.2%; mask-image: linear-gradient(90deg, #000 82%, transparent), linear-gradient(0deg, transparent, #000 12%, #000 82%, transparent); }
  .groot { bottom: 64px; right: 8px; height: 205px; }
  .warrior { right: auto; left: 24px; bottom: 268px; height: 264px; }
  .anime { right: 12px; bottom: 262px; height: 270px; }
  .banner-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .banner-cats li:nth-child(3) { border-left: 0; }
  .frame { aspect-ratio: 1; }
  .feature div { justify-items: start; text-align: left; margin-left: 0; max-width: none; }
  .feature::after { background: linear-gradient(0deg, var(--bg) 8%, rgb(15 18 23 / .75) 34%, transparent 62%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
