/* =============================================================
   style.css
   To change the palette, the :root block below is all you need.
   ============================================================= */

:root{
  --bg:#0d0f13;
  --panel:#14171d;
  --panel2:#1b1f27;
  --line:#262b35;
  --txt:#e7eaf0;
  --dim:#8b93a3;
  --accent:#4ea3ff;
  --in:#242932;
  --out:#2f6df6;
  --ok:#43d17f;
  --bad:#ff5f6b;
  --gold:#e8c33c;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;background:var(--bg);color:var(--txt);
  font:14px/1.45 "Segoe UI",system-ui,-apple-system,sans-serif;
  overflow:hidden;
}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
code{font-family:"Cascadia Mono",Consolas,monospace}

#app{display:flex;height:100%}
#app.locked-out{filter:blur(14px);pointer-events:none}

/* mobile drawer button and its backdrop: absent on desktop */
#nav-toggle,#nav-backdrop{display:none}

/* ============ 18+ GATE ============ */

#agegate{
  position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px;
  background:radial-gradient(ellipse at 50% 40%,#191d28,#08090c 75%);
}
.ag-box{
  max-width:440px;text-align:center;padding:34px 30px;
  background:var(--panel);border:1px solid var(--line);border-radius:20px;
  box-shadow:0 30px 80px rgba(0,0,0,.6);
}
.ag-mark{
  display:inline-grid;place-items:center;width:52px;height:52px;margin-bottom:16px;
  border-radius:50%;border:2px solid var(--bad);color:var(--bad);
  font-weight:700;font-size:15px;letter-spacing:.5px;
}
.ag-box h2{margin:0 0 12px;font-size:21px}
.ag-box p{margin:0 0 10px;color:var(--dim);font-size:13.5px;line-height:1.6}
.ag-q{color:var(--txt) !important;font-weight:600;margin-top:18px !important}
.ag-btns{display:flex;flex-direction:column;gap:9px;margin:20px 0 16px}
.ag-yes{padding:13px;border-radius:12px;background:var(--out);color:#fff;font-weight:600}
.ag-yes:hover{background:#4480ff}
.ag-no{padding:12px;border-radius:12px;border:1px solid var(--line);color:var(--dim)}
.ag-no:hover{color:var(--txt);border-color:#39414f}
.ag-fine{font-size:11px !important;color:#5b6270 !important;margin:0 !important}

/* ============ LEFT PANEL ============ */

#sidebar{
  width:300px;flex:0 0 300px;height:100%;
  background:var(--panel);border-right:1px solid var(--line);
  display:flex;flex-direction:column;padding:16px 14px;overflow-y:auto;
}
.sb-title h1{margin:0;font-size:17px}
.sb-sub{color:var(--dim);font-size:12px;margin-top:2px}

.sb-block{border-top:1px solid var(--line);padding:14px 0 4px;margin-top:10px}
.sb-block:first-of-type{border-top:0}
.sb-block.grow{flex:1;min-height:0;display:flex;flex-direction:column}
.sb-block h2{
  margin:0 0 10px;font-size:11px;text-transform:uppercase;letter-spacing:.9px;
  color:var(--dim);display:flex;align-items:center;gap:6px;
}
.hint{margin:0 0 8px;font-size:11px;color:var(--dim);line-height:1.5}
.hint code{color:var(--accent)}
.hint b{color:var(--txt)}

/* day / time / wallet row */
#status-row{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:16px}
.st-cell{background:var(--panel2);border:1px solid var(--line);border-radius:10px;
  padding:8px 4px;text-align:center;overflow:hidden}
.st-cell b{display:block;font-size:15px;white-space:nowrap}
.st-cell span{font-size:9.5px;text-transform:uppercase;letter-spacing:.7px;color:var(--dim)}
.st-cell.money b{color:var(--ok)}
/* In the red: the balance is the whole warning, so it has to shout */
.st-cell.money.debt{background:rgba(255,95,107,.10);border-color:rgba(255,95,107,.45)}
.st-cell.money.debt b{color:var(--bad)}
.st-cell.money.deep b{animation:pulse 1.2s ease-in-out infinite}

.stat{margin-bottom:9px}
.stat.low .stat-top b{color:var(--bad)}
.stat.low .bar i{animation:pulse 1.4s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.45}}
.stat-top{display:flex;justify-content:space-between;font-size:12px;margin-bottom:4px}
.stat-top span{color:var(--dim)}
.stat .bar{height:5px;background:var(--panel2);border-radius:4px;overflow:hidden}
.stat .bar i{display:block;height:100%;border-radius:4px;transition:width .35s ease}
.stat.flat{display:flex;justify-content:space-between;align-items:center;
  background:var(--panel2);border-radius:8px;padding:7px 10px;margin-bottom:11px}
.stat.flat span{color:var(--dim);font-size:12px}
.stat.flat b{font-size:16px}

.nav-row{display:flex;gap:6px;margin-bottom:10px}
.nav-btn{background:var(--panel2);border:1px solid var(--line);border-radius:10px;
  padding:9px 0;flex:1;text-align:center;transition:.15s}
.nav-btn:hover:not(:disabled){background:#252b36;border-color:#39414f}
.nav-btn:disabled{opacity:.3;cursor:default}
.sb-row{display:flex;gap:6px}
.mini-btn{flex:1;background:transparent;border:1px solid var(--line);
  border-radius:8px;padding:6px 0;font-size:11px;color:var(--dim)}
.mini-btn:hover{color:var(--txt);border-color:#39414f}
.mini-btn.danger:hover{color:var(--bad);border-color:var(--bad)}

/* time controls (left panel) */
.time-btn{flex:1;padding:10px 6px;border-radius:10px;font-size:11.5px;
  background:var(--panel2);border:1px solid var(--line);transition:.15s}
.time-btn:hover:not(:disabled){background:#252b36;border-color:#39414f}
.time-btn.sleep{background:var(--out);border-color:transparent;color:#fff;font-weight:600}
.time-btn.sleep:hover:not(:disabled){background:#4480ff}
.time-btn.sleep.off{background:var(--panel2);border-color:var(--line);
  color:#5b6270;font-weight:400;cursor:default}
#sleep-note{margin:8px 0 0;font-size:11px;color:var(--bad);line-height:1.5}

/* ============ PATREON / DISCORD ============
   an empty href in index.html leaves the button dimmed and inert. */

.sb-links{margin-top:auto;display:flex;flex-direction:column;gap:7px}
.link-btn{display:flex;align-items:center;gap:9px;padding:9px 12px;
  border-radius:10px;border:1px solid var(--line);background:var(--panel2);
  color:var(--txt);font-size:12.5px;font-weight:600;text-decoration:none;
  transition:.15s}
.link-btn .lb-ic{font-size:14px;line-height:1;opacity:.9}
.link-btn:hover{transform:translateY(-1px)}
.link-btn.patreon:hover{border-color:#e0568a;color:#ff8ab3;background:rgba(224,86,138,.08)}
.link-btn.discord:hover{border-color:#5865f2;color:#93a0ff;background:rgba(88,101,242,.10)}
/* when no link is set in config.js */
.link-btn.off{opacity:.3;pointer-events:none}

.ver{margin-left:6px;color:#5b6270;font-size:11px}

/* ============ PHONE ============
   Fixed size: width is derived from height, so the phone never
   grows or shrinks with its contents. */

/* The room the phone is being held in. Swapped by moving house:
   js/ui.js > renderRoom writes --room.

   The two paths look inconsistent and are both correct. A url() in
   this file resolves against the stylesheet, so the fallback needs
   ../. A url() handed in through a custom property from script
   resolves against the document, so that one does not. Change either
   and the picture disappears with no error.

   The gradient underneath is the last fallback, so a missing file
   costs nothing. The dark layer on top keeps the phone readable:
   without it the photo competes with the screen, which is the only
   thing the player is meant to be looking at. */
#stage{flex:1;display:grid;place-items:center;min-width:0;
  background:
    linear-gradient(rgba(9,11,15,.72),rgba(9,11,15,.82)),
    var(--room,url("../assets/img/room.jpg")) center/cover no-repeat,
    radial-gradient(ellipse at 50% 30%,#1a1f2b 0%,var(--bg) 70%);
  transition:background-image .6s ease}

#phone{
  --ph:min(880px,94vh);
  height:var(--ph);
  width:calc(var(--ph) * 0.46209);      /* 390 / 844 */
  flex:0 0 auto;
  background:#000;border-radius:46px;padding:11px;
  box-shadow:0 0 0 2px #2b303b,0 30px 70px rgba(0,0,0,.65);
}
#phone-screen{
  position:relative;width:100%;height:100%;border-radius:36px;overflow:hidden;
  background:var(--wallpaper,linear-gradient(160deg,#20293d,#3b2340 55%,#161a24));
  background-size:cover;background-position:center;
  display:flex;flex-direction:column;
  /* stop text being selected when tapping quickly */
  user-select:none;-webkit-user-select:none;-ms-user-select:none;
}
/* show the screen as clickable while it can be advanced */
#phone-screen.can-advance{cursor:pointer}
#phone-screen.can-advance .no-advance,
#phone-screen.can-advance video,
#phone-screen.can-advance input{cursor:default}

#statusbar{
  position:relative;z-index:5;flex:0 0 42px;
  display:flex;align-items:center;justify-content:space-between;
  padding:10px 22px 0;font-size:12px;font-weight:600;color:#fff;
}
.notch{position:absolute;left:50%;top:8px;transform:translateX(-50%);
  width:104px;height:24px;background:#000;border-radius:16px}
.sb-right{display:flex;gap:6px;align-items:center}

/* content must never widen the phone */
#screens{flex:1;min-height:0;min-width:0;overflow:hidden;display:flex}
/* position:relative -> the overlay inside positions against this */
.screen{position:relative;flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;
  background:rgba(14,16,21,.93);backdrop-filter:blur(14px)}

/* opening an app: grows out of the icon.
   going home: the reverse, collapsing inward. */
@keyframes appIn  {from{opacity:0;transform:scale(.90)} to{opacity:1;transform:none}}
@keyframes homeIn {from{opacity:0;transform:scale(1.06)} to{opacity:1;transform:none}}
.screen.app-open      {animation:appIn .2s cubic-bezier(.2,.85,.3,1)}
.screen.home.app-open {animation:homeIn .22s cubic-bezier(.2,.85,.3,1)}
.screen.home.app-open .app-icon{animation:appIn .26s ease backwards}
.screen.home.app-open .app-dock{animation:appIn .3s ease backwards}
/* The home screen is the one place the wallpaper is meant to be seen,
   so the frosted layer .screen carries has to come off here as well.
   Clearing the background alone left the blur sitting over it. */
.screen.home{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}

.app-head{
  flex:0 0 auto;display:flex;align-items:center;gap:9px;min-width:0;
  padding:12px 16px;border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(20,23,29,.92);font-size:15px;
}
.app-head b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-head em{color:var(--dim);font-style:normal;font-size:12px;white-space:nowrap}
.app-head .pay{color:var(--ok);font-weight:600}
.spacer{flex:1;min-width:0}
.hbtn{font-size:18px;padding:0 4px;color:var(--accent);flex:0 0 auto}

.scroll{flex:1;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;padding:14px}
.scroll::-webkit-scrollbar{width:5px}
.scroll::-webkit-scrollbar-thumb{background:#333a47;border-radius:4px}
.empty{color:var(--dim);text-align:center;padding:36px 20px;font-size:13px;line-height:1.6}

/* --- home screen --- */
.home-clock{text-align:center;color:#fff;padding:28px 0 24px;text-shadow:0 2px 12px rgba(0,0,0,.5)}
.home-clock b{display:block;font-size:54px;font-weight:300;letter-spacing:-1px}
.home-clock span{font-size:13px;opacity:.85}
.app-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px 4px;padding:8px 14px;min-width:0}
.app-icon{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}
/* do NOT add overflow:hidden. The badge sits outside the box and
   would be clipped. The image corners round via border-radius:inherit. */
.app-icon .ic{position:relative;width:100%;max-width:54px;aspect-ratio:1;border-radius:15px;
  display:grid;place-items:center;font-size:24px;box-shadow:0 6px 14px rgba(0,0,0,.45)}
/* your own icon image: covers the emoji, which shows if it is missing */
.app-icon .ic img{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;border-radius:inherit}
.app-icon .ic .badge{z-index:3}
.app-icon .nm{font-size:10.5px;color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.7);
  max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* the dock, as on a real phone */
.app-dock{
  margin:auto 12px 14px;padding:11px 10px;
  display:grid;grid-template-columns:repeat(4,1fr);gap:6px;
  background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.10);
  border-radius:26px;backdrop-filter:blur(16px);
}
.app-icon.docked .ic{max-width:50px}
.app-icon.locked{opacity:.45}
.app-icon:not(.locked):hover .ic{transform:scale(1.06);transition:.15s}
.badge{position:absolute;top:-5px;right:-5px;z-index:3;
  background:var(--bad);color:#fff;font-style:normal;
  font-size:10px;font-weight:700;line-height:1;
  min-width:18px;height:18px;padding:0 5px;border-radius:9px;
  display:flex;align-items:center;justify-content:center;
  border:2px solid #12151c;box-sizing:content-box}

/* --- home screen clock panel (sleep / waiting) --- */
.time-panel{margin:auto 12px 12px;padding:12px;border-radius:16px;
  background:rgba(12,14,19,.82);border:1px solid rgba(255,255,255,.1);
  backdrop-filter:blur(10px);display:flex;flex-direction:column;gap:10px}
.tp-energy{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--dim)}
.tp-energy i{flex:1;height:6px;border-radius:4px;background:rgba(255,255,255,.12);overflow:hidden}
.tp-energy i b{display:block;height:100%;background:var(--ok);border-radius:4px;transition:width .3s}
.tp-energy em{font-style:normal;color:var(--txt);font-weight:600;min-width:22px;text-align:right}
.tp-btns{display:grid;grid-template-columns:1fr 1.3fr;gap:7px}
.tp-btn{padding:10px 6px;border-radius:11px;font-size:12px;
  background:rgba(46,54,68,.9);border:1px solid #39414f;transition:.15s}
.tp-btn:hover{background:#39414f}
.tp-btn.sleep{background:rgba(47,109,246,.85);border-color:transparent;font-weight:600}
.tp-btn.sleep:hover{background:#4480ff}
.tp-btn.sleep.urge{animation:pulse 1.6s ease-in-out infinite}
.tp-btn.sleep.off{background:rgba(46,54,68,.7);border-color:#39414f;color:var(--dim);cursor:default}
.tp-btn.sleep.off:hover{background:rgba(46,54,68,.7)}
.tp-note{margin:0;font-size:11px;color:var(--bad);text-align:center}

/* --- avatarlar --- */
.av{position:relative;width:40px;height:40px;flex:0 0 40px;border-radius:50%;
  display:grid;place-items:center;font-weight:600;color:#fff;overflow:hidden;font-size:15px}
.av.sm{width:30px;height:30px;flex-basis:30px;font-size:12px}
.av.lg{width:78px;height:78px;flex-basis:78px;font-size:30px}
.av img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* --- list row --- */
.list .row{display:flex;align-items:center;gap:11px;width:100%;padding:10px 6px;
  border-bottom:1px solid rgba(255,255,255,.06);text-align:left;min-width:0}
.row:hover{background:rgba(255,255,255,.04)}
.row-mid{flex:1;display:flex;flex-direction:column;overflow:hidden;min-width:0}
.row-mid b{font-size:14px}
.row-mid em{font-style:normal;color:var(--dim);font-size:12px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Somebody is waiting on this one */
.row-mid em.fresh{color:var(--accent);font-weight:600}

/* right edge: time and the unread dot */
.row-end{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end;
  gap:5px;margin-left:8px}
.row-end .when{font-style:normal;font-size:10.5px;color:#5b6270;white-space:nowrap}
.list .row.unread .row-end .when{color:var(--out)}

/* --- thread --- */
.thread{display:flex;flex-direction:column;gap:8px;padding:16px 12px 20px}
.msg{max-width:80%;padding:9px 12px;border-radius:18px;font-size:14px;
  animation:pop .22s ease;word-break:break-word}
.msg p{margin:0}
.msg.in{align-self:flex-start;background:var(--in);border-bottom-left-radius:5px}
.msg.out{align-self:flex-end;background:var(--out);border-bottom-right-radius:5px;color:#fff}
.msg .media{margin:-3px -5px}
.msg .media+p{margin-top:8px}
@keyframes pop{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* day separator: Today / Yesterday / Day 7 */
.daysep{align-self:stretch;display:flex;align-items:center;gap:10px;
  margin:10px 4px 2px;color:var(--dim);font-size:11px;letter-spacing:.06em;
  text-transform:uppercase}
.daysep::before,.daysep::after{content:"";flex:1;height:1px;background:var(--line,#2a2d33);opacity:.6}
.daysep span{white-space:nowrap}

.msg.typing{display:flex;gap:4px;padding:13px 14px}
.msg.typing span{width:6px;height:6px;border-radius:50%;background:var(--dim);animation:blink 1.2s infinite}
.msg.typing span:nth-child(2){animation-delay:.2s}
.msg.typing span:nth-child(3){animation-delay:.4s}
@keyframes blink{0%,60%,100%{opacity:.25}30%{opacity:1}}

/* --- media and missing files --- */
/* do NOT use object-fit:cover. The clips are a mix of portrait and
   landscape and it crops them. contain never cuts anything, leaving
   bars where needed. Height follows the natural ratio, capped. */
.media{display:block;width:100%;height:auto;max-height:340px;
  border-radius:12px;background:#000;object-fit:contain}
.vid-missing{
  display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;
  min-height:140px;padding:16px;border-radius:12px;text-align:center;
  background:repeating-linear-gradient(45deg,#20242d,#20242d 10px,#252a35 10px,#252a35 20px);
  border:1px dashed #4a5262;
}
.vid-missing b{font-size:11px;letter-spacing:1px;color:#8892a4}
.vid-missing code{font-size:11px;color:var(--accent);word-break:break-all}
.vid-missing em{font-size:10px;color:#5d6573;font-style:normal}
.vid-missing.call-video{position:absolute;inset:0;z-index:0;border-radius:0;border:0}
.vid-missing.lb-media{width:100%;min-height:220px}
.vid-missing.cam-preview{min-height:190px}

/* ================= THREADS (quest listesi) ================= */

.quests{display:flex;flex-direction:column;gap:8px;padding:12px}
.q-h{margin:8px 0 2px;font-size:10.5px;letter-spacing:1px;text-transform:uppercase;color:var(--dim)}
.q-h:first-child{margin-top:0}
.q-card{display:flex;flex-direction:column;gap:3px;text-align:left;width:100%;
  padding:12px 13px;border-radius:13px;border:1px solid var(--line);background:var(--panel2)}
.q-card b{font-size:14px}
.q-card span{font-size:12px;color:var(--dim);line-height:1.45}
.q-card.open{border-color:#3c4557;background:rgba(46,54,68,.85);position:relative}
.q-card.open:hover{border-color:var(--out);background:rgba(47,109,246,.16)}
.q-card.open.shout{border-color:var(--out);box-shadow:0 0 0 1px rgba(47,109,246,.35)}
.q-go{position:absolute;right:12px;top:12px;font-style:normal;font-size:11px;color:var(--accent)}
.q-via{font-style:normal;font-size:10.5px;color:var(--gold);margin-top:3px}
.q-rpt{font-style:normal;font-size:10px;color:var(--dim);margin-top:2px}
.q-card.waiting{opacity:.6;border-style:dashed}
.q-card.waiting b{color:var(--dim);font-weight:500}
.q-card.locked{opacity:.55}
.q-card.locked b{color:var(--dim);font-weight:500}
.q-more{margin:10px 2px 0;font-size:11.5px;color:#5b6270;text-align:center;font-style:italic}
.q-card.done{opacity:.4;padding:8px 13px}
.q-card.done b{font-size:12.5px;font-weight:500;color:var(--ok)}

/* ================= NIGHTDESK MINIGAME ================= */

/* timer bar */
.w-timerwrap{flex:0 0 5px;background:rgba(255,255,255,.07)}
#w-timer{display:block;height:100%;background:var(--ok);transition:width .06s linear}
#w-timer.low{background:var(--bad)}

/* progress dots */
.w-dots{flex:0 0 auto;display:flex;justify-content:center;gap:5px;padding:11px 0 4px}
.w-dots i{width:6px;height:6px;border-radius:50%;background:#333a47}
.w-dots i.past{background:var(--dim)}
.w-dots i.now{background:var(--accent);transform:scale(1.35)}

/* ticket card */
.work-game{justify-content:space-between}
.w-card{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:14px;padding:20px 22px;text-align:center}
.w-from{font-size:10px;letter-spacing:1.4px;text-transform:uppercase;color:var(--dim)}
.w-card p{margin:0;font-size:19px;line-height:1.45;animation:pop .2s ease}

.w-flash{padding:7px 16px;border-radius:20px;font-size:12.5px;font-weight:600;animation:pop .18s ease}
.w-flash.ok{background:rgba(67,209,127,.16);color:var(--ok)}
.w-flash.no{background:rgba(255,95,107,.16);color:var(--bad)}

/* department buttons */
.w-tags{flex:0 0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:12px}
.w-tagbtn{display:flex;flex-direction:column;align-items:center;gap:6px;
  padding:14px 4px;border-radius:14px;font-size:12px;
  background:var(--panel2);border:1px solid var(--line);transition:.12s}
.w-tagbtn .w-ic{font-size:22px}
.w-tagbtn:hover:not(:disabled){border-color:var(--c);background:color-mix(in srgb,var(--c) 14%,transparent)}
.w-tagbtn:active:not(:disabled){transform:scale(.96)}
.w-tagbtn:disabled{cursor:default}
.w-tagbtn.right{border-color:var(--ok);background:rgba(67,209,127,.18)}
.w-tagbtn.wrong{border-color:var(--bad);background:rgba(255,95,107,.18)}
.w-tagbtn.dim{opacity:.35}

.w-legend{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}
.w-legend span{font-size:11px;color:var(--dim);border:1px solid;border-radius:20px;padding:3px 9px;opacity:.8}

.work-idle{display:flex;flex-direction:column;gap:14px;padding:18px 16px}
.w-hero{display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;padding:14px 0 4px}
.w-logo{font-size:40px}
.w-hero b{font-size:15px}
.w-sub{font-size:12px;color:var(--dim)}
/* ================= THE WEEK AHEAD (in Notes) ================= */
.cal-today{float:right;font-size:10px;letter-spacing:.4px;color:var(--dim);
  text-transform:none;font-weight:400}
.cal{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}
.cal-row{display:flex;gap:10px;align-items:baseline;
  background:#12161d;border:1px solid #262d38;border-left:3px solid #39414f;
  border-radius:9px;padding:8px 10px}
.cal-row.rent{border-left-color:var(--bad)}
.cal-row.delivery{border-left-color:#d98324}
.cal-row.person{border-left-color:var(--accent)}
.cal-row.soon{border-left-color:#4d5461}
.cal-day{flex:0 0 72px}
.cal-day b{display:block;font-size:11.5px}
.cal-day em{display:block;font-size:9.5px;color:var(--dim);font-style:normal}
.cal-what{flex:1;font-size:11.5px;line-height:1.5;color:var(--dim)}
.cal-row.rent .cal-what{color:var(--txt)}

/* ================= GALLERY SHELVES ================= */
.shelves{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.shelf{background:#12161d;border:1px solid #262d38;border-radius:12px;
  padding:11px 6px 9px;display:flex;flex-direction:column;align-items:center;
  gap:6px;cursor:pointer;font:inherit;color:var(--txt)}
.shelf:hover{background:#181d26;border-color:#39414f}
.shelf.empty{opacity:.55}
.shelf b{font-size:11.5px;line-height:1.2;text-align:center}
.shelf em{font-size:10px;color:var(--dim);font-style:normal}
.shelf-av{position:relative;display:block}
.shelf-q{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;
  background:#1b202a;border:1px dashed #39414f;color:#4d5461;font-size:19px}
.shelf.unmet b{color:var(--dim)}
.shelf-tick{position:absolute;right:-2px;bottom:-2px;width:17px;height:17px;
  border-radius:50%;background:var(--good);color:#08130c;font-size:10px;
  font-style:normal;display:grid;place-items:center;
  border:2px solid var(--bg)}

.cell.locked{background:#0e1219;border:1px dashed #2b323d;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:5px;cursor:default}
.cell.locked .cell-ic{position:static;font-size:16px;opacity:.5;background:none}
.cell.locked .cell-nm{position:static;font-size:10px;color:#4d5461;background:none}

/* ================= LETTINGS ================= */
.let-now{background:#12161d;border:1px solid #262d38;border-radius:12px;
  padding:12px;margin-bottom:16px}
.let-tag{display:block;font-size:9.5px;letter-spacing:1.2px;text-transform:uppercase;
  color:var(--dim);margin-bottom:5px}
.let-now b{display:block;font-size:14px}
.let-now em{display:block;margin-top:3px;font-size:11.5px;line-height:1.5;color:var(--dim)}
.let-now i{display:block;margin-top:7px;font-size:11px;color:var(--gold);font-style:normal}

.let-row{background:#12161d;border:1px solid #262d38;border-radius:12px;
  padding:12px;margin-bottom:11px}
.let-row.off{opacity:.55}
.let-head{display:flex;align-items:baseline;gap:8px}
.let-head b{font-size:14px;flex:1}
.let-rent{font-size:16px;font-weight:700;color:var(--good);white-space:nowrap}
.let-rent em{font-size:10px;font-weight:400;color:var(--dim);font-style:normal}
.let-sub{margin:5px 0 8px;font-size:11.5px;line-height:1.55;color:var(--dim)}
.let-perks{margin:0 0 10px;padding-left:16px}
.let-perks li{font-size:11.5px;line-height:1.6;color:var(--txt);margin-bottom:3px}
.let-foot{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.let-dep{flex:1;font-size:10.5px;line-height:1.5;color:var(--dim)}
.let-dep b{color:var(--txt)}
.let-no{font-size:10.5px;line-height:1.45;color:var(--bad);max-width:140px;text-align:right}

/* ---- Nightdesk: the worked example before the first shift ---- */
.w-helpbtn{width:100%;background:none;border:1px dashed #333b47;color:var(--dim);
  border-radius:10px;padding:9px;font:inherit;font-size:12px;cursor:pointer}
.w-helpbtn:hover{border-color:#454e5c;color:var(--txt)}
.w-help{background:#12161d;border:1px solid #262d38;border-radius:12px;padding:13px 13px 4px}
.wh-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.wh-head b{font-size:13px;flex:1}
.wh-x{background:#222933;border:1px solid #333b47;color:var(--txt);border-radius:7px;
  padding:4px 10px;font:inherit;font-size:11px;cursor:pointer}
.wh-x:hover{background:#2a323e}
.wh-p{margin:0 0 11px;font-size:12px;line-height:1.6;color:var(--dim)}
.wh-p b{color:var(--txt)}
.wh-eg{margin:0 0 10px;padding:9px 10px;background:#0e1219;border-radius:9px}
.wh-tk{margin:0 0 7px;font-size:12px;line-height:1.5;color:var(--txt)}
.wh-btns{display:flex;gap:5px;flex-wrap:wrap}
.wh-b{font-size:10.5px;border:1px solid #2b323d;color:#5b6270;
  border-radius:20px;padding:3px 8px;white-space:nowrap}
.wh-b.on{background:rgba(255,255,255,.04);font-weight:700}
.wh-list{margin:0 0 12px;padding-left:17px}
.wh-list li{font-size:11.5px;line-height:1.6;color:var(--dim);margin-bottom:5px}
.wh-list b{color:var(--txt)}
.wh-red{color:#ff7a4e}

.w-task{background:rgba(47,109,246,.14);border:1px solid rgba(47,109,246,.4);
  border-radius:11px;padding:10px 12px;font-size:12.5px;line-height:1.5}
.w-warn{background:rgba(232,195,60,.1);border:1px solid rgba(232,195,60,.35);
  color:var(--gold);border-radius:11px;padding:9px 12px;font-size:12px;text-align:center}
.w-warn.good{background:rgba(67,209,127,.1);border-color:rgba(67,209,127,.35);color:var(--ok)}
.w-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.w-stats div{background:var(--panel2);border-radius:11px;padding:11px 6px;text-align:center}
.w-stats b{display:block;font-size:17px}
.w-stats span{font-size:10.5px;color:var(--dim)}
.w-go{width:100%;padding:13px;border-radius:12px;background:var(--out);
  color:#fff;font-weight:600;transition:.15s;
  display:flex;flex-direction:column;align-items:center;gap:3px}
.w-go:hover{background:#4480ff}
.w-cost{font-style:normal;font-size:10.5px;font-weight:400;opacity:.75}
.work-head .w-tag{font-style:normal;font-size:10px;color:var(--dim);
  background:var(--panel2);border-radius:5px;padding:2px 6px;flex:0 0 auto}
.work-head .w-tag.hot{color:#ff9ec4;background:rgba(224,86,138,.18)}
.w-bar{flex:0 0 auto;border-top:1px solid rgba(255,255,255,.08);
  background:rgba(20,23,29,.94);padding:12px;max-height:48%;overflow-y:auto}
.w-replies{display:flex;flex-direction:column;gap:7px}
.w-result{display:flex;flex-direction:column;gap:10px;align-items:center}
.w-pay{color:var(--ok);font-size:18px}

/* ================= KAMERA ================= */

.cam{display:flex;flex-direction:column;gap:10px;padding:14px}
.cam-view{border-radius:14px;overflow:hidden;background:#000;border:1px solid var(--line)}
.cam-preview{max-height:260px;object-fit:contain}
.cam-empty{min-height:190px;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:10px;color:var(--dim)}
.cam-empty span{color:var(--bad);font-size:13px;animation:blink 1.8s infinite}
.cam-empty em{font-style:normal;font-size:12px;text-align:center;padding:0 24px;line-height:1.5}
.cam-h{margin:6px 2px 0;font-size:11px;letter-spacing:1.1px;text-transform:uppercase;color:var(--dim)}
.cam-note{margin:4px 2px 0;font-size:11px;color:#5b6270;font-style:italic;text-align:center}
.cam-opt{display:flex;align-items:center;gap:12px;text-align:left;width:100%;
  padding:12px;border-radius:13px;background:var(--panel2);border:1px solid var(--line);transition:.15s}
.cam-opt+.cam-opt{margin-top:8px}
.cam-opt:hover:not(:disabled){border-color:var(--bad);background:rgba(255,95,107,.08)}
.cam-opt:disabled{cursor:default}
/* Already filmed: still listed, visibly spent */
.cam-opt.used{opacity:.5;border-style:dashed}
/* Thresholds not met yet */
.cam-opt.shut{opacity:.55}

.cam-ic{font-size:22px;flex:0 0 auto;line-height:1.2;width:26px;text-align:center}
.cam-txt{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.cam-txt b{font-size:13px}
.cam-txt em{font-style:normal;font-size:11.5px;color:var(--dim);line-height:1.4}

.cam-rec{flex:0 0 auto;align-self:center;font-size:10px;font-weight:700;
  letter-spacing:1.1px;color:var(--bad)}
.cam-rec.done{color:var(--ok);font-weight:600;letter-spacing:.4px}
.cam-lock{flex:0 0 auto;align-self:center;font-size:13px;opacity:.7}

/* A scene that is simply not available tonight */
.cam-wait{margin:0 0 10px;padding:9px 11px;border-radius:10px;font-size:11.5px;
  color:var(--dim);background:rgba(255,255,255,.04);border:1px solid var(--line)}

/* ================= GLIMPSE ================= */

.gram{padding:0}
.gram-crown{font-size:20px;line-height:1;filter:drop-shadow(0 2px 6px rgba(232,195,60,.45))}
.gram-logo{font-size:17px;letter-spacing:-.3px;
  background:linear-gradient(45deg,#f7d35a,#e8c33c 45%,#c8971f);
  -webkit-background-clip:text;background-clip:text;color:transparent}
.gram{padding:12px}

/* abonelik kademeleri */
.tier-row{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.tier{display:flex;flex-direction:column;gap:2px;text-align:left;width:100%;
  padding:11px 13px;border-radius:13px;background:var(--panel2);
  border:1px solid var(--line);transition:.15s;position:relative}
.tier:hover:not(:disabled){border-color:var(--c)}
.tier b{font-size:14px;color:var(--c)}
.tier em{font-style:normal;font-size:11.5px;color:var(--dim)}
.tier i{font-style:normal;font-size:11px;color:var(--txt);margin-top:3px}
.tier.on{border-color:var(--c);background:color-mix(in srgb,var(--c) 12%,transparent)}
.tier.on i{color:var(--ok)}
.tier.poor i{color:var(--bad)}

/* ================= DREAM ================= */

/* margin:auto on the wrap INSTEAD of justify-content:center.
   Long content stays scrollable, short content stays centred.
   Centred flex clips the top of anything that overflows, which put
   the button out of reach. */
.dream-screen{background:#05060a;align-items:center;padding:16px;overflow-y:auto}
.dream-wrap{width:100%;margin:auto 0;display:flex;flex-direction:column;
  align-items:center;gap:14px;animation:appIn .5s ease}
.dream-video{width:100%;max-height:min(52vh,380px);object-fit:contain;
  background:#000;border-radius:14px;filter:saturate(.75) contrast(1.05)}
.dream-text{margin:0;font-size:13px;line-height:1.6;color:#aab3c4;
  font-style:italic;text-align:center}

/* ================= DAY SUMMARY ================= */

/* Long summaries must scroll or the "Day N" button at the bottom
   cannot be reached. Centring is handled by margin:auto. */
.ds-screen{background:radial-gradient(ellipse at 50% 30%,#1b2130,#0b0d12 75%);
  align-items:center;padding:18px;overflow-y:auto}
.ds-wrap{width:100%;margin:auto 0;display:flex;flex-direction:column;
  align-items:center;gap:14px;animation:appIn .3s ease}
.ds-kicker{font-size:10px;letter-spacing:2px;text-transform:uppercase;color:var(--dim)}
.ds-day{margin:0;font-size:34px;font-weight:300;letter-spacing:-.5px}

.ds-lines{width:100%;display:flex;flex-direction:column;gap:6px}
.ds-lines p{margin:0;font-size:12.5px;line-height:1.5;color:#cfd6e2;
  padding:8px 11px;border-radius:9px;background:rgba(255,255,255,.04);
  border-left:2px solid rgba(255,255,255,.14)}

.ds-money{width:100%;display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.ds-money div{background:rgba(255,255,255,.05);border-radius:11px;
  padding:10px 4px;text-align:center}
.ds-money b{display:block;font-size:15px}
.ds-money b.in{color:var(--ok)}
.ds-money b.out{color:var(--bad)}
.ds-money span{font-size:9.5px;text-transform:uppercase;letter-spacing:.8px;color:var(--dim)}

.ds-stats{display:flex;gap:16px}
.ds-stat{text-align:center}
.ds-stat b{display:block;font-size:15px}
.ds-stat span{font-size:9.5px;text-transform:uppercase;letter-spacing:.8px;color:var(--dim)}

.ds-coming{margin:0;font-size:11.5px;color:var(--gold);text-align:center}

/* ================= END OF CONTENT ================= */
.end-screen{background:radial-gradient(ellipse at 50% 25%,#2a1f33,#0b0d12 78%);
  align-items:center;padding:20px;overflow-y:auto}
.end-wrap{width:100%;margin:auto 0;display:flex;flex-direction:column;
  align-items:center;gap:12px;text-align:center;animation:appIn .35s ease}
.end-kicker{font-size:10px;letter-spacing:2px;text-transform:uppercase;color:var(--gold)}
.end-h{margin:0;font-size:27px;font-weight:300;letter-spacing:-.4px}
.end-p{margin:0;font-size:12.5px;line-height:1.6;color:#cfd6e2}
.end-p.dim{color:var(--dim);font-size:11.5px}
/* Rating prompt: visible without begging */
.end-p.rate{margin-top:2px;padding:7px 10px;border-radius:9px;font-size:11.5px;
  background:rgba(232,195,60,.08);border:1px solid rgba(232,195,60,.22);color:#e5d3a0}
/* A milestone is not an ending: blue rather than purple, so it does
   not read as a finish line */
.end-screen.milestone{background:radial-gradient(ellipse at 50% 25%,#1b2a3a,#0b0d12 78%)}
/* Debt ending: red, and the only screen in the game that is a loss */
.end-screen.gameover{background:radial-gradient(ellipse at 50% 25%,#3a1b20,#0b0d12 78%)}
.end-screen.gameover .end-kicker{color:var(--bad)}
.end-btn.back{border-color:var(--accent);color:#9ecbff}
.end-btn.danger{border-color:#4a2a2e;color:#c98b91}
.end-btn.danger:hover{border-color:var(--bad);color:var(--bad)}
.end-btns{width:100%;display:flex;flex-direction:column;gap:8px;margin-top:4px}
.end-btn{display:block;padding:11px;border-radius:11px;font-size:12.5px;
  font-weight:600;text-decoration:none;color:#fff;transition:.15s}
.end-btn.patreon{background:#e0568a}
.end-btn.patreon:hover{background:#ee6c9d}
.end-btn.discord{background:#5865f2}
.end-btn.discord:hover{background:#6d78ff}
.end-btn.itch{background:#fa5c5c}
.end-btn.itch:hover{background:#ff7373}

/* ================= CRATE (the shop) ================= */
/* Category tabs across the top of Crate */
.sh-tabs{display:flex;gap:4px;padding:8px 10px 0;flex:0 0 auto}
.sh-tab{flex:1;padding:8px 4px;border-radius:9px 9px 0 0;font-size:11px;
  color:var(--dim);border:1px solid var(--line);border-bottom:0;
  background:var(--panel2);white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;transition:.15s}
.sh-tab:hover{color:var(--txt)}
.sh-tab.on{color:var(--txt);background:rgba(255,255,255,.06);
  border-color:#39414f;font-weight:600}

/* Your own wallpaper swatch */
.wall.own{background-size:cover;background-position:center}
.sh-row{display:flex;align-items:flex-start;gap:11px;padding:11px;
  border-radius:12px;background:var(--panel2);border:1px solid var(--line);
  margin-bottom:8px}
.sh-row.has{opacity:.6;border-style:dashed}
.sh-ic{font-size:24px;flex:0 0 auto;line-height:1.2}
.sh-mid{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.sh-mid b{font-size:13px}
.sh-mid em{font-style:normal;font-size:11.5px;color:var(--dim);line-height:1.4}
.sh-perk{font-style:normal;font-size:10.5px;color:var(--ok);margin-top:2px}
.sh-perk.unlock{color:var(--bad)}
.sh-eta{font-style:normal;font-size:10.5px;color:#5b6270}
.sh-buy{flex:0 0 auto;align-self:center;padding:7px 13px;border-radius:9px;
  font-size:12px;font-weight:600;background:var(--out);color:#fff;transition:.15s}
.sh-buy:hover:not(:disabled){background:#4480ff}
.sh-buy.poor{background:var(--panel2);border:1px solid var(--bad);
  color:var(--bad);cursor:default}
.sh-state{flex:0 0 auto;align-self:center;font-size:10.5px;letter-spacing:.6px;
  text-transform:uppercase}
.sh-state.owned{color:var(--ok)}
.sh-state.coming{color:var(--gold);text-align:right;max-width:80px;line-height:1.3}

/* Glimpse sekmeleri (Watch / Studio) */
.gtab:hover{color:var(--txt)}
/* Studio: upload rows */
.up-row{display:flex;align-items:center;gap:8px;margin-bottom:7px;
  padding:9px 10px;border-radius:11px;background:var(--panel2);border:1px solid var(--line)}
.up-name{flex:1;min-width:0;font-size:12.5px;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.up-btns{display:flex;gap:4px;flex:0 0 auto}
.up-btn{padding:4px 8px;border-radius:7px;font-size:10.5px;font-weight:600;
  color:var(--c);border:1px solid var(--c);background:transparent;transition:.15s}
.up-btn:hover{background:var(--c);color:#0b0d11}
.up-live{display:flex;align-items:center;gap:8px;padding:6px 2px;font-size:11.5px;
  border-bottom:1px solid rgba(255,255,255,.05)}
.up-live i{font-style:normal;font-size:9px;font-weight:700;color:#0b0d11;
  padding:1px 6px;border-radius:4px;text-transform:uppercase}
.up-live span{flex:1;min-width:0;color:var(--dim);overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.up-live em{font-style:normal;color:#5b6270;font-size:10.5px}
.w-go.flat{background:var(--panel2);border:1px solid var(--line);color:var(--dim)}

/* urgent ticket: the screen shifts red */
.work-game.urgent .w-from{color:var(--bad)}
.work-game.urgent #w-timer{background:var(--bad)}
.work-game.urgent .w-card p{color:#fff}

/* One button per tier, each pulling only from its own shelf */
.porn-shelves{display:flex;flex-direction:column;gap:8px;width:100%;max-width:260px}
.porn-btn{display:flex;flex-direction:column;gap:2px;padding:13px 16px;
  border-radius:13px;background:var(--panel2);border:1px solid var(--line);
  text-align:center;transition:.15s}
.porn-btn b{font-size:13.5px;color:var(--c,var(--txt))}
.porn-btn i{font-style:normal;font-size:10.5px;color:var(--dim)}
.porn-btn:hover:not(:disabled){border-color:var(--c,var(--accent));
  background:rgba(255,255,255,.05);transform:translateY(-1px)}
.porn-btn.shut{opacity:.4;cursor:default}

/* random clip: the button area */
.porn-stage{display:flex;flex-direction:column;gap:10px;margin-bottom:18px}
.porn-stage.empty-stage{align-items:center;text-align:center;
  padding:26px 14px;border-radius:16px;
  background:rgba(255,255,255,.03);border:1px dashed var(--line)}
.porn-icon{font-size:40px;filter:drop-shadow(0 3px 10px rgba(232,195,60,.4))}
.w-go.big{padding:16px;font-size:15px}
.porn-note{margin:0;font-size:11.5px;color:var(--dim);line-height:1.5;max-width:230px}

/* clip overlay: opens above the app */
.porn-modal{position:absolute;inset:0;z-index:30;padding:14px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(4,5,8,.95);backdrop-filter:blur(8px);
  animation:pop .2s ease}
.pm-box{width:100%;display:flex;flex-direction:column;gap:10px}
.pm-video{width:100%;max-height:min(62vh,430px);
  object-fit:contain;background:#000;border-radius:14px}
.pm-btns{display:flex;flex-direction:column;gap:7px}
.pm-title{margin:0;text-align:center;font-size:11px;letter-spacing:1.2px;
  text-transform:uppercase;color:var(--dim)}
.pm-title.done{color:var(--gold)}
.w-go.cum{background:var(--bad)}
.w-go.cum:hover{background:#ff7078}

/* ================= WALLET ================= */

.wal-big{background:rgba(67,209,127,.09);border:1px solid rgba(67,209,127,.3);
  border-radius:14px;padding:16px;text-align:center;margin-bottom:14px}
.wal-big span{display:block;font-size:10px;letter-spacing:1.2px;
  text-transform:uppercase;color:var(--dim)}
.wal-big b{display:block;font-size:32px;color:var(--ok);margin-top:4px}

.bill{display:flex;align-items:center;gap:8px;padding:9px 11px;margin-bottom:6px;
  border-radius:10px;background:var(--panel2);border:1px solid var(--line)}
.bill.now{border-color:var(--bad);background:rgba(255,95,107,.08)}
.bill b{flex:1;min-width:0;font-size:12.5px;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.bill em{font-style:normal;font-size:11px;color:var(--dim)}

.led{display:flex;align-items:center;gap:8px;padding:8px 2px;
  border-bottom:1px solid rgba(255,255,255,.05)}
.led-t{flex:1;min-width:0;font-size:12.5px;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.led-d{font-size:10px;color:#5b6270;white-space:nowrap}
.led b{font-size:12.5px;min-width:52px;text-align:right}
.led b.in{color:var(--ok)}
.led b.out{color:var(--bad)}

/* ================= SETTINGS ================= */

.set-row{display:flex;gap:6px;margin-bottom:4px}
.set-row input{flex:1;min-width:0;background:#0f1218;border:1px solid var(--line);
  color:var(--txt);border-radius:9px;padding:9px 11px;font:inherit;font-size:13px}
.set-btns{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:4px}
.set-btns .up-btn{flex:1;padding:9px 8px;font-size:11.5px;text-transform:capitalize}
.up-btn.on{background:var(--c);color:#0b0d11}
.wall-row{display:flex;gap:8px;margin-bottom:4px}
.wall{flex:1;height:52px;border-radius:11px;border:2px solid transparent;transition:.15s}
.wall:hover{border-color:var(--dim)}
.wall.on{border-color:var(--gold)}

/* message size and motion preference */
.msg{font-size:var(--msg-size,14px)}
body.no-motion *{animation:none !important;transition:none !important}

/* ================= LOOP (short video) ================= */

.screen.reels{background:#000;padding:0}
.rl-stage{position:relative;flex:1;min-height:0;overflow:hidden}

/* The clip is positioned rather than laid out, so the stage's height
   is the only thing deciding its size.

   max-height and border-radius have to be cleared explicitly: this
   element also carries .media, which caps chat videos at 340px. That
   cap was squashing full-screen clips into a square. */
.rl-video{position:absolute;inset:0;
  width:100%;height:100%;max-height:none;max-width:none;
  border-radius:0;background:#000;
  object-fit:contain}                 /* safe default until metadata lands */
.rl-video.tall{object-fit:cover}      /* portrait: fill the screen */
.rl-video.wide{object-fit:contain}    /* landscape: letterbox it */

/* Caption sits over the bottom of the clip, like the real thing.

   The gradient runs the full width. Stopping it short of the side
   buttons left a visible seam down the right of the bar. The text is
   kept clear of them with padding instead. */
.rl-over{position:absolute;left:0;right:0;bottom:0;
  padding:34px 62px 20px 14px;
  background:linear-gradient(to top,
    rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 45%, transparent 100%);
  pointer-events:none}
.rl-meta b{display:block;font-size:13px;font-weight:700;color:#fff}
.rl-meta p{margin:4px 0 0;font-size:12px;line-height:1.45;color:rgba(255,255,255,.85)}

.rl-side{position:absolute;right:8px;top:50%;transform:translateY(-50%);
  display:flex;flex-direction:column;align-items:center;gap:10px}
.rl-nav{width:40px;height:40px;border-radius:50%;font-size:14px;
  background:rgba(0,0,0,.45);border:1px solid rgba(255,255,255,.18);
  color:#fff;transition:.15s}
.rl-nav:hover:not(:disabled){background:rgba(255,255,255,.16)}
.rl-nav.off{opacity:.25;cursor:default}
.rl-count{font-size:11px;color:rgba(255,255,255,.8);font-weight:600}
.rl-count i{font-style:normal;color:rgba(255,255,255,.45)}


.screen.reels.empty-feed{display:grid;place-items:center;background:var(--panel)}
.rl-none{text-align:center;padding:26px}
.rl-none b{display:block;font-size:17px;margin-bottom:8px}
.rl-none p{margin:0;font-size:12.5px;color:var(--dim);line-height:1.6}

/* ================= GALLERY / NOTES / CALLS ================= */

.gal{display:block}
.gal-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}
.gal-h{margin:2px 0 9px;font-size:10.5px;letter-spacing:1.2px;text-transform:uppercase;color:var(--dim)}
.gal-h.ev{color:var(--bad)}
.cell.ev{border-color:rgba(255,95,107,.45);background:rgba(255,95,107,.07)}
.cell.ev .cell-ic{color:var(--bad)}
.cell{position:relative;aspect-ratio:1;border-radius:12px;background:#0c0f14;
  border:1px solid var(--line);overflow:hidden;
  display:flex;flex-direction:column;align-items:center;justify-content:flex-end;
  gap:6px;padding:10px}
.cell:hover{border-color:var(--accent)}
/* Gallery progress. Turns gold when everything in the build is found. */
.gal-count{font-size:11.5px;color:var(--dim)}
.gal-count.full{color:var(--gold);font-weight:600}
.gal-done{margin:0 0 10px;padding:9px 11px;border-radius:10px;font-size:11.5px;
  line-height:1.5;color:#e5d3a0;background:rgba(232,195,60,.08);
  border:1px solid rgba(232,195,60,.22)}

/* thumbnail: first frame of the clip, does not swallow taps */
.cell-art{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;pointer-events:none;opacity:.55}
.cell-ic{position:relative;z-index:1;margin-top:auto;font-size:26px;color:#fff;
  text-shadow:0 2px 10px rgba(0,0,0,.8)}
.cell-nm{position:relative;z-index:1;font-size:10.5px;color:#dbe1ec;text-align:center;
  line-height:1.3;text-shadow:0 1px 6px rgba(0,0,0,.9)}
.cell.ev .cell-ic{color:#ff8a92}

.notes{display:flex;flex-direction:column;gap:10px}
.note{background:rgba(255,255,255,.04);border-left:3px solid var(--accent);
  border-radius:8px;padding:10px 12px}
.note b{font-size:13px}
.note p{margin:3px 0 0;font-size:13px;color:var(--dim)}

/* whatever is holding the day open: top of the list, red frame */
.note.blocker{border:1px solid var(--bad);border-left-width:3px;
  background:rgba(255,95,107,.09);padding:11px 13px}
.note.blocker b{color:var(--bad)}
.note.blocker p{color:#e7eaf0}
.note.blocker em{display:block;margin-top:6px;font-style:normal;
  font-size:11px;color:var(--dim)}
/* it renders as a button, so alignment is restored here */
button.note.blocker{display:block;width:100%;text-align:left}
button.note.blocker.tap{cursor:pointer;transition:.15s}
button.note.blocker.tap:hover{background:rgba(255,95,107,.16);border-color:#ff8b93}

.screen.call{position:relative;background:#000;align-items:center;justify-content:flex-end}
.call-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;
  border-radius:0;max-height:none;z-index:0;background:#000}
.call-top{position:absolute;top:56px;left:0;right:0;z-index:2;display:flex;
  flex-direction:column;align-items:center;gap:8px;color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.8)}
.call-top b{font-size:22px}
.call-top em{font-style:normal;font-size:13px;opacity:.8}
.call-cap{position:relative;z-index:2;color:#fff;font-size:15px;margin:0 0 14px;
  background:rgba(0,0,0,.55);padding:8px 14px;border-radius:20px}
.call-btns{position:relative;z-index:2;padding-bottom:28px}
.cbtn{padding:12px 30px;border-radius:30px;font-weight:600;color:#fff}
.cbtn.red{background:#e2384a}

/* ============ LOWER DECK: narration and choices ============ */

#dock{position:relative;z-index:15;flex:0 0 auto;display:flex;flex-direction:column;
  max-height:52%;overflow-y:auto;background:rgba(12,14,19,.96);
  /* the scrollbar used to flash while the narration box painted */
  scrollbar-width:none;-ms-overflow-style:none}
#dock::-webkit-scrollbar{width:0;height:0;display:none}
#dock:not(:has(> :not(.hidden))){display:none}

#narration{margin:12px 12px 0;background:rgba(28,33,43,.92);
  border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:13px 15px;animation:pop .25s ease}
#narration p{margin:0;font-size:14px;line-height:1.55;color:#dbe1ec;font-style:italic}

#choices{display:flex;flex-direction:column;gap:7px;margin:12px 12px 0}
#dock>*:last-child{margin-bottom:12px}
.choice{position:relative;text-align:left;padding:11px 14px;border-radius:12px;font-size:13.5px;
  background:rgba(46,54,68,.92);border:1px solid #39414f;transition:.15s;width:100%}
.choice:hover:not(:disabled){background:var(--out);border-color:var(--out);transform:translateX(3px)}
.choice:disabled{cursor:default}
.choice.poor{opacity:.45}
.cost{float:right;margin-left:10px;font-style:normal;font-size:11px;color:var(--ok);
  background:rgba(67,209,127,.13);border-radius:6px;padding:1px 7px}
.cost.no{color:var(--bad);background:rgba(255,95,107,.13)}
.cost.vid{color:var(--accent);background:rgba(78,163,255,.13)}
.cost.vid.no{color:var(--bad);background:rgba(255,95,107,.13)}
.cost.pay{color:var(--gold);background:rgba(232,195,60,.14)}
.cam-note.gold{color:var(--gold)}

/* ============ toast / lightbox / bottom bar ============ */

#toast{position:absolute;top:50px;left:50%;transform:translateX(-50%);z-index:30;
  max-width:80%;text-align:center;background:rgba(20,24,32,.97);border:1px solid var(--line);
  padding:8px 16px;border-radius:20px;font-size:12px;animation:pop .2s ease}
.hidden{display:none !important}

.lightbox{position:absolute;inset:0;z-index:40;background:rgba(0,0,0,.94);
  display:grid;place-items:center;padding:16px}
.lb-media{max-height:80%;width:100%;object-fit:contain}

#homebar{position:relative;z-index:10;flex:0 0 26px;display:grid;place-items:center;
  background:rgba(14,16,21,.92);cursor:pointer}
#homebar .bar{width:114px;height:5px;border-radius:4px;background:#e7eaf0;opacity:.7}
#homebar:hover .bar{opacity:1}

/* ============================================================
   NARROW SCREENS / MOBILE
   
   Under 1100px the left panel narrows.
   Under 820px it becomes a drawer entirely: only the phone is left
   on screen, and it grows to fill the space without ever
   overflowing it.
   ============================================================ */

@media (max-width:1100px){
  #sidebar{width:240px;flex-basis:240px}
  #phone{--ph:min(700px,90vh)}
}

@media (max-width:820px){

  /* --- layout: no longer side by side, the phone stands alone --- */
  #app{display:block;height:100%}
  #stage{height:100%;width:100%;padding:0}

  /* --- left panel becomes a drawer sliding in from the left --- */
  #sidebar{
    position:fixed;z-index:60;top:0;left:0;height:100%;
    width:min(330px,88vw);flex:none;
    padding-top:60px;                       /* keep clear of the button */
    transform:translateX(-102%);
    transition:transform .22s cubic-bezier(.2,.85,.3,1);
    box-shadow:16px 0 44px rgba(0,0,0,.55);
    border-right:1px solid var(--line);
  }
  body.nav-open #sidebar{transform:none}

  /* --- dim the background while the drawer is open --- */
  #nav-backdrop{
    display:block;position:fixed;inset:0;z-index:55;
    background:rgba(0,0,0,.55);opacity:0;pointer-events:none;
    transition:opacity .22s ease;
  }
  body.nav-open #nav-backdrop{opacity:1;pointer-events:auto}

  /* --- hamburger: sits left of the phone's status bar --- */
  #nav-toggle{
    display:flex;flex-direction:column;justify-content:center;gap:4px;
    position:fixed;z-index:70;top:10px;left:10px;
    width:40px;height:40px;padding:0 10px;border-radius:12px;
    background:rgba(20,23,29,.72);border:1px solid var(--line);
    backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  }
  #nav-toggle span{display:block;height:2px;border-radius:2px;background:var(--txt);
    transition:transform .22s ease,opacity .18s ease}
  /* turns into a cross when open */
  body.nav-open #nav-toggle span:nth-child(1){transform:translateY(6px) rotate(45deg)}
  body.nav-open #nav-toggle span:nth-child(2){opacity:0}
  body.nav-open #nav-toggle span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

  /* --- phone: fit both dimensions at once, never overflow ---
     height fills the screen but width still has to fit, so min()
     takes whichever of the two is smaller. */
  #phone{
    --ph:min(calc(100vh - 16px), calc((100vw - 16px) / 0.46209));
    padding:6px;border-radius:32px;
    box-shadow:0 0 0 2px #2b303b,0 12px 30px rgba(0,0,0,.5);
  }
  #phone-screen{border-radius:26px}

  /* --- larger touch targets inside the drawer --- */
  .mini-btn{padding:10px 12px;font-size:12.5px}
  .nav-btn{width:52px;height:42px;font-size:16px}
  .time-btn{padding:13px}
  .link-btn{padding:12px 14px}

  /* iOS zooms the page when focusing an input with text under 16px,
     which shifts the phone out of place. 16px stops it. */
  .set-row input{font-size:16px}
}

/* On mobile browsers the address bar makes 100vh taller than the
   real viewport and the bottom of the phone gets cut off. Where dvh
   kullan. */
@supports (height:100dvh){
  @media (max-width:820px){
    #phone{--ph:min(calc(100dvh - 16px), calc((100vw - 16px) / 0.46209))}
  }
}

/* Landscape on a phone. The viewport is only a few hundred pixels
   tall, and sizing the phone from that height alone shrank it to
   about 180px wide: everything legible, nothing readable, and the
   dock along the bottom out of reach.

   So there is a floor on the height and the page is allowed to
   scroll instead. A phone you have to scroll past beats a phone you
   cannot read. */
@media (max-width:820px) and (orientation:landscape){
  body{overflow:auto}
  #app{height:auto;min-height:100%;align-items:flex-start}
  #phone{--ph:max(520px, calc(100vh - 8px));padding:5px;border-radius:26px;margin:4px auto}
  #phone-screen{border-radius:21px}
}
@supports (height:100dvh){
  @media (max-width:820px) and (orientation:landscape){
    #phone{--ph:max(520px, calc(100dvh - 8px))}
  }
}

/* Landscape and genuinely short: say so rather than let them fight
   a layout that cannot work. Rotating dismisses it, and it is only
   ever a suggestion, the game underneath is still there. */
@media (max-width:820px) and (orientation:landscape) and (max-height:460px){
  #rotate-note{
    position:fixed;left:0;right:0;bottom:0;z-index:200;
    display:flex;align-items:center;gap:10px;justify-content:center;
    padding:9px 14px;background:var(--out);color:#fff;
    font-size:12.5px;font-weight:600;
    box-shadow:0 -6px 18px rgba(0,0,0,.4)
  }
}

/* No grey tap highlight on touch devices */
@media (hover:none){
  *{-webkit-tap-highlight-color:transparent}
  .link-btn:hover,.choice:hover,.row:hover{transform:none}
}

/* --- unread message marker --- */
.list .row.unread b{color:#fff}
.list .row .dot{width:8px;height:8px;border-radius:50%;background:var(--out);flex:0 0 8px}
.list .row.unread{background:rgba(47,109,246,.06)}

/* --- the "why you can't" line under a choice --- */
.choice .why{display:block;margin-top:3px;font-style:normal;font-size:10.5px;color:var(--dim)}
.choice.poor .why{color:var(--bad)}
/* Takeable, but it puts you under. Marked so it cannot be pressed
   by accident the way an affordable option can. */
.choice.risky{border-color:rgba(255,95,107,.45);background:rgba(255,95,107,.07)}
.choice.risky .why{color:var(--bad)}
.cost.debt{color:var(--bad);border-color:rgba(255,95,107,.45)}
/* Directions shown when nothing on screen can be clicked.
   A screen of greyed-out options reads as a dead end, so this
   names the next step and the way out underneath it. */
.stuck-help{
  margin:0 0 8px;padding:9px 11px;border-radius:10px;
  background:rgba(255,170,60,.09);border:1px solid rgba(255,170,60,.30);
  font-size:11.5px;line-height:1.45}
.stuck-help b{display:block;margin-bottom:3px;color:#ffc36b;font-size:11.5px}
.stuck-help span{display:block;color:var(--dim)}

.choice.leave{background:transparent;border-style:dashed;border-color:#39414f}
.choice.leave:hover{background:rgba(255,255,255,.05);border-color:var(--dim);transform:none}
.choice.leave .why{color:#5b6270}

/* ---------- CONTACT / PROFILE PAGE ----------
   Opened from the name at the top of a conversation. These are the
   protagonist's own notes, so it is set closer to Notes than to a
   social profile: no stats, no buttons, just what he knows. */
.hbtn.info{width:21px;height:21px;flex:0 0 21px;margin-left:7px;padding:0;
  border:1px solid var(--line);border-radius:50%;color:var(--dim);
  font-size:12px;font-weight:700;font-style:italic;line-height:19px;text-align:center}
.hbtn.info:hover{color:var(--txt);border-color:var(--dim);background:rgba(255,255,255,.06)}

.prof{padding:18px 16px 26px}
.prof-top{display:flex;flex-direction:column;align-items:center;gap:7px;
  padding:6px 0 20px;border-bottom:1px solid var(--line);margin-bottom:18px}
.prof-name{font-size:19px}
.prof-handle{font-size:12.5px;color:var(--dim)}

/* Only the people he knew before the game starts carry this. Everyone
   else was met on screen and does not need explaining. */
.prof-origin{margin:0 0 18px;padding:12px 14px;border-radius:12px;
  background:var(--panel2);border:1px solid var(--line)}
.prof-origin span{display:block;font-size:9.5px;letter-spacing:.8px;
  text-transform:uppercase;color:var(--dim);margin-bottom:6px}
.prof-origin p{margin:0;font-size:13.5px;line-height:1.65;color:var(--txt)}

.prof-who{margin:0 0 16px;font-size:14px;line-height:1.6;color:var(--txt)}
.prof-line{margin:0 0 13px;font-size:13.5px;line-height:1.7;color:var(--dim);
  padding-left:11px;border-left:2px solid var(--line)}
.prof-line:last-of-type{margin-bottom:0}

.prof-stat{margin:18px 0 0;padding-top:14px;border-top:1px solid var(--line);
  font-size:12px;color:var(--dim)}
.prof-stat b{color:var(--txt)}

.prof-empty{margin:0;font-size:13.5px;line-height:1.7;color:var(--dim);
  text-align:center;padding:22px 8px}

/* ---------- HINT BUBBLE (data/hints.js) ----------
   Sits over the phone and points at something already on screen.
   Never blocks: the story still advances behind it. */
.coach{
  position:fixed;left:12px;top:60px;z-index:120;max-width:250px;
  padding:12px 14px 11px;border-radius:14px;
  background:var(--out);color:#fff;
  box-shadow:0 10px 26px rgba(0,0,0,.5);
  /* Starts invisible and untransformed. The transform only comes in
     with .in, after it has been positioned, because a transform on
     the box is included in the measurement used to position it. */
  opacity:0;transition:opacity .2s ease-out,transform .2s ease-out;
  transform:translateY(4px)
}
.coach.in{opacity:1;transform:none}
.coach p{margin:0 0 10px;font-size:12.5px;line-height:1.55}
.coach-ok{
  display:block;margin-left:auto;padding:5px 12px;border-radius:8px;
  background:rgba(255,255,255,.18);color:#fff;font-size:11.5px;font-weight:600;
}
.coach-ok:hover{background:rgba(255,255,255,.3)}
/* A step waiting on an action has no button, so the text is the
   whole bubble and does not need a gap under it. */
.coach.waiting p{margin:0}

/* the tail, aimed at the target rather than at the middle of the box */
.coach::after{
  content:"";position:absolute;left:var(--tail,24px);margin-left:-7px;
  border:7px solid transparent;
}
.coach.above::after{top:100%;border-top-color:var(--out)}
.coach.below::after{bottom:100%;border-bottom-color:var(--out)}


/* ---------- OPENING CARD ----------
   Once, before day one. Deliberately plain: it is the only place in
   the game that speaks to the player rather than to the character. */
/* Same trap as the dream and summary screens: centred flex clips the
   top of anything taller than the box and it cannot be scrolled back
   to, so the heading disappears and the Start button drops out of
   reach on a short window. Centring is done with margin:auto, which
   collapses instead of clipping. */
.intro-screen{
  display:flex;align-items:flex-start;justify-content:center;
  padding:22px 20px;overflow-y:auto;background:var(--bg)
}
.intro-wrap{width:100%;max-width:330px;margin:auto 0}
.intro-kicker{
  display:block;font-size:10px;letter-spacing:1.4px;text-transform:uppercase;
  color:var(--out);margin-bottom:9px
}
.intro-h{margin:0 0 14px;font-size:23px;line-height:1.25}
.intro-p{margin:0 0 16px;font-size:13px;line-height:1.65;color:var(--dim)}
.intro-p.dim{font-size:11.5px;color:#5b6270;margin-top:18px}
.intro-p.sm{margin-top:8px}
.intro-nameh{margin:22px 0 8px;font-size:11px;letter-spacing:.8px;
  text-transform:uppercase;color:var(--dim);font-weight:700}
.intro-name{display:flex}
.intro-name input{
  flex:1;padding:11px 13px;border-radius:10px;
  background:#171b23;border:1px solid #2b323d;color:var(--txt);
  font:inherit;font-size:14px;text-align:center;letter-spacing:.3px}
.intro-name input:focus{outline:none;border-color:var(--accent)}
.intro-name input::placeholder{color:#4d5461}

.intro-rows{display:flex;flex-direction:column;gap:11px;margin:18px 0 4px}
.intro-row{
  padding:11px 13px;border-radius:12px;
  background:var(--panel);border:1px solid var(--line)
}
.intro-row b{display:block;font-size:13px;margin-bottom:4px;color:var(--txt)}
.intro-row span{display:block;font-size:12px;line-height:1.6;color:var(--dim)}

/* ---------- STACK : the app store ----------
   Deliberately dry. It is a utility on a phone, not a shopfront. */
.store{padding:14px 14px 22px}
.st-app{
  display:flex;align-items:center;gap:12px;padding:12px 0;
  border-bottom:1px solid var(--line)
}
.st-app:last-child{border-bottom:0}
.st-ic{
  position:relative;width:46px;height:46px;flex:0 0 46px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;overflow:hidden;
  font-size:20px;color:#fff
}
.st-ic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.st-mid{flex:1;min-width:0}
.st-mid b{display:block;font-size:14px}
.st-mid u{
  display:inline-block;margin:2px 0 3px;font-size:9px;letter-spacing:.7px;
  text-transform:uppercase;color:var(--dim);text-decoration:none
}
.st-mid em{display:block;font-size:11.5px;line-height:1.5;color:var(--dim);font-style:normal}
.st-get{
  flex:0 0 auto;padding:7px 16px;border-radius:20px;background:var(--out);
  color:#fff;font-size:12px;font-weight:600
}
.st-get:hover{background:#3f7bff}
.st-get.on{background:var(--panel2);border:1px solid var(--line);color:var(--dim)}

/* the download ring, --p is the percentage */
.st-ring{
  position:relative;flex:0 0 auto;width:30px;height:30px;border-radius:50%;
  background:conic-gradient(var(--out) calc(var(--p,0) * 1%), var(--line) 0)
}
.st-ring i{
  position:absolute;inset:4px;border-radius:50%;background:var(--panel);
  display:block
}
.st-ring i::after{
  content:"";position:absolute;left:50%;top:50%;width:8px;height:8px;
  margin:-4px 0 0 -4px;border-radius:1px;background:var(--out)
}
.st-app.downloading .st-mid b{color:var(--out)}

/* a freshly installed app landing on the home screen */
.app-icon.landing .ic{animation:appLand .5s cubic-bezier(.2,1.5,.4,1)}
@keyframes appLand{
  0%{transform:scale(0);opacity:0}
  60%{transform:scale(1.12);opacity:1}
  100%{transform:none}
}

/* ---------- REARRANGING THE HOME SCREEN ----------
   Press and hold an icon, then move it. The icons that get out of the
   way are animated from JS (UI.dragReflow), so the button's own
   transform has to stay free: the wobble goes on the tile inside it,
   never on .app-icon itself. */
.app-grid.rearranging{touch-action:none}
/* The tile and its artwork must not be able to receive the press
   themselves: an <img> starts the browser's own drag, and either way
   the button is what the gesture is bound to. */
.app-icon .ic,
.app-icon .ic img{-webkit-user-drag:none;user-drag:none}
.app-icon .ic img{pointer-events:none}
body.rearranging{cursor:grabbing}
body.rearranging .coach.hidden{opacity:0;pointer-events:none}
.app-grid.rearranging .app-icon:not(.drag-lift) .ic{
  animation:appWobble .34s ease-in-out infinite alternate
}
@keyframes appWobble{from{transform:rotate(-1.6deg)}to{transform:rotate(1.6deg)}}

.app-icon.drag-lift{
  /* no pointer-events:none here: this element holds the pointer
     capture, and taking it out of hit testing risks losing the
     gesture halfway through */
  position:relative;z-index:20;
  filter:drop-shadow(0 12px 20px rgba(0,0,0,.6));
  transition:none !important
}
.app-icon.drag-lift .nm{opacity:.5}

/* Hidden everywhere except the short-landscape case above. */
#rotate-note{display:none}

/* ---------- OUT : leaving the flat ----------
   Lives in the side panel, not on the phone, because the phone
   cannot do this. */
#out-block.hidden{display:none}
.time-btn.out{background:var(--panel2);border-color:var(--line)}
.time-btn.out:hover:not(:disabled){background:#252b36;border-color:#39414f}
.time-btn.out.off{opacity:.55}

/* The picker sits over the page, not over the phone: going out is
   the one thing the phone cannot do, so it should not look like
   something happening on it. */
.out-modal{
  position:fixed;inset:0;z-index:150;display:flex;
  align-items:center;justify-content:center;padding:20px;
  background:rgba(6,8,12,.72);backdrop-filter:blur(3px);
  animation:outIn .16s ease-out
}
@keyframes outIn{from{opacity:0}to{opacity:1}}
.out-sheet{
  width:100%;max-width:380px;padding:20px;border-radius:18px;
  background:var(--panel);border:1px solid var(--line);
  box-shadow:0 24px 60px rgba(0,0,0,.6)
}
.out-sheet h3{margin:0 0 6px;font-size:16px}
.out-sub{margin:0 0 16px;font-size:12px;line-height:1.6;color:var(--dim)}
.out-rows{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.out-sheet .tp-btn{display:block;width:100%;text-align:center}

.out-row{
  display:block;width:100%;text-align:left;padding:10px 12px;border-radius:12px;
  background:var(--panel2);border:1px solid var(--line);
  transition:border-color .15s ease,background .15s ease
}
.out-row:hover:not(:disabled){background:#252b36;border-color:#39414f}
.out-row b{display:block;font-size:13px}
.out-row em{display:block;margin-top:2px;font-size:11px;line-height:1.45;
  color:var(--dim);font-style:normal}
.out-row i{display:block;margin-top:4px;font-size:10.5px;letter-spacing:.4px;
  color:var(--out);font-style:normal}
.out-row.off{opacity:.5}
.out-row.off i{color:var(--dim)}

/* the screen you get back from a night out */
/* This one had no overflow at all, which was survivable while the
   screen was three lines of text. It now carries a clip, so a long
   night could push the Home button past the bottom edge with no way
   to reach it. */
.out-screen{
  display:flex;align-items:flex-start;justify-content:center;
  padding:24px 20px;overflow-y:auto;background:var(--bg)
}
.out-wrap{width:100%;max-width:320px;text-align:center;margin:auto 0}
.out-kicker{
  display:block;font-size:10px;letter-spacing:2px;text-transform:uppercase;
  color:var(--out);margin-bottom:14px
}
.out-line{margin:0 0 22px;font-size:14.5px;line-height:1.7;color:var(--txt)}
.out-clip{margin:0 0 20px;border-radius:12px;overflow:hidden;background:#000}
.out-clip .out-media{display:block;width:100%;max-height:300px;object-fit:contain}
.out-stats{
  display:flex;justify-content:center;gap:22px;margin-bottom:24px;flex-wrap:wrap
}
.out-stat b{display:block;font-size:19px}
.out-stat span{
  display:block;font-size:9.5px;letter-spacing:.8px;text-transform:uppercase;
  color:var(--dim);margin-top:2px
}
