/* OMG Games — omggames.net
   Palette pulled from the Hooligan world: scarf red, away-kit navy, chalk, tea. */
:root {
  --red: #D7262E;
  --red-deep: #A8141C;
  --ink: #16203D;
  --ink-2: #222E52;
  --chalk: #FFF8EE;
  --tea: #C4621D;
  --line: rgba(22, 32, 61, .14);

  --f-display: "Bagel Fat One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-label: "Barlow Condensed", "Arial Narrow", sans-serif;

  --wrap: min(1240px, 100% - 32px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--tea); outline-offset: 3px; border-radius: 6px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--chalk); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: var(--wrap); margin-inline: auto; }

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.01em;
  margin: 0 0 .45em;
  text-wrap: balance;
}
.eyebrow {
  font: 700 .95rem/1 var(--f-label);
  text-transform: uppercase;
  letter-spacing: .16em;
  margin: 0 0 18px;
  color: var(--tea);
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; }
p { margin: 0 0 1em; text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--red); --fg: var(--chalk); --sh: var(--red-deep);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 700 1.05rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none;
  color: var(--fg); background: var(--bg);
  padding: 16px 24px 15px;
  border-radius: 999px;
  border: 0;
  box-shadow: 0 5px 0 var(--sh);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
  cursor: pointer;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--sh); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--sh); }
.btn-small { padding: 11px 16px 10px; font-size: .95rem; box-shadow: 0 3px 0 var(--sh); }
.btn-small:hover { box-shadow: 0 1px 0 var(--sh); }
.btn-ghost { --bg: transparent; --fg: var(--chalk); --sh: transparent; box-shadow: inset 0 0 0 2px rgba(255, 248, 238, .7); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--chalk); transform: none; }
.btn-ink { --bg: var(--ink); --fg: var(--chalk); --sh: #0A1026; }
.btn-ghost-light { --bg: transparent; --fg: var(--chalk); --sh: transparent; box-shadow: inset 0 0 0 2px rgba(255, 248, 238, .75); text-transform: none; letter-spacing: .02em; }
.btn-ghost-light:hover { box-shadow: inset 0 0 0 2px var(--chalk); transform: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: max(16px, (100% - 1240px) / 2);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.solid { background: rgba(22, 32, 61, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255, 248, 238, .08); }
.brand { position: relative; display: block; width: 168px; height: 28px; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .3s; }
.brand-ink { opacity: 0; }
.site-header.solid .brand-red { opacity: 0; }
.site-header.solid .brand-ink { opacity: 1; }
.site-header.at-top .brand { opacity: 0; transform: translateY(-6px); pointer-events: none; }

.nav { display: flex; gap: 28px; }
.nav a {
  font: 700 1.05rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .1em;
  text-decoration: none; padding: 8px 0; position: relative;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang {
  font: 700 .95rem/1 var(--f-label); letter-spacing: .1em; color: var(--chalk);
  background: transparent; border: 2px solid rgba(255, 248, 238, .6); border-radius: 999px;
  padding: 8px 12px 7px; cursor: pointer;
}
.lang:hover { border-color: var(--chalk); }
.menu-btn { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; height: 340vh; background: var(--red); }
.hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 40%;
  will-change: transform;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22, 32, 61, .35) 0%, rgba(22, 32, 61, 0) 30%, rgba(22, 32, 61, .2) 55%, rgba(14, 20, 40, .88) 100%);
  opacity: var(--scrim, 0);
}
.hero-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.red-field { fill: var(--red); }
.hero-tag, .hero-hint { position: absolute; left: 0; right: 0; text-align: center; margin: 0; }
.hero-tag {
  bottom: 18vh; padding-inline: 16px;
  font: 500 clamp(1.05rem, 1.7vw, 1.35rem)/1.4 var(--f-body);
  color: var(--chalk);
}
.hero-tag b { font-family: var(--f-display); font-weight: 400; color: var(--ink); letter-spacing: .02em; }
.hero-hint {
  bottom: 5vh;
  font: 700 .9rem/1 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 248, 238, .85);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.hero-hint i { width: 2px; height: 38px; background: linear-gradient(var(--chalk), transparent); animation: drip 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.hero-title {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 max(16px, (100% - 1240px) / 2) clamp(40px, 9vh, 96px);
  opacity: 0; transform: translateY(40px);
  pointer-events: none;
}
.hero-title.on { pointer-events: auto; }
.hero-title .eyebrow { color: var(--chalk); opacity: .9; }
.hooligan-word {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(4rem, 15vw, 13.5rem);
  line-height: .82;
  margin: 0 0 18px;
  color: var(--chalk);
  letter-spacing: -.02em;
  text-shadow: 0 .045em 0 var(--red-deep), 0 .09em .2em rgba(0, 0, 0, .35);
}
.hero-lede { font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 500; margin-bottom: 26px; }
.hero-ctas, .studio-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* knitted scarf band */
.scarf {
  height: 22px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .07) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(90deg, var(--red) 0 44px, var(--chalk) 44px 88px);
  position: relative; z-index: 2;
}

