/* ============================================
   ИГРА САМОПОЗНАНИЕ - Стили
   ============================================ */

.self-knowledge-game {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0a0e17 0%, #1a1f2e 50%, #0d1117 100%);
    overflow: hidden;
    z-index: 100;
}

/* Звёздный фон */
.self-knowledge-game::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(168,85,247,0.4), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.2), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(99,102,241,0.3), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.25), transparent);
    background-size: 200px 200px;
    animation: skStars 100s linear infinite;
    pointer-events: none;
}

@keyframes skStars {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

/* Свечение по центру */
.self-knowledge-game::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: skCenterGlow 4s ease-in-out infinite;
}

@keyframes skCenterGlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* ============================================
   ПРИВЕТСТВЕННЫЙ ЭКРАН
   ============================================ */
.sk-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    text-align: center;
    animation: skFadeIn 1s ease-out;
    position: relative;
    z-index: 1;
}

.sk-welcome-back {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 16px;
    font-size: 14px;
    color: #a5b4fc;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sk-welcome-back:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #a855f7;
    color: #fff;
}

@keyframes skFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.sk-master-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.sk-master-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: skPulse 2s ease-in-out infinite;
}

@keyframes skPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
}

.sk-master-icon {
    font-size: 64px;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.8));
}

.sk-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 12px 0;
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}

.sk-subtitle {
    font-size: 20px;
    color: #c4b5fd;
    margin: 0 0 24px 0;
    font-weight: 500;
}

.sk-intro-text {
    max-width: 400px;
    margin-bottom: 32px;
}

.sk-intro-text p {
    color: #a5b4fc;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.sk-name-input {
    width: 100%;
    max-width: 280px;
    padding: 12px 16px;
    font-size: 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(165, 180, 252, 0.3);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
}

.sk-name-input::placeholder {
    color: rgba(165, 180, 252, 0.5);
}

.sk-name-input:focus {
    border-color: #7c3aed;
    background: rgba(124, 58, 237, 0.15);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
}

.sk-hidden-text {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease, margin 0.5s ease;
    margin-top: 0;
}

.sk-hidden-text.visible {
    max-height: 200px;
    opacity: 1;
    margin-top: 20px;
}

.sk-hidden-text p {
    color: #a5b4fc;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.sk-start-btn {
    position: relative;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.sk-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6);
}

.sk-btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
    animation: skShine 3s infinite;
}

@keyframes skShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* ============================================
   ОСНОВНОЙ ИНТЕРФЕЙС
   ============================================ */
.sk-main {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px;
    position: relative;
    z-index: 1;
}

/* Заголовок с кнопкой выхода */
.sk-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sk-exit-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #a5b4fc;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sk-exit-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

.sk-header-title {
    font-size: 16px;
    font-weight: 600;
    color: #c4b5fd;
    margin: 0;
}

.sk-header-spacer {
    width: 36px;
}

.sk-progress-bar {
    position: relative;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.sk-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #a855f7, #c084fc);
    border-radius: 16px;
    width: 0%;
    transition: width 0.5s ease;
}

.sk-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ============================================
   КАРУСЕЛЬ ТРЕУГОЛЬНИКОВ
   ============================================ */
.sk-carousel-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.sk-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 12px 0;
    z-index: 10;
}

