/* acesupsolitaire.app: one small stylesheet, no framework. Brand: felt green #1b5e38, card gold #d8a63e. */
:root {
  --felt: #1b5e38;
  --felt-deep: #0f3b23;
  --gold: #d8a63e;
  --bg: #f5f2ea;
  --surface: #ffffff;
  --surface-2: #ece7da;
  --text: #1d2a22;
  --muted: #4e5d53;
  --line: #e0d9c8;
  --heading: #123d26;
  --link: #17603a;
  --btn-bg: #1b5e38;
  --btn-ink: #ffffff;
  --soft: #f8edd2;
  --pro-bg: #1b5e38;
  --pro-ink: #ffffff;
  --free-bg: #e2efe5;
  --free-ink: #1f5a32;
  --card-red: #c62832;
  --card-black: #1b1f1d;
  --shadow: 0 1px 2px rgba(18, 61, 38, 0.06), 0 8px 24px rgba(18, 61, 38, 0.09);
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c2116;
    --surface: #12301f;
    --surface-2: #173a26;
    --text: #e8efe9;
    --muted: #b4c4b8;
    --line: #24442f;
    --heading: #ffffff;
    --link: #ecc66c;
    --btn-bg: #d8a63e;
    --btn-ink: #10301e;
    --soft: #1d3a27;
    --pro-bg: #d8a63e;
    --pro-ink: #10301e;
    --free-bg: rgba(120, 200, 140, 0.16);
    --free-ink: #a8e2b6;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.28);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); overflow-x: hidden; }
img, svg, picture { max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { color: var(--heading); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); margin: 0.2em 0 0.4em; }
h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); margin: 0 0 0.5em; }
h3 { font-size: 1.08rem; margin: 0 0 0.35em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin: 0.25em 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--btn-bg); color: var(--btn-ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; max-width: 1120px; margin: 0 auto; padding: 14px 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--heading); font-weight: 700; text-decoration: none; margin-right: auto; }
.brand img { border-radius: 8px; }
.nav { order: 3; display: flex; gap: 4px 16px; flex-wrap: wrap; width: 100%; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--heading); text-decoration: underline; }
.nav-get { background: var(--btn-bg); color: var(--btn-ink); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 0.92rem; }
@media (min-width: 860px) {
  .nav { order: 0; width: auto; margin-right: 8px; }
}

main { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.kicker { color: var(--felt); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; margin-bottom: 0.4em; }
@media (prefers-color-scheme: dark) { .kicker { color: var(--gold); } }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38em; }
.note, .cta-note, .meta { color: var(--muted); font-size: 0.92rem; }

/* hero */
.hero { display: grid; gap: 28px; align-items: center; padding: 24px 0 8px; }
.hero-shot { margin: 0 auto; max-width: 300px; }
.hero-shot img, .shot-strip img, .side-shot img { border-radius: 28px; box-shadow: var(--shadow); border: 6px solid var(--card-black); background: var(--felt); }
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.25fr 1fr; padding-top: 48px; }
  .hero-shot { max-width: 320px; }
}

/* store buttons and desktop QR */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0 10px; }
.store-badge img { display: block; height: 50px; width: auto; }
.store-play { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 16px; border-radius: 10px; background: #000; color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem; border: 1px solid #555; }
.store-play .icon { width: 20px; height: 20px; fill: #fff; stroke: none; }
.qr-desktop { display: none; }
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  html:not(.no-qr) .qr-desktop { display: block; margin-left: 8px; }
}
.qr-link { display: flex; align-items: center; gap: 12px; color: var(--muted); text-decoration: none; font-size: 0.85rem; max-width: 300px; }
.qr-code { border-radius: 8px; border: 1px solid var(--line); flex: none; }

.proof { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 14px 0; margin: 20px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.proof li::before { content: "♠ "; color: var(--felt); }
.proof li:nth-child(2)::before { content: "♥ "; color: var(--card-red); }
.proof li:nth-child(3)::before { content: "♣ "; color: var(--felt); }
.proof li:nth-child(4)::before { content: "♦ "; color: var(--card-red); }

/* sections */
.section { padding: 48px 0 8px; }
.section-intro { color: var(--muted); max-width: 42em; }
.tint { background: var(--surface-2); border-radius: var(--radius); padding: 36px 20px 24px; margin-top: 48px; }
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.3fr 1fr; } }
.steps { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; margin: 0; }
.steps p { margin: 0; color: var(--muted); }
.step-n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--felt); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* playing cards (home art and the Daily Deal preview) */
.deal-art, .board-cards { display: flex; justify-content: center; gap: clamp(8px, 2.5vw, 16px); }
.deal-art { background: radial-gradient(circle at 40% 30%, #2a7a4c, var(--felt-deep)); border-radius: var(--radius); padding: 40px 16px; box-shadow: var(--shadow); }
.pcard { position: relative; width: clamp(58px, 17vw, 92px); aspect-ratio: 5 / 7; background: #fff; border-radius: 10px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); display: block; color: var(--card-black); }
.pcard.red { color: var(--card-red); }
.pcard .pc-r { position: absolute; top: 6px; left: 8px; font-weight: 700; font-size: clamp(1rem, 3.6vw, 1.5rem); line-height: 1; }
.pcard .pc-s { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(1.6rem, 6vw, 2.6rem); }
.pcard.back { background: repeating-linear-gradient(45deg, #b8323a 0 6px, #a12a31 6px 12px); border: 4px solid #fff; }

/* feature cards */
.cards { list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--soft); color: var(--felt); margin-bottom: 10px; }
@media (prefers-color-scheme: dark) { .card-icon { color: var(--gold); } }
.tier { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 999px; vertical-align: 2px; }
.tier-free { background: var(--free-bg); color: var(--free-ink); }
.tier-pro { background: var(--pro-bg); color: var(--pro-ink); }

.odds-teaser { border-left: 4px solid var(--gold); padding-left: 20px; margin-top: 40px; }
.daily-teaser { background: var(--soft); border-radius: var(--radius); padding: 28px 22px 12px; margin-top: 48px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--btn-bg); color: var(--btn-ink); text-decoration: none; font-weight: 600; padding: 10px 16px; border-radius: 999px; }

.shot-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.shot-strip figure { margin: 0; text-align: center; }
.shot-strip figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }

.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 16px 0; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--surface); }
.plan-pro { border: 2px solid var(--gold); }
.plan ul { margin: 0; }

