/* =========================================================
   《云学校》v6.0 — Apple Liquid Glass HUD + 实时 3D 校园
   一条规矩：屏幕四角只留三块毛玻璃 ——
     左上 44px 药丸 · 右上 44px 药丸 · 底部 54px dock（v6.0 起是五格），
   其它一切都交给底下那座实时 3D 校园。
   零楷体、零朱砂印、零泛黄纸边、零浮在画面中间的白圆点。
   全部本地 CSS，没有任何外部资源。
   ========================================================= */

#campus-root {
  --ui-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", system-ui, sans-serif;
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #1b2230;
  color: #f6f8fb;
  font-family: var(--ui-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#campus-root[hidden],
#app[hidden] {
  display: none !important;
}

.campus {
  --ui-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", system-ui, sans-serif;
  --glass: rgba(25, 25, 28, 0.4);
  --glass-strong: rgba(21, 21, 24, 0.62);
  --glass-soft: rgba(40, 43, 48, 0.34);
  --glass-line: rgba(255, 255, 255, 0.2);
  --glass-line-strong: rgba(255, 255, 255, 0.44);
  /* 夕阳照进毛玻璃：左上一道暖金高光，底边一丝冷反光 */
  --glass-shadow:
    0 16px 38px rgba(6, 9, 14, 0.42),
    inset 0 1px 0 rgba(255, 236, 206, 0.28),
    inset 1px 0 0 rgba(255, 216, 168, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  --blur: blur(22px) saturate(1.4);
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ink: rgba(249, 251, 254, 0.96);
  --ink-dim: rgba(226, 233, 241, 0.72);
  --ink-faint: rgba(206, 216, 228, 0.5);

  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #1b2230;
  font-family: var(--ui-sans);
  isolation: isolate;
  touch-action: none;
}

/* ---------------- 3D 舞台 ---------------- */

.campus__world {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 50% 30%, #526478 0%, #24354d 62%, #171d27 100%);
}

.campus3d__canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* WebGL 起不来的时候，底下这层晚霞还在，界面照旧可用 */
.campus.is-no-webgl .campus__world {
  background:
    radial-gradient(70% 54% at 50% 74%, rgba(216, 155, 106, 0.72), rgba(216, 155, 106, 0) 72%),
    radial-gradient(120% 90% at 50% 18%, #24354d 0%, #3b4a5e 48%, #1b2230 100%);
}

/* 一层极轻的暗角，把视线往中间那块院子收 */
.campus__veil {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(128% 104% at 50% 44%, transparent 56%, rgba(10, 14, 20, 0.4) 100%),
    linear-gradient(180deg, rgba(12, 17, 24, 0.22), transparent 22%, transparent 74%, rgba(12, 17, 24, 0.34));
}

/* ---------------- 头顶名牌：crisp 的 DOM 药丸 ---------------- */

.campus3d__plates {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
}

.campus3d__plate {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: min(46vw, 240px);
  padding: 3px 10px 3px 5px;
  border-radius: 999px;
  background: rgba(246, 244, 238, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #2f322c;
  font-family: var(--ui-sans);
  font-size: 11.5px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow:
    0 4px 14px rgba(12, 14, 18, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  will-change: transform;
  transition: opacity 0.18s ease;
  opacity: 0;
}

.campus3d__plate--peer {
  padding: 3px 10px;
  background: rgba(246, 244, 238, 0.84);
}

.campus3d__plate--resident {
  background: rgba(238, 236, 228, 0.78);
  color: #4a4f45;
}

.campus3d__plate-badge {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #6e7466;
  color: #ffffff;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0;
}

.campus3d__plate--resident .campus3d__plate-badge {
  background: #8a8f80;
}

.campus3d__plate-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.campus3d__plate-tag {
  flex: 0 0 auto;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(110, 116, 102, 0.16);
  color: #6b7061;
  font-size: 9px;
  letter-spacing: 0.08em;
}

/* 名牌下面那一朵很短的气泡（同一套 DOM，跟着世界坐标走） */
.campus3d__plate-bubble {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translate(-50%, 100%) scale(0.96);
  max-width: min(52vw, 260px);
  padding: 4px 9px;
  border-radius: 10px;
  background: rgba(20, 22, 25, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(248, 250, 252, 0.95);
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.campus3d__plate-bubble.is-on {
  opacity: 1;
  transform: translate(-50%, 100%) scale(1);
}

/* ---------------- 通用墨线图标 ---------------- */

.campus__ink,
.ui-svg {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
}

.campus__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  line-height: 0;
  color: currentColor;
}

.campus__glyph--sm {
  width: 16px;
  height: 16px;
}

.campus__sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------------- 左上 / 右上：44px Liquid Glass 药丸 ---------------- */

.campus__pill {
  position: absolute;
  z-index: 30;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  height: 44px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.campus__pill--left {
  left: calc(env(safe-area-inset-left, 0px) + 15px);
}

.campus__pill--right {
  right: calc(env(safe-area-inset-right, 0px) + 15px);
}

.campus__pill-sep {
  flex: 0 0 auto;
  width: 1px;
  height: 22px;
  margin: 0 2px;
  background: rgba(255, 255, 255, 0.18);
}

.campus__glyph-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.campus__glyph-btn .campus__glyph {
  width: 20px;
  height: 20px;
}

.campus__glyph-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.campus__glyph-btn:active {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.18);
}

.campus__glyph-btn.is-on {
  color: #ffe0a8;
  background: rgba(255, 214, 150, 0.16);
}

.campus__glyph-btn:focus-visible,
.campus__profile:focus-visible,
.campus__tab:focus-visible,
.campus__stop:focus-visible,
.campus__broadcast:focus-visible,
.campus__pill-btn:focus-visible,
.campus__sheet-close:focus-visible,
.campus__sheet:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.82);
  outline-offset: 2px;
}

/* 第三枚：云学校 01 + 在场小点 + chevron */
.campus__profile {
  flex: 0 1 auto;
  min-width: 0;
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--ui-sans);
  font-size: 13px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, transform 0.14s ease;
}

.campus__profile:hover {
  background: rgba(255, 255, 255, 0.1);
}

.campus__profile:active {
  transform: scale(0.985);
}

.campus__profile-face {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffe9c0;
  padding: 3px;
  line-height: 0;
}

.campus__profile-name {
  min-width: 0;
  max-width: 9.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.campus__live {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px 1px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink-dim);
  font-size: 10.5px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.campus__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.campus__dot.is-online {
  background: #7ce49a;
  box-shadow: 0 0 8px rgba(124, 228, 154, 0.8);
}

.campus__chevron {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-right: 1.5px solid var(--ink-faint);
  border-bottom: 1.5px solid var(--ink-faint);
  transform: rotate(-45deg) translateY(-1px);
  border-radius: 1px;
}

/* 地图漫步时那枚「停止漫步」 */
.campus__stop {
  position: absolute;
  z-index: 30;
  top: calc(env(safe-area-inset-top, 0px) + 64px);
  left: calc(env(safe-area-inset-left, 0px) + 15px);
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  color: var(--ink);
  font-family: var(--ui-sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  cursor: pointer;
  animation: glass-in 0.2s ease-out;
}

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

/* 右上第三层：夕阳广播站（独立成行右对齐，任意曲名长度零遮挡） */
.campus__broadcast {
  position: absolute;
  z-index: 30;
  top: calc(env(safe-area-inset-top, 0px) + 110px);
  right: calc(env(safe-area-inset-right, 0px) + 15px);
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px 0 11px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  color: var(--ink);
  font-family: var(--ui-sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.14s ease;
}

.campus__broadcast:hover {
  background: rgba(255, 255, 255, 0.12);
}

.campus__broadcast:active {
  transform: scale(0.98);
}

.campus__broadcast.is-on {
  border-color: rgba(255, 214, 150, 0.52);
  color: #ffe4b4;
  background: rgba(255, 214, 150, 0.14);
}

/* 右上第二层右对齐：集卡册（水浒+三国 144 张收集进度 + 全服换卡入口） */
.campus__album-pill {
  position: absolute;
  z-index: 30;
  top: calc(env(safe-area-inset-top, 0px) + 64px);
  right: calc(env(safe-area-inset-right, 0px) + 15px);
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px 0 11px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid rgba(255, 218, 150, 0.42);
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 rgba(255, 226, 170, 0.22);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  color: #ffe8be;
  font-family: var(--ui-sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.14s ease;
}

.campus__album-pill:hover {
  background: rgba(255, 214, 150, 0.14);
}

.campus__album-pill:active {
  transform: scale(0.98);
}

/* 换卡桌上摆着重卡：药丸边缘亮一圈暖金 */
.campus__album-pill.has-swaps {
  border-color: rgba(255, 228, 166, 0.8);
  box-shadow:
    var(--glass-shadow),
    0 0 0 1px rgba(255, 216, 140, 0.26),
    inset 0 1px 0 rgba(255, 236, 196, 0.3);
}

.campus__album-pill:focus-visible {
  outline: 2px solid rgba(255, 228, 166, 0.72);
  outline-offset: 2px;
}

/* ---------------- 顶部居中的一句提示 ---------------- */

.campus__hint {
  position: absolute;
  z-index: 9;
  top: calc(env(safe-area-inset-top, 0px) + 20px);
  left: 50%;
  transform: translateX(-50%);
  max-width: min(70vw, 460px);
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--ui-sans);
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-align: center;
  text-shadow: 0 1px 6px rgba(6, 10, 16, 0.72), 0 0 14px rgba(6, 10, 16, 0.4);
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.campus__hint.is-faded {
  opacity: 0;
}

/* ---------------- 底部 54px 四页 dock ---------------- */

.campus__dock {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom, 0px) + 10px);
  width: min(356px, calc(100vw - 32px));
  height: 54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow:
    0 16px 38px rgba(6, 9, 14, 0.42),
    inset 0 1px 0 rgba(255, 236, 206, 0.28),
    inset 1px 0 0 rgba(255, 216, 168, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transform: translateX(-50%);
}

/* v6.0：底部改成灵魂五件套（干脆面 · 扇卡 · 传纸条 · 纸飞机 · 入座）。
   四格那套 356px 的宽度令牌原样保留在上面（验收脚本逐字比它），
   五格用--five 这个修饰类把宽度与列数一起放宽，谁都不挤谁。 */
.campus__dock--five {
  width: min(416px, calc(100vw - 24px));
  grid-template-columns: repeat(5, 1fr);
}

.campus__tab {
  height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-dim);
  font-family: var(--ui-sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.campus__tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  line-height: 0;
  color: inherit;
}

.campus__tab-icon svg {
  width: 100%;
  height: 100%;
}

.campus__tab-label {
  display: block;
  white-space: nowrap;
}

.campus__tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

.campus__tab:active {
  transform: scale(0.96);
}

.campus__tab.is-on {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(180deg, rgba(255, 236, 204, 0.2), rgba(255, 255, 255, 0.08));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 244, 224, 0.35);
  color: var(--ink);
}

/* v6.0：扇卡那一格带一点「激光银」冷光 —— 跟三国特卡是同一个色系 */
#campus-slap-btn {
  color: rgba(212, 234, 255, 0.9);
}

#campus-slap-btn:hover {
  color: #eaf5ff;
  background: rgba(160, 202, 255, 0.12);
}

#campus-slap-btn.is-on {
  border: 1px solid rgba(214, 236, 255, 0.46);
  background: linear-gradient(180deg, rgba(214, 236, 255, 0.22), rgba(255, 255, 255, 0.08));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(238, 248, 255, 0.36);
  color: #f2f9ff;
}

/* ---------------- v4.0：入座后的课桌摸鱼条 ---------------- */

.campus__mischief {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: calc(max(14px, env(safe-area-inset-bottom, 0px) + 10px) + 58px);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px 4px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow:
    0 16px 38px rgba(6, 9, 14, 0.42),
    inset 0 1px 0 rgba(255, 236, 206, 0.28),
    inset 1px 0 0 rgba(255, 216, 168, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(13px) saturate(1.16);
  -webkit-backdrop-filter: blur(13px) saturate(1.16);
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1), transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.campus__mischief[hidden] {
  display: none;
}

.campus__mischief.is-on {
  opacity: 1;
  pointer-events: auto;
  animation: campus-mischief-rise 0.3s cubic-bezier(0.2, 0.9, 0.25, 1);
}

@keyframes campus-mischief-rise {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.campus__mischief-btn {
  height: 36px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-dim);
  font-family: var(--ui-sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.campus__mischief-btn .campus__tab-icon {
  width: 17px;
  height: 17px;
}

.campus__mischief-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

.campus__mischief-btn:active {
  transform: scale(0.96);
}

.campus__mischief-btn.is-on {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(180deg, rgba(255, 236, 204, 0.2), rgba(255, 255, 255, 0.08));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 244, 224, 0.35);
  color: var(--ink);
}

.campus__mischief-label {
  display: block;
  white-space: nowrap;
}

.campus__mischief-sep {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 1px;
}

/* 触感器物开着的时候，摸鱼条先安静地退到后面 */
.campus.is-tactile-open .campus__mischief {
  opacity: 0;
  pointer-events: none;
}

/* ---------------- 纸飞机 ---------------- */

.campus__planes {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  overflow: hidden;
}

.campus__plane {
  position: absolute;
  left: -10%;
  top: var(--plane-start-y, 32%);
  width: clamp(20px, 2.6vw, 30px);
  height: auto;
  line-height: 0;
  color: rgba(255, 249, 236, 0.92);
  filter: drop-shadow(0 2px 7px rgba(10, 14, 20, 0.5));
  animation: campus-plane-drift var(--plane-duration, 3.8s) linear forwards;
}

.campus__plane-ink {
  display: block;
  width: 100%;
  height: auto;
  color: inherit;
}

@keyframes campus-plane-drift {
  0% {
    left: -10%;
    top: var(--plane-start-y, 32%);
    opacity: 0;
    transform: rotate(-12deg) scale(0.9);
  }

  10% {
    opacity: 1;
  }

  50% {
    top: calc(var(--plane-start-y, 32%) - 7%);
    transform: rotate(8deg) scale(1);
  }

  90% {
    opacity: 1;
  }

  100% {
    left: 110%;
    top: calc(var(--plane-start-y, 32%) - 12%);
    opacity: 0;
    transform: rotate(-6deg) scale(0.92);
  }
}

/* ---------------- 轻提示 ---------------- */

.campus__toast {
  position: absolute;
  z-index: 50;
  left: 50%;
  bottom: calc(max(14px, env(safe-area-inset-bottom, 0px) + 10px) + 70px);
  max-width: min(86vw, 560px);
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  color: var(--ink);
  font-family: var(--ui-sans);
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.campus__toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 入座以后，轻语挪到顶部居中 —— 课桌、黑板与底部两块 HUD 全都让开 */
.campus.is-sitting .campus__toast {
  top: calc(env(safe-area-inset-top, 0px) + 64px);
  bottom: auto;
  transform: translate(-50%, -8px);
}

.campus.is-sitting .campus__toast.is-on {
  transform: translate(-50%, 0);
}

@keyframes glass-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   弹窗：漫步云校 / 设置与三轨环境音
   深色毛玻璃 + 1px 高光边 + 26px 圆角，没有一张泛黄的纸。
   ========================================================= */

.campus__modal {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 32px);
  background: rgba(10, 13, 18, 0.44);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.26s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.campus__modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.campus__sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-height: min(90vh, 760px);
  padding: clamp(14px, 2vw, 22px);
  border-radius: 26px;
  background: rgba(26, 28, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 34px 80px rgba(6, 9, 14, 0.56),
    inset 0 1px 0 rgba(255, 236, 206, 0.28),
    inset 1px 0 0 rgba(255, 216, 168, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(28px) saturate(1.44);
  -webkit-backdrop-filter: blur(28px) saturate(1.44);
  color: var(--ink);
  transform: translateY(12px) scale(0.99);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.campus__sheet--map {
  max-width: min(460px, 92vw);
}

.campus__sheet--settings {
  max-width: min(430px, 92vw);
}

.campus__modal.is-open .campus__sheet {
  transform: none;
}

.campus__sheet:focus {
  outline: none;
}

.campus__sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.campus__sheet-title {
  margin: 0;
  font-family: var(--ui-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.campus__sheet-sub {
  margin: 3px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--ink-faint);
}

.campus__sheet-close {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-line);
  color: var(--ink-dim);
  font-family: var(--ui-sans);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.campus__sheet-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--ink);
}

/* ---------------- 鸟瞰地图 ---------------- */

.campus__map {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.32);
}

.campus__map-svg {
  display: block;
  width: 100%;
  height: auto;
}

#campus-map-dot,
#campus-map-halo {
  transition: cx 0.35s ease, cy 0.35s ease;
}

.campus__map-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.campus__map-pill {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-line);
  color: var(--ink-dim);
  font-family: var(--ui-sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.14s ease;
}

.campus__map-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--glass-line-strong);
  color: var(--ink);
}

.campus__map-pill:active {
  transform: scale(0.97);
}

.campus__map-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.campus__map-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-line);
  color: var(--ink);
  font-family: var(--ui-sans);
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.14s ease;
}

