/* ==========================================================================
 * css/sunrain-window.css — 《今天是太阳雨》· 4K 街角同撑一把伞 + 真机手机模式测试台
 * ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #080E1A;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #F8FAFC;
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* 线条图标：Remix Icon 4.6.0（Apache-2.0，与主站同一套），以 CSS 遮罩方式上色，不依赖字体文件 */
:root {
  --ic-card: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.7134 8.12811L20.4668 8.69379C20.2864 9.10792 19.7136 9.10792 19.5331 8.69379L19.2866 8.12811C18.8471 7.11947 18.0555 6.31641 17.0677 5.87708L16.308 5.53922C15.8973 5.35653 15.8973 4.75881 16.308 4.57612L17.0252 4.25714C18.0384 3.80651 18.8442 2.97373 19.2761 1.93083L19.5293 1.31953C19.7058 0.893489 20.2942 0.893489 20.4706 1.31953L20.7238 1.93083C21.1558 2.97373 21.9616 3.80651 22.9748 4.25714L23.6919 4.57612C24.1027 4.75881 24.1027 5.35653 23.6919 5.53922L22.9323 5.87708C21.9445 6.31641 21.1529 7.11947 20.7134 8.12811ZM2.9918 3H14V5H4V19L14 9L20 15V11H22V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z'/%3E%3C/svg%3E");
  --ic-sound-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.60282 10.0001L10 7.22056V16.7796L6.60282 14.0001H3V10.0001H6.60282ZM2 16.0001H5.88889L11.1834 20.3319C11.2727 20.405 11.3846 20.4449 11.5 20.4449C11.7761 20.4449 12 20.2211 12 19.9449V4.05519C12 3.93977 11.9601 3.8279 11.887 3.73857C11.7121 3.52485 11.3971 3.49335 11.1834 3.66821L5.88889 8.00007H2C1.44772 8.00007 1 8.44778 1 9.00007V15.0001C1 15.5524 1.44772 16.0001 2 16.0001ZM23 12C23 15.292 21.5539 18.2463 19.2622 20.2622L17.8445 18.8444C19.7758 17.1937 21 14.7398 21 12C21 9.26016 19.7758 6.80629 17.8445 5.15557L19.2622 3.73779C21.5539 5.75368 23 8.70795 23 12ZM18 12C18 10.0883 17.106 8.38548 15.7133 7.28673L14.2842 8.71584C15.3213 9.43855 16 10.64 16 12C16 13.36 15.3213 14.5614 14.2842 15.2841L15.7133 16.7132C17.106 15.6145 18 13.9116 18 12Z'/%3E%3C/svg%3E");
  --ic-sound-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 7.22056L6.60282 10.0001H3V14.0001H6.60282L10 16.7796V7.22056ZM5.88889 16.0001H2C1.44772 16.0001 1 15.5524 1 15.0001V9.00007C1 8.44778 1.44772 8.00007 2 8.00007H5.88889L11.1834 3.66821C11.3971 3.49335 11.7121 3.52485 11.887 3.73857C11.9601 3.8279 12 3.93977 12 4.05519V19.9449C12 20.2211 11.7761 20.4449 11.5 20.4449C11.3846 20.4449 11.2727 20.405 11.1834 20.3319L5.88889 16.0001ZM20.4142 12.0001L23.9497 15.5356L22.5355 16.9498L19 13.4143L15.4645 16.9498L14.0503 15.5356L17.5858 12.0001L14.0503 8.46454L15.4645 7.05032L19 10.5859L22.5355 7.05032L23.9497 8.46454L20.4142 12.0001Z'/%3E%3C/svg%3E");
  --ic-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 21H5C4.44772 21 4 20.5523 4 20V11L1 11L11.3273 1.6115C11.7087 1.26475 12.2913 1.26475 12.6727 1.6115L23 11L20 11V20C20 20.5523 19.5523 21 19 21ZM13 19H18V9.15745L12 3.7029L6 9.15745V19H11V13H13V19Z'/%3E%3C/svg%3E");
  --ic-share: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 14H11C7.54202 14 4.53953 15.9502 3.03239 18.8107C3.01093 18.5433 3 18.2729 3 18C3 12.4772 7.47715 8 13 8V2.5L23.5 11L13 19.5V14ZM11 12H15V15.3078L20.3214 11L15 6.69224V10H13C10.5795 10 8.41011 11.0749 6.94312 12.7735C8.20873 12.2714 9.58041 12 11 12Z'/%3E%3C/svg%3E");
  --ic-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z'/%3E%3C/svg%3E");
  --ic-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z'/%3E%3C/svg%3E");
  --ic-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 10H18L12 16L6 10H11V3H13V10ZM4 19H20V12H22V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V12H4V19Z'/%3E%3C/svg%3E");
  --ic-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z'/%3E%3C/svg%3E");
  --ic-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4V20H17V4H7ZM6 2H18C18.5523 2 19 2.44772 19 3V21C19 21.5523 18.5523 22 18 22H6C5.44772 22 5 21.5523 5 21V3C5 2.44772 5.44772 2 6 2ZM12 17C12.5523 17 13 17.4477 13 18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18C11 17.4477 11.4477 17 12 17Z'/%3E%3C/svg%3E");
  --ic-sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.0007 1.20825 18.3195 3.68108 20.7923 4.99992 18.3195 6.31876 17.0007 8.79159 15.6818 6.31876 13.209 4.99992 15.6818 3.68108 17.0007 1.20825ZM10.6673 9.33325 15.6673 11.9999 10.6673 14.6666 8.00065 19.6666 5.33398 14.6666.333984 11.9999 5.33398 9.33325 8.00065 4.33325 10.6673 9.33325ZM11.4173 11.9999 9.18905 10.8115 8.00065 8.58325 6.81224 10.8115 4.58398 11.9999 6.81224 13.1883 8.00065 15.4166 9.18905 13.1883 11.4173 11.9999ZM19.6673 16.3333 18.0007 13.2083 16.334 16.3333 13.209 17.9999 16.334 19.6666 18.0007 22.7916 19.6673 19.6666 22.7923 17.9999 19.6673 16.3333Z'/%3E%3C/svg%3E");
  --ic-edit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.41421 15.89L16.5563 5.74785L15.1421 4.33363L5 14.4758V15.89H6.41421ZM7.24264 17.89H3V13.6473L14.435 2.21231C14.8256 1.82179 15.4587 1.82179 15.8492 2.21231L18.6777 5.04074C19.0682 5.43126 19.0682 6.06443 18.6777 6.45495L7.24264 17.89ZM3 19.89H21V21.89H3V19.89Z'/%3E%3C/svg%3E");
  --ic-flip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.0503 12.0498L21 16.9996L16.0503 21.9493L14.636 20.5351L17.172 17.9988L4 17.9996V15.9996L17.172 15.9988L14.636 13.464L16.0503 12.0498ZM7.94975 2.0498L9.36396 3.46402L6.828 5.9988L20 5.99955V7.99955L6.828 7.9988L9.36396 10.5351L7.94975 11.9493L3 6.99955L7.94975 2.0498Z'/%3E%3C/svg%3E");
  --ic-focus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 1L13.001 4.06201C16.6192 4.51365 19.4869 7.38163 19.9381 11L23 11V13L19.938 13.001C19.4864 16.6189 16.6189 19.4864 13.001 19.938L13 23H11L11 19.9381C7.38163 19.4869 4.51365 16.6192 4.06201 13.001L1 13V11L4.06189 11C4.51312 7.38129 7.38129 4.51312 11 4.06189L11 1H13ZM12 6C8.68629 6 6 8.68629 6 12C6 15.3137 8.68629 18 12 18C15.3137 18 18 15.3137 18 12C18 8.68629 15.3137 6 12 6ZM12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14C10.8954 14 10 13.1046 10 12C10 10.8954 10.8954 10 12 10Z'/%3E%3C/svg%3E");
  --ic-drop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.09723L7.05025 8.04697C4.31658 10.7806 4.31658 15.2128 7.05025 17.9465C9.78392 20.6801 14.2161 20.6801 16.9497 17.9465C19.6834 15.2128 19.6834 10.7806 16.9497 8.04697L12 3.09723ZM12 0.268799L18.364 6.63276C21.8787 10.1475 21.8787 15.846 18.364 19.3607C14.8492 22.8754 9.15076 22.8754 5.63604 19.3607C2.12132 15.846 2.12132 10.1475 5.63604 6.63276L12 0.268799Z'/%3E%3C/svg%3E");
  --ic-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z'/%3E%3C/svg%3E");
  --ic-refresh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z'/%3E%3C/svg%3E");
}

