/*
  Игрални зали ELITBET, дизайн 5 „Лоби“.
  Сайтът на залите като раздел от elitbet.bg: странично меню с икони, горна лента с търсене,
  банери с наклонен сгъстен шрифт и плочки с лаймова рамка. Цветовете са от elitbet.bg.
*/

:root {
  --night: #11181b;
  --deep: #0c1113;
  --panel: #1d2429;
  --raise: #292e30;
  --hover: #232b30;
  --line: #262e33;
  --line-strong: #3a4144;
  --lime: #a6cd36;
  --lime-hover: #b8d75e;
  --lime-pale: #c3de78;
  --chalk: #e1e1e1;
  --mist: #9d9fa6;
  --white: #fff;
  --gold: #ffc941;
  --alert: #f26f63;

  --tile-glow: 0 0 0 1px rgba(166, 205, 54, 0.35), 0 0 22px rgba(166, 205, 54, 0.35);
  --r-s: 4px;
  --r-m: 8px;
  --r-l: 12px;
  --display: "Alumni Sans", "Arial Narrow", sans-serif;
  --text: "Commissioner", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --top: 64px;
  --rail: 260px;
}

/* ---------- Основа ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--top) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--night);
  color: var(--chalk);
  font: 400 1rem / 1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--lime);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--lime-hover);
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--white);
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin: 0;
}

button {
  font: inherit;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

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

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-s);
  background: var(--lime);
  color: var(--deep);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
}

/* ---------- Бутони ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-s);
  font: 700 0.9375rem / 1.1 var(--text);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: var(--lime);
  color: var(--deep);
}

.btn--primary:hover {
  background: var(--lime-hover);
  color: var(--deep);
  box-shadow: 0 6px 20px -8px rgba(166, 205, 54, 0.8);
}

.btn--outline {
  border-color: var(--lime);
  background: transparent;
  color: var(--white);
}

.btn--outline:hover {
  background: rgba(166, 205, 54, 0.12);
  color: var(--white);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--lime);
  color: var(--white);
}

.btn--sm {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 0.8125rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.sq-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  background: var(--panel);
  color: var(--white);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, opacity 0.2s;
}

.sq-btn .icon {
  width: 16px;
  height: 16px;
}

.sq-btn:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.sq-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.sq-btn--lg {
  width: 36px;
  height: 36px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  background: var(--panel);
  color: var(--white);
  cursor: pointer;
}

.icon-btn:hover {
  border-color: var(--lime);
}

.text-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--lime);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lime);
  font-weight: 700;
  text-decoration: none;
}

.link-strong::after {
  content: "›";
  font-size: 1.25em;
  line-height: 1;
  transition: transform 0.2s var(--ease);
}

.link-strong:hover::after {
  transform: translateX(3px);
}

/* ---------- Горна лента ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--top);
  padding: 0 16px 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--night);
}

.rail-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  background: var(--panel);
  color: var(--white);
  cursor: pointer;
}

.rail-toggle:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.rail-toggle .i-menu {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: var(--mist);
  text-decoration: none;
}

.brand img {
  width: 138px;
  height: auto;
}

.brand-sub {
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  color: var(--chalk);
  font: italic 800 1.25rem / 1 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topsearch {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 520px;
  height: 42px;
  margin-left: 20px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-m);
  background: var(--panel);
  color: var(--mist);
  font: 500 0.9375rem / 1 var(--text);
  text-align: left;
  cursor: text;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.topsearch:hover {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(166, 205, 54, 0.12);
}

.topsearch-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topsearch kbd {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  background: var(--night);
  color: var(--chalk);
  font: 600 0.8125rem / 1 var(--text);
}

.topbar-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

/* ---------- Странично меню ---------- */

.shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  transition: grid-template-columns 0.35s var(--ease);
}

.rail-collapsed .shell {
  grid-template-columns: 76px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: var(--top);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: calc(100vh - var(--top));
  height: calc(100dvh - var(--top));
  padding: 12px 8px 16px 12px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.side-nav,
.side-sub ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--r-m);
  background: var(--panel);
  color: var(--chalk);
  font: 600 0.9375rem / 1.2 var(--text);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.side-link .icon {
  color: var(--mist);
  transition: color 0.2s, transform 0.3s var(--ease);
}

.side-link:hover {
  background: var(--raise);
  color: var(--white);
}

.side-link:hover .icon {
  color: var(--lime);
  transform: scale(1.1);
}

.side-link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(166, 205, 54, 0.16), var(--panel) 75%);
  color: var(--lime);
  box-shadow: inset 3px 0 0 var(--lime);
}

.side-link[aria-current="page"] .icon {
  color: var(--lime);
}

.side-row {
  display: flex;
  gap: 6px;
}

.side-row .side-link {
  flex: 1;
  min-width: 0;
}

.side-expand {
  display: grid;
  place-items: center;
  width: 44px;
  flex: none;
  border: 0;
  border-radius: var(--r-m);
  background: var(--panel);
  color: var(--mist);
  cursor: pointer;
}

.side-expand:hover {
  background: var(--raise);
  color: var(--white);
}

.side-expand .icon {
  transition: transform 0.3s var(--ease);
}

.side-group.is-open .side-expand .icon {
  transform: rotate(180deg);
}

.side-sub {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.35s var(--ease), visibility 0s 0.35s;
}

.side-group.is-open .side-sub {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.35s var(--ease), visibility 0s;
}

.side-sub ul {
  min-height: 0;
  overflow: hidden;
}

.side-sub li:first-child {
  margin-top: 6px;
}

.side-sub a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-left: 22px;
  padding: 7px 10px 7px 16px;
  border-left: 1px solid var(--line-strong);
  color: var(--mist);
  font-size: 0.875rem;
  text-decoration: none;
}

.side-sub a:hover,
.side-sub a[aria-current="page"] {
  border-left-color: var(--lime);
  color: var(--white);
}

