/* RAGE BAIT: a gamer's desk at 2am. One warm key light up-left (the desk lamp you
   can't see), the monitor's cool glow, and an RGB keyboard bleeding colour onto the mat. */

.troll {
  /* Birdie, dark mode */
  --bd-bg: #0c0a11; --bd-card: #15121c; --bd-raise: #1b1724; --bd-line: #241f2e; --bd-line2: #2f2a3b;
  --bd-text: #eeeaf6; --bd-dim: #8a839b; --bd-faint: #5f5873; --bd-acc: #38c6ff; --bd-acc-dk: #1a8fd0;
  --lv-mild: #a3e05a; --lv-spicy: #ff9b1f; --lv-nuclear: #ff3d64; --lv-wholesome: #38c6ff;
  --tr-distress: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -7 5.1'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23d)'/%3E%3C/svg%3E");
  background: #0b0910;
}

/* ================================================================ the room */
.tr-wall { position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 50% 38%, #251d36 0%, transparent 70%),
    linear-gradient(90deg, rgba(0,0,0,.45), transparent 18%, transparent 82%, rgba(0,0,0,.45)),
    linear-gradient(180deg, #120e19 0%, #19131f 55%, #0d0a12 100%); }
/* the painted wall has a faint texture so it doesn't read as a flat fill */
.tr-wall::after { content: ""; position: absolute; inset: 0; background-image: var(--tex-noise); background-size: 180px; opacity: .05; }
/* bias light strip behind the monitor washing the wall */
.tr-bias { position: absolute; left: -100px; top: -230px; width: 1800px; height: 1020px; pointer-events: none;
  background:
    radial-gradient(42% 44% at 38% 50%, rgba(140,96,255,.62) 0%, rgba(140,96,255,.42) 58%, rgba(140,96,255,.14) 76%, transparent 92%),
    radial-gradient(42% 44% at 62% 50%, rgba(56,198,255,.48) 0%, rgba(56,198,255,.3) 58%, rgba(56,198,255,.1) 76%, transparent 92%);
  mix-blend-mode: screen; }
.troll.mc .tr-bias { background:
    radial-gradient(42% 44% at 38% 50%, rgba(255,200,60,.62) 0%, rgba(255,200,60,.4) 58%, rgba(255,200,60,.12) 76%, transparent 92%),
    radial-gradient(42% 44% at 62% 50%, rgba(255,61,100,.5) 0%, rgba(255,61,100,.3) 58%, rgba(255,61,100,.1) 76%, transparent 92%); }
/* acoustic foam panels on the wall, barely lit: depth, not decoration */
.tr-panels { position: absolute; top: 40px; width: 150px; height: 390px; pointer-events: none; opacity: .9;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035) 0 1px, transparent 1px 64px) 0 0 / 100% 65px,
    linear-gradient(90deg, rgba(0,0,0,.35) 0 2px, transparent 2px 48px) 0 0 / 50px 100%,
    linear-gradient(180deg, #1b1524, #140f1b);
  box-shadow: 0 0 0 2px #0b0810, 6px 10px 24px rgba(4,2,8,.7), inset 0 1px 0 rgba(255,255,255,.05); border-radius: 4px; }
.tr-panels.l { left: 26px; } .tr-panels.r { right: 26px; }
.tr-panels.l { -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.45), #000); mask-image: linear-gradient(90deg, rgba(0,0,0,.45), #000); }
.tr-panels.r { -webkit-mask-image: linear-gradient(270deg, rgba(0,0,0,.45), #000); mask-image: linear-gradient(270deg, rgba(0,0,0,.45), #000); }

/* walnut desk: grain, a darker far edge, the lit lip where it meets the wall */
.tr-desk { position: absolute; left: 0; right: 0; top: 470px; bottom: 0;
  background:
    linear-gradient(180deg, rgba(10,6,16,.75) 0%, rgba(10,6,16,.15) 22%, rgba(10,6,16,0) 50%, rgba(10,6,16,.35) 100%),
    var(--tex-wood) 0 0 / 900px 220px,
    linear-gradient(180deg, #3a2418 0%, #4d3020 40%, #42291b 100%);
  background-blend-mode: normal, multiply, normal;
  box-shadow: inset 0 2px 0 rgba(255,214,170,.16), 0 -18px 30px rgba(8,4,14,.65); }
/* the screen's light falling on the desk, and the far-edge occlusion against the wall */
.tr-deskglow { position: absolute; left: 0; right: 0; top: 470px; bottom: 0; pointer-events: none;
  background:
    radial-gradient(46% 70% at 50% 0%, rgba(170,200,255,.2), transparent 70%),
    radial-gradient(30% 50% at 18% 30%, rgba(155,107,255,.12), transparent 70%),
    radial-gradient(30% 50% at 82% 30%, rgba(56,198,255,.1), transparent 70%); }
.tr-monshadow { position: absolute; left: 236px; top: 60px; width: 1180px; height: 520px; border-radius: 30px; pointer-events: none;
  background: rgba(8,4,14,.6); filter: blur(28px); }

/* ================================================================ monitor */
.tr-monitor { position: absolute; left: 200px; top: 6px; width: 1200px; height: 548px; border-radius: 16px;
  border: 3px solid #050407;
  background:
    var(--tex-noise) 0 0 / 180px,
    linear-gradient(180deg, #2b2733 0%, #1b1821 9%, #141218 70%, #0f0d13 100%);
  background-blend-mode: soft-light, normal;
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.16), inset 1.5px 0 0 rgba(255,255,255,.06), inset 0 -2px 0 rgba(0,0,0,.6),
    0 2px 3px rgba(8,4,14,.5), 0 28px 50px rgba(8,4,14,.55); }
/* MC mode: the frame flashes gold (opacity only) */
.tr-monitor::before { content: ""; position: absolute; inset: -9px; border-radius: 22px; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 4px #ffd23f, 0 0 46px 6px rgba(255,210,63,.65); }
.troll.mc .tr-monitor::before { animation: tr-mcframe .55s ease-in-out infinite alternate; }
@keyframes tr-mcframe { from { opacity: .35; } to { opacity: 1; } }
.tr-chin { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; display: flex; align-items: center; justify-content: center; gap: 10px; pointer-events: none; }
.tr-brand { font-family: var(--font-ui); font-weight: 800; font-size: 12px; letter-spacing: .42em;
  background: linear-gradient(180deg, #d9dbe3, #7d8090 55%, #b5b8c4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tr-hz { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .12em; color: #ff3d64; opacity: .8; }
.tr-power { position: absolute; right: 26px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: #ff3d64;
  box-shadow: 0 0 4px #ff3d64, 0 0 12px rgba(255,61,100,.8); }

.tr-screen { position: absolute; left: 10px; top: 10px; right: 10px; bottom: 34px; border-radius: 4px; overflow: hidden; background: var(--bd-bg);
  color: var(--bd-text); font-family: var(--font-ui); box-shadow: 0 0 0 1.5px #000; }
/* the glass: one soft diagonal reflection, a darker edge where the panel meets the bezel */
.tr-glass { position: absolute; left: 10px; top: 10px; right: 10px; bottom: 34px; border-radius: 4px; pointer-events: none; z-index: 8;
  background:
    linear-gradient(118deg, rgba(255,255,255,.075) 0%, rgba(255,255,255,.03) 24%, transparent 24.2%, transparent 61%, rgba(255,255,255,.025) 61.2%, rgba(255,255,255,.025) 67%, transparent 67.2%),
    radial-gradient(120% 90% at 50% 0%, transparent 60%, rgba(0,0,0,.22) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), inset 0 0 18px rgba(0,0,0,.5); }

/* ---------------------------------------------------------------- browser chrome */
.tr-browser { height: 34px; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: linear-gradient(#1b1823, #16131d); border-bottom: 1px solid #000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05); font-size: 12.5px; color: var(--bd-dim); }
.tr-browser .dots { display: flex; gap: 7px; }
.tr-browser .dots i { width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff9c95, #ff5f57 55%, #c9332c); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.4); }
.tr-browser .dots i:nth-child(2) { background: radial-gradient(circle at 35% 30%, #ffe08a, #febc2e 55%, #c98d0d); }
.tr-browser .dots i:nth-child(3) { background: radial-gradient(circle at 35% 30%, #8ef09a, #28c840 55%, #18902b); }
.tr-browser .tab { position: relative; display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 34px 0 12px; margin-top: 6px; align-self: flex-end;
  background: var(--bd-bg); border-radius: 9px 9px 0 0; color: var(--bd-text); font-weight: 600; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.tr-browser .tab svg { width: 17px; height: 17px; display: block; }
.tr-browser .tab .x { position: absolute; right: 12px; top: 9px; width: 9px; height: 9px;
  background: linear-gradient(45deg, transparent 43%, var(--bd-dim) 43% 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, var(--bd-dim) 43% 57%, transparent 57%); opacity: .7; }
.tr-browser .url { flex: 1; max-width: 460px; height: 22px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: #0f0d14; border-radius: 7px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.04); font-family: var(--font-ui); font-size: 12.5px; color: var(--bd-text); }
.tr-browser .url span { color: var(--bd-faint); }
.tr-browser .lock { position: relative; width: 9px; height: 7px; margin-top: 3px; border-radius: 1.5px; background: var(--bd-dim); }
.tr-browser .lock::before { content: ""; position: absolute; left: 1.5px; top: -5px; width: 6px; height: 6px; border: 1.6px solid var(--bd-dim); border-bottom: 0; border-radius: 4px 4px 0 0; box-sizing: border-box; }
.tr-app { position: absolute; top: 34px; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 198px 1fr 330px; }

/* ---------------------------------------------------------------- nav */
.tr-nav { border-right: 1px solid var(--bd-line); padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.tr-logo { display: flex; align-items: center; gap: 8px; padding: 0 6px 12px; }
.tr-logo svg { width: 42px; height: 42px; display: block; filter: drop-shadow(0 3px 3px rgba(0,0,0,.45)); }
.tr-logo b { font-family: var(--font-display); font-weight: 400; font-size: 31px; letter-spacing: .005em;
  background: linear-gradient(180deg, #8fe0ff, #38c6ff 55%, #1d9be0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tr-nav-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 999px; font-weight: 500; font-size: 16px; color: #cfc9dc; }
.tr-nav-item.on { font-weight: 700; color: var(--bd-text); background: rgba(255,255,255,.055); }
.tr-nav-item .ico { width: 22px; height: 22px; display: inline-flex; } .tr-nav-item .ico svg { width: 22px; height: 22px; }
.tr-nav-item.on .ico svg { stroke-width: 2.4; }
.tr-badge { position: absolute; left: 24px; top: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 10.5px !important; font-weight: 800;
  background: linear-gradient(#5fd4ff, #1fa9ef); color: #04131c; display: grid; place-items: center; box-shadow: 0 0 0 2.5px var(--bd-bg); }
.tr-badge:empty { display: none; }
.tr-nav-item.bell.ring .ico { animation: tr-ring .5s; transform-origin: 50% 10%; }
@keyframes tr-ring { 15% { transform: rotate(20deg); } 35% { transform: rotate(-18deg); } 55% { transform: rotate(12deg); } 75% { transform: rotate(-6deg); } }
.tr-nav-item.bell.ring .tr-badge { animation: punch .3s var(--ease-pop); }

/* the Internet Rage meter: an app widget, not a sticker */
.tr-rage { margin-top: auto; padding: 12px 12px 12px; border-radius: 14px; background: linear-gradient(180deg, #1a1621, #141119); border: 1px solid var(--bd-line2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 6px 14px rgba(0,0,0,.35); }
.tr-rage-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-family: var(--font-ui); font-weight: 800; font-size: 10.5px; letter-spacing: .08em; color: var(--bd-dim); white-space: nowrap; }
.tr-rage-top b { font-family: var(--font-display); font-weight: 400; font-size: 22px; letter-spacing: 0; color: var(--bd-text); }
.tr-rage-bar { position: relative; height: 10px; margin-top: 7px; border-radius: 5px; background: #0a080e; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.05); }
.tr-rage-bar::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(12,10,17,.9) calc(25% - 1px) 25%); }
.tr-rage-bar i { display: block; height: 100%; width: 0; border-radius: 5px; transition: width .3s var(--ease-out);
  background: linear-gradient(180deg, rgba(255,255,255,.35), transparent 55%), linear-gradient(90deg, #ffb13d, #ff6a2b 55%, #ff2d55); }
.tr-rage.bump { animation: punch .3s var(--ease-pop); }
.tr-rage.hot { border-color: rgba(255,61,100,.6); animation: tr-hot .5s ease-in-out infinite alternate; }
.tr-rage.hot .tr-rage-top { color: #ff7a8f; }
@keyframes tr-hot { to { box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 1px rgba(255,61,100,.5), 0 0 18px rgba(255,61,100,.45); } }
.tr-mc-badge { display: none; margin-top: 8px; padding: 4px 6px 5px; border-radius: 7px; text-align: center; font-family: var(--font-display); font-size: 13px; letter-spacing: .03em; color: #3a2400;
  background: linear-gradient(180deg, #fff0a0, #ffd23f 50%, #e3a516); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 6px rgba(0,0,0,.4); }
.troll.mc .tr-mc-badge { display: block; animation: punch .6s infinite; }

/* ---------------------------------------------------------------- profile pictures */
.tr-post-head > .av, .tr-comp > .av, .tr-fi > .av, .tr-buzz-avs .av { position: relative; flex: none; display: grid; place-items: center; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #3a3150, #221c2f 70%); box-shadow: 0 0 0 1px rgba(255,255,255,.08), inset 0 -4px 8px rgba(0,0,0,.35); }
.tr-post-head > .av svg, .tr-comp > .av svg, .tr-fi > .av svg, .tr-buzz-avs .av svg { display: block; transform: scale(1.12) translateY(7%); }
.tr-comp > .av { align-self: flex-start; margin-top: 2px; }
.tr-post > .tr-post-head > .av { box-shadow: 0 0 0 2px var(--bd-bg), 0 0 0 3.5px #8b5cf6; }

/* ---------------------------------------------------------------- main column */
.tr-main { position: relative; overflow: hidden; display: flex; flex-direction: column; border-right: 1px solid var(--bd-line); }
.tr-post { padding: 11px 20px 10px; border-bottom: 1px solid var(--bd-line); }
.tr-post.enter { animation: tr-in .35s var(--ease-out); }
@keyframes tr-in { from { transform: translateY(-18px); opacity: 0; } }
.tr-post-head { display: flex; align-items: center; gap: 11px; }
.tr-post-head > div { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.tr-post-head b { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.tr-post-head span { font-size: 13.5px; color: var(--bd-dim); }
.tr-post-head .tick svg { width: 17px; height: 17px; display: block; }
.tr-post-head .more { margin-left: auto; align-self: flex-start; font-size: 18px; letter-spacing: 1px; color: var(--bd-faint); }
.tr-post-text { font-size: 18.5px; line-height: 1.34; margin: 6px 0 8px; font-weight: 400; color: #f3f0f9; }
.tr-acts { display: flex; gap: 36px; color: var(--bd-dim); font-size: 13px; font-weight: 500; }
.tr-act { display: inline-flex; align-items: center; gap: 7px; }
.tr-act .ico svg { width: 17px; height: 17px; display: block; }
.tr-act b { font-weight: 500; font-variant-numeric: tabular-nums; }
.tr-thread { display: flex; flex-direction: column; }

/* your reply, going viral */
.tr-reply { position: relative; padding: 12px 20px 12px 20px; border-bottom: 1px solid var(--bd-line);
  background: linear-gradient(90deg, color-mix(in oklab, var(--lc, var(--bd-acc)) 9%, transparent), transparent 70%); box-shadow: inset 3px 0 0 var(--lc, var(--bd-acc));
  animation: tr-in .3s var(--ease-out); --lc: var(--lv-mild); }
.tr-reply.lv-spicy { --lc: var(--lv-spicy); } .tr-reply.lv-nuclear { --lc: var(--lv-nuclear); } .tr-reply.lv-wholesome { --lc: var(--lv-wholesome); }
.tr-reply::before { content: ""; position: absolute; left: 42px; top: -10px; width: 2px; height: 14px; background: var(--bd-line2); }
.tr-reply .lvl { margin-left: auto; align-self: flex-start; padding: 3px 9px 4px; border-radius: 999px; font-family: var(--font-ui); font-weight: 800; font-size: 10.5px; letter-spacing: .1em;
  color: var(--lc); background: color-mix(in oklab, var(--lc) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--lc) 40%, transparent); }
.tr-reply-text { font-size: 19px; margin: 7px 0 9px; line-height: 1.36; color: #f6f3fb; }
.tr-reply .tr-acts { font-size: 15px; gap: 30px; }
.tr-reply .tr-acts b { font-size: 16px; font-weight: 700; color: var(--bd-text); }
.tr-reply .tr-act.lk { color: #ff5c8a; } .tr-reply .tr-act.rt { color: #35d39a; } .tr-reply .tr-act.r { color: #5fc8ff; }

/* community note: the real thing's calm, slightly official look */
.tr-note { margin-top: 10px; padding: 10px 14px 10px; border-radius: 14px; background: #121019; border: 1px solid var(--bd-line2); font-size: 14px; line-height: 1.35; color: #ddd8e8;
  animation: tr-in .4s var(--ease-out) .3s both; }
.tr-note b { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; font-size: 14px; font-weight: 700; color: var(--bd-text); }
.tr-note b .ico { display: inline-flex; width: 18px; height: 18px; color: var(--bd-acc); } .tr-note b .ico svg { width: 18px; height: 18px; }
.tr-note small { display: block; margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--bd-line); font-size: 12px; color: var(--bd-faint); }

/* ---------------------------------------------------------------- composer */
.tr-comp { display: flex; gap: 12px; padding: 9px 20px 9px; border-bottom: 1px solid var(--bd-line); }
.tr-comp.gone, .tr-opts.gone { display: none; }
.tr-comp.wobble { animation: wobble .4s; }
.tr-comp-body { flex: 1; min-width: 0; }
.tr-comp-to { font-size: 13px; color: var(--bd-dim); } .tr-comp-to::first-letter { text-transform: uppercase; }
.tr-comp-text { min-height: 29px; margin: 2px 0 5px; font-size: 21.5px; line-height: 1.32; color: #4f485f; font-weight: 500;
  --ok-c: #fbf9ff; --bad-c: #ff5b6b; --caret-c: var(--bd-acc); }
.tr-comp-text .ch.bad { background: rgba(255,75,62,.22); border-radius: 2px; }
.tr-comp-text { word-break: normal; overflow-wrap: normal; }
.tr-comp-text .ch.sp::after { content: "\200B"; } /* the shared view uses nbsp for spaces: give lines somewhere to wrap */
.tr-ph { font-size: 17px; font-weight: 400; color: var(--bd-faint); }
.tr-comp-foot { display: flex; align-items: center; gap: 18px; }
.tr-hype { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--bd-faint); }
.tr-hype-bar { flex: 1; height: 6px; border-radius: 3px; background: #1b1723; overflow: hidden; box-shadow: inset 0 1px 1px rgba(0,0,0,.6); }
.tr-hype-bar i { display: block; height: 100%; width: 100%; border-radius: 3px; background: linear-gradient(90deg, #2bd69a, var(--bd-acc)); transition: width .1s linear; }
.tr-hype-bar.low i { background: linear-gradient(90deg, #ff6a2b, #ff2d55); }
.tr-postbtn { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 18px; border-radius: 999px; background: #173246; color: #6f93ad; font-weight: 700; font-size: 15px; transition: background .15s, color .15s; }
.tr-postbtn kbd { font-size: 10px; opacity: .8; }
.tr-comp.ready .tr-postbtn { color: #031520; background: linear-gradient(180deg, #7cdcff, #38c6ff 50%, #22a6e8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 0 1px rgba(0,0,0,.5), 0 0 18px rgba(56,198,255,.55); animation: tr-ready .6s ease-in-out infinite alternate; }
@keyframes tr-ready { to { transform: scale(1.06); } }
.tr-postbtn.nudge { animation: wobble .3s; }

/* reply drafts */
.tr-opts { padding: 8px 16px 8px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.tr-opts.wobble { animation: wobble .4s; }
.tr-opt { position: relative; display: grid; grid-template-columns: 96px 1fr 56px; gap: 12px; align-items: center; padding: 6px 12px 6px 14px; border-radius: 11px; --lc: var(--lv-mild);
  background: linear-gradient(180deg, #17141e, #131019); border: 1px solid var(--bd-line2); box-shadow: inset 3px 0 0 var(--lc), 0 2px 6px rgba(0,0,0,.3);
  transition: transform .15s var(--ease-out), background .15s; }
.tr-opt.lv-spicy { --lc: var(--lv-spicy); } .tr-opt.lv-nuclear { --lc: var(--lv-nuclear); } .tr-opt.lv-wholesome { --lc: var(--lv-wholesome); }
.tr-opt.locked { background: linear-gradient(90deg, color-mix(in oklab, var(--lc) 16%, #15121c), #15121c 70%); border-color: color-mix(in oklab, var(--lc) 45%, transparent);
  transform: translateX(4px); }
.tr-opt.dim { display: none; }
.tr-opt-lvl { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-family: var(--font-ui); font-weight: 800; font-size: 11px; letter-spacing: .14em; color: var(--lc); line-height: 1; }
.tr-opt-lvl .fl { display: flex; gap: 1px; color: var(--lc); } .tr-opt-lvl svg { width: 17px; height: 17px; display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
.tr-opt-text { font-size: 15px; line-height: 1.27; color: #ddd8e8; }
.tr-opt-text b { display: inline-grid; place-items: center; min-width: 21px; height: 20px; margin-right: 4px; padding: 0 4px; border-radius: 5px; vertical-align: 1px;
  font-family: var(--font-mono); font-size: 14px; font-weight: 800; color: #0b0910;
  background: linear-gradient(180deg, color-mix(in oklab, var(--lc) 65%, white), var(--lc) 60%, color-mix(in oklab, var(--lc) 75%, black));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 2px 0 color-mix(in oklab, var(--lc) 45%, black), 0 3px 4px rgba(0,0,0,.4); }
.tr-opt-pts { text-align: right; font-family: var(--font-display); font-size: 17px; color: var(--lc); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- right column */
.tr-side { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.tr-box { background: var(--bd-card); border-radius: 16px; padding: 12px 12px 10px; border: 1px solid var(--bd-line); }
.tr-box h4 { margin: 0 2px 10px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 9px; }
.tr-box h4 .live { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; letter-spacing: .1em; padding: 3px 7px 3px 6px; border-radius: 999px;
  background: rgba(255,61,100,.15); color: #ff5c7a; box-shadow: inset 0 0 0 1px rgba(255,61,100,.35); }
.tr-box h4 .live i { width: 6px; height: 6px; border-radius: 50%; background: #ff3d64; box-shadow: 0 0 6px #ff3d64; animation: tr-live 1.2s ease-in-out infinite; }
@keyframes tr-live { 50% { opacity: .25; } }
.tr-feed { flex: 1; min-height: 0; overflow: hidden; }
.tr-feed-list { display: flex; flex-direction: column; gap: 2px; }
.tr-fi { display: flex; gap: 10px; align-items: flex-start; padding: 8px 8px; border-radius: 10px; animation: tr-fi .3s var(--ease-out); font-size: 13.5px; border-bottom: 1px solid var(--bd-line); }
@keyframes tr-fi { from { transform: translateX(26px); opacity: 0; } }
.tr-fi > div { min-width: 0; }
.tr-fi-head { display: flex; gap: 6px; align-items: baseline; } .tr-fi-head b { white-space: nowrap; font-weight: 700; } .tr-fi-head span { color: var(--bd-faint); white-space: nowrap; font-size: 12.5px; }
.tr-fi-text { color: #d9d4e4; line-height: 1.3; margin-top: 1px; }
.tr-fi.quote { background: linear-gradient(90deg, rgba(53,211,154,.08), transparent 60%); box-shadow: inset 2px 0 0 #35d39a; }
.tr-fi.dunk { background: linear-gradient(90deg, rgba(255,210,63,.1), transparent 60%); box-shadow: inset 2px 0 0 #ffd23f; }
.tr-fi .av svg { display: block; }
.tr-feed-empty { color: var(--bd-faint); font-size: 14px; padding: 6px 4px; line-height: 1.4; }

.tr-buzz { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: var(--bd-dim); font-weight: 500; font-size: 14px; animation: tr-in .4s var(--ease-out) .5s both; }
.tr-buzz-avs { display: flex; } .tr-buzz-avs .av { margin-left: -8px; box-shadow: 0 0 0 2px var(--bd-bg); } .tr-buzz-avs .av:first-child { margin-left: 0; }
.tr-buzz .dots { display: inline-flex; gap: 3px; margin-left: 6px; } .tr-buzz .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--bd-dim); animation: tr-dot 1s infinite; }
.tr-buzz .dots i:nth-child(2) { animation-delay: .15s; } .tr-buzz .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes tr-dot { 30% { transform: translateY(-4px); background: var(--bd-acc); } }

/* ---------------------------------------------------------------- the RATIO stamp: a real rubber stamp */
.tr-stamp { position: absolute; left: 42%; top: 34%; z-index: 6; transform: translate(-50%, -50%) scale(0); pointer-events: none; opacity: 0; white-space: nowrap;
  padding: 6px 30px 12px; font-family: var(--font-display); font-size: 96px; line-height: 1; letter-spacing: .03em; color: #ff3d5a;
  border: 7px solid currentColor; border-radius: 16px; outline: 2.5px solid currentColor; outline-offset: 6px;
  -webkit-mask-image: var(--tr-distress); mask-image: var(--tr-distress); -webkit-mask-size: 260px; mask-size: 260px;
  text-shadow: 0 0 1px currentColor; }
.tr-stamp.show { animation: tr-stamp 1.6s var(--ease-out); }
@keyframes tr-stamp { 0% { transform: translate(-50%, -50%) scale(2.6) rotate(-20deg); opacity: 0; } 10% { transform: translate(-50%, -50%) scale(.96) rotate(-11deg); opacity: .95; }
  14% { transform: translate(-50%, -50%) scale(1) rotate(-11deg); } 82% { opacity: .95; } 100% { transform: translate(-50%, -50%) scale(1) rotate(-11deg); opacity: 0; } }

/* ---------------------------------------------------------------- Main Character banner: gold foil broadcast plate */
.tr-mc { position: absolute; left: 50%; top: 44px; z-index: 7; width: 780px; display: grid; grid-template-columns: 96px 1fr 92px; align-items: center; gap: 16px; padding: 14px 22px 22px 18px;
  transform: translateX(-50%) translateY(-260px) rotate(-1.5deg); pointer-events: none; overflow: hidden; color: #2a1800;
  background:
    linear-gradient(100deg, transparent 0 30%, rgba(255,255,255,.55) 38%, transparent 46%) -200% 0 / 220% 100% no-repeat,
    linear-gradient(175deg, #fff2b0 0%, #ffd84d 26%, #f4b926 52%, #ffd65a 74%, #d99a1c 100%);
  border-radius: 18px; border: 3px solid #3a2200;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.75), inset 0 -3px 0 rgba(140,80,0,.45), inset 0 0 0 6px rgba(255,255,255,.12), 0 4px 8px rgba(8,4,14,.5), 0 24px 50px rgba(8,4,14,.55);
  transition: transform .5s var(--ease-pop); }
.tr-mc.show { transform: translateX(-50%) translateY(0) rotate(-1.5deg); animation: tr-sheen 1.4s ease-out .3s 1 both; }
@keyframes tr-sheen { to { background-position: 200% 0, 0 0; } }
.tr-mc-crown svg { width: 96px; height: 80px; display: block; filter: drop-shadow(0 4px 3px rgba(80,40,0,.45)); }
.tr-mc-txt small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #8a5300; }
.tr-mc-txt b { display: block; margin: 2px 0 4px; font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: .95; color: #2a1400; letter-spacing: .01em;
  text-shadow: 0 1px 0 rgba(255,255,255,.55); white-space: nowrap; font-size: 37px; }
.tr-mc-txt span { display: block; font-weight: 600; font-size: 14.5px; color: #5c3600; }
.tr-mc-x2 { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; font-family: var(--font-display); font-size: 42px; color: #fff;
  background: radial-gradient(circle at 35% 30%, #ff7d9a, #ff2d55 55%, #b0102f); border: 3px solid #3a0010;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.45), inset 0 -4px 8px rgba(80,0,20,.5), 0 4px 10px rgba(80,20,0,.45); text-shadow: 0 2px 0 rgba(80,0,20,.6); transform: rotate(8deg); }
.tr-mc-track { position: absolute; left: 18px; right: 18px; bottom: 9px; height: 5px; border-radius: 3px; background: rgba(90,50,0,.25); overflow: hidden; }
.tr-mc-track i { display: block; height: 100%; width: 100%; border-radius: 3px; background: linear-gradient(90deg, #ff2d55, #b0102f); }
.tr-mc.show.mini { left: auto; right: 10px; top: 3px; width: 420px; grid-template-columns: 28px 1fr 30px; gap: 8px; padding: 2px 10px 6px; border-radius: 8px; border-width: 2px;
  transform: none; animation: tr-mini .3s var(--ease-out); }
@keyframes tr-mini { from { opacity: 0; transform: translateY(-8px); } }
.tr-mc.mini .tr-mc-crown svg { width: 28px; height: 23px; }
.tr-mc.mini .tr-mc-txt small, .tr-mc.mini .tr-mc-txt span { display: none; }
.tr-mc.mini .tr-mc-txt b { font-size: 17px; margin: 1px 0 0; }
.tr-mc.mini .tr-mc-x2 { width: 26px; height: 26px; font-size: 13px; border-width: 2px; }
.tr-mc.mini .tr-mc-track { bottom: 2px; height: 3px; left: 10px; right: 10px; }
.troll.mc .tr-screen { box-shadow: 0 0 0 1.5px #000, inset 0 0 70px rgba(255,210,63,.22); }

/* ================================================================ desk mat + keyboard (one tilted plane) */
.tr-kbwrap { position: absolute; left: 293px; top: 560px; width: 1014px; height: 232px; perspective: 1000px; perspective-origin: 50% -40%; pointer-events: none; }
.tr-mat { position: absolute; left: -130px; right: -130px; bottom: -120px; height: 520px; border-radius: 30px;
  transform-origin: 50% calc(100% - 120px); transform: rotateX(34deg);
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(170,200,255,.08), transparent 70%),
    var(--tex-fabric) 0 0 / 6px 6px,
    var(--tex-noise) 0 0 / 180px,
    linear-gradient(180deg, #17151d, #121017);
  background-blend-mode: normal, normal, soft-light, normal;
  box-shadow: 0 0 0 3px #08070b, inset 0 0 0 1px rgba(255,255,255,.05), 0 10px 26px rgba(8,4,14,.7); }
/* stitched edge */
.tr-mat::before { content: ""; position: absolute; inset: 9px; border-radius: 22px; border: 2px dashed rgba(200,190,220,.16); }
.tr-mat::after { content: ""; position: absolute; inset: 0; border-radius: 30px; box-shadow: inset 0 0 0 6px #0f0d13; }
/* RGB underglow pooling on the mat around the keyboard */
.tr-underglow { position: absolute; left: -60px; right: -60px; bottom: -50px; height: 400px; border-radius: 60px; pointer-events: none;
  transform-origin: 50% calc(100% - 46px); transform: rotateX(34deg);
  background: linear-gradient(90deg, #ff3d7f, #ff9b1f, #d7ff3c, #2ee6a6, #38c6ff, #9b6bff, #ff3d7f);
  -webkit-mask-image: radial-gradient(50% 50% at 50% 50%, #000 52%, rgba(0,0,0,.35) 72%, transparent 100%);
  mask-image: radial-gradient(50% 50% at 50% 50%, #000 52%, rgba(0,0,0,.35) 72%, transparent 100%);
  opacity: .5; }
.troll.mc .tr-underglow { opacity: .7; }

/* the case: anodised aluminium, a polished chamfer, a dark front face */
.tr-kb { position: absolute; left: 13px; bottom: 0; width: 988px; padding: 14px; border-radius: 18px; transform-origin: 50% 100%; transform: rotateX(34deg);
  background:
    var(--tex-brushed) 0 0 / 400px 120px,
    linear-gradient(180deg, #4a4656 0%, #36323f 5%, #2b2833 50%, #23202a 100%);
  background-blend-mode: overlay, normal;
  border: 2.5px solid #050407;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.3), inset 0 0 0 4px rgba(255,255,255,.035), inset 0 -2px 0 rgba(0,0,0,.5),
    0 13px 0 #17141c, 0 15px 0 #050407, 0 26px 34px rgba(8,4,14,.75); }
/* cool monitor light across the back of the board */
.tr-kb::after { content: ""; position: absolute; inset: 0; border-radius: 16px; pointer-events: none; z-index: 3;
  background: linear-gradient(180deg, rgba(180,205,255,.1), transparent 38%); }
.tr-plate { position: absolute; inset: 12px; border-radius: 9px; overflow: hidden; background: #08070b; box-shadow: inset 0 2px 6px rgba(0,0,0,.8); }
.tr-rgb { position: absolute; top: 0; bottom: 0; left: 0; width: 400%; opacity: .9; will-change: transform;
  background: linear-gradient(90deg, #ff3d7f, #ff9b1f, #d7ff3c, #2ee6a6, #38c6ff, #9b6bff, #ff3d7f, #ff9b1f, #d7ff3c, #2ee6a6, #38c6ff, #9b6bff, #ff3d7f);
  animation: tr-rgb 7s linear infinite; }
@keyframes tr-rgb { to { transform: translateX(-50%); } }
.troll.mc .tr-rgb { animation-duration: 1.6s; }

.tr-kb-row { position: relative; display: flex; gap: 6px; margin-bottom: 6px; } .tr-kb-row:last-child { margin-bottom: 0; }
/* keycap: the skirt (outer) and the sculpted top (inner, dished, lit from the back-left) */
.tr-key { --h: calc(var(--x) * 1deg + 330deg); position: relative; flex: none; height: 50px; border-radius: 8px;
  background: linear-gradient(180deg, #2c2833 0%, #221e28 55%, #18151d 100%);
  box-shadow: 0 0 0 1.5px #050407, 0 3px 9px -1px hsl(var(--h) 95% 58% / .5); }
.tr-cap { position: absolute; left: 4px; right: 4px; top: 2px; bottom: 9px; border-radius: 6px;
  background:
    radial-gradient(110% 80% at 50% 35%, rgba(0,0,0,.18), transparent 70%),
    linear-gradient(180deg, #403a4a 0%, #36313f 45%, #2f2b37 100%);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.16), inset 1px 0 0 rgba(255,255,255,.05), inset 0 -1.5px 0 rgba(0,0,0,.35), 0 1px 1px rgba(0,0,0,.5);
  transition: transform .06s ease-out; }
/* doubleshot legends lit from below */
.tr-key .main { position: absolute; left: 8px; top: 5px; font-family: var(--font-ui); font-weight: 700; font-size: 16px; line-height: 1;
  color: hsl(var(--h) 90% 80%); text-shadow: 0 0 5px hsl(var(--h) 100% 60% / .85), 0 0 1px hsl(var(--h) 100% 75%); }
.tr-key .alt { position: absolute; right: 7px; top: 4px; font-family: var(--font-ui); font-size: 11px; font-weight: 600; line-height: 1;
  color: hsl(var(--h) 80% 76% / .8); text-shadow: 0 0 4px hsl(var(--h) 100% 60% / .6); }
.tr-key.sp .main { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; top: auto; bottom: 6px; }
.tr-key.space .tr-cap { background: radial-gradient(70% 90% at 50% 20%, rgba(0,0,0,.16), transparent 70%), linear-gradient(180deg, #403a4a 0%, #36313f 45%, #2f2b37 100%); }
/* the keystroke: the top sinks over the skirt and the backlight bursts out round it */
.tr-key.down .tr-cap { transform: translateY(5px); }
.tr-key.down { box-shadow: 0 0 0 1.5px #050407, 0 2px 18px 3px hsl(var(--h) 100% 62% / .95); }
.tr-key.down .main { color: #fff; }
.tr-key .lit { position: absolute; inset: -5px; border-radius: 12px; background: radial-gradient(closest-side, hsl(var(--h) 100% 72% / .95), hsl(var(--h) 100% 60% / 0)); opacity: 0;
  pointer-events: none; mix-blend-mode: screen; z-index: 2; }
/* cheese dust from a snack you can't see, crusted on a few caps */
.tr-key.dust .tr-cap::after { content: ""; position: absolute; inset: 0; border-radius: 6px; pointer-events: none;
  background: radial-gradient(circle at 28% 72%, #ffaa3b 0 1.6px, transparent 2.2px), radial-gradient(circle at 66% 38%, #ffbe5c 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 52% 82%, #e98a1f 0 1.3px, transparent 1.9px), radial-gradient(circle at 80% 70%, #ffaa3b 0 1px, transparent 1.6px); }

/* ================================================================ lens */
.tr-vignette { position: absolute; inset: 0; pointer-events: none; z-index: 20;
  background: radial-gradient(120% 100% at 50% 42%, transparent 58%, rgba(6,3,12,.62) 100%); }
.tr-grain { position: absolute; inset: 0; pointer-events: none; z-index: 21; background-image: var(--tex-noise); background-size: 180px; opacity: .045; }

/* reduced motion: the RGB holds still */
body.calm .tr-rgb { animation: none; }
@media (prefers-reduced-motion: reduce) { .tr-rgb { animation: none; } }
