:root {
  --bg: #120d08;
  --bg-elevated: #1a130d;
  --bg-panel: #22180f;
  --surface: #f3e3bf;
  --surface-2: #e8d4aa;
  --surface-3: #dcc28c;
  --text: #24180e;
  --text-soft: #43301d;
  --text-light: #fbf4e5;
  --muted-light: #eadbb7;
  --gold: #c79b2d;
  --gold-strong: #ebc75c;
  --gold-deep: #8d6420;
  --ruby: #7f1f20;
  --ruby-strong: #a92b2c;
  --emerald: #2f7f73;
  --border: rgba(199, 155, 45, 0.26);
  --border-strong: rgba(235, 199, 92, 0.5);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.28);
  --shadow-card: 0 18px 50px rgba(8, 6, 4, 0.34);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-pill: 999px;
  --container: 1180px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
  background:
    radial-gradient(circle at top, rgba(199, 155, 45, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(47, 127, 115, 0.14), transparent 18%),
    linear-gradient(180deg, #1b140d 0%, #110c08 45%, #0d0906 100%);
}

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

a {
  color: var(--gold-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition: color var(--transition), opacity var(--transition), transform var(--transition), box-shadow var(--transition);
}

a:hover {
  color: #ffe08d;
}

.content-flow a,
.toc a,
.author-eeat a,
.editorial-note a,
.review-table a,
.feature-card a,
.casino-card a,
.faq-item a {
  color: #7d221d;
  font-weight: 700;
}

.content-flow a:hover,
.toc a:hover,
.author-eeat a:hover,
.editorial-note a:hover,
.review-table a:hover,
.feature-card a:hover,
.casino-card a:hover,
.faq-item a:hover {
  color: #a92b2c;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible,
.nav-toggle-label:focus-visible,
.cta-button:focus-visible,
.secondary-button:focus-visible {
  outline: 3px solid rgba(47, 127, 115, 0.95);
  outline-offset: 3px;
}

::selection {
  background: rgba(235, 199, 92, 0.28);
  color: #fff6df;
}

.bookofra-site-shell {
  position: relative;
  overflow: clip;
}

.bookofra-site-shell::before,
.bookofra-site-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
}

.bookofra-site-shell::before {
  top: 8rem;
  left: -10rem;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 141, 43, 0.18), transparent 68%);
}

.bookofra-site-shell::after {
  right: -8rem;
  bottom: 10rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 127, 115, 0.12), transparent 70%);
}

.bookofra-container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(16, 12, 8, 0.96), rgba(16, 12, 8, 0.84));
  border-bottom: 1px solid rgba(235, 199, 92, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.site-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
  color: var(--text-light);
}

.logo:hover {
  color: var(--text-light);
}