.ic,
.has-ic::before {
  content: "";
  display: inline-block;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  background-color: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat;
  mask: var(--ic) center / contain no-repeat;
}

.has-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ic-card { --ic: var(--ic-card); }
.ic-sound-on { --ic: var(--ic-sound-on); }
.ic-sound-off { --ic: var(--ic-sound-off); }
.ic-home { --ic: var(--ic-home); }
.ic-share { --ic: var(--ic-share); }
.ic-chevron { --ic: var(--ic-chevron); }
.ic-close { --ic: var(--ic-close); }
.ic-download { --ic: var(--ic-download); }
.ic-link { --ic: var(--ic-link); }
.ic-phone { --ic: var(--ic-phone); }
.ic-sparkle { --ic: var(--ic-sparkle); }
.ic-edit { --ic: var(--ic-edit); }
.ic-flip { --ic: var(--ic-flip); }
.ic-focus { --ic: var(--ic-focus); }
.ic-drop { --ic: var(--ic-drop); }
.ic-check { --ic: var(--ic-check); }
.ic-refresh { --ic: var(--ic-refresh); }

.street-poster,
.street-poster img {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

#window-canvas,
#umbrella-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  touch-action: none;
}

#window-canvas {
  z-index: 1;
  cursor: none;
  opacity: 0;
}

body.street-ready #window-canvas {
  opacity: 1;
}

body:not(.phone-mode).umb-closed #window-canvas {
  cursor: pointer;
}

/* 手机模式下：按住屏幕拖动才移伞，松手稳稳停留 */
body.phone-mode #window-canvas {
  cursor: grab;
}
body.phone-mode.holding-umb #window-canvas {
  cursor: grabbing;
}

/* 中景雨幕层：在 3D 林荫道之上、雨伞与 UI 之下，用圆形遮罩在伞下挖出“清晰微晴避雨区” */
.rain-veil {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  --ux: 50vw;
  --uy: 45vh;
  --ur: 120px;
  -webkit-backdrop-filter: blur(0.65px) saturate(0.86) brightness(0.95);
  backdrop-filter: blur(0.65px) saturate(0.86) brightness(0.95);
  background: rgba(11, 23, 40, 0.11);
  -webkit-mask-image: radial-gradient(circle at var(--ux) var(--uy), transparent calc(var(--ur) - 34px), #000 var(--ur));
  mask-image: radial-gradient(circle at var(--ux) var(--uy), transparent calc(var(--ur) - 34px), #000 var(--ur));
  transition: opacity 0.55s ease;
}

.rain-streaks {
  position: absolute;
  left: 0;
  right: 0;
  top: -1024px;
  bottom: 0;
  opacity: 0.34;
  background-size: 512px 1024px;
  animation: rainVeilRun 7.2s linear infinite;
  will-change: transform;
}

.rain-streaks.b {
  opacity: 0.22;
  background-position: 211px 320px;
  background-size: 680px 1024px;
  animation-duration: 11.4s;
}

@keyframes rainVeilRun {
  to {
    transform: translateY(1024px);
  }
}

body.street-paused .rain-streaks {
  animation-play-state: paused;
}

/* 手机端与掉帧时不给会动的全屏画面叠毛玻璃 */
body.lite-rain .rain-veil,
body.phone-mode .rain-veil {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(11, 23, 40, 0.08);
}

/* 彩虹亮起的几秒里雨幕变淡 */
body.rainbow-on .rain-veil {
  opacity: 0.4;
}

@media (prefers-reduced-motion: reduce) {
  .rain-streaks {
    animation: none !important;
  }
}

#umbrella-canvas {
  z-index: 3;
  pointer-events: none;
}

/* 顶部轻盈导航栏 */
.top-bar {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 12px));
  left: max(14px, env(safe-area-inset-left, 14px));
  right: max(14px, env(safe-area-inset-right, 14px));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

