/* Hopora — site styles.
   The palette, the hard-edged shadows and the panel chrome are lifted from the
   game's own UI: cream panels on a deep teal night, amber for anything you press. */

:root {
  --ink: #0c2128;
  --ink-2: #14323a;
  --ink-3: #1d434c;
  --cream: #f3eedc;
  --cream-dim: #ddd6c0;
  --amber: #f2b01e;
  --amber-dark: #c98c0c;
  --grass: #7ccb46;
  --grass-dark: #3f9a35;
  --road: #39434e;
  --sky: #9fd8e8;
  --taxi: #f6c026;
  --truck: #2f7fd0;
  --text: #f3eedc;
  --text-dim: #a9bcbf;
  --text-ink: #0c2128;
  --border: #06151a;

  --panel-shadow: 10px 10px 0 rgba(4, 15, 19, 0.55);
  --panel-shadow-sm: 6px 6px 0 rgba(4, 15, 19, 0.5);
  --radius: 4px;
  --pin: rgba(12, 33, 40, 0.32);

  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --wrap: 1140px;
  --step: clamp(1.5rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--ink);
  /* Isometric cube lattice, drawn with gradients so no image is requested. */
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.035) 75%),
    linear-gradient(65deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.035) 75%);
  background-size: 56px 56px;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: #ffd166; }

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

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: var(--text-ink);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  z-index: 50;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- typography ---------- */

h1, h2, h3, .eyebrow, .btn, .nav a, .tag {
  font-weight: 800;
  letter-spacing: 0.04em;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.02;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.1;
  margin: 0 0 0.6rem;
  text-transform: uppercase;
}

h3 { font-size: 1.12rem; margin: 0 0 0.4rem; text-transform: uppercase; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--grass);
  margin-bottom: 1rem;
}

.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #dfe8e6; max-width: 56ch; }
.muted { color: var(--text-dim); }

/* ---------- voxel chrome ---------- */

.panel {
  position: relative;
  background: var(--cream);
  color: var(--text-ink);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--panel-shadow);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

/* the four corner pins the in-game panels have */
.panel {
  background-image:
    radial-gradient(circle at 9px 9px, var(--pin) 0 2.5px, transparent 3px),
    radial-gradient(circle at calc(100% - 9px) 9px, var(--pin) 0 2.5px, transparent 3px),
    radial-gradient(circle at 9px calc(100% - 9px), var(--pin) 0 2.5px, transparent 3px),
    radial-gradient(circle at calc(100% - 9px) calc(100% - 9px), var(--pin) 0 2.5px, transparent 3px);
  background-repeat: no-repeat;
}

.panel--dark {
  background: var(--ink-2);
  color: var(--text);
  border-color: var(--border);
}
.panel--dark { --pin: rgba(243, 238, 220, 0.3); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  text-decoration: none;
  border: 3px solid var(--border);
  border-radius: var(--radius);
  background: var(--amber);
  color: var(--text-ink);
  box-shadow: 0 6px 0 var(--amber-dark), var(--panel-shadow-sm);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  cursor: pointer;
}
.btn:hover { color: var(--text-ink); }
.btn:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 var(--amber-dark), 3px 3px 0 rgba(4, 15, 19, 0.5);
}

.btn--ghost {
  background: transparent;
  color: var(--cream);
  box-shadow: 0 6px 0 #071b21, var(--panel-shadow-sm);
  border-color: var(--cream-dim);
}
.btn--ghost:hover { color: #fff; background: rgba(243, 238, 220, 0.08); }

.btn--disabled {
  background: #6d7b81;
  color: #1b2a2f;
  box-shadow: 0 6px 0 #4b585d, var(--panel-shadow-sm);
  cursor: not-allowed;
  pointer-events: none;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(8, 26, 32, 0.94);
  border-bottom: 3px solid var(--border);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 34px; height: 34px; border: 2px solid var(--border); border-radius: 3px; }

.nav { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.82rem;
  text-transform: uppercase;
  padding: 0.5rem 0.65rem;
  border-radius: 3px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); background: rgba(243, 238, 220, 0.1); }

/* language switch */
.lang { position: relative; }
.lang summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream);
  padding: 0.5rem 0.7rem;
  border: 2px solid rgba(243, 238, 220, 0.3);
  border-radius: 3px;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { border-color: var(--amber); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 170px;
  background: var(--cream);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--panel-shadow-sm);
  padding: 0.35rem;
  z-index: 40;
}
.lang-menu a {
  display: block;
  padding: 0.5rem 0.7rem;
  color: var(--text-ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 3px;
}
.lang-menu a:hover { background: var(--amber); }
.lang-menu a[aria-current="true"] { background: var(--ink-2); color: var(--cream); }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; border-bottom: 3px solid var(--border); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6, 21, 26, 0.94) 0%, rgba(6, 21, 26, 0.82) 42%, rgba(6, 21, 26, 0.25) 75%);
}
.hero-inner { position: relative; padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-copy { max-width: 40rem; }
.hero h1 { text-shadow: 5px 5px 0 rgba(4, 15, 19, 0.55); }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.42rem 0.7rem;
  border: 2px solid rgba(243, 238, 220, 0.35);
  border-radius: 3px;
  color: var(--cream);
  background: rgba(6, 21, 26, 0.5);
}

/* ---------- sections ---------- */

