.menu-screen {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* ===== Menu Hero (full viewport) ===== */
.menu-hero {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}
.menu-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.08) 35%, rgba(0,0,0,0.15) 65%, rgba(0,0,0,0.45) 100%);
    pointer-events: none;
}
.menu-hero > * {
    position: relative;
    z-index: 1;
}

/* Menu header (inside hero, absolute top) */
.menu-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--total-top, 0px) + 12px) 16px 8px;
    background: transparent;
    border-bottom: none;
}
.menu-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.menu-header-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 1.5px solid #fff;
    border-radius: 50px;
    padding: 3px 10px 3px 28px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    position: relative;
    overflow: visible;
}
.menu-header-pill .icon-gem {
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    height: calc(100% + 8px);
    width: auto;
    object-fit: contain;
    z-index: 1;
}
.menu-header-pill .icon-credit {
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    height: calc(100% + 8px);
    width: auto;
    object-fit: contain;
    z-index: 1;
}
.menu-header-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.menu-header-btn:active {
    background: rgba(0,0,0,0.4);
}

.menu-hero-logo {
    width: min(65vw, 300px);
    margin-bottom: 4vh;
    filter: drop-shadow(0 4px 20px rgba(91,127,255,0.4));
}
.menu-voyage-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 3vh;
}
.menu-voyage-num {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.menu-voyage-label {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}
.menu-level-btn {
    background: linear-gradient(180deg, #5bbd3f, #3d9e2a);
    color: #fff;
    border: none;
    border-radius: 28px;
    padding: 16px 60px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(61,158,42,0.5);
    transition: transform 0.15s;
    text-transform: uppercase;
}
.menu-level-btn:active {
    transform: scale(0.95);
}

/* ===== Menu Bottom Bar ===== */
.menu-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(64px + var(--safe-bottom, 0px));
    padding: 0 20px;
    padding-bottom: var(--safe-bottom, 0px);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 100;
    pointer-events: none;
}
.menu-bottom-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(20,25,50,0.65);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    pointer-events: auto;
    position: relative;
}
.menu-bottom-btn:active {
    transform: scale(0.92);
    background: rgba(255,255,255,0.2);
}
.menu-bottom-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #e53935;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.menu-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-hint);
}

.section-detail-set {
    margin-bottom: 16px;
}

/* Section Card (legacy, keep for detail view) */
.section-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 0.15s;
}

.section-card:active {
    transform: scale(0.98);
}

.section-card-image {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.section-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.section-card-country {
    position: absolute;
    bottom: 8px;
    left: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.section-card-body {
    padding: 12px;
}

.section-card-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: var(--text-hint);
    white-space: nowrap;
}

/* Set List */
.section-sets {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.set-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.15s;
}

.set-item:active {
    background: rgba(255, 255, 255, 0.1);
}

.set-item.locked {
    opacity: 0.4;
    pointer-events: none;
}

.set-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.set-info {
    flex: 1;
    min-width: 0;
}

.set-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.set-progress {
    font-size: 12px;
    color: var(--text-hint);
}

.set-check {
    color: #4caf50;
    font-size: 18px;
}

/* Level Grid */
.level-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 12px;
}

.level-btn {
    aspect-ratio: 1;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.level-btn.completed {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.5);
}

.level-btn.current {
    background: var(--section-color);
    border-color: var(--section-color);
    color: #fff;
    animation: pulse-glow 2s infinite;
}

.level-btn.locked {
    opacity: 0.3;
    pointer-events: none;
}

.level-btn:active {
    transform: scale(0.92);
}

/* Back nav in sets/levels view */
.menu-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-hint);
    cursor: pointer;
}

.menu-breadcrumb:active {
    color: var(--text-primary);
}

/* Settings Screen */
.settings-screen {
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--bg-primary);
    padding: 0 20px;
    padding-top: var(--total-top);
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 16px 0 24px;
}

.settings-title {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.settings-close-btn {
    position: absolute;
    right: 0;
    top: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.settings-close-btn:active {
    background: rgba(255, 255, 255, 0.1);
}

/* Sound toggle circles */
.settings-toggle-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 16px 0 32px;
}

.settings-circle-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.settings-circle-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: none;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-circle-btn.on {
    border-color: #4caf50;
    background: #4caf50;
    color: #fff;
}

.settings-circle-btn:active {
    transform: scale(0.92);
}

.settings-circle-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-hint);
}

/* Settings cards */
.settings-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.15s;
}

.settings-card:active {
    transform: scale(0.98);
}

.settings-card-icon {
    color: #333;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.settings-card-content {
    flex: 1;
}

.settings-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
}

.settings-card-value {
    font-size: 13px;
    font-weight: 600;
    color: #f0a000;
}

/* Language picker */
.settings-lang-picker {
    display: flex;
    gap: 8px;
    padding: 8px 0 16px;
    justify-content: center;
}

