/* Floralia · the full-screen dressing rooms (2026-10-13, the user: "ออกแบบห้องแต่งตัวให้ผมเลือก 5 แบบ", then "ห้องหรูและ
   ละเอียดขึ้น · ห้องเต็มจอ ไม่ใช้สมุด · เปลี่ยนธีมห้อง · ให้มีแสงและเงา · พร้อมวีเอฟเฟคดูว้าว").
   js/avatar_ps.js gives #avatarps the class .av-room and #avatarps[data-dress] 1-5; the book (js/bookui.js) leaves it be.
   Layers: the room (.avr-bg, Codex art assets/ui_book/dress/rooms2/room_N.jpg), its light alone (.avr-light, light_N.jpg,
   screen blend, breathing), a slow sweep of light, the vignette; the character and the room's particles on the stage
   canvas over the whole screen; the menus as glass panels: the tabs down the left, the choices on the right, the poses
   under the character, the rooms along the top. 0 keeps the old look in the book (nothing here touches it). */

#ui #avatarps.av-room { position: fixed; inset: 0; z-index: 60; display: block; padding: 0; overflow: hidden; background: #0b0810; animation: avrIn 0.5s ease-out both; }
#ui #avatarps.av-room .avd { position: absolute; }
#ui #avatarps.av-room .avr-bg, #ui #avatarps.av-room .avr-light, #ui #avatarps.av-room .avr-sweep, #ui #avatarps.av-room .avr-vig { inset: 0; pointer-events: none; }
#ui #avatarps.av-room .avr-bg { background: center / cover no-repeat; }
#ui #avatarps.av-room .avr-light { background: center / cover no-repeat; mix-blend-mode: screen; opacity: 0.85; }
#ui #avatarps.av-room .avr-sweep { background: linear-gradient(105deg, transparent 38%, rgba(255, 250, 230, 0.18) 50%, transparent 62%) 0 0 / 260% 100% no-repeat; mix-blend-mode: screen; }
#ui #avatarps.av-room .avr-vig { background: radial-gradient(ellipse at 50% 56%, transparent 52%, rgba(8, 4, 16, 0.6) 100%); }

/* the panel's own frame gives way to the room */
#ui #avatarps.av-room > .panel { position: absolute; inset: 0; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0;
  display: block; background: none; border: 0; border-radius: 0; box-shadow: none; }
#ui #avatarps.av-room .panel-head { position: absolute; left: 2.2vw; top: 2.6vh; z-index: 3; max-width: 26vw; background: none; border: 0; padding: 0; }
#ui #avatarps.av-room .panel-head h2 { margin: 0; font: 700 clamp(22px, 3.6vh, 42px)/1.1 'Mali', sans-serif; color: #ffe7a6; -webkit-text-fill-color: #ffe7a6;
  text-shadow: 0 2px 0 #3a2208, 0 0 16px rgba(255, 200, 90, 0.55); }
#ui #avatarps.av-room .panel-head h2 small { display: none; margin-top: 6px; font: 500 clamp(11px, 1.45vh, 15px)/1.45 'Mali', sans-serif; color: #f2ead6; -webkit-text-fill-color: #f2ead6; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
#ui #avatarps.av-room .close-x { position: fixed; right: 2vw; top: 2.4vh; z-index: 4; }
#ui #avatarps.av-room .av-body, #ui #avatarps.av-room .av-left { display: contents; }
#ui #avatarps.av-room .av-stage { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; z-index: 1; background: none; border: 0; border-radius: 0; pointer-events: none; }
#ui #avatarps.av-room .av-note { display: none; }

/* glass panels */
#ui #avatarps.av-room :is(.av-right, .avd-poses, .avd-rooms)::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(180deg, rgba(34, 24, 50, 0.62), rgba(18, 12, 28, 0.7)); border: 1px solid rgba(255, 220, 150, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#ui #avatarps.av-room .av-right { position: absolute; right: 2vw; top: 11vh; bottom: 21vh; width: 28vw; z-index: 3; isolation: isolate; display: flex; flex-direction: column;
  gap: 10px; padding: 16px 14px; border-radius: 20px; overflow: visible; background: none; border: 0; }
