*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #121215;
    --bg2: #1a1a1f;
    --bg3: #222228;
    --bg4: #2a2a32;
    --border: #ffffff14;
    --border2: #3e3e3e;
    --border3: #4d4d4d;
    --text: #e8e8ec;
    --muted: #777780;
    --muted2: #9999a3;
    --accent: #ffffff;
    --accent-dim: #bbbbcc;
    --sent-bg: #534bf9;
    --recv-bg: #333333;
    --danger: #ff5555;
    --glow: #ffffff20;
    --glow2: #ffffff12;
    --glass: rgba(255, 255, 255, 0.05);
    --glass2: rgba(255, 255, 255, 0.09);
}

html,
body {
    height: 100%;
    height: 100dvh;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Outfit', system-ui, sans-serif;
    overflow: hidden;
}

body.scrollable,
html:has(body.scrollable) {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 999;
}

.screen {
    display: none;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100dvh;
    flex-direction: column;
}

.screen.active {
    display: flex;
}

#screen-landing {
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

#screen-landing::-webkit-scrollbar {
    width: 3px;
}

#screen-landing::-webkit-scrollbar-thumb {
    background: var(--border2);
    border-radius: 2px;
}

.land-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 400px;
    width: 100%;
    padding: 40px 24px 60px;
    animation: riseIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.scene-container {
    perspective: 800px;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cube-wrapper {
    width: 100px;
    height: 100px;
    position: relative;
    transform-style: preserve-3d;
    animation: cubeRotate 12s linear infinite;
}

.cube-face {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(2px);
}

.cube-face:nth-child(1) {
    transform: rotateY(0deg) translateZ(50px);
}

.cube-face:nth-child(2) {
    transform: rotateY(90deg) translateZ(50px);
}

.cube-face:nth-child(3) {
    transform: rotateY(180deg) translateZ(50px);
}

.cube-face:nth-child(4) {
    transform: rotateY(270deg) translateZ(50px);
}

.cube-face:nth-child(5) {
    transform: rotateX(90deg) translateZ(50px);
}

.cube-face:nth-child(6) {
    transform: rotateX(-90deg) translateZ(50px);
}

@keyframes cubeRotate {
    0% {
        transform: rotateX(-15deg) rotateY(0deg);
    }

    25% {
        transform: rotateX(15deg) rotateY(90deg);
    }

    50% {
        transform: rotateX(-10deg) rotateY(180deg);
    }

    75% {
        transform: rotateX(10deg) rotateY(270deg);
    }

    100% {
        transform: rotateX(-15deg) rotateY(360deg);
    }
}

.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 5s;
}

.particle:nth-child(2) {
    top: 20%;
    right: 10%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.particle:nth-child(3) {
    bottom: 25%;
    left: 20%;
    animation-delay: 2s;
    animation-duration: 6s;
}

.particle:nth-child(4) {
    bottom: 15%;
    right: 15%;
    animation-delay: 0.5s;
    animation-duration: 8s;
}

.particle:nth-child(5) {
    top: 50%;
    left: 5%;
    animation-delay: 3s;
    animation-duration: 5.5s;
}

.particle:nth-child(6) {
    top: 40%;
    right: 5%;
    animation-delay: 1.5s;
    animation-duration: 6.5s;
}

.particle:nth-child(7) {
    bottom: 40%;
    left: 50%;
    animation-delay: 2.5s;
    animation-duration: 7.5s;
}

.particle:nth-child(8) {
    top: 5%;
    left: 50%;
    animation-delay: 4s;
    animation-duration: 5s;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.2;
    }

    50% {
        transform: translateY(-15px) scale(1.5);
        opacity: 0.6;
    }
}

.scene-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.brand-text {
    text-align: center;
}

.brand-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2px;
    line-height: 1;
}

.brand-sub {
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 8px;
    font-weight: 300;
}

.name-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.name-label {
    font-size: 0.75rem;
    color: var(--muted2);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 400;
    text-align: center;
}

.name-input-wrap {
    position: relative;
    width: 100%;
}

