/* ==========================================================================
   POKEHIT Card Archive — premium theme
   공용 스타일 (홈 + 각 도감 페이지 헤더/푸터)
   ========================================================================== */
@import url('/assets/fonts/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+KR:wght@600;700&display=swap');

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* surfaces */
  --paper: #f6f3ee;
  --paper-2: #eee9e1;
  --surface: #fff;
  /* text */
  --ink: #16141b;
  --ink-2: #36333d;
  --muted: #67636e;
  /* lines */
  --line: #e4ded4;
  --line-strong: #cfc6b8;
  /* champagne gold — decorative; --gold-ink for text on light */
  --gold: #b48a4a;
  --gold-soft: #efe4cf;
  --gold-ink: #7a5a26;
  /* night (hero, footer, photo viewer) */
  --night: #121116;
  --night-2: #1d1b23;
  --night-text: #f4efe6;
  --night-muted: #b3aca1;
  /* legacy aliases used by older stylesheets */
  --page: var(--paper);
  --accent: var(--ink);
  --accent-hover: #000;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgb(22 20 27 / .06), 0 2px 8px rgb(22 20 27 / .04);
  --shadow: 0 2px 4px rgb(22 20 27 / .04), 0 14px 34px -14px rgb(22 20 27 / .22);
  --shadow-lg: 0 4px 10px rgb(22 20 27 / .06), 0 30px 70px -24px rgb(22 20 27 / .38);
  --ease-out: cubic-bezier(.23, 1, .32, 1);

  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --heading: var(--sans);
  --body: var(--sans);

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
button, input, select { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--gold-soft); color: var(--ink); }

