:root {
    --hm-bg: #030303;
    --hm-panel: rgba(14, 0, 0, 0.92);
    --hm-panel-soft: rgba(30, 0, 0, 0.68);
    --hm-red-deep: #240000;
    --hm-red-mid: #650000;
    --hm-red: #d00000;
    --hm-red-hot: #ff2a2a;
    --hm-red-bright: #ff5656;
    --hm-line: rgba(255, 35, 35, 0.34);
    --hm-line-hot: rgba(255, 70, 70, 0.9);
    --hm-text: #fff7f7;
    --hm-muted: #b08d8d;
    --font-sans: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-sans);
    background:
        radial-gradient(circle at 76% 22%, rgba(120, 0, 0, 0.14), transparent 28rem),
        radial-gradient(circle at 28% 70%, rgba(85, 0, 0, 0.12), transparent 30rem),
        linear-gradient(rgba(255, 0, 0, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 0, 0.018) 1px, transparent 1px),
        var(--hm-bg);
    background-size: auto, auto, 38px 38px, 38px 38px, auto;
    margin: 0;
    color: var(--hm-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hm-space-shell {
    min-height: 100vh;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.hm-space-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 64px;
    padding: 0 24px;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 40, 40, 0.22);
    background:
        linear-gradient(180deg, rgba(55, 0, 0, 0.48), rgba(8, 0, 0, 0.96));
    box-shadow:
        0 0 32px rgba(255, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.025);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hm-space-brand {
    color: var(--hm-red-hot);
    font-weight: 900;
    font-size: 1.5rem;
    text-decoration: none;
    text-shadow:
        0 0 10px var(--hm-red-bright);
    transition: color 0.3s ease;
}

.hm-space-brand:hover,
.hm-space-brand:focus-visible {
    color: var(--hm-red-bright);
    text-shadow:
        0 0 20px var(--hm-red-hot);
    outline-offset: 2px;
    outline: 2px solid var(--hm-red-hot);
}

.hm-space-user {
    text-align: right;
    line-height: 1.25;
    color: var(--hm-text);
}

.hm-space-user strong {
    font-size: 1.1rem;
    font-weight: 700;
}

.hm-space-user span {
    color: var(--hm-muted);
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

.hm-space-exit {
    background: transparent;
    border: none;
    color: var(--hm-red-hot);
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    cursor: pointer;
    padding: 8px 18px;
    box-shadow:
        0 0 6px var(--hm-red-bright);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.4s ease;
    user-select: none;
}

.hm-space-exit:hover,
.hm-space-exit:focus-visible {
    background-color: var(--hm-red-hot);
    color: var(--hm-bg);
    box-shadow:
        0 0 14px var(--hm-red-hot),
        0 0 28px var(--hm-red-bright);
    outline-offset: 3px;
    outline: 2px solid var(--hm-red-bright);
}

.hm-space-grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 36px;
    min-height: calc(100vh - 140px);
}

.hm-column {
    display: grid;
    gap: 28px;
}

.hm-column-left {
    grid-template-rows: 1.15fr 1fr 0.95fr;
}

.hm-column-right {
    grid-template-rows: 1.15fr 0.88fr 1.02fr;
}

.hm-panel {
    position: relative;
    overflow: hidden;
    min-height: 200px;
    border: 1px solid var(--hm-line);
    background:
        linear-gradient(135deg, rgba(80, 0, 0, 0.25), transparent 45%),
        linear-gradient(180deg, rgba(28, 0, 0, 0.95), rgba(8, 0, 0, 1));
    box-shadow:
        0 0 36px rgba(255, 0, 0, 0.07),
        inset 0 0 0 1px rgba(255, 255, 255, 0.014);
    transition: box-shadow 0.3s ease, transform 0.22s ease;
    border-radius: 0;
}

.hm-panel:hover {
    box-shadow:
        0 0 44px rgba(255, 40, 40, 0.55),
        inset 0 0 0 1px rgba(255, 70, 70, 0.12);
    transform: translateY(-4px) scale(1.015);
    cursor: pointer;
}

.hm-panel::before,
.hm-panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 0;
}

.hm-panel::before {
    inset: 10px;
    border: 1px solid rgba(255, 55, 55, 0.12);
    filter: drop-shadow(0 0 5px rgba(255, 35, 35, 0.12));
}

.hm-panel::after {
    top: 0;
    left: 24px;
    width: 72px;
    height: 2px;
    background: var(--hm-red-hot);
    box-shadow: 0 0 16px rgba(255, 30, 30, 0.85);
    transition: background-color 0.5s ease;
}

.hm-panel-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hm-panel-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--hm-red-bright);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-shadow:
        0 0 6px var(--hm-red-hot);
}

.hm-panel-label::before {
    content: "";
    width: 22px;
    height: 1.5px;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
    border-radius: 0;
}