.name-input {
    width: 100%;
    padding: 16px 18px;
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: 14px;
    font-family: 'Inter', 'Outfit', system-ui, sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.name-input::placeholder {
    color: var(--muted);
}

.name-input:focus {
    border-color: var(--border3);
    box-shadow: 0 0 0 3px var(--glow2), 0 0 20px var(--glow);
}

.name-count {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    color: var(--muted);
    pointer-events: none;
    transition: color 0.2s;
}

.name-count.warn {
    color: var(--danger);
}

.terms-wrap {
    margin-top: -6px;
    margin-bottom: 2px;
    padding: 0 4px;
}

.terms-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.terms-checkbox {
    appearance: none;
    background: var(--bg2);
    margin: 0;
    margin-top: 3px;
    font: inherit;
    color: var(--text);
    width: 18px;
    height: 18px;
    border: 1px solid var(--border3);
    border-radius: 5px;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.terms-checkbox::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 120ms transform cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 1em 1em var(--text);
    background-color: transparent;
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.terms-checkbox:checked {
    background: var(--text);
    border-color: var(--text);
}

.terms-checkbox:checked::before {
    transform: scale(1);
    box-shadow: inset 1em 1em var(--bg);
}

.terms-text {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.5;
    font-weight: 300;
}

.terms-text a {
    color: var(--muted2);
    text-decoration: underline;
    text-decoration-color: var(--border3);
    text-underline-offset: 3px;
    transition: color 0.15s, text-decoration-color 0.15s;
}

.terms-text a:hover {
    color: var(--text);
    text-decoration-color: var(--border);
}

.land-btn {
    position: relative;
    width: 100%;
    padding: 16px 24px;
    background: var(--bg3);
    border: 1px solid var(--border3);
    border-radius: 16px;
    font-family: 'Inter', 'Outfit', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.land-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    opacity: 0;
    transition: opacity 0.2s;
}

.land-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--glow), inset 0 1px 0 #ffffff12;
    border-color: #ffffff33;
}

.land-btn:hover:not(:disabled)::before {
    opacity: 1;
}

.land-btn:active:not(:disabled) {
    transform: translateY(0);
}

.land-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.land-btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.land-note {
    font-size: 0.73rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.8;
    font-weight: 300;
}

.privacy-section {
    width: 100%;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(10px);
    margin-top: 100px;
}

.privacy-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.privacy-icon {
    width: 20px;
    height: 20px;
    color: var(--muted2);
    flex-shrink: 0;
}

.privacy-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-dim);
    letter-spacing: 0.5px;
}

.privacy-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.privacy-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.73rem;
    color: var(--muted);
    line-height: 1.6;
    font-weight: 300;
}

.privacy-item-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--muted);
    width: 14px;
    height: 14px;
}

.privacy-divider {
    width: 100%;
    height: 1px;
    background: var(--border);
}

.privacy-disclaimer {
    font-size: 0.65rem;
    color: var(--muted);
    line-height: 1.7;
    font-weight: 300;
    font-style: italic;
    opacity: 0.7;
}

.landing-footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.landing-footer-links a {
    color: var(--muted2);
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.15s;
}

.landing-footer-links a:hover {
    color: var(--text);
}

#screen-waiting {
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}

.wait-card {
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: 28px;
    padding: 52px 40px;
    max-width: 300px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    box-shadow: 0 0 60px var(--glow), 0 24px 48px #00000044;
    animation: riseIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.wait-card::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04), transparent 70%);
    pointer-events: none;
}

.wait-rings {
    position: relative;
    width: 72px;
    height: 72px;
}

.wait-rings svg {
    position: absolute;
    inset: 0;
    width: 72px;
    height: 72px;
}

.wait-title {
    font-size: 1.2rem;
    font-weight: 400;
    text-align: center;
    color: var(--text);
}

.wait-sub {
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.6;
    font-weight: 300;
}

.btn-cancel {
    padding: 9px 22px;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border2);
    font-family: 'Inter', 'Outfit', system-ui, sans-serif;
    font-size: 0.83rem;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-cancel:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(255, 68, 68, 0.06);
}

#screen-chat {
    background: var(--bg);
    overflow-x: hidden;
}

@media(min-width: 560px) {
    #screen-chat {
        max-width: 520px;
        margin: 0 auto;
        border-left: 1px solid var(--border2);
        border-right: 1px solid var(--border2);
    }
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(26, 26, 31, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border2);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-back-chat {
    background: transparent;
    border: none;
    color: var(--muted);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    flex-shrink: 0;
    transition: color 0.2s, background 0.2s;
    margin-right: -4px;
}

