:root {
  color-scheme: dark;
  --ink: #fff8df;
  --muted: #d9cda9;
  --soft: #b7aa84;
  --night: #0c0711;
  --night-2: #150a19;
  --wine: #3b0c20;
  --ruby: #9e1d3a;
  --emerald: #0f7257;
  --teal: #0b4d5c;
  --saffron: #e6a138;
  --gold: #f6c75e;
  --gold-2: #fff0a4;
  --line: rgba(246, 199, 94, .22);
  --glass: rgba(17, 10, 22, .76);
  --shadow: 0 24px 80px rgba(0, 0, 0, .48);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 10%, rgba(15, 114, 87, .32), transparent 30rem),
    radial-gradient(circle at 86% 18%, rgba(158, 29, 58, .22), transparent 28rem),
    linear-gradient(140deg, #0b0610 0%, #190a18 42%, #071924 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .7), transparent 85%);
}

body.no-scroll {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 224, 132, .16);
  background: rgba(9, 6, 12, .84);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: block;
  flex: 0 0 auto;
  background: url("../img/brand/melakori-mark.png") center / contain no-repeat;
  box-shadow: 0 0 0 3px rgba(255, 232, 148, .12), 0 12px 28px rgba(0, 0, 0, .42), 0 0 22px rgba(246, 199, 94, .16);
}

.brand-mark svg {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.nav-links a {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold-2);
  background: rgba(246, 199, 94, .1);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--gold-2);
  background: rgba(255, 255, 255, .06);
}

.menu-button svg,
.icon-button svg,
.action svg,
.tiny-icon svg {
  width: 18px;
  height: 18px;
}

.info-ticker {
  position: relative;
  z-index: 24;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 224, 132, .16);
  background:
    linear-gradient(90deg, rgba(158, 29, 58, .22), rgba(15, 114, 87, .18)),
    rgba(8, 5, 12, .9);
}

.ticker-track {
  display: flex;
  width: max-content;
  min-height: 38px;
  align-items: center;
  animation: tickerMove 38s linear infinite;
}

.ticker-group {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px;
  color: #fff0a4;
  font-size: .82rem;
  font-weight: 850;
}

.ticker-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 16px rgba(15, 114, 87, .8);
}

.ticker-item strong {
  color: #fff7ca;
}

.info-fab {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 48;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 224, 132, .36);
  border-radius: 50%;
  color: #271405;
  background: linear-gradient(135deg, #fff3ad, #e1a03a 56%, #8c4b18);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .46), 0 0 24px rgba(246, 199, 94, .2);
  cursor: pointer;
}

.info-fab svg {
  width: 23px;
  height: 23px;
}

.palace-modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(2, 2, 4, .68);
  backdrop-filter: blur(9px);
}

.palace-modal.show {
  display: grid;
}

.palace-panel {
  width: min(720px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 224, 132, .32);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 12%, rgba(246, 199, 94, .18), transparent 18rem),
    linear-gradient(145deg, rgba(42, 9, 27, .96), rgba(6, 26, 35, .96));
  box-shadow: var(--shadow);
}

.palace-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 0;
}

.palace-panel h2 {
  color: #fff0a4;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
}

.palace-panel p {
  color: var(--muted);
}

.modal-close {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 224, 132, .28);
  border-radius: var(--radius);
  color: #fff0a4;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 22px 4px;
}

.notice-card {
  min-height: 96px;
  padding: 14px;
  border: 1px solid rgba(255, 224, 132, .2);
  border-radius: var(--radius);
  background: rgba(8, 5, 12, .42);
}

.notice-card strong {
  display: block;
  color: #fff2b3;
  margin-bottom: 4px;
}

.notice-card span {
  color: var(--muted);
  font-size: .92rem;
}

.palace-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 22px 22px;
}

