*, *::before, *::after { box-sizing: border-box; }

:root {
  --paper: #F5F1E9;
  --surface: #FCFBF8;
  --surface-2: #EFEAE0;
  --obsidian: #171614;
  --ink: #1C1B19;
  --ink-2: #66615A;
  --ink-3: #968F86;
  --terracotta: #B95835;
  --terracotta-soft: rgba(185, 88, 53, 0.11);
  --sage: #466356;
  --sage-soft: rgba(70, 99, 86, 0.12);
  --gold: #B89352;
  --gold-soft: rgba(184, 147, 82, 0.15);
  --hairline: rgba(23, 22, 20, 0.09);
  --hairline-strong: rgba(23, 22, 20, 0.18);
  --serif: "Songti SC", "Noto Serif SC", "STSong", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "SF Mono", "Menlo", "Monaco", ui-monospace, monospace;
  --shadow-soft: 0 10px 30px rgba(23, 22, 20, 0.06), 0 2px 6px rgba(23, 22, 20, 0.03);
  --shadow-card: 0 18px 42px rgba(23, 22, 20, 0.10), 0 3px 10px rgba(23, 22, 20, 0.04);
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

body {
  background-image:
    radial-gradient(circle at 18% 0%, rgba(184, 147, 82, 0.09), transparent 46%),
    radial-gradient(circle at 86% 14%, rgba(185, 88, 53, 0.06), transparent 42%);
}

.is-hidden { display: none !important; }
.hidden-input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }

.app-shell {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 16px 16px 108px;
}

/* Top Editorial Masthead */
.hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hud-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--obsidian);
  color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hud-mark svg { width: 20px; height: 20px; }

.hud-title {
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1.2;
}
.hud-cn {
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  margin-left: 4px;
}
.hud-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-top: 2px;
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.14s ease;
  white-space: nowrap;
}
.pill-btn svg { width: 13px; height: 13px; color: var(--terracotta); }
.pill-btn:hover { background: var(--surface-2); border-color: rgba(23, 22, 20, 0.28); }
.pill-btn:active { transform: scale(0.97); }
.pill-btn.is-subtle { border-color: var(--hairline); color: var(--ink-2); background: rgba(252,251,248,0.72); }
.pill-btn.is-subtle svg { color: var(--ink-2); }

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease;
}
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover { background: var(--surface-2); }

/* Views */
.view { display: none; animation: fadeIn 0.28s ease; }
.view.is-active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Leica Rangefinder Camera Chassis */
.camera-chassis {
  background: var(--obsidian);
  border-radius: 24px;
  padding: 14px 14px 18px;
  box-shadow: 0 22px 48px rgba(23, 22, 20, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.camera-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 11px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(252, 251, 248, 0.65);
}

.exif-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(252, 251, 248, 0.9);
}
.rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D9603B;
  box-shadow: 0 0 8px rgba(217, 96, 59, 0.85);
  display: inline-block;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.vf-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.25;
  border-radius: 16px;
  overflow: hidden;
  background: #0E0D0C;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.vf-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.96);
  transition: opacity 0.3s ease;
}

.vf-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 2;
}
.vf-video.is-live { display: block; }

.vf-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(14, 13, 12, 0.25) 0%, transparent 28%, transparent 66%, rgba(14, 13, 12, 0.68) 100%);
  pointer-events: none;
  z-index: 3;
}

.vf-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 33.333% 33.333%;
  background-position: -1px -1px;
}

.vf-reticle {
  position: absolute;
  inset: 22px;
  pointer-events: none;
  z-index: 5;
}
.vf-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: rgba(252, 251, 248, 0.82);
  border-style: solid;
  border-width: 0;
}
.vf-tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.vf-tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.vf-bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.vf-br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.vf-focus-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(252, 251, 248, 0.55);
}
.vf-focus-ring::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(217, 96, 59, 0.9);
  transform: translate(-50%, -50%);
}

.vf-scanline {
  position: absolute;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 96, 59, 0.65), transparent);
  top: 25%;
  opacity: 0.45;
  z-index: 5;
  pointer-events: none;
  animation: scanOptic 4.2s ease-in-out infinite;
}
@keyframes scanOptic {
  0%, 100% { top: 24%; opacity: 0.18; }
  50% { top: 74%; opacity: 0.65; }
}

.vf-flash {
  position: absolute;
  inset: 0;
  background: #FFFDF8;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.25s ease;
}
.vf-flash.is-flash { opacity: 0.92; transition: none; }

.vf-overlay-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 6;
  display: flex;
  justify-content: center;
}

.vf-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(23, 22, 20, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(252, 251, 248, 0.92);
  font-size: 11.5px;
  letter-spacing: 0.03em;
}

/* Tactile Shutter Deck */
.shutter-deck {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.deck-side-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(252, 251, 248, 0.92);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.14s ease;
}
.deck-side-btn svg { width: 17px; height: 17px; color: rgba(252, 251, 248, 0.75); margin-bottom: 2px; }
.deck-side-btn:hover { background: rgba(255, 255, 255, 0.12); }
.deck-side-btn:active { transform: scale(0.97); }
.deck-main { font-size: 12.5px; font-weight: 500; letter-spacing: 0.02em; }
.deck-sub { font-size: 10px; color: rgba(252, 251, 248, 0.48); }

.shutter-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: linear-gradient(145deg, #3A3733, #1F1E1C);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.48), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.14s ease;
}
.shutter-btn:active { transform: scale(0.93); }
.shutter-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid rgba(252, 251, 248, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}
.shutter-core {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #D97252, #B95835 65%, #8F3E22);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35), 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Editorial Panels */
.editorial-panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 14px;
}
.editorial-panel.is-compact { padding: 12px 14px; }

.panel-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.panel-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-bottom: 3px;
}
.panel-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.metric-tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  white-space: nowrap;
}

/* Contact Sheet Filmstrip */
.filmstrip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.film-btn {
  display: flex;
  flex-direction: column;
  padding: 6px 6px 8px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.film-btn:hover {
  transform: translateY(-2px);
  border-color: var(--hairline-strong);
  box-shadow: 0 8px 18px rgba(23, 22, 20, 0.08);
}
.film-btn img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.film-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 7px;
  padding: 0 2px;
}
.film-name {
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.film-no {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--terracotta);
  flex-shrink: 0;
}

.trust-strip {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-3);
}

/* Chips & Inputs */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.chip-row.is-filters { margin-bottom: 14px; }

