:root {
  color-scheme:light;
  --ink:#213f3a;
  --muted:#5d746f;
  --green:#147969;
  font-family:"Arial Rounded MT Bold","Malgun Gothic",system-ui,sans-serif;
  color:var(--ink);
  background:#e9f5f2;
  font-synthesis:none
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:radial-gradient(ellipse at 5% 90%,#d4eae5,transparent 46%),#e9f5f2
}
button,input,select {
  font:inherit
}
button {
  color:inherit;
  cursor:pointer;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  user-select:none
}
button:active {
  transform:translateY(2px)
}
:focus-visible {
  outline:3px solid #1a716b;
  outline-offset:4px
}
button:disabled {
  cursor:default;
  opacity:.48;
  transform:none
}
button svg {
  pointer-events:none
}
svg {
  display:block;
  width:100%;
  height:100%
}
[data-icon] {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  flex-shrink:0
}
[hidden] {
  display:none!important
}
.app {
  max-width:1160px;
  margin:auto;
  padding:26px 40px 18px;
  min-height:100svh;
  height:100dvh;
  display:flex;
  flex-direction:column;
  gap:24px
}
.topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-shrink:0
}
.brand {
  display:flex;
  align-items:center;
  gap:12px
}
.brand-icon {
  width:48px;
  height:48px;
  border-radius:15px;
  background:var(--green);
  color:#fff;
  padding:9px;
  box-shadow:0 3px 0 #0c6255
}
.brand h1 {
  font-size:25px;
  letter-spacing:-1.2px;
  margin:0;
  font-weight:900
}
.brand h1>span {
  font-size:22px
}
.brand p {
  font-size:12px;
  color:var(--muted);
  margin:4px 0 0;
  letter-spacing:1.4px
}
.top-actions {
  display:flex;
  gap:10px
}
.icon-button {
  width:44px;
  height:44px;
  border:1px solid #c3d9d1;
  border-radius:50%;
  background:#f8fcf8;
  display:grid;
  place-items:center;
  padding:11px
}
.icon-button[aria-pressed=false] {
  color:#72817b
}
.playground {
  background:#fffdf8;
  border:1px solid #dce6d9;
  border-radius:32px;
  box-shadow:0 10px 0 #d7e5dc,0 18px 45px #416c5510;
  padding:26px 32px 14px;
  display:flex;
  flex-direction:column;
  gap:20px;
  flex:1;
  min-height:0;
  max-height:830px
}
.play-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}
.mode-switch {
  display:flex;
  background:#edf0e8;
  border-radius:30px;
  padding:4px;
  gap:4px
}
.mode-switch button {
  border:0;
  background:transparent;
  border-radius:24px;
  min-height:42px;
  padding:0 19px;
  font-size:14px;
  font-weight:800;
  display:flex;
  align-items:center;
  gap:6px;
  color:#60736a
}
.mode-switch button.selected {
  background:var(--green);
  color:white;
  box-shadow:0 2px 4px #00382920
}
.mode-switch [data-icon] {
  width:17px;
  height:17px
}
.travel-note {
  font-size:14px;
  color:var(--muted)
}
.stage {
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(310px,1fr);
  gap:38px;
  flex:1;
  min-height:0
}
.elevator-side {
  display:flex;
  flex-direction:column;
  min-height:0;
  min-width:0
}
.elevator-head {
  height:88px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 10px;
  flex-shrink:0
}
.little-label {
  font-size:10px;
  font-weight:900;
  letter-spacing:2px;
  color:#677b70
}
.capacity {
  font-size:12px;
  line-height:1.6;
  color:#60776d;
  text-align:right
}
.display {
  display:flex;
  align-items:center;
  justify-content:center;
  background:#213e37;
  border:5px solid #c8dccc;
  border-radius:16px;
  min-width:150px;
  height:72px;
  box-shadow:inset 0 3px 8px #081f3380;
  color:#f4dc8c;
  gap:12px;
  padding:5px 20px
}
.display #num {
  font:700 47px/1 ui-monospace,Consolas,monospace;
  letter-spacing:-3px
}
.display .direction {
  font-size:25px
}
.display .unit {
  font-size:14px;
  font-weight:700;
  margin-top:19px
}
.elevator-frame {
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:0;
  border:1px solid #a9c3b6;
  border-radius:23px 23px 6px 6px;
  background:linear-gradient(90deg,#c3d9c5,#e3ecdb 7%,#e3ecdb 93%,#b3cbb9);
  padding:15px 15px 0;
  box-shadow:0 6px 0 #b9ccbc,0 14px 20px #355e3610
}
.doorway {
  position:relative;
  overflow:hidden;
  flex:1;
  min-height:0;
  background:#d9ebd7;
  border:3px solid #6e8e7b;
  border-bottom:0;
  border-radius:12px 12px 0 0;
  isolation:isolate
}
.destination {
  position:absolute;
  inset:0;
  background:#ecf3dc;
  display:flex;
  flex-direction:column
}
.scene-label {
  position:absolute;
  z-index:1;
  top:7%;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:9px;
  border:1px solid #fff9;
  background:#fffdf0e8;
  border-radius:30px;
  padding:9px 16px;
  font-weight:800;
  font-size:15px;
  white-space:nowrap;
  box-shadow:0 3px 0 #486c4b15
}
.scene-label b {
  font:800 14px ui-monospace,monospace;
  color:var(--green)
}
.scene {
  height:100%;
  width:100%
}
.door {
  position:absolute;
  inset:0 auto 0 0;
  width:50%;
  background:linear-gradient(90deg,#cee0ce,#e6eddb 35%,#d7e4cf);
  border-right:2px solid #93ac96;
  will-change:transform;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  transform:translateX(calc(var(--open,0)*-100%))
}
.door-right {
  left:50%;
  background:linear-gradient(90deg,#dae6d0,#e7efdc 65%,#c7dcc5);
  border-right:0;
  border-left:2px solid #9bb29b;
  transform:translateX(calc(var(--open,0)*100%))
}
.door-stripe {
  position:absolute;
  inset:10px 9px;
  border:1px solid #ffffff70;
  border-bottom:0;
  border-radius:5px 5px 0 0
}
.door-symbol {
  border:2px solid #9cb89e99;
  border-radius:50%;
  color:#7f9e82;
  width:50px;
  height:50px;
  display:grid;
  place-items:center
}
.door-symbol [data-icon] {
  width:25px;
  height:25px
}
.threshold {
  height:13px;
  margin:0 -5px;
  background:repeating-linear-gradient(0deg,#9daf9b 0 2px,#cbd9c1 2px 4px);
  border-radius:0 0 3px 3px
}
.elevator-footer {
  height:47px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  flex-shrink:0
}
.status-dot {
  width:7px;
  height:7px;
  background:#267b63;
  border-radius:50%
}
.elevator-footer p {
  font-size:14px;
  margin:0;
  color:#516c60
}
.panel {
  margin:13px 0 10px;
  border:1px solid #e1dfd0;
  border-radius:24px;
  background:#f4f3e9;
  box-shadow:0 5px 0 #e2e3d4,inset 0 2px 0 #fff;
  padding:23px;
  display:flex;
  flex-direction:column;
  gap:16px;
  min-height:0
}
.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between
}
.eyebrow {
  font-size:10px;
  font-weight:900;
  letter-spacing:2px;
  color:#548172
}
h2 {
  margin:6px 0 0;
  font-size:21px;
  letter-spacing:-.8px
}
.panel-mark {
  width:35px;
  height:35px;
  color:#719386
}
.floor-buttons {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-rows:repeat(4,minmax(52px,1fr));
  gap:10px;
  flex:1;
  min-height:0
}
.floor-button {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  border:2px solid #d6dece;
  border-radius:17px;
  background:linear-gradient(#fffffc,#f9fbf2);
  box-shadow:0 4px 0 #ccd5c3,inset 0 2px 0 #fff;
  transition:background .12s,box-shadow .12s,transform .08s,border-color .12s;
  padding:5px 2px;
  min-width:0;
  min-height:52px
}
.floor-button .number {
  font:800 28px/1.05 ui-rounded,"Arial Rounded MT Bold",system-ui,sans-serif;
  color:#28483c;
  letter-spacing:-1px
}
.floor-button .floor-name {
  font-size:12px;
  color:#536b5a;
  font-weight:700;
  white-space:nowrap
}
.floor-button.lit {
  background:#ffe098;
  border-color:#ba8721;
  box-shadow:0 4px 0 #be9335,inset 0 0 0 2px #fff2,0 0 12px #efc96444
}
.floor-button.lit::after {
  content:"";
  position:absolute;
  right:7px;
  top:7px;
  width:6px;
  height:6px;
  background:#765010;
  border-radius:50%
}
.floor-button.here:not(.lit) {
  border-color:#4b9275
}
.current-mark {
  position:absolute;
  left:6px;
  top:4px;
  font-size:10px;
  color:#22664d
}
.panel-sticker {
  display:flex;
  align-items:center;
  justify-content:center;
  color:#799483;
  gap:6px;
  flex-direction:column;
  font-size:10px;
  letter-spacing:2px;
  font-weight:800
}
.panel-sticker [data-icon] {
  width:26px;
  height:26px
}
.queue {
  display:flex;
  align-items:center;
  gap:7px;
  min-height:22px;
  color:#647766
}
.queue [data-icon] {
  width:18px;
  height:18px
}
.queue p {
  font-size:12px;
  margin:0;
  line-height:1.5;
  overflow-wrap:anywhere
}
.door-controls {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px
}
.door-button {
  border:1px solid #a6c3ad;
  box-shadow:0 4px 0 #afc6af;
  border-radius:15px;
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:800;
  font-size:15px;
  background:#d7e9d9
}
.close-button {
  background:#f5e2cc;
  border-color:#d8c3a8;
  box-shadow:0 4px 0 #d8c5ab
}
.door-button [data-icon] {
  width:28px;
  height:28px
}
.bottom-note {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-size:12px;
  color:#728173;
  min-height:20px
}
.bottom-note [data-icon] {
  width:14px;
  height:14px
}
.note-divider {
  margin:0 4px
}
.mission-banner {
  background:#fff0ce;
  border:1px solid #eed89e;
  min-height:46px;
  border-radius:14px;
  padding:9px 15px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:14px;
  font-weight:700
}
.mission-banner button {
  border:0;
  background:transparent;
  font-size:12px;
  white-space:nowrap;
  min-height:30px;
  color:#725622
}
.celebration {
  position:absolute;
  z-index:3;
  bottom:12%;
  left:5%;
  right:5%;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  padding:15px 6px;
  background:#fff6db;
  box-shadow:0 5px 0 #c8af7180;
  border-radius:18px;
  color:#716019;
  animation:celebrate .5s ease-out;
  font-size:17px
}
.celebration [data-icon] {
  color:#ad7b09;
  width:22px;
  height:22px
}
@keyframes celebrate {
  from {
    opacity:0;
    transform:translateY(10px)
  }
  to {
    opacity:1;
    transform:translateY(0)
  }
}
dialog {
  border:1px solid #d3dfd0;
  border-radius:27px;
  background:#fffdf6;
  color:var(--ink);
  padding:27px;
  max-width:420px;
  width:calc(100% - 32px);
  box-shadow:0 18px 80px #24453440;
  max-height:calc(100dvh - 32px);
  overflow:auto
}
dialog::backdrop {
  background:#233e3655;
  backdrop-filter:blur(5px)
}
.dialog-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px
}
.dialog-heading h2 {
  font-size:23px
}
.dialog-intro {
  font-size:14px;
  color:var(--muted);
  margin:18px 0
}
.setting-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-top:1px solid #dfe5d7;
  padding:19px 0;
  font-size:16px;
  font-weight:700
}
input[type=checkbox] {
  appearance:none;
  width:49px;
  height:29px;
  background:#c0cabf;
  border-radius:30px;
  position:relative;
  flex-shrink:0;
  cursor:pointer
}
input[type=checkbox]::before {
  content:"";
  position:absolute;
  width:21px;
  height:21px;
  top:4px;
  left:4px;
  background:white;
  border-radius:50%;
  transition:transform .15s
}
input:checked {
  background:var(--green)
}
input:checked::before {
  transform:translateX(20px)
}
select {
  padding:10px 8px;
  border:1px solid #b6c8b9;
  border-radius:10px;
  background:white;
  color:var(--ink);
  min-height:44px
}
.setting-help,.reset-help {
  font-size:12px;
  color:var(--muted);
  line-height:1.8
}
.reset-button {
  display:flex;
  width:100%;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:1px solid #d2c4af;
  background:#f7ead8;
  border-radius:13px;
  padding:15px;
  font-size:15px;
  font-weight:700
}
.reset-help {
  text-align:center;
  margin-bottom:0
}
.mission-choices {
  display:flex;
  flex-direction:column;
  gap:12px
}
.mission-choice {
  display:flex;
  align-items:center;
  gap:16px;
  border:1px solid #ccdccc;
  border-radius:16px;
  background:#f0f6e9;
  padding:12px;
  text-align:left
}
.portrait {
  width:60px;
  height:62px;
  overflow:hidden;
  flex-shrink:0
}
.mission-choice strong {
  display:block;
  font-size:16px;
  margin-bottom:5px
}
.mission-choice small {
  font-size:13px;
  color:#54725d
}
.chevron {
  margin-left:auto;
  width:18px;
  height:18px
}
.plain-button {
  display:block;
  margin:18px auto 0;
  padding:12px 20px;
  border:0;
  background:transparent;
  font-size:14px;
  text-decoration:underline;
  color:var(--muted)
}
@media(min-width:1000px) and (min-height:850px) {
  .app {
    padding-top:35px;
    gap:32px
  }
  .playground {
    padding:28px 40px 18px;
    gap:24px
  }
  .stage {
    gap:50px
  }
  .elevator-head {
    height:100px
  }
  .panel {
    padding:28px;
    gap:20px
  }
  .floor-buttons {
    gap:14px
  }
  .floor-button .number {
    font-size:33px
  }
  .floor-button .floor-name {
    font-size:13px
  }
  .door-button {
    min-height:78px
  }
}
@media(max-width:760px) {
  .app {
    padding:14px 16px 18px;
    gap:15px
  }
  .brand h1 {
    font-size:23px
  }
  .brand h1>span {
    font-size:20px
  }
  .brand-icon {
    width:42px;
    height:42px
  }
  .brand p {
    font-size:10px
  }
  .top-actions {
    gap:7px
  }
  .playground {
    padding:15px 18px 8px;
    border-radius:26px;
    gap:12px
  }
  .stage {
    gap:20px;
    grid-template-columns:minmax(0,1fr) minmax(250px,.9fr)
  }
  .travel-note {
    display:none
  }
  .play-toolbar {
    justify-content:center
  }
  .panel {
    padding:16px;
    gap:12px
  }
  .elevator-head {
    height:78px;
    justify-content:center
  }
  .little-label,.capacity {
    display:none
  }
  .elevator-frame {
    padding:11px 11px 0
  }
  .scene-label {
    font-size:13px;
    padding:8px 12px
  }
  .bottom-note {
    font-size:11px
  }
  .panel-heading h2 {
    font-size:18px
  }
  .door-button {
    font-size:14px;
    gap:5px
  }
  .floor-button .number {
    font-size:25px
  }
}
@media(max-width:560px) and (orientation:portrait) {
  .app {
    padding:10px 12px max(12px,env(safe-area-inset-bottom));
    gap:10px;
    min-height:640px
  }
  .brand h1 {
    font-size:21px
  }
  .brand h1>span {
    font-size:18px
  }
  .brand p {
    display:none
  }
  .brand-icon {
    width:37px;
    height:37px;
    padding:7px;
    border-radius:12px
  }
  .brand {
    gap:9px
  }
  .top-actions {
    gap:5px
  }
  .icon-button {
    width:42px;
    height:42px;
    padding:11px
  }
  .playground {
    padding:10px 12px 6px;
    gap:8px;
    border-radius:23px;
    max-height:none
  }
  .mode-switch button {
    min-height:34px;
    padding:0 20px;
    font-size:13px
  }
  .mode-switch {
    padding:3px
  }
  .stage {
    grid-template-columns:1fr;
    grid-template-rows:minmax(155px,1fr) auto;
    gap:2px
  }
  .elevator-head {
    height:55px;
    padding:0
  }
  .display {
    height:48px;
    min-width:116px;
    border-width:4px;
    border-radius:12px;
    gap:9px;
    padding:3px 16px
  }
  .display #num {
    font-size:33px
  }
  .display .unit {
    margin-top:11px;
    font-size:12px
  }
  .display .direction {
    font-size:21px
  }
  .little-label {
    display:block;
    position:absolute;
    left:28px;
    font-size:9px;
    letter-spacing:1px
  }
  .elevator-frame {
    max-width:350px;
    width:92%;
    align-self:center;
    border-radius:17px 17px 5px 5px;
    padding:9px 9px 0
  }
  .doorway {
    border-radius:8px 8px 0 0;
    border-width:2px
  }
  .threshold {
    height:8px
  }
  .elevator-footer {
    height:29px
  }
  .elevator-footer p {
    font-size:12px
  }
  .door-symbol {
    width:35px;
    height:35px
  }
  .door-symbol [data-icon] {
    width:20px;
    height:20px
  }
  .scene-label {
    top:6%;
    font-size:12px;
    padding:5px 11px;
    gap:5px
  }
  .scene-label b {
    font-size:12px
  }
  .panel {
    padding:11px;
    margin:0 0 5px;
    border-radius:18px;
    gap:9px
  }
  .panel-heading {
    display:none
  }
  .floor-buttons {
    grid-template-columns:repeat(4,minmax(0,1fr));
    grid-template-rows:repeat(3,53px);
    gap:7px
  }
  .floor-button {
    min-height:53px;
    border-radius:12px;
    gap:2px;
    box-shadow:0 3px 0 #ccd5c3
  }
  .floor-button .number {
    font-size:23px
  }
  .floor-button .floor-name {
    font-size:10px;
    line-height:1.3
  }
  .panel-sticker {
    font-size:9px;
    gap:2px
  }
  .panel-sticker [data-icon] {
    width:19px;
    height:19px
  }
  .queue {
    min-height:16px
  }
  .queue p {
    font-size:10px
  }
  .queue [data-icon] {
    width:14px;
    height:14px
  }
  .door-button {
    min-height:48px;
    border-radius:12px;
    font-size:14px
  }
  .door-button [data-icon] {
    width:25px;
    height:25px
  }
  .bottom-note {
    min-height:13px;
    font-size:10px
  }
  .bottom-note>span:last-child,.note-divider {
    display:none
  }
  .mission-banner {
    min-height:38px;
    padding:5px 10px;
    font-size:12px;
    border-radius:11px
  }
  .mission-banner button {
    font-size:11px;
    min-height:26px
  }
  .celebration {
    padding:8px 3px;
    font-size:14px;
    border-radius:10px;
    bottom:10%
  }
}
@media(max-width:560px) and (max-height:700px) and (orientation:portrait) {
  .app {
    min-height:540px;
    padding-top:6px;
    gap:5px
  }
  .playground {
    padding-top:7px;
    gap:5px
  }
  .topbar {
    height:38px
  }
  .brand-icon {
    width:32px;
    height:32px
  }
  .brand h1 {
    font-size:19px
  }
  .brand h1>span {
    font-size:16px
  }
  .top-actions .icon-button {
    height:36px;
    width:36px;
    padding:9px
  }
  .mode-switch button {
    min-height:30px
  }
  .elevator-head {
    height:47px
  }
  .display {
    height:41px
  }
  .display #num {
    font-size:28px
  }
  .floor-buttons {
    grid-template-rows:repeat(3,47px);
    gap:6px
  }
  .floor-button {
    min-height:47px
  }
  .floor-button .number {
    font-size:21px
  }
  .panel {
    padding:8px;
    gap:7px
  }
  .door-button {
    min-height:44px
  }
  .bottom-note {
    display:none
  }
  .elevator-footer {
    height:24px
  }
  .stage {
    grid-template-rows:minmax(130px,1fr) auto
  }
  .mission-banner {
    min-height:32px;
    padding-top:2px;
    padding-bottom:2px
  }
}
@media(orientation:landscape) and (max-height:600px) {
  .app {
    padding:8px max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left));
    gap:6px;
    min-height:320px;
    max-width:1060px
  }
  .topbar {
    height:35px
  }
  .brand-icon {
    width:31px;
    height:31px;
    padding:6px;
    border-radius:9px
  }
  .brand h1,.brand h1>span {
    font-size:18px
  }
  .brand p {
    display:none
  }
  .top-actions .icon-button {
    width:34px;
    height:34px;
    padding:8px
  }
  .playground {
    padding:8px 15px 5px;
    gap:5px;
    border-radius:20px;
    position:relative
  }
  .play-toolbar {
    position:absolute;
    top:-42px;
    left:50%;
    transform:translateX(-50%)
  }
  .mode-switch button {
    min-height:29px;
    padding:0 13px;
    font-size:12px
  }
  .mode-switch {
    padding:2px
  }
  .travel-note,.bottom-note {
    display:none
  }
  .stage {
    grid-template-columns:minmax(0,1fr) minmax(260px,.9fr);
    gap:25px
  }
  .elevator-head {
    height:50px;
    justify-content:center
  }
  .display {
    height:44px;
    min-width:120px;
    border-width:4px
  }
  .display #num {
    font-size:31px
  }
  .display .unit {
    margin-top:10px
  }
  .little-label,.capacity {
    display:none
  }
  .elevator-frame {
    padding:8px 8px 0
  }
  .elevator-footer {
    height:25px
  }
  .elevator-footer p {
    font-size:12px
  }
  .panel {
    padding:10px;
    margin:3px 0 6px;
    gap:8px;
    border-radius:17px
  }
  .panel-heading {
    display:none
  }
  .floor-buttons {
    grid-template-columns:repeat(4,minmax(0,1fr));
    grid-template-rows:repeat(3,minmax(45px,1fr));
    gap:7px
  }
  .floor-button {
    min-height:45px;
    border-radius:11px;
    gap:1px;
    padding:2px
  }
  .floor-button .number {
    font-size:22px
  }
  .floor-button .floor-name {
    font-size:10px
  }
  .door-button {
    min-height:45px;
    border-radius:11px
  }
  .door-button [data-icon] {
    width:23px;
    height:23px
  }
  .queue {
    min-height:14px
  }
  .queue p {
    font-size:10px
  }
  .queue [data-icon] {
    width:14px;
    height:14px
  }
  .mission-banner {
    position:absolute;
    z-index:4;
    left:25px;
    bottom:38px;
    width:calc(47% - 25px);
    font-size:11px;
    padding:4px 8px;
    min-height:30px
  }
  .mission-banner button {
    font-size:10px
  }
  .scene-label {
    padding:5px 10px;
    font-size:12px
  }
  .panel-sticker {
    font-size:9px;
    gap:2px
  }
  .panel-sticker [data-icon] {
    width:19px;
    height:19px
  }
  .door-symbol {
    width:34px;
    height:34px
  }
  .celebration {
    font-size:13px;
    padding:9px 3px
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}
/* Reserve room for the mission without squeezing the controls into each other. */
.app:has(.mission-banner:not([hidden])) .panel {
  padding:18px;
  gap:12px
}
@media(min-width:761px) and (max-height:820px) {
  .panel {
    padding:16px;
    gap:11px
  }
  .panel-heading h2 {
    font-size:18px
  }
  .floor-buttons {
    gap:8px;
    grid-template-rows:repeat(4,minmax(48px,1fr))
  }
  .floor-button {
    min-height:48px
  }
  .door-button {
    min-height:56px
  }
  .app:has(.mission-banner:not([hidden])) .panel {
    padding:12px;
    gap:8px
  }
  .app:has(.mission-banner:not([hidden])) .panel-heading .eyebrow {
    display:none
  }
}
@media(max-width:560px) and (orientation:portrait) {
  .app:has(.mission-banner:not([hidden])) .panel {
    padding:11px;
    gap:9px
  }
}
@media(max-width:560px) and (max-height:700px) and (orientation:portrait) {
  .app:has(.mission-banner:not([hidden])) .panel {
    padding:8px;
    gap:7px
  }
}
@media(orientation:landscape) and (max-height:600px) {
  .app:has(.mission-banner:not([hidden])) .panel {
    padding:10px;
    gap:8px
  }
  .floor-buttons {
    grid-template-rows:repeat(3,minmax(45px,1fr));
    gap:7px
  }
  .floor-button {
    min-height:45px
  }
  .door-button {
    min-height:45px
  }
}
.star-toast {
  position:absolute;
  left:50%;
  bottom:16px;
  transform:translateX(-50%);
  z-index:4;
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border-radius:18px;
  background:#fff7d6;
  border:2px solid #f3d383;
  color:#8a5a0c;
  font-weight:800;
  font-size:16px;
  white-space:nowrap;
  box-shadow:0 5px 0 #e2c97a;
  pointer-events:none
}
.star-toast [data-icon] {
  color:#e2a531
}
/* Night mode (html[data-night] is set by ../shared/night.js). */
html[data-night]{--ink:#e6eef2;--muted:#a3b6c1;--green:#3f9a80;background:#16232e}
html[data-night] body{background:radial-gradient(ellipse at 5% 90%,#22364a,transparent 46%),#16232e}
html[data-night] .brand-icon{box-shadow:0 3px 0 #17402f}
html[data-night] .icon-button{background:#243646;border-color:#3a4f62;color:#e6eef2}
html[data-night] .icon-button[aria-pressed=false]{color:#8fa3af}
html[data-night] .playground{background:#1f2f3c;border-color:#2c3f50;box-shadow:0 10px 0 #0f1a23,0 18px 45px #0006}
html[data-night] .mode-switch{background:#16232e}
html[data-night] .mode-switch button{color:#a3b6c1}
html[data-night] .mode-switch button.selected{color:#fff}
html[data-night] .display{border-color:#34485a}
html[data-night] .capacity,html[data-night] .little-label,html[data-night] .queue,html[data-night] .bottom-note,html[data-night] .panel-sticker{color:#8fa3af}
html[data-night] .elevator-frame{background:linear-gradient(90deg,#2a3d4e,#34485a 7%,#34485a 93%,#26384a);border-color:#3a4f62;box-shadow:0 6px 0 #0f1a23,0 14px 20px #0006}
html[data-night] .threshold{background:repeating-linear-gradient(0deg,#3a4f62 0 2px,#26384a 2px 4px)}
html[data-night] .scene{filter:brightness(.8) saturate(.85)}
html[data-night] .scene-label{background:#1f2f3ce8;border-color:#3a4f62;color:#e6eef2}
html[data-night] .panel{background:#263849;border-color:#34485a;box-shadow:0 5px 0 #0f1a23,inset 0 2px 0 #ffffff0a}
html[data-night] .floor-button{background:linear-gradient(#324759,#26384a);border-color:#3a4f62;box-shadow:0 4px 0 #0f1a23,inset 0 2px 0 #ffffff10;color:#e6eef2}
html[data-night] .floor-button .floor-name{color:#a3b6c1}
html[data-night] .floor-button.lit{background:#c99a2e;border-color:#8a6510;color:#1a1408;box-shadow:0 4px 0 #6e500c}
html[data-night] .floor-button.lit .floor-name{color:#3a2c08}
html[data-night] .door-button{background:#2d5a4c;border-color:#3f8a70;box-shadow:0 4px 0 #16332a;color:#e6eef2}
html[data-night] .close-button{background:#5a4430;border-color:#8a6a4a;box-shadow:0 4px 0 #33251a}
html[data-night] .mission-banner{background:#3a2f16;border-color:#5a4a22;color:#f3d383}
html[data-night] dialog{background:#1f2f3c;border-color:#34485a;color:#e6eef2}
html[data-night] .setting-row{border-color:#34485a}
html[data-night] .reset-button{background:#3a2f16;border-color:#5a4a22;color:#f3d383}
html[data-night] .mission-choice{background:#263849;border-color:#34485a;color:#e6eef2}
html[data-night] .eyebrow{color:#7fcbb0}
html[data-night] .floor-button .number{color:#e6eef2}
html[data-night] .floor-button.lit .number{color:#1a1408}
html[data-night] .elevator-footer p{color:#a3b6c1}