.hm-panel h2 {
    margin: 10px 0 10px 0;
    color: var(--hm-text);
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-shadow:
        0 0 6px rgba(255, 0, 0, 0.5);
}

.hm-panel p {
    margin: 0;
    color: var(--hm-muted);
    line-height: 1.65;
    font-weight: 500;
    letter-spacing: 0.02em;
    user-select: none;
}

.hm-hero {
    background:
        radial-gradient(circle at 50% 44%, rgba(255, 0, 0, 0.26), transparent 42%),
        linear-gradient(145deg, rgba(105, 0, 0, 0.42), transparent 48%),
        linear-gradient(180deg, rgba(35, 0, 0, 0.98), rgba(12, 0, 0, 1));
    border: 1.5px solid var(--hm-red-bright);
    box-shadow:
        0 0 26px var(--hm-red-bright),
        inset 0 0 22px var(--hm-red-hot);
    transition: box-shadow 0.4s ease;
    border-radius: 0;
}

.hm-hero:hover {
    box-shadow:
        0 0 40px var(--hm-red-hot),
        inset 0 0 32px var(--hm-red-bright);
    transform: translateY(-6px) scale(1.02);
}

.hm-hero-core {
    display: grid;
    place-items: center;
    width: 160px;
    height: 160px;
    margin: 32px auto 26px;
    border: 2px solid rgba(255, 50, 50, 0.75);
    background:
        radial-gradient(circle, rgba(255, 40, 40, 0.22), rgba(60, 0, 0, 0.3) 65%, rgba(12, 0, 0, 0.95) 75%);
    box-shadow:
        0 0 32px rgba(255, 0, 0, 0.3),
        inset 0 0 32px rgba(255, 0, 0, 0.14);
    transform: rotate(45deg);
    transition: box-shadow 0.4s ease;
    border-radius: 0;
}

.hm-hero-core > div {
    display: grid;
    gap: 6px;
    transform: rotate(-45deg);
    text-align: center;
}

.hm-hero-core small {
    color: var(--hm-red-bright);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.24em;
    text-shadow: 0 0 8px var(--hm-red-hot);
    text-transform: uppercase;
}

.hm-hero-core strong {
    font-size: 22px;
    text-shadow: 0 0 10px rgba(255, 80, 80, 0.8);
}

.hm-hero-name {
    text-align: center;
}

.hm-hero-name h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 0 8px var(--hm-red-hot);
}

.hm-hero-name span {
    color: var(--hm-muted);
    font-size: 14px;
    text-transform: lowercase;
}

.hm-list {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.hm-list-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 35, 35, 0.12);
    transition: color 0.2s ease;
}

.hm-list-row:last-child {
    border-bottom: none;
}

.hm-list-pip {
    width: 10px;
    height: 10px;
    background: var(--hm-red-hot);
    box-shadow: 0 0 12px var(--hm-red-hot);
    border-radius: 50%;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.hm-list-row:hover .hm-list-pip {
    transform: scale(1.3);
}

.hm-list-row strong {
    font-size: 14px;
    font-weight: 700;
}

.hm-list-row span {
    color: var(--hm-muted);
    font-size: 12px;
}

.hm-count {
    color: var(--hm-red-bright) !important;
    font-weight: 900;
    font-size: 16px;
    text-shadow: 0 0 6px var(--hm-red-hot);
}

.hm-drop-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 28px;
    margin-top: 22px;
    min-height: 260px;
}

.hm-drop-main {
    display: grid;
    align-content: center;
    padding: 28px 32px;
    border: 1.4px solid rgba(255, 40, 40, 0.2);
    background:
        linear-gradient(135deg, rgba(80, 0, 0, 0.24), transparent 58%),
        rgba(12, 0, 0, 0.86);
    box-shadow:
        0 0 22px rgba(255, 0, 0, 0.11);
    transition: box-shadow 0.3s ease;
    border-radius: 0;
}

.hm-drop-main small {
    color: var(--hm-red-bright);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.2em;
    user-select: none;
    text-transform: uppercase;
}

.hm-drop-main strong {
    margin-top: 10px;
    font-size: 24px;
    letter-spacing: -0.04em;
    text-shadow: 0 0 10px var(--hm-red-hot);
}

.hm-drop-main p {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--hm-text);
}

.hm-drop-main p:last-child {
    margin-top: 18px;
    font-weight: 900;
    color: var(--hm-red-bright);
    text-shadow: 0 0 8px var(--hm-red-hot);
    letter-spacing: 0.11em;
}

.hm-drop-side {
    display: grid;
    gap: 14px;
}

.hm-mini-tile {
    display: grid;
    align-content: center;
    padding: 18px 14px;
    border: 1.3px solid rgba(255, 40, 40, 0.18);
    background: rgba(18, 0, 0, 0.7);
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.18);
    text-align: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0;
}

