﻿@font-face {
    font-family: 'Plus Jakarta Sans Fallback';
    src: local('Segoe UI'), local('Helvetica Neue'), local('Arial');
    size-adjust: 103%;
    ascent-override: 92%;
    descent-override: 22%;
}

@font-face {
    font-family: 'Syne Fallback';
    src: local('Arial Black'), local('Segoe UI Black'), local('Helvetica Neue');
    size-adjust: 112%;
    ascent-override: 86%;
    descent-override: 18%;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400;
    font-display: optional;
    src: url('https://fonts.bunny.net/plus-jakarta-sans/files/plus-jakarta-sans-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 500;
    font-display: optional;
    src: url('https://fonts.bunny.net/plus-jakarta-sans/files/plus-jakarta-sans-latin-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 600;
    font-display: optional;
    src: url('https://fonts.bunny.net/plus-jakarta-sans/files/plus-jakarta-sans-latin-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 700;
    font-display: optional;
    src: url('https://fonts.bunny.net/plus-jakarta-sans/files/plus-jakarta-sans-latin-700-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 700;
    font-display: optional;
    src: url('https://fonts.bunny.net/syne/files/syne-latin-700-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 800;
    font-display: optional;
    src: url('https://fonts.bunny.net/syne/files/syne-latin-800-normal.woff2') format('woff2');
}

:root {
    --bg: #0f0a1a;
    --surface: #1a1229;
    --surface-2: #241835;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f5f0ff;
    --muted: #a89bc4;
    --accent: #e879a8;
    --accent-2: #a855f7;
    --success: #34d399;
    --mobile-tab-h: 4.5rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 247, 0.35) transparent;
}

html::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

html::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.32);
    border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover {
    background: rgba(232, 121, 168, 0.5);
}

.game-panel,
.chat-box,
.chat-panel,
.room-page {
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 247, 0.35) transparent;
}

.game-panel::-webkit-scrollbar,
.chat-box::-webkit-scrollbar,
.chat-panel::-webkit-scrollbar,
.room-page::-webkit-scrollbar {
    width: 5px;
}

.game-panel::-webkit-scrollbar-track,
.chat-box::-webkit-scrollbar-track,
.chat-panel::-webkit-scrollbar-track,
.room-page::-webkit-scrollbar-track {
    background: transparent;
}

.game-panel::-webkit-scrollbar-thumb,
.chat-box::-webkit-scrollbar-thumb,
.chat-panel::-webkit-scrollbar-thumb,
.room-page::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.32);
    border-radius: 999px;
}

.game-panel::-webkit-scrollbar-thumb:hover,
.chat-box::-webkit-scrollbar-thumb:hover,
.chat-panel::-webkit-scrollbar-thumb:hover,
.room-page::-webkit-scrollbar-thumb:hover {
    background: rgba(232, 121, 168, 0.5);
}

body {
    font-family: 'Plus Jakarta Sans', 'Plus Jakarta Sans Fallback', system-ui, -apple-system, sans-serif;
    background: radial-gradient(ellipse at top, #2a1545 0%, var(--bg) 55%);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 1rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
}

.room-page {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: .35rem max(.65rem, env(safe-area-inset-right)) max(.65rem, env(safe-area-inset-bottom)) max(.65rem, env(safe-area-inset-left));
    scrollbar-gutter: stable;
}

@media (max-width: 900px) {
    .room-page {
        padding-bottom: calc(var(--mobile-tab-h) + env(safe-area-inset-bottom));
    }
}

@media (min-width: 901px) {
    .room-page {
        max-width: 1200px;
        padding: 1.25rem 2rem 2rem;
    }
}

.card {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    backdrop-filter: blur(12px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: none;
    border-radius: .875rem;
    padding: .85rem 1.25rem;
    min-height: 3rem;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform .12s ease, opacity .12s ease, box-shadow .12s ease;
    user-select: none;
}

.btn--lg {
    min-height: 3.25rem;
    font-size: 1rem;
    border-radius: 1rem;
}

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

.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary {
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: white;
    box-shadow: 0 4px 20px rgba(168, 85, 247, .25);
}

.btn-ghost {
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border: 1px solid var(--border);
}

.input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: .875rem;
    padding: .9rem 1rem;
    min-height: 3rem;
    color: var(--text);
    font: inherit;
    font-size: 16px;
    touch-action: manipulation;
}

.input--code {
    text-transform: uppercase;
    letter-spacing: .1em;
    text-align: center;
    font-weight: 600;
}

.input:focus {
    outline: none;
    border-color: rgba(232, 121, 168, 0.6);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

select.input {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24' stroke='%23a89bc4'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

select.input option {
    background: #1a1229;
    color: #f5f0ff;
}

.mode-picker {
    display: grid;
    gap: .65rem;
}

.mode-option {
    display: flex;
    align-items: center;
    gap: .85rem;
    width: 100%;
    text-align: left;
    padding: 1rem 1.1rem;
    min-height: 3.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
    touch-action: manipulation;
    transition: border-color .15s, background .15s, transform .12s;
    font: inherit;
}

@media (hover: hover) {
    .mode-option:hover {
        border-color: rgba(168, 85, 247, 0.35);
        background: rgba(255, 255, 255, 0.06);
    }
}

.mode-option:active { transform: scale(.99); }

.mode-option.is-active {
    border-color: rgba(232, 121, 168, 0.75);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(232, 121, 168, 0.12));
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

.mode-option__emoji {
    font-size: 1.35rem;
    line-height: 1;
}

.mode-option strong {
    display: block;
    font-size: .95rem;
    margin-bottom: .1rem;
}

.mode-option small {
    display: block;
    color: var(--muted);
    font-size: .8rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.15);
    color: #ddb8ff;
    font-size: .8rem;
    font-weight: 600;
}

.logo,
.brand-mark {
    font-family: 'Syne', 'Syne Fallback', 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    line-height: 1.2;
    background: linear-gradient(
        118deg,
        #ffffff 0%,
        #fdf4ff 18%,
        #f9a8d4 42%,
        #e879a8 58%,
        #c084fc 82%,
        #a855f7 100%
    );
    background-size: 160% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 14px rgba(232, 121, 168, .28));
    display: inline-block;
}

.brand-mark--hero {
    position: relative;
    font-size: clamp(3rem, 12vw, 4rem);
    letter-spacing: .12em;
    line-height: 1.15;
    padding-bottom: .65rem;
}

.brand-mark--hero::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(5.5rem, 42%);
    height: 2px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
    opacity: .75;
}

.brand-mark--compact {
    font-size: 1.3rem;
    letter-spacing: .08em;
    line-height: 1.2;
    filter: drop-shadow(0 1px 10px rgba(232, 121, 168, .22));
}

.muted { color: var(--muted); }
.text-sm { font-size: .875rem; }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }

/* â€”â€”â€” Home â€”â€”â€” */
.grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }

.site-resume-slot {
    position: sticky;
    top: calc(4.35rem + env(safe-area-inset-top, 0px));
    z-index: 99;
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 0 max(.85rem, env(safe-area-inset-right)) .5rem max(.85rem, env(safe-area-inset-left));
    pointer-events: none;
}

.site-resume-slot:empty {
    display: none;
}

.site-resume-slot .home-resume-banner-wrap {
    pointer-events: auto;
}

.site-resume-slot .home-resume-banner {
    margin-bottom: 0;
}

.home-resume-banner {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    margin-bottom: 1rem;
    padding: .85rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(232, 121, 168, .45);
    background: linear-gradient(135deg, rgba(124, 58, 237, .22), rgba(232, 121, 168, .12));
    box-shadow: 0 8px 28px rgba(168, 85, 247, .18);
    color: var(--text);
    text-decoration: none;
    transition: transform .12s ease, border-color .12s ease;
}

.home-resume-banner:active { transform: scale(.99); }

.home-resume-banner-wrap {
    position: relative;
    margin-bottom: 0;
}

.home-resume-banner-wrap .home-resume-banner {
    margin-bottom: 0;
    padding-right: 2.75rem;
}

.home-resume-dismiss {
    position: absolute;
    top: 50%;
    right: .45rem;
    transform: translateY(-50%);
    margin: 0;
}

.home-resume-dismiss__btn,
.home-resume-banner-wrap > .home-resume-dismiss__btn {
    position: absolute;
    top: 50%;
    right: .45rem;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: .55rem;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(0, 0, 0, .25);
    color: var(--muted);
    cursor: pointer;
    font-size: .85rem;
    line-height: 1;
    padding: 0;
    touch-action: manipulation;
    z-index: 2;
}

