:root {
  --ground: #171310;
  --surface: #241c15;
  --ink: #f3ebdd;
  --accent: #ff5a1f;
  --amber: #ffb33b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ground); }
body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 90, 31, 0.08), transparent 34rem),
    var(--ground);
  color: var(--ink);
  font-family: "Inter Tight", Inter, sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.games-nav {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(20px, 5vw, 70px);
  border-bottom: 1px solid rgba(243, 235, 221, 0.12);
  background: rgba(23, 19, 16, 0.9);
  backdrop-filter: blur(14px);
}

.games-logo { font-family: Anton, Impact, sans-serif; font-size: 1.25rem; letter-spacing: 0.04em; }
.games-logo i { color: var(--accent); font-style: normal; }
.games-nav-links { display: flex; gap: clamp(16px, 3vw, 38px); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.games-nav-links a { color: rgba(243, 235, 221, 0.72); transition: color 160ms ease; }
.games-nav-links a:hover, .games-nav-links a[aria-current="page"] { color: var(--accent); }
.games-back { padding: 10px 14px; border: 1px solid rgba(255, 90, 31, 0.6); color: var(--accent); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }

.games-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  overflow: hidden;
  padding: 100px 24px 70px;
  text-align: center;
}

.games-hero-bg { position: absolute; inset: 0; overflow: hidden; }
.games-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; transform: scale(1.2); filter: brightness(0.58) saturate(1.12) contrast(1.04); transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1); }
.games-ready .games-hero-bg img { transform: scale(1.04); }
.games-hero-bg::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, rgba(23, 19, 16, 0.35), rgba(23, 19, 16, 0.34) 48%, var(--ground)); }
.games-hero::before { position: absolute; z-index: 2; inset: 0; content: ""; pointer-events: none; opacity: 0.12; background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(255,255,255,.18) 4px, transparent 5px); animation: games-scan 8s linear infinite; }

.games-hero-copy { position: relative; z-index: 3; max-width: 980px; opacity: 0; transform: translateY(28px); transition: opacity .7s ease .32s, transform .9s cubic-bezier(.16,1,.3,1) .32s; }
.games-ready .games-hero-copy { opacity: 1; transform: translateY(0); }
.games-eyebrow { color: var(--amber); font-size: .74rem; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; }
.games-hero h1 { margin: 18px 0 0; font: 400 clamp(4rem, 12vw, 9.5rem)/.84 Anton, Impact, sans-serif; letter-spacing: -.02em; text-shadow: 0 5px 0 rgba(23,19,16,.5), 0 0 42px rgba(255,90,31,.36); }
.games-hero h1 span { color: var(--accent); }
.games-hero-copy > p:not(.games-eyebrow) { max-width: 620px; margin: 26px auto 0; color: rgba(243,235,221,.78); font-size: clamp(.98rem, 2vw, 1.18rem); line-height: 1.55; }
.games-price-lock { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; padding: 10px 16px; border: 1px solid rgba(255,90,31,.55); background: rgba(23,19,16,.54); color: var(--ink); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(10px); }
.games-price-lock i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.games-down { margin-top: 32px; padding: 14px 25px; border: 0; border-radius: 999px; background: var(--accent); color: var(--ground); font-family: Anton, Impact, sans-serif; font-size: 1.05rem; letter-spacing: .05em; cursor: pointer; box-shadow: 0 0 34px rgba(255,90,31,.45); }

