* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: Courier, "Courier New", monospace;
    background-image: url("/welcome/static/images/uncole-background2.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #f0e6ff;
    text-align: center;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 40% 45%,
        rgba(0, 0, 0, 0.10) 0%,
        rgba(0, 0, 0, 0.35) 55%,
        rgba(0, 0, 0, 0.52) 100%
    );
    z-index: 0;
    pointer-events: none;
}

.top-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0.9rem;
    background: rgba(8, 6, 18, 0.78);
    border-bottom: 1px solid rgba(180, 150, 255, 0.25);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    flex-wrap: wrap;
}

.flip-calendar {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid #555;
    border-radius: 3px;
    padding: 0.2rem 0.55rem 0.25rem;
    min-width: 4.2rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.flip-calendar .dow {
    font-size: 0.58rem;
    color: #ccc;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.flip-calendar .day {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.05;
    text-shadow: 0 1px 2px #000;
}
.flip-calendar .mon {
    font-size: 0.58rem;
    color: #b8a0ff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.clocks {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
}
.clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 3.6rem;
}
.clock .label {
    font-size: 0.55rem;
    color: #a090c0;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.05rem;
}
.clock .time {
    font-size: 0.92rem;
    font-weight: 700;
    color: #e8e0ff;
    letter-spacing: 0.04em;
    text-shadow: 0 0 6px rgba(140, 100, 255, 0.45);
    font-variant-numeric: tabular-nums;
}

.right-group {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.office-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(180, 140, 255, 0.5);
    white-space: nowrap;
}
.weather-widget {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(30, 20, 50, 0.65);
    border: 1px solid rgba(180, 150, 255, 0.3);
    border-radius: 3px;
    padding: 0.22rem 0.5rem;
    font-size: 0.68rem;
    color: #d8d0f0;
    white-space: nowrap;
}
.weather-widget .temp {
    font-weight: 700;
    color: #fff;
}

.content {
    position: relative;
    z-index: 1;
    padding: 5.5rem 1rem 4.5rem;
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: clamp(2.7rem, 8.5vw, 5rem);
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: #000000;
    text-shadow:
        -1px -1px 0 rgba(255, 255, 255, 0.75),
         1px -1px 0 rgba(255, 255, 255, 0.75),
        -1px  1px 0 rgba(255, 255, 255, 0.75),
         1px  1px 0 rgba(255, 255, 255, 0.75),
         2px  2px 3px rgba(0, 0, 0, 0.55),
         0 0 18px rgba(0, 0, 0, 0.35);
}

.subtitle {
    font-size: clamp(0.92rem, 2.5vw, 1.3rem);
    letter-spacing: 0.06em;
    line-height: 1.45;
    color: #e4d8ff;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.6);
    max-width: 680px;
    margin: 0 auto;
}

#wordverse {
    min-height: 4.5rem;
    width: 100%;
    max-width: 780px;
    margin: 1.4rem 0 1.6rem 0;
}

nav.departments {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin-top: 11.0rem;
}

.dept-link {
    display: inline-block;
    font-family: Courier, "Courier New", monospace;
    font-size: clamp(0.76rem, 2vw, 0.92rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: #f8f0ff;
    padding: 0.62rem 1.1rem;
    border: 2px solid rgba(200, 170, 255, 0.55);
    background: rgba(20, 10, 40, 0.45);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 0 12px rgba(120, 80, 200, 0.15);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}
.dept-link:hover,
.dept-link:focus {
    background: rgba(60, 30, 110, 0.55);
    border-color: rgba(220, 190, 255, 0.85);
    box-shadow: 0 0 18px rgba(140, 100, 255, 0.35), inset 0 0 14px rgba(160, 120, 255, 0.2);
    outline: none;
}

.chief {
    position: absolute;
    bottom: 2.6rem;
    left: 0; right: 0;
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: rgba(220, 210, 255, 0.75);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    z-index: 1;
    text-transform: uppercase;
}

.footer-accent {
    position: absolute;
    bottom: 1.0rem;
    left: 0; right: 0;
    text-align: center;
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    color: rgba(210, 200, 240, 0.45);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.85);
    z-index: 1;
    text-transform: uppercase;
}

.constellation-hotspot {
    position: absolute;
    z-index: 5;
    cursor: pointer;
    border-radius: 6px;
    border: 1px solid rgba(180, 150, 255, 0.15);
    background: rgba(40, 20, 90, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.constellation-hotspot:hover {
    border-color: rgba(200, 170, 255, 0.7);
    box-shadow: 0 0 22px rgba(140, 100, 255, 0.45), inset 0 0 24px rgba(100, 70, 200, 0.2);
    background: rgba(60, 30, 120, 0.22);
}
.constellation-hotspot:active {
    background: rgba(100, 50, 180, 0.35);
    box-shadow: 0 0 30px rgba(160, 120, 255, 0.6);
}

#hot-pleiades  { top: 16%; left: 50%; width: 14%; height: 10%; }
#hot-sirius    { top: 16%; left: 64%; width: 12%; height: 10%; }
#hot-lyra      { top: 16%; left: 76%; width: 12%; height: 10%; }
#hot-orion     { top: 46%; left: 50%; width: 14%; height: 10%; }
#hot-cygnus    { top: 46%; left: 64%; width: 12%; height: 10%; }
#hot-andromeda { top: 46%; left: 76%; width: 12%; height: 10%; }

#wormhole-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    background: #000;
    cursor: pointer;
}
#wormhole-overlay.active { display: block; }
#wormhole-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
#wormhole-caption {
    position: absolute;
    bottom: 2.2rem;
    left: 0; right: 0;
    text-align: center;
    font-family: Courier, "Courier New", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    color: rgba(220, 200, 255, 0.75);
    text-transform: uppercase;
    pointer-events: none;
    z-index: 2;
    text-shadow: 0 0 12px rgba(140, 100, 255, 0.6);
}

@media (max-width: 720px) {
    .top-bar { padding: 0.4rem 0.6rem; gap: 0.5rem; }
    .clocks { gap: 0.5rem; }
    .clock { min-width: 3.1rem; }
    .clock .time { font-size: 0.8rem; }
    .office-label { font-size: 0.68rem; letter-spacing: 0.12em; }
    .content { padding-top: 7.5rem; }
    #hot-pleiades, #hot-sirius, #hot-lyra,
    #hot-orion, #hot-cygnus, #hot-andromeda {
        width: 18%;
        height: 12%;
    }
}

@media (max-width: 520px) {
    h1 { letter-spacing: 0.12em; }
    .subtitle { letter-spacing: 0.03em; }
    #wordverse { min-height: 3.2rem; margin: 1rem 0 1.2rem 0; }
    .dept-link { letter-spacing: 0.08em; padding: 0.52rem 0.85rem; }
    .chief { font-size: 0.62rem; letter-spacing: 0.08em; bottom: 2.3rem; }
    .footer-accent { letter-spacing: 0.14em; font-size: 0.55rem; }
}