.home-resume-dismiss__btn:hover {
    color: #fda4af;
    border-color: rgba(251, 113, 133, .35);
    background: rgba(251, 113, 133, .12);
}

@media (hover: hover) {
    .home-resume-banner:hover {
        border-color: rgba(232, 121, 168, .65);
        transform: translateY(-1px);
    }
}

.home-resume-banner__icon {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
}

.home-resume-banner__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.home-resume-banner__body strong {
    font-size: .92rem;
    color: #fff;
}

.home-resume-banner__body span {
    font-size: .78rem;
    color: var(--muted);
}

.home-resume-banner__cta {
    flex-shrink: 0;
    font-size: .82rem;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

.join-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 24rem;
    margin: 0 auto;
    padding: max(1.25rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    gap: 1rem;
}

.join-card {
    width: 100%;
    background: linear-gradient(165deg, rgba(124, 58, 237, .14), rgba(255, 255, 255, .03));
    border: 1px solid rgba(232, 121, 168, .22);
    border-radius: 1.35rem;
    padding: 1.5rem 1.35rem 1.35rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

.join-card__eyebrow {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .5rem;
}

.join-card__brand {
    margin-bottom: 1rem;
}

.join-code {
    display: inline-block;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: .22em;
    color: #fff;
    padding: .55rem 1rem;
    border-radius: .85rem;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    margin-bottom: .85rem;
}

.join-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .45rem;
    margin-bottom: 1.1rem;
}

.join-pill {
    font-size: .72rem;
    font-weight: 600;
    padding: .3rem .65rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
}

.join-pill--ok {
    border-color: rgba(52, 211, 153, .35);
    color: #6ee7b7;
    background: rgba(52, 211, 153, .08);
}

.join-pill--warn {
    border-color: rgba(251, 113, 133, .35);
    color: #fda4af;
    background: rgba(251, 113, 133, .08);
}

.join-host {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-align: left;
    padding: .85rem 1rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
}

.join-host__avatar {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.join-host__label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin-bottom: .15rem;
}

.join-host__name {
    font-weight: 700;
    font-size: 1rem;
}

.join-steps {
    list-style: none;
    text-align: left;
    margin: 0 0 1.15rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.join-steps li {
    font-size: .85rem;
    color: var(--muted);
    padding-left: 1.35rem;
    position: relative;
    line-height: 1.45;
}

.join-steps li::before {
    content: 'â†’';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.join-form { margin-top: .25rem; }

.join-blocked {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 1rem;
}

.join-error { margin-top: .85rem; text-align: left; }

.join-foot {
    font-size: .82rem;
    color: var(--muted);
    text-align: center;
}

.join-foot a {
    color: var(--accent);
    text-decoration: none;
}

.home-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: max(1.25rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    max-width: 28rem;
    margin: 0 auto;
}

.home-hero {
    position: relative;
    text-align: center;
    padding: 1rem 0 1.25rem;
}

.home-hero__glow {
    position: absolute;
    inset: 0 10% 30%;
    background: radial-gradient(ellipse at center, rgba(168, 85, 247, .25), transparent 70%);
    pointer-events: none;
}

.home-hero__eyebrow {
    position: relative;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .65rem;
}

.home-hero__title {
    position: relative;
    font-family: 'Syne', 'Syne Fallback', 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: clamp(2rem, 6.5vw, 2.55rem);
    font-weight: 800;
    line-height: 1.32;
    letter-spacing: -.02em;
    color: #fff;
    margin: 0;
}

.home-hero__title-accent {
    background: linear-gradient(118deg, #f9a8d4, #e879a8, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-hero__logo {
    position: relative;
    line-height: 1.05;
}

.home-hero__tagline {
    position: relative;
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: .5rem;
}

.home-hero__sub {
    position: relative;
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.65;
    margin-top: .65rem;
    padding: 0 .5rem;
}

.home-actions {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.home-card {
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 1.25rem;
}

.home-card__head {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin-bottom: 1.1rem;
}

.home-card__icon {
    font-size: 1.75rem;
    line-height: 1;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .85rem;
    background: rgba(168, 85, 247, .15);
    flex-shrink: 0;
}

.home-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .15rem;
}

.home-card__desc {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.45;
}

.home-form {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.home-form--join {
    gap: 1rem;
}

.join-code-field {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.join-code-field__shell {
    padding: .2rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(56, 189, 248, .14), rgba(124, 58, 237, .08));
    border: 1px solid rgba(56, 189, 248, .22);
}

.join-code-field__input {
    text-align: center;
    font-size: clamp(1.2rem, 4.5vw, 1.45rem);
    font-weight: 800;
    letter-spacing: .24em;
    padding: 1rem .65rem;
    min-height: 3.5rem;
    background: rgba(8, 5, 16, .72);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: .85rem;
    text-transform: uppercase;
}

.join-code-field__input::placeholder {
    letter-spacing: .18em;
    font-weight: 700;
    color: rgba(168, 155, 196, .45);
}

.join-code-field__hint {
    margin: 0;
    text-align: center;
    font-size: .78rem;
    line-height: 1.4;
    color: var(--muted);
}

.home-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 0;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.home-divider::before,
.home-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.home-footer {
    text-align: center;
    padding-top: 1.25rem;
    font-size: .75rem;
    color: var(--muted);
}

.home-footer__links {
    margin-bottom: .65rem;
}

.home-footer__links a {
    color: var(--muted);
    text-decoration: none;
    font-size: .8rem;
}

.home-footer__links a:hover {
    color: var(--text);
}

.home-faq {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.home-faq__eyebrow {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .35rem;
    text-align: center;
}

.home-faq__title {
    font-family: 'Syne', 'Syne Fallback', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.home-faq__list {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.home-faq__item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: .75rem;
    overflow: hidden;
    transition: border-color .2s ease;
}

.home-faq__item:hover {
    border-color: rgba(168, 85, 247, .28);
}

.home-faq__item[open] {
    border-color: rgba(168, 85, 247, .35);
    background: rgba(168, 85, 247, .06);
}

.home-faq__question {
    cursor: pointer;
    padding: .85rem 1rem;
    font-weight: 600;
    font-size: .9rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.home-faq__question::after {
    content: '+';
    flex-shrink: 0;
    width: 1.45rem;
    height: 1.45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(168, 85, 247, .14);
    color: var(--accent);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1;
}

.home-faq__item[open] .home-faq__question::after {
    content: '−';
}

.home-faq__question::-webkit-details-marker {
    display: none;
}

.home-faq__answer {
    padding: 0 1rem 1rem;
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.55;
}

.home-faq__more {
    text-align: center;
    margin-top: 1rem;
    font-size: .85rem;
}

.home-faq__more a {
    color: var(--accent);
    text-decoration: none;
}

.content-page {
    max-width: 42rem;
    margin: 0 auto;
    padding: 1.25rem 1rem 3rem;
}

.content-page__crumb {
    font-size: .78rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.content-page__crumb a {
    color: var(--muted);
    text-decoration: none;
}

.content-page__crumb a:hover {
    color: var(--text);
}

.content-page__eyebrow {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent);
    margin-bottom: .5rem;
}

.content-page__title {
    font-family: 'Syne', 'Syne Fallback', sans-serif;
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 800;
    margin-bottom: .75rem;
}

.content-page__lead {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.how-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.how-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.how-step__num {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
}

.how-step__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .35rem;
}

.how-step p {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.55;
}

.how-step a {
    color: var(--accent);
}

.content-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.content-panel__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.mode-compare {
    display: grid;
    gap: .75rem;
}

@media (min-width: 520px) {
    .mode-compare {
        grid-template-columns: 1fr 1fr;
    }
}

.mode-compare__card {
    background: var(--surface-2);
    border-radius: .75rem;
    padding: 1rem;
}

.mode-compare__card h3 {
    font-size: .95rem;
    margin-bottom: .35rem;
}

.mode-compare__card p {
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.5;
}

.mode-compare__card--duo {
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.content-cta {
    text-align: center;
    padding: 1.5rem 0;
}

.content-cta p {
    color: var(--muted);
    margin-bottom: 1rem;
}

.home-hero__perks {
    list-style: none;
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    font-size: .88rem;
    color: var(--muted);
}

.home-hero__perks li {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .75rem;
    border-radius: .65rem;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
}

.home-hero__perks li span:first-child {
    font-size: 1.1rem;
    line-height: 1;
}

.desktop-only { display: none !important; }
.mobile-only { display: block; }

.game-panel > .panel-label { display: none; }

.panel-label--inline {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.panel-label--inline .panel-label__sub {
    font-size: .78rem;
    font-weight: 400;
    color: var(--muted);
}

@media (min-width: 768px) and (max-width: 900px) {
    .home-page {
        max-width: 44rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .home-actions {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: stretch;
        gap: 1rem;
    }

    .home-divider {
        flex-direction: column;
        padding: 2rem 0;
    }

    .home-divider::before,
    .home-divider::after {
        width: 1px;
        height: auto;
        flex: 1;
    }
}

@media (min-width: 901px) {
    .desktop-only { display: block !important; }
    .desktop-only.opponent-chip,
    .desktop-only.chat-partner-pill { display: inline-flex !important; }
    .mobile-only { display: none !important; }

    .home-page {
        width: min(1200px, 94vw);
        max-width: none;
        padding: 2rem 0 2.5rem;
        margin: 0 auto;
    }

    .home-hero {
        text-align: center;
        padding: 1.75rem 1rem 1.5rem;
        margin-bottom: .5rem;
    }

    .home-hero__title {
        font-size: clamp(2.5rem, 5vw, 3.2rem);
        line-height: 1.28;
        max-width: 14ch;
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero__tagline {
        font-size: 1.5rem;
        margin-top: .65rem;
    }

    .home-hero__glow {
        inset: -20% 5% 0 5%;
        background: radial-gradient(ellipse at center top, rgba(168, 85, 247, .3), transparent 65%);
    }

    .home-hero__sub {
        font-size: 1.05rem;
        max-width: 36rem;
        margin: .65rem auto 0;
        padding: 0;
    }

    .home-hero__perks {
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: .75rem;
        margin-top: 1.75rem;
        max-width: 52rem;
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero__perks li {
        flex: 1;
        min-width: 14rem;
        max-width: 16rem;
        padding: .75rem 1rem;
        font-size: .9rem;
        text-align: left;
    }

    .home-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        align-items: stretch;
        width: 100%;
    }

    .home-card {
        padding: 1.75rem;
        min-height: 0;
        display: flex;
        flex-direction: column;
        transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    }

    .home-card--create {
        border-color: rgba(232, 121, 168, .2);
        background: linear-gradient(165deg, rgba(124, 58, 237, .12), rgba(255, 255, 255, .02));
    }

    .home-card--join {
        border-color: rgba(56, 189, 248, .15);
        background: linear-gradient(165deg, rgba(56, 189, 248, .08), rgba(255, 255, 255, .02));
    }

    .home-form {
        flex: 1;
        justify-content: flex-end;
    }

    .home-card:hover {
        border-color: rgba(168, 85, 247, .4);
        box-shadow: 0 16px 48px rgba(0, 0, 0, .28);
        transform: translateY(-3px);
    }

    .home-join-btn {
        border-color: rgba(255, 255, 255, .12);
    }

    .home-join-btn:hover {
        background: linear-gradient(135deg, rgba(124, 58, 237, .4), rgba(232, 121, 168, .3));
        border-color: rgba(232, 121, 168, .5);
        color: #fff;
    }

    .home-card__head {
        gap: .65rem;
        margin-bottom: .85rem;
    }

    .home-card__title {
        font-size: 1.2rem;
        margin-bottom: .1rem;
    }

    .home-card__desc {
        font-size: .85rem;
        line-height: 1.45;
    }

    .home-card__icon {
        width: 2.35rem;
        height: 2.35rem;
        font-size: 1.15rem;
        border-radius: .65rem;
    }

    .home-card .mode-option {
        padding: .75rem .9rem;
        min-height: 0;
        gap: .65rem;
        border-radius: .75rem;
    }

    .home-card .mode-option__emoji {
        font-size: 1.05rem;
    }

    .home-card .mode-option strong {
        font-size: .86rem;
    }

    .home-card .mode-option small {
        font-size: .78rem;
    }

    .home-card .join-code-field__input {
        font-size: 1.05rem;
        letter-spacing: .2em;
        padding: .75rem .65rem;
        min-height: 2.85rem;
        border-radius: .75rem;
    }

    .home-card .join-code-field__hint {
        font-size: .75rem;
    }

    .home-card .btn--lg {
        min-height: 2.85rem;
        font-size: .92rem;
        border-radius: .85rem;
    }

    .home-card .home-form {
        gap: .75rem;
    }

    .home-footer {
        text-align: center;
        padding-top: 2rem;
        font-size: .82rem;
    }

    .home-faq {
        width: 100%;
        max-width: none;
        margin-top: 2rem;
        padding: 1.75rem;
        border: 1px solid var(--border);
        border-radius: 1.25rem;
        background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
    }

    .home-faq__eyebrow {
        text-align: left;
    }

    .home-faq__title {
        text-align: left;
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }

    .home-faq__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .65rem;
        align-items: start;
    }

    .home-faq__question {
        font-size: .86rem;
        padding: .75rem .9rem;
        line-height: 1.35;
    }

    .home-faq__more {
        text-align: left;
        margin-top: 1.15rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border);
    }
}

/* Chat panel */
.chat-panel {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.chat-panel__body-wrap {
    position: relative;
    flex: 1 1 0;
    min-height: 0;
    height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#chat-scroll {
    flex: 1 1 0;
    min-height: 0;
    height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    overflow-anchor: none;
}

#chat-anchor {
    width: 100%;
    height: 1px;
    flex-shrink: 0;
    pointer-events: none;
}

.chat-new-pill {
    position: absolute;
    left: 50%;
    bottom: .65rem;
    transform: translateX(-50%);
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem .95rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: #fff;
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(124, 58, 237, .45);
    touch-action: manipulation;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.chat-new-pill:active {
    transform: translateX(-50%) scale(.97);
}

.chat-new-pill__arrow {
    font-size: .9rem;
    line-height: 1;
    opacity: .9;
}

.chat-pill-enter {
    transition: opacity .18s ease, transform .22s ease;
}

.chat-pill-enter-start,
.chat-pill-leave-end {
    opacity: 0;
    transform: translateX(-50%) translateY(.35rem);
}

.chat-pill-enter-end,
.chat-pill-leave-start {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.chat-pill-leave {
    transition: opacity .14s ease, transform .16s ease;
}

.chat-panel__composer {
    position: relative;
    z-index: 8;
    flex-shrink: 0;
}

.chat-box {
    width: 100%;
    flex: none;
    min-height: min-content;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .65rem;
    padding: .25rem .15rem .5rem;
}

.chat-row {
    display: flex;
    flex-direction: column;
    max-width: 82%;
    width: fit-content;
    flex-shrink: 0;
    clear: both;
}

.chat-row--mine {
    align-self: flex-end;
    align-items: flex-end;
    margin-left: auto;
}

.chat-row--theirs {
    align-self: flex-start;
    align-items: flex-start;
    margin-right: auto;
}

.chat-name {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .02em;
    margin-bottom: .2rem;
    padding: 0 .15rem;
}

.chat-row--mine .chat-name {
    color: rgba(255, 255, 255, 0.55);
}

.chat-row--theirs .chat-name {
    color: #c4b5fd;
}

.chat-bubble {
    padding: .55rem .8rem;
    border-radius: 1rem;
    line-height: 1.45;
    word-break: break-word;
    font-size: .92rem;
}

.chat-bubble--mine {
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: #fff;
    border-bottom-right-radius: .25rem;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
}

.chat-bubble--theirs {
    background: rgba(255, 255, 255, 0.08);
    color: #f5f0ff;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom-left-radius: .25rem;
}

.chat-bubble--reaction {
    background: rgba(168, 85, 247, 0.14);
    border: 1px solid rgba(168, 85, 247, 0.22);
    font-size: 1.25rem;
    padding: .35rem .55rem;
    line-height: 1;
}

.chat-system {
    align-self: center;
    width: 100%;
    max-width: 95%;
    text-align: center;
    padding: .4rem .65rem;
    font-size: .78rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: .65rem;
    line-height: 1.4;
}

.reaction-bar {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: .35rem;
    margin: .65rem 0 .45rem;
    flex-shrink: 0;
}

.emoji-tray {
    position: relative;
    z-index: 12;
    overflow: hidden;
    margin-bottom: 0;
    flex-shrink: 0;
}

.emoji-tray.is-disabled {
    opacity: .55;
    pointer-events: none;
}

.emoji-tray__grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: .3rem;
    max-height: 9.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: .55rem;
    border-radius: .9rem;
    background: rgba(12, 8, 22, .96);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, .28);
}

.emoji-tray-enter {
    transition: opacity .2s ease, transform .22s ease, margin .22s ease;
}

.emoji-tray-enter-start,
.emoji-tray-leave-end {
    opacity: 0;
    transform: translateY(.45rem);
    margin-bottom: 0;
}

.emoji-tray-enter-end,
.emoji-tray-leave-start {
    opacity: 1;
    transform: translateY(0);
    margin-bottom: .45rem;
}

.emoji-tray-leave {
    transition: opacity .16s ease, transform .18s ease, margin .18s ease;
}

.emoji-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.85rem;
    min-width: 2.85rem;
    height: 2.85rem;
    min-height: 2.85rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s ease, border-color .15s ease, transform .12s ease;
}

.emoji-toggle:is(:hover, .is-active) {
    background: rgba(168, 85, 247, .18);
    border-color: rgba(168, 85, 247, .35);
}

.emoji-toggle:active {
    transform: scale(.96);
}

.emoji-toggle:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.reaction-bar.is-disabled,
.emoji-tray.is-disabled,
.chat-form.is-disabled {
    opacity: .55;
    pointer-events: none;
}

.chat-empty-state {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    pointer-events: none;
}

.chat-empty-state__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
    max-width: 17rem;
    padding: 1.35rem 1.25rem;
    border-radius: 1rem;
    text-align: center;
    background: linear-gradient(165deg, rgba(124, 58, 237, .14), rgba(232, 121, 168, .06));
    border: 1px dashed rgba(168, 85, 247, .38);
    box-shadow: 0 10px 32px rgba(0, 0, 0, .18);
}

.chat-empty-state__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: .15rem;
    border-radius: .85rem;
    font-size: 1.35rem;
    line-height: 1;
    background: rgba(255, 255, 255, .06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.chat-empty-state__title {
    margin: 0;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    letter-spacing: .01em;
}

.chat-empty-state__hint {
    margin: 0;
    font-size: .78rem;
    line-height: 1.45;
    color: var(--muted);
}

.chat-report-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.reaction-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: .65rem;
    padding: 0;
    width: 100%;
    aspect-ratio: 1;
    min-width: 0;
    min-height: 2.35rem;
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background .06s, border-color .06s, transform .06s;
}

.reaction-btn:active {
    background: rgba(168, 85, 247, 0.25);
    transform: scale(1.12);
}

.chat-bubble--pending {
    opacity: .85;
}

[x-cloak] { display: none !important; }

.chat-panel__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    margin-bottom: .5rem;
    flex-shrink: 0;
}

.chat-panel__title {
    font-size: 1rem;
    font-weight: 700;
}

.chat-form {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: auto;
    flex-shrink: 0;
    padding-top: 0;
}

.chat-form .btn-primary {
    min-width: 3.25rem;
    min-height: 3rem;
    padding-inline: 1rem;
    flex-shrink: 0;
}

.chat-form .input {
    flex: 1;
    min-width: 0;
}

/* Game shell */
.game-shell {
    animation: fadeIn .4s ease;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .5rem;
    margin-bottom: .4rem;
    flex-wrap: wrap;
}

.game-header .logo,
.game-header .brand-mark--compact {
    font-size: 1.3rem !important;
}

.header-badges {
    display: flex;
    gap: .3rem;
    flex-wrap: nowrap;
    align-items: center;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: .1rem;
}

.header-badges::-webkit-scrollbar { display: none; }

.header-badges .badge {
    font-size: .7rem;
    padding: .3rem .55rem;
    white-space: nowrap;
}

.progress-stack {
    margin-bottom: .85rem;
}

.progress-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.progress-meter {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.progress-meter__meta {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .75rem;
}

.progress-meter__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .75rem;
    background: rgba(168, 85, 247, .12);
    border: 1px solid rgba(168, 85, 247, .22);
    font-size: 1.05rem;
    line-height: 1;
    flex-shrink: 0;
}

.progress-meter--connection .progress-meter__icon {
    background: rgba(52, 211, 153, .12);
    border-color: rgba(52, 211, 153, .24);
}

.progress-meter__copy {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

.progress-meter__title {
    font-size: .88rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.progress-meter__hint {
    font-size: .74rem;
    color: var(--muted);
    line-height: 1.35;
}

.progress-meter__value {
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: #f5d0fe;
    white-space: nowrap;
    padding: .28rem .55rem;
    border-radius: 999px;
    background: rgba(168, 85, 247, .14);
    border: 1px solid rgba(168, 85, 247, .24);
}

.progress-meter__value--depth {
    color: #6ee7b7;
    background: rgba(52, 211, 153, .12);
    border-color: rgba(52, 211, 153, .28);
}

.progress-track {
    height: 8px;
    background: rgba(255, 255, 255, .07);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .22);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    border-radius: 999px;
    transition: width .5s ease;
    box-shadow: 0 0 12px rgba(219, 39, 119, .35);
}

.progress-track--intimacy {
    height: 8px;
}

.progress-fill--intimacy {
    background: linear-gradient(90deg, #34d399, #a855f7);
    box-shadow: 0 0 12px rgba(52, 211, 153, .28);
}

.progress-mobile {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    margin-top: .65rem;
    margin-bottom: .55rem;
    padding: .55rem .7rem;
    border-radius: .85rem;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .07);
}

.progress-mobile__row {
    display: grid;
    grid-template-columns: 4.5rem 1fr auto;
    align-items: center;
    gap: .5rem;
}

.progress-mobile__label {
    font-size: .68rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .02em;
}

.progress-mobile__value {
    font-size: .68rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.progress-mobile__value--depth {
    color: #6ee7b7;
}

.progress-track--thin {
    height: 4px;
    background: rgba(255, 255, 255, .08);
    border-radius: 999px;
    overflow: hidden;
}

.progress-track--thin .progress-fill {
    box-shadow: none;
}

.progress-track--thin.progress-track--intimacy .progress-fill--intimacy {
    box-shadow: none;
}

.mobile-tabs {
    display: flex;
    gap: .45rem;
    z-index: 50;
    padding: .4rem max(.65rem, env(safe-area-inset-right)) calc(.4rem + env(safe-area-inset-bottom)) max(.65rem, env(safe-area-inset-left));
    background: rgba(15, 10, 26, .94);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
}

.mobile-tab {
    flex: 1;
    padding: .6rem .5rem;
    min-height: 2.85rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.05);
    color: var(--muted);
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
    transition: border-color .2s ease, box-shadow .2s ease, transform .12s;
}

.mobile-tab:active { transform: scale(.98); }

.mobile-tab__inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}

.mobile-tab__icon { font-size: 1rem; line-height: 1; }

.mobile-tab.is-active {
    background: linear-gradient(135deg, rgba(124,58,237,.35), rgba(219,39,119,.25));
    border-color: rgba(232,121,168,.5);
    color: #fff;
}

.mobile-tab--unread:not(.is-active) {
    border-color: rgba(236, 72, 153, .45);
    box-shadow: 0 0 0 1px rgba(236, 72, 153, .12), 0 0 18px rgba(168, 85, 247, .15);
    animation: tabUnreadGlow 2s ease-in-out infinite;
}

@keyframes tabUnreadGlow {
    0%, 100% { box-shadow: 0 0 0 1px rgba(236, 72, 153, .12), 0 0 12px rgba(168, 85, 247, .1); }
    50% { box-shadow: 0 0 0 1px rgba(236, 72, 153, .35), 0 0 22px rgba(236, 72, 153, .25); }
}

.chat-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 .35rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f472b6, #c026d3);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(236, 72, 153, .45);
    animation: badgePop .3s ease, badgePulse 1.4s ease-in-out .3s infinite;
}

.chat-badge__ping {
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 2px solid rgba(244, 114, 182, .85);
    animation: badgePing 1.4s cubic-bezier(0, 0, .2, 1) infinite;
    pointer-events: none;
}

.chat-badge__count {
    position: relative;
    z-index: 1;
    animation: badgeBlink 1.4s ease-in-out infinite;
}

@keyframes badgePop {
    from { transform: scale(.4); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

@keyframes badgeBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: .55; }
}

@keyframes badgePing {
    0% { transform: scale(1); opacity: .9; }
    100% { transform: scale(1.85); opacity: 0; }
}

.game-layout {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.game-panel, .chat-panel {
    padding: .85rem;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    border-radius: 1rem;
}

.panel-title { font-size: 1.2rem; }

.btn-block { width: 100%; margin-top: .25rem; }

.round-panel {
    padding: 1.1rem;
    border-radius: 1.1rem;
    border: 1px solid var(--border);
    animation: fadeIn .35s ease;
}

@media (max-width: 900px) {
    .round-panel__title { font-size: 1.1rem; }
    .round-panel { padding: .9rem; }
    .round-panel__desc { margin-bottom: .65rem; font-size: .82rem; }
    .intimacy-hint { margin-bottom: .5rem; padding: .5rem .7rem; font-size: .75rem; }
    .badge--round-title { display: none; }
}

.round-panel--self {
    background: linear-gradient(160deg, rgba(56, 189, 248, .08), rgba(15, 10, 26, .4));
    border-color: rgba(56, 189, 248, .2);
}

.round-panel--partner {
    background: linear-gradient(160deg, rgba(232, 121, 168, .12), rgba(124, 58, 237, .1));
    border-color: rgba(232, 121, 168, .35);
    box-shadow: 0 0 32px rgba(168, 85, 247, .08);
}

.round-panel--reveal {
    background: rgba(255, 255, 255, .03);
}

.round-panel__title {
    font-size: 1.15rem;
    margin: .5rem 0 .35rem;
}

.round-panel__desc {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.phase-badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .3rem .6rem;
    border-radius: 999px;
    margin-bottom: .5rem;
}

.phase-badge--self {
    background: rgba(56, 189, 248, .15);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, .25);
}

.phase-badge--partner {
    background: rgba(232, 121, 168, .18);
    color: #f9a8d4;
    border: 1px solid rgba(232, 121, 168, .35);
}

.partner-hero {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1rem;
    margin-bottom: 1rem;
    border-radius: .85rem;
    background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(232, 121, 168, .3);
}

.partner-hero__avatar {
    font-size: 2.25rem;
    line-height: 1;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124, 58, 237, .4), rgba(219, 39, 119, .3));
}

.partner-hero__label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--accent);
    font-weight: 600;
}

.partner-hero__name {
    font-size: 1.2rem;
    font-weight: 700;
}

.vibe-cards {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1rem;
}

.vibe-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    border-radius: .85rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: all .18s ease;
}

.vibe-card--self.is-active {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, .12);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, .2);
}

