/* RummyCompare — modern card-club editorial system.
   No frameworks, no webfonts, no gradients. Mobile first. */
:root {
  --paper: #ffffff;
  --wash: #f3f5f1;
  --ink: #17201b;
  --ink-soft: #2c3831;
  --muted: #51615a;
  --line: #dcdfe0;
  --line-soft: #ecefec;
  --felt: #0a5a38;
  --felt-deep: #063a24;
  --felt-ink: #042418;
  --gold: #8a5e0c;
  --gold-bright: #d9a521;
  --gold-wash: #faf4e2;
  --danger: #a4261c;
  --danger-wash: #fbecea;
  --radius: 14px;
  --radius-s: 9px;
  --maxw: 70ch;
  --pagew: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --shadow: 0 1px 2px rgb(23 32 27 / .06), 0 8px 28px -12px rgb(23 32 27 / .18);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7;
}
::selection { background: var(--gold-bright); color: var(--felt-ink); }
img { max-width: 100%; height: auto; }
a { color: var(--felt); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--felt-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; border-radius: 4px; }
.skip {
  position: absolute; left: -999px; top: 0; background: var(--felt-ink); color: #fff;
  padding: .7rem 1.1rem; border-radius: 0 0 10px 0; z-index: 50; font-weight: 700;
}
.skip:focus { left: 0; color: #fff; }

/* Utility bar */
.age-strip {
  background: var(--felt-ink); color: #cfe3d6; font-size: .78rem;
  text-align: center; padding: .42rem .9rem; letter-spacing: .01em;
}
.age-strip strong { color: var(--gold-bright); }

/* Header — deep felt band */
.site-header {
  background: var(--felt-deep); color: #fff;
  position: sticky; top: 0; z-index: 40;
  box-shadow: 0 1px 0 rgb(255 255 255 / .08), 0 10px 30px -18px rgb(4 36 24 / .8);
}
.header-inner {
  max-width: var(--pagew); margin: 0 auto; padding: .7rem 1rem;
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
}
.brand { text-decoration: none; display: flex; align-items: center; gap: .55rem; }
.brand .suits { color: var(--gold-bright); font-size: 1.15rem; letter-spacing: .08em; }
.brand .suits .red { color: #ff8f86; }
.brand .word {
  font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: #fff;
  letter-spacing: -.01em;
}
.brand .word em { font-style: normal; color: var(--gold-bright); }
.tagline { display: none; }
.site-nav { margin-left: auto; max-width: 100%; }
.site-nav ul {
  list-style: none; margin: 0; padding: .15rem 0; display: flex; gap: .3rem;
  overflow-x: auto; scrollbar-width: none;
}
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav a {
  text-decoration: none; color: #dcebe2; font-size: .9rem; font-weight: 600;
  padding: .45rem .8rem; border-radius: 999px; white-space: nowrap;
  border: 1px solid transparent;
}
.site-nav a:hover { color: #fff; background: rgb(255 255 255 / .09); text-decoration: none; }
.site-nav a[aria-current="page"] { background: var(--gold-bright); color: var(--felt-ink); }

/* Layout */
.wrap { max-width: var(--pagew); margin: 0 auto; padding: 0 1.1rem; }
.prose { max-width: var(--maxw); }
main { padding: 1.6rem 0 3.5rem; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.22; text-wrap: balance; letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.7rem); margin: .2rem 0 1rem; }
h2 {
  font-size: clamp(1.35rem, 1.15rem + 1vw, 1.65rem);
  margin: 2.4rem 0 .8rem; padding-top: 1.2rem; border-top: 2px solid var(--line-soft);
}
h3 { font-size: 1.16rem; margin: 1.5rem 0 .5rem; }
.lede { font-size: clamp(1.05rem, 1rem + .5vw, 1.22rem); color: var(--muted); line-height: 1.6; }
.meta { font-size: .82rem; color: var(--muted); }
.meta::before { content: "◷ "; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
li { margin: .3rem 0; }
li::marker { color: var(--felt); }

/* Breadcrumbs */
.crumbs { font-size: .82rem; color: var(--muted); margin: 0 0 1.1rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--felt); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* Notice boxes */
.notice {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.05rem 1.2rem; margin: 1.5rem 0; background: var(--wash);
}
.notice h2, .notice h3 { border: 0; padding: 0; margin: 0 0 .35rem; font-size: 1.08rem; font-family: var(--sans); letter-spacing: 0; }
.notice p { margin: .4rem 0; }
.notice p:last-child { margin-bottom: 0; }
.notice-legal { background: var(--danger-wash); border-color: #eec2bd; }
.notice-legal h2, .notice-legal h3 { color: var(--danger); }
.notice-gold { background: var(--gold-wash); border-color: #e7d6a8; }
.notice-gold h2, .notice-gold h3 { color: var(--gold); }
.notice-felt { background: #e7f1ea; border-color: #bfd8c8; }
.notice-felt h2, .notice-felt h3 { color: var(--felt-deep); }

/* Tables */
.table-scroll {
  overflow-x: auto; margin: 1.3rem 0; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
table { border-collapse: collapse; width: 100%; font-size: .93rem; min-width: 580px; background: #fff; }
caption {
  text-align: left; padding: .75rem 1rem; font-weight: 700;
  font-family: var(--serif); font-size: 1.02rem; background: var(--wash);
  border-bottom: 1px solid var(--line);
}
th, td { text-align: left; padding: .68rem 1rem; border-top: 1px solid var(--line-soft); vertical-align: top; }
thead th { background: var(--felt-deep); color: #fff; border-top: 0; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
thead th:first-child { border-radius: 0; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: #f4f8f5; }
tbody th[scope="row"] { font-weight: 700; }

/* Guide cards */
.guide-list { list-style: none; margin: 1.3rem 0; padding: 0; display: grid; gap: .9rem; }
.guide-list a {
  display: block; text-decoration: none; color: var(--ink); position: relative;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.1rem 1.25rem;
  background: var(--paper); transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.guide-list a:hover { border-color: var(--felt); box-shadow: var(--shadow); transform: translateY(-2px); }
.guide-list a::after {
  content: "→"; position: absolute; right: 1.1rem; top: 1.05rem; color: var(--gold);
  font-weight: 700; transition: transform .16s ease;
}
.guide-list a:hover::after { transform: translateX(4px); }
.guide-list .kicker {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--felt-deep);
  background: #e7f1ea; border-radius: 999px; padding: .18rem .65rem; margin-bottom: .5rem;
}
.guide-list h3 { margin: 0 2rem .3rem 0; font-size: 1.22rem; border: 0; padding: 0; }
.guide-list p { margin: 0; color: var(--muted); font-size: .93rem; }

/* FAQ */
details.faq {
  border: 1px solid var(--line); border-radius: var(--radius-s);
  margin: .6rem 0; background: var(--paper); overflow: hidden;
  transition: border-color .15s ease;
}
details.faq:hover { border-color: #b9c4bd; }
details.faq[open] { border-color: var(--felt); }
details.faq summary {
  cursor: pointer; padding: .9rem 3rem .9rem 1.1rem; font-weight: 700;
  font-family: var(--serif); font-size: 1.06rem; list-style: none; position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 1rem; top: 50%; translate: 0 -50%;
  width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--wash);
  color: var(--felt-deep); font-family: var(--sans); font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, transform .2s ease;
}
details.faq[open] summary::after { content: "–"; background: var(--felt-deep); color: #fff; }
details.faq .faq-body { padding: 0 1.1rem 1.05rem; }
details.faq .faq-body p { margin: .5rem 0; }
details.faq .faq-body p:first-child { margin-top: 0; }

/* Suit divider */
.suits-hr { text-align: center; color: var(--felt); letter-spacing: 1.1em; margin: 2.4rem 0 1rem; font-size: 1.1rem; text-indent: 1.1em; }
.suits-hr .red { color: var(--danger); }

/* Related */
.related { background: var(--felt-deep); color: #dcebe2; border-radius: var(--radius); padding: 1.2rem 1.35rem; margin-top: 2.2rem; }
.related h2 { border: 0; padding: 0; margin: 0 0 .5rem; font-size: 1.1rem; color: var(--gold-bright); font-family: var(--sans); letter-spacing: .02em; }
.related ul { margin: .4rem 0 0; padding-left: 1.15rem; }
.related li { margin: .35rem 0; }
.related li::marker { color: var(--gold-bright); }
.related a { color: #fff; font-weight: 600; }

/* Footer */
.site-footer { background: var(--felt-ink); color: #b9cdc1; font-size: .9rem; }
.footer-inner { max-width: var(--pagew); margin: 0 auto; padding: 2.4rem 1.1rem 1.6rem; }
.footer-brand { font-family: var(--serif); font-size: 1.3rem; color: #fff; margin: 0 0 .4rem; }
.footer-brand em { font-style: normal; color: var(--gold-bright); }
.footer-grid { display: grid; gap: 1.6rem; margin-top: 1.2rem; }
.site-footer h2 { font-size: .8rem; font-family: var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-bright); border: 0; padding: 0; margin: 0 0 .55rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .32rem 0; }
.site-footer li::marker { content: none; }
.site-footer a { color: #e6f0e9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.disclaimer { border-top: 1px solid rgb(255 255 255 / .12); margin-top: 1.7rem; padding-top: 1.2rem; font-size: .8rem; color: #8fa398; }
.disclaimer p { margin: .5rem 0; }

/* Home hero — felt panel with suit lattice */
.hero {
  background-color: var(--felt-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath d='M36 8l7 12-7 12-7-12z' fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='1.5'/%3E%3Cpath d='M8 44l7 12-7 12-7-12zM64 44l7 12-7 12-7-12z' fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='1.5'/%3E%3C/svg%3E");
  color: #fff; border-radius: var(--radius); padding: clamp(1.6rem, 1rem + 3vw, 2.8rem);
  margin-bottom: 1.8rem; box-shadow: var(--shadow); overflow: hidden; position: relative;
}
.hero::after {
  content: "♠"; position: absolute; right: -.6rem; bottom: -3.4rem;
  font-size: 11rem; line-height: 1; color: rgb(255 255 255 / .06);
  font-family: var(--serif); pointer-events: none;
}
.hero h1 { color: #fff; font-size: clamp(1.8rem, 1.2rem + 2.8vw, 2.5rem); max-width: 16ch; }
.hero .lede { color: #cfe3d6; max-width: 52ch; }
.hero a { color: var(--gold-bright); }
.hero .suits { letter-spacing: .35em; color: var(--gold-bright); margin: 0 0 .7rem; }
.hero .suits .red { color: #ff8f86; }
.hero-rule { width: 3.5rem; height: 4px; background: var(--gold-bright); border-radius: 2px; margin: 1.1rem 0 0; }

/* Definition list (glossary) */
dl.terms { display: grid; gap: 0; }
dl.terms dt { font-weight: 700; font-family: var(--serif); font-size: 1.06rem; margin-top: 1.1rem; }
dl.terms dd { margin: .15rem 0 0; color: var(--muted); padding-bottom: 1rem; border-bottom: 1px dashed var(--line); }

/* Steps */
ol.steps { counter-reset: step; list-style: none; padding: 0; }
ol.steps > li { counter-increment: step; margin: 1rem 0; padding-left: 3.1rem; position: relative; }
ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: .15rem;
  width: 2.15rem; height: 2.15rem; border-radius: 50%;
  background: var(--felt-deep); color: #fff; font-weight: 800; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
}
ol.steps > li::marker { content: none; }

@media (min-width: 760px) {
  .guide-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  main { padding-top: 2rem; }
  .tagline { display: block; margin: 0; font-size: .82rem; color: #9fc3ae; border-left: 1px solid rgb(255 255 255 / .2); padding-left: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
