/* big-art + big-wardrobe */
.ba-figure { display: inline-block; line-height: 0; position: relative; }
.ba-figure canvas { display: block; pointer-events: none; }
.ba-bust { position: relative; overflow: hidden; border-radius: 50%; border: 3px solid var(--gold, #e8c46a);
  background: radial-gradient(circle at 50% 35%, #fff6e8, #ffd9e8 70%); box-shadow: 0 2px 8px rgba(120, 60, 80, .35), inset 0 0 0 2px #fff8; flex: none; }

/* full-screen modal */
.ui-wrap:has(.bw-modal) { padding: 0 !important; align-items: stretch; justify-content: stretch; }
.ui-sheet.bw-modal { width: 100% !important; max-width: none !important; height: 100% !important; max-height: none !important; margin: 0;
  border-radius: 0; padding: 8px 6px 8px !important; display: flex; flex-direction: column; box-sizing: border-box;
  background: linear-gradient(180deg, #fff3f8 0%, #ffeaf2 45%, #fdf6e6 100%); border: 4px solid var(--gold, #e8c46a); border-image: none; }
.bw-modal .ui-title { text-align: center; margin: 0 56px 0 56px; flex: none; }
.bw-modal .ui-title .title-text { font-size: 22px; }
.bw-modal .ui-x { left: 8px !important; right: auto !important; top: 6px !important; width: 44px; height: 44px; z-index: 5; }
.bw-modal .ui-body { flex: 1; min-height: 0; padding: 0 !important; overflow: hidden !important; display: flex; flex-direction: column; }
.bw-root { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 4px; }
.bw-name { text-align: center; font-size: 15px; color: #fff; font-weight: 700; text-shadow: var(--outline, 0 0 3px #a04070, 0 1px 2px #a04070); letter-spacing: 1px; flex: none; }

.bw-preview { flex: 0 0 50%; min-height: 0; position: relative; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; border-radius: 18px;
  background: radial-gradient(ellipse at 50% 70%, #fffbe8 0%, #ffe3ef 55%, #f1e4ff 100%); border: 2px solid var(--gold-l, #f6dc95); box-shadow: inset 0 0 18px #fff9; }
.bw-glow { position: absolute; left: 50%; top: 40%; width: 80%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff 0%, #ffffff00 65%); animation: bwGlow 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes bwGlow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.bw-pedestal { position: absolute; left: 50%; bottom: 1%; width: 62%; height: 7%; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse, #fff 0%, #ffe9a8 50%, #e8c46a 100%); box-shadow: 0 0 18px #ffe28aaa, 0 3px 0 #c99a3a; pointer-events: none; }
.bw-cv { position: relative; z-index: 1; display: block; transform-origin: 50% 100%; pointer-events: none; }

.bw-tabs { flex: none; display: flex; flex-direction: row; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 4px; scrollbar-width: none; }
.bw-tabs::-webkit-scrollbar { display: none; }
.bw-tab { flex: none; min-width: 64px; height: 46px; padding: 0 10px; border-radius: 23px; display: flex; align-items: center; justify-content: center; gap: 4px;
  font: 700 14px var(--font); color: #fff; text-shadow: var(--outline, 0 1px 2px #a04070); background: linear-gradient(180deg, #d9c6ee, #b9a2dc);
  border: 2px solid #fff; box-shadow: 0 2px 0 #8c78b8; cursor: pointer; white-space: nowrap; }
.bw-tab .bw-ti { font-size: 17px; text-shadow: none; }
.bw-tab.on { background: linear-gradient(180deg, #ffb3d1, var(--pink, #ff7fb0)); box-shadow: 0 2px 0 var(--pink-d, #d9568a), 0 0 10px #ff9ec4; }
.bw-tab.focus, .bw-cell.focus { outline: 3px solid var(--gold, #e8c46a); outline-offset: 1px; }

.bw-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; align-content: start; padding: 4px 2px;
  background: #fff7; border-radius: 12px; border: 2px solid var(--gold-l, #f6dc95); }
.bw-cell { position: relative; min-width: 72px; min-height: 92px; border-radius: 12px; padding: 3px 3px 2px; display: flex; flex-direction: column; align-items: center;
  background: var(--cream, #fff8ea); border: 2px solid var(--gold-l, #f6dc95); box-shadow: 0 2px 0 #e3cd92; cursor: pointer; overflow: hidden; transition: transform .12s; }
.bw-cell:active { transform: scale(.94); }
.bw-cell.on { border-color: var(--pink, #ff7fb0); background: linear-gradient(180deg, #fff0f6, #ffd3e5); box-shadow: 0 0 0 2px #ff9ec4, 0 0 12px #ff9ec4; }
.bw-th { width: 100%; height: 62px; display: flex; align-items: center; justify-content: center; }
.bw-th img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bw-x { font-size: 30px; color: #c9a9bd; }
.bw-nm { font: 700 13px/1.15 var(--font); color: var(--ink, #6b4a5a); text-align: center; width: 100%; margin-top: 1px; word-break: break-all; }
.bw-cell.locked .bw-th, .bw-cell.locked .bw-nm { opacity: .45; filter: grayscale(.5); }
.bw-lock { position: absolute; left: 0; right: 0; bottom: 0; top: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 1px; padding-bottom: 20px; pointer-events: none; }
.bw-lk { position: absolute; top: 4px; right: 4px; font-size: 14px; background: #fffc; border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; line-height: 1; }
.bw-why, .bw-price { margin-bottom: 18px; font: 700 12px/1.1 var(--font); color: #fff; text-shadow: var(--outline, 0 0 3px #7a3050, 0 1px 2px #7a3050); background: #7a3a5acc; border-radius: 8px; padding: 2px 5px; text-align: center; max-width: 94%; }
.bw-price { display: flex; align-items: center; gap: 2px; }
.bw-price img { width: 14px; height: 14px; }
.bw-lock .bw-why, .bw-lock .bw-price { position: absolute; bottom: 20px; margin: 0; }
.bw-gem { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd1e3, var(--pink, #ff7fb0)); color: #fff;
  font: 700 14px/22px var(--font); text-align: center; box-shadow: 0 0 6px #ff7fb0; text-shadow: 0 1px 1px #a04070; }

.bw-bar { flex: none; display: flex; gap: 6px; justify-content: center; padding: 2px 0 0; }
.bw-bar .btn { flex: 1; min-width: 0; min-height: 46px; padding: 0 4px; font-size: 14px; white-space: nowrap; }

.bw-saves { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; }
.bw-save { display: flex; gap: 10px; align-items: center; background: #fff8; border: 2px solid var(--gold-l, #f6dc95); border-radius: 12px; padding: 6px; }
.bw-sfig { flex: none; width: 76px; height: 120px; overflow: hidden; display: flex; justify-content: center; }
.bw-sfig .ba-figure { transform: scale(1); }
.bw-sinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.bw-sname { font: 700 15px var(--font); color: var(--ink, #6b4a5a); }
.bw-sbtns { gap: 6px; }
.bw-sbtns .btn { min-height: 44px; min-width: 64px; }
