* { box-sizing: border-box; }
html { background: #060910; color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  color: #e7f5f7;
  font: 1rem/1.42 system-ui, sans-serif;
}
:focus-visible { outline: 2px solid #98edee; outline-offset: 3px; }
.cockpit {
  position: relative;
  width: min(100%, calc(100svh * 1672 / 941));
  aspect-ratio: 1672 / 941;
  container-type: inline-size;
  background: #060a12 url('/assets/cockpit.webp') center / 100% 100% no-repeat;
}
.return, .order-sound { position: absolute; z-index: 2; top: max(2%, env(safe-area-inset-top)); }
.return {
  inset-inline-start: max(1.7%, env(safe-area-inset-left));
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5em .95em;
  border: 1px solid #c2935d9c;
  border-radius: .45em;
  color: #ffdeb2;
  background: #13171bed;
  text-decoration: none;
  font-weight: 550;
}
.return:hover { background: #302923; }
.order-sound { inset-inline-end: max(1.7%, env(safe-area-inset-right)); }
.monitor {
  position: absolute;
  left: 23.15%;
  top: 39%;
  width: 53.8%;
  height: 43.3%;
  display: flex;
  flex-direction: column;
  gap: .55em;
  padding: clamp(8px, 1.3cqw, 26px) clamp(14px, 2cqw, 38px);
  font-size: clamp(14px, 1.12cqw, 19px);
}
.display-id {
  padding-block-end: .45em;
  border-bottom: 1px solid #54838c65;
  color: #91cdd4;
  font: 600 clamp(10px, .86cqw, 14px)/1.15 ui-monospace, monospace;
  letter-spacing: .12em;
}
.display-id::before {
  content: '';
  display: inline-block;
  width: .47em;
  height: .47em;
  margin-right: .65em;
  vertical-align: .12em;
  border-radius: 50%;
  background: #91f1e4;
  box-shadow: 0 0 6px #5fe2cc8c;
}
.monitor-body { flex: 1; min-height: 0; overflow: auto; padding: 3px; scrollbar-width: thin; }
.monitor .inquiry-form {
  --inquiry-ink: #e7f5f7;
  --inquiry-text: #c4dade;
  --inquiry-stroke: #59818b;
  --inquiry-field: #0b1f2ce8;
  --inquiry-button: #95e2df;
  --inquiry-button-text: #062127;
  --inquiry-focus: #98edee;
  gap: .5em;
  height: 100%;
  grid-template-rows: auto auto minmax(3.1em, 1fr) auto;
  font-size: inherit;
}
.monitor .inquiry-form:has(.inquiry-receipt:not([hidden])) { height: auto; grid-template-rows: auto; }
.monitor .inquiry-header h1 { font-size: clamp(20px, 1.9cqw, 35px); }
.monitor .inquiry-form textarea { height: 100%; min-height: 0; resize: none; }
@media (max-width: 900px) and (orientation: portrait) {
  .cockpit {
    width: 100%;
    min-height: 100svh;
    aspect-ratio: auto;
    padding: clamp(76px, 28svh, 320px) max(12px, env(safe-area-inset-right)) max(42px, 7svh) max(12px, env(safe-area-inset-left));
    background-size: auto max(700px, 100svh);
    background-position: center top;
  }
  .monitor {
    position: static;
    width: 100%;
    height: auto;
    padding: clamp(16px, 4vw, 32px);
    border: 6px solid #3d3c39;
    border-radius: 18px;
    background: linear-gradient(140deg, #101b27, #030b16 35%, #071321);
    box-shadow: 0 0 0 1px #ac865f, inset 0 0 15px #000;
    font-size: 16px;
  }
  .monitor-body { overflow: visible; }
  .monitor .inquiry-form { gap: .75em; grid-template-rows: auto; }
  .monitor .inquiry-header h1 { font-size: clamp(25px, 5vw, 36px); }
  .monitor .inquiry-form textarea { min-height: 7em; height: 16svh; }
}
@media (max-height: 550px) and (orientation: landscape) {
  .cockpit { width: min(100%, 1200px); min-height: 500px; }
  .monitor { left: 21%; width: 58%; top: 37%; height: 48%; padding: 10px 15px; background: #07101cef; border-radius: 8px; }
}
