/* Native editorial design. Forest tabletop palette; no UI framework.
   Shape system: 6px controls, 12px exercise surfaces, square card scans. */
:root {
  color-scheme: light;
  --page: #f8faf7;
  --surface: #ffffff;
  --soft: #edf2eb;
  --table: #e1eade;
  --ink: #182d25;
  --muted: #5d6b61;
  --line: #d8e1d6;
  --accent: #21543e;
  --accent-hover: #163f2d;
  --accent-text: #ffffff;
  --active-soft: #dfeadb;
  --focus: #8a631e;
  --error: #9b3731;
  --error-soft: #faece9;
  --success: #225c3a;
  --success-soft: #e5f1e5;
  --card-shadow: 0 11px 25px rgb(30 56 39 / 13%);
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --page: #14231c;
  --surface: #1b2c23;
  --soft: #21372b;
  --table: #2a4233;
  --ink: #edf3e9;
  --muted: #b2c0b2;
  --line: #3c5041;
  --accent: #b8d4a9;
  --accent-hover: #d0e5c4;
  --accent-text: #163322;
  --active-soft: #354c37;
  --focus: #e4be6e;
  --error: #f1afa3;
  --error-soft: #422b28;
  --success: #c0e4b4;
  --success-soft: #293f2c;
  --card-shadow: 0 11px 28px rgb(3 15 7 / 30%);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 15px/1.85 var(--font); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: .23em; }
