#s-desktop {
    position: fixed;
    inset: 0;
    bottom: 52px;
    background-image: url('../../assets/bgs/bg_hills.png');
    background-size: cover;
    background-position: center;
    display: none;
    overflow: hidden;
    transition: background-image .5s;
}

.dicons-l {
    position: absolute;
    left: 12px;
    top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dicons-r {
    position: absolute;
    right: 12px;
    top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dicon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    width: 80px;
    position: relative;
}

.dicon-badge {
    position: absolute;
    top: -4px;
    right: 6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--pink);
    color: #fff;
    border: 2px solid var(--dark);
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 10px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 0 var(--dark), 0 4px 10px rgba(0, 0, 0, 0.25);
    text-shadow: 1px 1px 0 var(--dark);
    z-index: 2;
    pointer-events: none;
    animation: bob 2s ease-in-out infinite;
}

.dicon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(1px 2px 4px rgba(0, 0, 0, .4));
    transition: transform .15s;
}

.dicon:hover img {
    transform: scale(1.12) rotate(-2deg);
}

.dicon-placeholder {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: #fff;
    border: 3px dashed var(--dark);
    border-radius: 12px;
    box-shadow: 0 3px 0 var(--dark);
    filter: drop-shadow(1px 2px 4px rgba(0, 0, 0, .4));
    transition: transform .15s;
}
.dicon:hover .dicon-placeholder {
    transform: scale(1.12) rotate(-2deg);
}

.dicon span {
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    color: white;
    text-shadow: 1px 1px 0 #000, 0 0 5px #000;
    text-align: center;
    line-height: 1.6;
}

/* DOKOMI BEACON */
#dokomi-beacon {
    position: absolute;
    top: 16px;
    left: 96px;
    right: 96px;
    z-index: 20;
}

.beacon-pin {
    position: absolute;
    top: -8px;
    width: 12px;
    height: 12px;
    background: var(--pink);
    border: 3px solid var(--dark);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}
.beacon-pin-l { left: 24px; }
.beacon-pin-r { right: 24px; }

#beacon-bar {
    width: 100%;
    text-align: left;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: block;
}

.beacon-bar-inner {
    background: linear-gradient(180deg, var(--pink), var(--hot));
    border: 2px solid var(--dark);
    border-radius: var(--radius-md);
    padding: 6px 10px 6px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow:
        0 2px 0 rgba(0, 0, 0, 0.55),
        0 8px 18px rgba(190, 30, 90, 0.28),
        0 14px 28px rgba(0, 0, 0, 0.16);
    position: relative;
    overflow: hidden;
    height: 56px;
}

.beacon-bar-inner::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: repeating-linear-gradient(90deg, var(--pink) 0 12px, #fed499 12px 24px);
}

.beacon-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.beacon-star {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--dark);
    box-shadow: 0 2px 0 var(--dark);
    animation: bob 2s ease-in-out infinite;
    flex-shrink: 0;
}

.beacon-kicker {
    font-family: var(--font-display);
    font-size: 6.5px;
    color: #fed499;
    margin-bottom: 3px;
    white-space: nowrap;
}

.beacon-headline {
    font-family: var(--font-display);
    font-size: 13px;
    color: #fff;
    text-shadow: 1.5px 1.5px 0 var(--dark);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.beacon-divider {
    width: 2px;
    height: 36px;
    background: rgba(255,255,255,0.45);
    border-radius: 1px;
    flex-shrink: 0;
}

.beacon-center {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    min-width: 0;
}

.beacon-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 2.5px solid var(--dark);
    border-radius: var(--radius-pill);
    padding: 3px 8px;
    font-family: var(--font-display);
    font-size: 7px;
    color: var(--dark);
    box-shadow: 0 2px 0 var(--dark);
    flex-shrink: 0;
    white-space: nowrap;
}

.beacon-status-soon { background: #fed499; }
.beacon-status-live { background: var(--lime); }
.beacon-status-over { background: var(--soft); }

.beacon-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: blink 1.4s infinite;
}

