/*
  Naming: BEM-ish. Blocks are plain words (.hero, .game-card),
  elements use __, modifiers use --, state is .is-*.
  No utility soup, keep it readable.
*/

:root {
  --felt: #0f3b2c;
  --felt-dark: #0a2219;
  --ink: #f3ead7;
  --ink-dim: #b9b09a;
  --gold: #d4a542;
  --gold-hi: #f0c868;
  --red: #b3332b;
  --panel: #13281f;
  --line: rgba(243, 234, 215, .14);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Karla", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body.page {
  margin: 0;
  background: var(--felt-dark);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}

a { color: var(--gold-hi); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

.notice-bar {
  background: var(--gold);
  color: #1b1408;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
}

/* header */
.site-head { border-bottom: 1px solid var(--line); background: var(--felt-dark); position: sticky; top: 0; z-index: 10; }
.site-head__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.site-head__logo { font: 800 22px var(--serif); color: var(--ink); text-decoration: none; }
.site-head__logo span { color: var(--gold); }
.site-head__nav { display: flex; gap: 20px; margin-left: auto; }
.site-head__nav a { color: var(--ink-dim); text-decoration: none; font-size: 15px; }
.site-head__nav a:hover { color: var(--ink); }
.site-head__user { display: flex; gap: 10px; align-items: center; font-size: 14px; }

/* buttons */
.btn {
  font: 600 15px var(--sans);
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-block;
}
.btn--gold { background: var(--gold); color: #1b1408; }
.btn--gold:hover { background: var(--gold-hi); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); }
.btn--lg { padding: 14px 32px; font-size: 17px; }
.btn--wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }

/* hero */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.45); }
.hero__content { position: relative; }
.hero__kicker { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; margin: 0 0 12px; }
.hero__title { font: 800 clamp(38px, 6vw, 68px)/1.05 var(--serif); margin: 0 0 18px; }
.hero__lead { max-width: 520px; color: var(--ink); margin: 0 0 28px; }

.section-title { font: 800 36px var(--serif); margin: 0 0 6px; }
.section-sub { color: var(--ink-dim); margin: 0 0 32px; }

/* games */
.games { padding: 80px 22px 40px; }
.games__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.game-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.game-card__face {
  height: 150px; border-radius: 10px; display: grid; place-items: center;
  font: 800 34px var(--serif); margin-bottom: 16px;
  background: radial-gradient(circle at 50% 40%, #1d6b4c, var(--felt));
}
.game-card__face--slot { background: radial-gradient(circle, #5c2a1e, #2a120c); color: var(--gold-hi); }
.game-card__face--rl { background: radial-gradient(circle, #3a0f0d, #120403); font-size: 26px; }
.game-card__name { font: 600 22px var(--serif); margin: 0 0 4px; }
.game-card__text { color: var(--ink-dim); margin: 0 0 18px; font-size: 15px; }

.about { padding: 50px 22px; }
.about__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; margin-top: 24px; }
.about__item b { font: 600 20px var(--serif); color: var(--gold); }
.about__item p { color: var(--ink-dim); margin: 6px 0 0; }

.disclaimer { padding-bottom: 60px; }
.disclaimer p { border: 1px solid var(--gold); border-radius: 12px; padding: 18px 22px; font-size: 15px; margin: 0; }

.site-foot { border-top: 1px solid var(--line); padding: 36px 0; font-size: 14px; color: var(--ink-dim); }
.site-foot__nav { display: flex; flex-wrap: wrap; gap: 18px; margin: 10px 0; }
.site-foot__small { font-size: 13px; }

/* modals */
.modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(5, 12, 9, .86);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal.is-open { display: flex; }
.modal__box {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 30px; width: 100%; max-width: 420px;
  max-height: 92vh; overflow: auto;
}
.modal__box--game { max-width: 760px; background: var(--felt); }
.modal__title { font: 800 26px var(--serif); margin: 0 0 10px; }
.modal__text { color: var(--ink-dim); }
.modal__row { display: flex; gap: 12px; margin-top: 20px; }
.modal__err { color: #ff8a80; margin-top: 16px; }
.modal__close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: var(--ink); font-size: 28px; cursor: pointer; }

.form__field { display: block; font-size: 14px; margin-bottom: 14px; color: var(--ink-dim); }
.form__field input {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--felt-dark);
  color: var(--ink); font: 16px var(--sans);
}
.form__check { display: flex; gap: 8px; font-size: 13px; color: var(--ink-dim); margin-bottom: 14px; }
.form__err { color: #ff8a80; font-size: 14px; min-height: 1.2em; margin: 0 0 10px; }
.form__alt { text-align: center; font-size: 14px; color: var(--ink-dim); margin: 14px 0 0; }

/* table / games */
.table-top { display: flex; justify-content: space-between; margin-bottom: 18px; padding-right: 30px; }
.table-top__title { font: 800 22px var(--serif); }
.table-top__coins b { color: var(--gold-hi); }
.table-note { text-align: center; font-size: 12px; color: var(--ink-dim); margin: 18px 0 0; }

.hand { display: flex; gap: 8px; min-height: 96px; margin: 6px 0 14px; flex-wrap: wrap; }
.hand__label { font-size: 14px; color: var(--ink-dim); }
.card {
  width: 64px; height: 92px; border-radius: 7px; background: #fbf7ee; color: #1a1a1a;
  display: grid; place-items: center; font: 800 22px var(--serif);
  box-shadow: 0 3px 8px rgba(0,0,0,.35);
}
.card--red { color: var(--red); }
.card--back { background: repeating-linear-gradient(45deg, var(--red), var(--red) 6px, #8a221c 6px, #8a221c 12px); }

.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.controls select { padding: 8px; border-radius: 8px; background: var(--felt-dark); color: var(--ink); border: 1px solid var(--line); font: 15px var(--sans); }
.result { font: 600 20px var(--serif); min-height: 30px; margin: 14px 0 0; color: var(--gold-hi); }

.reels { display: flex; gap: 12px; justify-content: center; margin: 10px 0 22px; }
.reels__cell {
  width: 110px; height: 120px; background: #fbf7ee; color: #1a1a1a; border-radius: 10px;
  display: grid; place-items: center; font-size: 54px;
}
.reels.is-spinning .reels__cell { animation: shake .12s infinite; }
@keyframes shake { 50% { transform: translateY(4px); } }

.wheel {
  width: 160px; height: 160px; margin: 0 auto 20px; border-radius: 50%;
  border: 8px solid var(--gold); display: grid; place-items: center;
  font: 800 48px var(--serif); background: var(--felt-dark);
}
.wheel--red { background: var(--red); }
.wheel--black { background: #111; }
.wheel--green { background: #1d7a45; }

/* plain text pages */
.doc { padding: 50px 22px 80px; max-width: 800px; }
.doc h1 { font: 800 40px var(--serif); }
.doc h2 { font: 600 24px var(--serif); margin-top: 32px; color: var(--gold); }
.doc p, .doc li { color: var(--ink-dim); }

@media (max-width: 760px) {
  .site-head__nav { display: none; }
  .site-head__user { margin-left: auto; }
  .reels__cell { width: 80px; height: 90px; font-size: 40px; }
}