.side-count {
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--raise);
  color: var(--lime);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.side-online {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  padding: 14px;
  border: 1px solid rgba(166, 205, 54, 0.45);
  border-radius: var(--r-m);
  background: radial-gradient(120% 120% at 100% 0%, rgba(166, 205, 54, 0.22), transparent 60%), var(--panel);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.side-online:hover {
  border-color: var(--lime);
  box-shadow: var(--tile-glow);
}

.side-online-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font: italic 900 1.375rem / 1 var(--display);
  letter-spacing: 0.02em;
}

.side-online-title .icon {
  width: 16px;
  height: 16px;
  color: var(--lime);
}

.side-online-text {
  color: var(--mist);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.side-age {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 10px 6px 0;
  color: var(--mist);
  font-size: 0.8125rem;
}

.age-badge {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--alert);
  border-radius: 50%;
  color: var(--white);
  font: 800 0.75rem / 1 var(--text);
}

/* Свито меню: само иконите, а имената се показват като подсказки. */
.rail-collapsed .sidebar {
  overflow: visible;
  padding-inline: 12px;
}

.rail-collapsed .side-link {
  justify-content: center;
  padding-inline: 0;
}

.rail-collapsed .side-label {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  z-index: 5;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  background: var(--raise);
  color: var(--white);
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-4px, -50%);
  transition: opacity 0.15s, transform 0.15s;
}

.rail-collapsed .side-link:hover .side-label,
.rail-collapsed .side-link:focus-visible .side-label {
  opacity: 1;
  transform: translate(0, -50%);
}

.rail-collapsed .side-expand,
.rail-collapsed .side-sub {
  display: none;
}

.rail-collapsed .side-online {
  place-items: center;
  padding: 10px 0;
}

.rail-collapsed .side-online-title {
  font-size: 0;
}

.rail-collapsed .side-online-title .icon {
  width: 20px;
  height: 20px;
}

.rail-collapsed .side-online-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.rail-collapsed .side-age {
  justify-content: center;
}

.rail-collapsed .side-age .side-label {
  display: none;
}

.side-scrim {
  position: fixed;
  inset: var(--top) 0 0;
  z-index: 54;
  background: rgba(5, 8, 9, 0.6);
}

/* ---------- Съдържание ---------- */

.content {
  min-width: 0;
}

main {
  display: block;
  padding: 20px clamp(16px, 2.4vw, 32px) 0;
}

.lobby-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin-bottom: 14px;
}

.lobby-title {
  font: italic 900 clamp(2rem, 3.4vw, 2.75rem) / 1 var(--display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.lobby-title em,
.page-title em,
.slide-title em,
.seo-title em {
  color: var(--lime);
  font-style: inherit;
}

.lobby-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  color: var(--mist);
  font-size: 0.9375rem;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lime-pale);
  font-weight: 600;
}

.live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(166, 205, 54, 0.6);
}

@media (prefers-reduced-motion: no-preference) {
  .live::before {
    animation: live 2s infinite;
  }
}

@keyframes live {
  0% {
    box-shadow: 0 0 0 0 rgba(166, 205, 54, 0.6);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px rgba(166, 205, 54, 0);
  }
}

/* ---------- Банер ---------- */

.banner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--deep);
}

.slides {
  display: grid;
}

.slide {
  position: relative;
  display: grid;
  grid-area: 1 / 1;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 24px;
  min-height: clamp(320px, 29vw, 400px);
  padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 64px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0s 0.7s;
}

.slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s var(--ease), visibility 0s;
}

