:root {
  --bg: #07060d;
  --panel: rgba(18, 14, 32, 0.78);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f0ff;
  --dim: #a9a1c4;
  --pink: #ff3ea5;
  --cyan: #3ef0ff;
  --lime: #b6ff3e;
  --display: "Unbounded", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", "PingFang TC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--body); overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.screen { position: fixed; inset: 0; }

/* ── 進場 ───────────────────── */
#join {
  display: grid; place-items: center; padding: 16px;
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(255, 62, 165, 0.28), transparent 70%),
    radial-gradient(50% 50% at 85% 90%, rgba(62, 240, 255, 0.22), transparent 70%),
    var(--bg);
  overflow-y: auto;
}
.card {
  width: min(420px, 100%);
  padding: 28px 22px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 60px rgba(255, 62, 165, 0.15);
}
.logo {
  font-family: var(--display); font-weight: 800; letter-spacing: 0.04em;
  font-size: clamp(34px, 10vw, 46px); margin: 0; line-height: 1;
  color: #fff;
  text-shadow: 0 0 10px var(--cyan), 0 0 28px rgba(62, 240, 255, 0.6);
}
.logo span { color: var(--pink); text-shadow: 0 0 10px var(--pink), 0 0 30px rgba(255, 62, 165, 0.7); }
.tagline { color: var(--dim); margin: 12px 0 22px; line-height: 1.5; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; color: var(--dim); margin-bottom: 7px; }
.field input, .lang {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); outline: none;
}
.field input:focus, .lang:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(62, 240, 255, 0.18); }
.lang option { background: #15102a; }


.primary {
  width: 100%; padding: 14px; border: 0; border-radius: 14px; cursor: pointer;
  font-family: var(--display); font-weight: 800; letter-spacing: 0.06em; font-size: 16px; color: #120818;
  background: linear-gradient(90deg, var(--pink), #ff8ad1 50%, var(--cyan));
  box-shadow: 0 0 24px rgba(255, 62, 165, 0.45);
}
.primary:active { transform: translateY(1px); }
.primary.small { width: auto; padding: 0 16px; font-size: 13px; border-radius: 12px; }
.note { color: var(--dim); font-size: 13px; text-align: center; margin: 14px 0 0; }

/* ── 遊戲 ───────────────────── */
#club { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }

.hud {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
  padding: max(10px, env(safe-area-inset-top)) 12px 0; pointer-events: none;
}
.hud > * { pointer-events: auto; }
.chips, .tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip {
  padding: 6px 11px; border-radius: 999px; font-size: 13px;
  background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(8px);
}
.chip.strong { font-family: var(--display); font-weight: 500; color: var(--cyan); }
.chip.dim { color: var(--dim); }
.icon {
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(8px);
}
.icon.off { opacity: 0.5; }
a.icon.switch {
  display: grid; place-items: center; text-decoration: none;
  font-family: var(--display); font-size: 11px; font-weight: 800; color: var(--lime);
}
.switch-link { color: var(--dim); }
.lang.small { width: auto; padding: 7px 10px; font-size: 13px; border-radius: 999px; background: var(--panel); }

.status, .toast {
  position: absolute; left: 50%; transform: translateX(-50%);
  padding: 9px 16px; border-radius: 999px; font-size: 14px;
  background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(8px);
  white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis;
}
.status { top: 56px; color: var(--lime); }
.toast { top: 100px; color: #fff; border-color: rgba(255, 62, 165, 0.6); }

.log {
  position: absolute; left: 12px; bottom: 132px; width: min(320px, calc(100% - 24px));
  max-height: 32vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px;
  font-size: 13px; pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, #000 30%);
}
.log div { padding: 4px 10px; border-radius: 10px; background: rgba(7, 6, 13, 0.6); width: fit-content; max-width: 100%; overflow-wrap: anywhere; }
.log b { font-weight: 600; margin-right: 6px; }
.log .sys { color: var(--dim); font-style: italic; }

.bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 12px max(10px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(7, 6, 13, 0.92), rgba(7, 6, 13, 0));
}
.emotes { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.emotes::-webkit-scrollbar { display: none; }
.emotes button {
  flex: 0 0 auto; display: flex; align-items: center; gap: 5px;
  padding: 8px 12px; border-radius: 999px; cursor: pointer; font-size: 14px;
  background: var(--panel); border: 1px solid var(--line);
}
.emotes button.on { border-color: var(--pink); box-shadow: 0 0 14px rgba(255, 62, 165, 0.5); color: #fff; }
.emotes kbd { font-size: 10px; color: var(--dim); font-family: var(--body); }
.chat { display: flex; gap: 8px; height: 44px; }
.chat input {
  flex: 1; min-width: 0; padding: 0 14px; border-radius: 12px; outline: none;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line);
}
.chat input:focus { border-color: var(--cyan); }
.hint { margin: 7px 0 0; font-size: 11px; color: var(--dim); text-align: center; }

/* 觸控裝置沒有鍵盤快捷鍵 */
@media (max-width: 640px), (pointer: coarse) {
  .hint, .emotes kbd { display: none; }
  .log { bottom: 112px; }
}

/* 窄螢幕：表情只留圖示一排放得下；聊天紀錄只留最近 4 則，少擋地板 */
@media (max-width: 640px) {
  .emotes { justify-content: space-between; gap: 4px; }
  .emotes button { padding: 8px 10px; font-size: 18px; }
  .emotes button.emo span { display: none; }
  .emotes button.act { font-size: 14px; }
  .emotes { justify-content: flex-start; }
  #lang-game { display: none; }
  .log { width: min(240px, calc(100% - 24px)); max-height: 20vh; font-size: 12px; }
  .log div:nth-last-child(n + 5) { display: none; }
}

/* ── 捏臉換裝（進場畫面 + 遊戲中換裝共用）────────── */
#join { z-index: 10; }
#join.dressing { background: rgba(7, 6, 13, 0.82); backdrop-filter: blur(6px); }
#join.dressing .join-only, #join:not(.dressing) .dress-only { display: none; }
.card.wide {
  width: min(880px, 100%); display: grid; grid-template-columns: 1fr 1.15fr; grid-template-rows: minmax(0, 1fr);
  gap: 22px; padding: 22px; max-height: calc(100dvh - 32px); overflow: hidden;
}
.card.wide .logo { font-size: clamp(30px, 4vw, 40px); }
.card.wide .badge3d { font-size: 0.5em; }
.join-preview {
  position: relative; min-height: 380px; border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(70% 55% at 50% 85%, rgba(255, 62, 165, 0.28), transparent 70%),
    radial-gradient(60% 50% at 50% 10%, rgba(62, 240, 255, 0.16), transparent 70%),
    #0c0a16;
  border: 1px solid var(--line);
}
#preview { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.lk-drag { position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; text-align: center; font-size: 12px; color: var(--dim); pointer-events: none; }
.join-form { overflow-y: auto; min-height: 0; padding-right: 4px; }
.join-form .tagline { margin: 10px 0 16px; }
.dress-title { margin: 0 0 14px; font: 800 20px var(--display); color: var(--cyan); text-shadow: 0 0 12px rgba(62, 240, 255, 0.5); }
.lang-field { margin-top: 14px; }

.customizer { margin-bottom: 14px; }
.lk-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.lk-tabs button {
  flex: 1; padding: 9px 4px; background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--dim); cursor: pointer; font-size: 14px;
}
.lk-tabs button.on { color: #fff; border-bottom-color: var(--pink); }
.lk-row { margin-bottom: 12px; }
.lk-label { display: block; font-size: 12px; color: var(--dim); margin-bottom: 6px; }
.lk-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.lk-opts button {
  padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: 13px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
}
.lk-opts button[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: #120818; font-weight: 600; }
.lk-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.lk-sw {
  width: 28px; height: 28px; border-radius: 50%; padding: 0; cursor: pointer;
  background: currentColor; border: 2px solid rgba(255, 255, 255, 0.15);
}
.lk-sw[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--pink); }

.join-actions { display: flex; gap: 10px; }
.join-actions .primary { flex: 1.6; }
.ghost {
  flex: 1; padding: 14px; border-radius: 14px; cursor: pointer; font-size: 15px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
}

@media (max-width: 720px) {
  #join { place-items: start center; padding: 10px; }
  .card.wide { grid-template-columns: 1fr; grid-template-rows: auto; gap: 12px; padding: 14px; max-height: none; overflow: visible; }
  .join-preview { min-height: 0; height: 30vh; }
  .join-form { overflow: visible; padding-right: 0; }
  .card.wide .logo { font-size: 30px; }
  /* 面板很長，按鈕黏在畫面底部不用滑到最下面 */
  .join-actions {
    position: sticky; bottom: 0; z-index: 1; margin: 0 -14px; padding: 10px 14px max(10px, env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(18, 14, 32, 0.98) 70%, rgba(18, 14, 32, 0));
  }
}

/* ── 贊助（public/tip.js）───────────────────── */
.tip-dialog {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  background: rgba(4, 3, 10, 0.6);
}
.tip-card { display: flex; flex-direction: column; gap: 12px; }
.tip-card h2 { margin: 0; font-family: var(--display); font-size: 20px; color: #fff; }
.tip-card .tip-body { margin: 0; line-height: 1.6; }
.tip-card .note { margin: 0; text-align: left; }
.tip-card a.primary { display: block; text-align: center; text-decoration: none; }
.tip-show { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.tip-banner {
  position: absolute; left: 50%; top: 22%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: max-content; max-width: calc(100% - 32px); padding: 16px 24px; text-align: center;
  background: var(--panel); border: 1px solid var(--pink); border-radius: 20px; backdrop-filter: blur(10px);
  box-shadow: 0 0 40px rgba(255, 62, 165, 0.55);
  animation: tip-pop 5.5s ease forwards;
}
.tip-banner strong { font-size: 18px; color: #fff; }
.tip-amt { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--lime); text-shadow: 0 0 14px rgba(182, 255, 62, 0.7); }
.tip-text { color: var(--dim); font-size: 14px; }
.tip-show i { position: absolute; top: -40px; font-style: normal; animation: tip-fall 3.4s linear forwards; }
@keyframes tip-pop {
  0% { opacity: 0; transform: translateX(-50%) scale(0.7); }
  8% { opacity: 1; transform: translateX(-50%) scale(1.06); }
  12%, 88% { opacity: 1; transform: translateX(-50%) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) scale(0.96); }
}
@keyframes tip-fall { to { transform: translateY(110vh) rotate(260deg); } }
.tip-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tip-amounts button, .tip-amounts input {
  min-width: 0; padding: 10px 6px; border-radius: 12px; text-align: center; cursor: pointer;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); outline: none;
}
.tip-amounts button[aria-pressed="true"], .tip-amounts input:focus { border-color: var(--pink); box-shadow: 0 0 0 2px rgba(255, 62, 165, 0.35); }
.tip-anon { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--dim); }
.tip-card .primary:disabled { opacity: 0.5; cursor: not-allowed; }
.tip-status:empty { display: none; }

/* ── 城市：3D 畫面容器、換地點淡出 ───────────── */
#stage3d { position: absolute; inset: 0; touch-action: none; cursor: crosshair; }
#stage3d canvas { display: block; }
.fade { position: absolute; inset: 0; background: #07060d; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 5; }
.fade.on { opacity: 1; }
.emotes button i { font-style: normal; }
.emotes button.emo { opacity: 0.85; }
.tools .icon[hidden] { display: none; }
.dress-rule { margin: -6px 0 14px; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.5; color: #ffe9b0; background: rgba(229, 194, 122, 0.12); border: 1px solid rgba(229, 194, 122, 0.4); }

/* ── 對話框：門口、地圖、點燈、籤詩 ───────────── */
.dialog { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: rgba(4, 3, 10, 0.62); backdrop-filter: blur(3px); }
.dlg-card { width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 22px 20px; }
.dlg-card h2 { margin: 0; font-size: 22px; color: #fff; }
.dlg-desc { margin: 0; color: var(--dim); line-height: 1.6; font-size: 14px; }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.dlg-actions .primary { flex: 1 1 100%; }
.dlg-actions .ghost { flex: 1 1 0; padding: 12px; font-size: 14px; }
.dlg-input { width: 100%; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); outline: none; }
.dlg-input:focus { border-color: var(--cyan); }

.rules { padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(229, 194, 122, 0.45); background: rgba(229, 194, 122, 0.08); }
.rules.bad { border-color: rgba(255, 110, 130, 0.55); background: rgba(255, 80, 110, 0.07); }
.rules h3 { margin: 0 0 8px; font-size: 14px; color: #ffe9b0; }
.rules ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.rules li { display: grid; grid-template-columns: 18px 1fr; column-gap: 6px; line-height: 1.45; }
.rules li b { font-weight: 800; }
.rules li.yes b { color: var(--lime); }
.rules li.no b { color: #ff7a8a; }
.rules li em { grid-column: 2; font-style: normal; font-size: 12.5px; color: #ffd79a; }
.rules-sum { margin: 10px 0 0; font-size: 13px; color: var(--dim); }

.map-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.map-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; cursor: pointer; text-align: left; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.map-item:hover { border-color: var(--cyan); }
.map-item.here { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink) inset; }
.map-item i { font-style: normal; font-size: 24px; }
.map-item span { display: flex; flex-direction: column; min-width: 0; }
.map-item b { font-size: 15px; }
.map-item small { font-size: 11.5px; color: var(--dim); }
@media (max-width: 380px) { .map-list { grid-template-columns: 1fr; } }

.dlg-card.fortune { text-align: center; border-color: rgba(229, 194, 122, 0.6); box-shadow: 0 0 60px rgba(229, 194, 122, 0.25); }
.lot-grade { margin: 0; font-size: 28px; font-weight: 900; color: #ffd23e; letter-spacing: 0.1em; }
.lot-text { margin: 0; padding: 16px 10px; font-size: 20px; line-height: 1.7; color: #fff; font-family: "Noto Serif TC", "Songti TC", serif; border-top: 1px solid rgba(229, 194, 122, 0.35); border-bottom: 1px solid rgba(229, 194, 122, 0.35); }
.map-lang { margin: 4px 0 0; }

/* 3D 畫面：頭上的名字、泡泡、表情、門口招牌（CSS2DRenderer） */
.labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tag3d {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transform: translateY(-50%); pointer-events: none; white-space: nowrap;
}
.tag3d .nm { padding: 2px 8px; border-radius: 9px; font: 600 12px var(--body); background: rgba(7, 6, 13, 0.7); color: #f4f0ff; }
.tag3d .nm[hidden] { display: none; }
.tag3d .bb {
  max-width: 180px; white-space: normal; overflow-wrap: anywhere; text-align: center;
  padding: 5px 9px; border-radius: 10px; font: 14px/1.3 var(--body);
  background: rgba(244, 240, 255, 0.95); color: #120818;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tag3d .bb[hidden] { display: none; }
.emo3d { font-size: 30px; pointer-events: none; }
.lbl3d {
  padding: 3px 11px; border-radius: 14px; border: 2px solid; background: rgba(7, 6, 13, 0.82);
  font: 800 16px system-ui, sans-serif; white-space: nowrap; pointer-events: none;
}
.door3d {
  padding: 4px 11px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(7, 6, 13, 0.75); color: #fff; font: 600 13px var(--body); white-space: nowrap; pointer-events: none;
}
.door3d.rules { border-color: #e5c27a; }
@media (max-width: 640px) {
  .tag3d .nm { font-size: 11px; }
  .tag3d .bb { font-size: 13px; max-width: 150px; }
  .door3d { font-size: 11px; padding: 3px 8px; }
}

/* ── 錢包、百貨公司、餐廳 ───────────── */
.chip.coin { cursor: pointer; color: #ffd86a; border-color: rgba(255, 216, 106, 0.45); font-weight: 700; font-variant-numeric: tabular-nums; }
.chip.coin.bump { animation: coinbump 0.5s ease; }
@keyframes coinbump { 30% { transform: scale(1.18); color: #fff3b0; } }
.chip.coin[hidden] { display: none; }
.lk-opts button.locked { opacity: 0.55; border-style: dashed; }
.lk-opts button.locked small { font-size: 10.5px; color: #ffd86a; }
.lk-sw.locked { opacity: 0.35; position: relative; }
.lk-sw.locked::after { content: "🔒"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; }
.shop-note { margin: -4px 0 14px; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.5; color: #ffe9b0; background: rgba(255, 216, 106, 0.08); border: 1px solid rgba(255, 216, 106, 0.3); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.shop-note[hidden] { display: none; }
.shop-note .ghost.small { flex: 0 0 auto; padding: 6px 12px; font-size: 13px; border-radius: 999px; }
.shop-top { display: flex; gap: 14px; align-items: center; }
.shop-preview { flex: 0 0 auto; border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line); }
.shop-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.shop-name { font-size: 20px; color: #fff; }
.shop-price { margin: 0; font-size: 17px; color: #ffd86a; font-weight: 700; }
.shop-coins { margin: 0; font-size: 13px; color: var(--dim); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.shop-item { display: flex; align-items: center; gap: 6px; padding: 9px 10px; border-radius: 12px; cursor: pointer; text-align: left; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.shop-item span { flex: 1; font-size: 14px; }
.shop-item small { font-size: 12px; color: #ffd86a; }
.shop-item.have small { color: var(--lime); }
.shop-item.on { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink) inset; }
.shop-sw { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; border: 1px solid rgba(255, 255, 255, 0.4); }
.dlg-actions .primary:disabled { opacity: 0.5; cursor: not-allowed; }
.wallet-big { margin: 0; font-size: 38px; font-weight: 800; color: #ffd86a; text-align: center; font-variant-numeric: tabular-nums; }
.wallet-big::before { content: "🪙 "; }
.earn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.earn-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); }
.earn-list b { color: #ffd86a; white-space: nowrap; }
.dlg-desc.small { font-size: 12px; }
.menu-list { display: flex; flex-direction: column; gap: 6px; }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; cursor: pointer; text-align: left; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.menu-item:hover:not(:disabled) { border-color: var(--cyan); }
.menu-item:disabled { opacity: 0.5; cursor: default; }
.menu-item i { font-style: normal; font-size: 24px; }
.menu-item span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.menu-item b { font-size: 15px; }
.menu-item small { font-size: 11.5px; color: var(--dim); }
.menu-item em { font-style: normal; color: #ffd86a; font-weight: 700; white-space: nowrap; }

/* ── 打工 ── */
.job-mine { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-radius: 12px; background: rgba(255, 210, 62, 0.08); border: 1px dashed rgba(255, 210, 62, 0.4); font-size: 13px; margin-bottom: 8px; }
.job-mine span { flex: 1; min-width: 0; }
.job-list { display: flex; flex-direction: column; gap: 6px; max-height: 48vh; overflow-y: auto; }
.job-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); flex-wrap: wrap; }
.job-item i { font-style: normal; font-size: 24px; }
.job-item > span { flex: 1; display: flex; flex-direction: column; min-width: 140px; }
.job-item b { font-size: 15px; }
.job-item small { font-size: 11.5px; color: var(--dim); }
.job-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.job-btns button:disabled { opacity: 0.55; cursor: default; }
.staff-card .dlg-actions { flex-wrap: wrap; }
.cheki-img { display: block; width: min(240px, 70vw); margin: 4px auto 10px; border-radius: 4px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45); transform: rotate(-2deg); }
.cheki-flash { position: fixed; inset: 0; z-index: 60; background: #fff; pointer-events: none; animation: chekiFlash 0.6s ease-out forwards; }
@keyframes chekiFlash { from { opacity: 0.9; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cheki-flash { animation-duration: 0.2s; opacity: 0.3; } }
