/* Double Skunk card guide pages (/powerups, /consumables).
   Chrome mirrors the landing page; guide layout below. Family accent
   color comes from the catalog via an inline --fam-hue property. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--skunk-ink);
  background-image: var(--cribbage-holes);
  background-size: 40px 40px;
  color: var(--fg-1);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 32px; }

/* ---- Kerrberry domain bar ---- */
.kb-bar { background: #08070a; border-bottom: 1px solid var(--border-hair);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--fg-4); }
.kb-bar-inner { max-width: 1040px; margin: 0 auto; padding: 8px 32px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.kb-sep { color: var(--fg-4); opacity: 0.5; }
.kb-here { color: var(--brass-glow); }
.kb-spacer { flex: 1; }
.kb-bar a { color: var(--fg-3); text-decoration: none; border-bottom: 1px dotted var(--fg-4); transition: color 160ms, border-color 160ms; }
.kb-bar a:hover { color: var(--chalk); border-bottom-color: var(--chalk-4); }

/* ---- Nav ---- */
.nav { position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--skunk-ink) 92%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-hair); }
.nav-inner { max-width: 1040px; margin: 0 auto; padding: 12px 32px;
  display: flex; align-items: center; gap: 18px; }
.nav-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand img { width: 38px; height: 38px; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6)); }
.nav-brand .nb-name { font-family: var(--font-display); font-size: 17px; color: var(--chalk); line-height: 1; }
.nav-spacer { flex: 1; }
.nav-link { font-family: var(--font-sign); font-weight: 800; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3);
  text-decoration: none; border-bottom: 1px dotted var(--fg-4); transition: color 160ms, border-color 160ms; }
.nav-link:hover { color: var(--chalk); border-bottom-color: var(--chalk-4); }
.nav-link[aria-current="page"] { color: var(--chalk); border-bottom: 2px solid var(--brass); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  border-radius: 10px; font-family: var(--font-sign); font-weight: 800; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; border: 0; cursor: pointer;
  transition: transform 80ms, box-shadow 160ms, background 160ms, color 160ms; }
.nav-cta.pop { color: var(--chalk);
  background: linear-gradient(180deg, var(--brass-bright), var(--brass) 65%, var(--brass-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), inset 0 -2px 0 rgba(0,0,0,0.30), 0 6px 14px -6px rgba(210,75,58,0.55); }
.nav-cta.pop:hover { transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.30), inset 0 -2px 0 rgba(0,0,0,0.30), 0 10px 22px -6px rgba(210,75,58,0.7); }
.nav-cta:active { transform: translateY(1px); }
.nav-cta .star { color: var(--chalk); }

/* ---- CTA buttons (guide footer) ---- */
.cta { display: inline-flex; align-items: center; gap: 12px; padding: 16px 22px; border-radius: 12px;
  font-family: var(--font-sign); font-weight: 800; font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase; text-decoration: none; border: 0; cursor: pointer; transition: transform 80ms, box-shadow 160ms; }
.cta.pop { color: var(--chalk);
  background: linear-gradient(180deg, var(--brass-bright), var(--brass) 60%, var(--brass-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.30), inset 0 -2px 0 rgba(0,0,0,0.35), 0 10px 24px -8px rgba(210,75,58,0.65); }
.cta.pop:hover { transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), inset 0 -2px 0 rgba(0,0,0,0.35), 0 16px 32px -8px rgba(210,75,58,0.75); }
.cta:active { transform: translateY(1px); }
.cta .glyph { font-size: 16px; line-height: 1; }

/* ---- Guide header ---- */
.guide-head { padding: 56px 0 8px; }
.guide-head .kicker { font-family: var(--font-sign); font-weight: 800; font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--pop-ruby); }
.guide-head h1 { font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 5vw, 52px); line-height: 1.02; color: var(--chalk); margin: 10px 0 0; }
.guide-head .lede { font-family: var(--font-body); font-size: 17px; line-height: 1.55;
  color: var(--fg-2); max-width: 640px; margin: 16px 0 0; }
.guide-how { margin-top: 28px; padding: 24px 28px; border-radius: 14px; max-width: 760px;
  background: var(--surface-base); border: 1px solid var(--border-hair); box-shadow: var(--shadow-card); }
.guide-how p { font-family: var(--font-body); font-size: 15px; line-height: 1.6; color: var(--fg-2); margin: 0; }
.guide-how ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.guide-how li { font-family: var(--font-body); font-size: 14px; line-height: 1.55; color: var(--fg-2);
  padding-left: 16px; position: relative; }
.guide-how li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px;
  border-radius: 1px; background: var(--brass); transform: rotate(45deg); }
.guide-how b { color: var(--chalk); font-weight: 600; }

/* ---- Jump strip ---- */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 8px; }
.jump a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-family: var(--font-sign); font-weight: 800; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-2); text-decoration: none;
  background: var(--surface-base); border: 1px solid var(--border-hair);
  transition: border-color 160ms, color 160ms, transform 80ms; }