#ui #avatarps.av-room .av-grid { flex: 1; min-height: 0; overflow-y: auto; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 2px 6px 6px 2px; }
#ui #avatarps.av-room .av-grid.big { grid-template-columns: repeat(2, 1fr); }
#ui #avatarps.av-room .av-tile { border-radius: 14px; border: 1px solid rgba(255, 220, 150, 0.35); background: rgba(255, 255, 255, 0.07); color: #f2ead6; -webkit-text-fill-color: #f2ead6;
  font: 600 13px/1.25 'Mali', sans-serif; transition: transform 0.12s, box-shadow 0.12s, background-color 0.12s; }
#ui #avatarps.av-room .av-tile:hover { transform: translateY(-2px); background-color: rgba(255, 230, 170, 0.14); }
#ui #avatarps.av-room .av-tile.on { border-color: #ffd773; background-color: rgba(255, 210, 120, 0.2); box-shadow: 0 0 0 2px rgba(255, 215, 115, 0.55), 0 0 20px rgba(255, 200, 90, 0.65); }
#ui #avatarps.av-room .av-sec { color: #ffe08a; -webkit-text-fill-color: #ffe08a; font: 700 15px 'Mali', sans-serif; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); }
#ui #avatarps.av-room .av-sw { border-color: rgba(255, 255, 255, 0.45); }
#ui #avatarps.av-room .av-sw.on { border-color: #ffd773; box-shadow: 0 0 0 2px rgba(255, 215, 115, 0.5), 0 0 12px rgba(255, 200, 90, 0.7); }

/* the tabs down the left */
#ui #avatarps.av-room .av-tabs { position: fixed; left: 2.2vw; top: 20vh; width: 15vw; z-index: 3; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 10px; }
#ui #avatarps.av-room .av-tabs .btn, #ui #avatarps.av-room .avd-dice { flex: none; min-height: 6vh; padding: 0 18px; border-radius: 14px; text-align: left; justify-content: flex-start;
  font: 700 clamp(14px, 2vh, 20px) 'Mali', sans-serif; color: #f2ead6; -webkit-text-fill-color: #f2ead6; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  background: linear-gradient(180deg, rgba(40, 28, 58, 0.78), rgba(22, 14, 34, 0.82)); border: 1px solid rgba(255, 220, 150, 0.45); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s, box-shadow 0.15s; }
#ui #avatarps.av-room .av-tabs .btn:hover { transform: translateX(4px); }
#ui #avatarps.av-room .av-tabs .btn.primary { transform: translateX(10px); color: #2c1a06; -webkit-text-fill-color: #2c1a06; text-shadow: none;
  background: linear-gradient(90deg, #ffe39a, #f2b14a); border-color: #fff1c4; box-shadow: 0 0 0 2px rgba(122, 76, 18, 0.6), 0 0 22px rgba(255, 200, 90, 0.75); }
#ui #avatarps.av-room .avd-dice { position: fixed; left: 2.2vw; top: auto; bottom: 21vh; width: 15vw; z-index: 3; text-align: center; justify-content: center; }

/* the poses under the character, the rooms along the top */
#ui #avatarps.av-room .avd-poses { position: fixed; left: 50%; bottom: 3.4vh; transform: translateX(-50%); z-index: 3; isolation: isolate; display: flex; gap: 6px; padding: 8px 10px; border-radius: 999px; }
#ui #avatarps.av-room .avd-poses .btn { min-height: 40px; padding: 0 16px; border-radius: 999px; font: 700 15px 'Mali', sans-serif; color: #f2ead6; -webkit-text-fill-color: #f2ead6;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 220, 150, 0.35); box-shadow: none; text-shadow: none; }
#ui #avatarps.av-room .avd-poses .btn.primary { color: #2c1a06; -webkit-text-fill-color: #2c1a06; background: linear-gradient(180deg, #ffe39a, #f2b14a); border-color: #fff1c4; box-shadow: 0 0 14px rgba(255, 200, 90, 0.7); }
#ui #avatarps.av-room .avd-rooms { position: fixed; left: 50%; top: 2vh; transform: translateX(-50%); z-index: 3; isolation: isolate; display: flex; gap: 8px; padding: 8px; border-radius: 16px; }
#ui #avatarps.av-room .avd-rooms button { position: relative; width: 6.6vw; min-width: 76px; aspect-ratio: 3 / 2; padding: 0; border: 2px solid rgba(255, 255, 255, 0.55); border-radius: 10px; overflow: hidden; cursor: pointer; background: #000;
  transition: transform 0.15s, box-shadow 0.15s; }
