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

:root {
    --bg: #0f1923;
    --bg2: #162536;
    --bg3: #1d2f45;
    --felt: #1b5e3b;
    --felt-light: #22774a;
    --felt-dark: #144a2d;
    --tile-bg: #faf6eb;
    --tile-border: #b8a07a;
    --tile-shadow: rgba(0, 0, 0, 0.5);
    --pip: #1a1a1a;
    --text: #ecf2f8;
    --text-dim: #9badbf;
    --accent: #f0c040;
    --accent2: #e5a82b;
    --accent-glow: rgba(240, 192, 64, 0.28);
    --success: #2ecc71;
    --glass: rgba(255, 255, 255, 0.06);
    --glass-strong: rgba(255, 255, 255, 0.11);
    --glass-border: rgba(255, 255, 255, 0.09);
    --tile-w: 66px;
    --tile-h: 34px;
    --pip-size: 6px;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: "Inter", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
}

input, button { font: inherit; }

.screen {
    display: none;
    width: 100%;
    height: 100%;
}

.screen.active { display: flex; }

.screen.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

#menu-screen {
    z-index: 80000;
}

#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 34px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 15%, rgba(240, 192, 64, 0.12), transparent 22%),
        radial-gradient(circle at 85% 20%, rgba(55, 143, 92, 0.18), transparent 24%),
        linear-gradient(160deg, #0b1420 0%, #122335 50%, #0f1923 100%);
    transition: opacity 240ms ease, transform 240ms ease;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    touch-action: none;
    contain: layout paint style;
}

#splash-screen.is-hidden {
    opacity: 0;
    transform: scale(0.99);
    pointer-events: none;
}

#splash-screen .splash-felt-glow {
    position: absolute;
    top: 28%;
    left: 50%;
    width: 340px;
    height: 340px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(34, 119, 74, 0.45), rgba(20, 74, 45, 0) 65%);
    filter: blur(6px);
    animation: splash-breathe 4s ease-in-out infinite;
}

@keyframes splash-breathe {
    0%, 100% {
        opacity: 0.55;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.08);
    }
}

#splash-screen .splash-board {
    position: relative;
    width: 240px;
    height: 240px;
    flex: 0 0 auto;
    margin-top: -6vh;
}

#splash-screen .splash-tile {
    position: absolute;
    background: var(--tile-bg);
    border: 1.5px solid var(--tile-border);
    border-radius: 5px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
    display: flex;
    overflow: hidden;
    opacity: 0;
}

#splash-screen .splash-tile.h {
    flex-direction: row;
}

#splash-screen .splash-tile.v {
    flex-direction: column;
}

#splash-screen .splash-half {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    padding: 5px;
    place-items: center;
}

#splash-screen .splash-divider {
    background: var(--tile-border);
    opacity: 0.95;
}

#splash-screen .splash-tile.h > .splash-divider {
    width: 2px;
}

#splash-screen .splash-tile.v > .splash-divider {
    height: 2px;
}

#splash-screen .splash-pip {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pip);
    box-shadow: 0 0.6px 1.4px rgba(0, 0, 0, 0.16);
}

#splash-screen .splash-pip.off {
    visibility: hidden;
}

#splash-screen .splash-spinner {
    width: 84px;
    height: 42px;
    top: 99px;
    left: 78px;
    z-index: 5;
    animation: splash-drop-in 0.7s 0.1s cubic-bezier(.2,.9,.25,1) forwards, splash-glow-pulse 2.4s 1.6s ease-in-out infinite;
}

#splash-screen .splash-arm-top {
    width: 42px;
    height: 84px;
    top: 13px;
    left: 99px;
    animation: splash-slide-down 0.55s 0.85s ease-out forwards;
}

#splash-screen .splash-arm-bottom {
    width: 42px;
    height: 84px;
    top: 143px;
    left: 99px;
    animation: splash-slide-up 0.55s 1.05s ease-out forwards;
}

#splash-screen .splash-arm-left {
    width: 84px;
    height: 42px;
    top: 99px;
    left: -6px;
    animation: splash-slide-right 0.55s 1.25s ease-out forwards;
}

#splash-screen .splash-arm-right {
    width: 84px;
    height: 42px;
    top: 99px;
    left: 162px;
    animation: splash-slide-left 0.55s 1.45s ease-out forwards;
}

@keyframes splash-drop-in {
    0% {
        opacity: 0;
        transform: translateY(-120px) rotate(-20deg) scale(0.7);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0) scale(1);
    }
}

@keyframes splash-slide-down {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes splash-slide-up {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes splash-slide-right {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes splash-slide-left {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes splash-glow-pulse {
    0%, 100% {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), 0 0 0 rgba(240, 192, 64, 0);
    }
    50% {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), 0 0 26px var(--accent-glow);
    }
}

#splash-screen .splash-score {
    position: absolute;
    top: 78px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 900;
    font-size: 30px;
    color: var(--accent);
    opacity: 0;
    text-shadow: 0 2px 12px var(--accent-glow);
    animation: splash-score-pop 1.7s 1.7s ease-out forwards;
}

@keyframes splash-score-pop {
    0% { opacity: 0; transform: translate(-50%, 10px) scale(0.6); }
    22% { opacity: 1; transform: translate(-50%, -6px) scale(1.12); }
    70% { opacity: 1; transform: translate(-50%, -16px) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -38px) scale(0.95); }
}

#splash-screen .splash-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    opacity: 0;
    animation: splash-fade-up 0.8s 1.95s ease forwards;
}

#splash-screen .splash-title {
    font-size: clamp(2.8rem, 11vw, 4rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: 0.14em;
    padding-left: 0.14em;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, #fdf2d0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 4px 18px var(--accent-glow));
}

#splash-screen .splash-title-dot {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

#splash-screen .splash-loader {
    position: absolute;
    bottom: calc(52px + env(safe-area-inset-bottom));
    width: 180px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    opacity: 0;
    animation: splash-fade-up 0.6s 2.15s ease forwards;
}

#splash-screen .splash-loader::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    animation: splash-fill 2.4s 2.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes splash-fill {
    to { width: 100%; }
}

#splash-screen .splash-copyright {
    position: absolute;
    bottom: calc(24px + env(safe-area-inset-bottom));
    font-size: 0.56rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    opacity: 0.6;
}

@keyframes splash-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

#splash-screen.is-hidden {
    opacity: 0;
    transform: scale(0.99);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    #splash-screen,
    #splash-screen *,
    #splash-screen *::before,
    #splash-screen *::after {
        animation-duration: 1ms !important;
        animation-delay: 0ms !important;
        transition-duration: 1ms !important;
    }

    #start-screen .start-hero-stage {
        transition: none !important;
        animation: none !important;
    }

    #start-screen .start-hero-face {
        transition: none !important;
        opacity: 1;
    }

    #start-screen .start-hero-face-back {
        display: none;
    }

    #start-screen.mode-classic101 .start-hero-face-front,
    html[data-domino-start-mode="classic101"] #start-screen .start-hero-face-front {
        display: none;
    }

    #start-screen.mode-classic101 .start-hero-face-back,
    html[data-domino-start-mode="classic101"] #start-screen .start-hero-face-back {
        display: flex;
    }

    .online-submenu,
    .online-submenu .btn-large,
    .online-group-btn::after {
        transition: none !important;
    }
}

#start-screen {
    position: relative;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: auto;
    background: var(--mode-page-bg);
    transition: background 0.35s ease 0.3s;
    --mode-accent: var(--accent);
    --mode-accent2: var(--accent2);
    --mode-accent-glow: var(--accent-glow);
    --mode-page-bg: radial-gradient(circle at 15% 15%, rgba(240, 192, 64, 0.12), transparent 22%), radial-gradient(circle at 85% 20%, rgba(55, 143, 92, 0.18), transparent 24%), linear-gradient(160deg, #0b1420 0%, #122335 50%, #0f1923 100%);
    --mode-hero-bg: radial-gradient(circle at top right, rgba(240, 192, 64, 0.14), transparent 28%), linear-gradient(180deg, rgba(10, 18, 29, 0.96), rgba(13, 23, 36, 0.92));
    --mode-title-gradient: linear-gradient(135deg, #fff 0%, var(--accent) 50%, #fdf2d0 100%);
    --mode-note-bg: rgba(255, 255, 255, 0.06);
    --mode-note-border: rgba(255, 255, 255, 0.09);
    --mode-note-text: var(--text-dim);
}

#start-screen.mode-classic101,
html[data-domino-start-mode="classic101"] #start-screen {
    --mode-accent: #8fd46d;
    --mode-accent2: #d9b24a;
    --mode-accent-glow: rgba(143, 212, 109, 0.26);
    --mode-page-bg: radial-gradient(circle at 15% 15%, rgba(143, 212, 109, 0.14), transparent 22%), radial-gradient(circle at 85% 18%, rgba(217, 178, 74, 0.12), transparent 24%), linear-gradient(160deg, #08130d 0%, #10271a 46%, #0b1710 100%);
    --mode-hero-bg: radial-gradient(circle at top right, rgba(143, 212, 109, 0.16), transparent 28%), linear-gradient(180deg, rgba(10, 25, 16, 0.98), rgba(12, 20, 14, 0.94));
    --mode-title-gradient: linear-gradient(135deg, #f5ffe6 0%, #98df70 48%, #e7c45b 100%);
    --mode-note-bg: rgba(143, 212, 109, 0.08);
    --mode-note-border: rgba(143, 212, 109, 0.18);
    --mode-note-text: #dff2cb;
}

/* Start Top Bar Layout & Buttons */
.start-topbar {
    position: absolute;
    top: 14px;
    left: 50%;
    width: min(100% - 28px, 660px);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 12;
    box-sizing: border-box;
}

#start-screen.auth-required .start-topbar {
    justify-content: flex-end;
}

#start-screen.auth-required .start-topbar .start-profile-group,
#start-screen.auth-required .start-topbar .start-shops-group {
    display: none !important;
}

/* Profiles, Friends, Social group on the left */
.start-profile-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.start-profile-group .start-profile-btn,
.start-profile-group .start-friends-btn,
.start-profile-group .start-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text);
    padding: 0;
    margin: 0;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    font-weight: 800;
}

.start-profile-group .start-profile-btn:hover,
.start-profile-group .start-friends-btn:hover,
.start-profile-group .start-social-btn:hover {
    background: var(--glass-strong);
    border-color: rgba(255, 255, 255, 0.16);
}

.start-profile-group .start-profile-btn {
    width: 38px;
    flex: 0 0 38px;
}

.start-profile-group .start-friends-btn {
    padding: 0 12px;
    gap: 6px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.start-profile-group .start-social-btn {
    padding: 0 12px;
    gap: 6px;
    white-space: nowrap;
    flex: 0 0 auto;
    position: relative;
}

/* Icon adjustments */
.start-profile-group .auth-icon,
.start-profile-group .start-social-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    color: currentColor;
    border-radius: 0;
}

.start-profile-group .auth-icon svg,
.start-profile-group .start-social-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Badge for messages */
.start-social-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent);
    color: #111;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 18px;
    text-align: center;
    flex-shrink: 0;
}

.start-social-badge.is-hidden {
    display: none;
}

.start-compact-label {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

/* Central Shop Buttons Group */
.start-shops-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
}

.start-shops-group .start-top-shop-btn {
    flex: 1 1 0%;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    white-space: nowrap;
    text-align: center;
    background: linear-gradient(135deg, #ffe283 0%, #f0c040 52%, #e6b12b 100%);
    color: #111;
    border: 1px solid rgba(120, 89, 0, 0.16);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 235, 170, 0.26) inset;
    font-weight: 800;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    cursor: pointer;
}

.start-shops-group .start-top-shop-btn:hover {
    background: linear-gradient(135deg, #ffeaa3 0%, #f2c94c 52%, #e6b12b 100%);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 235, 170, 0.34) inset;
    color: #111;
}

.start-shops-group .start-top-shop-btn .start-top-shop-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.start-shops-group .start-top-shop-btn .start-top-shop-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.start-shops-group .start-top-shop-btn .start-top-shop-label {
    font-size: 0.86rem;
    font-weight: 800;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Language Selection Wrap on the right */
.start-lang-select-wrap {
    position: relative;
    display: block;
    flex: 0 0 68px;
    min-width: 0;
}

.start-lang-select-wrap::after {
    content: "▾";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    pointer-events: none;
    font-size: 0.72rem;
    line-height: 1;
}

.start-lang-select {
    width: 100%;
    height: 38px;
    padding: 0 20px 0 8px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.start-lang-select:focus {
    border-color: rgba(240, 192, 64, 0.45);
    box-shadow: 0 0 0 2px rgba(240, 192, 64, 0.12);
}

.start-lang-select option {
    color: #111;
}

.start-shell {
    width: min(980px, 100%);
    display: grid;
    gap: 16px;
}

.start-hero {
    display: grid;
    gap: 10px;
    padding: 16px 24px 14px;
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    background: var(--mode-hero-bg);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

.start-hero-stage {
    position: relative;
    display: grid;
    width: 100%;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.34);
}

.start-hero-face {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-area: 1 / 1;
    width: 100%;
    padding: 4px 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

#start-screen .start-hero-face-front {
    opacity: 1;
}

#start-screen .start-hero-face-back {
    opacity: 0;
}

#start-screen.mode-classic101 .start-hero-face-front,
html[data-domino-start-mode="classic101"] #start-screen .start-hero-face-front {
    opacity: 0;
}

#start-screen.mode-classic101 .start-hero-face-back,
html[data-domino-start-mode="classic101"] #start-screen .start-hero-face-back {
    opacity: 1;
}

.brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
    text-align: center;
    width: 100%;
}

.brand-copy {
    min-width: 0;
    text-align: center;
    display: grid;
    gap: 4px;
    justify-items: center;
}

.logo-area { text-align: left; }

.eyebrow {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.domino-logo {
    display: inline-flex;
    justify-content: center;
    flex: 0 0 auto;
}

.domino-logo .tile {
    width: 72px;
    height: 38px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 5px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    transform: rotate(-8deg);
}

.domino-logo .tile .tile-half {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 4px;
}

.domino-logo .tile .pip {
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
}

.domino-logo .tile .tile-divider {
    width: 1px;
    background: rgba(0, 0, 0, 0.2);
}

.game-title {
    display: block;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.07em;
    background: var(--mode-title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: 0.1em;
    overflow: visible;
}

.start-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.mode-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    min-width: 176px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.start-mode-switch-row {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: -2px;
}

.start-mode-switch-row .mode-switcher {
    width: min(360px, 100%);
}

.mode-switcher-segment {
    border: none;
    background: transparent;
    color: var(--text-dim);
    padding: 9px 14px;
    min-height: 34px;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.mode-switcher-segment.is-active {
    color: #111;
    background: linear-gradient(135deg, var(--mode-accent), var(--mode-accent2));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.09), 0 0 22px var(--mode-accent-glow);
}

.start-mode-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--mode-note-bg);
    border: 1px solid var(--mode-note-border);
    color: var(--mode-note-text);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
}

.start-mode-note.is-hidden {
    display: none;
}

.hero-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 10px;
}

.start-lead {
    max-width: 54ch;
    color: var(--text-dim);
    line-height: 1.5;
    font-size: 0.98rem;
}

.start-actions {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

#start-screen.auth-required .start-actions {
    display: none;
}

#start-screen.auth-required #start-mode-hero,
#start-screen.auth-required .start-mode-switch-row,
#start-screen.auth-required #daily-bonus-card,
#start-screen.auth-checking #start-mode-hero,
#start-screen.auth-checking .start-mode-switch-row,
#start-screen.auth-checking #daily-bonus-card {
    display: none;
}

#start-screen:not(.auth-required) #auth-landing-card {
    display: none;
}

#start-screen.auth-checking #auth-landing-card,
#start-screen.auth-checking .start-actions {
    display: none !important;
}

#start-screen.auth-checking .auth-checking-loader {
    display: flex;
}

#start-screen.auth-checking .auth-checking-loader {
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

#start-screen .auth-checking-loader {
    display: none;
}

#start-screen .auth-checking-spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid rgba(240, 192, 64, 0.2);
    border-top-color: var(--accent);
    border-right-color: rgba(240, 192, 64, 0.45);
    animation: auth-checking-spin 0.85s linear infinite;
    box-shadow: 0 0 24px rgba(240, 192, 64, 0.16);
}

@keyframes auth-checking-spin {
    to { transform: rotate(360deg); }
}

