* {
    margin: 0;
    padding: 0;
}

html,
body {
    overflow: hidden;
}

.webgl {
    position: fixed;
    top: 0;
    left: 0;
    outline: none;
}

.jitter {
    animation-duration: 0.3s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: jittery;
    z-index: -10;
}

.interface-wrapper {
    width: 100%;
    top: 64px;
    left: 64px;
}

.icon-control-container {
    height: 26.5px;
    width: 26.5px;
}

@media only screen and (max-width: 768px) {
    .interface-wrapper {
        width: 100%;
        top: 24px;
        left: 24px;
    }

    .icon-control-container {
        height: 19.5px;
        width: 19.5px;
    }
}

@keyframes jittery {
    10% {
        transform: translate(-0.1px, -0.15px) scale(1, 1);
    }

    20% {
        transform: translate(0.15px, 0.1px) scale(1, 1);
    }

    30% {
        transform: translate(-0.2px, -0.25px) scale(1, 1);
    }

    40% {
        transform: translate(0.05px, 0.1px) scale(1, 1);
    }

    50% {
        transform: translate(-0.025px, -0.05px) scale(1, 1);
    }

    60% {
        transform: translate(0px, 0.075px) scale(1, 1);
    }

    70% {
        transform: translate(-0.075px, -0.1px) scale(1, 1);
    }

    80% {
        transform: translate(0.075px, 0.125px) scale(1, 1);
    }

    90% {
        transform: translate(-0.125px, -0.075px) scale(1, 1);
    }

    100% {
        transform: translate(0.075px, 0.025px) scale(1, 1);
    }
}

