/* ---------- Site tokens (Ghost Lizard brand) ---------- */
:root {
  --ink: #0b0c16;
  --ink-2: #1a1c2b;
  --lime: #98e767;
  --lime-deep: #6fc23f;
  --gray: #56605a;
  --paper: #edf4ee;
  --paper-2: #f7faf6;
  --radius: 28px;
  --wrap: 1120px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 { line-height: 1.1; margin: 0; }

.eyebrow {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray);
}
.eyebrow--lime { color: var(--lime); }

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn--lime {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--lime-deep), 0 10px 24px rgb(11 12 22 / .15);
}
.btn--lime:hover { transform: translateY(-2px); }
.btn--lime:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--lime-deep), 0 4px 10px rgb(11 12 22 / .15); }

:focus-visible { outline: 3px solid var(--lime-deep); outline-offset: 3px; border-radius: 6px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(237 244 238 / .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(11 12 22 / .06);
}
.nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .02em;
}
.nav__links {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease;
}
.nav__links a:hover { background: rgb(152 231 103 / .35); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 16px 72px;
  text-align: center;
}
.hero__glow {
  position: absolute;
  inset: -20% 10% auto;
  height: 520px;
  background: radial-gradient(closest-side, rgb(152 231 103 / .55), transparent);
  filter: blur(20px);
  z-index: -1;
}
.hero__logo {
  width: min(560px, 100%);
  margin: 0 auto;
  animation: float 6s ease-in-out infinite;
}
.hero__title {
  margin-top: 8px;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -.02em;
}
.hero__title span {
  background: linear-gradient(transparent 62%, var(--lime) 62%);
  padding: 0 4px;
}
.hero__lead {
  max-width: 520px;
  margin: 16px auto 28px;
  font-size: 18px;
  color: var(--gray);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Games ---------- */
.games {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 16px 80px;
}
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }

/* ---------- News ---------- */
.news {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px 80px;
}
.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.news__rss {
  font-weight: 600;
  font-size: 14px;
  color: var(--gray);
}
.news__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
}
.news__card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--paper-2);
  box-shadow: 0 4px 0 rgb(11 12 22 / .08), 0 12px 28px rgb(11 12 22 / .08);
  transition: transform .15s ease;
}
.news__card:hover { transform: translateY(-3px); }
.news__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #dfe8e0; }
.news__body { padding: 16px 18px 20px; }
.news__date { font-size: 13px; font-weight: 600; color: var(--gray); }
.news__title { margin: 4px 0 8px; font-size: 20px; font-weight: 800; }
.news__open {
  all: unset;
  cursor: pointer;
}
/* Whole card is clickable via the title button */
.news__open::after { content: ""; position: absolute; inset: 0; }
.news__open:focus-visible { outline: none; }
.news__card:has(.news__open:focus-visible) { outline: 3px solid var(--lime-deep); outline-offset: 3px; }
.news__summary { margin: 0; color: var(--gray); }

