:root {
  color-scheme: dark;
  --bg: #07110a;
  --surface: #0e1c12;
  --surface-light: #122318;
  --accent: #2fe07a;
  --accent-2: #6ef4a1;
  --accent-3: #1fb864;
  --text: #e9fff2;
  --muted: #96b5a1;
  --border: rgba(233, 255, 242, 0.12);
  --outline: rgba(233, 255, 242, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  background: radial-gradient(circle at top, #0f2a1a 0%, #07110a 55%);
  color: var(--text);
  line-height: 1.6;
  background-image: radial-gradient(rgba(47, 224, 122, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  min-height: 100vh;
  /* Use proximity snapping for a less abrupt feel */
  scroll-snap-type: y proximity;
} 

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(7, 17, 10, 0.45);
  border-bottom: none;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Image-specific brand mark (logo) */
img.brand-mark {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
  /* Plain logo — no decorative styles */
  border: none;
  box-shadow: none;
  background: none;
  padding: 0;
  border-radius: 0;
}

/* Image-specific wordmark (logo) */
img.wordmark {
  /* Limit width so the wordmark doesn't push nav links to a new line */
  max-width: 40%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Prevent nav link text from wrapping */
.nav-links a {
  white-space: nowrap;
}

/* Allow flex items to shrink without causing overflow */
.brand,
.nav-links {
  min-width: 0;
}

@media (max-width: 480px) {
  .nav-links {
    font-size: 0.9rem;
    gap: 12px;
  }

  img.wordmark {
    max-width: 120px;
  }
}

/* Back to top button */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04130a;
  border: 2px solid rgba(7, 17, 10, 0.7);
  box-shadow: 0 8px 0 rgba(0,0,0,0.35);
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, visibility 180ms ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  z-index: 60;
}

.back-to-top:focus {
  outline: 3px solid rgba(47,224,122,0.14);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 480px) {
  .back-to-top {
    right: 12px;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }
}

.phone-container {
  position: relative;
  width: 300px;
  height: 600px;
}

.phone-border {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.phone-content {
  position: absolute;
  top: 12px;
  left: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  border-radius: 18px;
  transition: opacity 360ms ease;
  opacity: 1;

}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}

.nav-links .cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04130a;
  font-weight: 600;
  border: 2px solid rgba(7, 17, 10, 0.7);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.4);
}

/* Mobile menu behavior */
@media (max-width: 720px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: relative;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    right: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    background: var(--surface-light);
    border: 2px solid var(--outline);
    border-radius: 12px;
    box-shadow: 0 12px 0 rgba(0, 0, 0, 0.45);
    transform-origin: top right;
    transform: scaleY(0);
    transition: transform 180ms ease;
    overflow: hidden;
    z-index: 30;
    min-width: 160px;
  }

  .nav-links.open {
    transform: scaleY(1);
  }

  .nav-links a {
    padding: 8px 12px;
  }
}

.panel {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  padding: 140px 8vw 80px;
  scroll-snap-align: start;
  border-bottom: 1px solid rgba(233, 255, 242, 0.08);
}

/* Move reveal animation to inner content so the panel layout stays at 100vh */
.panel-content {
  max-width: 700px;
  transition: transform 560ms cubic-bezier(.22,.95,.32,1), opacity 560ms cubic-bezier(.22,.95,.32,1);
  transform: translateY(18px);
  opacity: 0.88;
  will-change: transform, opacity;
}

.panel.is-active .panel-content {
  transform: translateY(0);
  opacity: 1;
} 

.panel-content {
  max-width: 700px;
}

.panel-media {
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: min(320px, 80vw);
  aspect-ratio: 9 / 19.5;
}

.phone-outline {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.phone-screen {
  position: absolute;
  top: 6.5%;
  left: 50%;
  width: 90%;
  height: 87%;
  object-fit: cover;
}

.panel-landing {
  position: relative;
  background-image: linear-gradient(
      180deg,
      rgba(7, 17, 10, 0.2) 0%,
      rgba(7, 17, 10, 0.75) 70%,
      rgba(7, 17, 10, 0.95) 100%
    ),
    url("assets/header.png");
  background-size: cover;
  background-position: center;
}

/* Small scroll hint centered at the bottom of the landing panel */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: "Fredoka", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.95;
  z-index: 5;
}

.scroll-hint .chev {
  width: 20px;
  height: 20px;
  display: block;
  color: var(--muted);
  stroke: currentColor;
  animation: scroll-bounce 1.6s infinite;
}

@keyframes scroll-bounce {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(6px);
    opacity: 0.6;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}


.panel-landing .panel-content {
  text-align: center;
  margin: 0 auto;
  background: rgba(7, 17, 10, 0.55);
  border: 2px solid var(--outline);
  border-radius: 24px;
  padding: 28px 34px;
  box-shadow: 0 14px 0 rgba(0, 0, 0, 0.5);
}

.panel-feature {
  background: radial-gradient(circle at top left, rgba(47, 224, 122, 0.12), transparent 55%);
}

.panel-tcg {
  background: radial-gradient(circle at bottom right, rgba(110, 244, 161, 0.16), transparent 60%);
}

.panel-studio {
  background: radial-gradient(circle at top right, rgba(47, 224, 122, 0.12), transparent 55%);
}

.panel-careers {
  background: radial-gradient(circle at bottom left, rgba(110, 244, 161, 0.16), transparent 60%);
}

.panel-contact {
  background: radial-gradient(circle at top left, rgba(47, 224, 122, 0.14), transparent 55%);
}

.panel-list {
  margin: 18px 0 0 18px;
  color: var(--muted);
}

.panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.panel-tags span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid var(--outline);
  background: var(--surface-light);
  font-size: 0.85rem;
}

