/* The playable cabinet occupies the space between the page heading and the fold. */
.boss-heading {align-items:center; margin:0 0 14px}
.boss-heading h1 {font-size:clamp(27px,3.3vw,43px)}
.boss-heading > p {margin:0; font-size:14px}
.boss-shell {
  --night:#183932;
  --mist:#aac9bc;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto auto minmax(0,1fr) auto;
  height: min(760px, max(330px, calc(100svh - var(--office-top, 175px) - 12px)));
  border:1px solid #233e35;
  border-radius:20px;
  color:var(--boss-paper);
  background:var(--night);
  box-shadow:0 12px 32px #19362c20;
}
.office-bar,.office-picks,.office-dock {display:flex;align-items:center}
.office-bar {gap:clamp(16px,3vw,46px); padding:9px 18px; background:#193a32}
.office-bar > div:not(.office-tools) {display:grid;gap:1px}
.office-bar span {font-size:12px;font-weight:650;color:#e0ebe3}
.office-bar strong {font-size:14px;line-height:1.14}
.office-points strong {color:#d5ff79;font:750 clamp(21px,2.2vw,32px)/1 ui-monospace,monospace;letter-spacing:-.055em;font-variant-numeric:tabular-nums}
.office-patrol {flex:1;min-width:0}
.office-patrol strong {color:#f9cfab}
.office-tools {display:flex;align-items:center;margin-left:auto}
.office-tools button {color:#fffdf7;background:transparent;border:0;min-width:39px;min-height:41px;font-size:19px;line-height:1;font-weight:700}
.office-tools button:hover {background:#ffffff19}
#boss-fullscreen {border:1px solid #ffffff36;border-radius:11px;font-size:22px}
.office-picks {gap:5px;padding:6px 16px;background:#23483e;border-top:1px solid #ffffff0d}
.office-picks .boss-activity {
  flex:1; display:flex;flex-direction:row;justify-content:center;align-items:center;gap:9px;
  min-height:40px;padding:6px 9px;border:1px solid transparent;border-radius:8px;
  background:transparent;color:#d8e6db;font-size:14px;font-weight:720;text-align:center;line-height:1.12;
}
.office-picks .boss-activity:hover {background:#ffffff12;transform:none}
.office-picks .boss-activity.is-selected {background:#e3f4c9;color:#193a32;box-shadow:none}
.activity-icon {position:relative;display:inline-block;flex:none;color:inherit}
.phone-icon {width:11px;height:16px;border:1.8px solid currentColor;border-radius:3px}
.phone-icon::after {content:"";position:absolute;width:3px;height:2px;bottom:1px;left:2px;background:currentColor}
.pad-icon {width:20px;height:12px;border:1.8px solid currentColor;border-radius:5px 5px 7px 7px;transform:rotate(-7deg)}
.pad-icon::before,.pad-icon::after {position:absolute;top:-1px;font:bold 11px/1 monospace}
.pad-icon::before {content:"+";left:1px}.pad-icon::after {content:"•";right:1px}
.nap-icon {width:16px;font:bold italic 17px/1 system-ui}
.nap-icon::after {content:"z";position:absolute;top:-4px;right:-1px;font-size:10px}
.boss-shell .boss-stage {
  margin:0;height:auto;min-height:0;max-height:none;border:0;border-radius:0;
  background:radial-gradient(ellipse at center,#41635b,#142f2c);isolation:isolate;
}
.boss-stage-badge {
  inset-inline:0;top:10px;margin-inline:auto;transform:none;
  width:fit-content;max-width:min(50ch,calc(100% - 24px));padding:8px 15px;
  background:#173a30;color:#fffdf7;border:1px solid #d0e1c9;border-radius:10px;
  font:700 clamp(15px,1.2vw,18px)/1.4 system-ui,sans-serif;text-wrap:pretty;
  box-shadow:0 2px 6px #142c2940;
}
.boss-stage-brand {color:#355247;background:#fffdf7ca;border-radius:4px;padding:2px 5px}
.office-stress-tag {
  position:absolute;width:0;display:grid;justify-content:center;pointer-events:none;
  --stress:0%;--meter-fill:#c9f36a;
}
.office-stress-tag[hidden] {display:none}
.office-stress-tag[data-level="rising"] {--meter-fill:#ffc267}
.office-stress-tag[data-level="high"] {--meter-fill:#ff866e}
.office-stress-tag > span {
  width:max-content;padding:3px 8px 4px;border-radius:7px;border:1px solid #e0ecd2;
  background:#17392f;color:#fffdf7;font:700 clamp(12px,1vw,15px)/1.2 system-ui,sans-serif;
  font-variant-numeric:tabular-nums;white-space:nowrap;
}
.office-stress-tag > span::after {
  content:"";display:block;height:3px;margin-top:3px;border-radius:2px;
  background:linear-gradient(to right,var(--meter-fill) var(--stress),#577264 var(--stress));
}
.office-dock {gap:12px;justify-content:flex-end;padding:10px 16px;background:#193a32}
.office-return-row:empty {display:none}
.office-return-row {padding:0 4px 5px;background:#23483e}
.office-return-row > button {display:block;width:100%}
.boss-shell .boss-main-action {background:var(--boss-lime);color:#142f28;border:1px solid #d9f9ad;box-shadow:none;min-height:44px;border-radius:10px}
.boss-shell .boss-main-action.is-work {background:#d6e2ff;border-color:#e8eeff}
.boss-shell button:focus-visible {outline:3px solid #ffab87;outline-offset:-3px}
.boss-end {color:#19392f;background:#162e28af;backdrop-filter:blur(3px);padding:14px}
.boss-end h2,.boss-end p {color:#fffdf7;text-shadow:0 1px 5px #162e2880}
.boss-end h2 strong {color:#19392f;text-shadow:none}
.boss-end {overflow:auto;justify-content:safe center}
.boss-end h2 {margin:0 0 3px;font-size:clamp(17px,2.1vw,26px)}
.boss-end .office-final-score {display:flex;align-items:baseline;gap:7px;color:#d5ff79}
.office-final-score strong {font-size:clamp(34px,5vw,64px);font-weight:850;line-height:1;font-variant-numeric:tabular-nums}
.office-final-score span {font-size:17px;font-weight:750}
.boss-end p {margin:8px 0;font-size:clamp(14px,1.4vw,18px)}
.office-summary {flex-wrap:wrap;justify-content:center;margin:1px 0 14px;color:#fffdf7;font-size:13px}
.office-summary span {padding:4px 9px;background:#193a32;border-radius:7px}
.office-summary b {margin-inline-start:4px}
#boss-retry {background:#c9f36a;box-shadow:0 3px 0 #132d25}
#boss-share-top {background:#fffdf7;box-shadow:none}
.boss-insights {display:grid;grid-template-columns:minmax(0,1fr);gap:16px;overflow:visible;border:0;background:transparent}
.boss-stats {border:1px solid var(--boss-line);border-radius:18px;background:var(--boss-paper)}
.boss-insights .score-distribution {
  --paper:var(--boss-paper);--primary:var(--boss-lime);--accent:var(--boss-coral);
  --text:var(--boss-ink);--muted:#6b746e;--line:#19231f21;
}
@media (min-width:701px) and (max-width:1100px) {
  .boss-insights .score-distribution-chart {min-width:0}
}
.boss-end button,.boss-end-kicker {color:#19392f}
.boss-share-panel {margin-top:14px;border:1px solid #ccd7c9;border-radius:18px}
.boss-shell:fullscreen,.boss-shell.is-expanded {height:100dvh;width:100%;max-height:none;display:grid;border:0;border-radius:0}
.boss-shell:fullscreen .boss-stage {margin:0;min-height:0}
.boss-shell.is-expanded {position:fixed;inset:0;z-index:10000}
body.office-expanded {overflow:hidden}
@media(max-width:700px) {
  .boss-page {padding:10px 8px 40px}
  .boss-heading {margin:0 2px 8px}.boss-heading > p {margin-top:2px;font-size:11px}
  .boss-shell {border-radius:15px;height:min(690px,max(315px,calc(100svh - var(--office-top,145px) - 8px)));grid-template-rows:auto auto auto minmax(0,1fr) auto}
  .office-bar {display:grid;grid-template-columns:minmax(62px,.9fr) minmax(64px,1.1fr) auto;column-gap:6px;row-gap:1px;padding:5px 7px}
  .office-points {grid-area:1 / 1}
  .office-bar .office-patrol {grid-area:1 / 2 / span 2 / span 1}
  .office-tools {grid-area:1 / 3 / span 2 / span 1}
  .office-record span {margin-inline-end:4px;color:#dbe9db}
  .office-record strong {color:#def59a}
  .office-bar span {font-size:11px}
  .office-bar > .office-record:not(.office-tools) {grid-area:2 / 1;display:block;line-height:1}
  .office-bar strong {font-size:13px}
  .office-bar .office-points strong {font-size:23px}
  .office-tools button {min-width:32px;min-height:40px}
  .office-picks {gap:3px;padding:4px}
  .office-picks .boss-activity {min-width:0;gap:5px;padding:4px;min-height:42px;font-size:12px}
  .office-dock {gap:8px;padding:6px}
  .boss-shell .boss-main-action {min-width:0;flex:1;font-size:13px}

  .boss-end h2 {margin:8px 0}.boss-end p {margin:0 0 10px}
}
@media(max-height:500px) and (orientation:landscape) {
  .boss-page {padding-top:4px}
  .boss-heading {margin-bottom:4px}.boss-heading h1 {font-size:20px}.boss-heading > p {display:none}
  .boss-shell {min-height:215px;height:max(215px,calc(100svh - var(--office-top,95px) - 4px))}
  .office-bar,.office-dock,.office-picks {padding-block:2px}
  .office-tools button,.office-picks .boss-activity,.boss-shell .boss-main-action {min-height:32px}
  .office-points strong {font-size:19px}
  .boss-end {gap:3px}.boss-end h2 {font-size:19px;margin:0}.boss-end p {font-size:12px;margin:0}
  .boss-end-kicker {padding:2px 8px}.boss-end button {min-height:30px}
}

.talk-icon {border:1.5px solid currentColor;border-radius:5px;width:19px;height:13px;line-height:8px}
.talk-icon::after {content:"";position:absolute;left:3px;bottom:-4px;width:4px;height:4px;border-left:2px solid currentColor;transform:skewY(-35deg)}
.boss-shell .boss-main-action:disabled {background:var(--boss-lime);color:#415735;cursor:default;transform:none}
.office-picks .boss-activity:disabled {cursor:default}
.office-choice {display:grid;gap:3px;text-align:start}
#boss-clip-preview {max-width:100%;height:auto;aspect-ratio:9/16;border-radius:9px}
#boss-clip-preview[hidden],#boss-story-preview[hidden] {display:none}
.office-picks .office-choice small {display:block;color:#d3e4d8;font-size:11px;line-height:1.15;font-weight:600}
.office-picks .is-selected .office-choice small {color:#324d3c}
.office-time {margin-right:auto;font-size:13px;font-weight:650}
.office-time b {color:#fffdf7;font:700 15px/1.1 system-ui;font-variant-numeric:tabular-nums}
.office-stress-tag.is-alert::before {content:"!";justify-self:center;margin-bottom:3px;padding:0 7px;border:2px solid #21372e;border-radius:50%;color:#19231f;background:#ffd563;font:900 19px/1.1 system-ui;animation:office-alert .24s ease-out}
@keyframes office-alert {from {transform:scale(.7)} 65% {transform:scale(1.13)}}
@media(prefers-reduced-motion:reduce) {.office-stress-tag.is-alert::before {animation:none}}
@media(max-width:700px) {
  .office-picks {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .office-picks .boss-activity {min-height:38px;border-color:#ffffff27}
}
@media(max-height:500px) and (orientation:landscape) {
  .office-picks {display:flex}
}

#boss-music {display:grid;place-items:center;flex:none;width:40px;min-height:42px;background:#24483b;color:#e8f4dd;border:1px solid #ffffff35;border-radius:10px;cursor:pointer}
#boss-music .music-off,#boss-music[aria-pressed="false"] .music-waves {display:none}
#boss-music[aria-pressed="false"] .music-off {display:block}

@media (orientation:landscape) and (max-height:500px) {
  .boss-shell {
    grid-template-columns:clamp(162px,24vw,235px) minmax(0,1fr);
    grid-template-rows:auto minmax(0,1fr) auto;
  }
  .office-bar {grid-column:1 / -1;grid-row:1}
  .office-picks {
    grid-column:1;grid-row:2;display:grid;grid-template-columns:1fr 1fr;
    grid-auto-rows:1fr;align-items:stretch;padding:4px;gap:3px;
  }
  .office-picks .boss-activity {flex-direction:column;gap:3px;padding:3px;font-size:11px;min-width:0;min-height:30px}
  .office-dock {grid-column:1;grid-row:3;display:grid;grid-template-columns:32px minmax(0,1fr);gap:4px;padding:5px}
  .boss-shell .boss-main-action {min-width:0;font-size:12px}
  .office-time {grid-column:1/-1}
  #boss-music {width:32px;min-height:32px}
  .boss-shell .boss-stage {grid-column:2;grid-row:2 / 4}
}
@media (orientation:landscape) and (max-height:500px) and (max-width:960px) {
  .boss-shell {grid-template-rows:auto minmax(0,1fr) auto auto}
  .office-return-row {grid-column:1;grid-row:3}
  .office-dock {grid-row:4;grid-template-columns:minmax(0,1fr) 32px;align-items:center}
  .office-time {grid-column:1}
  .boss-shell .boss-stage {grid-row:2 / 5}
}

@media (orientation:landscape) and (max-height:500px) {
  .boss-end {padding:4px 8px;gap:2px}
  .boss-end .office-final-score strong {font-size:27px}
  .boss-end .office-summary {margin:0 0 2px}
  .office-summary span {padding:1px 6px}
  .boss-stage-badge {top:4px;padding:4px 9px}
}
@media (orientation:portrait) and (max-height:690px) {
  .boss-shell:has(#boss-end:not([hidden])) {grid-template-rows:auto auto 0 minmax(0,1fr) auto}
  .boss-shell:has(#boss-end:not([hidden])) .office-return-row {visibility:hidden}
  .boss-end {padding:3px 7px;gap:2px}
  .boss-end h2 {margin:0;font-size:16px}
  .office-final-score strong {font-size:28px}
  .boss-end p {margin:0;font-size:13px;line-height:1.2}
  .office-summary {margin:1px 0 4px;font-size:12px}
  .office-summary span {padding:2px 6px}
  .boss-end button {min-height:38px}
}

.boss-shell[data-tour] {position:relative;isolation:isolate}
.boss-shell[data-tour] .boss-stage {filter:brightness(.72)}
.boss-shell[data-tour="choices"] .office-bar {display:none}
.boss-shell[data-tour="choices"] .office-picks {
  box-shadow:inset 0 0 0 3px var(--boss-lime);
  border-radius:9px;
}
.boss-shell[data-tour="work"] #boss-action {
  background:var(--boss-lime);color:var(--night);outline:2px solid var(--boss-paper);outline-offset:2px;
}
.office-tour {
  position:relative;z-index:4;display:flex;align-items:center;gap:10px;
  width:max-content;max-width:calc(100% - 16px);padding:6px 7px 6px 12px;
  border:1px solid #cedbbf;border-radius:12px;background:var(--boss-paper);
  color:var(--boss-ink);box-shadow:0 4px 14px #142e2933;
}
.boss-shell[data-tour="choices"] .office-tour {
  grid-area:1 / 1 / 2 / -1;justify-self:center;align-self:center;margin-block:7px 10px;
}
.boss-shell[data-tour="work"] .office-tour {position:absolute}
.office-tour::after {
  content:"";position:absolute;bottom:-6px;left:clamp(10px,var(--tip-x,50%),calc(100% - 10px));
  width:10px;height:10px;background:var(--boss-paper);border:solid #cedbbf;border-width:0 1px 1px 0;
  transform:translateX(-50%) rotate(45deg);pointer-events:none;
}
.office-tour-step {
  flex:none;padding:4px 7px;border-radius:20px;background:#e3efce;color:#2e4835;
  font:750 12px/1.2 system-ui,sans-serif;font-variant-numeric:tabular-nums;
}
.office-tour p {margin:0;max-width:42ch;font:700 15px/1.35 system-ui,sans-serif;text-align:start}
.office-tour button {
  flex:none;min-height:42px;padding:0 13px;border:1px solid #9ebd61;border-radius:8px;
  background:var(--boss-lime);color:var(--boss-ink);font:750 14px/1.1 system-ui,sans-serif;
}
.office-tour button:hover {background:#bde956}
@media(max-width:700px) {
  .office-tour {gap:7px;padding-inline-start:8px}
  .office-tour p {font-size:14px}
}
@media(orientation:landscape) and (max-height:500px) {
  .boss-shell[data-tour="choices"] .office-tour {
    justify-self:start;margin-inline-start:7px;margin-block:4px 8px;--tip-x:clamp(70px,12vw,116px);
  }
}