.logo img {
  display: block;
  width: auto;
  height: 46px;
  width: 180px;
  max-width: min(180px, 40vw);
  object-fit: contain;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.site-header__controls {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.55rem;
}

.nav-toggle-label {
  align-items: center;
  justify-content: center;
  display: inline-grid;
  gap: 0.28rem;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(51, 37, 24, 0.92), rgba(27, 19, 13, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 241, 195, 0.06);
  cursor: pointer;
}

.nav-toggle-label span {
  width: 1.45rem;
  height: 2px;
  background: var(--gold-strong);
  border-radius: var(--radius-pill);
  transition: transform var(--transition), opacity var(--transition);
}

.main-nav {
  grid-column: 1 / -1;
  display: none;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.25rem;
  padding: 0.8rem;
  border: 1px solid rgba(235, 199, 92, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(25, 18, 12, 0.96), rgba(17, 12, 8, 0.96));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.main-nav a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: #fff6df;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(235, 199, 92, 0.08);
}

.main-nav a:hover {
  background: rgba(235, 199, 92, 0.08);
}

.site-header__actions {
  grid-column: 1 / -1;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.65rem;
  padding: 0.8rem;
  border: 1px solid rgba(235, 199, 92, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(25, 18, 12, 0.94), rgba(17, 12, 8, 0.94));
}

.nav-toggle:checked ~ .main-nav,
.nav-toggle:checked ~ .site-header__actions {
  display: flex;
}

.nav-toggle:checked + .site-header__controls .nav-toggle-label span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle:checked + .site-header__controls .nav-toggle-label span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked + .site-header__controls .nav-toggle-label span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.language-container {
  position: relative;
}

.language-container::after {
  content: "▾";
  position: absolute;
  top: 50%;
  right: 0.95rem;
  transform: translateY(-50%);
  color: var(--gold-strong);
  pointer-events: none;
}

.language-selector {
  width: 100%;
  appearance: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.9rem 2.4rem 0.9rem 1rem;
  font: inherit;
  color: var(--text-light);
  background:
    linear-gradient(180deg, rgba(44, 31, 20, 0.96), rgba(24, 17, 12, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 241, 195, 0.05);
}

.bookofra-intro {
  padding: 2rem 0 1rem;
}

.bookofra-intro__content,
.bookofra-intro__figure,
.review-table,
.toc,
.content-flow,
.author-box,
.author-eeat,
.author-card,
.editorial-note,
.faq-item,
.casino-card,
.feature-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(243, 227, 191, 0.96), rgba(225, 203, 156, 0.96));
  box-shadow: var(--shadow-card);
}

.bookofra-intro__content {
  padding: 1.5rem;
  color: var(--text);
}

.bookofra-intro__content::before,
.review-table::before,
.toc::before,
.content-flow::before,
.author-box::before,
.author-eeat::before,
.author-card::before,
.editorial-note::before,
.faq-item::before,
.casino-card::before,
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(255, 230, 150, 0.6), rgba(141, 100, 32, 0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.bookofra-kicker {
  margin: 0 0 0.65rem;
  color: var(--ruby);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  font-family: "Cinzel", serif;
  line-height: 1.15;
  color: #2f1c0b;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
}

h2 {
  font-size: clamp(1.65rem, 4.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
}

p,
li,
td,
th,
summary,
figcaption {
  color: var(--text-soft);
}

.bookofra-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.cta-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition), background var(--transition), color var(--transition);
}

.cta-button {
  color: #fff6de;
  background:
    linear-gradient(180deg, #a82a2c 0%, #74191a 100%);
  box-shadow: 0 10px 24px rgba(127, 31, 32, 0.28), inset 0 1px 0 rgba(255, 215, 178, 0.18);
}

.site-header__cta {
  min-height: 2.8rem;
  padding: 0.62rem 0.95rem;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(127, 31, 32, 0.24), inset 0 1px 0 rgba(255, 215, 178, 0.18);
}

.secondary-button {
  color: #34210f;
  background:
    linear-gradient(180deg, #f3d77a 0%, #c9992b 100%);
  box-shadow: 0 10px 24px rgba(130, 94, 25, 0.22), inset 0 1px 0 rgba(255, 248, 212, 0.46);
}

.cta-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.cta-button:hover {
  box-shadow: 0 14px 28px rgba(127, 31, 32, 0.36), 0 0 22px rgba(235, 199, 92, 0.16);
}

.secondary-button:hover {
  box-shadow: 0 14px 28px rgba(130, 94, 25, 0.28), 0 0 22px rgba(235, 199, 92, 0.22);
}

.bookofra-highlight-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 1.4rem 0 0;
  list-style: none;
}

.bookofra-highlight-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  color: #342313;
}

.bookofra-highlight-list li::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff2b5, #d4a438 60%, #8d6420 100%);
  box-shadow: 0 0 0 4px rgba(199, 155, 45, 0.12);
}

.bookofra-intro__figure {
  margin: 1.25rem 0 0;
  overflow: hidden;
}

.bookofra-intro__figure img {
  width: 100%;
  max-width: 799px;
  aspect-ratio: 799 / 470;
  object-fit: cover;
}

figcaption {
  padding: 0.95rem 1.1rem 1.2rem;
  font-size: 0.93rem;
}

