/* 二つ名メーカー：夜空の紫と金 */
:root {
  --accent: #5b3fc4; --accent-ink: #ffffff; --accent-soft: #e8e2fb;
  --ft-gold: #b8860b; --ft-paper: #f7f0de; --ft-stage1: #15142c; --ft-stage2: #33265e; --ft-stage-ink: #f4ecff;
  --serif: "Hiragino Mincho ProN", "Noto Serif CJK JP", "Noto Serif JP", "Yu Mincho", "YuMincho", serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --accent: #b9a4ff; --accent-ink: #15142c; --accent-soft: #2b2550; --ft-gold: #f3c03b; --ft-paper: #24223a; }
}
:root[data-theme="dark"] { --accent: #b9a4ff; --accent-ink: #15142c; --accent-soft: #2b2550; --ft-gold: #f3c03b; --ft-paper: #24223a; }

.mn-title { font-family: var(--serif); letter-spacing: .06em; }
.ft-emb svg, .ft-hero-emb svg { display: block; width: 100%; height: auto; }
.ft-emb-s { width: 72px; flex: none; }
.ft-friend { display: flex; gap: 12px; align-items: center; }

/* ヒーロー */
.ft-hero { position: relative; border-radius: var(--radius); overflow: hidden; padding: 18px 12px 16px; text-align: center;
  background: radial-gradient(circle at 50% 35%, var(--ft-stage2), var(--ft-stage1)); color: var(--ft-stage-ink); }
.ft-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 20% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 70% 20%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 85% 65%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 35% 80%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 55% 50%, #fff 50%, transparent 51%); opacity: .7; }
.ft-hero-emb { position: relative; width: 168px; margin: 0 auto; animation: ft-float 4s ease-in-out infinite; }
.ft-hero-scroll { position: relative; display: inline-block; margin-top: 8px; padding: 8px 18px; border-radius: 6px; background: #f7ecd2; color: #3a2a12; font-family: var(--serif); font-weight: 900; font-size: 18px; box-shadow: 0 4px 0 #8a6a3a; }
.ft-hero-scroll small { display: block; font-size: 11px; font-weight: 700; color: #8a6a3a; }
@keyframes ft-float { 50% { transform: translateY(-8px); } }
.ft-label { display: block; font-weight: 700; font-size: 14px; }
.ft-input { width: 100%; min-height: 48px; border: 2px solid var(--line); border-radius: 12px; padding: 8px 12px; font: inherit; background: var(--surface); color: var(--text); }
.ft-input:focus { border-color: var(--accent); outline: none; }
.ft-daily .mn-daily-num { font-size: 22px; }
.ft-dres { font-family: var(--serif); font-weight: 700; margin: 0 0 8px; }

/* 質問 */
.ft-q { font-family: var(--serif); font-size: 23px; text-align: center; margin: 8px 0 4px; }
.ft-choice { text-align: center; font-size: 17px; }
.ft-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ft-chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px dashed var(--line); color: var(--text-sub); }
.ft-chip.on { border-style: solid; border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 700; }

/* 封印演出 */
.ft-stage { min-height: 380px; border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; color: var(--ft-stage-ink);
  background: radial-gradient(circle at 50% 45%, var(--ft-stage2), var(--ft-stage1)); overflow: hidden; position: relative; }
.ft-seal { animation: ft-shake .5s ease-in-out infinite; }
.ft-stage.tier2 .ft-seal { animation-duration: .35s; }
.ft-stage.tier3 .ft-seal, .ft-stage.tier4 .ft-seal { animation-duration: .2s; filter: drop-shadow(0 0 18px #ffe7a0); }
.ft-stage-msg { font-family: var(--serif); font-weight: 700; font-size: 18px; margin: 0; }
.ft-skip { color: inherit; opacity: .6; }
@keyframes ft-shake { 25% { transform: rotate(-3deg) scale(1.02); } 75% { transform: rotate(3deg) scale(1.02); } }
.ft-burst { text-align: center; animation: ft-burst .7s cubic-bezier(.2, 1.5, .4, 1); }
.ft-burst-tier { font-size: 96px; font-weight: 900; line-height: 1; letter-spacing: .04em; }
.ft-burst-name { font-size: 18px; font-weight: 700; opacity: .85; }
.ft-stage.tier0 .ft-burst-tier { color: #d9dde5; }
.ft-stage.tier1 .ft-burst-tier { color: #8fbcff; text-shadow: 0 0 20px #5f9dff; }
.ft-stage.tier2 .ft-burst-tier { color: #dcc0ff; text-shadow: 0 0 24px #b57bff; }
.ft-stage.tier3 .ft-burst-tier { color: #ffe7a0; text-shadow: 0 0 30px #f3c03b; }
.ft-stage.tier4 { background: radial-gradient(circle at 50% 45%, #5a2a6e, #15142c); }
.ft-stage.tier4 .ft-burst-tier { background: linear-gradient(90deg, #ff6fb1, #ffd76a, #7fe0ff, #b98bff); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 84px; }
.ft-stage.open::after { content: ""; position: absolute; inset: 0; background: #fff; animation: ft-flash .6s ease-out forwards; pointer-events: none; }
@keyframes ft-flash { from { opacity: .9; } to { opacity: 0; } }
@keyframes ft-burst { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }

/* 結果 */
.ft-result { border-radius: var(--radius); padding: 18px 16px 16px; text-align: center; color: var(--ft-stage-ink);
  background: radial-gradient(circle at 50% 22%, var(--ft-stage2), var(--ft-stage1)); border: 3px solid #b9bec9; position: relative; overflow: hidden; }
.ft-result.tier1 { border-color: #5f9dff; }
.ft-result.tier2 { border-color: #b57bff; }
.ft-result.tier3 { border-color: #f3c03b; box-shadow: 0 0 0 3px rgba(243, 192, 59, .25); }
.ft-result.tier4 { border-color: #ff6fb1; box-shadow: 0 0 0 3px rgba(255, 111, 177, .25); }
.ft-res-kicker { font-size: 13px; letter-spacing: .1em; font-weight: 700; color: #ffe7a0; margin: 0 0 4px; }
.ft-emb-res { width: 190px; margin: 0 auto; }
.ft-emb-res .ft-rays { transform-origin: 120px 130px; animation: ft-spin 24s linear infinite; }
@keyframes ft-spin { to { transform: rotate(360deg); } }
.ft-tierline { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 6px 0 4px; }
.ft-tierline .mn-small { color: #d8d0f0; }
.ft-tierbadge { font-weight: 900; padding: 2px 12px; border-radius: 8px; color: #111; background: #b9bec9; }
.ft-tierbadge.t1 { background: #5f9dff; } .ft-tierbadge.t2 { background: #b57bff; } .ft-tierbadge.t3 { background: #f3c03b; }
.ft-tierbadge.t4 { background: linear-gradient(90deg, #ff6fb1, #ffd76a, #7fe0ff); }
.ft-name { font-family: var(--serif); font-weight: 900; font-size: clamp(26px, 7.6vw, 38px); line-height: 1.3; margin: 6px 0 2px; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.ft-ruby { font-size: 12px; letter-spacing: .08em; color: #cfc4f2; margin: 0 0 8px; }
.ft-comment { font-size: 14px; color: #e6defa; margin: 0 0 10px; }
.ft-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ft-stats > div { background: rgba(255, 255, 255, .08); border-radius: 10px; padding: 8px 4px; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.ft-stats .mn-tiny { color: #cfc4f2; font-size: 11px; }
.ft-stats b { font-size: 18px; color: #ffe7a0; }
.ft-reroll { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; }
.ft-reroll .mn-btn { font-size: 14px; min-height: 44px; }

.ft-bar { display: grid; grid-template-columns: 44px 1fr 52px; gap: 8px; align-items: center; font-size: 14px; margin: 4px 0; }
.ft-bar-k { font-weight: 800; }
.ft-bar-g { height: 12px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.ft-bar-g i { display: block; height: 100%; background: var(--text-sub); border-radius: 99px; }
.ft-bar.me .ft-bar-g i { background: var(--accent); }
.ft-bar.me .ft-bar-k { color: var(--accent); }
.ft-bar-v { text-align: right; font-variant-numeric: tabular-nums; }

/* 図鑑 */
.ft-zk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(4, auto); gap: 6px; }
.ft-zk-i { border: 1px dashed var(--line); border-radius: 10px; padding: 6px 4px; text-align: center; font-size: 13px; font-weight: 700; color: var(--text-sub); line-height: 1.3; }
.ft-zk-i small { display: block; font-size: 10px; font-weight: 700; }
.ft-zk-i.on { border-style: solid; border-color: var(--accent); color: var(--text); background: var(--accent-soft); font-family: var(--serif); }
.ft-badges { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ft-badges li { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; display: flex; flex-direction: column; color: var(--text-sub); }
.ft-badges li.on { border-color: var(--ft-gold); color: var(--text); }
.ft-badges li.on b::before { content: "★ "; color: var(--ft-gold); }