.auth-landing-card {
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 18px;
    background:
        radial-gradient(circle at top left, rgba(240, 192, 64, 0.12), transparent 35%),
        linear-gradient(180deg, rgba(14, 24, 36, 0.96), rgba(12, 19, 30, 0.92));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    animation: authCardIn .35s ease-out;
}

@keyframes authCardIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-landing-head h2 {
    font-size: 1.45rem;
    line-height: 1.15;
    margin-bottom: 6px;
}

.auth-landing-actions {
    margin-top: 12px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-provider-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-icon {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    font-weight: 800;
    color: transparent;
    font-size: 0;
    line-height: 0;
    background: linear-gradient(135deg, #ffe39c, #f0c040);
    flex: 0 0 auto;
    overflow: hidden;
}

.auth-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.auth-icon-google {
    color: #fff;
    background: transparent;
}

.auth-icon-apple {
    color: #fff;
    background: transparent;
}

.auth-icon-email,
.auth-icon-pencil {
    color: var(--bg);
}

.auth-icon-pencil {
    width: 18px;
    height: 18px;
}

.landing-email-form {
    margin-top: 12px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.landing-email-form input {
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    padding: 0 12px;
}

#landing-auth-status {
    margin-top: 10px;
}

.start-actions .btn-large {
    margin-top: 0;
    min-height: 56px;
    border-radius: 16px;
}

.online-action-group {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.online-group-btn {
    position: relative;
    padding-right: 40px;
}

.online-group-btn::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.22s ease;
    opacity: 0.85;
}

.online-group-btn.is-expanded::after {
    transform: translateY(-35%) rotate(225deg);
}

.online-submenu {
    display: grid;
    gap: 8px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition:
        max-height 0.28s ease,
        opacity 0.2s ease,
        transform 0.28s ease;
}

.online-submenu.is-open {
    max-height: 148px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.online-submenu .btn-large {
    min-height: 50px;
    transform: translateY(-8px);
    transition: transform 0.24s ease, background 0.2s ease, border-color 0.2s ease;
}

.online-submenu.is-open .btn-large {
    transform: translateY(0);
}

.start-shop-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    gap: 0;
    background: linear-gradient(135deg, rgba(88, 162, 255, 0.14), rgba(255, 255, 255, 0.05));
    border-color: rgba(88, 162, 255, 0.32);
    color: var(--text);
    box-shadow: 0 0 0 1px rgba(88, 162, 255, 0.12), 0 12px 28px rgba(88, 162, 255, 0.14);
}

.start-shop-btn:hover {
    background: linear-gradient(135deg, rgba(88, 162, 255, 0.2), rgba(255, 255, 255, 0.08));
    box-shadow: 0 0 0 1px rgba(88, 162, 255, 0.16), 0 16px 32px rgba(88, 162, 255, 0.18);
}

.start-shop-btn::before {
    content: none;
}

.screen-copyright {
    font-size: 0.56rem;
    line-height: 1.2;
    color: var(--text-dim);
    opacity: 0.72;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
    user-select: none;
}

.start-screen-copyright {
    position: absolute;
    right: 18px;
    bottom: 14px;
    z-index: 8;
    text-align: right;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(4, 8, 13, 0.72);
    backdrop-filter: blur(10px);
    z-index: 90000;
}

#account-modal.screen,
#coin-shop-modal.screen,
#cosmetics-shop-modal.screen,
#leaderboard-modal.screen,
#open-rooms-modal.screen {
    position: relative;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    z-index: 30;
    padding: 0;
    display: none;
    flex-direction: column;
    background:
        radial-gradient(circle at top left, rgba(240, 192, 64, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(71, 154, 255, 0.10), transparent 24%),
        linear-gradient(160deg, rgba(9, 16, 26, 0.98), rgba(13, 23, 36, 0.96));
    overflow: hidden;
    box-sizing: border-box;
}

#account-modal.screen.active,
#coin-shop-modal.screen.active,
#cosmetics-shop-modal.screen.active,
#leaderboard-modal.screen.active,
#open-rooms-modal.screen.active {
    display: flex;
}

#leaderboard-modal.screen {
    padding: 0 16px 16px;
}

#open-rooms-modal.screen {
    padding: 0;
}

#account-name-modal {
    z-index: 40;
}

#account-avatar-modal {
    z-index: 50;
}

.modal-backdrop.active {
    display: flex;
}

#player-profile-modal,
#friends-modal,
#social-center-modal {
    z-index: 90000;
}

#player-profile-modal.active,
#friends-modal.active,
#social-center-modal.active {
    z-index: 90000;
}

#player-profile-modal .modal-card,
#friends-modal .modal-card,
#social-center-modal .modal-card {
    position: relative;
    z-index: 1;
}

.modal-card {
    width: min(720px, 100%);
    max-height: min(88vh, 920px);
    overflow: auto;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    background: linear-gradient(180deg, rgba(12, 20, 31, 0.98), rgba(13, 23, 36, 0.95));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.modal-card-wide {
    width: min(760px, 100%);
}

#account-modal .modal-card-wide,
#coin-shop-modal .modal-card-wide,
#cosmetics-shop-modal .modal-card-wide,
#leaderboard-modal .modal-card-wide,
#open-rooms-modal .modal-card-wide {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    max-height: 100%;
    margin: 0 auto;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    padding: 0 0 24px 0;
    overflow-y: auto;
}

#account-modal .modal-card,
#coin-shop-modal .modal-card,
#cosmetics-shop-modal .modal-card,
#leaderboard-modal .modal-card,
#open-rooms-modal .modal-card {
    max-height: none;
}

#leaderboard-modal .leaderboard-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 4px;
    align-content: start;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: nowrap;
}

.account-modal-header > div {
    min-width: 0;
    flex: 1 1 auto;
}

.account-modal-header {
    gap: 12px;
}

.account-modal-title-wrap {
    min-width: 0;
    flex: 1 1 auto;
}

.account-modal-title-wrap h2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.modal-desc {
    margin-top: 6px;
    color: var(--text-dim);
    font-size: 0.88rem;
    line-height: 1.45;
}

.page-description {
    margin-bottom: 12px;
}

.open-rooms-page {
    max-width: 1120px !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    justify-content: flex-end;
}

.open-rooms-create-btn-header {
    height: 32px;
    padding: 0 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none;
    color: #1a1a1a;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(240, 192, 64, 0.2);
    line-height: 1;
}

.open-rooms-create-btn-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(240, 192, 64, 0.35);
    filter: brightness(1.05);
}

.open-rooms-create-btn-header:active {
    transform: translateY(0);
}

/* Sticky Scroll / Floating filters for Open Rooms */
#open-rooms-modal .modal-card-wide {
    overflow-y: hidden !important;
}

#open-rooms-modal #open-rooms-list-ui {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

#open-rooms-list {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-bottom: 24px;
}

.open-rooms-filter-panel {
    display: grid;
    gap: 12px;
    padding: 16px 0 16px;
    box-sizing: border-box;
}

.open-rooms-filter-search-row {
    width: 100%;
}

.open-rooms-filter-search-row input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
    color: var(--text);
}

.open-rooms-filter-search-row input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(240, 192, 64, 0.12);
}

.open-rooms-filter-modes-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.open-room-mode-toggle,
.open-room-stake-toggle {
    min-width: 0;
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center !important;
    opacity: 0.45;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
    outline: none;
}

.friend-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.open-room-card {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(96px, 2fr);
    gap: 10px;
    align-items: stretch;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.open-room-card-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.open-room-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.open-room-card-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
}

.open-room-owner {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
    flex-shrink: 1;
}

.open-room-code {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(240, 192, 64, 0.1);
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid rgba(240, 192, 64, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
}

.open-room-mode {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
}

.open-room-info-group {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.open-room-players,
.open-room-stake {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    font-size: 0.82rem;
    font-weight: 600;
}

.open-room-icon {
    display: inline-flex;
    width: 14px;
    height: 14px;
    color: var(--accent);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.open-room-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.open-room-join-btn {
    padding: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    font-size: 0.85rem !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: stretch !important;
    width: 100% !important;
    flex-shrink: 0;
}

.open-room-mode-toggle,
.open-room-stake-toggle {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.78);
    transition: border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.open-room-mode-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    font-weight: 800;
}

.open-room-toggle-icon {
    font-size: 0.78rem;
    line-height: 1;
    opacity: 0.85;
}

.open-room-toggle-label {
    font-size: 0.84rem;
    line-height: 1;
}

.open-rooms-filter-stakes-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.open-room-stake-toggle {
    padding: 10px 8px;
    font-size: 0.95rem;
    font-weight: 800;
}

.open-room-mode-toggle.is-active,
.open-room-stake-toggle.is-active {
    opacity: 1;
    color: #11161d;
    background: #f3c24a;
    background-image: none;
    border-color: rgba(240, 192, 64, 0.58);
    box-shadow: 0 10px 24px rgba(240, 192, 64, 0.2);
}

/* Touch WebView keeps :hover stuck on the last-tapped button; .btn/.btn-menu
   :hover then override the active chip. Force chip appearance regardless of hover. */
.open-rooms-filter-panel .open-room-mode-toggle,
.open-rooms-filter-panel .open-room-stake-toggle {
    transform: none !important;
}

.open-rooms-filter-panel .open-room-mode-toggle:not(.is-active),
.open-rooms-filter-panel .open-room-stake-toggle:not(.is-active) {
    background: rgba(255, 255, 255, 0.04) !important;
    background-image: none !important;
    color: rgba(255, 255, 255, 0.78) !important;
}

.open-rooms-filter-panel .open-room-mode-toggle.is-active,
.open-rooms-filter-panel .open-room-stake-toggle.is-active {
    background: #f3c24a !important;
    background-image: none !important;
    color: #11161d !important;
    border-color: rgba(240, 192, 64, 0.58) !important;
}

@media (hover: hover) and (pointer: fine) {
    .open-room-mode-toggle:hover,
    .open-room-stake-toggle:hover {
        transform: translateY(-1px);
        border-color: rgba(255, 255, 255, 0.2);
        color: var(--text);
    }

    .open-room-mode-toggle.is-active:hover,
    .open-room-stake-toggle.is-active:hover {
        color: #11161d;
        border-color: rgba(240, 192, 64, 0.58);
    }
}

.open-room-mode-toggle:focus,
.open-room-stake-toggle:focus {
    outline: none;
}

.modal-close-btn {
    width: auto;
    white-space: nowrap;
}

#account-modal-close,
#leaderboard-modal-close,
.account-close-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
}

.room-summary {
    color: var(--text-dim);
    font-size: 0.84rem;
    line-height: 1.45;
}

.room-player-chip.bot {
    border-color: rgba(79, 207, 151, 0.28);
    color: #bdf3d7;
}

.hero-badge {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 700;
    text-align: center;
}

.menu-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 0;
}

.panel-section {
    padding: 22px 24px 24px;
}

.panel-primary {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.section-kicker {
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.section-head h2 {
    font-size: 1.18rem;
    font-weight: 700;
}

.section-note {
    color: var(--text-dim);
    font-size: 0.8rem;
    line-height: 1.4;
    max-width: 190px;
    text-align: right;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.compact-grid {
    margin-bottom: 12px;
}

.rule-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.rule-title {
    width: 100%;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.rule-bottom {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 12px;
    align-items: center;
    width: 100%;
    min-height: 56px;
}

.field-span-2 {
    grid-column: span 2;
}

.settings-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.settings-group input[type="text"],
.settings-group input[type="email"],
.settings-group input[type="password"],
.settings-group input[type="number"],
.settings-group textarea,
#join-code-input {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
    color: var(--text);
    font-size: 0.94rem;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.rule-grid .settings-group input[type="number"] {
    max-width: 132px;
    justify-self: end;
}

.loss-input {
    width: 100%;
    max-width: none;
    justify-self: stretch;
}

.settings-group input:focus,
.settings-group textarea:focus,
#join-code-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(240, 192, 64, 0.12);
}

.feedback-category-select:focus,
.feedback-contact-input:focus,
.feedback-message-textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(240, 192, 64, 0.12);
}

.settings-group input[type="text"]::placeholder,
.settings-group input[type="email"]::placeholder,
.settings-group input[type="password"]::placeholder,
.settings-group textarea::placeholder,
#join-code-input::placeholder {
    color: #7f90a3;
    opacity: 1;
}

.feedback-message-textarea {
    min-height: 140px;
    resize: vertical;
}

.social-feedback-modal {
    z-index: 100000;
}

.social-feedback-modal .modal-card {
    width: min(640px, 100%);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 20, 31, 0.98);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.social-feedback-card {
    display: grid;
    gap: 14px;
    padding: 0;
}

.feedback-modal-header {
    margin-bottom: 0;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.feedback-modal-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
    flex: 1 1 auto;
}

.feedback-form {
    display: grid;
    gap: 14px;
}

.feedback-grid {
    display: grid;
    gap: 14px;
}

.feedback-field {
    display: grid;
    gap: 8px;
}

.feedback-field label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #d7e3f0;
    letter-spacing: 0.01em;
}

.feedback-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.feedback-actions .btn {
    min-height: 44px;
}

.feedback-status {
    min-height: 20px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #8f9cae;
    font-size: 0.88rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

.feedback-status:empty {
    display: none;
}

.feedback-category-select,
.feedback-contact-input {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 0.94rem;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: none;
}

.feedback-message-textarea {
    min-height: 132px;
}

.btn-group {
    display: flex;
    gap: 8px;
}

#online-entry-ui .btn,
#online-flow-ui .multiplayer-actions .btn,
#multi-join-ui .btn-group .btn {
    flex: 1 1 0;
    min-height: 44px;
}

#online-flow-ui.online-create-flow .multiplayer-actions .online-create-btn {
    flex: 7 1 0;
}

#online-flow-ui.online-create-flow .multiplayer-actions .online-back-btn {
    flex: 3 1 0;
}

#online-stake-group {
    flex-wrap: wrap;
}

#online-stake-group .btn-option {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 0;
}

#online-entry-ui {
    margin-top: 4px;
}

.online-social-ui {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.online-social-strip .btn {
    min-height: 40px;
    padding-left: 10px;
    padding-right: 10px;
}

.online-social-strip .btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #1a1a1a;
    border-color: var(--accent);
}

.online-social-panel {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.online-social-filters {
    display: grid;
    gap: 10px;
}

.online-social-filters input,
.online-social-filters select {
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
    color: var(--text);
}

.online-social-filters input:focus,
.online-social-filters select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(240, 192, 64, 0.12);
}

.filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.open-room-card,
.friend-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.open-room-title,
.friend-card-copy strong {
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 800;
}

.open-room-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.open-room-mode-badge {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.open-room-mode-badge-telefon {
    background: linear-gradient(135deg, rgba(43, 186, 203, 0.18), rgba(19, 122, 136, 0.18));
    border-color: rgba(43, 186, 203, 0.3);
    color: #6adce8;
}

.open-room-mode-badge-classic101 {
    background: linear-gradient(135deg, rgba(110, 175, 72, 0.2), rgba(240, 192, 64, 0.18));
    border-color: rgba(240, 192, 64, 0.3);
    color: #f0c040;
}

.room-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
}

.room-badge-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.room-badge-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.open-room-meta,
.friend-card-copy span {
    color: var(--text-dim);
    font-size: 0.8rem;
    line-height: 1.4;
}

.open-room-footer,
.friend-card-actions {
    display: flex;
    gap: 8px;
}

.friend-card-actions .btn {
    flex: 1 1 0;
    min-height: 40px;
}

.friend-card-copy {
    display: grid;
    gap: 4px;
}

.social-section {
    display: grid;
    gap: 8px;
}

.online-social-head {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
}

.leaderboard-modal .modal-desc,
.friends-modal .modal-desc.page-description {
    margin-bottom: 2px;
}

.leaderboard-modal .modal-header {
    margin-bottom: 8px;
}

.leaderboard-modal .modal-desc.page-description {
    margin-top: 2px;
    margin-bottom: 8px;
}

.leaderboard-list {
    display: grid;
    gap: 10px;
}

.leaderboard-mode-row {
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
    width: 100%;
}

.leaderboard-mode-switcher {
    width: min(360px, 100%);
}

.leaderboard-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-bottom: 4px;
    margin-bottom: 4px;
    width: 100%;
}

.leaderboard-tab {
    width: 100%;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
    font-size: 0.82rem;
    font-weight: 800;
}

.leaderboard-tab.is-active {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #1a1a1a;
    border-color: transparent;
}

.social-center-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 4px;
}

.social-center-tab {
    min-height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
    font-size: 0.79rem;
    font-weight: 800;
}