.chip {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: transparent;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.16s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active {
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: var(--surface);
}
.chip.is-ghost {
  border-style: dashed;
  color: var(--terracotta);
  border-color: rgba(185, 88, 53, 0.35);
}

.meta-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.field-wrap { display: block; }
.field-label {
  display: block;
  font-size: 10.5px;
  color: var(--ink-3);
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}
.input-editorial {
  width: 100%;
  height: 36px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.input-editorial:focus {
  border-color: var(--terracotta);
  background: var(--surface);
}

/* Collector Card (4 Adult Editorial Skins + 3D Flip) */
.collector-card {
  position: relative;
  border-radius: 22px;
  padding: 20px 18px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.35s ease, background 0.25s ease, color 0.25s ease;
  user-select: none;
}

.collector-card .card-back-face { display: none; }
.collector-card.is-flipped .card-front-face { display: none; }
.collector-card.is-flipped .card-back-face { display: block; animation: fadeIn 0.26s ease; }

/* Skin 1: Editorial Gallery */
.collector-card.skin-editorial {
  background: #FCFBF8;
  border: 1px solid rgba(184, 147, 82, 0.42);
  color: var(--ink);
}
.collector-card.skin-editorial::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 16px;
  border: 1px solid rgba(184, 147, 82, 0.22);
  pointer-events: none;
}

/* Skin 2: 35mm Film */
.collector-card.skin-film {
  background: #161513;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F4EFE6;
  padding-left: 26px;
  padding-right: 26px;
}
.collector-card.skin-film::before,
.collector-card.skin-film::after {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  width: 8px;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(244, 239, 230, 0.22) 0px,
    rgba(244, 239, 230, 0.22) 10px,
    transparent 10px,
    transparent 20px
  );
  pointer-events: none;
}
.collector-card.skin-film::before { left: 9px; }
.collector-card.skin-film::after { right: 9px; }
.collector-card.skin-film .card-sub,
.collector-card.skin-film .card-footer { color: rgba(244, 239, 230, 0.58); }
.collector-card.skin-film .os-quote {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #F4EFE6;
}
.collector-card.skin-film .meter-box {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.10);
}
.collector-card.skin-film .meter-track { background: rgba(255, 255, 255, 0.12); }
.collector-card.skin-film .meter-fill { background: #D97252; }
.collector-card.skin-film .back-section { border-color: rgba(255, 255, 255, 0.12); }
.collector-card.skin-film .back-section h4 { color: #D8B77A; }
.collector-card.skin-film .back-section p { color: rgba(244, 239, 230, 0.86); }
.collector-card.skin-film .film-date-code { display: block; }

/* Skin 3: Tokyo Minimal Receipt */
.collector-card.skin-receipt {
  background: #FAF8F3;
  border: 1px dashed rgba(23, 22, 20, 0.28);
  border-radius: 8px;
  font-family: var(--mono);
  color: var(--ink);
}
.collector-card.skin-receipt .card-arch { font-family: var(--serif); letter-spacing: 0.04em; }
.collector-card.skin-receipt .receipt-barcode { display: block; }

/* Skin 4: Museum Brass Foil */
.collector-card.skin-foil {
  background: linear-gradient(155deg, #1F2925 0%, #161C1A 60%, #24211A 100%);
  border: 1px solid rgba(216, 183, 122, 0.45);
  color: #F6F0E4;
}
.collector-card.skin-foil::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 16px;
  border: 1px solid rgba(216, 183, 122, 0.24);
  pointer-events: none;
}
.collector-card.skin-foil .card-sub,
.collector-card.skin-foil .card-footer { color: rgba(216, 183, 122, 0.72); }
.collector-card.skin-foil .card-arch { color: #ECD3A1; }
.collector-card.skin-foil .os-quote {
  background: rgba(216, 183, 122, 0.08);
  border-color: rgba(216, 183, 122, 0.24);
  color: #F6F0E4;
}
.collector-card.skin-foil .meter-box {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(216, 183, 122, 0.18);
}
.collector-card.skin-foil .meter-track { background: rgba(255, 255, 255, 0.12); }
.collector-card.skin-foil .meter-fill { background: linear-gradient(90deg, #B89352, #ECD3A1); }
.collector-card.skin-foil .back-section { border-color: rgba(216, 183, 122, 0.2); }
.collector-card.skin-foil .back-section h4 { color: #ECD3A1; }
.collector-card.skin-foil .back-section p { color: rgba(246, 240, 228, 0.86); }

.card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.badge-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
}
.badge-tag.is-wild {
  background: rgba(184, 147, 82, 0.16);
  border-color: rgba(184, 147, 82, 0.45);
  color: #9A7432;
}
.badge-tag.is-home {
  background: var(--sage-soft);
  border-color: rgba(70, 99, 86, 0.32);
  color: var(--sage);
}
.badge-tag.is-rare {
  background: var(--terracotta-soft);
  border-color: rgba(185, 88, 53, 0.32);
  color: var(--terracotta);
}
.skin-film .badge-tag.is-wild,
.skin-foil .badge-tag.is-wild { color: #ECD3A1; }
.skin-film .badge-tag.is-home,
.skin-foil .badge-tag.is-home { color: #9CC7B4; }
.skin-film .badge-tag.is-rare,
.skin-foil .badge-tag.is-rare { color: #F0A184; }

.card-photo-mat {
  position: relative;
  width: 248px;
  max-width: 100%;
  margin: 0 auto 14px;
}

.card-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(23, 22, 20, 0.14);
  box-shadow: 0 10px 24px rgba(23, 22, 20, 0.14);
}
.card-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.coat-stamp {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(23, 22, 20, 0.78);
  backdrop-filter: blur(8px);
  color: #FCFBF8;
  font-size: 11px;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.film-date-code {
  display: none;
  position: absolute;
  left: 12px;
  bottom: 11px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: #F48C42;
  letter-spacing: 0.12em;
  text-shadow: 0 0 6px rgba(244, 140, 66, 0.65);
}

.card-sub {
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}

.card-arch {
  margin: 5px 0 12px;
  text-align: center;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.25;
}

.os-quote {
  margin: 0 0 12px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: rgba(245, 241, 233, 0.65);
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 1.6;
  text-align: center;
  color: var(--ink);
}

.meter-box {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: rgba(245, 241, 233, 0.45);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.meter-row {
  display: grid;
  grid-template-columns: 64px 1fr 34px;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
}
.meter-row span:last-child {
  font-family: var(--mono);
  text-align: right;
  font-size: 11px;
  opacity: 0.8;
}
.meter-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(23, 22, 20, 0.09);
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--terracotta);
  transition: width 0.35s ease;
}

.receipt-barcode {
  display: none;
  height: 26px;
  margin-top: 14px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0px, var(--ink) 2px,
    transparent 2px, transparent 5px,
    var(--ink) 5px, var(--ink) 6px,
    transparent 6px, transparent 9px,
    var(--ink) 9px, var(--ink) 12px,
    transparent 12px, transparent 15px
  );
  opacity: 0.72;
}

/* Card Back Face */
.back-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  opacity: 0.55;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}
.back-section {
  padding-bottom: 11px;
  margin-bottom: 11px;
  border-bottom: 1px solid var(--hairline);
}
.back-section.is-last { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.back-section h4 {
  margin: 0 0 4px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  font-weight: 600;
}
.back-section p {
  margin: 0;
  font-size: 13px;
  line-height: 1.62;
  color: var(--ink);
}
.back-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* Sticker Selector & Buttons */
.sticker-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.sticker-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-editorial {
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: transform 0.14s ease, opacity 0.18s ease, background 0.18s ease;
}
.btn-editorial svg { width: 15px; height: 15px; }
.btn-editorial:active { transform: scale(0.98); }
.btn-full { grid-column: 1 / -1; }

.btn-obsidian { background: var(--obsidian); color: var(--surface); }
.btn-obsidian:hover { opacity: 0.92; }
.btn-terracotta { background: var(--terracotta); color: var(--surface); }
.btn-terracotta:hover { opacity: 0.92; }
.btn-sage { background: var(--sage); color: var(--surface); }
.btn-sage:hover { opacity: 0.92; }
.btn-gold { background: linear-gradient(135deg, #C7A464, #A68142); color: #171614; font-weight: 600; }
.btn-outline {
  background: var(--surface);
  border-color: var(--hairline-strong);
  color: var(--ink);
}
.btn-outline:hover { background: var(--surface-2); }

/* 7-Coat Specimen Wall */
.coat-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.coat-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 11px 6px;
  border-radius: 12px;
  border: 1px dashed var(--hairline-strong);
  background: transparent;
  color: var(--ink-3);
  font-size: 11px;
  text-align: center;
}
.coat-slot.is-got {
  border-style: solid;
  border-color: rgba(184, 147, 82, 0.38);
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
}
.coat-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(23, 22, 20, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.coat-dot svg { width: 12px; height: 12px; opacity: 0.8; }
/* P1-6: first-character label inside lit swatches */
.coat-dot { font-size: 9px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; text-shadow: 0 1px 1.5px rgba(23, 22, 20, 0.28); }

.inline-actions { display: flex; gap: 6px; }

/* Gallery Dex Grid */
.dex-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dex-card {
  position: relative;
  border-radius: 14px;
  padding: 8px 8px 10px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.dex-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.dex-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9px;
  display: block;
  margin-bottom: 8px;
}
.dex-card { cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
.dex-card img { cursor: inherit; -webkit-user-drag: none; }
.dex-card.is-dragging { cursor: grabbing; opacity: 0.55; }
.dex-card.is-drop-target { outline: 2px dashed #B95835; outline-offset: 2px; }
.dex-drag-hint { margin-top: 10px; font-size: 11px; line-height: 1.5; color: var(--ink-2); text-align: center; }
.dex-card-title {
  font-family: var(--serif);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.dex-card-sub {
  font-size: 11px;
  color: var(--ink-2);
  margin-top: 2px;
}
.dex-del {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(23, 22, 20, 0.62);
  color: #FFF;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.78;
}
.dex-del:hover { opacity: 1; background: var(--terracotta); }

/* Editorial Versus Arena */
.pk-select-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.pk-sep {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.arena-stage {
  background: linear-gradient(160deg, #1B1A18 0%, #141311 100%);
  color: #F6F1E7;
  border-radius: 22px;
  padding: 22px 18px 20px;
  text-align: center;
  border: 1px solid rgba(216, 183, 122, 0.25);
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}
.arena-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(216, 183, 122, 0.75);
  margin-bottom: 16px;
}
.arena-vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.arena-av {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-family: var(--serif);
  font-size: 13.5px;
  color: #F6F1E7;
}
.arena-ring {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  padding: 3px;
  border: 1px solid rgba(216, 183, 122, 0.55);
}
.arena-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.vs-divider {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: #D8B77A;
}
.arena-score {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.05;
  color: #ECD3A1;
  margin-bottom: 4px;
}
.arena-tag {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: rgba(246, 241, 231, 0.72);
  margin-bottom: 8px;
}
.arena-boss {
  font-family: var(--serif);
  font-size: 15px;
  color: #F6F1E7;
  margin-bottom: 8px;
}
.arena-note {
  margin: 0 0 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(246, 241, 231, 0.7);
}

/* Camp Poll */
.camp-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
.camp-left { color: var(--terracotta); }
.camp-right { color: var(--sage); }
.camp-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--sage);
  overflow: hidden;
}
.camp-fill {
  height: 100%;
  background: var(--terracotta);
  transition: width 0.35s ease;
}

/* Floating Frosted Glass App Dock */
.dock-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(14px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  padding: 0 16px;
  z-index: 40;
  pointer-events: none;
}

.dock {
  pointer-events: auto;
  width: 100%;
  max-width: 428px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px;
  border-radius: 20px;
  background: rgba(252, 251, 248, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(23, 22, 20, 0.10);
  box-shadow: 0 14px 36px rgba(23, 22, 20, 0.12);
}

.dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 52px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}
.dock-btn svg { width: 19px; height: 19px; }
.dock-btn.is-active {
  background: var(--obsidian);
  color: var(--surface);
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(23, 22, 20, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 80;
}
.modal.is-open { display: flex; }

.modal-card {
  width: 100%;
  max-width: 400px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.modal-desc {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.58;
  color: var(--ink-2);
}
.preview-stage {
  border-radius: 14px;
  padding: 10px;
  background-image:
    linear-gradient(45deg, #EAE5DC 25%, transparent 25%),
    linear-gradient(-45deg, #EAE5DC 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #EAE5DC 75%),
    linear-gradient(-45deg, transparent 75%, #EAE5DC 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-color: #F5F1E9;
  border: 1px solid var(--hairline);
}
.preview-png {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

#confettiCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 90;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translate(-50%, 10px);
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(23, 22, 20, 0.92);
  color: #FCFBF8;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 100;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* Leica Film Simulation Bar */
.film-sim-bar {
  display: inline-flex;
  gap: 4px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.sim-btn {
  border: none;
  background: transparent;
  color: rgba(252, 251, 248, 0.55);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.sim-btn.is-active {
  background: rgba(185, 88, 53, 0.92);
  color: #FCFBF8;
}
.vf-screen.sim-chrome .vf-hero-photo,
.vf-screen.sim-chrome .vf-video,
.card-photo-frame.sim-chrome img {
  filter: contrast(1.12) saturate(0.76) sepia(0.08);
}
.vf-screen.sim-mono .vf-hero-photo,
.vf-screen.sim-mono .vf-video,
.card-photo-frame.sim-mono img {
  filter: grayscale(1) contrast(1.18);
}

/* Street Blind-Box Strip */
.blind-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1E1C19 0%, #27221B 100%);
  border: 1px solid rgba(216, 183, 122, 0.34);
  color: #F6F1E7;
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
}
.blind-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: #F6F1E7;
}
.blind-sub {
  font-size: 11px;
  color: rgba(246, 241, 231, 0.65);
  margin-top: 2px;
}
.btn-blind {
  flex-shrink: 0;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #D8B77A, #B89352);
  color: #171614;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.14s ease, opacity 0.18s ease;
}
.btn-blind:active { transform: scale(0.95); }

/* MBTI + Radar + Petting Studio */
.card-mbti {
  text-align: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  margin-bottom: 4px;
}
.skin-film .card-mbti,
.skin-foil .card-mbti { color: #ECD3A1; }

.collector-card.is-shake {
  animation: recoilShake 0.32s ease;
}
@keyframes recoilShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px) rotate(-0.6deg); }
  65% { transform: translateX(6px) rotate(0.6deg); }
}

.radar-wrap {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}
.radar-svg-box svg { width: 100%; height: auto; display: block; }
.radar-side { display: flex; flex-direction: column; gap: 10px; }
.radar-stat-item span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  opacity: 0.62;
  margin-bottom: 2px;
}
.radar-stat-item strong {
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.4;
}
.secret-text.is-locked {
  opacity: 0.65;
  font-style: italic;
}

.bond-track {
  height: 5px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  margin-bottom: 10px;
}
.bond-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  transition: width 0.3s ease;
}
.pet-reaction {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.pet-reaction.is-warn {
  border-color: rgba(185, 88, 53, 0.45);
  background: rgba(185, 88, 53, 0.08);
  color: #8F3E22;
}
.pet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.pet-btn {
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pet-btn:hover { background: var(--surface-2); }
.pet-btn:active { transform: scale(0.95); }
.pet-btn.is-treat {
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: #ECD3A1;
}

.fortune-row {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.fortune-text {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* Daily Patrol Missions */
.mission-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mission-item {
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  font-size: 12px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mission-item.is-done {
  border-color: rgba(70, 99, 86, 0.38);
  background: rgba(70, 99, 86, 0.09);
  color: var(--sage);
  font-weight: 500;
}
.mission-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}
.mission-item.is-done .mission-dot {
  background: var(--sage);
  border-color: var(--sage);
  color: #FFF;
}

/* Arena 3-Round Tug-of-War & Drama */
.pk-rounds {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(216, 183, 122, 0.16);
}
.pk-round-row {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(246, 241, 231, 0.8);
}
.pk-round-mid { display: flex; flex-direction: column; gap: 4px; }
.pk-round-lb { font-family: var(--sans); font-size: 11px; color: rgba(246, 241, 231, 0.65); }
.pk-round-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(70, 99, 86, 0.75);
  overflow: hidden;
}
.pk-round-fill {
  height: 100%;
  background: #D8B77A;
  transition: width 0.35s ease;
}

.arena-drama-box {
  padding: 12px;
  border-radius: 14px;
  background: rgba(216, 183, 122, 0.08);
  border: 1px solid rgba(216, 183, 122, 0.22);
  margin-bottom: 14px;
  text-align: left;
}
.drama-text {
  font-family: var(--serif);
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(246, 241, 231, 0.9);
  margin-bottom: 8px;
}
.drama-btn {
  border: 1px solid rgba(216, 183, 122, 0.38);
  background: transparent;
  color: #ECD3A1;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

/* Deep Editorial Cat Report */
.metric-tag.is-accent {
  background: var(--terracotta-soft);
  color: var(--terracotta);
  font-weight: 600;
}
.report-block {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.report-block.is-last { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.report-sec-hd {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 8px;
}
.rep-en {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 3px;
}
.rep-mix {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 9px;
}
.clue-list {
  margin: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.spec-cell {
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--hairline);
}
.spec-cell span {
  display: block;
  font-size: 10px;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.spec-cell strong {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.35;
}
.score-dots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.score-dot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-2);
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(245, 241, 233, 0.55);
}
.dots-bar { display: inline-flex; gap: 3px; }
.dots-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(23, 22, 20, 0.14);
  display: inline-block;
}
.dots-bar i.is-on { background: var(--terracotta); }
.rep-prose {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
}
.funfact-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--gold-soft);
  border-left: 2.5px solid var(--gold);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink);
}
.rep-essay {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--ink);
}
.rep-essay p { margin: 0; }
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 9px;
}
.guide-card {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
}
.guide-card.is-good { background: var(--sage-soft); border-color: rgba(70,99,86,0.28); }
.guide-card.is-warn { background: var(--terracotta-soft); border-color: rgba(185,88,53,0.28); }
.guide-card span { display: block; font-size: 10.5px; font-weight: 600; margin-bottom: 4px; }
.guide-card.is-good span { color: var(--sage); }
.guide-card.is-warn span { color: var(--terracotta); }
.guide-card p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink); }
.rep-care {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* 32-Breed Directory Box */
.breed-detail-box {
  padding: 12px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink);
}
.breed-detail-hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.breed-detail-hd strong { font-family: var(--serif); font-size: 15px; }
.breed-detail-hd span { font-family: var(--mono); font-size: 10px; color: var(--ink-3); }

/* Photo Optical Feature Pins */
.photo-pins-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.photo-pin {
  pointer-events: auto;
  position: absolute;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #FCFBF8;
  background: rgba(23, 22, 20, 0.78);
  color: #FCFBF8;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(185, 88, 53, 0.25);
  transition: transform 0.16s ease, background 0.16s ease;
}
.photo-pin.is-active {
  background: var(--terracotta);
  transform: translate(-50%, -50%) scale(1.14);
  box-shadow: 0 0 0 6px rgba(185, 88, 53, 0.35);
}
.pin-caption {
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(23, 22, 20, 0.05);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-2);
  text-align: center;
}
.skin-film .pin-caption,
.skin-foil .pin-caption {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(246, 240, 228, 0.85);
}

/* Visual-First Card Back */
.back-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.back-chart-cell {
  padding: 10px 8px 6px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: rgba(245, 241, 233, 0.45);
  text-align: center;
}
.skin-film .back-chart-cell,
.skin-foil .back-chart-cell {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(216, 183, 122, 0.18);
}
.chart-cap {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  opacity: 0.68;
  margin-bottom: 4px;
}
.back-kpi-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.kpi-pill {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: rgba(245, 241, 233, 0.45);
}
.skin-film .kpi-pill,
.skin-foil .kpi-pill { background: rgba(255, 255, 255, 0.05); border-color: rgba(216,183,122,0.18); }
.kpi-pill span { display: block; font-size: 9.5px; opacity: 0.62; margin-bottom: 2px; }
.kpi-pill strong { font-size: 11.5px; line-height: 1.35; }
.back-mini-tag {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 11.5px;
}
.back-mini-tag.is-good { background: var(--sage-soft); }
.back-mini-tag.is-warn { background: var(--terracotta-soft); }
.back-mini-tag span { display: block; font-size: 9.5px; font-weight: 700; opacity: 0.78; margin-bottom: 2px; }
.back-mini-tag strong { font-weight: 500; line-height: 1.4; }
.back-secret-bar {
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px dashed rgba(184, 147, 82, 0.45);
  margin-bottom: 8px;
}
.secret-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--gold);
  margin-bottom: 3px;
}
.back-secret-bar p { margin: 0; font-size: 12px; line-height: 1.5; }
.back-note-line { font-size: 11.5px; opacity: 0.72; }

/* DNA Lineage Bar & Brain Donut */
.dna-bar-wrap { margin-bottom: 14px; }
.dna-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  gap: 2px;
  background: var(--surface-2);
  margin-bottom: 7px;
}
.dna-seg.is-p1 { background: var(--terracotta); border-radius: 999px 0 0 999px; }
.dna-seg.is-p2 { background: var(--gold); border-radius: 0 999px 999px 0; }
.dna-legend { display: flex; flex-direction: column; gap: 2px; }
.dna-main { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.dna-sub { font-size: 12px; color: var(--ink); font-weight: 500; }

.brain-panel {
  display: grid;
  grid-template-columns: 122px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--hairline);
}
.brain-donut-box svg { width: 100%; height: auto; display: block; }
.brain-legend { display: flex; flex-direction: column; gap: 7px; }
.brain-leg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink);
}
.brain-leg-left { display: inline-flex; align-items: center; gap: 6px; }
.brain-swatch { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.brain-pct { font-family: var(--mono); font-size: 11px; color: var(--ink-2); }

/* Expandable Deep Drawer */
.deep-drawer {
  margin-top: 8px;
  border-top: 1px solid var(--hairline);
  padding-top: 10px;
}
.deep-drawer summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--terracotta);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.deep-drawer summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 15px;
}
.deep-drawer[open] summary::after { content: "−"; }
.drawer-body { margin-top: 12px; }

/* Interactive SVG Cat Anatomy Map */
.anatomy-stage {
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  padding: 8px 6px 4px;
  margin-bottom: 10px;
}
.anatomy-svg { width: 100%; height: auto; display: block; }
.hot-zone { cursor: pointer; }
.hot-pulse { opacity: 0.24; transition: opacity 0.2s ease, r 0.2s ease; }
.hot-zone:hover .hot-pulse { opacity: 0.45; }
.hot-pulse.is-good, .hot-core.is-good { fill: var(--sage); }
.hot-pulse.is-warn, .hot-core.is-warn { fill: var(--terracotta); }
.hot-pulse.is-gold, .hot-core.is-gold { fill: var(--gold); }
.hot-lbl {
  font-size: 10.5px;
  font-weight: 600;
  fill: var(--sage);
  pointer-events: none;
}
.hot-lbl.is-warn { fill: var(--terracotta); }
.hot-lbl.is-gold { fill: #9A7432; }

/* Living Dynamic Cat Animations */
.anatomy-stage {
  position: relative;
  touch-action: none;
  user-select: none;
}
.stage-hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px 4px;
}
.stage-mood-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-2);
}
.mood-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  display: inline-block;
}
.anatomy-stage.is-angry .mood-dot { background: var(--terracotta); }
.anatomy-stage.is-laser .mood-dot { background: #E0482A; box-shadow: 0 0 6px #E0482A; }

.stage-toy-btn {
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
}
.stage-toy-btn.is-on {
  background: #E0482A;
  border-color: #E0482A;
  color: #FFF;
}

/* Idle Breathing, Blinking, Tail Sway */
.cat-body-grp {
  transform-origin: 160px 148px;
  animation: catBreathe 3.4s ease-in-out infinite;
}
@keyframes catBreathe {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.022); }
}
.cat-tail-grp {
  transform-origin: 244px 124px;
  animation: tailSway 3.1s ease-in-out infinite;
}
@keyframes tailSway {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(10deg); }
}
.anatomy-stage.is-purring .cat-tail-grp { animation-duration: 1.4s; }
.anatomy-stage.is-angry .cat-tail-grp { animation: tailWhip 0.25s ease-in-out 3; }
@keyframes tailWhip {
  0%, 100% { transform: rotate(-16deg); }
  50% { transform: rotate(22deg); }
}

