:root {
    --scce-neon-pink: #ff1493;
    --scce-neon-blue: #00f0ff;
    --scce-neon-purple: #ba55d3;
    --scce-gold: #d4af37;
    --scce-bg: #0a0a0f;
    --scce-surface: rgba(21, 21, 32, 0.82);
    --scce-text: #e0e0ff;
}

.scce-app {
    position: relative;
    min-height: 100vh;
    color: var(--scce-text);
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
}

.scce-bg-layer {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(1px);
    z-index: 0;
}

.scce-overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 20, 147, .16), transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(0, 240, 255, .14), transparent 40%),
        rgba(0, 0, 0, .55);
    z-index: 1;
}

.scce-topbar,
.scce-progress-wrap,
.scce-chat-window,
.scce-input-wrap {
    position: relative;
    z-index: 2;
}

.scce-topbar {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    background: var(--scce-surface);
    backdrop-filter: blur(12px);
}

.scce-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.scce-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--scce-gold);
    object-fit: cover;
}

.scce-title {
    margin: 0;
    font-size: 20px;
    letter-spacing: 1px;
}

.scce-subtitle {
    margin: 0;
    opacity: .75;
    font-size: 12px;
}

.scce-back,
.scce-gift-btn {
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255,255,255,.06);
    transition: all .25s ease;
}

.scce-gift-btn:hover,
.scce-back:hover {
    border-color: var(--scce-neon-pink);
    box-shadow: 0 0 18px rgba(255, 20, 147, .35);
}

.scce-right-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.scce-clear-context-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(80,40,80,.25), rgba(40,60,80,.2));
    color: rgba(255,255,255,.95);
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.scce-clear-context-btn:hover {
    border-color: rgba(255,100,150,.5);
    background: linear-gradient(135deg, rgba(120,60,100,.35), rgba(60,80,120,.3));
    box-shadow: 0 0 16px rgba(255,20,147,.2);
}
.scce-clear-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0e0ff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 6h18M19 6v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2'/%3E%3Cline x1='10' y1='11' x2='10' y2='17'/%3E%3Cline x1='14' y1='11' x2='14' y2='17'/%3E%3C/svg%3E") center/contain no-repeat;
}

.scce-clear-context-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(8px);
}
.scce-clear-context-modal {
    background: linear-gradient(135deg, rgba(21,21,32,.98), rgba(26,26,46,.98));
    border: 2px solid rgba(0,240,255,.4);
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 40px rgba(255,20,147,.2);
}
.scce-clear-context-modal h3 {
    margin: 0 0 12px;
    font-size: 18px;
    color: var(--scce-text);
}
.scce-clear-modal-desc {
    margin: 0 0 16px;
    font-size: 13px;
    color: rgba(255,255,255,.8);
    line-height: 1.5;
}
.scce-clear-option {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: rgba(255,255,255,.9);
    cursor: pointer;
}
.scce-clear-option input { margin-right: 8px; }
.scce-clear-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}
.scce-clear-cancel,
.scce-clear-confirm {
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}
.scce-clear-cancel {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
}
.scce-clear-confirm {
    background: linear-gradient(135deg, var(--scce-neon-pink), var(--scce-neon-blue));
    border: 0;
    color: #fff;
}
.scce-clear-confirm:hover { opacity: .9; }

.scce-progress-wrap {
    padding: 14px 18px;
    background: var(--scce-surface);
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.scce-affinity-head,
.scce-service-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
}

.scce-affinity-bar,
.scce-service-bar {
    position: relative;
    height: 12px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
}

.scce-affinity-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--scce-gold), var(--scce-neon-pink), var(--scce-neon-blue));
    transition: width .35s ease;
}

.scce-service-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--scce-neon-blue), var(--scce-neon-purple));
    transition: width .35s ease;
}

