* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: "MS Sans Serif", Tahoma, Arial, sans-serif;
    font-size: 12px;
    user-select: none;
    overflow: hidden;
    background: #2a2a2a;
}

body {
    background: radial-gradient(ellipse at 50% 30%, #4a4a4a 0%, #1a1a1a 70%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    cursor: default;
}

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

.monitor {
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.7));
}

.monitor-shell {
    width: 620px;
    height: 500px;
    background: linear-gradient(to bottom, #d8d0be 0%, #c4bcaa 45%, #a8a090 50%, #b8b0a0 55%, #d0c8b6 100%);
    border-radius: 24px;
    padding: 26px 26px 0 26px;
    position: relative;
    border: 1px solid #8a8270;
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.55),
        inset 0 -2px 0 rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}

.screen {
    flex: 1;
    background: #050505;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    border: 4px solid #1a1614;
    box-shadow:
        inset 0 0 40px rgba(0,0,0,0.9),
        inset 0 0 0 1px #000;
}

.screen.on {
    background: #000;
}

.screen-content {
    position: absolute;
    inset: 0;
    padding: 22px 24px;
    font-family: "Courier New", monospace;
    font-size: 13px;
    line-height: 1.35;
    color: #c8c8c8;
    white-space: pre-wrap;
    overflow: hidden;
}

.screen.flash::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    z-index: 5;
    animation: crt-flash 0.35s ease-out forwards;
}

@keyframes crt-flash {
    0%   { opacity: 1; transform: scaleY(0.005); }
    35%  { opacity: 1; transform: scaleY(1); }
    100% { opacity: 0; transform: scaleY(1); }
}

.screen-content.bios { color: #d0d0d0; }
.screen-content.bios .dim { color: #808080; }

.screen-content.bios-post { padding: 0; }

.bios-post {
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: "Courier New", monospace;
    font-size: 13px;
    line-height: 1.35;
    color: #d0d0d0;
}

.bios-post-stream {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 24px 8px 24px;
    scrollbar-width: thin;
    scrollbar-color: #333 #000;
}

.bios-post-stream::-webkit-scrollbar { width: 8px; }
.bios-post-stream::-webkit-scrollbar-track { background: #000; }
.bios-post-stream::-webkit-scrollbar-thumb { background: #333; }

.bios-post-bottom {
    flex-shrink: 0;
    padding: 8px 24px;
    color: #a0a0a0;
    border-top: 1px dashed #333;
    white-space: pre;
}

.bios-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 6px;
}

.bios-header-text {
    display: flex;
    flex-direction: column;
}

.bios-title {
    font-weight: bold;
    font-size: 14px;
    color: #e0e0e0;
    line-height: 1.2;
}

.bios-title.dim {
    color: #808080;
    font-weight: normal;
    font-size: 12px;
}

.bios-header-fish {
    font-size: 44px;
    line-height: 1;
    filter: grayscale(1) brightness(1.6) contrast(0.85);
    opacity: 0.92;
    user-select: none;
    transform: translateY(-2px);
}

.bios-tab {
    display: inline-block;
    padding: 0 8px;
    color: #a0a0a0;
}
.bios-tab-active {
    display: inline-block;
    padding: 0 8px;
    background: #c8c8c8;
    color: #000;
    font-weight: bold;
}
.bios-row {
    display: block;
    padding: 0 6px;
    white-space: pre;
}
.bios-row-active {
    display: block;
    padding: 0 6px;
    background: #c8c8c8;
    color: #000;
    white-space: pre;
}
.bios-hint {
    color: #808080;
    white-space: pre;
}

.monitor-brand {
    text-align: center;
    padding: 8px 0 4px;
    font-weight: bold;
    font-size: 11px;
    letter-spacing: 4px;
    color: #6a6252;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

.monitor-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 12px 14px 0;
}

.power-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #401010;
    box-shadow: inset 0 0 2px #000;
    transition: background 0.15s, box-shadow 0.15s;
}

.power-led.on {
    background: #24e024;
    box-shadow: 0 0 8px #24e024, inset 0 0 2px #000;
}

.power-btn {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    background: linear-gradient(to bottom, #e8e0d0, #a09880);
    border: 2px solid #6a6252;
    cursor: pointer;
    position: relative;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.7),
        inset 0 -2px 2px rgba(0,0,0,0.25),
        0 2px 3px rgba(0,0,0,0.35);
    transition: transform 0.08s, box-shadow 0.08s;
}

.power-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 18px;
    height: 18px;
    border: 2px solid #2a2a2a;
    border-radius: 50%;
    border-top-color: transparent;
    transform: rotate(-45deg);
}

.power-btn::after {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 12px;
    background: #2a2a2a;
}

.power-btn:hover { background: linear-gradient(to bottom, #f4ecdc, #b0a890); }
.power-btn:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 3px rgba(0,0,0,0.35);
}
.power-btn:disabled { cursor: default; opacity: 0.85; }

.monitor-neck {
    width: 130px;
    height: 24px;
    background: linear-gradient(to bottom, #a8a090, #807868);
    margin-top: -1px;
}

.monitor-base {
    width: 320px;
    height: 22px;
    border-radius: 50% / 100% 100% 0 0;
    background: linear-gradient(to bottom, #b8b0a0, #807868);
    box-shadow: 0 6px 14px rgba(0,0,0,0.5);
}

.splash {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 40px;
    background: linear-gradient(to bottom, #000 0%, #000 60%, #1a0033 100%);
}

.splash-logo {
    display: flex;
    align-items: center;
    gap: 22px;
    animation: splash-in 0.7s ease-out;
}

.splash-flag {
    width: 78px;
    height: 78px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    transform: skewY(-6deg) translateX(-30px);
    filter: drop-shadow(0 0 12px rgba(255,255,255,0.2));
}

.splash-flag span { display: block; border-radius: 3px; }
.splash-flag span:nth-child(1) { background: #ff3b30; }
.splash-flag span:nth-child(2) { background: #34c759; }
.splash-flag span:nth-child(3) { background: #007aff; }
.splash-flag span:nth-child(4) { background: #ffcc00; }

.splash-text {
    color: #fff;
    font-family: "Times New Roman", serif;
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: 1px;
}

@keyframes splash-in {
    from { opacity: 0; transform: translateY(10px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.splash-bar {
    width: 70%;
    height: 16px;
    background: #000;
    border: 2px solid #7a7a7a;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.splash-bar-fill {
    height: 100%;
    width: 0%;
    background: repeating-linear-gradient(
        to right,
        #2a6fdb 0px, #2a6fdb 12px,
        #1a1a1a 12px, #1a1a1a 16px
    );
    transition: width 0.25s linear;
}

.splash-caption {
    color: #b8b8b8;
    font-family: "Courier New", monospace;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: lowercase;
}

.welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(to bottom, #000 0%, #000 60%, #1a0033 100%);
    color: #fff;
    font-family: "Times New Roman", serif;
    animation: welcome-in 1s ease-out;
}
.welcome-title {
    font-size: 68px;
    letter-spacing: 4px;
    color: #fff;
}
.welcome-sub {
    margin-top: 18px;
    font-size: 18px;
    color: #b8c4d8;
    letter-spacing: 3px;
    font-family: "Courier New", monospace;
    opacity: 0.85;
}
@keyframes welcome-in {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}
