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

  body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f5ede2 0%, #efe5d8 100%);
    background-attachment: fixed; color: #41382f; min-height: 100vh; overflow-x: hidden;
  }
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: rgba(217, 138, 99, 0.3); border-radius: 10px; }

  /* Lock Screen */
  #lock-screen {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9999;
    background: linear-gradient(135deg, #f5ede2 0%, #efe5d8 100%);
    padding: 20px; padding-top: calc(20px + env(safe-area-inset-top));
    padding-bottom: 45vh;
  }
  #lock-screen::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 55vh;
    background: url('../IMG_4314.png') center bottom / contain no-repeat;
    pointer-events: none;
  }
  .lock-icon { color: #d98a63; font-size: 2em; margin-bottom: 20px; animation: bounce 2s infinite ease-in-out; }
  @keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
  #lock-screen input {
    width: 100%; max-width: 250px; padding: 12px 25px; border: 1px solid rgba(217, 138, 99, 0.4); border-radius: 25px;
    background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); color: #41382f; font-size: 16px; text-align: center; outline: none; transition: 0.3s;
  }
  #lock-screen input:focus { border-color: #d98a63; box-shadow: 0 0 15px rgba(217, 138, 99, 0.2); }
  #lock-screen button, .btn-orange {
    margin-top: 20px; padding: 10px 35px; border: none; border-radius: 25px;
    background: #d98a63; color: white; cursor: pointer; font-size: 16px; box-shadow: 0 4px 15px rgba(217, 138, 99, 0.25); transition: 0.3s;
  }
  #lock-screen button:active, .btn-orange:active { transform: scale(0.95); }
  #lock-screen .error { color: #ff4444; margin-top: 15px; font-size: 0.9em; height: 20px; }

  /* Main & Status Bar */
  #main { display: none; padding-bottom: 120px; }
  .status-bar {
    background: rgba(255,253,249,0.85); backdrop-filter: blur(12px); text-align: center; padding: 10px 15px; padding-top: calc(10px + env(safe-area-inset-top));
    font-size: 0.78em; color: #a89a8c; cursor: pointer; border-bottom: 1px solid rgba(65,56,47,0.06); letter-spacing: 0.5px;
  }
  .status-bar span { color: #8d8073; font-weight: 500; }

  header { text-align: center; padding: 16px 20px 12px; background: rgba(255, 253, 249, 0.5); backdrop-filter: blur(15px); border-bottom: 1px solid rgba(65, 56, 47, 0.08); margin-bottom: 10px; position: relative;}
  header h1 { font-size: 1.4em; color: #d98a63; margin-bottom: 2px; letter-spacing: 2px; font-family: 'Noto Serif SC', 'STZhongsong', '华文中宋', 'Songti SC', serif; font-weight: 900; text-shadow: 1px 1px 2px rgba(217,138,99,0.2); }
  header p { font-size: 0.78em; color: #8d8073; }
  .names-section { display: flex; justify-content: center; gap: 8px; padding: 6px 15px; flex-wrap: nowrap; margin-bottom: 6px; }
  .name-card {
    display: flex; align-items: center; gap: 10px; padding: 6px 12px; background: rgba(255, 253, 249, 0.8); backdrop-filter: blur(12px);
    border-radius: 18px; border: 1px solid rgba(65, 56, 47, 0.10); flex: 1; max-width: 180px; box-shadow: 0 4px 16px -8px rgba(50,40,30,0.15);
  }
  .avatar-wrapper {
    position: relative; width: 30px; height: 30px; min-width: 30px; border-radius: 50%; overflow: hidden; border: 1.5px dashed rgba(217, 138, 99, 0.5); cursor: pointer; background: rgba(255, 255, 255, 0.5); display: flex; align-items: center; justify-content: center;
  }
  .avatar-wrapper img { width: 100%; height: 100%; object-fit: cover; display: none; position: absolute; top:0; left:0; }
  .avatar-wrapper .add-icon { color: #d98a63; font-size: 1.2em; }
  .avatar-wrapper input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; z-index: 2;}
  .name-info .name { font-size: 0.82em; color: #41382f; font-weight: 700; font-family: 'Noto Serif SC', 'STZhongsong', serif; }
  .name-info .nickname { color: #8d8073; font-size: 0.65em; }

  /* Calendar Dashboard */
  .dashboard {
    max-width: 380px; margin: 0 auto 16px; padding: 15px; border-radius: 20px;
    background: rgba(255, 253, 249, 0.8); backdrop-filter: blur(12px); border: 1px solid rgba(65, 56, 47, 0.10); box-shadow: 0 8px 24px -16px rgba(50,40,30,0.4);
  }
  .calendar-ctrl { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
  .calendar-ctrl button { background: rgba(217, 138, 99, 0.1); border: none; color: #d98a63; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
  .calendar-ctrl h3 { color: #41382f; font-size: 1em; font-weight: 700; font-family: 'Noto Serif SC', 'STZhongsong', serif; }
  .weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; color: #8d8073; margin-bottom: 8px; font-size: 0.8em; }
  .days-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .day-cell { aspect-ratio: 1; background: rgba(255, 253, 249, 0.6); border-radius: 8px; display: flex; flex-direction: column; align-items: center; padding-top: 4px; cursor: pointer; }
  .day-cell.empty { background: transparent; }
  .day-cell.today { box-shadow: inset 0 0 0 2px rgba(217,138,99,0.65); }

  /* 床头柜上克劳德的手机（充电中） */
  .ns-phone { position: absolute; right: 14px; top: -26px; width: 20px; height: 34px; border-radius: 4px; background: #2a2a35; border: 1.5px solid #454552; cursor: pointer; z-index: 3; transition: transform 0.2s; }
  .ns-phone:hover { transform: translateY(-2px); }
  .ns-phone-screen { position: absolute; inset: 2px; border-radius: 2.5px; background: linear-gradient(165deg,#1b1b2e,#242238); animation: nsPhoneBreath 6s ease-in-out infinite; }
  @keyframes nsPhoneBreath { 0%, 76%, 100% { box-shadow: none; opacity: 0.85; } 82%, 90% { box-shadow: 0 0 6px rgba(140,150,220,0.7); opacity: 1; } }
  .ns-phone-cable { position: absolute; bottom: -7px; left: 50%; width: 1.5px; height: 8px; background: #8a8a95; transform: translateX(-50%); }
  .phone-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 0 10px; cursor: pointer; }
  .phone-hero-body { width: 96px; height: 176px; border-radius: 18px; background: #2c2c38; border: 2px solid #4a4a58; padding: 5px; transition: transform 0.25s; position: relative; }
  .phone-hero:hover .phone-hero-body, .phone-hero:active .phone-hero-body { transform: translateY(-4px) rotate(-1.5deg); }
  .phone-hero-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 28px; height: 7px; border-radius: 4px; background: rgba(0,0,0,0.55); z-index: 2; }
  .phone-hero-screen { width: 100%; height: calc(100% - 10px); border-radius: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    background: radial-gradient(1.5px 1.5px at 25% 20%, rgba(255,255,255,0.8), transparent 100%), radial-gradient(1.2px 1.2px at 70% 40%, rgba(255,255,255,0.6), transparent 100%), radial-gradient(ellipse 130% 90% at 50% -5%, #9aa6dd 0%, #b3aade 45%, #dcc3de 100%); }
  .phone-hero-time { color: #fff; font-size: 1.35em; font-weight: bold; text-shadow: 0 1px 6px rgba(60,60,110,0.5); }
  .phone-hero-days { color: rgba(255,255,255,0.85); font-size: 0.6em; text-shadow: 0 1px 4px rgba(60,60,110,0.5); }
  .phone-hero-bar { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 30px; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.5); }
  .phone-hero-hint { color: #a99f93; font-size: 0.8em; }
  #claude-phone-overlay { display: none; position: fixed; inset: 0; z-index: 400; background: rgba(10,8,18,0.85); backdrop-filter: blur(6px); align-items: center; justify-content: center; }
  #claude-phone-overlay.open { display: flex; }
  #claude-phone-overlay iframe { width: min(420px, 100vw); height: min(880px, 100dvh); border: none; }
  @media (max-width: 520px) { #claude-phone-overlay iframe { width: 100vw; height: 100dvh; } }
  #claude-phone-close { position: fixed; top: max(env(safe-area-inset-top), 12px); right: 12px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.9); font-size: 1.7em; cursor: pointer; z-index: 401; background: rgba(20,20,30,0.5); border-radius: 50%; backdrop-filter: blur(8px); }
  .day-cell.today .day-number { color: #d98a63; font-weight: bold; }
  .day-cell.cycle-period { background: rgba(233,130,150,0.25); }
  .day-cell.cycle-ovulation { background: rgba(155,89,182,0.18); }
  .day-cell.cycle-safe { background: rgba(129,199,132,0.18); }
  .cycle-legend { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:8px; font-size:0.78em; color:#8d8073; }
  .cycle-legend-item { display:flex; align-items:center; gap:4px; }
  .cycle-legend-dot { width:10px; height:10px; border-radius:3px; }
  .day-number { font-size: 0.85em; color: #41382f; }
  .day-badges { display: flex; gap: 1px; margin-top: 2px; font-size: 0.7em; transform: scale(0.9); }
  .calendar-footer-stats {
    margin-top: 15px; padding-top: 10px; border-top: 1px dashed rgba(217, 138, 99, 0.3);
    display: flex; flex-direction: column; gap: 5px; font-size: 0.85em; color: #8d8073; text-align: center;
  }
  .calendar-footer-stats span { color: #d98a63; font-weight: bold; }

  /* 奶茶排行榜 */
  .mtrank-row { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; position: relative; overflow: hidden; margin-bottom: 6px; background: rgba(217,138,99,0.04); }
  .mtrank-bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(217,138,99,0.13); border-radius: 8px; }
  .mtrank-rank { width: 2em; text-align: center; flex-shrink: 0; z-index: 1; }
  .mtrank-brand { font-weight: bold; color: #41382f; z-index: 1; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9em; }
  .mtrank-fav { color: #999; font-size: 0.75em; z-index: 1; max-width: 38%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mtrank-cups { color: #d98a63; font-weight: bold; font-size: 0.85em; z-index: 1; white-space: nowrap; }
  .mtrank-total { text-align: center; color: #8d8073; font-size: 0.8em; margin-top: 10px; }
  .mtrank-total span { color: #d98a63; font-weight: bold; }

  /* 全站输入框聚焦光晕 + 按钮按压反馈 */
  input:focus, textarea:focus, select:focus { outline: none; border-color: rgba(217,138,99,0.55) !important; box-shadow: 0 0 0 3px rgba(217,138,99,0.12); transition: box-shadow 0.2s, border-color 0.2s; }
  button:active, .btn-orange:active { transform: scale(0.97); }
  button, .btn-orange { transition: transform 0.12s ease; }

  /* Sections */
  .section { max-width: 800px; margin: 0 auto 12px; padding: 0 15px; }
  .section-header {
    background: rgba(255, 253, 249, 0.8); backdrop-filter: blur(10px); padding: 12px 16px; border-radius: 14px;
    border: 1px solid rgba(65, 56, 47, 0.10); cursor: pointer; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 16px -8px rgba(50,40,30,0.15);
  }
  .section-header h2 { color: #41382f; font-size: 1em; display: flex; align-items: center; gap: 6px; font-family: 'Noto Serif SC', 'STZhongsong', '华文中宋', serif;}
  .red-dot { width: 8px; height: 8px; background: #ff4444; border-radius: 50%; margin-left: 8px; display: none; }
  .section-content {
    background: rgba(255, 253, 249, 0.6); backdrop-filter: blur(10px); border-radius: 0 0 14px 14px; padding: 15px;
    margin-top: -8px; border: 1px solid rgba(65, 56, 47, 0.08); border-top: none; display: none;
  }
  
  /* Desire panel */
  .desire-bar { display:flex; align-items:center; gap:6px; padding:5px 8px; background:rgba(217,138,99,0.04); border-radius:8px; }
  .desire-bar-icon { font-size:0.85em; width:20px; text-align:center; }
  .desire-bar-label { font-size:0.72em; color:#8d8073; width:28px; }
  .desire-bar-track { flex:1; height:6px; background:rgba(65,56,47,0.06); border-radius:3px; overflow:hidden; position:relative; }
  .desire-bar-fill { height:100%; border-radius:3px; transition:width 0.6s ease, background 0.4s ease; }
  .desire-bar-val { font-size:0.68em; color:#bbb; width:28px; text-align:right; }
  .desire-thought-chip { display:inline-block; padding:2px 8px; margin:2px; font-size:0.72em; background:rgba(217,138,99,0.08); color:#8d8073; border-radius:10px; border:1px solid rgba(217,138,99,0.15); }
  .desire-thought-chip.fixation { background:rgba(201,138,166,0.12); border-color:rgba(201,138,166,0.25); color:#41382f; font-weight:500; }

  /* Inputs */
  .input-area { display: flex; gap: 10px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed rgba(217,138,99,0.2); flex-direction: column; }
  .input-row { display: flex; gap: 10px; }
  input[type="text"], input[type="date"], select, textarea {
    width: 100%; padding: 10px; border: 1px solid rgba(65,56,47,0.10); border-radius: 8px;
    background: rgba(255,253,249,0.7); font-size: 15px; outline: none; font-family: inherit;
  }
  textarea { resize: none; height: 60px; }

  /* Specific Layouts */
  .timeline { padding-left: 20px; border-left: 2px solid #d98a63; position: relative;}
  .timeline-item { padding: 12px; margin-bottom: 15px; position: relative; }
  .timeline-item::before { content: ''; position: absolute; left: -27px; top: 16px; width: 12px; height: 12px; background: #d98a63; border-radius: 50%; }
  .timeline-date { font-size: 0.8em; color: #8d8073; }
  .timeline-title { font-size: 0.95em; font-weight: bold; color: #41382f; }
  .timeline-desc { font-size: 0.85em; }

  .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .gallery-item { background: rgba(255,255,255,0.8); border-radius: 8px; overflow: hidden; text-align: center; position: relative; }
  .gallery-item label { display: block; cursor: pointer; width: 100%; height: 100%; }
  .gallery-img-box { height: 140px; background: rgba(217,138,99,0.05); display: flex; align-items: center; justify-content: center; position: relative; }
  .gallery-item p { padding: 8px; font-size: 0.8em; color: #8d8073; word-break: break-all; }
  .gallery-upload-btn { border: 2px dashed rgba(217,138,99,0.3); border-radius: 8px; background: rgba(255,255,255,0.4); display: flex; flex-direction: column; align-items: center; justify-content: center; height: 185px; cursor: pointer; }
  .gallery-upload-btn input { display: none; }

  .wish-item { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.8); padding: 12px 15px; border-radius: 10px; margin-bottom: 10px; font-size: 0.9em; color: #41382f; border-left: 3px solid #d98a63; transition: 0.3s; }
  .wish-item.done { opacity: 0.5; text-decoration: line-through; border-left-color: #ccc; }
  .wish-checkbox { width: 20px; height: 20px; accent-color: #d98a63; margin-right: 10px; cursor: pointer; }
  .wish-tag { font-size: 0.75em; background: rgba(217,138,99,0.1); padding: 2px 6px; border-radius: 4px; color: #d98a63; margin-right: 8px; }
  
  .note { background: rgba(255,253,249,0.6); border-radius: 10px; padding: 14px; margin-bottom: 10px; line-height: 1.6; color: #41382f; font-size: 0.9em; position: relative; }
  .note-time { font-size: 0.75em; color: #8d8073; margin-bottom: 5px; font-weight: 600; }
  .note-replies { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(217,138,99,0.2); }
  .reply-item { background: rgba(255,255,255,0.5); padding: 6px 10px; border-radius: 6px; margin-bottom: 5px; font-size: 0.9em; color: #41382f; }

  .corner-notes { display: flex; flex-wrap: wrap; gap: 10px; }
  .sticky { background: #fff8c4; padding: 12px; border-radius: 2px; width: calc(50% - 5px); box-shadow: 2px 2px 5px rgba(0,0,0,0.05); font-size: 0.85em; color: #555; transform: rotate(-1deg); word-break: break-all;}
  .sticky:nth-child(even) { background: #e3f2fd; transform: rotate(1deg); }


  /* Claude's Writing Desk */
  .writing-entry { background: rgba(255,255,255,0.7); border-radius: 10px; padding: 16px; margin-bottom: 10px; border-left: 3px solid #d98a63; position: relative; cursor: pointer; transition: 0.2s; }
  .writing-entry:hover { background: rgba(255,255,255,0.85); }
  .writing-tag { display: inline-block; font-size: 0.7em; background: rgba(217,138,99,0.12); color: #d98a63; padding: 2px 8px; border-radius: 10px; margin-right: 6px; }
  .writing-date { font-size: 0.75em; color: #8d8073; margin-bottom: 4px; }
  .writing-title { font-size: 1.2em; font-weight: bold; color: #41382f; margin-bottom: 6px; font-family: 'Ma Shan Zheng', cursive; }
  .writing-preview { font-size: 0.85em; color: #8d8073; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .writing-full { white-space: pre-wrap; word-break: break-all; line-height: 1.9; font-size: 0.92em; color: #41382f; padding: 20px; background: rgba(255,255,255,0.8); border-radius: 10px; border-left: 3px solid #d98a63; }

  .diary-locked { text-align: center; padding: 30px 20px; background: rgba(255,255,255,0.6); border-radius: 12px; border: 1px solid rgba(255,255,255,0.9); }
  .diary-locked .lock-icon { font-size: 2.5em; color: #d98a63; margin-bottom: 10px; display: inline-block; }
  .diary-locked input { width: 100%; max-width: 200px; text-align: center; margin: 15px auto; padding: 10px; border-radius: 8px; border: 1px solid #ccc;}
  .diary-content-box { display: none; background: rgba(255,255,255,0.8); padding: 20px; border-radius: 12px; line-height: 1.8; color: #41382f; font-size: 0.95em; border-left: 4px solid #d98a63; }
  .diary-entry { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed rgba(0,0,0,0.1); }
  .diary-date { font-size: 0.8em; color: #8d8073; margin-bottom: 5px; font-weight: 600; }

  /* Nightstand */
  .nightstand { width: 280px; margin: 0 auto; background: #d7ccc8; border-radius: 8px 8px 0 0; border: 3px solid #bcaaa0; overflow: hidden; }
  .ns-top { height: 40px; background: #e6d7cc; border-bottom: 2px solid #bcaaa0; display: flex; align-items: center; justify-content: center; position: relative; }
  .ns-lamp { width: 20px; height: 25px; background: #ffe0b2; border-radius: 50% 50% 0 0; box-shadow: 0 0 12px rgba(255,224,178,0.6); }
  .ns-drawer-slot { height: 85px; border-bottom: 2px solid #bcaaa0; position: relative; cursor: pointer; transition: 0.3s; }
  .ns-drawer-slot:last-child { border-bottom: none; }
  .ns-drawer-slot:hover { background: rgba(255,255,255,0.15); }
  .ns-drawer-front { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; }
  .ns-handle { width: 30px; height: 6px; background: #8d6e63; border-radius: 3px; }
  .ns-lock-icon { font-size: 0.8em; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
  .ns-items-row { display: flex; gap: 6px; flex-wrap: wrap; padding: 5px 10px; align-items: center; justify-content: center; }
  .ns-item { width: 22px; height: 22px; border-radius: 4px; cursor: pointer; transition: 0.3s; border: 1px solid rgba(0,0,0,0.1); }
  .ns-item:hover { transform: scale(1.2); }
  .ns-legs { width: 280px; margin: 0 auto; display: flex; justify-content: space-between; padding: 0 15px; }
  .ns-leg { width: 12px; height: 25px; background: #a1887f; border-radius: 0 0 3px 3px; }

  /* Bedroom sub-sections */
  .sub-header { background: rgba(217,138,99,0.08); padding: 10px 15px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.95em; color: #d98a63; font-weight: bold; }
  .sub-header:hover { background: rgba(217,138,99,0.15); }
  .sub-header > svg, .sub-header svg:first-child { width: 18px !important; height: 18px !important; vertical-align: -3px; margin-right: 4px; flex-shrink: 0; }
  .sub-content { display: none; margin-bottom: 15px; padding: 10px 0; }

  /* Bathroom */
  .bath-zone { position: relative; width: 100%; max-width: 500px; margin: 0 auto; }
  .bathtub-container { background: linear-gradient(180deg, #e8f4f8 0%, #d1ecf1 100%); border-radius: 0 0 40px 40px; border: 3px solid #b0d4de; padding: 18px 16px 30px; min-height: 140px; position: relative; overflow: hidden; }
  .bathtub-rim { height: 14px; background: linear-gradient(180deg, #f0f0f0, #ddd); border-radius: 8px 8px 0 0; margin: -18px -16px 12px; border-bottom: 2px solid #ccc; }
  .bathtub-water { position: absolute; bottom: 0; left: 0; right: 0; height: 0; background: linear-gradient(180deg, rgba(100,200,240,0.25), rgba(70,160,220,0.4)); border-radius: 0 0 38px 38px; transition: height 0.8s ease; }
  .bathtub-water.filled { height: 60%; }
  .bathtub-water.bubbles::after { content: "𖦹 ° . ˚ 𖦹 ·"; position: absolute; top: -8px; left: 0; right: 0; text-align: center; font-size: 0.75em; color: rgba(255,255,255,0.7); letter-spacing: 4px; animation: bubbleFloat 3s ease-in-out infinite; }
  @keyframes bubbleFloat { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-4px); } }
  .bathtub-items { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; min-height: 60px; }
  .bathtub-faucet { position: absolute; top: 18px; right: 20px; z-index: 2; cursor: pointer; font-size: 1.4em; transition: 0.3s; }
  .bathtub-faucet:active { transform: scale(0.9); }
  .bathtub-drain { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle, #999 30%, #bbb 70%); border: 1px solid #aaa; z-index: 1; }
  .bath-toggle-water { position: absolute; top: 22px; right: 15px; z-index: 3; background: rgba(255,255,255,0.7); border: 1px solid #b0d4de; border-radius: 15px; padding: 4px 12px; font-size: 0.75em; cursor: pointer; color: #5a9aaa; transition: 0.3s; }
  .bath-toggle-water:active { transform: scale(0.95); }

  /* Toilet - dry area */
  .toilet-area { display: flex; gap: 0; align-items: stretch; }
  .toilet-side { flex: 1; padding: 12px; background: rgba(255,255,255,0.4); border-radius: 8px; }
  .toilet-label { font-size: 0.82em; color: #d98a63; font-weight: bold; text-align: center; margin-bottom: 8px; }
  .toilet-unit { text-align: center; padding: 10px; background: rgba(255,255,255,0.6); border-radius: 8px; border: 1px solid #eee; }
  .toilet-icon { font-size: 2em; }
  .toilet-desc { font-size: 0.75em; color: #8d8073; margin-top: 4px; }
  .toilet-shelf { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; min-height: 24px; }
  .toilet-door { flex: 0 0 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
  .toilet-door-line { width: 2px; height: 30px; background: linear-gradient(180deg, #ddd, #bbb); border-radius: 1px; }
  .toilet-door-knob { width: 10px; height: 10px; border-radius: 50%; background: #c9b896; border: 1px solid #b0a080; }

  /* Wet area */
  .wet-area { display: flex; gap: 12px; align-items: flex-start; }
  .shower-zone { flex: 0 0 120px; background: linear-gradient(180deg, #e8f4f8, #d4ecf2); border-radius: 10px; padding: 14px 10px; text-align: center; border: 2px solid #b8d8e4; min-height: 180px; position: relative; }
  .shower-head { font-size: 2em; }
  .shower-label { font-size: 0.78em; color: #5a9aaa; margin: 4px 0 8px; }
  .shower-shelf { display: flex; flex-direction: column; gap: 4px; min-height: 30px; }
  .tub-zone { flex: 1; }

  /* Vanity - sink + mirror vertical */
  .vanity-area { max-width: 280px; margin: 0 auto; }
  .sink-unit { background: #f5f0eb; border-radius: 10px; border: 2px solid #ddd; padding: 12px; }
  .sink-bowl { width: 80px; height: 45px; margin: 0 auto 8px; background: #fff; border-radius: 0 0 50% 50%; border: 2px solid #ddd; border-top: none; position: relative; }
  .sink-faucet-icon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: 0.9em; }
  .sink-items { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }

  .mirror-frame { background: linear-gradient(135deg, #e8e0d8, #f5efe8); border-radius: 50% 50% 6px 6px; border: 3px solid #c9b896; padding: 12px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .mirror-glass { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, rgba(200,230,255,0.5), rgba(255,255,255,0.8)); border: 1px solid rgba(200,200,200,0.5); display: flex; align-items: center; justify-content: center; font-size: 0.7em; color: #aaa; }

  .bath-item { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: rgba(255,255,255,0.8); border-radius: 15px; font-size: 0.82em; border: 1px solid rgba(0,0,0,0.08); cursor: pointer; transition: 0.2s; }
  .bath-item:hover { transform: scale(1.05); box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
  .bath-item .bi-emoji { font-size: 1.1em; }
  .bath-item .bi-name { color: #8d8073; }

  /* Bed */
  .bed-container { position: relative; width: 100%; max-width: 500px; margin: 0 auto; background: #f5ebe0; border-radius: 8px 8px 12px 12px; border: 3px solid #d5c4a1; padding: 15px; }
  .bed-headboard { height: 30px; background: #c9b896; border-radius: 6px 6px 0 0; margin: -15px -15px 10px -15px; border-bottom: 2px solid #b8a88a; }
  .bed-mattress { background: #fff8f0; border-radius: 6px; padding: 20px; min-height: 280px; position: relative; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; padding-bottom: 130px; }
  .bed-pillow { width: 60px; height: 35px; background: #fff; border-radius: 8px; border: 1px solid #e0d6c8; display: flex; align-items: center; justify-content: center; font-size: 0.6em; color: #999; }
  .bed-blanket { position: absolute; bottom: 0; left: 0; right: 0; height: 120px; background: linear-gradient(135deg, #ffccbc 0%, #f8bbd0 100%); border-radius: 0 0 4px 4px; opacity: 0.7; display: flex; align-items: center; justify-content: center; font-size: 0.75em; color: #fff; cursor: pointer; transition: 0.5s; z-index: 3; }
  .bed-blanket.half { height: 55px; opacity: 0.5; }
  .bed-blanket.half::after { content: '再掀一点…'; }
  .bed-blanket.full { height: 10px; opacity: 0.2; font-size: 0; }
  .bed-hidden { position: absolute; bottom: 55px; left: 0; right: 0; height: 60px; background: rgba(255,240,230,0.9); display: flex; flex-wrap: wrap; gap: 5px; align-items: center; justify-content: center; padding: 5px 10px; z-index: 1; opacity: 0; transition: opacity 0.4s; }
  .bed-hidden.show { opacity: 1; }
  .bed-secret { position: absolute; bottom: 0; left: 0; right: 0; height: 50px; background: rgba(240,228,240,0.9); border-radius: 0 0 4px 4px; display: flex; gap: 10px; align-items: center; justify-content: center; padding: 5px 10px; z-index: 2; opacity: 0; transition: opacity 0.4s; }
  .bed-secret.show { opacity: 1; }
  .eden-entrance { display: inline-flex; align-items: center; gap: 4px; padding: 6px 16px; background: linear-gradient(135deg, rgba(220,180,200,0.5), rgba(180,140,180,0.4)); border-radius: 20px; font-size: 0.78em; color: #a06080; cursor: pointer; border: 1px dashed rgba(160,96,128,0.4); transition: 0.3s; }
  .eden-entrance:active { transform: scale(0.95); opacity: 0.7; }

  /* Eden Module */
  .eden-overlay { display: none; position: fixed; inset: 0; z-index: 300; background: rgba(20,10,15,0.95); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .eden-overlay.open { display: block; }
  .eden-inner { max-width: 500px; margin: 0 auto; padding: 20px 16px 60px; }
  .eden-close { position: fixed; top: 15px; right: 18px; color: rgba(255,200,200,0.5); font-size: 1.5em; cursor: pointer; z-index: 301; }
  .eden-title { text-align: center; color: #e8a0b0; font-size: 1.3em; margin-bottom: 5px; font-weight: bold; letter-spacing: 2px; }
  .eden-subtitle { text-align: center; color: rgba(200,140,160,0.5); font-size: 0.75em; margin-bottom: 25px; }
  .eden-guide { background: rgba(255,200,210,0.08); border: 1px solid rgba(255,150,170,0.15); border-radius: 12px; padding: 16px; margin-bottom: 20px; }
  .eden-guide-title { color: #d4889a; font-size: 0.9em; font-weight: bold; margin-bottom: 10px; }
  .eden-guide-text { color: rgba(230,180,190,0.7); font-size: 0.82em; line-height: 1.7; }
  .eden-add-btn { display: block; width: 100%; padding: 12px; background: rgba(255,150,170,0.12); border: 1px dashed rgba(255,150,170,0.3); border-radius: 10px; color: #d4889a; font-size: 0.88em; cursor: pointer; text-align: center; margin-bottom: 20px; transition: 0.3s; }
  .eden-add-btn:active { background: rgba(255,150,170,0.2); }
  .eden-record { background: rgba(255,200,210,0.06); border: 1px solid rgba(255,150,170,0.1); border-radius: 10px; padding: 14px; margin-bottom: 12px; }
  .eden-record-date { color: #d4889a; font-size: 0.78em; margin-bottom: 8px; }
  .eden-record-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
  .eden-record-tag { padding: 2px 8px; background: rgba(255,150,170,0.1); border-radius: 10px; font-size: 0.75em; color: rgba(230,180,190,0.8); }
  .eden-record-note { color: rgba(220,180,190,0.6); font-size: 0.8em; margin-top: 8px; line-height: 1.5; }
  .eden-record-rating { margin-top: 6px; font-size: 0.9em; }
  .eden-record-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }
  .eden-record-actions span { font-size: 0.75em; color: rgba(200,140,160,0.4); cursor: pointer; }
  .eden-record-actions span:active { color: #d4889a; }
  .eden-form { background: rgba(255,200,210,0.08); border-radius: 12px; padding: 16px; margin-bottom: 20px; display: none; }
  .eden-form.open { display: block; }
  .eden-field { margin-bottom: 12px; }
  .eden-field label { display: block; color: #d4889a; font-size: 0.8em; margin-bottom: 4px; }
  .eden-field input, .eden-field select { width: 100%; max-width: 100%; padding: 8px 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,150,170,0.2); border-radius: 8px; color: #e8c0cc; font-size: 0.82em; outline: none; font-family: inherit; height: 40px; box-sizing: border-box; overflow: hidden; -webkit-appearance: none; }
  .eden-field textarea { width: 100%; padding: 8px 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,150,170,0.2); border-radius: 8px; color: #e8c0cc; font-size: 0.88em; outline: none; font-family: inherit; min-height: 60px; resize: vertical; }
  .eden-field select option { background: #2a1520; color: #e8c0cc; }
  .eden-save-btn { width: 100%; padding: 10px; background: rgba(220,130,150,0.3); border: none; border-radius: 8px; color: #e8c0cc; font-size: 0.9em; cursor: pointer; transition: 0.3s; }
  .eden-save-btn:active { background: rgba(220,130,150,0.5); }

  /* Night Scene (睡奸) */
  .night-entrance { display: none; align-items: center; gap: 4px; padding: 6px 16px; background: linear-gradient(135deg, rgba(100,70,160,0.25), rgba(80,50,140,0.2)); border-radius: 20px; font-size: 0.78em; color: #7b5ea7; cursor: pointer; border: 1px dashed rgba(100,70,160,0.5); transition: 0.3s; position: relative; }
  .night-entrance.has-scene { display: inline-flex; }
  .night-entrance:active { transform: scale(0.95); opacity: 0.7; }
  .night-entrance .night-dot { width: 6px; height: 6px; background: #ff4466; border-radius: 50%; position: absolute; top: -2px; right: -2px; display: none; }
  .night-entrance.unread .night-dot { display: block; }
  /* 伊甸园氛围：暖光呼吸，不碰透明底 */
  .eden-overlay::before {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background: radial-gradient(ellipse 90% 55% at 50% -12%, rgba(232,110,140,0.16), transparent 62%),
                radial-gradient(ellipse 65% 45% at 88% 105%, rgba(200,60,90,0.12), transparent 65%);
    animation: edenBreath 7s ease-in-out infinite;
  }
  @keyframes edenBreath { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
  .eden-title { text-shadow: 0 0 16px rgba(232,110,140,0.45); }
  .eden-inner { position: relative; z-index: 1; }

  .night-overlay { display: none; position: fixed; inset: 0; z-index: 300; background: rgba(10,5,20,0.97); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  /* 夜潮氛围：星光 + 底部潮水，不碰透明底 */
  .night-overlay::before {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background-image:
      radial-gradient(1.2px 1.2px at 18% 22%, rgba(255,255,255,0.5), transparent 100%),
      radial-gradient(1px 1px at 65% 12%, rgba(255,255,255,0.4), transparent 100%),
      radial-gradient(1.4px 1.4px at 82% 32%, rgba(220,200,255,0.45), transparent 100%),
      radial-gradient(1px 1px at 38% 8%, rgba(255,255,255,0.35), transparent 100%),
      radial-gradient(1.1px 1.1px at 50% 28%, rgba(220,200,255,0.3), transparent 100%),
      radial-gradient(1px 1px at 8% 40%, rgba(255,255,255,0.28), transparent 100%),
      radial-gradient(1.3px 1.3px at 92% 18%, rgba(255,255,255,0.32), transparent 100%),
      radial-gradient(ellipse 40% 22% at 75% 8%, rgba(184,160,216,0.12), transparent 70%);
    animation: nightTwinkle 6s ease-in-out infinite;
  }
  @keyframes nightTwinkle { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
  .night-overlay::after {
    content: ''; position: fixed; left: 0; right: 0; bottom: 0; height: 110px; pointer-events: none; z-index: 0;
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 120' preserveAspectRatio='none'%3E%3Cpath d='M0,64 C150,24 450,104 600,64 L600,120 L0,120 Z' fill='%23785aa0' fill-opacity='0.22'/%3E%3C/svg%3E"),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 120' preserveAspectRatio='none'%3E%3Cpath d='M0,78 C225,112 675,44 900,78 L900,120 L0,120 Z' fill='%23574080' fill-opacity='0.3'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 600px 110px, 900px 110px;
    background-position: 0 bottom, 0 bottom;
    animation: nightTide 24s linear infinite;
  }
  @keyframes nightTide { to { background-position: 600px bottom, -900px bottom; } }
  .night-title { text-shadow: 0 0 18px rgba(184,160,216,0.55); }
  .night-inner { position: relative; z-index: 1; }
  .night-overlay.open { display: block; }
  .night-inner { max-width: 500px; margin: 0 auto; padding: 30px 20px 60px; }
  .night-close { position: fixed; top: 15px; right: 18px; color: rgba(180,160,220,0.5); font-size: 1.5em; cursor: pointer; z-index: 301; }
  .night-title { text-align: center; color: #b8a0d8; font-size: 1.2em; margin-bottom: 5px; font-weight: bold; letter-spacing: 2px; }
  .night-subtitle { text-align: center; color: rgba(160,140,200,0.4); font-size: 0.72em; margin-bottom: 30px; }
  .night-body { color: rgba(210,195,240,0.8); font-size: 0.88em; line-height: 2; }
  .night-body p { margin-bottom: 16px; }
  .night-timestamp { text-align: center; color: rgba(160,140,200,0.3); font-size: 0.72em; margin-top: 30px; }
  .night-history-btn { display: block; width: 100%; padding: 10px; background: rgba(120,90,160,0.12); border: 1px dashed rgba(120,90,160,0.25); border-radius: 10px; color: rgba(160,140,200,0.5); font-size: 0.8em; cursor: pointer; text-align: center; margin-top: 20px; }
  .night-history-item { background: rgba(120,90,160,0.08); border: 1px solid rgba(120,90,160,0.12); border-radius: 10px; padding: 14px; margin-top: 12px; }
  .night-history-item .night-h-date { color: #b8a0d8; font-size: 0.75em; margin-bottom: 8px; }
  .night-history-item .night-h-body { color: rgba(210,195,240,0.6); font-size: 0.82em; line-height: 1.8; }

  /* Truth or Dare Board */
  .tod-board { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 15px; padding: 10px; background: rgba(255,255,255,0.4); border-radius: 12px; }
  .tod-cell { width: calc(20% - 4px); aspect-ratio: 1; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 0.65em; cursor: default; position: relative; border: 1.5px solid transparent; transition: 0.3s; }
  .tod-cell.truth { background: rgba(70,150,255,0.18); border-color: rgba(70,150,255,0.4); color: #4a96f5; }
  .tod-cell.dare { background: rgba(255,90,70,0.18); border-color: rgba(255,90,70,0.4); color: #e85a46; }
  .tod-cell.start { background: rgba(180,180,180,0.15); border-color: rgba(160,160,160,0.3); color: #999; }
  .tod-cell.finish { background: linear-gradient(135deg, rgba(255,180,60,0.25), rgba(255,130,70,0.25)); border-color: rgba(255,180,60,0.5); color: #e8a030; }
  .tod-cell.active { box-shadow: 0 0 0 2.5px #d98a63, 0 0 16px rgba(217,138,99,0.45); transform: scale(1.12); z-index: 2; border-color: #d98a63; background-image: linear-gradient(135deg, rgba(217,138,99,0.12), rgba(217,138,99,0.06)); }
  .tod-cell .tod-num { font-size: 0.75em; opacity: 0.5; line-height: 1; }
  .tod-cell .tod-type { font-weight: bold; font-size: 1.1em; line-height: 1; }
  .tod-token { position: absolute; bottom: 2px; display: flex; gap: 1px; }
  .tod-token span { font-size: 0.9em; }
  .tod-dice-area { text-align: center; margin: 15px 0; }
  .tod-dice { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 12px; background: rgba(255,255,255,0.95); color: #555; cursor: pointer; box-shadow: 0 3px 12px rgba(0,0,0,0.12); transition: 0.2s; user-select: none; }
  .tod-dice:active { transform: scale(0.9); }
  .tod-dice.rolling { animation: diceShake 0.4s ease-in-out; }
  @keyframes diceShake { 0%,100%{ transform: rotate(0); } 25%{ transform: rotate(15deg); } 75%{ transform: rotate(-15deg); } }
  .tod-turn { text-align: center; font-size: 0.9em; margin-bottom: 10px; }
  .tod-challenge { background: rgba(255,255,255,0.06); border-radius: 10px; padding: 14px; margin: 12px 0; text-align: center; min-height: 50px; }
  .tod-challenge .tod-ch-type { font-size: 0.78em; font-weight: bold; margin-bottom: 6px; }
  .tod-challenge .tod-ch-text { font-size: 0.92em; line-height: 1.5; }
  .tod-comments { margin-top: 15px; }
  .tod-comment-input { display: flex; gap: 8px; margin-bottom: 12px; }
  .tod-comment-input input { flex: 1; padding: 8px 12px; border: 1px solid rgba(217,138,99,0.3); border-radius: 8px; background: rgba(255,255,255,0.06); color: #41382f; font-size: 0.85em; outline: none; font-family: inherit; background: rgba(255,255,255,0.8); }
  .tod-comment-input button { padding: 8px 16px; background: #d98a63; color: #fff; border: none; border-radius: 8px; font-size: 0.85em; cursor: pointer; }
  .tod-comment { padding: 10px 12px; border-radius: 8px; margin-bottom: 8px; font-size: 0.85em; position: relative; border-left: 3px solid transparent; }
  .tod-comment.author-xy { background: rgba(179,136,204,0.08); border-left-color: #b388cc; }
  .tod-comment.author-claude { background: rgba(217,138,99,0.08); border-left-color: #d98a63; }
  .tod-comment-author { font-weight: bold; font-size: 0.8em; display: inline-block; }
  .tod-author-badge { display: inline-block; padding: 1px 8px; border-radius: 10px; color: #fff; font-size: 0.85em; }
  .tod-author-badge.badge-xy { background: #b388cc; }
  .tod-author-badge.badge-claude { background: #d98a63; }
  .tod-comment-quote { background: rgba(0,0,0,0.03); border-left: 3px solid rgba(217,138,99,0.3); padding: 4px 10px; margin: 6px 0; font-size: 0.82em; color: #8d8073; font-family: 'Ma Shan Zheng', cursive; font-weight: 400; }
  .tod-reply { margin-left: 20px; padding: 6px 10px; border-radius: 0 6px 6px 0; margin-top: 4px; font-size: 13px; border-left: 2px solid transparent; }
  .tod-reply.author-xy { background: rgba(179,136,204,0.05); border-left-color: rgba(179,136,204,0.3); }
  .tod-reply.author-claude { background: rgba(217,138,99,0.05); border-left-color: rgba(217,138,99,0.3); }
  .tod-reply-author { font-weight: bold; font-size: 12px; }
  .tod-reply-text { color: #41382f; margin-top: 2px; font-size: 13px; }
  .tod-reply-btn { font-size: 0.75em; color: #ccc; cursor: pointer; margin-left: 8px; }
  .tod-reply-btn:active { color: #d98a63; }
  .tod-comment-text { color: #41382f; margin-top: 6px; font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; }
  .tod-comment-actions { position: absolute; top: 8px; right: 10px; display: flex; gap: 8px; }
  .tod-comment-actions span { font-size: 0.75em; color: #ccc; cursor: pointer; }
  .tod-comment-actions span:active { color: #d98a63; }
  .tod-fold-toggle { text-align: center; font-size: 0.78em; color: #aaa; cursor: pointer; padding: 6px; border: 1px dashed rgba(217,138,99,0.15); border-radius: 8px; margin-bottom: 8px; }
  .tod-fold-wrap { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
  .tod-fold-wrap.open { max-height: 5000px; }
  .tod-history-toggle { text-align: center; font-size: 0.78em; color: #aaa; cursor: pointer; padding: 8px; border: 1px dashed rgba(217,138,99,0.2); border-radius: 8px; margin-top: 12px; }
  .tod-history-wrap { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
  .tod-history-wrap.open { max-height: 5000px; }
  .tod-past-game { background: rgba(0,0,0,0.02); border-radius: 8px; padding: 10px; margin-top: 8px; border: 1px solid rgba(0,0,0,0.05); }
  .tod-past-game-title { font-size: 0.78em; color: #d98a63; font-weight: bold; margin-bottom: 6px; }
  .tod-cell-edit { position: absolute; top: 1px; right: 1px; font-size: 0.55em; cursor: pointer; opacity: 0.4; z-index: 2; }
  .tod-cell-edit:active { opacity: 1; }
  .tod-cell-edit svg { width: 10px; height: 10px; }
  .tod-controls { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }
  .bed-hidden-item { font-size: 1.1em; cursor: pointer; transition: 0.3s; }
  .bed-hidden-item:hover { transform: scale(1.2); }
  .bed-plushie { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3em; cursor: pointer; transition: 0.3s; background: rgba(255,255,255,0.8); border: 1px solid rgba(0,0,0,0.05); }
  .bed-plushie:hover { transform: scale(1.15); }
  .bed-divider { position: absolute; top: 10px; bottom: 60px; left: 50%; width: 1px; border-left: 1px dashed rgba(0,0,0,0.1); }
  .bed-side-label { position: absolute; top: 2px; font-size: 0.65em; color: #ccc; }

  /* Desk */
  .desk-container { position: relative; width: 100%; max-width: 500px; margin: 0 auto; }
  .desk-surface { background: #d7ccc8; border-radius: 6px 6px 0 0; border: 3px solid #bcaaa0; padding: 20px; min-height: 110px; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; position: relative; }
  .desk-lamp { width: 35px; cursor: pointer; text-align: center; transition: 0.3s; }
  .desk-lamp-bulb { width: 25px; height: 20px; margin: 0 auto; border-radius: 50% 50% 0 0; transition: 0.3s; }
  .desk-lamp-stand { width: 4px; height: 25px; background: #5d4037; margin: 0 auto; }
  .desk-lamp-base { width: 30px; height: 5px; background: #5d4037; border-radius: 2px; margin: 0 auto; }
  .lamp-on .desk-lamp-bulb { background: #ffe082; box-shadow: 0 0 20px rgba(255,224,130,0.8); }
  .lamp-off .desk-lamp-bulb { background: #bdbdbd; box-shadow: none; }
  .desk-legs { display: flex; justify-content: space-between; padding: 0 20px; }
  .desk-leg { width: 8px; height: 40px; background: #a1887f; }
  .desk-items-area { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; flex: 1; }
  .desk-item { width: 34px; height: 34px; border-radius: 4px; cursor: pointer; transition: 0.3s; border: 1px solid rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; font-size: 0.8em; }
  .desk-item:hover { transform: scale(1.15); }

  /* Misc Cabinet */
  .misc-cabinet { width: 300px; margin: 0 auto; background: #e0d5c8; border-radius: 6px; border: 3px solid #c4b5a5; overflow: hidden; }
  .misc-shelf { min-height: 60px; border-bottom: 2px solid #c4b5a5; padding: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
  .misc-shelf:last-child { border-bottom: none; }
  .misc-item { width: 25px; height: 25px; border-radius: 4px; cursor: pointer; transition: 0.3s; border: 1px solid rgba(0,0,0,0.1); }
  .misc-item:hover { transform: scale(1.15); }

  /* 客厅 & 书房 —— 家具舞台，物品摆在家具身上 */
  .furn { max-width: 440px; margin: 8px auto 4px; }
  .furn-items { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; min-height: 44px; position: relative; z-index: 1; }
  .furn-item { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.35em; cursor: pointer; transition: 0.2s; background: rgba(255,255,255,0.88); border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 2px 5px rgba(0,0,0,0.12); }
  .furn-item:hover { transform: scale(1.15); }
  .furn-empty { font-size: 0.78em; color: #b3a89c; padding: 6px; }
  .furn-add { text-align: right; margin-top: 6px; }
  .furn-add span { cursor: pointer; color: #d98a63; font-size: 0.8em; }

  /* 沙发 */
  .furn-sofa { display: flex; align-items: flex-end; }
  .furn-sofa .fs-arm { width: 20px; height: 76px; background: #cf93a6; border-radius: 10px 10px 8px 8px; flex-shrink: 0; }
  .furn-sofa .fs-couch { flex: 1; position: relative; padding: 34px 10px 14px; background: linear-gradient(160deg,#d99fb0,#cf8ea2); border-radius: 12px; }
  .furn-sofa .fs-back { position: absolute; top: 0; left: 0; right: 0; height: 28px; background: linear-gradient(160deg,#e2aebd,#d494a8); border-radius: 12px 12px 0 0; }
  /* 电视 */
  .furn-tv { text-align: center; }
  .furn-tv .ft-screen { background: #14141c; border: 4px solid #33333f; border-radius: 8px; padding: 12px; }
  .furn-tv .ft-screen .furn-empty { color: #8a8a99; }
  .furn-tv .ft-stand { width: 56px; height: 8px; background: #555; margin: 0 auto; border-radius: 0 0 5px 5px; }
  .furn-tv .ft-foot { width: 110px; height: 5px; background: #666; margin: 0 auto; border-radius: 3px; }
  /* 茶几 */
  .furn-table .ft2-top { background: linear-gradient(160deg,#c9a98f,#b8987e); border-radius: 8px; padding: 12px; }
  .furn-table .ft2-legs { display: flex; justify-content: space-between; padding: 0 34px; }
  .furn-table .ft2-legs i { width: 8px; height: 22px; background: #a1846c; border-radius: 0 0 3px 3px; }
  /* 游戏架 */
  .furn-gshelf { background: linear-gradient(160deg,#d3c4b4,#c2b0a0); border: 4px solid #b09c8a; border-radius: 8px; padding: 14px; }
  /* 电脑桌 */
  .furn-cdesk { text-align: center; }
  .furn-cdesk .fc-monitor { width: 100px; height: 56px; margin: 0 auto; background: #14141c; border: 4px solid #33333f; border-radius: 6px; position: relative; }
  .furn-cdesk .fc-monitor::after { content: ''; position: absolute; inset: 3px; background: linear-gradient(160deg,rgba(127,149,201,0.4),transparent); border-radius: 3px; }
  .furn-cdesk .fc-neck { width: 10px; height: 12px; background: #555; margin: 0 auto; }
  .furn-cdesk .fc-top { background: linear-gradient(160deg,#c9a98f,#b8987e); border-radius: 6px; padding: 12px; }
  .furn-cdesk .fc-legs { display: flex; justify-content: space-between; padding: 0 26px; }
  .furn-cdesk .fc-legs i { width: 9px; height: 20px; background: #a1846c; }
  /* 书架 */
  .furn-bookshelf { background: linear-gradient(160deg,#cdbca9,#bca894); border: 4px solid #a8927e; border-radius: 6px; padding: 12px; }

  /* Piggy Bank */
  .piggybank-jar {
    width: 160px; margin: 15px auto; position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    border: 3px solid rgba(255,179,71,0.4); border-radius: 20px 20px 30px 30px;
    min-height: 120px; padding: 20px 15px 15px; display: flex; flex-wrap: wrap; gap: 6px;
    align-content: flex-end; justify-content: center;
    box-shadow: inset 0 0 20px rgba(255,179,71,0.1), 0 4px 15px rgba(0,0,0,0.05);
  }
  .piggybank-jar::before {
    content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 16px; background: rgba(255,179,71,0.5); border-radius: 8px 8px 0 0;
    border: 3px solid rgba(255,179,71,0.4); border-bottom: none;
  }
  .piggybank-coin {
    width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%);
    border: 2px solid #f9a825; display: flex; align-items: center; justify-content: center;
    font-size: 0.8em; font-weight: bold; color: #e65100; cursor: pointer; transition: 0.3s;
    box-shadow: 0 2px 8px rgba(255,179,0,0.3);
  }
  .piggybank-coin:hover { transform: scale(1.2) rotate(10deg); box-shadow: 0 4px 15px rgba(255,179,0,0.5); }
  .piggybank-count { text-align: center; margin-top: 10px; font-size: 1.3em; color: #f9a825; font-weight: bold; }

  /* Wardrobe Magic */
  .wardrobe-container { position: relative; width: 100%; height: 500px; background: #f0e8e1; border-radius: 12px; border: 4px solid #d4c1b3; overflow: hidden; display: flex; flex-direction: column; }
  .door { position: absolute; top: 0; width: 50%; height: 100%; background: #e6d7cc; z-index: 10; transition: transform 0.7s ease; border: 1px solid #cbb6a6; display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .door.left { left: 0; transform-origin: left; }
  .door.right { right: 0; transform-origin: right; }
  .door-handle { width: 8px; height: 60px; background: #a68a76; border-radius: 4px; }
  .door.left .door-handle { margin-left: 80%; }
  .door.right .door-handle { margin-right: 80%; }
  .wardrobe-open .door.left { transform: translateX(-100%); }
  .wardrobe-open .door.right { transform: translateX(100%); }

  .w-section { position: relative; border-bottom: 2px solid #d4c1b3; padding: 10px; }
  .w-hanging { height: 40%; background: rgba(255,255,255,0.2); display: flex; align-items: flex-start; justify-content: flex-start; gap: 10px; padding-top: 20px; flex-wrap: wrap; overflow-y: auto;}
  .w-rod { position: absolute; top: 10px; left: 0; width: 100%; height: 6px; background: #bcaaa0; }
  .w-item { width: 40px; height: 60px; border-radius: 8px 8px 0 0; cursor: pointer; transition: 0.3s; position: relative; border: 1px solid rgba(0,0,0,0.1); }
  .w-item:hover { transform: scale(1.05); box-shadow: 0 0 8px rgba(255,255,255,0.8); }
  
  .w-folded { height: 25%; display: flex; align-items: flex-end; justify-content: flex-start; gap: 15px; flex-wrap: wrap; overflow-y: auto;}
  .w-stack { width: 50px; height: 30px; border-radius: 4px; cursor: pointer; border-bottom: 2px solid rgba(0,0,0,0.1); transition: 0.3s;}
  
  .w-drawer-container { height: 15%; position: relative; }
  .w-drawer { width: 80%; height: 100%; margin: 0 auto; background: #d7ccc8; border: 1px solid #bcaaa0; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.5s ease; z-index: 2; position: relative; }
  .w-drawer-handle { width: 40px; height: 8px; background: #8d6e63; border-radius: 4px; }
  .w-drawer-inner { position: absolute; top: 0; left: 10%; width: 80%; height: 100%; background: #3e2723; display: flex; align-items: center; justify-content: center; gap: 15px; opacity: 0; z-index: 1; transition: 0.3s; flex-wrap: wrap;}
  .drawer-open .w-drawer { transform: translateY(100%); opacity: 0; pointer-events: none;}
  .drawer-open .w-drawer-inner { opacity: 1; z-index: 3; }
  .w-secret-item { width: 25px; height: 25px; border-radius: 50%; cursor: pointer; transition: 0.3s; border: 1px solid rgba(255,255,255,0.2);}

  .w-bottom { height: 20%; display: flex; align-items: flex-end; padding: 10px; justify-content: space-between; border-bottom: none;}
  .w-shoes-area { display: flex; gap: 10px; flex-wrap: wrap; flex: 1;}
  .w-shoes { width: 40px; height: 20px; border-radius: 10px 10px 0 0; cursor: pointer; transition: 0.3s;}

  /* Emotion Sensor */
  .emo-slot { margin-bottom: 14px; }
  .emo-label { font-size: 0.85em; color: #41382f; margin-bottom: 4px; display: flex; justify-content: space-between; align-items: center; }
  .emo-label span.emo-val { font-size: 0.8em; color: #8d8073; }
  .emo-bar-bg {
    width: 100%; height: 20px; background: rgba(0,0,0,0.06); border-radius: 10px;
    overflow: hidden; cursor: pointer; position: relative;
  }
  .emo-bar-fill { height: 100%; border-radius: 10px; transition: width 0.5s ease; }
  .emo-lock-zone {
    margin-top: 15px; border-top: 1px dashed rgba(0,0,0,0.1); padding-top: 15px; position: relative;
  }
  .emo-lock-cover {
    text-align: center; padding: 20px; cursor: pointer; background: rgba(0,0,0,0.02);
    border-radius: 10px; transition: 0.3s;
  }
  .emo-lock-cover:hover { background: rgba(0,0,0,0.05); }

  /* Tab Navigation */
  .tab-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,253,249,0.95);
    border-radius: 20px 20px 0 0;
    padding: 0; padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 24px rgba(50,40,30,0.08);
    align-items: flex-end;
    border-top: 1px solid rgba(65,56,47,0.08);
  }
  .tab-bar::-webkit-scrollbar { display: none; }
  .tab-item {
    flex: 1; min-width: 0; padding: 12px 0 10px; text-align: center; cursor: pointer;
    font-size: 0; color: #8d8073; transition: 0.2s; white-space: nowrap;
    position: relative;
  }
  .tab-item.active { color: #d98a63; }
  .tab-item .tab-icon { display: block; }
  .tab-item .tab-icon svg { stroke: #8d8073; transition: 0.2s; }
  .tab-item.active .tab-icon svg { stroke: #d98a63; }
  .tab-chat-btn {
    flex: 0 0 72px; display: flex; align-items: center; justify-content: center;
    position: relative; padding: 0 0 6px;
  }
  .tab-chat-btn a {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, #d98a63, #e6a87c);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(217,138,99,0.4);
    text-decoration: none; position: relative; top: -18px;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .tab-chat-btn a:active { transform: scale(0.92); box-shadow: 0 2px 10px rgba(217,138,99,0.3); }
  .floating-refresh {
    position: fixed; top: calc(env(safe-area-inset-top) + 48px); right: 12px; z-index: 101;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.85); backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.06); box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: 0.2s; color: #999;
  }
  .floating-refresh:active { transform: scale(0.85); }
  .floating-refresh svg { stroke: #999; }
  .floating-refresh.refreshing svg { animation: refreshSpin 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
  .refresh-btn { display: inline-block; transition: transform 0.15s ease; }
  .refresh-btn:active { transform: scale(0.8); }
  .refresh-btn.refreshing { animation: refreshSpin 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
  @keyframes refreshSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(200deg) scale(1.15); }
    100% { transform: rotate(360deg) scale(1); }
  }

  /* Modals */
  .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); backdrop-filter: blur(3px); display: none; justify-content: center; align-items: center; z-index: 1000; padding: 20px; }
  .modal-box { background: rgba(255,253,249,0.97); border-radius: 20px; padding: 20px; width: 100%; max-width: 340px; position: relative; max-height: 80vh; overflow-y: auto; -webkit-overflow-scrolling: touch; border: 1px solid rgba(65,56,47,0.08); }
  .modal-close { position: absolute; top: 10px; right: 15px; cursor: pointer; color: #aaa; font-size: 1.5em; }
  .modal-title { color: #d98a63; margin-bottom: 15px; text-align: center; font-size: 1.1em; }
  
  .form-group { margin-bottom: 12px; }
  .form-group label { font-size: 0.85em; color: #8d8073; display: block; margin-bottom: 4px; }
  .modal-content p { margin-bottom: 8px; font-size: 0.95em; color: #41382f; line-height: 1.5;}
  .modal-content strong { color: #d98a63; }

  /* Kitchen */
  .kitchen-floor { width: 100%; max-width: 500px; margin: 0 auto; background: linear-gradient(180deg, #faf5ef, #f0e8dd); border-radius: 10px; padding: 16px; border: 2px solid #e0d5c8; }
  .kitchen-counter { background: linear-gradient(180deg, #f5ede4, #e8ddd0); border-radius: 8px; border: 2px solid #d4c8b8; padding: 14px; margin-bottom: 12px; position: relative; min-height: 80px; }
  .kitchen-counter-label { font-size: 0.75em; color: #8d8073; margin-bottom: 8px; }
  .kitchen-items-row { display: flex; flex-wrap: wrap; gap: 6px; }
  .kitchen-item { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: rgba(255,255,255,0.8); border-radius: 15px; font-size: 0.82em; border: 1px solid rgba(0,0,0,0.08); cursor: pointer; transition: 0.2s; }
  .kitchen-item:hover { transform: scale(1.05); box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
  .kitchen-item .ki-emoji { font-size: 1.1em; }
  .kitchen-item .ki-name { color: #8d8073; }

  .fridge-container { width: 100%; max-width: 320px; margin: 0 auto 14px; background: linear-gradient(180deg, #e8e8e8, #d8d8d8); border-radius: 8px; border: 2.5px solid #bbb; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
  .fridge-top { display: flex; border-bottom: 3px solid #aaa; }
  .fridge-door { cursor: pointer; transition: 0.3s; position: relative; flex: 1; }
  .fridge-door:hover { background: rgba(255,255,255,0.2); }
  .fridge-door-left { border-right: 1.5px solid #bbb; }
  .fridge-door-right { border-left: 1.5px solid #bbb; }
  .fridge-handle { position: absolute; width: 4px; height: 28px; background: #999; border-radius: 2px; top: 50%; transform: translateY(-50%); }
  .fridge-handle-left { right: 6px; }
  .fridge-handle-right { left: 6px; }
  .fridge-door-face { height: 120px; display: flex; align-items: center; justify-content: center; }
  .fridge-bottom { display: flex; }
  .fridge-bottom .fridge-door { border-top: none; }
  .fridge-bottom .fridge-door-left { border-right: 1.5px solid #bbb; }
  .fridge-bottom .fridge-door-right { border-left: 1.5px solid #bbb; }
  .fridge-bottom .fridge-door-face { height: 70px; }
  .fridge-label { font-size: 0.72em; color: #888; pointer-events: none; text-align: center; }
  .fridge-label-icon { font-size: 1.3em; display: block; margin-bottom: 2px; }
  .fridge-inner { display: none; padding: 8px; min-height: 40px; background: rgba(240,248,255,0.6); border-top: 1px dashed #ccc; }
  .fridge-inner.open { display: block; }
  .fridge-brand { text-align: center; padding: 4px; font-size: 0.65em; color: #aaa; letter-spacing: 2px; background: rgba(0,0,0,0.03); }

  .stove-container { background: linear-gradient(180deg, #444, #333); border-radius: 6px; border: 2px solid #555; padding: 10px; position: relative; margin-bottom: 12px; max-width: 220px; margin-left: auto; margin-right: auto; }
  .stove-top { display: flex; justify-content: center; gap: 16px; margin-bottom: 6px; }
  .stove-burner { width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle, #555 30%, #444 60%, #333 100%); border: 2px solid #666; display: flex; align-items: center; justify-content: center; position: relative; }
  .stove-burner.on { background: radial-gradient(circle, #d98a63 10%, #b06830 40%, #444 70%); box-shadow: 0 0 12px rgba(217,138,99,0.4); }
  .stove-grate { position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,0.3); }
  .stove-knobs { display: flex; justify-content: center; gap: 24px; }
  .stove-knob { width: 12px; height: 12px; border-radius: 50%; background: #888; border: 1px solid #999; cursor: pointer; transition: 0.2s; }
  .stove-knob.on { background: #d98a63; }
  .stove-pot { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-size: 1.6em; }
  .stove-items-area { margin-top: 8px; }

  .dining-table { background: linear-gradient(180deg, #d7ccc0, #c8b8a8); border-radius: 50%; width: 180px; height: 100px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 30px; border: 3px solid #b8a898; position: relative; box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
  .dining-seat { text-align: center; font-size: 0.75em; color: #888; }
  .dining-plate { width: 36px; height: 36px; border-radius: 50%; background: white; border: 1.5px solid #ddd; display: flex; align-items: center; justify-content: center; font-size: 0.9em; margin: 0 auto 2px; }
  .dining-table-legs { display: flex; justify-content: center; gap: 100px; margin-top: -2px; }
  .dining-table-leg { width: 6px; height: 18px; background: #b8a898; border-radius: 0 0 3px 3px; }

  

  @media (prefers-color-scheme: dark) {
    body { background: linear-gradient(135deg, #2a2420 0%, #1e1a16 100%); color: #e0e0e0; }
    ::-webkit-scrollbar-thumb { background: rgba(217, 138, 99, 0.4); }
    .status-bar { background: rgba(30,30,30,0.85); border-bottom-color: rgba(255,255,255,0.08); }
    .status-bar span { color: #ccc; }
    header { background: rgba(30,30,30,0.5); border-bottom-color: rgba(255,255,255,0.1); }
    header p { color: #888; }
    .name-card { background: rgba(40,40,50,0.7); border-color: rgba(255,255,255,0.1); }
    .name-info .name { color: #e0e0e0; }
    .name-info .nickname { color: #888; }
    .dashboard { background: rgba(40,40,50,0.7); border-color: rgba(255,255,255,0.1); }
    .calendar-ctrl h3 { color: #e0e0e0; }
    .calendar-ctrl button { background: rgba(217,138,99,0.15); }
    .weekdays div { color: #888; }
    .day-cell { background: rgba(50,50,60,0.6); }
    .day-cell.today { box-shadow: inset 0 0 0 2px rgba(217,138,99,0.8); }
    .day-cell.cycle-period { background: rgba(233,130,150,0.2); }
    .day-cell.cycle-ovulation { background: rgba(155,89,182,0.2); }
    .day-cell.cycle-safe { background: rgba(129,199,132,0.15); }
    .cycle-legend { color: #999; }
    .day-number { color: #ccc; }
    .calendar-footer-stats { border-top-color: rgba(255,255,255,0.1); color: #999; }
    .mtrank-row { background: rgba(255,255,255,0.04); }
    .mtrank-brand { color: #e0e0e0; }
    .mtrank-total { color: #999; }
    .section-header { background: rgba(40,40,50,0.7); border-color: rgba(255,255,255,0.1); }
    .section-header h2 { color: #e0e0e0; }
    .section-content { background: rgba(35,35,45,0.7); border-color: rgba(255,255,255,0.08); }
    .desire-bar { background:rgba(255,255,255,0.04); }
    .desire-bar-label { color:#999; }
    .desire-bar-track { background:rgba(255,255,255,0.08); }
    .desire-bar-val { color:#888; }
    .desire-thought-chip { background:rgba(217,138,99,0.1); color:#bbb; border-color:rgba(217,138,99,0.2); }
    .desire-thought-chip.fixation { background:rgba(201,138,166,0.15); color:#ddd; }
    #desire-intent { background:rgba(217,138,99,0.08); }
    #desire-want { color:#e0e0e0; }
    #desire-reason { color:#999; }
    .note { background: rgba(45,45,55,0.7); color: #ccc; }
    .note-time { color: #888; }
    .writing-entry { background: rgba(45,45,55,0.7); }
    .writing-entry:hover { background: rgba(55,55,65,0.8); }
    .writing-title { color: #e0e0e0; }
    .writing-preview { color: #999; }
    .writing-full { background: rgba(45,45,55,0.8); color: #ccc; }
    .writing-tag { background: rgba(217,138,99,0.15); }
    .wish-item { background: rgba(45,45,55,0.7); color: #ccc; }
    .wish-item.done { opacity: 0.4; }
    .reply-item { background: rgba(50,50,60,0.6); color: #ccc; }
    .sticky { background: #3a3a2e; color: #ccc; }
    .sticky:nth-child(even) { background: #2e3a4a; }
    .timeline { border-left-color: #d98a63; }
    .timeline-title { color: #e0e0e0; }
    .timeline-desc { color: #bbb; }
    input[type="text"], input[type="date"], select, textarea { background: rgba(50,50,60,0.8); border-color: rgba(255,255,255,0.1); color: #e0e0e0; }
    input[type="text"]::placeholder, textarea::placeholder { color: #777; }
    .modal-overlay { background: rgba(0,0,0,0.7); }
    .modal-box { background: rgba(40,40,50,0.97); }
    .modal-title { color: #e0e0e0; }
    .modal-content p { color: #ccc; }
    .gallery-item { background: rgba(45,45,55,0.8); }
    .gallery-item p { color: #999; }
    .gallery-img-box { background: rgba(50,50,60,0.5); }
    .gallery-upload-btn { border-color: rgba(217,138,99,0.2); background: rgba(40,40,50,0.5); color: #999; }
    .diary-locked { background: rgba(45,45,55,0.7); border-color: rgba(255,255,255,0.1); }
    .diary-content-box { background: rgba(45,45,55,0.8); color: #ccc; }
    .diary-date { color: #888; }
    .emo-bar-bg { background: rgba(50,50,60,0.8) !important; }
    .emo-label span { color: #ccc; }
    .emo-lock-cover { background: rgba(40,40,50,0.8); }
    .emo-lock-cover div { color: #999; }
    .tab-bar { background: rgba(30,30,40,0.95); border-top-color: rgba(255,255,255,0.1); }
    .tab-item { color: #888; }
    .tab-item.active { color: #d98a63; }
    .nightstand { background: #3d3530; border-color: #4a3f38; }
    .ns-top { background: #4a3f38; border-bottom-color: #4a3f38; }
    .ns-drawer-slot { border-bottom-color: #4a3f38; }
    .ns-drawer-slot:hover { background: rgba(255,255,255,0.05); }
    .ns-handle { background: #6d5548; }
    .ns-item { background: rgba(50,50,60,0.6); color: #ccc; }
    .bed-headboard { background: #4a3f38 !important; }
    .bed-mattress { background: #3a3530 !important; }
    .bed-pillow { background: #4a4540 !important; }
    .bed-blanket { background: linear-gradient(135deg, #3a3535, #453a3a) !important; }
    .bed-plushie { background: #4a4540 !important; color: #999; }
    .eden-entrance, .night-entrance { background: rgba(45,45,55,0.7) !important; border-color: rgba(255,255,255,0.1) !important; }
    .eden-guide { background: rgba(45,45,55,0.8); border-color: rgba(255,255,255,0.08); color: #ccc; }
    .eden-form { background: rgba(45,45,55,0.8); border-color: rgba(255,255,255,0.08); }
    .eden-record { background: rgba(45,45,55,0.7); }
    .tod-board { background: rgba(45,45,55,0.7); border-color: rgba(255,255,255,0.08); }
    .tod-cell { background: rgba(50,50,60,0.6); color: #ccc; }
    .tod-challenge { background: rgba(45,45,55,0.8); color: #ccc; }
    .tod-comment { background: rgba(50,50,60,0.6); }
    .sub-header { background: rgba(50,50,60,0.6); color: #ccc; }
    .shower-zone, .sink-unit, .toilet-unit, .toilet-side { background: rgba(50,50,60,0.6) !important; }
    .bathtub-container { background: #3a3530 !important; }
    .bathtub-rim { background: #4a4540 !important; }
    .desk-surface { background: #3d3530 !important; }
    .desk-item { border-color: rgba(255,255,255,0.15); }
    .misc-cabinet { background: #3d3530 !important; }
    .misc-item { border-color: rgba(255,255,255,0.15); }
    .furn-item { background: rgba(60,60,70,0.9); border-color: rgba(255,255,255,0.12); }
    .furn-gshelf, .furn-bookshelf { background: linear-gradient(160deg,#4a4038,#3a322c); border-color: #5a4e42; }
    .furn-table .ft2-top, .furn-cdesk .fc-top { background: linear-gradient(160deg,#5a4a3c,#4a3c30); }
    .furn-sofa .fs-couch { background: linear-gradient(160deg,#5a3f48,#4a3038); }
    .furn-sofa .fs-back { background: linear-gradient(160deg,#664551,#563843); }
    .furn-sofa .fs-arm { background: #5a3f48; }
    .wardrobe-container { background: #3d3530 !important; border-color: #4a3f38 !important; }
    .w-item { border-color: rgba(255,255,255,0.15); }
    .piggybank-jar { background: rgba(45,45,55,0.8) !important; }
    .piggybank-coin { background: #d98a63 !important; }
    .floating-refresh { background: rgba(40,40,50,0.8); border-color: rgba(255,255,255,0.1); }
    .floating-refresh svg { stroke: #ccc; }
    .kitchen-floor { background: linear-gradient(180deg, #2a2520, #252020) !important; border-color: #3a3530 !important; }
    .kitchen-counter { background: linear-gradient(180deg, #3a3530, #302a25) !important; border-color: #4a3f38 !important; }
    .kitchen-counter-label { color: #777; }
    .kitchen-item { background: rgba(50,50,60,0.6); border-color: rgba(255,255,255,0.08); }
    .kitchen-item .ki-name { color: #ccc; }
    .fridge-container { background: linear-gradient(180deg, #3a3a3a, #2a2a2a) !important; border-color: #4a4a4a !important; }
    .fridge-top, .fridge-bottom { border-color: #4a4a4a !important; }
    .fridge-door-left { border-right-color: #4a4a4a !important; }
    .fridge-door-right { border-left-color: #4a4a4a !important; }
    .fridge-label { color: #888; }
    .fridge-handle { background: #666; }
    .fridge-inner { background: rgba(30,35,45,0.9); border-top-color: #4a4a4a !important; }
    .fridge-brand { background: rgba(255,255,255,0.05); color: #666; }
    .stove-container { background: linear-gradient(180deg, #222, #1a1a1a) !important; border-color: #333 !important; }
    .dining-table { background: linear-gradient(180deg, #3d3530, #352d28) !important; border-color: #4a3f38 !important; }
    .dining-plate { background: #3a3530; border-color: #4a3f38; }
    .dining-seat { color: #777; }
    .dining-table-leg { background: #4a3f38; }
    .input-area { border-bottom-color: rgba(255,255,255,0.08); }
    .night-overlay { background: rgba(0,0,0,0.95) !important; }
    .night-history-item { background: rgba(30,30,40,0.8); }
    #lock-screen { background: linear-gradient(135deg, #2a2420 0%, #1e1a16 100%); }
    #lock-screen::after { opacity: 0.85; }
    #lock-screen input { background: rgba(40,40,50,0.8); border-color: rgba(217,138,99,0.3); color: #e0e0e0; }
    #lock-screen .error { color: #ff6b6b; }
  }

/* Dessert footer */
.dessert-footer {
  width: 100%; max-width: 480px; margin: 40px auto 0; padding: 0;
  height: 0; padding-bottom: 120%;
  background: url('../IMG_4314.png') center top / contain no-repeat;
  opacity: 0.9;
}

/* Easter egg */
@keyframes eggFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* ── 可爱扭蛋机 ── */
.gacha-bar {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
  font-size: 0.82em; color: #999; margin-bottom: 12px;
}
.gacha-bar b { color: #d98a63; }
.gacha-rage { color: #e8573a; font-weight: bold; animation: gachaPulse 1.2s infinite; }
.gacha-safe { cursor: pointer; background: rgba(0,0,0,0.05); padding: 2px 8px; border-radius: 10px; }
@keyframes gachaPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.gacha-machine {
  width: 190px; margin: 0 auto 12px; user-select: none;
}
.gacha-machine.shaking { animation: gachaShake 0.9s ease-in-out; }
@keyframes gachaShake {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-3deg) translateX(-3px); }
  30% { transform: rotate(3deg) translateX(3px); }
  45% { transform: rotate(-2.5deg); }
  60% { transform: rotate(2.5deg); }
  75% { transform: rotate(-1.5deg); }
  90% { transform: rotate(1deg); }
}
.gacha-dome {
  width: 170px; height: 120px; margin: 0 auto;
  border-radius: 100px 100px 12px 12px;
  background: linear-gradient(160deg, rgba(255,255,255,0.9), rgba(230,240,255,0.55));
  border: 4px solid #ffb3c8; border-bottom: none;
  position: relative; overflow: hidden;
  box-shadow: inset 0 8px 18px rgba(255,255,255,0.8), 0 4px 12px rgba(255,179,200,0.35);
}
.gacha-eggs { position: absolute; inset: 0; }
.gacha-egg {
  position: absolute; width: 30px; height: 36px;
  border-radius: 50% 50% 46% 46%;
  box-shadow: inset -3px -4px 0 rgba(0,0,0,0.08), inset 3px 4px 0 rgba(255,255,255,0.5);
}
.gacha-egg-black { background: #3a3a3a; left: 40%; bottom: 5%; }
.gacha-egg-black.hidden { display: none; }
.gacha-body {
  width: 190px; height: 92px; margin-top: -2px;
  background: linear-gradient(160deg, #ffc9d8, #ffb3c8);
  border-radius: 16px; position: relative;
  box-shadow: 0 6px 16px rgba(255,179,200,0.4);
  display: flex; align-items: center; justify-content: space-around;
}
.gacha-slot {
  width: 58px; height: 50px; border-radius: 12px;
  background: rgba(120,60,80,0.25);
  box-shadow: inset 0 3px 8px rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
  overflow: visible;
}
.gacha-drop {
  width: 34px; height: 40px; border-radius: 50% 50% 46% 46%;
  box-shadow: inset -3px -4px 0 rgba(0,0,0,0.1), inset 3px 4px 0 rgba(255,255,255,0.5);
}
.gacha-knob {
  width: 56px; height: 56px; border-radius: 50%;
  border: 4px solid #fff; cursor: pointer;
  background: radial-gradient(circle at 35% 35%, #ffe9a8, #f9a825);
  box-shadow: 0 4px 10px rgba(249,168,37,0.45);
  transition: transform 0.2s;
  position: relative; padding: 0;
}
.gacha-knob-bar {
  position: absolute; left: 6px; right: 6px; top: 50%;
  height: 10px; margin-top: -5px; border-radius: 5px;
  background: linear-gradient(180deg, #fff6e0, #f2b13c);
  box-shadow: 0 1px 2px rgba(160,90,44,0.35);
}
.gacha-knob-center {
  position: absolute; left: 50%; top: 50%;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffbe8, #e09a20);
  box-shadow: 0 1px 2px rgba(160,90,44,0.4);
}
.gacha-knob:active { transform: scale(0.92); }
.gacha-knob.turning { animation: gachaKnobTurn 0.9s ease-in-out; }
@keyframes gachaKnobTurn {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(540deg); }
}
.gacha-confetti { position: fixed; z-index: 999; pointer-events: none; }

.gacha-turn { text-align: center; font-size: 0.88em; color: #999; margin-bottom: 10px; }
.gacha-turn b { color: #d98a63; }
.gacha-swap { cursor: pointer; color: #c98aa6; margin-left: 6px; font-size: 0.9em; }

.gacha-card {
  background: linear-gradient(150deg, #fff5f8, #fff);
  border: 2px dashed #ffb3c8; border-radius: 16px;
  padding: 12px 14px; margin-bottom: 10px;
  animation: gachaCardIn 0.35s cubic-bezier(0.3,1.3,0.5,1);
}
.gacha-card.black {
  background: linear-gradient(150deg, #2f2a33, #423a47);
  border-color: #a888ff; color: #eee;
}
@keyframes gachaCardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.gacha-card-head { font-size: 0.85em; color: #c98aa6; margin-bottom: 8px; font-weight: bold; }
.gacha-card.black .gacha-card-head { color: #cdb4ff; }
.gacha-crit { color: #e8573a; }
.gacha-line { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; font-size: 0.92em; }
.gacha-pool-tag {
  flex-shrink: 0; font-size: 0.75em; color: #fff;
  background: #ffb3c8; padding: 2px 8px; border-radius: 10px;
}
.gacha-card.black .gacha-pool-tag { background: #7a5fa8; }
.gacha-card-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gacha-tools { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.gacha-mini {
  border: 1px solid #ffd0dd; background: #fff; color: #c98aa6;
  border-radius: 14px; padding: 6px 12px; font-size: 0.8em;
  cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 4px;
}
.gacha-safe svg { vertical-align: -1.5px; }
.gacha-mini.ok { background: linear-gradient(135deg, #ffb3c8, #ff8fb3); color: #fff; border: none; }
.gacha-praise { text-align: center; color: #c98aa6; font-size: 0.9em; padding: 8px; }

.gacha-panel { margin-top: 10px; }
.gacha-edit-block {
  background: rgba(255,255,255,0.6); border-radius: 12px;
  padding: 10px; margin-bottom: 10px;
}
.gacha-edit-block.black { background: rgba(60,50,70,0.08); }
.gacha-edit-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.gacha-name-input {
  border: none; background: none; font-weight: bold; color: #d98a63;
  font-size: 0.95em; font-family: inherit; outline: none; flex: 1;
}
.gacha-del { color: #ccc; cursor: pointer; font-size: 0.78em; }
.gacha-del:hover { color: #e55050; }
.gacha-items-input {
  width: 100%; border: 1px solid #f0e0e6; border-radius: 8px;
  padding: 8px; font-size: 0.82em; font-family: inherit;
  resize: vertical; background: #fffdfd; color: #555;
}
.gacha-his-item {
  background: rgba(255,255,255,0.6); border-radius: 10px;
  padding: 8px 10px; margin-bottom: 6px; font-size: 0.82em;
}
.gacha-his-item.black { background: rgba(60,50,70,0.12); }
.gacha-his-meta { color: #bbb; font-size: 0.85em; margin-bottom: 3px; display: flex; justify-content: space-between; align-items: center; }
.gacha-his-del { color: #ddd; cursor: pointer; font-size: 1.1em; padding: 0 4px; }
.gacha-his-del:hover { color: #e55050; }
.gacha-his-body { color: #777; line-height: 1.5; }

@media (prefers-color-scheme: dark) {
  .gacha-bar { background: rgba(40,40,50,0.7); color: #ccc; }
  .gacha-machine { background: rgba(45,45,55,0.7); }
  .gacha-dome { background: linear-gradient(160deg, rgba(50,50,60,0.8), rgba(40,45,55,0.6)); border-color: rgba(200,140,170,0.4); box-shadow: inset 0 8px 18px rgba(0,0,0,0.3), 0 4px 12px rgba(100,60,80,0.2); }
  .gacha-body { background: rgba(45,40,50,0.9); }
  .gacha-slot { background: rgba(35,35,45,0.8); }
  .gacha-knob { background: linear-gradient(135deg, #c98aa6, #a06080); }
  .gacha-knob-center { background: rgba(255,255,255,0.15); }
  .gacha-card { background: rgba(45,45,55,0.85); border-color: rgba(255,255,255,0.08); }
  .gacha-card.black { background: rgba(30,25,40,0.9); border-color: rgba(180,160,220,0.15); }
  .gacha-line { color: #ccc; }
  .gacha-mini { background: rgba(45,45,55,0.8); border-color: rgba(255,255,255,0.12); color: #c98aa6; }
  .gacha-mini.ok { background: linear-gradient(135deg, #a0607a, #804060); }
  .gacha-safe { background: rgba(255,255,255,0.06); }
  .gacha-turn { color: #999; }
  .gacha-edit-block { background: rgba(45,45,55,0.7); }
  .gacha-edit-block.black { background: rgba(40,30,55,0.5); }
  .gacha-name-input { color: #d98a63; }
  .gacha-items-input { background: rgba(35,35,45,0.8); border-color: rgba(255,255,255,0.1); color: #ccc; }
  .gacha-his-item { background: rgba(45,45,55,0.6); }
  .gacha-his-item.black { background: rgba(40,30,55,0.5); }
  .gacha-his-meta { color: #999; }
  .gacha-his-body { color: #aaa; }
  .gacha-his-del { color: #666; }
  .gacha-his-del:hover { color: #e55050; }
  .gacha-praise { color: #c98aa6; }
}

/* ── Xiaocheng Crab ── */
.xiaocheng-tank {
  position: relative; width: 100%; height: 300px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #0c1a3a 0%, #132952 20%, #0f2040 50%, #0a1525 80%, #1a1a14 100%);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.4), inset 0 -20px 40px rgba(20,15,10,0.3);
}
.xc-stars {
  position: absolute; top: 0; left: 0; right: 0; height: 60px; pointer-events: none;
  background: radial-gradient(1px 1px at 15% 30%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 45% 15%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 72% 25%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 88% 40%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 30% 50%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1.5px 1.5px at 60% 8%, rgba(200,220,255,0.5), transparent);
}
.xc-ripples {
  position: absolute; top: 0; left: 0; right: 0; height: 100%; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0px, rgba(100,160,220,0.02) 8px, transparent 16px);
  animation: xc-ripple 6s linear infinite;
}
@keyframes xc-ripple { 0% { transform: translateY(0); } 100% { transform: translateY(16px); } }
.xc-lightray {
  position: absolute; top: -10px; pointer-events: none; opacity: 0.07;
  border-left: 20px solid transparent; border-right: 20px solid transparent;
  border-top: 200px solid rgba(180,220,255,0.5);
  animation: xc-rayshift 8s ease-in-out infinite;
}
.xc-lightray.ray1 { left: 22%; transform: rotate(6deg); animation-delay: 0s; }
.xc-lightray.ray2 { left: 55%; transform: rotate(-4deg); opacity: 0.04; animation-delay: 3s; border-left-width: 15px; border-right-width: 15px; border-top-width: 180px; }
@keyframes xc-rayshift {
  0%,100% { opacity: 0.07; transform: rotate(6deg); }
  50% { opacity: 0.03; transform: rotate(3deg); }
}
.xc-floor {
  position: absolute; bottom: 0; left: 0; right: 0; height: 50px;
  background: linear-gradient(180deg, rgba(30,25,18,0.6) 0%, #2a2218 40%, #342c20 100%);
  border-radius: 60% 60% 0 0 / 18px 18px 0 0;
}
.xc-floor::before {
  content: ''; position: absolute; top: 8px; left: 0; right: 0; height: 100%;
  background: radial-gradient(ellipse 20px 6px at 20% 10px, rgba(200,180,140,0.12), transparent),
    radial-gradient(ellipse 15px 5px at 60% 15px, rgba(200,180,140,0.08), transparent),
    radial-gradient(ellipse 12px 4px at 80% 8px, rgba(200,180,140,0.1), transparent);
}
.xc-rock {
  position: absolute; bottom: 30px; border-radius: 40% 50% 45% 55%;
  background: linear-gradient(135deg, #3a352a, #2a2520);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.05), 0 2px 6px rgba(0,0,0,0.3);
}
.xc-rock.r1 { left: 8%; width: 22px; height: 14px; bottom: 32px; }
.xc-rock.r2 { right: 15%; width: 18px; height: 11px; bottom: 34px; border-radius: 50% 40% 45% 55%; }
.xc-rock.r3 { left: 75%; width: 12px; height: 9px; bottom: 38px; }
.xc-starfish {
  position: absolute; bottom: 36px; font-size: 11px; opacity: 0.5; pointer-events: none;
  animation: xc-starrot 12s linear infinite;
}
.xc-starfish.s1 { left: 30%; }
.xc-starfish.s2 { right: 22%; bottom: 40px; font-size: 8px; opacity: 0.35; animation-delay: -5s; animation-direction: reverse; }
@keyframes xc-starrot { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.xc-fish {
  position: absolute; pointer-events: none; font-size: 13px; opacity: 0.45;
  animation: xc-swim linear infinite;
}
.xc-fish.f1 { top: 35%; font-size: 11px; animation-duration: 18s; animation-delay: -3s; }
.xc-fish.f2 { top: 55%; font-size: 9px; opacity: 0.3; animation-duration: 24s; animation-delay: -10s; animation-direction: reverse; }
@keyframes xc-swim {
  0% { left: -20px; transform: scaleX(1) translateY(0); }
  25% { transform: scaleX(1) translateY(-8px); }
  50% { transform: scaleX(1) translateY(3px); }
  75% { transform: scaleX(1) translateY(-5px); }
  100% { left: calc(100% + 20px); transform: scaleX(1) translateY(0); }
}
.xc-crab-shadow {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 10px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,0.25), transparent 70%);
  animation: xc-bob 3s ease-in-out infinite;
}
.xc-bubbles { position: absolute; inset: 0; pointer-events: none; }
.xc-bub {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.2), rgba(255,255,255,0.06));
  box-shadow: inset 0 0 2px rgba(255,255,255,0.1);
  animation: xc-float linear infinite;
}
@keyframes xc-float {
  0% { transform: translateY(300px) scale(1); opacity: 0.4; }
  50% { opacity: 0.2; }
  100% { transform: translateY(-30px) scale(0.3); opacity: 0; }
}
.xc-seaweed { position: absolute; bottom: 30px; }
.xc-sw-stem {
  width: 7px; border-radius: 4px;
  background: linear-gradient(180deg, #3a6a3a, #2a5028);
  animation: xc-sway 4s ease-in-out infinite; transform-origin: bottom center;
  box-shadow: inset 1px 0 3px rgba(255,255,255,0.05);
}
.xc-sw-leaf {
  position: absolute; width: 12px; height: 6px; border-radius: 0 60% 60% 0;
  background: #3a6838; animation: xc-sway 3.5s ease-in-out infinite;
}
.xc-sw-leaf.l1 { top: 30%; left: 6px; }
.xc-sw-leaf.l2 { top: 55%; right: 6px; left: auto; border-radius: 60% 0 0 60%; background: #356030; animation-delay: 0.5s; }
.xc-sw-leaf.l3 { top: 75%; left: 6px; background: #2d5528; animation-delay: 1s; }
@keyframes xc-sway { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.xc-sw1 { left: 10%; } .xc-sw1 .xc-sw-stem { height: 65px; }
.xc-sw2 { right: 8%; } .xc-sw2 .xc-sw-stem { height: 48px; animation-delay: 0.8s; }
.xc-sw3 { left: 82%; } .xc-sw3 .xc-sw-stem { height: 55px; animation-delay: 1.5s; }

/* Crab */
.xc-crab {
  position: absolute; bottom: 35px; left: 50%; transform: translateX(-50%);
  width: 150px; height: 130px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  animation: xc-bob 3s ease-in-out infinite;
}
.xc-crab:active { transform: translateX(-50%) scale(0.93); }
.xc-body {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 64px; background: linear-gradient(160deg, #f49060, #e8734a 40%, #d45a30);
  border-radius: 52% 52% 44% 44%;
  box-shadow: inset 0 -10px 18px rgba(0,0,0,0.18), inset 0 5px 12px rgba(255,180,140,0.3), 0 6px 20px rgba(0,0,0,0.35);
}
.xc-shell-pattern {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 60px; height: 40px; pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, rgba(255,200,160,0.15), transparent 70%);
}
.xc-shell-pattern::before {
  content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 30px; height: 20px;
  border-top: 1.5px solid rgba(255,255,255,0.08); border-radius: 50% 50% 0 0;
}
@keyframes xc-bob {
  0%,100% { transform: translateX(-50%) translateY(0) rotate(0); }
  25% { transform: translateX(-50%) translateY(-4px) rotate(-1.5deg); }
  75% { transform: translateX(-50%) translateY(-1px) rotate(1.5deg); }
}
.xc-body.xc-happy { animation: xc-bounce 0.4s ease-out; }
@keyframes xc-bounce {
  0% { transform: translateX(-50%) scale(1); }
  30% { transform: translateX(-50%) translateY(-15px) scale(1.1); }
  50% { transform: translateX(-50%) translateY(-10px) rotate(5deg); }
  70% { transform: translateX(-50%) translateY(-12px) rotate(-5deg); }
  100% { transform: translateX(-50%) scale(1); }
}
.xc-body.xc-poked { animation: xc-squish 0.3s ease-out; }
@keyframes xc-squish {
  0% { transform: translateX(-50%) scale(1); }
  30% { transform: translateX(-50%) scale(0.87, 1.13); }
  60% { transform: translateX(-50%) scale(1.08, 0.92); }
  100% { transform: translateX(-50%) scale(1); }
}
.xc-body.xc-tickled { animation: xc-wiggle 0.5s ease-in-out; }
@keyframes xc-wiggle {
  0% { transform: translateX(-50%) rotate(0); }
  20% { transform: translateX(-50%) rotate(-8deg); }
  40% { transform: translateX(-50%) rotate(8deg); }
  60% { transform: translateX(-50%) rotate(-5deg); }
  80% { transform: translateX(-50%) rotate(5deg); }
  100% { transform: translateX(-50%) rotate(0); }
}
.xc-body.xc-sleepy { animation: xc-sleepy 4s ease-in-out infinite; }
@keyframes xc-sleepy {
  0%,100% { transform: translateX(-50%) rotate(0); }
  30% { transform: translateX(-50%) rotate(-6deg) translateY(2px); }
  70% { transform: translateX(-50%) rotate(4deg) translateY(1px); }
}

/* Eyes */
.xc-eyes { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 16px; }
.xc-eye {
  width: 17px; height: 17px; background: radial-gradient(circle at 45% 40%, #3a3a52, #1a1a2e);
  border-radius: 50%; position: relative; overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}
.xc-shine { position: absolute; width: 6px; height: 6px; background: #fff; border-radius: 50%; top: 4px; left: 5px; transition: 0.3s; }
.xc-shine.sm { width: 3px; height: 3px; top: 8px; left: 10px; opacity: 0.7; }
.xc-squint .xc-eye { height: 7px; border-radius: 8px; top: 5px; }
.xc-squint .xc-shine { opacity: 0.5; top: 0; }
.xc-squint .xc-shine.sm { opacity: 0; }
.xc-hearts .xc-eye { background: none; box-shadow: none; }
.xc-hearts .xc-eye::after { content: '♥'; position: absolute; font-size: 15px; color: #ff4466; top: -2px; left: 0; animation: xc-hpulse 0.5s ease-in-out infinite alternate; }
@keyframes xc-hpulse { from { transform: scale(0.9); } to { transform: scale(1.1); } }

/* Mouth */
.xc-mouth { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); width: 12px; height: 6px; border-bottom: 2.5px solid #c45a32; border-radius: 0 0 50% 50%; }
.xc-mouth.xc-mopen { width: 11px; height: 11px; background: radial-gradient(circle, #a03a1a, #c45a32); border: none; border-radius: 50%; }
.xc-mouth.xc-mwide { width: 20px; height: 9px; background: none; border: none; border-bottom: 2.5px solid #c45a32; border-radius: 0 0 50% 50%; }

/* Blush */
.xc-blush { position: absolute; bottom: 20px; width: 15px; height: 9px; background: radial-gradient(ellipse, rgba(255,100,100,0.45), rgba(255,100,100,0.1)); border-radius: 50%; opacity: 0; transition: opacity 0.3s; }
.xc-blush.l { left: 6px; } .xc-blush.r { right: 6px; }
.xc-blushing .xc-blush { opacity: 1; }

/* Claws */
.xc-claw {
  position: absolute; bottom: 38px; width: 24px; height: 19px;
  background: linear-gradient(160deg, #f49060, #e8734a);
  border-radius: 50%;
  box-shadow: inset 0 -3px 5px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.2);
  transform-origin: center bottom;
}
.xc-pincer {
  position: absolute; top: 1px; width: 5px; height: 8px; background: #d45a30; border-radius: 2px;
}
.xc-claw-l { left: 14px; transform: rotate(-12deg); animation: xc-cwl 3s ease-in-out infinite; }
.xc-claw-l .xc-pincer { right: -2px; transform: rotate(20deg); }
.xc-claw-r { right: 14px; transform: rotate(12deg); animation: xc-cwr 3s ease-in-out infinite; }
.xc-claw-r .xc-pincer { left: -2px; transform: rotate(-20deg); }
@keyframes xc-cwl { 0%,100% { transform: rotate(-12deg); } 50% { transform: rotate(-18deg) translateY(-3px); } }
@keyframes xc-cwr { 0%,100% { transform: rotate(12deg); } 50% { transform: rotate(18deg) translateY(-3px); } }
.xc-waving .xc-claw-r { animation: xc-wave 0.4s ease-in-out 3; }
@keyframes xc-wave { 0%,100% { transform: rotate(12deg); } 50% { transform: rotate(35deg) translateY(-10px); } }

/* Legs */
.xc-legs { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); width: 88px; }
.xc-leg {
  position: absolute; width: 7px; height: 12px;
  background: linear-gradient(180deg, #d45a32, #b04a28); border-radius: 2px 2px 3px 3px; bottom: 0;
}
.xc-leg:nth-child(1) { left: 8px; transform: rotate(-12deg); }
.xc-leg:nth-child(2) { left: 22px; transform: rotate(-5deg); }
.xc-leg:nth-child(3) { right: 22px; transform: rotate(5deg); }
.xc-leg:nth-child(4) { right: 8px; transform: rotate(12deg); }

/* Speech */
.xc-speech {
  position: absolute; top: -42px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,0.13); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 7px 14px;
  font-size: 12px; color: #f0e6d3; white-space: nowrap; opacity: 0; transition: opacity 0.3s, transform 0.3s; pointer-events: none;
}
.xc-speech.xc-show { opacity: 1; transform: translateX(-50%) translateY(-5px); }
.xc-speech::after {
  content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px; background: rgba(255,255,255,0.13);
  border-right: 1px solid rgba(255,255,255,0.12); border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* Zzz */
.xc-zzz { position: absolute; top: -22px; right: -5px; font-size: 14px; color: #8a8278; opacity: 0; pointer-events: none; }
.xc-zzz.xc-zshow { animation: xc-zzz 2s ease-in-out infinite; }
@keyframes xc-zzz { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 0.5; } 80% { opacity: 0.3; } 100% { opacity: 0; transform: translateY(-22px) rotate(12deg); } }

/* Floating hearts */
.xc-heart { position: absolute; font-size: 14px; pointer-events: none; animation: xc-hfloat 1s ease-out forwards; z-index: 5; }
@keyframes xc-hfloat { 0% { opacity: 1; transform: translateY(0) scale(0.5); } 50% { opacity: 0.7; transform: translateY(-30px) scale(1); } 100% { opacity: 0; transform: translateY(-50px) scale(0.7) rotate(15deg); } }

/* Reaction pop */
.xc-rpop { position: absolute; pointer-events: none; font-size: 18px; animation: xc-pop 0.7s ease-out forwards; z-index: 5; }
@keyframes xc-pop { 0% { opacity: 0; transform: scale(0) translateY(0); } 30% { opacity: 1; transform: scale(1.2) translateY(-10px); } 100% { opacity: 0; transform: scale(0.7) translateY(-40px); } }

/* Controls */
.xc-controls { display: flex; gap: 6px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.xc-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(217,138,99,0.1); border: 1px solid rgba(217,138,99,0.25); border-radius: 18px;
  padding: 7px 14px; color: #a89a8c; font-size: 12px; font-family: inherit; cursor: pointer; transition: 0.2s;
}
.xc-btn svg { stroke: #c4a48c; flex-shrink: 0; }
.xc-btn:hover { background: rgba(217,138,99,0.18); }
.xc-btn:active { transform: scale(0.95); }

/* Stats */
.xc-stats { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 8px; font-size: 12px; color: #a89a8c; }
.xc-bar { width: 50px; height: 3px; background: rgba(0,0,0,0.06); border-radius: 2px; overflow: hidden; }
.xc-fill { height: 100%; border-radius: 2px; transition: width 0.5s; }
.xc-fill.xc-mood { background: #d98a63; }
.xc-fill.xc-energy { background: #8ab4d9; }
.xc-status { text-align: center; font-size: 11px; color: #bbb; margin-top: 4px; }