/* Affinity bar + arrow nodes below */
.scce-affinity-bar-wrap {
    position: relative;
}
.scce-affinity-bar-wrap .scce-affinity-bar {
    margin-bottom: 0;
}
.scce-affinity-nodes {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    height: 24px;
    margin-top: 4px;
}
.scce-node-arrow {
    position: absolute;
    left: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 2;
}
.scce-node-arrow .scce-node-arrow-line {
    width: 2px;
    height: 8px;
    background: rgba(0, 240, 255, 0.6);
    flex-shrink: 0;
}
.scce-node-arrow .scce-node-arrow-head {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid rgba(0, 240, 255, 0.8);
    margin-top: -1px;
}
.scce-node-arrow:nth-child(1) { left: 0%; }
.scce-node-arrow:nth-child(2) { left: 40%; }
.scce-node-arrow:nth-child(3) { left: 80%; }
.scce-node-arrow:nth-child(4) { left: 100%; }
.scce-node-arrow:hover .scce-node-arrow-line,
.scce-node-arrow:hover .scce-node-arrow-head {
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.9));
}
.scce-node-arrow.unlocked .scce-node-arrow-line { background: linear-gradient(180deg, var(--scce-gold), var(--scce-neon-pink)); }
.scce-node-arrow.unlocked .scce-node-arrow-head { border-bottom-color: var(--scce-neon-pink); }
.scce-node-arrow-tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 10px 14px;
    min-width: 200px;
    max-width: 280px;
    background: rgba(20, 20, 30, 0.98);
    color: #e0e0ff;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 10px;
    border: 1px solid rgba(0, 240, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0,0,0,.5);
    white-space: normal;
    z-index: 100;
    opacity: 0;
    transition: opacity .2s, visibility .2s;
    pointer-events: none;
}
.scce-node-arrow:hover .scce-node-arrow-tooltip {
    visibility: visible;
    opacity: 1;
}
/* Lv1 at 0%: keep tooltip from overflowing left */
.scce-node-arrow:nth-child(1) .scce-node-arrow-tooltip {
    left: 0;
    transform: translateX(0) translateY(-8px);
}
/* Lv4 at 100%: keep tooltip from overflowing right */
.scce-node-arrow:nth-child(4) .scce-node-arrow-tooltip {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(-8px);
}

.scce-chat-window {
    height: calc(100vh - 260px);
    overflow-y: auto;
    padding: 16px;
}

.scce-msg {
    max-width: 78%;
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    line-height: 1.45;
    box-shadow: 0 8px 24px rgba(0,0,0,.28);
}

.scce-msg.user {
    margin-left: auto;
    background: linear-gradient(135deg, rgba(255,20,147,.35), rgba(0,240,255,.25));
    border: 1px solid rgba(255,20,147,.35);
}

.scce-msg.assistant {
    margin-right: auto;
    background: rgba(12, 12, 20, .8);
    border: 1px solid rgba(0,240,255,.24);
}

.scce-msg.system {
    margin: 0 auto 10px auto;
    background: rgba(212, 175, 55, .14);
    border: 1px solid rgba(212, 175, 55, .38);
    text-align: center;
}

.scce-action-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.scce-buy-credits-btn,
.scce-try-trial-link {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: all .25s ease;
}
.scce-buy-credits-btn {
    background: linear-gradient(135deg, var(--scce-neon-pink), var(--scce-neon-blue));
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
}
.scce-buy-credits-btn:hover {
    box-shadow: 0 0 18px rgba(255, 20, 147, .5);
}
.scce-try-trial-link {
    color: var(--scce-neon-blue);
    border: 1px solid rgba(0, 240, 255, .4);
    background: rgba(0, 240, 255, .1);
}
.scce-try-trial-link:hover {
    background: rgba(0, 240, 255, .2);
}
.scce-or-trial { opacity: .8; }

.scce-upsell {
    margin: 0 16px 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(186, 85, 211, .2);
    border: 1px solid rgba(186, 85, 211, .45);
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.scce-upsell button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    color: #fff;
    background: linear-gradient(135deg, #ff1493, #00f0ff);
    cursor: pointer;
}

.scce-input-wrap {
    padding: 12px;
    background: var(--scce-surface);
    border-top: 1px solid rgba(255,255,255,.15);
}

#scce-input {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(0,0,0,.35);
    color: #fff;
    padding: 10px;
    resize: vertical;
}