.eyes-open {
  transform-origin: 128px 70px;
  animation: catBlink 4.6s infinite;
}
@keyframes catBlink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.08); }
}

.cat-ear-l { transform-origin: 102px 54px; transition: transform 0.22s ease; }
.cat-ear-r { transform-origin: 154px 54px; transition: transform 0.22s ease; }
.cat-head-grp { transform-origin: 128px 86px; transition: transform 0.24s ease; }

/* Purring Happy State */
.anatomy-stage.is-purring .eyes-open { opacity: 0; }
.anatomy-stage.is-purring .eyes-happy { opacity: 1; }
.anatomy-stage.is-purring .cat-head-grp { transform: rotate(-4deg) translateY(2px); }
.anatomy-stage.is-purring .purr-waves { opacity: 1; }
.purr-ring { transform-origin: 132px 76px; }
.anatomy-stage.is-purring .purr-ring.r1 { animation: purrPulse 1.1s ease-out infinite; }
.anatomy-stage.is-purring .purr-ring.r2 { animation: purrPulse 1.1s ease-out 0.35s infinite; }
@keyframes purrPulse {
  0% { transform: scale(0.85); opacity: 0.75; }
  100% { transform: scale(1.42); opacity: 0; }
}

/* Angry Belly Landmine State (Airplane Ears + Recoil + Claw Slash) */
.anatomy-stage.is-angry .cat-ear-l { transform: rotate(-34deg) translateY(4px); }
.anatomy-stage.is-angry .cat-ear-r { transform: rotate(34deg) translateY(4px); }
.anatomy-stage.is-angry .cat-body-grp { animation: catRecoil 0.34s ease; }
@keyframes catRecoil {
  0%, 100% { transform: translateX(0) scaleY(1); }
  30% { transform: translateX(-8px) scaleY(1.06); }
  65% { transform: translateX(6px) scaleY(0.96); }
}
.claw-slash.is-hit { animation: clawFlash 0.42s ease-out forwards; }
@keyframes clawFlash {
  0% { opacity: 0; transform: scale(0.75); }
  25% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.15); }
}

/* Flying Treat Arc */
.flying-treat.is-toss { animation: treatArc 0.52s cubic-bezier(0.22, 0.85, 0.38, 1) forwards; }
@keyframes treatArc {
  0% { opacity: 1; transform: translate(0px, 0px) rotate(0deg); }
  50% { opacity: 1; transform: translate(48px, -46px) rotate(120deg); }
  90% { opacity: 1; transform: translate(86px, -16px) rotate(240deg) scale(0.7); }
  100% { opacity: 0; transform: translate(88px, -12px) scale(0.2); }
}
.anatomy-stage.is-crunch .cat-head-grp { animation: headCrunch 0.24s ease 2; }
@keyframes headCrunch {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px) scale(1.03); }
}

.laser-dot {
  filter: drop-shadow(0 0 5px rgba(224, 72, 42, 0.9));
  pointer-events: none;
}

/* Floating SVG FX Text */
.fx-float {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  animation: fxRise 0.85s ease-out forwards;
  pointer-events: none;
}
@keyframes fxRise {
  0% { opacity: 1; transform: translateY(0) scale(0.9); }
  100% { opacity: 0; transform: translateY(-28px) scale(1.12); }
}

/* Live Purr Oscilloscope Meter */
.purr-meter {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 16px;
  margin-top: 2px;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}
.purr-meter span {
  width: 3px;
  height: 4px;
  border-radius: 999px;
  background: var(--gold);
  transition: height 0.2s ease;
}
.anatomy-stage.is-purring .purr-meter { opacity: 1; }
.anatomy-stage.is-purring .purr-meter span { animation: purrBar 0.48s ease-in-out infinite alternate; }
.anatomy-stage.is-purring .purr-meter span:nth-child(2n) { animation-delay: 0.14s; background: var(--terracotta); }
.anatomy-stage.is-purring .purr-meter span:nth-child(3n) { animation-delay: 0.26s; }
@keyframes purrBar {
  from { height: 4px; }
  to { height: 14px; }
}

/* 3D Holographic Card Tilt & Moving Prism Glare (pokemon-cards-css inspired!) */
.collector-card {
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
}
.holo-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0;
  transition: opacity 0.25s ease;
  mix-blend-mode: soft-light;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.72) 0%, rgba(255, 224, 150, 0.28) 22%, rgba(120, 215, 255, 0.18) 44%, transparent 68%);
}
.collector-card.is-tilting .holo-glare,
.collector-card.skin-foil .holo-glare,
.collector-card.skin-passport .holo-glare {
  opacity: 0.65;
}

/* Skin 5: Viral Pet Passport / Cat ID Card */
.passport-banner, .passport-mrz { display: none; }
.collector-card.skin-passport {
  background: linear-gradient(155deg, #1E3144 0%, #142230 62%, #1B2A3A 100%);
  border: 1px solid rgba(212, 180, 117, 0.55);
  color: #F5EFE2;
}
.collector-card.skin-passport::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 15px;
  border: 1px solid rgba(212, 180, 117, 0.28);
  pointer-events: none;
}
.collector-card.skin-passport .passport-banner {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: #D4B475;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(212, 180, 117, 0.25);
}
.collector-card.skin-passport .passport-mrz {
  display: block;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed rgba(212, 180, 117, 0.3);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: rgba(212, 180, 117, 0.78);
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
}
.collector-card.skin-passport .card-arch { color: #EAD19E; }
.collector-card.skin-passport .card-sub,
.collector-card.skin-passport .card-footer { color: rgba(212, 180, 117, 0.72); }
.collector-card.skin-passport .os-quote,
.collector-card.skin-passport .meter-box {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(212, 180, 117, 0.24);
  color: #F5EFE2;
}
.collector-card.skin-passport .meter-track { background: rgba(255, 255, 255, 0.12); }
.collector-card.skin-passport .meter-fill { background: #D4B475; }
.collector-card.skin-passport .card-mbti { color: #EAD19E; }
.collector-card.skin-passport .pin-caption { background: rgba(255,255,255,0.08); color: rgba(245,239,226,0.86); }
.collector-card.skin-passport .back-chart-cell,
.collector-card.skin-passport .kpi-pill { background: rgba(255,255,255,0.05); border-color: rgba(212,180,117,0.22); }

/* Real-Cat Photo Interactive Playground */
.real-cat-stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #141311;
  border: 1px solid var(--hairline-strong);
  margin-bottom: 12px;
  touch-action: none;
  user-select: none;
}
.stage-hud-top.is-over-photo {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 12;
  padding: 0;
  pointer-events: none;
}
.stage-mood-pill.is-glass {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(23, 22, 20, 0.72);
  backdrop-filter: blur(8px);
  color: #FCFBF8;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.combo-badge {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(185, 88, 53, 0.88);
  color: #FFF;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.real-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
}
.real-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  transition: filter 0.25s ease;
}
.real-photo-wrap.is-squish .real-photo-img {
  animation: none;
}
@keyframes jellySquish {
  0% { transform: scale(1, 1); }
  28% { transform: scale(1.07, 0.92); }
  58% { transform: scale(0.96, 1.05); }
  100% { transform: scale(1, 1); }
}
.real-photo-wrap.is-angry-shake .real-photo-img {
  animation: none;
  filter: contrast(1.18) saturate(1.35);
}
@keyframes angryJolt {
  0%, 100% { transform: translate(0, 0) scale(1); }
  20% { transform: translate(-7px, -2px) scale(1.05); }
  50% { transform: translate(7px, 2px) scale(1.05); }
  80% { transform: translate(-4px, 0) scale(1.02); }
}

/* Viral Prop Overlays on Real Cat Photo */
.prop-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}
.prop-svg {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
  animation: propDrop 0.42s cubic-bezier(0.22, 1.28, 0.36, 1);
}
@keyframes propDrop {
  from { opacity: 0; transform: translate(-50%, -26px) scale(0.85); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* Viral Douyin/Bilibili Red-Blush Steam VFX */
.stage-blush-vfx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.28s ease;
  background:
    radial-gradient(circle at 36% 52%, rgba(255, 82, 82, 0.48), transparent 22%),
    radial-gradient(circle at 64% 52%, rgba(255, 82, 82, 0.48), transparent 22%),
    radial-gradient(circle at 50% 50%, transparent 45%, rgba(220, 48, 32, 0.32) 100%);
}
.real-photo-wrap.is-blush .stage-blush-vfx { opacity: 1; }

.stage-claw-fx {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 9;
  opacity: 0;
}
.stage-claw-fx svg { width: 64%; height: auto; }
.stage-claw-fx.is-hit { animation: clawFlash 0.48s ease-out forwards; }

.stage-treat-fx {
  position: absolute;
  left: 14%;
  bottom: 18%;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #EAD19E, #C49B57);
  border: 1.5px solid #1C1B19;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
}
.stage-treat-fx.is-toss {
  animation: realTreatArc 0.56s cubic-bezier(0.22, 0.85, 0.38, 1) forwards;
}
@keyframes realTreatArc {
  0% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
  48% { opacity: 1; transform: translate(110px, -110px) scale(1.15) rotate(140deg); }
  88% { opacity: 1; transform: translate(165px, -45px) scale(0.75) rotate(260deg); }
  100% { opacity: 0; transform: translate(170px, -38px) scale(0.2); }
}

/* Fingertip Floating Danmaku & Sparkle Particles */
.stage-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 11;
  overflow: hidden;
}
.float-pill {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(23, 22, 20, 0.82);
  color: #ECD3A1;
  border: 1px solid rgba(216, 183, 122, 0.5);
  font-family: var(--serif);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  animation: pillFloatUp 0.95s ease-out forwards;
}
.float-pill.is-warn {
  background: rgba(185, 88, 53, 0.92);
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.35);
}
@keyframes pillFloatUp {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.8); }
  18% { opacity: 1; transform: translate(-50%, -10px) scale(1.04); }
  100% { opacity: 0; transform: translate(-50%, -56px) scale(0.98); }
}

.purr-meter.is-over-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 12;
  pointer-events: none;
  opacity: 0.72;
}
.real-cat-stage.is-purring .purr-meter span { animation: purrBar 0.42s ease-in-out infinite alternate; }
.real-cat-stage.is-purring .purr-meter span:nth-child(2n) { animation-delay: 0.14s; background: #FF8A65; }

.prop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.prop-toolbar-lbl {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.real-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.real-act-btn {
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.16s ease;
}
.real-act-btn:hover { background: var(--surface-2); }
.real-act-btn:active { transform: scale(0.96); }
.real-act-btn.is-warn {
  border-color: rgba(185, 88, 53, 0.35);
  color: var(--terracotta);
  background: var(--terracotta-soft);
}

/* Precision Anchored & Draggable Prop */
.prop-overlay.is-stage .prop-svg {
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}
.prop-overlay.is-stage .prop-svg:active { cursor: grabbing; }
.prop-fine-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  font-size: 11.5px;
  color: var(--ink-2);
}
.prop-fine-bar input[type="range"] {
  flex: 1;
  accent-color: var(--terracotta);
}

/* 16-Prop Unlimited Multi-Layer Dress-Up Studio */
.prop-studio-bar { margin-bottom: 10px; }
.prop-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.prop-palette {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.prop-add-btn {
  height: 34px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.14s ease;
}
.prop-add-btn:hover { background: var(--surface-2); border-color: var(--terracotta); }
.prop-add-btn:active { transform: scale(0.96); }
.prop-add-btn .plus-tag { color: var(--terracotta); font-family: var(--mono); font-weight: 700; }

.prop-item-layer {
  position: absolute;
  transform-origin: center center;
  pointer-events: none;
}
.prop-overlay.is-stage .prop-item-layer {
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  border-radius: 6px;
}
.prop-overlay.is-stage .prop-item-layer.is-selected:hover,
.prop-overlay.is-stage .prop-item-layer.is-dragging {
  outline: 1.5px dashed rgba(216, 183, 122, 0.9);
  outline-offset: 3px;
}
.prop-item-layer img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.28));
}

.prop-fine-bar {
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
}
.fine-row {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.fine-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fine-sel-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}

