@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700;800;900&family=Archivo:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --bg: #0b0b0d;
  --bg-2: #141417;
  --surface: #1b1b20;
  --line: rgba(243, 239, 230, 0.12);
  --ink: #f3efe6;
  --muted: #a9a59c;
  --red: #e23b2e;
  --gold: #f2b418;
  --purple: #8a5cf0;
  --green: #3fbf7f;
  --font-display: 'Big Shoulders Display', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Archivo', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --max: 1180px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background: url('assets/wall-texture.webp') center / cover no-repeat;
  opacity: 0.28;
  pointer-events: none;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0 0 0.4em;
  font-weight: 900;
}
h1 { font-size: clamp(3rem, 9vw, 7.5rem); }
h2 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h4 { font-size: 1.3rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  padding: 3px 10px;
  transform: rotate(-1.5deg);
  margin-bottom: 14px;
}
.tag.red { color: var(--red); border-color: var(--red); }
.tag.purple { color: var(--purple); border-color: var(--purple); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 40px; height: 40px; border-radius: 8px; display: block; }
.brand b { font-weight: inherit; white-space: nowrap; }
.brand span { color: var(--red); }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a {
  color: var(--ink); font-weight: 500; font-size: 0.95rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); text-decoration: none; }
.nav .cta { background: var(--red); color: #fff; padding: 9px 16px; border-bottom: 0; font-weight: 600; }
.nav .cta:hover { background: #c7301f; }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line); color: var(--ink);
  font: inherit; padding: 8px 12px; cursor: pointer;
}
@media (max-width: 860px) {
  .brand { font-size: 1.15rem; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; }
  .menu-btn { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 66px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .nav .cta { margin: 12px 20px 16px; text-align: center; }
}
@media (max-width: 380px) {
  .brand { font-size: 1rem; gap: 6px; }
  .brand-mark { width: 28px; height: 28px; }
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  height: clamp(600px, 50vw, 900px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,13,0.15) 0%, rgba(11,11,13,0.55) 45%, rgba(11,11,13,0.96) 100%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 180px; padding-bottom: 48px; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); margin-bottom: 0.25em; max-width: 14ch; text-shadow: 0 4px 30px rgba(0,0,0,0.7); }
.hero h1 .accent { color: var(--gold); }
.hero p.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 58ch; color: var(--ink); text-shadow: 0 2px 12px rgba(0,0,0,0.8); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-block; font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 1.15rem; padding: 13px 22px; border: 2px solid var(--ink);
  color: var(--ink); background: transparent; cursor: pointer; line-height: 1;
}
.btn:hover { background: var(--ink); color: var(--bg); text-decoration: none; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: #c7301f; border-color: #c7301f; color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #111; }
.btn.gold:hover { background: #d9a013; border-color: #d9a013; }

/* Sections */
section { padding: 80px 0; }
section.tight { padding: 48px 0; }
section.alt { background: rgba(20, 20, 23, 0.82); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.grid { display: grid; gap: 22px; }
.grid > *, .split > *, .tool-grid > * { min-width: 0; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid.four { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: var(--radius);
  position: relative;
}
.card h3 { margin-top: 0; }
a.card { display: flex; flex-direction: column; }
a.card:hover { text-decoration: none; border-color: var(--gold); }
a.card p { flex: 1; }
a.card .btn { align-self: flex-start; }
.card .num {
  font-family: var(--font-display); font-weight: 900; font-size: 3.2rem; line-height: 1; color: var(--red);
  margin-bottom: 8px;
}
.card.gold .num { color: var(--gold); }
.card.purple .num { color: var(--purple); }

/* Stats */
.stat { padding: 18px 20px; border-left: 3px solid var(--gold); background: rgba(27,27,32,0.8); }
.stat .label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.stat .value { font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; line-height: 1.05; }
.stat.red { border-color: var(--red); }
.stat.green { border-color: var(--green); }
.stat.purple { border-color: var(--purple); }
.stat.gold { border-color: var(--gold); }

/* Murals */
.mural-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 960px) { .mural-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .mural-grid { grid-template-columns: 1fr; } }
.mural { position: relative; overflow: hidden; border: 1px solid var(--line); background: #000; }
.mural img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; transition: transform .5s ease; }
.mural:hover img { transform: scale(1.04); }
.mural .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 18px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.88) 70%);
}
.mural .cap .who { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 1.7rem; line-height: 1; }
.mural .cap .who small { display: block; font-size: 0.95rem; color: var(--gold); letter-spacing: 0.08em; margin-bottom: 4px; }
.mural .cap p { margin: 8px 0 0; font-size: 0.95rem; color: var(--ink); }