.slide--jackpot {
  background:
    radial-gradient(55% 110% at 78% 50%, rgba(255, 201, 65, 0.24), transparent 62%),
    radial-gradient(40% 80% at 100% 100%, rgba(166, 205, 54, 0.18), transparent 70%),
    linear-gradient(110deg, var(--deep) 35%, #1b2112 100%);
}

.slide--halls {
  background:
    radial-gradient(60% 120% at 78% 50%, rgba(166, 205, 54, 0.26), transparent 62%),
    linear-gradient(110deg, var(--deep) 35%, #142112 100%);
}

.slide--online {
  background:
    radial-gradient(60% 120% at 76% 50%, rgba(166, 205, 54, 0.3), transparent 60%),
    repeating-linear-gradient(115deg, rgba(166, 205, 54, 0.05) 0 2px, transparent 2px 44px),
    linear-gradient(110deg, var(--deep) 35%, #18220f 100%);
}

.slide-copy {
  position: relative;
  z-index: 1;
}

.slide-kicker {
  color: var(--lime);
  font: 700 0.8125rem / 1.2 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.slide--jackpot .slide-kicker {
  color: var(--gold);
}

.slide-title {
  margin-top: 10px;
  font: italic 900 clamp(3.25rem, 6.4vw, 5.75rem) / 0.84 var(--display);
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.slide-title em {
  display: block;
}

.slide-text {
  max-width: 40ch;
  margin-top: 16px;
  color: var(--chalk);
  font-size: 1.0625rem;
}

.slide .btn {
  margin-top: 24px;
}

.slide-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .slide.is-active .slide-copy > * {
    animation: rise 0.7s var(--ease) both;
  }

  .slide.is-active .slide-copy > :nth-child(2) { animation-delay: 0.08s; }
  .slide.is-active .slide-copy > :nth-child(3) { animation-delay: 0.16s; }
  .slide.is-active .slide-copy > :nth-child(4) { animation-delay: 0.24s; }

  .slide.is-active .slide-art {
    animation: art-in 7s var(--ease) both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes art-in {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  12% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Слайд 1: три ролки, които спират на 7-7-7. */
.slot {
  --sym: clamp(76px, 8.4vw, 116px);
  position: relative;
  display: flex;
  gap: 10px;
  padding: 14px;
  border: 2px solid rgba(255, 201, 65, 0.75);
  border-radius: 18px;
  background: linear-gradient(180deg, #2a2a17, #12170f);
  box-shadow: 0 0 0 6px rgba(255, 201, 65, 0.08), 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 50px rgba(255, 201, 65, 0.18);
}

/* Лампички по рамката на автомата. */
.slot::before {
  content: "";
  position: absolute;
  inset: -11px;
  border: 4px dotted rgba(255, 231, 163, 0.85);
  border-radius: 24px;
  opacity: 0.5;
  pointer-events: none;
}

.reel {
  position: relative;
  width: calc(var(--sym) * 0.86);
  height: var(--sym);
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(180deg, #d9d9d0, #fbfbf6 30%, #fbfbf6 70%, #c9c9bf);
  box-shadow: inset 0 8px 14px rgba(0, 0, 0, 0.35), inset 0 -8px 14px rgba(0, 0, 0, 0.35);
}

.reel-strip {
  display: flex;
  flex-direction: column;
  translate: 0 calc((var(--n, 1) - 1) * -1 * var(--sym));
}

.cell {
  display: grid;
  place-items: center;
  height: var(--sym);
  flex: none;
}

.sym {
  width: 62%;
  height: 62%;
}

.sym-7 {
  width: auto;
  height: auto;
  color: #d8272e;
  font: italic 900 calc(var(--sym) * 0.86) / 1 var(--display);
  text-shadow: 0 2px 0 #7d1015;
}

.sym-bar {
  width: auto;
  height: auto;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--deep);
  color: var(--lime);
  font: italic 900 calc(var(--sym) * 0.3) / 1 var(--display);
  letter-spacing: 0.04em;
}

.sym-star path {
  fill: var(--gold);
  stroke: #b8860b;
  stroke-width: 1;
}

.sym-diamond path {
  fill: #6fd3f2;
  stroke: #2b8db0;
  stroke-width: 1;
  stroke-linejoin: round;
}

.sym-diamond .facet {
  fill: none;
}

.sym-cherry circle {
  fill: var(--alert);
  stroke: #a6342b;
  stroke-width: 1;
}

.sym-cherry .stem {
  fill: none;
  stroke: #4f7a16;
  stroke-width: 1.6;
  stroke-linecap: round;
}

@media (prefers-reduced-motion: no-preference) {
  .slot.is-spinning .reel-strip {
    animation: spin 1.5s cubic-bezier(0.3, 0.1, 0.25, 1.1) backwards;
    animation-delay: calc(var(--r) * 0.28s + 0.2s);
  }

  .slot.is-spinning .reel-strip {
    filter: blur(0);
  }

  .slot.is-win {
    animation: win 1.4s ease-out;
  }

  .slot.is-win::before {
    animation: lights 0.35s steps(2, jump-none) 4;
  }

  .slot.is-win .sym-7 {
    animation: seven 1.4s ease-out;
  }
}

@keyframes spin {
  from {
    translate: 0 0;
  }
}

@keyframes win {
  0%,
  100% {
    box-shadow: 0 0 0 6px rgba(255, 201, 65, 0.08), 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 50px rgba(255, 201, 65, 0.18);
  }
  30% {
    box-shadow: 0 0 0 10px rgba(255, 201, 65, 0.25), 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 90px rgba(255, 201, 65, 0.55);
  }
}

@keyframes lights {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.25;
  }
}

@keyframes seven {
  30% {
    transform: scale(1.12);
  }
}

/* Слайд 2: градовете светват на картата. */
.mini-map {
  width: min(100%, 460px);
}

.mini-map svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.mm-land {
  fill: rgba(166, 205, 54, 0.08);
  stroke: rgba(166, 205, 54, 0.6);
  stroke-width: 3;
  stroke-linejoin: round;
}

.mm-dot {
  fill: var(--lime);
  filter: drop-shadow(0 0 10px rgba(166, 205, 54, 0.9));
}

.mm-ring {
  fill: none;
  stroke: rgba(195, 222, 120, 0.7);
  stroke-width: 3;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .slide.is-active .mm-dot {
    animation: pop 0.5s var(--ease) backwards;
    animation-delay: calc(var(--i) * 0.12s + 0.3s);
    transform-box: fill-box;
    transform-origin: center;
  }

  .slide.is-active .mm-ring {
    animation: ring 2.6s ease-out infinite;
    animation-delay: calc(var(--i) * 0.12s + 0.6s);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0);
  }
}

@keyframes ring {
  0% {
    opacity: 0.9;
    transform: scale(0.4);
  }
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

/* Слайд 3: логото с лъчи и плаващи надписи. */
.online-art {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 440px);
  aspect-ratio: 1.4;
}

.online-art img {
  position: relative;
  z-index: 1;
  width: 72%;
  height: auto;
  filter: drop-shadow(0 0 24px rgba(166, 205, 54, 0.45));
}

.rays {
  position: absolute;
  inset: -30%;
  background: repeating-conic-gradient(from 0deg, rgba(166, 205, 54, 0.16) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 75%);
  mask: radial-gradient(closest-side, #000 20%, transparent 75%);
}

.float-chip {
  position: absolute;
  z-index: 2;
  padding: 8px 14px;
  border: 1px solid rgba(166, 205, 54, 0.6);
  border-radius: 999px;
  background: rgba(12, 17, 19, 0.85);
  color: var(--white);
  font: 700 0.875rem / 1 var(--text);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.8);
}

.float-chip:nth-of-type(1) { top: 10%; left: 6%; }
.float-chip:nth-of-type(2) { top: 18%; right: 0; }
.float-chip:nth-of-type(3) { bottom: 12%; left: 30%; }

@media (prefers-reduced-motion: no-preference) {
  .slide.is-active .rays {
    animation: turn 40s linear infinite;
  }

  .slide.is-active .float-chip {
    animation: bob 4s ease-in-out infinite;
    animation-delay: calc(var(--k) * -1.3s);
  }
}

@keyframes turn {
  to {
    transform: rotate(1turn);
  }
}

@keyframes bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

.banner-controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: rgba(12, 17, 19, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.banner-dots {
  display: flex;
  gap: 4px;
}

.banner-dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.banner-dot span {
  position: relative;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line-strong);
}

.banner-dot span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
}

.banner-dot[aria-current="true"] span::after {
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .banner.is-running .banner-dot[aria-current="true"] span::after {
    animation: progress 7s linear both;
  }
}

@keyframes progress {
  from {
    transform: scaleX(0);
  }
}

/* ---------- Блокове ---------- */

.block {
  margin-top: clamp(32px, 4vw, 48px);
}

.block--flush {
  margin-top: 0;
}

.block-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.block-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font: 700 1.3125rem / 1.2 var(--text);
}

.block-title .icon {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.block-rule {
  flex: 1;
  min-width: 24px;
  height: 1px;
  background: var(--line-strong);
  transform-origin: left;
  transition: transform 0.9s 0.15s var(--ease);
}

.js .block-head[data-reveal]:not(.is-in) .block-rule {
  transform: scaleX(0);
}

.block-link {
  color: var(--lime);
  font: 700 0.875rem / 1 var(--text);
  text-decoration: none;
}

.block-link:hover {
  text-decoration: underline;
}

.block-intro {
  margin: -6px 0 16px;
  color: var(--mist);
}

.row-nav {
  display: flex;
  gap: 6px;
}

.demo-badge {
  padding: 4px 10px;
  border: 1px solid rgba(255, 201, 65, 0.45);
  border-radius: 999px;
  color: var(--gold);
  font: 700 0.75rem / 1.2 var(--text);
  white-space: nowrap;
}

.panel {
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--panel);
}

/* Поява с анимация, а не с transition, за да не се губят преходите при посочване. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal]:not(.is-in) {
    opacity: 0;
  }

  .js [data-reveal].is-in {
    animation: reveal 0.55s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 60ms);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    translate: 0 16px;
  }
}

/* ---------- Джакпоти ---------- */

.jp-cards {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

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

.jp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 132px;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: radial-gradient(120% 100% at 100% 0%, rgba(166, 205, 54, 0.14), transparent 55%), var(--panel);
}

.jp-card--grand {
  border-color: rgba(255, 201, 65, 0.45);
  background: radial-gradient(110% 120% at 100% 0%, rgba(255, 201, 65, 0.2), transparent 55%), var(--panel);
}

.jp-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: 0;
}

.jp-card--grand::after {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.jp-card.is-tick::after {
  animation: tick 1s ease-out;
}

@keyframes tick {
  0% {
    opacity: 0;
    transform: translateX(-60%);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(60%);
  }
}

.jp-card dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mist);
  font: 700 0.8125rem / 1 var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jp-card dt .icon {
  width: 18px;
  height: 18px;
  color: var(--lime);
}

.jp-card--grand dt .icon {
  color: var(--gold);
}

.jp-card dd {
  margin: 14px 0 0;
  color: var(--white);
  font: 800 clamp(2.125rem, 3.2vw, 2.875rem) / 1 var(--display);
}

.jp-card--grand dd {
  color: var(--gold);
  font-size: clamp(2.75rem, 4.4vw, 3.75rem);
}

/* Сиянието е върху целия брояч: върху отделните цифри би се изрязало от рамките им. */
.jp-card--grand .odo {
  filter: drop-shadow(0 0 16px rgba(255, 201, 65, 0.35));
}

.odo {
  display: inline-flex;
  font-variant-numeric: tabular-nums;
}

.odo-d {
  display: inline-block;
  height: 1em;
  overflow: hidden;
}

.odo-strip {
  display: flex;
  flex-direction: column;
  translate: 0 calc(var(--d, 0) * -1em);
  transition: translate 0.9s cubic-bezier(0.2, 0.75, 0.25, 1.05);
}

.odo-strip span {
  height: 1em;
  line-height: 1;
  text-align: center;
}

.odo-s {
  display: inline-block;
  height: 1em;
  line-height: 1;
}

.odo-c {
  margin: 0 -0.06em 0 -0.1em;
}

/* ---------- Плочки ---------- */

.tile-row {
  display: grid;
  grid-auto-columns: clamp(170px, 16.5vw, 214px);
  grid-auto-flow: column;
  gap: 12px;
  margin: 0;
  padding: 4px 2px 14px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.tile {
  scroll-snap-align: start;
}

.tile-link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3 / 4;
  padding: 14px;
  overflow: hidden;
  border: 2px solid rgba(166, 205, 54, 0.4);
  border-radius: var(--r-l);
  background: radial-gradient(90% 60% at 50% 30%, rgba(166, 205, 54, 0.18), transparent 70%), linear-gradient(180deg, #1c2817, #11181b 70%);
  color: var(--white);
  text-decoration: none;
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.4s var(--ease), border-color 0.25s, box-shadow 0.25s;
}

.tile-link::after,
.offer-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.tile-link:hover,
.tile-link:focus-visible {
  border-color: var(--lime);
  color: var(--white);
  box-shadow: var(--tile-glow);
}

.tile-link:hover::after,
.offer-tile:hover::after {
  opacity: 1;
}

.tile-art {
  position: absolute;
  inset: 10% 7% 34%;
}

.tile-art svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.tile-land {
  fill: rgba(166, 205, 54, 0.07);
  stroke: rgba(166, 205, 54, 0.45);
  stroke-width: 7;
  stroke-linejoin: round;
}

.tile-dot {
  fill: var(--lime);
  filter: drop-shadow(0 0 14px rgba(166, 205, 54, 0.9));
}

.tile-ring {
  fill: none;
  stroke: var(--lime);
  stroke-width: 6;
  opacity: 0.6;
  transform-box: fill-box;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .tile-link:hover .tile-ring,
  .tile-link:focus-visible .tile-ring {
    animation: ring 1.6s ease-out infinite;
  }
}

.tile-title {
  position: relative;
  font: italic 900 2.25rem / 0.9 var(--display);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.tile-meta {
  position: relative;
  display: grid;
  gap: 2px;
  margin-top: 8px;
  color: var(--mist);
  font-size: 0.8125rem;
}

.tile-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lime-pale);
  font-weight: 600;
}

.tile-open::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

.offer-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* На страницата на зала офертите са по-компактни: картинката е вляво. */
.offer-tiles--hall {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.offer-tiles--hall .offer-tile {
  flex-direction: row;
}

.offer-tiles--hall .offer-art {
  width: 104px;
  flex: none;
  aspect-ratio: auto;
}

.offer-tiles--hall .offer-art .icon {
  width: 44px;
  height: 44px;
}

.offer-tiles--hall .offer-body {
  align-self: center;
}

.offer-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid rgba(166, 205, 54, 0.85);
  border-radius: var(--r-l);
  background: var(--panel);
  box-shadow: 0 0 0 1px rgba(166, 205, 54, 0.2), 0 0 16px rgba(166, 205, 54, 0.22);
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.4s var(--ease), box-shadow 0.25s;
}

.offer-tile:hover {
  box-shadow: var(--tile-glow);
}

.offer-art {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 50% 62%, rgba(166, 205, 54, 0.38), transparent 58%), linear-gradient(180deg, #213012, #131b10);
}

.offer-art .icon {
  width: 56px;
  height: 56px;
  color: var(--lime);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 12px rgba(166, 205, 54, 0.7));
  transition: transform 0.5s var(--ease);
}

.offer-tile:hover .offer-art .icon {
  transform: scale(1.12) rotate(-6deg);
}

.offer-body {
  padding: 14px 16px 18px;
}

.offer-when {
  color: var(--lime);
  font: 700 0.75rem / 1.2 var(--text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.offer-title {
  margin-top: 6px;
  font: italic 900 1.875rem / 0.95 var(--display);
  text-transform: uppercase;
}

.offer-body p:last-child {
  margin-top: 8px;
  color: var(--mist);
  font-size: 0.9375rem;
}

.offer-list {
  display: grid;
  gap: 12px;
}

.offer-row {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--panel);
}

.offer-row .offer-art {
  aspect-ratio: auto;
  min-height: 150px;
}

.offer-row .offer-body {
  align-self: center;
  padding: 22px 26px;
}

.offer-row .offer-title {
  font-size: 2.5rem;
}

.offer-row .offer-body p:last-child {
  max-width: 70ch;
  font-size: 1rem;
}

.news-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-card {
  position: relative;
  padding: 18px 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--panel);
  transition: border-color 0.2s, background-color 0.2s;
}

.news-card:hover {
  border-color: rgba(166, 205, 54, 0.5);
  background: var(--hover);
}

.news-card time,
.news-body time {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--r-s);
  background: var(--raise);
  color: var(--chalk);
  font: 600 0.75rem / 1.2 var(--text);
}

.news-card h3 {
  margin-top: 12px;
  font: 700 1.125rem / 1.3 var(--text);
}

.news-card h3 a,
.news-body h2 a {
  color: var(--white);
  text-decoration: none;
}

.news-card h3 a::after,
.news-body h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.news-card h3 a:hover,
.news-body h2 a:hover {
  color: var(--lime);
}

.news-card p {
  margin-top: 8px;
  color: var(--mist);
  font-size: 0.9375rem;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.partner-slot {
  display: grid;
  place-items: center;
  min-height: 84px;
  padding: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-l);
  background: var(--panel);
  color: var(--mist);
  font-size: 0.8125rem;
  text-align: center;
}

.seo-title {
  font: italic 900 2rem / 1 var(--display);
  text-transform: uppercase;
}

.seo-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 18px;
}

