/* Public site styles — no build step. Colours are tokens: dark glass + violet glow. */
:root {
  --bg: #07060d;
  --bg-2: #100e1a;
  --card: #121020;
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.015));
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f1fa;
  --muted: #9b96ae;
  --accent: #8b5cf6;
  --accent-2: #a78bfa;
  --accent-text: #ffffff;
  --glow: 0 0 22px rgba(139, 92, 246, 0.55), 0 0 2px rgba(196, 167, 255, 0.9);
  --glow-soft: 0 0 18px rgba(139, 92, 246, 0.3);
  --ok: #3ccf8e;
  --error: #ff6b81;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(124, 58, 237, 0.18) 0%, transparent 60%),
    radial-gradient(700px 500px at 100% 30%, rgba(124, 58, 237, 0.08) 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.05rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-main { flex: 1; padding-bottom: 48px; }

/* buttons: violet pill with glow; ghost = dark glass pill */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0.65em 1.3em; border-radius: 999px; border: 1px solid rgba(196, 167, 255, 0.55);
  background: linear-gradient(180deg, #9f6dff 0%, #7c3aed 100%); color: var(--accent-text);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: box-shadow 0.15s ease, transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.1); box-shadow: 0 0 30px rgba(139, 92, 246, 0.75), 0 0 2px rgba(196, 167, 255, 1), inset 0 1px 0 rgba(255, 255, 255, 0.3); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: var(--glass), var(--bg-2); color: var(--text); border-color: var(--border-strong); box-shadow: var(--glass-edge); font-weight: 600; }
.btn-ghost:hover { border-color: rgba(167, 139, 250, 0.5); box-shadow: var(--glass-edge), var(--glow-soft); filter: none; }
.btn-lg { font-size: 1.08rem; padding: 0.85em 1.9em; }
.btn-block { width: 100%; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(7, 6, 13, 0.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); letter-spacing: 0.02em; }
.logo-img { display: block; height: var(--logo-h, 36px); width: auto; max-width: 220px; object-fit: contain; }
.footer-logo { flex-basis: 100%; font-size: 1rem; }
.footer-logo .logo-img { height: min(var(--logo-h, 36px), 32px); max-width: 180px; }
.logo:hover { text-decoration: none; color: var(--accent-2); }
.main-nav { flex: 1; display: flex; align-items: center; gap: 16px; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex: 1; }
.menu > li { position: relative; }
.menu a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; border: 1px solid transparent; transition: color 0.15s, background 0.15s; }
.menu a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.menu a.active { color: #fff; background: rgba(139, 92, 246, 0.22); border-color: rgba(167, 139, 250, 0.45); box-shadow: var(--glow-soft); text-decoration: none; }
.menu .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; list-style: none; margin: 0; padding: 6px; background: var(--glass), var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--glass-edge), var(--shadow); }
.menu li:hover > .sub, .menu li:focus-within > .sub { display: block; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--glass); box-shadow: var(--glass-edge); }
.lang-switch a { padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.lang-switch a.active { background: var(--accent); color: #fff; box-shadow: var(--glow-soft); }
.lang-switch a:hover { text-decoration: none; color: var(--text); }
.nav-toggle, .burger { display: none; }

@media (max-width: 860px) {
  .header-row { flex-wrap: wrap; gap: 12px; }
  .logo-img { height: min(var(--logo-h, 36px), 40px); max-width: 160px; }
  .burger { display: flex; flex-direction: column; gap: 5px; margin-left: auto; cursor: pointer; padding: 8px; }
  .burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }
  .main-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .nav-toggle:checked ~ .main-nav { display: flex; }
  .menu { flex-direction: column; }
  .menu .sub { display: block; position: static; box-shadow: none; border: 0; padding-left: 16px; background: transparent; }
  .header-tools { flex-wrap: wrap; }
}

/* footer */
.site-footer { border-top: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); padding: 28px 0; color: var(--muted); font-size: 0.9rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; flex-basis: 100%; }
.footer-menu a { color: var(--text); }
.footer-text, .footer-copy { margin: 0; }

