/* Aero component library: glass, gel, LCD, taskbar */
@import url('tokens.css');

*,
*::before,
*::after {
    box-sizing: border-box;
}

::selection {
    background: var(--aero-blue);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--aero-blue-hi);
    outline-offset: 2px;
}

/* ===== DESKTOP / WALLPAPER ===== */
.desktop {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background-color: var(--desk-0);
    background-image:
        radial-gradient(60% 45% at 18% 20%, rgba(29, 111, 214, 0.45), transparent 70%),
        radial-gradient(50% 40% at 85% 12%, rgba(25, 179, 201, 0.32), transparent 70%),
        radial-gradient(70% 55% at 70% 85%, rgba(106, 63, 209, 0.28), transparent 70%),
        linear-gradient(180deg, var(--desk-1), var(--desk-0) 70%);
    background-attachment: fixed;
}

/* Soft light streaks, like the Win7 "Harmony" wallpaper */
.desktop::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        conic-gradient(from 200deg at 30% 110%,
            transparent 0deg, rgba(140, 200, 255, 0.10) 12deg,
            transparent 26deg, rgba(25, 179, 201, 0.08) 40deg,
            transparent 58deg);
    filter: blur(2px);
}

/* ===== GLASS SURFACE ===== */
.glass {
    position: relative;
    background: var(--glass-sheen), var(--glass-tint);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-edge);
    border-radius: var(--r-lg);
    box-shadow:
        inset 0 0 0 1px var(--glass-edge-inner),
        var(--shadow-window);
}

/* ===== WINDOW ===== */
.window {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0 7px 7px;
    border-radius: var(--r-lg);
    background: var(--glass-sheen), var(--glass-tint);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-edge);
    box-shadow:
        inset 0 0 0 1px var(--glass-edge-inner),
        var(--shadow-window);
}

.window__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 4px 2px 4px 6px;
}

.window__icon {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    font-size: 13px;
    color: var(--aero-blue-hi);
    filter: drop-shadow(0 0 4px rgba(140, 200, 255, 0.6));
}

.window__title {
    flex: 1;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    /* Win7 titles glow so they read on any wallpaper */
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.55),
        0 0 16px rgba(255, 255, 255, 0.25);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.window__client {
    flex: 1;
    background: var(--client);
    border: 1px solid rgba(0, 0, 0, 0.7);
    border-radius: var(--r-sm);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10);
    padding: 20px;
    overflow: hidden;
}

/* Caption buttons: min / max / close */
.caption {
    display: flex;
    align-self: flex-start;
    margin-top: -5px;
    border: 1px solid rgba(0, 0, 0, 0.55);
    border-top: 0;
    border-radius: 0 0 5px 5px;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.caption__btn {
    width: 27px;
    height: 19px;
    display: grid;
    place-items: center;
    font-size: 9px;
    color: #fff;
    text-shadow: 0 0 3px #000;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.10) 50%,
        rgba(0, 0, 0, 0.12) 51%, rgba(255, 255, 255, 0.12));
    border-right: 1px solid rgba(0, 0, 0, 0.45);
}

