/* ============================================
   LoveCraft 公共样式 - 彩虹主题 + 柜内模式
   ============================================ */

/* 彩虹色变量（Pride 6 色） */
:root {
  --pride-red:    #E40303;
  --pride-orange: #FF8C00;
  --pride-yellow: #FFED00;
  --pride-green:  #008026;
  --pride-blue:   #004DFF;
  --pride-purple: #750787;

  /* 柔和主题色 */
  --c-pink:   #ff6fae;
  --c-rose:   #ff8fab;
  --c-peach:  #ffb88c;
  --c-mint:   #7ee8c2;
  --c-sky:    #6ec5ff;
  --c-violet: #a98aff;

  /* 文本/背景 */
  --bg-soft:    #fff7fb;
  --bg-card:    #ffffff;
  --text-main:  #2a2030;
  --text-sub:   #7a6c84;
  --text-mute:  #b8aec1;
  --border:     #f3e3ee;

  --shadow-sm: 0 4px 14px rgba(255, 111, 174, .15);
  --shadow-md: 0 10px 30px rgba(169, 138, 255, .2);
  --shadow-lg: 0 20px 50px rgba(116, 7, 135, .25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --rainbow-bar: linear-gradient(90deg,
    var(--pride-red), var(--pride-orange), var(--pride-yellow),
    var(--pride-green), var(--pride-blue), var(--pride-purple));
  --rainbow-soft: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 30%, #ffe5a8 50%, #a1ffce 70%, #a18cd1 100%);
}

/* 柜内模式：暗色 + 去除彩虹标识 */
html[data-closet="1"] {
  --bg-soft:   #14121a;
  --bg-card:   #1d1a25;
  --text-main: #e7e3ee;
  --text-sub:  #b1a8be;
  --text-mute: #6f6679;
  --border:    #2a2632;
  --rainbow-bar: linear-gradient(90deg, #555, #777, #555);
  --rainbow-soft: linear-gradient(135deg, #1d1a25 0%, #2a2435 100%);
  --shadow-sm: 0 4px 14px rgba(0,0,0,.4);
  --shadow-md: 0 10px 30px rgba(0,0,0,.55);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  background: var(--bg-soft);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* 顶部彩虹条 */
.rainbow-top {
  height: 4px;
  background: var(--rainbow-bar);
  position: sticky; top: 0; z-index: 1000;
}

/* 头部 */
.lc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 4px; z-index: 999;
  backdrop-filter: blur(10px);
}
.lc-logo {
  font-size: 22px; font-weight: 800;
  background: var(--rainbow-bar);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  letter-spacing: 1px;
}
.lc-nav { display: flex; gap: 8px; align-items: center; }
.lc-nav a {
  padding: 8px 14px; border-radius: var(--radius-pill);
  color: var(--text-sub); font-size: 14px;
  transition: all .25s;
}
.lc-nav a:hover, .lc-nav a.active {
  background: var(--c-pink); color: #fff;
}

/* 容器 */
.lc-container { max-width: 1200px; margin: 0 auto; padding: 24px; }
.lc-container-sm { max-width: 720px; margin: 0 auto; padding: 24px; }

/* 移动端顶部/底部栏，桌面端默认隐藏 */
.top-bar, .tab-bar { display: none; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 10px 22px; border-radius: var(--radius-pill);
  border: none; font-size: 15px; font-weight: 600;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--rainbow-bar); color: #fff; background-size: 200% 100%; }
.btn-primary:hover { background-position: 100% 0; }
.btn-pink { background: var(--c-pink); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-main); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-card); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 17px; }
.btn-block { width: 100%; }

/* 输入 */
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-sub); font-weight: 600; }
.input, .textarea, .select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg-card); color: var(--text-main);
  font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--c-pink);
  box-shadow: 0 0 0 4px rgba(255,111,174,.15);
}
.textarea { resize: vertical; min-height: 120px; }

/* 卡片 */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

