
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.screen {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 50% 55%, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 18%, rgba(0,0,0,0) 42%),
        linear-gradient(180deg, rgba(8,8,8,0.2) 0%, rgba(0,0,0,0.95) 25%, rgba(0,0,0,1) 100%),
        #000;
    padding: 14px 14px 24px;
}

.topbar {
    height: 74px;
    background: #151515;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 0 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.topbar-title {
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f5f5f5;
}

.ports {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e8e8e8;
    font-size: 18px;
    font-weight: 600;
}

.portal-icon-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.05),
        0 0 10px rgba(184,145,88,0.12);
}
.menu-section {
    margin-top: 30px;
}

.section-title {
    color: #8a8a8f;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 4px;
    letter-spacing: -0.02em;
}

.menu-list {
    list-style: none;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 58px;
    padding: 10px 0 10px 12px;
}

.menu-item + .menu-item {
    margin-top: 8px;
}

.menu-text {
    min-width: 0;
    flex: 1;
}

.menu-title {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    color: #f4f4f4;
    letter-spacing: -0.02em;
}

.menu-subtitle {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.2;
    color: #7d7d82;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.arrow-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.arrow-btn::before {
    content: "";
    width: 9px;
    height: 9px;
    border-top: 2px solid #8e8e93;
    border-right: 2px solid #8e8e93;
    transform: rotate(45deg);
    margin-left: -2px;
}

.version {
    margin-top: 42px;
    padding-left: 12px;
    color: #7b7b80;
    font-size: 15px;
    line-height: 1.2;
}

a.menu-item {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 390px) {
    .menu-title {
        font-size: 17px;
    }

    .section-title {
        font-size: 18px;
    }

    .menu-subtitle {
        max-width: 210px;
    }
}
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 480px;
    width: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border-top: 1px solid rgba(68, 68, 68, 0.25);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 12px;
    border-radius: 22px;
    text-decoration: none;
    color: #8c8c91;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    min-width: 64px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
}

.nav-item.active {
    background: rgba(184, 145, 88, 0.12);
    color: #f5f5f5;
}

.nav-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 6px;
    opacity: 0.65;
    transition: all 0.25s;
}

.nav-item.active .nav-icon {
    opacity: 1;
    filter: brightness(1.15) saturate(1.1);
}

.nav-label {
    font-size: 11.5px;
    font-weight: 550;
    letter-spacing: -0.015em;
    opacity: 0.75;
}

.nav-item.active .nav-label {
    opacity: 1;
    font-weight: 600;
}

/* Таймер */
.nav-center {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
    min-width: 68px;
    margin: 0 12px;
}

.timer-spiral {
    width: 35px;
    height: 35px;
    margin-bottom: 6px;
    opacity: 0.85;
    filter: brightness(1.1) saturate(1.2);
    animation: gentle-spin 4s linear infinite;
}

@keyframes gentle-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.timer-pill {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: 6px 16px;
    border: 1px solid rgba(90, 90, 90, 0.5);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.timer-text {
    font-size: 15px;
    font-weight: 650;
    color: #4a4946;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