#ui #avatarps.av-room .avd-rooms button img { width: 100%; height: 100%; object-fit: cover; display: block; }
#ui #avatarps.av-room .avd-rooms button span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 3px; font: 700 10px/1.2 'Mali', sans-serif; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ui #avatarps.av-room .avd-rooms button:hover { transform: translateY(-2px); }
#ui #avatarps.av-room .avd-rooms button.on { border-color: #ffd773; box-shadow: 0 0 0 2px rgba(122, 76, 18, 0.7), 0 0 16px rgba(255, 210, 110, 0.85); }

/* the name and the start button under the choices */
#ui #avatarps.av-room .ac-foot { position: fixed; right: 2vw; bottom: 3.4vh; width: 28vw; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
#ui #avatarps.av-room .av-name { flex: 1 1 100%; display: flex; align-items: center; gap: 10px; font: 700 16px 'Mali', sans-serif; color: #ffe7a6; -webkit-text-fill-color: #ffe7a6; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
#ui #avatarps.av-room .av-name input { flex: 1; width: auto; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255, 220, 150, 0.6); background: rgba(16, 10, 24, 0.75); color: #fff; font: 600 18px 'Mali', sans-serif; }
#ui #avatarps.av-room .av-err { flex: 1 1 100%; color: #ffb4b4; text-shadow: 0 1px 2px #000; }
#ui #avatarps.av-room .ac-foot .btn { min-height: 48px; padding: 0 22px; border-radius: 14px; font: 700 17px 'Mali', sans-serif; }
#ui #avatarps.av-room .ac-foot .btn:not(.primary) { color: #f2ead6; -webkit-text-fill-color: #f2ead6; background: rgba(30, 20, 44, 0.8); border: 1px solid rgba(255, 220, 150, 0.45); }
#ui #avatarps.av-room .ac-foot .btn.primary { color: #2c1a06; -webkit-text-fill-color: #2c1a06; background: linear-gradient(180deg, #ffe7a0, #f0a83c); border: 1px solid #fff1c4;
  box-shadow: 0 0 0 2px rgba(122, 76, 18, 0.6), 0 0 22px rgba(255, 200, 90, 0.75); }

/* each room's own choice tiles (Codex: tile_N.jpg - painted with the first rooms, assets/ui_book/dress/rooms; their colours match the
   picked rooms2 in the same order, which has none of its own: rooms2/tile_N was a missing file, 2026-10-17) */
#ui #avatarps.av-room[data-dress="1"] .av-tile { background-image: url(../assets/ui_book/dress/rooms/tile_1.jpg); }
#ui #avatarps.av-room[data-dress="2"] .av-tile { background-image: url(../assets/ui_book/dress/rooms/tile_2.jpg); }
#ui #avatarps.av-room[data-dress="3"] .av-tile { background-image: url(../assets/ui_book/dress/rooms/tile_3.jpg); }
#ui #avatarps.av-room[data-dress="4"] .av-tile { background-image: url(../assets/ui_book/dress/rooms/tile_4.jpg); }
#ui #avatarps.av-room[data-dress="5"] .av-tile { background-image: url(../assets/ui_book/dress/rooms/tile_5.jpg); }
#ui #avatarps.av-room .av-tile { background-size: cover; background-position: center; background-blend-mode: soft-light; }

