/* wokanoka — Mad Rat Cafe
   Palette and type are defined once here; edit the tokens below to restyle the site. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jersey 10";
  src: url("../fonts/jersey10-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #111210;
  --bg-alt: #1B2017;
  --bg-deep: #0c0d0b;
  --text: #F3EEDF;
  --muted: #B7B5A8;
  --lime: #C5F227;
  --lime-hover: #d6ff4a;
  --orange: #E77B32;
  --line: rgba(231, 123, 50, .55);
  --font-display: "Jersey 10", "Courier New", monospace;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 118px;
  --cut: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: .95;
  letter-spacing: .02em;
  margin: 0;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--lime);
  color: var(--bg);
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0b0c0a;
  border-bottom: 1px solid var(--orange);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  gap: 16px;
}

.site-header .header-inner { max-width: none; }

.brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-self: start;
  align-self: end;              /* logo sits on the orange line: the neck cut touches it */
  --brand-pad: 10px;
  padding: var(--brand-pad) 4px 0 0;
  text-decoration: none;
  color: var(--text);
}
.brand img {
  width: auto;
  height: 108px;
  transform-origin: 50% 100%;
  transition: transform .2s ease;
}
.brand:hover img { transform: rotate(-4deg); }

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding: 10px 2px;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.site-nav a:hover { color: var(--orange); border-bottom-color: var(--orange); }
.site-nav a[aria-current="page"] { color: var(--orange); }

.nav-toggle { display: none; }

@media (max-width: 720px) {
  :root { --header-h: 80px; }
  .header-inner { grid-template-columns: auto 1fr; }
  .brand { --brand-pad: 8px; }
  .brand img { height: 72px; }

  /* Without JavaScript the menu stays visible as a compact row */
  .site-nav { justify-self: end; }
  .site-nav ul { gap: 14px; }
  .site-nav a { font-size: .8rem; letter-spacing: .04em; }

  .js .nav-toggle {
    display: inline-flex;
    justify-self: end;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 12px;
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(243, 238, 223, .35);
    font: 600 .85rem/1 var(--font-body);
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .js .nav-toggle:hover { border-color: var(--orange); }
  .nav-toggle-bars { position: relative; width: 18px; height: 12px; }
  .nav-toggle-bars span {
    position: absolute; left: 0; width: 100%; height: 2px;
    background: currentColor; transition: transform .2s ease, opacity .2s ease;
  }
  .nav-toggle-bars span:nth-child(1) { top: 0; }
  .nav-toggle-bars span:nth-child(2) { top: 5px; }
  .nav-toggle-bars span:nth-child(3) { top: 10px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

  .js .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    justify-self: stretch;
    background: #0b0c0a;
    border-bottom: 1px solid var(--orange);
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 16px;
  }
  .js .site-nav li + li { border-top: 1px solid rgba(231, 123, 50, .25); }
  .js .site-nav a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 0;
  }
}

/* ---------- Buttons ---------- */

.btn {
  --btn-pad-y: 15px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: var(--btn-pad-y) 26px;
  font: 700 1rem/1.1 var(--font-body);
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: none; }
.btn:focus-visible::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lime);
  clip-path: polygon(evenodd,
    var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut), var(--cut) 0,
    calc(var(--cut) + 2px) 3px, calc(100% - 3px) 3px, calc(100% - 3px) calc(100% - var(--cut) - 2px), calc(100% - var(--cut) - 2px) calc(100% - 3px), 3px calc(100% - 3px), 3px calc(var(--cut) + 2px), calc(var(--cut) + 2px) 3px);
}

.btn-wishlist { background: var(--lime); color: var(--bg); }
.btn-wishlist:hover { background: var(--lime-hover); }
.btn-wishlist:focus-visible::after { background: var(--bg); }

