/* ───────────────────────────────────────────────
   Main title container and image
   ─────────────────────────────────────────────── */
.main-title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    position: relative;
}

.main-title-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right,
        rgba(0,0,0,0),
        rgba(0,0,0,0.3),
        rgba(0,0,0,0.0),
        rgba(0,0,0,0.3),
        rgba(0,0,0,0));
}

.main-title-image {
    width: 202px;
    height: 50px;
}

/* ───────────────────────────────────────────────
   Layout & title panels  (original styles)
   ─────────────────────────────────────────────── */
.content-container {
    display: flex;
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: stretch;
    overflow-y: auto;
}

.game-title {
    flex: 1;
    transition: flex 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 5px;
    position: relative;
}

.wip-title      { width: 100px; height: 40px; margin: auto; }
#hresh-title    { margin: auto; }

.game-title::before,
.game-title::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom,
    rgba(0,0,0,0),
    rgba(0,0,0,0.5),
    rgba(0,0,0,0));
    transition: background 0.3s ease;
}
.game-title::before { left: 0; }
.game-title::after  { right: 0; }

/*#game-hresh:hover,*/
/*#game-hresh:active { flex: 2; }*/

/* ───────────────────────────────────────────────
   Legacy flat buttons (Play Online, etc.)
   ─────────────────────────────────────────────── */
.game-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    margin: auto;
}
.play-button {
    padding: 10px 20px;
    font-size: 1.2rem;
    border: none;
    border-radius: 15px;
    text-decoration: none;
    color: #fff;
    background: #0066b8;
    transition: background 0.3s ease;
    align-self: center;
    display: inline-block;
}
.play-button:hover { background: #02006c; }

.alpha-tag {
    font-size: 14px;
    font-weight: bold;
    color: red;
    text-transform: uppercase;
    margin-top: 5px;
    text-align: center;
}

.alpha-disclaimer {
    max-width: 80%;
    margin: 15px auto;
    padding: 15px;
    background-color: rgba(240, 240, 240, 0.9);
    border-radius: 8px;
    border-left: 4px solid #ff6b6b;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: left;
    color: #333;
}

.alpha-disclaimer p {
    margin: 8px 0;
}

.alpha-disclaimer a {
    color: #0066b8;
    text-decoration: none;
}

.alpha-disclaimer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .main-title-container {
        padding: 10px 0;
    }

    .main-title-image {
        max-width: 47.5%;
    }

    .content-container { flex-direction: column; }
    .game-title        { margin: 0; }
    .game-buttons      { flex-direction: column; justify-content: center; }
    .play-button       { margin: auto; }

    .alpha-disclaimer {
        max-width: 95%;
        padding: 10px;
        font-size: 0.8rem;
    }
}

/* ───────────────────────────────────────────────
   Segmented-pill download button
   ─────────────────────────────────────────────── */
.download-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    border-radius: 9999px;
    background: #06668d;
    overflow: hidden;
    transition: background 0.25s ease;
}
.download-pill:hover,
.download-pill:focus { background: #5547d9; }

.pill-left,
.pill-middle,
.pill-right {
    padding: 10px 22px;
    display: flex;
    align-items: center;
}

.pill-left { 
    border-right: 1px solid rgba(255,255,255,0.35);
}

.pill-middle {
    padding-right: 10px; /* Reduced right padding */
    border-right: 1px solid rgba(255,255,255,0.35);
}

.pill-right {
    padding: 10px 15px; /* Adjusted padding for better clickability */
    cursor: pointer;
}

/* ▼ arrow */
.download-pill .arrow {
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid #ffffff;
    margin: 0 auto; /* Center the arrow */
}

/* OS-specific palettes */
.download-pill.windows { background: #0066b8; }
.download-pill.windows:hover,
.download-pill.windows:focus { background: #004a85; }

.download-pill.mac     { background: #7854ff; }
.download-pill.mac:hover,
.download-pill.mac:focus { background: #5d3fdb; }

.download-pill.linux   { background: #008269; }
.download-pill.linux:hover,
.download-pill.linux:focus { background: #00624d; }

/* Disabled (greyed-out) state */
.download-pill.disabled {
    background: #6c6c6c !important;
    cursor: not-allowed;
    pointer-events: none;
}
.download-pill.disabled .arrow {
    border-top-color: #dcdcdc;
    opacity: 0.7;
}

/* Dropdown menu styles */
.dropdown-container {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
    z-index: 100;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-container.active .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-option {
    padding: 12px 16px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dropdown-option:hover {
    background: #f5f5f5;
}

/* OS-specific dropdown option styles */
.dropdown-option.windows {
    border-left: 4px solid #0066b8;
}

.dropdown-option.mac {
    border-left: 4px solid #7854ff;
}

.dropdown-option.linux {
    border-left: 4px solid #008269;
}

.dropdown-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dropdown-option.disabled:hover {
    background: none;
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .download-pill { font-size: 0.85rem; }
    .pill-left,
    .pill-middle { padding: 8px 16px; }
    .pill-right  { padding: 8px 12px; }

    .dropdown-menu {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .download-pill { font-size: 0.80rem; }
    .pill-left,
    .pill-middle { padding: 8px 16px; }
    .pill-right  { padding: 8px 12px; }

    .dropdown-menu {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    .play-button {
        font-size: 1.0rem;
    }
}

@media (max-width: 1000px) and (orientation: landscape) {
    .main-title-container {
        padding: 5px 0;
    }

    .main-title-image {
        max-width: 30%;
    }

    .game-title {
        justify-content: normal;
    }
    .download-pill { font-size: 0.80rem; }
    .play-button {
        font-size: 1.0rem;
    }
}
