/* 专注小窝轻量视觉系统：在旧样式之后加载，逐步收口而不引入框架。 */
html { color-scheme: light; }

body {
  color: var(--ink-base);
  background: linear-gradient(180deg, var(--bg-light), var(--bg-base) 64%, var(--bg-deep));
}

body::before {
  opacity: 0.1;
  background-size: 48px 48px;
}

body::after {
  background: radial-gradient(circle at 12% 4%, rgba(168, 79, 44, 0.1), transparent 27%);
}

.hero,
.panel {
  border-color: var(--line-light);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero::after,
.panel::after { display: none; }

.panel { padding: clamp(22px, 4vw, 32px); }

.section-label,
.stage-label,
.hero-kicker,
.mini-pill {
  letter-spacing: 0.02em;
  text-transform: none;
}

.section-label,
.mini-pill {
  color: var(--accent-dark);
  background: #f5e2d6;
}

.stage-label,
.aside-label {
  color: var(--ink-muted);
  background: #f2eae4;
  letter-spacing: 0.02em;
  text-transform: none;
}

.button,
.button-primary,
.button-secondary,
.auth-submit { border-radius: var(--radius-sm); }

.button-primary,
.auth-submit {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 22px rgba(135, 58, 34, 0.2);
}

.button-primary:hover,
.auth-submit:hover { background: var(--accent-dark); }

.button-secondary {
  color: var(--accent-dark);
  border-color: rgba(135, 58, 34, 0.25);
  background: #fff8f3;
}

.button-neutral {
  color: var(--ink-base) !important;
  border: 1px solid var(--line-base) !important;
  background: #f1e9e3 !important;
  box-shadow: none !important;
}

:focus-visible {
  outline: 3px solid #873a22 !important;
  outline-offset: 3px !important;
}

/* 品牌与导航 */
.navbar {
  border-bottom-color: var(--line-base);
  background: rgba(255, 249, 243, 0.94);
}

.navbar-container { gap: 18px; }

.navbar-logo {
  flex: 0 0 auto;
  gap: 9px;
  font-size: 20px;
}

.navbar-logo .logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 0;
  background: transparent;
}

.navbar-logo .logo-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.navbar-menu { justify-content: center; }
.navbar-menu a { padding: 9px 13px; font-size: 14px; }

.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--accent-dark);
  background: #f4e1d6;
}

.navbar-profile {
  flex: 0 0 auto;
  color: var(--accent-dark);
  background: #f4e1d6;
}

.nav-toggle {
  color: var(--accent-dark);
  border: 1px solid rgba(135, 58, 34, 0.24);
  background: #fff8f3;
  box-shadow: none;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  color: #fff;
  background: var(--accent-dark);
}

.profile-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(168, 79, 44, 0.12);
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-toggle-lines { position: relative; }
.nav-toggle-lines::before,
.nav-toggle-lines::after { content: ""; position: absolute; left: 0; }
.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }

.focus-lock-mask { background: rgba(51, 37, 30, 0.55); }
.focus-lock-actions { display: flex; gap: 12px; margin-top: 20px; }
.focus-lock-actions > * { flex: 1; }

/* 登录与注册 */
.auth-page {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 0.6fr);
  width: min(900px, 100%);
  overflow: hidden;
  border: 1px solid var(--line-base);
  border-radius: var(--radius-xl);
  background: var(--surface-strong);
  box-shadow: var(--shadow-base);
}

.auth-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 540px;
  padding: clamp(32px, 6vw, 58px);
  background: linear-gradient(145deg, #f6e5da, #efd5c5);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  color: var(--ink-base);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.auth-brand img { width: 44px; height: 44px; }
.auth-intro-copy { display: grid; gap: 14px; }
.auth-intro-copy h1 { max-width: 480px; }
.auth-intro-copy p { max-width: 470px; font-size: 17px; }
.auth-note { font-size: 13px; }

.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 6vw, 54px);
}

