/* ============================================================
   Aleksei Merzliakov — Game Producer landing
   Dark premium theme · gold accent · HUD/game UI motifs
   ============================================================ */

:root {
  --bg: #0a0c10;
  --bg-2: #0f1218;
  --panel: #141821;
  --panel-2: #1a1f2b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #e9ecf3;
  --muted: #9aa3b5;
  --faint: #6b7385;
  --gold: #f5d547;
  --gold-2: #ffe98a;
  --gold-dim: rgba(245, 213, 71, 0.14);
  --cyan: #45e3ff;
  --red: #ff4d5e;
  --green: #3ddc84;
  --violet: #8b7cff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --radius-s: 12px;
  --font-display: "Unbounded", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --hud-h: 64px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}
body::before {
  /* subtle grid like a dev overlay */
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: #111; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; position: relative; z-index: 1; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
section[id] { scroll-margin-top: calc(var(--hud-h) + 8px); }
.section + .section { border-top: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.eyebrow .q { color: var(--faint); letter-spacing: 0.08em; }
.h2 { font-size: clamp(28px, 4.2vw, 46px); }
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); margin-top: 18px; max-width: 62ch; }
.lead b, .lead strong { color: var(--text); font-weight: 600; }
.note { font-size: 13px; color: var(--faint); margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px; font-weight: 600; font-size: 16px;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.28); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #15130a; border-color: transparent;
  box-shadow: 0 10px 30px rgba(245, 213, 71, 0.25), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-gold:hover { box-shadow: 0 14px 38px rgba(245, 213, 71, 0.38), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-ghost { background: transparent; }
.btn .price { font-family: var(--font-mono); font-weight: 700; padding: 2px 8px; border-radius: 8px; background: rgba(0,0,0,.14); }
.btn-gold .price { background: rgba(0,0,0,.12); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-lg { padding: 18px 28px; font-size: 17px; border-radius: 16px; }

/* ---------- HUD (top bar) ---------- */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--hud-h);
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.hud .wrap { height: 100%; display: flex; align-items: center; gap: 18px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.01em; }
.logo .mono {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #15130a;
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
}
.logo .name { font-size: 15px; }
.logo .name small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 12px; border-radius: 10px; font-size: 14px; color: var(--muted);
  transition: color .15s, background .15s;
}
.nav a:hover, .nav a.active { color: var(--text); background: rgba(255,255,255,.06); }
.hud-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav + .hud-right { margin-left: 0; }
.lvl {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px;
  border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 12px; color: var(--gold);
  background: var(--gold-dim); white-space: nowrap;
}
.lvl b { font-weight: 700; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.lang button { padding: 7px 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.lang button.on { background: rgba(255,255,255,.08); color: var(--text); }
.hud .btn { padding: 9px 14px; font-size: 14px; border-radius: 11px; }
.xp { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: rgba(255,255,255,.05); }
.xp > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); box-shadow: 0 0 12px var(--gold); transition: width .12s linear; }
.burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); place-items: center; }
.burger span { display: block; width: 18px; height: 2px; background: var(--text); box-shadow: 0 -6px 0 var(--text), 0 6px 0 var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--hud-h) + clamp(48px, 8vw, 96px)); padding-bottom: clamp(64px, 8vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 90%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(700px 420px at 20% 20%, rgba(245,213,71,.14), transparent 60%),
    radial-gradient(600px 400px at 85% 30%, rgba(69,227,255,.10), transparent 60%);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.h1 { font-size: clamp(34px, 5.2vw, 62px); letter-spacing: -0.02em; }
.h1 .hl { color: var(--gold); position: relative; }
.hero .lead { margin-top: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; color: var(--muted); font-size: 14px; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.trust b { color: var(--text); font-family: var(--font-mono); font-weight: 600; }

/* Character card */
.card-wrap { position: relative; perspective: 1200px; }
.char {
  position: relative; border-radius: 26px; overflow: hidden; background: var(--panel);
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
  transform-style: preserve-3d; transition: transform .25s ease;
  will-change: transform;
}
.char .photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.char .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transform: scale(1.02); }
.char .photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,24,33,0) 45%, rgba(20,24,33,.75) 78%, var(--panel) 100%);
}
.char .tag {
  position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 11px; border-radius: 10px; background: rgba(10,12,16,.7); border: 1px solid var(--line-2);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
  backdrop-filter: blur(8px);
}
.char .tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .5; transform: scale(.8);} }
.char .lvlbadge {
  position: absolute; top: 16px; right: 16px; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #15130a; font-family: var(--font-display);
  font-weight: 800; font-size: 20px; line-height: 1; box-shadow: 0 8px 24px rgba(245,213,71,.35);
}
.char .lvlbadge small { font-size: 9px; font-weight: 700; letter-spacing: .12em; font-family: var(--font-mono); }
.char .plate { position: relative; margin-top: -72px; padding: 0 22px 22px; }
.char .plate h3 { font-size: 22px; }
.char .plate .cls { color: var(--muted); font-size: 14px; margin-top: 4px; }
.stats { margin-top: 18px; display: grid; gap: 9px; }
.stat { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13px; }
.stat .n { color: var(--muted); }
.stat .v { font-family: var(--font-mono); color: var(--gold); font-size: 12px; }
.stat .bar { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.stat .bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.card-wrap .glow { position: absolute; inset: 10% -10% -10% -10%; z-index: -1; background: radial-gradient(closest-side, rgba(245,213,71,.18), transparent); filter: blur(30px); }

/* ---------- Funnel ---------- */
.funnel-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
.funnel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.counter { font-family: var(--font-mono); color: var(--muted); font-size: 13px; }
.counter b { color: var(--text); font-size: 22px; font-weight: 700; display: inline-block; min-width: 4ch; }
.steps { display: grid; gap: 10px; }
.step { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px 12px; align-items: center; padding: 10px 12px; border-radius: 12px; cursor: pointer; transition: background .15s; position: relative; }
.step:hover, .step.on { background: rgba(255,255,255,.04); }
.step .idx { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.step .lbl { font-size: 15px; }
.step .num { font-family: var(--font-mono); font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.step .num b { color: var(--text); font-weight: 600; }
.step .drop { color: var(--red); font-size: 12px; padding: 2px 7px; border-radius: 6px; background: rgba(255,77,94,.12); }
.step .bar { grid-column: 2 / -1; height: 14px; border-radius: 7px; background: rgba(255,255,255,.06); overflow: hidden; position: relative; }
.step .bar i { display: block; height: 100%; width: 0; border-radius: 7px; background: linear-gradient(90deg, var(--cyan), #7dd3fc); transition: width .9s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 14px rgba(69,227,255,.35); }
.step.crit .bar i { background: linear-gradient(90deg, var(--red), #ff8a94); box-shadow: 0 0 14px rgba(255,77,94,.35); }
.step .tip { grid-column: 2 / -1; font-size: 14px; color: var(--muted); display: none; padding-top: 4px; border-top: 1px dashed var(--line-2); margin-top: 4px; }
.step .tip b { color: var(--red); font-weight: 600; }
.step.on .tip { display: block; }
.funnel-side h3 { font-size: 20px; margin-bottom: 14px; }
.checks { display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--muted); font-size: 15px; }
.checks li b { color: var(--text); font-weight: 600; display: block; }
.checks .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--gold-dim); color: var(--gold); font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.photo-tile { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; background: var(--panel); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile .cap { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 10px 12px; border-radius: 10px; background: rgba(10,12,16,.72); backdrop-filter: blur(8px); border: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.photo-tile .cap b { color: var(--text); }
.funnel-side .photo-tile { aspect-ratio: 4 / 3; margin-top: 22px; }
.funnel-side .photo-tile img { object-position: 50% 20%; }

/* ---------- Mini game ---------- */
.game-grid { display: grid; grid-template-columns: 420px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.phone {
  position: relative; margin-inline: auto; width: 100%; max-width: 330px; aspect-ratio: 9 / 18.5; border-radius: 40px;
  background: #0b0d12; border: 1px solid var(--line-2); box-shadow: var(--shadow), inset 0 0 0 8px #15181f;
  overflow: hidden; user-select: none;
}
.phone .notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; border-radius: 14px; background: #15181f; z-index: 3; }
.screen { position: absolute; inset: 10px; border-radius: 32px; overflow: hidden; background: linear-gradient(180deg, #1c2233, #0f131c); }
.screen .inner { position: absolute; inset: 0; padding: 54px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.hot { position: relative; cursor: pointer; transition: transform .15s, box-shadow .15s; border-radius: 10px; }
.hot:hover { box-shadow: 0 0 0 2px rgba(245,213,71,.5); }
.hot.ok { box-shadow: 0 0 0 3px var(--green), 0 0 24px rgba(61,220,132,.5) !important; }
.hot.bad { animation: shake .4s; box-shadow: 0 0 0 2px var(--red) !important; }
@keyframes shake { 0%,100% { transform: translateX(0);} 25% { transform: translateX(-5px);} 75% { transform: translateX(5px);} }
.ui-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #fff; }
.ui-text { font-size: 10.5px; line-height: 1.45; color: #b8bfd0; background: rgba(255,255,255,.05); padding: 10px; border-radius: 10px; }
.ui-btn { display: block; text-align: center; padding: 11px; border-radius: 12px; font-weight: 700; font-size: 13px; background: linear-gradient(180deg,#3ddc84,#1fa35c); color: #062b17; }
.ui-btn.gray { background: rgba(255,255,255,.1); color: #d7dbe6; }
.ui-btn.gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #15130a; }
.ui-row { display: flex; gap: 8px; }
.ui-row > * { flex: 1; }
.ui-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ui-icon { aspect-ratio: 1; border-radius: 12px; background: rgba(255,255,255,.07); display: grid; place-items: center; font-size: 20px; position: relative; }
.ui-icon .bdg { position: absolute; top: -4px; right: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--red); font-size: 9px; display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--font-mono); }
.ui-hud { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: #9aa3b5; }
.ui-hud b { color: #fff; }
.ui-field { padding: 10px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-size: 11px; color: #7f879a; }
.ui-modal { margin-top: auto; padding: 14px; border-radius: 16px; background: #222a3b; border: 1px solid rgba(255,255,255,.12); display: grid; gap: 8px; }
.ui-modal .ui-title { font-size: 14px; }
.ui-small { font-size: 10px; color: #8f98ab; text-align: center; }
.ui-energy { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #cfd5e3; }
.ui-energy i { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; }
.ui-energy i::after { content: ""; position: absolute; inset: 0; width: var(--w, 0%); background: linear-gradient(90deg, #ff4d5e, #ff8a94); }
.ui-board { flex: 1; border-radius: 14px; background: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 10px, transparent 10px 20px), rgba(255,255,255,.03); display: grid; place-items: center; color: #5b6478; font-size: 12px; min-height: 90px; }
.ui-arrow { position: absolute; font-size: 18px; color: var(--gold); animation: bob 1s infinite; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-4px);} }
.ui-victory { text-align: center; padding: 10px 0 0; }
.ui-victory .ui-title { font-size: 20px; color: var(--gold); }
.ui-stars { font-size: 18px; letter-spacing: 4px; color: var(--gold); }

.game-side .round { font-family: var(--font-mono); font-size: 12px; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }
.game-side h3 { font-size: 22px; margin-top: 8px; }
.game-side .task { color: var(--muted); margin-top: 10px; }
.score { display: flex; gap: 6px; margin-top: 16px; }
.score i { width: 28px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); }
.score i.hit { background: var(--green); box-shadow: 0 0 10px rgba(61,220,132,.6); }
.score i.miss { background: var(--red); }
.feedback { margin-top: 18px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); display: none; }
.feedback.show { display: block; animation: fadeUp .35s ease; }
.feedback .ttl { font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.feedback .ttl.ok { color: var(--green); }
.feedback .ttl.bad { color: var(--red); }
.feedback p { color: var(--muted); font-size: 15px; }
.feedback .btn { margin-top: 14px; }
.game-end { display: none; margin-top: 18px; padding: 20px; border-radius: 16px; background: linear-gradient(180deg, rgba(245,213,71,.12), rgba(245,213,71,.04)); border: 1px solid rgba(245,213,71,.35); }
.game-end.show { display: block; animation: fadeUp .4s ease; }
.game-end h4 { font-size: 20px; margin-bottom: 8px; }
.game-end p { color: var(--muted); }
.game-end .cta-row { margin-top: 16px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none;} }

/* ---------- Skills ---------- */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skill {
  position: relative; padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; min-height: 250px; transition: transform .25s ease, border-color .25s, box-shadow .25s;
  overflow: hidden;
}
.skill::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px 200px at var(--mx, 50%) var(--my, 0%), rgba(245,213,71,.12), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.skill:hover { transform: translateY(-4px); border-color: rgba(245,213,71,.35); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.skill:hover::before { opacity: 1; }
.skill .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-dim); color: var(--gold); font-size: 20px; }
.skill .ic svg { width: 22px; height: 22px; }
.skill h3 { font-size: 17px; margin-top: 4px; }
.skill p { color: var(--muted); font-size: 14.5px; flex: 1; }
.skill .proof { font-size: 12.5px; color: var(--faint); font-family: var(--font-mono); border-top: 1px dashed var(--line-2); padding-top: 10px; }
.skill .proof b { color: var(--gold); font-weight: 600; }
.skill .rank { position: absolute; top: 16px; right: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: .1em; }
.skill.main { grid-column: span 2; background: linear-gradient(135deg, rgba(245,213,71,.10), var(--panel) 60%); border-color: rgba(245,213,71,.3); }
.skill.main h3 { font-size: 22px; }
.skill.main p { font-size: 16px; color: var(--text); }

/* ---------- Bosses ---------- */
.boss-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.boss { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; }
.boss .who { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--red); text-transform: uppercase; padding-right: 120px; }
.boss h3 { font-size: 20px; margin-top: 6px; }
.boss .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.hp { margin-top: 18px; margin-bottom: 26px; }
.hp .lbls { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.hp .track { height: 16px; border-radius: 8px; background: rgba(255,255,255,.06); position: relative; overflow: visible; }
.hp .was { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 8px; background: rgba(255,77,94,.55); transition: width .8s ease; }
.hp .now { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); box-shadow: 0 0 16px rgba(245,213,71,.5); transition: width 1.4s cubic-bezier(.2,.8,.2,1) .4s; }
.hp .mark { position: absolute; top: -6px; bottom: -6px; width: 2px; background: #fff; left: 0; opacity: 0; transition: left .8s ease, opacity .3s; }
.hp .mark::after { content: attr(data-l); position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.boss .res { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; }
.boss .res .big { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--gold); line-height: 1; }
.boss .res .mult { font-family: var(--font-mono); font-size: 13px; color: var(--green); padding: 4px 8px; border-radius: 8px; background: rgba(61,220,132,.12); }
.boss .res .src { font-size: 13px; color: var(--faint); margin-left: auto; text-align: right; }
.boss.defeated::after { content: attr(data-stamp); position: absolute; right: -8px; top: 18px; transform: rotate(12deg); font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .12em; color: var(--green); border: 2px solid var(--green); padding: 4px 10px; border-radius: 8px; opacity: .9; animation: stamp .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes stamp { from { transform: rotate(12deg) scale(2.2); opacity: 0;} to { transform: rotate(12deg) scale(1); opacity: .9;} }
.boss-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.numbers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.numbers .num { padding: 18px 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.numbers .num b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--text); line-height: 1; }
.numbers .num span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.boss-photo { aspect-ratio: 16 / 10; }
.boss-photo img { object-position: 50% 30%; }

/* ---------- Offer ---------- */
.offer { background: radial-gradient(900px 500px at 80% 0%, rgba(245,213,71,.10), transparent 60%); }
.offer-grid { display: grid; grid-template-columns: 1fr 420px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.inside { display: grid; gap: 12px; margin-top: 26px; }
.inside li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.inside .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--gold-dim); color: var(--gold); font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.inside b { display: block; font-weight: 600; }
.inside span { color: var(--muted); font-size: 14.5px; }
.formats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.formats li { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 14px; color: var(--muted); }
.formats li b { color: var(--text); font-weight: 600; }
.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.howto li { padding: 16px; border-radius: 14px; border: 1px dashed var(--line-2); font-size: 14.5px; color: var(--muted); position: relative; }
.howto li i { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--gold); margin-bottom: 8px; font-style: normal; }
.howto li b { color: var(--text); font-weight: 600; display: block; margin-bottom: 4px; }
.price-card { position: sticky; top: calc(var(--hud-h) + 24px); border-radius: 26px; overflow: hidden; background: var(--panel); border: 1px solid rgba(245,213,71,.35); box-shadow: var(--shadow), 0 0 0 1px rgba(245,213,71,.1) inset; }
.price-card .ph { aspect-ratio: 4 / 3; position: relative; }
.price-card .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.price-card .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--panel) 100%); }
.price-card .body { padding: 6px 24px 24px; margin-top: -40px; position: relative; }
.price-card .pr { display: flex; align-items: baseline; gap: 10px; }
.price-card .pr b { font-family: var(--font-display); font-size: 48px; font-weight: 800; color: var(--gold); line-height: 1; }
.price-card .pr span { color: var(--muted); font-size: 15px; }
.price-card .pr .old { text-decoration: line-through; color: var(--faint); font-family: var(--font-mono); }
.price-card .pl { color: var(--muted); font-size: 14.5px; margin-top: 10px; }
.price-card .cta-row { margin-top: 18px; flex-direction: column; }
.price-card .cta-row .btn { width: 100%; }
.price-card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px; font-size: 13px; color: var(--faint); }
.price-card .meta li { display: flex; align-items: center; gap: 6px; }
.price-card .meta li::before { content: "✓"; color: var(--green); font-weight: 700; }
.coin { position: fixed; z-index: 100; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff6c2, var(--gold) 55%, #b8960f); pointer-events: none; box-shadow: 0 0 10px rgba(245,213,71,.7); }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.proj { border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s, border-color .25s; }
.proj:hover { transform: translateY(-4px); border-color: var(--line-2); }
.proj .cover { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; background: var(--c, #222); }
.proj .cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at 80% 110%, rgba(255,255,255,.18), transparent 60%), linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.35)); }
.proj .cover .em { font-size: 52px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.4)); position: relative; }
.proj .cover .genre { position: absolute; left: 14px; top: 14px; padding: 5px 9px; border-radius: 8px; background: rgba(10,12,16,.6); border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: #fff; backdrop-filter: blur(8px); }
.proj .cover .yrs { position: absolute; right: 14px; top: 14px; padding: 5px 9px; border-radius: 8px; background: rgba(10,12,16,.6); border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 11px; color: var(--gold); backdrop-filter: blur(8px); }
.proj .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.proj h3 { font-size: 19px; }
.proj .meta { color: var(--muted); font-size: 13.5px; }
.proj .meta b { color: var(--text); font-weight: 600; }
.proj p { color: var(--muted); font-size: 14.5px; flex: 1; }
.proj .res { font-size: 14px; color: var(--text); padding: 10px 12px; border-radius: 10px; background: rgba(245,213,71,.08); border: 1px solid rgba(245,213,71,.2); }
.proj .res b { color: var(--gold); font-weight: 600; }
.proj .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.proj .links a { font-size: 13px; padding: 7px 11px; border-radius: 9px; border: 1px solid var(--line-2); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.proj .links a:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.proj .links a svg { width: 13px; height: 13px; }

/* ---------- Resume ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 36px; }
.tabs button { padding: 10px 16px; border-radius: 10px; font-size: 14px; color: var(--muted); font-weight: 600; }
.tabs button.on { background: rgba(255,255,255,.08); color: var(--text); }
.tabpane { display: none; }
.tabpane.on { display: block; animation: fadeUp .3s ease; }
.cv-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.timeline { position: relative; display: grid; gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--gold), rgba(245,213,71,.1)); }
.job { position: relative; padding-left: 40px; }
.job::before { content: ""; position: absolute; left: 3px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--gold); box-shadow: 0 0 12px rgba(245,213,71,.5); }
.job .yrs { font-family: var(--font-mono); font-size: 12px; color: var(--gold); letter-spacing: .06em; }
.job h3 { font-size: 20px; margin-top: 4px; }
.job .role { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.job ul { margin-top: 10px; display: grid; gap: 6px; }
.job li { position: relative; padding-left: 16px; color: var(--muted); font-size: 15px; }
.job li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.job li b { color: var(--text); font-weight: 600; }
.side-card { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); margin-bottom: 16px; }
.side-card h4 { font-size: 15px; font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.side-card p { color: var(--muted); font-size: 14.5px; }
.side-card p b { color: var(--text); font-weight: 600; }
.side-card ul { display: grid; gap: 8px; }
.side-card li { color: var(--muted); font-size: 14.5px; }
.side-card li b { color: var(--text); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); }
.side-photo { aspect-ratio: 4 / 5; }
.side-photo img { object-position: 50% 10%; }
.dl { display: grid; gap: 8px; }
.dl .btn { width: 100%; justify-content: flex-start; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--gold); font-size: 20px; line-height: 1; flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 20px; color: var(--muted); font-size: 15.5px; max-width: 60ch; }
.faq .a b { color: var(--text); font-weight: 600; }
.faq-photo { aspect-ratio: 4 / 3; position: sticky; top: calc(var(--hud-h) + 24px); }
.faq-photo img { object-position: 50% 25%; }

/* ---------- Contact / footer ---------- */
.contact { padding-bottom: 40px; }
.contact-card { position: relative; border-radius: 30px; overflow: hidden; background: linear-gradient(135deg, rgba(245,213,71,.14), var(--panel) 50%); border: 1px solid rgba(245,213,71,.3); display: grid; grid-template-columns: 1fr 1fr; }
.contact-card .txt { padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.contact-card h2 { font-size: clamp(28px, 3.6vw, 42px); }
.contact-card .lead { margin-top: 14px; }
.contact-card .ph { position: relative; min-height: 320px; }
.contact-card .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.contact-card .ph::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--panel) 0%, transparent 35%); }
.links-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: var(--muted); font-size: 15px; }
.links-row a { display: inline-flex; align-items: center; gap: 8px; }
.links-row a:hover { color: var(--text); }
.links-row svg { width: 16px; height: 16px; color: var(--gold); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 28px 0 32px; color: var(--faint); font-size: 13px; border-top: 1px solid var(--line); margin-top: 48px; }
.foot .k { font-family: var(--font-mono); }
.foot .k kbd { padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-2); font-family: inherit; font-size: 11px; }

/* ---------- Achievements toast ---------- */
.toasts { position: fixed; left: 20px; bottom: 20px; z-index: 90; display: grid; gap: 10px; pointer-events: none; }
.toast {
  display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 14px;
  background: rgba(20,24,33,.92); border: 1px solid rgba(245,213,71,.4); box-shadow: var(--shadow), 0 0 30px rgba(245,213,71,.15);
  backdrop-filter: blur(10px); min-width: 280px; max-width: 360px;
  animation: toastIn .45s cubic-bezier(.2,.9,.2,1.2) both;
}
.toast.out { animation: toastOut .4s ease forwards; }
.toast .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(180deg, var(--gold-2), var(--gold)); font-size: 22px; }
.toast .t1 { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.toast .t2 { font-weight: 700; font-size: 15px; }
.toast .t3 { font-size: 12.5px; color: var(--muted); }
@keyframes toastIn { from { opacity: 0; transform: translateX(-24px) scale(.96);} to { opacity: 1; transform: none;} }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px);} }
.levelup { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; pointer-events: none; }
.levelup span { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 6vw, 64px); color: var(--gold); text-shadow: 0 0 40px rgba(245,213,71,.6); animation: lvlPop 1.1s cubic-bezier(.2,.9,.2,1) both; letter-spacing: .04em; }
@keyframes lvlPop { 0% { opacity: 0; transform: scale(.6);} 25% { opacity: 1; transform: scale(1.05);} 70% { opacity: 1; transform: scale(1);} 100% { opacity: 0; transform: scale(1.1) translateY(-20px);} }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: grid; place-items: center; transition: opacity .5s ease, visibility .5s; }
.loader.hide { opacity: 0; visibility: hidden; }
.loader .box { width: min(520px, 86vw); text-align: center; }
.loader .mono { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 22px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #15130a; font-family: var(--font-display); font-weight: 800; font-size: 22px; animation: float 1.6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-6px);} }
.loader .ttl { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.loader .tip { margin-top: 14px; font-size: 16px; color: var(--text); min-height: 48px; }
.loader .tip b { color: var(--gold); }
.loader .bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); margin-top: 22px; overflow: hidden; }
.loader .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); animation: load 1.1s cubic-bezier(.3,.7,.3,1) forwards; }
@keyframes load { to { width: 100%; } }
.loader .skip { margin-top: 18px; font-size: 12px; color: var(--faint); }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }

