/* ============================================================
   BLACK YAMATO — styles  (washi / editorial redesign)
   Light parchment theme · Shippori Mincho display · IBM Plex Mono labels.
   ============================================================ */

:root {
  --paper: #e4d7bd;       /* page background */
  --card: #fbf5e9;        /* panels / card frames */
  --nav: #f3e9d6;         /* nav + soft panels */
  --ink: #241a10;         /* primary text */
  --ink-2: #1c1208;       /* darkest — borders, dark buttons */
  --muted: #473b2c;       /* secondary text */
  --faint: #8a7d6a;       /* mono labels */
  --red: #b32a1e;         /* accent */
  --gold: #b08d3f;        /* metallic accent */
  --gold-text: #f0d089;
  --blue: #1c3f5f;        /* bar fills / info */
  --green: #3f6f4f;
  --plum: #5a3e6b;
  --line: rgba(36, 26, 16, 0.16);
  --line-2: rgba(36, 26, 16, 0.30);
  --line-3: rgba(36, 26, 16, 0.45);
  --shadow: 0 18px 40px rgba(28, 18, 8, 0.24);
  --shadow-sm: 0 6px 16px rgba(36, 26, 16, 0.10);
  --maxw: 1180px;
  --serif: "Shippori Mincho", serif;
  --sans: "Zen Kaku Gothic New", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 800; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
@keyframes ybpop { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- TOP BAR ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 1rem;
  padding: 14px clamp(20px, 4vw, 44px);
  background: rgba(243, 233, 214, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.7rem; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 3px;
  background: var(--red); color: var(--nav);
  font-family: var(--serif); font-weight: 800; font-size: 1.35rem; line-height: 1;
}
.brand-text { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.06em; color: var(--ink); }
.brand-text strong { color: var(--red); font-weight: 700; }
.nav { display: flex; gap: 1.5rem; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.03em; }
.nav a { color: var(--muted); transition: color 0.18s; }
.nav a:hover { color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 1.5rem; cursor: pointer; line-height: 1; }

/* ---------- HERO ---------- */
.hero { position: relative; max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) clamp(20px, 4vw, 48px) clamp(2rem, 4vw, 3rem); }
.hero-glow { display: none; }
.hero-kanji {
  position: absolute; left: clamp(8px, 2vw, 24px); top: clamp(3rem, 7vw, 6rem);
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  letter-spacing: 0.25em; color: var(--muted); opacity: 0.85; user-select: none;
}
.hero-inner { position: relative; padding-left: clamp(2.6rem, 7vw, 6rem); }
.kicker {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.22em;
  font-size: clamp(0.66rem, 1.6vw, 0.82rem); color: var(--red); font-weight: 500; margin: 0 0 1rem;
}
.hero h1 {
  font-size: clamp(3rem, 9.5vw, 6.5rem); line-height: 0.9; letter-spacing: -0.01em; margin: 0;
}
.hero h1 .accent { color: var(--red); }
.hero-sub { max-width: 44ch; color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.22rem); margin: 1.4rem 0 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.6rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 2px; font-family: var(--sans); font-weight: 700; font-size: 0.95rem;
  cursor: pointer; border: 1px solid transparent; transition: transform 0.12s, background 0.18s, color 0.18s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink-2); color: var(--nav); }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* hero stat bar */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
}
.stat-pill { padding: 1.1rem 0.4rem 1.1rem 0; }
.stat-pill + .stat-pill { padding-left: clamp(0.8rem, 2vw, 1.4rem); border-left: 1px solid var(--line); }
.stat-pill b { display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2rem); color: var(--ink); line-height: 1; }
.stat-pill span { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-top: 0.5rem; }

