:root {
  --bg-black: #070707;
  --bg-red: #67070f;
  --accent-red: #dd1d33;
  --accent-red-soft: #ff465f;
  --text-main: #f3f3f3;
  --text-dim: #b7b7b7;
  --glass-bg: rgba(12, 12, 12, 0.45);
  --glass-border: rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  scroll-behavior: smooth;
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at 20% 10%, #2a0007 0%, #0d0d0d 40%, #000 100%);
}

body {
  overflow-x: hidden;
}

main {
  scroll-snap-type: y mandatory;
}

.panel {
  position: relative;
  min-height: 100svh;
  padding: 5rem clamp(1rem, 3vw, 3rem) 3rem;
  display: grid;
  place-items: center;
  scroll-snap-align: start;
  isolation: isolate;
}

.panel-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(120, 0, 20, 0.62), rgba(0, 0, 0, 0.9));
  z-index: -2;
}

.panel-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(1px);
}

.home-panel .panel-bg {
  background-image:
    linear-gradient(145deg, rgba(85, 0, 13, 0.6), rgba(0, 0, 0, 0.86)),
    url("assets/resonance-thumbnail.png");
  background-size: cover;
  background-position: center;
}

.trailer-bg {
  filter: blur(4px) saturate(1.1);
  transform: scale(1.03);
  background-image:
    linear-gradient(145deg, rgba(57, 0, 10, 0.75), rgba(0, 0, 0, 0.88)),
    url("assets/trailer-current-bg.png");
  background-size: cover;
  background-position: center;
}

.release-bg {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(195, 22, 56, 0.28), transparent 45%),
    linear-gradient(145deg, rgba(85, 0, 13, 0.7), rgba(0, 0, 0, 0.9));
}

.release-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.release-panel {
  min-height: 100svh;
  padding-top: 2.2rem;
  padding-bottom: 2rem;
}

.developer-bg {
  background-image:
    linear-gradient(160deg, rgba(52, 9, 17, 0.52), rgba(0, 0, 0, 0.94)),
    radial-gradient(circle at 14% 16%, rgba(186, 39, 65, 0.12), transparent 44%),
    url("assets/developers-bg.png");
  background-size: cover;
  background-position: center;
  background-blend-mode: normal, normal, overlay;
  filter: saturate(0.55) contrast(1.02) brightness(0.96);
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
}

.panel-content {
  width: min(1100px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  z-index: 1;
  animation: rise 500ms ease both;
}

.brand-title {
  margin: 0;
  text-align: center;
  letter-spacing: 0.08em;
  font-size: clamp(2.3rem, 8vw, 6.4rem);
  font-weight: 900;
  text-transform: uppercase;
  text-shadow:
    0 0 12px rgba(255, 55, 96, 0.85),
    0 0 34px rgba(255, 10, 80, 0.4),
    0 0 68px rgba(170, 15, 43, 0.35);
}

.home-subtitle {
  margin: 0;
  color: var(--text-dim);
}

.countdown-block {
  width: min(900px, 100%);
}

.countdown-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.count-unit {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 0.85rem 0.65rem;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

.count-unit .value {
  display: block;
  font-size: clamp(1.35rem, 2.7vw, 2.25rem);
  font-weight: 800;
  color: #fff;
}

.count-unit .label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.countdown-finished,
.countdown-finished-btn {
  display: none;
}

.social-buttons {
  margin-top: 0.4rem;
  width: min(900px, 100%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.glass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.8rem 0.75rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 rgba(255, 69, 105, 0);
  transition:
    transform 240ms cubic-bezier(0.2, 0.72, 0.24, 1),
    border-color 240ms ease,
    background 240ms ease,
    box-shadow 260ms ease,
    filter 240ms ease;
}

.glass-btn:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(255, 84, 114, 0.8);
  background: rgba(52, 8, 14, 0.75);
  box-shadow:
    0 0 18px rgba(255, 66, 102, 0.45),
    0 10px 25px rgba(0, 0, 0, 0.35);
  filter: brightness(1.06);
}

.glass-btn.primary {
  border-color: rgba(255, 75, 108, 0.8);
  background: linear-gradient(120deg, rgba(121, 17, 34, 0.74), rgba(78, 7, 19, 0.75));
}

.glass-btn .icon {
  opacity: 0.85;
}

.logo-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
}

.section-heading {
  margin: 0 0 0.45rem;
  font-size: clamp(1.45rem, 2.7vw, 2.1rem);
  letter-spacing: 0.03em;
}

.trailer-panel .section-heading,
.developer-panel .section-heading,
.dev-section h3 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
}

.trailer-panel .panel-content,
.developer-panel .panel-content {
  font-family: "Rajdhani", sans-serif;
}

.glass-card {
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  backdrop-filter: blur(9px);
}

.trailer-content {
  align-items: stretch;
}

.featured-trailer {
  padding: 1rem;
}

.featured-media {
  display: grid;
  gap: 0.7rem;
  text-decoration: none;
  transition: transform 260ms cubic-bezier(0.2, 0.72, 0.24, 1);
}

.featured-media:hover {
  transform: scale(1.008);
}

.featured-thumb {
  min-height: clamp(210px, 33vw, 420px);
  border-radius: 13px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, rgba(210, 20, 54, 0.4), rgba(0, 0, 0, 0.8)),
    url("assets/trailer-1-resonance.png") center / cover;
}

.play-badge {
  justify-self: center;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  color: #fff;
  font-size: 0.85rem;
  transition: box-shadow 240ms ease, border-color 240ms ease;
}

.featured-media:hover .play-badge {
  border-color: rgba(255, 84, 114, 0.82);
  box-shadow: 0 0 14px rgba(255, 66, 102, 0.38);
}

