/* =====================================================
   AI適性ラボ — style.css
   世界観: 深夜の電脳研究所（ダークネイビー×ネオン）
   スマホ1カラム原則 / 画像なしでも完全成立
   ===================================================== */

:root {
  --bg: #070b16;
  --bg2: #0d1428;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-line: rgba(140, 180, 255, 0.16);
  --text: #eaf0ff;
  --text-dim: #9aa7c7;
  --cyan: #34e5ff;
  --magenta: #ff4fd8;
  --gold: #ffd166;
  --violet: #b28dff;
  --green: #6ef3c5;
  --red: #ff6b6b;
  --radius: 16px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* hidden属性は何があっても勝つ（ボクトレで確立したガード） */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background:
    radial-gradient(1000px 500px at 85% -5%, rgba(52, 229, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at 10% 105%, rgba(255, 79, 216, 0.09), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  line-height: 1.7;
}

#lab {
  width: min(430px, 100%);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  background:
    linear-gradient(rgba(140, 180, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 180, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  border-left: 1px solid rgba(140, 180, 255, 0.08);
  border-right: 1px solid rgba(140, 180, 255, 0.08);
}

/* ---------- 起動演出 ---------- */
#boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #04060d;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  transition: opacity 0.4s ease;
}
#boot.out { opacity: 0; pointer-events: none; }
#boot-lines {
  font-family: ui-monospace, "Consolas", monospace;
  font-size: 0.95rem;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(52, 229, 255, 0.6);
  min-height: 9em;
  width: 260px;
}
.boot-skip { color: var(--text-dim); font-size: 0.75rem; letter-spacing: 0.15em; }

/* ---------- ヘッダー ---------- */
#app-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--panel-line);
  background: linear-gradient(180deg, rgba(13, 20, 40, 0.9), rgba(13, 20, 40, 0.4));
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  padding: 0;
}
#brand-icon { width: 38px; height: 38px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; }
.brand-logo {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-tag { font-size: 0.66rem; color: var(--text-dim); letter-spacing: 0.05em; }

/* ---------- 画面共通 ---------- */
#main { flex: 1; padding: 18px 16px 48px; }

.screen { display: none; }
.screen.active { display: block; animation: fadeUp 0.35s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.screen-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 6px; }
.screen-sub { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 16px; }

button { font-family: inherit; }

.btn-primary, .btn-secondary, .btn-ghost {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, opacity 0.2s;
  margin-top: 10px;
}
.btn-primary {
  background: linear-gradient(90deg, #0ea5c9, #34e5ff);
  color: #04121a;
  border: none;
  box-shadow: 0 4px 22px rgba(52, 229, 255, 0.35);
}
.btn-secondary {
  background: rgba(255, 209, 102, 0.12);
  color: var(--gold);
  border: 1px solid rgba(255, 209, 102, 0.45);
}
.btn-ghost {
  background: none;
  color: var(--text-dim);
  border: 1px solid var(--panel-line);
}
.btn-ghost.danger { color: #ff9d9d; border-color: rgba(255, 107, 107, 0.35); }
.btn-primary:active, .btn-secondary:active, .btn-ghost:active { transform: scale(0.97); }

.share-row { display: flex; gap: 10px; }
.share-row > * { flex: 1; }

/* ---------- ホーム ---------- */
#home-hero {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--panel-line);
  margin-bottom: 16px;
  position: relative;
  background:
    radial-gradient(340px 170px at 80% 20%, rgba(52, 229, 255, 0.18), transparent 70%),
    radial-gradient(300px 160px at 15% 90%, rgba(255, 79, 216, 0.15), transparent 70%),
    linear-gradient(160deg, #101a38, #0a0f22);
}
#hero-img { width: 100%; display: block; aspect-ratio: 3 / 2; object-fit: cover; }
#hero-copy { padding: 14px 16px; }
#hero-img:not([hidden]) + #hero-copy {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(4, 8, 18, 0.92) 55%);
  padding-top: 40px;
}
.hero-line1 { font-weight: 800; font-size: 1.02rem; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); }
.hero-line2 { color: var(--text-dim); font-size: 0.8rem; }

#menu-list { display: flex; flex-direction: column; gap: 12px; }
.menu-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 15px 16px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-line);
  color: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.menu-card:hover { border-color: rgba(52, 229, 255, 0.5); box-shadow: 0 0 24px rgba(52, 229, 255, 0.12); }
