/* Amiga Workbench 1.3 palette */
:root {
  --wb-blue: #0055aa;
  --wb-white: #ffffff;
  --wb-black: #000022;
  --wb-orange: #ff8800;
  --font: 'Topaz', 'VT323', ui-monospace, Menlo, monospace;
  --fs: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #050a18; color: var(--wb-white); font-family: var(--font); font-size: var(--fs); line-height: 1.1; }
canvas#world { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; outline: none; touch-action: none; cursor: grab; }
body.dragging canvas#world { cursor: grabbing; }
button, input, textarea, select { font-family: var(--font); font-size: var(--fs); }
.hidden { display: none !important; }

/* ---------------------------------------------------------- menu bar */
#menubar {
  position: fixed; top: 0; left: 0; right: 0; height: 20px; z-index: 1000;
  background: var(--wb-white); color: var(--wb-blue); display: flex; align-items: stretch;
  border-bottom: 2px solid var(--wb-black); user-select: none; opacity: 0.88;
}
#menubar:hover, #menubar.open { opacity: 1; }
.menu { position: relative; padding: 0 10px; display: flex; align-items: center; cursor: default; }
.menu.open, .menu:hover { background: var(--wb-blue); color: var(--wb-white); }
.menu-title { line-height: 18px; }
#menubar-right { margin-left: auto; display: flex; gap: 14px; align-items: center; padding-right: 8px; }
.dropdown {
  position: absolute; top: 20px; left: 0; min-width: 220px; background: var(--wb-white); color: var(--wb-blue);
  border: 2px solid var(--wb-black); padding: 2px 0; box-shadow: 4px 4px 0 rgba(0, 0, 34, 0.6);
}
.dropdown .item { padding: 1px 12px 1px 22px; white-space: nowrap; position: relative; display: flex; justify-content: space-between; gap: 24px; }
.dropdown .item:hover { background: var(--wb-blue); color: var(--wb-white); }
.dropdown .item.disabled { color: #8899bb; pointer-events: none; }
.dropdown .item .check { position: absolute; left: 6px; }
.dropdown .sep { height: 0; border-top: 2px dotted var(--wb-blue); margin: 3px 4px; }
.dropdown .submenu { display: none; position: absolute; left: 100%; top: -4px; }
.dropdown .item:hover > .submenu { display: block; }
.dropdown .item:hover > .submenu .item { color: var(--wb-blue); }
.dropdown .item:hover > .submenu .item:hover { color: var(--wb-white); }

/* ---------------------------------------------------------- scale gadget */
#scale-gadget {
  position: fixed; left: 10px; top: 50%; transform: translateY(-50%); z-index: 50;
  display: flex; flex-direction: column; align-items: center; gap: 6px; user-select: none;
  background: rgba(0, 85, 170, 0.75); border: 2px solid var(--wb-white); padding: 6px 5px; box-shadow: 3px 3px 0 var(--wb-black);
}
.scale-icon { width: 30px; height: 30px; image-rendering: pixelated; cursor: pointer; }
#scale-track { position: relative; width: 20px; height: 40vh; min-height: 180px; background: var(--wb-blue); border: 2px solid var(--wb-white); border-right-color: var(--wb-black); border-bottom-color: var(--wb-black); cursor: pointer; }
#scale-knob { position: absolute; left: 1px; right: 1px; height: 22px; background: var(--wb-white); border: 2px solid var(--wb-orange); }
#scale-label { font-size: 16px; color: var(--wb-white); min-width: 40px; text-align: center; }

/* ---------------------------------------------------------- HUD */
#crosshair { position: fixed; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; pointer-events: none; z-index: 5; }
#crosshair::before, #crosshair::after { content: ''; position: absolute; background: rgba(255, 255, 255, 0.85); mix-blend-mode: difference; }
#crosshair::before { left: 8px; top: 0; width: 2px; height: 18px; }
#crosshair::after { top: 8px; left: 0; height: 2px; width: 18px; }
#crosshair { display: none; }  /* aiming follows the mouse pointer */
#hud {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 6; pointer-events: none;
  background: rgba(0, 85, 170, 0.85); border: 2px solid var(--wb-white); padding: 4px 12px; max-width: 80vw; text-align: center;
  box-shadow: 3px 3px 0 var(--wb-black); display: none;
}
#hud.show { display: block; }
#hud .t { color: var(--wb-white); }
#hud .o { color: var(--wb-orange); }
#hud .k { display: inline-block; background: var(--wb-white); color: var(--wb-blue); padding: 0 4px; margin: 0 2px; }
#hint { position: fixed; left: 50%; top: 60px; white-space: nowrap; transform: translateX(-50%); z-index: 6; pointer-events: none; color: rgba(255, 255, 255, 0.7); font-size: 16px; text-shadow: 1px 1px 0 #000; transition: opacity 0.5s; }
#hint b { color: var(--wb-orange); font-weight: normal; }
#toasts { position: fixed; right: 12px; top: 30px; z-index: 2000; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.toast { background: var(--wb-white); color: var(--wb-blue); border: 2px solid var(--wb-black); padding: 4px 10px; box-shadow: 3px 3px 0 rgba(0, 0, 34, 0.6); max-width: 360px; }
.toast.err { background: var(--wb-orange); color: var(--wb-black); }

