/* Lunilo — strona gry. Kolory wziete z gry: nocne niebo, krem, mieta, ksiezyc, miedz. */
:root {
  --night: #101f38;
  --night-2: #172b48;
  --night-3: #1f3a5f;
  --cream: #ffe7bd;
  --cream-dim: #d9c7a6;
  --mint: #acedbe;
  --mint-2: #7fd39b;
  --moon: #f0a35e;
  --copper: #ca9d65;
  --ink: #0c172b;
  --radius: 26px;
  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 18px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mint); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(34px, 5vw, 52px); font-weight: 900; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--mint); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }

/* --- naglowek --- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(20px, calc((100vw - var(--wrap)) / 2));
  background: rgba(16, 31, 56, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(202, 157, 101, 0.25);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-weight: 900; font-style: italic; font-size: 24px; }
.brand img { border-radius: 10px; }
.top nav { display: flex; gap: clamp(12px, 2.5vw, 28px); }
.top nav a { color: var(--cream-dim); text-decoration: none; font-weight: 700; font-size: 16px; }
.top nav a:hover { color: var(--mint); }

/* --- hero --- */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(24px, 5vw, 64px);
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) 20px clamp(48px, 7vw, 96px);
}
.sky {
  position: absolute; inset: -80px -50vw 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 62%, #fff7 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 30%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 12%, #fff8 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 72% 48%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 22%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 70%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 80%, #fff6 50%, transparent 51%),
    radial-gradient(60% 50% at 75% 45%, rgba(240, 163, 94, 0.16), transparent 70%),
    linear-gradient(180deg, #0b1830 0%, var(--night) 70%);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.85; } to { opacity: 1; } }

.kicker { margin: 0 0 6px; color: var(--mint); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 15px; }
.wordmark {
  font-size: clamp(76px, 13vw, 148px);
  font-weight: 900; font-style: italic; letter-spacing: -0.03em; line-height: 0.95;
  color: var(--cream);
  text-shadow: 0 6px 0 #0a1426, 0 18px 40px rgba(0, 0, 0, 0.35);
}
.lead { font-size: clamp(19px, 2.2vw, 23px); color: var(--cream-dim); max-width: 32em; margin: 22px 0 28px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 190px; padding: 10px 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #c8f5d4, var(--mint-2));
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(127, 211, 155, 0.25);
}
.store-small { font-size: 13px; font-weight: 700; line-height: 1.1; opacity: 0.8; }
.store-big { font-size: 22px; font-weight: 900; line-height: 1.15; }
.button {
  display: inline-flex; align-items: center; padding: 16px 28px; border-radius: 999px;
  font-weight: 800; text-decoration: none;
}
.button.ghost { color: var(--cream); border: 2px solid var(--copper); background: rgba(31, 58, 95, 0.6); }
.button.ghost:hover { background: var(--night-3); color: var(--cream); }

.facts { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { padding: 6px 14px; border-radius: 999px; background: rgba(23, 43, 72, 0.8); border: 1px solid rgba(202, 157, 101, 0.35); font-size: 15px; font-weight: 700; color: var(--cream-dim); }

.hero-art { position: relative; margin: 0; }
.hero-art > img:first-child {
  border-radius: 220px 220px var(--radius) var(--radius);
  border: 2px solid rgba(202, 157, 101, 0.6);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 120px rgba(240, 163, 94, 0.18);
}
.letter { position: absolute; width: 64px; filter: drop-shadow(0 0 14px rgba(255, 220, 150, 0.6)); animation: float 5s ease-in-out infinite; }
.letter.l1 { left: -22px; top: 30%; }
.letter.l2 { right: -14px; top: 62%; width: 52px; animation-delay: -2.5s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(4deg); } }

/* --- jak grac --- */
section { scroll-margin-top: 80px; }
.how, .shots, .faq { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 96px) 20px; }
.section-lead { color: var(--cream-dim); font-size: 20px; margin: 14px 0 34px; max-width: 36em; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; padding: 30px 26px 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--night-2), #132540);
  border: 1px solid rgba(202, 157, 101, 0.45);
}
.card h3 { font-size: 24px; font-weight: 900; margin: 14px 0 8px; }
.card p { margin: 0; color: var(--cream-dim); }
.num {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--mint); color: var(--ink); font-weight: 900; font-size: 22px;
}

/* --- trasa dnia --- */
.daily {
  position: relative;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(24px, 6vw, 80px); align-items: center;
  max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 96px) 20px;
}
.daily::before {
  content: ""; position: absolute; inset: 0 -50vw; z-index: -1;
  background:
    linear-gradient(90deg, var(--night) 0%, rgba(16, 31, 56, 0.92) 42%, rgba(16, 31, 56, 0.25) 100%),
    url("/img/trasa.webp") right max(0px, calc((100vw - var(--wrap)) / 2 - 120px)) center / 620px auto repeat-y;
  border-top: 1px solid rgba(202, 157, 101, 0.25);
  border-bottom: 1px solid rgba(202, 157, 101, 0.25);
}
.daily-text > p { font-size: 20px; color: var(--cream-dim); margin: 16px 0 26px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.ticks li { position: relative; padding-left: 40px; color: var(--cream-dim); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230c172b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.ticks strong { color: var(--cream); }

/* --- telefony --- */
.phone { margin: 0; }
.phone img {
  border-radius: 34px;
  border: 8px solid #0a1324;
  outline: 2px solid rgba(202, 157, 101, 0.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.phone figcaption { text-align: center; margin-top: 14px; font-weight: 800; color: var(--cream-dim); }
.phone.tilt { max-width: 320px; justify-self: center; transform: rotate(3deg); }
.shot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 36px); margin-top: 36px; }
.shot-row .phone:nth-child(2) { transform: translateY(-18px); }

/* --- pytania --- */
.faq h2 { margin-bottom: 26px; }
details {
  border-radius: 18px; background: var(--night-2); border: 1px solid rgba(202, 157, 101, 0.35);
  margin-bottom: 12px; padding: 0 22px;
}
summary { cursor: pointer; padding: 18px 0; font-weight: 800; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--mint); font-size: 26px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 18px; color: var(--cream-dim); }

/* --- stopka --- */
.foot { text-align: center; padding: 56px 20px 40px; border-top: 1px solid rgba(202, 157, 101, 0.25); background: #0c1830; }
.foot-moth { margin: 0 auto 18px; width: 120px; opacity: 0.9; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 0 0 10px; font-weight: 700; }
.foot-small { margin: 0; color: #8f8a80; font-size: 15px; }

/* --- male ekrany --- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .actions, .facts { justify-content: center; }
  .hero-art { max-width: 420px; margin: 8px auto 0; }
  .cards { grid-template-columns: 1fr; }
  .daily { grid-template-columns: 1fr; }
  .daily::before { background: linear-gradient(180deg, rgba(16, 31, 56, 0.9), rgba(16, 31, 56, 0.96)), url("/img/trasa.webp") center / 100% auto repeat-y; }
  .phone.tilt { max-width: 280px; }
  .shot-row { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 24px 4px 8px; }
  .shot-row .phone { scroll-snap-align: center; }
  .shot-row .phone:nth-child(2) { transform: none; }
}
@media (max-width: 560px) {
  .top nav a:not(:last-child) { display: none; }
  .letter.l1 { left: -4px; }
  .letter.l2 { right: -2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sky, .letter { animation: none; }
}