@keyframes avrIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  #ui #avatarps.av-room .avr-light { animation: avrBreath 5s ease-in-out infinite; }
  #ui #avatarps.av-room .avr-sweep { animation: avrSweep 9s ease-in-out infinite; }
  @keyframes avrBreath { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
  @keyframes avrSweep { 0% { background-position: 130% 0; } 60%, 100% { background-position: -30% 0; } }
}
@media (max-width: 900px) {
  #ui #avatarps.av-room .av-right, #ui #avatarps.av-room .ac-foot { width: 44vw; }
  #ui #avatarps.av-room .av-tabs, #ui #avatarps.av-room .avd-dice { width: 22vw; }
}

/* the fashion outfits you own (their tile shows the outfit worn) and the wings tab (js/avatar_ps.js, js/fashion.js) */
#ui #avatarps .av-tile.av-worn img { object-fit: contain; object-position: center 20%; }
#ui #avatarps .av-tile.av-nowing::before { content: '✕'; display: block; font: 700 34px/72px 'Mali', sans-serif; opacity: 0.55; }

/* a fashion outfit's / a wing's tier in the dressing room (js/avatar_ps.js tiles): a heading per tier, the tile framed in the
   tier's colour, the tier's name on a tag (dark tag, coloured letters: crisp, no halo) */
#ui #avatarps .av-tile.av-tier { position: relative; border: 2px solid var(--tc); box-shadow: inset 0 0 0 100px color-mix(in srgb, var(--tc) 14%, transparent); }
#ui #avatarps .av-tile.av-tier.on { box-shadow: inset 0 0 0 100px color-mix(in srgb, var(--tc) 22%, transparent), 0 0 0 2px #1b1030, 0 0 0 5px #ffd773; }
#ui #avatarps .av-tile .av-tg { position: absolute; left: 6px; top: 6px; z-index: 1; padding: 0 8px; border-radius: 999px; background: #1b1030; border: 1px solid var(--tc); color: var(--tc); -webkit-text-fill-color: var(--tc); font: 800 12px/18px 'Mali', sans-serif; font-style: normal; }
#ui #avatarps .av-sec.av-tierh { text-shadow: none; grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 10px 0 2px; padding: 4px 12px; border-radius: 999px; background: #1b1030; border: 1px solid var(--tc); color: var(--tc); -webkit-text-fill-color: var(--tc); }
#ui #avatarps .av-sec.av-tierh i { width: 12px; height: 12px; border-radius: 3px; background: var(--tc); transform: rotate(45deg); }
#ui #avatarps .av-sec.av-tierh small { margin-left: auto; font-weight: 600; opacity: 0.85; color: #f2ead6; -webkit-text-fill-color: #f2ead6; }

/* the facts of the outfit / wings worn or pointed at, kept in view at the top of the list (js/avatar_ps.js showInfo) */
#ui #avatarps .av-finfo { grid-column: 1 / -1; position: sticky; top: 0; z-index: 3; padding: 8px 12px 9px; border-radius: 12px; background: #1b1030; border: 2px solid var(--tc); color: #f2ead6; -webkit-text-fill-color: #f2ead6; font: 500 13px/1.45 'Mali', sans-serif; text-align: left; }
#ui #avatarps .av-finfo h5 { display: flex; align-items: center; gap: 8px; margin: 0 0 3px; font: 800 17px/1.2 'Mali', sans-serif; }
#ui #avatarps .av-finfo h5 em { padding: 0 9px; border-radius: 999px; border: 1px solid var(--tc); color: var(--tc); -webkit-text-fill-color: var(--tc); font: 800 13px/20px 'Mali', sans-serif; font-style: normal; white-space: nowrap; }
#ui #avatarps .av-finfo h5 b { flex: 1; min-width: 0; color: #fff; -webkit-text-fill-color: #fff; }
#ui #avatarps .av-finfo h5 i { padding: 0 9px; border-radius: 999px; background: #2f9a3c; color: #fff; -webkit-text-fill-color: #fff; font: 700 12px/20px 'Mali', sans-serif; font-style: normal; white-space: nowrap; }
#ui #avatarps .av-finfo p { margin: 0; }