/* ---------- game ---------- */
.game { padding: clamp(80px, 12vw, 150px) 0; background: var(--ink); }
.game-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.game-copy p:not(.eyebrow) { color: rgba(255, 248, 238, .86); max-width: 54ch; }
.game-copy .lede { color: var(--chalk); }
.game-facts { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 0; max-width: 460px; }
.game-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid rgba(255, 248, 238, .16); }
.game-facts li:last-child { border-bottom: 1px solid rgba(255, 248, 238, .16); }
.game-facts span { font: 700 .95rem/1.4 var(--f-label); text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 248, 238, .6); }
.game-facts b { font-weight: 500; text-align: right; }

/* clubhouse noticeboard */
.board { position: relative; aspect-ratio: 1 / 1.02; }
.pin {
  position: absolute; margin: 0;
  background: var(--chalk); color: var(--ink);
  padding: 10px 10px 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  transition: transform .4s var(--ease);
}
.pin::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; translate: -50% 0;
  background: rgba(255, 248, 238, .55); box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
  rotate: -3deg;
}
.pin img { width: 100%; aspect-ratio: 2 / 1.15; object-fit: cover; }
.pin figcaption { font: 700 1rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .08em; padding: 12px 4px 13px; }
.pin-a { width: 72%; left: 0; top: 2%; rotate: -4deg; z-index: 1; }
.pin-b { width: 62%; right: 0; top: 30%; rotate: 3.5deg; z-index: 2; }
.pin-c { width: 64%; left: 8%; bottom: 0; rotate: -1.5deg; z-index: 3; }
.pin:hover { transform: translateY(-8px) scale(1.02); z-index: 5; }

/* ---------- squad / album ---------- */
.squad {
  background: var(--chalk); color: var(--ink);
  padding: clamp(80px, 11vw, 140px) 0;
}
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.squad .eyebrow { color: var(--red); }
.squad .lede { color: var(--ink-2); }
.album { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.sticker {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 1px 0 rgba(22, 32, 61, .08), 0 14px 30px -12px rgba(22, 32, 61, .3);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  rotate: var(--tilt, 0deg);
  outline: none;
}
.sticker:hover, .sticker:focus-visible {
  transform: translateY(-8px) rotate(calc(var(--tilt, 0deg) * -1));
  box-shadow: 0 1px 0 rgba(22, 32, 61, .08), 0 26px 40px -14px rgba(22, 32, 61, .45);
}
.sticker:focus-visible { box-shadow: 0 0 0 3px var(--tea), 0 26px 40px -14px rgba(22, 32, 61, .45); }
.sticker-art { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: #F8F1E6; }
.sticker-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.sticker-art .face { opacity: 0; transform: scale(1.08); }
.sticker:hover .face, .sticker:focus-visible .face { opacity: 1; transform: scale(1); }
.sticker:hover .body, .sticker:focus-visible .body { opacity: 0; }
.sticker-no {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  font: 700 .95rem/1 var(--f-label); letter-spacing: .06em;
  background: var(--ink); color: var(--chalk);
  padding: 6px 8px 5px; border-radius: 6px;
}
.sticker-band {
  height: 10px; margin: 10px 0 0; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--red) 0 14px, #fff 14px 28px);
  box-shadow: inset 0 0 0 1px rgba(215, 38, 46, .25);
}
.sticker h3 { font: 400 1.45rem/1.05 var(--f-display); margin: 12px 4px 4px; }
.sticker p { font-size: .93rem; line-height: 1.45; margin: 0 4px 6px; color: var(--ink-2); }

/* ---------- grounds (horizontal) ---------- */
.grounds { position: relative; background: var(--ink); }
.grounds-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: var(--header-h); }
.grounds-head { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 40px; margin-bottom: clamp(20px, 3vh, 36px); }
.grounds-head .eyebrow { grid-column: 1 / -1; }
.grounds-head .display { margin: 0; font-size: clamp(2rem, 4.2vw, 3.6rem); }
.grounds-progress { height: 4px; background: rgba(255, 248, 238, .14); border-radius: 4px; overflow: hidden; margin-bottom: .7em; }
.grounds-progress i { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: left; transform: scaleX(var(--gp, 0)); }
.grounds-track {
  display: flex; gap: clamp(16px, 2vw, 28px);
  padding-inline: max(16px, (100% - 1240px) / 2);
  will-change: transform;
}
.ground {
  flex: 0 0 auto;
  width: min(62vw, calc((100svh - 300px) * 1.6));
  margin: 0;
  position: relative;
}
.ground-img { border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9.4; background: var(--ink-2); }
.ground-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ground:hover .ground-img img { transform: scale(1.04); }
.ground figcaption { display: flex; align-items: baseline; gap: 16px; padding: 16px 2px 0; }
.ground .tier {
  flex: 0 0 auto;
  font: 700 .9rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink); background: var(--chalk);
  padding: 6px 10px 5px; border-radius: 4px;
  position: relative;
}
.ground h3 { font: 400 clamp(1.3rem, 2vw, 1.8rem)/1.1 var(--f-display); margin: 0; }
.ground p { margin: 4px 0 0; color: rgba(255, 248, 238, .72); font-size: .98rem; }

