/* =====================================================================
   摸鱼游戏厅：场景 + 街机弹层
   ===================================================================== */
.room.is-arcade { --accent: #B58CFF; }

/* ---------- 大厅卡片 ---------- */
.room-card-arcade .room-art { background: #241642; }
.room-card-arcade .room-badge { background: #FFE45C; }

/* ---------- 大厅：今日风云榜 ---------- */
.hall { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 10px 14px; border: var(--line) solid var(--ink); border-radius: 16px; background: #2B2A33; box-shadow: 4px 4px 0 var(--coral); }
.hall-title { flex: 0 0 auto; color: #FFE45C; font-size: 15px; white-space: nowrap; }
.hall-list { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.hall-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 2px solid var(--ink); border-radius: 999px;
  background: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; color: var(--ink);
}
button.hall-chip { cursor: pointer; transition: transform 0.12s ease; }
button.hall-chip:hover { transform: translateY(-2px); background: #FFE45C; }
.hall-chip i { font-style: normal; font-size: 15px; }
.hall-chip b { max-width: 9em; overflow: hidden; text-overflow: ellipsis; color: #B2401F; }
.hall-chip em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.hall-chip.is-cta { background: #FFE45C; }
@media (max-width: 640px) { .hall { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* ---------- 场景：深色墙 + 街机厅地毯 ---------- */
.scene-arcade .bg {
  background:
    linear-gradient(#FF5FA2, #FF5FA2) 0 15% / 100% 6px no-repeat,
    linear-gradient(#5CF2E3, #5CF2E3) 0 calc(15% + 10px) / 100% 3px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 70px),
    linear-gradient(#1A0F2E 0 15.6%, transparent 15.6%),
    #2A1B4A;
}
.scene-arcade .floor {
  left: 0; right: 0; top: 16%; bottom: 0;
  /* 街机厅地毯：小圆点、小三角、小波浪，淡淡地铺一层 */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='200'%3E%3Ccircle cx='30' cy='36' r='7' fill='%23FF5FA2'/%3E%3Cpath d='M130 30l11 18h-22z' fill='%235CF2E3'/%3E%3Cpath d='M70 120q8-12 16 0t16 0' fill='none' stroke='%23FFE45C' stroke-width='5' stroke-linecap='round'/%3E%3Crect x='168' y='126' width='14' height='14' rx='3' fill='%23B58CFF' transform='rotate(20 175 133)'/%3E%3Ccircle cx='196' cy='66' r='4' fill='%23FFE45C'/%3E%3Ccircle cx='20' cy='166' r='4' fill='%235CF2E3'/%3E%3C/svg%3E") 0 0 / 220px 200px;
  opacity: 0.34;
}

/* 天花板射灯打在地毯上的光斑 */
.arc-spots { inset: 0; pointer-events: none; }
.arc-spots i {
  position: absolute; width: 420px; height: 190px; margin: -95px 0 0 -210px; border-radius: 50%;
  background: radial-gradient(ellipse, var(--c) 0, transparent 68%);
  opacity: 0.2; animation: arc-spot 5.6s ease-in-out infinite; animation-delay: var(--d);
}
@keyframes arc-spot { 50% { opacity: 0.08; } }

.arc-neon {
  left: 50%; top: 1.4%; width: 500px; margin-left: -250px; z-index: 5; pointer-events: none;
  padding: 10px 18px 12px; border: 4px solid #0E0718; border-radius: 18px; background: #0E0718; text-align: center;
  box-shadow: 0 0 0 3px #FFE45C, 0 0 44px rgba(255, 228, 92, 0.5);
}
.arc-neon b { display: block; font-size: 50px; font-weight: 900; letter-spacing: 0.1em; line-height: 1.15; color: #FFE45C; text-shadow: 0 0 8px #FFE45C, 0 0 24px #FF9D3C; animation: neon-flicker 6s infinite; }
.arc-neon span { display: block; font-size: 20px; font-weight: 900; letter-spacing: 0.24em; color: #5CF2E3; text-shadow: 0 0 8px #5CF2E3; }

.arc-led {
  right: 2.5%; top: 1.2%; width: 330px; z-index: 5; pointer-events: none;
  padding: 10px 12px 8px; border: 4px solid var(--ink); border-radius: 14px; background: #0B0B12;
  box-shadow: 0 0 26px rgba(92, 242, 227, 0.35);
}
.arc-led-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.arc-led-head b { font-size: 17px; letter-spacing: 0.16em; color: #FFE45C; }
.arc-led-head i { width: 10px; height: 10px; border-radius: 50%; background: #FF5FA2; box-shadow: 0 0 8px #FF5FA2; animation: twinkle 1.2s infinite; }
.arc-led-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.arc-led-list li { display: flex; align-items: center; gap: 8px; padding: 2px 8px; border-radius: 6px; background: #17172A; color: #fff; font-size: 15px; font-weight: 800; }
.arc-led-list em { font-style: normal; font-size: 16px; }
.arc-led-list span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arc-led-list b { font: 900 15px var(--mono); color: #5CF2E3; }
.arc-led small { display: block; margin-top: 5px; font-size: 11px; font-weight: 700; color: #8E8AA8; text-align: center; }

.arc-shelf {
  left: 2.5%; top: 1.4%; width: 330px; z-index: 5; cursor: pointer;
  padding: 8px 12px 10px; border: 4px solid var(--ink); border-radius: 14px; background: #3A2466;
}
.arc-shelf b { display: block; margin-bottom: 6px; font-size: 14px; letter-spacing: 0.08em; color: #FFD1E6; }
.arc-shelf-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.arc-shelf-grid i {
  display: grid; place-items: center; height: 44px; border: 3px solid var(--ink); border-radius: 10px;
  background: #24163F; font-style: normal; font-size: 24px; filter: grayscale(1) brightness(0.45);
}
.arc-shelf-grid i.got { background: #FFF3C4; filter: none; box-shadow: 0 0 12px rgba(255, 228, 92, 0.6); }

.arc-tips { left: 21%; right: 21%; top: 12.2%; z-index: 5; display: flex; justify-content: space-between; }
.arc-tips span { padding: 2px 10px; border: 2px solid var(--ink); border-radius: 6px; background: #FFE45C; font-size: 12px; font-weight: 900; rotate: -1.5deg; cursor: pointer; }
.arc-tips span:nth-child(2) { rotate: 1.2deg; background: #C9FFF8; }

.arc-mat {
  left: 50%; top: 95.4%; width: 300px; margin-left: -150px; padding: 5px 0; z-index: 3; pointer-events: none;
  border: 3px solid var(--ink); border-radius: 10px; background: #FF5FA2; color: #fff; text-align: center; font-size: 14px; font-weight: 900; letter-spacing: 0.2em;
}
.scene .ad-arcade { z-index: 5; }

/* ---------- 街机 ---------- */
.scene-arcade .seat::before { left: -52px; top: -206px; width: 104px; height: 216px; }
.scene-arcade .seat .leg, .scene-arcade .seat .arm { display: block; }
.scene-arcade .seat .occupant { --top: 208px; }
.scene-arcade .sit-tip { top: -236px; }

.cab {
  left: -50px; top: -204px; width: 100px; height: 186px; pointer-events: none;
  border: 4px solid var(--ink); border-radius: 16px 16px 8px 8px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0 10%, transparent 10% 90%, rgba(0, 0, 0, 0.18) 90%), var(--cab, #FF6B4A);
  box-shadow: 0 12px 0 -3px rgba(0, 0, 0, 0.4);
}
.cab > * { position: absolute; }
.cab-top {
  left: 6px; right: 6px; top: 6px; height: 26px; overflow: hidden;
  border: 3px solid var(--ink); border-radius: 8px; background: #0E0718;
  color: #FFE45C; font-size: 13px; font-weight: 900; line-height: 20px; text-align: center; white-space: nowrap;
  text-shadow: 0 0 6px rgba(255, 228, 92, 0.8);
}
.cab-screen {
  left: 8px; right: 8px; top: 38px; height: 72px; overflow: hidden; display: grid; place-items: center;
  border: 3px solid var(--ink); border-radius: 8px; background: #0E0A1E;
}
.cab-screen span { position: relative; font-size: 34px; line-height: 1; animation: cab-attract 2.4s ease-in-out infinite; }
.cab-glow { position: absolute; inset: 0; background: repeating-linear-gradient(rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 5px), radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--cab) 55%, transparent), transparent 75%); }
.cab-panel { left: -6px; right: -6px; top: 116px; height: 26px; border: 4px solid var(--ink); border-radius: 8px; background: #2B2A33; }
.cab-panel::before { content: ""; position: absolute; left: 16px; top: -9px; width: 6px; height: 16px; border-radius: 3px; background: var(--ink); box-shadow: 0 -5px 0 3px #E8483A; }
.cab-panel::after { content: ""; position: absolute; right: 14px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #FFE45C; box-shadow: -18px 0 0 #5CF2E3, -36px 0 0 #FF5FA2; }
@keyframes cab-attract { 50% { scale: 1.16; rotate: -6deg; } }

.scene-arcade .seat.is-open:hover .cab { translate: 0 -4px; box-shadow: 0 16px 0 -3px rgba(0, 0, 0, 0.4), 0 0 26px var(--cab); }
.scene-arcade .seat.is-open:hover .cab-screen { background: #1B1440; }
.scene-arcade .seat.occupied .cab-screen span { animation: none; }
.scene-arcade .seat.is-playing .cab-screen { animation: cab-play 0.5s steps(2) infinite; }
.scene-arcade .seat.is-playing .cab-screen span { animation: cab-attract 0.4s ease-in-out infinite; }
.scene-arcade .seat.is-playing .av { animation: cab-mash 0.32s ease-in-out infinite; }
.scene-arcade .seat.is-playing .cab { box-shadow: 0 12px 0 -3px rgba(0, 0, 0, 0.4), 0 0 30px var(--cab); }
@keyframes cab-play { 50% { background: color-mix(in srgb, var(--cab) 45%, #0E0A1E); } }
@keyframes cab-mash { 50% { translate: 0 -3px; rotate: 2deg; } }

/* ---------- 抓娃娃机 / 兑币机 ---------- */
.claw-machine, .coin-machine {
  width: 150px; height: 196px; margin: -196px 0 0 -75px; cursor: pointer; pointer-events: auto;
  border: 4px solid var(--ink); border-radius: 14px 14px 8px 8px; background: #FF5FA2;
  box-shadow: 0 12px 0 -3px rgba(0, 0, 0, 0.4); transition: translate 0.15s ease, box-shadow 0.15s ease;
}
.claw-machine:hover { translate: 0 -4px; box-shadow: 0 16px 0 -3px rgba(0, 0, 0, 0.4), 0 0 28px #FF5FA2; }
.claw-machine > *, .coin-machine > * { position: absolute; }
.claw-machine b, .coin-machine b { left: 8px; right: 8px; top: 6px; height: 24px; border: 3px solid var(--ink); border-radius: 8px; background: #0E0718; color: #FFE45C; font-size: 13px; line-height: 18px; text-align: center; }
.claw-glass { left: 10px; right: 10px; top: 36px; height: 104px; overflow: hidden; border: 3px solid var(--ink); border-radius: 8px; background: linear-gradient(135deg, #FFF7FB 0 40%, #FFE1EF 40% 60%, #FFF7FB 60%); }
.claw-glass span { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-size: 26px; letter-spacing: 2px; }
.claw-arm { position: absolute; left: 50%; top: 0; width: 4px; height: 34px; margin-left: -2px; background: var(--ink); animation: claw-swing 3.2s ease-in-out infinite alternate; }
.claw-arm::after { content: ""; position: absolute; left: -10px; bottom: -14px; width: 24px; height: 16px; border: 4px solid var(--ink); border-bottom: 0; border-radius: 12px 12px 0 0; }
@keyframes claw-swing { from { translate: -42px 0; } to { translate: 42px 0; } }
.claw-machine em, .coin-machine em { left: 0; right: 0; bottom: 14px; text-align: center; font-style: normal; font-size: 13px; font-weight: 900; color: #fff; }
.coin-machine { background: #5B8DEF; height: 170px; margin-top: -170px; }
.coin-machine i { left: 30px; right: 30px; top: 44px; height: 50px; border: 3px solid var(--ink); border-radius: 8px; background: #0E0718; }
.coin-machine i::after { content: "🪙"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; animation: cab-attract 2s ease-in-out infinite; }
.coin-machine em { font-size: 11px; }

/* ---------- 右侧操作栏 ---------- */
.arc-best { flex-direction: column; align-items: stretch !important; }
.arc-best-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.dock #gPlayBtn { white-space: normal; line-height: 1.25; }
.arc-best-list span { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 3px 0; border: 2px solid rgba(43, 42, 51, 0.2); border-radius: 10px; font-size: 16px; line-height: 1.2; }
.arc-best-list span.on { border-color: var(--ink); background: #F1E8FF; }
.arc-best-list b { font: 900 11px var(--mono); }
.toy-slots { grid-template-columns: repeat(6, 1fr); }
.toy-slots .latte-slot { border-radius: 10px; }
.toy-slots .latte-slot.got { background: #FFF3C4; }

/* =====================================================================
   街机弹层
   ===================================================================== */
.gbox {
  position: absolute; inset: 0; z-index: 88; display: grid; place-items: center; padding: 12px;
  background: rgba(20, 12, 36, 0.72); backdrop-filter: blur(3px); animation: gbox-in 0.2s ease;
}
@keyframes gbox-in { from { opacity: 0; } }
.gbox-card {
  display: flex; flex-direction: column; max-width: 100%; max-height: 100%;
  border: 4px solid var(--ink); border-radius: 26px; background: var(--cab, #FF6B4A);
  box-shadow: 8px 8px 0 var(--ink), 0 0 60px color-mix(in srgb, var(--cab) 60%, transparent);
  animation: gbox-pop 0.28s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes gbox-pop { from { scale: 0.9; opacity: 0; } }
.gbox-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px 8px 18px; }
.gbox-head b { padding: 2px 14px; border: 3px solid var(--ink); border-radius: 10px; background: #0E0718; color: #FFE45C; font-size: 20px; letter-spacing: 0.08em; text-shadow: 0 0 8px rgba(255, 228, 92, 0.7); white-space: nowrap; }
.gbox-head span { flex: 1; font-size: 12px; font-weight: 800; opacity: 0.8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gbox-x { width: 36px; height: 36px; border: 3px solid var(--ink); border-radius: 50%; background: #fff; font-size: 20px; font-weight: 900; line-height: 1; box-shadow: 2px 2px 0 var(--ink); }
.gbox-x:hover { background: #FFE45C; }
.gbox-main { display: flex; align-items: flex-start; gap: 12px; padding: 0 14px 14px; min-height: 0; }
.gbox-screen { position: relative; flex: 0 0 auto; border: 4px solid var(--ink); border-radius: 16px; overflow: hidden; background: #0E0A1E; line-height: 0; }
.gbox-screen canvas { display: block; height: min(520px, calc(100dvh - 120px)); aspect-ratio: 360 / 520; touch-action: none; cursor: pointer; user-select: none; }
.gbox[data-game="boss"] canvas { cursor: none; }
.gbox-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 3px); }

.gbox-cover {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 18px; background: rgba(14, 10, 30, 0.86); color: #fff; text-align: center; line-height: 1.5;
}
.gcover-ico { font-style: normal; font-size: 60px; line-height: 1; animation: cab-attract 2s ease-in-out infinite; }
.gbox-cover h3 { margin: 0; font-size: 30px; font-weight: 900; color: #FFE45C; text-shadow: 0 0 12px rgba(255, 228, 92, 0.5); }
.gbox-cover ul { margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 700; }
.gbox-cover li { margin: 3px 0; }
.gbox-cover p { margin: 0; font-size: 14px; font-weight: 700; }
.gbox-cover small { font-size: 12px; opacity: 0.7; }
.gbox-cover .btn { font-size: 17px; padding: 10px 22px; color: var(--ink); --accent: #FFE45C; }
.gcover-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.gres-verdict { color: #5CF2E3; font-size: 15px !important; }
.gres-champ { color: #FFE45C; }
.gres-coin { color: #FFE45C; font-size: 18px; }

.gbox-side { display: flex; flex-direction: column; gap: 10px; width: 230px; min-height: 0; align-self: stretch; max-height: calc(min(520px, 100dvh - 120px) + 8px); }
.gbox-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gbox-stats div, .gbox-board, .gbox-coins { border: 3px solid var(--ink); border-radius: 14px; background: #fff; }
.gbox-stats div { padding: 6px 8px; text-align: center; }
.gbox-stats span { display: block; font-size: 11px; font-weight: 800; color: var(--muted); }
.gbox-stats b { font: 900 20px var(--mono); }
.gbox-board { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 12px; scrollbar-width: thin; }
.gbox-board > b { display: block; margin-bottom: 6px; font-size: 14px; }
.gbox-board ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.gbox-board li { display: flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 8px; background: #F6F0E6; font-size: 13px; font-weight: 800; }
.gbox-board li.me { background: #FFE45C; }
.gbox-board li em { flex: 0 0 22px; font-style: normal; text-align: center; }
.gbox-board li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gbox-board li b { font-family: var(--mono); }
.gbox-board p { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.gbox-coins { margin: 0; padding: 8px; text-align: center; font-size: 14px; font-weight: 800; }
.gtoys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.gtoys span { display: flex; flex-direction: column; align-items: center; padding: 4px 1px; min-width: 0; border: 2px dashed rgba(43, 42, 51, 0.3); border-radius: 10px; color: #aaa; text-align: center; }
.gtoys span.got { border: 2px solid var(--ink); background: #FFF3C4; color: var(--ink); }
.gtoys span.got.tier-稀有 { box-shadow: 0 0 0 2px #9B7BF0; }
.gtoys span.got.tier-史诗 { box-shadow: 0 0 0 2px #E86AA6; }
.gtoys span.got.tier-传说 { box-shadow: 0 0 0 3px #FFD23F, 0 0 12px #FFD23F; }
.gtoys i { font-style: normal; font-size: 22px; line-height: 1.2; }
.gtoys em { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-size: 10px; font-weight: 900; }
.gtoys small { font-size: 10px; font-weight: 700; opacity: 0.7; }

@media (max-width: 700px) {
  .gbox { padding: 6px; }
  .gbox-main { flex-direction: column; align-items: center; padding: 0 8px 8px; gap: 8px; }
  .gbox-screen canvas { height: min(520px, calc(100dvh - 230px)); }
  .gbox-side { width: 100%; flex-direction: row; max-height: 96px; }
  .gbox-stats { grid-template-columns: 1fr; flex: 0 0 104px; gap: 4px; }
  .gbox-stats div { padding: 2px 6px; }
  .gbox-stats b { font-size: 15px; }
  .gbox-board { padding: 6px 8px; }
  .gbox-coins { display: none; }
  .gtoys { grid-template-columns: repeat(4, 1fr); }
  .gbox-head span { display: none; }
  .gbox-head b { font-size: 17px; }
}

/* =====================================================================
   多人局「老板抓摸鱼」
   ===================================================================== */
.hunt-booth {
  width: 300px; height: 150px; margin: -150px 0 0 -150px; cursor: pointer; pointer-events: auto;
  border: 4px solid var(--ink); border-radius: 18px 18px 8px 8px; background: #2E2E3A;
  box-shadow: 0 12px 0 -3px rgba(0, 0, 0, 0.4); transition: translate 0.15s ease, box-shadow 0.15s ease;
}
.hunt-booth:hover, .hunt-booth.is-live { translate: 0 -4px; box-shadow: 0 16px 0 -3px rgba(0, 0, 0, 0.4), 0 0 32px #FF6B4A; }
.hunt-booth.is-live { animation: hb-pulse 1.2s ease-in-out infinite; }
@keyframes hb-pulse { 50% { box-shadow: 0 16px 0 -3px rgba(0, 0, 0, 0.4), 0 0 50px #FFE45C; } }
.hunt-booth > * { position: absolute; }
.hunt-booth b { left: 10px; right: 10px; top: 6px; height: 26px; border: 3px solid var(--ink); border-radius: 8px; background: #0E0718; color: #FF6B4A; font-size: 15px; line-height: 20px; text-align: center; letter-spacing: 0.1em; text-shadow: 0 0 8px #FF6B4A; }
.hb-screen { left: 12px; right: 12px; top: 38px; height: 62px; overflow: hidden; border: 3px solid var(--ink); border-radius: 8px; background: #0E0A1E; display: flex; align-items: center; justify-content: space-around; font-style: normal; }
.hb-boss { font-size: 32px; animation: hb-look 4s steps(1) infinite; }
@keyframes hb-look { 0% { scale: 1 1; } 50% { scale: -1 1; } }
.hb-fish { font-size: 20px; letter-spacing: 2px; }
.hunt-booth em { left: 0; right: 0; bottom: 12px; text-align: center; font-style: normal; font-size: 14px; font-weight: 900; color: #FFE45C; }
.act.hunt-dock { background: #FF6B4A; color: #fff; }

.hunt-invite {
  position: absolute; left: 50%; top: 92px; z-index: 60; translate: -50% 0;
  padding: 8px 16px; border: 3px solid var(--ink); border-radius: 999px; background: #FFE45C;
  font-size: 14px; font-weight: 900; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; animation: hi-bob 1.4s ease-in-out infinite;
}
.hunt-invite b { margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: #FF6B4A; color: #fff; }
@keyframes hi-bob { 50% { translate: -50% -4px; } }

.hbox {
  position: absolute; inset: 0; z-index: 88; display: grid; place-items: center; padding: 12px;
  background: rgba(20, 12, 36, 0.72); backdrop-filter: blur(3px); animation: gbox-in 0.2s ease;
}
.hbox-card {
  display: flex; flex-direction: column; width: min(760px, 100%); max-height: 100%;
  border: 4px solid var(--ink); border-radius: 26px; background: #FF6B4A;
  box-shadow: 8px 8px 0 var(--ink), 0 0 60px rgba(255, 107, 74, 0.5); animation: gbox-pop 0.28s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.hstage { position: relative; margin: 0 14px; min-height: 320px; overflow: hidden; border: 4px solid var(--ink); border-radius: 16px; background: #F6F0E6; }
.h-office { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #3A3A4A; border-bottom: 4px solid var(--ink); color: #fff; }
.h-boss { position: relative; display: flex; align-items: center; gap: 10px; }
.h-bface { font-style: normal; font-size: 54px; line-height: 1; transition: scale 0.15s; }
.hbox[data-turn="warn"] .h-bface { animation: h-shake 0.15s linear infinite; }
.hbox[data-turn="look"] .h-bface { scale: 1.25; filter: drop-shadow(0 0 12px #FF3B30); }
@keyframes h-shake { 50% { translate: 3px 0; } }
.h-boss b { font-size: 16px; }
.h-bsay {
  position: absolute; left: 62px; top: -8px; padding: 3px 10px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 900; white-space: nowrap; opacity: 0;
}
.h-bsay.show { animation: h-say 1.8s ease forwards; }
@keyframes h-say { 0% { opacity: 0; translate: 0 6px; } 12%, 80% { opacity: 1; translate: 0 0; } 100% { opacity: 0; } }
.h-meta { display: flex; align-items: center; gap: 14px; }
.h-timer { font: 900 30px var(--mono); color: #FFE45C; min-width: 70px; text-align: right; }
.h-noise { display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 800; color: #ccc; }
.h-noise i { display: block; width: 120px; height: 12px; border: 2px solid #000; border-radius: 6px; background: #222; overflow: hidden; }
.h-noise b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #5CF2E3, #FFE45C, #FF3B30); transition: width 0.3s; }
.h-desks { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; padding: 14px; max-height: 46vh; overflow-y: auto; }
.h-empty { grid-column: 1 / -1; margin: 20px 0; text-align: center; font-weight: 800; color: var(--muted); }
.h-desk { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; text-align: center; }
.h-desk i { font-style: normal; font-size: 30px; line-height: 1.1; }
.h-desk b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.h-desk span { font-size: 11px; }
.h-desk em { font: 900 14px var(--mono); font-style: normal; color: #B2401F; }
.h-desk small { position: absolute; top: -9px; right: -6px; padding: 0 6px; border: 2px solid var(--ink); border-radius: 999px; background: #FFE45C; font-size: 10px; font-weight: 900; }
.h-desk.me { box-shadow: 0 0 0 3px #FFE45C; }
.h-desk.slack { background: #DFFCF8; }
.h-desk.slack i { animation: h-wiggle 0.5s ease-in-out infinite; }
@keyframes h-wiggle { 50% { rotate: 10deg; } }
.h-desk.boss { background: #3A3A4A; color: #fff; }
.h-desk.out { opacity: 0.5; filter: grayscale(1); }
.h-desk.caught { animation: h-caught 0.6s ease 2; background: #FFD6D1; }
@keyframes h-caught { 25% { translate: -5px 0; } 75% { translate: 5px 0; } }
/* 老板视角：看不到谁在摸鱼，只听得见动静 */
.hbox.is-boss-view .h-desk.slack { background: #fff; }
.hbox.is-boss-view .h-desk.slack i { animation: none; visibility: hidden; }
.hbox.is-boss-view .h-desk.slack i::after { content: "💻"; visibility: visible; }
.h-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.h-flash.red.go { background: rgba(255, 59, 48, 0.35); animation: h-flash 0.6s ease; }
@keyframes h-flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.h-res { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; background: rgba(14, 10, 30, 0.9); color: #fff; text-align: center; }
.h-res h3 { margin: 0; font-size: 24px; color: #FFE45C; }
.h-res p { margin: 0; font-weight: 700; }
.h-res ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; width: min(320px, 100%); }
.h-res li { display: flex; gap: 8px; padding: 3px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); font-weight: 800; }
.h-res li.me { background: #FFE45C; color: var(--ink); }
.h-res li span { flex: 1; text-align: left; }
.h-res li em { font-style: normal; }
.h-coin { color: #FFE45C; font-size: 18px; }
.h-res small { opacity: 0.7; }
.h-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 12px 14px 14px; }
.h-ctl .act.big { font-size: 16px; padding: 10px 20px; }
.h-ctl .act[disabled] { opacity: 0.45; }
.h-tip { font-weight: 900; color: #fff; }
.h-slack {
  width: min(420px, 100%); padding: 16px; border: 4px solid var(--ink); border-radius: 18px; background: #FFE45C;
  font-size: 22px; font-weight: 900; box-shadow: 4px 4px 0 var(--ink); touch-action: none; user-select: none; cursor: pointer;
}
.h-slack small { display: block; font-size: 12px; opacity: 0.7; }
.h-slack.on { background: #5CF2E3; translate: 2px 2px; box-shadow: 2px 2px 0 var(--ink); }
.hbox[data-turn="warn"] .h-slack.on { background: #FF6B4A; color: #fff; animation: h-shake 0.12s linear infinite; }
@media (max-width: 700px) {
  .hbox { padding: 6px; }
  .h-bface { font-size: 40px; }
  .h-noise { display: none; }
  .h-desks { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; padding: 8px; }
}
.hbox [data-secs] { font-style: normal; }

/* =====================================================================
   多人对战台：抢红包 / 部门拔河 / 摸鱼大作战
   ===================================================================== */
.pvp-booth {
  position: absolute; width: 300px; height: 150px; margin: -150px 0 0 -150px; cursor: pointer; pointer-events: auto;
  border: 4px solid var(--ink); border-radius: 18px 18px 8px 8px; background: #1F3A5F;
  box-shadow: 0 12px 0 -3px rgba(0, 0, 0, 0.4); transition: translate 0.15s ease, box-shadow 0.15s ease;
}
.pvp-booth:hover, .pvp-booth.is-live { translate: 0 -4px; box-shadow: 0 16px 0 -3px rgba(0, 0, 0, 0.4), 0 0 32px #5CF2E3; }
.pvp-booth.is-live { animation: hb-pulse 1.2s ease-in-out infinite; }
.pvp-booth > * { position: absolute; }
.pvp-booth b { left: 10px; right: 10px; top: 6px; height: 26px; border: 3px solid var(--ink); border-radius: 8px; background: #0E0718; color: #5CF2E3; font-size: 15px; line-height: 20px; text-align: center; letter-spacing: 0.1em; text-shadow: 0 0 8px #5CF2E3; }
.pb-screen { left: 12px; right: 12px; top: 38px; height: 62px; border: 3px solid var(--ink); border-radius: 8px; background: #0E0A1E; display: flex; align-items: center; justify-content: space-around; font-style: normal; }
.pb-screen span { font-size: 30px; animation: cab-attract 2.4s ease-in-out infinite; }
.pb-screen span:nth-child(2) { animation-delay: 0.4s; }
.pb-screen span:nth-child(3) { animation-delay: 0.8s; }
.pvp-booth em { left: 0; right: 0; bottom: 12px; text-align: center; font-style: normal; font-size: 14px; font-weight: 900; color: #FFE45C; }
.act.pvp-dock { background: #1F3A5F; color: #fff; }
.pv-invite { top: 140px; background: #C9FFF8; }

.pbox { position: absolute; inset: 0; z-index: 88; display: grid; place-items: center; padding: 12px; background: rgba(20, 12, 36, 0.72); backdrop-filter: blur(3px); animation: gbox-in 0.2s ease; }
.pbox-card { display: flex; flex-direction: column; width: min(980px, 100%); max-height: 100%; border: 4px solid var(--ink); border-radius: 26px; background: var(--pv, #B58CFF); box-shadow: 8px 8px 0 var(--ink); animation: gbox-pop 0.28s cubic-bezier(0.2, 1.4, 0.4, 1); }
.pv-timer { font: 900 22px var(--mono); font-style: normal; color: #fff; text-shadow: 0 2px 0 var(--ink); }
.pv-body { margin: 0 14px 14px; min-height: 360px; overflow: auto; border: 4px solid var(--ink); border-radius: 16px; background: #FFF8EC; }
.pv-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; }
.pv-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 12px; border: 4px solid var(--ink); border-radius: 18px; background: #fff; box-shadow: 4px 4px 0 var(--c); cursor: pointer; text-align: center; transition: translate 0.12s; }
.pv-card:hover { translate: 0 -4px; background: color-mix(in srgb, var(--c) 14%, #fff); }
.pv-card i { font-style: normal; font-size: 54px; }
.pv-card b { font-size: 22px; }
.pv-card p { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.pv-card small { font-size: 12px; font-weight: 900; color: var(--c); }
.pv-lobby, .pv-res { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; text-align: center; }
.pv-desc { margin: 0; font-size: 15px; font-weight: 800; color: var(--muted); }
.pv-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pv-chips span { padding: 4px 12px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 800; }
.pv-chips span.me { background: #FFE45C; }
.pv-count b { font: 900 34px var(--mono); color: var(--pv); }
.pv-res h3 { margin: 0; font-size: 28px; }
.pv-res ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; width: min(420px, 100%); }
.pv-res li, .pv-side li { display: flex; gap: 8px; padding: 4px 10px; border-radius: 8px; background: #F3E8D6; font-weight: 800; }
.pv-res li.me, .pv-side li.me { background: #FFE45C; }
.pv-res li span, .pv-side li span { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-res li em, .pv-side li em { font-style: normal; }
.pv-res small i { font-style: normal; }
.pv-play { display: flex; gap: 12px; padding: 12px; }
.pv-side { flex: 0 0 200px; margin: 0; padding: 0; list-style: none; display: grid; align-content: start; gap: 4px; font-size: 13px; }
.rp-arena { position: relative; flex: 1; height: min(520px, 62dvh); border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #FF8A7A, #B8231C); touch-action: none; }
.rp-hint { position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; text-align: center; color: rgba(255, 255, 255, 0.75); font-weight: 900; }
.rp-pack {
  position: absolute; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; padding: 4px 6px; border: 0; background: none; cursor: pointer;
  animation: rp-in 0.25s cubic-bezier(0.2, 1.6, 0.4, 1), rp-fade var(--life) linear forwards;
}
.rp-pack i { font-style: normal; font-size: 46px; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.25)); }
.rp-pack b { padding: 0 6px; border: 2px solid var(--ink); border-radius: 999px; background: #FFE45C; font-size: 12px; white-space: nowrap; }
.rp-pack.k-big i { font-size: 60px; animation: ktv-pump 0.25s ease-in-out infinite alternate; }
.rp-pack.k-fine b { background: #ddd; }
.rp-pack.tapped { scale: 0.9; }
.rp-pack.taken { animation: rp-taken 0.7s ease forwards; pointer-events: none; }
.rp-pack.taken.good b { background: #4DFF9B; }
.rp-pack.taken.bad b { background: #FF6B4A; color: #fff; }
@keyframes rp-in { from { scale: 0.2; } }
@keyframes rp-fade { 0%, 70% { opacity: 1; } 100% { opacity: 0.15; } }
@keyframes rp-taken { to { translate: -50% -140%; opacity: 0; } }
.pv-tug { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px; }
.tug-teams { display: flex; justify-content: space-between; width: 100%; gap: 12px; }
.tug-team { flex: 1; display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; padding: 8px; border: 3px solid var(--ink); border-radius: 12px; }
.tug-team b { width: 100%; font-size: 20px; }
.tug-team span { padding: 1px 8px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-size: 12px; font-weight: 800; }
.tug-team span.me { background: #FFE45C; }
.tug-team.a { background: #FFE1DA; }
.tug-team.b { background: #DCE8FF; justify-content: flex-end; text-align: right; }
.tug-field { position: relative; width: 100%; height: 120px; border: 3px solid var(--ink); border-radius: 14px; background: linear-gradient(90deg, #FFB3A6 0 50%, #A9C6FF 50%); overflow: hidden; }
.tug-line { position: absolute; top: 0; bottom: 0; width: 6px; background: #fff; border-left: 2px dashed var(--ink); }
.tug-line.l { left: 20%; }
.tug-line.r { left: 80%; }
.tug-rope { --pos: 0; position: absolute; left: 5%; right: 5%; top: 54px; height: 10px; border-radius: 5px; background: repeating-linear-gradient(60deg, #C8875A 0 8px, #9A6236 8px 14px); border: 2px solid var(--ink); translate: calc(var(--pos) * -0.36%) 0; transition: translate 0.2s ease; }
.tug-knot { position: absolute; left: 50%; top: -18px; margin-left: -16px; font-size: 32px; font-style: normal; }
.tug-pull { position: absolute; top: -26px; font-size: 32px; animation: tug-lean 0.3s ease-in-out infinite alternate; }
.tug-pull.a { left: 4%; }
.tug-pull.b { right: 4%; }
@keyframes tug-lean { to { translate: 0 3px; rotate: -3deg; } }
.tug-rate { margin: 0; font-weight: 900; font-family: var(--mono); }
.tug-btn { width: min(460px, 100%); padding: 18px; border: 4px solid var(--ink); border-radius: 20px; font-size: 26px; font-weight: 900; box-shadow: 5px 5px 0 var(--ink); cursor: pointer; touch-action: manipulation; user-select: none; }
.tug-btn small { display: block; font-size: 13px; opacity: 0.8; }
.tug-btn.team-0 { background: #FF8A7A; }
.tug-btn.team-1 { background: #8AB4FF; }
.tug-btn.pressed { translate: 3px 3px; box-shadow: 2px 2px 0 var(--ink); }
.pv-fish { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; }
.pv-fish canvas { width: 100%; max-height: 64dvh; aspect-ratio: 1000 / 640; object-fit: contain; border: 3px solid var(--ink); border-radius: 14px; cursor: crosshair; touch-action: none; }
@media (max-width: 700px) {
  .pv-pick { grid-template-columns: 1fr; }
  .pv-play { flex-direction: column; }
  .pv-side { flex: none; grid-template-columns: 1fr 1fr; }
}