/* ---------- Konami / god mode ---------- */
body.god { --gold: #45e3ff; --gold-2: #b5f3ff; --gold-dim: rgba(69,227,255,.14); }
body.god .hud::after { content: "GOD MODE"; position: absolute; left: 50%; top: 100%; transform: translate(-50%, 6px); font-family: var(--font-mono); font-size: 10px; letter-spacing: .3em; color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .skills { grid-template-columns: repeat(2, 1fr); }
  .skill.main { grid-column: span 2; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .boss-grid { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: 360px 1fr; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .card-wrap { max-width: 440px; }
  .funnel-grid, .offer-grid, .cv-grid, .faq-grid, .boss-bottom { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: 1fr; }
  .price-card, .faq-photo { position: static; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-card .ph { min-height: 300px; order: -1; }
  .contact-card .ph::before { background: linear-gradient(0deg, var(--panel) 0%, transparent 40%); }
  .howto { grid-template-columns: 1fr; }
  .hud .lvl span { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hud .btn .price-lbl { display: none; }
  .logo .name small { display: none; }
  .skills { grid-template-columns: 1fr; }
  .skill.main { grid-column: span 1; }
  .skill { min-height: 0; }
  .projects { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 20px 1fr; }
  .step .num { grid-column: 1 / -1; justify-content: space-between; }
  .step .bar, .step .tip { grid-column: 1 / -1; }
  .toasts { left: 12px; right: 12px; bottom: 12px; }
  .toast { min-width: 0; max-width: none; }
  .cta-row .btn { width: 100%; }
  .h1 .hl { white-space: normal; }
  .trust { gap: 8px 16px; }
  .char .plate { padding: 0 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Narrow-screen fixes ---------- */
.hero .wrap > *, .funnel-grid > *, .game-grid > *, .offer-grid > *, .cv-grid > *, .faq-grid > *, .boss-bottom > *, .contact-card > * { min-width: 0; }
@media (max-width: 640px) {
  .btn { white-space: normal; text-align: center; }
  .hud .btn { white-space: nowrap; }
  .logo .name { display: none; }
  .hud .wrap { gap: 10px; }
  .lvl { padding: 6px 8px; }
  .eyebrow { white-space: normal; }
}
@media (max-width: 400px) {
  .lang button { padding: 7px 8px; }
  .hud .lvl { display: none; }
}

/* ---------- Overflow guards ---------- */
html, body { overflow-x: hidden; overflow-x: clip; }
.numbers { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.numbers .num b { font-size: clamp(24px, 6vw, 30px); overflow-wrap: anywhere; }
.boss .res { flex-wrap: wrap; }
.boss .res .src { flex-basis: 100%; margin-left: 0; text-align: left; }
@media (min-width: 420px) { .boss .res .src { flex-basis: auto; margin-left: auto; text-align: right; } }
.step .lbl, .checks li, .inside span, .proj p, .job li { overflow-wrap: anywhere; }

/* ============================================================
   v2 additions: symptoms, funnel guess/simulator, method & loot,
   bonus boss, filters, offer blocks, quiz, about, resume header,
   x-ray notes, sticky CTA, easter egg, print, plain mode
   ============================================================ */
.micro { color: var(--faint); font-size: 13.5px; margin-top: 14px; max-width: 60ch; }
.center { text-align: center; max-width: none; margin-top: 22px; }
.sub-h { font-size: 18px; margin-top: 30px; margin-bottom: 12px; }
.ctx { color: var(--faint); font-size: 14px; margin-top: 14px; max-width: 70ch; }

/* stats strip (hero) */
.strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.strip li { position: relative; }
.strip button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-family: var(--font-mono); font-size: 13px; color: var(--text); cursor: help; transition: border-color .15s, background .15s; }
.strip button:hover, .strip button[aria-expanded="true"] { border-color: rgba(245,213,71,.5); background: var(--gold-dim); }
.strip button b { color: var(--gold); font-weight: 700; }
.strip .tip { display: none; position: absolute; left: 0; top: calc(100% + 8px); z-index: 5; width: min(320px, 80vw); padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 13.5px; color: var(--muted); }
.strip li.open .tip { display: block; animation: fadeUp .2s ease; }

/* symptoms */
.pain-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.pain-list { display: grid; gap: 12px; margin-top: 26px; }
.pain-list li { position: relative; padding: 14px 16px 14px 46px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 15.5px; }
.pain-list li::before { content: "\2715"; position: absolute; left: 16px; top: 13px; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--red); background: rgba(255,77,94,.12); }
.pain-list li b { color: var(--text); font-weight: 600; }
.takeaway { margin-top: 24px; padding: 18px 20px; border-radius: 14px; border-left: 3px solid var(--gold); background: var(--gold-dim); font-size: 16.5px; color: var(--text); }
.takeaway b { color: var(--gold); }
.pain-photo { aspect-ratio: 4 / 3; }
.pain-photo img { object-position: 50% 25%; }

/* funnel guess mode */
.guess-hint { color: var(--gold); font-size: 14px; max-width: 48ch; margin: 0; }
.step.main .drop { background: rgba(255,77,94,.22); font-weight: 700; }
.step.pay .drop { color: var(--muted); background: rgba(255,255,255,.08); }
.step .num b.hid { color: var(--faint); }
.step.picked { outline: 2px solid var(--gold); outline-offset: -2px; }
.react { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); margin-bottom: 22px; }
.react-photo { aspect-ratio: 1; }
.react-photo img { object-position: 50% 15%; }
.react-txt { color: var(--muted); font-size: 15px; }
.react-txt b { color: var(--text); }
.react.hit { border-color: rgba(61,220,132,.4); }
.react.hit .react-txt b { color: var(--green); }
.react.miss .react-txt b { color: var(--gold); }
.side-h { font-size: 18px; margin-bottom: 12px; }

/* simulator */
.sim { margin-top: 22px; padding: clamp(18px, 3vw, 28px); border-radius: var(--radius); background: var(--panel); border: 1px solid rgba(245,213,71,.3); }
.sim[hidden] { display: none; }
.sim-head h3 { font-size: 20px; }
.sim-head p { color: var(--muted); margin-top: 8px; max-width: 70ch; }
.sim-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(20px, 3vw, 40px); margin-top: 22px; align-items: start; }
.sliders { display: grid; gap: 12px; }
.sl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.sl label { font-size: 14px; }
.sl label small { display: block; color: var(--faint); font-size: 12px; }
.sl .v { font-family: var(--font-mono); font-size: 13px; color: var(--gold); min-width: 5ch; text-align: right; }
.sl .v small { color: var(--faint); }
.sl input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--gold); height: 28px; cursor: pointer; margin: 0; }
.sl .ref { grid-column: 1 / -1; font-size: 12px; color: var(--faint); }
.sim-out { position: sticky; top: calc(var(--hud-h) + 20px); }
.sim-res { padding: 18px 20px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2); }
.sim-res .big { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--text); line-height: 1.1; }
.sim-res .big b { color: var(--gold); }
.sim-res .row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.sim-res .row b { color: var(--text); }
.sim-res .narrow { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 15px; }
.sim-res .narrow b { color: var(--red); }
.sim-out .btn { margin-top: 16px; width: 100%; }