.hm-mini-tile:hover {
    background: rgba(34, 0, 0, 0.9);
    box-shadow: 0 0 18px var(--hm-red-hot);
}

.hm-mini-tile span {
    color: var(--hm-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.hm-mini-tile strong {
    margin-top: 6px;
    font-size: 18px;
    color: var(--hm-red-bright);
    font-weight: 900;
    text-shadow: 0 0 8px var(--hm-red-hot);
}

.hm-signal-rail {
    position: relative;
    display: grid;
    gap: 14px;
    margin-top: 26px;
    padding-left: 22px;
}

.hm-signal-rail::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 5px;
    width: 2px;
    background: linear-gradient(var(--hm-red-hot), rgba(255, 0, 0, 0.09));
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
    border-radius: 0;
}

.hm-signal-item {
    position: relative;
    display: grid;
    gap: 5px;
    padding: 14px 18px;
    border: 1.5px solid rgba(255, 40, 40, 0.12);
    background: rgba(16, 0, 0, 0.65);
    transition: background-color 0.25s ease;
    border-radius: 0;
}

.hm-signal-item:hover {
    background-color: rgba(33, 0, 0, 0.85);
    box-shadow:
        0 0 12px var(--hm-red-hot);
}

.hm-signal-item::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 18px;
    width: 10px;
    height: 10px;
    background: var(--hm-red-hot);
    box-shadow: 0 0 14px rgba(255, 0, 0, 0.85);
    border-radius: 50%;
}

.hm-signal-item strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--hm-text);
}

.hm-signal-item span {
    color: var(--hm-muted);
    font-size: 11px;
    user-select: none;
}

.hm-door-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.hm-door {
    min-height: 140px;
    display: grid;
    align-content: end;
    padding: 20px 16px;
    border: 1.5px solid rgba(255, 40, 40, 0.22);
    background:
        linear-gradient(180deg, rgba(110, 0, 0, 0.1), rgba(20, 0, 0, 0.88));
    box-shadow:
        0 0 22px rgba(255, 0, 0, 0.17);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: default;
    border-radius: 0;
}

.hm-door:hover {
    background: linear-gradient(180deg, rgba(140, 0, 0, 0.2), rgba(30, 0, 0, 0.92));
    box-shadow: 0 0 30px var(--hm-red-hot);
}

.hm-door small {
    color: var(--hm-red-bright);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
    user-select: none;
    text-transform: uppercase;
}

.hm-door strong {
    margin-top: 10px;
    font-size: 18px;
    color: var(--hm-text);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hm-door span {
    margin-top: 6px;
    color: var(--hm-muted);
    font-size: 12px;
    user-select: none;
}

.hm-archive-year {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    margin-top: 28px;
}

.hm-archive-year strong {
    font-size: 36px;
    font-weight: 900;
    color: var(--hm-red-bright);
    text-shadow: 0 0 12px var(--hm-red-hot);
}

.hm-archive-line {
    height: 2px;
    background: linear-gradient(90deg, var(--hm-red-hot), rgba(255, 0, 0, 0.12));
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.15);
    border-radius: 0;
}

.hm-archive-year span {
    color: var(--hm-muted);
    font-size: 12px;
    user-select: none;
    text-transform: uppercase;
}

.hm-panel-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    border-radius: 0;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.hm-panel-link,
.hm-panel-link:visited,
.hm-panel-link:hover,
.hm-panel-link:active {
    color: inherit;
    text-decoration: none;
}

.hm-panel-link:hover {
    border-color: rgba(255, 70, 70, 0.65);
    box-shadow:
        0 0 32px rgba(255, 55, 55, 0.33),
        inset 0 0 0 1px rgba(255, 90, 90, 0.07);
    transform: translateY(-3px) scale(1.015);
}

.hm-panel-link:hover::after {
    width: 140px;
    box-shadow:
        0 0 22px rgba(255, 40, 40, 0.95);
}

.hm-panel-link:focus-visible {
    outline: 2px solid var(--hm-red-hot);
    outline-offset: 4px;
}

.hm-panel-link:active {
    transform: scale(0.98);
}

/* Responsive Improvements */
@media (max-width: 1050px) {
    .hm-space-grid {
        grid-template-columns: 1fr;
    }

    .hm-column-left,
    .hm-column-right {
        grid-template-rows: auto;
    }
}

@media (max-width: 700px) {
    .hm-space-shell {
        padding: 18px 16px;
    }

    .hm-space-topbar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        min-height: auto;
    }

    .hm-space-user {
        display: none;
    }

    .hm-drop-stage,
    .hm-door-grid {
        grid-template-columns: 1fr;
    }

    .hm-panel-inner {
        padding: 22px;
    }
}
