:root {
  --bg-main: #05070f;
  --bg-alt: #0b1020;
  --surface: rgba(12, 18, 36, 0.75);
  --surface-strong: #0d1530;
  --text: #e8f0ff;
  --muted: #a8b5d4;
  --line: rgba(135, 158, 214, 0.22);
  --primary: #19d3ff;
  --secondary: #d946ef;
  --accent: #f8b400;
  --success: #56f9b9;
  --danger: #ff5d73;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 45px rgba(2, 5, 14, 0.45);
  --shadow-neon: 0 0 30px rgba(25, 211, 255, 0.25);
  --container: min(1200px, 92vw);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Rajdhani", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    linear-gradient(140deg, rgba(4, 7, 18, 0.38), rgba(5, 9, 22, 0.44)),
    url("../img/background.jpg") center / cover fixed no-repeat,
    radial-gradient(circle at 15% 15%, rgba(41, 74, 182, 0.36), transparent 35%),
    radial-gradient(circle at 85% 25%, rgba(217, 70, 239, 0.2), transparent 28%),
    radial-gradient(circle at 50% 120%, rgba(25, 211, 255, 0.16), transparent 40%),
    var(--bg-main);
  min-height: 100vh;
  line-height: 1.45;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  z-index: -2;
  opacity: 0.4;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(140deg, rgba(5, 7, 15, 0.4), rgba(7, 9, 19, 0.75));
  z-index: -1;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Orbitron", "Segoe UI", sans-serif;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

p {
  margin: 0;
}

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

.site-shell {
  width: 100%;
  overflow: clip;
}

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

.top-badge {
  background: linear-gradient(90deg, rgba(217, 70, 239, 0.22), rgba(25, 211, 255, 0.18));
  border-bottom: 1px solid rgba(217, 70, 239, 0.35);
  color: #f4f7ff;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 9, 20, 0.85);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background:
    url("../img/logo.png") center / cover no-repeat;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.brand-text {
  font-family: "Orbitron", "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 1.01rem;
}

.brand-subtext {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0.12rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 0.6rem 0.82rem;
  border-radius: 10px;
  color: #d8e3ff;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: 0.22s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #fff;
  background: rgba(25, 211, 255, 0.14);
  box-shadow: 0 0 0 1px rgba(25, 211, 255, 0.35) inset;
}

.main-nav a.current {
  background: linear-gradient(135deg, rgba(25, 211, 255, 0.18), rgba(217, 70, 239, 0.22));
  box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.4) inset;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(25, 211, 255, 0.35);
  background: rgba(10, 16, 34, 0.8);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.main {
  padding-bottom: 4rem;
}

.hero {
  margin-top: 1.7rem;
  border-radius: var(--radius-xl);
  position: relative;
  border: 1px solid rgba(25, 211, 255, 0.25);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background:
    radial-gradient(circle at 22% 18%, rgba(217, 70, 239, 0.25), transparent 35%),
    radial-gradient(circle at 85% 28%, rgba(25, 211, 255, 0.27), transparent 35%),
    linear-gradient(180deg, rgba(10, 17, 38, 0.95), rgba(8, 11, 25, 0.95));
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.hero::before {
  width: 260px;
  height: 260px;
  background: rgba(25, 211, 255, 0.12);
  left: -110px;
  top: -80px;
  animation: pulseFloat 5.8s ease-in-out infinite;
}

.hero::after {
  width: 300px;
  height: 300px;
  background: rgba(217, 70, 239, 0.12);
  right: -90px;
  bottom: -120px;
  animation: pulseFloat 7.4s ease-in-out infinite reverse;
}

.hero-inner {
  position: relative;
  padding: clamp(2rem, 3.8vw, 4.2rem);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.6rem, 3vw, 2.8rem);
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d6e7ff;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  border-radius: 99px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  margin-bottom: 0.9rem;
}

.hero p {
  color: #d7e2fd;
  max-width: 60ch;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.actions {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

.button,
button,
input[type="submit"] {
  border: none;
  border-radius: 12px;
  font-family: "Orbitron", "Segoe UI", sans-serif;
  letter-spacing: 0.05em;
  font-size: 0.89rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.25s ease;
}

.button {
  padding: 0.82rem 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  min-height: 45px;
}

.button-primary {
  color: #061022;
  background: linear-gradient(120deg, var(--primary), var(--success));
  box-shadow: 0 10px 25px rgba(25, 211, 255, 0.28);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(25, 211, 255, 0.36);
}

.button-secondary {
  color: #fff;
  background: linear-gradient(120deg, rgba(217, 70, 239, 0.78), rgba(111, 52, 255, 0.9));
  box-shadow: 0 10px 25px rgba(217, 70, 239, 0.28);
}

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

.button-ghost {
  color: #dde9ff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.button-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(25, 211, 255, 0.38);
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.hero-media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(25, 211, 255, 0.35);
  box-shadow: 0 20px 34px rgba(1, 5, 16, 0.5);
  margin-bottom: 0.9rem;
  position: relative;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(5, 9, 20, 0.04), rgba(5, 9, 20, 0.5));
  pointer-events: none;
}

.hero-main-image {
  width: 100%;
  height: clamp(170px, 25vw, 280px);
  object-fit: cover;
}

.stat-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.95rem;
  backdrop-filter: blur(6px);
}

.stat-card strong {
  display: block;
  font-family: "Orbitron", "Segoe UI", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
  color: #fff;
}

.stat-card span {
  color: #c6d4f4;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section {
  margin-top: clamp(2.2rem, 4vw, 4rem);
}

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

.section-head h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.section-head p {
  color: var(--muted);
  max-width: 65ch;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.games {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
  background: var(--surface);
  border: 1px solid rgba(25, 211, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: -80px;
  top: -80px;
  background: radial-gradient(circle, rgba(25, 211, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.55rem;
}

.card p {
  color: #c5d4f8;
}

.game-thumb {
  width: 100%;
  margin-bottom: 15px;
  border-radius: 15px;
  border-bottom: 1px solid rgba(25, 211, 255, 0.3);
  max-height: 175px;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(25, 211, 255, 0.15);
  border: 1px solid rgba(25, 211, 255, 0.3);
  color: #d9f8ff;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.7rem;
  margin-bottom: 0.7rem;
}

.list-check li {
  padding-left: 1.45rem;
  position: relative;
  color: #c9d6f8;
  margin-bottom: 0.58rem;
}

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
}

.review-card {
  border: 1px solid rgba(217, 70, 239, 0.28);
}

.review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}

.review-stars {
  color: #ffd464;
  letter-spacing: 0.12em;
}

.timeline {
  border-left: 1px dashed rgba(217, 70, 239, 0.42);
  padding-left: 1rem;
  display: grid;
  gap: 1rem;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.42rem;
  top: 0.38rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(130deg, var(--secondary), var(--primary));
  box-shadow: 0 0 14px rgba(217, 70, 239, 0.7);
}

.timeline-item span {
  color: #88f3d6;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 0.35rem;
}

.notice {
  border-radius: 14px;
  border: 1px solid rgba(248, 180, 0, 0.35);
  background: rgba(248, 180, 0, 0.08);
  padding: 0.95rem 1rem;
  color: #ffe7b7;
}

.notice strong {
  color: #fff0cc;
}

.faq {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  border: 1px solid rgba(25, 211, 255, 0.24);
  border-radius: 14px;
  background: rgba(8, 13, 30, 0.85);
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  color: #e6efff;
  padding: 0.9rem 1rem;
  font-weight: 700;
  font-size: 1rem;
}

.faq-item button::after {
  content: "+";
  float: right;
  color: #9ec4ff;
}

.faq-item button[aria-expanded="true"]::after {
  content: "-";
}

.faq-item .answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: #c4d2f4;
  padding: 0 1rem;
}

.faq-item .answer p {
  padding-bottom: 1rem;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(126, 151, 212, 0.35);
  background: rgba(5, 8, 19, 0.78);
  color: #e8f0ff;
  padding: 0.72rem 0.8rem;
  border-radius: 10px;
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(25, 211, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(25, 211, 255, 0.24);
}

.form-note {
  color: #b7c9ed;
  font-size: 0.88rem;
}

.inline-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.inline-stats .stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
}

.inline-stats .stat strong {
  display: block;
  font-size: 1.55rem;
  font-family: "Orbitron", "Segoe UI", sans-serif;
  color: #fff;
  margin-bottom: 0.25rem;
}

.inline-stats .stat span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
}

.legal-nav {
  position: sticky;
  top: 96px;
  align-self: start;
  border: 1px solid rgba(126, 151, 212, 0.28);
  border-radius: 16px;
  background: rgba(8, 13, 28, 0.86);
  padding: 0.9rem;
}

.legal-nav a {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  color: #d3ddf8;
}

.legal-nav a:hover {
  background: rgba(217, 70, 239, 0.16);
}

.legal-content {
  display: grid;
  gap: 1rem;
}

.legal-content article {
  background: rgba(8, 13, 28, 0.84);
  border: 1px solid rgba(126, 151, 212, 0.28);
  border-radius: 14px;
  padding: 1rem;
}

.legal-content article h2 {
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

.legal-content article p,
.legal-content article li {
  color: #c4d2f4;
}

.legal-content article ul {
  list-style: disc;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.48rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border: 1px solid rgba(126, 151, 212, 0.22);
  padding: 0.66rem 0.72rem;
  text-align: left;
}

.table th {
  background: rgba(25, 211, 255, 0.14);
  font-family: "Orbitron", "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  font-size: 0.79rem;
  text-transform: uppercase;
}

.game-shell {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: start;
}

.game-cover {
  border-radius: 18px;
  border: 1px solid rgba(25, 211, 255, 0.28);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.game-cover img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.game-panel {
  background: rgba(9, 14, 32, 0.86);
  border: 1px solid rgba(25, 211, 255, 0.24);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.game-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.counter {
  font-family: "Orbitron", "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
}

.game-sidebar {
  display: grid;
  gap: 1rem;
}

.log {
  max-height: 250px;
  overflow: auto;
  display: grid;
  gap: 0.5rem;
}

.log p {
  border-left: 3px solid rgba(217, 70, 239, 0.6);
  padding-left: 0.55rem;
  color: #d4e2ff;
  font-size: 0.9rem;
}

#rune-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.68rem;
}

.rune {
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px solid rgba(126, 151, 212, 0.36);
  background: linear-gradient(160deg, rgba(18, 30, 63, 0.85), rgba(8, 12, 26, 0.92));
  display: grid;
  place-items: center;
  font-family: "Segoe UI Symbol", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: #d6ecff;
  text-shadow: 0 0 14px rgba(25, 211, 255, 0.38);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  cursor: pointer;
}

.rune:hover {
  transform: translateY(-2px);
  border-color: rgba(25, 211, 255, 0.65);
}

.rune.active {
  border-color: rgba(248, 180, 0, 0.92);
  box-shadow: 0 0 0 2px rgba(248, 180, 0, 0.2), 0 0 22px rgba(248, 180, 0, 0.4);
  transform: scale(1.03);
}

.rune.matched {
  animation: matchFlash 0.6s ease;
}

.rune.rune-sol {
  color: #ffd76a;
}

.rune.rune-luna {
  color: #b9ccff;
}

.rune.rune-star {
  color: #ffc17d;
}

.rune.rune-flare {
  color: #86ecff;
}

.rune.rune-spark {
  color: #f8b0ff;
}

.rune.rune-aether {
  color: #7df6c0;
}

.rune.rune-comet {
  color: #ffb9a1;
}

.rune.rune-sigil {
  color: #d8b8ff;
}

.rune.rune-crown {
  color: #ffcf6d;
}

.rune.rune-orb {
  color: #9de9ff;
}

@keyframes matchFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(86, 249, 185, 0.8);
    background: linear-gradient(160deg, rgba(31, 128, 116, 0.85), rgba(8, 12, 26, 0.92));
  }
  100% {
    box-shadow: 0 0 0 22px rgba(86, 249, 185, 0);
  }
}

.slot-machine {
  display: grid;
  gap: 0.8rem;
  width: min(100%, 860px);
  margin-inline: auto;
}

.slot-reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  align-items: start;
}

.reel {
  --slot-cell: 68px;
  --slot-start: -204px;
  --slot-loop-end: calc(var(--slot-cell) * -12);
  border-radius: 14px;
  border: 1px solid rgba(126, 151, 212, 0.35);
  background: linear-gradient(160deg, rgba(12, 20, 45, 0.95), rgba(6, 9, 18, 0.95));
  height: calc(var(--slot-cell) * 3);
  overflow: hidden;
  position: relative;
}

.reel-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: grid;
  grid-auto-rows: var(--slot-cell);
  transform: translateY(0);
  will-change: transform;
}

