:root {
  --topbar-height: 74px;
  --mobile-tabs-height: 56px;
  --bg: #07100f;
  --bg-deep: #040908;
  --panel: #0d1717;
  --panel-2: #101c1b;
  --panel-soft: rgba(16, 28, 27, .82);
  --gold: #d3a354;
  --gold-light: #f1d48a;
  --gold-dark: #7b4f24;
  --emerald: #20d486;
  --emerald-dark: #08764a;
  --purple: #5c355f;
  --purple-dark: #2b1839;
  --text: #f8ead0;
  --muted: #a99067;
  --border-gold: rgba(211, 163, 84, .62);
  --shadow-deep: 0 18px 50px rgba(0, 0, 0, .58);
  --glow-gold: 0 0 22px rgba(211, 163, 84, .22);
  --glow-green: 0 0 28px rgba(32, 212, 134, .28);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 28% 0, rgba(32, 212, 134, .13), transparent 34rem),
    radial-gradient(circle at 90% 12%, rgba(211, 163, 84, .15), transparent 28rem),
    repeating-linear-gradient(90deg, rgba(211, 163, 84, .035) 0 1px, transparent 1px 74px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 56px),
    linear-gradient(180deg, #081514 0%, var(--bg-deep) 44%, #030606 100%);
  overflow-x: hidden;
}

body::before {
  content: "TALISMANIA CASINO";
  position: fixed;
  inset: auto 0 0;
  z-index: -1;
  min-height: 38vh;
  padding: 2rem 0;
  color: rgba(211, 163, 84, .055);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 5vw, 5rem);
  font-weight: 900;
  letter-spacing: .38em;
  text-align: center;
  transform: rotate(-2deg);
  pointer-events: none;
}

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

button,
input {
  font: inherit;
}

button,
a[data-ref] {
  cursor: pointer;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  min-height: 100vh;
}

.page {
  min-width: 0;
  min-height: 100vh;
  padding-top: var(--topbar-height);
  padding-left: 238px;
  overflow-x: hidden;
}

.topbar {
  position: fixed;
  top: 0;
  left: 238px;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(620px, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 74px;
  padding: 10px 26px;
  border-bottom: 1px solid rgba(211, 163, 84, .22);
  background:
    linear-gradient(180deg, rgba(15, 27, 26, .96), rgba(5, 10, 9, .92)),
    repeating-linear-gradient(90deg, rgba(211, 163, 84, .06) 0 1px, transparent 1px 32px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .42);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: var(--glow-gold), 0 2px 0 rgba(0, 0, 0, .7);
}

.brand img {
  width: 190px;
  max-width: min(190px, 100%);
  height: auto;
  filter: drop-shadow(0 0 12px rgba(211, 163, 84, .26));
}

.brand--side {
  width: 100%;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  padding: 14px 12px 10px;
  font-size: 1rem;
}

.brand--side img {
  width: 190px;
  max-width: 100%;
}

.brand--mobile {
  display: none;
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  color: var(--gold-light);
  background:
    radial-gradient(circle at 30% 20%, rgba(241, 212, 138, .22), transparent 34%),
    linear-gradient(145deg, #122221, #07100f 62%, #1b1207);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 22px rgba(0, 0, 0, .38);
}

.icon-button svg,
.sidebar svg,
.category-card svg,
.drawer-app svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 8px rgba(32, 212, 134, .22));
}

.burger {
  display: none;
}

.top-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(211, 163, 84, .36);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(4, 9, 8, .95), rgba(15, 27, 26, .86)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 18px);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .42);
}

.top-search__icon {
  position: absolute;
  left: 17px;
  top: 50%;
  color: var(--gold);
  transform: translateY(-50%);
}

.top-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px 0 48px;
  color: var(--text);
  background: transparent;
}

.top-search input::placeholder {
  color: rgba(169, 144, 103, .86);
}

.auth-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-talis {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 2px solid var(--border-gold);
  border-radius: 999px;
  color: #fff9e8;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 800;
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .65), 0 0 12px rgba(255, 255, 255, .25);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .18),
    inset 0 -8px 18px rgba(0, 0, 0, .42),
    0 0 0 1px rgba(255, 230, 160, .14),
    0 10px 24px rgba(0, 0, 0, .42);
  overflow: hidden;
  isolation: isolate;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.btn-talis::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  border: 1px solid rgba(255, 230, 165, .28);
  pointer-events: none;
  z-index: -1;
}