/* 标签 */
.tag {
  display: inline-block; padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600;
  background: rgba(255, 111, 174, .12); color: var(--c-pink);
}
.tag-rainbow { background: var(--rainbow-bar); color: #fff; }
.tag-gay { background: linear-gradient(135deg, #a98aff, #6ec5ff); color: #fff; }

/* 加载 */
.spinner {
  width: 22px; height: 22px;
  border: 3px solid rgba(255,111,174,.2);
  border-top-color: var(--c-pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast-stack {
  position: fixed; top: 80px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--bg-card); color: var(--text-main);
  padding: 12px 18px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  border-left: 4px solid var(--c-pink);
  animation: slideIn .3s ease;
  pointer-events: auto;
}
.toast.success { border-left-color: var(--pride-green); }
.toast.error   { border-left-color: var(--pride-red); }
.toast.warn    { border-left-color: var(--pride-orange); }
.toast.loading { border-left-color: #6e9fff; }
@keyframes slideIn {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* 节日激活条 */
.festival-bar {
  background: var(--rainbow-soft);
  padding: 10px 20px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 14px; color: #5a3a4f; font-weight: 600;
}
html[data-closet="1"] .festival-bar { color: #e7e3ee; }

/* 空态 */
.empty {
  text-align: center; padding: 60px 20px; color: var(--text-mute);
}
.empty-emoji { font-size: 48px; margin-bottom: 8px; }

/* 工具类 */
.row { display: flex; gap: 12px; align-items: center; }
.row-end { display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.col { display: flex; flex-direction: column; gap: 12px; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-sub { color: var(--text-sub); }
.text-mute { color: var(--text-mute); }
.text-pink { color: var(--c-pink); }
.text-rainbow {
  background: var(--rainbow-bar);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hidden { display: none !important; }
.flex-1 { flex: 1; }

/* 移动端 */
@media (max-width: 720px) {
  /* 顶部导航：让导航横向滚动避免挤压 */
  .lc-header {
    padding: 10px 14px;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .lc-logo { font-size: 18px; letter-spacing: 0.5px; flex-shrink: 0; }
  .lc-nav {
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 4px;
    padding: 2px 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
  .lc-nav::-webkit-scrollbar { display: none; }
  .lc-nav a {
    padding: 6px 10px;
    font-size: 13px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* 容器 */
  .lc-container, .lc-container-sm { padding: 14px; }

  /* 按钮触摸友好 */
  .btn { padding: 10px 18px; font-size: 14px; }
  .btn-sm { padding: 6px 12px; font-size: 12px; }
  .btn-lg { padding: 12px 24px; font-size: 15px; }

  /* 输入区域更紧凑 */
  .input, .textarea, .select { padding: 11px 12px; font-size: 14px; border-radius: var(--radius-md); }
  .textarea { min-height: 100px; }
  /* 防 iOS 自动放大 */
  input, textarea, select { font-size: 16px; }

  /* 卡片更紧凑 */
  .card { padding: 16px; border-radius: var(--radius-md); }

  /* Toast：底部铺满更易读 */
  .toast-stack {
    top: auto; bottom: 12px; left: 12px; right: 12px;
    align-items: stretch;
  }
  .toast { font-size: 13px; padding: 10px 14px; }

  /* 主题切换器：右下缩小，避让 BGM */
  .theme-switcher { right: 12px; bottom: 12px; }
  .theme-switcher .ts-toggle {
    width: 40px; height: 40px; font-size: 18px;
  }
  .theme-switcher .ts-panel { max-width: 200px; padding: 8px; gap: 6px; }
  .theme-switcher .ts-item { width: 42px; height: 42px; }

  /* BGM 浮窗缩小 */
  .bgm-dock { left: 12px; bottom: 12px; padding: 4px 10px 4px 6px; font-size: 12px; }
  .bgm-dock .bgm-ico { width: 26px; height: 26px; font-size: 12px; }

  /* 空态 */
  .empty { padding: 40px 16px; }
  .empty-emoji { font-size: 40px; }

  /* 工具类间距适当压缩 */
  .row { flex-wrap: wrap; gap: 8px; }

  /* 个人中心 / 通用 profile 区适配（命中 my.html 等页面 inline 类） */
  .profile { padding: 20px 16px; gap: 12px; flex-wrap: wrap; }
  .profile .avatar { width: 60px; height: 60px; font-size: 26px; }
  .profile h2 { font-size: 18px; }
  .btn-edit-profile {
    position: static !important;
    margin-top: 8px;
    width: 100%;
  }

  /* 列表项 actions 多按钮换行 */
  .conf-item { flex-direction: column; align-items: stretch; gap: 10px; }
  .conf-item .actions { flex-wrap: wrap; }

  /* 资料编辑模态：更贴近全屏 */
  .pf-dialog { padding: 18px; max-height: 92vh; }
  .pf-avatar-edit { gap: 10px; }
  .pf-avatar-preview { width: 64px; height: 64px; font-size: 28px; }

  /* 节日条更紧凑 */
  .festival-bar { font-size: 12px; padding: 8px 14px; gap: 6px; }

  /* 编辑器特效在小屏字号缩小 */
  .fx-rainbow-bg { font-size: 18px; padding: 24px 16px; }
  .fx-neon { font-size: 30px; letter-spacing: 2px; padding: 22px 12px; }
  .fx-handwrite { font-size: 22px; letter-spacing: 1px; }
  .fx-sticker { font-size: 72px; }
  .fx-days .d-num { font-size: 48px; }
  .fx-glitch { font-size: 24px; padding: 22px 14px; letter-spacing: 2px; }
  .fx-typewriter { font-size: 17px; padding: 14px 16px; }
  .fx-pulse-ring { min-height: 90px; }
  .fx-pulse-ring > span { font-size: 36px; }
  .fx-float-words > span { font-size: 22px; }
  .fx-wave-text > span { font-size: 26px; }
}

/* 超小屏（手机竖屏） */
@media (max-width: 480px) {
  .lc-header { padding: 8px 10px; }
  .lc-logo { font-size: 16px; }
  .lc-nav a { padding: 5px 8px; font-size: 12px; }
  .lc-container, .lc-container-sm { padding: 10px; }
  .card { padding: 14px; }
  .btn { padding: 9px 14px; font-size: 13px; }
  .empty-emoji { font-size: 36px; }
  h1 { font-size: 22px; }
  h2 { font-size: 18px; }
  h3 { font-size: 16px; }
}

/* iOS 安全区 */
@supports (padding: env(safe-area-inset-bottom)) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .toast-stack {
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .theme-switcher, .bgm-dock {
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

/* 触摸友好：所有可点击元素最小 40px */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 40px; }
  .lc-nav a { min-height: 36px; display: inline-flex; align-items: center; }
}

/* ============================================
   配色主题包（data-theme 属性切换）
   ============================================ */

/* 樱花粉（默认偏向） */
html[data-theme="sakura"] {
  --bg-soft: #fff5f8;
  --bg-card: #ffffff;
  --c-pink: #ff8fb1; --c-rose: #ffafc6;
  --rainbow-bar: linear-gradient(90deg, #ffd1dc, #ff8fb1, #ff6e9c, #ffafc6, #ffd6e6);
  --rainbow-soft: linear-gradient(135deg, #fff0f5 0%, #ffe1ec 50%, #fcd3e1 100%);
  --shadow-sm: 0 4px 14px rgba(255, 143, 177, .25);
}

/* 赛博紫 */
html[data-theme="cyber"] {
  --bg-soft: #0d0a1f;
  --bg-card: #1a1432;
  --text-main: #f0e6ff;
  --text-sub: #a99dc4;
  --text-mute: #6f6483;
  --border: #2d2547;
  --c-pink: #ff2bd6;
  --c-violet: #8a4fff;
  --rainbow-bar: linear-gradient(90deg, #ff2bd6, #8a4fff, #00e7ff, #ff2bd6);
  --rainbow-soft: linear-gradient(135deg, #1a1432 0%, #2d1654 50%, #4b1d8a 100%);
  --shadow-sm: 0 4px 14px rgba(255, 43, 214, .35);
  --shadow-md: 0 10px 30px rgba(138, 79, 255, .4);
}
html[data-theme="cyber"] .lc-logo,
html[data-theme="cyber"] .text-rainbow { filter: drop-shadow(0 0 8px rgba(255,43,214,.6)); }

/* 极光绿 */
html[data-theme="aurora"] {
  --bg-soft: #f0fbf6;
  --bg-card: #ffffff;
  --c-pink: #00c5a0;
  --c-mint: #5be8be;
  --rainbow-bar: linear-gradient(90deg, #00d2c1, #00b894, #5be8be, #6ee7b7, #93f0d7);
  --rainbow-soft: linear-gradient(135deg, #d6f8e8 0%, #b3f0d6 50%, #88e6c4 100%);
  --shadow-sm: 0 4px 14px rgba(0, 197, 160, .25);
}

/* 复古沙 */
html[data-theme="vintage"] {
  --bg-soft: #f6efe1;
  --bg-card: #fffaf0;
  --text-main: #4a3825;
  --text-sub: #8a7560;
  --border: #e8d8be;
  --c-pink: #c97f5b;
  --c-peach: #e6a872;
  --rainbow-bar: linear-gradient(90deg, #b8865a, #c97f5b, #d9a05c, #e6c180, #b8865a);
  --rainbow-soft: linear-gradient(135deg, #f5e6c8 0%, #ebcf9e 50%, #d9b075 100%);
  --shadow-sm: 0 4px 14px rgba(201, 127, 91, .25);
}

/* 暗夜星河 */
html[data-theme="midnight"] {
  --bg-soft: #0a0e23;
  --bg-card: #131734;
  --text-main: #e0e6ff;
  --text-sub: #9aa3c9;
  --text-mute: #5d6588;
  --border: #232849;
  --c-pink: #6c8eff;
  --c-violet: #b39bff;
  --rainbow-bar: linear-gradient(90deg, #5d76ff, #b39bff, #ffd1ff, #b39bff, #5d76ff);
  --rainbow-soft: linear-gradient(135deg, #131734 0%, #1d2452 50%, #2a3576 100%);
  --shadow-sm: 0 4px 14px rgba(108, 142, 255, .35);
  --shadow-md: 0 10px 30px rgba(179, 155, 255, .35);
}

/* 糖果黄 */
html[data-theme="candy"] {
  --bg-soft: #fffbe6;
  --bg-card: #ffffff;
  --c-pink: #ff9f5e;
  --c-peach: #ffce5e;
  --rainbow-bar: linear-gradient(90deg, #ffce5e, #ff9f5e, #ffafc6, #94d6ff, #c2aaff, #ffce5e);
  --rainbow-soft: linear-gradient(135deg, #fff3a8 0%, #ffd1a4 50%, #ffafc6 100%);
  --shadow-sm: 0 4px 14px rgba(255, 159, 94, .25);
}

/* 主题切换器（悬浮在右下） */
.theme-switcher {
  position: fixed; right: 18px; bottom: 18px; z-index: 9998;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
}
.theme-switcher .ts-toggle {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--rainbow-bar); border: none;
  box-shadow: var(--shadow-md);
  font-size: 22px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s;
}
.theme-switcher .ts-toggle:hover { transform: rotate(45deg) scale(1.1); }
.theme-switcher .ts-panel {
  display: none;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 12px;
  box-shadow: var(--shadow-md);
  flex-wrap: wrap; gap: 8px; max-width: 240px;
}
.theme-switcher.open .ts-panel { display: flex; }
.theme-switcher .ts-item {
  width: 50px; height: 50px; border-radius: 12px;
  border: 2px solid transparent; cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.theme-switcher .ts-item:hover { transform: scale(1.08); }
.theme-switcher .ts-item.active { border-color: var(--c-pink); box-shadow: 0 0 0 3px rgba(255,143,177,.2); }
.theme-switcher .ts-item .name {
  position: absolute; bottom: 2px; left: 0; right: 0;
  font-size: 10px; color: #fff; text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.ts-prv-default  { background: linear-gradient(135deg, #E40303, #FF8C00, #FFED00, #008026, #004DFF, #750787); }
.ts-prv-sakura   { background: linear-gradient(135deg, #ffd1dc, #ff8fb1, #ff6e9c); }
.ts-prv-cyber    { background: linear-gradient(135deg, #ff2bd6, #8a4fff, #00e7ff); }
.ts-prv-aurora   { background: linear-gradient(135deg, #00d2c1, #5be8be, #93f0d7); }
.ts-prv-vintage  { background: linear-gradient(135deg, #b8865a, #d9a05c, #e6c180); }
.ts-prv-midnight { background: linear-gradient(135deg, #131734, #5d76ff, #b39bff); }
.ts-prv-candy    { background: linear-gradient(135deg, #ffce5e, #ff9f5e, #ffafc6, #94d6ff); }

/* ============================================
   编辑器特效组件（editor / view 通用）
   ============================================ */

/* 1. 彩虹流光背景 */
.fx-rainbow-bg {
  background: linear-gradient(90deg, #ff6e9c, #ff8f5e, #ffd66e, #5eff8b, #5ec5ff, #b35eff, #ff6e9c);
  background-size: 300% 100%;
  animation: fx-rainbow-flow 8s linear infinite;
  color: #fff; padding: 32px 24px; text-align: center;
  border-radius: var(--radius-md);
  font-size: 22px; font-weight: 700; line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
  outline: none;
}
@keyframes fx-rainbow-flow { to { background-position: 300% 0; } }

/* 2. 星空 */
.fx-starfield {
  position: relative; min-height: 180px;
  border-radius: var(--radius-md); overflow: hidden;
  background: radial-gradient(ellipse at top, #1a1340 0%, #0a0820 60%, #050414 100%);
  color: #fff; padding: 40px 24px; text-align: center;
}
.fx-starfield::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent 60%),
    radial-gradient(1px 1px at 28% 62%, #ffe7c0, transparent 60%),
    radial-gradient(2px 2px at 47% 22%, #fff, transparent 60%),
    radial-gradient(1px 1px at 64% 78%, #c0e3ff, transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 36%, #fff, transparent 60%),
    radial-gradient(1px 1px at 88% 64%, #ffd1f0, transparent 60%),
    radial-gradient(1.5px 1.5px at 18% 82%, #fff, transparent 60%),
    radial-gradient(1px 1px at 36% 30%, #fff, transparent 60%);
  animation: fx-twinkle 3.6s ease-in-out infinite alternate;
}
.fx-starfield > * { position: relative; z-index: 1; }
@keyframes fx-twinkle {
  from { opacity: .55; }
  to   { opacity: 1; }
}

/* 3. 浮动粒子 */
.fx-particles {
  position: relative; min-height: 140px;
  border-radius: var(--radius-md); overflow: hidden;
  background: linear-gradient(135deg, #ffe9f3, #e9f1ff);
  padding: 30px 20px; text-align: center;
  color: var(--text-main);
}
.fx-particles::before, .fx-particles::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(3px 3px at 15% 30%, rgba(255,111,174,.7), transparent 60%),
    radial-gradient(2px 2px at 35% 70%, rgba(110,197,255,.7), transparent 60%),
    radial-gradient(4px 4px at 65% 25%, rgba(169,138,255,.6), transparent 60%),
    radial-gradient(2px 2px at 85% 60%, rgba(255,176,90,.7), transparent 60%),
    radial-gradient(3px 3px at 55% 85%, rgba(126,232,194,.6), transparent 60%);
  animation: fx-float 6s ease-in-out infinite;
}
.fx-particles::after { animation-delay: -3s; opacity: .6; }
.fx-particles > * { position: relative; z-index: 1; }
@keyframes fx-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* 4. 霓虹字 */
.fx-neon {
  text-align: center; padding: 28px 16px;
  font-size: 42px; font-weight: 800; letter-spacing: 4px;
  color: #fff;
  text-shadow:
    0 0 4px #fff,
    0 0 10px #ff2bd6,
    0 0 22px #ff2bd6,
    0 0 44px #ff2bd6,
    0 0 80px #b35eff;
  animation: fx-neon-pulse 1.8s ease-in-out infinite alternate;
  outline: none;
}
@keyframes fx-neon-pulse {
  from { opacity: .85; filter: brightness(1); }
  to   { opacity: 1;   filter: brightness(1.2); }
}

/* 5. 手写字 */
.fx-handwrite {
  font-family: 'KaiTi', 'STKaiti', '华文楷体', '楷体', 'Ma Shan Zheng', cursive;
  font-size: 30px; line-height: 1.8; letter-spacing: 3px;
  text-align: center; color: var(--text-main);
  padding: 18px 12px; outline: none;
}

/* 6. 贴纸 */
.fx-sticker {
  text-align: center; font-size: 96px; line-height: 1;
  padding: 14px 0;
  animation: fx-sticker-bounce 2.4s ease-in-out infinite;
}
@keyframes fx-sticker-bounce {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-8px) rotate(3deg); }
}

/* 7. 落樱（局部） */
.fx-sakura {
  position: relative; min-height: 220px;
  border-radius: var(--radius-md); overflow: hidden;
  background: linear-gradient(135deg, #ffe9f0 0%, #ffd1dc 50%, #ffeaf0 100%);
  padding: 30px 20px; text-align: center;
  color: #884a64;
}
.fx-sakura .pet {
  position: absolute; top: -24px; font-size: 18px;
  animation: fx-sakura-fall linear infinite;
  pointer-events: none;
}
@keyframes fx-sakura-fall {
  0%   { transform: translate(0,0) rotate(0); opacity: .9; }
  100% { transform: translate(40px, 280px) rotate(360deg); opacity: .2; }
}
.fx-sakura > .text { position: relative; z-index: 1; font-weight: 600; font-size: 18px; }

/* 8. 飘心（局部） */
.fx-hearts {
  position: relative; min-height: 220px;
  border-radius: var(--radius-md); overflow: hidden;
  background: linear-gradient(135deg, #fff0f6, #ffe1ec);
  padding: 30px 20px; text-align: center;
  color: #c2185b;
}
.fx-hearts .h {
  position: absolute; bottom: -28px; font-size: 22px;
  animation: fx-heart-rise linear infinite;
  pointer-events: none;
}
@keyframes fx-heart-rise {
  0%   { transform: translateY(0) scale(.9); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(-260px) scale(1.2); opacity: 0; }
}
.fx-hearts > .text { position: relative; z-index: 1; font-weight: 600; font-size: 18px; }

/* 9. 烟花 */
.fx-fireworks {
  position: relative; min-height: 220px;
  border-radius: var(--radius-md); overflow: hidden;
  background: radial-gradient(ellipse at center, #1a0a30 0%, #050214 100%);
  padding: 30px 20px; text-align: center; color: #fff;
}
.fx-fireworks .fw {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  pointer-events: none;
  animation: fx-firework 2.4s ease-out infinite;
}
@keyframes fx-firework {
  0%   { transform: translate(0,0) scale(.6); opacity: 0; box-shadow: 0 0 0 #fff; }
  20%  { opacity: 1; }
  100% {
    transform: translate(0,0) scale(1.6); opacity: 0;
    box-shadow:
       40px   0 0 -1px #ff2bd6,
      -40px   0 0 -1px #00e7ff,
       0   40px 0 -1px #ffd66e,
       0  -40px 0 -1px #5eff8b,
       28px  28px 0 -1px #ffaf5e,
      -28px  28px 0 -1px #b35eff,
       28px -28px 0 -1px #ff6e9c,
      -28px -28px 0 -1px #5ec5ff;
  }
}
.fx-fireworks > .text {
  position: relative; z-index: 1; font-weight: 700; font-size: 22px;
  text-shadow: 0 0 12px rgba(255,255,255,.6);
}

/* 10. 相识 N 天 */
.fx-days {
  text-align: center; padding: 28px 16px;
  background: linear-gradient(135deg, #fff0f6 0%, #ffe9eb 50%, #f5e7ff 100%);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255,111,174,.4);
}
.fx-days .d-label {
  font-size: 14px; color: var(--text-sub); letter-spacing: 2px; margin-bottom: 8px;
}
.fx-days .d-num {
  font-size: 64px; font-weight: 900; line-height: 1;
  background: var(--rainbow-bar);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: 2px;
  animation: fx-days-pulse 2.4s ease-in-out infinite;
}
.fx-days .d-unit {
  display: inline-block; margin-top: 6px;
  font-size: 14px; color: var(--c-pink); letter-spacing: 4px;
}
@keyframes fx-days-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

/* 11. 故障风文字 */
.fx-glitch {
  text-align: center; padding: 30px 20px;
  font-size: 36px; font-weight: 900; letter-spacing: 4px;
  color: #fff; background: #111;
  border-radius: var(--radius-md);
  position: relative; outline: none;
  animation: fx-glitch-skew 4s ease-in-out infinite;
}
.fx-glitch::before,
.fx-glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  padding: 30px 20px; pointer-events: none;
}
.fx-glitch::before {
  color: #ff2bd6;
  animation: fx-glitch-offset1 3s infinite;
  clip-path: inset(30% 0 50% 0);
}
.fx-glitch::after {
  color: #00e7ff;
  animation: fx-glitch-offset2 2.8s infinite;
  clip-path: inset(55% 0 20% 0);
}
@keyframes fx-glitch-skew {
  0%, 100% { transform: skewX(0); }
  92%       { transform: skewX(0); }
  93%       { transform: skewX(2deg); }
  94%       { transform: skewX(-1deg); }
  95%       { transform: skewX(0); }
}
@keyframes fx-glitch-offset1 {
  0%, 100% { transform: translate(0); }
  92%       { transform: translate(0); }
  93%       { transform: translate(-3px, 2px); }
  95%       { transform: translate(0); }
}
@keyframes fx-glitch-offset2 {
  0%, 100% { transform: translate(0); }
  92%       { transform: translate(0); }
  93%       { transform: translate(3px, -1px); }
  95%       { transform: translate(0); }
}

/* 12. 打字机效果 */
.fx-typewriter {
  display: inline-block; font-family: 'Courier New', 'Consolas', monospace;
  font-size: 22px; line-height: 1.8; color: var(--text-main);
  padding: 18px 24px; margin: 0 auto;
  border-right: 3px solid var(--c-pink);
  overflow: hidden; white-space: nowrap;
  animation: fx-type 2.5s steps(20) 1 forwards, fx-type-cursor .8s step-end 3;
  outline: none;
}
@keyframes fx-type {
  from { max-width: 0; }
  to   { max-width: 100%; }
}
@keyframes fx-type-cursor {
  50% { border-color: transparent; }
}

/* 13. 脉冲光环 */
.fx-pulse-ring {
  display: flex; align-items: center; justify-content: center;
  min-height: 120px; position: relative;
  padding: 30px 20px;
}
.fx-pulse-ring > span {
  position: relative; z-index: 2;
  font-size: 48px; font-weight: 900; outline: none;
  color: var(--c-pink);
  text-shadow: 0 0 16px rgba(255,143,171,.4);
  padding: 10px 20px;
  text-align: center;
}
.fx-pulse-ring::before,
.fx-pulse-ring::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 100px; height: 100px; border-radius: 50%;
  border: 2px solid rgba(255,143,171,.5);
  transform: translate(-50%, -50%) scale(.6);
  opacity: 0;
  animation: fx-pulse-ring 2s ease-out infinite;
  pointer-events: none;
}
.fx-pulse-ring::after { animation-delay: .6s; }
@keyframes fx-pulse-ring {
  0%   { transform: translate(-50%, -50%) scale(.6); opacity: .8; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* 14. 逐词飘浮 */
.fx-float-words {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  padding: 30px 16px;
  background: linear-gradient(135deg, #f8f0ff, #fff5f8);
  border-radius: var(--radius-md); min-height: 120px;
}
.fx-float-words > span {
  font-size: 28px; font-weight: 700;
  background: var(--rainbow-bar);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0;
  animation: fx-float-word .8s ease-out forwards;
}
@keyframes fx-float-word {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 15. 波浪文字 */
.fx-wave-text {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px;
  padding: 30px 16px;
  background: linear-gradient(135deg, #eef5ff, #f5f0ff);
  border-radius: var(--radius-md); text-align: center; outline: none;
}
.fx-wave-text > span {
  display: inline-block; font-size: 34px; font-weight: 800;
  color: var(--c-pink);
  animation: fx-wave 1.6s ease-in-out infinite;
}
@keyframes fx-wave {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* 全局 BGM 浮窗 */
.bgm-dock {
  position: fixed; left: 18px; bottom: 18px; z-index: 9998;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 14px 6px 8px;
  box-shadow: var(--shadow-md);
  font-size: 13px; color: var(--text-sub);
  cursor: pointer; user-select: none;
}
.bgm-dock .bgm-ico {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--rainbow-bar);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px;
  animation: spin 4s linear infinite;
}
.bgm-dock.paused .bgm-ico { animation-play-state: paused; }

/* ============================================
   节日全屏彩蛋（festival overlay）
   通过 body[data-festival="xxx"] 激活
   ============================================ */
.festival-overlay {
  position: fixed; inset: 0; pointer-events: none;
  z-index: 1; overflow: hidden;
}
.festival-overlay .fx-item {
  position: absolute; top: -40px; opacity: .85;
  animation: fest-fall linear infinite;
}
@keyframes fest-fall {
  to { transform: translateY(110vh) rotate(360deg); }
}
@keyframes fest-twinkle {
  0%, 100% { opacity: .3; transform: scale(.8); }
  50%      { opacity: 1; transform: scale(1.15); }
}

/* 520 / 情人节 / 七夕：粉色光晕 + 飘心 */
body[data-festival="d520"],
body[data-festival="d214"],
body[data-festival="qixi"] {
  background-image: radial-gradient(ellipse at top, rgba(255,143,171,.35), transparent 65%) !important;
}
body[data-festival="d520"] .festival-overlay::before,
body[data-festival="d214"] .festival-overlay::before {
  content: '💖💕💗💘🌹💞🦋✨💝💖💕💗💘🌹💞🦋✨💝💖💕💗💘';
  position: absolute; inset: 0; font-size: 24px;
  letter-spacing: 30px; line-height: 80px;
  word-break: break-all;
  background: linear-gradient(transparent, transparent);
  animation: fest-twinkle 3s ease-in-out infinite;
  text-align: center; opacity: .12; padding-top: 5vh;
}

/* 圣诞：飘雪 */
body[data-festival="xmas"]::before {
  content: ''; position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at top, rgba(180,220,255,.45), transparent 70%);
  pointer-events: none;
}

/* 元旦/新年：烟花闪烁 */
body[data-festival="newyear"] .festival-overlay,
body[data-festival="spring_festival"] .festival-overlay {
  background:
    radial-gradient(circle at 20% 30%, rgba(255,200,80,.4) 0%, transparent 4%),
    radial-gradient(circle at 80% 25%, rgba(255,100,150,.4) 0%, transparent 4%),
    radial-gradient(circle at 50% 60%, rgba(120,200,255,.4) 0%, transparent 4%);
  animation: fest-twinkle 2s ease-in-out infinite;
}

/* 中秋：月亮 */
body[data-festival="zhongqiu"] .festival-overlay::after {
  content: '🌕'; position: absolute;
  top: 6vh; right: 8vw; font-size: 80px;
  filter: drop-shadow(0 0 30px rgba(255, 230, 150, .7));
  animation: fest-twinkle 4s ease-in-out infinite;
}

/* Pride：彩虹光环 */
body[data-festival="pride"] .festival-overlay {
  background:
    linear-gradient(180deg,
      rgba(228,3,3,.08) 0%, rgba(255,140,0,.08) 16%,
      rgba(255,237,0,.08) 33%, rgba(0,128,38,.08) 50%,
      rgba(0,77,255,.08) 66%, rgba(117,7,135,.08) 83%);
}

/* 双十一/光棍：单只 */
body[data-festival="d1111"] .festival-overlay::after {
  content: '1111'; position: absolute;
  top: 12vh; left: 50%; transform: translateX(-50%);
  font-size: 200px; font-weight: 900; opacity: .04;
  background: var(--rainbow-bar); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}

/* 端午 */
body[data-festival="duanwu"] .festival-overlay::after {
  content: '🐉'; position: absolute;
  top: 8vh; right: 10vw; font-size: 60px; opacity: .35;
  animation: fest-twinkle 3s ease-in-out infinite;
}

/* ============================================
   全局页脚（备案 / 版权）
   由 /js/footer.js 拉 /api/site/info 注入
   ============================================ */
.lc-footer {
  margin-top: 50px;
  padding: 32px 20px 26px;
  text-align: center;
  font-size: 13px;
  color: var(--text-mute);
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
html[data-closet="1"] .lc-footer { background: rgba(255,255,255,.02); }
.lc-footer-inner { max-width: 960px; margin: 0 auto; }
.lc-footer-brand {
  font-weight: 600; color: var(--text-sub); font-size: 14px;
}
.lc-footer-brand .lc-footer-logo {
  background: var(--rainbow-bar);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 800;
}
.lc-footer-slogan { margin-top: 4px; color: var(--text-mute); font-size: 12px; }
.lc-footer-links { margin-top: 10px; line-height: 1.9; }
.lc-footer-links a {
  color: var(--text-sub); margin: 0 8px; text-decoration: none;
}
.lc-footer-links a:hover { color: var(--c-pink); }
.lc-footer-beian {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--border);
  color: var(--text-mute); font-size: 12px; line-height: 1.9;
}
.lc-footer-beian a {
  color: var(--text-mute); margin: 0 6px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.lc-footer-beian a:hover { color: var(--c-pink); }
.lc-footer-beian .police-ico {
  display: inline-block; width: 14px; height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff6fae'><path d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4z'/></svg>") center/contain no-repeat;
}
@media (max-width: 720px) {
  .lc-footer { margin-top: 30px; padding: 22px 14px 18px; font-size: 12px; }
  .lc-footer-links a { margin: 0 4px; }
  .lc-footer-beian a { margin: 0 4px; }
}

/* ============================================
   情侣空间移动端适配（body.is-mobile 感知）
   覆盖大屏手机（>600px 旋屏/平板竖屏）场景
   ============================================ */
body.is-mobile .cp-empty-hero h1 { font-size: 28px; }
body.is-mobile .cp-header-bound { padding: 20px 14px 16px; margin-bottom: 14px; }
body.is-mobile .cp-avatars { gap: 10px; }
body.is-mobile .cp-avatar { width: 48px; height: 48px; font-size: 20px; border-width: 2px; }
body.is-mobile .cp-link { font-size: 20px; }
body.is-mobile .cp-space-name { font-size: 17px; }
body.is-mobile .cp-days { font-size: 12px; }
body.is-mobile .cp-days .num { font-size: 24px; }
body.is-mobile .cp-stats { gap: 6px; margin-top: 10px; }
body.is-mobile .cp-stat { padding: 5px 10px; font-size: 11px; }
body.is-mobile .cp-action-grid { grid-template-columns: 1fr; gap: 14px; }
body.is-mobile .cp-action-card { padding: 18px 14px; }
body.is-mobile .cp-tabs { grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 14px; padding: 6px; border-radius: 10px; }
body.is-mobile .cp-tab { padding: 9px 10px; font-size: 12px; }
body.is-mobile .cp-header-actions,
body.is-mobile #btnChatLink { display: none; }
body.is-mobile .cp-composer { padding: 10px; margin-bottom: 12px; }
body.is-mobile .cp-composer textarea { min-height: 60px; }
body.is-mobile .cp-composer-bar { gap: 6px; }
body.is-mobile .cp-chat-wrap { height: calc(100vh - 200px); min-height: 350px; border-radius: 10px; }
body.is-mobile .cp-chat-stream { padding: 12px 8px; }
body.is-mobile .cp-msg-bubble { max-width: calc(100% - 50px); font-size: 14px; padding: 8px 11px; }
body.is-mobile .cp-msg-img { max-width: 180px; }
body.is-mobile .cp-msg-sticker { font-size: 40px; }
body.is-mobile .cp-chat-input { padding: 8px; overflow: visible !important; }
body.is-mobile .cp-chat-tool { width: 40px; height: 40px; font-size: 18px; min-width: 40px; }
body.is-mobile .cp-chat-text { font-size: 14px; padding: 7px 10px; min-height: 40px; }
body.is-mobile .cp-chat-send { padding: 0 14px; height: 40px; font-size: 14px; min-width: 60px; }
body.is-mobile .cp-emoji-bar.open { max-height: 140px; }
body.is-mobile .cp-emoji-bar span { font-size: 22px; }
body.is-mobile .cp-emoji-panel {
  position: fixed !important;
  top: auto !important;
  bottom: calc(60px + env(safe-area-inset-bottom)) !important;
  left: 0 !important;
  right: 0 !important;
  max-height: 30vh !important;
  border-radius: 16px 16px 0 0 !important;
  border-top: 1px solid var(--border) !important;
  border-bottom: none !important;
  box-shadow: 0 -4px 24px rgba(0,0,0,.15) !important;
  z-index: 999 !important;
  overscroll-behavior: contain;
}
body.is-mobile .cp-emoji-panel-body { padding: 8px; gap: 4px; }
body.is-mobile .cp-emoji-panel-body span { font-size: 20px; padding: 3px; }
body.is-mobile .cp-emoji-panel-body img { width: 36px; height: 36px; }
body.is-mobile .cp-emoji-upload { width: 36px; height: 36px; font-size: 16px; }
body.is-mobile .cp-emoji-tab { padding: 6px 8px; font-size: 11px; }
body.is-mobile .cp-settings .row { flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; padding: 14px 0 !important; }
body.is-mobile .cp-settings .row > input,
body.is-mobile .cp-settings .row > div > input { width: 100% !important; max-width: 100% !important; min-height: 44px !important; font-size: 15px !important; padding: 10px 12px !important; }
body.is-mobile .cp-date-quick { min-height: 44px !important; padding: 10px 14px !important; font-size: 14px !important; border-radius: 10px !important; }
body.is-mobile #setAnniv { font-size: 16px !important; padding: 12px !important; min-height: 48px !important; border-radius: 10px !important; }
body.is-mobile #btnSaveSettings { min-height: 48px !important; font-size: 16px !important; padding: 14px 20px !important; }
body.is-mobile .cp-wish-tabs { margin-bottom: 10px; padding: 2px; }
body.is-mobile .cp-wish-tab { padding: 6px 8px; font-size: 13px; }
body.is-mobile .cp-wish-add { gap: 6px; }
body.is-mobile .cp-wish-add input { min-width: 80px; padding: 8px 10px; font-size: 14px; }
body.is-mobile .cp-wish-add select { padding: 6px 8px; font-size: 16px; }
body.is-mobile .cp-wish { padding: 10px 12px; gap: 10px; }
body.is-mobile .cp-wish .emoji { font-size: 18px; }
body.is-mobile .cp-wish .check { width: 22px; height: 22px; }
body.is-mobile .cp-wish-checkin img { max-height: 140px; }
body.is-mobile .cp-letter-list { grid-template-columns: 1fr; }
body.is-mobile .cp-letter { padding: 14px 12px; }
body.is-mobile .cp-letter-bar { gap: 6px; margin-bottom: 10px; }
body.is-mobile .cp-letter-tip { font-size: 12px; }
body.is-mobile .cp-conflict-bar { gap: 6px; }
body.is-mobile .cp-conflict { padding: 12px; }
body.is-mobile .cp-conflict-tip { font-size: 12px; padding: 8px 12px; }

/* ============================================
   移动端通用修复
   ============================================ */
/* 避免 iOS Safari 对聚焦输入框自动缩放 */
body.is-mobile input:focus,
body.is-mobile textarea:focus {
  font-size: 16px !important;
}
/* 图标按钮最小触摸区域 */
body.is-mobile .btn-icon,
body.is-mobile button[aria-label] {
  min-width: 44px;
  min-height: 44px;
}
/* 弹窗/模态框 safe-area 适配 */
body.is-mobile .modal,
body.is-mobile .dialog-overlay,
body.is-mobile .overlay {
  padding-bottom: env(safe-area-inset-bottom);
}

/* ====== 滚轮日期选择器 ====== */
.wp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9999;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.wp-overlay.open { display: flex; }

.wp-container {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card, #fff);
  border-radius: 16px 16px 0 0;
  position: relative;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

.wp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border, #eee);
}
.wp-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main, #333);
}
.wp-btn {
  border: none;
  background: none;
  font-size: 15px;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 6px;
}
.wp-cancel { color: var(--text-mute, #999); }
.wp-confirm { color: var(--c-pink, #ff6fae); font-weight: 600; }
.wp-btn:active { background: var(--bg-soft, #f5f5f5); }

.wp-body {
  display: flex;
  height: 220px;
  position: relative;
  overflow: hidden;
}

/* 选中高亮条 */
.wp-highlight {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  height: 44px;
  border-top: 1px solid var(--border, #eee);
  border-bottom: 1px solid var(--border, #eee);
  background: rgba(255,111,174,.06);
  pointer-events: none;
  z-index: 1;
}

.wp-col {
  flex: 1;
  position: relative;
  z-index: 2;
}
.wp-col-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 88px 0;
  scrollbar-width: none;
}
.wp-col-scroll::-webkit-scrollbar { display: none; }

.wp-item {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-main, #333);
  user-select: none;
  -webkit-user-select: none;
}
.wp-item.wp-placeholder {
  opacity: 0;
  pointer-events: none;
}

.wp-col-label {
  text-align: center;
  font-size: 12px;
  color: var(--text-mute, #aaa);
  padding-bottom: 8px;
}

/* PC 端居中弹窗 */
@media (min-width: 601px) {
  .wp-overlay { align-items: center; }
  .wp-container {
    border-radius: 16px;
    max-width: 380px;
    margin: 0 20px;
  }
}