section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }

.band-grass {
  background:
    linear-gradient(180deg, rgba(124, 203, 70, 0.16), rgba(124, 203, 70, 0.05)),
    var(--ink);
  border-block: 3px solid var(--border);
}

.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

.card { height: 100%; }
.card p { margin: 0; color: #2c4147; }
.card--dark p { color: var(--text-dim); }

/* numbered steps */
.step { position: relative; padding-top: 2.4rem; }
.step-no {
  position: absolute;
  top: -1.4rem;
  left: -0.6rem;
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-ink);
  background: var(--amber);
  border: 3px solid var(--border);
  border-radius: 3px;
  box-shadow: 4px 4px 0 rgba(4, 15, 19, 0.45);
}

/* ---------- gallery ---------- */

.shots { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.shot {
  background: var(--ink-2);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--panel-shadow-sm);
  overflow: hidden;
}
.shot img { width: 100%; height: auto; background: var(--ink-3); }
.shot figcaption {
  padding: 0.8rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-top: 3px solid var(--border);
}

.split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); align-items: center; }

/* ---------- store buttons ---------- */

.store-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.store {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.3rem;
  border: 3px solid var(--border);
  border-radius: var(--radius);
  background: var(--ink-2);
  color: var(--cream);
  text-decoration: none;
  box-shadow: var(--panel-shadow-sm);
  min-width: 15rem;
}
.store span { display: block; }
.store .store-name { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.store .store-note { font-size: 0.76rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }
.store svg { flex: none; }

/* ---------- voxel cube ornament ---------- */

.cube-row { display: flex; gap: 0.9rem; margin-bottom: 1.4rem; }
.cube { width: 30px; height: 34px; position: relative; animation: hop 2.4s ease-in-out infinite; }
.cube:nth-child(2) { animation-delay: 0.25s; }
.cube:nth-child(3) { animation-delay: 0.5s; }
.cube i { position: absolute; inset: 0; display: block; }
.cube .top { clip-path: polygon(50% 0, 100% 26%, 50% 52%, 0 26%); background: var(--grass); }
.cube .left { clip-path: polygon(0 26%, 50% 52%, 50% 100%, 0 74%); background: var(--grass-dark); }
.cube .right { clip-path: polygon(100% 26%, 100% 74%, 50% 100%, 50% 52%); background: #2c7a2a; }
.cube--amber .top { background: var(--amber); }
.cube--amber .left { background: var(--amber-dark); }
.cube--amber .right { background: #9c6c06; }
.cube--cream .top { background: var(--cream); }
.cube--cream .left { background: var(--cream-dim); }
.cube--cream .right { background: #b9b198; }

@keyframes hop {
  0%, 70%, 100% { transform: translateY(0); }
  80% { transform: translateY(-8px); }
  90% { transform: translateY(0); }
}

/* ---------- legal / prose ---------- */

.prose { max-width: 46rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2.4rem; color: var(--text-ink); }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--text-ink); }
.prose p, .prose li { color: #24383e; }
.prose ul { padding-left: 1.2rem; }
.prose a { color: #0f5d72; }
.prose .updated {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.5rem 0.8rem;
  background: var(--ink-2);
  color: var(--cream);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 3px;
}

.lang-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.lang-links a {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.7rem;
  border: 2px solid rgba(243, 238, 220, 0.3);
  border-radius: 3px;
  color: var(--cream);
  text-decoration: none;
}
.lang-links a:hover { border-color: var(--amber); }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 0.8rem; max-width: 52rem; }
.faq details {
  background: var(--cream);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--panel-shadow-sm);
  color: var(--text-ink);
}
.faq summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 800;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin: 0 1.2rem 1.2rem; color: #2c4147; }

/* ---------- fact table ---------- */

.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 2px solid rgba(12, 33, 40, 0.15); }
.facts th { width: 34%; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.1em; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 3px solid var(--border);
  background: #081a20;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.footer-grid h3 { font-size: 0.8rem; letter-spacing: 0.16em; color: var(--grass); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-grid a { color: var(--text-dim); text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--cream); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 2px solid rgba(243, 238, 220, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

@media (max-width: 760px) {
  /* Stack the bar: brand and language on top, the links on their own scrolling row. */
  .header-inner { flex-wrap: wrap; gap: 0.4rem 0.6rem; padding: 0.6rem 0 0.45rem; }
  .brand { margin-right: auto; font-size: 1.05rem; }
  .nav {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 0.4rem 0.55rem; font-size: 0.76rem; white-space: nowrap; }
  .lang summary { padding: 0.4rem 0.6rem; }
  .panel { box-shadow: var(--panel-shadow-sm); }
  .step-no { left: 0; top: -1.2rem; }
}

/* ---------- small utilities (kept as classes so the CSP can forbid inline styles) ---------- */

.flush { margin-bottom: 0; }
.flush-top { margin-top: 0; }
.gap-xs { margin-top: 0.6rem; }
.gap-sm { margin-top: 1.3rem; }
.gap-md { margin-top: 1.6rem; }
.gap-lg { margin-top: 2.5rem; }
.gap-xl { margin-top: 3rem; }
.measure-sm { max-width: 24rem; }
.panel--narrow { max-width: 40rem; }
.panel--wide { max-width: 46rem; }
.shot--narrow { max-width: 21rem; justify-self: center; }
