/* ===========================================================
   Gone Exploring — website styles
   Palette taken from the game menu + the Blue Current branding:
   deep navy ink, soft sky-blue water, red octopus, itch red.
   =========================================================== */

:root {
  --ink: #15263f;         /* deep navy — text + dark buttons */
  --ink-soft: #4a5d7a;    /* muted navy for body copy */
  --navy: #12273f;        /* steam/wishlist button */
  --navy-2: #1d3a5c;
  --red: #e0523f;         /* octopus / itch red */
  --red-dark: #c8412e;
  --sky: #e9f3fc;
  --sky-2: #d6eafb;
  --accent: #2f74b8;      /* icon blue */
  --card: #ffffff;
  --card-tint: #f4f9fe;
  --line: rgba(21, 38, 63, 0.10);

  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 22px 48px -24px rgba(21, 38, 63, 0.45);
  --shadow-soft: 0 12px 30px -18px rgba(21, 38, 63, 0.30);
  --maxw: 1180px;

  --font-head: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

/* Fredoka has no Cyrillic, so Ukrainian headings use a playful Cyrillic font instead */
html[lang="uk"] { --font-head: "Comfortaa", "Fredoka", system-ui, sans-serif; }
html[lang="uk"] h1, html[lang="uk"] h2, html[lang="uk"] h3,
html[lang="uk"] .faq summary { font-weight: 700; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  background:
    radial-gradient(1100px 520px at 78% -8%, #ffffff, transparent 60%),
    linear-gradient(180deg, var(--sky) 0%, #f3f9fe 50%, #fbfdff 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; color: var(--ink); font-weight: 600; }

.section { padding: 84px 0; position: relative; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); display: flex; align-items: center; gap: 12px; }
.section-head .icon-lead { width: 30px; height: 30px; color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  letter-spacing: .3px; text-transform: uppercase;
  padding: 14px 22px; border-radius: 12px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-steam { background: var(--navy); color: #fff; box-shadow: var(--shadow-soft); }
.btn-steam:hover { background: #0c1d31; }
.btn-itch { background: var(--red); color: #fff; box-shadow: var(--shadow-soft); }
.btn-itch:hover { background: var(--red-dark); }
.btn-appstore { background: #1b1b22; color: #fff; box-shadow: var(--shadow-soft); }
.btn-appstore:hover { background: #000; }
/* Official-style Ko-fi button (footer) */
.kofi-btn { display: inline-flex; align-items: center; gap: 12px;
  background: #72a4f2; color: #241f20; font-family: var(--font-head); font-weight: 700;
  font-size: 1.04rem; padding: 12px 24px; border-radius: 16px; box-shadow: var(--shadow-soft);
  transition: transform .15s ease, background .2s; white-space: nowrap; }
.kofi-btn:hover { background: #5f96ee; transform: translateY(-2px); }
.footer-actions { display: flex; align-items: center; gap: 16px; }
.kofi-btn svg { width: 32px; height: 27px; filter: drop-shadow(0 0 1.2px #fff) drop-shadow(0 0 1.2px #fff); }

/* "coming soon" buttons — greyed out and not yet clickable */
.btn.is-soon { background: #e7edf4; color: #8aa0bd; box-shadow: none; cursor: not-allowed; }
.btn.is-soon:hover { transform: none; background: #e7edf4; }
.btn .soon { font-family: var(--font-body); font-size: .62rem; font-weight: 800; letter-spacing: .5px;
  text-transform: uppercase; background: rgba(22,38,63,.13); color: inherit; padding: 3px 7px; border-radius: 6px; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-soft); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 16px; font-size: .82rem; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 60; backdrop-filter: blur(10px);
  background: rgba(244, 250, 255, 0.82); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 22px; height: 70px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.brand-octo { display: none; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 14px; }
.nav-links a { color: var(--ink); font-weight: 700; font-size: .96rem; }
.nav-links a:hover { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 16px; margin-left: auto; flex-shrink: 0; }
.socials { display: flex; align-items: center; gap: 14px; }
.socials a { color: var(--ink); display: grid; place-items: center; transition: color .2s, transform .15s; }
.socials a:hover { color: var(--accent); transform: translateY(-2px); }
.socials svg { width: 22px; height: 22px; }
.socials .kofi-ico svg { width: 27px; height: 27px; }
.lang { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.lang-btn { background: none; border: 0; padding: 3px; cursor: pointer; border-radius: 7px; line-height: 0;
  flex-shrink: 0; opacity: .45; filter: saturate(.6); transition: opacity .2s, filter .2s, transform .15s; }
.lang-btn img { width: 26px; height: 18px; object-fit: cover; border-radius: 4px; box-shadow: 0 1px 3px rgba(21,38,63,.25); }
.lang-btn:hover { opacity: .85; transform: translateY(-1px); }
.lang-btn.active { opacity: 1; filter: saturate(1); outline: 2px solid var(--accent); outline-offset: 1px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 54px; align-items: center; }
.pill { display: inline-block; background: rgba(47,116,184,.12); color: var(--accent);
  font-family: var(--font-head); font-weight: 600; letter-spacing: .4px; text-transform: uppercase;
  font-size: .82rem; padding: 6px 15px; border-radius: 999px; margin-bottom: 18px; }
.hero-lead { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.18; margin-bottom: 22px; }
.hero-copy { color: var(--ink-soft); font-size: 1.02rem; max-width: 500px; margin-bottom: 28px; }
.hero-copy p { margin-bottom: 14px; }
.hero-copy p:last-child { margin-bottom: 0; }
.hero-copy strong { color: var(--ink); }
.store-label {
  color: var(--ink-soft);
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .4px;
  line-height: 1.2;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-btns .btn { min-width: 138px; }

.hero-art { position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: -8% -6% -6% -8%;
  background: radial-gradient(closest-side, rgba(47,116,184,.28), transparent 75%);
  z-index: -1; border-radius: 50%;
}
.hero-art img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); border: 4px solid #fff; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--card); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow-soft); border: 1px solid var(--line); transition: transform .2s;
}
.feature:hover { transform: translateY(-5px); }
.feature .chip {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(160deg, #e6f1fb, #d3e8fa); color: var(--accent); margin-bottom: 16px;
}
.feature .chip svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.1rem; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: .96rem; }

/* ---------- Screenshots carousel ---------- */
.screens-band { background: linear-gradient(180deg, #e7f2fc, #f3f9fe); }
.screens-title { gap: 14px !important; flex-wrap: wrap; }
.screens-title img { height: 40px; width: auto; border-radius: 9px; box-shadow: var(--shadow-soft); }
.carousel { position: relative; width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.car-window { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); border: 4px solid #fff; }
.car-track { display: flex; height: 100%; transition: transform .45s ease; }
.car-slide { flex: 0 0 100%; height: 100%; }
.car-slide img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.car-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.94); color: var(--ink); box-shadow: var(--shadow-soft);
  display: grid; place-items: center; transition: background .2s, transform .15s;
}
.car-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.car-arrow.prev { left: -6px; } .car-arrow.next { right: -6px; }
.car-arrow svg { width: 28px; height: 28px; }
.dots { display: flex; justify-content: center; gap: 9px; margin-top: 24px; }

/* ---------- Gift Shop ---------- */
.shop-band { background: linear-gradient(180deg, #f3f9fe, #eaf4fd); }
.shop-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.shop-item { display: block; background: #fff; border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow-soft); border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.shop-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.shop-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.shop-cta-row { text-align: center; margin-top: 36px; }
.btn-shop { background: #e4141b; color: #fff; box-shadow: var(--shadow-soft); }
.btn-shop:hover { background: #c00f16; }
@media (max-width: 620px) {
  .shop-items { grid-template-columns: repeat(2, 1fr); }
}
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--sky-2); cursor: pointer; transition: background .2s, transform .2s; padding: 0; }
.dots button.active { background: var(--accent); transform: scale(1.25); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(12, 22, 38, .92);
  display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; }
.lightbox-close { position: absolute; top: 18px; right: 26px; font-size: 2.4rem; color: #fff; cursor: pointer; line-height: 1; }

/* ---------- Trailer (inline, click-to-play) ---------- */
.trailer-band { background: linear-gradient(180deg, #e7f2fc, #f3f9fe); }
.video { position: relative; width: min(960px, 100%); margin: 0 auto; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 4px solid #fff;
  cursor: pointer; background: #000; }
.video-poster { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.video:hover .video-poster { transform: scale(1.03); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; margin: auto; width: 86px; height: 86px; border: 0;
  border-radius: 50%; background: rgba(225, 82, 63, .92); color: #fff; display: grid; place-items: center;
  cursor: pointer; box-shadow: var(--shadow); transition: transform .15s ease, background .2s; }
.video:hover .video-play { transform: scale(1.08); background: var(--red); }
.video-play svg { width: 36px; height: 36px; margin-left: 5px; }
.video.playing .video-poster, .video.playing .video-play { display: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 22px; margin-bottom: 14px; box-shadow: var(--shadow-soft); overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-family: var(--font-head);
  font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding: 0 0 20px; margin-top: -4px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c7d6ea; padding: 56px 0 34px; margin-top: 30px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-cta h3 { color: #fff; font-size: 1.5rem; margin-bottom: 6px; }
.footer-cta p { color: #9fb3cf; }
.footer-mid { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 24px; }
.footer .brand img { height: 34px; filter: brightness(0) invert(1); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: #c7d6ea; font-weight: 700; }
.footer-links a:hover { color: #fff; }
.footer .socials a { color: #c7d6ea; }
.footer .socials a:hover { color: #fff; }
.footer-note { display: flex; align-items: center; gap: 9px; color: #8398b6; margin-top: 18px; font-size: .85rem; }
.footer-note img { height: 22px; width: auto; border-radius: 5px; flex-shrink: 0; }

/* ---------- Legal / document pages ---------- */
.nav-back { margin-left: auto; font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.nav-back:hover { color: var(--accent); }
.legal { max-width: 780px; margin: 0 auto; padding: 56px 0 84px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 6px; }
.legal .updated { color: var(--ink-soft); margin-bottom: 28px; }
.legal .lead { font-size: 1.08rem; color: var(--ink); background: var(--card-tint);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 8px; }
.legal h2 { font-size: 1.5rem; margin: 36px 0 12px; }
.legal h3 { font-size: 1.15rem; margin: 22px 0 8px; }
.legal p { color: var(--ink-soft); margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 16px; }
.legal li { color: var(--ink-soft); margin-bottom: 8px; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal strong { color: var(--ink); }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 700;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 200; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; max-width: 520px; }
}
/* collapse the centre links into a hamburger menu before the bar gets cramped */
@media (max-width: 960px) {
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    background: rgba(244,250,255,.98); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { display: flex; max-height: 380px; }
  .nav-links a { padding: 15px 24px; width: 100%; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
}
@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
  .car-arrow { width: 42px; height: 42px; }
  .car-arrow svg { width: 24px; height: 24px; }
  .section { padding: 60px 0; }
}
/* very small screens: keep just the essentials in the bar */
@media (max-width: 560px) {
  .nav-right .socials { display: none; }
  .brand-wordmark { display: none; }
  .brand-octo { display: block; height: 34px; }
  .nav-inner { gap: 12px; }
  .nav-right { gap: 12px; }
  .nav-right .btn-steam span { display: none; }
  .nav-right .btn-steam { padding: 10px 13px; }
  .nav-right .btn-steam svg { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