.vibe-card--partner.is-active {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(124, 58, 237, .2), rgba(219, 39, 119, .15));
    box-shadow: 0 0 0 2px rgba(232, 121, 168, .25);
}

.vibe-card__emoji { font-size: 1.5rem; line-height: 1; }

.vibe-card__label { font-weight: 600; flex: 1; }

.vibe-card__hint {
    font-size: .7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.btn--partner {
    background: linear-gradient(135deg, #a855f7, #ec4899);
}

.text-accent { color: var(--accent); }

.round-panel--pick {
    background: linear-gradient(160deg, rgba(124, 58, 237, .1), rgba(15, 10, 26, .45));
    border-color: rgba(168, 85, 247, .25);
}

.round-panel--deep {
    background: linear-gradient(160deg, rgba(52, 211, 153, .08), rgba(15, 10, 26, .4));
    border-color: rgba(52, 211, 153, .2);
}

.phase-badge--pick {
    background: rgba(168, 85, 247, .18);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, .35);
}

.phase-badge--deep {
    background: rgba(52, 211, 153, .12);
    color: #6ee7b7;
    border: 1px solid rgba(52, 211, 153, .25);
}

.phase-badge--reveal {
    background: rgba(255, 255, 255, .08);
    color: #e9d5ff;
    border: 1px solid rgba(255, 255, 255, .12);
}

.prompt-card {
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    border-radius: .85rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, .18), rgba(219, 39, 119, .1));
    border: 1px solid rgba(232, 121, 168, .3);
    font-size: .95rem;
    line-height: 1.55;
    font-weight: 500;
}

