.games-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, .18), transparent 42%),
        radial-gradient(circle at bottom left, rgba(251, 191, 36, .12), transparent 36%),
        #0f172a;
    color: #e2e8f0;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.games-page {
    max-width: 520px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 24px 16px 40px;
}

.games-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fbbf24;
    text-decoration: none;
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: 24px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(251, 191, 36, .45);
    background: rgba(255, 255, 255, .06);
}

.games-back:hover {
    background: #fbbf24;
    color: #0f172a;
}

.games-hero {
    text-align: center;
    margin-bottom: 28px;
}

.games-hero h1 {
    margin: 0 0 8px;
    font-size: 1.75rem;
    font-weight: 900;
    color: #fbbf24;
}

.games-hero p {
    margin: 0;
    color: #94a3b8;
    font-size: .9375rem;
}

.games-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.games-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(30, 41, 59, .92);
    border: 1px solid rgba(255, 255, 255, .08);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
    transition: transform .15s, border-color .2s, box-shadow .2s;
}

.games-card:hover {
    transform: translateY(-2px);
    border-color: rgba(251, 191, 36, .35);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
    color: inherit;
}

.games-card__icon {
    font-size: 2rem;
    line-height: 1;
}

.games-card__body h2 {
    margin: 0 0 4px;
    font-size: 1.0625rem;
    font-weight: 800;
}

.games-card__body p {
    margin: 0;
    font-size: .8125rem;
    color: #94a3b8;
}

.games-card__arrow {
    color: #fbbf24;
    font-size: 1.25rem;
    font-weight: 700;
}

.games-card--soon {
    opacity: .55;
    pointer-events: none;
}

/* Bottle game */
.bottle-body {
    overflow: hidden;
    user-select: none;
}

.bottle-app {
    position: relative;
    width: 100%;
    height: 100vh;
    max-width: 100%;
}

.bottle-setup {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 20;
    transition: opacity .5s ease;
}

.bottle-setup__card {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    border-radius: 24px;
    background: rgba(30, 41, 59, .92);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
    text-align: center;
}

.bottle-setup__card h1 {
    margin: 0 0 1.5rem;
    color: #fbbf24;
    font-size: 2rem;
    font-weight: 900;
}

.bottle-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.bottle-input-group input {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: 2px solid #475569;
    background: #1e293b;
    color: #e2e8f0;
    font-size: 1rem;
    font-family: inherit;
    text-align: center;
    outline: none;
}

.bottle-input-group input:focus {
    border-color: #fbbf24;
}

.bottle-btn {
    background: #334155;
    color: #e2e8f0;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 700;
    transition: all .2s ease;
}

.bottle-btn:hover {
    background: #475569;
    color: #fbbf24;
}

.bottle-btn--start {
    width: 100%;
    margin-top: 15px;
    background: #fbbf24;
    color: #0f172a;
}

.bottle-btn--start:hover {
    background: #f59e0b;
    color: #000;
}

.bottle-players {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    text-align: right;
}

.bottle-players li {
    background: rgba(255, 255, 255, .05);
    margin-bottom: 8px;
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .05);
}

.bottle-remove {
    background: transparent;
    border: none;
    color: #f87171;
    cursor: pointer;
    font-size: 1.4rem;
    padding: 0 5px;
}

.bottle-error {
    color: #ef4444;
    font-size: .9rem;
    margin-top: 10px;
    min-height: 20px;
    opacity: 0;
    transition: opacity .3s;
    font-weight: 700;
}

.bottle-board {
    display: none;
    position: relative;
    width: 100%;
    height: 100vh;
    opacity: 0;
    transition: opacity 1s ease;
    overflow: hidden;
}

.bottle-zones {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200vmax;
    height: 200vmax;
    border-radius: 50%;
    z-index: 1;
    transition: transform 1s ease;
    opacity: .6;
    filter: saturate(1.2);
}

.bottle-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background: radial-gradient(circle, rgba(15, 23, 42, .95) 0%, rgba(15, 23, 42, .8) 40%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
}

.bottle-spin-target {
    width: 64px;
    height: auto;
    transition: transform 4s cubic-bezier(.2, .8, .2, 1);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5));
    cursor: pointer;
    transform-origin: center center;
}

.bottle-player {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 80px;
    padding: 8px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    font-weight: 900;
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .4);
    z-index: 5;
    transition: all .5s ease;
}

.bottle-player.is-winner {
    background: #fbbf24;
    color: #000;
    border: 2px solid #fff;
    transform: translate(-50%, -50%) scale(1.4) !important;
    box-shadow: 0 0 20px #fbbf24, 0 0 40px rgba(251, 191, 36, .6);
    z-index: 15;
}

.bottle-player.is-dimmed {
    opacity: .3;
    transform: translate(-50%, -50%) scale(.9) !important;
    filter: grayscale(.8);
}

.bottle-spin-btn {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 50px;
    font-size: 1.3rem;
    z-index: 20;
    background: #fbbf24;
    color: #0f172a;
}

.bottle-spin-btn:disabled {
    background: #475569;
    color: #94a3b8;
}

.bottle-reset-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    right: auto;
    z-index: 30;
    background: rgba(30, 41, 59, .8);
    border: 1px solid rgba(255, 255, 255, .1);
    font-size: .8125rem;
    padding: 10px 14px;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .bottle-spin-target { width: 56px; }
    .bottle-player { font-size: .85rem; padding: 5px 10px; }
    .bottle-spin-btn { bottom: 30px; font-size: 1.1rem; }
    .bottle-reset-btn { top: 16px; left: 12px; font-size: .75rem; padding: 8px 10px; }
}