.toast-stack {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 47;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.site-toast {
  width: min(360px, calc(100vw - 36px));
  padding: 13px 14px;
  border: 1px solid rgba(255, 224, 132, .25);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(9, 6, 12, .9);
  box-shadow: 0 16px 46px rgba(0, 0, 0, .34);
  animation: toastIn .28s ease-out both;
}

.site-toast strong {
  color: #fff0a4;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 72px));
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../img/hero-palace.png");
  background-size: cover;
  background-position: center right;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 5, 9, .92) 0%, rgba(10, 6, 12, .66) 38%, rgba(10, 6, 12, .06) 76%),
    linear-gradient(0deg, rgba(12, 7, 17, .94) 0%, rgba(12, 7, 17, .2) 28%, rgba(12, 7, 17, .04) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 32px));
  min-height: min(760px, calc(100vh - 72px));
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 64px 0 92px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffe8a3;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(15, 114, 87, .18), 0 0 18px rgba(15, 114, 87, .8);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  margin-top: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 7rem);
  color: #fff5bf;
  text-shadow: 0 2px 0 rgba(117, 59, 15, .8), 0 24px 70px rgba(0, 0, 0, .62);
}

.hero-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 230, 142, .36);
  border-radius: var(--radius);
  padding: 12px 17px;
  color: #241205;
  background: linear-gradient(135deg, #fff2aa, #e7a33d 55%, #8d4a17);
  box-shadow: 0 12px 30px rgba(230, 161, 56, .18);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.action.secondary {
  color: var(--gold-2);
  background: rgba(255, 255, 255, .06);
  box-shadow: none;
}

.action.ghost {
  color: var(--ink);
  background: rgba(15, 114, 87, .16);
  border-color: rgba(57, 198, 154, .32);
  box-shadow: none;
}

.action:disabled {
  cursor: wait;
  opacity: .72;
}

.trust-strip {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 20px;
  width: min(var(--max), calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.trust-pill {
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 224, 132, .25);
  border-radius: var(--radius);
  color: #fff3c5;
  background: rgba(9, 6, 12, .68);
  backdrop-filter: blur(12px);
  font-weight: 800;
  text-align: center;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.section.compact {
  padding: 48px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-title {
  max-width: 770px;
}

.section-title h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  color: #fff0a4;
}

.section-title p,
.lede {
  color: var(--muted);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid rgba(255, 224, 132, .24);
  border-radius: var(--radius);
  background: #0f0914;
  box-shadow: var(--shadow);
}

.game-card img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  padding: 10px;
  background:
    radial-gradient(circle at 50% 30%, rgba(246, 199, 94, .12), transparent 18rem),
    #0b0710;
}

.game-card-body {
  padding: 22px;
}

.game-card h3 {
  color: #fff1af;
  font-size: 1.5rem;
}

.game-card p {
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border: 1px solid rgba(255, 224, 132, .22);
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffe7a0;
  background: rgba(255, 255, 255, .06);
  font-size: .78rem;
  font-weight: 900;
}

.home-game-band {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 8%, rgba(246, 199, 94, .14), transparent 28rem),
    radial-gradient(circle at 86% 22%, rgba(15, 114, 87, .18), transparent 30rem),
    linear-gradient(135deg, rgba(58, 10, 31, .66), rgba(5, 23, 31, .72));
}

.home-game-band .section.compact {
  padding-bottom: 18px;
}

.home-game-shell {
  padding-top: 0;
}

.home-cup-track {
  min-height: 340px;
}

.lore-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(158, 29, 58, .14), rgba(15, 114, 87, .12)),
    rgba(255, 255, 255, .025);
}

.lore-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 224, 132, .18);
  border-radius: var(--radius);
  background: rgba(9, 6, 12, .5);
}

.timeline-year {
  color: var(--gold-2);
  font-weight: 950;
}

.review-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review {
  position: relative;
  min-height: 230px;
  padding: 22px;
  border: 1px solid rgba(255, 224, 132, .21);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
    rgba(12, 7, 17, .75);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .3);
}

.review::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(130deg, rgba(246, 199, 94, .18), transparent 32%, rgba(15, 114, 87, .15));
  mask: linear-gradient(#000, transparent 50%);
}

.review p {
  position: relative;
  margin-top: 0;
  color: var(--ink);
}

.review footer {
  position: relative;
  color: var(--soft);
  font-weight: 800;
}