.menu-card:active { transform: scale(0.98); }
.menu-emoji { font-size: 1.9rem; filter: drop-shadow(0 0 10px rgba(52, 229, 255, 0.35)); }
.menu-body { flex: 1; display: flex; flex-direction: column; }
.menu-title { font-weight: 800; font-size: 1rem; }
.menu-title i {
  font-style: normal;
  font-size: 0.6rem;
  background: var(--magenta);
  color: #fff;
  border-radius: 8px;
  padding: 2px 7px;
  margin-left: 6px;
  vertical-align: 2px;
  animation: blink 1.6s ease infinite;
}
@keyframes blink { 50% { opacity: 0.45; } }
.menu-desc { font-size: 0.76rem; color: var(--text-dim); }
.menu-desc b { color: var(--cyan); font-weight: 700; }
.menu-arrow { color: var(--cyan); font-size: 0.8rem; }

#home-note { margin-top: 20px; font-size: 0.68rem; color: #5f6b8c; line-height: 1.7; }

/* ---------- 進捗バー / 質問カード ---------- */
.progress {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 10px;
}
.progress > div {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 12px rgba(52, 229, 255, 0.6);
  transition: width 0.35s ease;
}
#diag-qnum, #quiz-qnum { font-size: 0.78rem; color: var(--text-dim); letter-spacing: 0.08em; margin-bottom: 10px; }

#diag-card, #quiz-card {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 18px 16px;
}
#diag-card.pop, #quiz-card.pop { animation: fadeUp 0.3s ease both; }
#diag-q, #quiz-q { font-size: 1.02rem; font-weight: 800; margin-bottom: 16px; line-height: 1.75; }

#diag-choices, #quiz-choices { display: flex; flex-direction: column; gap: 10px; }
.choice {
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(140, 180, 255, 0.22);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.6;
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.15s, background 0.15s;
}
.choice:hover { border-color: var(--cyan); background: rgba(52, 229, 255, 0.08); }
.choice:active { transform: scale(0.98); }
.choice:disabled { cursor: default; opacity: 0.75; }
.choice.right {
  border-color: var(--green);
  background: rgba(110, 243, 197, 0.13);
  color: #d8ffee;
  opacity: 1;
}
.choice.wrong {
  border-color: var(--red);
  background: rgba(255, 107, 107, 0.13);
  color: #ffd9d9;
  opacity: 1;
}

/* ---------- 診断結果: カード開封 ---------- */
#reveal-stage { text-align: center; }
#reveal-label { color: var(--text-dim); font-size: 0.85rem; letter-spacing: 0.1em; margin: 6px 0 16px; }

#result-card-wrap {
  perspective: 1200px;
  width: min(300px, 82%);
  margin: 0 auto 18px;
  position: relative;
}
#result-card-wrap::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 26px;
  filter: blur(22px);
  z-index: -1;
  opacity: 0.75;
}
.aura-r::before { background: rgba(52, 229, 255, 0.35); }
.aura-sr::before { background: rgba(255, 209, 102, 0.4); }
.aura-ssr::before {
  background: conic-gradient(#34e5ff, #b28dff, #ff4fd8, #ffd166, #6ef3c5, #34e5ff);
  animation: spinAura 4s linear infinite;
  opacity: 0.85;
}
@keyframes spinAura { to { transform: rotate(1turn); } }

#result-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4.2;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
#result-card.flipped { transform: rotateY(180deg); }
#result-card-back, #result-card-face {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#result-card-back {
  background:
    radial-gradient(200px 200px at 50% 40%, rgba(52, 229, 255, 0.2), transparent 70%),
    linear-gradient(160deg, #131c3c, #0a0f22);
  border: 1px solid rgba(140, 180, 255, 0.35);
}
#result-card-back span {
  font-size: 4rem;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(52, 229, 255, 0.8);
  animation: pulse 1.1s ease infinite;
}
@keyframes pulse { 50% { opacity: 0.4; transform: scale(0.92); } }
#result-card-face {
  transform: rotateY(180deg);
  background: linear-gradient(165deg, #182352, #0c1229);
  border: 1px solid rgba(178, 141, 255, 0.5);
  gap: 4px;
  text-align: center;
}
#result-rarity { font-weight: 800; letter-spacing: 0.25em; font-size: 0.8rem; }
.rarity-ssr {
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rarity-sr { color: var(--gold); }
.rarity-r { color: var(--cyan); }

#result-visual, #tm-visual {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 8px auto;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.16), transparent 55%),
    radial-gradient(circle, var(--type-color, #34e5ff) 0%, transparent 72%);
}
#result-visual img, #tm-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
#result-visual span, #tm-visual span { font-size: 3.4rem; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5)); }
#result-visual.has-img span, #tm-visual.has-img span { display: none; }

#result-en { font-size: 0.66rem; letter-spacing: 0.3em; color: var(--text-dim); }
#result-name { font-size: 1.3rem; font-weight: 800; line-height: 1.4; }
#result-catch { font-size: 0.82rem; color: var(--cyan); }

/* ---------- 診断結果: 詳細 ---------- */
#result-detail { animation: fadeUp 0.5s ease both; }
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 12px;
}
.panel-title { font-size: 0.8rem; font-weight: 800; color: var(--cyan); letter-spacing: 0.08em; margin-bottom: 8px; }
.panel p { font-size: 0.9rem; }
.panel ul { list-style: none; }
.panel li {
  font-size: 0.9rem;
  padding: 5px 0 5px 1.4em;
  position: relative;
}
.panel li::before {
  content: "▸";
  position: absolute;
  left: 0.2em;
  color: var(--magenta);
}
.flavor {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--cyan);
  background: rgba(52, 229, 255, 0.07);
  border-radius: 0 10px 10px 0;
  font-size: 0.86rem !important;
  color: #c9f4ff;
}

