/* Semaver Games website. Built on the Dem UI kit: /ui-kit/tokens.css and /ui-kit/components.css */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-table);
  background-image: radial-gradient(1200px 640px at 50% -120px, #25573b, rgba(23, 48, 31, 0) 70%);
  background-repeat: no-repeat;
  color: var(--text-on-dark);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--trim-gold-light); }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- header ---------- */
.top { padding-block: 14px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-on-dark); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: 0.01em; }
.brand img { width: 34px; height: 34px; }
.top nav { display: flex; align-items: center; gap: 18px; }
.top nav a { color: var(--text-on-dark-muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--trim-gold-light); }

/* ---------- hero ---------- */
.hero { padding-block: 28px 44px; text-align: center; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero__logo { width: min(230px, 62vw); }
.hero__gamelogo { width: min(340px, 86vw); }
.hero h1 { margin: 0; max-width: 20ch; font-size: clamp(28px, 5.4vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
.hero p.lead { margin: 0; max-width: 54ch; font-size: clamp(16px, 2.4vw, 18px); color: var(--text-on-dark-muted); text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 6px; }
.cta .sg-btn { min-height: 52px; padding-left: 22px; padding-right: 22px; font-size: 15px; line-height: 20px; }
.cta .sg-btn--hex { min-height: 58px; padding-left: 30px; padding-right: 30px; font-size: 16px; }
.note { margin: 0; font-size: 14px; color: var(--text-on-dark-muted); }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.facts li { padding: 5px 12px; border: 1px solid var(--trim-gold); border-radius: var(--radius-pill); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--trim-gold-light); }

/* ---------- sections ---------- */
section { padding-block: 34px; }
.kicker { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--trim-gold-light); }
h2 { margin: 0 0 10px; font-size: clamp(23px, 4vw, 30px); line-height: 1.2; font-weight: 800; text-wrap: balance; }
.sub { margin: 0 0 22px; color: var(--text-on-dark-muted); }

/* cream panel, used for anything meant to be read */
.panel { background: var(--surface-panel); color: var(--text-on-panel); border: 2px solid var(--trim-gold); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: 22px 18px; }
.panel h2, .panel h3 { color: var(--text-heading); }
.panel h3 { margin: 22px 0 6px; font-size: 18px; line-height: 1.3; font-weight: 700; }
.panel h3:first-child { margin-top: 0; }
.panel p { margin: 0 0 12px; }
.panel p:last-child { margin-bottom: 0; }
.panel a:not(.sg-btn) { color: var(--text-heading); font-weight: 600; }
.panel ul, .panel ol { margin: 0 0 12px; padding-left: 22px; }
.panel li { margin-bottom: 6px; }
.panel li::marker { color: var(--text-heading); font-weight: 700; }

/* game showcase on the home page */
.game { display: grid; gap: 20px; align-items: center; }
.game__logo { width: min(320px, 100%); margin: 0 auto; }
.game__body h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: var(--text-heading); }
.game__body p { margin: 0 0 14px; }
.game .facts li { border-color: var(--trim-gold-deep); color: var(--text-on-panel); background: var(--surface-panel-inset); }
.game .facts { justify-content: flex-start; margin-bottom: 16px; }
.game .cta { justify-content: flex-start; }
.game .cta .sg-btn { flex: 1 1 200px; }
@media (min-width: 760px) { .game .cta .sg-btn { flex: 0 0 auto; } }
@media (min-width: 760px) {
  .panel { padding: 30px 32px; }
  .game { grid-template-columns: 340px 1fr; gap: 34px; }
}

/* feature grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.feature { padding: 18px; background: rgba(10, 47, 28, 0.6); border: 1px solid rgba(217, 178, 90, 0.4); border-radius: var(--radius-lg); }
.feature h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--text-on-dark); }
.feature p { margin: 0; font-size: 15px; color: var(--text-on-dark-muted); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding: 18px; background: rgba(10, 47, 28, 0.6); border: 1px solid rgba(217, 178, 90, 0.4); border-radius: var(--radius-lg); }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-bottom: 10px; background: var(--trim-gold); color: var(--text-on-secondary); border-radius: var(--radius-pill); font-weight: 800; font-size: 15px; }
.steps h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.steps p { margin: 0; font-size: 15px; color: var(--text-on-dark-muted); }

/* upcoming games */
.soon { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.soon li { padding: 10px 16px; border: 1px dashed var(--trim-gold); border-radius: var(--radius-md); font-weight: 600; color: var(--text-on-dark); }
.soon li span { display: block; font-size: 13px; font-weight: 500; color: var(--text-on-dark-muted); }

/* FAQ */
.faq details { border-top: 1px solid var(--surface-panel-inset); }
.faq details:first-of-type { border-top: 0; }
.faq summary { padding: 14px 28px 14px 0; cursor: pointer; font-weight: 700; font-size: 17px; line-height: 1.4; color: var(--text-heading); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; font-weight: 600; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }
.faq details p { margin: 0 0 14px; }

/* mini playing cards used in rule examples */
.cards { display: inline-flex; gap: 4px; vertical-align: middle; margin: 2px 4px; }
.pc { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 44px; padding: 0 5px; background: #fffaf0; color: #1c1410; border: 1px solid var(--trim-gold-deep); border-radius: var(--radius-sm); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18); font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap; }
.pc--red { color: var(--action-primary); }
.pc--joker { background: var(--surface-night); color: var(--trim-gold-light); font-size: 12px; }

/* tables */
.tablewrap { overflow-x: auto; margin: 0 0 12px; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--surface-panel-inset); }
th { font-weight: 700; color: var(--text-heading); }
td.num { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }

/* modes */
.panel .modes { padding-left: 0; margin-bottom: 0; }
.panel .facts, .panel .steps { padding-left: 0; }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.modes li { margin: 0; padding: 14px 16px; background: var(--surface-panel-inset); border-radius: var(--radius-md); }
.modes strong { display: block; color: var(--text-heading); font-weight: 700; font-size: 17px; }
.modes span { font-size: 15px; }
.modes em { font-style: normal; display: inline-block; margin-left: 6px; padding: 1px 8px; background: var(--surface-panel); border: 1px solid var(--trim-gold-deep); border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; vertical-align: 2px; }

/* breadcrumb */
.crumbs { padding-block: 0 4px; font-size: 14px; color: var(--text-on-dark-muted); }
.crumbs a { color: var(--text-on-dark-muted); }
.crumbs span[aria-current] { color: var(--text-on-dark); }

/* closing band */
.band { text-align: center; }
.band .wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.band h2 { margin: 0; }
.band p { margin: 0; max-width: 50ch; color: var(--text-on-dark-muted); }

footer { padding-block: 26px 34px; border-top: 1px solid rgba(217, 178, 90, 0.3); font-size: 14px; color: var(--text-on-dark-muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
footer a { color: var(--text-on-dark-muted); }

.stack { display: grid; gap: 18px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
