/* Dstl8 dark palette: navy ground, brand blue #0f9efc as the accent, brand green #49e209 for gains/success, blue→green gradient as the signature. */
:root{--bg:#060b16;--panel:#0d1526;--panel2:#152039;--line:#1f2d47;--text:#eef3fb;--muted:#7a92b8;--accent:#0f9efc;--accent2:#49e209;--green:#49e209;--gold:#ffb02e;--red:#ff5c7c;--blue:#4cc3ff;--violet:#b39dff;--teal:#2dd4bf;--ink:#061018;--grad:linear-gradient(90deg,#0f9efc,#49e209)}
*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);font:15px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;-webkit-text-size-adjust:100%}
a{color:var(--accent);text-decoration:none}button,input,textarea,select{font:inherit;color:inherit}
.app{max-width:720px;margin:0 auto;padding:14px 14px 4px}
/* App shell: the document itself never scrolls, the content column does. On iOS
   that keeps the tab bar put — a page-scrolling layout lets Safari's collapsing
   toolbar slide over a bottom-fixed bar — and it stops the sideways rubber-band
   drift you get when any child is a hair wider than the viewport. */
body.shell{height:100vh;height:100dvh;overflow:hidden;display:flex;flex-direction:column;overscroll-behavior:none}
body.shell .scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain}
body.shell .tabs{position:static;flex:none;padding-bottom:calc(6px + env(safe-area-inset-bottom))}
body.shell .foot{padding-bottom:18px}
canvas,img,pre{max-width:100%}
.hidden{display:none!important}.loading{padding:40px;text-align:center;color:var(--muted)}
.tabs{position:fixed;left:0;right:0;bottom:0;display:flex;justify-content:space-around;background:rgba(13,21,38,.96);backdrop-filter:blur(8px);border-top:1px solid var(--line);padding:6px 0 calc(6px + env(safe-area-inset-bottom));z-index:20}
.tabs a{flex:1;text-align:center;color:var(--muted);font-size:11px;display:flex;flex-direction:column;align-items:center;gap:2px}
.tabs .tbrand,.tabs .tspec,.tabs .tl-d{display:none}.tabs a .ico{font-size:20px;line-height:1}.tabs a.active{color:var(--accent)}
.card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:14px;margin-bottom:12px}
.card h2{margin:0 0 8px;font-size:17px}.card h3{margin:12px 0 6px;font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.spread{justify-content:space-between}.grow{flex:1}
.muted{color:var(--muted)}.small{font-size:12px}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;white-space:pre-wrap;word-break:break-word}
.btn{background:linear-gradient(90deg,#0f9efc,#0d8be0);color:#fff;border:0;border-radius:10px;padding:10px 14px;font-weight:600;cursor:pointer}.btn:disabled{opacity:.5;cursor:default}
.btn.ghost{background:transparent;border:1px solid var(--line);color:var(--text)}.btn.danger{background:var(--red)}.btn.small{padding:6px 10px;font-size:13px}
.btn.wide{width:100%}
input[type=text],input[type=email],textarea,select{width:100%;background:var(--panel2);border:1px solid var(--line);border-radius:10px;padding:10px;color:var(--text)}textarea{min-height:150px;resize:vertical}
label.f{display:block;margin:10px 0 4px;font-size:13px;color:var(--muted)}
.stat{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.stat div{background:var(--panel2);border-radius:10px;padding:8px}.stat b{display:block;font-size:20px}.stat span{font-size:11px;color:var(--muted)}
.bar{height:8px;background:var(--panel2);border-radius:4px;overflow:hidden}.bar i{display:block;height:100%;background:var(--grad)}
.pill{display:inline-block;padding:2px 8px;border-radius:999px;font-size:11px;background:var(--panel2);color:var(--muted)}.pill.on{background:rgba(73,226,9,.15);color:var(--green)}.pill.gold{background:rgba(255,176,46,.15);color:var(--gold)}.pill.red{background:rgba(255,92,124,.15);color:var(--red)}
.ev{border-left:3px solid var(--line);padding:6px 10px;margin:6px 0;background:var(--panel2);border-radius:0 10px 10px 0}.ev .t{font-size:11px;color:var(--muted)}.ev.persuade{border-color:var(--gold)}.ev.conversion,.ev.coup{border-color:var(--accent)}.ev.reflection{border-color:var(--blue)}.ev.system{border-color:var(--muted)}.ev.schism,.ev.independent,.ev.deprogram{border-color:var(--red)}.ev.mine{border-color:var(--green)}
.ev details summary{cursor:pointer;color:var(--blue);font-size:12px}
.slider{margin:8px 0}.slider .row{font-size:12px;color:var(--muted)}.slider input{width:100%}
.lb{width:100%;border-collapse:collapse}.lb td,.lb th{padding:6px 4px;text-align:left;border-bottom:1px solid var(--line);font-size:13px}.lb th{color:var(--muted);font-weight:500;font-size:11px}.lb .n{text-align:right;font-variant-numeric:tabular-nums}
canvas.radar{width:100%;max-width:200px;aspect-ratio:1;height:auto;display:block;margin:0 auto}canvas.graph{width:100%;height:60vh;background:var(--panel);border-radius:14px;border:1px solid var(--line);touch-action:none}
.toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);background:var(--panel2);border:1px solid var(--line);padding:10px 14px;border-radius:12px;z-index:30;max-width:90vw}
.hero{padding:30px 0 10px}.hero h1{font-size:34px;margin:0 0 6px;display:inline-block;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}.hero p{color:var(--muted);margin:0 0 16px}
.disclosure{font-size:13px;color:var(--muted);background:var(--panel2);padding:10px;border-radius:10px}
.count{font-size:11px;color:var(--muted);text-align:right}
/* Columns that are ranking inputs but not the headline: room for them on a
   laptop, folded away on a phone. */
@media(max-width:560px){.hide-s{display:none}}
.phase{font-weight:600}.phase.golden{color:var(--gold)}.phase.frozen{color:var(--blue)}.phase.open{color:var(--green)}
.chip{display:inline-block;background:var(--panel2);border:1px solid var(--line);border-radius:8px;padding:6px 10px;margin:4px 4px 0 0;cursor:pointer;font-size:13px}.chip.sel{border-color:var(--accent);color:var(--accent)}
.legend{display:flex;gap:10px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.legend i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:4px}
.top{position:sticky;top:0;background:rgba(6,11,22,.92);backdrop-filter:blur(8px);padding:8px 0;margin:-14px -14px 10px;padding-left:14px;padding-right:14px;z-index:10}
.top::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg,#0f9efc,#49e209 55%,transparent)}
.top .row{gap:8px}
@media (min-width:900px){.app{max-width:960px}}
/* cult map overlays */
.gwrap{position:relative}.gwrap canvas.graph{display:block}
.gctl{position:absolute;right:8px;top:8px;display:flex;flex-direction:column;gap:4px;z-index:2}.gctl button{width:34px;height:34px;border-radius:8px;border:1px solid var(--line);background:rgba(13,21,38,.92);color:var(--text);font-size:18px;line-height:1;cursor:pointer}.gctl button:hover{border-color:var(--accent)}
.gtip{position:absolute;z-index:3;pointer-events:none;background:rgba(13,21,38,.97);border:1px solid var(--line);border-radius:10px;padding:8px 10px;font-size:12px;line-height:1.4;max-width:240px;box-shadow:0 6px 20px rgba(0,0,0,.45)}.gtip.pinned{pointer-events:auto}.gtip b{font-size:14px}.gtip .muted{color:var(--muted)}
/* Bar charts (admin dashboards). The base canvas sits in the flow and sets the
   height; the overlay only ever draws the hover column, so a mouse move never
   redraws 1440 bars. */
.cwrap{position:relative}
.cwrap .cbase{display:block;width:100%;background:var(--panel2);border-radius:10px}
.cwrap .cover{position:absolute;left:0;top:0;touch-action:none}
.gtip .lr{display:flex;align-items:center;gap:6px;white-space:nowrap}
.gtip .lr i{width:9px;height:9px;border-radius:2px;flex:none}
.gtip .lr b{margin-left:auto;padding-left:10px}
.gtip .lr.tot{color:var(--muted);border-bottom:1px solid var(--line);padding-bottom:3px;margin-bottom:3px}
.cleg{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.cleg .ch{display:inline-flex;align-items:center;gap:6px;background:var(--panel2);border:1px solid var(--line);border-radius:999px;padding:3px 9px;font-size:11px;color:var(--text);cursor:pointer}
.cleg .ch i{width:9px;height:9px;border-radius:2px}
.cleg .ch b{color:var(--muted);font-weight:600}
.cleg .ch:hover{border-color:var(--accent)}
.cleg .ch.off{opacity:.42}.cleg .ch.off i{filter:grayscale(1)}
/* legend */
.lg{display:inline-block;max-width:100%}.lgpanel{margin-top:8px;padding:10px 12px;background:var(--panel2);border:1px solid var(--line);border-radius:10px;font-size:12px;columns:2;column-gap:22px;text-align:left}@media(max-width:760px){.lgpanel{columns:1}}
.lgpanel section{break-inside:avoid;margin-bottom:10px}.lgpanel h4{margin:0 0 6px;font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}.lgpanel .li{display:flex;gap:8px;align-items:center;margin:3px 0}.lgpanel .li>.ic{width:34px;flex:none;text-align:center;display:inline-flex;align-items:center;justify-content:center;gap:2px}.lgpanel i.g{display:inline-block;width:12px;height:12px;border-radius:50%;vertical-align:middle}
/* phase banners (app) and admin world status */
.banner{padding:8px 12px;border-radius:10px;margin:8px 0;font-size:13px;border:1px solid var(--line);background:var(--panel2)}.banner.frozen{border-color:var(--blue)}.banner.golden{border-color:var(--gold)}.banner.closed{border-color:var(--muted)}
.wstat{padding:10px 12px;border-radius:10px;border:1px solid var(--line);background:var(--panel2);margin-bottom:10px}.wstat.frozen{border-color:var(--blue)}.wstat.golden{border-color:var(--gold)}.wstat.open{border-color:rgba(73,226,9,.5)}
.wbadge{display:inline-block;padding:3px 10px;border-radius:8px;font-weight:700;letter-spacing:.06em;font-size:13px;background:var(--panel);color:var(--muted);vertical-align:middle}.wbadge.open{background:rgba(73,226,9,.2);color:var(--green)}.wbadge.golden{background:rgba(255,176,46,.2);color:var(--gold)}.wbadge.frozen{background:rgba(76,195,255,.2);color:var(--blue)}
/* feed cards */
.fbar{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0 10px}.fchip{background:transparent;border:1px solid var(--line);color:var(--muted);border-radius:999px;padding:5px 11px;font-size:12px;cursor:pointer}.fchip.on{color:var(--accent);border-color:var(--accent);background:rgba(15,158,252,.12)}.fchip:hover{color:var(--text)}
.fi{--c:#7a92b8;position:relative;background:var(--panel2);border:1px solid var(--line);border-radius:16px;padding:12px 14px 12px 18px;margin:10px 0;transition:border-color .15s,transform .15s}
.fi::before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:3px;border-radius:3px;background:var(--c)}
.fi:hover{border-color:rgba(255,255,255,.14)}
.fi.whisper{--c:var(--violet)}.fi.persuade{--c:var(--gold)}.fi.broadcast{--c:#e6ebf5}.fi.tree{--c:var(--accent)}
.fi.internal{--c:var(--teal)}.fi.moment{--c:var(--accent)}.fi.break{--c:var(--red)}.fi.refused{--c:#ff8a9a}
.fi.deal{--c:var(--accent2)}.fi.recon{--c:#7a92b8}.fi.bounty{--c:var(--gold)}.fi.system{--c:var(--muted)}
.fi.moment{background:linear-gradient(135deg,rgba(15,158,252,.18),rgba(73,226,9,.08) 55%,var(--panel2) 80%)}.fi.moment .fi-who{font-size:15px}
.fi.moment .fi-pill{background:var(--grad)}.fi.moment::before{background:linear-gradient(180deg,#0f9efc,#49e209)}.fi.coup{--c:var(--gold)}.fi.coup .fi-pill,.fi.coup::before{background:var(--gold)}
.fi.mine{box-shadow:inset 0 0 0 1px rgba(73,226,9,.25)}
.fi-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.fi-pill{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;padding:3px 9px;border-radius:999px;color:var(--ink);background:var(--c);white-space:nowrap}
.fi-who{font-size:13px;color:var(--muted)}.fi-who b{color:var(--text);font-weight:600}.fi-arrow{color:var(--muted);padding:0 2px}
.fi-t{margin-left:auto;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.fi-q{font-size:15px;line-height:1.5;color:var(--text);quotes:"“" "”"}.fi-q::before{content:open-quote;color:var(--muted)}.fi-q::after{content:close-quote;color:var(--muted)}.fi-q.small{font-size:13px;color:#c9cdd9;margin-top:6px}
.fi-note{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.45;color:#c9cdd9;white-space:pre-wrap;word-break:break-word;background:rgba(0,0,0,.2);border-radius:10px;padding:8px 10px;max-height:160px;overflow:auto}
.fi-meta{margin-top:6px;font-size:12px;color:var(--muted)}.fi-meta b{color:var(--text)}.fi-amt{color:var(--green)}.fi-title{font-size:16px;font-weight:600;letter-spacing:-.01em}
.fi-verdict{font-size:14px;font-weight:600}.fi-verdict.yes{color:var(--accent)}.fi-verdict.no{color:var(--muted)}
.fi details{margin-top:6px}.fi summary{cursor:pointer;color:var(--teal);font-size:12px}.fi-step{font-size:12px;color:#c9cdd9;margin:6px 0;line-height:1.45}.fi-stepk{color:var(--teal);font-weight:600;text-transform:capitalize}
.fi-card{color:var(--accent)}

/* brand lockup (Dstl8 · by ControlTheory) and page footer */
.brand{display:inline-flex;align-items:center;gap:8px;color:var(--muted);text-decoration:none;line-height:1;flex:none}
.brand img{height:22px;width:auto;display:block}
.brand small{font-size:11px;letter-spacing:.02em;color:var(--muted);white-space:nowrap}
.brand:hover small{color:var(--text)}
.brand.lg{display:flex;gap:10px;margin-bottom:16px}.brand.lg img{height:40px}.brand.lg small{font-size:13px}
.top .brand img{height:20px}
.foot{max-width:720px;margin:0 auto;padding:12px 14px calc(92px + env(safe-area-inset-bottom));color:var(--muted);font-size:12px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 18px;border-top:1px solid var(--line)}
.foot nav{display:flex;gap:16px;flex-wrap:wrap}.foot nav a{color:var(--muted)}.foot nav a:hover{color:var(--text)}
@media (min-width:900px){.foot{max-width:960px}}
/* share affordances */
.actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 2px}
.btn.share{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center;padding:9px 12px;line-height:1.15}
.btn.share .ico{width:15px;height:15px;flex:none}
.btn.share span{white-space:nowrap}.btn.share small{display:block;font-size:10px;font-weight:500;opacity:.7;white-space:nowrap}
/* Bot card head: the radar is square, so on a phone the stats stack beside it
   instead of leaving half the row empty. */
.cgrid{display:block}
.cardtop{display:grid;grid-template-columns:minmax(0,42vw) 1fr;gap:10px;align-items:center;margin:8px 0 2px}
.cardtop .stat{grid-template-columns:1fr}
@media (min-width:520px){.cardtop{grid-template-columns:190px 1fr}.cardtop .stat{grid-template-columns:repeat(3,1fr)}}
/* Sub-tabs inside a card, so the bot page is not one long scroll. */
.subtabs{display:flex;gap:6px;overflow-x:auto;margin:14px 0 10px;padding:1px;scrollbar-width:none}
.subtabs::-webkit-scrollbar{display:none}
.subtabs button{flex:0 0 auto;background:var(--panel2);border:1px solid var(--line);color:var(--muted);border-radius:999px;padding:6px 12px;font-size:12px}
.subtabs button.on{color:var(--ink);background:var(--grad);border-color:transparent;font-weight:600}
/* In-app notifications: they arrive from the top, like the real thing, and can
   be swiped away or tapped to jump to the moment in the feed. */
.notes{position:fixed;top:calc(8px + env(safe-area-inset-top));left:0;right:0;z-index:40;display:flex;flex-direction:column;gap:8px;padding:0 10px;pointer-events:none}
.note{pointer-events:auto;display:flex;gap:10px;align-items:center;max-width:520px;width:100%;margin:0 auto;background:rgba(21,32,57,.97);backdrop-filter:blur(8px);border:1px solid var(--line);border-left:4px solid var(--c,var(--accent));border-radius:14px;padding:10px 12px;box-shadow:0 12px 34px rgba(0,0,0,.5);transform:translateY(-150%);opacity:0;transition:transform .22s cubic-bezier(.2,.8,.2,1),opacity .22s}
.note.in{transform:translateY(0);opacity:1}
.note .nico{font-size:17px;line-height:1;flex:none}
.note .nbody{flex:1;min-width:0}.note .nbody b{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.note .nbody span{display:block;font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.note .nx{background:transparent;border:0;color:var(--muted);font-size:20px;line-height:1;padding:0 2px;flex:none}
.note.whisper{--c:var(--violet)}.note.persuade{--c:var(--gold)}.note.moment{--c:var(--accent2)}.note.break{--c:var(--red)}
.note.internal{--c:var(--teal)}.note.deal{--c:var(--accent2)}.note.bounty{--c:var(--gold)}.note.refused{--c:#ff8a9a}
.fi.hl{outline:2px solid var(--accent);outline-offset:1px}
/* Desktop-class view: a mouse and at least 1000px. Gated on pointer:fine so a
   touch tablet keeps the phone layout no matter how wide it is. */
@media (min-width:1000px) and (pointer:fine){
  .app{max-width:1200px;padding:16px 24px 8px}
  .foot{max-width:1200px;padding-left:24px;padding-right:24px}
  /* The tab bar moves to the top of the shell: same markup, reversed order. */
  body.shell .tabs{order:-1;justify-content:flex-start;gap:4px;padding:8px 24px;border-top:0;border-bottom:1px solid var(--line)}
  body.shell .tabs a{flex:0 0 auto;flex-direction:row;gap:8px;font-size:14px;padding:8px 14px;border-radius:10px}
  body.shell .tabs a .ico{font-size:16px}
  body.shell .tabs a.active{background:var(--panel2)}
  body.shell .tabs a:hover{color:var(--text)}
  /* A header, not a stretched phone bar: brand on the left, the app's own
     status strip below it, and the big-screen link pushed to the far right. */
  body.shell .tabs .tbrand{display:flex;flex-direction:row;align-items:center;gap:9px;padding:6px 14px 6px 0;margin-right:6px;border-right:1px solid var(--line);color:var(--text)}
  body.shell .tabs .tbrand img{height:22px;display:block}
  body.shell .tabs .tbrand b{font-size:15px;white-space:nowrap}
  body.shell .tabs .tspec{display:flex;margin-left:auto;font-size:13px;padding:8px 0 8px 14px;color:var(--accent)}
  /* Bot page: identity and dials on the left, live state on the right. */
  .cgrid{display:grid;grid-template-columns:1.05fr 1fr;gap:0 28px;align-items:start}
  .cgrid .cgb h3:first-child{margin-top:0}
  /* Map and feed are one screen here, so the feed is a column beside the map
     rather than a wall of cards across the whole width. */
  .live{display:grid;grid-template-columns:2fr 1fr;gap:14px;align-items:start}
  .live .g-feed{max-height:calc(100dvh - 176px);overflow:auto}
  /* A map worth the screen it is on. */
  canvas.graph{height:calc(100dvh - 300px);min-height:420px}
  /* One tab for the pair: "Map" reads as "Live" and the Feed tab folds away. */
  body.shell .tabs a[data-tab="feed"]{display:none}
  body.shell .tabs .tl-m{display:none}
  body.shell .tabs .tl-d{display:inline}
  /* Notifications belong in the corner on a desktop, not the middle. */
  .notes{align-items:flex-end;padding:0 24px}
  .note{margin:0;max-width:420px}
}
@media (min-width:1500px) and (pointer:fine){
  .app,.foot{max-width:1440px}
  .live{grid-template-columns:2.4fr 1fr}
}
.sharebar{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 4px}.sharebar .btn{display:inline-flex;align-items:center;gap:8px}
.fi-actions{display:flex;justify-content:flex-end;margin-top:8px}
.fi-share{display:inline-flex;align-items:center;gap:6px;background:rgba(15,158,252,.14);color:var(--accent);border:1px solid rgba(15,158,252,.35);border-radius:999px;padding:5px 12px;font-size:12px;font-weight:600;cursor:pointer}
.fi-share:hover{background:rgba(15,158,252,.26)}.fi-share .ico{width:13px;height:13px}
/* help: ? icons, bottom sheet, guide */
.hb{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;border:1px solid var(--line);background:var(--panel2);color:var(--muted);font-size:11px;font-weight:700;line-height:1;cursor:pointer;vertical-align:middle;margin-left:6px;padding:0;text-decoration:none;flex:none}
.hb:hover{color:var(--accent);border-color:var(--accent)}
.stat div{position:relative}.stat .hb{position:absolute;top:6px;right:6px;margin:0}
label.f .hb{margin-left:6px}
.hsheet{position:fixed;inset:0;background:rgba(0,0,0,.55);display:none;align-items:flex-end;justify-content:center;z-index:60}
.hsheet.on{display:flex}
.hcard{background:var(--panel);border:1px solid var(--line);border-radius:18px 18px 0 0;padding:16px 18px calc(18px + env(safe-area-inset-bottom));width:100%;max-width:640px;box-shadow:0 -10px 40px rgba(0,0,0,.5);animation:hup .18s ease-out}
@keyframes hup{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
.hcard h3{margin:0 0 6px;font-size:16px}.hcard p{margin:6px 0;color:#c9d3e6;font-size:14px;line-height:1.5}
.hclose{background:transparent;border:0;color:var(--muted);font-size:22px;line-height:1;cursor:pointer;padding:0 4px}
@media (min-width:700px){.hsheet{align-items:center;padding:20px}.hcard{border-radius:16px}}
.gnav{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 14px}.gnav a{font-size:12px;padding:5px 10px;border:1px solid var(--line);border-radius:999px;color:var(--muted)}.gnav a:hover{color:var(--accent);border-color:var(--accent)}
.gsec{margin:0 0 20px;scroll-margin-top:70px}.gsec h2{font-size:17px;margin:0 0 6px}.gsec p,.gsec li{font-size:14px;line-height:1.55;color:#d5dced}.gsec ul{padding-left:18px;margin:6px 0}.gsec table{margin:6px 0}.gsec p{margin:6px 0}
.gl{margin:0}.gl dt{font-weight:600;margin-top:8px}.gl dd{margin:0;color:var(--muted);font-size:13px}
.lgpanel.lgfull{margin-top:0}
th.sortable{cursor:pointer;user-select:none;white-space:nowrap}th.sortable:hover{color:var(--text)}th.sortable.on{color:var(--accent)}
.row.nowrap{flex-wrap:nowrap}
.starter{margin:6px 0 2px;gap:8px}
/* avatars */
/* Emoji badges sit in a square box that centres them by layout, not by their
   own metrics. Symbol-block emoji (a snowflake, crossed swords) carry side
   bearings quite unlike the faces and animals, so an inline-block slot leaves
   them visibly off-centre. */
.av{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;margin-right:6px;flex:none}
span.av{width:1.3em;height:1.3em;line-height:1;font-style:normal;overflow:visible}
img.av{border-radius:4px;object-fit:contain}
.avrow{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.avopt{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--panel2);cursor:pointer}
.avopt .av{margin:0}
.avopt:hover{border-color:var(--accent)}.avopt.sel{border-color:var(--accent);background:rgba(15,158,252,.14);box-shadow:0 0 0 1px var(--accent) inset}
.avsep{width:1px;height:26px;background:var(--line);margin:0 4px}
.avown{margin-top:8px}.avown input{width:170px}
textarea.tagline{min-height:0;height:auto;resize:vertical;line-height:1.4}
.foot nav a.fbtn{color:var(--accent);border:1px solid var(--accent);border-radius:999px;padding:5px 12px;font-weight:600}
.foot nav a.fbtn:hover{background:rgba(15,158,252,.12);color:var(--accent)}
/* create wizard */
.wlist{margin:0;padding-left:18px}.wlist li{margin:8px 0;font-size:14px;line-height:1.5;color:#d5dced}.wlist b{color:var(--text)}
.wnav{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:16px 0 6px}
.wnav .btn{min-width:120px}
.wdots{display:flex;gap:6px;justify-content:center}
.wdots i{width:7px;height:7px;border-radius:50%;background:var(--line);display:block}
.wdots i.on{background:var(--accent);transform:scale(1.3)}.wdots i.done{background:var(--accent2)}
/* trivia + booth codes */
.triv{background:linear-gradient(135deg,rgba(255,176,46,.16),var(--panel2) 60%);border:1px solid rgba(255,176,46,.4);border-radius:16px;padding:12px 14px;margin:0 0 12px}
.triv.done{background:var(--panel2);border-color:var(--line)}
.triv .fi-pill{color:var(--ink);background:var(--gold)}
.trivt{font-variant-numeric:tabular-nums;font-weight:700;color:var(--gold)}
.trivq{font-size:16px;line-height:1.45;margin:8px 0 10px}
.trivc{display:grid;gap:6px;margin-bottom:8px}
.trivopt{text-align:left;padding:10px 12px;border-radius:10px;border:1px solid var(--line);background:var(--panel);color:var(--text);font-size:14px;cursor:pointer}
.trivopt:hover:not(:disabled){border-color:var(--gold)}
.trivopt:disabled{cursor:default;opacity:.85}
.trivopt.right{border-color:var(--accent2);background:rgba(73,226,9,.14);color:var(--text)}
.trivopt.wrong{border-color:var(--red);background:rgba(255,92,124,.12)}
.trivwin{color:var(--accent2)}
.boost{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.boost input{width:120px;font-size:18px;letter-spacing:.18em;text-align:center;font-variant-numeric:tabular-nums}
.codebig{font-size:40px;font-weight:800;letter-spacing:.22em;color:var(--accent);font-variant-numeric:tabular-nums}

/* Persona picker: a browsable menu of starting characters on the last signup
   step. Two columns on a phone, because eight of these in one column pushes
   the core box and the Release button below the fold. */
.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin:6px 0 12px}
.pcard{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;background:var(--panel2);border:1px solid var(--line);border-radius:10px;padding:9px 10px;cursor:pointer;color:var(--text);font:inherit}
.pcard:hover{border-color:var(--muted)}
.pcard.sel{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.pcard .pe{font-size:20px;line-height:1.1}
.pcard b{font-size:13px}
.pcard .small{font-size:11px;line-height:1.3}

/* Leaderboard rows open the bot. The whole row is the target: on a phone the
   name alone is a small tap area, and people reach for the row. */
tr.rowlink{cursor:pointer}
tr.rowlink:hover td{background:var(--panel2)}
/* Surprise me is the odd one out on the chooser: same shape as a character
   card so it is obviously the same kind of choice, dashed so it is obviously
   not a character. */
.pcard.surprise{border-style:dashed}
.pcard.surprise:hover{border-color:var(--accent)}
.nmhint{margin-top:4px;color:var(--muted)}.nmhint.bad{color:var(--red)}.nmhint.ok{color:var(--green)}
.pushcard h3{margin:0 0 4px}.pushcard .row{gap:8px;margin-top:6px}
/* Phones: the map runs edge to edge. Every pixel of width is room between
   bots, and the card's border and padding were costing 30px of it. */
@media (max-width:600px){
  .app .g-map,.wrap .g-map{border-radius:0;border-left:0;border-right:0;padding:10px 0 0}
  .app .g-map{margin-left:-14px;margin-right:-14px}
  .wrap .g-map{margin-left:-12px;margin-right:-12px}
  .g-map>.row{padding:0 12px 8px}
  .g-map canvas.graph{border-radius:0;border-left:0;border-right:0}
}
/* Home Screen app on a notched iPhone: the page runs under the status bar
   and the Dynamic Island, so the sticky header needs the inset as padding. */
body.shell{padding-top:env(safe-area-inset-top);background:var(--bg)}
/* Pages that only make sense on a big screen, and same-site pages opened
   in a new tab: in the Home Screen app those open with no way back. */
@media (max-width:700px),(pointer:coarse){.desk-only{display:none!important}}
@media (display-mode:standalone){.desk-only,.web-only{display:none!important}}
.pushstate{margin-top:8px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
