:root {
  color-scheme: dark;
  font-family: Inter, Arial, sans-serif;
  color: #f8fafc;
  background: #070f2c;
}

* { box-sizing: border-box; }
body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 24px max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: radial-gradient(circle at 50% 30%, rgba(53, 213, 200, .08), transparent 55%), #070f2c;
}

.shop-header, .shop-main, .shop-footer { width: min(960px, 100%); margin-inline: auto; }
.shop-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.shop-eyebrow { margin: 0 0 6px; color: #9ceae2; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(26px, 5vw, 36px); line-height: 1.2; }
.shop-main { display: grid; align-content: start; gap: 28px; padding-block: 28px; }
.shop-intro { display: flex; align-items: center; gap: 22px; padding: 24px; border: 1px solid rgba(246, 196, 83, .28); border-radius: 20px; background: linear-gradient(135deg, #121938, #18364c); box-shadow: 0 12px 32px rgba(0, 0, 0, .2); }
.shop-intro-copy { min-width: 0; }
.shop-badge { display: inline-block; margin-bottom: 8px; color: #ffe3a3; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.shop-shell { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 72px; height: 72px; border-radius: 20px; background: linear-gradient(135deg, #f6c453, #35d5c8); box-shadow: inset 0 1px rgba(255,255,255,.36), 0 8px 22px rgba(0,0,0,.2); }
.shop-shell svg { width: 56px; height: 56px; }
.shop-shell-main { fill: #fff1b8; stroke: #8b5b18; stroke-width: 2.2; stroke-linejoin: round; }
.shop-shell-ridge, .shop-shell-base { fill: none; stroke: #c77d25; stroke-linecap: round; stroke-width: 2; }
.shop-shell-base { stroke: #8b5b18; stroke-width: 2.4; }
h2 { margin: 0; color: #fff7d6; font-size: clamp(22px, 3vw, 28px); line-height: 1.3; overflow-wrap: break-word; }
.shop-intro p { margin: 8px 0 0; color: #cbd5e1; font-size: 16px; line-height: 1.5; }
.shop-section-heading { margin-bottom: 18px; }
.shop-section-heading h2 { font-size: 22px; }
.shop-section-heading p { max-width: 720px; margin: 8px 0 0; color: #cbd5e1; font-size: 15px; line-height: 1.5; }
.shop-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shop-category { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 22px; border: 1px solid rgba(156, 234, 226, .18); border-radius: 18px; background: linear-gradient(145deg, #151e40, #10283b); }
.shop-category-link { color: inherit; text-decoration: none; border-color: rgba(156, 234, 226, .45); }
.shop-category-link:hover { background: linear-gradient(145deg, #1c2a50, #163d4b); border-color: #9ceae2; }
.shop-category-link:focus-visible { outline: 3px solid #9ceae2; outline-offset: 4px; }
.shop-category-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 15px; color: #9ceae2; background: rgba(53, 213, 200, .1); }
.shop-category-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shop-category-icon-panda { color: #0c1c2b; }
.panda-dark { fill: #0c1c2b; stroke: none; }
.panda-face { fill: #f8fafc; stroke: none; }
.shop-category h3 { margin: 0 0 10px; color: #fff; font-size: 20px; line-height: 1.25; }
.shop-category p { margin: 0; color: #cbd5e1; font-size: 15px; line-height: 1.5; overflow-wrap: break-word; }
.shop-category .shop-category-meta { margin-top: auto; padding-top: 18px; color: #ffe3a3; font-size: 13px; font-weight: 700; }
.shop-visitor-stats { min-width: 0; padding: 22px; border: 1px solid rgba(156,234,226,.28); border-radius: 18px; background: linear-gradient(145deg, #151e40, #10283b); }
.shop-visitor-stats[hidden], .shop-stats-status[hidden] { display: none; }
.shop-stats-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.shop-stats-heading h2 { font-size: 22px; }
.shop-stats-heading > span { color: #9ceae2; font-size: 13px; line-height: 1.5; }
.shop-stats-group { margin-top: 20px; }
.shop-stats-group + .shop-stats-group { padding-top: 20px; border-top: 1px solid rgba(156,234,226,.18); }
.shop-stats-group h3 { margin: 0; color: #f8fafc; font-size: 17px; line-height: 1.4; }
.shop-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0 14px; }
.shop-stats-group .shop-stats-grid { margin-top: 12px; }
.shop-stats-grid > div { min-width: 0; padding: 14px; border: 1px solid rgba(156,234,226,.18); border-radius: 12px; background: rgba(7,15,44,.45); }
.shop-stats-grid dt { color: #cbd5e1; font-size: 14px; line-height: 1.4; }
.shop-stats-grid dd { margin: 8px 0 0; color: #fff1b8; font-size: 26px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.shop-stats-note { margin: 6px 0 0; color: #a9b7cf; font-size: 13px; line-height: 1.6; }
.shop-stats-status { margin: 14px 0 0; color: #ffe3a3; font-size: 14px; line-height: 1.5; }
.shop-chat-note { margin: 0; color: #a9b7cf; font-size: 14px; line-height: 1.5; text-align: center; }
.shop-footer { display: flex; justify-content: center; }
.shop-close { min-height: 46px; padding: 12px 20px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; color: #fff; background: linear-gradient(135deg, #654af5, #4e83f0); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.shop-close:hover { filter: brightness(1.12); }
.shop-close:focus-visible { outline: 3px solid #9ceae2; outline-offset: 4px; }
.shop-close-hint { margin: 0; padding: 16px 20px; border: 1px solid rgba(246,196,83,.4); border-radius: 14px; color: #fff1b8; background: #121938; font-size: 15px; line-height: 1.6; }
.shop-close-hint[hidden] { display: none; }

.shop-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.shop-back { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 20px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; color: #fff; background: #252e4b; font-size: 16px; font-weight: 700; text-decoration: none; }
.shop-back:hover { background: #303c5d; }
.shop-back:focus-visible { outline: 3px solid #9ceae2; outline-offset: 4px; }
.shop-pack-panel { min-width: 0; padding: 24px; border: 1px solid rgba(156,234,226,.2); border-radius: 18px; background: linear-gradient(145deg, #151e40, #10283b); }
.shop-pack-panel h2 { font-size: 22px; }
.shop-pack-copy { margin: 10px 0 0; color: #cbd5e1; font-size: 15px; line-height: 1.6; }
.shop-pack-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.shop-pack-summary > div { min-width: 0; padding: 14px; border: 1px solid rgba(156,234,226,.2); border-radius: 12px; background: rgba(7,15,44,.45); }
.shop-pack-summary dt { color: #cbd5e1; font-size: 14px; }
.shop-pack-summary dd { margin: 8px 0 0; color: #fff1b8; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.shop-pack-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.shop-pack-actions .shop-close { max-width: 100%; }
.shop-close:disabled { opacity: .55; cursor: default; filter: none; }
.shop-pack-secondary { background: #252e4b; }
.shop-pack-status { margin: 14px 0 0; padding: 12px 14px; border: 1px solid rgba(156,234,226,.3); border-radius: 12px; color: #dbeafe; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.shop-pack-status[hidden] { display: none; }
.shop-pack-status.is-error { color: #fde68a; border-color: rgba(251,191,36,.4); background: rgba(120,53,15,.16); }
.shop-pack-status.is-success { color: #9ceae2; }
.shop-panda-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.shop-panda-item { min-width: 0; margin: 0; padding: 14px 8px; border: 1px solid rgba(156,234,226,.18); border-radius: 14px; background: rgba(7,15,44,.45); text-align: center; }
.shop-panda-item img { display: block; width: 72px; max-width: 100%; height: 72px; margin: 0 auto 10px; object-fit: contain; }
.shop-panda-item figcaption { color: #cbd5e1; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.shop-buy-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100svh - 32px); margin: auto; padding: 24px; overflow: auto; border: 1px solid #68d4c7; border-radius: 18px; color: #f8fafc; background: #121938; box-shadow: 0 18px 64px rgba(0,0,0,.5); }
.shop-buy-dialog::backdrop { background: rgba(3,8,24,.78); }
.shop-buy-dialog h2 { font-size: 22px; }
.shop-buy-dialog .shop-pack-actions { margin-top: 20px; }
.shop-panda-page .shop-footer .shop-nav { justify-content: center; }
.shop-gifts-page .shop-footer .shop-nav { justify-content: center; }
.shop-gift-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shop-gift-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.shop-gift-fieldset legend { max-width: 100%; padding: 0; color: #fff7d6; font-size: 22px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.shop-gift-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.shop-gift-option { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-content: start; gap: 8px; min-width: 0; padding: 12px; border: 1px solid rgba(156,234,226,.2); border-radius: 14px; background: rgba(7,15,44,.45); cursor: pointer; }
.shop-gift-option:has(input:checked), .shop-friend-option:has(input:checked) { border-color: #9ceae2; background: #193e4f; box-shadow: inset 0 0 0 1px #9ceae2; }
.shop-gift-option:has(input:focus-visible), .shop-friend-option:has(input:focus-visible) { outline: 3px solid #9ceae2; outline-offset: 3px; }
.shop-gift-option input, .shop-friend-option input { width: 20px; height: 20px; margin: 0; accent-color: #35d5c8; }
.shop-gift-option img { grid-column: 1 / -1; width: 80px; max-width: 100%; height: 80px; margin: 0 auto 4px; object-fit: contain; }
.shop-gift-label { grid-column: 1 / -1; color: #f8fafc; font-size: 14px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.shop-gift-price { grid-column: 1 / -1; color: #ffe3a3; font-size: 14px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.shop-gift-friends { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.shop-friend-option { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 64px; padding: 14px; border: 1px solid rgba(156,234,226,.2); border-radius: 14px; background: rgba(7,15,44,.45); cursor: pointer; }
.shop-friend-option input { flex: 0 0 20px; }
.shop-friend-avatar { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; overflow: hidden; border: 1px solid rgba(147,197,253,.2); border-radius: 50%; background: rgba(147,197,253,.16); color: #bfdbfe; font-size: 20px; font-weight: 900; }
.shop-friend-avatar > * { grid-area: 1 / 1; }
.shop-friend-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.shop-friend-avatar img.is-loaded { opacity: 1; }
.shop-friend-avatar [hidden] { display: none; }
.shop-friend-copy { flex: 1; min-width: 0; }
.shop-friend-name { display: block; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.shop-friend-reason { display: block; margin-top: 4px; color: #a9b7cf; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.shop-friend-option:has(input:disabled) { opacity: .7; cursor: default; }
.shop-gift-send-actions { margin-top: 18px; }
.shop-nick-page .shop-footer .shop-nav { justify-content: center; }
.shop-nick-profile { display: flex; align-items: center; gap: 24px; }
.shop-nick-profile-copy { min-width: 0; }
.shop-nick-profile-copy h2 { color: #fff; font-size: clamp(24px, 4vw, 32px); overflow-wrap: anywhere; }
.shop-nick-avatar { display: grid; place-items: center; flex: 0 0 112px; width: 112px; height: 112px; overflow: hidden; border: 2px solid rgba(156,234,226,.5); border-radius: 50%; background: linear-gradient(135deg, #263859, #1c4a55); color: #9ceae2; font-size: 44px; font-weight: 900; }
.shop-nick-avatar > * { grid-area: 1 / 1; }
.shop-nick-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.shop-nick-avatar img.is-loaded { opacity: 1; }
.shop-nick-avatar [hidden] { display: none; }
.shop-nick-progress { display: block; width: 100%; height: 14px; margin: 14px 0; overflow: hidden; border: 0; border-radius: 8px; background: #252e4b; accent-color: #35d5c8; }
.shop-nick-progress::-webkit-progress-bar { background: #252e4b; border-radius: 8px; }
.shop-nick-progress::-webkit-progress-value { background: linear-gradient(90deg, #654af5, #35d5c8); border-radius: 8px; }
.shop-nick-progress::-moz-progress-bar { background: #35d5c8; border-radius: 8px; }
.shop-nick-label { display: block; margin: 18px 0 8px; font-size: 16px; font-weight: 700; }
.shop-nick-input { width: 100%; max-width: 480px; min-height: 48px; padding: 12px 14px; border: 1px solid rgba(156,234,226,.4); border-radius: 12px; background: #252e4b; color: #fff; font: inherit; font-size: 18px; }
.shop-nick-input:focus-visible { outline: 3px solid #9ceae2; outline-offset: 3px; }
.shop-nick-input:disabled { opacity: .6; }
.shop-nick-actions { margin-top: 18px; }
.shop-rooms-page .shop-footer .shop-nav { justify-content: center; }
.shop-vip-page .shop-footer .shop-nav { justify-content: center; }
.shop-vip-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shop-vip-preview[hidden] { display: none; }
.shop-vip-preview-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; width: fit-content; max-width: 100%; margin-top: 8px; padding: 10px 14px; border: 1px solid rgba(125,211,252,.2); border-radius: 12px; background: #121938; color: #f8fafc; font-size: 16px; line-height: 1.4; }
.shop-vip-preview-row > bdi { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
/* Match the Chat VIP badge without importing global Chat layout styles. */
.shop-vip-preview .rank-icon.vip { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; height: 18px; color: #b9eeff; }
.shop-vip-preview .rank-vip-label { font-size: .85em; font-weight: 900; line-height: 1; letter-spacing: .03em; text-shadow: 0 0 5px rgba(125,211,252,.5); }
.shop-vip-preview .rank-vip-trophy {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><defs><linearGradient id='vipCup' x1='0' y1='0' x2='1' y2='1'><stop stop-color='%23d9f6ff'/><stop offset='1' stop-color='%237dd3fc'/></linearGradient></defs><path d='M18 14 H9 V22 C9 31 14 35 21 35 M46 14 H55 V22 C55 31 50 35 43 35' fill='none' stroke='%239fe4ff' stroke-width='5' stroke-linejoin='round'/><path d='M18 8 H46 V22 C46 33 41 40 32 40 C23 40 18 33 18 22 Z' fill='url(%23vipCup)' stroke='%2359b9ec' stroke-width='2'/><path d='M32 40 V51' stroke='%23b9eeff' stroke-width='6'/><path d='M23 51 H41 L45 57 H19 Z' fill='%237dd3fc'/><path d='M25 14 V23' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' opacity='0.85'/></svg>");
  filter: drop-shadow(0 0 3px rgba(125,211,252,.5)) drop-shadow(0 0 6px rgba(56,189,248,.3));
  animation: shopVipPreviewGlow 2.5s ease-in-out infinite;
}
@keyframes shopVipPreviewGlow {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(125,211,252,.5)) drop-shadow(0 0 6px rgba(56,189,248,.3)); }
  50% { filter: drop-shadow(0 0 6px rgba(185,238,255,.8)) drop-shadow(0 0 10px rgba(125,211,252,.6)); }
}
@media (prefers-reduced-motion: reduce) {
  .shop-vip-preview .rank-vip-trophy { animation: none; }
}
.shop-room-profile { display: flex; align-items: center; gap: 24px; }
.shop-room-profile-copy { min-width: 0; }
.shop-room-profile-copy h2 { color: #fff; font-size: clamp(24px, 4vw, 32px); overflow-wrap: anywhere; }
.shop-room-avatar { display: grid; place-items: center; flex: 0 0 112px; width: 112px; height: 112px; overflow: hidden; border: 2px solid rgba(156,234,226,.5); border-radius: 50%; background: linear-gradient(135deg, #263859, #1c4a55); color: #9ceae2; font-size: 44px; font-weight: 900; }
.shop-room-avatar > * { grid-area: 1 / 1; }
.shop-room-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.shop-room-avatar img.is-loaded { opacity: 1; }
.shop-room-avatar [hidden] { display: none; }
.shop-room-summary { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.shop-room-summary > div { grid-column: span 2; }
.shop-room-summary > div:nth-child(n+4) { grid-column: span 3; }
.shop-room-subheading { margin: 22px 0 8px; font-size: 18px; }
.shop-room-requirements { margin: 0; padding-left: 22px; color: #cbd5e1; font-size: 15px; line-height: 1.6; }
.shop-room-requirements li + li { margin-top: 5px; }
.shop-room-actions { margin-top: 18px; }
.shop-room-label { display: block; margin: 18px 0 8px; font-size: 16px; font-weight: 700; }
.shop-room-input { width: 100%; max-width: 600px; min-height: 48px; padding: 12px 14px; border: 1px solid rgba(156,234,226,.4); border-radius: 12px; background: #252e4b; color: #fff; font: inherit; font-size: 18px; }
.shop-room-input:focus-visible { outline: 3px solid #9ceae2; outline-offset: 3px; }
.shop-room-input:disabled { opacity: .6; }
.shop-room-rules { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; color: #cbd5e1; font-size: 15px; line-height: 1.6; cursor: pointer; }
.shop-room-rules input { flex: 0 0 20px; width: 20px; height: 20px; margin: 3px 0 0; accent-color: #35d5c8; }
.shop-room-rules input:focus-visible { outline: 3px solid #9ceae2; outline-offset: 3px; }
.shop-room-rules:has(input:disabled) { opacity: .6; cursor: default; }
.shop-room-warning { color: #ffe3a3; border-color: rgba(246,196,83,.35); }
#roomActivePanel[hidden] { display: none; }

.shop-status-page .shop-footer .shop-nav { justify-content: center; }
.shop-status-actions { margin-top: 18px; }
.shop-status-counter { margin: 8px 0 0; color: #a9b7cf; font-size: 13px; line-height: 1.6; }
.shop-status-counter.is-error { color: #fde68a; }
.shop-status-preview[hidden], #statusRequestPanel[hidden], #statusGiveUpPanel[hidden] { display: none; }
.shop-status-preview-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 10px; padding: 12px 14px; border: 1px solid rgba(196,181,253,.25); border-radius: 12px; background: #121938; }
.shop-status-preview-row > bdi { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.shop-own-status { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 10px; border: 1px solid rgba(196,181,253,.4); border-radius: 999px; background: rgba(76,29,149,.35); color: #ddd6fe; font-size: 13px; font-weight: 700; line-height: 1.5; }
.shop-own-status > bdi { min-width: 0; overflow-wrap: anywhere; }
.shop-own-status-preview { flex: 0 1 auto; min-width: 0; max-width: min(180px, 55%); gap: 4px; padding: 2px 7px; font-size: 11px; font-weight: 900; line-height: 1.25; white-space: nowrap; box-shadow: 0 0 10px rgba(96,165,250,.1); }
.shop-own-status-preview > .shop-status-symbol { display: inline-block; width: 14px; height: 14px; flex: 0 0 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H9l-5 4v-4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Z' fill='%23c4b5fd' fill-opacity='.18' stroke='%23ddd6fe' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='m12 6.5 1.2 3.1 3.3.2-2.6 2 1 3.2-2.9-1.9L9.1 15l1-3.2-2.6-2 3.3-.2Z' fill='%23fde68a' stroke='%23fde68a' stroke-width='.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.shop-own-status-preview > bdi { overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.shop-current-status { margin: 18px 0 0; overflow-wrap: anywhere; }
.shop-status-guide { width: min(429px, 100%); margin: 20px auto; }
.shop-status-guide img { display: block; width: 100%; height: auto; border: 1px solid rgba(196,181,253,.35); border-radius: 16px; background: #070f2c; }
.shop-status-guide figcaption { margin-top: 9px; color: #a9b7cf; font-size: 13px; line-height: 1.55; text-align: center; }
.shop-highlight-preview[hidden] { display: none; }
.shop-highlight-preview-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 12px 14px; border: 1px solid rgba(156,234,226,.25); border-radius: 12px; background: #121938; }
.shop-highlight-preview-row bdi { max-width: 100%; overflow-wrap: anywhere; font-weight: 700; }
.shop-highlight-device { display: inline-flex; width: 14px; height: 14px; flex: 0 0 14px; color: #94a3b8; }
.shop-highlight-device svg { width: 14px; height: 14px; fill: currentColor; }
.shop-highlight-star { display: inline-flex; width: 14px; flex: 0 0 14px; align-items: center; justify-content: center; color: #fff; font-size: 14px; line-height: 1; text-shadow: 0 0 5px rgba(255,255,255,.28); }
.shop-highlight-page .shop-footer .shop-nav { justify-content: center; }
.shop-category-icon-color { color: #fff; background: linear-gradient(135deg, rgba(52,211,153,.35), rgba(34,211,238,.3) 32%, rgba(167,139,250,.35) 65%, rgba(251,113,133,.32)); }
.shop-nickname-color-page .shop-footer .shop-nav { justify-content: center; }
.shop-nickname-color-preview[hidden] { display: none; }
.shop-nickname-color-preview { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; min-width: 0; max-width: 100%; margin-top: 14px; }
.shop-nickname-color-preview-label { flex: 0 1 auto; max-width: 100%; margin: 0; color: #fff7d6; font-size: 18px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.shop-nickname-color-preview-row { display: flex; flex: 0 1 auto; align-items: center; min-width: 0; min-height: 48px; width: fit-content; max-width: 100%; padding: 11px 15px; border: 1px solid rgba(156,234,226,.25); border-radius: 12px; background: #121938; }
.shop-nickname-color-preview-secondary { padding: 13px 15px; border: 1px solid rgba(156,234,226,.24); border-left: 3px solid #9ceae2; border-radius: 13px; background: rgba(7,15,44,.34); }
.shop-nickname-color-text { min-width: 0; max-width: 100%; color: #f8fafc; font-size: 19px; font-weight: 900; line-height: 1.35; overflow-wrap: anywhere; }
.shop-nickname-color-text.is-solid { color: var(--shop-nickname-color, #f8fafc); text-shadow: 0 1px 8px rgba(0,0,0,.34); }
.shop-nickname-color-text.is-island { color: #d8b4fe; background: linear-gradient(115deg, #f9a8d4 0%, #fde68a 19%, #6ee7b7 39%, #5eead4 58%, #c4b5fd 79%, #f9a8d4 100%); background-size: 240% 180%; background-position: 0% 45%; animation: shopIslandColorPlay 9s ease-in-out infinite; }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .shop-nickname-color-text.is-island { color: transparent; background-clip: text; -webkit-background-clip: text; }
}
@keyframes shopIslandColorPlay {
  0%, 100% { background-position: 0% 45%; }
  50% { background-position: 100% 55%; }
}
.shop-nickname-color-fieldset { min-width: 0; margin: 22px 0 0; padding: 0; border: 0; }
.shop-nickname-color-fieldset legend { max-width: 100%; padding: 0; color: #fff7d6; font-size: 18px; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.shop-nickname-color-offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.shop-nickname-color-offer { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px 12px; min-width: 0; min-height: 118px; padding: 15px; border: 1px solid rgba(156,234,226,.2); border-radius: 14px; background: rgba(7,15,44,.45); cursor: pointer; }
.shop-nickname-color-offer-island { background: linear-gradient(135deg, rgba(94,234,212,.08), rgba(196,181,253,.1) 50%, rgba(249,168,212,.08)), rgba(7,15,44,.45); }
.shop-nickname-color-offer:has(input:checked) { border-color: #9ceae2; background-color: #193e4f; box-shadow: inset 0 0 0 1px #9ceae2; }
.shop-nickname-color-offer:has(input:focus-visible) { outline: 3px solid #9ceae2; outline-offset: 3px; }
.shop-nickname-color-offer:has(input:disabled) { cursor: default; opacity: .66; }
.shop-nickname-color-offer-input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #35d5c8; }
.shop-nickname-color-offer-copy { display: grid; gap: 4px; min-width: 0; }
.shop-nickname-color-offer-copy strong { color: #f8fafc; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.shop-nickname-color-offer-copy span { color: #cbd5e1; font-size: 14px; line-height: 1.45; }
.shop-nickname-color-offer-price { grid-column: 2; align-self: end; color: #ffe3a3; font-size: 14px; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.shop-nickname-color-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 30px; margin-top: 16px; }
.shop-nickname-color-wheel {
  appearance: none;
  position: relative;
  width: min(220px, 100%);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, white, transparent 100%),
    conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  cursor: crosshair;
  touch-action: none;
}
.shop-nickname-color-wheel:focus-visible { outline: 3px solid #9ceae2; outline-offset: 4px; }
.shop-nickname-color-wheel:disabled { opacity: .66; cursor: default; }
.shop-nickname-color-marker {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #121938;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.shop-nickname-color-controls { display: grid; gap: 10px; width: min(260px, 100%); color: #e2e8f0; }
.shop-nickname-color-controls label { font-weight: 800; }
.shop-nickname-color-controls input { width: 100%; margin: 0; accent-color: #35d5c8; }
.shop-nickname-color-contrast-warning {
  margin: 16px 0 12px;
  padding: 12px 15px;
  border: 1px solid #eaa751;
  border-left-width: 4px;
  border-radius: 12px;
  background: #382815;
  color: #fff1cb;
}
.shop-nickname-color-contrast-warning strong { display: block; margin-bottom: 3px; color: #ffd68c; }
.shop-nickname-color-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shop-buy-dialog .shop-pack-copy { overflow-wrap: anywhere; }
@media (max-width: 500px) {
  .shop-status-page .shop-nav { width: 100%; }
  .shop-status-page .shop-nav > * { flex: 1 1 140px; }
}

@media (max-width: 799px) {
  .shop-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-panda-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shop-gift-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 500px) {
  .shop-visitor-stats { padding: 18px; }
  .shop-intro { align-items: flex-start; gap: 16px; padding: 20px; }
  .shop-shell { width: 52px; height: 52px; border-radius: 15px; }
  .shop-shell svg { width: 42px; height: 42px; }
  .shop-category-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .shop-category { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 8px 14px; padding: 18px; }
  .shop-category-icon { grid-row: 1 / 4; width: 44px; height: 44px; margin: 0; }
  .shop-category h3 { margin: 0; font-size: 19px; }
  .shop-category p { grid-column: 2; }
  .shop-category .shop-category-meta { margin-top: 0; padding-top: 4px; }
  .shop-pack-panel { padding: 18px; }
  .shop-pack-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-pack-summary > div:last-child { grid-column: 1 / -1; }
  .shop-panda-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .shop-panda-page .shop-nav { width: 100%; }
  .shop-panda-page .shop-nav > * { flex: 1 1 140px; }
  .shop-gifts-page .shop-nav { width: 100%; }
  .shop-gifts-page .shop-nav > * { flex: 1 1 140px; }
  .shop-nick-page .shop-nav { width: 100%; }
  .shop-nick-page .shop-nav > * { flex: 1 1 140px; }
  .shop-nick-profile { align-items: flex-start; gap: 16px; }
  .shop-nick-avatar { flex-basis: 72px; width: 72px; height: 72px; font-size: 30px; }
  .shop-rooms-page .shop-nav { width: 100%; }
  .shop-rooms-page .shop-nav > * { flex: 1 1 140px; }
  .shop-vip-page .shop-nav { width: 100%; }
  .shop-vip-page .shop-nav > * { flex: 1 1 140px; }
  .shop-nickname-color-page .shop-nav { width: 100%; }
  .shop-nickname-color-page .shop-nav > * { flex: 1 1 140px; }
  .shop-nickname-color-offers { grid-template-columns: minmax(0, 1fr); }
  .shop-nickname-color-summary { grid-template-columns: minmax(0, 1fr); }
  .shop-nickname-color-summary > div:last-child { grid-column: auto; }
  .shop-room-profile { align-items: flex-start; gap: 16px; }
  .shop-room-avatar { flex-basis: 72px; width: 72px; height: 72px; font-size: 30px; }
  .shop-room-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-room-summary > div, .shop-room-summary > div:nth-child(n+4) { grid-column: auto; }
  .shop-room-summary > div:nth-child(3) { grid-column: 1 / -1; }
  .shop-gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shop-gift-friends { grid-template-columns: minmax(0, 1fr); }
  .shop-gift-summary { grid-template-columns: minmax(0, 1fr); }
  .shop-pack-actions > * { flex: 1 1 180px; }
}

@media (max-width: 430px) {
  body { padding-top: 20px; }
  .shop-header { gap: 16px; }
  .shop-header .shop-close { width: 100%; }
  .shop-footer .shop-close { width: 100%; }
}

@media (max-width: 359px) {
  .shop-panda-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .shop-nickname-color-text.is-island { animation: none; background-position: 50% 50%; }
}
