/* Domino Win: Champion Duel — light arena / bento layout */

:root {
  --sky: #7ec8f0;
  --sky-deep: #5eb5e8;
  --grass: #8fd14f;
  --grass-deep: #6fbf3a;
  --cream: #fffbf5;
  --cream-deep: #ffe8dc;
  --ink: #3d2914;
  --ink-soft: #5c4a38;
  --coral: #e87042;
  --coral-dark: #c9562e;
  --brown: #6b3e1e;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(61, 41, 20, 0.14);
  --shadow-sm: 0 10px 28px rgba(61, 41, 20, 0.1);
  --poster-shadow: 0 16px 40px rgba(61, 41, 20, 0.18);
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

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

a {
  color: var(--brown);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Background */
.arena-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.arena-bg__felt {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(126, 200, 240, 0.55), transparent 60%),
    radial-gradient(ellipse 80% 45% at 50% 100%, rgba(143, 209, 79, 0.35), transparent 55%),
    linear-gradient(180deg, #d4effc 0%, var(--cream) 38%, #eef9e4 100%);
}

.arena-bg__pip {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(107, 62, 30, 0.12);
}

.arena-bg__pip--1 { top: 18%; left: 8%; }
.arena-bg__pip--2 { top: 42%; right: 12%; width: 10px; height: 10px; }
.arena-bg__pip--3 { bottom: 22%; left: 35%; background: rgba(232, 112, 66, 0.22); }

/* Ribbon nav */
.ribbon-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--cream-deep);
  transition: box-shadow 0.25s ease;
}

.ribbon-nav.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.ribbon-nav__edge {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--coral) 0 12px,
    var(--white) 12px 24px,
    var(--grass) 24px 36px
  );
  opacity: 0.85;
}

.ribbon-nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--nav-h);
}

.ribbon-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.ribbon-nav__brand em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--coral-dark);
  letter-spacing: 0.02em;
}

.ribbon-nav__icon {
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.ribbon-nav__links {
  display: none;
  gap: 1.5rem;
  margin-left: auto;
  margin-right: 1rem;
}

.ribbon-nav__links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ribbon-nav__links a:hover {
  color: var(--coral);
}

.ribbon-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.ribbon-nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.ribbon-nav__toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
}

@media (min-width: 900px) {
  .ribbon-nav__links {
    display: flex;
  }
  .ribbon-nav__actions {
    margin-left: 0;
  }
  .ribbon-nav__toggle {
    display: none;
  }
}

.nav-sheet {
  position: fixed;
  inset: 0;
  top: calc(var(--nav-h) + 6px);
  z-index: 99;
  padding: 1.25rem;
  background: rgba(255, 246, 237, 0.97);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-sheet[hidden] {
  display: none !important;
}

.nav-sheet a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.5rem 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

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

.btn:focus-visible {
  outline: 3px solid var(--sky-deep);
  outline-offset: 2px;
}

.btn--coral {
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  color: var(--white);
  box-shadow: 0 10px 28px rgba(242, 95, 92, 0.35);
}

.btn--coral:hover {
  box-shadow: 0 14px 32px rgba(242, 95, 92, 0.45);
}

.btn--ghost {
  background: var(--white);
  color: var(--brown);
  border: 2px solid rgba(107, 62, 30, 0.2);
}

.btn--line {
  background: transparent;
  color: var(--ink);
  border: 2px solid rgba(45, 49, 66, 0.15);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 0.85rem 1.5rem;
}

.btn--xl {
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

/* Hero — full banner + poster art (store assets, no crop mockup) */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3.5rem;
}

.hero__banner-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--poster-shadow);
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: var(--sky);
}

.hero__banner {
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
  object-position: center;
  vertical-align: middle;
}

.hero__split {
  margin-top: 2rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero__split {
    grid-template-columns: 1.05fr minmax(280px, 360px);
    gap: 2.75rem;
    margin-top: 2.5rem;
  }
}