.avatar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #1f0e05;
  background: linear-gradient(135deg, #ffeaa2, #e6a138 60%, #874918);
  font-weight: 950;
}

.page-hero {
  padding: 54px 0 40px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(158, 29, 58, .22), rgba(15, 114, 87, .16)),
    rgba(255, 255, 255, .02);
}

.page-hero-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 960px;
  font-size: clamp(2.5rem, 6vw, 5.3rem);
}

.page-hero p {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.06rem;
}

.notice-bar {
  width: min(var(--max), calc(100% - 32px));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.notice-bar span,
.inline-notice {
  border: 1px solid rgba(255, 224, 132, .24);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: #fff0a4;
  background: rgba(9, 6, 12, .58);
  font-weight: 850;
  text-align: center;
}

.game-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

.game-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 224, 132, .28);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% -10%, rgba(246, 199, 94, .22), transparent 26rem),
    linear-gradient(145deg, rgba(56, 9, 31, .92), rgba(8, 28, 36, .94));
  box-shadow: var(--shadow);
}

.game-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 240, 164, .2) 0 2px, transparent 3px),
    radial-gradient(circle at 86% 12%, rgba(62, 203, 165, .16) 0 3px, transparent 4px);
  background-size: 110px 110px, 150px 150px;
  opacity: .8;
}

.stage-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 224, 132, .18);
}

.score-rack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.score-box {
  min-width: 116px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 224, 132, .22);
  border-radius: var(--radius);
  background: rgba(9, 6, 12, .55);
}

.score-box small {
  display: block;
  color: var(--soft);
  font-weight: 800;
  text-transform: uppercase;
  font-size: .68rem;
  letter-spacing: .08em;
}

.score-box strong {
  display: block;
  color: #fff2b3;
  font-size: 1.28rem;
  line-height: 1.1;
}

.game-board-area {
  position: relative;
  padding: 24px;
}

.reel-frame {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 16px;
  border: 10px solid transparent;
  border-image: linear-gradient(135deg, #fff0a4, #b87024, #fff0a4, #6e3611) 1;
  background: rgba(4, 7, 10, .74);
  box-shadow: inset 0 0 36px rgba(246, 199, 94, .14);
}

.reel-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(72px, 1fr));
  grid-template-rows: repeat(3, minmax(72px, 1fr));
  gap: 10px;
  aspect-ratio: 5 / 3;
}

.slot-cell,
.cascade-cell,
.symbol-cell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 231, 151, .4);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, .12), transparent 36%),
    linear-gradient(145deg, rgba(21, 7, 20, .92), rgba(6, 37, 45, .88));
  box-shadow: inset 0 0 18px rgba(246, 199, 94, .16), 0 12px 18px rgba(0, 0, 0, .28);
}

.slot-cell {
  transform-style: preserve-3d;
}

.symbol-art {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .45));
  transform: scale(.96);
}

.slot-cell.spinning .symbol-art {
  animation: reelBlur .12s linear infinite;
}

.slot-cell.win,
.cascade-cell.win,
.symbol-cell.win {
  border-color: #fff3b0;
  box-shadow: inset 0 0 22px rgba(255, 240, 164, .5), 0 0 28px rgba(246, 199, 94, .38);
  animation: tilePulse .9s ease-in-out infinite alternate;
}

.cascade-frame {
  max-width: 710px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(255, 224, 132, .34);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(11, 77, 92, .72), rgba(32, 9, 29, .72)),
    rgba(6, 8, 10, .72);
}

.cascade-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(46px, 1fr));
  gap: 8px;
  aspect-ratio: 1;
}

.cascade-cell {
  transform-origin: center top;
}

.cascade-cell.drop {
  animation: tileDrop .36s cubic-bezier(.2, .78, .28, 1.22);
}

.cascade-cell.clear {
  animation: tileClear .34s ease forwards;
}

.cup-arena {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.cup-track {
  position: relative;
  min-height: 340px;
  border: 1px solid rgba(255, 224, 132, .24);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 13, 18, .08), rgba(8, 5, 12, .28)),
    url("../img/crown/stage-premium.svg") center / cover no-repeat,
    linear-gradient(180deg, rgba(17, 53, 53, .64), rgba(34, 7, 25, .78));
}

