/* Northy Playroom — shared stylesheet */

/* ---------- tokens ---------- */
:root {
  --c-bg: #faf7ef;
  --c-surface: #ffffff;
  --c-ink: #2e2547;
  --c-ink-2: #605677;
  --c-purple: #5b3e9e;
  --c-purple-deep: #452d7c;
  --c-gold: #f2b705;
  --c-gold-ink: #8a6a00;
  --c-tint: #f3effa;
  --c-gold-tint: #fbf3dc;
  --c-line: rgba(91, 62, 158, 0.16);
  --shadow-float: 0 14px 34px rgba(69, 45, 124, 0.11);
  --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  --radius-tile: 18px;
  --radius-btn: 12px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --font-stack: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --wrap: 1080px;
}

/* ---------- reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  padding-bottom: 58px; /* room for the fixed age bar */
}

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

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 var(--space-3);
  font-weight: 800;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p, ul, ol {
  margin: 0 0 var(--space-3);
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.wrap--narrow {
  max-width: 760px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- buttons (outlined / ghost) ---------- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  color: var(--c-purple);
  background: transparent;
  border: 2px solid var(--c-purple);
  border-radius: var(--radius-btn);
  padding: 10px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: rgba(91, 62, 158, 0.09);
  text-decoration: none;
}

.btn:active {
  background: rgba(91, 62, 158, 0.16);
}

.btn--strong {
  background: var(--c-tint);
}

.btn--strong:hover {
  background: rgba(91, 62, 158, 0.16);
}

.btn--small {
  padding: 6px 14px;
  font-size: 0.9rem;
  border-width: 1.5px;
}

.btn--gold {
  color: var(--c-gold-ink);
  border-color: var(--c-gold-ink);
}

.btn--gold:hover {
  background: var(--c-gold-tint);
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn[disabled]:hover {
  background: transparent;
}

.btn[aria-pressed="true"] {
  background: var(--c-purple);
  color: #fff;
}

/* ---------- badges (tiny uppercase labels) ---------- */
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c-ink-2);
  background: var(--c-tint);
  border-radius: 6px;
  padding: 3px 9px;
  vertical-align: middle;
}

.badge--gold {
  background: var(--c-gold-tint);
  color: var(--c-gold-ink);
}

.badge--dark {
  background: var(--c-purple-deep);
  color: #f3edff;
}

/* ---------- section rhythm & dividers ---------- */
.section {
  padding-block: var(--space-7);
}

.section--tint {
  background: var(--c-tint);
}

.section-rule {
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: var(--c-gold);
  margin: 0 auto var(--space-6);
}

.kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-purple);
  margin-bottom: var(--space-2);
}

.lede {
  font-size: 1.12rem;
  color: var(--c-ink-2);
  max-width: 62ch;
}

/* ---------- header ---------- */
.site-head {
  background: var(--c-surface);
  border-bottom: 2px solid var(--c-purple-deep);
}

.site-head__box {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-block: var(--space-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--c-ink);
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.site-nav {
  display: flex;
  gap: var(--space-3) var(--space-4);
  flex-wrap: wrap;
  margin-inline-start: auto;
}

.site-nav__link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-ink-2);
}

.site-nav__link:hover {
  color: var(--c-purple);
}

.site-nav__link[aria-current="page"] {
  color: var(--c-purple);
}