.seo-cols h3 {
  font: 700 1rem / 1.3 var(--text);
}

.seo-cols p {
  margin-top: 6px;
  color: var(--mist);
  font-size: 0.9375rem;
}

/* ---------- Вътрешни страници ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 52px) clamp(22px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background:
    radial-gradient(60% 140% at 92% 50%, rgba(166, 205, 54, 0.24), transparent 60%),
    repeating-linear-gradient(115deg, rgba(166, 205, 54, 0.045) 0 2px, transparent 2px 46px),
    linear-gradient(110deg, var(--deep) 40%, #18230f);
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -6%;
  width: 46%;
  height: 180%;
  background: linear-gradient(100deg, transparent 40%, rgba(195, 222, 120, 0.12) 50%, transparent 60%);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .page-hero::after {
    animation: sweep 7s 0.6s ease-in-out infinite;
  }

  .page-hero .page-title,
  .page-hero .page-lead,
  .page-hero .breadcrumb,
  .page-hero .article-date {
    animation: rise 0.7s var(--ease) both;
  }

  .page-hero .page-lead,
  .page-hero .article-date {
    animation-delay: 0.12s;
  }
}

@keyframes sweep {
  0%,
  60% {
    transform: translateX(-160%);
  }
  100% {
    transform: translateX(80%);
  }
}

.page-hero .container {
  position: relative;
  z-index: 1;
  max-width: none;
}

.page-title {
  font: italic 900 clamp(3rem, 6.4vw, 5.25rem) / 0.86 var(--display);
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.page-title--md {
  max-width: 20ch;
  font-size: clamp(2.5rem, 4.8vw, 4rem);
}

.page-title-kind {
  display: block;
  margin-bottom: 8px;
  color: var(--mist);
  font: 700 0.8125rem / 1.2 var(--text);
  font-style: normal;
  letter-spacing: 0.14em;
}

.page-lead {
  max-width: 62ch;
  margin-top: 14px;
  color: var(--chalk);
  font-size: 1.0625rem;
}

.article-date {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 8px;
  border-radius: var(--r-s);
  background: var(--raise);
  font-size: 0.8125rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--mist);
}

.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--lime);
}

.breadcrumb [aria-current] {
  color: var(--white);
}

.section {
  margin-top: clamp(28px, 4vw, 44px);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

.section-title {
  font: italic 900 clamp(2rem, 3vw, 2.5rem) / 1 var(--display);
  text-transform: uppercase;
}

.section-body {
  margin-top: 16px;
}

.lead {
  color: var(--chalk);
  font-size: 1.0625rem;
}

.actions--center {
  justify-content: flex-start;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li,
.timeline li,
.feature {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--panel);
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 40px;
  right: -13px;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--lime);
  border-right: 2px solid var(--lime);
  transform: rotate(45deg);
}

.step-n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--deep);
  font: italic 900 1.5rem / 1 var(--display);
}

.steps h3,
.timeline h3,
.feature h3 {
  margin-top: 14px;
  font: 700 1.125rem / 1.3 var(--text);
}

.steps p,
.timeline p,
.feature p {
  margin-top: 6px;
  color: var(--mist);
  font-size: 0.9375rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  overflow: hidden;
}

.timeline li::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--lime);
  transform-origin: left;
  transition: transform 0.9s 0.2s var(--ease);
}

.js .timeline li:not(.is-in)::before {
  transform: scaleX(0);
}

.timeline-year {
  color: var(--lime);
  font: italic 900 3rem / 1 var(--display);
}

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

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-m);
  background: rgba(166, 205, 54, 0.12);
  color: var(--lime);
}

.feature-icon .icon {
  width: 24px;
  height: 24px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 24px;
}

.split-text .lead {
  margin-top: 12px;
}

/* ---------- Текст ---------- */