.btn-talis::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, .18) 45%, transparent 52%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 12px);
  opacity: .35;
  transform: translateX(-35%);
  transition: transform .45s ease;
  pointer-events: none;
}

.btn-talis:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .22),
    inset 0 -8px 18px rgba(0, 0, 0, .44),
    0 0 0 1px rgba(255, 230, 160, .22),
    0 12px 30px rgba(0, 0, 0, .48),
    var(--glow-gold);
}

.btn-talis:hover::after {
  transform: translateX(24%);
}

.btn-talis:active {
  transform: translateY(1px) scale(.99);
  box-shadow: inset 0 6px 16px rgba(0, 0, 0, .48);
}

.btn-talis--green {
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 244, 173, .5), transparent 22%),
    linear-gradient(180deg, #31e99a 0%, #0d9c61 44%, #06462f 100%);
}

.btn-talis--purple {
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 221, 245, .42), transparent 22%),
    linear-gradient(180deg, #7d4d82 0%, var(--purple) 45%, var(--purple-dark) 100%);
}

.btn-talis--gold {
  color: #fff8dc;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 250, 197, .62), transparent 24%),
    linear-gradient(180deg, #f4ca69 0%, #b5792c 48%, #573313 100%);
}

.btn-talis--hero {
  min-height: 62px;
  padding-inline: 38px;
  font-size: 1rem;
  background:
    radial-gradient(circle at 50% 6%, rgba(255, 255, 195, .62), transparent 28%),
    linear-gradient(180deg, #3bf0a0 0%, #0ba865 46%, #043725 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .24),
    inset 0 -10px 20px rgba(0, 0, 0, .48),
    0 0 0 1px rgba(255, 230, 160, .2),
    0 16px 34px rgba(0, 0, 0, .5),
    var(--glow-green);
}

.frame-talis,
.card-talis,
.game-card,
.category-card,
.promo-frame,
.stone-panel {
  position: relative;
  border: 1px solid var(--border-gold);
  background:
    radial-gradient(circle at 24% 0, rgba(211, 163, 84, .12), transparent 36%),
    radial-gradient(circle at 86% 18%, rgba(32, 212, 134, .08), transparent 34%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 16px),
    linear-gradient(180deg, rgba(16, 28, 27, .96), rgba(5, 10, 9, .96));
  box-shadow: var(--shadow-deep), inset 0 0 26px rgba(0, 0, 0, .42), inset 0 0 0 1px rgba(255, 236, 170, .08);
}

.egypt-border::before,
.frame-talis::before,
.promo-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(241, 212, 138, .18);
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}

.scarab-glow {
  color: var(--emerald);
  text-shadow: var(--glow-green);
  filter: drop-shadow(0 0 18px rgba(32, 212, 134, .42));
}

.gold-divider {
  height: 1px;
  margin: 0 0 18px;
  background: linear-gradient(90deg, transparent, var(--gold-light), var(--gold-dark), transparent);
  box-shadow: var(--glow-gold);
}

.glyph-strip {
  background:
    repeating-linear-gradient(90deg, rgba(211, 163, 84, .28) 0 2px, transparent 2px 14px, rgba(32, 212, 134, .16) 14px 16px, transparent 16px 32px),
    linear-gradient(90deg, transparent, rgba(211, 163, 84, .24), transparent);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: 238px;
  border-right: 1px solid rgba(211, 163, 84, .28);
  background:
    linear-gradient(180deg, rgba(7, 16, 15, .98), rgba(4, 9, 8, .98)),
    repeating-linear-gradient(0deg, rgba(211, 163, 84, .05) 0 1px, transparent 1px 42px);
  box-shadow: 18px 0 44px rgba(0, 0, 0, .42);
}

.sidebar__nav {
  display: grid;
  gap: 7px;
  padding: 10px 12px 18px;
  overflow-y: auto;
}

.sidebar__item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #d8c49d;
  background: transparent;
  text-align: left;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, color .2s ease;
}

.sidebar__item:hover {
  color: #fff3d0;
  border-color: rgba(211, 163, 84, .25);
  background: rgba(211, 163, 84, .07);
}

.sidebar__item.is-active {
  color: #fff8de;
  border-color: rgba(241, 212, 138, .62);
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 236, 166, .2), transparent 34%),
    linear-gradient(135deg, rgba(123, 79, 36, .9), rgba(25, 37, 25, .95) 48%, rgba(211, 163, 84, .22));
  box-shadow: var(--glow-gold), inset 0 0 18px rgba(0, 0, 0, .32);
}

