/* Claude 98 on the web: a beige CRT on a plain desk. Monospace type, flat panels, hard edges. */

:root {
    --desk: #1b1a18;
    --text: #d9d4c7;
    --dim: #8b8577;
    --line: #3a3833;
    --plastic: #d6cfbb;
    --plastic-hi: #e6e0cf;
    --plastic-lo: #aea68f;
    --label: #6e6856;
    --accent: #d97757;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--desk);
    color: var(--text);
    font: 13px/1.55 var(--mono);
}
a { color: var(--accent); }
b { color: #fff; font-weight: bold; }

.top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 24px 0;
    border-bottom: 0;
}
.top img { width: 22px; height: 22px; }
.top h1 { margin: 0; font: bold 15px var(--mono); letter-spacing: 3px; color: #fff; }

main {
    display: flex;
    gap: 36px;
    align-items: flex-start;
    justify-content: center;
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 24px 48px;
}

/* ------------------------------------------------------------ monitor */

.rig { display: flex; flex-direction: column; align-items: center; }

.monitor {
    background: var(--plastic);
    border-radius: 10px 10px 6px 6px;
    padding: 26px 28px 0;
    box-shadow:
        inset 0 2px 0 var(--plastic-hi),
        inset 0 -3px 0 var(--plastic-lo),
        inset 2px 0 0 var(--plastic-hi),
        inset -2px 0 0 var(--plastic-lo),
        0 18px 40px rgba(0, 0, 0, 0.6);
}
.bezel {
    padding: 16px;
    background: #2a2a28;
    border-radius: 8px;
    box-shadow: inset 0 0 0 2px #1c1c1a, inset 0 4px 10px rgba(0, 0, 0, 0.8), 0 1px 0 var(--plastic-hi);
}
.tube {
    background: #050505;
    border-radius: 18px / 14px;
    padding: 6px;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.9);
}
.screen {
    position: relative;
    width: 840px;
    height: 630px;
    overflow: hidden;
    border-radius: 14px / 10px;
    background: #000;
}
/* v86's own output stays hidden; it is the shader's source. */
.screen .v86-canvas, .screen .v86-text {
    position: absolute !important;
    left: 0; top: 0;
    opacity: 0 !important;
    pointer-events: none;
}
.screen .crt {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: default;
}

.chin {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 56px;
    padding: 0 4px;
    font: bold 10px var(--mono);
    letter-spacing: 1.5px;
    color: var(--label);
    text-shadow: 0 1px 0 var(--plastic-hi);
}
.chin .badge { letter-spacing: 3px; }
.chin .model { font-weight: normal; letter-spacing: 1px; }
.leds { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.leds label { margin-right: 8px; font-weight: normal; }
.led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4a4838;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.6), 0 1px 0 var(--plastic-hi);
}
.led.on { background: #4cff4c; box-shadow: 0 0 5px #4cff4c; }
.led.amber.on { background: #ffb02e; box-shadow: 0 0 5px #ffb02e; }

.knob, .power {
    font: bold 9px var(--mono);
    letter-spacing: 1px;
    color: var(--label);
    background: var(--plastic);
    border: 0;
    height: 20px;
    padding: 0 8px;
    border-radius: 3px;
    box-shadow: inset 0 1px 0 var(--plastic-hi), inset 0 -2px 0 var(--plastic-lo), 0 1px 2px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}
.knob:active:not(:disabled), .power:active { box-shadow: inset 0 2px 2px var(--plastic-lo); }
.knob:disabled { opacity: 0.5; cursor: default; }
.knob[aria-pressed="false"] { box-shadow: inset 0 2px 2px var(--plastic-lo); color: #958d76; }
.power { width: 34px; height: 26px; padding: 0; display: grid; place-items: center; }
.power span {
    width: 12px; height: 12px;
    border: 2px solid var(--label);
    border-radius: 50%;
    border-top-color: transparent;
    position: relative;
}
.power span::after {
    content: "";
    position: absolute;
    left: 3px; top: -5px;
    width: 2px; height: 8px;
    background: var(--label);
}

/* ------------------------------------------------------------ keys and status */

.keys {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 28px;
}
.key {
    font: bold 11px var(--mono);
    letter-spacing: 1px;
    color: #2b2a26;
    background: #e3dccb;
    border: 0;
    padding: 7px 12px 9px;
    border-radius: 4px;
    box-shadow: inset 0 -4px 0 #b9b19a, inset 0 0 0 1px #9f977f, 0 2px 0 #11100e;
    cursor: pointer;
}
.key:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 -2px 0 #b9b19a, inset 0 0 0 1px #9f977f; }
.key:disabled { opacity: 0.4; cursor: default; }
.key.primary { background: var(--accent); color: #1b1a18; box-shadow: inset 0 -4px 0 #a9553a, inset 0 0 0 1px #8c4730, 0 2px 0 #11100e; }
.disk { margin-left: auto; color: var(--dim); white-space: nowrap; }
.status { margin-left: 8px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------ notice */

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10;
}
.modal[hidden] { display: none; }
.dialog {
    width: 540px;
    max-width: calc(100vw - 24px);
    padding: 20px 22px;
    background: #24231f;
    border: 2px solid var(--text);
    box-shadow: 8px 8px 0 #000;
}
.dialog h2 { margin: 0 0 12px; font: bold 13px var(--mono); letter-spacing: 2px; color: #fff; }
.eula-text {
    max-height: 260px;
    overflow-y: auto;
    padding: 10px 12px;
    margin-bottom: 14px;
    background: #121210;
    border: 1px solid var(--line);
    font-size: 12px;
}
.eula-text p { margin: 0 0 10px; }
.eula-text p:last-child { margin-bottom: 0; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { accent-color: var(--accent); width: 14px; height: 14px; margin: 0; }
.buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* full screen: the tube fills the display at 4:3 */
.screen:fullscreen { width: auto; height: 100vh; aspect-ratio: 4 / 3; margin: auto; border-radius: 0; background: #000; }

/* how to reach Claude (deployed site only) */
.via { margin: 16px 0 0; padding: 10px 12px 8px; border: 1px solid var(--line); }
.via legend { padding: 0 6px; font: bold 11px var(--mono); letter-spacing: 2px; color: #fff; }
.choice { display: flex; align-items: center; gap: 8px; margin: 4px 0; cursor: pointer; }
.choice input { accent-color: var(--accent); margin: 0; }
.dim { color: var(--dim); }
.small { font-size: 11px; margin: 6px 0 0; }
.turnstile { margin: 6px 0 6px 22px; min-height: 0; }
.api-key {
    width: calc(100% - 22px);
    margin: 4px 0 0 22px;
    padding: 6px 8px;
    font: 12px var(--mono);
    color: var(--text);
    background: #121210;
    border: 1px solid var(--line);
}
.api-key:disabled { opacity: 0.4; }
.api-key.standalone { width: 100%; margin: 4px 0 0; }
#quota-msg { margin: 0 0 10px; color: #fff; }
