:root {
  --ink: #2B2A33;
  --paper: #FFF7EC;
  --cream: #FFFBF5;
  --muted: #6E6A75;
  --coral: #FF6B4A;
  --sun: #FFC845;
  --mint: #3CC8B4;
  --sky: #6CC6FF;
  --plum: #9B7BF0;
  --line: 2.5px;
  --radius: 22px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100dvh;
  background:
    radial-gradient(rgba(43, 42, 51, 0.07) 1px, transparent 1.3px) 0 0 / 22px 22px,
    var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body:has(.room:not([hidden])) { overflow: hidden; }

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

kbd {
  display: inline-block;
  min-width: 20px;
  padding: 0 5px;
  border: 1.5px solid currentColor;
  border-radius: 6px;
  font: 700 11px/18px var(--mono);
  text-align: center;
  opacity: 0.85;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: var(--line) solid var(--ink);
  border-radius: 12px;
  padding: 8px 14px;
  background: #fff;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}

.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible, .act:focus-visible, .room-card:focus-within { outline: 3px solid var(--coral); outline-offset: 3px; }

.btn-boss { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--coral); }
.btn-boss:hover { box-shadow: 4px 4px 0 var(--coral); }
.btn-small { padding: 6px 12px; font-size: 13px; }

.card {
  background: #fff;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
}

/* ================= lobby ================= */

.lobby { min-height: 100dvh; padding-bottom: 12px; }

.topbar, .hero, .rooms, .partner, .rules {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  background: var(--coral);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-6deg);
}

.brand-mark svg { width: 32px; height: 32px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 21px; font-weight: 900; letter-spacing: 0.04em; }
.brand-text small { margin-top: 3px; font-size: 10px; font-weight: 700; letter-spacing: 0.22em; color: var(--muted); }

.topbar-live {
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
}

.topbar-live b { font-variant-numeric: tabular-nums; color: var(--coral); }

.live-dot {
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
  background: #2FCB71;
  box-shadow: 0 0 0 0 rgba(47, 203, 113, 0.6);
  animation: pulse 1.8s ease-out infinite;
}

.topbar-right { display: flex; align-items: center; gap: 12px; }

.offwork {
  padding: 7px 14px;
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  background: var(--sun);
  font-weight: 800;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
  gap: 48px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 36px;
}

.tag {
  display: inline-block;
  margin: 0;
  padding: 5px 14px;
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  background: #D8F5EF;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

h1 {
  margin: 18px 0 0;
  font-size: clamp(46px, 6.6vw, 86px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.hl {
  position: relative;
  color: var(--coral);
  background: linear-gradient(transparent 60%, var(--sun) 60% 90%, transparent 90%);
}

.lead {
  max-width: 30em;
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}

.hero-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 132px;
  padding: 12px 18px;
  border: var(--line) solid var(--ink);
  border-radius: 16px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}

.stat b { font-size: 28px; font-weight: 900; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; font-weight: 700; color: var(--muted); }
.stat-money b { color: var(--coral); }

.member {
  position: relative;
  padding: 22px;
  transform: rotate(1.4deg);
  background:
    linear-gradient(135deg, rgba(255, 200, 69, 0.18), transparent 40%),
    #fff;
}

.member::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.member-top { display: flex; justify-content: space-between; align-items: center; }
.member-label { font-size: 13px; font-weight: 800; letter-spacing: 0.16em; color: var(--muted); }

.locker {
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--sun);
  font: 800 15px var(--mono);
  letter-spacing: 0.08em;
}

.member-body { display: flex; gap: 18px; margin-top: 16px; }

.member-avatar {
  position: relative;
  flex: 0 0 108px;
  height: 128px;
  border: var(--line) solid var(--ink);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 110%, rgba(255, 107, 74, 0.25), transparent 60%),
    #FFF1DD;
  overflow: hidden;
}

.member-avatar .av { left: 50%; top: 128px; scale: 1.55; }

.member-fields { display: flex; flex-direction: column; gap: 14px; min-width: 0; flex: 1; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span:first-child { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: 0.06em; }
.field em { font-style: normal; font-weight: 500; opacity: 0.8; margin-left: 4px; }

.field-row { display: flex; gap: 8px; align-items: center; }

.field input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: var(--line) solid var(--ink);
  border-radius: 12px;
  background: var(--cream);
  font-weight: 700;
  outline: none;
}

.field input:focus { background: #fff; box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.35); }

.field-salary { margin-top: 18px; padding-top: 16px; border-top: 2px dashed rgba(43, 42, 51, 0.25); }
.money i { font-style: normal; font-weight: 800; color: var(--muted); }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; }

.swatches button {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--c);
  transition: transform 0.12s ease;
}

.swatches button:hover { transform: scale(1.12); }
.swatches button[aria-pressed="true"] { transform: scale(1.12); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }

.rooms { padding-top: 12px; }

.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: 32px; font-weight: 900; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }

.room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.room-card {
  --accent: var(--sky);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.room-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.room-card:hover .art-wind path { animation-duration: 0.8s; }

.room-card-ac { --accent: var(--sky); grid-column: span 2; }
.room-card-spring { --accent: var(--mint); }
.room-card-seeds { --accent: var(--sun); }
.room-card-nap { --accent: var(--plum); }
.room-card-roof { --accent: var(--coral); }

.room-card.is-full { opacity: 0.55; cursor: not-allowed; }
.room-card.is-full .btn-enter { pointer-events: none; }

.room-art {
  position: relative;
  height: 180px;
  border-bottom: var(--line) solid var(--ink);
  overflow: hidden;
}

.room-card-ac .room-art { height: 220px; background: linear-gradient(#CFEFFF 64%, #E9F6FF 64%); }
.room-art svg { display: block; width: 100%; height: 100%; }

.art-wind path { stroke-dasharray: 12 10; animation: dash 1.6s linear infinite; }

.room-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  transform: rotate(-5deg);
  box-shadow: 2px 2px 0 var(--ink);
}

.room-info { display: flex; flex-direction: column; flex: 1; padding: 16px 20px 20px; }
.room-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.room-title h3 { margin: 0; font-size: 26px; font-weight: 900; }
.room-sub { font-size: 13px; font-weight: 700; color: var(--muted); }
.room-desc { margin: 8px 0 0; font-size: 14px; line-height: 1.65; color: var(--muted); }

.room-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }

.room-tags li {
  padding: 3px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #F6F0E6;
  font-size: 12px;
  font-weight: 700;
}

.room-foot { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 18px; }
.room-meter { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.room-count { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }

.meter {
  height: 10px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #F3ECE1;
  overflow: hidden;
}

.meter i { display: block; width: 0; min-width: 4px; height: 100%; background: var(--accent); transition: width 0.4s ease; }

.btn-enter { background: var(--accent); }

.rules {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 40px;
  padding-top: 22px;
  padding-bottom: 28px;
  border-top: 2px dashed rgba(43, 42, 51, 0.2);
  font-size: 14px;
  color: var(--muted);
}

.rules b { color: var(--ink); font-weight: 900; }

/* ================= room shell ================= */

.room { position: fixed; inset: 0; overflow: hidden; }
.room.is-ac { --accent: var(--sky); }
.room.is-spring { --accent: var(--mint); }
.room.is-seeds { --accent: var(--sun); }
.room.is-nap { --accent: var(--plum); }
.room.is-roof { --accent: var(--coral); }

.hud {
  position: absolute;
  z-index: 20;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.hud > * { pointer-events: auto; }

.hud-back span { font-size: 20px; line-height: 0.8; margin-top: -2px; }

.hud-title {
  padding: 5px 16px 6px;
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  background: var(--accent);
  box-shadow: 3px 3px 0 var(--ink);
}

.hud-title h2 { margin: 0; font-size: 19px; font-weight: 900; line-height: 1.2; }
.hud-title p { margin: 0; font-size: 12px; font-weight: 700; opacity: 0.75; }

.hud-chips { display: flex; gap: 8px; margin-left: auto; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.chip-money { background: #FFF1C9; color: #B2401F; }

.ico-clock {
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) 50% 30% / 2px 40% no-repeat,
    linear-gradient(var(--ink), var(--ink)) 65% 50% / 35% 2px no-repeat;
}

.hud-right { display: flex; gap: 8px; }
.btn-sound[aria-pressed="true"] { background: var(--accent); }

.scene { position: absolute; inset: 0; overflow: hidden; --k: 1; --cold: 0.5; }
.world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.world > * { position: absolute; }

:where(.scene > *) { position: absolute; }
.scene .bg { inset: 0; }
.scene .seats, .scene .walkers, .scene .fx, .scene .tables { inset: 0; pointer-events: none; }
.scene .fx { z-index: 40; }
.scene .walkers { z-index: 16; }

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, transparent 55%, rgba(20, 16, 30, 0.22) 100%);
}

/* ================= seats & avatars ================= */

.seat, .walker {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 0;
  height: 0;
  transform: scale(calc(var(--s) * var(--k)));
  transform-origin: 0 0;
  pointer-events: auto;
}

.seat { cursor: pointer; }
.seat.occupied:not(.is-me), .walker:not(.is-me) { cursor: pointer; }
.walker.is-me { cursor: default; }

.seat::before {
  content: "";
  position: absolute;
  left: -48px;
  top: -96px;
  width: 96px;
  height: 110px;
}

.walker {
  z-index: 16;
}

.walker::after {
  content: "";
  position: absolute;
  left: -18px;
  top: -5px;
  width: 36px;
  height: 10px;
  border-radius: 50%;
  background: rgba(43, 42, 51, 0.16);
  pointer-events: none;
}

.walker.walking .leg-l { animation: step-l 0.36s ease-in-out infinite; }
.walker.walking .leg-r { animation: step-r 0.36s ease-in-out infinite; }
.walker.walking .arm-l { animation: step-r 0.36s ease-in-out infinite; }
.walker.walking .arm-r { animation: step-l 0.36s ease-in-out infinite; }
.walker.face-l .av { transform: scaleX(-1); }

.leg, .arm { position: absolute; display: block; border: var(--line) solid var(--ink); background: var(--robe, #FF6B4A); transform-origin: 50% 3px; }
.leg {
  width: 11px;
  height: 24px;
  top: -22px;
  border-radius: 0 0 6px 6px;
}
.leg-l { left: -15px; }
.leg-r { left: 4px; }
.leg::after {
  content: "";
  position: absolute;
  left: -4px;
  bottom: -5px;
  width: 16px;
  height: 8px;
  border: 2px solid var(--ink);
  border-radius: 4px 7px 4px 4px;
  background: #3C3A46;
}
.arm {
  width: 10px;
  height: 26px;
  top: -50px;
  border-radius: 7px;
}
.arm-l { left: -26px; }
.arm-r { left: 16px; }

.seat .leg, .seat .arm { display: none; }

.scene-seeds .seat .leg,
.scene-seeds .seat .arm { display: block; }
.scene-seeds .seat .occupant { --top: 72px; }
.scene-seeds .seat .av-body {
  top: -32px;
  height: 26px;
  border-radius: 14px 14px 12px 12px;
}
.scene-seeds .seat .av-head { top: -62px; }
.scene-seeds .seat .leg {
  top: -8px;
  width: 20px;
  height: 12px;
  border-radius: 8px;
  transform: none;
  z-index: 2;
}
.scene-seeds .seat .leg-l { left: -30px; }
.scene-seeds .seat .leg-r { left: 10px; }
.scene-seeds .seat .leg::after {
  left: 3px;
  right: auto;
  bottom: -12px;
  width: 14px;
  height: 9px;
}
.scene-seeds .seat .leg-l::after { left: 3px; right: auto; }
.scene-seeds .seat .arm {
  top: -30px;
  height: 16px;
}

:where(.seat > i, .occupant, .occupant > i, .walker > i) { position: absolute; left: 0; top: 0; }

.sit-tip {
  position: absolute;
  left: 50%;
  top: -88px;
  transform: translateX(-50%);
  display: none;
  padding: 3px 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  z-index: 5;
}

.seat.is-open:hover .sit-tip { display: block; }
.seat.is-spare { display: none; }

.soak {
  left: -22px;
  top: -8px;
  width: 44px;
  height: 14px;
  border: 2px solid rgba(43, 42, 51, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.spot {
  left: -10px;
  top: -6px;
  width: 20px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: rgba(43, 42, 51, 0.12);
}

.walker .name, .walker .me-tag { pointer-events: none; }
.walker.is-wade .av-body { display: none; }
.walker .waterline { left: -30px; top: -6px; }

.occupant { --top: 92px; width: 0; height: 0; }
.seat:not(.occupied) .occupant { display: none; }
.seat.occupied .occupant { pointer-events: auto; }

.av { position: absolute; left: 0; top: 0; width: 0; height: 0; }
:where(.av > i, .av-head > i) { position: absolute; display: block; }

.av-body {
  left: -17px;
  top: -50px;
  width: 34px;
  height: 36px;
  border: var(--line) solid var(--ink);
  border-radius: 16px 16px 10px 10px;
  background: var(--robe, #FF6B4A);
}

.av-body::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  width: 16px;
  height: 13px;
  transform: translateX(-50%);
  background: var(--skin, #FFD9BF);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.av-body::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(43, 42, 51, 0.25);
}

.av-head {
  left: -17px;
  top: -80px;
  width: 34px;
  height: 32px;
  border: var(--line) solid var(--ink);
  border-radius: 50% 50% 46% 46%;
  background: var(--skin, #FFD9BF);
  overflow: hidden;
}

.av-hair {
  left: -2px;
  right: -2px;
  top: -2px;
  height: 42%;
  border-radius: 0 0 40% 60% / 0 0 60% 40%;
  background: var(--hair, #2B2A33);
}

.av-face {
  left: 20%;
  right: 20%;
  top: 50%;
  height: 6px;
  background:
    radial-gradient(circle at 12% 50%, var(--ink) 2.3px, transparent 2.8px),
    radial-gradient(circle at 88% 50%, var(--ink) 2.3px, transparent 2.8px);
}

.av-face::before {
  content: "";
  position: absolute;
  left: -14%;
  right: -14%;
  top: 6px;
  height: 5px;
  background:
    radial-gradient(ellipse at 6% 50%, rgba(255, 107, 107, 0.55) 3px, transparent 4px),
    radial-gradient(ellipse at 94% 50%, rgba(255, 107, 107, 0.55) 3px, transparent 4px);
}

.av-face::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 7px;
  height: 4px;
  margin-left: -3.5px;
  border-bottom: 2px solid var(--ink);
  border-radius: 0 0 6px 6px;
}

.av-towel { display: none; }

.name, .me-tag, .float {
  position: absolute;
  left: 0;
  bottom: calc(var(--top) + 6px);
  translate: -50% 0;
  scale: calc(0.95 / var(--s));
  transform-origin: 50% 100%;
  white-space: nowrap;
  pointer-events: none;
}

.name {
  padding: 2px 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.seat:hover .name, .seat.is-talking .name,
.walker:hover .name, .walker.is-talking .name { opacity: 1; }
.seat.is-me .name, .walker.is-me .name { display: none; }
.seat:hover, .walker:hover { z-index: 30 !important; }

.me-tag { display: none; }

.walker { --top: 96px; }
.scene-spring .walker { --top: 96px; }
.scene-roof .walker { --top: 96px; }

.seat.is-me .me-tag,
.walker.is-me .me-tag {
  display: block;
  padding: 2px 9px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  animation: me-bob 1.6s ease-in-out infinite;
}

.seat.is-me .me-tag::after,
.walker.is-me .me-tag::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  background: var(--coral);
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}

.seat.is-me.is-talking .me-tag,
.walker.is-me.is-talking .me-tag { opacity: 0; }

.float {
  z-index: 3;
  padding: 3px 10px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  animation: float-up 1.9s ease forwards;
}

.float.crack { padding: 0; border: 0; background: none; color: var(--sun); font-size: 14px; -webkit-text-stroke: 0.6px var(--ink); animation-duration: 0.8s; }
.float.ice { background: #D9F2FF; }
.float.snore { padding: 0; border: 0; background: none; color: #C9C2FF; font-size: 15px; font-style: italic; animation-duration: 2.6s; }

.seat.nudge .av { animation: hop 0.5s ease; }

/* ================= 空调房 ================= */

.scene-ac .bg {
  background:
    linear-gradient(rgba(150, 210, 255, calc(var(--cold) * 0.45)), rgba(150, 210, 255, calc(var(--cold) * 0.45))),
    linear-gradient(#E4F5FF, #CDE9F9 48%);
  transition: background 1s ease;
}

.scene-ac.is-stuffy .bg { background: linear-gradient(#FFF0DD, #F7DCC0 48%); }

.floor {
  left: 0;
  right: 0;
  top: 44%;
  bottom: 0;
  border-top: 3px solid var(--ink);
  overflow: hidden;
}

.floor::before {
  content: "";
  position: absolute;
  left: -30%;
  right: -30%;
  top: 0;
  height: 160%;
  transform: perspective(500px) rotateX(58deg);
  transform-origin: 50% 0;
}

.scene-ac .floor { background: linear-gradient(#EAF4FA, #F6FBFE); top: 160px; }
.scene-seeds .floor,
.scene-nap .floor { top: 160px; }

.scene-ac .floor::before {
  background:
    linear-gradient(rgba(43, 42, 51, 0.08) 2px, transparent 2px) 0 0 / 90px 60px,
    linear-gradient(90deg, rgba(43, 42, 51, 0.08) 2px, transparent 2px) 0 0 / 90px 60px;
}

.ac-unit {
  z-index: 3;
  left: 50%;
  top: 84px;
  width: min(640px, 62vw);
  height: 112px;
  transform: translateX(-50%);
  border: 3px solid var(--ink);
  border-radius: 24px;
  background: linear-gradient(#fff 60%, #EEF3F6);
  box-shadow: 0 8px 0 rgba(43, 42, 51, 0.12);
}

.ac-brand { position: absolute; left: 26px; top: 20px; font-size: 13px; font-weight: 900; letter-spacing: 0.18em; color: #9AA7B0; }

.ac-light {
  position: absolute;
  left: 28px;
  top: 48px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2FCB71;
  box-shadow: 0 0 10px #2FCB71;
}

.ac-led {
  position: absolute;
  right: 24px;
  top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  padding: 4px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: #7CF5E5;
  font-family: var(--mono);
  text-shadow: 0 0 10px rgba(124, 245, 229, 0.7);
}

.ac-led b { font-size: 34px; line-height: 1.1; }
.ac-led small { margin-top: 6px; font-size: 14px; }

.ac-vent {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 14px;
  height: 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: repeating-linear-gradient(90deg, #DCE5EA 0 10px, #C3D0D8 10px 12px);
  transform-origin: 50% 0;
  animation: flap 4s ease-in-out infinite;
}

.ac-wind {
  z-index: 2;
  left: 50%;
  top: 196px;
  width: min(960px, 92vw);
  height: 46%;
  transform: translateX(-50%);
  pointer-events: none;
}

.ac-wind path {
  fill: none;
  stroke: #fff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 26 34;
  vector-effect: non-scaling-stroke;
  animation: dash 1.3s linear infinite;
  opacity: 0.75;
  filter: drop-shadow(0 0 4px rgba(108, 198, 255, 0.8));
}

.scene-ac.wind-1 .ac-wind path { animation-duration: 2.6s; opacity: 0.45; stroke-width: 3; }
.scene-ac.wind-3 .ac-wind path { animation-duration: 0.55s; opacity: 0.95; stroke-width: 7; }

.snow { inset: 0; z-index: 35; pointer-events: none; opacity: 0; transition: opacity 1s ease; }
.scene-ac.is-freezing .snow { opacity: 1; }

.snow i {
  position: absolute;
  top: -12px;
  left: calc(var(--i) * 5.6% + 1%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(108, 198, 255, 0.9);
  animation: snow 6s linear infinite;
  animation-delay: calc(var(--i) * -0.37s);
}

.ac-window {
  z-index: 1;
  left: 4%;
  top: 124px;
  width: 190px;
  height: 160px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background:
    linear-gradient(90deg, transparent calc(50% - 2px), var(--ink) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)),
    linear-gradient(#FF9F5A, #FFD58E);
  overflow: hidden;
}

.ac-sun {
  position: absolute;
  right: 22px;
  top: 20px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #FFF4C2;
  box-shadow: 0 0 0 10px rgba(255, 244, 194, 0.35), 0 0 40px #FFF4C2;
  animation: heat 2.4s ease-in-out infinite;
}

.ac-window span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 2px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: #D2401E;
  font-size: 13px;
  font-weight: 900;
}

.ac-plant { z-index: 1; left: calc(4% + 214px); top: calc(44% - 120px); width: 90px; height: 120px; }

.ac-plant i {
  position: absolute;
  left: 18px;
  bottom: 0;
  width: 54px;
  height: 46px;
  border: 3px solid var(--ink);
  border-radius: 6px 6px 16px 16px;
  background: #F08A5D;
}

.ac-plant::before, .ac-plant::after {
  content: "";
  position: absolute;
  bottom: 40px;
  width: 38px;
  height: 70px;
  border: 3px solid var(--ink);
  border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
  background: #4DB37A;
  transform-origin: 50% 100%;
  animation: sway 3s ease-in-out infinite;
}

.ac-plant::before { left: 10px; transform: rotate(-18deg); }
.ac-plant::after { right: 8px; transform: rotate(16deg); animation-delay: -1.5s; }

.chair {
  left: -30px;
  top: -66px;
  width: 60px;
  height: 56px;
  border: var(--line) solid var(--ink);
  border-radius: 16px 16px 6px 6px;
  background: repeating-linear-gradient(90deg, #fff 0 9px, #8FD3F0 9px 18px);
}

.chair::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  bottom: -20px;
  height: 18px;
  border: var(--line) solid var(--ink);
  border-radius: 9px;
  background: #8FD3F0;
}

.scene-ac .seat:not(.occupied) .chair { opacity: 0.5; }
.scene-ac .occupant { --top: 92px; }

.quilt {
  display: none;
  left: -27px;
  top: -26px;
  width: 54px;
  height: 30px;
  border: var(--line) solid var(--ink);
  border-radius: 12px 12px 8px 8px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.35) 0 5px, transparent 5px 10px),
    var(--robe, #F2EDE4);
  transform-origin: 50% 0;
}

.seat.has-quilt .quilt { display: block; }
.scene-ac.wind-3 .quilt { animation: flutter 0.35s ease-in-out infinite; }
.scene-ac.is-freezing .seat:not(.has-quilt) .av { animation: shiver 0.18s linear infinite; }

/* ================= 温泉池 ================= */

.scene-spring .bg { background: linear-gradient(#141B36, #26315C 46%); }

.stars { inset: 0; pointer-events: none; }

.stars i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  animation: twinkle 3s ease-in-out infinite;
  animation-delay: var(--d);
}

.moon {
  left: 19%;
  top: 76px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #FFF3C4;
  box-shadow: 0 0 0 14px rgba(255, 243, 196, 0.08), 0 0 80px rgba(255, 243, 196, 0.5);
}

.fence {
  left: 0;
  right: 0;
  top: 27%;
  height: 22%;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background:
    linear-gradient(transparent 28%, rgba(43, 42, 51, 0.5) 28% calc(28% + 3px), transparent calc(28% + 3px) 70%, rgba(43, 42, 51, 0.5) 70% calc(70% + 3px), transparent calc(70% + 3px)),
    repeating-linear-gradient(90deg, #4B7F5B 0 26px, #3E6B4E 26px 30px, var(--ink) 30px 32px);
}

.lanterns { left: 0; right: 0; top: 0; height: 30%; pointer-events: none; }

.lanterns i {
  position: absolute;
  top: 22%;
  width: 34px;
  height: 42px;
  margin-left: -17px;
  border: 3px solid var(--ink);
  border-radius: 45%;
  background: radial-gradient(circle at 50% 45%, #FFE7A8, #FFB547 70%);
  box-shadow: 0 0 30px rgba(255, 181, 71, 0.7);
  transform-origin: 50% -60px;
  animation: sway 4s ease-in-out infinite;
}

.lanterns i::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 2px;
  height: 200px;
  background: var(--ink);
}

.lanterns i:nth-child(1) { left: 12%; top: 24%; }
.lanterns i:nth-child(2) { left: 31%; top: 34%; animation-delay: -1s; }
.lanterns i:nth-child(3) { left: 50%; top: 38%; animation-delay: -2s; }
.lanterns i:nth-child(4) { left: 69%; top: 34%; animation-delay: -3s; }
.lanterns i:nth-child(5) { left: 88%; top: 24%; animation-delay: -0.5s; }

.deck {
  z-index: 1;
  left: 0;
  right: 0;
  top: 44%;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18), transparent 28%),
    repeating-linear-gradient(90deg, #CDBFA6 0 46px, #C3B49A 46px 48px),
    #C9BBA4;
  border-top: 3px solid var(--ink);
}

.pool {
  z-index: 2;
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: #B7A88E;
  box-shadow: inset 0 0 0 10px #A8987C, 4px 4px 0 rgba(43, 42, 51, 0.18);
  cursor: pointer;
}

.pool b {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid var(--ink);
  font-size: 12px;
}

.scene-spring .fence { top: 0; height: 128px; }
.scene-spring .deck { top: 128px; }
.scene-spring .stars { height: 220px; bottom: auto; }
.scene-spring .lanterns { height: 200px; }
.scene-spring .lanterns i:nth-child(1) { top: 70px; }
.scene-spring .lanterns i:nth-child(2) { top: 86px; }
.scene-spring .lanterns i:nth-child(3) { top: 64px; }
.scene-spring .lanterns i:nth-child(4) { top: 86px; }
.scene-spring .lanterns i:nth-child(5) { top: 70px; }

.tea-table {
  position: absolute;
  z-index: 1;
  width: 210px;
  height: 92px;
  margin-left: -105px;
  margin-top: -46px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 45%, #F3D48A 0 18px, transparent 19px),
    linear-gradient(#E7B56A, #D39A45);
  box-shadow: 0 8px 0 rgba(43, 42, 51, 0.18);
  pointer-events: none;
}
.tea-table::before,
.tea-table::after {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 900;
  color: #7A4426;
}
.tea-table::before { content: "瓜子"; top: 14px; letter-spacing: 0.2em; }
.tea-table::after { content: ""; top: 40px; width: 54px; height: 16px; border: 2px solid var(--ink); border-radius: 8px; background: #F6E2A8; }

.water {
  position: absolute;
  inset: 14px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(170deg, #8BE3DA 0%, #4CC3C0 35%, #2A8F9A 100%);
}

.pool-herb .water { background: linear-gradient(170deg, #D6E88A 0%, #8FB85A 55%, #5E8A3A 100%); }

.water::before, .water::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 22% 4% at 30% 40%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(ellipse 18% 3% at 70% 60%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(ellipse 14% 3% at 50% 80%, rgba(255, 255, 255, 0.35), transparent);
  animation: water 9s ease-in-out infinite;
}

.water::after { animation-delay: -4.5s; opacity: 0.6; }

.scene-spring .seats { z-index: 8; }
.scene-spring .seat .occupant { --top: 34px; }
.scene-spring .seat .av-body,
.scene-spring .seat .arm,
.scene-spring .seat .leg { display: none; }
.scene-spring .seat .av-head { top: -48px; }
.scene-spring .seat .occupant { --top: 56px; }

.scene-spring .seat .av-towel {
  display: block;
  left: -15px;
  top: -54px;
  width: 30px;
  height: 11px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--robe, #fff);
}

.waterline {
  left: -30px;
  top: -6px;
  width: 60px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(#5FD0CC, #3FB4B2);
  box-shadow: 0 -2px 0 rgba(255, 255, 255, 0.7);
}

.steam { inset: 0; z-index: 4; pointer-events: none; }

.steam i {
  position: absolute;
  bottom: 22%;
  width: 34%;
  height: 34%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.45), transparent 68%);
  filter: blur(18px);
  animation: steam 10s ease-in-out infinite;
}

.steam i:nth-child(1) { left: 8%; }
.steam i:nth-child(2) { left: 32%; animation-delay: -3s; }
.steam i:nth-child(3) { left: 56%; animation-delay: -6s; }
.steam i:nth-child(4) { left: 72%; width: 24%; animation-delay: -8s; }

.scene-spring.is-splashing .steam i { animation: steam-burst 0.9s ease; }
.scene-spring.is-splashing .av { animation: bob 0.8s ease; }

.splash {
  position: absolute;
  width: 18px;
  height: 8px;
  margin: -4px 0 0 -9px;
  border: 2.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: splash 1s ease-out forwards;
}

.splash.big { width: 40px; height: 16px; margin: -8px 0 0 -20px; }

.duck {
  position: absolute;
  top: var(--lane);
  left: -6%;
  width: 0;
  height: 0;
  scale: calc(var(--dir) * var(--k)) var(--k);
  animation: duck-swim 11s linear forwards;
}

.duck::before {
  content: "";
  position: absolute;
  left: -22px;
  top: -20px;
  width: 44px;
  height: 26px;
  border: var(--line) solid var(--ink);
  border-radius: 40% 60% 50% 50% / 50% 60% 40% 50%;
  background: #FFD84A;
  animation: duck-bob 1s ease-in-out infinite;
}

.duck::after {
  content: "";
  position: absolute;
  left: 4px;
  top: -40px;
  width: 24px;
  height: 24px;
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 42%, var(--ink) 2.2px, transparent 2.8px),
    #FFD84A;
  box-shadow: 10px 6px 0 -5px #FF8A3D;
  animation: duck-bob 1s ease-in-out infinite;
}

/* ================= 瓜子茶馆 ================= */

.scene-seeds .bg {
  background:
    repeating-linear-gradient(90deg, rgba(43, 42, 51, 0.08) 0 3px, transparent 3px 110px),
    linear-gradient(#B06C44, #94532F 46%);
}

.scene-seeds .floor { background: repeating-linear-gradient(#64381F 0 26px, #5A311B 26px 29px); }
.scene-seeds .floor::before { background: radial-gradient(ellipse at 50% 0%, rgba(255, 200, 120, 0.25), transparent 60%); transform: none; }

.scene-seeds .lanterns { height: 40%; }

.scene-seeds .lanterns i {
  width: 46px;
  height: 52px;
  margin-left: -23px;
  border-radius: 40%;
  background:
    linear-gradient(90deg, transparent 47%, rgba(43, 42, 51, 0.25) 47% 53%, transparent 53%),
    radial-gradient(circle at 50% 45%, #FF7A5C, #E0382A 70%);
  box-shadow: 0 0 34px rgba(255, 100, 60, 0.55);
}

.scene-seeds .lanterns i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 4px;
  height: 18px;
  margin-left: -2px;
  background: var(--sun);
}

.scene-seeds .lanterns i:nth-child(1) { left: 8%; top: 20%; }
.scene-seeds .lanterns i:nth-child(2) { left: 24%; top: 26%; }
.scene-seeds .lanterns i:nth-child(3) { left: 76%; top: 26%; }
.scene-seeds .lanterns i:nth-child(4) { left: 92%; top: 20%; }

.radio {
  z-index: 3;
  left: 50%;
  top: 88px;
  width: min(560px, 62vw);
  padding: 12px 86px 16px 16px;
  transform: translateX(-50%);
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: #F2D8A7;
  box-shadow: 0 8px 0 rgba(43, 42, 51, 0.3);
}

.radio-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 900; letter-spacing: 0.12em; color: #7A4426; }

.radio-screen {
  min-height: 62px;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  overflow: hidden;
}

.gossip { margin: 0; color: var(--sun); font-size: 18px; font-weight: 800; line-height: 1.4; text-shadow: 0 0 10px rgba(255, 200, 69, 0.5); }
.gossip.roll { animation: roll-in 0.5s ease; }

.radio-knob {
  position: absolute;
  right: 22px;
  top: 22px;
  width: 44px;
  height: 44px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: conic-gradient(from 20deg, #fff 0 20deg, #DDD 20deg 360deg);
}

.radio-knob.b { top: auto; bottom: 18px; width: 30px; height: 30px; right: 30px; background: var(--ink); }

.shell-board {
  z-index: 3;
  right: 5%;
  top: calc(46% - 150px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 18px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: #FFF3D6;
  transform: rotate(4deg);
  box-shadow: 4px 4px 0 var(--ink);
}

.shell-board small { font-size: 12px; font-weight: 800; color: #7A4426; }
.shell-board b { font-size: 32px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--coral); line-height: 1.1; }

.stool {
  left: -24px;
  top: -6px;
  width: 48px;
  height: 16px;
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  background: #D58B57;
}

.stool::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 10px;
  height: 16px;
  margin-left: -5px;
  border: 2px solid var(--ink);
  border-top: 0;
  background: #8A4E2B;
}

.scene-seeds .seat:not(.occupied) .stool { opacity: 0.55; }

.shell-count {
  position: absolute;
  left: 10px;
  top: -66px;
  padding: 0 6px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--sun);
  font-size: 11px;
  font-weight: 900;
  line-height: 16px;
}

.shell-count:empty { display: none; }

/* ================= 躺平间 ================= */

.scene-nap .bg { background: linear-gradient(#161A2C, #1F2442 46%); }
.scene-nap .floor { background: #262B4A; border-top-color: #0D0F1C; }

.scene-nap .floor::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 2px, transparent 2px) 0 0 / 110px 70px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 2px, transparent 2px) 0 0 / 110px 70px;
}

.nap-window {
  left: 7%;
  top: 104px;
  width: 170px;
  height: 140px;
  border: 5px solid #555C85;
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent calc(50% - 3px), #555C85 calc(50% - 3px) calc(50% + 3px), transparent calc(50% + 3px)),
    linear-gradient(transparent calc(50% - 3px), #555C85 calc(50% - 3px) calc(50% + 3px), transparent calc(50% + 3px)),
    radial-gradient(circle at 20% 70%, #fff 1px, transparent 2px),
    radial-gradient(circle at 40% 30%, #fff 1px, transparent 2px),
    radial-gradient(circle at 80% 80%, #fff 1px, transparent 2px),
    #2D3560;
}

.nap-moon {
  position: absolute;
  right: 18px;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: -8px 4px 0 0 #FFF3C4;
}

.fan { z-index: 3; left: 50%; top: 0; width: 0; height: 0; }

.fan-rod { position: absolute; left: -4px; top: 0; width: 8px; height: 70px; background: #555C85; }

.blades {
  position: absolute;
  left: -150px;
  top: -80px;
  width: 300px;
  height: 300px;
  transform: rotateX(76deg) rotate(0deg);
  animation: fan 2.6s linear infinite;
}

.blades i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140px;
  height: 38px;
  margin-top: -19px;
  border: 3px solid #0D0F1C;
  border-radius: 50%;
  background: #8A90B5;
  transform-origin: 0 50%;
}

.blades i:nth-child(2) { transform: rotate(120deg); }
.blades i:nth-child(3) { transform: rotate(240deg); }

.fan-hub {
  position: absolute;
  left: -22px;
  top: 58px;
  width: 44px;
  height: 26px;
  border: 3px solid #0D0F1C;
  border-radius: 50%;
  background: #6E7499;
}

.nightlight {
  right: 9%;
  top: calc(44% - 44px);
  width: 30px;
  height: 40px;
  border: 3px solid #0D0F1C;
  border-radius: 14px 14px 4px 4px;
  background: #FFD98A;
  box-shadow: 0 0 60px 30px rgba(255, 200, 110, 0.18);
}

.bed {
  left: -46px;
  top: -34px;
  width: 92px;
  height: 40px;
  border: var(--line) solid #0D0F1C;
  border-radius: 14px;
  background: #3A4170;
}

.bed::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -12px;
  height: 12px;
  border: var(--line) solid #0D0F1C;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #2B3157;
}

.pillow {
  position: absolute;
  left: 6px;
  top: -10px;
  width: 38px;
  height: 22px;
  border: var(--line) solid #0D0F1C;
  border-radius: 12px;
  background: #EDE6F5;
}

.scene-nap .seat:not(.occupied) .bed { opacity: 0.45; }
.scene-nap .occupant { --top: 58px; }
.scene-nap .seat .av-body,
.scene-nap .seat .arm,
.scene-nap .seat .leg { display: none; }
.scene-nap .seat .av-head { left: -38px; top: -50px; border-color: #0D0F1C; transition: transform 0.4s ease; }

.scene-nap .av-face {
  background:
    linear-gradient(var(--ink), var(--ink)) 0 50% / 30% 2.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 100% 50% / 30% 2.5px no-repeat;
}

.scene-nap .av-face::after { width: 5px; height: 5px; margin-left: -2.5px; border: 2px solid var(--ink); border-radius: 50%; }

.blanket {
  left: -18px;
  top: -30px;
  width: 64px;
  height: 34px;
  border: var(--line) solid #0D0F1C;
  border-radius: 16px 12px 10px 10px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25) 3px, transparent 4px) 0 0 / 14px 14px,
    var(--robe, #9B7BF0);
  transition: border-radius 0.4s ease;
}

.seat.is-turned .av-head { transform: rotate(-22deg) translate(-2px, 3px); }
.seat.is-turned .blanket { border-radius: 12px 22px 10px 10px; }

.room.is-nap .scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 44;
  pointer-events: none;
  background: rgba(5, 6, 14, 0);
  transition: background 6s ease;
}

.room.is-nap.is-resting .scene::before { background: rgba(5, 6, 14, 0.55); }
.room.is-nap.is-resting .hud, .room.is-nap.is-resting .dock, .room.is-nap.is-resting .feed { opacity: 0.15; transition: opacity 6s ease; }
.room.is-nap.is-resting .hud:hover, .room.is-nap.is-resting .dock:hover { opacity: 1; transition: opacity 0.2s ease; }

/* ================= 天台 ================= */

.scene-roof .bg { background: linear-gradient(#FF7E5F 0%, #FFAB6E 32%, #FFD596 54%, #FFE6B8 64%); }

.sun {
  left: 60%;
  top: 30%;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: #FFF0C2;
  box-shadow: 0 0 0 26px rgba(255, 240, 194, 0.25), 0 0 120px rgba(255, 240, 194, 0.9);
}

.clouds { inset: 0; pointer-events: none; }

.clouds i {
  position: absolute;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 245, 230, 0.85);
  animation: drift 60s linear infinite;
}

.clouds i::before {
  content: "";
  position: absolute;
  left: 22%;
  bottom: 40%;
  width: 46%;
  height: 120%;
  border-radius: 50%;
  background: inherit;
}

.clouds i:nth-child(1) { top: 14%; left: 10%; width: 160px; }
.clouds i:nth-child(2) { top: 22%; left: 50%; width: 120px; animation-duration: 80s; animation-delay: -20s; }
.clouds i:nth-child(3) { top: 10%; left: 78%; width: 200px; animation-duration: 95s; animation-delay: -50s; }

.skyline { left: 0; right: 0; bottom: 40%; width: 100%; height: 36%; }

.railing {
  z-index: 2;
  left: 0;
  right: 0;
  top: 56%;
  height: 7%;
  border-top: 8px solid #E9DCCB;
  box-shadow: 0 -3px 0 var(--ink), inset 0 3px 0 var(--ink);
  background: repeating-linear-gradient(90deg, var(--ink) 0 5px, transparent 5px 54px);
}

.roof-floor {
  left: 0;
  right: 0;
  top: 60%;
  bottom: 0;
  border-top: 3px solid var(--ink);
  background:
    linear-gradient(rgba(43, 42, 51, 0.1) 2px, transparent 2px) 0 0 / 100% 46px,
    linear-gradient(90deg, rgba(43, 42, 51, 0.1) 2px, transparent 2px) 0 0 / 80px 100%,
    linear-gradient(#C9B4A2, #D9C7B6);
}

.tank {
  z-index: 1;
  right: 4%;
  top: calc(60% - 170px);
  width: 110px;
  height: 120px;
  border: 3px solid var(--ink);
  border-radius: 50% 50% 10px 10px / 18% 18% 10px 10px;
  background: linear-gradient(90deg, #8FA8B8, #B9CCD8 40%, #8FA8B8);
}

.tank::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 100%;
  height: 50px;
  background:
    linear-gradient(90deg, var(--ink) 0 5px, transparent 5px calc(100% - 5px), var(--ink) calc(100% - 5px)),
    linear-gradient(transparent 45%, var(--ink) 45% calc(45% + 4px), transparent calc(45% + 4px));
}

.scene-roof .occupant { --top: 76px; }
.scene-roof .av-head { top: -80px; }

.shout {
  position: absolute;
  padding: 10px 20px;
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: #fff;
  font-size: calc(26px * var(--k, 1));
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 4px 4px 0 var(--ink);
  translate: -50% 0;
  animation: shout 3.6s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

.shout::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  background: #fff;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(45deg);
}

/* ================= overlays: line, feed, dock ================= */

.enter-line, .asleep {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  pointer-events: none;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-shadow: 0 4px 0 var(--ink), 0 0 30px rgba(0, 0, 0, 0.3);
}

.enter-line {
  top: 38%;
  font-size: clamp(32px, 5vw, 56px);
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.enter-line.show { opacity: 1; transform: none; }

.asleep { top: 44%; font-size: 28px; opacity: 0; }
.room.is-nap.is-resting .asleep { animation: dim 10s ease forwards; }

.feed {
  position: absolute;
  z-index: 50;
  right: 16px;
  top: 76px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  width: min(360px, calc(100% - 32px));
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.feed li {
  padding: 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--ink);
  animation: feed-in 0.3s ease;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.feed li.mine { background: #FFF1C9; }
.feed li.gone { opacity: 0; transform: translateY(-6px); }

.move-hint {
  position: absolute;
  z-index: 50;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 2px solid var(--ink);
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  pointer-events: none;
  white-space: nowrap;
}

.pop {
  position: absolute;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 148px;
  padding: 10px;
  border: var(--line) solid var(--ink);
  border-radius: 16px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}

.pop[hidden] { display: none !important; }

.pop-name {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.pop .act { width: 100%; justify-content: center; }

.dock {
  position: absolute;
  z-index: 50;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 10px 12px;
  border: var(--line) solid var(--ink);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 5px 5px 0 var(--ink);
  transition: opacity 0.4s ease;
}

.dock-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dock-label { font-size: 13px; font-weight: 900; color: var(--muted); padding: 0 4px; }
.dock-hint { font-size: 12px; font-weight: 700; color: var(--muted); padding-right: 6px; }

.act {
  padding: 10px 18px;
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  background: #fff;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.act:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.act:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.act.primary { background: var(--accent); }
.act.ghost { padding: 8px 13px; background: #F6F0E6; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); }
.act small { margin-left: 4px; font-size: 12px; opacity: 0.75; }

.remote {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
}

.remote-label { font-size: 12px; font-weight: 800; opacity: 0.6; padding: 0 2px; }
.remote-sep { width: 2px; height: 22px; margin: 0 4px; background: rgba(255, 255, 255, 0.2); }

.remote-btn, .remote-wind {
  min-width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #43424E;
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.remote-btn { font-size: 20px; }
.remote-btn:hover, .remote-wind:hover { background: #55545F; }
.remote-btn:active, .remote-wind:active { transform: scale(0.92); }
.remote-wind[aria-pressed="true"] { background: #7CF5E5; color: var(--ink); }

.remote-temp {
  min-width: 70px;
  text-align: center;
  font: 800 22px var(--mono);
  color: #7CF5E5;
  text-shadow: 0 0 10px rgba(124, 245, 229, 0.6);
}

/* ================= boss key ================= */

.boss {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #fff;
  color: #222;
  font: 12px "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.xl { display: flex; flex-direction: column; height: 100%; }

.xl-title { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 12px; background: #217346; color: #fff; }
.xl-title b { font-weight: 400; font-size: 13px; }
.xl-logo { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 3px; background: #fff; color: #217346; font-weight: 900; }
.xl-saved { margin-left: auto; opacity: 0.75; }

.xl-ribbon { display: flex; gap: 22px; padding: 6px 14px 0; background: #F3F3F3; border-bottom: 1px solid #DADADA; }
.xl-ribbon span { padding: 4px 2px 6px; }
.xl-ribbon .on { color: #217346; border-bottom: 2px solid #217346; font-weight: 700; }

.xl-tools { display: flex; gap: 8px; height: 56px; align-items: center; padding: 0 14px; background: #F8F8F8; border-bottom: 1px solid #DADADA; }
.xl-tools i { width: 30px; height: 30px; border-radius: 3px; background: linear-gradient(#E9E9E9, #DCDCDC); }
.xl-tools i.sep { width: 1px; background: #CFCFCF; }

.xl-formula { display: flex; align-items: center; gap: 10px; height: 26px; padding: 0 8px; border-bottom: 1px solid #DADADA; }
.xl-cell { width: 70px; padding-right: 8px; border-right: 1px solid #DADADA; }
.xl-fx { font-style: italic; color: #888; }

.xl-grid { flex: 1; overflow: auto; }
.xl-grid table { border-collapse: collapse; min-width: 100%; }
.xl-grid th, .xl-grid td { height: 22px; padding: 0 6px; border: 1px solid #E1E1E1; white-space: nowrap; }
.xl-grid th { position: sticky; top: 0; background: #F3F3F3; color: #555; font-weight: 400; text-align: center; }
.xl-grid tbody th { position: static; width: 40px; }
.xl-grid td { min-width: 90px; }
.xl-grid td.num { text-align: right; font-variant-numeric: tabular-nums; }
.xl-grid td.head { background: #E2EFDA; font-weight: 700; text-align: center; }
.xl-grid td.sel { outline: 2px solid #217346; outline-offset: -2px; }

.xl-sheets { display: flex; align-items: center; gap: 2px; height: 28px; padding: 0 10px; background: #F3F3F3; border-top: 1px solid #DADADA; }
.xl-sheets span { padding: 4px 14px; }
.xl-sheets .on { background: #fff; color: #217346; font-weight: 700; border-bottom: 2px solid #217346; }
.xl-sheets .xl-status { margin-left: auto; color: #666; }

/* ================= status ================= */

.status {
  position: fixed;
  z-index: 900;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 16px;
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  background: var(--sun);
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink);
}

.status:empty { display: none; }

/* ================= keyframes ================= */

@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(47, 203, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 203, 113, 0); } }
@keyframes dash { to { stroke-dashoffset: -60; } }
@keyframes flap { 50% { transform: scaleY(0.7) translateY(2px); } }
@keyframes snow { to { transform: translate(40px, 110vh) rotate(360deg); } }
@keyframes heat { 50% { transform: scale(1.06); } }
@keyframes sway { 50% { rotate: 6deg; } }
@keyframes flutter { 50% { transform: skewX(-6deg) translateX(2px); } }
@keyframes shiver { 25% { translate: -1px 0; } 75% { translate: 1px 0; } }
@keyframes twinkle { 50% { opacity: 0.2; } }
@keyframes water { 50% { transform: translate(6%, 3%); } }
@keyframes steam { 0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; } 50% { transform: translateY(-40px) scale(1.15); opacity: 1; } }
@keyframes steam-burst { 40% { transform: translateY(-60px) scale(1.5); opacity: 1; } }
@keyframes bob { 40% { translate: 0 6px; } }
@keyframes splash { to { transform: scale(7); opacity: 0; } }
@keyframes duck-swim { from { left: -6%; } to { left: 106%; } }
@keyframes duck-bob { 50% { translate: 0 -3px; rotate: -4deg; } }
@keyframes roll-in { from { transform: translateY(100%); opacity: 0; } }
@keyframes fan { to { transform: rotateX(76deg) rotate(360deg); } }
@keyframes drift { to { translate: 40vw 0; } }
@keyframes shout {
  0% { opacity: 0; transform: scale(0.4) translateY(30px); }
  12% { opacity: 1; transform: scale(1.12) translateY(0); }
  22% { transform: scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-160px) scale(0.9); }
}
@keyframes me-bob { 50% { translate: -50% -4px; } }
@keyframes step-l {
  0%, 100% { transform: rotate(24deg); }
  50% { transform: rotate(-20deg); }
}
@keyframes step-r {
  0%, 100% { transform: rotate(-20deg); }
  50% { transform: rotate(24deg); }
}
@keyframes walk-bob { 50% { translate: 0 -6px; } }
@keyframes float-up { 0% { opacity: 0; translate: -50% 6px; } 15% { opacity: 1; translate: -50% 0; } 80% { opacity: 1; } 100% { opacity: 0; translate: -50% -26px; } }
@keyframes hop { 40% { translate: 0 -10px; } 70% { translate: 0 1px; } }
@keyframes feed-in { from { opacity: 0; transform: translateX(-12px); } }
@keyframes dim { 0% { opacity: 0; } 15% { opacity: 0.9; } 100% { opacity: 0.25; } }

/* ================= responsive ================= */

@media (max-width: 1080px) {
  .hud-sub, .hud-title p { display: none; }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
  .member { transform: none; max-width: 520px; }
  .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar-live { display: none; }
  .topbar-right { margin-left: auto; }
  .hud { flex-wrap: wrap; }
  .hud-chips { order: 3; margin-left: 0; width: 100%; }
  .hud-right { margin-left: auto; }
  .feed { top: 128px; }
}

@media (max-width: 640px) {
  .topbar, .hero, .rooms, .partner, .rules { padding-left: 16px; padding-right: 16px; }
  .offwork { display: none; }
  .room-grid { grid-template-columns: 1fr; gap: 20px; }
  .room-card-ac { grid-column: auto; }
  .room-card-ac .room-art { height: 180px; }
  .member-body { flex-direction: column; }
  .member-avatar { flex-basis: 120px; width: 120px; }
  .section-head { flex-direction: column; gap: 4px; }
  .hud { top: 10px; left: 10px; right: 10px; gap: 8px; }
  .hud .btn-boss kbd, .hud-back span { display: none; }
  .hud .btn { padding: 6px 10px; font-size: 13px; }
  .chip { padding: 5px 10px; font-size: 13px; }
  .radio-knob { display: none; }
  .dock { bottom: 10px; padding: 8px; gap: 8px; border-radius: 18px; }
  .act { padding: 8px 12px; font-size: 14px; }
  .remote { flex-wrap: wrap; justify-content: center; }
  .dock-hint, .move-hint { display: none; }
  .feed { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}

/* ================= room dressing ================= */

.room-card-beach { --accent: #FFB020; }
.room-card-beach .room-art { background: linear-gradient(#8fd4ff 46%, #ffe08a 46%); }
.room.is-beach { --accent: #FFB020; }

.scene .ac-units { inset: 0; z-index: 4; pointer-events: none; }
.ac-units .ac-unit { position: absolute; }

.ac-unit {
  width: 148px;
  height: 54px;
  margin: -27px 0 0 -74px;
  transform: none;
  border-radius: 14px;
  pointer-events: none;
}

.ac-brand { left: 10px; top: 6px; font-size: 9px; letter-spacing: 0.14em; }
.ac-light { left: 12px; top: 24px; width: 7px; height: 7px; }
.ac-led { right: 8px; top: 5px; padding: 1px 6px; border-radius: 8px; }
.ac-led b { font-size: 15px; }
.ac-led small { margin-top: 3px; font-size: 9px; }
.ac-vent { left: 8px; right: 8px; bottom: 5px; height: 9px; }

.breeze { position: absolute; pointer-events: none; }
.breeze i {
  position: absolute;
  border: 3px solid rgba(255, 255, 255, 0.92);
  opacity: 0.8;
  animation: breeze 1.15s ease-in-out infinite;
}
.ac-unit.face-down .breeze { left: 18px; right: 18px; top: 100%; height: 36px; }
.ac-unit.face-down .breeze i { top: 0; width: 10px; height: 18px; border-top: 0; border-radius: 0 0 8px 8px; }
.ac-unit.face-up .breeze { left: 18px; right: 18px; bottom: 100%; height: 36px; }
.ac-unit.face-up .breeze i { bottom: 0; width: 10px; height: 18px; border-bottom: 0; border-radius: 8px 8px 0 0; }
.ac-unit.face-right .breeze { left: 100%; top: 12px; width: 42px; height: 28px; }
.ac-unit.face-right .breeze i { left: 0; width: 18px; height: 8px; border-left: 0; border-radius: 0 8px 8px 0; }
.ac-unit.face-left .breeze { right: 100%; left: auto; top: 12px; width: 42px; height: 28px; }
.ac-unit.face-left .breeze i { right: 0; width: 18px; height: 8px; border-right: 0; border-radius: 8px 0 0 8px; }
.breeze i:nth-child(1) { left: 4px; }
.breeze i:nth-child(2) { left: 46%; animation-delay: -0.35s; }
.breeze i:nth-child(3) { right: 4px; left: auto; animation-delay: -0.7s; }
.ac-unit.face-up .breeze i:nth-child(1),
.ac-unit.face-down .breeze i:nth-child(1) { left: 6px; }
.scene-ac.wind-1 .breeze i { animation-duration: 2.3s; opacity: 0.45; }
.scene-ac.wind-3 .breeze i { animation-duration: 0.42s; opacity: 1; }

.scene-ac .floor {
  left: 8%;
  right: 8%;
  top: 15%;
  bottom: 7%;
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: linear-gradient(#e7f4fb, #f8fcff);
}
.scene-ac .floor::before {
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  transform: none;
  background:
    linear-gradient(rgba(43, 42, 51, 0.06) 2px, transparent 2px) 0 0 / 72px 72px,
    linear-gradient(90deg, rgba(43, 42, 51, 0.06) 2px, transparent 2px) 0 0 / 72px 72px;
}

.ac-banner,
.billboard,
.vendor,
.doormat,
.ac-window,
.ac-plant { pointer-events: none; }

.ac-banner {
  z-index: 5;
  left: 50%;
  top: 21%;
  transform: translate(-50%, -50%);
  padding: 5px 14px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--ink);
}

.ac-window { left: 8%; top: 16%; width: 132px; height: 72px; }
.ac-plant { left: 86%; top: 16%; width: 70px; height: 78px; }

.billboard {
  z-index: 4;
  width: 112px;
  margin: 0 0 0 -56px;
  padding: 7px 8px 8px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: #fff8e4;
  box-shadow: 3px 3px 0 var(--ink);
  text-align: center;
  transform: translateY(-50%);
}
.billboard b { display: block; font-size: 13px; font-weight: 900; }
.billboard span { display: block; margin-top: 2px; font-size: 11px; font-weight: 800; color: #8a4b2a; }
.billboard.alt { background: #e7fff6; }
.billboard.hot { background: #ffe1d6; }

.vendor {
  z-index: 6;
  width: 70px;
  height: 108px;
  margin: -108px 0 0 -35px;
  border: 3px solid var(--ink);
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(#4aa3e8, #2c74b4);
  box-shadow: 4px 4px 0 rgba(43, 42, 51, 0.16);
}
.vendor b {
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  text-align: center;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.vendor::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 22px;
  height: 48px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background:
    linear-gradient(#ff6b8a, #ff6b8a) 6px 6px / 14px 20px no-repeat,
    linear-gradient(#fff, #fff) 26px 6px / 14px 20px no-repeat,
    linear-gradient(#ffe08a, #ffe08a) 6px 30px / 14px 12px no-repeat,
    linear-gradient(#9dffc8, #9dffc8) 26px 30px / 14px 12px no-repeat,
    #d7f2ff;
}
.vendor::after {
  content: "冰棍";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  text-align: center;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.vendor.vendor-drink { background: linear-gradient(#3ecf9a, #1c8f68); }
.vendor.vendor-drink::after { content: "饮料"; }

.doormat {
  z-index: 2;
  left: 50%;
  top: 89%;
  width: 92px;
  height: 26px;
  margin-left: -46px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: repeating-linear-gradient(90deg, #e7c49a 0 8px, #d7ad78 8px 16px);
  color: #6a4630;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  line-height: 22px;
}

.scene-seeds .radio {
  top: 45%;
  width: min(460px, 36%);
  transform: translate(-50%, -50%);
  z-index: 8;
  pointer-events: none;
}
.radio-screen {
  display: block;
  min-height: 34px;
  overflow: hidden;
  padding: 8px 0;
}
.shell-board { top: 48%; right: 2%; }
.tea-table::before { top: 8px; }
.tea-table::after { top: 28px; }

.table-screen,
.marquee,
.radio-screen { overflow: hidden; white-space: nowrap; }
.table-screen {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 18px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #1b1a22;
}
.gossip {
  display: inline-block;
  white-space: nowrap;
  animation: ticker linear infinite;
}
.radio-screen .gossip { color: var(--sun); font-size: 16px; font-weight: 800; }
.table-screen .gossip { color: #b6ff9a; font-size: 11px; font-weight: 800; line-height: 14px; }
.hot-board {
  z-index: 5;
  left: 50%;
  top: 95.5%;
  width: min(820px, 72%);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: #2b2a33;
  box-shadow: 3px 3px 0 rgba(43, 42, 51, 0.25);
  pointer-events: none;
}
.hot-title {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.hot-board .marquee { flex: 1; min-width: 0; }
.hot-board .gossip { color: #ffe08a; font-size: 14px; font-weight: 800; }

.tea-window,
.tea-menu,
.tea-jars,
.couplet,
.tea-plant,
.paper-rack { pointer-events: none; z-index: 4; }

.tea-window {
  left: 3%;
  top: 4%;
  width: 150px;
  height: 86px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: linear-gradient(#8ecdf8, #d9f0ff);
  overflow: hidden;
}
.tea-window i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  background: #6d8f6a;
}
.tea-window span {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--ink);
  font-size: 11px;
  font-weight: 900;
}
.tea-menu {
  right: 3%;
  top: 4%;
  width: 104px;
  padding: 8px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: #fff6df;
}
.tea-menu b, .tea-menu span { display: block; }
.tea-menu b { text-align: center; font-size: 13px; }
.tea-menu span { margin-top: 3px; color: #7a4426; font-size: 12px; font-weight: 800; }
.tea-menu span::before { content: "· "; }
.tea-jars { left: 3.5%; top: 46%; width: 70px; height: 36px; }
.tea-jars i {
  position: absolute;
  bottom: 0;
  width: 18px;
  height: 28px;
  border: 2px solid var(--ink);
  border-radius: 4px 4px 7px 7px;
  background: #8fd0a4;
}
.tea-jars i:nth-child(2) { left: 22px; height: 34px; background: #f0c36a; }
.tea-jars i:nth-child(3) { left: 44px; background: #e7e2d4; }
.couplet {
  top: 36%;
  width: 34px;
  padding: 10px 4px;
  border: 3px solid var(--ink);
  background: #f3d7a2;
  writing-mode: vertical-rl;
  letter-spacing: 0.18em;
  font-size: 13px;
  font-weight: 900;
}
.couplet.left { left: 1.5%; }
.couplet.right { right: 1.5%; left: auto; }
.tea-plant {
  left: 4%;
  top: 68%;
  width: 28px;
  height: 22px;
  margin-left: 12px;
  border: 3px solid var(--ink);
  border-radius: 4px 4px 10px 10px;
  background: #e07a4a;
}
.tea-plant::before, .tea-plant::after {
  content: "";
  position: absolute;
  bottom: 22px;
  width: 26px;
  height: 40px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #3aaa62;
}
.tea-plant::before { left: 2px; transform: rotate(-16deg); }
.tea-plant::after { right: 2px; transform: rotate(16deg); }
.paper-rack {
  right: 3%;
  top: 48%;
  width: 72px;
  padding: 8px 6px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  transform: rotate(3deg);
}
.paper-rack b, .paper-rack span { display: block; }
.paper-rack b { font-size: 14px; }
.paper-rack span { margin-top: 2px; font-size: 11px; font-weight: 800; color: #7a4426; }

.scene-nap .blades {
  width: 110px;
  height: 110px;
  left: -55px;
  top: 6px;
  transform: none;
  animation: spin 2.4s linear infinite;
}
.scene-nap .blades i { width: 48px; height: 16px; margin-top: -8px; }
.scene-nap .fan { pointer-events: none; z-index: 2; }
.scene-nap .fan-rod { height: 22px; }
.scene-nap .fan-hub { top: 52px; left: -14px; width: 28px; height: 18px; }
.nap-window.b { left: auto; right: 7%; top: 92px; width: 120px; height: 88px; }
.nap-sign, .bookshelf, .poster, .alarm, .nap-plant, .nap-cat, .slippers, .zzz-float { pointer-events: none; }
.nap-sign {
  z-index: 4;
  left: 50%;
  top: 11%;
  transform: translate(-50%, -50%);
  padding: 6px 14px 7px;
  border: 3px solid #d7d3f2;
  border-radius: 14px;
  background: #2a3158;
  color: #fff6df;
  text-align: center;
}
.nap-sign b, .nap-sign span { display: block; }
.nap-sign b { font-size: 16px; }
.nap-sign span { margin-top: 1px; font-size: 11px; font-weight: 800; opacity: 0.8; }
.bookshelf {
  z-index: 3;
  left: 2%;
  top: 30%;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 4px;
  width: 72px;
  height: 92px;
  padding: 8px;
  border: 3px solid #0d0f1c;
  border-radius: 8px;
  background: #3a2a22;
}
.bookshelf i { width: 12px; height: 30px; border: 2px solid #0d0f1c; border-radius: 2px; background: #ff6b4a; }
.bookshelf i:nth-child(2) { background: #ffd36e; height: 34px; }
.bookshelf i:nth-child(3) { background: #7ec8f0; height: 26px; }
.bookshelf i:nth-child(4) { background: #c9b6ff; }
.bookshelf i:nth-child(5) { background: #8fd9b0; height: 32px; }
.poster {
  z-index: 4;
  left: 91%;
  top: 24%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border: 3px solid #0d0f1c;
  border-radius: 50%;
  background: #ffd98a;
  font-size: 26px;
  font-weight: 900;
}
.alarm {
  z-index: 4;
  left: 26%;
  top: 15%;
  width: 34px;
  height: 30px;
  margin-left: -17px;
  border: 3px solid #0d0f1c;
  border-radius: 8px;
  background:
    linear-gradient(#2b2a33, #2b2a33) 50% 46% / 2px 8px no-repeat,
    linear-gradient(#2b2a33, #2b2a33) 62% 50% / 7px 2px no-repeat,
    #fff;
}
.nap-plant {
  z-index: 3;
  right: 3%;
  top: 68%;
  width: 26px;
  height: 20px;
  border: 3px solid #0d0f1c;
  border-radius: 4px 4px 10px 10px;
  background: #e07a4a;
}
.nap-plant::before, .nap-plant::after {
  content: "";
  position: absolute;
  bottom: 18px;
  width: 22px;
  height: 36px;
  border: 3px solid #0d0f1c;
  border-radius: 50%;
  background: #3aaa62;
}
.nap-plant::before { left: 0; transform: rotate(-14deg); }
.nap-plant::after { right: 0; transform: rotate(12deg); }
.nap-cat {
  z-index: 5;
  left: 18%;
  top: 82%;
  width: 62px;
  height: 28px;
  margin: -28px 0 0 -31px;
  border: 3px solid #0d0f1c;
  border-radius: 22px 26px 14px 14px;
  background: #f4efe6;
}
.nap-cat::before {
  content: "";
  position: absolute;
  left: 10px;
  top: -8px;
  width: 10px;
  height: 10px;
  border: 3px solid #0d0f1c;
  border-bottom: 0;
  background: #f4efe6;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.nap-cat::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 8px;
  width: 16px;
  height: 8px;
  border: 3px solid #0d0f1c;
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background: #f4efe6;
}
.slippers { z-index: 3; left: 64%; top: 86%; width: 54px; height: 18px; }
.slippers i {
  position: absolute;
  top: 0;
  width: 22px;
  height: 14px;
  border: 2px solid #0d0f1c;
  border-radius: 10px 12px 8px 8px;
  background: #ffd98a;
}
.slippers i:nth-child(2) { left: 26px; }
.zzz-float { z-index: 3; left: 70%; top: 16%; color: #c9c2ff; font-weight: 900; font-style: italic; }
.zzz-float i { position: absolute; animation: zzz 3s ease-in-out infinite; }
.zzz-float i:nth-child(1) { font-size: 14px; }
.zzz-float i:nth-child(2) { left: 16px; top: -10px; font-size: 22px; animation-delay: -1s; }
.zzz-float i:nth-child(3) { left: 36px; font-size: 15px; animation-delay: -2s; }

.scene-roof .skyline { top: 6%; bottom: auto; height: 44%; }
.scene-roof .railing { top: 48%; height: 7%; }
.scene-roof .roof-floor { top: 54%; }
.scene-roof .tank { left: 79%; right: auto; top: 63%; width: 92px; height: 104px; }
.roof-sign, .bench, .planter, .lights { pointer-events: none; }
.roof-sign {
  z-index: 5;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 4px 12px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff8e8;
  font-weight: 900;
}
.bench {
  z-index: 3;
  left: 16%;
  top: 72%;
  width: 160px;
  height: 26px;
  margin-top: -26px;
  border: 3px solid var(--ink);
  border-radius: 8px 8px 4px 4px;
  background: #c9844a;
}
.bench::before, .bench::after {
  content: "";
  position: absolute;
  bottom: -14px;
  width: 6px;
  height: 14px;
  background: var(--ink);
}
.bench::before { left: 16px; }
.bench::after { right: 16px; }
.planter {
  z-index: 3;
  width: 34px;
  height: 26px;
  margin: -26px 0 0 -17px;
  border: 3px solid var(--ink);
  border-radius: 4px 4px 8px 8px;
  background: #e07a4a;
}
.planter::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -20px;
  width: 22px;
  height: 22px;
  border: 3px solid var(--ink);
  border-radius: 50% 50% 40% 40%;
  background: #3cb371;
}
.planter.l { left: 12%; top: 64%; }
.planter.r { left: 64%; top: 80%; }
.lights { left: 10%; right: 10%; top: 56%; height: 20px; z-index: 4; }
.lights::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-top: 2px dashed rgba(43, 42, 51, 0.4);
}
.lights i {
  position: absolute;
  top: 0;
  width: 12px;
  height: 16px;
  margin-left: -6px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #ffe08a;
  box-shadow: 0 0 12px rgba(255, 210, 90, 0.85);
}
.lights i:nth-child(1) { left: 4%; }
.lights i:nth-child(2) { left: 22%; }
.lights i:nth-child(3) { left: 40%; }
.lights i:nth-child(4) { left: 58%; }
.lights i:nth-child(5) { left: 76%; }
.lights i:nth-child(6) { left: 94%; }

.scene-beach .bg { background: linear-gradient(#7ec8ff 0 18%, #b7e3ff 18% 28%, #ffe7ad 28% 100%); }
.beach-sun, .gulls, .sea, .sand, .palm, .broll, .beach-sign, .buoy, .ball, .castle, .cooler, .shells { pointer-events: none; }
.beach-sun {
  z-index: 1;
  left: 78%;
  top: 8%;
  width: 78px;
  height: 78px;
  margin: -39px 0 0 -39px;
  border-radius: 50%;
  background: #fff3c4;
  box-shadow: 0 0 0 12px rgba(255, 243, 196, 0.35), 0 0 36px #fff3c4;
}
.gulls, .shells { inset: 0; z-index: 2; }
.gulls i {
  position: absolute;
  width: 26px;
  height: 10px;
  border-top: 3px solid var(--ink);
  border-radius: 50%;
  animation: drift 24s linear infinite;
}
.gulls i:nth-child(1) { top: 7%; left: 14%; }
.gulls i:nth-child(2) { top: 12%; left: 42%; animation-duration: 30s; }
.gulls i:nth-child(3) { top: 5%; left: 68%; animation-duration: 18s; }
.sea {
  z-index: 1;
  left: 0;
  right: 0;
  top: 20%;
  height: 13%;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
  background: linear-gradient(#178fc8, #49ccea);
}
.wave {
  position: absolute;
  left: 0;
  width: 200%;
  height: 16px;
  background: radial-gradient(circle at 16px 0, #fff 9px, transparent 10px) 0 0 / 48px 16px repeat-x;
  animation: wave-move 8s linear infinite;
}
.wave { top: 28%; }
.wave.b { top: 62%; opacity: 0.6; animation-duration: 12s; }
.sand { z-index: 1; left: 0; right: 0; top: 31%; bottom: 0; }
.palm {
  z-index: 3;
  width: 14px;
  height: 110px;
  margin: -110px 0 0 -7px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: linear-gradient(#e7a15c, #b56b32);
}
.palm::before, .palm::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 46px;
  height: 24px;
  border: 3px solid var(--ink);
  background: #3cb371;
}
.palm::before { left: -38px; border-radius: 40px 40px 8px 40px; transform: rotate(-24deg); }
.palm::after { right: -38px; border-radius: 40px 40px 40px 8px; transform: rotate(24deg); }
.palm b {
  position: absolute;
  left: 50%;
  top: -26px;
  width: 30px;
  height: 18px;
  margin-left: -15px;
  border: 3px solid var(--ink);
  border-radius: 16px 16px 6px 6px;
  background: #2f9e57;
}
.palm.short { height: 78px; margin-top: -78px; }
.broll {
  z-index: 3;
  width: 100px;
  height: 48px;
  margin-left: -50px;
  border: 3px solid var(--ink);
  border-bottom: 0;
  border-radius: 100px 100px 0 0;
  background: repeating-linear-gradient(90deg, #ff6b8a 0 14px, #fff 14px 28px);
}
.broll::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45px;
  width: 4px;
  height: 58px;
  margin-left: -2px;
  background: var(--ink);
}
.broll.y { background: repeating-linear-gradient(90deg, #ffd15c 0 14px, #fff 14px 28px); }
.broll.m { background: repeating-linear-gradient(90deg, #53c6b8 0 14px, #fff 14px 28px); }
.beach-sign {
  z-index: 4;
  left: 50%;
  top: 17%;
  transform: translate(-50%, -50%);
  padding: 6px 12px 8px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  text-align: center;
  box-shadow: 3px 3px 0 var(--ink);
}
.beach-sign b, .beach-sign span { display: block; }
.beach-sign b { font-size: 16px; }
.beach-sign span { font-size: 12px; font-weight: 800; color: #c45b2a; }
.buoy {
  z-index: 3;
  left: 68%;
  top: 30%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: repeating-linear-gradient(#ff5d4a 0 8px, #fff 8px 16px);
}
.ball {
  z-index: 3;
  left: 30%;
  top: 36%;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: conic-gradient(#fff 0 25%, #ff6b4a 0 50%, #fff 0 75%, #ff6b4a 0);
}
.castle {
  z-index: 4;
  left: 76%;
  top: 86%;
  width: 62px;
  height: 32px;
  margin: -32px 0 0 -31px;
  border: 3px solid var(--ink);
  border-radius: 3px 3px 8px 8px;
  background: #f3d48a;
}
.castle::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: -14px;
  height: 14px;
  border: 3px solid var(--ink);
  border-bottom: 0;
  background: linear-gradient(90deg, #f3d48a 0 8px, transparent 8px 14px, #f3d48a 14px 24px, transparent 24px 30px, #f3d48a 30px);
}
.cooler {
  z-index: 4;
  left: 20%;
  top: 89%;
  width: 74px;
  height: 46px;
  margin: -46px 0 0 -37px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #d9f4ff;
  text-align: center;
}
.cooler b { display: block; margin-top: 2px; font-size: 11px; }
.cooler i {
  display: inline-block;
  width: 10px;
  height: 16px;
  margin: 3px 2px 0;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: #ff5d73;
}
.cooler i:nth-child(3) { background: #fffaf2; }
.cooler i:nth-child(4) { background: #ff9f1c; }
.shells i {
  position: absolute;
  width: 14px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 0 12px 12px 12px;
  background: #fff;
}
.shells i:nth-child(1) { left: 24%; top: 35%; }
.shells i:nth-child(2) { left: 46%; top: 34%; background: #ffe0ea; transform: rotate(16deg); }
.shells i:nth-child(3) { left: 62%; top: 36%; }
.shells i:nth-child(4) { left: 42%; top: 91%; background: #ffe7b0; }

.lounger {
  left: -40px;
  top: -20px;
  width: 82px;
  height: 28px;
  border: var(--line) solid var(--ink);
  border-radius: 14px 18px 8px 8px;
  background: repeating-linear-gradient(90deg, #fff 0 8px, #8fd4f5 8px 16px);
  transform: rotate(-8deg);
}
.lounger::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 12px;
  bottom: -7px;
  height: 7px;
  border: 2px solid var(--ink);
  border-top: 0;
  background: #ead3aa;
}
.scene-beach .seat:not(.occupied) .lounger { opacity: 0.78; }
.cup {
  left: 34px;
  top: -6px;
  z-index: 2;
  width: 13px;
  height: 18px;
  border: 2px solid var(--ink);
  border-radius: 3px 3px 5px 5px;
  background: #ff5d73;
  transform-origin: 50% 100%;
}
.cup::before {
  content: "";
  position: absolute;
  left: 5px;
  top: -9px;
  width: 2px;
  height: 11px;
  background: var(--ink);
  transform: rotate(16deg);
}
.cup::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 2px;
  height: 3px;
  background: rgba(255, 255, 255, 0.75);
}
.seat.drink-coconut .cup { background: #fffaf2; }
.seat.drink-coconut .cup::after { height: 5px; background: #6b3e26; }
.seat.drink-orange .cup { background: #ff9f1c; }
.seat.is-sipping .cup { animation: sip 0.7s ease; }
.scene-beach .towel {
  left: -6px;
  top: -18px;
  width: 48px;
  height: 20px;
  border: var(--line) solid var(--ink);
  border-radius: 10px;
  background: var(--robe, #ffd36e);
}
.scene-beach .occupant { --top: 62px; }
.scene-beach .seat .av-body,
.scene-beach .seat .arm,
.scene-beach .seat .leg { display: none; }
.scene-beach .seat .av-head { left: -28px; top: -40px; }
.scene-beach .seat.is-turned .av-head { transform: rotate(16deg) translate(3px, 2px); }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes breeze { 50% { opacity: 0.2; scale: 0.8; } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes sip { 40% { transform: rotate(-16deg) translateY(-5px); } }
@keyframes wave-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes zzz {
  0% { opacity: 0; transform: translateY(6px); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-18px); }
}

/* =====================================================================
   牛马新天地 · 新增样式（赞助 / 分场 / 等级 / 小目标 / 场景修正）
   ===================================================================== */

.btn-accent { background: var(--accent, var(--sun)); }

/* ---------- 大厅：小目标 ---------- */
.goals { margin-top: 22px; padding: 16px 18px; max-width: 560px; }
.goals-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.goals-head b { font-size: 16px; font-weight: 900; }
.goals-head span { font-size: 12px; font-weight: 700; color: var(--muted); }
.goals-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.goals-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.goals-list li i {
  display: grid; place-items: center; flex: 0 0 22px; height: 22px;
  border: 2px solid var(--ink); border-radius: 7px; background: #fff;
  font-style: normal; font-size: 13px; font-weight: 900;
}
.goals-list li span { flex: 1; }
.goals-list li b { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); }
.goals-list li.done i { background: var(--mint); }
.goals-list li.done span { text-decoration: line-through; color: var(--muted); }
.goals.all-done { background: #FFF6D8; }

/* ---------- 工牌：等级 ---------- */
.rank { margin-top: 16px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 14px; background: #FFF6E5; }
.rank-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rank-top b { font-size: 16px; font-weight: 900; color: #B2401F; }
.rank-top span { font-size: 12px; font-weight: 800; color: var(--muted); }
.rank-bar { display: block; height: 10px; margin: 8px 0 6px; border: 2px solid var(--ink); border-radius: 99px; background: #fff; overflow: hidden; }
.rank-bar i { display: block; height: 100%; width: 3%; background: var(--coral); transition: width 0.4s ease; }
.rank small { font-size: 12px; font-weight: 700; color: var(--muted); }

/* ---------- 场所卡片：赞助行 / 分场 / 即将开业 ---------- */
.sponsor-line {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  margin-top: 12px; padding: 5px 10px;
  border: 2px dashed rgba(43, 42, 51, 0.35); border-radius: 10px; background: #fff;
  font-size: 12px; font-weight: 700; color: var(--muted); text-align: left;
}
.sponsor-line b { color: var(--ink); font-weight: 900; }
.sponsor-line u { margin-left: 4px; color: var(--coral); text-decoration: none; font-weight: 900; }
.sponsor-line:hover { border-color: var(--ink); color: var(--ink); }
.sp-dot { display: inline-block; width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: 50%; background: var(--sun); flex: 0 0 auto; }
.demo-tag { margin-left: 4px; padding: 0 6px; border-radius: 6px; background: var(--ink); color: #fff; font-style: normal; font-size: 11px; }
.room-lines { font-size: 12px; font-weight: 700; color: var(--muted); }
.room-card.is-soon .room-art { filter: saturate(0.55); }
.room-card.is-soon .btn-enter { background: #fff; }
.soon-stamp {
  position: absolute; right: 14px; bottom: 14px;
  padding: 6px 14px; border: 3px solid var(--coral); border-radius: 10px;
  background: rgba(255, 255, 255, 0.92); color: var(--coral);
  font-size: 18px; font-weight: 900; letter-spacing: 0.14em; transform: rotate(-8deg);
}
.room-card-ac, .room-card-yours { grid-column: span 2; }
.room-card-yours { border-style: dashed; background: #FFFDF8; }
.yours-art {
  display: grid; place-items: center; height: 160px;
  background: repeating-linear-gradient(-45deg, #FFF1C9 0 14px, #FFF8E6 14px 28px);
}
.yours-art span { font-size: 26px; font-weight: 900; text-align: center; line-height: 1.25; color: #B2401F; }
.art-bubble { animation: art-bubble 3.6s ease-in infinite; animation-delay: calc(var(--i) * -0.27s); }
@keyframes art-bubble { from { transform: translateY(40px); opacity: 0; } 30% { opacity: 0.7; } to { transform: translateY(-60px); opacity: 0; } }

/* ---------- 招商区 ---------- */
.partner { padding-top: 36px; padding-bottom: 8px; }
.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tier { position: relative; padding: 20px 22px; }
.tier h3 { margin: 8px 0 6px; font-size: 21px; font-weight: 900; }
.tier p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted); }
.tier ul { margin: 12px 0 0; padding-left: 18px; font-size: 13px; font-weight: 700; line-height: 1.8; }
.tier-no { font: 900 13px/1 var(--mono); color: var(--coral); letter-spacing: 0.1em; }
.tier-hot { background: #FFF1C9; }
.partner-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.partner-cta span { font-size: 13px; font-weight: 700; color: var(--muted); }
.btn-partner { background: var(--coral); color: #fff; font-size: 16px; padding: 12px 22px; }

/* ---------- 弹窗 / 提示 ---------- */
.modal { position: fixed; inset: 0; z-index: 950; display: grid; place-items: center; padding: 20px; background: rgba(43, 42, 51, 0.45); }
.modal-card { position: relative; width: min(460px, 100%); max-height: calc(100dvh - 40px); overflow: auto; padding: 24px 24px 20px; }
.modal-card h3 { margin: 4px 0 8px; font-size: 22px; font-weight: 900; }
.modal-card p { margin: 0 0 10px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.modal-kicker { font-size: 12px !important; font-weight: 900; letter-spacing: 0.08em; color: var(--coral) !important; margin: 0 !important; }
.modal-note { font-size: 12px !important; }
.modal-x { position: absolute; right: 12px; top: 10px; width: 32px; height: 32px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; font-size: 20px; line-height: 1; }
.modal-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.modal-acts a { text-decoration: none; color: var(--ink); }
.contact-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; padding: 0; list-style: none; }
.contact-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; background: #FFF8EC; }
.contact-list span { font-size: 12px; font-weight: 900; color: var(--muted); }
.contact-list b { flex: 1; font-size: 14px; word-break: break-all; }
.sponsor-hero {
  display: flex; flex-direction: column; gap: 4px; margin: -4px 0 14px; padding: 18px;
  border: var(--line) solid var(--ink); border-radius: 16px; background: var(--sp); color: #fff;
}
.sponsor-hero b { font-size: 26px; font-weight: 900; -webkit-text-stroke: 0.5px var(--ink); }
.sponsor-hero span { font-size: 14px; font-weight: 800; }

.toast {
  position: fixed; z-index: 960; left: 50%; bottom: 120px; margin: 0;
  padding: 10px 18px; border: var(--line) solid var(--ink); border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 14px;
  box-shadow: 3px 3px 0 var(--coral);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease; white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- HUD：赞助 / 分场 ---------- */
.hud-sponsor {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: var(--line) solid var(--ink); border-radius: 999px;
  background: #fff; font-size: 13px; font-weight: 700; white-space: nowrap;
  box-shadow: 3px 3px 0 var(--sp, var(--ink));
}
.hud-sponsor b { font-weight: 900; }
.hud-sponsor.is-open { border-style: dashed; color: var(--muted); box-shadow: none; background: rgba(255, 255, 255, 0.85); }
.chip-line { cursor: pointer; background: var(--ink); color: #fff; gap: 8px; }
.chip-line small { font-size: 11px; font-weight: 800; opacity: 0.75; }
.chip-line:hover { background: #45434f; }
.chip.is-hot { background: #FFE1D6; }

.line-panel {
  position: absolute; z-index: 80; top: 76px; right: 16px; width: min(340px, calc(100% - 24px));
  padding: 16px;
}
.line-head { display: flex; justify-content: space-between; align-items: center; }
.line-head b { font-size: 17px; font-weight: 900; }
.line-x { width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; font-size: 18px; line-height: 1; }
.line-tip { margin: 6px 0 10px; font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.6; }
.line-list { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow: auto; margin: 0 0 12px; padding: 0; list-style: none; }
.line-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; }
.line-list li.is-here { background: #FFF1C9; }
.line-list li b { flex: 0 0 52px; font-size: 14px; font-weight: 900; }
.line-meter { flex: 1; height: 8px; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; background: #F6F0E6; }
.line-meter i { display: block; height: 100%; background: var(--accent, var(--sun)); }
.line-list small { font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); }
.line-here, .line-full { font-size: 12px; font-weight: 900; color: var(--muted); }
.line-full { color: var(--coral); }
.line-share { width: 100%; justify-content: center; }

.notice {
  position: absolute; z-index: 85; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(400px, calc(100% - 32px)); padding: 20px; text-align: center;
}
.notice b { display: block; font-size: 20px; font-weight: 900; }
.notice p { margin: 8px 0 14px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.notice-acts { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

/* ---------- 表情条 ---------- */
.emos {
  position: absolute; z-index: 50; left: 14px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 6px; padding: 6px;
  border: var(--line) solid var(--ink); border-radius: 16px; background: rgba(255, 255, 255, 0.92);
  box-shadow: 3px 3px 0 var(--ink);
}
.emo { width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; font-size: 22px; line-height: 1; }
.emo:hover { background: #F6F0E6; transform: scale(1.12); }
.emo:active { transform: scale(0.92); }
.float.emo { padding: 0; border: 0; background: none; font-size: 30px; animation-duration: 1.8s; }

/* ---------- 广告牌（可点） ---------- */
.scene .billboard { pointer-events: auto; cursor: pointer; transition: transform 0.15s ease; }
.scene .billboard:hover { transform: translateY(-50%) scale(1.06); }
.billboard.is-cta { background: #fff; border-style: dashed; }
.billboard.is-cta b { color: var(--coral); }
.billboard.is-sponsor { background: var(--accent); color: #fff; }
.billboard.is-sponsor span { color: #fff; opacity: 0.9; }
.billboard .float { left: 50%; top: -10px; }
.ad-board { z-index: 6; width: 220px; margin-left: -110px; padding: 10px 10px 12px; }
.ad-board b { font-size: 22px; }
.ad-board span { font-size: 15px; }
.ad-board::after {
  content: "AD"; position: absolute; right: -8px; top: -8px;
  padding: 0 5px; border: 2px solid var(--ink); border-radius: 6px; background: var(--sun);
  font: 900 10px/16px var(--mono);
}
.billboard.ad-roof { width: 300px; margin-left: -150px; padding: 18px 12px; background: #2B2A33; color: #FFD36E; border-color: #1a1a20; box-shadow: 0 0 24px rgba(255, 211, 110, 0.5); }
.billboard.ad-roof b { font-size: 30px; color: #FFD36E; }
.billboard.ad-roof span { color: #fff; font-size: 18px; }
.ad-roof::before { content: ""; position: absolute; left: 50%; top: 100%; width: 10px; height: 90px; margin-left: -5px; background: #3b3346; border: 2px solid #1a1a20; z-index: -1; }
.billboard.ad-nap { background: #2D3560; color: #E8E4FF; border-color: #0D0F1C; }
.ad-nap span { color: #B9B3E8; }

/* ---------- 空调房：横幅上墙、贩卖机文案、品牌气泡 ---------- */
.scene-ac .ac-banner { top: 7.5%; font-size: 18px; padding: 6px 20px; }
.venue-soda .scene-ac .ac-banner, .scene-ac .ac-banner { background: #fff; }
.room.venue-soda .ac-banner { background: var(--accent); color: #fff; }
.room.venue-soda .scene .bg { filter: hue-rotate(160deg) saturate(1.2); }
.room.venue-soda .vendor { background: linear-gradient(#f0524a, #b8221d); }
.room.venue-soda .chair::after, .room.venue-soda .quilt { filter: hue-rotate(150deg); }
.vendor::after { content: attr(data-label); }
.bubbles { inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
.bubbles i {
  position: absolute; bottom: -40px; width: var(--z); height: var(--z);
  border: 2px solid rgba(255, 255, 255, 0.9); border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0 18%, rgba(255, 255, 255, 0.25) 20%);
  animation: bubble-up var(--d) linear infinite; animation-delay: calc(var(--i) * -0.45s);
}
@keyframes bubble-up { to { transform: translate(18px, -1500px); } }

/* ---------- 日光浴：遮阳伞、招牌落地 ---------- */
.beach-sign { top: 96%; }
.umbrellas { inset: 0; pointer-events: none; }
.umbrella {
  position: absolute; width: 4px; height: 46px; margin: -46px 0 0 -2px;
  background: var(--ink); border-radius: 2px;
}
.umbrella::before {
  content: ""; position: absolute; left: -48px; top: -18px; width: 100px; height: 34px;
  border: 3px solid var(--ink); border-radius: 60px 60px 6px 6px;
  background: repeating-linear-gradient(90deg, var(--u1) 0 16px, #fff 16px 32px);
}
.umbrella::after {
  content: ""; position: absolute; left: -34px; top: 40px; width: 72px; height: 14px;
  border-radius: 50%; background: rgba(120, 80, 20, 0.14);
}
.umbrella.c1 { --u1: #FF6B8A; }
.umbrella.c2 { --u1: #53C6B8; }
.umbrella.c3 { --u1: #FFC845; }

/* ---------- 瓜子茶馆：中间的热搜大屏 ---------- */
.hot-screen {
  z-index: 8; left: 50%; top: 45%; width: 300px; margin-left: -150px; transform: translateY(-50%);
  padding: 14px 14px 12px; border: 4px solid var(--ink); border-radius: 18px;
  background: #1B1A22; color: #fff; box-shadow: 0 0 0 6px #6B3A24, 6px 10px 0 6px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}
.hot-screen-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.hot-screen-head b { font-size: 20px; font-weight: 900; color: var(--sun); letter-spacing: 0.08em; }
.hot-live { padding: 1px 7px; border-radius: 6px; background: #E8483A; font: 900 11px/18px var(--mono); animation: twinkle 1.6s ease infinite; }
.hot-list { display: flex; flex-direction: column; gap: 7px; margin: 0 0 10px; padding: 0; list-style: none; }
.hot-list li { display: flex; gap: 8px; align-items: baseline; font-size: 15px; font-weight: 700; line-height: 1.35; animation: feed-in 0.4s ease; }
.hot-list em { flex: 0 0 22px; font: 900 15px/1 var(--mono); font-style: normal; color: #9C98A8; text-align: right; }
.hot-list em.top { color: #FF7A4A; }
.hot-list span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hot-screen .radio-screen { padding: 6px 8px; border-radius: 8px; background: #000; }
.hot-screen .radio-screen .gossip { font-size: 13px; }

/* ---------- 天台：可以坐的长椅 ---------- */
.scene-roof .bench { display: none; }
.roof-bench {
  z-index: 3; width: 150px; height: 24px; margin: -6px 0 0 -75px;
  border: 3px solid var(--ink); border-radius: 8px 8px 4px 4px;
  background: repeating-linear-gradient(90deg, #c9844a 0 22px, #b5733d 22px 25px);
  pointer-events: none;
}
.roof-bench::before, .roof-bench::after { content: ""; position: absolute; bottom: -16px; width: 6px; height: 14px; background: var(--ink); }
.roof-bench::before { left: 16px; }
.roof-bench::after { right: 16px; }
.planter.r { left: 30%; top: 88%; }
.scene-roof .seat .leg,
.scene-roof .seat .arm { display: block; }
.scene-roof .seat .occupant { --top: 72px; }
.scene-roof .seat .av-body { top: -32px; height: 26px; border-radius: 14px 14px 12px 12px; }
.scene-roof .seat .av-head { top: -62px; }
.scene-roof .seat .leg { top: -8px; width: 20px; height: 12px; border-radius: 8px; transform: none; z-index: 2; }
.scene-roof .seat .leg-l { left: -30px; }
.scene-roof .seat .leg-r { left: 10px; }
.scene-roof .seat .leg::after { left: 3px; right: auto; bottom: -12px; width: 14px; height: 9px; }
.scene-roof .seat .arm { top: -30px; height: 16px; }
.scene-roof .seat.is-open::after {
  content: ""; position: absolute; left: -16px; top: -14px; width: 32px; height: 14px;
  border: 2px dashed rgba(43, 42, 51, 0.45); border-radius: 8px;
}

@media (max-width: 960px) {
  .partner-grid { grid-template-columns: 1fr; }
  .hud-sponsor { order: 4; }
  .line-panel { top: 128px; }
}
@media (max-width: 640px) {
  .room-card-ac { grid-column: auto; }
  .hud-sponsor { font-size: 12px; padding: 4px 10px; }
  .hud-right #sound { display: none; }
  .emos { left: 6px; padding: 4px; gap: 2px; }
  .emo { width: 32px; height: 32px; font-size: 19px; }
  .toast { bottom: 150px; }
  .goals { padding: 14px; }
}

.scene-beach .cooler { left: 8%; top: 95%; }
.scene-beach .castle { left: 90%; top: 95%; }
.hot-screen { width: 360px; margin-left: -180px; }
.hot-screen .hot-title { padding: 0; border: 0; background: none; box-shadow: none; font-size: 22px; color: var(--sun); }
.hot-list li { font-size: 17px; }

/* =====================================================================
   第二版：更有活力的牛马 · 带薪蹲坑 · 老板巡查 · 徽章 · 战报 · 拖动视角
   ===================================================================== */

/* ---------- 拖动视角 ---------- */
.scene { touch-action: none; cursor: grab; }
.scene.is-dragging { cursor: grabbing; }
.scene.is-dragging .world { transition: none; }

/* ---------- 牛马长相：牛角 / 马耳 / 配饰 / 嘴型 ---------- */
.av-head { overflow: visible; transform-origin: 50% 100%; }
.av-hair { left: 0; right: 0; top: 0; height: 46%; border-radius: 15px 15px 40% 60% / 14px 14px 60% 40%; }
.av-horns, .av-acc { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.av-horns::before, .av-horns::after { content: ""; position: absolute; border: 2px solid var(--ink); }
.k-cow .av-horns::before, .k-cow .av-horns::after {
  top: -10px; width: 9px; height: 13px; background: #FFF3D6; border-radius: 60% 60% 15% 15%;
}
.k-cow .av-horns::before { left: -5px; rotate: -32deg; }
.k-cow .av-horns::after { right: -5px; rotate: 32deg; }
.k-horse .av-horns::before, .k-horse .av-horns::after {
  top: -12px; width: 9px; height: 15px; background: var(--hair); border-radius: 50% 50% 25% 25% / 85% 85% 15% 15%;
}
.k-horse .av-horns::before { left: 1px; rotate: -14deg; }
.k-horse .av-horns::after { right: 1px; rotate: 14deg; }
/* 配饰 */
.acc-1 .av-acc::before { /* 墨镜 */
  content: ""; position: absolute; left: 3px; right: 3px; top: 12px; height: 8px;
  border-radius: 3px 3px 7px 7px; background: linear-gradient(110deg, #1d1c24 60%, #5b5a66 62%, #1d1c24 70%);
}
.acc-2 .av-acc::before { /* "摸鱼"头带 */
  content: "摸鱼"; position: absolute; left: -3px; right: -3px; top: 5px; height: 8px;
  background: #E8483A; border: 1.5px solid var(--ink); border-radius: 3px;
  color: #fff; font: 900 6px/6px var(--font); text-align: center; letter-spacing: 1px;
}
.acc-3 .av-acc::before { /* 黑眼圈 */
  content: ""; position: absolute; left: 5px; right: 5px; top: 19px; height: 5px;
  background:
    radial-gradient(ellipse at 15% 40%, rgba(70, 60, 110, 0.55) 3px, transparent 4px),
    radial-gradient(ellipse at 85% 40%, rgba(70, 60, 110, 0.55) 3px, transparent 4px);
}
.acc-4 .av-acc::before { /* 冷汗 */
  content: ""; position: absolute; right: -4px; top: 6px; width: 6px; height: 9px;
  border: 1.5px solid var(--ink); border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
  background: #8FD3F0; animation: sweat 2.4s ease-in infinite;
}
.acc-5 .av-acc::before { /* 牛鼻环 */
  content: ""; position: absolute; left: 50%; top: 21px; width: 8px; height: 8px; margin-left: -4px;
  border: 2px solid #E0A800; border-top-color: transparent; border-radius: 50%;
}
/* 嘴型 */
.m-1 .av-face::after { width: 6px; height: 6px; margin-left: -3px; border: 2px solid var(--ink); border-radius: 50%; background: #9A3B3B; }
.m-2 .av-face::after { width: 10px; height: 5px; margin-left: -5px; border: 0; background:
  radial-gradient(circle at 25% 0, transparent 2.5px, var(--ink) 2.6px, var(--ink) 3.8px, transparent 4px),
  radial-gradient(circle at 75% 0, transparent 2.5px, var(--ink) 2.6px, var(--ink) 3.8px, transparent 4px); }
.m-3 .av-face::after { width: 11px; height: 6px; margin-left: -5.5px; border: 2px solid var(--ink); border-top-width: 1px; border-radius: 2px 2px 8px 8px; background: linear-gradient(#fff 40%, #E86A6A 40%); }

/* ---------- 活力：眨眼、呼吸、待机晃、走路蹦 ---------- */
.av-face { animation: blink 4.2s infinite; animation-delay: var(--blink, 0s); transform-origin: 50% 30%; }
.scene-nap .av-face { animation: none; }
.walker:not(.walking) .av { animation: idle-bob 2.6s ease-in-out infinite; animation-delay: var(--idle, 0s); }
.walker.walking .av { animation: walk-hop 0.36s ease-in-out infinite; }
.walker.face-l:not(.walking) .av, .walker.face-l.walking .av { transform: scaleX(-1); }
.walker.walking .arm-l { animation: arm-swing 0.36s ease-in-out infinite; }
.walker.walking .arm-r { animation: arm-swing 0.36s ease-in-out infinite reverse; }
.seat.occupied .av-body { animation: breathe 3.2s ease-in-out infinite; animation-delay: var(--idle, 0s); transform-origin: 50% 100%; }
.seat.occupied .av-head { animation: head-tilt 7s ease-in-out infinite; animation-delay: var(--idle, 0s); }
.scene-nap .seat.occupied .av-head { animation: none; }

/* 随机小动作 */
.goof-jump .av { animation: goof-jump 0.7s ease !important; }
.goof-look .av-head { animation: goof-look 1.4s ease !important; }
.goof-stretch .arm-l { animation: stretch-l 1.4s ease !important; }
.goof-stretch .arm-r { animation: stretch-r 1.4s ease !important; }
.goof-stretch .av { animation: stretch-body 1.4s ease !important; }
.goof-yawn .av-face::after { width: 8px !important; height: 9px !important; margin-left: -4px !important; border: 2px solid var(--ink) !important; border-radius: 50% !important; background: #9A3B3B !important; }
.goof-scratch .arm-r { animation: scratch 0.5s ease 3 !important; }

/* ---------- 整活 ---------- */
.fun-dance .av { animation: dance 0.45s ease-in-out 7 !important; }
.fun-dance .arm-l { animation: dance-arm 0.45s ease-in-out 7 !important; }
.fun-dance .arm-r { animation: dance-arm 0.45s ease-in-out 7 reverse !important; }
.fun-flop .av { animation: flop 3.2s ease forwards !important; }
.fun-crazy .av { animation: crazy 2.6s ease-in-out !important; }
.fun-crazy .av-head { animation: crazy-head 0.18s linear 14 !important; }
.fun-dead .av { animation: dead 4.2s ease forwards !important; }
.fun-dead .av-face { animation: none; background:
  linear-gradient(45deg, transparent 40%, var(--ink) 40% 60%, transparent 60%) 0 50% / 7px 7px no-repeat,
  linear-gradient(-45deg, transparent 40%, var(--ink) 40% 60%, transparent 60%) 0 50% / 7px 7px no-repeat,
  linear-gradient(45deg, transparent 40%, var(--ink) 40% 60%, transparent 60%) 100% 50% / 7px 7px no-repeat,
  linear-gradient(-45deg, transparent 40%, var(--ink) 40% 60%, transparent 60%) 100% 50% / 7px 7px no-repeat !important; height: 8px; }
.fun-cry .av-face::before { height: 22px !important; top: 4px !important; background:
  linear-gradient(#5BB8F0, #5BB8F0) 12% 0 / 3px 100% no-repeat,
  linear-gradient(#5BB8F0, #5BB8F0) 88% 0 / 3px 100% no-repeat !important; animation: tears 0.5s linear infinite; }
.fun-cry .av { animation: sob 0.3s ease-in-out 10 !important; }
.float.ghost { padding: 0; border: 0; background: none; font-size: 26px; animation: ghost-up 2.6s ease forwards; }

/* ---------- 老板巡查 ---------- */
.boss-npc { position: absolute; z-index: 60; --top: 120px; width: 0; height: 0; animation: boss-walk 10s linear forwards; scale: 1.35; }
.boss-npc.from-r { animation-name: boss-walk-r; }
.boss-npc.from-r .av { transform: scaleX(-1); }
.boss-npc .av { animation: walk-hop 0.5s ease-in-out infinite; }
.boss-npc .av-body { background: #2B2A33; }
.boss-npc .av-body::after { width: 6px; left: 50%; margin-left: -3px; background: #E8483A; top: 4px; bottom: 6px; }
.boss-npc .av-hair { height: 30%; background: #555; }
.boss-npc .leg, .boss-npc .arm { background: #2B2A33; }
.boss-cup { position: absolute; left: 18px; top: -46px; width: 12px; height: 20px; border: 2px solid var(--ink); border-radius: 3px 3px 5px 5px; background: #C9D3DB; }
.boss-say { position: absolute; left: 0; bottom: 120px; translate: -50% 0; padding: 4px 12px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; font-size: 14px; font-weight: 900; white-space: nowrap; animation: boss-say 10s ease forwards; }
.boss-alert {
  position: absolute; z-index: 90; left: 50%; top: 22%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 30px 18px; border: 4px solid var(--ink); border-radius: 22px;
  background: #E8483A; color: #fff; box-shadow: 6px 6px 0 var(--ink); overflow: hidden;
  animation: alarm 0.5s ease-in-out infinite alternate;
}
.boss-alert b { font-size: 30px; font-weight: 900; letter-spacing: 0.06em; }
.boss-alert span { font-size: 15px; font-weight: 800; }
.boss-alert kbd { border-color: #fff; }
.boss-alert i { position: absolute; left: 0; bottom: 0; height: 6px; width: 100%; background: #FFD36E; transform-origin: 0 50%; }
.boss-alert.run i { animation: countdown 4.5s linear forwards; }
.is-busy .occupant::after, .walker.is-busy::before {
  content: "💻"; position: absolute; left: -12px; top: -40px; font-size: 22px; z-index: 4;
}
.is-caught .occupant::after, .walker.is-caught::before {
  content: "抓到了"; position: absolute; left: -26px; top: -110px; z-index: 6;
  padding: 2px 6px; border: 3px solid #E8483A; border-radius: 6px; background: rgba(255, 255, 255, 0.9);
  color: #E8483A; font-size: 13px; font-weight: 900; rotate: -12deg; white-space: nowrap;
}

/* ---------- 表情条里的整活按钮 ---------- */
.emos-sep { font-size: 10px; font-weight: 900; color: var(--muted); text-align: center; padding-top: 4px; border-top: 2px dashed rgba(43, 42, 51, 0.2); }
.emo.fun { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 46px; }
.emo.fun span { font-size: 20px; line-height: 1; }
.emo.fun small { font-size: 10px; font-weight: 900; color: var(--muted); }

/* ---------- 徽章墙 ---------- */
.badge-wall { margin-top: 14px; }
.badge-head { display: flex; justify-content: space-between; align-items: baseline; }
.badge-head b { font-size: 13px; font-weight: 900; color: var(--muted); letter-spacing: 0.06em; }
.badge-head span { font: 800 12px var(--mono); color: var(--muted); }
.badges { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 8px; }
.badge {
  display: grid; place-items: center; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 12px;
  background: #F2EDE4; font-size: 20px; filter: grayscale(1); opacity: 0.35; cursor: help;
}
.badge.got { filter: none; opacity: 1; background: #FFF1C9; box-shadow: 2px 2px 0 var(--ink); }

/* ---------- 战报 ---------- */
.report { text-align: center; }
.report-kicker { font-size: 12px !important; font-weight: 900; letter-spacing: 0.08em; color: var(--coral) !important; }
.report-avatar { position: relative; width: 110px; height: 120px; margin: 4px auto 0; border: var(--line) solid var(--ink); border-radius: 20px; background: radial-gradient(circle at 50% 80%, #FFE0A8, #FFF6E5 70%); }
.report-avatar .av { left: 50%; top: 104px; scale: 1.3; }
.report-name { margin: 8px 0 0 !important; font-weight: 900; color: var(--ink) !important; }
.report h3 { font-size: 26px; color: #B2401F; }
.report-line { font-style: italic; }
.report-facts { margin: 12px 0 4px; padding: 12px 14px; list-style: none; border: 2px dashed rgba(43, 42, 51, 0.3); border-radius: 14px; text-align: left; font-size: 14px; line-height: 1.9; }
.report-facts b { color: #B2401F; }
.report .modal-acts { justify-content: center; }

/* ---------- 带薪蹲坑 ---------- */
.room.is-toilet { --accent: #7BC67B; }
.scene-toilet .bg {
  background:
    linear-gradient(rgba(255, 255, 255, 0.5) 2px, transparent 2px) 0 0 / 60px 60px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 2px, transparent 2px) 0 0 / 60px 60px,
    linear-gradient(#CDEBD6 0 14%, #E9F4EC 14%);
}
.scene-toilet .floor { left: 0; right: 0; top: 14%; bottom: 0; background:
  repeating-linear-gradient(45deg, rgba(43, 42, 51, 0.035) 0 20px, transparent 20px 40px); }
.toilet-wall { left: 0; right: 0; top: 0; height: 14%; border-bottom: 4px solid #9CC9A8; pointer-events: none; }
.graffiti { position: absolute; rotate: var(--r); font: 800 17px/1.2 "Kaiti SC", "STKaiti", "KaiTi", var(--font); color: #3E6E4B; opacity: 0.78; white-space: nowrap; }
.toilet-sign, .flush-board, .sinks, .mop, .wet-sign { pointer-events: none; }
.toilet-sign {
  left: 50%; top: 92%; transform: translate(-50%, -50%); z-index: 4; padding: 6px 16px 8px;
  border: 3px solid var(--ink); border-radius: 12px; background: #fff; text-align: center; box-shadow: 3px 3px 0 var(--ink);
}
.toilet-sign b, .toilet-sign span { display: block; }
.toilet-sign b { font-size: 20px; font-weight: 900; }
.toilet-sign span { font-size: 12px; font-weight: 800; color: #3E8E57; }
.flush-board {
  left: 3%; top: 91%; transform: translateY(-50%); z-index: 4; display: flex; align-items: baseline; gap: 6px;
  padding: 8px 14px; border: 3px solid var(--ink); border-radius: 12px; background: #E7F7FF; box-shadow: 3px 3px 0 var(--ink);
}
.flush-board small { font-size: 13px; font-weight: 800; color: #2E6E8E; }
.flush-board b { font-size: 30px; font-weight: 900; color: #1C9AD4; font-variant-numeric: tabular-nums; }
.sinks { right: 3%; top: 86%; display: flex; gap: 10px; z-index: 4; }
.sinks i { width: 56px; height: 30px; border: 3px solid var(--ink); border-radius: 4px 4px 22px 22px; background: #fff; position: relative; }
.sinks i::before { content: ""; position: absolute; left: 50%; top: -14px; width: 6px; height: 14px; margin-left: -3px; background: #9AA3AE; border: 2px solid var(--ink); border-radius: 3px; }
.mop { left: 72%; top: 92%; width: 8px; height: 90px; margin-top: -90px; background: #B5733D; border: 2px solid var(--ink); border-radius: 4px; rotate: 12deg; z-index: 4; }
.mop::after { content: ""; position: absolute; left: -16px; bottom: -14px; width: 36px; height: 18px; border: 2px solid var(--ink); border-radius: 4px 4px 12px 12px; background: repeating-linear-gradient(90deg, #ddd 0 4px, #bbb 4px 8px); }
.wet-sign { left: 78%; top: 92%; margin-top: -54px; padding: 18px 6px 6px; width: 64px; border: 3px solid var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); background: #FFD23F; font-size: 11px; font-weight: 900; text-align: center; z-index: 4; }

.stall { left: -70px; top: -176px; width: 140px; height: 176px; pointer-events: none; }
.stall::before { /* 隔板 + 后墙 */
  content: ""; position: absolute; inset: 0; border: 3px solid var(--ink); border-bottom: 0; border-radius: 6px 6px 0 0;
  background: linear-gradient(#BFE3C9, #A9D6B6);
}
.stall-pan { position: absolute; left: 50%; bottom: 8px; width: 54px; height: 22px; margin-left: -27px; border: 3px solid var(--ink); border-radius: 50%; background: radial-gradient(ellipse at 50% 60%, #8FA3AE 0 35%, #fff 38%); }
.stall-door-open { position: absolute; right: -14px; top: 64px; width: 22px; height: 106px; border: 3px solid var(--ink); border-radius: 3px; background: #5FB97A; transform: skewY(-14deg); }
.stall-sign { position: absolute; left: 50%; top: 10px; translate: -50% 0; padding: 1px 8px; border: 2px solid var(--ink); border-radius: 6px; background: #3CC86B; color: #fff; font-size: 12px; font-weight: 900; }
.seat.occupied .stall-door-open, .seat.occupied .stall-sign, .seat.occupied .stall-pan { display: none; }
.scene-toilet .seat:not(.occupied) .stall::before { filter: brightness(1.04); }
.scene-toilet .seat.is-open:hover .stall::before { background: linear-gradient(#D5F5DE, #BDE8C8); }
.scene-toilet .seat::before { left: -70px; top: -176px; width: 140px; height: 176px; }
.scene-toilet .occupant { --top: 98px; }
.scene-toilet .seat .leg, .scene-toilet .seat .arm { display: none; }
.scene-toilet .seat .av-body { top: -52px; }
.scene-toilet .seat .av-head { top: -82px; }
.stall-door {
  left: -66px; top: -50px; width: 132px; height: 42px; z-index: 3;
  border: 3px solid var(--ink); border-radius: 4px; background: #5FB97A;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.12);
}
.stall-door b { position: absolute; left: 50%; top: -14px; translate: -50% 0; padding: 1px 8px; border: 2px solid var(--ink); border-radius: 6px; background: #E8483A; color: #fff; font-size: 12px; font-weight: 900; white-space: nowrap; }
.shoes { position: absolute; left: 50%; bottom: -12px; width: 40px; height: 9px; margin-left: -20px;
  background: radial-gradient(ellipse at 22% 50%, #3C3A46 8px, transparent 9px), radial-gradient(ellipse at 78% 50%, #3C3A46 8px, transparent 9px); }
.phone { display: none; left: 14px; top: -64px; width: 12px; height: 20px; z-index: 4; border: 2px solid var(--ink); border-radius: 3px; background: #7CF5E5; box-shadow: 0 0 14px 4px rgba(124, 245, 229, 0.7); }
.scene-toilet .seat.is-turned .phone { display: block; }
.scene-toilet .seat.is-turned .av-head { rotate: 0deg; translate: 0 4px; }
.need-paper { display: none; left: 22px; top: -112px; font-style: normal; font-size: 20px; z-index: 6; animation: hop 0.8s ease infinite; }
.needs-paper .need-paper { display: block; }
.is-pushing .av-head { background: #FF9A8A !important; animation: shiver 0.08s linear infinite !important; }
.is-pushing .av-face::after { width: 10px !important; height: 2px !important; margin-left: -5px !important; border: 0 !important; background: var(--ink) !important; }
.is-flushing .stall-door { animation: shiver 0.1s linear 10; }
.is-flushing .occupant::before { content: ""; position: absolute; left: -40px; top: -20px; width: 80px; height: 20px; border-radius: 50%; border: 3px solid #4FB3E8; z-index: 5; animation: swirl 1.2s ease-out forwards; }
.paper-roll { position: absolute; z-index: 50; font-size: 30px; animation: paper-fly 0.9s cubic-bezier(.3,.7,.4,1) forwards; }
.float.push { background: #FFE1D6; }

/* ---------- keyframes ---------- */
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
@keyframes idle-bob { 50% { translate: 0 -2px; scale: 1.02 0.98; } }
@keyframes walk-hop { 0%, 100% { translate: 0 0; scale: 1 1; } 30% { translate: 0 -9px; scale: 0.96 1.05; } 60% { translate: 0 0; scale: 1.06 0.94; } }
@keyframes arm-swing { 0%, 100% { transform: rotate(40deg); } 50% { transform: rotate(-40deg); } }
@keyframes breathe { 50% { scale: 1.03 1.05; } }
@keyframes head-tilt { 0%, 70%, 100% { rotate: 0deg; } 76% { rotate: -10deg; } 84% { rotate: 8deg; } 90% { rotate: 0deg; } }
@keyframes goof-jump { 30% { translate: 0 -26px; scale: 0.9 1.12; } 60% { translate: 0 0; scale: 1.15 0.85; } 80% { scale: 0.97 1.03; } }
@keyframes goof-look { 20%, 45% { rotate: -16deg; } 55%, 80% { rotate: 16deg; } }
@keyframes stretch-l { 20%, 80% { transform: rotate(150deg); } }
@keyframes stretch-r { 20%, 80% { transform: rotate(-150deg); } }
@keyframes stretch-body { 20%, 80% { scale: 0.96 1.08; } }
@keyframes scratch { 50% { transform: rotate(-160deg) translateY(-4px); } }
@keyframes dance { 0%, 100% { rotate: -14deg; translate: 0 0; } 50% { rotate: 14deg; translate: 0 -10px; } }
@keyframes dance-arm { 0%, 100% { transform: rotate(150deg); } 50% { transform: rotate(60deg); } }
@keyframes flop { 15% { rotate: -8deg; } 35%, 85% { rotate: 90deg; translate: 20px 0; } 100% { rotate: 0deg; } }
@keyframes crazy { 0% { rotate: 0deg; } 60% { rotate: 1080deg; scale: 1.2; } 75% { rotate: 1080deg; scale: 0.9 1.2; } 100% { rotate: 1080deg; scale: 1; } }
@keyframes crazy-head { 25% { translate: -3px 0; } 75% { translate: 3px 0; } }
@keyframes dead { 10% { rotate: 10deg; } 25%, 85% { rotate: -90deg; translate: -20px 0; } 100% { rotate: 0deg; } }
@keyframes sob { 50% { translate: 0 2px; scale: 1.03 0.97; } }
@keyframes tears { from { background-position: 12% 0, 88% 0; } to { background-position: 12% 8px, 88% 8px; } }
@keyframes ghost-up { 0% { opacity: 0; translate: -50% 0; } 20% { opacity: 1; } 100% { opacity: 0; translate: -10% -80px; } }
@keyframes sweat { 0% { translate: 0 -3px; opacity: 0; } 30% { opacity: 1; } 100% { translate: 0 8px; opacity: 0; } }
@keyframes boss-walk { from { left: -4%; } to { left: 104%; } }
@keyframes boss-walk-r { from { left: 104%; } to { left: -4%; } }
@keyframes boss-say { 0%, 20% { opacity: 0; } 30%, 70% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes alarm { from { rotate: -2deg; } to { rotate: 2deg; scale: 1.04; } }
@keyframes countdown { to { transform: scaleX(0); } }
@keyframes swirl { 0% { transform: scale(0.4) rotate(0deg); opacity: 1; } 100% { transform: scale(1.4) rotate(540deg); opacity: 0; } }
@keyframes paper-fly { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(calc(var(--dx) / 2), calc(var(--dy) / 2 - 120px)) rotate(360deg); } 100% { transform: translate(var(--dx), var(--dy)) rotate(720deg); opacity: 0.2; } }

@media (max-width: 640px) {
  .boss-alert b { font-size: 24px; }
  .emo.fun { height: 40px; }
  .emo.fun small { display: none; }
  .badges { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 640px) {
  .emos { top: 46%; max-height: 50vh; overflow-y: auto; scrollbar-width: none; }
}

/* =====================================================================
   第三版布局：操作栏在右侧、表情条在顶部、动态在左下（底部是门口，别挡人）
   ===================================================================== */
.room { user-select: none; -webkit-user-select: none; }
.dock {
  left: auto; right: 14px; top: 50%; bottom: auto; transform: translateY(-50%);
  flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start;
  width: 216px; max-width: none; max-height: calc(100% - 190px); overflow-y: auto;
  gap: 10px; padding: 12px; border-radius: 20px; scrollbar-width: thin;
}
.dock .dock-group { justify-content: center; }
.dock .dock-group > .act { flex: 1 1 auto; }
.dock .dock-group.says { justify-content: flex-start; }
.dock .dock-group.says .dock-label { width: 100%; padding: 0 2px; }
.dock .dock-group.says .act { flex: 1 1 42%; padding: 7px 6px; font-size: 13px; }
.dock .stance .act { width: 100%; }
.dock .remote { flex-wrap: wrap; justify-content: center; gap: 6px; padding: 10px; }
.dock .dock-hint { display: none; }
.view-ctl { justify-content: space-between !important; padding-bottom: 8px; border-bottom: 2px dashed rgba(43, 42, 51, 0.15); }
.zoom-btn { width: 40px; height: 32px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; font-size: 18px; font-weight: 900; line-height: 1; box-shadow: 2px 2px 0 var(--ink); }
.zoom-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }

.emos {
  left: 14px; top: 74px; transform: none; flex-direction: row; align-items: center;
  max-width: calc(100% - 260px); overflow-x: auto; scrollbar-width: none; padding: 4px 6px;
}
.emos::-webkit-scrollbar { display: none; }
.emos-sep { padding: 0 6px; border-top: 0; border-left: 2px dashed rgba(43, 42, 51, 0.2); align-self: stretch; display: flex; align-items: center; }
.emo { flex: 0 0 auto; }
.emo.fun { width: 44px; height: 44px; }

.feed { right: auto; left: 16px; top: auto; bottom: 16px; align-items: flex-start; }
.feed li { animation: feed-in-l 0.3s ease; }
@keyframes feed-in-l { from { opacity: 0; transform: translateY(8px); } }
.move-hint { bottom: 16px; left: auto; right: 244px; transform: none; }
.line-panel { right: 244px; }
.toast { bottom: 40px; }

@media (max-width: 960px) {
  .emos { top: 118px; max-width: calc(100% - 28px); }
  .line-panel { right: 12px; top: 128px; }
}
@media (max-width: 640px) {
  .dock {
    top: auto; bottom: 10px; right: 8px; transform: none; width: 138px;
    max-height: calc(100% - 200px); padding: 8px; gap: 6px; border-radius: 16px;
  }
  .dock .act { padding: 7px 6px; font-size: 13px; }
  .dock .dock-group.says .act { flex: 1 1 100%; }
  .dock .remote { padding: 6px; }
  .emos { top: 104px; max-height: none; overflow-y: hidden; }
  .emos .emo { width: 34px; height: 34px; }
  .move-hint { display: none; }
  .toast { bottom: 24px; max-width: calc(100% - 170px); left: 12px; transform: translate(0, 20px); }
  .toast.show { transform: translate(0, 0); }
}
@media (max-width: 640px) { .room-card-toilet, .room-card-yours { grid-column: auto; } }

/* ---------- 带薪拉屎 · 美化 ---------- */
.scene-toilet .bg {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.7), transparent 60%),
    linear-gradient(#BFE6CB 0 14%, #E6F3EA 14%);
}
.scene-toilet .floor {
  background:
    linear-gradient(45deg, rgba(120, 170, 140, 0.12) 25%, transparent 25% 75%, rgba(120, 170, 140, 0.12) 75%) 0 0 / 56px 56px,
    linear-gradient(45deg, rgba(120, 170, 140, 0.12) 25%, transparent 25% 75%, rgba(120, 170, 140, 0.12) 75%) 28px 28px / 56px 56px;
}
.toilet-wall { background: repeating-linear-gradient(90deg, #CFEBD8 0 58px, #C2E4CD 58px 60px); }
.ceiling-lights { inset: 0; pointer-events: none; z-index: 1; }
.ceiling-lights i { position: absolute; left: 6%; right: 6%; height: 4.5%; background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 220, 0.75), transparent 70%); }
.wifi-sign { left: 76%; top: 92%; transform: translate(-50%, -50%); z-index: 4; padding: 6px 12px; border: 3px solid var(--ink); border-radius: 10px; background: #2B2A33; color: #7CF5E5; text-align: center; pointer-events: none; box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2); }
.wifi-sign b, .wifi-sign span { display: block; }
.wifi-sign b { font-size: 14px; }
.wifi-sign span { font: 700 11px var(--mono); color: #fff; opacity: 0.8; }
.scene-toilet .mop { left: 88%; }
.scene-toilet .wet-sign { left: 93%; }
.scene-toilet .sinks { display: none; }
.queue-marks { left: 34%; top: 93%; transform: translateY(-50%); display: flex; align-items: center; gap: 14px; pointer-events: none; z-index: 2; }
.queue-marks span { padding: 2px 8px; border: 2px dashed #C9A227; border-radius: 6px; color: #9C7A10; font-size: 12px; font-weight: 900; background: rgba(255, 230, 140, 0.4); }
.queue-marks i { width: 14px; height: 24px; border-radius: 50% 50% 40% 40%; background: #F2C94C; opacity: 0.7; box-shadow: 18px 6px 0 #F2C94C; }

/* 隔间：顶部横梁、编号牌、每排门颜色不同、地上的影子 */
.stall::before { box-shadow: inset 0 10px 0 rgba(255, 255, 255, 0.35), 0 10px 0 -4px rgba(40, 80, 50, 0.12); }
.stall::after { content: ""; position: absolute; left: -6px; right: -6px; top: -8px; height: 10px; border: 3px solid var(--ink); border-radius: 4px; background: #E7F5EB; }
.stall-no { position: absolute; left: 50%; top: 34px; translate: -50% 0; padding: 0 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.85); color: #3E6E4B; font: 900 11px/16px var(--mono); white-space: nowrap; }
.seat.occupied .stall-no { top: 12px; }
.row-1 .stall-door, .row-1 .stall-door-open { background: #6FB6E0; }
.row-2 .stall-door, .row-2 .stall-door-open { background: #F2A65A; }
.row-3 .stall-door, .row-3 .stall-door-open { background: #B597E8; }
.scene-toilet .seat.is-open:hover .stall-sign { animation: hop 0.6s ease infinite; }

/* 总裁专用坑 */
.is-vip .stall::before { background: linear-gradient(#FFE58A, #F2C94C); }
.is-vip .stall::after { background: #FFD23F; }
.is-vip .stall-no { background: #2B2A33; color: #FFD23F; }
.is-vip .stall-door, .is-vip .stall-door-open { background: linear-gradient(90deg, #E0A800, #FFD23F, #E0A800); }
.is-vip .stall-pan { background: radial-gradient(ellipse at 50% 60%, #C9A227 0 35%, #FFF3C4 38%); }
.is-vip::after { content: "👑"; position: absolute; left: -14px; top: -214px; font-size: 26px; animation: hop 1.6s ease infinite; pointer-events: none; }
.is-vip.occupied .stall-door b { background: #2B2A33; color: #FFD23F; }

/* 耐力榜 */
.endure { position: absolute; z-index: 50; left: 14px; top: 140px; width: 210px; padding: 12px 14px; border-radius: 16px; }
.endure > b { display: block; font-size: 15px; font-weight: 900; margin-bottom: 6px; }
.endure ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.endure li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }
.endure li.me { color: #B2401F; }
.endure em { flex: 0 0 22px; font-style: normal; text-align: center; }
.endure span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.endure time { font: 800 12px var(--mono); color: var(--muted); }
.endure p { margin: 0; font-size: 12px; color: var(--muted); font-weight: 700; }
@media (max-width: 960px) { .endure { top: 170px; } }
@media (max-width: 640px) { .endure { top: 150px; left: 8px; width: 160px; padding: 8px 10px; } .endure li { font-size: 12px; } }
@media (max-width: 640px) {
  .endure li:nth-child(n+4) { display: none; }
  .view-ctl .dock-label { display: none; }
  .zoom-btn { width: 52px; }
}

/* =====================================================================
   第四版：其它房间的新奇感
   ===================================================================== */
.board-foot { margin-top: 8px !important; padding-top: 6px; border-top: 2px dashed rgba(43, 42, 51, 0.15); font-size: 12px !important; line-height: 1.6; color: var(--muted); }
.board-foot b { color: #B2401F; }
.endure time { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 通用 NPC */
.npc { position: absolute; z-index: 58; width: 0; height: 0; --top: 100px; transition: left 3s linear, top 3s linear; }
.npc .av { animation: walk-hop 0.42s ease-in-out infinite; }
.npc-say { position: absolute; left: 0; bottom: 104px; translate: -50% 0; padding: 3px 10px; border: 2px solid var(--ink); border-radius: 12px; background: #FFF6D8; font-size: 13px; font-weight: 900; white-space: nowrap; animation: float-up 2s ease forwards; }
.npc-tea .av-body { background: #3E6E4B; }
.npc-tea .av-hair { height: 30%; }
.npc-tea .av-acc::after { content: ""; position: absolute; left: -4px; right: -4px; top: -6px; height: 8px; border: 2px solid var(--ink); border-radius: 50% 50% 0 0; background: #2B2A33; }
.teapot { position: absolute; left: 14px; top: -50px; width: 26px; height: 18px; border: 2px solid var(--ink); border-radius: 50% 50% 40% 40%; background: #C9844A; }
.teapot::after { content: ""; position: absolute; right: -26px; top: 2px; width: 28px; height: 4px; background: #C9844A; border: 2px solid var(--ink); rotate: -20deg; transform-origin: 0 50%; }
.float.dream { padding: 5px 12px; border-radius: 20px; background: #EDE6F5; color: #4B3E78; border-style: dashed; animation-duration: 3.4s; }

/* ---------- 空调房 ---------- */
.is-cpos::after {
  content: "风口C位"; position: absolute; left: 50%; top: -112px; translate: -50% 0; z-index: 6; pointer-events: none;
  padding: 1px 8px; border: 2px solid var(--ink); border-radius: 8px; background: #7CF5E5; font-size: 12px; font-weight: 900; white-space: nowrap;
}
.scene-ac.is-freezing .ac-window { box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.85), inset 0 0 26px 10px rgba(220, 245, 255, 0.95); }
.scene-ac.is-freezing .bg { filter: saturate(0.8) brightness(1.05); }
.scene-ac.is-stuffy .bg { filter: sepia(0.25) saturate(1.2); }

/* ---------- 日光浴：晒黑、螃蟹、海鸥、海面反光 ---------- */
.scene-beach .seat.occupied .av-head { filter: brightness(calc(1 - var(--tan, 0) * 0.5)) saturate(calc(1 + var(--tan, 0) * 0.6)); transition: filter 1s linear; }
.scene-beach .seat.occupied .av-head::after {
  content: ""; position: absolute; left: 4px; top: 2px; width: 8px; height: 5px; border-radius: 50%;
  background: rgba(255, 255, 255, calc(var(--tan, 0) * 0.7));
}
.crab { position: absolute; z-index: 9; width: 28px; height: 16px; margin: -16px 0 0 -14px; border: 2.5px solid var(--ink); border-radius: 50% 50% 40% 40%; background: #FF6B4A; animation: crab-walk var(--d) linear infinite; pointer-events: none; }
.crab::before, .crab::after { content: ""; position: absolute; top: -9px; width: 8px; height: 8px; border: 2.5px solid var(--ink); border-radius: 50% 50% 0 50%; background: #FF6B4A; animation: pinch 0.5s ease-in-out infinite alternate; }
.crab::before { left: -6px; }
.crab::after { right: -6px; transform: scaleX(-1); }
.crab.b { animation-direction: reverse; animation-delay: -12s; }
@keyframes crab-walk { 0% { left: -3%; } 100% { left: 103%; } }
@keyframes pinch { to { rotate: 25deg; } }
.sea-glint { left: 0; right: 0; top: 20%; height: 13%; z-index: 2; pointer-events: none; }
.sea-glint i { position: absolute; width: 22px; height: 4px; border-radius: 4px; background: #fff; opacity: 0; animation: glint 3s ease-in-out infinite; }
.sea-glint i:nth-child(1) { left: 12%; top: 40%; }
.sea-glint i:nth-child(2) { left: 34%; top: 70%; animation-delay: 0.8s; }
.sea-glint i:nth-child(3) { left: 58%; top: 30%; animation-delay: 1.6s; }
.sea-glint i:nth-child(4) { left: 74%; top: 64%; animation-delay: 2.2s; }
.sea-glint i:nth-child(5) { left: 88%; top: 44%; animation-delay: 1.2s; }
@keyframes glint { 50% { opacity: 0.9; } }
.gull-thief {
  position: absolute; z-index: 60; width: 44px; height: 18px; left: var(--tx); top: var(--ty);
  border-top: 5px solid var(--ink); border-radius: 50%; pointer-events: none;
  animation: gull-dive 3.2s ease-in-out forwards;
}
.gull-thief::after { content: "🥤"; position: absolute; left: 10px; top: 6px; font-size: 20px; opacity: 0; animation: gull-loot 3.2s linear forwards; }
@keyframes gull-dive {
  0% { transform: translate(-600px, -500px) scaleX(-1); }
  45% { transform: translate(-10px, -70px) scaleX(-1); }
  55% { transform: translate(10px, -80px) scaleX(-1); }
  100% { transform: translate(700px, -700px) scaleX(-1); }
}
@keyframes gull-loot { 0%, 48% { opacity: 0; } 52%, 100% { opacity: 1; } }

/* ---------- 瓜子茶馆：壳山 ---------- */
.shell-pile { right: 3%; top: 66%; z-index: 4; width: 120px; height: 70px; pointer-events: none; }
.shell-pile i {
  position: absolute; left: 50%; bottom: 0; width: 100px; height: 50px; margin-left: -50px;
  border: 3px solid var(--ink); border-radius: 50% 50% 8px 8px / 100% 100% 8px 8px;
  background: radial-gradient(#2B2A33 2px, transparent 2.5px) 0 0 / 9px 7px, radial-gradient(#5a4635 2px, transparent 2.5px) 4px 3px / 9px 7px, #D9C49A;
  transform: scale(var(--pile, 0.5)); transform-origin: 50% 100%; transition: transform 0.6s ease;
}
.shell-pile span { position: absolute; left: 50%; bottom: -24px; translate: -50% 0; padding: 1px 8px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; font-size: 12px; font-weight: 900; white-space: nowrap; }

/* ---------- 午休舱：数羊 ---------- */
.sheep-wall { left: 28%; top: 9%; width: 210px; height: 64px; z-index: 4; pointer-events: none; }
.sheep-wall .fence { position: absolute; left: 92px; bottom: 16px; width: 26px; height: 26px; background: repeating-linear-gradient(90deg, #C9C2FF 0 4px, transparent 4px 11px); border-top: 4px solid #C9C2FF; }
.sheep { position: absolute; left: 0; bottom: 16px; width: 30px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #0D0F1C; animation: sheep-jump 2.4s linear infinite; }
.sheep::before { content: ""; position: absolute; right: -8px; top: 2px; width: 11px; height: 10px; border-radius: 50%; background: #2D3560; box-shadow: 0 0 0 2px #0D0F1C; }
.sheep-n { position: absolute; left: 0; right: 0; bottom: -6px; text-align: center; color: #B9B3E8; font-size: 13px; font-weight: 800; }
@keyframes sheep-jump { 0% { left: 0; bottom: 16px; opacity: 0; } 10% { opacity: 1; } 40% { bottom: 16px; } 50% { bottom: 44px; } 60% { bottom: 16px; } 90% { opacity: 1; } 100% { left: 180px; bottom: 16px; opacity: 0; } }

/* ---------- 天台：昼夜 + 孔明灯 ---------- */
.roof-stars, .roof-moon { pointer-events: none; display: none; }
.roof-stars { inset: 0; z-index: 1; }
.roof-stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; animation: twinkle 2.4s ease-in-out infinite; animation-delay: var(--d); }
.roof-moon { left: 72%; top: 10%; z-index: 1; width: 70px; height: 70px; border-radius: 50%; box-shadow: -14px 6px 0 0 #FFF3C4; }
.scene-roof.tod-day .bg { background: linear-gradient(#5DB8FF 0%, #9AD4FF 40%, #D9F0FF 62%); }
.scene-roof.tod-day .skyline { filter: hue-rotate(-40deg) saturate(0.6) brightness(1.5); }
.scene-roof.tod-night .bg { background: linear-gradient(#0E1230 0%, #1E2456 40%, #3B2E5E 62%); }
.scene-roof.tod-night .sun, .scene-roof.tod-night .clouds { display: none; }
.scene-roof.tod-night .roof-stars, .scene-roof.tod-night .roof-moon { display: block; }
.scene-roof.tod-night .skyline { filter: brightness(0.7) saturate(1.3); }
.scene-roof.tod-night .roof-floor { filter: brightness(0.75); }
.scene-roof.tod-night .lights i { box-shadow: 0 0 22px 6px rgba(255, 210, 90, 0.9); }
.lantern-fly { position: absolute; z-index: 45; width: 0; height: 0; pointer-events: none; animation: lantern-rise 11s ease-in forwards; }
.lantern-fly i {
  position: absolute; left: -18px; top: -44px; width: 36px; height: 44px;
  border: 2.5px solid var(--ink); border-radius: 40% 40% 20% 20%;
  background: radial-gradient(circle at 50% 75%, #FFF3C4, #FF9F43 55%, #E8483A);
  box-shadow: 0 0 26px 8px rgba(255, 170, 70, 0.6); animation: lantern-sway 2.2s ease-in-out infinite alternate;
}
.lantern-fly b { position: absolute; left: 0; top: 6px; translate: -50% 0; padding: 1px 8px; border-radius: 8px; background: rgba(43, 42, 51, 0.75); color: #FFE08A; font-size: 13px; white-space: nowrap; }
@keyframes lantern-rise { 0% { transform: translate(0, 0) scale(1); opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(var(--drift), -700px) scale(0.45); opacity: 0; } }
@keyframes lantern-sway { from { rotate: -6deg; } to { rotate: 6deg; } }
.scene-seeds .shell-board { display: none; }
.shell-pile { right: auto; left: 12%; top: 86%; }
.sheep-wall { left: 3%; top: 56%; }

/* =====================================================================
   第五版大厅：头部压扁，一进来就看到场所；工牌和小目标放到场所下面
   ===================================================================== */
.room-card-yours { grid-column: auto; }
.hero.hero-slim {
  grid-template-columns: minmax(0, 1fr) auto auto; gap: 22px; align-items: center;
  padding-top: 14px; padding-bottom: 20px;
}
.hero-slim h1 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; white-space: nowrap; }
.hero-slim .lead { margin: 6px 0 0; font-size: 14px; line-height: 1.6; }
.hero-slim .hero-stats { margin: 0; gap: 10px; flex-wrap: nowrap; }
.hero-slim .stat { min-width: 0; padding: 8px 14px; border-radius: 14px; box-shadow: 2px 2px 0 var(--ink); }
.hero-slim .stat b { font-size: 20px; }
.hero-slim .stat span { font-size: 11px; white-space: nowrap; }
.me-chip {
  display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px;
  border: var(--line) solid var(--ink); border-radius: 18px; background: #fff; box-shadow: 3px 3px 0 var(--ink);
  text-align: left; transition: transform 0.15s ease;
}
.me-chip:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.me-chip-av { position: relative; flex: 0 0 52px; height: 56px; border: 2px solid var(--ink); border-radius: 14px; background: #FFF1C9; overflow: hidden; }
.me-chip-av .av { left: 50%; top: 66px; scale: 0.82; }
.me-chip-text { display: flex; flex-direction: column; }
.me-chip-text b { font-size: 15px; font-weight: 900; }
.me-chip-text small { font-size: 12px; font-weight: 800; color: #B2401F; }
.me-chip-goal { padding: 3px 8px; border-radius: 8px; background: #F6F0E6; font-size: 12px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.rooms { padding-top: 0; }
.rooms .section-head { margin-bottom: 14px; }
.rooms .section-head h2 { font-size: 26px; }

.me-zone { width: min(1200px, 100%); margin: 0 auto; padding: 36px 24px 0; }
.me-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.me-grid .member { transform: none; }
.me-grid .goals { margin-top: 0; max-width: none; }

@media (max-width: 1080px) {
  .hero.hero-slim { grid-template-columns: 1fr auto; }
  .hero-slim .hero-stats { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 760px) {
  .hero.hero-slim { grid-template-columns: 1fr; gap: 12px; padding-top: 8px; }
  .hero-slim h1 { font-size: 30px; }
  .hero-slim .lead { display: none; }
  .hero-slim .hero-stats { grid-column: auto; }
  .hero-slim .stat { flex: 1; }
  .me-chip { order: 4; }
  .me-grid { grid-template-columns: 1fr; }
  .me-zone { padding: 28px 16px 0; }
}
.room-art, .room-card-ac .room-art, .yours-art { height: 150px; }
.room-info { padding: 12px 18px 16px; }
.room-title h3 { font-size: 22px; }
.room-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
.room-tags { margin-top: 8px; }
.room-foot { padding-top: 12px; }
.sponsor-line { margin-top: 8px; }

/* 空调房：左右墙上的空调竖着挂，出风口朝房间 */
.ac-unit.face-right, .ac-unit.face-left { width: 54px; height: 148px; margin: -74px 0 0 -27px; }
.ac-unit.face-right .ac-brand, .ac-unit.face-left .ac-brand { left: 50%; top: auto; bottom: 10px; translate: -50% 0; writing-mode: vertical-rl; letter-spacing: 0.1em; }
.ac-unit.face-right .ac-led, .ac-unit.face-left .ac-led { left: 50%; right: auto; top: 8px; translate: -50% 0; padding: 1px 4px; }
.ac-unit.face-right .ac-light, .ac-unit.face-left .ac-light { left: 50%; top: 40px; margin-left: -3.5px; }
.ac-unit.face-right .ac-vent, .ac-unit.face-left .ac-vent {
  top: 52px; bottom: 10px; width: 10px; height: auto;
  background: repeating-linear-gradient(0deg, #DCE5EA 0 10px, #C3D0D8 10px 12px);
  animation: none;
}
.ac-unit.face-right .ac-vent { left: auto; right: 5px; }
.ac-unit.face-left .ac-vent { right: auto; left: 5px; }
.ac-unit.face-right .breeze, .ac-unit.face-left .breeze { top: 46px; bottom: 10px; height: auto; width: 46px; }
.ac-unit.face-right .breeze i, .ac-unit.face-left .breeze i { left: auto; right: auto; }
.ac-unit.face-right .breeze i { left: 0 !important; }
.ac-unit.face-left .breeze i { right: 0 !important; }
.ac-unit.face-right .breeze i:nth-child(1), .ac-unit.face-left .breeze i:nth-child(1) { top: 4px; }
.ac-unit.face-right .breeze i:nth-child(2), .ac-unit.face-left .breeze i:nth-child(2) { top: 42%; }
.ac-unit.face-right .breeze i:nth-child(3), .ac-unit.face-left .breeze i:nth-child(3) { top: auto; bottom: 4px; }

/* =====================================================================
   第六版大厅头部：工牌回到顶部，但做成紧凑卡片；场所一进来就看得到
   ===================================================================== */
.hero.hero-slim { grid-template-columns: minmax(0, 1fr) 430px; gap: 28px; align-items: start; padding-top: 12px; padding-bottom: 18px; }
.hero-slim .hero-copy { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hero-slim .lead { margin: -4px 0 0; }
.hero-slim .hero-stats { flex-wrap: wrap; }
.hero-slim .goals { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; max-width: none; }
.hero-slim .goals-head { gap: 8px; }
.hero-slim .goals-head b { font-size: 13px; }
.hero-slim .goals-head span { font-size: 11px; }
.hero-slim .goals-list { flex-direction: row; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.hero-slim .goals-list li {
  gap: 6px; padding: 4px 10px 4px 6px; border: 2px solid var(--ink); border-radius: 999px; background: #fff;
  font-size: 12px; box-shadow: 2px 2px 0 var(--ink);
}
.hero-slim .goals-list li i { flex: 0 0 16px; height: 16px; border-radius: 5px; font-size: 10px; }
.hero-slim .goals-list li span { flex: 0 1 auto; white-space: nowrap; }
.hero-slim .goals-list li b { font-size: 11px; }
.hero-slim .goals-list li.done { background: #E3F7EF; }
.hero-slim .goals.all-done { background: none; }

.member-compact { padding: 12px 14px; transform: none; }
.member-compact::before { display: none; }
.member-compact .member-top { margin-bottom: 0; }
.member-compact .member-label { font-size: 11px; }
.member-compact .locker { font-size: 12px; padding: 1px 8px; }
.member-compact .member-body { gap: 12px; margin-top: 8px; align-items: center; }
.member-compact .member-avatar { flex: 0 0 64px; width: 64px; height: 74px; border-radius: 14px; }
.member-compact .member-avatar .av { top: 92px; scale: 1.05; }
.member-compact .member-fields { gap: 8px; }
.member-compact .field > span:first-child { display: none; }
.member-compact .field input { padding: 5px 10px; font-size: 14px; }
.member-compact .swatches { gap: 5px; }
.member-compact .swatches button { width: 20px; height: 20px; }
.member-compact .rank { margin-top: 8px; padding: 6px 10px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2px 10px; }
.member-compact .rank-top { display: contents; }
.member-compact .rank-top b { font-size: 13px; grid-column: 1; grid-row: 1; white-space: nowrap; }
.member-compact .rank-top span { font-size: 11px; grid-column: 3; grid-row: 1; white-space: nowrap; }
.member-compact .rank-bar { grid-column: 2; grid-row: 1; margin: 0; height: 8px; }
.member-compact .rank small { grid-column: 1 / -1; font-size: 11px; }
.member-compact .badge-wall { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.member-compact .badge-head { flex-direction: column; gap: 0; }
.member-compact .badge-head b { font-size: 11px; white-space: nowrap; }
.member-compact .badge-head span { font-size: 10px; }
.member-compact .badges { flex: 1; grid-template-columns: repeat(12, 1fr); gap: 3px; margin: 0; }
.member-compact .badge { border-radius: 7px; font-size: 13px; border-width: 1.5px; }
.member-compact .badge.got { box-shadow: 1px 1px 0 var(--ink); }
.member-compact .field-salary { margin-top: 8px; padding-top: 8px; flex-direction: row; align-items: center; gap: 8px; }
.member-compact .field-salary > span:first-child { display: block; font-size: 11px; white-space: nowrap; }
.member-compact .field-salary em { display: none; }
.member-compact .field-salary .field-row { flex: 1; }
.member-compact .field-salary input { padding: 3px 8px; font-size: 13px; }

@media (max-width: 1080px) {
  .hero.hero-slim { grid-template-columns: minmax(0, 1fr) 400px; }
  .hero-slim .hero-stats { grid-column: auto; order: 0; }
}
@media (max-width: 860px) {
  .hero.hero-slim { grid-template-columns: 1fr; }
  .member-compact { max-width: none; }
}
@media (max-width: 640px) {
  .member-compact .member-body { flex-direction: row; }
  .member-compact .member-avatar { flex-basis: 56px; width: 56px; height: 66px; }
  .member-compact .badges { grid-template-columns: repeat(6, 1fr); }
  .hero-slim .goals-list li span { white-space: normal; }
}
.room-card-toilet .room-art { background: #2E6A6E; }
@media (max-width: 640px) {
  .member-compact .badges { grid-template-columns: repeat(12, 1fr); gap: 2px; }
  .member-compact .badge { font-size: 11px; border-radius: 5px; }
  .member-compact .badge-head span { display: none; }
  .member-compact .rank small { display: none; }
  .member-compact .field-salary { display: none; }
  .member-compact .member-top { display: none; }
  .member-compact .member-body { margin-top: 0; }
  .hero-slim .goals-note, #goalsNote { display: none; }
  .hero-slim .stat { padding: 6px 10px; }
  .hero-slim .stat b { font-size: 17px; }
  .rooms .section-head p { display: none; }
}

/* =====================================================================
   ICU 续命咖啡
   ===================================================================== */
.room.is-cafe { --accent: #C8875A; }
.member-compact .badges { grid-template-columns: repeat(14, 1fr); }
@media (max-width: 640px) { .member-compact .badges { grid-template-columns: repeat(14, 1fr); } }

.scene-cafe .bg {
  background:
    linear-gradient(#2E1A10 2px, transparent 2px) 0 0 / 100% 34px,
    linear-gradient(90deg, #2E1A10 2px, transparent 2px) 0 0 / 68px 34px,
    linear-gradient(#5A3322, #4A2A1B 16%, transparent 16%),
    #EADBC8;
}
.scene-cafe .floor {
  left: 0; right: 0; top: 16%; bottom: 0;
  background:
    conic-gradient(#F3E7D7 25%, #D9C2A5 0 50%, #F3E7D7 0 75%, #D9C2A5 0) 0 0 / 84px 84px;
  opacity: 0.85;
}
.cafe-wall { left: 0; right: 0; top: 15%; height: 1.4%; background: #8A5634; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); pointer-events: none; }

.neon {
  left: 50%; top: 1.5%; width: 420px; margin-left: -210px; z-index: 5; pointer-events: none;
  padding: 10px 18px 6px; border: 4px solid #1B0F0A; border-radius: 18px; background: #1B0F0A;
  text-align: center; box-shadow: 0 0 0 3px #FF4D6D, 0 0 40px rgba(255, 77, 109, 0.55);
}
.neon b { font-size: 46px; font-weight: 900; color: #FF4D6D; letter-spacing: 0.08em; text-shadow: 0 0 8px #FF4D6D, 0 0 22px #FF4D6D; animation: neon-flicker 5s infinite; }
.neon span { margin-left: 12px; font-size: 34px; font-weight: 900; color: #7CF5E5; text-shadow: 0 0 8px #7CF5E5, 0 0 20px #3CC8B4; }
.neon svg { display: block; width: 100%; height: 26px; }
.ecg { fill: none; stroke: #7CF5E5; stroke-width: 2.5; stroke-dasharray: 260; animation: ecg 1.6s linear infinite; filter: drop-shadow(0 0 4px #7CF5E5); }
@keyframes ecg { from { stroke-dashoffset: 260; } to { stroke-dashoffset: -260; } }
@keyframes neon-flicker { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: 0.35; } }

.chalk {
  left: 2.5%; top: 1.2%; width: 300px; z-index: 5; pointer-events: none;
  padding: 10px 14px; border: 8px solid #8A5634; border-radius: 6px; background: #22352B;
  color: #F4F1E8; font-family: "Kaiti SC", "STKaiti", "KaiTi", var(--font); box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}
.chalk b { display: block; font-size: 15px; color: #FFD36E; }
.chalk em { display: block; margin: 2px 0 6px; font-style: normal; font-size: 21px; font-weight: 900; color: #fff; }
.chalk ul { margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.55; }
.chalk li { display: flex; justify-content: space-between; border-bottom: 1px dashed rgba(255, 255, 255, 0.15); }
.chalk small { display: block; margin-top: 6px; font-size: 12px; color: #9EE6B8; }

.pickup {
  right: 2.5%; top: 1.5%; width: 300px; z-index: 5; pointer-events: none;
  padding: 10px 12px; border: 4px solid var(--ink); border-radius: 14px; background: #111;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}
.pickup-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.pickup-head b { color: #FFD36E; font-size: 16px; letter-spacing: 0.1em; }
.pickup-dot { width: 10px; height: 10px; border-radius: 50%; background: #3CC86B; box-shadow: 0 0 8px #3CC86B; animation: twinkle 1.2s infinite; }
.pickup-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; min-height: 120px; }
.pickup-list li { display: flex; align-items: center; gap: 8px; padding: 3px 8px; border-radius: 6px; background: #222; color: #fff; font-size: 15px; font-weight: 800; animation: feed-in 0.4s ease; }
.pickup-list li:first-child { background: #3A2A12; color: #FFD36E; }
.pickup-list li em { flex: 0 0 auto; font: 900 14px var(--mono); font-style: normal; color: #7CF5E5; }
.pickup-list li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pickup-list li.empty { color: #777; background: none; font-weight: 600; }

.wall-tips { left: 22%; right: 22%; top: 11.6%; z-index: 5; display: flex; justify-content: space-between; pointer-events: none; }
.wall-tips span { padding: 2px 10px; border: 2px solid var(--ink); border-radius: 6px; background: #FFF6E5; font-size: 12px; font-weight: 900; rotate: -1.5deg; }
.wall-tips span:nth-child(2) { rotate: 1deg; background: #FFE1D6; }

.bar-counter {
  left: 17%; width: 66%; top: 20.5%; height: 9.5%; z-index: 12; pointer-events: none;
  border: 4px solid var(--ink); border-radius: 10px 10px 4px 4px;
  background: linear-gradient(#C8875A 0 16%, #2B2A33 16% 19%, #7A4A2E 19%);
  box-shadow: 0 10px 0 -2px rgba(60, 30, 10, 0.18);
}
.bar-counter::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18%; height: 4px; background: rgba(0, 0, 0, 0.18); }
.bar-label { position: absolute; left: 50%; bottom: 26%; translate: -50% 0; color: #FFE6C2; font-size: 15px; letter-spacing: 0.3em; white-space: nowrap; }
.machine { position: absolute; left: 36%; top: -66px; width: 110px; height: 66px; border: 4px solid var(--ink); border-radius: 10px 10px 0 0; background: linear-gradient(#D5DCE2, #9AA7B0); }
.machine::before { content: ""; position: absolute; left: 18px; right: 18px; top: 10px; height: 14px; border: 2px solid var(--ink); border-radius: 4px; background: #2B2A33; }
.machine::after { content: ""; position: absolute; left: 44px; bottom: -2px; width: 18px; height: 16px; border: 2px solid var(--ink); border-top: 0; background: #fff; }
.steam-a, .steam-b { position: absolute; top: -40px; width: 18px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.75); animation: steam 2.4s ease-in-out infinite; }
.steam-a { left: 20px; }
.steam-b { left: 66px; animation-delay: -1.2s; }
.grinder { position: absolute; left: 22%; top: -58px; width: 40px; height: 58px; border: 4px solid var(--ink); border-radius: 50% 50% 4px 4px / 40% 40% 4px 4px; background: #2B2A33; }
.cups-stack { position: absolute; left: 62%; top: -40px; width: 34px; height: 40px; background: repeating-linear-gradient(#fff 0 8px, #ccc 8px 10px); border: 3px solid var(--ink); border-radius: 0 0 6px 6px; }

.barista { left: 50%; top: 21.5%; z-index: 11; width: 0; height: 0; --top: 110px; scale: 1.25; pointer-events: none; }
.barista .av { animation: barista-shake 0.5s ease-in-out infinite; }
.barista .av-body { background: #fff; }
.nurse-cap { position: absolute; left: -14px; top: -98px; width: 28px; height: 14px; border: 2px solid var(--ink); border-radius: 4px 4px 0 0; background: #fff; z-index: 3; }
.nurse-cap::after { content: "+"; position: absolute; left: 0; right: 0; top: -5px; text-align: center; color: #E8483A; font-weight: 900; font-size: 14px; }
.apron { position: absolute; left: -12px; top: -38px; width: 24px; height: 26px; border: 2px solid var(--ink); border-radius: 0 0 6px 6px; background: #C8875A; z-index: 2; }
@keyframes barista-shake { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; translate: 0 -3px; } }

.cafe-tables { inset: 0; pointer-events: none; }
.cafe-table {
  position: absolute; width: 124px; height: 54px; margin: -40px 0 0 -62px;
  border: 4px solid var(--ink); border-radius: 50%; background: radial-gradient(ellipse at 40% 35%, #F6E3C8, #D9B48A);
  box-shadow: 0 12px 0 -4px rgba(60, 30, 10, 0.2);
}
.cafe-table::after { content: ""; position: absolute; left: 50%; top: 100%; width: 10px; height: 26px; margin-left: -5px; background: var(--ink); z-index: -1; }
.cafe-table > i { position: absolute; left: 50%; top: 4px; }
.deco-laptop { width: 44px; height: 26px; margin-left: -22px; border: 3px solid var(--ink); border-radius: 4px 4px 2px 2px; background: #C9D3DB; }
.deco-laptop::after { content: ""; position: absolute; left: 50%; top: 6px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50% 50% 40% 40%; background: #fff; box-shadow: 0 0 10px #fff; }
.deco-cupset { width: 40px; height: 16px; margin-left: -20px; top: 14px !important; background: radial-gradient(circle at 25% 50%, #fff 6px, var(--ink) 7px, transparent 8px), radial-gradient(circle at 75% 50%, #fff 6px, var(--ink) 7px, transparent 8px); }
.deco-plant { width: 20px; height: 24px; margin-left: -10px; top: -8px !important; border-radius: 50% 50% 40% 40%; background: #5FB97A; border: 3px solid var(--ink); }
.deco-cake { width: 30px; height: 18px; margin-left: -15px; top: 12px !important; border: 3px solid var(--ink); border-radius: 4px; background: linear-gradient(#FF9BB0 40%, #FFF3D6 40%); }

/* 座位：吧台高脚凳 + 咖啡椅 */
.cafe-seat { left: -22px; top: -26px; width: 44px; height: 30px; border: 3px solid var(--ink); border-radius: 10px 10px 6px 6px; background: #A0623E; }
.cafe-seat::after { content: ""; position: absolute; left: 6px; right: 6px; top: 100%; height: 12px; background: repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 28px); }
.is-stool .cafe-seat { left: -18px; top: -10px; width: 36px; height: 14px; border-radius: 50%; background: #E8483A; }
.is-stool .cafe-seat::after { left: 15px; right: auto; width: 4px; height: 26px; background: var(--ink); }
.scene-cafe .seat:not(.occupied) .cafe-seat { opacity: 0.8; }
.scene-cafe .seat.is-open:hover .cafe-seat { background: #FFC845; }
.scene-cafe .seat .leg, .scene-cafe .seat .arm { display: block; }
.scene-cafe .seat .occupant { --top: 74px; }
.scene-cafe .seat .av-body { top: -34px; height: 26px; border-radius: 14px 14px 12px 12px; }
.scene-cafe .seat .av-head { top: -64px; }
.scene-cafe .seat .leg { top: -10px; width: 20px; height: 12px; border-radius: 8px; transform: none; z-index: 2; }
.scene-cafe .seat .leg-l { left: -30px; }
.scene-cafe .seat .leg-r { left: 10px; }
.scene-cafe .seat .leg::after { left: 3px; right: auto; bottom: -12px; width: 14px; height: 9px; }
.scene-cafe .seat .arm { top: -32px; height: 16px; }
.scene-cafe .seat.is-stool .occupant { --top: 84px; }

/* 点滴架：喝了咖啡才会出现，袋子里的咖啡跟着咖啡因往下降 */
.iv-pole { display: none; left: 30px; top: -128px; width: 4px; height: 128px; background: #9AA7B0; border: 1px solid var(--ink); z-index: 1; }
.iv-pole::before { content: ""; position: absolute; left: -12px; bottom: -2px; width: 28px; height: 5px; border-radius: 3px; background: var(--ink); }
.has-caff .iv-pole { display: block; }
.iv-bag { position: absolute; left: -12px; top: 4px; width: 28px; height: 38px; border: 2.5px solid var(--ink); border-radius: 6px 6px 12px 12px; background: rgba(255, 255, 255, 0.85); overflow: hidden; }
.iv-fill { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--caff, 0) * 100%); background: linear-gradient(#8A5634, #4A2A1B); transition: height 0.8s ease; }
.iv-line { position: absolute; left: -16px; top: 42px; width: 18px; height: 50px; border-left: 2px solid #8A5634; border-bottom: 2px solid #8A5634; border-radius: 0 0 0 16px; }
.iv-line::after { content: ""; position: absolute; left: -4px; top: 6px; width: 5px; height: 7px; border-radius: 50%; background: #8A5634; animation: drip 1s linear infinite; }
@keyframes drip { from { transform: translateY(0); opacity: 1; } to { transform: translateY(36px); opacity: 0; } }

.cafe-cup { display: none; left: 12px; top: -40px; width: 16px; height: 18px; z-index: 4; border: 2.5px solid var(--ink); border-radius: 2px 2px 6px 6px; background: #fff; }
.cafe-cup::after { content: ""; position: absolute; right: -8px; top: 3px; width: 6px; height: 8px; border: 2.5px solid var(--ink); border-left: 0; border-radius: 0 6px 6px 0; }
.has-caff .cafe-cup { display: block; }
.is-sipping-coffee .cafe-cup { animation: sip 0.8s ease 2; transform-origin: 50% 100%; }

/* 咖啡因状态：没喝 = 困成狗；越喝越抖 */
.scene-cafe .caff-0 .av-face { transform: scaleY(0.3); animation: none; }
.scene-cafe .seat.caff-0 .av-head { rotate: 10deg; translate: 0 3px; }
.scene-cafe .caff-2 .av { animation: shiver 0.14s linear infinite; }
.scene-cafe .caff-3 .av { animation: caff-shake 0.07s linear infinite; }
.scene-cafe .caff-3 .av-face { scale: 1.35; }
.scene-cafe .caff-3 .av-head { background: #FFB4A0 !important; }
.scene-cafe .caff-3 .occupant::before, .scene-cafe .walker.caff-3::before {
  content: "💓"; position: absolute; left: 14px; top: -90px; font-size: 18px; z-index: 5; animation: heartbeat 0.4s ease infinite;
}
@keyframes caff-shake { 0% { translate: -2px 1px; } 25% { translate: 2px -1px; } 50% { translate: -1px -2px; } 75% { translate: 2px 2px; } 100% { translate: 0 0; } }
@keyframes heartbeat { 50% { scale: 1.4; } }

.float.latte { padding: 6px 12px; border-radius: 50%; background: radial-gradient(circle, #F6E3C8 40%, #8A5634 42%); font-size: 18px; animation-duration: 2.6s; }

/* 右侧点单面板 */
.dock .drinks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dock .drinks .dock-label { grid-column: 1 / -1; }
.drink-btn {
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px;
  border: 2px solid var(--ink); border-radius: 12px; background: #FFF6E5; box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.1s ease;
}
.drink-btn:hover { transform: translate(-1px, -1px); background: #FFE9C7; }
.drink-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.drink-btn i { font-style: normal; font-size: 22px; line-height: 1; }
.drink-btn b { font-size: 12px; font-weight: 900; text-align: center; line-height: 1.2; }
.drink-btn small { font-size: 10px; font-weight: 800; color: var(--muted); }
.drink-btn.is-special { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 8px; background: linear-gradient(90deg, #FFD36E, #FFB547); }
.drink-btn.is-special small { color: #7A4426; }
.latte-book { flex-direction: column; align-items: stretch !important; }
.latte-book em { font-style: normal; color: #B2401F; }
.latte-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.latte-slot { display: grid; place-items: center; aspect-ratio: 1; border: 2px dashed rgba(43, 42, 51, 0.3); border-radius: 50%; font-size: 16px; color: #bbb; font-weight: 900; }
.latte-slot.got { border-style: solid; border-color: var(--ink); background: radial-gradient(circle, #F6E3C8 55%, #C8875A 57%); color: inherit; }
.latte-slot.got.tier-稀有 { box-shadow: 0 0 0 2px #9B7BF0; }
.latte-slot.got.tier-史诗 { box-shadow: 0 0 0 2px #E86AA6; }
.latte-slot.got.tier-传说 { box-shadow: 0 0 0 3px #FFD23F, 0 0 12px #FFD23F; }
@media (max-width: 640px) {
  .dock .drinks { grid-template-columns: 1fr; }
  .drink-btn { flex-direction: row; gap: 6px; }
  .drink-btn small { display: none; }
}
@media (max-width: 640px) {
  .emos { top: 118px; }
  .hud-sponsor { display: none; }
  .endure { top: 168px; }
}

/* =====================================================================
   第七版：留存玩法（账号/摸鱼币/商店/宠物/盲盒/私人房间/留言墙/活动/彩蛋/面板收缩）
   ===================================================================== */
.link-btn { padding: 0; border: 0; background: none; color: #B2401F; font-size: 12px; font-weight: 900; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.acct { margin-left: auto; margin-right: 8px; font-size: 12px; font-weight: 800; }
.acct b { color: var(--ink); }

/* 工牌：钱包 */
.wallet { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.coins { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border: 2px solid var(--ink); border-radius: 999px; background: #FFF1C9; font-size: 14px; font-weight: 900; font-variant-numeric: tabular-nums; }
.wallet .btn { padding: 4px 10px; font-size: 12px; box-shadow: 2px 2px 0 var(--ink); }
.btn-box.is-ready { background: #FFC845; animation: wiggle 1.6s ease-in-out infinite; }
@keyframes wiggle { 0%, 80%, 100% { rotate: 0deg; } 85% { rotate: -6deg; } 90% { rotate: 6deg; } 95% { rotate: -3deg; } }

/* 活动横条 */
.event-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.event-bar .ev { padding: 4px 12px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-size: 12px; font-weight: 800; }
.event-bar .ev.live { background: linear-gradient(90deg, #FF6B4A, #FFB547); color: #fff; border-color: var(--ink); animation: pulse-live 1.6s ease-in-out infinite; }
@keyframes pulse-live { 50% { box-shadow: 0 0 0 4px rgba(255, 107, 74, 0.25); } }

/* 场所上方：房间码 / 建房 / 工位邻居 */
.room-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -4px 0 16px; }
.code-join { display: flex; gap: 6px; }
.code-join input, .note-form input {
  width: 160px; padding: 6px 12px; border: var(--line) solid var(--ink); border-radius: 12px; background: #fff;
  font: 800 14px var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
}
.friends { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 4px 10px; border: 2px dashed rgba(43, 42, 51, 0.3); border-radius: 12px; font-size: 12px; font-weight: 700; }
.friends > b { color: #3E8E57; }
.friend { padding: 2px 8px; border-radius: 8px; background: #E3F7EF; }

/* 留言墙 */
.wall-zone { width: min(1200px, 100%); margin: 0 auto; padding: 36px 24px 0; }
.note-form { display: flex; gap: 8px; margin-bottom: 16px; }
.note-form input { flex: 1; max-width: 460px; width: auto; font: 700 14px var(--font); letter-spacing: 0; text-transform: none; }
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.note {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 120px; padding: 14px 14px 10px;
  border: 2px solid var(--ink); background: #FFF59D; rotate: var(--r); box-shadow: 3px 4px 0 rgba(43, 42, 51, 0.25);
}
.note::before { content: ""; position: absolute; left: 50%; top: -9px; width: 46px; height: 16px; margin-left: -23px; background: rgba(255, 255, 255, 0.65); border: 1px solid rgba(43, 42, 51, 0.15); rotate: -3deg; }
.note.c1 { background: #FFD3E1; }
.note.c2 { background: #CFF3E6; }
.note.c3 { background: #D7E8FF; }
.note.c4 { background: #FFE2B8; }
.note p { flex: 1; margin: 0; font: 800 15px/1.5 "Kaiti SC", "STKaiti", "KaiTi", var(--font); }
.note small { font-size: 11px; font-weight: 700; color: var(--muted); }
.note button { align-self: flex-end; padding: 2px 8px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; font-size: 11px; font-weight: 900; }
.note button:disabled { background: #FFC845; }
.notes-empty { color: var(--muted); font-weight: 700; }

/* 弹窗里的表单 */
.login-form, .create-form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.login-form input, .create-form input:not([type="range"]), .create-form select {
  width: 100%; padding: 9px 12px; border: var(--line) solid var(--ink); border-radius: 12px; background: #fff; font: 700 15px var(--font);
}
.create-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 800; color: var(--muted); }
.create-form input[type="range"] { accent-color: var(--coral); }
.login-err { min-height: 18px; margin: 0 !important; color: #E8483A !important; font-size: 13px !important; font-weight: 800; }
.code-big { margin: 10px 0; padding: 12px; border: 3px dashed var(--ink); border-radius: 14px; background: #FFF1C9; text-align: center; font: 900 40px var(--mono); letter-spacing: 0.25em; }
.report-img { display: block; width: 100%; border: 2px solid var(--ink); border-radius: 12px; }

/* 商店 */
.modal-card:has(.shop) { width: min(620px, 100%); }
.shop-tabs { display: flex; gap: 6px; margin: 10px 0; }
.shop-tab { padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 900; font-size: 13px; }
.shop-tab.on { background: var(--ink); color: #fff; }
.shop-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 0 0 10px; padding: 0; list-style: none; max-height: 52vh; overflow: auto; }
.shop-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; text-align: center; }
.shop-item.owned { background: #F3FBF7; }
.shop-item.on { background: #FFF1C9; box-shadow: 0 0 0 3px #FFC845; }
.shop-item.rare { border-color: #9B7BF0; }
.shop-item b { font-size: 14px; }
.shop-item em { font-style: normal; font-size: 11px; font-weight: 900; color: #3E8E57; }
.shop-item small { min-height: 30px; font-size: 11px; color: var(--muted); }
.shop-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #F6F0E6; font-size: 30px; }
.shop-icon.slot-outfit { font-size: 0; border: 2px solid var(--ink); }
.shop-icon.slot-frame { width: 76px; height: 30px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.shop-lock { font-size: 11px; font-weight: 800; color: var(--muted); }

/* 盲盒 */
.box-open { text-align: center; padding: 10px 0; }
.box-open .gift { font-size: 80px; line-height: 1.2; animation: shake-box 0.25s linear infinite; }
.box-open.done .gift { animation: pop-in 0.6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes shake-box { 25% { rotate: -10deg; } 75% { rotate: 10deg; } }
@keyframes pop-in { from { scale: 0.2; } }

/* 礼花 */
.confetti { position: fixed; inset: 0; z-index: 980; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: confetti-fall linear forwards; }
@keyframes confetti-fall { to { transform: translate(var(--dx), 105vh) rotate(var(--rot)); } }

/* HUD */
.chip-coin { background: #FFF1C9; position: relative; }
.chip-coin.flash::after { content: attr(data-gain); position: absolute; right: -4px; top: -18px; color: #B2401F; font-size: 13px; font-weight: 900; animation: float-up 1.6s ease forwards; translate: 0 0; }
.chip-event { background: linear-gradient(90deg, #FF6B4A, #FFB547); color: #fff; animation: pulse-live 1.6s ease-in-out infinite; }

/* 面板收缩 / 沉浸 */
.dock-collapse { align-self: flex-end; margin: -4px -4px 0 0; padding: 2px 8px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-size: 11px; font-weight: 900; }
.emos-collapse { flex: 0 0 auto; width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; font-size: 12px; font-weight: 900; }
.panel-pill {
  position: absolute; z-index: 55; padding: 8px 14px; border: var(--line) solid var(--ink); border-radius: 999px;
  background: #fff; font-size: 14px; font-weight: 900; box-shadow: 3px 3px 0 var(--ink); animation: pop-in 0.3s ease;
}
.pill-dock { right: 14px; top: 50%; }
.pill-emos { left: 14px; top: 74px; }
.room.hide-dock .dock, .room.is-zen .dock { display: none; }
.room.hide-emos .emos, .room.is-zen .emos { display: none; }
.room.hide-board .endure ol, .room.hide-board .endure p { display: none; }
.room.is-zen .endure, .room.is-zen .feed, .room.is-zen .move-hint, .room.is-zen .hud-chips .chip:not(.chip-coin):not(.chip-line), .room.is-zen .hud-sponsor { display: none !important; }
.endure > b { cursor: pointer; }
.endure > b::after { content: " ▾"; font-size: 11px; color: var(--muted); }
.room.hide-board .endure > b::after { content: " ▸"; }

/* 房间更炫：进场推镜、暗角、微光 */
.scene::before { content: ""; position: absolute; inset: 0; z-index: 41; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(20, 16, 30, 0.28) 100%); }
.scene.enter-fx .world { animation: enter-fx 0.9s cubic-bezier(.2, .8, .2, 1); }
@keyframes enter-fx { from { opacity: 0; filter: blur(8px) saturate(1.6); } }
.hud-title { position: relative; overflow: hidden; }
.hud-title::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40px; left: -60px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent); transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 70% { left: -60px; } 100% { left: 120%; } }

/* 装扮：帽子、宠物、工服、名牌框 */
.av-hat { position: absolute; left: 50%; top: -28px; translate: -50% 0; font-size: 27px; line-height: 1; z-index: 4; pointer-events: none; }
.av-hat:empty, .av-pet:empty { display: none; }
.av-pet { position: absolute; left: -46px; top: -24px; font-size: 22px; line-height: 1; scale: var(--pet, 1); transform-origin: 50% 100%; z-index: 3; pointer-events: none; animation: pet-bob 1.4s ease-in-out infinite; }
.av-pet::after { content: attr(data-lv); position: absolute; left: 50%; top: -10px; translate: -50% 0; padding: 0 4px; border-radius: 6px; background: rgba(43, 42, 51, 0.7); color: #fff; font: 800 8px/12px var(--mono); white-space: nowrap; opacity: 0; transition: opacity 0.2s; }
.seat:hover .av-pet::after, .walker:hover .av-pet::after { opacity: 1; }
.walker.walking .av-pet { animation: pet-run 0.36s ease-in-out infinite; }
@keyframes pet-bob { 50% { translate: 0 -4px; } }
@keyframes pet-run { 50% { translate: 0 -8px; rotate: -8deg; } }
.outfit-out_plaid .av-body, .shop-icon.outfit-out_plaid { background: repeating-linear-gradient(0deg, transparent 0 6px, rgba(43, 42, 51, 0.35) 6px 8px), repeating-linear-gradient(90deg, #C0392B 0 6px, #E8483A 6px 12px) !important; }
.outfit-out_stripe .av-body, .shop-icon.outfit-out_stripe { background: repeating-linear-gradient(90deg, #6CC6FF 0 5px, #fff 5px 10px) !important; }
.outfit-out_suit .av-body, .shop-icon.outfit-out_suit { background: linear-gradient(90deg, #2B2A33 0 40%, #fff 40% 60%, #2B2A33 60%) !important; }
.outfit-out_dots .av-body, .shop-icon.outfit-out_dots { background: radial-gradient(#fff 2px, transparent 2.5px) 0 0 / 8px 8px, #FFC845 !important; }
.outfit-out_gold .av-body, .shop-icon.outfit-out_gold { background: linear-gradient(120deg, #E0A800, #FFF3A8 40%, #E0A800 60%, #FFD23F) !important; box-shadow: 0 0 12px rgba(255, 210, 63, 0.8); }
.frame-frame_gold .name, .shop-icon.frame-frame_gold { background: linear-gradient(#FFE58A, #F2C94C) !important; border-color: #9C7A10 !important; }
.frame-frame_neon .name, .shop-icon.frame-frame_neon { background: #1B0F0A !important; color: #7CF5E5 !important; box-shadow: 0 0 10px #7CF5E5; }
.frame-frame_fire .name, .shop-icon.frame-frame_fire { background: linear-gradient(90deg, #FF6B4A, #FFC845, #FF6B4A) !important; color: #fff !important; }
.frame-frame_streak .name, .shop-icon.frame-frame_streak { background: #3CC86B !important; color: #fff !important; }
.frame-frame_gold .name, .frame-frame_neon .name, .frame-frame_fire .name, .frame-frame_streak .name { opacity: 1; }
.is-npc .name { opacity: 0.75; font-style: italic; }
.golden .av, .golden .av-head, .golden .av-body { filter: sepia(1) saturate(4) hue-rotate(5deg) brightness(1.15); }
.golden .av { animation: dance 0.5s ease-in-out infinite !important; }
.flooding .occupant::before { content: "🌊🌊🌊"; position: absolute; left: -50px; top: -40px; font-size: 26px; z-index: 6; animation: flood 1s ease-in-out 4; }
@keyframes flood { 50% { translate: 0 -10px; } }
.badge.secret { font-weight: 900; font-size: 12px; color: var(--muted); }
.member-compact .badges { grid-template-columns: repeat(10, 1fr); }

@media (max-width: 640px) {
  .room-tools { gap: 8px; }
  .code-join input { width: 130px; }
  .wall-zone { padding: 28px 16px 0; }
  .notes { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hud-right #pip { display: none; }
  .pill-dock { top: auto; bottom: 14px; }
  .pill-emos { top: 118px; }
  .member-compact .badges { grid-template-columns: repeat(10, 1fr); }
}
/* 面板跟着 HUD 实际高度走，手机上不再互相压住 */
.room .emos, .room .pill-emos { top: var(--hud-b, 74px) !important; }
.room .endure { top: calc(var(--hud-b, 74px) + var(--emos-h, 52px)) !important; }
.room .line-panel { top: var(--hud-b, 76px) !important; }
.has-hat .name, .has-hat .me-tag, .has-hat .float { margin-bottom: 26px; }

/* =====================================================================
   第七版：景深统一、空调房/日光浴重新排座、昼夜、沙滩球、涨潮
   ===================================================================== */
/* 景深：座位、走动的人、桌子、遮阳伞共用一把尺子（app.js depthZ），不再分两层各排各的 */
.scene .walkers { z-index: auto; }
.scene .fx { z-index: 400; }
.snow, .bubbles { z-index: 380; }
.npc, .boss-npc { z-index: 350; }
.seat:hover, .walker:hover { z-index: 390 !important; }
.scene-seeds .hot-screen { z-index: 226; }

/* ---------- 带薪拉屎：招牌改成门口地垫，WiFi 牌挂回墙上 ---------- */
.toilet-sign.is-mat {
  top: 96%; z-index: 2; padding: 3px 26px 4px; border-radius: 10px; box-shadow: none;
  background: repeating-linear-gradient(90deg, #BFE6CB 0 10px, #A9D9B8 10px 20px);
}
.toilet-sign.is-mat b { font-size: 15px; letter-spacing: 0.3em; }
.toilet-sign.is-mat span { font-size: 11px; }
.wifi-sign.on-wall { left: 50%; top: 10.6%; z-index: 3; }

/* ---------- 日光浴 ---------- */
.scene-beach .ball {
  z-index: 99; pointer-events: auto; cursor: pointer;
  transition: left 0.9s cubic-bezier(0.3, 0.6, 0.4, 1), top 0.9s cubic-bezier(0.3, 0.6, 0.4, 1);
}
.scene-beach .ball::after { content: ""; position: absolute; inset: -16px; border-radius: 50%; }
.scene-beach .ball:hover { box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.7); }
.ball.kicked { animation: ball-fly 0.95s ease-out; }
@keyframes ball-fly { 45% { scale: 1.9; translate: 0 -50px; rotate: 320deg; } 100% { scale: 1; rotate: 720deg; } }

.tide-wash {
  left: 0; right: 0; top: 32.6%; height: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(rgba(73, 204, 234, 0.85), rgba(200, 242, 250, 0.75));
  border-bottom: 8px solid #fff; border-radius: 0 0 50% 50% / 0 0 26px 26px;
}
.tide-wash.run { animation: tide 5s ease-in-out; }
@keyframes tide { 0% { height: 0; opacity: 1; } 38%, 55% { height: 10.6%; opacity: 1; } 100% { height: 0; opacity: 0.6; } }

/* 昼夜：傍晚是晚霞，晚上是月亮（晚上晒不黑） */
.beach-stars {
  display: none; left: 0; right: 0; top: 0; height: 19%; z-index: 1; pointer-events: none;
  background:
    radial-gradient(circle, #fff 1.5px, transparent 2.5px) 20px 30px / 190px 120px,
    radial-gradient(circle, #FFF3C4 2px, transparent 3px) 110px 80px / 260px 150px,
    radial-gradient(circle, #fff 1px, transparent 2px) 70px 10px / 130px 90px;
  animation: twinkle 3s ease-in-out infinite;
}
.scene-beach.tod-night .beach-stars { display: block; }
.scene-beach.tod-night .bg { background: linear-gradient(#0B1533 0 18%, #1D3266 18% 28%, #E3D3A6 28% 100%); }
.scene-beach.tod-night .sea { background: linear-gradient(#0B2F5E, #1E6C9C); }
.scene-beach.tod-night .sand { background: linear-gradient(rgba(40, 60, 150, 0.3), rgba(40, 60, 150, 0.16)); }
.scene-beach.tod-night .beach-sun {
  background: #F6F2DC;
  box-shadow: inset -14px -8px 0 rgba(170, 165, 140, 0.45), 0 0 0 12px rgba(246, 242, 220, 0.12), 0 0 50px rgba(246, 242, 220, 0.8);
}
.scene-beach.tod-night .clouds, .scene-beach.tod-night .gulls { opacity: 0.18; }
.scene-beach.tod-dusk .bg { background: linear-gradient(#FF8F5E 0 18%, #FFC89A 18% 28%, #FFDFA0 28% 100%); }
.scene-beach.tod-dusk .sea { background: linear-gradient(#E9865A, #4FB3CF 70%); }
.scene-beach.tod-dusk .beach-sun { top: 16.5%; background: #FF7A45; box-shadow: 0 0 0 14px rgba(255, 122, 69, 0.28), 0 0 60px #FFB37A; }

/* ---------- 空调房：冻成冰雕 ---------- */
.scene-ac .seat.is-frozen .occupant::before {
  content: ""; position: absolute; left: -29px; top: -94px; width: 58px; height: 90px; z-index: 4; pointer-events: none;
  border: 3px solid #6CC6FF; border-radius: 12px;
  background: linear-gradient(135deg, rgba(225, 246, 255, 0.85) 0 18%, rgba(160, 220, 250, 0.5) 18% 55%, rgba(225, 246, 255, 0.75) 55% 62%, rgba(140, 205, 245, 0.55) 62%);
  box-shadow: 0 0 16px rgba(108, 198, 255, 0.7); animation: frost-in 0.6s ease;
}
.scene-ac .seat.is-frozen .av { animation: none !important; }
@keyframes frost-in { from { opacity: 0; scale: 1.25; } }

/* 大厅：六个场所三列刚好排满，不留空洞 */
.room-card-ac { grid-column: auto; }
@media (min-width: 900px) { .room-card-yours { grid-column: span 2; } }

/* 广告牌轮播翻面 */
.scene .billboard { transition: transform 0.26s ease, opacity 0.26s ease; }
.scene .billboard.is-flipping { transform: translateY(-50%) rotateX(90deg); opacity: 0.3; }