/* Designer Toy Figurine Mode Switcher & 3:4 Aspect Stage */
.studio-mode-bar {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  margin-bottom: 10px;
}
.mode-tab {
  height: 32px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
}
.mode-tab.is-active {
  background: var(--obsidian);
  color: var(--surface);
  font-weight: 600;
}
.real-cat-stage.is-figurine {
  background: #F5F1E9;
}
.real-photo-wrap.is-figurine {
  aspect-ratio: 3 / 4;
}
.preset-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  margin-bottom: 12px;
}

/* Unified Living Figurine Rig (Body + Clothes + Shoes move as ONE 3D toy!) */
.figurine-rig {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 50% 89%;
}
.real-photo-wrap.is-figurine .figurine-rig {
  animation: figIdleBreathe 3.6s ease-in-out infinite;
}
@keyframes figIdleBreathe {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(-2px) scaleY(1.01); }
}
.real-photo-wrap.is-fig-hop .figurine-rig {
  animation: figHappyHop 0.48s cubic-bezier(0.28, 1.35, 0.42, 1) !important;
}
@keyframes figHappyHop {
  0% { transform: translateY(0) scale(1, 1); }
  25% { transform: translateY(2px) scale(1.03, 0.97); }
  55% { transform: translateY(-14px) scale(0.98, 1.03); }
  100% { transform: translateY(0) scale(1, 1); }
}
.real-photo-wrap.is-fig-wiggle .figurine-rig {
  animation: figWiggle 0.36s ease !important;
}
@keyframes figWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

.fig-live-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
  display: none;
}
.real-photo-wrap.is-figurine .fig-live-overlay { display: block; }

.fig-eyelids {
  transform-origin: 150px 108px;
  animation: figAutoBlink 4.4s infinite;
}
@keyframes figAutoBlink {
  0%, 91%, 100% { transform: scaleY(0); opacity: 0; }
  95% { transform: scaleY(1); opacity: 1; }
}
.real-photo-wrap.is-fig-happy .fig-eyelids {
  animation: none !important;
  transform: scaleY(1);
  opacity: 1;
}
.real-photo-wrap.is-fig-happy .fig-happy-eyes { opacity: 1; }
.real-photo-wrap.is-fig-happy .fig-cheek-glow { opacity: 1; }
.real-photo-wrap.is-fig-meow .fig-meow-mouth {
  opacity: 1;
  transform-origin: 150px 147px;
  animation: meowTalk 0.24s ease-in-out 2;
}
@keyframes meowTalk {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1.15); }
}

/* Right-Side Interactive Action Rail (Right beside the cat!) */
.side-act-rail {
  position: absolute;
  right: 8px;
  top: 46px;
  bottom: 42px;
  z-index: 14;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.rail-btn {
  width: 44px;
  padding: 5px 2px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(23, 22, 20, 0.70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FCFBF8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.16s ease;
}
.rail-btn svg { width: 15px; height: 15px; color: #ECD3A1; }
.rail-btn span { font-size: 9.5px; font-weight: 500; line-height: 1; }
.rail-btn:hover { background: rgba(23, 22, 20, 0.88); }
.rail-btn:active { transform: scale(0.92); }
.rail-btn.is-warn { border-color: rgba(217, 96, 59, 0.55); }
.rail-btn.is-warn svg { color: #FF8A65; }

/* In-Stage Floating Speech Bubble */
.cat-speech-bubble {
  position: absolute;
  top: 44px;
  left: 12px;
  right: 60px;
  z-index: 13;
  padding: 7px 11px;
  border-radius: 12px;
  background: rgba(252, 251, 248, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(184, 147, 82, 0.45);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 8px 20px rgba(23, 22, 20, 0.12);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.cat-speech-bubble.is-show { opacity: 1; transform: translateY(0); }
.cat-speech-bubble.is-warn {
  background: rgba(185, 88, 53, 0.94);
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.35);
}

/* 3-Stat Companion Mini Strip */
.stage-stat-strip {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  z-index: 13;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(23, 22, 20, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.stat-mini {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  color: rgba(252, 251, 248, 0.85);
}
.stat-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.stat-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #D8B77A, #E07A5F);
  transition: width 0.32s ease;
}

/* Organic Multi-State Figurine Reactions */
.real-photo-wrap.is-fig-chin .figurine-rig {
  animation: figChinTilt 1.2s ease-in-out !important;
}
@keyframes figChinTilt {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  35%, 70% { transform: rotate(-2.4deg) translateY(-3px); }
}
.real-photo-wrap.is-fig-pounce .figurine-rig {
  animation: figPounce 0.9s ease-in-out !important;
}
@keyframes figPounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(4px) scaleY(0.96) rotate(-2deg); }
  55% { transform: translateY(-9px) scaleY(1.02) rotate(2.5deg); }
  80% { transform: translateY(-3px) rotate(-1.5deg); }
}
.real-photo-wrap.is-fig-angry .fig-angry-brows { opacity: 1; }
.real-photo-wrap.is-fig-track .fig-track-glints {
  opacity: 1;
  animation: trackSweep 0.9s ease-in-out;
}
@keyframes trackSweep {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-5px); }
  70% { transform: translateX(5px); }
}
.stage-feather-fx.is-play {
  animation: featherWave 1.1s ease-in-out forwards;
}
@keyframes featherWave {
  0% { opacity: 0; transform: translate(-30px, -10px) rotate(-12deg); }
  20% { opacity: 1; transform: translate(10px, 6px) rotate(8deg); }
  55% { opacity: 1; transform: translate(-18px, 14px) rotate(-10deg); }
  85% { opacity: 1; transform: translate(16px, 4px) rotate(10deg); }
  100% { opacity: 0; transform: translate(34px, -10px) rotate(16deg); }
}
.stage-brush-fx.is-play {
  animation: brushStroke 1.05s ease-in-out forwards;
}
@keyframes brushStroke {
  0% { opacity: 0; transform: translate(0, -16px); }
  20% { opacity: 1; transform: translate(0, 0); }
  65% { opacity: 1; transform: translate(0, 56px); }
  100% { opacity: 0; transform: translate(0, 74px); }
}

/* Smooth Eye Ball Transition for Real-Time Cursor & Feather Tracking */
#eyeBallL, #eyeBallR { transition: transform 0.12s ease-out; }
.real-photo-wrap.is-fig-happy .live-eyes-grp { opacity: 0; }
.real-photo-wrap.is-fig-angry #pupilL,
.real-photo-wrap.is-fig-angry #pupilR { transform-origin: center; transform: scale(1.22); }

/* Refined Organic Motion + Zero Clothing Clipping + Active Laser Toy */
.side-act-rail { top: 10px; bottom: 44px; gap: 5px; }
.rail-btn.is-laser-on {
  background: rgba(217, 74, 46, 0.92);
  border-color: rgba(255, 220, 200, 0.65);
}
.rail-btn.is-laser-on svg { color: #FFF; }
.cat-speech-bubble { top: 12px; left: 12px; right: 62px; }

.is-head-props { z-index: 6; }



/* Smoother, subtler, spring-damped organic curves (no robotic snapping!) */
.real-photo-wrap.is-figurine .figurine-rig {
  animation: figIdleBreathe 4.4s ease-in-out infinite;
}
.real-photo-wrap.is-fig-happy .real-photo-wrap.is-fig-happy .real-photo-wrap.is-fig-pounce .real-photo-wrap.is-fig-pounce @keyframes pawBatSoftL {
  0%, 100% { transform: rotate(0deg); }
  45% { transform: rotate(24deg) translateY(-3px); }
}
@keyframes pawBatSoftR {
  0%, 100% { transform: rotate(-24deg) translateY(-3px); }
  45% { transform: rotate(0deg); }
}
.real-photo-wrap.is-fig-angry @keyframes pawSlapSoftR {
  0%, 100% { transform: rotate(0deg); }
  45% { transform: rotate(-28deg) translateY(-4px); }
}
.real-photo-wrap.is-fig-hop .figurine-rig {
  animation: figOrganicHop 0.68s cubic-bezier(0.34, 1.38, 0.64, 1) !important;
}
@keyframes figOrganicHop {
  0% { transform: translateY(0) scale(1, 1); }
  20% { transform: translateY(3px) scale(1.025, 0.975); }
  52% { transform: translateY(-11px) scale(0.99, 1.015); }
  82% { transform: translateY(1px) scale(1.01, 0.99); }
  100% { transform: translateY(0) scale(1, 1); }
}

/* Natural Laser Pointer Dot */
.fig-laser-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFF 0%, #FF4D2E 45%, rgba(255, 77, 46, 0) 100%);
  box-shadow: 0 0 12px 3px rgba(255, 77, 46, 0.75);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 12;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.fig-laser-dot.is-on { opacity: 1; }

/* Rich Unified Dressed-Up Toy Motion (Moves body + clothes + shoes together as one solid 3D vinyl figurine!) */
.real-photo-wrap.is-fig-happy.has-top .figurine-rig {
  animation: figPurrSway 0.85s ease-in-out infinite !important;
}
@keyframes figPurrSway {
  0%, 100% { transform: rotate(-1.6deg) translateY(0); }
  50% { transform: rotate(1.6deg) translateY(-2.5px); }
}
.real-photo-wrap.is-fig-angry.has-top .figurine-rig {
  animation: figRecoilUnified 0.42s cubic-bezier(0.34, 1.4, 0.64, 1) !important;
}
@keyframes figRecoilUnified {
  0% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(-3.5deg) scale(1.02); }
  60% { transform: translateY(1px) rotate(2.5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Above-Stage Dialogue Ribbon (NEVER covers any part of the cat!) */
.cat-speech-ribbon {
  min-height: 30px;
  padding: 6px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-2);
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cat-speech-ribbon.is-show {
  color: var(--ink);
  border-color: rgba(184, 147, 82, 0.48);
  background: rgba(245, 241, 233, 0.92);
}
.cat-speech-ribbon.is-warn {
  background: rgba(185, 88, 53, 0.12);
  border-color: rgba(185, 88, 53, 0.42);
  color: #8F3E22;
}

/* Unified Seamless 3D Toy Physics (Body + ALL Clothes + Shoes + Hats move as ONE solid piece — ZERO tearing!) */
.real-photo-wrap.is-fig-happy .figurine-rig {
  animation: unifiedPurrSway 0.9s ease-in-out infinite !important;
}
@keyframes unifiedPurrSway {
  0%, 100% { transform: rotate(-1.8deg) scaleY(1); }
  50% { transform: rotate(1.8deg) scaleY(1.015) translateY(-2px); }
}
.real-photo-wrap.is-fig-chin .figurine-rig {
  animation: unifiedChinBliss 1.25s ease-in-out !important;
}
@keyframes unifiedChinBliss {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  35%, 70% { transform: rotate(-2.5deg) translateY(-4px) scale(1.01); }
}
.real-photo-wrap.is-fig-pounce .figurine-rig {
  animation: unifiedPounce 1.05s cubic-bezier(0.34, 1.38, 0.64, 1) !important;
}
@keyframes unifiedPounce {
  0% { transform: translateY(0) scale(1, 1) rotate(0deg); }
  20% { transform: translateY(4px) scale(1.04, 0.95) rotate(-2.5deg); }
  48% { transform: translateY(-14px) scale(0.97, 1.03) rotate(3deg); }
  74% { transform: translateY(-4px) scale(1.02, 0.98) rotate(-2deg); }
  100% { transform: translateY(0) scale(1, 1) rotate(0deg); }
}
.real-photo-wrap.is-fig-angry .figurine-rig {
  animation: unifiedRecoil 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) !important;
}
@keyframes unifiedRecoil {
  0% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-6px) rotate(-4deg) scale(1.02); }
  60% { transform: translateY(2px) rotate(3deg) scale(0.99); }
  100% { transform: translateY(0) rotate(0deg); }
}


/* === Interactive Hands, Feather Wand & Mouth-Targeted Freeze-Dried Treat === */
.stage-action-fx-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 16;
  overflow: hidden;
}
.fx-item {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.fx-item svg {
  width: 100%;
  height: auto;
  display: block;
}

/* 1. Petting Hand (顺毛: 轻柔抚摸猫猫头顶) */
.fx-hand-pet {
  left: 52%;
  top: 10%;
  width: 34%;
  transform: translate(-50%, 0);
}
.fx-hand-pet.is-play {
  animation: fxHandPetMove 1.35s cubic-bezier(0.42, 0, 0.58, 1) forwards;
}
@keyframes fxHandPetMove {
  0%   { opacity: 0; transform: translate(20%, -18%) rotate(12deg); }
  16%  { opacity: 1; transform: translate(-34%, 4%) rotate(-4deg); }
  38%  { opacity: 1; transform: translate(-66%, 10%) rotate(-12deg); }
  58%  { opacity: 1; transform: translate(-34%, 2%) rotate(-2deg); }
  80%  { opacity: 1; transform: translate(-66%, 10%) rotate(-12deg); }
  100% { opacity: 0; transform: translate(16%, -16%) rotate(10deg); }
}

/* 2. Chin Scratch Hand (挠下巴: 精准伸到下巴处轻挠) */
.fx-hand-chin {
  left: 44%;
  top: 38.5%;
  width: 28%;
  transform: translate(-50%, 0);
}
.fx-hand-chin.is-play {
  animation: fxHandChinMove 1.35s ease-in-out forwards;
}
@keyframes fxHandChinMove {
  0%   { opacity: 0; transform: translate(-75%, 36%) rotate(-14deg); }
  18%  { opacity: 1; transform: translate(-50%, 0%) rotate(0deg); }
  32%  { opacity: 1; transform: translate(-45%, -8%) rotate(6deg); }
  46%  { opacity: 1; transform: translate(-53%, 2%) rotate(-3deg); }
  60%  { opacity: 1; transform: translate(-44%, -9%) rotate(7deg); }
  74%  { opacity: 1; transform: translate(-52%, 2%) rotate(-2deg); }
  86%  { opacity: 1; transform: translate(-46%, -6%) rotate(5deg); }
  100% { opacity: 0; transform: translate(-78%, 38%) rotate(-14deg); }
}

/* 3. Hand Holding Grooming Brush (梳毛: 手握木柄梳顺着胸口与肚皮毛流轻梳) */
.fx-hand-brush {
  left: 55%;
  top: 40%;
  width: 38%;
  transform: translate(-50%, 0);
}
.fx-hand-brush.is-play {
  animation: fxHandBrushMove 1.35s ease-in-out forwards;
}
@keyframes fxHandBrushMove {
  0%   { opacity: 0; transform: translate(14%, -12%) rotate(8deg); }
  16%  { opacity: 1; transform: translate(-46%, 0%) rotate(-5deg); }
  46%  { opacity: 1; transform: translate(-54%, 72%) rotate(-12deg); }
  58%  { opacity: 1; transform: translate(-44%, 4%) rotate(-4deg); }
  86%  { opacity: 1; transform: translate(-52%, 76%) rotate(-12deg); }
  100% { opacity: 0; transform: translate(16%, 32%) rotate(8deg); }
}

/* 4. Poking Finger (戳肚皮: 右侧伸出手指轻戳肚皮) */
.fx-hand-poke {
  left: 58%;
  top: 56%;
  width: 30%;
  transform: translate(-50%, 0);
}
.fx-hand-poke.is-play {
  animation: fxHandPokeMove 0.85s cubic-bezier(0.34, 1.35, 0.64, 1) forwards;
}
@keyframes fxHandPokeMove {
  0%   { opacity: 0; transform: translate(45%, 10%) rotate(8deg); }
  22%  { opacity: 1; transform: translate(-24%, 0%) rotate(-4deg); }
  38%  { opacity: 1; transform: translate(6%, 2%) rotate(2deg); }
  56%  { opacity: 1; transform: translate(-28%, 0%) rotate(-6deg); }
  100% { opacity: 0; transform: translate(55%, 18%) rotate(14deg); }
}

/* 5. Feather Toy Wand (逗猫棒: 清晰醒目，悬停在头顶耳边左右大弧度摇摆!) */
.fx-feather-wand {
  left: 42%;
  top: -3%;
  width: 70%;
  transform-origin: 8% 14%;
}
.fx-feather-wand.is-play {
  animation: fxFeatherWandWave 1.45s ease-in-out forwards;
}
@keyframes fxFeatherWandWave {
  0%   { opacity: 0; transform: translate(-65%, -14%) rotate(-18deg); }
  14%  { opacity: 1; transform: translate(-42%, 4%) rotate(6deg); }
  36%  { opacity: 1; transform: translate(-62%, 10%) rotate(-14deg); }
  60%  { opacity: 1; transform: translate(-34%, 6%) rotate(12deg); }
  82%  { opacity: 1; transform: translate(-56%, 8%) rotate(-10deg); }
  100% { opacity: 0; transform: translate(-72%, -18%) rotate(-22deg); }
}

/* 6. Freeze-Dried Treat Flying Directly Into Cat Mouth (left:50%, top:36.8%) */
.fx-treat-bite {
  left: 50%;
  top: 36.8%;
  width: 11.5%;
  transform: translate(-50%, -50%);
}
.fx-treat-bite.is-play {
  animation: fxTreatIntoMouth 0.52s cubic-bezier(0.25, 0.72, 0.35, 1) forwards;
}
@keyframes fxTreatIntoMouth {
  0%   { opacity: 0; left: 82%; top: 18%; transform: translate(-50%, -50%) scale(1.15) rotate(-30deg); }
  15%  { opacity: 1; left: 74%; top: 15%; transform: translate(-50%, -50%) scale(1.12) rotate(10deg); }
  55%  { opacity: 1; left: 60%; top: 22%; transform: translate(-50%, -50%) scale(1.0) rotate(110deg); }
  86%  { opacity: 1; left: 50%; top: 36.8%; transform: translate(-50%, -50%) scale(0.76) rotate(190deg); }
  100% { opacity: 0; left: 50%; top: 36.8%; transform: translate(-50%, -50%) scale(0.18) rotate(220deg); }
}

/* Realistic Munching Mouth Animation When Eating Treat */
.real-photo-wrap.is-fig-munch .fig-meow-mouth {
  opacity: 1;
  transform-origin: 150px 147px;
  animation: catMunchChew 0.24s ease-in-out 3;
}
@keyframes catMunchChew {
  0%, 100% { transform: scale(0.85, 0.35); }
  50% { transform: scale(1.12, 1.25); }
}


/* =========================================================
   4 NEW FUN INTERACTIVE FEATURES (Voice Callout, Blind Box, CP Booth, Work Receipt)
   ========================================================= */

/* Feature 4: Voice & Keyword Callout Bar */
.voice-callout-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--hairline);
}
.voice-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  margin-right: 2px;
}
/* === P2-2: Real Props for Voice Callouts (bowl / tub / clipper / cuddle hands) === */
/* 阶段1 = 道具本体入场；阶段2+ = 子元素循环（蒸汽/泡泡/开合/心跳）。
   全部百分比定位，且 fx 层 overflow:hidden，375px 下不越界不遮侧栏。 */
