/* Gamble Royale's web site (tools/site/build_site.py): the game's colours, the menu's gold on a dark casino red. */
@font-face {
  font-family: "Overpass";
  src: url("fonts/Overpass-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}
:root {
  --bg: #0d0909;
  --panel: #1a1011;
  --panel-2: #241416;
  --red: #7a0d16;
  --red-bright: #b3121f;
  --gold: #ffc74d;
  --gold-deep: #c98a1e;
  --text: #f1e9de;
  --dim: #b7a99a;
  --line: rgba(255, 199, 77, 0.22);
  --radius: 14px;
  --wide: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffe3a3; }
h1, h2, h3, .display {
  font-family: "Overpass", system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.12;
  margin: 0 0 0.5em;
}
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: var(--gold); }
h3 { font-size: 1.25rem; color: var(--text); }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wide), 100% - 32px); margin-inline: auto; }

/* the top bar */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 9, 9, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar .wrap { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.bar .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.bar .brand img { width: 34px; height: 34px; }
.bar .brand span { font-family: "Overpass", sans-serif; font-weight: 900; font-size: 1.1rem; letter-spacing: 0.04em; }
.bar nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.bar nav a { color: var(--dim); text-decoration: none; font-size: 0.95rem; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--gold); }

/* the hero: the Strip at night, the sign over it */
.hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: grid; place-items: center;
  text-align: center;
  padding: 72px 16px 56px;
  background: #000 center / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13,9,9,0.55) 0%, rgba(13,9,9,0.2) 45%, var(--bg) 100%);
}
.hero .logo { width: min(820px, 92vw); margin: 0 auto 18px; filter: drop-shadow(0 18px 40px rgba(0,0,0,0.7)); }
.hero .pitch { max-width: 760px; margin: 0 auto 26px; font-size: clamp(1.05rem, 2vw, 1.3rem); color: #fff; text-shadow: 0 2px 12px #000; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  background: linear-gradient(180deg, var(--red-bright), var(--red));
  border: 1px solid var(--gold-deep);
  color: #fff; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(122, 13, 22, 0.5);
}
.badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.facts-line { margin-top: 18px; color: var(--dim); font-size: 0.95rem; }

section { padding: 72px 0; }
section.alt { background: linear-gradient(180deg, var(--panel), var(--bg)); border-block: 1px solid var(--line); }
.lead { color: var(--dim); max-width: 760px; font-size: 1.08rem; }

/* the trailer */
.video { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
.video video { width: 100%; height: 100%; object-fit: cover; }

/* the features: picture and words, side by side, alternating */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding: 28px 0; }
.feature:nth-child(even) .shot { order: 2; }
.feature .shot img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.feature p { color: var(--dim); }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 18px; }
  .feature:nth-child(even) .shot { order: 0; }
}

/* the list of what's in it */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 0; margin: 28px 0 0; list-style: none; }
.points li { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.points li b { display: block; color: var(--gold); font-family: "Overpass", sans-serif; font-weight: 900; font-size: 1.05rem; margin-bottom: 4px; }
.points li span { color: var(--dim); font-size: 0.97rem; }

/* the gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 24px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.gallery img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform 0.25s ease; }
.gallery a:hover img { transform: scale(1.04); }

/* the play-money note */
.note {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--panel-2); border: 1px solid var(--gold-deep); border-radius: var(--radius);
  padding: 20px 22px; margin-top: 28px;
}
.note b { color: var(--gold); }

/* tables: the requirements, the fact sheet */
table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--gold); font-weight: 700; white-space: nowrap; }
thead th { border-bottom: 2px solid var(--gold-deep); }
.table-scroll { overflow-x: auto; }

/* the press kit's downloads */
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 20px; }
.download {
  display: block; text-decoration: none; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
}
.download:hover { border-color: var(--gold); color: var(--text); }
.download img { border-radius: 8px; margin-bottom: 10px; background: repeating-conic-gradient(#2a2020 0% 25%, #201818 0% 50%) 50% / 18px 18px; }
.download b { color: var(--gold); display: block; }
.download small { color: var(--dim); }
.button {
  display: inline-block; padding: 13px 22px; border-radius: 10px; text-decoration: none; font-weight: 700;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep)); color: #2a1503;
}
.button:hover { color: #2a1503; filter: brightness(1.08); }

/* the legal pages */
.doc { max-width: 820px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold); }
.doc h2 { font-size: 1.45rem; margin-top: 1.6em; }
.doc h3 { margin-top: 1.3em; }
.doc blockquote { margin: 0 0 1.4em; color: var(--dim); border-left: 3px solid var(--gold-deep); padding-left: 14px; }
.doc li { margin-bottom: 0.45em; }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--dim); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer nav a { color: var(--dim); }
footer nav a:hover { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img { transition: none; }
}