.auth-card h2 { margin-bottom: 8px; }
.auth-card > p { margin-bottom: 26px; }
.auth-form { display: grid; gap: 18px; }
.auth-form .form-group { display: grid; gap: 7px; }
.auth-form label { color: var(--ink-base); font-size: 14px; font-weight: 700; }
.auth-form input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink-base);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
}
.auth-form input:focus {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(168, 79, 44, 0.13);
}
.auth-submit { width: 100%; margin-top: 2px; }
.auth-switch { margin: 20px 0 0 !important; text-align: center; font-size: 14px; }
.auth-switch a { color: var(--accent-dark); font-weight: 700; }
.auth-message { padding: 12px 14px; margin-bottom: 18px; border-radius: var(--radius-sm); font-size: 14px; }
.auth-message.error { color: #762f21; border: 1px solid #d8a99d; background: #fff0ec; }
.auth-message.success { color: #245748; border: 1px solid #a7c9be; background: #edf8f4; }
.auth-success-actions { display: grid; gap: 10px; }

/* 使用说明与规则 */
.guide-hero {
  display: block;
  width: min(900px, 100%);
  margin-inline: auto;
  text-align: center;
}

.guide-hero .hero-copy { align-items: center; }
.guide-hero p { max-width: 680px; }
.guide-layout { display: grid; gap: 16px; width: min(980px, 100%); margin: 0 auto; }
.guide-toc {
  padding: 14px 18px;
  border: 1px solid var(--line-base);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 250, 0.88);
}
.guide-toc summary { color: var(--ink-base); cursor: pointer; font-weight: 800; }
.guide-toc nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.guide-toc a { padding: 7px 10px; color: var(--accent-dark); border-radius: 999px; background: #f5e2d6; font-size: 13px; font-weight: 700; text-decoration: none; }
.guide-section { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: start; }
.guide-index {
  display: grid;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  font-size: 18px;
  font-weight: 800;
}
.guide-copy { display: grid; gap: 10px; }
.guide-copy h2 { font-size: 24px; }
.guide-copy ul,
.rule-card ul { margin-left: 20px; }
.guide-copy li,
.rule-card li { margin-bottom: 6px; }
.state-explainer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.state-explainer div { padding: 13px 14px; border: 1px solid var(--line-base); border-radius: var(--radius-sm); background: #fffaf6; }
.state-explainer strong { display: block; margin-bottom: 3px; color: var(--ink-base); }
.state-explainer span { color: var(--ink-muted); font-size: 14px; }
.guide-actions { justify-content: center; }
.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: min(980px, 100%); margin: 0 auto; }
.rule-card { display: grid; align-content: start; gap: 12px; }
.rule-card h2 { font-size: 23px; }
.prototype-note { border-left: 4px solid var(--warm-warning); }

/* 个人页 */
.profile-panel { width: min(980px, 100%); }
.profile-panel .panel-head { align-items: center; }
.profile-grid .stage-card { border-color: var(--line-base); background: #fffaf6; }
.profile-metrics > div { background: #fff; }
.profile-footnote { padding: 14px; border-radius: var(--radius-sm); background: #f4ece6; }
.profile-account-actions { display: flex; justify-content: flex-end; padding-top: 20px; margin-top: 22px; border-top: 1px solid var(--line-base); }
.profile-account-actions .button { min-width: 160px; }

/* 商店 */
.shop-shell,
.den-shell { width: min(1080px, 100%); margin-inline: auto; }
.shop-intro { max-width: 680px; }
.shop-next-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 34%);
  gap: 22px;
  padding: 15px 18px;
  margin-bottom: 22px;
  align-items: center;
  border: 1px solid rgba(168, 79, 44, 0.18);
  border-radius: var(--radius-md);
  background: #fff7f0;
}
.shop-next-progress > div { display: grid; gap: 2px; min-width: 0; }
.shop-next-label { color: var(--ink-muted); font-size: 12px; }
.shop-next-progress strong { overflow-wrap: anywhere; font-size: 15px; }
.shop-next-progress progress { width: 100%; height: 10px; overflow: hidden; border: 0; border-radius: 999px; accent-color: var(--accent); }
.shop-next-progress progress::-webkit-progress-bar { border-radius: 999px; background: #eadcd1; }
.shop-next-progress progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, #c86a42, var(--accent)); }
.shop-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.shop-item-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line-base);
  border-radius: var(--radius-md);
  text-align: left;
  background: #fffaf6;
}
.shop-item-card.unlocked { opacity: 1; border-color: rgba(47, 111, 94, 0.35); background: #f0f7f4; }
.shop-item-card .item-icon { display: grid; width: 64px; height: 64px; margin-bottom: 11px; place-items: center; overflow: hidden; border-radius: 14px; background: #f2e5dc; }
.shop-item-card .item-icon .decor-thumbnail,
.den-item-icon .decor-thumbnail { transform: scale(var(--thumbnail-scale, 1)); transform-origin: center; }
.shop-card-title { display: flex; min-height: 48px; align-items: flex-start; justify-content: space-between; gap: 7px; }
.shop-item-card h2,
.shop-item-card h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.owned-badge { flex: 0 0 auto; padding: 3px 7px; color: #245748; border-radius: 999px; background: #dceee7; font-size: 11px; font-weight: 800; }
.shop-item-card .item-description { min-height: 44px; margin: 6px 0 9px; font-size: 13px; line-height: 1.55; }
.item-price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 0; margin-top: auto; border-top: 1px solid var(--line-base); }
.item-price span { color: var(--ink-muted); font-size: 13px; }
.item-price strong { color: var(--accent-dark); font-size: 18px; white-space: nowrap; }
.shop-points-gap { min-height: 20px; margin: -6px 0 7px; color: var(--warm-danger); font-size: 12px; font-weight: 700; text-align: right; }
.shop-item-card .exchange-btn { width: 100%; min-height: 42px; }
.shop-item-card .exchange-btn:disabled {
  opacity: 1;
  color: var(--ink-muted);
  border: 1px solid var(--line-base);
  background: #eee8e3;
  box-shadow: none;
}
.decor-thumbnail { display: block; width: 100%; height: 100%; }
.reward-preview-shell { padding: 24px; border-style: dashed; }
.reward-preview-head { margin-bottom: 16px; }
.preview-only-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  color: var(--warm-warning);
  border: 1px solid rgba(138, 90, 20, 0.28);
  border-radius: 999px;
  background: #fff6df;
  font-size: 13px;
  font-weight: 700;
}
.reward-rail-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -5px 0 12px; }
.reward-rail-controls > div { display: flex; gap: 8px; }
.reward-track-button { display: grid; width: 40px; height: 40px; place-items: center; color: var(--accent-dark); border: 1px solid rgba(135, 58, 34, 0.24); border-radius: 50%; background: #fff8f3; box-shadow: none; font-size: 20px; cursor: pointer; }
.reward-track-button:hover:not(:disabled) { color: #fff; background: var(--accent-dark); }
.reward-track-button:disabled { opacity: 0.42; cursor: default; }
.reward-preview-grid { display: flex; gap: 14px; padding: 3px 2px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; overscroll-behavior-inline: contain; }
.reward-preview-card { flex: 0 0 clamp(190px, 21%, 225px); scroll-snap-align: start; background: linear-gradient(180deg, #fffaf6, #f8efe8); }
.reward-preview-card .item-icon { background: #f4e5cf; }
.reward-scroll-hint { margin: 0; color: var(--ink-muted); font-size: 13px; }
.reward-preview-card .preview-price strong { color: var(--ink-muted); }
.shop-note { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shop-note > div { padding: 18px; border: 1px solid var(--line-base); border-radius: var(--radius-md); background: #fffaf6; }
.shop-note strong { display: block; margin-bottom: 5px; color: var(--ink-base); }
.shop-note p { font-size: 14px; }
.shop-points-help > summary {
  color: var(--ink-base);
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}
.shop-points-help[open] > summary { margin-bottom: 18px; }
.shop-points-help .hero-actions { margin-top: 16px; }

/* 我的小窝 */
.den-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin: -4px 2px 12px; color: var(--ink-muted); font-size: 13px; }
.den-ambience-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line-base); border-radius: 999px; background: #f3e8df; }
.den-ambience-switch button { min-width: 58px; padding: 6px 12px; color: var(--ink-muted); border: 0; border-radius: 999px; background: transparent; box-shadow: none; font-size: 13px; cursor: pointer; }
.den-ambience-switch button:hover:not(:disabled) { color: var(--accent-dark); background: rgba(255, 255, 255, 0.66); }
.den-ambience-switch button[aria-pressed="true"] { color: #fff; background: var(--accent-dark); }
.den-preview {
  position: relative;
  width: 100%;
  height: 400px;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid var(--line-base);
  border-radius: var(--radius-xl);
  background: #f6e8dc;
  box-shadow: inset 0 -12px 35px rgba(89, 61, 45, 0.08), inset 0 0 0 9px rgba(255, 253, 250, 0.22);
  transition: height 0.25s ease, background 0.25s ease;
}
.den-preview.is-empty { height: 300px; }
.den-wall { position: absolute; inset: 0 0 28%; background: linear-gradient(180deg, #f8eadd, #eed8c7); transition: background 0.25s ease; }
.den-wall::before { content: ""; position: absolute; inset: 24px 24px auto; height: 1px; background: rgba(137, 91, 63, 0.12); box-shadow: 0 62px 0 rgba(137, 91, 63, 0.08); }
.den-wall.star-wall { background: linear-gradient(145deg, #29243d, #3f4768); }
.den-wall.star-wall::after { content: "·  ✦  ·  ·  ✧  ·  ✦  ·  ·  ✧  ·  ✦"; position: absolute; inset: 25px 20px auto; color: #f6e5ae; font-size: 26px; letter-spacing: 14px; text-align: center; }
.den-floor { position: absolute; inset: auto 0 0; height: 29%; background: linear-gradient(180deg, #e7cdb7, #d7b79e); border-top: 5px solid rgba(133, 86, 59, 0.22); transition: background 0.25s ease; }
.den-floor.wood-floor { background: repeating-linear-gradient(90deg, #aa7959 0 78px, #895f46 78px 81px); }
.den-preview.ambience-night .den-wall:not(.star-wall) { background: linear-gradient(155deg, #454054, #5b5060); }
.den-preview.ambience-night .den-floor { filter: brightness(0.72) saturate(0.82); }
.den-preview.ambience-night { background: #413847; box-shadow: inset 0 -12px 35px rgba(20, 15, 28, 0.3), inset 0 0 0 9px rgba(255, 249, 241, 0.1); }
.den-rug { position: absolute; z-index: 1; left: 50%; bottom: 4%; width: 42%; height: 15%; border: 4px solid rgba(255, 244, 230, 0.52); border-radius: 50%; background: rgba(189, 111, 79, 0.3); transform: translateX(-50%); }
.den-room-item { position: absolute; z-index: 2; display: none; place-items: center; filter: drop-shadow(0 8px 6px rgba(51, 37, 30, 0.14)); line-height: 1; }
.den-room-item.active { display: grid; }
.den-room-item .decor-art { display: block; width: 100%; height: auto; overflow: visible; }
.den-room-item[data-scene-slot="furniture-center"] { z-index: 3; left: 50%; bottom: 9%; width: 24%; transform: translateX(-50%); }
.den-room-item[data-scene-slot="furniture-left"] { left: 5%; bottom: 17%; width: 12%; }
.den-room-item[data-scene-slot="floor-right"] { right: 5%; bottom: 6%; width: 10%; }
.den-room-item[data-scene-slot="desk-side"] { z-index: 4; left: 69%; bottom: 8%; width: 7%; }
.den-room-item[data-scene-slot="wall-right"] { right: 7%; top: 8%; width: 11%; }
.den-room-item[data-scene-slot="floor-left"] { z-index: 4; left: 22%; bottom: 8%; width: 6%; }
.den-room-item[data-scene-slot="floor-center"] { z-index: 4; left: 61%; bottom: 4%; width: 7%; }
.den-room-item[data-scene-slot="wall-left"] { left: 29%; top: 10%; width: 6%; }
.den-preview.ambience-night .den-room-item[data-item="desk_lamp"] { filter: drop-shadow(0 0 18px rgba(255, 205, 112, 0.72)); }
.den-empty-scene { position: absolute; z-index: 6; inset: 50% auto auto 50%; display: none; width: min(310px, calc(100% - 32px)); padding: 18px; align-items: center; justify-items: center; gap: 4px; border: 1px solid rgba(135, 58, 34, 0.16); border-radius: var(--radius-md); text-align: center; background: rgba(255, 250, 246, 0.9); transform: translate(-50%, -50%); backdrop-filter: blur(5px); }
.den-preview.is-empty .den-empty-scene { display: grid; }
.den-empty-scene strong { font-size: 17px; }
.den-empty-scene span { color: var(--ink-muted); font-size: 13px; }
.den-empty-scene .button { min-height: 38px; margin-top: 8px; padding: 7px 14px; }
.den-save-note { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin: 0 2px 20px; color: var(--ink-muted); font-size: 12px; }
.den-save-note .den-save-icon { color: var(--ink-muted); font-size: 9px; }
.den-save-note[data-state="saving"] .den-save-icon { color: var(--warm-warning); }
.den-save-note[data-state="saved"] .den-save-icon { color: var(--warm-success); }
.den-save-note[data-state="error"] { color: var(--warm-danger); }
.den-save-note[data-state="error"] .den-save-icon { color: var(--warm-danger); }
.den-items-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.den-items-heading h2 { font-size: 21px; }
.den-items-heading span { color: var(--ink-muted); font-size: 13px; }
.den-items-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.den-item-card {
  display: grid;
  min-height: 132px;
  padding: 12px 8px;
  place-items: center;
  align-content: center;
  color: var(--ink-base);
  border: 1px solid var(--line-base);
  border-radius: var(--radius-md);
  background: #fffaf6;
  box-shadow: none;
  cursor: pointer;
}
.den-item-card:hover:not(:disabled) { background: #fff4ec; transform: translateY(-2px); }
.den-item-card[aria-pressed="true"] { color: var(--accent-dark); border-color: var(--accent); background: #f5e2d6; }
.den-item-icon { display: grid; width: 52px; height: 52px; place-items: center; line-height: 1; }
.den-item-card strong { margin-top: 9px; font-size: 13px; }
.den-item-card small { color: var(--ink-muted); font-size: 11px; }
.den-actions { justify-content: center; margin-top: 24px; }

@media (max-width: 1050px) {
  .navbar-menu a { padding-inline: 9px; }
}

@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; width: min(520px, 100%); }
  .auth-intro { min-height: 230px; padding: 30px; }
  .auth-intro-copy { margin-top: 40px; }
  .auth-note { display: none; }
  .rule-grid { grid-template-columns: 1fr; }
  .shop-note { grid-template-columns: 1fr; }
  .shop-shell .panel-head,
  .den-shell .panel-head {
    flex-direction: row;
    align-items: flex-end;
  }
  .shop-shell .panel-head > div:first-child,
  .den-shell .panel-head > div:first-child {
    flex: 1 1 auto;
    max-width: none;
  }
  .shop-shell .panel-pulse,
  .den-shell .panel-pulse {
    flex: 0 0 auto;
    width: auto;
    min-width: 190px;
    padding: 14px 16px;
  }
  .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-item-card { padding: 12px; }
  .shop-item-card .item-icon { width: 48px; height: 48px; margin-bottom: 8px; }
  .shop-card-title { min-height: 40px; }
  .shop-item-card .item-description { min-height: 34px; margin: 4px 0 6px; }
  .item-price { padding: 8px 0; }
  .shop-points-gap { min-height: 16px; margin-bottom: 5px; }
  .shop-item-card .exchange-btn { min-height: 40px; }
  .reward-preview-grid { display: flex; }
  .reward-preview-card { flex-basis: min(42%, 270px); }
  .den-items-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .page-shell { width: min(100% - 24px, 1280px); }
  .auth-page { padding: 12px; }
  .auth-intro { min-height: 210px; padding: 24px; }
  .auth-intro-copy { margin-top: 30px; }
  .auth-intro-copy h1 { font-size: 32px; }
  .auth-card { padding: 28px 22px; }
  .focus-lock-actions { flex-direction: column; }
  .guide-hero { padding: 24px 18px; }
  .guide-hero h1 { font-size: 30px; }
  .guide-layout { gap: 12px; }
  .guide-toc nav { flex-wrap: nowrap; padding-bottom: 5px; overflow-x: auto; }
  .guide-toc a { flex: 0 0 auto; }
  .guide-section { grid-template-columns: 34px minmax(0, 1fr); gap: 11px; padding: 18px 16px; }
  .guide-index { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
  .guide-copy { gap: 8px; }
  .guide-copy h2 { font-size: 21px; }
  .guide-copy h3 { font-size: 18px; }
  .guide-copy p,
  .guide-copy li { font-size: 14px; line-height: 1.7; }
  .state-explainer { grid-template-columns: 1fr; }
  .shop-shell .panel-head,
  .den-shell .panel-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
  }
  .shop-shell .panel-pulse,
  .den-shell .panel-pulse { display: flex; width: 100%; min-width: 0; padding: 11px 14px; align-items: baseline; justify-content: space-between; gap: 8px; border-radius: 12px; text-align: left; }
  .shop-shell .panel-pulse span,
  .shop-shell .panel-pulse strong,
  .shop-shell .panel-pulse small,
  .den-shell .panel-pulse span,
  .den-shell .panel-pulse strong,
  .den-shell .panel-pulse small { display: inline; margin: 0; }
  .shop-shell .panel-pulse span,
  .shop-shell .panel-pulse strong,
  .den-shell .panel-pulse span,
  .den-shell .panel-pulse strong {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .shop-shell .panel-pulse small,
  .den-shell .panel-pulse small {
    flex: 1 1 auto;
    text-align: right;
  }
  .shop-shell .panel-pulse strong,
  .den-shell .panel-pulse strong { font-size: 21px; }
  .shop-shell .panel-pulse small,
  .den-shell .panel-pulse small { font-size: 11px; }
  .shop-next-progress { grid-template-columns: 1fr; gap: 10px; padding: 13px 14px; margin-bottom: 16px; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shop-item-card { padding: 12px; }
  .shop-item-card .item-icon { width: 52px; height: 52px; margin-bottom: 9px; }
  .shop-card-title { min-height: 44px; }
  .shop-item-card h2,
  .shop-item-card h3 { font-size: 15px; }
  .owned-badge { padding: 2px 5px; font-size: 10px; }
  .shop-item-card .item-description { min-height: 38px; margin-bottom: 7px; font-size: 12px; line-height: 1.55; }
  .item-price { align-items: flex-start; flex-direction: column; gap: 1px; }
  .shop-points-gap { min-height: 18px; font-size: 11px; }
  .reward-preview-head { margin-bottom: 12px !important; }
  .reward-preview-shell { padding: 18px 16px; }
  .reward-preview-head { position: relative; }
  .reward-preview-head .preview-only-badge { position: absolute; top: 0; right: 0; }
  .reward-preview-head .shop-intro p { font-size: 12px; line-height: 1.5; }
  .reward-rail-controls { margin-bottom: 9px; }
  .reward-scroll-hint { font-size: 12px; }
  .reward-track-button { width: 38px; height: 38px; }
  .reward-preview-grid { gap: 10px; padding-bottom: 8px; }
  .reward-preview-card { flex: 0 0 min(82%, 245px); }
  .shop-points-help { padding: 18px 20px; }
  .shop-points-help .shop-note { margin-top: 14px; }
  .den-toolbar { justify-content: space-between; }
  .den-preview { height: 315px; }
  .den-preview.is-empty { height: 245px; }
  .den-rug { width: 50%; height: 13%; }
  .den-room-item[data-scene-slot="furniture-center"] { left: 51%; bottom: 10%; width: 39%; }
  .den-room-item[data-scene-slot="furniture-left"] { left: 2%; bottom: 18%; width: 18%; }
  .den-room-item[data-scene-slot="floor-right"] { right: 2%; bottom: 5%; width: 16%; }
  .den-room-item[data-scene-slot="desk-side"] { left: 73%; bottom: 7%; width: 8%; }
  .den-room-item[data-scene-slot="wall-right"] { right: 3%; top: 8%; width: 18%; }
  .den-room-item[data-scene-slot="floor-left"] { left: 23%; bottom: 8%; width: 9%; }
  .den-room-item[data-scene-slot="floor-center"] { left: 59%; bottom: 3%; width: 13%; }
  .den-room-item[data-scene-slot="wall-left"] { left: 25%; top: 10%; width: 10%; }
  .den-save-note { margin-bottom: 16px; }
  .den-items-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .den-item-card { min-height: 124px; padding: 10px 6px; }
  .den-item-icon { width: 44px; height: 44px; }
  .den-actions { align-items: stretch; flex-direction: column; }
  .den-actions .button { width: 100%; }
  .profile-account-actions { justify-content: stretch; }
  .profile-account-actions .button { width: 100%; }
}

@media (max-width: 380px) {
  .den-items-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