/* 处于模拟手机壳内部时，自动避开顶部灵动岛区域 */
html.is-sim-inner .top-bar {
  top: 34px;
  left: 10px;
  right: 10px;
  gap: 6px;
}

.brand-lockup,
.corner-hud {
  pointer-events: auto;
}

/* 片名式标题：不加底板，靠文字投影在画面上保持清晰 */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-text {
  min-width: 0;
  line-height: 1.15;
  text-shadow: 0 1px 8px rgba(3, 8, 18, 0.78), 0 0 2px rgba(3, 8, 18, 0.55);
}

.brand-kicker {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.brand-title {
  margin-top: 3px;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  white-space: nowrap;
}

.perf-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.18);
  border: 1px solid rgba(110, 231, 183, 0.45);
  color: #A7F3D0;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.corner-hud {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.hud-pill {
  height: 40px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(9, 15, 27, 0.60);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #F8FAFC;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  touch-action: manipulation;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.16s ease;
}

.hud-pill .ic {
  width: 18px;
  height: 18px;
}

.hud-pill:hover {
  background: rgba(24, 36, 62, 0.80);
  border-color: rgba(255, 255, 255, 0.40);
}

/* 醒目的「手机模式测试」暖金按钮（仅本地调试显示） */
.hud-pill-phone {
  background: linear-gradient(135deg, rgba(245, 185, 82, 0.92), rgba(234, 88, 12, 0.88));
  border-color: rgba(254, 240, 138, 0.85);
  color: #0F172A;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}
.hud-pill-phone:hover {
  background: linear-gradient(135deg, #FDE047, #F97316);
  border-color: #FFFFFF;
  color: #090D16;
}

.hud-pill-gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(56, 189, 248, 0.22));
  border-color: rgba(253, 224, 71, 0.52);
  color: #FEF9C3;
}

/* 「追剧卡」入口：深色底 + 暖金描边 */
.hud-pill-card {
  border-color: rgba(253, 224, 71, 0.62);
  color: #FEF3C7;
}
.hud-pill-card:hover {
  background: rgba(44, 34, 10, 0.74);
  border-color: #FEF08A;
  color: #FFFFFF;
}

.hud-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(9, 15, 27, 0.60);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(248, 250, 252, 0.92);
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.16s ease;
}

.hud-icon .ic {
  width: 19px;
  height: 19px;
}

/* 声音开关：开着显示喇叭，静音显示带叉的喇叭 */
.hud-icon .ic-sound-off,
.hud-icon:not(.on) .ic-sound-on {
  display: none;
}
.hud-icon:not(.on) .ic-sound-off {
  display: inline-block;
}

/* 手机端的浮层一律不用毛玻璃，改用更实的深色底 */
body.phone-mode .hud-pill,
body.phone-mode .hud-icon,
body.phone-mode .mode-tip,
body.phone-mode .cm-3d-tip {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.phone-mode .hud-pill,
body.phone-mode .hud-icon {
  background-color: rgba(9, 15, 27, 0.72);
}
body.phone-mode .hud-pill-phone {
  background: linear-gradient(135deg, rgba(245, 185, 82, 0.92), rgba(234, 88, 12, 0.88));
}
body.phone-mode .mode-tip {
  background: rgba(9, 15, 27, 0.70);
}

.hud-icon:hover {
  background: rgba(26, 38, 64, 0.76);
  border-color: rgba(255, 255, 255, 0.40);
}

.hud-icon:active,
.hud-pill:active {
  transform: scale(0.94);
}

.hud-icon.on {
  border-color: rgba(253, 224, 71, 0.72);
  background: rgba(245, 185, 82, 0.25);
  color: #FEF9C3;
  box-shadow: 0 0 16px rgba(245, 185, 82, 0.3);
}

.hud-icon.needs-unlock {
  animation: sunSoundUnlockPulse 1.9s ease-in-out infinite;
}

@keyframes sunSoundUnlockPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(245, 185, 82, 0.28);
  }
  50% {
    box-shadow: 0 0 22px rgba(253, 224, 71, 0.62), 0 0 0 3px rgba(253, 224, 71, 0.16);
  }
}

/* 顶部温和引导条 */
.mode-tip {
  position: fixed;
  top: calc(max(12px, env(safe-area-inset-top, 12px)) + 54px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  pointer-events: none;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(9, 15, 28, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(248, 250, 252, 0.92);
  font-size: 12.5px;
  white-space: nowrap;
  max-width: 94vw;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.mode-tip.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(-8px);
}

html.is-sim-inner .mode-tip {
  top: 108px;
}

/* 接住的这一滴：只放正文，一个分享键和一个收起键。
   三种雨滴用一个主题色区分：各地心愿=金，名场面台词=蓝，角色来信=粉。 */
.catch-card {
  --kind: 253, 224, 71;
  --kind-ink: #FEF08A;
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 16px));
  bottom: 48px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 48px);
  z-index: 18;
  width: min(430px, calc(100vw - 32px));
  border-radius: 18px;
  background: rgba(9, 15, 27, 0.70);
  border: 1px solid rgba(var(--kind), 0.36);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
  padding: 10px 10px 14px 14px;
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.catch-card.quote-theme {
  --kind: 125, 211, 252;
  --kind-ink: #BAE6FD;
}