/* ---------- studio ---------- */
.studio {
  background: var(--red); color: var(--chalk);
  padding: clamp(90px, 13vw, 170px) 0;
  position: relative;
}
.studio .eyebrow { color: var(--ink); }
.studio-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: end; }
.studio-title { font-size: clamp(2.3rem, 4.6vw, 4.2rem); margin: 0; }
.gg-inline { display: inline-block; height: 1.15em; width: auto; vertical-align: -.22em; border-radius: .22em; rotate: -4deg; box-shadow: 0 .08em 0 var(--red-deep); }
.studio-copy .lede { color: var(--chalk); }
.studio-copy p:not(.lede) { color: rgba(255, 248, 238, .9); }
.studio-ctas { margin-top: 30px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.footer-grid img { width: 200px; height: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; }
.footer-links a { font: 700 1rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .12em; text-decoration: none; opacity: .8; }
.footer-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.fine { margin: 0; font-size: .9rem; color: rgba(255, 248, 238, .55); }

.rm-only { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .album { grid-template-columns: repeat(2, 1fr); }
  .game-grid, .studio-grid { grid-template-columns: 1fr; }
  .board { max-width: 620px; width: 100%; margin-inline: auto; }
}
@media (max-width: 760px) {
  :root { --header-h: 62px; }
  body { font-size: 16px; }
  .menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 11px; border: 0; border-radius: 12px;
    background: rgba(22, 32, 61, .35); cursor: pointer;
  }
  .menu-btn span:not(.sr) { display: block; height: 2px; background: var(--chalk); border-radius: 2px; transition: transform .25s var(--ease); }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .header-actions .btn-small { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 0;
    background: var(--ink); padding: 8px 16px 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 16px 0; font-size: 1.3rem; border-bottom: 1px solid rgba(255, 248, 238, .12); }
  .brand { width: 140px; height: 23px; }

  .hero { height: 300vh; }
  .hero-tag { bottom: 14vh; }
  .album { gap: 14px; }
  .sticker { padding: 7px; border-radius: 14px; }
  .sticker-no { top: 13px; left: 13px; font-size: .8rem; }
  .sticker h3 { font-size: 1.15rem; }
  .sticker p { font-size: .84rem; }

  /* grounds become a native swipe strip */
  .grounds { height: auto !important; padding: 80px 0; }
  .grounds-pin { position: static; height: auto; padding-top: 0; }
  .grounds-head { grid-template-columns: 1fr; }
  .grounds-progress { display: none; }
  .grounds-track { transform: none !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
  .grounds-track::-webkit-scrollbar { display: none; }
  .ground { width: 84vw; scroll-snap-align: center; }
  .ground figcaption { flex-direction: column; gap: 10px; }

  .footer-grid { grid-template-columns: 1fr; justify-items: start; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: 100vh; height: 100svh; }
  .hero-hint { display: none; }
  .rm-only { display: block; }
  .keyart { margin: 0 auto clamp(56px, 8vw, 96px); width: var(--wrap); }
  .keyart img { width: 100%; border-radius: 16px; }
  .grounds { height: auto !important; padding: 100px 0; }
  .grounds-pin { position: static; height: auto; }
  .grounds-progress { display: none; }
  .grounds-track { transform: none !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .ground { scroll-snap-align: center; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