.content-section {
  padding: 1rem 0;
}

.section-heading {
  margin-bottom: 1.25rem;
}

.quick-facts .section-heading h2 {
  color: var(--text-light);
}

.review-table {
  overflow: hidden;
}

.review-table table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.review-table {
  overflow-x: auto;
}

.review-table th,
.review-table td {
  padding: 0.95rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(141, 100, 32, 0.18);
}

.review-table th {
  color: #2d1b0b;
  background: rgba(199, 155, 45, 0.14);
  font-family: "Cinzel", serif;
  font-weight: 700;
}

.review-table tbody tr:nth-child(even) td {
  background: rgba(255, 249, 235, 0.24);
}

.review-table td:last-child {
  font-weight: 700;
  color: #3b2813;
}

.toc {
  padding: 1rem 1.1rem;
}

.toc summary,
.faq-item summary {
  position: relative;
  list-style: none;
  padding-right: 2rem;
  cursor: pointer;
  font-weight: 800;
  color: #2c1a0a;
}

.toc summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker {
  display: none;
}

.toc summary::after,
.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  color: var(--ruby);
  font-size: 1.4rem;
  font-weight: 600;
}

.toc[open] summary::after,
.faq-item[open] summary::after {
  content: "−";
}

.toc ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.1rem;
}

.toc-body {
  margin-top: 1rem;
  padding: 1rem 1rem 0.95rem;
  border-top: 1px solid rgba(141, 100, 32, 0.2);
  border-radius: 0 0 calc(var(--radius-md) - 2px) calc(var(--radius-md) - 2px);
  background: linear-gradient(180deg, rgba(255, 250, 238, 0.45), rgba(230, 209, 163, 0.32));
}

.toc li::marker {
  color: var(--gold-deep);
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.content-flow {
  display: grid;
  gap: 1.4rem;
  padding: 1.3rem;
}

.content-flow figure {
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--radius-md) - 6px);
  border: 1px solid rgba(141, 100, 32, 0.22);
  background: rgba(255, 248, 231, 0.44);
}

.content-flow figure img {
  width: 100%;
  max-width: 799px;
  aspect-ratio: 799 / 470;
  object-fit: cover;
}

.bookofra-intro__figure img,
.content-flow figure img {
  margin-inline: auto;
}

.demo-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(141, 100, 32, 0.24);
  border-radius: calc(var(--radius-md) - 4px);
  background:
    linear-gradient(180deg, rgba(22, 16, 11, 0.96), rgba(12, 9, 7, 0.98));
  box-shadow: var(--shadow-card);
  width: min(100%, 799px);
  margin-inline: auto;
  aspect-ratio: 799 / 470;
}

.demo-frame iframe {
  display: none;
  width: 100%;
  height: 100%;
  aspect-ratio: 799 / 470;
  border: 0;
  background: #0f0b08;
}

.demo-frame__poster,
.demo-frame__overlay,
.demo-frame iframe {
  position: absolute;
  inset: 0;
}

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

.demo-frame__overlay {
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(20, 14, 10, 0.18), rgba(12, 8, 5, 0.64));
}

.demo-frame__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
}

.demo-frame__actions .cta-button,
.demo-frame__actions .secondary-button,
.demo-launch-button {
  min-width: 148px;
}

.demo-launch-button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.demo-frame.is-live .demo-frame__poster {
  display: none;
}

.demo-frame.is-live iframe {
  display: block;
}

.feature-grid,
.casino-grid,
.pros-cons {
  display: grid;
  gap: 1rem;
}

.feature-card,
.casino-card {
  padding: 1.2rem;
}

.feature-card ul,
.pros-cons ul {
  margin: 0;
  padding-left: 1.2rem;
}

.feature-card p,
.feature-card li,
.casino-card p,
.author-eeat p,
.author-info p,
.editorial-note p,
.faq-item p,
.toc li,
.review-table td,
.review-table th,
figcaption {
  color: var(--text-soft);
}

.feature-card li + li,
.pros-cons li + li,
.site-footer li + li {
  margin-top: 0.45rem;
}

