:root { color-scheme: light; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; color: #171717; background: #f5f5f3; }
* { box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f5f5f3; }
.app-shell { position: relative; display: flex; flex-direction: column; width: min(780px, calc(100% - 48px)); height: 100svh; min-height: 0; margin: 0 auto; padding: 32px 0 36px; overflow: hidden; }
.topbar { display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 34px; }
h1 { margin: 0; font: 900 clamp(2.35rem, 11vw, 3.25rem)/.9 Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; letter-spacing: -.035em; }
.tagline, .site-footer { color: #454545; font-size: .72rem; font-weight: 900; letter-spacing: .08em; }.tagline { margin: 10px 0 0; }.site-footer { margin-top: 16px; text-align: center; }.site-footer a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.help-button { position: absolute; top: 32px; right: 0; width: 22px; height: 22px; padding: 0; border: 1px solid #171717; border-radius: 50%; background: transparent; color: #454545; font: 900 .76rem/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; cursor: pointer; }.help-button:hover, .help-button:focus-visible { background: #171717; color: #f5f5f3; outline: none; }
.workspace { display: grid; flex: 1; min-height: 0; grid-template-columns: minmax(0, 220px) 176px; justify-content: center; align-content: start; align-items: center; gap: 34px; }
.simulation { position: relative; width: 176px; margin: 0; order: 2; display: flex; flex-direction: column; align-items: center; }
.shaft-meta { width: 176px; display: flex; justify-content: space-between; align-items: center; height: 21px; margin: 0 2px 4px; color: #454545; font-size: .68rem; font-weight: 700; letter-spacing: .03em; }
.floor-list { --floor-height: 82px; --floor-count: 6; position: relative; width: 176px; height: calc(var(--floor-height) * var(--floor-count)); border: 1.5px solid #171717; }
.floor { position: relative; height: var(--floor-height); }
.floor::after { content: ""; position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; border-bottom: 1.5px dotted #171717; }
.floor:last-child::after { display: none; }
.queue { position: absolute; z-index: 1; left: calc(100% + 10px); bottom: 10px; display: flex; align-items: end; justify-content: start; gap: 3px; width: 100px; min-height: 75px; overflow: hidden; }
.person { display: inline-block; width: 17px; height: 41px; position: relative; flex: 0 0 17px; animation: voxel-idle 1.7s ease-in-out var(--life-delay, 0ms) infinite alternate; }
.queue .person:first-child.has-box { margin-left: 4px; }
.person i { position: absolute; display: block; box-sizing: border-box; background: #f5f5f3; border: 1.2px solid #171717; }
.person-head { width: 11px; height: 10px; top: 0; left: 3px; }
.person-body { width: 17px; height: 19px; top: 10px; left: 0; }
.person-hair { z-index: 1; border-color: #171717; background: #343434 !important; }
.person-head, .person-body { z-index: 2; }
.person-box { z-index: 4; width: 15px; height: 10px; top: 15px; left: 1px; border-color: #563719 !important; background: #a8703f !important; }
.person-box::before, .person-box::after { content: ""; position: absolute; top: 2px; width: 4px; height: 5px; border: 1px solid #171717; background: #f5f5f3; }
.person-box::before { left: -4px; }.person-box::after { right: -4px; }
.destination-label { position: absolute; z-index: 7; top: 32px; left: 0; width: 100%; color: #454545; font-size: .58rem; font-weight: 700; line-height: 1; text-align: center; }
.urgency-marker { z-index: 5; width: 11px; height: 11px; top: -14px; left: 3px; display: block !important; border: 0 !important; border-radius: 50%; background: #e4ce4a !important; }
.has-urgency.has-tip .urgency-marker { top: -30px; }
.tip-marker { z-index: 6; width: 14px; height: 14px; top: -18px; left: 1px; display: grid !important; place-items: center; border: 0 !important; border-radius: 50%; background: #94c89d !important; color: #fff; font: 800 6px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; letter-spacing: 0; }
.uniform-olive { background: #697447 !important; }
.person-cap { z-index: 4; width: 15px; height: 6px; top: -3px; left: 1px; border-color: #171717 !important; border-radius: 8px 8px 2px 2px; background: #697447 !important; }.person-cap::after { content: ""; position: absolute; width: 3px; height: 3px; top: -4px; left: 5px; border: 1px solid #171717; border-bottom: 0; background: #697447; }
.person-mustache { z-index: 4; width: 10px; height: 4px; top: 5px; left: 3.5px; border: 0 !important; background: #171717 !important; clip-path: polygon(0 20%, 35% 0, 50% 45%, 65% 0, 100% 20%, 82% 100%, 50% 62%, 18% 100%); }
.person-badge { z-index: 4; width: 5px; height: 6px; top: 14px; right: 2px; border: 1px solid #171717 !important; background: #3b4631 !important; box-shadow: inset 0 1px 0 #d4c36b, inset 0 -1px 0 #d4c36b; }
.hair-bald { display: none !important; }
.hair-crop { width: 11px; height: 4px; top: 0; left: 3px; z-index: 3; }
.hair-bob { width: 15px; height: 13px; top: -1px; left: 1px; border-radius: 7px 7px 2px 2px; }
.hair-long { width: 15px; height: 23px; top: -1px; left: 1px; border-radius: 7px 7px 2px 2px; }
.hair-bun { width: 6px; height: 6px; top: -3px; right: -1px; z-index: 1; }
.cab { position: absolute; z-index: 3; width: 72%; height: 64px; left: 14%; top: calc((var(--floor-count) - var(--cab-floor)) * var(--floor-height) + 9px); border: 1.5px solid #171717; background: #f5f5f3; display: flex; align-items: end; justify-content: center; gap: 3px; padding: 6px; }
.cab::before, .cab::after { content: ""; position: absolute; bottom: 100%; width: 1.5px; height: 20px; background: #171717; }
.cab::before { left: 25%; }.cab::after { right: 25%; }
.cab .person { transform: scale(.72); transform-origin: bottom; margin: -3px; }
.traveler { position: absolute; z-index: 4; width: 17px; height: 29px; pointer-events: none; }
.traveler .person { animation: voxel-walk .38s ease-in-out infinite alternate; }
@keyframes voxel-idle { from { translate: 0 0; } to { translate: 0 -1.5px; } }
@keyframes voxel-walk { from { translate: 0 0; } to { translate: 0 -2px; } }
.model-form { width: min(100%, 220px); margin: 0; padding-top: 0; border-top: 0; display: grid; gap: 16px; font-size: .72rem; order: 1; align-self: stretch; align-content: start; }
.model-form > p { margin: 0 0 2px; font-size: .84rem; font-weight: 900; letter-spacing: .08em; }
.model-form label { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; font-weight: 700; }
.model-form select, .model-form button { min-height: 25px; border: 1px solid #171717; border-radius: 0; background: transparent; color: #171717; font: inherit; padding: 3px 5px; }
.api-key-field { display: grid !important; grid-template-columns: 1fr !important; gap: 5px !important; }.api-key-field input { width: 100%; min-height: 26px; padding: 4px 5px; border: 1px solid #171717; border-radius: 0; background: transparent; color: #171717; font: inherit; }.api-key-field input:focus { outline: 1px solid #171717; outline-offset: 1px; }
.model-form select { min-width: 92px; }.model-form button { margin-top: 2px; cursor: pointer; font-weight: 800; }.model-form button:hover, .model-form button:focus-visible { background: #171717; color: #f5f5f3; outline: none; }
.algorithm-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; width: 100%; }.algorithm-switch button { margin: 0; min-width: 0; font-size: .65rem; }.algorithm-switch button + button { border-left: 0; }.algorithm-switch button[aria-pressed="true"] { background: #171717; color: #f5f5f3; }
.range-field { grid-template-columns: 1fr auto !important; }.range-field input { grid-column: 1 / -1; width: 100%; height: 12px; margin: 0; appearance: none; -webkit-appearance: none; background: transparent; }.range-field input::-webkit-slider-runnable-track { height: 2px; background: #171717; }.range-field input::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: -5px; appearance: none; -webkit-appearance: none; border: 1px solid #171717; border-radius: 0; background: #f5f5f3; }.range-field input::-moz-range-track { height: 2px; background: #171717; }.range-field input::-moz-range-thumb { width: 11px; height: 11px; border: 1px solid #171717; border-radius: 0; background: #f5f5f3; }.range-field output { color: #454545; font-variant-numeric: tabular-nums; }
.characteristics { border: 0; padding: 0; display: grid; gap: 14px; }.characteristics summary { cursor: pointer; font-size: .8rem; font-weight: 900; list-style: none; }.characteristics summary::-webkit-details-marker { display: none; }.characteristics summary::after { content: "+"; float: right; color: #454545; }.characteristics[open] summary::after { content: "−"; }.characteristics[open] summary { margin-bottom: 4px; }.characteristics[open] > label { margin-left: 10px; width: calc(100% - 10px); font-size: .64rem; }.characteristics[open] > label + label { margin-top: 10px; }
.characteristic-name { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }.characteristic-key { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; }.key-pee { background: #e4ce4a; }.key-war { background: #697447; }.key-tip { display: grid; place-items: center; background: #94c89d; color: #fff; font: 800 6px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }.key-box { background: #a8703f; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.help-dialog { width: min(481px, calc(100% - 34px)); margin: auto; padding: 18px; border: 1.5px solid #171717; border-radius: 0; background: #f5f5f3; color: #171717; font: .7rem/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }.help-dialog::backdrop { background: rgb(23 23 23 / .24); }.help-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }.help-heading h2 { margin: 0; font-size: .84rem; letter-spacing: .08em; }.help-heading button { width: 22px; height: 22px; padding: 0; border: 1px solid #171717; border-radius: 0; background: transparent; font: 900 1rem/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; cursor: pointer; }.help-dialog p { margin: 14px 0; }.help-dialog dl { margin: 0; display: grid; grid-template-columns: 76px 1fr; gap: 9px 12px; }.help-dialog .help-characteristics { grid-template-columns: max-content minmax(0, 1fr); }.help-dialog .help-characteristics .characteristic-name { white-space: nowrap; }.help-dialog dt { font-weight: 900; }.help-dialog dd { margin: 0; color: #454545; }.help-dialog .help-note { margin-bottom: 0; color: #454545; font-size: .63rem; }
.key-dialog { width: min(330px, calc(100% - 34px)); margin: auto; padding: 18px; border: 1.5px solid #171717; border-radius: 0; background: #f5f5f3; color: #171717; font: .7rem/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }.key-dialog::backdrop { background: rgb(23 23 23 / .24); }.key-dialog p { margin: 14px 0; }.key-dialog-actions { display: flex; justify-content: end; margin-top: 16px; }.key-dialog-actions button { min-height: 27px; border: 1px solid #171717; border-radius: 0; background: #171717; color: #f5f5f3; font: 800 .68rem/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; padding: 6px 8px; cursor: pointer; }
@media (max-width: 460px) { html, body { height: auto; overflow-y: auto; } body { min-height: 100svh; } .app-shell { width: min(430px, calc(100% - 28px)); height: auto; min-height: 100svh; padding-top: 24px; padding-bottom: 28px; overflow: visible; }.topbar { margin-bottom: 28px; }.workspace { grid-template-columns: 1fr; min-height: auto; gap: 34px; }.model-form { width: min(100%, 290px); margin-inline: auto; }.simulation { order: 2; margin: 0 auto; } }
@media (max-width: 410px) { .app-shell { width: calc(100% - 22px); }.simulation { width: 160px; }.shaft-meta { width: 160px; }.floor-list { --floor-height: 76px; width: 160px; }.queue { width: 76px; left: calc(100% + 8px); gap: 1px; }.person { transform: scale(.82); transform-origin: bottom; margin-right: -2px; }.model-form { width: min(100%, 270px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
