/* the fashion machine's reveal, "the idol concert" (js/fashionshow.js, 2026-10-13): a 1920 x 1080 stage covering the screen,
   the scene on one canvas, the result's name plate and buttons as elements over it (Codex plates: assets/ui_book/fashionshow) */
#fshow { position: fixed; inset: 0; z-index: 946; overflow: hidden; background: #0a0518; user-select: none; cursor: pointer; }
#fshow .fs-stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; }
#fshow .fs-cv { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
#fshow .fs-res { position: absolute; inset: 0; pointer-events: none; }
#fshow.done { cursor: default; }
#fshow.done .fs-res { pointer-events: auto; }
#fshow .fs-skip { position: absolute; right: calc(var(--fs-in, 0px) + 28px); top: calc(var(--fs-bot, 0px) + 24px); padding: 8px 18px; border-radius: 999px; border: 2px solid rgba(255, 226, 160, 0.7);
  background: rgba(20, 10, 40, 0.72); color: #ffe9b8; font: 700 20px 'Mali', sans-serif; cursor: pointer; }
#fshow.done .fs-skip { display: none; }
#fshow kbd { font: 700 0.8em 'Mali', sans-serif; padding: 0 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.28); color: inherit; }
#fshow .fs-tier { position: absolute; left: 960px; top: calc(var(--fs-bot, 0px) + 150px); transform: translate(-50%, -100%); padding: 6px 30px; border-radius: 999px; background: #1b1030; border: 2px solid currentColor; font: 800 34px 'Mali', sans-serif; white-space: nowrap; animation: fsIn 0.4s ease-out both; }
#fshow .fs-plate { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding-top: 10px; box-sizing: border-box; background: center / 100% 100% no-repeat; animation: fsPlate 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
#fshow .fs-plate b { max-width: 62%; font: 800 34px/1.05 'Mali', sans-serif; color: #4a2a12; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#fshow .fs-plate small { font: 600 16px 'Mali', sans-serif; color: #7a5230; }
#fshow .fs-badge { position: absolute; display: grid; place-items: center; background: center / 100% 100% no-repeat; animation: fsPlate 0.5s 0.12s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
#fshow .fs-badge b { font: 800 30px 'Mali', sans-serif; color: #d6336c; }
#fshow .fs-btns { position: absolute; left: var(--fs-in, 0px); right: var(--fs-in, 0px); display: flex; justify-content: center; gap: 26px; animation: fsIn 0.4s 0.2s ease-out both; }
#fshow .fs-btn { height: 100%; flex: 0 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 0; padding: 0 34px 4px; background: center / 100% 100% no-repeat; cursor: pointer; transition: transform 0.12s, filter 0.12s; }
#fshow .fs-btn b { font: 800 30px/1.1 'Mali', sans-serif; color: #4a2a12; }
#fshow .fs-btn small { font: 600 16px 'Mali', sans-serif; color: #5e3b1c; }
#fshow .fs-btn:hover:not(:disabled) { transform: translateY(-4px) scale(1.03); filter: brightness(1.08); }
#fshow .fs-btn:active:not(:disabled) { transform: translateY(1px) scale(0.98); }
#fshow .fs-btn:disabled { filter: grayscale(0.8) brightness(0.8); cursor: default; }
#fshow .fs-btn.nope { animation: fsNope 0.35s; }
#fshow .fs-link { position: absolute; right: calc(var(--fs-in, 0px) + 36px); bottom: calc(var(--fs-bot, 0px) + 22px); padding: 6px 16px; border-radius: 999px; border: 2px solid rgba(255, 226, 160, 0.7); background: rgba(20, 10, 40, 0.72); color: #ffe9b8; font: 700 20px 'Mali', sans-serif; cursor: pointer; }
#fshow .fs-link:hover { background: rgba(60, 30, 100, 0.85); }
@keyframes fsIn { 0% { opacity: 0; translate: 0 18px; } 100% { opacity: 1; translate: 0 0; } }
@keyframes fsPlate { 0% { opacity: 0; scale: 0.6; } 100% { opacity: 1; scale: 1; } }
@keyframes fsNope { 25% { translate: -8px 0; } 75% { translate: 8px 0; } }
@media (prefers-reduced-motion: reduce) { #fshow .fs-tier, #fshow .fs-plate, #fshow .fs-badge, #fshow .fs-btns { animation: none; } }

/* ten at once: the row of cards along the top; the auto run's bar and its settings (js/fashionshow.js) */
#fshow .fs-grid { position: absolute; left: var(--fs-in, 0px); right: var(--fs-in, 0px); top: calc(var(--fs-bot, 0px) + 18px); display: flex; justify-content: center; gap: 10px; }
#fshow .fs-card { position: relative; flex: 0 1 164px; aspect-ratio: 1; min-width: 0; border: 0; padding: 0; background: center / 100% 100% no-repeat; isolation: isolate; cursor: pointer; animation: fsPlate 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) both; transition: transform 0.12s; }
#fshow .fs-card i { position: absolute; inset: 9%; z-index: -1; border-radius: 8%; background: center / cover no-repeat; filter: brightness(0.7); }
#fshow .fs-card img { position: absolute; left: 12%; top: 3%; width: 76%; height: 88%; object-fit: cover; object-position: center 12%; border-radius: 8%; clip-path: inset(7% 0 9% 0 round 8%); }
#fshow .fs-card.wing img { object-fit: contain; top: 8%; height: 70%; clip-path: none; }
#fshow .fs-card em { position: absolute; right: 4%; top: 2%; padding: 0 8px; border-radius: 999px; font: 800 14px 'Mali', sans-serif; font-style: normal; color: #fff; background: #ff4d6d; }
#fshow .fs-card span { position: absolute; left: 8%; right: 8%; bottom: 9%; padding: 1px 4px; border-radius: 6px; background: rgba(20, 10, 40, 0.82); color: var(--gc); font: 700 13px/1.25 'Mali', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#fshow .fs-card:hover { transform: translateY(4px) scale(1.04); }
#fshow .fs-card.on { transform: translateY(8px) scale(1.1); z-index: 1; filter: drop-shadow(0 0 10px var(--gc)); }
#fshow.multi .fs-tier { top: calc(var(--fs-bot, 0px) + 258px); font-size: 26px; padding: 3px 22px; }
#fshow .fs-link.left { right: auto; left: calc(var(--fs-in, 0px) + 36px); }
#fshow .fs-sum { position: absolute; left: 50%; bottom: calc(var(--fs-bot, 0px) + 20px); transform: translateX(-50%); max-width: 1100px; padding: 5px 20px; border-radius: 999px; background: rgba(20, 10, 40, 0.82); border: 2px solid rgba(255, 226, 160, 0.7); color: #ffe9b8; font: 600 17px 'Mali', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#fshow.auto .fs-btns, #fshow.auto .fs-link, #fshow.auto .fs-sum, #fshow.auto .fs-skip { display: none; }
#fshow .fs-autobar { position: absolute; left: 50%; top: 912px; transform: translateX(-50%); display: flex; align-items: center; gap: 22px; padding: 14px 30px; border-radius: 20px; background: rgba(20, 10, 40, 0.88); border: 2px solid rgba(255, 226, 160, 0.8); color: #ffe9b8; font: 600 20px 'Mali', sans-serif; white-space: nowrap; }
#fshow .fs-autobar b { font-size: 24px; color: #fff; }
#fshow .fs-autobar i { display: inline-block; font-style: normal; animation: fsSpin 1.2s linear infinite; }
@keyframes fsSpin { to { rotate: 360deg; } }
#fsauto { position: fixed; inset: 0; z-index: 948; display: grid; place-items: center; background: rgba(8, 4, 18, 0.6); font-family: 'Mali', sans-serif; }
#fsauto .fa-in { width: min(620px, 92vw); padding: 22px 26px; border-radius: 20px; background: #24163c; border: 2px solid #ffd98a; color: #f4e9d2; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
#fsauto h4 { margin: 0 0 6px; font: 800 26px 'Mali', sans-serif; color: #ffe7a6; }
#fsauto p { margin: 0 0 14px; font-size: 16px; line-height: 1.5; color: #d9cdea; }
#fsauto .fa-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
#fsauto .fa-row > span { flex: 0 0 130px; font-weight: 700; font-size: 17px; }
#fsauto .fa-row.end { justify-content: flex-end; margin-top: 18px; }
#fsauto .fa-row.end small { margin-right: auto; font-size: 16px; color: #d9cdea; }
#fsauto .fa-chip { padding: 7px 16px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.07); color: var(--c, #f4e9d2); font: 700 17px 'Mali', sans-serif; cursor: pointer; }
#fsauto .fa-chip.on { border-color: #ffd257; background: rgba(255, 210, 90, 0.2); }
.fa-btn { padding: 8px 22px; border-radius: 999px; border: 2px solid rgba(255, 226, 160, 0.8); background: rgba(255, 255, 255, 0.08); color: #ffe9b8; font: 800 18px 'Mali', sans-serif; cursor: pointer; }
.fa-btn.go { background: linear-gradient(180deg, #ffe07a, #f0a92c); color: #4a2a12; border-color: #8a5a12; }
.fa-btn:disabled { opacity: 0.5; cursor: default; }

/* a high tier's name across the screen at the reveal (js/fashionshow.js banner): crisp letters with a dark ring, no halo */
#fshow .fs-banner { position: absolute; left: 0; width: 1920px; top: 96px; display: flex; flex-direction: column; align-items: center; pointer-events: none; animation: fsBanner 1.7s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
#fshow .fs-banner.g5 { animation-duration: 2.2s; }
#fshow .fs-banner b { font: 800 150px/1 'Mali', sans-serif; letter-spacing: 6px; -webkit-text-stroke: 10px #1b0d2a; paint-order: stroke fill; }
#fshow .fs-banner.g5 b { font-size: 190px; }
#fshow .fs-banner small { margin-top: 6px; padding: 4px 26px; border-radius: 999px; background: #1b1030; border: 2px solid currentColor; font: 800 30px 'Mali', sans-serif; }
@keyframes fsBanner { 0% { opacity: 0; scale: 2.4; } 14% { opacity: 1; scale: 1; } 78% { opacity: 1; scale: 1.04; } 100% { opacity: 0; scale: 0.7; translate: 0 -40px; } }
