/* 1989 Start Screen & Lobby Styling */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Orbitron:wght@900&display=swap');

#amiga-start-overlay {
    position: absolute;
    inset: 0;
    z-index: 185;
    background: radial-gradient(circle at 50% 30%, rgba(8, 14, 24, 0.94), rgba(3, 5, 8, 0.98));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    transition: background 0.25s ease;
}

#amiga-start-overlay.in-flight {
    background: rgba(4, 7, 12, 0.58);
}

.gf89-shell {
    width: 100%;
    max-width: 820px;
    background: #000;
    border: 2px solid #333;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.95);
    font-family: 'Press Start 2P', var(--font-hud), monospace;
}

.gf89-banner {
    height: 170px;
    position: relative;
    overflow: hidden;
    background: #020408;
    border-bottom: 2px solid #2a2a2a;
}

.gf89-title {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: 100%;
    text-align: center;
    font-family: 'Orbitron', var(--font-hud), sans-serif;
    font-weight: 900;
    font-size: clamp(1.7rem, 4.8vw, 3.1rem);
    letter-spacing: 3px;
    background: linear-gradient(180deg, #ffffff 0%, #87ceeb 30%, #00ffff 50%, #0055aa 85%, #002255 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1.5px #5798db;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.65));
    pointer-events: none;
}

.gf89-debug-pill {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 6;
    font-family: var(--font-hud), monospace;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 4px 9px;
    border-radius: 3px;
    background: rgba(10, 16, 24, 0.85);
    border: 1px solid rgba(100, 116, 139, 0.45);
    color: #94a3b8;
}

.gf89-debug-pill.is-debug {
/*
    border-color: var(--col-amber);
    color: var(--col-amber);
    background: rgba(245, 158, 11, 0.14);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.28);
*/
}

.gf89-pilot-strip {
    position: absolute;
    bottom: 8px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: #87ceeb;
    z-index: 5;
}

.gf89-pilot-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.gf89-chit-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 26px;
    padding: 0 10px;
    background: rgba(12, 20, 30, 0.88);
    border: 1px solid rgba(255, 215, 0, 0.45);
    color: var(--col-gold);
    font-family: var(--font-hud), monospace;
    cursor: pointer;
    line-height: 1;
    clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.gf89-chit-pill:hover {
    background: rgba(255, 215, 0, 0.16);
    border-color: var(--col-gold);
}

.gf89-chit-pill .chit-sym {
    font-size: 14px;
    line-height: 1;
    color: var(--col-gold);
}

.gf89-chit-pill .chit-cnt {
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    color: #fff;
}

.gf89-active-session-bar {
    background: #141c26;
    border-bottom: 2px solid #008b8b;
    padding: 8px 14px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 10px;
    color: #00f2fe;
}

.gf89-main-panel {
    background-color: #4a4a4a;
    border-top: 6px solid #6b6b6b;
    border-left: 6px solid #6b6b6b;
    border-right: 6px solid #333;
    border-bottom: 6px solid #333;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 720px) {
    .gf89-main-panel {
        grid-template-columns: 1fr;
    }
}

.gf89-col {
    display: flex;
    flex-direction: column;
}

.gf89-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 4px solid #3a3a3a;
}

.gf89-btn {
    background-color: #555;
    color: #ccc;
    border-top: 4px solid #777;
    border-left: 4px solid #777;
    border-bottom: 4px solid #333;
    border-right: 4px solid #333;
    padding: 13px 16px;
    font-size: 13px;
    width: 100%;
    text-align: left;
    margin-bottom: 12px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}

.gf89-btn > span {
    background: linear-gradient(180deg, #eeeeee 0%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gf89-btn.active {
    background-color: #008b8b;
    border-top-color: #00b3b3;
    border-left-color: #00b3b3;
    border-bottom-color: #005959;
    border-right-color: #005959;
}

.gf89-btn.active > span {
    background: linear-gradient(180deg, #ffffff 0%, #00ffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gf89-tab {
    flex: 1;
    margin-bottom: 0;
    padding: 10px 8px;
    font-size: 10px;
    justify-content: center;
    text-align: center;
    line-height: 1.4;
}

.gf89-tab.selected-tab {
    background-color: #333;
    border-top-color: #111;
    border-left-color: #111;
    border-bottom-color: #666;
    border-right-color: #666;
}

.gf89-val-wrap {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.gf89-val-wrap .val {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.gf89-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 12px;
    line-height: 1;
    width: 22px;
    height: 22px;
    transform: translateY(-3px);
    cursor: pointer;
    -webkit-text-fill-color: #00ffff;
}

.gf89-arrow:hover {
    -webkit-text-fill-color: #ffffff;
}

.gf89-gear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    width: 26px;
    height: 26px;
    padding: 0;
    background: #3a3a3a;
    border-top: 2px solid #666;
    border-left: 2px solid #666;
    border-bottom: 2px solid #1f1f1f;
    border-right: 2px solid #1f1f1f;
    color: #ffd700;
    font-size: 13px;
    line-height: 1;
    transform: translateY(-4px);
    cursor: pointer;
    -webkit-text-fill-color: #ffd700;
}

.gf89-right-box {

.gf89-gear-btn:hover {
    background: #4b4b4b;
    -webkit-text-fill-color: #ffffff;
}

.gf89-sub-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.gf89-sub-actions .gbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 26px;
    padding: 0 6px;
    font-size: 9px;
    line-height: 1;
    position: relative;
}
    background-color: #555;
    border-top: 4px solid #777;
    border-left: 4px solid #777;
    border-bottom: 4px solid #333;
    border-right: 4px solid #333;
    padding: 12px;
    position: relative;
    flex-grow: 1;
}

.gf89-box-title {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #555;
    padding: 0 8px;
    font-size: 11px;
    color: #fff;
}

.gf89-screen {
    background-color: #000;
    border-top: 4px solid #333;
    border-left: 4px solid #333;
    border-bottom: 4px solid #777;
    border-right: 4px solid #777;
    padding: 12px;
    font-size: 11px;
    line-height: 1.65;
    color: #00ffff;
}

.gf89-score-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    font-size: 10px;
}

.gf89-rank {
    color: #ff55ff;
    width: 26px;
    text-align: right;
    display: inline-block;
}

.gf89-record-rotator, #gf89-course-record-title {
    display: inline-block;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.gf89-record-rotator.fade-out, #gf89-course-record-title.fade-out {
    opacity: 0;
    transform: translateY(4px);
}

.gf89-online-bar {
    font-family: Aldrich;
    margin-top: 12px;
    background: #2b2b2b;
    border-top: 3px solid #1a1a1a;
    border-left: 3px solid #1a1a1a;
    border-bottom: 3px solid #666;
    border-right: 3px solid #666;
    padding: 10px;
    display: none;
}

#gf89-online-list::-webkit-scrollbar {
    width: 4px;
}
#gf89-online-list::-webkit-scrollbar-track {
    background: rgba(5, 7, 10, 0.85);
}
#gf89-online-list::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.5);
    border-radius: 2px;
}

.gf89-opt-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0 14px;
}

.gf89-opt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    padding: 8px 10px;
    border: 1px solid rgba(0, 242, 254, 0.22);
    font-size: var(--fs-xs);
}

/* Colony Comms Styling */
#comms-modal .hud-label {
    letter-spacing: 1px;
}