@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Outfit:wght@400;600;800&family=Noto+Sans+KR:wght@300;500;700&display=swap');

:root {
    --bg-dark: #090d16;
    --bg-panel: rgba(17, 24, 39, 0.7);
    --gold: #f59e0b;
    --gold-glow: rgba(245, 158, 11, 0.4);
    --text-light: #f3f4f6;
    --text-muted: #9ca3af;
    --border-glass: rgba(255, 255, 255, 0.08);
    --kakaopay-yellow: #fee500;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Noto Sans KR', 'Inter', sans-serif;
    -webkit-user-select: none;
    user-select: none;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
        url('assets/bg_china.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-light);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Base Glass Container */
.app-container {
    width: 100%;
    max-width: 1280px;
    height: 95vh;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    display: grid;
    grid-template-columns: 420px 1fr;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

@media (max-width: 960px) {
    .app-container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        height: 100vh;
        border-radius: 0;
    }
}

/* Left Clicker Panel */
.clicker-panel {
    border-right: 1px solid var(--border-glass);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 8, 15, 0.5);
    position: relative;
}

.clicker-header {
    width: 100%;
    text-align: center;
}

.clicker-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 30%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.clicker-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.avatar-container {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.avatar-glow {
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    animation: pulseGlow 3s infinite alternate;
    pointer-events: none;
}

.clicker-img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    transition: transform 0.05s ease-out;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
}

.clicker-img.bounce {
    transform: scale(0.9) translateY(5px);
}

.click-instruction {
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 1px;
    animation: floatHint 2s infinite ease-in-out;
    opacity: 0.8;
}

.clicker-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.mute-btn, .reset-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.mute-btn:hover, .reset-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

/* Right Content Dashboard */
.dashboard-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.resource-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-glass);
}

.resource-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
}

.resource-card .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.resource-card .value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
}

.resource-card.gold-res .value {
    color: var(--gold);
}

.resource-card.gems-res .value {
    color: #60a5fa;
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    gap: 6px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.01);
    border-bottom: 1px solid var(--border-glass);
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: #0f172a;
    background: var(--gold);
    box-shadow: 0 4px 12px var(--gold-glow);
}

/* Tab Contents */
.tab-viewport {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.tab-content {
    display: none;
    height: 100%;
}

.tab-content.active {
    display: block;
}

/* Custom Scrollbars */
.tab-viewport::-webkit-scrollbar {
    width: 6px;
}
.tab-viewport::-webkit-scrollbar-track {
    background: transparent;
}
.tab-viewport::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Glassmorphism Styles */
.premium-glass {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Upgrade Tab */
.upgrade-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.upgrade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.upgrade-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.upgrade-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.upgrade-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.upgrade-info .cost {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 600;
}

.buy-btn {
    background: linear-gradient(135deg, var(--gold) 0%, #d97706 100%);
    border: none;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.buy-btn:hover:not(.disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--gold-glow);
}

.buy-btn.disabled, .buy-btn:disabled {
    background: #374151;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Conquest Tab */
.conquest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.province-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s;
}

.province-card.conquered {
    border: 1px solid rgba(34, 197, 94, 0.4);
    background: rgba(22, 163, 74, 0.05);
}

.prov-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.prov-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
}

.conquer-cost {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
}

.status-conquered {
    font-size: 0.8rem;
    color: #4ade80;
    font-weight: 600;
}

.prov-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
    flex-grow: 1;
}

.prov-bonus {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.prov-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

/* Gacha Tab */
.gacha-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.gacha-btn {
    height: 60px;
    font-size: 1rem;
    line-height: 1.2;
}

.gacha-btn small {
    font-size: 0.75rem;
    font-weight: 400;
}

.general-pool {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.general-card {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s;
}

.general-card.locked {
    opacity: 0.4;
}

.gen-avatar-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
}

.gen-avatar {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.gen-avatar-locked {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-muted);
}

.gen-grade-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #0f172a;
    padding: 2px 6px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.general-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.general-card .gen-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.general-card .gen-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-bottom: 8px;
    height: 50px;
    overflow: hidden;
}

.general-card .gen-gold-yield {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
}

/* Stories & Skins */
.story-skins-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.skins-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.skin-item {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 16px;
}

.skin-item.active {
    border: 1px solid var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
}

.skin-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.skin-info {
    flex: 1;
}

.skin-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.skin-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.skin-info .skin-bonus {
    font-size: 0.75rem;
    font-weight: 600;
}

.stories-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.story-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.story-item.locked {
    opacity: 0.5;
}

.story-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.story-item .story-condition {
    font-size: 0.8rem;
}

/* Shop Tab */
.shop-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.shop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
}

.shop-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.shop-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.buy-btn.kpay-trigger {
    background: linear-gradient(135deg, var(--kakaopay-yellow) 0%, #e6cf00 100%);
    color: #3c3c3c;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* KakaoPay Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.kakaopay-modal {
    width: 380px;
    background: #f6f6f6;
    border-radius: 20px;
    overflow: hidden;
    color: #333;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .kakaopay-modal {
    transform: scale(1);
}

.kp-header {
    background: var(--kakaopay-yellow);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
}

.kp-logo {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    color: #1e1e1e;
}

.kp-logo span {
    font-weight: 300;
}

.kp-close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #1e1e1e;
}