.prompt-card--muted {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .08);
    color: var(--muted);
    font-weight: 400;
}

.prompt-card--partner {
    background: linear-gradient(135deg, rgba(232, 121, 168, .15), rgba(124, 58, 237, .12));
    border-color: rgba(232, 121, 168, .35);
    color: #fff;
    font-weight: 500;
}

.prompt-card--tod {
    margin-top: .5rem;
}

.field-stack {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1rem;
}

.field-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    margin-top: .25rem;
}

.field-stack--avatar {
    gap: 1rem;
    margin-bottom: 0;
}

.field-stack--avatar .field-label {
    margin-top: 0;
    margin-bottom: 0;
}

.field-stack--nickname {
    margin-top: 1.25rem;
    margin-bottom: .75rem;
}

.field-stack--nickname .field-label {
    margin-top: 0;
}

.input--round {
    border-radius: .75rem;
    padding: .85rem 1rem;
}

.input--area {
    resize: vertical;
    min-height: 5rem;
    line-height: 1.5;
}

.round-panel > .input,
.round-panel > textarea.input {
    margin-bottom: 1rem;
}

.option-cards {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1rem;
}

.option-cards--duo {
    flex-direction: row;
    gap: .5rem;
}

.option-cards--duo .option-card { flex: 1; }

