@font-face {
  font-family: "Comic Relief";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/comicrelief-700.woff2') format('woff2');
}

@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/mplusrounded1c-400.woff2') format('woff2');
}
@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/mplusrounded1c-500.woff2') format('woff2');
}
@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/mplusrounded1c-700.woff2') format('woff2');
}

:root {
  --bg: #170d10;
  --bg-elevated: #21131a;
  --surface: #2b1922;
  --surface-2: #38212c;
  --border: #55323f;
  --border-soft: #2e1b23;

  --text: #ffffff;
  --text-muted: #ddc9ce;
  --text-faint: #a98d95;

  --gold: #F2A93C;
  --gold-2: #FFD666;

  --purple: #7C3AED;
  --purple-2: #A855F7;

  --grad-gold: linear-gradient(135deg, var(--gold-2), var(--gold));
  --grad-purple: linear-gradient(135deg, var(--purple-2), var(--purple));
  --grad-btn-primary: linear-gradient(180deg, #c084fc, #7C3AED 55%, #5b21b6);
  --grad-btn-ghost: linear-gradient(180deg, #c9903f, #6b4118 60%, #3f2412);

  --radius-sm: 16px;
  --radius-md: 16px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --container: 1180px;
  --container-narrow: 720px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .25s;
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "M PLUS Rounded 1c", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 {
  font-family: "Comic Relief", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p { color: var(--text-muted); }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--gold);
  color: #170d10;
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

.wrap {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.wrap-narrow { max-width: var(--container-narrow); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  border-radius: var(--radius-md);
  font-family: "Comic Relief", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), filter var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  display: flex;
  align-items: stretch;
  width: max-content;
  gap: 0;
  height: 44px;
  padding: 0;
  border: none;
  background: none;
}
.btn-primary .btn-cap {
  flex: 0 0 auto;
  width: 35px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.btn-primary .btn-cap-left { background-image: url('/assets/buttons/button-primary-l-left.webp'); }
.btn-primary .btn-cap-right { background-image: url('/assets/buttons/button-primary-l-right.webp'); }
.btn-primary .btn-center {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 12px;
  padding-inline: .35rem;
  background-image: url('/assets/buttons/button-primary-l-center.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.btn-primary .btn-text {
  color: var(--gold-2);
  font-family: "Comic Relief", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
  white-space: nowrap;
}
.btn-primary:hover { filter: brightness(1.12); }

.btn-ghost {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  height: 36px;
  padding: 0;
  border: none;
  background: none;
}
.btn-ghost .btn-cap {
  flex: 0 0 auto;
  width: 31px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.btn-ghost .btn-cap-left { background-image: url('/assets/buttons/button-secondary-left.webp'); }
.btn-ghost .btn-cap-right { background-image: url('/assets/buttons/button-secondary-right.webp'); }
.btn-ghost .btn-center {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 12px;
  padding-inline: .3rem;
  background-image: url('/assets/buttons/button-secondary-center.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.btn-ghost .btn-text {
  color: var(--gold-2);
  font-family: "Comic Relief", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: .85rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
  white-space: nowrap;
}
.btn-ghost:hover { filter: brightness(1.1); }

.btn-sm { font-size: .85rem; }
.btn-sm.btn-primary { height: 36px; }
.btn-sm.btn-primary .btn-cap { width: 29px; }
.btn-sm.btn-primary .btn-text { font-size: .85rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-soft);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #2a1622, var(--bg));
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; flex-shrink: 0; }
.brand-logo { height: 52px; width: auto; }

.nav-side { display: flex; align-items: center; gap: 1.25rem; min-width: 0; }
.nav-side-left { justify-content: flex-start; }
.nav-side-right { justify-content: flex-end; margin-left: auto; }

.nav-side ul { display: flex; align-items: center; gap: 1.75rem; }
.nav-side ul a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.nav-side ul a:hover { color: var(--text); }

.nav-icon {
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  object-fit: contain;
  color: var(--gold-2);
}
.nav-icon [fill="currentColor"] { fill: url(#icon-gold-grad); }
.nav-icon [stroke="currentColor"] { stroke: url(#icon-gold-grad); }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-actions > * { flex-shrink: 0; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .02);
  color: var(--gold-2);
  flex-shrink: 0;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn-icon:hover { border-color: var(--gold-2); }
.btn-icon svg { width: 20px; height: 20px; }

.bottom-nav { display: none; }

.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-soft);
  padding-top: clamp(3rem, 5vw, 4.5rem);
}

.footer-inner {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
}
@media (min-width: 780px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand .brand-logo { height: 30px; }
.footer-brand p { margin: .9rem 0 1.1rem; font-size: .9rem; max-width: 480px; }

.footer-col h3 {
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .65rem; }
.footer-col a { color: var(--text-muted); font-size: .92rem; transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 1.6rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-legal-text { display: flex; flex-direction: column; gap: .6rem; }
.footer-disclaimer { font-size: .875rem; color: var(--text-faint); max-width: 100%; }

.footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
  color: var(--text-faint);
}

.license-badge, .age-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: .3rem .7rem;
  font-weight: 700;
}
.license-badge { transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.license-badge:hover { border-color: var(--gold-2); color: var(--gold-2); }

@media (max-width: 860px) {
  .nav-side-left { display: none; }

  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  .header-inner {
    flex-wrap: wrap;
    row-gap: .4rem;
    gap: .4rem;
    height: auto;
    min-height: 72px;
    padding-block: .6rem;
  }
  .brand { min-width: 0; flex-shrink: 1; }
  .brand-logo { height: 32px; max-width: 94px; width: auto; object-fit: contain; }

  .nav-side-right { min-width: max-content; flex-shrink: 0; }
  .header-actions { gap: .35rem; flex-wrap: nowrap; }
  .header-actions .btn-sm.btn-primary { height: 34px; }
  .header-actions .btn-sm.btn-primary .btn-cap { width: 27px; }
  .header-actions .btn-sm.btn-primary .btn-center { padding-inline: .3rem; }
  .header-actions .btn-sm.btn-primary .btn-text { font-size: .8rem; }
  .header-actions .btn-ghost { height: 34px; }
  .header-actions .btn-ghost .btn-cap { width: 25px; }
  .header-actions .btn-ghost .btn-center { padding-inline: .3rem; }
  .header-actions .btn-ghost .btn-text { font-size: .8rem; }
  .btn-icon { width: 34px; height: 34px; }
  .btn-icon svg { width: 17px; height: 17px; }

  .bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    height: 64px;
    padding: 0 .5rem calc(0px + env(safe-area-inset-bottom));
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-soft);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: .45rem;
    gap: .1rem;
    flex: 1;
    height: 100%;
    color: var(--text-faint);
    font-size: .72rem;
    font-weight: 600;
    transition: color var(--dur) var(--ease);
  }
  .bottom-nav-item .nav-icon { width: 34px; height: 34px; }
  .bottom-nav-item:hover,
  .bottom-nav-item:active { color: var(--gold-2); }

  @keyframes bottom-nav-play-icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
  }

  .bottom-nav-play { color: var(--gold-2); }
  .bottom-nav-play .nav-icon {
    animation: bottom-nav-play-icon-pulse 2s ease-in-out infinite;
    filter:
      drop-shadow(0 0 5px rgba(242, 169, 60, .85))
      drop-shadow(0 0 11px rgba(242, 169, 60, .5));
  }
  .bottom-nav-play:hover .nav-icon,
  .bottom-nav-play:active .nav-icon { animation-play-state: paused; }
}

.legal-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2rem);
  border-bottom: 1px solid var(--border-soft);
}
.legal-hero .eyebrow {
  color: var(--gold-2);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.legal-hero h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.legal-hero p { margin-top: .8rem; max-width: 720px; font-size: 1rem; }

.legal-content {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(3.5rem, 6vw, 5rem);
  max-width: 780px;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 2.25rem;
  margin-bottom: .75rem;
}
.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  font-size: 1.02rem;
  margin-top: 1.5rem;
  margin-bottom: .5rem;
  color: var(--text);
}

.legal-content p { margin-bottom: 1rem; font-size: .96rem; }

.legal-content ul, .legal-content ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { font-size: .96rem; color: var(--text-muted); }

.legal-content strong { color: var(--text); }

.legal-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--gold-2); }

.legal-table-wrap { overflow-x: auto; margin-bottom: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-md); }
.legal-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.legal-table th, .legal-table td { padding: .7rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.legal-table th { background: var(--surface-2); color: var(--text-faint); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.legal-table tr:last-child td { border-bottom: none; }

.legal-note {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .88rem;
  color: var(--text-faint);
}

.legal-updated { font-size: .82rem; color: var(--text-faint); margin-top: .5rem; }
