@import url("https://fonts.googleapis.com/css2?family=Karla:wght@400;600;700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  --bg: #efe8da;
  --ink: #1a2433;
  --muted: #5c6572;
  --accent: #7a2e3a;
  --paper: #fffdf8;
  --line: rgba(26, 36, 51, 0.14);
  --display: "Libre Baskerville", Georgia, serif;
  --body: "Karla", sans-serif;
  --wrap: min(1360px, calc(100% - 2.5rem));
  --prose: min(1200px, 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background:
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(122,46,58,.04) 80px),
    radial-gradient(900px 420px at 0% 0%, rgba(122,46,58,.08), transparent 60%),
    var(--bg);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--ink); color: #fff; padding: .5rem 1rem; }
.wrap { width: var(--wrap); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(239, 232, 218, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.9rem 0; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand-logo { border-radius: 8px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.brand-tag { font-size: .75rem; color: var(--muted); }
.site-nav { display: flex; flex-wrap: wrap; gap: .75rem 1.1rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--accent); }
.nav-toggle { display: none; font: inherit; border: 1px solid var(--line); background: var(--paper); padding: .45rem .85rem; cursor: pointer; }

.hero, .page-hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper), transparent);
}
.hero-inner { padding: 4rem 0 3.2rem; text-align: center; }
.eyebrow {
  letter-spacing: .16em; text-transform: uppercase; font-size: .72rem;
  color: var(--accent); font-weight: 700; margin: 0 0 .8rem;
}
.hero h1, .page-hero h1 {
  font-family: var(--display); font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.1; margin: 0 auto .9rem; max-width: 14ch;
}
.lede { margin: 0 auto; max-width: 42ch; color: var(--muted); font-size: 1.15rem; }

.site-main { padding: 2.75rem 0 4.5rem; }
.literary { display: flex; justify-content: center; }
.content-panel {
  width: var(--prose);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: 0 24px 60px rgba(26,36,51,.06);
  position: relative;
}
.content-panel::before {
  content: "";
  position: absolute; left: 1.25rem; top: 1.25rem; bottom: 1.25rem;
  width: 2px; background: var(--accent); opacity: .35;
}

.prose { font-size: 1.08rem; }
.prose > *:first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3 {
  font-family: var(--display); line-height: 1.25; color: var(--ink);
  margin: 2rem 0 .85rem;
}
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.55rem; color: var(--accent); }
.prose h3 { font-size: 1.25rem; }
.prose p { margin: 0 0 1.05rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.2rem; }
.prose li { margin: .35rem 0; }
.prose img { margin: 1.4rem auto; border: 1px solid var(--line); }
.prose blockquote {
  margin: 1.5rem 0; padding: .2rem 0 .2rem 1.2rem;
  border-left: 3px solid var(--accent); color: var(--muted); font-style: italic;
}