.campus__map-link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--glass-line-strong);
}

.campus__map-link:active {
  transform: scale(0.985);
}

.campus__map-link-title {
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.campus__map-link-note {
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--ink-faint);
}

/* ---------------- 设置：总开关 + 三条推子 ---------------- */

.campus__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.campus__row-label {
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* iOS 式开关 */
.campus__switch {
  position: relative;
  flex: 0 0 auto;
  width: 50px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: background 0.22s ease;
}

.campus__switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.22s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.campus__switch.is-on {
  background: #34c759;
}

.campus__switch.is-on .campus__switch-knob {
  transform: translateX(20px);
}

.campus__mix {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.campus__mix + .campus__mix {
  margin-top: 8px;
}

.campus__mix-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.campus__mix-value {
  color: var(--ink-dim);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.campus__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.campus__slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.campus__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.campus__slider::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.campus__slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

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

.campus__pill-btn {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--glass-line);
  color: var(--ink);
  font-family: var(--ui-sans);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.14s ease;
}

.campus__pill-btn:hover {
  background: rgba(255, 255, 255, 0.17);
  border-color: var(--glass-line-strong);
}

.campus__pill-btn:active {
  transform: scale(0.98);
}

/* =========================================================
   全屏散景触感浮层（圆珠笔 / 盘木珠）
   散景 z-index 25：顶部 HUD 与底部 dock 仍在 30，永远清晰。
   ========================================================= */

.tactile {
  display: contents;
}

.tactile__veil {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(16, 15, 14, 0.24);
  backdrop-filter: blur(13px) saturate(1.16);
  -webkit-backdrop-filter: blur(13px) saturate(1.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.26s ease, visibility 0.26s ease;
}

.tactile.is-open .tactile__veil {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tactile__stage {
  position: fixed;
  inset: 0;
  z-index: 26;
  display: grid;
  place-items: center;
  padding: 0 6vw;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.26s ease;
}

.tactile.is-open .tactile__stage {
  opacity: 1;
}

.tactile__canvas {
  display: block;
  pointer-events: auto;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 26px 46px rgba(0, 0, 0, 0.5));
  animation: tactile-rise 0.34s cubic-bezier(0.2, 0.9, 0.25, 1);
}

@keyframes tactile-rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.tactile__bar {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: calc(max(14px, env(safe-area-inset-bottom, 0px) + 10px) + 66px);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 44px;
  padding: 0 6px 0 4px;
  border-radius: 999px;
  background: rgba(24, 26, 29, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  color: rgba(249, 251, 254, 0.96);
  font-family: var(--ui-sans);
  transform: translateX(-50%);
  animation: glass-in 0.24s ease-out;
}

.tactile__bar[hidden],
.tactile__bar-btn[hidden],
.tactile__bar-divider[hidden] {
  display: none !important;
}

.tactile__bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-family: var(--ui-sans);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.tactile__bar-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.tactile__bar-btn:active {
  transform: scale(0.97);
}

.tactile__bar-btn--icon {
  width: 36px;
  padding: 0;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
}

.tactile__bar-btn.is-on {
  color: #ffe0a8;
  background: rgba(255, 214, 150, 0.16);
}

.tactile__bar-glyph {
  font-size: 11px;
  line-height: 1;
  opacity: 0.82;
}

.tactile__bar-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
}

.tactile__count {
  position: fixed;
  z-index: 30;
  left: max(22px, calc(50% - 216px));
  bottom: calc(max(14px, env(safe-area-inset-bottom, 0px) + 10px) + 114px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
}

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

.tactile__count-num {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-family: var(--ui-sans);
  font-size: 30px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.tactile__count-num b {
  font-weight: 300;
}

.tactile__count-num span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 15px;
}

.tactile__count-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--ui-sans);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.tactile__collapse {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: calc(max(14px, env(safe-area-inset-bottom, 0px) + 10px) + 66px);
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px 0 13px;
  border-radius: 999px;
  background: rgba(24, 26, 29, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  color: rgba(249, 251, 254, 0.96);
  font-family: var(--ui-sans);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transform: translateX(-50%);
  animation: glass-in 0.24s ease-out;
}

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

.tactile__collapse:hover {
  background: rgba(40, 43, 48, 0.62);
}

.tactile__collapse-glyph {
  font-size: 13px;
  opacity: 0.82;
}

/* 浮层开着的时候，3D 世界里那只小人不必再抢点击 */
.campus.is-tactile-open .campus__dock,
.campus.is-tactile-open .campus__pill {
  pointer-events: auto;
}

/* =========================================================
   三块浮层（校友留言栏 / 五毛戳戳乐 / 校友学生证）
   统一改成深色 Liquid Glass：26px 圆角 + 1px 高光边。
   ========================================================= */

.campus__panels {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.campus-board,
.campus-luck,
.campus-profile {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2.6vw, 30px);
  background: rgba(9, 12, 16, 0.46);
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.26s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.campus-board.is-open,
.campus-luck.is-open,
.campus-profile.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.campus-board__frame,
.campus-luck__frame,
.campus-profile__frame {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: clamp(14px, 2vw, 22px);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(26, 28, 32, 0.74);
  box-shadow:
    0 34px 80px rgba(6, 9, 14, 0.58),
    inset 0 1px 0 rgba(255, 236, 206, 0.28),
    inset 1px 0 0 rgba(255, 216, 168, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(28px) saturate(1.44);
  -webkit-backdrop-filter: blur(28px) saturate(1.44);
  color: rgba(249, 251, 254, 0.96);
  transform: translateY(12px) scale(0.99);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.campus-board__frame {
  max-width: 760px;
  max-height: min(90vh, 720px);
}

.campus-luck__frame {
  max-width: 440px;
  max-height: min(90vh, 700px);
}

.campus-profile__frame {
  max-width: 480px;
  max-height: min(90vh, 700px);
}

.campus-board.is-open .campus-board__frame,
.campus-luck.is-open .campus-luck__frame,
.campus-profile.is-open .campus-profile__frame {
  transform: none;
}

.campus-board__frame:focus,
.campus-luck__frame:focus,
.campus-profile__frame:focus {
  outline: none;
}

.campus-board__head,
.campus-luck__head,
.campus-profile__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.campus-board__title,
.campus-luck__title,
.campus-profile__title {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  font-family: var(--ui-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(249, 251, 254, 0.98);
}

.campus-board__sub,
.campus-luck__sub,
.campus-profile__sub {
  margin: 3px 0 0;
  font-family: var(--ui-sans);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: rgba(206, 216, 228, 0.52);
}

.campus-panel__close {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(226, 233, 241, 0.72);
  font-family: var(--ui-sans);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.campus-panel__close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(249, 251, 254, 0.96);
}

.campus-panel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-right: 7px;
  line-height: 0;
  color: rgba(249, 251, 254, 0.82);
}

.campus-panel__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
}

/* ---------------- 留言栏 ---------------- */

.campus-board__notes {
  position: relative;
  flex: 1 1 auto;
  min-height: 120px;
  max-height: min(44vh, 380px);
  padding: 2px 4px 8px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
  gap: 10px;
  align-content: start;
}

.sticky {
  position: relative;
  min-width: 0;
  padding: 12px 12px 10px;
  border-radius: 12px;
  color: #3f3527;
  background: #f7e9a8;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: rotate(-0.8deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticky:nth-child(2n) {
  transform: rotate(0.7deg);
}

.sticky:nth-child(3n) {
  transform: rotate(-1.3deg);
}

.sticky:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.sticky--c0 { background: #f7e9a8; }
.sticky--c1 { background: #f9dfe0; }
.sticky--c2 { background: #e3f0d6; }
.sticky--c3 { background: #fdeec9; }
.sticky--c4 { background: #e6e6f4; }
.sticky--c5 { background: #f5e3c8; }

.sticky--seed {
  background-image: repeating-linear-gradient(45deg, rgba(150, 116, 70, 0.06) 0 6px, transparent 6px 12px);
}

.sticky--fresh {
  animation: sticky-drop 0.42s cubic-bezier(0.2, 1.1, 0.4, 1);
}

@keyframes sticky-drop {
  0% {
    opacity: 0;
    transform: translateY(-12px) rotate(-4deg) scale(0.94);
  }

  100% {
    opacity: 1;
    transform: rotate(-0.8deg) scale(1);
  }
}

.sticky__seal {
  position: absolute;
  top: 6px;
  right: 7px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(140, 104, 62, 0.12);
  border: 1px solid rgba(140, 104, 62, 0.24);
  color: rgba(112, 82, 48, 0.82);
  font-family: var(--ui-sans);
  font-size: 9px;
  line-height: 15px;
  letter-spacing: 0.06em;
}

.sticky__line {
  margin: 0;
  padding-right: 4px;
  font-family: var(--ui-sans);
  font-size: 13px;
  line-height: 1.62;
  letter-spacing: 0.01em;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.sticky--seed .sticky__line {
  padding-right: 52px;
}

.sticky__meta {
  margin: 8px 0 0;
  font-family: var(--ui-sans);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: rgba(96, 72, 46, 0.8);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.sticky__who {
  margin: 2px 0 0;
  font-family: var(--ui-sans);
  font-size: 9.5px;
  letter-spacing: 0.01em;
  color: rgba(96, 72, 46, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 三组可点的玻璃片（替掉原生的 select） */
.campus-board__composer {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.campus-board__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.campus-board__field--wide {
  grid-column: 1 / -1;
}

.campus-board__field-label {
  font-family: var(--ui-sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(206, 216, 228, 0.5);
}

.campus-board__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.campus-chip {
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(226, 233, 241, 0.78);
  font-family: var(--ui-sans);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.campus-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(249, 251, 254, 0.96);
}

.campus-chip:active {
  transform: scale(0.97);
}

.campus-chip.is-on {
  border-color: rgba(255, 214, 150, 0.58);
  background: rgba(255, 214, 150, 0.16);
  color: #ffe6bc;
}

.campus-board__post {
  grid-column: 1 / -1;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: rgba(249, 251, 254, 0.96);
  font-family: var(--ui-sans);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.14s ease;
}

.campus-board__post:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}

.campus-board__post:active:not(:disabled) {
  transform: scale(0.985);
}

.campus-board__post:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.campus-board__hint {
  margin: 0;
  font-family: var(--ui-sans);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: rgba(206, 216, 228, 0.5);
  min-height: 15px;
}

/* ---------------- 五毛戳戳乐 ---------------- */

.campus-luck__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 330px;
  margin: 0 auto;
}

.luck-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 4px, transparent 4px 9px),
    linear-gradient(158deg, rgba(246, 216, 165, 0.2), rgba(198, 156, 102, 0.16));
  color: rgba(255, 238, 206, 0.82);
  font-family: var(--ui-sans);
  font-size: clamp(12px, 2.4vw, 14px);
  letter-spacing: 0.14em;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.18s ease;
}

.luck-cell:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 4px, transparent 4px 9px),
    linear-gradient(158deg, rgba(246, 216, 165, 0.3), rgba(198, 156, 102, 0.2));
}

.luck-cell:active:not(:disabled) {
  transform: scale(0.985);
}

.luck-cell:disabled {
  cursor: default;
  opacity: 0.66;
}

.luck-cell__paper {
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.luck-cell.is-torn .luck-cell__paper {
  opacity: 0.16;
  transform: scale(0.72) rotate(-8deg);
}

.luck-cell__tear {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 46%, rgba(255, 244, 214, 0.34), rgba(255, 244, 214, 0.04) 62%, transparent 72%);
  opacity: 0;
  transform: scale(0.4);
}

.luck-cell.is-torn .luck-cell__tear {
  animation: luck-tear 0.42s ease-out forwards;
}

@keyframes luck-tear {
  0% {
    opacity: 0.9;
    transform: scale(0.3);
  }

  60% {
    opacity: 0.5;
    transform: scale(1.05);
  }

  100% {
    opacity: 0.24;
    transform: scale(1);
  }
}

.campus-luck__card {
  width: 100%;
  max-width: 330px;
  margin: 0 auto;
  padding: 15px 16px 13px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 6px),
    linear-gradient(160deg, rgba(250, 240, 218, 0.16), rgba(214, 186, 142, 0.12));
  color: rgba(249, 251, 254, 0.94);
  animation: fortune-in 0.34s cubic-bezier(0.2, 0.95, 0.3, 1);
}

@keyframes fortune-in {
  0% {
    opacity: 0;
    transform: translateY(10px) rotate(-0.5deg);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

.fortune__grade {
  display: inline-block;
  margin: 0 0 7px;
  padding: 1px 10px;
  border-radius: 999px;
  background: rgba(255, 214, 150, 0.16);
  border: 1px solid rgba(255, 214, 150, 0.36);
  color: #ffe4b4;
  font-family: var(--ui-sans);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.fortune__title {
  margin: 0 0 9px;
  font-family: var(--ui-sans);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(249, 251, 254, 0.98);
}

.fortune__rows {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fortune__row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-family: var(--ui-sans);
  font-size: 12.5px;
  line-height: 1.55;
}

.fortune__row dt {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--ui-sans);
  font-size: 11.5px;
  letter-spacing: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffe4b4;
}

.fortune__row dd {
  margin: 0;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: rgba(236, 242, 249, 0.9);
}

.fortune__row--ji dt {
  color: rgba(206, 216, 228, 0.72);
}

.fortune__note {
  margin: 10px 0 6px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--ui-sans);
  font-size: 11.5px;
  line-height: 1.62;
  color: rgba(206, 216, 228, 0.76);
}

.fortune__foot {
  margin: 0;
  text-align: right;
  font-family: var(--ui-sans);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: rgba(206, 216, 228, 0.42);
}

.campus-luck__card[hidden],
.campus-luck__actions[hidden],
.campus-luck__preview[hidden],
.campus-luck__save-hint[hidden] {
  display: none !important;
}

.campus-luck__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.campus-luck__again,
.campus-luck__done,
.campus-luck__save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  font-family: var(--ui-sans);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.14s ease;
}

.campus-luck__again,
.campus-luck__done {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(249, 251, 254, 0.92);
}

.campus-luck__again:hover,
.campus-luck__done:hover {
  background: rgba(255, 255, 255, 0.16);
}

.campus-luck__save {
  background: rgba(255, 214, 150, 0.16);
  border: 1px solid rgba(255, 214, 150, 0.42);
  color: #ffe6bc;
}

.campus-luck__save:hover:not(:disabled) {
  background: rgba(255, 214, 150, 0.24);
}

.campus-luck__save:disabled {
  opacity: 0.58;
  cursor: progress;
}

.campus-luck__save .campus-panel__icon {
  width: 16px;
  height: 16px;
  margin-right: 0;
  color: currentColor;
}

.campus-luck__hint {
  margin: 0;
  text-align: center;
  font-family: var(--ui-sans);
  font-size: 10.5px;
  letter-spacing: 0.01em;
  color: rgba(206, 216, 228, 0.46);
}

.campus-luck__preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 330px;
  margin: 2px auto 0;
}

.campus-luck__preview-img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #f2e3c2;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

.campus-luck__preview-cap {
  margin: 0;
  text-align: center;
  font-family: var(--ui-sans);
  font-size: 10.5px;
  letter-spacing: 0.01em;
  color: rgba(206, 216, 228, 0.56);
}

.campus-luck__save-hint {
  margin: 0;
  text-align: center;
  font-family: var(--ui-sans);
  font-size: 10.5px;
  letter-spacing: 0.01em;
  color: #ffd9a0;
}

/* ---------------- 校友学生证 ---------------- */

.campus-profile__id {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.campus-profile__face {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffe9c0;
  padding: 6px;
  line-height: 0;
}

.campus-profile__meta {
  min-width: 0;
}

.campus-profile__alias {
  margin: 0;
  font-family: var(--ui-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(249, 251, 254, 0.98);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.campus-profile__note {
  margin: 2px 0 0;
  font-family: var(--ui-sans);
  font-size: 10.5px;
  letter-spacing: 0.01em;
  color: rgba(206, 216, 228, 0.5);
}

.campus-profile__label {
  margin: 2px 0 0;
  font-family: var(--ui-sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(206, 216, 228, 0.46);
}

.campus-profile__avatars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 12px 8px 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(249, 251, 254, 0.92);
  font-family: var(--ui-sans);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.16s ease, border-color 0.18s ease, background 0.18s ease;
}

.profile-avatar:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.profile-avatar:active {
  transform: scale(0.985);
}

.profile-avatar.is-on {
  border-color: rgba(255, 214, 150, 0.56);
  background: rgba(255, 214, 150, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 150, 0.24);
}

/* 学生证上的立绘预览：改成现场的墨线小像，不再请求任何 webp */
.profile-avatar__sprite {
  display: grid;
  place-items: center;
  width: clamp(56px, 13vw, 84px);
  height: clamp(56px, 13vw, 84px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 34%, rgba(255, 240, 208, 0.14), rgba(255, 240, 208, 0) 62%),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffe9c0;
  line-height: 0;
}

.profile-avatar__sprite svg {
  display: block;
  width: 66%;
  height: 66%;
  color: inherit;
}

.profile-avatar__name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--ui-sans);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.profile-avatar__name .campus-panel__icon {
  width: 15px;
  height: 15px;
  margin-right: 0;
  color: currentColor;
}

.profile-avatar__tip {
  max-width: 100%;
  font-family: var(--ui-sans);
  font-size: 10px;
  letter-spacing: 0.01em;
  color: rgba(206, 216, 228, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.campus-profile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-tag {
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(226, 233, 241, 0.8);
  font-family: var(--ui-sans);
  font-size: 12px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.14s ease;
}

.profile-tag:hover {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(249, 251, 254, 0.96);
}

.profile-tag:active {
  transform: scale(0.97);
}

.profile-tag.is-on {
  border-color: rgba(255, 214, 150, 0.56);
  background: rgba(255, 214, 150, 0.16);
  color: #ffe6bc;
}

.campus-profile__hint {
  margin: 0;
  text-align: center;
  font-family: var(--ui-sans);
  font-size: 10.5px;
  letter-spacing: 0.01em;
  color: rgba(206, 216, 228, 0.46);
}

/* =========================================================
   校园 ⇄ 教室 的柔和切换（那段黑场遮罩本身就很 Apple）
   ========================================================= */

.mode-veil {
  position: fixed;
  inset: 0;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 42%, #1b2230, #0a0d12 72%);
  transition: opacity 0.16s ease;
}

.mode-veil.is-on {
  opacity: 1;
  pointer-events: auto;
}

/* 屋里那几枚「回走廊」的玻璃药丸（campus.css 里统一了画风） */
.exit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(26, 28, 32, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(249, 251, 254, 0.96);
  font-family: var(--ui-sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: auto;
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.exit-btn:hover {
  background: rgba(40, 44, 50, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.exit-btn[hidden] {
  display: none !important;
}

/* v5.1：在小卖部买干脆面时减轻背景毛玻璃模糊度，清晰露出窗口热闹挤买面的同学人群 */
.tactile[data-mode="snack"] .tactile__veil {
  background: rgba(14, 10, 8, 0.22);
  backdrop-filter: blur(2.5px) saturate(1.14);
  -webkit-backdrop-filter: blur(2.5px) saturate(1.14);
}

/* =========================================================
   窄屏
   ========================================================= */

@media (max-width: 640px) {
  .campus__pill {
    top: calc(env(safe-area-inset-top, 0px) + 10px);
  }

  .campus__pill--left {
    left: calc(env(safe-area-inset-left, 0px) + 10px);
  }

  .campus__pill--right {
    right: calc(env(safe-area-inset-right, 0px) + 10px);
  }

  #campus-breeze-btn {
    display: none;
  }

  .campus__glyph-btn {
    width: 38px;
  }

  .campus__pill-sep {
    margin: 0 1px;
  }

  .campus__profile {
    gap: 5px;
    padding: 0 9px 0 6px;
    font-size: 12.5px;
  }

  .campus__profile-name {
    max-width: 5.6em;
  }

  .campus__live {
    padding: 1px 6px 1px 4px;
    font-size: 10px;
  }

  .campus__broadcast {
    top: calc(env(safe-area-inset-top, 0px) + 62px);
    right: calc(env(safe-area-inset-right, 0px) + 10px);
    height: 34px;
    padding: 0 12px 0 9px;
    font-size: 11.5px;
  }

  /* 390×844 上两颗药丸肩并肩：集卡册贴在听广播左边，中间留 8px，零重叠 */
  .campus__album-pill {
    top: calc(env(safe-area-inset-top, 0px) + 62px);
    right: calc(env(safe-area-inset-right, 0px) + 94px);
    height: 34px;
    padding: 0 11px 0 9px;
    font-size: 11.5px;
  }

  .campus__hint {
    top: calc(env(safe-area-inset-top, 0px) + 64px);
    font-size: 11.5px;
    max-width: 78vw;
  }

  .campus__stop {
    top: calc(env(safe-area-inset-top, 0px) + 60px);
    left: calc(env(safe-area-inset-left, 0px) + 10px);
    height: 30px;
    font-size: 11.5px;
  }

  .campus__tab {
    font-size: 11px;
  }

  /* v6.0：390px 宽的手机上五格 dock 依然要松快 —— 收到贴边，字号再落半号 */
  .campus__dock--five {
    width: calc(100vw - 20px);
    gap: 1px;
    padding: 3px;
  }

  .campus__dock--five .campus__tab {
    font-size: 10.5px;
    gap: 0;
  }

  .campus__dock--five .campus__tab-icon {
    width: 18px;
    height: 18px;
  }

  .campus__mischief {
    max-width: calc(100vw - 16px);
    padding: 3px;
    gap: 1px;
  }

  .campus__mischief-btn {
    height: 36px;
    padding: 0 7px;
    gap: 3px;
    font-size: 11px;
  }

  .campus__mischief-btn .campus__tab-icon {
    width: 14px;
    height: 14px;
  }

  /* 手机上摸鱼条改成上下两行都放得下的小号胶囊 */
  .campus__mischief {
    bottom: calc(max(14px, env(safe-area-inset-bottom, 0px) + 10px) + 58px);
    max-width: calc(100vw - 24px);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .campus__mischief-btn {
    padding: 0 9px;
    font-size: 11px;
  }

  .campus__mischief-btn .campus__tab-icon {
    width: 15px;
    height: 15px;
  }

  .campus__net-label {
    display: none;
  }

  .campus__toast {
    font-size: 12px;
    padding: 9px 13px;
  }

  .campus-board__frame,
  .campus-luck__frame,
  .campus-profile__frame {
    max-height: 88vh;
    padding: 12px;
    border-radius: 22px;
  }

  .campus__sheet {
    padding: 14px;
    border-radius: 22px;
  }

  .campus-board__notes {
    max-height: min(40vh, 300px);
    grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
    gap: 8px;
  }

  .sticky {
    padding: 10px 9px 8px;
  }

  .sticky__line {
    font-size: 12px;
  }

  .campus-luck__grid {
    max-width: min(84vw, 300px);
  }

  .tactile__count {
    left: calc(env(safe-area-inset-left, 0px) + 16px);
    bottom: calc(max(14px, env(safe-area-inset-bottom, 0px) + 10px) + 66px);
  }

  .tactile__count-num {
    font-size: 26px;
  }

  .tactile__count-note {
    font-size: 11px;
  }
}

/* =========================================================
   v3.0：三间屋子的顶部也换成同一套 Liquid Glass 语言
   朱砂印整个退场，只剩一块 44px 的毛玻璃药丸 + 一句无衬线副标。
   （rooms.css / style.css 里那套纸面排版保持不动，这里只覆写颜色与字体。）
   ========================================================= */

#app .brand__seal,
#app .room__seal {
  display: none !important;
}

/* style.css 里 .topbar 是 3 列网格、.brand 是 display: contents；
   v3.0 起整个头部改成「竖着两块」：一块玻璃药丸 + 一句副标。
   filter 必须清掉 —— 被 filter 包住的祖先会让 backdrop-filter 取不到背景。 */
#app .topbar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  max-width: min(80vw, 520px);
  padding: 0;
  filter: none;
  pointer-events: none;
}

/* rooms.css 的 .room__brand 也带一层 drop-shadow：同样必须清掉 */
#app .room__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  filter: none;
  pointer-events: none;
}

#app .brand,
#app .room__brand-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 6px 0 15px;
  border-radius: 999px;
  background: rgba(24, 26, 29, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  color: rgba(249, 251, 254, 0.96);
  font-family: var(--ui-sans);
  pointer-events: auto;
}

#app .brand__title,
#app .room__title {
  margin: 0;
  color: inherit;
  font-family: var(--ui-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  text-shadow: none;
}

#app .brand__sub,
#app .room__sub {
  margin: 7px 0 0;
  color: rgba(226, 233, 241, 0.62);
  font-family: var(--ui-sans);
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-shadow: none;
}

#app .room__icon,
#app .brand__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  line-height: 0;
  color: currentColor;
}

#app .room__icon svg,
#app .brand__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

#app .room__exit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(249, 251, 254, 0.94);
  font-family: var(--ui-sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.14s ease;
}

#app .room__exit:hover {
  background: rgba(255, 255, 255, 0.2);
}

#app .room__exit:active {
  transform: scale(0.97);
}

#app .room__exit-label {
  font-family: var(--ui-sans);
}

#app .room__pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(24, 26, 29, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  color: rgba(249, 251, 254, 0.9);
  font-family: var(--ui-sans);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

#app .room__pill.is-on,
#app .room__pill[aria-pressed="true"] {
  border-color: rgba(255, 214, 150, 0.48);
  color: #ffe6bc;
}

#app .room__pill-label {
  font-family: var(--ui-sans);
}

/* =========================================================
   动效克制
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .campus__plane {
    animation-duration: 1.2s !important;
  }

  .campus__toast,
  .campus__modal,
  .campus__sheet,
  .sticky,
  .campus-board,
  .campus-luck,
  .campus-profile,
  .campus-board__frame,
  .campus-luck__frame,
  .campus-profile__frame,
  .campus__tab,
  .campus__mischief,
  .campus__mischief-btn,
  .campus__glyph-btn,
  .campus__profile,
  .mode-veil,
  .tactile__veil,
  .tactile__stage {
    transition-duration: 0.001ms !important;
  }

  .sticky--fresh,
  .campus-luck__card,
  .tactile__canvas,
  .tactile__bar,
  .tactile__collapse,
  .campus__mischief.is-on,
  .campus__stop {
    animation: none !important;
  }
}
