/* ===========================
   LUCK PAGE STYLES
   ========================== */

/* Hero Section */
.luck-hero {
    background: linear-gradient(135deg, #0a0a12 0%, #16213e 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.luck-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(201, 169, 89, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 115, 85, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.luck-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.luck-hero-icon {
    font-size: 4rem;
    color: #e2c87d;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.luck-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #e2c87d;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.luck-hero-subtitle {
    font-family: 'Spectral', serif;
    font-size: 1.3rem;
    color: #c0b8a0;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.fortune-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    color: #8b7355;
}

.info-label {
    color: #8b7355;
}

.info-value {
    color: #c9a959;
    font-weight: 600;
}

.info-divider {
    color: #5a5a6a;
}

/* Fortune Machine Section */
.fortune-machine-section {
    padding: 60px 0;
    background: #0c0c14;
}

/* Контейнер как slide-container в макете: фон #080a10, крестики поверх, плашка по центру (чуть уменьшен) */
.fortune-machine-container {
    max-width: 1100px;
    min-height: 520px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #080a10;
    overflow: hidden;
}

/* Texture Pattern for background — как в макете, крестики за плашкой */
.bg-texture {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a1a24' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* The Main Strip Card — 1:1 с макетом, размер чуть уменьшен (пропорции 1000:380) */
.business-card-strip {
    width: 900px;
    height: 342px;
    background-color: #121218;
    border: 1px solid #3d352b;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Inner Frame of the Card — как в макете (отступ пропорционален размеру плашки 900/1000) */
.card-inner-frame {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    bottom: 14px;
    border: 1px solid rgba(139, 115, 85, 0.2);
    pointer-events: none;
    z-index: 2;
}

/* SVG Art Container — как в макете */
.art-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Subtle noise overlay for paper feel — как в макете */
.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 20;
}

/* Vertical Lines Decoration — как в макете, без z-index */
.vertical-grid {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    pointer-events: none;
    opacity: 0.05;
}

.v-line {
    width: 1px;
    height: 100%;
    background-color: #8b7355;
}

/* Sun Container */
.fortune-sun-container {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.fortune-sun-svg {
    display: block;
}

/* Slots Container */
.slots-container {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.slots-row {
    display: flex;
    gap: 20px;
    position: relative;
}

.slot-item {
    width: 80px;
    height: 120px;
    background: rgba(8, 10, 16, 0.8);
    border: 2px solid #3d352b;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.slot-reel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.symbol-frame {
    width: 80px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.symbol-frame svg {
    width: 50px;
    height: 80px;
}

.slots-indicator {
    position: absolute;
    top: 50%;
    left: -10px;
    right: -10px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 20;
}

.indicator-line {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #e2c87d 50%, transparent 100%);
    box-shadow: 0 0 10px rgba(226, 200, 125, 0.5);
}

/* Decorative Dots */
.fortune-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.deco-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #8b7355;
    border-radius: 50%;
    opacity: 0.6;
}

/* Fortune Controls */
.fortune-controls {
    max-width: 1000px;
    margin: 30px auto 0;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fortune-btn {
    background: linear-gradient(135deg, #3d352b 0%, #2a2520 100%);
    border: 1px solid #8b7355;
    color: #c9a959;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.fortune-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4a4035 0%, #352d27 100%);
    box-shadow: 0 4px 15px rgba(201, 169, 89, 0.2);
    transform: translateY(-2px);
}

.fortune-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-icon {
    font-size: 1.1rem;
}

.fortune-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: #8b7355;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c9a959;
    animation: pulse 2s ease-in-out infinite;
}

.status-dot.complete {
    background: #4ade80;
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 5px rgba(201, 169, 89, 0.5); }
    50% { opacity: 0.5; box-shadow: 0 0 15px rgba(201, 169, 89, 0.8); }
}

/* Symbols Section */
.symbols-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #0c0c14 0%, #080a10 100%);
}

.symbols-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.symbols-header {
    text-align: center;
    margin-bottom: 60px;
}

.symbols-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #e2c87d;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.symbols-subtitle {
    font-family: 'Spectral', serif;
    font-size: 1.1rem;
    color: #8b7355;
}

.symbols-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.symbol-card {
    background: rgba(18, 18, 24, 0.6);
    border: 1px solid #3d352b;
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.symbol-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #c9a959 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.symbol-card:hover {
    background: rgba(18, 18, 24, 0.9);
    border-color: #8b7355;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.symbol-card:hover::before {
    opacity: 1;
}

.symbol-icon-container {
    width: 100px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 10, 16, 0.5);
    border: 1px solid #3d352b;
    border-radius: 8px;
}

.symbol-display {
    width: 80px;
    height: 80px;
}

.symbol-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #3d352b;
}

.symbol-name {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: #c9a959;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.symbol-kanji {
    font-size: 0.9rem;
    color: #8b7355;
    font-weight: 400;
}

.symbol-text {
    font-family: 'Spectral', serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #a09fa5;
    text-align: left;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .fortune-machine-container {
        max-width: 90%;
        height: 320px;
    }
    
    .fortune-sun-container {
        left: 20px;
    }
    
    .fortune-sun-svg {
        width: 140px;
        height: 140px;
    }
    
    .slots-container {
        right: 40px;
    }
    
    .slot-item {
        width: 70px;
        height: 100px;
    }
    
    .symbol-frame {
        width: 70px;
        height: 100px;
    }
    
    .symbol-frame svg {
        width: 40px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .luck-hero-title {
        font-size: 2.5rem;
    }
    
    .luck-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .fortune-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .fortune-machine-container {
        height: 280px;
    }
    
    .fortune-sun-container {
        left: 10px;
    }
    
    .fortune-sun-svg {
        width: 100px;
        height: 100px;
    }
    
    .slots-container {
        right: 20px;
    }
    
    .slots-row {
        gap: 10px;
    }
    
    .slot-item {
        width: 50px;
        height: 80px;
    }
    
    .symbol-frame {
        width: 50px;
        height: 80px;
        padding: 5px;
    }
    
    .symbol-frame svg {
        width: 30px;
        height: 50px;
    }
    
    .fortune-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .symbols-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .symbols-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .luck-hero {
        padding: 60px 0 40px;
    }
    
    .luck-hero-title {
        font-size: 2rem;
    }
    
    .fortune-machine-container {
        height: 240px;
    }
    
    .fortune-sun-svg {
        width: 80px;
        height: 80px;
    }
    
    .slot-item {
        width: 45px;
        height: 70px;
    }
    
    .symbol-frame {
        width: 45px;
        height: 70px;
    }
    
    .symbol-frame svg {
        width: 25px;
        height: 45px;
    }
}