.reel.spinning .reel-track {
  animation: spinLoop 0.72s linear infinite;
}

.symbol {
  display: grid;
  place-items: center;
  height: var(--slot-cell);
  font-family: "Segoe UI Symbol", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-size: clamp(2rem, 4vw, 2.55rem);
  color: #f4fbff;
  border-bottom: 1px solid rgba(126, 151, 212, 0.25);
  text-shadow: 0 0 18px rgba(25, 211, 255, 0.38);
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.08), rgba(6, 11, 24, 0.9));
}

.symbol.icon-crystal {
  color: #84f4ff;
}

.symbol.icon-sun {
  color: #ffd76a;
}

.symbol.icon-crown {
  color: #ffc458;
}

.symbol.icon-key {
  color: #ffa9dd;
}

.symbol.icon-orb {
  color: #7bf7bf;
}

.symbol.icon-map {
  color: #d6b8ff;
}

.symbol.icon-compass {
  color: #b8c9ff;
}

.reel-window {
  position: absolute;
  inset: var(--slot-cell) 0;
  border-top: 2px solid rgba(248, 180, 0, 0.75);
  border-bottom: 2px solid rgba(248, 180, 0, 0.75);
  pointer-events: none;
  box-shadow: inset 0 0 18px rgba(248, 180, 0, 0.22);
}