/* ---------- SECTIONS ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(1.8rem, 4vw, 2.6rem) clamp(20px, 4vw, 48px) clamp(2.5rem, 5vw, 3.5rem); }
.section-feature { background: linear-gradient(180deg, rgba(179, 42, 30, 0.04), transparent); }
.section-head {
  border-top: 2px solid var(--ink-2); padding-top: 22px; margin-bottom: 0.4rem;
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
}
.sec-num { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--red); white-space: nowrap; }
.section-head h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0; }
.lede { color: var(--muted); font-size: 1.02rem; max-width: 62ch; margin: 1rem 0 1.7rem; }

/* ---------- PROS / CONS ---------- */
.proscons { display: grid; gap: 1.1rem; }
.pc-col { background: var(--card); border: 1px solid var(--line-2); padding: 1.3rem 1.5rem; }
.pc-col h3 { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 1rem; font-size: 1.15rem; }
.pc-icon { font-size: 0.7rem; }
.pros { border-top: 3px solid var(--green); }
.pros h3 { color: var(--green); }
.cons { border-top: 3px solid var(--red); }
.cons h3 { color: var(--red); }
.pc-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.pc-col li b { display: block; color: var(--ink); font-size: 0.98rem; margin-bottom: 0.2rem; }
.pc-col li span { color: var(--muted); font-size: 0.9rem; }

/* ---------- TIMELINE ---------- */
.timeline { display: grid; gap: 1rem; }
.tl-step { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; background: var(--card); border: 1px solid var(--line-2); padding: 1.3rem 1.5rem; position: relative; }
.tl-step::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent, var(--gold)); }
.tl-don { text-align: center; }
.tl-don b { font-family: var(--serif); font-size: 1.7rem; color: var(--accent, var(--gold)); line-height: 1; }
.tl-don span { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; color: var(--faint); margin-top: 0.25rem; }
.tl-body h3 { margin: 0 0 0.4rem; font-size: 1.12rem; }
.tl-body p { margin: 0 0 0.7rem; color: var(--muted); font-size: 0.92rem; }
.tl-plays { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { font-family: var(--mono); font-size: 0.72rem; padding: 0.24rem 0.6rem; border-radius: 2px; background: var(--nav); border: 1px solid var(--line-2); color: var(--muted); }

/* ---------- COMBO PLAYER (loop stepper) ---------- */
.combo-player { background: var(--card); border: 1px solid var(--line-2); padding: clamp(1.2rem, 4vw, 2rem); box-shadow: var(--shadow-sm); }
.cp-tagline { color: var(--red); font-style: italic; font-family: var(--serif); margin: 0 0 1.5rem; font-size: 1.05rem; }
.cp-stage { display: grid; grid-template-columns: 150px 1fr; gap: 1.6rem; align-items: center; }
.cp-cardwrap { position: relative; }
.cp-card { aspect-ratio: 5 / 7; overflow: hidden; border: 1px solid var(--line-3); background: var(--card); padding: 8px; box-shadow: var(--shadow); }
.cp-card img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line); }
.cp-step-badge {
  position: absolute; top: -12px; left: -12px; width: 40px; height: 40px;
  background: var(--red); color: var(--nav); display: grid; place-items: center;
  font-family: var(--serif); font-weight: 800; font-size: 1.15rem; z-index: 2; box-shadow: var(--shadow-sm);
}
.cp-info h3 { margin: 0 0 0.5rem; font-size: 1.3rem; }
.cp-info p { margin: 0; color: var(--muted); }
.cp-controls { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; }
.cp-dots { display: flex; gap: 0.5rem; margin-right: auto; }
.cp-dot { width: 9px; height: 9px; border-radius: 50%; background: transparent; border: 1px solid var(--line-3); cursor: pointer; padding: 0; transition: all 0.2s; }
.cp-dot.active { background: var(--red); border-color: var(--red); }
.cp-btn { background: var(--nav); border: 1px solid var(--line-2); color: var(--ink); width: 42px; height: 42px; border-radius: 2px; font-size: 1.1rem; cursor: pointer; transition: all 0.18s; }
.cp-btn:hover:not(:disabled) { border-color: var(--ink); }
.cp-btn:disabled { opacity: 0.32; cursor: not-allowed; }

/* ---------- COUNTER SPREAD ---------- */
.counter-spread { display: flex; gap: 0.75rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.cs-bar { flex: 1 1 150px; background: var(--card); border: 1px solid var(--line-2); padding: 0.9rem 1rem; }
.cs-bar b { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; }
.cs-bar span { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); float: right; margin-top: 0.5rem; }
.cs-track { height: 5px; background: rgba(36, 26, 16, 0.12); margin-top: 0.6rem; overflow: hidden; clear: both; }
.cs-fill { height: 100%; background: var(--blue); }

