:root {
  --green-dark: #0d3d2b;
  --green-mid: #1a5c40;
  --green-light: #2e7d5a;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --cream: #f5f0e8;
  --text-dark: #1a1a1a;
  --text-mid: #3d3d3d;
  --text-light: #6b6b6b;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-dark);
  background: var(--cream);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
}

a {
  color: var(--green-mid);
  text-decoration-color: rgba(201, 168, 76, 0.65);
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: var(--green-dark);
}

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

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
  line-height: 1.16;
  overflow-wrap: break-word;
}

h1 {
  color: var(--green-dark);
  font-size: 2.6rem;
  margin: 0 0 18px;
}

h2 {
  color: var(--green-dark);
  font-size: 2rem;
  margin: 46px 0 14px;
}

h3 {
  color: var(--green-dark);
  font-size: 1.5rem;
  margin: 30px 0 10px;
}

h4 {
  color: var(--green-mid);
  font-size: 1.2rem;
}

p,
ul,
ol,
dl,
table {
  margin-top: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 1000;
  background: var(--gold);
  color: var(--text-dark);
  padding: 8px 12px;
}

.skip-link:focus {
  top: 12px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 999;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(13, 61, 43, 0.98);
  box-shadow: 0 10px 25px var(--shadow);
}

.main-nav {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 74px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.main-nav.sticky {
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover,
.brand:focus {
  color: var(--gold-light);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 8px;
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: var(--white);
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
  color: var(--text-dark);
  background: var(--gold-light);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(232, 201, 106, 0.6);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--gold-light);
}

.breadcrumbs {
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 0 24px;
  color: var(--text-light);
  font-size: 0.92rem;
}

.breadcrumbs span {
  margin-left: 7px;
}

.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(13, 61, 43, 0.96), rgba(13, 61, 43, 0.72)),
    url("/images/hero-craps-table.jpg") center / cover,
    var(--green-dark);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.35;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 74px 24px 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  color: var(--gold-light);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  max-width: 760px;
}

.hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.2rem;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button,
.button-alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button {
  color: var(--text-dark);
  background: var(--gold-light);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.button-alt {
  color: var(--white);
  border: 1px solid rgba(232, 201, 106, 0.72);
}

.button:hover,
.button:focus {
  color: var(--text-dark);
  background: var(--gold);
}

.button-alt:hover,
.button-alt:focus {
  color: var(--text-dark);
  background: var(--gold-light);
}

.dice-stage {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.dice-pair {
  display: flex;
  gap: 18px;
}

.die {
  width: 92px;
  height: 92px;
  border: 3px solid var(--gold-light);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.32);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 12px;
}

.pip {
  width: 14px;
  height: 14px;
  background: var(--green-dark);
  border-radius: 50%;
  align-self: center;
  justify-self: center;
}

.dice-stage.rolling .die {
  animation: rollDice 520ms ease;
}

@keyframes rollDice {
  50% {
    transform: rotate(22deg) scale(1.08);
  }
}

.page-shell {
  max-width: 1100px;
  margin: 34px auto 70px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 42px;
  align-items: start;
}

.content-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(13, 61, 43, 0.1);
  padding: 38px;
}

.content-card > h1:first-child {
  margin-top: 0;
}

.sidebar {
  position: sticky;
  top: 98px;
}

.toc {
  display: none;
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(13, 61, 43, 0.08);
  padding: 18px 18px 14px;
  margin-bottom: 24px;
}

.toc.active {
  display: block;
}

.toc h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.toc a {
  display: block;
  padding: 6px 0;
  font-size: 0.95rem;
  text-decoration: none;
}

.ad-slot {
  text-align: center;
  margin: 24px auto;
  overflow: hidden;
}

.ad-slot img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

.ad-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  border: 1px dashed rgba(13, 61, 43, 0.36);
  border-radius: 8px;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
  text-decoration: none;
}

.ad-728x90 {
  max-width: 728px;
}

.ad-300x250 {
  max-width: 300px;
}

.ad-160x600 {
  max-width: 160px;
}

.ad-320x50 {
  max-width: 320px;
}

.inline-ad-right {
  float: right;
  margin: 4px 0 20px 28px;
}

.section-band {
  background: var(--white);
  padding: 66px 24px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.guide-card,
.review-card,
.step-card,
.callout,
.warning-box,
.cta-box,
.tip-box {
  border-radius: 8px;
}

.guide-card,
.review-card,
.step-card {
  background: var(--white);
  border: 1px solid rgba(13, 61, 43, 0.12);
  box-shadow: 0 12px 30px rgba(13, 61, 43, 0.08);
  padding: 24px;
}

.guide-card svg {
  width: 44px;
  height: 44px;
  color: var(--gold);
}

.callout,
.tip-box {
  border: 2px solid var(--gold);
  background: #fffaf0;
  padding: 22px 24px;
  margin: 30px 0;
}

.warning-box {
  border-left: 6px solid #9c2f20;
  background: #fff3ef;
  padding: 20px 24px;
  margin: 26px 0;
}

.cta-box {
  color: var(--white);
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  padding: 28px;
  margin: 34px 0;
}

.cta-box h2,
.cta-box h3 {
  color: var(--gold-light);
  margin-top: 0;
}

.feature-list li,
.check-list li {
  margin-bottom: 8px;
}

.article-image {
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(13, 61, 43, 0.14);
  margin: 16px 0 24px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(13, 61, 43, 0.1);
  margin: 22px 0 32px;
  font-size: 0.96rem;
}

th {
  background: var(--green-dark);
  color: var(--white);
  text-align: left;
}

th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid rgba(13, 61, 43, 0.11);
  vertical-align: middle;
}

tr:nth-child(even) td {
  background: var(--cream);
}

tr:last-child td {
  border-bottom: 0;
}

.glossary-list {
  display: grid;
  gap: 18px;
}

.glossary-list dt {
  color: var(--green-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.glossary-list dd {
  margin: 0 0 8px;
}

.casino-list {
  display: grid;
  gap: 22px;
}

.review-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.casino-logo {
  width: 120px;
  height: 80px;
  object-fit: contain;
  background: var(--cream);
  border-radius: 8px;
  padding: 10px;
}

.casino-logo-placeholder {
  display: grid;
  place-items: center;
  color: var(--green-dark);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.rating {
  color: var(--gold);
  font-weight: 800;
}

.faq details {
  border: 1px solid rgba(13, 61, 43, 0.14);
  border-radius: 8px;
  background: var(--white);
  padding: 14px 18px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  color: var(--green-dark);
  font-weight: 800;
}

.gold-strip {
  background: var(--gold-light);
  color: var(--text-dark);
  text-align: center;
  padding: 42px 24px;
  margin: 42px -38px -38px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.88);
  background: var(--green-dark);
  padding: 34px 24px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.site-footer h2 {
  color: var(--gold-light);
  font-size: 1.2rem;
  margin: 0 0 12px;
}

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

.footer-bottom {
  max-width: 1100px;
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
