/* Shared preview styles. System fonts only. No external CSS or fonts. */
:root {
  --bg: #0a0a0a;
  --card: #161616;
  --text: #f5f5f5;
  --muted: #b3b3b3;
  --line: #2a2a2a;
  --red: #e01020;
  --book: #1F7A4D;
  --book-hover: #18633e;
  --focus: #4ad48a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 8px;
  top: 8px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  z-index: 10;
}

.preview-banner {
  background: #2a1a00;
  color: #f3d48a;
  text-align: center;
  font-size: 0.8rem;
  padding: 8px 12px;
  letter-spacing: 0.01em;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 8px;
  text-align: center;
}

.site-header img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 90vw;
}

.site-header .brand {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 16px 48px;
}

h1 {
  font-size: 1.8rem;
  line-height: 1.2;
  margin: 8px 0 12px;
  text-align: center;
}

.intro {
  max-width: 40rem;
  margin: 0 auto 24px;
  text-align: center;
  color: var(--muted);
  line-height: 1.5;
  font-size: 1rem;
}

.game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .game-grid { grid-template-columns: 1fr 1fr; }
}

.game-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-card h2 {
  margin: 0;
  font-size: 1.15rem;
}

.game-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  flex: 1;
}

.play-link, .book-btn, .back-link, .btn-secondary {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  padding: 12px 18px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}

.play-link, .book-btn {
  background: var(--book);
  color: #fff;
}

.play-link:hover, .book-btn:hover,
.play-link:focus-visible, .book-btn:focus-visible {
  background: var(--book-hover);
}

.play-link:focus-visible, .book-btn:focus-visible, .back-link:focus-visible, .btn-secondary:focus-visible, button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.btn-secondary {
  background: #333;
  color: #fff;
}

.btn-secondary:hover { background: #444; }

.back-link {
  background: transparent;
  color: var(--muted);
  padding: 8px 0;
  font-weight: 600;
  font-size: 0.9rem;
}

.back-link:hover { color: #fff; }

.end-cta {
  display: none;
  margin-top: 16px;
}

.end-cta.is-visible { display: block; }

.game-shell {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 16px 40px;
}

.game-shell h1, .game-shell h3 {
  text-align: center;
  margin: 0 0 8px;
}

.sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 16px;
  line-height: 1.4;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 8px 16px 32px;
}

.site-footer a { color: #d0d0d0; }

.is-hidden { display: none !important; }

button:disabled { cursor: default; opacity: 0.7; }