.jump a:hover { color: var(--chalk); border-color: var(--fam-hue, var(--brass)); transform: translateY(-1px); }
.jump .dot { width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg);
  background: var(--fam-hue, var(--brass)); }

/* ---- Family / class sections ---- */
.gfam { padding: 44px 0 8px; scroll-margin-top: 76px; }
.gfam-head { border-left: 3px solid var(--fam-hue, var(--brass)); padding-left: 18px; }
.gfam-head .kicker { font-family: var(--font-sign); font-weight: 800; font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--fam-hue, var(--brass)); }
.gfam-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 34px;
  color: var(--chalk); margin: 8px 0 0; }
.gfam-head .sub { font-family: var(--font-body); font-size: 15px; line-height: 1.55;
  color: var(--fg-3); max-width: 620px; margin: 10px 0 0; }

/* ---- Card grid ---- */
.gcard-grid { list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gcard { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 20px;
  border-radius: 16px; background: var(--surface-base); border: 1px solid var(--border-hair);
  box-shadow: var(--shadow-card); scroll-margin-top: 90px; transition: border-color 180ms ease; }
.gcard:hover { border-color: color-mix(in srgb, var(--fam-hue, var(--brass)) 55%, var(--border-hair)); }
.gcard:target { border-color: var(--fam-hue, var(--brass)); }
.gcard-art img { width: 100%; height: auto; display: block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.5)); }
.gcard-name { font-family: var(--font-display); font-weight: 400; font-size: 20px;
  color: var(--chalk); margin: 0; }
.gcard-tagline { font-family: var(--font-body); font-style: italic; font-size: 13.5px;
  line-height: 1.5; color: var(--fg-3); margin: 6px 0 0; }
.gcard-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em;
  color: var(--fg-2); background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--border-hair); }
.badge.rarity-common { color: var(--rarity-common); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rarity-common) 45%, transparent); }
.badge.rarity-uncommon { color: var(--rarity-uncommon); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rarity-uncommon) 45%, transparent); }
.badge.rarity-rare { color: var(--rarity-rare); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rarity-rare) 45%, transparent); }
.badge.rarity-legendary { color: var(--rarity-legendary); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rarity-legendary) 45%, transparent); }
.badge.rarity-mythic { color: var(--rarity-mythic); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rarity-mythic) 45%, transparent); }
.badge.cat-offense { color: var(--pop-ruby); }
.badge.cat-economy { color: var(--gold); }
.badge.cat-tempo-control { color: var(--seal-blue); }
.badge.cat-disruption { color: var(--pop-violet); }
.badge.cat-utility { color: var(--seal-jade); }
.badge.cat-defense { color: var(--pop-mint); }
.badge.window { color: var(--seal-purple); }
.badge.price { color: var(--gold); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 40%, transparent); }

/* ---- Detail lines ---- */
.gcard-levels { list-style: none; counter-reset: lvl; margin: 14px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 7px; }
.gcard-levels li { counter-increment: lvl; font-family: var(--font-body); font-size: 13.5px;
  line-height: 1.5; color: var(--fg-2); padding-left: 40px; position: relative; }
.gcard-levels li::before { content: "Lv" counter(lvl); position: absolute; left: 0; top: 1px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em;
  color: var(--fam-hue, var(--brass));
  border: 1px solid color-mix(in srgb, var(--fam-hue, var(--brass)) 45%, transparent);
  border-radius: 5px; padding: 1px 5px; }
.gcard-desc { font-family: var(--font-body); font-size: 14px; line-height: 1.55;
  color: var(--fg-2); margin: 14px 0 0; }

/* ---- Guide footer band ---- */
.guide-foot { padding: 56px 0 72px; text-align: center; }
.guide-foot .colophon { font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.04em; color: var(--fg-4); margin: 0; }
.guide-foot .crosslink { font-family: var(--font-body); font-size: 15px;
  color: var(--fg-2); margin: 14px 0 24px; }
.guide-foot .crosslink a { color: var(--brass-glow); text-decoration: none;
  border-bottom: 1px dotted var(--brass); }
.guide-foot .crosslink a:hover { color: var(--chalk); }

/* ---- Footer ---- */
.foot { background: #08070a; border-top: 1px solid var(--border-hair); padding: 36px 0 32px; margin-top: 24px; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-brand { display: inline-flex; align-items: center; gap: 12px; }
.foot-brand img { width: 32px; height: 32px; }
.foot-brand .fb-name { font-family: var(--font-display); font-size: 15px; color: var(--chalk); line-height: 1; }
.foot-brand .fb-by { font-family: var(--font-sign); font-weight: 800; font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--fg-4); margin-top: 4px; display: block; line-height: 1; }
.foot-brand .fb-by a { color: var(--fg-3); text-decoration: none; border-bottom: 1px dotted var(--fg-4); }
.foot-brand .fb-by a:hover { color: var(--chalk); }
.foot-fine { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--fg-4); }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .gcard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-link { display: none; }
  .gcard { grid-template-columns: 120px 1fr; gap: 14px; padding: 14px; }
}
@media (max-width: 420px) {
  .gcard { grid-template-columns: 1fr; }
  .gcard-art { max-width: 200px; }
}
