:root {
  --bg: #f7f2e7;
  --paper: #fffdf7;
  --ink: #2f372f;
  --muted: #7d8177;
  --line: #ddd4c4;
  --accent: #5a7d62;
  --accent-dark: #405b46;
  --soft: #e8efe6;
  --warm: #f2dfbb;
  --danger: #9a5e58;
  --shadow: 0 12px 28px rgba(59, 49, 35, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.92), transparent 30%),
    linear-gradient(180deg, #f8f3e9, #efe7d7);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}
button { font: inherit; }

.app-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 calc(48px + env(safe-area-inset-bottom));
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.eyebrow, .label, .scene-kicker {
  margin: 0 0 6px;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-dark);
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(34px, 7vw, 58px); line-height: 1; }
.subtitle { margin: 0; color: var(--muted); font-weight: 600; }
.screen { display: none; }
.screen.active { display: block; }

.panel {
  background: rgba(255, 253, 247, .94);
  border: 1px solid rgba(221, 212, 196, .9);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 18px;
}
.section-heading, .status-panel, .adventure-topbar, .hp-row, .history-header, .action-row, .result-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.play-summary {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f4ebd8;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.nemo-grid, .dungeon-grid { display: grid; gap: 14px; margin-top: 18px; }
.nemo-grid { grid-template-columns: repeat(4, 1fr); }
.dungeon-grid { grid-template-columns: repeat(3, 1fr); }
.select-card {
  width: 100%; text-align: left; border: 1px solid var(--line); background: #fffdf8;
  border-radius: 18px; padding: 18px; cursor: pointer; transition: .18s ease; color: var(--ink);
  position: relative; overflow: hidden;
}
.select-card::after {
  content: ""; position: absolute; inset: auto -20px -30px auto; width: 90px; height: 90px;
  border-radius: 50%; background: rgba(90,125,98,.06); pointer-events: none;
}
.select-card:hover { transform: translateY(-2px); box-shadow: 0 10px 18px rgba(59,49,35,.08); }
.select-card.selected { border: 2px solid var(--accent); background: var(--soft); }
.card-icon { font-size: 36px; display: block; margin-bottom: 12px; }
.card-title { display: block; font-weight: 900; margin-bottom: 6px; }
.card-desc { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; }
.card-badge { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 900; color: var(--accent-dark); }

.primary, .ghost {
  border-radius: 999px; padding: 12px 20px; border: 1px solid transparent; cursor: pointer; font-weight: 800;
  min-height: 44px;
}
.primary { background: var(--accent); color: white; }
.primary:hover { background: var(--accent-dark); }
.primary:disabled { opacity: .35; cursor: not-allowed; }
.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.ghost:hover { background: #fff; }
.ghost.danger { color: var(--danger); }

.adventure-layout { display: grid; grid-template-columns: 1.6fr .7fr; gap: 18px; }
.floor-chip {
  background: var(--soft); border: 1px solid #cfdccf; color: var(--accent-dark);
  border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 900;
}
.room-progress { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-top: 12px; }
.room-dot { height: 7px; border-radius: 999px; background: #e7dfd1; transition: .2s ease; }
.room-dot.done { background: #9db19f; }
.room-dot.current { background: var(--accent); transform: scaleY(1.3); }
.hp-row { margin: 18px 0; padding: 14px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.mood { margin-left: 8px; font-size: 12px; padding: 4px 8px; border-radius: 999px; background: var(--warm); }
.hp-wrap { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.hp-bar { width: 130px; height: 10px; background: #e7dfd1; border-radius: 999px; overflow: hidden; }
.hp-fill { width: 100%; height: 100%; background: var(--accent); transition: width .25s ease; }

.scene-card {
  min-height: 270px; display: flex; align-items: center; gap: 24px; padding: 28px; border-radius: 22px;
  border: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate;
}
.scene-card::before {
  content: ""; position: absolute; inset: 0; opacity: .65; z-index: -1;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.9), transparent 35%);
}
.dungeon-forest { background: linear-gradient(135deg, #e8f0df, #f7f1df); }
.dungeon-warehouse { background: linear-gradient(135deg, #eee4d7, #f8f4ea); }
.dungeon-onsen { background: linear-gradient(135deg, #e1eef0, #f1e5dd); }
.scene-icon { font-size: clamp(52px, 9vw, 82px); filter: drop-shadow(0 8px 10px rgba(0,0,0,.05)); }
.scene-card h3 { font-size: 24px; margin-bottom: 10px; }
.scene-card p:last-child { color: #5f655e; line-height: 1.8; }
.choice-area { display: grid; gap: 10px; margin-top: 14px; }
.choice-btn {
  width: 100%; text-align: left; padding: 14px 15px; border-radius: 14px; border: 1px solid var(--line);
  background: #fffdf8; cursor: pointer; font-weight: 750; transition: .15s ease;
}
.choice-btn:hover { background: var(--soft); transform: translateX(2px); }
.action-row { margin-top: 16px; }

.sidebar h3 { margin-top: 4px; margin-bottom: 10px; font-size: 15px; }
.loot-list, .tag-list, .mini-log { margin-bottom: 22px; }
.loot-list { display: grid; gap: 8px; }
.loot-item, .log-item, .history-card {
  border: 1px solid var(--line); background: #fffdf8; border-radius: 14px; padding: 12px 14px;
}
.loot-item.rare { background: linear-gradient(135deg, #fff8e6, #fffdf8); }
.loot-item.legendary { background: linear-gradient(135deg, #f4ead1, #fff8e9); border-color: #d7bf82; }
.tag-list, .history-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { border-radius: 999px; padding: 7px 10px; background: var(--soft); border: 1px solid #ccd9cc; font-size: 12px; font-weight: 800; }
.empty { color: var(--muted); font-size: 13px; }
.mini-log { display: grid; gap: 8px; max-height: 280px; overflow: auto; }
.log-item { font-size: 12px; line-height: 1.6; }

.result-panel { text-align: center; padding: 36px; }
.result-icon { font-size: 64px; margin-bottom: 12px; }
.result-panel > p { color: var(--muted); }
.earned-title {
  display: inline-block; margin: 8px auto 0; padding: 10px 16px; border: 1px solid #d7bf82;
  background: #fff7dc; border-radius: 999px; font-weight: 900;
}
.hidden { display: none !important; }
.result-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; text-align: left; margin: 28px 0; }
.result-actions { justify-content: center; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0; }
.stat-card { border: 1px solid var(--line); border-radius: 16px; background: #fffdf8; padding: 16px; }
.stat-card strong { display: block; font-size: 24px; }
.stat-card span { font-size: 12px; color: var(--muted); }
.archive-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 16px; }
.archive-tab { border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; background: transparent; font-weight: 800; cursor: pointer; }
.archive-tab.active { background: var(--soft); border-color: #c5d6c6; color: var(--accent-dark); }
.archive-panel { display: none; }
.archive-panel.active { display: block; }
.treasure-grid, .titles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.treasure-card, .title-card { border: 1px solid var(--line); background: #fffdf8; border-radius: 16px; padding: 16px; min-height: 130px; }
.treasure-card.locked, .title-card.locked { filter: grayscale(1); opacity: .48; }
.treasure-card .big-icon { font-size: 34px; margin-bottom: 10px; }
.treasure-card strong, .title-card strong { display: block; margin-bottom: 6px; }
.treasure-card small, .title-card small { color: var(--muted); line-height: 1.6; }
.rarity { font-size: 10px; font-weight: 900; letter-spacing: .08em; color: #8b7652; }
.history-list { display: grid; gap: 12px; }
.history-card h3 { margin-bottom: 6px; }
.history-meta { color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.history-card p { margin-bottom: 10px; }

footer { text-align: center; color: var(--muted); padding-top: 12px; }
footer p { margin-bottom: 6px; }
footer small { font-size: 11px; }

@media (max-width: 860px) {
  .nemo-grid { grid-template-columns: repeat(2, 1fr); }
  .dungeon-grid { grid-template-columns: 1fr; }
  .adventure-layout { grid-template-columns: 1fr; }
  .treasure-grid, .titles-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .app-shell { width: min(100% - 18px, 1120px); padding-top: 18px; }
  .hero { display: block; }
  .hero-actions { justify-content: flex-start; margin-top: 16px; }
  .hero-actions .ghost { padding-inline: 14px; }
  .panel { border-radius: 19px; padding: 18px; }
  .nemo-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .select-card { padding: 14px; }
  .card-icon { font-size: 30px; }
  .section-heading, .status-panel, .adventure-topbar, .hp-row, .history-header { align-items: flex-start; }
  .status-panel { flex-direction: column; }
  .status-panel .primary { width: 100%; }
  .hp-row { flex-direction: column; }
  .hp-wrap { width: 100%; }
  .hp-bar { flex: 1; }
  .scene-card { min-height: 300px; align-items: flex-start; flex-direction: column; gap: 10px; padding: 22px; }
  .scene-icon { font-size: 58px; }
  .scene-card h3 { font-size: 21px; }
  .action-row { position: sticky; bottom: 8px; background: rgba(255,253,247,.94); padding: 8px; border-radius: 999px; box-shadow: 0 8px 24px rgba(59,49,35,.12); z-index: 4; }
  .action-row button { flex: 1; padding-inline: 10px; }
  .result-panel { padding: 24px 18px; }
  .result-columns { grid-template-columns: 1fr; }
  .result-actions { flex-direction: column; }
  .result-actions button { width: 100%; }
  .treasure-grid, .titles-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .treasure-card, .title-card { padding: 13px; min-height: 120px; }
}

/* v0.3 — guest nemo portraits / play mode */
.mode-panel { overflow: hidden; }
.guest-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef5eb;
  border: 1px solid #cbdac8;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
}
.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.mode-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 92px;
  padding: 16px;
  text-align: left;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.mode-card.active {
  background: linear-gradient(135deg, #f1f6ee, #fffdf8);
  border-color: #bfd0bc;
  box-shadow: inset 0 0 0 1px rgba(90,125,98,.08);
}
.mode-card.locked { opacity: .58; cursor: not-allowed; }
.mode-icon { font-size: 28px; }
.mode-card strong { display: block; margin-bottom: 5px; }
.mode-card small { display: block; color: var(--muted); line-height: 1.55; }
.mode-status {
  justify-self: end;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f2ead9;
  color: #74684f;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.mode-card.active .mode-status { background: #dfeadd; color: var(--accent-dark); }

.nemo-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nemo-grid .select-card { padding: 0; display: flex; flex-direction: column; }
.nemo-card-image-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #fbf7ef, #eee7dc);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.nemo-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  transition: transform .24s ease;
}
.nemo-grid .select-card:hover .nemo-card-image { transform: scale(1.025); }
.nemo-grid .select-card.selected .nemo-card-image-wrap { box-shadow: inset 0 0 0 3px rgba(90,125,98,.22); }
.card-body { display: block; padding: 14px 15px 16px; }
.guest-label {
  display: block;
  margin-bottom: 6px;
  color: #9b8c70;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}
.nemo-grid .card-title { font-size: 16px; }
.nemo-grid .card-desc { min-height: 63px; }

.active-nemo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.active-nemo-image {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 6px 14px rgba(59,49,35,.08);
}
.active-nemo > div { min-width: 0; }
#nemoName { font-weight: 900; }

.result-nemo-image {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto 8px;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 50%;
  border: 4px solid #fffdf8;
  outline: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(59,49,35,.12);
  background: #fff;
}
.result-icon { margin-top: -28px; position: relative; font-size: 38px; }

.history-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.history-head h3 { margin: 0 0 4px; }
.history-head .history-meta { margin: 0; }
.history-nemo-image {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

@media (max-width: 980px) {
  .nemo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .mode-grid { grid-template-columns: 1fr; }
  .mode-card { grid-template-columns: auto 1fr; }
  .mode-status { grid-column: 2; justify-self: start; }
}

@media (max-width: 600px) {
  .nemo-grid { grid-template-columns: 1fr 1fr; }
  .nemo-grid .select-card { padding: 0; }
  .card-body { padding: 12px; }
  .nemo-grid .card-desc { min-height: 76px; }
  .active-nemo-image { width: 48px; height: 48px; flex-basis: 48px; border-radius: 14px; }
}

@media (max-width: 380px) {
  .nemo-grid { grid-template-columns: 1fr; }
  .nemo-card-image-wrap { aspect-ratio: 16 / 10; }
  .nemo-grid .card-desc { min-height: 0; }
}
@media (max-width: 760px) and (min-width: 601px) {
  .nemo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* v0.4 — wallet / holder route */
.mode-card { cursor: pointer; }
.wallet-panel { overflow: hidden; }
.wallet-status-chip,
.holder-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d8cfbf;
  background: #f4ede0;
  color: #74684f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  white-space: nowrap;
}
.wallet-status-chip.connected,
.holder-chip {
  background: #e9eef8;
  border-color: #c7d1e6;
  color: #435778;
}
.wallet-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #d7dfd3;
  background: #f4f8f1;
  line-height: 1.65;
  font-size: 13px;
}
.wallet-note strong { color: var(--accent-dark); }
.wallet-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.wallet-connected-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed #cfc5b2;
  background: #fffaf0;
}
.wallet-connected-box span { color: var(--muted); font-size: 12px; font-weight: 800; }
.wallet-connected-box code {
  font: 800 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink);
}
.ghost.compact { min-height: 36px; padding: 8px 12px; margin-left: auto; font-size: 12px; }
.scan-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f3eee5;
  color: #6c665d;
  font-size: 13px;
  line-height: 1.6;
}
.scan-status.loading { background: #eef3f7; color: #526479; }
.scan-status.success { background: #e8f4e9; color: #3e6646; font-weight: 800; }
.scan-status.warning { background: #fff4dc; color: #7b6336; }
.scan-status.error { background: #f8e7e5; color: #8d514b; }
.manual-verify {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf8;
}
.manual-verify summary { cursor: pointer; font-weight: 900; color: var(--accent-dark); }
.manual-verify p { margin: 10px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.manual-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.manual-row input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.manual-status { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.holder-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  text-align: center;
  color: var(--muted);
  background: #fffdf8;
}
.holder-card { border-color: #d0d8e7; }
.holder-card.selected { border-color: #627aa1; background: #edf1f8; }
.holder-label { color: #5e6f90; }
.holder-ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 8px;
  border-radius: 999px;
  background: #4f6284;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}
.locked-dungeon {
  cursor: not-allowed;
  opacity: .62;
  filter: saturate(.7);
}
.locked-dungeon::before {
  content: "NFT HOLDERで解放";
  position: absolute;
  inset: auto 12px 12px auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(47,55,47,.82);
  color: white;
  font-size: 9px;
  font-weight: 800;
}
.dungeon-archive { background: linear-gradient(135deg, #e9e4f1, #f5eee4); }
.loot-item.holder-relic {
  background: linear-gradient(135deg, #ece8f7, #fff8e9);
  border-color: #a69ac3;
  box-shadow: inset 3px 0 0 #7d6e9f;
}
.holder-treasure { position: relative; }
.holder-mini {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #586c91;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}
.history-holder {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #e8edf7;
  color: #536887;
  font-size: 9px;
  font-weight: 900;
  vertical-align: middle;
}

@media (max-width: 700px) {
  .wallet-note { grid-template-columns: 1fr; }
  .wallet-actions-row { flex-direction: column; align-items: stretch; }
  .wallet-actions-row button { width: 100%; }
  .wallet-connected-box { align-items: flex-start; }
  .ghost.compact { margin-left: 0; width: 100%; }
  .manual-row { grid-template-columns: 1fr; }
}

.bag-count {
  display: inline-block;
  margin-left: .45rem;
  padding: .1rem .45rem;
  border-radius: 999px;
  font-size: .78em;
  font-weight: 800;
  background: #efe7d7;
  color: #5e665d;
  vertical-align: middle;
}

/* v0.12.2 — HOLDERねも選択UIをコンパクト化 */
.holder-nemo-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.holder-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf8;
}
.holder-search input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
.holder-search input::placeholder { color: #a59c8f; }
.holder-result-meta {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.holder-nemo-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #c7d1e6;
  border-radius: 16px;
  background: #f2f5fb;
}
.holder-nemo-preview img {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 14px;
  border: 1px solid #d0d8e7;
  background: #fff;
}
.holder-preview-copy { min-width: 0; }
.holder-preview-label {
  display: block;
  margin-bottom: 3px;
  color: #5e6f90;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}
.holder-preview-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
}
.holder-preview-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}
.holder-preview-next {
  display: block;
  margin-top: 6px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
}

/* 一覧は「鑑賞カード」ではなく「選択パレット」にする */
.holder-nemo-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.holder-nemo-grid .holder-compact-card {
  min-width: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fffdf8;
}
.holder-nemo-grid .holder-compact-card::after { display: none; }
.holder-nemo-grid .holder-compact-card .nemo-card-image-wrap {
  aspect-ratio: 1 / 1;
  border-bottom: 0;
}
.holder-compact-name {
  display: block;
  width: 100%;
  padding: 8px 7px 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}
.holder-selected-mark {
  display: none;
  position: absolute;
  top: 7px;
  right: 7px;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #5572a1;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 3px 8px rgba(50,65,90,.2);
}
.holder-compact-card.selected .holder-selected-mark { display: grid; }
.holder-compact-card.selected {
  border: 2px solid #627aa1;
  background: #edf1f8;
}
.holder-nemo-toggle {
  display: block;
  width: max-content;
  margin: 14px auto 0;
  min-height: 40px;
  padding: 9px 16px;
  font-size: 12px;
}

@media (max-width: 980px) {
  .holder-nemo-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .holder-nemo-tools { align-items: stretch; flex-direction: column; gap: 6px; }
  .holder-result-meta { align-self: flex-end; padding-right: 2px; }
  .holder-nemo-preview { gap: 10px; padding: 10px 12px; }
  .holder-nemo-preview img { width: 58px; height: 58px; flex-basis: 58px; border-radius: 12px; }
  .holder-preview-copy strong { font-size: 15px; }
  .holder-nemo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .holder-nemo-grid .holder-compact-card .nemo-card-image-wrap { aspect-ratio: 1 / 1; }
  .holder-compact-name { padding: 7px 5px 8px; font-size: 10px; }
}
@media (max-width: 340px) {
  .holder-nemo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
