@font-face { font-family: Geist; src: url(GeistVF.woff) format("woff"); font-weight: 100 900; }
:root { --deep: #141E41; --ink2: #26315C; --muted: #5F667E; --line: #E3E6EF; --soft: #F4F6FB;
  --cer: #36B1FE; --ame: #AB5FCE; --amber: #EE6A3F; --amber2: #FFC56E; --green: #22A77A; --green2: #7FE6BE;
  --grad: linear-gradient(135deg, #36B1FE, #AB5FCE); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0E1530; font-family: Geist, Inter, system-ui, sans-serif; color: var(--deep); overflow: hidden; }
#wrap { position: absolute; inset: 0; display: grid; place-items: center; }
#stage { position: relative; width: min(100vw, 177.78vh); aspect-ratio: 16 / 9; background: #E9EDF5; container-type: inline-size; user-select: none; overflow: hidden; }
svg text { font-family: Geist, Inter, system-ui, sans-serif; }
#view, #mgs { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hide { display: none !important; }
kbd { display: inline-grid; place-items: center; min-width: 1.7cqw; height: 1.7cqw; padding: 0 .45cqw; border-radius: .45cqw; background: #fff; border: 1px solid #CDD3E1;
  box-shadow: 0 .18cqw 0 #CDD3E1; font: 600 .85cqw/1 Geist, sans-serif; color: var(--deep); margin-right: .2cqw; }
.eyebrow { font-size: .78cqw; letter-spacing: .14em; text-transform: uppercase; font-weight: 650; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.panel { position: absolute; background: rgba(255,255,255,.94); border-radius: 1.1cqw; box-shadow: 0 .6cqw 1.8cqw rgba(20,30,65,.14); border: 1px solid rgba(20,30,65,.06); }

/* HUD: edges only, the middle of the screen stays clear */
#stage:focus { outline: none; }
#journey { position: absolute; left: 50%; top: .9cqw; transform: translateX(-50%); display: flex; align-items: flex-start; gap: 0; padding: .55cqw 1.2cqw .5cqw;
  background: rgba(255,255,255,.9); border-radius: 1cqw; box-shadow: 0 .4cqw 1.4cqw rgba(20,30,65,.12); }
#journey .st { display: flex; flex-direction: column; align-items: center; width: 5.2cqw; position: relative; }
#journey .st::before { content: ""; position: absolute; top: 1cqw; left: -50%; width: 100%; height: .18cqw; background: #DCE1EC; z-index: 0; }
#journey .st:first-child::before { display: none; }
#journey .st.done::before, #journey .st.cur::before { background: linear-gradient(90deg, #22A77A, #5E8FF5); }
#journey .hx { width: 2cqw; height: 2.2cqw; display: grid; place-items: center; font-size: .8cqw; font-weight: 750; color: #9AA1BA; background: #F1F3F8; position: relative; z-index: 1;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
#journey .done .hx { background: #22A77A; color: #fff; }
#journey .cur .hx { background: linear-gradient(135deg, #36B1FE, #AB5FCE); color: #fff; animation: hxp 1.4s ease-in-out infinite; }
@keyframes hxp { 50% { transform: scale(1.15); } }
#journey .lb { font-size: .72cqw; font-weight: 600; color: #9AA1BA; margin-top: .25cqw; white-space: nowrap; }
#journey .done .lb { color: #22A77A; } #journey .cur .lb { color: var(--deep); }
#journey .mod { position: absolute; top: -.95cqw; font-size: .58cqw; letter-spacing: .16em; font-weight: 700; color: #9AA1BA; white-space: nowrap; left: 50%; transform: translateX(-50%); }
#obj { left: 1cqw; top: .9cqw; width: 20cqw; padding: .8cqw 1cqw .9cqw; }
#obj .otitle { font-size: 1.15cqw; font-weight: 650; margin: .25cqw 0 .2cqw; }
#obj .odesc { font-size: .82cqw; line-height: 1.45; color: var(--muted); }
#obj .obar { height: .4cqw; border-radius: 1cqw; background: #E9ECF3; margin-top: .6cqw; overflow: hidden; }
#obj .obar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 1cqw; transition: width .4s; }
#obj.pulse { animation: qp .9s ease; }
@keyframes qp { 30% { transform: scale(1.04); box-shadow: 0 0 0 .4cqw rgba(54,177,254,.25); } }
#mini { right: 1cqw; bottom: 1cqw; width: 15cqw; padding: .4cqw; opacity: .95; }
#minimap { width: 100%; display: block; }
#reg { right: 1cqw; bottom: 10.2cqw; width: 15cqw; padding: .7cqw .8cqw .6cqw; transition: opacity .3s, transform .3s; }
#reg.off { opacity: 0; transform: translateY(.6cqw); pointer-events: none; }
#hiveHud { width: 100%; display: block; margin-top: .3cqw; }
#hiveLegend { display: flex; gap: .6cqw; font-size: .66cqw; color: var(--muted); margin-top: .2cqw; flex-wrap: wrap; }
#hiveLegend span { display: inline-flex; align-items: center; gap: .25cqw; }
#hiveLegend i { width: .6cqw; height: .6cqw; border-radius: 50%; display: inline-block; }
#acts { position: absolute; left: 1cqw; bottom: 1cqw; display: flex; gap: .5cqw; }
.act { font: inherit; font-size: .85cqw; font-weight: 600; color: var(--deep); background: rgba(255,255,255,.94); border: 1px solid rgba(20,30,65,.08); border-radius: 99cqw;
  padding: .35cqw .8cqw .35cqw .4cqw; display: inline-flex; align-items: center; gap: .3cqw; cursor: pointer; box-shadow: 0 .3cqw 1cqw rgba(20,30,65,.1); }
.act:hover { background: #fff; border-color: var(--cer); }
.act.ghost { color: var(--muted); font-weight: 500; }
.act.lit { background: var(--deep); color: #fff; } .act.lit kbd { color: var(--deep); }
#keys { left: 50%; transform: translateX(-50%); bottom: 4.2cqw; padding: .5cqw 1cqw; font-size: .85cqw; color: var(--muted); transition: opacity 1s; }
#keys.off { opacity: 0; }
#toasts { position: absolute; left: 50%; top: 5.6cqw; transform: translateX(-50%); display: flex; flex-direction: column; gap: .5cqw; align-items: center; pointer-events: none; }
.toast { background: #fff; border-radius: 1cqw; box-shadow: 0 .6cqw 1.8cqw rgba(20,30,65,.16); padding: .7cqw 1.1cqw; display: flex; gap: .9cqw; align-items: center; min-width: 24cqw; max-width: 34cqw;
  animation: tin .35s cubic-bezier(.2,1.4,.4,1); }
.toast.out { animation: tout .3s ease forwards; }
@keyframes tin { from { transform: translateY(-1.2cqw) scale(.96); opacity: 0; } }
@keyframes tout { to { transform: translateY(-.8cqw); opacity: 0; } }
.toast svg { width: 2.8cqw; height: 2.8cqw; flex: none; }
.toast .t1 { font-size: .7cqw; letter-spacing: .12em; text-transform: uppercase; font-weight: 650; color: var(--muted); }
.toast .t2 { font-size: 1.08cqw; font-weight: 650; margin: .1cqw 0; }
.toast .t3 { font-size: .85cqw; color: var(--muted); line-height: 1.35; }
.toast.ok .t1 { color: var(--green); } .toast.risk .t1 { color: var(--amber); } .toast.find .t1 { color: #5E8FF5; }

/* dialogue */
#dlg { position: absolute; left: 50%; bottom: 1.6cqw; transform: translateX(-50%); width: 64cqw; background: #fff; border-radius: 1.4cqw; box-shadow: 0 1cqw 3cqw rgba(20,30,65,.22);
  display: grid; grid-template-columns: 10cqw 1fr; gap: 1.4cqw; padding: 1.3cqw 1.6cqw 1.3cqw 1.3cqw; animation: din .3s cubic-bezier(.2,1.3,.4,1); cursor: pointer; }
@keyframes din { from { transform: translate(-50%, 1.5cqw); opacity: 0; } }
#dlg .portrait { width: 10cqw; height: 10cqw; border-radius: 1cqw; background: linear-gradient(160deg, #EEF5FF, #F4ECFB); overflow: hidden; display: grid; place-items: end center; }
#dlg .portrait svg { width: 100%; height: 100%; display: block; }
#dlg .who { display: flex; gap: .8cqw; align-items: baseline; }
#dlg .who b { font-size: 1.35cqw; font-weight: 650; }
#dlg .who span { font-size: .9cqw; color: var(--muted); }
#dlg .text { font-size: 1.32cqw; line-height: 1.5; margin-top: .5cqw; min-height: 6cqw; }
#dlg .text em { font-style: normal; font-weight: 650; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
#dlg .next { text-align: right; font-size: .85cqw; color: var(--muted); opacity: 0; transition: opacity .2s; }
#dlg.ready .next { opacity: 1; animation: nb 1s ease-in-out infinite; }
@keyframes nb { 50% { transform: translateX(.3cqw); } }

/* banner */
#banner { position: absolute; left: 0; right: 0; top: 36%; text-align: center; pointer-events: none; opacity: 0; }
#banner.on { animation: ban 2.6s ease forwards; }
@keyframes ban { 0% { opacity: 0; transform: scale(.8); } 12% { opacity: 1; transform: scale(1.04); } 20% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-1.5cqw); } }
#banner .b1 { font-size: 1.1cqw; letter-spacing: .3em; font-weight: 650; color: #fff; text-shadow: 0 .2cqw 1cqw rgba(20,30,65,.5); }
#banner .b2 { display: inline-block; margin-top: .6cqw; font-size: 4.2cqw; font-weight: 750; letter-spacing: -.01em; color: #fff; padding: .6cqw 2.6cqw; border-radius: 1.6cqw; background: var(--grad); box-shadow: 0 1cqw 3cqw rgba(94,143,245,.45); }
#banner .b3 { margin-top: .8cqw; font-size: 1.8cqw; color: #FFC56E; letter-spacing: .3em; text-shadow: 0 .2cqw .8cqw rgba(20,30,65,.4); }

/* mini-games */
#mg { position: absolute; inset: 0; background: #F7F8FC; }
#mgui { position: absolute; inset: 0; pointer-events: none; }
#mgui > * { pointer-events: auto; }
.mg-head { position: absolute; left: 2cqw; top: 1.6cqw; }
.mg-head .t { font-size: 2cqw; font-weight: 700; margin-top: .2cqw; }
.mg-head .s { font-size: 1cqw; color: var(--muted); margin-top: .2cqw; max-width: 46cqw; line-height: 1.45; }
.btn { font: inherit; font-weight: 650; font-size: 1.15cqw; color: #fff; background: var(--deep); border: 0; border-radius: 99cqw; padding: .85cqw 1.9cqw; cursor: pointer; box-shadow: 0 .3cqw 0 #0B1230; transition: transform .1s; }
.btn:hover { background: var(--ink2); } .btn:active { transform: translateY(.15cqw); box-shadow: 0 .15cqw 0 #0B1230; }
.btn.grad { background: var(--grad); box-shadow: 0 .3cqw 0 #6B5BC2; }
.btn:disabled { opacity: .35; cursor: default; }
.card { background: #fff; border-radius: 1.1cqw; box-shadow: 0 .5cqw 1.6cqw rgba(20,30,65,.1); border: 1px solid rgba(20,30,65,.06); }
.moves { position: absolute; left: 2cqw; right: 2cqw; bottom: 1.6cqw; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1cqw; }
.move { font: inherit; text-align: left; padding: 1cqw 1.1cqw; cursor: pointer; border: 2px solid transparent; transition: transform .12s, border-color .12s; }
.move:hover:not(:disabled) { transform: translateY(-.3cqw); border-color: var(--cer); }
.move:disabled { opacity: .4; cursor: default; }
.move .k { float: right; }
.move .n { font-size: 1.15cqw; font-weight: 650; margin-bottom: .3cqw; }
.move .d { font-size: .85cqw; color: var(--muted); line-height: 1.4; }
.move.held { border-color: var(--green); opacity: .55; } .move.weak { border-color: var(--amber); opacity: .7; }
.chat { position: absolute; left: 32cqw; width: 35cqw; top: 9cqw; display: flex; flex-direction: column; gap: 1cqw; }
.bub { padding: 1cqw 1.3cqw; border-radius: 1.2cqw; font-size: 1.12cqw; line-height: 1.45; animation: tin .3s ease; }
.bub small { display: block; font-size: .72cqw; letter-spacing: .12em; text-transform: uppercase; font-weight: 650; margin-bottom: .3cqw; opacity: .7; }
.bub.me { background: var(--deep); color: #fff; align-self: flex-start; border-bottom-left-radius: .3cqw; max-width: 90%; }
.bub.bot { background: #fff; align-self: flex-end; border-bottom-right-radius: .3cqw; box-shadow: 0 .4cqw 1.2cqw rgba(20,30,65,.1); max-width: 90%; }
.stamp { align-self: center; font-size: 1.5cqw; font-weight: 750; letter-spacing: .12em; padding: .5cqw 1.4cqw; border-radius: .8cqw; border: .25cqw solid; transform: rotate(-4deg); animation: stamp .35s cubic-bezier(.2,1.6,.4,1); }
.stamp.ok { color: var(--green); border-color: var(--green); } .stamp.bad { color: var(--amber); border-color: var(--amber); }
@keyframes stamp { from { transform: rotate(-4deg) scale(2.2); opacity: 0; } }
.fixbox { position: absolute; left: 2cqw; right: 2cqw; bottom: 1.6cqw; padding: 1.3cqw 1.6cqw; }
.fixbox .q { font-size: 1.3cqw; font-weight: 650; margin-bottom: .9cqw; }
.fixbox .opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1cqw; }
.opt { font: inherit; font-size: 1.05cqw; text-align: left; padding: 1cqw 1.2cqw; border-radius: .9cqw; border: 2px solid var(--line); background: #fff; cursor: pointer; line-height: 1.4; }
.opt:hover { border-color: var(--cer); background: #F3FAFF; }
.opt.no { border-color: var(--amber); background: #FFF6F1; }
.fb { margin-top: .8cqw; font-size: 1cqw; color: var(--amber); min-height: 1.4cqw; }
.side { position: absolute; right: 2cqw; top: 1.6cqw; width: 26cqw; padding: 1.3cqw 1.5cqw; }
.gauge { margin: .4cqw 0 1.1cqw; }
.gauge .row { display: flex; justify-content: space-between; align-items: baseline; }
.gauge .row b { font-size: 2.4cqw; font-weight: 700; }
.gauge .row span { font-size: .95cqw; color: var(--muted); }
.gauge .bar { position: relative; height: .9cqw; background: #E9ECF3; border-radius: 1cqw; margin-top: .4cqw; }
.gauge .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 1cqw; transition: width .35s, background .35s; }
.gauge .bar u { position: absolute; top: -.35cqw; bottom: -.35cqw; width: .2cqw; background: var(--deep); }
.gauge .bar u::after { content: attr(data-l); position: absolute; top: 1.7cqw; left: 50%; transform: translateX(-50%); font-size: .75cqw; color: var(--muted); white-space: nowrap; text-decoration: none; }
.note { font-size: .95cqw; color: var(--muted); line-height: 1.5; }
.toggles { position: absolute; left: 14cqw; right: 2cqw; bottom: 1.6cqw; display: grid; grid-template-columns: repeat(6, 1fr) 11cqw; gap: .8cqw; align-items: stretch; }
.toggles .btn { align-self: center; padding: 1cqw 1.2cqw; }
.tog { font: inherit; text-align: left; padding: .9cqw 1cqw; cursor: pointer; border: 2px solid transparent; }
.tog .n { font-size: 1.02cqw; font-weight: 650; display: flex; justify-content: space-between; align-items: center; gap: .4cqw; }
.tog .d { font-size: .8cqw; color: var(--muted); margin-top: .35cqw; line-height: 1.35; }
.sw { width: 2.4cqw; height: 1.3cqw; border-radius: 1cqw; background: #CDD3E1; position: relative; flex: none; transition: background .2s; }
.sw::after { content: ""; position: absolute; top: .18cqw; left: .18cqw; width: .94cqw; height: .94cqw; border-radius: 50%; background: #fff; transition: left .2s; }
.tog.on .sw { background: var(--deep); } .tog.on .sw::after { left: 1.28cqw; }
.tog:not(.on) { background: #F1F3F8; } .tog:not(.on) .n { color: var(--muted); }
.agents-side .stat { display: flex; justify-content: space-between; font-size: 1.05cqw; margin: .5cqw 0; }
.agents-side .stat b { font-weight: 700; }
.scope { font-size: .9cqw; line-height: 1.45; margin-top: .7cqw; padding-top: .7cqw; border-top: 1px solid var(--line); }
.scope b { font-weight: 650; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(247,248,252,.82); backdrop-filter: blur(2px); }
.overlay .card { width: 52cqw; padding: 2.2cqw 2.6cqw; }
.overlay h2 { font-size: 2.3cqw; margin: .5cqw 0 .8cqw; line-height: 1.15; }
.overlay p { font-size: 1.15cqw; line-height: 1.55; color: var(--muted); margin: 0 0 .8cqw; }
.overlay p b { color: var(--deep); font-weight: 650; }
.stars { font-size: 2.6cqw; letter-spacing: .3em; color: #FFC56E; margin: .4cqw 0 1cqw; }
.stars .off { color: #DADFEA; }
.cls { position: absolute; left: 50%; top: 13cqw; transform: translateX(-50%); width: 48cqw; padding: 2cqw 2.4cqw; text-align: center; }
.cls .sysn { font-size: 2cqw; font-weight: 700; margin: .4cqw 0 .3cqw; }
.cls .sysd { font-size: 1.1cqw; color: var(--muted); line-height: 1.5; min-height: 3.4cqw; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8cqw; margin-top: 1.4cqw; }
.tier { font: inherit; font-weight: 650; font-size: 1.05cqw; padding: 1cqw .6cqw; border-radius: .9cqw; border: 2px solid var(--line); background: #fff; cursor: pointer; }
.tier small { display: block; font-weight: 400; font-size: .78cqw; color: var(--muted); margin-top: .25cqw; }
.tier:hover { border-color: var(--cer); }
.tier.right { border-color: var(--green); background: #EFFBF5; } .tier.wrong { border-color: var(--amber); background: #FFF6F1; }
.cls .exp { margin-top: 1cqw; font-size: 1.05cqw; min-height: 3cqw; line-height: 1.45; }
.dots { display: flex; gap: .5cqw; justify-content: center; margin-top: 1cqw; }
.dots i { width: .8cqw; height: .8cqw; border-radius: 50%; background: #DADFEA; } .dots i.on { background: var(--deep); }
.check { list-style: none; padding: 0; margin: 1cqw 0 1.4cqw; }
.check li { display: flex; gap: 1cqw; align-items: center; font-size: 1.15cqw; padding: .7cqw 0; border-bottom: 1px solid var(--line); opacity: .25; transition: opacity .3s; }
.check li.on { opacity: 1; }
.check li i { flex: none; width: 1.7cqw; height: 1.7cqw; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 1cqw; font-weight: 700; background: var(--green);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.check li span { color: var(--muted); font-size: .95cqw; margin-left: auto; text-align: right; }

/* full screens (title, end) */
#screen { position: absolute; inset: 0; background: radial-gradient(120% 90% at 30% 20%, #FFFFFF 0%, #EEF3FF 45%, #E6E2F7 100%); display: grid; place-items: center; }
.title { display: grid; grid-template-columns: 30cqw 1fr; gap: 3cqw; align-items: center; width: 84cqw; }
.title .mel svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 1.5cqw 2cqw rgba(20,30,65,.15)); }
.title .brand { display: flex; align-items: center; gap: .8cqw; font-size: 1.3cqw; font-weight: 600; }
.title .brand img { width: 2.4cqw; }
.title h1 { font-size: 6.4cqw; line-height: .95; letter-spacing: -.03em; margin: 1.2cqw 0 1.2cqw; font-weight: 750; }
.title h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.title p { font-size: 1.4cqw; line-height: 1.55; color: var(--muted); margin: 0 0 1.8cqw; max-width: 44cqw; }
.title p b { color: var(--deep); font-weight: 650; }
.title .meta { display: flex; gap: 1.6cqw; margin-top: 1.6cqw; font-size: .95cqw; color: var(--muted); align-items: center; }
.end { width: 84cqw; display: grid; grid-template-columns: 22cqw 1fr; gap: 3cqw; align-items: center; }
.end .mel svg { width: 100%; height: auto; display: block; }
.end h1 { font-size: 3.6cqw; margin: .6cqw 0 1cqw; line-height: 1.05; letter-spacing: -.02em; }
.end .pill { display: grid; grid-template-columns: 9cqw 1fr 7cqw; gap: 1.2cqw; align-items: center; padding: 1cqw 1.3cqw; margin-bottom: .8cqw; }
.end .pill b { font-size: 1.2cqw; } .end .pill .m { font-size: .72cqw; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 650; display: block; }
.end .pill p { margin: 0; font-size: 1.05cqw; line-height: 1.45; color: var(--muted); }
.end .pill .st { font-size: 1.4cqw; color: #FFC56E; letter-spacing: .15em; text-align: right; } .end .pill .st .off { color: #DADFEA; }
.end .tag { font-size: 1.3cqw; font-weight: 600; margin: 1.4cqw 0 1.2cqw; }

/* shared mini-game parts added for the full journey */
.grid8 { position: absolute; left: 2cqw; right: 30cqw; top: 10cqw; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1cqw; }
.conn { font: inherit; text-align: left; padding: 1.1cqw 1.2cqw; cursor: pointer; border: 2px solid transparent; transition: transform .12s, border-color .12s; min-height: 8.4cqw; }
.conn:hover:not(:disabled) { transform: translateY(-.25cqw); border-color: var(--cer); }
.conn .n { font-size: 1.15cqw; font-weight: 650; display: flex; justify-content: space-between; align-items: center; }
.conn .d { font-size: .85cqw; color: var(--muted); margin-top: .35cqw; line-height: 1.4; }
.conn .s { font-size: .75cqw; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; margin-top: .6cqw; color: #9AA1BA; }
.conn.on { border-color: var(--green); } .conn.on .s { color: var(--green); }
.conn.trap { background: #FFFBF6; } .conn.no { border-color: var(--amber); } .conn.no .s { color: var(--amber); }
.match { position: absolute; left: 2cqw; right: 2cqw; top: 10.5cqw; bottom: 2cqw; display: grid; grid-template-columns: 1fr 1.25fr; gap: 3cqw; }
.match .col { display: flex; flex-direction: column; gap: .6cqw; }
.match .h { font-size: .78cqw; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: .2cqw; }
.chip { font: inherit; text-align: left; font-size: 1cqw; padding: .7cqw 1cqw; border-radius: .8cqw; border: 2px solid var(--line); background: #fff; cursor: pointer; display: flex; justify-content: space-between; gap: 1cqw; align-items: center; }
.chip small { font-size: .78cqw; color: var(--muted); white-space: nowrap; }
.chip:hover:not(:disabled) { border-color: var(--cer); }
.chip.sel { border-color: var(--deep); background: #EEF2FB; box-shadow: 0 0 0 .2cqw rgba(54,177,254,.3); }
.chip.done { opacity: .35; cursor: default; border-style: dashed; }
.chip.shake { animation: shk .35s; border-color: var(--amber); }
@keyframes shk { 25% { transform: translateX(-.4cqw); } 75% { transform: translateX(.4cqw); } }
.tgt { font: inherit; text-align: left; padding: .8cqw 1.1cqw; border-radius: .9cqw; border: 2px solid var(--line); background: #fff; cursor: pointer; display: grid; grid-template-columns: 2.6cqw 1fr; gap: .9cqw; align-items: center; }
.tgt:hover { border-color: var(--cer); }
.tgt b { font-size: 1.05cqw; font-weight: 650; display: block; }
.tgt .got { font-size: .8cqw; color: var(--muted); margin-top: .2cqw; line-height: 1.4; }
.tgt .tag { display: inline-block; font-size: .72cqw; font-weight: 650; color: var(--green); background: #EFFBF5; border-radius: 1cqw; padding: .1cqw .6cqw; margin: .25cqw .3cqw 0 0; }
.tgt svg { width: 2.6cqw; height: 2.6cqw; }
.tgt.full { border-color: var(--green); }
.decide { position: absolute; left: 50%; top: 10.5cqw; transform: translateX(-50%); width: 54cqw; padding: 1.8cqw 2.2cqw; }
.decide .sysn { font-size: 1.9cqw; font-weight: 700; margin: .3cqw 0 .2cqw; }
.decide .sysd { font-size: 1.05cqw; color: var(--muted); line-height: 1.5; }
.decide ul { list-style: none; padding: 0; margin: 1cqw 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .4cqw 1.4cqw; }
.decide li { font-size: .98cqw; display: flex; gap: .6cqw; align-items: center; }
.decide li i { font-style: normal; font-weight: 800; width: 1.4cqw; text-align: center; }
.decide li.y i { color: var(--green); } .decide li.n i { color: var(--amber); } .decide li.n { color: var(--amber); font-weight: 600; }
.decide .opts3 { display: grid; gap: .8cqw; margin-top: 1.4cqw; }
.decide .exp { margin-top: 1cqw; font-size: 1cqw; min-height: 2.8cqw; line-height: 1.45; }
.dash { position: absolute; left: 2cqw; right: 2cqw; top: 10.5cqw; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1cqw; }
.dash .k { padding: 1.1cqw 1.3cqw; opacity: 0; transform: translateY(.8cqw); transition: all .4s; }
.dash .k.on { opacity: 1; transform: none; }
.dash .k b { display: block; font-size: 2.6cqw; font-weight: 750; }
.dash .k span { font-size: .9cqw; color: var(--muted); }

/* XP */
#xp { position: absolute; right: 1cqw; top: .9cqw; min-width: 12cqw; background: rgba(255,255,255,.94); border-radius: 1cqw; padding: .55cqw .9cqw; box-shadow: 0 .4cqw 1.4cqw rgba(20,30,65,.12);
  display: grid; grid-template-columns: auto 1fr; column-gap: .6cqw; align-items: center; font-size: .8cqw; }
#xp:empty { display: none; }
#xp b { font-size: 1.2cqw; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
#xp span { font-weight: 650; }
#xp .xbar { grid-column: 1 / 3; height: .35cqw; background: #E9ECF3; border-radius: 1cqw; margin: .35cqw 0 .15cqw; overflow: hidden; }
#xp .xbar i { display: block; height: 100%; background: var(--grad); transition: width .5s; }
#xp em { grid-column: 1 / 3; font-style: normal; color: var(--muted); font-size: .7cqw; }
#xp.bump { animation: xpb .5s ease; } @keyframes xpb { 40% { transform: scale(1.08); } }
.act.lit, #bGloss.lit { background: var(--deep); color: #fff; }

/* alerts */
#alert { position: absolute; left: 50%; top: 6.4cqw; transform: translate(-50%, -1cqw); opacity: 0; pointer-events: none; display: flex; gap: 1cqw; align-items: center;
  padding: .8cqw 1.6cqw .8cqw 1cqw; border-radius: 1.2cqw; color: #fff; transition: opacity .25s, transform .25s; z-index: 30; box-shadow: 0 1cqw 3cqw rgba(0,0,0,.25); }
#alert.on { opacity: 1; transform: translate(-50%, 0); }
#alert.danger { background: linear-gradient(135deg, #FF5A4E, #C2261B); animation: apulse .5s ease-in-out 3; }
#alert.warn { background: linear-gradient(135deg, #FFB547, #EE6A3F); }
#alert.info { background: linear-gradient(135deg, #36B1FE, #7E6BE8); }
@keyframes apulse { 50% { transform: translate(-50%, 0) scale(1.05); } }
#alert .ai { width: 2.6cqw; height: 2.8cqw; display: grid; place-items: center; font-size: 1.4cqw; font-weight: 900; background: rgba(255,255,255,.22); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
#alert .at { font-size: 1.25cqw; font-weight: 800; letter-spacing: .12em; }
#alert .as { font-size: .9cqw; opacity: .92; margin-top: .15cqw; }
#vig { position: absolute; inset: 0; pointer-events: none; z-index: 29; opacity: 0; }
#vig.on { animation: vig 1.2s ease; }
#vig.danger { box-shadow: inset 0 0 6cqw 1cqw rgba(255,60,50,.65); } #vig.warn { box-shadow: inset 0 0 5cqw .5cqw rgba(255,170,60,.5); } #vig.info { box-shadow: inset 0 0 5cqw .5cqw rgba(94,143,245,.35); }
@keyframes vig { 0% { opacity: 0; } 15% { opacity: 1; } 30% { opacity: .4; } 45% { opacity: 1; } 100% { opacity: 0; } }

/* glossary */
#gloss { position: absolute; inset: 0; background: rgba(14,21,48,.55); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 31; }
#gloss .gwrap { width: 80cqw; height: 48cqw; padding: 1.6cqw 2cqw; display: flex; flex-direction: column; }
#gloss .ghead { display: flex; justify-content: space-between; align-items: flex-start; }
#gloss h2 { font-size: 2cqw; margin: .3cqw 0 .8cqw; }
#gloss .gbody { overflow: auto; columns: 3; column-gap: 1.6cqw; padding-right: .6cqw; }
#gloss .ggroup { break-inside: avoid-column; margin-bottom: 1cqw; }
#gloss .gstep { font-size: .72cqw; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: #5E8FF5; margin: .3cqw 0 .4cqw; }
#gloss .gterm { break-inside: avoid; background: #F7F8FC; border-radius: .8cqw; padding: .7cqw .9cqw; margin-bottom: .5cqw; }
#gloss .gterm b { font-size: 1cqw; }
#gloss .gterm p { margin: .3cqw 0 0; font-size: .82cqw; line-height: 1.5; color: var(--muted); }
#gloss .gterm p.gx { color: var(--deep); }
#gloss .gterm.locked { opacity: .45; }

/* briefing */
.brief .bcard { width: 64cqw; max-height: 50cqw; overflow: auto; }
/* the controls line and Start share one row, so the longest briefing (red team) fits without scrolling */
.brief .bfoot { display: flex; align-items: center; gap: 1.2cqw; margin-top: 1cqw; } .brief .bfoot .bhow { flex: 1; margin: 0; } .brief .bfoot .btn { margin: 0; flex: none; }
.bterms { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7cqw; margin: 1cqw 0; }
.bt { background: #F7F8FC; border-radius: .8cqw; padding: .7cqw .9cqw; }
.bt b { display: block; font-size: 1cqw; margin-bottom: .2cqw; } .bt span { font-size: .82cqw; line-height: 1.45; color: var(--muted); }
.bhow { font-size: .95cqw; background: #EEF2FB; border-radius: .8cqw; padding: .6cqw .9cqw; margin-bottom: 1cqw; }

/* red team arena HUD */
.rt-top { position: absolute; left: 1.6cqw; right: 1.6cqw; top: 1.2cqw; display: flex; justify-content: space-between; align-items: center; color: #fff; pointer-events: none; }
.rt-title { font-size: 1.6cqw; font-weight: 750; }
.rt-cov { display: flex; align-items: center; gap: .8cqw; font-size: .9cqw; }
.rt-cov span, .rt-hearts span { opacity: .7; font-size: .75cqw; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.rt-bar { width: 18cqw; height: .7cqw; border-radius: 1cqw; background: rgba(255,255,255,.12); overflow: hidden; } .rt-bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .4s; }
.rt-hearts { display: flex; align-items: center; gap: .6cqw; } .rt-hearts svg { width: 1.8cqw; height: 1.8cqw; }
.rt-probes { position: absolute; left: 50%; transform: translateX(-50%); bottom: 1.2cqw; display: flex; gap: .6cqw; }
.rt-probe { font: inherit; display: flex; align-items: center; gap: .6cqw; padding: .55cqw .9cqw .55cqw .55cqw; border-radius: 1cqw; border: 2px solid rgba(255,255,255,.12); background: rgba(20,30,65,.75); color: #fff; cursor: pointer; text-align: left; transition: transform .12s; }
.rt-probe i { width: 1.4cqw; height: 1.6cqw; background: var(--c); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.rt-probe b { font-size: .92cqw; display: block; } .rt-probe small { font-size: .7cqw; opacity: .65; }
.rt-probe kbd { background: rgba(255,255,255,.9); }
.rt-probe.sel { border-color: var(--c); transform: translateY(-.4cqw); box-shadow: 0 0 1.4cqw -.2cqw var(--c); }
.rt-probe.held small { color: #3DD6A0; opacity: 1; } .rt-probe.weak small { color: #FF7A59; opacity: 1; font-weight: 700; }
.rt-say { position: absolute; max-width: 26cqw; padding: .8cqw 1.1cqw; border-radius: 1.1cqw; font-size: 1cqw; line-height: 1.45; opacity: 0; transform: translateY(.6cqw); transition: all .3s; pointer-events: none; }
.rt-say.on { opacity: 1; transform: none; }
.rt-say small { display: block; font-size: .68cqw; letter-spacing: .12em; text-transform: uppercase; font-weight: 750; margin-bottom: .25cqw; }
.rt-say.me { left: 3cqw; top: 6.5cqw; background: rgba(255,255,255,.95); color: var(--deep); border-bottom-left-radius: .3cqw; }
.rt-say.bot { right: 3cqw; top: 6.5cqw; background: rgba(11,18,48,.92); color: #fff; border: 1px solid rgba(255,255,255,.15); border-bottom-right-radius: .3cqw; }
.rt-intel { position: absolute; left: 1.6cqw; bottom: 6cqw; width: 24cqw; background: rgba(255,255,255,.96); border-radius: 1.1cqw; padding: 1cqw 1.2cqw; opacity: 0; transform: translateX(-2cqw); transition: all .35s; border-left: .35cqw solid #5E8FF5; }
.rt-intel.on { opacity: 1; transform: none; } .rt-intel.bad { border-left-color: #FF5A4E; } .rt-intel.ok { border-left-color: #22A77A; }
.rt-intel b { font-size: 1.15cqw; display: block; margin: .25cqw 0; } .rt-intel p { margin: .3cqw 0 0; font-size: .84cqw; line-height: 1.5; color: var(--muted); } .rt-intel p.gx { color: var(--deep); }
.rt-tip { position: absolute; left: 50%; bottom: 6.2cqw; transform: translateX(-50%); color: #fff; background: rgba(11,18,48,.85); padding: .5cqw 1cqw; border-radius: 1cqw; font-size: .9cqw; opacity: 0; }
.rt-tip.on { animation: tipf 2.4s ease; } @keyframes tipf { 10%, 80% { opacity: 1; } }
.fixopts { display: grid; gap: .7cqw; margin-top: 1cqw; }
#mgs { touch-action: none; }

/* AI register panel (left) */
#reg { display: none !important; }
#regp { left: 1cqw; top: 10.4cqw; bottom: 4.4cqw; width: 19cqw; padding: .8cqw .9cqw; display: flex; flex-direction: column; transition: width .3s, opacity .3s; }
#regp.flash { animation: rflash .8s ease; } @keyframes rflash { 30% { box-shadow: 0 0 0 .3cqw rgba(94,143,245,.45), 0 .6cqw 1.8cqw rgba(20,30,65,.14); } }
#regp.closed { width: 9cqw; bottom: auto; } #regp.closed .rp-body { display: none; }
.rp-head { display: flex; justify-content: space-between; align-items: center; }
.rp-head b { font-size: 1.15cqw; }
.rp-tog { font: inherit; font-size: 1.2cqw; width: 2cqw; height: 2cqw; border-radius: .6cqw; border: 1px solid var(--line); background: #fff; cursor: pointer; line-height: 1; }
.rp-body { overflow-y: auto; margin-top: .5cqw; padding-right: .3cqw; flex: 1; }
.rp-stats { display: flex; gap: .4cqw; flex-wrap: wrap; font-size: .7cqw; color: var(--muted); }
.rp-stats span { background: #F4F6FB; border-radius: 1cqw; padding: .15cqw .55cqw; } .rp-stats b { color: var(--deep); }
.rp-sec { font-size: .66cqw; letter-spacing: .14em; text-transform: uppercase; font-weight: 750; color: #5E8FF5; margin: .8cqw 0 .35cqw; display: flex; justify-content: space-between; }
.rp-sec em { font-style: normal; color: var(--muted); letter-spacing: .04em; text-transform: none; font-weight: 600; }
.rr { display: grid; grid-template-columns: 1.8cqw 1fr .6cqw; gap: .5cqw; align-items: center; padding: .3cqw 0; border-bottom: 1px solid #F0F2F7; }
.rr .ri svg { width: 1.8cqw; height: 1.8cqw; display: block; }
.rm b { font-size: .8cqw; font-weight: 650; display: block; line-height: 1.2; } .rs { font-size: .64cqw; color: var(--muted); margin-top: .1cqw; } .rs i { color: #EE6A3F; }
.tier { font-size: .58cqw; font-weight: 750; padding: 0 .35cqw; border-radius: .4cqw; }
.t-High { background: #FFE7DE; color: #C2410C; } .t-Limited { background: #FFF3D6; color: #A16207; } .t-Minimal { background: #E3F7EE; color: #15803D; } .t-none { background: #F1F3F8; color: #9AA1BA; }
.rb { height: .28cqw; background: #EEF0F5; border-radius: 1cqw; margin-top: .2cqw; overflow: hidden; } .rb i { display: block; height: 100%; border-radius: 1cqw; transition: width .5s; }
.rb.big { height: .55cqw; }
.rd { width: .55cqw; height: .55cqw; border-radius: 50%; }
.sr { display: flex; gap: .5cqw; align-items: center; padding: .25cqw 0; }
.sr .sh { width: 1.5cqw; height: 1.6cqw; flex: none; display: grid; place-items: center; font-size: .75cqw; font-weight: 800; color: #9AA1BA; border: 1.5px dashed #C9D1E1; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: #fff; }
.sr.ok .sh { background: #22A77A; color: #fff; border: 0; }
.sr b { font-size: .76cqw; display: block; } .sr small { font-size: .64cqw; color: var(--muted); } .sr:not(.ok) b { color: #9AA1BA; }
.pen { background: #FFF6F1; border-left: .22cqw solid #EE6A3F; border-radius: .4cqw; padding: .35cqw .55cqw; margin-top: .35cqw; }
.pen b { font-size: .72cqw; display: block; color: #B4471F; } .pen small { font-size: .64cqw; color: var(--muted); line-height: 1.35; display: block; }
.pen.none { background: #F4F6FB; border-color: #22A77A; } .pen.inc { background: #FFE9E7; border-color: #C2261B; }
/* incident timeline */
.inc-tl { position: absolute; left: 50%; transform: translateX(-50%); top: 8.6cqw; display: flex; gap: .5cqw; }
.inc-tl .it { display: flex; align-items: center; gap: .4cqw; font-size: .9cqw; font-weight: 650; color: #9AA1BA; background: #fff; border-radius: 1cqw; padding: .3cqw .8cqw .3cqw .3cqw; border: 1px solid var(--line); }
.inc-tl .it i { font-style: normal; width: 1.4cqw; height: 1.4cqw; border-radius: 50%; display: grid; place-items: center; background: #F1F3F8; font-size: .75cqw; }
.inc-tl .it.cur { color: #C2261B; border-color: #FF8A80; } .inc-tl .it.cur i { background: #FF5A4E; color: #fff; }
.inc-tl .it.done { color: #22A77A; } .inc-tl .it.done i { background: #22A77A; color: #fff; }

#confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 32; }
.controw { display: flex; gap: 1cqw; align-items: center; }
.savedinfo { font-size: .9cqw; color: var(--muted); margin-top: .8cqw; }

.brandrow { display: flex; align-items: center; gap: .45cqw; font-size: .78cqw; font-weight: 700; color: var(--deep); margin-bottom: .3cqw; }
.brandrow img { width: 1.3cqw; height: 1.3cqw; } .brandrow.dark { color: #fff; }
#jwrap { position: absolute; left: 50%; top: .9cqw; transform: translateX(-50%); display: flex; align-items: center; gap: .6cqw; background: rgba(255,255,255,.92); border-radius: 1cqw; box-shadow: 0 .4cqw 1.4cqw rgba(20,30,65,.12); padding-left: .9cqw; }
#jwrap #journey { position: static; transform: none; box-shadow: none; background: none; }
.jbrand { display: grid; grid-template-columns: auto auto; column-gap: .4cqw; align-items: center; border-right: 1px solid var(--line); padding-right: .9cqw; }
.jbrand img { width: 1.9cqw; grid-row: 1 / 3; } .jbrand span { font-size: .9cqw; font-weight: 750; } .jbrand small { font-size: .62cqw; color: var(--muted); }

.agentbtn { position: absolute; right: 1.6cqw; bottom: 1.4cqw; z-index: 5; font: inherit; font-weight: 700; font-size: 1cqw; display: flex; align-items: center; gap: .5cqw; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #141E41, #3C4C82); border: 1px solid rgba(124,200,255,.5); border-radius: 99cqw; padding: .6cqw 1.1cqw; box-shadow: 0 0 1.4cqw -.2cqw #5E8FF5; animation: abt 2s ease-in-out infinite; }
.agentbtn img { width: 1.2cqw; } .agentbtn span { color: #FFC14D; } .agentbtn kbd { margin-left: .3cqw; }
@keyframes abt { 50% { box-shadow: 0 0 2.2cqw .1cqw #AB5FCE; } }
.agentbar { position: absolute; left: 50%; transform: translateX(-50%); bottom: 1.4cqw; z-index: 5; display: flex; align-items: center; gap: .5cqw; font-size: .95cqw; color: #fff;
  background: rgba(20,30,65,.92); border-radius: 99cqw; padding: .5cqw 1.1cqw; }
.agentbar img { width: 1.2cqw; } .agentbar b { font-weight: 700; }
.spin { width: 1cqw; height: 1cqw; border-radius: 50%; border: .18cqw solid rgba(255,255,255,.25); border-top-color: #7CC8FF; animation: spn .8s linear infinite; } @keyframes spn { to { transform: rotate(360deg); } }
.agentlog { position: absolute; right: 1.6cqw; bottom: 4.6cqw; width: 26cqw; z-index: 5; display: flex; flex-direction: column; gap: .3cqw; pointer-events: none; }
.agentlog div { background: rgba(20,30,65,.9); color: #DDE6FF; font-size: .8cqw; border-radius: .7cqw; padding: .35cqw .7cqw; display: flex; gap: .5cqw; align-items: center; animation: tin .3s ease; }
.agentlog i { width: .6cqw; height: .6cqw; border-radius: 50%; background: #3DD6A0; flex: none; }
.agentnote { display: flex; gap: .6cqw; align-items: flex-start; background: #EEF2FB; border-radius: .8cqw; padding: .6cqw .8cqw; font-size: .95cqw !important; color: var(--deep) !important; }
.agentnote img { width: 1.4cqw; margin-top: .15cqw; }
.agentact { background: linear-gradient(135deg, #141E41, #3C4C82) !important; color: #fff !important; }

/* decision cards v2: big readable option tiles, feedback panel only when there is feedback */
.decide { padding: 1.8cqw 2cqw 1.6cqw !important; }
.decide .sysn { font-size: 1.75cqw !important; line-height: 1.2; }
.decide .opts3 { gap: 1cqw !important; margin-top: 1.3cqw !important; }
.decide .tier { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .35cqw; text-align: left;
  min-height: 6.2cqw; padding: 1.1cqw 3.4cqw 1.1cqw 1.3cqw !important; font: 650 1.15cqw/1.3 Geist, Inter, sans-serif !important; color: var(--deep);
  background: #fff; border: 2px solid #E3E6EF !important; border-radius: 1.1cqw !important; box-shadow: 0 .3cqw 0 #E3E6EF; transition: transform .12s, border-color .12s, box-shadow .12s, background .2s; }
.decide .tier small { font: 500 .88cqw/1.35 Geist, Inter, sans-serif !important; color: var(--muted) !important; margin: 0 !important; }
.decide .tier kbd { position: absolute; top: .8cqw; right: .8cqw; float: none !important; margin: 0; }
.decide .tier:hover { transform: translateY(-.25cqw); border-color: var(--cer) !important; box-shadow: 0 .55cqw 0 #CFE9FF; background: #F7FBFF; }
.decide .tier.right { border-color: var(--green) !important; background: #EFFBF5; box-shadow: 0 .3cqw 0 #BDEBD5; }
.decide .tier.right::after { content: "✓"; position: absolute; right: .8cqw; bottom: .7cqw; width: 1.7cqw; height: 1.7cqw; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .9cqw; font-weight: 800; }
.decide .tier.wrong { border-color: #FF8A6B !important; background: #FFF4EF; box-shadow: 0 .3cqw 0 #FFD2C2; animation: shk .35s; }
.decide .exp { min-height: 0 !important; margin-top: 1cqw; }
.decide .exp:empty { display: none; }
.decide .exp:not(:empty) { display: flex; gap: .8cqw; align-items: flex-start; padding: .8cqw 1.1cqw; border-radius: .9cqw; background: #F4F6FB; font-size: 1.02cqw !important; line-height: 1.5; animation: tin .3s ease; }
.decide .exp b { white-space: nowrap; }
/* incident scene */
.inc-post { position: absolute; right: 2cqw; top: 13cqw; width: 19cqw; background: #fff; border-radius: 1.1cqw; box-shadow: 0 .6cqw 1.8cqw rgba(20,30,65,.14); padding: 1cqw 1.1cqw; font-size: .9cqw; line-height: 1.45; }
.inc-post .ph { display: flex; gap: .6cqw; align-items: center; margin-bottom: .5cqw; } .inc-post .av { width: 2cqw; height: 2cqw; border-radius: 50%; background: #FFB25E; }
.inc-post .ph b { font-size: .9cqw; } .inc-post .ph small { color: var(--muted); font-size: .75cqw; display: block; }
.inc-post .shot { margin-top: .6cqw; background: #F4F6FB; border-radius: .7cqw; padding: .6cqw .8cqw; font-size: .82cqw; }
.inc-post .shot b { color: #C2410C; }
.inc-post .meta { margin-top: .6cqw; font-size: .75cqw; color: var(--muted); display: flex; gap: 1cqw; }
.inc-count { position: absolute; left: 2cqw; top: 13cqw; width: 15cqw; background: #141E41; color: #fff; border-radius: 1.1cqw; padding: 1cqw 1.2cqw; }
.inc-count small { font-size: .7cqw; letter-spacing: .14em; text-transform: uppercase; opacity: .7; font-weight: 700; }
.inc-count b { display: block; font-size: 3cqw; font-weight: 800; line-height: 1.1; } .inc-count.live b { color: #FF7A59; } .inc-count.ok b { color: #3DD6A0; }
.inc-count span { font-size: .8cqw; opacity: .8; }

/* classify v2: agent proposal + human review */
.cl2 { position: absolute; left: 50%; transform: translateX(-50%); top: 10.2cqw; width: 70cqw; padding: 1.5cqw 1.8cqw 1.4cqw; }
.cl-top { display: grid; grid-template-columns: 4.6cqw 1fr auto; gap: 1.2cqw; align-items: center; }
.cl-ic svg { width: 4.6cqw; height: 4.6cqw; } .cl-n { font-size: 1.8cqw; font-weight: 750; line-height: 1.15; } .cl-d { font-size: 1cqw; color: var(--muted); margin-top: .15cqw; }
.cl2 .dots { margin: 0; align-self: start; } .cl2 .dots i.cur { box-shadow: 0 0 0 .2cqw #CFE9FF; }
.cl-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.2cqw; margin-top: 1.1cqw; }
.cl-h { font-size: .68cqw; letter-spacing: .14em; text-transform: uppercase; font-weight: 750; color: var(--muted); margin-bottom: .45cqw; }
.cl-ev { background: #F7F8FC; border-radius: 1cqw; padding: .9cqw 1cqw; }
.src { display: grid; grid-template-columns: 2cqw 1fr auto; gap: .6cqw; align-items: center; background: #fff; border-radius: .7cqw; padding: .5cqw .7cqw; margin-bottom: .4cqw; border: 1px solid #EDF0F6; animation: tin .3s ease; }
.src .si { width: 2cqw; height: 2cqw; border-radius: .5cqw; display: grid; place-items: center; background: #EEF2FB; color: #3C4C82; font-weight: 800; font-size: .85cqw; }
.src b { font-size: .86cqw; display: block; } .src small { font-size: .74cqw; color: var(--muted); line-height: 1.35; display: block; }
.src em { font-style: normal; font-size: .64cqw; font-weight: 700; color: #22A77A; background: #EFFBF5; border-radius: 1cqw; padding: .1cqw .5cqw; white-space: nowrap; }
.upl { font: inherit; width: 100%; margin-top: .2cqw; border: 2px dashed #C9D1E1; background: #fff; border-radius: .8cqw; padding: .6cqw; font-size: .9cqw; font-weight: 650; color: #3C4C82; cursor: pointer; }
.upl:hover { border-color: var(--cer); background: #F3FAFF; } .upl small { font-weight: 400; color: var(--muted); font-size: .74cqw; margin-left: .3cqw; }
.cl-ag { border-radius: 1cqw; padding: .9cqw 1.1cqw; background: linear-gradient(160deg, #EEF5FF, #F5EEFC); border: 1px solid #DCE6F8; }
.cl-ag.low { background: linear-gradient(160deg, #FFF7EC, #FFF1EC); border-color: #FFD9B8; }
.prop { display: inline-block; font-size: 1.5cqw; font-weight: 800; padding: .2cqw .9cqw; border-radius: .7cqw; }
.prop.t-high { background: #FFE7DE; color: #C2410C; } .prop.t-limited { background: #FFF3D6; color: #A16207; } .prop.t-minimal { background: #E3F7EE; color: #15803D; } .prop.t-prohibited { background: #141E41; color: #fff; }
.conf { display: grid; grid-template-columns: auto 1fr auto; gap: .6cqw; align-items: center; margin: .7cqw 0 .4cqw; font-size: .8cqw; color: var(--muted); }
.cbar { height: .5cqw; border-radius: 1cqw; background: rgba(20,30,65,.08); overflow: hidden; } .cbar i { display: block; height: 100%; background: var(--grad); }
.cl-ag.low .cbar i { background: linear-gradient(90deg, #FFB547, #EE6A3F); }
.conf b { color: var(--deep); font-size: .95cqw; }
.cl-ag ul { margin: .3cqw 0 0; padding-left: 1.1cqw; font-size: .88cqw; line-height: 1.55; }
.lowtag { margin-top: .6cqw; font-size: .82cqw; font-weight: 700; color: #C2410C; }
.cl-act { display: flex; gap: .8cqw; margin-top: 1.1cqw; align-items: center; }
.ghostb { background: #fff !important; color: var(--deep) !important; border: 2px solid #E3E6EF !important; box-shadow: none !important; }
.tiers4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7cqw; width: 100%; }
.tiers4 .tier { font: 650 1.05cqw Geist, sans-serif; padding: .9cqw; border-radius: .9cqw; border: 2px solid #E3E6EF; background: #fff; cursor: pointer; display: flex; gap: .5cqw; align-items: center; }
.tiers4 .tier:hover { border-color: var(--cer); }
.cl2 .exp:empty { display: none; } .cl2 .exp:not(:empty) { margin-top: .9cqw; padding: .7cqw 1cqw; border-radius: .9cqw; background: #F4F6FB; font-size: 1cqw; line-height: 1.5; }
.jbrand span, .jbrand small { white-space: nowrap; }

/* proposal review (Register, Controls) */
.pr { position: absolute; left: 2cqw; right: 2cqw; top: 9.6cqw; bottom: 1.6cqw; padding: 1.1cqw 1.4cqw; display: flex; flex-direction: column; }
.pr-top { display: flex; align-items: center; gap: 1.4cqw; } .pr-top .brandrow { margin: 0; font-size: .9cqw; }
.pr-prog { flex: 1; display: flex; align-items: center; gap: .7cqw; font-size: .82cqw; color: var(--muted); } .pr-prog .cbar { flex: 1; max-width: 16cqw; }
.pr-head, .pr-row { display: grid; grid-template-columns: 1.1fr 1.6fr .55fr 1fr; gap: 1cqw; align-items: center; }
.pr-head { font-size: .66cqw; letter-spacing: .14em; text-transform: uppercase; font-weight: 750; color: var(--muted); padding: .9cqw .8cqw .4cqw; }
.pr-rows { overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: .35cqw; }
.pr-row { background: #fff; border: 1.5px solid #EDF0F6; border-radius: .8cqw; padding: .5cqw .8cqw; transition: background .2s, border-color .2s; }
.pr-row.low { border-color: #FFD2A8; background: #FFFAF3; } .pr-row.ok { background: #F3FBF7; border-color: #CDEFDD; } .pr-row.bad { border-color: #FF8A6B; background: #FFF4EF; animation: shk .35s; }
.pl b, .pp b { font-size: .88cqw; display: block; line-height: 1.25; } .pl small, .pp small { font-size: .72cqw; color: var(--muted); display: block; line-height: 1.3; }
.pp { display: grid; grid-template-columns: 1.7cqw 1fr; gap: .6cqw; align-items: center; } .pp svg { width: 1.7cqw; height: 1.7cqw; }
.noai { width: 1.7cqw; height: 1.7cqw; display: grid; place-items: center; border-radius: 50%; background: #F1F3F8; color: #9AA1BA; font-weight: 800; }
.pc { display: flex; flex-direction: column; gap: .15cqw; align-items: flex-start; } .pc em { font-style: normal; font-size: .64cqw; font-weight: 750; color: #C2410C; text-transform: uppercase; letter-spacing: .1em; }
.cpill { font-size: .8cqw; font-weight: 750; padding: .1cqw .55cqw; border-radius: 1cqw; } .cpill.hi { background: #E3F7EE; color: #15803D; } .cpill.lo { background: #FFE7DE; color: #C2410C; }
.pa { display: flex; gap: .4cqw; align-items: center; }
.mini { font: inherit; font-size: .8cqw; font-weight: 650; border-radius: .6cqw; padding: .35cqw .6cqw; cursor: pointer; border: 1.5px solid #E3E6EF; background: #fff; color: var(--deep); }
.mini.acc:hover { border-color: var(--green); background: #EFFBF5; } select.mini { max-width: 9cqw; } select.mini:hover { border-color: var(--cer); }
.okt { font-size: .82cqw; font-weight: 700; color: var(--green); }
.pr .exp:empty { display: none; } .pr .exp:not(:empty) { margin-top: .6cqw; padding: .6cqw .9cqw; border-radius: .8cqw; background: #F4F6FB; font-size: .95cqw; line-height: 1.45; }

#mgui.agenton .pr { right: 29cqw; bottom: 4.4cqw; }
#mgui.agenton .pr-head, #mgui.agenton .pr-row { grid-template-columns: 1fr 1.4fr .5fr 1fr; }

/* enterprise: no XP chip; Modules button + menu; agent cast */
#xp { display: none !important; }
#modBtn { position: absolute; right: 1cqw; top: .9cqw; font: inherit; font-size: .95cqw; font-weight: 700; color: var(--deep); background: rgba(255,255,255,.95); border: 1px solid rgba(20,30,65,.08);
  border-radius: 1cqw; padding: .6cqw 1cqw; display: flex; gap: .5cqw; align-items: center; cursor: pointer; box-shadow: 0 .4cqw 1.4cqw rgba(20,30,65,.12); }
#modBtn:hover { border-color: var(--cer); } #modBtn em { font-style: normal; color: var(--muted); font-weight: 600; }
#modules { position: absolute; inset: 0; z-index: 33; background: rgba(14,21,48,.55); backdrop-filter: blur(3px); display: grid; place-items: center; }
.mwrap { width: 68cqw; padding: 1.6cqw 2cqw; }
.mhead { display: flex; justify-content: space-between; align-items: flex-start; } .mhead h2 { font-size: 2cqw; margin: .2cqw 0; } .mhead p { margin: 0 0 .8cqw; color: var(--muted); font-size: .95cqw; }
.mlist { display: flex; flex-direction: column; gap: .45cqw; }
.mrow { display: grid; grid-template-columns: 2.4cqw 1fr 6cqw 22cqw; gap: 1cqw; align-items: center; padding: .55cqw .9cqw; border-radius: .9cqw; border: 1.5px solid #EDF0F6; background: #fff; }
.mrow.done { background: #F3FBF7; border-color: #CDEFDD; } .mrow.cur { border-color: #8CCBFF; background: #F3FAFF; box-shadow: 0 0 0 .2cqw rgba(54,177,254,.15); } .mrow.locked { opacity: .55; }
.mnum { width: 2.2cqw; height: 2.4cqw; display: grid; place-items: center; font-weight: 800; font-size: .9cqw; color: #fff; background: #9AA1BA; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.mrow.done .mnum { background: var(--green); } .mrow.cur .mnum { background: var(--grad); } .mrow.locked .mnum { background: #DCE1EC; font-size: .75cqw; }
.mtxt b { font-size: 1.05cqw; display: block; } .mtxt small { font-size: .78cqw; color: var(--muted); }
.mstars { color: #FFC14D; letter-spacing: .1em; font-size: 1.05cqw; } .mstars .off { color: #DADFEA; }
.mact { display: flex; gap: .4cqw; justify-content: flex-end; flex-wrap: wrap; } .mlock { font-size: .8cqw; color: var(--muted); }
.mini2 { font-size: .85cqw !important; padding: .45cqw .9cqw !important; box-shadow: none !important; } .btn.mini2:not(.grad) { background: #fff; color: var(--deep); border: 1.5px solid #E3E6EF; }
.mfoot { display: flex; align-items: center; gap: 1cqw; margin-top: 1cqw; font-size: .82cqw; color: var(--muted); }
.btn.danger { background: #fff; color: #C2261B; border: 1.5px solid #FFB4A8; box-shadow: none; font-size: .9cqw; padding: .55cqw 1.1cqw; }
.bagent { display: grid; grid-template-columns: 5cqw 1fr; gap: 1cqw; align-items: center; background: #F4F6FB; border-radius: 1cqw; padding: .6cqw 1cqw; margin-bottom: 1cqw; }
.bagent svg { width: 5cqw; height: 6.5cqw; } .bagent small { display: block; font-size: .7cqw; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #5E8FF5; }
.bagent b { font-size: 1.3cqw; display: block; } .bagent span { font-size: .85cqw; color: var(--muted); line-height: 1.45; }

/* ── 3D world (world3d.js) ── */
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#stage.w3d { background: #DDE8F3; }
#stage.w3d #view { pointer-events: auto; touch-action: none; }
#stage.w3d #screen { background: radial-gradient(120% 90% at 30% 20%, rgba(255,255,255,.9) 0%, rgba(238,243,255,.74) 45%, rgba(230,226,247,.6) 100%); backdrop-filter: blur(3px); }
/* toasts step down while an alert banner is showing, so they never overlap */
#toasts { transition: top .25s ease; }
#stage:has(#alert.on) #toasts { top: 11.4cqw; }
/* 3D red-team arena: the WebGL canvas sits inside #mg, under the SVG and HUD */
#mg.a3d { background: #0B1230; }
#mgs.a3d .rt2d { display: none; }
/* Step 9 · the board meeting */
#mg.a3d.a3dlight { background: #E6ECF5; }
.mt-agenda { position: absolute; right: 1.6cqw; top: 1.4cqw; width: 17cqw; background: rgba(255,255,255,.94); border-radius: 1.1cqw; padding: .9cqw 1.1cqw; box-shadow: 0 .4cqw 1.6cqw -.6cqw rgba(20,30,65,.35); }
.mt-st { display: flex; gap: .7cqw; align-items: center; padding: .38cqw 0; opacity: .5; }
.mt-st i { font-style: normal; width: 1.6cqw; height: 1.6cqw; border-radius: 50%; display: grid; place-items: center; font-size: .78cqw; font-weight: 750; background: #E8ECF4; color: var(--deep); flex: none; }
.mt-st b { display: block; font-size: .92cqw; } .mt-st small { font-size: .72cqw; color: var(--muted); }
.mt-st.on { opacity: 1; } .mt-st.on i { background: var(--grad); color: #fff; } .mt-st.done { opacity: .85; } .mt-st.done i { background: #22A77A; color: #fff; }
.mt-card { position: absolute; left: 50%; bottom: 1.4cqw; transform: translateX(-50%); width: 64cqw; display: flex; gap: 1.2cqw; align-items: flex-start; padding: 1.2cqw 1.6cqw; }
.mt-av { width: 5.2cqw; height: 6cqw; flex: none; background: #F1F4FA; border-radius: .9cqw; overflow: hidden; display: grid; place-items: end center; }
.mt-av svg { width: 100%; height: 100%; } .mt-av.mel svg { width: 5.6cqw; height: 6.2cqw; }
.mt-body { flex: 1; min-width: 0; }
.mt-line { font-size: 1.32cqw; font-weight: 600; line-height: 1.42; margin: .3cqw 0 .6cqw; color: var(--deep); }
.mt-next { font-size: .95cqw; padding: .55cqw 1.1cqw; }
.mt-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6cqw; }
.mt-votes { display: flex; gap: .5cqw; } .mt-votes span { font-size: .85cqw; padding: .35cqw .7cqw; border-radius: 1cqw; background: #E8ECF4; color: var(--muted); transition: all .25s; }
.mt-votes span.on { background: #22A77A; color: #fff; }
.takeover { font: inherit; font-size: .85cqw; font-weight: 700; margin-left: .6cqw; padding: .25cqw .7cqw; border-radius: 99cqw; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.takeover:hover { background: rgba(255,255,255,.25); }
#mgui:has(.mt-card) .agentbar { bottom: auto; top: 1.2cqw; }
#mgui:has(.mt-card) .agentlog { bottom: auto; top: 12cqw; }
.mt-opts .tier { font-size: .95cqw; line-height: 1.35; text-align: left; padding: .7cqw .8cqw; font-weight: 600; }
#mg.a3d .mg-head { background: rgba(255,255,255,.9); border-radius: 1.1cqw; padding: .8cqw 1.2cqw; box-shadow: 0 .4cqw 1.6cqw -.6cqw rgba(20,30,65,.35); }
.mt-hint { margin-left: 1cqw; font-size: .78cqw; color: var(--muted); }
/* use cases: the picker */
.ucpick { z-index: 40; }
.ucpick .ucwrap { width: 78cqw; padding: 1.8cqw 2.2cqw; }
.ucpick h2 { margin: .4cqw 0 .3cqw; } .ucsub { font-size: 1.05cqw; color: var(--muted); margin: 0 0 1cqw; max-width: 60cqw; line-height: 1.5; }
.ucgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .7cqw; }
.uccard { font: inherit; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .25cqw; text-align: left; padding: .9cqw 1cqw; border-radius: 1cqw; border: 2px solid var(--line); background: #fff; cursor: pointer; transition: transform .12s, border-color .12s; }
.uccard svg { width: 2.8cqw; height: 2.8cqw; } .uccard b { font-size: 1.02cqw; } .uccard small { font-size: .78cqw; color: var(--muted); }
.uccard kbd { position: absolute; right: .6cqw; top: .6cqw; font-size: .7cqw; }
.uccard span.tier { font-size: .7cqw; font-weight: 700; padding: .15cqw .5cqw; border-radius: 99cqw; margin-top: .2cqw; border: 0; cursor: inherit; }
.uccard:hover { border-color: var(--cer); } .uccard.sel { border-color: #5E8FF5; box-shadow: 0 0 0 .25cqw rgba(94,143,245,.18); transform: translateY(-.2cqw); }
.ucrow { display: flex; align-items: center; gap: 1cqw; margin-top: 1.2cqw; }
.ucrow label { font-size: .9cqw; font-weight: 650; display: flex; flex-direction: column; gap: .3cqw; }
.ucrow input { font: inherit; font-size: 1cqw; width: 26cqw; padding: .6cqw .8cqw; border-radius: .7cqw; border: 2px solid var(--line); outline: none; } .ucrow input:focus { border-color: #5E8FF5; }
.ucrow .btn { margin-left: auto; }
.ucnote { font-size: .8cqw; color: var(--muted); }
/* use cases: your system panel */
#ucp { z-index: 35; }
.ucpanel { width: 70cqw !important; max-height: 52cqw; display: flex; flex-direction: column; padding: 1.6cqw 2cqw !important; }
.ucph { display: flex; gap: 1.2cqw; align-items: center; } .ucph h2 { margin: .1cqw 0 .3cqw !important; font-size: 1.9cqw !important; } .ucph svg { width: 3.6cqw; height: 3.6cqw; }
.ucmeta { display: flex; gap: .8cqw; align-items: center; font-size: .85cqw; color: var(--muted); } .ucmeta .tier { font-size: .75cqw; font-weight: 700; padding: .15cqw .55cqw; border-radius: 99cqw; border: 0; }
.uchitl { background: #FFF7E8; border-left: .3cqw solid #FFC14D; border-radius: .8cqw; padding: .6cqw .9cqw; width: 17cqw; } .uchitl b { display: block; font-size: .9cqw; } .uchitl span { font-size: .78cqw; color: var(--muted); }
.ucrows { overflow: auto; margin: 1cqw 0; padding-right: .4cqw; display: flex; flex-direction: column; gap: .4cqw; }
.ucr { display: flex; gap: .9cqw; padding: .6cqw .8cqw; border-radius: .8cqw; background: #F7F8FC; }
.ucr.lock { opacity: .5; } .ucr.pend { background: #FFF6F1; outline: 2px solid #FFC56E; }
.ucn { width: 1.8cqw; height: 2cqw; flex: none; display: grid; place-items: center; font-weight: 800; font-size: .85cqw; color: #fff; background: #C9D1E1; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.ucr.done .ucn, .ucr.auto .ucn { background: #22A77A; } .ucr.pend .ucn { background: #EE6A3F; }
.ucm { flex: 1; min-width: 0; } .uch { display: flex; align-items: center; gap: .7cqw; } .uch b { font-size: .95cqw; } .uca { font-size: .78cqw; color: var(--muted); }
.ucchip { margin-left: auto; font-size: .72cqw; font-weight: 700; padding: .15cqw .55cqw; border-radius: 99cqw; background: #E8ECF4; color: var(--muted); }
.ucchip.ok { background: #E3F7EE; color: #15803D; } .ucchip.wait { background: #FFE7DE; color: #C2410C; }
.uct { font-size: .95cqw; margin-top: .15cqw; } .ucr ul { margin: .35cqw 0 .3cqw; padding-left: 1.2cqw; font-size: .85cqw; color: var(--muted); } .ucr li { margin: .1cqw 0; }
.ucbtns { display: flex; gap: .6cqw; align-items: center; margin-top: .3cqw; } .btn.sm { font-size: .85cqw; padding: .4cqw .9cqw; }
.ucfoot { display: flex; align-items: center; gap: 1cqw; } .ucfoot .btn.grad { margin-left: auto; }
/* HUD: Autopilot + your system */
.act.uc i { font-style: normal; font-size: .72cqw; font-weight: 800; margin-left: .4cqw; padding: .05cqw .45cqw; border-radius: 99cqw; background: #E8ECF4; color: var(--muted); }
.act.uc.has i { background: #EE6A3F; color: #fff; } .act.uc.has { border-color: #FFC56E; }
.act.ap.on { background: linear-gradient(135deg, #141E41, #3C4C82); color: #fff; } .act.ap.on kbd { color: var(--deep); }
#apChip { position: absolute; left: 50%; top: 6.4cqw; transform: translateX(-50%); display: flex; align-items: center; gap: .6cqw; background: rgba(20,30,65,.92); color: #fff; font-size: .9cqw; border-radius: 99cqw; padding: .45cqw .6cqw .45cqw 1cqw; box-shadow: 0 0 1.4cqw -.3cqw #5E8FF5; z-index: 6; }
#apChip img { width: 1.1cqw; } #apChip b { font-weight: 700; } #apChip #apWhat { color: #C9D3F2; max-width: 32cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#apChip button { font: inherit; font-size: .8cqw; font-weight: 700; padding: .25cqw .7cqw; border-radius: 99cqw; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
#apChip.wait { background: #EE6A3F; box-shadow: 0 0 1.4cqw -.3cqw #EE6A3F; } #apChip.wait .spin { display: none; } #apChip.wait #apWhat { color: #fff; }
#apChip { z-index: 30; } #apChip.inmg { top: auto; bottom: 4.6cqw; }
.agentbar.yours { background: #EE6A3F; }
/* layout pass (game lint, 2026-11-06) */
.agentbtn { bottom: auto; top: 1.4cqw; }
#mgui[data-kind="redteam"] .agentbtn { top: 4.8cqw; }
#mgui[data-kind="report"] .agentbtn { top: 18.6cqw; }
.ucpanel { height: 52cqw; max-height: calc(100% - 4cqw); } .ucrows { flex: 1; min-height: 0; }
.ucph { padding-bottom: .4cqw; } .ucr .ucbtns { margin-top: .6cqw; } .ucfoot { padding-top: .6cqw; }
#jwrap { padding-top: 1.1cqw !important; }
#regp { padding: 1.1cqw 1.2cqw !important; }
#journey .lb { margin-top: .45cqw; }
.agentbtn.inhead { position: static; display: inline-flex; margin-top: .7cqw; animation: none; box-shadow: 0 0 1cqw -.3cqw #5E8FF5; }
.mg-head { z-index: 4; }
.agentbtn.inhead { margin-top: 1.1cqw; }
.pr { bottom: auto; max-height: calc(100% - 17cqw); }
#regp .tier { margin-left: .45cqw; }
#journey .mod { top: -1.2cqw; }
.pr em { margin-left: .4cqw; }
.end h1 { margin-bottom: 1.5cqw; } .end .pill { margin-bottom: 1.1cqw; } .end .note { margin-top: 1.2cqw !important; }
.ucrows { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 2.4cqw), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 2.4cqw), transparent); padding-bottom: 2cqw; }
#regp .tier { display: inline-block; margin-top: .25cqw; }
.pr em { display: inline-block; margin-top: .3cqw; }
#jwrap { padding-top: 1.35cqw !important; }
#mgui[data-kind="redteam"] .agentbtn { top: 5.3cqw; }
.ucmeta { margin-top: .5cqw; }
#regp .tier { margin-top: .4cqw; }
.pr-row { padding-top: .6cqw !important; padding-bottom: .6cqw !important; }
/* board meeting: the answer's explanation gets its own air under the options */
.mt-card .exp:empty { display: none; }
.mt-card .exp { margin-top: 1.1cqw; padding: .8cqw 1.1cqw; background: #F3F7FC; border-radius: .7cqw; font-size: .98cqw; line-height: 1.5; }
.mt-opts .tier kbd { margin-left: .8cqw; }

/* Keep the whole game frame and its controls clear of the browser edges. */
:root { --frame-gap: clamp(12px, 1.5vmin, 24px); }
#wrap { inset: var(--frame-gap); }
#stage { width: min(100%, calc((100svh - 2 * var(--frame-gap)) * 1.777778)); max-width: 100%; }
#obj { left: 1.4cqw; top: 1.4cqw; }
#jwrap { left: 23cqw; right: 15.5cqw; top: 1.4cqw; transform: none; justify-content: center; padding-right: .9cqw; }
#jwrap .jbrand { flex: none; }
#jwrap #journey { flex: 1; min-width: 0; padding-inline: .6cqw; }
#jwrap #journey .st { width: auto; min-width: 0; flex: 1; }
#modBtn { top: 1.4cqw; right: 1.4cqw; }
#regp { left: 1.4cqw; top: 10.8cqw; bottom: 5.2cqw; }
#regp .rp-body { min-height: 0; overscroll-behavior: contain; }
#mini { right: 1.4cqw; bottom: 5.2cqw; width: 14cqw; }
#acts { left: 1.4cqw; right: 1.4cqw; bottom: 1.4cqw; flex-wrap: wrap; }
#keys { bottom: 5.2cqw; max-width: 66cqw; text-align: center; }
#dlg { bottom: 1.8cqw; max-height: calc(100% - 3.6cqw); overflow-y: auto; }
.overlay { padding: 2cqw; }
.overlay .card, .mwrap { max-width: calc(100% - 4cqw); max-height: calc(100% - 4cqw); overflow-y: auto; overscroll-behavior: contain; }
#gloss .gbody { min-height: 0; overscroll-behavior: contain; }
@media (max-width: 600px) { :root { --frame-gap: 8px; } }

/* ───────────── Enterprise theme (2026-11-12): fewer colours, flat surfaces ─────────────
   Navy for primary actions and banners, one blue for labels, progress and the current step,
   muted green / amber / red only for status. No blue-to-purple gradients outside Mel and the logo. */
:root { --accent: #2F5BD3; --ok: #1E8E62; --warn: #B8641F; --bad: #B4332A;
  --grad: linear-gradient(var(--accent), var(--accent)); }
.eyebrow, #dlg .text em, .title h1 span, #xp b { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--accent); }
#dlg .text em { color: var(--deep); }
.title h1 span { color: var(--deep); }
#gloss .gstep, .rp-sec, .bagent small { color: var(--accent); }
.toast.find .t1 { color: var(--accent); } .toast.ok .t1 { color: var(--ok); } .toast.risk .t1 { color: var(--warn); }

/* buttons: primary is solid navy, no coloured drop shadow */
.btn.grad { background: var(--deep); box-shadow: none; }
.btn.grad:hover { background: #26315C; }
.btn.grad:disabled, .btn.grad[disabled] { background: #E6E9F0; color: #8A91A8; box-shadow: none; cursor: default; opacity: 1; }
.btn.grad:disabled kbd { opacity: .5; }

/* journey bar: navy done, blue current, grey ahead */
#journey .st.done::before, #journey .st.cur::before { background: var(--deep); }
#journey .done .hx { background: var(--deep); }
#journey .cur .hx { background: var(--accent); animation: none; }
.mrow.done .mnum { background: var(--deep); } .mrow.cur .mnum { background: var(--accent); }
.mt-st.on i { background: var(--accent); } .mt-st.done i { background: var(--deep); }

/* progress and confidence bars: one blue; low confidence muted amber */
#obj .obar i, .cbar i, .rt-bar i, #xp .xbar i { background: var(--accent); }
.cl-ag.low .cbar i { background: var(--warn); }

/* panels: flat tints instead of colour washes */
#dlg .portrait { background: #F1F3F8; }
.cl-ag { background: #F5F7FB; border-color: #E3E7F0; }
.cl-ag.low { background: #FFF8F1; border-color: #F1D9C2; }
.pr-row.low { border-color: #F1D9C2; background: #FFF9F3; } .pr-row.ok { background: #F6FAF8; border-color: #D9EBE2; } .pr-row.bad { border-color: #E3A99D; background: #FDF5F3; }
#screen, #stage.w3d #screen { background: #F4F6FA; }
#stage.w3d #screen { background: rgba(244,246,250,.86); }

/* alerts: solid, quiet */
#alert.danger { background: var(--bad); animation: none; } #alert.warn { background: var(--warn); } #alert.info { background: var(--deep); }

/* "step complete": a navy card, not a glowing gradient pill */
#banner .b1 { color: var(--deep); text-shadow: none; font-size: .9cqw; letter-spacing: .24em; }
#banner .b2 { background: var(--deep); font-size: 2.8cqw; font-weight: 700; padding: .7cqw 2.2cqw; border-radius: 1cqw; box-shadow: 0 .8cqw 2.4cqw rgba(20,30,65,.25); }
#banner .b3 { color: #C9A44C; font-size: 1.3cqw; text-shadow: none; }
#banner .b1 { display: table; margin: 0 auto; background: rgba(255,255,255,.92); padding: .3cqw .9cqw; border-radius: .5cqw; }

/* agents: navy button without the glow pulse; the agent bar carries the latest action on one line */
.agentbtn, .agentbtn.inhead { background: var(--deep); border: 1px solid var(--deep); box-shadow: none; animation: none; }
.agentbtn span { color: #fff; opacity: .8; }
.agentact, .act.ap.on { background: var(--deep) !important; }
.spin { border-top-color: #fff; }
.agentbar { max-width: 76cqw; white-space: nowrap; } .agentbar b, .agentbar .takeover { flex: none; white-space: nowrap; }
.agentbar .alog { opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 40cqw; }
.agentbar .alog::before { content: "·"; margin: 0 .45cqw 0 .1cqw; opacity: .6; }
.agentbar .alog.tick { animation: fadein .3s ease; } @keyframes fadein { from { opacity: 0; } }
.agentbar.yours { background: var(--warn); }
.agentlog { display: none; }
#mgui.agenton .pr { right: 2cqw; bottom: auto; max-height: calc(100% - 22cqw); }   /* the log no longer needs its own column: the panel keeps its size */
#mgui:has(.mt-card) .agentbar { top: 1.4cqw; }

/* while someone is talking, the HUD buttons and minimap step back so nothing peeks out under the dialogue */
#stage:has(#dlg:not(.hide)) #acts, #stage:has(#dlg:not(.hide)) #mini { opacity: 0; pointer-events: none; transition: opacity .2s; }

/* ── 2026-11-20 · feedback pass: your system's card, checkpoint, send-back reasons, pause menu, scoring help ── */
/* your system, top of the register panel */
.uchud { border: 1.5px solid #DCE1EC; border-radius: .8cqw; padding: .6cqw .7cqw; margin: .1cqw 0 .7cqw; background: #F7F8FC; }
.uchud.pend { border-color: var(--accent); background: #F2F5FD; } .uchud.gap { border-color: #E9B48A; background: #FFF8F2; }
.uchud .uh1 small { display: block; font-size: .6cqw; letter-spacing: .14em; text-transform: uppercase; font-weight: 750; color: var(--accent); }
.uchud .uh1 b { display: block; font-size: .86cqw; line-height: 1.25; margin-top: .15cqw; }
.uhdots { display: flex; gap: .22cqw; margin: .45cqw 0 .4cqw; }
.uhdots i { font-style: normal; flex: 1; height: 1.25cqw; display: grid; place-items: center; font-size: .6cqw; font-weight: 800; color: #9AA1BA; background: #E9ECF3; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.uhdots i.ok { background: var(--ok); color: #fff; } .uhdots i.gap { background: var(--warn); color: #fff; } .uhdots i.pend { background: var(--accent); color: #fff; }
.uhs { font-size: .68cqw; color: var(--muted); line-height: 1.35; margin-bottom: .45cqw; }
.uchud.pend .uhs { color: var(--deep); font-weight: 600; } .uchud.gap .uhs { color: var(--warn); font-weight: 600; }
#ucHudBtn { font-size: .72cqw; padding: .3cqw .8cqw; box-shadow: none; }
#ucHudBtn:not(.grad) { background: #fff; color: var(--deep); border: 1.5px solid #E3E6EF; }
.rtask { font-size: .62cqw; color: var(--warn); font-weight: 650; margin-top: .15cqw; }
.rp-why { font: inherit; font-size: .62cqw; font-weight: 800; width: 1.15cqw; height: 1.15cqw; margin-left: .35cqw; border-radius: 50%; border: 1.5px solid #C9D1E1; background: #fff; color: var(--muted); cursor: pointer; line-height: 1; padding: 0; vertical-align: middle; }
.rp-why:hover { border-color: var(--accent); color: var(--accent); }
.rp-explain { font-size: .66cqw; line-height: 1.45; color: var(--muted); background: #F4F6FB; border-radius: .5cqw; padding: .45cqw .6cqw; margin: .3cqw 0 .4cqw; }
.rp-explain b { color: var(--deep); }
.pencount { font-size: .62cqw; color: var(--muted); margin-top: .4cqw; }
/* the checkpoint and the proposal */
.uccp { display: flex; flex-direction: column; gap: .2cqw; margin-top: .9cqw; padding: .6cqw .9cqw; border-radius: .8cqw; background: #F2F5FD; border-left: .3cqw solid var(--accent); }
.uccp b { font-size: .9cqw; color: var(--accent); } .uccp span { font-size: .85cqw; color: var(--deep); line-height: 1.45; }
.ucconf { font-size: .78cqw; color: var(--ok); margin-top: .35cqw; } .ucconf b { font-weight: 750; }
.ucconf.low { color: var(--warn); }
.ucmsg { font-size: .8cqw; line-height: 1.45; margin: .2cqw 0 .3cqw; padding: .35cqw .6cqw; border-radius: .5cqw; background: #FFF4EC; color: #8A4A17; }
.ucmsg.ok { background: #ECF8F2; color: #17603F; }
.ucreasons { display: flex; flex-wrap: wrap; gap: .5cqw; align-items: center; margin-top: .6cqw; padding-top: .6cqw; border-top: 1px dashed #DCE1EC; }
.ucreasons.hide { display: none; } .ucreasons > span { font-size: .8cqw; font-weight: 650; width: 100%; }
.ucreasons .btn { background: #fff; color: var(--deep); border: 1.5px solid #E3E6EF; box-shadow: none; }
.ucreasons .btn:hover { border-color: var(--accent); }
.ucbtns .btn:not(.grad) { background: #fff; color: var(--deep); border: 1.5px solid #E3E6EF; box-shadow: none; }
.ucchip.gapc { background: #FFEBDD; color: #A2501A; }
.ucr.gap { background: #FFF8F2; } .ucr.gap .ucn { background: var(--warn); }
.ucnote.gapn { color: #8A4A17; margin-top: .2cqw; }
.ucmeta .amb { color: var(--warn); }
/* pause menu (Esc) */
#pause { position: absolute; inset: 0; z-index: 36; background: rgba(14,21,48,.55); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 2cqw; }
#pause.hide { display: none; }
.pcard { width: 56cqw; max-height: calc(100% - 4cqw); overflow-y: auto; padding: 1.8cqw 2.2cqw; }
.pcard h2 { font-size: 2.2cqw; margin: .3cqw 0 .3cqw; } .psub { font-size: .95cqw; color: var(--muted); margin: 0 0 1.2cqw; }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: .8cqw; }
.pgrid .btn { font-size: 1cqw; padding: .8cqw 1cqw; box-shadow: none; } .pgrid .btn:not(.grad) { background: #fff; color: var(--deep); border: 1.5px solid #E3E6EF; }
.pgrid .btn:not(.grad):hover { border-color: var(--accent); }
.psaved { font-size: .8cqw; color: var(--ok); margin-top: .8cqw; min-height: 1cqw; }
.phelp { display: flex; flex-direction: column; gap: .5cqw; margin-top: 1cqw; padding: .9cqw 1cqw; background: #F7F8FC; border-radius: .8cqw; }
.phelp div { display: grid; grid-template-columns: 9cqw 1fr; gap: .8cqw; font-size: .85cqw; line-height: 1.45; } .phelp b { color: var(--deep); } .phelp span { color: var(--muted); }
.pfoot { display: flex; align-items: center; gap: 1cqw; margin-top: 1.2cqw; font-size: .8cqw; color: var(--muted); }
/* journey bar: finished steps can be revisited */
#journey .st.revisit { cursor: pointer; } #journey .st.revisit:hover .hx { background: var(--accent); }
/* board vote: votes against */
.mt-votes span.no { background: #FFE3DC; color: #B4332A; }
.end .endboard { color: var(--ok); } .end .endboard.no { color: var(--bad); }

/* ── the page around the game (2026-11-20): a light, quiet surround instead of navy bars; the stage reads as an
   app window (hairline border, soft shadow, rounded corners). Full screen drops the frame. ── */
html, body { background: #E4E9F1; }
body::before { content: ""; position: fixed; inset: 0; background: radial-gradient(120% 90% at 50% 0%, #EEF2F8 0%, #E4E9F1 55%, #DCE2EC 100%); pointer-events: none; }
#stage { border-radius: 14px; border: 1px solid rgba(20,30,65,.10); box-shadow: 0 1px 2px rgba(20,30,65,.06), 0 12px 40px rgba(20,30,65,.12); }
html.fs { --frame-gap: 0px; } html.fs body, html.fs { background: #E4E9F1; }
html.fs #stage { border-radius: 0; border: 0; box-shadow: none; }
/* ── edge to edge (2026-11-20): the 3D campus fills the window behind the 16:9 stage; outside the world view
   (title, mini-games, panels) a frosted veil sits over it and the stage reads as a window ── */
html.bleed body > #gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; }
#veil { position: fixed; inset: 0; z-index: 1; pointer-events: none; display: none; animation: veilIn .35s ease;
  background: radial-gradient(120% 90% at 50% 0%, rgba(238,242,248,.86) 0%, rgba(228,233,241,.9) 60%, rgba(220,226,236,.94) 100%); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
html.bleed.veil #veil { display: block; }   /* not just transparent: an invisible full-window blur still costs every frame */
@keyframes veilIn { from { opacity: 0; } to { opacity: 1; } }
html.bleed #wrap { z-index: 2; }
html.bleed #stage.w3d { background: transparent; border-color: transparent; box-shadow: none; transition: box-shadow .35s, border-color .35s; }
html.bleed.veil #stage.w3d { border-color: rgba(20,30,65,.10); box-shadow: 0 1px 2px rgba(20,30,65,.06), 0 12px 40px rgba(20,30,65,.12); }

/* your system inside the mini-games; change a decision */
.ucmg { font-weight: 600; color: var(--accent); margin-left: .35cqw; white-space: nowrap; } .ucmg b { font-weight: 750; }
.ucres { display: flex; flex-direction: column; gap: .2cqw; margin: .9cqw 0 1cqw; padding: .6cqw .9cqw; border-left: .3cqw solid var(--accent); background: #F2F5FD; border-radius: 0 .6cqw .6cqw 0; }
.ucres b { font-size: .9cqw; color: var(--accent); } .ucres span { font-size: .9cqw; line-height: 1.45; color: var(--deep); }
.ucreo { margin-left: .5cqw; font-size: .72cqw !important; padding: .2cqw .7cqw !important; background: #fff !important; color: var(--deep) !important; border: 1.5px solid #E3E6EF !important; box-shadow: none !important; }
.ucreo:hover { border-color: var(--accent) !important; }
html.bleed.veil.veil-dark #veil { background: rgba(14,21,48,.8); }   /* inside the stage the world is dimmed twice (veil + the menu's .55 backdrop): 1 − .45² ≈ .8 matches it outside */
.pfoot .btn { flex: none; white-space: nowrap; }
/* dialogue clears the register panel (2026-11-20): centred in the space right of the open panel, 7.6cqw air;
   with the panel collapsed it is centred on the stage. The keys hint steps back with the other HUD bits. */
#stage:has(#regp:not(.closed)) #dlg { left: 28cqw; transform: none; }
#stage:has(#dlg:not(.hide)) #keys { opacity: 0; pointer-events: none; transition: opacity .2s; }
/* agent-running states (2026-11-20, checked by screenshot: the lint can't run agents) */
#mgui[data-kind="report"] .mg-head { max-width: 27cqw; }
#mgui[data-kind="report"] .mg-head .brandrow { flex-wrap: wrap; row-gap: .15cqw; }
#mgui[data-kind="report"] .ucmg { flex-basis: 100%; margin-left: 0; white-space: normal; }
#mgui[data-kind="redteam"] .agentbar { bottom: 8.2cqw; }          /* above the probe selector, not on it */
#mgui .pr, #mgui.agenton .pr { max-height: calc(100% - 26cqw); }  /* the review panel ends above Mel (feet at y 880, scale .36) */
/* the register panel opens and closes instantly: animating its width re-wrapped every line mid-way (M67) */
#regp { transition: opacity .3s; }
/* collapsed register: the count and the open button, with air between them (M67) */
#regp.closed { width: 12cqw; }
#regp.closed .rp-head { gap: 1cqw; } #regp.closed .rp-head .brandrow { display: none; } #regp.closed .rp-tog { flex: none; }
/* the new-objective pulse glows instead of growing: scaling brought the objective within 8 px of the register (M68) */
@keyframes qp { 30% { box-shadow: 0 0 0 .4cqw rgba(47,91,211,.22); } }

/* ── keeper registration (keeper.js): the player's own cell in the register ── */
#kreg, #kreg.overlay { position: absolute; inset: 0; z-index: 40; padding: 0; backdrop-filter: none; display: grid; place-items: center; background: rgba(236, 241, 252, .9); animation: kin .35s ease-out; }
@keyframes kin { from { opacity: 0; } to { opacity: 1; } }
#kreg .kcard { width: 62cqw; display: grid; grid-template-columns: 15cqw 1fr; gap: 2.6cqw; padding: 2.4cqw 2.8cqw; align-items: start; animation: kup .45s cubic-bezier(.16,1,.3,1); }
@keyframes kup { from { transform: translateY(1.6cqw) scale(.98); } to { transform: none; } }
#kreg .kart { position: relative; padding-top: 1cqw; }
#kreg .kcell { width: 15cqw; height: auto; display: block; }
#kreg .kstamp { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%) rotate(-8deg); padding: .5cqw 1.1cqw; border: .22cqw solid #0B7A57; border-radius: .6cqw; color: #0B7A57; background: rgba(255,255,255,.92); font-size: .8cqw; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-align: center; line-height: 1.2; animation: kstamp .5s cubic-bezier(.2,1.6,.4,1) .15s both; }
#kreg .kstamp b { font-size: 1.7cqw; letter-spacing: .02em; }
@keyframes kstamp { from { transform: translate(-50%, -50%) rotate(-8deg) scale(1.8); opacity: 0; } to { transform: translate(-50%, -50%) rotate(-8deg) scale(1); opacity: 1; } }
#kreg .kbody h2 { font-size: 2.3cqw; line-height: 1.08; letter-spacing: -.02em; margin: .5cqw 0 .8cqw; }
#kreg .kbody .klead { font-size: 1.1cqw; line-height: 1.5; color: var(--muted); margin: 0 0 1.4cqw; }
#kreg .kf { display: block; margin-bottom: 1.1cqw; }
#kreg .kf span { display: block; font-size: .85cqw; font-weight: 650; margin-bottom: .4cqw; }
#kreg .kf span i { font-style: normal; font-weight: 500; color: var(--muted); margin-left: .4cqw; }
#kreg .kf input { width: 100%; font: inherit; font-size: 1.1cqw; padding: .75cqw 1cqw; border: 1px solid #C3C7D3; border-radius: .7cqw; background: #fff; color: var(--deep); box-sizing: border-box; }
#kreg .kf input:focus { outline: none; border-color: var(--deep); box-shadow: 0 0 0 .2cqw rgba(54,177,254,.35); }
#kreg .kmsg { min-height: 1.3cqw; font-size: .85cqw; line-height: 1.4; color: #1E6FA8; margin: -.3cqw 0 .8cqw; }
#kreg .kmsg.bad { color: #C62F4F; }
#kreg .kopt { display: flex; gap: .7cqw; align-items: flex-start; font-size: .9cqw; line-height: 1.45; color: var(--deep); margin-bottom: 1.4cqw; cursor: pointer; }
#kreg .kopt input { width: 1.1cqw; height: 1.1cqw; margin: .15cqw 0 0; accent-color: #141E41; flex: none; }
#kreg .kbtns { display: flex; align-items: center; gap: 1.6cqw; flex-wrap: wrap; }
#kreg .kbtns .btn[disabled] { opacity: .6; cursor: progress; }
#kreg .kskip { font: inherit; font-size: .95cqw; font-weight: 600; color: var(--deep); background: none; border: 0; padding: .4cqw 0; cursor: pointer; text-decoration: underline; text-underline-offset: .25cqw; text-decoration-color: #C3C7D3; }
#kreg .kskip em { font-style: normal; font-weight: 500; color: var(--muted); }
#kreg .kfine { margin: 1.6cqw 0 0; padding-top: 1.1cqw; border-top: 1px solid var(--line); font-size: .78cqw; line-height: 1.55; color: var(--muted); }
#kreg .kfine b { color: var(--deep); font-weight: 650; }
#kreg .kfine a { color: #1E6FA8; white-space: nowrap; }
.kchip { display: inline-flex; align-items: center; font: inherit; font-size: .95cqw; font-weight: 600; margin: 0 0 1.2cqw; padding: .55cqw 1.1cqw; border-radius: 99cqw; border: 1px solid #C3C7D3; background: #fff; color: var(--deep); cursor: pointer; }
.kchip.on { border-color: #BFE6D2; background: #E7F6F0; color: #0B7A57; cursor: default; }