.prose {
  max-width: 78ch;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--panel);
}

.prose > * + * {
  margin-top: 14px;
}

.prose h2 {
  margin-top: 32px;
  font: 700 1.375rem / 1.3 var(--text);
}

.prose ul {
  display: grid;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

.prose ul li {
  position: relative;
  padding-left: 20px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--lime);
}

.prose .lead {
  color: var(--white);
}

.note {
  padding: 14px 16px;
  border: 1px solid rgba(255, 201, 65, 0.4);
  border-radius: var(--r-m);
  background: rgba(255, 201, 65, 0.07);
}

.back-link {
  margin-top: 28px !important;
}

.prose .help-list li {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-m);
  background: var(--night);
}

.prose .help-list li::before {
  display: none;
}

.help-list strong {
  color: var(--white);
}

.help-list span {
  color: var(--mist);
}

/* ---------- Актуално ---------- */

.news-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-item {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--panel);
  transition: border-color 0.2s;
}

.news-item:hover {
  border-color: rgba(166, 205, 54, 0.5);
}

.news-art {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 55%, rgba(166, 205, 54, 0.32), transparent 62%), linear-gradient(180deg, #1f2d12, #131b10);
  color: var(--lime);
}

.news-art .icon {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
}

.news-body {
  padding: 18px 20px;
}

