/*
 * ホーム画面（v0.6）。モバイルゲームらしい「太いフチ・立体ボタン・オレンジ×濃紺」。
 * 文字は白＋こげ茶のフチ。ボタンは下に影を付けて押すと沈む。
 */
:root {
  --ink: #2b1a0e;          /* フチ・影の色 */
  --orange: #ff9a1f;
  --orange-hi: #ffc24a;
  --slate: #3a4258;
  --slate-dk: #262c3c;
  --navy: #1d2232;
  --yellow: #ffd23f;
  --green: #36d06b;
  --font: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic UI", "Segoe UI", sans-serif;
}

#home {
  position: fixed; inset: 0; z-index: 5;
  display: flex; justify-content: center;
  background: #0b0d14;
  font-family: var(--font); font-weight: 800; color: #fff;
  -webkit-user-select: none; user-select: none;
}
#home[hidden] { display: none; }
.h-app {
  position: relative; width: 100%; max-width: 480px; height: 100%;
  display: flex; flex-direction: column; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255, 230, 150, 0.55), rgba(255, 230, 150, 0) 60%),
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.035) 0 14px, rgba(0, 0, 0, 0) 14px 28px),
    linear-gradient(180deg, #ffb13b, var(--orange) 55%, #f07d12);
}

/* 白文字＋こげ茶のフチ */
.outline, .stage-title, .banner span, .gear-title, .h-cur span, .h-lv span, .start-btn .big, .chunky, .it-lv, .it-rar,
.modal-title, .h-tab .lbl, .stage-clear, .stage-boss, .gacha-title {
  color: #fff;
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  letter-spacing: 0.02em;
}

