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

:root {
    --purple: #7c3aed;
    --dark-purple: #6d28d9;
    --pink: #ec4899;
    --light-pink: #fdf2f8;
    --light-purple: #f5f3ff;
    --text: #241f2b;
    --muted: #716b78;
    --white: #ffffff;
    --border: #eadff0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #fff7fc, #f7f3ff);
    color: var(--text);
    min-height: 100vh;
}

/* V11: Appearance is a real app-wide setting, not just a selected button. */
html[data-app-appearance="dark"] {
    --text: #f7f2fb;
    --muted: #bdb4c8;
    --white: #17131d;
    --border: #3b3344;
    --light-purple: #2a2136;
    --light-pink: #351f2e;
}
html[data-app-appearance="dark"] body {
    background: radial-gradient(circle at 10% 0%, #30203e, transparent 34%), linear-gradient(145deg, #100d14, #18131f 55%, #120f18);
    color: var(--text);
}
html[data-app-appearance="dark"] .topbar,
html[data-app-appearance="dark"] .conversation-panel,
html[data-app-appearance="dark"] .settings-tile,
html[data-app-appearance="dark"] .info-modal-card,
html[data-app-appearance="dark"] .chat-settings-card,
html[data-app-appearance="dark"] input,
html[data-app-appearance="dark"] textarea,
html[data-app-appearance="dark"] select,
html[data-app-appearance="dark"] .appearance-choice,
html[data-app-appearance="dark"] .chat-theme-option,
html[data-app-appearance="dark"] .chat-wallpaper-option {
    background: #1c1723;
    color: var(--text);
    border-color: var(--border);
}
html[data-app-appearance="dark"] .muted,
html[data-app-appearance="dark"] .tiny { color: var(--muted); }
html[data-app-appearance="dark"] .settings-note { background: #2a2136; color: #ddd1ff; }
html[data-app-appearance="dark"] .info-modal,
html[data-app-appearance="dark"] .chat-settings-modal { background: rgba(0,0,0,.68); }


button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

/* TOP NAVIGATION */

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;

    min-height: 72px;

    background: rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 6%;

    gap: 20px;
}

.brand {
    border: none;
    background: none;

    font-weight: 900;
    font-size: 26px;

    letter-spacing: 1px;

    background: linear-gradient(
        90deg,
        var(--purple),
        var(--pink)
    );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.nav {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.nav button,
.small-btn {
    border: none;

    background: transparent;

    padding: 10px 12px;

    border-radius: 12px;

    color: #443c4b;
}

.nav button:hover,
.nav button.active {
    background: var(--light-purple);
    color: var(--purple);
}

.small-btn {
    border: 1px solid #d8c8e8;

    color: var(--purple);

    font-weight: 700;
}

/* PAGES */

.page {
    display: none;

    min-height: calc(100vh - 140px);
}

.page.active {
    display: block;
}

/* HOME */

.hero {
    max-width: 900px;

    margin: 0 auto;

    padding: 100px 22px 65px;

    text-align: center;
}

.badge {
    display: inline-block;

    padding: 9px 14px;

    border-radius: 999px;

    background: var(--light-pink);

    color: var(--pink);

    font-weight: 700;

    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(44px, 8vw, 76px);

    line-height: 1.03;

    margin-bottom: 22px;
}

.hero h1 span {
    background: linear-gradient(
        90deg,
        var(--purple),
        var(--pink)
    );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero p {
    max-width: 650px;

    margin: 0 auto 30px;

    color: var(--muted);

    font-size: 19px;

    line-height: 1.6;
}

.hero-actions {
    display: flex;

    justify-content: center;

    gap: 12px;

    flex-wrap: wrap;
}

/* BUTTONS */

.btn {
    border: none;

    border-radius: 14px;

    padding: 13px 20px;

    font-weight: 800;

    transition:
        0.15s transform,
        0.15s opacity;
}

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

    opacity: 0.93;
}

.primary {
    background: linear-gradient(
        90deg,
        var(--purple),
        var(--pink)
    );

    color: white;
}

.secondary {
    background: white;

    color: var(--purple);

    border: 1px solid #d9c9ea;
}

.danger {
    background: #fff0f5;

    color: #c02667;

    border: 1px solid #f4bfd7;
}

.full {
    width: 100%;
}

/* FEATURES */

.feature-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;

    max-width: 1050px;

    margin: 0 auto;

    padding: 0 22px 70px;
}

.feature-card {
    background: white;

    border: 1px solid var(--border);

    box-shadow:
        0 15px 40px
        rgba(72, 37, 94, 0.08);

    border-radius: 24px;

    padding: 30px;

    text-align: center;
}

.icon {
    font-size: 40px;

    margin-bottom: 12px;
}

.feature-card h3 {
    margin-bottom: 9px;
}

.feature-card p {
    color: var(--muted);

    line-height: 1.5;
}

/* GENERAL CONTAINERS */

.container {
    max-width: 1100px;

    margin: auto;

    padding: 55px 22px;
}

.narrow {
    max-width: 720px;
}

/* FORMS */

.form-card {
    max-width: 520px;

    margin: 55px auto;

    padding: 34px;

    background: white;

    border: 1px solid var(--border);

    box-shadow:
        0 15px 40px
        rgba(72, 37, 94, 0.08);

    border-radius: 24px;
}

.form-card h2 {
    font-size: 30px;

    margin-bottom: 8px;
}

.muted {
    color: var(--muted);

    line-height: 1.5;
}

.form-card form {
    margin-top: 22px;
}

input,
textarea,
select {
    width: 100%;

    border: 1px solid #ded4e5;

    background: white;

    border-radius: 13px;

    padding: 13px 14px;

    margin-bottom: 13px;

    outline: none;

    color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--pink);

    box-shadow:
        0 0 0 3px
        rgba(236, 72, 153, 0.10);
}

textarea {
    min-height: 120px;

    resize: vertical;
}

.switch-text {
    text-align: center;

    margin-top: 18px;

    color: var(--muted);
}

.text-btn {
    border: none;

    background: none;

    color: var(--purple);

    font-weight: 800;
}

/* DISCOVER */

.section-head {
    display: flex;

    justify-content: space-between;

    margin-bottom: 24px;
}

.section-head h2 {
    font-size: 34px;
}

.filters {
    display: grid;

    grid-template-columns:
        1fr 230px;

    gap: 12px;

    margin-bottom: 25px;
}

.people-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 20px;
}

.person {
    background: white;

    border: 1px solid var(--border);

    box-shadow:
        0 15px 40px
        rgba(72, 37, 94, 0.08);

    border-radius: 24px;

    padding: 24px;
}

.avatar {
    width: 76px;

    height: 76px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            var(--light-purple),
            var(--light-pink)
        );

    font-size: 34px;

    margin-bottom: 15px;
}

.person h3 {
    margin-bottom: 4px;
}

.username,
.location {
    color: var(--muted);

    font-size: 14px;
}

.tags {
    display: flex;

    gap: 7px;

    flex-wrap: wrap;

    margin: 14px 0;
}

.tag {
    background: var(--light-purple);

    color: var(--purple);

    padding: 6px 9px;

    border-radius: 999px;

    font-size: 12px;

    font-weight: 700;
}

/* PROFILE */

.profile-card {
    text-align: center;

    padding: 45px 30px;

    background: white;

    border: 1px solid var(--border);

    box-shadow:
        0 15px 40px
        rgba(72, 37, 94, 0.08);

    border-radius: 24px;
}

.profile-avatar {
    width: 120px;

    height: 120px;

    border-radius: 50%;

    margin: 0 auto 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #f3e8ff,
            #fce7f3
        );

    font-size: 52px;
}

.profile-card h2 {
    font-size: 32px;
}

.profile-bio {
    color: var(--muted);

    line-height: 1.6;

    margin: 18px auto;

    max-width: 520px;
}

.profile-card .btn {
    margin: 5px;
}

/* MESSAGES */

.chat-card {
    background: white;

    padding: 25px;

    border: 1px solid var(--border);

    box-shadow:
        0 15px 40px
        rgba(72, 37, 94, 0.08);

    border-radius: 24px;
}

.chat-header {
    padding-bottom: 15px;

    border-bottom: 1px solid var(--border);
}

.message-list {
    min-height: 260px;

    padding: 18px 0;

    display: flex;

    flex-direction: column;

    gap: 10px;
}

.bubble {
    max-width: 75%;

    padding: 10px 13px;

    border-radius: 16px;

    background: var(--light-purple);

    align-self: flex-start;
}

.bubble.me {
    background:
        linear-gradient(
            90deg,
            var(--purple),
            var(--pink)
        );

    color: white;

    align-self: flex-end;
}

.message-form {
    display: flex;

    gap: 8px;
}

.message-form input {
    margin: 0;
}

.message-form .btn {
    white-space: nowrap;
}

.tiny {
    font-size: 12px;

    color: #8a818f;

    margin-top: 12px;
}

/* SETTINGS */

.danger-zone {
    margin-top: 30px;

    padding-top: 25px;

    border-top: 1px solid var(--border);
}

.danger-zone h3 {
    margin-bottom: 6px;
}

.danger-zone p {
    color: var(--muted);

    font-size: 14px;

    margin-bottom: 12px;
}

/* TOAST MESSAGE */

.toast {
    position: fixed;

    right: 20px;

    bottom: 20px;

    background: #241f2b;

    color: white;

    padding: 12px 16px;

    border-radius: 12px;

    opacity: 0;

    pointer-events: none;

    transition: 0.2s;

    z-index: 50;
}

.toast.show {
    opacity: 1;
}

/* FOOTER */

footer {
    text-align: center;

    padding: 28px;

    color: #83798a;

    background: white;

    border-top: 1px solid var(--border);
}

/* MOBILE */

@media (max-width: 800px) {

    .topbar {
        height: auto;

        min-height: 70px;

        padding: 12px 16px;

        flex-wrap: wrap;
    }

    .nav {
        order: 3;

        width: 100%;

        justify-content: center;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {

    .nav button {
        font-size: 12px;

        padding: 8px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .form-card {
        margin: 30px 15px;

        padding: 25px;
    }

    .message-form {
        flex-direction: column;
    }

    .message-form .btn {
        width: 100%;
    }
}



/* FRIEND REQUESTS */
.friend-request-card {
    background: white;
    border: 1px solid var(--border);
    box-shadow: 0 15px 40px rgba(72, 37, 94, 0.08);
    border-radius: 24px;
    padding: 24px;
}
.friend-request-card h3 { margin-bottom: 4px; }
.friend-request-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.friend-request-actions .btn {
    flex: 1;
    min-width: 110px;
}
/* ============================================================
   NOTIFICATIONS
   ============================================================ */

.notification-nav-button {
    position: relative;
}


.notification-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 20px;
    height: 20px;

    padding: 0 6px;

    margin-left: 5px;

    border-radius: 999px;

    background: var(--pink);

    color: white;

    font-size: 11px;

    font-weight: bold;
}


.notification-card {
    max-width: 800px;

    margin-left: auto;
    margin-right: auto;
}


.notification-heading {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding-bottom: 18px;

    border-bottom: 1px solid var(--border);
}


.notifications-list {
    display: flex;

    flex-direction: column;

    gap: 10px;

    padding-top: 18px;
}


.notification-item {
    display: flex;

    align-items: flex-start;

    gap: 14px;

    padding: 15px;

    border-radius: 16px;

    background: var(--light-purple);

    border: 1px solid transparent;

    transition: 0.2s ease;
}


.notification-item:hover {
    border-color: var(--border);
}


.notification-item.unread {
    background:
        linear-gradient(
            90deg,
            rgba(123, 63, 242, 0.10),
            rgba(255, 105, 180, 0.08)
        );

    border-color: rgba(123, 63, 242, 0.18);
}


.notification-icon {
    width: 42px;

    height: 42px;

    min-width: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: white;

    font-size: 20px;

    box-shadow:
        0 4px 12px
        rgba(72, 37, 94, 0.08);
}


.notification-content {
    flex: 1;
}


.notification-message {
    margin: 0;

    font-size: 14px;

    line-height: 1.5;
}


.notification-time {
    margin-top: 5px;

    font-size: 11px;

    opacity: 0.6;
}


@media (max-width: 700px) {

    .notification-heading {
        flex-direction: column;

        align-items: flex-start;
    }

    .notification-heading .small-btn {
        width: 100%;
    }

}
/* ============================================================
   PROFILE PICTURE SIZE FIX
   ============================================================ */

.profile-avatar {
    width: 180px;
    height: 180px;
    min-width: 180px;
    min-height: 180px;

    border-radius: 50%;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto;

    background: var(--light-purple);

    position: relative;
}

.profile-avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    border-radius: 50%;
}
/* ============================================================
   CIRCLE SAFETY BUTTONS
   ============================================================ */

.discover-avatar {
    width: 90px;
    height: 90px;

    margin: 0 auto 14px;

    border-radius: 50%;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--light-purple);

    font-size: 42px;
}

.discover-avatar-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.discover-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 16px;
}

.discover-actions button {
    flex: 1;

    min-width: 100px;
}

.block-user-button,
.report-user-button {
    background: white;
}

/* ============================================================
   CIRCLE MOBILE UPDATE
   ============================================================ */

