/* brokiecasino.com: the landing page and the legal pages (main/site.py). No scripts. */
@font-face {
  font-family: "Casino Sans";
  src: url("../miniapp/fonts/dejavu-sans-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  --felt: #0d211c; --felt-deep: #081411; --felt-edge: #040a08;
  --text: #f4f1e8; --muted: #a9bab2; --faint: #72867f; --line: rgb(255 255 255 / 0.09);
  --gold: #f5c95a;
  --display: "Casino Sans", "DejaVu Sans", Verdana, system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --gutter: 20px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
/* The felt spans the whole page: painted on the root, which covers the full document height. */
html {
  min-height: 100%;
  background:
    radial-gradient(90% 900px at 70% 0%, rgb(46 104 84 / 0.42) 0%, transparent 70%),
    linear-gradient(180deg, var(--felt) 0px, var(--felt-deep) 900px, var(--felt-edge) 100%),
    var(--felt-edge);
}
body { margin: 0; color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--gold); }
a:hover { color: #ffe08a; }
.wrap { width: min(100% - 2 * var(--gutter), 1080px); margin-inline: auto; }

/* Header: coin mark and wordmark on the left, links on the right, one centre line. */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font: 700 15px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; }
.brand img { width: 34px; height: 34px; display: block; }
.brand:hover { color: var(--text); }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }

/* Landing hero: copy on the left, Cashley standing on the right. */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 400px); gap: 48px; align-items: center;
  min-height: min(620px, calc(100vh - 76px)); padding: 8px 0 12px;
}
.eyebrow { margin: 0 0 14px; color: var(--gold); font: 700 12px/1 var(--display); letter-spacing: 0.22em; text-transform: uppercase; }
.hero h1 { margin: 0; font: 700 clamp(36px, 5.4vw, 60px)/1.05 var(--display); letter-spacing: -0.02em; }
.hero h1 span { color: var(--gold); }
.lede { margin: 20px 0 28px; max-width: 32em; color: var(--muted); font-size: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 14px; font: 700 16px/1 var(--display); text-decoration: none; }
.btn.gold { color: #2a1d05; background: linear-gradient(180deg, #ffe08a, var(--gold) 55%, #d9a53c); box-shadow: 0 10px 28px rgb(245 201 90 / 0.22); }
.btn.gold:hover { color: #2a1d05; filter: brightness(1.05); }
.btn.quiet { color: var(--text); background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.14); }
.btn.quiet:hover { color: var(--text); background: rgb(255 255 255 / 0.1); }
.btn svg { width: 22px; height: 22px; flex: none; }
.note { margin: 16px 0 0; color: var(--faint); font-size: 13px; }

.hero-art { position: relative; align-self: end; display: flex; justify-content: center; }
.hero-art::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 18%; bottom: 8%; z-index: -1;
  background: radial-gradient(closest-side, rgb(245 201 90 / 0.16), transparent);
}
.hero-art img {
  display: block; width: 100%; height: auto; max-height: min(600px, calc(100vh - 110px)); object-fit: contain; object-position: bottom;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent); mask-image: linear-gradient(to bottom, #000 80%, transparent);
}

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.tile { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgb(6 14 12 / 0.62); }
.tile b { display: block; margin-bottom: 6px; color: var(--gold); font: 700 21px/1.2 var(--display); }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }

.fair { margin-top: 28px; margin-bottom: 48px; padding: 18px 22px; border-left: 3px solid var(--gold); border-radius: 0 14px 14px 0; background: rgb(245 201 90 / 0.06); color: var(--muted); font-size: 15px; }
.fair p { margin: 0; }
.fair strong { color: var(--text); }

/* Legal pages */
.doc { width: min(100% - 2 * var(--gutter), 780px); margin: 12px auto 48px; padding: clamp(22px, 4vw, 44px); border: 1px solid var(--line); border-radius: 22px; background: rgb(6 14 12 / 0.74); }
.doc h1 { margin: 0 0 4px; font: 700 clamp(28px, 5vw, 38px)/1.15 var(--display); }
.doc .updated { margin: 0 0 22px; color: var(--faint); font-size: 14px; }
.doc h2 { margin: 30px 0 8px; color: var(--gold); font: 700 18px/1.3 var(--display); }
.doc p, .doc li { color: #d9dfd6; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .box { padding: 14px 16px; border: 1px solid rgb(245 201 90 / 0.35); border-radius: 14px; background: rgb(245 201 90 / 0.06); }
.doc .box p { margin: 0; }

.foot { padding: 26px 0 36px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }
.foot p { margin: 0; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 24px; }
  .tiles { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .top { height: 64px; }
  .brand { font-size: 13px; letter-spacing: 0.12em; gap: 10px; }
  .brand img { width: 30px; height: 30px; }
  .top nav { gap: 14px; }
  .hero { grid-template-columns: 1fr; gap: 0; min-height: 0; padding-top: 0; }
  .hero-art { order: -1; align-self: center; height: 280px; overflow: hidden; }
  .hero-art img { width: auto; height: 100%; max-height: none; object-fit: cover; object-position: top;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
  .hero-art::before { top: 10%; bottom: 0; }
  .hero h1 { font-size: 36px; }
  .lede { font-size: 16px; margin: 14px 0 22px; }
  .btn { width: 100%; }
}
