@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/fraunces-600.woff2") format("woff2");
}
@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/fraunces-700.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/nunito-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/nunito-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/nunito-sans-700.woff2") format("woff2");
}

:root {
  --indigo: #120c2b;
  --indigo-2: #1b1240;
  --indigo-3: #2a1760;
  --raspberry: #ff3d81;
  --raspberry-deep: #c21a58;
  --gold: #ffc83d;
  --gold-2: #ffe9a8;
  --text: #f7f0e4;
  --muted: #d7c6ea;
  --line: color-mix(in srgb, #fff 18%, transparent);
  --font-display: Fraunces, Georgia, serif;
  --font-text: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: min(70rem, calc(100% - 1.5rem));
  --reel-x: 20.5%;
  --reel-y: 23%;
  --reel-w: 58.6%;
  --reel-h: 55.2%;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-text);
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgb(255 61 129 / 0.18), transparent 40%),
    radial-gradient(circle at 80% 0%, rgb(255 200 61 / 0.12), transparent 35%),
    linear-gradient(180deg, rgb(18 12 43 / 0.7), rgb(18 12 43 / 0.92)),
    url("../assets/pattern-bg.webp") center / 420px;
  min-height: 100dvh;
  line-height: 1.5;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--gold-2); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus {
  inset-inline-start: 8px;
  inset-block-start: 8px;
  z-index: 90;
  background: var(--gold);
  color: var(--indigo);
  padding: 0.5rem 0.75rem;
}

.wrap { width: var(--wrap); margin-inline: auto; }

h1, h2, h3, .brand {
  font-family: var(--font-display);
  font-weight: 700;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 0.95;
  margin: 0;
  color: var(--gold-2);
  transform: rotate(-1.5deg);
  text-shadow: 3px 4px 0 var(--raspberry-deep);
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  margin: 0 0 0.6rem;
  color: var(--gold-2);
  transform: rotate(-0.6deg);
}

.badge-18 {
  display: inline-grid;
  place-items: center;
  min-inline-size: 2.6rem;
  min-block-size: 2.6rem;
  border-radius: 40% 50% 45% 55%;
  background: var(--raspberry);
  color: #fff;
  font-weight: 800;
  transform: rotate(8deg);
}

.site-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgb(18 12 43 / 0.55), transparent);
  padding-block: 0.4rem;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gold-2);
  text-decoration: none;
  font-size: 1.05rem;
  text-shadow: 0 2px 0 #000;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 30% 40% 35% 45%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.nav {
  display: none;
  position: absolute;
  inset-inline: 0.75rem;
  top: 3.6rem;
  background: var(--indigo-2);
  border: 3px solid var(--gold);
  border-radius: 1.2rem;
  padding: 0.8rem;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 50;
}
.nav.open { display: flex; }
.nav a { color: var(--text); text-decoration: none; font-weight: 800; }
.header-tools { display: flex; align-items: center; gap: 0.45rem; }
.menu-toggle {
  min-block-size: 2.75rem;
  min-inline-size: 2.75rem;
  border: 3px solid var(--gold);
  background: var(--raspberry);
  color: #fff;
  border-radius: 1rem 0.6rem 1.1rem 0.7rem;
  font-weight: 800;
  cursor: pointer;
  transform: rotate(-3deg);
}

.hero {
  position: relative;
  min-block-size: 100svh;
  display: grid;
  align-content: end;
  padding-block: 4.2rem 1.2rem;
}
.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-scene img { width: 100%; height: 100%; object-fit: cover; object-position: 82% 48%; }
.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(18 12 43 / 0.94) 0%, rgb(18 12 43 / 0.78) 16%, rgb(18 12 43 / 0.25) 32%, transparent 46%, rgb(18 12 43 / 0.32) 100%),
    radial-gradient(circle at 55% 58%, transparent 28%, rgb(18 12 43 / 0.52) 84%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
}

.sign {
  background: var(--gold);
  color: var(--indigo);
  padding: 0.3rem 0.85rem 0.4rem;
  border-radius: 1rem 1.4rem 0.8rem 1.2rem;
  transform: rotate(-2deg);
  box-shadow: 4px 5px 0 var(--raspberry-deep);
  text-align: center;
}
.sign h1 { color: var(--indigo); text-shadow: none; transform: none; font-size: clamp(1.15rem, 3.2vw, 1.85rem); }
.sign p { margin: 0.1rem 0 0; font-weight: 800; font-size: 0.85rem; }

.playfield { width: min(56rem, 100%); }

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  container-type: inline-size;
  background: url("../assets/ui-cabinet.png") center / 100% 100% no-repeat;
  box-shadow: 0 1.2rem 1.6rem rgb(0 0 0 / 0.45);
}