.sk-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sk-dot.active {
    background: #a855f7;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

.sk-dot:hover {
    background: rgba(168, 85, 247, 0.6);
}

.sk-carousel {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.sk-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.sk-carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.sk-triangle-single {
    position: relative;
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sk-triangle-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    text-align: center;
}

.sk-triangle-desc {
    font-size: 13px;
    color: #a5b4fc;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.4;
}

.sk-triangle-svg-big {
    width: 100%;
    max-width: 260px;
    height: auto;
}

.sk-triangle-shape-big {
    stroke: rgba(168, 85, 247, 0.4);
    stroke-width: 2;
    transition: all 0.3s ease;
}

.sk-slots-container {
    position: absolute;
    top: 67%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 291px;
    height: 274px;
}

.sk-slot {
    position: absolute;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    border: 2px dashed rgba(168, 85, 247, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sk-slot:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
    transform: scale(1.1);
}

.sk-slot.active {
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border: none;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.7);
    animation: skSlotPulse 1.5s ease-in-out infinite;
}

.sk-slot.filled {
    color: #fff;
    background: linear-gradient(135deg, #10b981, #34d399);
    border: none;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.sk-slot.locked {
    opacity: 0.4;
    cursor: not-allowed;
}

@keyframes skSlotPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(168, 85, 247, 0.5); transform: scale(1); }
    50% { box-shadow: 0 0 30px rgba(168, 85, 247, 0.8); transform: scale(1.05); }
}

/* Позиции слотов в треугольнике (6 позиций) */
.sk-slot:nth-child(1) { top: 5%; left: 50%; transform: translateX(-50%); }
.sk-slot:nth-child(2) { top: 35%; left: 25%; }
.sk-slot:nth-child(3) { top: 35%; right: 25%; }
.sk-slot:nth-child(4) { top: 65%; left: 10%; }
.sk-slot:nth-child(5) { top: 65%; left: 50%; transform: translateX(-50%); }
.sk-slot:nth-child(6) { top: 65%; right: 10%; }

/* Кнопка Способности под треугольником */
.sk-abilities-btn {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    transition: all 0.3s ease;
    z-index: 10;
}

.sk-abilities-btn:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
}

/* Модалка способностей */
.sk-abilities-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.sk-abilities-content {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 20px;
    padding: 25px;
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.sk-abilities-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sk-abilities-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.sk-abilities-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sk-abilities-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sk-abilities-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sk-ability-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    border-left: 3px solid #a855f7;
}

.sk-ability-arcana {
    font-size: 12px;
    color: #a855f7;
    margin-bottom: 5px;
    font-weight: 600;
}

.sk-ability-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.sk-abilities-motivation {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(168, 85, 247, 0.1));
    border-radius: 15px;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.sk-abilities-motivation h4 {
    font-size: 16px;
    color: #a855f7;
    margin-bottom: 10px;
}

.sk-abilities-motivation p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.sk-loading-dots {
    color: rgba(255, 255, 255, 0.5);
}

.sk-loading-dots::after {
    content: '';
    animation: skLoadingDots 1.5s infinite;
}

@keyframes skLoadingDots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

/* Стрелки навигации */
.sk-carousel-arrow {
    position: absolute;
    top: 59%;
    transform: translateY(-50%);
    /* width: 44px; */
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* font-size: 20px;
    font-weight: 600; */
    color: #fff;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.6), rgba(168, 85, 247, 0.4));
    border: 2px solid rgba(168, 85, 247, 0.5);
    /* border-radius: 50%; */
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    backdrop-filter: blur(8px);
}

.sk-arrow-left { left: 8px; }
.sk-arrow-right { right: 8px; }

.sk-carousel-arrow:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.8), rgba(192, 132, 252, 0.6));
    border-color: #c084fc;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(168, 85, 247, 0.5);
}

.sk-carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.sk-swipe-hint {
    text-align: center;
    padding: 8px;
    color: rgba(165, 180, 252, 0.5);
    font-size: 12px;
    animation: skSwipeHint 2s ease-in-out infinite;
}

@keyframes skSwipeHint {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes skSlotFill {
    0% { transform: scale(0) rotate(-180deg); }
    50% { transform: scale(1.3) rotate(0deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Анимация перелёта аркана в слот */
.sk-arcana-flying {
    position: fixed !important;
    z-index: 500;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.sk-arcana-flying.animate {
    transform: scale(0.5);
}

/* Вспышка при попадании в слот */
.sk-slot-flash {
    animation: skSlotFlash 0.5s ease-out;
}

@keyframes skSlotFlash {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8); }
    50% { box-shadow: 0 0 30px 15px rgba(16, 185, 129, 0.6); }
    100% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.5); }
}

/* Линии соединения между слотами */
.sk-triangle-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.sk-connection-line {
    stroke: rgba(168, 85, 247, 0.2);
    stroke-width: 1;
    fill: none;
    transition: all 0.5s ease;
}

.sk-connection-line.active {
    stroke: rgba(16, 185, 129, 0.6);
    stroke-width: 2;
    filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.5));
}

/* Позиции слотов в треугольнике */
.sk-slot:nth-child(1) { top: 15%; left: 50%; transform: translateX(-50%); }
.sk-slot:nth-child(2) { top: 40%; left: 30%; }
.sk-slot:nth-child(3) { top: 40%; right: 30%; }
.sk-slot:nth-child(4) { top: 65%; left: 15%; }
.sk-slot:nth-child(5) { top: 65%; left: 50%; transform: translateX(-50%); }
.sk-slot:nth-child(6) { top: 65%; right: 15%; }

/* ============================================
   АКТИВНЫЙ АРКАН
   ============================================ */
.sk-active-arcana {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    animation: skFadeIn 0.3s ease;
}

.sk-arcana-card {
    position: relative;
    width: 280px;
    padding: 40px 30px;
    background: linear-gradient(145deg, #1e1b4b, #312e81);
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.4);
    animation: skCardAppear 0.5s ease-out;
}