.news-body h2 {
  margin-top: 10px;
  font: 700 1.25rem / 1.3 var(--text);
}

.news-body p {
  margin-top: 6px;
  color: var(--mist);
}

/* ---------- Игрални зали ---------- */

.halls-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  align-items: start;
  gap: 20px;
}

.halls-tools {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--panel);
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--chalk);
  font-size: 0.875rem;
  font-weight: 600;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-m);
  background: var(--night);
  color: var(--mist);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search:focus-within {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(166, 205, 54, 0.18);
}

.search input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--white);
  font: 500 1rem / 1.2 var(--text);
}

.search input:focus {
  outline: none;
}

.search input::placeholder {
  color: var(--mist);
}

.chips {
  display: flex;
  gap: 8px;
  margin: 0 -4px;
  padding: 2px 4px 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-m);
  background: var(--raise);
  color: var(--chalk);
  font: 600 0.875rem / 1 var(--text);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.chip .icon {
  width: 16px;
  height: 16px;
}

.chip span {
  color: var(--lime);
  font-weight: 700;
}

.chip:hover {
  border-color: var(--lime);
}

.chip[aria-pressed="true"] {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--deep);
}

.chip[aria-pressed="true"] span {
  color: var(--deep);
}

.halls-status {
  color: var(--mist);
  font-size: 0.875rem;
}

.halls-map {
  position: sticky;
  top: calc(var(--top) + 20px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--panel);
}

.halls-map-note {
  margin-top: 10px;
  color: var(--mist);
  font-size: 0.8125rem;
  text-align: center;
}

.city-group + .city-group {
  margin-top: 24px;
}

.city-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.city-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

.city-head h2 {
  font: italic 900 1.875rem / 1 var(--display);
  text-transform: uppercase;
}

.city-head p {
  color: var(--mist);
  font-size: 0.875rem;
}

.city-halls,
.others,
.finder-list {
  display: grid;
  gap: 8px;
}

.hall-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--panel);
  transition: border-color 0.2s, background-color 0.2s;
}

.hall-row:hover {
  border-color: rgba(166, 205, 54, 0.5);
  background: var(--hover);
}

.hall-pin {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-m);
  background: rgba(166, 205, 54, 0.12);
  color: var(--lime);
}

.hall-name {
  font: 700 1.0625rem / 1.3 var(--text);
}

.hall-name a {
  color: var(--white);
  text-decoration: none;
}

.hall-name a:hover {
  color: var(--lime);
}

.hall-addr {
  margin-top: 2px;
  color: var(--mist);
  font-size: 0.875rem;
}

.hall-km {
  color: var(--lime-pale);
  font-weight: 700;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(166, 205, 54, 0.12);
  color: var(--lime-pale);
  font: 600 0.75rem / 1.2 var(--text);
  white-space: nowrap;
}

.badge-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

.badge-status.is-closed {
  background: rgba(242, 111, 99, 0.12);
  color: var(--alert);
}

.badge-status.is-closed::before {
  background: var(--alert);
}

.hall-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lime-pale);
  font-size: 0.8125rem;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

.status.is-closed {
  color: var(--alert);
}

.status.is-closed::before {
  background: var(--alert);
}

.empty {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-l);
}

.empty-title {
  color: var(--white);
  font-weight: 700;
}