/* Contact-sheet density and quiet Tiger-era chrome keep the photograph dominant. */
.camera-library-backdrop {
    position: fixed; inset: 0; z-index: 110; display: grid; place-items: center;
    padding: 28px; background: rgba(9, 11, 12, .58); pointer-events: auto;
}
.camera-library {
    --photo-ink: #282b2c; --photo-blue: #6e9fd2;
    display: flex; flex-direction: column; width: min(1020px, 100%);
    height: min(780px, calc(100dvh - 56px)); min-height: 0; overflow: hidden;
    border: 1px solid #797b7b; border-radius: 9px;
    background: #d7d8d7; color: var(--photo-ink); text-shadow: none;
    font: 12px/1.4 'Lucida Grande', 'Lucida Sans Unicode', Arial, sans-serif;
    box-shadow: 0 24px 75px #0008, 0 1px 0 #ffffffc9 inset; outline: none;
}
.camera-library button { font: inherit; color: inherit; cursor: pointer; }
.camera-library button:disabled { opacity: .4; cursor: default; }
.camera-library button:focus-visible { outline: 3px solid #88b9ee; outline-offset: 2px; }
.camera-library__titlebar {
    position: relative; flex: none; display: flex; justify-content: center; align-items: center;
    min-height: 34px; padding: 0 92px; border-bottom: 1px solid #858888;
    background: linear-gradient(#f0f1ef, #d5d7d6 46%, #bfc2c1 49%, #cbd0cc);
    box-shadow: 0 1px 0 #ffffffe0 inset;
}
.camera-library__titlebar h2 { font-size: 13px; font-weight: 600; margin: 0; text-shadow: 0 1px #fff9; }
.camera-library__titlebar > span { display: none; }
.camera-library__close {
    position: absolute; left: 13px; top: 10px; width: 15px; height: 15px;
    display: grid; place-items: center; padding: 0; border: 1px solid #9d4c41;
    border-radius: 50%; background: linear-gradient(#f8b4a7, #e16e5b 55%, #f69883);
    box-shadow: 0 1px 1px #fff9 inset, 0 1px #fff8; font-size: 13px !important; line-height: 1 !important;
}
.camera-library__toolbar {
    display: flex; align-items: center; gap: 12px; flex: none; padding: 9px 14px;
    border-bottom: 1px solid #777b7b; background: linear-gradient(#e8e9e7, #c1c4c2);
    box-shadow: 0 1px #fff8 inset;
}
.camera-library__stepper, .camera-library__view { display: flex; }
.camera-library__toolbar button {
    min-width: 39px; height: 25px; padding: 1px 13px; border: 1px solid #8b9091;
    background: linear-gradient(#fff, #d8dcdc); box-shadow: 0 1px 0 #fff9 inset;
}
.camera-library__toolbar button:first-child { border-radius: 5px 0 0 5px; }
.camera-library__toolbar button:last-child { border-radius: 0 5px 5px 0; border-left: 0; }
.camera-library__stepper button { font-size: 22px; line-height: 18px; }
.camera-library__view { margin-left: auto; }
.camera-library__view button[aria-pressed='true'] {
    background: linear-gradient(#8aaed0, #b8d7ef 50%, #87b7df);
    box-shadow: 0 1px 3px #3d678355 inset; border-color: #67869e;
}
.camera-library__count { font-variant-numeric: tabular-nums; color: #4b5052; }
.camera-library__stage {
    position: relative; display: flex; align-items: center; justify-content: center;
    flex: 1; min-height: 100px; overflow: hidden; background: #212323;
    box-shadow: 0 1px 5px #0008 inset;
}
.camera-library__stage > img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.camera-library__stage > img.is-fill { object-fit: cover; padding: 0; }
.camera-library__stage > p { position: absolute; color: #c4c9c6; }
.camera-library__empty { text-align: center; padding: 24px; color: #c4c9c6; }
.camera-library__empty > span { display: block; font-size: 38px; color: #888f8c; margin-bottom: 12px; }
.camera-library__empty strong { display: block; font-size: 14px; font-weight: 500; }
.camera-library__empty p { font-size: 12px; color: #9aa39e; }
.camera-library__caption {
    display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
    flex: none; min-height: 36px; padding: 9px 16px; background: #e7e8e4;
    border-bottom: 1px solid #aaaead;
}
.camera-library__caption strong { font-size: 12px; font-weight: 500; }
.camera-library__caption span { font-size: 11px; color: #69706c; white-space: nowrap; }
.camera-library__filmstrip {
    display: flex; align-items: center; gap: 9px; flex: none; min-height: 92px;
    overflow-x: auto; padding: 9px 14px; background: #bec3bf;
    box-shadow: 0 1px 3px #5a655322 inset; scrollbar-width: thin;
}
.camera-library__filmstrip button {
    position: relative; flex: 0 0 83px; height: 68px; padding: 3px;
    background: #eef0eb; border: 1px solid #919991; border-radius: 2px;
    box-shadow: 0 1px 2px #46504030;
}
.camera-library__filmstrip button[aria-current='true'] {
    outline: 3px solid #679ace; outline-offset: 1px;
}
.camera-library__filmstrip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.camera-library__filmstrip span {
    position: absolute; bottom: 3px; right: 3px; min-width: 17px; padding: 1px 3px;
    font-size: 9px; color: #fff; background: #18231cc9; text-align: center;
}
.camera-library__status {
    display: flex; justify-content: space-between; gap: 14px; flex: none;
    padding: 5px 14px; font-size: 10px; color: #5d6460;
    background: linear-gradient(#e4e7e2, #ced3cc); border-top: 1px solid #a5aea4;
}
@media (max-width: 620px) {
    .camera-library-backdrop { padding: 10px; }
    .camera-library { height: calc(100dvh - 20px); }
    .camera-library__titlebar { padding: 0 36px; }
    .camera-library__titlebar h2 { font-size: 12px; }
    .camera-library__toolbar { gap: 8px; padding: 9px 10px; }
    .camera-library__toolbar button { min-width: 36px; height: 30px; padding: 1px 10px; }
    .camera-library__caption { display: block; padding: 8px 12px; }
    .camera-library__caption span { display: block; margin-top: 3px; }
    .camera-library__status > span:last-child { display: none; }
    .camera-library__filmstrip { min-height: 79px; }
    .camera-library__filmstrip button { height: 56px; flex-basis: 70px; }
}
.room-navigation {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 3px; padding: 5px;
    max-width: calc(100vw - 24px); width: max-content; pointer-events: auto; z-index: 100;
    border: 1px solid #c5c5af36; border-radius: 8px; color: #dfdfd1;
    background: #1c211fe8; box-shadow: 0 3px 14px #0005, 0 1px #ffffff0a inset;
    font: 12px/1.3 'Lucida Grande', 'Lucida Sans Unicode', sans-serif;
}
.room-navigation button {
    color: inherit; background: none; border: 0; border-radius: 4px;
    padding: 8px 12px; font: inherit; white-space: nowrap; cursor: pointer;
}
.room-navigation button:hover { background: #cbd8d016; }
.room-navigation button[aria-current='page'] { background: #b9c9bd24; color: #fafbef; }
.room-navigation button:focus-visible { outline: 2px solid #bbd7c1; outline-offset: -2px; }
.room-navigation__hint { color: #a0aa9f; margin: 0 10px 0 3px; font-size: 10px; }
@media (max-width: 500px) {
    .room-navigation { bottom: 12px; gap: 0; padding: 4px; font-size: 11px; }
    .room-navigation button { padding: 10px 8px; }
}
.camera-library, .camera-library * { box-sizing: border-box; }
.camera-library__titlebar h2 { font-family: inherit; color: var(--photo-ink); }
.camera-library p { font-family: inherit; }

/* Match the existing black, monospace room HUD; no persistent controls. */
.room-object {
    --room-surface: #0d0e0f;
    --room-ink: #e4e4de;
    --room-muted: #a3a6a3;
    --room-rule: #363a3b;
    --room-control: #191c1d;
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(520px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--room-rule);
    border-radius: 2px;
    background: var(--room-surface);
    color: var(--room-ink);
    box-shadow: 0 12px 36px #0005;
    font: 12px/1.6 Menlo, Monaco, 'Courier New', monospace;
    text-shadow: none;
    pointer-events: auto;
    color-scheme: dark;
}

.room-object[open] {
    display: flex;
    flex-direction: column;
}

.room-object::backdrop {
    background: rgb(0 0 0 / 24%);
    pointer-events: auto;
}

.room-object *,
.room-object *::before,
.room-object *::after {
    box-sizing: border-box;
}

.room-object h2,
.room-object h3,
.room-object p {
    margin: 0;
    color: inherit;
    font: inherit;
}

.room-object h2 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.room-object a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.room-object a:hover {
    color: #fff;
}

.room-object button {
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid var(--room-rule);
    border-radius: 2px;
    color: inherit;
    background: var(--room-control);
    font: inherit;
    line-height: 1.5;
    cursor: pointer;
    touch-action: manipulation;
}

.room-object button:hover:not(:disabled) {
    border-color: #858b88;
    background: #242829;
}

.room-object button:active:not(:disabled) {
    background: #303536;
}

.room-object button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.room-object :is(button, a):focus-visible {
    outline: 1px solid var(--room-ink);
    outline-offset: 3px;
}

.room-object__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: none;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--room-rule);
    background: #060707;
}

.room-object__eyebrow {
    display: block;
    color: var(--room-muted);
    font-size: 10px;
}

.room-object .room-object__close {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 32px;
    padding: 4px 8px;
    background: transparent;
    font-size: 11px;
}

.room-object__close > span {
    font-size: 16px;
    line-height: 1;
}

.room-object__body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px;
    scrollbar-color: #525856 var(--room-surface);
    scrollbar-width: thin;
}

.room-object .room-object__intro {
    margin-bottom: 12px;
    color: var(--room-muted);
}

.room-object .room-object__note {
    margin-top: 16px;
    color: var(--room-muted);
    font-size: 10px;
}

.room-object__projects {
    margin: 0;
    padding: 0;
    list-style: none;
}

.room-object__projects li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--room-rule);
}

.room-object__projects li:first-child { padding-top: 0; }
.room-object__projects li:last-child { border-bottom: 0; }

.room-object__number {
    padding-top: 5px;
    color: var(--room-muted);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.room-object__projects h3 {
    font-weight: 600;
    line-height: 1.5;
}

.room-object__projects h3 a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 28px;
    text-decoration: none;
}

.room-object__projects h3 a:hover { text-decoration: underline; }
.room-object__projects h3 span { flex: none; color: var(--room-muted); }
.room-object__projects p { font-size: 11px; }
.room-object .room-object__stack { margin-top: 6px; color: var(--room-muted); font-size: 10px; }

.room-object--radio,
.room-object--contact {
    width: min(420px, calc(100vw - 32px));
}

.room-object__tuner {
    padding: 12px;
    border: 1px solid var(--room-rule);
    background: #080a0a;
}

.room-object__radio-state {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--room-muted);
    font-size: 10px;
}

.room-object__lamp {
    flex: none;
    width: 5px;
    height: 5px;
    background: #5c615e;
}

.room-object__lamp[data-on='true'] { background: #b9c8af; }
.room-object__tuner h3 { margin: 12px 0 2px; font-size: 14px; }
.room-object__tuner p { color: var(--room-muted); }
.room-object__record { display: block; margin-top: 10px; color: var(--room-muted); font-size: 10px; }

.room-object__transport {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.room-object__transport button { min-width: 0; }
.room-object .room-object__play { border-color: #929a92; }
.room-object__radio-bottom { display: flex; justify-content: flex-end; margin-top: 8px; }

.room-object__email {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.room-object__email > a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.room-object__email button { font-size: 11px; }
.room-object .room-object__copy-status { color: var(--room-muted); font-size: 10px; }
.room-object .room-object__copy-status:not(:empty) { margin-top: 8px; }

.room-object__contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin-top: 16px;
    border-top: 1px solid var(--room-rule);
    padding-top: 8px;
}

.room-object__contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    font-size: 11px;
}

@media (max-width: 480px) {
    .room-object {
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
    }
    .room-object__header { gap: 12px; }
    .room-object__projects li { gap: 8px; }
}

@media (pointer: coarse) {
    .room-object button,
    .room-object__contact-links a,
    .room-object__projects h3 a,
    .room-object__email > a { min-height: 44px; }
}

h1,
h2,
h3,
h4,
h5,
p {
    /* font-family: ocr-a-std, monospace; */
    font-family: monospace;
    font-weight: 400;
    font-style: normal;
    color: white;
    /* mobile friendly font size */
    font-size: 16px;
}

/* if on mobile */
@media only screen and (max-width: 768px) {
    h1,
    h2,
    h3,
    h4,
    h5,
    p {
        font-size: 10px;
    }
}

br {
    padding-top: 8px;
    padding-bottom: 8px;
    height: 16px;
}

.loading::after {
    display: inline-block;
    animation: dotty steps(1, end) 1s infinite;
    content: '';
}

@keyframes dotty {
    0% {
        content: '   ';
    }
    25% {
        content: '. ';
    }
    50% {
        content: '.. ';
    }
    75% {
        content: '...';
    }
    100% {
        content: '   ';
    }
}
.blinking-cursor {
    background-color: #fff;
    width: 0.8em;
    height: 0.15em;
    -webkit-animation: 0.65s blink step-end infinite;
    -moz-animation: 0.65s blink step-end infinite;
    -ms-animation: 0.65s blink step-end infinite;
    -o-animation: 0.65s blink step-end infinite;
    animation: 0.65s blink step-end infinite;
}

@keyframes blink {
    from,
    to {
        background-color: transparent;
    }
    50% {
        background-color: white;
    }
}

@-moz-keyframes blink {
    from,
    to {
        background-color: transparent;
    }
    50% {
        background-color: white;
    }
}

@-webkit-keyframes blink {
    from,
    to {
        background-color: transparent;
    }
    50% {
        background-color: white;
    }
}

@-ms-keyframes blink {
    from,
    to {
        background-color: transparent;
    }
    50% {
        background-color: white;
    }
}

@-o-keyframes blink {
    from,
    to {
        background-color: transparent;
    }
    50% {
        background-color: white;
    }
}

.bios-start-button {
    background-color: #000;
    border: 4px solid #fff;
    border-width: 4px 3px 4px 3px;
}

.bios-start-button p {
    box-sizing: border-box;
    padding: 8px;
}

.bios-start-button:hover p {
    background-color: #fff;
    cursor: pointer;
    color: #000;
}

.loading-screen-header {
    padding: 48px;
}

.loading-screen-body {
    padding-left: 48px;
    padding-right: 48px;
}

.loading-screen-footer {
    padding: 48px;
    padding-bottom: 64px;
}

.info-wrapper {
    top: 64px;
    left: 64px;
}

/* if on mobile make all loading screen elements have a padding of 16 */
@media only screen and (max-width: 768px) {
    .loading-screen-header {
        padding: 16px;
    }

    .info-wrapper {
        top: 16px;
        left: 16px;
    }

    .blinking-cursor {
        background-color: #fff;
        width: 0.4em;
        height: 0.08em;
        -webkit-animation: 0.65s blink step-end infinite;
        -moz-animation: 0.65s blink step-end infinite;
        -ms-animation: 0.65s blink step-end infinite;
        -o-animation: 0.65s blink step-end infinite;
        animation: 0.65s blink step-end infinite;
    }
    
    .loading-screen-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .loading-screen-footer {
        padding: 16px;
        padding-bottom: 32px;
    }
}

