/* Weasel Duel landing page. Palette from the game UI: dark chocolate, cream text, orange + gold accents. */
@font-face {
  font-family: "Fredoka";
  src: url("../assets/fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #1c120b;
  --bg-2: #24170e;
  --card: #2d1d12;
  --line: rgba(255, 236, 205, 0.1);
  --text: #fbefdc;
  --muted: #cdb9a1;
  --orange: #ff8a2b;
  --gold: #ffd25c;
  --radius: 22px;
  --wrap: 1120px;
  --display: "Fredoka", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  /* underground: the page below the hero is the game's own dirt, darkened */
  background: var(--bg) url("../assets/img/earth.webp") repeat;
  background-size: 384px auto;
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -0.01em; max-width: 30ch; text-wrap: balance; }
h3 { font-size: 1.25rem; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--gold); color: #2a1406; padding: .6rem 1rem; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 1rem; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

/* ------------------------------------------------------------------ header */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .7rem max(1.25rem, env(safe-area-inset-left)) .7rem max(1.25rem, env(safe-area-inset-right));
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.top.is-solid { background: rgba(28, 18, 11, 0.82); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.top__brand img { height: 42px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.top__nav { display: flex; gap: 1.6rem; margin-left: auto; }
.top__nav a {
  text-decoration: none; font: 500 1rem var(--display); color: var(--text); opacity: .88;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}
.top__nav a:hover { opacity: 1; color: var(--gold); }
.top__badge {
  font: 600 .8rem var(--display); letter-spacing: .06em; text-transform: uppercase;
  padding: .35rem .8rem; border-radius: 99px; background: var(--orange); color: #2a1406;
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(78svh, 760px);       /* the trailer peeks in below: the page reads as scrollable */
  display: flex; align-items: flex-end;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
}
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero::before { background: linear-gradient(180deg, rgba(20, 12, 6, .45) 0%, rgba(20, 12, 6, 0) 22%); }
.hero::after {
  inset: auto 0 0 0; height: 120px; z-index: 1;
  background:
    linear-gradient(180deg, rgba(28, 18, 11, 0) 25%, rgba(28, 18, 11, .6) 70%, var(--bg) 100%),
    url("../assets/img/turf-edge.webp") repeat-x left top / auto 120px;
}
.hero__inner {
  width: min(1240px, 100% - 2.5rem); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: end; gap: 1rem;
  padding-top: 7rem;
}
.hero__copy { position: relative; z-index: 2; padding-bottom: clamp(6.5rem, 13vh, 9rem); }
.hero__copy::before {           /* a soft shade behind the text: readable over the bright mountains */
  content: ""; position: absolute; z-index: -1; inset: 18% -8% 22% -14%;
  background: radial-gradient(closest-side, rgba(20, 12, 6, .72), rgba(20, 12, 6, .42) 60%, transparent);
  filter: blur(8px); pointer-events: none;
}
.hero__title img { width: min(440px, 100%); filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .35)); }
.hero__tagline {
  margin-top: 1.2rem; font: 600 clamp(1.35rem, 2.4vw, 1.8rem)/1.25 var(--display);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .5);
}
.hero__tagline em { font-style: normal; color: var(--gold); white-space: nowrap; }
.hero__sub { margin-top: .5rem; color: var(--text); opacity: .9; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.hero__weasels { position: relative; z-index: 2; width: 100%; max-width: 600px; justify-self: end; margin-bottom: 92px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }

/* "Scroll for more": a quiet cue at the bottom of the hero; fades out once the page moves (main.js). */
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.1rem; translate: -50% 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  text-decoration: none; color: var(--text); font: 500 .78rem var(--display); letter-spacing: .12em;
  text-transform: uppercase; opacity: .85; text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
  transition: opacity .4s;
}
.hero__scroll svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.8s ease-in-out infinite; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .5)); }
.hero__scroll:hover { opacity: 1; }
.hero__scroll.is-hidden { opacity: 0; pointer-events: none; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ------------------------------------------------------------------ store pills ("coming soon") */
.stores { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.stores--center { justify-content: center; }
.hero .stores, .cta .stores { display: grid; grid-template-columns: repeat(2, minmax(0, 210px)); }   /* 4 platforms: a tidy 2 x 2 */
.cta .stores { justify-content: center; }
.store {
  display: flex; align-items: center; gap: .65rem;
  padding: .1rem .55rem .2rem .35rem;
  border: 14px solid transparent; border-image: url("../assets/img/button.webp") 30 fill / 14px stretch;
  cursor: default; user-select: none; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35));
}
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; opacity: .92; }
.store span { display: flex; flex-direction: column; font: 600 1.05rem/1.15 var(--display); }
.store small { font: 500 .68rem/1.2 var(--body); letter-spacing: .05em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(3rem, 6vw, 4.75rem) 0; }

