* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
    position: relative;
}

.back-btn {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.title {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.main-content {
    padding: 40px 30px;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.day-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.day-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.day-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.day-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.day-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.day-number {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 10px;
}

.day-title {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 15px;
}

.day-desc {
    font-size: 1.1em;
    opacity: 0.95;
    line-height: 1.6;
}

.day-icon {
    font-size: 4em;
    margin-top: 20px;
}

.tips-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 16px;
}

.tips-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #667eea;
}

.tips-list {
    list-style: none;
}

.tips-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    border-bottom: 1px solid #e9ecef;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list li::before {
    content: "✨";
    position: absolute;
    left: 0;
}

.day-guide {
    background: #fff3cd;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid #ffc107;
}

.guide-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #856404;
}

.guide-text {
    color: #856404;
    line-height: 1.8;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.tarot-card, .card-display {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
}

.tarot-card:hover {
    transform: scale(1.05);
}

.card-number {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 15px;
}

.card-name {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.card-feature {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 10px;
}

.card-keyword {
    font-size: 1.1em;
    font-weight: 600;
    color: #667eea;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 200px;
    margin: 0 auto 15px;
}

.card-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.card-image-large {
    width: 100%;
    max-width: 250px;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.tarot-card .card-number {
    position: absolute;
    top: -10px;
    right: -10px;
}

.card-display .card-image-wrapper {
    max-width: 250px;
}

.practice-area {
    max-width: 700px;
    margin: 0 auto;
}

.exercise-section {
    margin-top: 30px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
}

.exercise-title {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: #667eea;
}

.exercise-item {
    margin-bottom: 20px;
}

.exercise-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #555;
}

.exercise-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1em;
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.exercise-input:focus {
    outline: none;
    border-color: #667eea;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.btn {
    padding: 15px 40px;
    font-size: 1.1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.four-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.method-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-top: 4px solid #667eea;
}

.method-1 { border-top-color: #e74c3c; }
.method-2 { border-top-color: #f39c12; }
.method-3 { border-top-color: #27ae60; }
.method-4 { border-top-color: #2980b9; }

.method-title {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #333;
}

.method-list {
    list-style: none;
}

.method-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.95em;
}

.method-list li:last-child {
    border-bottom: none;
}

.suit-wands { color: #e74c3c; font-weight: 600; }
.suit-cups { color: #2980b9; font-weight: 600; }
.suit-swords { color: #7f8c8d; font-weight: 600; }
.suit-pentacles { color: #f39c12; font-weight: 600; }

.case-title {
    font-size: 1.6em;
    margin-bottom: 25px;
    color: #667eea;
}

.case-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.case-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.case-header {
    font-size: 1.15em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.case-content {
    color: #555;
}

.case-step {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.case-step:last-of-type {
    border-bottom: none;
}

.step-num {
    display: inline-block;
    background: #667eea;
    color: white;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    font-size: 0.85em;
    font-weight: 700;
    margin-right: 10px;
}

.case-result {
    margin-top: 15px;
    padding: 15px;
    background: #e7f3ff;
    border-radius: 8px;
    border-left: 3px solid #2196f3;
}

.case-card-inner {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.case-card-image {
    flex-shrink: 0;
    text-align: center;
    position: relative;
}

.case-image {
    width: 150px;
    height: 210px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.case-card-name {
    margin-top: 10px;
    font-weight: 700;
    color: #333;
}

.case-card-keyword {
    font-size: 0.9em;
    color: #667eea;
    font-weight: 600;
}

.case-card-reversed {
    display: inline-block;
    margin-top: 5px;
    padding: 3px 10px;
    background: #dc3545;
    color: white;
    font-size: 0.8em;
    border-radius: 12px;
}

.footer {
    background: #f8f9fa;
    padding: 30px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.next-page-btn, .prev-page-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s;
}

.next-page-btn:hover, .prev-page-btn:hover {
    transform: translateY(-2px);
}

.finish-text {
    font-size: 1.3em;
    color: #667eea;
    font-weight: 600;
}

@media (max-width: 768px) {
    .title {
        font-size: 1.8em;
    }

    .day-card {
        padding: 30px 20px;
    }

    .back-btn {
        position: static;
        transform: none;
        display: inline-block;
        margin-bottom: 20px;
    }

    .footer {
        flex-direction: column;
    }

    .case-card-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .case-image {
        width: 120px;
        height: 168px;
    }
}