.social-center-tab.is-active {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #1a1a1a;
    border-color: transparent;
}

.social-center-panels {
    display: grid;
    gap: 12px;
}

.social-center-panel {
    display: grid;
    gap: 12px;
}

.social-center-panel.is-hidden {
    display: none;
}

.social-inbox-head {
    display: grid;
    gap: 6px;
}

.social-inbox-list {
    display: grid;
    gap: 10px;
}

.inbox-card {
    display: grid;
    gap: 12px;
}

.inbox-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.inbox-card-body,
.inbox-card-meta {
    color: var(--text-dim);
    font-size: 0.82rem;
    line-height: 1.45;
}

.inbox-card-body {
    word-break: break-word;
}

.inbox-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.inbox-status.is-unread {
    background: rgba(255, 214, 102, 0.18);
    color: #ffe39b;
    border-color: rgba(255, 214, 102, 0.24);
}

.inbox-status.is-read {
    background: rgba(255, 255, 255, 0.05);
}

.inbox-status.is-claimed {
    background: rgba(121, 224, 140, 0.14);
    color: #9af0a5;
    border-color: rgba(121, 224, 140, 0.18);
}

.inbox-status.is-expired,
.inbox-status.is-deleted {
    background: rgba(255, 120, 120, 0.12);
    color: #ffb0b0;
    border-color: rgba(255, 120, 120, 0.18);
}

.inbox-card-actions {
    flex-wrap: wrap;
}

.inbox-card-actions .btn {
    min-width: 108px;
}

.social-center-panel .room-summary {
    margin-top: 0;
}

@media (max-width: 640px) {
    .inbox-card-actions .btn {
        min-width: 0;
        flex: 1 1 0;
    }
}

.social-empty-state {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.leaderboard-card.is-self {
    border-color: rgba(240, 192, 64, 0.3);
    background: rgba(240, 192, 64, 0.06);
}

.leaderboard-card-top {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.leaderboard-rank {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(240, 192, 64, 0.12);
    border: 1px solid rgba(240, 192, 64, 0.22);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
}

.leaderboard-card-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.leaderboard-name-btn,
.player-name-btn,
.opp-label-button {
    appearance: none;
    border: 0;
    background: none;
    padding: 0;
    color: inherit;
    font: inherit;
    text-align: left;
}

.leaderboard-name-btn,
.player-name-btn {
    cursor: pointer;
}

.leaderboard-name-btn {
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.2;
}

.leaderboard-name-btn:hover,
.leaderboard-name-btn:focus-visible,
.player-name-btn:hover,
.player-name-btn:focus-visible {
    color: var(--accent);
}

.player-name-btn.friend-card-name {
    color: var(--text);
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.2;
}

.leaderboard-card-copy strong {
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaderboard-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    color: var(--text-dim);
    font-size: 0.78rem;
    line-height: 1.35;
}

.leaderboard-card-rating {
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
    text-align: right;
}

.leaderboard-card-week,
.leaderboard-self-tag {
    color: var(--text-dim);
    font-size: 0.78rem;
    font-weight: 700;
}

.friends-page {
    display: grid;
    gap: 12px;
}

.friends-list {
    display: grid;
    gap: 10px;
}

.friends-section {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.friends-search-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.friends-search-bar input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
    color: var(--text);
}

.friends-search-bar input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(240, 192, 64, 0.12);
}

.player-profile-modal .modal-desc {
    margin-bottom: 8px;
}

.player-profile-body {
    display: grid;
    gap: 14px;
}

.player-profile-hero {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: rgba(240, 192, 64, 0.12);
    border: 1px solid rgba(240, 192, 64, 0.18);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.player-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-profile-avatar-fallback {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 900;
}

.player-profile-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.player-profile-name {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.2;
}

.player-profile-status {
    color: var(--text-dim);
    font-size: 0.82rem;
}

.player-profile-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.player-profile-stat {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.player-profile-stat-key {
    color: var(--text-dim);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.player-profile-stat strong {
    color: var(--text);
    font-size: 1rem;
    font-weight: 900;
}

.player-profile-actions {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.player-profile-actions .btn {
    flex: 1 1 180px;
    min-width: 0;
}

.player-profile-icon-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 4px;
}

.player-profile-icon-actions .player-profile-icon-btn {
    width: 100%;
    height: 46px;
    min-width: 0;
    padding: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.player-profile-icon-actions .player-profile-icon-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.player-profile-icon-actions .player-profile-icon-btn.is-danger {
    color: #ff7c7c;
}

.player-profile-icon-actions .player-profile-icon-btn.is-danger:hover:not(:disabled) {
    background: rgba(255, 123, 123, 0.12);
    border-color: rgba(255, 123, 123, 0.38);
}

.player-profile-icon-actions .player-profile-icon-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.chat-header-action-btn {
    min-width: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    color: var(--text);
    cursor: pointer;
    flex: 0 0 auto;
    overflow: hidden;
}

.chat-header-action-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.chat-header-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chat-header-action-btn.is-danger {
    color: #ff7c7c;
}

.chat-header-action-btn.is-danger:hover {
    background: rgba(255, 123, 123, 0.12);
    border-color: rgba(255, 123, 123, 0.38);
}

.voice-roster-toggle {
    position: relative;
}

.voice-roster-toggle-badge {
    position: absolute;
    top: -4px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f6d77e, #c98f11);
    color: #1d1400;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.24);
}

.voice-roster-panel {
    position: fixed;
    right: 16px;
    bottom: 86px;
    transform: translateY(12px) scale(0.96);
    width: min(420px, calc(100vw - 24px));
    max-height: min(72vh, 560px);
    padding: 12px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 21, 31, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
    display: grid;
    gap: 10px;
    z-index: 26000;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.voice-roster-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.voice-roster-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.voice-roster-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.voice-roster-title {
    color: var(--text);
}

.voice-roster-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(240, 192, 64, 0.16);
    color: #f0c040;
    font-size: 0.72rem;
    font-weight: 800;
    flex: 0 0 auto;
}

.voice-roster-close-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    line-height: 1;
}

.voice-speakers {
    display: grid;
    gap: 6px;
    max-height: min(40vh, 320px);
    padding-right: 2px;
    overflow: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}

.voice-speaker {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 8px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.voice-speaker.is-muted {
    opacity: 0.72;
}

.voice-speaker-label {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    max-width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    padding: 0;
    margin: 0;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.voice-speaker-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.voice-speaker-actions .btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
}

.voice-speaker-actions .btn svg {
    width: 16px;
    height: 16px;
    display: block;
}

.voice-speaker-action-btn.is-danger {
    color: #ff7c7c;
}

@media (max-width: 480px) {
    .voice-roster-panel {
        right: 10px;
        left: 10px;
        bottom: 84px;
        width: auto;
        max-height: min(46vh, 340px);
    }

    .voice-speaker {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .voice-speaker-actions {
        width: 100%;
    }

    .voice-speaker-actions .btn {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
    }
}

@media (min-width: 768px) {
    #online-entry-ui .btn,
    #online-flow-ui .multiplayer-actions .btn,
    #multi-join-ui .btn-group .btn {
        min-height: 46px;
    }

    #online-stake-group {
        flex-wrap: nowrap;
    }

    #online-stake-group .btn-option {
        flex: 1 1 0;
    }

    #online-entry-ui {
        margin-top: 8px;
    }

    .online-social-strip .btn {
        min-height: 44px;
    }

    .online-social-panel {
        padding: 16px;
    }

    .filter-row {
        grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
    }

    .account-messages-layout {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        align-items: start;
    }

    .friend-card-actions .btn {
        min-height: 42px;
    }
}

.toggle-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    align-self: stretch;
    min-height: 56px;
}

.toggle-card input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    flex: 0 0 auto;
}

.toggle-copy strong {
    display: block;
    font-size: 0.9rem;
}

.btn {
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 700;
    transition: transform 0.18s, filter 0.18s, background 0.18s, border-color 0.18s;
    touch-action: manipulation;
}

.btn:hover { transform: translateY(-1px); }

.btn-lang {
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    border: 1px solid var(--glass-border);
    font-size: 0.72rem;
}

.btn-lang.active {
    background: var(--accent);
    color: #1a1a1a;
    border-color: var(--accent);
}

.btn-account {
    padding: 7px 12px;
    background: rgba(240, 192, 64, 0.12);
    color: var(--accent);
    border: 1px solid rgba(240, 192, 64, 0.32);
    font-size: 0.72rem;
}

.btn-account:hover {
    background: rgba(240, 192, 64, 0.18);
}

.start-auth-btn {
    background: rgba(240, 192, 64, 0.12);
    color: var(--accent);
    border: 1px solid rgba(240, 192, 64, 0.34);
}

.start-auth-btn:hover {
    background: rgba(240, 192, 64, 0.18);
}

.start-auth-btn.is-authenticated {
    background: linear-gradient(135deg, rgba(79, 207, 151, 0.22), rgba(79, 207, 151, 0.12));
    color: #dffcef;
    border-color: rgba(79, 207, 151, 0.38);
    box-shadow: 0 0 0 1px rgba(79, 207, 151, 0.12), 0 12px 28px rgba(79, 207, 151, 0.12);
}

.btn-option {
    flex: 1;
    min-height: 44px;
    padding: 10px 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
    border: 1px solid var(--glass-border);
}

.btn-option.active {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #1a1a1a;
    border-color: var(--accent);
    box-shadow: 0 2px 16px var(--accent-glow);
}

.btn-option:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #1a1a1a;
    padding: 13px 22px;
    font-size: 0.96rem;
    box-shadow: 0 10px 24px var(--accent-glow);
}

.btn-large {
    width: 100%;
    margin-top: 14px;
    min-height: 48px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    align-items: stretch;
}

.modal-footer-split .modal-primary-btn {
    flex: 7 1 0;
    width: auto;
    margin-top: 0;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.modal-footer-split .modal-secondary-btn {
    flex: 3 1 0;
    width: auto;
    margin-top: 0;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-left: 12px;
    padding-right: 12px;
}

.btn-action,
.btn-menu {
    padding: 12px 14px;
    background: var(--glass);
    color: var(--text);
    border: 1px solid var(--glass-border);
}

.btn-menu {
    width: 100%;
    margin: 4px 0;
    text-align: left;
}

#start-screen .start-actions .start-shop-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    padding-left: 16px;
    padding-right: 16px;
}

#start-screen .start-actions .start-shop-btn::before {
    content: none;
}

.btn-action:hover:not(:disabled),
.btn-menu:hover {
    background: var(--glass-strong);
}

.btn-action:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.btn-strong {
    background: rgba(240, 192, 64, 0.12);
    border-color: rgba(240, 192, 64, 0.35);
    color: var(--accent);
}

.multiplayer-actions {
    margin-top: 8px;
}

.multiplayer-actions .btn {
    flex: 1;
    min-height: 46px;
}

.multi-panel {
    display: none;
    margin-top: 14px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.multi-panel.active { display: block; }

.account-cabinet {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 14px;
    margin-top: 4px;
}

.account-panel {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.is-hidden {
    display: none !important;
}

.account-panel.is-hidden {
    display: none;
}

.account-auth-panel {
    display: grid;
    gap: 14px;
}

.account-auth-hero {
    display: grid;
    gap: 0;
    padding: 6px 2px 2px;
}

.account-auth-hero h3 {
    font-size: 1.5rem;
    line-height: 1.1;
}

.account-auth-copy {
    display: none;
}

.account-auth-hero .section-kicker {
    display: none;
}

.account-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.account-switch {
    width: 100%;
    margin: 0;
    text-align: center;
}

.account-switch.active {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #1a1a1a;
    border-color: transparent;
}

.account-form {
    display: none;
    gap: 14px;
}

.account-form.active {
    display: grid;
}

.account-auth-actions {
    display: grid;
    gap: 10px;
}

.account-legal-copy {
    margin: 4px 2px 0;
    font-size: 0.78rem;
    color: var(--text-dim);
}

.account-legal-copy a {
    color: var(--accent);
    text-decoration: underline;
}

.btn-social {
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(240, 192, 64, 0.12));
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.btn-social:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(240, 192, 64, 0.18));
}

.btn-menu-shop {
    justify-content: center;
    text-align: center;
    gap: 0;
    background: linear-gradient(135deg, rgba(88, 162, 255, 0.14), rgba(255, 255, 255, 0.04));
    border-color: rgba(88, 162, 255, 0.28);
    box-shadow: 0 0 0 1px rgba(88, 162, 255, 0.1), 0 12px 26px rgba(88, 162, 255, 0.12);
}

.btn-menu-shop:hover {
    background: linear-gradient(135deg, rgba(88, 162, 255, 0.2), rgba(255, 255, 255, 0.07));
    box-shadow: 0 0 0 1px rgba(88, 162, 255, 0.14), 0 16px 30px rgba(88, 162, 255, 0.18);
}

.menu-button-icon,
.coin-shop-wallet-icon,
.coin-shop-video-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex: 0 0 auto;
}

.menu-button-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

.menu-button-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.start-cosmetics-shop-btn,
.btn-menu-cosmetics {
    border-color: rgba(88, 162, 255, 0.26);
    background: linear-gradient(135deg, rgba(88, 162, 255, 0.16), rgba(255, 255, 255, 0.05));
}

.start-cosmetics-shop-btn:hover,
.btn-menu-cosmetics:hover {
    border-color: rgba(88, 162, 255, 0.44);
    box-shadow: 0 0 0 1px rgba(88, 162, 255, 0.08), 0 16px 30px rgba(88, 162, 255, 0.12);
}

.coin-shop-modal {
    width: min(920px, 100%);
}

.coin-shop-modal .modal-header > div {
    min-width: 0;
    flex: 1 1 auto;
}

.coin-shop-title-wrap .section-kicker {
    margin: 0;
    color: #f0c040;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coin-shop-intro,
.cosmetics-shop-intro {
    text-align: left;
    padding: 0 16px;
    margin: 8px 0 16px;
}

.coin-shop-section-copy {
    padding: 0;
}

.coin-shop-section-copy .modal-desc,
.table-skin-desc {
    text-align: left;
}

.cosmetics-shop-modal {
    width: min(920px, 100%);
}

.cosmetics-shop-modal .modal-header {
    flex-direction: row;
    align-items: center;
}

.coin-shop-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 24px;
    margin: 0 24px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(240, 192, 64, 0.14), rgba(255, 255, 255, 0.03));
}

.coin-shop-wallet {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coin-shop-wallet-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(240, 192, 64, 0.12);
    border: 1px solid rgba(240, 192, 64, 0.28);
}

.coin-shop-wallet-copy {
    display: grid;
    gap: 2px;
}

.coin-shop-wallet-label {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.coin-shop-wallet strong {
    font-size: 1.4rem;
    color: var(--text);
}

.coin-shop-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 14px;
}

.coin-shop-panel {
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    display: grid;
    gap: 10px;
}

.cosmetics-shop-panel {
    grid-column: 1 / -1;
    margin: 0 24px 16px;
    background: linear-gradient(180deg, rgba(88, 162, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.coin-shop-video-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(240, 192, 64, 0.06));
}

.coin-shop-video-panel h3 {
    font-size: 1.5rem;
    line-height: 1.1;
}

.coin-shop-video-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.coin-shop-video-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.coin-pack-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.coin-shop-cosmetics-panel {
    grid-column: 1 / -1;
}

.cosmetics-shop-hero {
    background: linear-gradient(135deg, rgba(88, 162, 255, 0.14), rgba(255, 255, 255, 0.03));
}

.table-skin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.table-skin-card {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 10, 16, 0.56);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    display: grid;
}

.table-skin-card.is-selected {
    border-color: rgba(240, 192, 64, 0.34);
    box-shadow: 0 0 0 1px rgba(240, 192, 64, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.table-skin-card.is-owned {
    border-color: rgba(88, 162, 255, 0.25);
}

.table-skin-preview {
    position: relative;
    min-height: 120px;
    background-color: #1c5d3a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.table-skin-preview-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(240, 192, 64, 0.12), rgba(255, 255, 255, 0.02));
}

.table-skin-body {
    display: grid;
    gap: 8px;
    padding: 12px 12px 14px;
}

.table-skin-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.table-skin-title {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.15;
}

.table-skin-desc {
    margin: 0;
    color: var(--text-dim);
    font-size: 0.8rem;
    line-height: 1.45;
}

.table-skin-badge {
    flex: 0 0 auto;
    font-size: 0.68rem;
    line-height: 1;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
}

.table-skin-badge.is-owned {
    color: #cce3ff;
    background: rgba(88, 162, 255, 0.12);
}

.table-skin-badge.is-equipped {
    color: var(--accent);
    background: rgba(240, 192, 64, 0.12);
}

.table-skin-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
}

.table-skin-price {
    color: var(--text-dim);
    font-size: 0.76rem;
}

.table-skin-action {
    min-width: 108px;
    justify-content: center;
}

.table-skin-action.is-selected {
    background: linear-gradient(135deg, rgba(240, 192, 64, 0.16), rgba(255, 255, 255, 0.05));
    border-color: rgba(240, 192, 64, 0.28);
}

.coin-pack-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 10, 16, 0.56);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.coin-pack-card.is-recommended {
    border-color: rgba(240, 192, 64, 0.35);
    background: linear-gradient(180deg, rgba(240, 192, 64, 0.12), rgba(6, 10, 16, 0.56));
}