@keyframes skCardAppear {
    from { transform: scale(0.8) translateY(50px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.sk-arcana-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #7c3aed, #a855f7, #c084fc, #7c3aed);
    border-radius: 26px;
    z-index: -1;
    animation: skGlowRotate 3s linear infinite;
    background-size: 300% 300%;
}

@keyframes skGlowRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.sk-arcana-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

.sk-arcana-name {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.sk-arcana-triangle {
    font-size: 14px;
    color: #a5b4fc;
    margin-bottom: 12px;
}

.sk-arcana-desc {
    font-size: 13px;
    color: #c4b5fd;
    line-height: 1.5;
    margin-bottom: 20px;
}

.sk-arcana-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #a5b4fc;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sk-arcana-close:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.sk-arcana-start-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #10b981, #34d399);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sk-arcana-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* ============================================
   АРТЕФАКТЫ
   ============================================ */
.sk-artifacts-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-top: 16px;
    overflow-x: auto;
}

.sk-artifacts-label {
    font-size: 13px;
    font-weight: 600;
    color: #a5b4fc;
    white-space: nowrap;
}

.sk-artifacts-list {
    display: flex;
    gap: 8px;
}

.sk-artifact-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
    animation: skArtifactAppear 0.5s ease-out;
}

@keyframes skArtifactAppear {
    from { transform: scale(0) rotate(-180deg); }
    to { transform: scale(1) rotate(0deg); }
}

/* ============================================
   ЧАТ С АРКАНОМ
   ============================================ */
.sk-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(180deg, #1e1b4b 0%, #0f0d1a 100%);
}

.sk-chat-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(124, 58, 237, 0.2);
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
}

.sk-chat-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sk-chat-back:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sk-chat-arcana-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sk-chat-arcana-num {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-radius: 50%;
}

.sk-chat-arcana-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.sk-chat-progress {
    font-size: 14px;
    color: #a5b4fc;
    font-weight: 500;
}

.sk-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sk-chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.5;
    animation: skMessageAppear 0.3s ease-out;
}

@keyframes skMessageAppear {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sk-chat-message.arcana {
    align-self: flex-start;
    background: linear-gradient(135deg, #312e81, #4c1d95);
    color: #e0e7ff;
    border-bottom-left-radius: 4px;
}

.sk-chat-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* Форматирование текста в сообщениях */
.sk-chat-message p {
    margin: 0 0 14px 0;
    line-height: 1.6;
}

.sk-chat-message p:last-child {
    margin-bottom: 0;
}

.sk-chat-message strong {
    font-weight: 700;
    color: #fbbf24;
    display: inline;
}

.sk-chat-message em {
    font-style: italic;
    opacity: 0.9;
}

.sk-chat-message.user strong {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Варианты выбора А) и Б) */
.sk-chat-message br + br {
    display: block;
    content: '';
    margin-top: 8px;
}

.sk-chat-message.typing {
    display: flex;
    gap: 4px;
    padding: 16px 20px;
}

.sk-chat-message.typing span {
    width: 8px;
    height: 8px;
    background: #a5b4fc;
    border-radius: 50%;
    animation: skTyping 1.4s infinite;
}

.sk-chat-message.typing span:nth-child(2) { animation-delay: 0.2s; }
.sk-chat-message.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes skTyping {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

.sk-chat-input-container {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(168, 85, 247, 0.2);
}

.sk-chat-input {
    flex: 1;
    min-height: 48px;
    max-height: 120px;
    padding: 12px 16px;
    font-size: 15px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    resize: none;
    outline: none;
    transition: all 0.2s ease;
}

.sk-chat-input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.sk-chat-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.sk-chat-send {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sk-chat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.sk-chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Кнопка получения награды */
.sk-reward-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: skPulseReward 2s infinite;
}

.sk-reward-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

@keyframes skPulseReward {
    0%, 100% { box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 8px 30px rgba(245, 158, 11, 0.7); }
}

/* ============================================
   МОДАЛКА НАГРАДЫ
   ============================================ */
.sk-reward-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
}

.sk-reward-content {
    position: relative;
    width: 320px;
    padding: 20px 20px;
    background: linear-gradient(145deg, #1e1b4b, #312e81);
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.5);
    animation: skRewardAppear 0.6s ease-out;
    overflow: hidden;
}

@keyframes skRewardAppear {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.sk-reward-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.sk-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: skParticle 1.5s ease-out forwards;
}

@keyframes skParticle {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-200px) scale(0); opacity: 0; }
}

.sk-reward-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: skBounce 0.6s ease-out;
}