.privacy { display: flex; gap: 18px; align-items: flex-start; }
.privacy-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--soft); color: var(--felt); }

.link-cards { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.link-cards li { margin: 0; }
.link-cards a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--text); }
.link-cards a:hover { border-color: var(--gold); }
.link-cards strong { display: block; color: var(--heading); margin-bottom: 4px; }
.link-cards span { color: var(--muted); font-size: 0.93rem; }

.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.faq-a p:last-child { margin-bottom: 0; }

.final { text-align: center; padding: 56px 0 40px; }
.final img { border-radius: 16px; }
.final .cta-row { justify-content: center; }

/* guides */
.crumbs { font-size: 0.9rem; color: var(--muted); padding-top: 16px; }
.crumbs a { color: var(--muted); }
.page-head { padding: 12px 0 4px; max-width: 46em; }
.guide { max-width: 46em; }
.answer { background: var(--soft); border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; padding: 14px 18px 4px; margin: 10px 0 18px; }
.answer-label { font-weight: 700; color: var(--heading); margin-bottom: 4px; }
.toc { border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; margin-bottom: 8px; background: var(--surface); }
.toc p { font-weight: 700; margin: 0 0 4px; }
.toc ol { margin: 0; }
.prose { max-width: 46em; }
.prose-section { padding-top: 28px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 0.96rem; }
.data-table th, .data-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { color: var(--heading); }
@media (max-width: 560px) {
  .data-table thead { display: none; }
  .data-table tr { display: block; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 6px 10px; }
  .data-table td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 5px 0; }
  .data-table td::before { content: attr(data-label); font-weight: 600; color: var(--heading); }
}
.app-box { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 40px; box-shadow: var(--shadow); }
@media (min-width: 860px) { .app-box { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.sources ol { font-size: 0.92rem; color: var(--muted); }
.share-sample { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font: 15px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }

/* Daily Deal board */
.daily-board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 18px 0 8px; box-shadow: var(--shadow); max-width: 46em; }
.board-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.board-title { font-size: 1.3rem; font-weight: 700; color: var(--heading); margin: 0; }
.diff { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 9px; border-radius: 999px; vertical-align: 3px; background: var(--free-bg); color: var(--free-ink); }
.diff-medium { background: var(--soft); color: #8a5a00; }
.diff-hard { background: #f6dcdc; color: #8f1f26; }
.board-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--felt); font-weight: 600; margin: 0; }
@media (prefers-color-scheme: dark) { .board-badge { color: var(--gold); } .diff-medium { color: #ffd98a; } .diff-hard { background: rgba(198, 40, 50, 0.25); color: #ffb3b8; } }
.board-felt { background: radial-gradient(circle at 40% 30%, #2a7a4c, var(--felt-deep)); border-radius: 12px; padding: 16px 12px 22px; margin: 14px 0; }
.board-caption { color: rgba(255, 255, 255, 0.8); text-align: center; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.board-next { color: var(--muted); font-size: 0.92rem; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 16px 36px; background: var(--surface-2); }
.footer-top { max-width: 1120px; margin: 0 auto; display: grid; gap: 20px; }
@media (min-width: 860px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--heading); text-decoration: none; }
.footer-brand img { border-radius: 7px; }
.footer-top p { color: var(--muted); font-size: 0.92rem; }
.footer-links { display: grid; gap: 6px; font-size: 0.93rem; }
.copyright { max-width: 1120px; margin: 18px auto 0; color: var(--muted); font-size: 0.82rem; }

/* /download/ router */
.router { display: grid; min-height: 100vh; place-items: center; }
.router-card { text-align: center; padding: 32px 16px; }
.router-card img { border-radius: 16px; }
.router-card .cta-row { justify-content: center; }