.kp-content {
    padding: 24px;
}

.kp-order-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
}

.kp-order-label {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 4px;
}

.kp-order-name {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.kp-order-desc {
    font-size: 0.8rem;
    color: #666;
}

.kp-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed #e5e5e5;
    margin-top: 12px;
    padding-top: 12px;
}

.kp-price-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.kp-order-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ff3b30;
}

.kp-qr-mock {
    width: 140px;
    height: 140px;
    background: white;
    margin: 0 auto 20px auto;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.kp-qr-mock::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background-image: linear-gradient(45deg, #000 25%, transparent 25%), 
                      linear-gradient(-45deg, #000 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, #000 75%), 
                      linear-gradient(-45deg, transparent 75%, #000 75%);
    background-size: 16px 16px;
    opacity: 0.8;
}

.kp-confirm-btn {
    width: 100%;
    background: #1e1e1e;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.kp-confirm-btn:hover {
    background: #333;
}

.kp-confirm-btn::before {
    content: '💛';
}

.kp-notice {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
    margin-top: 16px;
    line-height: 1.4;
}

/* Loading & Success States in pay */
.kp-loading-screen, .kp-success-screen {
    text-align: center;
    padding: 40px 0;
}

.kp-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--kakaopay-yellow);
    border-radius: 50%;
    margin: 0 auto 20px auto;
    animation: spin 1s infinite linear;
}

.kp-success-check {
    width: 60px;
    height: 60px;
    background: #34c759;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    color: white;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 10px rgba(52, 199, 89, 0.3);
}

/* Visual Novel Dialogue Overlay */
.dialogue-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 50px;
}

.dialogue-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.dialogue-stage {
    position: absolute;
    bottom: 240px;
    width: 100%;
    max-width: 960px;
    height: 380px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.dialog-char {
    width: 280px;
    height: 100%;
    background-size: contain;
    background-position: bottom center;
    background-repeat: no-repeat;
    opacity: 0.3;
    transition: transform 0.3s, opacity 0.3s;
}

.dialog-char.active {
    opacity: 1;
    transform: scale(1.08);
}

#dialogue-character-main {
    transform: translateX(-40px);
}
#dialogue-character-main.active {
    transform: translateX(0px) scale(1.08);
}

#dialogue-character-secondary {
    transform: translateX(40px);
}
#dialogue-character-secondary.active {
    transform: translateX(0px) scale(1.08);
}

.dialog-box {
    width: 90%;
    max-width: 900px;
    height: 160px;
    background: rgba(15, 23, 42, 0.95);
    border: 2px solid var(--gold);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    padding: 20px 24px;
    cursor: pointer;
    z-index: 95;
    position: relative;
}

.dialog-speaker {
    position: absolute;
    top: -18px;
    left: 24px;
    background: var(--gold);
    color: #0f172a;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    box-shadow: 0 4px 8px var(--gold-glow);
}

.dialog-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-top: 10px;
}

.dialog-next-hint {
    position: absolute;
    bottom: 12px;
    right: 20px;
    font-size: 0.8rem;
    color: var(--gold);
    animation: flash 1s infinite alternate;
}

/* Alert Banner */
.banner-alert {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 12px 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 110;
    transition: top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.banner-alert.active {
    top: 24px;
}

.banner-alert h3 {
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 700;
}

.banner-alert p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Floating Click Particles */
.floating-text {
    position: fixed;
    pointer-events: none;
    font-weight: 800;
    font-size: 1.4rem;
    z-index: 1000;
    animation: floatText 1s forwards ease-out;
}

.gold-particle {
    color: var(--gold);
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

/* Gacha Reveal Modal */
.gacha-reveal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.gacha-reveal-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.reveal-container {
    width: 400px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border-radius: 20px;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gacha-reveal-modal.active .reveal-container {
    transform: scale(1);
}

.reveal-flash {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    top: 0;
    left: 0;
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    animation: flashOnce 0.6s ease-out;
}

.reveal-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
}

.reveal-card-visual {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.reveal-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.reveal-grade-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 0.9rem;
    font-weight: 900;
    color: #0f172a;
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

/* Animations */
@keyframes pulseGlow {
    from { transform: scale(0.9); opacity: 0.6; }
    to { transform: scale(1.1); opacity: 1; }
}

@keyframes floatHint {
    0% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(-5px); opacity: 1; }
    100% { transform: translateY(0); opacity: 0.7; }
}

@keyframes floatText {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -150px) scale(1.2); opacity: 0; }
}

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

@keyframes flash {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

@keyframes flashOnce {
    0% { opacity: 0.8; }
    100% { opacity: 0; }
}

/* Rarity Glow Classes */
.reveal-grade-ur {
    border: 2px solid #ef4444;
    animation: urGlow 2s infinite alternate;
}

.reveal-grade-ssr {
    border: 2px solid #a855f7;
    animation: ssrGlow 2s infinite alternate;
}

@keyframes urGlow {
    0% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.3); }
    100% { box-shadow: 0 0 35px rgba(239, 68, 68, 0.8); }
}

@keyframes ssrGlow {
    0% { box-shadow: 0 0 15px rgba(168, 85, 247, 0.3); }
    100% { box-shadow: 0 0 35px rgba(168, 85, 247, 0.8); }
}

.dialog-char canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gen-avatar-canvas {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
}