.casino-card {
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(243, 227, 191, 0.98), rgba(218, 193, 140, 0.98));
}

.casino-card__badge {
  display: inline-flex;
  margin-bottom: 0.9rem;
  padding: 0.34rem 0.72rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff4da;
  background: linear-gradient(180deg, #366f66, #214e48);
}

.author-box {
  display: grid;
  gap: 1rem;
  padding: 1.3rem;
  color: var(--text);
}

.author-eeat,
.editorial-note {
  padding: 1.3rem;
  color: var(--text);
}

.author-eeat + .editorial-note {
  margin-top: 1rem;
}

.author-card {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 248, 232, 0.45), rgba(224, 203, 156, 0.42));
}

.author-card img {
  width: 88px;
  height: 88px;
  max-width: none;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(141, 100, 32, 0.24);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.author-info h3,
.editorial-note h2,
.author-eeat h2 {
  margin-bottom: 0.75rem;
}

.author-info p:last-child,
.editorial-note p:last-child {
  margin-bottom: 0;
}

.author-box__avatar {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  font-family: "Cinzel", serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #2b1a0a;
  background:
    radial-gradient(circle at 30% 30%, #ffefb7, #d6a73c 60%, #855d19 100%);
  box-shadow: inset 0 1px 0 rgba(255, 248, 213, 0.5);
}

.faq {
  padding-bottom: 3rem;
}

.faq .section-heading h2 {
  color: var(--text-light);
}

.faq .section-heading .bookofra-kicker {
  color: var(--gold-strong);
}

.faq-item + .faq-item {
  margin-top: 1rem;
}

.faq-item {
  padding: 1rem 1.1rem;
}

.faq-item p {
  margin: 0.9rem 0 0;
}

.site-footer {
  border-top: 1px solid rgba(235, 199, 92, 0.18);
  background:
    linear-gradient(180deg, rgba(18, 13, 8, 0.92), rgba(10, 8, 5, 0.98));
}

.site-footer__grid {
  display: grid;
  gap: 1.4rem;
  padding: 2.25rem 0 3rem;
}

.site-footer h3 {
  margin-bottom: 0.9rem;
  color: var(--surface-2);
  font-size: 1.1rem;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: var(--muted-light);
}

.site-footer a:hover,
.main-nav a:hover {
  color: #fff7e2;
}

.logo--footer img {
  height: 58px;
  max-width: 240px;
  margin-bottom: 0.75rem;
}

.site-footer ul {
  margin: 0;
  padding-left: 1.1rem;
}

@media (min-width: 700px) {
  .feature-grid,
  .casino-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .author-box {
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  .author-card {
    grid-template-columns: 88px 1fr;
    align-items: start;
  }

  .site-footer__grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
  }
}

@media (min-width: 960px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto auto;
    gap: 1.25rem;
    padding: 0.9rem 0;
  }

  .nav-toggle-label {
    display: none;
  }

  .site-header__controls {
    align-items: center;
    justify-self: auto;
  }

  .main-nav {
    grid-column: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .main-nav a {
    padding: 0.7rem 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(235, 199, 92, 0.08);
    border-radius: var(--radius-pill);
  }

  .site-header__actions {
    grid-column: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.9rem;
    margin-top: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .language-selector {
    width: 170px;
    min-height: 3rem;
  }

  .site-header__cta {
    min-height: 3rem;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
  }

  .logo img {
    height: 54px;
    width: 220px;
    max-width: 220px;
  }

  .bookofra-intro {
    padding: 3rem 0 1.4rem;
  }

  .bookofra-intro__content {
    padding: 2.3rem;
  }

  .bookofra-intro__figure {
    margin-top: 1.5rem;
  }

  .content-section {
    padding: 1.25rem 0;
  }

  .content-flow {
    padding: 2rem;
  }

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

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

}

@media (min-width: 1180px) {
  body {
    font-size: 17px;
  }

  .bookofra-container {
    width: min(calc(100% - 3rem), var(--container));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