.scce-input-meta {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#scce-send-btn {
    border: 0;
    border-radius: 999px;
    padding: 8px 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--scce-neon-pink), var(--scce-neon-blue));
    cursor: pointer;
}

/* Ticket confirm modal - city style */
.scce-ticket-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}
.scce-ticket-modal {
    background: linear-gradient(135deg, rgba(21, 21, 32, 0.98) 0%, rgba(26, 26, 46, 0.98) 100%);
    border: 2px solid rgba(0, 240, 255, 0.4);
    border-radius: 20px;
    padding: 28px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 40px rgba(255, 20, 147, 0.3), 0 0 80px rgba(0, 240, 255, 0.15);
}
.scce-ticket-modal-header {
    text-align: center;
    margin-bottom: 20px;
}
.scce-ticket-modal-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 8px;
}
.scce-ticket-modal-header h3 {
    margin: 0 0 4px;
    font-size: 20px;
    background: linear-gradient(135deg, var(--scce-neon-pink), var(--scce-neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.scce-ticket-modal-sub {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
    letter-spacing: 1px;
}
.scce-ticket-modal-body p {
    margin: 0 0 12px;
    line-height: 1.5;
}
.scce-ticket-modal-price {
    font-size: 24px !important;
    color: var(--scce-gold) !important;
}
.scce-ticket-modal-balance { font-size: 14px; opacity: 0.9; }
.scce-ticket-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}
.scce-ticket-modal-btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
}
.scce-ticket-cancel {
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
}
.scce-ticket-confirm {
    background: linear-gradient(135deg, var(--scce-neon-pink), var(--scce-neon-blue));
    color: #fff;
}

/* Crimson Veil embed: modal and model cards */
.scce-cv-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}
.scce-cv-modal {
    background: linear-gradient(135deg, rgba(21, 21, 32, 0.98), rgba(26, 26, 46, 0.98));
    border: 2px solid rgba(255, 105, 180, 0.5);
    border-radius: 16px;
    padding: 24px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 0 40px rgba(255, 105, 180, 0.25);
    color: #f0f0f0;
}
.scce-cv-modal h3 { margin: 0 0 12px; color: #ff69b4; font-size: 1.25rem; }
.scce-cv-modal p { margin: 0 0 8px; line-height: 1.5; }
.scce-cv-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}
.scce-cv-modal-cancel,
.scce-cv-modal-confirm {
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.2s ease;
}
.scce-cv-modal-cancel {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}
.scce-cv-modal-confirm {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: #fff;
}
.scce-cv-modal-confirm:hover { opacity: 0.95; }
.scce-cv-model-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 12px 0;
}
.scce-cv-model-card {
    flex: 0 0 auto;
    width: 180px;
    min-width: 180px;
    cursor: pointer;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,105,180,0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}
