/* ============ Tokens ============ */
:root {
  --bg: #07080a;
  --bg-2: #0c0e11;
  --surface: #111418;
  --line: rgba(236, 239, 233, 0.08);
  --line-2: rgba(236, 239, 233, 0.16);
  --text: #ecefe9;
  --muted: #8a918b;
  --accent: #4ade80;
  --accent-rgb: 74, 222, 128;
  --accent-ink: #04140a;

  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Geist", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

/* ============ Loader ============ */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--bg);
}
.loader__inner { width: min(420px, 100% - 2 * var(--gutter)); display: grid; gap: 14px; }
.loader__row { display: flex; justify-content: space-between; color: var(--muted); }
.loader__row span:last-child { color: var(--text); }
.loader__bar { height: 2px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--accent); }

/* ============ Cursor ============ */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: 0; transition: opacity .3s; }
.cursor.is-ready { opacity: 1; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
}
.cursor__label { font: 500 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); opacity: 0; transition: opacity .2s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(var(--accent-rgb), 0.12); }
.cursor.is-label .cursor__ring { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--text); border-color: var(--text); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (hover: hover) and (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } }

/* Film grain */
.grain {
  position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} 100%{transform:translate(0,0)} }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 95;
  padding: 12px 18px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  transform: translate(-50%, calc(100% + 40px)); visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s .5s;
  white-space: nowrap;
}
.toast.is-show { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease); }

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  transition: background .4s, backdrop-filter .4s, padding .4s var(--ease), transform .5s var(--ease);
}
.nav.is-scrolled { background: rgba(7, 8, 10, 0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 12px; border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { display: flex; align-items: center; gap: 10px; font: 800 20px/1 var(--f-display); letter-spacing: -0.02em; }
.nav__mark { width: 14px; height: 14px; background: var(--accent); clip-path: polygon(0 0, 40% 0, 40% 60%, 100% 60%, 100% 100%, 0 100%); }
.nav__links { display: flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(12, 14, 17, 0.5); backdrop-filter: blur(10px); }
.nav__links a { padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .25s, background .25s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: rgba(255,255,255,.06); }
.nav__right { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(12, 14, 17, 0.5); backdrop-filter: blur(10px); }
.lang-switch a { padding: 6px 10px; border-radius: 999px; color: var(--muted); transition: color .25s, background .25s; }
.lang-switch a[href]:hover { color: var(--text); }
.lang-switch a[aria-current] { color: var(--text); background: rgba(255,255,255,.08); }
.nav__cta { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.nav__cta .dot { background: #16a34a; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--text); }
.btn--ghost { border: 1px solid var(--line-2); background: rgba(12,14,17,.5); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ============ Hero ============ */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--gutter) clamp(28px, 6vh, 64px); }
#world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7,8,10,.7) 0%, rgba(7,8,10,0) 18%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7,8,10,.55) 22%, rgba(7,8,10,0) 50%),
    linear-gradient(90deg, rgba(7,8,10,.55) 0%, rgba(7,8,10,0) 55%);
}
.hero__meta { position: absolute; top: 92px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; color: var(--muted); pointer-events: none; }
.hero__content { position: relative; max-width: 1100px; pointer-events: none; }
.hero__content a, .hero__content button { pointer-events: auto; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(12,14,17,.55); backdrop-filter: blur(8px); color: var(--muted); margin-bottom: 26px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero__title { font: 800 clamp(52px, 10.5vw, 168px)/0.9 var(--f-display); letter-spacing: -0.045em; }
.line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.line__inner { display: inline-block; white-space: nowrap; }
.line--accent { color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.hero__lead { max-width: 560px; margin-top: 28px; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__hint { position: absolute; right: var(--gutter); bottom: clamp(28px, 6vh, 64px); display: flex; align-items: center; gap: 14px; color: var(--muted); pointer-events: none; }
.scroll-ind { width: 1px; height: 46px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-ind i { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ============ Marquee ============ */
.marquee { padding: clamp(40px, 8vw, 100px) 0; overflow: hidden; border-block: 1px solid var(--line); background: var(--bg); position: relative; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__row { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); padding-right: clamp(20px, 3vw, 44px); font: 800 clamp(44px, 8vw, 120px)/1.05 var(--f-display); letter-spacing: -0.04em; white-space: nowrap; }
.marquee__row b { color: var(--accent); font-size: 0.45em; font-weight: 400; }
.marquee__row .o { color: transparent; -webkit-text-stroke: 1.2px rgba(236,239,233,.35); }
.marquee__track--alt .marquee__row { font-size: clamp(28px, 4.5vw, 64px); color: var(--muted); }
.marquee__track--alt .marquee__row b { color: var(--line-2); }

/* ============ Sections ============ */
.section { padding: clamp(90px, 14vw, 180px) var(--gutter); max-width: 1440px; margin: 0 auto; }
.section__head { display: flex; justify-content: space-between; padding-bottom: 18px; margin-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); color: var(--muted); }
.kicker:first-child { color: var(--accent); }
.big-title { font: 800 clamp(64px, 13vw, 200px)/0.85 var(--f-display); letter-spacing: -0.05em; }
.slash { color: var(--accent); font-weight: 500; margin: 0 0.04em; }
.section__lead { max-width: 480px; margin: 22px 0 clamp(40px, 6vw, 72px); color: var(--muted); }

/* ============ About ============ */
.about__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.reveal-words { font: 700 clamp(28px, 3.6vw, 52px)/1.12 var(--f-display); letter-spacing: -0.03em; }
.reveal-words .w { opacity: .14; transition: none; }
.about__sub { margin-top: 32px; max-width: 520px; color: var(--muted); font-size: 18px; }

.player {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: linear-gradient(160deg, #13171c, #0b0d10);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d; transition: transform .25s ease-out;
  overflow: hidden;
}
.player__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--accent-rgb), .12), transparent 60%); }
.player__top { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.player__avatar { width: 64px; height: 64px; border-radius: 14px; background: #0a0c0e; border: 1px solid var(--line-2); display: grid; place-items: center; overflow: hidden; }
.player__avatar canvas { width: 44px; height: 44px; image-rendering: pixelated; }
.player__label { color: var(--muted); font-size: 11px; }
.player__name { font: 800 26px/1.1 var(--f-display); letter-spacing: -0.02em; }
.player__class { color: var(--accent); font-size: 11px; margin-top: 3px; }
.player__lvl { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(var(--accent-rgb), .4); text-align: center; line-height: 1; }
.player__lvl span { font-size: 11px; color: var(--muted); }
.player__lvl strong { font: 800 24px/1 var(--f-display); color: var(--accent); }

.xp { margin: 26px 0 22px; }
.xp__row { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.xp__bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.xp__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); }

.skills { display: grid; gap: 14px; padding: 20px 0; border-block: 1px solid var(--line); }
.skill__row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 7px; }
.skill__row span:last-child { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.skill__bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.skill__bar i { height: 8px; border-radius: 2px; background: rgba(255,255,255,.06); transition: background .3s, box-shadow .3s; }
.skill__bar i.on { background: var(--accent); }

.player__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; text-align: center; }
.player__stats strong { display: block; font: 800 30px/1 var(--f-display); letter-spacing: -0.02em; }
.player__stats span { color: var(--muted); font-size: 11px; }

/* ============ Quests ============ */
.quests { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.quest {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --tint: var(--accent-rgb);
  position: relative; grid-column: span 4; min-height: 400px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 26px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: var(--bg-2);
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .25s ease-out, border-color .3s;
  overflow: hidden; isolation: isolate;
}
.quest:hover { border-color: rgba(var(--tint), .5); }
.quest::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px circle at var(--mx) var(--my), rgba(var(--tint), .14), transparent 55%); opacity: 0; transition: opacity .3s; }
.quest:hover::before { opacity: 1; }
.quest--feature { grid-column: span 8; }
.quest__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.quest__no { color: var(--muted); }
.quest__state { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 11px; color: var(--muted); }
.quest__state.is-live { color: var(--accent); border-color: rgba(var(--accent-rgb), .4); }
.sprite { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; width: 112px; margin: 26px 0; }
.quest--feature .sprite { width: 160px; }
.sprite i { aspect-ratio: 1; border-radius: 2px; background: rgba(var(--tint), .9); transform: scale(0); transition: transform .5s var(--ease); }
.sprite i.off { background: transparent; }
.quest.is-in .sprite i { transform: scale(1); }
.quest:hover .sprite i:not(.off) { animation: blink .7s steps(2) 1; }
@keyframes blink { 50% { opacity: .3; } }
.quest h3 { font: 800 clamp(30px, 3.6vw, 52px)/1 var(--f-display); letter-spacing: -0.03em; }
.quest p { color: var(--muted); margin-top: 12px; max-width: 460px; }
.quest__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
.lang { display: inline-flex; align-items: center; gap: 8px; }
.lang i { width: 9px; height: 9px; border-radius: 50%; background: rgb(var(--tint)); }
.quest__go { color: var(--text); transition: color .2s, transform .3s var(--ease); }
.quest:hover .quest__go { color: rgb(var(--tint)); transform: translateX(4px); }
.quest--more { grid-column: span 4; border-style: dashed; background: transparent; justify-content: center; align-items: center; text-align: center; gap: 14px; min-height: 260px; }
.quest--more h3 { font-size: 30px; }
.quest--more .mono { color: var(--muted); }

/* ============ Gaming ============ */
.gaming__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.gstats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 clamp(36px, 5vw, 56px); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.gstats > div { padding: 22px 24px; border-left: 1px solid var(--line); }
.gstats > div:first-child { border-left: 0; }
.gstats dt { color: var(--muted); font-size: 11px; }
.gstats dd { margin: 8px 0 0; font: 800 clamp(30px, 3.4vw, 46px)/1 var(--f-display); letter-spacing: -0.03em; }

.glist { display: grid; gap: 14px; counter-reset: none; }
.grow {
  --g: var(--accent-rgb);
  position: relative; display: grid; grid-template-columns: 64px 1fr minmax(260px, 340px); gap: clamp(20px, 3vw, 40px); align-items: center;
  padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2);
  overflow: hidden; isolation: isolate; transition: border-color .4s;
}
.grow::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(var(--g), .08), transparent 45%); opacity: 0; transition: opacity .5s; }
.grow:hover { border-color: rgba(var(--g), .4); }
.grow:hover::after { opacity: 1; }
.grow__rank { align-self: start; font-size: 14px; color: rgb(var(--g)); }
.grow__tag { color: var(--muted); font-size: 11px; }
.grow h3 { font: 800 clamp(34px, 4.6vw, 68px)/0.95 var(--f-display); letter-spacing: -0.04em; margin: 10px 0 22px; }
.grow__stats { display: flex; flex-wrap: wrap; gap: 14px clamp(24px, 4vw, 48px); }
.grow__stats strong { display: block; font: 800 clamp(26px, 2.6vw, 36px)/1 var(--f-display); letter-spacing: -0.02em; }
.grow__stats strong small { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.grow__stats span { color: var(--muted); font-size: 11px; }
.grow__stats div:first-child strong { color: rgb(var(--g)); }
.grow__bar { height: 3px; margin-top: 24px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.grow__bar i { display: block; height: 100%; width: 0; background: rgb(var(--g)); border-radius: inherit; }

.grow__viz { position: relative; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(7, 8, 10, .6); }
.viz__head { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.viz__head span:last-child { color: rgb(var(--g)); }

/* Phasmophobia: journal */
.viz-journal__list { display: grid; gap: 7px; }
.viz-journal__list li { position: relative; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); transition: color .3s, opacity .4s; }
.viz-journal__list li::before { content: ""; width: 14px; height: 14px; flex: none; border: 1px solid var(--line-2); border-radius: 4px; transition: background .25s, border-color .25s; }
.viz-journal__list li.is-on { color: var(--text); }
.viz-journal__list li.is-on::before { background: rgb(var(--g)); border-color: rgb(var(--g)); box-shadow: inset 0 0 0 3px var(--bg-2); }
.viz-journal__list li.is-out { opacity: .3; text-decoration: line-through; }
.viz-journal__result { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.viz-journal__result span { color: var(--text); transition: color .3s; }
.viz-journal__result.is-done span { color: rgb(var(--g)); }

/* CS2: spray pattern */
.viz-spray__svg { display: block; width: 100%; height: 170px; }
.viz-spray__svg .hole { fill: rgb(var(--g)); opacity: 0; transform-box: fill-box; transform-origin: center; }
.viz-spray__svg .hole.is-hit { animation: hit .25s var(--ease) forwards; }
@keyframes hit { from { opacity: 1; transform: scale(2.2); } to { opacity: .85; transform: scale(1); } }
.viz-spray__svg .xhair { stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; }

/* Overwatch: ult charge */
.viz-ult__svg { display: block; width: 150px; height: 150px; margin: 4px auto 0; }
.viz-ult__pct { font: 800 22px/1 var(--f-display); fill: var(--text); letter-spacing: -0.02em; }
.viz-ult.is-ready .viz-ult__svg { animation: ready .6s ease-in-out 3 alternate; }
@keyframes ready { to { transform: scale(1.06); } }
.viz-ult.is-ready .viz-ult__pct { fill: rgb(var(--g)); }

.gaming__note { margin-top: 18px; color: var(--muted); font-size: 11px; }

/* ============ Contact ============ */
.contact__title { font: 800 clamp(64px, 15vw, 240px)/0.85 var(--f-display); letter-spacing: -0.055em; margin-bottom: clamp(40px, 7vw, 90px); }
.split { display: inline-block; white-space: nowrap; }
.split .ch { display: inline-block; transition: transform .4s var(--ease), color .3s; }
.split .ch:hover { transform: translateY(-0.1em) rotate(-4deg); color: var(--accent); }
.split--accent { color: transparent; -webkit-text-stroke: 2px var(--accent); }
.split--accent .ch:hover { color: var(--accent); }
.socials { border-top: 1px solid var(--line-2); padding-top: 4px; }
.social {
  position: relative; width: 100%; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px;
  padding: clamp(22px, 3vw, 36px) 8px; border-bottom: 1px solid var(--line-2); overflow: hidden; text-align: left;
  transition: color .4s var(--ease), padding .5s var(--ease);
}
.social__fill { position: absolute; inset: 0; z-index: -1; background: rgba(var(--accent-rgb), .07); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.social { isolation: isolate; }
.social:hover, .social:focus-visible { color: var(--accent); padding-inline: 28px; }
.social:hover .social__fill, .social:focus-visible .social__fill { transform: scaleY(1); transform-origin: top; }
.social__name { font: 800 clamp(36px, 6vw, 88px)/1 var(--f-display); letter-spacing: -0.04em; }
.social__handle { color: var(--muted); transition: color .3s; }
.social:hover .social__handle { color: var(--text); }
.social__arrow { font-size: 13px; }

/* ============ Footer ============ */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 28px var(--gutter); border-top: 1px solid var(--line); color: var(--muted); max-width: 1440px; margin: 0 auto; }
.footer__konami { transition: color .3s; }
.footer__konami:hover { color: var(--accent); }
.footer a:hover { color: var(--accent); }

.footer__links a + a::before { content: "·"; margin: 0 10px; color: var(--muted); }
.footer__note { width: 100%; text-transform: none; letter-spacing: 0; font-size: 12px; }

/* ============ Legal pages ============ */
.legal__nav { display: flex; justify-content: space-between; align-items: center; padding: 22px var(--gutter); max-width: 900px; margin: 0 auto; }
.legal__back { color: var(--muted); transition: color .2s; }
.legal__back:hover { color: var(--accent); }
.legal { max-width: 900px; margin: 0 auto; padding: clamp(40px, 8vw, 90px) var(--gutter) 100px; }
.legal h1 { font: 800 clamp(44px, 8vw, 96px)/0.95 var(--f-display); letter-spacing: -0.04em; margin: 14px 0 40px; overflow-wrap: break-word; hyphens: manual; }
.legal h2 { font: 700 22px/1.2 var(--f-display); margin: 44px 0 12px; }
.legal p { color: var(--muted); max-width: 68ch; margin-bottom: 14px; }
.legal__intro { color: var(--text) !important; font-size: 19px; padding: 20px 22px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg-2); }
.legal__date { margin-top: 48px; }
.legal a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.legal a:hover { color: var(--accent); }

/* ============ Cheat mode ============ */
html.cheat { animation: hue 6s linear infinite; }
@keyframes hue { to { filter: hue-rotate(360deg); } }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; }
  .player { max-width: 560px; }
  .quest, .quest--feature, .quest--more { grid-column: span 6; }
  .quest--feature { grid-column: span 12; }
  .grow { grid-template-columns: 40px 1fr; }
  .grow__viz { grid-column: 2; max-width: 420px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .hide-sm { display: none; }
  .hero__meta { top: 78px; }
  .hero__hint { display: none; }
  .hero__title { font-size: clamp(46px, 14vw, 80px); }
  .quests { grid-template-columns: 1fr; }
  .quest, .quest--feature, .quest--more { grid-column: auto; min-height: 340px; }
  .gstats { grid-template-columns: repeat(2, 1fr); }
  .gstats > div:nth-child(3) { border-left: 0; }
  .gstats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grow { grid-template-columns: 1fr; }
  .grow__viz { grid-column: auto; max-width: none; }
  .social { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .social__handle { grid-column: 1; grid-row: 2; }
  .social__arrow { grid-row: 1 / span 2; grid-column: 2; }
  .footer { flex-direction: column; align-items: flex-start; }
  .player { padding: 22px; }
}

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