.coin-chip {
  margin: 0;
  font-weight: 800;
  background: var(--c-gold-tint);
  border: 1.5px solid rgba(138, 106, 0, 0.35);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.coin-chip__label {
  color: var(--c-gold-ink);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-inline-end: 4px;
}

.coin-chip__value {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .site-head__box {
    gap: var(--space-3);
  }
  .site-nav {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .site-nav__link {
    white-space: nowrap;
  }
  .coin-chip {
    margin-inline-start: auto;
  }
}

/* ---------- hero ---------- */
.hero {
  background-image: linear-gradient(rgba(250, 247, 239, 0.36), rgba(250, 247, 239, 0.2) 55%, var(--c-bg)), url("/assets/img/bg-aurora.jpg");
  background-size: cover;
  background-position: center top;
  padding-block: var(--space-8) var(--space-7);
}

.hero__inner {
  max-width: 720px;
}

.hero h1 {
  margin-bottom: var(--space-3);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  margin-block: var(--space-5) var(--space-4);
}

@media (max-width: 720px) {
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hero__stat {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-inner);
  padding: var(--space-3);
}

.hero__stat strong {
  display: block;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  color: var(--c-purple-deep);
}

.hero__stat span {
  font-size: 0.88rem;
  color: var(--c-ink-2);
}

.hero__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}

/* small aurora band for subpage headers */
.page-head {
  background-image: linear-gradient(rgba(250, 247, 239, 0.5), var(--c-bg)), url("/assets/img/bg-aurora.jpg");
  background-size: cover;
  background-position: center top;
  padding-block: var(--space-6) var(--space-5);
}

.page-head h1 {
  margin-bottom: var(--space-2);
}

/* ---------- free-play statement band ---------- */
.pledge {
  background: var(--c-purple-deep);
  color: #efe9fb;
  padding-block: var(--space-3);
}

.pledge p {
  margin: 0;
  font-weight: 700;
  font-size: 0.98rem;
}

.pledge a {
  color: var(--c-gold);
}

/* ---------- game tiles & carousel ---------- */
.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(330px, 80vw);
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: var(--space-2) var(--space-1) var(--space-4);
}

.game-tile {
  scroll-snap-align: start;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-float), var(--shadow-inner);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.game-tile__strip {
  padding: 10px var(--space-3);
  font-weight: 800;
  font-size: 1.02rem;
  color: #fff;
}

.game-tile__strip--neon { background: #241a52; color: #ff7ad9; }
.game-tile__strip--harvest { background: #a85311; color: #ffe9c2; }
.game-tile__strip--runes { background: #2e4a66; color: #cfe6f8; }

.game-tile__art {
  position: relative;
}

.game-tile__art img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.game-tile__badge {
  position: absolute;
  top: 10px;
  right: 10px;
}

.game-tile__body {
  padding: var(--space-3) var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.game-tile__body p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--c-ink-2);
  flex: 1;
}

.game-tile__body .btn {
  align-self: flex-start;
}

/* game list rows under the carousel */
.game-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-4);
  align-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-inner);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
}

.game-row img {
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.game-row h3 {
  margin-bottom: var(--space-1);
}

.game-row p {
  margin-bottom: var(--space-2);
  color: var(--c-ink-2);
  font-size: 0.97rem;
}

.game-row__meta {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}

@media (max-width: 640px) {
  .game-row {
    grid-template-columns: 1fr;
  }
  .game-row img {
    width: 100%;
  }
}

/* ---------- compare table ---------- */
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-tile);
  overflow: hidden;
  box-shadow: var(--shadow-inner);
  font-size: 0.97rem;
}

.compare th,
.compare td {
  text-align: left;
  padding: 12px var(--space-3);
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
}

.compare thead th {
  background: var(--c-tint);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-ink-2);
}

.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare td:first-child {
  font-weight: 700;
}

.table-scroll {
  overflow-x: auto;
}

.table-scroll .compare {
  min-width: 560px;
}

/* ---------- split feature (text + illustration) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: center;
}

.split--flip > :first-child {
  order: 2;
}

.split__art img {
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-float);
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split--flip > :first-child {
    order: 0;
  }
}

/* ---------- fact / step cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-4);
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-inner);
  padding: var(--space-4);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-2);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--c-ink-2);
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-inner);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-2);
}

.faq-item p:last-child {
  margin-bottom: 0;
}

.faq-item--myth {
  border-left: 4px solid var(--c-gold);
}

/* ---------- disclaimer block ---------- */
.disclaimer {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-tile);
  background: var(--c-surface);
  box-shadow: var(--shadow-inner);
  padding: var(--space-4);
  font-size: 0.9rem;
  color: var(--c-ink-2);
}

.disclaimer p:last-child {
  margin-bottom: 0;
}