.catch-card.letter-theme {
  --kind: 249, 168, 212;
  --kind-ink: #FBCFE8;
}

.catch-card.flash {
  border-color: rgba(var(--kind), 0.86);
  box-shadow: 0 14px 40px rgba(var(--kind), 0.24);
}

.catch-card.folded {
  padding-bottom: 10px;
}

/* 手机端：不用毛玻璃；接住时只闪边框颜色，不重绘大面积阴影 */
body.phone-mode .catch-card {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(9, 15, 27, 0.96);
}
body.phone-mode .catch-card.flash {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
}

.catch-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
}

.catch-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 7px;
}

.meta-dot {
  flex: none;
  align-self: center;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(var(--kind));
}

.meta-loc,
.meta-weather {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-loc {
  color: var(--kind-ink);
  font-size: 13.5px;
  font-weight: 600;
}

.meta-weather {
  color: rgba(226, 232, 240, 0.80);
  font-size: 12.5px;
}

.catch-card-tools {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-tool {
  position: relative;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(241, 245, 249, 0.92);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  touch-action: manipulation;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.3s ease, transform 0.16s ease;
}

/* 看上去是 36px，实际可点范围向外扩到 44px 以上 */
.card-tool::after {
  content: "";
  position: absolute;
  top: -6px;
  right: -6px;
  bottom: -6px;
  left: -6px;
}

.card-tool:hover {
  background: rgba(255, 255, 255, 0.14);
}

.card-tool:active {
  transform: scale(0.96);
}

.card-tool .ic {
  width: 16px;
  height: 16px;
}

.card-share-btn {
  padding: 0 12px 0 10px;
  border-color: rgba(253, 224, 71, 0.55);
  background: rgba(253, 224, 71, 0.10);
  color: #FEF3C7;
}

.card-share-btn:hover {
  background: rgba(253, 224, 71, 0.20);
}

/* 彩虹亮起时，分享键跟着亮一下 */
body.rainbow-on .card-share-btn {
  background: rgba(253, 224, 71, 0.22);
  box-shadow: 0 0 0 3px rgba(253, 224, 71, 0.18), 0 0 16px rgba(253, 224, 71, 0.40);
}

.card-fold-btn {
  width: 36px;
  padding: 0;
}

.card-fold-btn .ic {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.catch-card.folded .card-fold-btn .ic {
  transform: rotate(180deg);
}

.catch-card-body {
  margin: 8px 4px 0 0;
}
.catch-card.folded .catch-card-body {
  display: none;
}

.card-main-text {
  font-family: "Songti SC", "STSong", "Kaiti SC", "Noto Serif CJK SC", "PingFang SC", serif;
  font-size: 16px;
  line-height: 1.66;
  color: #F8FAFC;
  user-select: text;
  -webkit-user-select: text;
  max-height: 7.2em;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.card-sub-quote {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
  color: rgba(186, 230, 253, 0.94);
  line-height: 1.5;
}

/* 最底下一行声明：卡片上提后垫在下面，完整说明点“版权说明”展开 */
.page-colophon {
  position: fixed;
  left: max(18px, env(safe-area-inset-left, 18px));
  bottom: 14px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  z-index: 17;
  max-width: calc(100vw - 36px);
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.colophon-link {
  position: relative;
  border: 0;
  background: none;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
  color: #FDE68A;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-shadow: inherit;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.colophon-link::after {
  content: "";
  position: absolute;
  top: -14px;
  right: -12px;
  bottom: -14px;
  left: -12px;
}

.legal-panel {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 16px));
  bottom: 44px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 44px);
  z-index: 19;
  width: min(430px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(9, 15, 27, 0.97);
  border: 1px solid rgba(253, 224, 71, 0.36);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55);
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(241, 245, 249, 0.92);
  user-select: text;
  -webkit-user-select: text;
}

.legal-panel p + p {
  margin-top: 8px;
}

.legal-panel a {
  color: #FDE68A;
  font-weight: 600;
  text-underline-offset: 2px;
}

.legal-close {
  margin-top: 12px;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(253, 224, 71, 0.55);
  background: rgba(253, 224, 71, 0.12);
  color: #FEF3C7;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}

/* 接满七滴：彩虹亮起的几秒里，画面中间浮出一句话（不拦截撑伞） */
.rainbow-toast {
  position: fixed;
  left: 0;
  right: 0;
  top: 52%;
  z-index: 16;
  padding: 0 20px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.6);
}

.rainbow-toast strong {
  display: block;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #FFFFFF;
}

.rainbow-toast span {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: #FDE68A;
}

body.rainbow-on .rainbow-toast {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .rainbow-toast {
    transition: none;
  }
}

/* 分享这一滴 */
.share-sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  padding: max(14px, env(safe-area-inset-top, 14px)) 16px max(14px, env(safe-area-inset-bottom, 14px));
  background: rgba(4, 8, 15, 0.97);
  overflow-y: auto;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.share-panel {
  width: min(420px, 100%);
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.share-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.share-title {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #F8FAFC;
}

.share-stage {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

#share-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 290px);
  max-height: calc(100dvh - 290px);
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.14);
  -webkit-touch-callout: default;
  user-select: auto;
  -webkit-user-select: auto;
}

.share-status {
  padding: 30px 12px;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  color: rgba(226, 232, 240, 0.88);
}

.share-hint {
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  color: rgba(226, 232, 240, 0.86);
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-btn {
  flex: 1 1 calc(50% - 5px);
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: #F1F5F9;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.16s ease, transform 0.16s ease;
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

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

.share-btn.is-primary {
  flex-basis: 100%;
  height: 48px;
  border-color: transparent;
  background: linear-gradient(135deg, #FDE68A, #FBBF24);
  color: #1B1405;
  font-size: 15px;
  font-weight: 700;
}

.share-stage .share-btn {
  flex: none;
  min-width: 140px;
}

a.share-btn:not([href]) {
  opacity: 0.5;
  pointer-events: none;
}

.share-toast {
  min-height: 19px;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  color: #FDE68A;
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
}

/* ==========================================================================
 * ✨ 专属追剧纪念卡生成工坊（剧照挑选 + 寄语输入 + 1080×1560 电影明信片预览）
 * ========================================================================== */
.hud-pill[hidden],
.cm-backdrop[hidden],
.card-maker-modal[hidden],
.cm-flash-stage[hidden],
.cm-save-modal[hidden],
.cm-css-3d-fallback[hidden],
#cm-3d-canvas[hidden],
#cm-msg-warning[hidden],
.photo-sheet[hidden],
.phone-sim-modal[hidden] {
  display: none !important;
}

.cm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 32;
  background: rgba(5, 10, 20, 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.card-maker-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 36;
  width: min(940px, calc(100vw - 28px));
  max-height: min(88vh, 770px);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(14, 23, 41, 0.96), rgba(9, 15, 28, 0.98));
  border: 1px solid rgba(253, 224, 71, 0.36);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.72),
    0 0 40px rgba(251, 191, 36, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #F8FAFC;
  user-select: text;
  -webkit-user-select: text;
  touch-action: pan-y;
}

.cm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 22px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.025);
  flex-shrink: 0;
}

.cm-title {
  font-size: 17.5px;
  font-weight: 700;
  color: #FEF9C3;
  letter-spacing: 0.01em;
}

.cm-sub {
  margin-top: 3px;
  font-size: 12.5px;
  color: rgba(203, 213, 225, 0.82);
}

.cm-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  overflow: hidden;
}

.cm-controls {
  padding: 14px 20px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(250, 204, 21, 0.35) rgba(15, 23, 42, 0.4);
}
.cm-controls::-webkit-scrollbar {
  width: 5px;
}
.cm-controls::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
}
.cm-controls::-webkit-scrollbar-thumb {
  background: rgba(250, 204, 21, 0.35);
  border-radius: 999px;
}