.sidebar__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(211, 163, 84, .48);
  border-radius: 50%;
  color: var(--gold-light);
  background: radial-gradient(circle at 50% 30%, rgba(32, 212, 134, .18), transparent 56%), #091210;
}

.sidebar__label {
  overflow: hidden;
  font-size: .94rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar__foot {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 14px;
  border-top: 1px solid rgba(211, 163, 84, .18);
}

.sidebar__mini {
  display: flex;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(211, 163, 84, .2);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, .025);
  text-align: left;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.sidebar__mini:hover {
  color: #f2ddb0;
  border-color: rgba(241, 212, 138, .52);
  box-shadow: var(--glow-gold);
}

.mobile-primary-tabs {
  display: none;
}

.main-content {
  display: grid;
  gap: 24px;
  width: min(100%, 1540px);
  max-width: 100%;
  margin: 0 auto;
  padding: 22px 26px 44px;
}

.main-content > * {
  min-width: 0;
}

.hero {
  min-height: clamp(360px, 38vw, 520px);
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 31% 50%, rgba(32, 212, 134, .18), transparent 34%),
    linear-gradient(90deg, rgba(3, 6, 6, .86), rgba(3, 6, 6, .32) 48%, rgba(3, 6, 6, .7));
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__glyph {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 14px;
}

.hero__copy {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 3;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  width: min(560px, 43%);
  height: 100%;
  padding: 42px 28px 72px clamp(54px, 4.8vw, 82px);
}

.hero__amulet {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(241, 212, 138, .48);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(32, 212, 134, .2), transparent 60%),
    rgba(3, 8, 7, .72);
  box-shadow: inset 0 0 18px rgba(32, 212, 134, .14), var(--glow-green);
}

.hero__amulet svg {
  width: 31px;
  height: 31px;
}

.hero__eyebrow {
  margin: 0;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.9rem, 1.25vw, 1.28rem);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: var(--glow-gold);
}

.hero h1,
.hero__copy h3 {
  max-width: 10.8ch;
  margin: 0;
  color: #fff7da;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 4.35vw, 4.75rem);
  line-height: .86;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(0, 0, 0, .78), 0 0 30px rgba(211, 163, 84, .34);
}

.hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px;
  height: 58px;
  border: 1px solid rgba(241, 212, 138, .5);
  color: var(--gold-light);
  background: rgba(5, 10, 9, .76);
  transform: translateY(-50%);
  box-shadow: var(--glow-gold);
}

.hero__arrow--prev {
  left: 16px;
  border-radius: 0 16px 16px 0;
}

.hero__arrow--next {
  right: 16px;
  border-radius: 16px 0 0 16px;
}

.hero__arrow--prev svg {
  transform: rotate(180deg);
}

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 6;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero__dots button {
  width: 30px;
  height: 7px;
  border: 1px solid rgba(241, 212, 138, .45);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
}

.hero__dots button.is-active {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  box-shadow: var(--glow-gold);
}

.category-rail {
  margin-top: -2px;
}

.mini-game {
  display: grid;
  gap: 14px;
  min-height: 380px;
  padding: 20px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  content-visibility: auto;
  contain-intrinsic-size: 430px;
}

.mini-game::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 34%, rgba(32, 212, 134, .18), transparent 30%),
    radial-gradient(circle at 18% 68%, rgba(211, 163, 84, .13), transparent 26%),
    linear-gradient(90deg, rgba(211, 163, 84, .09), transparent 34%);
  pointer-events: none;
}

.mini-game__copy,
.mini-game__hud,
.mini-game__field {
  position: relative;
  z-index: 3;
}

.mini-game__copy {
  display: grid;
  align-content: center;
  gap: 8px;
  max-width: 64ch;
  padding: 8px 6px;
}

.mini-game__eyebrow {
  margin: 0;
  color: var(--emerald);
  font-size: .82rem;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-shadow: var(--glow-green);
}

.mini-game__copy h2 {
  margin: 0;
  color: #fff4d0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.1vw, 2.25rem);
  line-height: 1.06;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .72), var(--glow-gold);
}

.mini-game__copy p:last-child {
  margin: 0;
  color: #d8c49d;
  line-height: 1.45;
}

.mini-game__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.mini-game__hud {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  z-index: 4;
}

