:root {
  --bg: #FFFBF0;
  --bg-tinted: #FFF3D6;
  --card: #FFFFFF;
  --text: #3A2612;
  --muted: #6E5438;
  --gold: #F59E0B;
  --gold-dark: #D97706;
  --orange: #E66A1F;
  --green: #2F855A;
  --red: #DC2626;
  --border: #F1DEC0;
  --radius: 22px;
  --shadow: 0 12px 32px rgba(92, 56, 18, 0.10);
  --shadow-hover: 0 18px 40px rgba(92, 56, 18, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}

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

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1.2rem;
  color: var(--orange);
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  gap: 22px;
  font-weight: 600;
  font-size: 0.96rem;
}

.main-nav a {
  color: var(--text);
  padding: 6px 2px;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--orange);
}

.lang-switch {
  display: flex;
  gap: 6px;
  background: var(--bg-tinted);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--gold);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 64px 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(42, 24, 8, 0.82) 0%,
    rgba(42, 24, 8, 0.56) 52%,
    rgba(42, 24, 8, 0.18) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  color: #fff;
}

.pill {
  display: inline-block;
  background: rgba(245, 158, 11, 0.92);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 16px;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  font-size: 1.12rem;
  color: rgba(255, 251, 240, 0.95);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 24px;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #F59E0B, #E66A1F);
  color: #fff;
  box-shadow: 0 8px 22px rgba(230, 106, 31, 0.38);
}

.btn-primary:hover {
  box-shadow: 0 12px 26px rgba(230, 106, 31, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  background: var(--bg-tinted);
  color: var(--text);
  border: 2px solid var(--gold);
  width: 100%;
  margin-top: auto;
}

.btn-outline:hover {
  background: var(--gold);
  color: #fff;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-tinted {
  background: var(--bg-tinted);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  margin-bottom: 10px;
  color: var(--text);
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Media & Trust Cards */
.cards-grid {
  display: grid;
  gap: 26px;
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.media-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.media-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.media-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #FCECC8;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-thumb-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: linear-gradient(135deg, #FFF3C4, #D9F2D9);
}

.media-thumb-logo img {
  object-fit: contain;
  max-height: 100%;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.badge-red { background: var(--red); }
.badge-gold { background: var(--gold-dark); }
.badge-green { background: var(--green); }

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card-body h3 {
  font-size: 1.25rem;
}

.card-body p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* Character Grid */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 22px;
}

.char-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.char-card.clickable {
  cursor: pointer;
  user-select: none;
}

.char-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.char-card.playing {
  transform: scale(1.03);
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.35), var(--shadow-hover);
}

.sound-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 251, 240, 0.92);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
  transition: transform 0.18s ease, background 0.18s ease;
  z-index: 2;
}

.char-card:hover .sound-pill,
.char-card.playing .sound-pill {
  background: var(--gold);
  transform: scale(1.12);
}

.char-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #FFF9EB;
}

.char-info {
  padding: 16px 18px 20px;
}

.char-info h3 {
  font-size: 1.18rem;
  color: var(--orange);
  margin-bottom: 6px;
}

.char-info p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Game Showcase */
.game-showcase {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  background: var(--card);
  border: 3px solid var(--gold);
  border-radius: 28px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.game-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 12px;
}

.game-text p {
  color: var(--muted);
  margin-bottom: 18px;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
  font-weight: 600;
}

.game-visual img {
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Trust Cards */
.trust-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}

.trust-icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.trust-card h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.trust-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Legal pages */
.legal-box {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  max-width: 820px;
  margin: 0 auto;
}

.legal-box h1 {
  color: var(--orange);
  margin-bottom: 18px;
}

.legal-box h2 {
  font-size: 1.25rem;
  margin: 24px 0 8px;
}

.legal-box p {
  color: var(--muted);
  margin-bottom: 10px;
}

.placeholder-note {
  background: #FFF3C4;
  border-left: 4px solid var(--gold);
  padding: 12px 16px;
  border-radius: 8px;
  margin: 16px 0;
  color: var(--text);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: #3A2612;
  color: #FFF3D6;
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-note {
  font-size: 0.9rem;
  color: rgba(255, 243, 214, 0.78);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--gold);
}

/* Responsive */
@media (max-width: 860px) {
  .main-nav {
    display: none;
  }
  .game-showcase {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .hero {
    min-height: 480px;
  }
  .hero-gradient {
    background: linear-gradient(180deg, rgba(42, 24, 8, 0.78) 0%, rgba(42, 24, 8, 0.65) 100%);
  }
}