.btn-back-chat:active {
    background: var(--glass);
    color: var(--text);
}

.btn-back-chat svg {
    width: 20px;
    height: 20px;
}

.avatar-svg-wrap {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 2px var(--border2);
}

.peer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.peer-name {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.2;
}

.peer-status {
    font-size: 0.7rem;
    color: var(--muted2);
    min-height: 14px;
    transition: color 0.2s;
    font-weight: 300;
    display: flex;
    align-items: center;
}

.peer-status.typing-state {
    color: var(--accent-dim);
    font-style: italic;
}

.btn-end {
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(255, 68, 68, 0.06);
    color: var(--muted2);
    border: 1px solid rgba(255, 68, 68, 0.15);
    font-family: 'Inter', 'Outfit', system-ui, sans-serif;
    font-size: 0.76rem;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    font-weight: 400;
}

.btn-end:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(255, 68, 68, 0.1);
}

.banner {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 12px 20px;
    font-size: 0.8rem;
    color: var(--muted2);
    background: var(--bg3);
    border-bottom: 1px solid var(--border2);
    flex-shrink: 0;
    animation: fadeIn 0.3s ease;
}

.banner.show {
    display: flex;
}

.btn-new-sm {
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid var(--border3);
    color: var(--text);
    background: var(--bg4);
    font-size: 0.76rem;
    cursor: pointer;
    font-family: 'Inter', 'Outfit', system-ui, sans-serif;
    transition: all 0.15s;
    font-weight: 400;
}

.btn-new-sm:hover {
    background: var(--glass2);
    border-color: #ffffff44;
    transform: translateY(-1px);
}

.messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 18px 12px;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    background: var(--bg);
}

.messages::-webkit-scrollbar {
    width: 4px;
}

.messages::-webkit-scrollbar-track {
    background: transparent;
}

.messages::-webkit-scrollbar-thumb {
    background: var(--border3);
    border-radius: 4px;
}

.msg-divider {
    text-align: center;
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 16px 0 12px;
    user-select: none;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.msg-divider::before,
.msg-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.msg-system {
    text-align: center;
    font-size: 0.78rem;
    color: var(--muted2);
    font-style: italic;
    margin: 10px 0;
    padding: 8px 16px;
    background: var(--glass);
    border-radius: 12px;
    animation: fadeIn 0.3s ease;
    align-self: center;
}

.bubble-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    animation: bubbleIn 0.25s cubic-bezier(0.34, 1.4, 0.64, 1) both;
    padding: 2px 0;
}

.bubble-row.sent {
    flex-direction: row-reverse;
}

@keyframes bubbleIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(6px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.bav {
    display: none;
}

.b-col {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.sent .b-col {
    align-items: flex-end;
}

.recv .b-col {
    align-items: flex-start;
}

.bubble {
    width: fit-content;
    padding: 8px 14px;
    font-size: 0.95rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: filter 0.2s;
}

.chat-image {
    max-width: 100%;
    max-height: 250px;
    display: block;
    cursor: pointer;
    border-radius: 12px;
    background: transparent;
}

.bubble:has(.chat-image) {
    padding: 6px;
}

.bubble-row .bubble:has(.chat-image)::before,
.bubble-row .bubble:has(.chat-image)::after {
    display: none !important;
}

.bubble:active {
    filter: brightness(1.2);
}

.bubble-row .bubble {
    border-radius: 25px;
    position: relative;
}

.bubble-row.recv.single .bubble::before,
.bubble-row.recv.bottom .bubble::before,
.typing-bubble::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: -10px;
    width: 24px;
    height: 20px;
    background-color: #333;
    border-bottom: 1px solid #333;
    z-index: -1;
    border-radius: 0 0 20px 0;
}

.bubble-row.recv.single .bubble::after,
.bubble-row.recv.bottom .bubble::after,
.typing-bubble::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: -14px;
    width: 14px;
    height: 22px;
    background-color: var(--bg);
    border-bottom-right-radius: 11px 16px;
    border-right: 1px solid #333;
    z-index: -1;
}

.bubble-row.recv:has(+ .typing-row) .bubble::before,
.bubble-row.recv:has(+ .typing-row) .bubble::after {
    display: none;
}

.typing-bubble::before {
    z-index: 1;
}

.typing-bubble::after {
    z-index: 1;
}