.mini-game__hud span {
  min-width: 96px;
  padding: 9px 12px;
  border: 1px solid rgba(211, 163, 84, .38);
  border-radius: 999px;
  color: #e9d4a7;
  background: rgba(4, 9, 8, .72);
  box-shadow: inset 0 0 14px rgba(0, 0, 0, .36);
  font-size: .84rem;
  font-weight: 850;
  text-align: center;
}

.mini-game__hud-pigs strong {
  color: #ff9fd4;
}

.mini-game__hud strong {
  color: var(--gold-light);
}

.mini-game__field {
  min-height: 360px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 22% 70%, rgba(32, 212, 134, .12), transparent 26%),
    radial-gradient(circle at 76% 34%, rgba(211, 163, 84, .16), transparent 25%),
    repeating-linear-gradient(90deg, rgba(211, 163, 84, .05) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 34px),
    linear-gradient(180deg, #10201e, #050908);
}

.mini-game__field::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54px;
  background:
    repeating-linear-gradient(90deg, rgba(241, 212, 138, .34) 0 2px, transparent 2px 16px),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, .72));
  pointer-events: none;
}

.mini-game__field--birds {
  cursor: grab;
  padding: 0;
  background:
    radial-gradient(circle at 52% 20%, rgba(32, 212, 134, .18), transparent 26%),
    radial-gradient(circle at 50% 84%, rgba(211, 163, 84, .18), transparent 34%),
    linear-gradient(180deg, #0b211d 0%, #07110f 48%, #030504 100%);
  box-shadow:
    inset 0 -10px 0 rgba(0, 0, 0, .22),
    inset 0 0 0 1px rgba(255, 236, 170, .18),
    inset 0 0 64px rgba(0, 0, 0, .46),
    0 0 26px rgba(32, 212, 134, .12);
}

.mini-game__stage {
  display: grid;
  justify-items: center;
}

.mini-game--birds .mini-game__field {
  width: 100%;
  max-width: 1080px;
  min-height: 540px;
}

.mini-game__field--birds::before {
  height: 0;
  display: none;
}

.mini-game__field--birds .mini-game__overlay,
.mini-game__field--birds .mini-game__result {
  background:
    radial-gradient(circle at 50% 42%, rgba(32, 212, 134, .22), transparent 28%),
    radial-gradient(circle, rgba(10, 28, 25, .48), rgba(3, 7, 6, .86));
  backdrop-filter: blur(2px);
}

.birds-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.birds-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 4;
  margin: 0;
  max-width: min(92%, 420px);
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(241, 212, 138, .42);
  background:
    radial-gradient(circle at 20% 10%, rgba(32, 212, 134, .18), transparent 32%),
    rgba(4, 9, 8, .76);
  color: #fff1c8;
  font-size: .78rem;
  font-weight: 750;
  text-align: center;
  pointer-events: none;
  box-shadow: var(--glow-gold), inset 0 0 14px rgba(0, 0, 0, .34);
}

.mini-game__field--birds.is-dragging {
  cursor: grabbing;
}

.mini-game__overlay,
.mini-game__result {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 18px;
  background: radial-gradient(circle, rgba(7, 16, 15, .38), rgba(3, 6, 6, .78));
}

.mini-game__overlay.is-hidden {
  display: none;
}

.mini-game__result {
  align-content: center;
  gap: 12px;
  text-align: center;
}

.mini-game__result[hidden] {
  display: none;
}

.mini-game__result p,
.mini-game__result h3 {
  margin: 0;
}

.mini-game__result p {
  color: var(--emerald);
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: var(--glow-green);
}

.mini-game__result h3 {
  max-width: 440px;
  color: #fff4d0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 3rem);
  line-height: 1;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .74), var(--glow-gold);
}

.rail-scroll,
.game-row,
.sport-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 14px;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) transparent;
  padding: 3px 2px 12px;
}

.category-card {
  display: grid;
  place-items: center;
  gap: 8px;
  width: 132px;
  min-height: 104px;
  border-radius: var(--radius-md);
  color: var(--gold-light);
  text-align: center;
  scroll-snap-align: start;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(32, 212, 134, .12);
  border-radius: 11px;
  pointer-events: none;
}

.category-card:hover,
.category-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(241, 212, 138, .82);
  box-shadow: var(--shadow-deep), var(--glow-gold), inset 0 0 22px rgba(32, 212, 134, .08);
}

.category-card svg,
.category-card__icon-img {
  width: 56px;
  height: 56px;
}