.option-cards--row {
    flex-direction: row;
    flex-wrap: wrap;
}

.option-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.05rem;
    min-height: 3.25rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .06s ease, background .06s ease, box-shadow .06s ease, transform .06s ease;
    width: 100%;
}

.option-card:active { transform: scale(.97); }

.option-card--compact {
    flex: 1;
    min-width: calc(33% - .35rem);
    justify-content: center;
    padding: .65rem .5rem;
}

.option-card--compact .option-card__text { font-size: .8rem; }

.option-card--self.is-active {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, .12);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, .2);
}

.option-card--partner.is-active,
.option-card--pick.is-active {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(124, 58, 237, .22), rgba(219, 39, 119, .14));
    box-shadow: 0 0 0 2px rgba(232, 121, 168, .25);
}

.option-card__icon { font-size: 1.35rem; line-height: 1; flex-shrink: 0; }

.option-card__num {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.option-card__text { font-weight: 600; flex: 1; line-height: 1.4; }

.option-card__hint {
    font-size: .65rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 700;
}

.reveal-item {
    padding: 1rem;
    border-radius: .85rem;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    margin-bottom: .65rem;
}

.reveal-item.is-match {
    border-color: rgba(52, 211, 153, .4);
    background: rgba(52, 211, 153, .06);
}

.reveal-item__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    margin-bottom: .5rem;
    font-size: .88rem;
}

.reveal-item__body {
    line-height: 1.6;
    color: rgba(245, 240, 255, .9);
}

.reveal-item__answer {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1.5;
}

.reveal-item__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}

.reveal-stat {
    padding: .65rem;
    border-radius: .65rem;
    background: rgba(0, 0, 0, .2);
    font-weight: 600;
    font-size: .9rem;
}

.reveal-stat__label {
    display: block;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    margin-bottom: .25rem;
    font-weight: 600;
}

.lie-tag {
    display: inline-block;
    font-size: .6rem;
    font-weight: 800;
    padding: .15rem .4rem;
    border-radius: .35rem;
    background: rgba(236, 72, 153, .25);
    color: #f9a8d4;
    margin-right: .35rem;
    vertical-align: middle;
}

.stmt-list { margin: 0; padding: 0; list-style: none; }
.stmt-list li {
    padding: .5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    line-height: 1.5;
}
.stmt-list li:last-child { border-bottom: none; }
.stmt-list .is-lie { color: var(--accent); font-weight: 600; }

@media (max-width: 500px) {
    .option-cards--duo { flex-direction: column; }
    .option-card--compact { min-width: 100%; }
}

.vibe-reveal-card {
    padding: 1rem;
    border-radius: .85rem;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    margin-bottom: .65rem;
}

.vibe-reveal-card.is-match {
    border-color: rgba(52, 211, 153, .4);
    background: rgba(52, 211, 153, .06);
}

.vibe-reveal-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    margin-bottom: .65rem;
    font-size: .9rem;
}

.match-pill {
    font-size: .7rem;
    padding: .2rem .5rem;
    border-radius: 999px;
    background: rgba(52, 211, 153, .15);
    color: #6ee7b7;
}

.vibe-reveal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}

.vibe-reveal-stat {
    padding: .65rem;
    border-radius: .65rem;
    background: rgba(0, 0, 0, .2);
}