.coin-pack-badge {
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.coin-pack-top {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.coin-pack-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(240, 192, 64, 0.12);
    border: 1px solid rgba(240, 192, 64, 0.24);
}

.coin-pack-title {
    font-size: 0.98rem;
    font-weight: 800;
}

.coin-pack-price {
    color: var(--accent);
    font-weight: 800;
    font-size: 0.9rem;
    white-space: nowrap;
}

.coin-pack-body {
    color: var(--text-dim);
    font-size: 0.8rem;
    line-height: 1.4;
}

.coin-pack-action {
    width: 100%;
}

.account-profile-panel {
    display: grid;
    gap: 14px;
}

.account-profile-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    min-width: 0;
}

.account-profile-tab {
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--text-dim);
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s ease;
    min-width: 0;
    width: 100%;
    text-align: center;
    line-height: 1.15;
}

.account-profile-tab.is-active {
    background: rgba(88, 162, 255, 0.14);
    border-color: rgba(88, 162, 255, 0.3);
    color: var(--text);
    box-shadow: 0 0 0 1px rgba(88, 162, 255, 0.08);
}

.account-gifts {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.account-skins {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 22px;
    border: 1px solid rgba(88, 162, 255, 0.18);
    background: rgba(88, 162, 255, 0.04);
}

.account-skins-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.account-messages {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 22px;
    border: 1px solid rgba(88, 162, 255, 0.18);
    background: rgba(88, 162, 255, 0.04);
}

.account-messages-layout {
    display: grid;
    gap: 12px;
}

.account-messages-sidebar,
.account-messages-conversation {
    display: grid;
    gap: 10px;
}

.account-messages-head,
.account-messages-conversation-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.account-messages-summary {
    color: var(--text-dim);
    font-size: 0.78rem;
    line-height: 1.35;
}

.account-messages-thread-list,
.account-messages-conversation-list {
    display: grid;
    gap: 8px;
}

.message-thread-card {
    width: 100%;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    text-align: left;
}

.message-thread-card.is-active {
    border-color: rgba(88, 162, 255, 0.32);
    background: rgba(88, 162, 255, 0.08);
}

.message-thread-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(240, 192, 64, 0.12);
    border: 1px solid rgba(240, 192, 64, 0.18);
    color: var(--accent);
    font-weight: 900;
}

.message-thread-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-thread-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.message-thread-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.message-thread-top strong {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 800;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-thread-top span {
    color: var(--text-dim);
    font-size: 0.72rem;
    flex: 0 0 auto;
}

.message-thread-preview {
    color: var(--text-dim);
    font-size: 0.8rem;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.message-thread-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #1a1a1a;
    font-size: 0.72rem;
    font-weight: 900;
}

.account-messages-conversation {
    padding-top: 2px;
}

.account-messages-conversation-title {
    color: var(--text);
    font-size: 0.94rem;
    font-weight: 800;
}

.account-messages-compose {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.account-message-input {
    width: 100%;
    min-height: 86px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
    color: var(--text);
    resize: vertical;
}

.account-message-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(240, 192, 64, 0.12);
}

.account-messages-compose-actions {
    display: flex;
    justify-content: flex-end;
}

.message-row {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.message-row.is-self {
    background: rgba(240, 192, 64, 0.06);
    border-color: rgba(240, 192, 64, 0.18);
}

.message-row-author {
    color: var(--text-dim);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.message-row-text {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

.gift-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.gift-inventory-card {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gift-inventory-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gift-inventory-thumb {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 214, 102, 0.18), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: grid;
    place-items: center;
}

.gift-inventory-thumb img,
.gift-inventory-thumb video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gift-media,
.gift-choice-visual video,
.gift-choice-visual img,
.gift-burst-icon video,
.gift-burst-icon img,
.gift-inventory-thumb video,
.gift-inventory-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gift-media-video {
    background: transparent;
    border: 0;
    outline: 0;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.gift-media-video::-webkit-media-controls,
.gift-media-video::-webkit-media-controls-panel,
.gift-media-video::-webkit-media-controls-enclosure,
.gift-media-video::-webkit-media-controls-start-playback-button {
    display: none !important;
    opacity: 0 !important;
}

.gift-inventory-copy {
    display: grid;
    gap: 2px;
}

.gift-inventory-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text);
}

.gift-inventory-meta {
    font-size: 0.74rem;
    color: var(--text-dim);
}

.gift-inventory-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.gift-cost-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(240, 192, 64, 0.12);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
}

.account-profile-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

.account-avatar-shell {
    position: relative;
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
}

.account-profile-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
    flex: 1 1 auto;
}

.account-profile-name-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px 40px;
    align-items: center;
    gap: 8px;
    min-width: 0;
    width: 100%;
}

.account-avatar {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(240, 192, 64, 0.22), rgba(240, 192, 64, 0.08));
    border: 1px solid rgba(240, 192, 64, 0.35);
    color: var(--accent);
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    overflow: hidden;
    position: relative;
}

.account-avatar.has-image {
    background: rgba(255, 255, 255, 0.05);
    color: transparent;
}

.account-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.account-avatar-initial {
    position: relative;
    z-index: 1;
}

.account-avatar-edit-btn {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.account-avatar-picker {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.04);
}

.account-avatar-preview {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    flex: 0 0 96px;
}

.account-avatar-picker-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.account-profile-name {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 auto;
    justify-self: start;
}

.account-profile-id {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.account-profile-meta {
    margin-top: 4px;
    color: var(--text-dim);
    font-size: 0.8rem;
}

.account-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.account-mode-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.account-mode-stat-card {
    display: grid;
    gap: 4px;
}

.account-mode-stat-meta {
    color: var(--text-dim);
    font-size: 0.72rem;
    line-height: 1.35;
}

.account-stat-card {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.account-stat-card span {
    display: block;
    color: var(--text-dim);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.account-stat-card strong {
    display: block;
    margin-top: 6px;
    color: var(--accent);
    font-size: 1.08rem;
}

.account-toolbar {
    display: flex;
    gap: 8px;
}

.account-toolbar .btn {
    flex: 1;
}

.account-modal-close-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    display: grid;
    place-items: center;
    font-size: 1.45rem;
    line-height: 1;
}

.account-modal-close-btn:focus-visible,
.start-profile-btn:focus-visible {
    outline: 2px solid rgba(240, 192, 64, 0.7);
    outline-offset: 2px;
}

.account-profile-logout-btn {
    color: var(--text);
}

.icon-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    display: inline-grid;
    place-items: center;
    padding: 0;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.11);
}

.icon-btn .auth-icon {
    width: 14px;
    height: 14px;
    background: transparent;
    color: currentColor;
    border-radius: 0;
}

.account-avatar-edit-btn {
    color: var(--accent);
}

#account-edit-name-btn,
#account-logout-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 12px;
    flex: 0 0 40px;
    justify-self: end;
}

#account-edit-name-btn .auth-icon,
#account-logout-btn .auth-icon {
    width: 16px;
    height: 16px;
}

.account-avatar-edit-btn .auth-icon {
    width: 14px;
    height: 14px;
}

.modal-card-small {
    width: min(520px, 100%);
}

.account-history {
    margin-top: 14px;
}

.room-code-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.room-code-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.room-code-value {
    color: var(--accent);
    font-size: 1.05rem;
    letter-spacing: 0.22em;
}

.room-copy-btn {
    width: auto;
    padding: 7px 10px;
    font-size: 0.74rem;
}

.room-count {
    margin-bottom: 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.room-player-list {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
    align-content: start;
}

.seat-selection-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(4, 10, 16, 0.72);
    backdrop-filter: blur(8px);
}

.seat-selection-overlay.is-hidden {
    display: none;
}