.cm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.cm-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cm-label-wrap {
  flex-wrap: wrap;
  gap: 6px;
}

.cm-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #FDE68A;
}

.cm-cat-tabs {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cm-cat-btn {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(226, 232, 240, 0.88);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cm-cat-btn:hover {
  border-color: rgba(253, 224, 71, 0.55);
}
.cm-cat-btn.active {
  background: rgba(250, 204, 21, 0.24);
  border-color: #FDE047;
  color: #FEF9C3;
}

.cm-char-count {
  font-size: 11.5px;
  color: rgba(148, 163, 184, 0.9);
}

/* 34 张高清剧照与晴雨合影缩略图矩阵（含 21 张女主郑雨 + 13 张晴雨日常合影） */
.cm-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 86px;
  align-content: start;
  gap: 8px;
  max-height: 228px;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 2px 6px 4px 2px;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(250, 204, 21, 0.45) rgba(15, 23, 42, 0.5);
}

.cm-photo-grid::-webkit-scrollbar {
  width: 6px;
}
.cm-photo-grid::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 999px;
}
.cm-photo-grid::-webkit-scrollbar-thumb {
  background: rgba(250, 204, 21, 0.45);
  border-radius: 999px;
}
.cm-photo-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(250, 204, 21, 0.72);
}

.cm-photo-item {
  position: relative;
  display: block;
  width: 100%;
  height: 86px;
  border-radius: 11px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: #0F172A;
  cursor: pointer;
  padding: 0;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.cm-photo-item:hover {
  transform: translateY(-1px);
  border-color: rgba(253, 224, 71, 0.55);
}

.cm-photo-item.active {
  border-color: #FDE047;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.32), 0 8px 20px rgba(0, 0, 0, 0.45);
}

.cm-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cm-photo-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 6px 4px;
  background: linear-gradient(to top, rgba(6, 10, 20, 0.88), rgba(6, 10, 20, 0));
  color: #F8FAFC;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cm-photo-check {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FACC15;
  color: #0F172A;
  font-size: 11px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
.cm-photo-item.active .cm-photo-check {
  display: inline-flex;
}
.cm-photo-check .ic {
  width: 13px;
  height: 13px;
}

/* 三款纪念卡质感主题 */
.cm-theme-row {
  display: flex;
  gap: 8px;
}

.cm-theme-btn {
  flex: 1;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #E2E8F0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.16s ease;
}

/* 用卡纸本身的颜色做小色块，代替原来的表情符号 */
.cm-swatch {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FBF4E4;
  border: 1.5px solid #D4A03E;
}
.cm-theme-btn[data-ctheme="emerald"] .cm-swatch {
  background: #0E221C;
  border-color: #F3C868;
}
.cm-theme-btn[data-ctheme="skyrose"] .cm-swatch {
  background: linear-gradient(135deg, #DCEBFF, #FBD9E6);
  border-color: #6FA3DB;
}
.cm-theme-btn:hover {
  border-color: rgba(253, 224, 71, 0.48);
}
.cm-theme-btn.active {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.24), rgba(56, 189, 248, 0.18));
  border-color: #FDE047;
  color: #FEF9C3;
}

/* 寄语输入框与快捷灵感胶囊 */
.cm-textarea,
.cm-input,
.cm-select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 13, 24, 0.76);
  color: #F8FAFC;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
  touch-action: manipulation;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cm-textarea {
  padding: 10px 12px;
  line-height: 1.58;
  resize: none;
}