.category-card__icon-img {
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(32, 212, 134, .36));
}

.category-card__label {
  max-width: 100%;
  padding-inline: 8px;
  overflow: hidden;
  color: #f8e7bd;
  font-size: .86rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-section {
  content-visibility: auto;
  contain-intrinsic-size: 330px;
}

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

.section-head h2 {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  color: #fff3cf;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 1.5vw, 1.8rem);
  line-height: 1.1;
  text-shadow: var(--glow-gold);
}

.section-head h2::before {
  content: "";
  width: 8px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  box-shadow: var(--glow-gold);
}

.section-head a {
  flex: none;
  min-height: 34px;
  padding: 8px 14px;
  border: 1px solid rgba(211, 163, 84, .32);
  border-radius: 999px;
  color: var(--gold-light);
  background: rgba(255, 255, 255, .035);
  font-size: .88rem;
  font-weight: 800;
}

.game-card {
  display: block;
  width: clamp(136px, 10.8vw, 184px);
  overflow: hidden;
  border-radius: 14px;
  scroll-snap-align: start;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(241, 212, 138, .88);
  box-shadow: var(--shadow-deep), var(--glow-gold), 0 0 32px rgba(32, 212, 134, .14);
}

.game-card__media {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #040908;
}

.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .32s ease;
}

.game-card:hover img {
  transform: scale(1.045);
}

.game-card__tag {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  padding: 4px 7px;
  border: 1px solid rgba(241, 212, 138, .74);
  border-radius: 999px;
  color: #f8fbff;
  background: linear-gradient(180deg, #267db7, #104868);
  box-shadow: 0 0 14px rgba(38, 125, 183, .5), inset 0 1px 0 rgba(255, 255, 255, .24);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.game-card__title {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  color: #fff1c8;
  background: linear-gradient(180deg, rgba(12, 22, 21, .95), rgba(4, 8, 7, .98));
  font-size: .82rem;
  font-weight: 850;
  line-height: 1.15;
  text-shadow: 0 1px 0 #000;
}

.sport-card {
  position: relative;
  display: grid;
  align-content: end;
  width: clamp(210px, 18vw, 286px);
  min-height: 154px;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  background: #07100f;
  box-shadow: var(--shadow-deep), inset 0 0 0 1px rgba(255, 236, 170, .08);
  scroll-snap-align: start;
}

.sport-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
}

.sport-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(4, 8, 7, .94));
  z-index: 1;
}

.sport-card__label {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 12px;
  color: #fff4d2;
  font-weight: 900;
}

.sport-card__label span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(241, 212, 138, .5);
  border-radius: 50%;
  color: var(--emerald);
  background: rgba(4, 9, 8, .78);
}

.wide-promo {
  min-height: clamp(250px, 25vw, 390px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  content-visibility: auto;
  contain-intrinsic-size: 360px;
}

.wide-promo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
}

.wide-promo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 40%, rgba(211, 163, 84, .16), transparent 30%),
    linear-gradient(90deg, rgba(3, 6, 6, .9), rgba(3, 6, 6, .35), rgba(3, 6, 6, .72));
}

.wide-promo__copy {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  width: min(560px, 70%);
  min-height: inherit;
  padding: clamp(26px, 5vw, 62px);
}

.wide-promo__copy p {
  margin: 0;
  color: var(--emerald);
  font-weight: 900;
  text-transform: uppercase;
}

.wide-promo__copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.5vw, 3.8rem);
  line-height: 1;
  text-shadow: 0 4px 0 rgba(0, 0, 0, .7), var(--glow-gold);
}

.seo-text,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: 340px;
}

.seo-text {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.seo-text h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
}

.seo-text h1 {
  margin: 0 0 10px;
  color: #fff4d0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.seo-text h3 {
  margin: 22px 0 10px;
  color: #f0d9a6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 1.65vw, 1.35rem);
}

.seo-text p {
  max-width: 920px;
  margin: 0 0 14px;
  color: #d8c49d;
  line-height: 1.7;
}

.seo-table-wrap {
  max-width: 100%;
  margin: 0 0 20px;
  overflow-x: auto;
}

.seo-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  border: 1px solid rgba(211, 163, 84, .28);
  background: rgba(8, 14, 13, .58);
}

.seo-table th,
.seo-table td {
  padding: 10px 12px;
  border: 1px solid rgba(211, 163, 84, .2);
  text-align: left;
  vertical-align: top;
}