button, .button { touch-action: manipulation; }
a, button { transition: background-color .18s, color .18s, border-color .18s, transform .18s; }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
button:active:not(:disabled), .button:active { transform: translateY(1px); }
figure, dl, dd { margin: 0; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.45; letter-spacing: -.045em; text-wrap: balance; }
h1 { font-size: 60px; line-height: 1.32; }
h2 { font-size: 36px; }
h3 { font-size: 22px; }
strong { font-weight: 700; }
.wrap { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 20px; border-radius: 6px; color: var(--accent-text); background: var(--accent); }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); background: var(--page); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 18px; }
.wordmark { font-family: Georgia, "Times New Roman", serif; font-size: 43px; font-weight: 500; letter-spacing: -.07em; line-height: 1.1; text-decoration: none; padding-bottom: 4px; }
.brand-note { font-family: var(--font); font-weight: 500; vertical-align: middle; margin-left: 18px; font-size: 11px; letter-spacing: .08em; line-height: 1.6; color: var(--muted); border-left: 1px solid var(--line); padding-left: 17px; }
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.site-header nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-size: 13px; font-weight: 600; }
.site-header nav a:hover { color: var(--accent); text-decoration: underline; }
.theme-toggle { flex: 0 0 auto; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; display: grid; place-items: center; font-size: 19px; padding: 6px; }
.theme-toggle:hover { background: var(--soft); border-color: var(--accent); }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 44px; padding-block: 64px 50px; min-width: 0; }
.hero-copy { padding-bottom: 10px; }
.eyebrow { color: var(--accent); font-size: 11px; line-height: 1.5; font-weight: 700; letter-spacing: .15em; margin: 0 0 21px; }
.hero h1 { margin-bottom: 22px; }
.hero-description { color: var(--muted); line-height: 1.95; margin-bottom: 29px; max-width: 35em; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 18px; min-height: 48px; padding: 10px 23px; border: 1px solid var(--line); border-radius: 6px; background: transparent; text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.button.primary, .button-primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.button.primary:hover, .button-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button:not(.primary):hover { background: var(--soft); border-color: var(--accent); }
.hero-table { position: relative; height: 370px; min-width: 0; isolation: isolate; overflow: hidden; }
.hero-table::before { content: ""; position: absolute; z-index: -1; inset: 4px 5px 0; background: var(--table); border-radius: 50% 50% 12px 12px; }
.card-fan { position: absolute; width: 480px; height: 350px; top: 5px; left: 50%; transform: translateX(-50%); }
.fan-card { position: absolute; width: 132px; height: auto; aspect-ratio: 310/670; left: calc(50% + var(--x, 0px)); top: calc(50% + var(--y, 0px)); transform: translate(-50%, -50%) rotate(var(--angle, 0deg)); z-index: calc(var(--i, 0) + 1); box-shadow: var(--card-shadow); }
.hero-table figcaption { position: absolute; bottom: 10px; width: 100%; text-align: center; color: var(--muted); font-size: 10px; }
.intro-strip { display: flex; justify-content: space-between; align-items: center; gap: 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 22px; color: var(--muted); font-size: 13px; }
.intro-strip p { margin: 0; }
.intro-strip strong { color: var(--ink); }
.section { padding-block: 70px; }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 12px; }
.section-heading p { color: var(--muted); max-width: 55em; margin-bottom: 0; font-size: 14px; }
.small-note { color: var(--muted); font-size: 12px; line-height: 1.85; }
.text-link { color: var(--accent); font-weight: 600; }
.catalog-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filter { min-height: 44px; border: 1px solid var(--line); background: transparent; border-radius: 6px; padding: 9px 18px; font-size: 13px; font-weight: 600; }
.filter:hover { background: var(--soft); border-color: var(--accent); }
.filter.active { color: var(--accent-text); background: var(--accent); border-color: var(--accent); }
.filter-all { margin-left: auto; }
.catalog-caption { min-height: 80px; padding: 18px 0 20px; border-top: 1px solid var(--line); }
#suit-title { font-size: 20px; margin-bottom: 5px; }
#suit-description { color: var(--muted); font-size: 13px; margin: 0; }
.card-gallery { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 16px; align-items: start; }
.card-gallery[data-filter="honor"], .card-gallery[data-filter="honour"] { grid-template-columns: repeat(3, minmax(0, 112px)); }
.card-tile { appearance: none; border: 0; background: none; padding: 0; min-width: 0; display: flex; align-items: center; flex-direction: column; text-align: center; border-radius: 3px; }
.card-tile img { width: 100%; aspect-ratio: 310/670; object-fit: contain; box-shadow: 0 3px 11px rgb(26 49 30 / 8%); transition: transform .18s, box-shadow .18s; }
.card-tile:hover img { transform: translateY(-5px); box-shadow: var(--card-shadow); }
.card-name { font-size: 12px; font-weight: 600; padding-top: 10px; line-height: 1.6; }
.card-name small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; }
.recognition-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 68px; align-items: center; }
.recognition-copy > h2 { margin-bottom: 16px; }
.recognition-copy > p { color: var(--muted); }
.recognition-point { display: flex; gap: 15px; margin-top: 24px; }
.point-marker { width: 27px; height: 27px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); border-radius: 50%; font-size: 12px; font-weight: 700; margin-top: 3px; }
.recognition-point h3 { font-size: 17px; margin-bottom: 5px; }
.recognition-point p { color: var(--muted); font-size: 13px; margin: 0; }
.compare-panel { padding: 24px 26px 18px; background: var(--soft); border-radius: 12px; }
.compare-switch { display: flex; justify-content: center; gap: 6px; margin-bottom: 24px; }
.compare-switch button { padding: 8px 17px; border: 1px solid var(--line); border-radius: 6px; min-height: 44px; background: var(--surface); font-size: 13px; }
.compare-switch button.active { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.compare-cards { display: flex; justify-content: center; align-items: flex-start; gap: 34px; }
.compare-cards figure { width: min(33%, 114px); }
.annotated-card { position: relative; }
.annotated-card img { width: 100%; box-shadow: var(--card-shadow); }
.annotation { opacity: 0; position: absolute; pointer-events: none; border: 2px solid #d57538; background: rgb(226 135 62 / 8%); transition: opacity .2s; }
.annotation.frame { inset: 4% 8%; }
.annotation.center { inset: 17% 30%; }
.show-frame .annotation.frame, .show-center .annotation.center { opacity: 1; }
.compare-cards figcaption { color: var(--muted); font-size: 12px; text-align: center; margin-top: 10px; }
.compare-caption { margin: 18px 0 0; min-height: 45px; color: var(--muted); text-align: center; font-size: 12px; }
.rule-facts dl, dl.rule-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 22px 0; border-block: 1px solid var(--line); margin-bottom: 34px; }
.rule-facts dl > div, dl.rule-facts > div { padding-left: 24px; border-left: 1px solid var(--line); }
.rule-facts dl > div:first-child, dl.rule-facts > div:first-child { padding-left: 0; border-left: 0; }
.rule-facts dt { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.rule-facts dd { font-size: 28px; font-weight: 600; line-height: 1.35; letter-spacing: -.03em; }
.rule-facts dd span { font-size: 14px; font-weight: 400; margin-left: 5px; }
.rule-facts p { font-weight: 400; color: var(--muted); font-size: 11px; line-height: 1.6; margin: 8px 0 0; }
.walkthrough { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.step-nav { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--soft); border-bottom: 1px solid var(--line); }
.step { min-height: 61px; padding: 13px 12px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; position: relative; }
.step:last-child { border-right: 0; }
.step.active { color: var(--accent); background: var(--surface); box-shadow: inset 0 -3px 0 var(--accent); }
.step span { margin-right: 7px; font-size: 12px; }
.step-display { padding: 28px 32px 0; }
.step-text h3 { font-size: 22px; margin-bottom: 9px; }
.step-text p { color: var(--muted); font-size: 14px; min-height: 27px; margin-bottom: 26px; }
.hand-area { padding: 23px 24px 20px; min-height: 217px; background: var(--soft); border-radius: 8px; }
.hand-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; line-height: 1.5; margin-bottom: 18px; }
.tutorial-hand { display: flex; justify-content: center; gap: 7px; align-items: flex-end; min-height: 139px; }
.hand-card { width: min(8.1%, 65px); flex: 0 1 65px; min-width: 0; box-shadow: 0 3px 8px rgb(26 49 30 / 10%); position: relative; transition: transform .2s; }
.hand-card img { width: 100%; }
.hand-card.drawn { transform: translateY(-10px); outline: 3px solid var(--accent); outline-offset: 3px; margin-left: 10px; }
.hand-card.matched { outline: 2px solid var(--accent); outline-offset: 2px; }
.discard-area { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 12px; padding-top: 19px; }
.discard-area img { width: 37px; transform: rotate(7deg); }
.step-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 19px 0; }
.step-bottom p { color: var(--muted); font-size: 12px; margin: 0; }
.text-button { background: none; border: 0; min-height: 44px; padding: 8px 0 8px 10px; color: var(--accent); font-size: 13px; font-weight: 700; }
.text-button:hover { text-decoration: underline; text-underline-offset: .3em; }
.winning-example { margin-top: 40px; }
.winning-heading { margin-bottom: 22px; }
.winning-heading h3 { margin-bottom: 7px; }
.winning-heading p { color: var(--muted); font-size: 13px; margin: 0; }
.winning-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.winning-group { text-align: center; padding-bottom: 13px; border-bottom: 2px solid var(--line); }
.winning-cards { display: flex; justify-content: center; gap: 5px; }
.winning-cards img { width: min(29%, 65px); box-shadow: 0 3px 9px rgb(26 49 30 / 8%); }
.winning-group p { font-size: 12px; margin: 12px 0 0; font-weight: 600; }
.winning-group small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.regional-note { margin-top: 27px; font-size: 12px; color: var(--muted); border-left: 2px solid var(--line); padding-left: 15px; }
.regional-note p { margin: 0; }
.practice-layout { display: grid; grid-template-columns: .8fr 1.4fr; gap: 60px; align-items: center; }
.practice-copy h2 { margin-bottom: 17px; }
.practice-copy p { color: var(--muted); font-size: 14px; }
.quiz-panel { min-width: 0; background: var(--soft); border-radius: 12px; padding: 24px 26px; }
.quiz-top { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 21px; font-size: 12px; color: var(--muted); }
.quiz-top strong { color: var(--ink); }
#quiz-prompt { font-size: 16px; line-height: 1.6; margin-bottom: 20px; letter-spacing: -.02em; }
.quiz-play { display: grid; grid-template-columns: 88px 28px 1fr; gap: 17px; align-items: center; }
.quiz-reference img { width: 100%; box-shadow: var(--card-shadow); }
.quiz-reference figcaption { color: var(--muted); text-align: center; font-size: 11px; margin-top: 8px; }
.quiz-divider { color: var(--muted); font-size: 23px; text-align: center; padding-bottom: 24px; }
.quiz-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.quiz-option { border: 2px solid transparent; border-radius: 3px; background: none; padding: 3px; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.quiz-option img { width: 100%; box-shadow: 0 3px 9px rgb(26 49 30 / 8%); }
.quiz-option span { font-size: 12px; line-height: 1.5; padding-top: 8px; font-weight: 600; }
.quiz-option:hover:not(:disabled) { border-color: var(--accent); }
.quiz-option.correct { border-color: var(--success); background: var(--success-soft); opacity: 1; }
.quiz-option.wrong { border-color: var(--error); background: var(--error-soft); opacity: 1; }
.quiz-option:disabled { opacity: .55; }
.quiz-feedback { margin-top: 18px; min-height: 48px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.quiz-feedback.is-wrong { color: var(--error); }
.quiz-feedback.is-correct { color: var(--success); }
.quiz-bottom { display: flex; justify-content: flex-end; align-items: center; min-height: 44px; gap: 20px; }
.quiz-bottom p { color: var(--muted); margin: 0; font-size: 12px; }
.quiz-bottom .button { min-height: 44px; padding: 8px 18px; font-size: 12px; }
.quiz-result { padding-block: 18px; text-align: center; }
.quiz-result h3 { font-size: 23px; }
.quiz-result p { font-size: 13px; color: var(--muted); }
.result-number { font-family: Georgia, "Times New Roman", serif; font-size: 76px; line-height: 1.3; margin: 12px 0; color: var(--accent); }
.result-number span { color: var(--muted); font-size: 29px; }
.reading-section { padding-bottom: 60px; }
.reading-section > h2 { margin-bottom: 25px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 64px; padding: 19px 42px 19px 0; list-style: none; font-weight: 600; cursor: pointer; position: relative; font-size: 14px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 15px; color: var(--accent); font-size: 23px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { color: var(--muted); max-width: 68em; padding-right: 40px; margin-bottom: 22px; font-size: 13px; }
.sources { border-top: 1px solid var(--line); padding-block: 38px 42px; }
.source-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 65px; }
.sources h2 { font-size: 17px; letter-spacing: -.02em; margin-bottom: 13px; }
.sources h3 { font-size: 14px; letter-spacing: -.01em; margin-bottom: 9px; }
.sources ul:not(.reference-list) { padding-left: 17px; margin: 13px 0 0; font-size: 11px; line-height: 1.9; }
.sources ul:not(.reference-list) li { margin-bottom: 5px; }
.sources p { font-size: 11px; color: var(--muted); line-height: 1.9; }
.reference-list { padding-left: 18px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
.reference-list li { padding-left: 5px; margin-bottom: 12px; }
.reference-list span { display: block; margin-top: 4px; }
.reference-list a { color: var(--ink); overflow-wrap: anywhere; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding-block: 20px; color: var(--muted); font-size: 11px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.site-footer p { margin: 0; }
.site-footer .wordmark { font-size: 28px; color: var(--ink); }
dialog { width: min(670px, calc(100% - 36px)); max-height: calc(100dvh - 40px); margin: auto; padding: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); overflow-y: auto; box-shadow: 0 24px 100px rgb(6 19 10 / 25%); }
dialog::backdrop { background: rgb(10 26 17 / 65%); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 8px; right: 10px; min-width: 44px; width: auto; height: 44px; padding-inline: 12px; white-space: nowrap; border: 0; background: transparent; font-size: 12px; color: var(--muted); border-radius: 50%; }
.dialog-close:hover { background: var(--soft); }
.dialog-layout { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 36px; }
.dialog-image img { width: 180px; box-shadow: var(--card-shadow); }
.dialog-info h2 { font-size: 30px; margin-bottom: 15px; }
.dialog-info p { color: var(--muted); font-size: 13px; }
.dialog-info .eyebrow { font-size: 10px; color: var(--accent); margin-bottom: 12px; }
.dialog-info a { font-size: 12px; color: var(--accent); }
.dialog-nav { display: flex; align-items: center; gap: 10px; margin-top: 25px; }
.dialog-nav button { min-height: 44px; min-width: 70px; padding: 9px 15px; border: 1px solid var(--line); background: var(--soft); border-radius: 6px; font-size: 12px; }
.dialog-nav button:hover { border-color: var(--accent); }
@media (min-width: 1280px) {
  .hero { gap: 64px; }
}
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .header-inner { gap: 14px; }
  .site-header nav { gap: 20px; }
  .hero { gap: 25px; }
  h1 { font-size: 52px; }
  .card-fan { transform: translateX(-50%) scale(.86); }
  .hero-table { height: 350px; }
  .hero-table::before { inset: 20px 0 0; }
  .card-gallery { gap: 12px; }
  .recognition-layout { gap: 42px; }
  .practice-layout { gap: 32px; grid-template-columns: .75fr 1.4fr; }
  .quiz-panel { padding: 22px; }
  .quiz-play { grid-template-columns: 68px 20px 1fr; gap: 12px; }
  .quiz-options { gap: 8px; }
}
@media (max-width: 850px) {
  .wrap { width: calc(100% - 48px); }
  .brand-note { display: none; }
  h1 { font-size: 46px; }
  h2 { font-size: 31px; }
  .hero { padding-block: 49px 36px; gap: 26px; grid-template-columns: 1.05fr 1fr; }
  .hero-description { font-size: 13px; }
  .hero-table { height: 320px; }
  .card-fan { top: -12px; transform: translateX(-50%) scale(.71); }
  .hero-table::before { inset: 15px 0 0; }
  .section { padding-block: 55px; }
  .card-gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
  .recognition-layout { gap: 30px; }
  .compare-panel { padding: 20px 15px; }
  .compare-cards { gap: 20px; }
  .compare-switch button { font-size: 12px; padding-inline: 11px; }
  .practice-layout { grid-template-columns: 1fr; gap: 20px; }
  .practice-copy { max-width: 600px; }
  .quiz-panel { max-width: 600px; width: 100%; }
  .quiz-play { grid-template-columns: 92px 36px 1fr; gap: 21px; }
  .quiz-options { gap: 18px; }
  .source-layout { grid-template-columns: 1fr 1.8fr; gap: 32px; }
}
@media (max-width: 639px) {
  html { scroll-padding-top: 20px; }
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 72px; gap: 12px; }
  .wordmark { font-size: 38px; }
  .site-header nav { gap: 15px; }
  .site-header nav a { font-size: 11px; }
  .theme-toggle { min-width: 44px; min-height: 44px; width: 44px; height: 40px; font-size: 17px; border: 0; }
  .hero { display: flex; flex-direction: column; gap: 22px; align-items: stretch; padding-block: 40px 27px; }
  .hero-copy { padding: 0; }
  .eyebrow { margin-bottom: 16px; font-size: 10px; }
  h1 { font-size: 46px; line-height: 1.3; }
  h2 { font-size: 28px; line-height: 1.45; }
  h3 { font-size: 20px; }
  .hero h1 { margin-bottom: 18px; }
  .hero-description { font-size: 14px; margin-bottom: 23px; max-width: 30em; }
  .hero-table { width: 100%; max-width: 440px; height: 298px; margin-inline: auto; }
  .hero-table::before { inset: 10px 6px 0; }
  .card-fan { top: -30px; transform: translateX(-50%) scale(.78); }
  .hero-table figcaption { bottom: 7px; font-size: 9px; }
  .intro-strip { gap: 9px; align-items: flex-start; flex-direction: column; padding-block: 20px; font-size: 12px; }
  .section { padding-block: 45px; }
  .section-heading { margin-bottom: 22px; }
  .section-heading p { font-size: 13px; }
  .catalog-controls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 18px; }
  .filter { padding: 8px 6px; min-height: 44px; font-size: 12px; }
  .filter-all { grid-column: 1/-1; margin-left: 0; background: none; min-height: 40px; font-size: 11px; }
  .catalog-caption { min-height: 98px; padding-block: 15px 20px; }
  #suit-title { font-size: 18px; }
  #suit-description { font-size: 12px; }
  .card-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px 22px; }
  .card-gallery[data-filter="honor"], .card-gallery[data-filter="honour"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-name { font-size: 11px; }
  .recognition-layout { grid-template-columns: 1fr; gap: 27px; }
  .recognition-copy > p { font-size: 13px; }
  .recognition-point { margin-top: 20px; gap: 12px; }
  .recognition-point h3 { font-size: 16px; }
  .compare-panel { padding: 21px 20px 18px; }
  .compare-cards { gap: 35px; }
  .compare-cards figure { width: min(36%, 110px); }
  .compare-caption { min-height: 35px; }
  .rule-facts dl, dl.rule-facts { gap: 12px; padding-block: 20px; margin-bottom: 26px; }
  .rule-facts dl > div, dl.rule-facts > div { padding-left: 12px; }
  .rule-facts dt { font-size: 10px; }
  .rule-facts dd { font-size: 23px; }
  .rule-facts dd span { font-size: 11px; margin-left: 3px; }
  .rule-facts p { font-size: 10px; }
  .step { min-height: 65px; font-size: 11px; padding: 11px 5px; line-height: 1.5; }
  .step span { display: block; font-size: 10px; margin: 0 0 4px; }
  .step-display { padding: 22px 16px 0; }
  .step-text h3 { font-size: 19px; }
  .step-text p { font-size: 12px; min-height: 44px; margin-bottom: 17px; }
  .hand-area { padding: 16px 10px 14px; min-height: 155px; }
  .hand-label { font-size: 10px; margin-bottom: 17px; }
  .tutorial-hand { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; gap: 15px 6px; min-height: 73px; }
  .hand-card { width: 100%; max-width: 54px; justify-self: center; }
  .hand-card.drawn { transform: translateY(-4px); outline-width: 2px; outline-offset: 1px; margin-left: 0; }
  .hand-card.matched { outline-width: 1px; outline-offset: 1px; }
  .discard-area { font-size: 10px; padding-top: 13px; }
  .discard-area img { width: 28px; }
  .step-bottom { padding-block: 12px; gap: 10px; }
  .step-bottom p { font-size: 10px; }
  .text-button { font-size: 12px; flex-shrink: 0; }
  .winning-example { margin-top: 31px; }
  .winning-heading h3 { font-size: 19px; }
  .winning-heading p { font-size: 12px; }
  .winning-groups { grid-template-columns: repeat(2, 1fr); gap: 23px; }
  .winning-cards { gap: 4px; }
  .winning-cards img { width: 28%; }
  .winning-group p { font-size: 11px; }
  .regional-note { margin-top: 22px; font-size: 11px; }
  .practice-layout { gap: 18px; }
  .practice-copy h2 { margin-bottom: 12px; }
  .practice-copy p { font-size: 13px; }
  .quiz-panel { padding: 21px 16px; }
  .quiz-top { font-size: 11px; margin-bottom: 18px; }
  .quiz-play { grid-template-columns: 65px 19px 1fr; gap: 10px; }
  .quiz-options { gap: 7px; }
  .quiz-option { padding: 2px; }
  .quiz-divider { font-size: 18px; }
  .quiz-reference figcaption { font-size: 10px; }
  .quiz-feedback { font-size: 11px; min-height: 56px; }
  .quiz-bottom { gap: 12px; }
  .quiz-bottom .button { font-size: 11px; padding-inline: 14px; }
  .result-number { font-size: 66px; }
  .faq-list summary { padding-block: 18px; font-size: 13px; }
  .faq-list details p { font-size: 12px; padding-right: 10px; }
  .sources { padding-block: 29px; }
  .source-layout { grid-template-columns: 1fr; gap: 18px; }
  .sources h2 { font-size: 16px; }
  .sources p { margin-bottom: 0; }
  .site-footer { padding-block: 18px; }
  .site-footer .wrap { align-items: flex-start; gap: 16px; }
  .site-footer p { font-size: 10px; }
  dialog { padding: 42px 22px 25px; width: calc(100% - 28px); }
  .dialog-layout { grid-template-columns: 115px 1fr; gap: 20px; }
  .dialog-image img { width: 115px; }
  .dialog-info h2 { font-size: 22px; }
  .dialog-info p { font-size: 11px; }
  .dialog-info a { font-size: 10px; }
  .dialog-nav { gap: 6px; margin-top: 17px; }
  .dialog-nav button { min-width: 0; padding: 8px 11px; font-size: 11px; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 32px); }
  .site-header nav { gap: 11px; }
  .site-header nav a { font-size: 10px; }
  .header-inner { gap: 9px; }
  .wordmark { font-size: 34px; }
  .theme-toggle { min-width: 44px; width: 44px; }
  h1 { font-size: 42px; }
  .hero-table { height: 264px; }
  .card-fan { top: -46px; transform: translateX(-50%) scale(.62); }
  .card-gallery { gap: 21px 17px; }
  .quiz-play { grid-template-columns: 53px 13px 1fr; gap: 7px; }
  .quiz-options { gap: 5px; }
  .quiz-option { padding: 1px; }
  .quiz-panel { padding-inline: 12px; }
  .quiz-divider { font-size: 15px; }
  .dialog-layout { grid-template-columns: 90px 1fr; gap: 15px; }
  .dialog-image img { width: 90px; }
  .dialog-info h2 { font-size: 19px; }
  .dialog-nav { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .card-tile:hover img { transform: none; }
}
@media print {
  :root, html[data-theme="dark"] { --page: #fff; --surface: #fff; --ink: #111; --muted: #444; --line: #ccc; --soft: #f4f4f4; --accent: #21543e; }
  body { font-size: 11px; }
  .wrap { width: 100%; }
  .site-header nav, .theme-toggle, .catalog-controls, .practice-section, .dialog-close, dialog, .skip-link { display: none !important; }
  .hero { padding-block: 30px; }
  .section { padding-block: 30px; }
  .card-gallery { grid-template-columns: repeat(9, 1fr); gap: 10px; }
  .recognition-layout { grid-template-columns: 1fr 1fr; }
  .winning-groups { grid-template-columns: repeat(4, 1fr); }
  .card-tile, .winning-group, .compare-panel, .faq-list details { break-inside: avoid; }
}
