*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #1a6fa0;
  min-height: 100dvh;
  overflow-x: hidden;
}

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ── Page layout ── */
.page {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 40px 32px 96px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "title phone"
    "info  phone"
    "cta   phone";
  column-gap: 64px;
  row-gap: 28px;
  max-width: 980px;
  width: 100%;
  align-items: start;
}

/* ── Left column (desktop) ── */
.hero-left { grid-area: info; }
.hero-left .features { margin-bottom: 0; }

/* ── Features section (mobile only, below the fold) ── */
.features-section { display: none; }

/* ── "Play now" label (mobile only) ── */
.play-now { display: none; }

.title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 900;
  font-family: 'Arial Black', 'Arial Bold', Gadget, sans-serif;
  color: #f5c800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.0;
  -webkit-text-stroke: 3px #7a4a00;
  text-shadow:
    -2px -2px 0 #7a4a00,  2px -2px 0 #7a4a00,
    -2px  2px 0 #7a4a00,  2px  2px 0 #7a4a00,
     0   -2px 0 #7a4a00,  0    2px 0 #7a4a00,
    -2px  0   0 #7a4a00,  2px  0   0 #7a4a00,
     5px  6px 0 #3e2600;
  margin-bottom: 10px;
}

.slogan {
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.2em;
  margin-bottom: 36px;
}

/* ── Feature list ── */
.features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 36px;
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #fff;
}

.features li:last-child  { border-bottom: none; }

.feat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.feat-icon.blue   { background: rgba(33,150,243,0.3); }
.feat-icon.yellow { background: rgba(245,200,0,0.25); }
.feat-icon.green  { background: rgba(76,175,80,0.3);  }
.feat-icon.purple { background: rgba(156,39,176,0.3); }

.feat-body strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.feat-body span {
  font-size: 0.82rem;
  opacity: 0.72;
  line-height: 1.4;
}

.feat-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(156,39,176,0.4);
  color: #e1bee7;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── CTA ── */
.cta {
  display: inline-block;
  background: #f5d600;
  color: #1a1a00;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 900;
  padding: 16px 48px;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.3px;
  box-shadow: 0 5px 0 #a07800, 0 12px 36px rgba(0,0,0,0.35);
  transition: transform 0.1s, box-shadow 0.1s;
}

.cta:hover  { transform: translateY(-3px); box-shadow: 0 8px 0 #a07800, 0 18px 48px rgba(0,0,0,0.4); }
.cta:active { transform: translateY(3px);  box-shadow: 0 2px 0 #a07800, 0 6px 18px rgba(0,0,0,0.3);  }

.title-group {
  grid-area: title;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.title-group .title { margin-bottom: 10px; }

.title-group .slogan {
  margin-bottom: 0;
  text-align: center;
}

.cta-wrap {
  grid-area: cta;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-top: -16px;
}

.badge {
  margin-top: 14px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.4px;
}

/* ── Right column — phone + carousel ── */
.hero-right {
  grid-area: phone;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.scroll-hint {
  display: none;
  color: rgba(255,255,255,0.65);
  font-size: 1.3rem;
  animation: bounce 1.8s ease-in-out infinite;
  cursor: pointer;
  user-select: none;
}

.scroll-hint:hover { color: rgba(255,255,255,0.9); }

.scroll-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}

/* ── Footer ── */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 16px 32px 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.logo-dice { color: #f5c800; }

.footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}

.social-icon:hover {
  background: rgba(255,255,255,0.24);
  color: #fff;
  transform: translateY(-3px);
}

.social-icon.x:hover       { color: #fff; }
.social-icon.itchio:hover  { color: #fa5c5c; }
.social-icon.github:hover  { color: #f0f6fc; }
.social-icon.website:hover { color: #f5c800; }

.phone-wrap {
  position: relative;
  width: 220px;
}

.phone-frame {
  background: #0a0f1a;
  border-radius: 32px;
  border: 3px solid rgba(255,255,255,0.18);
  box-shadow:
    0 30px 70px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.06),
    inset 0 0 0 1px rgba(0,0,0,0.4);
  overflow: hidden;
}

.phone-notch {
  height: 14px;
  background: #0a0f1a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-notch::after {
  content: '';
  width: 44px;
  height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
}

.carousel-viewport {
  overflow: hidden;
  width: 214px;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.carousel-track img {
  width: 214px;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
  aspect-ratio: 400 / 600;
}

.phone-caption {
  background: #0a0f1a;
  padding: 8px 0 4px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.phone-dots {
  background: #0a0f1a;
  padding: 6px 0 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  border-radius: 0 0 29px 29px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.dot.active {
  background: #f5c800;
  transform: scale(1.3);
}

/* carousel arrows */
.carr-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 5;
}

.carr-btn:hover { background: rgba(255,255,255,0.32); }
.carr-btn.prev  { left: -16px; }
.carr-btn.next  { right: -16px; }

/* ── Language switcher ── */
.lang-switcher {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
  animation: slideUp 0.5s ease-out 0.4s both;
}

@keyframes slideUp {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.lang-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.lang-btn .fi {
  width: 100%;
  height: 100%;
  display: block;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

.lang-btn:hover { transform: scale(1.1); background: rgba(255,255,255,0.22); }

.lang-btn.active {
  border-color: #f5c800;
  background: rgba(245,200,0,0.18);
  box-shadow: 0 0 10px rgba(245,200,0,0.35);
}

/* ── Music controls ── */
#music-ctrl {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#music-btn {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: #f5c800;
  color: #111;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  overflow: visible;
}

#music-btn:hover { transform: scale(1.08); box-shadow: 0 5px 16px rgba(0,0,0,0.4); }

/* Slash line when muted */
#music-btn.muted::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 70%;
  background: #e02020;
  border-radius: 2px;
  top: 15%;
  left: 50%;
  transform: translateX(-50%) rotate(-45deg);
  pointer-events: none;
}

/* Volume slider — desktop only */
#music-vol {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vol-track {
  position: relative;
  width: 28px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#music-vol-slider {
  position: absolute;
  width: 80px;
  left: -26px;
  top: 29px;
  transform: rotate(-90deg);
  transform-origin: center center;
  cursor: pointer;
  accent-color: #f5c800;
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .page {
    min-height: 100dvh;
    justify-content: flex-start;
    padding-top: 48px;
    padding-bottom: 40px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }

  /* Mobile order: title(1) → features(2) → Play now(3) → carousel(4) → CTA(5) */
  .title-group  { order: 1; margin-left: auto; margin-right: auto; }
  .hero-left    { order: 2; display: block; text-align: left; }
  .play-now     { order: 3; display: block;
                  color: #f5c800;
                  font-size: 1.6rem;
                  font-weight: 900;
                  font-style: italic;
                  font-family: 'Arial Black', 'Arial Bold', Gadget, sans-serif;
                  text-shadow: 2px 3px 0 #7a4a00;
                  align-self: center;
                  scroll-margin-top: 28px; }
  .hero-right   { order: 4; }
  .cta-wrap     { order: 5; align-self: center; margin-top: 0; }

  .features-section { display: none; }
  .features li { text-align: left; }

  .phone-wrap                             { width: 180px; }
  .carousel-viewport, .carousel-track img { width: 174px; }

  .carr-btn.prev { left: -14px; }
  .carr-btn.next { right: -14px; }

  .lang-switcher { bottom: 1rem; right: 1rem; }

  #music-vol { display: none; }

  .site-footer {
    position: relative;
    padding: 24px 32px 32px;
  }
}