.beacon-status-soon .beacon-status-dot { background: #ff8e3d; }
.beacon-status-live .beacon-status-dot { background: #3fbf6b; }
.beacon-status-over .beacon-status-dot { background: var(--pink); }

.beacon-marquee-wrap {
    flex: 1;
    overflow: hidden;
    height: 16px;
    min-width: 0;
}

.beacon-marquee {
    display: inline-flex;
    gap: 22px;
    font-family: var(--font-display);
    font-size: 8px;
    color: #fff;
    white-space: nowrap;
    animation: beaconScroll 28s linear infinite;
}

.beacon-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.beacon-countdown {
    display: flex;
    gap: 2px;
    align-items: center;
}

.beacon-cd-box {
    background: rgba(0,0,0,0.6);
    border: 2px solid var(--dark);
    border-radius: 4px;
    padding: 2px 5px;
    text-align: center;
    min-width: 22px;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}

.beacon-cd-n {
    font-family: var(--font-display);
    font-size: 9px;
    color: #fed499;
    line-height: 1;
}

.beacon-cd-l {
    font-family: var(--font-display);
    font-size: 5px;
    color: #fff;
}

.beacon-cta {
    background: #fed499;
    color: var(--dark);
    border: 3px solid var(--dark);
    border-radius: var(--radius-pill);
    padding: 5px 10px;
    font-family: var(--font-display);
    font-size: 7.5px;
    box-shadow: 0 2px 0 var(--dark);
    white-space: nowrap;
}

/* BEACON PANEL */
#beacon-panel {
    position: absolute;
    top: 72px;
    left: 48px;
    width: 360px;
    background: var(--cream);
    border: 4px solid var(--dark);
    border-radius: 14px;
    box-shadow: 0 6px 0 var(--dark), 0 16px 36px rgba(0,0,0,0.22);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 25;
    animation: panelIn 0.18s ease-out;
}

.beacon-panel-tail {
    position: absolute;
    top: -16px;
    left: 70px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 16px solid var(--dark);
}

.beacon-panel-tail::after {
    content: '';
    position: absolute;
    top: 6px;
    left: -9px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 10px solid var(--cream);
}

.beacon-panel-close {
    width: 22px;
    height: 22px;
    background: #fff;
    border: 2.5px solid var(--dark);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 8px;
    color: var(--dark);
    cursor: pointer;
    padding: 0;
    line-height: 22px;
    text-align: center;
    flex-shrink: 0;
    margin-left: auto;
}

.beacon-panel-header {
    display: flex;
    gap: 8px;
    align-items: center;
}

.beacon-panel-header > div:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.beacon-panel-from-icon {
    width: 36px;
    height: 36px;
    background: var(--pink);
    border: 3px solid var(--dark);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 0 var(--dark);
    font-family: var(--font-display);
    font-size: 9px;
    color: #fff;
    flex-shrink: 0;
}

.beacon-from-name {
    font-family: var(--font-display);
    font-size: 8px;
    color: var(--pink);
}

.beacon-from-subj {
    font-family: var(--font-display);
    font-size: 7px;
    color: #5c3b4a;
    margin-top: 3px;
}

.beacon-panel-quote {
    background: #fff;
    border: 2.5px solid var(--dark);
    border-radius: 8px;
    padding: 8px 10px;
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 700;
    color: #2a1018;
    line-height: 1.4;
}

.beacon-quote-em { color: var(--pink); }

.beacon-panel-event {
    background: linear-gradient(135deg, var(--pink), var(--hot));
    border: 3px solid var(--dark);
    border-radius: 10px;
    padding: 12px;
    color: #fff;
    box-shadow: 0 4px 0 var(--dark);
}

.beacon-event-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.beacon-find-label {
    font-family: var(--font-display);
    font-size: 8px;
    color: #fed499;
}

.beacon-event-name {
    font-family: var(--font-display);
    font-size: 24px;
    color: #fff;
    text-shadow: 2px 2px 0 var(--dark);
    margin-top: 4px;
}

.beacon-booth-badge {
    background: #fed499;
    border: 2.5px solid var(--dark);
    border-radius: 8px;
    padding: 4px 8px;
    text-align: center;
    box-shadow: 0 3px 0 var(--dark);
}

.beacon-booth-label {
    font-family: var(--font-display);
    font-size: 6px;
    color: #5c3b4a;
}

.beacon-booth-num {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--dark);
    margin-top: 2px;
}