/* ---------- 上のバー ---------- */
.h-top {
  display: flex; align-items: center; gap: 6px;
  padding: max(8px, env(safe-area-inset-top)) 8px 8px;
  background: linear-gradient(180deg, rgba(20, 24, 36, 0.92), rgba(20, 24, 36, 0.75));
  border-bottom: 3px solid var(--ink);
}
.h-lv {
  width: 34px; height: 38px; flex: none; display: grid; place-items: center;
  background: linear-gradient(180deg, #ffb13b, #e86a00);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
  filter: drop-shadow(0 2px 0 var(--ink));
}
.h-lv span { font-size: 17px; -webkit-text-stroke-width: 4px; margin-top: -4px; }
.h-xp {
  flex: 1; min-width: 40px; height: 14px; border: 3px solid var(--ink); border-radius: 4px;
  background: #11151f; overflow: hidden;
}
.h-xp i { display: block; height: 100%; background: linear-gradient(180deg, #8bf06c, #2fb34a); }
.h-cur {
  position: relative; display: flex; align-items: center; gap: 2px; flex: none;
  height: 26px; padding: 0 8px 0 2px; background: #11151f; border: 2px solid #000; border-radius: 13px;
}
.h-cur b { width: 22px; height: 22px; margin-left: -8px; display: grid; }
.h-cur b svg { width: 100%; height: 100%; }
.h-cur span { font-size: 14px; -webkit-text-stroke-width: 3px; }
.h-cur small { position: absolute; left: 22px; bottom: -13px; font-size: 9px; color: #cfd6e4; font-weight: 700; }

/* ---------- 中身 ---------- */
.h-content { flex: 1; overflow-y: auto; overflow-x: hidden; touch-action: pan-y; position: relative; }
.h-content::-webkit-scrollbar { width: 0; }

/* ---------- 下のタブバー ---------- */
.h-tabs {
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  padding: 0 4px max(4px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #343c52, var(--navy));
  border-top: 3px solid var(--ink);
  height: 64px;
}
.h-tab {
  position: relative; height: 56px; margin: 0 2px; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #4a5470, #353d55); border: 3px solid var(--ink); border-radius: 8px 8px 0 0;
  cursor: pointer; touch-action: manipulation; font-family: inherit;
}
.h-tab .ico { width: 34px; height: 34px; display: block; }
.h-tab .ico svg { width: 100%; height: 100%; }
.h-tab.on {
  height: 76px; margin-top: -20px;
  background: linear-gradient(180deg, #ffe066, #ffb000);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.18);
}
.h-tab.on .ico { width: 46px; height: 46px; transform: translateY(-4px) rotate(-6deg); }
.h-tab .lbl { font-size: 13px; -webkit-text-stroke-width: 4px; margin-top: -6px; }

.dot-badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 4px; box-sizing: border-box;
  display: grid; place-items: center; font-size: 12px; color: #fff;
  background: #ff3b30; border: 2px solid var(--ink); border-radius: 10px;
}

/* ---------- 立体ボタン ---------- */
.chunky {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 44px; padding: 6px 16px; font: inherit; font-size: 17px;
  border: 3px solid var(--ink); border-radius: 10px; cursor: pointer; touch-action: manipulation;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.2), inset 0 3px 0 rgba(255, 255, 255, 0.35), 0 4px 0 var(--ink);
  transition: transform 0.05s;
}
.chunky:active { transform: translateY(3px); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2), 0 1px 0 var(--ink); }
.chunky.yellow { background: linear-gradient(180deg, #ffe35a, #ffb800); }
.chunky.blue { background: linear-gradient(180deg, #5ec8ff, #1f86e0); }
.chunky.green { background: linear-gradient(180deg, #7cf07a, #23b04c); }
.chunky.red { background: linear-gradient(180deg, #ff7a6b, #e03a2a); }
.chunky.purple { background: linear-gradient(180deg, #c78bff, #7b3fe4); }
.chunky.sm { min-height: 36px; padding: 4px 10px; font-size: 14px; -webkit-text-stroke-width: 4px; }
.chunky.wide { width: 100%; margin-top: 10px; }
.chunky.off { filter: grayscale(0.7) brightness(0.85); }
.price { display: inline-flex; align-items: center; gap: 2px; }
.price b { width: 20px; height: 20px; display: grid; }
.price b svg { width: 100%; height: 100%; }
.btn-row { display: flex; gap: 10px; margin-top: 12px; }
.btn-row > * { flex: 1; }

/* ---------- 戦闘タブ ---------- */
.p-battle { position: relative; min-height: 100%; display: flex; flex-direction: column; align-items: center; padding: 14px 12px 18px; box-sizing: border-box; }
.side-btns { position: absolute; top: 12px; display: flex; flex-direction: column; gap: 12px; z-index: 2; }
.side-btns.left { left: 10px; }
.side-btns.right { right: 10px; }
.round-btn {
  position: relative; width: 46px; height: 46px; padding: 6px; border-radius: 10px; cursor: pointer;
  background: linear-gradient(180deg, #4a5470, #2c3348); border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink);
}
.round-btn svg, .round-btn span svg { width: 100%; height: 100%; display: block; }
.stage-title { margin: 44px 0 2px; font-size: 26px; text-align: center; -webkit-text-stroke-width: 7px; }
.stage-best { font-size: 14px; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.stage-row { display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 14px; }
.arrow-btn {
  width: 40px; height: 64px; flex: none; padding: 8px; cursor: pointer;
  background: rgba(43, 26, 14, 0.35); border: 3px solid var(--ink); border-radius: 10px;
}
.arrow-btn svg { width: 100%; height: 100%; }
.arrow-btn:disabled { opacity: 0.3; cursor: default; }
.stage-card {
  position: relative; flex: 1; aspect-ratio: 1 / 1.05; border: 4px solid var(--ink); border-radius: 18px; overflow: hidden;
  box-shadow: 0 6px 0 var(--ink), 0 14px 30px rgba(80, 30, 0, 0.45);
  background: linear-gradient(160deg, #3d4a63, #151a26);
}
.stage-art { position: absolute; inset: 0; background-size: cover; background-position: center 30%; }
.stage-card::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.55); pointer-events: none; }
.stage-clear, .stage-boss {
  position: absolute; z-index: 1; padding: 2px 10px; font-size: 16px; border: 3px solid var(--ink); border-radius: 8px;
}
.stage-clear { top: 10px; right: 10px; background: var(--green); transform: rotate(8deg); }
.stage-boss { top: 10px; left: 10px; background: #ff3b30; }
.chest-btn {
  position: relative; margin-top: 16px; background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; font-family: inherit;
}
.chest-btn .ico { width: 54px; height: 54px; display: block; filter: drop-shadow(0 3px 0 var(--ink)); }
.chest-btn .ico svg { width: 100%; height: 100%; }
.chest-btn .cap { font-size: 12px; color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.chest-btn .dot-badge { top: -4px; right: 2px; }
.start-btn {
  margin-top: 14px; width: 74%; max-width: 280px; padding: 8px 0 6px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; font-family: inherit;
  background: linear-gradient(180deg, #ffe85e, #ffb300); border: 4px solid var(--ink); border-radius: 14px;
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, 0.18), inset 0 4px 0 rgba(255, 255, 255, 0.45), 0 6px 0 var(--ink);
  touch-action: manipulation;
}
.start-btn:active { transform: translateY(4px); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18), 0 2px 0 var(--ink); }
.start-btn .big { font-size: 30px; -webkit-text-stroke-width: 7px; line-height: 1.1; }
.start-btn .cost { display: inline-flex; align-items: center; font-size: 16px; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.start-btn .cost b { width: 20px; height: 20px; display: grid; }
.start-btn .cost b svg { width: 100%; height: 100%; }
.stage-sub { margin-top: 12px; font-size: 12px; color: #5a2f00; font-weight: 800; }

/* ---------- 一覧系（強化・記録・ショップ） ---------- */
.p-list { padding: 12px 12px 20px; display: flex; flex-direction: column; gap: 8px; }
.banner {
  align-self: center; margin: 4px 0; padding: 4px 28px;
  background: linear-gradient(180deg, #5b3bd6, #3b22a0); border: 3px solid var(--ink); border-radius: 8px;
  box-shadow: 0 4px 0 var(--ink); transform: skewX(-8deg);
}
.banner span { display: inline-block; font-size: 22px; transform: skewX(8deg); -webkit-text-stroke-width: 6px; }
.banner.small span { font-size: 17px; }
.hint { font-size: 12px; font-weight: 700; color: #5a2f00; text-align: center; line-height: 1.5; }
.hint.dark { color: #b8c2d4; text-align: left; }
.hint.warn { color: #ff8a65; }
.panel { background: var(--slate-dk); border: 3px solid var(--ink); border-radius: 12px; padding: 10px 12px; box-shadow: 0 4px 0 var(--ink); }
.row-card {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  background: linear-gradient(180deg, var(--slate), var(--slate-dk)); border: 3px solid var(--ink); border-radius: 12px;
  box-shadow: 0 4px 0 var(--ink);
}
.row-ico {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; font-size: 24px; color: #fff;
  background: radial-gradient(circle at 40% 35%, #ffcf5a, #e07a00); border: 3px solid var(--ink); border-radius: 10px;
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
}
.row-ico.svg { padding: 6px; box-sizing: border-box; background: #11151f; }
.row-ico.svg svg { width: 100%; height: 100%; }
.row-text { flex: 1; min-width: 0; }
.row-text b { font-size: 16px; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.row-text .lv { margin-left: 6px; font-size: 12px; color: var(--yellow); }
.row-text small { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; color: #b8c2d4; }
table.stats, table.hist { width: 100%; border-collapse: collapse; font-size: 14px; }
table.stats td { padding: 7px 2px; border-bottom: 2px solid #1a1f2c; }
table.stats td:last-child { text-align: right; color: var(--yellow); }
table.hist { font-size: 12px; }
table.hist td { padding: 6px 2px; border-bottom: 2px solid #1a1f2c; white-space: nowrap; }
table.hist td.clear { color: var(--yellow); }
table.hist td.dead { color: #ff8a80; }

/* ---------- 装備タブ ---------- */
.p-gear { display: flex; flex-direction: column; min-height: 100%; }
.gear-top {
  position: relative; display: grid; grid-template-columns: 76px 1fr 76px; gap: 6px; padding: 12px 10px 46px;
  background:
    repeating-conic-gradient(from 0deg at 50% 45%, rgba(255, 255, 255, 0.10) 0 10deg, rgba(255, 255, 255, 0) 10deg 20deg),
    radial-gradient(ellipse at 50% 45%, #ffd36b, #ff8a12 70%);
  border-bottom: 3px solid var(--ink);
}
.gear-col { display: flex; flex-direction: column; gap: 10px; }
.hero { position: relative; display: grid; place-items: end center; min-height: 230px; }
.hero-glow { position: absolute; bottom: 4px; width: 70%; height: 22px; border-radius: 50%; background: rgba(60, 20, 0, 0.35); }
.hero img { position: relative; width: 100%; max-width: 220px; filter: drop-shadow(0 6px 6px rgba(60, 20, 0, 0.5)); }
.gear-stats {
  position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 22px;
}
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 20px; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
.st i { font-style: normal; font-size: 12px; padding: 1px 6px; border: 2px solid var(--ink); border-radius: 6px; -webkit-text-stroke: 3px var(--ink); }
.st.atk i { background: #5a8dee; }
.st.hp i { background: #ff4d6d; }
.gear-bar {
  display: flex; align-items: center; justify-content: space-between; padding: 8px 10px;
  background: linear-gradient(180deg, #2b3245, #20263a); border-bottom: 3px solid var(--ink);
}
.gear-title { font-size: 20px; -webkit-text-stroke-width: 5px; }
.bag {
  flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-content: start; padding: 10px;
  background: linear-gradient(180deg, #4b5470, #3a4258);
}

/* 装備のタイル（レア度の色） */
.it-tile {
  position: relative; aspect-ratio: 1; padding: 0; cursor: pointer; font-family: inherit;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rc, #9aa4b2) 70%, #fff), var(--rc, #9aa4b2) 75%);
  border: 3px solid var(--ink); border-radius: 10px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35), 0 3px 0 var(--ink);
}
.it-tile.r3 { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5), 0 3px 0 var(--ink), 0 0 12px #c08bff; }
.it-tile.r4 { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6), 0 3px 0 var(--ink), 0 0 16px #ffd23f; }
.it-tile.empty { background: rgba(43, 26, 14, 0.35); box-shadow: none; display: grid; place-items: center; cursor: default; }
.it-tile.empty .svg { width: 60%; }
.it-tile.empty .svg svg { width: 100%; }
.it-ico { position: absolute; inset: 12% 12% 22%; display: grid; place-items: center; }
.it-ico img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35)); }
.it-ico .svg { width: 100%; height: 100%; display: block; }
.it-ico .svg svg { width: 100%; height: 100%; }
.it-lv { position: absolute; left: 0; right: 0; bottom: 2px; font-size: 12px; text-align: center; -webkit-text-stroke-width: 3px; }
.it-rar { position: absolute; top: 1px; left: 4px; font-size: 11px; -webkit-text-stroke-width: 3px; }
.it-up { position: absolute; top: -6px; right: -4px; font-size: 16px; color: #39ff6a; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }

/* ---------- ショップ ---------- */
.gacha-box {
  padding: 12px; text-align: center;
  background: linear-gradient(180deg, #6b3fe0, #3b1f99); border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: 0 5px 0 var(--ink);
}
.gacha-title { font-size: 24px; -webkit-text-stroke-width: 6px; }
.gacha-art {
  margin: 8px auto; width: 150px; height: 120px; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(255, 230, 120, 0.7), rgba(255, 230, 120, 0) 65%);
}
.chest-big { width: 110px; height: 110px; display: block; filter: drop-shadow(0 5px 0 var(--ink)); animation: bob 1.6s ease-in-out infinite; }
.chest-big svg { width: 100%; height: 100%; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-3deg); } }
.gacha-box .hint { color: #e6dcff; }
.link { margin-top: 8px; background: none; border: 0; color: #e6dcff; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.gacha-result { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.gacha-result.rainbow { padding: 6px; border-radius: 12px; background: linear-gradient(90deg, #ff5f6d55, #ffc37155, #7cf07a55, #5ec8ff55, #c78bff55); }
.gr-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.gr-cell small { font-size: 9px; color: #b8c2d4; text-align: center; line-height: 1.2; }
.gr-cell .it-tile { width: 100%; }
.reveal { animation: flip 0.45s both; }
@keyframes flip { from { transform: rotateY(90deg) scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- ダイアログ ---------- */
.modal-back { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(10, 6, 2, 0.6); }
.modal {
  position: relative; width: 100%; max-width: 420px; max-height: 88%; display: flex; flex-direction: column;
  background: var(--slate-dk); border: 4px solid var(--ink); border-radius: 16px; box-shadow: 0 6px 0 var(--ink);
  animation: pop 0.18s ease-out;
}
@keyframes pop { from { transform: scale(0.85); opacity: 0; } }
.modal-title {
  padding: 10px 44px; text-align: center; font-size: 20px; -webkit-text-stroke-width: 6px;
  background: linear-gradient(180deg, #ffb13b, #f07d12); border-bottom: 3px solid var(--ink); border-radius: 12px 12px 0 0;
}
.modal-x {
  position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; font: inherit; font-size: 20px; color: #fff; cursor: pointer;
  background: #e03a2a; border: 3px solid var(--ink); border-radius: 8px;
}
.modal-body { padding: 12px 14px 16px; overflow-y: auto; touch-action: pan-y; font-weight: 700; }
.label { margin: 14px 0 6px; font-size: 13px; color: var(--yellow); }
.input {
  width: 100%; box-sizing: border-box; padding: 9px 10px; font: inherit; font-size: 15px; color: #fff;
  background: #11151f; border: 3px solid var(--ink); border-radius: 8px; -webkit-user-select: text; user-select: text;
}
.input.io { font-size: 11px; font-family: Consolas, monospace; font-weight: 400; resize: vertical; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg-btn { padding: 8px 2px; font: inherit; font-size: 14px; color: #cfd6e4; cursor: pointer; background: #11151f; border: 3px solid var(--ink); border-radius: 8px; }
.seg-btn.on { color: #2b1a0e; background: linear-gradient(180deg, #ffe35a, #ffb800); }
.toggle { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 2px solid #1a1f2c; font-size: 14px; cursor: pointer; }
.toggle input { width: 22px; height: 22px; accent-color: #ffb800; flex: none; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--ink); cursor: pointer; }
.swatch.on { outline: 3px solid #fff; }
.ver { margin-top: 10px; text-align: right; font-size: 11px; color: #6b7590; }
.news b { display: block; margin-top: 8px; color: var(--yellow); }
.news p { margin: 4px 0; font-size: 13px; line-height: 1.6; color: #dfe5ef; }

.detail { display: flex; gap: 14px; align-items: center; }
.detail-ico { position: relative; width: 96px; height: 96px; flex: none; border: 3px solid var(--ink); border-radius: 12px;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rc) 70%, #fff), var(--rc) 75%); }
.detail-ico .it-ico { inset: 10%; }
.detail-text { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.rar-pill { display: inline-block; align-self: flex-start; padding: 1px 10px; font-size: 12px; color: #fff; border: 2px solid var(--ink); border-radius: 10px; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.big-stat { font-size: 16px; color: var(--yellow); }

.h-toast {
  position: fixed; left: 50%; top: 18%; z-index: 50; transform: translateX(-50%);
  max-width: 86%; padding: 10px 16px; text-align: center;
  font-family: var(--font); font-weight: 800; font-size: 15px; color: #fff;
  background: rgba(20, 24, 36, 0.94); border: 3px solid var(--ink); border-radius: 12px;
  animation: pop 0.18s ease-out; transition: opacity 0.4s;
}
.h-toast.out { opacity: 0; }

/* ステージの絵が無いときの仮ジオラマ */
.stage-dio {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 75%, rgba(120, 160, 220, 0.35), rgba(0, 0, 0, 0) 55%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 2px, rgba(0, 0, 0, 0) 2px 60px),
    linear-gradient(180deg, #1b2233 0%, #2c3447 45%, #3b3f48 46%, #262a31 100%);
}
.stage-dio.boss { background:
    radial-gradient(ellipse at 50% 60%, rgba(255, 60, 40, 0.45), rgba(0, 0, 0, 0) 60%),
    linear-gradient(180deg, #2a0f12 0%, #3a1a1d 45%, #3b2a2a 46%, #1f1515 100%); }
.stage-dio img { position: absolute; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.6)); }
.dio-hero { left: 10%; bottom: 6%; width: 46%; }
.dio-foe.f1 { right: 4%; bottom: 18%; width: 46%; }
.dio-foe.f2 { right: 34%; bottom: 34%; width: 28%; opacity: 0.85; filter: brightness(0.7) drop-shadow(0 6px 4px rgba(0, 0, 0, 0.6)); }

/* ---------- 3D キャラ（v0.7） ---------- */
.hero3d { min-height: 250px; }
.hero3d canvas.char3d { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.char-btn { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 2; }
.char-preview {
  position: relative; height: 230px; border: 3px solid var(--ink); border-radius: 12px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, #ffd36b, #ff8a12 75%);
}
.char-preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.seg.five { grid-template-columns: repeat(5, 1fr); }
.seg.five .seg-btn { font-size: 12px; padding: 8px 0; }
.seg.three { grid-template-columns: repeat(3, 1fr); margin-bottom: 4px; }
.seg.three .seg-btn { font-size: 13px; }

/* ---------- ステージのギミック・ボスの技（v1.1） ---------- */
.stage-info { width: 100%; margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.si-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.si-lbl { padding: 2px 8px; font-size: 11px; color: #fff; border: 2px solid var(--ink); border-radius: 6px; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.si-lbl.g { background: #2f80ed; }
.si-lbl.e { background: #36b04c; }
.si-lbl.b { background: #e03a2a; }
.si-chip { padding: 2px 8px; font-size: 11px; color: #2b1a0e; background: rgba(255, 255, 255, 0.75); border: 2px solid var(--ink); border-radius: 10px; }
.p-battle .stage-title { font-size: 22px; }