.fx-food-bowl {
  left: 50%;
  bottom: 4%;
  width: 44%;
  transform: translateX(-50%);
}
.fx-food-bowl.is-play { animation: fxFoodBowlIn 1.6s ease-out forwards; }
@keyframes fxFoodBowlIn {
  0%   { opacity: 0; transform: translateX(-50%) translateY(62%) scale(0.82); }
  20%  { opacity: 1; transform: translateX(-50%) translateY(-7%) scale(1.05); }
  36%  { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  82%  { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(34%) scale(0.9); }
}
.bowl-steam, .bowl-kibble { opacity: 0; transform-box: view-box; }
.fx-food-bowl.is-play .bowl-steam { animation: fxSteamRise 0.8s ease-in-out 0.25s 2; }
@keyframes fxSteamRise {
  0%   { opacity: 0; transform: translateY(4px); }
  45%  { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(-8px); }
}
.fx-food-bowl.is-play .bowl-kibble { animation: fxKibbleNibble 1.5s ease-in-out forwards; }
@keyframes fxKibbleNibble {
  0%   { opacity: 0; transform: scale(1); }
  25%  { opacity: 1; transform: scale(1.08); }
  45%  { opacity: 1; transform: scale(1); }
  75%  { opacity: 1; transform: scale(0.86); }
  100% { opacity: 0.9; transform: scale(0.8); }
}

.fx-bath-tub {
  left: 50%;
  bottom: 0;
  width: 88%;
  transform: translateX(-50%);
}
/* P3-4 v2: 缸与猫同拍 2.1s 收尾（原先 1.7s 缸先消失，猫还留在画面里） */
.fx-bath-tub.is-play { animation: fxBathTubIn 2.1s ease-out forwards; }
@keyframes fxBathTubIn {
  0%   { opacity: 0; transform: translateX(-50%) translateY(34%) scale(0.9) rotate(-3deg); }
  9%   { opacity: 1; transform: translateX(-50%) translateY(-4%) scale(1.03) rotate(1.5deg); }
  16%  { opacity: 1; transform: translateX(-50%) translateY(0) scale(1) rotate(0deg); }
  88%  { opacity: 1; transform: translateX(-50%) translateY(0) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translateX(-50%) translateY(16%) scale(0.94) rotate(2deg); }
}
.bath-foam, .bath-bubble { opacity: 0; transform-box: view-box; }
.fx-bath-tub.is-play .bath-foam { animation: fxFoamPulse 0.85s ease-in-out 0.25s 2; }
@keyframes fxFoamPulse {
  0%   { opacity: 0; transform: scale(0.9); }
  40%  { opacity: 1; transform: scale(1.06); }
  70%  { opacity: 1; transform: scale(0.97); }
  100% { opacity: 0.95; transform: scale(1); }
}
.fx-bath-tub.is-play .bath-bubble.b1 { animation: fxBubbleFloat 0.75s ease-in 0.4s 2; }
 .fx-bath-tub.is-play .bath-bubble.b2 { animation: fxBubbleFloat 0.75s ease-in 0.6s 2; }
/* P3-4: 入水水花 —— 左右斜冲 + 中柱上溅 */
.fx-bath-tub.is-play .bath-splash { opacity: 0; transform-box: view-box; }
.fx-bath-tub.is-play .bath-splash.s1 { animation: fxBathSplashL 0.5s ease-out 0.15s 2; }
.fx-bath-tub.is-play .bath-splash.s2 { animation: fxBathSplashR 0.5s ease-out 0.3s 2; }
.fx-bath-tub.is-play .bath-splash.s3 { animation: fxBathSplashUp 0.55s ease-out 0.45s 2; }
@keyframes fxBathSplashL { 0% { opacity: 0; transform: translate(6px, 4px) scale(0.6); } 45% { opacity: 1; } 100% { opacity: 0; transform: translate(-10px, -8px) scale(1.15); } }
@keyframes fxBathSplashR { 0% { opacity: 0; transform: translate(-6px, 4px) scale(0.6); } 45% { opacity: 1; } 100% { opacity: 0; transform: translate(10px, -9px) scale(1.15); } }
@keyframes fxBathSplashUp { 0% { opacity: 0; transform: translateY(6px) scale(0.7); } 45% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px) scale(1.2); } }
@keyframes fxBubbleFloat {
  0%   { opacity: 0; transform: translateY(6px); }
  40%  { opacity: 0.95; }
  100% { opacity: 0; transform: translateY(-12px); }
}

.fx-nail-clip {
  left: 54%;
  top: 46%;
  width: 48%;
  transform: translate(-50%, -50%);
}
.fx-nail-clip.is-play { animation: fxNailClipIn 1.5s ease-out forwards; }
@keyframes fxNailClipIn {
  0%   { opacity: 0; transform: translate(28%, -50%) rotate(14deg); }
  18%  { opacity: 1; transform: translate(-46%, -50%) rotate(-4deg); }
  30%  { opacity: 1; transform: translate(-50%, -50%) rotate(0deg); }
  84%  { opacity: 1; transform: translate(-50%, -50%) rotate(0deg); }
  100% { opacity: 0; transform: translate(-24%, -58%) rotate(10deg); }
}
.clip-blade {
  transform-box: view-box;
  transform-origin: 46px 58px;
  opacity: 0;
}
.fx-nail-clip.is-play .clip-blade { animation: fxClipSnap 0.42s ease-in-out 0.3s 3; }
@keyframes fxClipSnap {
  0%, 100% { opacity: 1; transform: rotate(13deg); }
  50%      { opacity: 1; transform: rotate(-2deg); }
}
.paw-ring { opacity: 0; transform-box: view-box; transform-origin: 40px 58px; }
.fx-nail-clip.is-play .paw-ring { animation: fxPawRing 0.5s ease-in-out 0.3s 3; }
@keyframes fxPawRing {
  0%, 100% { opacity: 0; transform: scale(0.85); }
  50%      { opacity: 0.95; transform: scale(1.1); }
}

.fx-cuddle-hands {
  left: 50%;
  top: 54%;
  width: 72%;
  transform: translate(-50%, -50%);
}
.fx-cuddle-hands.is-play { animation: fxCuddleIn 1.55s ease-out forwards; }
@keyframes fxCuddleIn {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(1.18); }
  22%  { opacity: 1; transform: translate(-50%, -50%) scale(0.97); }
  38%  { opacity: 1; transform: translate(-50%, -50%) scale(1.02); }
  52%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  86%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.1); }
}
.cuddle-heart { opacity: 0; transform-box: view-box; }
.fx-cuddle-hands.is-play .cuddle-heart.h1 { animation: fxHeartRise 0.9s ease-out 0.35s 2; }
.fx-cuddle-hands.is-play .cuddle-heart.h2 { animation: fxHeartRise 0.9s ease-out 0.55s 2; }
.fx-cuddle-hands.is-play .cuddle-heart.h3 { animation: fxHeartRise 0.9s ease-out 0.75s 2; }
@keyframes fxHeartRise {
  0%   { opacity: 0; transform: translateY(8px) scale(0.7); }
  40%  { opacity: 1; transform: translateY(-4px) scale(1.06); }
  100% { opacity: 0; transform: translateY(-18px) scale(0.92); }
}

