/* Naija Celeb: the playable slice. Every position is in stage px (960 x 540); game/design/ui-spec.md and
   tokens.json are the source for sizes, colours and fonts. */

:root {
  --gold-metal: linear-gradient(70deg, #A87F48 0%, #D9BF7E 25%, #FFF6CF 45%, #E6D196 58%, #C9A869 82%, #9E7642 100%);
  --gold-star: linear-gradient(180deg, #FFF6CF 0%, #E6C27A 55%, #8A6328 100%);
  --azure: #009DFF;
  --azure-edge: #0E75B5;
  --onyx: #0F0E0C;
  --text-2: #6B6158;
  --champagne: #F6EADC;
  --champagne-300: #E6DACB;
  --letterbox: #0E040A;
  --pink-ribbon: linear-gradient(180deg, #FF8CC3 0%, #EC2A84 55%, #8E1250 100%);
  --modal-surface: radial-gradient(120% 90% at 20% 0%, #FFFFFF 0%, #FBF4EA 45%, #F3E6D6 100%);
}

html, body { margin: 0; height: 100%; background: var(--letterbox); overflow: hidden; }
body { font-family: Montserrat, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; color: #fff; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
#app { position: fixed; inset: 0; }
#scene { position: absolute; display: block; left: 0; top: 0; width: 0; height: 0; }
#stage { position: absolute; left: 0; top: 0; width: 960px; height: 540px; transform-origin: 0 0; overflow: hidden; overflow: clip; pointer-events: none; }
#stage button, #stage input, #stage [role="switch"] { font-family: inherit; pointer-events: auto; }
button { cursor: pointer; }
button:disabled { cursor: default; }
.screen { position: absolute; inset: 0; }
#title, #chapter, #end { pointer-events: auto; }
.is-hidden { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ------------------------------------------------------------------ buttons */

.btn-gold, .btn-onyx, .btn-pearl { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; box-sizing: border-box; white-space: nowrap; }
.btn-gold { background: var(--gold-metal); border: 1px solid #8A6633; box-shadow: 0 4px 12px #9E764259; color: var(--onyx); font: 700 15px/1 Montserrat, sans-serif; letter-spacing: 1.6px; height: 50px; padding: 0 30px; }
.btn-gold:active { filter: brightness(.94); transform: scale(.98); }
.btn-gold:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn-onyx { height: 48px; padding: 0 28px; background: linear-gradient(#000, #000) padding-box, var(--gold-metal) border-box; border: 2px solid transparent; color: #fff; font: 700 13px/1 Montserrat, sans-serif; letter-spacing: 1.6px; }
.btn-onyx:active { background: linear-gradient(#3A3631, #3A3631) padding-box, var(--gold-metal) border-box; }
.btn-onyx:disabled { background: #EBD7C9; color: #A39889; border-color: #EBD7C9; }
.btn-onyx:focus-visible { outline: 3px solid #E6D196; outline-offset: 2px; }
.btn-pearl { height: 48px; padding: 0 28px; background: #fff; border: 1.5px solid #C8C8C8; color: var(--onyx); font: 700 13px/1 Montserrat, sans-serif; letter-spacing: 1.6px; }
.btn-pearl:focus-visible { outline: 2px solid #000; }
.btn-icon { width: 22px; height: 22px; }
.round-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; padding: 0; display: grid; place-items: center; background: linear-gradient(#0D0C0B, #0D0C0B) padding-box, var(--gold-metal) border-box; border: 2px solid transparent; color: #fff; box-shadow: 0 3px 8px #00000059; }
.round-btn:active { transform: scale(.94); }
.gold-rule { display: block; width: 56px; height: 2px; background: var(--gold-metal); flex: none; }
.ribbon { display: inline-block; align-self: flex-start; background: var(--pink-ribbon); border: 2px solid #fff; border-radius: 999px; box-shadow: 0 4px 8px #00000066; padding: 7px 18px; font: 900 13px/1 Montserrat, sans-serif; letter-spacing: 2.4px; color: #fff; text-shadow: 0 1.5px 0 #00000066; text-transform: uppercase; white-space: nowrap; }

/* ------------------------------------------------------- loaders (19.4, 19.5) */

.load-bar { display: flex; align-items: center; gap: 22px; }
.load-col { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.load-top { display: flex; justify-content: space-between; font: 800 13px/1 Montserrat, sans-serif; letter-spacing: 1.6px; }
.load-pct { color: #E6D196; letter-spacing: 1px; }
.load-track { height: 18px; box-sizing: border-box; padding: 3px; background: #00000099; border: 1px solid #C0986080; border-radius: 999px; }
.load-fill { position: relative; display: block; height: 12px; border-radius: 999px; background: linear-gradient(180deg, #FF9A80 0%, #E0533D 50%, #B23A28 100%); transition: width 300ms ease; width: 4%; }
.load-bar.is-full .load-fill { background: var(--gold-metal); }
.load-bead { position: absolute; right: 1px; top: 1px; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFF6CF, #C09860); border: 1px solid #7E5D2C; }
.load-detail { font: 500 12px/1.3 Montserrat, sans-serif; color: #FFFFFF99; }
.bead-loader { position: relative; width: 72px; height: 72px; flex: none; }
.bead-loader i { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FF9A85, #E0533D 50%, #8A2615); animation: bead 1.2s linear infinite; }
.bead-loader i:nth-child(3n+4) { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: radial-gradient(circle at 35% 30%, #FFF6CF, #D8C888 50%, #7E5D2C); }
.bead-loader i:nth-child(1) { left: 36.5px; top: 10.5px; animation-delay: -1.1s; }
.bead-loader i:nth-child(2) { left: 49.5px; top: 13.5px; animation-delay: -1.0s; }
.bead-loader i:nth-child(3) { left: 58.5px; top: 23.5px; animation-delay: -.9s; }
.bead-loader i:nth-child(4) { left: 62px; top: 36px; animation-delay: -.8s; }
.bead-loader i:nth-child(5) { left: 58.5px; top: 49.5px; animation-delay: -.7s; }
.bead-loader i:nth-child(6) { left: 49.5px; top: 58.5px; animation-delay: -.6s; }
.bead-loader i:nth-child(7) { left: 36.5px; top: 62.5px; animation-delay: -.5s; }
.bead-loader i:nth-child(8) { left: 23px; top: 59px; animation-delay: -.4s; }
.bead-loader i:nth-child(9) { left: 13.5px; top: 49.5px; animation-delay: -.3s; }
.bead-loader i:nth-child(10) { left: 10.5px; top: 36.5px; animation-delay: -.2s; }
.bead-loader i:nth-child(11) { left: 13.5px; top: 22.5px; animation-delay: -.1s; }
.bead-loader i:nth-child(12) { left: 23px; top: 13px; animation-delay: 0s; }
@keyframes bead { 0% { opacity: 1; } 100% { opacity: .23; } }

/* -------------------------------------------------------------- title (19.1-3) */

#title { overflow: hidden; background: #0E040A; }
.title-bg { position: absolute; inset: 0; background: radial-gradient(65% 80% at 50% 42%, #7A2150 0%, #3A0F27 50%, #0E040A 100%); }
.title-burst { position: absolute; width: 1260px; height: 1260px; left: -150px; top: -420px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, #FFFFFF26 0deg 6.07deg, #FFFFFF00 6.43deg 12.857deg); opacity: .55; animation: spin 60s linear infinite; }
.title-burst-fade { position: absolute; inset: 0; background: radial-gradient(circle at 50% 39%, #00000000 15%, #0E0504E6 62%); }
.title-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 700ms ease; }
#title.has-art .title-art { opacity: 1; }
.title-shade { position: absolute; inset: 0; opacity: 0; transition: opacity 700ms ease; background: linear-gradient(180deg, #00000000 62%, #000000A6 100%), radial-gradient(60% 70% at 72% 60%, #0E040A66 0%, #0E040A00 70%); }
#title.has-art .title-shade { opacity: 1; }
/* The logo (the A-List Star, 3.3): centred above the load bar until the key art arrives, then top right, above the buttons (300 × 262, then 270 × 235). */
.wordmark { position: absolute; left: 330px; top: 40px; width: 300px; margin: 0; transform-origin: 50% 0; transition: transform 700ms cubic-bezier(.2,.8,.2,1); }
#title.has-art .wordmark { transform: translate(220px, -14px) scale(.9); }
.wm-logo { display: block; width: 100%; height: auto; overflow: visible; }
.title-load { position: absolute; left: 200px; top: 338px; width: 560px; transition: opacity 300ms; }
#title.is-ready .title-load { opacity: 0; pointer-events: none; }
.title-start { position: absolute; left: 250px; top: 330px; width: 460px; display: flex; flex-direction: column; align-items: center; gap: 12px; opacity: 0; pointer-events: none; transition: opacity 400ms ease, transform 700ms cubic-bezier(.2,.8,.2,1); }
#title.is-ready .title-start { opacity: 1; pointer-events: auto; }
#title.has-art .title-start { transform: translate(220px, -40px); }
/* "Tap anywhere to start": the key art and the wordmark first; the first tap starts the music and fades the buttons in. */
.title-tap { position: absolute; left: 0; right: 0; top: 0; height: 62px; margin: 0; padding: 0; border: 0; background: radial-gradient(50% 50% at 50% 50%, #12060DB3 0%, #12060D66 55%, #12060D00 100%); cursor: pointer; font: 700 14px/62px Montserrat, sans-serif; letter-spacing: 3.2px; text-transform: uppercase; color: #FFF4DA; text-shadow: 0 1px 3px #000000D9, 0 0 16px #FFB54766; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 260ms ease, visibility 0s linear 260ms; }
.title-tap::before, .title-tap::after { content: ''; display: inline-block; vertical-align: middle; width: 34px; height: 2px; margin: 0 14px 3px; border-radius: 1px; background: linear-gradient(90deg, #E6D19600, #F2DB9A); }
.title-tap::after { background: linear-gradient(90deg, #F2DB9A, #E6D19600); }
#title.is-prompt .title-tap { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 260ms ease; animation: title-tap-pulse 2.4s ease-in-out infinite; }
#title.is-prompt.is-checking .title-tap { opacity: 0; animation: none; }
@keyframes title-tap-pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
#start, .title-settings, .title-music, .title-sound { transition: opacity 380ms ease 80ms, visibility 0s; }
#title.is-prompt #start, #title.is-prompt .title-settings, #title.is-prompt .title-music, #title.is-prompt .title-sound { opacity: 0; visibility: hidden; pointer-events: none; transition: none; }
.btn-play { width: 250px; height: 62px; padding: 0 28px; font: 900 20px/1 Montserrat, sans-serif; letter-spacing: 4px; }
.title-note { margin: 0; max-width: 360px; text-align: center; font: 600 12px/1.4 Montserrat, sans-serif; color: #FFE066; text-shadow: 0 1px 3px #000; }
.title-note:empty { display: none; }
.title-settings { left: 22px; top: 16px; }
.title-music { left: 834px; top: 16px; }
.title-sound { left: 890px; top: 16px; }
#title.is-leaving { opacity: 0; transition: opacity 400ms ease; pointer-events: none; }

/* ------------------------------------------------------- chapter card (19.6) */

#chapter { background: #0E040A; overflow: hidden; opacity: 0; transition: opacity 400ms ease; }
#chapter.is-open { opacity: 1; }
#chapter.is-leaving { opacity: 0; }
.chapter-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chapter-art:not([src]) { display: none; }
.chapter-shade-left { position: absolute; inset: 0; background: linear-gradient(90deg, #0E040AF2 0%, #2A0B1CB3 50%, #0E040A1A 100%); }
.chapter-shade-bottom { position: absolute; inset: 0; background: linear-gradient(180deg, #0E040A00 55%, #0E040AE6 100%); }
.chapter-col { position: absolute; left: 56px; top: 96px; width: 540px; display: flex; flex-direction: column; gap: 14px; }
.chapter-title { margin: 0; width: 460px; font: italic 900 60px/.98 Montserrat, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: transparent; background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 6px 0 #8E1250) drop-shadow(0 0 12px #FFD27A55); }
.chapter-where { margin: 0; display: flex; align-items: center; gap: 8px; font: 700 16px/1 Montserrat, sans-serif; letter-spacing: .5px; }
.chapter-teaser { margin: 0; width: 420px; font: 500 15px/1.5 Montserrat, sans-serif; color: #FFFFFFCC; }
.gold-keyline { position: absolute; left: 0; top: 442px; width: 960px; height: 2px; background: linear-gradient(90deg, #9E764200, #E6D196 30%, #FFF6CF 50%, #E6D196 70%, #9E764200); }
.chapter-band { position: absolute; left: 0; top: 444px; width: 960px; height: 96px; box-sizing: border-box; padding: 0 32px; background: #0E040AEB; }
.chapter-band .load-col { max-width: 420px; }
.chapter-retry { display: none; }
#chapter.is-failed .chapter-retry { display: inline-flex; }

/* --------------------------------------------------------------------- end */

#end { background: #0E040A; opacity: 0; transition: opacity 500ms ease; }
#end.is-open { opacity: 1; }
.end-bg { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(65% 80% at 50% 45%, #B8306FCC 0%, #3A0F27D9 55%, #0E040A 100%); }
.end-col { position: absolute; left: 130px; top: 112px; width: 700px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.end-col .ribbon { align-self: center; }
.end-col .chapter-title { width: 700px; font-size: 64px; }
.end-line { margin: 4px 0 0; font: 700 22px/1.4 Montserrat, sans-serif; color: #fff; }
.end-line:empty { display: none; }
/* Scene 9: the chapter's end card (a longer title, then its "Next:" line; no body since the user's playtest of 6
   November 2026): centred on the stage, the title smaller */
#end.is-chapter-end .end-col { top: 0; bottom: 0; justify-content: center; gap: 14px; }
#end.is-chapter-end .chapter-title { font-size: 48px; }
#end.is-chapter-end .end-line { font-size: 19px; color: #FFE7A8; }
.end-saved { margin: 0 0 10px; max-width: 620px; font: 500 14px/1.45 Montserrat, sans-serif; color: #FFFFFFB3; }

/* ---------------------------------------------------------------------- play */

#play { pointer-events: none; }
.catcher { position: absolute; inset: 0; }
.catcher.is-active { pointer-events: auto; cursor: pointer; }
.drops-layer, .markers-layer, .pulse-layer, .fly-layer { position: absolute; inset: 0; }
.fly-gem { position: absolute; left: 0; top: 0; width: 60px; height: 60px; }

/* HUD (3, 4) */
.hud { position: absolute; left: 0; top: 0; width: 960px; height: 140px; }
.hud-settings { position: absolute; z-index: 1; left: 22px; top: 23px; width: 44px; height: 44px; padding: 0; border: none; background: none; }
.hud-settings img { width: 38px; height: 38px; display: block; margin: 3px; }
.hud-settings:active { transform: scale(.94); }
.hud-meter { position: absolute; inset: 0; pointer-events: none; }
.hud-top, .hud-fame-group { position: absolute; inset: 0; pointer-events: none; }
.hud.is-menu-only .hud-top, .hud.is-menu-only .hud-fame-group { display: none; }
.hud-top.is-concealed, .hud-fame-group.is-concealed { display: none; }
/* The band behind the top bar: ui/hud.mjs. */
.hud-band { position: absolute; inset: 0 0 auto; height: 70px; background: linear-gradient(#0B0A09D9, #0B0A0999); border-bottom: 2px solid #C09860; }
/* The reveal: cash drops in first (it meets the first ₦), then level, energy and diamonds; the fame star pops. */
.hud-top.is-revealing .hud-meter { animation: tag-in 420ms cubic-bezier(.2,1.3,.4,1) both; }
.hud-top.is-revealing .hud-cash { animation-delay: 0ms; }
.hud-top.is-revealing .hud-level { animation-delay: 110ms; }
.hud-top.is-revealing .hud-energy { animation-delay: 200ms; }
.hud-top.is-revealing .hud-diamonds { animation-delay: 290ms; }
@keyframes tag-in { from { opacity: 0; transform: translateY(-26px); } }
.hud-fame-group.is-revealing > * { animation: star-pop 420ms cubic-bezier(.2,1.3,.4,1) both; transform-origin: 50% 40%; }
.hud-fame-group.is-revealing > :nth-child(2), .hud-fame-group.is-revealing > :nth-child(3) { animation-delay: 140ms; }
.hud-point { position: absolute; top: 28px; width: 17px; height: 34px; filter: drop-shadow(0 3px 6px #00000066); }
.hud-point svg { display: block; }
.hud-plate { position: absolute; top: 28px; height: 34px; box-sizing: border-box; display: flex; align-items: center; justify-content: flex-end; padding: 0 12px 0 8px; background: linear-gradient(180deg, #2A2622 0%, #0B0A09 100%); border: 1.5px solid var(--edge); border-left: none; border-radius: 0 8px 8px 0; box-shadow: 0 3px 6px #00000066; }
.hud-value { font: 800 17px/1 Montserrat, sans-serif; text-shadow: 0 1.5px 0 #000000B3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hud-plus { width: 22px; height: 22px; margin-left: 6px; box-sizing: border-box; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #FFFFFF, #D9D9D9); border: 1.5px solid #C09860; flex: none; }
.hud-hole { position: absolute; top: 38.5px; width: 7px; height: 7px; box-sizing: border-box; border-radius: 50%; background: #0B0A09; border: 1px solid #FFFFFF66; }
.hud-gem { position: absolute; object-fit: contain; }
.hud-gem.is-pulsing { animation: gem-pulse 220ms ease-out; }
/* Level and energy are bars (4 November 2026; KKH's top bar): the plate fills from the left, gold with XP toward the next
   level, amber with energy against her cap. The fill lies over the value, and carries a dark copy of it, so the number
   reads as ink wherever the fill has reached and in its own colour beyond (.hud-fill-text is the plate's width, so the
   two copies line up exactly). */
.hud-plate.has-bar { overflow: hidden; isolation: isolate; }
.hud-plate.has-bar > .hud-value { position: relative; z-index: 0; }
.hud-fill { position: absolute; z-index: 1; left: 0; top: 2px; bottom: 2px; width: calc((100% - 2px) * var(--p, 0)); overflow: hidden; border-radius: 0 6px 6px 0; box-shadow: inset 0 1px 0 #FFFFFF8C, inset 0 -1px 0 #0000002E; }
.hud-fill-level { background: linear-gradient(180deg, #FFF0B8 0%, #E6C27A 48%, #B88A4A 100%); }
.hud-fill-energy { background: linear-gradient(180deg, #FFEC9A 0%, #FFC24D 48%, #EE8A12 100%); }
.hud-fill-text { position: absolute; left: 0; top: -2px; height: 31px; box-sizing: border-box; padding: 0 12px 0 8px; display: flex; align-items: center; justify-content: flex-end; }
.hud-value.hud-ink { color: #2B1A06; text-shadow: 0 1px 0 #FFFFFF59; }
.hud-meter.is-flashing .hud-plate { animation: bar-flash 700ms ease-out; }
.hud-meter.is-flashing .hud-fill { animation: fill-flash 700ms ease-out; }
@keyframes bar-flash { 0% { box-shadow: 0 0 0 0 #FFE06600, 0 3px 6px #00000066; } 25% { box-shadow: 0 0 16px 4px #FFE066CC, 0 3px 6px #00000066; } 100% { box-shadow: 0 0 0 0 #FFE06600, 0 3px 6px #00000066; } }
@keyframes fill-flash { 0%, 100% { filter: none; } 25% { filter: brightness(1.45) saturate(1.1); } }
@keyframes gem-pulse { 50% { transform: scale(1.15); } }
.hud-fame { position: absolute; left: 860px; top: 6px; width: 72px; height: 72px; filter: drop-shadow(0 1.92px 4.8px #00000080); }
.hud-chip { position: absolute; left: 860px; width: 72px; box-sizing: border-box; background: #000000CC; border: 1px solid #A1A1A166; border-radius: 8px; text-align: center; color: #fff; }
.hud-place { top: 76px; height: 22px; padding: 3px 0; font: 900 13px/14px Montserrat, sans-serif; }
.hud-place.is-hidden + .hud-fans { top: 80px; }
.hud-fans { top: 102px; transition: top 200ms; padding: 5px 0; display: flex; flex-direction: column; align-items: center; gap: 2px; background: linear-gradient(#FFF, #EFE7DA); border: 1.5px solid #C09860; box-shadow: 0 2px 5px #00000059; color: #1B1612; }
.hud-fans b { font: 900 15px/1 Montserrat, sans-serif; }
.hud-fans small { font: 700 12px/1 Montserrat, sans-serif; color: #C2334D; }
.rank-star { position: relative; display: inline-block; flex: none; }
.rank-star svg { display: block; overflow: visible; }
.rank-star b { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 8%; font-family: Montserrat, sans-serif; font-weight: 900; color: #fff; text-shadow: 0 1px 1.5px #000000B3; line-height: 1; }

/* Location label (7) */
.location { position: absolute; left: 0; top: 486px; height: 37px; box-sizing: border-box; display: flex; align-items: center; gap: 8px; padding: 10px 18px 10px 20px; min-width: 230px; background: #000000CC; border: 1px solid #FFFFFF1F; border-left: none; border-radius: 0 14px 14px 0; color: #E6D196; }
.location span { display: flex; }
.location b { font: 700 14px/1 Montserrat, sans-serif; color: #fff; white-space: nowrap; }

/* Gig progress (6) */
.gigprog { position: absolute; left: 22px; top: 462px; min-width: 182px; height: 57px; box-sizing: border-box; padding: 9px 14px 10px; display: flex; flex-direction: column; gap: 5px; background: #000000CC; border: 1px solid #FFFFFF1F; border-radius: 12px; transition: border-color 300ms, box-shadow 300ms; }
.gigprog-row { display: flex; align-items: center; gap: 12px; height: 17px; }
.gigprog-stars { display: flex; gap: 3px; }
.gigprog-clock { display: flex; align-items: center; gap: 4px; }
.gigprog-clock img { width: 16px; height: 16px; margin: -2px 0; }
.gigprog-time { font: 800 12px/1 Montserrat, sans-serif; letter-spacing: .4px; color: #fff; font-variant-numeric: tabular-nums; min-width: 46px; }
.gigprog-name { font: 800 13px/1 Montserrat, sans-serif; color: #fff; white-space: nowrap; }
.gigprog.is-done { border-color: #E6D196; box-shadow: 0 0 14px #FFD86680; }
.gigprog.is-done .gigprog-time { color: #FFE066; }
.gigprog.is-celebrating .gig-star { animation: star-pop 420ms ease-out both; }
.gigprog.is-celebrating .gig-star:nth-child(2) { animation-delay: 60ms; }
.gigprog.is-celebrating .gig-star:nth-child(3) { animation-delay: 120ms; }
.gigprog.is-celebrating .gig-star:nth-child(4) { animation-delay: 180ms; }
.gigprog.is-celebrating .gig-star:nth-child(5) { animation-delay: 240ms; }
.gig-star { display: inline-block; flex: none; }
.gig-star svg { display: block; overflow: visible; }
.gig-star path { fill: #FFFFFF1A; stroke: #FFFFFF59; stroke-width: 6; stroke-linejoin: round; }
.gig-star.is-earned path { fill: url(#g-gold-star); stroke: #E6D196; }
.gig-star.is-popping { animation: star-pop 300ms ease-out; }
@keyframes star-pop { 0% { transform: scale(0); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
.gig-burst { position: absolute; left: 0; top: 0; width: 960px; height: 540px; display: flex; align-items: center; justify-content: center; gap: 8px; padding-bottom: 60px; box-sizing: border-box; }
.gig-burst::before { content: ''; position: absolute; left: 280px; top: 120px; width: 400px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, #FFE3A6CC, #FFE3A600); animation: inherit; }
.gig-burst.is-playing::before { animation: burst-glow 1300ms ease-out both; }
@keyframes burst-glow { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: 1; transform: scale(1); } 80% { opacity: .8; } 100% { opacity: 0; } }
.gig-burst .gig-star { position: relative; filter: drop-shadow(0 0 14px #FFD866) drop-shadow(0 3px 0 #8E1250); }
.gig-burst.is-playing .gig-star { animation: burst-star 1300ms ease-out both; }
.gig-burst.is-playing .gig-star:nth-child(2) { animation-delay: 50ms; }
.gig-burst.is-playing .gig-star:nth-child(3) { animation-delay: 100ms; }
.gig-burst.is-playing .gig-star:nth-child(4) { animation-delay: 150ms; }
.gig-burst.is-playing .gig-star:nth-child(5) { animation-delay: 200ms; }
@keyframes burst-star { 0% { transform: scale(0) translateY(40px); opacity: 0; } 25% { transform: scale(1.25); opacity: 1; } 40% { transform: scale(1); } 80% { opacity: 1; transform: scale(1) translateY(0); } 100% { opacity: 0; transform: scale(.6) translateY(-30px); } }

/* Dock (8) */
.dock { position: absolute; left: 622px; top: 454px; width: 338px; height: 80px; }
.dock-rail { position: absolute; left: 0; top: 14px; width: 338px; height: 56px; background: linear-gradient(180deg, #3A3631F2, #141210F2); border-top: 1px solid #FFFFFF26; border-radius: 999px 0 0 999px; }
.dock-btn { position: absolute; top: 4px; width: 72px; height: 72px; padding: 0; border: none; background: none; }
.dock-btn img { width: 72px; height: 72px; display: block; }
.dock-btn:active { transform: scale(.94); }
.dock-feed { left: 20px; } .dock-phone { left: 96px; } .dock-wardrobe { left: 172px; } .dock-tasks { left: 248px; }

/* To-do (5) */
.todo { position: absolute; left: 22px; top: 100px; width: 248px; transition: none; } /* down under a new tip at once, reduced motion's 1 ms included */
.todo.is-rising { transition: top 280ms cubic-bezier(.2,.8,.2,1); } /* back up when the tip goes */
.todo-row { position: relative; display: block; }
.todo-btn { position: absolute; left: 0; top: 0; width: 46px; height: 46px; z-index: 1; filter: drop-shadow(0 2px 3px #00000059); }
.todo-card { position: relative; left: 22px; top: 4px; width: 226px; min-height: 71px; box-sizing: border-box; padding: 9px 12px 10px 32px; display: flex; flex-direction: column; gap: 4px; background: linear-gradient(180deg, #FFFFFF, #E9E5DE); border: 1.5px solid #C09860; border-radius: 14px; box-shadow: 0 3px 6px #00000066; pointer-events: auto; }
.todo-title { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.todo-title b { font: 800 13px/1.25 Montserrat, sans-serif; color: var(--onyx); }
.todo-caret { border: none; background: none; padding: 2px; display: grid; }
.todo-task { display: flex; gap: 6px; align-items: flex-start; font: 400 12px/1.35 Montserrat, sans-serif; color: var(--text-2); max-width: 190px; }
.todo-box { color: #E0533D; display: flex; padding-top: 2px; }
.todo-task.is-done { color: #A39889; text-decoration: line-through; }
.todo-task.is-done .todo-box { color: #1E9E6A; }
.todo-task.is-sliding { animation: todo-slide 380ms ease-out; }
@keyframes todo-slide { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
/* During dialogue the to-do folds to its round icon (no flicker: game-ui.mjs TODO); it unfolds from the icon. */
.todo-card, .todo-pill { transform-origin: 0 50%; transition: opacity 240ms ease, transform 320ms cubic-bezier(.2,.8,.2,1); }
.todo.is-collapsed, .todo.is-collapsed * { pointer-events: none !important; }
.todo.is-collapsed .todo-card, .todo.is-collapsed .todo-pill { opacity: 0; transform: translateX(-14px) scaleX(.55); }
.todo-btn { transition: transform 320ms cubic-bezier(.2,.8,.2,1); }
.todo.is-collapsed .todo-btn { transform: scale(.9); }
.todo-row.is-closed { width: 102px; height: 46px; padding: 0; border: none; background: none; }
.todo-pill { position: absolute; left: 22px; top: 9px; width: 80px; height: 28px; box-sizing: border-box; display: flex; align-items: center; justify-content: flex-end; padding: 0 12px 0 32px; background: linear-gradient(180deg, #FFFFFF, #E9E5DE); border: 1.5px solid #C09860; border-radius: 999px; box-shadow: 0 3px 6px #00000066; }

/* Tap marker and rail label (9) */
.marker { position: absolute; width: 40px; height: 52px; padding: 0; border: none; background: none; animation: marker-bob 1.2s ease-in-out infinite; }
.marker-pin { position: absolute; inset: 0; filter: drop-shadow(0 3px 6px #00000066); }
.marker-pin svg { display: block; }
.marker-dot { position: absolute; left: 8px; top: 8px; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(180deg, #FFE066 0%, #FFAA00 55%, #B85A00 100%); }
.marker-shine { position: absolute; left: 13px; top: 10px; width: 14px; height: 7px; border-radius: 50%; background: #FFFFFF80; }
.rail-label { position: absolute; left: 50%; top: 56px; transform: translateX(calc(-50% + var(--label-shift, 0px))); padding: 4px 10px; border-radius: 10px; background: #090201CC; font: 700 11px/1.2 Montserrat, sans-serif; color: #fff; white-space: nowrap; }
@keyframes marker-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.markers-layer.is-nudging .marker { animation: nudge 260ms ease; }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Action pill (10) */
.action-pill { position: absolute; height: 36px; box-sizing: border-box; padding: 0; border-radius: 18px; background: #0A1722E6; border: 2px solid #fff; box-shadow: 0 3px 8px #00000080; overflow: hidden; animation: pill-in 160ms ease-out; }
.pill-fill { position: absolute; left: 1px; top: 1px; height: 30px; border-radius: 15px; width: calc((100% - 2px) * var(--fill, 0)); background: linear-gradient(180deg, #5CC4FF 0%, #009DFF 50%, #0E75B5 100%); transition: width 280ms cubic-bezier(.2,.8,.3,1); }
.pill-label { position: absolute; left: 14px; top: 0; height: 32px; display: flex; align-items: center; font: 700 13px/1 Montserrat, sans-serif; color: #fff; text-shadow: 0 1px 2px #00000099; white-space: nowrap; }
.pill-tag { position: absolute; right: 2px; top: 2px; width: 54px; height: 28px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; gap: 3px; }
.pill-tag img { width: 16px; height: 16px; }
.pill-tag b { font: 800 15px/1 Montserrat, sans-serif; color: #0E75B5; }
.action-pill.is-done .pill-tag img { display: none; }
.action-pill.is-closing { opacity: 0; transform: scale(.9); transition: opacity 240ms, transform 240ms; }
@keyframes pill-in { from { transform: scale(.85); opacity: 0; } }
/* The opening tap (4 November 2026; KKH: the pointer stretches into the task's bar): the bar grows sideways from right
   over its marker (--ox), never wider than it ends up (so it never crosses a face its place avoids), then its label
   and energy tag appear and a glint crosses it. */
.action-pill.is-opening { animation: pill-open 300ms cubic-bezier(.2,.9,.3,1.12) both; transform-origin: var(--ox, 50%) 50%; }
.action-pill.is-opening .pill-label, .action-pill.is-opening .pill-tag { animation: pill-content-in 380ms ease-out both; }
@keyframes pill-open { 0% { transform: scale(.17, .86); } 60% { transform: scale(1, 1.04); } 100% { transform: none; } }
@keyframes pill-content-in { 0%, 50% { opacity: 0; } 100% { opacity: 1; } }
/* Once open, its entrance never replays (taking .is-opening off would restart pill-in). */
.action-pill.is-settled { animation: none; }
/* A work tap on the bar: a quick press, and the glint. The fill slides on with the tap. */
.action-pill.is-pressed { animation: pill-press 220ms ease-out; }
@keyframes pill-press { 35% { transform: scale(.95, .92); } 100% { transform: none; } }
.pill-shine { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; pointer-events: none; }
.pill-shine::before { content: ''; position: absolute; top: -6px; bottom: -6px; left: -45%; width: 34%; background: linear-gradient(100deg, #FFFFFF00, #FFFFFFB8 50%, #FFFFFF00); transform: skewX(-18deg); opacity: 0; }
.action-pill.is-opening .pill-shine::before { animation: pill-shine 520ms 230ms ease-out both; }
.action-pill.is-pressed .pill-shine::before { animation: pill-shine 420ms ease-out both; }
@keyframes pill-shine { 0% { left: -45%; opacity: 1; } 100% { left: 125%; opacity: 1; } }

/* Drops (11) */
.drop { position: absolute; left: 0; top: 0; width: 40px; height: 46px; padding: 0; border: none; background: none; will-change: transform; }
.drop img { position: absolute; left: 2px; top: 0; width: 36px; height: 36px; object-fit: contain; pointer-events: none; }
.drop-shadow { position: absolute; left: 8px; top: 38px; width: 24px; height: 7px; border-radius: 50%; background: #00000066; filter: blur(2px); }
.drop.is-air .drop-shadow { display: none; }
.drop.is-hinted img { filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 2px #009DFF); }
.drop-float { position: absolute; left: 0; top: 0; font: 800 15px/1 Montserrat, sans-serif; text-shadow: 0 1px 3px #000000CC; white-space: nowrap; pointer-events: none; }

/* Dialogue (13) */
.dialogue { position: absolute; left: 456px; bottom: 18px; width: 482px; box-sizing: border-box; background: #fff; border-radius: 18px; box-shadow: 0 10px 28px #00000059; pointer-events: auto; cursor: pointer; transition: transform 160ms ease, opacity 160ms ease; }
.dialogue.is-entering { transform: translateY(6px); opacity: .6; transition: none; }
/* Under the speaker (game-ui.mjs placeSpeech): a small tail on the name bar points up at her head */
.dialogue.has-tail::before { content: ''; position: absolute; top: -11px; left: calc(var(--tail-x, 50%) - 12px); border: solid transparent; border-width: 0 12px 12px; border-bottom-color: var(--tail-color, #BB9FEF); filter: drop-shadow(0 -2px 2px #00000026); }
.name-bar { position: relative; height: 40px; display: flex; align-items: center; padding: 0 48px; border-radius: 18px 18px 0 0; }
.name-bar-spacer { flex: 1; }
.speaker { font: 900 15px/1 Montserrat, sans-serif; letter-spacing: 2.4px; color: #fff; text-shadow: 0 1px 0 #00000059; white-space: nowrap; }
.relation { margin-left: 10px; font: 800 10px/1 Montserrat, sans-serif; letter-spacing: 2px; color: #FFFFFFB3; white-space: nowrap; }
.relation-icon { margin-left: 8px; width: 20px; height: 20px; flex: none; color: #fff; filter: drop-shadow(0 1px 1px #00000040); }
/* A voice off stage (6 November 2026): the speaker's small portrait at the start of the name bar, before her name. */
.name-bar-avatar { width: 30px; height: 30px; margin-right: 9px; flex: none; border-radius: 50%; object-fit: cover; background: #ffffff33; box-shadow: 0 0 0 2px #fff, 0 1px 3px #00000059; }
.name-bar-star { position: absolute; right: -10px; top: -17px; width: 54px; height: 54px; filter: drop-shadow(0 2px 4px #00000059); }
.dialogue-body { padding: 14px 26px; display: flex; flex-direction: column; gap: 6px; }
.dialogue-line { margin: 0; font: 500 16px/1.5 Montserrat, sans-serif; color: var(--onyx); user-select: text; -webkit-user-select: text; }
.untyped { color: transparent; }
.dialogue-continue { display: flex; justify-content: flex-end; align-items: center; height: 14px; color: #705F8F; transition: opacity 150ms; }
.dialogue-continue svg, .still-continue svg { animation: bob 1.1s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(-1.5px); } 50% { transform: translateY(1.5px); } }
.dialogue.is-typing .dialogue-continue { opacity: 0; }
.dialogue.is-narration { background: linear-gradient(180deg, #1C1A17F2, #0B0A09F2); border: 1px solid #E6D19659; }
.dialogue.is-narration .dialogue-line { font: italic 600 19px/1.38 'Cormorant Garamond', Georgia, serif; color: #FFF8EF; }
.dialogue.is-narration .dialogue-continue { color: #E6D196; }

/* Replies (14) */
/* Replies hang under the line they answer, in the lower band, the first pill over the panel's bottom edge (KKH's
   "Okay." and its short lists). In talk mode they belong to the panel (the panel lifts by their height); a choice
   shown as its own step uses the reply column, placed the same way. */
.reply-column { position: absolute; left: 456px; bottom: 18px; width: 482px; display: flex; flex-direction: column; pointer-events: auto; }
.reply-column .dialogue { position: relative; left: auto; bottom: auto; width: 482px; cursor: default; }
.reply-column .dialogue .dialogue-continue { display: none; }
.reply-column .dialogue .dialogue-body, .dialogue.has-reply .dialogue-body { padding-bottom: 32px; }
.reply-column.has-line .replies { margin-top: -22px; position: relative; }
.reply-column:not(.has-line) .replies { padding: 0 31px; }
.dialogue-reply { position: absolute; left: 18px; right: 44px; top: calc(100% - 22px); display: flex; flex-direction: column; gap: 6px; }
.dialogue.is-typing .dialogue-reply { visibility: hidden; }
.dialogue-reply.is-nudging { animation: replies-nudge 360ms ease-out; }
/* A panel that would reach a face (four replies under a long line): tighter pills */
.dialogue.is-compact .dialogue-reply { gap: 4px; }
.dialogue.is-compact .reply { min-height: 36px; padding: 8px 20px; font-size: 15px; }
@keyframes replies-nudge { 30% { transform: translateY(-5px); } 65% { transform: translateY(2px); } }
.replies { display: flex; flex-direction: column; gap: 6px; padding: 0 44px 0 18px; }
.reply { min-height: 44px; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 12px 22px; border: none; border-top: 1.5px solid var(--azure-edge); border-radius: 999px; background: var(--azure); color: #fff; font: 700 16px/1.25 Montserrat, sans-serif; text-align: left; transition: opacity 120ms ease, transform 220ms ease; }
.reply:active { background: #0086DB; }
/* A costed reply (ui-spec 14.4): the currency's colour, its icon and the amount at the right end. */
.reply.is-cost { min-height: 50px; padding-right: 16px; }
.reply.is-cash { background: #7DBA48; border-top-color: #5A9230; }
.reply.is-cash:active { background: #6CA63C; }
.reply.is-diamonds { background: #A3B9D9; border-top-color: #7F96BA; }
/* A flirt (6 November 2026, KKH's romantic replies): pink, with a white heart at the right end. */
/* The heart sits inside the pill's right padding, not in a slot of its own, so a long flirt reply stays on one line
   like the others (Scene 8's "Only if you come and collect them yourself." wrapped by a pixel, and the taller column
   pushed the panel into her face, 6 November 2026). */
.reply.is-flirt, .dialogue.is-compact .reply.is-flirt { position: relative; background: #F2639F; border-top-color: #C9437C; padding-right: 38px; }
.reply.is-flirt:active { background: #DE4F8B; }
.reply.is-flirt.is-selected { box-shadow: 0 0 0 3px #FFB3D3, 0 0 16px #FFB3D3CC; }
.reply.is-flirt .reply-tick { color: #F2639F; }
.reply-tone { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); display: inline-grid; place-items: center; width: 20px; height: 20px; color: #fff; filter: drop-shadow(0 1px 0 #00000040); pointer-events: none; }
.reply-tone .ic, .reply-tone svg { width: 18px; height: 18px; }
.reply-tone .ic { fill: currentColor; }
.reply-cost { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 5px; }
.reply-cost img { width: 26px; height: 26px; }
.reply-cost b { font: 800 16px/1 Montserrat, sans-serif; text-shadow: 0 1px 0 #00000059; }
.reply:disabled { opacity: .55; }
.reply:focus-visible { outline: 2px solid #000; outline-offset: 0; }
.reply.is-selected { box-shadow: 0 0 0 3px #94C9F1, 0 0 16px #94C9F1CC; padding-left: 12px; min-height: 48px; }
.reply-tick { width: 24px; height: 24px; flex: none; border-radius: 50%; background: #fff; color: var(--azure); display: grid; place-items: center; }
.reply.is-fading { opacity: 0; }
.reply:disabled { opacity: .55; }

/* Gig offer (gaps 4) */
.offer { position: absolute; left: 456px; top: 128px; width: 482px; display: flex; flex-direction: column; gap: 16px; pointer-events: auto; }
.quest-card { display: flex; gap: 16px; align-items: flex-start; padding: 18px; background: #fff; border: 1px solid var(--champagne-300); border-radius: 24px; box-shadow: 0 6px 18px #00000014, 0 10px 28px #00000040; color: var(--onyx); }
.quest-icon { flex: none; width: 56px; height: 56px; display: grid; place-items: center; box-sizing: border-box; background: var(--gold-metal); border: 1px solid #7E5D2C; border-radius: 16px; color: var(--onyx); }
.quest-content { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.quest-status { font: 700 10px/1.2 Montserrat, sans-serif; letter-spacing: 2px; color: #B23A28; }
.quest-title { font: 700 17px/1.2 Montserrat, sans-serif; }
.quest-where { display: flex; align-items: center; gap: 5px; font: 600 10px/1 Montserrat, sans-serif; letter-spacing: 1.2px; color: var(--text-2); }
.quest-flavour { margin: 0; font: 500 12px/1.4 Montserrat, sans-serif; color: var(--text-2); }
.quest-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px 3px 3px; border-radius: 999px; background: var(--champagne); }
.chip img { width: 24px; height: 24px; }
.chip b { font: 700 12px/1 Montserrat, sans-serif; color: var(--onyx); }
.chip.is-icon { padding: 3px; }
.offer-accept { margin: 0 6px; }
.offer-accept.is-selected { box-shadow: 0 0 0 3px #94C9F1, 0 0 16px #94C9F1CC; }

/* The preamble: KKH's black screen with one line, between the creator and the room. Black at once; the line
   fades in (its second half a moment later), holds, fades; then the black lifts on the room. */
.preamble { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: #000; pointer-events: auto; cursor: pointer; }
.preamble-line { margin: 0; max-width: 640px; padding: 0 24px; text-align: center; font: italic 500 31px/1.45 'Cormorant Garamond', Georgia, serif; letter-spacing: .2px; color: #FFF6E6; text-wrap: balance; text-shadow: 0 0 22px #FFD27A26; }
.preamble-part { opacity: 0; transition: opacity 1000ms ease; }
.preamble.is-in .preamble-part { opacity: 1; }
.preamble.is-in .preamble-part + .preamble-part { transition-delay: 750ms; }
.preamble.is-out { opacity: 0; transition: opacity 800ms ease 600ms; }
.preamble.is-out .preamble-part { opacity: 0; transition-duration: 600ms; }
.preamble.is-out.is-skipped { transition: opacity 300ms ease 150ms; }
.preamble.is-out.is-skipped .preamble-part { transition-duration: 200ms; }
html.reduced .preamble, html.reduced .preamble-part { transition: none !important; }

/* Tips (KKH's corner notes): small, top left beside the to-do, never blocking */
.tip-note { position: absolute; left: 22px; top: 84px; width: 240px; box-sizing: border-box; display: flex; align-items: flex-start; gap: 9px; padding: 8px 12px 9px 9px; background: linear-gradient(180deg, #2B2622EB, #0B0A09EB); border: 1.5px solid #E6D196B3; border-radius: 12px; box-shadow: 0 3px 8px #00000059; pointer-events: auto; cursor: pointer; }
.tip-note.is-new { animation: tip-in 260ms ease-out; }
.tip-note.is-suppressed { display: none; }
@keyframes tip-in { from { opacity: 0; transform: translateX(-10px); } }
.tip-disc { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #FFE066, #FFAA00 55%, #B85A00); border: 1px solid #B85A00; font: 900 13px/1 Montserrat, sans-serif; color: #fff; text-shadow: 0 1px 0 #8A4400; }
.tip-text { margin: 1px 0 0; font: 600 12px/1.38 Montserrat, sans-serif; color: #FFF8EF; }
.tip-note.is-folded { width: auto; padding: 5px; border-radius: 999px; }
.tip-note.is-folded .tip-text { display: none; }
.pulse-ring { position: absolute; box-sizing: border-box; border: 2px solid #FFE066; box-shadow: 0 0 10px #FFD86699; animation: pulse 1600ms ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }

/* YOUR STAR entry: the heroine on the studio floor, RANDOMISE, CUSTOMISE and START. */
.creator { position: absolute; inset: 0; pointer-events: auto; }
.creator-heading { position: absolute; left: 0; top: 34px; width: 960px; margin: 0; text-align: center; font: 300 46px/1 Montserrat, sans-serif; letter-spacing: 34px; padding-left: 34px; box-sizing: border-box; color: #B98A54; opacity: .55; pointer-events: none; }
.creator-actions { position: absolute; left: 560px; top: 200px; width: 230px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; opacity: 0; transform: translateX(16px); transition: opacity 260ms ease-out, transform 260ms ease-out; }
.creator.is-open .creator-actions { opacity: 1; transform: none; }
.creator-actions .btn-pearl { height: 46px; padding: 0 22px; justify-content: flex-start; box-shadow: 0 3px 8px #8A5A3A26; text-transform: uppercase; }
.creator-start { text-transform: uppercase; }
.creator-actions .btn-pearl:disabled { color: #A39889; border-color: #E6DACB; background: #FFFFFFB3; box-shadow: none; cursor: default; }
.creator-later { margin-top: -6px; padding-left: 22px; font: 500 12px/1.3 Montserrat, sans-serif; color: #8A7A6B; }
.creator-start { position: absolute; left: 560px; top: 380px; width: 230px; height: 56px; font: 900 18px/1 Montserrat, sans-serif; letter-spacing: 4px; }
.creator-veil { position: absolute; left: 190px; top: 40px; width: 280px; height: 470px; border-radius: 140px; background: linear-gradient(100deg, #FFFFFF00 30%, #FFFFFFD9 50%, #FFFFFF00 70%); background-size: 260% 100%; opacity: 0; pointer-events: none; }
.creator.is-shuffling .creator-veil { animation: veil 600ms ease-out; }
.creator-feedback { position: absolute; left: 560px; top: 334px; width: 230px; display: flex; align-items: center; gap: 8px; color: #6b4731; font-size: 11px; line-height: 1.25; font-weight: 600; }
.creator-retry { flex-shrink: 0; min-height: 34px; padding: 4px 10px; border: 1px solid #ad8956; border-radius: 999px; background: #fff8e9; color: #4b3525; font: 700 11px/1 Montserrat, sans-serif; }
.creator-start:disabled { opacity: .6; cursor: wait; }
@media (max-height: 500px), (max-width: 900px) {
  .creator[data-view='creator'] .creator-actions { top: 184px; gap: 14px; }
  .creator[data-view='creator'] .creator-actions .btn-pearl { height: 72px; font-size: 16px; }
  .creator[data-view='creator'] .creator-later { font-size: 14px; }
  .creator[data-view='creator'] .creator-start { top: 416px; height: 72px; }
  .creator[data-view='creator'] .creator-feedback { top: 100px; width: 300px; font-size: 13px; }
  .creator[data-view='creator'] .creator-retry { min-height: 72px; font-size: 13px; }
}
@keyframes veil { 0% { opacity: 0; background-position: 100% 0; } 30% { opacity: 1; } 100% { opacity: 0; background-position: 0 0; } }
/* The name card (asked later in the story): champagne card over the dimmed room */
.creator-card { position: absolute; left: 480px; top: 70px; width: 440px; box-sizing: border-box; padding: 28px 32px 24px; display: flex; flex-direction: column; gap: 12px; color: var(--onyx); background: var(--modal-surface); border-radius: 28px; box-shadow: 0 18px 40px #00000040, 0 0 0 1px #FFFFFF80 inset; transform: translateX(40px); opacity: 0; transition: transform 220ms ease-out, opacity 220ms ease-out; }
.creator.is-open .creator-card { transform: none; opacity: 1; }
.creator-card h2 { margin: 0; font: 600 20px/1.25 Montserrat, sans-serif; letter-spacing: 3px; text-transform: uppercase; }
.creator-prompt { margin: 0; font: 500 14px/1.5 Montserrat, sans-serif; color: var(--text-2); }
.creator-control { display: flex; flex-direction: column; gap: 10px; }
.name-field { width: 376px; height: 48px; box-sizing: border-box; padding: 0 20px; border-radius: 999px; background: #fff; border: 1.5px solid #C8C8C8; font: 600 16px/1 Montserrat, sans-serif; color: var(--onyx); user-select: text; -webkit-user-select: text; }
.name-field:focus { border: 2px solid #000; padding: 0 19.5px; }
.name-field::placeholder { color: #A39889; }
.name-error { min-height: 15px; font: 600 12px/1.25 Montserrat, sans-serif; color: #B23A28; }
.name-preview { position: relative; width: 376px; margin-top: 8px; }
.name-preview-bar { display: flex; align-items: center; justify-content: center; gap: 10px; height: 40px; border-radius: 18px 18px 0 0; background: #BB9FEF; padding: 0 48px; }
.name-preview-bar b { font: 900 15px/1 Montserrat, sans-serif; letter-spacing: 2.4px; color: #fff; text-shadow: 0 1px 0 #00000059; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 230px; }
.name-preview-bar small { font: 800 10px/1 Montserrat, sans-serif; letter-spacing: 2px; color: #FFFFFFB3; }
.name-preview .rank-star { position: absolute; right: -10px; top: -17px; filter: drop-shadow(0 2px 4px #00000059); }
.creator-footer { display: flex; justify-content: flex-end; padding-top: 2px; }

/* Toast (16) */
.toast { position: absolute; left: 290px; top: 86px; width: 380px; height: 64px; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; background: linear-gradient(180deg, #2B2622F2, #000000F2); border: 1.5px solid var(--edge); border-radius: 999px; box-shadow: 0 18px 40px #00000040; animation: toast-in 220ms ease-out; transition: opacity 220ms, transform 220ms; }
.toast.is-out { opacity: 0; transform: translateY(-10px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }
.toast img { width: 44px; height: 44px; }
.toast-text { display: flex; flex-direction: column; gap: 3px; }
.toast-text b { font: 700 11px/1 Montserrat, sans-serif; letter-spacing: 1.8px; color: #fff; }
.toast-text small { font: 500 12px/1.2 Montserrat, sans-serif; color: #FFFFFFB3; }
.toast strong { margin-left: auto; flex: none; white-space: nowrap; font: 900 15px/1 Montserrat, sans-serif; }

/* Phone (17) */
.phone-screen { position: absolute; inset: 0; pointer-events: auto; }
.phone-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, #00000040 0%, #000000B3 55%); opacity: 0; transition: opacity 250ms; }
.phone-body { position: absolute; left: 500px; top: 10px; width: 300px; height: 520px; box-sizing: border-box; padding: 7px; border-radius: 44px; background: linear-gradient(180deg, #2B2622, #0A0908) padding-box, var(--gold-metal) border-box; border: 2px solid transparent; box-shadow: 0 16px 32px #00000059, inset 0 1.5px 0 #FFFFFF24; transform: translateY(560px); transition: transform 320ms cubic-bezier(.2,.8,.2,1); }
.phone-screen.is-open .phone-body { transform: none; }
.phone-screen.is-open .phone-scrim { opacity: 1; }
.phone-close { left: 818px; top: 14px; }
/* Video call: the phone sits left so the dialogue panel stays in its place (456-938), above the scrim */
#play.is-call .dialogue, #play.is-call .reply-column { z-index: 3; }
.phone-screen[data-kind="call"] { z-index: 2; }
.phone-screen[data-kind="call"] .phone-body { left: 120px; }
.phone-screen[data-kind="call"] .phone-scrim { background: #0E040AA6; }
.phone-screen[data-kind="call"] .phone-close { display: none; }
.phone-screen[data-kind="call"] { pointer-events: none; }
.phone-screen[data-kind="call"] .phone-body { pointer-events: auto; }
.phone-display:has(.call-video) { position: relative; background: #2B2622; }
.call-incoming, .call-video { position: absolute; inset: 0; overflow: hidden; border-radius: 37px; transition: opacity 320ms ease; }
.call-video { opacity: 0; pointer-events: none; }
.phone-screen[data-call="live"] .call-video, .phone-screen[data-call="ended"] .call-video { opacity: 1; }
.phone-screen[data-call="live"] .call-incoming, .phone-screen[data-call="ended"] .call-incoming { opacity: 0; pointer-events: none; }
.call-incoming .phone-status { position: relative; color: #fff; }
.call-backdrop { position: absolute; inset: 0; background: radial-gradient(70% 55% at 50% 38%, #FFF6EC 0%, #F1DCCB 45%, #C99A86 100%); }
.call-backdrop.is-blurred { background: radial-gradient(80% 60% at 50% 35%, #6E3A52 0%, #3A0F27 60%, #14060E 100%); }
.softbox { position: absolute; top: 40px; width: 70px; height: 150px; border-radius: 10px; background: #FFFFFF; filter: blur(14px); opacity: .75; }
.softbox-left { left: -20px; }
.softbox-right { right: -24px; top: 70px; opacity: .55; }
.studio-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, #C99A8600, #B07E6A66); }
.call-who { position: relative; margin-top: 74px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; }
.call-avatar { position: relative; width: 116px; height: 116px; border-radius: 50%; overflow: hidden; box-sizing: border-box; border: 3px solid transparent; background: linear-gradient(#F6EADC, #F6EADC) padding-box, var(--gold-metal) border-box; z-index: 1; }
.call-avatar img { position: absolute; max-width: none; }
.call-who b { margin-top: 10px; font: 800 20px/1.1 Montserrat, sans-serif; letter-spacing: .5px; }
.call-who small { font: 600 12px/1 Montserrat, sans-serif; color: #FFFFFFB3; letter-spacing: 1px; }
.call-rings { position: absolute; top: 0; width: 116px; height: 116px; }
.call-rings i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #FFFFFF66; animation: ring-out 1.8s ease-out infinite; }
.call-rings i:nth-child(2) { animation-delay: .9s; }
@keyframes ring-out { from { transform: scale(1); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.call-buttons { position: absolute; left: 0; right: 0; bottom: 56px; display: flex; justify-content: center; }
.call-answer-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.call-answer-wrap small { font: 800 11px/1 Montserrat, sans-serif; letter-spacing: 1.6px; color: #fff; }
.call-answer { width: 68px; height: 68px; border-radius: 50%; border: none; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #3FD07E, #17A85E 55%, #0A5A33); box-shadow: 0 6px 16px #17A85E73, inset 0 1.5px 0 #FFFFFF59; animation: answer-bob 1.2s ease-in-out infinite; }
.call-answer:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@keyframes answer-bob { 50% { transform: translateY(-4px); } }
.call-frame { position: absolute; inset: 0; animation: handheld 7s ease-in-out infinite; }
@keyframes handheld { 0%, 100% { transform: translate(0, 0) rotate(0); } 33% { transform: translate(1.5px, -1px) rotate(.25deg); } 66% { transform: translate(-1px, 1px) rotate(-.2deg); } }
.call-caller { position: absolute; left: 50%; bottom: -6px; height: 104%; transform: translateX(-44%); filter: drop-shadow(0 6px 10px #6E3A2A40); }
.call-behind { position: absolute; bottom: 70px; height: 74%; filter: blur(.7px) saturate(.9) brightness(.97); opacity: .96; }
.call-behind-0 { left: -46px; }
.call-behind-1 { right: -56px; }
.call-top { position: absolute; left: 0; right: 0; top: 0; height: 66px; box-sizing: border-box; padding: 34px 16px 0; display: flex; align-items: center; gap: 7px; color: #fff; background: linear-gradient(180deg, #000000A6, #00000000); }
.call-top b { font: 800 13px/1 Montserrat, sans-serif; text-shadow: 0 1px 2px #00000099; }
.call-timer { margin-left: auto; font: 700 11px/1 Montserrat, sans-serif; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px #00000099; }
.call-live { width: 8px; height: 8px; border-radius: 50%; background: #EC2A84; box-shadow: 0 0 6px #EC2A84; animation: live 1.4s ease-in-out infinite; }
@keyframes live { 50% { opacity: .35; } }
.call-self { position: absolute; right: 12px; top: 74px; width: 64px; height: 86px; border-radius: 12px; overflow: hidden; border: 2px solid #FFFFFFCC; box-shadow: 0 4px 10px #00000059; background: #F1DCCB; }
.call-self canvas, .call-self img { width: 100%; height: 100%; display: block; object-fit: cover; }
.call-voice { position: absolute; left: 16px; bottom: 82px; height: 22px; display: flex; align-items: center; gap: 3px; padding: 0 8px; border-radius: 999px; background: #000000A6; opacity: 0; transition: opacity 160ms; }
.call-voice i { width: 3px; height: 6px; border-radius: 2px; background: #fff; }
.call-video.is-speaking .call-voice { opacity: 1; }
.call-video.is-speaking .call-voice i { animation: voice 520ms ease-in-out infinite alternate; }
.call-video.is-speaking .call-voice i:nth-child(2) { animation-delay: 130ms; }
.call-video.is-speaking .call-voice i:nth-child(3) { animation-delay: 260ms; }
.call-video.is-speaking .call-voice i:nth-child(4) { animation-delay: 390ms; }
@keyframes voice { to { height: 16px; } }
.call-controls { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 16px; }
.call-controls span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #00000073; backdrop-filter: blur(4px); }
.call-controls .call-end { background: #E0533D; }
.call-ended { position: absolute; inset: 0; display: grid; place-items: center; background: #0E040AB3; font: 800 14px/1 Montserrat, sans-serif; letter-spacing: 1.6px; color: #fff; text-transform: uppercase; animation: fade-in 200ms ease; }
.phone-display { width: 282px; height: 502px; border-radius: 37px; background: #fff; overflow: hidden; display: flex; flex-direction: column; color: var(--onyx); }
.phone-top { flex: none; height: 83px; box-sizing: border-box; padding-bottom: 12px; background: linear-gradient(180deg, #1DBFB6 0%, #0E8F88 60%, #08605C 100%); color: #fff; }
.phone-status { height: 32px; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 28px; }
.phone-status b { font: 800 12px/1 Montserrat, sans-serif; }
.phone-notch { width: 76px; height: 20px; border-radius: 999px; background: #000; }
.phone-icons { display: flex; gap: 5px; align-items: center; }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 4px 14px 0; }
.phone-head > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.phone-head b { font: 800 17px/1.1 Montserrat, sans-serif; }
.phone-head small { font: 600 11px/1.2 Montserrat, sans-serif; color: #DDFBF8; }
.vn-icon { width: 18px; height: 18px; }
.phone-action, .phone-back { width: 32px; height: 32px; border-radius: 50%; background: #FFFFFF2E; display: grid; place-items: center; flex: none; }
.phone-back { width: 24px; background: none; }
.thread-avatar { width: 34px; height: 34px; border-radius: 50%; background: #F6EADC; border: 2px solid #E6D196; box-sizing: border-box; display: grid; place-items: center; font: italic 600 18px/1 'Cormorant Garamond', serif; color: #7E5D2C; flex: none; }
.phone-content { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.phone-content.thread { padding: 14px 12px; gap: 8px; background: #FFF8EF; }
.sms-time { align-self: center; font: 600 10px/1 Montserrat, sans-serif; letter-spacing: 1px; color: var(--text-2); }
.sms-in { align-self: flex-start; max-width: 206px; background: var(--champagne); border-radius: 18px 18px 18px 6px; padding: 9px 14px 10px; font: 500 13px/1.4 Montserrat, sans-serif; animation: sms-in 300ms ease-out 250ms both; }
@keyframes sms-in { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.sms-line-0, .sms-line-1 { font-weight: 800; }
.sms-line-1 { color: #13704A; }
.phone-tabs { flex: none; height: 75px; box-sizing: border-box; padding: 6px 8px 8px; border-top: 1px solid var(--champagne-300); background: #fff; display: flex; flex-direction: column; align-items: center; }
.phone-tab-row { display: flex; justify-content: space-around; width: 100%; }
.phone-tab { width: 64px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.phone-tab-pill { width: 46px; height: 28px; border-radius: 999px; display: grid; place-items: center; }
.phone-tab-pill img { width: 24px; height: 24px; opacity: .55; }
.phone-tab small { font: 700 9.5px/1 Montserrat, sans-serif; letter-spacing: .5px; color: var(--text-2); white-space: nowrap; }
.phone-tab.is-active .phone-tab-pill { background: #11A9A12E; }
.phone-tab.is-active img { opacity: 1; }
/* 6 November 2026: the two apps' tabs, by their marks (ui/social.mjs), dimmed like the others until lit */
.phone-tab-mark { display: grid; opacity: .55; }
.phone-tab-mark svg { display: block; }
.phone-tab.is-active .phone-tab-mark { opacity: 1; }
.phone-tab.is-active small { color: #08605C; }
.phone-home { width: 96px; height: 4px; border-radius: 2px; background: #0F0E0C40; margin-top: auto; }
/* A social app's screen (6 November 2026): its header is the app's mark and name (Instagram, X) */
.phone-app-mark { display: flex; flex: none; border-radius: 9px; box-shadow: 0 1px 3px #0000004D; }
.phone-app-mark svg { display: block; }
.phone-head.is-app b { font-size: 18px; }
.post { padding: 8px 0; display: flex; flex-direction: column; gap: 8px; }
.post-author { display: flex; align-items: center; gap: 9px; padding: 0 12px; }
.post-avatar { width: 38px; height: 38px; border-radius: 50%; box-sizing: border-box; border: 2px solid transparent; background: linear-gradient(#F6EADC, #F6EADC) padding-box, var(--gold-metal) border-box; overflow: hidden; flex: none; }
.post-avatar canvas { width: 34px; height: 34px; display: block; }
.post-who { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.post-name { display: flex; align-items: center; gap: 4px; }
.post-name b { font: 800 14px/1.2 Montserrat, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-who small { font: 600 10px/1 Montserrat, sans-serif; color: var(--text-2); }
.post-more { color: var(--text-2); display: flex; }
.post-media { position: relative; width: 282px; height: 168px; overflow: hidden; background: #2B2622; }
.post-still { width: 100%; height: 100%; display: block; object-fit: cover; }
.post-play { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: #000000B3; display: grid; place-items: center; color: #fff; }
.post-duration { position: absolute; right: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px; background: #000000B3; font: 700 11px/1 Montserrat, sans-serif; color: #fff; }
.post-reactions { display: flex; gap: 14px; padding: 0 12px; align-items: center; }
.post-reactions span { display: flex; align-items: center; gap: 5px; }
.post-reactions b { font: 700 12px/1 Montserrat, sans-serif; }
.post-caption { margin: 0; padding: 0 12px; font: 500 13px/1.4 Montserrat, sans-serif; }
.post-caption b { font-weight: 800; }
/* Scene 8: the gist blog's post (its avatar a megaphone, its reveal chip the timer icon and the time left) */
.post-avatar-gist { display: grid; place-items: center; color: #7A2E5C; background: linear-gradient(#FFE7F3, #FFE7F3) padding-box, var(--gold-metal) border-box; }
.post-reveal { display: flex; align-items: center; gap: 5px; padding: 5px 10px 5px 6px; border-radius: 999px; background: #241019; color: #FFE7A8; font: 800 12px/1 Montserrat, sans-serif; flex: none; }
.post-reveal img { width: 18px; height: 18px; }
.post-media-photo { height: 176px; }
/* On X (the gist blog's and Oyelaran's posts): the words over the photo, the photo inset with rounded corners, the
   actions spread under it */
.post-x .post-media { width: auto; margin: 0 12px; border-radius: 14px; }
.post-x .post-media-photo { height: 164px; }
.post-x .post-reactions { justify-content: space-around; color: var(--text-2); }
/* Scene 9: the hanger button on a quick job's card (her look doesn't fit; a look she owns does) */
.offer-swap { width: 34px; height: 34px; margin-left: 2px; padding: 0; border-radius: 50%; border: 2px solid transparent; background: linear-gradient(#FFF8EF, #FFF8EF) padding-box, var(--gold-metal) border-box; display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 0 #FFD27A99; animation: swap-call 1.6s ease-in-out infinite; pointer-events: auto; }
.offer-swap img { width: 24px; height: 24px; }
.offer-swap:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* A glow only (no scale), so the button stays still under a finger (and for the browser suite's clicks). */
@keyframes swap-call { 0% { box-shadow: 0 0 0 0 #FFC24DCC; } 70%, 100% { box-shadow: 0 0 0 9px #FFC24D00; } }
.reduced .offer-swap { animation: none; }
/* Scene 9: Oyelaran's post (her face as its avatar; a crop of the hem, no chip) */
.post-avatar-cast img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 20%; }
/* Scene 9: her clip. The post scrolls under its author row; the comments come in one by one. */
.phone-content.is-scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.phone-content.is-scroll::-webkit-scrollbar { display: none; }
.post-clip { padding-top: 0; gap: 7px; }
.post-clip .post-author { position: sticky; top: 0; z-index: 1; padding-top: 7px; padding-bottom: 6px; background: #fff; }
.post-media-clip { height: 150px; flex: none; }
.post-media-clip .post-still { object-position: 50% 30%; }
.post-slowmo { position: absolute; right: 10px; bottom: 10px; height: 23px; padding: 0 9px; border-radius: 999px; background: #000000B3; display: flex; align-items: center; color: #FFE7A8; }
.post-comments { margin: 0; padding: 0 12px; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.post-comment { font: 500 11.5px/1.35 Montserrat, sans-serif; color: var(--onyx); }
.post-comment b { font-weight: 800; margin-right: 2px; }
.post-job { display: inline-block; margin: 0 2px 0 3px; padding: 1px 7px 2px; border-radius: 999px; background: var(--champagne); border: 1px solid #E6D196; font: 700 10px/1.3 Montserrat, sans-serif; color: #7E5D2C; white-space: nowrap; }
.post-follows { margin: 1px 12px 10px; padding: 7px 10px; border-radius: 14px; background: #FFF4F9; border: 1px solid #F6C6DE; display: flex; gap: 8px; align-items: flex-start; }
.follows-icon { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #FA7E1E, #D62976 55%, #962FBF); }
.follows-list { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font: 600 10.5px/1.45 Montserrat, sans-serif; color: #4A3B33; }
.follows-handle.is-last { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; color: var(--onyx); }
.follows-more { color: var(--text-2); font-weight: 800; }
.post-clip.is-arriving .post-comment, .post-clip.is-arriving .post-follows { animation: comment-in 360ms ease-out both; animation-delay: calc(1100ms + var(--i, 0) * 650ms); }
@keyframes comment-in { from { opacity: 0; transform: translateY(6px); } }
/* Scene 9: Kunle's video message (the tile plays as it opens: its line fills over the video's length) and Dami's DM */
.thread-kind { display: flex; color: #DDFBF8; }
.sms-in.sms-video { max-width: 214px; padding: 5px 5px 9px; display: flex; flex-direction: column; gap: 7px; }
.sms-video .sms-line { padding: 0 8px; }
.vid-tile { position: relative; width: 204px; height: 152px; border-radius: 14px 14px 10px 10px; overflow: hidden; background: #2B2622; }
.vid-tile .post-still { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 30%; }
.vid-play { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #000000A6; display: grid; place-items: center; color: #fff; }
.vid-time { position: absolute; right: 8px; bottom: 11px; padding: 3px 7px; border-radius: 999px; background: #000000A6; font: 700 10px/1 Montserrat, sans-serif; color: #fff; }
.vid-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #FFFFFF40; }
.vid-progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #1DBFB6; }
.sms-video.is-playing .vid-progress i { width: 100%; transition: width var(--vid-seconds, 14s) linear; }
.sms-video.is-played .vid-progress i { width: 100%; }
/* The HUD's post clock: a post's fans are on their way (Scene 8's gist post) */
.hud-post-clock { display: flex; align-items: center; gap: 4px; padding: 3px 9px 3px 4px; }
.hud-post-clock img { width: 20px; height: 20px; }
.hud-post-clock b { font: 800 12px/1 Montserrat, sans-serif; color: #FFE7A8; }
.hud-post-clock.is-hidden { display: none; }

/* Results (18) */
.results { position: absolute; inset: 0; overflow: hidden; background: #14060E; pointer-events: auto; opacity: 0; transition: opacity 300ms; }
.results.is-open { opacity: 1; }
.results-bg { position: absolute; inset: 0; }
.results-room { position: absolute; left: -20px; top: -20px; width: 1000px; height: 580px; object-fit: cover; filter: blur(14px); }
.results-mood { position: absolute; inset: 0; background: radial-gradient(75% 90% at 32% 50%, #A1A1A1B3 0%, #4A140CE6 50%, #0E0504F5 100%); }
.results-burst { position: absolute; left: -330px; top: -310px; width: 1260px; height: 1260px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, #FFFFFF26 0deg 6.07deg, #FFFFFF00 6.43deg 12.857deg); animation: spin 60s linear infinite; }
.results-burst-fade { position: absolute; inset: 0; background: radial-gradient(circle 630px at 300px 320px, #00000000 15%, #0E0504E6 62%); }
.results-glow { position: absolute; left: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, #FFE3A6B3, #FFE3A600); }
@keyframes spin { to { transform: rotate(360deg); } }
.confetti span { position: absolute; }
.confetti .dot { width: 9px; height: 9px; border-radius: 50%; }
.confetti .slip { width: 10px; height: 17px; border-radius: 2px; }
.results.is-open .confetti span { animation: confetti-fall 900ms ease-out both; }
@keyframes confetti-fall { from { opacity: 0; translate: 0 -40px; } }
.flashes span { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, #FFFFFFCC, #FFFFFF00); }
.results.is-open .flashes span { animation: flash 1.6s ease-in-out infinite alternate; }
@keyframes flash { from { opacity: .55; } to { opacity: 1; } }
.sparkles span { position: absolute; display: block; }
.results.is-open .sparkles span { animation: twinkle 1.8s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .35; transform: scale(.8); } }
.results-heroine { position: absolute; left: 120px; top: 40px; width: 334px; height: 500px; object-fit: contain; filter: drop-shadow(0 10px 20px #00000080); }
.results-head { position: absolute; left: 470px; top: 26px; width: 391px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.results-title { position: relative; margin: 0; padding: 0 6px; font: italic 900 76px/1.22 Montserrat, sans-serif; letter-spacing: 1px; color: transparent; background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 7px 0 #8E1250) drop-shadow(0 0 15px #FFD27A88); }
.results.is-open .results-title { animation: slam 420ms cubic-bezier(.2,1.4,.4,1) 300ms both; }
@keyframes slam { 0% { transform: scale(1.6); opacity: 0; } 60% { opacity: 1; } 80% { transform: scale(.97) translateX(-2px); } 100% { transform: none; } }
.results-head .ribbon { align-self: center; }
.results-stars { position: absolute; left: 484px; top: 170px; width: 300px; display: flex; align-items: flex-end; justify-content: center; gap: 6px; }
.results-star path { stroke-width: 4; }
.results-star.is-earned { filter: drop-shadow(0 0 14px #FFD86680); }
.results.is-open .results-star { animation: star-pop 360ms ease-out both; }
.results.is-open .results-star:nth-child(1) { animation-delay: 600ms; }
.results.is-open .results-star:nth-child(2) { animation-delay: 680ms; }
.results.is-open .results-star:nth-child(3) { animation-delay: 760ms; }
.results.is-open .results-star:nth-child(4) { animation-delay: 840ms; }
.results.is-open .results-star:nth-child(5) { animation-delay: 920ms; }
.results-stars-label { position: absolute; left: 470px; top: 248px; width: 391px; text-align: center; font: 800 12px/1 Montserrat, sans-serif; letter-spacing: 2px; color: #fff; }
.results-summary { position: absolute; left: 493px; top: 273px; width: 290px; box-sizing: border-box; padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; background: #00000080; border: 1px solid #FFFFFF1F; border-radius: 14px; }
.results-summary .row { display: flex; justify-content: space-between; }
.results-summary span { font: 400 12px/1.4 Montserrat, sans-serif; color: #FFFFFFB3; }
.results-summary b { font: 700 12px/1.4 Montserrat, sans-serif; color: #fff; }
.results-summary .total { border-top: 1px solid #FFFFFF1F; padding-top: 6px; }
.results-summary .total span, .results-summary .total b { font-weight: 800; color: #fff; }
.results-gems { position: absolute; left: 810px; top: 134px; width: 120px; display: flex; flex-direction: column; gap: -10px; }
.reward-gem { position: relative; width: 120px; height: 118px; margin-bottom: -10px; }
.reward-gem .halo { position: absolute; left: 6px; top: -6px; width: 108px; height: 108px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--halo) 53%, transparent), transparent); }
.reward-gem img { position: absolute; left: 16px; top: 0; width: 88px; height: 88px; object-fit: contain; }
.reward-gem b { position: absolute; left: 0; top: 78px; width: 120px; height: 34px; box-sizing: border-box; display: grid; place-items: center; background: #000000E6; border: 2px solid var(--edge); border-radius: 999px; box-shadow: 0 4px 8px #00000066; font: 900 17px/1 Montserrat, sans-serif; color: #fff; }
.results.is-open .reward-gem { animation: gem-in 380ms cubic-bezier(.2,1.4,.4,1) both; }
.results.is-open .reward-gem:nth-child(1) { animation-delay: 1050ms; }
.results.is-open .reward-gem:nth-child(2) { animation-delay: 1200ms; }
.results.is-open .reward-gem:nth-child(3) { animation-delay: 1350ms; }
@keyframes gem-in { from { opacity: 0; transform: scale(.4); } }
.results-collect { position: absolute; left: 752px; top: 478px; width: 167px; height: 50px; padding: 0 30px; }

/* Modal (22) */
.modal-root { position: absolute; inset: 0; pointer-events: none; }
.modal-scrim { position: absolute; inset: 0; display: grid; place-items: center; background: #000000B3; pointer-events: auto; animation: fade-in 200ms ease; }
@keyframes fade-in { from { opacity: 0; } }
.modal { position: relative; width: 400px; box-sizing: border-box; padding: 40px 52px 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; border-radius: 28px; background: var(--modal-surface); box-shadow: 0 18px 40px #00000040; color: var(--onyx); text-align: center; animation: modal-in 220ms ease-out; }
@keyframes modal-in { from { opacity: 0; transform: scale(.96); } }
.modal h2 { margin: 0; font: 600 20px/1.25 Montserrat, sans-serif; letter-spacing: 3px; }
.modal-body { margin: 0; font: 500 16px/1.55 Montserrat, sans-serif; color: var(--text-2); }
.modal-actions { display: flex; gap: 12px; padding-top: 8px; flex-wrap: wrap; justify-content: center; }
.modal-close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; padding: 0; display: grid; place-items: center; background: #fff; border: 2px solid var(--champagne-300); color: var(--onyx); }
.settings-list { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.settings-row { display: flex; align-items: center; justify-content: space-between; font: 600 14px/1 Montserrat, sans-serif; color: var(--onyx); }
.toggle { width: 46px; height: 26px; border-radius: 999px; border: none; padding: 3px; background: var(--champagne-300); transition: background 150ms; }
.toggle .knob { display: block; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #00000040; transition: transform 150ms; }
.toggle.is-on { background: var(--azure); }
.toggle.is-on .knob { transform: translateX(20px); }
.settings-restart { margin-top: 8px; align-self: center; gap: 8px; }
.modal-energy .energy-offer { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.energy-offer-meter { display: flex; align-items: center; gap: 6px; }
.energy-offer-meter img { width: 44px; height: 44px; }
.energy-offer-meter b { font: 800 28px/1 Montserrat, sans-serif; color: #B85A00; }
.offer-wait { font-variant-numeric: tabular-nums; color: var(--onyx); }
.modal .btn-gold { height: 48px; font-size: 13px; padding: 0 22px; }

/* ----------------------------------------------- Scenes 3-4: stills, travel, voice note */

/* A still fills the stage on the canvas; this layer takes the tap (no caption). */
.still-layer { position: absolute; inset: 0; z-index: 3; background: none; border: 0; padding: 0; margin: 0; pointer-events: auto; cursor: pointer; }
.still-continue { position: absolute; right: 24px; bottom: 20px; display: flex; padding: 6px; border-radius: 999px; background: #000000A6; color: #FFF6E6; animation: still-hint 600ms ease 900ms both; }
@keyframes still-hint { from { opacity: 0; transform: translateY(6px); } }

/* The bus stop's list (KKH's travel pop-up): open places green with their fare, locked ones grey with a padlock. */
.travel { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: flex-end; padding-right: 64px; background: linear-gradient(90deg, #00000000 30%, #0000008C); pointer-events: auto; opacity: 0; transition: opacity 220ms ease; }
.travel.is-open { opacity: 1; }
.travel.is-leaving { opacity: 0; }
.travel-panel { width: 360px; box-sizing: border-box; padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, #2B2622F2, #0B0A09F2); border: 1.5px solid #C09860; border-radius: 22px; box-shadow: 0 18px 40px #00000066; transform: translateY(14px); transition: transform 220ms ease-out; }
.travel.is-open .travel-panel { transform: none; }
.travel-head { display: flex; align-items: center; gap: 10px; padding: 0 4px 2px; }
.travel-stop { width: 40px; height: 40px; flex: none; }
.travel-from { font: 700 15px/1.2 Montserrat, sans-serif; color: #fff; }
.travel .is-glyph { display: grid; place-items: center; border-radius: 50%; background: #FFAA00; color: #0F0E0C; }
.travel-rows { display: flex; flex-direction: column; gap: 6px; }
.travel-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 8px 10px 8px 16px; border-radius: 999px; border: 0; text-align: left; font: 700 14px/1.2 Montserrat, sans-serif; color: #fff; }
.travel-row.is-open { background: linear-gradient(180deg, #8BCB57, #5A9230); border-top: 1.5px solid #B9E58F; box-shadow: 0 3px 8px #00000059; }
.travel-row.is-open:active, .travel-row.is-selected { filter: brightness(.92); transform: scale(.98); }
.travel-row.is-destination { animation: travel-glow 1400ms ease-in-out infinite; }
@keyframes travel-glow { 50% { box-shadow: 0 0 0 4px #B9E58F66, 0 3px 8px #00000059; } }
.travel-row.is-locked { background: #6E6A66; color: #FFFFFF99; cursor: default; }
.travel-row.is-nudging { animation: travel-nudge 320ms ease; }
@keyframes travel-nudge { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.travel-name { flex: 1; }
.travel-fare { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 3px; border-radius: 999px; background: #0E3A12A6; font: 800 13px/1 Montserrat, sans-serif; color: #fff; }
.travel-fare img { width: 22px; height: 22px; }
.travel-fare.is-paid { padding: 3px; }
.travel-lock { display: inline-flex; align-items: center; gap: 4px; }
.travel-lock > img, .travel-lock > i { width: 26px; height: 26px; }
.travel-level { display: inline-flex; align-items: center; gap: 2px; padding-right: 8px; border-radius: 999px; background: #00000052; font: 800 13px/1 Montserrat, sans-serif; color: #fff; }
.travel-level img { width: 24px; height: 24px; }
.travel-cancel { align-self: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; }
.travel-cancel img { width: 40px; }
.reduced .travel, .reduced .travel-panel { transition: none; }
/* A toast during the travel list sits left of the list, not over it. */
#play.is-travel .toast { left: 60px; }
.reduced .travel-row.is-destination { animation: none; }

/* The route card (KKH's): a black card, the two badges, the dashed S-curve and the vehicle on it (ui/travel.mjs). */
.route-card { position: absolute; inset: 0; z-index: 4; background: #050203; pointer-events: auto; opacity: 0; transition: opacity 160ms ease; }
.route-card.is-in { opacity: 1; }
.route-card.is-out { opacity: 0; transition-duration: 260ms; }
.route-card svg { position: absolute; inset: 0; display: block; }
.route-label { position: absolute; top: 306px; width: 220px; margin: 0; text-align: center; font: 700 15px/1.3 Montserrat, sans-serif; color: #fff; text-shadow: 0 1px 2px #000; }
.route-label span { display: block; }
.route-label span + span { font-weight: 500; font-size: 13px; color: #FFFFFFB3; }
.route-label.is-from { left: 20px; }
.route-label.is-to { left: 720px; }
.reduced .route-card { transition: none; }

/* The voice note: a play button, a waveform that fills as it plays, its length, and its words underneath. */
.thread-avatar.is-photo { object-fit: cover; padding: 0; }
.sms-in.vn { max-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.vn-row { display: flex; align-items: center; gap: 8px; }
.vn-play { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #0E8F88; color: #fff; }
.vn-wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 24px; }
.vn-wave i { width: 3px; border-radius: 2px; background: #0F0E0C40; }
/* Each bar lights at its moment in the note, left to right. */
.vn.is-playing .vn-wave i { animation: vn-fill 160ms linear both; animation-delay: calc(var(--vn-seconds, 11s) * var(--i, 0)); }
.vn.is-played .vn-wave i { background: #0E8F88; }
@keyframes vn-fill { to { background: #0E8F88; } }
.vn-time { font: 700 11px/1 Montserrat, sans-serif; color: #6B6158; }
.vn-words { margin: 0; font: italic 500 13px/1.45 Montserrat, sans-serif; color: #0F0E0C; }

/* Portrait phones: a gentle hint outside the stage; the letterboxed stage still plays. */
#turn-hint { position: fixed; left: 50%; top: max(12px, env(safe-area-inset-top)); transform: translateX(-50%); display: none; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; border-radius: 999px; background: #1C1A17; border: 1px solid #E6D19666; color: #fff; font: 600 13px/1.25 Montserrat, sans-serif; max-width: calc(100vw - 24px); box-sizing: border-box; z-index: 10; }
#turn-hint button { border: none; background: #FFFFFF1F; color: #fff; width: 26px; height: 26px; border-radius: 50%; font-size: 12px; }
body.is-portrait #turn-hint:not(.is-dismissed) { display: flex; }

/* Reduced motion: no idle loops, bobs, spins or slams. */
html.reduced *, html.reduced *::before, html.reduced *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* ----------------------------------------------- The first hour's quick jobs (approved 4 November 2026) */

/* The job card: who texted it, as their name bar and letter; the jobs clipboard as its icon; no brief line, no clock. */
.quest-icon.is-art { background: var(--gold-metal); padding: 4px; }
.quest-icon.is-art img { width: 46px; height: 46px; object-fit: contain; }
.quest-client { align-self: flex-start; position: relative; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 28px 0 4px; border-radius: 999px; }
.quest-client-icon { width: 20px; height: 20px; }
.quest-client b { font: 900 11px/1 Montserrat, sans-serif; letter-spacing: 1.8px; color: #fff; text-shadow: 0 1px 0 #00000059; }
.quest-client-star { position: absolute; right: -6px; top: -3px; width: 30px; height: 30px; display: grid; place-items: center; filter: drop-shadow(0 1px 2px #00000059); }
.quest-card.is-quick .quest-title { font-size: 19px; }
.offer.is-quick { left: 528px; width: 410px; }
/* The outfit bonus: the hanger beside the start pill's star, when her look fits the job. */
.offer-accept.has-fit { padding-right: 10px; }
.offer-fit { margin-left: auto; flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 2px #E6D196, 0 2px 6px #00000040; animation: fit-pop 420ms cubic-bezier(.2,1.4,.4,1) 200ms both; }
.offer-fit img { width: 28px; height: 28px; }
@keyframes fit-pop { from { opacity: 0; transform: scale(.4) rotate(-20deg); } }
/* The gig progress of a job with no clock: stars and name only. */
.gigprog-clock.is-hidden { display: none !important; }

/* A tap on a painted object (the drum, the chair, the crates…) is drawn on the canvas: render/painted-fx.mjs. */

/* The small result card (a quick job): over the place, dimmed; the job's name, its stars, ₦ and XP as icons, the tick. */
.results.is-small { background: none; }
.results-scrim { position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 46%, #0000004D, #000000A6); }
.results-card { position: absolute; left: 300px; top: 112px; width: 360px; box-sizing: border-box; padding: 24px 24px 22px; display: flex; flex-direction: column; align-items: center; gap: 14px; overflow: hidden; border-radius: 28px; background: var(--modal-surface); box-shadow: 0 18px 40px #00000059, 0 0 0 2px #E6D196; color: var(--onyx); transform: scale(.9); opacity: 0; transition: transform 260ms cubic-bezier(.2,1.4,.4,1), opacity 200ms; }
.results.is-open .results-card { transform: none; opacity: 1; }
.results-card-burst { position: absolute; left: 50%; top: 92px; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, #E6D19640 0deg 6deg, #E6D19600 6.4deg 12.857deg); animation: spin 60s linear infinite; pointer-events: none; }
.results-card > :not(.results-card-burst) { position: relative; }
.results-card-title { font: 800 18px/1.2 Montserrat, sans-serif; text-align: center; }
.results-card .results-stars { position: relative; left: auto; top: auto; width: auto; }
.results-chips { display: flex; gap: 12px; }
.results-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 16px 4px 4px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1.5px var(--champagne-300), 0 3px 8px #00000026; }
.results-chip img { width: 40px; height: 40px; }
.results-chip b { font: 900 18px/1 Montserrat, sans-serif; color: var(--onyx); }
.results.is-small .results-collect { position: relative; left: auto; top: auto; width: 84px; height: 50px; padding: 0; }
.results-collect-icon { width: 34px; height: 34px; }

/* The level-up card: the rosette with the level on it, the rewards as icons, the one unlock, the gold tick. */
.modal-levelup { width: 380px; padding: 30px 32px 26px; gap: 14px; overflow: hidden; }
.modal-levelup h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.modal-levelup .gold-rule, .modal-levelup .modal-close { display: none; }
.levelup { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.levelup-burst { position: absolute; left: 50%; top: 58px; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, #E6D19659 0deg 6deg, #E6D19600 6.4deg 12.857deg); animation: spin 40s linear infinite; pointer-events: none; }
.levelup > :not(.levelup-burst) { position: relative; }
.levelup-badge { width: 118px; height: 118px; display: grid; place-items: center; animation: slam 420ms cubic-bezier(.2,1.4,.4,1) 80ms both; }
.levelup-award { position: absolute; inset: 0; width: 118px; height: 118px; object-fit: contain; filter: drop-shadow(0 6px 10px #9E764266); }
.levelup-number { position: relative; top: -12px; font: italic 900 42px/1 Montserrat, sans-serif; color: #fff; -webkit-text-stroke: 2px #8A5A12; paint-order: stroke fill; text-shadow: 0 3px 0 #8A5A12; }
.levelup-rewards { display: flex; gap: 8px; }
.levelup-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 13px 3px 3px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1.5px var(--champagne-300); }
.levelup-chip img { width: 32px; height: 32px; }
.levelup-chip b { font: 900 15px/1 Montserrat, sans-serif; color: var(--onyx); }
.levelup-unlock { display: inline-flex; align-items: center; gap: 8px; padding: 4px 18px 4px 4px; border-radius: 999px; background: linear-gradient(180deg, #2B2622, #0A0908); box-shadow: 0 0 0 2px #E6D196, 0 4px 10px #00000040; animation: gem-in 380ms cubic-bezier(.2,1.4,.4,1) 420ms both; }
.levelup-unlock-icon { width: 38px; height: 38px; object-fit: contain; }
.levelup-unlock b { font: 800 14px/1.2 Montserrat, sans-serif; color: #fff; }
.modal-levelup .modal-actions { padding-top: 2px; }
.modal-levelup .levelup-ok { width: 96px; padding: 0; }
.levelup-ok-icon { width: 36px; height: 36px; }
.reduced .levelup-burst, .reduced .results-card-burst { animation: none; }
/* Scenes 5–7 (4 November 2026). Bars wait (dimmed) while a line plays between the walk's taps; full screens hide them. */
.action-pill.is-passive { opacity: .6; filter: saturate(.7); }
#play.is-full .action-pill { visibility: hidden; }
/* Teni's follow: a banner on her lock screen, top centre over the place; a tap anywhere goes on. */
.notice-layer { position: absolute; inset: 0; z-index: 3; background: none; border: 0; padding: 0; margin: 0; pointer-events: auto; cursor: pointer; }
.notice-banner { position: absolute; left: 50%; top: 92px; width: 380px; margin-left: -190px; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; background: linear-gradient(180deg, #FFFFFFF5, #F3ECE4F5); border-radius: 22px; box-shadow: 0 0 0 1.5px var(--champagne-300), 0 18px 40px #00000059; transform: translateY(-140px); opacity: 0; transition: transform 420ms cubic-bezier(.2,1.2,.4,1), opacity 220ms; text-align: left; }
.notice-banner.is-in { transform: none; opacity: 1; }
.notice-icon { width: 44px; height: 44px; flex: none; }
.notice-text { display: flex; flex-direction: column; gap: 3px; }
.notice-text b { font: 800 15px/1.15 Montserrat, sans-serif; color: var(--onyx); }
.notice-text span { font: 600 12px/1.2 Montserrat, sans-serif; color: var(--text-2); }
.reduced .notice-banner { transition: none; }
/* The rank-up card: the new list's star, its name and line, the fans. */
.rankup { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; text-align: center; }
.rankup > :not(.levelup-burst) { position: relative; }
.rankup-star { width: 116px; height: 116px; display: grid; place-items: center; animation: slam 420ms cubic-bezier(.2,1.4,.4,1) 80ms both; filter: drop-shadow(0 6px 10px #00000040); }
.rankup-title { font: italic 900 30px/1 Montserrat, sans-serif; letter-spacing: 1px; color: var(--onyx); }
.rankup-body { margin: 0; max-width: 300px; font: 600 14px/1.4 Montserrat, sans-serif; color: var(--text-2); }
.rankup-fans { animation: gem-in 380ms cubic-bezier(.2,1.4,.4,1) 420ms both; }
.reduced .rankup-star, .reduced .rankup-fans { animation: none; }
/* The brief changing for the second half. */
.quest-note { font: 600 11px/1.3 Montserrat, sans-serif; color: var(--text-2); font-style: italic; }
/* Mummy's voice call: her initial on the lock screen, the phone icon for a voice call, when it is. */
.call-backdrop.is-lock { background: radial-gradient(80% 60% at 50% 35%, #3B4A63 0%, #1C2433 60%, #0B0F16 100%); }
.call-avatar.is-initial { display: grid; place-items: center; }
.call-initial { font: 800 46px/1 Montserrat, sans-serif; color: #5A4632; }
.call-kind { width: 30px; height: 30px; object-fit: contain; }
.call-when { margin-top: 2px; }
.reply-column.is-call-replies .replies.is-nudging { animation: replies-nudge 360ms ease-out; }
/* Mummy's voice call sits on the left like the video call; its replies keep their place on the right, above it. */
.phone-screen[data-kind="voice-call"] { z-index: 2; pointer-events: none; }
.phone-screen[data-kind="voice-call"] .phone-body { left: 120px; pointer-events: auto; }
.phone-screen[data-kind="voice-call"] .phone-scrim { background: #05080EA6; }
.phone-screen[data-kind="voice-call"] .phone-close { display: none; }
#play .reply-column.is-call-replies { z-index: 3; }
.offer.is-brief { left: 556px; width: 386px; }
.todo-card.is-empty { min-height: 0; padding-bottom: 10px; }
.call-who .call-initial { margin: 0; font: 800 50px/1 Montserrat, sans-serif; color: #5A4632; }

/* First-hour icons (5 November 2026: the user's picks in experiments/034-first-hour-stills) */
/* A look tag: on job cards (the look the job wants) and at the right end of an outfit reply. */
.chip.is-look img { width: 26px; height: 26px; }
.reply-looks { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 2px; padding-left: 8px; }
.reply-looks .look-tag { display: inline-grid; }
.reply-looks img { width: 26px; height: 26px; }
/* The outfit bonus's hanger badge pops out of her waist with its drops, rises a little and fades as they land. */
.fit-badge { position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; pointer-events: none; filter: drop-shadow(0 2px 4px #00000059); animation: fit-badge 1400ms cubic-bezier(.2,1.2,.4,1) both; }
@keyframes fit-badge { 0% { opacity: 0; transform: translateY(0) scale(.3); } 18% { opacity: 1; transform: translateY(-26px) scale(1.18); } 30% { transform: translateY(-34px) scale(1); } 75% { opacity: 1; transform: translateY(-42px) scale(1); } 100% { opacity: 0; transform: translateY(-50px) scale(.9); } }

/* ---------------------------------------------------------------- Sunday morning (docs/sunday-free-roam-plan.md §5) */
/* The END OF CHAPTER 1 card's buttons: BACK TO TITLE (secondary) and Next (primary, the story goes on). */
.end-actions { display: flex; align-items: center; justify-content: center; gap: 14px; }
.end-actions #end-next-btn { min-width: 168px; }
.end-actions [hidden] { display: none; }
#end.is-leaving { opacity: 0; pointer-events: none; }

/* The hub: her room's "+" pins, the items' tap areas and Aunty Bisi's notification (ui/home.mjs). */
.home-layer { position: absolute; inset: 0; pointer-events: none; }
.home-layer > * { pointer-events: auto; }
/* (The pin's button stands still, so a tap always lands; its disc and glow bob and pulse inside it.) */
.home-pin { position: absolute; width: 46px; height: 46px; padding: 0; border: 0; background: none; cursor: pointer; }
.home-pin > span { animation: marker-bob 1.4s ease-in-out infinite; }
.home-pin-glow { position: absolute; inset: -12px; border-radius: 50%; background: radial-gradient(circle, #FFF2B8AA 0%, #FFD86655 45%, #FFD86600 70%); }
.home-pin > .home-pin-glow { animation: home-glow 1.6s ease-in-out infinite; }
.home-pin-disc { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(120% 120% at 30% 20%, #FFFFFF 0%, #FFF6E6 55%, #F0DDB8 100%); border: 2.5px solid #E6C27A; box-shadow: 0 0 0 2px #FFFFFF99, 0 0 14px #FFD866CC, 0 4px 10px #00000066; color: #8A6328; }
.home-pin-disc .ic { stroke-width: 3; }
.home-pin:active .home-pin-disc { transform: scale(.92); }
.home-pin:focus-visible { outline: none; }
.home-pin:focus-visible .home-pin-disc { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #009DFF, 0 4px 10px #00000066; }
@keyframes home-glow { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.12); } }
.home-item { position: absolute; padding: 0; border: 0; border-radius: 14px; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.home-item:focus-visible { outline: 2px dashed #FFFFFFB3; outline-offset: 2px; }
.home-item:active { background: #FFFFFF14; }
.home-item-state { position: absolute; left: 50%; top: -6px; width: 38px; height: 38px; margin-left: -19px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3A3631, #0B0A09); border: 1.5px solid #E6D196; box-shadow: 0 3px 8px #00000080; pointer-events: none; }
.home-item-state img { width: 28px; height: 28px; display: block; }
.home-item-state.is-ready { animation: marker-bob 1.2s ease-in-out infinite; }
.home-item-state.is-ready::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; box-shadow: 0 0 0 2px #FFD86699; animation: home-glow 1.6s ease-in-out infinite; }
/* Used today: dimmed with the HUD family's timer, until the Lagos day turns. */
.home-item-state.is-used { opacity: .72; filter: grayscale(.6); border-color: #A39889; }
.home-item.is-used { cursor: default; }
.home-notice { position: absolute; left: 22px; top: 300px; width: 248px; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border: 0; border-radius: 18px; background: linear-gradient(180deg, #FFFFFFF5, #F3ECE4F5); box-shadow: 0 0 0 1.5px var(--champagne-300), 0 10px 24px #00000059; text-align: left; cursor: pointer; animation: home-notice-in 420ms cubic-bezier(.2,1.2,.4,1) both; }
.home-notice:active { transform: scale(.98); }
.home-notice-who { position: relative; flex: none; width: 46px; height: 46px; }
.home-notice-face { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; display: block; background: #F6EADC; box-shadow: 0 0 0 2px #E6C27A; }
.home-notice-face.is-initial { display: grid; place-items: center; font: 800 18px/1 Montserrat, sans-serif; color: #8A6328; }
.home-notice-badge { position: absolute; right: -6px; bottom: -6px; width: 26px; height: 26px; filter: drop-shadow(0 1px 2px #00000066); animation: home-badge 1.6s ease-in-out infinite; }
.home-notice-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.home-notice-text b { font: 800 13px/1.15 Montserrat, sans-serif; color: var(--onyx); }
.home-notice-text span { font: 500 11.5px/1.3 Montserrat, sans-serif; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@keyframes home-notice-in { from { opacity: 0; transform: translateX(-30px); } }
@keyframes home-badge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
.reduced .home-pin, .reduced .home-pin-glow, .reduced .home-item-state, .reduced .home-item-state::after, .reduced .home-notice, .reduced .home-notice-badge { animation: none; }

/* The ₦ notes on her floor are drops (ui/drops.mjs); the payout of a use flies like a gig's gems, a little smaller. */
.fly-gem.is-small { width: 40px; height: 40px; }
.fly-layer .drop-float { position: absolute; left: 0; top: 0; }

/* The slot's picker (the modal): its two items, each a card, the price in KKH's green (red when she's short). */
.modal-home-picker { width: 540px; padding: 34px 30px 28px; gap: 14px; }
.home-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
.home-option { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 10px 12px; border: 1.5px solid var(--champagne-300); border-radius: 20px; background: linear-gradient(180deg, #FFFFFF, #F6EEE3); box-shadow: 0 4px 12px #9E764233; cursor: pointer; color: var(--onyx); }
.home-option:active { transform: scale(.98); }
.home-option:focus-visible { outline: 3px solid #E6D196; outline-offset: 2px; }
.home-thumb { width: 100%; height: 132px; display: grid; place-items: center; border-radius: 14px; background: radial-gradient(90% 90% at 50% 35%, #FFFFFF 0%, #F6EADC 70%, #EBD9C2 100%); overflow: hidden; }
.home-thumb img { max-width: 92%; max-height: 124px; object-fit: contain; filter: drop-shadow(0 4px 6px #0000002E); }
.home-thumb.is-placeholder b { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--gold-metal); box-shadow: inset 0 2px 0 #FFFFFF99, 0 4px 10px #9E764259; font: 800 34px/1 Montserrat, sans-serif; color: #FFFFFF; text-shadow: 0 1px 2px #8A6328; }
.home-option-star { position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-star); box-shadow: 0 2px 6px #8A632866; font: 900 17px/1 Montserrat, sans-serif; color: #FFFFFF; text-shadow: 0 1px 1px #8A6328; }
.home-option-name { font: 800 14px/1.2 Montserrat, sans-serif; text-align: center; min-height: 34px; display: grid; place-items: center; }
.home-option-row { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.home-option-xp { display: inline-flex; align-items: center; gap: 2px; padding: 3px 9px 3px 3px; border-radius: 999px; background: var(--champagne); }
.home-option-xp img { width: 24px; height: 24px; }
.home-option-xp b { font: 800 13px/1 Montserrat, sans-serif; }
.home-option-price { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px 4px 4px; border-radius: 999px; background: #7DBA48; border-top: 1.5px solid #B9E58F; box-shadow: 0 3px 8px #5A923059; }
.home-option-price img { width: 26px; height: 26px; }
.home-option-price b { font: 800 15px/1 Montserrat, sans-serif; color: #FFFFFF; text-shadow: 0 1px 0 #00000059; }
.home-option.is-dear .home-option-price { background: #D9483B; border-top-color: #F08C80; box-shadow: 0 3px 8px #8E1E1459; }
.home-option.is-dear .home-thumb img { opacity: .82; }

/* Sunday's to-do: every row of the day, the next chapter's locked (greyed, the padlock). */
.todo-task.is-locked, .todo-task.is-tappable { border: 0; background: none; padding: 0; margin: 0; text-align: left; font: 400 12px/1.35 Montserrat, sans-serif; cursor: pointer; }
.todo-task.is-locked { color: #A39889; }
.todo-task.is-locked .todo-box { padding-top: 0; }
.todo-lock { width: 16px; height: 16px; display: block; filter: grayscale(1) opacity(.75); }
span.todo-lock { display: flex; color: #A39889; filter: none; }
.todo-task.is-tappable { color: var(--text-2); }
.todo-task.is-tappable:active { color: var(--onyx); }

/* The welcome-back post: the gist blog's words alone, no photo. */
.post-gist.is-words .post-caption { font-size: 16px; line-height: 1.45; padding: 4px 14px 10px; }
