/* ---------- Reset & base ---------- */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #fff;
}

:root {
    --accent: #3fe024;
    --accent-soft: rgba(63, 224, 36, 0.35);
    --card-bg: rgba(10, 14, 11, 0.55);
    --card-border: rgba(255, 255, 255, 0.12);
}

/* ---------- Scene (full-bleed background) ---------- */
.scene {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 16px;
    padding: 16px;

    background-image: url('../images/alley-background.jpeg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.scene__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
}

/* ---------- Terminal (top-left "exec.rs" widget) ---------- */
.terminal {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
    width: min(245px, calc(100% - 32px));
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    backdrop-filter: blur(6px);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.terminal__bar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--card-border);
}

.terminal__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.terminal__dot--red {
    background: #ff5f56;
}

.terminal__dot--yellow {
    background: #ffbd2e;
}

.terminal__dot--green {
    background: #27c93f;
}

.terminal__title {
    margin-left: 3px;
    font-family: 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
}

.terminal__body {
    margin: 0;
    padding: 9px 10px;
    font-family: 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
    font-size: 9px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    color: rgba(255, 255, 255, 0.85);
}

.tok-key {
    color: var(--accent);
}

.tok-str {
    color: #ffcb6b;
}

.tok-kw {
    color: #c792ea;
    font-style: italic;
}

.tok-type {
    color: #82aaff;
}

.tok-fn {
    color: #dcdcaa;
}

.tok-comment {
    color: #6a9955;
    font-style: italic;
}

.tok-punc {
    color: rgba(255, 255, 255, 0.4);
}

/* ---------- HUD card (countdown) ---------- */
.hud {
    position: relative;
    z-index: 1;
    width: min(360px, 100%);
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    text-align: center;
}

.hud__status {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.3;
}

.hud__countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hud__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 52px;
}

.hud__value {
    font-size: clamp(22px, 6vw, 30px);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.hud__label {
    margin-top: 2px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    font-weight: 600;
}

.hud__message {
    margin: 4px 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
}

/* ---------- Schedule list ---------- */
.schedule {
    list-style: none;
    margin: 16px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.schedule__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    opacity: 0.55;
}

.schedule__dot {
    flex: none;
    width: 9px;
    height: 9px;
    margin-top: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.schedule__label {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

.schedule__date {
    margin: 1px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.schedule__item.is-active {
    opacity: 1;
}

.schedule__item.is-active .schedule__dot {
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.schedule__item.is-past {
    opacity: 0.35;
    text-decoration: line-through;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .scene {
        align-items: stretch;
        padding: 12px;
    }

    .hud {
        width: 100%;
    }
}