.cup {
  position: absolute;
  top: 54px;
  width: 168px;
  height: 230px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translateX(-50%);
  transition: left .55s cubic-bezier(.33, 1.2, .42, 1), transform .28s ease;
}

.cup[disabled] {
  cursor: wait;
}

.cup-body {
  position: absolute;
  inset: 0;
  background: url("../img/crown/cup-premium.png") center / contain no-repeat;
  filter: drop-shadow(0 22px 20px rgba(0, 0, 0, .46)) drop-shadow(0 0 12px rgba(246, 199, 94, .2));
}

.cup-body::before {
  content: none;
}

.cup-body::after {
  content: none;
}

.cup-shadow {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 142px;
  height: 30px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(0, 0, 0, .42);
  filter: blur(7px);
}

.cup.lifted {
  transform: translateX(-50%) translateY(-62px) rotate(-2deg);
}

.cup.shuffling .cup-body {
  animation: cupJiggle .16s ease-in-out infinite alternate;
}

.crown-token {
  position: absolute;
  top: 210px;
  width: 102px;
  height: 102px;
  transform: translateX(-50%) scale(.5);
  opacity: 0;
  border-radius: 50%;
  background: url("../img/crown/token-premium.png") center / contain no-repeat;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .5)) drop-shadow(0 0 12px rgba(246, 199, 94, .28));
  transition: opacity .25s ease, transform .25s ease;
}

.crown-token.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.side-panel {
  display: grid;
  gap: 14px;
}

.panel {
  border: 1px solid rgba(255, 224, 132, .22);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(9, 6, 12, .64);
  box-shadow: 0 18px 52px rgba(0, 0, 0, .26);
}

.panel h2,
.panel h3 {
  margin-bottom: 10px;
  color: #fff0a4;
  font-size: 1.12rem;
}

.panel p,
.panel li {
  color: var(--muted);
}

.panel ul,
.legal-copy ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.log-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}

.log-item {
  padding: 9px 10px;
  border-left: 3px solid rgba(246, 199, 94, .64);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  background: rgba(255, 255, 255, .045);
  font-size: .92rem;
}

.paytable {
  display: grid;
  gap: 8px;
}

.payrow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 224, 132, .12);
  color: var(--muted);
}

.payrow strong {
  color: #fff0a4;
}

.legal-copy {
  max-width: 920px;
  margin: 0 auto;
}

.legal-copy h2 {
  margin-top: 36px;
  color: #fff0a4;
  font-size: 1.55rem;
}

.legal-copy h3 {
  margin-top: 26px;
  color: #ffe8a3;
  font-size: 1.08rem;
}

.legal-copy p,
.legal-copy li {
  color: var(--muted);
}

.legal-copy .inline-notice {
  display: block;
  text-align: left;
  margin: 22px 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 4, 7, .74);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer-inner p {
  max-width: 760px;
  color: var(--soft);
  margin: 12px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 750;
}

.footer-links a:hover {
  color: #fff0a4;
}

.cookie-banner,
.age-gate {
  position: fixed;
  z-index: 60;
}

.cookie-banner {
  left: 50%;
  bottom: 16px;
  width: min(760px, calc(100% - 32px));
  transform: translateX(-50%);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255, 224, 132, .28);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(9, 6, 12, .92);
  box-shadow: var(--shadow);
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
}

.age-gate {
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 20%, rgba(246, 199, 94, .22), transparent 24rem),
    rgba(2, 2, 4, .86);
  backdrop-filter: blur(10px);
}

.age-gate.show {
  display: grid;
}

.age-panel {
  width: min(520px, 100%);
  border: 1px solid rgba(255, 224, 132, .32);
  border-radius: var(--radius);
  padding: 28px;
  background: rgba(12, 7, 17, .94);
  box-shadow: var(--shadow);
}

.age-panel h2 {
  color: #fff0a4;
  font-size: 2rem;
}

