/* ============================================================================
   UI 2 — loaded after main.css and layered over it.
   · three more skins (Primo, Bodega, Graphite)
   · the message feed: toasts as text bubbles with a scrollable history
   · MoPhone: a rounded modern handset, a home screen with widgets and a dock,
     and a parody brand per app (Txtr, Shale Pay, LinkedOut, BidBay, iDread,
     GrubHope, Pocket Lint, Landlordly, FeedLove, Blessed+, Tweaks)
   · item art, the shop menu board, the fridge door, the daily report
   Everything still runs off the skin tokens (--gold, --glow, --line ...).
   ============================================================================ */

:root[data-theme="primo"] {
  --ink: #070b1c; --ink-2: #0b1230; --ink-3: #111a42;
  --line: #2b3a7a; --line-hot: #4cc9ff;
  --text: #e4ecff; --dim: #8796c8; --paper: #f2f6ff;
  --gold: #4cc9ff; --gold-deep: #1f7fb8;
  --bad: #ff6b8a; --good: #5ef0b4; --warn: #ffc56b; --violet: #a99bff;
  --screen: #0a1030; --screen-2: #1a2766; --glow: rgba(76, 201, 255, .5);
  --bezel-a: #8a93b8; --bezel-b: #1c2246; --bezel-c: #9aa4cc;
}
:root[data-theme="bodega"] {
  --ink: #0d0708; --ink-2: #170b0e; --ink-3: #221014;
  --line: #5a2430; --line-hot: #ff5f8f;
  --text: #ffe6ea; --dim: #b48a92; --paper: #fff2f4;
  --gold: #ff9a3c; --gold-deep: #b85c12;
  --bad: #ff4f6b; --good: #8ff0a4; --warn: #ffd06b; --violet: #ff7ad9;
  --screen: #120709; --screen-2: #2a0d16; --glow: rgba(255, 95, 143, .5);
  --bezel-a: #7d6266; --bezel-b: #2a1418; --bezel-c: #95787c;
}
:root[data-theme="graphite"] {
  --ink: #0a0a0c; --ink-2: #121215; --ink-3: #1a1a1f;
  --line: #3a3a42; --line-hot: #d8d8e0;
  --text: #ececf2; --dim: #8e8e99; --paper: #ffffff;
  --gold: #f2f2f6; --gold-deep: #8e8e99;
  --bad: #ff6b6b; --good: #7fe0a8; --warn: #ffcf70; --violet: #b9b2ff;
  --screen: #0c0c0f; --screen-2: #1e1e24; --glow: rgba(230, 230, 240, .28);
  --bezel-a: #9a9aa2; --bezel-b: #222226; --bezel-c: #b0b0b8;
}

