/* 10,000 Farkles: site styles. The palette is the game's own (src/common/base.css, src/tv/tv.css):
   gold on warm dark walnut, cream ink, and a green felt for the rules. */

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/fraunces-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --bg: #120d09;
  --bg-2: #1a120c;
  --panel: #231910;
  --panel-2: #2c2015;
  --line: rgba(226, 189, 107, 0.28);
  --line-strong: rgba(226, 189, 107, 0.55);
  --gold: #e2bd6b;
  --gold-hi: #f3d48e;
  --gold-lo: #c99a45;
  --ink: #f6efe2;
  --muted: #c9bca6;
  --felt: #17432d;
  --felt-2: #0f3321;
  --ruby: #e0414b;
  --sapphire: #3f78e0;
  --emerald: #2fa65a;
  --amethyst: #9b5cff;
  --citrine: #f2b632;
  --display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --text: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --gutter: 16px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 60% at 50% 0%, #2e1f13 0%, rgba(46, 31, 19, 0) 70%),
    radial-gradient(ellipse 80% 50% at 100% 100%, #20160e 0%, rgba(32, 22, 14, 0) 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-hi); text-underline-offset: 3px; }
a:hover { color: #fff1cc; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h2 { font-style: italic; font-weight: 700; font-size: clamp(30px, 5vw, 46px); color: var(--gold); }
h3 { font-weight: 650; font-size: 22px; color: var(--ink); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: #1b130b; padding: 8px 14px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-head { padding: 10px 0; border-bottom: 1px solid rgba(226, 189, 107, 0.12); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; }
.brand { display: block; flex: none; }
.brand img { height: 44px; width: auto; }
.brand-mark img { height: 40px; width: 40px; border-radius: 10px; }
.site-nav { margin-left: auto; display: flex; gap: 4px 18px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; padding: 6px 2px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-hi); }
.site-nav { align-items: center; }
.site-nav a.nav-play { color: #1b130b; background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); border-radius: 999px; padding: 6px 16px; }
.site-nav a.nav-play:hover { color: #1b130b; filter: brightness(1.06); }
@media (max-width: 480px) { .site-nav .nav-extra { display: none; } .brand img { height: 36px; } .brand-mark img { width: 36px; height: 36px; } .site-nav { gap: 4px 12px; } }
@media (max-width: 400px) { .site-nav .nav-mid { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 36px 0 56px; position: relative; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-logo { width: min(100%, 520px); height: auto; margin: 0 0 14px -1.5%; }
.hero h1 { margin: 0; }
.pitch { font-size: clamp(19px, 2.4vw, 23px); line-height: 1.5; color: var(--ink); max-width: 34em; margin: 0 0 26px; }
.pitch b { color: var(--gold-hi); font-weight: 650; }
.hero-shot { position: relative; margin: 0; }
.hero-shot img {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), 0 0 0 6px rgba(226, 189, 107, 0.06);
  aspect-ratio: 1600 / 956;
  width: 100%;
  background: #2a1d12;
}
.hero-shot figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }
@media (min-width: 1100px) {
  .hero { padding: 56px 0 80px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; }
  .hero-shot img { transform: rotate(1.2deg); }
}

/* ---------- store buttons ---------- */
.stores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 540px; margin-top: 16px; }
/* phones: one compact row under "Play in your browser", the only way to play today */
@media (max-width: 479px) {
  .stores { gap: 6px; }
  .store { min-height: 50px; padding: 8px 4px; justify-content: center; text-align: center; }
  .store svg { display: none; }
  .store-small { font-size: 9.5px; letter-spacing: .04em; }
  .store-big { font-size: 13px; }
}
.store {
  display: flex; align-items: center; gap: 10px;
  min-height: 60px; padding: 10px 14px;
  border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(180deg, #2d2116, #20170f);
  color: var(--ink); text-decoration: none; line-height: 1.15;
}
.store svg { width: 22px; height: 22px; flex: none; color: var(--gold); }
.store-text { display: grid; }
.store-small { white-space: nowrap; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.store-big { font-size: 17px; font-weight: 700; white-space: nowrap; }
.store.is-soon { border-style: dashed; cursor: default; }
.store.is-live { background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); color: #1b130b; border: 0; box-shadow: 0 8px 26px rgba(201, 154, 69, 0.3); }
.store.is-live .store-small, .store.is-live svg { color: #3a2a10; }
.store.is-live:hover { filter: brightness(1.06); color: #1b130b; }

.browser-play { margin-top: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.btn-play {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
  color: #1b130b; font-weight: 700; text-decoration: none; font-size: 16px;
  box-shadow: 0 6px 24px rgba(201, 154, 69, 0.25);
}
.btn-play:hover { color: #1b130b; filter: brightness(1.06); }
.btn-play svg { width: 18px; height: 18px; }
.browser-play small { color: var(--muted); font-size: 14.5px; line-height: 1.45; flex: 1 1 220px; }

/* ---------- facts strip ---------- */
.facts { border-top: 1px solid rgba(226, 189, 107, 0.12); border-bottom: 1px solid rgba(226, 189, 107, 0.12); background: rgba(0, 0, 0, 0.22); }
.facts ul { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; text-align: center; }
@media (min-width: 720px) { .facts ul { grid-template-columns: repeat(4, 1fr); } }
.facts b { display: block; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 34px; color: var(--gold); line-height: 1.1; }
.facts span { color: var(--muted); font-size: 14.5px; }
/* the logo's rainbow letters, one per number */
.facts li:nth-child(1) b { color: #ff6b77; }
.facts li:nth-child(2) b { color: #ffb35c; }
.facts li:nth-child(3) b { color: #7fd67a; }
.facts li:nth-child(4) b { color: #c79bff; }

/* ---------- feature blocks ---------- */
.section { padding: 64px 0; }
.section-intro { max-width: 40em; margin-bottom: 28px; }
.section-intro p { color: var(--muted); font-size: 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.eyebrow svg { width: 18px; height: 18px; }

.feature { display: grid; gap: 26px; align-items: center; padding: 56px 0; border-top: 1px solid rgba(226, 189, 107, 0.1); }
.feature:first-of-type { border-top: 0; }
.feature .copy p { color: var(--muted); }
.feature .copy p b, .feature .copy li b { color: var(--ink); font-weight: 650; }
.feature .copy ul { margin: 0 0 1em; padding-left: 1.1em; color: var(--muted); }
.feature .copy li { margin: .25em 0; }
.shot { margin: 0; }
.shot img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; background: #2a1d12; }
.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1.25fr; gap: 56px; }
  .feature.flip .copy { order: 2; }
  .feature.wide { grid-template-columns: 1fr; gap: 30px; }
  .feature.wide .copy { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; align-items: start; }
  .feature.wide .copy > .eyebrow, .feature.wide .copy > h2 { grid-column: 1 / -1; }
  .feature.wide .copy > .col { grid-column: auto; }
}

/* themed table tiles */
.tables { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .tables { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.tables figure { margin: 0; position: relative; }
.tables img { border-radius: 14px; border: 1px solid var(--line); aspect-ratio: 3 / 2; width: 100%; object-fit: cover; background: #2a1d12; }
.tables figcaption { font-family: var(--display); font-style: italic; font-weight: 650; font-size: 17px; color: var(--ink); margin-top: 6px; }
.tables-more { margin-top: 18px; color: var(--muted); font-size: 15.5px; }

/* dice pair */
.pair { display: grid; gap: 14px; }
@media (min-width: 560px) { .pair { grid-template-columns: 1fr 1fr; } }
.pip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; margin: 4px 0 1em; }
.pip-list li { margin: 0 !important; font-size: 14px; color: var(--ink); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }

/* phone + text */
.phone-feature { display: grid; gap: 26px; align-items: center; }
.phone { margin: 0 auto; width: min(260px, 70vw); }
.phone img { border-radius: 30px; border: 6px solid #2b2017; outline: 1px solid var(--line-strong); box-shadow: var(--shadow); aspect-ratio: 390 / 844; width: 100%; background: #1a120c; }
.phone figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 12px; }
@media (min-width: 900px) { .phone-feature { grid-template-columns: 1fr 300px; gap: 56px; } .phone { width: 280px; } }
.steps-mini { list-style: none; counter-reset: s; padding: 0 !important; margin: 0 0 1em; display: grid; gap: 12px; }
.steps-mini li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; margin: 0 !important; color: var(--muted); }
.steps-mini li::before {
  content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(160deg, #f6efe2, #d9ccb4); color: #1b130b; font-weight: 800; font-size: 16px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

/* ---------- how to play ---------- */
.howto {
  background:
    radial-gradient(ellipse 90% 70% at 50% 30%, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--felt), var(--felt-2));
  border-top: 3px solid #5a3a1f; border-bottom: 3px solid #5a3a1f;
  box-shadow: inset 0 0 0 1px rgba(226, 189, 107, 0.18);
}
.howto h2 { color: var(--gold-hi); }
.howto .section-intro p { color: #d9e6dc; }
.howto-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .howto-grid { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
.turn-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: t; }
.turn-steps li { counter-increment: t; display: grid; grid-template-columns: 40px 1fr; gap: 14px; color: #e3ece5; }
.turn-steps li::before {
  content: counter(t); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold-hi); font-family: var(--display); font-weight: 700; font-size: 20px;
}
.turn-steps b { color: #fff; }
.scorecard { background: rgba(10, 26, 17, 0.55); border: 1px solid rgba(226, 189, 107, 0.35); border-radius: var(--radius); padding: 20px; }
.scorecard h3 { color: var(--gold-hi); font-style: italic; margin-bottom: 12px; }
.scorecard table { width: 100%; border-collapse: collapse; }
.scorecard th, .scorecard td { padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.09); text-align: left; vertical-align: middle; font-weight: 400; color: #e3ece5; }
.scorecard tr:last-child th, .scorecard tr:last-child td { border-bottom: 0; }
.scorecard td.wrapcell { white-space: normal; font-size: 17px; line-height: 1.25; }
.scorecard td { text-align: right; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--gold-hi); white-space: nowrap; padding-left: 12px; }
.dice-row { display: inline-flex; gap: 4px; vertical-align: middle; margin-right: 10px; }
.die { width: 26px; height: 26px; flex: none; }
.scorecard th.dicecell { white-space: nowrap; }
@media (max-width: 480px) { .scorecard .die { width: 20px; height: 20px; } .scorecard .dice-row { gap: 3px; margin-right: 8px; } .scorecard th, .scorecard td { font-size: 16px; } .scorecard td { font-size: 18px; } }
.scorecard .note { font-size: 14.5px; color: #cfdcd2; margin: 14px 0 0; }

/* ---------- get the game band ---------- */
.band { text-align: center; }
.band .stores { margin: 16px auto 0; text-align: left; }
.band .browser-play { margin-top: 22px; }
.band .browser-play { justify-content: center; text-align: left; }
.band .browser-play small { flex: 0 1 auto; }
.band p { color: var(--muted); max-width: 36em; margin-left: auto; margin-right: auto; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid rgba(226, 189, 107, 0.15); background: #0c0806; padding: 36px 0 44px; font-size: 15px; color: var(--muted); }
.foot-grid { display: grid; gap: 22px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-foot img { height: 56px; width: auto; margin-bottom: 10px; }
.site-foot h2 { font-family: var(--text); font-style: normal; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-foot a { color: var(--ink); }
.site-foot a:hover { color: var(--gold-hi); }
.copy-line { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 14px; }

/* ---------- text pages ---------- */
.page { padding: 40px 0 72px; }
.page .wrap { max-width: 820px; }
.page h1 { font-style: italic; font-weight: 700; font-size: clamp(34px, 6vw, 52px); color: var(--gold); }
.page h2 { font-size: clamp(24px, 3.6vw, 30px); margin-top: 1.6em; }
.page h3 { margin-top: 1.4em; }
.page p, .page li { color: #e7dccb; }
.page ul { padding-left: 1.2em; }
.page li { margin: .35em 0; }
.page .lede { font-size: 19px; color: var(--ink); }
.updated { color: var(--muted); font-size: 15px; }
.callout { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 22px 0; }
.callout p:last-child { margin-bottom: 0; }
.promise { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
@media (min-width: 640px) { .promise { grid-template-columns: repeat(3, 1fr); } }
.promise li { margin: 0 !important; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--ink) !important; font-weight: 600; }
.promise li span { display: block; font-weight: 400; color: var(--muted); font-size: 15px; margin-top: 2px; }
.data-table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 15.5px; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid rgba(226, 189, 107, 0.16); color: #e7dccb; }
.data-table th { color: var(--gold); font-weight: 650; }
@media (max-width: 560px) {
  .data-table thead { display: none; }
  .data-table tr { display: block; padding: 10px 0; border-bottom: 1px solid rgba(226, 189, 107, 0.16); }
  .data-table td { display: block; border: 0; padding: 2px 0; }
  .data-table td:first-child { color: var(--gold); font-weight: 650; }
}
.contact-cards { display: grid; gap: 12px; margin: 18px 0 8px; }
@media (min-width: 640px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
.contact-cards a { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none; color: var(--ink); }
.contact-cards a:hover { border-color: var(--line-strong); }
.contact-cards b { display: block; font-family: var(--display); font-style: italic; font-size: 20px; color: var(--gold); }
.contact-cards span { color: var(--muted); font-size: 15px; }
.contact-cards .addr { color: var(--gold-hi); font-weight: 600; word-break: break-all; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; margin: 10px 0; }
.faq summary { cursor: pointer; padding: 15px 44px 15px 18px; font-weight: 650; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--gold); font-weight: 400; }
.faq details[open] summary::after { content: '\2212'; }
.faq details > div { padding: 0 18px 8px; }
.faq details[open] { border-color: var(--line-strong); }

/* ---------- 404 ---------- */
.lost { text-align: center; padding: 72px 0 96px; }
.lost .dice-big { display: flex; justify-content: center; gap: 14px; margin-bottom: 26px; }
.lost .dice-big .die { width: 64px; height: 64px; }
.lost .dice-big .die:nth-child(1) { transform: rotate(-9deg); }
.lost .dice-big .die:nth-child(3) { transform: rotate(8deg); }
.lost h1 { font-style: italic; font-weight: 700; font-size: clamp(38px, 7vw, 60px); color: var(--gold); }
.lost p { color: var(--muted); font-size: 18px; max-width: 30em; margin: 0 auto 22px; }