.site-footer {
  margin-top: 1rem;
  background: #1a2433;
  color: #d7d2c8;
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 2rem;
  padding: 2.75rem 0 2rem;
}
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand strong { display: block; color: #fff; font-family: var(--display); font-size: 1.2rem; }
.footer-brand p, .footer-note p { margin: .35rem 0 0; color: #b7b1a6; font-size: .95rem; }
.footer-label {
  margin: 0 0 .7rem; text-transform: uppercase; letter-spacing: .12em;
  font-size: .7rem; color: #f0c3cb; font-weight: 700;
}
.footer-links nav { display: flex; flex-direction: column; gap: .45rem; }
.footer-links a { color: #ece7dc; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem 0 1.4rem; font-size: .85rem; color: #9d968a;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; flex-direction: column; }
  .site-nav.is-open { display: flex; }
  .content-panel::before { display: none; }
}
@media (max-width: 560px) {
  :root { --wrap: min(1360px, calc(100% - 1.25rem)); }
  .brand-tag { display: none; }
  .hero-inner { padding: 2.8rem 0 2.2rem; }
}
/* === FIX: short brand + working footer === */

.site-footer {
  position: relative;
  z-index: 5;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: 2.2rem 0 1.4rem;
}
.footer-brand { display: flex; }
.footer-home {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.footer-home strong { font-size: 1.15rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff !important;
  background: rgba(255,255,255,0.08);
  transition: background .15s ease, transform .15s ease;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1rem 0 1.35rem;
  font-size: 0.85rem;
  opacity: 0.85;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.brand-tag { display: none !important; }
.footer-links a{border-color:rgba(255,255,255,.2);}
.brand-name{font-family:var(--display);}
/* === POLISH V2 === */

/* polish v2 */
:root { --prose: min(1200px, 100%) !important; }
.site-main .wrap,
.literary,
.cinema-frame {
  display: flex !important;
  justify-content: center;
  width: var(--wrap);
  margin-inline: auto;
}
.shell {
  width: var(--wrap);
  margin-inline: auto;
}
.content-panel,
.prose.content-panel,
.care-card {
  width: min(960px, 100%) !important;
  max-width: 1200px !important;
  margin-inline: auto;
}
.prose { font-size: 1.1rem; }
.prose h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin: 0 0 1rem; line-height: 1.2; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin: 2rem 0 .85rem; line-height: 1.25; }
.prose h3 { font-size: 1.22rem; margin: 1.5rem 0 .65rem; }
.prose p, .prose li { line-height: 1.75; }
.prose ul.story-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.prose ul.story-list li { margin: 0; border-bottom: 1px solid rgba(127,127,127,.22); }
.prose ul.story-list a {
  display: block; padding: 1rem .15rem; text-decoration: none; font-weight: 700;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .98rem;
  display: table;
}
.prose th, .prose td {
  border: 1px solid rgba(127,127,127,.28);
  padding: .75rem .9rem;
  text-align: left;
  vertical-align: top;
}
.prose th { font-weight: 700; }
.prose tr:nth-child(even) td { background: rgba(127,127,127,.07); }
.prose blockquote {
  margin: 1.4rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid currentColor;
}
.prose blockquote cite {
  display: block; margin-top: .55rem; font-style: normal; opacity: .75; font-size: .92rem;
}
.site-footer {
  position: relative !important;
  z-index: 30 !important;
  clear: both;
  margin-top: 2rem;
}
.footer-grid {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 2rem 0 1.25rem !important;
}
.footer-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .5rem !important;
}
.footer-links a {
  display: inline-flex !important;
  align-items: center !important;
  padding: .65rem 1.05rem !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  color: #fff !important;
  background: rgba(255,255,255,.14) !important;
}
.footer-links a:hover { background: rgba(255,255,255,.24) !important; }
.footer-home {
  display: inline-flex !important;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: inherit;
}
.brand-tag, .footer-note, .footer-label { display: none !important; }
@media (max-width: 700px) {
  .footer-grid { flex-direction: column; align-items: flex-start; }
}
.prose h2{color:var(--accent);}


/* === premium tables v20260721e === */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.6rem 0;
  border-radius: 14px;
  border: 1px solid rgba(127,127,127,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.04));
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
.table-scroll table {
  margin: 0;
  min-width: 640px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  display: table;
  font-size: .95rem;
}
.prose .table-scroll table,
.prose table.premium,
.prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.prose th,
.prose td {
  border: none;
  border-bottom: 1px solid rgba(127,127,127,.18);
  padding: .85rem 1rem;
  text-align: left;
  vertical-align: middle;
}
.prose thead th,
.prose tr:first-child th {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: .95rem 1rem;
  border-bottom: 1px solid rgba(127,127,127,.28);
  background: rgba(127,127,127,.1);
}
.prose tbody tr:last-child td { border-bottom: none; }
.prose tbody tr:hover td { background: rgba(127,127,127,.08); }
.prose tr:nth-child(even) td { background: rgba(127,127,127,.04); }

/* Casino offers table */
.table-offers { min-width: 920px !important; }
.casino-cell {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 160px;
}
.casino-logo {
  /* superseded by lists + logo polish */
}
.casino-name { font-weight: 700; line-height: 1.2; }
.payout-pill {
  display: inline-block;
  padding: .28rem .65rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  background: rgba(127,127,127,.14);
  white-space: nowrap;
}
.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .55rem .9rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.btn-play:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-play:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.theme-helencastor .prose thead th,
.theme-helencastor .prose tr:first-child th { color: #7a2e3a; background: rgba(122,46,58,.08); }
.theme-helencastor .btn-play {
  color: #fff; background: linear-gradient(135deg, #9a4454, #7a2e3a);
}
.theme-helencastor .table-scroll { border-color: rgba(122,46,58,.18); }

/* === wider containers v20260721f === */
:root {
  --wrap: min(1360px, calc(100% - 2.5rem)) !important;
  --prose: min(1200px, 100%) !important;
}
.content-panel,
.prose.content-panel,
.care-card {
  max-width: 1200px !important;
  width: min(1200px, 100%) !important;
}
.cinema-frame,
.site-main .wrap,
.shell.wrap {
  width: var(--wrap) !important;
  max-width: none;
}
.table-offers { min-width: 860px !important; }
@media (max-width: 560px) {
  :root { --wrap: min(1360px, calc(100% - 1.25rem)) !important; }
}


/* === lists + logo polish v20260721h === */
.casino-logo {
  width: 72px !important;
  height: 48px !important;
  object-fit: contain;
  flex: 0 0 auto;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.casino-cell { gap: .9rem; }
.casino-name { font-size: 1.02rem; }

.prose ul,
.prose ol {
  list-style: none;
  padding-left: 0;
  margin: 1.1rem 0 1.4rem;
}
.prose ul > li,
.prose ol > li {
  position: relative;
  margin: 0 0 .7rem;
  padding: .55rem .85rem .55rem 2.35rem;
  border-radius: 10px;
  line-height: 1.55;
  border: 1px solid rgba(127,127,127,.16);
  background: rgba(127,127,127,.05);
}
.prose ul > li::before,
.prose ol > li::before {
  position: absolute;
  left: .75rem;
  top: .72rem;
  width: 1.05rem;
  height: 1.05rem;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  border-radius: 999px;
}
.prose ul > li::before {
  content: "";
  background: currentColor;
  opacity: .85;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M6.5 11.2 3.3 8l1.1-1.1 2.1 2.1 5-5L12.6 5.1z'/%3E%3C/svg%3E") center / 70% no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M6.5 11.2 3.3 8l1.1-1.1 2.1 2.1 5-5L12.6 5.1z'/%3E%3C/svg%3E") center / 70% no-repeat;
  background: currentColor;
}
.prose ol { counter-reset: prose-ol; }
.prose ol > li { counter-increment: prose-ol; }
.prose ol > li::before {
  content: counter(prose-ol);
  color: #fff;
  background: currentColor;
  color: #111;
  font-size: .7rem;
}
.prose ul ul > li,
.prose ol ol > li,
.prose ul ol > li,
.prose ol ul > li {
  margin-top: .45rem;
  background: transparent;
  border-style: dashed;
}
.prose ul.story-list > li {
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
}
.prose ul.story-list > li::before { display: none; }

.theme-helencastor .prose ul > li,
.theme-helencastor .prose ol > li {
  border: none;
  background: transparent;
}
.theme-helencastor .prose ul > li::before { background-color: #7a2e3a; }
.theme-helencastor .prose ol > li::before { background: #7a2e3a; color: #fff; }

/* === list borderless v20260721j === */
.prose ul > li,
.prose ol > li {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding-left: 2.1rem !important;
  padding-top: .2rem !important;
  padding-bottom: .2rem !important;
  padding-right: 0 !important;
  border-radius: 0 !important;
}
.prose ul > li::before,
.prose ol > li::before {
  top: .35rem !important;
}

/* === helen article TOC v20260721n === */
.theme-helencastor.layout-article-toc .shell.wrap {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  width: var(--wrap) !important;
  max-width: none;
}
.theme-helencastor.layout-article-toc .side-rail {
  position: sticky;
  top: 1.25rem;
  align-self: start;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1rem 0.85rem;
  border-radius: 12px;
  background: rgba(122,46,58,.05);
  border: 1px solid rgba(122,46,58,.14);
}
.theme-helencastor .rail-title {
  margin: 0 0 .75rem;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #7a2e3a;
}
.theme-helencastor .rail-toc {
  display: flex;
  flex-direction: column;
  gap: .12rem;
}
.theme-helencastor .rail-toc a {
  display: block;
  padding: .38rem .5rem;
  border-radius: 8px;
  font-size: .86rem;
  line-height: 1.35;
  text-decoration: none;
  color: inherit;
  opacity: .88;
  border-left: 2px solid transparent;
}
.theme-helencastor .rail-toc a:hover {
  opacity: 1;
  background: rgba(122,46,58,.1);
  border-left-color: #7a2e3a;
}
.theme-helencastor .rail-toc a.toc-sub {
  padding-left: 1.05rem;
  font-size: .8rem;
  opacity: .72;
}
.theme-helencastor.layout-article-toc .content-panel {
  width: 100% !important;
  max-width: none !important;
}
.theme-helencastor .page-hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.4rem) !important;
  line-height: 1.2 !important;
  max-width: none !important;
  text-transform: none !important;
  letter-spacing: .01em !important;
}
.theme-helencastor .prose h2[id],
.theme-helencastor .prose h3[id] { scroll-margin-top: 1.25rem; }
.theme-helencastor span.btn-play {
  cursor: default; pointer-events: none; user-select: none;
}
.theme-helencastor .payout-pill {
  display: inline-block;
  padding: .28rem .65rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  background: rgba(122,46,58,.12);
  color: #7a2e3a;
  white-space: nowrap;
}
@media (max-width: 960px) {
  .theme-helencastor.layout-article-toc .shell.wrap {
    grid-template-columns: 1fr;
  }
  .theme-helencastor.layout-article-toc .side-rail {
    position: relative;
    top: 0;
    max-height: none;
  }
}

/* === themed TOC scroll v20260721p === */
.theme-helencastor .side-rail {
  scrollbar-width: thin;
  scrollbar-color: rgba(122,46,58,.55) rgba(122,46,58,.08);
}
.theme-helencastor .side-rail::-webkit-scrollbar {
  width: 6px;
}
.theme-helencastor .side-rail::-webkit-scrollbar-track {
  background: rgba(122,46,58,.08);
  border-radius: 999px;
  margin: 6px 0;
}
.theme-helencastor .side-rail::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #9a4454, #7a2e3a);
  border-radius: 999px;
}
.theme-helencastor .side-rail::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #b05566, #8a3644);
}

