/* ACCRA: CITY OF HUSTLE — UI. Palette matches cityofhustle.com: kente gold, laterite, kente green, cloth. */
:root {
  --gold: #f2b01e;
  --gold-hi: #ffd25a;
  --laterite: #9e3b22;
  --red: #c8241f;
  --green: #0c6b3e;
  --ink: #15100c;
  --cloth: #f7ead3;
  --panel: rgba(21, 16, 12, 0.72);
  --text: #fff8e7;
  --display: "Arial Black", "Impact", "Trebuchet MS", system-ui, sans-serif;
  --kente: repeating-linear-gradient(90deg, var(--gold) 0 18px, var(--green) 18px 28px, var(--red) 28px 38px, #111 38px 43px, var(--gold) 43px 50px, var(--laterite) 50px 56px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif; color: var(--text); user-select: none; -webkit-user-select: none; }
canvas#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }

/* ------------------------------------------------------------------ HUD */
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud-topleft { position: absolute; top: 14px; left: 16px; }
#money { display: inline-block; font-family: var(--display); font-size: 26px; color: var(--gold-hi); letter-spacing: 1px;
  background: var(--panel); padding: 6px 16px 8px 14px; border-radius: 10px; border-left: 4px solid var(--gold);
  text-shadow: 0 2px 0 #000; box-shadow: 0 3px 0 rgba(0,0,0,.35); position: relative; }
#money::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 3px; border-radius: 2px; background: var(--kente); opacity: .9; }
#wanted { font-size: 22px; color: var(--gold); text-shadow: 0 2px 0 #000; min-height: 26px; }
#hud-topright { position: absolute; top: 14px; right: 16px; text-align: right; background: var(--panel); padding: 6px 14px 8px; border-radius: 10px; border-right: 4px solid var(--gold); }
#clock { font-family: var(--display); font-size: 24px; text-shadow: 0 2px 0 #000; letter-spacing: 1px; }
#district { font-size: 13px; color: var(--gold); text-shadow: 0 2px 0 #000; text-transform: uppercase; letter-spacing: 3px; font-weight: 800; }

#objective { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); background: var(--panel); border-left: 4px solid var(--gold); padding: 10px 18px; border-radius: 6px; max-width: 520px; text-align: center; }
#objective-title { font-weight: 800; color: var(--gold); font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }
#objective-text { font-size: 18px; margin-top: 2px; }
#objective-timer { font-size: 22px; font-weight: 800; margin-top: 2px; }
#objective-timer.low { color: #ff5a5a; }

#prompt { position: absolute; bottom: 34%; left: 50%; transform: translateX(-50%); background: var(--panel); padding: 10px 18px; border-radius: 6px; font-size: 18px; border: 1px solid rgba(255,255,255,0.2); }
#prompt b { color: var(--gold); }
#objective { border-left: 0; border-top: 4px solid var(--gold); border-radius: 0 0 12px 12px; box-shadow: 0 4px 0 rgba(0,0,0,.3); }
#prompt { border-radius: 30px; border: 0; border-left: 5px solid var(--gold); background: rgba(21,16,12,.82); padding: 10px 22px; }

/* notifications: phone push cards, newest on top */
#toasts { position: absolute; top: 72px; left: 16px; display: flex; flex-direction: column; gap: 7px; width: 330px; }
.toast { background: rgba(32, 28, 26, 0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 14px; padding: 7px 12px 9px;
  font-size: 14px; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 6px 16px rgba(0,0,0,.35); animation: notifIn .28s cubic-bezier(.2,.9,.3,1.2); position: relative; overflow: hidden; }
.toast.out { animation: notifOut .26s ease-in forwards; }
.toast:first-child::after { /* a hairline crack across the newest card: it's that phone */
  content: ""; position: absolute; right: 0; top: 0; width: 90px; height: 100%; pointer-events: none; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 60'%3E%3Cg fill='none' stroke='white' stroke-width='.8'%3E%3Cpath d='M90 6 L66 18 L52 14 L30 30'/%3E%3Cpath d='M66 18 L72 40 L60 60'/%3E%3Cpath d='M72 40 L90 44'/%3E%3C/g%3E%3C/svg%3E") no-repeat right top / 90px 100%; }
.nf-head { display: flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .78; margin-bottom: 2px; }
.nf-icon { width: 15px; height: 15px; border-radius: 4px; background: var(--kente); background-size: 30px 15px; flex: none; }
.nf-icon.nf-street { background: var(--laterite); } .nf-icon.nf-fitter { background: #ff8a1f; } .nf-icon.nf-gps { background: #ff3ea5; } .nf-icon.nf-momo { background: var(--green); }
.nf-app { font-weight: 800; }
.nf-time { margin-left: auto; letter-spacing: 0; }
.nf-body { line-height: 1.35; }
.nf-body b { color: var(--gold-hi); }
@keyframes notifIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes notifOut { to { opacity: 0; transform: translateX(-30px); } }

/* district banner: centred, fades in, holds, fades out (driven by .show) */
#district-banner { position: absolute; top: 15%; left: 50%; transform: translateX(-50%); text-align: center; opacity: 0; pointer-events: none; white-space: nowrap; }
#district-banner .db-name { font-size: 46px; font-weight: 900; letter-spacing: 8px; text-transform: uppercase; color: #fff8e7; text-shadow: 0 3px 0 #000, 0 0 24px rgba(0,0,0,.55); }
#district-banner .db-sub { font-size: 15px; letter-spacing: 5px; text-transform: uppercase; color: var(--gold); text-shadow: 0 2px 0 #000; margin-top: 4px; font-style: italic; }
#district-banner .db-kente { height: 6px; width: 0; margin: 0 auto 10px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--gold) 0 14px, var(--green) 14px 22px, var(--red) 22px 30px, #111 30px 34px); }
#district-banner.show { animation: dbFade 3.2s ease-out forwards; }
#district-banner.show .db-kente { animation: dbKente 3.2s ease-out forwards; }
#district-banner.show .db-name { animation: dbName 3.2s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes dbFade { 0% { opacity: 0; } 10% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dbKente { 0% { width: 0; } 25% { width: 260px; } 100% { width: 260px; } }
@keyframes dbName { 0% { letter-spacing: 22px; filter: blur(4px); } 20% { letter-spacing: 8px; filter: none; } 100% { letter-spacing: 9px; } }

#bigmsg { position: absolute; top: 30%; left: 0; right: 0; text-align: center; }
#bigmsg-title { font-size: 64px; font-weight: 900; color: var(--gold); text-shadow: 0 4px 0 #000, 0 0 20px rgba(0,0,0,.6); letter-spacing: 3px; }
#bigmsg-sub { font-size: 22px; text-shadow: 0 2px 0 #000; }
#bigmsg.fail #bigmsg-title { color: #ff4a4a; }
#bigmsg-title { font-family: var(--display); letter-spacing: 4px; }

/* the minimap is a cracked smartphone */
#phone { position: absolute; left: 16px; bottom: 16px; width: 222px; padding: 8px 11px 10px; border-radius: 30px;
  background: linear-gradient(155deg, #3a3633, #121010 60%); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px rgba(255,255,255,.08), 0 10px 26px rgba(0,0,0,.5); }
#phone::before { content: ""; position: absolute; right: -3px; top: 70px; width: 3px; height: 38px; border-radius: 2px; background: #2a2725; }
.ph-status { display: flex; align-items: center; justify-content: space-between; height: 18px; padding: 0 8px; font-size: 11px; font-weight: 800; color: #eee; }
.ph-notch { width: 58px; height: 12px; border-radius: 0 0 8px 8px; background: #000; margin-top: -8px; }
.ph-icons { display: flex; align-items: center; gap: 5px; }
.ph-sig { display: flex; align-items: flex-end; gap: 1px; height: 9px; }
.ph-sig b { width: 2px; background: #eee; display: block; } .ph-sig b:nth-child(1) { height: 3px; } .ph-sig b:nth-child(2) { height: 5px; } .ph-sig b:nth-child(3) { height: 7px; opacity: .35; } .ph-sig b:nth-child(4) { height: 9px; opacity: .35; }
.ph-bat { width: 17px; height: 8px; border: 1.2px solid #eee; border-radius: 2px; position: relative; display: inline-block; }
.ph-bat b { position: absolute; left: 1px; top: 1px; bottom: 1px; width: 4px; background: #ff5a3c; border-radius: 1px; }
.ph-screen { position: relative; width: 200px; height: 250px; border-radius: 16px; overflow: hidden; background: #1a1a1a; }
#minimap { display: block; width: 200px; height: 250px; }
.ph-crack { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ph-app { position: absolute; left: 8px; top: 7px; display: flex; align-items: center; gap: 5px; font-size: 9px; letter-spacing: 2px; font-weight: 800; color: #fff;
  background: rgba(0,0,0,.45); padding: 3px 7px; border-radius: 8px; }
.ph-app svg { width: 11px; height: 11px; color: var(--gold); }
.ph-home { width: 70px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.45); margin: 7px auto 0; }

#speedo { position: absolute; right: 22px; bottom: 20px; text-align: right; }
#speed { font-family: var(--display); font-size: 62px; line-height: 1; text-shadow: 0 3px 0 #000, 0 0 18px rgba(0,0,0,.4); font-variant-numeric: tabular-nums; }
#speedo .unit { font-size: 13px; letter-spacing: 4px; color: var(--gold); font-weight: 800; }
#speedo .dmg-label { font-size: 9px; letter-spacing: 3px; opacity: .7; margin-top: 6px; }
#dmgbar { width: 170px; height: 9px; background: rgba(0,0,0,.6); border-radius: 5px; margin-top: 3px; margin-left: auto; overflow: hidden; border: 1px solid rgba(255,255,255,.15); }
#dmgfill { height: 100%; width: 100%; background: linear-gradient(90deg, #ff4040, #ffcc00, #50e050); }

/* ----------------------------------------------------------- title screen */
#title, #pause { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 45%, rgba(40,18,6,.35), rgba(8,5,3,.86) 75%); z-index: 10; }
.title-inner { text-align: center; padding: 24px 40px; position: relative; }
.kente { height: 12px; width: 420px; max-width: 80vw; margin: 14px auto 16px; background: var(--kente); border-radius: 3px; box-shadow: 0 3px 0 rgba(0,0,0,.5); }
.adinkra-row { display: flex; gap: 22px; justify-content: center; margin-bottom: 12px; color: var(--gold); }
.adinkra-row svg { width: 34px; height: 34px; filter: drop-shadow(0 2px 0 #000); }
.logo { margin: 0; line-height: .92; text-shadow: 0 6px 0 #000, 0 0 40px rgba(0,0,0,.6); }
.logo .l-accra { display: block; font-family: var(--display); font-size: 104px; letter-spacing: 10px; color: var(--cloth); }
.logo .l-accra i { font-style: normal; color: var(--gold); font-size: .62em; vertical-align: .18em; margin-left: 6px; letter-spacing: 0; }
.logo .l-city { display: block; font-family: var(--display); font-size: 40px; letter-spacing: 12px; color: var(--gold); margin-top: 6px; }
#title .tag { font-size: 20px; margin: 0 0 22px; line-height: 1.45; text-shadow: 0 2px 0 #000; }
#title .tag em { color: var(--gold-hi); font-style: italic; font-weight: 800; }
.title-foot { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; opacity: .55; }
button { font: inherit; font-family: var(--display); font-size: 20px; letter-spacing: 2px; padding: 14px 38px; border-radius: 40px; border: 0; background: var(--gold); color: #1a1200; cursor: pointer; box-shadow: 0 5px 0 #7a5400, 0 0 0 3px rgba(0,0,0,.4); transition: transform .1s; text-transform: uppercase; }
button:hover { transform: translateY(-2px); }
button:active { transform: translateY(2px); box-shadow: 0 2px 0 #7a5400; }
.controls { margin-top: 22px; font-size: 14px; line-height: 1.9; opacity: .85; }
.controls b { color: var(--gold); }
#paint { margin: 0 0 20px; }
.paint-label { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; opacity: .75; margin-bottom: 8px; }
#swatches { display: flex; gap: 14px; justify-content: center; }
.swatch { width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); box-shadow: 0 3px 0 #000; cursor: pointer; }
.swatch.sel { border-color: #fff; transform: scale(1.12); }
.swatch:hover { transform: scale(1.08); }
#paint-name { font-size: 14px; margin-top: 8px; color: var(--gold); min-height: 18px; }
#pause h2 { font-family: var(--display); font-size: 56px; letter-spacing: 8px; margin: 0 0 6px; }
#pause .tag { margin: 0 0 22px; opacity: .85; }

/* animated intro: black, a trotro mate's shout, then the logo slams in, kente wipes, tagline types out.
   Any key or click skips it (.skip). */
.intro { position: absolute; inset: 0; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; pointer-events: none; z-index: 2; }
.intro-line { opacity: 0; text-align: center; }
.intro .l1 { font-family: var(--display); font-size: 34px; letter-spacing: 3px; color: var(--cloth); }
.intro .l2 { font-size: 13px; letter-spacing: 6px; text-transform: uppercase; color: var(--gold); }
#title.intro-play .intro { animation: introOut 3.1s ease-in forwards; }
#title.intro-play .intro .l1 { animation: introLine 1.9s ease-out .25s forwards; }
#title.intro-play .intro .l2 { animation: introLine 1.7s ease-out .7s forwards; }
#title.intro-play .adinkra-row svg { animation: adinkraIn .6s cubic-bezier(.2,.9,.3,1.3) both; }
#title.intro-play .adinkra-row svg:nth-child(1) { animation-delay: 3.3s; } #title.intro-play .adinkra-row svg:nth-child(2) { animation-delay: 3.4s; }
#title.intro-play .adinkra-row svg:nth-child(3) { animation-delay: 3.5s; } #title.intro-play .adinkra-row svg:nth-child(4) { animation-delay: 3.6s; }
#title.intro-play .adinkra-row svg:nth-child(5) { animation-delay: 3.7s; }
#title.intro-play .l-accra { animation: logoSlam .7s cubic-bezier(.2,.9,.2,1.15) 2.2s both; }
#title.intro-play .l-city { animation: cityIn .8s ease-out 2.6s both; }
#title.intro-play .kente { animation: kenteWipe .7s ease-out 2.8s both; }
#title.intro-play .tag { animation: typeOn 1.6s steps(48, end) 3.1s both; }
#title.intro-play .title-ui, #title.intro-play .controls, #title.intro-play .title-foot { animation: fadeUp .6s ease-out 4.1s both; }
#title.skip *, #title.skip { animation-delay: 0s !important; animation-duration: .01s !important; }
@keyframes introOut { 0%, 62% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes introLine { 0% { opacity: 0; transform: translateY(8px); } 25% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes logoSlam { 0% { opacity: 0; transform: scale(2.4); filter: blur(10px); } 70% { opacity: 1; transform: scale(.96); filter: none; } 100% { opacity: 1; transform: none; } }
@keyframes cityIn { from { opacity: 0; letter-spacing: 40px; } } /* ends on the element's own spacing (it was 12 px everywhere) */
@keyframes kenteWipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes typeOn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes adinkraIn { from { opacity: 0; transform: rotate(-90deg) scale(.3); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* full-screen map */
#bigmap { position: fixed; inset: 0; z-index: 8; background: #0d2c3a; }
#bigmap canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
#bigmap .bm-head { position: absolute; top: 14px; left: 24px; pointer-events: none; }
#bigmap .bm-kente { width: 180px; height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--gold) 0 14px, var(--green) 14px 22px, var(--red) 22px 30px, #111 30px 34px); margin-bottom: 6px; }
#bigmap .bm-title { font-size: 30px; font-weight: 900; letter-spacing: 10px; text-shadow: 0 3px 0 #000; line-height: 1; }
#bigmap .bm-sub { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
#bigmap .bm-legend { position: absolute; right: 22px; top: 80px; width: 190px; background: rgba(10,10,14,.78); border: 1px solid rgba(242,183,5,.45); border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 2; pointer-events: none; }
#bigmap .bm-lt { font-weight: 900; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); font-size: 12px; }
#bigmap .lg { display: inline-block; width: 18px; height: 18px; margin-right: 10px; vertical-align: -4px; border-radius: 50%; font-style: normal; font-size: 10px; font-weight: 900; text-align: center; line-height: 18px; color: #000; }
#bigmap .lg.you { background: #fff; clip-path: polygon(50% 0, 100% 100%, 50% 75%, 0 100%); border-radius: 0; }
#bigmap .lg.mission { background: #f2b705; border: 2px solid #000; line-height: 14px; }
#bigmap .lg.target { background: #3fd0ff; border: 2px solid #000; }
#bigmap .lg.wp { background: #ff3ea5; clip-path: polygon(10% 0, 100% 30%, 10% 60%, 10% 100%, 0 100%, 0 0); border-radius: 0; }
#bigmap .lg.route { height: 5px; vertical-align: 3px; border-radius: 3px; background: linear-gradient(90deg, #ff3ea5, #3fd0ff); }
#bigmap .lg.fitter { background: #ff8a1f; border: 2px solid #000; }
#bigmap .lg.land { background: #1a1a1a; color: #f2b705; border: 2px solid #f2b705; line-height: 14px; }
#bigmap .lg.major { height: 6px; vertical-align: 2px; border-radius: 3px; background: #f2d27a; }
#bigmap .lg.minor { height: 4px; vertical-align: 3px; border-radius: 3px; background: #d8d2c4; }
#bigmap .bm-hint { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: 14px; opacity: .85; pointer-events: none; text-shadow: 0 2px 0 #000; }
#bigmap .bm-hint b { color: var(--gold); }

@media (max-width: 700px) {
  .logo .l-accra { font-size: 56px; letter-spacing: 5px; }
  .logo .l-city { font-size: 22px; letter-spacing: 6px; }
  .kente { width: 240px; }
  #phone { transform: scale(.66); transform-origin: left bottom; }
  #speed { font-size: 42px; }
  #bigmsg-title { font-size: 40px; }
  #toasts { width: 260px; }
}
@media (prefers-reduced-motion: reduce) { #title.intro-play *, #title.intro-play { animation-duration: .01s !important; animation-delay: 0s !important; } }

/* ------------------------------------------------------------------ HUSTLE LOG phone app (J) */
#phoneapp { position: fixed; inset: 0; background: rgba(8, 6, 4, .55); display: flex; align-items: center; justify-content: center; z-index: 30; pointer-events: auto; }
.pa-phone { position: relative; width: 380px; height: min(640px, calc(92vh / var(--tz, 1))); border-radius: 40px; padding: 12px 14px 16px; background: linear-gradient(160deg, #2a2522, #0c0a09);
  box-shadow: 0 0 0 2px #3c352f, 0 0 0 6px #120f0d, 0 24px 60px rgba(0,0,0,.6); display: flex; flex-direction: column; overflow: hidden; }
.pa-status { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 800; padding: 2px 16px 6px; color: #fff; }
.pa-status .ph-notch { width: 90px; height: 18px; border-radius: 10px; background: #000; display: inline-block; }
.pa-head { background: var(--ink); border-radius: 22px 22px 6px 6px; padding: 10px 16px 10px; position: relative; overflow: hidden; }
.pa-kente { position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--kente); }
.pa-title { font-family: var(--display); font-size: 24px; letter-spacing: 3px; color: var(--gold-hi); margin-top: 4px; }
.pa-sub { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: .7; }
.pa-tabs { display: flex; gap: 6px; padding: 8px 2px; }
.pa-tabs button { flex: 1; border: 0; border-radius: 12px; padding: 8px 0; font-family: inherit; font-weight: 800; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; background: #2c2621; color: #cfc4b0; cursor: pointer; }
.pa-tabs button.on { background: var(--gold); color: var(--ink); }
.pa-body { flex: 1; overflow-y: auto; padding: 2px 4px 8px; scrollbar-width: thin; }
.pa-hint { font-size: 11px; text-align: center; opacity: .6; padding-top: 6px; }
.pa-hint b { color: var(--gold); }
.pa-crack { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .55; }
.pa-now { background: #0f3b26; border: 1px solid #1f7a4d; border-radius: 14px; padding: 9px 12px; margin-bottom: 10px; font-size: 13px; }
.pa-now-k { font-size: 10px; letter-spacing: 3px; color: #7fe0a8; font-weight: 800; }
.pa-now b { color: var(--gold-hi); font-size: 15px; }
.pa-now button { margin-top: 6px; border: 0; border-radius: 10px; padding: 5px 12px; background: #5a1d14; color: #ffd9cf; font-family: inherit; font-weight: 700; font-size: 11px; cursor: pointer; }
.pa-cp { margin-top: 3px; font-size: 11px; color: #9fe8c0; } .pa-cp::before { content: '⚑ '; color: #3fd0ff; }
.pa-cp-why { margin-top: 2px; font-size: 11px; color: #ffb4a3; }
.pa-failed { background: #3b1a12; border-color: #8a3b22; } .pa-failed .pa-now-k { color: #ff9d80; }
.pa-failed button[data-retry-cp] { background: var(--gold); color: var(--ink); font-weight: 800; margin-right: 6px; }
.pa-failed button.pa-retry { background: #2a2a2a; color: #ddd; }
.pa-ch { margin-bottom: 12px; }
.pa-ch.soon { opacity: .55; }
.pa-ch.edition { opacity: .7; filter: grayscale(.6); } .pa-ch.edition .pa-chip { margin-left: 8px; vertical-align: middle; }
.pa-ch-soon { margin-top: 6px; font-weight: 700; color: #f2b705; letter-spacing: .02em; }
.pa-ch-t { font-family: var(--display); font-size: 14px; letter-spacing: 1px; color: var(--gold); }
.pa-ch-b { font-size: 11.5px; opacity: .72; font-style: italic; margin: 1px 0 6px; }
.pa-m { display: flex; gap: 9px; background: rgba(255,255,255,.05); border-radius: 12px; padding: 8px 10px; margin-bottom: 6px; border-left: 3px solid #555; }
.pa-m.st-done { border-left-color: #2fbf71; } .pa-m.st-active { border-left-color: #3fd0ff; background: rgba(63,208,255,.08); } .pa-m.st-avail { border-left-color: var(--gold); }
.pa-m.st-locked { border-left-color: #7a6f63; opacity: .8; } .pa-m.st-soon { border-left-color: #444; opacity: .6; }
.pa-m-n { font-family: var(--display); font-size: 18px; color: var(--gold); width: 16px; text-align: center; }
.pa-m-main { flex: 1; min-width: 0; }
.pa-m-t { font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pa-m-d { font-size: 12px; opacity: .8; line-height: 1.3; margin-top: 2px; }
.pa-m-g { font-size: 11px; color: var(--gold-hi); margin-top: 3px; }
.pa-pin { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: 5px; vertical-align: 1px; }
.pa-chip { display: inline-block; font-size: 9.5px; letter-spacing: 1.5px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: #444; color: #fff; }
.pa-chip.st-done { background: #1f7a4d; } .pa-chip.st-active { background: #1677a0; } .pa-chip.st-avail { background: var(--gold); color: var(--ink); }
.pa-chip.st-locked { background: #5b5148; } .pa-chip.st-soon { background: #333; color: #aaa; }
.pa-crew { display: flex; gap: 11px; padding: 10px; margin-bottom: 9px; border-radius: 14px; background: rgba(255,255,255,.05); border-left: 4px solid var(--c); }
.pa-crew img { width: 76px; height: 76px; border-radius: 14px; flex: none; box-shadow: 0 0 0 2px var(--c); }
.pa-crew-n { font-family: var(--display); font-size: 16px; color: var(--c); letter-spacing: .5px; }
.pa-crew-t { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; opacity: .75; margin-bottom: 3px; }
.pa-crew-b { font-size: 12px; line-height: 1.35; opacity: .9; margin-bottom: 5px; }

/* ------------------------------------------------------------------ dialogue, letterbox, phone calls */
#dialogue { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(640px, calc((100vw - 520px) / var(--tz, 1))); min-width: 360px; z-index: 20;
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px 12px 12px; border-radius: 18px; pointer-events: auto;
  background: rgba(21, 16, 12, .9); border: 1px solid rgba(255,255,255,.1); border-top: 4px solid var(--c, var(--gold)); box-shadow: 0 10px 30px rgba(0,0,0,.5);
  animation: dlIn .22s cubic-bezier(.2,.9,.3,1.2); }
#dialogue.cut { bottom: calc(13vh / var(--tz, 1)); width: min(760px, calc((100vw - 80px) / var(--tz, 1))); }
#dialogue.phone .dl-portrait { border-radius: 50%; }
#dialogue.phone .dl-name::after { content: " · on the phone"; font-size: 11px; letter-spacing: 1px; color: #bbb; font-weight: 600; text-transform: none; }
.dl-portrait { width: 76px; height: 76px; border-radius: 14px; flex: none; box-shadow: 0 0 0 2px var(--c, var(--gold)); }
.dl-main { flex: 1; min-width: 0; }
.dl-name { font-family: var(--display); font-size: 15px; color: var(--c, var(--gold)); letter-spacing: 1px; text-transform: uppercase; }
.dl-text { font-size: 18px; line-height: 1.35; margin-top: 3px; min-height: 24px; text-shadow: 0 1px 0 #000; }
.dl-gloss { font-size: 13px; font-style: italic; color: #e8dcc3; opacity: .82; margin-top: 4px; padding-left: 8px; border-left: 2px solid var(--gold); }
.dl-choices { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.dl-choices button { border: 0; border-radius: 10px; padding: 6px 12px; background: #2c2621; color: var(--text); font-family: inherit; font-size: 14px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.dl-choices button b { color: var(--ink); background: var(--gold); border-radius: 5px; padding: 0 5px; margin-right: 4px; }
.dl-hint { position: absolute; right: 14px; bottom: -18px; font-size: 11px; opacity: .65; white-space: nowrap; text-shadow: 0 1px 0 #000; }
.dl-hint b { color: var(--gold); }
@keyframes dlIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
#letterbox i { position: fixed; left: 0; right: 0; height: 0; background: #000; z-index: 15; transition: height .5s ease; pointer-events: none; }
#letterbox i:first-child { top: 0; } #letterbox i:last-child { bottom: 0; }
#letterbox.on i { height: 10vh; }
#callcard { position: fixed; top: 84px; right: 16px; width: 250px; z-index: 21; border-radius: 22px; padding: 12px 14px; color: #fff;
  background: linear-gradient(160deg, rgba(28,40,32,.94), rgba(10,14,12,.94)); box-shadow: 0 10px 30px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.1);
  animation: ccIn .3s cubic-bezier(.2,.9,.3,1.2); }
#callcard:not(.talk):not(.ended) { animation: ccIn .3s cubic-bezier(.2,.9,.3,1.2), ccShake .5s 0.3s infinite; }
#callcard.ended { opacity: .6; }
.cc-top { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: 2px; font-weight: 800; color: #7fe0a8; }
.cc-who { display: flex; gap: 10px; align-items: center; margin: 9px 0; }
.cc-who canvas { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 2px #7fe0a8; }
#callcard:not(.talk):not(.ended) .cc-who canvas { animation: ccPulse 1s infinite; }
.cc-name { font-weight: 800; font-size: 16px; }
.cc-sub { font-size: 11px; opacity: .6; }
.cc-btns { display: flex; gap: 8px; font-size: 12px; }
.cc-btns span { flex: 1; text-align: center; padding: 6px 0; border-radius: 12px; font-weight: 700; }
.cc-ans { background: #1f9d55; } .cc-end { background: #b3261e; }
#callcard.talk .cc-ans { display: none; }
.cc-ans b { background: rgba(0,0,0,.3); border-radius: 4px; padding: 0 4px; }
@keyframes ccIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes ccShake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-1.5deg); } 40% { transform: rotate(1.5deg); } 60% { transform: rotate(-1deg); } }
@keyframes ccPulse { 0%, 100% { box-shadow: 0 0 0 2px #7fe0a8; } 50% { box-shadow: 0 0 0 7px rgba(127,224,168,.25); } }
@media (max-width: 640px) { #bigmap .bm-legend { display: none; } }

/* small windows (review fix: at 900×600 the title overflowed and HUD cards slid under the phone / prompt) */
#toasts { width: min(330px, calc(26vw / var(--tz, 1))); min-width: 220px; }
#objective { max-width: min(520px, calc((100vw - 560px) / var(--tz, 1))); min-width: 280px; }
@media (max-height: 700px) {
  .adinkra-row { margin-bottom: 6px; } .adinkra-row svg { width: 26px; height: 26px; }
  .logo .l-accra { font-size: 76px; } .logo .l-city { font-size: 30px; letter-spacing: 9px; }
  .kente { margin: 10px auto; height: 9px; }
  #title .tag { font-size: 16px; margin-bottom: 12px; }
  #paint { margin-bottom: 12px; } .swatch { width: 34px; height: 34px; } #paint-name { margin-top: 5px; }
  #title #play { font-size: 17px; padding: 11px 30px; }
  .controls { margin-top: 12px; font-size: 12.5px; line-height: 1.6; }
  .title-inner { padding: 10px 30px 30px; }
  .title-foot { bottom: 8px; font-size: 10.5px; }
}
body.cutscene #hud { opacity: 0; transition: opacity .4s; } #hud { transition: opacity .4s; }

/* ------------------------------------------------------------------ opening cinematic */
button.ghost { margin-top: 12px; font-size: 13px; padding: 8px 20px; background: rgba(255,255,255,.08); color: var(--gold-hi); box-shadow: inset 0 0 0 1px rgba(242,176,30,.5); }
#cine { position: fixed; inset: 0; z-index: 16; pointer-events: none; }
#cine .cn-black { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity 1.6s ease; display: flex; align-items: center; justify-content: center; }
#cine.black .cn-black { opacity: 1; transition: none; }
.cn-shout { font-family: var(--display); font-size: 40px; color: var(--cloth); letter-spacing: 2px; opacity: 0; }
#cine.black .cn-shout { animation: cnShout 3.2s ease-out forwards; }
@keyframes cnShout { 0% { opacity: 0; transform: scale(.92); } 15% { opacity: 1; transform: scale(1.04); } 25% { transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; } }
.cn-cap { position: absolute; left: 6vw; bottom: 15vh; font-size: 14px; letter-spacing: 5px; text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 2px 0 #000;
  opacity: 0; transform: translateY(8px); transition: opacity .8s, transform .8s; border-left: 4px solid var(--gold); padding-left: 12px; }
.cn-cap.show { opacity: 1; transform: none; }
.cn-title { position: absolute; left: 0; right: 0; top: 24vh; text-align: center; opacity: 0; transform: scale(.94); transition: opacity 1.2s ease, transform 4s ease-out; }
.cn-title.show { opacity: 1; transform: scale(1); }
.cn-title .logo .l-accra { font-size: 96px; }
.cn-chapter { margin-top: 14px; font-size: 18px; letter-spacing: 6px; text-transform: uppercase; color: var(--cloth); text-shadow: 0 2px 0 #000; font-style: italic; }
.cn-skip { position: absolute; right: 22px; bottom: calc(10vh + 14px); pointer-events: auto; font-size: 14px; padding: 8px 18px; background: rgba(0,0,0,.55); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); z-index: 2; }
.cn-skip small { opacity: .6; font-size: 10px; margin-left: 6px; }

/* ------------------------------------------------------------------ Heat Meter */
#wanted { position: fixed; top: 80px; right: 16px; text-align: right; min-height: 0; font-size: 13px; }
#wanted .ht-search { margin-left: auto !important; }
#wanted .ht-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border-radius: 10px; padding: 4px 10px 5px; border-left: 4px solid #3a4a66; opacity: .55; transition: opacity .3s; }
#wanted.on .ht-pill { opacity: 1; border-left-color: #c8241f; }
#wanted .ht-label { font-family: var(--display); font-size: 11px; letter-spacing: 2px; color: #cfd6e4; }
#wanted .ht-segs { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
#wanted .ht-segs i { width: 7px; border-radius: 2px; background: rgba(255,255,255,.18); }
#wanted .ht-segs i:nth-child(1) { height: 7px; } #wanted .ht-segs i:nth-child(2) { height: 9px; } #wanted .ht-segs i:nth-child(3) { height: 11px; }
#wanted .ht-segs i:nth-child(4) { height: 13px; } #wanted .ht-segs i:nth-child(5) { height: 16px; }
#wanted .ht-segs i.red { background: #ff3b30; box-shadow: 0 0 8px #ff3b30; } #wanted .ht-segs i.blue { background: #2f7bff; box-shadow: 0 0 8px #2f7bff; }
#wanted .ht-segs i.amber { background: #f2b01e; }
#wanted .ht-status { font-size: 10.5px; letter-spacing: 2px; font-weight: 800; color: #ffb4ad; margin: 3px 0 0 4px; text-shadow: 0 1px 0 #000; min-height: 0; }
#wanted .ht-search { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin: 4px 0 0 4px; visibility: hidden; }
#wanted .ht-bar { width: 150px; height: 7px; background: rgba(0,0,0,.45); border: 1px solid rgba(242,176,30,.55); border-radius: 4px; overflow: hidden; }
#wanted .ht-bar b { display: block; height: 100%; width: 100%; margin-left: auto; background: #f2b01e; transition: width .25s linear; }
#wanted .ht-sec { font-family: var(--display); font-size: 17px; font-weight: 800; color: #ffd35a; min-width: 30px; text-align: right; text-shadow: 0 1px 0 #000, 0 0 6px rgba(0,0,0,.6); font-variant-numeric: tabular-nums; }
#wanted .ht-then { font-size: 11px; font-weight: 700; color: #f4ead2; margin-top: 2px; text-shadow: 0 1px 0 #000, 0 0 4px #000; visibility: hidden; }
/* out of sight: the status is the instruction, amber and readable (review-11 S8) */
#wanted.hunt .ht-status { font-size: 12.5px; letter-spacing: 1.2px; color: #ffd35a; text-shadow: 0 1px 0 #000, 0 0 6px rgba(0,0,0,.7); }
#bustbar { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); text-align: center; }
#bustbar .bb-t { font-family: var(--display); letter-spacing: 4px; color: #ff6a5f; text-shadow: 0 2px 0 #000; font-size: 16px; }
#bustbar .bb-bar { width: 220px; height: 8px; border-radius: 4px; background: rgba(0,0,0,.6); margin-top: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
#bustbar .bb-bar b { display: block; height: 100%; background: linear-gradient(90deg, #2f7bff, #ff3b30); }
.nf-icon.nf-police { background: linear-gradient(90deg, #ff3b30 50%, #2f7bff 50%); }

/* ------------------------------------------------------------------ reputation */
.ph-rep { display: flex; gap: 8px; margin: 6px 4px 2px; font-size: 9px; letter-spacing: 1px; font-weight: 800; color: #e8dcc3; }
.ph-rep > div { flex: 1; }
.ph-rep .rp-k { display: flex; justify-content: space-between; opacity: .85; }
.ph-rep .rp-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.15); margin-top: 2px; overflow: hidden; position: relative; }
.ph-rep .rp-bar b { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 2px; }
.ph-rep .rp-c b { background: #2fbf71; } .ph-rep .rp-c.neg b { background: #e0453a; } .ph-rep .rp-s b { background: var(--gold); }
.nf-icon.nf-community { background: #2fbf71; } .nf-icon.nf-street { background: var(--laterite); }
.pa-rep { padding: 12px; border-radius: 14px; background: rgba(255,255,255,.05); margin-bottom: 10px; border-left: 4px solid var(--c); }
.pa-rep-h { display: flex; justify-content: space-between; align-items: baseline; }
.pa-rep-k { font-family: var(--display); font-size: 15px; color: var(--c); letter-spacing: 1px; }
.pa-rep-v { font-family: var(--display); font-size: 22px; }
.pa-rep-t { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-hi); margin: 2px 0 6px; }
.pa-rep-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.pa-rep-bar b { display: block; height: 100%; background: var(--c); }
.pa-rep-p { font-size: 12px; opacity: .85; margin-top: 7px; line-height: 1.4; }
.pa-rep-log { font-size: 12px; margin-top: 4px; }
.pa-rep-log div { padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.pa-rep-log b.up { color: #7fe0a8; } .pa-rep-log b.dn { color: #ff8a80; }

/* ------------------------------------------------------------------ KUBI KASH mobile money (iteration 23) */
:root { --kk: #0b6e4f; --kk-hi: #2fe39a; }
.nf-icon.nf-kubi { background: var(--kk); box-shadow: inset 0 0 0 2px #f2b01e; } .nf-icon.nf-sms { background: #3a86ff; }
.nf-icon.nf-trotro { background: #f4f1e8; box-shadow: inset 0 -5px 0 #c8241f; } .nf-icon.nf-taxi { background: #f2b01e; box-shadow: inset 0 0 0 2px #15100c; }
.nf-icon.nf-fuel { background: #e9c46a; box-shadow: inset 0 -5px 0 #c8241f; } .nf-icon.nf-garage { background: #8338ec; } .nf-icon.nf-settings { background: #6c757d; }
.toast[data-app="KUBI KASH"] { border-left: 3px solid var(--kk-hi); }
.toast[data-app="KUBI KASH"] .nf-body { font-size: 12.5px; }
.money-delta { font-family: var(--display); font-size: 17px; margin: 4px 0 0 8px; text-shadow: 0 2px 0 #000; animation: mdUp 1.6s ease-out forwards; }
.money-delta.in { color: var(--kk-hi); } .money-delta.out { color: #ff8a80; }
@keyframes mdUp { 0% { opacity: 0; transform: translateY(6px); } 15% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
#money-deltas { position: absolute; left: 100%; top: 2px; margin-left: 10px; display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
#money-deltas .money-delta { margin: 0; }
.ph-dock { display: flex; align-items: center; gap: 6px; margin: 6px 4px 0; padding: 3px 7px; border-radius: 9px; background: rgba(11,110,79,.35); font-size: 10px; font-weight: 800; color: #e9fff4; }
.kk-mark { display: inline-block; width: 11px; height: 11px; border-radius: 3px; background: var(--kk); box-shadow: inset 0 0 0 2px #f2b01e; vertical-align: -1px; margin-right: 4px; }
.ph-dock .kk-app { letter-spacing: 1.5px; font-size: 9px; } .ph-dock .kk-bal { margin-left: auto; font-size: 12px; color: var(--kk-hi); }
.ph-dock .kk-key { font-size: 8.5px; padding: 0 4px; border-radius: 4px; background: rgba(0,0,0,.4); color: #cfe; }
#walletapp { position: fixed; inset: 0; background: rgba(4, 10, 7, .55); display: flex; align-items: center; justify-content: center; z-index: 30; pointer-events: auto; }
.kk-phone { background: linear-gradient(160deg, #13261d, #070b09); }
.kk-head { background: linear-gradient(120deg, var(--kk), #064330); border-radius: 22px 22px 6px 6px; padding: 12px 16px; position: relative; overflow: hidden; }
.kk-head::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; border: 14px solid rgba(242,176,30,.25); }
.kk-logo { font-family: var(--display); font-size: 24px; letter-spacing: 3px; color: #fff; }
.kk-logo .kk-mark { width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 4px #f2b01e; background: #fff; vertical-align: -2px; margin-right: 8px; }
.kk-owner { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: .8; }
.kk-tabs button.on { background: var(--kk-hi); color: #05281c; }
.kk-card { background: linear-gradient(135deg, #f2b01e, #e08a00); color: #1a1200; border-radius: 16px; padding: 14px 16px; margin: 4px 0 10px; box-shadow: 0 6px 16px rgba(0,0,0,.4); position: relative; overflow: hidden; }
.kk-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--kente); }
.kk-card-k { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 800; opacity: .75; }
.kk-card-v { font-family: var(--display); font-size: 32px; letter-spacing: 1px; margin: 2px 0 6px; }
.kk-card-io { display: flex; gap: 16px; font-size: 12px; font-weight: 800; padding-bottom: 6px; } .kk-card-io .in { color: #05402a; } .kk-card-io .out { color: #6b1208; }
.kk-actions { display: flex; gap: 8px; margin-bottom: 12px; }
.kk-actions button, .kk-send, .kk-amts button, .kk-filter button { flex: 1; font-family: inherit; font-weight: 800; font-size: 12px; letter-spacing: 1px; padding: 9px 6px; border-radius: 12px; background: #1d3a2e; color: #dff; box-shadow: none; text-transform: none; }
.kk-amts button.on, .kk-filter button.on { background: var(--kk-hi); color: #05281c; }
.kk-tx { display: flex; align-items: center; gap: 9px; padding: 7px 4px; border-bottom: 1px solid rgba(255,255,255,.07); }
.kk-tx > i { width: 9px; height: 30px; border-radius: 4px; flex: none; }
.kk-tx-m { flex: 1; min-width: 0; } .kk-tx-l { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kk-tx-s { font-size: 10px; opacity: .6; } .kk-tx-a { font-family: var(--display); font-size: 14px; } .kk-tx-a.in { color: var(--kk-hi); } .kk-tx-a.out { color: #ff8a80; }
.kk-contacts { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.kk-ct { display: flex; justify-content: space-between; align-items: baseline; text-align: left; font-family: inherit; font-size: 13px; letter-spacing: 0; text-transform: none; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.06); color: #fff; box-shadow: none; }
.kk-ct small { opacity: .6; font-size: 11px; } .kk-ct.on { background: rgba(47,227,154,.18); box-shadow: inset 0 0 0 2px var(--kk-hi); }
.kk-amts, .kk-filter { display: flex; gap: 5px; margin-bottom: 10px; }
.kk-confirm { font-size: 13px; background: rgba(255,255,255,.05); border-radius: 12px; padding: 9px 12px; margin-bottom: 8px; } .kk-confirm b { color: var(--gold-hi); } .kk-confirm small { opacity: .7; }
.kk-send { width: 100%; background: var(--gold); color: #1a1200; font-size: 14px; padding: 11px; } .kk-send[disabled] { opacity: .45; }
.kk-result { margin-top: 8px; font-size: 12.5px; padding: 6px 10px; border-radius: 10px; } .kk-result.ok { background: rgba(47,227,154,.15); color: var(--kk-hi); } .kk-result.no { background: rgba(255,90,80,.15); color: #ffb4ad; }
.kk-empty { font-size: 12.5px; opacity: .6; padding: 10px 4px; }
.tx-comfort { color: var(--gold-hi); letter-spacing: 1px; }

/* ------------------------------------------------------------------ character switch (iteration 25) */
#switcher { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: rgba(6,4,3,.6); pointer-events: auto; }
.sw-sheet { width: min(860px, calc(94vw / var(--tz, 1))); border-radius: 30px; padding: 14px 18px 12px; background: linear-gradient(160deg, #2a2522, #0c0a09); box-shadow: 0 0 0 2px #3c352f, 0 0 0 6px #120f0d, 0 24px 60px rgba(0,0,0,.6); position: relative; overflow: hidden; }
.sw-head { position: relative; padding: 10px 6px 12px; display: flex; align-items: baseline; gap: 12px; }
.sw-head .pa-kente { top: 0; }
.sw-head b { font-family: var(--display); font-size: 26px; letter-spacing: 4px; color: var(--gold-hi); }
.sw-head span { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; opacity: .7; }
.sw-cards { display: flex; gap: 14px; }
.sw-card { flex: 1; min-width: 0; position: relative; border-radius: 20px; padding: 14px 12px 12px; text-align: center; background: rgba(255,255,255,.05); border-top: 5px solid var(--c); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.sw-card.sel { transform: translateY(-6px); box-shadow: 0 0 0 3px var(--c), 0 12px 24px rgba(0,0,0,.5); background: rgba(255,255,255,.09); }
.sw-card.live { opacity: .75; } .sw-card.blocked .sw-chip { background: #5a1d14; color: #ffd9cf; }
.sw-card.soon { filter: grayscale(.35); } .sw-card.soon .sw-chip { background: #3a3a3a; color: #f2d58a; } /* the free edition: not an error, just later */
.sw-num { position: absolute; left: 10px; top: 8px; font-family: var(--display); font-size: 16px; color: var(--c); }
.sw-card img { border-radius: 50%; box-shadow: 0 0 0 3px var(--c); background: #000; }
.sw-name { font-family: var(--display); font-size: 17px; margin-top: 8px; letter-spacing: 1px; }
.sw-title { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--c); filter: brightness(1.5); }
.sw-bal { font-family: var(--display); font-size: 22px; color: var(--kk-hi); margin: 6px 0 2px; }
.sw-rep { display: flex; justify-content: center; gap: 10px; font-size: 11px; opacity: .85; } .sw-rep b { color: var(--gold-hi); }
.sw-where { font-size: 11.5px; opacity: .7; margin-top: 4px; }
.sw-chip { display: inline-block; margin-top: 8px; font-size: 10px; letter-spacing: 1.5px; font-weight: 800; padding: 3px 8px; border-radius: 7px; background: var(--gold); color: var(--ink); }
.sw-card.live .sw-chip { background: #1677a0; color: #fff; }
.sw-hint { text-align: center; font-size: 11px; opacity: .6; padding-top: 10px; } .sw-hint b { color: var(--gold); }
#switchfx { position: fixed; inset: 0; z-index: 17; pointer-events: none; }
#switchfx .sx-tint { position: absolute; inset: 0; opacity: 0; transition: opacity .5s;
  background: linear-gradient(rgba(10,30,40,.18), rgba(10,30,40,.18)), repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 64px), repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 64px); }
#switchfx.route .sx-tint { opacity: 1; }
#switchfx .sx-route { position: absolute; inset: 0; width: 100%; height: 100%; }
#switchfx .sx-card { position: absolute; left: 50%; bottom: 9vh; transform: translate(-50%, 0); display: flex; align-items: center; gap: 12px; padding: 10px 18px 14px 10px; border-radius: 22px;
  background: rgba(21,16,12,.88); border-left: 6px solid var(--c); box-shadow: 0 10px 30px rgba(0,0,0,.5); min-width: 320px; transition: transform .5s cubic-bezier(.2,.9,.3,1.1), opacity .4s; }
#switchfx.card .sx-card { animation: sxSwipe .55s cubic-bezier(.2,.9,.3,1.1); }
#switchfx.drop .sx-card { opacity: 0; transform: translate(-50%, 30px); }
@keyframes sxSwipe { from { transform: translate(-50%, 60vh) rotate(-4deg) scale(1.25); } to { transform: translate(-50%, 0); } }
#switchfx .sx-card img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 3px var(--c); }
#switchfx .sx-k { font-size: 10px; letter-spacing: 2.5px; opacity: .7; } #switchfx .sx-n { font-family: var(--display); font-size: 22px; letter-spacing: 1px; } #switchfx .sx-w { font-size: 12px; color: var(--gold-hi); }
#switchfx .sx-bar { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.15); overflow: hidden; }
#switchfx .sx-bar b { display: block; height: 100%; width: 0; background: var(--kente); }
body.switching #hud { opacity: 0; }
.pa-retry { margin-top: 6px; border: 0; border-radius: 10px; padding: 5px 14px; background: var(--gold); color: var(--ink); font-family: inherit; font-weight: 800; font-size: 11px; letter-spacing: 1px; cursor: pointer; box-shadow: none; text-transform: uppercase; }

/* review fixes (iterations 16–22): the call card sits under the HEAT meter; the big centre card stays between the
   notification column and the right-hand HUD */
#callcard { top: 140px; }
#bigmsg { left: calc((min(330px, 26vw) + 44px) / var(--tz, 1)); right: calc((min(330px, 26vw) + 44px) / var(--tz, 1)); }
#bigmsg-title { font-size: clamp(30px, 4.2vw, 64px); line-height: 1.05; }
#bigmsg-sub { font-size: clamp(15px, 1.7vw, 22px); }
@media (max-height: 700px) { /* review fix: at 900×600 only one notification fitted above the phone */
  #phone { transform: scale(.8); transform-origin: left bottom; }
  .toast { font-size: 12.5px; padding: 5px 10px 7px; } .nf-head { font-size: 9.5px; }
}

/* ------------------------------------------------------------------ fuel gauge (iteration 26) */
#fuelbar { width: 170px; height: 7px; background: rgba(0,0,0,.6); border-radius: 4px; margin: 3px 0 0 auto; overflow: hidden; border: 1px solid rgba(255,255,255,.15); }
#fuelfill { height: 100%; width: 100%; background: linear-gradient(90deg, #e9c46a, #f2b01e); transition: width .3s; }
#fuelfill.low { background: #ff5a3c; animation: fuelBlink 1s steps(2) infinite; }
#fuelbox.empty .dmg-label { color: #ff8a80; opacity: 1; }
#fuel-l { font-variant-numeric: tabular-nums; color: var(--gold-hi); letter-spacing: 1px; }
@keyframes fuelBlink { 50% { opacity: .35; } }

/* ------------------------------------------------------------------ AKWAABA MOTORS (iteration 27) */
#showroom { position: fixed; top: 0; bottom: 0; right: 0; width: min(430px, calc(44vw / var(--tz, 1))); z-index: 30; display: flex; align-items: center; padding: 16px; pointer-events: auto; }
.sr-panel { width: 100%; max-height: calc(94vh / var(--tz, 1)); overflow: hidden; display: flex; flex-direction: column; border-radius: 24px; padding: 12px 14px; background: rgba(21,16,12,.92); box-shadow: 0 0 0 2px #3c352f, 0 20px 50px rgba(0,0,0,.6); }
.sr-head { position: relative; padding: 10px 4px 8px; } .sr-head .pa-kente { top: 0; border-radius: 3px; }
.sr-head b { display: block; font-family: var(--display); font-size: 24px; letter-spacing: 3px; color: var(--gold-hi); }
.sr-head span { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: .7; }
.sr-body { overflow-y: auto; flex: 1; }
.sr-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.sr-item { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.05); cursor: pointer; font-size: 13px; }
.sr-item.on { background: rgba(242,176,30,.18); box-shadow: inset 0 0 0 2px var(--gold); }
.sr-item span { font-family: var(--display); color: var(--kk-hi); } .sr-item span.dear { color: #ff8a80; }
.sr-card { background: rgba(255,255,255,.05); border-radius: 14px; padding: 10px 12px; }
.sr-name { font-family: var(--display); font-size: 18px; color: var(--gold-hi); } .sr-blurb { font-size: 12px; opacity: .8; font-style: italic; margin: 2px 0 8px; }
.sr-stats { display: grid; grid-template-columns: 96px 1fr; gap: 4px 8px; align-items: center; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; opacity: .9; }
.dl-bar { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; } .dl-bar b { display: block; height: 100%; background: var(--gold); }
.sr-sws { display: flex; gap: 6px; align-items: center; margin: 10px 0; flex-wrap: wrap; } .sr-sws em { font-size: 12px; color: var(--gold-hi); margin-left: 4px; }
.sr-sw { width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); box-shadow: none; }
.sr-sw.on { border-color: #fff; transform: scale(1.15); }
.sr-buy { width: 100%; font-size: 15px; padding: 10px; box-shadow: none; } .sr-buy[disabled] { opacity: .5; background: #5a4a2a; color: #eee; }
.sr-hint { font-size: 11px; opacity: .6; text-align: center; padding-top: 8px; } .sr-hint b { color: var(--gold); }
.sr-garage { display: flex; flex-direction: column; gap: 6px; }
.sr-car { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.05); }
.sr-car.on { box-shadow: inset 0 0 0 2px #1677a0; }
.sr-car > i { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.3); flex: none; }
.sr-car > div { flex: 1; min-width: 0; } .sr-car b { display: block; font-size: 13px; } .sr-car small { font-size: 11px; opacity: .65; }
.sr-car button { font-size: 11px; padding: 6px 12px; box-shadow: none; letter-spacing: 1px; }

/* ------------------------------------------------------------------ ADINKRA SPRAY & STYLE (iteration 28) */
#paintshop { position: fixed; top: 0; bottom: 0; right: 0; width: min(400px, calc(42vw / var(--tz, 1))); z-index: 30; display: flex; align-items: center; padding: 16px; pointer-events: auto; }
.ps-tabs button.on { background: #c2187a; color: #fff; }
.ps-target { display: flex; gap: 6px; margin-bottom: 10px; }
.ps-target button, .ps-opt { font-family: inherit; font-size: 12px; letter-spacing: .5px; text-transform: none; box-shadow: none; background: rgba(255,255,255,.07); color: #fff; padding: 8px 10px; border-radius: 10px; }
.ps-target button { flex: 1; } .ps-target button.on, .ps-opt.on { box-shadow: inset 0 0 0 2px #c2187a; background: rgba(194,24,122,.18); }
.ps-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ps-sw { aspect-ratio: 1; width: 100%; padding: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); box-shadow: none; }
.ps-sw.on { border-color: #fff; transform: scale(1.12); }
.ps-cur { font-size: 12px; color: var(--gold-hi); margin: 8px 0 4px; text-align: center; }
.ps-list { display: flex; flex-direction: column; gap: 6px; }
.ps-opt { display: flex; align-items: center; gap: 10px; text-align: left; }
.ps-opt i { width: 34px; height: 18px; border-radius: 5px; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.ps-opt em { margin-left: auto; font-style: normal; color: var(--kk-hi); font-family: var(--display); }
.ps-bill { margin: 12px 0 8px; font-size: 12.5px; background: rgba(255,255,255,.05); border-radius: 12px; padding: 8px 12px; }
.ps-bill div { display: flex; justify-content: space-between; padding: 2px 0; } .ps-bill b { color: var(--gold-hi); }
.ps-total { border-top: 1px solid rgba(255,255,255,.15); margin-top: 4px; padding-top: 5px !important; font-weight: 800; }

/* ------------------------------------------------------------------ save / continue (iteration 29) */
#continue { margin-bottom: 6px; background: var(--kk-hi); color: #05281c; box-shadow: 0 5px 0 #0b6e4f, 0 0 0 3px rgba(0,0,0,.4); }
#save-note { font-size: 12.5px; color: var(--gold-hi); min-height: 16px; margin: 2px 0 10px; letter-spacing: .5px; }
#save-info { font-size: 12px; opacity: .7; margin-top: 4px; }
#save-note:empty { display: none; }
#title .controls { font-size: 13px; line-height: 1.75; }
@media (max-height: 760px) { #title .controls { margin-top: 10px; font-size: 12px; line-height: 1.55; } #title #continue, #title #play { padding: 10px 30px; font-size: 17px; } }

/* EMPIRE app (iteration 38) */
#empireapp { position: fixed; inset: 0; background: rgba(8, 6, 4, .55); display: flex; align-items: center; justify-content: center; z-index: 30; pointer-events: auto; }
#empireapp.hidden { display: none; }
.em-phone { background: linear-gradient(160deg, #1b1a2b, #0a0910); }
.em-top { background: linear-gradient(120deg, #3a1240, #15100c); border-radius: 22px 22px 6px 6px; padding: 10px 16px; position: relative; overflow: hidden; }
.em-tabs button.on { background: #c79bff; color: #1b0d22; }
.em-head { margin: 2px 0 8px; } .em-head b { font-family: var(--display); font-size: 17px; color: var(--gold-hi); letter-spacing: 1px; display: block; } .em-head span { font-size: 11px; opacity: .7; }
.em-soon { text-align: center; padding: 28px 14px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.2); filter: grayscale(.5); font-size: 13px; }
.em-soon-t { font-size: 17px; font-weight: 800; margin-bottom: 6px; } .em-soon-k { display: inline-block; background: #333; color: #ddd; font-size: 11px; font-weight: 800; letter-spacing: .1em; padding: 3px 9px; border-radius: 99px; margin-bottom: 8px; }
.em-note { font-size: 12.5px; background: rgba(199,155,255,.12); border-left: 3px solid #c79bff; border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.em-week { font-size: 12px; background: rgba(255,255,255,.05); border-radius: 12px; padding: 8px 10px; margin-bottom: 10px; line-height: 1.5; }
.em-week b.in { color: var(--kk-hi); } .em-week b.out { color: #ff8a80; }
.em-card { background: rgba(255,255,255,.06); border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; }
.em-card-t { font-weight: 800; font-size: 13.5px; display: flex; align-items: center; gap: 6px; } .em-card-t small { opacity: .55; font-weight: 600; }
.em-chip { margin-left: auto; font-size: 9.5px; letter-spacing: 1.5px; padding: 2px 6px; border-radius: 6px; background: #444; }
.em-chip.good { background: #0b6e4f; } .em-chip.bad { background: #8a2a1a; }
.em-row { display: flex; gap: 6px; margin: 5px 0; flex-wrap: wrap; }
.em-row button, .em-small { flex: 1; font-family: inherit; font-weight: 700; font-size: 12px; text-align: left; letter-spacing: 0; text-transform: none; padding: 7px 9px; border-radius: 10px; background: #2a2440; color: #eee; box-shadow: none; cursor: pointer; }
.em-small { flex: none; padding: 4px 9px; font-size: 11px; }
.em-row button:disabled, .em-small:disabled { opacity: .45; cursor: default; }
.em-phone button.sel { box-shadow: inset 0 0 0 2px #c79bff; background: #3b2f5c; }
.em-sub { font-size: 11px; opacity: .65; }
.em-k { font-size: 10px; letter-spacing: 3px; color: #c79bff; font-weight: 800; margin: 10px 0 4px; text-transform: uppercase; }
.em-line { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 5px 2px; border-bottom: 1px solid rgba(255,255,255,.06); } .em-line span { flex: 1; min-width: 0; }
.em-msg { font-size: 11.5px; opacity: .85; padding: 4px 0; border-bottom: 1px dashed rgba(255,255,255,.08); }
.toast[data-app="EMPIRE"], .toast[data-app="TRANSPORT"] { border-left: 3px solid #c79bff; }

/* stamina (iteration 43) */
#stambox .dmg-label { margin-top: 4px; }
#stambar { width: 170px; height: 7px; background: rgba(0,0,0,.6); border-radius: 4px; margin: 3px 0 0 auto; overflow: hidden; border: 1px solid rgba(255,255,255,.15); }
#stamfill { height: 100%; width: 100%; background: linear-gradient(90deg, #2fbf71, #a7e05b); transition: width .3s; }
#stamfill.low { background: linear-gradient(90deg, #e85d04, #f2b01e); }
#drowsy { position: fixed; inset: 0; pointer-events: none; z-index: 5; opacity: 0; transition: opacity 1.2s;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 45%, rgba(10,6,4,.55) 72%, rgba(6,3,2,.95) 100%); }
#drowsy.on { animation: drowsyPulse 5s ease-in-out infinite; }
@keyframes drowsyPulse { 0%, 100% { filter: blur(0); transform: scale(1); } 50% { transform: scale(1.04); } }
.toast[data-app="STREET TALK"] .nf-body b { color: var(--gold-hi); }

/* ---- the radio (iteration 44): station card under the clock, subtitles at the bottom ---- */
#radio-card { position: absolute; top: 140px; right: 16px; min-width: 230px; max-width: 300px; text-align: right; background: rgba(21,16,12,.86); padding: 8px 14px 9px; border-radius: 10px;
  border-right: 4px solid var(--rc, var(--gold)); transition: opacity .35s, transform .35s; opacity: 0; transform: translateX(10px); }
#radio-card.show { opacity: 1; transform: none; }
#radio-card .rc-top { font-family: var(--display); font-size: 19px; letter-spacing: 1px; color: #fff; }
#radio-card .rc-fm { display: inline-block; font: 800 10px/1 sans-serif; letter-spacing: 1px; color: #15100c; background: var(--rc, var(--gold)); padding: 3px 5px; border-radius: 3px; margin-right: 7px; vertical-align: 3px; }
#radio-card .rc-tag { font-size: 12px; color: var(--rc, var(--gold)); font-weight: 700; letter-spacing: .5px; }
#radio-card .rc-np { font-size: 12px; color: #ddd; margin-top: 3px; }
#radio-card .rc-key { font-size: 10px; color: #999; margin-top: 4px; letter-spacing: 1px; text-transform: uppercase; }
#radio-sub { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); max-width: min(620px, calc((100vw - 560px) / var(--tz, 1))); min-width: 280px; text-align: center;
  background: rgba(10,8,6,.72); color: #f3efe6; padding: 7px 14px; border-radius: 8px; font-size: 14px; line-height: 1.35; border-bottom: 3px solid var(--rc, var(--gold)); }
#radio-sub b { color: var(--rc, var(--gold)); }
#radio-sub .rs-gl { display: block; margin-top: 2px; font-size: 11px; font-style: italic; opacity: .72; }
#radio-sub .rs-st { font: 800 10px/1 sans-serif; color: #15100c; background: var(--rc, var(--gold)); padding: 2px 4px; border-radius: 3px; margin-right: 7px; vertical-align: 2px; }
/* on foot (review-06 polish): the speedo shows walking speed; no fuel or engine bars */
#speedo.on-foot #fuelbox, #speedo.on-foot > .dmg-label, #speedo.on-foot #dmgbar { display: none; }

/* ---- mini-game scoreboard (iteration 45+) ---- */
.mg-hud { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); text-align: center; z-index: 5; pointer-events: none; }
.mg-hud .mg-row { display: inline-flex; align-items: stretch; background: rgba(21,16,12,.9); border-radius: 10px; overflow: hidden; box-shadow: 0 4px 0 rgba(0,0,0,.35); font-family: var(--display); }
.mg-hud .mg-l, .mg-hud .mg-r { padding: 6px 14px; color: #15100c; font-size: 16px; letter-spacing: 1px; }
.mg-hud .mg-s { padding: 4px 16px; font-size: 26px; color: #fff; min-width: 74px; }
.mg-hud .mg-c { padding: 6px 12px; font-size: 18px; color: var(--gold); background: rgba(0,0,0,.35); min-width: 54px; }
.mg-hud .mg-hint { margin-top: 6px; font-size: 13px; color: #eee; text-shadow: 0 1px 2px #000; }
.mg-hud .mg-hint b { color: var(--gold); }
.mg-hud .mg-flash { font-family: var(--display); font-size: 0; color: #fff; text-shadow: 0 3px 0 #000, 0 0 18px rgba(242,176,30,.9); transition: font-size .2s; }
.mg-hud .mg-flash.on { font-size: 44px; margin-top: 8px; }

/* ---- the boxing cue (iteration 46): a word, its key, a ring closing on the beat ---- */
#box-cue { position: absolute; left: 50%; top: 68%; transform: translate(-50%, -50%); width: 150px; height: 150px; pointer-events: none; text-align: center; }
#box-cue .bc-ring { position: absolute; inset: 0; border: 5px solid #fff; border-radius: 50%; box-shadow: 0 0 14px rgba(0,0,0,.6); }
#box-cue .bc-word { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -62%); white-space: nowrap; font-family: var(--display); font-size: 34px; color: #fff; text-shadow: 0 3px 0 #000, 0 0 12px rgba(0,0,0,.7); }
#box-cue .bc-key { position: absolute; left: 50%; top: 50%; transform: translate(-50%, 70%); font: 800 14px/1 sans-serif; color: #15100c; background: #fff; padding: 4px 8px; border-radius: 4px; letter-spacing: 1px; }
#box-cue.cue-punch .bc-ring { border-color: #f2b01e; } #box-cue.cue-punch .bc-word { color: #f2b01e; }
#box-cue.cue-block .bc-ring { border-color: #3a86ff; } #box-cue.cue-block .bc-word { color: #8fb6ff; }
#box-cue.cue-dodge .bc-ring, #box-cue.cue-left .bc-ring, #box-cue.cue-right .bc-ring { border-color: #2fbf71; }
#box-cue.cue-dodge .bc-word, #box-cue.cue-left .bc-word, #box-cue.cue-right .bc-word { color: #7ef0ad; }
#box-cue.cue-flash .bc-key { display: none; }

/* ---- rain on the edge of the screen (iteration 49) ---- */
#rain-hud { position: fixed; inset: 0; pointer-events: none; opacity: 0; z-index: 2;
  background:
    radial-gradient(circle at 6% 18%, rgba(220,235,255,.35) 0 3px, transparent 4px), radial-gradient(circle at 11% 64%, rgba(220,235,255,.3) 0 4px, transparent 5px),
    radial-gradient(circle at 3% 82%, rgba(220,235,255,.3) 0 2px, transparent 3px), radial-gradient(circle at 94% 22%, rgba(220,235,255,.35) 0 3px, transparent 4px),
    radial-gradient(circle at 89% 70%, rgba(220,235,255,.3) 0 4px, transparent 5px), radial-gradient(circle at 97% 48%, rgba(220,235,255,.3) 0 2px, transparent 3px),
    radial-gradient(circle at 22% 6%, rgba(220,235,255,.3) 0 3px, transparent 4px), radial-gradient(circle at 78% 5%, rgba(220,235,255,.3) 0 3px, transparent 4px),
    radial-gradient(ellipse at center, transparent 55%, rgba(120,135,155,.35) 100%);
  background-size: 260px 300px, 300px 340px, 220px 260px, 280px 320px, 310px 290px, 240px 270px, 330px 210px, 290px 230px, 100% 100%; }
#rain-hud.on { animation: rain-run 1.4s linear infinite; }
@keyframes rain-run { from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; } to { background-position: 0 300px, 0 340px, 0 260px, 0 320px, 0 290px, 0 270px, 0 210px, 0 230px, 0 0; } }
/* the harmattan's dusty tint over the screen (iteration 50) */
#haze-hud { position: fixed; inset: 0; pointer-events: none; opacity: 0; z-index: 1; background: radial-gradient(ellipse at center, rgba(214,180,120,.35) 0%, rgba(170,130,80,.7) 100%); mix-blend-mode: multiply; }

/* review-07: the boxing ring cam and the dance-off hide the phone / minimap, the speedo and the rain on the glass */
body.ring-cam #phone, body.ring-cam #speedo, body.ring-cam #rain-hud { display: none !important; }
body.ring-cam #objective { display: none !important; } /* a mission's studio session / gig: the scoreboard says it all (iteration 58) */

/* review-07 (N5): on a phone (375 px wide) the scoreboard sits under the money / clock row on one line, the toasts
   move below it, and the radio card stays narrow on the right */
@media (max-width: 480px) {
  .mg-hud { top: 70px; max-width: calc((100vw - 16px) / var(--tz, 1)); }
  .mg-hud .mg-row { white-space: nowrap; }
  .mg-hud .mg-l, .mg-hud .mg-r { font-size: 11px; padding: 5px 7px; letter-spacing: 0; }
  .mg-hud .mg-s { font-size: 18px; min-width: 50px; padding: 3px 7px; }
  .mg-hud .mg-c { font-size: 13px; min-width: 36px; padding: 5px 6px; }
  .mg-hud .mg-hint { font-size: 11px; }
  .mg-hud .mg-flash.on { font-size: 30px; margin-top: 4px; }
  body.mg-on #toasts { top: 150px; }
  body.mg-on #wanted { display: none; }                         /* no heat in a mini-game: the pill sat under the scoreboard */
  body.mg-on #toasts > :nth-child(n+3) { display: none; }       /* two cards at most over a mini-game */
  body.mg-on #toasts > * { font-size: 11px; }
  #radio-card { min-width: 0; max-width: calc(44vw / var(--tz, 1)); right: 8px; top: 72px; padding: 6px 9px 7px; box-sizing: border-box; }
  body.mg-on #radio-card { top: 112px; }
  #radio-card .rc-top { font-size: 14px; }
  #radio-card .rc-np, #radio-card .rc-tag { font-size: 10px; }
  #toasts { min-width: 0; width: calc((50vw - 16px) / var(--tz, 1)); }
}

/* batch-07 polish: the dialogue box and the phone call on a phone (375 px): the box sits above the phone/minimap,
   full width, smaller portrait and type; the call card stays right of the toast column */
@media (max-width: 480px) {
  #dialogue { width: calc((100vw - 16px) / var(--tz, 1)); min-width: 0; bottom: 252px; padding: 9px 10px; gap: 9px; border-radius: 14px; box-sizing: border-box; }
  #dialogue.cut { bottom: calc(13vh / var(--tz, 1)); width: calc((100vw - 16px) / var(--tz, 1)); }
  .dl-portrait { width: 52px; height: 52px; }
  .dl-text { font-size: 15px; }
  .dl-gloss { font-size: 12px; }
  .dl-hint { bottom: -16px; }
  #callcard { top: 112px; right: 8px; width: calc((50vw - 16px) / var(--tz, 1)); padding: 9px 10px; border-radius: 16px; box-sizing: border-box; }
  .cc-who canvas { width: 40px; height: 40px; }
  .cc-name { font-size: 14px; }
}

/* Kweku's music career (iteration 58): the Blaze tab — KASA followers card and the feed */
.pa-kasa { margin: 4px 0 10px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(135deg, #c8241f, #3a1240); text-align: center; }
.pa-kasa .pk-brand { font-weight: 900; letter-spacing: .3em; font-size: 11px; opacity: .8; }
.pa-kasa .pk-handle { font-size: 12px; opacity: .85; }
.pa-kasa .pk-num { font-size: 30px; font-weight: 900; line-height: 1.1; }
.pa-kasa .pk-k { font-size: 10px; text-transform: uppercase; letter-spacing: .15em; opacity: .7; }
.pa-ch .pa-rep-bar { --c: #00a884; margin: 2px 0 6px; }
.pa-post { padding: 6px 8px; margin: 4px 0; border-radius: 8px; background: rgba(255,255,255,.06); font-size: 12px; }
.pa-post small { opacity: .6; }
.pa-post div { margin: 2px 0; }

/* review-08 R08-7: on a phone (≤ 480 px) the big card (NEW AREA, MISSION PASSED) spans the screen under the toasts'
   row in smaller type, and the toasts fade back while it's up; the district banner fits the screen width */
@media (max-width: 480px) {
  #bigmsg { left: 16px; right: 16px; top: 40%; }
  #bigmsg-title { font-size: clamp(22px, 7.4vw, 34px); letter-spacing: 1px; }
  #bigmsg-sub { font-size: 13px; }
  body.big-on #toasts { opacity: .22; }
  #district-banner { white-space: normal; width: calc((100vw - 24px) / var(--tz, 1)); }
  #district-banner .db-name { line-height: 1.05; }
}
#district-banner { max-width: calc((100vw - 24px) / var(--tz, 1)); }
#district-banner .db-name { font-size: min(46px, 8.4vw); letter-spacing: min(8px, 1.2vw); }
#district-banner .db-sub { font-size: min(15px, 3.6vw); letter-spacing: min(5px, 0.9vw); }

/* ------------------------------------------------- controls card (pause menu + big map) */
.keys-card { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 28px; justify-content: center; text-align: left; font-size: 13px; line-height: 1.75; }
.kc-h { font-weight: 900; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); font-size: 11px; margin-bottom: 2px; }
.kc-row { white-space: nowrap; }
.kc-row kbd { display: inline-block; min-width: 22px; padding: 0 5px; margin-right: 8px; border-radius: 4px; background: rgba(255,255,255,.12); border: 1px solid rgba(242,183,5,.55); color: var(--gold); font: 800 11px/18px system-ui, sans-serif; text-align: center; }
#pause .keys-card { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(242,183,5,.3); opacity: .92; }
#bigmap .bm-keys { position: absolute; right: 22px; top: 380px; width: 190px; background: rgba(10,10,14,.78); border: 1px solid rgba(242,183,5,.45); border-radius: 12px; padding: 10px 14px; pointer-events: none; }
#bigmap .bm-keys .keys-card { grid-template-columns: 1fr; gap: 4px; font-size: 12px; line-height: 1.34; } /* 1.34: 21 rows since iterations 77–78 still end above 900 px */
@media (max-height: 760px) { #bigmap .bm-keys { display: none; } }
@media (max-width: 700px) {
  #bigmap .bm-keys { display: none; }
  #pause .keys-card { grid-template-columns: repeat(2, auto); gap: 2px 16px; font-size: 12px; line-height: 1.6; }
}

/* Akosua's deals (iteration 59): THE TABLE — a negotiation panel above the phone: the investor, what they say, a
   0–100 bar with their offer (green) and your ask (gold), patience, and the six moves */
#table { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: min(620px, calc((100vw - 24px) / var(--tz, 1))); box-sizing: border-box; padding: 12px 14px; border-radius: 14px;
  background: rgba(14, 12, 10, .92); border-top: 4px solid #0a8f5a; box-shadow: 0 6px 0 rgba(0,0,0,.35); z-index: 6; pointer-events: auto; } /* the move cards are tapped / clicked (iteration 64: #hud let taps through) */
#table .tb-top { display: flex; gap: 12px; align-items: center; }
#table canvas { width: 72px; height: 72px; border-radius: 10px; flex: none; }
#table .tb-who { font-weight: 900; color: #f2b01e; letter-spacing: 1px; }
#table .tb-co { font-size: 11px; opacity: .7; }
#table .tb-say { font-size: 15px; margin-top: 4px; font-style: italic; }
#table .tb-bar { position: relative; height: 12px; margin: 12px 4px 4px; border-radius: 6px; background: linear-gradient(90deg, #5a1d14, #3a3a3a 50%, #0c4a36); }
#table .tb-bar i { position: absolute; top: -5px; width: 4px; height: 22px; margin-left: -2px; border-radius: 2px; transition: left .25s; }
#table .tb-theirs { background: #2fe39a; } #table .tb-ask { background: #f2b01e; }
#table .tb-nums { display: flex; justify-content: space-between; font-size: 12px; margin: 2px 4px 8px; }
#table .tb-nums b { color: #fff; } #table .tb-t b { color: #2fe39a; } #table .tb-a b { color: #f2b01e; } #table .tb-p { color: #ff8a1f; letter-spacing: 2px; }
#table .tb-moves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
#table .tb-moves button { font: inherit; font-size: 12px; padding: 6px 4px; border: 0; border-radius: 8px; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
#table .tb-moves button b { color: #f2b01e; margin-right: 3px; }
#table .tb-moves button:disabled { opacity: .35; }
@media (max-width: 480px) { #table { bottom: 250px; padding: 9px 10px; } #table canvas { width: 48px; height: 48px; } #table .tb-say { font-size: 13px; } #table .tb-moves { grid-template-columns: repeat(2, 1fr); } }

/* The phone hub (iteration 61): the home screen's app grid and the contacts list */
#phonehub { position: fixed; inset: 0; display: grid; place-items: center; z-index: 30; background: rgba(5,4,3,.55); }
#phonehub.hidden { display: none; }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 8px 2px; }
.hub-app { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px 8px; border: 0; border-radius: 16px; background: rgba(255,255,255,.06); color: #fff; font: inherit; cursor: pointer; }
.hub-app i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ac); font-style: normal; font-size: 24px; font-weight: 900; box-shadow: 0 3px 0 rgba(0,0,0,.35); }
.hub-app span { font-size: 12px; font-weight: 700; }
.hub-app small { font-size: 10px; opacity: .55; }
.hub-app em { position: absolute; top: 6px; right: 8px; min-width: 18px; padding: 1px 5px; border-radius: 9px; background: #c8241f; font-style: normal; font-size: 10px; font-weight: 800; }
.hub-app.sel, .hub-contact button.sel { outline: 2px solid var(--gold); }
.hub-contact { display: flex; align-items: center; gap: 10px; padding: 8px; margin: 6px 0; border-radius: 10px; background: rgba(255,255,255,.06); border-left: 3px solid var(--c); }
.hub-contact img { border-radius: 8px; }
.hub-contact .hc-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hub-contact .hc-main small { opacity: .65; font-size: 11px; }
.hub-contact button { border: 0; border-radius: 8px; padding: 6px 10px; background: rgba(255,255,255,.14); color: #fff; font: inherit; font-size: 12px; cursor: pointer; }

/* Settings (iteration 62): a card over the pause menu */
#settings { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(5,4,3,.6); }
#settings.hidden { display: none; }
#pause.st-under .title-inner { visibility: hidden; }
#settings .st-card { width: min(560px, calc((100vw - 24px) / var(--tz, 1))); max-height: calc((100vh - 32px) / var(--tz, 1)); overflow: auto; box-sizing: border-box; padding: 18px 20px; border-radius: 16px; background: rgba(16,12,9,.96); border: 1px solid rgba(242,183,5,.35); text-align: center; }
#settings h2 { margin: 8px 0 10px; letter-spacing: 6px; }
#settings .st-tabs { display: flex; gap: 6px; justify-content: center; margin-bottom: 12px; }
#settings .st-tabs button { border: 0; border-radius: 8px; padding: 6px 12px; background: rgba(255,255,255,.1); color: #fff; font: inherit; cursor: pointer; }
#settings .st-tabs button.on { background: var(--gold); color: #1a1208; }
#settings .st-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; text-align: left; }
#settings .st-row.sel { background: rgba(242,183,5,.14); outline: 1px solid rgba(242,183,5,.5); }
#settings .st-ctl { display: flex; align-items: center; gap: 8px; }
#settings .st-ctl button { border: 0; border-radius: 8px; padding: 5px 12px; background: rgba(255,255,255,.1); color: #fff; font: inherit; cursor: pointer; }
#settings .st-ctl button.on { background: var(--gold); color: #1a1208; font-weight: 800; }
#settings input[type=range] { width: min(200px, calc(40vw / var(--tz, 1))); accent-color: #f2b01e; }
#settings .st-v { min-width: 30px; text-align: right; font-variant-numeric: tabular-nums; }
#settings .st-note, #settings .st-hint { font-size: 12px; opacity: .65; margin-top: 10px; }
#settings .st-keys { grid-template-columns: repeat(2, auto); }
#settings .st-card.wide { width: min(820px, calc((100vw - 24px) / var(--tz, 1))); }
@media (min-width: 700px) { #settings .st-card.wide .st-keys { grid-template-columns: repeat(3, auto); } }
#settings .st-back { margin-top: 10px; }
@media (max-width: 480px) { #settings .st-keys { grid-template-columns: 1fr; } #settings .st-row { flex-direction: column; align-items: flex-start; } }
/* (iteration 61) the phone apps (the hub, the log, KUBI KASH, Empire) fit a 375 px screen: they were 380 px wide */
@media (max-width: 480px) { .pa-phone { width: calc((100vw - 12px) / var(--tz, 1)); border-radius: 28px; } .hub-grid { gap: 8px; } }
/* the pause menu and the HUSTLE LOG's buttons, selected with the arrows / a pad's D-pad (reviewer-09 R09-8) */
#pause button.sel, .pa-now button.sel, .pa-retry.sel { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---- HUSTLE LOG → Stats (iteration 66): tiles per section, a crew picker that stays on top while you scroll */
.pa-tabs.many { gap: 4px; }
.pa-tabs.many button { letter-spacing: 1px; font-size: 11px; min-width: 0; }
.ss { padding-bottom: 4px; }
.ss-who { position: sticky; top: -2px; z-index: 2; display: flex; gap: 5px; padding: 4px 0 7px; background: linear-gradient(#16120f 80%, rgba(22,18,15,0)); }
.ss-who button { position: relative; flex: 1; min-width: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 6px 2px; font-family: inherit; font-weight: 700; font-size: 12px; line-height: 1.1; color: #e8dcc6; background: #221d19; cursor: pointer; border-bottom: 3px solid var(--c); }
.ss-who button.on { background: var(--c); color: #fff; border-color: var(--c); text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.ss-who button i { position: absolute; top: 3px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: #2fe39a; box-shadow: 0 0 4px #2fe39a; }
.ss-who button.sel, .ss-who button:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 1px; }
.ss-sec { margin: 2px 0 10px; }
.ss-sec h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 5px; font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--sc); }
.ss-sec h4::after { content: ''; flex: 1; height: 2px; border-radius: 1px; background: repeating-linear-gradient(90deg, var(--sc) 0 8px, transparent 8px 11px, #c8241f 11px 14px, transparent 14px 17px); opacity: .55; }
.ss-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.ss-t { min-width: 0; padding: 6px 7px 6px 8px; border-radius: 10px; background: rgba(255,255,255,.055); border-left: 3px solid var(--sc); }
.ss-t.w { grid-column: span 2; }
.ss-t.w3 { grid-column: 1 / -1; }
.ss-t b { display: block; font-size: 19px; line-height: 1.1; font-weight: 800; color: #fff6e4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ss-t b small { font-size: 11px; font-weight: 700; margin-left: 2px; color: #cfc4b0; }
.ss-t span { display: block; margin-top: 1px; font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; color: #cfc4b0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-t em { display: block; margin-top: 1px; font-size: 10.5px; line-height: 1.25; font-style: normal; color: var(--sc); overflow-wrap: anywhere; }
.ss-total { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; }
.ss-total b { font-size: 22px; color: var(--gold-hi); }
.ss-total span { grid-row: 2; }
.ss-bar { grid-row: 1 / span 2; grid-column: 2; display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: rgba(255,255,255,.1); }
.ss-bar i { display: block; height: 100%; }
.ss-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; vertical-align: 1px; }
.ss-foot { margin-top: 4px; font-size: 10.5px; color: #9a8f7d; text-align: center; }
body.touch .ss-who button { min-height: 44px; font-size: 13px; }
body.touch .ss-keys { display: none; }
@media (max-height: 460px) { .ss-t b { font-size: 17px; } .ss-sec { margin-bottom: 8px; } }
/* skills (iteration 68): the first section of the Stats tab */
.sk-row { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 5px; padding: 7px 9px 7px 7px; border-radius: 10px; background: rgba(255,255,255,.055); border-left: 3px solid var(--k, var(--sc)); }
.sk-m { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-style: normal; font-size: 15px; font-weight: 900; color: #15100c; background: var(--k, #9a8f7d); box-shadow: 0 0 0 2px rgba(0,0,0,.35); }
.sk-b { flex: 1; min-width: 0; }
.sk-top { display: flex; align-items: baseline; gap: 7px; }
.sk-top b { font-size: 15px; font-weight: 800; color: #fff6e4; }
.sk-lv { padding: 0 6px; border-radius: 6px; font-size: 11.5px; font-weight: 800; color: #15100c; background: var(--k); font-variant-numeric: tabular-nums; }
.sk-top em { margin-left: auto; font-size: 10.5px; font-style: normal; color: #cfc4b0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sk-bar { height: 6px; margin: 4px 0 3px; border-radius: 3px; overflow: hidden; background: rgba(255,255,255,.1); }
.sk-bar i { display: block; height: 100%; border-radius: 3px; background: var(--k); }
.sk-p { font-size: 11px; line-height: 1.3; color: var(--k); overflow-wrap: anywhere; }
.sk-p.dim { color: #b3a894; }
/* The HUSTLE LOG's Path tab (iteration 69): the record of choices and the path leaning */
.pa-tabs.many7 { gap: 3px; }
.pa-tabs.many7 button { letter-spacing: .3px; font-size: 10px; }
.cp { padding-bottom: 4px; }
.cp-lean { margin: 2px 0 10px; padding: 9px 10px 8px; border-radius: 12px; background: rgba(255,255,255,.055); border-left: 4px solid var(--pc); }
.cp-lead b { display: block; font-size: 17px; font-weight: 800; color: var(--pc); letter-spacing: .3px; }
.cp-lead span { display: block; font-size: 11.5px; color: #cfc4b0; margin-top: 1px; }
.cp-bar { display: flex; height: 10px; margin: 7px 0 6px; border-radius: 5px; overflow: hidden; background: rgba(255,255,255,.1); }
.cp-bar i { display: block; height: 100%; }
.cp-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.cp-legend span { display: flex; align-items: center; gap: 4px; min-width: 0; padding: 3px 5px; border-radius: 8px; font-size: 10.5px; font-weight: 700; color: #cfc4b0; background: rgba(0,0,0,.25); white-space: nowrap; overflow: hidden; }
.cp-legend span.on { color: #fff6e4; box-shadow: inset 0 0 0 1px var(--pc); }
.cp-legend i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--pc); }
.cp-legend b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--pc); }
.cp-how { margin-top: 5px; font-size: 10.5px; color: #9a8f7d; }
.cp-sec { margin: 2px 0 10px; --sc: #e9c46a; }
.cp-sec h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 5px; font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--sc); }
.cp-sec h4::after { content: ''; flex: 1; height: 2px; border-radius: 1px; background: repeating-linear-gradient(90deg, var(--sc) 0 8px, transparent 8px 11px, #c8241f 11px 14px, transparent 14px 17px); opacity: .55; }
.cp-o { display: flex; gap: 8px; align-items: baseline; padding: 4px 8px; margin-bottom: 3px; border-radius: 8px; background: rgba(255,255,255,.04); font-size: 12px; }
.cp-o b { flex: none; color: #fff6e4; font-weight: 800; }
.cp-o span { min-width: 0; color: #cfc4b0; overflow-wrap: anywhere; }
.cp-c { margin-bottom: 5px; padding: 7px 9px 7px 9px; border-radius: 10px; background: rgba(255,255,255,.055); border-left: 3px solid var(--pc); }
.cp-t { display: flex; align-items: baseline; gap: 7px; }
.cp-t b { min-width: 0; font-size: 14px; font-weight: 800; color: #fff6e4; overflow-wrap: anywhere; }
.cp-t em { margin-left: auto; flex: none; font-size: 10.5px; font-style: normal; color: #b3a894; white-space: nowrap; }
.cp-a { margin-top: 2px; font-size: 12.5px; line-height: 1.3; color: var(--pc); font-weight: 700; overflow-wrap: anywhere; }
.cp-a small { font-weight: 400; color: #9a8f7d; font-size: 10.5px; }
.cp-q { margin-top: 2px; font-size: 11px; line-height: 1.3; color: #b3a894; overflow-wrap: anywhere; }
.cp-p { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.cp-chip { padding: 1px 6px; border-radius: 6px; font-size: 10.5px; font-weight: 800; color: #15100c; background: var(--pc); }
.cp-chip.dim { color: #cfc4b0; background: rgba(255,255,255,.1); font-weight: 700; }
.cp-soon { --pc: #6b6357; opacity: .8; }
.cp-soon .cp-t b { color: #cfc4b0; }
.cp-none { margin: 8px 2px 10px; font-size: 12.5px; line-height: 1.4; color: #cfc4b0; }
body.touch .cp-t b { font-size: 14.5px; }
.sk-f { margin-top: 1px; font-size: 10px; line-height: 1.25; color: #9a8f7d; }
.sk-row.soon { --k: #6f6658; }
.sk-row.soon .sk-m { color: #d8cdb8; background: #3a332b; }
.sk-crew { display: grid; gap: 4px; }
.sk-cr { display: flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 10px; background: rgba(255,255,255,.055); border-left: 3px solid var(--c); }
.sk-cr > b { flex: 0 0 52px; font-size: 13px; color: #fff6e4; }
.sk-c { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; font-size: 11px; color: #cfc4b0; white-space: nowrap; overflow: hidden; }
.sk-c i { font-style: normal; color: var(--k); }
.sk-c b { color: var(--k); font-size: 13px; }
.sk-soon { flex: 1; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #9a8f7d; }
@media (max-height: 460px) { .sk-row { padding: 5px 8px 5px 6px; } .sk-m { width: 26px; height: 26px; font-size: 13px; } .sk-f { display: none; } }
/* a sideways swipe on an app's body changes the tab (iteration 64): the browser used to take it as a pan and cancel the
   pointer (pointercancel, no pointerup), so the swipe never fired on a scrolling body. Only vertical panning is native. */
body.touch .pa-body { touch-action: pan-y; }

/* Export / Import save (LAUNCH-PLAN §3.2a), over the pause menu like Settings */
.save-xfer-row { margin-top: 6px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
#savexfer { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(5,4,3,.6); }
#savexfer.hidden { display: none; }
#savexfer .sx-card { width: min(560px, calc((100vw - 24px) / var(--tz, 1))); max-height: calc((100vh - 32px) / var(--tz, 1)); overflow: auto; box-sizing: border-box; padding: 18px 20px; border-radius: 16px; background: rgba(16,12,9,.96); border: 1px solid rgba(242,183,5,.35); text-align: center; }
#savexfer h2 { margin: 8px 0 10px; letter-spacing: 6px; }
#savexfer .sx-p { font-size: 13.5px; opacity: .9; margin: 6px 0 10px; line-height: 1.45; }
#savexfer .sx-warn { color: #ffcf6e; }
#savexfer .sx-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 8px 0; }
#savexfer button { border: 0; border-radius: 10px; padding: 9px 14px; background: rgba(255,255,255,.12); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
#savexfer button.sel { outline: 2px solid var(--gold); outline-offset: 2px; }
#savexfer button.ghost { background: transparent; border: 1px solid rgba(255,255,255,.3); }
#savexfer .sx-code { width: 100%; box-sizing: border-box; height: 92px; resize: vertical; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.45); color: #e9e2d2; font: 11px/1.35 ui-monospace, Menlo, monospace; padding: 8px; word-break: break-all; }
#savexfer .sx-file { display: inline-block; border-radius: 10px; padding: 9px 14px; background: rgba(255,255,255,.12); font-weight: 700; cursor: pointer; text-transform: uppercase; letter-spacing: 2px; font-size: 14px; }
#savexfer .sx-file input { display: none; }
#savexfer .sx-msg { font-size: 12.5px; min-height: 16px; opacity: .8; }
#savexfer .sx-msg.bad { color: #ff8a80; opacity: 1; }

/* ------------------------------------------------------------------ the title fits every screen (owner's iPhone 14 Pro)
   "They look elongated and it doesn't fit neatly." The title keeps clear of the notch and the home bar (safe areas;
   tests set --tc-sa*), the paint swatches are true 44 px circles (a 34 px swatch under touch's 44 px min-height was an
   oval), and every title button is ≥ 44 px. On a short landscape screen (a phone on its side, a small laptop window) it
   is two columns sized by the height: the name and tagline on the left; the paint, CONTINUE + its save line, NEW GAME /
   START THE HUSTLE and the replay on the right; the footer one small line under both (gone when very short). */
#title {
  --sa-l: var(--tc-sal, env(safe-area-inset-left, 0px)); --sa-r: var(--tc-sar, env(safe-area-inset-right, 0px));
  --sa-t: var(--tc-sat, env(safe-area-inset-top, 0px)); --sa-b: var(--tc-sab, env(safe-area-inset-bottom, 0px));
  justify-content: safe center; padding: var(--sa-t) var(--sa-r) var(--sa-b) var(--sa-l);
}
#title .title-foot { bottom: calc(14px + var(--sa-b)); left: var(--sa-l); right: var(--sa-r); }
#title .swatch { width: 44px; height: 44px; aspect-ratio: 1; flex: none; }
#title #paint-name { margin-top: 9px; }
#title button.ghost { min-height: 44px; }
@media (max-height: 700px) { #title .title-foot { bottom: calc(8px + var(--sa-b)); } }
/* 701–760 px tall (a 1280 × 720 laptop): the logo eases down with the height so the key list keeps clear of the footer */
@media (max-height: 760px) and (min-height: 701px) {
  #title .logo .l-accra { font-size: clamp(76px, 13.4vh, 104px); }
  #title .logo .l-city { font-size: clamp(30px, 5.2vh, 40px); }
  #title .adinkra-row { margin-bottom: 8px; }
  #title .tag { margin-bottom: 16px; }
}

@media (max-height: 600px) and (min-aspect-ratio: 4/3) {
  #title { padding: max(8px, var(--sa-t)) calc(16px + var(--sa-r)) calc(26px + var(--sa-b)) calc(16px + var(--sa-l)); }
  #title .title-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center;
    column-gap: clamp(16px, 4vw, 48px); width: 100%; max-width: 940px; padding: 0; }
  #title .title-brand { container-type: inline-size; }
  #title .adinkra-row { gap: clamp(12px, 2.4vw, 20px); margin-bottom: clamp(4px, 1.6vh, 10px); }
  #title .adinkra-row svg { width: clamp(18px, 6.2vh, 30px); height: clamp(18px, 6.2vh, 30px); width: clamp(18px, 6.2dvh, 30px); height: clamp(18px, 6.2dvh, 30px); }
  #title .logo { text-shadow: 0 4px 0 #000, 0 0 30px rgba(0,0,0,.6); }
  /* the logo fits the column's width (cqi; vw where container units are missing) and the screen's height (dvh) */
  #title .logo .l-accra { font-size: min(17vh, 7.4vw); font-size: min(17dvh, 18cqi); letter-spacing: .09em; }
  #title .logo .l-accra i { margin-left: .06em; }
  #title .logo .l-city { font-size: min(6.4vh, 2.8vw); font-size: min(6.4dvh, 6.6cqi); letter-spacing: .3em; margin: .2em 0 0 .3em; white-space: nowrap; }
  #title .kente { width: 92%; max-width: 420px; height: 8px; margin: clamp(8px, 2.6vh, 14px) auto; }
  #title .tag { font-size: clamp(13px, 3.9vh, 17px); line-height: 1.4; margin: 0; }
  #title #paint { margin: 0 0 clamp(8px, 2.6vh, 16px); }
  #title .paint-label { font-size: 11px; margin-bottom: 6px; }
  #title #paint-name { font-size: 13px; min-height: 16px; margin-top: 8px; }
  #title #continue, #title #play { width: min(100%, 300px); min-height: 44px; padding: 10px 18px; font-size: clamp(15px, 4.2vh, 18px); line-height: 1.15; }
  #title #play.confirm { font-size: 12.5px; letter-spacing: 1px; }
  #title #save-note { margin: 4px 0 clamp(8px, 2.4vh, 12px); font-size: 12px; }
  #title button.ghost { margin-top: clamp(4px, 1.8vh, 12px); font-size: 12px; padding: 6px 16px; }
  #title .controls { grid-column: 1 / -1; margin-top: clamp(8px, 2vh, 14px); font-size: 11.5px; line-height: 1.5; }
  #title .title-foot { bottom: calc(8px + var(--sa-b)); padding: 0 8px; font-size: 9.5px; letter-spacing: 2.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-height: 460px) and (min-aspect-ratio: 4/3) { #title .controls { display: none; } } /* the keys are in the pause menu */
@media (max-height: 340px) and (min-aspect-ratio: 4/3) {
  #title { padding-bottom: calc(8px + var(--sa-b)); }
  #title .title-foot, #title #paint-name { display: none; }
}

/* ---- achievements (iteration 67): the unlock card (one at a time, low in the middle) and the phone hub's Awards app */
#ach-toast { position: fixed; left: 50%; bottom: 17%; z-index: 6; display: flex; align-items: center; gap: 12px; box-sizing: border-box; max-width: min(430px, calc((100vw - 32px) / var(--tz, 1)));
  padding: 8px 20px 9px 9px; border-radius: 40px; background: rgba(21,16,12,.9); border: 1px solid rgba(242,176,30,.45); box-shadow: 0 6px 18px rgba(0,0,0,.45);
  color: #fff6e4; pointer-events: none; transform: translate(-50%, 14px); opacity: 0; transition: transform .32s cubic-bezier(.2,.9,.3,1.15), opacity .25s; }
#ach-toast.hidden { display: none; }
#ach-toast.on { transform: translate(-50%, 0); opacity: 1; }
#ach-toast .at-medal { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-style: normal; font-size: 21px; font-weight: 900; color: #15100c;
  background: radial-gradient(circle at 34% 30%, #fff3c4 0, var(--ac) 58%, #5a3b06 100%); box-shadow: 0 0 0 3px #f2b01e, 0 0 0 5px rgba(21,16,12,.9), 0 0 16px var(--ac); }
#ach-toast .at-txt { min-width: 0; }
#ach-toast small { display: block; font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); font-weight: 800; }
#ach-toast b { display: block; font-family: var(--display); font-size: 19px; letter-spacing: .5px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ach-toast span { display: block; font-size: 12.5px; line-height: 1.3; color: #e8dcc6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { #ach-toast { transition: opacity .2s; transform: translate(-50%, 0); } }

.aw { padding-bottom: 4px; }
.aw-sum { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; padding: 4px 2px 6px; }
.aw-n b { font-family: var(--display); font-size: 26px; color: var(--gold-hi); }
.aw-n span { margin-left: 4px; font-size: 12px; color: #cfc4b0; }
.aw-bar { height: 8px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.1); }
.aw-bar i, .aw-p i { display: block; height: 100%; background: linear-gradient(90deg, #f2b01e, #ffd25a); }
.aw-sum em { grid-column: 1 / -1; font-style: normal; font-size: 10.5px; letter-spacing: .5px; color: #9a8f7d; }
.aw-f { position: sticky; top: -2px; z-index: 2; display: flex; gap: 5px; padding: 4px 0 7px; background: linear-gradient(#16120f 80%, rgba(22,18,15,0)); }
.aw-f button { flex: 1; min-width: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 6px 2px; font-family: inherit; font-weight: 700; font-size: 12px; color: #e8dcc6; background: #2c2621; cursor: pointer; }
.aw-f button small { font-size: 10.5px; opacity: .7; }
.aw-f button.on { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.aw-f button:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 1px; }
.aw-sec { margin: 2px 0 10px; }
.aw-sec h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 5px; font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--sc); }
.aw-sec h4::after { content: ''; flex: 1; height: 2px; border-radius: 1px; background: repeating-linear-gradient(90deg, var(--sc) 0 8px, transparent 8px 11px, #c8241f 11px 14px, transparent 14px 17px); opacity: .55; }
.aw-c { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; padding: 7px 9px; border-radius: 12px; background: rgba(255,255,255,.055); }
.aw-m { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-style: normal; font-weight: 900; font-size: 16px; color: #6f665a; background: #2c2621; box-shadow: inset 0 0 0 2px rgba(255,255,255,.1); }
.aw-c.got .aw-m { color: #15100c; background: radial-gradient(circle at 34% 30%, #fff3c4 0, var(--sc) 60%, #5a3b06 100%); box-shadow: 0 0 0 2px #f2b01e; }
.aw-c.soon { opacity: .6; }
.aw-c.soon .aw-m { font-size: 13px; color: #9a8f7d; }
.aw-t { min-width: 0; flex: 1; }
.aw-t b { display: block; font-size: 13.5px; line-height: 1.2; color: #fff6e4; }
.aw-c.todo .aw-t b { color: #e8dcc6; }
.aw-t span { display: block; font-size: 11.5px; line-height: 1.3; color: #b8ad99; }
.aw-t em { display: block; margin-top: 2px; font-style: normal; font-size: 10.5px; color: var(--sc); font-variant-numeric: tabular-nums; }
.aw-t em.aw-got { color: #2fe39a; }
.aw-p { height: 4px; margin-top: 4px; border-radius: 2px; overflow: hidden; background: rgba(255,255,255,.1); }
.aw-empty { padding: 18px 6px; text-align: center; font-size: 12.5px; color: #cfc4b0; }
.aw-foot { margin-top: 4px; font-size: 10.5px; color: #9a8f7d; text-align: center; }
body.touch .aw-f button { min-height: 44px; font-size: 13px; }
body.touch .aw-keys { display: none; }
@media (max-height: 460px) { .aw-sum { padding: 0 2px 2px; } .aw-n b { font-size: 20px; } .aw-c { padding: 5px 8px; gap: 8px; } .aw-m { width: 30px; height: 30px; font-size: 14px; } .aw-t span { font-size: 11px; } }

/* Chapter Two's fallout (iteration 70): the suspicion / out-of-sight meter and the stake-out's camera flash */
#fallout-meter { position: fixed; left: 50%; top: 118px; transform: translateX(-50%); width: min(300px, 62vw); font: 600 11px Trebuchet MS, sans-serif; color: #fff; text-shadow: 0 1px 2px #000; z-index: 20; pointer-events: none; display: none; }
#fallout-meter .fm-row { display: flex; justify-content: space-between; margin-bottom: 3px; letter-spacing: .04em; }
#fallout-meter .fm-bar { display: block; height: 8px; background: #0008; border: 1px solid #0008; border-radius: 4px; overflow: hidden; }
#fallout-meter .fm-bar b { display: block; height: 100%; width: 0; background: #7fd1ff; transition: width .15s linear; }
#photo-flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 40; }
#photo-flash.on { animation: photo-flash .45s ease-out; }
@keyframes photo-flash { 0% { opacity: .85; } 100% { opacity: 0; } }
@media (max-height: 500px) { #fallout-meter { top: 40px; width: min(300px, 46vw); } } /* a phone on its side: right under the one-line objective */

/* Tutorial tips (iteration 79, src/ui/tutorial.js): one card under the objective, gone when you do the thing */
#tip { position: fixed; left: 50%; top: 120px; transform: translateX(-50%); z-index: 13; width: max-content; max-width: min(460px, calc((100vw - 600px) / var(--tz, 1))); min-width: 300px;
  background: rgba(21, 16, 12, .9); color: #f7ead3; border-radius: 12px; padding: 10px 16px 10px 18px; pointer-events: none;
  border-left: 5px solid var(--gold); box-shadow: 0 5px 0 rgba(0,0,0,.3); font: 600 15px/1.35 "Trebuchet MS", system-ui, sans-serif;
  animation: tip-in .35s ease-out; }
#tip.hidden { display: none; }
#tip .tp-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 3px; }
#tip .tp-eye { font: 800 10px var(--display); letter-spacing: 2px; color: #15100c; background: var(--gold); padding: 2px 6px 1px; border-radius: 4px; }
#tip .tp-title { font: 800 13px var(--display); letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
#tip .tp-text b { color: var(--gold); }
#tip kbd { display: inline-block; min-width: 1.5em; padding: 0 6px; margin: 0 1px; border-radius: 5px; text-align: center; font: 800 13px/1.5 "Trebuchet MS", sans-serif;
  color: #15100c; background: #f7ead3; box-shadow: 0 2px 0 #b8a27a; }
#tip .tp-gloss { margin-top: 4px; font-size: 12px; font-style: italic; opacity: .72; }
#tip .tp-gloss.hidden { display: none; }
#tip .tp-skip { pointer-events: auto; float: right; margin: 6px -4px -2px 12px; padding: 3px 10px; border-radius: 14px; border: 1px solid rgba(247,234,211,.35);
  background: transparent; color: rgba(247,234,211,.8); font: 700 11px "Trebuchet MS", sans-serif; letter-spacing: .5px; text-transform: none; box-shadow: none; cursor: pointer; }
#tip .tp-skip:hover { border-color: var(--gold); color: var(--gold); }
#tip.done { border-left-color: #2fe39a; }
#tip.done .tp-eye { background: #2fe39a; }
#tip.done .tp-title { color: #2fe39a; }
#tip.done .tp-skip { display: none; }
@keyframes tip-in { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { #tip { animation: none; } }
body.touch #tip { max-width: min(400px, calc(48vw / var(--tz, 1))); min-width: 250px; padding: 6px 10px 6px 12px; font-size: 12.5px; line-height: 1.3; border-left-width: 4px; }
body.touch #tip .tp-head { margin-bottom: 1px; }
body.touch #tip .tp-title { font-size: 11px; }
body.touch #tip .tp-gloss { font-size: 11px; margin-top: 2px; }
/* Skip: a thumb-sized target (34 px tall plus its margin) that sits in the card's bottom-right corner */
body.touch #tip .tp-skip { padding: 9px 12px; margin: 2px -6px -4px 8px; font-size: 11.5px; }

/* "Tap for sound" (phones, owner bug): shows while the sound should play but the browser hasn't let it start yet */
#sound-chip { position: fixed; z-index: 9000; top: calc(env(safe-area-inset-top, 0px) + 10px); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(10,12,16,.72); color: #fff; font: 600 14px/1 system-ui, sans-serif; letter-spacing: .02em; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#sound-chip svg { width: 18px; height: 18px; }
#sound-chip.hidden { display: none; }
