:root {
  --bg-main: #fffaf0;
  --bg-soft: #f9f2e3;
  --paper: #ffffff;
  --paper-soft: #fff7e8;
  --line: #ddccac;
  --line-strong: #c9a565;
  --text: #2f240f;
  --muted: #645337;
  --accent: #ba8521;
  --accent-strong: #8c5f12;
  --accent-soft: rgba(186, 133, 33, 0.14);
  --accent-blue: #355b8e;
  --accent-blue-soft: rgba(53, 91, 142, 0.16);
  --accent-teal: #2b7c75;
  --accent-coral: #cb7f4e;
  --ok-bg: #edf8ef;
  --ok-line: #8fbe97;
  --warn-bg: #fff4e7;
  --warn-line: #d6a666;
  --shadow: 0 14px 30px rgba(73, 56, 24, 0.13);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Cairo", "Tajawal", "Noto Kufi Arabic", sans-serif;
  color: var(--text);
  line-height: 1.7;
  position: relative;
  overflow-x: hidden;
  --page-bg-image: url("assets/images/gallery-d.jpg");
  background:
    radial-gradient(circle at 7% 2%, rgba(255, 224, 155, 0.34), transparent 24%),
    radial-gradient(circle at 93% 0%, rgba(116, 158, 214, 0.2), transparent 21%),
    linear-gradient(145deg, #fffefb 0%, #fff8ec 40%, #f1f3fb 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(80, 62, 30, 0.04) 0,
    rgba(80, 62, 30, 0.04) 1px,
    transparent 1px,
    transparent 52px
  );
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(145deg, rgba(255, 248, 230, 0.84) 0%, rgba(240, 245, 255, 0.76) 100%),
    var(--page-bg-image);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

body.bg-index {
  --page-bg-image: url("assets/images/gallery-d.jpg");
}

body.bg-register {
  --page-bg-image: url("assets/images/page-register.jpg");
}

body.bg-login {
  --page-bg-image: url("assets/images/page-login.jpg");
}

body.bg-contact {
  --page-bg-image: url("assets/images/page-contact.jpg");
}

body.bg-privacy {
  --page-bg-image: url("assets/images/page-privacy.jpg");
}

body.bg-cookies {
  --page-bg-image: url("assets/images/page-cookies.jpg");
}

body.bg-terms {
  --page-bg-image: url("assets/images/page-terms.jpg");
}

body.bg-responsible {
  --page-bg-image: url("assets/images/page-responsible.jpg");
}

.stars-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.star {
  position: absolute;
  top: -8vh;
  width: var(--size, 2px);
  height: var(--size, 2px);
  border-radius: 999px;
  background: radial-gradient(circle, #fff9dc 0%, #ffe2a1 75%, rgba(255, 226, 161, 0) 100%);
  box-shadow: 0 0 8px rgba(255, 237, 172, 0.9);
  opacity: 0;
  animation: star-fall var(--duration, 11s) linear infinite;
  animation-delay: var(--delay, 0s);
}

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

.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

.age-banner {
  position: sticky;
  top: 0;
  z-index: 1300;
  padding: 0.72rem 1rem;
  text-align: center;
  font-weight: 800;
  color: #fffaf0;
  background: linear-gradient(120deg, #7a1e11 0%, #ae3b1c 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.site-header {
  position: sticky;
  top: 47px;
  z-index: 1200;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  background: rgba(255, 249, 238, 0.9);
}

main,
.site-footer {
  position: relative;
  z-index: 2;
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.88rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-size: 1.24rem;
  font-weight: 900;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(150deg, #c69737 0%, #976b18 100%);
  border: 1px solid rgba(255, 238, 200, 0.45);
  box-shadow: 0 4px 14px rgba(31, 23, 7, 0.24);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #715115;
}

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

.nav a {
  border-radius: 10px;
  padding: 0.5rem 0.78rem;
  color: var(--muted);
  font-weight: 700;
  transition: 0.22s ease;
}

.nav a:hover,
.nav a:focus-visible {
  outline: none;
  color: #3f2d0f;
  background: linear-gradient(140deg, var(--accent-soft) 0%, var(--accent-blue-soft) 100%);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0.72rem 1.14rem;
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff9ec;
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-strong) 62%, var(--accent-blue) 100%);
  box-shadow: 0 12px 24px rgba(170, 121, 24, 0.24);
}

.btn-ghost {
  background: var(--paper);
  color: #4f390d;
  border-color: var(--line-strong);
}

.btn-small {
  padding: 0.58rem 0.95rem;
  font-size: 0.91rem;
}

main {
  padding-bottom: 2.2rem;
}

.hero {
  padding: 1.4rem 0 1.2rem;
}

.hero-wide {
  padding: 0;
}

.hero-backdrop {
  width: 100%;
  min-height: 74vh;
  padding: 3.2rem 0 3rem;
  background-image:
    linear-gradient(118deg, rgba(20, 40, 74, 0.86) 0%, rgba(47, 79, 121, 0.82) 38%, rgba(141, 106, 43, 0.76) 70%, rgba(210, 166, 78, 0.72) 100%),
    url("assets/images/premium-band.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(255, 240, 210, 0.5);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-backdrop::before,
.hero-backdrop::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-backdrop::before {
  width: 46vw;
  height: 46vw;
  min-width: 420px;
  min-height: 420px;
  background: radial-gradient(circle, rgba(255, 226, 158, 0.34) 0%, rgba(255, 226, 158, 0) 70%);
  top: -24vw;
  left: -14vw;
}

.hero-backdrop::after {
  width: 52vw;
  height: 52vw;
  min-width: 460px;
  min-height: 460px;
  background: radial-gradient(circle, rgba(72, 116, 187, 0.33) 0%, rgba(72, 116, 187, 0) 70%);
  bottom: -30vw;
  right: -18vw;
}

.hero-banner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid rgba(255, 233, 182, 0.55);
  border-radius: 22px;
  padding: 1.5rem 1.2rem;
  background: linear-gradient(180deg, rgba(255, 248, 232, 0.95) 0%, rgba(255, 243, 216, 0.94) 100%);
  box-shadow: 0 20px 40px rgba(17, 31, 56, 0.27);
}

.hero-slogan {
  font-size: clamp(1rem, 2vw, 1.13rem);
  margin-inline: auto;
  max-width: 54ch;
}

.hero-compact-actions {
  justify-content: center;
  margin-top: 0.6rem;
}

.hero-media-row {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
}

.hero-media-tile {
  height: 92px;
  border-radius: 13px;
  border: 1px solid rgba(255, 230, 182, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 20px rgba(16, 28, 51, 0.22);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-media-tile--01 {
  background-image:
    linear-gradient(145deg, rgba(14, 26, 50, 0.4), rgba(191, 140, 43, 0.28)),
    url("assets/images/hero-tile-1.jpg");
}

.hero-media-tile--02 {
  background-image:
    linear-gradient(145deg, rgba(14, 26, 50, 0.35), rgba(86, 132, 204, 0.3)),
    url("assets/images/hero-tile-2.jpg");
}

.hero-media-tile--03 {
  background-image:
    linear-gradient(145deg, rgba(21, 34, 60, 0.38), rgba(203, 127, 78, 0.27)),
    url("assets/images/hero-tile-3.jpg");
}

.hero-highlights {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.5rem;
}

.highlight-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 1rem;
  background: linear-gradient(150deg, #fffef9 0%, #fff6e7 50%, #eef4ff 100%);
  box-shadow: var(--shadow);
}

.highlight-card p {
  margin-bottom: 0;
}

.gallery-section {
  padding-top: 0;
}

.lux-gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-areas:
    "a b"
    "a c"
    "d d";
  gap: 0.9rem;
}

.lux-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(140deg, #fffef9 0%, #fff6e4 55%, #edf4ff 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lux-item--a {
  grid-area: a;
}

.lux-item--b {
  grid-area: b;
}

.lux-item--c {
  grid-area: c;
}

.lux-item--d {
  grid-area: d;
}

.lux-visual {
  min-height: 170px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.lux-visual--a {
  min-height: 370px;
  background-image:
    linear-gradient(140deg, rgba(18, 32, 60, 0.35), rgba(210, 160, 61, 0.2)),
    url("assets/images/gallery-a.jpg");
}

.lux-visual--b {
  background-image:
    linear-gradient(140deg, rgba(16, 30, 55, 0.3), rgba(74, 121, 191, 0.26)),
    url("assets/images/gallery-b.jpg");
}

.lux-visual--c {
  background-image:
    linear-gradient(140deg, rgba(18, 28, 53, 0.35), rgba(182, 132, 48, 0.25)),
    url("assets/images/gallery-c.jpg");
}

.lux-visual--d {
  min-height: 200px;
  background-image:
    linear-gradient(140deg, rgba(22, 32, 55, 0.35), rgba(203, 127, 78, 0.26)),
    url("assets/images/gallery-d.jpg");
}

.lux-caption {
  padding: 0.8rem 0.85rem 0.9rem;
}

.lux-caption h3 {
  margin-bottom: 0.34rem;
}

.lux-caption p {
  margin: 0;
}

.panel {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fffdf9 0%, #fff8ea 70%, #f4f7ff 100%);
  box-shadow: var(--shadow);
  padding: 1.35rem;
}

.hero-note {
  display: grid;
  gap: 0.72rem;
}

.kicker {
  margin: 0 0 0.5rem;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: var(--accent-strong);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.68rem;
  line-height: 1.35;
  color: #35250c;
}

h1 {
  font-size: clamp(1.64rem, 3vw, 2.55rem);
}

h2 {
  font-size: clamp(1.34rem, 2.2vw, 1.9rem);
}

h3 {
  font-size: 1.15rem;
}

h4 {
  font-size: 1rem;
}

p {
  margin: 0 0 0.82rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.notice {
  border-radius: 12px;
  padding: 0.86rem;
  border: 1px solid #e4c78d;
  background: linear-gradient(120deg, #fff8e6 0%, #eef4ff 100%);
}

.notice strong {
  color: #764f04;
}

.mini-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.52rem;
}

.mini-list li {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.62rem 0.74rem;
  background: linear-gradient(135deg, #fffdf7 0%, #f4f8ff 100%);
  color: #5a4625;
}

.section {
  padding: 0.72rem 0 1.5rem;
}

.section-head {
  margin-bottom: 1rem;
}

.section-head p {
  max-width: 76ch;
}

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

.game-card {
  display: grid;
  gap: 0.72rem;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: linear-gradient(152deg, #fffefb 0%, #fff7e7 55%, #eff5ff 100%);
  padding: 1rem;
  box-shadow: var(--shadow);
  animation: appear 0.4s ease both;
}

.game-visual {
  min-height: 136px;
  border-radius: 11px;
  border: 1px solid rgba(219, 184, 121, 0.65);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.game-visual--balls {
  background-image:
    linear-gradient(145deg, rgba(16, 28, 53, 0.33), rgba(203, 154, 70, 0.2)),
    url("assets/images/game-balls.jpg");
}

.game-visual--dice {
  background-image:
    linear-gradient(145deg, rgba(14, 26, 49, 0.33), rgba(82, 128, 196, 0.24)),
    url("assets/images/game-dice.jpg");
}

.game-visual--wheel {
  background-image:
    linear-gradient(145deg, rgba(14, 27, 48, 0.33), rgba(185, 117, 66, 0.24)),
    url("assets/images/game-wheel.jpg");
}

.game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.badge {
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 800;
  color: #4b3309;
  background: linear-gradient(150deg, #f0d18b 0%, #d9b56c 62%, #a8c2ea 100%);
}

.subhead {
  margin-bottom: 0.3rem;
  font-weight: 800;
  color: #463212;
}

.game-list {
  margin: 0;
  padding-right: 1rem;
  display: grid;
  gap: 0.42rem;
  color: #604c2a;
}

.game-example {
  border: 1px dashed #d9b978;
  border-radius: 11px;
  background: linear-gradient(120deg, #fff7e4 0%, #eef5ff 100%);
  color: #674d16;
  padding: 0.7rem;
  font-size: 0.95rem;
}

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

.step-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, #fffef9 0%, #fff8e9 62%, #edf4ff 100%);
  padding: 0.95rem;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  font-weight: 900;
  color: #fff8e7;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  margin-bottom: 0.55rem;
}

.responsible-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}

.info-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, #fffef8 0%, #fff7e6 62%, #edf5ff 100%);
  padding: 1rem;
}

.info-card ul {
  margin: 0;
  padding-right: 1rem;
  display: grid;
  gap: 0.45rem;
  color: #5f4a26;
}

.muted {
  color: #816f4b;
}

.cta-line {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
}

.premium-band {
  position: relative;
  border: 1px solid rgba(233, 202, 144, 0.7);
  border-radius: 18px;
  padding: 1.25rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  background-image:
    linear-gradient(140deg, rgba(22, 34, 60, 0.55), rgba(175, 123, 32, 0.48)),
    url("assets/images/premium-band.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 16px 34px rgba(20, 31, 57, 0.22);
}

.premium-band h2,
.premium-band p,
.premium-band .kicker {
  color: #fff4da;
}

.premium-band .btn-ghost {
  background: rgba(255, 248, 230, 0.95);
}

.page-hero {
  margin-bottom: 1.1rem;
  min-height: 184px;
  border-radius: 18px;
  border: 1px solid rgba(233, 202, 144, 0.72);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 16px 32px rgba(19, 29, 53, 0.2);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(17, 29, 53, 0.72) 0%, rgba(40, 66, 106, 0.54) 40%, rgba(193, 137, 52, 0.46) 100%);
}

.page-hero-copy {
  position: relative;
  z-index: 1;
  padding: 1.2rem 1.1rem;
  max-width: 62ch;
}

.page-hero-copy h2,
.page-hero-copy p,
.page-hero-copy .kicker {
  color: #fff3d9;
}

.page-hero--register {
  background-image: url("assets/images/page-register.jpg");
}

.page-hero--login {
  background-image: url("assets/images/page-login.jpg");
}

.page-hero--contact {
  background-image: url("assets/images/page-contact.jpg");
}

.page-hero--privacy {
  background-image: url("assets/images/page-privacy.jpg");
}

.page-hero--cookies {
  background-image: url("assets/images/page-cookies.jpg");
}

.page-hero--terms {
  background-image: url("assets/images/page-terms.jpg");
}

.page-hero--responsible {
  background-image: url("assets/images/page-responsible.jpg");
}

.form-page {
  padding: 2.35rem 0 2rem;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.05rem;
  align-items: start;
}

.form-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffef9 0%, #fff8eb 65%, #edf4ff 100%);
  box-shadow: var(--shadow);
  padding: 1.18rem;
}

.field-group {
  margin-bottom: 0.84rem;
}

label {
  display: block;
  margin-bottom: 0.34rem;
  font-weight: 800;
  color: #49340f;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.72rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #d5bf95;
  background: #fffdf8;
  color: #412f13;
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(185, 138, 43, 0.18);
}

input.input-invalid,
textarea.input-invalid,
select.input-invalid {
  border-color: #c34d40;
  background: #fff3f1;
  box-shadow: 0 0 0 3px rgba(195, 77, 64, 0.12);
}

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

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
}

.status {
  margin-top: 0.8rem;
  border-radius: 11px;
  padding: 0.72rem 0.82rem;
  font-weight: 700;
  display: none;
}

.status.show {
  display: block;
}

.status-success {
  background: var(--ok-bg);
  border: 1px solid var(--ok-line);
  color: #2f5e38;
}

.status-warning {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: #735015;
}

.legal-page {
  padding: 2.25rem 0;
}

.legal-shell {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffefb 0%, #fff7e6 62%, #eef4ff 100%);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #5b4113;
  background: linear-gradient(125deg, #ffefca 0%, #e7f0ff 100%);
  border: 1px solid #e7c57e;
  margin-bottom: 0.8rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: 1rem;
}

.toc {
  position: sticky;
  top: 145px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, #fffdf8 0%, #f0f6ff 100%);
  padding: 0.9rem;
}

.toc h3 {
  margin-bottom: 0.45rem;
}

.toc ul {
  margin: 0;
  padding-right: 1rem;
  display: grid;
  gap: 0.36rem;
}

.toc a {
  color: #5e4820;
}

.toc a:hover,
.toc a:focus-visible {
  color: #402a05;
}

.legal-content section {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, #fffef9 0%, #fff8ea 65%, #eef5ff 100%);
  padding: 0.94rem;
  margin-bottom: 0.72rem;
}

.legal-content ul,
.legal-content ol {
  margin: 0;
  padding-right: 1.05rem;
  color: #5a4724;
}

.legal-content li + li {
  margin-top: 0.35rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fff4dd 0%, #fde5ba 60%, #dce8fb 100%);
  padding: 1.3rem 0 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 1fr 1.1fr;
  gap: 1rem;
}

.footer-title {
  margin-bottom: 0.45rem;
  font-size: 1.02rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  margin-bottom: 0.45rem;
}

.footer-brand .footer-title {
  margin: 0;
}

.footer-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(117, 86, 31, 0.25);
  box-shadow: 0 6px 16px rgba(74, 53, 18, 0.2);
}

.footer-note {
  margin: 0;
  color: #624f2c;
  font-size: 0.95rem;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.footer-list a {
  color: #5f4a22;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: #2b4b74;
}

.footer-bottom {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid #dfc691;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem;
  color: #6a5631;
  font-size: 0.93rem;
}

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

@keyframes star-fall {
  0% {
    transform: translate3d(0, -15vh, 0);
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  72% {
    opacity: 0.85;
  }
  100% {
    transform: translate3d(var(--drift, 0px), 112vh, 0);
    opacity: 0;
  }
}

@media (max-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .auth-grid,
  .responsible-grid,
  .legal-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .lux-gallery {
    grid-template-columns: 1fr;
    grid-template-areas:
      "a"
      "b"
      "c"
      "d";
  }

  .lux-visual--a {
    min-height: 250px;
  }

  .premium-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .toc {
    position: static;
  }
}

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

  .header-wrap {
    flex-wrap: wrap;
  }

  .nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.35rem;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    border: 1px solid var(--line);
    background: #fffdf7;
  }
}

@media (max-width: 680px) {
  .site-header {
    top: 48px;
  }

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

  .hero-backdrop {
    min-height: 62vh;
    padding: 2.4rem 0 2.1rem;
  }

  .hero-banner {
    border-radius: 16px;
    padding: 1.15rem 0.95rem;
  }

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

  .hero-media-tile {
    height: 78px;
  }

  .lux-visual {
    min-height: 160px;
  }

  .lux-visual--a,
  .lux-visual--d {
    min-height: 190px;
  }

  .game-visual {
    min-height: 120px;
  }

  .footer-logo {
    width: 38px;
    height: 38px;
  }

  .page-hero {
    min-height: 168px;
  }

  .page-hero-copy {
    padding: 0.95rem 0.9rem;
  }

  .panel,
  .form-card,
  .step-card,
  .info-card,
  .game-card,
  .highlight-card,
  .legal-shell,
  .toc,
  .legal-content section {
    border-radius: 14px;
  }
}