.seat-selection-panel {
    width: min(96vw, 560px);
    border-radius: 22px;
    padding: 10px;
    background: linear-gradient(180deg, rgba(11, 18, 28, 0.98), rgba(7, 12, 19, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.seat-selection-head {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
}

.seat-selection-head-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.seat-selection-head-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.seat-selection-title {
    font-size: 1.15rem;
    font-weight: 800;
}

.seat-selection-desc {
    color: var(--text-dim);
    font-size: 0.82rem;
    line-height: 1.35;
}

.seat-selection-status {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
}

.seat-selection-center-title:empty {
    display: none;
}

.seat-selection-footer {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.seat-selection-footer-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.seat-selection-invite-btn {
    min-width: 132px;
}

.seat-selection-table-wrap {
    display: grid;
    place-items: center;
    margin: 4px 0 12px;
}

.seat-selection-table {
    position: relative;
    width: min(100%, 500px);
    aspect-ratio: 1;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03) 34%, rgba(0, 0, 0, 0) 35%),
        radial-gradient(circle at center, rgba(39, 64, 52, 0.96), rgba(19, 33, 28, 0.98) 68%, rgba(13, 24, 21, 1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32) inset;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    padding: 14px;
}

.seat-selection-center {
    grid-column: 2;
    grid-row: 2;
    border-radius: 999px;
    background: rgba(4, 10, 16, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 14px;
    color: var(--text-dim);
}

.seat-selection-center-title {
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.seat-selection-center-note {
    font-size: 0.72rem;
    line-height: 1.35;
}

.seat-selection-seat {
    display: grid;
    gap: 4px;
    align-content: start;
    border-radius: 16px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.seat-selection-seat.seat-bottom { grid-column: 2; grid-row: 3; }
.seat-selection-seat.seat-left { grid-column: 1; grid-row: 2; }
.seat-selection-seat.seat-top { grid-column: 2; grid-row: 1; }
.seat-selection-seat.seat-right { grid-column: 3; grid-row: 2; }

.seat-selection-seat.is-occupied {
    background: rgba(255, 255, 255, 0.07);
}

.seat-selection-seat.is-mine {
    border-color: rgba(240, 192, 64, 0.45);
    box-shadow: 0 0 0 1px rgba(240, 192, 64, 0.15) inset;
}

.seat-selection-seat-label {
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.seat-selection-seat-relation {
    color: var(--text-dim);
    font-size: 0.68rem;
}

.seat-selection-seat-name {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 800;
    min-height: 1.2em;
}

.seat-selection-seat-meta {
    color: var(--text-dim);
    font-size: 0.68rem;
}

.seat-selection-seat-btn {
    width: 100%;
    margin-top: 2px;
    padding: 7px 9px;
    font-size: 0.72rem;
}

@media (max-width: 640px) {
    .seat-selection-overlay {
        padding: 8px;
    }

    .seat-selection-panel {
        width: min(96vw, 560px);
        padding: 8px;
        border-radius: 18px;
    }

    .seat-selection-head {
        margin-bottom: 10px;
    }

    .seat-selection-table-wrap {
        margin-bottom: 10px;
    }

    .seat-selection-table {
        width: min(100%, 460px);
        gap: 8px;
        padding: 8px;
    }

    .seat-selection-center {
        padding: 12px;
    }

    .seat-selection-seat {
        padding: 9px;
    }

    .seat-selection-seat-btn {
        padding: 6px 8px;
        font-size: 0.7rem;
    }
}

body.seat-selection-active #game-screen {
    filter: blur(1px) saturate(0.95);
}

body.move-hint-selection-active #game-screen .score-name-button,
body.move-hint-selection-active #game-screen .opp-label-button,
body.move-hint-selection-active #game-screen .player-name-btn {
    pointer-events: none !important;
    cursor: default !important;
}

.room-player-chip {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
}

.account-history-chip {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.account-history-delta {
    justify-self: end;
    font-weight: 800;
    color: var(--text);
}

.room-player-chip-body {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.room-player-chip-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: 0;
}

.room-player-chip-title {
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 800;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-player-chip-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    white-space: nowrap;
}

.room-player-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(13, 22, 34, 0.98), rgba(20, 33, 48, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.room-player-avatar.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.room-player-chip.empty {
    color: var(--text-dim);
    font-style: normal;
}

.room-player-chip.empty .room-player-avatar,
.room-player-chip.bot .room-player-avatar {
    background: linear-gradient(180deg, rgba(240, 192, 64, 0.14), rgba(13, 22, 34, 0.96));
}

.room-player-empty-label {
    color: var(--text-dim);
    font-size: 0.78rem;
    line-height: 1.3;
}

.room-slot-invite-btn {
    width: auto;
    min-width: 0;
    padding: 6px 8px;
    border-radius: 12px;
    font-size: 0.72rem;
    white-space: nowrap;
}

.room-player-chip.you {
    border-color: rgba(240, 192, 64, 0.45);
    box-shadow: 0 0 0 1px rgba(240, 192, 64, 0.15) inset;
}

.room-player-chip.speaking {
    border-color: rgba(79, 207, 151, 0.55);
    box-shadow: 0 0 0 1px rgba(79, 207, 151, 0.12) inset;
    background: rgba(79, 207, 151, 0.08);
}

.room-player-state,
.multi-status {
    color: var(--text-dim);
    font-size: 0.76rem;
}

.room-player-state.is-bot-takeover {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffd56a;
    font-weight: 700;
}

.room-player-seat {
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.multi-status {
    margin-bottom: 10px;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .room-player-chip {
        grid-template-columns: auto auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        padding: 8px 8px;
    }

    .room-player-chip-actions {
        justify-content: flex-end;
    }

    .room-slot-invite-btn {
        width: auto;
        min-width: 0;
        padding: 6px 8px;
        font-size: 0.7rem;
    }
}

#join-code-input {
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

#game-screen {
    flex-direction: column;
    height: 100dvh;
    min-height: 100dvh;
    position: relative;
    --hand-stack-h: 168px;
    overflow: hidden;
    --table-skin-image: url("/assets/cosmetics/table/table_skin_01.webp");
    --table-skin-overlay: radial-gradient(circle, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.65) 100%);
    background-color: var(--felt-dark);
    background-image:
        var(--table-skin-overlay),
        var(--table-skin-image),
        radial-gradient(ellipse at 50% 45%, var(--felt-light) 0%, var(--felt) 50%, var(--felt-dark) 100%);
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}

.open-room-waiting-banner {
    position: fixed;
    inset: 0;
    z-index: 24;
    display: grid;
    place-items: center;
    padding: 88px 16px 132px;
    pointer-events: none;
}

.open-room-waiting-banner.is-hidden {
    display: none;
}

.open-room-waiting-card {
    width: min(420px, calc(100vw - 32px));
    padding: 20px 24px;
    border-radius: 24px;
    text-align: center;
    color: #f7fbff;
    background: linear-gradient(180deg, rgba(10, 18, 30, 0.88), rgba(15, 27, 42, 0.74));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(14px);
}

.open-room-waiting-title {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.open-room-waiting-subtitle {
    margin-top: 8px;
    color: rgba(237, 245, 255, 0.76);
    font-size: 0.96rem;
    font-weight: 700;
}

.game-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    font-size: 0.78rem;
    flex-shrink: 0;
    position: relative;
    z-index: 40;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-btn {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    cursor: pointer;
    font-size: 0;
    padding: 0;
    border-radius: 11px;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.menu-btn::before {
    content: "в°";
    font-size: 1rem;
    line-height: 1;
}

.menu-btn.pause-menu-btn::before {
    content: none;
}

.pause-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pause-icon {
    width: 18px;
    height: 20px;
    display: inline-flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.pause-icon::before,
.pause-icon::after {
    content: "";
    width: 5px;
    height: 18px;
    border-radius: 999px;
    background: currentColor;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(240, 192, 64, 0.3);
    transform: translateY(-1px);
}

.scores-bar {
    display: flex;
    gap: 16px;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 31;
    pointer-events: auto;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    position: relative;
}

.score-name { color: var(--text-dim); }
.score-name,
.score-name-button {
    white-space: pre-line;
}

.score-value {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
}

.score-wins {
    color: var(--success);
    font-size: 0.7rem;
    font-weight: 700;
}

.score-item.current-player {
    background: rgba(240, 192, 64, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(240, 192, 64, 0.18), 0 0 18px rgba(240, 192, 64, 0.14);
}

.score-item.current-player .score-name { color: var(--accent); }

.score-name-button {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    display: inline-block;
    line-height: 1.15;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 32;
}

.score-name-button:hover,
.score-name-button:focus-visible {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.game-info { display: none; }

.opp-container {
    display: flex;
    gap: 2px;
    justify-content: center;
    align-items: center;
    padding: 5px 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 30;
    pointer-events: none;
}

.opp-container.top {
    background: rgba(0, 0, 0, 0.2);
    min-height: 28px;
}

.opp-container.side {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    padding: 12px 5px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.opp-container.side .opp-hand-group {
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.opp-container.side .opp-tile-pile {
    flex-direction: column;
    align-items: center;
}

.opp-container.side .opp-tile {
    width: 12px;
    height: 22px;
}

.opp-container.left {
    left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.opp-container.right {
    right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.opp-label {
    font-size: 0.68rem;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(16ch, 26vw);
    text-shadow: 1px 1px 2px #000;
}

.opp-label-button {
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 4;
}

.opp-bot-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: #1f1500;
    background: linear-gradient(135deg, #ffd56a, #ffb347);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.bot-takeover-banner {
    position: absolute;
    left: 50%;
    bottom: clamp(86px, 14vh, 132px);
    transform: translateX(-50%);
    z-index: 22;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(92vw, 520px);
    padding: 12px 14px;
    border: 1px solid rgba(255, 213, 106, 0.35);
    border-radius: 16px;
    background: rgba(17, 20, 24, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.bot-takeover-banner.is-hidden {
    display: none;
}

.bot-takeover-banner-text {
    flex: 1;
    color: #fff4d1;
    font-size: 0.92rem;
    line-height: 1.35;
}

.bot-takeover-banner-btn {
    flex: 0 0 auto;
    min-width: 138px;
}

@media (max-width: 640px) {
    .bot-takeover-banner {
        bottom: max(78px, env(safe-area-inset-bottom));
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .bot-takeover-banner-btn {
        width: 100%;
    }
}

.opp-hand-group {
    min-width: 0;
    pointer-events: auto;
    position: relative;
    z-index: 3;
}

.friend-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.friend-status-badge.is-online {
    background: rgba(255, 198, 74, 0.18);
    color: #ffd56a;
}

.friend-status-badge.is-in-game {
    background: rgba(255, 153, 51, 0.18);
    color: #ffb066;
}

.score-name-button {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    display: inline-block;
    line-height: 1.15;
    cursor: pointer;
}

.opp-tile-pile {
    display: flex;
    gap: 2px;
    min-width: 0;
}

.opp-tile {
    width: 22px;
    height: 12px;
    background: linear-gradient(135deg, #2a5a40, #1e4530);
    border: 1px solid #3a7a55;
    border-radius: 2px;
}

.board-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    z-index: 5;
    min-height: 0;
    background: transparent;
}

.konva-board-root {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.konva-board-stage-host {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.konva-board-anchors {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 2;
}

.konva-board-anchors .board-tile {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.konva-open-end-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
}

.konva-open-end-highlight {
    display: block;
    position: absolute;
    overflow: hidden;
    box-sizing: border-box;
    background: radial-gradient(circle at center, rgba(255, 235, 120, 0.96) 0%, rgba(255, 214, 78, 0.78) 30%, rgba(255, 181, 0, 0.34) 62%, rgba(255, 181, 0, 0) 100%);
    border: 1px solid rgba(255, 239, 183, 0.88);
    box-shadow: 0 0 0 1px rgba(255, 244, 214, 0.44), 0 0 24px rgba(255, 212, 73, 0.78), 0 0 42px rgba(255, 166, 0, 0.42);
    filter: saturate(1.2) brightness(1.08);
    animation: openEndHighlightPulse 0.95s ease-in-out infinite alternate;
}

.konva-open-end-highlight.arrow-top {
    border-radius: 999px 999px 0 0;
}

.konva-open-end-highlight.arrow-bottom {
    border-radius: 0 0 999px 999px;
}

.konva-open-end-highlight.arrow-left {
    border-radius: 999px 0 0 999px;
}

.konva-open-end-highlight.arrow-right {
    border-radius: 0 999px 999px 0;
}

.konva-open-end-highlight::after {
    content: "";
    position: absolute;
    inset: 18%;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.38);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.konva-open-end-highlight.is-selected {
    box-shadow: 0 0 0 1px rgba(255, 244, 214, 0.62), 0 0 30px rgba(255, 218, 94, 0.96), 0 0 54px rgba(255, 171, 0, 0.62);
}

@keyframes openEndHighlightPulse {
    from { transform: translate(-50%, -50%) scale(0.96); }
    to { transform: translate(-50%, -50%) scale(1.05); }
}

.board-empty-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    text-align: center;
    padding: 40px;
}

.reaction-stage {
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
}

.board {
    position: relative;
    width: 100%;
    height: 100%;
}

.boneyard-visual {
    position: absolute;
    right: 10px;
    bottom: calc(var(--hand-stack-h, 168px) + 10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 60;
    pointer-events: none;
}

#gosha-btn.btn-gosha {
    position: absolute;
    left: 50%;
    bottom: calc(var(--hand-stack-h, 168px) + 10px);
    transform: translateX(-50%);
    margin: 0;
    width: auto;
    z-index: 66;
    pointer-events: auto;
}

#game-screen.is-solo-game .reaction-slot,
#game-screen.is-solo-game .gift-slot,
#game-screen.is-solo-game .voice-slot,
#game-screen.is-solo-game #voice-roster-toggle,
#game-screen.is-solo-game #reaction-btn,
#game-screen.is-solo-game #gift-btn {
    display: none !important;
}

body.is-solo-game .voice-roster-panel {
    display: none !important;
}

.boneyard-stack {
    position: relative;
    width: 28px;
    height: 20px;
}

.boneyard-stack .stack-tile {
    position: absolute;
    width: 24px;
    height: 14px;
    background: linear-gradient(135deg, #2a5a40, #1e4530);
    border: 1px solid #3a7a55;
    border-radius: 2px;
}

.boneyard-count {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-dim);
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
}

.message-area {
    text-align: center;
    padding: 4px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    min-height: 24px;
    flex-shrink: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hand-container {
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    flex-shrink: 0;
    overflow-x: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 12;
}

.hand {
    display: flex;
    gap: 3px;
    justify-content: center;
    min-height: 40px;
}

.action-bar {
    display: grid;
    grid-template-columns: auto minmax(48px, 1fr) minmax(48px, 1fr) auto auto auto auto;
    gap: clamp(4px, 1.6vw, 8px);
    justify-content: center;
    padding: 6px clamp(8px, 3vw, 12px) calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(0, 0, 0, 0.45);
    flex-shrink: 0;
    align-items: center;
    overflow: visible;
    position: relative;
    z-index: 15;
    width: 100%;
    box-sizing: border-box;
}

.action-bar > .btn-action {
    width: 100%;
    min-width: 0;
    padding-left: clamp(8px, 2vw, 18px);
    padding-right: clamp(8px, 2vw, 18px);
    white-space: nowrap;
}

.turn-timer-slot {
    width: clamp(34px, 10.5vw, 54px);
    min-width: 0;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    gap: 4px;
    justify-items: center;
    align-self: center;
}

.voice-slot {
    width: clamp(34px, 10.5vw, 54px);
    min-width: 0;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    gap: 4px;
    justify-items: center;
    align-self: center;
}

.voice-slot.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.voice-unlock-btn {
    width: 100%;
    min-width: 0;
    padding: 5px 6px;
    font-size: 0.55rem;
    line-height: 1.08;
    white-space: normal;
    text-align: center;
    border-radius: 10px;
}

.voice-unlock-btn.is-hidden {
    display: none;
}

.voice-fab {
    position: relative;
    touch-action: none;
}

.voice-fab svg {
    display: block;
}

.voice-fab.is-ready {
    border-color: rgba(79, 207, 151, 0.22);
}

.voice-fab.is-speaking {
    border-color: rgba(79, 207, 151, 0.72);
    background: linear-gradient(180deg, rgba(79, 207, 151, 0.24), rgba(79, 207, 151, 0.10));
    color: #dfffe9;
    box-shadow: 0 0 0 1px rgba(79, 207, 151, 0.34) inset, 0 0 18px rgba(79, 207, 151, 0.28), 0 10px 20px rgba(0, 0, 0, 0.22);
}

.voice-fab.has-remote-voice {
    border-color: rgba(240, 192, 64, 0.55);
}

.voice-status {
    display: none;
    min-height: 1.1em;
    max-width: 54px;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(240, 192, 64, 0.92);
    text-align: center;
    line-height: 1.1;
    text-wrap: balance;
}

.turn-timer-slot.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.turn-timer-slot.is-postmove .turn-timer-ring {
    box-shadow: 0 0 0 1px rgba(240, 192, 64, 0.18), 0 10px 24px rgba(0, 0, 0, 0.26);
    animation: postMovePulse 1s ease-in-out infinite;
}

.turn-timer-ring {
    width: clamp(34px, 10.5vw, 54px);
    height: clamp(34px, 10.5vw, 54px);
    border-radius: 50%;
    padding: 3px;
    background:
        conic-gradient(from -90deg, var(--accent) 0deg var(--turn-angle), rgba(255, 255, 255, 0.10) var(--turn-angle) 360deg);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
    display: grid;
    place-items: center;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.turn-timer-ring.is-urgent {
    filter: drop-shadow(0 0 10px rgba(240, 192, 64, 0.32));
}

.turn-timer-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(13, 22, 34, 0.98), rgba(20, 33, 48, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--text);
    font-size: clamp(0.68rem, 2.4vw, 0.92rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    overflow: hidden;
}

.turn-timer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.turn-timer-caption {
    min-height: 1.1em;
    font-size: clamp(0.48rem, 1.8vw, 0.62rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(240, 192, 64, 0.92);
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    max-width: 72px;
}

@keyframes postMovePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.reaction-slot {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    justify-content: center;
    margin-left: 0;
}

.reaction-fab {
    width: clamp(34px, 10.5vw, 42px);
    height: clamp(34px, 10.5vw, 42px);
    min-width: clamp(34px, 10.5vw, 42px);
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.reaction-fab:hover,
.reaction-fab:focus-visible {
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(240, 192, 64, 0.4);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.09));
}

.reaction-fab svg {
    width: clamp(22px, 6.8vw, 26px);
    height: clamp(22px, 6.8vw, 26px);
    display: block;
}

.gift-fab {
    position: relative;
}

.gift-fab::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(255, 214, 102, 0.18), rgba(255, 255, 255, 0.03));
    pointer-events: none;
}

.gift-fab svg {
    position: relative;
    z-index: 1;
}

.reaction-picker {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(12px) scale(0.96);
    width: min(320px, calc(100vw - 28px));
    max-height: min(46vh, 280px);
    padding: 10px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 21, 31, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.reaction-picker-scroll {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-content: start;
    grid-auto-rows: min-content;
    gap: 8px;
    max-height: min(46vh, 280px);
    padding-right: 4px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-width: thin;
    scroll-snap-type: y proximity;
}

.gift-picker {
    position: fixed;
    right: 16px;
    bottom: 86px;
    transform: translateY(12px) scale(0.96);
    width: min(420px, calc(100vw - 24px));
    max-height: min(72vh, 560px);
    padding: 12px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 21, 31, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
    display: grid;
    gap: 10px;
    z-index: 26000;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    overscroll-behavior: contain;
    touch-action: pan-y;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.reaction-picker.open {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

.reaction-picker::-webkit-scrollbar {
    width: 8px;
}

.reaction-picker::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.reaction-picker-scroll::-webkit-scrollbar {
    width: 8px;
}

.reaction-picker-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.gift-picker.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.gift-picker-header {
    display: grid;
    gap: 8px;
}

.gift-picker-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
}

.gift-recipient-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
}

.gift-recipient-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.gift-recipient-chip.active {
    border-color: rgba(240, 192, 64, 0.38);
    background: rgba(240, 192, 64, 0.14);
}

.gift-recipient-chip:hover,
.gift-recipient-chip:focus-visible {
    transform: translateY(-1px);
}

.gift-recipient-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 214, 102, 0.16), rgba(255, 255, 255, 0.06));
    display: grid;
    place-items: center;
    font-size: 0.68rem;
    font-weight: 800;
}

.gift-recipient-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gift-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow-y: auto;
    max-height: min(44vh, 340px);
    padding-right: 4px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.gift-choice {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
    text-align: left;
}

.gift-choice:hover,
.gift-choice:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(240, 192, 64, 0.34);
    background: rgba(255, 255, 255, 0.05);
}

.gift-choice-visual {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 214, 102, 0.16), rgba(255, 255, 255, 0.03));
    display: grid;
    place-items: center;
}

.gift-choice-visual img,
.gift-choice-visual video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gift-choice-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
}

.gift-choice-meta {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.gift-choice-cost {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-self: start;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(240, 192, 64, 0.12);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
}

.reaction-choice {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
    touch-action: pan-y;
}

.reaction-choice:hover,
.reaction-choice:focus-visible {
    transform: translateY(-1px) scale(1.04);
    border-color: rgba(240, 192, 64, 0.45);
    background: rgba(255, 255, 255, 0.08);
}

.reaction-choice svg {
    width: 36px;
    height: 36px;
    display: block;
}

.reaction-choice img,
.reaction-fab img,
.reaction-burst img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.reaction-burst {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0;
    animation: reaction-pop 1.2s ease-out forwards;
    filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.35));
}

.reaction-burst::before {
    content: "";
    position: absolute;
    inset: -26px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(240, 192, 64, 0.16) 28%, rgba(240, 192, 64, 0) 70%);
    animation: reaction-glow 1.2s ease-out forwards;
}

.reaction-burst svg {
    position: relative;
    width: 100px;
    height: 100px;
}

.reaction-burst-icon {
    position: relative;
    width: 104px;
    height: 104px;
}

.reaction-burst-label {
    position: relative;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

@keyframes reaction-pop {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.25) rotate(-8deg); }
    16% { opacity: 1; transform: translate(-50%, -50%) scale(1.08) rotate(3deg); }
    35% { opacity: 1; transform: translate(-50%, -50%) scale(0.98) rotate(0deg); }
    72% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.16); }
}

@keyframes reaction-glow {
    0% { opacity: 0; transform: scale(0.6); }
    20% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.2); }
}

.gift-burst {
    position: fixed;
    inset: 0;
    z-index: 2600;
    display: block;
    pointer-events: none;
}

.gift-burst::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(62vw, 430px);
    height: min(62vw, 430px);
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.6);
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.24) 0%, rgba(240, 192, 64, 0.18) 30%, rgba(240, 192, 64, 0) 68%),
        radial-gradient(circle, rgba(57, 213, 255, 0.12) 0%, rgba(57, 213, 255, 0) 62%);
    opacity: 0;
    filter: blur(1px);
    animation: giftTableGlow 3.15s cubic-bezier(.2, .8, .2, 1) forwards;
}

.gift-burst-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: clamp(198px, 30vw, 260px);
    height: clamp(198px, 30vw, 260px);
    display: grid;
    place-items: center;
    opacity: 0;
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translate3d(-50%, -50%, 0) scale(0.7);
    filter: drop-shadow(0 18px 30px rgba(240, 192, 64, 0.34));
    animation: giftRevealOnTable 3.1s cubic-bezier(.2, .8, .2, 1) forwards;
}

.gift-burst-icon-still,
.gift-burst-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gift-burst-video {
    opacity: 0;
    transition: opacity 0.18s ease;
}

.gift-burst.is-video-ready .gift-burst-video {
    opacity: 1;
}

.gift-burst.is-video-ready .gift-burst-icon-still {
    opacity: 0;
}

.gift-burst-label {
    position: absolute;
    left: 50%;
    top: calc(50% + clamp(118px, 17vw, 150px));
    z-index: 3;
    max-width: min(78vw, 420px);
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(8, 13, 20, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
    text-align: center;
    line-height: 1.2;
    opacity: 0;
    transform: translate(-50%, 8px);
    animation: giftCaptionIn 2.75s ease 0.2s forwards;
}

.gift-burst-chip {
    position: absolute;
    left: 50%;
    top: calc(50% + clamp(154px, 21vw, 190px));
    z-index: 3;
    max-width: min(70vw, 360px);
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(240, 192, 64, 0.18);
    border: 1px solid rgba(240, 192, 64, 0.18);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0;
    transform: translate(-50%, 8px);
    animation: giftCaptionIn 2.75s ease 0.32s forwards;
}

@keyframes giftTableGlow {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.62); }
    12% { opacity: 1; transform: translate(-50%, -50%) scale(0.96); }
    78% { opacity: 0.86; transform: translate(-50%, -50%) scale(1.06); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.22); }
}