/* ---------- Карта ---------- */

.citymap {
  position: relative;
  aspect-ratio: 1000 / 667;
  container-type: inline-size;
}

.citymap-land {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.citymap-land .land {
  fill: var(--raise);
  stroke: var(--line-strong);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.citymap-pins {
  position: absolute;
  inset: 0;
}

.pin {
  position: absolute;
  z-index: 1;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--chalk);
  cursor: pointer;
  transition: opacity 0.3s;
}

.pin:hover,
.pin:focus-visible,
.pin.is-active {
  z-index: 2;
}

.pin:focus-visible {
  outline: none;
}

.pin-dot {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--night);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 2px rgba(166, 205, 54, 0.4);
}

.pin-label {
  position: absolute;
  left: 12px;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  background: var(--panel);
  font: 600 0.75rem / 1 var(--text);
  white-space: nowrap;
  transform: translateY(-50%);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.pin-count {
  min-width: 18px;
  padding: 2px 4px;
  border-radius: 3px;
  background: var(--raise);
  color: var(--lime);
  font-weight: 700;
  text-align: center;
}

.pin[data-side="left"] .pin-label { left: auto; right: 12px; }
.pin[data-side="top"] .pin-label { top: auto; bottom: 12px; left: 0; transform: translateX(-50%); }
.pin[data-side="bottom"] .pin-label { top: 12px; left: 0; transform: translateX(-50%); }
.pin[data-side="top-right"] .pin-label { left: 6px; top: auto; bottom: 6px; transform: none; }
.pin[data-side="bottom-right"] .pin-label { left: 6px; top: 6px; transform: none; }
.pin[data-side="top-left"] .pin-label { left: auto; right: 6px; top: auto; bottom: 6px; transform: none; }
.pin[data-side="bottom-left"] .pin-label { left: auto; right: 6px; top: 6px; transform: none; }

.pin:hover .pin-label,
.pin:focus-visible .pin-label {
  border-color: var(--lime);
  color: var(--white);
}

.pin:focus-visible .pin-label {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.pin.is-active .pin-label {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--deep);
}

.pin.is-active .pin-count {
  background: rgba(12, 17, 19, 0.2);
  color: var(--deep);
}

.pin.is-active .pin-dot {
  background: var(--white);
}

/* Градовете извън филтъра са сиви, но надписите им остават четими. */
.citymap .pin.is-dim .pin-dot {
  background: var(--line-strong);
  box-shadow: none;
}

.citymap .pin.is-dim .pin-label {
  border-color: var(--line);
  background: var(--night);
  color: var(--mist);
}

.citymap .pin.is-dim .pin-count {
  background: transparent;
  color: var(--mist);
}

@container (max-width: 520px) {
  .pin-label {
    padding: 3px 5px;
    font-size: 0.625rem;
  }

  .pin-count {
    min-width: 14px;
    padding: 1px 3px;
  }
}

.map-block {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--panel);
}

.map-callout {
  display: grid;
  gap: 12px;
}

.callout-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.callout-title {
  font: italic 900 2rem / 1 var(--display);
  text-transform: uppercase;
}

.callout-head p {
  color: var(--lime);
  font-weight: 700;
}

.callout-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.callout-list li {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--r-m);
  background: var(--night);
}

.callout-list a {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.callout-list a:hover {
  color: var(--lime);
}

.callout-list span {
  color: var(--mist);
  font-size: 0.875rem;
}

/* ---------- Страница на зала ---------- */

.hall-hero .container {
  display: grid;
  justify-items: start;
}

.hall-hero .page-title {
  font-size: clamp(3.5rem, 7.6vw, 6.25rem);
}

.hall-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.hall-hero .badge-status {
  padding: 7px 12px;
  font-size: 0.875rem;
}

.badge-city {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--chalk);
  font-size: 0.875rem;
  text-decoration: none;
}

.badge-city .icon {
  width: 16px;
  height: 16px;
  color: var(--lime);
}

.badge-city:hover {
  border-color: var(--lime);
  color: var(--white);
}

.hall-text {
  max-width: 62ch;
  margin-top: 14px;
}

.hall-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: start;
  gap: 20px;
  margin-top: clamp(28px, 4vw, 40px);
}

.hall-side {
  position: sticky;
  top: calc(var(--top) + 20px);
}

.info-title {
  font: italic 900 1.75rem / 1 var(--display);
  text-transform: uppercase;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.info-list > div {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mist);
  font-size: 0.8125rem;
}

.info-list dt .icon {
  width: 16px;
  height: 16px;
  color: var(--lime);
}

.info-list dd {
  margin: 4px 0 0;
  color: var(--white);
  font-weight: 600;
}

.info-list dd a {
  color: var(--white);
}

.info-map {
  margin-bottom: 14px;
}

.info-map .map-frame {
  height: 220px;
}

.map-frame {
  display: block;
  width: 100%;
  height: 360px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-m);
  filter: grayscale(0.3) invert(0.92) hue-rotate(180deg) brightness(0.9) contrast(0.92);
}

.tablist {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -1px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--mist);
  font: 600 0.9375rem / 1 var(--text);
  cursor: pointer;
}

.tab .icon {
  width: 18px;
  height: 18px;
}

.tab:hover {
  color: var(--white);
}

.tab[aria-selected="true"] {
  border-bottom-color: var(--lime);
  color: var(--white);
}

.tab[aria-selected="true"] .icon {
  color: var(--lime);
}

@media (prefers-reduced-motion: no-preference) {
  .tabpanel:not([hidden]) {
    animation: rise 0.45s var(--ease);
  }
}

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

.gallery img,
.photo-slot {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-l);
  object-fit: cover;
}

.photo-slot,
.tour-slot {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px dashed var(--line-strong);
  background: var(--panel);
  color: var(--mist);
  font-size: 0.875rem;
}

.photo-slot .icon,
.tour-slot .icon {
  width: 28px;
  height: 28px;
  color: var(--lime);
}