.hud {
  position: absolute;
  inset-inline: 20%;
  top: 7.2%;
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  pointer-events: none;
  z-index: 2;
}
.hud-plaque {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(#efe3cc, #c9b48c);
  color: #3a2410;
  border: 2px solid #8a6a38;
  border-radius: 0.35rem;
  padding: 0.2rem 0.6rem;
  font-weight: 800;
  font-size: clamp(0.78rem, 3.1cqw, 1.05rem);
  box-shadow: inset 0 1px 0 #fff6e8, 0 2px 0 #6a5030;
}
.hud-plaque img { width: 1.15rem; height: 1.15rem; border-radius: 30%; }

.reels {
  position: absolute;
  left: var(--reel-x);
  top: var(--reel-y);
  width: var(--reel-w);
  height: var(--reel-h);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  column-gap: 2.05%;
  background: transparent;
  padding: 0;
}
.reel {
  overflow: hidden;
  height: 100%;
  container-type: size;
  border-radius: 0;
  background: #14102c;
}
.strip { display: flex; flex-direction: column; will-change: transform; }
.sym {
  height: calc(100cqh / 4);
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}
.sym img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grid-mask {
  position: absolute;
  inset: 0;
  background: url("../assets/ui-grid-mask.png") center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 2;
}
.payline {
  position: absolute;
  left: var(--reel-x);
  top: calc(var(--reel-y) + var(--reel-h) * 0.356);
  width: var(--reel-w);
  height: 0.85cqw;
  background: color-mix(in srgb, var(--raspberry) 80%, #fff);
  box-shadow: 0 0 1.2cqw var(--raspberry);
  pointer-events: none;
  opacity: 0.9;
  z-index: 3;
}
.reels.is-win { filter: drop-shadow(0 0 1rem var(--gold)); }
.sym.hit img { animation: pop 0.45s ease 4; }
@keyframes pop {
  50% { transform: scale(1.18) rotate(-6deg); }
}
.banner {
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: 3;
  transform: translate(-50%, -50%) scale(0);
  font-family: var(--font-display);
  font-size: 7cqw;
  color: var(--gold-2);
  text-shadow: 0.3cqw 0.4cqw 0 var(--raspberry-deep);
  pointer-events: none;
  white-space: nowrap;
}
.banner.show { animation: bannerPop 1.5s ease forwards; }
@keyframes bannerPop {
  0% { transform: translate(-50%, -50%) scale(0) rotate(-8deg); }
  22% { transform: translate(-50%, -50%) scale(1.12) rotate(3deg); }
  80% { opacity: 1; }
  100% { transform: translate(-50%, -80%) scale(1); opacity: 0; }
}
.spark {
  position: absolute;
  z-index: 4;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 40% 50%;
  background: var(--gold);
  pointer-events: none;
  animation: fly 1.1s ease-out forwards;
}
@keyframes fly {
  to { transform: translate(var(--dx), var(--dy)) rotate(180deg); opacity: 0; }
}

.spin {
  position: absolute;
  left: 50%;
  bottom: 4.8%;
  width: 10.5%;
  z-index: 4;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  background: url("../assets/btn-turn.webp") center / cover;
  color: transparent;
  box-shadow: 0 0.4rem 0 #7a4a00;
}
.spin:hover:not(:disabled) { background-image: url("../assets/btn-turn-hover.webp"); transform: translateX(-50%) scale(1.04); }
.spin:active:not(:disabled) { transform: translateX(-50%) translateY(3px); box-shadow: 0 0.15rem 0 #7a4a00; }
.spin:disabled { filter: grayscale(0.4); cursor: wait; }

.ctrl {
  position: absolute;
  bottom: 6.2%;
  z-index: 6;
  min-block-size: 2.4rem;
  padding-inline: 0.7rem;
  border: 2px solid #8a6a38;
  background: linear-gradient(#efe3cc, #c9b48c);
  color: #3a2410;
  font-weight: 800;
  font-size: clamp(0.65rem, 2.4cqw, 0.85rem);
  cursor: pointer;
  border-radius: 0.4rem;
  box-shadow: inset 0 1px 0 #fff6e8, 0 2px 0 #6a5030;
  pointer-events: auto;
  touch-action: manipulation;
}
.ctrl[aria-pressed="true"] {
  background: linear-gradient(#ffe9a8, #e0b84a);
}
.ctrl-mute { left: 16%; }
.ctrl-reset { right: 16%; }
.msg {
  position: absolute;
  left: 24%;
  right: 24%;
  top: calc(var(--reel-y) + var(--reel-h) + 1.1%);
  z-index: 2;
  margin: 0;
  text-align: center;
  font-weight: 800;
  font-size: clamp(0.62rem, 2.1cqw, 0.82rem);
  color: var(--gold-2);
  text-shadow: 0 1px 0 #000;
  pointer-events: none;
}

.band { padding-block: clamp(2rem, 5vw, 3.6rem); content-visibility: auto; }

.set-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 0.8rem;
  padding-block: 0.8rem;
}
.set-item {
  width: min(8.5rem, 42%);
  text-align: center;
}
.set-item:nth-child(odd) { transform: rotate(-4deg); }
.set-item:nth-child(even) { transform: rotate(5deg) translateY(0.8rem); }
.set-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 28% 32% 26% 34%;
  border: 4px solid var(--gold);
  background: #140b28;
}
.set-item figcaption { margin-top: 0.3rem; font-weight: 800; color: var(--gold-2); }
.set-item small { color: var(--muted); font-weight: 700; }

.pay-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.pay-chips span {
  background: var(--raspberry-deep);
  border-radius: 1rem 0.5rem;
  padding: 0.3rem 0.7rem;
  font-weight: 800;
  transform: rotate(-2deg);
}

.turns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.turn {
  background: #3a2412;
  border: 4px solid var(--gold);
  border-radius: 1.4rem 0.8rem 1.5rem 1rem;
  padding: 1rem;
  transform: rotate(-1deg);
}
.turn:nth-child(2) { transform: rotate(2deg) translateY(1rem); }
.turn:nth-child(3) { transform: rotate(1.5deg); }
.turn:nth-child(4) { transform: rotate(-2.5deg) translateY(0.4rem); }
.num { font-family: var(--font-display); font-size: 2.2rem; color: var(--raspberry); }
.turn h3 { margin: 0.2rem 0; color: var(--gold-2); transform: none; }
.turn p { margin: 0; }

.band-honest { position: relative; isolation: isolate; min-block-size: 26rem; display: grid; align-items: end; }
.band-honest .scene { position: absolute; inset: 0; z-index: -1; }
.band-honest .scene img { width: 100%; height: 100%; object-fit: cover; }
.quote {
  width: min(34rem, 100%);
  margin: 1.5rem auto;
  background: var(--gold);
  color: var(--indigo);
  padding: 1.1rem 1.2rem;
  border-radius: 1.5rem 0.8rem 1.6rem 1rem;
  transform: rotate(-1.2deg);
  box-shadow: 6px 8px 0 var(--raspberry-deep);
}
.quote h2 { color: var(--indigo); transform: none; }
.quote p { margin: 0.35rem 0 0; font-weight: 700; }

.faq details { border-block-end: 3px dashed color-mix(in srgb, var(--gold) 45%, transparent); padding-block: 0.8rem; }
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold-2);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0.4rem 0 0; max-width: 60ch; }

.contact-scene { position: relative; border-radius: 1.8rem 1rem; overflow: hidden; border: 4px solid var(--gold); }
.contact-scene img { width: 100%; min-block-size: 26rem; object-fit: cover; }
.letter {
  position: absolute;
  inset-inline-end: 4%;
  inset-block-end: 6%;
  width: min(22rem, 92%);
  background: var(--gold-2);
  color: #2a1a12;
  padding: 1rem;
  border-radius: 0.6rem 1.3rem;
  transform: rotate(-2deg);
  box-shadow: 6px 8px 0 var(--raspberry-deep);
}
.letter h2 { color: #5a2a12; transform: none; }
.letter label { display: block; font-weight: 800; margin: 0.4rem 0; }
.letter input,
.letter textarea {
  width: 100%;
  margin-top: 0.2rem;
  border: 3px solid #3a2412;
  background: #fffaf0;
  color: #2a1a12;
  border-radius: 0.6rem;
  padding: 0.55rem;
  font: inherit;
}
.letter textarea { min-block-size: 5rem; resize: vertical; }
.send {
  width: 100%;
  margin-top: 0.6rem;
  min-block-size: 3.2rem;
  border: 0;
  background: var(--raspberry);
  color: #fff;
  font-weight: 800;
  border-radius: 1rem 0.6rem;
  cursor: pointer;
}
.form-status { margin: 0.4rem 0 0; font-weight: 800; }
.form-status.error { color: #9b1c1c; }

.site-footer {
  background: #0a0718;
  padding-block: 1.8rem 2.2rem;
  border-block-start: 6px solid var(--raspberry);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.2rem; }
.footer-links { display: grid; gap: 0.4rem; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 700; }
.footer-contact {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 28ch;
}
.social-links,
.help-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.social-links a,
.help-links a {
  background: var(--raspberry-deep);
  padding: 0.35rem 0.65rem;
  border-radius: 0.9rem 0.4rem;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
}
.social-links a {
  background: var(--indigo-3);
  border: 2px solid color-mix(in srgb, var(--gold) 55%, transparent);
}

.legal { padding-block: 2rem 3.5rem; }
.overlay {
  position: fixed;
  inset: 0;
  background: rgb(8 5 18 / 0.8);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 1rem;
}
.overlay.show { display: grid; }
.age-box {
  width: min(24rem, 100%);
  background: var(--gold);
  color: var(--indigo);
  border-radius: 1.6rem 1rem 1.8rem 1.2rem;
  padding: 1.2rem;
  text-align: center;
  transform: rotate(-1deg);
  box-shadow: 8px 10px 0 var(--raspberry-deep);
}
.age-box h2 { color: var(--indigo); transform: none; }
.age-box img { width: 110px; height: 110px; margin-inline: auto; border-radius: 30%; }
.age-box .btn-yes,
.age-box .btn-no {
  min-block-size: 3.2rem;
  padding-inline: 1rem;
  margin: 0.3rem;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  border-radius: 1.1rem 0.7rem;
}
.age-box .btn-yes { background: var(--indigo); color: var(--gold); }
.age-box .btn-no { background: transparent; border: 3px solid var(--indigo); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; }

.cookie-banner {
  position: fixed;
  inset-inline: 1rem;
  inset-block-end: 1rem;
  z-index: 70;
  display: none;
  width: min(30rem, calc(100% - 2rem));
  background: var(--indigo-2);
  border: 4px solid var(--gold);
  border-radius: 1.2rem 0.7rem;
  padding: 0.9rem;
}
.cookie-banner.show { display: block; }
.cookie-banner h2 { font-size: 1.15rem; }
.btn-yes, .btn-no, .chip { font: inherit; }
.btn {
  min-block-size: 3.2rem;
  padding-inline: 1rem;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  border-radius: 1.1rem 0.7rem;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.btn-primary { background: var(--indigo); color: var(--gold); }
.btn-ghost { background: transparent; border: 3px solid currentColor; color: inherit; }

.chip {
  min-block-size: 2.8rem;
  padding-inline: 0.9rem;
  border: 0;
  background: var(--gold);
  color: var(--indigo);
  font-weight: 800;
  border-radius: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

@media (min-width: 900px) {
  .hero { align-content: center; padding-block-start: 5rem; }
}

@media (max-width: 900px) {
  .hero { min-block-size: auto; padding-block: 3.6rem 0.8rem; }
  .turns { grid-template-columns: 1fr; }
  .turn:nth-child(n) { transform: rotate(-1deg); }
  .footer-grid { grid-template-columns: 1fr; }
  .brand span { font-size: 0.92rem; }
  .band { padding-block: 1.4rem 1.6rem; }
  #house-set {
    padding-inline: 0.85rem;
  }
  #house-set .wrap {
    width: 100%;
  }
  .set-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem 0.45rem;
    padding-block: 0.4rem 0.6rem;
    padding-inline: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .set-item,
  .set-item:nth-child(odd),
  .set-item:nth-child(even) {
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    transform: none;
  }
  .set-item img {
    border-width: 3px;
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  .set-item small { display: none; }
  .pay-chips { gap: 0.25rem; }
  .pay-chips span { padding: 0.2rem 0.5rem; font-size: 0.78rem; }
  .contact-scene {
    overflow: visible;
    display: grid;
    gap: 0;
    border: 0;
    background: transparent;
  }
  .contact-scene picture {
    display: block;
    border: 4px solid var(--gold);
    border-radius: 1.4rem 0.8rem;
    overflow: hidden;
  }
  .contact-scene img {
    min-block-size: 16rem;
  }
  .letter {
    position: relative;
    inset: auto;
    width: auto;
    margin: -2.4rem 0.85rem 0;
    transform: rotate(-1deg);
    z-index: 1;
  }
}

@media (max-width: 520px) {
  .playfield { width: 100%; }
  .spin { width: 15%; bottom: 3.6%; z-index: 5; }
  .ctrl { min-block-size: 2.2rem; padding-inline: 0.45rem; }
  .ctrl-mute { left: 6%; }
  .ctrl-reset { right: 6%; }
  .sign { padding: 0.22rem 0.7rem 0.28rem; }
  .sign h1 { font-size: 1.15rem; }
  .sign p { font-size: 0.75rem; }
  .cookie-banner { inset-inline: 0.6rem; inset-block-end: 0.6rem; padding: 0.65rem; }
  .cookie-banner h2 { font-size: 1rem; margin: 0 0 0.2rem; }
  .cookie-banner p { margin: 0 0 0.4rem; font-size: 0.85rem; }
  .msg {
    display: block;
    font-size: 0.68rem;
    left: 18%;
    right: 18%;
  }
  #house-set {
    padding-inline: 1rem;
  }
  .set-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 0.6rem;
  }
  .letter {
    margin: -1.8rem 0.65rem 0;
    padding: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