/* the fashion collection's stats: the button in the dressing room's lists and its window (js/fashion.js openCollect) */
#ui #avatarps .av-collect { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 8px 12px; border-radius: 12px; border: 2px solid #ffd773; background: #2a1a44; color: #f2ead6; -webkit-text-fill-color: #f2ead6; font: 500 13px/1.4 'Mali', sans-serif; text-align: left; cursor: pointer; }
#ui #avatarps .av-collect b { font: 800 15px 'Mali', sans-serif; color: #ffe08a; -webkit-text-fill-color: #ffe08a; }
#ui #avatarps .av-collect span { flex: 1 1 100%; order: 3; }
#ui #avatarps .av-collect i { margin-left: auto; font-style: normal; font-weight: 700; color: #9fe0ff; -webkit-text-fill-color: #9fe0ff; }
#ui #avatarps .av-collect:hover { background: #38235a; }
#fcollect { position: fixed; inset: 0; z-index: 960; display: grid; place-items: center; background: rgba(8, 4, 18, 0.66); font-family: 'Mali', sans-serif; }
#fcollect .fc-in { position: relative; width: min(860px, 94vw); max-height: 90vh; overflow-y: auto; padding: 22px 26px 24px; border-radius: 20px; background: #22153a; border: 2px solid #ffd98a; color: #f4e9d2; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
#fcollect .fc-x { position: absolute; right: 14px; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 2px solid #ffd98a; background: #3a2460; color: #ffe9b8; font: 800 18px 'Mali', sans-serif; cursor: pointer; }
#fcollect h3 { margin: 0 0 4px; font: 800 28px 'Mali', sans-serif; color: #ffe7a6; }
#fcollect h4 { margin: 18px 0 8px; font: 800 19px 'Mali', sans-serif; color: #ffe7a6; }
#fcollect .fc-lead { margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: #d9cdea; }
#fcollect .fc-bar { position: relative; height: 30px; border-radius: 999px; background: #140b24; border: 2px solid #6b4fa0; overflow: hidden; }
#fcollect .fc-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #ff8fc8, #ffd257); }
#fcollect .fc-bar b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 16px 'Mali', sans-serif; color: #fff; -webkit-text-stroke: 3px #1b0d2a; paint-order: stroke fill; }
#fcollect .fc-total { margin: 12px 0 14px; padding: 10px 16px; border-radius: 14px; background: #2f1e50; border: 2px solid #ffd257; }
#fcollect .fc-total small { display: block; font-size: 14px; color: #d9cdea; }
#fcollect .fc-total b { font: 800 20px/1.4 'Mali', sans-serif; color: #fff; }
#fcollect table { width: 100%; border-collapse: collapse; font-size: 15px; }
#fcollect thead th { padding: 6px 8px; text-align: left; font-weight: 700; color: #c9bfe0; border-bottom: 2px solid #4a3470; }
#fcollect tbody th, #fcollect tbody td { padding: 7px 8px; text-align: left; border-bottom: 1px solid #3a2a5a; vertical-align: top; }
#fcollect tbody th em { display: inline-block; padding: 0 12px; border-radius: 999px; border: 2px solid var(--tc); background: #1b1030; color: var(--tc); font: 800 15px/24px 'Mali', sans-serif; font-style: normal; white-space: nowrap; }
#fcollect td small { color: #c9bfe0; }
#fcollect .fc-miles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
#fcollect .fc-miles li { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding: 8px 12px; border-radius: 12px; background: #1a1030; border: 2px solid #4a3470; }
#fcollect .fc-miles li b { font: 800 16px 'Mali', sans-serif; color: #c9bfe0; }
#fcollect .fc-miles li span { font-weight: 700; color: #f4e9d2; }
#fcollect .fc-miles li i { grid-column: 1 / -1; font-style: normal; font-size: 13px; color: #a99cc4; }
#fcollect .fc-miles li.on { border-color: #5fd16a; background: #1d3a26; }
#fcollect .fc-miles li.on b, #fcollect .fc-miles li.on i { color: #8be37b; }

