/*
Theme Name: Rummy Good
Theme URI: https://rummygoodgame.com/
Author: Rummy Good
Description: Mobile-first brand theme for Rummy Good. Warm paper, logo crimson, felt green and gold, with guides, variants, sources and an app-status page for players in India.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: rummy-good
*/

:root {
  --ink: #2c1612;
  --primary: #9b1c2c;
  --deep: #0c3d24;
  --accent: #f0c14b;
  --paper: #fff8f3;
  --muted: #5e463e;
  --line: #ead8c8;
  --red: #c12845;
  --white: #fff;
  --shadow: 0 8px 22px rgba(90, 20, 24, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  padding-bottom: 84px;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.035em; font-weight: 600; }
p { color: var(--muted); }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #0f6b3a;
  outline-offset: 4px;
}

.wrap { width: min(1200px, calc(100% - 36px)); margin-inline: auto; }
.skip {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 80;
  background: var(--accent);
  color: var(--deep);
  padding: 10px 14px;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 250, 242, 0.98);
  border-bottom: 2px solid #f0ddc8;
  box-shadow: 0 2px 14px rgba(50, 16, 76, 0.04);
}
.admin-bar .site-header { top: 46px; }
.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--accent);
  font-size: 22px;
  box-shadow: 0 0 0 3px #f3d680;
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  background: transparent;
  box-shadow: 0 0 0 2px #f0c14b;
}
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
.brand-name span {
  display: block;
  margin-top: 4px;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav { display: none; }
.nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  left: -18px;
  right: -18px;
  width: auto;
  top: 100%;
  background: var(--paper);
  border-bottom: 2px solid #cba3e2;
  box-shadow: 0 15px 25px rgba(90, 20, 24, 0.12);
  padding: 8px 8px 16px;
  z-index: 45;
}
.site-header { position: sticky; }
.header-inner { position: relative; }
.nav a { padding: 12px 10px; font-size: 15px; font-weight: 700; }
.nav a[aria-current="page"] { color: #9b1c2c; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 7px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 4px 0 #083d22;
}
.btn.gold {
  background: var(--accent);
  border-color: #efb82f;
  color: #3d1016;
  box-shadow: 0 4px 0 #bd861f;
}
.btn.light {
  background: #fff8f3;
  border-color: #fff8f3;
  color: #6e1822;
  box-shadow: 0 4px 0 #c9a07a;
}
.btn.deep {
  background: #0c3d24;
  border-color: #0c3d24;
  color: #fff;
  box-shadow: 0 4px 0 #062616;
}
.download-actions { margin: 18px 0 4px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.header-cta {
  margin-left: auto;
  min-height: 40px;
  padding: 9px 11px;
  font-size: 10px;
  gap: 6px;
  white-space: nowrap;
}
.desktop-label { display: none; }
.mobile-label { display: inline; }
.menu-button {
  border: 1px solid #e4c56a;
  background: #fff6df;
  color: #9b1c2c;
  border-radius: 7px;
  min-height: 40px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9b1c2c;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid #d7a44a;
  padding-bottom: 3px;
}
.eyebrow {
  display: block;
  margin-bottom: 16px;
  color: #0f6b3a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  margin-right: 10px;
  background: currentColor;
  vertical-align: middle;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at 88% 42%, rgba(105, 51, 154, 0.33), transparent 50%),
    linear-gradient(115deg, #5c121c 0%, #8e1a28 55%, #6d1520 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(#edbf5c 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%);
}
.hero-grid { position: relative; z-index: 1; }
.hero-copy { padding: 36px 0 8px; }
.hero .eyebrow { color: #ffda78; }
.hero h1 { margin-bottom: 18px; font-size: 46px; }
.hero h1 em { color: var(--accent); font-family: Georgia, serif; font-style: italic; font-weight: 500; }
.hero-copy > p { max-width: 36rem; color: #f6e4dc; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 24px 0 14px; }
.hero .text-link { color: #fff; border-bottom-color: #e7c9a4; }
.small-note { display: flex; align-items: center; gap: 8px; margin: 0; color: #f3d5c8; font-size: 12px !important; }
.small-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.hero-art {
  width: min(440px, 100%);
  margin: 8px auto 20px;
}
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
}
.table-ring {
  position: absolute;
  inset: 8% 8% 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #1c8a4a, #0e5c32 65%, #083d22);
  box-shadow: inset 0 0 0 10px #e5b94d, inset 0 0 0 12px #ffdf85, inset 0 0 0 22px #0c4a28;
}
.table-ring::after {
  content: "RUMMY GOOD";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  color: rgba(255, 240, 197, 0.7);
  font-size: 8px;
  letter-spacing: 0.35em;
  text-align: center;
}
.fan { position: absolute; inset: 18% 0 8%; }
.fan .playing-card {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 92px;
  height: 132px;
  margin-left: -46px;
  transform-origin: 50% 110%;
}
.fan .playing-card:nth-child(1) { transform: translateX(-54px) rotate(-24deg); }
.fan .playing-card:nth-child(2) { transform: translateX(-18px) rotate(-8deg); }
.fan .playing-card:nth-child(3) { transform: translateX(18px) rotate(8deg); }
.fan .playing-card:nth-child(4) { transform: translateX(54px) rotate(24deg); }
.floating-pill {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 190px;
  padding: 10px 12px;
  border: 1px solid #ffdc77;
  border-radius: 10px;
  background: #fffef9;
  color: #3d1016;
  box-shadow: 0 12px 26px rgba(19, 7, 31, 0.28);
}
.floating-pill strong { display: block; font-size: 11px; line-height: 1.35; }
.floating-pill span { color: #6a5348; font-size: 9px; }
.pill-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: #fff0c5;
  color: #9b1c2c;
  font-size: 14px;
}
.pill-one { top: 18px; right: 0; transform: rotate(5deg); }
.pill-two { bottom: 42px; left: 0; transform: rotate(-4deg); }
.art-note {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(39, 16, 58, 0.72);
  color: #f4e0a5;
  font-size: 9px;
  letter-spacing: 0.04em;
}
.suit-mark { position: absolute; color: #d89924; font-size: 18px; }
.suit-mark.one { top: 0; left: 8px; }
.suit-mark.two { right: 6px; bottom: 8px; }

.playing-card {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 72px;
  height: 104px;
  padding: 8px;
  border: 1px solid #d9cde3;
  border-radius: 10px;
  background: #fffef9;
  color: #1c2430;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1;
}
.playing-card.red { color: var(--red); }
.playing-card .corner { font-size: 16px; }
.playing-card .corner small { margin-left: 1px; font-size: 11px; }
.playing-card b { align-self: center; font-size: 34px; }
.playing-card i { align-self: flex-end; font-size: 13px; font-style: normal; transform: rotate(180deg); }
.playing-card.joker .corner,
.playing-card.joker i { font-size: 13px; }

.intro-strip { background: var(--accent); border-bottom: 1px solid #d89e2b; color: #3d1016; }
.strip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 16px 0; }
.strip-grid div { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 10px; font-weight: 700; line-height: 1.35; text-align: left; }
.strip-grid div + div { border-left: 1px solid rgba(87, 38, 125, 0.28); }
.strip-grid span { color: #0c4a28; font-size: 16px; }

.section { padding: 46px 0; }
.section-top { margin-bottom: 22px; }
.section-top h2 { margin: 0 0 12px; font-size: 33px; }
.section-top p { margin: 0; font-size: 15px; }
.section-top .text-link { margin-top: 16px; }
.feature-grid { display: grid; gap: 14px; }
.feature, .guide-card, .info-box, .status-panel, .source-record {
  background: #fff;
  border: 1px solid #ead8c8;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.feature { padding: 24px; border-top: 4px solid #9b1c2c; }
.feature:nth-child(2) { border-top-color: #d78b12; }
.feature:nth-child(3) { border-top-color: #b52e63; }
.feature-num { display: block; margin-bottom: 18px; color: #0f6b3a; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; }
.feature h3, .guide-card h3, .info-box h3 { margin: 0 0 8px; color: #6e1822; font-size: 23px; }
.feature p, .guide-card p, .info-box p { margin: 0 0 18px; font-size: 15px; }

.learn-section { background: #e7f5ec; border-block: 1px solid #c5e0d0; }
.learn-grid, .faq-grid, .sources-band { display: grid; gap: 28px; }
.learn-copy h2, .faq-intro h2 { font-size: 33px; margin-bottom: 12px; }
.rule-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.rule-pills span, .tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid #b7d4c2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #0f6b3a;
  font-size: 11px;
  font-weight: 700;
}
.sequence-lab {
  padding: 18px;
  border: 2px solid #e4c56a;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.lab-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.lab-tabs button {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: #fff3d4;
  color: #6e1822;
  font-size: 11px;
  font-weight: 700;
}
.lab-tabs button[aria-pressed="true"] { background: #0f6b3a; color: #fff; }
.lab-cards { display: flex; justify-content: center; gap: 8px; min-height: 130px; padding: 16px 0 22px; }
.lab-cards .playing-card:nth-child(1) { transform: rotate(-4deg); }
.lab-cards .playing-card:nth-child(2) { transform: rotate(2deg); }
.lab-cards .playing-card:nth-child(3) { transform: rotate(6deg); }
.lab-result { border-top: 1px solid var(--line); padding-top: 14px; }
.lab-result h3 { margin: 0 0 6px; color: #6e1822; font-size: 19px; }
.lab-result p { margin: 0; font-size: 14px; }
.source-note { margin: 16px 0 0; color: #6a5348; font-size: 12px; }
.source-note a, .prose a:not(.btn), .faq-item a { color: #9b1c2c; text-decoration: underline; text-underline-offset: 3px; }

.variant-list { border-top: 1px solid #ead8c8; }
.variant-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  gap: 8px 12px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #ead8c8;
}
.variant-row .number { color: #b8860b; font-family: Georgia, serif; font-size: 24px; }
.variant-row h3 { margin: 0; color: #6e1822; font-size: 22px; }
.variant-row p { grid-column: 2; margin: 0; font-size: 14px; }
.variant-row .arrow {
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e7f5ec;
  color: #0f6b3a;
  text-align: center;
  line-height: 28px;
}

.sources-band {
  padding: 26px 22px;
  border-radius: 18px;
  background: linear-gradient(115deg, #0c3d24, #157a42);
  color: #fff;
  box-shadow: 0 15px 35px rgba(60, 22, 82, 0.16);
}
.sources-band h2 { margin-bottom: 10px; color: #fff; font-size: 30px; }
.sources-band p { color: #d7efe2; font-size: 14px; }
.sources-band .eyebrow { color: var(--accent); }
.source-mini {
  padding: 20px;
  border: 1px solid #f5d383;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
}
.source-mini .label { display: flex; justify-content: space-between; color: #6a5348; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.source-mini h3 { margin: 14px 0 6px; color: #0f6b3a; font-size: 22px; }
.sources-band .source-mini p { color: #2c1612; font-size: 13px; line-height: 1.55; }
.mini-row { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 12px; }

.guide-card { display: block; padding: 14px; }
.guide-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 168px;
  margin-bottom: 14px;
  border: 1px solid #ead8c8;
  border-radius: 12px;
  background: linear-gradient(135deg, #fde8ea, #fff6ea);
  overflow: hidden;
}
.guide-art .playing-card { width: 64px; height: 92px; box-shadow: 0 6px 14px rgba(90, 20, 24, 0.12); }
.guide-art .playing-card:nth-child(1) { transform: rotate(-12deg); }
.guide-art .playing-card:nth-child(2) { transform: rotate(4deg) translateY(10px); }
.guide-art .playing-card:nth-child(3) { transform: rotate(14deg); }
.guide-art.check-art { background: linear-gradient(135deg, #ffce51, #ffedbd); border-color: #eec774; color: #9b1c2c; font-family: Georgia, serif; font-size: 72px; }
.guide-art.rule-art { flex-direction: column; background: linear-gradient(135deg, #0f6b3a, #083d22); border-color: #0c4a28; color: #ffe196; font-family: Georgia, serif; font-size: 64px; line-height: 0.9; }
.guide-art.rule-art small { font-size: 28px; }
.guide-meta { display: block; margin-bottom: 8px; color: #0f6b3a; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; }

.faq-item {
  margin-bottom: 10px;
  padding: 16px 14px;
  border: 1px solid #ead8c8;
  border-radius: 10px;
  background: #fff;
}
.faq-item summary { display: flex; justify-content: space-between; gap: 16px; color: #6e1822; font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: #0f6b3a; font-size: 22px; font-weight: 500; line-height: 1; }
.faq-item[open] { border-color: #c9a227; }
.faq-item[open] summary::after { content: "-"; }
.faq-item p { margin: 12px 0 0; font-size: 14px; }

.cta-band { padding: 42px 0 48px; background: #ffcf56; border-block: 1px solid #e7b13b; }
.cta-inner h2 { margin-bottom: 8px; color: #3d1016; font-size: 30px; }
.cta-inner p { margin: 0 0 22px; color: #5e463e; font-size: 15px; }
.cta-band .cta-actions { margin-top: 4px; }

.site-footer { padding: 42px 0 28px; background: #0c3d24; color: #f4fff8; border-top: 5px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.footer-brand { grid-column: 1 / -1; }
.site-footer .brand-icon { background: var(--accent); color: #32104b; box-shadow: none; }
.site-footer .brand-name { color: #fff; }
.footer-blurb { max-width: 34rem; margin: 16px 0 0; color: #d7efe2; font-size: 13px; }
.footer-group strong { display: block; margin-bottom: 10px; color: #ffda76; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-group a { display: block; margin: 8px 0; color: #e7f5ec; font-size: 13px; }
.footer-bottom { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; padding-top: 16px; border-top: 1px solid #1d5c38; color: #d6bfe7; font-size: 11px; }
.footer-disclosure { margin: 14px 0 0; color: #c5e0d0; font-size: 11px; }

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #0c3d24;
  color: #fff;
  border-top: 2px solid var(--accent);
  box-shadow: 0 -4px 18px rgba(12, 61, 36, 0.28);
}
.mobile-bar strong { display: block; font-size: 12px; }
.mobile-bar small { display: block; color: #d7efe2; font-size: 10px; }
.mobile-bar .btn { min-height: 44px; padding: 10px 12px; font-size: 12px; white-space: nowrap; }

.page-hero {
  padding: 28px 0 34px;
  color: #fff;
  background:
    radial-gradient(ellipse at top right, rgba(240, 193, 75, 0.28), transparent 65%),
    linear-gradient(115deg, #5c121c, #8e1a28);
  border-bottom: 5px solid var(--accent);
}
.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 { max-width: 16em; margin-bottom: 12px; font-size: 39px; }
.page-hero p { max-width: 40rem; margin: 0; color: #f6e4dc; font-size: 15px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: #f3d5c8; font-size: 11px; }
.breadcrumb a { color: #ffdc83; text-decoration: underline; text-underline-offset: 2px; }
.page-main { padding: 34px 0 56px; }
.article-layout { display: grid; gap: 28px; }
.prose h2 { margin: 32px 0 12px; color: #6e1822; font-size: 27px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 22px 0 8px; color: #0f6b3a; font-size: 20px; }
.prose p, .prose li { color: var(--muted); font-size: 15px; line-height: 1.8; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 18px; }
.prose li { margin-bottom: 8px; }
.aside-panel {
  padding: 20px;
  border: 1px solid #e4c56a;
  border-top: 4px solid #9b1c2c;
  border-radius: 12px;
  background: #fff6ea;
}
.aside-panel h3 { margin: 0 0 4px; color: #6e1822; font-size: 18px; }
.aside-panel a { display: block; padding: 11px 0; border-bottom: 1px solid #ead8c8; color: #9b1c2c; font-size: 13px; font-weight: 700; }
.aside-panel p { margin: 14px 0 0; color: #6a5348; font-size: 12px; }
.note-box { margin: 22px 0; padding: 16px 18px; border-left: 4px solid #9b1c2c; border-radius: 0 8px 8px 0; background: #fff1f2; }
.note-box strong { display: block; margin-bottom: 4px; color: #6e1822; }
.note-box p { margin: 0; color: #5e463e; font-size: 14px; }
.note-box.warm { border-left-color: #c58217; background: #fff0c5; }
.example-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #ead8c8;
  border-radius: 12px;
  background: #fff6ea;
}
.example-group .playing-card { width: 58px; height: 84px; box-shadow: none; }
.example-group .explain { flex: 1 1 100%; }
.example-group h3 { margin: 0 0 4px; }
.steps { margin-top: 8px; }
.step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step .index { color: #b8860b; font-family: Georgia, serif; font-size: 28px; line-height: 1; }
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; }
.table-wrap { margin: 18px 0 24px; overflow-x: auto; border: 1px solid #ead8c8; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 14px; text-align: left; vertical-align: top; }
th { background: #0f6b3a; color: #fff; }
td { background: #fff; color: var(--muted); border-bottom: 1px solid var(--line); }
tr:nth-child(even) td { background: #f7f3ea; }
.status-panel { padding: 22px; border-top: 5px solid #f2bd39; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid #eac16e;
  border-radius: 999px;
  background: #ffe2a1;
  color: #694100;
  font-size: 11px;
  font-weight: 700;
}
.status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #694100; }
.status-panel h2 { margin: 16px 0 10px; color: #6e1822; font-size: 29px; }
.status-list { margin: 8px 0 0; }
.status-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #ead8c8; font-size: 13px; }
.status-list dt { color: #6a5348; }
.status-list dd { margin: 0; color: #3d1016; font-weight: 700; text-align: right; }
.search-box, .form-grid input, .form-grid textarea {
  width: 100%;
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 2px solid #e4c56a;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.filter-bar button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #c9a24a;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}
.filter-bar button[aria-pressed="true"] { background: #9b1c2c; border-color: #9b1c2c; color: #fff; box-shadow: 0 3px 0 #083d22; }
.source-record { margin: 16px 0; padding: 20px; border-left: 4px solid #c9a227; }
.record-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.record-type { color: #0f6b3a; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.source-record h2 { margin: 0 0 8px; color: #6e1822; font-size: 23px; }
.fields { display: grid; gap: 12px; margin: 16px 0; padding: 16px; border-radius: 8px; background: #fff6ea; font-size: 13px; }
.fields span { display: block; margin-bottom: 3px; color: #6a5348; font-size: 11px; font-weight: 700; }
.source-record .links { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.source-record .links a { color: #9b1c2c; font-size: 13px; font-weight: 700; border-bottom: 1px solid #d7a44a; }
.info-grid { display: grid; gap: 16px; }
.info-box { padding: 22px; border-top: 4px solid #9b1c2c; }
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.checklist input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); flex: 0 0 auto; }
.check-result { margin-top: 14px; padding: 14px 16px; border: 1px solid #e4c56a; border-radius: 8px; background: #e7f5ec; color: #6e1822; font-size: 13px; }
.form-grid label { display: block; margin-bottom: 6px; color: #6e1822; font-size: 13px; font-weight: 700; }
.form-note { padding: 12px 14px; border-radius: 8px; background: #fff6ea; color: #6e1822; font-size: 14px; }
.hp { position: absolute; left: -9999px; }
.empty-state { padding: 12px 0 4px; }
.article-meta { margin-bottom: 18px; color: #6a5348; font-size: 12px; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.shot { margin: 8px 0 22px; }
.shot img {
  width: 100%;
  height: auto;
  border: 3px solid #e8c56a;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(90, 20, 24, 0.16);
}
.shot figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
[hidden] { display: none !important; }

@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .wrap { width: min(1200px, calc(100% - 48px)); }
  .admin-bar .site-header { top: 32px; }
  .header-inner { min-height: 84px; gap: 22px; }
  .brand-icon { width: 42px; height: 42px; font-size: 28px; }
  .brand-logo { width: 46px; height: 46px; border-radius: 12px; }
  .brand-name { font-size: 21px; }
  .brand-name span { font-size: 9px; letter-spacing: 0.28em; }
  .menu-button, .mobile-bar, .mobile-label { display: none; }
  .desktop-label { display: inline; }
  .nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
  }
  .nav,
  .nav.is-open {
    position: static;
    left: auto;
    width: auto;
    transform: none;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    flex-direction: row;
  }
  .nav a { padding: 10px 0; font-size: 14px; }
  .nav a[aria-current="page"] { box-shadow: inset 0 -3px #c9a227; }
  .header-cta { margin-left: 8px; min-height: 46px; padding: 10px 16px; font-size: 13px; }
  .hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; min-height: 560px; }
  .hero-copy { padding: 48px 0; }
  .hero h1 { font-size: 58px; }
  .hero-art { width: min(100%, 520px); margin: 0 auto; }
  .fan .playing-card { width: 112px; height: 164px; margin-left: -56px; }
  .pill-one { top: 54px; right: 0; }
  .pill-two { left: 0; bottom: 70px; }
  .strip-grid div { gap: 10px; font-size: 13px; }
  .section { padding: 72px 0; }
  .section-top, .cta-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
  .section-top h2, .cta-inner h2 { margin: 0; }
  .section-top p, .cta-inner p { max-width: 360px; margin: 0; }
  .section-top .text-link { margin: 0; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .learn-grid, .faq-grid { grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 48px; }
  .sources-band { grid-template-columns: 1.15fr 0.85fr; align-items: center; padding: 42px; }
  .variant-row { grid-template-columns: 64px 0.8fr 1.3fr 32px; }
  .variant-row p { grid-column: auto; }
  .variant-row .arrow { grid-column: auto; grid-row: auto; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .page-hero { padding: 52px 0 58px; }
  .page-hero h1 { font-size: 52px; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; align-items: start; }
  .aside-panel { position: sticky; top: 110px; }
  .info-grid, .fields { grid-template-columns: 1fr 1fr; }
  .example-group .explain { flex-basis: 180px; }
  .cta-actions { flex: 0 0 auto; }
}

@media (max-width: 759px) {
  body { line-height: 1.55; }
  .wrap { width: min(1200px, calc(100% - 28px)); }
  .header-inner { min-height: 58px; }

  .hero-copy { padding: 20px 0 2px; }
  .hero h1 { margin-bottom: 10px; font-size: 34px; }
  .hero-copy > p { font-size: 14px; }
  .actions { gap: 10px; margin: 14px 0 8px; }
  .hero-art { width: min(300px, 86%); margin: 2px auto 10px; }

  .strip-grid { padding: 10px 0; }
  .section { padding: 26px 0; }
  .section-top { margin-bottom: 12px; }
  .section-top h2,
  .learn-copy h2,
  .faq-intro h2 { margin-bottom: 8px; font-size: 26px; }
  .section-top p,
  .hero-copy > p,
  .cta-inner p,
  .page-hero p { font-size: 14px; }
  .section-top .text-link { margin-top: 10px; }

  .feature-grid { gap: 10px; }
  .feature, .info-box { padding: 16px; }
  .feature-num { margin-bottom: 8px; }
  .feature h3, .guide-card h3, .info-box h3, .variant-row h3, .source-record h2 { font-size: 19px; }
  .feature p, .guide-card p, .info-box p { margin-bottom: 10px; font-size: 14px; }

  .learn-grid, .faq-grid, .sources-band { gap: 16px; }
  .rule-pills { margin-top: 12px; }
  .sequence-lab { padding: 14px; }
  .lab-cards { min-height: 104px; padding: 8px 0 12px; }
  .variant-row { padding: 12px 0; }
  .variant-row .number { font-size: 20px; }
  .sources-band { padding: 18px 16px; }
  .sources-band h2, .cta-inner h2, .status-panel h2 { font-size: 23px; }
  .source-mini { padding: 14px; }
  .source-mini h3 { margin: 8px 0 4px; font-size: 18px; }

  .guide-card { padding: 12px; }
  .guide-art { height: 108px; margin-bottom: 8px; }
  .guide-art.check-art { font-size: 52px; }
  .guide-art.rule-art { font-size: 46px; }
  .guide-art.rule-art small { font-size: 20px; }

  .faq-item { margin-bottom: 8px; padding: 12px; }
  .cta-band { padding: 24px 0 26px; }
  .cta-inner p { margin-bottom: 12px; }
  .cta-actions { gap: 8px; }

  .site-footer { padding: 26px 0 16px; }
  .footer-grid { gap: 14px 12px; }
  .footer-blurb { margin-top: 10px; }
  .footer-group a { margin: 6px 0; }
  .footer-bottom { margin-top: 16px; padding-top: 12px; }

  .page-hero { padding: 18px 0 20px; }
  .page-hero h1 { margin-bottom: 8px; font-size: 30px; }
  .breadcrumb { margin-bottom: 10px; }
  .page-main { padding: 20px 0 32px; }
  .article-layout { gap: 16px; }
  .prose h2 { margin: 20px 0 8px; font-size: 22px; }
  .prose h3 { margin: 14px 0 6px; font-size: 17px; }
  .prose p, .prose li { font-size: 14px; line-height: 1.6; }
  .prose ul, .prose ol { margin-bottom: 12px; }
  .aside-panel { padding: 14px 14px 6px; }
  .aside-panel a { padding: 8px 0; }
  .note-box { margin: 14px 0; padding: 12px 14px; }
  .example-group { margin: 12px 0; padding: 12px; }
  .step { gap: 10px; padding: 12px 0; }
  .step .index { font-size: 22px; }
  th, td { padding: 10px 12px; }
  .status-panel { padding: 16px; }
  .status-panel h2 { margin: 10px 0 8px; }
  .status-list div { padding: 8px 0; }
  .source-record { margin: 12px 0; padding: 14px; }
  .shot { margin: 4px 0 14px; }
  .checklist label { padding: 10px 0; font-size: 14px; }
}

@media (max-width: 360px) {
  .brand-name { font-size: 15px; }
  .hero h1 { font-size: 30px; }
  .page-hero h1 { font-size: 26px; }
  .section-top h2, .learn-copy h2, .faq-intro h2, .cta-inner h2 { font-size: 23px; }
  .header-cta { padding: 8px; }
  .fan .playing-card { width: 78px; height: 112px; margin-left: -39px; }
  .floating-pill { max-width: 150px; padding: 8px; }
  .mobile-bar .btn { font-size: 11px; padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