/* ---------- FILTERS ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.4rem; }
.chip {
  font-size: 0.8rem; font-weight: 500; padding: 0.5rem 0.9rem; border-radius: 2px;
  background: var(--card); border: 1px solid var(--line-2); color: var(--muted); cursor: pointer;
  transition: all 0.16s; display: inline-flex; align-items: center; gap: 0.45rem;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip.active { color: var(--nav); background: var(--ink-2); border-color: var(--ink-2); }
.chip.active .dot { background: var(--nav) !important; }

/* ---------- DECK GRID ---------- */
.deck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px; }
.card { cursor: pointer; transition: transform 0.16s; }
.card:hover { transform: translateY(-5px); }
.card-art { position: relative; border: 1px solid var(--line-3); padding: 6px; background: var(--card); box-shadow: var(--shadow-sm); }
.card-art > img { width: 100%; display: block; border: 1px solid var(--line); aspect-ratio: 5/7; object-fit: cover; }
.card-art-fallback {
  aspect-ratio: 5 / 7; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 0.4rem; border: 1px solid var(--line); background: var(--nav);
}
.card-art-fallback .fb-cost { font-family: var(--serif); font-size: 2rem; font-weight: 800; color: var(--red); }
.card-art-fallback .fb-name { font-family: var(--serif); font-weight: 700; font-size: 0.95rem; color: var(--ink); padding: 0 0.4rem; }
.card-art-fallback .fb-sub { font-size: 0.68rem; color: var(--faint); }
.card-art-fallback .fb-id { font-family: var(--mono); font-size: 0.6rem; color: var(--faint); margin-top: 0.3rem; }
.card-copies {
  position: absolute; top: 12px; right: 12px; background: rgba(28, 18, 8, 0.9); color: var(--gold-text);
  font: 600 11px/1 var(--mono); padding: 5px 7px; border: 1px solid var(--gold); border-radius: 2px;
}
.card-copies.is-flex { background: var(--red); color: var(--nav); border-color: var(--red); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 6px; }
.card-cost { display: none; }
.card-meta { margin-top: 11px; }
.card-role-bar { height: 3px; width: 34px; margin-bottom: 8px; }
.card-meta .cm-name { font-family: var(--serif); font-weight: 700; font-size: 0.98rem; line-height: 1.2; }
.card-meta .cm-sub { font-family: var(--mono); font-size: 0.66rem; color: var(--red); margin-top: 0.15rem; }
.card-meta .cm-tag { font-size: 0.76rem; color: var(--faint); margin-top: 0.35rem; line-height: 1.35; }