.news-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100% - 48px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: 0 24px 48px rgb(11 12 22 / .35);
}
.news-dialog::backdrop { background: rgb(11 12 22 / .55); }
.news-dialog__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-dialog__body { padding: 20px 24px 28px; }
.news-dialog__body h3 { margin: 4px 0 12px; font-size: clamp(22px, 4vw, 30px); font-weight: 800; }
.news-dialog__content img { border-radius: 12px; }
.news-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font: 700 24px/1 var(--font);
  cursor: pointer;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 16px;
  display: grid;
  gap: 32px;
  justify-items: center;
  text-align: center;
}
.contact__logo { width: min(280px, 70%); opacity: .95; }
.contact__body h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 10px; }
.contact__body p { margin: 0 0 24px; color: #b9c2bc; }
.contact__mail {
  display: inline-block;
  font-size: clamp(20px, 4vw, 30px);
  font-weight: 800;
  color: var(--lime);
  text-decoration: none;
  word-break: break-all;
  border-bottom: 3px solid currentColor;
  padding-bottom: 2px;
  transition: color .15s ease;
}
.contact__mail:hover { color: #fff; }

@media (min-width: 820px) {
  .contact {
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    text-align: left;
    gap: 64px;
    padding: 96px 16px;
  }
  .contact__logo { width: 300px; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #8b948e;
  border-top: 1px solid var(--ink-2);
  padding: 20px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  font-size: 14px;
}
.footer p { margin: 0; }
.footer a { color: #8b948e; }

/* =========================================================
   Game banner: Beach Volleyball Pro League
   Uses the game's own "Pink Flat" design system — scoped here only.
   ========================================================= */
.game--beach-volley {
  --bv-flamingo: #ff9ec0;
  --bv-flamingo-edge: #f06a9c;
  --bv-ink: #2e3170;
  --bv-ink-2: #5f6294;
  --bv-sun: #ffd86e;
  --bv-sun-edge: #f0b43c;
  --bv-sky: #bdeff5;
  --bv-sea: #8ed9e6;
  --bv-sand: #fce7c2;
  --bv-shell-edge: #f2d3df;

  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  gap: 24px;
  padding: 28px 20px 32px;
  border-radius: var(--radius);
  color: var(--bv-ink);
  font-family: "Fredoka", var(--font);
  font-weight: 700;
  box-shadow: 0 24px 48px rgb(46 49 112 / .28);
}

.bv__scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    var(--bv-sky) 0 34%,
    var(--bv-sea) 34% 52%,
    var(--bv-sand) 52% 100%
  );
}
.bv__sun {
  position: absolute;
  top: -60px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--bv-sun);
  box-shadow: 0 10px 0 var(--bv-sun-edge);
}

.bv__content { display: grid; gap: 18px; justify-items: center; text-align: center; }

.bv__brand { transform: rotate(-3deg); display: grid; justify-items: start; }
.bv__kicker {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bv-ink);
  color: #fff;
  font-family: "Lilita One", sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.bv__logo {
  margin-top: 4px;
  font-family: "Lilita One", sans-serif;
  font-weight: 400;
  font-size: clamp(44px, 11vw, 76px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--bv-flamingo);
  -webkit-text-stroke: 14px var(--bv-ink);
  paint-order: stroke fill;
  text-shadow: 0 6px 0 var(--bv-ink);
  white-space: nowrap;
}

.bv__lead {
  max-width: 460px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--bv-ink);
}

.bv__modes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  width: min(320px, 100%);
}
.bv__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 18px;
  text-align: left;
  background: rgb(255 255 255 / .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 0 rgb(242 211 223 / .95), 0 8px 16px rgb(46 49 112 / .12);
}
.bv__row strong { display: block; font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 18px; line-height: 1.2; }
.bv__row small { display: block; font-size: 12.5px; color: var(--bv-ink-2); }

.bv__bubble {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.bv__bubble svg { width: 24px; height: 24px; fill: currentColor; }
.bv__bubble--yellow { background: #fff0c2; color: #c98a10; }
.bv__bubble--pink { background: #ffe0ec; color: #e0558c; }
.bv__bubble--mint { background: #ddf6e8; color: #3fa073; }

.bv__cta { margin: 4px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.bv__soon {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 24px;
  background: var(--bv-flamingo);
  color: var(--bv-ink);
  font-family: "Lilita One", sans-serif;
  font-weight: 400;
  font-size: 24px;
  text-transform: uppercase;
  box-shadow: 0 6px 0 var(--bv-flamingo-edge), 0 14px 24px rgb(46 49 112 / .28);
}
.bv__platform {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bv-ink);
  color: #fff;
  font-size: 13px;
}

.bv__art { display: grid; place-items: center; order: -1; }
.bv__art img {
  width: min(200px, 56vw);
  border-radius: 22%;
  transform: rotate(6deg);
  box-shadow: 0 6px 0 var(--bv-flamingo-edge), 0 20px 36px rgb(46 49 112 / .3);
  transition: transform .3s cubic-bezier(.34, 1.35, .64, 1);
}
.game--beach-volley:hover .bv__art img { transform: rotate(0deg) scale(1.04); }

@media (min-width: 820px) {
  .game--beach-volley {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    padding: 48px 56px;
    min-height: 460px;
  }
  .bv__scene {
    background: linear-gradient(
      to bottom,
      var(--bv-sky) 0 40%,
      var(--bv-sea) 40% 56%,
      var(--bv-sand) 56% 100%
    );
  }
  .bv__sun { width: 260px; height: 260px; top: -80px; right: -60px; }
  .bv__content { justify-items: start; text-align: left; }
  .bv__cta { justify-content: flex-start; }
  .bv__art { order: 0; }
  .bv__art img { width: 300px; }
}

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