/* ---------------------------------------------------------- windows */
#desktop { position: fixed; inset: 0; pointer-events: none; z-index: 100; }
.win {
  position: absolute; pointer-events: auto; background: var(--wb-blue); color: var(--wb-white);
  border: 2px solid var(--wb-white); box-shadow: 4px 4px 0 rgba(0, 0, 34, 0.7); display: flex; flex-direction: column;
  min-width: 220px; min-height: 120px;
}
.win .titlebar { height: 22px; display: flex; align-items: stretch; background: var(--wb-blue); border-bottom: 2px solid var(--wb-white); user-select: none; cursor: move; }
.win.active .titlebar { background: var(--wb-white); }
.win .titlebar .stripes { flex: 1; margin: 4px 6px; }
.win.active .titlebar .stripes { background: repeating-linear-gradient(to bottom, var(--wb-blue) 0 2px, var(--wb-white) 2px 4px); }
.win .titlebar .title { padding: 0 6px; line-height: 20px; color: var(--wb-white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
.win.active .titlebar .title { color: var(--wb-blue); }
.gadget { width: 26px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-right: 2px solid var(--wb-white); position: relative; }
.win.active .gadget { border-color: var(--wb-blue); }
.gadget.close::before { content: ''; width: 8px; height: 8px; background: var(--wb-white); border: 2px solid var(--wb-black); }
.win.active .gadget.close::before { background: var(--wb-blue); border-color: var(--wb-blue); box-shadow: inset 0 0 0 2px var(--wb-white); }
.gadget.depth { border-right: 0; border-left: 2px solid var(--wb-white); }
.gadget.depth::before, .gadget.depth::after { content: ''; position: absolute; width: 11px; height: 8px; border: 2px solid var(--wb-white); }
.gadget.depth::before { left: 4px; top: 4px; background: var(--wb-blue); }
.gadget.depth::after { left: 10px; top: 9px; background: var(--wb-white); border-color: var(--wb-black); }
.win.active .gadget.depth::before { border-color: var(--wb-blue); background: var(--wb-white); }
.win.active .gadget.depth::after { background: var(--wb-blue); border-color: var(--wb-blue); }
.win .body { flex: 1; overflow: auto; padding: 8px 10px; position: relative; }
.win .sizer { position: absolute; right: 0; bottom: 0; width: 18px; height: 16px; cursor: nwse-resize; background: linear-gradient(135deg, transparent 50%, var(--wb-white) 50%); }
.win .body::-webkit-scrollbar { width: 16px; background: var(--wb-blue); border-left: 2px solid var(--wb-white); }
.win .body::-webkit-scrollbar-thumb { background: var(--wb-white); border: 3px solid var(--wb-blue); }

/* ---------------------------------------------------------- gadgets (form controls) */
.btn {
  background: var(--wb-blue); color: var(--wb-white); border: 2px solid; border-color: var(--wb-white) var(--wb-black) var(--wb-black) var(--wb-white);
  padding: 1px 12px; cursor: pointer; line-height: 20px;
}
.btn:active, .btn.on { border-color: var(--wb-black) var(--wb-white) var(--wb-white) var(--wb-black); background: var(--wb-orange); color: var(--wb-black); }
.btn.primary { background: var(--wb-white); color: var(--wb-blue); }
.btn.danger { color: var(--wb-orange); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.small { padding: 0 6px; line-height: 16px; font-size: 16px; }
input[type=text], textarea {
  background: var(--wb-blue); color: var(--wb-white); border: 2px solid; border-color: var(--wb-black) var(--wb-white) var(--wb-white) var(--wb-black);
  padding: 3px 6px; outline: none; width: 100%; caret-color: var(--wb-orange);
}
input[type=text]:focus, textarea:focus { border-color: var(--wb-orange); }
textarea { resize: vertical; font-family: ui-monospace, Menlo, monospace; font-size: 12px; line-height: 1.35; }
textarea.docs { height: 64px; font-size: 11px; color: #cfe3ff; }
textarea.code { height: 200px; }
input[type=range] { accent-color: var(--wb-orange); width: 100%; }
input[type=checkbox] { accent-color: var(--wb-orange); width: 16px; height: 16px; vertical-align: middle; }
label { cursor: pointer; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }
.muted { color: #a8c4ea; }
.orange { color: var(--wb-orange); }
.pre { white-space: pre-wrap; }
p { margin: 0 0 8px; }
h2 { margin: 0 0 8px; font-weight: normal; font-size: 26px; color: var(--wb-white); letter-spacing: 1px; }
h3 { margin: 10px 0 6px; font-weight: normal; color: var(--wb-orange); }
hr { border: 0; border-top: 2px dotted var(--wb-white); margin: 8px 0; }
.box { border: 2px solid; border-color: var(--wb-black) var(--wb-white) var(--wb-white) var(--wb-black); }
.errbox { background: var(--wb-orange); color: var(--wb-black); padding: 4px 8px; margin: 6px 0; white-space: pre-wrap; font-size: 16px; }
.logbox { background: var(--wb-black); color: #9fe39f; font-family: ui-monospace, Menlo, monospace; font-size: 11px; padding: 4px 6px; max-height: 80px; overflow: auto; white-space: pre-wrap; }

/* turntable canvases */
.turntable { display: block; width: 100%; background: radial-gradient(circle at 50% 40%, #12305e, #050a18); cursor: grab; touch-action: none; }
.turntable:active { cursor: grabbing; }

/* creations list */
.clist { display: flex; flex-direction: column; gap: 4px; }
.citem { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 4px 6px; border: 2px solid transparent; cursor: pointer; }
.citem:hover { border-color: var(--wb-white); }
.citem .name { color: var(--wb-white); }
.citem .meta { color: #a8c4ea; font-size: 16px; }
.citem .stats { font-size: 16px; }
.badge { display: inline-block; padding: 0 5px; font-size: 14px; margin-left: 6px; background: var(--wb-white); color: var(--wb-blue); }
.badge.pending { background: var(--wb-orange); color: var(--wb-black); }
.badge.denied { background: var(--wb-black); color: var(--wb-orange); }
.badge.vip { background: #ffd700; color: var(--wb-black); }

/* comments */
.comments { display: flex; flex-direction: column; gap: 6px; }
.comment { border-left: 2px solid var(--wb-white); padding: 2px 0 2px 8px; }
.comment .who { color: var(--wb-orange); }
.comment .when { color: #a8c4ea; font-size: 14px; margin-left: 6px; }
.comment .text { white-space: pre-wrap; word-break: break-word; margin: 2px 0; }
.comment .acts { display: flex; gap: 10px; font-size: 15px; }
.comment .acts a { color: var(--wb-white); cursor: pointer; text-decoration: underline; }
.comment .replies { margin-left: 14px; margin-top: 4px; display: flex; flex-direction: column; gap: 6px; }

/* settings */
.setting { display: grid; grid-template-columns: 170px 1fr 56px; gap: 8px; align-items: center; margin-bottom: 6px; }
.setting .val { text-align: right; color: var(--wb-orange); }

/* charts */
canvas.chart { width: 100%; display: block; background: var(--wb-black); image-rendering: pixelated; }
.legend { display: flex; gap: 16px; font-size: 16px; }
.legend i { display: inline-block; width: 14px; height: 10px; margin-right: 5px; vertical-align: middle; }
.kpis { display: flex; gap: 10px; margin-bottom: 8px; }
.kpi { flex: 1; border: 2px solid var(--wb-white); padding: 4px 8px; }
.kpi .n { font-size: 30px; color: var(--wb-orange); }
.kpi .l { font-size: 15px; color: #a8c4ea; }
.kpi.pick { cursor: pointer; }
.kpi.pick:hover { background: #0a63bd; }
.kpi.pick.sel { background: #003a7a; border-color: var(--wb-orange); }

/* queue */
.qlist .citem.sel { border-color: var(--wb-orange); }

/* reactions */
.reactions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.react { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; background: rgba(0, 0, 34, 0.45); color: var(--wb-white); border: 2px solid rgba(255, 255, 255, 0.35); border-radius: 10px; cursor: pointer; font-family: var(--font); font-size: 17px; transition: transform 0.08s; }
.react:hover { border-color: var(--wb-white); transform: translateY(-1px); }
.react:active { transform: scale(0.92); }
.react .e { font-size: 16px; }
.react.zero { opacity: 0.55; }
.react.zero:hover { opacity: 1; }
.react.mine { background: rgba(255, 136, 0, 0.3); border-color: var(--wb-orange); }
.react.mine .n { color: var(--wb-orange); }
.reactions.small { gap: 4px; margin: 3px 0 1px; }
.reactions.small .react { font-size: 14px; padding: 0 6px; border-width: 1px; }
.reactions.small .react .e { font-size: 13px; }
.react.add { opacity: 0.5; }
.comment:hover > .reactions .react.add, .react.add:focus { opacity: 1; }
.picker { position: fixed; z-index: 100000; display: grid; grid-template-columns: repeat(8, 30px); gap: 2px; padding: 4px; background: var(--wb-blue); border: 2px solid var(--wb-white); box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5); }
.picker .pick { width: 30px; height: 28px; font-size: 17px; background: none; border: 1px solid transparent; cursor: pointer; border-radius: 4px; }
.picker .pick:hover { border-color: var(--wb-white); background: rgba(255, 255, 255, 0.12); }
.picker .pick.mine { background: rgba(255, 136, 0, 0.35); }
.rtip { position: fixed; z-index: 100000; max-width: 300px; padding: 4px 8px; background: #000022; color: var(--wb-white); border: 2px solid var(--wb-white); font-family: var(--font); font-size: 15px; pointer-events: none; box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5); }
.rtip.hidden { display: none; }

/* achievements */
.badge-pop { position: fixed; left: 50%; top: 70px; transform: translate(-50%, -30px) scale(0.9); opacity: 0; z-index: 3000; display: flex; gap: 12px; align-items: center;
  background: var(--wb-white); color: var(--wb-blue); border: 3px solid var(--wb-orange); padding: 8px 18px 8px 12px; box-shadow: 5px 5px 0 rgba(0, 0, 34, 0.7); transition: all 0.45s cubic-bezier(.2, 1.6, .4, 1); pointer-events: none; }
.badge-pop.in { opacity: 1; transform: translate(-50%, 0) scale(1); }
.badge-pop .icon { font-size: 40px; animation: wobble 0.9s ease-in-out infinite alternate; }
.badge-pop .k { font-size: 14px; color: var(--wb-orange); letter-spacing: 2px; }
.badge-pop .n { font-size: 24px; }
.badge-pop .d { font-size: 15px; color: #335; }
@keyframes wobble { from { transform: rotate(-10deg) scale(1); } to { transform: rotate(10deg) scale(1.15); } }
.progress { height: 12px; border: 2px solid var(--wb-white); margin-bottom: 10px; }
.progress i { display: block; height: 100%; background: var(--wb-orange); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.bdg { border: 2px solid rgba(255, 255, 255, 0.25); padding: 6px; text-align: center; opacity: 0.5; }
.bdg.got { opacity: 1; border-color: var(--wb-orange); background: rgba(255, 136, 0, 0.12); }
.bdg .icon { font-size: 30px; }
.bdg .n { color: var(--wb-white); }
.bdg .d { font-size: 14px; color: #a8c4ea; }

/* layers panel + minimap */
#layers { position: fixed; right: 10px; top: 50%; transform: translateY(-50%); z-index: 50; display: flex; flex-direction: column; gap: 4px; align-items: center;
  background: rgba(0, 85, 170, 0.75); border: 2px solid var(--wb-white); padding: 4px; box-shadow: 3px 3px 0 var(--wb-black); }
#layers .lt { font-size: 13px; letter-spacing: 1px; color: var(--wb-white); }
#layers .layer { width: 34px; height: 30px; font-size: 17px; background: var(--wb-blue); border: 2px solid; border-color: var(--wb-white) var(--wb-black) var(--wb-black) var(--wb-white); cursor: pointer; filter: grayscale(1) brightness(0.8); padding: 0; }
#layers .layer.on { filter: none; background: var(--wb-orange); border-color: var(--wb-black) var(--wb-white) var(--wb-white) var(--wb-black); }
#minimap { position: fixed; right: 54px; bottom: 12px; z-index: 50; width: 180px; height: 180px; cursor: pointer; filter: drop-shadow(3px 3px 0 #000022); }
#minimap canvas { width: 100%; height: 100%; }
#coords { position: fixed; left: 50%; bottom: 2px; transform: translateX(-50%); z-index: 50; font-size: 15px; color: rgba(255, 255, 255, 0.8); text-shadow: 1px 1px 0 #000; pointer-events: none; white-space: nowrap; }
.self-emote { position: fixed; left: 50%; top: 55%; z-index: 40; font-size: 54px; pointer-events: none; transform: translate(-50%, 0); animation: selfemote 1.3s ease-out forwards; }
@keyframes selfemote { 0% { opacity: 0; transform: translate(-50%, 20px) scale(0.5); } 20% { opacity: 1; transform: translate(-50%, 0) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -120px) scale(1); } }
.flash { position: fixed; inset: 0; background: #fff; z-index: 4000; pointer-events: none; animation: flash 0.6s ease-out forwards; }
@keyframes flash { from { opacity: 0.85; } to { opacity: 0; } }
.rank { min-width: 34px; text-align: center; color: #a8c4ea; font-size: 20px; }
.rank.top { font-size: 24px; }
.citem.me { border-color: var(--wb-orange); }
#quest { position: fixed; left: 10px; top: 28px; z-index: 50; display: flex; gap: 10px; align-items: center; background: rgba(0, 85, 170, 0.8); border: 2px solid var(--wb-white);
  padding: 2px 10px; font-size: 16px; box-shadow: 3px 3px 0 var(--wb-black); transition: transform 0.3s; }
#quest.pop { transform: scale(1.15); }
#quest .streak { color: #a8c4ea; filter: grayscale(1); }
#quest .streak.lit { color: var(--wb-orange); filter: none; }
#quest .pips { display: inline-flex; gap: 3px; }
#quest .pips i { width: 10px; height: 10px; border: 2px solid var(--wb-white); display: inline-block; }
#quest .pips i.on { background: var(--wb-orange); }
/* discover */
.welcome { text-align: center; margin-bottom: 4px; }
.welcome h2 { font-size: 40px; letter-spacing: 6px; color: var(--wb-white); text-shadow: 3px 3px 0 var(--wb-orange); }
.dsec { margin-bottom: 6px; }
.cards { display: grid; grid-auto-flow: column; grid-auto-columns: 190px; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; }
.card { border: 2px solid rgba(255, 255, 255, 0.4); background: rgba(0, 0, 34, 0.35); cursor: pointer; padding: 0 0 6px; transition: transform 0.12s, border-color 0.12s; }
.card:hover { transform: translateY(-3px); border-color: var(--wb-orange); box-shadow: 4px 4px 0 rgba(0, 0, 34, 0.6); }
.card .thumb { height: 118px; background-size: cover; background-position: center; border-bottom: 2px solid rgba(255, 255, 255, 0.3); position: relative; }
.card .thumb:not(.ready)::after { content: '…'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.5); font-size: 30px; animation: pulse 1s infinite alternate; }
@keyframes pulse { from { opacity: 0.3; } to { opacity: 1; } }
.card .ct { padding: 4px 8px 0; color: var(--wb-white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .co { padding: 0 8px; font-size: 15px; color: #a8c4ea; }
.card .cs { padding: 0 8px; font-size: 15px; }
.up { color: #7dff8a; }
.btn.locked { opacity: 0.55; filter: grayscale(0.6); }
.btn.locked:hover { opacity: 0.8; }
.vip-hero { text-align: center; }
.vip-hero .big { font-size: 56px; animation: wobble 1.2s ease-in-out infinite alternate; }
.vip-hero h2 { color: #ffd700; text-shadow: 2px 2px 0 #000022; }
.perks { margin: 4px 0 8px; padding-left: 18px; }
.perks li { margin: 3px 0; }
.vip-streak { display: flex; gap: 6px; margin: 4px 0 6px; }
.vip-streak i { width: 34px; height: 34px; border: 2px solid var(--wb-white); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 18px; }
.vip-streak i.on { background: rgba(255, 136, 0, 0.35); border-color: var(--wb-orange); }
#quest .vipgo { color: #ffd700; cursor: pointer; }
#bell { cursor: pointer; position: relative; }
#bell .cnt { background: var(--wb-orange); color: var(--wb-black); padding: 0 5px; margin-left: 2px; font-size: 15px; }
.notif.unread { border-color: var(--wb-orange); background: rgba(255, 136, 0, 0.1); }
#chatlog { position: fixed; left: 80px; bottom: 60px; z-index: 40; display: flex; flex-direction: column; gap: 2px; max-width: 420px; pointer-events: none; }
#chatlog .cl { background: rgba(0, 0, 34, 0.55); padding: 1px 8px; font-size: 17px; transition: opacity 2s; word-break: break-word; }
#chatlog .cl.old { opacity: 0; }
#chatinput { position: fixed; left: 80px; bottom: 26px; width: min(520px, 60vw); z-index: 60; }

/* ---------------------------------------------------------- widget controls (cube.ui) */
.wui { background: var(--wb-blue); border: 2px solid var(--wb-white); box-shadow: 3px 3px 0 var(--wb-black); padding: 6px 10px 8px; color: var(--wb-white); font-family: var(--font); font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.wui.world { position: fixed; right: 12px; top: 34px; width: 250px; max-height: calc(100vh - 340px); overflow: auto; z-index: 7; }
.wui.hidden, .wui:empty { display: none; }
.wui.preview { margin-top: 6px; box-shadow: none; }
.wui.inwin { background: none; border: 0; box-shadow: none; padding: 0; }
.wui-head { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.35); padding-bottom: 3px; }
.wui-title { flex: 1; color: var(--wb-orange); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wui-x { background: none; border: 1px solid var(--wb-white); color: var(--wb-white); font-family: var(--font); font-size: 15px; width: 20px; height: 20px; line-height: 14px; cursor: pointer; padding: 0; }
.wui-row { display: flex; flex-direction: column; gap: 2px; }
.wui-lab { display: flex; justify-content: space-between; gap: 8px; }
.wui-val, .wui-read { color: var(--wb-orange); font-variant-numeric: tabular-nums; }
.wui-read { overflow-wrap: anywhere; text-align: right; min-width: 0; }
.wui-row input[type=range] { width: 100%; accent-color: var(--wb-orange); margin: 0; }
.wui-check { flex-direction: row; align-items: center; gap: 6px; cursor: pointer; }
.wui-check input { accent-color: var(--wb-orange); width: 16px; height: 16px; margin: 0; }
.wui-row select { font-family: var(--font); font-size: 15px; background: var(--wb-white); color: var(--wb-blue); border: 2px solid var(--wb-black); }
.wui-readout { flex-direction: row; justify-content: space-between; gap: 8px; }
body.widget-hover canvas#world { cursor: pointer; }
body.widget-grab canvas#world { cursor: grabbing; }

.ulink { cursor: pointer; text-decoration: underline dotted rgba(255, 255, 255, 0.5); text-underline-offset: 3px; }
.ulink:hover { text-decoration-color: var(--wb-orange); color: var(--wb-orange) !important; }

.aibox { margin: 6px 0; padding: 4px 8px; border: 2px solid var(--wb-white); font-size: 15px; }
.aibox.approve { border-color: #44cc66; } .aibox.review { border-color: #ffcc33; } .aibox.reject { border-color: #ff5544; background: rgba(255, 60, 40, 0.15); }

#cookiebar { position: fixed; left: 76px; bottom: 6px; z-index: 100000; font-size: 13px; color: rgba(255, 255, 255, 0.8); background: rgba(0, 0, 34, 0.6); padding: 2px 8px; border: 1px solid rgba(255, 255, 255, 0.3); }
#cookiebar a { color: #ffb04d; }
#cookiebar button { font-family: var(--font); font-size: 13px; background: var(--wb-white); color: var(--wb-blue); border: 0; padding: 0 6px; cursor: pointer; margin-left: 4px; }
.report-reasons label { display: flex; gap: 6px; align-items: center; cursor: pointer; padding: 2px 0; }
.rep { border-left: 3px solid var(--wb-orange); padding: 2px 8px; margin: 4px 0; font-size: 15px; }
.badge.reported { background: #c33; color: #fff; }

/* "<name> JUST LOGGED IN" — top center, above the controls hint */
#announce { position: fixed; left: 50%; top: 27px; transform: translateX(-50%); z-index: 60; pointer-events: none; white-space: nowrap;
  background: var(--wb-blue); color: var(--wb-orange); border: 2px solid var(--wb-white); box-shadow: 3px 3px 0 var(--wb-black);
  font-family: var(--font); font-size: 20px; padding: 2px 14px; letter-spacing: 1px; animation: announce-in 0.35s ease-out; transition: opacity 0.6s; }
#announce.out { opacity: 0; }
@keyframes announce-in { from { transform: translate(-50%, -30px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