@keyframes giftRevealOnTable {
    0% {
        opacity: 0;
        transform: translate3d(-50%, -50%, 0) scale(0.82);
    }
    10% {
        opacity: 1;
        transform: translate3d(-50%, -50%, 0) scale(1.05);
    }
    84% {
        opacity: 1;
        transform: translate3d(-50%, -50%, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate3d(-50%, -50%, 0) scale(0.98);
    }
}

@keyframes giftCaptionIn {
    0% { opacity: 0; transform: translate(-50%, 8px); }
    12%, 82% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -6px); }
}

@media (prefers-reduced-motion: reduce) {
    .gift-burst::before,
    .gift-burst-icon,
    .gift-burst-label,
    .gift-burst-chip {
        animation-duration: 1.2s;
        animation-delay: 0s;
    }
}

.tile {
    display: inline-flex;
    align-items: center;
    background: var(--tile-bg);
    border: 1.5px solid var(--tile-border);
    border-radius: 4px;
    box-shadow: 1px 2px 6px var(--tile-shadow);
    cursor: default;
    position: relative;
    transition: transform 0.15s, box-shadow 0.15s;
    flex-shrink: 0;
    touch-action: manipulation;
}

.board-tile {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
}

.tile.horizontal {
    width: var(--tile-w);
    height: var(--tile-h);
}

.tile.vertical {
    width: var(--tile-h);
    height: var(--tile-w);
    flex-direction: column;
}

.tile .tile-half {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    width: 50%;
    height: 100%;
    padding: 2px;
}

.tile.vertical .tile-half {
    width: 100%;
    height: 50%;
}

.tile .tile-divider {
    width: 1.5px;
    background: var(--tile-border);
    align-self: stretch;
}

.tile.vertical .tile-divider {
    height: 1.5px;
    width: auto;
}

.tile .pip {
    width: var(--pip-size);
    height: var(--pip-size);
    background: var(--pip);
    border-radius: 50%;
    align-self: center;
    justify-self: center;
}

.tile .pip.hidden { visibility: hidden; }

.tile.playable {
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow), 0 0 20px rgba(240, 192, 64, 0.15), 1px 2px 6px var(--tile-shadow);
    animation: tileGlow 1.5s ease-in-out infinite alternate;
}

@keyframes tileGlow {
    from { box-shadow: 0 0 8px var(--accent-glow), 1px 2px 6px var(--tile-shadow); }
    to { box-shadow: 0 0 18px var(--accent-glow), 0 0 30px rgba(240, 192, 64, 0.2), 1px 2px 6px var(--tile-shadow); }
}

.tile.playable:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 6px 20px var(--accent-glow), 1px 2px 6px var(--tile-shadow);
}

.tile.selected {
    transform: translateY(-7px) scale(1.05);
    box-shadow: 0 0 20px var(--accent), 0 6px 20px var(--tile-shadow);
    border-color: var(--accent);
}

.board-tile.just-played {
    animation: boardTilePlace 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    z-index: 10;
}

@keyframes boardTilePlace {
    0% { transform: translate(-50%, -50%) scale(0.62); opacity: 0; filter: drop-shadow(0 18px 14px rgba(0, 0, 0, 0.45)); }
    65% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; filter: drop-shadow(1px 2px 6px var(--tile-shadow)); }
}

.tile.telephone-highlight,
.telephone-highlight {
    z-index: 8 !important;
    box-shadow: 0 0 20px var(--accent-glow) !important;
    border: 2px solid var(--accent) !important;
}

.score-pop {
    position: absolute;
    color: var(--accent);
    font-weight: 800;
    font-size: 1.4rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    animation: scorePop 1.5s ease-out forwards;
    pointer-events: none;
    z-index: 50;
}

@keyframes scorePop {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-50px) scale(1.3); opacity: 0; }
}

.overlay-content {
    background: rgba(15, 25, 35, 0.95);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 28px 32px;
    max-width: 420px;
    width: 92%;
    text-align: center;
}

.overlay-content h2 {
    color: var(--accent);
    margin-bottom: 16px;
    font-size: 1.3rem;
    font-weight: 700;
}

#round-end-title {
    color: var(--accent);
}

.overlay-content .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.88rem;
}

.overlay-content .detail-value {
    color: var(--accent);
    font-weight: 600;
}

#round-end-details .round-end-winner-row,
#round-end-details .round-end-winner-row *,
#round-end-details .round-end-winner-row .detail-value {
    color: var(--accent);
}

.overlay-content .btn { margin-top: 18px; }

/* TEST: ultra-transparent result modal. Remove result-overlay-test from HTML to return old style. */
.screen.overlay.result-overlay-test {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: auto;
}

.screen.overlay.result-overlay-test::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.screen.overlay.result-overlay-test .overlay-content {
    position: relative;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(15, 25, 35, 0.36),
        rgba(13, 23, 36, 0.28)
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow:
        0 18px 46px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.screen.overlay.result-overlay-test .overlay-content {
    background: linear-gradient(
        180deg,
        rgba(15, 25, 35, 0.51),
        rgba(13, 23, 36, 0.43)
    ) !important;
}

.screen.overlay.result-overlay-test .overlay-content h2,
.screen.overlay.result-overlay-test .overlay-content h3,
.screen.overlay.result-overlay-test .overlay-content p,
.screen.overlay.result-overlay-test .overlay-content div,
.screen.overlay.result-overlay-test #round-end-details,
.screen.overlay.result-overlay-test #game-over-details {
    color: #fff;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.75),
        0 0 18px rgba(0, 0, 0, 0.38);
}

.screen.overlay.result-overlay-test .detail-row span {
    color: #fff;
}

.screen.overlay.result-overlay-test .detail-value {
    color: #fff;
}

.screen.overlay.result-overlay-test .btn {
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
}

.btn-review-toggle {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
}

.btn-review-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: scale(1.08);
}

.screen.overlay.result-overlay-test .overlay-content {
    transition: opacity 0.25s ease;
}

.screen.overlay.result-overlay-test.review-mode .overlay-content {
    opacity: 0.08;
    pointer-events: none;
}

.review-mode-tip {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 25, 35, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 105;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.screen.overlay.result-overlay-test.review-mode .review-mode-tip {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.menu-panel {
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.menu-panel .btn-menu {
    text-align: center;
}

.menu-panel .btn-menu-shop {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
}

.menu-copyright {
    margin-top: auto;
    align-self: flex-end;
    padding-top: 18px;
}

.game-over-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    width: 100%;
}

.game-over-actions .btn {
    width: auto;
    margin-top: 18px;
    min-width: 0;
}

.menu-panel { text-align: left; }
.menu-panel h2 { text-align: center; }

.arrow-btn {
    background: rgba(240, 192, 64, 0.3);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(240, 192, 64, 0.6);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 25;
    animation: arrowPulse 1s ease-in-out infinite alternate;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    transform: translate(-50%, -50%);
    will-change: transform;
    position: absolute;
    overflow: visible;
}

.arrow-btn::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.arrow-btn.arrow-top::after {
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    border-top-color: rgba(240, 192, 64, 0.95);
}

.arrow-btn.arrow-bottom::after {
    left: 50%;
    top: -12px;
    transform: translateX(-50%);
    border-bottom-color: rgba(240, 192, 64, 0.95);
}

.arrow-btn.arrow-left::after {
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: rgba(240, 192, 64, 0.95);
}

.arrow-btn.arrow-right::after {
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: rgba(240, 192, 64, 0.95);
}

.arrow-btn:hover {
    background: rgba(240, 192, 64, 0.7);
    transform: translate(-50%, -50%) scale(1.08) !important;
}

@media (max-width: 390px) {
    .arrow-btn {
        width: 36px;
        height: 36px;
    }
}

@keyframes arrowPulse {
    from { box-shadow: 0 0 8px rgba(240, 192, 64, 0.3); }
    to { box-shadow: 0 0 20px rgba(240, 192, 64, 0.6); }
}

.active-turn {
    box-shadow: 0 0 0 1px rgba(240, 192, 64, 0.22), 0 0 24px rgba(240, 192, 64, 0.45), inset 0 0 14px rgba(240, 192, 64, 0.24);
    background: rgba(240, 192, 64, 0.06);
    border-radius: 16px;
    transition: box-shadow 0.3s, background 0.3s;
    animation: activeTurnPulse 1.1s ease-in-out infinite alternate;
}

.insufficient-coins-modal .modal-card {
    max-width: 560px;
}

.insufficient-coins-body {
    display: grid;
    gap: 16px;
}

.insufficient-coins-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.insufficient-coins-stat {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.insufficient-coins-stat span {
    color: var(--text-dim);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.insufficient-coins-stat strong {
    font-size: 1.45rem;
    color: var(--accent);
}

.insufficient-coins-actions {
    justify-content: flex-end;
}

.hand-container.active-turn {
    background: rgba(240, 192, 64, 0.12);
}

.opp-container.active-turn {
    background: rgba(240, 192, 64, 0.1);
}

@keyframes activeTurnPulse {
    from { box-shadow: 0 0 0 1px rgba(240, 192, 64, 0.18), 0 0 18px rgba(240, 192, 64, 0.34), inset 0 0 10px rgba(240, 192, 64, 0.16); }
    to { box-shadow: 0 0 0 1px rgba(240, 192, 64, 0.28), 0 0 30px rgba(240, 192, 64, 0.56), inset 0 0 16px rgba(240, 192, 64, 0.26); }
}

@media (max-width: 980px) {
    #start-screen { padding: 68px 16px 16px; }

    .start-hero {
        padding: 15px 18px 13px;
    }

    .start-hero-stage {
        min-height: 0;
    }

    .hero-notes {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }

    .rule-grid {
        gap: 8px;
    }

    .start-actions {
        grid-template-columns: 1fr;
    }

    .start-topbar {
        top: 12px;
        left: 12px;
        width: calc(100% - 24px);
        transform: none;
        gap: 10px;
    }

    .auth-landing-actions {
        grid-template-columns: 1fr;
    }

    .landing-email-form {
        grid-template-columns: 1fr;
    }

    .modal-card,
    .modal-card-wide {
        width: min(100%, 760px);
    }

    .modal-header {
        flex-direction: column;
    }

    .coin-shop-modal .modal-header {
        flex-direction: row;
        align-items: center;
    }

    .cosmetics-shop-modal .modal-header {
        flex-direction: row;
        align-items: center;
    }

    .coin-shop-intro,
    .cosmetics-shop-intro {
        text-align: left;
    }

    #account-modal .modal-header,
    .account-modal-header {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 680px) {
    #start-screen { padding-top: 74px; }

    .start-hero {
        padding: 14px 16px 12px;
    }

    .start-hero-stage {
        min-height: 0;
    }

    .brand-lockup {
        align-items: center;
        gap: 8px;
    }

    .start-title-row {
        justify-content: center;
    }

    .mode-switcher {
        min-width: min(100%, 208px);
    }

    .start-mode-switch-row {
        margin-top: -2px;
    }

    .start-compact-label {
        display: none;
    }

    .hero-notes,
    .settings-grid,
    .start-actions {
        grid-template-columns: 1fr;
    }

    .account-mode-stats {
        grid-template-columns: 1fr;
    }

    .start-topbar {
        top: 12px;
        left: 12px;
        width: calc(100% - 24px);
        transform: none;
        gap: 8px;
    }

    .start-profile-group {
        gap: 6px;
    }

    .start-profile-group .start-profile-btn,
    .start-profile-group .start-friends-btn,
    .start-profile-group .start-social-btn {
        height: 34px;
        width: 34px;
        padding: 0;
        border-radius: 10px;
        flex: 0 0 34px;
    }

    .start-profile-group .auth-icon,
    .start-profile-group .start-social-icon {
        width: 15px;
        height: 15px;
    }

    .start-profile-group .auth-icon svg,
    .start-profile-group .start-social-icon svg {
        width: 15px;
        height: 15px;
    }

    .start-social-btn .start-social-badge {
        position: absolute;
        top: -4px;
        right: -4px;
        min-width: 16px;
        height: 16px;
        line-height: 16px;
        font-size: 0.62rem;
        padding: 0 4px;
    }

    .start-shops-group {
        gap: 6px;
    }

    .start-shops-group .start-top-shop-btn {
        height: 34px;
        border-radius: 10px;
        padding: 0 8px;
        gap: 4px;
    }

    .start-shops-group .start-top-shop-btn .start-top-shop-icon {
        width: 15px;
        height: 15px;
    }

    .start-shops-group .start-top-shop-btn .start-top-shop-icon svg {
        width: 15px;
        height: 15px;
    }

    .start-shops-group .start-top-shop-btn .start-top-shop-label {
        font-size: 0.76rem;
    }

    .social-center-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .start-lang-select-wrap {
        flex: 0 0 58px;
    }

    .start-lang-select {
        height: 34px;
        border-radius: 10px;
        font-size: 0.7rem;
        padding: 0 16px 0 6px;
    }

    .start-lang-select-wrap::after {
        right: 6px;
        font-size: 0.6rem;
    }

    .start-mode-note {
        font-size: 0.7rem;
        padding: 7px 10px;
    }

    .auth-landing-card {
        padding: 14px;
        border-radius: 20px;
    }

    .field-span-2 {
        grid-column: auto;
    }

    .section-head,
    .section-head-online {
        flex-direction: column;
    }

    .section-note {
        max-width: none;
        text-align: left;
    }

    .room-code-line {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-card {
        padding: 16px;
    }

    #account-modal.screen {
        padding: 0;
    }

    #leaderboard-modal.screen {
        padding: 0 12px 12px;
    }

    #open-rooms-modal.screen {
        padding: 0;
    }

    #account-modal .modal-card-wide,
    #open-rooms-modal .modal-card-wide {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        padding: 16px;
    }

    .account-cabinet {
        grid-template-columns: 1fr;
    }

    .account-profile-tabs {
        gap: 6px;
        padding: 5px;
    }

    .account-profile-tab {
        padding: 8px 8px;
        font-size: 0.76rem;
    }

    .coin-shop-hero {
        flex-direction: column;
        margin: 0 16px 16px;
    }

    .cosmetics-shop-panel {
        margin: 0 16px 16px;
    }

    .coin-shop-grid {
        grid-template-columns: 1fr;
    }

    .coin-pack-grid {
        grid-template-columns: 1fr;
    }

    .table-skin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .game-header {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .btn-action {
        padding: 8px 12px;
        font-size: 0.78rem;
    }

    .opp-tile {
        width: 18px;
        height: 10px;
    }

    .hand {
        transform: scale(0.8);
        transform-origin: center bottom;
    }

    .reaction-picker {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(74px + env(safe-area-inset-bottom, 0px));
        transform: translateY(12px) scale(0.96);
        width: auto;
        max-height: min(56vh, 340px);
        padding: 8px;
        gap: 6px;
        z-index: 2600;
    }

    .reaction-picker.open {
        transform: translateY(0) scale(1);
    }

    .reaction-picker-scroll {
        max-height: min(56vh, 340px);
        gap: 6px;
    }

    .reaction-fab {
        width: clamp(34px, 10.5vw, 40px);
        height: clamp(34px, 10.5vw, 40px);
        min-width: clamp(34px, 10.5vw, 40px);
        border-radius: 13px;
    }

    .reaction-fab svg {
        width: clamp(22px, 6.8vw, 28px);
        height: clamp(22px, 6.8vw, 28px);
    }

    .reaction-choice svg {
        width: 28px;
        height: 28px;
    }

    .voice-slot {
        width: clamp(34px, 10.5vw, 40px);
        min-width: 0;
    }

    .voice-roster-panel {
        right: 10px;
        left: 10px;
        bottom: 84px;
        width: auto;
        max-height: min(46vh, 340px);
    }

    .voice-speaker {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .voice-speaker-actions {
        justify-content: flex-start;
    }

    .voice-speaker-actions .btn {
        min-height: 28px;
        padding-inline: 9px;
    }

    .voice-status {
        max-width: 64px;
        font-size: 0.52rem;
    }

    .menu-button-icon {
        width: 16px;
        height: 16px;
        margin-right: 8px;
    }

    .coin-shop-panel {
        padding: 14px;
    }

    .coin-shop-video-cta {
        align-items: stretch;
    }

    .coin-shop-video-btn,
    #coin-shop-video-btn {
        width: 100%;
    }

    .reaction-burst svg {
        width: 84px;
        height: 84px;
    }

    .reaction-burst-icon {
        width: 88px;
        height: 88px;
    }
}

/* Late overrides for dynamically injected HUD elements and legacy fallback strings. */
.menu-btn::before {
    content: "в°";
}

.game-info {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.78rem;
    line-height: 1.25;
}

#stake-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(240, 192, 64, 0.12);
    border: 1px solid rgba(240, 192, 64, 0.22);
    color: var(--accent);
    font-weight: 700;
}

#stake-info .stake-info-bank-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

#stake-info .stake-info-bank-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

#stake-info .stake-info-bank-value {
    line-height: 1;
}

.resume-session-banner {
    padding: 10px 0;
}

.resume-session-btn-solo {
    width: 100%;
}

.connection-banner {
    position: fixed;
    top: calc(14px + env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 25, 35, 0.92);
    color: #f5f7fb;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms ease, transform 180ms ease;
    max-width: min(92vw, 420px);
    text-align: center;
}

@media (max-width: 640px) {
    .overlay-content,
    .modal-card,
    .start-shell {
        margin-inline: 12px;
    }

    .overlay-content {
        padding: 18px 16px 20px;
    }

    .menu-panel,
    .modal-card {
        width: min(100%, calc(100vw - 24px));
    }

    .connection-banner {
        top: calc(10px + env(safe-area-inset-top));
        max-width: calc(100vw - 20px);
    }

    .social-feedback-trigger {
        padding-left: 10px;
        padding-right: 10px;
    }

    .social-feedback-label {
        display: none;
    }

    .social-feedback-card {
        padding: 18px 16px;
    }

    .social-feedback-modal .modal-card {
        width: min(100%, calc(100vw - 24px));
        padding: 16px;
    }

    .social-feedback-trigger {
        min-width: 32px;
    }

    .feedback-actions {
        grid-template-columns: 1fr;
    }
}

.connection-banner.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

body.is-reconnecting .action-bar,
body.is-reconnecting .hand-container {
    pointer-events: none;
    opacity: 0.88;
    filter: saturate(0.85);
}

@keyframes scorePopUp {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-60px); }
}

