/* Stone Guardian – page styles (no framework). Night blues and purples, torchlight amber, the guardian's pink glow. */
:root {
  --bg: #0c0b1a;
  --bg-2: #131127;
  --panel: #1a1733;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f3f0fb;
  --muted: #b3aed0;
  --amber: #ffb547;
  --pink: #ffb3d6;
  --violet: #8d6bff;
  --glow: 0 0 24px rgba(141, 107, 255, 0.35);
  --radius: 18px;
  --shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
  --display: "Fredoka", "Trebuchet MS", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  color: var(--text); background: var(--bg);
}
body.has-cookie { padding-bottom: 100px; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(12, 11, 26, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.brand__home { width: 22px; height: 22px; fill: currentColor; }
.socials { display: flex; gap: 6px; }
.socials a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}
.socials a:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }
.socials img, .socials svg { width: 20px; height: 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 1rem var(--sans); color: #1d1405; text-decoration: none; white-space: nowrap;
  background: var(--amber); border: 0; border-radius: 999px; padding: 12px 24px; cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-width: 190px;
  padding: 10px 22px 10px 16px; border-radius: 14px; text-decoration: none;
  background: rgba(12, 11, 26, 0.75); border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.store:hover { transform: translateY(-2px); border-color: var(--amber); box-shadow: 0 8px 26px rgba(255, 181, 71, 0.25); }
.store img { width: 30px; height: 30px; object-fit: contain; }
.store span { display: flex; flex-direction: column; font-weight: 700; font-size: 1.15rem; line-height: 1.15; }
.store small { font-weight: 500; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.icon-btn {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--panel); color: var(--text); border: 1px solid rgba(255, 255, 255, 0.25); cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.icon-btn:hover { border-color: var(--amber); box-shadow: 0 0 16px rgba(255, 181, 71, 0.3); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.text-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; color: var(--pink); }
.text-link:hover { text-decoration: underline; }
.play-icon {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid currentColor;
}
.play-icon::after {
  content: ""; margin-left: 3px; border-style: solid; border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
}

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 820px); display: flex; align-items: flex-end;
  padding: 120px 0 72px;
}
.hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 11, 26, 0.92) 0%, rgba(12, 11, 26, 0.6) 45%, rgba(12, 11, 26, 0.15) 100%),
    linear-gradient(180deg, rgba(12, 11, 26, 0) 55%, var(--bg) 100%);
}
.hero__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.eyebrow, .kicker {
  font-weight: 600; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber);
}
.hero__title img {
  width: min(420px, 78vw); height: auto;
  filter: drop-shadow(0 0 14px rgba(141, 107, 255, 0.9)) drop-shadow(0 0 32px rgba(77, 60, 255, 0.6));
}
.hero__lead { max-width: 46ch; font-size: 1.15rem; color: #ddd8ef; }
.hero .stores { margin-top: 6px; }

/* Sections */
.section { padding: 88px 0; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); }
.section__title {
  margin-top: 6px; font-family: var(--display); font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.15;
}
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
h2.kicker { font-size: 0.95rem; }

.framed {
  border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow), var(--glow);
}
.framed img { width: 100%; }

/* Story */
.story__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.story__text p:not(.kicker) { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }
.story__text p:last-child { color: var(--text); }

/* Two worlds */
.worlds__banner { position: relative; margin-top: 24px; }
.worlds__banner img { aspect-ratio: 16 / 7; object-fit: cover; }
.lore { margin-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.lore__card {
  padding: 26px 28px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--violet);
}
.lore__card h3 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; color: var(--pink); }
.lore__card p { margin-top: 8px; color: var(--muted); }

/* Features */
.features { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px;
  border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
}
.feature__icon {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: rgba(255, 181, 71, 0.12); color: var(--amber);
}
.feature__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature p { color: #d6d1ea; }

/* Screenshot strip */
.scroller-nav { display: flex; gap: 10px; }
.shots {
  margin-top: 32px; display: flex; gap: 18px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 6px max(16px, (100% - 1120px) / 2) 24px;
  scroll-padding-inline: max(16px, (100% - 1120px) / 2);
}
.shots::-webkit-scrollbar { display: none; }
.shots li { flex: 0 0 min(560px, 84vw); scroll-snap-align: start; }
.shots button {
  display: block; width: 100%; padding: 0; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px;
  overflow: hidden; background: var(--bg-2); cursor: zoom-in; transition: transform 0.2s, box-shadow 0.2s;
}
.shots button:hover { transform: translateY(-3px); box-shadow: var(--glow); }

/* Videos */
.videos { margin-top: 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: #000; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: var(--shadow);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__poster { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; cursor: pointer; background: none; color: var(--text); }
.video__poster img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); transition: filter 0.2s; }
.video__poster:hover img { filter: brightness(0.78); }
.video__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 78px; height: 78px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 30px rgba(255, 181, 71, 0.5);
}
.video__play::after {
  content: ""; position: absolute; left: 31px; top: 24px;
  border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent #1d1405;
}
.video__label { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-weight: 600; }

/* Closing */
.cta__inner { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
.cta__capsule { width: 280px; border-radius: 16px; box-shadow: var(--shadow), 0 0 40px rgba(255, 179, 214, 0.25); }
.cta__text > p:not(.kicker) { margin-top: 14px; color: var(--muted); font-size: 1.1rem; }
.cta .stores { margin-top: 24px; }

/* Footer */
.footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; background: var(--bg-2); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--text); text-decoration: underline; }

/* Cookie notice */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 760px; margin-inline: auto;
  display: flex; align-items: center; gap: 18px; padding: 14px 16px 14px 22px; border-radius: 16px;
  background: rgba(26, 23, 51, 0.97); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: var(--shadow);
  font-size: 0.95rem;
}
.cookie[hidden] { display: none; }
.cookie p { flex: 1; color: var(--muted); }
.cookie .btn { padding: 9px 24px; }

/* Lightbox */
.lightbox { width: min(1200px, 100% - 32px); max-height: calc(100% - 32px); padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(6, 5, 14, 0.9); }
.lightbox img { width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 12px; }
.lightbox .icon-btn { position: absolute; }
.lightbox__close { top: -58px; right: 0; }
.lightbox__prev { left: 0; bottom: -60px; }
.lightbox__next { right: 0; bottom: -60px; }

/* Back to top */
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 30; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }
body.has-cookie .to-top { bottom: 104px; }

/* Responsive */
@media (max-width: 960px) {
  .story__inner { grid-template-columns: 1fr; gap: 36px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .videos { grid-template-columns: 1fr; }
  .cta__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 32px; }
  .cta .stores { justify-content: center; }
}
@media (max-width: 640px) {
  .hero { min-height: 0; padding: 96px 0 56px; }
  .hero::after {
    background: linear-gradient(180deg, rgba(12, 11, 26, 0.45) 0%, rgba(12, 11, 26, 0.85) 55%, var(--bg) 100%);
  }
  .hero__inner { align-items: center; text-align: center; }
  .stores { justify-content: center; width: 100%; }
  .store { min-width: 0; flex: 1 1 150px; gap: 10px; padding: 10px 14px 10px 12px; }
  .store span { font-size: 1.05rem; white-space: nowrap; }
  .section { padding: 64px 0; }
  .lore, .features { grid-template-columns: 1fr; }
  .lore__card { padding: 22px 20px; }
  .worlds__banner img { aspect-ratio: 16 / 9; }
  .section__head { flex-wrap: wrap; }
  .cta__capsule { width: 220px; }
  .cookie { flex-direction: column; align-items: stretch; text-align: center; }
}