.games-runway { position: absolute; z-index: 4; right: 0; bottom: 0; left: 0; height: 4px; background: rgba(255,90,31,.72); box-shadow: 0 0 20px rgba(255,90,31,.38); transform: scaleX(0); transform-origin: left; }
.games-ready .games-runway { animation: runway-in .4s ease .55s forwards; }
.games-mascot { position: absolute; bottom: 4px; left: -82px; width: 54px; height: 70px; filter: drop-shadow(0 0 12px rgba(255,90,31,.72)); }
.games-mascot::after, .games-enemy::after { position: absolute; z-index: 0; right: 2px; bottom: -4px; left: 2px; height: 8px; content: ""; border-radius: 50%; background: rgba(0,0,0,.5); filter: blur(2px); }
.games-player-body, .games-enemy-body { position: absolute; z-index: 1; inset: 0; display: block; }
.games-player-body::before { position: absolute; z-index: 0; top: 22px; left: 1px; width: 17px; height: 39px; content: ""; background: #aa3517; clip-path: polygon(30% 0,100% 12%,76% 100%,0 80%); }
.games-player-body::after { position: absolute; z-index: 3; top: 27px; left: 5px; width: 13px; height: 12px; content: ""; background: var(--amber); clip-path: polygon(0 20%,70% 0,100% 50%,70% 100%,0 80%); }
.fighter-head { position: absolute; z-index: 3; top: 0; left: 14px; width: 29px; height: 25px; background: var(--ink); clip-path: polygon(15% 0,82% 0,82% 12%,100% 12%,100% 68%,82% 68%,82% 100%,14% 100%,14% 84%,0 84%,0 18%,15% 18%); }
.fighter-head::before { position: absolute; right: 0; bottom: 1px; width: 20px; height: 14px; content: ""; background: #d69a6a; clip-path: polygon(0 0,100% 0,100% 78%,70% 78%,70% 100%,0 100%); }
.fighter-head::after { position: absolute; z-index: 2; top: 12px; right: 3px; width: 7px; height: 4px; content: ""; background: var(--ground); box-shadow: -9px 0 0 rgba(23,19,16,.45); }
.fighter-torso { position: absolute; z-index: 2; top: 23px; left: 9px; width: 38px; height: 30px; background: var(--accent); clip-path: polygon(13% 0,86% 0,100% 22%,91% 100%,10% 100%,0 24%); box-shadow: inset 0 -7px 0 #b83b17, inset 8px 0 0 rgba(243,235,221,.13); }
.fighter-torso::before { position: absolute; top: 5px; right: -5px; width: 14px; height: 20px; content: ""; background: var(--accent); transform: rotate(-18deg); }
.fighter-torso::after { position: absolute; top: 7px; left: 13px; width: 13px; height: 12px; content: ""; border: 3px solid var(--amber); background: rgba(23,19,16,.18); }
.fighter-legs { position: absolute; z-index: 1; top: 50px; left: 12px; width: 31px; height: 20px; background: linear-gradient(90deg, var(--ink) 0 39%, transparent 39% 60%, var(--ink) 60% 100%); }
.fighter-legs::after { position: absolute; right: -4px; bottom: 0; width: 15px; height: 5px; content: ""; background: var(--accent); box-shadow: -19px 0 0 var(--accent); }
.games-sword { position: absolute; z-index: 5; top: 31px; right: -39px; width: 45px; height: 7px; border: 1px solid rgba(23,19,16,.55); background: linear-gradient(180deg, #fffaf0 0 30%, #bfc4c5 31% 70%, #777e81 71%); filter: drop-shadow(0 0 6px rgba(243,235,221,.72)); transform: rotate(-32deg); transform-origin: 0 50%; }
.games-sword::before { position: absolute; top: -6px; left: -5px; width: 7px; height: 18px; content: ""; background: var(--amber); box-shadow: -5px 5px 0 #6f2b16; }
.games-sword::after { position: absolute; top: -1px; right: -9px; content: ""; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 9px solid #dfe3e2; }

.games-enemy { position: absolute; bottom: 4px; right: -82px; width: 56px; height: 70px; filter: drop-shadow(0 0 12px rgba(247,179,75,.72)); opacity: 0; transform: scaleX(-1); }
.games-enemy-body::before { position: absolute; z-index: 0; top: 24px; left: 0; width: 16px; height: 34px; content: ""; border: 3px solid var(--amber); background: #34281e; clip-path: polygon(0 10%,75% 0,100% 50%,75% 100%,0 88%); }
.games-enemy-body::after { position: absolute; z-index: 3; top: 27px; left: 6px; width: 13px; height: 13px; content: ""; background: var(--accent); clip-path: polygon(0 18%,72% 0,100% 50%,72% 100%,0 82%); }
.enemy-head { position: absolute; z-index: 3; top: 0; left: 13px; width: 31px; height: 26px; background: var(--amber); clip-path: polygon(0 18%,13% 18%,13% 0,30% 12%,76% 12%,92% 0,92% 22%,100% 22%,100% 100%,0 100%); box-shadow: inset 0 -5px 0 #a96520; }
.enemy-head::before { position: absolute; top: 10px; right: 2px; width: 24px; height: 9px; content: ""; background: var(--ground); }
.enemy-head::after { position: absolute; z-index: 2; top: 12px; right: 4px; width: 7px; height: 4px; content: ""; background: var(--accent); box-shadow: -10px 0 0 var(--accent), 0 0 7px var(--accent); }
.enemy-torso { position: absolute; z-index: 2; top: 24px; left: 8px; width: 41px; height: 30px; background: var(--amber); clip-path: polygon(12% 0,86% 0,100% 24%,92% 100%,8% 100%,0 24%); box-shadow: inset 0 -7px 0 #8e561d, inset 8px 0 0 rgba(23,19,16,.18); }
.enemy-torso::before { position: absolute; top: 5px; right: -5px; width: 14px; height: 20px; content: ""; background: var(--amber); transform: rotate(-18deg); }
.enemy-torso::after { position: absolute; top: 7px; left: 14px; width: 13px; height: 12px; content: ""; border: 3px solid var(--accent); background: rgba(23,19,16,.32); }
.enemy-legs { position: absolute; z-index: 1; top: 51px; left: 13px; width: 31px; height: 19px; background: linear-gradient(90deg, #69523d 0 39%, transparent 39% 60%, #69523d 60% 100%); }
.enemy-legs::after { position: absolute; right: -4px; bottom: 0; width: 15px; height: 5px; content: ""; background: var(--amber); box-shadow: -19px 0 0 var(--amber); }
.games-enemy-blade { position: absolute; z-index: 5; top: 31px; right: -38px; width: 44px; height: 7px; border: 1px solid rgba(23,19,16,.55); background: linear-gradient(180deg, #fffaf0 0 30%, #bfc4c5 31% 70%, #777e81 71%); filter: drop-shadow(0 0 6px rgba(243,235,221,.72)); transform: rotate(-32deg); transform-origin: 0 50%; }
.games-enemy-blade::before { position: absolute; top: -6px; left: -5px; width: 7px; height: 18px; content: ""; background: var(--accent); box-shadow: -5px 5px 0 #5b2316; }
.games-enemy-blade::after { position: absolute; top: -1px; right: -9px; content: ""; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 9px solid #dfe3e2; }

.games-impact { position: absolute; z-index: 7; bottom: 36px; left: 50%; width: 68px; height: 68px; background: var(--ink); clip-path: polygon(50% 0, 60% 35%, 88% 16%, 68% 43%, 100% 50%, 66% 59%, 86% 87%, 59% 68%, 50% 100%, 42% 67%, 14% 86%, 34% 58%, 0 50%, 35% 42%, 14% 14%, 42% 34%); filter: drop-shadow(0 0 18px var(--accent)); opacity: 0; transform: translate(-50%, -16px) scale(.2) rotate(0deg); }
.games-impact::after { position: absolute; inset: 19px; content: ""; background: var(--accent); clip-path: inherit; }
.games-pixel-burst { position: absolute; z-index: 6; bottom: 59px; left: calc(50% + 48px); width: 7px; height: 7px; background: var(--amber); box-shadow: -24px -20px var(--accent), 18px -28px var(--ink), 30px -4px var(--amber), 24px 20px var(--accent), -18px 24px var(--ink), -32px 5px var(--amber); opacity: 0; transform: scale(.35); }

.games-ready .games-mascot { animation: hero-duel-run 9s linear 780ms infinite; }
.games-ready .games-sword { animation: hero-sword-swing 9s ease-in-out 780ms infinite; }
.games-ready .games-enemy { animation: enemy-duel-run 9s linear 780ms infinite; }
.games-ready .games-enemy-blade { animation: enemy-sword-swing 9s ease-in-out 780ms infinite; }
.games-ready .games-impact { animation: duel-impact 9s ease-out 780ms infinite; }
.games-ready .games-pixel-burst { animation: enemy-pixel-burst 9s ease-out 780ms infinite; }
.games-ready .fighter-legs, .games-ready .enemy-legs { animation: fighter-stride 260ms steps(2, end) 780ms infinite; }

.lineup { padding: 96px clamp(20px, 5vw, 72px) 120px; }
.lineup-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; max-width: 1400px; margin: 0 auto 50px; }
.lineup h2 { margin: 0; font: 400 clamp(3.5rem, 8vw, 7rem)/.9 Anton, Impact, sans-serif; }
.lineup-head p { align-self: end; margin: 0; color: rgba(243,235,221,.62); line-height: 1.55; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; max-width: 1400px; margin: 0 auto 34px; }
.filters button { padding: 10px 14px; border: 1px solid rgba(243,235,221,.18); background: transparent; color: rgba(243,235,221,.65); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.filters button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--ground); }
.game-groups { display: grid; gap: 20px; max-width: 1400px; margin: 0 auto; }
.game-group { border: 1px solid rgba(255,90,31,.28); background: var(--surface); }
.game-group[hidden] { display: none; }
.game-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 24px 26px; border-bottom: 1px solid rgba(255,90,31,.22); }
.game-group h3 { margin: 0; font: 400 clamp(2rem, 4vw, 3.4rem)/1 Anton, Impact, sans-serif; }
.game-group-head span { color: var(--accent); font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.game { min-height: 112px; padding: 21px 24px; border-right: 1px solid rgba(243,235,221,.08); border-bottom: 1px solid rgba(243,235,221,.08); }
.game strong { display: block; font-size: 1.02rem; line-height: 1.24; }
.game small { display: block; margin-top: 7px; color: rgba(243,235,221,.45); font-size: .72rem; letter-spacing: .04em; }
.games-note { max-width: 1400px; margin: 32px auto 0; padding: 18px 20px; border-left: 3px solid var(--accent); background: rgba(255,90,31,.08); color: rgba(243,235,221,.64); font-size: .84rem; line-height: 1.5; }
.games-cta { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 44px clamp(20px, 5vw, 72px); background: var(--accent); color: var(--ground); }
.games-cta strong { font: 400 clamp(2rem, 6vw, 5rem)/.9 Anton, Impact, sans-serif; }
.games-cta a { flex: 0 0 auto; padding: 14px 18px; border: 2px solid var(--ground); font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.games-footer { display: flex; justify-content: space-between; gap: 24px; padding: 30px clamp(20px, 5vw, 72px); color: rgba(243,235,221,.45); font-size: .72rem; text-transform: uppercase; }

@keyframes games-scan { to { background-position: 0 40px; } }
@keyframes runway-in { to { transform: scaleX(1); } }
@keyframes hero-duel-run {
  0% { left: -82px; }
  30%, 41% { left: calc(50% - 112px); }
  46%, 53% { left: calc(50% - 96px); }
  82%, 100% { left: calc(100% + 82px); }
}
@keyframes enemy-duel-run {
  0%, 7% { right: -82px; opacity: 0; }
  10% { opacity: 1; }
  30%, 41% { right: calc(50% - 112px); opacity: 1; transform: scaleX(-1) scale(1); }
  46%, 52% { right: calc(50% - 96px); opacity: 1; transform: scaleX(-1) scale(1); }
  57% { right: calc(50% - 96px); opacity: 0; transform: scaleX(-1) scale(.15) rotate(-35deg); }
  100% { right: calc(50% - 96px); opacity: 0; transform: scaleX(-1) scale(.15) rotate(-35deg); }
}
@keyframes hero-sword-swing {
  0%, 30% { transform: rotate(-32deg); }
  38% { transform: rotate(-10deg); }
  43% { transform: rotate(37deg); }
  46% { transform: rotate(-28deg); }
  50% { transform: rotate(48deg); }
  56%, 100% { transform: rotate(-32deg); }
}
@keyframes enemy-sword-swing {
  0%, 31% { transform: rotate(-32deg); }
  39% { transform: rotate(-7deg); }
  43% { transform: rotate(34deg); }
  47% { transform: rotate(-25deg); }
  50% { transform: rotate(42deg); }
  56%, 100% { transform: rotate(-32deg); }
}
@keyframes duel-impact {
  0%, 41%, 45%, 48%, 52%, 100% { opacity: 0; transform: translate(-50%, -16px) scale(.2) rotate(0deg); }
  43% { opacity: 1; transform: translate(-50%, -16px) scale(.72) rotate(24deg); }
  50% { opacity: 1; transform: translate(-50%, -16px) scale(1.18) rotate(-20deg); }
}
@keyframes enemy-pixel-burst {
  0%, 49% { opacity: 0; transform: scale(.35); }
  53% { opacity: 1; transform: scale(.75); }
  61%, 100% { opacity: 0; transform: scale(2.1); }
}
@keyframes fighter-stride {
  0%, 100% { transform: skewX(-8deg) translateY(0); }
  50% { transform: skewX(8deg) translateY(1px); }
}

@media (max-width: 860px) {
  .games-nav-links { display: none; }
  .lineup-head { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .games-back { font-size: .64rem; padding: 9px 11px; }
  .games-hero { min-height: 720px; }
  .games-hero-bg img { object-position: 50% center; }
  .games-hero h1 { font-size: clamp(4rem, 20vw, 6rem); }
  .games-mascot { transform: scale(.9); transform-origin: bottom left; }
  .games-enemy { transform-origin: bottom right; }
  .games-impact { width: 54px; height: 54px; }
  .game-grid { grid-template-columns: 1fr; }
  .games-cta { align-items: flex-start; flex-direction: column; }
  .games-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .games-hero::before, .games-mascot, .games-sword, .games-enemy, .games-enemy-blade, .games-impact, .games-pixel-burst, .fighter-legs, .enemy-legs { animation: none !important; }
  .games-mascot { left: calc(50% - 112px); }
  .games-enemy { right: calc(50% - 112px); opacity: 1; transform: scaleX(-1); }
  .games-impact, .games-pixel-burst { display: none; }
  .games-hero-bg img, .games-hero-copy { transition-duration: 1ms; transition-delay: 0s; }
}