@keyframes skBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.sk-reward-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.sk-reward-arcana {
    font-size: 18px;
    color: #a5b4fc;
    margin: 0 0 24px 0;
}

.sk-reward-artifact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    margin-bottom: 20px;
}

.sk-artifact-icon {
    font-size: 32px;
}

.sk-artifact-name {
    font-size: 16px;
    font-weight: 600;
    color: #fbbf24;
}

.sk-reward-task {
    font-size: 14px;
    color: #c4b5fd;
    line-height: 1.5;
    margin: 0 0 24px 0;
    padding: 12px;
    background: rgba(124, 58, 237, 0.2);
    border-radius: 8px;
}

.sk-reward-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sk-reward-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

/* ============================================
   ЭКРАН ЗАВЕРШЕНИЯ ИГРЫ
   ============================================ */
.sk-complete {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 30px;
    text-align: center;
    animation: skFadeIn 1s ease-out;
}

.sk-complete-icon {
    font-size: 80px;
    margin-bottom: 24px;
    animation: skBounce 1s ease-out infinite;
}

.sk-complete-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 16px 0;
}

.sk-complete-text {
    font-size: 16px;
    color: #c4b5fd;
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.sk-complete-artifacts {
    margin: 24px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
}

.sk-complete-artifacts p {
    color: #a5b4fc;
    font-size: 14px;
    margin: 0 0 16px 0;
}

.sk-complete-artifacts .sk-artifacts-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 480px) {
    .sk-title {
        font-size: 26px;
    }
    
    .sk-triangles {
        width: 280px;
        height: 280px;
    }
    
    .sk-triangle {
        width: 120px;
        height: 108px;
    }
    
    .sk-slot {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .sk-bg-arcana-item {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .sk-cooldown-notice {
        font-size: 11px;
        padding: 6px 10px;
    }
}

/* ============================================
   COOLDOWN СИСТЕМА - 48 часов
   ============================================ */

/* Badge на кнопке навигации */
.sk-nav-badge {
    position: absolute;
    top: 2px;
    right: 50%;
    transform: translateX(12px);
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: skBadgePulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

@keyframes skBadgePulse {
    0%, 100% { transform: translateX(12px) scale(1); }
    50% { transform: translateX(12px) scale(1.15); }
}

/* Countdown под кнопкой навигации */
.sk-nav-countdown {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.2);
    padding: 1px 6px;
    border-radius: 6px;
    font-weight: 600;
    font-family: monospace;
    white-space: nowrap;
}

/* Уведомление о cooldown в карусели */
.sk-cooldown-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    padding: 10px 16px;
    margin: 0 20px 12px 20px;
    color: #c4b5fd;
    font-size: 13px;
    text-align: center;
    animation: skNoticeGlow 3s ease-in-out infinite;
}

.sk-cooldown-notice strong {
    color: #a5b4fc;
    font-family: monospace;
    font-size: 14px;
}

.sk-notice-icon {
    font-size: 16px;
}

@keyframes skNoticeGlow {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(168, 85, 247, 0.1);
        border-color: rgba(168, 85, 247, 0.3);
    }
    50% { 
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
        border-color: rgba(168, 85, 247, 0.5);
    }
}

/* Указатель для cooldown notice (кликабельный) */
.sk-cooldown-notice {
    cursor: pointer;
    transition: all 0.2s ease;
}

.sk-cooldown-notice:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.2));
    transform: scale(1.02);
}

.sk-cooldown-notice:active {
    transform: scale(0.98);
}

/* ============================================
   МОДАЛКА ПОСЛЕДНЕЙ ПРАКТИКИ
   ============================================ */

.sk-practice-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 23, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
    animation: skFadeIn 0.3s ease-out;
}

.sk-practice-content {
    background: linear-gradient(135deg, #1a1f2e 0%, #0d1117 100%);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 20px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(168, 85, 247, 0.15);
    animation: skSlideUp 0.3s ease-out;
}

@keyframes skSlideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.sk-practice-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #a5b4fc;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sk-practice-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.sk-practice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.sk-practice-arcana {
    font-size: 18px;
    font-weight: 700;
    color: #a855f7;
}

.sk-practice-triangle {
    font-size: 12px;
    color: #a5b4fc;
    background: rgba(168, 85, 247, 0.15);
    padding: 4px 10px;
    border-radius: 12px;
}

.sk-practice-title {
    font-size: 14px;
    color: #fbbf24;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sk-practice-title::before {
    content: '✨';
}

.sk-practice-text {
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.7;
}

.sk-practice-text p {
    margin: 0 0 12px 0;
}

.sk-practice-text p:last-child {
    margin-bottom: 0;
}

.sk-practice-text strong {
    color: #fbbf24;
}