.seo-table th {
  color: #f4dfb1;
  background: rgba(50, 33, 16, .52);
  font-weight: 850;
}

.seo-table td {
  color: #d8c49d;
  font-size: .94rem;
  line-height: 1.55;
}

.seo-faq {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(211, 163, 84, .24);
}

.seo-faq__item {
  margin: 0 0 10px;
  border: 1px solid rgba(211, 163, 84, .24);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(16, 28, 27, .82), rgba(5, 10, 9, .82));
  overflow: hidden;
}

.seo-faq__item summary {
  position: relative;
  display: block;
  padding: 13px 44px 13px 14px;
  color: #f0d9a6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.98rem, 1.35vw, 1.12rem);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.seo-faq__item summary::-webkit-details-marker {
  display: none;
}

.seo-faq__item summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-light);
  font-size: 1.2rem;
  line-height: 1;
}

.seo-faq__item[open] summary::after {
  content: "−";
}

.seo-faq__item p {
  margin: 0;
  padding: 0 14px 14px;
  color: #d8c49d;
  line-height: 1.6;
}

.footer {
  display: grid;
  gap: 18px;
  padding: 24px 0 64px;
  color: #cbb58b;
}

.footer__accordions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.footer-accordion {
  display: block;
  min-height: 48px;
  border: 1px solid rgba(211, 163, 84, .24);
  border-radius: 12px;
  color: #f2ddb0;
  background: linear-gradient(180deg, rgba(16, 28, 27, .82), rgba(5, 10, 9, .82));
}

.footer-accordion__title {
  display: block;
  padding: 14px;
  font-weight: 850;
}

.footer-accordion p {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--muted);
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.footer__legal-links a {
  min-height: 40px;
  padding: 10px 15px;
  border: 1px solid rgba(211, 163, 84, .34);
  border-radius: 999px;
  color: #fff0c8;
  background:
    radial-gradient(circle at 24% 16%, rgba(32, 212, 134, .12), transparent 34%),
    linear-gradient(180deg, rgba(16, 28, 27, .86), rgba(5, 10, 9, .9));
  box-shadow: inset 0 0 16px rgba(0, 0, 0, .28);
  font-size: .9rem;
  font-weight: 850;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.footer__legal-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(241, 212, 138, .68);
  box-shadow: var(--glow-gold), inset 0 0 16px rgba(0, 0, 0, .32);
}

.footer__payments,
.footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.footer__payments span,
.store-badge,
.age-badge {
  display: grid;
  place-items: center;
  min-width: 82px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(211, 163, 84, .22);
  border-radius: 10px;
  color: #fff2ce;
  background: rgba(255, 255, 255, .045);
  font-weight: 900;
}

.footer__payments img {
  max-height: 24px;
}

.age-badge {
  min-width: 48px;
  border-radius: 50%;
  color: #fff;
  background: #851c2b;
}

.legal-body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 0, rgba(32, 212, 134, .12), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(211, 163, 84, .14), transparent 30rem),
    repeating-linear-gradient(90deg, rgba(211, 163, 84, .035) 0 1px, transparent 1px 74px),
    linear-gradient(180deg, #081514 0%, #040908 100%);
}

.legal-shell {
  width: min(1120px, calc(100% - 32px));
  max-width: 100%;
  margin: 0 auto;
  padding: 22px 0 54px;
}

.legal-shell,
.legal-shell * {
  box-sizing: border-box;
}

.legal-header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  margin-bottom: 22px;
  padding: 12px 16px;
  border: 1px solid rgba(211, 163, 84, .24);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 10% 16%, rgba(32, 212, 134, .1), transparent 34%),
    linear-gradient(180deg, rgba(15, 27, 26, .94), rgba(5, 10, 9, .92));
  box-shadow: var(--shadow-deep);
}

.legal-header,
.legal-hero,
.legal-content,
.legal-card,
.legal-table-wrap,
.legal-footer {
  min-width: 0;
  max-width: 100%;
}

.legal-header .brand img {
  width: 172px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: 0;
}

.legal-nav a {
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid rgba(211, 163, 84, .3);
  border-radius: 999px;
  color: #ecd7aa;
  background: rgba(255, 255, 255, .035);
  font-size: .86rem;
  font-weight: 800;
}

.legal-nav a[aria-current="page"] {
  color: #fff6d6;
  border-color: rgba(241, 212, 138, .68);
  background: linear-gradient(180deg, rgba(123, 79, 36, .7), rgba(10, 18, 17, .92));
  box-shadow: var(--glow-gold);
}