.hero__poster {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  padding: 0.5rem 0.75rem 1rem;
}

.hero__poster::before {
  content: "";
  position: absolute;
  inset: 8% 5% 5%;
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(145deg, rgba(126, 200, 240, 0.45), rgba(143, 209, 79, 0.35));
  filter: blur(18px);
  z-index: 0;
  pointer-events: none;
}

.hero__poster img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 100%;
  max-height: min(520px, 70vh);
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--poster-shadow);
  border: 3px solid rgba(255, 255, 255, 0.92);
  transform: rotate(-2deg);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

@media (min-width: 960px) {
  .hero__poster img {
    transform: rotate(-2.5deg);
  }

  .hero__poster:hover img,
  .hero__poster:focus-within img {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 0 22px 48px rgba(61, 41, 20, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__poster img {
    transform: none;
    transition: none;
  }
}

.hero__badge {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral-dark);
  background: rgba(126, 200, 240, 0.45);
  border-radius: 999px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero__title span {
  color: var(--coral);
}

.hero__lead {
  margin: 0 0 1.75rem;
  color: var(--ink-soft);
  max-width: 34rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section-head {
  max-width: 1180px;
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
  text-align: center;
}

.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.section-head h2 span {
  color: var(--coral-dark);
}

.section-head__lead {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--ink-soft);
}

.section-head__hint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* Bento */
.bento {
  padding: 4rem 0 3rem;
}

.bento__grid {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.25rem;
}

.bento__cell {
  flex: 1 1 100%;
  max-width: 100%;
  min-height: 100%;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 232, 220, 0.8);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 640px) {
  .bento__cell {
    flex: 1 1 calc(50% - 0.625rem);
    max-width: calc(50% - 0.625rem);
  }
}

@media (min-width: 960px) {
  .bento__cell {
    flex: 0 1 calc(33.333% - 0.85rem);
    max-width: calc(33.333% - 0.85rem);
  }
}

.bento__cell:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.bento__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--cream);
  border-radius: var(--radius-sm);
  color: var(--coral);
  margin-bottom: 0.75rem;
}

.bento__cell h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.bento__cell p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Gallery track — full posters, centered as a group */
.gallery {
  padding: 3rem 0 4.5rem;
}

.gallery .section-head--row {
  justify-content: center;
  text-align: center;
}

.gallery .section-head__hint {
  flex: 0 0 100%;
  text-align: center;
}

.gallery__scroller {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0.75rem 0 2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--coral) transparent;
}

.gallery__scroller:focus-visible {
  outline: 2px solid var(--sky-deep);
  outline-offset: 4px;
}

.gallery__track {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  width: max-content;
  max-width: none;
  margin: 0 auto;
  padding: 0 1.25rem;
  scroll-snap-type: x mandatory;
}

.gallery__card {
  flex: 0 0 auto;
  scroll-snap-align: center;
  margin: 0;
}

.gallery__card img {
  width: auto;
  max-width: min(300px, 78vw);
  max-height: min(540px, 68vh);
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--poster-shadow);
  border: 3px solid rgba(255, 255, 255, 0.92);
  background: transparent;
}

/* Download */
.download {
  padding: 2rem 1.25rem 5rem;
}

.download__stage {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 1.75rem;
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 3px solid var(--cream-deep);
  position: relative;
}

.download__medal {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--coral), var(--grass-deep));
  color: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.download__stage h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.75rem;
}

.download__stage p {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
}

.download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Footer */
.footer {
  background: var(--white);
  border-top: 3px solid var(--cream-deep);
  padding: 2rem 1.25rem;
}

.footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.footer__links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
}

.footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Modal */
.modal[hidden] {
  display: none !important;
}

.modal:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 49, 66, 0.45);
}

.modal__panel {
  position: relative;
  max-width: 420px;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--cream);
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.modal__pip {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
  margin: 0 auto 1rem;
}

.modal__panel h2 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
}

.modal__panel p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

body.modal-open {
  overflow: hidden;
}