/* ---------- prose pages ---------- */
.prose {
  max-width: 72ch;
}

.prose h2 {
  margin-top: var(--space-6);
}

.prose h3 {
  margin-top: var(--space-5);
}

.prose li {
  margin-bottom: var(--space-2);
}

.prose img {
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-float);
  margin-block: var(--space-4);
}

.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  margin-bottom: var(--space-4);
}

.prose table th,
.prose table td {
  border: 1px solid var(--c-line);
  padding: 8px 12px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.prose table thead th {
  background: var(--c-tint);
}

.updated {
  font-size: 0.85rem;
  color: var(--c-ink-2);
}

/* ---------- resource cards (responsible play) ---------- */
.resource {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-inner);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
}

.resource h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.resource p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--c-ink-2);
}

/* ---------- footer ---------- */
.site-foot {
  background: var(--c-purple-deep);
  color: #d9cfef;
  margin-top: var(--space-7);
  padding-block: var(--space-6) var(--space-5);
  font-size: 0.92rem;
}

.site-foot a {
  color: #f0eafc;
}

.site-foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.site-foot h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #b7a6dd;
  margin-bottom: var(--space-2);
}

.site-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-foot li {
  margin-bottom: 6px;
}

.site-foot__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: var(--space-2);
}

.site-foot__brand:hover {
  text-decoration: none;
}

.site-foot__brand svg {
  width: 30px;
  height: 30px;
}

.site-foot__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: var(--space-4);
  font-size: 0.84rem;
  color: #b7a6dd;
}

.site-foot__legal p {
  margin-bottom: var(--space-2);
}

@media (max-width: 800px) {
  .site-foot__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .site-foot__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- age bar (fixed, bottom of viewport) ---------- */
.age-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  background: #221741;
  color: #e8e1f7;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.age-bar p {
  margin: 0 auto;
  max-width: var(--wrap);
  padding: 8px var(--space-4);
  font-size: 0.8rem;
  line-height: 1.45;
}

.age-bar strong {
  color: var(--c-gold);
}

.age-bar a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- cookie note ---------- */
.cookie-note {
  position: fixed;
  z-index: 50;
  bottom: 68px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 32px));
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-float);
  padding: var(--space-3) var(--space-4);
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.cookie-note p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--c-ink-2);
  flex: 1;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  z-index: 60;
  bottom: 68px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-purple-deep);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 999px;
  padding: 10px 22px;
  box-shadow: var(--shadow-float);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  max-width: calc(100vw - 32px);
  text-align: center;
}

.toast.is-on {
  opacity: 1;
}

/* ---------- reveal motion (JS adds .js to <html>) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   GAME UI — shared
   ============================================================ */
.game-page-head {
  padding-block: var(--space-5) var(--space-4);
}

.game-page-head h1 {
  margin-bottom: var(--space-1);
}

.game-page-head .lede {
  margin-bottom: 0;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: var(--space-5);
  align-items: start;
  margin-bottom: var(--space-6);
}

@media (max-width: 900px) {
  .game-layout {
    grid-template-columns: 1fr;
  }
}

.game-panel {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-float), var(--shadow-inner);
  padding: var(--space-4);
}

.game-panel__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.game-panel__balance {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.game-panel__balance span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-ink-2);
  display: block;
}

.bet-group {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
}

.bet-group__label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-ink-2);
  margin-inline-end: 4px;
}

.bet-btn {
  font: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  color: var(--c-purple);
  background: transparent;
  border: 1.5px solid var(--c-purple);
  border-radius: 10px;
  padding: 5px 13px;
  cursor: pointer;
}

.bet-btn[aria-pressed="true"] {
  background: var(--c-purple);
  color: #fff;
}

.game-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
  margin-top: var(--space-4);
}

.game-result {
  min-height: 2.4em;
  margin: var(--space-3) 0 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.game-result--win {
  color: var(--c-gold-ink);
}

.game-rules h2 {
  font-size: 1.15rem;
}

.game-rules table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-3);
}