.settings-lang-option {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.settings-lang-option.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.settings-lang-option:active {
    transform: scale(0.96);
}

/* ===== Menu Postcards ===== */
.menu-postcards {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 12px 16px 8px;
    flex-wrap: wrap;
}
.menu-postcard {
    width: 56px;
    height: 42px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    background-size: cover;
    background-position: center;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.3);
    position: relative;
}
.menu-postcard.unlocked {
    border-color: rgba(180,160,120,0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.menu-postcard.locked {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

/* (Daily Puzzle, Streak Calendar, Fortune Wheel — removed) */

/* ===== Bottom bar avatar ===== */
.menu-bottom-avatar img {
    border: none;
}
/* ===== Profile Screen ===== */
.profile-screen {
    background: #1a1f3d;
    display: flex;
    flex-direction: column;
    position: relative;
}
.profile-close-btn {
    position: absolute;
    top: calc(var(--total-top, 0px) + 12px);
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.3);
    background: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}
.profile-close-btn:active {
    background: rgba(255,255,255,0.1);
}
.profile-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
}

/* Avatar section */
.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: calc(var(--total-top, 0px) + 8px) 16px 10px;
}
.profile-avatar-wrap {
    position: relative;
}
.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.25);
    object-fit: contain;
    padding: 14px;
    background: transparent;
    box-shadow: none;
}
.profile-username {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin-top: 6px;
}
.profile-user-id {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    margin-top: 2px;
}

/* Profile Tabs — capsule segmented control (matches original WoW) */
.profile-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 20px 24px 0;
    background: transparent;
    border-radius: 28px;
    overflow: visible;
    margin: 0 16px;
    border: none;
}
.profile-tab {
    flex: none;
    padding: 13px 28px;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 26px;
    margin: 2px;
}
.profile-tab:first-child {
    border-radius: 26px;
}
.profile-tab:last-child {
    border-radius: 26px;
}
.profile-tab.active {
    background: #fff;
    color: #5c4a2a;
    border-color: #fff;
}
.profile-content {
    padding: 16px;
}
.profile-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-hint);
}

/* Stats row (3 columns with dividers) — cream card */
.profile-stats {
    display: flex;
    background: rgba(255,255,255,0.92);
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid #E8C547;
}
.profile-stat {
    flex: 1;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
}
.profile-stat + .profile-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(0,0,0,0.1);
}
.profile-stat-value {
    font-size: 26px;
    font-weight: 800;
    color: #1a1f3d;
}
.profile-stat-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

/* ===== Explore Section Cards (Profile) ===== */
.explore-card {
    border-radius: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.15s;
}
.explore-card:active {
    transform: scale(0.98);
}

/* Current section - expanded with country bg */
.explore-current {
    background-color: rgba(255,255,255,0.95);
    background-size: cover;
    background-position: center;
    border: 2px solid #E8C547;
    padding: 18px 16px 0;
    color: #1a1f3d;
    position: relative;
    overflow: hidden;
}
.explore-current::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.75);
    z-index: 0;
}
.explore-current > * {
    position: relative;
    z-index: 1;
}
.explore-name {
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    color: #1a1f3d;
}
.explore-range {
    font-size: 13px;
    color: #777;
    text-align: center;
    margin-bottom: 14px;
}

/* Postcard thumbnails */
.explore-postcards {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 0 8px;
    margin-bottom: 14px;
}
.explore-postcard {
    width: 66px;
    height: 110px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}
.explore-postcard.unlocked {
    border: 2px solid rgba(180,160,120,0.4);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.explore-postcard.current {
    border: 1.5px solid #E8C547;
    outline: 1.5px solid #E8C547;
    outline-offset: 1.5px;
    box-shadow: 0 2px 10px rgba(232,197,71,0.35);
}
.explore-postcard.locked {
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: none;
}
.explore-postcard-frost {
    position: absolute;
    inset: 0;
    background: rgba(200,170,50,0.48);
    border-radius: 0;
    pointer-events: none;
}
.explore-postcard-lock {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

/* Set info bar at bottom of expanded card */
.explore-set-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid rgba(0,0,0,0.08);
}
.explore-set-name {
    flex: 1;
    font-size: 14px;
    font-weight: 700;
    color: #1a1f3d;
    text-transform: uppercase;
}
.explore-set-progress {
    font-size: 14px;
    font-weight: 600;
    color: #777;
    background: rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 4px 12px;
}
.explore-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e94560;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.explore-play-btn:active {
    transform: scale(0.92);
}

/* Completed section card — gold border, cream bg, expandable */
.explore-completed {
    background-color: rgba(255,255,255,0.95);
    background-size: cover;
    background-position: center;
    border: 2px solid #E8C547;
    padding: 14px 16px;
    color: #1a1f3d;
    position: relative;
    overflow: hidden;
}
.explore-completed::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.75);
    z-index: 0;
}
.explore-completed > * {
    position: relative;
    z-index: 1;
}
.explore-completed-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.explore-check-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.explore-completed-text {
    flex: 1;
    text-align: center;
    min-width: 0;
}
.explore-completed-text .explore-range {
    margin-bottom: 0;
}
.explore-chevron-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.06);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}
.explore-chevron-btn:active {
    background: rgba(0,0,0,0.12);
}
/* Smooth expand/collapse */
.explore-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    opacity: 0;
}
.explore-completed.expanded .explore-collapsible {
    max-height: 400px;
    opacity: 1;
}

