/* Play Daily Cards – shared styles for guide & tool pages */
:root{--felt:#17583f; --felt-2:#0c3627; --felt-3:#21704f; --paper:#fffdf8; --cream:#fff8ea; --ink:#15342a; --muted:#5b7568; --line:#e7dcc4;
  --cta:#ffcf5a; --cta-ink:#2e2100; --cta-edge:#c8961f; --red:#d0182b;
  font-family:'Fredoka', ui-rounded, 'SF Pro Rounded', 'Segoe UI', system-ui, sans-serif; color-scheme:light}
*{box-sizing:border-box}
html{background:var(--felt-2)}
body{margin:0; font-variant-emoji:text; color:var(--ink); font-size:16.5px; line-height:1.6; background:var(--paper); min-height:100vh}
a{color:#1d6b4c}
:focus-visible{outline:3px solid var(--cta); outline-offset:2px; border-radius:6px}
.wrap{max-width:820px; margin:0 auto; padding:0 max(16px, env(safe-area-inset-left, 0px))}

/* top band */
.band{color:#f2faf5; background:radial-gradient(rgba(255,255,255,.035) 1px, transparent 1.2px) 0 0/3px 3px, radial-gradient(120% 120% at 50% 0%, var(--felt-3), var(--felt) 50%, var(--felt-2)); background-color:var(--felt)}
.top{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 0}
.logo{display:flex; align-items:center; gap:9px; font-weight:600; font-size:19px; color:inherit; text-decoration:none}
.logo img{width:44px; height:33px; display:block; filter:drop-shadow(0 2px 4px rgba(0,0,0,.25))}
.playlink{background:var(--cta); color:var(--cta-ink); font-weight:600; text-decoration:none; border-radius:999px; padding:8px 18px; box-shadow:0 3px 0 var(--cta-edge); white-space:nowrap; font-size:15px}
.nav{display:flex; gap:6px; overflow-x:auto; padding:2px 0 14px; scrollbar-width:none; -webkit-overflow-scrolling:touch}
.nav::-webkit-scrollbar{display:none}
.nav a{flex:none; color:#d8ece2; text-decoration:none; font-size:14.5px; padding:6px 13px; border-radius:999px; background:rgba(255,255,255,.08)}
.nav a:hover{background:rgba(255,255,255,.16)}
.nav a[aria-current]{background:#fff; color:var(--ink); font-weight:600}
.hero{padding:22px 0 40px}
.hero h1{font-size:clamp(30px, 6vw, 46px); line-height:1.12; margin:6px 0 12px; font-weight:700}
.hero p{font-size:18.5px; color:#cfe7da; margin:0; max-width:640px}
.crumbs{font-size:14px; color:#a9cdbb; display:flex; gap:6px; flex-wrap:wrap}
.crumbs a{color:#a9cdbb; text-decoration:none}
.crumbs a:hover{text-decoration:underline}

/* article */
main.page{background:var(--paper); border-radius:28px 28px 0 0; margin-top:-22px; position:relative; padding:34px 0 20px}
.page h2{font-size:clamp(22px, 3.6vw, 28px); line-height:1.25; margin:40px 0 10px; font-weight:600; color:var(--felt-2); scroll-margin-top:16px}
.page h2:first-child{margin-top:0}
.page h3{font-size:18.5px; margin:24px 0 4px; font-weight:600}
.page p{margin:0 0 12px}
.page ul,.page ol{padding-left:22px; margin:0 0 14px}
.page li{margin-bottom:6px}
.toc{background:var(--cream); border:1px solid var(--line); border-radius:16px; padding:14px 18px; margin:0 0 8px}
.toc b{display:block; font-size:13px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-bottom:6px}
.toc ol{margin:0; columns:2 220px; column-gap:24px}
.toc li{margin-bottom:4px; break-inside:avoid}
.tw{overflow-x:auto; margin:8px 0 16px; border:1px solid var(--line); border-radius:14px; background:#fff}
table{border-collapse:collapse; width:100%; font-size:15px}
.tw table{min-width:0}
th,td{text-align:left; padding:9px 12px; border-bottom:1px solid var(--line); vertical-align:top}
th{background:var(--cream); font-weight:600}
tr:last-child td{border-bottom:0}
td.n,th.n{text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums}
.callout{background:#eef7f2; border:1px solid #cfe5d8; border-radius:16px; padding:14px 18px; margin:16px 0}
.callout p:last-child{margin:0}
.example{background:var(--cream); border:1px solid var(--line); border-radius:16px; padding:14px 18px; margin:14px 0}
.example .lbl{font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); font-weight:600}
.example ul{margin:6px 0 4px}
.example .tot{font-weight:600}

/* playing cards in text */
.hand{display:flex; flex-wrap:wrap; align-items:flex-end; gap:6px; margin:8px 0 10px}
.hand .plus{color:var(--muted); font-size:14px; margin:0 2px 8px}
.pc{display:inline-flex; flex-direction:column; align-items:center; justify-content:center; width:42px; height:58px; border-radius:7px; background:#fff; border:1px solid #d9cfb9; box-shadow:0 2px 0 rgba(0,0,0,.06); font-weight:600; font-size:17px; line-height:1; color:#111; gap:2px}
.pc i{font-style:normal; font-size:17px}
.pc.r{color:var(--red)}
.pc.st{outline:2px solid var(--cta); outline-offset:1px}
.ic{white-space:nowrap; font-weight:600}
.ic.r{color:var(--red)}

/* calls to action + related */
.cta{display:flex; flex-wrap:wrap; align-items:center; gap:12px 16px; background:var(--felt); color:#f2faf5; border-radius:20px; padding:20px 22px; margin:36px 0 10px}
.cta p{margin:0; flex:1 1 260px; font-size:17px}
.cta b{display:block; font-size:20px}
.btn{display:inline-block; border:0; cursor:pointer; font:inherit; font-weight:600; text-decoration:none; border-radius:999px; padding:11px 22px; background:var(--cta); color:var(--cta-ink); box-shadow:0 3px 0 var(--cta-edge); white-space:nowrap}
.btn:active{transform:translateY(2px); box-shadow:0 1px 0 var(--cta-edge)}
.btn.soft{background:#efe6d2; box-shadow:none}
.related{display:grid; grid-template-columns:repeat(auto-fill, minmax(210px, 1fr)); gap:12px; margin:12px 0 0; padding:0; list-style:none}
.related li{margin:0}
.related a{display:block; height:100%; background:var(--cream); border:1px solid var(--line); border-radius:16px; padding:14px 16px; text-decoration:none; color:var(--ink); transition:border-color .15s, transform .15s}
.related a:hover{border-color:#cdbf9f; transform:translateY(-2px)}
.related b{display:block; font-weight:600}
.related span{display:block; font-size:14.5px; color:var(--muted); line-height:1.45}
details{border:1px solid var(--line); border-radius:14px; padding:0 16px; margin-bottom:10px; background:var(--cream)}
summary{cursor:pointer; font-weight:600; padding:14px 0; line-height:1.4}
details p{margin:0 0 14px}
.foot{margin-top:44px; padding:18px 0 calc(28px + env(safe-area-inset-bottom, 0px)); border-top:1px solid var(--line); color:var(--muted); font-size:14px}
.foot nav{display:flex; flex-wrap:wrap; gap:6px 16px; margin-bottom:8px}
.foot a{color:var(--muted)}

@media print{
  .band .nav, .playlink, .cta, .related, .foot, .noprint, h2.rel{display:none!important}
  .band{background:none; color:#000}
  .hero{padding:0 0 8px} .hero p,.crumbs{color:#333}
  main.page{margin:0; padding:0}
  body{font-size:12.5px}
  .page h2{margin-top:18px}
  .tw{border-color:#999} th{background:#eee}
  .example,.callout{break-inside:avoid}
}