/* the outfit CARDS (js/avatar_ps.js paintOutfits, 2026-10-17, the user: "ออกแบบให้สวยงาม ทั้งกรอบและพื้นหลัง จัดองค์ประกอบให้พอดี"):
   the room's own backdrop with its little stage, the character drawn live standing on it, the ornate frame over all, the
   outfit's name on the frame's plate (Codex art assets/ui_book/dress/cards: card_bg_<room>, card_frame, card_frame_on) */
#ui #avatarps .av-tile.av-card { position: relative; display: block; padding: 0; aspect-ratio: 320 / 384; border: 0; border-radius: 16px; overflow: visible;
  background: #1b1030 url(../assets/ui_book/dress/cards/card_bg_1.jpg) center / 100% 100% no-repeat; background-blend-mode: normal;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35); transition: transform 0.12s, box-shadow 0.12s, filter 0.12s; }
#ui #avatarps[data-dress="2"] .av-tile.av-card { background-image: url(../assets/ui_book/dress/cards/card_bg_2.jpg); }
#ui #avatarps[data-dress="3"] .av-tile.av-card { background-image: url(../assets/ui_book/dress/cards/card_bg_3.jpg); }
#ui #avatarps[data-dress="4"] .av-tile.av-card { background-image: url(../assets/ui_book/dress/cards/card_bg_4.jpg); }
#ui #avatarps[data-dress="5"] .av-tile.av-card { background-image: url(../assets/ui_book/dress/cards/card_bg_5.jpg); }
#ui #avatarps .av-tile.av-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: fill; }
#ui #avatarps .av-tile.av-card::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url(../assets/ui_book/dress/cards/card_frame.png) center / 100% 100% no-repeat; }
#ui #avatarps .av-tile.av-card.on::after { background-image: url(../assets/ui_book/dress/cards/card_frame_on.png); }
#ui #avatarps .av-tile.av-card > span { position: absolute; z-index: 2; left: 12%; right: 12%; top: 86.2%; display: block; text-align: center;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 700 11px/1.5 'Mali', sans-serif; color: #ffe7a6; -webkit-text-fill-color: #ffe7a6; text-shadow: none; }
#ui #avatarps .av-tile.av-card:hover { transform: translateY(-2px); filter: brightness(1.06); background-color: #1b1030; }
#ui #avatarps .av-tile.av-card.on { box-shadow: 0 0 0 2px #ffd773, 0 0 16px rgba(255, 200, 90, 0.6); background-color: #1b1030; }
#ui #avatarps .av-tile.av-card.av-tier { border: 0; box-shadow: 0 0 0 2px var(--tc), 0 4px 10px rgba(0, 0, 0, 0.35); }
#ui #avatarps .av-tile.av-card.av-tier.on { box-shadow: 0 0 0 2px var(--tc), 0 0 0 5px #ffd773, 0 0 16px rgba(255, 200, 90, 0.6); }
#ui #avatarps .av-tile.av-card .av-tg { z-index: 3; left: 9%; top: 5%; }
/* (a card's height comes from its width - aspect-ratio; the rows of a list that scrolls must not squeeze it) */
#ui #avatarps .av-grid:has(.av-card) { grid-auto-rows: max-content; align-content: start; }
/* the creator and dressing room tabs: ชุด / ทรงผม / ของตกแต่งหัว (2026-10-20, the Floralia set's hairstyles and the goggles as a head piece) */
#ui #avatarps .av-tabs { display: flex; gap: 6px; margin: 0 0 10px; }
#ui #avatarps .av-tab { flex: 1; padding: 9px 4px; border-radius: 12px; border: 1px solid rgba(255, 220, 150, 0.35); background: rgba(20, 14, 30, 0.6);
  color: #f2ead6; -webkit-text-fill-color: #f2ead6; font: 700 15px/1.2 'Mali', sans-serif; cursor: pointer; }