.landing-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.panel h1,
.panel h2 {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 12px;
}

.landing-emblem {
  width: 120px;
  height: auto;
  margin: 0 auto 16px;
  display: block;
}

.section-image {
  width: 100%;
  max-width: 360px;
  height: auto;
  border: 2px solid var(--outline);
  border-radius: 24px;
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.45);
  background: var(--surface-light);
  display: block;
  margin-bottom: 20px;
}

.section > .section-image {
  margin-left: auto;
  margin-right: auto;
}

.hero-image {
  max-width: 320px;
  margin-bottom: 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-content h1 {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.cta,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04130a;
  border: 2px solid rgba(7, 17, 10, 0.7);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.45);
}

/* Store badge styling using official badge assets */
.store-badge {
  display: inline-block;
  text-decoration: none;
}

.store-badge img {
  display: block;
  height: 56px;
  width: auto;
}

.store-badge:hover {
  transform: translateY(-3px);
  filter: brightness(1.06) saturate(1.03);
}

@media (max-width: 600px) {
  .store-badge img {
    height: 48px;
  }
}

.ghost {
  border: 2px solid var(--outline);
  background: var(--surface-light);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.35);
}

.cta:hover,
.ghost:hover,
.menu-toggle:hover,
.nav-links .cta:hover {
  transform: translateY(2px);
  box-shadow: 0 4px 0 rgba(28, 43, 33, 0.2);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.hero-stats div {
  padding: 14px 16px;
  background: var(--surface-light);
  border-radius: 18px;
  border: 2px solid var(--outline);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.35);
}

.hero-stats h3 {
  font-size: 1.4rem;
}

.hero-stats p {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-card {
  display: flex;
  justify-content: center;
}

.glass-panel {
  padding: 28px;
  border-radius: 26px;
  background: var(--surface-light);
  border: 3px solid var(--outline);
  box-shadow: 0 14px 0 rgba(0, 0, 0, 0.45);
}

.glass-panel .label {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.glass-panel h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.glass-panel ul {
  margin: 18px 0 24px 18px;
  color: var(--muted);
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 28px;
}

.section.alt {
  background: var(--surface);
  border-top: 2px dashed rgba(233, 255, 242, 0.2);
  border-bottom: 2px dashed rgba(233, 255, 242, 0.2);
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading h2 {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.highlight-card,
.game-card,
.service-card,
.callout,
.contact-card,
.tcg-card {
  background: var(--surface-light);
  border: 2px solid var(--outline);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.4);
}

.highlight-card ul,
.callout ul {
  margin: 16px 0 0 18px;
  color: var(--muted);
}

.game-card {
  display: grid;
  gap: 8px;
  background: linear-gradient(150deg, rgba(47, 224, 122, 0.22), transparent 70%);
}

.game-card span {
  font-weight: 600;
  color: var(--accent);
}

.service-card p {
  color: var(--muted);
}

.callout {
  background: linear-gradient(130deg, rgba(110, 244, 161, 0.28), transparent 70%);
}

.tcg-card {
  background: linear-gradient(135deg, rgba(47, 224, 122, 0.22), transparent 75%);
}

.tcg-card ul {
  margin: 16px 0 0 18px;
  color: var(--muted);
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.contact-card p {
  color: var(--muted);
}

/* Support card override for the contact panel */
.panel-contact .contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 420px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface-light);
  border: 2px solid var(--outline);
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.35);
}

.panel-contact .contact-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(47, 224, 122, 0.14), rgba(110, 244, 161, 0.08));
  color: var(--accent-2);
}

.panel-contact .contact-info h3 {
  margin-bottom: 6px;
}

.panel-contact .contact-info a {
  color: var(--accent-2);
  text-decoration: underline;
}

.site-footer {
  padding: 20px 8vw;
  border-top: 1px solid rgba(233, 255, 242, 0.06);
  color: var(--muted);
  background: linear-gradient(180deg, rgba(7,17,10,0.3), rgba(7,17,10,0.5));
  backdrop-filter: blur(8px);
}

/* Footer as a full-screen panel */
.site-footer.panel {
  padding: 140px 8vw;
  min-height: 100vh;
  border-top: none;
  border-bottom: none;
  scroll-snap-align: start;
  background: radial-gradient(circle at bottom, rgba(47,224,122,0.04), transparent 60%);
  display: grid;
  align-items: center;
}

.site-footer.panel .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}

.brand-footer {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark.small {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.brand-name-footer {
  font-weight: 600;
}

.site-footer .footer-links {
  display: flex;
  gap: 14px;
}

.site-footer .footer-links a {
  color: var(--muted);
  text-decoration: none;
  opacity: 0.95;
  padding: 6px 8px;
  border-radius: 8px;
}

.site-footer .footer-links a:hover {
  color: var(--accent-2);
  text-decoration: none;
  background: rgba(47,224,122,0.06);
}

.footer-right {
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-link {
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.social-link:hover {
  background: rgba(47,224,122,0.08);
  color: var(--accent-2);
  transform: translateY(-2px);
}

.muted.small {
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .site-footer .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-right {
    width: 100%;
    justify-content: space-between;
  }
}


@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 24px;
    flex-direction: column;
    background: var(--surface);
    padding: 16px;
    border-radius: 16px;
    border: 2px solid var(--outline);
    box-shadow: 0 12px 0 rgba(0, 0, 0, 0.45);
    display: none;
    min-width: 200px;
  }

  .nav-links.open {
    display: flex;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 70px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