.vibe-reveal-stat__label {
    display: block;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    margin-bottom: .25rem;
}

.vibe-reveal-stat__value {
    font-weight: 600;
    font-size: .95rem;
}

.vibe-grid, .poll-grid, .avatar-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.vibe-btn, .pick-btn, .poll-btn, .avatar-btn {
    padding: .65rem .85rem;
    min-width: 2.85rem;
    min-height: 2.85rem;
    border-radius: .85rem;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.05);
    color: var(--text);
    font: inherit;
    cursor: pointer;
    touch-action: manipulation;
    transition: all .12s ease;
}

.avatar-btn:active { transform: scale(.95); }

.pick-btn { width: 100%; text-align: left; }

.vibe-btn.is-active, .pick-btn.is-active, .poll-btn.is-active, .avatar-btn.is-active {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(124,58,237,.25), rgba(219,39,119,.15));
    box-shadow: 0 0 0 2px rgba(168,85,247,.15);
}

.poll-grid .poll-btn { flex: 1; min-width: 120px; text-align: center; }

.avatar-btn { font-size: 1.4rem; padding: .45rem .55rem; }

.field-error { color: #fb7185; font-size: .8rem; margin-top: -.35rem; }

.input--invalid {
    border-color: rgba(251, 113, 133, .65) !important;
    box-shadow: 0 0 0 2px rgba(251, 113, 133, .18);
}

.lobby-ready-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wait-pulse {
    padding: 1rem;
    text-align: center;
    color: var(--muted);
    background: rgba(168,85,247,.08);
    border-radius: .75rem;
    animation: pulse 2s ease infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }

.reveal-card, .tod-card {
    padding: .85rem 1rem;
    border-radius: .75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    line-height: 1.5;
}

.tod-card {
    background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(219,39,119,.1));
    border-color: rgba(232,121,168,.25);
    font-size: .95rem;
}

.badge--intimacy {
    background: rgba(52, 211, 153, .15);
    border-color: rgba(52, 211, 153, .3);
    color: #6ee7b7;
}

.intimacy-hint {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    padding: .65rem .85rem;
    margin-bottom: .75rem;
    border-radius: .75rem;
    font-size: .8rem;
    color: var(--muted);
    background: rgba(52, 211, 153, .08);
    border: 1px solid rgba(52, 211, 153, .2);
    line-height: 1.45;
}

.intimacy-hint__dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: #34d399;
    margin-top: .35rem;
    flex-shrink: 0;
    animation: pulse 2s ease infinite;
}

.finale-panel {
    border-color: rgba(232, 121, 168, .45);
    box-shadow: 0 0 40px rgba(168, 85, 247, .15);
}

.finale-bridge {
    font-size: .92rem;
    line-height: 1.6;
}

.verdict-box { text-align: center; padding: 1.5rem .5rem; }
.verdict-box h2 { font-size: 1.4rem; margin: .5rem 0; }

.verdict-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeIn .4s ease;
}

.verdict-share-card {
    position: relative;
    overflow: hidden;
    padding: 1.35rem 1.15rem 1.15rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, .1);
    background: linear-gradient(165deg, rgba(124, 58, 237, .18), rgba(15, 10, 26, .96) 45%, rgba(8, 4, 18, .98));
    box-shadow:
        0 20px 50px rgba(0, 0, 0, .35),
        inset 0 1px 0 rgba(255, 255, 255, .06);
    text-align: center;
}

.verdict-share-card__glow {
    position: absolute;
    inset: -40% -20% auto;
    height: 70%;
    background: radial-gradient(circle at 50% 0%, rgba(219, 39, 119, .35), transparent 65%);
    pointer-events: none;
}

.verdict-share-card--fire .verdict-share-card__glow {
    background: radial-gradient(circle at 50% 0%, rgba(251, 113, 133, .45), transparent 68%);
}

.verdict-share-card--glow .verdict-share-card__glow {
    background: radial-gradient(circle at 50% 0%, rgba(168, 85, 247, .42), transparent 68%);
}

.verdict-share-card--curious .verdict-share-card__glow {
    background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, .32), transparent 68%);
}

.verdict-share-card--moon .verdict-share-card__glow {
    background: radial-gradient(circle at 50% 0%, rgba(148, 163, 184, .28), transparent 68%);
}

.verdict-share-card__brand {
    position: relative;
    font-size: .95rem !important;
    letter-spacing: .16em !important;
    margin-bottom: .15rem;
}