/* Daily Bonus Card Styling */
.daily-bonus-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    margin: 8px 0 12px 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(25, 38, 54, 0.75), rgba(13, 22, 34, 0.85));
    border: 1px solid rgba(240, 192, 64, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.daily-bonus-card:hover {
    border-color: rgba(240, 192, 64, 0.3);
    box-shadow: 0 8px 32px 0 rgba(240, 192, 64, 0.05), inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

.daily-bonus-card.is-hidden {
    display: none !important;
}

.daily-bonus-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 6px;
    gap: 8px;
}

.daily-bonus-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.daily-bonus-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffd56a;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.daily-bonus-meta {
    font-size: 0.65rem;
    color: var(--text-dim, #8ba3c7);
    line-height: 1.2;
}

.daily-bonus-reward {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(240, 192, 64, 0.08);
    border: 1px solid rgba(240, 192, 64, 0.15);
    padding: 3px 8px;
    border-radius: 12px;
}

.daily-bonus-reward strong {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #ffe596, #ffd56a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 8px rgba(240, 192, 64, 0.25);
}

.daily-bonus-reward span {
    font-size: 0.7rem;
    color: #ffd56a;
    font-weight: 600;
}

.daily-bonus-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.daily-bonus-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
}

.daily-bonus-action-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.daily-bonus-action-btn {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffe596 0%, #ffd56a 100%);
    color: #0c151f;
    border: none;
    box-shadow: 0 3px 8px rgba(240, 192, 64, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    text-align: center;
}

.daily-bonus-action-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(240, 192, 64, 0.4);
}

.daily-bonus-action-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.daily-bonus-action-btn:disabled {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.25);
    box-shadow: none;
    cursor: not-allowed;
}

.daily-bonus-action-amount {
    font-size: 0.65rem;
    line-height: 1;
    color: var(--text-dim, #8ba3c7);
    text-align: center;
    min-height: 0.9em;
}

.daily-bonus-actions-hint {
    font-size: 0.65rem;
    line-height: 1.2;
    color: var(--text-dim, #8ba3c7);
    text-align: center;
    min-height: 1em;
}

.daily-bonus-streak-row {
    display: flex;
    justify-content: space-between;
    gap: 3px;
    margin-top: 2px;
    width: 100%;
}

.daily-bonus-day-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 4px 1px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.52rem;
    color: var(--text-dim, #8ba3c7);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
    text-align: center;
}

.daily-bonus-day-box .day-num {
    font-weight: 500;
}

.daily-bonus-day-box .day-reward {
    font-weight: 700;
    color: #ffd56a;
}

.daily-bonus-day-box.is-claimed {
    background: rgba(79, 207, 151, 0.06);
    border-color: rgba(79, 207, 151, 0.25);
    color: #4fcf97;
}

.daily-bonus-day-box.is-claimed .day-reward {
    color: #4fcf97;
}

.daily-bonus-day-box.is-active {
    background: rgba(240, 192, 64, 0.1);
    border-color: rgba(240, 192, 64, 0.5);
    color: #fff;
    box-shadow: 0 0 6px rgba(240, 192, 64, 0.2);
    transform: scale(1.02);
}

.daily-bonus-day-box.is-active .day-reward {
    color: #ffe596;
}

/* ==========================================================================
   MOBILE-FIRST FULLSCREEN SOCIAL HUB & CHAT SCREENS
   ========================================================================== */

/* Fullscreen Social Hub Screen */
.social-hub-screen {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 24000;
    background: radial-gradient(circle at top, #0f1c2e 0%, #060a10 100%);
    flex-direction: column;
    overflow: hidden;
}

.social-hub-screen.active {
    display: flex;
}

/* Premium Header for Social Hub */
.social-hub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 16px;
    background: rgba(10, 16, 26, 0.95);
    border-bottom: 1px solid rgba(88, 162, 255, 0.15);
    backdrop-filter: blur(16px);
    flex-shrink: 0;
}

.social-hub-header-left h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.social-hub-header-left {
    min-width: 0;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
}

.social-hub-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    flex-wrap: nowrap;
}

.social-feedback-trigger {
    width: 32px;
    min-width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex: 0 0 32px;
    flex-shrink: 0;
    overflow: hidden;
}

.social-feedback-trigger .feedback-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.social-feedback-label {
    display: none;
}

/* Currency Chips inside Header */
.header-currency-chip {
    display: flex;
    align-items: center;
    height: 28px;
    padding: 0 4px 0 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    gap: 6px;
}

.currency-icon {
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

.coin-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffd56a"><circle cx="12" cy="12" r="10"/><circle cx="12" cy="12" r="6" fill="none" stroke="%23b8860b" stroke-width="2"/><rect x="11" y="8" width="2" height="8" rx="0.5"/><rect x="8" y="11" width="8" height="2" rx="0.5"/></svg>');
}

.rating-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234fcfcf"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>');
}

.currency-value {
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
}

.currency-plus {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #184c85;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Close & Back Button */
.social-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 400;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 0;
}

.social-close-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.4);
    color: #ffffff;
}

/* Segmented Capsule Tabs */
.social-hub-tabs-container {
    padding: 12px 16px;
    background: rgba(8, 12, 20, 0.4);
    flex-shrink: 0;
}

.social-hub-tabs {
    display: flex;
    background: rgba(4, 8, 14, 0.7);
    border: 1px solid rgba(88, 162, 255, 0.1);
    border-radius: 20px;
    padding: 3px;
    gap: 2px;
}

.social-hub-tab {
    flex: 1;
    height: 36px;
    border-radius: 17px;
    border: none;
    background: transparent;
    color: #8f9cae;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.social-hub-tab:hover {
    color: #ffffff;
}

.social-hub-tab.is-active {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(240, 192, 64, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(240, 192, 64, 0.4);
}

/* Tab Icon glyphs inside segmented control */
.tab-icon {
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
}

.social-hub-tab.is-active .tab-icon {
    opacity: 1;
}

.mail-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/><polyline points="22,6 12,13 2,6"/></svg>');
}

.social-hub-tab.is-active .mail-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%231a1a1a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/><polyline points="22,6 12,13 2,6"/></svg>');
}

.friends-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M23 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg>');
}

.social-hub-tab.is-active .friends-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%231a1a1a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M23 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg>');
}

.feedback-icon {
    display: inline-block;
    background-color: currentColor;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M4 14v-2a8 8 0 0 1 16 0v2"/><rect x="2.5" y="14" width="4" height="6" rx="1.5"/><rect x="17.5" y="14" width="4" height="6" rx="1.5"/></svg>') center/contain no-repeat;
    mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M4 14v-2a8 8 0 0 1 16 0v2"/><rect x="2.5" y="14" width="4" height="6" rx="1.5"/><rect x="17.5" y="14" width="4" height="6" rx="1.5"/></svg>') center/contain no-repeat;
}

/* Red Unread Badges on Tabs */
.tab-badge {
    position: absolute;
    top: -4px;
    right: 12px;
    background: #ff4a4a;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #080c14;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.tab-badge.is-hidden {
    display: none;
}

/* Content Panel Layout */
.social-hub-content {
    flex: 1;
    overflow-y: auto;
    padding: 4px 16px 16px 16px;
    display: flex;
    flex-direction: column;
}

.social-hub-panel-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-center-panel.is-hidden {
    display: none;
}

.friends-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.section-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    color: #8f9cae;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-left: 4px;
    margin-top: 4px;
}

/* Dostlar Tab Search & Filter Row */
.friends-search-row {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    width: 14px;
    height: 14px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%238f9cae" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>');
    pointer-events: none;
}

#friends-search-input {
    width: 100%;
    height: 38px;
    border-radius: 19px;
    border: 1px solid rgba(88, 162, 255, 0.12);
    background: rgba(4, 8, 14, 0.7);
    color: #ffffff;
    padding: 0 12px 0 36px;
    font-size: 0.85rem;
    outline: none;
}

#friends-search-input:focus {
    border-color: rgba(88, 162, 255, 0.4);
    box-shadow: 0 0 10px rgba(88, 162, 255, 0.15);
}

.friends-filter-btn {
    height: 38px;
    padding: 0 14px;
    border-radius: 19px;
    border: 1px solid rgba(88, 162, 255, 0.12);
    background: rgba(16, 28, 46, 0.7);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.friends-filter-btn:hover {
    background: rgba(24, 44, 74, 0.8);
    border-color: rgba(88, 162, 255, 0.3);
}

.filter-icon {
    width: 12px;
    height: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"/></svg>');
}

/* Sort Row */
.friends-sort-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 4px;
}

.friends-count-kicker {
    font-size: 0.7rem;
    font-weight: 800;
    color: #8f9cae;
    letter-spacing: 0.05em;
}

.friends-sort-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #8f9cae;
    cursor: pointer;
}

.sort-chevron {
    font-size: 0.55rem;
    color: #ffd56a;
}

/* Premium Social Game Cards */
.friends-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.premium-social-card {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(16, 28, 48, 0.6) 0%, rgba(9, 15, 26, 0.8) 100%);
    border: 1px solid rgba(88, 162, 255, 0.08);
    border-radius: 16px;
    gap: 12px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.premium-social-card:hover {
    transform: translateY(-1px);
    border-color: rgba(88, 162, 255, 0.2);
    box-shadow: 0 6px 20px rgba(88, 162, 255, 0.08);
}

.premium-social-card.is-unread {
    border-color: rgba(24, 76, 133, 0.4);
    background: linear-gradient(135deg, rgba(20, 36, 62, 0.7) 0%, rgba(9, 15, 26, 0.8) 100%);
}

/* Rounded Avatar Container with Rating Badge Overlay */
.premium-avatar-wrapper {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.premium-avatar-frame {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(240, 192, 64, 0.5); /* Gold frame */
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    box-sizing: border-box;
}

.premium-avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Avatar Level Overlay Badge */
.premium-avatar-level {
    position: absolute;
    bottom: -2px;
    left: -2px;
    background: #ffd56a;
    border: 1px solid #060a10;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    display: grid;
    place-items: center;
    color: #000000;
    font-size: 0.55rem;
    font-weight: 800;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.premium-avatar-presence-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2.5px solid #060a10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    z-index: 2;
    box-sizing: border-box;
}
.premium-avatar-presence-dot.is-online {
    background-color: #00C853;
}
.premium-avatar-presence-dot.is-in_game {
    background-color: #FF9100;
}
.premium-avatar-presence-dot.is-offline {
    background-color: #757575;
}

/* Presence Dot Indicator */
.presence-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8f9cae; /* offline by default */
    display: inline-block;
    flex-shrink: 0;
}

.is-online .presence-dot {
    background: #4fcf97; /* green online dot */
    box-shadow: 0 0 5px rgba(79, 207, 151, 0.5);
}

.is-in-game .presence-dot {
    background: #ffb066;
    box-shadow: 0 0 5px rgba(255, 176, 102, 0.5);
}

/* Card Info Copy Layout */
.friend-card-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
}

.friend-card-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-card-status, .friend-card-desc {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #8f9cae;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-card-status.is-online {
    color: #4fcf97;
}

.friend-card-status.is-in-game {
    color: #ffb066;
}

/* Card Metadata column (Right element) */
.friend-card-meta-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
    flex-shrink: 0;
    padding-left: 6px;
}

.friend-card-time {
    font-size: 0.68rem;
    font-weight: 500;
    color: #8f9cae;
}

.friend-card-unread-badge {
    background: #184c85;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Card Actions Container (Invite/Remove/Accept/Decline buttons) */
.friend-card-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-items: center;
}

.friend-card-actions .btn.action-text-btn {
    flex: 1 1 0;
    min-width: 0;
}

.friend-card-actions .btn.action-icon-btn {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    display: grid;
    place-items: center;
}

.friend-card-actions .btn.action-icon-btn svg {
    width: 16px;
    height: 16px;
}

.contextual-room-invite-overlay {
    align-items: center;
}

.contextual-room-invite-card {
    width: min(94vw, 680px);
    max-height: min(88vh, 760px);
    display: grid;
    gap: 14px;
}

.contextual-room-invite-header {
    align-items: flex-start;
}

.contextual-room-invite-body {
    display: grid;
    gap: 10px;
    min-height: 0;
}

.contextual-room-invite-search {
    width: 100%;
}

.contextual-room-invite-list {
    max-height: min(56vh, 420px);
    overflow: auto;
    padding-right: 2px;
}

.contextual-room-invite-btn {
    min-width: 120px;
}

.inbox-card-preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.inbox-card-preview-row .friend-card-desc {
    flex: 1 1 auto;
    min-width: 0;
}

/* Custom styles for action buttons inside social lists to keep them tiny/clean */
.invite-action-btn, .accept-btn, .claim-reward-btn, .accept-invite-btn {
    height: 28px;
    padding: 0 10px;
    border-radius: 14px;
    font-size: 0.72rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffd56a 0%, #ffbe3b 100%);
    color: #000000;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(255, 190, 59, 0.2);
}

.invite-action-btn:disabled, .accept-invite-btn:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: #8f9cae;
    box-shadow: none;
    cursor: not-allowed;
}

.remove-action-btn, .decline-btn, .delete-reward-btn, .decline-invite-btn, .cancel-invite-btn, .delete-chat-action {
    height: 28px;
    padding: 0 8px;
    border-radius: 14px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ff8888;
    cursor: pointer;
}

.remove-action-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 1.1rem;
    line-height: 0;
    display: grid;
    place-items: center;
}

.open-chat-action {
    height: 28px;
    padding: 0 10px;
    border-radius: 14px;
    font-size: 0.72rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    color: #1a1a1a;
    border: 1px solid rgba(240, 192, 64, 0.4);
}

/* System rewards / news inbox special emoji representation */
.system-inbox-icon .premium-avatar-frame {
    border-color: rgba(88, 162, 255, 0.4);
    background: rgba(88, 162, 255, 0.08);
}

.system-icon-glyph {
    font-size: 1.2rem;
}

/* ==========================================================================
   Chat Screen - Sibling View
   ========================================================================== */
.chat-screen {
    display: flex;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 25000;
    background: #060a10;
    flex-direction: column;
    overflow: hidden;
}

.chat-screen.is-hidden {
    display: none;
}

.chat-screen-layout {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 0 !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    gap: 0 !important;
}