/* blocks */
.block { margin-top: 40px; }
.page-head { margin-top: 32px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.link-more { font-weight: 600; white-space: nowrap; }
.hero { margin-top: 0; padding: clamp(56px, 10vw, 120px) 0; background: radial-gradient(800px 400px at 80% 120%, rgba(139, 92, 246, 0.35), transparent 70%), radial-gradient(600px 300px at 0% 0%, rgba(124, 58, 237, 0.25), transparent 70%), #0b0914; background-size: cover; background-position: center; position: relative; border-bottom: 1px solid var(--border); }
.hero-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 6, 13, 0.9), rgba(7, 6, 13, 0.35)); }
.hero-inner { position: relative; }
.hero-title { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 760px; }
.hero-sub { font-size: 1.15rem; color: #cfcae0; max-width: 620px; margin: 0 0 24px; }
.prose { max-width: 760px; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1em; }
.prose blockquote { border-left: 3px solid var(--accent-2); padding-left: 16px; color: var(--muted); }
.prose code { background: var(--bg-2); padding: 1px 6px; border-radius: 6px; }
.prose img { border-radius: var(--radius); margin: 1em 0; }
.image-block figure { margin: 0; }
.image-block img { border-radius: var(--radius); width: 100%; }
.image-block figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }

/* cards */
.grid { display: grid; gap: 20px; }
.games-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.articles-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--glass), var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); box-shadow: var(--glass-edge), 0 10px 30px rgba(0, 0, 0, 0.35); transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.card:hover { transform: translateY(-3px); border-color: rgba(167, 139, 250, 0.55); box-shadow: var(--glass-edge), 0 14px 36px rgba(0, 0, 0, 0.45), var(--glow-soft); text-decoration: none; }
.thumb { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 120%, rgba(139, 92, 246, 0.45), transparent 70%), #0d0b17; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.thumb-wide { aspect-ratio: 16 / 9; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-ph { font-size: 3rem; font-weight: 800; color: rgba(255, 255, 255, 0.7); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: var(--accent-text); box-shadow: var(--glow-soft); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.play-hover { position: absolute; inset: auto 0 0 0; padding: 12px; text-align: center; font-weight: 700; background: linear-gradient(transparent, rgba(40, 16, 90, 0.85)); opacity: 0; transition: opacity 0.15s; }
.game-card:hover .play-hover { opacity: 1; }
.card-link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.card-link:hover { text-decoration: none; }
.game-card { position: relative; }
.game-card > .fav { position: absolute; top: 10px; right: 10px; z-index: 2; margin: 0; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; }
.card-text { color: var(--muted); font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more { margin-top: 6px; color: var(--accent-2); font-weight: 600; font-size: 0.9rem; }
.empty { color: var(--muted); padding: 32px 0; }

/* favourites (heart) */
.fav-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 36px; height: 36px; padding: 0; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(10, 8, 20, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font: inherit;
  transition: transform 0.12s ease, background 0.12s ease;
}
.fav-btn:hover { transform: scale(1.08); text-decoration: none; background: rgba(0, 0, 0, 0.75); }
.fav-btn:disabled { opacity: 0.6; cursor: default; }
.fav-btn .heart { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.fav-btn.is-on { color: #c4b5fd; border-color: rgba(167, 139, 250, 0.6); box-shadow: var(--glow-soft); }
.fav-btn.is-on .heart { fill: currentColor; }
.fav-lg { width: auto; height: auto; padding: 0.6em 1.2em; background: var(--glass), var(--bg-2); border-color: var(--border-strong); box-shadow: var(--glass-edge); color: var(--text); font-weight: 600; }
.fav-lg:hover { transform: none; border-color: rgba(167, 139, 250, 0.5); }
.fav-lg.is-on { color: #fff; background: rgba(139, 92, 246, 0.25); border-color: rgba(167, 139, 250, 0.6); box-shadow: var(--glow-soft); }
.game-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.game-title-row h1 { margin: 0; }
.game-title-row + .lead { margin-top: 12px; }
.favorites { margin-bottom: 20px; scroll-margin-top: 80px; }
.fav-group + .fav-group { margin-top: 24px; }
.fav-group-title { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.chip-count { opacity: 0.6; font-weight: 600; margin-left: 2px; }

/* CTA banners: full width, container width, half of the container */
.cta { position: relative; overflow: hidden; display: flex; align-items: center; background: radial-gradient(600px 300px at 100% 100%, rgba(139, 92, 246, 0.28), transparent 70%), var(--glass), var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--glass-edge), var(--shadow); color: var(--text); }
.cta-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 6, 13, 0.85) 0%, rgba(7, 6, 13, 0.4) 70%, rgba(7, 6, 13, 0.15) 100%); }
.cta-center.cta-has-img::after { background: rgba(7, 6, 13, 0.6); }
.cta-body, .cta-inner { position: relative; z-index: 1; }
.cta-body { padding: clamp(24px, 4vw, 48px); max-width: 640px; }
.cta-center { justify-content: center; text-align: center; }
.cta-center .cta-body { margin: 0 auto; }
.cta-title { margin: 0 0 0.4em; }
.cta-text { margin: 0 0 1.2em; color: var(--muted); font-size: 1.05rem; }
.cta-has-img .cta-text { color: #ddd8ec; }
.cta-body > :last-child { margin-bottom: 0; }

.cta-full { border-radius: 0; border-width: 1px 0; min-height: clamp(280px, 38vw, 460px); }
.cta-full .cta-inner { width: 100%; }
.cta-full .cta-body { padding-left: 0; padding-right: 0; }
.cta-full.cta-center .cta-body { padding-left: 16px; padding-right: 16px; }
.cta-full .cta-title { font-size: clamp(2rem, 5vw, 3.2rem); }
.cta-container { min-height: clamp(220px, 26vw, 320px); }
.cta-half { min-height: 220px; height: 100%; }
.cta-half .cta-body { padding: 28px; }
.cta-half .cta-title { font-size: 1.35rem; }
.cta-half .cta-text { font-size: 0.95rem; }
.cta-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sr-only + .cta-section-full, .sr-only + .hero { margin-top: 0; }
@media (max-width: 760px) { .cta-row { grid-template-columns: 1fr; } }

/* features (cards / numbered steps) and stats */
.section-head { max-width: 720px; margin-bottom: 20px; }
.section-head h2 { margin-bottom: 0.3em; }
.section-head p { margin: 0; }
.features-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature { background: var(--glass), var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--glass-edge); padding: 24px; }
.feature h3 { margin: 0 0 0.4em; }
.feature p { margin: 0; color: var(--muted); }
.feature-img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 14px; }
.feature-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(180deg, #9f6dff, #7c3aed); border: 1px solid rgba(196, 167, 255, 0.55); box-shadow: var(--glow); color: #fff; font-weight: 800; margin-bottom: 16px; }
.stats-grid { list-style: none; margin: 0; padding: 24px 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.1; color: #fff; text-shadow: 0 0 24px rgba(139, 92, 246, 0.7); }
.stat-label { color: var(--muted); font-size: 0.95rem; }

/* catalogue */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--glass), var(--bg-2); box-shadow: var(--glass-edge); color: var(--text); font-weight: 600; font-size: 0.9rem; }
.chip:hover { border-color: rgba(167, 139, 250, 0.5); text-decoration: none; }
.chip.active { background: linear-gradient(180deg, #9f6dff, #7c3aed); border-color: rgba(196, 167, 255, 0.6); color: #fff; box-shadow: var(--glow); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.filters input, .filters select, .form input, .form select {
  background: var(--glass), var(--bg-2); color: var(--text); border: 1px solid var(--border-strong); border-radius: 999px; box-shadow: var(--glass-edge); padding: 0.6em 1.1em; font: inherit; min-width: 0;
}
.filters input:focus, .filters select:focus, .form input:focus, .form select:focus { outline: none; border-color: rgba(167, 139, 250, 0.7); box-shadow: var(--glass-edge), var(--glow-soft); }
.filters select, .form select {
  -webkit-appearance: none; appearance: none; padding-right: 2.6em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a78bfa' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center, var(--glass), var(--bg-2);
}
.filters select option, .form select option { background: var(--bg-2); color: var(--text); }
.filters input[type="search"] { flex: 1 1 200px; }
.filters select { flex: 0 1 190px; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; align-items: center; }
.pagination a, .pagination .current, .pagination .gap { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--glass); color: var(--text); }
.pagination a:hover { border-color: rgba(167, 139, 250, 0.5); text-decoration: none; }
.pagination .current { background: linear-gradient(180deg, #9f6dff, #7c3aed); color: #fff; border-color: rgba(196, 167, 255, 0.6); box-shadow: var(--glow-soft); font-weight: 700; }
.pagination .gap { border: 0; }

/* game page */
.game-page { margin-top: 24px; }
.back { display: inline-block; margin-bottom: 12px; color: var(--muted); font-weight: 600; }
.lead { font-size: 1.15rem; color: #cfcae0; max-width: 760px; }
.game-frame { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow), 0 0 60px rgba(124, 58, 237, 0.18); margin: 20px 0 8px; }
.game-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.game-start { width: 100%; height: 100%; border: 0; cursor: pointer; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 110%, rgba(139, 92, 246, 0.5), transparent 70%), #0b0914; background-size: cover; background-position: center; color: var(--text); font: inherit; }
.game-start .btn { box-shadow: var(--shadow); }
.game-locked { cursor: default; text-align: center; padding: 16px; }
.game-locked p { background: rgba(0, 0, 0, 0.6); padding: 8px 14px; border-radius: 10px; }
.fs-btn { position: absolute; right: 10px; bottom: 10px; z-index: 2; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px; background: rgba(10, 8, 20, 0.65); color: #fff; font-size: 1.2rem; width: 38px; height: 38px; cursor: pointer; }
.game-frame:fullscreen { border-radius: 0; aspect-ratio: auto; }
.game-frame:-webkit-full-screen { border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; }
.demo-note { margin: 0 0 20px; }
.game-info { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; margin-top: 24px; }
.facts { background: var(--glass), var(--card); box-shadow: var(--glass-edge); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-self: start; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 760px) { .game-info { grid-template-columns: 1fr; } .game-frame { aspect-ratio: 3 / 4; } }

/* article */
.article { margin-top: 24px; }
.article-cover { border-radius: var(--radius); margin: 16px 0 24px; width: 100%; }

/* forms, account */
.auth-box { max-width: 440px; margin-top: 48px; background: var(--glass), var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--glass-edge), var(--shadow), 0 0 80px rgba(124, 58, 237, 0.12); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.form input:disabled { opacity: 0.6; }
.pw-field { position: relative; display: flex; }
.pw-field input { flex: 1 1 auto; width: 100%; padding-right: 3em; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--text); background: rgba(167, 139, 250, 0.14); outline: none; }
.pw-toggle[hidden] { display: none; }
.pw-toggle .pw-eye-off { display: none; }
.pw-toggle.is-on { color: #c4a7ff; }
.pw-toggle.is-on .pw-eye-off { display: inline; }
.alert { padding: 10px 16px; border-radius: var(--radius-sm); margin: 0 0 16px; }
.alert-error { background: rgba(255, 107, 129, 0.1); border: 1px solid rgba(255, 107, 129, 0.6); color: #ffd3da; }
.alert-ok { background: rgba(60, 207, 142, 0.12); border: 1px solid var(--ok); color: #c9f7e2; }
.alert-warn { background: rgba(250, 190, 80, 0.1); border: 1px solid rgba(250, 190, 80, 0.6); color: #fde7b8; }
.verify-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.verify-box form { margin: 0; }
/* sign-up: "I am 18+ and accept the rules" */
.form label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; }
.form label.check input { width: 18px; height: 18px; margin: 2px 0 0; padding: 0; flex: 0 0 auto; accent-color: #8b5cf6; }
.form .form-aside { margin: -6px 0 0; text-align: right; }
.form input[type="date"] { color-scheme: dark; }
.account { margin-top: 32px; }
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 20px; }
.panel { background: var(--glass), var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--glass-edge); padding: 22px; }
.panel h2 { font-size: 1.15rem; }
.balance { font-size: 2.4rem; font-weight: 800; margin: 0; color: #fff; text-shadow: 0 0 24px rgba(139, 92, 246, 0.75); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.table th { color: var(--muted); font-weight: 600; }
.table .num { text-align: right; }
.table .win { color: var(--ok); font-weight: 700; }
.page-404 { margin-top: 64px; }
.page-404 h1 { font-size: 5rem; color: #fff; text-shadow: 0 0 40px rgba(139, 92, 246, 0.9); margin: 0; }

/* preloader: three slot reels (layout.ts, site.js) */
.preloader {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(520px 360px at 50% 52%, rgba(124, 58, 237, 0.22), transparent 70%), var(--bg);
  opacity: 0; pointer-events: none;
  /* later pages: fade in only if loading takes > 0.3s; without JS: hide after 4s */
  animation: pl-in 0.3s ease 0.3s forwards, pl-out 0.4s ease 4s forwards;
}
.preloader.pl-first { opacity: 1; animation: pl-out 0.4s ease 4s forwards; }
.preloader.pl-done { animation: pl-out 0.4s ease forwards; }
.pl-box { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.pl-reels {
  display: flex; gap: 10px; padding: 12px; border-radius: 20px;
  background: var(--glass), var(--card); border: 1px solid var(--border);
  box-shadow: var(--glass-edge), 0 0 40px rgba(139, 92, 246, 0.25);
}
.pl-reel {
  --h: 56px; position: relative; width: 46px; height: var(--h); overflow: hidden; border-radius: 12px;
  background: #0b0915; border: 1px solid rgba(255, 255, 255, 0.06);
}
.pl-reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#0b0915, transparent 30%, transparent 70%, #0b0915); }
.pl-strip { display: flex; flex-direction: column; animation: pl-spin 0.5s linear infinite; }
.pl-strip i {
  height: var(--h); flex: none; display: flex; align-items: center; justify-content: center;
  font-style: normal; font-weight: 800; font-size: 26px; line-height: 1;
  color: #c4b5fd; text-shadow: 0 0 12px rgba(139, 92, 246, 0.95);
}
.pl-reel:nth-child(2) .pl-strip { animation-duration: 0.42s; animation-delay: -0.2s; }
.pl-reel:nth-child(3) .pl-strip { animation-duration: 0.58s; animation-delay: -0.1s; }
.pl-name { color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; }
/* stop one reel after another on 7 (the spin keeps running until each one's stop starts) */
.pl-land .pl-strip { animation: pl-spin 0.5s linear infinite, pl-stop 0.55s cubic-bezier(0.2, 0.8, 0.3, 1.3) forwards; }
.pl-land .pl-reel:nth-child(2) .pl-strip { animation: pl-spin 0.42s linear infinite, pl-stop 0.55s cubic-bezier(0.2, 0.8, 0.3, 1.3) 0.14s forwards; }
.pl-land .pl-reel:nth-child(3) .pl-strip { animation: pl-spin 0.58s linear infinite, pl-stop 0.55s cubic-bezier(0.2, 0.8, 0.3, 1.3) 0.28s forwards; }
.pl-land .pl-reels { animation: pl-win 0.5s ease 0.8s; }
@keyframes pl-in { to { opacity: 1; } }
@keyframes pl-out { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes pl-spin { from { transform: translateY(0); } to { transform: translateY(calc(var(--h) * -5)); } }
@keyframes pl-stop { from { transform: translateY(calc(var(--h) * -1)); } to { transform: translateY(calc(var(--h) * -5)); } }
@keyframes pl-win { 50% { box-shadow: var(--glass-edge), 0 0 70px rgba(139, 92, 246, 0.7), 0 0 0 1px rgba(196, 167, 255, 0.6); } }
@media (prefers-reduced-motion: reduce) {
  .pl-strip, .pl-land .pl-strip, .pl-land .pl-reel .pl-strip { animation: none; transform: translateY(calc(var(--h) * -5)); }
}

/* the small page shown inside the game iframe when the game can't start */
.frame-message { display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; min-height: 100vh; background: #07060d; }
.frame-message p { margin: 0 0 16px; }

/* cabinet: free rounds (FRB) given in the backoffice */
.frb-panel .frb-tag { display: inline-block; margin-left: 6px; background: var(--accent); color: var(--accent-text); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; vertical-align: middle; }
.btn.btn-sm { padding: 5px 12px; font-size: 0.85rem; }
