:root {
  --color-primary: #ff8a1f;
  --color-primary-dark: #c95f00;
  --color-primary-deep: #9f4700;
  --color-secondary: #ffd166;
  --color-background: #0f172a;
  --color-background-alt: #1e3a8a;
  --color-text: #f8fbff;
  --color-text-muted: #d6e4ff;
  --color-border: rgba(255, 255, 255, 0.2);
  --wood-base: #8b5a2b;
  --wood-dark: #6e431d;
  --tile-border: #4d2c10;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0 28px,
      rgba(255, 255, 255, 0.012) 28px 56px
    ),
    linear-gradient(180deg, var(--color-background) 0%, var(--color-background-alt) 100%);
  color: var(--color-text);
  line-height: 1.72;
}

h1,
h2,
h3 {
  font-family: "Lilita One", "Fredoka One", "Inter", sans-serif;
  letter-spacing: 0.01em;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

.section__title {
  font-size: clamp(1.65rem, 2.6vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 1.6rem;
  text-align: center;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(
      circle at top,
      rgba(255, 209, 102, 0.22),
      rgba(15, 23, 42, 0)
    ),
    linear-gradient(180deg, #0f172a 0%, #172554 58%, #1e3a8a 100%);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding: 2.5rem 0;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(2rem, 7.5vw, 3.8rem);
  line-height: 1.08;
  font-weight: 400;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.hero__subheadline {
  max-width: 760px;
  color: var(--color-text-muted);
  font-size: clamp(1rem, 3.9vw, 1.28rem);
}

.hero__art {
  width: min(460px, 92vw);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
  animation: floating 3.6s ease-in-out infinite;
}

.cta-container {
  width: 100%;
  max-width: 320px;
  margin-top: 0.6rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.65rem 1rem 0.65rem 0.85rem;
  border-radius: 14px;
  font-weight: 700;
  text-align: left;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.store-btn__label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.store-btn__kicker {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.92;
}

.store-btn__brand {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.store-btn__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-btn__icon--google-play svg {
  display: block;
}

.store-btn--google-play {
  border: 2px solid #0d0d0d;
  background: linear-gradient(180deg, #3c4043 0%, #202124 100%);
  color: #ffffff;
  box-shadow: 0 6px 0 #000000, 0 11px 24px rgba(0, 0, 0, 0.35);
}

.store-btn--google-play .store-btn__kicker {
  color: #e8eaed;
}

.store-btn--google-play:hover,
.store-btn--google-play:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #000000, 0 14px 26px rgba(0, 0, 0, 0.38);
  filter: brightness(1.05);
}

.store-btn--google-play:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #000000, 0 4px 10px rgba(0, 0, 0, 0.3);
}

.store-btn--discord {
  border: 2px solid #23272a;
  background: linear-gradient(180deg, #7289da 0%, #5865f2 100%);
  color: #ffffff;
  box-shadow: 0 6px 0 #4752c4, 0 11px 24px rgba(0, 0, 0, 0.28);
}

.store-btn--discord .store-btn__icon--discord {
  color: #ffffff;
}

.store-btn--discord:hover,
.store-btn--discord:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #4752c4, 0 14px 26px rgba(0, 0, 0, 0.32);
  filter: brightness(1.03);
}

.store-btn--discord:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #4752c4, 0 4px 10px rgba(0, 0, 0, 0.25);
}

.store-btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.feature-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.11) 0%,
    rgba(0, 0, 0, 0.14) 100%
  ),
  repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0 8px,
    rgba(0, 0, 0, 0.05) 8px 16px
  );
  background-color: var(--wood-base);
  border: 4px solid var(--tile-border);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 6px 0 var(--wood-dark), 0 14px 24px rgba(0, 0, 0, 0.28);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: #f9ecd9;
}

.showcase {
  text-align: center;
}

.showcase__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  width: min(100%, 680px);
  margin: 0 auto;
}

.showcase__shot {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.showcase__caption {
  margin-top: 0.95rem;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.site-footer {
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem 0 2rem;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  color: var(--color-text-muted);
}

.footer__content nav {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
}

.footer__content a:hover,
.footer__content a:focus-visible {
  color: var(--color-text);
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.legal-page {
  min-height: 100vh;
}

.legal {
  padding: 3rem 0 4rem;
}

.legal h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 0.5rem;
  text-align: center;
}

.legal__updated {
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
}

.legal__text {
  white-space: pre-wrap;
  background: rgba(0, 0, 0, 0.28);
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem;
  color: #f8f8f8;
  line-height: 1.55;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
}

.legal__back {
  margin-top: 1rem;
  text-align: center;
}

.legal__back a {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .features__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-card {
    padding: 1.5rem;
  }

  .showcase__gallery {
    gap: 1rem;
  }
}
