:root {
  color-scheme: dark;
  --bg: #100a17;
  --surface: #191120;
  --field: #1e1528;
  --border: #30223b;
  --text: #f8eef9;
  --muted: #b3a3bd;
  --soft: #9c86aa;
  --purple: #d3a4f4;
  --bright: #dfb5fe;
  --line: #483051;
  --gold: #edbe81;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-width: 300px;
  min-height: 100svh;
  font: 16px/1.5 var(--sans);
  color: var(--text);
  background: radial-gradient(ellipse at 52% 0%, #291439 0, #150d1f 40%, var(--bg) 76%);
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, canvas:focus-visible {
  outline: 2px solid #efcaff;
  outline-offset: 4px;
}
a { color: inherit; text-decoration: none; }
svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
button [data-icon] { display: inline-flex; align-items: center; }
h1, h2, h3, p { margin: 0; }
.topbar { background: #120b19e8; border-bottom: 1px solid #30203c; }
.topbar-inner, #main, .footer { width: min(1180px, calc(100% - 72px)); margin: 0 auto; }
.topbar-inner { min-height: 75px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid #644473; border-radius: 11px; color: #e7b7ff; background: linear-gradient(145deg, #452550, #261530); font-size: 24px; line-height: 1; box-shadow: 0 0 18px #a34fbe33; }
.brand strong, .brand em { display: block; font-family: var(--serif); line-height: 1.04; letter-spacing: .19em; }
.brand strong { font-size: 14px; font-weight: 700; }
.brand em { color: var(--purple); font-size: 11px; margin-top: 4px; letter-spacing: .30em; }
.navigation { display: flex; align-self: stretch; align-items: center; gap: 6px; }
.nav-button { display: flex; align-items: center; gap: 8px; border: 1px solid transparent; padding: 9px 14px; border-radius: 8px; color: var(--muted); background: transparent; font-size: 14px; white-space: nowrap; }
.nav-button svg { width: 16px; height: 16px; }
.nav-button:hover, .nav-button.active { color: #edcafa; background: #2a1936; border-color: #432b51; }
.header-tools { display: flex; align-items: center; justify-self: end; gap: 12px; }
.icon-button, .quiet-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--border); color: var(--purple); background: #1e1427; border-radius: 8px; }
.icon-button:hover, .quiet-button:hover { background: #382344; border-color: #644371; }
.icon-button { width: 37px; height: 37px; padding: 0; }
.quiet-button { min-height: 34px; padding: 6px 10px; font-size: 13px; }
.quiet-button svg { width: 15px; height: 15px; }
.save-badge { color: var(--muted); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13px; }
.save-badge i, .preview-tag i { width: 6px; height: 6px; border-radius: 50%; background: #d299f5; box-shadow: 0 0 9px #dd94ff; }
.save-badge.saved i { background: #9ae4b8; box-shadow: 0 0 9px #9ae4b87d; }
.screen { padding-top: 31px; }
.page-heading { margin-bottom: 22px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--purple); font-size: 12px; font-weight: 700; letter-spacing: .19em; }
.eyebrow > span:first-child { font-size: 16px; line-height: 1; }
h1 { font: 400 clamp(2.65rem, 5.3vw, 4.65rem)/1.06 var(--serif); letter-spacing: -.065em; margin: 7px 0 9px; }
h1 em { color: var(--purple); font-weight: 400; }
.page-heading p { color: var(--muted); font-size: 16px; }
.dressing-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 22px; align-items: stretch; }
.preview-column { display: grid; grid-template-rows: clamp(420px, 39vw, 520px) auto; gap: 12px; position: sticky; top: 14px; align-self: start; }
.preview { position: relative; overflow: hidden; isolation: isolate; border: 1px solid #66446e; border-radius: 15px; background: radial-gradient(ellipse at 52% 40%, #613d6c, #301e41 50%, #191020 82%); box-shadow: 0 14px 34px #09050db3; }
.portrait { position: absolute; inset: 0; overflow: hidden; --portrait: url("assets/wardrobe-0-0-0.jpg"); }
.portrait::before { content: ""; position: absolute; inset: -28px; background: var(--portrait) center / cover; filter: blur(31px) brightness(.46); }
.portrait-art { position: absolute; top: 0; left: 50%; height: 100%; aspect-ratio: 3 / 4; background: var(--portrait) center / auto 100% no-repeat; mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent); transform-origin: 50% 17%; transform: translateX(-50%); transition: transform .25s ease; }
.portrait.closeup .portrait-art { transform: translateX(-50%) scale(2.25); }
.portrait-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait.makeup .portrait-art { filter: saturate(1.28) hue-rotate(-7deg); }
.portrait-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, #11081be8, #1a11205c 17%, transparent 39%), linear-gradient(105deg, #1a0c2648, transparent 40%); }
.preview-tag { position: absolute; top: 16px; left: 16px; color: #f4dfff; display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .13em; border: 1px solid #aa82bb66; border-radius: 6px; padding: 7px 10px; background: #1e1229ba; backdrop-filter: blur(8px); }
.preview-zoom { position: absolute; top: 15px; right: 15px; color: #eed8f8; background: #1e1229e8; border-color: #aa82bb66; }
.portrait-caption { position: absolute; inset: auto 22px 19px; display: grid; justify-items: start; line-height: 1.05; }
.caption-line { width: 30px; height: 2px; margin-bottom: 12px; background: #e6aff9; box-shadow: 0 0 14px #f599fa99; }
.portrait-caption > span { color: #f0c9f9; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.portrait-caption strong { font: 400 clamp(2rem, 4.4vw, 3.4rem)/1.1 var(--serif); max-width: 100%; overflow-wrap: anywhere; }
.portrait-caption small { margin-top: 5px; font-size: 14px; color: #e4bfee; }
#preview-ethnicity { max-width: 100%; overflow-wrap: anywhere; }
.venue-strip { min-height: 69px; display: flex; gap: 12px; align-items: center; border: 1px solid var(--border); background: #1b1224; border-radius: 11px; padding: 9px 12px; }
.venue-image { width: 68px; height: 47px; flex: none; border-radius: 6px; border: 1px solid #75467c; background: #4d205d; object-fit: cover; }
.venue-strip div:nth-child(2) { min-width: 0; }
.venue-strip div > span { display: block; color: var(--soft); letter-spacing: .12em; font-size: 11px; font-weight: 700; }
.venue-strip strong { font: 400 18px/1.22 var(--serif); display: block; margin-top: 2px; }
.venue-level { margin-left: auto; font-size: 11px; font-weight: 700; color: #d7b4e9; padding: 3px 8px; border-radius: 5px; background: #31203e; white-space: nowrap; letter-spacing: .05em; }
.panel { background: linear-gradient(155deg, #1f1528, #191020 72%); border: 1px solid var(--border); border-radius: 15px; box-shadow: 0 14px 36px #0c061260; }
.creator { padding: 20px 24px; display: grid; align-content: center; gap: 11px; }
.form-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
h2 { font: 400 27px/1.15 var(--serif); letter-spacing: -.035em; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; color: #f2e4f4; font-size: 14px; font-weight: 650; padding: 0; margin-bottom: 7px; }
.appearance-stat { color: var(--soft); font-size: 13px; }
.name-field { display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 8px; border: 1px solid #4b3458; color: var(--purple); background: #160d1f; }
.name-field:focus-within { border-color: #d59bf1; }
.name-field select { width: 100%; min-width: 0; min-height: 42px; padding: 9px 0; color: var(--text); background: transparent; border: 0; outline: 0; font: inherit; cursor: pointer; }
.name-field option { color: var(--text); background: #211629; }
.field-optional { margin-left: 5px; color: var(--muted); font-size: 12px; font-weight: 400; }
.ethnicity-input { width: 100%; min-height: 43px; padding: 8px 12px; color: var(--text); background: #160d1f; border: 1px solid #4b3458; border-radius: 8px; font: inherit; }
.ethnicity-input:focus-visible { outline: 1px solid #d59bf1; border-color: #d59bf1; }
.ethnicity-input::placeholder { color: #a792ac; }
.options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice { position: relative; text-align: left; min-width: 0; min-height: 63px; display: flex; align-items: center; gap: 8px; background: #20162a; border: 1px solid #3f2d49; border-radius: 8px; color: #f2e6f5; padding: 8px 9px; }
.choice:hover { border-color: #8f65a0; background: #31213c; }
.choice.selected { background: linear-gradient(130deg, #3c254a, #2c1b37); border-color: #b27ace; box-shadow: inset 0 0 17px #ac57ce19; }
.choice:disabled { opacity: .48; }
.choice strong { display: block; font-size: 13px; font-weight: 650; line-height: 1.25; }
.choice small { display: block; color: var(--muted); font-size: 12px; line-height: 1.22; margin-top: 3px; }
.choice [data-icon] { color: #d5a6ef; }
.choice [data-icon] svg { width: 17px; height: 17px; }
.compact-choice { min-height: 47px; }
.hair-thumbnail { position: relative; flex: none; display: block; width: 29px; height: 29px; overflow: hidden; border: 1px solid #795788; border-radius: 50%; background: #2a1937; }
.hair-thumbnail img { position: absolute; width: 170%; height: auto; left: 50%; top: -12%; transform: translateX(-50%); }
.swatch { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; background: radial-gradient(ellipse at 32% 22%, #ffffff60, transparent 55%), var(--swatch); border: 1px solid #ffffff50; box-shadow: inset -2px -3px 6px #0007; }
.outfit-thumbnail { display: block; flex: none; width: 34px; height: 45px; object-fit: cover; border-radius: 5px; border: 1px solid #795788; background: #2a1937; }
.appearance-details { border: 1px solid #483251; border-radius: 8px; background: #1b1224; }
.appearance-details summary { display: flex; align-items: center; justify-content: space-between; padding: 8px 11px; min-height: 39px; color: #ebd4f2; font-size: 14px; font-weight: 650; cursor: pointer; list-style: none; }
.appearance-details summary::-webkit-details-marker { display: none; }
.appearance-details summary::after { content: "+"; font-weight: 400; color: var(--purple); font-size: 19px; line-height: 1; }
.appearance-details[open] summary::after { content: "−"; }
.appearance-details summary:focus-visible { outline: 2px solid #efcaff; outline-offset: 2px; border-radius: 6px; }
.appearance-fields { display: grid; gap: 10px; padding: 4px 10px 10px; }
.art-visibility { color: var(--muted); font-size: 13px; }
.detail-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-footer { padding-top: 3px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; min-height: 42px; border-radius: 8px; font-size: 14px; font-weight: 700; }
.primary-button { color: #1f092a; background: linear-gradient(100deg, #e4adff, #bf85ef); border: 1px solid #e4b4ff; box-shadow: 0 4px 17px #bc60e33d; }
.primary-button:hover { color: #16051f; background: linear-gradient(100deg, #f6d3ff, #d3a4ff); }
.secondary-button { background: #261a31; color: #edd5f4; border: 1px solid #54395f; }
.secondary-button:hover { background: #39254a; border-color: #9b6eac; }
.primary-button:disabled, .secondary-button:disabled { opacity: .47; box-shadow: none; }
.start-button { width: 100%; min-height: 46px; font-size: 15px; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 69px; color: var(--soft); font-size: 12px; }
.footer > span:first-child { color: var(--purple); letter-spacing: .13em; font-size: 13px; }
.footer > span:first-child span { color: var(--soft); font-size: 11px; margin-left: 4px; }
.footer i { display: inline-block; vertical-align: middle; margin: 0 5px; width: 3px; height: 3px; background: var(--soft); border-radius: 50%; }
.heading-row { display: flex; justify-content: space-between; align-items: end; gap: 18px; }
.stats { display: flex; flex-wrap: wrap; gap: 8px; }
.stat { min-width: 84px; padding: 8px 11px; border-radius: 8px; border: 1px solid var(--border); background: #1b1224; }
.stat span { display: block; color: var(--soft); font-size: 12px; }
.stat strong { display: block; font-weight: 650; white-space: nowrap; color: #f3def6; }
.stat:first-child strong { color: var(--gold); }
.floor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 15px; }
.venue-panel { overflow: hidden; align-self: start; margin: 0; }
.venue-view { position: relative; isolation: isolate; aspect-ratio: 3 / 2; background: #22142b; }
.venue-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.venue-panel[data-holiday]:not([data-holiday=""]) .venue-view::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 18%, color-mix(in srgb, var(--holiday-color) 33%, transparent), transparent 66%); }
.venue-tables { position: absolute; inset: 0; z-index: 1; }
.venue-table { position: absolute; left: var(--table-x); top: var(--table-y); transform: translate(-50%, -50%); min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 5px 8px; border-radius: 9px; border: 1px solid color-mix(in srgb, var(--venue-tint) 58%, #dbc1e2); background: #1a1024eb; color: #fff0fa; box-shadow: 0 4px 16px #09050ad9; font-size: 13px; font-weight: 650; white-space: nowrap; }
.venue-table:not(:disabled):hover { z-index: 1; background: #3a2446; border-color: #ffe4ff; }
.venue-table:disabled { opacity: .66; filter: saturate(.35); }
.venue-table .client-face, .venue-table .couple-faces .client-face { width: 29px; height: 29px; }
.venue-controls { color: var(--muted); padding: 10px 14px; font-size: 13px; }
.stage-view .venue-tables { visibility: hidden; }
.floor-side { display: grid; align-content: start; gap: 12px; }
.holiday-panel { display: flex; align-items: flex-start; gap: 10px; border-color: color-mix(in srgb, var(--holiday-color) 52%, var(--border)); background: linear-gradient(130deg, color-mix(in srgb, var(--holiday-color) 11%, #21152a), #1d1427 78%); }
.holiday-panel > [data-icon] { flex: none; color: var(--holiday-color); margin-top: 3px; }
.holiday-panel h2 { color: var(--holiday-color); }
.holiday-panel .holiday-costume { margin-top: 7px; font-weight: 650; color: var(--holiday-color); }
.holiday-upcoming { color: var(--muted); padding: 0 1px; font-size: 12px; }
.holiday-reward b { color: var(--gold); }
.side-panel { padding: 15px; }
.side-panel h2 { font-size: 23px; }
.side-panel p { font-size: 14px; color: var(--muted); }
.shift-energy > div:first-child { display: flex; align-items: center; gap: 7px; font-size: 14px; margin-bottom: 7px; }
.shift-energy [data-icon] { color: #9fe1c1; }
.shift-energy b { margin-left: auto; color: #b9ead3; white-space: nowrap; }
.shift-energy .progress-track > i { background: linear-gradient(90deg, #56a482, #b4efd0); }
.vip-entry { display: grid; align-items: center; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; border-color: #456658; }
.vip-entry img { width: 44px; height: 43px; object-fit: cover; border-radius: 5px; }
.vip-entry h2 { font: 650 14px/1.25 var(--sans); }
.vip-entry p { font-size: 12px; }
.vip-entry button, .routine-energy button { min-height: 34px; padding: 5px 7px; font-size: 12px; white-space: nowrap; }
.floor-guests-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.floor-guests-heading button { min-height: 38px; padding: 6px 9px; font-size: 13px; white-space: nowrap; }
.tip-out-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tip-out-heading strong { color: var(--gold); font-size: 13px; white-space: nowrap; }
.tip-out-breakdown { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }
.tip-out-breakdown dt { color: var(--muted); font-size: 12px; }
.tip-out-breakdown dd { margin: 0; font-size: 14px; font-weight: 650; }
.living-costs { display: grid; gap: 5px; margin: 8px 0 0; }
.living-costs div { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.living-costs dd { margin: 0; font-weight: 650; color: var(--gold); }
.living-costs + p { margin-top: 8px; }
.payout.shortfall, .side-panel .shortfall { color: #ffc1d4; }
.side-game-button { margin-top: 8px; padding: 5px 9px; font-size: 13px; min-height: 36px; }
.patron-list { display: grid; gap: 7px; margin-top: 11px; }
.patron-button { display: flex; align-items: center; text-align: left; min-width: 0; gap: 9px; width: 100%; padding: 7px; background: #22182c; border: 1px solid #422d4d; color: #f3e4f7; border-radius: 8px; }
.patron-button:hover { background: #352241; border-color: #9769aa; }
.patron-button:disabled { opacity: .56; }
.patron-button strong { display: block; font-size: 14px; }
.patron-button small { display: block; color: var(--muted); font-size: 12px; line-height: 1.2; margin-top: 2px; }
.client-face { width: 41px; height: 41px; border: 1px solid #744e80; flex: none; border-radius: 6px; background: #42214f url("assets/patrons.jpg") var(--client-x, 0%) var(--client-y, 0%) / 300% 300%; }
.client-face-single { background: #42214f var(--client-image) center / cover no-repeat; }
.partner-face { background: #42214f var(--partner-portrait) center / cover; }
.couple-faces { display: inline-flex; align-items: center; flex: none; }
.couple-faces .client-face { width: 35px; height: 38px; }
.couple-faces .partner-face { margin-left: -9px; box-shadow: -2px 0 6px #100a17; }
.rival-row { display: flex; align-items: center; gap: 9px; margin: 8px 0; font-size: 14px; }
.rival-row > span:nth-child(2) { flex: 1; min-width: 0; }
.rival-row small { display: block; color: var(--soft); font-size: 12px; }
.rival-row b { color: var(--purple); white-space: nowrap; }
.rival-face { display: block; width: 37px; aspect-ratio: 1; flex: none; border: 1px solid #744e80; border-radius: 6px; background: #42214f url("assets/rivals.jpg") var(--rival-x) top / 600% 200% no-repeat; }
.rival-panel .rival-bonus-note { margin-top: 8px; font-size: 13px; }
.rival-panel .rival-status { border-top: 1px solid #422e4e; margin-top: 9px; padding-top: 9px; font-size: 13px; }
.rival-panel[data-rival-status="waiting"] { border-color: #ad6a91; background: linear-gradient(155deg, #351b31, #211326 72%); }
.rival-panel[data-rival-status="waiting"] .rival-status, .rival-panel[data-rival-status="lost"] .rival-status { color: #ffc7dc; }
.rival-panel[data-rival-status="won"] .rival-status { color: #c2ebd2; }
.rival-panel button { width: 100%; margin-top: 9px; }
.progress-track { width: 100%; height: 6px; border-radius: 8px; background: #352241; overflow: hidden; }
.progress-track > i { display: block; height: 100%; background: linear-gradient(90deg, #9661db, #e6acff); border-radius: 8px; width: var(--progress, 0%); }
.shift-actions { display: grid; gap: 8px; }
.career-layout { display: grid; grid-template-columns: minmax(0, 1fr) 305px; gap: 16px; }
.career-main, .career-aside { min-width: 0; display: grid; gap: 14px; align-content: start; }
.career-section { padding: 18px; }
.career-section > p { margin: 5px 0 12px; color: var(--muted); font-size: 14px; }
.shop-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 12px; }
.shop-tabs .active { border-color: #bd8bd4; color: #f4defb; background: #422b51; }
.shop-list, .venue-list { display: grid; gap: 8px; }
.shop-item, .venue-card { display: flex; align-items: center; gap: 11px; padding: 10px; border: 1px solid #392843; border-radius: 9px; background: #211629; min-height: 64px; }
.shop-item > [data-icon] { color: var(--purple); padding: 8px; background: #30203d; border-radius: 7px; }
.shop-item h3, .venue-card h3 { font-size: 15px; line-height: 1.2; }
.shop-item p, .venue-card p { color: var(--muted); font-size: 13px; margin-top: 3px; line-height: 1.3; }
.shop-item > div, .venue-card > div { flex: 1; }
.ride-thumbnail { display: block; flex: none; width: clamp(56px, 12vw, 88px); height: auto; aspect-ratio: 11 / 7; object-fit: cover; border-radius: 5px; border: 1px solid #68476e; background: #291b33; }
.shop-item button, .venue-card button { white-space: nowrap; min-height: 34px; padding: 5px 8px; }
.photo-hint { margin: 4px 0 12px; color: var(--muted); font-size: 14px; }
.gym-status { margin: 5px 0 12px; padding: 11px; border: 1px solid #416357; border-radius: 7px; background: #21312c; }
.gym-status strong { color: #bcead5; }
.gym-status p { color: var(--muted); font-size: 13px; margin: 4px 0 8px; }
.gym-note { margin-top: 9px; }
.genre-item { flex-wrap: wrap; }
.genre-item p { overflow-wrap: anywhere; }
.genre-item .genre-actions { flex: 0 1 auto; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.track-upload { position: relative; display: inline-flex; align-items: center; min-height: 34px; padding: 5px 8px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.track-upload input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.track-upload:focus-within { outline: 2px solid #e6b0fa; outline-offset: 2px; }
.photo-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.photo-card { display: flex; flex-direction: column; border: 1px solid #624669; border-radius: 10px; background: #24172d; overflow: hidden; }
.photo-cover { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #25182c; color: #f6deed; text-align: left; }
.photo-cover img { display: block; width: 100%; height: auto; }
.photo-cover span { position: absolute; right: 7px; bottom: 7px; padding: 4px 7px; border: 1px solid #9a78a9; border-radius: 5px; background: #190f20de; font-size: 12px; }
.photo-cover:focus-visible { outline-offset: -4px; }
.photo-card-body { display: flex; flex-direction: column; flex: 1; align-items: stretch; gap: 6px; padding: 10px; }
.photo-card h3 { font-size: 16px; }
.photo-card p { color: var(--muted); font-size: 13px; }
.photo-card .photo-stock { margin-top: auto; padding-top: 4px; color: var(--gold); }
.photo-card-body button { padding: 6px 8px; min-height: 38px; font-size: 13px; }
.shop-item .track-preview { flex: 0 0 35px; }
.track-preview[aria-pressed="true"] { color: #edc8ff; background: #593566; border-color: #bc8bd4; }
.wishlist-intro { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.gift-rapport { display: block; color: #e2b6f1; font-size: 12px; margin-top: 5px; }
.wish-button[aria-pressed="true"] { color: #edc8ff; background: #4c2e5c; border-color: #aa78bf; }
.gift-history { padding: 0; margin: 9px 0 0; list-style: none; display: grid; gap: 7px; }
.gift-history li, .gift-received { display: flex; align-items: center; gap: 9px; border: 1px solid #51365d; background: #281933; border-radius: 8px; padding: 9px; }
.gift-history [data-icon], .gift-received [data-icon] { color: var(--gold); flex: none; }
.gift-history strong, .gift-received strong { display: block; font-size: 14px; color: #f5e7fc; }
.gift-history li div > span, .gift-received p { display: block; font-size: 12px; color: var(--muted); }
.gift-received { border-color: #87538f; margin: 9px 0; }
.gift-received div > span { display: block; font-size: 12px; color: #e9bcee; }
.venue-card { flex-wrap: wrap; gap: 6px 10px; }
.venue-card > div { min-width: 114px; }
.career-progress { margin: 11px 0 5px; }
.goal { display: flex; align-items: start; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.goal span { color: var(--purple); }
.goal.done, .goal.done span { color: #b3ebc2; }
.empty-state { max-width: 545px; padding: 24px; }
.empty-state p { color: var(--muted); margin: 8px 0 15px; }
#toast { position: fixed; z-index: 5; left: 50%; bottom: 22px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 10px 14px; color: #f8e3ff; border: 1px solid #8b65a0; background: #2e1d3a; box-shadow: 0 8px 30px #000a; border-radius: 7px; text-align: center; }
dialog { color: var(--text); width: min(530px, calc(100% - 30px)); max-height: calc(100svh - 35px); border: 1px solid #7a538c; border-radius: 15px; background: linear-gradient(145deg, #2e1b3a, #1b1225 72%); box-shadow: 0 14px 70px #000b; padding: 20px; }
dialog::backdrop { background: #08050ac9; backdrop-filter: blur(4px); }
.stage-dialog { width: min(766px, calc(100% - 24px)); }
.stage-dialog::backdrop { background: #13081a77; backdrop-filter: none; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.dialog-heading span { display: block; color: var(--purple); font-size: 12px; letter-spacing: .11em; font-weight: 700; }
.dialog-heading h2 { margin-top: 3px; font-size: 32px; }
.dialog-heading .icon-button { flex: 0 0 34px; }
.guest-dialog { width: min(735px, calc(100% - 30px)); }
.guest-conversation { display: grid; grid-template-columns: minmax(150px, .81fr) minmax(0, 1.2fr); gap: 15px; }
.guest-profile { position: relative; align-self: start; overflow: hidden; border-radius: 9px; border: 1px solid #794983; background: #241230; }
.guest-portrait { display: block; width: 100%; height: auto; aspect-ratio: 1; border: 0; border-radius: 0; }
.guest-profile::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, #140a20df); pointer-events: none; }
.guest-connection { position: absolute; z-index: 1; left: 12px; bottom: 10px; font-size: 12px; color: var(--bright); font-weight: 650; letter-spacing: .1em; }
.couple-profile::after { content: none; }
.couple-portraits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; }
.couple-portraits > div { position: relative; min-width: 0; }
.couple-portraits > div > span:last-child { position: absolute; inset: auto 0 0; padding: 13px 8px 5px; color: #fbecff; font-size: 13px; font-weight: 650; background: linear-gradient(transparent, #190b22ed); }
.couple-profile .guest-connection { display: block; position: static; margin: 0; padding: 7px 9px; }
.guest-quote { background: #281932; border-left: 2px solid #a363bd; border-radius: 0 7px 7px 0; padding: 10px 11px; color: #f3def7; font: 400 17px/1.33 var(--serif); }
.guest-quote p + p { margin-top: 7px; }
.rival-profile { margin: 0; }
.rival-profile::after { content: none; }
.rival-look { position: relative; overflow: hidden; aspect-ratio: 358 / 342; }
.rival-look img { display: block; width: 100%; height: auto; transform: translateY(-28%); }
.rival-look .rival-face { position: absolute; top: 8px; left: 8px; width: clamp(38px, 9vw, 68px); box-shadow: 0 2px 8px #12081bd9; }
.rival-profile figcaption { padding: 7px 10px; border-top: 1px solid #794983; font-size: 13px; font-weight: 650; color: #f3deef; }
.rival-outcome { background: #251c2c; border: 1px solid #786285; border-radius: 8px; padding: 11px 12px; margin-top: 11px; }
.rival-outcome strong { display: block; color: #f6d9ef; }
.rival-outcome p { color: var(--text); font-size: 14px; margin-top: 3px; }
.rival-outcome[data-outcome="won"] { border-color: #507960; background: #1c2a28; }
.rival-outcome[data-outcome="won"] strong { color: #c2ebd2; }
.rival-outcome[data-outcome="lost"] { border-color: #995878; background: #332033; }
.rival-outcome[data-outcome="lost"] strong { color: #ffc7dc; }
.couple-conversation .guest-quote strong { color: #e2b6f1; font: 650 13px/1.3 var(--sans); margin-right: 3px; }
.partner-status { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; margin-top: 9px; padding: 7px 9px; border: 1px solid #62446f; border-radius: 7px; background: #281a33; font-size: 13px; color: #efc9fa; }
.partner-status[data-partner-mood="Upset"] { border-color: #8e4f71; color: #ffbdd0; background: #382032; }
.partner-status[data-partner-mood="On board"] { color: #c0ebd0; border-color: #406451; }
.partner-status button { min-height: 34px; padding: 5px 8px; }
.returning-line { color: #f3baff; }
.dialog-intro { margin: 12px 0 10px; color: var(--muted); font-size: 15px; }
.dialog-options { display: grid; gap: 8px; }
.dialog-options .choice { padding: 8px 11px; min-height: 52px; }
.dialog-options .choice strong { font-size: 14px; }
.side-game-screen > p { margin: 0 0 9px; color: var(--muted); font-size: 14px; }
.camera-cues { display: grid; gap: 6px; margin: 10px 0; padding-left: 26px; color: var(--gold); }
.photo-proof { width: min(306px, 100%); margin: 0 auto; padding: 8px 8px 0; background: #efe4df; color: #422d4d; box-shadow: 0 10px 25px #160a1d87; }
.photo-proof-art { position: relative; }
.photo-proof-art img { display: block; width: 100%; height: auto; }
.photo-proof-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo-proof-art.makeup { filter: saturate(1.28) hue-rotate(-7deg); }
.photo-proof figcaption { padding: 8px 3px; font-size: 13px; font-weight: 650; }
.print-offer, .activity-picker { border: 1px solid #65446e; border-radius: 7px; background: #291a33; margin: 9px 0; }
.print-offer summary, .activity-picker summary { padding: 8px 10px; color: #f2d7f7; font-weight: 650; font-size: 14px; cursor: pointer; }
.print-offer-list { display: grid; gap: 6px; padding: 0 7px 7px; }
.print-offer-list .choice { min-height: 46px; padding: 5px 7px; }
.print-offer-list img { border-radius: 4px; object-fit: cover; }
.print-offer-list b, .print-sale strong { margin-left: auto; color: var(--gold); }
.vip-room-photo { display: block; width: 100%; height: auto; aspect-ratio: 2.2; object-fit: cover; border-radius: 8px; margin-bottom: 13px; }
.vip-room-description { color: #f3dbe8; font-size: 14px; }
.vip-room-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-bottom: 9px; }
.vip-room-choice { padding: 6px; min-width: 0; gap: 7px; }
.vip-room-choice img { flex: none; width: clamp(37px, 10vw, 60px); height: 40px; object-fit: cover; border-radius: 4px; }
.vip-room-choice strong { font-size: 13px; }
.vip-picker { border-color: #547160; }
.vip-picker > p { padding: 0 10px 7px; font-size: 13px; color: var(--muted); }
.vip-picker > .dialog-options { padding: 0 8px 8px; }
.routine-energy { display: flex; gap: 10px; align-items: end; margin: 10px 0; }
.routine-energy > .shift-energy { flex: 1; min-width: 0; }
.print-sale, .activity-receipt { display: flex; gap: 8px; margin: 9px 0; padding: 8px 10px; background: #2f2432; border: 1px solid #795e52; border-radius: 7px; font-size: 14px; }
.activity-receipt { color: var(--gold); }
.activity-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 7px 7px; }
.activity-actions .secondary-button { flex: 1; padding: 5px 8px; font-size: 13px; }
.topic-options { padding-top: 6px; border-top: 1px solid #51365d; }
.topic-options p { margin: 2px 8px 8px; color: var(--muted); font-size: 13px; }
.duo-picker p { color: var(--muted); font-size: 13px; padding: 0 9px 8px; }
.duo-picker .activity-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.duo-picker .choice { min-height: 48px; padding: 6px 8px; }
.duo-picker .choice[aria-pressed="true"] { border-color: #bc8bd1; background: #3b264a; }
.bottle-option { margin: 9px 0; }
.activity-play { margin-top: 9px; }
.card-hand { padding: 4px 0; }
.card-back { display: grid; justify-items: center; align-content: center; gap: 5px; width: min(84px, 28%); aspect-ratio: 2 / 3; color: #f8d9ff; background: repeating-linear-gradient(135deg, #4d2859 0 4px, #3b2149 4px 8px); border: 2px solid #b482c7; border-radius: 8px; font-size: 13px; }
.card-back span { font-size: 27px; }
.card-back:hover { background: #603775; }
.chess-board { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); width: min(290px, 100%); padding: 3px; border: 1px solid #9a77a7; border-radius: 4px; }
.chess-square { position: relative; aspect-ratio: 1; min-width: 0; padding: 0; border: 0; background: #e1cbe8; color: #24162a; font: 25px/1 'Segoe UI Symbol', sans-serif; }
.chess-square.chess-dark { background: #ac86b7; }
.chess-square:disabled { cursor: default; opacity: 1; }
.chess-square:not(:disabled):hover { background: #ffc7ed; }
.chess-square.chess-legal::after { content: ''; position: absolute; inset: 39%; border-radius: 50%; background: #62446e; }
.chess-square:focus-visible { z-index: 1; outline: 2px solid #714788; outline-offset: -3px; }
.menu-balance { color: var(--muted); font-size: 14px; }
.menu-balance strong { color: var(--gold); }
.club-menu-section { margin-top: 12px; }
.club-menu-section h3 { margin-bottom: 6px; font-size: 16px; color: var(--purple); }
.club-menu-section .dialog-options { gap: 5px; }
.club-menu-section .club-menu-item { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(3ch, auto); min-height: 43px; gap: 12px; }
.club-menu-item span { color: #e9c6f3; font-size: 13px; }
.club-menu-item b { color: var(--gold); font-size: 13px; text-align: right; }
.refreshment-receipt { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; margin-top: 10px; border: 1px solid #87644f; border-radius: 8px; background: #312232; }
.refreshment-receipt strong { display: block; font-size: 14px; }
.refreshment-receipt p { color: var(--muted); font-size: 13px; }
.refreshment-receipt b { flex: none; color: var(--gold); font-size: 13px; }
.dialog-actions { display: flex; gap: 9px; margin-top: 16px; }
.dialog-actions button { flex: 1; }
.dialog-actions .track-mute { flex: 0 0 42px; height: 42px; }
.stage-picture { --guest-x: 15%; --facing: 1; position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 2.08; min-height: 190px; border: 1px solid #805890; border-radius: 10px; background: #170e20; }
.stage-picture[data-guest-side="right"] { --guest-x: 85%; --facing: -1; }
.stage-backdrop, .stage-wash, .stage-bills { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stage-backdrop { object-fit: cover; object-position: center 44%; filter: brightness(.77); }
.stage-wash { background: radial-gradient(ellipse at 50% 24%, color-mix(in srgb, var(--venue-tint) 23%, transparent), transparent 53%), linear-gradient(0deg, #100916b0, transparent 53%); }
#stage-dancer, #stage-partner { position: absolute; left: 50%; bottom: 4%; height: 95%; width: auto; transform: translateX(-50%); filter: drop-shadow(0 5px 12px #10061a99); }
.vip-stage { border-color: #6c937d; }
.vip-stage #stage-dancer { height: 102%; bottom: -4%; }
.vip-stage-detail { margin-top: 8px; color: #b9ead3; font-size: 13px; }
.stage-dance-table { position: absolute; left: 25%; bottom: 5%; width: 50%; height: 15%; border-radius: 50% 50% 22% 22% / 36% 36% 23% 23%; background: linear-gradient(#967661 3%, #514031 24%, #261723 39%, #1c121d 78%); border: 1px solid #b08d6c; box-shadow: 0 9px 14px #08040aa8; }
.duet-stage #stage-dancer { left: 38%; height: 91%; }
.duet-stage #stage-partner { left: 62%; height: 87%; }
.stage-rail { position: absolute; inset: auto 0 0; height: 18%; background: linear-gradient(0deg, #150b1be8 0%, #150b1b6b 58%, transparent); pointer-events: none; }
.stage-audience { position: absolute; left: var(--guest-x); bottom: 6%; transform: translateX(-50%); display: grid; justify-items: center; gap: 4px; }
.stage-audience .client-face { width: 46px; height: 46px; border-color: #ae7aaf; box-shadow: 0 3px 13px #0e0914af; }
.stage-audience .couple-faces .client-face { width: 37px; height: 42px; }
.stage-guest-name { max-width: 116px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 5px; border-radius: 4px; color: #f7e8f9; background: #1a1023de; font-size: 11px; }
.stage-throw { display: none; position: absolute; left: var(--guest-x); bottom: 15%; transform-origin: left bottom; width: clamp(50px, 12%, 91px); aspect-ratio: 2.25; background: url("assets/tip-arm.png") center / contain no-repeat; pointer-events: none; }
.has-tip .stage-throw { display: block; animation: tip-flick .62s ease-out both; }
.has-tip .stage-audience { animation: guest-react .64s ease-out; }
.stage-bill { position: absolute; display: grid; place-items: center; width: clamp(20px, 4vw, 31px); aspect-ratio: 1.95; border: 1px solid #496940; border-radius: 2px; color: #264226; background: radial-gradient(ellipse at center, #e1ebbf 29%, #a4bb86 35%, #bad5a0 67%, #78996b 70%); box-shadow: 0 2px 5px #100d15ad; font: 700 10px/1 var(--serif); transform: translate(-50%, -50%) rotate(var(--spin)); left: var(--end-x); top: var(--end-y); animation: cash-toss var(--flight) var(--delay) both; }
@keyframes cash-toss {
  0% { opacity: 0; left: calc(var(--guest-x) + 9% * var(--facing)); top: 73%; transform: translate(-50%, -50%) rotate(-28deg) scale(.65); }
  10% { opacity: 1; }
  48% { left: var(--peak-x); top: var(--peak-y); animation-timing-function: ease-in; }
  100% { opacity: 1; }
}
@keyframes tip-flick {
  0%, 100% { opacity: 0; transform: scaleX(var(--facing)) translate(-12%, 48%) rotate(15deg); }
  22%, 55% { opacity: 1; transform: scaleX(var(--facing)) translate(-5%, -4%) rotate(-12deg); }
}
@keyframes guest-react {
  38% { transform: translate(-50%, -4px) rotate(calc(-6deg * var(--facing))); }
}
.stage-settlement { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-top: 14px; }
.stage-settlement p { display: grid; gap: 3px; }
.stage-settlement strong { font: 400 clamp(26px, 6vw, 38px)/1 var(--serif); color: var(--gold); }
.stage-settlement span { font-size: 13px; color: var(--muted); }
.stage-settlement button { flex: none; }
.rhythm-lane { height: 27px; position: relative; border-radius: 6px; background: #462950; border: 1px solid #795281; margin: 13px 0; overflow: hidden; }
.rhythm-zone { position: absolute; top: 0; bottom: 0; left: 41%; width: 18%; background: #c889e691; border-inline: 1px solid #f5ccff; }
.rhythm-cursor { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: #fff3ff; box-shadow: 0 0 8px #f3c6ff; }
.rhythm-status { color: var(--purple); min-height: 26px; font-weight: 650; }
.payout { font: 400 52px/1 var(--serif); color: var(--gold); margin: 12px 0 8px; }
.result-list { display: grid; gap: 5px; color: var(--muted); margin: 14px 0; font-size: 14px; }
.result-list div { display: flex; justify-content: space-between; gap: 10px; }
.result-list b { color: var(--text); }
.result-list .deduction b { color: #f6afc6; }
.result-list .couple-score b { color: #bdeace; }
@media (max-width: 930px) {
  .topbar-inner, #main, .footer { width: calc(100% - 42px); }
  .dressing-grid { grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); gap: 14px; }
  .creator { padding: 17px; }
  .choice strong { font-size: 12px; }
  .choice { padding: 7px 6px; gap: 6px; }
  .options { gap: 5px; }
  .outfit-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .floor-grid { grid-template-columns: minmax(0, 1fr) 230px; }
  .career-layout { grid-template-columns: minmax(0, 1fr) 243px; }
}
@media (max-width: 700px) {
  .topbar-inner, #main, .footer { width: calc(100% - 28px); }
  .topbar-inner { grid-template-columns: 1fr auto; gap: 0; padding: 10px 0 6px; }
  .header-tools { grid-column: 2; grid-row: 1; gap: 7px; }
  .navigation { grid-column: 1 / -1; justify-content: center; padding-top: 8px; }
  .nav-button { padding: 6px 8px; gap: 5px; font-size: 13px; }
  .screen { padding-top: 23px; }
  .page-heading { margin-bottom: 19px; }
  .dressing-grid, .floor-grid, .career-layout { grid-template-columns: 1fr; }
  .preview-column { grid-template-rows: minmax(340px, min(100vw, 465px)) auto; position: static; }
  .creator { padding: 14px; }
  .heading-row { align-items: start; flex-direction: column; gap: 9px; }
  .choice strong { font-size: 13px; }
  .floor-side { grid-template-columns: 1fr 1fr; }
.holiday-panel, .holiday-upcoming, .vip-entry { grid-column: 1 / -1; }
  .shift-actions { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
  .genre-item .genre-actions { flex-basis: 100%; }
  .choice strong { font-size: 12px; }
  .swatch { width: 16px; height: 16px; flex-basis: 16px; }
  .hair-thumbnail { width: 24px; height: 24px; }
  .detail-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art-options .choice { align-items: flex-start; flex-direction: column; }
  .choice [data-icon] svg { width: 13px; height: 13px; }
  .floor-side { grid-template-columns: 1fr; }
  .venue-level { font-size: 10px; }
  .footer > span:first-child span { display: none; }
}
@media (max-width: 530px) {
  .guest-conversation { grid-template-columns: 1fr; gap: 9px; }
  .guest-profile { width: 116px; }
  .rival-profile { width: min(152px, 100%); }
  .couple-profile { width: min(224px, 100%); }
  .photo-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guest-connection { font-size: 9px; left: 7px; bottom: 7px; }
  .stage-dialog { padding: 13px; }
  .stage-picture { --guest-x: 17%; aspect-ratio: 1.34; }
  .stage-picture[data-guest-side="right"] { --guest-x: 83%; }
  .duet-stage #stage-dancer { left: 33%; }
  .duet-stage #stage-partner { left: 67%; }
  .stage-guest-name { max-width: 77px; }
  .stage-playback .dialog-actions { gap: 6px; }
  .stage-playback .dialog-actions button { padding-inline: 7px; }
}
@media (max-width: 900px) {
  .venue-table-name { display: none; }
  .venue-table { padding-inline: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .portrait-art { transition: none; }
  .stage-bill, .has-tip .stage-audience { animation: none; }
  .has-tip .stage-throw { display: none; }
}