@keyframes spinLoop {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(var(--slot-loop-end));
  }
}

.hand {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}

.playing-card {
  border-radius: 12px;
  border: 1px solid rgba(126, 151, 212, 0.3);
  background: linear-gradient(150deg, rgba(12, 20, 43, 0.95), rgba(6, 10, 20, 0.95));
  min-height: 118px;
  display: grid;
  place-content: center;
  place-items: center;
  gap: 0.3rem;
  font-weight: 700;
  user-select: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.playing-card small {
  color: #94a9d5;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.playing-card.value-red {
  color: #ff6d7b;
}

.playing-card.value-black {
  color: #e7efff;
}

.playing-card.reveal {
  animation: cardReveal 0.5s ease;
}

@keyframes cardReveal {
  from {
    transform: rotateY(90deg);
    opacity: 0.1;
  }
  to {
    transform: rotateY(0deg);
    opacity: 1;
  }
}

.achievement-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.badge {
  border-radius: 16px;
  border: 1px solid rgba(86, 249, 185, 0.35);
  background: linear-gradient(170deg, rgba(10, 24, 29, 0.92), rgba(6, 11, 23, 0.9));
  padding: 0.95rem;
}

.badge h3 {
  font-size: 1rem;
  margin-bottom: 0.36rem;
}

.badge p {
  color: #c7d7f8;
}

.footer {
  margin-top: 3.6rem;
  padding: 1.4rem 0 1.2rem;
  border-top: 1px solid rgba(126, 151, 212, 0.3);
  background: rgba(5, 8, 18, 0.65);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.1rem;
  align-items: start;
}

.footer h4 {
  font-size: 0.95rem;
  margin-bottom: 0.42rem;
}

.footer-logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  margin-bottom: 0.55rem;
  object-fit: cover;
}

