:root {
  --red: #A11B1E;
  --red-dark: #7E1215;
  --red-soft: #F8EAEA;
  --gold: #F7C600;
  --gold-dark: #C9A227;
  --ink: #1A1A1A;
  --text: #2C2C2C;
  --muted: #757575;
  --line: #E6E6E6;
  --bg: #FFFFFF;
  --bg-soft: #F5F5F5;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  --radius: 10px;
  --container: 1120px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Oswald", "Arial Narrow", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(161, 27, 30, 0.08), transparent 55%),
    linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 180px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--red);
  text-decoration: none;
}

a:hover {
  color: var(--red-dark);
}

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

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.65rem 0;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
}

.logo__mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.logo__mark svg {
  display: block;
  width: 48px;
  height: 48px;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo__name {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.logo__brand {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 3px solid var(--gold);
  padding-bottom: 2px;
  align-self: flex-start;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  margin-left: auto;
  flex: 1;
  min-width: 0;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.1rem;
}

.site-nav a {
  display: block;
  padding: 0.55rem 0.7rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.15rem;
  height: 3px;
  background: transparent;
  border-radius: 2px;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--red);
}

.site-nav a.is-active::after,
.site-nav a:hover::after {
  background: var(--red);
}

/* Article */
.page {
  padding: 1.75rem 0 3.5rem;
}

.article {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.article > h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.article-meta time {
  color: var(--muted);
}

.article-meta__sep {
  color: #B0B0B0;
}

.article > .article-meta + p {
  font-size: 1.08rem;
  color: var(--text);
}

.section-title,
.article h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  color: var(--ink);
  margin: 2.4rem 0 1rem;
  padding-bottom: 0.55rem;
  position: relative;
}

.article h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
}

.article h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--red);
}

.article p {
  margin: 0 0 1rem;
}

.article ul,
.article ol {
  margin: 0 0 1.2rem;
  padding-left: 1.25rem;
}

.article li {
  margin-bottom: 0.4rem;
}

.article li::marker {
  color: var(--red);
}

.article figure,
.article > p > img,
.article img {
  border-radius: 8px;
}

.article p:has(> img:only-child),
.article p:has(> img:first-child:last-child),
.content-img {
  margin: 1.25rem 0 1.5rem;
  text-align: center;
}

.article img {
  width: 100%;
  max-width: 700px;
  margin-inline: auto;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.article table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  font-size: 0.95rem;
}

.article table td,
.article table th {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.article table tr:first-child td {
  background: var(--red);
  color: #fff;
  font-weight: 700;
  border-bottom-color: var(--red-dark);
}

.article table tr:nth-child(even):not(:first-child) td {
  background: var(--bg-soft);
}

.article table tr:last-child td {
  border-bottom: none;
}

.article table td p {
  margin: 0;
}

.article table td:first-child {
  font-weight: 600;
  color: var(--ink);
  width: 38%;
  white-space: nowrap;
}

.article table tr:first-child td:first-child {
  color: #fff;
}

/* Casino cards accent for h3 blocks */
.casino-block {
  scroll-margin-top: 110px;
}

.article h2,
.article h3 {
  scroll-margin-top: 110px;
}

/* FAQ */
.faq-block {
  margin-top: 2.4rem;
  scroll-margin-top: 110px;
}

.faq-block > h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 1rem;
  padding-bottom: 0.55rem;
  position: relative;
}

.faq-block > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
}

.faq-item[open] {
  border-color: rgba(161, 27, 30, 0.35);
  box-shadow: 0 4px 16px rgba(161, 27, 30, 0.06);
}

.faq-question {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  background: var(--bg-soft);
  user-select: none;
}

.faq-question h3 {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  flex: 1;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -4px;
}

.faq-item[open] .faq-question {
  background: var(--red-soft);
}

.faq-item[open] .faq-question h3 {
  color: var(--red);
}

.faq-item[open] .faq-question::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq-answer {
  padding: 0.85rem 1.1rem 1.1rem;
  border-top: 1px solid var(--line);
}

.faq-answer p {
  margin: 0;
  color: var(--text);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #CFCFCF;
  padding: 2rem 0 1.5rem;
  margin-top: 1rem;
}

.site-footer a {
  color: var(--gold);
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  width: 42px;
  height: 42px;
}

.footer-brand strong {
  color: #fff;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
  max-width: 62ch;
}

.footer-copy {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: #9A9A9A;
}

.back-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
  z-index: 90;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  background: var(--red-dark);
}

/* Responsive */
@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    z-index: 2;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    flex: none;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.5rem 0 0.85rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
  }

  .site-nav a {
    padding: 0.75rem 0;
  }

  .site-nav a::after {
    display: none;
  }

  .article table td:first-child {
    white-space: normal;
    width: 42%;
  }
}

@media (max-width: 560px) {
  .logo__mark svg {
    width: 40px;
    height: 40px;
  }

  .logo__name {
    font-size: 1.15rem;
  }

  .logo__brand {
    font-size: 1.05rem;
  }

  .article {
    padding: 1rem 0.9rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .page {
    padding-top: 0;
  }
}
