/* BirdSpin Casino – main stylesheet (no external fonts or frameworks) */
:root {
  --bg: #17133a;
  --bg-2: #1d1852;
  --panel: #231c5c;
  --panel-2: #2b2372;
  --panel-3: #352c8a;
  --line: #4c44b4;
  --line-soft: rgba(124, 114, 255, 0.32);
  --text: #ffffff;
  --muted: #bdb8ee;
  --muted-2: #8f89cf;
  --green: #1fa511;
  --green-2: #168a09;
  --blue: #4b80d8;
  --blue-2: #3a69bd;
  --yellow: #ffd60a;
  --orange: #ff9b2f;
  --red: #ff6464;
  --ok: #3ddc84;
  --radius: 10px;
  --radius-lg: 14px;
  --header-h: 64px;
  --side-w: 224px;
  --side-w-closed: 76px;
  --font-head: "Nunito", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 8px 28px rgba(5, 2, 30, 0.45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg) url("/assets/bg/clouds.webp") center top / 1400px auto repeat-y;
  background-attachment: fixed;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #9fc2ff; text-decoration: none; }
a:hover { color: #fff; }
p a, li a, td a { text-decoration: underline; text-underline-offset: 2px; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: .1px; }
h1 { font-size: clamp(1.55rem, 1.1rem + 1.6vw, 2.3rem); }
h2 { font-size: clamp(1.3rem, 1.05rem + .9vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--yellow); color: #111; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 8px; }
.hl { color: var(--yellow); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 20px 24px 40px; }
.section { margin: 0 0 40px; }
.section--tight { margin-bottom: 28px; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 20px;
  background: rgba(31, 24, 92, .97);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(6px);
}
.topbar__toggle {
  width: 30px; height: 30px; flex: none; border-radius: 7px; border: 1px solid var(--line);
  background: transparent; display: grid; place-items: center; cursor: pointer;
}
.topbar__toggle svg { transition: transform .2s; }
body.side-closed .topbar__toggle svg { transform: rotate(180deg); }
.topbar__logo { display: flex; align-items: center; flex: none; }
.topbar__logo img { width: 58px; height: 48px; }
.topbar__spacer { flex: 1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 20px; border-radius: 8px; border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 800; font-size: .98rem; text-transform: uppercase; letter-spacing: .3px;
  color: #fff; text-decoration: none; cursor: pointer; white-space: nowrap; transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.1); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--green { background: linear-gradient(180deg, #27b818, var(--green-2)); border-color: #39d22a; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.btn--blue { background: linear-gradient(180deg, #5a8fe6, var(--blue-2)); border-color: #7aa6f0; }
.btn--ghost { background: transparent; border-color: var(--line); text-transform: none; font-size: .92rem; min-height: 38px; padding: 0 16px; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn--bonus { background: linear-gradient(180deg, #5b8fe0, #3c6fc4); border-color: #7aa6f0; }
.btn--bonus img { width: 26px; height: 26px; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); cursor: pointer;
}
.icon-btn img { width: 26px; height: 26px; }

/* Header search bar */
.hsearch { position: relative; }
.hsearch__panel {
  position: absolute; right: 0; top: calc(100% + 11px); z-index: 90; width: min(520px, calc(100vw - 32px));
  background: #241d63; border: 1px solid #5d55cf; border-radius: var(--radius-lg); padding: 12px; box-shadow: var(--shadow);
}
.hsearch__panel[hidden] { display: none; }
.hsearch__field { display: flex; align-items: center; gap: 10px; background: #17123f; border: 1px solid var(--line); border-radius: 9px; padding: 0 6px 0 12px; }
.hsearch__field:focus-within { border-color: #9a93ff; }
.hsearch__field input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; color: #fff; font-size: 1rem; outline: none; }
.hsearch__field input::-webkit-search-cancel-button { display: none; }
.hsearch__close { width: 34px; height: 34px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: 1rem; }
.hsearch__close:hover { color: #fff; background: rgba(255,255,255,.06); }
.hsearch__hint { margin: 10px 4px 2px; font-size: .88rem; color: var(--muted); }
.hsearch__hint[hidden] { display: none; }
.hsearch__results { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.hsearch__results li { margin: 0; }
.hsearch__item { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 8px; color: #fff; text-decoration: none; }
.hsearch__item:hover, .hsearch__item:focus-visible { background: #33298a; color: #fff; outline: none; }
.hsearch__item img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; background: #2d2670; }
.hsearch__item img[src$=".svg"] { object-fit: contain; padding: 4px; }
.hsearch__item span { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.hsearch__item b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hsearch__item small { color: #93b6ff; font-weight: 600; }
.hsearch__empty { padding: 10px 8px; color: var(--muted); font-size: .92rem; }
.hsearch__all { display: block; margin-top: 8px; padding: 10px 8px 4px; border-top: 1px solid var(--line-soft); color: var(--yellow); font-weight: 800; font-family: var(--font-head); text-decoration: none; }
.hsearch__all:hover, .hsearch__all:focus-visible { color: #fff; text-decoration: underline; }
.hsearch__all[hidden] { display: none; }
@media (max-width: 760px) {
  .hsearch { position: static; }
  .hsearch__panel { position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 6px); width: auto; }
  .topbar .icon-btn { width: 38px; height: 38px; }
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky; top: 0; height: 100vh; flex: none; width: var(--side-w);
  background: rgba(27, 21, 78, .96); border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column; z-index: 70; transition: width .2s;
}
.sidebar__head { height: var(--header-h); display: flex; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--line-soft); }
.sidebar__head img { width: 54px; height: 45px; }
@media (min-width: 1024px) {
  /* On desktop the logo lives in the top bar only (as on the original site) */
  .sidebar__head a { visibility: hidden; }
}
.sidebar__scroll { flex: 1; overflow-y: auto; padding: 12px 10px 24px; scrollbar-width: thin; scrollbar-color: var(--blue) transparent; }
.side-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 7px 10px; margin-bottom: 6px; border-radius: 8px;
  border: 1px solid var(--line); background: linear-gradient(180deg, #2a2270, #221b5e);
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .95rem; text-align: left; cursor: pointer;
}
.side-item:hover { color: #fff; border-color: #7a72ff; }
.side-item img { width: 32px; height: 32px; flex: none; object-fit: contain; }
.side-item__chev { margin-left: auto; transition: transform .2s; }
.side-group.is-open > .side-item { background: linear-gradient(180deg, #4b6fe0, #3550b8); border-color: #7f9cff; }
.side-group.is-open .side-item__chev { transform: rotate(90deg); }
.side-sub { display: none; padding: 2px 0 8px 8px; }
.side-group.is-open .side-sub { display: block; }
.side-sub a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; color: var(--muted); font-weight: 600; font-size: .92rem; border-radius: 6px; }
.side-sub a:hover, .side-sub a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.06); }
.side-sub img { width: 22px; height: 22px; }
.side-sep { height: 1px; background: var(--line-soft); margin: 14px 4px; }
.side-label { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted-2); margin: 0 6px 8px; font-weight: 700; }
.side-item[aria-current="page"] { border-color: var(--yellow); }
body.side-closed .sidebar { width: var(--side-w-closed); }
body.side-closed .sidebar .side-item span,
body.side-closed .sidebar .side-item__chev,
body.side-closed .sidebar .side-sub,
body.side-closed .sidebar .side-label { display: none; }
body.side-closed .sidebar .side-item { justify-content: center; padding: 7px; }
.side-backdrop { display: none; }

/* ---------- Hero ---------- */
.page-intro { margin: 4px 0 18px; }
.page-intro h1 { margin-bottom: .35em; }
.page-intro p { color: var(--muted); max-width: 900px; margin: 0; }
.hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #2d2a8f; margin-bottom: 12px; }
.hero__track { display: flex; transition: transform .6s ease; }
.hero__slide { position: relative; flex: 0 0 100%; min-height: 300px; display: flex; align-items: stretch; }
.hero__slide img.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% center; }
.hero__content { position: relative; z-index: 1; padding: 26px 32px; display: flex; flex-direction: column; max-width: 560px; }
.hero__kicker { font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; text-transform: uppercase; margin-bottom: auto; }
.hero__title { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: clamp(1.25rem, .9rem + 1.3vw, 1.9rem); line-height: 1.2; margin: 26px 0 22px; }
.hero__title .hl { display: block; }
.hero__content .btn { align-self: flex-start; min-width: 260px; }
.hero__dots { display: flex; gap: 0; justify-content: center; margin: 2px 0 10px; }
.hero__dots button { position: relative; min-width: 30px; height: 30px; border: 0; background: none; cursor: pointer; padding: 0 3px; }
.hero__dots button::before { content: ""; display: block; width: 9px; height: 9px; margin: 0 auto; border-radius: 9px; background: #3a3590; transition: width .2s; }
.hero__dots button[aria-current="true"] { min-width: 36px; }
.hero__dots button[aria-current="true"]::before { width: 30px; background: #4c63d6; }

/* ---------- Category menu ---------- */
.catmenu { display: flex; gap: 10px; align-items: stretch; margin-bottom: 34px; }
.catmenu__scroll { display: flex; gap: 8px; overflow-x: auto; flex: 1; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: #4fa6ff transparent; }
.catmenu a, .catmenu button {
  flex: none; min-width: 108px; height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-radius: 8px; border: 1px solid var(--line); background: linear-gradient(180deg, #2c247a, #241d63);
  color: #fff; font-weight: 700; font-size: .9rem; cursor: pointer; padding: 0 10px;
}
.catmenu a:hover, .catmenu button:hover { border-color: #8a82ff; color: #fff; }
.catmenu a.is-active { background: linear-gradient(180deg, #4b6fe0, #3550b8); border-color: #7f9cff; }
.catmenu img { width: 30px; height: 30px; }
.catmenu--sticky { position: sticky; top: var(--header-h); z-index: 30; background: rgba(23, 19, 58, .94); padding-top: 10px; backdrop-filter: blur(4px); }

/* ---------- Section heads & rails ---------- */
.shead { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.shead h2 { margin: 0; text-transform: uppercase; font-size: clamp(1.2rem, 1rem + .6vw, 1.55rem); display: flex; align-items: center; gap: 10px; }
.shead h2 img { width: 30px; height: 30px; }
.shead__actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.arrow-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; cursor: pointer; }
.arrow-btn:disabled { opacity: .35; cursor: default; }
.rail { display: grid; grid-auto-flow: column; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 2px; }
.rail::-webkit-scrollbar { display: none; }
.rail--tiles { grid-template-rows: repeat(var(--rows, 2), auto); grid-auto-columns: calc((100% - 5 * 12px) / 6); }
.rail--tiles.rail--1 { --rows: 1; }
.rail--tiles.rail--3 { --rows: 3; }
.rail--list { grid-template-rows: repeat(3, auto); grid-auto-columns: calc((100% - 3 * 12px) / 4); }
.rail--promo { grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px; }
.rail--providers { grid-auto-columns: calc((100% - 6 * 12px) / 7); }
.rail > * { scroll-snap-align: start; }

.tile {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: #221c5a; border: 1px solid var(--line); padding: 7px 7px 0; color: #fff; text-decoration: none;
}
.tile:hover { border-color: #8f88ff; color: #fff; }
.tile__img { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 1; background: #2d2670 url("/assets/icons/game-placeholder.webp") center / 60% no-repeat; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.tile:hover .tile__img img { transform: scale(1.05); }
.tile__name { font-family: var(--font-head); font-weight: 800; font-size: .95rem; text-align: center; padding: 7px 2px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__badge { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--green); color: #fff; font-size: .75rem; font-weight: 800; padding: 1px 7px; border-radius: 5px; }
.tile__badge--new { background: #e0731d; }
.tile__play {
  position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 10, 50, .55);
  opacity: 0; transition: opacity .2s;
}
.tile__play span { background: var(--green); border: 1px solid #39d22a; padding: 6px 16px; border-radius: 7px; font-weight: 800; font-family: var(--font-head); font-size: .85rem; text-transform: uppercase; }
.tile:hover .tile__play, .tile:focus-visible .tile__play { opacity: 1; }

.lcard { display: flex; gap: 12px; align-items: center; padding: 6px; border-radius: var(--radius); border: 1px solid var(--line); background: #1f1956; color: #fff; min-width: 0; }
.lcard:hover { border-color: #8f88ff; color: #fff; }
.lcard img { width: 70px; height: 70px; border-radius: 6px; flex: none; object-fit: cover; }
.lcard b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcard small { color: #93b6ff; font-weight: 600; }
.lcard > span { min-width: 0; }

.prov { display: flex; align-items: center; gap: 10px; height: 78px; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--line); background: #241d63; color: #fff; font-weight: 600; font-size: .92rem; line-height: 1.25; }
.prov:hover { color: #fff; border-color: #8f88ff; }
.prov img { width: 44px; height: 44px; flex: none; object-fit: contain; }

/* ---------- Promo cards ---------- */
.promo {
  position: relative; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #2b2470; padding: 8px 8px 12px;
  display: flex; flex-direction: column; text-align: center;
}
.promo__art { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1.55; background: #3a2f90; }
.promo__art .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo__art .char { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; transform: translateX(-50%); }
.promo__tag { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); z-index: 2; background: #4d84e0; border-radius: 6px; padding: 2px 10px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.promo__value { position: relative; z-index: 2; margin: -18px auto 0; background: #4d84e0; border: 1px solid #7aa6f0; border-radius: 7px; padding: 3px 12px; font-weight: 800; font-family: var(--font-head); font-size: .95rem; }
.promo h3 { margin: 10px 0 4px; font-size: 1.35rem; }
.promo p { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
.promo .btn { margin-top: auto; }

/* ---------- Banner (loyalty etc.) ---------- */
.banner {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  background: #2f2a8c; min-height: 260px; display: flex; align-items: center;
}
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(44, 38, 135, .96) 0%, rgba(44, 38, 135, .85) 38%, rgba(44, 38, 135, 0) 62%); }
.banner__body { position: relative; z-index: 2; padding: 22px 28px; max-width: 520px; }
.banner__body h2 { text-transform: uppercase; display: flex; gap: 10px; align-items: center; }
.banner__body h3 { text-transform: uppercase; font-size: 1.25rem; }
.banner__body p { color: #d9d6ff; }
.levels { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 16px; }
.levels figure { margin: 0; text-align: center; width: 70px; }
.levels img { width: 48px; height: 52px; margin: 0 auto 2px; }
.levels figcaption { font-size: .75rem; line-height: 1.2; color: #e9e7ff; font-weight: 700; }

/* ---------- Tournaments ---------- */
.tourneys { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tourney { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); min-height: 230px; padding: 20px; display: flex; flex-direction: column; align-items: flex-start; background: #2d2685; }
.tourney > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tourney > img.char { position: absolute; right: 0; bottom: 0; height: 100%; width: auto; }
.tourney > * { position: relative; }
.tourney h3 { font-size: 1.35rem; margin-bottom: .3em; }
.tourney__prize { font-family: var(--font-head); font-weight: 800; color: var(--yellow); font-size: 1.45rem; margin-bottom: 10px; }
.tourney__timer { background: rgba(22, 18, 80, .85); border: 1px solid var(--line); border-radius: 7px; padding: 4px 12px; font-size: .85rem; font-weight: 700; margin-bottom: 14px; }
.tourney__meta { font-size: .85rem; color: #e1defd; margin-bottom: 14px; max-width: 60%; }
.tourney .btn { min-width: 220px; margin-top: auto; }

/* ---------- Content blocks ---------- */
.card { background: rgba(35, 28, 92, .92); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; }
.card + .card { margin-top: 16px; }
.card > :last-child { margin-bottom: 0; }
.prose { max-width: 980px; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.2em; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feature { background: rgba(35, 28, 92, .92); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.feature h3 { font-size: 1.05rem; margin-bottom: .4em; display: flex; align-items: center; gap: 8px; }
.feature p, .feature ul { font-size: .95rem; color: #dcd9ff; }
.feature > :last-child { margin-bottom: 0; }
.feature__icon { width: 92px; height: auto; margin-bottom: 6px; }
.stat { background: rgba(35, 28, 92, .92); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-family: var(--font-head); font-size: 1.45rem; color: var(--yellow); line-height: 1.2; }
.stat span { font-size: .9rem; color: var(--muted); }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; background: url("/assets/icons/checked.webp") center / contain no-repeat; }
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 12px; }
.steps > li { counter-increment: s; position: relative; padding: 14px 16px 14px 62px; background: rgba(35, 28, 92, .92); border: 1px solid var(--line); border-radius: var(--radius); margin: 0; }
.steps > li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #27b818, var(--green-2)); font-weight: 800; font-family: var(--font-head); }
.steps > li b { display: block; margin-bottom: 2px; }
.steps--compact > li { padding: 10px 14px 10px 56px; }
.steps--compact > li::before { width: 30px; height: 30px; top: 9px; }
.note { border-left: 4px solid var(--yellow); background: rgba(255, 214, 10, .07); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1em; }
.note--info { border-color: #6ea0ff; background: rgba(110, 160, 255, .08); }
.note--ok { border-color: var(--ok); background: rgba(61, 220, 132, .08); }
.note > :last-child { margin-bottom: 0; }
.pill { display: inline-block; padding: 1px 9px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid var(--line); font-size: .8rem; font-weight: 700; margin: 0 4px 4px 0; }
.pill--green { background: rgba(31, 165, 17, .2); border-color: #2fbf20; }
.pill--yellow { background: rgba(255, 214, 10, .12); border-color: #c7a700; color: #ffe874; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 1em; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 560px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { background: #2d2577; font-family: var(--font-head); font-weight: 800; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: rgba(255,255,255,.02); }

/* FAQ / accordion */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(90deg, #2c2478, #33298a); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; position: relative; font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__a { padding: 0 20px 16px; color: #e3e0ff; }
.faq__a > :last-child { margin-bottom: 0; }

/* FAQ selector (home) */
.faq-select { background: linear-gradient(160deg, #2b2378, #221b62); border: 1px solid #5d55cf; border-radius: var(--radius-lg); padding: 20px 22px; }
.faq-select__label { display: block; font-family: var(--font-head); font-weight: 800; margin-bottom: 8px; }
.faq-select__row { display: flex; gap: 8px; align-items: center; }
.faq-select__row .arrow-btn { width: 44px; height: 44px; flex: none; }
select.faq-select__input {
  flex: 1; min-width: 0; min-height: 48px; font-weight: 700; cursor: pointer; appearance: none; -webkit-appearance: none;
  padding-right: 42px; background: #17123f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M5 9l7 7 7-7' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center no-repeat;
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
}
.faq-select__answers { margin-top: 14px; }
.faq-select__panel { background: #17123f; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: #e3e0ff; }
.faq-select__panel h3 { color: #fff; margin-bottom: .5em; }
.faq-select__panel > :last-child { margin-bottom: 0; }
.faq-select__count { margin: 10px 0 0; text-align: right; }

/* Tabs */
.tabs__list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs__list button { border: 1px solid var(--line); background: #241d63; color: #fff; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 700; }
.tabs__list button[aria-selected="true"] { background: linear-gradient(180deg, #4b6fe0, #3550b8); border-color: #7f9cff; }
.tabs__panel[hidden] { display: none; }

/* ---------- Tools (calculator, checkers …) ---------- */
.tool { background: linear-gradient(160deg, #2b2378, #221b62); border: 1px solid #5d55cf; border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow); }
.tool h2 { display: flex; align-items: center; gap: 10px; }
.tool__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 22px; }
.field { margin-bottom: 14px; }
.field > label, .field > .label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.field small { display: block; color: var(--muted-2); margin-top: 4px; }
.input, select.input {
  width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: #17123f; color: #fff;
}
.input:focus { border-color: #9a93ff; outline: none; }
.input-row { display: flex; gap: 8px; align-items: center; }
.input-row .input { flex: 1; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chip { border: 1px solid var(--line); background: #241d63; border-radius: 7px; padding: 5px 11px; cursor: pointer; font-weight: 700; font-size: .85rem; }
.chip:hover { border-color: #8f88ff; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; border: 1px solid var(--line); background: #241d63; border-radius: 8px; padding: 8px 12px; font-weight: 700; font-size: .9rem; }
.seg input:checked + span { background: linear-gradient(180deg, #4b6fe0, #3550b8); border-color: #7f9cff; }
.seg input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }
.result { background: #17123f; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.result__rows { display: grid; gap: 0; margin: 0; }
.result__rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line-soft); }
.result__rows > div:last-child { border-bottom: 0; }
.result__rows dt { color: var(--muted); }
.result__rows dd { margin: 0; font-weight: 800; text-align: right; }
.result__big { font-family: var(--font-head); font-size: 1.6rem; color: var(--yellow); font-weight: 800; }
.warnings { display: grid; gap: 8px; margin-top: 14px; }
.warn { padding: 10px 12px 10px 40px; border-radius: 8px; position: relative; font-size: .92rem; }
.warn::before { position: absolute; left: 12px; top: 9px; font-weight: 800; }
.warn--alert { background: rgba(255, 100, 100, .12); border: 1px solid rgba(255, 100, 100, .55); }
.warn--alert::before { content: "!"; color: var(--red); width: 18px; height: 18px; border: 2px solid var(--red); border-radius: 50%; display: grid; place-items: center; font-size: .75rem; top: 11px; }
.warn--tip { background: rgba(255, 214, 10, .08); border: 1px solid rgba(255, 214, 10, .45); }
.warn--tip::before { content: "i"; color: var(--yellow); width: 18px; height: 18px; border: 2px solid var(--yellow); border-radius: 50%; display: grid; place-items: center; font-size: .75rem; top: 11px; }
.warn--ok { background: rgba(61, 220, 132, .08); border: 1px solid rgba(61, 220, 132, .45); }
.warn--ok::before { content: "✓"; color: var(--ok); }
.bar { height: 10px; border-radius: 10px; background: #2c2575; overflow: hidden; margin: 6px 0 2px; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, #27b818, var(--yellow)); width: 0; transition: width .3s; }
.compare-pick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.compare-pick label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #241d63; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: .9rem; }
.compare-pick input { accent-color: var(--green); }
.check-q { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line-soft); flex-wrap: wrap; }
.check-q:last-of-type { border-bottom: 0; }
.check-q p { margin: 0; flex: 1 1 320px; font-weight: 600; }
.check-q .seg span { padding: 6px 14px; }
.check-q .check-out { flex: 1 1 100%; font-size: .9rem; }
.solver-out { margin-top: 16px; }
.solver-out h3 { margin-top: 0; }
.disclaimer { margin-top: 14px; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 12px; }
.quiz-q { margin-bottom: 16px; }
.quiz-q > p { font-weight: 700; margin-bottom: 8px; }
.glossary { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 18px; }
.glossary__terms { display: flex; flex-direction: column; gap: 6px; }
.glossary__terms button { text-align: left; border: 1px solid var(--line); background: #241d63; padding: 9px 12px; border-radius: 8px; cursor: pointer; font-weight: 700; }
.glossary__terms button[aria-selected="true"] { background: linear-gradient(180deg, #4b6fe0, #3550b8); border-color: #7f9cff; }
.glossary__panel { background: #17123f; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.glossary__panel h3 { margin-top: 0; }
.slot-demo { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 360px; margin: 10px 0 12px; }
.slot-demo span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; background: #2b2378; border: 1px solid var(--line); font-weight: 800; font-size: 1.15rem; }
.slot-demo span.on { background: linear-gradient(180deg, #ffd60a, #ff9b2f); color: #2b1b00; border-color: #ffe66a; }

/* ---------- Footer ---------- */
.footer { background: #161236; border-top: 1px solid var(--line-soft); padding: 40px 24px 28px; }
.footer__inner { max-width: 1280px; margin: 0 auto; }
.footer__top { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 28px; }
.footer__brand img { width: 74px; height: 62px; margin-bottom: 14px; }
.footer__brand p { color: var(--muted); font-size: .9rem; }
.footer h2 { font-size: 1rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: #c9c5ff; display: inline-block; padding: 5px 0; }
.footer a:hover, .footer a[aria-current="page"] { color: #fff; }
.footer__bottom { display: flex; gap: 22px; align-items: center; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.footer__badges { display: flex; gap: 16px; align-items: center; flex: none; }
.footer__badges img.age { width: 40px; height: 40px; }
.footer__badges a img { width: 64px; height: 64px; }
.footer__legal { font-size: .78rem; color: #8682bd; flex: 1; }
.footer__legal p { margin: 0 0 6px; }
.footer__support { display: flex; align-items: center; gap: 10px; min-height: 34px; color: #fff; font-weight: 600; flex: none; }

/* ---------- Floating chat, loader, modals ---------- */
.chat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 80; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(180deg, #5b8fe0, #3c6fc4); border: 2px solid #8fb2f5; display: grid; place-items: center; box-shadow: var(--shadow); }
.chat-fab img { width: 40px; height: 40px; }

.loader { position: fixed; inset: 0; z-index: 500; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 2.5vh; background: #1d1650; overflow: hidden; }
.loader[hidden] { display: none; }
.loader__clouds { position: absolute; left: 50%; top: 50%; width: min(1100px, 110vw); transform: translate(-50%, -46%); opacity: .55; pointer-events: none; }
.loader__logo { position: relative; width: 140px; height: auto; }
.loader__center { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 16px 10vh; }
.loader__ring { width: 120px; height: 120px; border-radius: 50%; border: 10px solid rgba(255,255,255,.14); border-top-color: #b98bff; border-right-color: #ff9b2f; animation: spin 1s linear infinite; margin-bottom: 26px; }
.loader__feather { position: absolute; width: 70px; animation: float 2.4s ease-in-out infinite; }
.loader__feather--1 { left: 18%; top: 26%; }
.loader__feather--2 { right: 18%; bottom: 22%; transform: scaleX(-1); animation-delay: -1.2s; }
.loader__text { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); }
.loader__sub { color: var(--muted); margin-top: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { translate: 0 0; rotate: -8deg; } 50% { translate: 0 -16px; rotate: 6deg; } }

.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(8, 5, 30, .7); padding: 16px; }
.modal[hidden] { display: none; }
.modal__box { width: min(1020px, 100%); max-height: 88vh; overflow: auto; background: #241d63; border: 1px solid #5d55cf; border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow); }
.modal__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.modal__head h2 { margin: 0; font-size: 1.3rem; }
.modal__close { margin-left: auto; }
.search-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.search-grid .prov { height: 64px; }
.search-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-bottom: 18px; }
.search-games .tile__name { font-size: .82rem; }
.popup { width: min(860px, 100%); display: grid; grid-template-columns: 1fr 1fr; background: #2a1f98; border: 1px solid #6b62e0; border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.popup__art { position: relative; min-height: 380px; background: #2f2a8c; }
.popup__art img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.popup__art img.char { position: absolute; left: 50%; bottom: 0; height: 92%; width: auto; transform: translateX(-50%); }
.popup__offer { position: absolute; left: 16px; right: 16px; bottom: 16px; text-align: center; background: rgba(120, 40, 140, .78); border: 1px solid #ff9fd0; border-radius: 10px; padding: 10px; font-family: var(--font-head); font-weight: 800; }
.popup__offer b { display: block; color: var(--yellow); font-size: 1.5rem; line-height: 1.15; }
.popup__body { padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; }
.popup__body h2 { margin: 0; }
.popup .modal__close { position: absolute; right: 12px; top: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .rail--tiles { grid-auto-columns: calc((100% - 4 * 12px) / 5); }
  .rail--providers { grid-auto-columns: calc((100% - 4 * 12px) / 5); }
  .footer__top { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 1023px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .25s; width: 260px !important; }
  body.side-open .sidebar { transform: none; }
  body.side-open .side-backdrop { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(5, 3, 25, .6); }
  body.side-closed .sidebar .side-item span, body.side-closed .sidebar .side-item__chev, body.side-closed .sidebar .side-label { display: revert; }
  body.side-closed .sidebar .side-item { justify-content: flex-start; padding: 7px 10px; }
  .topbar__toggle svg { transform: none !important; }
  .rail--tiles { grid-auto-columns: calc((100% - 3 * 12px) / 4); }
  .rail--list { grid-auto-columns: calc((100% - 12px) / 2); }
  .rail--promo { grid-auto-columns: calc((100% - 16px) / 2); }
  .tool__grid, .grid-3 { grid-template-columns: 1fr 1fr; }
  .tool__grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  main { padding: 14px 16px 32px; }
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar__logo img { width: 46px; height: 38px; }
  .btn--bonus span, .topbar .icon-btn.hide-sm { display: none; }
  .topbar .btn { padding: 0 12px; min-height: 38px; font-size: .82rem; }
  .btn--bonus { padding: 0 8px !important; }
  .hero__slide { min-height: 250px; }
  .hero__slide img.hero__bg { object-position: 85% center; opacity: .55; }
  .hero__content { padding: 18px; }
  .hero__kicker { font-size: 1.1rem; }
  .hero__content .btn { min-width: 0; width: 100%; }
  .catmenu a, .catmenu button { min-width: 92px; height: 64px; font-size: .8rem; }
  .catmenu__providers { display: none; }
  .rail--tiles { grid-auto-columns: calc((100% - 2 * 10px) / 3); gap: 10px; }
  .rail--list { grid-auto-columns: 86%; }
  .rail--promo { grid-auto-columns: 86%; }
  .rail--providers { grid-auto-columns: calc((100% - 10px) / 2); }
  .tile__name { font-size: .8rem; }
  .tourneys, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .tourney__meta { max-width: 100%; }
  .tourney > img.char { opacity: .45; }
  .card, .tool { padding: 18px 16px; }
  .glossary { grid-template-columns: 1fr; }
  .glossary__terms { flex-direction: row; flex-wrap: wrap; }
  .banner { min-height: 0; }
  .banner > img { opacity: .4; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .popup { grid-template-columns: 1fr; }
  .popup__art { min-height: 260px; }
  .shead h2 { font-size: 1.1rem; }
  .shead .btn--ghost { display: none; }
}
.label-short { display: none; }
@media (max-width: 480px) {
  .topbar .btn--bonus { display: none; }
  .topbar { gap: 6px; padding: 0 10px; }
  .topbar__logo img { width: 40px; height: 34px; }
  .topbar__toggle { width: 32px; height: 32px; }
  .topbar .btn { padding: 0 9px; font-size: .76rem; }
  .label-long { display: none; }
  .label-short { display: inline; }
}
@media (max-width: 374px) {
  .topbar { gap: 4px; padding: 0 6px; }
  .topbar__logo img { width: 37px; height: 30px; }
  .topbar .icon-btn { width: 34px; height: 34px; }
  .topbar .btn { padding: 0 7px; font-size: .75rem; letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