.cm-input,
.cm-select {
  height: 36px;
  padding: 0 11px;
}

.cm-textarea:focus,
.cm-input:focus,
.cm-select:focus {
  border-color: rgba(253, 224, 71, 0.75);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.16);
}

.cm-textarea.has-warning {
  border-color: rgba(251, 146, 60, 0.85);
}

.cm-msg-warning {
  font-size: 11.5px;
  line-height: 1.45;
  color: #FED7AA;
  background: rgba(234, 88, 12, 0.18);
  border: 1px solid rgba(251, 146, 60, 0.45);
  border-radius: 9px;
  padding: 6px 10px;
}

.cm-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cm-preset-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.30);
  background: rgba(56, 189, 248, 0.10);
  color: #BAE6FD;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cm-preset-chip:hover {
  background: rgba(56, 189, 248, 0.24);
  border-color: rgba(125, 211, 252, 0.65);
  color: #FFFFFF;
}

.cm-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cm-btn-generate {
  margin-top: 2px;
  height: 44px;
  border-radius: 13px;
  border: 1px solid rgba(254, 240, 138, 0.85);
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 48%, #EC4899 100%);
  color: #0F172A;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.32);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  flex-shrink: 0;
}
.cm-btn-generate:hover {
  filter: brightness(1.07);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.45);
}
.cm-btn-generate:active {
  transform: scale(0.98);
}

/* 右侧（编辑态）：实时排版草稿预览（先看排版，生成闪卡后再进入旋转赏卡与保存） */
.cm-preview-pane {
  padding: 14px 20px 16px;
  background: radial-gradient(circle at 50% 35%, rgba(30, 46, 78, 0.52), rgba(7, 12, 22, 0.85));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 0;
}

.cm-preview-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(253, 224, 71, 0.14);
  border: 1px solid rgba(253, 224, 71, 0.38);
  color: #FEF08A;
  font-size: 11.5px;
  font-weight: 600;
  flex-shrink: 0;
}
.cm-preview-badge.warn {
  background: rgba(234, 88, 12, 0.20);
  border-color: rgba(251, 146, 60, 0.62);
  color: #FED7AA;
}

.cm-card-stage {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.cm-card-stage img {
  max-width: 100%;
  max-height: min(56vh, 490px);
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.68),
    0 0 0 1px rgba(255, 255, 255, 0.16);
  -webkit-touch-callout: default;
  user-select: auto;
  -webkit-user-select: auto;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.cm-card-stage.card-pop img {
  transform: scale(1.028);
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.76),
    0 0 28px rgba(251, 191, 36, 0.42);
}

.cm-draft-hint {
  font-size: 11.5px;
  color: rgba(186, 230, 253, 0.86);
  text-align: center;
  line-height: 1.48;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.56);
  border: 1px solid rgba(125, 211, 252, 0.22);
  flex-shrink: 0;
}
.cm-draft-hint strong {
  color: #FEF08A;
}

/* ==========================================================================
 * 第二步：3D 立体纪念闪卡旋转鉴赏舞台（桌面与手机通用）
 * ========================================================================== */
.card-maker-modal.is-flashcard-stage {
  height: min(86vh, 750px);
}

.cm-body.is-flashcard-stage {
  display: flex;
  flex-direction: column;
}

.cm-body.is-flashcard-stage .cm-controls,
.cm-body.is-flashcard-stage .cm-preview-pane {
  display: none;
}

.cm-flash-stage {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 16px;
  gap: 10px;
  background:
    radial-gradient(circle at 22% 22%, rgba(251, 191, 36, 0.14), transparent 52%),
    radial-gradient(circle at 78% 78%, rgba(56, 189, 248, 0.14), transparent 52%),
    radial-gradient(circle at 50% 45%, rgba(22, 35, 62, 0.78), rgba(6, 10, 20, 0.94));
}

.cm-flash-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cm-flash-badge {
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(253, 224, 71, 0.18), rgba(56, 189, 248, 0.14));
  border: 1px solid rgba(253, 224, 71, 0.44);
  color: #FEF08A;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.cm-3d-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px;
}

#cm-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: block;
  touch-action: none;
  cursor: grab;
}
#cm-3d-canvas:active {
  cursor: grabbing;
}

.cm-3d-tip {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(10, 16, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(254, 240, 138, 0.94);
  font-size: 11.5px;
  white-space: nowrap;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

/* CSS 3D 优雅降级舞台（仅 WebGL 不可用时启用） */
.cm-css-3d-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  container-type: size;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px var(--cm-tip-pad, clamp(18px, 8cqh, 34px));
  perspective: 1200px;
  touch-action: none;
  cursor: grab;
}
.cm-css-3d-fallback:active {
  cursor: grabbing;
}

.cm-css-3d-card {
  position: relative;
  width: min(
    320px,
    calc(100cqw * 0.78),
    max(24px, calc(100cqw - 28px)),
    max(24px, calc((100cqh - var(--cm-tip-reserve, clamp(26px, 12cqh, 42px))) * 1080 / 1560))
  );
  height: auto;
  aspect-ratio: 1080 / 1560;
  max-width: none;
  max-height: none;
  transform-style: preserve-3d;
  transition: transform 0.08s ease-out;
}
.cm-css-3d-card.is-smooth {
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.cm-css-face {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.65),
    0 0 0 2px rgba(253, 224, 71, 0.42);
}

.cm-css-face img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.cm-css-back {
  transform: rotateY(180deg);
}

.cm-css-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(
    260px circle at var(--glare-x, 50%) var(--glare-y, 40%),
    rgba(255, 249, 220, 0.34),
    rgba(251, 191, 36, 0.16) 28%,
    rgba(56, 189, 248, 0.16) 52%,
    transparent 76%
  );
}

.cm-flash-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  flex-shrink: 0;
}