.axis-row { display: flex; align-items: center; gap: 8px; margin: 7px 0; }
.axis-name { width: 7.2em; font-size: 0.78rem; color: var(--text-dim); flex-shrink: 0; }
.axis-bar {
  flex: 1;
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.axis-bar i {
  display: block;
  height: 100%;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.25) inset;
  animation: growBar 0.9s ease both;
}
@keyframes growBar { from { width: 0 !important; } }
.axis-val { width: 1.6em; text-align: right; font-size: 0.8rem; font-weight: 700; color: var(--text); }

/* ---------- CTA ---------- */
.cta {
  display: block;
  margin-top: 14px;
  padding: 15px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  background: linear-gradient(90deg, rgba(255, 209, 102, 0.16), rgba(255, 79, 216, 0.14));
  border: 1px solid rgba(255, 209, 102, 0.5);
  box-shadow: 0 4px 24px rgba(255, 209, 102, 0.12);
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.cta:active { transform: scale(0.98); }
.cta-main { display: block; font-weight: 800; color: var(--gold); font-size: 0.95rem; }
.cta-sub { display: block; font-size: 0.76rem; color: var(--text-dim); margin-top: 3px; }

/* ---------- クイズ ---------- */
#quiz-levels { display: flex; flex-direction: column; gap: 12px; }
.level-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 15px 16px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-line);
  color: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.2s ease;
}
.level-card:hover { border-color: var(--gold); }
.level-card:active { transform: scale(0.98); }
.level-emoji { font-size: 1.9rem; }
.level-body { flex: 1; display: flex; flex-direction: column; }
.level-name { font-weight: 800; }
.level-desc { font-size: 0.76rem; color: var(--text-dim); }
.level-best { font-size: 0.72rem; color: var(--gold); margin-top: 2px; }

#quiz-feedback {
  margin-top: 16px;
  border-top: 1px dashed var(--panel-line);
  padding-top: 14px;
  animation: fadeUp 0.3s ease both;
}
#quiz-judge { font-weight: 800; font-size: 1.02rem; }
.judge-ok { color: var(--green); }
.judge-ng { color: var(--red); }
#quiz-exp { font-size: 0.86rem; color: var(--text-dim); margin-top: 8px; line-height: 1.75; }

#quiz-result-card {
  text-align: center;
  background:
    radial-gradient(280px 160px at 50% 0%, rgba(52, 229, 255, 0.14), transparent 70%),
    var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 22px 16px;
}
#qr-level { font-size: 0.78rem; color: var(--text-dim); letter-spacing: 0.1em; }
.qr-label { font-size: 0.85rem; color: var(--text-dim); margin-top: 10px; }
#qr-dev {
  font-size: 4.6rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(180deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(52, 229, 255, 0.35);
}
#qr-rank { font-size: 1.15rem; font-weight: 800; color: var(--gold); margin-top: 4px; }
#qr-score { font-size: 0.85rem; color: var(--text-dim); margin-top: 6px; }
#qr-msg { font-size: 0.88rem; margin-top: 10px; }
#qr-best { color: var(--gold); font-weight: 800; margin-top: 8px; animation: blink 1.4s ease infinite; }