.legal-hero {
  padding: clamp(28px, 5vw, 58px);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.legal-kicker {
  margin: 0 0 12px;
  color: var(--emerald);
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-shadow: var(--glow-green);
}

.legal-hero h1 {
  max-width: 850px;
  margin: 0;
  color: #fff4d0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: .95;
  overflow-wrap: anywhere;
  text-shadow: 0 4px 0 rgba(0, 0, 0, .72), var(--glow-gold);
}

.legal-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: #d8c49d;
  font-size: 1.03rem;
  line-height: 1.7;
}

.legal-content {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.legal-card {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
}

.legal-card h2,
.legal-card h3 {
  margin: 0 0 12px;
  color: #fff0c8;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

.legal-card h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.35rem);
}

.legal-card h3 {
  font-size: 1.28rem;
}

.legal-card p,
.legal-card li {
  color: #d6c29b;
  line-height: 1.72;
}

.legal-card p {
  margin: 0 0 13px;
}

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

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.legal-mini {
  padding: 16px;
  border: 1px solid rgba(211, 163, 84, .25);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .035);
}

.legal-mini strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-light);
}

.legal-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(211, 163, 84, .22);
  border-radius: var(--radius-md);
}

.legal-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  color: #d8c49d;
}

.legal-table th,
.legal-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(211, 163, 84, .16);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  color: #fff0c8;
  background: rgba(211, 163, 84, .08);
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding: 18px;
  color: var(--muted);
}

.legal-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-footer__links a {
  color: var(--gold-light);
  font-weight: 800;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.mobile-drawer.is-open {
  display: block;
}

.drawer__overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, .62);
}