.footer p,
.footer a,
.footer li {
  color: #b8c8eb;
  font-size: 0.95rem;
}

.footer ul {
  display: grid;
  gap: 0.28rem;
}

.footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(126, 151, 212, 0.24);
  color: #8ea5d3;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulseFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(16px) scale(1.08);
  }
}

@media (max-width: 1100px) {
  .main-nav {
    gap: 0.22rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

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

  .game-shell {
    grid-template-columns: 1fr;
  }

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

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

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
  }

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

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 4vw;
    right: 4vw;
    background: rgba(7, 11, 25, 0.96);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.7rem;
    display: none;
    box-shadow: var(--shadow-soft);
  }

  .main-nav.open {
    display: grid;
    gap: 0.2rem;
  }

  .main-nav a {
    padding: 0.7rem 0.72rem;
  }

  .grid.games,
  .grid.two,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-badges {
    grid-template-columns: 1fr;
  }

  .hero-main-image {
    height: 220px;
  }

  .inline-stats,
  .achievement-grid {
    grid-template-columns: 1fr;
  }

  #rune-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .slot-reels,
  .hand {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .header-inner {
    min-height: 66px;
  }

  .brand-text {
    font-size: 0.89rem;
  }

  .hero {
    border-radius: 20px;
  }

  .hero-inner {
    padding: 1.3rem;
  }

  .button {
    width: 100%;
  }

  #rune-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .slot-reels,
  .hand {
    grid-template-columns: 1fr;
  }

  .reel {
    --slot-cell: 56px;
    --slot-start: -168px;
    --slot-loop-end: calc(var(--slot-cell) * -12);
    height: calc(var(--slot-cell) * 3);
  }

  .footer-bottom {
    flex-direction: column;
  }

  .game-thumb {
    max-height: 150px;
  }

  .hero-main-image {
    height: 170px;
  }
}