.trailer-name {
  margin: 0.75rem 0 0;
  color: var(--text-dim);
  text-align: center;
}

.trailer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.trailer-tile {
  padding: 0.7rem;
  transition:
    transform 240ms cubic-bezier(0.2, 0.72, 0.24, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.trailer-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 84, 114, 0.7);
  box-shadow: 0 0 18px rgba(255, 66, 102, 0.26);
}

.trailer-tile.active {
  border-color: rgba(255, 84, 114, 0.8);
  box-shadow: 0 0 20px rgba(255, 66, 102, 0.3);
}

.trailer-tile p {
  margin: 0.55rem 0 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.93rem;
}

.tile-thumb {
  min-height: 126px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.tile-thumb.revealed {
  background:
    linear-gradient(165deg, rgba(178, 21, 49, 0.45), rgba(0, 0, 0, 0.8)),
    url("assets/trailer-1-resonance.png") center / cover;
}

.tile-thumb.revealed.rebalance-thumb {
  background:
    linear-gradient(165deg, rgba(178, 21, 49, 0.45), rgba(0, 0, 0, 0.8)),
    url("assets/trailer-2-rebalance.png") center / cover;
}

.tile-thumb.revealed.retribution-thumb {
  background:
    linear-gradient(165deg, rgba(178, 21, 49, 0.45), rgba(0, 0, 0, 0.8)),
    url("assets/trailer-3-retribution.png") center / cover;
}

.tile-thumb.locked {
  background: linear-gradient(165deg, #0e0e0e, #1e1e1e);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
}

.release-content {
  width: min(980px, 100%);
  gap: 0.22rem;
  text-align: center;
  transform: translateY(5.4rem);
}

.game-logo {
  width: min(900px, 100%);
  height: 176px;
  display: grid;
  place-items: center;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  margin: -7.8rem auto 0.55rem;
}

.game-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  filter:
    brightness(1.15)
    contrast(1.12)
    drop-shadow(0 0 22px rgba(208, 48, 80, 0.36));
  transform: translateY(-262px) scale(1.08);
  transform-origin: center;
}

.countdown-finished-btn {
  margin: 0 auto;
}

.release-heading,
.release-tagline {
  margin: 0;
  text-transform: uppercase;
}

.release-heading {
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.24em;
  font-weight: 700;
  color: #e7e7e7;
  margin-top: -0.32rem;
  margin-bottom: 0.15rem;
}

.release-tagline {
  margin-top: 1.9rem;
  margin-bottom: 0.95rem;
  color: #f7d4db;
  letter-spacing: 0.18em;
  font-size: 0.84rem;
}

.release-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

#releaseCountdown {
  margin-top: 0.45rem;
  margin-bottom: 0.35rem;
}

.release-content > .glass-btn {
  margin-top: 0.35rem;
  padding: 0.88rem 1.15rem;
}

.release-row .count-unit {
  background: rgba(0, 0, 0, 0.55);
  border-radius: 18px;
  border-color: rgba(255, 118, 146, 0.42);
}

.release-row .count-unit .value {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 5.8vw, 4rem);
  line-height: 1;
  letter-spacing: 0.03em;
  text-shadow: 0 0 16px rgba(255, 66, 102, 0.3);
}

.release-row .count-unit .label {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: #d8d8d8;
}

.dev-content {
  align-items: stretch;
  gap: 1.6rem;
}

.dev-section h3 {
  margin: 0 0 0.8rem;
  font-size: 1.08rem;
  color: #f7f7f7;
}

.dev-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.lead-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dev-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 0.85rem;
  display: grid;
  gap: 0.55rem;
  transition:
    transform 240ms cubic-bezier(0.2, 0.72, 0.24, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.dev-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.12);
}

.dev-card.lead {
  padding: 1rem;
  border-color: rgba(255, 255, 255, 0.28);
}

.dev-avatar {
  width: 100%;
  min-height: 160px;
  border-radius: 12px;
  background:
    linear-gradient(160deg, rgba(215, 27, 59, 0.4), rgba(0, 0, 0, 0.84)),
    url("assets/dev-kura.png") center / cover;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
}

.dev-card h4 {
  margin: 0;
  font-size: 1rem;
}

.dev-role {
  margin: 0;
  font-size: 0.88rem;
  color: #ff8ba2;
}

.dev-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.dev-links a {
  font-size: 0.76rem;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  transition:
    transform 220ms cubic-bezier(0.2, 0.72, 0.24, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.dev-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 84, 114, 0.75);
  box-shadow: 0 0 10px rgba(255, 66, 102, 0.38);
}

.reserved-slot {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.3);
}

.dot-nav {
  position: fixed;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: grid;
  gap: 0.45rem;
}

.dot-link {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.22);
}

.dot-link.active {
  background: var(--accent-red-soft);
  border-color: var(--accent-red-soft);
  box-shadow: 0 0 12px rgba(255, 87, 118, 0.8);
}

.page-title-glass {
  position: fixed;
  right: 1rem;
  top: 1rem;
  z-index: 12;
  background: rgba(13, 13, 13, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  padding: 0.55rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .social-buttons,
  .countdown-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .release-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .release-panel {
    min-height: 100svh;
    padding-top: 3.25rem;
  }

  .release-content {
    transform: translateY(3.2rem);
  }

  .game-logo {
    height: 132px;
    margin: -3.8rem auto 0.4rem;
  }

  .game-logo img {
    transform: translateY(-136px) scale(1.02);
  }

  .trailer-grid,
  .dev-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .panel {
    padding-top: 4.35rem;
  }

  .social-buttons,
  .countdown-row,
  .trailer-grid,
  .dev-grid,
  .lead-grid {
    grid-template-columns: 1fr;
  }

  .dot-nav {
    display: none;
  }
}