#ui #avatarps .av-tab:hover { background: rgba(255, 230, 170, 0.14); }
#ui #avatarps .av-tab.on { border-color: #ffd773; background: rgba(255, 210, 120, 0.28); box-shadow: 0 0 0 1px rgba(255, 215, 115, 0.5); }
#ui #avatarps .av-grid.av-heads, #ui #avatarps.av-room .av-grid.av-heads { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: max-content; align-content: start; overflow-x: hidden; }
#ui #avatarps .av-heads .av-tile { min-width: 0; }
#ui #avatarps .av-heads .av-tcv { width: 100%; height: auto; aspect-ratio: 1; display: block; }
#ui #avatarps .av-grid[hidden] { display: none; }
/* (a tile's name on a small dark label: readable on every room's tile picture - the light rooms showed none) */
#ui #avatarps.av-room .av-tile > span { display: inline-block; margin-top: 2px; padding: 1px 8px; border-radius: 8px; background: rgba(28, 18, 40, 0.72);
  color: #fff4dc; -webkit-text-fill-color: #fff4dc; font: 600 12px/1.35 'Mali', sans-serif; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the hair colour bar (2026-10-20, "ทำให้เปลี่ยนสีผมได้อิสระและทุกสี"): the swatches, then any colour */
#ui #avatarps .av-cols { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 2px 8px; }
#ui #avatarps .av-col { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 244, 220, 0.75); padding: 0; cursor: pointer;
  background: linear-gradient(135deg, #8a5a2b, #5b3a1c); color: #fff4dc; -webkit-text-fill-color: #fff4dc; font: 700 10px/26px 'Mali', sans-serif; text-align: center; }
#ui #avatarps .av-col.on { border-color: #ffd773; box-shadow: 0 0 0 2px #1b1030, 0 0 0 4px #ffd773; }
#ui #avatarps .av-wheel { flex-basis: 100%; }
#ui #avatarps .cw { display: flex; gap: 12px; align-items: center; padding: 6px 8px; border-radius: 12px; background: rgba(28, 18, 40, 0.55); }
#ui #avatarps .cw-ring { border-radius: 50%; cursor: crosshair; touch-action: none; display: block; flex: none; }
#ui #avatarps .cw-side { display: grid; gap: 8px; flex: 1; min-width: 0; }
#ui #avatarps .cw-chip { display: block; height: 28px; border-radius: 8px; border: 2px solid #fff4dc; }
#ui #avatarps .cw-val { width: 100%; height: 14px; border-radius: 7px; -webkit-appearance: none; appearance: none; outline: none; margin: 0; }
#ui #avatarps .cw-val::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #1b1030; }
#ui #avatarps .cw-hex { font: 600 12px/1 ui-monospace, monospace; color: #fff4dc; -webkit-text-fill-color: #fff4dc; }
/* the costumes (js/costume.js, 2026-10-21): the filter row, each tile's tier, a lock on the ones not yours yet */
#ui #avatarps .av-ofil { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 4px; }
#ui #avatarps .av-of { font-size: 14px; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--tc, rgba(255, 220, 150, 0.45)); background: rgba(0, 0, 0, 0.35); color: #f2ead6; -webkit-text-fill-color: #f2ead6; cursor: pointer; }
#ui #avatarps .av-of.on { background: var(--tc, #ffd773); color: #1d1408; -webkit-text-fill-color: #1d1408; font-weight: 700; }
#ui #avatarps .av-of.av-ogo { margin-left: auto; border-color: #ffd773; }
#ui #avatarps .av-tile { position: relative; }
#ui #avatarps .av-tile[style*="--tc"] { box-shadow: inset 0 0 0 2px var(--tc); }
#ui #avatarps .av-tier { position: absolute; top: 6px; left: 6px; font: 700 11px/1 system-ui, sans-serif; font-style: normal; padding: 3px 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.62); color: var(--tc); -webkit-text-fill-color: var(--tc); }
#ui #avatarps .av-tile.av-lock img, #ui #avatarps .av-tile.av-lock canvas { filter: grayscale(0.75) brightness(0.55); }
#ui #avatarps .av-lk { position: absolute; top: 6px; right: 6px; font-size: 16px; font-style: normal; }