.cm-flash-btn {
  height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.08);
  color: #F1F5F9;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.cm-flash-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(253, 224, 71, 0.52);
}
.cm-flash-btn:active {
  transform: scale(0.97);
}
.cm-flash-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
}

.cm-btn-flip {
  border-color: rgba(125, 211, 252, 0.45);
  background: rgba(14, 165, 233, 0.18);
  color: #E0F2FE;
}
.cm-btn-flip:hover {
  background: rgba(14, 165, 233, 0.32);
  border-color: #BAE6FD;
}

.cm-btn-save-primary {
  padding: 0 20px;
  border-color: rgba(254, 240, 138, 0.88);
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 48%, #EC4899 100%);
  color: #0F172A;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.36);
}
.cm-btn-save-primary:hover {
  filter: brightness(1.06);
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 48%, #EC4899 100%);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.48);
}

/* ==========================================================================
 * 第三步：精装立体纪念卡 0° 端正无畸变保存弹窗
 * ========================================================================== */
.cm-save-modal {
  position: fixed;
  inset: 0;
  z-index: 42;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(6, 10, 20, 0.80);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cm-save-dialog {
  width: min(680px, 100%);
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(19, 27, 45, 0.97), rgba(10, 15, 28, 0.99));
  border: 1px solid rgba(253, 224, 71, 0.34);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #F8F5EC;
  overflow-y: auto;
  overflow-x: hidden;
  user-select: text;
  -webkit-user-select: text;
}

.cm-save-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cm-save-title {
  font-size: 16px;
  font-weight: 700;
  color: #FEF9C3;
}

.cm-save-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cm-save-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(248, 245, 236, 0.74);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 8px;
  border-radius: 10px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.cm-save-tab:hover {
  color: #FFF7E2;
  background: rgba(255, 255, 255, 0.06);
}
.cm-save-tab.is-active {
  background: linear-gradient(135deg, rgba(255, 214, 130, 0.24), rgba(140, 210, 255, 0.16));
  border-color: rgba(255, 220, 145, 0.58);
  color: #FFF8E6;
}
.cm-save-tab:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.cm-save-preview-box {
  position: relative;
  min-height: 220px;
  padding: 12px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 224, 158, 0.10), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(122, 198, 255, 0.10), transparent 55%),
    rgba(6, 9, 17, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
}

#cm-save-preview {
  display: block;
  max-width: 100%;
  max-height: 46dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  -webkit-touch-callout: default;
  user-select: auto;
  -webkit-user-select: auto;
}
#cm-save-preview[hidden],
#cm-save-loading[hidden] {
  display: none;
}

.cm-save-loading {
  font-size: 13px;
  color: rgba(255, 240, 204, 0.88);
  padding: 28px 12px;
  text-align: center;
}

.cm-save-note {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(242, 238, 226, 0.78);
  text-align: center;
}
.cm-save-note strong {
  color: #FEF08A;
}

.cm-save-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cm-save-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
  color: #F8F5EC;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.cm-save-action-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}
.cm-save-action-btn.is-primary {
  background: linear-gradient(135deg, #FFE2A4 0%, #FFD07A 48%, #9BE2FF 100%);
  border-color: transparent;
  color: #171C29;
  box-shadow: 0 10px 26px rgba(255, 208, 122, 0.28);
}
.cm-save-action-btn.is-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(255, 208, 122, 0.36);
}
a.cm-save-action-btn:not([href]) {
  opacity: 0.5;
  pointer-events: none;
}

/* 手机竖屏与手机模拟壳内的追剧卡工坊：第一步填寄语 -> 生成 3D 闪卡旋转观赏 -> 精装保存 */
@media (max-width: 820px) {
  .card-maker-modal,
  .card-maker-modal.is-flashcard-stage {
    inset: 0;
    transform: none;
    width: 100%;
    height: 100%;
    max-height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  html.is-sim-inner .card-maker-modal,
  html.is-sim-inner .card-maker-modal.is-flashcard-stage {
    padding-top: 38px;
    padding-bottom: 18px;
  }
  .cm-header {
    padding: 12px 14px 10px;
  }
  .card-maker-modal.is-flashcard-stage .cm-header {
    padding: 9px 14px 8px;
  }
  .cm-title {
    font-size: 15px;
  }
  .cm-sub {
    font-size: 11.5px;
  }
  .card-maker-modal.is-flashcard-stage .cm-sub {
    font-size: 11px;
    line-height: 1.35;
  }
  .cm-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
  .cm-body.is-flashcard-stage {
    overflow: hidden;
    touch-action: none;
  }
  .cm-controls {
    border-right: none;
    padding: 12px 14px 12px;
    gap: 11px;
    flex: none;
    overflow: visible;
  }
  .cm-body:not(.is-flashcard-stage) .cm-preview-pane {
    display: flex;
    flex: none;
    padding: 10px 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 8px;
  }
  .cm-body:not(.is-flashcard-stage) .cm-card-stage {
    flex: none;
  }
  .cm-body:not(.is-flashcard-stage) .cm-card-stage img {
    max-width: min(250px, 68vw);
    max-height: none;
  }
  .cm-flash-stage {
    padding: 6px 12px 12px;
    gap: 8px;
  }
  .cm-flash-topbar {
    display: none;
  }
  .cm-3d-tip {
    font-size: 10.5px;
    padding: 4px 10px;
    bottom: 6px;
  }
  .cm-flash-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .cm-flash-btn {
    height: 36px;
    padding: 0 5px;
    font-size: 11.5px;
    gap: 3px;
  }
  .cm-btn-save-primary {
    grid-column: 1 / -1;
    height: 42px;
    font-size: 13.5px;
    padding: 0 14px;
    gap: 5px;
  }
  .cm-save-modal {
    padding: 10px;
  }
  html.is-sim-inner .cm-save-modal {
    padding-top: 44px;
    padding-bottom: 22px;
  }
  .cm-save-dialog {
    padding: 14px 12px;
    border-radius: 18px;
    gap: 9px;
    max-height: 90dvh;
  }
  .cm-save-tab {
    font-size: 11.5px;
    padding: 7px 4px;
  }
  .cm-save-preview-box {
    min-height: 165px;
    padding: 9px;
  }
  #cm-save-preview {
    max-height: 38dvh;
  }
  .cm-save-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cm-save-action-btn {
    width: 100%;
  }
}

