/* wardrobe.css — styling room, outfit preview window, outfit shop */

/* styling room: right panel */
.wd-side .pbody { padding-top: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.wd-strip { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; flex: none; padding: 4px 2px 2px; }
.wd-strip::-webkit-scrollbar { display: none; }
.wd-mem { flex: none; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; border-radius: 14px; padding: 2px 0;
  border: 3px solid transparent; transition: transform .12s, filter .12s; }
.wd-mem span { font: 800 12px/1.15 var(--font); color: var(--ink-soft); max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-mem .face { width: 52px !important; height: 52px !important; border-radius: 50%; }
.wd-mem.sel { border-color: var(--coral); background: #fff0e8; }
.wd-mem.sel span { color: var(--coral); }
.wd-gridbox { flex: 1 1 0; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 3px 3px 6px; scrollbar-width: thin; }
.wd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.wd-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 3px 5px; background: #fffdf7;
  border: 3px solid #ffd9c2; border-radius: 14px; cursor: pointer; transition: transform .12s, filter .12s; min-width: 0; min-height: 104px; }
.wd-card:active { transform: scale(.95); }
.wd-card.sel { border-color: var(--coral); background: #fff0e8; box-shadow: 0 0 0 3px rgba(255,122,107,.25); }
.wd-card .th { position: relative; width: 100%; height: 44px; border-radius: 9px; overflow: hidden; background: linear-gradient(#e9fbf6, #ffeede); }
.wd-card .th .wd-bust { width: 100%; height: 100%; object-fit: cover; display: block; }
.wd-card.lock .th .wd-bust { filter: grayscale(1) brightness(.85); opacity: .75; }
.wd-card .th .lk { position: absolute; right: 3px; top: 1px; font-size: 18px; }
.wd-card .nm { font: 900 13px/1.1 var(--font); color: var(--ink); text-align: center; max-width: 100%; min-height: 28px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; overflow-wrap: anywhere; }
.wd-card.lock .nm { color: var(--ink-soft); }
.wd-card .sub { font: 800 11px/1.15 var(--font); color: var(--ink-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-align: center; max-width: 100%; }
.wd-badge { display: inline-block; padding: 0 7px; border-radius: 10px; color: #fff; font: 900 12px/18px var(--font); max-width: 100%; white-space: nowrap; }
.wd-badge.wear { background: var(--coral); }
.wd-badge.own { background: var(--mint-d); }
.wd-card .need { font: 800 10px/1.1 var(--font); color: var(--ink-soft); }
.wd-note { white-space: pre-line; text-align: center; font: 800 18px/1.5 var(--font); color: var(--ink-soft); padding: 40px 12px; }
.wd-price { display: inline-flex; align-items: center; gap: 4px; color: var(--coral); font: 900 14px/1 var(--font); }
.wd-price .gi { width: 20px; height: 20px; object-fit: contain; }
.wd-plate { position: absolute; left: 70px; top: 482px; width: 340px; display: flex; flex-direction: column; align-items: center; pointer-events: none;
  padding: 4px 10px; border-radius: 16px; background: rgba(255,248,238,.92); border: 3px solid #fff; box-shadow: 0 3px 0 rgba(74,47,63,.25); }
.wd-plate b { font: 900 20px/1.2 var(--font); color: var(--ink); }
.wd-plate span { font: 800 14px/1.2 var(--font); color: var(--coral); }
.wd-plate span:empty { display: none; }

/* member notebook: full-body picture and the outfit worn */
.sc-pic img.full { width: 150px; max-width: none; height: 190px; object-fit: cover; object-position: 50% 0; }
.sc-wear { font: 800 14px/1.2 var(--font); color: var(--coral); text-align: center; }

/* outfit preview window */
.wd-prev { width: 640px; }
.wd-prev .minner.wd-pinner { display: flex; gap: 16px; align-items: stretch; text-align: left; max-height: 330px; overflow: visible; padding-top: 18px; }
.wd-pstage { position: relative; flex: none; width: 250px; height: 300px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #fff 0, #e9fbf6 45%, #ffd9c2 100%); border: 3px solid #fff; box-shadow: inset 0 0 0 2px #ffd9c2; }
.wd-pimg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.wd-pname { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); padding: 2px 12px; border-radius: 12px; background: rgba(255,255,255,.9);
  font: 900 16px/1.3 var(--font); color: var(--ink); white-space: nowrap; }
.wd-arrow { position: absolute !important; top: 120px; min-width: 48px !important; min-height: 56px !important; padding: 0 !important; font-size: 20px !important; }
.wd-arrow.l { left: 2px; }
.wd-arrow.r { right: 2px; }
.wd-pinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.wd-phead { display: flex; align-items: center; gap: 10px; }
.wd-picon { width: 64px; height: 64px; object-fit: contain; flex: none; border-radius: 12px; background: #fff; }
.wd-pttl { font: 900 26px/1.15 var(--font); color: var(--ink); }
.wd-tag { align-self: flex-start; padding: 0 10px; border-radius: 12px; background: var(--mint); color: #fff; font: 900 14px/24px var(--font); }
.wd-tag.lim { background: linear-gradient(90deg, var(--lilac), var(--coral)); }
.wd-pdesc { font: 700 16px/1.4 var(--font); color: var(--ink-soft); }
.wd-prow { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; border-radius: 12px; background: #fff; border: 2px solid #ffe3d3; }
.wd-prow .k { font: 800 16px/1.2 var(--font); color: var(--ink-soft); }
.wd-prow .wd-price { font-size: 20px; }
.wd-prow > b { font: 900 18px/1 var(--font); color: var(--mint-d); }
.wd-owned { align-self: flex-start; padding: 2px 12px; border-radius: 12px; background: var(--mint-d); color: #fff; font: 900 17px/1.4 var(--font); }
.wd-hint { color: var(--coral); font: 900 16px/1.3 var(--font); }
.wd-owned.sm, .wd-hint.sm { font-size: 13px; }

/* outfit shop: 3 x 2 */
.wd-shop { width: 640px; }
.wd-sub { font: 800 16px/1.3 var(--font); color: var(--ink-soft); margin-bottom: 8px; }
.wd-shopgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 6px 4px; }
.wd-scard { position: relative; min-height: 138px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 6px 8px; background: #fffdf7;
  border: 3px solid #ffd9c2; border-radius: 16px; cursor: pointer; transition: transform .12s, filter .12s; min-width: 0; }
.wd-scard:active { transform: scale(.95); }
.wd-scard .ic { width: 68px; height: 68px; object-fit: contain; }
.wd-scard .nm { font: 900 16px/1.15 var(--font); color: var(--ink); text-align: center; max-width: 100%; overflow-wrap: anywhere; }
.wd-corner { position: absolute; left: -4px; top: -6px; padding: 0 8px; border-radius: 10px; background: linear-gradient(90deg, var(--lilac), var(--coral)); color: #fff; font: 900 12px/20px var(--font); }