.tour-slot {
  aspect-ratio: 16 / 9;
  padding: 16px;
  border-radius: var(--r-l);
  text-align: center;
}

[data-hall-tour] iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--r-l);
}

/* ---------- Долна лента ---------- */

.site-footer {
  margin-top: clamp(48px, 6vw, 72px);
  padding: 36px clamp(16px, 2.4vw, 32px) 104px;
  border-top: 1px solid var(--line);
  background: var(--deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  max-width: 1320px;
  margin-inline: auto;
}

.footer-brand img {
  width: 150px;
  height: auto;
}

.footer-brand p {
  margin-top: 12px;
  color: var(--mist);
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  background: var(--panel);
  color: var(--chalk);
}

.footer-social a:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.footer-title {
  color: var(--white);
  font: 700 0.9375rem / 1.2 var(--text);
}

.footer-links {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--mist);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--lime);
}

.footer-legal {
  display: grid;
  gap: 10px;
  max-width: 1320px;
  margin: 28px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: 0.8125rem;
}

.footer-warning {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--chalk);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ---------- „Намери зала“ ---------- */

.finder-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-l);
  background: var(--lime);
  color: var(--deep);
  font: 700 0.9375rem / 1 var(--text);
  cursor: pointer;
  box-shadow: 0 12px 30px -10px rgba(166, 205, 54, 0.7);
  transition: background-color 0.2s, transform 0.2s var(--ease);
}

.finder-fab:hover {
  background: var(--lime-hover);
  transform: translateY(-2px);
}

.finder {
  width: min(100% - 24px, 760px);
  max-height: min(86vh, 820px);
  margin-top: 8vh;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-l);
  background: var(--night);
  color: var(--chalk);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}

.finder::backdrop {
  background: rgba(5, 8, 9, 0.7);
}

@media (prefers-reduced-motion: no-preference) {
  .finder[open] {
    animation: drop 0.3s var(--ease);
  }
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
}

.finder-inner {
  display: flex;
  flex-direction: column;
  max-height: inherit;
}

.finder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 0;
}

.finder-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 1.25rem / 1.2 var(--text);
}

.finder-head h2 .icon {
  color: var(--lime);
}

.finder-tools {
  display: grid;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.finder-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.finder-count {
  font-size: 0.9375rem;
  font-weight: 600;
}

.finder-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-m);
  background: var(--panel);
}

.seg button {
  min-height: 32px;
  padding: 6px 14px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--chalk);
  font: 600 0.875rem / 1 var(--text);
  cursor: pointer;
}

.seg button[aria-pressed="true"] {
  background: var(--lime);
  color: var(--deep);
}

.finder-body {
  overflow: auto;
  padding: 14px 18px 18px;
  overscroll-behavior: contain;
}

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

.finder .hall-row .badge-status {
  display: none;
}

/* ---------- Отзивчивост ---------- */

@media (max-width: 1280px) {
  .jp-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jp-card--grand {
    grid-column: 1 / -1;
  }

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

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

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

@media (max-width: 1024px) {
  .rail-toggle .i-menu {
    display: block;
  }

  .rail-toggle .i-rail {
    display: none;
  }

  .shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: var(--top);
    left: 0;
    bottom: 0;
    z-index: 55;
    width: min(86vw, 320px);
    height: auto;
    padding: 16px;
    border-right: 1px solid var(--line);
    background: var(--deep);
    box-shadow: 30px 0 60px rgba(0, 0, 0, 0.5);
    transform: translateX(-104%);
    transition: transform 0.35s var(--ease), visibility 0s 0.35s;
    visibility: hidden;
  }

  .drawer-open .sidebar {
    transform: none;
    visibility: visible;
    transition: transform 0.35s var(--ease), visibility 0s;
  }

  .drawer-open {
    overflow: hidden;
  }

  .halls-layout,
  .hall-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .halls-map {
    position: static;
    order: -1;
  }

  .hall-side {
    position: static;
  }

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

  .topbar-actions .btn--outline {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --top: 58px;
  }

  .topbar {
    gap: 10px;
    padding: 0 10px;
  }

  .brand img {
    width: 112px;
  }

  .brand-sub {
    display: none;
  }

  .topsearch {
    flex: none;
    justify-content: center;
    width: 40px;
    margin-left: auto;
    padding: 0;
  }

  .topsearch-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .topsearch kbd {
    display: none;
  }

  .topbar-actions {
    display: none;
  }

  .slide {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 72px;
  }

  .slide-art {
    order: -1;
    min-height: 170px;
  }

  .slot {
    --sym: 72px;
  }

  .mini-map {
    width: min(100%, 300px);
  }

  .online-art {
    width: min(100%, 300px);
  }

  .banner-controls {
    right: 12px;
    bottom: 12px;
  }

  .jp-cards,
  .jp-cards--hall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .jp-card {
    min-height: 92px;
    padding: 12px;
  }

  .jp-card dt {
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
  }

  .jp-card dt .icon {
    display: none;
  }

  .jp-card dd {
    font-size: 1.5rem;
  }

  .jp-card--grand dt .icon {
    display: block;
  }

  .jp-card--grand dd {
    font-size: 2.6rem;
  }

  .offer-tiles,
  .offer-tiles--hall,
  .steps,
  .timeline,
  .features,
  .seo-cols,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps li:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -13px;
    left: 30px;
    transform: rotate(135deg);
  }

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

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

  .offer-row .offer-art {
    min-height: 120px;
  }

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

  .hall-row .badge-status {
    grid-column: 2;
    justify-self: start;
  }

  .hall-actions {
    grid-column: 1 / -1;
  }

  .hall-actions .btn {
    flex: 1;
  }

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

  .news-item {
    grid-template-columns: 76px minmax(0, 1fr);
  }

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

  .block-head .block-rule {
    display: none;
  }

  .block-head {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .finder {
    margin-top: 12px;
  }

  .finder-fab {
    right: 14px;
    bottom: 14px;
  }
}

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