/* Compact section cards with country bg */
.explore-compact {
    background-color: rgba(210,220,240,0.7);
    background-size: cover;
    background-position: center;
    border: 1.5px solid rgba(180,200,230,0.4);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.explore-compact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(160,180,220,0.65);
    z-index: 0;
}
.explore-compact > * {
    position: relative;
    z-index: 1;
}
.explore-compact-text {
    flex: 1;
    text-align: center;
}
.explore-compact-name {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.explore-compact-range {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin-top: 2px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.explore-lock-icon {
    flex-shrink: 0;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.explore-locked {
    opacity: 0.65;
    cursor: default;
}
.explore-locked:active {
    transform: none;
}

/* ===== HOME state: Snow particles ===== */
.menu-snow-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}
.menu-snowflake {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: menu-snow-fall linear infinite;
    top: -10px;
}
@keyframes menu-snow-fall {
    to {
        transform: translateY(105vh) translateX(20px);
        opacity: 0;
    }
}

/* ===== HOME state: Lake shimmer ===== */
.menu-lake-shimmer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 38%;
    z-index: 1;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(180, 140, 255, 0.03) 30%,
        rgba(200, 160, 255, 0.06) 60%,
        rgba(180, 140, 255, 0.03) 100%
    );
    animation: menu-lake-pulse 4s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes menu-lake-pulse {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* ===== HOME state: Voyage pulse ring ===== */
.menu-voyage-pulse {
    animation: voyage-ring-pulse 2s ease-in-out infinite;
}
@keyframes voyage-ring-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(200, 220, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 0 14px rgba(200, 220, 255, 0);
    }
}

/* ===== COUNTRY state: Home button (inherits .menu-bottom-btn base) ===== */

/* ===== COUNTRY state: Progress bars ===== */
.menu-progress {
    width: 85%;
    max-width: 340px;
    margin-bottom: 8px;
}
.menu-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.menu-progress-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.menu-progress-count {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #4caf50, #66bb6a);
    border-radius: 12px;
    padding: 2px 14px;
}
.menu-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.menu-bar-track {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    overflow: visible;
    position: relative;
}
.menu-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #66bb6a);
    border-radius: 5px;
    transition: width 0.7s ease-out;
    width: 0%;
}
.menu-bar-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-bar-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    transform: rotate(5deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.menu-screen {
    background: #0f1835;
}

.menu-country-hero::after {
    background: linear-gradient(180deg, rgba(11, 20, 41, 0.1) 0%, rgba(11, 20, 41, 0.18) 28%, rgba(11, 20, 41, 0.38) 58%, rgba(7, 12, 26, 0.78) 100%);
}

.menu-header {
    padding: calc(var(--total-top, 0px) + 12px) 16px 8px;
}

.menu-header-left,
.menu-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-header-pill {
    min-height: 32px;
    min-width: 100px;
    padding: 5px 14px 5px 40px;
    background: rgba(4, 8, 20, 0.58);
    border: 1.5px solid rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 13px;
    line-height: 1;
}

.menu-header-pill .icon-gem {
    left: -10px;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.menu-header-pill .icon-credit {
    left: -6px;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.menu-currency-value {
    display: inline-block;
    min-width: 1.7em;
    text-align: left;
}

.menu-header-btn {
    min-width: 40px;
    height: 40px;
    border-radius: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.82);
    background: rgba(4, 8, 20, 0.58);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.menu-hero-logo {
    width: min(60vw, 248px);
    margin-top: calc(var(--total-top, 0px) + 52px);
    margin-bottom: 18px;
    filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.24));
}

.menu-country-content {
    width: 100%;
    margin-top: auto;
    padding: 0 18px calc(var(--safe-bottom, 0px) + 82px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-country-badge {
    align-self: center;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(8, 14, 29, 0.54);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.menu-country-title {
    font-size: clamp(24px, 5.5vw, 34px);
    line-height: 1.08;
    font-weight: 800;
    text-align: center;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.menu-country-voyage-circle {
    align-self: center;
    width: 122px;
    height: 122px;
    margin: 4px 0 2px;
    background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.3) 0%, rgba(230, 238, 255, 0.18) 48%, rgba(206, 222, 255, 0.08) 100%);
    border: 2px solid rgba(232, 239, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 10px rgba(195, 215, 255, 0.06);
}

.menu-country-voyage-circle .menu-voyage-num {
    font-size: 42px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.menu-country-voyage-circle .menu-voyage-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
}

.menu-progress-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-progress {
    width: 100%;
    max-width: none;
    margin-bottom: 0;
    padding: 14px 16px;
    border-radius: 22px;
    background: rgba(8, 14, 29, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 32px rgba(4, 9, 23, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.menu-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.menu-progress-label,
.menu-progress-count {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.menu-progress-count {
    background: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.86);
}

.menu-bar-row {
    display: flex;
    align-items: center;
    gap: 0;
}

.menu-bar-track {
    position: relative;
    flex: 1;
    min-height: 18px;
    padding: 2px;
    border-radius: 999px;
    background: rgba(10, 16, 30, 0.72);
    border: 2px solid rgba(255, 255, 255, 0.76);
    overflow: hidden;
}

.menu-bar-fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(180deg, #74d551 0%, #49a92f 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -2px 4px rgba(0, 0, 0, 0.28);
    transition: width 0.7s ease;
}

.menu-bar-icon,
.menu-bar-thumb {
    width: 50px;
    height: 56px;
    margin-left: -16px;
    position: relative;
    z-index: 1;
}

.menu-bar-thumb {
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.26);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.menu-daily-card {
    border: 0;
    border-radius: 24px;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(16, 27, 57, 0.92) 0%, rgba(10, 19, 40, 0.92) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 36px rgba(3, 8, 20, 0.24);
}

.menu-daily-card:active,
.menu-level-btn:active,
.menu-fortune-btn:active {
    transform: scale(0.98);
}

.menu-daily-card-home.completed {
    background: rgba(0, 0, 0, 0.55);
}

.menu-daily-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
}

.menu-daily-date-icon {
    width: 58px;
    height: 66px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fafafa 0%, #ebeef8 100%);
    border: 2px solid rgba(112, 112, 148, 0.28);
    color: #1d2341;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0;
    position: relative;
    overflow: visible;
    box-shadow: 0 6px 14px rgba(5, 10, 24, 0.12);
}

.menu-daily-date-icon .menu-daily-calendar-month {
    min-width: 100%;
    padding: 5px 0 3px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(180deg, #7978ec 0%, #5851c8 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.menu-daily-date-icon .menu-daily-calendar-day {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.menu-daily-date-icon .menu-daily-calendar-check {
    right: -6px;
    bottom: -6px;
    width: 22px;
    height: 22px;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(45, 191, 49, 0.28);
}

.menu-daily-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.menu-daily-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.menu-daily-subtitle {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 600;
}

.menu-daily-action {
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, #64c54d 0%, #439b30 100%);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
}

.menu-country-actions {
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-level-btn {
    width: 100%;
    min-height: 62px;
    border-radius: 999px;
    background: linear-gradient(180deg, #64c54d 0%, #439b30 100%);
    box-shadow: 0 16px 28px rgba(46, 130, 29, 0.34), inset 0 2px 0 rgba(255, 255, 255, 0.22);
}

.menu-bottom-bar {
    justify-content: space-between;
    padding: 0 16px;
}

.menu-bottom-bar-country {
    justify-content: flex-start;
}

.menu-bottom-btn {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.82);
    background: rgba(4, 8, 20, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.menu-bottom-btn.active {
    background: rgba(11, 22, 49, 0.88);
}

.menu-fortune-btn {
    position: fixed;
    right: 18px;
    bottom: calc(var(--safe-bottom, 0px) + 18px);
    width: 78px;
    height: 78px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    box-shadow: none;
    pointer-events: auto;
    cursor: pointer;
    z-index: 2;
}

.menu-fortune-btn img,
.menu-fortune-btn .menu-fortune-badge {
    pointer-events: none;
}

.menu-fortune-btn.available::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7cff62;
    box-shadow: 0 0 0 4px rgba(124, 255, 98, 0.18);
}

.menu-fortune-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.1;
    max-width: 64px;
}

.menu-fortune-btn-country img {
    width: 78px;
    height: 78px;
}

.menu-fortune-btn-country.available::after {
    display: none;
}

.menu-fortune-btn-country .menu-fortune-badge {
    position: absolute;
    top: 1px;
    right: -1px;
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    border-radius: 14px;
    background: #d62b2b;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.22);
}

.daily-screen {
    background: linear-gradient(180deg, #132347 0%, #0f1835 100%);
    padding: calc(var(--total-top, 0px) + 12px) 18px calc(var(--safe-bottom, 0px) + 20px);
    overflow-y: auto;
}

.daily-header {
    min-height: auto;
    padding: 0;
    margin-bottom: 12px;
}

.daily-header .btn {
    min-width: 42px;
    min-height: 42px;
    border-radius: 21px;
    border: 1.5px solid rgba(255, 255, 255, 0.78);
    background: rgba(4, 8, 20, 0.56);
}

.daily-banner {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 32px rgba(2, 8, 22, 0.26);
    margin-bottom: 18px;
}

.daily-banner-img {
    display: block;
    width: 100%;
}

.daily-month {
    font-size: 23px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 14px;
}

.daily-day-labels,
.daily-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.daily-day-label {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
}

.daily-cal-cell {
    min-height: 46px;
    border-radius: 16px;
    background: rgba(5, 9, 20, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.daily-cal-cell.today {
    background: rgba(88, 181, 64, 0.82);
}

.daily-cal-cell.done {
    background: rgba(31, 91, 36, 0.9);
}

.daily-cal-cell.future {
    opacity: 0.38;
}

.daily-cal-cell.blank {
    background: transparent;
    border: 0;
}

.daily-play-btn,
.daily-done-label {
    margin-top: 20px;
    border-radius: 999px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 800;
    text-transform: uppercase;
}

.daily-play-btn {
    width: 100%;
    border: 0;
    background: linear-gradient(180deg, #64c54d 0%, #439b30 100%);
    color: #fff;
}

.daily-done-label {
    background: rgba(31, 91, 36, 0.9);
}

.fortune-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--total-top, 0px) + 18px) 18px calc(var(--safe-bottom, 0px) + 18px);
    background: rgba(7, 11, 24, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow-y: auto;
}

.fortune-content {
    width: min(100%, 390px);
    border-radius: 28px;
    background: linear-gradient(180deg, #152651 0%, #0d1732 100%);
    color: #fff;
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.28);
}

.fortune-content {
    position: relative;
    padding: 22px 18px 18px;
}

.fortune-title {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
}

.fortune-wheel-wrap {
    position: relative;
    width: min(78vw, 320px);
    margin: 0 auto;
}

.fortune-wheel-svg {
    width: 100%;
    height: auto;
    display: block;
}

.fortune-rotor {
    transform-origin: 150px 150px;
}

.fortune-pointer {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.fortune-spin-btn,
.fortune-collect-btn {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #64c54d 0%, #439b30 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
}

.fortune-spin-btn.disabled {
    opacity: 0.56;
}

.fortune-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.fortune-reward {
    margin-top: 14px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    text-align: center;
}

.fortune-reward-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 6, 18, 0.66);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.fortune-reward-card {
    width: min(100%, 340px);
    padding: 22px 22px 20px;
    border-radius: 28px;
    background: linear-gradient(180deg, #f8eed1 0%, #f0dca8 100%);
    color: #4a3a1e;
    text-align: center;
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.42);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.fortune-reward-card .fortune-reward-title {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #4a3a1e;
}

.fortune-reward-badge {
    position: relative;
    width: 180px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 6px 14px rgba(76, 175, 80, 0.4));
}

.fortune-reward-pile {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fortune-reward-amount {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #3a5aa8 0%, #1f3a82 100%);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}

.fortune-reward-card .fortune-collect-btn {
    width: 100%;
    min-height: 56px;
    margin-top: 4px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #74d637 0%, #4ca81e 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    transition: transform 0.08s, box-shadow 0.08s;
}

.fortune-reward-card .fortune-collect-btn:active {
    transform: translateY(3px);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
}

/* ===== APK parity overrides ===== */
.menu-home-hero::after {
    background: linear-gradient(180deg, rgba(7, 12, 28, 0.08) 0%, rgba(8, 12, 26, 0.02) 22%, rgba(8, 12, 25, 0.12) 58%, rgba(8, 12, 24, 0.32) 100%);
}

.menu-home-hero .menu-header {
    padding: calc(var(--total-top, 0px) + 10px) 12px 0;
}

.menu-home-hero .menu-header-left,
.menu-home-hero .menu-header-actions {
    gap: 5px;
}

.menu-home-hero .menu-header-pill {
    min-width: 78px;
    min-height: 28px;
    padding: 2px 12px 2px 30px;
    border-radius: 18px;
    font-size: 13px;
}

.menu-home-hero .menu-header-pill .icon-gem {
    left: -8px;
    width: 32px;
    height: 32px;
}

.menu-home-hero .menu-header-pill .icon-credit {
    left: -5px;
    width: 28px;
    height: 28px;
}

.menu-home-hero .menu-header-btn {
    height: 32px;
    min-width: 32px;
    border-radius: 16px;
}

.menu-header-alert {
    position: absolute;
    top: -3px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #d32f2f;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.24);
    z-index: 3;
    pointer-events: none;
}

.menu-header-alert-coin {
    left: 8px;
}

.menu-home-hero .menu-hero-logo {
    width: min(54vw, 478px);
    margin-top: calc(var(--total-top, 0px) + 96px);
    margin-bottom: 0;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.18));
}

.menu-home-content {
    width: 100%;
    margin-top: auto;
    padding: 0 28px calc(var(--safe-bottom, 0px) + 108px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.menu-home-voyage {
    width: 206px;
    height: 206px;
    margin-bottom: 0;
    background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.34) 0%, rgba(233, 240, 255, 0.22) 48%, rgba(210, 226, 255, 0.14) 100%);
    border: 2.5px solid rgba(232, 239, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 0 14px rgba(195, 215, 255, 0.08);
}

.menu-home-voyage .menu-voyage-num {
    font-size: 66px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.menu-home-voyage .menu-voyage-label {
    font-size: 15px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.menu-home-level-btn {
    width: 86%;
    min-height: 62px;
    font-size: clamp(22px, 5.2vw, 30px);
    border-radius: 999px;
    padding: 10px 28px;
    letter-spacing: 0.5px;
    margin: 0 auto;
    box-shadow: 0 10px 20px rgba(46, 130, 29, 0.28), inset 0 3px 0 rgba(255, 255, 255, 0.28);
}

.menu-daily-card-home {
    width: 86%;
    min-height: 56px;
    padding: 6px 10px 6px 22px;
    grid-template-columns: 1fr auto;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.32);
    box-shadow: 0 10px 20px rgba(3, 8, 20, 0.18);
    margin: 0 auto;
    overflow: visible;
    align-items: center;
    position: relative;
}

.menu-daily-card-home .menu-daily-body {
    min-width: 0;
}

.menu-daily-card-home .menu-daily-title {
    font-size: clamp(18px, 4.6vw, 24px);
    line-height: 1;
    letter-spacing: 0.01em;
}

.menu-daily-card-home .menu-daily-action {
    align-self: center;
    justify-self: end;
    margin-right: -40px;
    z-index: 2;
}

.menu-daily-calendar-badge {
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #e7ecf7 100%);
    border: 2px solid rgba(60, 68, 104, 0.35);
    color: #1d2341;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    position: relative;
    text-transform: uppercase;
    flex-shrink: 0;
    overflow: visible;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
}

.menu-daily-calendar-month {
    min-width: 100%;
    padding: 3px 0 2px;
    background: linear-gradient(180deg, #4a9bff 0%, #3372d3 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    border-radius: 7px 7px 0 0;
}

.menu-daily-calendar-day {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    margin-top: 2px;
}

.menu-daily-calendar-check {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2dbf31;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.9);
    z-index: 2;
}

.menu-bottom-bar-home {
    justify-content: space-between;
    align-items: flex-end;
    height: auto;
    padding: 0 20px calc(var(--safe-bottom, 0px) + 10px);
    pointer-events: auto;
}

.menu-bottom-bar-home .menu-bottom-btn {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(4, 8, 20, 0.72);
    border: 2px solid rgba(255, 255, 255, 0.76);
}

.menu-bottom-bar-home .menu-profile-btn img {
    width: 30px;
    height: 30px;
}

.menu-fortune-btn-home {
    position: static;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    pointer-events: auto;
    touch-action: manipulation;
    z-index: 2;
}

.menu-fortune-btn-home img {
    width: 64px;
    height: 64px;
}

.menu-fortune-btn-home.available::after {
    display: none;
}

.menu-fortune-btn-home .menu-fortune-badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 12px;
    background: #d62b2b;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.22);
}

.daily-screen {
    background:
        linear-gradient(180deg, rgba(10, 16, 34, 0.04) 0%, rgba(10, 16, 34, 0.16) 100%),
        url('../img/bg/mainmenu_winter.png') center center / cover no-repeat;
    padding: calc(var(--total-top, 0px) + 8px) 14px calc(var(--safe-bottom, 0px) + 12px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.daily-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.daily-topbar-stats,
.daily-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.daily-calendar-shell {
    position: relative;
    border-radius: 20px;
    padding: 10px 10px 12px;
    background: rgba(245, 247, 252, 0.78);
    box-shadow: 0 22px 36px rgba(5, 10, 24, 0.2);
    overflow: hidden;
}

.daily-calendar-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.56) 0%, rgba(255, 255, 255, 0.3) 100%);
    pointer-events: none;
}

.daily-calendar-shell > * {
    position: relative;
    z-index: 1;
}

.daily-month {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: #74461c;
    font-size: clamp(16px, 4.5vw, 24px);
    font-weight: 800;
    text-align: center;
    line-height: 1;
}

.daily-month span {
    flex: 1;
    text-align: center;
}

.daily-month-arrow {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: rgba(116, 70, 28, 0.36);
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.daily-banner {
    position: relative;
    height: 72px;
    border-radius: 14px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.9);
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.58);
    margin-bottom: 6px;
}

.daily-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(68, 150, 255, 0.78) 0 48px, transparent 48px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.68) 100%);
    mix-blend-mode: screen;
}

.daily-banner-label {
    position: absolute;
    top: 12px;
    left: 14px;
    color: #fff;
    font-size: clamp(16px, 4vw, 28px);
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
    z-index: 1;
}

body[data-parity-preset="daily_calendar_ru"] .daily-banner-label {
    letter-spacing: 0.01em;
}

.daily-day-labels,
.daily-cal-grid {
    gap: 4px;
}

.daily-day-label {
    font-size: 11px;
    color: rgba(109, 92, 78, 0.72);
}

.daily-cal-cell {
    min-height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(198, 203, 217, 0.56);
    color: #91775f;
    font-size: 15px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.daily-cal-cell.done {
    background: rgba(255, 255, 255, 0.9);
}

.daily-cal-cell.today {
    background: rgba(255, 255, 255, 0.94);
    border: 2px solid #39bb29;
}

.daily-cal-cell.future {
    background: rgba(233, 236, 245, 0.34);
    opacity: 1;
}

.daily-cal-check svg {
    width: 18px;
    height: 18px;
}

.daily-reward-bubble {
    position: absolute;
    bottom: calc(100% - 4px);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 12px;
    background: rgba(255, 250, 240, 0.96);
    border: 2px solid #efcc4b;
    color: #3a2716;
    box-shadow: 0 6px 12px rgba(154, 115, 34, 0.12);
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.daily-reward-bubble::after {
    content: '';
    position: absolute;
    left: var(--arrow-x, 50%);
    top: 100%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #efcc4b;
}

.daily-reward-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
}

.daily-reward-item strong {
    font-size: 22px;
    line-height: 1;
}

.daily-streak-rail {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(245, 247, 252, 0.72);
    box-shadow: 0 12px 20px rgba(5, 10, 24, 0.12);
}

.daily-streak-medal {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffe98c 0%, #f4c640 100%);
    color: #5b3f10;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.34);
}

.daily-streak-track {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 8px;
    position: relative;
}

.daily-streak-track::before {
    content: '';
    position: absolute;
    left: -10px;
    right: 12.5%;
    top: 13px;
    height: 3px;
    border-radius: 999px;
    background: rgba(164, 166, 173, 0.5);
    z-index: 0;
}

.daily-streak-node {
    position: relative;
    z-index: 1;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8e6d44;
    font-size: 14px;
    font-weight: 800;
}

.daily-streak-node img {
    width: 28px;
    height: 28px;
}

.daily-streak-node > span {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 3px;
    white-space: nowrap;
}

.daily-footer-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 20px;
    background: rgba(245, 247, 252, 0.88);
    box-shadow: 0 12px 20px rgba(5, 10, 24, 0.12);
}

.daily-footer-badge {
    width: 76px;
    min-height: 82px;
    border-radius: 12px;
    overflow: visible;
    background: linear-gradient(180deg, #fafafa 0%, #ebeef8 100%);
    border: 2px solid rgba(112, 112, 148, 0.28);
    color: #1d2341;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}
.daily-footer-badge .daily-footer-month {
    border-radius: 10px 10px 0 0;
}

.daily-footer-month {
    width: 100%;
    padding: 5px 0 4px;
    background: linear-gradient(180deg, #7978ec 0%, #5851c8 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
}

.daily-footer-day {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    padding-top: 6px;
}

.daily-footer-check {
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2dbf31;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.9);
    z-index: 2;
}

.daily-play-btn {
    min-height: 62px;
    border-radius: 31px;
    font-size: clamp(18px, 4.5vw, 28px);
    box-shadow: 0 10px 18px rgba(46, 130, 29, 0.24), inset 0 2px 0 rgba(255, 255, 255, 0.24);
}

.daily-play-btn.completed {
    background: linear-gradient(180deg, #8bcf7a 0%, #5eaa4f 100%);
}

.daily-play-btn.late-entry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.daily-play-btn.late-entry .late-entry-icon {
    display: inline-flex;
    align-items: center;
}

.daily-play-btn.late-entry .late-entry-icon svg,
.daily-play-btn.late-entry .late-entry-icon img {
    width: 28px;
    height: 28px;
}

.daily-play-btn.late-entry .late-entry-amount {
    font-size: clamp(22px, 5vw, 30px);
    font-weight: 800;
}

.daily-banner.grayscale {
    filter: grayscale(1) brightness(0.96);
}

.daily-screen.playing {
    padding: 0;
    background: transparent;
}

.daily-reward-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.daily-reward-icon svg,
.daily-reward-icon img {
    display: block;
}

.daily-cal-cell.selected:not(.today) {
    background: rgba(255, 255, 255, 0.94);
    border: 2px solid #7b5cff;
}

.daily-streak-track {
    overflow: visible;
}

.daily-streak-fill {
    position: absolute;
    left: -10px;
    top: 13px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #6dce3e 0%, #49a825 100%);
    z-index: 1;
    transition: width 360ms ease-out;
}

.daily-streak-node.claimed {
    opacity: 0.55;
}

.daily-streak-node.claimed .daily-node-check {
    color: #2dbf31;
    font-weight: 800;
}

.daily-streak-node.ready-to-claim {
    cursor: pointer;
    animation: daily-tier-pulse 1.2s infinite ease-in-out;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8));
}

@keyframes daily-tier-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.12); }
}

.daily-star-count {
    font-size: 18px;
    font-weight: 800;
}

.booster-badge.booster-inventory {
    background: linear-gradient(180deg, #ffe98c 0%, #f4c640 100%);
    color: #5b3f10;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 800;
}

.booster-badge.booster-inventory .inv-value {
    font-size: 13px;
}

.fortune-overlay {
    background: radial-gradient(circle at 50% 10%, rgba(14, 24, 55, 0.16) 0%, rgba(5, 8, 20, 0.98) 58%);
    padding: calc(var(--total-top, 0px) + 16px) 24px calc(var(--safe-bottom, 0px) + 34px);
    justify-content: flex-start;
}

.fortune-topbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.fortune-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fortune-content {
    flex: 1;
    width: 100%;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 58px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.fortune-wheel-wrap {
    width: min(92vw, 720px);
    margin: 0;
}

.fortune-wheel-svg {
    filter: drop-shadow(0 20px 22px rgba(0, 0, 0, 0.28));
}

.fortune-pointer {
    top: -14px;
    width: 48px;
    height: 48px;
}

.fortune-spin-deck {
    width: min(74vw, 520px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.fortune-dots {
    display: inline-flex;
    gap: 14px;
    padding: 12px 32px 16px;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(180deg, #7f82f1 0%, #6164d9 100%);
    box-shadow: 0 12px 18px rgba(24, 28, 58, 0.3);
}

.fortune-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.fortune-spin-btn {
    margin-top: -4px;
    min-height: 64px;
    border: 3px solid #6368db;
    border-radius: 999px;
    box-shadow: 0 14px 22px rgba(24, 28, 58, 0.28), inset 0 3px 0 rgba(255, 255, 255, 0.22);
    font-size: clamp(20px, 5.2vw, 28px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 30px;
}

.fortune-spin-btn img {
    flex-shrink: 0;
}

.fortune-spin-btn.disabled {
    background: linear-gradient(180deg, #999bd6 0%, #7f81bf 100%);
    border-color: #7d7fc4;
    opacity: 1;
}

.fortune-close {
    position: static;
    top: auto;
    right: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.72);
    background: rgba(8, 12, 24, 0.45);
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-screen {
    background:
        linear-gradient(180deg, rgba(5, 9, 22, 0.58) 0%, rgba(5, 9, 22, 0.82) 100%),
        url('../img/bg/mainmenu_winter.png') center center / cover no-repeat;
}

.profile-scroll {
    position: relative;
    z-index: 1;
    padding-bottom: calc(var(--safe-bottom, 0px) + 40px);
}

.profile-close-btn {
    top: calc(var(--total-top, 0px) + 16px);
    right: 18px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.74);
    background: rgba(8, 12, 24, 0.3);
}

.profile-avatar-section {
    padding: calc(var(--total-top, 0px) + 10px) 16px 10px;
}

.profile-avatar {
    width: 84px;
    height: 84px;
    padding: 16px;
    border: 2px solid rgba(255, 255, 255, 0.94);
    background: rgba(8, 12, 24, 0.26);
}

.profile-username {
    font-size: clamp(18px, 4.2vw, 22px);
}

.profile-user-id {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.62);
}

.profile-tabs {
    gap: 12px;
    margin: 0 20px;
    padding-top: 10px;
}

.profile-tab {
    flex: 1;
    padding: 18px 22px;
    border-radius: 28px;
    font-size: 19px;
    background: rgba(8, 12, 24, 0.54);
}

.profile-tab.active {
    background: linear-gradient(180deg, #fff6d0 0%, #ffefb8 100%);
    color: #4c331a;
    border-color: #e8c547;
}

.profile-content {
    padding: 18px;
}

.explore-card {
    border-radius: 26px;
    margin-bottom: 16px;
}

.explore-current,
.explore-completed,
.explore-compact {
    border-width: 3px;
    padding-left: 18px;
    padding-right: 18px;
}

.explore-name,
.explore-compact-name {
    font-size: clamp(28px, 6vw, 46px);
}

.explore-range,
.explore-compact-range {
    font-size: 18px;
}

.explore-postcards {
    gap: 12px;
}

.explore-postcard {
    width: 100px;
    height: 170px;
    border-radius: 18px;
}

.explore-set-bar {
    gap: 14px;
    padding: 16px 2px 10px;
}

.explore-set-name {
    font-size: 20px;
}

.explore-set-progress {
    font-size: 18px;
    min-width: 88px;
    text-align: center;
}

.explore-play-btn {
    width: 72px;
    height: 72px;
    background: linear-gradient(180deg, #bba8ff 0%, #9786ea 100%);
    box-shadow: 0 16px 24px rgba(79, 63, 148, 0.26);
}

body[data-parity-preset="profile_explore_ru"] .profile-content {
    padding-top: 12px;
}

body[data-parity-preset="profile_explore_ru"] .explore-card {
    margin-bottom: 12px;
}

body[data-parity-preset="profile_explore_ru"] .explore-postcard {
    width: 84px;
    height: 142px;
}

body[data-parity-preset="profile_explore_ru"] .explore-set-bar {
    padding-top: 12px;
}

body[data-parity-preset="profile_explore_ru"] .explore-set-name {
    font-size: 11px;
    letter-spacing: 0;
    white-space: normal;
    line-height: 1.05;
    max-width: 140px;
}

@media (max-width: 600px) {
    .menu-home-content {
        padding: 0 20px calc(var(--safe-bottom, 0px) + 114px);
        gap: 20px;
    }

    .menu-home-voyage {
        width: 184px;
        height: 184px;
    }

    .menu-home-voyage .menu-voyage-num {
        font-size: 60px;
    }

    .daily-reward-bubble {
        gap: 12px;
        padding: 6px 12px;
    }

    .daily-reward-item strong {
        font-size: 18px;
    }
}