/* Visual system matches the Casino Trainer product page
   (public /casino-trainer/site.css): felt, gold, system type, store pills.
   Drill-only rules live below that chrome. Cards are vector SVG. */

:root {
  color-scheme: dark;
  --bg: #08261c;
  --card: #0f3527;
  --fg: #f4f1e8;
  --muted: #b9cbc0;
  --gold: #f0c35a;
  --border: rgba(240, 195, 90, 0.25);
  --correct: #3fa37a;
  --mistake: #e0913a;
  --felt: #061f16;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  transform: translateY(-120%);
  background: var(--gold);
  color: #1a1208;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 2;
}

.skip:focus { transform: none; }

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.25rem;
}

.top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.top a.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
}

.top a.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.top nav a { text-decoration: none; }

.crumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1rem 0 0.25rem;
}

.crumbs a { color: var(--muted); }

h1 {
  font-size: clamp(1.7rem, 4vw, 2rem);
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
}

h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.6rem;
  color: var(--gold);
}

h3 { font-size: 1.1rem; margin: 1.4rem 0 0.4rem; }

.lede { font-size: 1.1rem; }

.note,
.rules,
.cta,
.result,
.verdict {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.note,
.rules,
.cta,
.result {
  padding: 0.8rem 1rem;
}

.note { color: var(--muted); font-size: 0.95rem; }

.rules { margin: 1rem 0; }

.rules ul,
.result ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.rules li + li,
.result li + li { margin-top: 0.25rem; }

.felt {
  background: var(--felt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 12px 18px;
  margin: 12px 0;
}

.seat + .seat { margin-top: 16px; }

.seat-label {
  margin: 0 0 8px;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.cards-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bj-card {
  width: 84px;
  max-width: 40vw;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28));
}

.readout {
  margin: 8px 0 0;
  text-align: center;
  color: var(--fg);
}

#progress,
#focus-note,
.keys {
  color: var(--muted);
  font-size: 0.95rem;
}

.keys kbd,
.actions kbd {
  font-family: inherit;
  font-weight: 700;
  color: var(--gold);
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.actions button,
#next,
#replay {
  min-height: 48px;
  font: inherit;
  font-weight: 700;
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}

.actions button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.actions button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.actions button[data-action="surrender"] { grid-column: 1 / -1; }

#next,
#replay {
  width: 100%;
  margin-top: 10px;
  background: var(--gold);
  color: #1a1208;
  border-color: var(--gold);
}

.hint { color: var(--muted); font-size: 0.92rem; }

#feedback:empty { display: none; }

.verdict {
  margin-top: 12px;
  padding: 0.85rem 1rem;
}

.verdict-correct { border-color: var(--correct); }

.verdict-incorrect { border-color: var(--mistake); }

.verdict p { margin: 0; }

.verdict-mark {
  display: inline-block;
  min-width: 1.4em;
  font-weight: 800;
}

.verdict-correct .verdict-mark { color: var(--correct); }

.verdict-incorrect .verdict-mark { color: var(--mistake); }

.verdict-body { margin-top: 0.45rem !important; }

.cta { margin-top: 1.5rem; }

.cta h2 { margin-top: 0; }

.stores {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1rem 0 0.25rem;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: #1a1208;
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  min-height: 48px;
}

.store svg { width: 20px; height: 20px; flex: none; }

.faq dt { font-weight: 700; margin-top: 1rem; }

.faq dd { margin: 0.25rem 0 0; }

.sources { color: var(--muted); font-size: 0.95rem; }

footer {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer a { color: var(--muted); }

footer p { margin: 0.35rem 0; }

@media (min-width: 700px) {
  .bj-card { width: 112px; max-width: none; }
  .actions { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .actions button[data-action="surrender"] { grid-column: auto; }
  .felt { padding: 22px 20px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .bj-card { filter: none; }
}