/* ---------- MODAL ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 12, 4, 0.7); backdrop-filter: blur(5px); }
.modal-card {
  position: relative; z-index: 1; width: min(760px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--nav); border: 1px solid var(--line-3); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); animation: ybpop 0.24s ease;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 5; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(243, 233, 214, 0.92); border: 1px solid var(--line-2); color: var(--ink); cursor: pointer; font-size: 0.95rem;
}
.modal-close:hover { background: var(--red); color: var(--nav); border-color: var(--red); }
.modal-body { display: flex; flex-wrap: wrap; }
/* left — full card on a dark panel */
.mb-art { flex: 1 1 240px; min-width: 220px; max-width: 300px; background: var(--ink-2); padding: 24px; display: grid; place-items: center; }
.mb-cardframe { width: 100%; }
.mb-cardframe > img { width: 100%; height: auto; display: block; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); }
.mb-cardfallback { aspect-ratio: 5 / 7; display: flex; flex-direction: column; gap: 0.4rem; align-items: center; justify-content: center; background: #000; color: var(--nav); text-align: center; padding: 1rem; }
.mb-cardfallback .fb-name { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.mb-cardfallback .fb-id { font-family: var(--mono); font-size: 0.65rem; color: var(--faint); }
/* right — info */
.mb-content { flex: 1 1 320px; min-width: 280px; padding: 26px clamp(20px, 3vw, 32px) 32px; }
.mb-rolebar { height: 3px; width: 40px; margin-bottom: 14px; }
.mb-content h3 { font-size: 1.6rem; margin: 0; }
.mb-sub { color: var(--red); font-family: var(--mono); font-size: 0.8rem; margin-top: 0.3rem; }
.mb-roleline { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.6rem; }
.mb-statline { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.1rem 0 1.25rem; }
.mb-stat { font-family: var(--mono); font-size: 0.7rem; background: var(--card); border: 1px solid var(--line-2); padding: 0.45rem 0.6rem; color: var(--muted); }
.mb-stat b { color: var(--ink); }
.mb-cut { font-size: 0.78rem; color: #8a4b3a; background: rgba(138, 75, 58, 0.1); border-left: 3px solid #8a4b3a; padding: 0.55rem 0.75rem; margin: 0 0 1.1rem; }
.mb-block { margin-bottom: 1.2rem; }
.mb-block h4 { margin: 0 0 0.45rem; font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.lbl-blue { color: var(--blue); }
.lbl-red { color: var(--red); }
.lbl-muted { color: var(--faint); }
.lbl-plum { color: var(--plum); }
.mb-block p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.mb-block p.mb-effect { color: var(--ink); background: var(--card); border-left: 3px solid var(--blue); padding: 0.7rem 0.9rem; }
.mb-block p.mb-quote { font-style: italic; color: var(--ink); }
.mb-list { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.mb-list li { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

/* ---------- COMBO REFERENCE ---------- */
.combo { background: var(--card); border: 1px solid var(--line-2); padding: clamp(1.2rem, 4vw, 1.8rem); margin-bottom: 1.4rem; }
.combo-head { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; margin-bottom: 1rem; }
.combo-don { display: grid; place-items: center; text-align: center; min-width: 56px; padding: 0.5rem 0.4rem; background: var(--nav); border: 1px solid var(--line-2); }
.combo-don b { font-family: var(--serif); font-weight: 700; font-size: 1.7rem; line-height: 1; }
.combo-don span { font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.16em; color: var(--faint); margin-top: 0.2rem; }
.combo-titlewrap h3 { margin: 0.1rem 0 0.3rem; font-size: 1.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.combo-tagpill { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; color: var(--nav); background: var(--red); padding: 0.22rem 0.5rem; border-radius: 2px; }
.combo-setup { margin: 0.2rem 0; font-size: 0.85rem; color: var(--plum); }
.combo-setup b { color: var(--plum); }
.combo-note { margin: 0.2rem 0; font-size: 0.88rem; color: var(--muted); font-style: italic; }
.combo-flow { margin-bottom: 1.1rem; border: 1px solid var(--line-3); background: var(--ink-2); padding: 8px; box-shadow: var(--shadow-sm); }
.combo-flow-img { width: 100%; height: auto; display: block; }
.combo-thumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.1rem; }
.combo-thumb { width: 52px; border: 1px solid var(--line-3); background: var(--card); padding: 3px; cursor: pointer; transition: transform 0.15s; }
.combo-thumb:hover { transform: translateY(-3px); }
.combo-thumb img { width: 100%; aspect-ratio: 5/7; object-fit: cover; }
.combo-ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.5rem; }
.combo-ol li { color: var(--muted); font-size: 0.92rem; padding-left: 0.2rem; }
.combo-ol li::marker { color: var(--red); font-family: var(--serif); font-weight: 700; }
.combo-variant { margin: 1rem 0 0; font-size: 0.86rem; color: var(--muted); background: var(--nav); border-left: 3px solid var(--gold); padding: 0.6rem 0.9rem; }
.combo-variant b { color: var(--ink); }

/* ---------- STRATEGY ---------- */
.fourdrop { background: var(--card); border: 1px solid var(--line-2); border-top: 3px solid var(--gold); padding: 1.3rem 1.5rem; margin-bottom: 1.6rem; }
.fourdrop > h3 { margin: 0 0 1rem; font-size: 1.2rem; }
.fourdrop-grid { display: grid; gap: 0.9rem; }
.fourdrop-card { background: var(--nav); border: 1px solid var(--line-2); padding: 0.9rem 1rem; }
.fourdrop-card h4 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.fourdrop-card p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.strat-grid { display: grid; gap: 1rem; }
.strat-block { display: grid; grid-template-columns: auto 1fr; gap: 1rem; background: var(--card); border: 1px solid var(--line-2); padding: 1.2rem 1.4rem; }
.strat-num { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--red); }
.strat-block h3 { margin: 0 0 0.4rem; font-size: 1.12rem; }
.strat-block p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* ---------- MULLIGAN ---------- */
.mull-rec { display: inline-block; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--nav); background: var(--ink-2); padding: 0.55rem 1.2rem; border-radius: 2px; margin-bottom: 1rem; }
.mull-text { color: var(--muted); margin: 0 0 1.6rem; max-width: 62ch; }
.mull-keep { margin-top: 1.6rem; background: var(--card); border: 1px solid var(--line-2); padding: 1.3rem 1.5rem; }
.mull-keep h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.mull-keep > p { color: var(--muted); margin: 0 0 0.9rem; font-size: 0.92rem; }
.mull-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.tag.keep { border-color: var(--green); color: var(--green); background: rgba(63, 111, 79, 0.08); font-family: var(--sans); font-weight: 600; }
.mull-notes { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.mull-notes li { color: var(--muted); font-size: 0.9rem; }
.mull-notes li::marker { color: var(--red); }

/* ---------- OPENING HANDS ---------- */
.oh-title { margin: 2.2rem 0 0.3rem; font-size: 1.4rem; }
.oh-sub { color: var(--muted); font-size: 0.95rem; margin: 0 0 1.4rem; }
.oh-group { margin-bottom: 1.6rem; }
.oh-grouphead { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 0.9rem; font-weight: 600; }
.oh-grouphead.keep { color: var(--green); }
.oh-grouphead.mull { color: var(--red); }
.hand { background: var(--card); border: 1px solid var(--line-2); padding: 1rem 1.2rem; margin-bottom: 0.9rem; border-left: 3px solid var(--line-2); }
.hand.keep { border-left-color: var(--green); }
.hand.mull { border-left-color: var(--red); }
.hand-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.8rem; }
.hand-verdict { font-family: var(--mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.06em; color: var(--nav); padding: 0.24rem 0.55rem; border-radius: 2px; }
.hand-verdict.keep { background: var(--green); }
.hand-verdict.mull { background: var(--red); }
.hand-title { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.hand-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.45rem; margin-bottom: 0.8rem; max-width: 360px; }
.hand-thumb { border: 1px solid var(--line-3); background: var(--card); padding: 3px; cursor: pointer; transition: transform 0.15s; }
.hand-thumb:hover { transform: translateY(-3px); }
.hand-thumb img { width: 100%; aspect-ratio: 5/7; object-fit: cover; }
.hand-text { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- MATCHUPS ---------- */
.matchup { background: var(--card); border: 1px solid var(--line-2); margin-bottom: 0.6rem; overflow: hidden; }
.matchup-head { width: 100%; display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1.1rem; background: none; border: 0; border-left: 4px solid var(--tier, var(--gold)); color: inherit; cursor: pointer; text-align: left; transition: background 0.16s; }
.matchup-head:hover { background: var(--nav); }
.mu-badge { width: 44px; height: 44px; flex-shrink: 0; color: var(--nav); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 0.85rem; border-radius: 2px; }
.mu-headinfo { flex: 1 1 auto; min-width: 0; }
.mu-name { display: block; font-family: var(--serif); font-weight: 700; font-size: 1rem; }
.mu-meta { display: flex; gap: 0.6rem; align-items: center; margin-top: 0.25rem; flex-wrap: wrap; }
.mu-tier { font-family: var(--mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--nav); padding: 0.24rem 0.45rem; border-radius: 2px; }
.mu-setline { font-family: var(--mono); font-size: 0.7rem; color: var(--faint); }
.mu-difficulty { font-size: 0.8rem; color: var(--faint); text-align: right; }
.matchup-body { display: none; padding: 0.25rem 1.25rem 1.4rem; animation: ybfade 0.25s ease; }
.matchup.open .matchup-body { display: block; }
.mu-overview { color: var(--ink); font-size: 0.92rem; margin: 0.4rem 0 1.1rem; }
.mu-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem; margin-bottom: 1.2rem; }
.mu-quick > div { background: var(--nav); border: 1px solid var(--line); padding: 0.65rem 0.75rem; }
.mu-quick h4 { margin: 0 0 0.3rem; font-family: var(--mono); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); font-weight: 600; }
.mu-quick p { margin: 0; font-size: 0.82rem; color: var(--ink); }
.mu-block { margin-bottom: 1rem; }
.mu-block h4 { margin: 0 0 0.5rem; font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--red); font-weight: 600; }
.mu-block.plan h4 { color: var(--blue); }
.mu-block p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.65; }
.mu-block ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.45rem; }
.mu-block li { color: var(--muted); font-size: 0.85rem; line-height: 1.55; }
.mu-block li::marker { color: var(--red); }
@media (max-width: 560px) { .mu-difficulty { display: none; } }