.btn-outline { background: transparent; color: var(--text); }
.btn-outline::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--text);
  transition: background-color .15s ease;
  clip-path: polygon(evenodd,
    var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut), var(--cut) 0,
    calc(var(--cut) + 1px) 2px, calc(100% - 2px) 2px, calc(100% - 2px) calc(100% - var(--cut) - 1px), calc(100% - var(--cut) - 1px) calc(100% - 2px), 2px calc(100% - 2px), 2px calc(var(--cut) + 1px), calc(var(--cut) + 1px) 2px);
}
.btn-outline:hover { color: var(--orange); background: rgba(231, 123, 50, .08); }
.btn-outline:hover::before { background: var(--orange); }

.btn-lg { min-height: 60px; padding: 18px 34px; font-size: 1.1rem; --cut: 12px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(540px, 74vh, 760px);
  padding: 64px 0 110px;
  overflow: hidden;
  background: var(--bg-deep);
}

.hero-media, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero-media img { object-fit: cover; object-position: 78% 30%; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(17, 18, 16, .94) 0%, rgba(17, 18, 16, .82) 28%, rgba(17, 18, 16, .35) 55%, rgba(17, 18, 16, 0) 72%),
    linear-gradient(180deg, rgba(17, 18, 16, 0) 62%, var(--bg) 100%);
}

.hero-content { max-width: 560px; }

.hero-logo { width: min(340px, 78%); height: auto; margin: 0 0 22px -6px; }

.tagline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: .92;
  letter-spacing: .03em;
  margin: 0 0 32px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .45);
}
.tagline span { display: block; }
.tagline span:last-child { color: var(--orange); }

@media (max-width: 720px) {
  .hero {
    display: block;
    min-height: 0;
    padding: 72vw 0 48px;
    background: var(--bg);
  }
  .hero-media, .hero-media img { bottom: auto; height: 112.7vw; }
  .hero-media img { object-position: 50% 0; }
  .hero::before {
    bottom: auto;
    height: 112.7vw;
    background: linear-gradient(180deg, rgba(17, 18, 16, 0) 45%, rgba(17, 18, 16, .75) 75%, var(--bg) 100%);
  }
  .hero-logo { width: min(240px, 62vw); margin-bottom: 16px; }
  .tagline { margin-bottom: 24px; }
  .hero .btn-row { flex-direction: column; align-items: stretch; }
}

/* ---------- Shared section bits ---------- */

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font: 600 .8rem/1 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--orange); }

.section-title { font-size: clamp(2.5rem, 5vw, 3.6rem); margin-bottom: 22px; }

.lead { font-size: 1.125rem; color: var(--muted); }

/* ---------- About the game + trailer ---------- */

.game-intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.status {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 0 0;
  border-top: 1px solid var(--line);
  font: 600 .85rem/1.2 var(--font-body);
  letter-spacing: .14em;
  color: var(--orange);
}

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
}
.player::after {
  content: "";
  position: absolute;
  right: -8px; bottom: -8px;
  width: 44px; height: 44px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  pointer-events: none;
}
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }

.player-note { margin: 14px 0 0; font-size: .9rem; color: var(--muted); }
.player-note a { color: var(--text); text-decoration-color: var(--orange); text-underline-offset: 3px; }
.player-note a:hover { color: var(--orange); }

@media (max-width: 900px) {
  .game-intro { grid-template-columns: 1fr; }
}

/* ---------- Gameplay features ---------- */

