/* 기본 리셋 및 폰트 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Malgun Gothic', '맑은 고딕', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0c1445 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
    position: relative;
    overflow-x: hidden;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 별빛 효과 */
.stars, .stars2, .stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
    width: 3px;
    height: 3px;
}

.star::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.8);
}

.star-small {
    width: 2px;
    height: 2px;
}

.star-tiny {
    width: 1px;
    height: 1px;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* 화면 전환 */
.screen {
    display: none;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
}

.screen.active {
    display: flex;
}

.container {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* 헤더 스타일 */
header {
    margin-bottom: 40px;
}

header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
}

.subtitle {
    font-size: 16px;
    color: #7f8c8d;
    font-weight: 400;
    margin-top: 10px;
    word-break: keep-all;
    overflow-wrap: break-word;
    line-height: 1.6;
}

/* 메뉴 그리드 */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.menu-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 0 30px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.menu-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.menu-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
}

.menu-card p {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 카드 영역 */
.card-area {
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    border: 2px solid #667eea;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.1);
}

/* 말씀 카드 스타일 */
.verse-card {
    width: 100%;
    max-width: 550px;
    text-align: center;
    padding: 50px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2), 0 0 0 3px rgba(102, 126, 234, 0.1);
    position: relative;
    animation: cardAppear 0.6s ease-out;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-decoration-top,
.card-decoration-bottom {
    font-size: 24px;
    opacity: 0.6;
    animation: twinkle 2s ease-in-out infinite;
    position: absolute;
}

.card-decoration-top {
    top: 15px;
    left: 20px;
}

.card-decoration-bottom {
    bottom: 15px;
    right: 20px;
}

.quote-icon {
    font-size: 80px;
    color: #667eea;
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
    position: absolute;
    font-weight: bold;
}

.quote-left {
    top: 20px;
    left: 20px;
    transform: rotate(-10deg);
}

.quote-right {
    bottom: 20px;
    right: 20px;
    transform: rotate(10deg);
}

.verse-text {
    font-size: 22px;
    line-height: 2;
    color: #2c3e50;
    margin: 30px 0 40px 0;
    word-break: keep-all;
    overflow-wrap: break-word;
    font-weight: 500;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.verse-reference {
    font-size: 18px;
    color: #667eea;
    font-weight: 700;
    font-style: italic;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px dashed rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
}

.verse-reference::before {
    content: '—';
    margin-right: 10px;
    color: #667eea;
    opacity: 0.5;
}

/* 콘텐츠 영역 */
.content-area {
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    border: 2px solid #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.1);
}

.coming-soon {
    font-size: 18px;
    color: #7f8c8d;
    font-style: italic;
}

/* MBTI 테스트 스타일 */
.mbti-question-container {
    width: 100%;
    max-width: 600px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.question-number {
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.mbti-question {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.5;
    word-break: keep-all;
}

.mbti-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mbti-option-btn {
    width: 100%;
    padding: 20px 30px;
    font-size: 18px;
    font-weight: 500;
    color: #2c3e50;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    word-break: keep-all;
}

.mbti-option-btn:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.mbti-option-btn:active {
    transform: translateY(0);
}

/* MBTI 결과 스타일 */
.mbti-result-container {
    width: 100%;
    max-width: 600px;
    text-align: center;
    animation: fadeIn 0.6s ease-in;
}

.result-title {
    font-size: 20px;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-weight: 500;
}

.character-illustration {
    margin-bottom: 25px;
    animation: characterAppear 0.8s ease-out;
}

@keyframes characterAppear {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.character-emoji {
    font-size: 120px;
    display: inline-block;
    filter: drop-shadow(0 4px 15px rgba(102, 126, 234, 0.3));
    animation: float 3s ease-in-out infinite;
}

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

.character-name {
    font-size: 36px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

.mbti-type-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.character-description {
    font-size: 18px;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 30px;
    word-break: keep-all;
    padding: 0 20px;
}

.character-verse {
    margin-top: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 15px;
    border: 2px dashed rgba(102, 126, 234, 0.3);
}

.verse-label {
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.verse-text-small {
    font-size: 16px;
    line-height: 1.8;
    color: #2c3e50;
    font-style: italic;
    word-break: keep-all;
}

/* 성경퀴즈 스타일 */
.quiz-question-container {
    width: 100%;
    max-width: 600px;
    animation: fadeIn 0.5s ease-in;
}

.quiz-question {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.5;
    word-break: keep-all;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.quiz-option-btn {
    width: 100%;
    padding: 20px 30px;
    font-size: 18px;
    font-weight: 500;
    color: #2c3e50;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    word-break: keep-all;
}

.quiz-option-btn:hover:not(:disabled) {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.quiz-option-btn:disabled {
    cursor: not-allowed;
}

.quiz-option-btn.correct-option {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    color: white;
    border-color: #51cf66;
}

.quiz-option-btn.incorrect-option {
    background: linear-gradient(135deg, #ff6b6b 0%, #fa5252 100%);
    color: white;
    border-color: #ff6b6b;
}

.quiz-result-message {
    margin-top: 30px;
    padding: 30px 25px;
    border-radius: 20px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    animation: resultAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quiz-result-message::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

.quiz-result-message.correct {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    color: #2e7d32;
    border: 2px solid rgba(46, 125, 50, 0.2);
}

.quiz-result-message.correct::after {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    animation: twinkle 2s infinite;
}

.quiz-result-message.incorrect {
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4e9 100%);
    color: #c2185b;
    border: 2px solid rgba(194, 24, 91, 0.15);
}

.quiz-result-message.incorrect::after {
    content: '💫';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    animation: float 2s ease-in-out infinite;
}

@keyframes resultAppear {
    0% {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

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

.correct-answer {
    margin-top: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.correct-answer span {
    color: #4caf50;
    font-size: 20px;
    animation: checkMark 0.5s ease-out;
}

@keyframes checkMark {
    0% {
        transform: scale(0) rotate(-45deg);
    }
    50% {
        transform: scale(1.2) rotate(0deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.verse-reference {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.verse-text-quiz {
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    font-style: italic;
    line-height: 1.6;
    word-break: keep-all;
    margin-bottom: 8px;
}

.verse-ref {
    font-size: 15px;
    font-weight: 600;
    color: #667eea;
}

.quiz-result-container {
    width: 100%;
    max-width: 600px;
    text-align: center;
    animation: fadeIn 0.6s ease-in;
}

.quiz-score {
    margin: 40px 0;
}

.score-number {
    font-size: 48px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.score-percentage {
    font-size: 32px;
    font-weight: 600;
    color: #764ba2;
    margin-bottom: 30px;
}

.score-message {
    font-size: 20px;
    line-height: 1.8;
    color: #2c3e50;
    word-break: keep-all;
    padding: 0 20px;
}

/* 버튼 영역 */
.button-area {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.draw-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4), 0 0 20px rgba(102, 126, 234, 0.2);
    font-family: inherit;
}

.draw-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6), 0 0 30px rgba(102, 126, 234, 0.3);
}

.draw-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4), 0 0 15px rgba(102, 126, 234, 0.2);
}

.draw-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.back-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4), 0 0 20px rgba(102, 126, 234, 0.2);
    font-family: inherit;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6), 0 0 30px rgba(102, 126, 234, 0.3);
}

.back-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4), 0 0 15px rgba(102, 126, 234, 0.2);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }
    
    header h1 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .menu-card {
        padding: 30px 20px;
    }
    
    .menu-icon {
        font-size: 50px;
    }
    
    .menu-card h2 {
        font-size: 20px;
    }
    
    .card-area,
    .content-area {
        min-height: 250px;
        padding: 20px;
    }
    
    .verse-card {
        padding: 40px 30px;
        max-width: 100%;
    }
    
    .quote-icon {
        font-size: 60px;
    }
    
    .quote-left {
        top: 15px;
        left: 15px;
    }
    
    .quote-right {
        bottom: 15px;
        right: 15px;
    }
    
    .verse-text {
        font-size: 18px;
        line-height: 1.7;
        padding: 0 15px;
    }
    
    .verse-reference {
        font-size: 14px;
    }
    
    .card-decoration-top,
    .card-decoration-bottom {
        font-size: 20px;
    }
    
    .draw-btn,
    .back-btn {
        padding: 15px 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 20px;
    }
    
    .subtitle {
        font-size: 13px;
    }
    
    .menu-card {
        padding: 25px 15px;
    }
    
    .menu-icon {
        font-size: 45px;
    }
    
    .menu-card h2 {
        font-size: 18px;
    }
    
    .card-area,
    .content-area {
        min-height: 200px;
    }
    
    .verse-card {
        padding: 30px 20px;
    }
    
    .quote-icon {
        font-size: 50px;
    }
    
    .quote-left {
        top: 10px;
        left: 10px;
    }
    
    .quote-right {
        bottom: 10px;
        right: 10px;
    }
    
    .verse-text {
        font-size: 16px;
        line-height: 1.6;
        padding: 0 10px;
        margin: 20px 0 30px 0;
    }
    
    .verse-reference {
        font-size: 13px;
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .card-decoration-top,
    .card-decoration-bottom {
        font-size: 18px;
    }
    
    .mbti-question {
        font-size: 20px;
    }
    
    .mbti-option-btn {
        padding: 18px 25px;
        font-size: 16px;
    }
    
    .character-emoji {
        font-size: 100px;
    }
    
    .character-name {
        font-size: 28px;
    }
    
    .character-description {
        font-size: 16px;
    }
    
    .quiz-question {
        font-size: 20px;
    }
    
    .quiz-option-btn {
        padding: 18px 25px;
        font-size: 17px;
    }
    
    .quiz-result-message {
        font-size: 20px;
    }
    
    .score-number {
        font-size: 40px;
    }
    
    .score-percentage {
        font-size: 28px;
    }
    
    .score-message {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 20px;
    }
    
    .subtitle {
        font-size: 13px;
    }
    
    .menu-card {
        padding: 25px 15px;
    }
    
    .menu-icon {
        font-size: 45px;
    }
    
    .menu-card h2 {
        font-size: 18px;
    }
    
    .card-area,
    .content-area {
        min-height: 200px;
    }
    
    .verse-card {
        padding: 30px 20px;
    }
    
    .quote-icon {
        font-size: 50px;
    }
    
    .quote-left {
        top: 10px;
        left: 10px;
    }
    
    .quote-right {
        bottom: 10px;
        right: 10px;
    }
    
    .verse-text {
        font-size: 16px;
        line-height: 1.6;
        padding: 0 10px;
        margin: 20px 0 30px 0;
    }
    
    .verse-reference {
        font-size: 13px;
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .card-decoration-top,
    .card-decoration-bottom {
        font-size: 18px;
    }
    
    .quiz-question {
        font-size: 18px;
    }
    
    .quiz-option-btn {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .quiz-result-message {
        font-size: 18px;
    }
    
    .score-number {
        font-size: 32px;
    }
    
    .score-percentage {
        font-size: 22px;
    }
    
    .score-message {
        font-size: 16px;
    }
}

/* 하루묵상 스타일 */
.meditation-keyword-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-in;
}

.meditation-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

.meditation-subtitle {
    font-size: 16px;
    color: #667eea;
    margin-bottom: 30px;
    font-weight: 600;
}

.keyword-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.keyword-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.keyword-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
}

.keyword-btn:active {
    transform: translateY(-2px);
}

.keyword-emoji {
    font-size: 40px;
    display: block;
}

.keyword-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

@media (max-width: 768px) {
    .keyword-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .keyword-btn {
        padding: 18px 12px;
    }
    
    .keyword-emoji {
        font-size: 35px;
    }
    
    .keyword-name {
        font-size: 14px;
    }
    
    .meditation-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .keyword-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .keyword-btn {
        padding: 15px 10px;
    }
    
    .keyword-emoji {
        font-size: 30px;
    }
    
    .keyword-name {
        font-size: 13px;
    }
    
    .meditation-title {
        font-size: 18px;
    }
    
    .meditation-subtitle {
        font-size: 14px;
    }
}

/* 하루묵상 말씀 표시 스타일 */
.meditation-verse-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-in;
}

.keyword-selected {
    text-align: center;
    margin-bottom: 30px;
}

.keyword-emoji-large {
    font-size: 60px;
    display: block;
    margin-bottom: 15px;
    animation: float 2s ease-in-out infinite;
}

.keyword-name-large {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.verse-card-meditation {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    padding: 35px 30px;
    margin: 30px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.verse-card-meditation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

.verse-text-meditation {
    font-size: 20px;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 25px;
    word-break: keep-all;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.verse-reference-meditation {
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
    text-align: center;
    font-style: italic;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.verse-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(102, 126, 234, 0.3), transparent);
    margin: 25px 0;
    position: relative;
    z-index: 1;
}

.meditation-message {
    font-size: 17px;
    font-weight: 500;
    color: #2c3e50;
    text-align: center;
    line-height: 1.6;
    word-break: keep-all;
    position: relative;
    z-index: 1;
    padding-top: 10px;
}

.back-to-keywords-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0;
    display: block;
}

.back-to-keywords-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.back-to-keywords-btn:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .keyword-emoji-large {
        font-size: 50px;
    }
    
    .keyword-name-large {
        font-size: 24px;
    }
    
    .verse-card-meditation {
        padding: 30px 25px;
    }
    
    .verse-text-meditation {
        font-size: 18px;
        line-height: 1.7;
    }
    
    .verse-reference-meditation {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .keyword-emoji-large {
        font-size: 45px;
    }
    
    .keyword-name-large {
        font-size: 22px;
    }
    
    .verse-card-meditation {
        padding: 25px 20px;
    }
    
    .verse-text-meditation {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .verse-reference-meditation {
        font-size: 14px;
    }
    
    .back-to-keywords-btn {
        padding: 12px 25px;
        font-size: 15px;
    }
}