.bubble-row.sent.single .bubble::before,
.bubble-row.sent.bottom .bubble::before {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -10px;
    width: 24px;
    height: 20px;
    background-color: var(--sent-bg);
    border-bottom: 1px solid #534bf9;
    z-index: -1;
    border-radius: 0 0 0 20px;
}

.bubble-row.sent.single .bubble::after,
.bubble-row.sent.bottom .bubble::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -14px;
    width: 14px;
    height: 22px;
    background-color: var(--bg);
    border-bottom-left-radius: 11px 16px;
    border-left: 1px solid #534bf9;
    z-index: -1;
}

.sent .bubble {
    background: var(--sent-bg);
    border: 1px solid #534bf9;
    color: var(--text);
}

.recv .bubble {
    background: var(--recv-bg);
    border: 1px solid #333;
    color: var(--text);
}

.bubble.pending {
    opacity: 0.5;
}

.bubble-row.highlight .bubble {
    border: 1px solid #fff;
}

.reply-block {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px 20px 10px 10px;
    padding: 6px 10px;
    margin: -4px -10px 6px;
    font-size: 0.75rem;
    line-height: 1.35;
    overflow: hidden;
}

.reply-sender {
    font-weight: 600;
    margin-bottom: 2px;
}

.reply-sender.you {
    color: #81b9ff;
}

.reply-sender.stranger {
    color: #ff9696;
}

.reply-text {
    color: var(--muted2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.typing-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 2px 0;
    animation: fadeIn 0.2s ease;
}

.typing-bubble {
    background: var(--recv-bg);
    border: 1px solid #333;
    border-radius: 25px;
    padding: 14px 18px;
    display: flex;
    gap: 5px;
    align-items: center;
    position: relative;
}

.td {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--muted2);
    animation: tdB 1.1s ease-in-out infinite;
}

.td:nth-child(2) {
    animation-delay: 0.18s;
}

.td:nth-child(3) {
    animation-delay: 0.36s;
}

@keyframes tdB {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.35;
    }

    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

.input-area-wrapper {
    display: flex;
    flex-direction: column;
    background: rgba(26, 26, 31, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border2);
    flex-shrink: 0;
}

.active-reply-bar {
    display: none;
    padding: 10px 16px 0;
    justify-content: space-between;
    align-items: flex-start;
}

.active-reply-bar.show {
    display: flex;
}

.active-reply-content {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    border-left: 3px solid var(--accent);
    flex: 1;
    margin-right: 12px;
    min-width: 0;
}

.btn-close-reply {
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-reply:hover {
    color: var(--text);
    background: var(--glass);
}

.input-bar {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 12px 16px 18px;
}

.input-wrap {
    flex: 1;
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: 22px;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: flex-end;
    padding-right: 6px;
}

.input-wrap:focus-within {
    border-color: var(--border3);
    box-shadow: 0 0 0 3px var(--glow2), 0 0 12px var(--glow);
}

#msg-input {
    flex: 1;
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 6px 12px 18px;
    font-family: 'Inter', 'Outfit', system-ui, sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    resize: none;
    height: 46px;
    max-height: 120px;
    line-height: 1.5;
    border-radius: 22px;
    display: block;
}

#msg-input::placeholder {
    color: var(--muted);
}

.btn-image {
    background: transparent;
    border: none;
    color: var(--muted);
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-bottom: 5px;
    flex-shrink: 0;
}

.btn-image:hover {
    color: var(--text);
    background: var(--glass);
}

.btn-send {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--text);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s, background 0.15s;
}

.btn-send svg {
    stroke: var(--bg);
}

.btn-send:hover:not(:disabled) {
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.btn-send:active:not(:disabled) {
    transform: scale(0.93);
}

.btn-send:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(14, 14, 17, 0.98);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
}

.image-viewer.show {
    display: flex;
}

.iv-header {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    z-index: 10000;
}

.btn-iv-close,
.btn-iv-download {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-iv-close:hover,
.btn-iv-download:hover {
    background: rgba(255, 255, 255, 0.25);
}

.iv-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #888888;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
    box-shadow: 0 0 0 2px rgba(136, 136, 136, 0.2);
    animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        box-shadow: 0 0 0 2px rgba(136, 136, 136, 0.2);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(136, 136, 136, 0.12);
    }
}