.verdict-share-card__eyebrow {
    position: relative;
    margin: 0 0 1rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.verdict-share-card__players {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .55rem .65rem;
    margin-bottom: 1rem;
}

.verdict-share-card__player {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .28rem .55rem .28rem .35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
}

.verdict-share-card__avatar {
    font-size: 1.15rem;
    line-height: 1;
}

.verdict-share-card__name {
    font-size: .78rem;
    font-weight: 700;
    color: #fff;
}

.verdict-share-card__link {
    font-size: .85rem;
    color: var(--muted);
    opacity: .7;
}

.verdict-share-card__score {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: .1rem;
    line-height: 1;
    margin-bottom: .15rem;
}

.verdict-share-card__score-num {
    font-size: clamp(3rem, 14vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -.04em;
    background: linear-gradient(135deg, #fff 20%, #f9a8d4 55%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.verdict-share-card--fire .verdict-share-card__score-num {
    background: linear-gradient(135deg, #fff 10%, #fb7185 45%, #f472b6 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.verdict-share-card--glow .verdict-share-card__score-num {
    background: linear-gradient(135deg, #fff 10%, #e879f9 50%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.verdict-share-card__score-suffix {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f5d0fe;
    margin-top: .55rem;
}

.verdict-share-card__score-label {
    position: relative;
    margin: 0 0 .85rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}

.verdict-share-card__title {
    position: relative;
    margin: 0 0 .45rem;
    font-size: clamp(1.15rem, 4.5vw, 1.45rem);
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
}

.verdict-share-card__connection {
    position: relative;
    margin: 0 0 .65rem;
    font-size: .78rem;
    color: var(--muted);
}

.verdict-share-card__connection strong {
    color: #6ee7b7;
}

.verdict-share-card__message {
    position: relative;
    margin: 0 0 .85rem;
    font-size: .82rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, .78);
}

.verdict-share-card__url {
    position: relative;
    margin: 0;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
}

.verdict-share-actions {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.verdict-share-hint {
    margin: .15rem 0 0;
    font-size: .74rem;
    line-height: 1.45;
    color: var(--muted);
    text-align: center;
}

.verdict-share-toast {
    margin: 0;
    text-align: center;
    font-size: .78rem;
    font-weight: 700;
    color: #6ee7b7;
}

.verdict-rematch {
    padding-top: .35rem;
    border-top: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.rematch-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
    background: rgba(8, 4, 18, .82);
    backdrop-filter: blur(6px);
    animation: fadeIn .25s ease;
}

.rematch-modal {
    width: 100%;
    max-width: 22rem;
    padding: 1.5rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(232, 121, 168, .35);
    background: linear-gradient(160deg, rgba(124, 58, 237, .22), rgba(15, 10, 26, .95));
    box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
    text-align: center;
}

.rematch-modal__emoji {
    display: block;
    font-size: 2.5rem;
    margin-bottom: .5rem;
}

.rematch-modal__title {
    font-size: 1.2rem;
    margin: 0 0 .5rem;
    line-height: 1.35;
}

.rematch-modal__desc {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.rematch-modal__actions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.lobby-players { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }

.badge--ready {
    border-color: rgba(52, 211, 153, .35);
    background: rgba(52, 211, 153, .1);
}

.lobby-ready-banner {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem;
    margin-bottom: .75rem;
    border-radius: .85rem;
    background: rgba(52, 211, 153, .1);
    border: 1px solid rgba(52, 211, 153, .3);
}

.lobby-ready-banner__icon { font-size: 1.5rem; line-height: 1; }

.lobby-ready-banner__title {
    font-weight: 700;
    margin-bottom: .2rem;
}

.lobby-ready-banner__desc {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.45;
}

.avatar-btn:disabled,
.input:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.invite-hint {
    margin-bottom: 0.75rem;
}

.invite-box {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: .75rem;
    background: rgba(168, 85, 247, .08);
    border: 1px solid rgba(168, 85, 247, .2);
}

.invite-row {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.invite-input {
    flex: 1;
    min-width: 0;
    font-size: .8rem;
    letter-spacing: 0;
    text-transform: none;
    text-align: left;
    opacity: .95;
}

.invite-share-btn { white-space: nowrap; }

.btn-leave {
    padding: .45rem .75rem;
    min-height: 2rem;
    border-radius: .65rem;
    border: 1px solid rgba(251, 113, 133, .35);
    background: rgba(251, 113, 133, .1);
    color: #fda4af;
    font: inherit;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
}

@media (hover: hover) {
    .btn-leave:hover { background: rgba(251, 113, 133, .18); }
}

.abandoned-screen {
    text-align: center;
    padding: 2rem 1rem;
    animation: fadeIn .4s ease;
}

.abandoned-icon { font-size: 3rem; margin-bottom: .5rem; }

@media (max-width: 500px) {
    .invite-row .btn { flex: 1; min-width: calc(50% - .25rem); }
    .invite-input { width: 100%; flex: 1 1 100%; }
}

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

/* â€”â€”â€” Desktop experience (split view) â€”â€”â€” */
@media (min-width: 901px) {
    .game-shell {
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - 3rem);
    }

    .game-header {
        align-items: center;
        padding: .75rem 1.25rem;
        margin-bottom: .75rem;
        border-radius: 1rem;
        border: 1px solid var(--border);
        background: linear-gradient(135deg, rgba(124, 58, 237, .12), rgba(15, 10, 26, .6));
        box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
    }

    .game-header__logo.brand-mark--compact {
        font-size: 1.7rem !important;
        line-height: 1.15;
    }

    .game-header__brand {
        display: flex;
        flex-direction: column;
        gap: .2rem;
    }

    .opponent-chip {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        margin-top: .35rem;
        padding: .35rem .75rem .35rem .45rem;
        border-radius: 999px;
        background: rgba(232, 121, 168, .12);
        border: 1px solid rgba(232, 121, 168, .3);
        font-size: .82rem;
        color: var(--muted);
    }

    .opponent-chip__avatar {
        font-size: 1.25rem;
        line-height: 1;
    }

    .opponent-chip strong { color: #fff; }

    .header-badges {
        flex-wrap: wrap;
        justify-content: flex-end;
        overflow: visible;
    }

    .header-badges .badge {
        font-size: .78rem;
        padding: .4rem .7rem;
    }

    .badge--round-title { display: inline-flex !important; }

    .game-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .progress-stack {
        margin-bottom: 1rem;
    }

    .progress-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.15rem 1.5rem;
        padding: 1.1rem 1.25rem;
    }

    .progress-meter__title {
        font-size: .92rem;
    }

    .progress-meter__hint {
        font-size: .76rem;
    }

    .progress-track,
    .progress-track--intimacy {
        height: 9px;
    }

    .game-layout {
        display: grid;
        grid-template-columns: 1.12fr 0.88fr;
        gap: 1.25rem;
        flex: 1;
        min-height: 0;
        align-items: stretch;
    }

    .mobile-tabs { display: none !important; }

    .game-panel.mobile-hidden,
    .chat-panel.mobile-hidden {
        display: flex !important;
    }

    .game-panel,
    .chat-panel {
        min-height: 560px;
        max-height: calc(100vh - 11rem);
        padding: 1.15rem 1.25rem;
        overflow: hidden;
        box-shadow: 0 12px 48px rgba(0, 0, 0, .28);
    }

    .game-panel {
        border-color: rgba(56, 189, 248, .15);
        background: linear-gradient(165deg, rgba(56, 189, 248, .06), rgba(255, 255, 255, .02));
    }

    .chat-panel {
        border-color: rgba(168, 85, 247, .22);
        background: linear-gradient(165deg, rgba(124, 58, 237, .1), rgba(255, 255, 255, .02));
    }

    .game-panel > .panel-label {
        display: flex !important;
        align-items: center;
        gap: .75rem;
        padding-bottom: .85rem;
        margin-bottom: .85rem;
        border-bottom: 1px solid var(--border);
    }

    .panel-label--inline {
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: none;
        flex: 1;
    }

    .panel-label--inline .panel-label__sub {
        font-weight: 500;
    }

    .panel-label__icon {
        font-size: 1.5rem;
        line-height: 1;
        width: 2.5rem;
        height: 2.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: .75rem;
        background: rgba(255, 255, 255, .06);
    }

    .panel-label__title {
        font-size: .72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .06em;
        color: var(--muted);
    }

    .panel-label__sub {
        font-size: .95rem;
        font-weight: 600;
        color: #fff;
        margin-top: .1rem;
    }

    .chat-panel__head {
        padding-bottom: .85rem;
        margin-bottom: .5rem;
        border-bottom: 1px solid var(--border);
    }

    .chat-partner-pill {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        padding: .35rem .65rem;
        border-radius: 999px;
        background: rgba(168, 85, 247, .15);
        border: 1px solid rgba(168, 85, 247, .3);
        font-size: .8rem;
        font-weight: 600;
        white-space: nowrap;
    }

    .game-panel {
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: 1rem;
        scrollbar-gutter: stable;
    }

    .chat-panel {
        display: flex;
        flex-direction: column;
    }

    .chat-panel__body-wrap {
        flex: 1 1 0;
        min-height: 0;
    }

    .chat-panel__body {
        flex: 1 1 0;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
    }

    .emoji-tray__grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        max-height: 10rem;
    }

    .chat-box {
        flex: none;
        min-height: 0;
        max-height: none;
        overflow: visible;
        padding-right: .35rem;
    }

    .chat-panel__composer {
        padding-top: .65rem;
        border-top: 1px solid var(--border);
    }

    .chat-form {
        padding-top: 0;
        border-top: none;
    }

    .round-panel {
        padding: 1.25rem;
    }

    .round-panel__title { font-size: 1.3rem; }

    .intimacy-hint {
        font-size: .82rem;
        padding: .65rem .9rem;
    }

    .option-card:hover {
        border-color: rgba(168, 85, 247, .4);
        background: rgba(168, 85, 247, .08);
    }

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

@media (max-width: 900px) {
    .room-page {
        display: flex;
        flex-direction: column;
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
        padding-bottom: calc(var(--mobile-tab-h) + env(safe-area-inset-bottom));
    }

    .room-page:has(.game-shell.is-chat-tab) {
        overflow: hidden;
    }

    .game-shell {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .game-header {
        flex-shrink: 0;
    }

    .game-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .game-layout {
        flex: 1;
        min-height: 0;
    }

    .mobile-tabs {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
    }

    .chat-panel.mobile-hidden { display: none !important; }
    .game-panel.mobile-hidden { display: none !important; }

    .game-panel:not(.mobile-hidden),
    .chat-panel:not(.mobile-hidden) {
        flex: 1 1 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .game-panel:not(.mobile-hidden) {
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    .chat-panel:not(.mobile-hidden) {
        padding-bottom: .35rem;
    }

    .chat-panel:not(.mobile-hidden) .chat-panel__body-wrap {
        flex: 1 1 0;
        min-height: 0;
    }

    .chat-panel:not(.mobile-hidden) .chat-panel__body {
        flex: 1 1 0;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
    }

    .chat-panel:not(.mobile-hidden) .chat-box {
        flex: none;
        min-height: 0;
        overflow: visible;
    }

    .chat-panel:not(.mobile-hidden) .chat-panel__composer {
        flex-shrink: 0;
        padding-top: .5rem;
        border-top: 1px solid var(--border);
        background: linear-gradient(180deg, transparent, rgba(15, 10, 26, .35));
    }

    .chat-panel:not(.mobile-hidden) .chat-form {
        position: static;
        z-index: auto;
        margin: 0;
        padding: 0;
        background: transparent;
        flex-shrink: 0;
    }

    .chat-panel:not(.mobile-hidden) .emoji-tray__grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: .28rem;
        max-height: 8.5rem;
    }

    .chat-panel:not(.mobile-hidden) .reaction-btn {
        min-height: 2.1rem;
        font-size: 1.05rem;
        border-radius: .55rem;
    }

    .chat-panel:not(.mobile-hidden) .emoji-toggle {
        width: 2.75rem;
        min-width: 2.75rem;
        height: 2.75rem;
        min-height: 2.75rem;
        font-size: 1.15rem;
    }

    .chat-panel:not(.mobile-hidden) .chat-panel__head,
    .chat-panel:not(.mobile-hidden) .chat-empty-state,
    .chat-panel:not(.mobile-hidden) .report-panel,
    .chat-panel:not(.mobile-hidden) .report-toast {
        flex-shrink: 0;
    }

    .invite-row {
        flex-direction: column;
    }

    .invite-row .btn {
        width: 100%;
        min-height: 2.85rem;
    }

    .invite-share-btn {
        background: linear-gradient(135deg, var(--accent-2), var(--accent)) !important;
        color: #fff !important;
        border: none !important;
    }

    .option-card {
        padding: .85rem .9rem;
        min-height: 3rem;
    }

    .btn--lg {
        min-height: 3rem;
    }
}

/* Site header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: max(.75rem, env(safe-area-inset-top)) max(.85rem, env(safe-area-inset-right)) .5rem max(.85rem, env(safe-area-inset-left));
    pointer-events: none;
}

.site-header__bar {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: .45rem .45rem .45rem .85rem;
    border-radius: 999px;
    background: rgba(20, 14, 32, .82);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .04);
    pointer-events: auto;
    transition: padding .2s ease, box-shadow .2s ease, background .2s ease;
}

.site-header.is-scrolled .site-header__bar {
    padding: .32rem .35rem .32rem .7rem;
    background: rgba(16, 11, 28, .92);
    box-shadow: 0 6px 28px rgba(0, 0, 0, .32);
}

.site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: .75rem;
}

.site-header__brand {
    font-size: 1.05rem !important;
    letter-spacing: .14em !important;
    text-decoration: none;
    flex-shrink: 0;
    line-height: 1;
    justify-self: start;
    transition: font-size .2s ease;
}

.site-header.is-scrolled .site-header__brand {
    font-size: .92rem !important;
}

.site-header__center {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    grid-column: 2;
}

.site-header__end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .45rem;
    justify-self: end;
    grid-column: 3;
}

.site-header__links {
    display: flex;
    align-items: center;
    gap: .15rem;
    padding: .22rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .05);
}

.site-header__link {
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    padding: .48rem .9rem;
    border-radius: 999px;
    white-space: nowrap;
    transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}

.site-header__link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .05);
}

.site-header__link.is-active {
    color: #fff;
    background: rgba(168, 85, 247, .22);
    box-shadow: inset 0 0 0 1px rgba(168, 85, 247, .35);
}

.site-header__cta {
    min-height: 2.35rem;
    padding: .45rem 1.05rem;
    font-size: .82rem;
    border-radius: 999px;
    flex-shrink: 0;
    box-shadow: 0 4px 18px rgba(168, 85, 247, .28);
}

.site-header__cta--menu {
    display: none;
}

.site-header__cta--bar {
    display: inline-flex;
}

.site-header__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.65rem;
    height: 2.65rem;
    padding: .5rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
    touch-action: manipulation;
}

.site-header__toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    transition: transform .2s ease, opacity .2s ease;
}

.site-header.is-open .site-header__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .site-header__toggle-bar:nth-child(2) {
    opacity: 0;
}

.site-header.is-open .site-header__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

body.site-menu-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .site-header {
        padding-top: max(.65rem, env(safe-area-inset-top));
    }

    .site-header__bar {
        border-radius: 1.15rem;
        padding: .55rem .65rem .55rem .75rem;
    }

    .site-header__inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: .55rem;
    }

    .site-header__brand {
        order: 1;
    }

    .site-header__end {
        order: 2;
        margin-left: auto;
    }

    .site-header__center {
        display: none;
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        position: static;
        justify-self: unset;
        grid-column: unset;
        flex-direction: column;
        align-items: stretch;
        gap: .55rem;
        padding: 0;
        margin: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .site-header.is-open .site-header__center {
        display: flex;
        padding-top: .65rem;
        margin-top: .15rem;
        border-top: 1px solid rgba(255, 255, 255, .08);
    }

    .site-header__links {
        flex-direction: column;
        align-items: stretch;
        gap: .15rem;
        padding: .25rem;
        border: none;
        background: transparent;
    }

    .site-header__link {
        padding: .75rem .85rem;
        font-size: .88rem;
    }

    .site-header__cta--bar {
        display: none;
    }

    .site-header__cta--menu {
        display: inline-flex;
        width: 100%;
        min-height: 2.85rem;
        justify-content: center;
    }

    .site-header__toggle {
        display: flex;
    }
}

@media (min-width: 901px) {
    .site-header {
        padding-left: max(1.25rem, env(safe-area-inset-left));
        padding-right: max(1.25rem, env(safe-area-inset-right));
    }

    .site-header__toggle {
        display: none;
    }
}

/* Site footer */
.site-footer {
    margin-top: 2.5rem;
    width: 100%;
    pointer-events: none;
}

.site-footer__bar {
    width: 100%;
    margin: 0;
    padding: 1.5rem 1.15rem 1.25rem;
    border-radius: 1.25rem;
    background: rgba(20, 14, 32, .78);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 36px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .04);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.site-footer__brand {
    font-size: 1.05rem !important;
    letter-spacing: .14em !important;
    text-decoration: none;
    line-height: 1;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .2rem;
    width: 100%;
    padding: .3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .05);
}

.site-footer__link {
    color: var(--muted);
    text-decoration: none;
    font-size: .78rem;
    font-weight: 600;
    padding: .42rem .75rem;
    border-radius: 999px;
    transition: color .15s ease, background .15s ease;
}

.site-footer__link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .05);
}

.site-footer__link.is-active {
    color: #fff;
    background: rgba(168, 85, 247, .18);
}

.site-footer__share {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: 100%;
    padding-top: .85rem;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.site-footer__share-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-right: .15rem;
}

.site-footer__share a {
    font-size: .76rem;
    font-weight: 600;
    padding: .4rem .75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .03);
    color: var(--muted);
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.site-footer__share a:hover {
    border-color: rgba(168, 85, 247, .35);
    background: rgba(168, 85, 247, .1);
    color: var(--text);
}

.site-footer__tagline {
    margin: 0;
    font-size: .72rem;
    line-height: 1.5;
    color: var(--muted);
}

@media (min-width: 901px) {
    .site-footer__bar {
        padding: 1.65rem 1.5rem 1.35rem;
    }

    .site-footer__link {
        font-size: .8rem;
        padding: .45rem .85rem;
    }
}

/* Feedback form */
.feedback-form {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    max-width: 32rem;
}

.feedback-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.captcha-field {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: .75rem;
}

.captcha-field .field-label {
    display: block;
    margin-bottom: 0;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .5rem;
}

.captcha-row__question {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: .55rem .85rem;
    border-radius: .65rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    user-select: none;
}

.captcha-row__refresh {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .55rem;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--muted);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
}

.captcha-row__refresh:hover {
    color: var(--text);
    border-color: rgba(168, 85, 247, .35);
}

.captcha-row__refresh:disabled {
    opacity: .5;
    cursor: wait;
}

.feedback-success {
    width: 100%;
    max-width: 32rem;
    background: rgba(52, 211, 153, .12);
    border: 1px solid rgba(52, 211, 153, .35);
    color: #6ee7b7;
    padding: .85rem 1rem;
    border-radius: .75rem;
    font-size: .9rem;
    margin-bottom: 1rem;
}

.backlink-grid {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
}

.backlink-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: .75rem;
    padding: 1rem;
    font-size: .85rem;
    color: var(--muted);
}

.backlink-card code {
    display: block;
    margin-top: .5rem;
    padding: .5rem .65rem;
    background: rgba(0, 0, 0, .25);
    border-radius: .5rem;
    font-size: .78rem;
    word-break: break-all;
    color: var(--text);
}

/* Error pages */
.error-page {
    min-height: 70dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.error-card {
    max-width: 26rem;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
}

.error-card__code {
    font-family: 'Syne', 'Syne Fallback', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: .5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.error-card__text {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

/* Chat report */
.chat-report-btn {
    font: inherit;
    font-size: .72rem;
    color: var(--muted);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: .2rem .35rem;
    text-decoration: underline;
}

.chat-report-btn:hover {
    color: var(--accent);
}

.report-panel {
    margin-top: .65rem;
    padding: .75rem;
    border-radius: .75rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
}

.report-panel select,
.report-panel textarea {
    width: 100%;
    margin-top: .35rem;
}

.report-msg-btn {
    font-size: .65rem;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    margin-left: .35rem;
    opacity: 0;
    transition: opacity .15s;
}

.chat-row:hover .report-msg-btn {
    opacity: 1;
}

.report-toast {
    font-size: .78rem;
    color: var(--success);
    margin-top: .35rem;
}
