@import url("https://fonts.googleapis.com/css2?family=Lobster&display=swap");

:root {
  color-scheme: dark;
  --gold: #f3c75b;
  --gold-strong: #ffd86b;
  --ink: #090807;
  --panel: rgba(20, 15, 10, 0.7);
  --line: rgba(255, 216, 107, 0.32);
  --text: #fff8e8;
  --muted: rgba(255, 248, 232, 0.68);
  --market-width: min(calc(100vw - 36px), 390px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% -8%, rgba(255, 213, 102, 0.2), transparent 34rem),
    linear-gradient(180deg, #15100c 0%, #070605 52%, #030303 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(110deg, transparent 0 22%, rgba(255, 210, 82, 0.07) 28%, transparent 37%),
    radial-gradient(circle at 12% 78%, rgba(255, 184, 30, 0.18), transparent 18rem);
}

a {
  color: inherit;
}

.page-shell,
.policy-page {
  width: min(100%, 480px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.brand-bar {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 219, 109, 0.42);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}

.brand-name {
  font-family: "Lobster", Georgia, serif;
  font-size: 31px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--gold-strong);
  text-shadow:
    0 1px 0 rgba(90, 52, 0, 0.9),
    0 6px 18px rgba(255, 207, 80, 0.26);
}

.hero {
  flex: 1;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 14px 0 22px;
}

.carousel-frame {
  position: relative;
  width: var(--market-width);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: #0b0805;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 245, 196, 0.05) inset;
}

.carousel {
  width: 100%;
  height: 100%;
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.carousel.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  margin: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #050403;
}

.slider-status {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  height: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 248, 232, 0.35);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.status-dot.is-active {
  width: 26px;
  background: var(--gold-strong);
  box-shadow: 0 0 18px rgba(255, 216, 107, 0.55);
}

.site-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
}

.site-footer a {
  min-height: 42px;
  padding: 10px 16px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 216, 107, 0.42);
  border-radius: 999px;
  background: rgba(255, 216, 107, 0.09);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.site-footer a:focus-visible,
.site-footer a:hover,
.back-home:focus-visible,
.back-home:hover {
  color: var(--gold-strong);
}

.policy-page {
  gap: 36px;
}

.policy-card {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.policy-card h1 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.15;
}

.policy-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.back-home {
  display: inline-flex;
  margin-top: 8px;
  color: var(--gold-strong);
  font-weight: 700;
  text-decoration: none;
}

.top-back {
  margin: 0 0 20px;
}

@media (min-width: 760px) {
  :root {
    --market-width: min(46vw, 520px);
  }

  .page-shell,
  .policy-page {
    width: 100%;
    padding: 24px 52px 30px;
  }

  .brand-bar {
    position: fixed;
    top: 24px;
    left: 32px;
    z-index: 10;
  }

  .hero {
    min-height: calc(100svh - 120px);
    padding-top: 38px;
  }

  .carousel-frame {
    border-radius: 34px;
  }

  .site-footer {
    padding-top: 0;
  }
}

@media (max-height: 720px) {
  :root {
    --market-width: min(calc(100vw - 36px), 330px);
  }

  .brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .brand-name {
    font-size: 28px;
  }

  .hero {
    gap: 12px;
    padding-top: 6px;
  }
}

@media (min-width: 760px) and (max-height: 720px) {
  :root {
    --market-width: min(39vw, 420px);
  }
}

.policy-text {
  margin: 0 0 18px;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  line-height: 1.72;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (min-width: 760px) {
  .policy-page {
    width: min(100%, 980px);
    padding-top: 110px;
  }

  .policy-page .brand-bar {
    position: fixed;
  }
}