/* ---------- DECK UPDATES ---------- */
.deck-update { margin-top: 1.8rem; background: var(--card); border: 1px solid var(--line-2); padding: 1.3rem 1.5rem; }
.du-head { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.du-date { font-family: var(--mono); font-size: 0.72rem; color: var(--nav); background: var(--ink-2); padding: 0.24rem 0.6rem; border-radius: 2px; }
.du-head h3 { margin: 0; font-size: 1.2rem; }
.du-intro { color: var(--muted); font-size: 0.92rem; margin: 0.7rem 0 1.1rem; }
.du-list { display: grid; gap: 0.7rem; }
.du-change { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; }
.du-tag { font-family: var(--mono); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.06em; color: var(--nav); padding: 0.24rem 0.5rem; border-radius: 2px; margin-top: 0.1rem; }
.du-change p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.du-detail { margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid var(--line-2); }
.du-detail h4 { margin: 0 0 0.6rem; font-size: 1.1rem; color: var(--red); }
.du-curvelabel { margin: 0 0 0.7rem; font-size: 0.9rem; color: var(--muted); }
.du-curve { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.du-curve-step { display: grid; grid-template-columns: 58px 1fr; gap: 0.8rem; align-items: center; background: var(--nav); border: 1px solid var(--line-2); padding: 0.45rem 0.7rem; }
.du-curve-don { font-family: var(--serif); font-weight: 700; font-size: 0.95rem; color: var(--red); text-align: center; }
.du-curve-play { font-size: 0.9rem; color: var(--ink); }
.du-philosophy { margin: 0 0 0.9rem; font-size: 0.92rem; color: var(--muted); }
.du-points { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.55rem; }
.du-points li { color: var(--muted); font-size: 0.9rem; }
.du-points li::marker { color: var(--red); }

/* ---------- FOOTER ---------- */
.footer { border-top: 2px solid var(--ink-2); margin-top: 2rem; padding: 2rem clamp(20px, 4vw, 48px); max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.footer p { max-width: 64ch; margin: 0; color: var(--faint); font-family: var(--mono); font-size: 0.74rem; line-height: 1.7; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
  .nav { position: fixed; inset: 69px 0 auto 0; flex-direction: column; gap: 0; background: var(--nav); border-bottom: 1px solid var(--line-2); padding: 0.3rem 0; transform: translateY(-130%); transition: transform 0.25s; }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 0.9rem 1.5rem; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .cp-stage { grid-template-columns: 104px 1fr; gap: 1rem; }
  .hero-inner { padding-left: 2.4rem; }
}
@media (min-width: 721px) {
  .proscons { grid-template-columns: 1fr 1fr; }
  .fourdrop-grid { grid-template-columns: repeat(3, 1fr); }
  .strat-grid { grid-template-columns: 1fr 1fr; }
  .mu-quick { grid-template-columns: repeat(3, 1fr); }
}
