/* ============================================================
   Brionis Casino — Crimson Gold (DE)
   ============================================================ */

:root {
  --bg-deep: #04050E;
  --bg-mid: #0A0B16;
  --bg-light: #14162E;

  --cta-start: #E51E38;
  --cta-end: #B00E1C;
  --red: #D7152E;
  --red-deep: #8E1220;

  --gold: #E0A94E;
  --gold-light: #F3C969;

  --white: #FFFFFF;
  --cream: #F5EFE6;
  --text-secondary: #B9BCCB;
  --text-muted: #7E8296;

  --card-bg: #0F111F;
  --card-bg-alt: #161A2E;
  --card-hover: #1E2340;
  --blue-glow: #1E2A6B;
  --border: rgba(255, 255, 255, 0.07);

  --header-h: 56px;

  --radius-card: 18px;
  --radius-btn: 14px;

  --maxw: 1200px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  background:
    linear-gradient(180deg, var(--bg-light) 0%, var(--bg-mid) 42%, var(--bg-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 78% 8%, rgba(215, 21, 46, 0.12), transparent 60%),
    radial-gradient(50% 40% at 12% 22%, rgba(224, 169, 78, 0.09), transparent 60%),
    radial-gradient(65% 55% at 50% 100%, rgba(30, 42, 107, 0.12), transparent 62%);
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--gold-light);
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 2000;
  background: var(--cta-start);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}

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

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(4, 5, 14, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.site-header.is-pinned {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.header-inner {
  max-width: 100%;
  margin: 0;
  padding: 0.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.logo img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  filter: drop-shadow(0 3px 8px rgba(215, 21, 46, 0.35));
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo-text .brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, var(--cream), var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-text .brand-sub {
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-btn);
  padding: 0.5rem 1.15rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, background 0.2s ease;
  text-align: center;
}
.btn:active {
  transform: translateY(1px);
}

.btn-register,
.btn-cta {
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  color: #fff;
  box-shadow: 0 8px 22px rgba(215, 21, 46, 0.35);
}
.btn-register:hover,
.btn-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(215, 21, 46, 0.5);
}

.btn-login {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-login:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

/* ============================================================
   Breadcrumbs
   ============================================================ */
.breadcrumbs {
  max-width: var(--maxw);
  margin: 1.25rem auto 0;
  padding: 0 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.breadcrumbs li + li::before {
  content: "›";
  color: var(--text-muted);
  margin-right: 0.15rem;
}
.breadcrumbs a {
  color: var(--text-muted);
}
.breadcrumbs a:hover {
  color: var(--gold);
}
.breadcrumbs [aria-current="page"] {
  color: var(--red);
  font-weight: 600;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 1.5rem auto 0;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 55%;
  height: 130%;
  z-index: -1;
  background:
    radial-gradient(closest-side, rgba(215, 21, 46, 0.28), transparent 70%),
    radial-gradient(closest-side, rgba(30, 42, 107, 0.35), transparent 72%);
  filter: blur(38px);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1rem;
}
.hero-highlight {
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 1.75rem;
}
.hero .lead strong {
  color: var(--cream);
  font-weight: 600;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.btn-cta {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
}

/* ============================================================
   Layout container / content card
   ============================================================ */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
}

.content-card {
  background: linear-gradient(160deg, var(--card-bg), var(--card-bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  position: relative;
  padding: 2.25rem clamp(1.25rem, 3vw, 2.75rem);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.content-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

/* ---------- Prose typography ---------- */
.prose > section {
  padding-top: 0.5rem;
}
.prose h2 {
  position: relative;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--white);
  margin: 2.25rem 0 1rem;
  padding-left: 1rem;
}
.prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--red), var(--gold));
}
.prose section:first-of-type h2 {
  margin-top: 0.5rem;
}
.prose h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
  margin: 1.5rem 0 0.6rem;
}
.prose p,
.prose li {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
}
.prose ul,
.prose ol {
  margin: 0 0 1rem 1.25rem;
}
.prose li {
  margin-bottom: 0.5rem;
}
.prose strong,
.prose b {
  color: var(--cream);
  font-weight: 600;
}
.prose a {
  font-weight: 600;
}

/* ============================================================
   Bonus banner
   ============================================================ */
.app-bonus {
  margin: 1.5rem 0;
  padding: 1.1rem 1.4rem;
  border-radius: 14px;
  border: 1px solid rgba(224, 169, 78, 0.4);
  background:
    linear-gradient(135deg, rgba(215, 21, 46, 0.14), rgba(224, 169, 78, 0.12));
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.app-bonus .badge {
  font-weight: 700;
  color: var(--gold-light);
  font-size: 1.05rem;
}
.app-bonus p {
  margin: 0;
  color: var(--cream);
}

/* ============================================================
   Feature grid
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  align-items: start;
  grid-auto-rows: min-content;
  margin: 1.5rem 0;
}
.feature-card {
  align-self: start;
  height: auto;
  min-height: 0;
  background: linear-gradient(160deg, var(--card-bg), var(--card-bg-alt));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: scale(1.02);
  border-color: rgba(224, 169, 78, 0.45);
  box-shadow: 0 10px 26px rgba(224, 169, 78, 0.15);
}
.feature-card .icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}
.feature-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--gold);
}
.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============================================================
   Widget panels
   ============================================================ */
.widget-panel {
  margin: 1.75rem 0;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(224, 169, 78, 0.35);
  background:
    linear-gradient(160deg, rgba(215, 21, 46, 0.08), rgba(15, 17, 31, 0.9) 45%),
    linear-gradient(160deg, var(--card-bg), var(--card-bg-alt));
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.widget-panel > h2 {
  padding-left: 0;
  margin-top: 0;
  color: var(--gold-light);
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
}
.widget-panel > h2::before {
  display: none;
}
.widget-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* ---------- Bonus calculator ---------- */
.calc-row {
  margin-bottom: 1.1rem;
}
.calc-row label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}
.calc-row output {
  font-weight: 700;
  color: var(--gold-light);
  font-size: 1rem;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  outline-offset: 4px;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--red);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--red);
}
.calc-result {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(4, 5, 14, 0.55);
  border: 1px solid var(--border);
  text-align: center;
}
.calc-result .amount {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-light);
  display: block;
}
.calc-result .caption {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Slot lobby ---------- */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 0.5rem;
}
.slot-card {
  background: linear-gradient(160deg, var(--card-bg), var(--card-bg-alt));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 0.75rem;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.slot-card:hover {
  transform: translateY(-3px);
  border-color: rgba(224, 169, 78, 0.45);
}
.slot-card .slot-emoji {
  font-size: 2rem;
}
.slot-card .slot-name {
  display: block;
  font-weight: 600;
  color: var(--cream);
  font-size: 0.9rem;
  margin: 0.4rem 0 0.6rem;
}
.btn-demo {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  border-radius: 10px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-demo:hover {
  background: var(--gold);
  color: #1a1200;
}
.btn-demo.is-playing {
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  color: #fff;
  border-color: transparent;
}

/* ---------- Quiz ---------- */
.quiz-form fieldset {
  border: none;
  margin-bottom: 1rem;
}
.quiz-form legend {
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.6rem;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.quiz-option:hover {
  border-color: rgba(224, 169, 78, 0.4);
  background: rgba(224, 169, 78, 0.06);
}
.quiz-option input {
  accent-color: var(--red);
}
.quiz-result {
  margin-top: 0.75rem;
  font-weight: 600;
  min-height: 1.4em;
}
.quiz-result.correct {
  color: #58c98c;
}
.quiz-result.wrong {
  color: var(--red);
}

/* ---------- Roulette ---------- */
.roulette-wrap {
  text-align: center;
}
.roulette-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0.5rem auto 1rem;
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  background: radial-gradient(circle at 30% 30%, var(--red), var(--red-deep));
  border: 4px solid var(--gold);
  box-shadow: 0 0 30px rgba(215, 21, 46, 0.4);
  transition: transform 0.1s ease;
}
.roulette-display.is-spinning {
  animation: spinPulse 0.4s linear infinite;
}
@keyframes spinPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* ============================================================
   Tables
   ============================================================ */
.table-wrapper {
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.data-table thead th {
  background: linear-gradient(90deg, var(--red-deep), var(--red));
  color: #fff;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.6px;
  padding: 0.85rem 1rem;
  text-align: left;
}
.data-table td {
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}
.data-table tbody tr {
  transition: background 0.15s ease;
}
.data-table tbody tr:hover {
  background: var(--card-hover);
}
.data-table b {
  color: var(--gold-light);
}

/* ============================================================
   CTA block
   ============================================================ */
.cta-block {
  max-width: var(--maxw);
  margin: 2.5rem auto 0;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: var(--radius-card);
  border: 1px solid rgba(224, 169, 78, 0.35);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(215, 21, 46, 0.18), transparent 60%),
    linear-gradient(160deg, var(--card-bg), var(--card-bg-alt));
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.cta-block h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--white);
  margin-bottom: 0.75rem;
}
.cta-block p {
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 1.5rem;
}
.cta-block .disclaimer {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  max-width: var(--maxw);
  margin: 3rem auto 0;
  padding: 2rem 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.pay-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.pay-chip {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
}
.footer-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.footer-meta a {
  color: var(--text-secondary);
}
.footer-meta a:hover {
  color: var(--gold);
}
.footer-age {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--red);
}

/* ============================================================
   Responsive — ≤768px
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --header-h: 118px;
  }
  body {
    font-size: 0.875rem;
    line-height: 1.55;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
  }
  .logo {
    justify-content: center;
  }
  .header-buttons {
    width: 100%;
    gap: 0.5rem;
  }
  .header-buttons .btn {
    flex: 1 1 0;
    min-height: 42px;
    padding: 0.6rem 0.5rem;
  }

  .hero {
    padding: 2rem 1rem 1.5rem;
  }
  .hero h1 {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  }
  .hero .lead {
    font-size: 0.875rem;
  }

  .container {
    padding: 1.5rem 1rem 0;
  }
  .content-card {
    padding: 1.5rem 1.1rem;
    border-radius: 14px;
  }

  .prose h2 {
    font-size: clamp(1.05rem, 4vw, 1.35rem);
  }
  .prose h3 {
    font-size: 0.95rem;
  }
  .prose p,
  .prose li {
    font-size: 0.875rem;
  }

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

  /* Tables → cards */
  .table-wrapper {
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .data-table thead {
    display: none;
  }
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }
  .data-table tr {
    background: linear-gradient(160deg, var(--card-bg), var(--card-bg-alt));
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 0.85rem;
    padding: 0.4rem 0.9rem;
  }
  .data-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    text-align: right;
    border-top: none;
    padding: 0.5rem 0;
  }
  .data-table td + td {
    border-top: 1px solid var(--border);
  }
  .data-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-muted);
    text-align: left;
    flex: 0 0 45%;
  }
}

/* ============================================================
   Responsive — ≤380px
   ============================================================ */
@media (max-width: 380px) {
  body {
    font-size: 0.8125rem;
  }
  .prose h2 {
    font-size: 1rem;
  }
  .roulette-display {
    width: 100px;
    height: 100px;
    font-size: 2.2rem;
  }
  .calc-result .amount {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