.drawer__panel {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(92vw, 390px);
  padding: 14px;
  border-right: 1px solid var(--border-gold);
  background:
    radial-gradient(circle at 20% 0, rgba(32, 212, 134, .12), transparent 30%),
    linear-gradient(180deg, #0b1716, #030606);
  box-shadow: 24px 0 60px rgba(0, 0, 0, .55);
  overflow-y: auto;
  transform: translateX(-102%);
  transition: transform .25s ease;
}

.mobile-drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__head,
.drawer__auth {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.drawer__auth .btn-talis {
  flex: 1;
  min-height: 44px;
  padding-inline: 12px;
  font-size: .78rem;
}

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

.drawer__nav .sidebar__item {
  grid-template-columns: 40px 1fr;
}

.drawer-app {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: var(--radius-md);
  color: #fff0c8;
}

.drawer-app svg {
  width: 34px;
  height: 34px;
  color: var(--emerald);
}

.drawer-app small {
  color: var(--muted);
}

.drawer__foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.drawer__foot a {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 1px solid rgba(211, 163, 84, .26);
  border-radius: 12px;
  color: var(--gold-light);
  background: rgba(255, 255, 255, .045);
}

.cookie-bar {
  position: fixed;
  left: calc(238px + 26px);
  right: 26px;
  bottom: 18px;
  z-index: 70;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid rgba(211, 163, 84, .36);
  border-radius: 16px;
  background: rgba(4, 9, 8, .94);
  box-shadow: var(--shadow-deep), var(--glow-gold);
}

.cookie-bar.is-hidden {
  display: none;
}

.cookie-bar p {
  margin: 0;
  color: #d7c39d;
  font-size: .92rem;
}

.btn-cookie {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(241, 212, 138, .5);
  border-radius: 999px;
  color: #07100f;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  font-weight: 950;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1120px) {
  .page {
    padding-left: 0;
  }

  .topbar {
    left: 0;
  }

  .sidebar {
    display: none;
  }

  .topbar {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .burger {
    display: inline-grid;
  }

  .brand--top {
    justify-self: start;
  }

  .brand--mobile {
    display: inline-flex;
  }

  .topbar .top-search {
    grid-column: 1 / -1;
    order: 4;
  }

  .cookie-bar {
    left: 16px;
    right: 16px;
  }
}

@media (max-width: 760px) {
  :root {
    --topbar-height: 169px;
  }

  .topbar {
    min-height: 64px;
    padding: 8px 12px 10px;
  }

  .brand img {
    width: 150px;
  }

  .auth-actions {
    gap: 6px;
  }

  .auth-actions .btn-talis {
    min-height: 38px;
    padding-inline: 12px;
    font-size: .68rem;
  }

  .mobile-primary-tabs {
    position: fixed;
    top: calc(var(--topbar-height) - var(--mobile-tabs-height));
    left: 0;
    right: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 20px 12px 14px;
    background: rgba(4, 9, 8, .9);
    border-bottom: 1px solid rgba(211, 163, 84, .16);
    backdrop-filter: blur(10px);
  }

  .mobile-primary-tabs button {
    min-height: 38px;
    border: 1px solid rgba(211, 163, 84, .24);
    border-radius: 999px;
    color: #d7c39d;
    background: rgba(255, 255, 255, .04);
    font-size: .78rem;
    font-weight: 850;
  }

  .mobile-primary-tabs button.is-active {
    color: #fff5d3;
    border-color: rgba(241, 212, 138, .62);
    background: linear-gradient(180deg, rgba(123, 79, 36, .72), rgba(10, 18, 17, .92));
  }

  .main-content {
    gap: 18px;
    padding: 14px 12px 34px;
  }

  .hero {
    min-height: 560px;
    border-radius: 18px;
  }

  .hero__media::after {
    background:
      radial-gradient(circle at 50% 28%, rgba(32, 212, 134, .18), transparent 33%),
      linear-gradient(180deg, rgba(3, 6, 6, .36), rgba(3, 6, 6, .94) 58%);
  }

  .hero__media img {
    object-position: 68% center;
  }

  .hero__copy {
    inset: 0;
    justify-items: center;
    align-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    padding: 26px 18px 42px;
    text-align: center;
  }

  .hero h1,
  .hero__copy h3 {
    max-width: 11ch;
    font-size: clamp(2rem, 12vw, 3.35rem);
  }

  .hero__arrow {
    display: none;
  }

  .category-card {
    width: 104px;
    min-height: 94px;
  }

  .mini-game {
    gap: 14px;
    padding: 14px;
  }

  .mini-game__top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .mini-game__copy {
    padding: 8px;
    text-align: center;
  }

  .mini-game__hud {
    justify-content: center;
  }

  .mini-game__field {
    min-height: 390px;
  }

  .mini-game__field--birds {
    min-height: 370px;
  }

  .mini-game--birds .mini-game__field {
    max-width: 100%;
    min-height: 390px;
  }

  .birds-hint {
    font-size: .72rem;
    bottom: 8px;
  }

  .seo-table-wrap {
    overflow-x: visible;
  }

  .seo-table {
    min-width: 0;
    table-layout: fixed;
  }

  .seo-table th,
  .seo-table td {
    padding: 7px 6px;
    font-size: .74rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  .game-card {
    width: 142px;
  }

  .sport-card {
    width: 238px;
  }

  .wide-promo {
    min-height: 430px;
  }

  .wide-promo__copy {
    justify-items: center;
    align-content: end;
    width: 100%;
    min-height: 430px;
    padding: 24px 18px 38px;
    text-align: center;
  }

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

  .legal-shell {
    width: 100%;
    padding: 12px 12px 40px;
  }

  .legal-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 18px;
  }

  .legal-header .brand img {
    width: min(176px, 68vw);
  }

  .legal-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .legal-nav a {
    min-height: 36px;
    padding: 8px 12px;
    font-size: .82rem;
  }

  .legal-hero {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .legal-kicker {
    font-size: .78rem;
    letter-spacing: .1em;
  }

  .legal-hero h1 {
    font-size: clamp(2rem, 9.4vw, 2.75rem);
    line-height: .96;
  }

  .legal-hero p {
    font-size: .98rem;
    line-height: 1.65;
  }

  .legal-content {
    gap: 16px;
    margin-top: 18px;
  }

  .legal-card {
    padding: 20px 18px;
    border-radius: 18px;
  }

  .legal-card h2 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .legal-card p,
  .legal-card li {
    line-height: 1.65;
  }

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

  .legal-mini {
    padding: 14px;
  }

  .legal-table {
    min-width: 560px;
    table-layout: fixed;
  }

  .legal-table th,
  .legal-table td {
    padding: 12px 13px;
    font-size: .92rem;
  }

  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 18px;
  }

  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
    bottom: 10px;
    padding: 12px;
  }
}

@media (max-width: 420px) {
  :root {
    --topbar-height: 211px;
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .auth-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .mobile-primary-tabs {
    top: calc(var(--topbar-height) - var(--mobile-tabs-height));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