@media (max-width: 400px) {
    .land-wrap {
        padding: 30px 16px 40px;
        gap: 32px;
    }

    .scene-container {
        width: 140px;
        height: 140px;
    }

    .cube-wrapper {
        width: 75px;
        height: 75px;
    }

    .cube-face {
        width: 75px;
        height: 75px;
    }

    .cube-face:nth-child(1) {
        transform: rotateY(0deg) translateZ(37.5px);
    }

    .cube-face:nth-child(2) {
        transform: rotateY(90deg) translateZ(37.5px);
    }

    .cube-face:nth-child(3) {
        transform: rotateY(180deg) translateZ(37.5px);
    }

    .cube-face:nth-child(4) {
        transform: rotateY(270deg) translateZ(37.5px);
    }

    .cube-face:nth-child(5) {
        transform: rotateX(90deg) translateZ(37.5px);
    }

    .cube-face:nth-child(6) {
        transform: rotateX(-90deg) translateZ(37.5px);
    }

    .brand-title {
        font-size: 2.6rem;
    }

    .privacy-section {
        padding: 22px 18px;
    }
}

.btn-floating-share {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(42, 42, 50, 0.85);
    border: 1px solid var(--border3);
    border-radius: 50%;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    z-index: 50;
}

.btn-floating-share:hover {
    background: rgba(60, 60, 70, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.btn-floating-share svg {
    width: 22px;
    height: 22px;
}

.share-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.share-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.share-popup {
    background: var(--bg2);
    border: 1px solid var(--border3);
    border-radius: 24px;
    padding: 32px;
    width: 90%;
    max-width: 360px;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.share-overlay.show .share-popup {
    transform: scale(1) translateY(0);
}

.btn-share-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-share-close:hover {
    background: var(--glass);
    color: var(--text);
}

.btn-share-close svg {
    width: 18px;
    height: 18px;
}

.share-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 24px;
    text-align: center;
}

.share-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg3);
    border: 1px solid var(--border2);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    background: var(--glass2);
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

.share-btn[data-network="facebook"]:hover {
    color: #1877F2;
    border-color: #1877F2;
}

.share-btn[data-network="whatsapp"]:hover {
    color: #25D366;
    border-color: #25D366;
}

.share-btn[data-network="twitter"]:hover {
    color: #ffffff;
    border-color: #ffffff;
}

.share-btn[data-network="telegram"]:hover {
    color: #2AABEE;
    border-color: #2AABEE;
}

.share-btn[data-network="bluesky"]:hover {
    color: #0085ff;
    border-color: #0085ff;
}

.share-copy-bar {
    display: flex;
    background: var(--bg);
    border: 1px solid var(--border3);
    border-radius: 12px;
    padding: 6px;
    gap: 8px;
    align-items: center;
}

.share-url-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--muted2);
    font-family: inherit;
    font-size: 0.85rem;
    padding: 0 10px;
    outline: none;
}

.btn-copy-url {
    background: var(--bg3);
    color: var(--text);
    border: 1px solid var(--border3);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.btn-copy-url svg {
    width: 16px;
    height: 16px;
}

.btn-copy-url:hover {
    background: var(--glass);
    border-color: var(--border);
}

.btn-copy-url.copied {
    color: #25D366;
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.1);
}

body.scrollable {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(18, 18, 24, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-logo {
    font-family: 'Inter', 'Outfit', system-ui, sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
    font-style: italic;
    transition: text-shadow 0.2s;
}

.page-logo:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

.page-breadcrumb {
    padding: 20px 24px 0;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    color: var(--muted2);
    font-size: 0.8rem;
}

.page-breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.page-breadcrumb a:hover {
    color: var(--text);
}

.page-breadcrumb .separator {
    margin: 0 8px;
    color: var(--border3);
}

.page-content-wrapper {
    flex: 1;
    padding: 24px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 24px;
}

.page-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(10px);
}

.page-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--muted);
    font-weight: 300;
}

.page-text h2 {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text);
    margin: 32px 0 16px;
}

.page-text h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    margin: 24px 0 12px;
}

.page-text p {
    margin-bottom: 16px;
}

.page-text ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.page-text li {
    margin-bottom: 8px;
}

.page-footer {
    padding: 32px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg2);
    text-align: center;
    margin-top: 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    color: var(--muted2);
    font-size: 0.75rem;
}