/* method */
.method-grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.method-photo { aspect-ratio: 4 / 5; position: sticky; top: calc(var(--hud-h) + 24px); }
.method-photo img { object-position: 50% 15%; }
.method-steps { display: grid; gap: 12px; }
.method-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.method-steps li i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-dim); color: var(--gold); font-family: var(--font-mono); font-weight: 700; font-size: 13px; font-style: normal; }
.method-steps li b { display: block; font-weight: 700; font-size: 16.5px; margin-bottom: 6px; }
.method-steps li p { color: var(--muted); font-size: 15px; }
.result-box { margin-top: 16px; padding: 20px 22px; border-radius: 14px; background: linear-gradient(135deg, rgba(245,213,71,.12), var(--panel) 70%); border: 1px solid rgba(245,213,71,.3); }
.result-box h3 { font-size: 18px; margin-bottom: 8px; }
.result-box p { color: var(--muted); font-size: 15px; }
.chest-wrap { margin-top: 28px; border-radius: var(--radius); border: 1px solid rgba(245,213,71,.35); background: var(--panel); overflow: hidden; }
.chest { width: 100%; display: grid; grid-template-columns: 56px 1fr 24px; gap: 16px; align-items: center; padding: 18px 20px; text-align: left; }
.chest:hover { background: rgba(255,255,255,.03); }
.chest-ic { font-size: 34px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--gold-dim); transition: transform .3s; }
.chest:hover .chest-ic { transform: rotate(-8deg) scale(1.08); }
.chest[aria-expanded="true"] .chest-ic { animation: chestPop .5s cubic-bezier(.2,.9,.2,1.2); }
@keyframes chestPop { 0% { transform: scale(1);} 40% { transform: scale(1.3) rotate(-10deg);} 100% { transform: scale(1);} }
.chest-txt { display: grid; gap: 4px; }
.chest-txt b { font-size: 17px; }
.chest-txt span { color: var(--muted); font-size: 14px; }
.chest-arrow { color: var(--gold); font-size: 18px; transition: transform .3s; }
.chest[aria-expanded="true"] .chest-arrow { transform: rotate(180deg); }
.loot { padding: 0 20px 20px; animation: fadeUp .35s ease; }
.loot[hidden] { display: none; }
.loot-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.loot-list li { padding: 14px 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; color: var(--muted); display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.loot-list li i { font-family: var(--font-mono); font-size: 12px; color: var(--gold); font-style: normal; font-weight: 700; }
.loot-list li b { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.loot-list li em { display: block; font-style: normal; color: var(--faint); margin-top: 4px; }
.loot-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.loot-foot .note { margin: 0; }

/* bosses v2 */
.boss-grid { grid-template-columns: repeat(4, 1fr); }
.boss .how { margin-top: 14px; font-size: 13.5px; color: var(--muted); padding-top: 12px; border-top: 1px dashed var(--line-2); }
.boss .how b { color: var(--text); font-weight: 600; }
.boss.bonus .who { color: var(--gold); }
.boss.bonus .hp .now { background: linear-gradient(90deg, var(--green), #8ff0b8); box-shadow: 0 0 16px rgba(61,220,132,.5); }
.boss.defeated::after { color: var(--gold); border-color: var(--gold); }
.boss.bonus.defeated::after { color: var(--green); border-color: var(--green); }
.boss-bottom { grid-template-columns: 1fr 1fr; align-items: center; }
.boss-cap { color: var(--muted); font-size: 15.5px; padding: 20px 22px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.dmg { position: absolute; right: 18px; top: 46%; font-family: var(--font-display); font-weight: 800; color: var(--red); font-size: 22px; opacity: 0; pointer-events: none; }
.boss.bonus .dmg { color: var(--green); }
.dmg.go { animation: dmg 1.4s ease-out forwards; }
@keyframes dmg { 0% { opacity: 0; transform: translateY(10px);} 20% { opacity: 1;} 100% { opacity: 0; transform: translateY(-44px);} }

/* projects v2 */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filters button { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 14px; color: var(--muted); }
.filters button[aria-pressed="true"] { background: var(--gold-dim); border-color: rgba(245,213,71,.5); color: var(--text); }
.proj[hidden] { display: none; }
.proj .rolelbl { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--gold); }
.proj .rolelbl::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.proj .plat { color: var(--faint); font-size: 12.5px; }

/* offer v2 */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.two .box { padding: 18px 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.two .box .sub-h { margin-top: 0; }
.two .box p { color: var(--muted); font-size: 15px; }
.why { margin-top: 22px; padding: 20px 22px; border-radius: 14px; border-left: 3px solid var(--gold); background: var(--gold-dim); }
.why .sub-h { margin-top: 0; }
.why p { color: var(--text); font-size: 15.5px; }
.send { display: grid; gap: 8px; }
.send li { position: relative; padding-left: 26px; color: var(--muted); font-size: 15px; }
.send li::before { content: "\2192"; position: absolute; left: 0; color: var(--gold); font-family: var(--font-mono); }
.sample { display: grid; gap: 8px; }
.sample li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.sample li .p { font-family: var(--font-mono); font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 6px; text-align: center; }
.sample li .p0 { color: #15130a; background: var(--red); }
.sample li .p1 { color: #15130a; background: var(--gold); }
.sample li .p2 { color: var(--text); background: rgba(255,255,255,.12); }
.sample li .px { color: var(--muted); background: rgba(255,255,255,.06); }
.sample li b { color: var(--text); font-weight: 600; }
.sample li .when { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-card .cta-row .row2 .btn { width: 100%; padding: 12px 10px; font-size: 14px; }
.price-card .micro { margin-top: 12px; }

/* quiz */
.quiz { margin-top: 36px; padding: clamp(18px, 3vw, 28px); border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.quiz-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.quiz-head h3 { font-size: 19px; max-width: 60ch; }
.quiz-body[hidden], .quiz-res[hidden] { display: none; }
.quiz-body { margin-top: 20px; }
.quiz-prog { font-family: var(--font-mono); font-size: 12px; color: var(--gold); letter-spacing: .1em; }
.quiz-q { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-top: 8px; }
.quiz-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.quiz-opts button { padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 15px; color: var(--text); background: var(--bg-2); transition: border-color .15s, background .15s; }
.quiz-opts button:hover { border-color: rgba(245,213,71,.5); }
.quiz-opts button[aria-checked="true"] { background: var(--gold-dim); border-color: var(--gold); }
.quiz-nav { margin-top: 14px; }
.quiz-res { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.quiz-zone { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.quiz-res > p:not(.note) { font-size: 17px; margin-top: 8px; max-width: 70ch; }
.quiz-res .cta-row { margin-top: 16px; }

/* faq */
.faq .a p + p { margin-top: 8px; }

/* about */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.about-photo { aspect-ratio: 4 / 5; }
.about-photo img { object-position: 50% 10%; }
.about-txt { margin-top: 20px; display: grid; gap: 14px; color: var(--muted); font-size: 16.5px; }
.about-txt p b { color: var(--text); font-weight: 600; }
.about-txt .loc { color: var(--faint); font-size: 14px; }

/* resume head */
.cv-head { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); margin-bottom: 28px; }
.cv-ava { width: 96px; height: 96px; border-radius: 20px; object-fit: cover; object-position: 50% 20%; }
.cv-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.cv-name-en { color: var(--faint); font-weight: 500; font-size: 14px; font-family: var(--font-body); }
.cv-line { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.cv-contacts { font-family: var(--font-mono); font-size: 12.5px; color: var(--faint); margin-top: 6px; }
.cv-contacts a:hover { color: var(--gold); }
.cv-sum { color: var(--muted); font-size: 15px; margin-top: 12px; }
.switch { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); cursor: pointer; margin-top: 14px; }
.switch input { width: 18px; height: 18px; accent-color: var(--gold); margin: 0; }

/* x-ray notes */
.xray-note { display: none; }
html.xray .xray-note { display: block; position: absolute; right: var(--gutter); top: 28px; z-index: 6; width: min(300px, 70vw); padding: 14px 16px; border-radius: 6px; background: #f6df7a; color: #1a1708; font-size: 13px; line-height: 1.45; transform: rotate(1.5deg); box-shadow: 0 14px 34px rgba(0,0,0,.45); }
html.xray .xray-note .xt { display: block; font-weight: 700; margin-bottom: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
html.xray .xray-note .xr { display: grid; gap: 6px; }
html.xray .xray-note .xr b { font-weight: 700; }
html.xray .xray-note small { display: block; margin-top: 8px; color: #5b5320; font-size: 11.5px; border-top: 1px dashed #c9b64a; padding-top: 6px; }
.section { position: relative; }

/* sticky CTA (mobile) */
.sticky-cta { display: none; }

/* easter egg */
.egg { position: fixed; inset: 0; z-index: 150; background: rgba(5,6,9,.78); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 20px; }
.egg[hidden] { display: none; }
.egg-card { position: relative; width: min(520px, 100%); border-radius: 24px; overflow: hidden; background: var(--panel); border: 1px solid rgba(245,213,71,.4); box-shadow: var(--shadow); animation: fadeUp .35s ease; }
.egg-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 25%; }
.egg-body { padding: 20px 22px 24px; }
.egg-body .t1 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.egg-body h3 { font-size: 20px; margin-top: 6px; }
.egg-body p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.egg-body .btn { margin-top: 16px; }
.egg-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 10px; background: rgba(10,12,16,.7); border: 1px solid var(--line-2); font-size: 20px; line-height: 1; z-index: 2; }

/* plain (resume) mode */
html.plain .xp, html.plain .lvl, html.plain .toasts, html.plain .levelup, html.plain .rank, html.plain .lvlbadge, html.plain .sticky-cta { display: none !important; }

/* level-up label (small) */
.levelup { align-items: start; padding-top: calc(var(--hud-h) + 14px); }
.levelup span.small { font-size: 13px; font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); text-shadow: none; padding: 8px 14px; border-radius: 10px; background: rgba(10,12,16,.85); border: 1px solid rgba(245,213,71,.4); animation: lvlSmall 1.6s ease both; }
@keyframes lvlSmall { 0% { opacity: 0; transform: translateY(-10px);} 15% { opacity: 1; transform: none;} 80% { opacity: 1;} 100% { opacity: 0; transform: translateY(-10px);} }

/* responsive v2 */
@media (max-width: 1100px) {
  .boss-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .pain-grid, .sim-grid, .method-grid, .about-grid, .boss-bottom { grid-template-columns: 1fr; }
  .pain-photo { order: -1; aspect-ratio: 16 / 9; max-height: 260px; }
  .method-photo { position: static; aspect-ratio: 16 / 9; max-height: 280px; }
  .method-photo img { object-position: 50% 20%; }
  .about-photo { aspect-ratio: 16 / 10; max-height: 320px; }
  .sim-out { position: static; }
  .loot-list { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  html.xray .xray-note { position: static; width: auto; transform: none; margin: 0 var(--gutter) 18px; }
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(10,12,16,.9); backdrop-filter: blur(12px); border-top: 1px solid var(--line-2); transform: translateY(110%); transition: transform .3s ease; }
  .sticky-cta.show { transform: none; }
  .sc-txt { display: grid; line-height: 1.2; }
  .sc-txt b { font-size: 15px; }
  .sc-txt span { font-size: 12px; color: var(--muted); }
  .sticky-cta .btn { padding: 10px 16px; white-space: nowrap; }
  .toasts { bottom: 84px; }
  body.has-sticky { padding-bottom: 72px; }
}
@media (max-width: 640px) {
  .boss-grid { grid-template-columns: 1fr; }
  .react { grid-template-columns: 84px 1fr; }
  .sample li { grid-template-columns: 44px 1fr; }
  .sample li .when { grid-column: 2; white-space: normal; }
  .cv-head { grid-template-columns: 1fr; }
  .quiz-head .btn { width: 100%; }
  .strip button { font-size: 12px; padding: 7px 10px; }
  .foot-right { display: grid; gap: 8px; }
}

/* print */
@media print {
  .hud, .loader, .toasts, .levelup, .sticky-cta, .egg, .xray-note, #hero, #pain, #funnel, #game, #method, #skills, #cases, #projects, #offer, #faq, #about .about-photo, .tabs, .side-card .dl, .switch, .photo-tile, .glow, body::before { display: none !important; }
  body { background: #fff; color: #111; font-size: 12pt; }
  .section { padding: 12pt 0; border: 0; }
  .tabpane { display: block !important; }
  .cv-head, .side-card, .job, .contact-card { background: none; border: 0; box-shadow: none; color: #111; }
  .job li, .job .role, .cv-line, .cv-sum, .side-card li, .side-card p { color: #333; }
  .job .yrs, .side-card h4 { color: #000; }
  .job::before { border-color: #000; box-shadow: none; }
  .timeline::before { background: #999; }
  .contact-card .ph { display: none; }
  .contact-card .txt .btn { display: none; }
  a { color: #000; text-decoration: none; }
  .h2, .eyebrow { color: #000; }
}

/* ============================================================
   v3: review fixes (HUD mobile, burger, contrast, a11y, misc)
   ============================================================ */
:root { --faint: #8a93a6; }
.char .plate .name { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.12; }
.hud .wrap { justify-content: space-between; }
.nav { margin-left: auto; margin-right: 0; }
.nav + .hud-right { margin-left: 0; }
.hud .lvl { cursor: default; }
.burger { display: none; }
.worked { margin-top: 14px; font-size: 13.5px; color: var(--faint); }
.worked span { color: var(--muted); }
.badge-ill { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); padding: 5px 9px; border-radius: 8px; background: var(--gold-dim); border: 1px solid rgba(245,213,71,.25); white-space: nowrap; }
.funnel-top { margin-bottom: 12px; }
.guess-hint { margin: 0 0 16px; }
.funnel-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.funnel-foot .note { margin: 0; flex: 1 1 320px; color: var(--muted); }
.steps { list-style: none; counter-reset: none; }
.step { grid-template-columns: 26px 1fr auto; }
.step-btn { display: contents; }
.step .lbl { text-align: left; }
.step .lbl.btn-reset { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.step.pay .lbl::after { content: " 💳"; font-size: 12px; }
.mini-offer { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 18px 22px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(245,213,71,.14), var(--panel) 65%); border: 1px solid rgba(245,213,71,.35); }
.mo-txt { display: grid; gap: 4px; }
.mo-txt b { font-family: var(--font-display); font-size: 20px; }
.mo-txt span { color: var(--muted); font-size: 14px; }
.cta-line { display: inline-block; margin-top: 14px; color: var(--gold); font-weight: 600; border-bottom: 1px dashed rgba(245,213,71,.5); }
.cta-line:hover { border-bottom-style: solid; }
.game-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "head head" "phone side"; align-items: start; }
.game-grid > .game-head { grid-area: head; }
.game-grid > .game-head .round { font-family: var(--font-mono); font-size: 12px; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }
.game-grid > .game-head h3 { font-size: 22px; margin-top: 8px; }
.game-grid > .game-head .task { color: var(--muted); margin-top: 8px; max-width: 70ch; }
.game-grid > .game-head .score { margin-top: 14px; }
.game-grid > .rv:nth-child(2) { grid-area: phone; }
.game-grid > .game-side { grid-area: side; }
.game-side .feedback, .game-side .game-end { margin-top: 0; }
.feedback.idle { display: block; color: var(--muted); font-size: 15px; }
.feedback .btn { margin-top: 14px; }
.game-end { margin-top: 16px; }
#phone, #feedback, #sim, #quiz { scroll-margin-top: calc(var(--hud-h) + 12px); }
.hot { outline-offset: 2px; }
.hot:focus-visible { box-shadow: 0 0 0 2px var(--gold); }
.hot::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 1px dashed rgba(245,213,71,.35); pointer-events: none; opacity: .9; }
.hot.ok::after, .hot.bad::after, .screen.locked .hot::after { display: none; }
.ui-text { font-size: 11.5px; }
.ui-small { font-size: 11px; }
.ui-field { color: #98a1b5; }
.ui-board { color: #7f8aa3; }
.ui-hud { font-size: 11px; }
.boss h3 { padding-right: 96px; }
.boss .who { padding-right: 96px; }
.hp .mark[data-edge="l"]::after { left: 0; transform: translateX(-6px); }
.proj .links:empty { display: none; }
.more-skills { display: none; margin: 16px auto 0; }
.sc-h { font-size: 15px; font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.quiz-sub { color: var(--muted); margin-top: 6px; }
.foot-wrap { position: relative; z-index: 1; }
.foot { margin-top: 0; }
.foot-tip { color: var(--faint); font-size: 13px; padding: 0 0 28px; }
.foot-tip b { color: var(--muted); }
.lang button { min-height: 36px; min-width: 40px; }
.filters button, .quiz-opts button { min-height: 40px; }
.proj .links a { min-height: 36px; }
.links-row a { min-height: 40px; }
.hud, .photo-tile .cap, .toast, .sticky-cta, .egg, .char .tag { -webkit-backdrop-filter: blur(12px); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .hud { background: rgba(10,12,16,.97); } .photo-tile .cap, .toast { background: rgba(14,17,24,.97); } }
html.no-js .rv { opacity: 1; transform: none; }
.hud.open .nav { display: flex; flex-direction: column; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 8px); padding: 10px; border-radius: 14px; background: rgba(14,17,24,.98); border: 1px solid var(--line-2); box-shadow: var(--shadow); margin: 0; }
.hud.open .nav a { padding: 12px 14px; font-size: 16px; color: var(--text); }
@media (prefers-reduced-motion: reduce) { .char .tag i, .ui-arrow, .loader .mono { animation: none !important; } }
@media (max-width: 1140px) and (min-width: 901px) {
  .nav a { padding: 8px 9px; font-size: 13px; }
  .hud .btn .price-lbl { display: none; }
  .logo .name small { display: none; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .nav + .hud-right { margin-left: auto; }
  .burger { display: grid; place-items: center; }
  .hud .lvl { display: none; }
  .game-grid { grid-template-columns: 1fr; grid-template-areas: "head" "phone" "side"; }
  .more-skills { display: inline-flex; }
  .skills .skill.extra[hidden] { display: none; }
  .contact-card .ph { aspect-ratio: 16 / 9; min-height: 0; }
  .price-card .ph { aspect-ratio: 16 / 9; }
  .price-card .ph img { object-position: 50% 20%; }
}
@media (max-width: 640px) {
  .hud .btn { font-size: 13px; padding: 9px 12px; }
  .hud .btn .price-lbl { display: inline; }
  .boss h3, .boss .who { padding-right: 90px; }
  .photo-tile .cap { position: static; margin: 0; border-radius: 0; border: 0; border-top: 1px solid var(--line); background: var(--panel); }
  .photo-tile { display: flex; flex-direction: column; }
  .photo-tile img { flex: 1; min-height: 0; }
  .pain-photo, .boss-photo, .faq-photo { aspect-ratio: auto; }
  .pain-photo img, .boss-photo img, .faq-photo img { aspect-ratio: 16 / 9; }
  .funnel-side .photo-tile { aspect-ratio: auto; }
}
.proj .cover .genre { max-width: calc(100% - 118px); white-space: normal; line-height: 1.3; }
.feedback.idle p { color: var(--muted); }
@media (max-width: 640px) {
  .badge-ill { white-space: normal; line-height: 1.3; }
  .funnel-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px) {
  .hud .btn .price-lbl { display: none; }
  .hud .wrap { gap: 8px; }
  .hud-right { gap: 6px; }
}
@media (max-width: 640px) {
  .sl .v small { display: block; text-align: right; }
  .sl label small { max-width: 22ch; }
}

.contacts-h { margin-top: 26px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.links-row { margin-top: 10px; }


/* ---------- round 2 fixes ---------- */
.game-side .game-end { margin-top: 16px; }
.react { display: block; }
.react-photo { aspect-ratio: 16 / 9; margin-bottom: 12px; }
.react-photo img { object-position: 50% 15%; }
.method-when { font-family: var(--font-mono); font-size: 12.5px; color: var(--gold); margin-bottom: 14px; padding: 10px 14px; border-radius: 10px; background: var(--gold-dim); border: 1px solid rgba(245,213,71,.25); display: inline-block; }
.method-grid { display: block; position: relative; }
.method-photo { position: absolute; left: 0; top: 0; bottom: 0; width: 46%; aspect-ratio: auto; max-height: none; border: 0; border-radius: var(--radius); overflow: hidden; background: transparent; -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 100%); mask-image: linear-gradient(90deg, #000 30%, transparent 100%); }
.method-photo img { object-position: 50% 12%; opacity: .85; }
.method-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(180deg, transparent, var(--bg)); }
.method-grid > .rv:last-child { position: relative; margin-left: 32%; }
.method-steps li, .result-box { background: rgba(20,24,33,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.skill.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr minmax(280px, 420px); grid-template-areas: "ic cert" "h cert" "p cert" "proof cert"; gap: 8px 28px; align-items: start; }
.skill.wide .ic { grid-area: ic; } .skill.wide h3 { grid-area: h; font-size: 22px; } .skill.wide p { grid-area: p; font-size: 16px; color: var(--text); } .skill.wide .proof { grid-area: proof; } .skill.wide .cert { grid-area: cert; align-self: center; }
.skill .cert { width: 100%; border-radius: 12px; border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.foot .k kbd { margin-left: 2px; }
@media (max-width: 900px) {
  .method-grid { display: grid; }
  .method-photo { position: static; width: auto; aspect-ratio: 16 / 9; max-height: 280px; -webkit-mask-image: none; mask-image: none; border: 1px solid var(--line); }
  .method-photo::after { display: none; }
  .method-photo img { opacity: 1; object-position: 50% 20%; }
  .method-grid > .rv:last-child { margin-left: 0; }
  .skill.wide { display: flex; flex-direction: column; }
  .skill.wide h3 { font-size: 18px; } .skill.wide p { font-size: 14.5px; color: var(--muted); }
}


/* ===== round 3: review fixes ===== */
.h1 { font-size: clamp(34px, 4.6vw, 54px); }
.game-grid > .rv:nth-child(2) { display: flex; justify-content: center; }
.game-photo { margin-top: 16px; aspect-ratio: 3 / 2; }
.game-photo img { object-position: 50% 25%; }
#method .sample-h { margin-top: 28px; }
.proj .cover.has-img .shots { position: absolute; inset: 0; }
.proj .cover.has-img .shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: shots 12s infinite; animation-delay: calc(var(--i) * 4s); }
.proj .cover.has-img .shots img:first-child { opacity: 1; }
.proj .cover.has-img::before { z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 35%); }
.proj .cover.has-img .genre, .proj .cover.has-img .yrs { z-index: 2; }
@keyframes shots { 0% { opacity: 0; } 4% { opacity: 1; } 33% { opacity: 1; } 37% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .proj .cover.has-img .shots img { animation: none; } }
.about-txt a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .game-photo { display: none; } }