.beat { display: inline-block; height: .9em; width: auto; vertical-align: -.1em; margin-right: .45em; transform-origin: 50% 60%; }
.beat--cold { animation: beat 2.2s ease-in-out infinite; }
.beat--warm { animation: beat 1.3s ease-in-out infinite; }
.beat--hot { animation: beat .7s ease-in-out infinite; }
@keyframes beat { 0%, 45%, 100% { transform: scale(1); } 10% { transform: scale(1.2); } 22% { transform: scale(1); } 32% { transform: scale(1.12); } }
.eyebrow {
  font: 600 .82rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--orange);
  margin-bottom: .7rem;
}

/* trailer */
.trailer { padding-top: 0; padding-bottom: clamp(2rem, 4vw, 3rem); margin-top: -1rem; }
.trailer__frame { margin: 0; }
.trailer video {
  width: 100%; border-radius: var(--radius); background: #000;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px var(--line);
}
.trailer figcaption { margin-top: .9rem; color: var(--muted); font-size: .95rem; text-align: center; }

/* special weapons (left half, 2 x 2) + arenas (right half, a loose collage) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.weapons { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem 1rem; margin-top: 1.8rem; }
.weapons li {
  display: grid; grid-template-columns: 56px 1fr; column-gap: .9rem; align-items: center;
  padding: .25rem .35rem;
  border: 16px solid transparent; border-image: url("../assets/img/panel.webp") 34 fill / 16px stretch;
  transition: transform .25s;
}
.weapons li:hover { transform: translateY(-3px); }
.weapons img { grid-row: span 2; width: 56px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.weapons h3 { font-size: 1.05rem; align-self: end; }
.weapons p { color: var(--muted); font-size: .9rem; line-height: 1.35; align-self: start; }

.collage { position: relative; aspect-ratio: 1 / .78; margin-top: 1.2rem; }
.collage img, .device a { cursor: url("../assets/img/aim.png") 16 16, crosshair; }
.collage img {
  position: absolute; border-radius: 50%; height: auto;
  box-shadow: 0 0 0 4px #a8662e, 0 0 0 7px #3b220f, 0 14px 26px rgba(0, 0, 0, .5);
  transition: transform .35s;
}
.collage img:hover { transform: scale(1.08) rotate(0deg) !important; z-index: 5; }
.collage .c1 { left: 3%;  top: 4%;  width: 33%; transform: rotate(-6deg); z-index: 2; }
.collage .c2 { left: 38%; top: 0;   width: 27%; transform: rotate(5deg); }
.collage .c3 { left: 68%; top: 10%; width: 26%; transform: rotate(-3deg); z-index: 2; }
.collage .c4 { left: 21%; top: 44%; width: 31%; transform: rotate(4deg); z-index: 3; }
.collage .c5 { left: 55%; top: 43%; width: 29%; transform: rotate(-5deg); z-index: 2; }
.collage .c6 { left: 0;   top: 58%; width: 17%; transform: rotate(9deg); }
.collage .c7 { left: 44%; top: 30%; width: 14%; transform: rotate(-9deg); z-index: 4; }
.collage .c8 { left: 84%; top: 68%; width: 15%; transform: rotate(7deg); }
.collage .soon { filter: grayscale(.85) brightness(.6); }

/* screenshots: one per device, in a swipeable row of device frames (same height, each its own screen shape) */
.devices {
  --h: clamp(160px, 20vw, 250px);
  display: flex; align-items: flex-end; gap: clamp(1.6rem, 3vw, 2.8rem);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 2.6rem max(1.25rem, calc((100vw - var(--wrap)) / 2)) 1.4rem;
  scrollbar-width: thin; scrollbar-color: rgba(255, 236, 205, .25) transparent;
}
.device { flex: none; scroll-snap-align: center; text-align: center; }
.screens__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.screens__nav { display: flex; gap: .5rem; flex: none; }
.screens__nav button {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font: 600 1.6rem/1 var(--display); color: var(--text);
  background: rgba(255, 236, 205, .06); border: 1px solid var(--line); transition: background .2s, color .2s;
}
.screens__nav button:hover { background: var(--orange); color: #2a1406; }
.device > p { margin-top: 1rem; font: 600 .95rem var(--display); color: var(--muted); letter-spacing: .02em; }
.device a {
  position: relative; display: block; background: #0d0b0a; padding: 8px;
  box-shadow: 0 26px 50px -18px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .35s;
}
.device a:hover { transform: translateY(-6px); }
.device img { height: var(--h); width: auto; max-width: none; border-radius: 6px; }
/* iPhone: round corners, the pill-shaped camera cutout on the left in landscape */
.device--iphone a { border-radius: 38px; padding: 9px; }
.device--iphone img { border-radius: 30px; }
.device--iphone a::before { content: ""; position: absolute; left: 20px; top: 50%; translate: 0 -50%; width: 11px; height: 30%; border-radius: 9px; background: #000; }
/* Android phone: slimmer corners, a punch-hole camera */
.device--android a { border-radius: 24px; padding: 6px; }
.device--android img { border-radius: 19px; }
.device--android a::before { content: ""; position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 9px; height: 9px; border-radius: 50%; background: #000; box-shadow: 0 0 0 2px #1d1b1a; }
/* iPad: even bezel, camera dot on the long side */
.device--ipad a { border-radius: 24px; padding: 14px; background: #1a1817; }
.device--ipad img { border-radius: 10px; }
.device--ipad a::before { content: ""; position: absolute; left: 6px; top: 50%; translate: 0 -50%; width: 5px; height: 5px; border-radius: 50%; background: #3a3633; }
/* handheld PC (Steam Deck style): wide grips with sticks and buttons */
.device--deck a {
  border-radius: 46px; padding: 16px calc(var(--h) * .42); background-color: #1f1e22;
  background-image:
    radial-gradient(circle at calc(var(--h) * .21) 32%, #3b3a40 0 13px, #2a292e 14px 18px, transparent 19px),
    radial-gradient(circle at calc(var(--h) * .21) 70%, #2c2b30 0 9px, transparent 10px),
    radial-gradient(circle at calc(100% - var(--h) * .21) 70%, #3b3a40 0 13px, #2a292e 14px 18px, transparent 19px),
    radial-gradient(circle at calc(100% - var(--h) * .17) 30%, #45434a 0 5px, transparent 6px),
    radial-gradient(circle at calc(100% - var(--h) * .25) 30%, #45434a 0 5px, transparent 6px),
    radial-gradient(circle at calc(100% - var(--h) * .21) 22%, #45434a 0 5px, transparent 6px),
    radial-gradient(circle at calc(100% - var(--h) * .21) 38%, #45434a 0 5px, transparent 6px);
}
.device--deck img { border-radius: 8px; }
/* PC monitor on a stand */
.device--pc a { border-radius: 14px; padding: 10px; }
.device--pc a::after { content: ""; position: absolute; left: 50%; bottom: -34px; translate: -50% 0; width: 18%; height: 34px; background: linear-gradient(#2a2725, #161413); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.device--pc > p { margin-top: calc(1rem + 34px); }
/* VR: the lens view */
.device--vr a { border-radius: 30px; padding: 0; background: #000; }
.device--vr img { border-radius: 30px; }

/* ways to play: an icon per mode (line icons in gold, the game's flags for the languages) */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.2rem; }
.modes li {
  padding: .7rem .8rem .8rem; display: flex; flex-direction: column; gap: .3rem;
  border: 18px solid transparent; border-image: url("../assets/img/panel.webp") 34 fill / 18px stretch;
}
.modes strong { font: 600 1.15rem var(--display); margin-top: .5rem; }
.modes span { color: var(--muted); font-size: .97rem; }
.mode__icon { width: 44px; height: 44px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mode__icon--wide { width: 72px; }
.mode__icon .dot { fill: var(--gold); stroke: none; }
.mode__flags { display: flex; gap: .35rem; height: 44px; align-items: center; }
.mode__flags img { width: 34px; height: 34px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .4)); }

/* closing call to action */
.cta { padding-top: 2rem; }
.cta__card {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 1.5rem;
  text-align: center; padding: 2rem 1.5rem 0;
  border: 28px solid transparent; border-image: url("../assets/img/panel.webp") 34 fill / 28px stretch;
}
.cta__card > div { padding-bottom: 2rem; }
.cta h2 { margin-inline: auto; }
.cta p { color: var(--muted); margin-top: .6rem; }
.cta__face { height: 220px; width: auto; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .45)); }
.cta__face--r { transform: scaleX(-1); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom)); color: var(--muted); font-size: .92rem; }
.foot__row { display: flex; align-items: center; gap: 1.5rem; }
.foot img { height: 34px; width: auto; }
.foot nav { margin-left: auto; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--gold); }

/* lightbox (progressive enhancement: without JS the links open the big picture) */
.lightbox {
  width: min(1400px, 96vw); max-height: 94vh; padding: 0; border: 0; border-radius: 18px;
  background: #000; overflow: visible; color: var(--text);
}
.lightbox::backdrop { background: rgba(10, 6, 3, .86); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; max-height: 94vh; object-fit: contain; border-radius: 18px; }
.lightbox__close, .lightbox__nav {
  position: absolute; border: 0; cursor: pointer; color: var(--text);
  background: rgba(20, 12, 6, .8); border-radius: 50%; width: 46px; height: 46px; font-size: 1.9rem; line-height: 1;
}
.lightbox__close { top: -14px; right: -14px; z-index: 2; }
.lightbox__nav { top: 50%; translate: 0 -50%; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

/* ------------------------------------------------------------------ privacy page */
.page { padding: 8rem 0 4rem; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .5rem; }
.page h2 { font-size: 1.35rem; margin: 2.2rem 0 .6rem; max-width: none; }
.page p, .page li { color: var(--muted); }
.page ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: .35rem; }
.page .updated { color: var(--gold); font-size: .9rem; margin-bottom: 1.2rem; }
.page h3 { font-size: 1.05rem; margin: 1.4rem 0 .5rem; }
.page p + p, .page p + ul, .page ul + p { margin-top: .8rem; }
.page strong { color: var(--text); font-weight: 600; }
.page a { color: var(--gold); }
.page code { font-size: .92em; background: var(--card); padding: .1em .35em; border-radius: 6px; }

/* Coming-soon placeholder (index.html while the game is unfinished) */
.soon { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 3rem 1.25rem; }
.soon h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .top__nav { display: none; }
  .hero { min-height: auto; }
  .hero::before { background: linear-gradient(180deg, rgba(20, 12, 6, .55) 0%, rgba(20, 12, 6, .38) 40%, rgba(20, 12, 6, 0) 62%); }
  .hero__inner { grid-template-columns: 1fr; padding-top: 6rem; gap: 0; }
  .hero__copy { padding-bottom: 1.5rem; text-align: center; }
  .hero__title img { margin-inline: auto; width: min(380px, 80vw); }
  .stores { justify-content: center; }
  .hero .stores, .cta .stores { display: flex; }
  .hero__weasels { justify-self: center; max-width: 340px; margin-bottom: 96px; }
  .hero__copy { padding-bottom: 1rem; }
  .hero__title img { width: min(300px, 70vw); }
  .hero__sub { font-size: .95rem; }
  .stores .store { flex: 1 1 calc(50% - .7rem); justify-content: center; }
  .modes { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }

  .cta__card { grid-template-columns: 1fr; padding: 1.5rem .5rem 0; }
  .cta__face--l { display: none; }
  .cta__face--r { margin: 0 auto; height: 160px; }
  .cta__card > div { padding-bottom: 0; }
  .foot__row { flex-wrap: wrap; justify-content: center; text-align: center; }
  .foot nav { margin-left: 0; }
}
@media (max-width: 520px) {
  .stores { gap: .45rem; }
  .stores .store { flex: 1 1 calc(50% - .45rem); min-width: 0; gap: .4rem; padding: 0 .2rem .1rem .1rem; border-width: 10px; border-image-width: 10px; }
  .store svg { width: 20px; height: 20px; }
  .store span { font-size: .9rem; }
  .store small { font-size: .55rem; letter-spacing: .02em; }
  .modes { grid-template-columns: 1fr; }
  .weapons { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