.beacon-event-tags {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.beacon-tag {
    background: #fff;
    border: 2px solid var(--dark);
    border-radius: 6px;
    padding: 3px 7px;
    font-family: var(--font-display);
    font-size: 7px;
    color: var(--dark);
}

.beacon-hours {
    background: #fff;
    border: 2.5px dashed rgba(26,0,16,0.56);
    border-radius: 10px;
    padding: 8px 10px;
}

.beacon-hours-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.beacon-hours-title {
    font-family: var(--font-display);
    font-size: 8px;
    color: var(--pink);
}

.beacon-hours-days {
    font-family: var(--font-display);
    font-size: 7px;
    color: #5c3b4a;
}

.beacon-hour-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 6px;
    border-radius: 6px;
    border-bottom: 1.5px dotted rgba(26,0,16,0.25);
}

.beacon-hour-row:last-child { border-bottom: none; }
.beacon-hour-busy { background: rgba(255,216,61,0.38); }

.beacon-day {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 800;
    color: #3a1a25;
}

.beacon-busy {
    font-family: var(--font-display);
    font-size: 6px;
    color: var(--pink);
    margin-left: 6px;
}

.beacon-time {
    font-family: var(--font-display);
    font-size: 9px;
    color: var(--dark);
}

.beacon-shift {
    background: rgba(125,211,252,0.5);
    border: 2.5px solid var(--dark);
    border-radius: 10px;
    padding: 8px 10px;
}

.beacon-shift-title {
    font-family: var(--font-display);
    font-size: 8px;
    color: var(--dark);
    margin-bottom: 4px;
}

.beacon-shift-tasks {
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 700;
    color: #1a1018;
    line-height: 1.4;
}

.beacon-panel-actions {
    display: flex;
    gap: 6px;
}

.beacon-action-cal {
    flex: 1;
    background: var(--pink);
    color: #fff;
    border: 3px solid var(--dark);
    border-radius: var(--radius-pill);
    padding: 8px 10px;
    font-family: var(--font-display);
    font-size: 8px;
    box-shadow: 0 3px 0 var(--dark);
    cursor: pointer;
}

.beacon-action-map {
    background: #fed499;
    color: var(--dark);
    border: 3px solid var(--dark);
    border-radius: var(--radius-pill);
    padding: 8px 10px;
    font-family: var(--font-display);
    font-size: 8px;
    box-shadow: 0 3px 0 var(--dark);
    cursor: pointer;
}

/* BOOTH MAP MODAL */
#beacon-map-modal {
    position: fixed;
    inset: 0;
    background: rgba(20,8,24,0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.beacon-map-dialog {
    width: 720px;
    max-width: 90%;
    background: var(--cream);
    border: 4px solid var(--dark);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 0 var(--dark), 0 24px 60px rgba(0,0,0,0.35);
    overflow: hidden;
}

.beacon-map-bar {
    background: var(--pink);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 3px solid var(--dark);
}

.beacon-map-dot {
    width: 12px;
    height: 12px;
    background: #fed499;
    border: 2px solid var(--dark);
    border-radius: 50%;
}

.beacon-map-title {
    flex: 1;
    font-family: var(--font-display);
    font-size: 9px;
    color: #fff;
    text-align: center;
}

.beacon-map-bar button {
    background: #fff;
    border: 2.5px solid var(--dark);
    border-radius: 6px;
    padding: 2px 8px;
    font-family: var(--font-display);
    font-size: 9px;
    color: var(--dark);
    cursor: pointer;
}

.beacon-map-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.beacon-map-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.beacon-map-booth {
    background: #fed499;
    border: 2.5px solid var(--dark);
    border-radius: 8px;
    padding: 5px 10px;
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--dark);
    box-shadow: 0 3px 0 var(--dark);
}

.beacon-map-sub {
    font-family: var(--font-display);
    font-size: 8px;
    color: #5c3b4a;
}

.beacon-map-ext {
    margin-left: auto;
    background: #fff;
    border: 2.5px solid var(--dark);
    border-radius: var(--radius-pill);
    padding: 5px 10px;
    font-family: var(--font-display);
    font-size: 8px;
    box-shadow: 0 2px 0 var(--dark);
    cursor: pointer;
}