@media (max-width: 500px) {

    body {
        overflow-x: hidden;
    }

    .topbar {
        padding: 12px 10px;
        gap: 10px;
    }

    .brand {
        font-size: 22px;
    }

    .nav {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        gap: 5px;

        overflow-x: auto;
        flex-wrap: nowrap;

        padding-bottom: 4px;
    }

    .nav button {
        flex: 0 0 auto;
        white-space: nowrap;

        font-size: 13px;
        padding: 9px 10px;
    }

    .container {
        width: 100%;
        padding: 30px 14px;
    }

    .narrow {
        width: 100%;
    }

    /* HOME */

    .hero {
        padding: 65px 18px 45px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero p {
        font-size: 16px;
    }

    .feature-grid {
        padding: 0 14px 45px;
        gap: 14px;
    }

    .feature-card {
        padding: 24px 18px;
    }

    /* DISCOVER */

    .section-head {
        display: block;
    }

    .section-head h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .filters {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .people-grid {
        grid-template-columns: 1fr;
    }

    .user-card {
        width: 100%;
        min-width: 0;
        padding: 20px;
    }

    .discover-actions {
        flex-direction: column;
    }

    .discover-actions button {
        width: 100%;
        min-width: 0;
    }

    /* PROFILE */

    .profile-card {
        padding: 30px 16px;
    }

    .profile-card h2 {
        font-size: 27px;
    }

    .profile-avatar {
        width: 150px;
        height: 150px;
        min-width: 150px;
        min-height: 150px;
    }

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

    /* MESSAGES */

    .chat-card {
        padding: 16px;
        border-radius: 18px;
    }

    .message-list {
        min-height: 300px;
        max-height: 55vh;
        overflow-y: auto;
    }

    .bubble {
        max-width: 85%;
        overflow-wrap: anywhere;
    }

    .message-form {
        flex-direction: column;
    }

    .message-form input {
        width: 100%;
    }

    .message-form .btn {
        width: 100%;
    }

    /* FRIEND REQUESTS */

    .friend-request-card {
        padding: 18px;
    }

    .friend-request-actions {
        flex-direction: column;
    }

    .friend-request-actions .btn {
        width: 100%;
    }

    /* FORMS */

    .form-card {
        width: calc(100% - 20px);
        margin: 25px auto;
        padding: 24px 18px;
    }

    /* BUTTONS */

    .btn {
        min-height: 44px;
    }

    .small-btn {
        min-height: 44px;
    }

    /* FOOTER */

    footer {
        padding: 22px 14px;
        font-size: 13px;
    }

}

/* ============================================================
   CIRCLE MESSAGES 3.0 — CONVERSATIONS + VOICE
   ============================================================ */
.messages-layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:18px;align-items:stretch}
.conversation-panel{background:white;border:1px solid var(--border);border-radius:24px;box-shadow:0 15px 40px rgba(72,37,94,.08);overflow:hidden}
.conversation-header{padding:20px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--border)}
.conversation-header h2{margin:0 0 4px}.conversation-header p{margin:0}.message-search{padding:14px;border-bottom:1px solid var(--border)}.message-search input{margin:0;width:100%}
.conversation-list{min-height:430px;max-height:600px;overflow-y:auto}.conversation-item{width:100%;border:0;border-bottom:1px solid var(--border);background:white;padding:14px 16px;display:flex;align-items:center;gap:12px;text-align:left;cursor:pointer;transition:background .2s ease}.conversation-item:hover{background:var(--light-pink)}.conversation-item.active{background:var(--light-purple)}
.conversation-avatar{width:48px;height:48px;min-width:48px;border-radius:50%;overflow:hidden;background:var(--light-purple);display:flex;align-items:center;justify-content:center;font-size:22px}.conversation-avatar img,.active-chat-avatar img{width:100%;height:100%;object-fit:cover;display:block}.conversation-main{min-width:0;flex:1}.conversation-top,.conversation-bottom{display:flex;justify-content:space-between;gap:8px;align-items:center}.conversation-name{font-weight:700;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-time{font-size:11px;color:var(--muted);white-space:nowrap}.conversation-preview{color:var(--muted);font-size:13px;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.conversation-item.unread .conversation-name,.conversation-item.unread .conversation-preview{font-weight:700;color:var(--text)}
.unread-badge{min-width:22px;height:22px;padding:0 6px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:linear-gradient(90deg,var(--purple),var(--pink));color:white;font-size:11px;font-weight:700}.active-conversation{min-width:0;display:flex;flex-direction:column;min-height:600px}.active-chat-header{padding:16px 18px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:12px}.active-chat-avatar{width:48px;height:48px;min-width:48px;border-radius:50%;overflow:hidden;background:var(--light-purple);display:flex;align-items:center;justify-content:center;font-size:22px}.active-chat-info{min-width:0;flex:1}.active-chat-info h3{margin:0 0 3px}.active-chat-info p{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.message-list{flex:1;min-height:400px;max-height:600px;overflow-y:auto;padding:22px;display:flex;flex-direction:column;gap:8px}.message-row{display:flex;width:100%}.message-row.mine{justify-content:flex-end}.message-row.theirs{justify-content:flex-start}.bubble{max-width:min(72%,520px);padding:11px 14px;border-radius:18px 18px 18px 6px;background:#f4f1f8;color:var(--text);word-break:break-word}.bubble.me{background:linear-gradient(90deg,var(--purple),var(--pink));color:white;border-radius:18px 18px 6px 18px}.message-time{font-size:11px;margin-top:5px;opacity:.68;text-align:right}.voice-bubble{min-width:230px}.voice-bubble audio{width:100%;max-width:300px;height:38px}.message-form{padding:12px;border-top:1px solid var(--border);display:flex;gap:8px;align-items:center}.message-form input{flex:1;margin:0}.message-form .btn{white-space:nowrap}.voice-record-btn{width:44px;height:44px;border-radius:50%;border:1px solid var(--border);background:white;cursor:pointer;font-size:20px;display:inline-flex;align-items:center;justify-content:center}.voice-record-btn:hover{background:var(--light-purple)}.voice-record-btn:disabled{opacity:.5;cursor:not-allowed}
.recording-bar{padding:10px 14px;border-top:1px solid var(--border);background:#fff1f7;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.recording-bar strong{flex:1;min-width:150px}.recording-dot{width:10px;height:10px;border-radius:50%;background:#ef4444;animation:circlePulse 1s infinite}.recording-bar .btn,.recording-bar .small-btn{min-height:40px}@keyframes circlePulse{0%,100%{opacity:1}50%{opacity:.35}}
.empty-chat,.empty-conversations{text-align:center;padding:45px 20px;margin:auto}.empty-chat-icon,.empty-conversations>div{font-size:42px;margin-bottom:10px}.empty-conversations{margin:0}.conversation-loading{padding:20px}
.chat-settings-modal{position:fixed;inset:0;z-index:100;background:rgba(36,31,43,.45);display:flex;align-items:center;justify-content:center;padding:20px}.chat-settings-card{width:min(520px,100%);background:white;border-radius:24px;padding:24px;box-shadow:0 25px 70px rgba(36,31,43,.22)}.chat-settings-header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding-bottom:18px;border-bottom:1px solid var(--border)}.chat-settings-header h3{margin:0 0 4px}.chat-settings-header p{margin:0}.chat-theme-section{padding-top:20px}.chat-theme-section h4{margin-bottom:5px}.chat-theme-section>p{margin-bottom:16px}.chat-theme-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.chat-theme-option{border:1px solid var(--border);background:white;border-radius:14px;padding:12px 8px;min-height:80px;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-weight:600}.chat-theme-option.active{border:2px solid var(--purple);background:var(--light-purple)}.theme-preview{width:42px;height:24px;border-radius:999px;display:block}.theme-purple{background:linear-gradient(90deg,var(--purple),var(--pink))}.theme-pink{background:linear-gradient(90deg,#ec4899,#f472b6)}.theme-blue{background:linear-gradient(90deg,#2563eb,#60a5fa)}.theme-green{background:linear-gradient(90deg,#16a34a,#4ade80)}.theme-dark{background:#241f2b}.theme-white{background:#f5f3ff;border:1px solid var(--border)}
.active-conversation[data-chat-theme="pink"] .bubble.me{background:linear-gradient(90deg,#ec4899,#f472b6)}.active-conversation[data-chat-theme="blue"] .bubble.me{background:linear-gradient(90deg,#2563eb,#60a5fa)}.active-conversation[data-chat-theme="green"] .bubble.me{background:linear-gradient(90deg,#16a34a,#4ade80)}.active-conversation[data-chat-theme="dark"] .bubble.me{background:#241f2b}.active-conversation[data-chat-theme="white"] .bubble.me{background:var(--light-purple);color:var(--text);border:1px solid var(--border)}
@media(max-width:800px){.messages-layout{grid-template-columns:1fr}.conversation-list{min-height:0;max-height:310px}.active-conversation{min-height:500px}.message-list{min-height:320px;max-height:55vh}.bubble{max-width:82%}}
@media(max-width:500px){.conversation-header{padding:16px}.conversation-item{padding:13px}.active-chat-header{padding:13px}.message-list{padding:16px}.message-form{padding:10px}.chat-theme-options{grid-template-columns:repeat(2,1fr)}.voice-bubble{min-width:0;width:min(280px,80vw)}.voice-bubble audio{max-width:100%}}


/* ============================================================
   CIRCLE STORIES 1.0 ADDITIONS
   ============================================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --purple: #7c3aed;
    --dark-purple: #6d28d9;
    --pink: #ec4899;
    --light-pink: #fdf2f8;
    --light-purple: #f5f3ff;
    --text: #241f2b;
    --muted: #716b78;
    --white: #ffffff;
    --border: #eadff0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #fff7fc, #f7f3ff);
    color: var(--text);
    min-height: 100vh;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

/* TOP NAVIGATION */

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;

    min-height: 72px;

    background: rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 6%;

    gap: 20px;
}

.brand {
    border: none;
    background: none;

    font-weight: 900;
    font-size: 26px;

    letter-spacing: 1px;

    background: linear-gradient(
        90deg,
        var(--purple),
        var(--pink)
    );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.nav {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.nav button,
.small-btn {
    border: none;

    background: transparent;

    padding: 10px 12px;

    border-radius: 12px;

    color: #443c4b;
}

.nav button:hover,
.nav button.active {
    background: var(--light-purple);
    color: var(--purple);
}

.small-btn {
    border: 1px solid #d8c8e8;

    color: var(--purple);

    font-weight: 700;
}

/* PAGES */

.page {
    display: none;

    min-height: calc(100vh - 140px);
}

.page.active {
    display: block;
}

/* HOME */

.hero {
    max-width: 900px;

    margin: 0 auto;

    padding: 100px 22px 65px;

    text-align: center;
}

.badge {
    display: inline-block;

    padding: 9px 14px;

    border-radius: 999px;

    background: var(--light-pink);

    color: var(--pink);

    font-weight: 700;

    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(44px, 8vw, 76px);

    line-height: 1.03;

    margin-bottom: 22px;
}

.hero h1 span {
    background: linear-gradient(
        90deg,
        var(--purple),
        var(--pink)
    );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero p {
    max-width: 650px;

    margin: 0 auto 30px;

    color: var(--muted);

    font-size: 19px;

    line-height: 1.6;
}

.hero-actions {
    display: flex;

    justify-content: center;

    gap: 12px;

    flex-wrap: wrap;
}

/* BUTTONS */

.btn {
    border: none;

    border-radius: 14px;

    padding: 13px 20px;

    font-weight: 800;

    transition:
        0.15s transform,
        0.15s opacity;
}

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

    opacity: 0.93;
}

.primary {
    background: linear-gradient(
        90deg,
        var(--purple),
        var(--pink)
    );

    color: white;
}

.secondary {
    background: white;

    color: var(--purple);

    border: 1px solid #d9c9ea;
}

.danger {
    background: #fff0f5;

    color: #c02667;

    border: 1px solid #f4bfd7;
}

.full {
    width: 100%;
}

/* FEATURES */

.feature-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;

    max-width: 1050px;

    margin: 0 auto;

    padding: 0 22px 70px;
}

.feature-card {
    background: white;

    border: 1px solid var(--border);

    box-shadow:
        0 15px 40px
        rgba(72, 37, 94, 0.08);

    border-radius: 24px;

    padding: 30px;

    text-align: center;
}

.icon {
    font-size: 40px;

    margin-bottom: 12px;
}

.feature-card h3 {
    margin-bottom: 9px;
}

.feature-card p {
    color: var(--muted);

    line-height: 1.5;
}

/* GENERAL CONTAINERS */

.container {
    max-width: 1100px;

    margin: auto;

    padding: 55px 22px;
}

.narrow {
    max-width: 720px;
}

/* FORMS */

.form-card {
    max-width: 520px;

    margin: 55px auto;

    padding: 34px;

    background: white;

    border: 1px solid var(--border);

    box-shadow:
        0 15px 40px
        rgba(72, 37, 94, 0.08);

    border-radius: 24px;
}

.form-card h2 {
    font-size: 30px;

    margin-bottom: 8px;
}

.muted {
    color: var(--muted);

    line-height: 1.5;
}

.form-card form {
    margin-top: 22px;
}

input,
textarea,
select {
    width: 100%;

    border: 1px solid #ded4e5;

    background: white;

    border-radius: 13px;

    padding: 13px 14px;

    margin-bottom: 13px;

    outline: none;

    color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--pink);

    box-shadow:
        0 0 0 3px
        rgba(236, 72, 153, 0.10);
}

textarea {
    min-height: 120px;

    resize: vertical;
}

.switch-text {
    text-align: center;

    margin-top: 18px;

    color: var(--muted);
}

.text-btn {
    border: none;

    background: none;

    color: var(--purple);

    font-weight: 800;
}

/* DISCOVER */

.section-head {
    display: flex;

    justify-content: space-between;

    margin-bottom: 24px;
}

.section-head h2 {
    font-size: 34px;
}

.filters {
    display: grid;

    grid-template-columns:
        1fr 230px;

    gap: 12px;

    margin-bottom: 25px;
}

.people-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 20px;
}

.person {
    background: white;

    border: 1px solid var(--border);

    box-shadow:
        0 15px 40px
        rgba(72, 37, 94, 0.08);

    border-radius: 24px;

    padding: 24px;
}

.avatar {
    width: 76px;

    height: 76px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            var(--light-purple),
            var(--light-pink)
        );

    font-size: 34px;

    margin-bottom: 15px;
}

.person h3 {
    margin-bottom: 4px;
}

.username,
.location {
    color: var(--muted);

    font-size: 14px;
}

.tags {
    display: flex;

    gap: 7px;

    flex-wrap: wrap;

    margin: 14px 0;
}

.tag {
    background: var(--light-purple);

    color: var(--purple);

    padding: 6px 9px;

    border-radius: 999px;

    font-size: 12px;

    font-weight: 700;
}

/* PROFILE */

.profile-card {
    text-align: center;

    padding: 45px 30px;

    background: white;

    border: 1px solid var(--border);

    box-shadow:
        0 15px 40px
        rgba(72, 37, 94, 0.08);

    border-radius: 24px;
}

.profile-avatar {
    width: 120px;

    height: 120px;

    border-radius: 50%;

    margin: 0 auto 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #f3e8ff,
            #fce7f3
        );

    font-size: 52px;
}

.profile-card h2 {
    font-size: 32px;
}

.profile-bio {
    color: var(--muted);

    line-height: 1.6;

    margin: 18px auto;

    max-width: 520px;
}

.profile-card .btn {
    margin: 5px;
}

/* MESSAGES */

.chat-card {
    background: white;

    padding: 25px;

    border: 1px solid var(--border);

    box-shadow:
        0 15px 40px
        rgba(72, 37, 94, 0.08);

    border-radius: 24px;
}

.chat-header {
    padding-bottom: 15px;

    border-bottom: 1px solid var(--border);
}

.message-list {
    min-height: 260px;

    padding: 18px 0;

    display: flex;

    flex-direction: column;

    gap: 10px;
}

.bubble {
    max-width: 75%;

    padding: 10px 13px;

    border-radius: 16px;

    background: var(--light-purple);

    align-self: flex-start;
}

.bubble.me {
    background:
        linear-gradient(
            90deg,
            var(--purple),
            var(--pink)
        );

    color: white;

    align-self: flex-end;
}

.message-form {
    display: flex;

    gap: 8px;
}

.message-form input {
    margin: 0;
}

.message-form .btn {
    white-space: nowrap;
}

.tiny {
    font-size: 12px;

    color: #8a818f;

    margin-top: 12px;
}

/* SETTINGS */

.danger-zone {
    margin-top: 30px;

    padding-top: 25px;

    border-top: 1px solid var(--border);
}

.danger-zone h3 {
    margin-bottom: 6px;
}

.danger-zone p {
    color: var(--muted);

    font-size: 14px;

    margin-bottom: 12px;
}

/* TOAST MESSAGE */

.toast {
    position: fixed;

    right: 20px;

    bottom: 20px;

    background: #241f2b;

    color: white;

    padding: 12px 16px;

    border-radius: 12px;

    opacity: 0;

    pointer-events: none;

    transition: 0.2s;

    z-index: 50;
}

.toast.show {
    opacity: 1;
}

/* FOOTER */

footer {
    text-align: center;

    padding: 28px;

    color: #83798a;

    background: white;

    border-top: 1px solid var(--border);
}

/* MOBILE */

@media (max-width: 800px) {

    .topbar {
        height: auto;

        min-height: 70px;

        padding: 12px 16px;

        flex-wrap: wrap;
    }

    .nav {
        order: 3;

        width: 100%;

        justify-content: center;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {

    .nav button {
        font-size: 12px;

        padding: 8px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .form-card {
        margin: 30px 15px;

        padding: 25px;
    }

    .message-form {
        flex-direction: column;
    }

    .message-form .btn {
        width: 100%;
    }
}



/* FRIEND REQUESTS */
.friend-request-card {
    background: white;
    border: 1px solid var(--border);
    box-shadow: 0 15px 40px rgba(72, 37, 94, 0.08);
    border-radius: 24px;
    padding: 24px;
}
.friend-request-card h3 { margin-bottom: 4px; }
.friend-request-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.friend-request-actions .btn {
    flex: 1;
    min-width: 110px;
}
/* ============================================================
   NOTIFICATIONS
   ============================================================ */

.notification-nav-button {
    position: relative;
}


.notification-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 20px;
    height: 20px;

    padding: 0 6px;

    margin-left: 5px;

    border-radius: 999px;

    background: var(--pink);

    color: white;

    font-size: 11px;

    font-weight: bold;
}


.notification-card {
    max-width: 800px;

    margin-left: auto;
    margin-right: auto;
}


.notification-heading {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding-bottom: 18px;

    border-bottom: 1px solid var(--border);
}


.notifications-list {
    display: flex;

    flex-direction: column;

    gap: 10px;

    padding-top: 18px;
}


.notification-item {
    display: flex;

    align-items: flex-start;

    gap: 14px;

    padding: 15px;

    border-radius: 16px;

    background: var(--light-purple);

    border: 1px solid transparent;

    transition: 0.2s ease;
}


.notification-item:hover {
    border-color: var(--border);
}


.notification-item.unread {
    background:
        linear-gradient(
            90deg,
            rgba(123, 63, 242, 0.10),
            rgba(255, 105, 180, 0.08)
        );

    border-color: rgba(123, 63, 242, 0.18);
}


.notification-icon {
    width: 42px;

    height: 42px;

    min-width: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: white;

    font-size: 20px;

    box-shadow:
        0 4px 12px
        rgba(72, 37, 94, 0.08);
}


.notification-content {
    flex: 1;
}


.notification-message {
    margin: 0;

    font-size: 14px;

    line-height: 1.5;
}


.notification-time {
    margin-top: 5px;

    font-size: 11px;

    opacity: 0.6;
}


@media (max-width: 700px) {

    .notification-heading {
        flex-direction: column;

        align-items: flex-start;
    }

    .notification-heading .small-btn {
        width: 100%;
    }

}
/* ============================================================
   PROFILE PICTURE SIZE FIX
   ============================================================ */

.profile-avatar {
    width: 180px;
    height: 180px;
    min-width: 180px;
    min-height: 180px;

    border-radius: 50%;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto;

    background: var(--light-purple);

    position: relative;
}

.profile-avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    border-radius: 50%;
}
/* ============================================================
   CIRCLE SAFETY BUTTONS
   ============================================================ */

.discover-avatar {
    width: 90px;
    height: 90px;

    margin: 0 auto 14px;

    border-radius: 50%;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--light-purple);

    font-size: 42px;
}

.discover-avatar-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.discover-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 16px;
}

.discover-actions button {
    flex: 1;

    min-width: 100px;
}

.block-user-button,
.report-user-button {
    background: white;
}

/* ============================================================
   CIRCLE MOBILE UPDATE
   ============================================================ */

@media (max-width: 500px) {

    body {
        overflow-x: hidden;
    }

    .topbar {
        padding: 12px 10px;
        gap: 10px;
    }

    .brand {
        font-size: 22px;
    }

    .nav {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        gap: 5px;

        overflow-x: auto;
        flex-wrap: nowrap;

        padding-bottom: 4px;
    }

    .nav button {
        flex: 0 0 auto;
        white-space: nowrap;

        font-size: 13px;
        padding: 9px 10px;
    }

    .container {
        width: 100%;
        padding: 30px 14px;
    }

    .narrow {
        width: 100%;
    }

    /* HOME */

    .hero {
        padding: 65px 18px 45px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero p {
        font-size: 16px;
    }

    .feature-grid {
        padding: 0 14px 45px;
        gap: 14px;
    }

    .feature-card {
        padding: 24px 18px;
    }

    /* DISCOVER */

    .section-head {
        display: block;
    }

    .section-head h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .filters {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .people-grid {
        grid-template-columns: 1fr;
    }

    .user-card {
        width: 100%;
        min-width: 0;
        padding: 20px;
    }

    .discover-actions {
        flex-direction: column;
    }

    .discover-actions button {
        width: 100%;
        min-width: 0;
    }

    /* PROFILE */

    .profile-card {
        padding: 30px 16px;
    }

    .profile-card h2 {
        font-size: 27px;
    }

    .profile-avatar {
        width: 150px;
        height: 150px;
        min-width: 150px;
        min-height: 150px;
    }

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

    /* MESSAGES */

    .chat-card {
        padding: 16px;
        border-radius: 18px;
    }

    .message-list {
        min-height: 300px;
        max-height: 55vh;
        overflow-y: auto;
    }

    .bubble {
        max-width: 85%;
        overflow-wrap: anywhere;
    }

    .message-form {
        flex-direction: column;
    }

    .message-form input {
        width: 100%;
    }

    .message-form .btn {
        width: 100%;
    }

    /* FRIEND REQUESTS */

    .friend-request-card {
        padding: 18px;
    }

    .friend-request-actions {
        flex-direction: column;
    }

    .friend-request-actions .btn {
        width: 100%;
    }

    /* FORMS */

    .form-card {
        width: calc(100% - 20px);
        margin: 25px auto;
        padding: 24px 18px;
    }

    /* BUTTONS */

    .btn {
        min-height: 44px;
    }

    .small-btn {
        min-height: 44px;
    }

    /* FOOTER */

    footer {
        padding: 22px 14px;
        font-size: 13px;
    }

}
/* ============================================================
   CIRCLE STORIES 1.0
   ============================================================ */
.stories-page-card{background:white;border:1px solid var(--border);border-radius:24px;box-shadow:0 15px 40px rgba(72,37,94,.08);padding:24px}
.stories-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--border);padding-bottom:20px}
.stories-heading h2{margin:10px 0 5px}
.stories-heading p{margin:0}
.my-story-card{margin-top:20px;border:1px solid var(--border);border-radius:18px;padding:14px;background:linear-gradient(135deg,#fff,#fdf4ff)}
.my-story-inner{border:0;background:transparent;display:flex;align-items:center;gap:14px;width:100%;text-align:left;cursor:pointer;padding:0}
.my-story-copy{min-width:0}.my-story-copy p{margin:3px 0 0}
.story-avatar{width:58px;height:58px;min-width:58px;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center;background:var(--light-purple);font-size:24px}
.story-avatar img{width:100%;height:100%;object-fit:cover;display:block}.story-avatar-add{border:2px dashed var(--purple);color:var(--purple);background:var(--light-purple)}
.story-avatar.has-story{border:3px solid var(--pink)}
.stories-section-title{display:flex;justify-content:space-between;align-items:center;margin:24px 0 12px}.stories-section-title h3{margin:0}
.stories-list{display:flex;gap:14px;overflow-x:auto;padding:5px 2px 14px}
.story-card{border:0;background:transparent;min-width:92px;cursor:pointer;text-align:center;padding:4px}.story-ring{width:72px;height:72px;border-radius:50%;padding:3px;margin:auto;background:linear-gradient(135deg,var(--purple),var(--pink))}.story-ring .story-avatar{width:66px;height:66px;min-width:66px;border:3px solid white}.story-card-name{margin-top:7px;font-size:12px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stories-empty{text-align:center;padding:45px 20px;color:var(--muted);width:100%}.stories-empty>div{font-size:42px}.stories-empty h3{color:var(--text);margin:8px 0}.stories-empty p{margin:0}
.story-viewer{position:fixed;inset:0;z-index:300;display:flex;align-items:center;justify-content:center;padding:18px}.story-viewer-backdrop{position:absolute;inset:0;background:rgba(24,18,32,.78)}
.story-viewer-card{position:relative;z-index:1;width:min(460px,100%);background:#17131b;border-radius:24px;overflow:hidden;box-shadow:0 30px 90px rgba(0,0,0,.4)}
.story-viewer-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;color:white}.story-viewer-user{display:flex;align-items:center;gap:10px}.story-viewer-user>div:last-child{display:flex;flex-direction:column}.story-viewer-user span{font-size:12px;opacity:.75}.story-avatar.small{width:38px;height:38px;min-width:38px;font-size:16px;border:2px solid white}
.story-viewer-media{background:#000;display:flex;align-items:center;justify-content:center;min-height:430px;max-height:70vh}.story-viewer-media img{width:100%;height:100%;max-height:70vh;object-fit:contain;display:block}
.story-viewer-actions{display:flex;gap:10px;padding:12px}.story-action-btn{flex:1;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.08);color:white;border-radius:14px;padding:12px;cursor:pointer;font-weight:700}.story-action-btn:hover{background:rgba(255,255,255,.15)}
@media(max-width:650px){.stories-heading{align-items:flex-start;flex-direction:column}.stories-heading .btn{width:100%}.stories-page-card{padding:18px}.story-viewer{padding:0}.story-viewer-card{height:100%;width:100%;border-radius:0;display:flex;flex-direction:column}.story-viewer-media{flex:1;max-height:none}.story-viewer-media img{max-height:100%}}


/* ============================================================
   CIRCLE GAMES 2.0 — GAME NIGHT
   ============================================================ */
.games-hero{position:relative;overflow:hidden;display:flex;justify-content:space-between;gap:28px;align-items:center;padding:32px;border-radius:30px;background:radial-gradient(circle at 85% 20%,rgba(236,72,153,.25),transparent 30%),linear-gradient(135deg,#24143f,#7c3aed 58%,#ec4899);color:#fff;box-shadow:0 22px 55px rgba(72,37,94,.18)}
.games-hero-copy{max-width:650px}.games-kicker{font-size:11px;font-weight:900;letter-spacing:.16em;opacity:.78}.games-hero h2{font-size:clamp(28px,4vw,44px);line-height:1.05;margin:9px 0 10px}.games-hero p{font-size:15px;line-height:1.6;max-width:600px;opacity:.9}.games-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.games-hero .btn{border-color:rgba(255,255,255,.3);background:rgba(255,255,255,.14);color:#fff}.games-hero .btn.primary{background:#fff;color:#6d28d9;border-color:#fff}.games-orbit{width:190px;height:190px;min-width:190px;border-radius:50%;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;text-align:center;font-weight:900;letter-spacing:.12em;position:relative}.games-orbit span{position:absolute;font-size:30px}.games-orbit span:nth-child(1){top:15px;left:48px}.games-orbit span:nth-child(2){top:45px;right:18px}.games-orbit span:nth-child(3){bottom:30px;right:25px}.games-orbit span:nth-child(4){bottom:18px;left:45px}.games-orbit span:nth-child(5){top:80px;left:8px}.games-section-title{display:flex;align-items:end;justify-content:space-between;gap:15px;margin:28px 0 14px}.games-section-title h3{margin:0 0 4px}.games-section-title p{margin:0}.games-pill,.game-tag{display:inline-flex;align-items:center;border-radius:999px;font-size:10px;font-weight:900;letter-spacing:.08em}.games-pill{padding:7px 11px;background:var(--light-purple);color:var(--purple)}.games-grid-v2{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.game-card{border:1px solid var(--border);border-radius:24px;padding:15px;background:#fff;min-height:245px;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:8px;box-shadow:0 12px 30px rgba(72,37,94,.07);transition:.2s}.game-card:hover{transform:translateY(-5px);box-shadow:0 18px 40px rgba(72,37,94,.12)}.game-card strong{font-size:17px}.game-card .muted{font-size:13px;line-height:1.4}.game-card-pool{grid-column:span 2;background:linear-gradient(135deg,#fff,#f4fffb)}.game-meta{display:flex}.game-tag{padding:5px 8px;background:var(--light-purple);color:var(--purple)}.game-card-pool .game-tag{background:#ecfdf5;color:#15803d}.game-art{height:130px;border-radius:18px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.ttt-art{display:grid;grid-template-columns:repeat(3,1fr);padding:18px;gap:5px;background:linear-gradient(135deg,#f5f3ff,#fce7f3)}.ttt-art b{display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.85);border-radius:10px;font-size:25px;color:var(--purple)}.ttt-art b:nth-child(2n){color:var(--pink)}.rps-art{gap:9px;background:linear-gradient(135deg,#fff7fc,#f5f3ff)}.rps-art b{width:62px;height:76px;background:#fff;border:1px solid var(--border);border-radius:16px;display:flex;align-items:center;justify-content:center;font-size:34px;box-shadow:0 7px 15px rgba(72,37,94,.08)}.rps-art b:nth-child(2){transform:translateY(-10px)}.c4-art{display:grid;grid-template-columns:repeat(7,16px);grid-auto-rows:16px;gap:7px;background:#2563eb;padding:18px}.c4-art i{display:block;width:16px;height:16px;border-radius:50%;background:#dbeafe}.c4-art i.red{background:#ef4444}.c4-art i.yellow{background:#facc15}.trivia-art{background:linear-gradient(135deg,#fff7ed,#fef3c7);font-size:75px;font-weight:1000;color:#d97706}.pool-art{background:radial-gradient(circle at 30% 30%,#22c55e,#047857);font-size:72px}.game-social-banner{margin-top:18px;padding:15px 18px;border:1px solid var(--border);background:#fff;border-radius:20px;display:flex;align-items:center;justify-content:space-between;gap:15px}.game-social-banner>div{display:flex;align-items:center;gap:12px}.game-social-banner p{margin-top:3px;font-size:13px}.game-social-icon{width:42px;height:42px;border-radius:14px;background:var(--light-purple);display:flex;align-items:center;justify-content:center;font-size:20px}.game-area{margin-top:20px;background:#fff;border:1px solid var(--border);border-radius:26px;padding:22px;box-shadow:0 18px 45px rgba(72,37,94,.1)}.game-area-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid var(--border);padding-bottom:16px;margin-bottom:20px}.game-area-header h3{margin:4px 0}.game-actions{display:flex;justify-content:center;gap:10px;margin-top:18px}.game-action{border:0;border-radius:13px;padding:12px 18px;cursor:pointer;font-weight:800;background:linear-gradient(90deg,var(--purple),var(--pink));color:#fff}.game-score-row{display:flex;align-items:center;justify-content:center;gap:14px;margin-bottom:13px}.score-chip{width:48px;height:48px;border-radius:15px;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:1000}.x-chip{background:#f3e8ff;color:#7c3aed}.o-chip{background:#fce7f3;color:#ec4899}.score-vs{font-size:11px;font-weight:900;color:var(--muted)}.ttt-board-v2{display:grid;grid-template-columns:repeat(3,100px);gap:9px;justify-content:center}.ttt-cell{width:100px;height:100px;border:0;border-radius:20px;background:linear-gradient(145deg,#faf8ff,#f0ebff);font-size:48px;font-weight:1000;cursor:pointer;box-shadow:inset 0 0 0 1px var(--border),0 7px 14px rgba(72,37,94,.06)}.ttt-cell.filled-x{color:#7c3aed}.ttt-cell.filled-o{color:#ec4899}.ttt-cell.winning-cell{animation:gameWin .65s ease infinite alternate;background:#fff1f8}@keyframes gameWin{to{transform:scale(1.05)}}.rps-stage{max-width:650px;margin:auto;text-align:center}.rps-vs-badge{font-size:11px;font-weight:900;letter-spacing:.12em;color:var(--muted);margin-bottom:18px}.rps-vs-badge span{margin:0 8px;color:var(--purple)}.rps-options-v2{display:flex;justify-content:center;gap:15px;flex-wrap:wrap}.rps-choice-v2{width:145px;min-height:145px;border:1px solid var(--border);background:linear-gradient(145deg,#fff,#faf7ff);border-radius:24px;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;box-shadow:0 10px 22px rgba(72,37,94,.07)}.rps-choice-v2 span{font-size:50px}.rps-choice-v2 small{font-weight:800}.rps-result{display:flex;align-items:center;justify-content:center;gap:30px;font-size:60px;margin:22px}.rps-result b{font-size:13px;color:var(--muted)}.game-result{text-align:center;padding:15px}.game-result-icon{font-size:55px}.game-result h3{font-size:25px;margin-top:5px}.trivia-progress{display:flex;justify-content:space-between;gap:15px;font-size:12px;font-weight:800;color:var(--muted);max-width:680px;margin:0 auto 15px}.trivia-card-v2{max-width:680px;margin:auto}.trivia-question{font-size:25px;font-weight:900;line-height:1.25;margin-bottom:18px}.trivia-options{display:grid;gap:10px}.trivia-option-v2{display:flex;align-items:center;gap:12px;border:1px solid var(--border);background:#fff;border-radius:16px;padding:14px;text-align:left;cursor:pointer;font-weight:700}.trivia-option-v2 span{width:32px;height:32px;border-radius:10px;background:var(--light-purple);color:var(--purple);display:flex;align-items:center;justify-content:center;font-weight:900}.trivia-option-v2.correct{background:#ecfdf5;border-color:#86efac}.trivia-option-v2.wrong{background:#fff1f2;border-color:#fda4af}.c4-frame{max-width:430px;margin:auto;background:#2563eb;border-radius:22px;padding:12px}.c4-drop-row{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-bottom:7px}.c4-drop{border:0;background:rgba(255,255,255,.15);color:#fff;border-radius:8px;height:30px;cursor:pointer;font-weight:900}.connect4-board-v2{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;background:#2563eb}.connect4-cell{width:100%;aspect-ratio:1;border:0;border-radius:50%;background:#eff6ff;cursor:pointer;box-shadow:inset 0 3px 6px rgba(0,0,0,.15)}.connect4-cell.red{background:#ef4444}.connect4-cell.yellow{background:#facc15}.pool-coming{text-align:center;padding:30px}.pool-table{max-width:500px;height:180px;margin:0 auto 25px;border-radius:30px;background:#047857;border:14px solid #713f12;display:flex;align-items:center;justify-content:center;gap:55px;font-size:45px}.game-modal{position:fixed;inset:0;z-index:200;background:rgba(36,31,43,.5);display:flex;align-items:center;justify-content:center;padding:18px}.game-modal[hidden]{display:none}.game-modal-card{width:min(540px,100%);max-height:85vh;overflow:auto;background:#fff;border-radius:26px;padding:22px;box-shadow:0 30px 80px rgba(36,31,43,.25)}.game-modal-head{display:flex;justify-content:space-between;gap:15px;padding-bottom:15px;border-bottom:1px solid var(--border)}.game-modal-head h3{margin:5px 0}.game-invite-choice{padding:16px 0}.game-invite-choice label{display:block;font-weight:800;font-size:13px;margin-bottom:7px}.game-invite-choice select{margin:0}.game-friend-list{display:grid;gap:8px}.game-friend-row{width:100%;border:1px solid var(--border);background:#fff;border-radius:16px;padding:10px;display:flex;align-items:center;gap:10px;text-align:left;cursor:pointer}.game-friend-row:hover{background:var(--light-purple)}.game-friend-row span{min-width:0;flex:1;display:flex;flex-direction:column}.game-friend-row small{color:var(--muted)}.game-friend-row>b{font-size:11px;color:var(--purple)}.game-friend-avatar{width:42px;height:42px;min-width:42px;border-radius:50%;overflow:hidden;background:var(--light-purple);display:flex;align-items:center;justify-content:center}.game-friend-avatar img{width:100%;height:100%;object-fit:cover}@media(max-width:950px){.games-grid-v2{grid-template-columns:repeat(2,minmax(0,1fr))}.game-card-pool{grid-column:span 2}.games-orbit{display:none}}@media(max-width:650px){.games-grid-v2{grid-template-columns:1fr}.game-card-pool{grid-column:span 1}.games-hero{padding:24px}.ttt-board-v2{grid-template-columns:repeat(3,82px)}.ttt-cell{width:82px;height:82px}.rps-choice-v2{width:110px;min-height:120px}.rps-choice-v2 span{font-size:40px}.pool-table{height:130px;gap:30px;font-size:34px;border-width:10px}}


/* ============================================================
   CIRCLE NEXT — PUBLIC EXPERIENCE + PRIVACY
   ============================================================ */

.logged-in-only { display: none; }

.public-home-showcase {
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 22px 80px;
}

.showcase-heading { text-align:center; max-width:760px; margin:0 auto 30px; }
.showcase-heading h2 { font-size:clamp(30px,5vw,48px); margin:8px 0 12px; }
.showcase-heading p { color:var(--muted); line-height:1.7; font-size:17px; }
.eyebrow { font-size:12px; font-weight:900; letter-spacing:1.8px; color:var(--pink); }

.showcase-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.showcase-card { background:rgba(255,255,255,.82); border:1px solid var(--border); border-radius:24px; padding:24px; box-shadow:0 18px 50px rgba(72,37,94,.06); }
.showcase-card span { font-size:30px; }
.showcase-card h3 { margin:14px 0 8px; }
.showcase-card p { color:var(--muted); line-height:1.55; font-size:14px; }
.public-trust-strip { margin-top:18px; display:grid; grid-template-columns:repeat(3,1fr); gap:12px; padding:18px; border-radius:22px; background:linear-gradient(90deg,rgba(124,58,237,.08),rgba(236,72,153,.08)); border:1px solid rgba(124,58,237,.12); }
.public-trust-strip div { display:flex; flex-direction:column; gap:4px; padding:4px 10px; }
.public-trust-strip strong { font-size:14px; }
.public-trust-strip span { color:var(--muted); font-size:12px; line-height:1.4; }

/* ============================================================
   CIRCLE NEXT — CHAT WALLPAPERS
   ============================================================ */

.active-conversation[data-chat-wallpaper="blush"] .message-list { background: radial-gradient(circle at 20% 20%, rgba(236,72,153,.14), transparent 28%), linear-gradient(135deg,#fff7fb,#fff); }
.active-conversation[data-chat-wallpaper="lavender"] .message-list { background: radial-gradient(circle at 80% 20%, rgba(124,58,237,.14), transparent 30%), linear-gradient(135deg,#faf7ff,#fff); }
.active-conversation[data-chat-wallpaper="sunset"] .message-list { background: linear-gradient(135deg,#fff1f2,#fff7ed 48%,#fef3ff); }
.active-conversation[data-chat-wallpaper="ocean"] .message-list { background: radial-gradient(circle at 20% 20%, rgba(59,130,246,.14), transparent 30%), linear-gradient(135deg,#eff8ff,#f7fbff); }
.active-conversation[data-chat-wallpaper="night"] .message-list { background: radial-gradient(circle at 80% 20%, rgba(167,139,250,.16), transparent 30%), linear-gradient(135deg,#17141d,#24202d); }
.active-conversation[data-chat-wallpaper="night"] .message-list .muted,
.active-conversation[data-chat-wallpaper="night"] .message-list h3 { color:#f4efff; }

.chat-wallpaper-section { padding-top:22px; }
.chat-wallpaper-section h4 { margin-bottom:5px; }
.chat-wallpaper-section > p { margin-bottom:15px; }
.chat-wallpaper-options { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.chat-wallpaper-option { border:1px solid var(--border); background:white; border-radius:16px; padding:10px; cursor:pointer; display:flex; flex-direction:column; gap:8px; align-items:center; min-height:86px; }
.chat-wallpaper-option.active { border:2px solid var(--purple); background:var(--light-purple); }
.wallpaper-preview { width:100%; height:42px; border-radius:11px; border:1px solid rgba(36,31,43,.08); }
.wallpaper-none { background:#fff; }
.wallpaper-blush { background:radial-gradient(circle at 20% 20%,rgba(236,72,153,.28),transparent 35%),#fff7fb; }
.wallpaper-lavender { background:radial-gradient(circle at 80% 20%,rgba(124,58,237,.28),transparent 35%),#faf7ff; }
.wallpaper-sunset { background:linear-gradient(135deg,#ffd9df,#fff0d6,#f4dcff); }
.wallpaper-ocean { background:radial-gradient(circle at 20% 20%,rgba(59,130,246,.30),transparent 35%),#eff8ff; }
.wallpaper-night { background:linear-gradient(135deg,#17141d,#3b3148); }

@media (max-width: 900px) {
    .showcase-grid { grid-template-columns:repeat(2,1fr); }
    .public-trust-strip { grid-template-columns:1fr; }
}

@media (max-width: 600px) {
    .showcase-grid { grid-template-columns:1fr; }
    .public-home-showcase { padding-left:14px; padding-right:14px; }
    .chat-wallpaper-options { grid-template-columns:repeat(2,1fr); }
}


/* ============================================================
   CIRCLE NEXT — SWIPE, PRO, PUBLIC PROFILES, EPIC ARCADE
   ============================================================ */
.topbar-actions{display:flex;align-items:center;gap:9px}
.pro-nav-btn{border:1px solid rgba(124,58,237,.25);background:linear-gradient(135deg,#faf5ff,#fff1f8);color:#6d28d9;border-radius:999px;padding:9px 14px;font-weight:900;cursor:pointer;white-space:nowrap}
.pro-nav-btn:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(124,58,237,.12)}
.swipe-zone{margin-top:34px;padding:26px;border-radius:30px;background:linear-gradient(135deg,#24143f,#6d28d9 55%,#ec4899);color:#fff;box-shadow:0 24px 60px rgba(72,37,94,.18);overflow:hidden;position:relative}
.swipe-zone:before{content:"";position:absolute;width:240px;height:240px;border-radius:50%;right:-80px;top:-100px;background:rgba(255,255,255,.12);filter:blur(2px)}
.swipe-zone-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;position:relative;z-index:1}
.swipe-zone h3{margin:5px 0;font-size:28px}.swipe-zone .muted{color:rgba(255,255,255,.78);max-width:650px}
.eyebrow{font-size:10px;font-weight:1000;letter-spacing:.16em;opacity:.75}.swipe-price-pill{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.2);padding:9px 12px;border-radius:999px;font-size:11px;font-weight:900;white-space:nowrap}
.swipe-deck{min-height:350px;display:flex;justify-content:center;align-items:center;padding:20px 0 12px;position:relative;z-index:1}.swipe-card{width:min(420px,100%);min-height:310px;border-radius:30px;background:#fff;color:#241f2b;padding:22px;box-shadow:0 25px 60px rgba(0,0,0,.25);position:relative;touch-action:none;user-select:none;cursor:grab;transition:transform .2s ease,opacity .2s ease}.swipe-card.dragging{cursor:grabbing;transition:none}.swipe-card img{width:100%;height:190px;object-fit:cover;border-radius:22px;background:#f3e8ff}.swipe-card .swipe-avatar{height:190px;border-radius:22px;background:linear-gradient(135deg,#ede9fe,#fce7f3);display:flex;align-items:center;justify-content:center;font-size:75px}.swipe-card-info{padding-top:14px}.swipe-card-info h4{font-size:23px;margin:0 0 2px}.swipe-card-info p{margin:4px 0;color:#756b7a;font-size:13px}.swipe-card-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.swipe-card-tag{background:#f3e8ff;color:#6d28d9;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:900}
.swipe-empty{text-align:center;padding:60px 20px;background:rgba(255,255,255,.1);border:1px dashed rgba(255,255,255,.28);border-radius:24px;width:min(520px,100%)}
.swipe-actions{display:flex;justify-content:center;align-items:center;gap:15px;position:relative;z-index:1}.swipe-action{width:68px;height:68px;border-radius:50%;border:0;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-size:25px;cursor:pointer;box-shadow:0 12px 28px rgba(0,0,0,.18)}.swipe-action small{font-size:7px;font-weight:1000;letter-spacing:.08em}.swipe-no{color:#ef4444}.swipe-yes{color:#16a34a}.swipe-rose{color:#ec4899;width:80px;height:80px}.swipe-note{text-align:center;margin:14px 0 0;font-size:10px;color:rgba(255,255,255,.62);position:relative;z-index:1}

/* Epic arcade */
.games-hero-epic{background:radial-gradient(circle at 80% 10%,rgba(255,255,255,.22),transparent 24%),radial-gradient(circle at 20% 100%,rgba(236,72,153,.25),transparent 28%),linear-gradient(135deg,#171124,#4c1d95 52%,#db2777)}
.games-stats{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.games-stats span{font-size:11px;padding:8px 10px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16)}.games-stats b{color:#fff;font-size:13px}.games-orbit-epic{box-shadow:0 0 60px rgba(255,255,255,.12),inset 0 0 50px rgba(255,255,255,.06)}
.game-mode-bar{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 4px}.game-mode{border:1px solid var(--border);background:#fff;color:var(--muted);padding:9px 13px;border-radius:999px;font-weight:900;font-size:11px;cursor:pointer}.game-mode.active{background:var(--light-purple);color:var(--purple);border-color:#ddd6fe}.games-grid-epic{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.games-grid-epic .game-card{min-height:265px}.games-grid-epic .game-card:nth-child(1),.games-grid-epic .game-card:nth-child(4){box-shadow:0 16px 40px rgba(124,58,237,.12)}.game-hot,.game-pro-tag{font-size:8px;font-weight:1000;letter-spacing:.08em;padding:4px 6px;border-radius:999px}.game-hot{background:#fff1f2;color:#e11d48}.game-pro-tag{background:#fff7ed;color:#c2410c}.simple-art{font-size:68px;background:linear-gradient(135deg,#faf5ff,#fce7f3)}.math-art{background:linear-gradient(135deg,#eff6ff,#eef2ff)}.golf-art{background:linear-gradient(135deg,#ecfdf5,#dcfce7)}.game-pro-banner{margin-top:20px;padding:17px 20px;border-radius:22px;background:linear-gradient(135deg,#fff7ed,#fef3c7);border:1px solid #fed7aa;display:flex;align-items:center;justify-content:space-between;gap:18px}.game-pro-banner>div{display:flex;align-items:center;gap:12px}.game-pro-banner p{margin:4px 0 0;font-size:13px;color:#7c5c33}.game-pro-crown{width:44px;height:44px;border-radius:14px;background:#f59e0b;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:1000;font-size:20px}.game-pro-banner .btn{white-space:nowrap}
.profile-modal,.pro-modal{position:fixed;inset:0;z-index:300;background:rgba(36,31,43,.55);display:flex;align-items:center;justify-content:center;padding:18px;backdrop-filter:blur(8px)}.profile-modal[hidden],.pro-modal[hidden]{display:none}.profile-modal-card,.pro-modal-card{width:min(560px,100%);max-height:88vh;overflow:auto;background:#fff;border-radius:30px;padding:28px;box-shadow:0 35px 100px rgba(20,10,30,.3);position:relative}.modal-close{position:absolute;right:16px;top:16px;border:0;background:#f5f3f7;border-radius:50%;width:38px;height:38px;cursor:pointer;font-weight:900}.public-profile-top{text-align:center;padding:8px 30px 20px}.public-profile-avatar{width:120px;height:120px;border-radius:36px;object-fit:cover;background:linear-gradient(135deg,#ede9fe,#fce7f3);display:flex;align-items:center;justify-content:center;font-size:48px;margin:0 auto 12px;overflow:hidden}.public-profile-avatar img{width:100%;height:100%;object-fit:cover}.public-profile-top h2{margin:4px 0}.public-profile-top p{margin:4px 0}.public-profile-bio{padding:16px;border-radius:18px;background:#faf8ff;border:1px solid var(--border);line-height:1.55}.public-profile-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:15px}.public-profile-actions .btn{flex:1}.pro-modal-card h2{font-size:30px;line-height:1.1;margin:12px 0}.pro-badge{display:inline-flex;padding:7px 10px;border-radius:999px;background:#fef3c7;color:#92400e;font-size:10px;font-weight:1000;letter-spacing:.12em}.pro-price{display:flex;align-items:baseline;gap:6px;margin:18px 0}.pro-price strong{font-size:42px}.pro-price span{color:var(--muted);font-weight:700}.pro-list{list-style:none;padding:0;margin:0 0 20px;display:grid;gap:10px}.pro-list li{padding:11px 13px;border-radius:14px;background:#faf8ff;border:1px solid var(--border);font-weight:700;font-size:13px}.pro-checkout-button{width:100%}.rose-big{text-align:center;font-size:70px}.rose-badge{background:#fce7f3;color:#be185d}.rose-checkout-button{width:100%}
.user-card{cursor:pointer;transition:transform .2s,box-shadow .2s}.user-card:hover{transform:translateY(-4px);box-shadow:0 20px 45px rgba(72,37,94,.12)}.user-card .discover-actions{position:relative;z-index:2}.user-card .friend-request-button,.user-card .block-user-button,.user-card .report-user-button{position:relative;z-index:3}
@media(max-width:950px){.games-grid-epic{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.topbar-actions{margin-left:auto}.pro-nav-btn{font-size:10px;padding:8px 10px}.swipe-zone{padding:20px}.swipe-zone-head{flex-direction:column}.games-grid-epic{grid-template-columns:1fr}.game-pro-banner{flex-direction:column;align-items:stretch}.game-pro-banner .btn{width:100%}.swipe-card{min-height:290px}.swipe-card img,.swipe-card .swipe-avatar{height:170px}.swipe-action{width:60px;height:60px}.swipe-rose{width:72px;height:72px}}


/* ============================================================
   CIRCLE DISCOVER 2.0 + ARCADE 4.0 POLISH
   ============================================================ */
.discover-mode-tabs{display:flex;gap:8px;margin:0 0 18px;padding:5px;border:1px solid var(--border);background:#fff;border-radius:18px;width:max-content;max-width:100%;box-shadow:0 10px 28px rgba(72,37,94,.05)}
.discover-mode-tab{border:0;background:transparent;color:var(--muted);padding:11px 16px;border-radius:13px;font-weight:900;cursor:pointer;transition:.18s}.discover-mode-tab:hover{color:var(--purple);background:var(--light-purple)}.discover-mode-tab.active{background:linear-gradient(135deg,#7c3aed,#ec4899);color:#fff;box-shadow:0 8px 18px rgba(124,58,237,.2)}
.discover-mode-panel[hidden]{display:none}.discover-mode-panel{animation:panelIn .2s ease}@keyframes panelIn{from{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:none}}

.games-hero-epic{min-height:280px}.games-hero-epic:after{content:"";position:absolute;inset:auto -8% -55% 45%;height:280px;background:radial-gradient(circle,rgba(255,255,255,.14),transparent 65%);pointer-events:none}.games-hero-copy,.games-orbit-epic{z-index:1}
.game-card{position:relative;overflow:hidden}.game-card:after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent 35%,rgba(255,255,255,.32) 50%,transparent 65%);transform:translateX(-130%);transition:.5s;pointer-events:none}.game-card:hover:after{transform:translateX(130%)}.game-card:focus-visible,.discover-mode-tab:focus-visible,.world-tool:focus-visible,.world-cell:focus-visible{outline:3px solid #c4b5fd;outline-offset:2px}
.game-card-world{background:linear-gradient(145deg,#fff,#f0fdf4)}.world-art{background:linear-gradient(#93c5fd 0 58%,#bbf7d0 58%);position:relative;overflow:hidden}.world-art .world-sky{position:absolute;width:80px;height:80px;border-radius:50%;background:#fde68a;right:20px;top:15px;box-shadow:0 0 40px rgba(253,230,138,.7)}.world-art .world-ground{position:absolute;inset:auto 0 0;height:43%;background:repeating-linear-gradient(90deg,#65a30d 0 18px,#84cc16 18px 36px)}.world-art b{position:absolute;left:34px;bottom:34px;font-size:42px}.world-art i{position:absolute;right:55px;bottom:30px;font-style:normal;font-size:40px}.world-art em{position:absolute;right:18px;bottom:50px;font-style:normal;font-size:27px}
.score-log-panel{margin-top:20px;border:1px solid var(--border);background:linear-gradient(180deg,#fff,#fbf9ff);border-radius:24px;padding:18px;box-shadow:0 14px 36px rgba(72,37,94,.06)}.score-log-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.score-log-head h3{margin:4px 0}.score-log-head p{margin:0;font-size:13px}.score-log-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:16px 0}.score-log-stats>div{padding:13px;border:1px solid var(--border);border-radius:16px;background:#fff}.score-log-stats strong{display:block;font-size:22px}.score-log-stats span{font-size:11px;color:var(--muted);font-weight:800}.score-log-list{display:grid;gap:7px}.score-log-row{display:flex;align-items:center;gap:11px;padding:10px;border:1px solid var(--border);border-radius:15px;background:#fff}.score-log-row>span:nth-child(2){display:flex;flex-direction:column;min-width:0;flex:1}.score-log-row small{color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.score-log-row>b{font-weight:1000;color:var(--purple)}.score-log-icon{width:34px;height:34px;border-radius:11px;display:flex;align-items:center;justify-content:center}.score-win{background:#ecfdf5}.score-draw{background:#eff6ff}.score-loss{background:#fff7ed}
.rps-match-header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;max-width:520px;margin:0 auto 6px}.rps-match-header>div{padding:14px;border:1px solid var(--border);border-radius:18px;background:linear-gradient(145deg,#fff,#faf7ff)}.rps-match-header>div:last-child{background:linear-gradient(145deg,#fff,#fff1f8)}.rps-match-header strong{display:block;font-size:34px;line-height:1}.rps-player-label{display:block;font-size:10px;letter-spacing:.12em;font-weight:1000;color:var(--muted);margin-bottom:5px}.rps-bestof{font-size:10px;font-weight:1000;letter-spacing:.1em;color:var(--purple);white-space:nowrap}.rps-round-note{margin:7px 0 18px}
.world-build-wrap{max-width:980px;margin:auto}.world-build-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.world-build-head h3{margin:4px 0}.world-build-head p{max-width:700px}.world-online-pill{padding:8px 10px;border-radius:999px;background:#ecfdf5;color:#15803d;font-size:10px;font-weight:1000;white-space:nowrap}.world-toolbar{display:flex;gap:7px;flex-wrap:wrap;margin:18px 0 12px}.world-tool{border:1px solid var(--border);background:#fff;border-radius:14px;min-width:58px;min-height:52px;padding:6px 8px;cursor:pointer;font-size:21px}.world-tool small{display:block;font-size:8px;font-weight:900;color:var(--muted);margin-top:2px}.world-tool.active{border-color:#a78bfa;background:#f5f3ff;box-shadow:0 5px 12px rgba(124,58,237,.1)}.world-tool.erase{background:#fff7ed}.world-canvas{display:grid;grid-template-columns:repeat(14,minmax(24px,1fr));gap:2px;padding:9px;border-radius:20px;background:linear-gradient(#7dd3fc 0 55%,#86efac 55%);border:1px solid var(--border);box-shadow:inset 0 0 0 1px rgba(255,255,255,.45);overflow:auto}.world-cell{aspect-ratio:1;border:1px solid rgba(0,0,0,.06);background:rgba(255,255,255,.18);border-radius:5px;cursor:pointer;font-size:clamp(13px,2.2vw,24px);display:flex;align-items:center;justify-content:center;min-width:24px;transition:.12s}.world-cell:hover{transform:translateY(-2px);background:rgba(255,255,255,.5)}.world-cell.filled{background:rgba(255,255,255,.35)}.world-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.world-ideas{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin-top:12px}.world-ideas span{font-size:11px;color:var(--muted);font-weight:900}.world-ideas b{font-size:10px;padding:6px 9px;border-radius:999px;background:var(--light-purple);color:var(--purple)}
@media(max-width:650px){.discover-mode-tabs{width:100%}.discover-mode-tab{flex:1;padding:10px 8px}.score-log-stats{grid-template-columns:repeat(2,1fr)}.rps-match-header{gap:7px}.rps-match-header>div{padding:11px}.rps-match-header strong{font-size:28px}.world-build-head{flex-direction:column}.world-canvas{grid-template-columns:repeat(14,28px);overflow-x:auto}.world-tool{min-width:52px}}


/* ============================================================
   CIRCLE 5.0 — GAME STUDIO / 3D-FEEL / AGE SAFETY
   ============================================================ */
.game-preview-card{max-width:720px}.game-preview-close{position:absolute;right:16px;top:16px}.game-preview-hero{display:grid;grid-template-columns:1.05fr .95fr;gap:20px;align-items:center}.game-preview-copy h2{font-size:34px;line-height:1.03;margin:8px 0}.game-preview-copy p{max-width:480px}.preview-art{min-height:250px;border-radius:28px;position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.55);box-shadow:inset 0 0 0 1px rgba(255,255,255,.25),0 25px 60px rgba(44,25,70,.15);background:linear-gradient(145deg,#312e81,#7c3aed 48%,#ec4899)}.preview-art:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 25% 20%,rgba(255,255,255,.35),transparent 25%),linear-gradient(120deg,transparent 30%,rgba(255,255,255,.15),transparent 70%)}.preview-floor{position:absolute;left:8%;right:8%;bottom:12%;height:34%;transform:skewY(-8deg) rotateX(62deg);transform-origin:center;background:repeating-linear-gradient(90deg,rgba(255,255,255,.12) 0 1px,transparent 1px 28px),repeating-linear-gradient(0deg,rgba(255,255,255,.1) 0 1px,transparent 1px 28px);border-radius:16px}.preview-die{position:absolute;left:50%;top:47%;transform:translate(-50%,-50%) rotateX(-18deg) rotateY(26deg) rotateZ(-7deg);width:92px;height:92px;border-radius:20px;background:linear-gradient(145deg,#fff,#dbeafe);box-shadow:20px 24px 0 rgba(31,24,65,.12),0 30px 50px rgba(0,0,0,.2);display:grid;place-items:center;font-size:45px}.preview-avatar{position:absolute;left:52%;bottom:25%;font-size:72px;filter:drop-shadow(0 14px 8px rgba(0,0,0,.25))}.preview-particles{position:absolute;inset:0;font-size:25px}.preview-particles span{position:absolute;animation:floatParticle 3s ease-in-out infinite}.preview-particles span:nth-child(1){left:12%;top:24%}.preview-particles span:nth-child(2){right:14%;top:18%;animation-delay:.5s}.preview-particles span:nth-child(3){right:19%;bottom:27%;animation-delay:1s}@keyframes floatParticle{50%{transform:translateY(-10px) rotate(8deg)}}.preview-badges{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.preview-badge{padding:7px 10px;border-radius:999px;background:#f5f3ff;color:#5b21b6;font-size:10px;font-weight:1000}.preview-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}.preview-actions .btn{flex:1;min-width:150px}.game-card .game-play-label{display:inline-flex;margin-top:8px;padding:6px 9px;border-radius:10px;background:#f5f3ff;color:#5b21b6;font-size:10px;font-weight:1000}.character-modal-card{max-width:720px}.character-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin:15px 0}.character-option{border:1px solid var(--border);background:#fff;border-radius:18px;padding:12px;cursor:pointer;text-align:center;transition:.18s}.character-option:hover{transform:translateY(-3px)}.character-option.active{border-color:#8b5cf6;background:#f5f3ff;box-shadow:0 8px 20px rgba(124,58,237,.12)}.character-option .char-face{font-size:38px;display:block;margin-bottom:6px}.character-option small{font-weight:900;color:var(--muted)}.character-preview-row{display:flex;align-items:center;gap:18px;padding:16px;border:1px solid var(--border);border-radius:22px;background:linear-gradient(135deg,#faf5ff,#fff1f2)}.character-big-preview{width:105px;height:105px;border-radius:28px;background:linear-gradient(145deg,#ddd6fe,#fbcfe8);display:grid;place-items:center;font-size:64px;box-shadow:inset 0 -10px 20px rgba(124,58,237,.08)}.character-preview-row strong{font-size:20px}.character-preview-row .btn{margin-top:8px}.age-safety-banner{display:flex;align-items:center;gap:10px;padding:11px 14px;margin:0 0 16px;border:1px solid #ddd6fe;background:linear-gradient(90deg,#faf5ff,#fff7fb);border-radius:16px;color:#5b21b6;font-size:12px}.age-safety-banner strong{white-space:nowrap}.game-result{padding:28px 16px;text-align:center;border-radius:26px;background:radial-gradient(circle at 50% 0,#fff,#faf5ff);border:1px solid var(--border);animation:resultPop .28s ease}.game-result-icon{font-size:64px;filter:drop-shadow(0 10px 10px rgba(0,0,0,.1));animation:resultBounce .65s ease}@keyframes resultPop{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}@keyframes resultBounce{50%{transform:translateY(-8px) scale(1.06)}}.trivia-score-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.trivia-score-strip>div{padding:10px;border-radius:14px;background:#fff;border:1px solid var(--border);text-align:center}.trivia-score-strip strong{display:block;font-size:20px}.trivia-score-strip span{font-size:10px;color:var(--muted);font-weight:900}.dice-stage{min-height:350px;border-radius:28px;padding:25px;position:relative;overflow:hidden;background:linear-gradient(145deg,#111827,#312e81 55%,#7c3aed);display:grid;place-items:center}.dice-stage:after{content:"";position:absolute;inset:auto 10% 8%;height:120px;border-radius:50%;background:rgba(0,0,0,.24);filter:blur(12px);transform:rotateX(65deg)}.dice-arena{position:relative;z-index:1;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:28px;width:min(620px,100%)}.dice-player{text-align:center;color:#fff}.dice-player span{display:block;font-size:10px;font-weight:1000;letter-spacing:.14em;opacity:.7}.dice-player strong{display:block;font-size:24px;margin:4px 0 10px}.die3d{width:94px;height:94px;margin:auto;border-radius:22px;background:linear-gradient(145deg,#fff,#c7d2fe);color:#312e81;display:grid;place-items:center;font-size:42px;font-weight:1000;box-shadow:18px 20px 0 rgba(0,0,0,.12),0 25px 35px rgba(0,0,0,.28);transform:perspective(500px) rotateX(16deg) rotateY(-20deg) rotateZ(5deg);transition:transform .3s}.die3d.rolling{animation:diceRoll .7s ease}@keyframes diceRoll{50%{transform:perspective(500px) rotateX(190deg) rotateY(180deg) rotateZ(80deg) scale(1.08)}}.dice-vs{color:#fff;font-weight:1000;opacity:.7}.dice-roll-button{position:relative;z-index:2;margin-top:25px}.world3d-wrap{min-height:480px;border-radius:30px;overflow:hidden;background:linear-gradient(#7dd3fc 0 48%,#38bdf8 48% 50%,#65a30d 50%);position:relative;padding:24px}.world3d-sky{position:absolute;inset:0;background:radial-gradient(circle at 75% 17%,#fef3c7 0 35px,transparent 36px),linear-gradient(180deg,rgba(255,255,255,.15),transparent 45%);pointer-events:none}.world3d-horizon{position:absolute;left:0;right:0;bottom:22%;height:34%;background:linear-gradient(145deg,#4d7c0f 0 30%,#65a30d 30% 65%,#84cc16 65%);clip-path:polygon(0 65%,18% 25%,34% 52%,52% 15%,69% 46%,85% 20%,100% 60%,100% 100%,0 100%);opacity:.9}.world3d-ground{position:absolute;left:8%;right:8%;bottom:8%;height:42%;transform:perspective(500px) rotateX(58deg);transform-origin:center bottom;background:repeating-linear-gradient(90deg,rgba(255,255,255,.12) 0 1px,transparent 1px 36px),repeating-linear-gradient(0deg,rgba(255,255,255,.11) 0 1px,transparent 1px 36px),linear-gradient(135deg,#84cc16,#4d7c0f);border:2px solid rgba(255,255,255,.18);border-radius:20px}.world3d-tree{position:absolute;font-size:56px;bottom:31%;z-index:2;filter:drop-shadow(0 12px 5px rgba(0,0,0,.2))}.world3d-tree.t1{left:16%}.world3d-tree.t2{right:18%;bottom:27%;font-size:70px}.world3d-house{position:absolute;right:38%;bottom:31%;font-size:78px;z-index:2;filter:drop-shadow(0 14px 5px rgba(0,0,0,.18))}.world3d-avatar{position:absolute;z-index:5;left:50%;bottom:24%;font-size:76px;transition:transform .12s;filter:drop-shadow(0 14px 7px rgba(0,0,0,.25))}.world3d-controls{position:absolute;left:18px;bottom:18px;z-index:8;display:grid;grid-template-columns:repeat(3,44px);gap:6px}.world3d-controls button{width:44px;height:44px;border:1px solid rgba(255,255,255,.35);background:rgba(17,24,39,.55);color:#fff;border-radius:13px;font-weight:1000;cursor:pointer}.world3d-controls button:first-child{grid-column:2}.world3d-hud{position:absolute;right:18px;top:18px;z-index:8;padding:12px 14px;border-radius:17px;background:rgba(17,24,39,.62);color:#fff;backdrop-filter:blur(8px);font-size:11px}.world3d-hud strong{display:block;font-size:15px}.world3d-blocks{position:absolute;right:18px;bottom:18px;z-index:8;display:flex;gap:7px}.world3d-blocks button{width:44px;height:44px;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.75);border-radius:13px;cursor:pointer;font-size:20px}.world3d-build-prompt{position:absolute;left:50%;top:16px;transform:translateX(-50%);z-index:8;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.85);color:#312e81;font-size:10px;font-weight:1000}.age-safety-lock{padding:16px;border-radius:18px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412}.age-safety-lock strong{display:block;margin-bottom:4px}
@media(max-width:700px){.game-preview-hero{grid-template-columns:1fr}.character-grid{grid-template-columns:repeat(3,1fr)}.character-preview-row{align-items:flex-start}.dice-arena{gap:10px}.die3d{width:76px;height:76px;font-size:34px}.world3d-wrap{min-height:430px}.age-safety-banner{align-items:flex-start;flex-direction:column}.preview-art{min-height:220px}}

/* ============================================================
   CIRCLE ARCADE V6 — GAME QUALITY + MOBILE FIRST
   ============================================================ */
.games-grid-epic .game-card{position:relative;overflow:hidden;min-height:250px;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.games-grid-epic .game-card:hover{transform:translateY(-5px);box-shadow:0 22px 50px rgba(88,28,135,.16)}
.game-art{min-height:132px;border-radius:22px;display:grid;place-items:center;position:relative;overflow:hidden}.game-art:after{content:"";position:absolute;inset:auto -20% -65% -20%;height:100px;background:rgba(255,255,255,.16);filter:blur(20px);transform:rotate(-5deg)}
.rps-art{background:linear-gradient(135deg,#111827,#7c3aed);font-size:45px;display:flex;gap:14px;align-items:center;justify-content:center}.trivia-art{background:radial-gradient(circle at 50% 20%,#a78bfa,#312e81 62%,#111827);font-size:72px;color:#fff;font-weight:1000}.world-art{background:linear-gradient(#7dd3fc 0 55%,#4d7c0f 55%);min-height:150px}.world-art .world-ground{position:absolute;inset:55% 0 0;background:linear-gradient(145deg,#65a30d,#166534)}.world-art b{position:absolute;bottom:30px;left:16%;font-size:48px}.world-art i{position:absolute;bottom:25px;right:15%;font-size:58px}.world-art em{position:absolute;bottom:25px;left:48%;font-size:38px}.pool-art{background:radial-gradient(circle,#0b7b59,#064e3b);font-size:65px}.golf-art{background:linear-gradient(145deg,#064e3b,#22c55e);font-size:68px}
.pro-game-preview{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:24px;align-items:stretch}.preview-showcase{min-height:360px;border-radius:30px;position:relative;overflow:hidden;display:grid;place-items:center;background:linear-gradient(145deg,#111827,#4c1d95)}.preview-glow{position:absolute;width:70%;height:70%;border-radius:50%;background:radial-gradient(circle,rgba(244,114,182,.5),transparent 65%);filter:blur(15px)}.preview-icon{font-size:110px;position:relative;filter:drop-shadow(0 20px 30px rgba(0,0,0,.25));animation:arcadeFloat 3s ease-in-out infinite}.preview-scene-label{position:absolute;left:22px;bottom:18px;color:#fff;font-weight:900;letter-spacing:.14em;font-size:11px}.preview-copy{display:flex;flex-direction:column;justify-content:center;padding:10px}.preview-copy h2{font-size:clamp(30px,4vw,52px);margin:6px 0 12px}.preview-copy>p{font-size:17px;line-height:1.65}.preview-badges{display:flex;gap:8px;flex-wrap:wrap}.preview-badges span{padding:8px 12px;border-radius:999px;background:#f3e8ff;color:#6b21a8;font-weight:800;font-size:12px}.preview-feature-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.preview-feature-list span{font-size:13px;font-weight:750}.preview-actions{display:flex;gap:10px;flex-wrap:wrap}
.arcade-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:20px}.arcade-result{min-height:360px;display:grid;place-items:center;text-align:center;align-content:center;padding:40px;border-radius:30px;background:linear-gradient(145deg,#fff,#faf5ff);border:1px solid #eadcff}.arcade-result-icon{font-size:84px;animation:arcadePop .55s ease}.arcade-result h2{font-size:clamp(30px,5vw,54px);margin:8px 0}.arcade-result p{max-width:620px;font-size:17px;color:#5b5568}.duel-score{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:15px;margin-bottom:18px}.duel-score span{background:#f8f5ff;padding:13px 16px;border-radius:16px;font-weight:900;display:flex;justify-content:space-between}.duel-score em{font-style:normal;font-size:11px;font-weight:900;color:#7c3aed;letter-spacing:.1em}.duel-arena{display:grid;grid-template-columns:1fr auto 1fr;gap:16px;align-items:center;max-width:650px;margin:auto;padding:28px;border-radius:30px;background:linear-gradient(135deg,#17152a,#4c1d95);color:#fff}.duel-avatar{min-height:150px;display:grid;place-items:center;font-size:80px;background:rgba(255,255,255,.08);border-radius:24px}.duel-vs{font-weight:1000;font-size:18px}.round-message{text-align:center;margin:18px 0}.move-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:650px;margin:0 auto}.move-card{min-height:110px;border:1px solid #eadcff;border-radius:22px;background:#fff;cursor:pointer;font-size:42px}.move-card small{display:block;font-size:12px;text-transform:uppercase;font-weight:900;color:#71677f;margin-top:7px}.dice-pro{padding:5px}.dice-table{min-height:300px;border-radius:34px;background:radial-gradient(circle at 50% 35%,#7c3aed,#25104f 65%,#100b20);display:grid;grid-template-columns:1fr auto 1fr;gap:20px;align-items:center;justify-items:center;box-shadow:inset 0 0 80px rgba(255,255,255,.08),0 25px 70px rgba(76,29,149,.22)}.die-3d{width:118px;height:118px;border-radius:24px;background:linear-gradient(145deg,#fff,#ddd6fe);display:grid;place-items:center;font-size:70px;color:#111827;box-shadow:0 22px 30px rgba(0,0,0,.3);transform-style:preserve-3d}.die-3d.tumble{animation:diceTumble .65s ease}.dice-center{font-weight:1000;color:#fff}.dice-big{display:block;margin:20px auto 0;min-width:180px}.sport-game{background:linear-gradient(145deg,#0f172a,#1e293b);padding:14px;border-radius:28px;color:#fff;box-shadow:0 24px 60px rgba(15,23,42,.18)}.sport-game canvas{display:block;width:100%;border-radius:22px;touch-action:none}.sport-hud{display:flex;justify-content:space-between;align-items:center;padding:12px 8px;font-size:12px;font-weight:900;letter-spacing:.08em}.sport-hud b{font-size:22px;color:#f0abfc}.golf-controls{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:center;padding:12px 0}.golf-controls input{accent-color:#c026d3}.golf-controls button{white-space:nowrap}.world-v6{position:relative;border-radius:28px;overflow:hidden;background:#8fd8ff;box-shadow:0 28px 70px rgba(30,64,175,.18)}.world-v6 canvas{display:block;width:100%;height:min(66vw,540px);min-height:400px;touch-action:none}.world-hud{position:absolute;top:15px;left:15px;display:flex;flex-direction:column;gap:3px;color:#fff;text-shadow:0 2px 6px rgba(0,0,0,.5);pointer-events:none}.world-hud b{font-size:18px}.world-hud span{font-size:11px}.world-chip{position:absolute;right:15px;top:15px;padding:8px 12px;border-radius:999px;background:rgba(15,23,42,.6);color:#fff;font-size:11px;font-weight:900}.world-mobile-controls{position:absolute;left:16px;bottom:16px;display:none;flex-direction:column;align-items:center;gap:3px}.world-mobile-controls button,.world-buildbar button{width:48px;height:48px;border:0;border-radius:14px;background:rgba(15,23,42,.65);color:#fff;font-weight:900;font-size:18px;backdrop-filter:blur(8px)}.world-buildbar{position:absolute;right:16px;bottom:16px;display:flex;gap:6px}.world-buildbar button{font-size:22px}.memory-game,.quiz-pro,.math-game,.guess-game,.word-game,.higher-game,.emoji-game,.choice-game,.truth-game,.category-game,.hangman-game,.chain-game{max-width:760px;margin:auto;text-align:center;padding:20px}.memory-top,.quiz-progress{display:flex;justify-content:space-between;margin-bottom:15px;font-size:12px;font-weight:900}.memory-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.memory-card{aspect-ratio:1;border:0;border-radius:18px;background:linear-gradient(145deg,#7c3aed,#db2777);color:#fff;font-size:38px;font-weight:900;cursor:pointer;box-shadow:0 10px 20px rgba(76,29,149,.12)}.memory-card.flipped{background:#fff;color:#111827;border:1px solid #eadcff}.quiz-pro{background:#fff;border:1px solid #eadcff;border-radius:26px}.quiz-pro h2{font-size:clamp(24px,4vw,40px);margin:20px 0}.quiz-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.quiz-options button{padding:18px;border:1px solid #eadcff;border-radius:18px;background:#faf7ff;font-weight:800;cursor:pointer}.quiz-options button.correct{background:#dcfce7;border-color:#22c55e}.quiz-options button.wrong{background:#fee2e2;border-color:#ef4444}.reaction-stage{width:100%;min-height:360px;border:0;border-radius:30px;background:#b91c1c;color:#fff;font-size:clamp(28px,5vw,54px);font-weight:1000;cursor:pointer}.reaction-stage.ready{background:#16a34a}.guess-orb{width:150px;height:150px;margin:10px auto 20px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,#f5d0fe,#7c3aed 60%,#312e81);color:#fff;font-size:70px;font-weight:1000;box-shadow:0 25px 60px rgba(124,58,237,.25)}.word-game input,.math-game input,.guess-game input,.emoji-game input,.category-game input,.chain-game input{display:block;width:min(100%,420px);margin:12px auto;padding:15px;border:1px solid #ddd2fe;border-radius:16px;font-size:16px}.scramble-word{font-size:clamp(38px,7vw,72px);font-weight:1000;letter-spacing:.12em;color:#6d28d9}.timer{font-size:24px;font-weight:1000;color:#db2777;margin:12px}.current-card{width:180px;height:220px;margin:0 auto 20px;border-radius:24px;background:#fff;border:1px solid #e9d5ff;display:grid;place-items:center;font-size:64px;font-weight:1000;box-shadow:0 20px 40px rgba(0,0,0,.08)}.hl-buttons{display:flex;justify-content:center;gap:12px}.emoji-clue{font-size:72px;padding:30px}.choice-card{display:block;width:100%;max-width:650px;margin:12px auto;padding:28px;border:1px solid #eadcff;border-radius:24px;background:#fff;font-size:20px;font-weight:850;cursor:pointer}.or{font-weight:1000;color:#8b5cf6}.td-card{padding:40px;border-radius:28px;background:linear-gradient(145deg,#111827,#4c1d95);color:#fff}.td-card button{margin:8px}.letter{width:90px;height:90px;margin:15px auto;border-radius:22px;background:#ede9fe;display:grid;place-items:center;color:#6d28d9;font-size:48px;font-weight:1000}.category-game #catTimer{display:block;font-size:44px;color:#db2777;margin:10px}.hang-word{font-size:clamp(34px,7vw,60px);letter-spacing:.18em;font-weight:1000;margin-bottom:15px}.letter-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}.letter-grid button{min-height:44px;border:1px solid #eadcff;border-radius:12px;background:#fff;font-weight:800}.chain-word{font-size:42px;font-weight:1000;color:#7c3aed}.avatar-swatch{width:70px;height:90px;display:block;position:relative;margin:auto}.avatar-swatch:before{content:"";position:absolute;top:4px;left:20px;width:30px;height:30px;border-radius:50%;background:var(--skin)}.avatar-swatch:after{content:"";position:absolute;top:35px;left:13px;width:44px;height:50px;border-radius:15px 15px 9px 9px;background:var(--shirt)}.avatar-big-preview{height:190px;width:150px;margin:auto;position:relative}.avatar-head{position:absolute;top:15px;left:49px;width:52px;height:52px;border-radius:50%;box-shadow:0 5px 15px rgba(0,0,0,.12)}.avatar-body{position:absolute;top:62px;left:36px;width:78px;height:85px;border-radius:25px 25px 14px 14px}.avatar-leg{position:absolute;top:138px;width:28px;height:50px;border-radius:14px;background:#1f2937}.avatar-leg.l{left:43px}.avatar-leg.r{left:80px}
@keyframes arcadeFloat{50%{transform:translateY(-12px) rotate(2deg)}}@keyframes arcadePop{0%{transform:scale(.5);opacity:0}100%{transform:scale(1);opacity:1}}@keyframes diceTumble{0%{transform:rotateX(0) rotateY(0) scale(1)}45%{transform:rotateX(240deg) rotateY(180deg) scale(1.12)}100%{transform:rotateX(360deg) rotateY(360deg) scale(1)}}
@media (max-width:700px){.pro-game-preview{grid-template-columns:1fr}.preview-showcase{min-height:230px}.preview-icon{font-size:82px}.preview-feature-list{grid-template-columns:1fr}.move-buttons{gap:8px}.move-card{min-height:90px;font-size:32px}.duel-arena{min-height:240px}.die-3d{width:82px;height:82px;font-size:48px}.dice-table{min-height:240px}.golf-controls{grid-template-columns:1fr 1fr}.golf-controls button{grid-column:1/-1}.world-mobile-controls{display:flex}.world-v6 canvas{height:72vw;min-height:380px}.memory-grid{gap:7px}.quiz-options{grid-template-columns:1fr}.letter-grid{grid-template-columns:repeat(6,1fr)}.arcade-result{padding:28px 18px}.games-grid-epic .game-card{min-height:225px}}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important}}


/* ============================================================
   CIRCLE ARCADE V7 — GAMEPLAY SHELL
   ============================================================ */
body.circle-game-open{overflow:hidden}
.game-area.game-playing{position:fixed;z-index:9999;inset:18px;max-width:1100px;margin:auto;max-height:calc(100vh - 36px);overflow:auto;background:rgba(255,255,255,.98);border:1px solid rgba(124,58,237,.18);box-shadow:0 28px 80px rgba(38,20,70,.28);border-radius:28px;padding:22px}
.game-area.game-playing .game-area-header{position:sticky;top:0;z-index:3;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);padding-bottom:14px}
.game-area.game-playing #gameBoard{min-height:520px;display:flex;flex-direction:column;justify-content:center}
.arcade-result{min-height:440px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;border-radius:26px;background:linear-gradient(135deg,#fff,#f6f0ff);border:1px solid rgba(124,58,237,.15)}
.arcade-result-icon{font-size:76px;line-height:1;margin-bottom:16px;filter:drop-shadow(0 12px 20px rgba(124,58,237,.18))}.arcade-result h2{font-size:clamp(30px,6vw,56px);margin:8px 0}.arcade-result p{max-width:620px;font-size:17px}.arcade-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:18px}
.cityrun-wrap{position:relative;border-radius:24px;overflow:hidden;background:#0b1020;min-height:520px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}
#cityRunCanvas{display:block;width:100%;height:clamp(430px,65vh,650px);touch-action:none}
.cityrun-hud{position:absolute;top:14px;left:14px;right:14px;display:flex;justify-content:space-between;gap:12px;align-items:flex-start;color:#fff;pointer-events:none}.cityrun-hud>div:first-child{background:rgba(5,8,20,.72);backdrop-filter:blur(10px);padding:12px 14px;border-radius:16px}.cityrun-hud strong,.cityrun-hud small{display:block}.cityrun-hud small{opacity:.75;margin-top:3px}.cityrun-stats{display:flex;align-items:center;gap:7px;background:rgba(5,8,20,.72);padding:12px 14px;border-radius:16px}.cityrun-stats b{font-size:25px}.cityrun-stats span{font-size:11px;opacity:.7}
.cityrun-controls{position:absolute;bottom:14px;left:14px;right:14px;display:flex;justify-content:space-between;align-items:end;pointer-events:none}.cityrun-controls>button,.cityrun-controls>div>button{pointer-events:auto;width:54px;height:54px;border:0;border-radius:16px;background:rgba(255,255,255,.9);font-weight:800;font-size:20px;box-shadow:0 8px 20px rgba(0,0,0,.2)}.cityrun-controls>div{display:flex;gap:7px}.cityrun-controls .city-action{background:#7c3aed;color:#fff;width:86px;font-size:12px}
.game-card-city .city-art{background:linear-gradient(145deg,#111827,#312e81);color:#fff;display:grid;place-items:center;position:relative;overflow:hidden}.city-art b{font-size:52px}.city-art i{position:absolute;bottom:8px;left:25px;font-size:34px}.city-art em{position:absolute;top:8px;right:18px;font-size:28px}.city-art small{position:absolute;bottom:8px;right:10px;font-size:9px;letter-spacing:.15em;color:#c4b5fd}
@media(max-width:700px){.game-area.game-playing{inset:8px;border-radius:20px;padding:12px;max-height:calc(100vh - 16px)}.game-area.game-playing #gameBoard{min-height:0}.arcade-result{min-height:430px;padding:20px}.arcade-result-icon{font-size:62px}.cityrun-wrap{min-height:500px}.cityrun-hud{top:9px;left:9px;right:9px}.cityrun-controls{bottom:9px;left:9px;right:9px}.cityrun-controls>button,.cityrun-controls>div>button{width:50px;height:50px}.game-area.game-playing .game-area-header h3{font-size:21px}}

/* ============================================================
   CIRCLE ARCADE ARCADE23 — NEW GAME STUDIO VISUAL SYSTEM
   ============================================================ */
html.circle-arcade23-lock, body.circle-game-open{overflow:hidden!important}
.game-area.arcade23-shell{position:fixed!important;inset:0!important;z-index:100000!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;padding:0!important;background:radial-gradient(circle at 20% 0%,#fff 0,#faf7ff 42%,#f1e9ff 100%)!important;overflow:auto!important}
.game-area.arcade23-shell .game-area-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:18px clamp(14px,4vw,46px)!important;background:rgba(255,255,255,.84)!important;border-bottom:1px solid rgba(124,58,237,.12);backdrop-filter:blur(18px)}
.game-area.arcade23-shell #gameBoard{min-height:calc(100dvh - 92px);display:flex;align-items:center;justify-content:center;padding:clamp(12px,3vw,34px);box-sizing:border-box}
.arcade23-card{min-height:300px!important;overflow:hidden!important;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease!important}
.arcade23-card:hover{transform:translateY(-5px)!important;box-shadow:0 24px 55px rgba(76,29,149,.16)!important;border-color:rgba(124,58,237,.25)!important}
.arcade23-card-art{min-height:170px;border-radius:22px;display:grid;place-items:center;position:relative;overflow:hidden;font-size:66px;font-weight:1000;letter-spacing:-.06em;color:white;text-shadow:0 8px 25px rgba(0,0,0,.2)}
.arcade23-card-art i{position:absolute;right:14px;bottom:12px;font-style:normal;font-size:10px;letter-spacing:.18em;opacity:.8}.arcade23-card-art.pool{background:radial-gradient(circle at 50% 35%,#169c70,#07563d 65%,#062f25)}.arcade23-card-art.golf{background:linear-gradient(145deg,#2f9e67,#14532d)}.arcade23-card-art.four{background:linear-gradient(145deg,#172554,#312e81)}.arcade23-card-art.xo{background:linear-gradient(145deg,#ec4899,#7c3aed);font-size:56px;word-spacing:24px}.arcade23-card-art.rps{background:linear-gradient(145deg,#111827,#4c1d95);font-size:44px}.arcade23-card-art.dice{background:linear-gradient(145deg,#7c3aed,#db2777)}.arcade23-card-art.imposter{background:radial-gradient(circle at 50% 30%,#475569,#020617);font-size:78px}.arcade23-card-art.laser{background:linear-gradient(145deg,#0f172a,#075985);font-size:82px}.arcade23-card-art.city3d{background:linear-gradient(180deg,#111827,#312e81 55%,#111827);font-size:50px}.arcade23-card-art.world3d{background:linear-gradient(180deg,#7dd3fc,#60a5fa 50%,#166534);font-size:50px}.arcade23-card-art.trivia{background:linear-gradient(145deg,#f59e0b,#db2777);font-size:100px}.arcade23-card-art.memory{background:linear-gradient(145deg,#06b6d4,#7c3aed);font-size:78px}
.arcade23-boardgame{width:min(760px,100%);padding:clamp(16px,3vw,30px);border-radius:30px;background:rgba(255,255,255,.9);border:1px solid rgba(124,58,237,.14);box-shadow:0 25px 70px rgba(38,20,70,.12);text-align:center}.arcade23-match-score{display:grid;grid-template-columns:1fr auto 1fr;gap:14px;align-items:center;margin-bottom:24px}.arcade23-match-score b{font-size:18px}.arcade23-match-score span{font-size:11px;font-weight:900;letter-spacing:.12em;color:#8b5cf6}.arcade23-ttt-grid{width:min(430px,100%);margin:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.arcade23-ttt-grid button{aspect-ratio:1;border:0;border-radius:22px;background:linear-gradient(145deg,#f5f3ff,#fff);font-size:clamp(42px,9vw,80px);font-weight:1000;color:#7c3aed;box-shadow:inset 0 0 0 1px #e9d5ff;cursor:pointer}.arcade23-rps-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.arcade23-rps-buttons button{min-height:150px;border:1px solid #e9d5ff;border-radius:26px;background:#fff;font-size:clamp(46px,9vw,78px);cursor:pointer;transition:.2s}.arcade23-rps-buttons button:hover{transform:translateY(-5px);box-shadow:0 20px 40px rgba(124,58,237,.14)}.arcade23-dice-big{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;margin:30px 0}.arcade23-dice-big span{min-height:130px;display:grid;place-items:center;border-radius:28px;background:linear-gradient(145deg,#fff,#ede9fe);font-size:76px;font-weight:1000;color:#111827;box-shadow:0 20px 40px rgba(0,0,0,.08)}.arcade23-memory-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.arcade23-memory-grid button{aspect-ratio:1;border:0;border-radius:20px;background:linear-gradient(145deg,#7c3aed,#db2777);color:white;font-size:40px;font-weight:1000;cursor:pointer}.arcade23-memory-grid button.open{background:white;color:#111827;box-shadow:inset 0 0 0 2px #e9d5ff}.arcade23-quiz-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.arcade23-quiz-grid button{padding:20px;border:1px solid #e9d5ff;border-radius:18px;background:#fff;font-weight:800;cursor:pointer}.arcade23-c4{width:min(620px,100%);margin:auto;display:grid;grid-template-columns:repeat(7,1fr);gap:7px;background:#3730a3;padding:12px;border-radius:28px}.arcade23-c4 button{aspect-ratio:1;border:0;border-radius:50%;background:#e0e7ff;font-size:clamp(25px,5vw,42px);color:transparent;cursor:pointer;box-shadow:inset 0 4px 8px rgba(0,0,0,.08)}.arcade23-c4 button.R{background:#ef4444;color:#fff}.arcade23-c4 button.Y{background:#facc15;color:#fff}
.arcade23-pool-wrap,.arcade23-golf,.arcade23-laser,.arcade23-world,.arcade23-city{width:min(1100px,100%);position:relative}.arcade23-pool-score,.arcade23-golf-hud,.arcade23-city-hud{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:12px}.arcade23-pool-score div,.arcade23-golf-hud div,.arcade23-city-hud div{background:rgba(255,255,255,.88);border:1px solid rgba(124,58,237,.12);border-radius:18px;padding:11px 14px}.arcade23-pool-score span,.arcade23-golf-hud span,.arcade23-city-hud span{display:block;font-size:9px;letter-spacing:.15em;font-weight:900;color:#8b5cf6}.arcade23-pool-score b,.arcade23-golf-hud b,.arcade23-city-hud b{display:block;font-size:18px;margin-top:3px}.arcade23-pool-canvas,.arcade23-golf canvas,.arcade23-laser canvas,.arcade23-world canvas,.arcade23-city canvas{display:block;width:100%;height:min(68dvh,620px);min-height:380px;border-radius:30px;box-shadow:0 30px 80px rgba(38,20,70,.18);touch-action:none}.arcade23-pool-canvas{background:#07563d}.arcade23-pool-hint,.arcade23-golf-help,.arcade23-laser-help,.arcade23-world-note{margin-top:10px;padding:12px 15px;border-radius:16px;background:rgba(255,255,255,.76);font-size:13px;color:#5b5266;display:flex;justify-content:space-between;gap:12px;align-items:center}.arcade23-pool-mobile,.arcade23-drive-controls{display:flex;justify-content:center;gap:10px;margin-top:10px}.arcade23-pool-mobile button,.arcade23-drive-controls button{min-width:54px;min-height:50px;border:0;border-radius:16px;background:#111827;color:white;font-weight:900}.arcade23-golf{padding-bottom:10px}.arcade23-golf canvas{background:#176b47}.arcade23-imposter{width:min(900px,100%);padding:20px;text-align:center}.arcade23-imposter-top{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:15px;border-radius:18px;background:#111827;color:#fff}.arcade23-imposter-top span{font-size:10px;letter-spacing:.14em;opacity:.7}.arcade23-player-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.arcade23-player-card{padding:22px 12px;border:1px solid #e9d5ff;border-radius:24px;background:#fff;cursor:pointer}.arcade23-player-card.selected{outline:3px solid #7c3aed;background:#f5f3ff}.arcade23-avatar-face{font-size:48px;display:block}.arcade23-player-card b,.arcade23-player-card small{display:block}.arcade23-player-card small{margin-top:5px;color:#8b5cf6;font-size:10px;font-weight:900;letter-spacing:.1em}.arcade23-laser{background:#080f1d;border-radius:30px;padding:12px;color:white}.arcade23-laser-hud{position:absolute;left:25px;right:25px;top:25px;display:flex;justify-content:space-between;align-items:center;z-index:2;pointer-events:none}.arcade23-laser-hud b{font-size:26px}.arcade23-laser-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px}.arcade23-laser-controls>div{display:flex;flex-direction:column;align-items:center}.arcade23-laser-controls>div>div{display:flex}.arcade23-laser-controls button{width:52px;height:52px;border:0;border-radius:15px;background:#1e293b;color:#fff;font-weight:1000;margin:3px}.arcade23-laser-controls #laserFire{width:130px;background:#0ea5e9}.arcade23-world canvas,.arcade23-city canvas{background:#9bdcff}.arcade23-world-hud{position:absolute;left:20px;top:20px;display:flex;gap:10px;z-index:3}.arcade23-world-hud div{padding:10px 13px;border-radius:16px;background:rgba(15,23,42,.72);color:#fff;backdrop-filter:blur(12px)}.arcade23-world-hud span,.arcade23-city-hud span{display:block;font-size:9px;letter-spacing:.13em;opacity:.65}.arcade23-world-hud b{display:block;margin-top:3px}.arcade23-world-controls{position:absolute;left:20px;right:20px;bottom:22px;display:flex;justify-content:space-between;align-items:end;z-index:4}.arcade23-world-controls button,.arcade23-drive-controls button{width:52px;height:52px}.arcade23-world-actions{display:flex;gap:8px}.arcade23-world-actions button{width:auto;padding:0 16px;background:rgba(15,23,42,.78)}.arcade23-city-hud{position:absolute;left:22px;right:22px;top:20px;z-index:3}.arcade23-drive-controls{position:absolute;left:22px;right:22px;bottom:20px;z-index:4;justify-content:space-between}.arcade23-drive-controls>div{display:flex;flex-direction:column;align-items:center}.arcade23-drive-controls>div>div{display:flex}.arcade23-drive-controls button{background:rgba(15,23,42,.8);color:#fff;border:0}.arcade23-drive-controls #cityNitro{width:130px;background:#ec4899}.arcade23-result{width:min(760px,100%);min-height:520px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px;border-radius:32px;background:linear-gradient(145deg,#fff,#f6f0ff);box-shadow:0 30px 80px rgba(76,29,149,.15)}.arcade23-result-icon{font-size:86px;filter:drop-shadow(0 14px 25px rgba(124,58,237,.2))}.arcade23-kicker{font-size:11px;letter-spacing:.2em;font-weight:1000;color:#8b5cf6}.arcade23-result h2{font-size:clamp(34px,7vw,68px);margin:8px 0}.arcade23-result p{max-width:620px;font-size:17px}.arcade23-result-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:16px}.arcade23-mini-person{width:78px;height:92px;display:block;position:relative;margin:0 auto 8px}.arcade23-mini-person:before{content:'';position:absolute;width:34px;height:34px;left:22px;top:3px;border-radius:50%;background:var(--skin)}.arcade23-mini-person:after{content:'';position:absolute;width:50px;height:54px;left:14px;top:35px;border-radius:18px 18px 10px 10px;background:var(--shirt)}.arcade23-avatar-large{width:180px;height:230px;position:relative;margin:auto}.arcade23-face{position:absolute;left:58px;top:16px;width:64px;height:64px;border-radius:50%;background:var(--skin);z-index:2}.arcade23-face i{position:absolute;top:27px;width:7px;height:7px;background:#111;border-radius:50%}.arcade23-face i:first-child{left:18px}.arcade23-face i:nth-child(2){right:18px}.arcade23-face b{position:absolute;left:25px;bottom:14px;width:14px;height:7px;border-bottom:2px solid #7c2d12;border-radius:50%}.arcade23-hair{position:absolute;left:52px;top:5px;width:76px;height:45px;background:#151515;border-radius:50% 50% 30% 30%;z-index:3}.arcade23-body{position:absolute;left:38px;top:73px;width:104px;height:90px;border-radius:28px 28px 18px 18px;background:var(--shirt)}.arcade23-arm{position:absolute;top:80px;width:22px;height:78px;border-radius:14px;background:var(--skin)}.arcade23-arm.l{left:20px;transform:rotate(8deg)}.arcade23-arm.r{right:20px;transform:rotate(-8deg)}.arcade23-leg{position:absolute;top:152px;width:31px;height:68px;border-radius:16px;background:#172033}.arcade23-leg.l{left:53px}.arcade23-leg.r{right:53px}
@media(max-width:700px){.game-area.arcade23-shell .game-area-header{padding:12px 14px!important}.game-area.arcade23-shell #gameBoard{min-height:calc(100dvh - 76px);padding:10px}.arcade23-memory-grid{gap:6px}.arcade23-memory-grid button{font-size:30px;border-radius:14px}.arcade23-quiz-grid{grid-template-columns:1fr}.arcade23-player-grid{grid-template-columns:1fr 1fr}.arcade23-pool-canvas,.arcade23-golf canvas,.arcade23-laser canvas,.arcade23-world canvas,.arcade23-city canvas{height:64dvh;min-height:360px;border-radius:22px}.arcade23-world-hud{left:10px;right:10px;top:10px;gap:5px}.arcade23-world-hud div{padding:8px 9px}.arcade23-world-hud b{font-size:11px}.arcade23-city-hud{left:10px;right:10px;top:10px;gap:5px}.arcade23-city-hud div{padding:8px}.arcade23-city-hud b{font-size:12px}.arcade23-pool-score,.arcade23-golf-hud{gap:5px}.arcade23-pool-score div,.arcade23-golf-hud div{padding:8px}.arcade23-pool-score b,.arcade23-golf-hud b{font-size:14px}.arcade23-pool-hint,.arcade23-golf-help,.arcade23-laser-help,.arcade23-world-note{font-size:11px;display:block}.arcade23-pool-hint .small-btn{margin-top:7px}.arcade23-card-art{min-height:145px}.arcade23-card{min-height:270px!important}}

/* ============================================================
   CIRCLE V9 — CORE PRODUCT / MOBILE FOUNDATION
   ============================================================ */
.chat-header-actions{display:flex;align-items:center;gap:7px;margin-left:auto}.call-btn:disabled{opacity:.45;cursor:not-allowed}
.settings-hub{margin-top:26px;padding:20px;border:1px solid var(--border);border-radius:24px;background:linear-gradient(145deg,#fff,#fbf8ff)}
.settings-kicker{font-size:10px;font-weight:900;letter-spacing:.16em;color:var(--purple)}
.settings-hub-head h3{margin:5px 0 4px}.settings-hub-head p{margin:0;max-width:700px;line-height:1.55}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}.settings-tile{min-height:108px;border:1px solid var(--border);background:#fff;border-radius:18px;padding:15px;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:5px;transition:.18s}.settings-tile:hover{transform:translateY(-2px);box-shadow:0 12px 25px rgba(72,37,94,.08)}.settings-tile span{font-size:22px}.settings-tile strong{font-size:14px}.settings-tile small{font-size:12px;color:var(--muted);line-height:1.35}
.info-modal,.call-modal{position:fixed;inset:0;z-index:10000;background:rgba(25,18,32,.58);display:flex;align-items:center;justify-content:center;padding:18px}.info-modal[hidden],.call-modal[hidden]{display:none}.info-modal-card{width:min(620px,100%);max-height:86vh;overflow:auto;background:#fff;border-radius:26px;padding:22px;box-shadow:0 30px 90px rgba(0,0,0,.25)}.info-modal-head{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--border);padding-bottom:14px}.info-modal-head h3{margin:5px 0}.info-modal-body{padding-top:18px;line-height:1.65}.info-modal-body ul{padding-left:20px}.settings-note{padding:12px 14px;background:var(--light-purple);border-radius:14px;color:#5b21b6}.help-links{display:grid;grid-template-columns:1fr 1fr;gap:9px}.help-links button,.appearance-choice{border:1px solid var(--border);background:#fff;border-radius:14px;padding:12px;text-align:left;cursor:pointer;font-weight:750}.appearance-options{display:flex;gap:9px;flex-wrap:wrap}.appearance-choice.active{border-color:var(--purple);background:var(--light-purple);color:var(--purple)}.blocked-users-list{display:grid;gap:9px;margin-top:16px}.blocked-user-row{display:flex;align-items:center;gap:11px;border:1px solid var(--border);border-radius:16px;padding:10px}.blocked-user-row>div:nth-child(2){min-width:0;flex:1;display:flex;flex-direction:column}.blocked-user-row small{color:var(--muted)}.blocked-avatar{width:44px;height:44px;border-radius:50%;overflow:hidden;background:var(--light-purple);display:flex;align-items:center;justify-content:center}.blocked-avatar img{width:100%;height:100%;object-fit:cover}.settings-empty{text-align:center;padding:28px}.settings-empty span{font-size:36px;display:block}.unblock-btn{white-space:nowrap}
.call-card{width:min(850px,100%);background:#111018;color:#fff;border-radius:28px;padding:16px;box-shadow:0 30px 100px rgba(0,0,0,.45)}.call-topbar{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:5px 5px 14px}.call-topbar .muted{color:#c8c1d0}.call-stage{position:relative;min-height:min(65vh,620px);background:radial-gradient(circle at 50% 30%,#392d49,#111018 70%);border-radius:22px;overflow:hidden;display:flex;align-items:center;justify-content:center}.remote-call-video{width:100%;height:100%;min-height:360px;object-fit:cover;background:#17131b}.local-call-video{position:absolute;right:16px;bottom:16px;width:150px;height:205px;object-fit:cover;border-radius:16px;border:2px solid rgba(255,255,255,.7);background:#24202b;display:none}.call-avatar-fallback{width:110px;height:110px;border-radius:50%;background:linear-gradient(145deg,#8b5cf6,#ec4899);align-items:center;justify-content:center;font-size:48px}.call-controls{display:flex;justify-content:center;gap:14px;padding-top:14px}.call-control{width:52px;height:52px;border:0;border-radius:50%;background:#2b2631;color:#fff;font-size:20px;cursor:pointer}.call-control.end{background:#ef4444;transform:rotate(135deg)}.incoming-call-card{width:min(390px,100%);background:#fff;border-radius:28px;padding:28px;text-align:center;box-shadow:0 30px 90px rgba(0,0,0,.3)}.incoming-call-avatar{width:92px;height:92px;border-radius:50%;margin:16px auto;background:var(--light-purple);display:flex;align-items:center;justify-content:center;font-size:42px}.incoming-call-actions{display:flex;gap:10px;justify-content:center;margin-top:22px}.mobile-bottom-nav{display:none}

@media(max-width:700px){
  body{padding-bottom:74px}.settings-grid{grid-template-columns:1fr}.help-links{grid-template-columns:1fr}.info-modal,.call-modal{padding:0}.info-modal-card,.incoming-call-card{border-radius:0 0 24px 24px;max-height:92vh}.call-card{width:100%;height:100%;border-radius:0;padding:10px}.call-stage{min-height:calc(100vh - 145px);border-radius:18px}.local-call-video{width:112px;height:154px;right:12px;bottom:12px}.mobile-bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);left:0;right:0;bottom:0;z-index:9000;height:66px;background:rgba(255,255,255,.96);backdrop-filter:blur(18px);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom)}.mobile-bottom-nav button{border:0;background:transparent;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:19px;min-width:0;cursor:pointer}.mobile-bottom-nav button small{font-size:10px;font-weight:800}.mobile-bottom-nav button.active{color:var(--purple)}.chat-header-actions{gap:4px}.call-btn{width:40px;height:40px;padding:0}.settings-hub{padding:15px}.settings-tile{min-height:96px}
}

/* ============================================================
   CIRCLE V10 — FINISHED SETTINGS + RICH CHAT WALLPAPERS
   ============================================================ */
.settings-shell{width:min(980px,100%);margin:0 auto;padding:24px 0 70px}
.settings-hero{padding:8px 0 22px}.settings-hero h2{font-size:32px;line-height:1.05;margin:7px 0}.settings-grid-v10{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.settings-tile{position:relative;text-decoration:none}.settings-tile b{position:absolute;right:15px;top:18px;font-size:24px;color:var(--muted);font-weight:400}.settings-tile-primary{border-color:rgba(124,58,237,.28);background:linear-gradient(135deg,rgba(124,58,237,.08),rgba(236,72,153,.06))}.profile-settings-card{max-height:92vh;overflow:auto}.profile-settings-form{display:grid;gap:14px}.profile-settings-form label{display:grid;gap:6px;font-size:13px;font-weight:700}.profile-settings-form input,.profile-settings-form textarea{width:100%;box-sizing:border-box}.profile-settings-form textarea{min-height:90px;resize:vertical}.settings-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.profile-settings-avatar-row{display:flex;align-items:center;gap:14px;padding:12px;border:1px solid var(--border);border-radius:18px;background:var(--surface,#fff)}.profile-settings-avatar{width:72px;height:72px;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#8b5cf6,#ec4899);color:#fff;font-size:28px;flex:none}.profile-settings-avatar img{width:100%;height:100%;object-fit:cover}.upload-btn{display:inline-flex!important;width:max-content!important;padding:10px 14px;border-radius:12px;background:var(--light-purple);color:var(--purple);cursor:pointer}.settings-preference-list{display:grid;gap:2px;border:1px solid var(--border);border-radius:18px;overflow:hidden}.settings-preference-list label{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px;background:var(--surface,#fff);border-bottom:1px solid var(--border);cursor:pointer}.settings-preference-list label:last-child{border-bottom:0}.settings-preference-list span{display:grid;gap:3px}.settings-preference-list small{color:var(--muted);font-weight:500}.settings-preference-list input{width:20px;height:20px;accent-color:var(--purple)}.security-actions{display:flex;flex-wrap:wrap;gap:10px}.help-answer{margin-top:14px;padding:16px;border-radius:16px;background:var(--light-purple);border:1px solid rgba(124,58,237,.14)}
/* richer original Circle wallpapers — inspired by the current messaging-app pattern of curated categories, gradients, doodles and subtle motion */
.active-conversation[data-chat-wallpaper="blush"] .message-list{background:radial-gradient(circle at 10% 10%,rgba(236,72,153,.25),transparent 25%),radial-gradient(circle at 90% 80%,rgba(124,58,237,.18),transparent 28%),linear-gradient(135deg,#fff0f7,#f9f3ff)}
.active-conversation[data-chat-wallpaper="lavender"] .message-list{background:radial-gradient(circle at 80% 10%,rgba(167,139,250,.35),transparent 30%),radial-gradient(circle at 20% 90%,rgba(236,72,153,.16),transparent 28%),linear-gradient(145deg,#f5efff,#fbf5ff)}
.active-conversation[data-chat-wallpaper="sunset"] .message-list{background:radial-gradient(circle at 75% 15%,#fb7185 0 4%,transparent 22%),radial-gradient(circle at 20% 85%,#f59e0b 0 3%,transparent 24%),linear-gradient(135deg,#fff1f2,#fff7ed 52%,#fef3ff)}
.active-conversation[data-chat-wallpaper="ocean"] .message-list{background:radial-gradient(circle at 15% 15%,rgba(14,165,233,.30),transparent 26%),radial-gradient(circle at 90% 85%,rgba(59,130,246,.24),transparent 30%),linear-gradient(145deg,#eaf8ff,#f0f5ff)}
.active-conversation[data-chat-wallpaper="night"] .message-list{background:radial-gradient(circle at 75% 20%,rgba(139,92,246,.38),transparent 24%),radial-gradient(circle at 20% 80%,rgba(236,72,153,.20),transparent 30%),linear-gradient(145deg,#100d18,#21182c 52%,#100d18)}
.active-conversation[data-chat-wallpaper="doodle"] .message-list{background-color:#fff7fb;background-image:radial-gradient(circle at 20px 20px,rgba(124,58,237,.10) 2px,transparent 3px),radial-gradient(circle at 70px 65px,rgba(236,72,153,.10) 2px,transparent 3px);background-size:90px 90px}
.active-conversation[data-chat-wallpaper="aurora"] .message-list{background:radial-gradient(ellipse at 20% 20%,rgba(34,211,238,.28),transparent 35%),radial-gradient(ellipse at 80% 40%,rgba(168,85,247,.32),transparent 40%),radial-gradient(ellipse at 40% 90%,rgba(236,72,153,.20),transparent 38%),#f5f3ff}
.active-conversation[data-chat-wallpaper="city"] .message-list{background:linear-gradient(180deg,rgba(20,18,30,.1),transparent 45%),repeating-linear-gradient(90deg,rgba(124,58,237,.08) 0 2px,transparent 2px 42px),linear-gradient(135deg,#eee8ff,#fff0f6)}
.active-conversation[data-chat-wallpaper="stars"] .message-list{background-color:#11101a;background-image:radial-gradient(circle at 15% 20%,#fff 0 1px,transparent 2px),radial-gradient(circle at 70% 30%,#fff 0 1px,transparent 2px),radial-gradient(circle at 40% 80%,#fff 0 1px,transparent 2px),radial-gradient(circle at 90% 70%,#fff 0 1px,transparent 2px);background-size:120px 100px,170px 150px,140px 130px,190px 170px}
.active-conversation[data-chat-wallpaper="stars"] .message-list .muted,.active-conversation[data-chat-wallpaper="night"] .message-list .muted{color:#ddd6fe}
.active-conversation[data-chat-wallpaper="custom"] .message-list{background-image:linear-gradient(rgba(15,10,25,.18),rgba(15,10,25,.18)),var(--circle-chat-custom);background-size:cover;background-position:center}
.wallpaper-preview{width:68px;height:42px;border-radius:11px;border:1px solid var(--border);display:block;background-size:cover}.wallpaper-doodle{background-color:#fff0f7;background-image:radial-gradient(circle at 15px 15px,#ec4899 2px,transparent 3px),radial-gradient(circle at 45px 25px,#8b5cf6 2px,transparent 3px);background-size:50px 45px}.wallpaper-aurora{background:linear-gradient(135deg,#22d3ee,#8b5cf6,#ec4899)}.wallpaper-city{background:repeating-linear-gradient(90deg,#8b5cf6 0 2px,transparent 2px 12px),linear-gradient(135deg,#eee8ff,#fff0f6)}.wallpaper-stars{background-color:#11101a;background-image:radial-gradient(circle,#fff 0 1px,transparent 2px);background-size:13px 13px}.wallpaper-custom{background:linear-gradient(135deg,#8b5cf6,#ec4899);display:flex;align-items:center;justify-content:center}.wallpaper-custom:after{content:'＋';color:#fff;font-size:20px}
html[data-app-appearance="dark"] body{background:#0d0b12;color:#f7f3ff}html[data-app-appearance="dark"] .form-card,html[data-app-appearance="dark"] .settings-tile,html[data-app-appearance="dark"] .settings-preference-list label,html[data-app-appearance="dark"] .info-modal-card,html[data-app-appearance="dark"] .chat-settings-card{background:#17131e;color:#f7f3ff;border-color:#342c40}html[data-app-appearance="dark"] .muted,html[data-app-appearance="dark"] .settings-preference-list small{color:#b8afc5}html[data-app-appearance="dark"] input,html[data-app-appearance="dark"] textarea,html[data-app-appearance="dark"] select{background:#0f0c14;color:#fff;border-color:#3a3046}
@media(max-width:650px){.settings-grid-v10{grid-template-columns:1fr}.settings-form-grid{grid-template-columns:1fr}.settings-shell{padding:14px 0 80px}.settings-hero h2{font-size:27px}.profile-settings-card{border-radius:0 0 24px 24px}.chat-wallpaper-options{grid-template-columns:repeat(2,1fr)}}

/* V12: complete app-wide appearance coverage. */
html[data-app-appearance="dark"] {
    color-scheme: dark;
}
html[data-app-appearance="dark"] .page,
html[data-app-appearance="dark"] .settings-hub,
html[data-app-appearance="dark"] .discover-mode-panel,
html[data-app-appearance="dark"] .conversation-panel,
html[data-app-appearance="dark"] .active-conversation-panel,
html[data-app-appearance="dark"] .settings-grid,
html[data-app-appearance="dark"] .discover-card,
html[data-app-appearance="dark"] .user-card,
html[data-app-appearance="dark"] .friend-request-card,
html[data-app-appearance="dark"] .form-card,
html[data-app-appearance="dark"] .profile-card,
html[data-app-appearance="dark"] .info-modal-card,
html[data-app-appearance="dark"] .profile-settings-card,
html[data-app-appearance="dark"] .blocked-users-card,
html[data-app-appearance="dark"] .chat-settings-card,
html[data-app-appearance="dark"] .game-area,
html[data-app-appearance="dark"] .game-card,
html[data-app-appearance="dark"] .game-social-banner,
html[data-app-appearance="dark"] .game-modal-card,
html[data-app-appearance="dark"] .swipe-card {
    background-color: #17131e;
    color: #f7f3ff;
    border-color: #342c40;
}
html[data-app-appearance="dark"] .game-card,
html[data-app-appearance="dark"] .game-area,
html[data-app-appearance="dark"] .game-social-banner {
    background-image: none;
}
html[data-app-appearance="dark"] .conversation-list,
html[data-app-appearance="dark"] .message-search,
html[data-app-appearance="dark"] .message-form {
    background: #17131e;
    border-color: #342c40;
}
html[data-app-appearance="dark"] .conversation-item,
html[data-app-appearance="dark"] .help-links button,
html[data-app-appearance="dark"] .appearance-choice,
html[data-app-appearance="dark"] .chat-theme-option,
html[data-app-appearance="dark"] .chat-wallpaper-option,
html[data-app-appearance="dark"] .game-friend-row,
html[data-app-appearance="dark"] .trivia-option-v2,
html[data-app-appearance="dark"] .rps-choice-v2,
html[data-app-appearance="dark"] .ttt-cell {
    background: #211b2a;
    color: #f7f3ff;
    border-color: #3b3344;
}
html[data-app-appearance="dark"] .topbar,
html[data-app-appearance="dark"] .mobile-bottom-nav {
    background: rgba(23,19,30,.96);
    color: #f7f3ff;
    border-color: #342c40;
}
html[data-app-appearance="dark"] .info-modal,
html[data-app-appearance="dark"] .chat-settings-modal,
html[data-app-appearance="dark"] .profile-modal,
html[data-app-appearance="dark"] .pro-modal {
    background: rgba(0,0,0,.72);
}
html[data-app-appearance="dark"] .modal-close,
html[data-app-appearance="dark"] .small-btn {
    background: #211b2a;
    color: #f7f3ff;
    border-color: #3b3344;
}
html[data-app-appearance="dark"] .settings-note,
html[data-app-appearance="dark"] .public-profile-bio {
    background: #2a2136;
    color: #e7dcff;
    border-color: #3b3344;
}
html[data-app-appearance="dark"] .swipe-card-tag,
html[data-app-appearance="dark"] .game-tag,
html[data-app-appearance="dark"] .games-pill {
    background: #2a2136;
    color: #e9ddff;
}


/* ============================================================
   CIRCLE V14 — HARDENED APPEARANCE + CHAT WALLPAPER LAYER
   ============================================================ */
html[data-circle-theme="dark"] body,
body.circle-theme-dark {
  background:#0d0a12 !important;
  color:#f7f2fb !important;
}
html[data-circle-theme="dark"] .page,
html[data-circle-theme="dark"] .settings-hub,
html[data-circle-theme="dark"] .settings-grid,
html[data-circle-theme="dark"] .discover-card,
html[data-circle-theme="dark"] .user-card,
html[data-circle-theme="dark"] .profile-card,
html[data-circle-theme="dark"] .friend-request-card,
html[data-circle-theme="dark"] .form-card,
html[data-circle-theme="dark"] .conversation-panel,
html[data-circle-theme="dark"] .conversation-list,
html[data-circle-theme="dark"] .active-conversation,
html[data-circle-theme="dark"] .active-conversation-panel,
html[data-circle-theme="dark"] .settings-tile,
html[data-circle-theme="dark"] .settings-info,
html[data-circle-theme="dark"] .info-modal-card,
html[data-circle-theme="dark"] .chat-settings-card,
html[data-circle-theme="dark"] .game-card,
html[data-circle-theme="dark"] .game-area,
html[data-circle-theme="dark"] .game-social-banner,
html[data-circle-theme="dark"] .swipe-card {
  background:#17131e !important;
  color:#f7f2fb !important;
  border-color:#393044 !important;
}
html[data-circle-theme="dark"] input,
html[data-circle-theme="dark"] textarea,
html[data-circle-theme="dark"] select,
html[data-circle-theme="dark"] .appearance-choice,
html[data-circle-theme="dark"] .chat-theme-option,
html[data-circle-theme="dark"] .chat-wallpaper-option,
html[data-circle-theme="dark"] .help-links button {
  background:#0f0c14 !important;
  color:#f7f2fb !important;
  border-color:#40364c !important;
}
html[data-circle-theme="dark"] .muted,
html[data-circle-theme="dark"] .tiny,
html[data-circle-theme="dark"] .settings-tile small,
html[data-circle-theme="dark"] .conversation-preview,
html[data-circle-theme="dark"] .conversation-time {
  color:#bdb3c8 !important;
}
html[data-circle-theme="dark"] .topbar,
html[data-circle-theme="dark"] .mobile-bottom-nav {
  background:#17131ef5 !important;
  color:#f7f2fb !important;
  border-color:#393044 !important;
}
html[data-circle-theme="dark"] .message-form,
html[data-circle-theme="dark"] .message-search {
  background:#17131e !important;
  border-color:#393044 !important;
}
html[data-circle-theme="dark"] .bubble:not(.me) {
  background:#2a2233 !important;
  color:#f7f2fb !important;
}
html[data-circle-theme="light"] body,
body.circle-theme-light {
  background:linear-gradient(135deg,#fff7fc,#f7f3ff) !important;
  color:#241f2b !important;
}
/* Inline JS applies the selected wallpaper directly to the message list.
   These rules only protect the selected list from appearance/theme overrides. */
.active-conversation .message-list {
  background-attachment:scroll !important;
}


/* ============================================================
   CIRCLE CURRENT CORE POLISH — APPEARANCE / NOTIFICATIONS / PRO
   ============================================================ */
html[data-app-appearance="light"], html[data-circle-theme="light"] {
  color-scheme: light;
}
html[data-app-appearance="dark"], html[data-circle-theme="dark"] {
  color-scheme: dark;
}
html[data-app-appearance="dark"] .nav button,
html[data-circle-theme="dark"] .nav button { color:#e9e1ef !important; }
html[data-app-appearance="dark"] .nav button:hover,
html[data-app-appearance="dark"] .nav button.active,
html[data-circle-theme="dark"] .nav button:hover,
html[data-circle-theme="dark"] .nav button.active { background:#2a2136 !important; color:#fff !important; }
html[data-app-appearance="dark"] .hero p,
html[data-circle-theme="dark"] .hero p,
html[data-app-appearance="dark"] h1,
html[data-app-appearance="dark"] h2,
html[data-app-appearance="dark"] h3,
html[data-app-appearance="dark"] h4,
html[data-circle-theme="dark"] h1,
html[data-circle-theme="dark"] h2,
html[data-circle-theme="dark"] h3,
html[data-circle-theme="dark"] h4 { color:#f7f2fb; }
html[data-app-appearance="dark"] .notification-item,
html[data-circle-theme="dark"] .notification-item { background:#17131e; border-color:#393044; color:#f7f2fb; }
html[data-app-appearance="dark"] .notification-actor,
html[data-circle-theme="dark"] .notification-actor { background:#211b2a; border-color:#40364c; color:#f7f2fb; }
html[data-app-appearance="dark"] .notification-message,
html[data-circle-theme="dark"] .notification-message { color:#f7f2fb; }
html[data-app-appearance="dark"] .notification-time,
html[data-circle-theme="dark"] .notification-time { color:#bdb3c8; }

/* Never let global dark-mode backgrounds overwrite a chosen chat wallpaper. */
html[data-app-appearance="dark"] .active-conversation .message-list,
html[data-circle-theme="dark"] .active-conversation .message-list {
  color:#f7f2fb;
}

.notification-nav-button { position:relative; display:inline-flex; align-items:center; gap:6px; }
.notification-badge { min-width:20px; height:20px; padding:0 6px; border-radius:999px; background:#ec4899; color:#fff; font-size:11px; font-weight:900; align-items:center; justify-content:center; line-height:20px; }
.notification-page-head { align-items:flex-end; }
.notifications-list { display:grid; gap:10px; margin-top:18px; }
.notification-item { display:grid; grid-template-columns:42px minmax(0,1fr); gap:12px; padding:14px; border:1px solid var(--border); border-radius:20px; background:#fff; transition:transform .16s ease, border-color .16s ease; }
.notification-item.unread { border-color:rgba(124,58,237,.32); box-shadow:0 8px 25px rgba(124,58,237,.08); }
.notification-icon { width:42px; height:42px; border-radius:14px; background:var(--light-purple); display:flex; align-items:center; justify-content:center; font-size:20px; }
.notification-content { min-width:0; }
.notification-actor { width:100%; display:flex; align-items:center; gap:10px; text-align:left; border:1px solid var(--border); background:#faf8ff; border-radius:15px; padding:8px 10px; color:var(--text); cursor:pointer; }
.notification-actor:hover { border-color:var(--purple); transform:translateY(-1px); }
.notification-actor-avatar { width:36px; height:36px; flex:0 0 36px; border-radius:50%; overflow:hidden; background:var(--light-purple); display:flex; align-items:center; justify-content:center; }
.notification-actor-avatar img { width:100%; height:100%; object-fit:cover; }
.notification-actor span:nth-child(2) { min-width:0; flex:1; display:grid; gap:2px; }
.notification-actor strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.notification-actor small { color:var(--muted); }
.notification-actor b { font-size:11px; color:var(--purple); white-space:nowrap; }
.notification-message { margin:10px 2px 4px; line-height:1.45; }
.notification-time { color:var(--muted); font-size:12px; }
.notification-empty { text-align:center; padding:48px 20px; border:1px dashed var(--border); border-radius:22px; background:rgba(255,255,255,.55); }
.notification-empty > div { font-size:40px; margin-bottom:8px; }

.pro-plan-options { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:12px 0; }
.pro-plan-option { border:1px solid var(--border); background:#faf8ff; border-radius:17px; padding:14px; text-align:left; cursor:pointer; display:grid; gap:4px; color:var(--text); }
.pro-plan-option.active { border:2px solid var(--purple); background:var(--light-purple); }
.pro-plan-option span,.pro-plan-option em { font-size:12px; color:var(--muted); font-style:normal; }
.pro-plan-option em { color:#7c3aed; font-weight:800; }
.pro-status { min-height:22px; margin:8px 0 14px; font-size:12px; color:var(--muted); }
html[data-app-appearance="dark"] .pro-plan-option,
html[data-circle-theme="dark"] .pro-plan-option { background:#211b2a; color:#f7f2fb; border-color:#40364c; }
html[data-app-appearance="dark"] .pro-plan-option.active,
html[data-circle-theme="dark"] .pro-plan-option.active { background:#2a2136; border-color:#a78bfa; }

.mobile-notification-button { position:relative; }
.mobile-notification-button .notification-badge { position:absolute; top:1px; right:8px; }

@media (max-width:650px) {
  .pro-plan-options { grid-template-columns:1fr; }
  .notification-page-head { align-items:flex-start; }
  .notification-actor b { display:none; }
}


/* ============================================================
   CIRCLE INTERACTION + PUBLIC PROFILE POLISH
   ============================================================ */

#conversationHeader {
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

#conversationHeader:hover {
    background: rgba(124,58,237,.06);
}

#conversationHeader:focus-visible {
    outline: 3px solid rgba(124,58,237,.3);
    outline-offset: 2px;
}

#conversationHeader .chat-header-actions,
#conversationHeader .chat-header-actions button {
    cursor: default;
}

.profile-loading {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.profile-loading-icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(135deg,#ede9fe,#fce7f3);
    font-size: 34px;
}

.public-profile-hero {
    text-align: center;
    padding: 6px 18px 22px;
}

.public-profile-avatar {
    width: 124px;
    height: 124px;
    margin: 0 auto 14px;
    border-radius: 34px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,#ede9fe,#fce7f3);
    font-size: 48px;
    box-shadow: 0 16px 40px rgba(72,37,94,.12);
}

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

.public-profile-hero h2 {
    margin: 0;
    font-size: 28px;
}

.public-profile-username {
    margin: 5px 0 10px;
    color: #7c3aed;
    font-weight: 800;
}

.public-profile-meta-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.public-profile-meta {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f7f3fb;
    color: #62586c;
    font-size: 12px;
    font-weight: 700;
}

.public-profile-section {
    margin-top: 14px;
    padding: 18px;
    border: 1px solid #eee7f4;
    border-radius: 20px;
    background: #fff;
}

.public-profile-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
}

.public-profile-section-title > span {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: #f3eefe;
}

.public-profile-section-title strong,
.public-profile-section-title small {
    display: block;
}

.public-profile-section-title small {
    margin-top: 2px;
    color: #8b8292;
    font-size: 11px;
}

.public-profile-bio {
    margin: 0;
    line-height: 1.65;
    white-space: pre-wrap;
}

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

.public-profile-detail {
    padding: 12px;
    border-radius: 14px;
    background: #faf8fc;
}

.public-profile-detail small {
    display: block;
    margin-bottom: 4px;
    color: #8b8292;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.public-profile-detail strong {
    display: block;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.public-profile-interest-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.public-profile-interest {
    padding: 8px 11px;
    border-radius: 999px;
    background: #f3eefe;
    color: #6d28d9;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 600px) {
    .public-profile-details {
        grid-template-columns: 1fr;
    }

    .profile-modal {
        padding: 10px;
    }

    .profile-modal-card {
        max-height: 92vh;
        padding: 18px;
        border-radius: 24px;
    }
}

/* Dark appearance */
html[data-app-appearance="dark"] .public-profile-section {
    background: #211b2a;
    border-color: #3b3344;
}

html[data-app-appearance="dark"] .public-profile-detail {
    background: #2a2136;
}

html[data-app-appearance="dark"] .public-profile-meta {
    background: #2a2136;
    color: #e7dcff;
}

html[data-app-appearance="dark"] #conversationHeader:hover {
    background: rgba(167,139,250,.10);
}


/* ============================================================
   CIRCLE V15 — FINAL CORE UI / APPEARANCE OVERRIDE
   This layer intentionally comes LAST so older V10/V11/V12/V14
   rules cannot reset the current appearance or core surfaces.
   ============================================================ */
:root{
  --surface:#ffffff;
  --surface-2:#faf8fc;
  --surface-3:#f4f1f8;
  --line:#eadff0;
  --text-strong:#241f2b;
}
html[data-circle-theme="dark"]{
  --surface:#17131e;
  --surface-2:#211b2a;
  --surface-3:#2a2233;
  --line:#393044;
  --text-strong:#f7f2fb;
}
html[data-circle-theme="light"]{
  --surface:#ffffff;
  --surface-2:#faf8fc;
  --surface-3:#f4f1f8;
  --line:#eadff0;
  --text-strong:#241f2b;
}

html[data-circle-theme="dark"] body,
html[data-circle-theme="dark"] .page,
html[data-circle-theme="dark"] .profile-card,
html[data-circle-theme="dark"] .chat-card,
html[data-circle-theme="dark"] .form-card,
html[data-circle-theme="dark"] .discover-card,
html[data-circle-theme="dark"] .user-card,
html[data-circle-theme="dark"] .friend-request-card,
html[data-circle-theme="dark"] .conversation-panel,
html[data-circle-theme="dark"] .conversation-list,
html[data-circle-theme="dark"] .conversation-item,
html[data-circle-theme="dark"] .active-conversation,
html[data-circle-theme="dark"] .active-conversation-panel,
html[data-circle-theme="dark"] .settings-tile,
html[data-circle-theme="dark"] .settings-preference-list,
html[data-circle-theme="dark"] .settings-preference-list label,
html[data-circle-theme="dark"] .info-modal-card,
html[data-circle-theme="dark"] .profile-settings-card,
html[data-circle-theme="dark"] .blocked-users-card,
html[data-circle-theme="dark"] .chat-settings-card,
html[data-circle-theme="dark"] .notification-item,
html[data-circle-theme="dark"] .notification-empty,
html[data-circle-theme="dark"] .swipe-card,
html[data-circle-theme="dark"] .game-card,
html[data-circle-theme="dark"] .game-area,
html[data-circle-theme="dark"] .game-social-banner{
  color:var(--text-strong) !important;
  background-color:var(--surface) !important;
  border-color:var(--line) !important;
}

html[data-circle-theme="dark"] .topbar,
html[data-circle-theme="dark"] .mobile-bottom-nav{
  background:rgba(23,19,30,.97) !important;
  color:var(--text-strong) !important;
  border-color:var(--line) !important;
}
html[data-circle-theme="dark"] .conversation-header,
html[data-circle-theme="dark"] .active-chat-header,
html[data-circle-theme="dark"] .message-search,
html[data-circle-theme="dark"] .message-form{
  background:var(--surface) !important;
  color:var(--text-strong) !important;
  border-color:var(--line) !important;
}
html[data-circle-theme="dark"] input,
html[data-circle-theme="dark"] textarea,
html[data-circle-theme="dark"] select{
  background:#0f0c14 !important;
  color:#f7f2fb !important;
  border-color:#40364c !important;
}
html[data-circle-theme="dark"] input::placeholder,
html[data-circle-theme="dark"] textarea::placeholder{color:#8f849d !important}
html[data-circle-theme="dark"] .nav button{color:#e9e1ef !important}
html[data-circle-theme="dark"] .nav button:hover,
html[data-circle-theme="dark"] .nav button.active{background:#2a2136 !important;color:#fff !important}
html[data-circle-theme="dark"] .conversation-item:hover{background:#2a2136 !important}
html[data-circle-theme="dark"] .conversation-item.active{background:#2a2136 !important}
html[data-circle-theme="dark"] .conversation-name,
html[data-circle-theme="dark"] .notification-message,
html[data-circle-theme="dark"] h1,
html[data-circle-theme="dark"] h2,
html[data-circle-theme="dark"] h3,
html[data-circle-theme="dark"] h4,
html[data-circle-theme="dark"] strong{color:#f7f2fb}
html[data-circle-theme="dark"] .muted,
html[data-circle-theme="dark"] .tiny,
html[data-circle-theme="dark"] .conversation-preview,
html[data-circle-theme="dark"] .conversation-time,
html[data-circle-theme="dark"] .notification-time,
html[data-circle-theme="dark"] .settings-tile small{color:#bdb3c8 !important}
html[data-circle-theme="dark"] .notification-actor,
html[data-circle-theme="dark"] .modal-close,
html[data-circle-theme="dark"] .small-btn,
html[data-circle-theme="dark"] .appearance-choice,
html[data-circle-theme="dark"] .chat-theme-option,
html[data-circle-theme="dark"] .chat-wallpaper-option,
html[data-circle-theme="dark"] .help-links button{
  background:#211b2a !important;
  color:#f7f2fb !important;
  border-color:#40364c !important;
}

/* Keep a chosen chat wallpaper visible in both app themes. */
html[data-circle-theme="dark"] .active-conversation .message-list{
  color:#f7f2fb !important;
}
html[data-circle-theme="dark"] .active-conversation[data-chat-wallpaper="none"] .message-list{
  background:#17131e !important;
}

/* Public profile: always a complete, scrollable, clickable profile. */
.profile-modal-card{width:min(640px,100%);max-height:90vh;overflow-y:auto}
.public-profile-hero{cursor:default}
.public-profile-actions{position:sticky;bottom:0;padding-top:12px;background:inherit;z-index:2}
.public-profile-section-title div{min-width:0}
.public-profile-detail strong{font-weight:800}
.public-profile-detail.is-empty strong{font-weight:600;color:var(--muted)}
html[data-circle-theme="dark"] .public-profile-section{background:#211b2a !important;border-color:#393044 !important;color:#f7f2fb !important}
html[data-circle-theme="dark"] .public-profile-detail{background:#2a2233 !important;color:#f7f2fb !important}
html[data-circle-theme="dark"] .public-profile-meta{background:#2a2136 !important;color:#e7dcff !important}
html[data-circle-theme="dark"] .public-profile-bio{background:#2a2136 !important;color:#e7dcff !important;border-color:#393044 !important}
html[data-circle-theme="dark"] .public-profile-interest{background:#342746 !important;color:#eadfff !important}
.view-profile-button{width:100%;margin-top:12px}
.user-card{cursor:pointer;position:relative}
.user-card:hover{transform:translateY(-2px);box-shadow:0 18px 40px rgba(72,37,94,.12)}
html[data-circle-theme="dark"] .user-card:hover{box-shadow:0 18px 40px rgba(0,0,0,.28)}

@media(max-width:700px){
  .public-profile-actions{position:static}
  .view-profile-button{min-height:44px}
  .mobile-bottom-nav{grid-template-columns:repeat(6,minmax(0,1fr)) !important}
}


/* ============================================================
   CIRCLE V15.2 — REAL FINAL UI LAYER
   ============================================================ */
html[data-circle-theme="light"] body{background:linear-gradient(135deg,#fff7fc,#f7f3ff)!important;color:#241f2b!important}
html[data-circle-theme="light"] .topbar,html[data-circle-theme="light"] .mobile-bottom-nav{background:rgba(255,255,255,.97)!important;color:#241f2b!important}
html[data-circle-theme="light"] .user-card,html[data-circle-theme="light"] .discover-card,html[data-circle-theme="light"] .conversation-panel,html[data-circle-theme="light"] .conversation-list,html[data-circle-theme="light"] .conversation-item,html[data-circle-theme="light"] .form-card,html[data-circle-theme="light"] .settings-tile,html[data-circle-theme="light"] .notification-item,html[data-circle-theme="light"] .info-modal-card,html[data-circle-theme="light"] .profile-modal-card,html[data-circle-theme="light"] .chat-settings-card{background:#fff!important;color:#241f2b!important;border-color:#eadff0!important}
html[data-circle-theme="light"] input,html[data-circle-theme="light"] textarea,html[data-circle-theme="light"] select{background:#fff!important;color:#241f2b!important;border-color:#eadff0!important}
html[data-circle-theme="dark"] body{background:radial-gradient(circle at 10% 0%,#30203e 0%,transparent 34%),linear-gradient(145deg,#0d0a12,#18131f 55%,#100d16)!important;color:#f7f2fb!important}
html[data-circle-theme="dark"] .topbar,html[data-circle-theme="dark"] .mobile-bottom-nav{background:rgba(15,12,20,.98)!important;color:#f7f2fb!important;border-color:#393044!important}
html[data-circle-theme="dark"] .user-card,html[data-circle-theme="dark"] .discover-card,html[data-circle-theme="dark"] .conversation-panel,html[data-circle-theme="dark"] .conversation-list,html[data-circle-theme="dark"] .conversation-item,html[data-circle-theme="dark"] .form-card,html[data-circle-theme="dark"] .settings-tile,html[data-circle-theme="dark"] .notification-item,html[data-circle-theme="dark"] .info-modal-card,html[data-circle-theme="dark"] .profile-modal-card,html[data-circle-theme="dark"] .chat-settings-card{background:#17131e!important;color:#f7f2fb!important;border-color:#393044!important}
html[data-circle-theme="dark"] input,html[data-circle-theme="dark"] textarea,html[data-circle-theme="dark"] select{background:#0f0c14!important;color:#f7f2fb!important;border-color:#40364c!important}
html[data-circle-theme="dark"] .muted,html[data-circle-theme="dark"] .tiny{color:#bdb3c8!important}
html[data-circle-theme="dark"] .public-profile-section{background:#211b2a!important;color:#f7f2fb!important;border-color:#393044!important}
html[data-circle-theme="dark"] .public-profile-detail{background:#2a2233!important;color:#f7f2fb!important}
html[data-circle-theme="dark"] .public-profile-bio{background:#2a2136!important;color:#f7f2fb!important;border-color:#393044!important}
html[data-circle-theme="dark"] .public-profile-meta{background:#2a2136!important;color:#e7dcff!important}
.user-card,.view-profile-button,.public-profile-actions button{pointer-events:auto!important}
.view-profile-button{display:block!important;min-height:44px!important;width:100%!important;position:relative!important;z-index:4!important}
.profile-modal{z-index:50000!important}
.profile-modal-card{width:min(680px,100%)!important;max-height:90vh!important;overflow-y:auto!important}
.public-profile-details{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
.public-profile-detail{min-width:0!important}
@media(max-width:650px){.public-profile-details{grid-template-columns:1fr!important}.mobile-bottom-nav{grid-template-columns:repeat(6,minmax(0,1fr))!important}}

/* ============================================================
   CIRCLE V15.3 — STORIES VIEWER CONTROLS
   Only extends the existing Story viewer; does not redesign it.
   ============================================================ */
.story-viewer-media{position:relative;overflow:hidden;touch-action:pan-y;}
.story-viewer-media .story-current-image{position:relative;z-index:1;pointer-events:none;width:100%;height:100%;max-height:70vh;object-fit:contain;display:block;}
.story-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:44px;height:72px;border:0;border-radius:14px;background:rgba(0,0,0,.42);color:#fff;font-size:42px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .18s ease,opacity .18s ease;}
.story-nav:hover{background:rgba(0,0,0,.65);}
.story-nav:disabled{opacity:.15;cursor:default;pointer-events:none;}
.story-nav-prev{left:12px;}
.story-nav-next{right:12px;}
.story-side-tap{position:absolute;top:0;bottom:0;width:32%;z-index:3;cursor:pointer;}
.story-side-left{left:0;}
.story-side-right{right:0;}
.story-viewer-top{position:relative;z-index:7;}
.story-viewer-actions{position:relative;z-index:7;}
@media(max-width:650px){
  .story-viewer-media .story-current-image{max-height:none;}
  .story-nav{width:42px;height:64px;font-size:38px;background:rgba(0,0,0,.34);}
  .story-nav-prev{left:8px;}
  .story-nav-next{right:8px;}
  .story-side-tap{width:30%;}
}


/* ============================================================
   CIRCLE V16 — CORE INTERACTION SAFETY LAYER
   Kept intentionally small: fixes stacking/click behavior without
   redesigning existing Circle screens.
   ============================================================ */
.story-viewer[aria-hidden="false"]{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
.story-viewer[aria-hidden="true"]{pointer-events:none!important;}
.story-viewer-backdrop{z-index:0!important;pointer-events:auto!important;}
.story-viewer-card{z-index:10!important;pointer-events:auto!important;}
.story-viewer-top,.story-viewer-media,.story-viewer-actions{pointer-events:auto!important;}
#closeStoryViewer,#storyPrevButton,#storyNextButton,#storyLeftTap,#storyRightTap{pointer-events:auto!important;}
.story-nav{z-index:30!important;}
.story-side-tap{z-index:20!important;}
.story-viewer-user{pointer-events:none;}
@media(max-width:700px){.mobile-bottom-nav{grid-template-columns:repeat(6,minmax(0,1fr))!important}.mobile-bottom-nav button{position:relative;z-index:2;pointer-events:auto!important}}


/* ============================================================
   CIRCLE V17 — FINAL CORE UI LAYER
   ============================================================ */
.member-home-dashboard{max-width:1180px;margin:0 auto;padding:26px 22px 70px}
.member-home-hero{display:grid;grid-template-columns:1fr 220px;gap:24px;align-items:stretch;padding:32px;border-radius:30px;background:linear-gradient(135deg,#24143f,#7c3aed 58%,#ec4899);color:#fff;box-shadow:0 24px 60px rgba(72,37,94,.18)}
.member-home-copy{max-width:760px}.member-home-copy h1{font-size:clamp(32px,5vw,58px);line-height:1.02;margin:8px 0 12px}.member-home-copy p{max-width:680px;line-height:1.65;opacity:.92}.member-home-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.member-home-hero .btn{border-color:rgba(255,255,255,.3);background:rgba(255,255,255,.13);color:#fff}.member-home-hero .btn.primary{background:#fff;color:#6d28d9;border-color:#fff}
.member-home-profile{border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.12);color:#fff;border-radius:24px;padding:22px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;text-align:center}.member-home-profile small{opacity:.8;margin-top:8px}.member-home-avatar{width:92px;height:92px;border-radius:50%;background:rgba(255,255,255,.18);border:4px solid rgba(255,255,255,.65);overflow:hidden;display:flex;align-items:center;justify-content:center;font-size:36px;margin-bottom:7px}.member-home-avatar img{width:100%;height:100%;object-fit:cover}
.member-home-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0}.member-home-stats button{border:1px solid var(--border);background:var(--surface,#fff);border-radius:20px;padding:18px;text-align:left;cursor:pointer;box-shadow:0 10px 28px rgba(72,37,94,.06)}.member-home-stats strong{display:block;font-size:25px}.member-home-stats span{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.member-home-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.member-home-card{display:grid;grid-template-columns:48px 1fr 20px;align-items:center;gap:14px;border:1px solid var(--border);background:var(--surface,#fff);border-radius:22px;padding:18px;text-align:left;cursor:pointer;box-shadow:0 10px 28px rgba(72,37,94,.05)}.member-home-card>span{width:48px;height:48px;border-radius:15px;background:var(--light-purple);display:flex;align-items:center;justify-content:center;font-size:23px}.member-home-card p{margin:4px 0 0;color:var(--muted);font-size:13px;line-height:1.45}.member-home-card>b{font-size:22px}.member-home-card:hover,.member-home-stats button:hover{transform:translateY(-2px);box-shadow:0 16px 35px rgba(72,37,94,.1)}
.member-home-dashboard[hidden]{display:none!important}
html[data-circle-theme="dark"] .member-home-stats button,html[data-circle-theme="dark"] .member-home-card{background:#17131e!important;color:#f7f2fb!important;border-color:#393044!important}
html[data-circle-theme="dark"] .member-home-card p,html[data-circle-theme="dark"] .member-home-stats span{color:#bdb3c8!important}
.story-viewer{isolation:isolate}.story-viewer-card{isolation:isolate}.story-viewer-top{z-index:100!important}.story-viewer-media{z-index:20!important}.story-viewer-actions{z-index:100!important}.story-viewer #closeStoryViewer{position:relative;z-index:300!important;pointer-events:auto!important;touch-action:manipulation}.story-viewer #storyPrevButton,.story-viewer #storyNextButton{z-index:300!important;pointer-events:auto!important;touch-action:manipulation}.story-viewer #storyLeftTap,.story-viewer #storyRightTap{z-index:150!important;pointer-events:auto!important;touch-action:manipulation}.story-viewer-backdrop{z-index:1!important}
@media(max-width:760px){.member-home-dashboard{padding:16px 12px 90px}.member-home-hero{grid-template-columns:1fr;padding:24px}.member-home-profile{flex-direction:row;justify-content:flex-start;text-align:left}.member-home-avatar{width:58px;height:58px;font-size:25px;margin:0}.member-home-stats{grid-template-columns:repeat(2,1fr)}.member-home-grid{grid-template-columns:1fr}.member-home-actions .btn{flex:1;min-width:140px}}
@media(max-width:430px){.member-home-actions .btn{width:100%}.member-home-stats button{padding:14px}.member-home-card{grid-template-columns:42px 1fr 15px;padding:14px}.member-home-card>span{width:42px;height:42px}}

/* ============================================================
   CIRCLE V17.1 — NOTIFICATION PROFILE CLICK FIX
   ============================================================ */
.notification-item { position:relative; }
.notification-actor {
  position:relative !important;
  z-index:20 !important;
  pointer-events:auto !important;
  touch-action:manipulation;
  cursor:pointer !important;
}
.notification-actor * { pointer-events:none !important; }
.notification-actor-static { cursor:default !important; }


/* ============================================================
   CIRCLE V18 — FINAL INTERACTION HARDENING
   ============================================================ */
.notification-actor[data-open-profile] {
  position:relative!important;
  z-index:50!important;
  pointer-events:auto!important;
  cursor:pointer!important;
  touch-action:manipulation!important;
}
.notification-actor[data-open-profile] * { pointer-events:none!important; }
.story-viewer #closeStoryViewer,
.story-viewer #storyPrevButton,
.story-viewer #storyNextButton,
.story-viewer #storyLeftTap,
.story-viewer #storyRightTap {
  pointer-events:auto!important;
  touch-action:manipulation!important;
}
.story-viewer #closeStoryViewer { z-index:1000!important; }
.story-viewer #storyPrevButton,
.story-viewer #storyNextButton { z-index:900!important; }
.story-viewer #storyLeftTap,
.story-viewer #storyRightTap { z-index:100!important; }

/* ============================================================
   CIRCLE V19 — STORY TIMESTAMPS + HOME STORY FLOW
   ============================================================ */
.story-card-time{margin-top:3px;font-size:10px;line-height:1.2;color:var(--muted);font-weight:600;white-space:nowrap;}
.story-viewer-user span{display:block;}
[data-home-story]{cursor:pointer!important;touch-action:manipulation;}


/* ============================================================
   CIRCLE V23 — MOBILE CONVERSATION + CALL + CURRENT-GEN ARCADE
   ============================================================ */
.mobile-chat-back{display:none!important}
.call-filters{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;padding:8px 12px;color:rgba(255,255,255,.82);font-size:11px;font-weight:800}
.call-filter{border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.08);color:#fff;border-radius:999px;padding:6px 10px;cursor:pointer}
.call-filter.active{background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.5)}
.call-stage[data-video-filter="soft"] .remote-call-video,.call-stage[data-video-filter="soft"] .local-call-video{filter:saturate(1.05) contrast(.95) brightness(1.05);}
.call-stage[data-video-filter="mono"] .remote-call-video,.call-stage[data-video-filter="mono"] .local-call-video{filter:grayscale(1) contrast(1.05);}
.call-stage[data-video-filter="warm"] .remote-call-video,.call-stage[data-video-filter="warm"] .local-call-video{filter:saturate(1.18) sepia(.18) contrast(1.02);}
.arcade23-card,.arcade23-card-art,.arcade23-shell{--circle-gen:23;}
.arcade23-card{border-radius:26px;box-shadow:0 16px 42px rgba(72,37,94,.10);transform:none!important}
.arcade23-card:hover{transform:translateY(-4px)!important}
.arcade23-card-art{border-radius:20px;filter:saturate(1.08) contrast(1.03);box-shadow:inset 0 0 0 1px rgba(255,255,255,.24)}
.arcade23-card .game-tag:before{content:'CURRENT';margin-right:5px}
.chat-game-btn{font-size:19px}
.selected-chat-game{outline:2px solid var(--purple);outline-offset:1px;background:var(--light-purple)!important}
@media(max-width:800px){
  #messages.mobile-conversation-open .messages-layout{display:block}
  #messages.mobile-conversation-open .messages-layout>.conversation-panel:first-child{display:none}
  #messages.mobile-conversation-open .active-conversation{display:flex;position:fixed;inset:0;z-index:120;background:var(--bg,#fff);border-radius:0;min-height:100dvh;height:100dvh;width:100vw;box-shadow:none}
  #messages.mobile-conversation-open .message-list{max-height:none;min-height:0;flex:1;padding:14px}
  #messages.mobile-conversation-open .active-chat-header{padding:10px 12px;padding-top:max(10px,env(safe-area-inset-top));}
  .mobile-chat-back{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto}
  #messages:not(.mobile-conversation-open) .active-conversation{display:none}
  #messages:not(.mobile-conversation-open) .conversation-panel:first-child{display:block}
}
@media(max-width:500px){
  #messages.mobile-conversation-open .message-form{padding:8px;gap:6px;padding-bottom:max(8px,env(safe-area-inset-bottom))}
  #messages.mobile-conversation-open .message-form input{min-width:0}
  #messages.mobile-conversation-open .active-chat-info h3{font-size:16px}
  #messages.mobile-conversation-open .active-chat-info p{font-size:11px}
}

.message-notification-icon{visibility:hidden;width:0!important;min-width:0!important;margin:0!important;padding:0!important}
.chat-direct-game{width:100%;margin:0 0 12px}
.game-difficulty{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:800}
.game-difficulty select{width:auto;min-width:112px;margin:0;padding:7px 9px}
.arcade23-pool-wrap.hard-mode{filter:saturate(1.18) contrast(1.06)}
.arcade23-pool-wrap.hard-mode .arcade23-pool-canvas{box-shadow:0 0 0 2px rgba(37,99,235,.55),0 16px 42px rgba(37,99,235,.20)}

#callFilters[style*="display: none"]{display:none!important}

/* V23 LOCATION PICKERS */
.location-picker{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;grid-column:1/-1}
.location-picker label{display:grid;gap:6px;font-size:12px;font-weight:800;color:var(--muted)}
.location-picker select{width:100%;min-height:44px}
.location-picker .tiny{grid-column:1/-1;margin:0}
@media(max-width:680px){.location-picker{grid-template-columns:1fr}.location-picker .tiny{grid-column:auto}}

/* V23 notification cleanup */
.notification-item{align-items:center}
.notification-item .notification-content{width:100%}
.notification-item .notification-actor{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:0;border:0;background:transparent;text-align:left;cursor:pointer}
.notification-item .notification-actor strong{font-size:14px}
.notification-item .notification-actor b{font-size:12px;color:var(--pink);white-space:nowrap}
.notification-item .notification-message{margin-top:7px}
.notification-icon{display:none!important}

/* V23 public-profile three-dot menu */
.public-profile-actions{align-items:center}
.public-profile-more-wrap{position:relative}
.icon-btn.public-profile-more{width:46px;height:46px;border:1px solid var(--border);border-radius:14px;background:white;font-size:24px;line-height:1;cursor:pointer}
.public-profile-more-menu{position:absolute;right:0;bottom:54px;z-index:20;min-width:150px;padding:7px;border:1px solid var(--border);border-radius:14px;background:white;box-shadow:0 16px 35px rgba(30,20,45,.16)}
.public-profile-more-menu[hidden]{display:none}
.public-profile-more-menu button{display:block;width:100%;border:0;background:transparent;text-align:left;padding:10px 12px;border-radius:9px;cursor:pointer;font-weight:700}
.public-profile-more-menu button:hover{background:var(--light-purple)}

/* ============================================================
   CIRCLE ARCADE V24 — CURRENT-GEN GAME UI
   ============================================================ */
.arcade24-start,.arcade24-board,.arcade24-sport,.arcade24-3d,.arcade24-laser{width:min(1100px,100%);margin:auto}
.arcade24-start{min-height:520px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:30px;border-radius:32px;background:radial-gradient(circle at 50% 0,#fff,#f4efff);border:1px solid var(--border);box-shadow:0 30px 80px rgba(76,29,149,.12)}
.arcade24-start-badge,.arcade24-kicker{font-size:10px;font-weight:1000;letter-spacing:.18em;color:#7c3aed}.arcade24-start h2{font-size:clamp(34px,7vw,66px);margin:8px 0}.arcade24-start p{max-width:650px;color:var(--muted)}
.arcade24-difficulty-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;width:min(760px,100%);margin:22px 0}.arcade24-difficulty{padding:20px;border:1px solid #e9d5ff;border-radius:22px;background:#fff;text-align:left;cursor:pointer;transition:.18s}.arcade24-difficulty strong{display:block;font-size:20px}.arcade24-difficulty span{display:block;margin-top:5px;color:var(--muted);font-size:12px}.arcade24-difficulty.active{border-color:#7c3aed;background:#f5f3ff;box-shadow:0 12px 30px rgba(124,58,237,.14);transform:translateY(-3px)}
.arcade24-start-actions,.arcade24-result-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.arcade24-score{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center;margin-bottom:14px}.arcade24-score>*{padding:12px 14px;border-radius:17px;background:#fff;border:1px solid var(--border);text-align:center}.arcade24-score b{font-size:14px}.arcade24-score span{font-size:10px;color:var(--muted);font-weight:1000;letter-spacing:.08em}.arcade24-ttt{width:min(620px,100%);margin:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.arcade24-ttt button{aspect-ratio:1;border:0;border-radius:22px;background:linear-gradient(145deg,#fff,#ede9fe);box-shadow:0 12px 25px rgba(76,29,149,.08);font-size:clamp(42px,8vw,82px);font-weight:1000;color:#7c3aed;cursor:pointer}.arcade24-versus{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:25px;margin:25px auto;width:min(620px,100%)}.arcade24-versus div{min-height:150px;border-radius:28px;background:linear-gradient(145deg,#fff,#f5f3ff);display:grid;place-items:center;font-size:80px;box-shadow:0 18px 40px rgba(0,0,0,.08)}.arcade24-versus strong{text-align:center}.arcade24-choice-grid,.arcade24-answer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;width:min(760px,100%);margin:18px auto}.arcade24-choice-grid button,.arcade24-answer-grid button{padding:18px;border:1px solid #e9d5ff;border-radius:18px;background:#fff;cursor:pointer;font-weight:900}.arcade24-choice-grid small{display:block;margin-top:5px;color:var(--muted)}.arcade24-dice{text-align:center;font-size:100px;margin:40px 0}.arcade24-dice span{font-size:18px;margin:0 25px}.arcade24-memory{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;width:min(700px,100%);margin:auto}.arcade24-memory button{aspect-ratio:1;border:0;border-radius:20px;background:linear-gradient(145deg,#7c3aed,#db2777);color:#fff;font-size:40px;cursor:pointer}.arcade24-memory button.open{background:#fff;color:#111827;box-shadow:inset 0 0 0 2px #ddd6fe}.arcade24-player-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}.arcade24-player{padding:22px 10px;border:1px solid #e9d5ff;border-radius:22px;background:#fff;cursor:pointer}.arcade24-player span{display:block;font-size:52px}.arcade24-player small{display:block;color:var(--muted);font-size:10px;font-weight:900;margin-top:5px}.arcade24-player.selected{outline:3px solid #7c3aed;background:#f5f3ff}.arcade24-c4{width:min(650px,100%);margin:auto;display:grid;grid-template-columns:repeat(7,1fr);gap:7px;background:#312e81;padding:13px;border-radius:28px}.arcade24-c4 button{aspect-ratio:1;border:0;border-radius:50%;background:#e0e7ff;font-size:clamp(22px,5vw,42px);color:transparent;cursor:pointer}.arcade24-c4 button.R{background:#ef4444;color:#fff}.arcade24-c4 button.Y{background:#facc15;color:#fff}.arcade24-canvas{display:block;width:100%;height:min(66dvh,600px);min-height:360px;border-radius:28px;touch-action:none;box-shadow:0 25px 70px rgba(44,25,70,.16)}.arcade24-sport p,.arcade24-laser p{padding:12px 15px;border-radius:16px;background:#fff;border:1px solid var(--border);color:var(--muted)}
.arcade24-laser{background:#070e1a;color:#fff;border-radius:30px;padding:14px}.arcade24-laser canvas{width:100%;height:min(64dvh,600px);min-height:360px;display:block;border-radius:22px;background:#08111f;touch-action:none}.arcade24-laser-score{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center;margin-bottom:10px}.arcade24-laser-score>*{padding:10px;border-radius:15px;background:#101b2d;text-align:center}.arcade24-laser-score .red{color:#f87171}.arcade24-laser-score .blue{color:#60a5fa}.arcade24-laser-score strong{font-size:26px}.arcade24-team-select,.arcade24-laser-controls{display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap;margin-top:10px}.arcade24-team-select button,.arcade24-laser-controls button{border:0;border-radius:15px;padding:12px 15px;background:#172238;color:#fff;font-weight:900;cursor:pointer}.arcade24-team-select button.active{outline:2px solid #fff}.arcade24-laser-controls>div{display:flex;flex-direction:column;align-items:center}.arcade24-laser-controls #fire24{background:#0ea5e9;min-width:120px}
.arcade24-3d{position:relative}.arcade24-3d canvas{width:100%;height:min(72dvh,680px);min-height:400px;display:block;border-radius:30px;touch-action:none;background:#9bdcff;box-shadow:0 30px 80px rgba(38,20,70,.2)}.arcade24-3dhud{position:absolute;top:18px;left:18px;right:18px;display:flex;gap:8px;z-index:4;pointer-events:none}.arcade24-3dhud span{padding:10px 13px;border-radius:15px;background:rgba(15,23,42,.76);backdrop-filter:blur(12px);color:#fff;font-size:9px;letter-spacing:.1em}.arcade24-3dhud b{display:block;font-size:12px;margin-top:3px;letter-spacing:0}.arcade24-3dcontrols{position:absolute;bottom:18px;left:18px;right:18px;display:flex;justify-content:space-between;align-items:end;z-index:5}.arcade24-3dcontrols>div{display:flex;flex-direction:column;align-items:center}.arcade24-3dcontrols>div>div{display:flex}.arcade24-3dcontrols button{min-width:52px;height:52px;margin:3px;border:0;border-radius:15px;background:rgba(15,23,42,.82);color:#fff;font-weight:1000}.arcade24-3dcontrols #nitro24{min-width:125px;background:#ec4899}
.arcade24-result{width:min(780px,100%);min-height:520px;margin:auto;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:30px;border-radius:32px;background:linear-gradient(145deg,#fff,#f6f0ff);box-shadow:0 30px 80px rgba(76,29,149,.15)}.arcade24-result-icon{font-size:90px}.arcade24-result h2{font-size:clamp(34px,7vw,68px);margin:8px 0}.arcade24-result p{max-width:650px;font-size:17px;color:var(--muted)}
@media(max-width:700px){.arcade24-difficulty-grid{grid-template-columns:1fr}.arcade24-player-grid{grid-template-columns:1fr 1fr}.arcade24-choice-grid{grid-template-columns:1fr}.arcade24-memory{gap:6px}.arcade24-memory button{font-size:28px;border-radius:14px}.arcade24-3d canvas,.arcade24-laser canvas,.arcade24-canvas{min-height:350px;height:64dvh;border-radius:22px}.arcade24-3dhud{left:8px;right:8px;top:8px;gap:4px;overflow:auto}.arcade24-3dhud span{white-space:nowrap;padding:8px}.arcade24-3dcontrols{left:8px;right:8px;bottom:8px}.arcade24-versus{gap:10px}.arcade24-versus div{min-height:110px;font-size:58px}.arcade24-score>*{padding:9px 7px;font-size:11px}.arcade24-dice{font-size:76px}}
/* CIRCLE V26 — modern arcade/mobile layer */
.circle-v26-shell{position:fixed!important;inset:0!important;z-index:100000!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;padding:0!important;background:radial-gradient(circle at 20% 0,#fff,#f6f0ff 45%,#efe8ff 100%)!important;overflow:auto!important}
.circle-v26-shell .game-area-header{position:sticky!important;top:0!important;z-index:30!important;background:rgba(255,255,255,.88)!important;backdrop-filter:blur(20px);padding:14px clamp(14px,4vw,46px)!important;border-bottom:1px solid rgba(124,58,237,.12)}
.circle-v26-shell #gameBoard{min-height:calc(100dvh - 80px);display:flex;align-items:center;justify-content:center;padding:14px;box-sizing:border-box}
.v26-card{min-height:310px!important;border-radius:28px!important;overflow:hidden!important;transition:.2s!important}.v26-card:hover{transform:translateY(-5px)!important;box-shadow:0 25px 60px rgba(76,29,149,.18)!important}.v26-card-art{min-height:175px;border-radius:22px;display:grid;place-items:center;position:relative;overflow:hidden;font-size:72px;color:#fff;text-shadow:0 10px 30px rgba(0,0,0,.3);background:linear-gradient(145deg,#312e81,#7c3aed)}.v26-card-art i{position:absolute;bottom:12px;right:14px;font-style:normal;font-size:10px;letter-spacing:.16em}.v26-card-art.wordsearch{background:linear-gradient(145deg,#0f766e,#06b6d4)}.v26-card-art.spelling{background:linear-gradient(145deg,#be123c,#f97316)}.v26-card-art.mission{background:linear-gradient(145deg,#1d4ed8,#06b6d4)}.v26-card-art.lasertag{background:linear-gradient(145deg,#111827,#dc2626 50%,#2563eb)}.v26-card-art.city3d{background:linear-gradient(180deg,#38bdf8,#1e3a8a 65%,#111827)}.v26-card-art.worldarcade23{background:linear-gradient(180deg,#60a5fa,#34d399 55%,#14532d)}
.v26-picker,.v26-board,.v26-canvas-wrap,.v26-mission{width:min(1050px,100%);margin:auto}.v26-picker{min-height:520px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px;border-radius:34px;background:rgba(255,255,255,.92);box-shadow:0 30px 90px rgba(76,29,149,.14)}.v26-badge,.v26-kicker{font-size:10px;font-weight:1000;letter-spacing:.18em;color:#7c3aed}.v26-picker h2{font-size:clamp(36px,7vw,72px);margin:10px 0}.v26-picker p{max-width:700px;color:var(--muted)}.v26-difficulty{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;width:min(780px,100%);margin:25px 0}.v26-difficulty>span{grid-column:1/-1;font-size:10px;font-weight:1000;letter-spacing:.15em;color:var(--muted);text-align:left}.v26-difficulty button{padding:20px;border:1px solid #ddd6fe;border-radius:22px;background:#fff;text-align:left;cursor:pointer}.v26-difficulty button.active{border:2px solid #7c3aed;background:#f5f3ff;box-shadow:0 12px 30px rgba(124,58,237,.15)}.v26-difficulty b{display:block;font-size:20px}.v26-difficulty small{color:var(--muted)}
.v26-score{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;margin-bottom:16px}.v26-score>*{padding:12px 14px;border-radius:17px;background:#fff;border:1px solid var(--border);text-align:center}.v26-ttt{width:min(620px,100%);margin:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.v26-ttt button{aspect-ratio:1;border:0;border-radius:22px;background:linear-gradient(145deg,#fff,#ede9fe);font-size:clamp(44px,8vw,82px);font-weight:1000;color:#7c3aed;cursor:pointer}.v26-versus{display:grid;grid-template-columns:1fr auto 1fr;gap:20px;align-items:center;width:min(680px,100%);margin:20px auto}.v26-versus div{min-height:150px;border-radius:28px;background:#fff;display:grid;place-items:center;font-size:80px;box-shadow:0 18px 40px rgba(0,0,0,.08)}.v26-choice,.v26-answers{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;width:min(760px,100%);margin:18px auto}.v26-choice button,.v26-answers button{padding:20px;border:1px solid #e9d5ff;border-radius:20px;background:#fff;font-weight:900;cursor:pointer}.v26-choice small{display:block;margin-top:6px;color:var(--muted)}.v26-dice{display:flex;justify-content:center;align-items:center;gap:30px;font-size:110px;margin:35px 0}.v26-dice div{display:flex;flex-direction:column;align-items:center}.v26-dice small{font-size:16px}.v26-memory{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;width:min(700px,100%);margin:auto}.v26-memory button{aspect-ratio:1;border:0;border-radius:20px;background:linear-gradient(145deg,#7c3aed,#db2777);color:#fff;font-size:40px}.v26-memory button.open{background:#fff;color:#111827;box-shadow:inset 0 0 0 2px #ddd6fe}.v26-c4{width:min(700px,100%);margin:auto;display:grid;grid-template-columns:repeat(7,1fr);gap:7px;background:#312e81;padding:14px;border-radius:28px}.v26-c4 button{aspect-ratio:1;border:0;border-radius:50%;background:#e0e7ff;color:transparent}.v26-c4 button.R{background:#ef4444}.v26-c4 button.Y{background:#facc15}.v26-quiz-head,.v26-word-head{display:flex;justify-content:space-between;gap:10px;margin-bottom:20px;padding:14px 16px;border-radius:17px;background:#fff;border:1px solid var(--border)}.v26-board h2{font-size:clamp(25px,4vw,42px);text-align:center}.v26-wordgrid{display:grid;grid-template-columns:repeat(var(--n),1fr);gap:5px;width:min(680px,100%);margin:auto}.v26-wordgrid button{aspect-ratio:1;border:0;border-radius:9px;background:#fff;font-weight:1000;color:#334155}.v26-wordgrid button.selected{background:#ddd6fe;color:#5b21b6}.v26-wordgrid button.found{background:#34d399;color:#064e3b}.v26-word-entry{display:flex;gap:8px;width:min(600px,100%);margin:15px auto}.v26-word-entry input,.v26-big-input{flex:1;padding:15px;border:1px solid #ddd6fe;border-radius:16px;font-size:17px}.spell-card{padding:35px;text-align:center;border-radius:28px;background:linear-gradient(145deg,#111827,#4c1d95);color:#fff;margin-bottom:16px}.spell-card strong{display:block;font-size:clamp(40px,8vw,80px);letter-spacing:.12em;margin-top:10px}.spelling-board{max-width:780px}.spelling-board .v26-big-input{display:block;width:100%;box-sizing:border-box;margin-bottom:12px}.v26-mission{padding:10px}.mission-hud{display:flex;justify-content:space-between;padding:13px 16px;border-radius:16px;background:#111827;color:#fff;margin-bottom:10px}.mission-map{position:relative;height:min(65dvh,650px);min-height:420px;border-radius:30px;overflow:hidden;background:radial-gradient(circle at 50% 50%,#dbeafe,#60a5fa 45%,#1e3a8a);box-shadow:0 25px 70px rgba(30,64,175,.25)}.mission-map:before{content:'';position:absolute;inset:0;background:linear-gradient(45deg,transparent 48%,rgba(255,255,255,.14) 49% 51%,transparent 52%),linear-gradient(-45deg,transparent 48%,rgba(255,255,255,.12) 49% 51%,transparent 52%);background-size:90px 90px}.mission-beacon{position:absolute;transform:translate(-50%,-50%);width:52px;height:52px;border-radius:50%;border:0;background:#fff;color:#7c3aed;font-size:22px;font-weight:1000;box-shadow:0 10px 25px rgba(0,0,0,.18);z-index:2}.mission-beacon.done{background:#34d399;color:#064e3b}.mission-player{position:absolute;transform:translate(-50%,-50%);width:22px;height:22px;border-radius:50%;background:#f43f5e;border:4px solid #fff;box-shadow:0 0 0 10px rgba(244,63,94,.2);z-index:3}
.v26-canvas-wrap{position:relative}.v26-canvas-wrap canvas{width:100%;height:min(70dvh,680px);min-height:390px;display:block;border-radius:30px;touch-action:none;background:#07553e;box-shadow:0 25px 70px rgba(44,25,70,.18)}.v26-sport-hud{position:absolute;top:16px;left:16px;right:16px;z-index:3;display:flex;justify-content:space-between;pointer-events:none}.v26-sport-hud>*{padding:11px 14px;border-radius:15px;background:rgba(15,23,42,.82);color:#fff}.v26-touch-hint{padding:10px;color:var(--muted);text-align:center}.v26-result{width:min(800px,100%);min-height:520px;border-radius:34px;background:linear-gradient(145deg,#fff,#f6f0ff);display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:30px;box-shadow:0 30px 90px rgba(76,29,149,.16)}.v26-result-icon{font-size:90px}.v26-result h2{font-size:clamp(40px,8vw,76px);margin:8px 0}.v26-result p{max-width:650px;font-size:18px;color:var(--muted)}.v26-result-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.v26-3d{position:relative;width:min(1200px,100%);height:min(82dvh,820px);min-height:540px;background:#9cc7dd;border-radius:32px;overflow:hidden;box-shadow:0 30px 90px rgba(15,23,42,.22)}.v26-3d canvas{width:100%;height:100%;display:block;touch-action:none}.v26-hud,.v26-laser-hud{position:absolute;top:14px;left:14px;right:14px;display:flex;gap:8px;z-index:5;pointer-events:none}.v26-hud span,.v26-laser-hud span{padding:10px 13px;border-radius:15px;background:rgba(15,23,42,.78);backdrop-filter:blur(14px);color:#fff;font-size:10px;letter-spacing:.1em}.v26-hud b,.v26-laser-hud b{display:block;font-size:13px;letter-spacing:0;margin-top:3px}.v26-touch{position:absolute;left:14px;right:14px;bottom:14px;z-index:8;display:flex;align-items:end;justify-content:space-between;gap:12px;pointer-events:none}.v26-stick{width:118px;height:118px;border-radius:50%;background:rgba(15,23,42,.35);border:1px solid rgba(255,255,255,.25);position:relative;pointer-events:auto;touch-action:none}.v26-stick span{position:absolute;width:52px;height:52px;border-radius:50%;left:33px;top:33px;background:rgba(255,255,255,.82);box-shadow:0 8px 25px rgba(0,0,0,.25);transition:.08s}.v26-stick.active span{transform:scale(1.06)}.v26-touch button{pointer-events:auto;border:0;border-radius:16px;padding:15px 18px;background:rgba(15,23,42,.86);color:#fff;font-weight:1000}.v26-laser{background:#0b1320}.v26-laser-hud{justify-content:space-between}.v26-laser-hud .red{color:#fca5a5}.v26-laser-hud .blue{color:#93c5fd}.v26-teambar{position:absolute;top:76px;left:14px;right:14px;display:flex;gap:8px;z-index:7;justify-content:center}.v26-teambar button{border:0;border-radius:14px;padding:11px 15px;background:rgba(15,23,42,.88);color:#fff;font-weight:1000}.v26-teambar .red.active{background:#991b1b;outline:2px solid #fecaca}.v26-teambar .blue.active{background:#1d4ed8;outline:2px solid #bfdbfe}.v26-teambar #laserFire{background:#f59e0b;color:#111827}.v26-laser-log{position:absolute;left:14px;bottom:14px;padding:9px 12px;border-radius:14px;background:rgba(15,23,42,.75);color:#fff;font-size:11px;z-index:7}.laser-help{color:#fff;opacity:.85;padding:8px 12px;border-radius:12px;background:rgba(15,23,42,.65);pointer-events:none}
.v26-avatar-modal{position:fixed;inset:0;z-index:200000;background:rgba(15,23,42,.68);backdrop-filter:blur(16px);display:grid;place-items:center;padding:16px}.v26-avatar-card{width:min(760px,100%);max-height:92dvh;overflow:auto;background:#fff;border-radius:30px;padding:28px;position:relative;box-shadow:0 35px 100px rgba(0,0,0,.3)}.v26-avatar-card>.small-btn{position:absolute;right:18px;top:18px}.v26-avatar-preview{height:230px;border-radius:25px;background:radial-gradient(circle at 50% 30%,#c4b5fd,#312e81 65%,#111827);display:grid;place-items:center;margin:20px 0}.v26-avatar-head{width:150px;height:180px;border-radius:48% 48% 30% 30%;box-shadow:0 18px 40px rgba(0,0,0,.25)}.v26-custom{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}.v26-custom label{font-size:12px;font-weight:900;color:#475569}.v26-custom select{display:block;width:100%;margin-top:5px;padding:13px;border-radius:14px;border:1px solid #ddd6fe;background:#fff}
.v26-chat-games{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-height:55dvh;overflow:auto}.v26-chat-games button{border:1px solid #e9d5ff;background:#fff;border-radius:20px;padding:14px;text-align:left;cursor:pointer}.v26-chat-games button:hover{border-color:#7c3aed;transform:translateY(-2px)}.v26-chat-games span{font-size:32px;display:block}.v26-chat-games b{display:block;margin-top:8px}.v26-chat-games small{color:var(--muted);display:block;margin-top:4px}.v26-chat-actions{display:flex;justify-content:flex-end;margin-top:14px}
@media(max-width:700px){.v26-difficulty,.v26-choice,.v26-answers{grid-template-columns:1fr}.v26-score{gap:5px}.v26-score>*{padding:9px 6px;font-size:11px}.v26-memory{gap:6px}.v26-memory button{font-size:28px}.v26-wordgrid{gap:3px}.v26-wordgrid button{border-radius:6px;font-size:12px}.v26-canvas-wrap canvas{height:65dvh;min-height:350px;border-radius:22px}.v26-3d{height:calc(100dvh - 105px);min-height:520px;border-radius:22px}.v26-hud{overflow:auto}.v26-hud span{white-space:nowrap}.v26-stick{width:105px;height:105px}.v26-stick span{left:29px;top:29px}.v26-teambar{top:72px;overflow:auto;justify-content:flex-start}.v26-teambar button{white-space:nowrap}.v26-chat-games{grid-template-columns:1fr 1fr}.v26-custom{grid-template-columns:1fr}.v26-result{min-height:470px}.v26-versus{gap:8px}.v26-versus div{min-height:110px;font-size:58px}.mission-map{min-height:390px}}

/* ================= CIRCLE V27 ARCADE ================= */
.circle-v27-shell{z-index:9999}.v27-card{min-height:290px;display:flex;flex-direction:column;gap:10px;text-align:left;cursor:pointer}.v27-card-art{min-height:145px;border-radius:22px;display:flex;align-items:center;justify-content:center;font-size:4rem;background:radial-gradient(circle at 50% 30%,rgba(255,255,255,.22),transparent 55%),linear-gradient(135deg,#141a2a,#26314d);position:relative;overflow:hidden}.v27-card-art i{position:absolute;bottom:10px;left:12px;font-style:normal;font-size:11px;letter-spacing:.12em;background:rgba(0,0,0,.45);padding:6px 9px;border-radius:999px}.v27-sim .v27-card-art{min-height:190px;background:linear-gradient(135deg,#123d34,#1f5b69)}.v27-picker,.v27-result,.v27-board,.v27-wordsearch,.v27-stick,.v27-pool-lite,.v27-imposter,.v27-golf{max-width:900px;margin:auto;padding:24px}.v27-kicker{font-size:11px;letter-spacing:.16em;text-transform:uppercase;opacity:.7}.v27-diff-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.v27-diff-grid button{padding:18px;border:1px solid rgba(255,255,255,.14);border-radius:16px;background:rgba(255,255,255,.05);color:inherit;text-align:left}.v27-diff-grid button.active{outline:2px solid #8b5cf6;background:rgba(139,92,246,.18)}.v27-diff-grid small,.v27-chat-grid small{display:block;opacity:.65;margin-top:5px}.v27-result{text-align:center}.v27-result-icon{font-size:5rem}.v27-actions{display:flex;gap:10px;justify-content:center}.v27-scoreline,.v27-laser-hud,.v27-hud{display:flex;gap:18px;justify-content:space-between;align-items:center;padding:12px 16px;background:rgba(5,10,18,.78);border-radius:14px;position:relative;z-index:2}.v27-ttt{display:grid;grid-template-columns:repeat(3,100px);gap:8px;justify-content:center;margin:25px}.v27-ttt button{height:100px;font-size:3rem}.v27-choice,.v27-options{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.v27-options button{padding:20px}.v27-c4{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;background:#183a9b;padding:14px;border-radius:20px;max-width:650px;margin:auto}.v27-c4 button{aspect-ratio:1;border-radius:50%;font-size:0;background:#eef2ff}.v27-c4 button.R{background:#ef4444}.v27-c4 button.Y{background:#facc15}.v27-memory{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;max-width:520px;margin:auto}.v27-memory button{aspect-ratio:1;font-size:2rem}.v27-wordsearch .word-list{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.v27-wordsearch .word-list span{padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.08)}.v27-wordsearch .word-list span.found{opacity:.45;text-decoration:line-through}.ws-grid{display:grid;grid-template-columns:repeat(10,1fr);max-width:600px;margin:auto;gap:3px}.ws-grid button{aspect-ratio:1;padding:0}.ws-grid button.selecting{outline:2px solid #8b5cf6}.v27-input{width:min(500px,100%);padding:15px;border-radius:12px;border:1px solid rgba(255,255,255,.18);background:#0b1020;color:white;margin:12px 0}.spell-card{font-size:2.6rem;padding:35px;background:rgba(255,255,255,.05);border-radius:18px;margin-bottom:15px}.v27-stick{text-align:center}.stick-svg{width:min(260px,100%);height:300px;stroke:currentColor;stroke-width:5;fill:none}.stick-word{font-size:2rem;letter-spacing:.3em;margin:15px}.stick-keys{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;max-width:650px;margin:20px auto}.stick-keys button{padding:12px}.v27-pool-lite{background:#0f6b45;border-radius:22px}.pool-rack{display:flex;flex-wrap:wrap;gap:8px;max-width:500px;margin:15px auto}.ball{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#111;font-weight:700}.v27-imposter .mode-tabs{display:flex;gap:8px;margin-bottom:15px}.v27-players{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.v27-players button{padding:20px}.v27-players small{display:block;opacity:.65}.draw-mode{display:grid;grid-template-columns:1fr;gap:12px}.draw-mode canvas{width:100%;max-height:430px;background:white;border-radius:16px;touch-action:none}.draw-tools{display:flex;flex-wrap:wrap;gap:7px}.draw-tools button[data-color]{width:32px;height:32px;border-radius:50%;border:2px solid white}.secret-card{padding:16px;background:rgba(255,255,255,.06);border-radius:16px}.v27-golf{text-align:center}.golf-green{height:300px;border-radius:30px;background:#238347;position:relative;margin-bottom:15px}.golf-hole{width:32px;height:32px;border-radius:50%;background:#08130c;position:absolute;right:12%;top:50%}.v27-3d{position:relative;min-height:70vh;background:#000;border-radius:18px;overflow:hidden}.v27-3d canvas{display:block;width:100%;height:70vh;touch-action:none}.v27-touch{position:absolute;left:18px;right:18px;bottom:18px;display:flex;align-items:end;gap:10px;z-index:5;pointer-events:none}.v27-touch>*{pointer-events:auto}.v27-touch>button{min-height:48px}.v27-stick-base{width:120px;height:120px;border-radius:50%;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.3);display:grid;place-items:center;touch-action:none}.v27-stick-knob{width:52px;height:52px;border-radius:50%;background:rgba(255,255,255,.7)}.v27-laser-hud .red,.v27-team .red{color:#ff5b65}.v27-laser-hud .blue,.v27-team .blue{color:#61a8ff}.v27-team{position:absolute;top:70px;left:16px;right:16px;display:flex;gap:8px;z-index:5;flex-wrap:wrap}.v27-team button.active{outline:2px solid white}.v27-3d .v27-hud{position:absolute;top:16px;left:16px;right:16px}.v27-log,.v27-3d #ll{position:absolute;bottom:155px;left:16px;right:16px;background:rgba(0,0,0,.65);padding:10px;border-radius:12px;z-index:5}.v27-chat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:10px}.v27-chat-grid button{padding:15px;text-align:left}.v27-chat-grid span{font-size:2rem;display:block}.v27-chat-grid b{display:block}.v27-chat-grid small{font-size:11px}.v27-city-hud{position:absolute;top:15px;left:15px;right:15px}.v27-laser-hud{position:absolute;top:15px;left:15px;right:15px;z-index:5}.v27-world-hud{position:absolute;top:15px;left:15px;right:15px;z-index:5;background:rgba(0,0,0,.6);padding:12px;border-radius:14px}.v27-colorbar{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.v27-colorbar button{width:30px;height:30px;border-radius:50%;border:2px solid white}.v27-pool{padding:10px}.v27-pool canvas{width:100%;max-width:920px;height:auto;background:#176b45;border-radius:18px;touch-action:none}.v27-pool-hud,.v27-pool-tools{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:8px 0}.v27-pool-tools{padding:12px;background:rgba(255,255,255,.05);border-radius:12px}.v27-pool-tools label{display:flex;gap:8px;align-items:center}.v27-pool-tools select{padding:8px}.v27-picker p,.v27-result p{max-width:700px;margin:10px auto 20px;line-height:1.6}@media(max-width:700px){.v27-diff-grid,.v27-choice,.v27-options{grid-template-columns:1fr}.v27-players{grid-template-columns:repeat(2,1fr)}.v27-chat-grid{grid-template-columns:repeat(2,1fr)}.v27-ttt{grid-template-columns:repeat(3,1fr);margin:15px}.v27-ttt button{height:auto;aspect-ratio:1}.v27-c4{gap:4px;padding:7px}.v27-memory{gap:6px}.ws-grid{font-size:12px}.v27-laser-hud{font-size:12px;gap:8px}.v27-team{top:65px}.v27-3d canvas{height:75vh}.v27-touch{bottom:12px}.v27-stick-base{width:105px;height:105px}.v27-stick-knob{width:48px;height:48px}}


/* ============================================================
   CIRCLE MOBILE CHAT FIX — repairs the broken message-form on iPhone
   Applies to the voice-record + game button row so the input + Send
   stay visible above the mobile bottom nav.
   ============================================================ */

/* The game button should NOT share the mic's circular sizing */
.chat-game-btn {
  width: auto !important;
  height: 44px !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 0 14px !important;
  border-radius: 22px !important;
  background: linear-gradient(90deg, var(--purple), var(--pink)) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.chat-game-btn:hover { opacity: 0.92; }
.chat-game-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Make the message form a single row that never overflows on mobile */
.message-form {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 10px !important;
  padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
}

.message-form .voice-record-btn {
  flex: 0 0 auto !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
}

.message-form input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.message-form button[type="submit"] {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  padding: 10px 16px !important;
  min-height: 40px !important;
}

/* On phones, collapse the game button to icon-only so it never eats
   space from the input or the Send button */
@media (max-width: 700px) {
  .chat-game-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 0 !important;
  }
  .chat-game-btn::before {
    content: "🎮";
    font-size: 18px;
    line-height: 1;
  }
  .message-form {
    gap: 5px !important;
    padding: 6px 8px !important;
    padding-bottom: max(6px, env(safe-area-inset-bottom)) !important;
  }
  .message-form .voice-record-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }
  .message-form button[type="submit"] {
    padding: 9px 14px !important;
    min-height: 38px !important;
    font-size: 13px !important;
  }

  /* Give the message list breathing room above the bottom nav */
  #messages.mobile-conversation-open .message-list,
  .message-list {
    padding-bottom: 12px !important;
  }

  /* Ensure the composer never slides under the mobile bottom nav */
  .mobile-conversation-open .message-form,
  #messages .message-form {
    margin-bottom: 0 !important;
  }
}

/* Specifically for iPhone-sized screens */
@media (max-width: 430px) {
  .chat-game-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }
  .chat-game-btn::before {
    font-size: 16px;
  }
  .message-form .voice-record-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }
  .message-form button[type="submit"] {
    padding: 8px 12px !important;
    font-size: 12px !important;
  }
}


/* CIRCLE MOBILE CHAT FIX v2 — controller icon only; keep composer on one row */
.chat-game-btn{width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;padding:0!important;border-radius:50%!important;background:linear-gradient(135deg,var(--purple),var(--pink))!important;color:#fff!important;font-size:0!important;line-height:0!important;letter-spacing:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;overflow:hidden!important;text-indent:-9999px!important;position:relative!important}
.chat-game-btn::before{content:"🎮";font-size:20px;line-height:1;text-indent:0;display:block}
.chat-game-btn:hover{opacity:.92}.chat-game-btn:disabled{opacity:.5;cursor:not-allowed}
.message-form{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;padding:10px 12px!important;padding-bottom:max(10px,env(safe-area-inset-bottom))!important}
.message-form .voice-record-btn{flex:0 0 auto!important;width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important}
.message-form input{flex:1 1 auto!important;min-width:0!important;margin:0!important}
.message-form button[type="submit"]{flex:0 0 auto!important;white-space:nowrap!important;padding:11px 18px!important;min-height:44px!important}
.v26-chat-games{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:55dvh;overflow:auto}
.v26-chat-games button{min-width:0;border:1px solid #e9d5ff;background:#fff;border-radius:16px;padding:12px;text-align:left;cursor:pointer;color:#24143f}
.v26-chat-games button span{font-size:30px;display:block}.v26-chat-games button b{display:block;margin-top:7px;overflow-wrap:anywhere}.v26-chat-games button small{display:block;margin-top:4px}
@media(max-width:700px){.message-form{gap:6px!important;padding:8px 10px!important;padding-bottom:max(8px,env(safe-area-inset-bottom))!important}.chat-game-btn{width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important}.chat-game-btn::before{font-size:18px}.message-form .voice-record-btn{width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important}.message-form button[type="submit"]{padding:10px 14px!important;min-height:40px!important;font-size:13px!important}.v26-chat-games{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:430px){.chat-game-btn{width:36px!important;height:36px!important;min-width:36px!important;max-width:36px!important}.chat-game-btn::before{font-size:16px}.message-form .voice-record-btn{width:36px!important;height:36px!important;min-width:36px!important;max-width:36px!important}.message-form button[type="submit"]{padding:9px 12px!important;font-size:12px!important}}

/* Reliable chat game launcher and picker visibility */
#chatGameButton.chat-game-btn{pointer-events:auto!important;cursor:pointer!important}
#gameInviteModal:not([hidden]){display:flex!important;visibility:visible!important;opacity:1!important;z-index:2147483000!important}
#gameInviteModal .v26-chat-games{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#gameInviteModal .v26-chat-games button{min-width:0;cursor:pointer;touch-action:manipulation}
@media(max-width:480px){#gameInviteModal{padding:10px!important}#gameInviteModal .game-modal-card{max-height:90dvh;padding:16px!important}#gameInviteModal .v26-chat-games{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Circle unified activity + actionable game-invite cards */
.circle-game-message{display:flex;align-items:center;gap:10px;width:100%;min-width:190px;padding:12px;border:1px solid rgba(124,58,237,.3);border-radius:15px;background:linear-gradient(135deg,rgba(124,58,237,.13),rgba(236,72,153,.1));color:inherit;text-align:left;cursor:pointer;touch-action:manipulation}
.circle-game-message:hover,.circle-game-message:focus-visible{border-color:#8b5cf6;outline:2px solid rgba(139,92,246,.35);outline-offset:2px}
.circle-game-message-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:rgba(124,58,237,.15);font-size:23px}
.circle-game-message-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}.circle-game-message-copy strong{font-size:13px}.circle-game-message-copy small{font-size:11px;opacity:.8}.circle-game-message-arrow{font-size:14px;color:#8b5cf6}
.unified-activity-section{margin:0 0 24px}.unified-activity-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 12px;padding-bottom:10px;border-bottom:1px solid var(--line,#eadff0)}.unified-activity-heading span{font-size:10px;letter-spacing:.14em;font-weight:800;color:#8b5cf6}.unified-activity-heading h3{margin:3px 0 0;font-size:19px}.unified-activity-heading>b{display:grid;place-items:center;min-width:28px;height:28px;padding:0 8px;border-radius:99px;background:rgba(124,58,237,.13);color:#8b5cf6}.unified-friend-requests{display:grid;gap:10px}.unified-friend-request{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border:1px solid var(--line,#eadff0);border-radius:16px;background:var(--surface,#fff)}.unified-friend-profile,.friend-request-profile{display:flex;align-items:center;gap:11px;min-width:0;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.unified-friend-avatar,.friend-request-profile .avatar{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;overflow:hidden;border-radius:50%;background:rgba(124,58,237,.12);font-size:23px}.unified-friend-avatar img,.friend-request-profile .avatar img{width:100%;height:100%;object-fit:cover}.unified-friend-identity,.friend-request-profile-copy{display:flex;flex-direction:column;min-width:0;gap:3px}.unified-friend-identity strong,.friend-request-profile-copy strong{overflow-wrap:anywhere}.unified-friend-identity small,.friend-request-profile-copy small{opacity:.75}.unified-friend-identity em,.friend-request-profile-copy em{font-size:11px;font-style:normal;color:#8b5cf6}.unified-friend-actions{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end}.unified-friend-actions .btn{padding:9px 12px;font-size:12px}.unified-no-requests{padding:14px;border-radius:12px;background:var(--surface-2,rgba(124,58,237,.04))}.friend-request-profile{width:100%;margin-bottom:8px}.friend-request-profile-copy em{margin-top:2px}.friend-request-profile:focus-visible,.unified-friend-profile:focus-visible{outline:2px solid #8b5cf6;outline-offset:3px;border-radius:10px}
@media(max-width:600px){.unified-friend-request{align-items:flex-start;flex-direction:column}.unified-friend-actions{width:100%;justify-content:stretch}.unified-friend-actions .btn{flex:1}.circle-game-message{min-width:0}.unified-activity-heading h3{font-size:17px}}

/* V33 unified activity feed: every alert (including friend requests) is one chronological notification row. */
.unified-notification-feed{display:grid;gap:12px}
.unified-request-item .notification-content{display:flex;flex-direction:column;align-items:stretch;gap:8px}
.unified-request-item .notification-actor{justify-content:flex-start;flex-wrap:wrap}
.unified-request-item .notification-actor-name{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.unified-request-item .notification-actor-name small{opacity:.7}
.unified-request-item .unified-friend-actions{display:flex;gap:8px;margin-top:4px}
.unified-request-item .unified-friend-actions .btn{min-width:92px}
.circle-game-message{position:relative;z-index:2;pointer-events:auto}

/* V36: notifications are full-width individual cards; no empty icon column squeezing their text. */
.notifications-list{gap:16px!important}
.notification-item{grid-template-columns:minmax(0,1fr)!important;gap:0!important;padding:17px 18px!important;margin:0!important;align-items:start}
.notification-content{display:flex;flex-direction:column;align-items:stretch;gap:10px;min-width:0}
.notification-item .notification-actor{display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;padding:0 0 10px!important;border:0!important;border-radius:0!important;border-bottom:1px solid var(--border)!important;background:transparent!important;transform:none!important}
.notification-item .notification-actor-name{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}
.notification-item .notification-actor-name strong{overflow-wrap:anywhere}
.notification-item .notification-message{margin:0!important;padding:2px 0!important;line-height:1.55;overflow-wrap:anywhere}
.notification-item .notification-time{margin-top:0!important;padding-top:2px}
.notification-item .unified-friend-actions{margin-top:3px}
/* V36: actual game board fills the viewport, including on phones. */
.game-area.game-playing,.game-area.circle-v26-shell,.game-area.arcade23-shell{position:fixed!important;inset:0!important;z-index:100000!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;box-sizing:border-box!important}
.game-area.game-playing .game-area-header,.game-area.circle-v26-shell .game-area-header,.game-area.arcade23-shell .game-area-header{min-height:54px;box-sizing:border-box;padding:8px 16px!important}
.game-area.game-playing #gameBoard,.game-area.circle-v26-shell #gameBoard,.game-area.arcade23-shell #gameBoard{height:calc(100dvh - 60px)!important;min-height:0!important;max-height:calc(100dvh - 60px)!important;overflow:auto!important;padding:8px!important;box-sizing:border-box!important}
.game-area.circle-city-open #gameBoard{height:100dvh!important;max-height:100dvh!important;padding:0!important;overflow:hidden!important}
.game-area.circle-city-open .game-area-header{position:absolute!important;top:0;left:0;right:0;min-height:48px!important;background:rgba(8,17,29,.65)!important;color:#fff!important;border:0!important;z-index:12!important}
.game-area.circle-city-open .game-area-header h3,.game-area.circle-city-open .game-area-header p{color:#fff!important;margin:0!important}
.game-area.circle-city-open .game-area-header p{display:none!important}
.game-area.circle-city-open .game-area-header .games-kicker{display:none!important}
@media(max-width:700px){.game-area.game-playing .game-area-header,.game-area.circle-v26-shell .game-area-header,.game-area.arcade23-shell .game-area-header{padding:6px 10px!important;min-height:48px}.game-area.game-playing #gameBoard,.game-area.circle-v26-shell #gameBoard,.game-area.arcade23-shell #gameBoard{height:calc(100dvh - 50px)!important;max-height:calc(100dvh - 50px)!important;padding:4px!important}.game-area.circle-city-open #gameBoard{height:100dvh!important;max-height:100dvh!important}}

/* V37: isolated in-chat game picker, accessible full-screen gameplay, and improved mini-games */
#circleChatGamePicker.game-modal{position:fixed!important;inset:0!important;z-index:1000200!important;display:flex;align-items:center;justify-content:center;padding:12px!important;background:rgba(8,10,22,.76)!important;backdrop-filter:blur(12px)}
#circleChatGamePicker[hidden]{display:none!important}
.circle-chat-game-card{width:min(760px,100%);max-height:92dvh;overflow:auto;background:#fff;color:#171426;border:1px solid #e5ddfa;border-radius:24px;padding:clamp(14px,3vw,26px);box-shadow:0 30px 100px rgba(0,0,0,.42)}
.circle-chat-game-card .game-modal-head{position:sticky;top:-1px;background:#fff;z-index:2;padding:8px 0 14px}
.circle-chat-game-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:14px}
.circle-chat-game-option{min-width:0;display:flex;align-items:center;gap:10px;text-align:left;padding:12px;border:1px solid #e8e2f4;border-radius:16px;background:linear-gradient(135deg,#fff,#faf7ff);color:#201936;cursor:pointer;touch-action:manipulation}
.circle-chat-game-option:hover,.circle-chat-game-option:focus-visible{border-color:#8b5cf6;background:#f4efff;outline:2px solid #c4b5fd;outline-offset:1px}
.circle-chat-game-option-icon{width:44px;height:44px;flex:0 0 44px;border-radius:13px;background:#eee8ff;display:grid;place-items:center;font-size:25px}
.circle-chat-game-option-copy{min-width:0;flex:1;display:grid;gap:4px}.circle-chat-game-option-copy b{font-size:13px;line-height:1.25}.circle-chat-game-option-copy small{font-size:11px;line-height:1.3;color:#6b6478}.circle-chat-game-send{font-size:11px;font-weight:900;color:#6d28d9;white-space:nowrap}.circle-chat-game-note{min-height:20px;color:#b42318;font-size:13px;margin:10px 0 0}
/* Confirmation dialogs must sit above the full-screen game surface, not behind it. */
#circleLeaveGameConfirm{z-index:1000300!important;position:fixed!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;pointer-events:auto!important;background:rgba(3,7,18,.82)!important;backdrop-filter:blur(10px)}
#circleLeaveGameConfirm .circle-leave-game-card{position:relative;z-index:1000301;width:min(460px,calc(100% - 28px));pointer-events:auto;max-height:90dvh;overflow:auto}
.game-area.game-playing,.game-area.circle-v26-shell,.game-area.arcade23-shell{position:fixed!important;inset:0!important;z-index:100000!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:100dvh!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;box-sizing:border-box!important}
.game-area.game-playing #gameBoard,.game-area.circle-v26-shell #gameBoard,.game-area.arcade23-shell #gameBoard{width:100vw!important;height:calc(100dvh - 58px)!important;max-height:calc(100dvh - 58px)!important;min-height:0!important;overflow:auto!important;padding:8px!important;box-sizing:border-box!important}
.game-area.game-playing .game-area-header,.game-area.circle-v26-shell .game-area-header,.game-area.arcade23-shell .game-area-header{height:58px!important;min-height:58px!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:6px 16px!important}
#closeGameButton{position:relative!important;z-index:100001!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:44px!important;min-height:44px!important;pointer-events:auto!important;cursor:pointer!important;opacity:1!important;visibility:visible!important}
.v26-canvas-wrap{width:100%!important;max-width:1100px!important;margin:0 auto!important}.v26-canvas-wrap #v26Pool{display:block;width:100%!important;height:min(66dvh,680px)!important;min-height:300px!important;touch-action:none;border-radius:14px}
.circle-pool-game{width:min(1200px,100%);margin:auto;display:flex;flex-direction:column;gap:10px}.circle-pool-hud{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.circle-pool-hud>div{background:#111827;color:#f8fafc;border-radius:12px;padding:9px 12px;display:grid;gap:4px}.circle-pool-hud small{font-size:10px;letter-spacing:.1em;color:#c4b5fd;font-weight:900}.circle-pool-hud b{font-size:clamp(12px,2vw,18px)}#v26Pool{width:100%;height:min(64dvh,660px);min-height:300px;display:block;border-radius:16px;touch-action:none;background:#07553e}.circle-pool-controls{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px}.circle-pool-controls label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:800}.circle-pool-controls input{width:min(220px,36vw);accent-color:#7c3aed}.circle-pool-help{font-size:12px;color:var(--muted);text-align:center;margin:0}
.circle-hangman-game{width:min(900px,100%);margin:auto;padding:clamp(10px,3vw,24px);text-align:center}.circle-hangman-top{display:flex;justify-content:space-between;gap:8px}.circle-hangman-pill{padding:8px 12px;border-radius:999px;background:#f1ebff;color:#5b21b6;font-size:12px;font-weight:900}.circle-hangman-stage{display:grid;place-items:center;grid-template-columns:minmax(120px,240px) 1fr;gap:clamp(10px,3vw,35px);padding:16px 0}.circle-hangman-svg{width:100%;max-width:210px;max-height:230px;fill:none;stroke:#7c3aed;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}.hangman-gallows{stroke:#a78bfa}.hangman-part{stroke:#1f2937}.circle-hangman-word{font-size:clamp(24px,5vw,48px);font-weight:1000;letter-spacing:.18em;overflow-wrap:anywhere}.circle-hangman-help{color:var(--muted);font-size:13px}.circle-hangman-letters{display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:6px}.circle-hangman-letters button{min-height:42px;border:1px solid #ddd6fe;border-radius:10px;background:#fff;color:#4c1d95;font-weight:900;cursor:pointer}.circle-hangman-letters button:disabled{opacity:.32;cursor:not-allowed}.circle-hangman-status{min-height:30px;margin-top:12px}.circle-hangman-result{padding:16px;border-radius:16px;font-weight:800}.circle-hangman-result.win{background:#dcfce7;color:#166534}.circle-hangman-result.loss{background:#fff7ed;color:#9a3412}
@media(max-width:620px){.circle-chat-game-grid{grid-template-columns:1fr}.circle-chat-game-option{padding:10px}.circle-chat-game-send{font-size:10px}.circle-pool-hud{grid-template-columns:repeat(2,minmax(0,1fr))}#v26Pool{height:54dvh;min-height:280px}.circle-pool-controls{gap:6px}.circle-pool-controls .btn{padding:9px 10px}.circle-hangman-stage{grid-template-columns:100px 1fr}.circle-hangman-letters{grid-template-columns:repeat(7,minmax(0,1fr))}.circle-hangman-letters button{min-height:40px}}

.ccity-shell{position:relative}.ccity-virtual-joystick{position:absolute;bottom:100px;z-index:9;width:142px;height:142px;display:grid;place-items:center;touch-action:none;pointer-events:auto;user-select:none}.ccity-virtual-ring{width:116px;height:116px;border:2px solid rgba(255,255,255,.5);border-radius:50%;background:rgba(8,15,28,.42);backdrop-filter:blur(6px);display:grid;place-items:center;touch-action:none}.ccity-virtual-ring span{display:block;width:46px;height:46px;border-radius:50%;background:linear-gradient(145deg,#e9d5ff,#8b5cf6);border:2px solid rgba(255,255,255,.9);box-shadow:0 6px 18px rgba(0,0,0,.35);pointer-events:none;touch-action:none}
@media(max-width:720px){.ccity-virtual-joystick{bottom:105px;width:128px;height:128px}.ccity-virtual-ring{width:104px;height:104px}.ccity-virtual-ring span{width:42px;height:42px}}

/* V38: sender-defined Hangman word prompt and speed settings */
.circle-hangman-word-prompt{display:grid;gap:8px;padding:12px;margin-top:8px;border:1px solid #ddd6fe;border-radius:12px;background:#faf7ff;text-align:left}.circle-hangman-word-prompt label{font-weight:800;color:#4c1d95}.circle-hangman-word-prompt input{width:100%;box-sizing:border-box;border:1px solid #c4b5fd;border-radius:9px;padding:11px;font:inherit}.circle-hangman-word-prompt small{color:#6b6478;line-height:1.4}
#ccMoveSpeed{width:100%;accent-color:#7c3aed;margin:8px 0}#ccMoveSpeedValue{font-weight:900;color:#7c3aed;margin-left:8px}

/* V41 shared character creator */
.v41-avatar-card{width:min(820px,100%);max-height:94dvh}.v41-avatar-preview{height:265px;display:flex;align-items:center;justify-content:center;gap:22px;position:relative;overflow:hidden}.v41-avatar-preview>strong{color:#fff;font-size:18px;align-self:flex-end;margin-bottom:24px}.v41-avatar-doll{--av-skin:#8a552f;--av-hair:#151515;--av-shirt:#ec4899;--av-pants:#172033;position:relative;width:112px;height:205px;flex:0 0 112px}.v41-avatar-doll i{display:block;position:absolute;box-sizing:border-box}.v41-head{width:47px;height:51px;left:33px;top:25px;border-radius:48% 48% 44% 44%;background:var(--av-skin);z-index:3;box-shadow:inset 0 -4px 0 #00000012}.v41-hair{width:51px;height:28px;left:31px;top:20px;background:var(--av-hair);border-radius:55% 55% 25% 20%;z-index:4}.v41-avatar-doll[data-hairstyle="1"] .v41-hair{box-shadow:-7px 5px 0 -1px var(--av-hair),7px 4px 0 -1px var(--av-hair),0 -5px 0 -2px var(--av-hair)}.v41-avatar-doll[data-hairstyle="2"] .v41-hair{height:39px;top:9px;border-radius:45% 45% 20% 20%}.v41-avatar-doll[data-hairstyle="3"] .v41-hair{border-radius:55% 55% 15% 15%;box-shadow:13px 16px 0 -5px var(--av-hair)}.v41-avatar-doll[data-hairstyle="4"] .v41-hair{box-shadow:-13px 12px 0 -4px var(--av-hair),13px 12px 0 -4px var(--av-hair)}.v41-body{width:58px;height:67px;left:27px;top:72px;border-radius:18px 18px 9px 9px;background:var(--av-shirt);z-index:2}.v41-arm{width:17px;height:61px;top:78px;border-radius:12px;background:var(--av-shirt);z-index:1}.v41-arm.left{left:14px;transform:rotate(9deg)}.v41-arm.right{right:13px;transform:rotate(-9deg)}.v41-leg{width:23px;height:57px;top:132px;border-radius:8px;background:var(--av-pants);z-index:1}.v41-leg.left{left:30px}.v41-leg.right{right:30px}.v41-shoe{width:29px;height:11px;top:184px;background:#101827;border-radius:5px 7px 3px 3px;z-index:2}.v41-shoe.left{left:25px}.v41-shoe.right{right:25px}.v41-custom{margin:0 0 18px}.v41-custom label:first-child{font-weight:1000}.v41-avatar-actions{display:flex;gap:10px;justify-content:flex-end}.v41-avatar-actions button{min-width:135px}@media(max-width:600px){.v41-avatar-preview{height:230px}.v41-avatar-card{padding:20px}.v41-avatar-actions button{flex:1;min-width:0}}

/* V42: keep Circle World touch controls usable on narrow screens. */
.v26-touch{flex-wrap:wrap}.v26-touch button{min-width:64px}.ccity-controls{flex-wrap:wrap;max-width:calc(100% - 16px);justify-content:flex-end}.ccity-action{min-width:66px}.ccity-virtual-joystick{touch-action:none}
@media(max-width:700px){.v26-touch{gap:7px}.v26-touch button{padding:12px 13px}.ccity-controls{max-width:calc(100% - 12px);gap:5px}.ccity-action{padding:10px 8px;min-width:59px;font-size:11px}}


/* Circle V49: actual fullscreen world viewport and name-flow repair, build HUD, and camera zoom. */
.game-area.game-playing .v26-3d.circle-world-v51,.game-area.circle-v26-shell .v26-3d.circle-world-v51,.game-area.arcade23-shell .v26-3d.circle-world-v51{width:100vw!important;height:calc(100dvh - 58px)!important;max-width:none!important;max-height:none!important;min-height:0!important;border-radius:0!important;box-shadow:none!important}
.game-area.game-playing #gameBoard:has(.circle-world-v51),.game-area.circle-v26-shell #gameBoard:has(.circle-world-v51),.game-area.arcade23-shell #gameBoard:has(.circle-world-v51){padding:0!important;overflow:hidden!important}
.v26-hud .cw-zoom{display:flex;align-items:center;gap:7px;padding:8px 10px;border-radius:14px;background:rgba(15,23,42,.82);color:white;font-size:10px;letter-spacing:.1em;pointer-events:auto}
.v26-hud .cw-zoom input{width:92px;accent-color:#a78bfa}
.v26-touch .cw-build-controls,.v26-touch .cw-move-controls{display:flex;align-items:end;gap:7px;flex-wrap:wrap;pointer-events:auto}
.v26-touch .cw-build-controls{margin-left:auto;margin-right:0}
.v26-touch .cw-move-controls{justify-content:flex-end}
.v26-touch .cw-build-controls button,.v26-touch .cw-move-controls button{padding:12px 13px;font-size:11px;box-shadow:0 6px 22px #0f172a44}
@media(max-width:700px){.game-area.game-playing .v26-3d.circle-world-v51,.game-area.circle-v26-shell .v26-3d.circle-world-v51,.game-area.arcade23-shell .v26-3d.circle-world-v51{height:calc(100dvh - 50px)!important}.v26-hud .cw-zoom{display:none}.v26-touch .cw-build-controls,.v26-touch .cw-move-controls{gap:5px}.v26-touch .cw-build-controls button,.v26-touch .cw-move-controls button{padding:10px 9px;font-size:10px}.v26-touch .cw-build-controls{max-width:44%}.v26-touch .cw-move-controls{max-width:48%}}

.game-area.game-playing .ccity-shell,.game-area.circle-city-open .ccity-shell{border-radius:0!important;border:0!important}

/* V49 Circle World: clear, functional name gate over the active world. */
.circle-world-v51 .cw-name-gate{position:absolute;inset:0;z-index:30;display:grid;place-items:center;background:rgba(2,8,23,.76);padding:18px;box-sizing:border-box;color:#fff}
.circle-world-v51 .cw-name-gate[hidden]{display:none!important}
.circle-world-v51 .cw-name-card{width:min(440px,100%);box-sizing:border-box;background:#111c2e;border:1px solid #ffffff32;border-radius:20px;padding:24px;box-shadow:0 24px 90px #0009;font-family:system-ui,sans-serif}
.circle-world-v51 .cw-name-card>span{font-size:11px;letter-spacing:.16em;font-weight:800;color:#8bd6ff}
.circle-world-v51 .cw-name-card h2{font-size:24px;line-height:1.2;margin:10px 0}
.circle-world-v51 .cw-name-card p{font-size:14px;color:#cbd5e1}
.circle-world-v51 .cw-name-card input{width:100%;box-sizing:border-box;margin:8px 0 14px;padding:13px;border:1px solid #64748b;border-radius:10px;background:#07111d;color:#fff;font:inherit}
.circle-world-v51 .cw-name-card>div{display:flex;gap:8px;flex-wrap:wrap}
.circle-world-v51 .cw-name-card button{flex:1;min-width:140px;padding:12px 10px;border:1px solid #64748b;border-radius:10px;background:#2563eb;color:#fff;font-weight:800;cursor:pointer}
.circle-world-v51 .cw-name-card button:first-child{background:#243247}
.circle-world-v51 .cw-name-card small{display:block;min-height:18px;margin-top:8px;color:#fca5a5}
@media(max-width:600px){.circle-world-v51 .cw-name-card{padding:19px}.circle-world-v51 .cw-name-card h2{font-size:21px}}

/* V50: keep the name gate visible until the 3D renderer has drawn a frame. */
.circle-world-v51 .cw-name-card button:disabled{opacity:.55;cursor:wait}
.circle-world-v51 .cw-name-card #cwNameRetry[hidden]{display:none!important}
.circle-world-v51 .cw-name-card #cwNameRetry{margin-top:8px;background:#7c2d12;border-color:#fb923c}

/* V50 touch-control tuning: larger movement pad and clear thumb travel on phones. */
.circle-world-v51 .v26-stick{width:128px;height:128px}
.circle-world-v51 .v26-stick span{width:56px;height:56px;left:35px;top:35px}
@media(max-width:720px){.circle-world-v51 .v26-stick{width:120px;height:120px}.circle-world-v51 .v26-stick span{width:52px;height:52px;left:33px;top:33px}.ccity-virtual-ring{width:120px;height:120px}.ccity-virtual-ring span{width:48px;height:48px}.ccity-virtual-joystick{width:144px;height:144px;bottom:112px}}

/* Circle V51: reliable full-screen mobile play and block aiming. */
.circle-world-v51{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;z-index:100000!important;border-radius:0!important;overflow:hidden!important}
.circle-world-v51 #v26World{touch-action:none!important;width:100%!important;height:100%!important;display:block}
.circle-world-v51 .cw-crosshair{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font:700 26px/1 monospace;color:#fff;text-shadow:0 1px 4px #000,0 0 5px #000;pointer-events:none;z-index:4;opacity:.9}
.circle-world-v51 .cw-zoom input{width:clamp(90px,14vw,190px)}
.circle-world-v51 .cw-build-controls button,.circle-world-v51 .cw-move-controls button{touch-action:manipulation;user-select:none;-webkit-user-select:none}
@media(max-width:720px){.circle-world-v51 .v26-hud{gap:4px;padding:6px;font-size:10px;flex-wrap:wrap}.circle-world-v51 .cw-zoom input{width:100px}.circle-world-v51 .cw-name-card{max-height:85dvh;overflow:auto}.circle-world-v51 .v26-touch{bottom:max(10px,env(safe-area-inset-bottom))}}

.roster-thumb{display:block;width:72px;height:108px;object-fit:cover;border-radius:14px;background:#1f2937;margin:0 auto 4px}.character-option.active .roster-thumb{outline:3px solid #8b5cf6;outline-offset:2px}

.roster-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:10px;margin:14px 0;max-height:300px;overflow:auto;padding:4px}.roster-grid .character-option{display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px;border-radius:16px;border:2px solid transparent;background:rgba(127,127,127,.12);cursor:pointer;color:inherit}.roster-grid .character-option.active{border-color:#8b5cf6}.roster-grid small{font-size:11px;line-height:1.2;text-align:center}

/* V58 immersive games: hide the white header strip and fill the whole screen */
#gameArea.circle-immersive .game-area-header{display:none!important}
#gameArea.circle-immersive #gameBoard{min-height:100dvh!important;height:100dvh!important;padding:0!important;display:block!important;margin:0!important}
#gameArea.circle-immersive .ar,#gameArea.circle-immersive .clt,#gameArea.circle-immersive .ccity-shell{height:100dvh!important;min-height:0!important;max-height:none!important;border-radius:0!important;border:0!important}
#gameArea.circle-immersive{background:#030712!important}

/* Circle V64: accessible desktop + mobile Minecraft-style world controls */
.circle-world-v51 .cw-world-menu{position:absolute;z-index:12;top:78px;left:14px;display:flex;gap:7px;flex-wrap:wrap;max-width:48%;pointer-events:auto}
.circle-world-v51 .cw-world-menu button{border:1px solid #ffffff55;border-radius:12px;padding:10px 13px;background:rgba(12,22,38,.9);color:#fff;font-weight:900;box-shadow:0 5px 18px #0004;cursor:pointer}
.circle-world-v51 .cw-world-menu-panel{position:absolute;z-index:20;top:126px;left:14px;width:min(300px,calc(100% - 28px));padding:14px;border-radius:16px;background:rgba(9,17,30,.96);border:1px solid #ffffff3d;box-shadow:0 20px 55px #0008;color:white;display:grid;gap:8px}
.circle-world-v51 .cw-world-menu-panel[hidden]{display:none!important}
.circle-world-v51 .cw-world-menu-panel b{letter-spacing:.12em;font-size:12px;color:#93c5fd}
.circle-world-v51 .cw-world-menu-panel button{padding:12px;border:1px solid #ffffff25;border-radius:10px;background:#1e293b;color:#fff;text-align:left;font-weight:800;cursor:pointer}
.circle-world-v51 .cw-crosshair{z-index:7;text-shadow:0 1px 5px #000;font-size:26px;color:#fff;pointer-events:none}
.game-area.game-playing:has(.circle-world-v51){position:fixed!important;inset:0!important;z-index:999!important;width:100vw!important;height:100dvh!important;background:#020617!important}
.game-area.game-playing:has(.circle-world-v51) #gameBoard{height:100dvh!important;max-height:100dvh!important}
@media(max-width:700px){.circle-world-v51 .cw-world-menu{top:72px;left:7px;max-width:65%;gap:4px}.circle-world-v51 .cw-world-menu button{padding:8px 9px;font-size:11px}.circle-world-v51 .cw-world-menu-panel{top:116px;left:7px}}

/* Circle V64: game launches use immersive viewport on desktop and mobile. */
.game-area.game-playing{position:fixed!important;inset:0!important;z-index:999!important;width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;background:#020617!important;overflow:hidden!important}
.game-area.game-playing #gameBoard{width:100%!important;height:100dvh!important;max-height:100dvh!important;overflow:hidden!important;padding:0!important}
.game-area.game-playing .arcade24-pool-wrap,.game-area.game-playing .circle-pool-game{width:100%!important;max-width:none!important;min-height:100dvh!important;border-radius:0!important}
.game-area.game-playing .arcade24-canvas,.game-area.game-playing #v26Pool{width:100%!important;max-height:calc(100dvh - 130px)!important}

/* ===== v66: true full-screen 3D games — only the X remains on screen ===== */
.game-area.game-playing:has(.cc66,.cw66,.ar){position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#000!important;overflow:hidden!important;box-shadow:none!important;z-index:2147483000!important}
.game-area.game-playing:has(.cc66,.cw66,.ar) .game-area-header{position:absolute!important;top:calc(env(safe-area-inset-top,0px) + 8px)!important;right:8px!important;left:auto!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;background:none!important;backdrop-filter:none!important;pointer-events:none;z-index:2147483100!important}
.game-area.game-playing:has(.cc66,.cw66,.ar) .game-area-header>div{display:none!important}
.game-area.game-playing:has(.cc66,.cw66,.ar) #closeGameButton{pointer-events:auto;width:42px;height:42px;padding:0;border-radius:12px;background:rgba(0,0,0,.6)!important;color:#fff!important;border:1px solid rgba(255,255,255,.3)!important;font-size:18px;display:grid;place-items:center}
.game-area.game-playing:has(.cc66,.cw66,.ar) #gameBoard{width:100%;height:100%;margin:0;padding:0}
body:has(.game-area.game-playing .cc66,.game-area.game-playing .cw66,.game-area.game-playing .ar) :is(#mobileBottomNav,nav.nav,.mobile-bottom-nav){display:none!important}
.cc66,.cw66,.game-area .ar{height:100dvh!important;min-height:0!important;border-radius:0!important}
#ccExit,#cwExit,.ar .xbtn{display:none!important}

/* ===== v66b: every game gets the same header-free full-screen shell (only the X stays) ===== */
.game-area.game-playing{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;z-index:2147483000!important;overflow:auto!important;-webkit-overflow-scrolling:touch}
.game-area.game-playing:not(:has(.cc66,.cw66,.ar)){padding:calc(env(safe-area-inset-top,0px) + 10px) 12px calc(env(safe-area-inset-bottom,0px) + 12px)!important;background:linear-gradient(160deg,#150f2e,#2a1650 55%,#3d1d63)!important;color:#fff}
.game-area.game-playing .game-area-header{position:fixed!important;top:calc(env(safe-area-inset-top,0px) + 8px)!important;right:8px!important;left:auto!important;width:auto!important;margin:0!important;padding:0!important;border:0!important;background:none!important;backdrop-filter:none!important;pointer-events:none;z-index:2147483100!important}
.game-area.game-playing .game-area-header>div{display:none!important}
.game-area.game-playing #closeGameButton{pointer-events:auto;width:42px;height:42px;padding:0;border-radius:12px;background:rgba(0,0,0,.6)!important;color:#fff!important;border:1px solid rgba(255,255,255,.3)!important;font-size:18px;display:grid;place-items:center}
body:has(.game-area.game-playing:not([hidden])) :is(#mobileBottomNav,nav.nav,.mobile-bottom-nav,.bottom-nav){display:none!important}
.game-area.game-playing:not(:has(.cc66,.cw66,.ar)) #gameBoard{max-width:760px;margin:44px auto 0}
.game-area.game-playing:not(:has(.cc66,.cw66,.ar)) :is(h2,h3,p,label,small,.muted){color:#fff}

/* ===== v66c: leave-game confirm must sit above full-screen games; no difficulty pickers ===== */
#circleLeaveGameConfirm,.game-modal{z-index:2147483640!important}
#poolDifficulty,.arcade23-pool-difficulty,.v26-difficulty,.arcade24-difficulty-row{display:none!important}