@media (max-height: 440px) {
  .card-maker-modal.is-flashcard-stage .cm-header {
    padding: 6px 14px;
  }
  .card-maker-modal.is-flashcard-stage .cm-sub,
  .cm-flash-topbar,
  .cm-3d-tip {
    display: none;
  }
  .cm-flash-stage {
    padding: 4px 12px 8px;
    gap: 6px;
  }
  .cm-flash-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
  }
  .cm-flash-btn,
  .cm-btn-save-primary {
    flex: 1 1 0;
    width: auto;
    grid-column: auto;
    height: 32px;
    padding: 0 8px;
    font-size: 11.5px;
  }
  .cm-css-3d-fallback {
    --cm-tip-pad: 6px;
    --cm-tip-reserve: 12px;
  }
}

/* 手机端长按存图浮层 */
.photo-sheet {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(5, 9, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
}

.sheet-caption {
  font-size: 13.5px;
  color: #FEF08A;
}

.photo-sheet img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
  -webkit-touch-callout: default;
  user-select: auto;
  -webkit-user-select: auto;
}

.sheet-close {
  position: fixed;
  top: max(18px, env(safe-area-inset-top, 18px));
  right: max(18px, env(safe-area-inset-right, 18px));
}

/* ==========================================================================
 * 电脑端多机型「真机视口手机模式测试台」
 * ========================================================================== */
.phone-sim-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: radial-gradient(circle at 50% 25%, #162238 0%, #060911 80%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: #F8FAFC;
}

.phone-sim-toolbar {
  width: 100%;
  padding: 10px 20px;
  background: rgba(11, 16, 26, 0.90);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  z-index: 2;
}

.phone-sim-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.psim-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(30, 41, 59, 0.78);
  color: #E2E8F0;
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.psim-btn:hover {
  border-color: rgba(245, 185, 82, 0.65);
  color: #FFFFFF;
}

.psim-btn.active {
  background: rgba(245, 185, 82, 0.22);
  border-color: #F5B952;
  color: #FEF08A;
}

.psim-btn-exit {
  background: linear-gradient(135deg, #F5B952, #EA580C);
  border-color: transparent;
  color: #111827;
  font-weight: 700;
}

.psim-tip {
  font-size: 12.5px;
  color: #BAE6FD;
}
.psim-tip strong {
  color: #FEF08A;
}

.phone-sim-stage {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.phone-sim-shell {
  width: 418px;
  height: 872px;
  border-radius: 50px;
  padding: 14px;
  background: #0B0E14;
  border: 3px solid #334155;
  box-shadow:
    0 0 0 2px #0F172A,
    0 28px 70px rgba(0, 0, 0, 0.78),
    0 0 40px rgba(251, 191, 36, 0.14);
  position: relative;
  transform-origin: center center;
  transition: width 0.22s ease, height 0.22s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.phone-sim-island {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 104px;
  height: 24px;
  border-radius: 99px;
  background: #000000;
  z-index: 5;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-sim-screen {
  border-radius: 38px;
  overflow: hidden;
  background: #080E1A;
  position: relative;
  flex: 1;
}

.phone-sim-screen iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #080E1A;
}

.phone-sim-homebar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 124px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.38);
  pointer-events: none;
  z-index: 5;
}

/* 手机窄屏适配（真机 & 手机模式测试壳内均自动生效） */
@media (max-width: 680px) {
  .desktop-only,
  .hide-xs-inline,
  .perf-badge {
    display: none !important;
  }
  .top-bar {
    left: max(16px, env(safe-area-inset-left, 16px));
    right: max(12px, env(safe-area-inset-right, 12px));
    flex-wrap: wrap;
    gap: 8px;
  }
  html.is-sim-inner .top-bar {
    top: 48px;
    left: 14px;
    right: 10px;
  }
  .brand-kicker {
    font-size: 10px;
  }
  .brand-title {
    font-size: 16.5px;
  }
  .corner-hud {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .hud-pill {
    padding: 0 13px 0 11px;
  }
  .mode-tip {
    font-size: 12px;
    padding: 6px 14px;
  }
  html.is-sim-inner .mode-tip {
    top: 102px;
  }
  /* 卡片整体上提：正文最低处离可见底边约 1/10 屏高，下面只垫一行声明 */
  .catch-card,
  .legal-panel {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: 56px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(52px, 8vh, 72px));
  }
  .page-colophon {
    left: 0;
    right: 0;
    max-width: none;
    text-align: center;
    bottom: 16px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  }
  .rainbow-toast {
    top: 50%;
  }
  .rainbow-toast strong {
    font-size: 18px;
  }
}

/* 特别窄的手机：标题只留一行，按钮略收紧，保证一排放得下 */
@media (max-width: 359px) {
  .brand-kicker {
    display: none;
  }
  .brand-title {
    margin-top: 0;
    font-size: 15px;
    letter-spacing: 0.02em;
  }
  .corner-hud {
    gap: 6px;
  }
  .hud-pill {
    padding: 0 10px 0 9px;
    gap: 4px;
  }
}

/* 横屏矮屏：彩虹提示上移，不压到左下角的卡片 */
@media (max-height: 440px) {
  .rainbow-toast {
    top: 26%;
  }
}

body:not(.street-ready) .rain-veil { display: none; }