.beacon-map-img-wrap {
    background: #fff;
    border: 3px solid var(--dark);
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.beacon-map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,233,199,0.5);
    color: #5c3b4a;
    font-family: var(--font-display);
    font-size: 10px;
    text-align: center;
    padding: 20px;
}

.beacon-map-placeholder span { font-size: 8px; }

.beacon-map-placeholder code {
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
}

.beacon-map-img-wrap img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* TASKBAR */
#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: var(--pink);
    border-top: 3px solid var(--dark);
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 2000;
}

.tb-l {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 180px;
}

.tb-l-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 10px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.8);
}

.tb-open  { color: var(--lime); }
.tb-closed { color: rgba(255, 255, 255, 0.45); }

.tb-audio-mini {
    display: flex;
    align-items: center;
    gap: 7px;
}

.tb-aud-btn {
    background: white;
    border: 2px solid var(--dark);
    border-radius: 6px;
    box-shadow: 0 2px 0 var(--dark);
    color: var(--dark);
    font-size: 13px;
    line-height: 1;
    padding: 3px 8px;
    cursor: pointer;
    font-family: sans-serif;
    flex-shrink: 0;
    transition: transform .1s, box-shadow .1s;
}

.tb-aud-btn:hover { background: var(--cream); }
.tb-aud-btn:active { transform: translateY(2px); box-shadow: none; }

.tb-aud-track {
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    transition: opacity .15s;
}

.tb-aud-track:hover { opacity: 0.75; }

/* Minimised-window chips. Sit between tb-l and tb-c, growing into
   whatever space the taskbar has. Hidden when there are no children
   so the layout looks unchanged when nothing is minimised. */
.tb-mins {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    min-width: 0;
}
.tb-mins::-webkit-scrollbar { display: none; }
.tb-mins:empty { display: none; }

.tb-min {
    height: 28px;
    background: white;
    border: 2px solid var(--dark);
    border-radius: 7px;
    box-shadow: 0 2px 0 var(--dark);
    padding: 0 7px;
    cursor: pointer;
    font-family: 'Press Start 2P', monospace;
    font-size: 6.5px;
    color: var(--dark);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform .1s, box-shadow .1s, background .1s;
}
.tb-min:hover  { background: var(--cream); }
.tb-min:active { transform: translateY(2px); box-shadow: none; }

.tb-min-icon { font-size: 10px; line-height: 1; }
.tb-min-name {
    letter-spacing: 0.3px;
    max-width: 56px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* When the strip would overflow horizontally we drop the labels so
   pills become icon-only. JS toggles .compact based on scrollWidth
   vs clientWidth — the hover tooltip still surfaces the full name. */
.tb-mins.compact .tb-min-name { display: none; }
.tb-mins.compact .tb-min       { padding: 0 6px; }

.tb-c {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tb-logo {
    height: 36px;
    cursor: pointer;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3));
    transition: transform .15s;
}

.tb-logo:hover {
    transform: scale(1.07);
}

.tb-search-wrap {
    position: relative;
}

.tb-search {
    background: white;
    border: 2px solid var(--dark);
    border-radius: 20px;
    padding: 4px 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    width: 150px;
    outline: none;
}

.tb-search-drop {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: white;
    border: 2px solid var(--dark);
    border-radius: 10px;
    box-shadow: 0 -3px 0 var(--dark);
    overflow: hidden;
    z-index: 3000;
}

.tb-search-item {
    padding: 6px 12px;
    font-family: 'Press Start 2P', monospace;
    font-size: 6px;
    color: var(--dark);
    cursor: pointer;
    line-height: 1.8;
}

.tb-search-item:hover {
    background: var(--pink);
    color: white;
}

.tb-r {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tb-link {
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s;
    display: flex;
    align-items: center;
}

.tb-link img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.tb-link:hover {
    transform: scale(1.15);
}

.tb-pts {
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    color: var(--dark);
    background: var(--lime);
    padding: 5px 10px;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    border: 2px solid var(--dark);
    box-shadow: 0 2px 0 var(--dark);
    transition: transform .1s;
}

.tb-pts:hover {
    transform: translateY(-1px);
}

.tb-time {
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    color: white;
}
