/* ============================================================
   START SCREEN  –  Play tab, tab-bar, content wrapper
   Leaderboard-panel styles live in  leaderboardHistory.css
   ============================================================ */

   .start-screen {
    display: block;
}

.logo {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.8) 0%, rgba(139, 0, 0, 0.3) 70%);
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(255, 50, 50, 0.6);
    overflow: hidden;
    position: relative;
}

.logo-img {
    display: block;
    width: 80% !important;
    height: 80% !important;
    object-fit: contain;
    z-index: 2;
}

.subtitle {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 50px;
    font-style: italic;
}

@media (max-width: 768px) {
    .subtitle { font-size: 1rem; }
}

@media (max-width: 480px) {
    .logo       { width: 100px; height: 100px; }
    .logo-img   { width: 75%; height: 75%; }
}


/* ============================================================
   TAB BAR  –  fixed strip across the very top
   ============================================================ */

.ss-tab-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0;
    background: rgba(15, 8, 8, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 71, 87, 0.22);
    z-index: 100;
    padding: 0 8px;
    box-sizing: border-box;
}

/* each tab button */
.ss-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Georgia', serif;
    font-size: 1rem;
    font-weight: normal;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: color 0.25s ease;
    outline: none;
    white-space: nowrap;
}

.ss-tab:hover {
    color: rgba(255, 255, 255, 0.78);
}

/* active indicator – animated bottom border */
.ss-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, #ff4757, #ffd700, #ff4757);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ss-tab--active {
    color: #fff;
    font-weight: bold;
}

.ss-tab--active::after {
    width: 70%;
}

.ss-tab-icon  { font-size: 1.1rem; }
.ss-tab-label { font-size: 0.95rem; }


/* ============================================================
   CONTENT WRAPPER  –  pushed down below the tab bar
   ============================================================ */

.ss-content-wrap {
    padding-top: 62px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* fade animations for tab switching */
.ss-content--fade-out {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.ss-content--fade-in {
    animation: ss-fadeIn 0.28s ease forwards;
}

@keyframes ss-fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0);    }
}


/* ============================================================
   RESPONSIVE  –  desktop ≥ 1200
   ============================================================ */
@media (min-width: 1200px) {
    .ss-tab { padding: 15px 36px; }
}


/* ============================================================
   RESPONSIVE  –  tablet portrait / small laptop 650-899
   ============================================================ */
@media (max-width: 899px) and (min-width: 650px) {
    .ss-tab        { padding: 13px 24px; }
    .ss-tab-label  { font-size: 0.9rem; }
}


/* ============================================================
   RESPONSIVE  –  mobile  < 650
   ============================================================ */
@media (max-width: 649px) {
    .ss-tab        { padding: 12px 18px; gap: 6px; }
    .ss-tab-icon   { font-size: 1rem; }
    .ss-tab-label  { font-size: 0.85rem; }

    .ss-content-wrap { padding-top: 56px; }
}


/* ============================================================
   RESPONSIVE  –  tiny  < 360
   ============================================================ */
@media (max-width: 359px) {
    .ss-tab        { padding: 10px 12px; gap: 4px; }
    .ss-tab-label  { font-size: 0.78rem; }
    .ss-tab-icon   { font-size: 0.9rem; }
}


/* ============================================================
   RESPONSIVE  –  landscape on short phones
   ============================================================ */
@media (max-height: 480px) and (orientation: landscape) {
    .ss-tab-bar       { padding: 0 4px; }
    .ss-tab           { padding: 9px 16px; }
    .ss-tab-icon      { font-size: 0.88rem; }
    .ss-tab-label     { font-size: 0.78rem; }
    .ss-content-wrap  { padding-top: 46px; }
}