/* === P2-3: Coat classifier debug panel (?debug=1 only) === */
.coat-debug-panel {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 44px;
  z-index: 30;
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(23, 22, 20, 0.86);
  color: #F3EBDD;
  font-size: 11px;
  line-height: 1.45;
  pointer-events: none;
  backdrop-filter: blur(6px);
}
.coat-debug-panel.is-hidden { display: none; }
.coat-debug-panel b { color: #ECD3A1; font-size: 11.5px; }
.coat-debug-scores, .coat-debug-shares { display: flex; flex-wrap: wrap; gap: 5px 9px; }
.coat-debug-scores span, .coat-debug-shares span {
  padding: 1.5px 7px;
  border-radius: 999px;
  background: rgba(236, 211, 161, 0.14);
  border: 1px solid rgba(236, 211, 161, 0.25);
}
.coat-debug-scores i { color: #ECD3A1; font-style: normal; }

.voice-chip {
  height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(23, 22, 20, 0.16);
  background: #FCFBF8;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.16s ease, border-color 0.16s ease;
}
.voice-chip:active { transform: scale(0.93); }
.voice-chip:hover { border-color: var(--brass); background: #FAF5E8; }
.voice-chip.is-danger { color: #9E361E; border-color: rgba(185, 88, 53, 0.35); }
.voice-chip.is-mic {
  margin-left: auto;
  background: #1C1B19;
  color: #ECD3A1;
  border-color: #1C1B19;
}
.voice-chip.is-mic.is-listening {
  background: #B95835;
  color: #FFF;
  border-color: #B95835;
  animation: micPulse 1.1s ease-in-out infinite;
}
@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(185, 88, 53, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(185, 88, 53, 0); }
}

/* Exaggerated Hilarious Voice-Triggered Cat Reactions (Unified rig — ZERO tearing!) */
.real-photo-wrap.is-fig-rush .figurine-rig {
  animation: figFoodRush 1.35s cubic-bezier(0.22, 1.35, 0.36, 1) !important;
}
@keyframes figFoodRush {
  /* P3-4: 狂奔 → 落碗 → 下探① → 抬头 → 下探② → 回位 */
  0%   { transform: translateY(0) scale(1); }
  18%  { transform: translateY(4px) scale(0.95, 0.94); }
  38%  { transform: translateY(-16px) scale(1.22); }
  52%  { transform: translateY(0) scale(1.02); }
  64%  { transform: translateY(9%) scale(1) rotate(2deg); }
  76%  { transform: translateY(2%) scale(1.01); }
  86%  { transform: translateY(10%) scale(1) rotate(3deg); }
  100% { transform: translateY(0) scale(1); }
}
.real-photo-wrap.is-fig-rush #pupilL,
.real-photo-wrap.is-fig-rush #pupilR {
  transform-origin: center;
  transform: scale(1.38);
}

.real-photo-wrap.is-fig-hide .figurine-rig {
  animation: figBathHide 2.1s cubic-bezier(0.32, 1.18, 0.42, 1) !important; /* P3-4 v2 */
}
@keyframes figBathHide {
  /* P3-4 v2: 惊跳 → 躲到高缸后（只露耳朵眼睛） → 探头① → 缩回 → 探头② → 缩回 → 回位
     下沉上限 32%，猫头始终留在画面内，不再出现「头从底边被裁切」的过渡帧 */
  0%   { transform: translateY(0) scale(1); }
  6%   { transform: translateY(-14px) scale(1.05) rotate(-5deg); }
  14%  { transform: translateY(-14px) scale(1.04) rotate(-5deg); }
  24%  { transform: translateY(32%) scale(0.99) rotate(-4deg); }
  32%  { transform: translateY(32%) scale(0.99) rotate(-4deg); }
  40%  { transform: translateY(19%) scale(0.99) rotate(-6deg); }
  48%  { transform: translateY(32%) scale(0.99) rotate(-4deg); }
  56%  { transform: translateY(19%) scale(0.99) rotate(-6deg); }
  64%  { transform: translateY(32%) scale(0.99) rotate(-4deg); }
  86%  { transform: translateY(32%) scale(0.99) rotate(-4deg); }
  100% { transform: translateY(0) scale(1); }
}
/* P3-4 v2: 装扮层跟着猫一起下沉，避免「猫躲了、衣服浮在半空」 */
.real-photo-wrap.is-fig-hide #stagePropOverlay {
  animation: figBathHideProps 2.1s cubic-bezier(0.32, 1.18, 0.42, 1) !important;
  transform-origin: 50% 89%;
}
@keyframes figBathHideProps {
  0%   { transform: translateY(0); }
  6%   { transform: translateY(-14px); }
  14%  { transform: translateY(-14px); }
  24%  { transform: translateY(32%); }
  32%  { transform: translateY(32%); }
  40%  { transform: translateY(19%); }
  48%  { transform: translateY(32%); }
  56%  { transform: translateY(19%); }
  64%  { transform: translateY(32%); }
  86%  { transform: translateY(32%); }
  100% { transform: translateY(0); }
}

.real-photo-wrap.is-fig-freeze .figurine-rig {
  animation: figNailFreeze 1.45s ease-in-out !important;
}
@keyframes figNailFreeze {
  0%   { transform: translate(0, 0) scale(1); }
  22%  { transform: translate(-24%, 14%) scale(0.76) rotate(-4deg); }
  38%  { transform: translate(-26%, 14%) scale(0.76) rotate(-2deg); }
  54%  { transform: translate(-23%, 14%) scale(0.76) rotate(-5deg); }
  74%  { transform: translate(-25%, 14%) scale(0.76) rotate(-3deg); }
  100% { transform: translate(0, 0) scale(1); }
}

.real-photo-wrap.is-fig-nuzzle .figurine-rig {
  animation: figNuzzle 1.35s ease-in-out !important;
}
@keyframes figNuzzle {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  30% { transform: translateY(-6px) scale(1.12) rotate(-5deg); }
  65% { transform: translateY(-6px) scale(1.12) rotate(5deg); }
}

/* Feature 5: Cat Part-Time Job Thermal Receipt */
.printer-slot-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.printer-slot-mouth {
  width: 100%;
  height: 26px;
  border-radius: 8px;
  background: #1C1B19;
  color: rgba(236, 211, 161, 0.78);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 -5px 8px rgba(0, 0, 0, 0.65);
  z-index: 2;
}
.work-receipt-paper {
  position: relative;
  width: 92%;
  margin-top: -6px;
  padding: 18px 16px 20px;
  background: #FCFBF6;
  border-left: 1px solid rgba(23, 22, 20, 0.12);
  border-right: 1px solid rgba(23, 22, 20, 0.12);
  box-shadow: 0 12px 26px rgba(23, 22, 20, 0.12);
  font-family: var(--mono);
  color: #1C1B19;
  transform-origin: top center;
}
.work-receipt-paper.is-printing {
  animation: receiptFeedOut 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes receiptFeedOut {
  0%   { opacity: 0.2; transform: translateY(-22px) scaleY(0.18); }
  55%  { opacity: 1; transform: translateY(0) scaleY(0.76); }
  72%  { transform: translateY(0) scaleY(0.84); }
  100% { opacity: 1; transform: translateY(0) scaleY(1); }
}
.work-receipt-paper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 8px;
  background: radial-gradient(circle at 6px 8px, transparent 5px, #FCFBF6 5.5px) repeat-x;
  background-size: 12px 8px;
}
.rcpt-top {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.rcpt-meta {
  text-align: center;
  font-size: 10.5px;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.rcpt-dash {
  border-top: 1px dashed rgba(23, 22, 20, 0.3);
  margin: 8px 0;
}
.rcpt-overtime {
  margin: 0 0 8px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(23, 22, 20, 0.035);
  text-align: left;
}
.rcpt-overtime span {
  display: block;
  margin-bottom: 2px;
  color: #8A8177;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.rcpt-overtime p {
  margin: 0;
  color: #4A4640;
  font-size: 10.5px;
  line-height: 1.45;
}
.rcpt-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11.5px;
}
.rcpt-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.rcpt-total {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  color: #B95835;
}
.rcpt-boss {
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 6px;
  background: rgba(23, 22, 20, 0.04);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink);
}
.rcpt-stamp {
  position: absolute;
  right: 14px;
  top: 42px;
  padding: 3px 8px;
  border: 2px solid rgba(185, 58, 42, 0.78);
  border-radius: 6px;
  color: rgba(185, 58, 42, 0.85);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 900;
  transform: rotate(12deg);
  pointer-events: none;
}
.rcpt-barcode {
  height: 22px;
  margin-top: 10px;
  background: repeating-linear-gradient(90deg, #1C1B19 0 2px, transparent 2px 4px, #1C1B19 4px 5px, transparent 5px 8px, #1C1B19 8px 11px, transparent 11px 13px);
  opacity: 0.75;
}

/* Feature 3: Dual-Cat CP Photobooth */
.cp-booth-frame {
  padding: 12px;
  border-radius: 16px;
  background: #1A1816;
  border: 1px solid rgba(216, 183, 122, 0.45);
  color: #FCFBF8;
}
.cp-booth-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #ECD3A1;
}
.cp-match-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: #B95835;
  color: #FFF;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
}
.cp-stage-pair {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: end;
}
.cp-cat-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.cp-bubble {
  width: 100%;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 10px;
  background: #FCFBF8;
  color: #1C1B19;
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cp-bubble.is-b {
  background: #ECD3A1;
}
.cp-fig-box {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(236, 211, 161, 0.35);
  background: #F2EAD5;
}
.cp-fig-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cp-cat-name {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(252, 251, 248, 0.9);
}
.cp-heart-mid {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #B95835;
  border: 2.5px solid #FCFBF8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 4;
}
.cp-title-bar {
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(236, 211, 161, 0.14);
  border: 1px solid rgba(236, 211, 161, 0.28);
  text-align: center;
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 700;
  color: #ECD3A1;
}

/* Feature 2: Blind-Box Tear-Strip Unboxing Ritual Modal */
.blind-unbox-card {
  position: relative;
  width: min(350px, 92vw);
  padding: 22px 18px 20px;
  border-radius: 22px;
  background: #FAF6EE;
  border: 1.5px solid rgba(184, 147, 82, 0.55);
  box-shadow: 0 24px 56px rgba(10, 9, 8, 0.45);
  text-align: center;
}
.blind-close-x {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(23, 22, 20, 0.08);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}
.blind-box-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #B95835;
  font-weight: 700;
}
.blind-box-hd {
  margin: 6px 0 14px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}
.box-lid-art {
  padding: 24px 16px;
  border-radius: 16px;
  background: linear-gradient(155deg, #24211D 0%, #151412 100%);
  border: 1.5px solid rgba(216, 183, 122, 0.45);
  color: #ECD3A1;
  margin-bottom: 14px;
}
.box-edition-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  opacity: 0.78;
}
.box-silhouette {
  width: 82px;
  height: 82px;
  margin: 14px auto;
  border-radius: 50%;
  border: 2px dashed rgba(236, 211, 161, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 900;
  color: #ECD3A1;
  animation: blindPulse 1.8s ease-in-out infinite;
}
@keyframes blindPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.box-sub-hint {
  font-size: 11.5px;
  color: rgba(252, 251, 248, 0.78);
}
.blind-tear-track {
  position: relative;
  height: 46px;
  border-radius: 999px;
  background: #EAE2D3;
  border: 1.5px dashed #B95835;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}
.blind-tear-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #B95835, #D89B52);
  opacity: 0.35;
}
.blind-tear-dashes {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #8F3E22;
  letter-spacing: 0.08em;
  pointer-events: none;
}
.blind-tear-handle {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #B95835;
  color: #FFF;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  z-index: 3;
  box-shadow: 0 3px 10px rgba(185, 88, 53, 0.4);
}
.blind-tear-handle:active { cursor: grabbing; }
.blind-rarity-ribbon {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #B95835;
  color: #FFF;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.blind-reveal-stage {
  width: 178px;
  aspect-ratio: 3 / 4;
  margin: 0 auto 10px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #B89352;
  box-shadow: 0 12px 26px rgba(23, 22, 20, 0.18);
  animation: blindPopIn 0.45s cubic-bezier(0.22, 1.35, 0.36, 1);
}
@keyframes blindPopIn {
  0% { opacity: 0; transform: scale(0.65) rotate(-5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
.blind-reveal-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blind-reveal-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}
.blind-reveal-desc {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* Fullscreen Modal Backdrop for Blind-Box Unboxing Ritual */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(16, 15, 13, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-backdrop.is-hidden {
  display: none !important;
}
.rcpt-stamp {
  top: auto;
  bottom: 50px;
  right: 16px;
}

/* Chief Cat Detective Reward Banner & Instant Unlock Modal */
.chief-reward-bar {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(185, 88, 53, 0.10);
  border: 1px solid rgba(185, 88, 53, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #8F3E22;
}
.chief-reward-bar.is-claimed {
  background: rgba(184, 147, 82, 0.14);
  border-color: rgba(184, 147, 82, 0.45);
  color: #7D5D25;
}
.chief-modal-sub {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.chief-gift-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.chief-gift-pill {
  padding: 10px 6px;
  border-radius: 12px;
  background: #1C1B19;
  border: 1px solid rgba(236, 211, 161, 0.45);
  color: #ECD3A1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.chief-gift-pill strong { font-size: 11.5px; color: #FCFBF8; }
.chief-gift-pill span { font-size: 10px; opacity: 0.78; }
.chip.is-locked-preset {
  opacity: 0.68;
  border-style: dashed;
}
.chip.is-unlocked-preset {
  background: rgba(184, 147, 82, 0.18);
  border-color: rgba(184, 147, 82, 0.65);
  color: #7A581F;
  font-weight: 700;
}

/* Left-Side Symmetrical Voice Callout Rail inside #realCatStage */
.side-voice-rail {
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 44px;
  z-index: 14;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.side-voice-rail .rail-btn.voice-chip {
  height: auto;
  width: 44px;
  padding: 5px 2px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(23, 22, 20, 0.70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FCFBF8;
  font-size: 9.5px;
  font-weight: 500;
  margin-left: 0;
}
.side-voice-rail .rail-btn.voice-chip:hover {
  background: rgba(23, 22, 20, 0.88);
  border-color: rgba(236, 211, 161, 0.55);
}
.side-voice-rail .rail-btn.voice-chip.is-warn {
  border-color: rgba(217, 96, 59, 0.55);
}
.side-voice-rail .rail-btn.voice-chip.is-warn svg {
  color: #FF8A65;
}
.side-voice-rail .rail-btn.voice-chip.is-listening {
  background: rgba(185, 88, 53, 0.94);
  border-color: rgba(255, 220, 200, 0.7);
  animation: micPulse 1.1s ease-in-out infinite;
}
.side-voice-rail .rail-btn.voice-chip.is-listening svg {
  color: #FFF;
}

/* === One-Screen No-Scroll Dress-Up Stage (Cat + Full Wardrobe Visible Together!) === */
.editorial-panel {
  overflow: visible;
}
.cat-speech-ribbon {
  min-height: 26px;
  padding: 4px 10px;
  margin-bottom: 6px;
  font-size: 11.5px;
}
.real-cat-stage.is-figurine {
  position: sticky;
  top: 8px;
  z-index: 25;
  background: #F2EAD5;
  border-radius: 16px;
  border: 1px solid rgba(184, 147, 82, 0.35);
  box-shadow: 0 8px 22px rgba(23, 22, 20, 0.10);
  padding: 4px 48px 34px;
  margin-bottom: 10px;
}
.real-photo-wrap.is-figurine {
  width: min(100%, 248px, 34vh);
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: none;
}
.side-act-rail,
.side-voice-rail {
  top: 6px;
  bottom: 36px;
  gap: 3px;
}
.side-act-rail { right: 6px; }
.side-voice-rail { left: 6px; }
.side-act-rail .rail-btn,
.side-voice-rail .rail-btn.voice-chip {
  width: 39px;
  padding: 3.5px 1px;
  border-radius: 9px;
  gap: 1.5px;
}
.side-act-rail .rail-btn svg,
.side-voice-rail .rail-btn.voice-chip svg {
  width: 12.5px;
  height: 12.5px;
}
.side-act-rail .rail-btn span,
.side-voice-rail .rail-btn.voice-chip span {
  font-size: 8.5px;
}
.stage-stat-strip {
  bottom: 5px;
  left: 8px;
  right: 8px;
  padding: 4px 8px;
}
.preset-strip {
  padding: 6px 8px;
  margin-bottom: 8px;
}
.prop-studio-bar {
  padding: 8px;
  margin-bottom: 8px;
}

/* 32-Breed Distinctive Avatar Grid & Detail Card */
.breed-avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  max-height: 248px;
  overflow-y: auto;
  padding: 2px 2px 6px;
  margin-bottom: 10px;
}
.breed-av-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 12px;
  border: 1.5px solid var(--hairline);
  background: #FCFBF8;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.16s ease, background 0.16s ease;
}
.breed-av-card:hover { border-color: var(--brass); }
.breed-av-card.is-active {
  border-color: var(--terracotta);
  background: rgba(185, 88, 53, 0.08);
  box-shadow: 0 4px 10px rgba(185, 88, 53, 0.14);
}
.breed-av-img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  overflow: hidden;
}
.breed-av-img svg { width: 100%; height: 100%; display: block; }
.breed-av-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.breed-detail-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.breed-detail-av {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid rgba(184, 147, 82, 0.45);
}
.breed-detail-av svg { width: 100%; height: 100%; display: block; }

/* Clear Achievement Badge Cards (2x2 Grid with Unlock Criteria) */
.col-sec-hint {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 7px;
}
.ach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.ach-card {
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px dashed rgba(23, 22, 20, 0.22);
  background: rgba(245, 241, 233, 0.55);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ach-card.is-done {
  border-style: solid;
  border-color: rgba(184, 147, 82, 0.65);
  background: linear-gradient(145deg, #22201C 0%, #171614 100%);
  color: #FCFBF8;
  box-shadow: 0 6px 14px rgba(23, 22, 20, 0.14);
}
.ach-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.ach-title {
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}
.ach-card.is-done .ach-title { color: #ECD3A1; }
.ach-state {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(23, 22, 20, 0.08);
  color: var(--ink-3);
}
.ach-card.is-done .ach-state {
  background: rgba(236, 211, 161, 0.22);
  color: #ECD3A1;
}
.ach-desc {
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--ink-3);
}
.ach-card.is-done .ach-desc { color: rgba(252, 251, 248, 0.78); }

/* 8-Coat Symmetrical 4x2 Specimen Grid */
.coat-wall { grid-template-columns: repeat(4, 1fr) !important; }

/* Rich Collector Card Front Elements (Value, First Impression, Yi/Ji) */
.card-rich-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}
.rich-pill {
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: rgba(245, 241, 233, 0.55);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rich-pill span { font-size: 9.5px; color: var(--ink-3); letter-spacing: 0.04em; }
.rich-pill strong { font-size: 11.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.skin-film .rich-pill, .skin-foil .rich-pill, .skin-passport .rich-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
.skin-film .rich-pill span, .skin-foil .rich-pill span, .skin-passport .rich-pill span { color: rgba(236, 211, 161, 0.72); }
.skin-film .rich-pill strong, .skin-foil .rich-pill strong, .skin-passport .rich-pill strong { color: #FCFBF8; }

.card-yiji-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 7px;
}
.yiji-chip {
  padding: 6px 9px;
  border-radius: 9px;
  font-size: 10.5px;
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}
.yiji-chip i {
  font-style: normal;
  font-weight: 800;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}
.yiji-chip.is-yi { background: rgba(70, 99, 86, 0.11); color: #2F4B3E; }
.yiji-chip.is-yi i { background: #466356; color: #FFF; }
.yiji-chip.is-ji { background: rgba(185, 88, 53, 0.11); color: #8F3E22; }
.yiji-chip.is-ji i { background: #B95835; color: #FFF; }
.skin-film .yiji-chip.is-yi, .skin-foil .yiji-chip.is-yi, .skin-passport .yiji-chip.is-yi { background: rgba(110, 168, 142, 0.16); color: #CBE6D9; }
.skin-film .yiji-chip.is-ji, .skin-foil .yiji-chip.is-ji, .skin-passport .yiji-chip.is-ji { background: rgba(217, 114, 82, 0.18); color: #F7C7B7; }

.backup-plain-hint {
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-2);
  background: rgba(184, 147, 82, 0.11);
  border: 1px solid rgba(184, 147, 82, 0.28);
  border-radius: 10px;
  padding: 7px 10px;
  margin-bottom: 10px;
}

/* Upgraded 3-Theme CP Photobooth */
.cp-booth-frame { position: relative; transition: background 0.2s ease, border-color 0.2s ease; }
.cp-booth-frame.theme-court {
  background: #FAF5EB;
  border-color: #B95835;
  color: #1C1B19;
}
.cp-booth-frame.theme-court .cp-booth-hd { color: #B95835; }
.cp-booth-frame.theme-court .cp-cat-name { color: #1C1B19; }
.cp-booth-frame.theme-court .cp-bubble.is-a { background: #1C1B19; color: #FCFBF8; }
.cp-booth-frame.theme-court .cp-bubble.is-b { background: #B95835; color: #FCFBF8; }
.cp-booth-frame.theme-court .cp-title-bar { background: rgba(185, 88, 53, 0.12); border-color: rgba(185, 88, 53, 0.4); color: #8F3E22; }

.cp-booth-frame.theme-arcade {
  background: linear-gradient(155deg, #1E182E 0%, #14121E 100%);
  border-color: #E8C26A;
  color: #FFF;
}
.cp-booth-frame.theme-arcade .cp-match-pill { background: #E8C26A; color: #1C1B19; }
.cp-booth-frame.theme-arcade .cp-title-bar { background: rgba(232, 194, 106, 0.18); color: #F9E09E; }

.cp-role-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.85;
}
.cp-fig-box { position: relative; }
.cp-ootd-layer { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.cp-crown-badge {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(23, 22, 20, 0.84);
  border: 1px solid #E8C26A;
  color: #F7DF9B;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  z-index: 5;
}
.cp-fun-bars {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.cp-fun-pill {
  padding: 5px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 10px;
}
.cp-booth-frame.theme-court .cp-fun-pill { background: rgba(23, 22, 20, 0.06); }
.cp-fun-pill strong { display: block; font-family: var(--mono); font-size: 12px; color: #ECD3A1; margin-top: 1px; }
.cp-booth-frame.theme-court .cp-fun-pill strong { color: #B95835; }
.cp-red-stamp {
  position: absolute;
  right: 12px;
  bottom: 44px;
  padding: 2px 7px;
  border: 2px solid rgba(217, 74, 46, 0.85);
  border-radius: 5px;
  color: rgba(217, 74, 46, 0.92);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 900;
  transform: rotate(-12deg);
  pointer-events: none;
  z-index: 6;
}

/* === Final Polish: Runaway Cat Easter Egg, Purr Overload, Fortune Slip & Editorial Refinement === */
.real-photo-wrap.is-cat-runaway .figurine-rig {
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  transform: translateX(-115%) rotate(-12deg) !important;
  opacity: 0;
  animation: none !important;
}
.stage-runaway-note {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-2deg);
  width: 78%;
  padding: 14px 12px 12px;
  border-radius: 10px;
  background: #FAF3E3;
  border: 1.5px dashed #B95835;
  box-shadow: 0 12px 26px rgba(23, 22, 20, 0.16);
  text-align: center;
  z-index: 18;
  animation: noteDropIn 0.36s cubic-bezier(0.22, 1.3, 0.36, 1);
}
@keyframes noteDropIn {
  0% { opacity: 0; transform: translate(-50%, -62%) scale(0.85) rotate(-6deg); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
}
.runaway-tape {
  width: 44px;
  height: 12px;
  margin: -20px auto 6px;
  border-radius: 2px;
  background: rgba(184, 147, 82, 0.55);
}
.runaway-hd {
  font-family: var(--serif);
  font-size: 13.5px;
  font-weight: 800;
  color: #B95835;
  margin-bottom: 4px;
}
.runaway-txt {
  margin: 0;
  font-family: var(--serif);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink);
}

/* Purr Overload Golden Glow */
.real-photo-wrap.is-purr-overload {
  box-shadow: 0 0 0 3px rgba(216, 183, 122, 0.65), 0 0 24px rgba(216, 183, 122, 0.45);
}

/* Editorial Fortune Slip Card */
.fortune-slip-card {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FCFBF6 0%, #F4ECE0 100%);
  border: 1px solid rgba(184, 147, 82, 0.42);
}
.fortune-slip-card.is-shaking {
  animation: slipShake 0.36s ease;
}
@keyframes slipShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-1.6deg); }
  55% { transform: rotate(1.6deg); }
  80% { transform: rotate(-0.8deg); }
}
.fortune-slip-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}
.fortune-grade {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #1C1B19;
  color: #ECD3A1;
}
.fortune-slip-txt {
  font-family: var(--serif);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
}

/* Subtle Camera Chassis & Glass Dock Polish */
.camera-chassis {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 18px 36px rgba(23, 22, 20, 0.22);
}
.dock {
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.7), 0 12px 32px rgba(23, 22, 20, 0.14);
}

/* Quick Horizontal Cat Switcher Strip on Card/Studio View */
.quick-cat-strip-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: rgba(252, 251, 248, 0.88);
  border: 1px solid rgba(184, 147, 82, 0.35);
  box-shadow: 0 4px 12px rgba(23, 22, 20, 0.05);
}
.quick-cat-lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
  padding-right: 6px;
  border-right: 1px solid var(--hairline);
}
.quick-cat-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.quick-cat-strip::-webkit-scrollbar { display: none; }
.quick-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 3px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.16s ease;
}
.quick-cat-pill img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.quick-cat-pill.is-active {
  background: #1C1B19;
  color: #ECD3A1;
  border-color: #B89352;
  box-shadow: 0 3px 8px rgba(23, 22, 20, 0.18);
}

/* === P0-P2 Global Upgrades: Sub-Nav Anchors, Crime/Satisfaction Box, Stamp Picker, Editable Bubbles === */
.card-sub-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.sub-nav-btn {
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: #FCFBF8;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sub-nav-btn:hover, .sub-nav-btn:active {
  background: #1C1B19;
  color: #ECD3A1;
  border-color: #1C1B19;
}

/* Human Satisfaction & Weekly Crime Record Box */
.crime-sat-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
}
.crime-sat-card {
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--hairline);
}
.crime-sat-card.is-crime {
  background: rgba(185, 88, 53, 0.07);
  border-color: rgba(185, 88, 53, 0.28);
}
.crime-sat-kicker {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 3px;
}
.crime-sat-card.is-crime .crime-sat-kicker { color: #B95835; }
.crime-sat-val {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

/* Viral Meme Stamp Picker Row */
.stamp-picker-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 8px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--hairline);
}
.stamp-picker-bar::-webkit-scrollbar { display: none; }
.stamp-pick-lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}
.stamp-chip {
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(23, 22, 20, 0.16);
  background: #FCFBF8;
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}
.stamp-chip.is-active {
  background: #B95835;
  color: #FFF;
  border-color: #B95835;
}

/* Editable CP Speech Bubbles */
.cp-bubble[contenteditable="true"] {
  cursor: text;
  outline: none;
  border: 1.5px dashed transparent;
  transition: border-color 0.15s ease;
}
.cp-bubble[contenteditable="true"]:hover,
.cp-bubble[contenteditable="true"]:focus {
  border-color: #B95835;
}
.cp-edit-tip {
  font-size: 10px;
  color: var(--ink-3);
  margin-top: -4px;
  margin-bottom: 8px;
}

/* Empty Collection State Card */
.dex-empty-card {
  padding: 24px 16px;
  border-radius: 14px;
  border: 1.5px dashed rgba(184, 147, 82, 0.5);
  background: rgba(245, 241, 233, 0.55);
  text-align: center;
}
.dex-empty-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 6px;
}
.dex-empty-card p {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--ink-2);
}

.breed-av-img img, .breed-detail-av img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* === 3-Tier Feature Gate Badges (PRO / VIP) === */
.tier-tag {
  font-style: normal;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 1px 5px;
  border-radius: 5px;
  margin-left: 4px;
  vertical-align: middle;
}
.tier-tag.is-pro {
  background: rgba(185, 88, 53, 0.16);
  color: #B95835;
  border: 1px solid rgba(185, 88, 53, 0.35);
}
.tier-tag.is-vip {
  background: #1C1B19;
  color: #ECD3A1;
  border: 1px solid rgba(236, 211, 161, 0.55);
}
.btn-terracotta .tier-tag.is-pro,
.btn-obsidian .tier-tag.is-pro,
.btn-obsidian .tier-tag.is-vip,
.btn-terracotta .tier-tag.is-vip {
  background: rgba(255, 255, 255, 0.22);
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.38);
}
.btn-gold .tier-tag.is-vip {
  background: #1C1B19;
  color: #ECD3A1;
}
.tier-unlocked-pro .tier-tag.is-pro,
.tier-unlocked-vip .tier-tag.is-pro,
.tier-unlocked-vip .tier-tag.is-vip {
  display: none;
}
.prop-add-btn.is-tier-locked {
  opacity: 0.65;
  border-style: dashed;
}
.tier-matrix-mini {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 10px 0;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  text-align: left;
}
.tm-row {
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--ink-2);
}
.tm-row strong { color: var(--ink); margin-right: 5px; }
.tm-row.is-pro strong { color: #B95835; }
.tm-row.is-vip strong { color: #9A7432; }
.local-tier-tester {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 10.5px;
  color: var(--ink-3);
}

/* Mobile 375px Safe-Area Bottom Cushion & Balanced Headings */
.app-shell {
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
}
.panel-title, .card-arch, .blind-box-hd {
  text-wrap: balance;
}


/* Collection wall modes */
.wall-mode-tabs { margin-top: 10px; }
.wall-mode-hint { margin: 6px 0 0; font-size: 11px; color: var(--ink-3); }
.rarity-strip { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 0 0 12px 12px; }
.rarity-strip[data-rarity="普通"] { background: #8C847A; }
.rarity-strip[data-rarity="稀有"] { background: #4D8A72; }
.rarity-strip[data-rarity="史诗"] { background: #8A62B5; }
.rarity-strip[data-rarity="传说"] { background: linear-gradient(90deg,#B95835,#E8C26A); }
.wall-empty-filter { padding: 22px 12px; text-align: center; color: var(--ink-2); border: 1px dashed rgba(184,147,82,.5); border-radius: 14px; }
.wall-empty-filter strong { display:block; color: var(--terracotta); margin-bottom: 5px; }


/* CP motion beats */
.cp-booth-frame.cp-motion-a .cp-cat-col:first-child .cp-fig-box { animation: cpLeanA 1.8s ease-in-out infinite; }
.cp-booth-frame.cp-motion-a .cp-cat-col:last-child .cp-fig-box { animation: cpLeanB 2.1s ease-in-out infinite; }
.cp-booth-frame.cp-motion-b .cp-cat-col:first-child .cp-fig-box { animation: cpBounceA 1.55s ease-in-out infinite; }
.cp-booth-frame.cp-motion-b .cp-cat-col:last-child .cp-fig-box { animation: cpShakeB 1.7s ease-in-out infinite; }
@keyframes cpLeanA { 0%,100%{transform:rotate(-2deg) translateY(0)}50%{transform:rotate(3deg) translateY(-4px)} }
@keyframes cpLeanB { 0%,100%{transform:rotate(2deg) translateY(0)}50%{transform:rotate(-4deg) translateY(-3px)} }
@keyframes cpBounceA { 0%,100%{transform:translateY(0)}45%{transform:translateY(-7px) rotate(-2deg)} }
@keyframes cpShakeB { 0%,100%{transform:translateX(0)}35%{transform:translateX(4px) rotate(2deg)}70%{transform:translateX(-3px) rotate(-2deg)} }

/* P3-7: CP 动作档位 —— 预览姿势动画（支点在脚底，倾斜+错位+朝向变化，不做站桩） */
.cp-booth-frame.cpact-cuddle .cp-cat-col:first-child .cp-fig-box,
.cp-booth-frame.cpact-cuddle .cp-cat-col:last-child .cp-fig-box { transform-origin: 50% 92%; }
.cp-booth-frame.cpact-cuddle .cp-cat-col:first-child .cp-fig-box { animation: cpActCuddleA 1.9s ease-in-out infinite; }
.cp-booth-frame.cpact-cuddle .cp-cat-col:last-child .cp-fig-box { animation: cpActCuddleB 2.1s ease-in-out infinite; }
@keyframes cpActCuddleA { 0%,100%{transform:rotate(5deg) translateX(3%)}50%{transform:rotate(8deg) translateX(6%) translateY(-1.5%)} }
@keyframes cpActCuddleB { 0%,100%{transform:rotate(-5deg) translateX(-3%)}55%{transform:rotate(-8deg) translateX(-6%) translateY(-2%)} }

.cp-booth-frame.cpact-highfive .cp-cat-col:first-child .cp-fig-box,
.cp-booth-frame.cpact-highfive .cp-cat-col:last-child .cp-fig-box { transform-origin: 50% 92%; }
.cp-booth-frame.cpact-highfive .cp-cat-col:first-child .cp-fig-box { animation: cpActFiveA 1.5s ease-in-out infinite; }
.cp-booth-frame.cpact-highfive .cp-cat-col:last-child .cp-fig-box { animation: cpActFiveB 1.5s ease-in-out infinite; }
@keyframes cpActFiveA { 0%,58%,100%{transform:rotate(2deg) translateY(0)}30%{transform:rotate(9deg) translateY(-6%)}44%{transform:rotate(7deg) translateY(-4.5%)} }
@keyframes cpActFiveB { 0%,58%,100%{transform:rotate(-2deg) translateY(0)}30%{transform:rotate(-8deg) translateY(-4%)}44%{transform:rotate(-6deg) translateY(-3%)} }

.cp-booth-frame.cpact-standoff .cp-cat-col:first-child .cp-fig-box,
.cp-booth-frame.cpact-standoff .cp-cat-col:last-child .cp-fig-box { transform-origin: 50% 94%; }
.cp-booth-frame.cpact-standoff .cp-cat-col:first-child .cp-fig-box { animation: cpActFaceA 0.95s ease-in-out infinite; }
.cp-booth-frame.cpact-standoff .cp-cat-col:last-child .cp-fig-box { animation: cpActFaceB 0.95s ease-in-out infinite; }
@keyframes cpActFaceA { 0%,100%{transform:rotate(2deg) translateX(2%)}45%{transform:rotate(4.5deg) translateX(4.5%) translateY(-1%)} }
@keyframes cpActFaceB { 0%,100%{transform:rotate(-2deg) translateX(-2%)}45%{transform:rotate(-4.5deg) translateX(-4.5%) translateY(-1.5%)} }

.cp-booth-frame.cpact-oath .cp-cat-col:first-child .cp-fig-box,
.cp-booth-frame.cpact-oath .cp-cat-col:last-child .cp-fig-box { transform-origin: 50% 92%; }
.cp-booth-frame.cpact-oath .cp-cat-col:first-child .cp-fig-box { animation: cpActOathA 2.6s ease-in-out infinite; }
.cp-booth-frame.cpact-oath .cp-cat-col:last-child .cp-fig-box { animation: cpActOathB 2.6s ease-in-out infinite; }
@keyframes cpActOathA { 0%,100%{transform:rotate(-1.5deg) translateY(0)}26%,74%{transform:rotate(-3.5deg) translateY(-5%)} }
@keyframes cpActOathB { 0%,100%{transform:rotate(1deg) translateY(0)}30%{transform:rotate(3deg) translateY(1.2%)}60%{transform:rotate(2deg) translateY(0.6%)} }

.cp-booth-frame.cpact-kofall .cp-cat-col:first-child .cp-fig-box { animation: cpActKoA 1.6s ease-in-out infinite; }
.cp-booth-frame.cpact-kofall .cp-cat-col:last-child .cp-fig-box { transform-origin: 50% 96%; animation: cpActKoB 2.4s ease-in-out infinite; }
@keyframes cpActKoA { 0%,100%{transform:translateY(0) rotate(-1deg)}35%{transform:translateY(-6%) rotate(-3deg)}55%{transform:translateY(-2%) rotate(-1.5deg)} }
@keyframes cpActKoB { 0%{transform:rotate(0deg) translateY(0)}16%{transform:rotate(24deg) translateY(13%)}30%,82%{transform:rotate(21deg) translateY(12%)}40%{transform:rotate(23deg) translateY(13%)}90%{transform:rotate(19deg) translateY(11%)}100%{transform:rotate(0deg) translateY(0)} }

.dex-card { position: relative; }
.dex-card.is-real-capture { border-color: rgba(184,147,82,.72); box-shadow: 0 8px 18px rgba(184,147,82,.16); }
.dex-source-badge { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 3px 7px; border-radius: 999px; background: linear-gradient(135deg,#F4D77D,#B89352); color: #342411; font-size: 9px; font-weight: 800; box-shadow: 0 2px 6px rgba(23,22,20,.18); }

/* Four-round synthesis: mobile coat wall and action wrapping */
.panel-hd { flex-wrap: wrap; gap: 8px; }
.inline-actions { flex-wrap: wrap; gap: 6px; }
@media (max-width: 480px) {
  .coat-wall { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px; }
  .coat-slot { padding: 9px 3px; font-size: 10px; line-height: 1.15; }
  .coat-dot { width: 20px; height: 20px; }
  .wall-mode-tabs { align-items: stretch; }
  .wall-mode-tabs .chip { flex: 1 1 30%; min-height: 32px; white-space: normal; }
}

/* P1-4: editable card title affordance */
#cardArchetype[contenteditable="true"] { cursor: text; outline: none; }
#cardArchetype[contenteditable="true"]:hover { text-decoration: underline dotted rgba(23, 22, 20, 0.4); }
#cardArchetype[contenteditable="true"]:focus { text-decoration: none; background: rgba(184, 147, 82, 0.12); border-radius: 6px; box-shadow: 0 0 0 2px rgba(184, 147, 82, 0.28); }
/* P2-1: danger delete button + backup checkbox row */
.btn-editorial.is-danger { background: #B3261E; border-color: #B3261E; color: #FFF; }
.btn-editorial.is-danger:disabled { opacity: 0.45; cursor: not-allowed; }
.del-check-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #6B635A; margin: 10px 0 2px; text-align: left; }
.del-check-row input { width: 15px; height: 15px; accent-color: #B3261E; }
/* P0-5 blind reveal uses HUD */
.blind-uses-left { margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: #B95835; }
.btn-blind.is-disabled { opacity: 0.55; filter: grayscale(0.4); cursor: not-allowed; }
/* P1-2: fine-tune bar disabled state (visible but inert until a prop is picked) */
.prop-fine-bar.is-disabled { opacity: 0.55; }
.prop-fine-bar.is-disabled .fine-row,
.prop-fine-bar.is-disabled .fine-actions { pointer-events: none; }
/* P0-3 offline draft badge */
.badge-tag.is-draft { background: #8C847A; color: #FFF; }

/* P0-1 calibration cursor */
.real-photo-wrap.calib-on { cursor: crosshair; outline: 2px dashed #B95835; outline-offset: -2px; }

/* P1-1: welcome gift modal (first-visit unboxing) */
.welcome-gift-card {
  position: relative;
  width: min(350px, 92vw);
  padding: 22px 18px 20px;
  border-radius: 22px;
  background: #FAF6EE;
  border: 1.5px solid rgba(184, 147, 82, 0.55);
  box-shadow: 0 24px 56px rgba(10, 9, 8, 0.45);
  text-align: center;
  overflow: hidden;
}
.welcome-gift-card .gift-rays {
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, rgba(216, 183, 122, 0.14) 0deg 14deg, transparent 14deg 34deg, rgba(216, 183, 122, 0.14) 34deg 48deg, transparent 48deg 90deg);
  animation: welcomeGiftRays 6s linear infinite;
  pointer-events: none;
}
@keyframes welcomeGiftRays { to { transform: rotate(360deg); } }
.welcome-sealed-box { position: relative; }
.welcome-gift-box {
  position: relative;
  width: 100%;
  padding: 26px 16px 18px;
  border-radius: 16px;
  background: linear-gradient(155deg, #24211D 0%, #151412 100%);
  border: 1.5px solid rgba(216, 183, 122, 0.45);
  color: #ECD3A1;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.welcome-gift-box .gift-box-emoji { font-size: 44px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); }
.welcome-gift-box .gift-box-tap { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; opacity: 0.85; }
.welcome-gift-box.is-shaking { animation: welcomeGiftShake 0.9s ease-in-out; }
@keyframes welcomeGiftShake {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-4deg) translateY(-2px); }
  30% { transform: rotate(4deg) translateY(-4px); }
  45% { transform: rotate(-3deg) translateY(-2px); }
  60% { transform: rotate(3deg) translateY(-3px); }
  75% { transform: rotate(-2deg) translateY(-1px); }
}


/* ===== P6: optional impact export + first-person share kit ===== */
.export-style-bar {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--paper);
}
.export-style-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
#exportStyleTabs { margin-bottom: 8px; }
#impactThemeTabs { margin-bottom: 6px; }
#exportStyleTabs .chip,
#impactThemeTabs .chip { min-height: 32px; }
.export-style-bar .wall-mode-hint { margin-top: 4px; }

.modal-card.is-wide { max-width: 760px; }
.caption-title-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 14px;
}
.caption-title {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: 500 13px/1.5 var(--sans);
  text-align: left;
  cursor: pointer;
}
.caption-title.is-active {
  border-color: var(--terracotta);
  background: #FDF1EB;
}
.caption-label {
  display: block;
  margin: 12px 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.caption-preview {
  width: 100%;
  min-height: 230px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  background: #FCFBF8;
  color: var(--ink);
  font: 400 13px/1.7 var(--sans);
}
.caption-meta {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--terracotta);
  background: #FDF1EB;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-2);
}
.caption-meta strong { color: var(--ink); }
.caption-tags {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--terracotta);
  overflow-wrap: anywhere;
}
.triptych-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.triptych-grid figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.triptych-grid figure > span {
  font: 600 11px/1.4 var(--mono);
  letter-spacing: 0.05em;
  color: var(--ink-3);
}
.triptych-grid img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: #F5F1E9;
}
.triptych-grid a {
  font-size: 11px;
  text-align: center;
  color: var(--terracotta);
}

@media (max-width: 640px) {
  .modal-card.is-wide { max-width: 400px; }
  .triptych-grid { grid-template-columns: 1fr; }
  .triptych-grid img { max-height: 42vh; object-fit: contain; }
}

/* ===== T3.2 Milestone Card ===== */
.milestone-card {
  position: relative;
  width: min(360px, 92vw);
  padding: 28px 26px 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 8%, rgba(216, 183, 122, 0.22), transparent 34%),
    linear-gradient(160deg, #FCFBF6 0%, #F1E8D7 100%);
  border: 1.5px solid rgba(184, 147, 82, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  text-align: center;
  animation: milestoneIn 0.46s cubic-bezier(0.22, 1.35, 0.36, 1);
}
.milestone-kicker {
  font: 700 10.5px/1.4 "SF Mono", Menlo, monospace;
  letter-spacing: 0.12em;
  color: #8F3E22;
  margin-bottom: 12px;
}
.milestone-seal {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #FCFBF6;
  font-size: 27px;
  background: #1C1B19;
  border: 2px solid #D8B77A;
  box-shadow: 0 0 0 6px rgba(184, 147, 82, 0.12);
}
.milestone-title {
  margin: 0 0 7px;
  color: #1C1B19;
  font: 900 28px/1.2 "Songti SC", "Noto Serif SC", Georgia, serif;
}
.milestone-desc {
  margin: 0;
  color: #4A4640;
  font: 600 14px/1.7 "PingFang SC", "Hiragino Sans GB", sans-serif;
}
.milestone-note {
  margin: 10px 0 18px;
  color: #8A8177;
  font: 500 11.5px/1.6 "PingFang SC", "Hiragino Sans GB", sans-serif;
}
@keyframes milestoneIn {
  from { opacity: 0; transform: translateY(14px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .milestone-card { animation: none; }
}


/* ===== T3.3 Unbox light sweep + reduced-motion ===== */
.blind-reveal-stage { position: relative; }
.blind-reveal-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.55) 48%, transparent 66%);
  transform: translateX(-125%);
  animation: blindLightSweep 0.95s cubic-bezier(0.22, 0.9, 0.36, 1) 0.12s 1 both;
  mix-blend-mode: screen;
}
@keyframes blindLightSweep { to { transform: translateX(125%); } }
.blind-reveal-box::before {
  content: '';
  position: absolute;
  inset: 12% 4% 18%;
  border-radius: 30px;
  background: radial-gradient(circle at 50% 42%, rgba(216,183,122,0.30), transparent 64%);
  filter: blur(4px);
  pointer-events: none;
  animation: blindHalo 2.2s ease-in-out infinite;
}
@keyframes blindHalo { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.blind-reveal-box { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .gift-rays,
  .box-silhouette,
  .blind-reveal-stage,
  .blind-reveal-stage::after,
  .blind-reveal-box::before,
  .welcome-gift-box.is-shaking {
    animation: none !important;
  }
  .blind-reveal-stage::after { display: none; }
}
/* 加粗加亮取景器红色扫描线 */
.vf-scanline {
  height: 4px !important;
  background: linear-gradient(90deg, transparent 0%, #ff3b30 18%, #ff6b57 50%, #ff3b30 82%, transparent 100%) !important;
  box-shadow: 0 0 14px 4px rgba(255, 59, 48, 0.85), 0 0 28px 6px rgba(255, 59, 48, 0.45) !important;
  opacity: 1 !important;
}