.shell { width: min(var(--container), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  transform: translateY(-160%);
  padding: 12px 16px; border-radius: 10px;
  background: var(--ink); color: var(--paper);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(246 243 238 / .84);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgb(22 20 27 / .07);
}
.header-inner { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: block; }
.brand img { width: 128px; height: auto; }
.store-link {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 16px 0 18px;
  border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 600 14px/1 var(--sans); letter-spacing: -.01em;
  transition: background 180ms ease, transform 180ms var(--ease-out);
}
.store-link::after {
  content: ''; width: 6px; height: 6px;
  border: solid currentColor; border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: stretch;
  min-height: 500px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 55% 75% at 74% 70%, #3b3243 0%, transparent 70%),
    radial-gradient(ellipse 45% 60% at 8% 0%, #2a2530 0%, transparent 70%),
    linear-gradient(160deg, #1c1a21 0%, #0f0e13 72%);
  color: var(--night-text);
  box-shadow: var(--shadow-lg);
}
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 3;
  border-radius: inherit;
  border: 1px solid rgb(212 180 120 / .2);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-copy {
  position: relative; z-index: 2;
  align-self: center;
  padding: 64px 0 64px clamp(28px, 5vw, 76px);
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  color: var(--gold);
  font: 600 12px/1 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
}
.hero-eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.hero-title {
  margin-top: 26px;
  font: 700 clamp(44px, 5.2vw, 76px)/1.06 var(--sans);
  letter-spacing: -.04em;
}
.hero-brand {
  display: block;
  margin-bottom: .4em;
  color: #cfc6b8;
  font-size: .4em;
  font-weight: 500;
  letter-spacing: -.01em;
}
.hero-name { display: block; color: var(--night-text); }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero-name {
    width: fit-content;
    background: linear-gradient(100deg, #fffdf8 0%, #f1e4c8 48%, #c9a465 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
@media (forced-colors: active) { .hero-name { color: CanvasText; } }
.hero-description {
  max-width: 32ch;
  margin: 22px 0 34px;
  color: var(--night-muted);
  font-size: 17px;
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero-action, .hero-link {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px;
  font: 600 15px/1 var(--sans);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 220ms var(--ease-out);
}
.hero-action {
  background: var(--night-text); color: var(--ink);
  box-shadow: 0 10px 28px -10px rgb(0 0 0 / .7), inset 0 -1px 0 rgb(0 0 0 / .1);
}
.hero-action::after {
  content: ''; width: 7px; height: 7px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.hero-link { border: 1px solid rgb(244 239 230 / .22); color: #e4dccf; }
.hero .hero-action:focus-visible, .hero .hero-link:focus-visible { outline-color: var(--gold); }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin: 44px 0 0; padding: 0;
  list-style: none;
  color: #a69f94;
  font-size: 13px;
}
.hero-points li { display: inline-flex; align-items: center; }
.hero-points li::before {
  content: ''; width: 5px; height: 5px;
  margin-right: 9px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* card fan */
.hero-art { position: relative; z-index: 1; min-height: 440px; }
.card-orbit {
  position: absolute;
  left: 50%; bottom: 7%;
  width: 82%; aspect-ratio: 3.2;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(214 178 112 / .34), rgb(214 178 112 / .08) 60%, transparent);
  pointer-events: none;
}
.card-orbit::before {
  content: '';
  position: absolute; inset: 18% 6%;
  border-radius: 50%;
  border: 1px solid rgb(214 178 112 / .28);
}
.card-orbit::after {
  content: '';
  position: absolute;
  left: 50%; top: -260%;
  width: 70%; height: 300%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 60% at 50% 70%, rgb(255 244 222 / .13), transparent 70%);
}
.hero-gallery {
  --w: clamp(118px, 11vw, 160px);
  position: absolute; inset: 0;
  margin: 0; padding: 0;
  list-style: none;
}
.hero-card {
  position: absolute;
  left: calc(50% - var(--w) / 2);
  bottom: 20%;
  width: var(--w);
  aspect-ratio: 63 / 88;
  margin: 0;
  overflow: hidden;
  border-radius: 5.4% / 3.9%;
  background: #24212a;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / .1),
    0 2px 6px rgb(0 0 0 / .45),
    0 26px 44px -14px rgb(0 0 0 / .75);
  transform-origin: 50% 260%;
  transform: rotate(var(--r)) translateY(var(--lift, 0));
  transition: transform 520ms var(--ease-out);
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card:nth-child(1) { --r: -24deg; --i: 0; z-index: 1; }
.hero-card:nth-child(2) { --r: -16deg; --i: 1; z-index: 2; }
.hero-card:nth-child(3) { --r: -8deg;  --i: 2; z-index: 3; }
.hero-card:nth-child(4) { --r: 0deg;   --i: 3; z-index: 7; --lift: -18px; }
.hero-card:nth-child(5) { --r: 8deg;   --i: 4; z-index: 6; }
.hero-card:nth-child(6) { --r: 16deg;  --i: 5; z-index: 5; }
.hero-card:nth-child(7) { --r: 24deg;  --i: 6; z-index: 4; }
.hero-card:nth-child(4) { box-shadow: 0 0 0 1px rgb(255 236 200 / .3), 0 2px 6px rgb(0 0 0 / .45), 0 34px 60px -16px rgb(0 0 0 / .85), 0 0 60px -10px rgb(214 178 112 / .35); }

@media (hover: hover) and (pointer: fine) {
  .hero-art:hover .hero-card { transform: rotate(calc(var(--r) * 1.12)) translateY(var(--lift, 0)); }
  .hero-art .hero-card:hover { transform: rotate(calc(var(--r) * 1.12)) translateY(calc(var(--lift, 0px) - 22px)); }
  .store-link:hover { background: #000; }
  .hero-action:hover { background: #fff; }
  .hero-link:hover { border-color: rgb(244 239 230 / .5); color: #fff; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-card { animation: deal-card 900ms var(--ease-out) calc(var(--i) * 70ms + 120ms) backwards; }
  .hero-card:nth-child(4)::after {
    content: '';
    position: absolute; inset: 0;
    pointer-events: none;
    background: linear-gradient(112deg, transparent 32%, rgb(255 236 246 / .38) 45%, rgb(255 255 255 / .62) 50%, rgb(214 222 255 / .38) 55%, transparent 68%);
    opacity: 0;
    animation: foil-sheen 1100ms var(--ease-out) 1000ms;
  }
  @media (hover: hover) and (pointer: fine) {
    .hero-card::after {
      content: '';
      position: absolute; inset: 0;
      pointer-events: none;
      background: linear-gradient(112deg, transparent 32%, rgb(255 255 255 / .45) 50%, transparent 68%);
      transform: translateX(-110%);
      opacity: 0;
    }
    .hero-card:hover::after { animation: foil-sheen 900ms var(--ease-out); }
  }
  .hero-action:hover, .hero-link:hover { transform: translateY(-1px); }
  @keyframes deal-card {
    from { opacity: 0; transform: rotate(0deg) translateY(40px); }
  }
  @keyframes foil-sheen {
    from { transform: translateX(-110%); opacity: 0; }
    25% { opacity: 1; }
    to { transform: translateX(110%); opacity: 0; }
  }
}

/* ---------- Section heading ---------- */
.section-eyebrow {
  flex-basis: 100%;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 4px;
  color: var(--gold-ink);
  font: 600 12px/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
}
.section-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
h2 { font: 700 clamp(28px, 3.2vw, 40px)/1.18 var(--sans); letter-spacing: -.035em; }

/* ---------- Catalog index ---------- */
.catalog { padding: 96px 0 64px; scroll-margin-top: 72px; }
.catalog-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.catalog-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.result-count { color: var(--muted); font: 500 15px/1.4 var(--sans); font-variant-numeric: tabular-nums; }

.search { position: relative; width: min(100%, 320px); }
.search input {
  width: 100%; height: 48px;
  padding: 0 18px 0 46px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgb(180 138 74 / .18); }
.search-icon {
  position: absolute; left: 18px; top: 16px;
  width: 14px; height: 14px;
  border: 1.6px solid var(--ink-2); border-radius: 50%;
  pointer-events: none;
}
.search-icon::after {
  content: ''; position: absolute;
  width: 6px; height: 1.6px; top: 12px; left: 10px;
  background: var(--ink-2); transform: rotate(45deg);
}

.catalog-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 22px;
}
.catalog-item { min-width: 0; }
.catalog-card {
  position: relative;
  display: flex; flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
  transition: box-shadow 320ms var(--ease-out), transform 320ms var(--ease-out);
}
.catalog-card:focus-visible { outline-offset: 4px; }
.catalog-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
}
.catalog-media::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 -1px 0 rgb(22 20 27 / .07);
  pointer-events: none;
}
.catalog-art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 41%;
  transition: transform 700ms var(--ease-out);
}
.catalog-pokemon .catalog-art { object-position: 51% 43%; }
.catalog-onepiece .catalog-art { object-position: 51% 44%; }
.catalog-nikke .catalog-art { object-position: 50% 32%; }
.catalog-dragonball .catalog-art { object-position: 50% 39%; }
.catalog-naruto .catalog-art { object-position: 50% 34%; }
.catalog-rezero .catalog-art { object-position: 50% 22%; }
.catalog-conan .catalog-art { object-position: 50% 35%; }
.catalog-card-copy { display: flex; flex-direction: column; padding: 18px 20px 18px; }
h3 { margin: 0 0 2px; font: 700 21px/1.28 var(--sans); letter-spacing: -.03em; }
.catalog-subtitle {
  color: var(--muted);
  font: italic 500 17px/1.25 var(--serif);
  letter-spacing: .005em;
}
.catalog-card-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.catalog-details { color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.card-action {
  position: relative; flex: none;
  width: 34px; height: 34px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  color: var(--ink);
  font-size: 0;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}
.card-action::before {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 7px; height: 7px;
  border: solid currentColor; border-width: 1.5px 1.5px 0 0;
  transform: translateX(-1px) rotate(45deg);
}
/* 대표 도감 타일: 도감 수(N)가 바뀌어도 마지막 줄이 비지 않도록 nth-last-child로 자동 배치
   데스크톱 4열 · 태블릿 3열 · 모바일 2열 */
@media (min-width: 1051px) {
  /* 큰 타일(2×2): 1번은 항상, 2번은 N≡2 (mod 4)일 때 */
  .catalog-item:first-child,
  .catalog-item:nth-child(2):nth-last-child(4n+1) { grid-column: span 2; grid-row: span 2; }
  .catalog-item:first-child .catalog-media,
  .catalog-item:nth-child(2):nth-last-child(4n+1) .catalog-media { aspect-ratio: auto; flex: 1 1 auto; min-height: 300px; }
  .catalog-item:first-child .catalog-card-copy,
  .catalog-item:nth-child(2):nth-last-child(4n+1) .catalog-card-copy { padding: 24px 28px; }
  .catalog-item:first-child h3,
  .catalog-item:nth-child(2):nth-last-child(4n+1) h3 { font-size: 32px; }
  .catalog-item:first-child .catalog-subtitle,
  .catalog-item:nth-child(2):nth-last-child(4n+1) .catalog-subtitle { font-size: 22px; }
  .catalog-item:first-child .catalog-details,
  .catalog-item:nth-child(2):nth-last-child(4n+1) .catalog-details { font-size: 14px; }
  .catalog-item:first-child .card-action,
  .catalog-item:nth-child(2):nth-last-child(4n+1) .card-action { width: 42px; height: 42px; }
  /* 가로 타일(2×1): N≡0 → 2번, N≡3 → 2·3번 */
  .catalog-item:nth-child(2):nth-last-child(4n+3),
  .catalog-item:nth-child(2):nth-last-child(4n+2),
  .catalog-item:nth-child(3):nth-last-child(4n+1) { grid-column: span 2; }
  .catalog-item:nth-child(2):nth-last-child(4n+3) .catalog-media,
  .catalog-item:nth-child(2):nth-last-child(4n+2) .catalog-media,
  .catalog-item:nth-child(3):nth-last-child(4n+1) .catalog-media { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; }
}
@media (min-width: 741px) and (max-width: 1050px) {
  /* 한 줄 전체 타일: N≡1 → 1번, N≡2 → 1·2번 (mod 3) */
  .catalog-item:nth-child(1):nth-last-child(3n+1),
  .catalog-item:nth-child(1):nth-last-child(3n+2),
  .catalog-item:nth-child(2):nth-last-child(3n+1) { grid-column: 1 / -1; }
  .catalog-item:nth-child(1):nth-last-child(3n+1) .catalog-media,
  .catalog-item:nth-child(1):nth-last-child(3n+2) .catalog-media,
  .catalog-item:nth-child(2):nth-last-child(3n+1) .catalog-media { aspect-ratio: 21 / 9; }
  .catalog-item:nth-child(1):nth-last-child(3n+1) h3,
  .catalog-item:nth-child(1):nth-last-child(3n+2) h3,
  .catalog-item:nth-child(2):nth-last-child(3n+1) h3 { font-size: 26px; }
}
@media (max-width: 740px) {
  /* 한 줄 전체 타일: 1번은 항상, N이 짝수면 2번도 */
  .catalog-item:first-child,
  .catalog-item:nth-child(2):nth-last-child(2n+1) { grid-column: 1 / -1; }
  .catalog-item:first-child .catalog-media,
  .catalog-item:nth-child(2):nth-last-child(2n+1) .catalog-media { aspect-ratio: 16 / 9; }
  .catalog-item:first-child .catalog-card-copy,
  .catalog-item:nth-child(2):nth-last-child(2n+1) .catalog-card-copy { padding: 16px 18px 18px; }
  .catalog-item:first-child h3,
  .catalog-item:nth-child(2):nth-last-child(2n+1) h3 { font-size: 22px; }
  .catalog-item:first-child .catalog-subtitle,
  .catalog-item:nth-child(2):nth-last-child(2n+1) .catalog-subtitle { font-size: 17px; }
}

@media (hover: hover) and (pointer: fine) {
  .catalog-card:hover { box-shadow: 0 0 0 1px var(--line-strong), var(--shadow); }
  .catalog-card:hover .card-action { background: var(--ink); border-color: var(--ink); color: var(--paper); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .catalog-card:hover { transform: translateY(-4px); }
  .catalog-card:hover .catalog-art { transform: scale(1.045); }
}

.empty {
  padding: 56px 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  text-align: center;
  color: var(--muted);
}
.empty button {
  margin-top: 16px; min-height: 44px; padding: 0 20px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font-weight: 600; cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #a29b90; }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 8px 24px;
  min-height: 104px; padding-block: 32px;
  font-size: 13px;
}
.footer-inner span { color: var(--night-text); font: 700 14px/1.4 var(--sans); letter-spacing: .16em; }

/* ---------- Copyright notice ---------- */
.content-notice {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 20px;
  margin: 8px 0 80px;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--ink-2);
  scroll-margin: 24px;
}
.content-notice-mark {
  grid-row: 1 / 3;
  align-self: start;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-ink);
  font: 500 19px/1 var(--sans);
}
.content-notice-mark span { transform: translateY(1px); }
#content-notice-title {
  align-self: center;
  color: var(--ink);
  font: 700 18px/1.45 var(--sans);
  letter-spacing: -.025em;
}
.content-notice-copy, .content-notice details { grid-column: 2; }
.content-notice-copy { margin-top: 6px; }
.content-notice p { color: var(--muted); font: 400 14px/1.75 var(--sans); }
.content-notice summary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font: 600 13px/1.4 var(--sans);
  cursor: pointer; list-style: none;
}
.content-notice summary::-webkit-details-marker { display: none; }
.content-notice summary::after {
  content: ''; width: 6px; height: 6px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.content-notice details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.content-notice summary:hover { border-color: var(--ink); }
.content-notice details p { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (min-width: 761px) {
  .content-notice h2, .content-notice-copy { padding-right: 180px; }
  .content-notice summary { position: absolute; right: 32px; top: 28px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1050px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 440px; }
  .hero-gallery { --w: clamp(96px, 11.5vw, 124px); }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 740px) {
  .header-inner { min-height: 60px; }
  .brand img { width: 112px; }
  .store-link { min-height: 38px; padding: 0 14px 0 16px; font-size: 13px; }
  .hero { display: block; margin-top: 14px; min-height: 0; border-radius: 22px; }
  .hero-copy { padding: 36px 24px 0; }
  .hero-title { margin-top: 20px; font-size: clamp(38px, 11vw, 52px); }
  .hero-description { margin: 16px 0 24px; font-size: 15px; }
  .hero-action, .hero-link { min-height: 48px; padding: 0 20px; font-size: 14px; }
  .hero-points { margin-top: 28px; gap: 8px 18px; font-size: 12px; }
  .hero-art { min-height: 0; height: clamp(270px, 76vw, 340px); }
  .hero-gallery { --w: clamp(80px, 23vw, 108px); }
  .hero-card { bottom: 27%; }
  .catalog { padding: 64px 0 40px; }
  .catalog-header { flex-wrap: wrap; align-items: stretch; gap: 16px; margin-bottom: 20px; }
  .search { width: 100%; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .catalog-card { border-radius: 16px; }
  .catalog-card-copy { padding: 12px 14px 14px; }
  h3 { font-size: 17px; }
  .catalog-subtitle { font-size: 15px; }
  .catalog-card-meta { margin-top: 10px; padding-top: 10px; }
  .catalog-details { font-size: 12px; }
  .card-action { display: none; }
  .content-notice { grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; margin: 8px 0 48px; padding: 20px; }
  .content-notice-mark { grid-row: 1; width: 36px; height: 36px; font-size: 17px; }
  .content-notice-copy, .content-notice details { grid-column: 1 / -1; }
  .content-notice-copy { margin: 12px 0 14px; }
  #content-notice-title { font-size: 16px; }
}
@media (max-width: 360px) {
  .hero-copy { padding-inline: 18px; }
  .hero-title { font-size: 34px; }
  h2 { font-size: 25px; }
  .catalog-subtitle { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-card { animation: fade-card 200ms ease backwards; }
}
@keyframes fade-card { from { opacity: 0; } }

/* ==========================================================================
   Hero impact — spotlight, holo foil, sparkles, tilt
   ========================================================================== */
.hero { overflow: clip; }
.hero-art::before {
  /* light beams behind the fan */
  content: '';
  position: absolute;
  left: 50%; bottom: 10%;
  width: 150%; aspect-ratio: 1;
  transform: translate(-50%, 50%);
  background: repeating-conic-gradient(from 0deg, rgb(255 228 180 / .10) 0deg 5deg, transparent 5deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 8%, rgb(0 0 0 / .55) 38%, transparent 72%);
  mask: radial-gradient(closest-side, #000 8%, rgb(0 0 0 / .55) 38%, transparent 72%);
  pointer-events: none;
}
.hero-art::after {
  /* warm aura behind the hero card */
  content: '';
  position: absolute;
  left: 50%; bottom: 26%;
  width: 62%; aspect-ratio: 1.1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 206 120 / .38), rgb(206 120 255 / .14) 55%, transparent);
  filter: blur(6px);
  pointer-events: none;
}
.hero-sparkles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-sparkles i {
  position: absolute;
  left: var(--x); bottom: var(--y);
  width: var(--s, 4px); aspect-ratio: 1;
  border-radius: 50%;
  background: #ffe9bf;
  box-shadow: 0 0 6px 1px rgb(255 214 140 / .9), 0 0 14px 2px rgb(255 190 110 / .45);
  opacity: 0;
}
.hero-sparkles i:nth-child(1)  { --x: 12%; --y: 30%; --d: 0s;   --s: 3px; }
.hero-sparkles i:nth-child(2)  { --x: 22%; --y: 62%; --d: 1.1s; }
.hero-sparkles i:nth-child(3)  { --x: 31%; --y: 18%; --d: 2.3s; --s: 2px; }
.hero-sparkles i:nth-child(4)  { --x: 41%; --y: 78%; --d: .6s;  --s: 3px; }
.hero-sparkles i:nth-child(5)  { --x: 50%; --y: 88%; --d: 3.2s; --s: 5px; }
.hero-sparkles i:nth-child(6)  { --x: 58%; --y: 70%; --d: 1.7s; --s: 2px; }
.hero-sparkles i:nth-child(7)  { --x: 67%; --y: 22%; --d: 2.8s; }
.hero-sparkles i:nth-child(8)  { --x: 76%; --y: 58%; --d: .3s;  --s: 3px; }
.hero-sparkles i:nth-child(9)  { --x: 85%; --y: 34%; --d: 2s;   --s: 2px; }
.hero-sparkles i:nth-child(10) { --x: 92%; --y: 72%; --d: 3.6s; --s: 3px; }

/* holo foil layer on every card */
.hero-card::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgb(255 255 255 / .55), transparent 45%),
    repeating-linear-gradient(115deg,
      #ff7ab6 0%, #ffd36e 7%, #7dffb2 14%, #6ecbff 21%, #b48cff 28%, #ff7ab6 35%);
  background-size: 100% 100%, 300% 300%;
  background-position: center, var(--mx, 50%) var(--my, 50%);
  mix-blend-mode: overlay;
  opacity: var(--holo, 0);
  transition: opacity 400ms ease;
}
.hero-card { --holo: 0; will-change: transform; }
.hero-card:nth-child(4) { --holo: .3; }
.hero-card.is-spot {
  --holo: .5;
  z-index: 8;
  transform: rotate(calc(var(--r) * .9)) translateY(calc(var(--lift, 0px) - 26px)) scale(1.1);
  box-shadow: 0 0 0 1px rgb(255 236 200 / .45), 0 30px 60px -14px rgb(0 0 0 / .9), 0 0 70px -6px rgb(255 200 120 / .55);
}
.hero-card.is-tilting {
  --holo: .75;
  z-index: 9;
  transition: transform 120ms linear;
  transform: rotate(var(--r)) translateY(calc(var(--lift, 0px) - 24px)) perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.12);
}
.hero-art .hero-card.is-tilting:hover { transform: rotate(var(--r)) translateY(calc(var(--lift, 0px) - 24px)) perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.12); }

@media (prefers-reduced-motion: no-preference) {
  .hero-art::before { animation: beams-spin 60s linear infinite; }
  .hero-art::after { animation: aura-breathe 5s ease-in-out infinite; }
  .hero-sparkles i { animation: sparkle-rise 4.8s ease-in-out var(--d) infinite; }
  .hero-gallery { animation: fan-float 7s ease-in-out 1.6s infinite; }
  .hero-card.is-spot::before { animation: holo-sweep 2.2s ease-in-out; }
  .hero-name { background-size: 220% 100%; animation: title-gleam 2.4s var(--ease-out) 900ms both; }
  @keyframes beams-spin { to { transform: translate(-50%, 50%) rotate(360deg); } }
  @keyframes aura-breathe { 50% { opacity: .65; transform: translateX(-50%) scale(1.08); } }
  @keyframes sparkle-rise {
    0% { opacity: 0; transform: translateY(0) scale(.4); }
    30% { opacity: 1; transform: translateY(-14px) scale(1); }
    100% { opacity: 0; transform: translateY(-46px) scale(.3); }
  }
  @keyframes fan-float { 50% { transform: translateY(-7px); } }
  @keyframes holo-sweep {
    from { background-position: center, 0% 0%; }
    to { background-position: center, 100% 100%; }
  }
  @keyframes title-gleam {
    from { background-position: 100% 0; }
    to { background-position: 0 0; }
  }
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero-name {
    background-image: linear-gradient(100deg, #fffdf8 0%, #f1e4c8 30%, #fff6de 42%, #ffffff 46%, #f1e4c8 54%, #c9a465 80%, #e8cf98 100%);
  }
}

/* mobile: bigger, closer, more presence */
@media (max-width: 740px) {
  .hero-points { margin-top: 22px; }
  .hero-art { height: clamp(290px, 84vw, 380px); margin-top: -20px; }
  .hero-gallery { --w: clamp(92px, 27vw, 130px); }
  .hero-card { bottom: 20%; transform-origin: 50% 240%; }
  .hero-card:nth-child(1) { --r: -20deg; } .hero-card:nth-child(2) { --r: -13deg; } .hero-card:nth-child(3) { --r: -6.5deg; }
  .hero-card:nth-child(5) { --r: 6.5deg; } .hero-card:nth-child(6) { --r: 13deg; } .hero-card:nth-child(7) { --r: 20deg; }
  .hero-card:nth-child(4) { --lift: -22px; }
  .hero-art::after { width: 86%; bottom: 24%; }
  .card-orbit { width: 96%; bottom: 6%; }
}
@media (forced-colors: active) {
  .hero-card::before, .hero-art::before, .hero-art::after, .hero-sparkles { display: none; }
}

/* ==========================================================================
   Per-catalog brand colors (home tiles + catalog pages)
   ========================================================================== */
.catalog-card, body[data-catalog] { --brand: var(--gold); --brand-2: #d9c39a; --brand-ink: var(--gold-ink); --brand-soft: var(--gold-soft); }
.catalog-pokemon, body[data-catalog="pokemon"] { --brand: #f5c400; --brand-2: #2f6fd6; --brand-ink: #1f4f9c; --brand-soft: #fff3c4; }
.catalog-onepiece, body[data-catalog="onepiece"] { --brand: #d6262e; --brand-2: #e3b04b; --brand-ink: #a51c23; --brand-soft: #fbe1df; }
.catalog-nikke, body[data-catalog="nikke"] { --brand: #8b5cf6; --brand-2: #ec4899; --brand-ink: #6232c4; --brand-soft: #ede5ff; }
.catalog-dragonball, body[data-catalog="dragonball"] { --brand: #f47b20; --brand-2: #1f5fbf; --brand-ink: #a84a08; --brand-soft: #ffe7d3; }
.catalog-naruto, body[data-catalog="naruto"] { --brand: #f28c1c; --brand-2: #2b2b2b; --brand-ink: #9a5205; --brand-soft: #ffecd2; }
.catalog-rezero, body[data-catalog="rezero"] { --brand: #6fa8dc; --brand-2: #c9a0dc; --brand-ink: #2f6597; --brand-soft: #e4effa; }
.catalog-conan, body[data-catalog="conan"] { --brand: #2747a8; --brand-2: #d62b2b; --brand-ink: #1f3a8a; --brand-soft: #e1e7f7; }
.catalog-riftbound, body[data-catalog="riftbound"] { --brand: #0bc4c4; --brand-2: #c89b3c; --brand-ink: #0b6b6b; --brand-soft: #d8f5f4; }
.catalog-browndust, body[data-catalog="browndust"] { --brand: #c79233; --brand-2: #6b3f1d; --brand-ink: #7a5a26; --brand-soft: #f3e6cb; }
.catalog-frieren, body[data-catalog="frieren"] { --brand: #7fbf9a; --brand-2: #b9a7e0; --brand-ink: #2b6e4a; --brand-soft: #e2f3e9; }
.catalog-solo, body[data-catalog="solo"] { --brand: #3b6cff; --brand-2: #7a3cff; --brand-ink: #2848c4; --brand-soft: #e1e8ff; }
.catalog-demon, body[data-catalog="demon"] { --brand: #2e8b57; --brand-2: #b5223a; --brand-ink: #1f6b40; --brand-soft: #dff1e6; }
.catalog-titan, body[data-catalog="titan"] { --brand: #8a5a2b; --brand-2: #2f5d50; --brand-ink: #6b421b; --brand-soft: #f1e4d6; }
.catalog-chainsaw, body[data-catalog="chainsaw"] { --brand: #e2551f; --brand-2: #2a2a2a; --brand-ink: #a8390e; --brand-soft: #fde3d8; }
.catalog-disney, body[data-catalog="disney"] { --brand: #6a3fb5; --brand-2: #d9a93b; --brand-ink: #5a2fa3; --brand-soft: #ece4f8; }
.catalog-nivel, body[data-catalog="nivel"] { --brand: #d43f8d; --brand-2: #4b2a8c; --brand-ink: #a3266a; --brand-soft: #fbe0ee; }
.catalog-chiikawa, body[data-catalog="chiikawa"] { --brand: #f7a8c4; --brand-2: #8ed1f0; --brand-ink: #a83f68; --brand-soft: #fde8f0; }
.catalog-bluearchive, body[data-catalog="bluearchive"] { --brand: #1e9bf0; --brand-2: #ff7ab6; --brand-ink: #0a66a8; --brand-soft: #def0fd; }
/* home tiles: color strip, tinted hover glow, colored arrow */
.catalog-media::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.catalog-card-copy { background: linear-gradient(180deg, color-mix(in srgb, var(--brand-soft) 55%, #fff) 0%, #fff 70%); }
.catalog-details::before {
  content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 7px; vertical-align: 2px;
  border-radius: 50%; background: var(--brand);
}
.card-action { border-color: color-mix(in srgb, var(--brand) 45%, var(--line-strong)); color: var(--brand-ink); }
@media (hover: hover) and (pointer: fine) {
  .catalog-card:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 55%, transparent), 0 22px 44px -20px color-mix(in srgb, var(--brand) 70%, transparent); }
  .catalog-card:hover .card-action { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
}
/* catalog pages: brand replaces champagne gold */
body[data-catalog] { --gold: var(--brand); --gold-soft: var(--brand-soft); --gold-ink: var(--brand-ink); }
body[data-catalog] .site-header { box-shadow: inset 0 -3px 0 -1px transparent; border-bottom: 0; }
body[data-catalog] .site-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
body[data-catalog] .ph-catalog-intro { position: relative; isolation: isolate; }
body[data-catalog] .ph-catalog-intro::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 40%;
  width: min(1100px, 100%); height: 140%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 26%, transparent), transparent);
  pointer-events: none;
}
body[data-catalog] .ph-catalog-visual { box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent), var(--shadow); }
@supports not (color: color-mix(in srgb, red, blue)) {
  .catalog-card-copy { background: #fff; }
}
/* ==========================================================================
   Hero v3 — 9-card fan, scrolling card wall, floor reflection, light sweep
   ========================================================================== */
/* 9-card fan: center (5th) card on top, edges behind */
.hero-card:nth-child(1) { --r: -30deg; --i: 0; z-index: 1; }
.hero-card:nth-child(2) { --r: -22.5deg; --i: 1; z-index: 2; }
.hero-card:nth-child(3) { --r: -15deg; --i: 2; z-index: 3; }
.hero-card:nth-child(4) { --r: -7.5deg; --i: 3; z-index: 4; --lift: 0px; --holo: 0; box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 2px 6px rgb(0 0 0 / .45), 0 26px 44px -14px rgb(0 0 0 / .75); }
.hero-card:nth-child(5) { --r: 0deg; --i: 4; z-index: 9; --lift: -20px; --holo: .3; box-shadow: 0 0 0 1px rgb(255 236 200 / .35), 0 2px 6px rgb(0 0 0 / .45), 0 34px 60px -16px rgb(0 0 0 / .85), 0 0 70px -8px rgb(214 178 112 / .45); }
.hero-card:nth-child(6) { --r: 7.5deg; --i: 5; z-index: 8; }
.hero-card:nth-child(7) { --r: 15deg; --i: 6; z-index: 7; }
.hero-card:nth-child(8) { --r: 22.5deg; --i: 7; z-index: 6; }
.hero-card:nth-child(9) { --r: 30deg; --i: 8; z-index: 5; }
.hero-card.is-spot { z-index: 10; }
.hero-card.is-tilting { z-index: 11; }
@media (prefers-reduced-motion: no-preference) {
  .hero-card:nth-child(4)::after { content: none; }
  .hero-card:nth-child(5)::after {
    content: '';
    position: absolute; inset: 0;
    pointer-events: none;
    background: linear-gradient(112deg, transparent 32%, rgb(255 236 246 / .38) 45%, rgb(255 255 255 / .62) 50%, rgb(214 222 255 / .38) 55%, transparent 68%);
    opacity: 0;
    animation: foil-sheen 1100ms var(--ease-out) 1100ms;
  }
}

/* glossy floor reflection (WebKit/Blink; ignored elsewhere) */
.hero-card { -webkit-box-reflect: below 3px linear-gradient(transparent 62%, rgb(255 255 255 / .2)); }

/* scrolling card wall behind the fan */
.hero-wall {
  position: absolute;
  left: -20%; right: -20%; top: 2%; bottom: 30%;
  display: grid; align-content: center; gap: 14px;
  transform: perspective(900px) rotateX(18deg) rotate(-9deg);
  opacity: .34;
  filter: saturate(1.15) brightness(.7);
  -webkit-mask: radial-gradient(ellipse 60% 62% at 50% 55%, #000 30%, transparent 75%);
  mask: radial-gradient(ellipse 60% 62% at 50% 55%, #000 30%, transparent 75%);
  pointer-events: none;
}
.wall-row { display: flex; gap: 12px; width: max-content; }
.wall-row img {
  flex: none;
  width: var(--wall-w, 96px); aspect-ratio: 63 / 88;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 6px 16px -6px rgb(0 0 0 / .8);
  background: #24212a;
}
@media (prefers-reduced-motion: no-preference) {
  .wall-row { animation: wall-left 80s linear infinite; }
  .wall-row.is-reverse { animation-name: wall-right; animation-duration: 95s; }
  @keyframes wall-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  @keyframes wall-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
}

/* light sweep across the whole fan */
.hero-gallery::after {
  content: '';
  position: absolute; z-index: 12;
  left: 0; right: 0; top: 0; bottom: 14%;
  background: linear-gradient(105deg, transparent 38%, rgb(255 244 222 / .28) 48%, rgb(255 255 255 / .42) 50%, rgb(255 244 222 / .28) 52%, transparent 62%);
  background-size: 250% 100%;
  background-position: 120% 0;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-gallery::after { animation: fan-sweep 7s ease-in-out 2.4s infinite; }
  @keyframes fan-sweep { 0% { background-position: 120% 0; } 35%, 100% { background-position: -20% 0; } }
}

/* name tag for the spotlighted card */
.hero-spot-label {
  position: absolute; z-index: 13;
  left: 50%; bottom: 5%;
  max-width: 86%;
  margin: 0; padding: 7px 14px 7px 12px;
  transform: translateX(-50%);
  border: 1px solid rgb(214 178 112 / .35);
  border-radius: 999px;
  background: rgb(18 17 22 / .62);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #f1e4c8;
  font: 600 12.5px/1.2 var(--sans);
  letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 360ms ease, transform 360ms var(--ease-out);
}
.hero-spot-label::before {
  content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; vertical-align: 1px;
  background: var(--gold); transform: rotate(45deg);
}
.hero-spot-label.is-on { opacity: 1; transform: translateX(-50%) translateY(-2px); }
.hero-spot-label:empty { display: none; }

@media (max-width: 1050px) {
  .hero-wall { --wall-w: 80px; }
}
@media (max-width: 740px) {
  .hero-art { height: clamp(330px, 98vw, 420px); }
  .hero-gallery { --w: clamp(88px, 25vw, 122px); }
  .hero-card { bottom: 24%; transform-origin: 50% 250%; }
  .hero-card:nth-child(5) { --lift: -22px; }
  .hero-card:nth-child(1) { --r: -24deg; } .hero-card:nth-child(2) { --r: -18deg; } .hero-card:nth-child(3) { --r: -12deg; } .hero-card:nth-child(4) { --r: -6deg; }
  .hero-card:nth-child(6) { --r: 6deg; } .hero-card:nth-child(7) { --r: 12deg; } .hero-card:nth-child(8) { --r: 18deg; } .hero-card:nth-child(9) { --r: 24deg; }
  .hero-wall { --wall-w: 64px; gap: 10px; top: 0; bottom: 26%; opacity: .4; }
  .wall-row { gap: 9px; }
  .hero-spot-label { bottom: 4%; font-size: 12px; }
}
@media (forced-colors: active) { .hero-wall, .hero-gallery::after, .hero-spot-label { display: none; } }
/* hero: calendar button; the header already links the store on phones */
.hero-link-calendar::before { content: ''; width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 3px; box-shadow: inset 0 3px 0 -1.5px currentColor; }
.hero-link-quiz::before { content: '?'; display: grid; place-items: center; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; font: 800 9px/1 var(--sans); }
@media (max-width: 740px) { .hero-link-store { display: none; } }
/* ---------- card wall: 3 rows · "카드 섞기" deal ---------- */
.wall-row.is-slow { margin-left: -60px; }
@media (prefers-reduced-motion: no-preference) {
  .wall-row.is-slow { animation-duration: 120s; }
}
.hero-gallery.is-gathering .hero-card {
  transition: transform 460ms cubic-bezier(.6, 0, .4, 1), opacity 300ms ease;
  transform: rotate(0deg) translateY(18px) rotateY(80deg) scale(.94);
}
.hero-gallery.is-gathering .hero-card:nth-child(odd) { transform: rotate(0deg) translateY(18px) rotateY(-80deg) scale(.94); }
.hero-shuffle {
  position: absolute; z-index: 14; top: 10px; right: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px 0 14px;
  border: 1px solid rgb(214 178 112 / .45); border-radius: 999px;
  background: rgb(18 17 22 / .55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #f1e4c8;
  font: 700 13px/1 var(--sans);
  cursor: pointer;
  transition: background 200ms ease, transform 200ms var(--ease-out), border-color 200ms ease;
}
.hero-shuffle::before {
  content: ''; width: 14px; height: 14px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
}
.hero-shuffle:disabled { opacity: .6; cursor: progress; }
.hero-shuffle:disabled::before { animation: shuffle-spin 700ms linear infinite; }
.hero .hero-shuffle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@keyframes shuffle-spin { to { transform: rotate(360deg); } }
@media (hover: hover) and (pointer: fine) {
  .hero-shuffle:hover { background: rgb(18 17 22 / .8); border-color: rgb(214 178 112 / .8); transform: translateY(-1px); }
}
@media (max-width: 740px) {
  .hero-shuffle { top: 2px; right: 12px; min-height: 36px; padding: 0 13px 0 11px; font-size: 12px; }
  .hero-wall { gap: 8px; }
}
/* ---------- phone tab bar ---------- */
.tabbar { display: none; }
@media (max-width: 740px) {
  .tabbar {
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    display: flex; justify-content: space-around;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgb(246 243 238 / .9);
    -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
    border-top: 1px solid rgb(22 20 27 / .08);
  }
  .tabbar a {
    flex: 1; display: grid; justify-items: center; gap: 3px;
    padding: 6px 2px 4px; border-radius: 12px;
    color: var(--muted); font: 600 10.5px/1.1 var(--sans);
  }
  .tabbar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a[aria-current="page"] { color: var(--brand-ink, var(--ink)); }
  .tabbar a[aria-current="page"] svg { stroke-width: 2.1; }
  .tabbar a:active { background: rgb(22 20 27 / .06); }
  body:has(.tabbar) { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}
/* ==========================================================================
   Dark theme — follows the phone setting; the header button overrides it
   ========================================================================== */
:root { --header-bg: rgb(246 243 238 / .84); --tile-glow: radial-gradient(ellipse 75% 70% at 50% 42%, #fff 0%, #f3eee6 70%, #ebe5da 100%); --skeleton-hi: #f8f5ef; }
.site-header { background: var(--header-bg); }
@media (max-width: 740px) { .tabbar { background: var(--header-bg); } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #121116;
    --paper-2: #1d1b23;
    --surface: #1a1820;
    --ink: #f1ece3;
    --ink-2: #d8d1c5;
    --muted: #a39b8f;
    --line: #2c2933;
    --line-strong: #3d3946;
    --gold: #c9a465;
    --gold-soft: #2e2719;
    --gold-ink: #e3c68d;
    --accent-hover: #fff;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4), 0 2px 8px rgb(0 0 0 / .25);
    --shadow: 0 2px 4px rgb(0 0 0 / .3), 0 14px 34px -14px rgb(0 0 0 / .7);
    --shadow-lg: 0 4px 10px rgb(0 0 0 / .35), 0 30px 70px -24px rgb(0 0 0 / .8);
    --header-bg: rgb(18 17 22 / .82);
    --tile-glow: radial-gradient(ellipse 75% 70% at 50% 42%, #2a2731 0%, #1d1b23 70%, #17151c 100%);
    --skeleton-hi: #2a2730;
  }
  :root:not([data-theme="light"]) :is(body[data-catalog], .catalog-card, .cal-row, .cal-chip) { --brand-ink: color-mix(in srgb, var(--brand) 72%, #fff); --brand-fill: color-mix(in srgb, var(--brand) 62%, #000); --brand-soft: color-mix(in srgb, var(--brand) 18%, #1a1820); }
  :root:not([data-theme="light"]) .brand img { content: url("/assets/pokehit-dark.svg"); }
  :root:not([data-theme="light"]) .ph-catalog-intro h1 { background: #f6f3ee; }
  :root:not([data-theme="light"]) body[data-catalog="disney"] .ph-catalog-intro h1 { background: #34234b; }
  :root:not([data-theme="light"]) body[data-catalog="nivel"] .ph-catalog-intro h1 { background: #21282f; }
  :root:not([data-theme="light"]) body[data-catalog="titan"] .ph-catalog-intro h1 { background: #1c1714; }
  :root:not([data-theme="light"]) .catalog-card-copy { background: linear-gradient(180deg, color-mix(in srgb, var(--brand-soft) 80%, var(--surface)) 0%, var(--surface) 70%); }
  :root:not([data-theme="light"]) .ph-finder-tile .ph-finder-art > img { box-shadow: 0 1px 2px rgb(0 0 0 / .5), 0 14px 28px -14px rgb(0 0 0 / .9); }
  :root:not([data-theme="light"]) :is(.category-tile[aria-current] small, .ph-store-link, .cal-store, .cal-chip[aria-pressed="true"]) { background: var(--brand-fill, #3a3542); border-color: var(--brand-fill, #3a3542); color: #fff; }
  :root:not([data-theme="light"]) .catalog-card:hover .card-action { background: var(--brand-fill); border-color: var(--brand-fill); color: #fff; }
  :root:not([data-theme="light"]) .binder-link { background: var(--ink); border-color: var(--ink); color: var(--paper); }
  :root:not([data-theme="light"]) .ph-rank { color: var(--ink); }
  :root:not([data-theme="light"]) .ph-rank[data-tier] { color: #1c1610; }
  :root:not([data-theme="light"]) .ph-rank[data-tier="rainbow"] { color: #2a1640; }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121116;
  --paper-2: #1d1b23;
  --surface: #1a1820;
  --ink: #f1ece3;
  --ink-2: #d8d1c5;
  --muted: #a39b8f;
  --line: #2c2933;
  --line-strong: #3d3946;
  --gold: #c9a465;
  --gold-soft: #2e2719;
  --gold-ink: #e3c68d;
  --accent-hover: #fff;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4), 0 2px 8px rgb(0 0 0 / .25);
  --shadow: 0 2px 4px rgb(0 0 0 / .3), 0 14px 34px -14px rgb(0 0 0 / .7);
  --shadow-lg: 0 4px 10px rgb(0 0 0 / .35), 0 30px 70px -24px rgb(0 0 0 / .8);
  --header-bg: rgb(18 17 22 / .82);
  --tile-glow: radial-gradient(ellipse 75% 70% at 50% 42%, #2a2731 0%, #1d1b23 70%, #17151c 100%);
  --skeleton-hi: #2a2730;
}
:root[data-theme="dark"] :is(body[data-catalog], .catalog-card, .cal-row, .cal-chip) { --brand-ink: color-mix(in srgb, var(--brand) 72%, #fff); --brand-fill: color-mix(in srgb, var(--brand) 62%, #000); --brand-soft: color-mix(in srgb, var(--brand) 18%, #1a1820); }
:root[data-theme="dark"] .brand img { content: url("/assets/pokehit-dark.svg"); }
:root[data-theme="dark"] .ph-catalog-intro h1 { background: #f6f3ee; }
:root[data-theme="dark"] body[data-catalog="disney"] .ph-catalog-intro h1 { background: #34234b; }
:root[data-theme="dark"] body[data-catalog="nivel"] .ph-catalog-intro h1 { background: #21282f; }
:root[data-theme="dark"] body[data-catalog="titan"] .ph-catalog-intro h1 { background: #1c1714; }
:root[data-theme="dark"] .catalog-card-copy { background: linear-gradient(180deg, color-mix(in srgb, var(--brand-soft) 80%, var(--surface)) 0%, var(--surface) 70%); }
:root[data-theme="dark"] .ph-finder-tile .ph-finder-art > img { box-shadow: 0 1px 2px rgb(0 0 0 / .5), 0 14px 28px -14px rgb(0 0 0 / .9); }
:root[data-theme="dark"] :is(.category-tile[aria-current] small, .ph-store-link, .cal-store, .cal-chip[aria-pressed="true"]) { background: var(--brand-fill, #3a3542); border-color: var(--brand-fill, #3a3542); color: #fff; }
:root[data-theme="dark"] .catalog-card:hover .card-action { background: var(--brand-fill); border-color: var(--brand-fill); color: #fff; }
:root[data-theme="dark"] .binder-link { background: var(--ink); border-color: var(--ink); color: var(--paper); }
:root[data-theme="dark"] .ph-rank { color: var(--ink); }
:root[data-theme="dark"] .ph-rank[data-tier] { color: #1c1610; }
:root[data-theme="dark"] .ph-rank[data-tier="rainbow"] { color: #2a1640; }
/* theme toggle (moon / sun) */
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; margin-left: auto;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.theme-toggle::before {
  content: ''; width: 16px; height: 16px; border-radius: 50%;
  background: currentColor;
  -webkit-mask: radial-gradient(circle at 70% 30%, transparent 42%, #000 43%);
  mask: radial-gradient(circle at 70% 30%, transparent 42%, #000 43%);
}
.theme-toggle[aria-pressed="true"]::before {
  -webkit-mask: none; mask: none;
  width: 10px; height: 10px;
  box-shadow: 0 -8px 0 -3px currentColor, 0 8px 0 -3px currentColor, 8px 0 0 -3px currentColor, -8px 0 0 -3px currentColor,
    6px 6px 0 -3px currentColor, -6px -6px 0 -3px currentColor, 6px -6px 0 -3px currentColor, -6px 6px 0 -3px currentColor;
}
.header-inner { gap: 10px; }
@media (max-width: 740px) { .theme-toggle { width: 36px; height: 36px; } }
/* hero buttons sit on the always-dark hero, so their colors must not follow the page theme */
.hero .hero-action { background: #f4efe6; color: #16141b; }
@media (hover: hover) and (pointer: fine) { .hero .hero-action:hover { background: #fff; color: #16141b; } }
.hero .hero-link { color: #e4dccf; }

/* ---------- display face: IBM Plex Sans KR for titles (body stays Pretendard) ---------- */
:root { --display: 'IBM Plex Sans KR', var(--sans); }
.hero-title, .hero-title *, .catalog h2, .movers-head h2, .ph-box-hero-copy h2, .catalog-content h2,
.quiz-hero h1, .cal-hero h1, .cal-section h2, .catalog-card-copy h3, #catalog-title, .ph-album-title, .ph-switch-top strong {
  font-family: var(--display); letter-spacing: -.02em;
}
/* action buttons: a little squarer (filter chips stay round) */
.hero-action, .hero-link, .store-link, .quiz-actions > *, .binder-share button, .binder-share a, .cal-open { border-radius: 8px; }

/* ---------- footer: contact, SNS, catalog links ---------- */
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 28px 32px; padding-block: 40px 28px; }
.footer-brand strong { display: block; color: var(--night-text); font: 800 16px/1.2 var(--display, var(--sans)); letter-spacing: .14em; }
.footer-brand p { max-width: 340px; margin: 10px 0 14px; color: #a29b90; font-size: 13px; line-height: 1.6; }
.footer-store { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 8px; background: #f4efe6; color: #16141b !important; font: 700 13px/1 var(--sans); text-decoration: none; }
.footer-col h4 { margin: 0 0 12px; color: var(--night-text); font: 700 13px/1 var(--sans); letter-spacing: .04em; }
.footer-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-col a { display: inline-flex; align-items: center; gap: 8px; color: #b8b0a4; font-size: 13px; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-col svg, .kakao-float svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.footer-col svg .fill { fill: currentColor; stroke: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-block: 18px 32px; border-top: 1px solid rgb(255 255 255 / .08); font-size: 12px; }
.footer-bottom span { color: var(--night-text); font: 700 13px/1.4 var(--sans); letter-spacing: .16em; }
.kakao-float { position: fixed; right: 16px; bottom: 24px; z-index: 90; display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 16px 0 14px;
  border-radius: 999px; background: #fee500; color: #191600; font: 800 14px/1 var(--sans); text-decoration: none; box-shadow: 0 10px 24px -10px rgb(0 0 0 / .55); }
.kakao-float svg { width: 20px; height: 20px; fill: #191600; stroke: none; }
.kakao-float:hover { filter: brightness(.97); transform: translateY(-1px); }
html.ph-pack-open .kakao-float { display: none; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 740px) {
  .kakao-float { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); right: 12px; min-height: 42px; padding: 0 13px 0 11px; font-size: 13px; }
  .footer-grid { padding-block: 32px 20px; gap: 24px 16px; }
  .footer-bottom { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
