* {
    box-sizing: border-box;
}

html {
    background: #0a0f14;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top, #22313c 0, #111820 42%, #090d11 100%);
    color: #f5f1e8;
    font-family: Arial, Helvetica, sans-serif;
}

button {
    font: inherit;
}

.hud {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 24px 18px 40px;
}

.hud-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 22px;
}

.eyebrow {
    color: #d7a93e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
}

h1 {
    margin: 4px 0 0;
    font-size: clamp(30px, 8vw, 48px);
    text-transform: uppercase;
}

.room-size {
    color: #aab4ba;
    font-weight: 700;
    white-space: nowrap;
}

.wall-card {
    border: 1px solid #34434d;
    border-radius: 16px;
    background: rgba(12, 18, 23, .92);
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
}

.wall-heading,
.wall-caption {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 16px;
    color: #aab4ba;
    font-size: 13px;
    letter-spacing: .08em;
}

.wall-heading strong,
.wall-caption strong {
    color: #f5f1e8;
}

.wall-visual {
    min-height: 220px;
    padding: 42px 22px 28px;
    display: grid;
    grid-template-columns: 1fr .55fr 1fr .55fr 1fr;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #26333b;
    border-bottom: 1px solid #26333b;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,.025) 0,
            rgba(255,255,255,.025) 1px,
            transparent 1px,
            transparent 22px
        ),
        #161f25;
}

.window {
    min-width: 0;
    height: 120px;
    border: 3px solid #8aa4b3;
    border-radius: 4px;
    background: rgba(74, 105, 121, .2);
    color: #eef6fa;
    cursor: pointer;
    transition: .15s ease;
}

.window span {
    display: block;
    font-size: clamp(24px, 8vw, 42px);
    font-weight: 900;
}

.window small {
    display: block;
    margin-top: 6px;
    font-size: 9px;
    letter-spacing: .08em;
}

.window.active {
    border-color: #f0b93e;
    background: rgba(240, 185, 62, .2);
    box-shadow: 0 0 28px rgba(240, 185, 62, .22);
    color: #ffd978;
}

.pier {
    height: 160px;
    border-left: 1px dashed #56636b;
    border-right: 1px dashed #56636b;
}

.selector {
    margin-top: 24px;
}

.selector > p {
    margin: 0 0 10px;
    color: #7f909a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
}

.selector-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.selector-buttons button {
    min-height: 54px;
    border: 1px solid #3b4a53;
    border-radius: 9px;
    background: #172128;
    color: #f4f4f1;
    font-weight: 800;
    cursor: pointer;
}

.selector-buttons button.active {
    border-color: #f0b93e;
    color: #ffd978;
    background: #332b18;
}

.readout {
    margin-top: 14px;
    padding: 18px;
    border-left: 4px solid #d7a93e;
    border-radius: 4px 10px 10px 4px;
    background: #121a20;
}

.readout span {
    color: #8fa0aa;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

.readout strong {
    display: block;
    margin-top: 5px;
    font-size: 25px;
}

.readout p {
    margin: 5px 0 0;
    color: #aeb8bd;
}

@media (max-width: 480px) {
    .hud {
        padding: 18px 12px 30px;
    }

    .hud-header {
        align-items: start;
        flex-direction: column;
        gap: 6px;
    }

    .wall-visual {
        min-height: 190px;
        padding: 30px 10px 22px;
        gap: 4px;
    }

    .window {
        height: 105px;
    }

    .pier {
        height: 140px;
    }

    .selector-buttons button {
        padding: 8px 4px;
        font-size: 13px;
    }
}