.features { background: var(--bg-alt); padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.features::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

.features-lead {
  max-width: 760px;
  margin: 0 auto clamp(48px, 7vw, 88px);
  text-align: center;
  font-size: 1.15rem;
  color: var(--muted);
}
.features-lead strong { color: var(--text); font-weight: 600; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(56px, 8vw, 104px); }
.feature:nth-of-type(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature:nth-of-type(even) .feature-media { order: 2; }

.feature-media {
  position: relative;
  background: #0d0f0b;
  border: 1px solid var(--line);
  padding: 6px;
}
.feature-media::before {
  content: "";
  position: absolute;
  left: -1px; top: -1px;
  width: 22px; height: 22px;
  border-left: 3px solid var(--orange);
  border-top: 3px solid var(--orange);
}
.feature-media video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0d0f0b;
}

.motion-toggle {
  position: absolute;
  right: 14px; bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  padding: 0;
  background: rgba(11, 12, 10, .78);
  color: var(--text);
  border: 1px solid rgba(243, 238, 223, .4);
  cursor: pointer;
  opacity: .75;
  transition: opacity .15s ease, border-color .15s ease, color .15s ease;
}
.motion-toggle:hover, .motion-toggle:focus-visible { opacity: 1; border-color: var(--orange); color: var(--orange); }
.motion-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.motion-toggle .i-play { display: none; }
.motion-toggle[aria-pressed="true"] .i-pause { display: none; }
.motion-toggle[aria-pressed="true"] .i-play { display: block; }

.feature-num {
  display: block;
  margin-bottom: 12px;
  font: 600 .8rem/1 var(--font-body);
  letter-spacing: .16em;
  color: var(--orange);
}
.feature-title { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 18px; }
.feature-text p { color: var(--muted); font-size: 1.1rem; max-width: 34em; }

@media (max-width: 820px) {
  .feature, .feature:nth-of-type(even) { grid-template-columns: 1fr; gap: 22px; }
  .feature:nth-of-type(even) .feature-media { order: 0; }
}

/* ---------- Final CTA ---------- */

.cta {
  position: relative;
  padding: clamp(72px, 10vw, 128px) 0;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, rgba(197, 242, 39, .07), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-title { font-size: clamp(2.6rem, 6.5vw, 4.8rem); margin-bottom: 32px; }
.cta .btn-row { justify-content: center; }

/* ---------- About + Contact ---------- */

.studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
}
.studio > section { padding: 8px 0; }
.studio > section + section {
  border-left: 1px solid var(--line);
  padding-left: clamp(32px, 5vw, 72px);
}
.studio > section:first-child { padding-right: clamp(32px, 5vw, 72px); }

.about-body {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.about-body img { width: 88px; height: auto; flex: none; margin-top: 4px; }
.about-body p { color: var(--muted); }

.contact-email {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.05;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  overflow-wrap: anywhere;
  transition: color .15s ease;
}
.contact-email:hover { color: var(--orange); }

@media (max-width: 860px) {
  .studio { grid-template-columns: 1fr; }
  .studio > section:first-child { padding-right: 0; padding-bottom: 48px; }
  .studio > section + section {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 48px;
  }
}
@media (max-width: 420px) {
  .about-body { flex-direction: column; gap: 16px; }
  .about-body img { width: 72px; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: #0b0c0a;
  border-top: 1px solid var(--orange);
  padding: 28px 0;
  font-size: .95rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
}
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.footer-links li + li::before { content: "·"; margin: 0 6px 0 2px; color: var(--orange); }
.footer-links a {
  display: inline-block;
  padding: 10px 4px;
  color: var(--text);
  text-decoration: none;
}
.footer-links a:hover { color: var(--orange); }

/* ---------- Press kit page ---------- */

.presskit {
  min-height: calc(100vh - var(--header-h) - 90px);
  padding: clamp(64px, 10vw, 128px) 0;
  background:
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 70%);
}
.presskit-inner { max-width: 880px; }
.nowrap { white-space: nowrap; }
.presskit h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); margin-bottom: 28px; }
.presskit h1 .dash { color: var(--orange); }
.presskit .lead { margin-bottom: 40px; }

.download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.download-meta { margin: 0; color: var(--muted); font-size: .95rem; }
.download-meta strong { color: var(--text); font-weight: 600; }

.press-contact { margin-top: 36px; color: var(--muted); }
.press-contact a { color: var(--text); text-decoration-color: var(--orange); text-underline-offset: 4px; font-weight: 600; }
.press-contact a:hover { color: var(--orange); }

@media (max-width: 480px) {
  .download .btn { width: 100%; }
  .btn { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}
