/* ToneTone の配色（アプリの tt_theme.dart と同じ値）。 */
:root {
  --grape: #7a4dff;
  --pink: #ff54a6;
  --sky: #45d0ff;
  --ink: #241436;
  --muted: #8a7ca6;
  --card: #fefcff;
  --line: #efe6fb;
  --bg: linear-gradient(160deg, #f3e9ff 0%, #fde7f4 55%, #ffeff8 100%);
  --primary: linear-gradient(120deg, #9678fa 0%, #ff6ebe 60%, #6ecdff 100%);
  --ok: #1f9d63;
  --warn: #c2410c;
  /* ストアの面（2026-11-27 ネットショップらしい作りに）。 */
  --paper: #ffffff;
  --soft: #f6f3f9;
  --rule: #ece7f2;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-color: #f7ecfb;
  color: var(--ink);
  font-family: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding-inline: 20px;
  padding-block: 28px 64px;
}

.logo {
  font-family: 'Baloo 2', 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.logo small {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin-left: 6px;
  letter-spacing: 0.08em;
}

/* 開発版だけに出る帯。売り場の邪魔にならないよう小さく（2026-11-27 Jev の判断）。 */
.test-banner {
  margin-top: 12px;
  padding: 5px 12px;
  border-radius: 10px;
  background: #fff7d6;
  border: 1px dashed #e0b400;
  font-size: 11.5px;
  font-weight: 700;
}
.test-banner code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #fff;
  padding: 1px 6px;
  border-radius: 6px;
}

.account {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
}
.link-btn {
  display: inline-block;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  text-decoration: none;
}
.link-btn:focus-visible,
button:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
button:disabled { cursor: default; opacity: 0.55; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 7px 16px rgba(122, 77, 255, 0.3);
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-point {
  background: #efe8ff;
  color: var(--grape);
  border: 1px solid #d6c8ff;
}

.note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  font-size: 14px;
}

.status {
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 22px;
  text-align: center;
}
.status .big { font-size: 22px; font-weight: 800; margin: 8px 0 4px; }
.status .sub { color: var(--muted); font-size: 13px; }
.status .actions { margin-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--grape);
  margin: 0 auto;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

#toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  max-width: min(92vw, 520px);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(36, 20, 54, 0.25);
}
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- ログイン */

.verify { margin-top: 14px; }
.verify p { margin: 0 0 12px; }
.row-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

dialog {
  border: 0;
  border-radius: 24px;
  padding: 22px;
  width: min(92vw, 420px);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(36, 20, 54, 0.25);
}
dialog::backdrop { background: rgba(36, 20, 54, 0.4); }

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dialog-head h3 { margin: 0; font-size: 18px; }
.dialog-sub { color: var(--muted); font-size: 13px; margin: 8px 0 16px; }

.icon-btn {
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  padding: 4px 10px;
}

.methods { display: flex; flex-direction: column; gap: 10px; }

.method {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  font-size: 15px;
}
.method-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  font-weight: 900;
}
/* Apple と LINE は見た目の決まりに合わせる（Apple: 黒地にロゴ、LINE: 緑地に白字）。 */
.m-apple { background: #000; color: #fff; }
.m-line { background: #06c755; color: #fff; }
.m-line .method-icon { font-size: 11px; letter-spacing: 0.02em; }
.m-google { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.m-google .method-icon { color: #4285f4; font-size: 17px; }
.m-email { background: #fff; color: var(--ink); border: 1px solid var(--line); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
.field input {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.field input:focus-visible { outline: 3px solid var(--sky); outline-offset: 1px; }

.wide { width: 100%; min-height: 48px; margin-top: 4px; }

.links { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 12px; }
.link {
  background: transparent;
  color: var(--grape);
  padding: 6px 10px;
  font-size: 13px;
}
.link.muted { color: var(--muted); }

/* ---------------------------------------------------------------- コイン */

.coin {
  display: inline-block;
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe680, #e0a800);
  box-shadow: inset 0 0 0 1.5px #c99400;
  vertical-align: -2px;
}
.coin-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff7d6;
  border: 1px solid #f0d36b;
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}
.coin-chip::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe680, #e0a800);
  box-shadow: inset 0 0 0 1.5px #c99400;
}
.coin-chip::after { content: '＋'; color: var(--muted); font-size: 11px; }
.point-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #efe8ff;
  border: 1px solid #d6c8ff;
  color: var(--grape);
  font-weight: 800;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.section-note { color: var(--muted); font-size: 12.5px; margin: 8px 0 12px; }

/* ================================================================
   ストア（ネットショップらしい作り。2026-11-27）
   ================================================================ */

body.shop { background: var(--paper); }
body.shop .test-banner { margin: 0; border-radius: 0; border-width: 0 0 1px; text-align: center; }
body.shop .wrap { padding-block: 4px 40px; }

/* ヘッダー（上に貼り付く） */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.top .logo { font-size: 24px; }
.top .logo small { font-size: 11px; }
.top .btn-dark { padding: 8px 16px; font-size: 13px; }
.who { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
@media (max-width: 520px) { .who { display: none; } }

/* 共通と推し（丸い写真） */
.pages {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 16px 2px 6px;
  scrollbar-width: none;
}
.pages::-webkit-scrollbar { display: none; }
.page {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 64px;
  padding: 0;
  background: none;
  color: var(--ink);
  font-weight: 700;
}
.face {
  --oshi: var(--grape);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--oshi);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--rule);
}
.face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.face-all { background: var(--primary); font-size: 24px; }
.face-add { background: var(--soft); color: var(--muted); box-shadow: inset 0 0 0 1.5px #d9d0e6; }
.page[aria-pressed='true'] .face { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.page-name { font-size: 11.5px; line-height: 1.3; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page[aria-pressed='true'] .page-name { font-weight: 800; }

/* いちばん上の帯 */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  padding: 18px 18px;
  border-radius: 20px;
  overflow: hidden;
}
.hero h2 { margin: 2px 0 4px; font-size: 22px; line-height: 1.35; letter-spacing: 0.01em; }
/* 一言の途中で折り返さない（「楽し / く。」にならないように）。 */
.hero .nb { white-space: nowrap; }
.hero-common h2 { font-size: clamp(17px, 5.2vw, 22px); }
.hero-kicker { margin: 0; font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; opacity: 0.75; }
.hero-sub { margin: 0; font-size: 12.5px; font-weight: 700; opacity: 0.85; }
.hero-common {
  background: linear-gradient(125deg, #2a1745 0%, #5b2f8f 55%, #c8458f 100%);
  color: #fff;
}
.hero-common .hero-text { position: relative; z-index: 1; max-width: 68%; }
.hero-art {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: repeat(2, 44px);
  gap: 8px;
}
.hero-art span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 22px;
}
.hero-art span:nth-child(odd) { transform: translateY(10px); }
@media (max-width: 380px) { .hero-art { opacity: 0.35; } .hero-common .hero-text { max-width: none; } }
.hero-oshi {
  --oshi: var(--grape);
  background: linear-gradient(120deg, color-mix(in srgb, var(--oshi) 80%, #000) 0%, var(--oshi) 100%);
  color: #fff;
}
.hero-face {
  --oshi: var(--grape);
  flex: none;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
}
.hero-face img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* シーン（丸いアイコン） */
.scenes {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 18px -20px 0;
  padding: 4px 20px 8px;
  scrollbar-width: none;
  scroll-margin-top: 64px;
}
.scenes::-webkit-scrollbar { display: none; }
.scene {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 62px;
  padding: 0;
  background: none;
  color: var(--ink);
  font-weight: 700;
}
.scene-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
}
.scene[aria-pressed='true'] .scene-icon { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.scene-name { font-size: 11.5px; line-height: 1.3; white-space: nowrap; }
.scene[aria-pressed='true'] .scene-name { font-weight: 800; }

/* シーンごとの棚 */
.shelf { margin-top: 22px; }
.shelf-head, .list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.shelf-head h2, .list-head h2 { margin: 0; font-size: 17px; letter-spacing: 0.01em; color: var(--ink); }
.more { padding: 4px 0; font-size: 12.5px; font-weight: 800; }
.list-head .count { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.back { display: inline-block; margin-top: 18px; padding: 4px 0; font-weight: 800; }
.shelf-row {
  display: grid;
  grid-auto-flow: column;
  /* 次のカードが半分ほど見えるようにして、横に続くことを伝える（2026-11-27 Jev の判断）。 */
  grid-auto-columns: min(150px, calc((100vw - 44px) / 2.5));
  gap: 12px;
  overflow-x: auto;
  margin: 0 -20px;
  padding: 2px 20px 6px;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 20px;
  scrollbar-width: none;
}
.shelf-row::-webkit-scrollbar { display: none; }
.shelf-row .card { scroll-snap-align: start; }

/* 一覧（2 列。広い画面では 3 列） */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 商品のカード（写真・名前・値段） */
.card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  color: var(--ink);
  font-weight: 500;
  text-align: left;
}
.card-art {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--soft);
  margin-bottom: 4px;
}
.card-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s; }
.card:hover .card-art img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .card-art img { transition: none; } }
.card-art .emoji, .d-art .emoji { font-size: 48px; }
/* 写真の上の札（NEW・セット・順位・持っています） */
.badges { position: absolute; left: 8px; top: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; pointer-events: none; }
.badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.owned-badge { background: rgba(31, 157, 99, 0.95); color: #fff; }
.new-badge { background: var(--pink); color: #fff; }
.set-badge { background: var(--ink); color: #fff; }
.save-badge { background: #ffe14d; color: var(--ink); }
.rank {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 8px;
  background: rgba(36, 20, 54, 0.78);
  color: #fff;
  font-family: 'Baloo 2', 'M PLUS Rounded 1c', sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}
.rank.r1 { background: linear-gradient(135deg, #f7c948, #e09b00); }
.rank.r2 { background: linear-gradient(135deg, #c9ced6, #8e96a3); }
.rank.r3 { background: linear-gradient(135deg, #e3a06b, #b8692f); }
.card-name {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-oshi {
  --oshi: var(--grape);
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.card-oshi::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--oshi); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.coin-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.coin-price small { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.point-price { font-size: 12px; font-weight: 800; color: var(--grape); }

/* 下から出るシート（商品の詳しい画面・コイン） */
dialog.sheet {
  position: fixed;
  inset: auto 0 0 0;
  margin: 0 auto;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  border-radius: 24px 24px 0 0;
  background: var(--paper);
  box-shadow: 0 -10px 40px rgba(36, 20, 54, 0.18);
}
dialog.sheet[open] { animation: sheet-up 0.22s ease-out; }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { dialog.sheet[open] { animation: none; } }
.sheet-grip { width: 40px; height: 5px; border-radius: 99px; background: #e2dbea; margin: 0 auto 10px; }
.sheet-close { position: absolute; right: 10px; top: 10px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.sheet-head h3 { margin: 0; font-size: 18px; }

.d-art {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin: 8px auto 0;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--soft);
}
.d-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 56px;
  height: 56px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 18px;
  box-shadow: 0 6px 18px rgba(36, 20, 54, 0.25);
}
.d-play.on { background: var(--ink); color: #fff; }
.d-body { padding: 16px 2px 4px; }
.d-body h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.4; }
.d-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  --oshi: var(--grape);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
}
.tag-oshi::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--oshi); }
.d-desc { margin: 12px 0 0; font-size: 13.5px; color: #5d5070; line-height: 1.75; }
.d-hint { margin: 8px 0 0; font-size: 11.5px; color: var(--muted); }
.d-bar {
  position: sticky;
  bottom: calc(-20px - env(safe-area-inset-bottom, 0px));
  margin: 14px -20px calc(-20px - env(safe-area-inset-bottom, 0px));
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.d-price { flex: none; flex-direction: column; gap: 0; }
.d-price .coin-price { font-size: 20px; }
.d-actions { flex: 1; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.d-actions .wide { margin: 0; }
.owned { font-size: 15px; font-weight: 800; color: var(--ok); text-align: right; }
.owned-sub { font-size: 11.5px; color: var(--muted); text-align: right; }

/* コインの画面 */
.balance-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fffaf0;
  font-size: 13px;
  font-weight: 700;
}
.balance-box:empty { display: none; }
.balance-box strong { display: inline-flex; align-items: center; gap: 6px; font-size: 20px; }
.balance-box .coin { width: 18px; height: 18px; }
.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink);
  text-align: left;
}
.pack-coins { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 800; }
.pack-price { font-size: 13px; color: var(--muted); font-weight: 700; }

/* 下の帯 */
.foot {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px calc(32px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--muted);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; }
.foot a { color: var(--muted); text-decoration: none; font-weight: 700; }
.foot p { margin: 0; }

/* ================================================================
   新着・売れ筋・ボイスパック・カート・めくれる帯（2026-11-27。参考: LINE STORE・VTuber の公式ショップ）
   ================================================================ */

/* ヘッダーのカート */
.cart-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
}
.cart-count {
  position: absolute;
  right: -2px;
  top: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--paper);
}

/* 下の「カートを見る」の帯 */
.cart-bar {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 520px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 30px rgba(36, 20, 54, 0.3);
}
.cart-bar strong { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; }
body.shop:has(.cart-bar:not([hidden])) .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

/* めくれる帯 */
.banners { display: block; padding: 0; background: none; border-radius: 0; overflow: visible; }
.banner-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 20px;
}
.banner-track::-webkit-scrollbar { display: none; }
.banner {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  min-height: 150px;
  padding: 18px;
  border-radius: 20px;
  overflow: hidden;
  color: #fff;
}
.banner.tap { cursor: pointer; }
.banner .hero-text { position: relative; z-index: 1; max-width: 68%; }
.banner h2 { font-size: clamp(17px, 5.2vw, 22px); }
.b-store { background: linear-gradient(125deg, #2a1745 0%, #5b2f8f 55%, #c8458f 100%); }
.b-pack { background: linear-gradient(125deg, #0f3b3a 0%, #13806f 55%, #49c7a3 100%); }
.b-new { background: linear-gradient(125deg, #3a1530 0%, #b0306b 55%, #ff7aa8 100%); }
.hero-art.n1 { grid-template-columns: 1fr; }
.hero-art.n1 span { width: 76px; height: 76px; font-size: 42px; border-radius: 22px; transform: none; }
.banner-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.banner-dots span { width: 6px; height: 6px; border-radius: 99px; background: #ddd5e8; transition: width 0.2s; }
.banner-dots span.on { width: 18px; background: var(--ink); }
@media (prefers-reduced-motion: reduce) { .banner-dots span { transition: none; } }

/* 棚の見出しの上の小さな英語 */
.kicker { margin: 0; font-size: 10px; font-weight: 800; letter-spacing: 0.16em; color: var(--muted); }

/* ボイスパックの横長のカード */
.shelf-row.wide { grid-auto-columns: min(300px, calc(100vw - 72px)); }
.pack-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--soft);
  color: var(--ink);
  text-align: left;
  font-weight: 500;
}
.pack-stack { position: relative; flex: none; width: 96px; height: 96px; }
.pack-thumb {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 4px 10px rgba(36, 20, 54, 0.15), 0 0 0 2px #fff;
}
.pack-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pack-thumb .emoji { font-size: 30px; }
.pack-thumb:nth-child(1) { left: 0; top: 0; z-index: 3; }
.pack-thumb:nth-child(2) { left: 14px; top: 14px; z-index: 2; transform: rotate(6deg); }
.pack-thumb:nth-child(3) { left: 28px; top: 28px; z-index: 1; transform: rotate(12deg); }
.pack-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pack-head { display: flex; flex-wrap: wrap; gap: 4px; }
.regular { font-size: 12px; color: var(--muted); font-weight: 700; }

/* 詳しい画面：パックの中身・ボタン */
.d-sub { margin: 16px 0 8px; font-size: 13px; color: var(--muted); }
.d-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.d-items li { display: flex; align-items: center; gap: 10px; }
.d-item-art {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--soft);
}
.d-item-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-item-art .emoji { font-size: 22px; }
.d-item-name { flex: 1; font-size: 13.5px; font-weight: 700; }
.d-item-play { width: 32px; height: 32px; padding: 0; border-radius: 50%; background: var(--soft); color: var(--ink); font-size: 11px; }
.d-item-play.on { background: var(--ink); color: #fff; }
.d-item-owned { color: var(--ok); font-weight: 800; }
.d-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.d-buttons button { min-height: 48px; padding: 10px 8px; font-size: 14px; }
.btn-outline { background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); }
.tag-new { background: var(--pink); color: #fff; }
.d-price .regular { font-size: 12px; }

/* カート */
.cart-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cart-list li { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.cart-art {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--soft);
}
.cart-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-art .emoji { font-size: 26px; }
.cart-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart-name { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-remove { font-size: 20px; }
.cart-sum { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.cart-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 700; }
.cart-line strong { display: inline-flex; align-items: center; gap: 6px; font-size: 22px; }
.cart-line strong small { font-size: 12px; color: var(--muted); }
.cart-line.muted { color: var(--muted); font-size: 12.5px; }
.cart-actions { margin-top: 14px; }
.cart-short { margin: 0 0 8px; color: var(--warn); font-size: 13px; font-weight: 800; text-align: center; }

/* パックの画像が無いときの、中身の写真のタイル */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; place-items: stretch; background: #fff; }
.mosaic-cell.mosaic-count { background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; }
.d-art .mosaic-count { font-size: 22px; }
.mosaic-cell { min-width: 0; min-height: 0; overflow: hidden; display: grid; place-items: center; background: var(--soft); }
.mosaic-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mosaic-cell .emoji { font-size: 20px; }
.d-art .mosaic-cell .emoji { font-size: 40px; }

/* カートの帯が出ているときは、知らせをその上に出す */
body.shop:has(.cart-bar:not([hidden])) #toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }

/* パックの詳しい画面：どれだけおトクか */
.d-save {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fffbe0;
  font-size: 13px;
  font-weight: 700;
}
.d-save s { color: var(--muted); }
.d-save strong { font-size: 15px; }
.d-save-arrow { color: var(--muted); }

/* ================================================================
   幅ごとの作り（2026-11-30）。スマホは上のまま、タブレットとパソコンは広さを使う。
     〜599px     スマホ（横の棚・下から出るシート）
     600〜1023px タブレット（列を増やし、余白を広げる）
     1024px〜    パソコン（幅 1200px、棚はグリッド、詳しい画面は中央、カートは右から）
   ================================================================ */

.top-nav { display: none; }
.shelf, .scenes { scroll-margin-top: 72px; }

/* ---------------------------------------------------------------- タブレット */
@media (min-width: 600px) {
  body.shop .wrap, .top-inner, .foot { max-width: 960px; padding-inline: 28px; }
  .scenes { margin-inline: -28px; padding-inline: 28px; }
  .shelf-row { margin-inline: -28px; padding-inline: 28px; grid-auto-columns: 168px; gap: 16px; scroll-padding-inline: 28px; }
  .shelf-row.wide { grid-auto-columns: 340px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; }
  .banner { min-height: 180px; padding: 24px 28px; }
  .hero-oshi { padding: 24px 28px; }
  .shelf { margin-top: 30px; }
  .shelf-head h2, .list-head h2 { font-size: 19px; }
  .card-name { font-size: 14px; }
}

/* ---------------------------------------------------------------- パソコン */
@media (min-width: 1024px) {
  body.shop { font-size: 15px; }
  body.shop .wrap, .top-inner, .foot { max-width: 1200px; padding-inline: 40px; }
  body.shop .wrap { padding-block: 8px 56px; }

  /* ヘッダー：ロゴ・売り場・コイン・カート・アカウント */
  .top-inner { padding-block: 14px; gap: 28px; }
  .top .logo { font-size: 26px; }
  .top-nav { display: flex; gap: 4px; margin-right: auto; }
  .top-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
  }
  .top-nav a:hover { background: var(--soft); }
  .who { display: inline; max-width: 240px; }

  /* 共通・推しの丸い写真とシーンを、1 行に並べる */
  .pages { padding-top: 22px; }

  /* 帯：3 枚を横に並べる（めくらない） */
  .banners { margin-top: 14px; }
  .banner-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; overflow: visible; border-radius: 0; }
  /* 3 枚のときは、ストアの一言（1 枚目）を広く */
  .banner-track:has(> :nth-child(3)) { grid-auto-flow: row; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr); }
  .banner { min-height: 190px; padding: 26px 28px; flex: none; }
  /* 文と絵文字の飾りが重ならないよう、飾りを小さくして文の幅を空ける */
  .banner .hero-text { max-width: calc(100% - 104px); }
  .banner .hero-sub .nb { white-space: normal; }
  .banner .hero-kicker { letter-spacing: 0.1em; }
  .banner h2 { font-size: 22px; }
  .banner .hero-art { right: 20px; grid-template-columns: repeat(2, 38px); gap: 6px; }
  .banner .hero-art span { width: 38px; height: 38px; font-size: 19px; border-radius: 12px; }
  /* 絵文字 1 つの飾り（ボイスパック・新着）は右下に寄せて、見出しに幅をゆずる */
  .banner:has(.hero-art.n1) .hero-text { max-width: none; }
  .banner:has(.hero-art.n1) .hero-sub { max-width: calc(100% - 72px); }
  .banner .hero-art.n1 { top: auto; bottom: 18px; right: 18px; transform: none; }
  .banner .hero-art.n1 span { width: 58px; height: 58px; font-size: 30px; border-radius: 18px; }
  .banner.tap { transition: transform 0.15s, box-shadow 0.15s; }
  .banner.tap:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(36, 20, 54, 0.18); }
  .banner-dots { display: none; }
  .hero-oshi { min-height: 160px; padding: 28px 32px; margin-top: 14px; }
  .hero-oshi h2 { font-size: 28px; }
  .hero-face { width: 96px; height: 96px; font-size: 40px; }

  /* シーン：はみ出さないので左右の寄せをやめる */
  .scenes { margin: 26px 0 0; padding: 4px 0 8px; gap: 18px; overflow: visible; flex-wrap: wrap; }
  .scene { width: 76px; }
  .scene-icon { width: 64px; height: 64px; font-size: 28px; }
  .scene-name { font-size: 12.5px; }
  .scene:hover .scene-icon { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--rule); }

  /* 棚：横スクロールをやめてグリッドに */
  .shelf { margin-top: 44px; }
  .shelf-head { margin-bottom: 16px; }
  .shelf-head h2, .list-head h2 { font-size: 22px; }
  .kicker { font-size: 11px; }
  .shelf-row {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-columns: auto;
    gap: 28px 20px;
    margin: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .shelf-row.cols5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .shelf-row.limit6 > :nth-child(n + 7) { display: none; }
  .shelf-row.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 20px; }
  .list-head { margin-top: 8px; }

  /* カード：さわると浮く */
  .card { gap: 6px; }
  .card-art { border-radius: 16px; transition: transform 0.15s, box-shadow 0.15s; }
  .card:hover .card-art { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(36, 20, 54, 0.14); }
  .card-name { font-size: 14.5px; }
  .coin-price { font-size: 16px; }
  .rank { min-width: 30px; height: 30px; font-size: 17px; }
  .pack-card { padding: 18px; gap: 18px; transition: transform 0.15s, box-shadow 0.15s; }
  .pack-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(36, 20, 54, 0.12); }
  .pack-stack { width: 120px; height: 120px; }
  .pack-thumb { width: 86px; height: 86px; }
  .pack-card .card-name { font-size: 16px; }

  /* 詳しい画面：中央に開く。左に写真、右に説明と買うボタン */
  dialog.sheet { inset: 0; margin: auto; border-radius: 24px; box-shadow: 0 30px 80px rgba(36, 20, 54, 0.3); }
  dialog.sheet[open] { animation: modal-in 0.18s ease-out; }
  @keyframes modal-in { from { transform: translateY(12px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
  .sheet-grip { display: none; }
  #detail[open] {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    grid-template-areas: 'art body' 'art bar';
    column-gap: 32px;
    width: min(92vw, 920px);
    max-width: none;
    max-height: min(86vh, 720px);
    padding: 32px;
    overflow: hidden;
  }
  #detail .d-art { grid-area: art; width: 100%; margin: 0; align-self: start; }
  #detail .d-body { grid-area: body; padding: 4px 24px 0 0; overflow-y: auto; min-height: 0; }
  #detail .d-body h3 { font-size: 24px; }
  #detail .d-bar { grid-area: bar; position: static; margin: 16px 0 0; padding: 16px 0 0; }
  #detail .sheet-close { right: 16px; top: 16px; }
  #coin-sheet[open] { width: min(92vw, 520px); padding: 28px; }

  /* カート：右から出るパネル */
  #cart-sheet[open] {
    inset: 0 0 0 auto;
    margin: 0;
    width: 440px;
    max-width: 100vw;
    height: 100vh;
    max-height: none;
    border-radius: 0;
    padding: 28px 28px 32px;
    animation: drawer-in 0.2s ease-out;
  }
  @keyframes drawer-in { from { transform: translateX(32px); opacity: 0.6; } to { transform: none; opacity: 1; } }
  .cart-bar { display: none; }
  body.shop:has(.cart-bar:not([hidden])) .foot { padding-bottom: 32px; }
  body.shop:has(.cart-bar:not([hidden])) #toast { bottom: 24px; }

  /* 下の帯 */
  .foot { display: flex; align-items: center; justify-content: space-between; padding-block: 32px 40px; }
  .foot nav { margin: 0; }
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .card-art, .pack-card, .banner.tap { transition: none; }
  dialog.sheet[open], #cart-sheet[open] { animation: none; }
}

/* ================================================================
   色と面（2026-11-30）。白一色で「置いただけ」に見えたので、地に色をつけ、
   売り場ごとに面を変え、ブランドの色（紫→ピンク）をボタンや見出しに戻した。
   ================================================================ */
:root { --brand: linear-gradient(120deg, #7a4dff 0%, #d94ba6 100%); }

body.shop {
  background-color: #f6f1fc;
  background-image:
    radial-gradient(900px 420px at 0% -8%, #e6d8ff 0, transparent 62%),
    radial-gradient(760px 420px at 100% 0%, #ffe0ef 0, transparent 62%);
  background-repeat: no-repeat;
}
.top { background: rgba(250, 246, 254, 0.88); border-bottom-color: #e6dcf3; }

/* ブランドの色 */
body.shop .btn-dark { background: var(--brand); box-shadow: 0 6px 16px rgba(122, 77, 255, 0.28); }
.cart-bar { background: var(--brand); }
.btn-outline { border-color: var(--grape); color: var(--grape); }
.new-badge, .tag-new { background: var(--brand); }
.kicker { color: var(--grape); }
.shelf-head h2::before, .list-head h2::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 0.95em;
  margin-right: 8px;
  border-radius: 3px;
  background: var(--brand);
  vertical-align: -2px;
}
.page[aria-pressed='true'] .face,
.scene[aria-pressed='true'] .scene-icon { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--grape); }
.scene-icon { box-shadow: 0 3px 10px rgba(36, 20, 54, 0.08); }
.banner-dots span.on { background: var(--grape); }
.cart-btn { background: #fff; box-shadow: 0 2px 8px rgba(36, 20, 54, 0.08); }

/* 一番上の帯：大きく、飾りを重ねる */
.banner { min-height: 178px; }
.b-store { background: linear-gradient(125deg, #2f1560 0%, #7a4dff 55%, #ff54a6 100%); }
.banner::before, .banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.banner::before { width: 220px; height: 220px; right: -70px; top: -90px; }
.banner::after { width: 130px; height: 130px; right: 60px; bottom: -80px; background: rgba(255, 255, 255, 0.08); }
.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 0 14px;
  opacity: 0.2;
  pointer-events: none;
}
.wave i { flex: 1; height: 30%; border-radius: 4px 4px 0 0; background: #fff; }
.wave i:nth-child(3n + 1) { height: 70%; }
.wave i:nth-child(4n + 2) { height: 100%; }
.wave i:nth-child(5n + 3) { height: 50%; }
.hero-oshi { box-shadow: 0 10px 26px rgba(36, 20, 54, 0.14); }
.banner { box-shadow: 0 10px 26px rgba(74, 35, 128, 0.2); }

/* 売り場の面 */
.shelf.panel {
  margin: 18px -12px 0;
  padding: 20px 20px 18px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #fbf8ff);
  box-shadow: 0 6px 20px rgba(36, 20, 54, 0.06);
}
.shelf.panel.tone { background: var(--tone, #fff); }
.shelf.panel.pack-panel { background: linear-gradient(135deg, #fff1cf 0%, #ffdcec 100%); }
.shelf.panel.dark { background: linear-gradient(135deg, #1d0f33 0%, #47207f 70%, #7a2f8f 100%); }
.shelf.dark .shelf-head h2 { color: #fff; }
.shelf.dark .kicker { color: #d2bfff; }
.pack-panel .pack-card { background: #fff; box-shadow: 0 4px 14px rgba(36, 20, 54, 0.08); }

/* カード：白い面と影 */
.card {
  padding: 8px 8px 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(36, 20, 54, 0.08);
}
.card-art { border-radius: 12px; }
.card-name, .card-oshi, .card .price { padding-inline: 4px; }

/* ランキング：順位を大きく */
.rank-row .rank { min-width: 34px; height: 34px; font-size: 19px; border-radius: 10px; }

@media (min-width: 600px) {
  .shelf.panel { margin-inline: -8px; padding: 26px 28px 24px; }
  .banner { min-height: 200px; }
}

@media (min-width: 1024px) {
  .shelf.panel { margin: 28px 0 0; padding: 30px 32px 32px; border-radius: 28px; overflow: visible; }
  .shelf-row.rank-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  /* 1 位を大きく（2 × 2）。その横に 2〜9 位 */
  .rank-row > :first-child { grid-column: span 2; grid-row: span 2; }
  .rank-row > :first-child .card-name { font-size: 18px; }
  .rank-row > :first-child .rank { min-width: 48px; height: 48px; font-size: 27px; border-radius: 14px; }
  .rank-row > :nth-child(n + 10) { display: none; }
  .card { transition: transform 0.15s, box-shadow 0.15s; }
  .card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(36, 20, 54, 0.16); }
  .card:hover .card-art { transform: none; box-shadow: none; }
  .banner { min-height: 210px; }
  .wave { height: 54px; }
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) { .card { transition: none; } }

/* ランキングの小さなカードでは、順位の札だけにする（NEW・セットの札と重なるため） */
.rank-row .new-badge, .rank-row .set-badge { display: none; }

/* シーンの棚：パソコンでは 2 つずつ横に並べ、それぞれ 3 個まで */
@media (min-width: 1024px) {
  .scene-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .scene-grid .shelf-row.limit6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scene-grid .shelf-row.limit6 > :nth-child(n + 4) { display: none; }
}

/* ================================================================
   訴求（2026-11-30）：体験を見せる帯、カードの再生ボタン、セリフの吹き出し
   ================================================================ */
.banner.b-exp { flex-direction: column; align-items: stretch; justify-content: center; gap: 14px; padding-bottom: 26px; }
.banner.b-exp .hero-text { max-width: none; }
.exp { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; }
.exp-noti {
  flex: 1.15;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(36, 20, 54, 0.2);
}
.exp-noti > div { min-width: 0; }
.exp-app { font-size: 20px; }
.exp-noti b { display: block; font-size: 11.5px; line-height: 1.3; }
.exp-noti small { display: block; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exp-arrow { flex: none; font-size: 14px; opacity: 0.8; }
.exp-charm {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--grape);
  font-size: 20px;
  font-weight: 800;
  animation: charm-ring 1.8s ease-out infinite;
}
@keyframes charm-ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55), 0 0 0 0 rgba(255, 255, 255, 0.3); }
  100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0), 0 0 0 20px rgba(255, 255, 255, 0); }
}
@media (prefers-reduced-motion: reduce) { .exp-charm { animation: none; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.25); } }
.exp-say {
  flex: 1.3;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding: 7px 10px 7px 7px;
  border-radius: 18px 18px 18px 4px;
  background: #ffe14d;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.35;
  box-shadow: 0 6px 16px rgba(36, 20, 54, 0.2);
}
.exp-play { flex: none; width: 32px; height: 32px; padding: 0; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; }
.exp-play.on { background: var(--pink); }

.card { cursor: pointer; }
.card:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.card-play {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--grape);
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(36, 20, 54, 0.22);
}
.card-play.on { background: var(--brand); color: #fff; }
.card-name.say {
  align-self: flex-start;
  margin: 2px 2px 0;
  padding: 5px 10px;
  border-radius: 13px 13px 13px 3px;
  background: #f3edff;
}
@media (min-width: 1024px) {
  .exp-noti b { font-size: 12.5px; }
  .exp-noti small { font-size: 11px; }
  .exp-say { font-size: 14px; }
  .card-play { width: 40px; height: 40px; font-size: 13px; }
  .card-play:hover { background: var(--brand); color: #fff; }
}

/* ================================================================
   ワクワク（2026-11-30）：今日のひとこと、コレクション、手に入れた演出、動き
   ================================================================ */

/* 今日のひとこと */
.shelf.panel.today {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #fff 0%, #f4ecff 60%, #ffe6f3 100%);
  border: 2px solid #fff;
}
.today-art {
  position: relative;
  flex: none;
  width: 42%;
  max-width: 220px;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--soft);
  box-shadow: 0 10px 24px rgba(36, 20, 54, 0.16);
  transform: rotate(-3deg);
}
.today-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.today-art .d-play { width: 46px; height: 46px; right: 8px; bottom: 8px; font-size: 15px; transform: rotate(3deg); }
.today-body { flex: 1; min-width: 0; }
.today-body h2 { margin: 0 0 6px; font-size: 17px; }
.today-say {
  display: inline-block;
  margin: 0 0 6px;
  padding: 6px 12px;
  border-radius: 16px 16px 16px 4px;
  background: #ffe14d;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}
.today-desc { margin: 0 0 8px; font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.today-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.today-row .btn-dark { padding: 8px 16px; font-size: 13px; }

/* コレクション */
.shelf.collection { margin-top: 18px; padding: 14px 16px; border-radius: 20px; background: #fff; box-shadow: 0 6px 20px rgba(36, 20, 54, 0.06); }
.col-head { display: flex; align-items: baseline; justify-content: space-between; font-size: 14px; }
.col-count { color: var(--muted); font-weight: 800; font-size: 13px; }
.col-count b { font-family: 'Baloo 2', sans-serif; font-size: 24px; color: var(--grape); }
.col-bar { height: 10px; margin-top: 6px; border-radius: 99px; background: #efe8fb; overflow: hidden; }
.col-bar i { display: block; height: 100%; min-width: 10px; border-radius: 99px; background: var(--brand); transition: width 0.6s ease-out; }
.col-note { margin: 6px 0 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.col-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.col-chip { padding: 4px 10px; background: var(--soft); color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; }
.col-chip.done { background: #ffe14d; }

/* 手に入れた演出 */
.celebrate {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(29, 15, 51, 0.72);
  overflow: hidden;
}
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i {
  position: absolute;
  top: -20px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  animation: confetti-fall 2s linear infinite;
}
.confetti i:nth-child(3n) { width: 10px; height: 10px; border-radius: 50%; }
@keyframes confetti-fall {
  0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(540deg); opacity: 0.9; }
}
.cel-card {
  position: relative;
  width: min(100%, 360px);
  padding: 22px 22px 20px;
  border-radius: 28px;
  background: #fff;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  animation: cel-pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes cel-pop { from { transform: scale(0.6) rotate(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }
.cel-get {
  margin: 0 0 10px;
  font-family: 'Baloo 2', sans-serif;
  font-size: 44px;
  line-height: 1;
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cel-arts { display: flex; justify-content: center; margin-bottom: 12px; }
.cel-art {
  width: 120px;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--soft);
  box-shadow: 0 8px 20px rgba(36, 20, 54, 0.2), 0 0 0 3px #fff;
  animation: cel-bob 1.6s ease-in-out infinite alternate;
}
.cel-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cel-arts:not(.n1) .cel-art { width: 76px; border-radius: 16px; margin-left: -14px; }
.cel-arts:not(.n1) .cel-art:first-child { margin-left: 0; }
.cel-art:nth-child(2n) { animation-delay: 0.3s; }
@keyframes cel-bob { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-8px) rotate(3deg); } }
.cel-say { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.cel-note { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); font-weight: 700; }

/* 動き：売り場がふわっと出る、音の波がゆれる、鳴っているボタンが脈打つ、帯の場面が切り替わる */
#products .shelf { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
#products .shelf.in { opacity: 1; transform: none; }
.wave i { transform-origin: bottom; animation: eq 1.3s ease-in-out infinite alternate; }
.wave i:nth-child(2n) { animation-duration: 0.9s; }
.wave i:nth-child(3n) { animation-duration: 1.7s; animation-delay: 0.2s; }
.wave i:nth-child(5n) { animation-delay: 0.45s; }
@keyframes eq { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
[data-play].on { animation: play-pulse 0.9s ease-out infinite; }
@keyframes play-pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 75, 166, 0.55); }
  100% { box-shadow: 0 0 0 14px rgba(217, 75, 166, 0); }
}
.exp.swap .exp-noti { animation: slide-in 0.4s ease-out; }
.exp.swap .exp-say { animation: pop-in 0.45s 0.25s cubic-bezier(0.2, 1.4, 0.4, 1) backwards; }
@keyframes slide-in { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop-in { from { transform: scale(0.7); opacity: 0; } to { transform: none; opacity: 1; } }
.new-badge { animation: badge-wiggle 2.6s ease-in-out infinite; }
@keyframes badge-wiggle { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(-8deg) scale(1.08); } 95% { transform: rotate(6deg) scale(1.08); } }

@media (min-width: 1024px) {
  .shelf.panel.today { gap: 32px; padding: 28px 36px; }
  .today-art { width: 200px; }
  .today-body h2 { font-size: 22px; }
  .today-say { font-size: 22px; padding: 8px 18px; }
  .today-desc { font-size: 14px; }
  .shelf.collection { margin-top: 28px; padding: 20px 28px; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  #products .shelf { opacity: 1; transform: none; transition: none; }
  .wave i, [data-play].on, .exp.swap .exp-noti, .exp.swap .exp-say, .new-badge, .cel-card, .cel-art { animation: none; }
  .confetti { display: none; }
}