.game-rules th,
.game-rules td {
  border-bottom: 1px solid var(--c-line);
  padding: 6px 8px;
  text-align: left;
}

.game-rules td:last-child,
.game-rules th:last-child {
  text-align: right;
}

.game-rules .note {
  font-size: 0.84rem;
  color: var(--c-ink-2);
}

.game-nojs {
  background: var(--c-gold-tint);
  border: 1px solid rgba(138, 106, 0, 0.3);
  border-radius: var(--radius-tile);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
}

/* ============================================================
   GRIDRUNNER REELS (3-reel, neon arcade)
   ============================================================ */
.slots3__machine {
  background: #241a52;
  border-radius: var(--radius-tile);
  padding: var(--space-4);
  background-image: repeating-linear-gradient(0deg, rgba(255, 122, 217, 0.06) 0 1px, transparent 1px 28px), repeating-linear-gradient(90deg, rgba(64, 224, 255, 0.06) 0 1px, transparent 1px 28px);
}

.slots3__reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  max-width: 420px;
  margin: 0 auto;
}

.slots3__window {
  background: #f7f4ff;
  border-radius: 12px;
  border: 3px solid #ff7ad9;
  box-shadow: 0 0 18px rgba(255, 122, 217, 0.35);
  height: 116px;
  overflow: hidden;
  position: relative;
}

.slots3__strip {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slots3__cell {
  height: 116px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.slots3__cell svg {
  width: 76px;
  height: 76px;
}

.slots3__payline {
  position: relative;
  max-width: 420px;
  margin: var(--space-3) auto 0;
  text-align: center;
  color: #9fe8ff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.slots3__window.is-win {
  border-color: var(--c-gold);
  box-shadow: 0 0 22px rgba(242, 183, 5, 0.55);
}

@media (max-width: 480px) {
  .slots3__window { height: 88px; }
  .slots3__cell { height: 88px; }
  .slots3__cell svg { width: 58px; height: 58px; }
}

/* ============================================================
   HARVEST SCRATCH (scratch card, farm)
   ============================================================ */
.scratch__card {
  background: #b3541c;
  background-image: repeating-linear-gradient(45deg, rgba(255, 233, 194, 0.08) 0 12px, transparent 12px 24px);
  border-radius: var(--radius-tile);
  padding: var(--space-4);
  max-width: 440px;
  margin: 0 auto;
}

.scratch__title {
  text-align: center;
  color: #ffe9c2;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin: 0 0 var(--space-3);
}

.scratch__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.scratch-cell {
  position: relative;
  aspect-ratio: 1;
  border: 2px solid #7a3a12;
  border-radius: 12px;
  background: #fff6e6;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scratch-cell svg {
  width: 70%;
  height: 70%;
}

.scratch-cell canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.scratch-cell.is-done canvas {
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.scratch-cell[disabled] {
  cursor: default;
}

.scratch-cell.is-hit {
  box-shadow: 0 0 0 3px var(--c-gold) inset;
}

/* ============================================================
   RUNES OF THE NORTH (5-reel, norse)
   ============================================================ */
.slots5__machine {
  background: #223a50;
  border-radius: var(--radius-tile);
  padding: var(--space-3);
  background-image: linear-gradient(160deg, rgba(207, 230, 248, 0.08), transparent 45%);
}

.slots5__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.slots5__reel {
  background: #eaf2f9;
  border: 2px solid #52708c;
  border-radius: 10px;
  overflow: hidden;
  height: 252px;
  position: relative;
}

.slots5__strip {
  display: flex;
  flex-direction: column;
}

.slots5__cell {
  height: 84px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slots5__cell svg {
  width: 62px;
  height: 62px;
}

.slots5__cell.is-win {
  background: rgba(242, 183, 5, 0.35);
}

@media (max-width: 560px) {
  .slots5__reel { height: 180px; }
  .slots5__cell { height: 60px; }
  .slots5__cell svg { width: 42px; height: 42px; }
}

.slots5__lines {
  margin: var(--space-3) 0 0;
  text-align: center;
  color: #cfe6f8;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