.caption__btn:hover {
    background: linear-gradient(180deg,
        #bfe3ff, #6fb6f0 50%, #3a8ee6 51%, #8cd0ff);
}

.caption__btn--close {
    width: 45px;
    border-right: 0;
    background: linear-gradient(180deg,
        #f0a898, #d9644b 50%, #b8321a 51%, #e0806a);
}

.caption__btn--close:hover {
    background: linear-gradient(180deg,
        #ffc0b0, #f07a5e 50%, #d9412b 51%, #ff9f86);
    box-shadow: 0 0 10px rgba(255, 90, 60, 0.9);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    padding: 6px 18px;
    font: 600 14px/1 var(--font-ui);
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #0b1320;
    border-radius: var(--r-md);
    background: linear-gradient(180deg,
        #4a5a70 0%, #34435a 49%, #26344a 50%, #2d3d55 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.5);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
    transition: box-shadow 0.15s, filter 0.15s;
}

.btn:hover {
    border-color: #1f5d99;
    background: linear-gradient(180deg,
        #5d8fc4 0%, #3d6fa5 49%, #2a5a8e 50%, #3f78b3 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 12px rgba(58, 142, 230, 0.55);
}

.btn:active {
    background: linear-gradient(180deg,
        #1f4f82 0%, #2a5f97 50%, #3a73ad 100%);
    box-shadow: var(--shadow-inset);
}

/* Glossy blue gel, the primary call to action */
.btn--gel {
    border-color: #0d3d78;
    color: #fff;
    background: linear-gradient(180deg,
        #9ad2ff 0%, #4ea3ee 48%, #1e74d2 50%, #2f8ae6 80%, #6ab8ff 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -2px 6px rgba(160, 220, 255, 0.5),
        0 2px 8px rgba(30, 116, 210, 0.5);
}

.btn--gel:hover {
    filter: brightness(1.12) saturate(1.1);
    border-color: #0d3d78;
    background: linear-gradient(180deg,
        #9ad2ff 0%, #4ea3ee 48%, #1e74d2 50%, #2f8ae6 80%, #6ab8ff 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -2px 6px rgba(160, 220, 255, 0.5),
        0 0 18px rgba(80, 170, 255, 0.8);
}

.btn--green {
    border-color: #0b4d12;
    color: #fff;
    background: linear-gradient(180deg,
        #b4f5a8 0%, #5fd455 48%, #25a82a 50%, #36be38 80%, #7fe27a 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 2px 8px rgba(40, 170, 45, 0.45);
}

.btn--green:hover {
    filter: brightness(1.1);
    border-color: #0b4d12;
    background: linear-gradient(180deg,
        #b4f5a8 0%, #5fd455 48%, #25a82a 50%, #36be38 80%, #7fe27a 100%);
    box-shadow: 0 0 16px rgba(80, 220, 80, 0.7);
}

.btn--gel:active,
.btn--green:active {
    filter: brightness(0.9);
    box-shadow: var(--shadow-inset);
}

/* ===== PROGRESS BAR (Win7 green) ===== */
.progress {
    position: relative;
    height: 16px;
    border-radius: var(--r-sm);
    background: linear-gradient(180deg, #1a1f26, #2b323c);
    border: 1px solid #06090d;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8),
        0 1px 0 rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.progress__fill {
    position: relative;
    height: 100%;
    width: var(--value, 50%);
    background: linear-gradient(180deg,
        #c6f7b8 0%, #6fdc5a 45%, #22b020 50%, #3cc93a 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    overflow: hidden;
    transition: width 0.2s var(--ease-out);
}

.progress__fill::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 40%;
    background: linear-gradient(90deg,
        transparent, rgba(255, 255, 255, 0.55), transparent);
    animation: progress-shine 2.4s linear infinite;
}

@keyframes progress-shine {
    from { transform: translateX(-120%); }
    to { transform: translateX(320%); }
}

.progress--blue .progress__fill {
    background: linear-gradient(180deg,
        #c4e6ff 0%, #6cb8f5 45%, #1e74d2 50%, #3a8ee6 100%);
}

.progress--gold .progress__fill {
    background: linear-gradient(180deg,
        #fff0b8 0%, #ffd35a 45%, #d99a00 50%, #f2b61e 100%);
}

/* ===== LCD READOUT ===== */
.lcd {
    position: relative;
    padding: 10px 14px 8px;
    border-radius: var(--r-md);
    background:
        repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px),
        radial-gradient(120% 90% at 50% 0%, #10261d, var(--lcd-bg));
    border: 1px solid #000;
    box-shadow: var(--shadow-inset),
        0 1px 0 rgba(255, 255, 255, 0.14);
    text-align: center;
    overflow: hidden;
}

/* Glass cover over the LCD */
.lcd::after {
    content: '';
    position: absolute;
    inset: 0 0 55% 0;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.lcd__value {
    display: block;
    font: 38px/1 var(--font-lcd);
    color: var(--lcd-on);
    text-shadow: 0 0 6px rgba(141, 255, 207, 0.8),
        0 0 18px rgba(141, 255, 207, 0.35);
    letter-spacing: 0.04em;
}

.lcd__label {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6fa892;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lcd--amber .lcd__value {
    color: #ffc46b;
    text-shadow: 0 0 6px rgba(255, 196, 107, 0.8),
        0 0 18px rgba(255, 170, 60, 0.35);
}

.lcd--amber {
    background:
        repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px),
        radial-gradient(120% 90% at 50% 0%, #2a1b08, #110a02);
}

.lcd--amber .lcd__label {
    color: #b08850;
}

/* ===== CHIPS (gel pills) ===== */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 11px;
    font-size: 12.5px;
    font-weight: 600;
    color: #dcebff;
    border-radius: var(--r-pill);
    border: 1px solid rgba(0, 0, 0, 0.6);
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06) 50%,
        rgba(0, 0, 0, 0.1) 51%, rgba(255, 255, 255, 0.08)),
        #24354d;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.chip--blue { background-color: #1d5ea8; }
.chip--green { background-color: #1f7a2a; }
.chip--gold { background-color: #8a5d00; color: #fff3cf; }
.chip--red { background-color: #9b2415; }
.chip--violet { background-color: #4e3a9e; }

/* ===== STICKER (starburst badge) ===== */
.sticker {
    --size: 84px;
    position: relative;
    width: var(--size);
    height: var(--size);
    display: grid;
    place-items: center;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    color: #3b2400;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: rotate(-12deg);
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.55));
}

.sticker::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 35% 30%,
        #fff7c9, var(--aero-gold) 45%, #e89b00 100%);
    clip-path: polygon(50% 0%, 61% 12%, 77% 6%, 80% 22%, 96% 25%,
        89% 40%, 100% 52%, 88% 62%, 94% 78%, 78% 80%, 74% 96%,
        60% 88%, 50% 100%, 40% 88%, 26% 96%, 22% 80%, 6% 78%,
        12% 62%, 0% 52%, 11% 40%, 4% 25%, 20% 22%, 23% 6%, 39% 12%);
}

.sticker--red {
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.sticker--red::before {
    background: radial-gradient(circle at 35% 30%,
        #ffb3a3, #e04a2e 50%, #9b1d0c 100%);
}

/* ===== RIBBON (window corner tag) ===== */
.ribbon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: #3b2400;
    border-radius: var(--r-sm) var(--r-pill) var(--r-pill) var(--r-sm);
    background: linear-gradient(180deg,
        #fff2b0, #ffd04a 50%, #f0b000 51%, #ffd565);
    border: 1px solid #8a5d00;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 2px 6px rgba(0, 0, 0, 0.4);
}

/* ===== TILE (inset feature panel) ===== */
.tile {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: var(--r-md);
    background: linear-gradient(180deg, var(--client-2), var(--client));
    border: 1px solid var(--client-edge);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.tile:hover {
    border-color: #3d6fa5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(58, 142, 230, 0.35),
        0 0 14px rgba(58, 142, 230, 0.25);
    background: linear-gradient(180deg, #17263a, #10192a);
}

.tile__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    font-size: 18px;
    color: #fff;
    border-radius: var(--r-md);
    border: 1px solid rgba(0, 0, 0, 0.6);
    background: linear-gradient(180deg,
        #8cc8ff, #3a8ee6 50%, #1557a8 51%, #3a8ee6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 2px 5px rgba(0, 0, 0, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tile__title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--aero-blue-hi);
}

.tile__text {
    margin: 0;
    font-size: 14.5px;
    color: var(--text-dim);
}

/* ===== MONITOR BEZEL with floor reflection ===== */
.bezel {
    position: relative;
    margin: 0 0 56px;
    padding: 14px 14px 26px;
    border-radius: 12px;
    background: linear-gradient(180deg, #2b2f36, #0c0e12 60%, #16191e);
    border: 1px solid #000;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        var(--shadow-window);
    -webkit-box-reflect: below 6px
        linear-gradient(transparent 86%, rgba(255, 255, 255, 0.14));
}

.bezel img,
.bezel video {
    display: block;
    width: 100%;
    border-radius: 2px;
    border: 1px solid #000;
}

/* Screen glare */
.bezel::before {
    content: '';
    position: absolute;
    inset: 14px 14px 26px;
    border-radius: 2px;
    background: linear-gradient(125deg,
        rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 38%);
    pointer-events: none;
    z-index: 1;
}

/* Power LED */
.bezel::after {
    content: '';
    position: absolute;
    right: 22px;
    bottom: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6dff7a;
    box-shadow: 0 0 6px #3fff55;
}

/* ===== GADGET (desktop sidebar widget) ===== */
.gadget {
    width: 150px;
    padding: 12px;
    border-radius: 14px;
    text-align: center;
    background: var(--glass-sheen),
        linear-gradient(180deg, rgba(40, 60, 90, 0.8), rgba(10, 18, 30, 0.9));
    border: 1px solid var(--glass-edge);
    box-shadow: inset 0 0 0 1px var(--glass-edge-inner),
        var(--shadow-soft);
}

/* Round dial meter; set --pct from 0 to 100 */
.dial {
    --pct: 60;
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto;
    border-radius: 50%;
    background:
        radial-gradient(circle, #0a0f16 52%, transparent 53%),
        conic-gradient(from 225deg,
            var(--aero-green) 0deg,
            var(--aero-gold) calc(var(--pct) * 1.35deg),
            var(--aero-red) calc(var(--pct) * 2.7deg),
            #1a2230 calc(var(--pct) * 2.7deg), #1a2230 270deg,
            transparent 270deg);
    border: 3px solid #1d2635;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8),
        0 0 0 2px #56657a, 0 3px 8px rgba(0, 0, 0, 0.6);
}

.dial::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: linear-gradient(160deg,
        rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 45%);
    pointer-events: none;
}

.dial__value {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    font: 30px/1 var(--font-lcd);
    color: var(--lcd-on);
    text-shadow: 0 0 6px rgba(141, 255, 207, 0.7);
}

.dial__value small {
    font: 11px/1 var(--font-ui);
    color: var(--text-dim);
}

/* ===== APP ICON (glossy rounded square) ===== */
.app-icon {
    --tint: #3a8ee6;
    position: relative;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    font-size: 26px;
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.65);
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--tint) 40%, #fff) 0%,
        var(--tint) 50%,
        color-mix(in srgb, var(--tint) 70%, #000) 51%,
        var(--tint) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 4px 10px rgba(0, 0, 0, 0.55);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s var(--ease-out), box-shadow 0.15s;
}

.app-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 0 18px color-mix(in srgb, var(--tint) 70%, transparent),
        0 8px 16px rgba(0, 0, 0, 0.5);
}

/* ===== GAME CASE (Games Explorer box art) ===== */
.case {
    --spine: #1d5ea8;
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 8px 4px 4px 8px;
    background: linear-gradient(180deg, var(--client-2), var(--client));
    border: 1px solid #000;
    box-shadow: var(--shadow-soft),
        inset 0 0 0 1px rgba(255, 255, 255, 0.07);
    overflow: hidden;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}

/* Coloured spine along the left edge */
.case::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 10px;
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--spine) 60%, #000),
        var(--spine) 40%,
        color-mix(in srgb, var(--spine) 60%, #fff) 60%,
        var(--spine));
    box-shadow: 1px 0 0 rgba(0, 0, 0, 0.6);
}

/* Plastic shrink-wrap glare */
.case::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg,
        rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.case:hover {
    transform: translateY(-4px) rotate(-0.4deg);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.6),
        0 0 0 1px color-mix(in srgb, var(--spine) 70%, transparent),
        0 0 22px color-mix(in srgb, var(--spine) 45%, transparent);
}

.case__head {
    padding: 14px 14px 12px 24px;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--spine) 55%, #000),
        color-mix(in srgb, var(--spine) 25%, #000));
    border-bottom: 1px solid #000;
}

.case__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.case__body {
    flex: 1;
    padding: 12px 14px 12px 24px;
    font-size: 14.5px;
    color: var(--text-dim);
}

.case__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px 12px 24px;
    border-top: 1px solid var(--client-edge);
}

/* ===== TASKBAR ===== */
.taskbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    height: 44px;
    display: flex;
    align-items: stretch;
    gap: 4px;
    padding: 0 6px 0 4px;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.05) 50%,
        rgba(0, 0, 0, 0.05) 51%, rgba(255, 255, 255, 0.04) 100%),
        rgba(10, 22, 40, 0.72);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6),
        0 -6px 20px rgba(0, 0, 0, 0.4);
}

/* Start orb, sits taller than the bar like the real one */
.orb {
    position: relative;
    align-self: center;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    margin: -8px 4px 0;
    display: grid;
    place-items: center;
    font: 700 24px/1 var(--font-ui);
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
    border: 1px solid #06254a;
    cursor: pointer;
    background:
        radial-gradient(circle at 50% 115%, rgba(120, 230, 255, 0.95), transparent 55%),
        radial-gradient(circle at 50% 50%, #2a7ad0, #0b3a78 70%, #051d3d);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(0, 0, 0, 0.6),
        0 2px 8px rgba(0, 0, 0, 0.6);
    text-shadow: 0 0 10px rgba(180, 230, 255, 0.9);
    transition: box-shadow 0.2s, filter 0.2s;
}

.orb::before {
    content: '';
    position: absolute;
    inset: 2px 6px 50% 6px;
    border-radius: 50% 50% 45% 45%;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.1));
    pointer-events: none;
}

.orb:hover,
.orb[aria-expanded="true"] {
    filter: brightness(1.2);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(100, 200, 255, 0.9);
}

.task-btns {
    display: flex;
    gap: 2px;
    align-items: stretch;
    padding: 3px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.task-btn {
    position: relative;
    min-width: 54px;
    display: grid;
    place-items: center;
    padding: 0 12px;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    transition: background 0.15s, border-color 0.15s;
}

.task-btn:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: radial-gradient(90% 100% at 50% 100%,
        rgba(120, 200, 255, 0.55), transparent 70%),
        rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* "Running" look for the section you are in */
.task-btn.is-active {
    border-color: rgba(255, 255, 255, 0.45);
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 51%, rgba(255, 255, 255, 0.12)),
        rgba(58, 142, 230, 0.35);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4),
        inset 0 -6px 10px rgba(140, 210, 255, 0.35);
}

.tray {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 6px 0 12px;
    font-size: 12px;
    color: #fff;
    border-left: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.12);
    white-space: nowrap;
}

.tray__xp {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tray__xp .progress {
    width: 90px;
    height: 12px;
}

.tray__clock {
    text-align: center;
    line-height: 1.25;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

/* Show-desktop sliver at the far right */
.tray__peek {
    width: 12px;
    align-self: stretch;
    margin-right: -6px;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
}

/* ===== START MENU ===== */
.start-menu {
    position: fixed;
    left: 4px;
    bottom: 48px;
    z-index: 1001;
    width: min(400px, calc(100vw - 8px));
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 6px;
    padding: 8px;
    transform-origin: bottom left;
    transition: opacity 0.18s, transform 0.18s var(--ease-out),
        visibility 0s;
}

/* Visible at once on open so focus() lands; delayed on close */
.start-menu[hidden] {
    display: grid;
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    transition-delay: 0s, 0s, 0.18s;
}

.start-menu__list {
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #0f1824;
    border: 1px solid #000;
    border-radius: var(--r-sm);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.start-menu__list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
}

.start-menu__list a i {
    width: 22px;
    text-align: center;
    color: var(--aero-blue-hi);
}

.start-menu__list a:hover,
.start-menu__list a:focus-visible {
    outline: none;
    border-color: #3d6fa5;
    background: linear-gradient(180deg,
        rgba(120, 190, 255, 0.35), rgba(58, 142, 230, 0.25));
}

.start-menu__side {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 2px;
}

.start-menu__side a {
    padding: 6px 10px;
    font-size: 13.5px;
    color: #fff;
    text-decoration: none;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.start-menu__side a:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

.start-menu__avatar {
    width: 58px;
    height: 58px;
    margin: -34px auto 8px;
    border-radius: var(--r-md);
    border: 1px solid #000;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45),
        0 3px 8px rgba(0, 0, 0, 0.6);
}

/* ===== SECTION HEADING (glowing title on glass) ===== */
.heading-glass {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 8px 22px;
    font-size: 26px;
    font-weight: 300;
    color: #fff;
    border-radius: var(--r-pill);
    background: var(--glass-sheen), var(--glass-tint);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-edge);
    box-shadow: inset 0 0 0 1px var(--glass-edge-inner),
        var(--shadow-soft);
    text-shadow: var(--text-glow);
}

.heading-glass i {
    font-size: 20px;
    color: var(--aero-blue-hi);
}

/* ===== NARROW SCREENS ===== */
@media (max-width: 600px) {
    .tray__xp span,
    .tray__peek {
        display: none;
    }

    .tray__xp .progress {
        width: 44px;
    }

    .task-btn {
        min-width: 40px;
        padding: 0 8px;
    }

    .tray {
        gap: 8px;
        padding-left: 8px;
    }

    .tray__clock {
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    .tray__xp {
        display: none;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
