/* Career's screens over the game: inside Amazing Co. HQ, the talking box, the gang
   after you, stop-and-read cards, the opening scene, Pop's Pizzeria and Joe's mission.
   The look is the Sticker Street kit's (css/kit/, --gd-* tokens). */

/* Career: inside Amazing Co. HQ (career/hq.js). The town's HUD and the phone
   are put away; the walking controls stay on touch. */
body.hq #hud, body.hq #phoneWrap, body.hq #worldTip, body.hq #hint, body.hq #flashTip, body.hq #notify,
body.pops #hud, body.pops #phoneWrap, body.pops #worldTip, body.pops #hint, body.pops #flashTip, body.pops #notify, body.pops #corner, body.pops #journal { display: none !important; } /* (the touch controls stay: walk, and tap to sit) */
/* (what to do next: a white key chip with a blue edge) */
#hqPrompt { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; border: var(--gd-line) solid var(--gd-blue); border-radius: var(--gd-r); background: #fff; color: var(--gd-ink); font: 700 14px/1.1 var(--gd-font); text-transform: uppercase; letter-spacing: .03em; box-shadow: var(--gd-sh-sm) var(--gd-sh-sm) 0 var(--gd-blue); pointer-events: none; }
body.touch #hqPrompt { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
#hqPrompt[hidden] { display: none; } /* (its display: flex would otherwise beat the hidden attribute: an empty pill everywhere) */
#hqFade { position: fixed; inset: 0; z-index: 60; background: var(--gd-navy); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .42s; }
#hqFade.on { opacity: 1; pointer-events: auto; }
#hqFade div { display: grid; justify-items: center; gap: 6px; color: #fff; }
#hqFade b { font: 700 36px/1 var(--gd-font); letter-spacing: .08em; }
#hqFade small { font: 700 12px/1 var(--gd-font); letter-spacing: .28em; color: var(--gd-mustard); }
#hqFade.black { background: #000; }
#hqFade.black div { visibility: hidden; }
/* (a speech bubble over someone's head: a white sticker with a tail) */
.sayBubble { position: fixed; z-index: 25; transform: translate(-50%, -100%); background: #fff; color: var(--gd-ink); border: var(--gd-line) solid var(--gd-ink); font: 600 15px/1.35 var(--gd-font); padding: 8px 13px; border-radius: var(--gd-r-md); box-shadow: var(--gd-sh-sm) var(--gd-sh-sm) 0 var(--gd-ink); pointer-events: none; white-space: nowrap; animation: sayIn .35s ease-out; }
.sayBubble::after { content: ''; position: absolute; left: 50%; bottom: -10px; width: 14px; height: 14px; margin-left: -7px; background: #fff; border-right: var(--gd-line) solid var(--gd-ink); border-bottom: var(--gd-line) solid var(--gd-ink); transform: rotate(45deg); }
@keyframes sayIn { from { transform: translate(-50%, -80%) scale(.8); opacity: 0; } }
/* the talking box (career/dialogue.js) */
.talk { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40; width: min(640px, calc(100vw - 24px)); }
/* (a white sticker card; a red ring when they're angry, green when they're happy) */
.talk .tkCard { background: #fff; color: var(--gd-ink); border: var(--gd-line) solid var(--gd-ink); border-radius: var(--gd-r-lg); padding: 14px 16px 12px; box-shadow: 6px 6px 0 var(--gd-ink); display: grid; gap: 8px; cursor: pointer; }
.talk[data-mood="angry"] .tkCard { box-shadow: 0 0 0 4px var(--gd-red), 6px 6px 0 4px var(--gd-ink); }
.talk[data-mood="angry"] .tkText { font-size: 24px; font-weight: 700; color: var(--gd-ketchup); }
.talk[data-mood="happy"] .tkCard { box-shadow: 0 0 0 4px var(--gd-green), 6px 6px 0 4px var(--gd-ink); }
.tkWho { display: flex; align-items: baseline; gap: 10px; }
.tkWho b { font: 700 16px/1 var(--gd-font); text-transform: uppercase; letter-spacing: .03em; }
.tkWho small { font: 600 11.5px/1.2 var(--gd-font); color: var(--gd-mute); }
.tkText { margin: 0; font: 500 16px/1.45 var(--gd-font); min-height: 2.8em; }
.tkChoices { display: grid; gap: 8px; }
/* (each answer: a cream row with its number in an ink dot; the one picked in mustard) */
.tkChoice { font: 600 14.5px/1.3 var(--gd-font); text-align: left; color: var(--gd-ink); background: var(--gd-cream); border: 2px solid var(--gd-ink); border-radius: var(--gd-r-sm); padding: 8px 10px; display: flex; gap: 10px; align-items: center; cursor: pointer; }
.tkChoice em { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gd-ink); color: #fff; font: 700 12px/1 var(--gd-font); font-style: normal; }
.tkChoice em:empty { display: none; }
.tkChoice:hover, .tkChoice.sel { background: var(--gd-mustard); box-shadow: 3px 3px 0 var(--gd-ink); }
.tkNext { justify-self: end; display: flex; align-items: center; gap: 6px; font: 700 12px/1 var(--gd-font); text-transform: uppercase; letter-spacing: .04em; color: var(--gd-mute); min-height: 20px; }
body.touch .talk { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
body.touch .tkText { font-size: 15px; }

/* Career: Amazing Co.'s gang after you (career/gang.js): their smileys
   instead of stars, "RUN!" in their sky blue (flashing like the cops' text)
   and the meter says CAUGHT. Their colors: navy #24477a, sky blue #76c5e5. */
#gang { background: var(--gd-navy); color: #fff; border: var(--gd-line) solid var(--gd-ink); border-radius: var(--gd-r); padding: 5px 12px; display: flex; align-items: center; gap: 3px; box-shadow: var(--gd-sh-sm) var(--gd-sh-sm) 0 var(--gd-ink); animation: gangFlash .5s steps(2) infinite; }
#gang .lbl { font: 700 11px/1 var(--gd-font); letter-spacing: .12em; margin-right: 6px; color: #fff; }
#gang .sm { width: 22px; height: 22px; opacity: .25; filter: grayscale(1); display: grid; place-items: center; color: #fff; }
#gang .sm.on { opacity: 1; filter: drop-shadow(0 0 5px rgba(118, 197, 229, .9)); }
#gang .sm img { width: 22px; height: 22px; }
@keyframes gangFlash { 0% { box-shadow: 0 0 0 4px var(--gd-sky), 3px 3px 0 4px var(--gd-ink); } 100% { box-shadow: 0 0 0 4px #fff, 3px 3px 0 4px var(--gd-ink); } }
#bigmsg.amazing h1 { color: var(--gd-sky); animation: amazingText .4s steps(2) infinite; }
@keyframes amazingText { 50% { color: #d0e8ff; } }
#bustBar.gang i { background: linear-gradient(90deg, var(--gd-sky), var(--gd-navy)); }
body.showroom #gang, body.hq #gang, body.pops #gang { display: none !important; }

/* a stop-and-read card (ui/popup.js): the tutorial welcome's look */
#gamePopup { z-index: 45; }
/* (two buttons side by side: always the same size and lined up, however long
   their words) */
#gamePopup .twBtns.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#gamePopup .twBtns.pair .btn { padding-left: 8px; padding-right: 8px; }
#gamePopup .btn > span { text-align: center; text-wrap: balance; }
#gamePopup .gpGlyph { width: 80px; height: 80px; margin: -2px auto 8px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--gd-blue); border: var(--gd-line) solid var(--gd-ink); box-shadow: 3px 3px 0 var(--gd-ink); transform: rotate(-6deg); }

/* Career's opening scene (career/intro.js): letterbox bars and Skip; the HUD's away */
body.cutscene #hud, body.cutscene #touch, body.cutscene #phoneWrap, body.cutscene #corner, body.cutscene #notify, body.cutscene #worldTip, body.cutscene #hint, body.cutscene #flashTip { display: none !important; }
#cine { position: fixed; inset: 0; z-index: 35; pointer-events: none; }
#cine .cTop, #cine .cBot { position: absolute; left: 0; right: 0; height: 9vh; background: #000; animation: cineIn .6s ease-out both; } /* (just the bars: the Skip button's key icon is an <i> too) */
#cine .cTop { top: 0; }
#cine .cBot { bottom: 0; }
@keyframes cineIn { from { height: 0; } }
#cine .cSkip { position: absolute; top: calc(9vh + 12px); right: 14px; pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; font: 700 13.5px/1 var(--gd-font); text-transform: uppercase; letter-spacing: .03em; color: var(--gd-ink); background: #fff; border: var(--gd-line) solid var(--gd-ink); border-radius: var(--gd-r); padding: 4px 13px 4px 5px; box-shadow: var(--gd-sh-sm) var(--gd-sh-sm) 0 var(--gd-ink); cursor: pointer; }


/* ---------- Pop's Pizzeria (career/pizzeria.js): its own warm fade ---------- */
#popsFade { position: fixed; inset: 0; z-index: 60; background: #1a0f08; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .42s; }
#popsFade.on { opacity: 1; pointer-events: auto; }
#popsFade div { display: grid; justify-items: center; gap: 6px; color: #ffd9a8; }
#popsFade b { font: 700 36px/1 var(--gd-font); letter-spacing: .08em; }
#popsFade small { font: 700 12px/1 var(--gd-font); letter-spacing: .28em; color: var(--gd-mustard); }
#popsFade.black { background: #000; }
#popsFade.black div { visibility: hidden; }

/* ---------- Joe's mission (career/mission.js) ---------- */
/* the tablet: when it hacks next (a ring filling up), and HACKED! as it does */
/* (an ink pill: the tablet in a ring that fills, what's next, and the countdown in mustard) */
#missionHud { position: fixed; z-index: 12; top: 12px; left: calc(50% + 82px); display: flex; align-items: center; gap: 10px; padding: 5px 16px 5px 6px; border: var(--gd-line) solid var(--gd-ink); border-radius: 30px; background: var(--gd-ink); color: #fff; box-shadow: var(--gd-sh-sm) var(--gd-sh-sm) 0 rgba(0, 0, 0, .35); pointer-events: none; --p: 0; }
#missionHud.hidden { display: none; }
#missionHud .mhRing { position: absolute; left: 6px; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; background: conic-gradient(var(--gd-mustard) calc(var(--p) * 360deg), #fff 0); -webkit-mask: radial-gradient(circle, transparent 15px, #000 16px); mask: radial-gradient(circle, transparent 15px, #000 16px); }
#missionHud .mhTab { width: 40px; height: 40px; object-fit: contain; position: relative; }
#missionHud span { display: grid; line-height: 1.1; }
#missionHud b { font: 700 12px/1 var(--gd-font); letter-spacing: .12em; }
#missionHud small { margin-top: 3px; font: 700 13px/1 var(--gd-font); color: var(--gd-mustard); }
#missionHud.fire { box-shadow: 0 0 0 4px var(--gd-blue), 3px 3px 0 4px var(--gd-ink); animation: mhFire .5s ease-out; }
#missionHud.fire small { color: #fff; }
@keyframes mhFire { 0% { transform: scale(1.18); } 100% { transform: scale(1); } }
body.touch #missionHud { top: calc(env(safe-area-inset-top, 0px) + 54px); right: auto; left: 10px; padding: 4px 12px 4px 6px; }
body.touch #missionHud small { font-size: 14px; }
body.cutscene #missionHud { display: none; }
/* the big hack at the drop point: everything goes blue for a moment */
#missionFlash { position: fixed; inset: 0; z-index: 34; pointer-events: none; opacity: 0; background: radial-gradient(circle, rgba(76, 141, 255, 0) 25%, rgba(76, 141, 255, .8)); }
#missionFlash.on { animation: missionFlash 1.4s ease-out; }
@keyframes missionFlash { 0% { opacity: 0; } 8% { opacity: 1; } 100% { opacity: 0; } }
.missionSay { z-index: 36; }
/* Joe's cave (career/cave.js): most of the town's HUD is put away, but the phone (its
   Grub City terminal opens it) and the journal (the $200) stay. */
body.inCave #timer, body.inCave #objective, body.inCave #notify, body.inCave #bustBar, body.inCave #waitBar, body.inCave #callout, body.inCave #worldTip, body.inCave #corner, body.inCave #flashTip, body.inCave #phoneTip, body.inCave #scanner, body.inCave #showroomHud, body.inCave #bigmsg, body.inCave #bottomLeft, body.inCave #prompts, body.inCave #hudBtns, body.inCave #hint, body.inCave #gang { display: none !important; } /* (the clock, your money and the journal stay) */
#caveFade { position: fixed; inset: 0; z-index: 60; background: #070a10; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .42s; }
#caveFade.on { opacity: 1; pointer-events: auto; }
#caveFade div { display: grid; justify-items: center; gap: 6px; padding: 0 16px; text-align: center; color: #bfe2ff; }
#caveFade b { font: 700 36px/1 var(--gd-font); letter-spacing: .08em; }
#caveFade small { font: 700 12px/1.3 var(--gd-font); letter-spacing: .28em; color: #7fa6e8; }
#caveFade.black { background: #000; }
#caveFade.black div { visibility: hidden; }
#cine .cCap { position: absolute; left: 50%; bottom: calc(9vh + 18px); transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 8px 18px; border: var(--gd-line) solid var(--gd-ink); border-radius: var(--gd-r-md); background: #fff; color: var(--gd-ink); font: 700 clamp(17px, 3vw, 26px)/1.25 var(--gd-font); text-align: center; box-shadow: var(--gd-sh) var(--gd-sh) 0 var(--gd-ink); animation: toastIn .35s ease-out; }
#cine .cCap[hidden] { display: none; }