/* Split */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split img { border: 1px solid var(--line); }

/* Rules list */
.rules { counter-reset: r; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.rules li {
  counter-increment: r; display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.rules li::before {
  content: counter(r, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--gold);
}
.rules li strong { display: block; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.4rem; margin-bottom: 4px; }
.rules li p { margin: 0; color: var(--muted); }

/* Tools */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .tool-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.field .hint { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.field input[type=number], .field input[type=text], .field input[type=email], .field select, .field textarea {
  width: 100%; background: #0f0f12; border: 1px solid rgba(243,239,230,0.22); color: var(--ink);
  font: inherit; font-size: 1.05rem; padding: 12px 14px; border-radius: 4px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.field input[type=range] { width: 100%; accent-color: var(--gold); }
.inline { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .inline { grid-template-columns: 1fr; } }
.results { display: grid; gap: 12px; }
.result {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.result .k { color: var(--muted); }
.result .v { font-family: var(--font-display); font-weight: 900; font-size: 1.8rem; line-height: 1; white-space: nowrap; text-align: right; }
.result.big .v { font-size: 2.8rem; }
.result .v.pos { color: var(--green); }
.result .v.neg { color: var(--red); }
.result .v.gold { color: var(--gold); }
.callout {
  border: 1px solid var(--line); border-left: 4px solid var(--red); background: rgba(226,59,46,0.08);
  padding: 16px 18px; border-radius: 4px; margin: 20px 0; font-size: 0.97rem;
}
.callout.gold { border-left-color: var(--gold); background: rgba(242,180,24,0.08); }
.callout.green { border-left-color: var(--green); background: rgba(63,191,127,0.08); }
.callout strong { color: var(--ink); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: rgba(0,0,0,0.3); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
.W { color: var(--green); font-weight: 600; }
.L { color: var(--red); font-weight: 600; }
.P { color: var(--muted); font-weight: 600; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; border: 1px solid var(--line); color: var(--muted); }

/* Books */
.book { display: grid; grid-template-columns: 110px 1fr; gap: 22px; align-items: start; }
@media (max-width: 520px) { .book { grid-template-columns: 1fr; } }
.book .cover {
  aspect-ratio: 2 / 3; display: flex; align-items: flex-end; padding: 12px;
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase; line-height: 0.95; font-size: 1.1rem;
  border: 1px solid var(--line); color: #111;
}
.book ul { padding-left: 20px; margin: 10px 0; }
.book li { margin-bottom: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: rgba(11,11,13,0.92); padding: 48px 0 36px; font-size: 0.9rem; color: var(--muted); }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer a { color: var(--ink); }
.nowrap { white-space: nowrap; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.disclaimer { border-top: 1px solid var(--line); padding-top: 20px; font-size: 0.85rem; line-height: 1.6; }
.disclaimer strong { color: var(--ink); }

/* Misc */
.page-head { padding: 72px 0 32px; border-bottom: 1px solid var(--line); background: rgba(11,11,13,0.6); }
.page-head p { max-width: 70ch; font-size: 1.15rem; color: var(--muted); }
.notice-bar { background: var(--gold); color: #111; font-weight: 600; font-size: 0.9rem; text-align: center; padding: 8px 16px; }
.hidden { display: none !important; }
.chart-box { background: var(--surface); border: 1px solid var(--line); padding: 20px; border-radius: var(--radius); }
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.filters select, .filters input { background: #0f0f12; border: 1px solid rgba(243,239,230,0.22); color: var(--ink); font: inherit; padding: 9px 12px; border-radius: 4px; }
.legend-note { font-size: 0.85rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .mural img { transition: none; } }

/* legal pages */
.legal h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 36px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 20px; margin: 0 0 16px; }
.legal li { margin-bottom: 10px; line-height: 1.6; }
.legal li strong, .legal p strong { color: var(--ink); }
ul.plain { list-style: none; padding: 0; margin: 0 0 14px; }
ul.plain li { margin-bottom: 10px; line-height: 1.55; color: var(--muted); }
ul.plain li strong { color: var(--ink); }

/* Blackjack */
.bj-memo { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--purple); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 26px; }
.bj-memo h3 { margin: 0 0 12px; }
.bj-memo ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.bj-memo li { color: var(--muted); }
.bj-memo li strong { color: var(--ink); }
.bj-grid .card h3 { font-size: 1.25rem; }
table.bj { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 10px 0 12px; }
table.bj th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
table.bj td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.bj td:first-child { font-weight: 700; }
table.bj td, table.bj th { white-space: normal; overflow-wrap: anywhere; }
