:root {
  --telly: #ffb020;
  --tellybg: #0c1015;
  --ink: #e9edf3;
  --dim: #6b7684;
  --up: #63d2a4;
  --dn: #ff6b6b;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sans); background: #f4f5f7; color: #16181d;
       -webkit-font-smoothing: antialiased; min-height: 100vh; }

/* ---------- host page (a stand-in, deliberately plain) ---------- */

#host { width: min(660px, calc(100vw - 460px)); margin: 0 0 0 max(28px, 5vw);
        padding: 0 0 80px; }
@media (max-width: 1040px) { #host { width: min(660px, calc(100vw - 56px)); } }
.hnav { display: flex; align-items: center; gap: 28px; padding: 18px 0;
        border-bottom: 1px solid #e2e5ea; font-size: 14px; }
.hlogo { font-weight: 600; letter-spacing: -.02em; }
.hnav nav { display: flex; gap: 20px; }
.hnav a { color: #6c727c; cursor: default; }
.hnav a.on { color: #16181d; font-weight: 500; }
.hacct { margin-left: auto; font-family: var(--mono); font-size: 13px; color: #6c727c; }

.hgame { padding: 30px 0 18px; }
.hteams { display: flex; align-items: baseline; gap: 12px; font-size: 30px; letter-spacing: -.03em; }
.hm { display: flex; align-items: baseline; gap: 10px; }
.hm i { font-style: normal; font-size: 15px; color: #6c727c; font-family: var(--mono); }
.hm b { font-weight: 600; font-variant-numeric: tabular-nums; }
.hsep { color: #c3c8d0; }
.hmeta { margin-top: 8px; font-family: var(--mono); font-size: 12px; color: #8a909a; }

.grp { margin-top: 26px; }
.grp h3 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
          color: #8a909a; font-weight: 600; margin-bottom: 8px; }
.row { display: grid; grid-template-columns: 1fr 92px 50px 100px 58px;
       align-items: center; gap: 14px; padding: 11px 14px; background: #fff;
       border: 1px solid #e6e9ee; border-bottom: 0; cursor: pointer; }
.grp .row:first-of-type { border-radius: 6px 6px 0 0; }
.grp .row:last-of-type { border-radius: 0 0 6px 6px; border-bottom: 1px solid #e6e9ee; }
.row:hover { background: #fbfcfd; }
.rl { font-size: 14.5px; }
.spark { width: 92px; height: 22px; }
.spark path { fill: none; stroke: #b9c0ca; stroke-width: 1.4; }
.rd { font-family: var(--mono); font-size: 12px; color: #a2a8b2; text-align: right; }
.rd.up { color: #12a06a; } .rd.dn { color: #d4494b; }
.rq { font-family: var(--mono); font-size: 13.5px; text-align: right; font-variant-numeric: tabular-nums; }
.rq i { color: #c3c8d0; font-style: normal; padding: 0 3px; }
.rb { border: 1px solid #d7dbe2; background: #fff; border-radius: 5px; padding: 6px 0;
      font: inherit; font-size: 12.5px; color: #3b4048; cursor: pointer; }
.hfoot { margin-top: 28px; font-size: 11.5px; color: #9aa0aa; line-height: 1.6; max-width: 62ch; }

/* Telly's marks on the host page */
.row.sel { background: #fffaf0; border-color: #f0d49a; position: relative; z-index: 3; }
.row.sel::before { content: ''; position: absolute; left: -1px; top: -1px; bottom: -1px;
                   width: 3px; background: var(--telly); border-radius: 2px; }
.row.rel { background: #fffdf7; box-shadow: inset 0 0 0 1px #f0d49a; position: relative; z-index: 3; }

/* ---------- Telly ---------- */

#ink { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }
.link { fill: none; stroke: var(--telly); stroke-width: 2.4; stroke-linecap: round; }

#tip { position: fixed; z-index: 45; background: var(--tellybg); color: var(--ink);
       font-size: 12.5px; padding: 7px 11px; border-radius: 5px; pointer-events: none;
       box-shadow: 0 6px 24px rgba(10,14,20,.28); max-width: 340px; }

#panel { position: fixed; z-index: 50; width: 380px; background: var(--tellybg);
         color: var(--ink); border-radius: 10px; overflow: hidden;
         box-shadow: 0 20px 60px rgba(10,14,20,.42), 0 0 0 1px rgba(255,176,32,.28);
         opacity: 0; transform: translateY(6px) scale(.99); transition: opacity .22s, transform .22s; }
#panel.in { opacity: 1; transform: none; }

.pbar { display: flex; align-items: center; gap: 8px; padding: 11px 14px;
        border-bottom: 1px solid rgba(255,255,255,.07); font-family: var(--mono); font-size: 11px; }
.pdot { width: 7px; height: 7px; border-radius: 50%; background: var(--telly); }
.pname { letter-spacing: .14em; text-transform: uppercase; color: var(--telly); }
.pticker { color: #4a5360; margin-left: auto; font-size: 10px; }
#pClose { background: none; border: 0; color: #4a5360; font: inherit; cursor: pointer; padding: 0 0 0 10px; }

.pbody { padding: 15px 16px 4px; }
#pLead { font-size: 16.5px; font-weight: 500; line-height: 1.35; letter-spacing: -.01em; }
.prow { margin-top: 7px; font-family: var(--mono); font-size: 11.5px; color: var(--dim); line-height: 1.5; }

.flag { margin-top: 14px; padding: 12px 13px; border-radius: 7px; background: rgba(255,176,32,.09);
        border-left: 2px solid var(--telly); }
.flag.ok   { background: rgba(99,210,164,.08); border-left-color: var(--up); }
.flag.note { background: rgba(255,255,255,.04); border-left-color: #3a424e; }
.fh { display: block; font-size: 13px; font-weight: 600; color: var(--telly); margin-bottom: 5px; }
.flag.ok .fh { color: var(--up); } .flag.note .fh { color: #9aa4b2; }
.flag p { font-size: 13px; line-height: 1.5; color: #c6ccd6; }
.flag em { font-style: normal; color: var(--ink); border-bottom: 1px dotted rgba(255,255,255,.3); }
.fc { margin-top: 8px; font-size: 12px !important; color: #79828f !important; }

.why { margin-top: 14px; }
.wh { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
      color: #4a5360; }
.why ol { list-style: none; margin-top: 7px; display: grid; gap: 4px; }
.why li { font-size: 11.5px; line-height: 1.45; color: #79828f; display: grid;
          grid-template-columns: 62px 1fr; gap: 8px; }
.why li i { font-style: normal; color: #3f4854; font-family: var(--mono); font-size: 10.5px; }
.why li.sc { color: var(--ink); }
.ans { margin-bottom: 12px; padding: 11px 12px; border-radius: 7px; background: rgba(255,255,255,.05);
       font-size: 13px; line-height: 1.5; color: #d2d8e0; }

.pask { padding: 12px 14px 14px; border-top: 1px solid rgba(255,255,255,.07); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
.chips button { background: rgba(255,255,255,.055); border: 0; border-radius: 20px;
                padding: 5px 10px; font: inherit; font-size: 11.5px; color: #aab2bd; cursor: pointer; }
.chips button:hover { background: rgba(255,176,32,.16); color: var(--telly); }
#pInput { width: 100%; background: rgba(255,255,255,.045); border: 0; border-radius: 6px;
          padding: 9px 11px; font: inherit; font-size: 12.5px; color: var(--ink); }
#pInput::placeholder { color: #4a5360; }
#pInput:focus { outline: 1px solid rgba(255,176,32,.4); }

#dock { position: fixed; left: 20px; bottom: 20px; z-index: 55; display: flex; gap: 7px; }
#dock button { display: flex; align-items: center; gap: 7px; background: var(--tellybg);
               color: var(--ink); border: 0; border-radius: 22px; padding: 9px 15px;
               font: inherit; font-size: 12px; cursor: pointer;
               box-shadow: 0 6px 24px rgba(10,14,20,.3); }
#dock em { font-style: normal; color: var(--telly); font-family: var(--mono); font-size: 10px; }
#dockToggle.off .pdot { background: #4a5360; }
#dockVoice { color: #8a929e; font-size: 11px; }

#intro { position: fixed; inset: 0; z-index: 70; display: grid; place-content: center;
         justify-items: start; gap: 6px; padding: 48px; background: rgba(244,245,247,.97);
         transition: opacity .4s; }
#intro.gone { opacity: 0; pointer-events: none; }
/* The wordmark, not the word. Sized by height so it sits where the 52px text
   did, and capped so it never outgrows the card on a narrow window. */
#intro h1 { font-size: 0; line-height: 0; margin-bottom: 14px; }
#intro h1 img { height: 28px; width: auto; max-width: 100%; display: block; }
#intro p { color: #6c727c; font-size: 15.5px; margin-top: 4px; }
#intro ol { margin-top: 20px; display: grid; gap: 9px; color: #3b4048; font-size: 14.5px;
            list-style: none; }
#intro ol li::before { content: '·'; color: var(--telly); font-weight: 700; padding-right: 9px; }
#introGo { margin-top: 26px; background: #16181d; color: #fff; border: 0; border-radius: 22px;
           padding: 11px 26px; font: inherit; font-size: 13.5px; cursor: pointer; }
