/* Visual language: everything looks hand-made in a paint program — thick black outlines, flat loud colours, hard shadows, wobbly edges. */
:root {
  --ink: #111; --cream: #fffbe8; --sky: #3ab7ff; --red: #ff3b30; --green: #2fd33a; --purple: #9b4dff; --orange: #ff8a1f; --cyan: #11d4ff; --pink: #ff3fa4; --yellow: #ffe01f;
  --d: "Playpen Sans Hebrew", "Secular One", Rubik, system-ui, sans-serif; --f: Rubik, system-ui, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: radial-gradient(ellipse at 50% 38%, #5a3820 0%, #2a170d 70%, #170c06 100%); color: var(--ink); font: 500 16px/1.3 var(--f); overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
#bg { position: fixed; inset: 0; z-index: 0; } #bg svg { width: 100%; height: 100%; display: block; }
#desk { position: fixed; inset: 0; overflow: auto; display: flex; padding: 14px; z-index: 1; }
#app { margin: auto; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
#badge { position: fixed; top: 10px; left: 12px; z-index: 30; font: 700 22px var(--d); letter-spacing: 3px; color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); pointer-events: none; }
.ico { display: inline-block; width: var(--s, 16px); height: var(--s, 16px); flex: none; vertical-align: middle; } .ico svg { width: 100%; height: 100%; display: block; }
.ppl { display: inline-block; width: calc(var(--s, 40px) * .53); height: var(--s, 40px); flex: none; } .ppl svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* ---------- panels */
.win { position: relative; isolation: isolate; max-width: 100%; display: flex; flex-direction: column; color: var(--ink); --c: var(--yellow); }
.win::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cream); border: 4px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); filter: url(#wob); }
.titlebar { background: var(--c); border: 4px solid var(--ink); margin: -4px -4px 0; padding: 4px 14px 6px; font: 700 22px/1.1 var(--d); text-align: center; display: flex; gap: 8px; align-items: center; justify-content: center; filter: url(#wob2); }
.titlebar .ttl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tbb { display: none; }
.winbody { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.statusbar { display: flex; gap: 8px; padding: 0 16px 14px; align-items: center; flex-wrap: wrap; font-weight: 700; }
.statusbar > * { min-height: 20px; } .sf.grow, .statusbar .grow { flex: 1; }
.sunk { background: #fff; border: 3px solid var(--ink); }
.lobby .col > .win:nth-child(1) { --c: var(--cyan); } .lobby .col > .win:nth-child(2) { --c: var(--pink); } .lobby .col > .win:nth-child(3) { --c: var(--green); }
.btn { font: 700 19px var(--d); color: var(--ink); background: #fff; border: 4px solid var(--ink); border-radius: 4px; box-shadow: 5px 5px 0 var(--ink); min-width: 92px; min-height: 46px; padding: 4px 18px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; justify-content: center; transition: transform .07s, box-shadow .07s; }
.btn:hover { transform: translate(-1px, -2px); box-shadow: 6px 7px 0 var(--ink); } .btn:active, .btn.on { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn.def { background: var(--yellow); } .btn.big { min-height: 56px; font-size: 24px; min-width: 150px; } .btn:disabled { background: #ddd; color: #777; box-shadow: 3px 3px 0 #666; border-color: #555; cursor: default; transform: none; }
input[type=text], .sel, textarea { font: 700 18px var(--f); background: #fff; color: var(--ink); border: 4px solid var(--ink); border-radius: 4px; padding: 6px 10px; min-height: 46px; outline: none; min-width: 0; user-select: text; -webkit-user-select: text; }
input[type=text]:focus, textarea:focus { background: #fffbc4; box-shadow: 4px 4px 0 var(--ink); }
.fld { display: flex; align-items: center; gap: 10px; } .fld > span { min-width: 78px; font: 700 17px var(--d); }
.chk { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; }
.chk i { width: 22px; height: 22px; background: #fff; border: 3px solid var(--ink); display: inline-block; position: relative; flex: none; }
.chk.on i { background: var(--green); } .chk.on i::after { content: ""; position: absolute; left: 5px; top: -1px; width: 7px; height: 13px; border: solid var(--ink); border-width: 0 4px 4px 0; transform: rotate(40deg); }
.bar { height: 20px; border: 3px solid var(--ink); background: #fff; flex: 1; min-width: 90px; } .bar i { display: block; height: 100%; background: var(--green); transition: width .2s linear; }
.low .bar i { background: var(--red); } .low .clk { color: var(--red); }
.clockwrap { display: flex; align-items: center; gap: 10px; } .clk { font: 700 26px var(--d); min-width: 56px; text-align: center; -webkit-text-stroke: 0; font-variant-numeric: tabular-nums; }

/* ---------- home */
.home { width: min(480px, 100%); --c: var(--orange); }
.logo { text-align: center; padding: 6px 0 2px; }
.logo b { display: block; font: 700 clamp(46px, 13vw, 70px)/1 var(--d); color: var(--yellow); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--red); transform: rotate(-3deg); }
.logo .scribble { display: block; width: 80%; margin: 8px auto 0; } .logo .scribble svg { width: 100%; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .row.c { justify-content: center; } .row.sp { justify-content: space-between; }
.codein { width: 110px; text-align: center; text-transform: uppercase; letter-spacing: 4px; font-size: 22px; }
.err { background: #ffd7d7; border: 3px solid var(--ink); padding: 6px 10px; font-weight: 800; }

/* ---------- lobby */
.lobby { width: min(1000px, 100%); display: grid; grid-template-columns: 270px 1fr; gap: 18px; align-items: start; }
.lobby .col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.plist { padding: 6px; min-height: 120px; max-height: 330px; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.pl { display: flex; align-items: center; gap: 10px; padding: 2px 6px; font-weight: 800; } .pl .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; } .pl.off { opacity: .45; } .pl .x { cursor: pointer; font-weight: 800; padding: 0 6px; font-size: 20px; }
.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.mode { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; min-height: 92px; background: var(--mc, #fff); border: 4px solid var(--ink); border-radius: 4px; box-shadow: 5px 5px 0 var(--ink); font: 700 18px var(--d); cursor: pointer; color: var(--ink); text-align: center; position: relative; }
.mode:nth-child(7n+1) { --mc: #ff5a4d; } .mode:nth-child(7n+2) { --mc: #4fe05a; } .mode:nth-child(7n+3) { --mc: #b27bff; } .mode:nth-child(7n+4) { --mc: #ffa23d; } .mode:nth-child(7n+5) { --mc: #33dcff; } .mode:nth-child(7n+6) { --mc: #ff6cbc; } .mode:nth-child(7n) { --mc: #ffe94d; }
.mode .ico { --s: 40px; background: #fff; border: 3px solid var(--ink); padding: 3px; }
.mode.on { outline: 4px dashed var(--ink); outline-offset: 6px; transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.mode.on::after { content: ""; position: absolute; inset: -11px; background: radial-gradient(var(--ink) 0 3px, transparent 4px) 0 0/calc(100% - 0px) 100%; pointer-events: none; opacity: 0; }
.mode:disabled { cursor: default; }
.setgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.hlist { max-height: 230px; overflow: auto; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.link { display: flex; gap: 8px; align-items: center; } .link input { flex: 1; direction: ltr; font-size: 13px; min-height: 40px; } .link .btn { min-width: 52px; min-height: 40px; padding: 0 10px; }
.tag { padding: 1px 8px; border: 3px solid var(--ink); background: #fff; font-size: 13px; font-weight: 800; } .tag.live { background: var(--green); } .tag.bad { background: #ff8b84; }
.note { opacity: .75; font-weight: 700; }

/* ---------- play */
.stack { width: min(1060px, 100%); display: flex; flex-direction: column; gap: 12px; align-items: center; }
.pad { width: min(560px, 100%); --c: var(--cyan); } .wide { width: min(1000px, 100%); --c: var(--pink); }
.textin { width: 100%; font-size: 20px; padding: 10px; min-height: 52px; }
.sticky { position: relative; background: var(--yellow); border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 8px 22px 10px; font: 700 26px/1.2 var(--d); text-align: center; transform: rotate(-1.2deg); max-width: 100%; z-index: 2; }
.sticky small { display: block; font: 700 14px var(--f); opacity: .75; margin-top: 2px; }
.who { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; } .chip { display: inline-flex; gap: 6px; align-items: center; padding: 2px 10px 2px 6px; border: 3px solid var(--ink); background: #fff; font-weight: 800; } .chip.ok { background: var(--green); } .chip .ppl { --s: 30px; margin-block: -4px; }
.bignote { font: 700 32px/1.3 var(--d); text-align: center; padding: 10px; word-break: break-word; }
.notepad .winbody { background: #fff; margin: 0 14px 14px; border: 3px solid var(--ink); background-image: repeating-linear-gradient(transparent 0 33px, #8ad 33px 35px); padding: 18px 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; width: 100%; }
.card { background: #fff; border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 6px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; font: 700 15px var(--f); color: var(--ink); text-align: center; position: relative; }
.card:hover { transform: translate(-1px, -2px) rotate(-.5deg); } .card:active, .card.on { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); background: #fff6a0; } .card.ban { opacity: .45; cursor: default; }
.card .num { position: absolute; top: -10px; inset-inline-start: -10px; background: var(--ink); color: #fff; font: 700 18px var(--d); min-width: 28px; padding: 1px 7px; z-index: 2; }
.card .doccv { width: 100%; height: auto; aspect-ratio: 4/3; } .card .txt { font: 700 19px/1.3 var(--d); padding: 10px 6px; min-height: 50px; word-break: break-word; }
.card.win { background: var(--yellow); }
.doccv { background: #fff; border: 3px solid var(--ink); width: min(100%, 640px, calc((100vh - 250px) * 4 / 3)); height: auto; aspect-ratio: 4 / 3; display: block; }
.rows { width: 100%; display: flex; flex-direction: column; gap: 8px; } .rowx { display: flex; align-items: center; gap: 12px; padding: 4px 10px; background: #fff; border: 3px solid var(--ink); }
.rowx .nm { flex: 1; font: 700 20px var(--d); } .rowx .pts { font: 700 22px var(--d); min-width: 70px; text-align: end; } .rowx.first { background: var(--yellow); }
.rowx .meter { width: 120px; height: 14px; border: 3px solid var(--ink); flex: none; background: #fff; } .rowx .meter i { display: block; height: 100%; background: var(--purple); }
.cap { font: 700 19px var(--d); background: #fff; border: 3px solid var(--ink); padding: 8px 12px; flex: 1; } .cap.win { background: var(--yellow); }
.winner { display: flex; align-items: center; gap: 12px; font: 700 28px var(--d); justify-content: center; } .winner .ico { --s: 34px; }
.reveal { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; } .reveal .doccv { width: min(100%, 720px, calc((100vh - 240px) * 4 / 3)); }
.revwin { width: min(780px, 100%); --c: var(--cyan); } .notepad.revwin { width: min(640px, 100%); --c: var(--green); }
.ctl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.watchrow { display: flex; gap: 16px; width: 100%; align-items: flex-start; flex-wrap: wrap; justify-content: center; }
.stage { position: relative; width: min(100%, calc((100vh - 300px) * 4 / 3)); max-width: 800px; aspect-ratio: 4 / 3; background: #fff; border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); transform: rotate(-.6deg); }
.paintcv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.feed { width: 260px; max-width: 100%; height: 270px; overflow-y: auto; padding: 6px 8px; background: #fff; border: 4px solid var(--ink); display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.feed .r { color: #0a8a10; font-weight: 800; } .feed .a { color: #6a2dbd; } .feed .c { color: #c46a00; font-weight: 800; }
.mask { font: 700 38px var(--d); letter-spacing: 6px; direction: rtl; text-align: center; background: #fff; border: 4px solid var(--ink); padding: 2px 16px; box-shadow: 5px 5px 0 var(--ink); }
.toast { position: fixed; top: 14px; inset-inline: 0; margin: auto; width: max-content; max-width: 92%; z-index: 80; background: #ffd7d7; border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 8px 16px; font-weight: 800; }
.side2 { width: 230px; flex: none; display: flex; flex-direction: column; gap: 10px; }
.banner { display: flex; align-items: center; gap: 10px; background: #fff; border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 6px 14px; font: 700 20px var(--d); transform: rotate(.8deg); z-index: 2; }

/* ---------- first-person desk */
body.in3d #desk { display: none; } body.in3d #bg { display: none; }
#room { position: fixed; inset: 0; z-index: 5; background: #3ab7ff; touch-action: none; }
#room canvas { display: block; width: 100%; height: 100%; touch-action: none; }
#room .hud { position: absolute; inset: 0; pointer-events: none; }
#room .hud > * { pointer-events: auto; position: absolute; }
.hud .top { top: 12px; inset-inline: 0; margin: auto; width: max-content; max-width: 94%; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; } .hud .top > * { pointer-events: auto; }
.hud .tl { top: 12px; inset-inline-start: 12px; } .hud .bl { bottom: 14px; inset-inline-start: 14px; display: flex; gap: 10px; align-items: center; } .hud .br { bottom: 14px; inset-inline-end: 14px; display: flex; gap: 10px; align-items: center; }
.hud .sizes { bottom: 14px; inset-inline: 0; margin: auto; width: max-content; display: flex; gap: 8px; align-items: center; background: var(--cream); border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 6px 10px; }
.szb { width: 38px; height: 38px; background: #fff; border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; } .szb i { display: block; background: var(--ink); border-radius: 50%; } .szb.on { background: var(--yellow); transform: translate(2px, 2px); }
.lookbtn { font: 700 18px var(--d); }
.hud .hint { top: 50%; inset-inline: 0; margin: auto; width: max-content; transform: translateY(-50%); background: var(--yellow); border: 4px solid var(--ink); padding: 8px 18px; font: 700 24px var(--d); box-shadow: 5px 5px 0 var(--ink); pointer-events: none; }

body.watch #desk { align-items: stretch; }
body.overlay { background: transparent; } body.overlay #desk, body.overlay #bg, body.overlay #badge { display: none; } body.overlay #ov { position: fixed; inset: 0; display: flex; gap: 16px; padding: 16px; align-items: flex-start; z-index: 3; }
#ov .stage { width: min(68vw, calc((100vh - 32px) * 4 / 3)); } #ov .side2 { flex: 1; width: auto; max-width: 420px; }
@media (max-width: 760px) {
  .lobby { grid-template-columns: 1fr; } #desk { padding: 8px; } .setgrid { grid-template-columns: 1fr; } .stage { width: 100%; } .modes { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .hud .sizes { bottom: 62px; }
}

/* ---------- lobby on one screen */
.lobbyscr { width: min(1100px, 100%); display: flex; flex-direction: column; align-items: center; gap: 22px; }
.logo.sm b { font-size: clamp(34px, 6vw, 50px); }
.crowd { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 6px 14px; min-height: 190px; width: 100%; border-bottom: 0; }
.person { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; } .person.off { opacity: .4; }
.person .crown { position: absolute; top: -18px; inset-inline-end: 0; z-index: 2; } .person .tag2 { background: #fff; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 1px 10px; font: 700 17px var(--d); max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .kick { position: absolute; top: 0; inset-inline-start: 0; width: 26px; height: 26px; background: var(--red); border: 3px solid var(--ink); font: 700 18px/20px var(--d); text-align: center; cursor: pointer; opacity: 0; } .person:hover .kick { opacity: 1; }
.lobbyscr .modes { width: 100%; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.lobbybar { gap: 14px; } .need { font: 700 20px var(--d); color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.modalback { position: fixed; inset: 0; background: rgba(17,17,17,.55); z-index: 70; display: flex; align-items: center; justify-content: center; padding: 14px; }
.modalwin { width: min(560px, 100%); max-height: 94vh; --c: var(--green); } .modalwin .winbody { overflow: auto; } .modalwin .col { display: flex; flex-direction: column; gap: 14px; }
.titlebar .xb { position: absolute; inset-inline-start: 10px; width: 30px; height: 30px; background: var(--red); border: 3px solid var(--ink); font: 700 22px/24px var(--d); cursor: pointer; } .titlebar { position: relative; }
.crowd .ppl svg, .home .ppl svg { overflow: visible; }
.hud .hudfeed { top: 80px; inset-inline-end: 12px; width: 230px; height: 200px; opacity: .92; }
.btn.sq { min-width: 52px; padding: 4px 8px; } .btn.sq .ico { --s: 24px; }
.hud .tl .btn, .hud .bl .btn { min-height: 52px; }
.hud .br { gap: 8px; } .hud .br .bar { min-width: 56px; width: 64px; flex: none; } .hud .br .clk { font-size: 22px; min-width: 46px; }
@media (max-width: 760px) { .hud .br .btn.big { min-width: 100px; min-height: 48px; font-size: 20px; padding: 0 10px; } .hud .bl { gap: 6px; } .hud .bl .btn { min-width: 44px; min-height: 46px; } .hud .sizes { bottom: 76px; } }

/* ---------- lobby v2: one screen, explainer with a picture story */
#desk:has(.lobbyscr) { overflow: hidden; } #desk:has(.lobbyscr) #app { height: 100%; margin: 0; }
.lobbyscr { width: min(1200px, 100%); height: 100%; margin: 0 auto; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px; align-items: stretch; }
.lobbytop { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; } .lobbytop .btn { min-height: 44px; font-size: 17px; padding: 2px 14px; }
.lobbymain { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; min-height: 0; }
.lobbyscr .modes { display: flex; flex-direction: column; gap: 10px; width: auto; overflow: auto; padding: 4px 8px 8px 4px; }
.lobbyscr .mode { flex-direction: row; justify-content: flex-start; min-height: 54px; padding: 6px 12px; font-size: 19px; flex: none; } .lobbyscr .mode .ico { --s: 34px; padding: 2px; }
.infowin { --c: var(--yellow); min-height: 0; max-height: 100%; } .infowin .winbody { overflow: auto; gap: 14px; }
.infot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font: 700 32px var(--d); } .infot .ico { --s: 46px; }
.infol { font: 600 19px/1.5 var(--f); margin: 0; max-width: 760px; }
.exrow { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; justify-content: flex-start; }
.exp { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.exbox { border: 4px solid var(--ink); background: #fff; padding: 6px; min-width: 104px; min-height: 108px; display: flex; align-items: center; justify-content: center; box-shadow: 4px 4px 0 var(--ink); }
.exbox .doccv { border: 0; box-shadow: none; }
.excap { font: 700 15px var(--d); } .exarrow { align-self: center; margin-bottom: 18px; }
.extext { font: 700 19px/1.25 var(--d); text-align: center; max-width: 140px; }
.bub { background: #fff; border: 3px solid var(--ink); padding: 3px 10px; font: 700 15px var(--d); white-space: nowrap; } .bub.win { background: var(--yellow); }
.col2 { display: flex; flex-direction: column; gap: 6px; align-items: center; } .qmark { font: 700 60px var(--d); }
.lobbybot { display: flex; align-items: flex-end; gap: 18px; justify-content: space-between; min-height: 0; }
.lobbyscr .crowd { min-height: 0; flex: 1; justify-content: flex-start; flex-wrap: nowrap; overflow: hidden; gap: 4px 12px; } .crowd .ppl { --s: 112px !important; }
.startbox { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 8px; }
@media (max-width: 800px) {
  .lobbymain { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 10px; }
  .lobbyscr .modes { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 2px 4px 10px; } .lobbyscr .mode { flex-direction: column; min-width: 94px; min-height: 76px; font-size: 15px; padding: 6px; text-align: center; }
  .lobbytop .logo b { font-size: 30px; } .infot { font-size: 24px; } .infol { font-size: 16px; } .crowd .ppl { --s: 76px !important; } .person .tag2 { font-size: 13px; padding: 0 6px; } .lobbybot { align-items: center; }
}
#room .vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 55%, transparent 55%, rgba(20,8,0,.55) 100%); }
@media (max-width: 800px) { .exbox { min-width: 78px; min-height: 80px; padding: 4px; } .exbox .doccv { width: 86px !important; } .extext { font-size: 15px; max-width: 90px; } .excap { font-size: 13px; } .exrow { gap: 4px; } .exarrow .ico { --s: 18px !important; } .infot { font-size: 22px; } }
.micb { gap: 8px; position: relative; } .micb[data-s=off] { animation: nudge 1.6s infinite; } .micb[data-s=live] { background: #b8f5b8; } .micb[data-s=muted], .micb[data-s=listen] { background: #ffd0cc; }
.micbar { display: inline-block; width: 44px; height: 10px; border: 3px solid var(--ink); background: #fff; } .micbar i { display: block; height: 100%; background: var(--green); width: 0; transition: width .1s; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(-3px); } }
.hublink { font: 700 22px var(--d); color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); text-decoration: none; letter-spacing: 2px; transform: rotate(-2deg); padding: 4px 10px; }
.hublink:hover { color: var(--yellow); }

/* ======================================================================================================
   TOY THEME: the menus match the 3D game. Matte warm panels, soft light, chunky toy buttons, almost no outlines.
   ====================================================================================================== */
:root { --ink: #2b1a10; --cream: #fff3dc; --edge: #b98b52; }
body { background: #2a1a12; }
body.bg3d #bg { display: none; }
#room.bgmode { z-index: 0; pointer-events: none; } #room.bgmode .hud, #room.bgmode .vig { display: none; }
body.bg3d #desk::before { content: ""; position: fixed; inset: 0; background: radial-gradient(ellipse at 50% 60%, transparent 40%, rgba(20,8,0,.55) 100%); pointer-events: none; z-index: -1; }
.win::before { border: 0; border-radius: 22px; background: linear-gradient(#fff7e8, #f6e2c2); box-shadow: 0 16px 44px rgba(10,4,0,.5), inset 0 3px 0 #fff, inset 0 -7px 0 rgba(150,95,40,.2); filter: none; }
.titlebar { margin: 0; border: 0; border-radius: 22px 22px 0 0; filter: none; background: var(--c); color: var(--ink); box-shadow: inset 0 -5px 0 rgba(0,0,0,.14), inset 0 3px 0 rgba(255,255,255,.45); padding: 6px 16px 9px; }
.winbody { padding: 18px; }
.btn { border: 0; border-radius: 16px; background: #fff3dc; color: var(--ink); box-shadow: 0 6px 0 var(--edge), 0 12px 20px rgba(10,4,0,.3); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--edge), 0 16px 24px rgba(10,4,0,.3); } .btn:active, .btn.on { transform: translateY(5px); box-shadow: 0 1px 0 var(--edge), 0 3px 6px rgba(10,4,0,.3); }
.btn.def { background: #ffc933; box-shadow: 0 6px 0 #c28a10, 0 12px 20px rgba(10,4,0,.3); } .btn.def:active { box-shadow: 0 1px 0 #c28a10; }
.btn:disabled { background: #cdbfa8; color: #85775f; box-shadow: 0 4px 0 #9d8e75; }
input[type=text], .sel, textarea { border: 0; border-radius: 14px; background: #fffaf0; box-shadow: inset 0 4px 0 rgba(150,95,40,.22), inset 0 0 0 2px rgba(150,95,40,.18); }
input[type=text]:focus, textarea:focus { background: #fff; box-shadow: inset 0 4px 0 rgba(150,95,40,.22), 0 0 0 4px #ffc933; }
.chk i { border: 0; border-radius: 7px; box-shadow: inset 0 3px 0 rgba(150,95,40,.3); } .chk.on i { background: #4fd264; } .chk.on i::after { border-color: #fff; }
.bar { border: 0; border-radius: 12px; background: rgba(150,95,40,.25); padding: 0; overflow: hidden; } .bar i { background: #4fd264; border-radius: 12px; }
.low .bar i { background: #ff5a4d; }
.logo { padding: 4px 0 6px; } .logo b { color: #ffc933; -webkit-text-stroke: 0; text-shadow: 0 3px 0 #e0901a, 0 6px 0 #b86a12, 0 9px 0 #8a4a0a, 0 16px 22px rgba(0,0,0,.45); transform: rotate(-2deg); }
.logo small { display: block; font: 600 16px var(--f); color: #8a5a32; margin-top: 12px; letter-spacing: 1px; }
.home { --c: #ffb84a; }
.err { border: 0; border-radius: 12px; } .sunk { border: 0; border-radius: 14px; background: #fffaf0; box-shadow: inset 0 3px 0 rgba(150,95,40,.2); }
.mode { border: 0; border-radius: 20px; box-shadow: 0 6px 0 rgba(0,0,0,.28), 0 14px 22px rgba(10,4,0,.3); font-size: 19px; }
.mode .ico { border: 0; border-radius: 12px; background: rgba(255,255,255,.92); } .mode.on { outline: 5px solid #fff; outline-offset: 2px; transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.28); }
.mode:nth-child(7n+1) { --mc: #ff7a63; } .mode:nth-child(7n+2) { --mc: #5fd36f; } .mode:nth-child(7n+3) { --mc: #a98bff; } .mode:nth-child(7n+4) { --mc: #ffb24d; } .mode:nth-child(7n+5) { --mc: #4fc9e8; } .mode:nth-child(7n+6) { --mc: #ff8fc4; } .mode:nth-child(7n) { --mc: #ffd84a; }
.sticky { border: 0; border-radius: 16px; background: #ffc933; box-shadow: 0 6px 0 #c28a10, 0 14px 22px rgba(10,4,0,.4); transform: none; }
.banner { border: 0; border-radius: 14px; background: #fff3dc; box-shadow: 0 5px 0 var(--edge), 0 12px 20px rgba(10,4,0,.35); transform: none; }
.card { border: 0; border-radius: 18px; background: #fff7e8; box-shadow: 0 6px 0 var(--edge), 0 14px 22px rgba(10,4,0,.3); } .card:hover { transform: translateY(-3px); } .card:active, .card.on { background: #ffe7a0; box-shadow: 0 1px 0 var(--edge); transform: translateY(5px); }
.card .num { background: var(--ink); border-radius: 10px; } .card.win { background: #ffd84a; }
.doccv { border: 0; border-radius: 6px; box-shadow: 0 6px 18px rgba(10,4,0,.35); }
.rowx { border: 0; border-radius: 14px; background: #fffaf0; box-shadow: inset 0 3px 0 rgba(150,95,40,.18); } .rowx.first { background: #ffe38a; } .rowx .meter { border: 0; border-radius: 8px; background: rgba(150,95,40,.2); } .rowx .meter i { background: #a98bff; border-radius: 8px; }
.cap { border: 0; border-radius: 12px; background: #fffaf0; } .cap.win { background: #ffe38a; }
.chip { border: 0; border-radius: 12px; background: #fffaf0; box-shadow: inset 0 3px 0 rgba(150,95,40,.18); } .chip.ok { background: #bff0c6; }
.tag { border: 0; border-radius: 10px; background: rgba(150,95,40,.16); } .tag.live { background: #bff0c6; } .tag.bad { background: #ffc3bd; }
.feed { border: 0; border-radius: 14px; background: #fffaf0; box-shadow: inset 0 3px 0 rgba(150,95,40,.2); }
.mask { border: 0; border-radius: 16px; background: #fff3dc; box-shadow: 0 6px 0 var(--edge), 0 14px 22px rgba(10,4,0,.3); }
.stage { border: 0; border-radius: 8px; box-shadow: 0 10px 28px rgba(10,4,0,.5); transform: none; }
.toast { border: 0; border-radius: 14px; background: #fff3dc; box-shadow: 0 6px 0 var(--edge), 0 14px 24px rgba(10,4,0,.4); }
.exbox { border: 0; border-radius: 16px; background: #fffaf0; box-shadow: 0 5px 0 var(--edge), 0 10px 16px rgba(10,4,0,.2); } .bub { border: 0; border-radius: 12px; background: #fff; box-shadow: 0 3px 0 var(--edge); } .bub.win { background: #ffd84a; }
.notepad .winbody { border: 0; border-radius: 14px; } .winner { color: var(--ink); }
.szb { border: 0; border-radius: 12px; background: #fffaf0; box-shadow: 0 4px 0 var(--edge); } .szb.on { background: #ffc933; box-shadow: 0 1px 0 #c28a10; transform: translateY(3px); } .szb i { background: var(--ink); }
.hud .sizes { border: 0; border-radius: 18px; background: rgba(255,243,220,.96); box-shadow: 0 6px 0 var(--edge), 0 14px 24px rgba(10,4,0,.4); }
.micbar { border: 0; border-radius: 6px; background: rgba(150,95,40,.25); } .micbar i { background: #4fd264; border-radius: 6px; } .micb[data-s=live] { background: #bff0c6; } .micb[data-s=muted], .micb[data-s=listen] { background: #ffd0cc; }
.person .tag2 { border: 0; border-radius: 12px; background: #fff3dc; box-shadow: 0 4px 0 var(--edge), 0 8px 14px rgba(10,4,0,.3); display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px; font-size: 17px; }
.person .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); } .person .kick { border: 0; border-radius: 10px; }
.lobbyscr .crowd { min-height: 0; gap: 10px; align-items: flex-end; } .person { flex-direction: row; } .person .crown { position: static; margin-inline-end: -4px; }
.titlebar .xb { border: 0; border-radius: 10px; background: #ff5a4d; color: #fff; }
.hublink { -webkit-text-stroke: 0; text-shadow: 0 3px 0 #8a4a0a, 0 8px 14px rgba(0,0,0,.4); transform: none; }
#badge { -webkit-text-stroke: 0; text-shadow: 0 3px 0 rgba(0,0,0,.45); }
.modalback { background: rgba(20,8,0,.55); }
.lobbyscr .infowin { --c: #ffd84a; } .infowin .winbody { scrollbar-width: thin; }
@media (max-aspect-ratio: 1/1) { .home { margin-top: 26vh; } }
.person.talk .tag2 { background: #aaffaa; animation: talkpulse .5s infinite alternate; } @keyframes talkpulse { to { transform: translateY(-3px) scale(1.05); } }

/* ---------- 3D view sits between the bars: nothing covers the paper, tools or paints */
#room { background: #1c110a; }
#room canvas { position: absolute; left: 0; right: 0; top: var(--ht, 0px); bottom: auto; width: 100%; height: calc(100% - var(--ht, 0px) - var(--hb, 0px)); }
#room .vig { top: var(--ht, 0px); bottom: var(--hb, 0px); inset-inline: 0; }
#room .hud .hudbot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 14px 12px; background: linear-gradient(rgba(28,17,10,.0), rgba(28,17,10,.92) 30%); }
#room .hud .hudbot > * { position: static !important; }
#room .hud .hudbot .sizes { order: -1; flex-basis: 100%; justify-content: center; margin: 0; border-radius: 16px; width: auto; }
#room .hud .hudbot .bl, #room .hud .hudbot .br { display: flex; gap: 8px; align-items: center; }
@media (min-width: 900px) { #room .hud .hudbot .sizes { order: 0; flex-basis: auto; } }
#room .hud .tl { display: flex; gap: 8px; align-items: center; } .zoomb { min-width: 0; padding: 0 14px; min-height: 52px; font-size: 18px; }
.tip { position: fixed; z-index: 90; display: none; transform: translateX(-50%); background: #fff7e8; color: #2b1a10; font: 700 20px var(--d); padding: 4px 14px 6px; border-radius: 12px; border: 3px solid #4a2a18; box-shadow: 0 4px 0 #b98b52, 0 10px 18px rgba(0,0,0,.4); pointer-events: none; white-space: nowrap; }
#room .hud .top { inset-inline-start: 220px; inset-inline-end: 8px; margin: 0 auto; width: auto; max-width: none; }
@media (min-width: 900px) { #room .hud .top { inset-inline: 220px; } }
#room .hud .hudbot .clk, #room .hud .top .clk { color: #fff3dc; text-shadow: 0 2px 0 rgba(0,0,0,.5); } #room .hud .hudbot .bar, #room .hud .top .bar { background: rgba(255,243,220,.25); }

/* ======== lobby v3: who is here, equal cards, start always visible ======== */
.lobbyscr { width: min(1320px, 100%); height: 100%; margin: 0 auto; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px; padding: 4px 0 6px; }
.lobbytop { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .lobbytop .logo { margin-inline-end: auto; }
.codebox { background: #fff3dc; border-radius: 16px; padding: 4px 20px 6px; box-shadow: 0 5px 0 var(--edge), 0 10px 16px rgba(10,4,0,.3); text-align: center; } .codebox small { display: block; font: 600 12px var(--f); color: #8a5a32; } .codebox b { font: 700 30px/1.1 var(--d); letter-spacing: 6px; }
.lobbyscr .lobbymain { display: grid; grid-template-columns: 250px minmax(0, 1fr) 310px; gap: 18px; min-height: 0; }
.playerwin { --c: #ff9ad0; min-height: 0; max-height: 100%; } .playerwin .winbody { overflow: auto; padding: 12px; }
.prows { display: flex; flex-direction: column; gap: 8px; }
.prow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #fffaf0; border-radius: 16px; box-shadow: inset 0 3px 0 rgba(150,95,40,.18); }
.prow .av { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 700 22px var(--d); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.35); box-shadow: 0 3px 0 rgba(0,0,0,.25), inset 0 -4px 0 rgba(0,0,0,.18); flex: none; }
.prow .pn { flex: 1; font: 700 20px var(--d); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .prow .pn small { font: 600 13px var(--f); opacity: .6; }
.prow.off { opacity: .45; } .prow.ghost { background: transparent; box-shadow: none; border: 3px dashed rgba(150,95,40,.35); } .prow.ghost .av { background: rgba(150,95,40,.25); box-shadow: none; } .prow.ghost .pn { opacity: .6; font-size: 17px; }
.prow .mic { opacity: .22; display: flex; } .prow.talk .mic { opacity: 1; } .prow.talk .av { box-shadow: 0 0 0 5px #4fd264, 0 3px 0 rgba(0,0,0,.25); }
.prow .kick { width: 28px; height: 28px; border-radius: 10px; background: #ff5a4d; color: #fff; font: 700 20px/28px var(--d); text-align: center; cursor: pointer; flex: none; opacity: .75; } .prow .kick:hover { opacity: 1; }
.lobbyscr .lobbybot { display: flex; align-items: center; justify-content: center; gap: 18px; padding-bottom: 4px; }
.need { font: 700 20px var(--d); color: #fff3dc; text-shadow: 0 2px 0 rgba(0,0,0,.55); }
.infowin .winbody { gap: 12px; } .exlabel { font: 700 18px var(--d); color: #8a5a32; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.step { position: relative; background: #fffaf0; border-radius: 20px; box-shadow: 0 6px 0 var(--edge), 0 12px 18px rgba(10,4,0,.18); height: 226px; display: flex; flex-direction: column; overflow: hidden; }
.stepno { position: absolute; top: 10px; inset-inline-start: 10px; width: 32px; height: 32px; border-radius: 50%; background: #2b1a10; color: #fff; font: 700 18px/32px var(--d); text-align: center; z-index: 2; }
.stepbody { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px 12px 4px; min-height: 0; flex-wrap: wrap; gap: 6px; }
.stepcap { text-align: center; font: 700 17px var(--d); padding: 0 8px 12px; color: #8a5a32; }
.stepbody .exdoc { max-width: 100%; height: auto; border-radius: 6px; box-shadow: 0 3px 10px rgba(10,4,0,.25); } .stepbody .extext { max-width: 100%; font-size: 22px; } .stepbody .col2 { width: 100%; }
@media (max-width: 1000px) {
  .lobbyscr .lobbymain { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) minmax(0, 150px); gap: 10px; } .playerwin .winbody { padding: 8px; } .prow { padding: 4px 8px; } .prow .av { width: 34px; height: 34px; font-size: 18px; }
  .lobbytop .logo b { font-size: 28px; } .step { height: 190px; } .lobbytop .btn { min-height: 40px; font-size: 15px; padding: 0 10px; }
}
.lobbyscr .modes { overflow-x: hidden; }
.steps { grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 14px; } .step { height: 212px; }
.stepbody .exdoc { max-height: none; width: auto; }
.step { --ac: #4fc9e8; } .step[data-k=w] { --ac: #ffc933; } .step[data-k=v] { --ac: #5fd36f; } .step[data-k=g] { --ac: #a98bff; }
.step .stepno { background: var(--ac); color: #2b1a10; box-shadow: 0 3px 0 rgba(0,0,0,.2); }
.step .stepcap { align-self: center; margin: 0 0 12px; padding: 3px 14px 5px; border-radius: 12px; background: color-mix(in srgb, var(--ac) 30%, #fffaf0); color: #2b1a10; font-size: 16px; }
.step::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--ac); }
.stepbody .col2 { gap: 4px; }
.modalwin { width: min(660px, 100%); } .hlist { max-height: 330px; gap: 10px 18px; padding: 12px; }
.step { height: clamp(212px, 32vh, 290px); }
.btn.solo { min-width: 0; min-height: 40px; font-size: 16px; background: #ffe0a8; } .botsrow { justify-content: center; margin-top: 8px; } .botsrow .btn { min-height: 40px; min-width: 0; font-size: 16px; padding: 0 14px; }

/* ---------- HUD: one top row, nothing overlaps; hints; keycaps */
#room .hud .toprow { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; pointer-events: none; }
#room .hud .toprow > * { position: static !important; pointer-events: auto; }
#room .hud .toprow .tl { display: flex; gap: 8px; flex: none; align-items: center; flex-wrap: wrap; max-width: 46%; }
#room .hud .toprow .top { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; width: auto; }
#room .hud .toprow .sticky { max-width: 100%; font-size: clamp(18px, 3vw, 26px); padding: 6px 18px 8px; }
.keycap { display: inline-block; font: 700 14px/1 var(--d); background: #2b1a10; color: #fff3dc; border-radius: 7px; padding: 4px 8px 5px; box-shadow: 0 2px 0 rgba(0,0,0,.4); margin-inline-start: 6px; }
.exitb { min-width: 0; padding: 0 14px; min-height: 52px; font-size: 17px; background: #ffd0cc; } .exitb[data-arm] { background: #ff6b5e; color: #fff; }
#room .hud .hinttxt { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--hb, 0px) + 12px); background: rgba(43,26,16,.88); color: #fff3dc; font: 600 16px var(--f); padding: 7px 16px; border-radius: 14px; pointer-events: none; transition: opacity .6s; max-width: 92%; text-align: center; opacity: 0; }

/* ---------- reveal: who, what, what to do */
.tlline { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; } .tlchip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 14px; background: rgba(255,250,240,.9); font: 700 16px var(--d); color: #8a5a32; box-shadow: 0 3px 0 var(--edge); } .tlchip i { font-style: normal; }
.tlchip.done { background: #bff0c6; color: #2b1a10; } .tlchip.now { background: #ffc933; color: #2b1a10; transform: scale(1.18); box-shadow: 0 4px 0 #c28a10; }
.wholine { display: flex; align-items: center; gap: 8px; font: 700 24px var(--d); color: #fff3dc; text-shadow: 0 2px 0 rgba(0,0,0,.5); } .wholine b { font-weight: 400; color: #ffe066; } .wholine .dot { width: 20px; height: 20px; border-radius: 50%; border: 3px solid #fff3dc; }
.prog { font: 600 15px var(--f); color: #fff3dc; text-shadow: 0 2px 0 rgba(0,0,0,.5); } .reveal .note { color: #fff3dc; font-size: 17px; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.toast.good { background: #bff0c6; font: 700 22px var(--d); }
.closebadge { position: fixed; left: 50%; bottom: 22%; transform: translateX(-50%); z-index: 95; background: #ffc933; color: #2b1a10; font: 700 44px var(--d); padding: 8px 30px 12px; border-radius: 22px; box-shadow: 0 8px 0 #c28a10, 0 18px 30px rgba(0,0,0,.4); animation: pop .5s ease-out; pointer-events: none; } @keyframes pop { 0% { transform: translateX(-50%) scale(.3); } 70% { transform: translateX(-50%) scale(1.15); } 100% { transform: translateX(-50%) scale(1); } }
#room .hud .hinttxt { top: calc(var(--ht, 0px) + 10px); bottom: auto; display: flex; align-items: center; gap: 12px; padding: 7px 8px 7px 16px; }
.hintx { width: 28px; height: 28px; border: 0; border-radius: 9px; background: #ff5a4d; color: #fff; font: 700 20px/28px var(--d); cursor: pointer; flex: none; padding: 0; }

.logo b { font-weight: 800; letter-spacing: -1px; } .hublink { font-weight: 800; }

/* the same "all games" badge the other SLOP GAMES titles carry */
.slop-badge { display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 8px; background: #1a1024; border: 1px solid rgba(155, 60, 255, .4); text-decoration: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); transition: border-color .2s, transform .2s; direction: rtl; }
.slop-badge:hover { border-color: #d8f244; transform: translateY(-1px); }
.slop-badge .sb-txt { font: 500 14px/1 Rubik, sans-serif; color: #c9bfd6; }
.slop-badge .sb-logo { direction: ltr; display: inline-flex; align-items: baseline; gap: 7px; }
.slop-badge .sb-slop { font: 22px/1 "Rubik Wet Paint", sans-serif; color: #d8f244; }
.slop-badge .sb-games { font: 13px/1 "Rubik Mono One", sans-serif; color: #f6efe3; letter-spacing: .04em; }

/* the room code doubles as the menu button on every screen */
#badge { pointer-events: auto; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 14px; border-radius: 8px; background: #fff3dc; color: #4a2a18; letter-spacing: 3px; font-size: 18px; box-shadow: 0 3px 0 #c9a06a, 0 6px 12px rgba(0,0,0,.3); text-shadow: none; -webkit-text-stroke: 0; paint-order: normal; transition: transform .08s; }
#badge:hover { transform: translateY(-1px); } #badge:active { transform: translateY(2px); }
#badge:has(.code:empty) { display: none; }
#badge::before { content: ""; width: 18px; height: 14px; background: linear-gradient(#4a2a18 0 3px, transparent 3px 5.5px, #4a2a18 5.5px 8.5px, transparent 8.5px 11px, #4a2a18 11px 14px); border-radius: 2px; }
#badge::after { content: "תפריט"; font: 700 14px var(--d); letter-spacing: 0; }
.menucol { min-width: min(420px, 88vw); } .menucol .btn.big { width: 100%; } .menusec { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; border-top: 2px dashed rgba(150,95,40,.35); }
.kickrow { background: rgba(150,95,40,.1); border-radius: 8px; padding: 6px 10px; } .kickrow .btn { padding: 4px 10px; font-size: 14px; min-height: 0; }

/* guesser screen: timer on top, a chat that looks like a chat, one clear list of who guessed */
.wtop { display: flex; align-items: center; gap: 14px; width: 100%; justify-content: center; } .wtop .clk { font-size: 30px; }
.wtop > :first-child { flex: none; min-width: 170px; }
.maskcap { font: 700 15px var(--d); opacity: .7; margin-bottom: -2px; }
.chatbox, .plbox { display: flex; flex-direction: column; min-height: 0; background: #fff3dc; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 0 var(--edge), 0 10px 18px rgba(10,4,0,.25); }
.chathead { display: flex; align-items: center; gap: 8px; padding: 7px 12px; background: #4fa6e8; color: #fff; font: 700 16px var(--d); } .plbox .chathead { background: #f0a030; }
.chatbox .feed { width: auto; height: 120px; flex: none; border-radius: 0; box-shadow: none; background: #fffaf0; gap: 5px; padding: 8px; }
.msg { align-self: flex-start; max-width: 92%; padding: 4px 10px; border-radius: 10px 10px 10px 2px; background: #dcecff; font-size: 14px; line-height: 1.25; word-break: break-word; } .msg b { display: block; font-size: 12px; opacity: .65; }
.msg.a { background: #eadcff; } .msg.r { align-self: stretch; background: #bff0c6; color: #0a6a10; font-weight: 800; display: flex; gap: 6px; align-items: center; } .msg.c { background: #ffe3a6; color: #a05a00; font-weight: 800; }
.chatin { padding: 8px; gap: 6px; background: #fff3dc; flex-wrap: nowrap; } .chatin .textin { flex: 1; min-width: 0; }
.chatwrap { display: flex; flex-direction: column; gap: 6px; } .chatwrap .chatbox { border-radius: 12px 12px 0 0; box-shadow: none; } .chatwrap .chatin { border-radius: 0 0 12px 12px; margin-top: -6px; } .chatwrap .note { font-size: 13px; opacity: .7; text-align: center; }
.wprows { display: flex; flex-direction: column; gap: 4px; padding: 8px; }
.wprow { display: flex; align-items: center; gap: 8px; padding: 2px 8px; border-radius: 8px; background: #fffaf0; font-size: 15px; } .wprow b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wprow .st { font-size: 13px; opacity: .75; display: inline-flex; gap: 4px; align-items: center; } .wprow .sc { font-style: normal; font-weight: 800; min-width: 28px; text-align: end; }
.wprow.ok { background: #bff0c6; } .wprow.ok .st { opacity: 1; color: #0a6a10; font-weight: 800; } .wprow.dr { background: #ffe9a8; }
.watchrow .side2 { width: 290px; }
.hud .hudfeed { height: 230px; display: flex; flex-direction: column; } .hud .hudfeed .feed { height: auto; flex: 1; min-height: 0; }

.seatb { display: inline-flex; gap: 3px; } .seatb button { all: unset; cursor: pointer; width: 24px; height: 24px; text-align: center; line-height: 22px; border-radius: 6px; background: #ffe3a6; font: 800 18px var(--d); color: #4a2a18; } .seatb button:hover { background: #ffc933; }
