/* Static, crawlable content pages (landing + rules + glossary). Self-contained, no JS needed.
   Theme matches the game: green felt table, gold serif display, cream text. Mobile-first. */

:root {
  --felt-1: #0e6b46;
  --felt-2: #0a4f34;
  --felt-3: #073b27;
  --ink: #f6f3ea;
  --ink-dim: rgba(246, 243, 234, 0.78);
  --gold-1: #fbe9b0;
  --gold-2: #f2c14e;
  --gold-3: #c79a37;
  --red: #ef6a6a;
  --line: rgba(255, 255, 255, 0.16);
  --panel: rgba(0, 0, 0, 0.26);
  --panel-2: rgba(0, 0, 0, 0.34);
  --radius: 16px;
  --maxw: 920px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: radial-gradient(ellipse at 50% 0%, var(--felt-1), var(--felt-2) 48%, var(--felt-3));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-2); text-underline-offset: 3px; }
a:hover { color: var(--gold-1); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold-2);
  color: #3a2c08;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
  z-index: 50;
}
.skip:focus { left: 0; }

/* ---- header / nav ---- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(7, 59, 39, 0.92), rgba(7, 59, 39, 0.72));
  border-bottom: 1px solid var(--line);
}
.site-head .bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  color: var(--ink);
}
.brand .suits { letter-spacing: 3px; font-size: 18px; }
.brand .suits .r { color: var(--red); }
.brand b {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; margin-left: auto; font-size: 15px; }
.nav a { color: var(--ink-dim); text-decoration: none; padding: 6px 4px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-1); }
.nav .lang { color: var(--ink-dim); border-left: 1px solid var(--line); padding-left: 12px; }
.nav .lang a[aria-current] { color: var(--gold-2); font-weight: 700; }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 13px;
  padding: 13px 22px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  color: #3a2c08;
  background: linear-gradient(180deg, #f7d271, var(--gold-2) 55%, var(--gold-3));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.08s ease, box-shadow 0.12s ease;
}
.btn:hover { color: #3a2c08; transform: translateY(-1px); box-shadow: 0 9px 26px rgba(0, 0, 0, 0.42); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
  font-weight: 600;
}
.btn.ghost:hover { color: var(--gold-1); border-color: var(--gold-3); }
.btn.xl {
  padding: 18px 46px;
  font-size: 21px;
  border-radius: 16px;
}
.btn.pulse { animation: ctaPulse 2.4s ease-in-out infinite; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(242, 193, 78, 0.5); }
  50% { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42), 0 0 0 12px rgba(242, 193, 78, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .btn.pulse { animation: none; }
}
@media (max-width: 620px) {
  .btn.xl { width: 100%; justify-content: center; padding: 18px 24px; }
}

/* ---- layout ---- */
main { max-width: var(--maxw); margin: 0 auto; padding: 8px 18px 64px; }
.crumbs { max-width: var(--maxw); margin: 0 auto; padding: 14px 18px 0; font-size: 13px; color: var(--ink-dim); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li::after { content: "›"; margin-left: 8px; opacity: 0.5; }
.crumbs li:last-child::after { content: ""; }
.crumbs a { text-decoration: none; }

.hero { padding: 26px 0 10px; }
.hero-home { padding: 30px 0 6px; text-align: center; }
.hero-home .lead { margin: 16px auto 0; }
.hero-home .hero-cta { justify-content: center; }
h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.1;
  margin: 6px 0 12px;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--ink); max-width: 64ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 6px; }
.hero-cta.big { margin: 22px 0 0; gap: 14px; align-items: center; }
.cta-note { margin: 12px auto 0; font-size: 14px; color: var(--ink-dim); letter-spacing: 0.01em; }

h2 {
  font-family: var(--serif);
  font-size: clamp(23px, 3.4vw, 30px);
  margin: 38px 0 10px;
  color: var(--gold-1);
  scroll-margin-top: 80px;
}
h3 { font-size: 20px; margin: 22px 0 6px; color: var(--ink); }
section > p:first-of-type, .answer { font-size: 18px; }
.answer {
  border-left: 3px solid var(--gold-3);
  padding: 2px 0 2px 16px;
  margin: 10px 0 14px;
  color: var(--ink);
}
p { max-width: 70ch; }
strong, b { color: #fff; }

/* ---- game cards on landing ---- */
.games { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin: 24px 0 8px; }
@media (max-width: 620px) { .games { grid-template-columns: 1fr; } }
.game-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.15s ease, transform 0.08s ease;
}
.game-card:hover { border-color: var(--gold-3); transform: translateY(-2px); color: var(--ink); }
.game-card .big { font-family: var(--serif); font-size: 26px; color: var(--gold-1); }
.game-card .suits { font-size: 22px; letter-spacing: 4px; }
.game-card .suits .r { color: var(--red); }
.game-card p { font-size: 15px; color: var(--ink-dim); margin: 8px 0 0; }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; min-width: 320px; }
caption { text-align: left; font-size: 14px; color: var(--ink-dim); padding: 10px 12px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { background: var(--panel-2); color: var(--gold-1); font-size: 14px; letter-spacing: 0.02em; }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.04); }
td .s { color: var(--red); }

ul, ol { max-width: 70ch; }
li { margin: 5px 0; }

/* ---- FAQ ---- */
.faq { margin-top: 14px; }
.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 16px;
  margin: 10px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  padding: 12px 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "＋"; color: var(--gold-2); margin-right: 10px; font-weight: 700; }
.faq details[open] summary::before { content: "－"; }
.faq details > p { padding: 0 0 14px; margin: 0; color: var(--ink-dim); }

/* ---- callout ---- */
.note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-2);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 18px 0;
  font-size: 16px;
}

/* ---- footer ---- */
.site-foot {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--ink-dim);
  font-size: 14px;
}
.site-foot .bar { max-width: var(--maxw); margin: 0 auto; padding: 26px 18px; display: flex; gap: 18px 28px; flex-wrap: wrap; justify-content: space-between; }
.site-foot a { color: var(--ink-dim); text-decoration: none; }
.site-foot a:hover { color: var(--gold-1); }
.site-foot .updated { font-variant-numeric: tabular-nums; }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-list a { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
