:root {
  --bg: #070b16;
  --panel: #0f1628;
  --panel-2: #141d33;
  --line: #22304f;
  --text: #e8eefc;
  --muted: #8a97b5;
  --scenario: #3b82f6;
  --llm: #a855f7;
  --protect: #f97316;
  --alert: #ef4444;
  --ok: #22c55e;
  --gold: #facc15;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; background: #000; overflow: hidden; font-family: var(--font); color: var(--text); }
button { font-family: inherit; cursor: pointer; }

#stage {
  position: absolute; width: 1920px; height: 1080px; transform-origin: 0 0;
  background: radial-gradient(1200px 700px at 70% -10%, #13224a 0%, var(--bg) 60%);
  overflow: hidden;
}
.scene { position: absolute; inset: 0; display: none; }
.scene.active { display: block; animation: fadein .4s ease; }
.hidden { display: none !important; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.brand { display: flex; align-items: baseline; gap: 18px; }
.logo { font-weight: 900; font-size: 30px; letter-spacing: .04em; background: linear-gradient(90deg, #60a5fa, #c084fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .title { font-size: 24px; font-weight: 700; }
.brand.big .logo { font-size: 44px; }
.brand .sub { color: var(--muted); font-size: 20px; }

/* ---------- 待機画面 ---------- */
.attract-bg {
  position: absolute; inset: 0; opacity: .25;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px; mask-image: radial-gradient(circle at 35% 50%, #000 0%, transparent 70%);
}
.attract-main { position: absolute; left: 120px; top: 150px; width: 1060px; }
.headline { font-size: 112px; line-height: 1.15; font-weight: 900; margin: 40px 0 24px; letter-spacing: -.02em; }
.headline .em { color: var(--gold); text-shadow: 0 0 40px rgba(250, 204, 21, .45); }
.lead { font-size: 34px; color: #c7d2ee; }
.steps { display: flex; align-items: center; gap: 22px; margin: 64px 0 56px; }
.step { display: flex; align-items: center; gap: 16px; white-space: nowrap; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px 28px; font-size: 26px; font-weight: 700; }
.step b { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--scenario); font-size: 24px; }
.steps .arrow { font-size: 44px; color: var(--muted); }
.cta { font-size: 34px; font-weight: 900; padding: 22px 80px; border: 0; border-radius: 999px; color: #1a1300; background: var(--gold); box-shadow: 0 0 0 0 rgba(250, 204, 21, .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(250, 204, 21, .55); } 70% { box-shadow: 0 0 0 28px rgba(250, 204, 21, 0); } 100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0); } }

.attract-side { position: absolute; right: 100px; top: 120px; width: 560px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 44px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.stat .k { font-size: 15px; color: var(--muted); }
.stat .v { font-size: 52px; font-weight: 900; margin-top: 6px; }
.stat.win .v { color: var(--gold); }
.attract-side h3 { font-size: 24px; margin-bottom: 16px; }
.ranking { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ranking li { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.ranking .medal { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 20px; background: var(--panel-2); border: 2px solid var(--gold); color: var(--gold); }
.ranking .who { font-size: 24px; font-weight: 700; }
.ranking .how { font-size: 16px; color: var(--muted); }
.ranking .when { color: var(--muted); font-size: 18px; }
.ranking li.new { border-color: var(--gold); animation: flash 1.2s ease 3; }
@keyframes flash { 50% { background: #3a3110; } }
.growth { margin-top: 36px; padding: 24px; border-radius: 16px; background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(168,85,247,.18)); border: 1px solid #3b4a7a; }
.growth .k { font-size: 22px; font-weight: 700; }
.growth .v { font-size: 22px; color: #c7d2ee; margin-top: 8px; }
.growth .v b { font-size: 40px; color: var(--text); }

/* ---------- ミッション選択 ---------- */
.select-head { text-align: center; padding-top: 90px; }
.select-head h2 { font-size: 60px; font-weight: 900; }
.select-head p { font-size: 26px; color: var(--muted); margin-top: 14px; }
.cards { display: grid; grid-template-columns: repeat(3, 480px); gap: 36px; justify-content: center; margin-top: 70px; }
.card {
  position: relative; height: 320px; border-radius: 26px; padding: 34px; text-align: left; color: var(--text);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  background: linear-gradient(160deg, #18244a, #0f1628); border: 2px solid var(--line);
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-8px) rotate(-1deg); border-color: var(--gold); }
.card .icon { width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; font-size: 46px; font-weight: 900; background: var(--gold); color: #1a1300; }
.card .name { font-size: 34px; font-weight: 900; margin-top: 26px; }
.card .desc { font-size: 20px; color: #c7d2ee; margin-top: 12px; line-height: 1.5; }
.card .stars { position: absolute; top: 40px; right: 34px; color: var(--gold); font-size: 26px; letter-spacing: 2px; }
.card.locked { opacity: .45; cursor: not-allowed; }
.card.locked:hover { transform: none; border-color: var(--line); }
.card.locked::after { content: "当日追加予定"; position: absolute; bottom: 26px; right: 30px; font-size: 16px; color: var(--muted); }

/* ---------- 通話画面 ---------- */
.topbar { height: 92px; display: flex; align-items: center; justify-content: space-between; padding: 0 36px; border-bottom: 1px solid var(--line); background: rgba(7, 11, 22, .7); }
.mission-chip { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--gold); border-radius: 999px; padding: 10px 26px; font-size: 24px; font-weight: 700; }
.mission-chip .label { font-size: 14px; color: var(--gold); letter-spacing: .15em; }
.mission-chip .stars { color: var(--gold); }
.live { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 700; }
.live .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--alert); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
#timer { font-variant-numeric: tabular-nums; }

.call-grid { position: absolute; top: 116px; left: 24px; right: 24px; bottom: 80px; display: grid; grid-template-columns: 520px 1fr 440px; gap: 24px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; overflow: hidden; position: relative; }
.panel h2 { font-size: 24px; font-weight: 800; }
.panel h2 small { font-size: 15px; color: var(--muted); font-weight: 400; margin-left: 10px; }
.k { font-size: 15px; color: var(--muted); }

#transcript { position: absolute; top: 70px; left: 20px; right: 20px; bottom: 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; overflow: hidden; mask-image: linear-gradient(180deg, transparent 0, #000 90px); }
.msg { max-width: 88%; animation: msgin .25s ease; }
@keyframes msgin { from { opacity: 0; transform: translateY(10px); } }
.msg .who { font-size: 14px; color: var(--muted); margin-bottom: 5px; display: flex; gap: 8px; align-items: center; }
.msg .bubble { font-size: 21px; line-height: 1.55; padding: 14px 18px; border-radius: 16px; }
.msg.cu { align-self: flex-start; }
.msg.cu .bubble { background: #1c2742; border-top-left-radius: 4px; }
.msg.cu.interim .bubble { color: #9fb0d6; }
.msg.ai { align-self: flex-end; }
.msg.ai .who { justify-content: flex-end; }
.msg.ai .bubble { border-top-right-radius: 4px; background: rgba(59, 130, 246, .2); border: 1px solid rgba(59, 130, 246, .5); }
.msg.ai.by-llm .bubble { background: rgba(168, 85, 247, .2); border-color: rgba(168, 85, 247, .6); }
.msg.ai.by-protect .bubble { background: rgba(249, 115, 22, .18); border-color: rgba(249, 115, 22, .6); }
.msg.cut .bubble::after { content: " …（割り込みで中断）"; color: var(--muted); font-size: 16px; }
.badge { font-size: 12px; padding: 2px 8px; border-radius: 6px; font-weight: 700; color: #fff; }
.badge.scenario { background: var(--scenario); }
.badge.llm { background: var(--llm); }
.badge.protect { background: var(--protect); }

.brain-head { display: flex; align-items: center; gap: 22px; }
.mode-legend { display: flex; gap: 16px; font-size: 15px; color: var(--muted); }
.mode-legend .lg::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg.scenario::before { background: var(--scenario); }
.lg.llm::before { background: var(--llm); }
.lg.protect::before { background: var(--protect); }
.mode-pill { margin-left: auto; font-size: 20px; font-weight: 800; padding: 8px 22px; border-radius: 999px; transition: all .3s; }
.mode-pill.scenario { background: rgba(59, 130, 246, .2); color: #93c5fd; border: 1px solid var(--scenario); }
.mode-pill.llm { background: rgba(168, 85, 247, .25); color: #e9d5ff; border: 1px solid var(--llm); box-shadow: 0 0 24px rgba(168, 85, 247, .6); }
.mode-pill.protect { background: rgba(249, 115, 22, .25); color: #fed7aa; border: 1px solid var(--protect); box-shadow: 0 0 24px rgba(249, 115, 22, .6); }

#flowmap { width: 100%; height: 460px; margin-top: 8px; }
#flowmap .edge { fill: none; stroke: #2a3a60; stroke-width: 3; transition: stroke .3s; }
#flowmap .edge.lit { stroke: var(--scenario); stroke-width: 4; stroke-dasharray: 10 8; animation: flow .6s linear infinite; }
#flowmap .edge.walked { stroke: #3d5a9a; }
#flowmap .jump { fill: none; stroke: var(--muted); stroke-width: 3; stroke-dasharray: 4 8; }
#flowmap .jump.lit { stroke: var(--protect); animation: flow .6s linear infinite; }
#flowmap .llm-link { fill: none; stroke: var(--llm); stroke-width: 4; stroke-dasharray: 8 8; animation: flow .5s linear infinite; opacity: 0; transition: opacity .3s; }
#flowmap .llm-link.on { opacity: 1; }
#flowmap .llm-link.protect { stroke: var(--protect); }
@keyframes flow { to { stroke-dashoffset: -36; } }
#flowmap .node rect { fill: #121b31; stroke: #2a3a60; stroke-width: 2; transition: all .3s; }
#flowmap .node text { fill: var(--muted); font-size: 20px; font-weight: 700; text-anchor: middle; dominant-baseline: central; font-family: var(--font); transition: fill .3s; }
#flowmap .node.visited rect { stroke: #3d5a9a; fill: #15213d; }
#flowmap .node.visited text { fill: #c7d2ee; }
#flowmap .node.active rect { fill: var(--scenario); stroke: #93c5fd; filter: drop-shadow(0 0 14px rgba(59, 130, 246, .9)); }
#flowmap .node.active text { fill: #fff; }
#flowmap .node.kind-llm rect { stroke: rgba(168, 85, 247, .5); stroke-dasharray: 6 5; }
#flowmap .node.kind-llm text { fill: #c4a5f5; }
#flowmap .node.kind-llm.active rect { fill: var(--llm); stroke: #e9d5ff; stroke-dasharray: none; filter: drop-shadow(0 0 18px rgba(168, 85, 247, 1)); }
#flowmap .node.kind-protect rect { stroke: rgba(249, 115, 22, .45); stroke-dasharray: 6 5; }
#flowmap .node.kind-protect text { fill: #f6b57f; }
#flowmap .node.kind-protect.active rect { fill: var(--protect); stroke: #fed7aa; stroke-dasharray: none; filter: drop-shadow(0 0 18px rgba(249, 115, 22, 1)); }
#flowmap .node.kind-protect.visited:not(.active) rect { fill: #2a1a0e; }
#flowmap .node.kind-op rect { stroke: rgba(239, 68, 68, .4); stroke-dasharray: 6 5; }
#flowmap .node.kind-op.active rect { fill: var(--alert); stroke: #fecaca; stroke-dasharray: none; filter: drop-shadow(0 0 16px rgba(239, 68, 68, 1)); }
#flowmap .node.kind-done.active rect { fill: var(--ok); stroke: #bbf7d0; filter: drop-shadow(0 0 16px rgba(34, 197, 94, 1)); }
#flowmap .node.active text, #flowmap .node.kind-llm.active text, #flowmap .node.kind-protect.active text { fill: #fff; }

.brain-bottom { position: absolute; left: 24px; right: 24px; bottom: 22px; height: 250px; display: grid; grid-template-columns: 300px 1fr; gap: 18px; }
.intent-box, .log-box { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; min-width: 0; overflow: hidden; }
#intent-label { font-size: 30px; font-weight: 900; margin: 12px 0 18px; min-height: 84px; line-height: 1.35; }
.conf { height: 12px; background: #0b1222; border-radius: 6px; overflow: hidden; }
#conf-bar { height: 100%; width: 0; background: var(--ok); transition: width .5s, background .5s; }
.conf-val { margin-top: 10px; font-size: 16px; color: var(--muted); }
#conf-val { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
#log { list-style: none; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; font-family: "SFMono-Regular", Consolas, "Noto Sans Mono CJK JP", monospace; font-size: 16px; }
#log li { padding-left: 14px; border-left: 3px solid var(--line); color: #c7d2ee; animation: msgin .25s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#log li.ok { border-color: var(--ok); }
#log li.warn { border-color: var(--gold); }
#log li.alert { border-color: var(--alert); color: #fecaca; }
#log li.llm { border-color: var(--llm); color: #e9d5ff; }

.panel-side { display: flex; flex-direction: column; gap: 18px; }
.phone-wrap { display: flex; align-items: center; gap: 22px; }
.phone { width: 250px; height: 470px; border-radius: 38px; background: #000; border: 3px solid #2f3b5c; padding: 12px; position: relative; flex-shrink: 0; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
.phone .notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 80px; height: 20px; border-radius: 10px; background: #000; z-index: 3; }
#phone-screen { width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, #1b2a4a, #0d1424); position: relative; }
.phone-cap { font-size: 20px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.phone-cap small { color: var(--muted); font-weight: 400; font-size: 16px; }

.ps { position: absolute; inset: 0; padding: 48px 18px 18px; display: flex; flex-direction: column; animation: fadein .3s; }
.ps-call { align-items: center; text-align: center; }
.ps-call .avatar { width: 90px; height: 90px; border-radius: 50%; margin-top: 40px; display: grid; place-items: center; font-weight: 900; font-size: 22px; background: linear-gradient(135deg, #3b82f6, #a855f7); }
.ps-call .nm { font-size: 20px; font-weight: 800; margin-top: 18px; }
.ps-call .st { font-size: 15px; color: var(--muted); margin-top: 6px; }
.wave { display: flex; gap: 5px; align-items: center; height: 60px; margin-top: 50px; }
.wave i { width: 6px; background: #60a5fa; border-radius: 3px; animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: .2s; } .wave i:nth-child(3n) { animation-delay: .4s; }
@keyframes wave { 0%, 100% { height: 10px; } 50% { height: 52px; } }
.sms-banner { position: absolute; top: 40px; left: 10px; right: 10px; background: rgba(255, 255, 255, .95); color: #111; border-radius: 16px; padding: 12px 14px; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); animation: drop .4s cubic-bezier(.2, 1.4, .4, 1); z-index: 2; }
.sms-banner b { display: block; font-size: 12px; color: #666; margin-bottom: 4px; }
@keyframes drop { from { transform: translateY(-80px); opacity: 0; } }
.ps-form { background: #f5f7fb; color: #111; }
.ps-form .hd { font-size: 12px; color: #2563eb; font-weight: 800; }
.ps-form h4 { font-size: 19px; margin: 6px 0 16px; }
.ps-form .fl { font-size: 12px; color: #666; margin-top: 10px; }
.ps-form .fv { background: #fff; border: 1px solid #d0d7e6; border-radius: 10px; padding: 10px; font-size: 15px; margin-top: 4px; }
.ps-form .fv.on { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .2); }
.ps-form .chk { margin-top: 12px; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.ps-form .chk i { width: 18px; height: 18px; border-radius: 4px; background: #2563eb; display: inline-block; }
.ps-form .btn { margin-top: auto; background: #2563eb; color: #fff; text-align: center; border-radius: 12px; padding: 12px; font-weight: 800; }
.ps-form .row { display: flex; justify-content: space-between; background: #fff; border: 1px solid #d0d7e6; border-radius: 10px; padding: 10px; font-size: 14px; margin-top: 8px; }
.ps-form .row.dup { border-color: #ef4444; background: #fef2f2; }
.ps-form .row.dup span:last-child { color: #ef4444; font-weight: 800; }
.ps-done { align-items: center; justify-content: center; text-align: center; background: #f0fdf4; color: #14532d; }
.ps-done .check { width: 96px; height: 96px; border-radius: 50%; background: #22c55e; color: #fff; font-size: 56px; display: grid; place-items: center; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(0); } }
.ps-done p { font-size: 18px; font-weight: 800; margin-top: 18px; }
.ps-op { align-items: center; justify-content: center; text-align: center; }
.ps-op .spin { width: 64px; height: 64px; border: 6px solid #2a3a60; border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ps-op p { margin-top: 20px; font-size: 16px; }

.emo { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.emo-track { height: 22px; border-radius: 11px; background: linear-gradient(90deg, #14532d, #713f12, #7f1d1d); margin-top: 12px; position: relative; overflow: hidden; }
#emo-fill { position: absolute; top: 0; bottom: 0; left: 0; width: 10%; background: linear-gradient(90deg, var(--ok), var(--gold), var(--alert)); background-size: 380px 100%; border-radius: 11px; transition: width .6s ease; box-shadow: 0 0 18px rgba(239, 68, 68, .4); }
.emo-labels { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-top: 8px; }

.onprem { background: linear-gradient(160deg, #10203c, #0d1424); border: 1px solid #2d4a7c; border-radius: 14px; padding: 16px 18px; flex: 1; display: flex; flex-direction: column; }
.onprem-head { display: flex; gap: 14px; align-items: center; }
.box-icon { width: 48px; height: 54px; border-radius: 8px; background: #1b2a4a; border: 2px solid #3b5998; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 8px; }
.box-icon i { height: 5px; border-radius: 2px; background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.onprem .name { font-size: 19px; font-weight: 800; }
.onprem .desc { font-size: 14px; color: var(--muted); margin-top: 2px; }
.gpu { display: flex; gap: 5px; align-items: flex-end; height: 56px; margin-top: 14px; }
.gpu i { flex: 1; background: linear-gradient(0deg, #1d4ed8, #a855f7); border-radius: 3px 3px 0 0; transition: height .15s; min-height: 3px; }
.onprem-stats { display: flex; justify-content: space-between; margin-top: 12px; font-size: 15px; color: var(--muted); }
.onprem-stats b { color: var(--text); margin-left: 8px; font-variant-numeric: tabular-nums; }
.onprem-stats b.zero { color: var(--ok); }

.ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; display: flex; align-items: center; gap: 44px; padding: 0 36px; font-size: 19px; color: var(--muted); border-top: 1px solid var(--line); background: rgba(7, 11, 22, .85); }
.ticker b { color: var(--text); font-size: 22px; margin-left: 6px; }
.ticker .tk-msg { margin-left: auto; color: #c7d2ee; }

/* ---------- 結果 ---------- */
#result { position: absolute; inset: 0; background: rgba(4, 7, 15, .78); backdrop-filter: blur(6px); display: grid; place-items: center; animation: fadein .4s; z-index: 10; }
.result-card { width: 1100px; background: var(--panel); border: 2px solid var(--line); border-radius: 30px; padding: 50px 60px; text-align: center; animation: pop .5s cubic-bezier(.2, 1.3, .4, 1); }
.result-card.visitor { border-color: var(--gold); box-shadow: 0 0 80px rgba(250, 204, 21, .35); }
.verdict { font-size: 76px; font-weight: 900; }
.verdict small { display: block; font-size: 24px; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.result-card.visitor .verdict { color: var(--gold); }
.result-body { display: flex; gap: 50px; align-items: center; margin: 36px 0 24px; text-align: left; }
.score-ring { position: relative; width: 240px; height: 240px; flex-shrink: 0; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring circle { fill: none; stroke-width: 10; }
.score-ring .bg { stroke: #1c2742; }
.score-ring .fg { stroke: var(--scenario); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1.2s ease; }
.result-card.visitor .score-ring .fg { stroke: var(--alert); }
.score-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-num b { font-size: 76px; font-weight: 900; line-height: 1; }
.score-num span { font-size: 16px; color: var(--muted); margin-top: 6px; }
.result-items { list-style: none; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.result-items li { display: flex; justify-content: space-between; gap: 20px; background: var(--panel-2); border-radius: 12px; padding: 16px 22px; font-size: 22px; }
.result-items li span:first-child { color: var(--muted); }
.result-items li span:last-child { font-weight: 800; }
.result-comment { font-size: 26px; font-weight: 700; }
.result-actions { display: flex; gap: 20px; justify-content: center; margin-top: 34px; }
.result-actions button { font-size: 24px; font-weight: 800; padding: 18px 44px; border-radius: 999px; border: 2px solid var(--line); background: var(--panel-2); color: var(--text); }
.result-actions button.primary { background: var(--gold); color: #1a1300; border-color: var(--gold); }
.result-actions .lead-scan { display: flex; align-items: center; gap: 16px; font-size: 18px; color: var(--muted); text-align: left; }
.qr { width: 72px; height: 72px; border-radius: 8px; background:
  conic-gradient(from 90deg at 30% 30%, #fff 25%, #000 0 50%, #fff 0 75%, #000 0) 0 0 / 18px 18px; border: 6px solid #fff; }

/* ---------- その場で学習 ---------- */
.improve-head { display: flex; justify-content: space-between; align-items: flex-end; padding: 70px 90px 0; }
.eyebrow { font-size: 24px; color: var(--gold); font-weight: 800; }
.improve-head h2 { font-size: 60px; font-weight: 900; margin-top: 10px; }
.lock-badge { background: rgba(34, 197, 94, .12); border: 1px solid var(--ok); border-radius: 16px; padding: 18px 26px; display: flex; flex-direction: column; gap: 4px; }
.lock-badge b { color: var(--ok); font-size: 24px; }
.lock-badge span { color: #c7d2ee; font-size: 17px; }
.improve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 50px 90px; }
.istep { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 30px; height: 720px; position: relative; opacity: .25; transform: translateY(20px); transition: all .6s ease; }
.istep.on { opacity: 1; transform: none; border-color: #3b4a7a; }
.istep-no { position: absolute; top: -22px; left: 30px; width: 48px; height: 48px; border-radius: 50%; background: var(--llm); display: grid; place-items: center; font-size: 24px; font-weight: 900; }
.istep h3 { font-size: 30px; margin: 10px 0 24px; }
.quote { font-size: 21px; line-height: 1.6; background: var(--panel-2); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.quote mark { background: rgba(250, 204, 21, .3); color: var(--gold); padding: 0 4px; border-radius: 4px; }
.quote s { color: var(--alert); }
.findings { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.findings li { font-size: 20px; padding: 14px 16px; border-left: 4px solid var(--alert); background: rgba(239, 68, 68, .08); border-radius: 0 10px 10px 0; }
.findings b { display: block; font-size: 15px; color: #fca5a5; margin-bottom: 4px; }
.proposal { background: var(--panel-2); border: 1px solid rgba(168, 85, 247, .4); border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; opacity: 0; transform: translateX(-12px); transition: all .5s; }
.istep.on .proposal { opacity: 1; transform: none; }
.istep.on .proposal:nth-of-type(2) { transition-delay: .5s; }
.istep.on .proposal:nth-of-type(3) { transition-delay: 1s; }
.proposal .tag { display: inline-block; font-size: 14px; font-weight: 800; color: #e9d5ff; background: rgba(168, 85, 247, .3); padding: 3px 10px; border-radius: 6px; margin-bottom: 10px; }
.proposal p { font-size: 20px; line-height: 1.6; }
.approve { display: flex; flex-direction: column; gap: 20px; background: var(--panel-2); border-radius: 14px; padding: 22px; }
.approver { display: flex; gap: 14px; align-items: center; }
.approver .avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--scenario); display: grid; place-items: center; font-weight: 900; }
.approver b { display: block; font-size: 20px; }
.approver span { font-size: 16px; color: var(--muted); }
.approve-btn { font-size: 24px; font-weight: 800; padding: 16px; border-radius: 12px; border: 0; background: var(--ok); color: #052e16; }
.approve-btn:disabled { background: #1c3a2a; color: #6b8f7a; cursor: default; }
.deploy { margin-top: 30px; }
.deploy-label { display: flex; justify-content: space-between; font-size: 20px; color: #c7d2ee; }
.deploy-track { height: 16px; background: #0b1222; border-radius: 8px; margin-top: 12px; overflow: hidden; }
#deploy-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--scenario), var(--llm)); transition: width .3s; }
.retry-btn { margin-top: 40px; width: 100%; font-size: 28px; font-weight: 900; padding: 22px; border-radius: 999px; border: 0; background: var(--gold); color: #1a1300; animation: pulse 2s infinite; }

/* ---------- 提案バッジ ---------- */
#nt-badge {
  position: absolute; top: 20px; left: 24px; z-index: 50; height: 52px;
  display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 7px;
  background: rgba(10, 16, 32, .82); border: 1px solid #2a3a60; border-radius: 14px;
  backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.nt-mark { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; font-size: 16px; letter-spacing: .02em; color: #04201a; background: linear-gradient(135deg, #34d399, #22d3ee); }
.nt-text { display: flex; flex-direction: column; line-height: 1.2; padding-right: 4px; }
.nt-text b { font-size: 16px; font-weight: 800; }
.nt-text span { font-size: 13px; color: var(--muted); }
.nt-concept { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; font-size: 15px; font-weight: 800; color: #0b1222; background: #e8eefc; text-decoration: none; transition: background .2s, transform .2s; }
.nt-concept span { transition: transform .2s; }
.nt-concept:hover { background: #fff; }
.nt-concept:hover span { transform: translateX(3px); }
#scene-call .topbar { padding-left: 500px; }
.select-head { padding-top: 110px; }
.improve-head { padding-top: 100px; }

/* ---------- 操作パネル（大画面の外） ---------- */
#controls { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; padding: 8px 14px; background: rgba(20, 26, 44, .92); border: 1px solid #33415f; border-radius: 12px; font-size: 13px; color: #c7d2ee; z-index: 100; }
#controls button, #controls select { font-size: 13px; padding: 5px 10px; border-radius: 7px; border: 1px solid #3a4870; background: #1c2540; color: #e8eefc; }
#controls button:hover { border-color: var(--gold); }
#controls .ctl-title { font-weight: 800; margin-right: 4px; }
#controls .ctl-hint { color: #7a87a5; margin-left: 6px; }