/* ------------------------------------------------------------------ HUD polish */
.hud__top { border-radius: 20px; }
.stat__bar { height: 8px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--ink) 70%, #000); }
.stat__fill {
  border-radius: 999px; transition: width .9s cubic-bezier(.2, .9, .2, 1);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 70%, #000), var(--c));
  box-shadow: 0 0 10px color-mix(in srgb, var(--c) 55%, transparent);
}
.stat__bar::after { opacity: .35; }
.hud__btn { border-radius: 999px; padding: 6px 11px; }
.hud__phone {
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 92%, #fff), color-mix(in srgb, var(--gold) 70%, #000));
  color: #071009; border: 0; font-weight: 700;
  box-shadow: 0 10px 22px -12px var(--gold), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.hud__phone.on { color: #071009; }
.hud__objective { border-radius: 14px; backdrop-filter: blur(8px); }
/* the feed replaces the old toast stack and log ticker */
.hud__toasts, .hud__log { display: none !important; }
.hud__hint { bottom: 8px; }

/* ------------------------------------------------------------------ message feed */
.feed {
  position: absolute; right: 14px; bottom: 30px; width: min(340px, 72vw);
  display: flex; flex-direction: column; align-items: stretch; gap: 6px;
  pointer-events: none; z-index: 30;
}
.feed__list {
  display: flex; flex-direction: column; gap: 5px;
  max-height: 46vh; overflow: hidden; padding: 4px 4px 2px;
  border-radius: 18px; transition: background .2s, box-shadow .2s;
  scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--line-hot) 50%, transparent) transparent;
  mask-image: linear-gradient(180deg, transparent 0, #000 22px);
}
.feed:hover .feed__list, .feed--open .feed__list {
  overflow-y: auto; pointer-events: auto; mask-image: none;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  box-shadow: 0 18px 46px -18px #000, inset 0 0 0 1px var(--hair-soft);
  backdrop-filter: blur(12px) saturate(1.2); padding: 10px 8px 6px;
}
.fb {
  display: flex; gap: 7px; align-items: flex-end; max-height: 190px;
  animation: fbpop .42s cubic-bezier(.2, 1.4, .3, 1) both;
  transition: opacity .7s ease, max-height .6s ease, margin .6s ease, transform .6s ease;
  pointer-events: auto; transform-origin: 100% 100%; overflow: hidden; flex: none;
}
@keyframes fbpop { from { opacity: 0; transform: translateY(14px) scale(.7); } to { opacity: 1; transform: none; } }
.fb--old { opacity: 0; max-height: 0; margin-top: -5px; transform: translateY(-6px) scale(.96); pointer-events: none; }
.feed:hover .fb--old, .feed--open .fb--old { opacity: .9; max-height: 190px; margin-top: 0; transform: none; pointer-events: auto; }
.fb__avatar {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #0a0f0b;
  background: linear-gradient(180deg, color-mix(in srgb, var(--k) 85%, #fff), var(--k));
  box-shadow: 0 4px 10px -4px var(--k);
}
.fb--grouped .fb__avatar { visibility: hidden; }
.fb__body {
  position: relative; flex: 1; min-width: 0; border-radius: 18px 18px 18px 5px; padding: 7px 11px 8px;
  background: color-mix(in srgb, #26262b 88%, var(--k) 12%); color: #f2f2f7;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.fb__body::after {
  content: ""; position: absolute; left: -6px; bottom: 0; width: 12px; height: 12px;
  background: radial-gradient(circle at top right, transparent 70%, color-mix(in srgb, #26262b 88%, var(--k) 12%) 72%);
}
.fb--grouped .fb__body { border-bottom-left-radius: 18px; }
.fb--grouped .fb__body::after { display: none; }
.fb--grouped .fb__head { display: none; }
.fb__head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.fb__head b { font-family: var(--ui); font-weight: 700; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--k); }
.fb__head time { font-family: var(--ui); font-size: 8.5px; letter-spacing: .08em; color: rgba(235, 235, 245, .45); }
.fb__text { font-family: var(--ui); font-size: 11.5px; line-height: 1.45; }
.fb--info { --k: #8ab4ff; }
.fb--good { --k: #5be38a; }
.fb--bad { --k: #ff6b5e; }
.fb--gold { --k: #ffd24a; }
.fb--event { --k: #c39bff; }
.fb--good .fb__body { background: linear-gradient(180deg, #2fc566, #1f9d4c); color: #04160a; }
.fb--good .fb__body::after { background: radial-gradient(circle at top right, transparent 70%, #1f9d4c 72%); }
.fb--good .fb__head b, .fb--good .fb__head time { color: rgba(4, 22, 10, .7); }
.fb--sys {
  justify-content: center; max-height: 40px;
  font-family: var(--ui); font-size: 9px; letter-spacing: .12em; color: color-mix(in srgb, var(--dim) 90%, transparent);
}
.fb--sys span { padding: 2px 9px; border-radius: 999px; background: rgba(0, 0, 0, .35); }
.feed__handle {
  align-self: flex-end; pointer-events: auto; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 7px 5px 10px; border-radius: 999px; border: 1px solid var(--hair);
  background: color-mix(in srgb, var(--ink) 78%, transparent); backdrop-filter: blur(8px);
  color: var(--text); font-family: var(--ui); font-weight: 600; font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
}
.feed__handle:hover, .feed--open .feed__handle { border-color: var(--gold); color: #fff; }
.feed__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }
.feed--ping .feed__dot { animation: feedping .9s ease; }
@keyframes feedping { 0% { transform: scale(1); } 30% { transform: scale(1.9); background: var(--gold); } 100% { transform: scale(1); } }
.feed__count {
  min-width: 18px; padding: 1px 6px; border-radius: 999px; text-align: center;
  background: var(--gold); color: #0a0f0b; font-family: var(--display); font-size: 8.5px; letter-spacing: .04em;
}
.thread { bottom: 34px; }

/* ------------------------------------------------------------------ MoPhone chassis */
.phone { width: 360px; height: min(690px, 92vh); }
.phone__shell {
  clip-path: none; border-radius: 52px; padding: 11px;
  box-shadow: inset 0 0 0 1px var(--bezel-line), inset 0 0 0 4px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .7);
}
.phone__shell::before { border-radius: 52px; }
.phone__speaker { position: absolute; top: 19px; left: 50%; transform: translateX(-50%); z-index: 6; margin: 0;
  width: 92px; height: 24px; border-radius: 999px; background: #000; gap: 0; }
.phone__speaker i { display: none; }
.phone__speaker::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3b5a, #05070c 70%); margin-left: 48px; }
.phone__chin { display: none; }
.phone__screen { clip-path: none; border-radius: 42px; overflow: hidden; }
.phone__screen::before { opacity: .18; border-radius: 42px; }
.phone__bar { padding: 15px 28px 6px; background: transparent; border: 0; min-height: 40px; }
.phone__bar .phone__carrier { display: none; }
.phone__body { scrollbar-width: none; }
.phone__body::-webkit-scrollbar { display: none; }
.phone__nav--gesture {
  display: flex; align-items: center; justify-content: center; position: relative;
  border: 0; background: transparent; padding: 6px 0 10px; gap: 0;
}
.phone__nav--gesture button { flex: none; border: 0; background: none; padding: 0; cursor: pointer; }
.phone__homebar { width: 140px; height: 20px; display: grid; place-items: center; }
.phone__homebar i { display: block; width: 124px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .72); transition: width .15s; }
.phone__homebar:hover i { width: 134px; background: #fff; }
.phone__x {
  position: absolute; right: 18px; top: 50%; transform: translateY(-58%);
  width: 26px; height: 26px; border-radius: 50%; font-size: 15px; line-height: 1;
  color: rgba(255, 255, 255, .8) !important; background: rgba(255, 255, 255, .1) !important;
}
.phone__x:hover { background: rgba(255, 90, 90, .35) !important; color: #fff !important; }

/* wallpaper: the skin's glow, a second colour, and grain */
.phone__screen[data-app="home"] {
  background:
    radial-gradient(90% 60% at 15% 10%, color-mix(in srgb, var(--glow) 60%, transparent), transparent 60%),
    radial-gradient(80% 60% at 90% 80%, color-mix(in srgb, var(--violet) 40%, transparent), transparent 62%),
    linear-gradient(180deg, var(--screen-2), var(--screen));
}

/* ------------------------------------------------------------------ home screen */
.mohome { display: flex; flex-direction: column; gap: 14px; padding: 4px 18px 10px; min-height: 100%; }
.mohome__lock { display: flex; flex-direction: column; align-items: center; padding-top: 2px; }
.mohome__time { font-family: var(--display); font-weight: 700; font-size: 46px; letter-spacing: -.01em; color: #fff; line-height: 1; text-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
.mohome__date { font-family: var(--ui); font-weight: 600; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .75); margin-top: 6px; }
.mohome__widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.widget {
  border-radius: 22px; padding: 11px 12px; min-height: 76px;
  background: rgba(255, 255, 255, .1); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: #fff;
  display: flex; gap: 9px; align-items: center;
}
.widget b { display: block; font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .08em; }
.widget em { display: block; font-style: normal; font-family: var(--ui); font-size: 9.5px; line-height: 1.35; color: rgba(255, 255, 255, .72); }
.widget--mo img { width: 42px; height: 42px; border-radius: 14px; object-fit: cover; flex: none; }
.widget--next { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
.widget--next em { font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; }
.widget--next span { font-family: var(--ui); font-size: 9px; color: rgba(255, 255, 255, .6); }
.mohome__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 8px; margin-top: 4px; }
.mohome__signal { margin-top: auto; text-align: center; font-family: var(--ui); font-size: 8.5px; letter-spacing: .14em; color: rgba(255, 255, 255, .5); }
.mohome__dock {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px 12px;
  border-radius: 30px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}

/* app icons */
.appicon { display: flex; flex-direction: column; align-items: center; gap: 5px; background: none; border: 0; padding: 0; cursor: pointer; color: #fff; }
.appicon__tile {
  position: relative; width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--a), var(--b));
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .18);
  transition: transform .14s cubic-bezier(.2, .9, .2, 1), filter .14s;
}
.appicon:hover .appicon__tile { transform: translateY(-2px) scale(1.06); filter: brightness(1.08); }
.appicon:active .appicon__tile { transform: scale(.92); }
.appicon__tile svg { width: 30px; height: 30px; color: #fff; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.appicon--light .appicon__tile svg { color: #222; }
.appicon__name { font-family: var(--ui); font-weight: 600; font-size: 9.5px; letter-spacing: .02em; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); white-space: nowrap; }
.appicon__badge {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; background: #ff3b30; color: #fff;
  font-family: var(--ui); font-weight: 700; font-size: 10px; box-shadow: 0 0 0 2px var(--screen);
}
.appicon__bid { font-family: "Arial Black", var(--display); font-weight: 900; font-size: 19px; letter-spacing: -.06em; }
.appicon__bid i { font-style: normal; }
.appicon__bid i:nth-child(1) { color: #e53238; }
.appicon__bid i:nth-child(2) { color: #0064d2; }
.appicon__bid i:nth-child(3) { color: #f5af02; }
.appicon__date { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.appicon__date em { font-style: normal; font-family: var(--ui); font-weight: 700; font-size: 8px; letter-spacing: .14em; color: #ff3b30; }
.appicon__date b { font-family: var(--ui); font-weight: 600; font-size: 24px; color: #1a1a1a; }

/* service senders wear their app icon in threads */
.svcavatar {
  display: inline-grid; place-items: center; flex: none; border-radius: 30%;
  background: linear-gradient(160deg, var(--a), var(--b)); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.svcavatar svg { width: 64%; height: 64%; }
.svcavatar--light { color: #222; }
.svcavatar .appicon__bid { font-size: 12px; }
.chat__face.svcavatar, .bubble__face.svcavatar, .thread__face.svcavatar { width: 28px; height: 28px; }
.listitem .chat__face.svcavatar { width: 34px; height: 34px; }

/* ------------------------------------------------------------------ branded apps */
.papp { --a: var(--gold); --b: var(--gold-deep); }
.app__header--brand {
  display: flex; align-items: center; gap: 9px; padding: 8px 14px 10px;
  border: 0; border-radius: 0; position: sticky; top: 0; z-index: 3;
  background: linear-gradient(180deg, color-mix(in srgb, var(--b) 55%, var(--screen)), color-mix(in srgb, var(--b) 18%, var(--screen)));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 10px 22px -16px #000;
}
.app__header--brand .app__back { font-size: 26px; line-height: 1; color: #fff; opacity: .85; padding: 0 2px 2px 0; }
.app__header--brand .appicon__tile { width: 34px; height: 34px; border-radius: 10px; }
.app__header--brand .appicon__tile svg { width: 20px; height: 20px; }
.app__header--brand .appicon__bid { font-size: 13px; }
.app__header--brand .appicon__date b { font-size: 15px; }
.app__header--brand .appicon__date em { font-size: 6px; }
.app__brand { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.app__logo { font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .02em; color: #fff; }
.app__brand em { font-style: normal; font-family: var(--ui); font-size: 9px; color: rgba(255, 255, 255, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__kick {
  flex: none; font-family: var(--ui); font-weight: 700; font-size: 8px; letter-spacing: .16em;
  padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff;
}
.papp .app__body { padding: 12px 14px 18px; }
.papp .card, .papp .listitem { border-radius: 16px; border-color: rgba(255, 255, 255, .07); background: rgba(255, 255, 255, .045); }
.papp .btn--primary { background: linear-gradient(180deg, var(--a), color-mix(in srgb, var(--a) 60%, var(--b))); color: #071009; border: 0; }
.papp .btn { border-radius: 999px; }
.papp .app__h { color: color-mix(in srgb, var(--a) 70%, #fff); }

/* Txtr */
.papp--messages .app__header--brand { background: linear-gradient(180deg, #1b2a1f, var(--screen)); }
.papp--messages .chatlist { align-items: center; gap: 10px; }

/* Shale Pay: a card you can almost tap */
.bankcard {
  position: relative; height: 172px; border-radius: 20px; padding: 18px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(43, 210, 196, .55), transparent 55%),
    linear-gradient(135deg, #0d3550, #08192a 60%, #123d3a);
  box-shadow: 0 18px 34px -16px #000, inset 0 0 0 1px rgba(255, 255, 255, .12);
  color: #e9fffb; overflow: hidden;
}
.bankcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .12) 50%, transparent 60%); }
.bankcard--low { background: radial-gradient(120% 90% at 100% 0%, rgba(255, 107, 94, .5), transparent 55%), linear-gradient(135deg, #3a1218, #1a0a0d 60%, #3d1a12); }
.bankcard__chip { position: absolute; left: 18px; top: 46px; width: 34px; height: 25px; border-radius: 6px; background: linear-gradient(135deg, #f4d58a, #b8862c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.bankcard__brand { position: absolute; right: 18px; top: 16px; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .14em; }
.bankcard__brand b { color: #2bd2c4; }
.bankcard__label { position: absolute; left: 18px; top: 16px; font-family: var(--ui); font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.bankcard__bal { position: absolute; left: 66px; top: 42px; font-family: var(--display); font-weight: 700; font-size: 26px; }
.bankcard__num { position: absolute; left: 18px; bottom: 36px; font-family: var(--ui); font-weight: 600; font-size: 13px; letter-spacing: .16em; }
.bankcard__name { position: absolute; left: 18px; bottom: 14px; font-family: var(--ui); font-size: 9px; letter-spacing: .22em; opacity: .7; }

/* LinkedOut / FeedLove profiles */
.profile { display: flex; align-items: center; gap: 12px; padding: 4px 2px; }
.profile b { display: block; font-family: var(--display); font-size: 13px; color: #fff; }
.profile em { display: block; font-style: normal; font-size: 10.5px; color: rgba(255, 255, 255, .7); }
.profile__ring { flex: none; width: 58px; height: 58px; border-radius: 50%; padding: 3px; background: conic-gradient(#5be38a 0 70%, transparent 70%); }
.profile__ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--screen); display: block; }
.profile__open { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; background: #1f6f3c; color: #d6ffe4; font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.papp--jobs .card { background: rgba(61, 155, 255, .08); }
.profile--feed .profile__ring { width: 66px; height: 66px; background: conic-gradient(from 210deg, #ffb3c1, #ff6a86, #a3123a, #ff6a86, #ffb3c1); }
.profile__stats { display: flex; flex: 1; justify-content: space-around; text-align: center; }
.profile__stats span { font-size: 9.5px; color: rgba(255, 255, 255, .7); }
.profile__stats b { font-family: var(--display); font-size: 15px; }
.papp--social .btn--primary { background: linear-gradient(180deg, #ff6a86, #a3123a); color: #fff; }
.post .post__heart { color: #ff3b6b; }
.papp--social .app__header--brand { background: linear-gradient(180deg, rgba(163, 18, 58, .55), rgba(163, 18, 58, .15)), var(--screen); }

/* BidBay: white-label marketplace energy */
.papp--bidbay .app__header--brand { background: linear-gradient(180deg, #f4f5f8, #dfe2ea); }
.papp--bidbay .app__logo { color: #1a1a1a; font-family: "Arial Black", var(--display); letter-spacing: -.04em; }
.papp--bidbay .app__brand em, .papp--bidbay .app__header--brand .app__back { color: #333; }
.papp--bidbay .app__kick { background: #0064d2; }
.papp--bidbay .listitem .name { color: #fff; }
.papp--bidbay .btn--primary { background: #0064d2; color: #fff; }

/* iDread */
.papp--calendar .app__header--brand { background: linear-gradient(180deg, #2a2a2e, var(--screen)); }
.datetile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: end; padding: 12px 14px; border-radius: 18px; background: #fff; color: #111; }
.datetile em { grid-column: 1; font-style: normal; font-weight: 700; font-size: 10px; letter-spacing: .14em; color: #ff3b30; text-transform: uppercase; }
.datetile b { grid-column: 1; font-family: var(--ui); font-weight: 600; font-size: 44px; line-height: .95; }
.datetile span { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 11px; color: #444; }

/* GrubHope */
.promo { border-radius: 16px; padding: 12px 14px; background: linear-gradient(120deg, #ffae3d, #ff4d2e); color: #2a0b02; }
.promo b { display: block; font-family: var(--display); font-size: 14px; }
.promo span { font-size: 10.5px; }
.listitem--food { align-items: center; gap: 10px; }

/* Pocket Lint: inventory as tiles */
.list--tiles { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
.listitem--tile { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; }
.listitem--tile .itemicon { width: 46px; height: 46px; }
.listitem--tile .grow { width: 100%; }
.listitem--tile .btn { align-self: stretch; }
.papp--inventory .app__header--brand { background: linear-gradient(180deg, #4a3016, var(--screen)); }

/* Landlordly: a thermostat that counts down to rent */
.dial { position: relative; width: 168px; height: 168px; margin: 4px auto 2px; }
.dial__ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 220deg, #ffb35c 0, #ff7a59 calc(var(--f) * 280deg), rgba(255, 255, 255, .08) calc(var(--f) * 280deg) 280deg, transparent 280deg); }
.dial__face { position: absolute; inset: 12px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at 50% 30%, #2d2220, #120c0b); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 26px -10px #000; }
.dial__face b { font-family: var(--display); font-weight: 700; font-size: 44px; color: #fff; line-height: 1; }
.dial__face em { font-style: normal; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.dial--late .dial__face b { color: #ff5a4a; animation: dialpulse 1.2s ease-in-out infinite; }
@keyframes dialpulse { 50% { opacity: .45; } }

/* Blessed+ */
.stream { display: flex; gap: 10px; align-items: center; position: relative; padding: 10px; border-radius: 16px; background: linear-gradient(120deg, rgba(106, 43, 176, .55), rgba(255, 216, 107, .25)); }
.stream img { width: 64px; height: 48px; object-fit: cover; border-radius: 10px; }
.stream b { display: block; font-size: 11px; color: #fff; }
.stream em { display: block; font-style: normal; font-size: 9.5px; color: rgba(255, 255, 255, .72); }
.stream__live { position: absolute; left: 14px; top: 6px; z-index: 1; padding: 0 5px; border-radius: 4px; background: #ff3b30; color: #fff; font-size: 8px; font-weight: 700; letter-spacing: .1em; }

/* Tweaks: grouped iOS-ish */
.papp--system .app__header--brand { background: linear-gradient(180deg, #2c3036, var(--screen)); }

/* ------------------------------------------------------------------ item art */
.itemicon {
  display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px;
  /* the reference-sheet card: a lit green panel with a pale rim, so the dark outlines read */
  background: radial-gradient(circle at 50% 38%, #4e7a58, #23412c 72%);
  box-shadow: inset 0 0 0 1px rgba(170, 230, 170, .35), 0 1px 0 rgba(0, 0, 0, .4);
}
.itemicon svg { width: 80%; height: 80%; }

/* ------------------------------------------------------------------ shop menu board */
.shopmenu, .fridge {
  position: absolute; inset: 0; z-index: 42; display: grid; place-items: center; padding: 18px;
  background: radial-gradient(circle at 50% 40%, rgba(5, 6, 6, .45), rgba(2, 3, 3, .86));
  animation: fadein .18s ease;
}
@keyframes fadein { from { opacity: 0; } }
.shopmenu__board, .fridge__door {
  width: min(860px, 96vw); max-height: 92vh; overflow: auto; border-radius: 24px; padding: 18px 20px 16px;
  background: linear-gradient(180deg, rgba(20, 17, 14, .96), rgba(10, 9, 8, .97));
  box-shadow: 0 30px 70px -20px #000, inset 0 0 0 1px rgba(255, 255, 255, .08);
  animation: boardin .3s cubic-bezier(.2, 1.2, .3, 1);
}
@keyframes boardin { from { transform: translateY(18px) scale(.97); opacity: 0; } }
.shopmenu__head { display: flex; align-items: center; gap: 14px; }
.shopmenu__owner { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; box-shadow: 0 0 0 2px var(--shop-a, var(--gold)); }
.shopmenu__title { flex: 1; min-width: 0; }
.shopmenu__kicker, .fridge__kicker { font-family: var(--ui); font-weight: 700; font-size: 9px; letter-spacing: .3em; color: var(--shop-a, var(--gold)); }
.shopmenu__title h2, .fridge__head h2 { font-family: var(--display); font-weight: 800; font-size: 24px; color: #fff; margin: 2px 0 4px; }
.shopmenu__say { font-family: var(--ui); font-size: 12px; color: #e9dcc6; margin: 0; padding: 6px 11px; border-radius: 14px 14px 14px 4px; background: rgba(255, 255, 255, .07); display: inline-block; }
.shopmenu__cash { text-align: right; }
.shopmenu__cash em { display: block; font-style: normal; font-family: var(--ui); font-size: 8.5px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.shopmenu__cash b { font-family: var(--display); font-size: 20px; color: var(--good); }
.shopmenu__x, .fridge__x { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; font-size: 18px; color: #fff; background: rgba(255, 255, 255, .1); }
.shopmenu__x:hover, .fridge__x:hover { background: rgba(255, 90, 90, .4); }
.shopmenu__blurb { font-family: var(--ui); font-size: 11.5px; color: rgba(255, 255, 255, .6); margin: 12px 0; }
.shopmenu__halal { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #1f6f3c; color: #d6ffe4; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.shopmenu__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; }
.menucard {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; text-align: left;
  padding: 14px 13px 12px; border-radius: 18px; cursor: pointer; border: 0; color: #fff; font-family: var(--ui);
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 24px -16px #000;
  transform: rotate(var(--tilt)); transition: transform .16s cubic-bezier(.2, .9, .2, 1), box-shadow .16s, background .16s;
}
.menucard:hover { transform: rotate(0) translateY(-3px); box-shadow: inset 0 0 0 1px var(--shop-a, var(--gold)), 0 18px 30px -16px #000; background: rgba(255, 255, 255, .1); }
.menucard:active { transform: scale(.97); }
.menucard .itemicon { width: 70px; height: 70px; border-radius: 18px; align-self: center; margin-bottom: 2px; }
.menucard__price {
  position: absolute; right: 10px; top: 10px; padding: 2px 9px; border-radius: 999px;
  background: var(--shop-a, var(--gold)); color: #120a04; font-family: var(--display); font-weight: 700; font-size: 11px;
}
.menucard__name { font-size: 13px; font-weight: 700; }
.menucard__note { font-size: 10px; color: rgba(255, 255, 255, .55); line-height: 1.35; }
.menucard__chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.chip { font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .04em; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.chip--good { background: rgba(91, 227, 138, .18); color: #9ff5bd; }
.chip--bad { background: rgba(255, 107, 94, .18); color: #ffb3aa; }
.chip--warm { background: rgba(255, 154, 60, .2); color: #ffc48c; }
.menucard__stamp {
  position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%) rotate(-14deg) scale(1.6); opacity: 0;
  padding: 3px 10px; border: 2px solid var(--good); border-radius: 8px; color: var(--good);
  font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .16em; pointer-events: none;
}
.menucard--bagged .menucard__stamp { animation: stamp .9s ease forwards; }
@keyframes stamp { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-14deg) scale(1.8); } 18% { opacity: 1; transform: translate(-50%, -50%) rotate(-14deg) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; } }
.menucard--broke { opacity: .38; filter: grayscale(.6); cursor: not-allowed; }
.menucard--nope { animation: nope .3s; }
@keyframes nope { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.shopmenu__foot, .fridge__foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-family: var(--ui); font-size: 10px; color: rgba(255, 255, 255, .5); }
.shopmenu__foot span, .fridge__foot span { flex: 1; }
.shopmenu--bodega { --shop-a: #ffb13b; }
.shopmenu--bodega .shopmenu__board { background: linear-gradient(180deg, rgba(34, 18, 10, .97), rgba(14, 9, 6, .98)); }
.shopmenu--habibs { --shop-a: #5fd18b; }
.shopmenu--habibs .shopmenu__board { background: linear-gradient(180deg, rgba(10, 28, 22, .97), rgba(6, 14, 11, .98)); }

/* ------------------------------------------------------------------ fridge door */
.fridge__door { width: min(720px, 96vw); background: linear-gradient(180deg, rgba(232, 240, 244, .97), rgba(196, 210, 218, .97)); color: #12202a; }
.fridge__head { display: flex; align-items: center; gap: 12px; }
.fridge__head > div { flex: 1; }
.fridge__head h2 { color: #0d1a22; }
.fridge__kicker { color: #3a7ca5; }
.fridge__hum { font-family: var(--ui); font-size: 10px; color: #4b6272; }
.fridge__x { color: #12202a; background: rgba(0, 0, 0, .08); }
.fridge__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.fridge__col { border-radius: 18px; padding: 12px; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); display: flex; flex-direction: column; gap: 8px; }
.fridge__col--cold { background: linear-gradient(180deg, rgba(214, 238, 255, .9), rgba(240, 248, 255, .8)); box-shadow: inset 0 0 0 1px rgba(58, 124, 165, .25), inset 0 12px 24px -16px rgba(58, 124, 165, .5); }
.fridge__col h3 { margin: 0 0 2px; font-family: var(--ui); font-weight: 700; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: #3a5566; }
.fridge__item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: #fff; box-shadow: 0 6px 14px -10px rgba(0, 0, 0, .5); }
.fridge__item .itemicon { background: radial-gradient(circle at 50% 38%, #f4f7f9, #cfd8de 75%); }
.fridge__meta { flex: 1; min-width: 0; font-family: var(--ui); }
.fridge__meta b { display: block; font-size: 11.5px; }
.fridge__meta em { font-style: normal; color: #3a7ca5; }
.fridge__meta span { font-size: 9.5px; color: #5c6f7c; }
.fridge__btns { display: flex; flex-direction: column; gap: 4px; }
.fridge .btn { border-radius: 999px; color: #12202a; border-color: rgba(0, 0, 0, .15); background: rgba(0, 0, 0, .05); }
.fridge .btn--primary { background: #3a7ca5; color: #fff; border: 0; }
.fridge__empty { font-family: var(--ui); font-size: 11px; color: #6a7c88; padding: 14px 4px; text-align: center; }
.fridge__foot { color: #4b6272; }

/* ------------------------------------------------------------------ daily report */
.summary { display: flex; flex-direction: column; gap: 4px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); }

@media (max-width: 720px) {
  .fridge__cols { grid-template-columns: 1fr; }
  .phone { width: min(360px, 94vw); }
}

/* ------------------------------------------------------------------ Rolo: thread + WAP app */
.chatlist--pinned { box-shadow: inset 3px 0 0 #9bbc0f; }
.pill--live { color: #0f380f; background: #9bbc0f; border-color: #9bbc0f; font-weight: 700; }
.chat__typing { display: inline-flex; gap: 4px; padding: 10px 12px; }
.chat__typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); animation: typing 1s infinite; }
.chat__typing i:nth-child(2) { animation-delay: .15s; }
.chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-3px); opacity: 1; } }
.chat__chip:disabled { opacity: .35; cursor: default; }
.ordercard {
  border-radius: 12px; padding: 9px 11px; display: flex; flex-direction: column; gap: 3px;
  background: rgba(155, 188, 15, .1); box-shadow: inset 0 0 0 1px rgba(155, 188, 15, .35); font-size: 11px;
}
.ordercard--waiting { animation: orderpulse 1.6s ease-in-out infinite; }
@keyframes orderpulse { 50% { box-shadow: inset 0 0 0 1px #9bbc0f, 0 0 14px rgba(155, 188, 15, .35); } }

/* a 1999 WAP page: one bitmap-ish font, four greens, numbered links */
.papp--rolo .app__header--brand { background: #0f380f; }
.papp--rolo .app__body { padding: 8px; }
.wap {
  font-family: "Courier New", ui-monospace, monospace; font-size: 11px; line-height: 1.35;
  color: #0f380f; background: #9bbc0f; border: 2px solid #306230; border-radius: 4px;
  padding: 6px 7px 8px; display: flex; flex-direction: column; gap: 5px;
  box-shadow: inset 0 0 0 2px #8bac0f, 0 8px 20px -10px #000; image-rendering: pixelated;
  text-shadow: 1px 0 0 rgba(15, 56, 15, .25);
}
.wap__bar { display: flex; justify-content: space-between; align-items: center; background: #0f380f; color: #9bbc0f; padding: 1px 5px; font-weight: 700; letter-spacing: .06em; }
.wap__bar--foot { margin-top: 2px; }
.wap__blink { animation: wapblink 1s steps(1) infinite; }
@keyframes wapblink { 50% { opacity: 0; } }
.wap__h { font-weight: 700; text-align: center; letter-spacing: .08em; margin-top: 3px; }
.wap__p { font-size: 10px; }
.wap__item {
  display: grid; grid-template-columns: 1fr auto; gap: 0 6px; text-align: left; cursor: pointer;
  font: inherit; color: inherit; background: transparent; border: 1px dashed #306230; padding: 3px 5px;
}
.wap__item em { grid-column: 1 / -1; font-style: normal; font-size: 9.5px; color: #306230; }
.wap__item.on { background: #0f380f; color: #9bbc0f; border-style: solid; }
.wap__item.on em { color: #8bac0f; }
.wap__qty { display: flex; align-items: center; gap: 8px; }
.wap__qty b { font-size: 15px; min-width: 16px; text-align: center; }
.wap__total { border-top: 2px solid #306230; padding-top: 4px; }
.wap__total b { font-size: 14px; }
.wap__err { background: #0f380f; color: #e0f8d0; padding: 2px 5px; font-weight: 700; }
.wap__btn, .wap__link {
  font: inherit; font-weight: 700; color: #9bbc0f; background: #306230; border: 0; padding: 3px 8px; cursor: pointer; border-radius: 0;
}
.wap__btn:hover:not(:disabled), .wap__link:hover { background: #0f380f; }
.wap__btn:disabled { opacity: .45; cursor: default; }
.wap__btn--go { padding: 6px; font-size: 12px; }
.wap__hist { display: flex; justify-content: space-between; font-size: 10px; border-bottom: 1px dotted #306230; }
.wap .ordercard { background: #8bac0f; color: #0f380f; box-shadow: inset 0 0 0 2px #306230; border-radius: 0; }
.wap .ordercard .mono-dim { color: #306230; }
.wap .pill--live { background: #0f380f; color: #9bbc0f; }

/* ------------------------------------------------------------------ map: minimap + overlay */
.minimap {
  display: block; width: 100%; margin-top: 9px; padding: 6px 7px 7px;
  border-radius: 12px; border: 1px solid var(--hair-soft); cursor: pointer; pointer-events: auto;
  background: rgba(0, 0, 0, .28); text-align: left;
  font-family: var(--ui); color: var(--text);
}
.minimap:hover { border-color: var(--gold); }
.minimap:empty { display: none; }
.minimap__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.minimap__head b { font-family: var(--display); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.minimap__head span { font-size: 8px; letter-spacing: .16em; color: var(--dim); }
.minimap .mapsvg { display: block; width: 100%; height: auto; max-height: 120px; border-radius: 8px; image-rendering: pixelated; }
.mapping { animation: mapping 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes mapping { 50% { opacity: .35; } }

.mapview {
  position: absolute; inset: 0; z-index: 44; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(circle at 50% 40%, rgba(5, 7, 8, .55), rgba(2, 3, 3, .9));
  animation: fadein .16s ease;
}
.mapview__panel {
  width: min(1040px, 96vw); max-height: 94vh; overflow: auto; border-radius: 18px; padding: 14px 16px 12px;
  background: linear-gradient(180deg, #1a1f22, #0e1113); color: #e8e4d4;
  box-shadow: 0 30px 70px -20px #000, inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 0 4px #0a0c0d, inset 0 0 0 5px rgba(255, 210, 74, .25);
  font-family: var(--ui);
}
.mapview__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mapview__head > div { flex: 1; }
.mapview__kicker { font-weight: 700; font-size: 9px; letter-spacing: .32em; color: #ffd24a; }
.mapview__head h2 { margin: 2px 0 0; font-family: var(--display); font-size: 20px; color: #fff; }
.mapview__x { width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer; font-size: 17px; color: #fff; background: rgba(255, 255, 255, .1); }
.mapview__x:hover { background: rgba(255, 90, 90, .4); }
.mapview__main .mapsvg { display: block; width: 100%; height: auto; max-height: 66vh; border-radius: 10px; box-shadow: inset 0 0 0 2px #0a0c0d; }
.mapview__inset { margin-top: 10px; }
.mapview__inset span { display: block; font-size: 9px; font-weight: 700; letter-spacing: .24em; color: #ffd24a; margin-bottom: 4px; }
.mapview__inset .mapsvg { display: block; width: 100%; height: auto; max-height: 92px; border-radius: 8px; }
.mapview__main .mapsvg { margin: 0 auto; }
.mapview__legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 10px; font-size: 10px; letter-spacing: .08em; color: #cfc8b4; }
.mapview__hint { margin-left: auto; color: #8a8a7a; }
.lg { display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; border-radius: 2px; }
.lg--mo { background: #ffd24a; clip-path: polygon(100% 50%, 0 0, 30% 50%, 0 100%); }
.lg--door { background: #f6e2a0; }
.lg--spot { background: #1c2226; box-shadow: inset 0 0 0 2px #8fb0b8; border-radius: 50%; }
.lg--rolo { background: #9bbc0f; border-radius: 50%; }

/* ------------------------------------------------------------------ the trajectory */
.traj { font-family: var(--display); font-weight: 700; letter-spacing: .08em; }
.traj--climbing { color: var(--good); }
.traj--sliding { color: var(--bad); }
.traj--holding { color: var(--gold); }
.traj--findingitslevel { color: var(--dim); }
.chatlist--clinic { align-items: center; gap: 10px; box-shadow: inset 3px 0 0 #7fd1ae; }
.debtcard { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 45%, transparent); }

/* ---------------------------------------------------------------- fade + debug */
/* The collapse fade: above the HUD and the phone, under nothing. */
.fadeout {
  position: absolute;
  inset: 0;
  z-index: 70;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .42s ease;
}
.fadeout.on { opacity: 1; }

/* The Afterglow pill in the objective panel. */
.hud__afterglow {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 6px;
  border: 1px solid #ff6b8a;
  border-radius: 3px;
  color: #ffb3c6;
  background: rgba(138, 31, 74, .28);
  letter-spacing: .12em;
  font-size: 10px;
}

/* The hidden debug menu (tilde, then the password). Retro console, not modern devtools. */
.debug-prompt {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: start center;
  padding-top: 18vh;
  background: rgba(0, 0, 0, .35);
}
.debug-prompt__box {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  min-width: 240px;
  border: 2px solid #5a6a4a;
  background: #0b0f0a;
  box-shadow: 0 0 0 2px #000, 0 8px 24px rgba(0, 0, 0, .6);
  font-family: var(--font-mono, 'Chakra Petch', monospace);
}
.debug-prompt__box label {
  color: #9bbc0f;
  font-size: 10px;
  letter-spacing: .28em;
}
.debug-prompt__box input {
  background: #060806;
  border: 1px solid #3a4a2e;
  color: #d8f0b0;
  padding: 6px 8px;
  font: inherit;
  letter-spacing: .2em;
  outline: none;
}
.debug-prompt__box input:focus { border-color: #9bbc0f; }

.debug {
  position: absolute;
  inset: 0;
  z-index: 75;
  display: grid;
  place-items: center;
  background: rgba(2, 4, 3, .82);
  padding: 3vh 2vw;
}
.debug__panel {
  width: min(1080px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border: 2px solid #46603a;
  background: #080b08;
  box-shadow: 0 0 0 2px #000, 0 18px 40px rgba(0, 0, 0, .65);
  color: #cfe3c0;
  font-family: var(--font-mono, 'Chakra Petch', monospace);
  font-size: 12px;
}
.debug__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #2c3a26;
  background: #0e140c;
  color: #9bbc0f;
  letter-spacing: .18em;
}
.debug__head span { margin-left: auto; color: #5c7050; letter-spacing: .1em; font-size: 10px; }
.debug__x {
  background: none; border: 1px solid #46603a; color: #cfe3c0;
  width: 22px; height: 22px; line-height: 1; cursor: pointer;
}
.debug__body { overflow: auto; padding: 10px 12px 16px; }
.debug__grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.debug section h4 {
  margin: 4px 0 6px;
  padding-bottom: 3px;
  color: #ffd24a;
  border-bottom: 1px dashed #33402a;
  font-size: 11px;
  letter-spacing: .22em;
}
.debug__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 3px 0;
}
.debug__row > span:first-child { min-width: 92px; color: #8fa682; }
.debug__row b { min-width: 44px; color: #e8f6d8; }
.debug__row small { color: #6f8663; }
.debug__row button, .debug__row select {
  background: #101710;
  border: 1px solid #3a4a2e;
  color: #cfe3c0;
  padding: 3px 7px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  letter-spacing: .04em;
}
.debug__row button:hover { background: #1b2a1a; border-color: #9bbc0f; color: #eaffd8; }
/* a cheat that is currently switched on: it has to be legible at a glance from across the panel */
.debug__row button.on { background: #1b2a1a; border-color: #9bbc0f; color: #eaffd8; box-shadow: inset 0 0 0 1px #9bbc0f33; }
.debug__row select { max-width: 190px; }
.debug__num { width: 64px; font: inherit; background: #0d140c; color: #d8f0c8; border: 1px solid #3a5a2a; padding: 2px 4px; }
.debug__note { color: #7f9470; font-size: 10.5px; line-height: 1.5; }
/* the state dump: a plain selectable block, so it is copyable even when the clipboard API says no */
.debug__dump { margin-top: 6px; }
.debug__dump textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  background: #0b1109;
  border: 1px solid #2f4026;
  color: #a9c39a;
  font: inherit;
  font-size: 10.5px;
  line-height: 1.4;
  padding: 5px 6px;
  white-space: pre;
  overflow: auto;
}
.debug__dump textarea:focus { border-color: #9bbc0f; outline: none; }
/* the last exception is the first thing to read in a report, so it gets a colour of its own */
.debug__note--err { color: #d8a15c; }
/* the diff since the last kept dump: a short list, not another block to scroll through */
.debug__changes {
  margin: 0;
  padding: 4px 8px 5px 22px;
  max-height: 150px;
  overflow: auto;
  background: #0b1109;
  border: 1px solid #2f4026;
  color: #a9c39a;
  font: inherit;
  font-size: 10.5px;
  line-height: 1.45;
}
.debug__changes li { white-space: pre-wrap; }
.debug__changes li::marker { color: #5f7550; }
@media (max-width: 700px) {
  .debug { padding: 1vh 1vw; }
  .debug__grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ FeedLove hearts (dating) */
.feedtabs { display: flex; gap: 6px; margin-bottom: 4px; }
.feedtabs button { flex: 1; border: 0; border-radius: 999px; padding: 6px 0; cursor: pointer; font-family: var(--ui); font-weight: 700; font-size: 10px; letter-spacing: .14em; color: #ffd0da; background: rgba(255, 106, 134, .12); }
.feedtabs button.on { background: linear-gradient(180deg, #ff6a86, #a3123a); color: #fff; }
.feedtabs button.feedtabs__hearts:not(.on) { box-shadow: inset 0 0 0 1px #ff6a86; color: #fff; }
.card.dfind { display: block; width: 100%; text-align: left; cursor: pointer; border: 1px solid #ff6a86; background: linear-gradient(180deg, #ff6a86, #a3123a); color: #fff; font-family: var(--ui); }
.dfind b { display: block; font-size: 12px; margin-bottom: 2px; }
.card.dfind:hover { filter: brightness(1.12); }
.dprof { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, .045); }
.dprof__img { flex: none; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #ff6a86; }
.dprof__img--anon { display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 18px; color: #fff; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--t) 70%, #fff), var(--t)); box-shadow: 0 0 0 2px rgba(255, 255, 255, .15); }
.dprof .meta { font-size: 10px; line-height: 1.35; }
.dprof__res { display: inline-block; margin-top: 3px; padding: 0 7px; border-radius: 999px; font-size: 9px; font-weight: 700; letter-spacing: .06em; background: rgba(255, 255, 255, .1); color: #cfc8d4; }
.dprof__res--no { background: rgba(255, 90, 90, .18); color: #ffb3aa; }
.dprof__res--match { background: #ff6a86; color: #fff; }
.dmatch { align-items: center; gap: 8px; }
.dnote { font-size: 11px; color: #ffe0e6; box-shadow: inset 3px 0 0 #ff6a86; }
.lwhere { margin-top: 4px; color: #ffd0da; }
.lsched summary { cursor: pointer; color: #ff9ab0; margin-top: 2px; }
.lsched div { padding-left: 8px; }

/* ------------------------------------------------------------------ FeedLove timeline */
.profile__stat { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.profile__stat b { display: block; }
.fcompose { display: flex; gap: 6px; margin: 6px 0; }
.fcompose input { flex: 1; min-width: 0; border: 1px solid rgba(255, 106, 134, .45); border-radius: 999px; background: rgba(0, 0, 0, .35); color: #fff; padding: 7px 12px; font-family: var(--ui); font-size: 11px; }
.fcompose input:focus { outline: none; border-color: #ff6a86; box-shadow: 0 0 0 2px rgba(255, 106, 134, .25); }
.fpost { padding: 9px 10px; margin: 6px 0; border-radius: 14px; background: rgba(255, 255, 255, .045); }
.fpost--mine { background: rgba(255, 106, 134, .1); }
.fpost__head { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.fpost__head em { font-style: normal; opacity: .55; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fpost__head span { margin-left: auto; opacity: .55; font-size: 10px; white-space: nowrap; }
.fpost__face { flex: none; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px #ff6a86; }
.fpost__face--brand { display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; background: var(--c); }
.fpost__text { margin: 5px 0; font-size: 12px; line-height: 1.35; }
.fpost__img { border-radius: 10px; overflow: hidden; margin: 4px 0; aspect-ratio: 16 / 10; background: #111; }
.fpost__img img { width: 100%; height: 100%; display: block; object-fit: cover; image-rendering: pixelated; filter: saturate(.85) contrast(1.05); }
.fpost__img--selfie { aspect-ratio: 4 / 3; }
.fpost__meta { font-size: 10px; opacity: .8; }
.fpost__like { border: 0; border-radius: 999px; padding: 3px 9px; cursor: pointer; font: inherit; color: #ffd0da; background: rgba(255, 106, 134, .12); }
.fpost__like.on { color: #fff; background: linear-gradient(180deg, #ff6a86, #a3123a); }
.feedtabs button { font-size: 9px; letter-spacing: .08em; }

/* ------------------------------------------------------------------ NextStoop */
.feedtabs--stoop button { color: #d8f0c8; background: rgba(143, 208, 106, .12); }
.feedtabs--stoop button.on { background: linear-gradient(180deg, #8fd06a, #2a5a3a); color: #fff; }
.nstoop { padding: 9px 10px; margin: 6px 0; border-radius: 12px; background: rgba(143, 208, 106, .07); border-left: 3px solid #8fd06a; font-size: 12px; line-height: 1.35; }
.nstoop__who { font-weight: 700; font-size: 11px; margin-bottom: 2px; }
.nstoop__who span { font-weight: 400; opacity: .6; }
.nstoop__cat { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #8fd06a; }
.nstoop--lore summary { cursor: pointer; }
.nstoop--lore div { margin-top: 5px; opacity: .9; }

.chat__day { text-align: center; font-size: 9px; letter-spacing: .16em; opacity: .5; margin: 10px 0 4px; }

/* ------------------------------------------------------------------ HardLuck Bet */
.feedtabs--cas button { color: #ffe9a0; background: rgba(255, 210, 58, .12); }
.feedtabs--cas button.on { background: linear-gradient(180deg, #ffd23a, #b8860b); color: #2a0a3a; }
.cas__promo { text-align: center; font-size: 10px; letter-spacing: .1em; color: #2a0a3a; background: linear-gradient(90deg, #ffd23a, #ff8a3a); border: 0; }
.cas__table { margin: 8px 0; padding: 12px; border-radius: 16px; background: radial-gradient(circle at 50% 20%, #2a6a3a, #0e2a16); box-shadow: inset 0 0 0 2px rgba(255, 210, 58, .35); text-align: center; }
.cas__slots { display: flex; justify-content: center; gap: 8px; margin: 6px 0 10px; }
.cas__reel { width: 54px; height: 64px; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #b8121a; background: linear-gradient(180deg, #fff, #d8d4cc); border-radius: 8px; box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .25), 0 0 0 2px #ffd23a; }
.cas__msg { font-family: var(--display); font-size: 12px; letter-spacing: .06em; color: #ffe9a0; margin: 6px 0 10px; min-height: 16px; }
.cas__bets { display: flex; justify-content: center; gap: 6px; margin-bottom: 8px; }
.cas__bets button { border: 0; border-radius: 999px; padding: 5px 10px; font-weight: 700; cursor: pointer; color: #ffe9a0; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1.5px #ffd23a; }
.cas__bets button.on { color: #2a0a3a; background: #ffd23a; }
.cas__bets button:disabled { opacity: .35; cursor: default; }
.cas__go { width: 100%; }
.cas__hand { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 6px 0; flex-wrap: wrap; }
.cas__hand em { font-style: normal; font-size: 10px; color: #cfe8d0; width: 100%; }
.cas__card { width: 30px; height: 42px; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #1a1a1a; background: #f8f4ea; border-radius: 5px; box-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.cas__card.red { color: #c8121a; }
.cas__card--back { color: #ffd23a; background: repeating-linear-gradient(45deg, #5a1a8a 0 4px, #3a0a6a 4px 8px); }
.cas__wheel { width: 76px; height: 76px; margin: 4px auto 8px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 800; color: #fff; background: conic-gradient(#b8121a 0 10%, #111 10% 20%, #b8121a 20% 30%, #111 30% 40%, #1a8a3a 40% 45%, #b8121a 45% 55%, #111 55% 65%, #b8121a 65% 75%, #111 75% 85%, #b8121a 85% 95%, #1a8a3a 95% 100%); box-shadow: 0 0 0 4px #ffd23a; }
.cas__wheel--red { background: #b8121a; }
.cas__wheel--black { background: #111; }
.cas__wheel--green { background: #1a8a3a; }
.cas__red { background: #b8121a !important; color: #fff !important; }
.cas__black { background: #111 !important; color: #fff !important; }
.cas__green { background: #1a8a3a !important; color: #fff !important; }

/* ------------------------------------------------------------------ TradeHarder */
.feedtabs--inv button { color: #c8f0d0; background: rgba(90, 224, 122, .12); }
.feedtabs--inv button.on { background: linear-gradient(180deg, #5ae07a, #0a6a3a); color: #04140a; }
.inv__sum { font-size: 10px; text-align: center; }
.inv__row { display: grid; grid-template-columns: 1fr 60px auto; gap: 4px 8px; align-items: center; padding: 8px; margin: 5px 0; border-radius: 12px; background: rgba(255, 255, 255, .04); font-size: 11px; }
.inv__row .grow { grid-column: 1 / -1; }
.inv__spark { width: 60px; height: 20px; }
.inv__px { display: flex; flex-direction: column; align-items: flex-end; font-size: 10px; }
.inv__btns { display: flex; gap: 4px; justify-content: flex-end; }
.inv__prop { font-size: 11px; }
.good { color: #5ae07a; } .bad { color: #ff5a5a; }
/* ------------------------------------------------------------------ Amazin' */
.shop__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.shop__item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px; border-radius: 10px; background: rgba(255, 255, 255, .05); text-align: center; }
.shop__item .itemicon, .shop__item svg { width: 34px; height: 34px; }
/* ------------------------------------------------------------------ MeTube */
.tube__vid { all: unset; cursor: pointer; display: flex; gap: 8px; padding: 6px; margin: 4px 0; border-radius: 8px; background: rgba(255, 255, 255, .04); width: calc(100% - 12px); }
.tube__thumb { position: relative; flex: none; width: 86px; height: 52px; border-radius: 4px; background: linear-gradient(135deg, var(--c), #111); display: grid; place-items: center; color: #fff; }
.tube__thumb em { position: absolute; right: 3px; bottom: 2px; font-style: normal; font-size: 8px; background: rgba(0, 0, 0, .7); padding: 0 2px; }
.tube__meta { display: flex; flex-direction: column; gap: 1px; font-size: 11px; }
/* ------------------------------------------------------------------ Kestrel Underground */
.bbs__thread { all: unset; cursor: pointer; display: flex; flex-direction: column; padding: 7px 9px; margin: 4px 0; border-left: 3px solid #9aa3ad; background: rgba(255, 255, 255, .04); font-size: 11px; width: calc(100% - 21px); font-family: var(--mono, monospace); }
.bbs__op { padding: 8px; background: rgba(255, 255, 255, .06); font-family: var(--mono, monospace); font-size: 12px; margin: 6px 0; }
.bbs__reply { padding: 6px 8px; margin: 3px 0 3px 10px; border-left: 2px solid #4a525a; font-family: var(--mono, monospace); font-size: 11px; }
.bbs__reply--mine { border-left-color: #5ae07a; }
/* ------------------------------------------------------------------ DialUpDelights */
.xxx__warn { font-size: 10px; text-align: center; color: #ffd0ea; border-color: #ff5ab0; }
.xxx__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.xxx__tile { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.xxx__mosaic { display: grid; grid-template-columns: repeat(6, 1fr); width: 100%; aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 2px #ff5ab0; }
.xxx__mosaic i { display: block; }
/* ------------------------------------------------------------------ the laptop */
.laptop-wrap { position: absolute; inset: 0; display: grid; place-items: center; z-index: 60; background: rgba(0, 0, 0, .55); }
.laptop { width: min(820px, 94vw); }
.laptop__lid { background: #2a2c30; border-radius: 14px 14px 4px 4px; padding: 14px 14px 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6), inset 0 0 0 2px #3a3d42; }
.laptop__screen { position: relative; height: min(520px, 68vh); border-radius: 4px; overflow: hidden; background: #0e1012; box-shadow: inset 0 0 0 2px #000; display: flex; flex-direction: column; }
.laptop__screen .phone__body { flex: 1; overflow-y: auto; }
.laptop__bar { display: flex; align-items: center; gap: 8px; padding: 4px 8px; font-size: 10px; color: #cfd4da; background: linear-gradient(180deg, #3a5a8a, #1a2a4a); }
.laptop__bar button { all: unset; cursor: pointer; padding: 1px 8px; background: #c8c8c8; color: #111; border-radius: 2px; font-weight: 700; }
.laptop__base { height: 18px; margin: 0 -4%; border-radius: 0 0 16px 16px; background: linear-gradient(180deg, #3a3d42, #1a1c1f); }
.papp--web .app__body { padding: 16px; }
.web__bar { display: flex; gap: 10px; align-items: center; padding: 5px 8px; font-size: 10px; background: #c8c8c8; color: #111; }
.web__url { flex: 1; background: #fff; padding: 2px 6px; border: 1px solid #888; font-family: monospace; }
.web__logo { font-size: 26px; font-weight: 800; color: #5ab0ff; text-align: center; margin: 14px 0 4px; font-family: Georgia, serif; }
.web__logo em { font-size: 11px; color: #9aa3ad; font-style: normal; }
.web__search input { width: 100%; padding: 6px; margin-bottom: 14px; }
.web__marks { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-bottom: 12px; }
.web__mark { all: unset; cursor: pointer; display: flex; flex-direction: column; padding: 10px; border-radius: 6px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); font-size: 12px; }
.web__mark span { font-size: 9px; color: #5ab0ff; text-decoration: underline; }
.web__mark:hover { background: rgba(90, 176, 255, .15); }

/* ------------------------------------------------------------------ the fight meter */
.fightm { position: absolute; inset: 0; display: grid; place-items: end center; padding-bottom: 12vh; z-index: 70; pointer-events: none; }
.fightm__box { pointer-events: auto; width: min(420px, 90vw); padding: 14px 16px; border-radius: 16px; background: rgba(12, 10, 10, .92); box-shadow: 0 0 0 2px #c8121a, 0 18px 50px rgba(0, 0, 0, .6); text-align: center; color: #f2e8e8; }
.fightm__title { font-family: var(--display); font-size: 18px; letter-spacing: .3em; color: #ff4a4a; }
.fightm__hp { font-size: 11px; margin: 4px 0 10px; }
.fightm__bar { position: relative; height: 18px; border-radius: 9px; background: #2a1a1a; overflow: hidden; margin-bottom: 10px; box-shadow: inset 0 0 0 1px #5a2a2a; }
.fightm__zone { position: absolute; left: 40%; width: 20%; top: 0; bottom: 0; background: rgba(90, 224, 122, .45); }
.fightm__mark { position: absolute; top: -2px; bottom: -2px; width: 5px; margin-left: -2px; background: #fff; box-shadow: 0 0 8px #fff; }
.fightm__go { width: 100%; }
.fightm__msg { margin-top: 6px; min-height: 14px; }

/* ------------------------------------------------------------------ HailMary */
.ride__card { display: flex; flex-direction: column; gap: 5px; border-color: #ff6ab0; }
.ride__card--here { background: rgba(255, 106, 176, .14); }

/* ------------------------------------------------------------------ Shale Pay AutoPay */
.autopay { display: flex; align-items: center; gap: 10px; }
.toggle { flex: none; position: relative; width: 44px; height: 24px; border: 0; border-radius: 999px; cursor: pointer; background: rgba(255, 255, 255, .15); transition: background .15s; }
.toggle i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; }
.toggle.on { background: #2bd2c4; }
.toggle.on i { left: 23px; }

/* ------------------------------------------------------------------ keyboard choice */
.choice--sel { outline: 2px solid var(--accent, #ffd23a); outline-offset: 1px; position: relative; }
.choice--sel::after { content: 'F'; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 700 10px/1 var(--mono, monospace); padding: 3px 6px; border-radius: 4px; color: #111; background: var(--accent, #ffd23a); }

/* ---- the home shelves: the phone grows, the screen stays a screen ---- */
.mohome__tabs { display: flex; gap: 6px; margin: 10px 2px 2px; overflow-x: auto; scrollbar-width: none; }
.mohome__tabs::-webkit-scrollbar { display: none; }
.mohome__tab { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04); color: var(--dim, #9aa3ad); font: 600 9.5px/1 var(--mono, monospace);
  letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.mohome__tab.is-on { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }

/* ---- a message that never left the phone ---- */
.chat__bubble--failed { opacity: .8; border: 1px dashed rgba(255,120,120,.65); background: rgba(90,20,20,.35);
  color: #ffb3b3; font-style: italic; }

/* ---- LonelyFans ---- */
.fans__lock { text-align: center; padding: 18px 10px; border: 1px dashed rgba(255,119,200,.4);
  border-radius: 10px; margin: 10px 0; background: rgba(255,119,200,.06); }
.fans__lock b { display: block; font-size: 13px; margin-bottom: 6px; }
.fans__warn { margin: 8px 0; padding: 9px; border-radius: 8px; font: 600 10.5px/1.4 var(--mono, monospace);
  color: #ffb3b3; background: rgba(120,20,40,.35); border: 1px solid rgba(255,120,120,.4); }
.fans__bar { display: flex; align-items: center; justify-content: space-between; margin: 8px 0;
  font: 600 9.5px/1 var(--mono, monospace); color: var(--dim, #9aa3ad); }
.fans__model { margin: 10px 0; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08); }
.fans__pitch { margin: 6px 0 8px; font-style: italic; color: #e7c6da; font-size: 11.5px; }
.fans__buy { align-items: center; }

/* ------------------------------------------------------------------ interaction prompt */
.prompt__cycle { margin-left: 10px; font-size: 10px; opacity: .8; white-space: nowrap; }
.prompt__cycle kbd { margin-right: 4px; }
.prompt--off { opacity: .85; filter: saturate(.4); }
.prompt__why { color: #ff9a8a !important; }

/* ------------------------------------------------------------------ Today + time state */
.hud__timestate { align-self: flex-end; font: 700 10px/1 var(--mono, monospace); letter-spacing: .12em; padding: 4px 8px; margin-bottom: 4px; border-radius: 6px; color: #cfe8d0; background: rgba(0, 0, 0, .45); pointer-events: none; }
.hud__timestate.stopped { color: #ffd23a; }
.hud__today { pointer-events: auto; width: 280px; max-width: 34vw; margin-top: 6px; border-radius: 12px; background: rgba(8, 12, 10, .72); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); overflow: hidden; }
.today__head { all: unset; cursor: pointer; display: flex; gap: 8px; align-items: center; width: calc(100% - 20px); padding: 6px 10px; font-size: 10px; letter-spacing: .14em; color: #ffd23a; }
.today__head span:last-child { margin-left: auto; opacity: .6; }
.today__urgent { color: #ff7a6a; letter-spacing: .06em; }
.today__row { all: unset; cursor: pointer; display: flex; gap: 8px; align-items: center; width: calc(100% - 16px); padding: 5px 8px; border-top: 1px solid rgba(255, 255, 255, .05); font-size: 11px; color: #e8f0e8; }
.today__row[disabled] { cursor: default; }
.today__row:not([disabled]):hover { background: rgba(255, 255, 255, .06); }
.today__row i { flex: none; width: 16px; text-align: center; font-style: normal; opacity: .8; }
.today__row span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.today__row b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today__row small { font-size: 9px; opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today__row em { font-style: normal; font-size: 8px; letter-spacing: .1em; opacity: .55; }
.today__row--urgent { color: #ff9a8a; }
.today__row--soon { color: #ffe08a; }
.today__row--goal { color: #a8d8ff; }
.today__row--done { opacity: .45; }

.goal--done .name { text-decoration: line-through; opacity: .5; }

/* ------------------------------------------------------------------ map navigation */
.mapview__body { display: flex; gap: 10px; min-height: 0; flex: 1; }
.mapview__dests { flex: none; width: 210px; max-height: 62vh; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; padding-right: 4px; }
.mapview__body .mapview__main { flex: 1; min-width: 0; }
.mapview__search { width: 100%; box-sizing: border-box; padding: 6px 8px; border-radius: 6px; border: 1px solid rgba(255, 210, 74, .4); background: rgba(0, 0, 0, .4); color: #fff; font: inherit; font-size: 11px; }
.mapview__clear { all: unset; cursor: pointer; text-align: center; font-size: 9px; letter-spacing: .12em; padding: 4px; color: #ffd24a; }
.mapdest__cat { font-size: 9px; letter-spacing: .16em; color: #ffd24a; margin: 8px 0 2px; }
.mapdest { all: unset; cursor: pointer; display: flex; flex-direction: column; padding: 5px 7px; border-radius: 6px; background: rgba(255, 255, 255, .04); }
.mapdest b { font-size: 11px; color: #f2ecd6; }
.mapdest small { font-size: 9px; opacity: .6; }
.mapdest:hover { background: rgba(255, 210, 74, .1); }
.mapdest--sel { background: rgba(255, 210, 74, .22); box-shadow: inset 0 0 0 1px #ffd24a; }
.mapdest--closed b { opacity: .6; }
.mapdest--closed small { color: #ff9a8a; opacity: .85; }
.minimap__nav { display: flex; align-items: center; gap: 6px; padding: 3px 6px; font-size: 9px; letter-spacing: .04em; color: #ffd24a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.minimap__arrow { display: inline-block; font-style: normal; }
@media (max-width: 700px) { .mapview__body { flex-direction: column; } .mapview__dests { width: auto; max-height: 26vh; } }

/* ------------------------------------------------------------------ notifications */
.notifs { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; }
.notif { all: unset; cursor: pointer; display: flex; gap: 8px; align-items: center; padding: 6px 9px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.notif i { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800; background: rgba(255, 255, 255, .15); }
.notif span { display: flex; flex-direction: column; min-width: 0; }
.notif b { font-size: 11px; }
.notif small { font-size: 9px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif--urgent i { background: #ff5a4a; color: #fff; }
.notif--social i { background: #ff6ab0; color: #fff; }
.notif--info i { background: #5ab0ff; color: #fff; }
.notif__clear { all: unset; cursor: pointer; align-self: flex-end; font-size: 8px; letter-spacing: .14em; opacity: .6; padding: 2px 4px; }
.feed__clear { pointer-events: auto; border: 0; border-radius: 999px; padding: 4px 9px; margin-left: 6px; font: 700 9px/1 var(--mono, monospace); letter-spacing: .12em; cursor: pointer; color: #cfd8d0; background: rgba(0, 0, 0, .55); }

/* ------------------------------------------------------------------ Pocket Lint */
.inv__summary { display: flex; justify-content: space-between; gap: 6px; font-size: 10px; flex-wrap: wrap; }
.inv__fx { color: #9fd8a8; }

.fridge__cap { font-style: normal; font-size: 10px; opacity: .7; margin-left: 6px; }
.fridge__cap.full { color: #ff9a8a; opacity: 1; }
.menucard__meta { font-size: 9px; opacity: .6; letter-spacing: .03em; }
.menucard__meta em { font-style: normal; }

/* LoveLine: who is waiting, what moved */
.reldigest .app__h { margin-top: 2px; }
.relrow { all: unset; display: block; font-size: 11px; line-height: 1.4; padding: 3px 0; border-bottom: 1px dotted rgba(255, 255, 255, .08); }
button.relrow { cursor: pointer; }
button.relrow:hover { color: #ffd24a; }
.relrow b { color: #f2ecd6; }
.relrow--good b::before { content: '▲ '; color: #7fd18b; }
.relrow--bad b::before { content: '▼ '; color: #ff9a8a; }

/* ------------------------------------------------------------------ options (pause menu) */
.options { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(4, 6, 8, .72); padding: 16px; }
.options__panel { width: min(640px, 100%); max-height: 88vh; overflow-y: auto; background: #12161a; border: 1px solid rgba(255, 210, 74, .35); border-radius: 10px; padding: 14px 16px; color: #e6e0cc; font-size: 12px; }
.options__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.options__head b { letter-spacing: .18em; color: #ffd24a; }
.options__head span { flex: 1; font-size: 10px; opacity: .55; }
.options section { padding: 8px 0; border-top: 1px dotted rgba(255, 255, 255, .1); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.options h3 { margin: 0; font-size: 10px; letter-spacing: .16em; color: #ffd24a; }
.options label { display: grid; grid-template-columns: 110px 44px 1fr; align-items: center; gap: 8px; width: 100%; }
.options label em { font-style: normal; opacity: .7; }
.options__note { margin: 0; font-size: 10px; opacity: .6; }
.options table { width: 100%; border-collapse: collapse; }
.options th { text-align: left; font-size: 9px; letter-spacing: .1em; opacity: .5; font-weight: 400; padding: 2px 4px; }
.options td { padding: 2px 4px; border-bottom: 1px dotted rgba(255, 255, 255, .06); }
.options__pad { opacity: .65; font-size: 10px; }
.keycap { all: unset; display: inline-block; min-width: 22px; text-align: center; padding: 2px 6px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); font-size: 11px; font-style: normal; cursor: pointer; }
.keycap--fixed { cursor: default; opacity: .6; }
.keycap--wait { border-color: #ffd24a; color: #ffd24a; }
@media (max-width: 560px) { .options label { grid-template-columns: 1fr 40px; } .options label input { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ touch controls (ui/touch.js) */
.touch, .touch body, .touch canvas { touch-action: none; -webkit-user-select: none; user-select: none; }
.touchpad { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
.touchpad.is-hidden { display: none; }
.touchpad__stick {
  position: absolute; left: max(18px, env(safe-area-inset-left)); bottom: max(26px, env(safe-area-inset-bottom));
  width: 132px; height: 132px; border-radius: 50%; pointer-events: auto; touch-action: none;
  background: radial-gradient(circle, rgba(255,255,255,.07) 0 55%, rgba(255,255,255,.14) 56% 58%, rgba(0,0,0,.18) 59%);
  border: 1px solid rgba(255,255,255,.22);
}
.touchpad__knob {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  background: rgba(240,255,232,.32); border: 2px solid rgba(240,255,232,.55); box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.touchpad__buttons {
  position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: max(30px, env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 58px 76px; grid-template-rows: 58px 58px; gap: 10px; pointer-events: auto;
}
.touchpad__top { position: absolute; right: max(14px, env(safe-area-inset-right)); bottom: 196px; display: flex; gap: 8px; pointer-events: auto; }
.touchpad__btn {
  width: 58px; height: 58px; border-radius: 50%; font: 700 18px/1 var(--font-mono, monospace); color: #f0ffe8;
  background: rgba(10,16,12,.55); border: 2px solid rgba(240,255,232,.45); touch-action: none; padding: 0;
}
.touchpad__btn--big { grid-row: 1 / 3; grid-column: 2; width: 76px; height: 76px; align-self: center; font-size: 24px; background: rgba(214,170,58,.35); border-color: rgba(255,214,110,.8); }
.touchpad__btn--sm { width: 44px; height: 44px; font-size: 15px; }
.touchpad__btn.is-down { background: rgba(240,255,232,.4); }
/* small screens: the HUD gives the thumbs room */
@media (max-width: 760px), (max-height: 520px) {
  .touch .hud__hint { display: none; }
}

/* ------------------------------------------------------------------ the guide (ui/guide.js) */
.guide { z-index: 60; }
.guide__panel { width: min(720px, 94vw); max-height: 92vh; overflow: auto; }
.guide__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin: 6px 0 12px; border: 1px solid rgba(255,255,255,.12); }
.guide__body { font-size: 14px; line-height: 1.6; color: #d8e6dc; margin-bottom: 14px; }
.guide__body--mono { font: 12px/1.65 var(--font-mono, monospace); color: #bcd4c1; white-space: normal; }
.guide__nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.guide__dots { display: flex; gap: 6px; }
.guide__dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.22); }
.guide__dots span.on { background: #ffd56a; }

/* ------------------------------------------------------------------ phones: the HUD makes room
   A touch screen this narrow gets a smaller status card without the minimap, no keyboard-only
   buttons (the thumbs have their own), a folded Today panel, and the prompt above the buttons. */
@media (max-width: 820px), (max-height: 520px) {
  .touch .hud__top { transform: scale(.58); transform-origin: top left; }
  .touch .hud__top .minimap { display: none; }
  .touch .hud__right { transform: scale(.66); transform-origin: top right; }
  .touch .hud__right .hud__btns { display: none; }
  .touch .hud__objective { display: none; }
  .touch .hud__timestate { display: none; }
  .touch .hud__today { max-width: 300px; }
  .touch .hud__prompt { bottom: calc(220px + env(safe-area-inset-bottom)); max-width: 86vw; }
  .touch .feed { transform: scale(.72); transform-origin: bottom center; bottom: calc(170px + env(safe-area-inset-bottom)); }
  .touch .hud__toasts { transform: scale(.85); transform-origin: top center; }
}
@media (max-height: 520px) {
  .touch .touchpad__top { bottom: auto; top: max(10px, env(safe-area-inset-top)); right: 50%; transform: translateX(50%); }
  .touch .hud__prompt { bottom: calc(150px + env(safe-area-inset-bottom)); }
  .touch .feed { display: none; }
}

/* ------------------------------------------------------------------ the home screen on one page */
.mohome { gap: 10px; }
.mohome__time { font-size: 38px; }
.mohome__widgets .widget { min-height: 58px; padding: 8px 10px; border-radius: 18px; }
.mohome .notifs .notif small { display: none; }
.mohome .notifs .notif { padding: 5px 9px; }
.mohome__grid--all { grid-template-columns: repeat(5, 1fr); gap: 11px 2px; margin-top: 0; }
.mohome__grid--all .appicon__tile { width: 44px; height: 44px; border-radius: 13px; }
.mohome__grid--all .appicon__tile svg { width: 24px; height: 24px; }
.mohome__grid--all .appicon__name { font-size: 8.5px; max-width: 58px; overflow: hidden; text-overflow: ellipsis; }
.mohome__grid--all .appicon__bid { font-size: 15px; }
.svcavatar__initials { font: 800 11px/1 var(--ui); color: #fff; letter-spacing: .02em; }

/* ------------------------------------------------------------------ Phone: contacts and keypad */
.contacts { display: flex; flex-direction: column; gap: 6px; padding: 6px 2px 14px; }
.contact { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: rgba(255,255,255,.06); border: 0; color: #fff; text-align: left; cursor: pointer; }
.contact:hover { background: rgba(255,255,255,.12); }
.contact__face { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; }
.contact__face.svcavatar { width: 36px; height: 36px; }
.contact__face--plain { background: #3a4a42; font: 700 14px var(--ui); }
.contact__who { flex: 1; display: flex; flex-direction: column; }
.contact__who b { font: 600 13px var(--ui); }
.contact__who small { font: 10px var(--ui); color: rgba(255,255,255,.6); }
.contact__call { color: #5bf27c; font-size: 16px; }
.dialer { padding: 10px 6px; }
.dialer__num { text-align: center; font: 600 24px var(--display); letter-spacing: .08em; min-height: 34px; margin-bottom: 10px; }
.dialer__pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; justify-items: center; }
.dialer__key { width: 58px; height: 58px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font: 600 22px var(--ui); cursor: pointer; }
.dialer__key:active { background: rgba(255,255,255,.3); }
.dialer__row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.dialer__call { width: 92px; height: 44px; border-radius: 22px; border: 0; background: #2fc45a; color: #fff; font: 700 13px var(--ui); letter-spacing: .1em; cursor: pointer; }
.dialer__call:disabled { opacity: .4; }

/* ------------------------------------------------------------------ the arcade (ui/arcade.js) */
.arcade { z-index: 70; }
.arcade__cab { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 18px 14px; border-radius: 18px;
  background: linear-gradient(180deg, #23123a, #0e0818); box-shadow: 0 20px 60px rgba(0,0,0,.7), inset 0 0 0 2px rgba(255,255,255,.08); }
.arcade__marquee { font: 800 18px/1 var(--display, monospace); letter-spacing: .14em; color: #ffd23a; text-shadow: 0 0 12px rgba(255,210,58,.7); }
.arcade__screen { width: min(448px, 86vw); aspect-ratio: 224 / 256; height: auto; image-rendering: pixelated; border-radius: 10px; border: 6px solid #05060a; box-shadow: 0 0 30px rgba(80,160,255,.25); }
.arcade__pad { display: none; grid-template-columns: repeat(3, 52px); grid-template-rows: repeat(3, 44px); gap: 6px; }
.arcade__pad button { border-radius: 10px; border: 0; background: rgba(255,255,255,.14); color: #fff; font: 700 16px var(--ui); touch-action: none; }
.arcade__pad [data-k="ArrowUp"] { grid-column: 2; grid-row: 1; }
.arcade__pad [data-k="ArrowLeft"] { grid-column: 1; grid-row: 2; }
.arcade__pad [data-k="Space"] { grid-column: 2; grid-row: 2; background: #c8281e; }
.arcade__pad [data-k="ArrowRight"] { grid-column: 3; grid-row: 2; }
.arcade__pad [data-k="ArrowDown"] { grid-column: 2; grid-row: 3; }
.touch .arcade__pad { display: grid; }
.arcade__help { font: 10px var(--ui); letter-spacing: .14em; color: rgba(255,255,255,.5); }

/* ------------------------------------------------------------------ pictures in texts, DialUp thumbnails, Mo's posts */
.chat__pic { display: block; padding: 0; border: 0; background: none; margin: -2px -2px 6px; cursor: pointer; }
.chat__pic img { display: block; width: 132px; aspect-ratio: 3 / 4; border-radius: 10px; image-rendering: pixelated; }
.chat__face--pic { overflow: hidden; display: inline-block; }
.chat__face--pic img { width: 100%; height: 160%; object-fit: cover; object-position: 50% 0; transform: scale(2.3); transform-origin: 50% 12%; image-rendering: pixelated; }
.picview { border-radius: 14px; overflow: hidden; background: #000; }
.picview img { display: block; width: 100%; aspect-ratio: 3 / 4; image-rendering: pixelated; }
.picview__cap { text-align: center; margin: 6px 0; }
.xxx__pic { width: 100%; aspect-ratio: 3 / 4; border-radius: 4px; image-rendering: pixelated; box-shadow: 0 0 0 2px #ff5ab0; }
.xxx__tile { text-align: center; }
.xxx__banner { text-align: center; font: 900 16px/1.1 var(--display, serif); color: #ff5ab0; text-shadow: 2px 2px 0 #3a0a2a; padding: 6px; background: repeating-linear-gradient(45deg, #2a0a2a 0 6px, #3a0a3a 6px 12px); border-radius: 8px; }
.xxx__banner span { display: block; font: 9px var(--ui); color: #ffd0ea; letter-spacing: .08em; text-shadow: none; margin-top: 3px; }
.xxx__ad { margin: 6px 0; padding: 5px 6px; font: 800 9px/1.2 var(--ui); text-align: center; color: #1a1a1a; background: #ffe83a; border: 2px dashed #ff3a3a; }
.xxx__ad--blink { animation: xxxblink 1s steps(2) infinite; }
@keyframes xxxblink { 50% { background: #3aff8a; } }
.fpost__tools { gap: 6px; flex-wrap: wrap; }
.fpost__img--mo { position: relative; aspect-ratio: 4 / 3; background-size: cover; background-position: center; display: flex; align-items: flex-end; justify-content: center; }
.fpost__img--mo img { width: 62%; height: auto; object-fit: contain; filter: saturate(.9) contrast(1.05); }
.fpost__play { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: #fff; background: rgba(0,0,0,.42); box-shadow: 0 0 0 2px rgba(255,255,255,.65); padding-left: 4px; }
.fpost__dur { position: absolute; right: 6px; bottom: 6px; font: 700 9px var(--ui); color: #fff; background: rgba(0,0,0,.6); padding: 1px 4px; border-radius: 3px; }
.fpost__more { border: 0; background: none; color: var(--ink-dim, #999); font: 10px var(--ui); padding: 4px 0; cursor: pointer; }
.fcomments { display: flex; flex-direction: column; gap: 6px; padding: 4px 0 2px; }
.fcomment { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.fcomment__face { flex: none; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; overflow: hidden; background: #222; cursor: pointer; }
.fcomment__face img { width: 100%; height: 100%; object-fit: cover; }
.fcomment__argue { flex: none; border: 1px solid rgba(255,90,90,.5); color: #ff8a8a; background: none; border-radius: 6px; font: 700 8px var(--ui); padding: 3px 5px; cursor: pointer; }

/* ------------------------------------------------------------------ home tabs, the drawer, wallpaper, Snapz */
.mohome--wall { position: relative; background: linear-gradient(rgba(0,0,0,var(--dim, .45)), rgba(0,0,0,var(--dim, .45))), var(--wall) center / cover no-repeat; border-radius: 0 0 30px 30px; }
.mohome__tabs { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.mohome__tabs button { border: 0; border-radius: 999px; padding: 4px 9px; font: 700 9px var(--ui); letter-spacing: .08em; color: rgba(255,255,255,.75); background: rgba(0,0,0,.35); cursor: pointer; }
.mohome__tabs button.on { color: #111; background: rgba(255,255,255,.9); }
.mohome__drawer { box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.mohome__grid--drawer { grid-template-columns: repeat(5, 1fr); gap: 9px 2px; }
.mohome .appicon__name { text-shadow: 0 1px 2px rgba(0,0,0,.9); }
.wallpick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 6px 0; }
.wallpick__it { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #111; cursor: pointer; aspect-ratio: 9 / 16; }
.wallpick__it.on { border-color: var(--accent, #5bf27c); }
.wallpick__it img { width: 100%; height: 100%; object-fit: cover; display: block; }
.snap__shoot { gap: 8px; }
.snap__shoot .btn { flex: 1; }
.snapgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.snapgrid button { position: relative; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: #111; aspect-ratio: 3 / 4; cursor: pointer; }
.snapgrid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.snapgrid span { position: absolute; left: 0; right: 0; bottom: 0; font: 700 7px var(--ui); color: #fff; background: rgba(0,0,0,.6); padding: 2px; }
.snapview { border-radius: 14px; overflow: hidden; background: #000; }
.snapview img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.snapview__cap { text-align: center; margin: 6px 0; }
.camflash { position: fixed; inset: 0; background: #fff; z-index: 9999; pointer-events: none; animation: camflash .38s ease-out forwards; }
@keyframes camflash { from { opacity: .95; } to { opacity: 0; } }

/* ------------------------------------------------------------------ game modes on the intro */
.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; margin: 8px 0 0; max-height: 34vh; overflow: auto; }
.modes__it { text-align: left; border: 1px solid rgba(160,220,170,.25); border-radius: 8px; background: rgba(10,20,14,.6); color: #cfe6d2; padding: 7px 9px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.modes__it b { font-size: 12px; color: #f0ffe8; }
.modes__it span { font-size: 10px; line-height: 1.4; color: #9fb8a4; }
.modes__it.on { border-color: #ffd23a; box-shadow: 0 0 0 1px #ffd23a inset; background: rgba(40,34,10,.7); }

/* ------------------------------------------------------------------ the happenings marquee */
.marquee { position: fixed; top: 8px; left: 50%; transform: translateX(-50%); width: min(560px, 62vw); z-index: 40; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, #2a1a04, #120a02); border: 1px solid #ffd23a; border-radius: 6px; box-shadow: 0 0 18px rgba(255,210,58,.35), inset 0 0 8px rgba(0,0,0,.6); }
.marquee__track { display: flex; width: max-content; animation: marquee 22s linear infinite; }
.marquee__track span { white-space: nowrap; font: 700 11px/22px var(--mono, monospace); letter-spacing: .18em; color: #ffd23a; text-shadow: 0 0 6px rgba(255,210,58,.8); padding-right: 40px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ Square Up */
.owe { border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 8px 10px; margin: 6px 0; background: rgba(255,255,255,.03); }
.owe--late { border-color: rgba(255,90,90,.45); }
.owe__what { font-size: 12px; margin: 3px 0 6px; }
.owe__acts { gap: 5px; }

/* ------------------------------------------------------------------ the TV and MeTube player (ui/tv.js) */
.tvov { z-index: 70; }
.tvov__set { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 12px; border-radius: 16px; background: linear-gradient(180deg, #2a2a2e, #141416); box-shadow: 0 20px 60px rgba(0,0,0,.7), inset 0 0 0 2px rgba(255,255,255,.06); }
.tvov__set--tube { background: linear-gradient(180deg, #e8e8ec, #c8c8d0); }
.tvov__set--tube .tvov__bar { color: #1a1a1a; }
.tvov__bar { display: flex; justify-content: space-between; gap: 12px; font: 700 11px var(--ui); letter-spacing: .12em; color: #e8e8e0; }
.tvov__screen { width: min(576px, 86vw); aspect-ratio: 16 / 9; height: auto; image-rendering: pixelated; border-radius: 8px; border: 6px solid #050506; }
.tvov__controls { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.tvov__controls button { border: 0; border-radius: 8px; padding: 7px 11px; font: 700 10px var(--ui); letter-spacing: .1em; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.tvov__set--tube .tvov__controls button { background: #c81e1e; }

/* ------------------------------------------------------------------ a fist fight (world/duel.js) */
.duelbar { position: absolute; top: 74px; left: 50%; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 12px; padding: 7px 14px; border-radius: 12px; background: rgba(12, 10, 10, .88); box-shadow: 0 0 0 2px #c8121a; color: #f2e8e8; font: 700 12px var(--ui); letter-spacing: .06em; pointer-events: none; }
.duelbar__hp { color: #ff4a4a; letter-spacing: .1em; font-size: 14px; }
.duelbar__hint { opacity: .7; font-weight: 500; font-size: 10px; }

/* ------------------------------------------------------------------ studio shots (ui/studio.js): hard pixels */
.fpost__img img, .chat__pic img, .picview img, .xxx__pic, .chat__face--pic img { image-rendering: pixelated; }
.fpost__img--mo3d { position: relative; }
.fpost__img--mo3d img { width: 100%; display: block; }

/* the scene cut's line in the dark (main.js sceneCut) */
.fadeout--cap { display: grid; place-items: center; color: #e8e0c8; font: italic 600 18px var(--ui); letter-spacing: .14em; }

/* NPC barks: a short line over a head, drawn at screen resolution (world/crowd.js placeBarks) */
.barks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.bark {
  position: absolute; left: 0; top: 0; max-width: min(320px, 70vw);
  padding: 4px 9px 5px; margin-top: -6px;
  background: rgba(14, 12, 12, 0.9); color: #f6f2e6;
  border: 2px solid #e8c83a; border-radius: 3px;
  font: 700 13px/1.25 var(--mono, ui-monospace, monospace); letter-spacing: 0.01em;
  text-align: center; white-space: normal; text-wrap: balance;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
  will-change: transform;
}
.bark::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -6px;
  border: 6px solid transparent; border-top-color: #e8c83a; border-bottom: 0;
}
@media (max-width: 600px) { .bark { font-size: 12px; padding: 3px 7px 4px; } }
