.header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 40px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--color-text);
    text-shadow: 0 0 10px rgba(255, 140, 0, .5);
    transition: all .3s ease;
    flex-shrink: 0
}

.header__logo:hover {
    transform: scale(1.05)
}

.logo-icon {
    font-size: 1.4rem
}

.logo-item {
    max-width: 150px
}

.header__middle-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0
}

.header__jackpot-container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px
}

.jackpot-box {
    border: 2px solid var(--color-accent);
    border-radius: 8px;
    padding: 6px 16px;
    box-shadow: 0 0 20px rgba(255, 140, 0, .4);
    text-align: center;
    position: relative;
    overflow: hidden
}

#jackpot-counter {
    display: inline-block;
    min-width: 10ch;
    font-variant-numeric: tabular-nums
}

.jackpot-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--color-text-secondary);
    user-select: none
}

.jackpot-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-accent);
    user-select: none;
    font-variant-numeric: tabular-nums
}

.header__ticker {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #3e4464;
    border-radius: 6px;
    padding: 5px 10px;
    overflow: hidden;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1
}

.ticker-label {
    font-size: .8rem;
    font-weight: 700;
    color: var(--color-accent);
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    padding-right: 10px;
    background: #3e4464
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 15s linear infinite;
    will-change: transform;
    padding-left: 100%
}

@keyframes ticker {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(-100%)
    }
}

.win-item {
    display: inline-block;
    font-size: .8rem;
    color: var(--color-text)
}

.win-amount {
    color: var(--color-accent);
    font-weight: 700
}

.ticker-separator {
    display: inline-block;
    margin: 0 10px;
    color: var(--color-accent);
    font-size: .9rem
}

@media (max-width:768px) {
    .header__ticker {
        max-width: 250px;
        padding: 4px 8px;
        background: #3e4464;
        border-radius: 6px
    }

    .ticker-label {
        font-size: .75rem;
        padding-right: 6px
    }

    .ticker-content {
        animation-duration: 30s
    }

    .win-item {
        font-size: .75rem
    }

    .ticker-separator {
        margin: 0 6px;
        font-size: .85rem
    }
}

@media (max-width:480px) {
    .header__ticker {
        max-width: 180px;
        padding: 3px 6px
    }

    .ticker-label {
        font-size: .7rem;
        padding-right: 4px
    }

    .ticker-content {
        animation-duration: 40s
    }

    .win-item {
        font-size: .7rem
    }

    .ticker-separator {
        margin: 0 4px;
        font-size: .8rem
    }
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: .9rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all .3s ease;
    white-space: nowrap
}

.button--primary {
    background: linear-gradient(to bottom, #ffd238, #deb629);
    color: var(--color-text);
    box-shadow: 0 4px 8px rgba(255, 140, 0, .3)
}

.button--primary:hover {
    background: linear-gradient(to bottom, #ffd238, #deb629);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 140, 0, .4)
}

.button--primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(255, 140, 0, .3)
}

.button--secondary {
    background-color: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    position: relative;
    overflow: hidden;
    z-index: 1
}

.button--secondary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    transition: all .3s ease;
    z-index: -1
}

.button--secondary:hover {
    color: var(--color-text)
}

.button--secondary:hover::before {
    left: 0
}

.language-switcher {
    position: relative;
    flex-shrink: 0
}

.language-toggle {
    background: 0 0;
    border: 2px solid #eeaf02;
    color: #eeaf02;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font: 600 .9rem sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 80px;
    justify-content: center;
    transition: background .2s ease, transform .2s ease
}

.language-toggle:hover {
    background: rgba(238, 175, 2, .1);
    transform: translateY(-1px)
}

.language-toggle:focus {
    outline: 0;
    box-shadow: 0 0 5px rgba(238, 175, 2, .2)
}

.language-arrow {
    font-size: .8rem;
    transition: transform .2s ease
}

.language-switcher.active .language-arrow {
    transform: rotate(180deg)
}

.language-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a3e;
    border: 2px solid #eeaf02;
    border-radius: 6px;
    padding: 5px 0;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease;
    z-index: 1000
}

.language-switcher.active .language-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

.language-option {
    display: block;
    padding: 8px 15px;
    color: #fff;
    font: 500 .9rem sans-serif;
    text-align: left;
    cursor: pointer;
    background: 0 0;
    border: none;
    transition: background .2s ease, color .2s ease
}

.language-option:hover {
    background: rgba(238, 175, 2, .1);
    color: #eeaf02
}

.language-option.active {
    background: rgba(238, 175, 2, .2);
    color: #eeaf02;
    font-weight: 600
}

@media (max-width:1024px) {
    .header__middle-section {
        gap: 10px
    }

    .button {
        padding: 8px 12px
    }
}

@media (max-width:768px) {
    .header {
        padding: 15px 20px
    }

    .header__middle-section {
        justify-content: center
    }
}

@media (max-width:576px) {
    .header {
        padding: 10px 15px;
        height: auto;
        min-height: 60px
    }

    .header__container {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 10px
    }

    .header__logo {
        order: 1;
        flex: 0 0 auto;
        font-size: 1.2rem
    }

    .language-switcher {
        flex: 0 0 auto
    }

    .header__jackpot-container,
    .header__middle-section,
    .header__ticker-container,
    .jackpot-box {
        display: none !important
    }

    .header__nav {
        order: 2;
        flex: 1 1 auto;
        justify-content: center;
        gap: 8px;
        max-width: 100%;
        width: 100%;
    }

    .button {
        flex: 1;
        padding: 6px 8px;
        font-size: .8rem
    }

    .language-toggle {
        padding: 6px 8px;
        font-size: .8rem;
        min-width: 60px
    }

    .language-dropdown-menu {
        min-width: 100px;
        right: 0
    }

    .language-option {
        padding: 6px 10px;
        font-size: .8rem
    }
}

@media (max-width:380px) {
    .header {
        padding: 8px 10px;
        min-height: 50px
    }

    .header__container {
        gap: 5px
    }

    .header__logo {
        font-size: 1rem
    }

    .logo-icon {
        font-size: 1rem
    }

    .button {
        padding: 5px 6px
    }

    .language-toggle {
        padding: 5px 6px;
        font-size: .75rem;
        min-width: 50px
    }

    .language-dropdown-menu {
        min-width: 80px
    }

    .language-option {
        padding: 5px 8px;
        font-size: .75rem
    }
}

@media (max-width:320px) {
    .header {
        padding: 5px 8px;
        min-height: 45px
    }

    .header__container {
        gap: 3px
    }

    .header__logo {
        font-size: .9rem
    }

    .logo-icon {
        font-size: .9rem
    }

    .header__nav {
        max-width: 120px;
        gap: 4px
    }

    .button {
        padding: 4px 5px;
        border-radius: 4px
    }

    .language-toggle {
        padding: 4px 5px;
        font-size: .7rem;
        min-width: 45px
    }

    .language-dropdown-menu {
        min-width: 70px;
        right: -5px
    }

    .language-option {
        padding: 4px 6px;
        font-size: .7rem
    }
}

.main-content,
main {
    margin-top: 80px
}

@media (max-width:768px) {

    .main-content,
    main {
        margin-top: 70px
    }
}

@media (max-width:576px) {

    .main-content,
    main {
        margin-top: 60px
    }
}

@media (max-width:380px) {

    .main-content,
    main {
        margin-top: 50px
    }
}

@media (max-width:320px) {

    .main-content,
    main {
        margin-top: 45px
    }
}