/* Header */
.chat-header {
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 16px;
    background: rgba(10, 16, 26, 0.95);
    border-bottom: 1px solid rgba(88, 162, 255, 0.15);
    backdrop-filter: blur(16px);
    gap: 12px;
    flex-shrink: 0;
}

.chat-back-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 0;
    position: relative;
    flex-shrink: 0;
}

.chat-back-btn::before {
    content: "";
    width: 7px;
    height: 7px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(1px, -1px);
    display: block;
}

.chat-back-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffd56a;
}

.chat-header-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

/* Chat Header Avatar uses the same premium avatar wrapper class */
.chat-header-profile .premium-avatar-wrapper {
    width: 36px;
    height: 36px;
}

.chat-header-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-header-name {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-header-status {
    font-size: 0.68rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-header-status.is-online {
    color: #4fcf97;
}

.chat-header-status.is-in-game {
    color: #ffb066;
}

.chat-header-status.is-offline {
    color: #8f9cae;
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.chat-action-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    color: var(--text);
    cursor: pointer;
    flex: 0 0 auto;
    overflow: hidden;
}

.chat-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chat-action-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.chat-action-btn.is-danger {
    color: #ff7c7c;
}

.chat-action-btn.is-danger:hover {
    background: rgba(255, 123, 123, 0.12);
    border-color: rgba(255, 123, 123, 0.38);
}

.chat-header-profile-action {
    height: 30px;
    padding: 0 12px;
    font-size: 0.75rem;
    border-radius: 15px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.chat-header-profile-action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffd56a;
}

/* Chat Messages Area with dynamic separators and bubble styles */
.chat-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: radial-gradient(circle at center, #0f1c2e 0%, #060a10 100%);
    box-sizing: border-box;
}

.chat-messages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Chat loading spinner */
.chat-loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--color-primary, #00C853);
    animation: chat-spin 1s linear infinite;
    margin: 40px auto;
}

@keyframes chat-spin {
    to { transform: rotate(360deg); }
}

/* Date Separators */
.chat-date-separator {
    display: flex;
    justify-content: center;
    margin: 8px 0;
}

.chat-date-separator span {
    background: rgba(4, 8, 14, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #8f9cae;
}

/* Bubble Message Layout */
.message-row {
    display: flex;
    gap: 8px;
    max-width: 82%;
    align-items: flex-end;
    background: none !important;
    border: none !important;
    padding: 6px 0 !important;
    box-shadow: none !important;
}

.message-row.is-other {
    align-self: flex-start;
}

.message-row.is-self {
    align-self: flex-end;
    flex-direction: row-reverse;
}

/* Other player avatar inside the message list */
.message-row .premium-avatar-wrapper {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    margin-bottom: 2px;
}

.message-row .premium-avatar-level {
    width: 11px;
    height: 11px;
    font-size: 0.45rem;
    bottom: -1px;
    left: -1px;
}

.message-row .premium-avatar-frame {
    border-width: 1.5px;
}

.message-bubble-container {
    display: flex;
    flex-direction: column;
}

.message-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Other player message bubble style */
.message-row.is-other .message-bubble {
    background: #11233d;
    border: 1px solid rgba(88, 162, 255, 0.08);
    border-bottom-left-radius: 4px;
}

/* Self message bubble style */
.message-row.is-self .message-bubble {
    background: linear-gradient(135deg, #103b73 0%, #1c5ba6 100%);
    border: 1px solid rgba(88, 162, 255, 0.2);
    border-bottom-right-radius: 4px;
}

.message-text {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #ffffff;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Time & checkmarks footer */
.message-bubble-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    align-self: flex-end;
    margin-top: 1px;
}

.message-time {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.message-checks {
    display: flex;
    align-items: center;
    width: 12px;
    height: 12px;
    color: #ffd56a;
}

.message-checks.is-read {
    color: #4da6ff; /* blue for read */
}

.message-checks.is-sent {
    color: rgba(255, 255, 255, 0.6); /* grey for sent */
}

.message-checks.is-pending {
    color: rgba(255, 255, 255, 0.4); /* light grey for sending */
}

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

.message-checks.is-pending svg {
    animation: spin-checks 1.5s linear infinite;
}

.message-checks.is-failed {
    color: #ff3b30; /* red for failed */
}

.message-checks svg {
    width: 100%;
    height: 100%;
}

/* Bottom Composer Footer bar */
.chat-compose-area {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) 12px;
    background: rgba(10, 16, 26, 0.98);
    border-top: 1px solid rgba(88, 162, 255, 0.15);
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Emoji Picker Overlay */
.chat-emoji-picker {
    position: absolute;
    bottom: 46px;
    right: 0;
    background: #0f1c2e;
    border: 1px solid rgba(88, 162, 255, 0.25);
    border-radius: 12px;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    z-index: 26000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.chat-emoji-picker.is-hidden {
    display: none;
}

.emoji-picker-item {
    font-size: 1.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.15s ease;
    display: grid;
    place-items: center;
    line-height: 1;
}

.emoji-picker-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* composer Buttons */
.composer-attach-btn,
.composer-voice-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    color: #8f9cae;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.composer-attach-btn svg,
.composer-voice-btn svg {
    width: 18px;
    height: 18px;
}

.composer-attach-btn:hover,
.composer-voice-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.composer-voice-btn.is-recording {
    background: rgba(255, 59, 48, 0.15) !important;
    border-color: rgba(255, 59, 48, 0.3) !important;
    color: #ff3b30 !important;
    animation: voice-mic-pulse 0.8s infinite alternate;
}

@keyframes voice-mic-pulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Composer Input Box wrapper with Emoji Button */
.chat-compose-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.chat-message-input {
    width: 100%;
    height: 38px;
    border-radius: 19px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    padding: 0 40px 0 14px;
    font-size: 0.85rem;
    outline: none;
    box-sizing: border-box;
}

.chat-message-input::placeholder {
    color: #8f9cae;
}

.chat-message-input:focus {
    border-color: rgba(88, 162, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

.composer-emoji-btn {
    position: absolute;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 0;
    outline: none;
    display: grid;
    place-items: center;
}

/* Circle Send Button */
.chat-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    border: 1px solid rgba(240, 192, 64, 0.35);
    color: #1a1a1a;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0 !important;
}

.chat-send-btn:hover {
    box-shadow: 0 0 10px rgba(240, 192, 64, 0.45);
    transform: scale(1.03);
}

.chat-send-btn svg {
    width: 16px;
    height: 16px;
    transform: translate(1px, 0); /* visual centering adjustment */
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Disabled button feedback across modal buttons */
.btn:disabled, .btn-action:disabled, .btn-menu:disabled {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    filter: brightness(0.8) grayscale(0.2) !important;
    pointer-events: none !important;
}

/* Invitation status banner style */
.invite-status-banner {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.12), rgba(39, 174, 96, 0.04));
    border: 1.5px solid rgba(46, 204, 113, 0.35);
    border-radius: 12px;
    padding: 14px 20px;
    margin: 12px 0 16px 0;
    color: #2ecc71;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.08);
    display: block;
    animation: fadeInSlideDown 0.3s ease-out;
}

.invite-status-banner.is-hidden {
    display: none !important;
}

@keyframes fadeInSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.invite-action-btn.is-invited,
.btn.is-invited {
    background: rgba(39, 174, 96, 0.15) !important;
    border: 1.5px solid rgba(39, 174, 96, 0.45) !important;
    color: #2ecc71 !important;
    pointer-events: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Custom Profile Screen Overrides to match Social Hub/Messages design */
#account-modal.screen,
#coin-shop-modal.screen,
#cosmetics-shop-modal.screen,
#open-rooms-modal.screen {
    background: radial-gradient(circle at top, #0f1c2e 0%, #060a10 100%);
}

#account-modal #account-modal-close,
#coin-shop-modal #coin-shop-modal-close,
#cosmetics-shop-modal #cosmetics-shop-modal-close,
#leaderboard-modal #leaderboard-modal-close,
#open-rooms-modal #open-rooms-modal-close {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 400;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 0;
    padding: 0;
}

#account-modal #account-modal-close:hover,
#coin-shop-modal #coin-shop-modal-close:hover,
#cosmetics-shop-modal #cosmetics-shop-modal-close:hover,
#leaderboard-modal #leaderboard-modal-close:hover,
#open-rooms-modal #open-rooms-modal-close:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.4);
    color: #ffffff;
}

#account-modal .account-modal-header,
#coin-shop-modal .account-modal-header,
#cosmetics-shop-modal .account-modal-header,
#leaderboard-modal .account-modal-header,
#open-rooms-modal .account-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 16px;
    background: transparent;
    border-bottom: 1px solid rgba(88, 162, 255, 0.15);
    backdrop-filter: blur(16px);
    flex-shrink: 0;
    box-sizing: border-box;
    margin-bottom: 0;
}

#account-modal .account-modal-title-wrap h2,
#coin-shop-modal .account-modal-title-wrap h2,
#cosmetics-shop-modal .account-modal-title-wrap h2,
#leaderboard-modal .account-modal-title-wrap h2,
#open-rooms-modal .account-modal-title-wrap h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}

#account-modal .modal-card-wide,
#coin-shop-modal .modal-card-wide,
#cosmetics-shop-modal .modal-card-wide,
#open-rooms-modal .modal-card-wide {
    width: 100%;
    max-width: 960px;
    flex: 1;
    min-height: 0;
    margin: 0 auto;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    padding: 0 0 16px 0;
    overflow-y: auto;
    box-sizing: border-box;
}

#account-modal .account-profile-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: rgba(4, 8, 14, 0.7);
    border: 1px solid rgba(240, 192, 64, 0.2);
    border-radius: 20px;
    padding: 3px;
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
}

#account-modal .account-profile-tab {
    height: 36px;
    border-radius: 17px;
    border: none;
    background: transparent;
    color: #8f9cae;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
    line-height: 1.15;
}

#account-modal .account-profile-tab:hover {
    color: #ffffff;
}

#account-modal .account-profile-tab.is-active {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(240, 192, 64, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(240, 192, 64, 0.4);
}

/* Adjust paddings for content inside screen pages because the outer card wrapper padding is removed */
#account-modal .account-cabinet,
#coin-shop-modal .coin-shop-hero,
#coin-shop-modal .coin-shop-grid,
#coin-shop-modal #coin-shop-footnote,
#cosmetics-shop-modal .cosmetics-shop-hero,
#cosmetics-shop-modal .cosmetics-shop-panel,
#cosmetics-shop-modal #cosmetics-shop-footnote,
#open-rooms-modal #open-rooms-list-ui {
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

#account-modal .account-cabinet {
    padding-left: 5px;
    padding-right: 9px;
}

#account-modal .account-history {
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    #account-modal .account-cabinet,
    #coin-shop-modal .coin-shop-hero,
    #coin-shop-modal .coin-shop-grid,
    #coin-shop-modal #coin-shop-footnote,
    #cosmetics-shop-modal .cosmetics-shop-hero,
    #cosmetics-shop-modal .cosmetics-shop-panel,
    #cosmetics-shop-modal #cosmetics-shop-footnote,
    #open-rooms-modal #open-rooms-list-ui,
    #open-rooms-modal .page-description {
        padding-left: 16px;
        padding-right: 16px;
    }

    #account-modal .account-cabinet {
        padding-left: 5px;
        padding-right: 9px;
    }

    #account-modal .account-history {
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .open-room-waiting-banner {
        padding-top: 92px;
        padding-bottom: 138px;
    }

    .open-room-waiting-card {
        padding: 18px 18px 16px;
        border-radius: 20px;
    }

    .open-rooms-filter-panel {
        padding-left: 0;
        padding-right: 0;
    }

    .open-room-mode-toggle {
        gap: 4px;
        padding: 10px 8px;
    }

    .open-room-toggle-icon,
    .open-room-toggle-label,
    .open-room-stake-toggle {
        font-size: 0.75rem;
    }

    .open-room-card {
        padding: 8px 10px;
        gap: 8px;
        grid-template-columns: minmax(0, 3fr) minmax(76px, 1.8fr);
    }
    .open-room-owner {
        font-size: 0.88rem;
        max-width: 80px;
    }
    .open-room-code {
        font-size: 0.75rem;
        padding: 1px 4px;
    }
    .open-room-mode {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    .open-room-card-bottom {
        gap: 8px;
    }
    .open-room-players,
    .open-room-stake {
        font-size: 0.76rem;
    }
    .open-room-join-btn {
        font-size: 0.78rem !important;
    }
}

/* Mobile vertical overflow and z-index fixes */
@media (max-height: 680px) {
    .modal-backdrop {
        align-items: flex-start;
        overflow-y: auto;
    }
    .modal-card {
        max-height: none;
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

/* Round Stage Banner */
.round-stage-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 400px;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.round-stage-banner.is-hidden {
    opacity: 0;
    transform: translate(-50%, -45%);
    pointer-events: none;
    display: none !important;
}

.round-stage-banner.is-blocking {
    pointer-events: auto;
}

.round-stage-card {
    background: rgba(20, 20, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 24px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    text-align: center;
    animation: stageCardPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes stageCardPop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.round-stage-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent, #ffd700);
    margin-bottom: 8px;
    font-weight: 700;
}

.round-stage-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.round-stage-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.round-stage-tile {
    display: inline-flex;
    margin-top: 14px;
    background: #ffffff;
    color: #000000;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 800;
    font-size: 1.1rem;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    align-items: center;
}

.round-stage-tile .divider {
    width: 2px;
    height: 16px;
    background: #000000;
    opacity: 0.3;
}

/* Locked hand UI style */
.hand-container.input-locked {
    pointer-events: none;
    opacity: 0.6;
    filter: grayscale(0.3);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

/* Threat Badges */
.opp-threat-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.opp-threat-badge .threat-sub {
    font-size: 0.6rem;
    opacity: 0.8;
    margin-left: 4px;
    font-weight: 500;
}

/* Opponent Hand Group Threat Colors */
/* Teammate warning (neutral/blue) */
.opp-hand-group.teammate-warning .opp-threat-badge {
    background: linear-gradient(135deg, #1e3c72, #2a5298) !important;
    color: #e0f2fe !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

/* 1 tile threat (danger-single: red/gold) */
.opp-hand-group.danger-single .opp-threat-badge {
    background: linear-gradient(135deg, #b91c1c, #dc2626) !important;
    color: #fee2e2 !important;
    border: 1px solid rgba(248, 113, 113, 0.4) !important;
    animation: pulseGlowRed 1.5s infinite alternate;
}

/* 2 tiles/gosha threat (danger-two: orange/yellow) */
.opp-hand-group.danger-two .opp-threat-badge {
    background: linear-gradient(135deg, #d97706, #ea580c) !important;
    color: #fef3c7 !important;
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
}

/* Gosha finish threat (danger-gosha: purple/gold) */
.opp-hand-group.danger-gosha .opp-threat-badge {
    background: linear-gradient(135deg, #6d28d9, #7c3aed) !important;
    color: #f5f3ff !important;
    border: 1px solid rgba(167, 139, 250, 0.4) !important;
    animation: pulseGlowPurple 1.5s infinite alternate;
}

@keyframes pulseGlowRed {
    0% { box-shadow: 0 0 5px rgba(220, 38, 38, 0.4); }
    100% { box-shadow: 0 0 15px rgba(220, 38, 38, 0.8); }
}

@keyframes pulseGlowPurple {
    0% { box-shadow: 0 0 5px rgba(124, 58, 237, 0.4); }
    100% { box-shadow: 0 0 15px rgba(124, 58, 237, 0.8); }
}

/* Chat voice recording status & animations */
@keyframes pulse-voice {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.chat-voice-recording-status {
    animation: fadeIn 0.2s ease;
}

.voice-record-dot {
    box-shadow: 0 0 8px rgba(255, 59, 48, 0.6);
}

/* Chat voice custom bubble player */
.chat-voice-bubble {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 6px 12px !important;
    min-width: 140px;
}

.chat-voice-bubble button {
    transition: transform 0.1s ease;
}

.chat-voice-bubble button:active {
    transform: scale(0.85);
}

/* Chat image bubble */
.chat-image-bubble img {
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-image-bubble img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Gift picker custom styles */
.gift-picker-menubar button {
    transition: all 0.2s ease;
}

.gift-picker-menubar button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.chat-voice-progress {
    -webkit-appearance: none;
    appearance: none;
    flex-grow: 1;
    min-width: 60px;
    max-width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    margin: 0 6px;
    transition: background 0.1s;
}

.chat-voice-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00e676;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.chat-voice-progress::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00e676;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}



