/* Call Center Cussy. Retro desktop built from scratch: no fonts, no images but the agent art. */
:root {
  --ink: #15123a;
  --blue: #1b2bc4;
  --blue-hi: #3d55f0;
  --chrome: #cfcbe6;
  --chrome-hi: #f6f4ff;
  --chrome-lo: #7c77a8;
  --paper: #fbfaff;
  --lav: #c9c6f5;
  --lav-pale: #e9e7ff;
  --orange: #f7991c;
  --green: #35e04b;
  --green-deep: #0f7a26;
  --yellow: #ffe44d;
  --red: #e0322f;
  --night: #17153f;
  --ui: Tahoma, Verdana, "DejaVu Sans", "Segoe UI", Geneva, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --bar-h: 52px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--ui); font-size: 15px; line-height: 1.4; color: var(--ink);
  background: var(--ink);
}
p, h1, h2, h3, dl, dd, ul { margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.px { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 40; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 10px; background: var(--chrome); border-bottom: 2px solid var(--ink);
  box-shadow: inset 0 2px 0 var(--chrome-hi), inset 0 -2px 0 var(--chrome-lo);
}
.bar-logo { color: var(--blue); font-size: 16px; min-width: 0; }
.bar-right { display: flex; align-items: center; gap: 8px; flex: none; }
.bar-clock {
  font-size: 13px; font-weight: 700; padding: 5px 8px; background: var(--paper);
  border: 2px solid; border-color: var(--chrome-lo) var(--chrome-hi) var(--chrome-hi) var(--chrome-lo);
  white-space: nowrap;
}
.chip-btn, .btn {
  min-height: 44px; padding: 8px 14px; font-weight: 700; font-size: 14px;
  background: var(--chrome); border: 2px solid var(--ink);
  box-shadow: inset 2px 2px 0 var(--chrome-hi), inset -2px -2px 0 var(--chrome-lo);
  border-radius: 0; text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
}
.chip-btn { font-size: 13px; padding: 6px 10px; }
.chip-btn[aria-pressed="true"], .btn-mute[aria-pressed="true"] { background: var(--green); }
.btn:active, .chip-btn:active, .role:active, .choice:active {
  box-shadow: inset -2px -2px 0 var(--chrome-hi), inset 2px 2px 0 var(--chrome-lo); transform: translate(1px, 1px);
}
.btn:disabled { opacity: .45; cursor: default; }
.btn-go { background: var(--green); }
.btn-wide { width: 100%; min-height: 52px; font-size: 17px; }
.btn-hang { background: var(--red); color: #fff; box-shadow: inset 2px 2px 0 #ff8d87, inset -2px -2px 0 #8c1412; }
.btn-link { width: 100%; background: var(--lav); }

/* ---------- desktop wallpaper ---------- */
.desk {
  position: relative; min-height: calc(100vh - var(--bar-h)); min-height: calc(100dvh - var(--bar-h));
  padding: 12px 10px 28px; display: flex; flex-direction: column; gap: 16px; overflow: hidden;
  background:
    radial-gradient(ellipse 75% 210px at 20% 100%, #2fb344 0 99.5%, transparent 100%),
    radial-gradient(ellipse 85% 260px at 88% 100%, #23963a 0 99.5%, transparent 100%),
    linear-gradient(to bottom, #2437d0 0 16%, #3048df 16% 32%, #4263ee 32% 48%, #5d82f6 48% 64%, #7fa2fa 64% 80%, #a3c0fc 80% 100%);
}
.desk > * { position: relative; }
.sky { position: absolute; inset: 0; pointer-events: none; }
.cloud {
  display: none; position: absolute; width: 10px; height: 10px; background: #fff; opacity: .92;
  box-shadow: 10px 0 #fff, 20px 0 #fff, -10px 10px #fff, 0 10px #fff, 10px 10px #fff, 20px 10px #fff, 30px 10px #fff, 40px 10px #fff,
    -20px 20px #e4e8ff, -10px 20px #e4e8ff, 0 20px #e4e8ff, 10px 20px #e4e8ff, 20px 20px #e4e8ff, 30px 20px #e4e8ff, 40px 20px #e4e8ff, 50px 20px #e4e8ff;
}
.c1 { top: 70px; left: 62%; }
.c2 { top: 300px; left: 8%; transform: scale(1.4); }
.c3 { top: 520px; left: 78%; transform: scale(.8); }

/* ---------- desktop icons ---------- */
.icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.icon {
  background: none; border: 2px solid transparent; padding: 6px 2px; min-height: 76px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.icon-label {
  white-space: nowrap; font-size: 12.5px; font-weight: 700; color: #fff; padding: 1px 5px; background: rgba(21, 18, 58, .72);
}
.icon:focus-visible .icon-label, .icon:active .icon-label { background: var(--blue); }
.icon-art { width: 40px; height: 34px; position: relative; border: 2px solid var(--ink); background: var(--paper); box-shadow: 3px 3px 0 rgba(21, 18, 58, .45); }
.ia-phone { border-top-width: 9px; border-top-color: var(--blue); }
.ia-phone::after { content: ""; position: absolute; left: 8px; top: 5px; width: 20px; height: 8px; background: var(--green); border: 2px solid var(--ink); border-radius: 8px 8px 0 0; }
.ia-note { background: var(--yellow); }
.ia-note::after { content: ""; position: absolute; left: 6px; right: 6px; top: 7px; height: 2px; background: var(--ink); box-shadow: 0 6px 0 var(--ink), 0 12px 0 var(--ink); }
.ia-coin { width: 38px; height: 38px; border-radius: 50%; background: var(--lav); }
.ia-coin::after { content: "C"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 18px; }

/* ---------- windows ---------- */
.win {
  background: var(--chrome); border: 2px solid var(--ink); padding: 4px;
  box-shadow: inset 2px 2px 0 var(--chrome-hi), inset -2px -2px 0 var(--chrome-lo), 6px 6px 0 rgba(21, 18, 58, .45);
  scroll-margin-top: calc(var(--bar-h) + 8px);
}
.tb {
  display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 0 0 8px; color: #fff;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, .10) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, var(--blue) 0%, var(--blue) 45%, var(--blue-hi) 100%);
}
.tb-red { background: linear-gradient(90deg, #a81512, var(--red)); }
.tb-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-ico { width: 14px; height: 14px; flex: none; border: 2px solid #fff; background: var(--green); }
.ti-note { background: var(--yellow); }
.ti-coin { background: var(--lav); border-radius: 50%; }
.ti-cam { background: var(--red); border-radius: 50%; }
.tb-btn { flex: none; width: 44px; height: 34px; padding: 0; background: none; border: 0; display: grid; place-items: center; }
.tb-btn span {
  width: 26px; height: 24px; display: grid; place-items: center; font-weight: 700; font-size: 15px; line-height: 1;
  color: #fff; background: var(--red); border: 2px solid var(--ink);
  box-shadow: inset 2px 2px 0 #ff8d87, inset -2px -2px 0 #8c1412;
}
.tb-live { font-size: 11px; font-weight: 700; margin-right: 8px; padding: 1px 6px; background: var(--red); border: 2px solid #fff; }
.win-body {
  background: var(--paper); margin-top: 4px;
  border: 2px solid; border-color: var(--chrome-lo) var(--chrome-hi) var(--chrome-hi) var(--chrome-lo);
}
.fine { font-size: 12.5px; color: #3e3a6b; }

.crt { position: relative; overflow: hidden; background: var(--night); }
.crt::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(21, 18, 58, .20) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 40px rgba(21, 18, 58, .45);
}

/* ---------- start window ---------- */
.start-art img { width: 100%; height: 230px; object-fit: cover; object-position: 50% 22%; }
.start-copy { padding: 14px 12px 12px; display: grid; gap: 12px; }
.start-lede { font-size: 18px; font-weight: 700; }
.roles { display: grid; gap: 10px; }
.role {
  text-align: left; padding: 12px 14px; min-height: 76px; display: grid; gap: 3px; align-content: center;
  background: var(--lav-pale); border: 2px solid var(--ink); border-radius: 0;
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #a5a0dc, 4px 4px 0 rgba(21, 18, 58, .35);
}
.role strong { font-size: 17px; }
.role span { font-size: 13.5px; }
.role em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--blue); }
.role em:empty { display: none; }
.role-b { background: #ffe6c2; box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #dba865, 4px 4px 0 rgba(21, 18, 58, .35); }
.role-b em { color: #8a4300; }

/* ---------- read me + about ---------- */
.win-note .win-body { background: var(--yellow); }
.readme { padding: 14px 14px 16px; display: grid; gap: 10px; font-size: 14.5px; }
.readme ul { padding-left: 18px; display: grid; gap: 4px; }
.about { padding: 12px; display: grid; gap: 12px; }
.about-head { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; }
.about-head picture { background: var(--yellow); border: 2px solid var(--ink); overflow: hidden; aspect-ratio: 1; }
.about-head img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: scale(1.25); transform-origin: 50% 20%; }
.about-head p { font-size: 15px; font-weight: 700; }
.facts { display: grid; gap: 0; border: 2px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 6px 8px; font-size: 13.5px; }
.facts div:nth-child(odd) { background: var(--lav-pale); }
.facts dt { font-weight: 700; }
.ctype { display: grid; gap: 6px; }
.ctype-label { font-size: 13px; font-weight: 700; }
.ctype code {
  font-family: var(--mono); font-size: 11.5px; line-height: 1.45; overflow-wrap: anywhere; padding: 8px;
  background: var(--night); color: #d8ffd9; border: 2px solid var(--ink); user-select: all;
}

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #dcd9ff; font-size: 12.5px; padding: 16px 14px 24px; display: grid; gap: 6px; }
.foot p { max-width: 72ch; }

.toast {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 20px); z-index: 200;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; padding: 10px 14px;
  border: 2px solid var(--green); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ====================================================================== */
/* The shift: camera window + phone window                                 */
/* ====================================================================== */
body.in-shift { overflow: hidden; }
.shift {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; gap: 8px;
  padding: 6px 6px calc(8px + env(safe-area-inset-bottom)); padding-top: calc(6px + env(safe-area-inset-top));
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(ellipse 85% 200px at 80% 100%, #23963a 0 99.5%, transparent 100%),
    linear-gradient(to bottom, #2437d0 0 20%, #3048df 20% 40%, #4263ee 40% 60%, #5d82f6 60% 80%, #7fa2fa 80% 100%);
}
.shift .win { box-shadow: inset 2px 2px 0 var(--chrome-hi), inset -2px -2px 0 var(--chrome-lo), 4px 4px 0 rgba(21, 18, 58, .45); }
.shift .tb { min-height: 30px; }
.shift .tb-btn { height: 30px; }
.shift .tb-btn span { height: 22px; }
body.role-scammer .shift .tb:not(.tb-red) { background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .12) 0 1px, transparent 1px 3px), linear-gradient(90deg, #8a3c00, #d9730a); }

/* camera */
.win-cam { flex: none; }
.cam { background: var(--night); }
.cam-view { height: 108px; border-bottom: 2px solid var(--ink); }
.cam-view img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.cam-view::before { content: ""; position: absolute; inset: 0; z-index: 1; border: 3px solid var(--green); pointer-events: none; }
.cam-view.flash-good::before { animation: flashGood .7s steps(4) 1; }
.cam-view.flash-bad::before { animation: flashBad .7s steps(4) 1; }
.cam-view.flash-bad img { animation: jolt .3s steps(3) 1; }
@keyframes flashGood { 0%, 60% { border-width: 7px; border-color: #b6ffbf; } }
@keyframes flashBad { 0%, 60% { border-width: 7px; border-color: var(--red); } }
@keyframes jolt { 33% { transform: translateX(-5px); } 66% { transform: translateX(5px); } }
.cam-tag {
  position: absolute; left: 8px; bottom: 8px; z-index: 2; font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(21, 18, 58, .85); padding: 2px 7px; max-width: calc(100% - 16px);
}
.cam-react {
  position: absolute; right: 8px; top: 8px; z-index: 2; font-size: 13px; font-weight: 700; padding: 3px 8px;
  border: 2px solid var(--ink); opacity: 0;
}
.cam-react.good { background: var(--green); }
.cam-react.bad { background: var(--red); color: #fff; }
.cam-react.show { animation: chip 1.8s steps(12) 1 forwards; }
@keyframes chip { 0% { opacity: 1; transform: translateY(6px); } 10%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.cam-stats { display: grid; grid-template-columns: 1fr 1.2fr 1.3fr; color: #fff; }
.cam-stats div { padding: 5px 8px; display: flex; gap: 6px; align-items: baseline; justify-content: space-between; border-right: 2px solid #2b2a6b; min-width: 0; }
.cam-stats div:last-child { border-right: 0; }
.cam-stats dt { font-size: 11.5px; color: #c9c6f5; white-space: nowrap; }
.cam-stats dd { font-size: 14px; font-weight: 700; color: var(--yellow); white-space: nowrap; }

/* phone */
.win-phone { flex: 1 0 auto; display: flex; flex-direction: column; min-height: 440px; }
.phone { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.caller { display: flex; align-items: center; gap: 10px; padding: 8px; background: var(--night); color: #fff; }
.portrait { width: 56px; height: 56px; flex: none; border: 2px solid var(--lav); background: #2b2a6b; }
.portrait svg { display: block; width: 100%; height: 100%; }
.ringing .portrait { animation: ring .9s steps(6) infinite; border-color: var(--green); }
@keyframes ring { 0%, 100% { transform: none; box-shadow: 0 0 0 0 var(--green); } 15% { transform: rotate(-5deg); } 30% { transform: rotate(5deg); box-shadow: 0 0 0 5px rgba(53, 224, 75, .6); } 45% { transform: rotate(-4deg); } 60% { transform: none; box-shadow: 0 0 0 9px rgba(53, 224, 75, 0); } }
.caller-id { flex: 1; min-width: 0; }
.caller-name { font-size: 17px; font-weight: 700; line-height: 1.2; }
.caller-who { font-size: 12.5px; color: #dcd9ff; line-height: 1.3; }
.clock { flex: none; width: 62px; text-align: right; }
.clock-num { display: block; font-family: var(--mono); font-size: 17px; font-weight: 700; color: var(--yellow); }
.clock-bar { display: block; height: 8px; margin-top: 3px; border: 2px solid #fff; background: #2b2a6b; }
.clock-bar i { display: block; height: 100%; width: 100%; background: var(--yellow); }
.clock.low .clock-num { color: #ff7a75; }
.clock.low .clock-bar i { background: var(--red); }
.clock.low.run .clock-num { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }

.trust { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: var(--chrome); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); font-size: 13px; font-weight: 700; }
.trust-bar { position: relative; flex: 1; height: 16px; background: #fff; border: 2px solid var(--ink); }
.trust-bar i { display: block; height: 100%; width: 50%; background: var(--orange); transition: width .35s steps(7); }
.trust-bar::after { content: ""; position: absolute; top: -4px; bottom: -4px; left: var(--save, 55%); width: 2px; background: var(--ink); }
.trust-num { font-family: var(--mono); min-width: 4ch; text-align: right; }
.trust-mood { min-width: 86px; text-align: center; padding: 2px 6px; background: var(--orange); border: 2px solid var(--ink); font-size: 12px; white-space: nowrap; }
.t-good .trust-bar i, .t-good .trust-mood { background: var(--green); }
.t-low .trust-bar i { background: var(--red); }
.t-low .trust-mood { background: var(--red); color: #fff; }

.log {
  flex: 1 1 120px; min-height: 120px; overflow-y: auto; padding: 8px 8px 10px; background: #f1efff;
  display: flex; flex-direction: column; gap: 7px; overscroll-behavior: contain;
}
.log > :first-child { margin-top: auto; }
.msg { max-width: 88%; padding: 6px 10px 8px; border: 2px solid var(--ink); font-size: 15px; line-height: 1.36; background: #fff; align-self: flex-start; box-shadow: 3px 3px 0 rgba(21, 18, 58, .18); }
.msg-who { display: block; font-size: 11.5px; font-weight: 700; color: var(--blue); }
.msg-text { display: block; min-height: 1.36em; }
.msg-you { align-self: flex-end; background: var(--blue); color: #fff; }
.msg-you .msg-who { color: var(--yellow); }
.msg.typing .msg-text::after { content: ""; display: inline-block; width: 7px; height: 13px; margin-left: 2px; background: var(--ink); vertical-align: -1px; animation: blink .6s steps(2) infinite; }
.log .note { padding: 0; display: block; font-size: 13px; }
.log .note-sys { text-align: center; color: #4a4680; }
.log .note-head { text-align: center; font-weight: 700; font-size: 12.5px; color: #fff; background: var(--ink); align-self: center; padding: 2px 10px; }
.log .note-ticket { background: var(--yellow); border: 2px solid var(--ink); padding: 8px 10px; font-size: 14px; box-shadow: 3px 3px 0 rgba(21, 18, 58, .18); }
.log .note-tip, .log .note-flag { padding: 6px 9px; border: 2px solid var(--ink); font-weight: 700; background: #d6ffd9; }
.log .note-flag { background: #ffd9d6; }
.outcome { border: 2px solid var(--ink); padding: 9px 10px; display: grid; gap: 3px; font-size: 14px; background: #d6ffd9; }
.outcome strong { font-size: 16px; }
.outcome.lost { background: var(--night); color: #fff; }

.choices { display: grid; gap: 6px; padding: 8px 6px 4px; background: var(--chrome); border-top: 2px solid var(--ink); }
.choices:empty { display: none; }
.choice {
  display: flex; align-items: flex-start; gap: 9px; text-align: left; min-height: 48px; padding: 8px 10px;
  background: #fff; border: 2px solid var(--ink); border-radius: 0; font-size: 14.5px; line-height: 1.32;
  box-shadow: inset -2px -2px 0 var(--lav), 3px 3px 0 rgba(21, 18, 58, .25);
}
.choice-key { flex: none; width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--blue); margin-top: 1px; }
.phone-bar { display: flex; gap: 6px; padding: 6px; background: var(--chrome); }
.btn-mute { flex: none; font-size: 13px; }
.btn-hang { flex: 1; font-size: 17px; min-height: 48px; }

/* memo */
.memo-veil { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(21, 18, 58, .62); }
.memo { width: min(370px, 100%); transform: rotate(-1.5deg); animation: slam .28s steps(4) 1; }
@keyframes slam { 0% { transform: rotate(4deg) scale(1.35); opacity: 0; } 100% { transform: rotate(-1.5deg) scale(1); opacity: 1; } }
.memo-body { background: var(--yellow); padding: 16px 14px 14px; display: grid; gap: 10px; }
.memo-text { font-size: 20px; font-weight: 700; line-height: 1.25; }
.memo-sign { font-size: 13px; }
.memo-hint { font-size: 13px; line-height: 1.35; margin: 2px 0 6px; padding: 8px 10px; background: #fffbe0; border: 2px solid #17153b; color: #17153b; }
.memo-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.memo-btns .btn { min-height: 50px; font-size: 15px; }

/* report card */
.win-report { flex: none; }
.report { padding: 12px; display: grid; gap: 10px; }
.rc-top { display: grid; gap: 4px; justify-items: center; text-align: center; color: var(--blue); }
.rc-role { font-size: 13px; font-weight: 700; color: var(--ink); }
.rc-grade { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 100px 10px 10px; min-height: 104px; background: var(--blue); color: #fff; border: 2px solid var(--ink); overflow: hidden; }
.rc-letter { flex: none; color: var(--yellow); }
.rc-title { display: grid; gap: 2px; min-width: 0; }
.rc-title-k { font-size: 12px; color: #dcd9ff; font-weight: 700; }
.rc-title strong { font-size: 16px; line-height: 1.25; }
.rc-grade picture { position: absolute; right: -6px; bottom: -34px; width: 112px; }
.rc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rc-stats div { padding: 7px 9px; background: var(--lav-pale); border: 2px solid var(--ink); }
.rc-stats dt { font-size: 12px; font-weight: 700; color: #3e3a6b; }
.rc-stats dd { font-family: var(--mono); font-size: 20px; font-weight: 700; }
.rc-list { background: var(--yellow); border: 2px solid var(--ink); padding: 9px 11px; font-size: 13.5px; display: grid; gap: 5px; }
.rc-list h3 { font-size: 13.5px; }
.rc-list ul { padding-left: 17px; display: grid; gap: 3px; }
.rc-foot { display: grid; gap: 3px; justify-items: center; text-align: center; }
.rc-site { font-family: var(--mono); font-size: 15px; background: var(--ink); color: var(--green); padding: 4px 10px; }
.rc-best { font-size: 12.5px; font-weight: 700; }
.rc-fine { font-size: 11.5px; color: #3e3a6b; }
.rc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rc-btns .btn:first-child { grid-column: 1 / -1; min-height: 50px; font-size: 16px; }
.rc-btns .btn:last-child { grid-column: 1 / -1; }

/* ====================================================================== */
/* Wide screens: a real desktop with draggable windows                     */
/* ====================================================================== */
@media (min-width: 900px) {
  .bar { padding: 0 16px; }
  .desk { height: calc(100vh - var(--bar-h)); min-height: 940px; display: block; padding: 0; }
  .cloud { display: block; }
  .bar-logo .px { width: auto; height: 21px; }
  .icons { position: absolute; left: 18px; top: 22px; display: grid; grid-template-columns: 96px; gap: 10px; }
  .home { position: absolute; }
  .tb[data-drag] { cursor: grab; touch-action: none; user-select: none; }
  .tb[data-drag]:active { cursor: grabbing; }
  #win-game { left: max(130px, calc(50% - 540px)); top: 26px; width: 560px; }
  #win-readme { right: max(24px, calc(50% - 560px)); top: 26px; width: 420px; }
  #win-about { right: max(64px, calc(50% - 520px)); top: 352px; width: 420px; }
  .start-art img { height: 300px; }
  .roles { grid-template-columns: 1fr 1fr; }
  body.in-shift { overflow: auto; }
  body.in-shift .home, body.in-shift .icons { display: none; }
  .shift {
    position: absolute; inset: 0; flex-direction: row; justify-content: center; align-items: flex-start;
    gap: 30px; padding: 30px 24px; background: none; overflow: visible;
  }
  .shift .win { box-shadow: inset 2px 2px 0 var(--chrome-hi), inset -2px -2px 0 var(--chrome-lo), 6px 6px 0 rgba(21, 18, 58, .45); }
  .shift .tb { min-height: 34px; }
  .win-phone { order: 1; flex: none; width: 460px; height: min(720px, calc(100vh - var(--bar-h) - 64px)); min-height: 560px; }
  .win-cam { order: 2; width: 540px; margin-top: 44px; }
  .cam-view { height: auto; aspect-ratio: 820 / 480; }
  .cam-view img { object-position: 50% 50%; }
  .cam-stats div { padding: 8px 12px; }
  .cam-stats dt { font-size: 12.5px; }
  .cam-stats dd { font-size: 16px; }
  .win-report { width: 500px; }
  .log { padding: 12px; }
  .choice:hover, .role:hover { background: var(--lav-pale); }
  .role-b:hover { background: #ffd9a3; }
  .foot { padding: 16px 24px 24px; }
}

@media (max-width: 360px) {
  .bar-clock { display: none; }
  .trust-mood { min-width: 0; }
  .caller-who { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cam-react.show { opacity: 1; }
  .memo { transform: none; }
}