.age-panel p {
  color: var(--muted);
}

.coin-burst {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  overflow: hidden;
}

.coin {
  position: absolute;
  top: -40px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #fff9c8, transparent 24%),
    linear-gradient(135deg, #fff0a4, #d6922f 52%, #7b3d12);
  box-shadow: inset 0 0 0 3px rgba(124, 65, 18, .32), 0 8px 14px rgba(0, 0, 0, .32);
  animation: coinFall 1.4s ease-in forwards;
}

.spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff0a4;
  box-shadow: 0 0 16px #fff0a4;
  animation: sparkle 1s ease-out forwards;
}

.rain-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.rain-layer i {
  position: absolute;
  top: -20px;
  width: 2px;
  height: 38px;
  border-radius: 99px;
  background: linear-gradient(transparent, rgba(132, 229, 255, .75));
  animation: rainDrop var(--speed, 1.2s) linear infinite;
  opacity: .65;
}

@keyframes reelBlur {
  0% {
    transform: translateY(-8%) scale(.92);
    filter: blur(1px) drop-shadow(0 8px 12px rgba(0, 0, 0, .45));
  }
  100% {
    transform: translateY(8%) scale(.92);
    filter: blur(3px) drop-shadow(0 8px 12px rgba(0, 0, 0, .45));
  }
}

@keyframes tilePulse {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-2px) scale(1.03);
  }
}

@keyframes tileDrop {
  from {
    opacity: .2;
    transform: translateY(-80px) scale(.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tileClear {
  to {
    opacity: 0;
    transform: scale(.28) rotate(16deg);
  }
}

@keyframes cupJiggle {
  from {
    transform: rotate(-2deg);
  }
  to {
    transform: rotate(2deg);
  }
}

@keyframes coinFall {
  0% {
    transform: translateY(-40px) rotateY(0deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotateY(720deg) rotateZ(120deg);
    opacity: 0;
  }
}

@keyframes sparkle {
  from {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(.2);
  }
}

@keyframes rainDrop {
  to {
    transform: translateY(110vh);
  }
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .game-grid,
  .review-wall,
  .lore-grid,
  .game-shell,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .side-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    display: block;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    min-height: 64px;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    padding: 12px 16px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 6, 12, .96);
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links a {
    width: 100%;
  }

  .ticker-track {
    animation-duration: 30s;
  }

  .ticker-item {
    padding-inline: 18px;
    font-size: .76rem;
  }

  .hero,
  .hero-inner {
    min-height: 720px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(7, 5, 9, .9) 0%, rgba(7, 5, 9, .58) 55%, rgba(7, 5, 9, .94) 100%);
  }

  .trust-strip,
  .notice-bar {
    position: static;
    width: min(var(--max), calc(100% - 32px));
    transform: none;
    margin: -72px auto 36px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notice-bar {
    margin: 18px auto 0;
  }

  .hero-inner {
    align-items: start;
    padding-top: 76px;
  }

  .reel-grid {
    gap: 6px;
  }

  .game-board-area {
    padding: 14px;
  }

  .stage-top {
    display: grid;
  }

  .score-box {
    min-width: 0;
    flex: 1 1 100px;
  }

  .side-panel {
    grid-template-columns: 1fr;
  }

  .cup {
    top: 84px;
    width: 100px;
    height: 138px;
  }

  .cup-shadow {
    width: 82px;
    height: 20px;
  }

  .crown-token {
    top: 198px;
    width: 72px;
    height: 72px;
  }

  .cup-track {
    min-height: 300px;
  }

  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .info-fab {
    right: 14px;
    bottom: 86px;
    width: 46px;
    height: 46px;
  }

  .notice-grid {
    grid-template-columns: 1fr;
  }

  .palace-panel-actions .action {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .trust-strip,
  .notice-bar {
    grid-template-columns: 1fr;
  }

  .game-card {
    min-height: 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .action {
    width: 100%;
  }

  .reel-frame,
  .cascade-frame {
    padding: 8px;
  }

  .cascade-grid {
    gap: 5px;
  }

  .cup-track {
    min-height: 270px;
  }
}
