/* ============================================================ tokens */
:root {
  --ink: #2a2140;
  --ink-2: #4f4766;
  --muted: #857d9c;
  --paper: #fffdf9;
  --paper-2: #f7f1ea;
  --line: rgba(42, 33, 64, 0.1);
  --glass: rgba(255, 252, 247, 0.84);
  --shadow-sm: 0 2px 8px rgba(40, 24, 60, 0.1);
  --shadow: 0 12px 32px rgba(40, 24, 60, 0.2), 0 2px 8px rgba(40, 24, 60, 0.1);
  --shadow-lg: 0 24px 60px rgba(30, 16, 50, 0.32);
  --radius: 18px;
  --accent: #7950f2;
  --ok: #2b8a3e;
  --warn: #e67700;
  --danger: #e03131;
  --panel-w: min(460px, 42vw);
  --font-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  background: #2b2440;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, white); outline-offset: 2px; }
.hidden { display: none !important; }
[hidden] { display: none !important; }

#stage { position: fixed; inset: 0; }
#stage canvas { display: block; touch-action: none; }
.layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
#labels { z-index: 5; }
#fx-layer { z-index: 15; }
#hud { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
#hud > * { pointer-events: auto; }
#panel-root { position: fixed; z-index: 25; }
#cursors { z-index: 30; }
#toasts { position: fixed; z-index: 40; top: 78px; left: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; pointer-events: none; width: min(400px, calc(100vw - 24px)); }
#login { z-index: 50; }

/* ============================================================ helpers */
.row { display: flex; align-items: center; gap: 8px; }
.col { display: flex; flex-direction: column; gap: 8px; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.row.center, .col.center { justify-content: center; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.gap { gap: 14px; }
.gap-sm { gap: 8px; }
.gap-xs { gap: 4px; }
.grow { flex: 1; min-width: 0; }
.end-self { align-self: flex-end; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.section-title { font-size: 15px; color: var(--ink-2); margin: 18px 2px 8px; font-weight: 600; }

/* ============================================================ boot */
#boot { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #3d3360, #1f1a30); transition: opacity 0.6s, visibility 0.6s; }
#boot.gone { opacity: 0; visibility: hidden; }
.boot-card { display: grid; gap: 18px; justify-items: center; }
.boot-logo { font-size: 64px; animation: bob 1.4s ease-in-out infinite; }
.boot-bar { width: 160px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 40%; border-radius: inherit; background: linear-gradient(90deg, #ff922b, #f06595, #845ef7); animation: load 1.1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-4deg); } }
.fatal { position: fixed; z-index: 99; inset: auto 16px 16px; background: #fff; color: var(--danger); padding: 16px; border-radius: 12px; white-space: pre-wrap; }

/* ============================================================ avatars */
.av {
  --s: 32px;
  width: var(--s); height: var(--s); flex: none;
  border-radius: 50%;
  background: var(--c, #9a94ad);
  color: #fff;
  display: inline-grid; place-items: center;
  font: 700 calc(var(--s) * 0.38) / 1 var(--font-display);
  box-shadow: 0 0 0 2px #fff, var(--shadow-sm);
  position: relative;
  overflow: visible;
}
.av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.av.anon { background: #5f5776; font-size: calc(var(--s) * 0.55); }
.av.online::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: max(8px, calc(var(--s) * 0.28)); height: max(8px, calc(var(--s) * 0.28)); border-radius: 50%; background: #40c057; box-shadow: 0 0 0 2px #fff; }
.stack { display: inline-flex; }
.stack .av + .av { margin-left: -9px; }

/* ============================================================ buttons & inputs */
.btn {
  border: 0; border-radius: 999px;
  padding: 9px 18px;
  background: var(--accent); color: #fff;
  font: 600 14px var(--font-display);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 35%, transparent);
  transition: transform 0.15s var(--spring), filter 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn:hover:not(:disabled) { transform: translateY(-1px) scale(1.03); filter: brightness(1.06); }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 13px 26px; font-size: 16px; width: 100%; }
.btn-ghost { background: color-mix(in srgb, var(--accent) 11%, white); color: color-mix(in srgb, var(--accent) 80%, black); box-shadow: none; }
.btn-danger { background: var(--danger); }
.icon-btn-sm { border: 0; background: transparent; border-radius: 10px; width: 32px; height: 32px; display: inline-grid; place-items: center; font-size: 16px; transition: background 0.15s, transform 0.15s; }
.icon-btn-sm:hover { background: rgba(42, 33, 64, 0.07); transform: scale(1.1); }
.link-btn { border: 0; background: none; color: var(--muted); text-decoration: underline; font-size: 13px; margin-top: 4px; }

.input {
  width: 100%;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 60%, white); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
textarea.input { resize: vertical; min-height: 44px; }
.input-sm { padding: 7px 11px; font-size: 13px; border-radius: 999px; width: auto; min-width: 0; max-width: 220px; }
.row > .input-sm, .list-controls > .input-sm { flex: 1 1 120px; }
.panel-body > .input-sm { max-width: none; width: 100%; flex: none; }
select.input { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23857d9c' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 32px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field-label { font: 600 12px var(--font-display); color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.04em; }
.field-hint { font-size: 12px; color: var(--muted); }

.segmented { display: inline-flex; background: rgba(42, 33, 64, 0.06); border-radius: 999px; padding: 3px; gap: 2px; flex: none; }
.segmented button { border: 0; background: transparent; border-radius: 999px; padding: 6px 12px; font: 600 13px var(--font-display); color: var(--ink-2); transition: background 0.2s, color 0.2s; white-space: nowrap; }
.segmented button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.stars-input { display: inline-flex; gap: 2px; }
.stars-input button { border: 0; background: none; font-size: 22px; color: #dcd6e6; padding: 0 1px; transition: transform 0.15s var(--spring), color 0.15s; }
.stars-input button.on { color: #fab005; }
.stars-input button:hover { transform: scale(1.25); }
.stars { color: #fab005; letter-spacing: 1px; font-size: 13px; }
.stars .off { color: #e3dfe9; }

.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; user-select: none; }
.switch { appearance: none; width: 36px; height: 21px; border-radius: 999px; background: #d9d4e2; position: relative; transition: background 0.2s; cursor: pointer; margin: 0; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.2s var(--spring); }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(15px); }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font: 600 12px var(--font-display); background: rgba(42, 33, 64, 0.07); color: var(--ink-2); white-space: nowrap; }
.chip.ok { background: #d3f9d8; color: var(--ok); }
.chip.warn { background: #fff3bf; color: #a35f00; }
.chip.muted { color: var(--muted); }
.chip.hot { background: #ffdeeb; color: #c2255c; }
.chip.movie { background: #e7f5ff; color: #1864ab; }
.chip.series { background: #f3f0ff; color: #5f3dc4; }

.like { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 11px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; transition: transform 0.15s var(--spring), border-color 0.15s, background 0.15s; flex: none; }
.like b { font: 600 13px var(--font-display); }
.like:hover { transform: scale(1.08); }
.like.on { border-color: #ffc9c9; background: #fff5f5; }

/* ============================================================ glass HUD */
.glass {
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}
.topbar { position: fixed; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 18px; position: relative; min-width: 0; }
.brand .logo { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(135deg, #ffe8cc, #ffd8a8); flex: none; }
.brand b { font: 600 17px var(--font-display); display: block; white-space: nowrap; }
.order-btn { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none; font: 600 14px var(--font-display); white-space: nowrap; transition: transform 0.2s var(--spring); }
.order-btn:hover { transform: translateY(-2px); }
.clock { color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.conn { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: #40c057; box-shadow: 0 0 0 3px rgba(64, 192, 87, 0.2); }
.conn.off { background: var(--danger); box-shadow: 0 0 0 3px rgba(224, 49, 49, 0.2); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.top-right { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 46px; height: 46px; border-radius: 15px; font-size: 20px; display: grid; place-items: center; position: relative; transition: transform 0.15s var(--spring); }
.icon-btn:hover, .people-btn:hover, .me-chip:hover { transform: translateY(-2px); }
.badge { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #f03e3e; color: #fff; font: 700 11px/20px var(--font-display); text-align: center; box-shadow: 0 0 0 2px #fff; animation: pop 0.4s var(--spring); }
@keyframes pop { from { transform: scale(0); } }
.people-btn { height: 46px; border-radius: 15px; padding: 0 14px 0 10px; display: flex; align-items: center; gap: 10px; transition: transform 0.15s var(--spring); }
.online-count { font: 600 13px var(--font-display); color: var(--ink-2); white-space: nowrap; }
.me-chip { height: 46px; border-radius: 15px; padding: 0 10px 0 6px; display: flex; align-items: center; gap: 8px; transition: transform 0.15s var(--spring); }
.me-name { font: 600 14px var(--font-display); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-mood { font-size: 20px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: rgba(42, 33, 64, 0.06); }

.dock {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; gap: 4px; padding: 7px; border-radius: 24px;
  transition: left 0.45s var(--ease);
  max-width: calc(100vw - 20px);
  overflow-x: auto; scrollbar-width: none;
}
.dock::-webkit-scrollbar { display: none; }
.dock-btn { border: 0; background: transparent; width: 72px; padding: 7px 4px 6px; border-radius: 17px; display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; transition: background 0.2s, transform 0.2s var(--spring); flex: none; }
.dock-btn small { font: 600 11px var(--font-display); color: var(--ink-2); }
.dock-ic { font-size: 24px; line-height: 1.15; transition: transform 0.25s var(--spring); }
.dock-btn:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.dock-btn:hover .dock-ic { transform: translateY(-4px) scale(1.15) rotate(-6deg); }
.dock-btn.active { background: color-mix(in srgb, var(--accent) 16%, white); }
.dock-btn.active::after { content: ''; position: absolute; bottom: 2px; width: 18px; height: 3px; border-radius: 3px; background: var(--accent); }
.dock-badge { position: absolute; top: 2px; right: 10px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 10px/18px var(--font-display); }
body.panel-open .dock, body.panel-open .tray { left: calc((100% - var(--panel-w) - 16px) / 2); }

/* ============================================================ object labels */
.obj-label {
  position: absolute; left: 0; top: 0;
  pointer-events: auto;
  border: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(40, 24, 60, 0.22);
  font: 600 13px var(--font-display);
  color: var(--ink);
  white-space: nowrap;
  transition: opacity 0.3s, background 0.2s, color 0.2s, box-shadow 0.2s, scale 0.25s var(--spring);
  will-change: transform;
}
.ol-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: color-mix(in srgb, var(--accent) 18%, white); }
.ol-badge { min-width: 19px; height: 19px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.obj-label.hover { scale: 1.12; background: var(--accent); color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 50%, transparent); }
.obj-label.hover .ol-ic { background: rgba(255, 255, 255, 0.25); }
.obj-label.hover .ol-badge { background: #fff; color: var(--accent); }
#labels.dim .obj-label { opacity: 0; pointer-events: none; }

/* ============================================================ remote cursors */
.rc { position: absolute; left: 0; top: 0; transition: opacity 0.25s; will-change: transform; }
.rc.hidden { opacity: 0; }
.rc-arrow { position: absolute; left: -3px; top: -2px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); }
.rc-arrow path { fill: var(--c); }
.rc-tag { position: absolute; left: 15px; top: 17px; display: flex; align-items: center; gap: 6px; padding: 2px 10px 2px 2px; border-radius: 999px; background: var(--c); color: #fff; font: 600 12.5px var(--font-display); white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); }
.rc-tag .av { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }
.rc-mood { font-size: 15px; margin-left: -2px; }
.rc-ping { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 3px solid var(--c); animation: ping 0.75s ease-out forwards; }
@keyframes ping { from { transform: scale(0.2); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* ============================================================ toasts */
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 9px 9px 9px 14px; border-radius: 16px; background: rgba(255, 253, 250, 0.95); backdrop-filter: blur(10px); box-shadow: var(--shadow); font-weight: 700; font-size: 14px; transform: translateX(-24px) scale(0.96); opacity: 0; transition: transform 0.35s var(--spring), opacity 0.25s; max-width: 100%; }
.toast.in { transform: none; opacity: 1; }
.toast-icon { font-size: 20px; }
.toast-text { flex: 1; min-width: 0; }
.toast-error { background: #fff5f5; color: #c92a2a; }
.toast-x { border: 0; background: none; color: var(--muted); width: 26px; height: 26px; border-radius: 8px; font-size: 12px; flex: none; }
.toast-x:hover { background: rgba(0, 0, 0, 0.05); }

/* ============================================================ side panel */
.panel {
  position: fixed; top: 76px; right: 14px; bottom: 14px;
  width: var(--panel-w);
  display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  transform: translateX(calc(100% + 30px)) rotate(2deg);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.3s;
  overflow: hidden;
}
.panel.open { transform: none; opacity: 1; }
.panel-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 16px 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, white), color-mix(in srgb, var(--accent) 5%, white));
  border-bottom: 1px solid var(--line);
}
.panel-icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: #fff; box-shadow: var(--shadow-sm); flex: none; animation: wiggle 0.6s var(--spring); }
@keyframes wiggle { 0% { transform: scale(0.4) rotate(-20deg); } 60% { transform: scale(1.1) rotate(8deg); } }
.panel-titles { flex: 1; min-width: 0; }
.panel-titles h2 { font-size: 20px; }
.panel-titles p { font-size: 13px; color: var(--ink-2); }
.panel-close { border: 0; background: rgba(42, 33, 64, 0.06); width: 34px; height: 34px; border-radius: 12px; flex: none; color: var(--ink-2); transition: background 0.15s, transform 0.2s; }
.panel-close:hover { background: rgba(42, 33, 64, 0.12); transform: rotate(90deg); }
.panel-body { flex: 1; overflow-y: auto; padding: 14px 16px 22px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.panel-body > .segmented { align-self: flex-start; }

/* composer */
.composer { background: #fff; border: 1.5px dashed color-mix(in srgb, var(--accent) 40%, white); border-radius: var(--radius); }
.composer > summary { list-style: none; cursor: pointer; padding: 12px 14px; font: 600 15px var(--font-display); color: color-mix(in srgb, var(--accent) 80%, black); border-radius: var(--radius); transition: background 0.15s; }
.composer > summary::-webkit-details-marker { display: none; }
.composer > summary:hover { background: color-mix(in srgb, var(--accent) 7%, white); }
.composer[open] { border-style: solid; box-shadow: var(--shadow-sm); }
.composer-form { display: flex; flex-direction: column; gap: 12px; padding: 4px 14px 14px; }
.list-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.list-controls .input-sm { margin-left: auto; }

/* cards */
.cards { display: flex; flex-direction: column; gap: 10px; }
.card { background: #fff; border-radius: var(--radius); padding: 13px 14px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); animation: cardIn 0.35s var(--ease) both; }
@keyframes cardIn { from { transform: translateY(8px); opacity: 0; } }
.card h4 { font-size: 16px; overflow-wrap: anywhere; }
.card-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; font-size: 13px; }
.empty { text-align: center; padding: 26px 16px; color: var(--muted); display: grid; gap: 4px; justify-items: center; }
.empty b { color: var(--ink-2); font: 600 15px var(--font-display); }
.empty-icon { font-size: 40px; animation: bob 2.4s ease-in-out infinite; }
.empty p { font-size: 13px; max-width: 280px; }

.rec-top { display: flex; gap: 10px; align-items: flex-start; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; align-items: center; }
.rec-note { margin-top: 8px; color: var(--ink-2); font-size: 14px; padding-left: 10px; border-left: 3px solid color-mix(in srgb, var(--accent) 35%, white); white-space: pre-wrap; overflow-wrap: anywhere; }

.give { display: flex; gap: 12px; align-items: flex-start; }
.give-photo { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; flex: none; }
.give-photo.ph { display: grid; place-items: center; font-size: 30px; background: #ebfbee; }
.give.given { opacity: 0.6; }
.give p { margin-top: 4px; overflow-wrap: anywhere; }
.photo-preview { width: 64px; height: 64px; border-radius: 14px; background: var(--paper-2); display: grid; place-items: center; font-size: 24px; overflow: hidden; flex: none; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.given-list summary { cursor: pointer; font: 600 14px var(--font-display); color: var(--ink-2); padding: 10px 2px; }
.given-list .card { margin-bottom: 8px; }

.req { border-left: 6px solid var(--note); }
.req-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.req-text { margin-top: 8px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.req.done .req-text { text-decoration: line-through; color: var(--muted); }
.req.highlight { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, white), var(--shadow); }
.req-composer { padding: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: background 0.3s; }
.req-composer.is-anon { background: #f3f0ff; }
.anon-hint { display: none; }
.req-composer.is-anon .anon-hint { display: block; }

/* birthdays */
.bday-mine { display: flex; flex-direction: column; gap: 12px; background: linear-gradient(135deg, #fff0f6, #fff9db); }
.bday-mine .field { flex: 1; min-width: 110px; }
.bday-today { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); background: linear-gradient(135deg, #f06595, #ff922b); color: #fff; box-shadow: var(--shadow); animation: cardIn 0.4s var(--spring); }
.bday-today-avs { display: flex; }
.bday-today-avs .av + .av { margin-left: -12px; }
.bday-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.bday-row b { display: block; font-size: 14px; }
.month-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.month { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; min-height: 64px; }
.month b { font: 600 12px var(--font-display); color: var(--muted); text-transform: uppercase; }
.month.now { border-color: #f783ac; background: #fff0f6; }
.month.now b { color: #d6336c; }
.month-avs { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }

.bday-banner {
  position: fixed; top: 76px; left: 50%;
  transform: translate(-50%, -30px) scale(0.8);
  opacity: 0;
  pointer-events: auto;
  width: min(520px, calc(100vw - 24px));
  padding: 22px 20px 18px;
  border-radius: 28px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #f06595 0%, #ff922b 55%, #fcc419 100%);
  box-shadow: 0 20px 50px rgba(240, 101, 149, 0.45);
  transition: transform 0.6s var(--spring), opacity 0.4s, width 0.4s var(--ease), padding 0.4s;
}
.bday-banner.in { transform: translate(-50%, 0); opacity: 1; }
body.panel-open .bday-banner { left: calc((100% - var(--panel-w) - 16px) / 2); }
.bday-banner h2 { font-size: 26px; margin-top: 10px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
.bday-banner p { opacity: 0.95; margin: 4px 0 14px; font-weight: 700; }
.bday-banner .btn { background: #fff; color: #d6336c; box-shadow: none; }
.bday-banner .btn-ghost { background: rgba(255, 255, 255, 0.22); color: #fff; }
.bday-avatars { display: flex; justify-content: center; gap: 14px; }
.bday-av { position: relative; animation: bounce 1.2s ease-in-out infinite; }
.bday-av:nth-child(2) { animation-delay: 0.2s; }
.bday-av .av { box-shadow: 0 0 0 4px #fff, 0 10px 24px rgba(0, 0, 0, 0.25); }
.bday-av .hat { position: absolute; top: -18px; right: -12px; font-size: 34px; transform: rotate(18deg); }
@keyframes bounce { 50% { transform: translateY(-8px) rotate(-3deg); } }
.bday-min { position: absolute; top: 10px; right: 12px; border: 0; background: rgba(255, 255, 255, 0.25); color: #fff; width: 30px; height: 30px; border-radius: 10px; font-size: 18px; font-weight: 800; }
.bday-banner.collapsed { width: max-content; padding: 0; background: transparent; box-shadow: none; }
.bday-pill { border: 0; padding: 10px 18px; border-radius: 999px; color: #fff; font: 600 15px var(--font-display); background: linear-gradient(135deg, #f06595, #ff922b); box-shadow: 0 10px 26px rgba(240, 101, 149, 0.45); animation: bounce 2s ease-in-out infinite; }

/* mail */
.mail-card { display: flex; align-items: center; gap: 12px; }
.mail-card.unseen { box-shadow: 0 0 0 2px #f783ac, var(--shadow-sm); }
.mail-sticker { width: 74px; height: 74px; object-fit: contain; flex: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2)); }
.mail-msg { font-style: italic; margin: 4px 0; color: var(--ink-2); overflow-wrap: anywhere; }
.mail-fly {
  position: fixed; z-index: 42; left: 50%; top: 46%;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  pointer-events: auto; cursor: pointer;
  transform: translate(-50%, -50%) translateY(65vh) scale(0.2) rotate(-35deg);
  opacity: 0;
  transition: transform 0.9s var(--spring), opacity 0.4s;
}
.mail-fly.in { transform: translate(-50%, -50%) scale(1) rotate(0); opacity: 1; }
.mail-fly.out { transform: translate(-50%, -50%) translate(42vw, -44vh) scale(0.05) rotate(30deg); opacity: 0; transition: transform 0.75s var(--ease), opacity 0.75s; }
.mail-fly img { width: min(220px, 50vw); height: min(220px, 50vw); object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35)); animation: bob 1.6s ease-in-out infinite; }
.mail-fly-note { display: flex; align-items: center; gap: 10px; background: #fff; padding: 10px 16px 10px 10px; border-radius: 18px; box-shadow: var(--shadow-lg); max-width: min(420px, 90vw); }
.mail-fly-note b { display: block; font-family: var(--font-display); font-weight: 600; }
.mail-fly-note span { color: var(--ink-2); font-style: italic; overflow-wrap: anywhere; }

/* games */
.game-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.game-type { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 10px; }
.game-type .row { flex-wrap: wrap; margin-top: 6px; }
.gt-icon { font-size: 26px; letter-spacing: -3px; margin-bottom: 2px; transition: transform 0.3s var(--spring); }
.game-type:hover .gt-icon { transform: scale(1.2) rotate(-8deg); }
.table-row { display: flex; align-items: center; gap: 10px; }
.table-row b { display: block; }
.table-row .stack .av + .av { margin-left: -8px; }
.game-view { display: flex; flex-direction: column; gap: 14px; }
.players { display: flex; align-items: center; justify-content: center; gap: 14px; }
.player { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 18px; background: #fff; border: 2px solid transparent; min-width: 104px; transition: border-color 0.3s, transform 0.3s var(--spring); }
.player.turn { border-color: var(--accent); transform: scale(1.05); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.player.gone { opacity: 0.45; }
.player.empty { border: 2px dashed var(--line); color: var(--muted); }
.player .mark { font: 700 20px var(--font-display); color: var(--accent); }
.disc-dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; }
.vs { font: 700 14px var(--font-display); color: var(--muted); }
.game-status { text-align: center; font: 600 18px var(--font-display); padding: 8px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 9%, white); }
.game-status.done { background: linear-gradient(135deg, #ffe066, #ffa94d); color: #5c3c00; animation: pop 0.5s var(--spring); }
.ttt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(300px, 100%); align-self: center; aspect-ratio: 1; }
.ttt .cell { border: 0; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); font: 700 54px/1 var(--font-display); transition: transform 0.15s var(--spring), background 0.15s; }
.ttt .cell:not(:disabled):hover { transform: scale(1.05); background: color-mix(in srgb, var(--accent) 8%, white); }
.ttt .cell.p0 { color: #f03e3e; animation: pop 0.35s var(--spring); }
.ttt .cell.p1 { color: #1c7ed6; animation: pop 0.35s var(--spring); }
.ttt .cell.win { background: #fff3bf; }
.c4 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; padding: 10px; background: #364fc7; border-radius: 18px; width: min(370px, 100%); align-self: center; box-shadow: var(--shadow); }
.c4-col { border: 0; background: transparent; padding: 3px 0; border-radius: 12px; display: grid; gap: 5px; transition: background 0.15s; }
.c4-col:not(:disabled):hover { background: rgba(255, 255, 255, 0.14); }
.c4-col:not(:disabled):hover .slot:not(.filled):last-child { background: color-mix(in srgb, var(--hover, #fff) 45%, #1c2c8a); }
.slot { aspect-ratio: 1; border-radius: 50%; background: #1c2c8a; box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.35); }
.slot.filled { background: var(--disc); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18); }
.slot.last { animation: drop 0.45s cubic-bezier(0.5, 0, 0.75, 1.4); }
@keyframes drop { from { transform: translateY(calc(var(--row) * -110% - 110%)); } }
.slot.win { box-shadow: 0 0 0 3px #fff, 0 0 14px #fff; }
.rps { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rps-score { display: flex; gap: 14px; align-items: center; font: 700 34px var(--font-display); }
.rps-last { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; animation: pop 0.45s var(--spring); }
.rps-last .big { font-size: 46px; }
.rps-last small { width: 100%; text-align: center; font-weight: 700; color: var(--ink-2); }
.rps-picks { display: flex; gap: 10px; }
.rps-btn { border: 0; width: 92px; padding: 12px 0 8px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); font-size: 40px; display: flex; flex-direction: column; align-items: center; transition: transform 0.2s var(--spring); }
.rps-btn small { font: 600 12px var(--font-display); text-transform: capitalize; color: var(--muted); }
.rps-btn:not(:disabled):hover { transform: translateY(-4px) scale(1.06) rotate(-4deg); }
.rps-btn:disabled { opacity: 0.45; }
.rps-btn kbd { margin-top: 4px; font: 700 11px var(--font-display); color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }
.rps-btn.chosen { opacity: 1; box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
.darts { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dart-info { display: flex; gap: 8px; }
.dart-board { width: min(320px, 100%); border-radius: 50%; box-shadow: var(--shadow); touch-action: manipulation; }
.dart-board.aiming { cursor: crosshair; }
.crosshair { pointer-events: none; }
.dart-last { font: 600 16px var(--font-display); animation: pop 0.35s var(--spring); }
.dart-last b { color: var(--accent); }
.dart-throw kbd { font: 700 11px var(--font-display); background: rgba(255,255,255,0.25); border-radius: 6px; padding: 1px 7px; }
.waiting-dots { display: flex; gap: 8px; justify-content: center; padding: 30px; }
.waiting-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); animation: bob 1s ease-in-out infinite; }
.waiting-dots i:nth-child(2) { animation-delay: 0.15s; }
.waiting-dots i:nth-child(3) { animation-delay: 0.3s; }

/* people */
.people-list { display: flex; flex-direction: column; gap: 6px; }
.person { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.person b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person small { display: block; }

/* ============================================================ popover & menus */
.popover { position: fixed; z-index: 45; min-width: 200px; max-width: min(320px, calc(100vw - 16px)); padding: 6px; border-radius: 18px; background: rgba(255, 253, 250, 0.97); backdrop-filter: blur(12px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); transform: scale(0.92) translateY(-4px); opacity: 0; transition: transform 0.2s var(--spring), opacity 0.15s; transform-origin: top left; max-height: calc(100vh - 16px); overflow-y: auto; }
.popover.in { transform: none; opacity: 1; }
.menu-item { width: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; text-align: left; font-weight: 700; font-size: 14px; }
.menu-item > span:first-child { width: 22px; display: grid; place-items: center; font-size: 16px; }
.menu-item:hover { background: rgba(42, 33, 64, 0.06); }
.menu-item.danger { color: var(--danger); }
.menu-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-head b { display: block; font-size: 14px; }
.menu-head small { color: var(--muted); }
.menu-note { font-size: 12px; color: var(--muted); padding: 6px 10px 4px; font-weight: 700; }
.menu-tools { display: flex; gap: 4px; padding: 4px 6px 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.tool { flex: 1; border: 0; background: rgba(42, 33, 64, 0.06); border-radius: 10px; height: 34px; font-size: 16px; font-weight: 800; transition: background 0.15s, transform 0.15s var(--spring); }
.tool:hover { background: rgba(42, 33, 64, 0.12); transform: scale(1.08); }
.mood-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; padding: 2px 6px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.mood-btn { border: 0; background: transparent; font-size: 22px; height: 40px; border-radius: 10px; transition: transform 0.2s var(--spring), background 0.15s; }
.mood-btn:hover { transform: scale(1.3); background: rgba(42, 33, 64, 0.05); }
.mood-btn.on { background: color-mix(in srgb, var(--accent) 18%, white); }

/* ============================================================ modal */
.modal { position: fixed; inset: 0; z-index: 44; display: grid; place-items: center; padding: 16px; background: rgba(28, 20, 44, 0.35); backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.25s; }
.modal.in { opacity: 1; }
.modal-card { width: min(520px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--paper); border-radius: 26px; box-shadow: var(--shadow-lg); transform: scale(0.9) translateY(20px); transition: transform 0.35s var(--spring); overflow: hidden; }
.modal.in .modal-card { transform: none; }
.modal-sm { width: min(380px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 8px; }
.modal-head h3 { font-size: 20px; }
.modal-body { padding: 8px 18px 18px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.pick-people { display: flex; flex-wrap: wrap; gap: 6px; max-height: 150px; overflow-y: auto; padding: 4px; }
.person-chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 12px 3px 3px; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; transition: border-color 0.15s, background 0.15s; }
.person-chip.selected { border-color: #e64980; background: #fff0f6; }
.pick-stickers { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; max-height: 210px; overflow-y: auto; padding: 4px; }

/* ============================================================ sticker tray */
.tray {
  position: fixed; left: 50%; bottom: 102px;
  width: min(860px, calc(100vw - 24px));
  transform: translate(-50%, 24px) scale(0.97);
  opacity: 0; visibility: hidden;
  border-radius: 24px; padding: 10px 12px 12px;
  background: var(--glass); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: var(--shadow);
  transition: transform 0.4s var(--spring), opacity 0.25s, visibility 0.25s, left 0.45s var(--ease);
}
.tray.open { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.tray-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px 8px; font-size: 13px; }
.tray-head b { font: 600 15px var(--font-display); }
.tray-grid { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: thin; align-items: center; }
.tile { flex: none; width: 70px; height: 70px; border: 0; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); display: grid; place-items: center; padding: 6px; transition: transform 0.2s var(--spring), box-shadow 0.2s; touch-action: none; user-select: none; }
.tile img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.tile .emoji { font-size: 38px; line-height: 1; pointer-events: none; }
.tile:hover { transform: translateY(-4px) rotate(-4deg) scale(1.06); box-shadow: var(--shadow); }
.tile.selected { box-shadow: 0 0 0 3px #e64980, var(--shadow); }
.pick-stickers .tile { width: auto; height: 62px; }
.tile-upload { border: 2px dashed #63e6be; background: #e6fcf5; color: #0ca678; display: flex; flex-direction: column; gap: 0; }
.tile-upload span { font-size: 26px; line-height: 1; }
.tile-upload small { font: 600 11px var(--font-display); }
.tile-note { border: 2px dashed #fcc419; background: #fff9db; color: #a35f00; display: flex; flex-direction: column; gap: 0; }
.tile-note span { font-size: 26px; line-height: 1.1; }
.tile-note small { font: 600 11px var(--font-display); }
.memo-preview { background: var(--memo, #ffe66d); border-radius: 10px; padding: 14px; box-shadow: var(--shadow-sm); transform: rotate(-0.6deg); transition: background 0.2s; }
.memo-preview .memo-text { background: transparent; border: 0; box-shadow: none; font: 600 18px var(--font-display); resize: none; padding: 0; color: #2b2140; }
.memo-preview .memo-text:focus { box-shadow: none; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(0,0,0,0.12); background: var(--c); transition: transform 0.15s var(--spring); }
.swatch:hover { transform: scale(1.15); }
.swatch.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink-2); }
.tray-sep { width: 2px; height: 46px; background: var(--line); flex: none; border-radius: 2px; }
.drag-ghost { position: fixed; left: 0; top: 0; z-index: 46; width: 96px; height: 96px; display: grid; place-items: center; pointer-events: none; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.35)); transition: scale 0.2s var(--spring), opacity 0.25s; }
.drag-ghost img { width: 100%; height: 100%; object-fit: contain; }
.drag-ghost .emoji { font-size: 70px; }
.drag-ghost.over { scale: 1.25; }
.drag-ghost.trash { scale: 0.7; filter: drop-shadow(0 0 14px rgba(224, 49, 49, 0.8)) grayscale(0.4); }
.drag-ghost.drop { scale: 0.5; opacity: 0; }
.drag-ghost.back { opacity: 0; scale: 0.3; }

/* comments on recommendations */
.comments { margin-top: 10px; padding: 10px; border-radius: 14px; background: var(--paper-2); display: flex; flex-direction: column; gap: 8px; animation: cardIn 0.25s var(--ease); }
.comment { display: flex; gap: 8px; align-items: flex-start; }
.comment-meta { display: flex; gap: 8px; align-items: baseline; font-size: 12px; }
.comment-meta b { font-size: 13px; }
.comment p { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment .icon-btn-sm { width: 24px; height: 24px; font-size: 11px; color: var(--muted); }
.comment-form { display: flex; gap: 6px; }
.comment-form .input-sm { flex: 1; max-width: none; }
.btn-ghost.active { background: color-mix(in srgb, var(--accent) 22%, white); }
.rec-section { gap: 12px; }
.panel-body > .segmented + div { display: contents; }

/* jukebox */
.jb-btn { position: relative; }
.jb-btn.off { opacity: 0.6; }
.jb-btn.off::after { content: ''; position: absolute; left: 10px; right: 10px; top: 50%; height: 3px; border-radius: 3px; background: var(--danger); transform: rotate(-35deg); box-shadow: 0 0 0 1.5px #fff; }
.jb-btn.live:not(.off) { animation: jbpulse 1.4s ease-in-out infinite; }
@keyframes jbpulse { 50% { box-shadow: 0 0 0 5px rgba(214, 51, 108, 0.22), var(--shadow); } }
.jb-listen { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.jb-listen.on { background: linear-gradient(135deg, #fff0f6, #f3f0ff); }
.jb-listen-btn { width: 100%; padding: 12px; font-size: 16px; --accent: #d6336c; }
.jb-listen-btn.muted { background: #5c5470; box-shadow: none; }
.jb-vol-row { display: flex; align-items: center; gap: 10px; }
.jb-vol { flex: 1; accent-color: #d6336c; }
.jb-now { display: flex; align-items: center; gap: 12px; }
.jb-title { display: block; font: 600 18px var(--font-display); }
.jb-by { display: block; }
.jb-controls { display: flex; align-items: center; gap: 4px; }
.jb-controls .icon-btn-sm { font-size: 18px; }
.jb-play { width: 46px; height: 46px; padding: 0; border-radius: 50%; font-size: 16px; --accent: #d6336c; }
.jb-eq { display: flex; align-items: flex-end; gap: 3px; height: 34px; width: 34px; flex: none; }
.jb-eq i { flex: 1; height: 20%; border-radius: 3px; background: linear-gradient(#ff6ee0, #4dd9ff); }
.jb-now.playing .jb-eq i { animation: eqbar 0.9s ease-in-out infinite alternate; animation-delay: var(--d); }
@keyframes eqbar { from { height: 18%; } to { height: 100%; } }
.jb-tracks { display: flex; flex-direction: column; gap: 6px; }
.jb-track { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; transition: transform 0.15s var(--spring), background 0.15s; }
.jb-track:hover { transform: translateX(3px); background: #fff5f9; }
.jb-track.cur { border-color: #f783ac; background: #fff0f6; }
.jb-track b { display: block; }
.jb-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(42,33,64,0.07); font: 700 13px var(--font-display); }
.jb-track.cur .jb-num { background: #d6336c; color: #fff; }

/* full-screen wall */
.wall-back { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 2; box-shadow: var(--shadow); --accent: #0ca678; animation: pop 0.4s var(--spring); }
body.wall-open .dock { opacity: 0; pointer-events: none; }
body.wall-open .tray { bottom: 16px; }
body.wall-open .bday-banner { opacity: 0; pointer-events: none; }

/* ============================================================ login */
#login { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; background: radial-gradient(ellipse at 50% 30%, rgba(43, 36, 64, 0.15), rgba(30, 22, 48, 0.55)); opacity: 0; transition: opacity 0.5s; overflow-y: auto; }
#login.in { opacity: 1; }
.login-card { width: min(430px, 100%); padding: 30px 28px 26px; border-radius: 30px; background: rgba(255, 253, 250, 0.93); backdrop-filter: blur(18px); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 14px; text-align: center; transform: translateY(20px) scale(0.96); transition: transform 0.6s var(--spring); }
#login.in .login-card { transform: none; }
.login-card h1 { font-size: 27px; }
.login-card .field { text-align: left; }
.login-door { font-size: 54px; margin: -4px auto 0; animation: bob 2s ease-in-out infinite; }
.login-form { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.login-error { color: var(--danger); font-weight: 700; font-size: 14px; min-height: 1px; }
.avatar-drop { border: 0; background: none; padding: 0; position: relative; border-radius: 50%; transition: transform 0.25s var(--spring); }
.avatar-drop:hover { transform: scale(1.05) rotate(-3deg); }
.avatar-edit { position: absolute; right: 0; bottom: 4px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow); font-size: 18px; }

/* ============================================================ responsive */
@media (max-width: 860px) {
  :root { --panel-w: 100vw; }
  .panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 62vh; border-radius: 26px 26px 0 0; transform: translateY(105%); }
  .panel.open { transform: none; }
  body.panel-open .dock, body.panel-open .tray { left: 50%; }
  body.panel-open .dock { opacity: 0; pointer-events: none; }
  body.panel-open .bday-banner { left: 50%; }
  .dock { left: 10px; right: 10px; transform: none; justify-content: flex-start; }
  .dock-btn { width: 62px; }
  .tray { bottom: 96px; }
  .clock { display: none; }
  .online-count { display: none; }
  .me-name { display: none; }
  .brand b { font-size: 15px; }
  .obj-label .ol-tx { display: none; }
  .obj-label { padding-right: 4px; }
}
@media (max-width: 480px) {
  .topbar { top: 10px; left: 10px; right: 10px; }
  .icon-btn, .people-btn, .me-chip { height: 42px; }
  .icon-btn { width: 42px; }
  .brand { padding-right: 10px; }
  .brand > div { display: none; }
  .order-btn { height: 42px; padding: 0 12px; }
  .order-btn .order-txt { display: none; }
  .people-btn .stack .av:nth-child(n + 3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