/* ---------- 神託 ---------- */
#omikuji-stage { text-align: center; }
#omikuji-orb {
  width: min(240px, 70%);
  aspect-ratio: 1;
  margin: 30px auto 10px;
  border-radius: 50%;
  border: 1px solid rgba(178, 141, 255, 0.5);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.2), transparent 45%),
    radial-gradient(circle, rgba(178, 141, 255, 0.35), rgba(13, 20, 40, 0.9) 75%);
  box-shadow: 0 0 50px rgba(178, 141, 255, 0.35);
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: floatOrb 3.2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}
@keyframes floatOrb { 50% { transform: translateY(-8px); } }
#omikuji-orb.shaking { animation: shake 0.16s linear infinite; }
@keyframes shake {
  25% { transform: translateX(-5px) rotate(-2deg); }
  75% { transform: translateX(5px) rotate(2deg); }
}
#omikuji-mascot { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; opacity: 0.9; }
#omikuji-mascot:not([hidden]) ~ #omikuji-orb-emoji { display: none; }
#omikuji-orb-emoji { font-size: 3.6rem; filter: drop-shadow(0 0 16px rgba(178, 141, 255, 0.8)); }
#omikuji-orb-text {
  font-size: 0.78rem;
  color: #d9c9ff;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(4, 6, 13, 0.9);
}

#omikuji-result { animation: fadeUp 0.5s ease both; text-align: left; }
#om-date { text-align: center; font-size: 0.78rem; color: var(--text-dim); letter-spacing: 0.1em; }
#om-fortune {
  text-align: center;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 4px;
}
.fortune-5, .fortune-4 {
  background: linear-gradient(90deg, var(--gold), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fortune-3 { color: var(--cyan); }
.fortune-2 { color: var(--text); }
.fortune-1 { color: var(--text-dim); }
#om-stars { text-align: center; color: var(--gold); letter-spacing: 0.3em; font-size: 1.05rem; }
#om-msg { text-align: center; font-size: 0.92rem; margin: 10px 0 4px; }
.om-note { text-align: center; font-size: 0.7rem; color: #5f6b8c; margin-top: 14px; }

/* ---------- 図鑑 ---------- */
#zukan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.zukan-cell {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 14px;
  padding: 12px 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.2s;
  font-family: inherit;
}
.zukan-cell:active { transform: scale(0.96); }
.rarity-border-ssr:not(.locked) { border-color: rgba(178, 141, 255, 0.65); box-shadow: 0 0 16px rgba(178, 141, 255, 0.2); }
.rarity-border-sr:not(.locked) { border-color: rgba(255, 209, 102, 0.55); }
.rarity-border-r:not(.locked) { border-color: rgba(52, 229, 255, 0.4); }
.zukan-cell.locked { opacity: 0.55; cursor: default; }
.zukan-visual {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle, var(--type-color, rgba(150, 160, 200, 0.25)) 0%, transparent 72%);
}
.zukan-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.zukan-visual.has-img .zukan-emoji { display: none; }
.zukan-emoji { font-size: 1.8rem; }
.locked-mark { font-size: 1.5rem; font-weight: 800; color: #4a5578; background: rgba(255, 255, 255, 0.04); }
.zukan-name { font-size: 0.66rem; font-weight: 700; text-align: center; line-height: 1.4; }
.zukan-rarity { font-size: 0.6rem; letter-spacing: 0.2em; color: var(--text-dim); }

.best-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(140, 180, 255, 0.12);
  font-size: 0.85rem;
}
.best-row:last-child { border-bottom: none; }
.best-name { color: var(--text-dim); }
.best-val { font-weight: 700; color: var(--gold); }

/* ---------- タイプ詳細モーダル ---------- */
#type-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 6, 13, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#type-modal {
  width: min(360px, 100%);
  max-height: 82dvh;
  overflow-y: auto;
  background: linear-gradient(165deg, #182352, #0c1229);
  border: 1px solid rgba(178, 141, 255, 0.45);
  border-radius: 20px;
  padding: 22px 18px;
  text-align: center;
  animation: fadeUp 0.25s ease both;
}
#tm-name { font-size: 1.2rem; font-weight: 800; margin-top: 4px; }
#tm-catch { color: var(--cyan); font-size: 0.84rem; margin-bottom: 10px; }
#tm-desc { font-size: 0.86rem; text-align: left; color: var(--text); }

/* ---------- トースト ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  background: rgba(20, 28, 54, 0.95);
  border: 1px solid var(--panel-line);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 90;
  max-width: 88%;
  text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- アクセシビリティ ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
