body.hubpage{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;-webkit-font-smoothing:antialiased}
/* SAKSHI hub: the room. Everything here is for the front page only. */
.hubpage { --hub-bg: #17122b; --hub-ink: #f3ecff; --hub-mute: #b9acd9; --hub-accent: #ffc46b; --hub-cyan: #3de7ff; --hub-pink: #ff4fd8;
  min-height: 100vh; margin: 0; background: radial-gradient(1200px 700px at 50% 0%, #2a2150 0%, var(--hub-bg) 70%); color: var(--hub-ink); }
.hubpage a { color: inherit; }
.hubwrap { max-width: 1240px; margin: 0 auto; padding: 18px 20px 40px; }
.hubtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 14px; }
.hubbrand { font-size: 13px; letter-spacing: .42em; font-weight: 700; color: var(--hub-accent); margin: 0; }
.hubtop form { margin: 0; }
.hubbtns { display: flex; gap: 8px; }
.hubtop button { background: transparent; color: var(--hub-mute); border: 1px solid #3b3265; border-radius: 10px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.hubtop button:hover { color: var(--hub-ink); border-color: var(--hub-accent); }
.hubhello { margin: 6px 4px 14px; }
.hubhello h1 { font-size: clamp(22px, 3.2vw, 32px); font-weight: 600; margin: 0 0 4px; }
.hubhello p { margin: 0; color: var(--hub-mute); font-size: 15px; max-width: 60ch; }
.roomwrap { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid #3b3265; box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 196, 107, .06) inset; }
.room { display: block; width: 100%; height: auto; }
.roomtools { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; margin: 12px 4px 0; color: var(--hub-mute); font-size: 13px; }
.roomtools button { background: transparent; color: var(--hub-mute); border: 1px solid #3b3265; border-radius: 10px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.roomtools button:hover { color: var(--hub-ink); border-color: var(--hub-accent); }
.doorlist { display: none; list-style: none; padding: 0; margin: 16px 0 0; gap: 12px; }
.doorlist a { display: block; text-decoration: none; padding: 18px; border-radius: 16px; border: 1px solid #3b3265; background: #211a42; }
.doorlist a strong { display: block; font-size: 18px; margin-bottom: 4px; }
.doorlist a span { color: var(--hub-mute); font-size: 14px; }
.doorlist .d-trading { border-color: #5a4a1a; box-shadow: inset 0 0 0 1px rgba(255, 196, 107, .2); }
.doorlist .d-learn { border-color: #1f5f56; box-shadow: inset 0 0 0 1px rgba(80, 220, 190, .2); }

/* the room, lo-fi look: soft light, depth, glow, grain. Colours by time of day (New Zealand). */
.room { --w1: #1d2140; --w2: #2d2b55; --f1: #3a2a2e; --f2: #1a1420; --s1: #080b24; --s2: #27306a; --shaft: #8fb4ff; --shaftop: .11; --gradeop: .22; --grain: .16; }
.room.t-dusk { --w1: #3a3058; --w2: #6a4767; --f1: #4a3434; --f2: #261b25; --s1: #3b3a82; --s2: #ff9a6e; --shaft: #ffb27a; --shaftop: .2; --gradeop: .16; }
.room.t-day { --w1: #55608c; --w2: #8791b8; --f1: #6a5444; --f2: #3a2c2c; --s1: #6fb7e8; --s2: #dff0ff; --shaft: #fff0c8; --shaftop: .26; --gradeop: .1; }
.room.lamp-off { --w1: #131730; --w2: #1e1d3d; --f1: #2a2025; --f2: #120e17; }
.room .wall1 { stop-color: var(--w1); } .room .wall2 { stop-color: var(--w2); }
.room .fl1 { stop-color: var(--f1); } .room .fl2 { stop-color: var(--f2); }
.room .sk1 { stop-color: var(--s1); } .room .sk2 { stop-color: var(--s2); }
.room .planks line { stroke: rgba(0, 0, 0, .28); stroke-width: 2; } .room .skirt { fill: #20192f; } .room .skirtlip { fill: rgba(255, 255, 255, .06); }
.room .shaft { fill: var(--shaft); opacity: var(--shaftop); mix-blend-mode: screen; }
.room .motes circle { fill: #fff; opacity: 0; animation: mote 9s ease-in-out infinite; }
.room .motes circle:nth-child(2n) { animation-delay: 2.2s; animation-duration: 11s; } .room .motes circle:nth-child(3n) { animation-delay: 4.6s; } .room .motes circle:nth-child(5n) { animation-delay: 6.5s; animation-duration: 12s; }
.room.t-day .motes circle { animation-name: mote2; }
/* window */
.room .frame { fill: #171533; } .room .bar { fill: #171533; opacity: .85; } .room .sill { fill: #2a2450; } .room .rod { fill: #6f6498; }
.room .fold { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 2; }
.room .moonhalo { fill: #bcd0ff; opacity: .28; } .room .moon { fill: #f6f1da; }
.room .sun, .room .sunhalo { opacity: 0; } .room .sun { fill: #ffd9a0; } .room .sunhalo { fill: #ffb070; }
.room.t-dusk .sun { opacity: 1; fill: #ffc088; } .room.t-dusk .sunhalo { opacity: .55; } .room.t-day .sun { opacity: 1; } .room.t-day .sunhalo { opacity: .4; }
.room.t-dusk .moon, .room.t-dusk .moonhalo, .room.t-day .moon, .room.t-day .moonhalo { opacity: 0; }
.room .stars circle { fill: #fff; animation: twinkle 3.6s ease-in-out infinite; }
.room .stars circle:nth-child(2n) { animation-delay: .9s; } .room .stars circle:nth-child(3n) { animation-delay: 1.7s; }
.room.t-dusk .stars { opacity: .3; } .room.t-day .stars { opacity: 0; }
.room .clouds ellipse { fill: #aab4e6; opacity: .22; } .room .clouds { animation: drift 70s linear infinite alternate; }
.room.t-day .clouds ellipse { fill: #fff; opacity: .6; }
.room .city1 { fill: #12112c; } .room .city2 { fill: #1d1a43; opacity: .95; }
.room.t-dusk .city1 { fill: #2a2048; } .room.t-dusk .city2 { fill: #4a3466; }
.room.t-day .city1 { fill: #4a5486; } .room.t-day .city2 { fill: #7080b0; }
.room .citylights rect { fill: #ffd9a0; } .room .citylights circle { fill: #ffbf70; opacity: .5; }
.room.t-day .citylights { opacity: 0; }
/* string lights as soft bokeh */
.room .wire { stroke: #120e22; }
.room .bb .core { fill: #ffe2a8; } .room .bb .halo { fill: #ffb35c; opacity: .55; animation: pulse 4.5s ease-in-out infinite; }
.room .bb.b2 .core { fill: #ffc6ea; } .room .bb.b2 .halo { fill: #d65aa8; animation-delay: 1.4s; }
.room .bb.b3 .core { fill: #c6f4ff; } .room .bb.b3 .halo { fill: #4fd8e6; animation-delay: 2.8s; }
/* shelves, props */
.room .board { fill: #6a4a36; } .room .boardshade { fill: rgba(0, 0, 0, .45); }
.room .bk1 { fill: #8a4a5a; } .room .bk2 { fill: #3f7f80; } .room .bk3 { fill: #c9a24f; } .room .bk4 { fill: #4f5a9a; } .room .hl { fill: rgba(255, 255, 255, .14); }
.room .pot { fill: #a85c42; } .room .leaf { fill: #4a9d6f; } .room .leaf2 { fill: #2f7d58; }
.room .ctl { fill: #2b2748; } .room .ctlbtn2 { fill: #4fd8e6; opacity: .85; } .room .hscreen { fill: #1a3a46; } .room .sprite { fill: #8ff3ff; }
.room .hglow { fill: #4fd8e6; opacity: .12; animation: pulse 5s ease-in-out infinite; }
.room .jarglow { fill: #ffbf70; opacity: .45; animation: pulse 3.4s ease-in-out infinite; } .room .glass2 { fill: rgba(255, 220, 160, .18); }
.room .fly { fill: #fff0b8; animation: fly 3.2s ease-in-out infinite; } .room .fly.f2 { animation-delay: 1s; } .room .fly.f3 { animation-delay: 2s; }
.room .pframe { fill: #151228; } .room .artsun { fill: #ffe0a8; } .room .artsunglow { fill: #ffd0a0; opacity: .5; } .room .artmtn { fill: #3a2f7e; } .room .artmtn2 { fill: #261f5a; }
.room .artshape2 { fill: #5fe0ee; opacity: .85; } .room .artcut { fill: #2b3566; } .room .artline { fill: rgba(255, 255, 255, .25); }
.room .floorglow1 { fill: #4fd8e6; opacity: .1; } .room .floorglow2 { fill: #d65aa8; opacity: .12; }
.room .rug { fill: #2c2250; } .room .rug2 { fill: #3b2e6a; } .room .rugring { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 2; }
.room .deskshadow { fill: #000; opacity: .35; } .room .shadowf { fill: #000; opacity: .38; }
.room .chairpost { fill: #1f1b36; } .room .chairleg { stroke: #1f1b36; } .room .rimlight { fill: #ff5fa8; opacity: .55; }
.room .catline { stroke: #3a2418; } .room .cattail { stroke: #b57a4f; transform-box: fill-box; transform-origin: 0% 100%; animation: tail 5s ease-in-out infinite; } .room .catrim { stroke: #ffe0b0; opacity: .3; }
.room .cat { transform-box: fill-box; transform-origin: 50% 100%; animation: breathe 4.5s ease-in-out infinite; }
/* desk */
.room .deskleg { fill: #2a1d18; } .room .deskedge { fill: rgba(255, 255, 255, .14); } .room .drawer { fill: #3f2b21; } .room .knob { fill: #c9a24f; }
.room .deskrefl { fill: #4fd8e6; opacity: .14; } .room .mat { fill: #141226; } .room .matedge { fill: #d65aa8; opacity: .5; }
.room .lampglow { transition: opacity .5s; } .room .lampcone { fill: #ffb35c; opacity: .2; mix-blend-mode: screen; transition: opacity .5s; }
.room.lamp-off .lampglow, .room.lamp-off .lampcone { opacity: 0; }
.room .lampbase, .room .lamphead { fill: #d9a24f; } .room .lamparm { stroke: #b88438; } .room .lampbulb { fill: #fff0c0; }
.room.lamp-off .lampbulb { fill: #6a5c40; }
.room .lampbtn { cursor: pointer; outline: none; } .room .lampbtn:focus-visible rect { stroke: #ffc46b; stroke-width: 3; }
.room .stand { fill: #2c2848; } .room .hband { stroke: #d65aa8; } .room .cup { fill: #1e1b38; } .room .cupglow { fill: #4fd8e6; opacity: .9; filter: drop-shadow(0 0 4px #4fd8e6); } .room .mic { stroke: #4a4378; }
.room .glass { fill: #0d0b1e; } .room .fanring { fill: none; stroke: #4fd8e6; stroke-width: 2; opacity: .85; filter: drop-shadow(0 0 4px #4fd8e6); }
.room .blade { fill: #d65aa8; opacity: .8; } .room .blades { transform-box: fill-box; transform-origin: center; animation: spin 2.4s linear infinite; }
.room #fan2 .fanring { stroke: #d65aa8; filter: drop-shadow(0 0 4px #d65aa8); } .room #fan2 .blade { fill: #4fd8e6; } .room #fan2 .blades { animation-duration: 3.1s; }
.room .ledstrip { fill: #d65aa8; filter: drop-shadow(0 0 5px #d65aa8); animation: rgb 9s linear infinite; }
.room .pcglow, .room .screenglow { pointer-events: none; mix-blend-mode: screen; }
.room .mframe { fill: #0e0d20; } .room .grid { stroke: #1d2b48; stroke-width: 1; } .room .wick { stroke: #6f7fa6; stroke-width: 1.6; }
.room .mtext { fill: #7f8fb0; font: 600 11px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; } .room .mup { fill: #38c79a; }
.room .up { fill: #38c79a; filter: drop-shadow(0 0 3px rgba(56, 199, 154, .7)); } .room .down { fill: #e5546f; filter: drop-shadow(0 0 3px rgba(229, 84, 111, .6)); }
.room .gloss { fill: #fff; opacity: .035; }
.room .cd { transform-box: fill-box; transform-origin: 50% 100%; animation: flick 3.2s ease-in-out infinite; } .room .c2 { animation-delay: .8s; } .room .c3 { animation-delay: 1.6s; }
.room .neck { fill: #1e1b38; } .room .mbase { fill: #1e1b38; }
.room .kb { fill: #17142b; } .room .kbkeys { fill: #221e3e; } .room .keyrows line { stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.room .kbglow { fill: #d65aa8; opacity: .5; animation: rgbf 9s linear infinite; }
.room .mouse { fill: #1e1b38; stroke: #4fd8e6; stroke-width: 1.2; opacity: .95; }
.room .saucer { fill: #e9ddc8; } .room .mughandle { stroke: #b45f56; } .room .teasurface { fill: #8a4a22; }
.room .steam path { stroke: #fff; opacity: 0; animation: rise 5s ease-in-out infinite; } .room .steam .s2 { animation-delay: 1.7s; } .room .steam .s3 { animation-delay: 3.4s; }
.room .lines { stroke: #8d7c58; opacity: .6; } .room .spine { fill: #7a4f36; } .room .ribbon { fill: #c25a6a; } .room .pen line { stroke: #2a8a8a; } .room .pen circle { fill: #8ff3ff; }
.room .eye { fill: #3a2418; }
/* the film layers must never catch clicks */
.room .grade, .room .vig, .room .grainlayer { pointer-events: none; }
.room .grade { mix-blend-mode: soft-light; opacity: var(--gradeop); }
.room .grainlayer { mix-blend-mode: overlay; opacity: var(--grain); }
/* doors */
.room .door { cursor: pointer; outline: none; }
.room .door .glow { opacity: 0; transition: opacity .2s; }
.room #door-trading .glow { stroke: #4fd8e6; filter: drop-shadow(0 0 8px #4fd8e6); }
.room #door-learn .glow { stroke: #ffc46b; filter: drop-shadow(0 0 8px #ffc46b); }
.room #door-finance .glow { stroke: #f0c24a; filter: drop-shadow(0 0 8px #f0c24a); }
/* 14 Oct 2026: no outline box around a door on hover. The name label still shows. */
.room .door .glow { display: none; }
.room .tip { opacity: 0; transition: opacity .2s; pointer-events: none; }
.room .tip rect { fill: #100c20; stroke: #ffc46b; stroke-width: 1.5; } .room .tip text { fill: #ffc46b; font-size: 16px; font-weight: 700; }
.room .door:hover .tip, .room .door:focus-visible .tip { opacity: 1; }

@keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: .5; } 50% { opacity: .95; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { 0% { opacity: 0; transform: translateY(8px); } 40% { opacity: .5; } 100% { opacity: 0; transform: translateY(-18px); } }
@keyframes flick { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.1); } }
@keyframes rgb { 0% { fill: #d65aa8; } 33% { fill: #4fd8e6; } 66% { fill: #8fd66a; } 100% { fill: #d65aa8; } }
@keyframes rgbf { 0% { fill: #d65aa8; } 33% { fill: #4fd8e6; } 66% { fill: #8fd66a; } 100% { fill: #d65aa8; } }
@keyframes tail { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(8deg); } }
@keyframes breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.03); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes mote { 0% { opacity: 0; transform: translate(0, 0); } 30% { opacity: .55; } 100% { opacity: 0; transform: translate(26px, -34px); } }
@keyframes mote2 { 0% { opacity: 0; transform: translate(0, 0); } 30% { opacity: .35; } 100% { opacity: 0; transform: translate(20px, -26px); } }
@keyframes drift { from { transform: translateX(-14px); } to { transform: translateX(18px); } }
@keyframes fly { 0%, 100% { transform: translate(0, 0); opacity: .4; } 50% { transform: translate(5px, -7px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .room *, .room { animation: none !important; transition: none !important; } }
@media (max-width: 700px) {
  .roomwrap { display: none; } .doorlist { display: grid; grid-template-columns: 1fr; } .roomtools .lamp-hint { display: none; }
}
@media (min-width: 701px) { .doorlist { display: none; } }

/* desktop: the room fills the whole window; the greeting and buttons float over it */
@media (min-width: 701px) {
  html:has(body.hubpage) { background: #0d0a1d; }
  body.hubpage { overflow: hidden; height: 100vh; background: #0d0a1d; }
  .hubwrap { max-width: none; padding: 0; }
  .roomwrap { position: fixed; inset: 0; border: 0; border-radius: 0; box-shadow: none; z-index: 0; }
  .room { width: 100%; height: 100%; }
  .hubtop { position: fixed; top: 0; left: 0; right: 0; z-index: 3; padding: 16px 24px 36px; background: linear-gradient(rgba(10, 7, 22, .78), rgba(10, 7, 22, 0)); pointer-events: none; }
  .hubtop button { pointer-events: auto; background: rgba(15, 11, 30, .55); }
  .hubhello { position: fixed; left: 24px; top: 58px; z-index: 3; margin: 0; pointer-events: none; text-shadow: 0 2px 14px rgba(5, 3, 15, .9); }
  .hubhello h1 { font-size: 22px; margin: 0 0 2px; }
  .hubhello p { font-size: 13px; }
  .hubhello::before { content: ""; position: absolute; left: -28px; top: -22px; right: -90px; bottom: -26px; z-index: -1; background: radial-gradient(ellipse at 28% 45%, rgba(8, 5, 22, .82), rgba(8, 5, 22, .55) 55%, rgba(8, 5, 22, 0) 78%); }
  .hubhello p { color: #e6defa; }
  .roomtools { position: fixed; left: 24px; right: 24px; bottom: 14px; z-index: 3; margin: 0; pointer-events: none; }
  .roomtools button { pointer-events: auto; background: rgba(15, 11, 30, .55); }
  .roomtools .lamp-hint { display: none; }
}

/* whiteboard */
.room .wbshadow { fill: #000; opacity: .4; } .room .wbframe { fill: #8f95a6; } .room .wbface { fill: #e9e8e2; } .room .wbsheen { fill: #fff; opacity: .1; }
.room .wbtitle { fill: #2a3a8a; font: 800 13px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .14em; }
.room .wbline { stroke: #2a3a8a; stroke-width: 2; stroke-linecap: round; }
.room .wbtxt { font: 700 12.5px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .02em; }
.room .wbtxt.m1 { fill: #1c6b4a; } .room .wbtxt.m2 { fill: #1c6b4a; } .room .wbtxt.m3 { fill: #6b6f7c; } .room .wbtxt.m4 { fill: #a03a2e; } .room .wbtxt.m5 { fill: #2a3a8a; }
.room .wbtray { fill: #7e8496; } .room .marker { fill: #2a3a8a; }
.room #door-board .glow { stroke: #ffffff; filter: drop-shadow(0 0 8px #ffffff); }
.room .door .hit { pointer-events: all; }
.doorlist .d-board { border-color: #44456b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }

@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@media (min-width: 701px) { .hubbrand { display: none; } }
@media (min-width: 701px) { .hubtop { justify-content: flex-end; } }


/* sign in: the room, softly blurred, with a small card in front */
body.loginpage { overflow: hidden; height: 100vh; min-height: 100vh; background: #0d0a1d; }
.loginbg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.loginbg .room { width: 100%; height: 100%; display: block; transform: scale(1.06); filter: blur(7px) brightness(.62) saturate(1.1); }
.loginbg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(10, 7, 22, .15), rgba(10, 7, 22, .7)); }
.loginwrap { position: relative; z-index: 2; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.logincard { width: 100%; max-width: 360px; box-sizing: border-box; padding: 26px 26px 22px; border-radius: 22px; background: rgba(20, 15, 40, .72); border: 1px solid rgba(255, 196, 107, .22); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--hub-ink); }
.loginbot { display: block; width: 112px; height: 127px; margin: -4px auto 2px; animation: bob 3.6s ease-in-out infinite; }
.lbant { stroke: #8f89b3; stroke-width: 2.2; stroke-linecap: round; } .lbbulb { fill: #ffc46b; filter: drop-shadow(0 0 5px #ffb35c); animation: pulse 2s ease-in-out infinite; }
.lbpod { fill: #7e77a6; } .lbvisor { fill: #15112b; } .lbseam { stroke: rgba(40, 30, 80, .35); stroke-width: 1.6; stroke-linecap: round; }
.lbeyes ellipse { fill: #6ff0ff; filter: drop-shadow(0 0 4px #4fd8e6); transform-box: fill-box; transform-origin: 50% 50%; animation: blink 5.5s ease-in-out infinite; }
.loginname { margin: 4px 0 2px; text-align: center; font-size: 22px; letter-spacing: .42em; text-indent: .42em; font-weight: 700; color: var(--hub-accent); }
.loginsub { margin: 0 0 18px; text-align: center; color: var(--hub-mute); font-size: 14px; }
.logincard label { display: block; margin: 12px 0 5px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--hub-mute); }
.logincard input { width: 100%; box-sizing: border-box; padding: 11px 13px; border-radius: 12px; border: 1px solid #3b3265; background: rgba(10, 7, 22, .65); color: var(--hub-ink); font: inherit; font-size: 16px; }
.logincard input:focus { outline: none; border-color: var(--hub-accent); box-shadow: 0 0 0 3px rgba(255, 196, 107, .2); }
.logincard button { width: 100%; margin-top: 18px; padding: 12px; border: 0; border-radius: 12px; background: linear-gradient(#ffd27a, #f0a93a); color: #1a1230; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 22px rgba(240, 169, 58, .28); }
.logincard button:hover { filter: brightness(1.06); }
.logincard button:focus-visible { outline: 3px solid #fff3cf; outline-offset: 2px; }
.logincard label.trust { display: flex; align-items: center; gap: 9px; margin: 14px 0 0; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--hub-ink); }
.logincard label.trust input { width: auto; margin: 0; }
.loginerror { margin: 14px 0 0; padding: 9px 12px; border-radius: 10px; background: rgba(200, 68, 58, .18); border: 1px solid rgba(240, 138, 127, .5); color: #ffc9c2; font-size: 14px; }
.loginfoot { margin: 14px 0 0; text-align: center; font-size: 12px; color: #7f74a8; }
@media (prefers-reduced-motion: reduce) { .loginbot, .loginbot * { animation: none !important; } }

/* the 3D room: a canvas that replaces the flat room when the browser can do WebGL2 */
#room3d { display: none; width: 100%; height: 100%; touch-action: none; }
.roomwrap.has3d #room3d { display: block; }
.roomwrap.has3d svg.room { display: none; }
.say3d, .name3d, .tip3d { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; }
.say3d { opacity: 0; transition: opacity .3s; background: rgba(21, 16, 42, .92); border: 1px solid #ffc46b; color: #fff4e6; padding: 8px 14px; border-radius: 14px; font: 600 14px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; white-space: nowrap; box-shadow: 0 8px 28px rgba(0, 0, 0, .5); }
.say3d.on { opacity: 1; }
.name3d { color: #fff4e6; font: 700 12px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; letter-spacing: .14em; text-shadow: 0 1px 6px #0e0a1c, 0 0 2px #0e0a1c; white-space: nowrap; }
.tip3d { opacity: 0; transition: opacity .15s; background: #100c20; border: 1px solid #ffc46b; color: #ffc46b; padding: 5px 12px; border-radius: 999px; font: 700 13px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; white-space: nowrap; }
.tip3d.on { opacity: 1; }
.doorchips { display: none; }
@media (min-width: 701px) {
  .doorchips { display: flex; gap: 8px; position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; }
  .doorchips a { text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1px solid #3b3265; background: rgba(15, 11, 30, .55); color: var(--hub-mute); font-size: 13px; }
  .doorchips a:hover, .doorchips a:focus-visible { color: var(--hub-ink); border-color: var(--hub-accent); outline: none; }
}

/* ===== illustrated room (2D, ink outlines). Replaces the 3D scene. ===== */
.room { --w1: #2c2a68; --w2: #46398a; --f1: #4a3668; --f2: #241a44; --s1: #0e1240; --s2: #3b46a8; --shaftop: 0; --gradeop: .16; --grain: .12; }
.room.t-dusk { --w1: #4a3a78; --w2: #8a5a8a; --f1: #5a4060; --f2: #2e2048; --s1: #4a3f94; --s2: #ff9a6e; }
.room.t-day { --w1: #6a74b8; --w2: #a2aadc; --f1: #8a6a58; --f2: #5a4440; --s1: #6fb7e8; --s2: #dff0ff; }
.room.lamp-off { --w1: #1a1946; --w2: #2a2260; --f1: #2e2248; --f2: #160f2c; }
.room .ol { stroke: #140e30; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.room .ol1 { stroke: #140e30; stroke-width: 2; }
.room .r2rail { fill: #3a3280; }
.room .skirt { fill: #2a2250; }
.room .win .frame { fill: none; stroke: #2f2670; }
.room .bar { fill: #2f2670; opacity: 1; } .room .sill { fill: #5a4aa8; }
.room .rod { fill: #c9a24f; }
.room .curt { fill: #5a43a8; } .room .fold { stroke: rgba(255, 255, 255, .12); }
.room .rug { fill: #3a2c78; } .room .rug2 { fill: #2c2260; } .room .rug3 { fill: #4fc8c0; opacity: .55; } .room .rugring { stroke: rgba(255, 255, 255, .16); }
.room .bracket { fill: #5a3b2c; } .room .board { fill: #7a5236; }
.room .hook { fill: #c9a24f; } .room .hp .hband { stroke: #8a6cff; fill: none; } .room .hcup { fill: #3a2f8f; } .room .hglow2 { fill: #4fe0d6; opacity: .45; animation: pulse 4s ease-in-out infinite; }
.room .jarlid { fill: #c9a24f; }
.room .deskmod { fill: #1c1640; } .room .deskleg { fill: #2a2050; } .room .drawerbox { fill: #231a4a; } .room .drawer { fill: #3a2d70; } .room .knob { fill: #ffd36a; }
.room .desktop { fill: url(#deskg); } .room .deskedge { fill: rgba(255, 255, 255, .25); } .room .deskfront { fill: #6d4a34; } .room .deskrefl { fill: #8a6cff; opacity: .16; }
.room .ledstrip { fill: #8a6cff; filter: drop-shadow(0 0 6px #8a6cff); animation: rgb2 10s linear infinite; }
.room .kbglow { fill: #8a6cff; opacity: .6; animation: rgb2 10s linear infinite; }
.room .kb { fill: #1a1540; } .room .kbkeys { fill: #2a2262; } .room .keyrows line { stroke: rgba(255, 255, 255, .14); }
.room .mug { fill: #8ee0d2; } .room .mughandle { stroke: #5fb8aa; } .room .teasurface { fill: #7a4a28; }
.room .mled { fill: #4fe0d6; filter: drop-shadow(0 0 3px #4fe0d6); }
.room .mframe { fill: #1a1646; } .room .neck, .room .mbase { fill: #2a2262; }
.room .pcfoot { fill: #140e30; } .room .pccase { fill: #1a1340; } .room .pcboard { fill: #1b1450; }
.room .pcram rect { fill: #8a6cff; opacity: .9; } .room .pccool { fill: #2a2262; } .room .pccoolhub { fill: #4fe0d6; } .room .pcgpu { fill: #30277a; }
.room .gpufans circle { fill: #4fe0d6; opacity: .8; }
.room .pcled1 { fill: #a45cff; filter: drop-shadow(0 0 6px #a45cff); animation: rgb2 8s linear infinite; }
.room .fanbg { fill: #120d2e; } .room .fanhub { fill: #fff; }
.room .fanring { stroke: #8a6cff; filter: drop-shadow(0 0 5px #8a6cff); } .room #fan2 .fanring { stroke: #4fe0d6; filter: drop-shadow(0 0 5px #4fe0d6); }
.room .blade { fill: #b57bff; opacity: .85; } .room .blade.bt, .room #fan2 .blade { fill: #4fe0d6; }
.room .blades { animation-duration: 2.2s; } .room #fan2 .blades { animation-duration: 2.9s; }
.room .pcrim { stroke: #a45cff; filter: drop-shadow(0 0 7px #a45cff); opacity: .9; }
.room .pcglow { animation: pulse 6s ease-in-out infinite; }
.room .chairback { fill: url(#chairg); } .room .chairhead { fill: #4a3f8f; } .room .chairstripe { fill: #3fd0c6; }
.room .chairshade { fill: #000; opacity: .2; } .room .chairlumbar { fill: #5446a8; } .room .chairarm { fill: #2c2560; } .room .chairarmpost { fill: #231d4a; }
.room .chairseat { fill: #3d3380; } .room .chairpost { fill: #231d4a; } .room .chairleg { stroke: #231d4a; } .room .caster { fill: #1a1438; }
.room .rimlight { fill: #8a6cff; opacity: .6; }
.room .shelfback { fill: #1c1646; } .room .shelfframe { stroke: #7a5236; } .room .shelfboard { fill: #7a5236; } .room .shelfshade { fill: #000; opacity: .16; }
.room .figarmor { fill: #2f3f8f; } .room .figearL { fill: #3b4fa8; } .room .figgold { fill: url(#goldg); stroke: #140e30; stroke-width: 1.5; }
.room .figeye { fill: #7ffff0; filter: drop-shadow(0 0 3px #4fe0d6); }
.room .figbase { fill: #3a2f8f; } .room .figring { fill: #4fe0d6; filter: drop-shadow(0 0 4px #4fe0d6); } .room .figglow { fill: #4fe0d6; opacity: .45; animation: pulse 4s ease-in-out infinite; }
.room .figring2 { stroke: #ffd36a; filter: drop-shadow(0 0 4px #ffd36a); } .room .figtri { stroke: #ffd36a; fill: none; } .room .figflute { stroke: #ffd36a; }
.room .figfeather { fill: #27c9b8; stroke: #140e30; stroke-width: 1.5; }
.room .console { fill: #1b1a2e; } .room .consoleslot { fill: #000; } .room .consoleled { fill: #4fe0d6; filter: drop-shadow(0 0 4px #4fe0d6); }
.room .pad { fill: #2c2760; } .room .padbtn { fill: #ffd36a; } .room .padbtn.b { fill: #4fe0d6; } .room .padpad { fill: #cfc8ff; }
.room .handheld { fill: #3fb8a8; } .room .handscreen { fill: #1a3a46; }
.room .frame2 { fill: #2a2260; } .room .chartbg { fill: #0e1434; } .room .chartline { stroke: #38c79a; filter: drop-shadow(0 0 3px #38c79a); }
.room .trophy { fill: url(#goldg); } .room .trophyhandle { stroke: #c9922f; }
.room .clock { fill: #c9a24f; } .room .clockface { fill: #f1ead8; } .room .hand { stroke: #2a2250; }
.room .bb .halo { opacity: .75; } .room .bb .core { fill: #fff3c8; }
.room .bb.b2 .core { fill: #e6d6ff; } .room .bb.b2 .halo { fill: #a45cff; } .room .bb.b3 .core { fill: #c6f4ff; } .room .bb.b3 .halo { fill: #4fd8e6; }
.room .bb.b4 .core { fill: #ffe6c0; } .room .bb.b4 .halo { fill: #ffb35c; animation-delay: 2.2s; }
.room .wire { stroke: #140e30; }
@keyframes rgb2 { 0% { fill: #8a6cff; } 33% { fill: #4fe0d6; } 66% { fill: #4f8cff; } 100% { fill: #8a6cff; } }
/* angled room additions */
.room { --r1: #24225a; --r2: #382f78; }
.room.t-dusk { --r1: #3c3068; --r2: #6e4a78; } .room.t-day { --r1: #5a64a6; --r2: #8a92c8; }
.room.lamp-off { --r1: #15143c; --r2: #221c50; }
.room .wallr1 { stop-color: var(--r1); } .room .wallr2 { stop-color: var(--r2); }
.room .pline { fill: none; stroke: rgba(8, 5, 30, .3); stroke-width: 2; }
.room .plank { fill: none; stroke: rgba(0, 0, 0, .25); stroke-width: 1.6; }
.room .ledstrip2 { stroke: #8a6cff; filter: drop-shadow(0 0 6px #8a6cff); animation: rgb3 10s linear infinite; }
.room .kbglow2 { stroke: #8a6cff; opacity: .8; animation: rgb3 10s linear infinite; }
.room .figglow2 { mix-blend-mode: screen; pointer-events: none; animation: pulse 5s ease-in-out infinite; }
.room .fighalo { opacity: .8; } .room .figsash { opacity: .9; }
.room .dim { fill: #05030f; opacity: 0; pointer-events: none; transition: opacity .5s; }
.room.lamp-off .dim { opacity: .18; }
.room .lampbase { fill: #d9a24f; } .room .lamphead { fill: #d9a24f; } .room .lamparm { stroke: #b88438; }
@keyframes rgb3 { 0% { stroke: #8a6cff; } 33% { stroke: #4fe0d6; } 66% { stroke: #4f8cff; } 100% { stroke: #8a6cff; } }

/* ===== art room: generated illustration as the background, live parts on top ===== */
.room .bg { transition: opacity .6s ease; }
.room.lamp-off .bg-lit { opacity: 0; }
.room .lampbreath { animation: pulse 5s ease-in-out infinite; pointer-events: none; mix-blend-mode: screen; }
.room.lamp-off .lampbreath, .room.lamp-off .jarfx { opacity: 0; }
.room .screenglow { animation: pulse 6s ease-in-out infinite; mix-blend-mode: screen; pointer-events: none; }
.room .pcfan { pointer-events: none; mix-blend-mode: screen; }
.room .fanpulse { animation: pulse 3.2s ease-in-out infinite; }
.room .pcfan .spinner { animation: spin 3.4s linear infinite; transform-box: view-box; transform-origin: 0 0; }
.room .pcfan:nth-of-type(2n) .spinner { animation-duration: 4.4s; }
.room .wb2 { font-family: ui-monospace, Menlo, Consolas, monospace; }
.room .wbtitle.wb2 { font-size: 20px; font-weight: 800; letter-spacing: .14em; fill: #2a3a8a; }
.room .wbtxt.wb2 { font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.room .door .hit { pointer-events: all; }
.room .grid line { stroke: rgba(120, 150, 220, .16); stroke-width: 1; }
.room .mtext { font-size: 11px; }
.room .cd { transform-box: fill-box; transform-origin: 50% 100%; }
.room .door .glow { stroke: #9fe8ff; filter: drop-shadow(0 0 8px #4fe0d6); }

/* monitor mood: by rules, not money (none and calm look the same) */
.room .montint { display: none; pointer-events: none; }
.room .monlabel { display: none; pointer-events: none; font: 800 58px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .14em; paint-order: stroke; stroke: #0a0820; stroke-width: 6px; stroke-linejoin: round; }
.room .ms-rule .montint { display: block; fill: #ffb23d; opacity: .24; }
.room .ms-rule .monlabel { display: block; fill: #ffcf7a; }
.room .ms-stop .montint { display: block; fill: #ff4d6a; opacity: .32; }
.room .ms-stop .monlabel { display: block; fill: #ff8497; }
.room .ms-stop .cd { opacity: .4; }
.room .ms-done .montint { display: block; fill: #3fe0b0; opacity: .16; }
.room .ms-done .monlabel { display: block; fill: #8ff3d3; }
.room .ms-unknown .montint { display: block; fill: #8a93b8; opacity: .30; }
.room .ms-unknown .monlabel { display: block; fill: #c9d0ee; font-size: 46px; }
.room .ms-unknown .cd { opacity: .35; }
.room .sg-rule { fill: url(#screenglowA); }
.room .sg-stop { fill: url(#screenglowR); }
.room .sg-done { fill: url(#screenglowG); }

/* five pictures by time of day (device clock). Night has a lit and an unlit version, the others are single pictures. */
.room .bg { opacity: 0; transition: opacity .9s ease; }
.room.t-morning .bg-morning, .room.t-afternoon .bg-afternoon, .room.t-evening .bg-evening { opacity: 1; }
.room.t-night .bg-unlit, .room.t-night .bg-lit { opacity: 1; }
.room.t-night.lamp-off .bg-lit { opacity: 0; }
.room.t-morning .stars, .room.t-afternoon .stars, .room.t-evening .stars { display: none; }
.room.t-morning .lampbreath, .room.t-afternoon .lampbreath, .room.t-morning .jarfx, .room.t-afternoon .jarfx, .room.t-morning .screenglow, .room.t-afternoon .screenglow { display: none; }
.hubpage:not(.is-night) #lamp-button, .hubpage:not(.is-night) .lamp-hint { display: none; }

/* Sakshi lives in her own layer above the room. Her position is moved by script with transforms only, so the browser can run it on the graphics chip. */
.sk { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 2; pointer-events: none; will-change: transform; outline: none; visibility: hidden; }
.sk.ready { visibility: visible; }
.sk-in { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; }
.sk-body { position: absolute; left: -60px; top: -78px; width: 120px; height: 152px; pointer-events: auto; cursor: pointer; transform-origin: 50% 85%; will-change: transform; }
.sk .np { display: block; opacity: 0; transition: opacity .9s ease; pointer-events: none; position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; user-select: none; -webkit-user-drag: none; }
.sk.bp-wave .np-wave, .sk.bp-idle .np-idle, .sk.bp-orb .np-orb, .sk.bp-stop .np-stop, .sk.bp-worried .np-worried, .sk.bp-smile .np-smile, .sk.bp-rest .np-rest { opacity: 1; }
.sk-shadow { position: absolute; left: -26px; top: 68px; width: 52px; height: 12px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(8, 5, 22, .55), rgba(8, 5, 22, 0) 70%); transform-origin: 50% 50%; will-change: transform; }
.sk:hover .sk-body, .sk:focus-visible .sk-body { filter: brightness(1.08); }
.sk:focus-visible .sk-body { outline: 2px solid #ffc46b; outline-offset: 4px; border-radius: 12px; }
.sk .bubblebg { opacity: 0; transition: opacity .3s; pointer-events: none; }
.sk .bubble.on .bubblebg { opacity: 1; }
.sk .cl-edge { fill: #140e30; stroke: #140e30; stroke-width: 5; stroke-linejoin: round; }
.sk .cl-fill { fill: #fffaf0; stroke: none; }
.sk .bubble text { fill: #1b1536; stroke: none; font: 600 11px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; opacity: 0; transition: opacity .3s; pointer-events: none; }
.sk .bubble.on text { opacity: 1; }
.sk .bubble { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; overflow: visible; }
.hubhello p.hello-quote .q-by { display: block; margin-top: 3px; font-size: .78em; font-style: normal; opacity: .75; }
.hubhello p.hello-quote { font-style: italic; transition: opacity .7s; }
.hubhello p.hello-quote.fade { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .sk-body, .sk-shadow, .sk .np { transition: none; } }

/* F-UI-04 (21 Oct 2026): the day's state on a phone, where the drawn room is hidden */
.phonestate { display: none; }
@media (max-width: 700px) {
  .phonestate { display: flex; align-items: center; gap: 12px; margin: 10px 16px; padding: 10px 14px; border-radius: 14px; background: rgba(30, 33, 50, .9); color: #f1ecff; border: 1px solid rgba(214, 190, 120, .55); }
  .phonestate img { height: 64px; width: auto; }
  .phonestate p { margin: 0; font-size: 14px; line-height: 1.35; }
  .phonestate.st-stop, .phonestate.st-rule { border-color: rgba(229, 83, 75, .9); }
}

/* the version line on the whiteboard (21 Oct 2026) */
.room .wbtxt.wb2.wbver { font-size: 13px; font-weight: 600; }

/* Guild slice 5: the vimana portal, an HTML layer since 25 Oct 2026 (hub.js sets its place and size from the room's coordinates).
   The float is a GPU transform on .vim-in, so it moves in sub-pixel steps and never waits for the drawing to repaint.
   t1..t10 is the tejas step: the gold (lit) art fades in over the plain one as the glow rises. */
.vimana { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 1; display: block; opacity: 0; transition: opacity .4s ease; }
.vimana.ready { opacity: 1; }
.vimana .vim-in { position: absolute; inset: 0; will-change: transform; transform-origin: 50% 60%; backface-visibility: hidden; animation: vimbob 6s ease-in-out infinite; }
.vimana img { position: absolute; inset: 0; width: 100%; height: 100%; }
.vimana .vg { opacity: 0; transition: opacity .6s ease; }
.vimana.t10 .vg { opacity: 1; } .vimana.t9 .vg { opacity: .9; } .vimana.t8 .vg { opacity: .75; } .vimana.t7 .vg { opacity: .6; }
.vimana.t6 .vg { opacity: .45; } .vimana.t5 .vg { opacity: .3; } .vimana.t4 .vg { opacity: .15; }
.vimana.t3 .vh, .vimana.t2 .vh { filter: brightness(.85) saturate(.8); }
.vimana.t1 .vh { filter: brightness(.7) saturate(.5); }
.vimana:hover .vim-in, .vimana:focus-visible .vim-in { filter: drop-shadow(0 0 10px rgba(255, 210, 120, .75)); }
.vimana:focus-visible { outline: none; }
.vimana .vimbadge { position: absolute; left: 87%; top: 80%; translate: -50% -50%; min-width: 1.6em; height: 1.6em; padding: 0 .3em; border-radius: 999px; background: #b3261e; border: 2px solid #ffe2a8; color: #fff; font: 700 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; text-align: center; box-sizing: border-box; }
.vimana .vimtip { position: absolute; left: 50%; top: 102%; translate: -50% 0; padding: 4px 14px; border-radius: 999px; background: #100c20; border: 1.5px solid #ffc46b; color: #ffc46b; font: 700 13px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; opacity: 0; transition: opacity .2s; pointer-events: none; white-space: nowrap; }
.vimana:hover .vimtip, .vimana:focus-visible .vimtip { opacity: 1; }
/* 1.23.1: Firefox snaps a translate-only layer to whole screen pixels, so the float ticked one pixel at a time (measured from
   Sachin's recording). A slight sway keeps the transform off-axis, which Firefox and Safari draw at sub-pixel positions. */
@keyframes vimbob { 0%, 100% { transform: translate3d(0, 0, 0) rotate(-.35deg); } 50% { transform: translate3d(0, -3.4%, 0) rotate(.35deg); } }
@media (prefers-reduced-motion: reduce) { .vimana .vim-in { animation: none; } }
/* 25 Oct 2026 (lag): the glows that pulse all the time no longer blend or blur, so each frame repaints far less of the room */
.room .lampbreath, .room .screenglow, .room .figglow2 { mix-blend-mode: normal; }
.room .ledstrip, .room .ledstrip2, .room .pcled1, .room .figring, .room #fan2 .fanring { filter: none; }
/* 25 Oct 2026 (lag): two drawings stacked: the pictures below, the live room on its own GPU layer above */
.room.roombg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.room:not(.roombg) { position: relative; will-change: transform; }
/* 25 Oct 2026 (lag): fewer always-moving pieces. A third of the stars twinkle and only the newest three candles on the monitor
   flicker (the live bar), so each frame repaints far less */
.room .stars circle { animation: none; } .room .stars circle:nth-child(3n) { animation: twinkle 3.6s ease-in-out infinite; }
.room .cd { animation: none; } .room .cd:nth-last-of-type(-n+3) { animation: flick 3.2s ease-in-out infinite; }