.scce-cv-model-card:hover {
    border-color: #ff69b4;
    box-shadow: 0 4px 16px rgba(255,105,180,0.2);
}
.scce-cv-model-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}
.scce-cv-model-info {
    padding: 10px;
    font-size: 13px;
}
.scce-cv-model-info strong { display: block; color: #ffd700; }
.scce-cv-model-info span { color: #ff69b4; }
.scce-cv-model-info p { margin: 4px 0 0; font-size: 12px; opacity: 0.9; }
.scce-cv-identity-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}
.scce-cv-identity-form label { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    color: #e0e0ff;
    font-size: 14px;
    font-weight: 500;
}
.scce-cv-identity-form select,
.scce-cv-identity-form input[type="text"] {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,105,180,0.4);
    background: rgba(21, 21, 32, 0.95);
    color: #e0e0ff;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    min-width: 150px;
}
.scce-cv-identity-form input[type="text"] {
    cursor: text;
    caret-color: #ff69b4;
}
.scce-cv-identity-form select:focus,
.scce-cv-identity-form input[type="text"]:focus {
    border-color: #ff69b4;
    background: rgba(30, 30, 45, 1);
}
/* 自定义下拉箭头 */
.scce-cv-identity-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23ff69b4' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}
.scce-cv-identity-form select option {
    background: rgba(21, 21, 32, 0.98);
    color: #e0e0ff;
}
/* 输入框占位符样式 */
.scce-cv-identity-form input[type="text"]::placeholder {
    color: rgba(224,224,255,0.5);
    opacity: 1;
}
.scce-brothel-ended {
    text-align: center;
    padding: 2rem;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    margin: 1rem 0;
}
.scce-brothel-ended #scce-ending-message { margin-bottom: 1rem; line-height: 1.6; }
.scce-back-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}
.scce-back-btn:hover { color: #fff; opacity: 0.95; }

/* ========== 深红面纱三栏布局与视觉升级（仅 .scce-app.scce-brothel） ========== */
.scce-app.scce-brothel {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.scce-app.scce-brothel .scce-grain {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scce-app.scce-brothel .scce-scanline {
    position: fixed;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.08), transparent);
    animation: scce-scanline 4s linear infinite;
}
@keyframes scce-scanline {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100vh; opacity: 0; }
}
.scce-app.scce-brothel .scce-brothel-topbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--scce-surface);
    backdrop-filter: blur(12px);
    z-index: 4;
}
.scce-app.scce-brothel .scce-brothel-topbar .scce-back {
    padding: 10px 20px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: #fff;
    border: none;
    text-decoration: none;
    font-weight: 600;
}
.scce-app.scce-brothel .scce-brothel-topbar .scce-back:hover {
    color: #fff;
    opacity: 0.95;
    border: none;
    box-shadow: 0 0 18px rgba(255, 20, 147, 0.4);
}
.scce-app.scce-brothel .scce-brothel-topbar-title {
    font-size: 14px;
    opacity: 0.85;
}
.scce-app.scce-brothel .scce-brothel-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 20% 50% 30%;
    min-height: 0;
    height: calc(100vh - 52px);
    position: relative;
    z-index: 3;
}
.scce-app.scce-brothel .scce-brothel-left,
.scce-app.scce-brothel .scce-brothel-center,
.scce-app.scce-brothel .scce-brothel-right {
    overflow: auto;
    display: flex;
    flex-direction: column;
}
.scce-app.scce-brothel .scce-brothel-left {
    padding: 12px;
    background: rgba(0, 0, 0, 0.25);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.scce-app.scce-brothel .scce-brothel-character-panel {
    flex-shrink: 0;
    height: 30%;
    min-height: 140px;
    max-height: 220px;
    overflow: hidden;
    position: relative;
}
.scce-app.scce-brothel .scce-brothel-half-body-wrap {
    width: 100%;
    height: 100%;
    position: relative;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
.scce-app.scce-brothel .scce-brothel-half-body {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.scce-app.scce-brothel .scce-brothel-status-wrap {
    flex-shrink: 0;
    margin-top: 16px;
}
.scce-app.scce-brothel .scce-brothel-service-head {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 8px;
    opacity: 0.9;
}
.scce-app.scce-brothel .scce-brothel-service-bar-vertical {
    width: 100%;
}
.scce-app.scce-brothel .scce-brothel-service-track {
    width: 100%;
    height: 10px;
    margin: 0 auto;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.scce-app.scce-brothel .scce-brothel-service-track .scce-service-fill {
    height: 100%;
    min-width: 0;
    background: linear-gradient(90deg, var(--scce-neon-blue), var(--scce-neon-purple));
    transition: width 0.35s ease;
}
.scce-app.scce-brothel .scce-brothel-phase-label {
    margin: 12px 0 4px;
    font-size: 11px;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.scce-app.scce-brothel .scce-brothel-phase-value {
    margin: 0;
    font-size: 13px;
    color: rgba(0, 240, 255, 0.95);
}
.scce-app.scce-brothel .scce-brothel-model-card {
    margin-top: 20px;
    padding: 14px;
    background: rgba(21, 21, 32, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}
.scce-app.scce-brothel .scce-brothel-model-name {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
}
.scce-app.scce-brothel .scce-brothel-model-intro {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    opacity: 0.85;
}
.scce-app.scce-brothel .scce-brothel-center {
    position: relative;
    padding: 0;
    background: transparent;
}
.scce-app.scce-brothel .scce-brothel-center .scce-chat-window {
    flex: 1;
    height: auto;
    min-height: 0;
    padding: 16px 20px 100px;
    overflow-y: auto;
}
.scce-app.scce-brothel .scce-msg {
    max-width: 85%;
    padding: 12px 14px;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    -webkit-clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    background: rgba(12, 12, 24, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.15), 0 8px 24px rgba(0, 0, 0, 0.25);
}
.scce-app.scce-brothel .scce-msg.user {
    margin-left: auto;
    margin-right: 0;
    background: rgba(255, 20, 147, 0.08);
    box-shadow: 0 0 0 1px rgba(255, 20, 147, 0.2), 0 8px 24px rgba(0, 0, 0, 0.2);
}
.scce-app.scce-brothel .scce-msg.assistant {
    margin-right: auto;
    margin-left: 0;
}
.scce-app.scce-brothel .scce-msg.system {
    margin-left: auto;
    margin-right: auto;
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25), 0 8px 24px rgba(0, 0, 0, 0.2);
}
.scce-app.scce-brothel .scce-brothel-input-wrap {
    position: absolute;
    bottom: 16px;
    left: 20px;
    right: 20px;
    flex-shrink: 0;
    padding: 14px;
    border-radius: 16px;
    background: rgba(21, 21, 32, 0.88);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 5;
}
.scce-app.scce-brothel .scce-brothel-ended {
    display: none;
}
.scce-app.scce-brothel .scce-brothel-ended:not([hidden]) {
    display: flex;
    position: absolute;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 6;
}
.scce-app.scce-brothel .scce-brothel-ended-hint {
    margin: 1rem 0 0;
    font-size: 13px;
    opacity: 0.75;
}
.scce-app.scce-brothel .scce-brothel-right {
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.scce-app.scce-brothel .scce-brothel-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex-shrink: 0;
}
.scce-app.scce-brothel .scce-brothel-gallery-slot {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.4);
}
.scce-app.scce-brothel .scce-brothel-gallery-inner {
    width: 100%;
    height: 100%;
    position: relative;
}
.scce-app.scce-brothel .scce-brothel-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.scce-app.scce-brothel .scce-brothel-gallery-slot.locked .scce-brothel-gallery-inner {
    filter: blur(12px);
}
.scce-app.scce-brothel .scce-brothel-gallery-slot.locked .scce-brothel-gallery-lock {
    display: flex;
}
.scce-app.scce-brothel .scce-brothel-gallery-lock {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    font-size: 28px;
}
.scce-app.scce-brothel .scce-brothel-gallery-slot.unlocked:hover {
    animation: scce-gallery-pulse 1.5s ease-in-out infinite;
}
@keyframes scce-gallery-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.2); }
    50% { box-shadow: 0 0 20px 4px rgba(0, 240, 255, 0.35); }
}
.scce-app.scce-brothel .scce-brothel-memories {
    margin-top: 16px;
    flex: 1;
    min-height: 0;
}
.scce-app.scce-brothel .scce-brothel-memories-title {
    margin: 0 0 8px;
    font-size: 13px;
    opacity: 0.9;
}
.scce-app.scce-brothel .scce-brothel-memories-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.85;
}
.scce-app.scce-brothel .scce-brothel-memories-placeholder {
    opacity: 0.6;
    font-style: italic;
}
.scce-app.scce-brothel #scce-chat-window::-webkit-scrollbar {
    width: 4px;
}
.scce-app.scce-brothel #scce-chat-window::-webkit-scrollbar-track {
    background: transparent;
}
.scce-app.scce-brothel #scce-chat-window::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.2);
    border-radius: 4px;
}
.scce-app.scce-brothel #scce-chat-window::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.4);
}
.scce-app.scce-brothel #scce-chat-window {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 240, 255, 0.3) transparent;
}

