/* Style CSS - Uranai Premium Web Application */

/* ==========================================
   1. Design System & CSS Variables
   ========================================== */
:root {
    /* Cosmic Palette */
    --color-bg-deep: #060211;
    --color-bg-card: rgba(18, 10, 36, 0.55);
    --color-bg-card-hover: rgba(28, 16, 54, 0.7);
    --color-border: rgba(212, 175, 55, 0.2);
    --color-border-glow: rgba(212, 175, 55, 0.5);
    
    /* Accents & Gradients */
    --color-gold: #d4af37;
    --color-gold-bright: #ffd700;
    --color-gold-pale: #f0e68c;
    --color-text-light: #f5f2eb;
    --color-text-muted: #bdaebf;
    
    /* Luck categories */
    --color-love: #ff6584;
    --color-career: #4dabf7;
    --color-wealth: #ffd43b;

    /* Fonts */
    --font-heading: 'Cinzel', serif;
    --font-sans: 'Outfit', sans-serif;
    --font-myeongjo: 'Nanum Myeongjo', serif;

    /* Transitions & Shadows */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-mystical: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-gold-glow: 0 0 20px rgba(212, 175, 55, 0.45);
}

/* ==========================================
   2. Reset & Core Structure
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg-deep);
    color: var(--color-text-light);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-deep);
}
::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

/* ==========================================
   3. Cosmic Background (Stars, Nebula)
   ========================================== */
.stars, .twinkling, .nebula {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -1;
    pointer-events: none;
}

.stars {
    background: #000 url('https://www.script-tutorials.com/demos/360/images/stars.png') repeat top center;
    position: fixed;
}

.twinkling {
    background: transparent url('https://www.script-tutorials.com/demos/360/images/twinkling.png') repeat top center;
    position: fixed;
    animation: move-twink-back 200s linear infinite;
}

.nebula {
    position: fixed;
    background: radial-gradient(circle at 30% 20%, rgba(85, 26, 139, 0.25) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.08) 0%, transparent 35%),
                radial-gradient(circle at 50% 50%, rgba(13, 10, 48, 0.9) 0%, transparent 100%);
}

@keyframes move-twink-back {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

/* ==========================================
   4. Layout & App Container
   ========================================== */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Section */
header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.35em;
    background: linear-gradient(135deg, #fff 0%, var(--color-gold) 60%, var(--color-gold-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

.logo i {
    font-size: 1.8rem;
    color: var(--color-gold);
}

.tagline {
    font-family: var(--font-myeongjo);
    font-size: 1.05rem;
    color: var(--color-text-muted);
    letter-spacing: 0.15em;
    margin-top: 0.5rem;
}

/* Navigation Tabs */
.glass-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: 50px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-mystical);
}

.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

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

.nav-btn.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(18, 10, 36, 0.6) 100%);
    border: 1px solid var(--color-border-glow);
    color: var(--color-gold-bright);
    box-shadow: var(--shadow-gold-glow);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* ==========================================
   5. Tab Panes Configuration
   ========================================== */
.main-content {
    flex: 1;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.8s ease forwards;
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    letter-spacing: 0.15em;
    color: var(--color-gold);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.section-header p {
    font-family: var(--font-myeongjo);
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.8rem 2.2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-gold) 0%, #b28d22 100%);
    color: #060211;
    box-shadow: var(--shadow-gold-glow);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--color-gold-bright) 0%, var(--color-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

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

/* ==========================================
   6. 오늘의 타로 (Daily Tarot) Elements
   ========================================== */
.tarot-board {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 420px;
    margin-bottom: 2rem;
}

.tarot-deck {
    display: flex;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    max-width: 900px;
    perspective: 1000px; /* Crucial for 3D flip */
}

/* Tarot Card 3D Setup */
.tarot-card-wrapper {
    width: 200px;
    height: 340px;
    cursor: pointer;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tarot-card-wrapper:hover {
    transform: translateY(-25px) scale(1.05);
}

.tarot-card {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* Card states */
.tarot-card-wrapper.flipped .tarot-card {
    transform: rotateY(180deg);
}

.tarot-card-wrapper.fade-out {
    opacity: 0;
    transform: scale(0.8) translateY(50px);
    pointer-events: none;
}

.tarot-card-wrapper.selected-anim {
    transform: translate(0, -20px) scale(1.1);
    box-shadow: var(--shadow-gold-glow);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    overflow: hidden;
}

/* Back of the card */
.card-back {
    background: #0f0b20;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotateY(0deg);
}

.card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 11px;
}

/* Front of the card */
.card-front {
    background: #171131;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    padding: 12px;
    border: 2px solid var(--color-gold);
}

.card-art {
    flex: 1;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.card-info {
    text-align: center;
    padding-top: 10px;
}

.card-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-gold-bright);
    margin-bottom: 4px;
}

.card-meaning {
    font-family: var(--font-myeongjo);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Tarot Result Display */
.tarot-result-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 2, 17, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.4s ease forwards;
}

.result-glass-card {
    background: rgba(18, 10, 36, 0.7);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    animation: slideUp 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-btn:hover {
    color: var(--color-gold-bright);
    transform: rotate(90deg);
}

.result-flex-container {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.result-card-display {
    width: 260px;
    height: 440px;
    perspective: 1000px;
    flex-shrink: 0;
}

.result-card-3d {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-gold-glow);
    border: 3px solid var(--color-gold);
    overflow: hidden;
}

.result-card-front {
    width: 100%;
    height: 100%;
}

.result-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.result-card-type {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--color-gold-bright);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.result-card-name {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.result-card-summary {
    font-family: var(--font-myeongjo);
    font-size: 1.1rem;
    color: var(--color-gold-pale);
    margin-bottom: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
}

/* Luck Scores */
.luck-scores {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.score-label {
    width: 120px;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.text-love { color: var(--color-love); }
.text-career { color: var(--color-career); }
.text-wealth { color: var(--color-wealth); }

.score-bar {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    border-radius: 5px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.fill-love { background: linear-gradient(90deg, #ff6584, #f06292); }
.fill-career { background: linear-gradient(90deg, #4dabf7, #339af0); }
.fill-wealth { background: linear-gradient(90deg, #ffd43b, #fcc419); }

.score-num {
    width: 45px;
    text-align: right;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Advice Block */
.advice-block {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--color-gold);
    padding: 1.2rem;
    border-radius: 0 10px 10px 0;
    margin-bottom: 2rem;
}

.advice-block h4 {
    font-family: var(--font-sans);
    color: var(--color-gold-bright);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.advice-block p {
    font-family: var(--font-myeongjo);
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

.text-gold { color: var(--color-gold); }

/* ==========================================
   7. 별자리 & 띠별 운세 (Horoscope) Elements
   ========================================== */
.horoscope-subtabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.subtab-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.subtab-btn:hover {
    color: #fff;
}

.subtab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 2px;
    background: var(--color-gold);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.subtab-btn.active {
    color: var(--color-gold-bright);
}

.subtab-btn.active::after {
    transform: scaleX(1);
}

/* Horoscope Grid */
.horoscope-grid {
    display: none;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto 3rem auto;
    animation: fadeIn 0.6s ease forwards;
}

.horoscope-grid.active {
    display: grid;
}

.h-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 15px;
    padding: 1.2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.h-item:hover {
    background: var(--color-bg-card-hover);
    transform: translateY(-8px);
    border-color: var(--color-border-glow);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}

.h-item i {
    font-size: 1.8rem;
    color: var(--color-gold);
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
}

.h-item:hover i {
    color: var(--color-gold-bright);
    transform: scale(1.15);
}

.h-name {
    font-size: 0.95rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.h-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Horoscope Result Card */
.horoscope-result-card {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2.2rem;
    box-shadow: var(--shadow-mystical);
    animation: slideUp 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.h-result-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1.2rem;
}

.h-result-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--color-gold-bright);
    box-shadow: var(--shadow-gold-glow);
}

.h-result-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
}

.h-result-date {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.h-result-body {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.h-result-content {
    font-family: var(--font-myeongjo);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

.lucky-items {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lucky-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    text-align: center;
}

.lucky-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.lucky-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.lucky-value {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-gold-pale);
}

/* ==========================================
   8. 마법의 수정구슬 (Crystal Ball) Elements
   ========================================== */
.crystal-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    max-width: 600px;
    margin: 0 auto;
}

.crystal-input-container {
    width: 100%;
    position: relative;
}

#crystal-question {
    width: 100%;
    background: rgba(18, 10, 36, 0.6);
    border: 1px solid var(--color-border);
    color: #fff;
    font-family: var(--font-myeongjo);
    font-size: 1.1rem;
    padding: 1.2rem 1.8rem;
    border-radius: 50px;
    outline: none;
    text-align: center;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
}

#crystal-question:focus {
    border-color: var(--color-gold-bright);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3), inset 0 2px 10px rgba(0,0,0,0.5);
}

#crystal-question::placeholder {
    color: var(--color-text-muted);
    opacity: 0.6;
}

.crystal-display {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.crystal-ball-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crystal-ball-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Glowing Crystal Ball Aura */
.crystal-aura {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.6) 0%, rgba(59, 130, 246, 0.3) 50%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    animation: crystal-pulse 3s ease-in-out infinite;
}

.crystal-ball-wrapper:hover .crystal-ball-img {
    transform: scale(1.05) rotate(5deg);
}

.crystal-ball-wrapper:hover .crystal-aura {
    background: radial-gradient(circle, rgba(147, 51, 234, 0.8) 0%, rgba(236, 72, 153, 0.4) 50%, transparent 70%);
    animation: crystal-pulse-active 1.5s ease-in-out infinite;
}

/* Crystal ball loading animation */
.crystal-ball-wrapper.mystical-loading .crystal-ball-img {
    animation: spin-mystical 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.crystal-ball-wrapper.mystical-loading .crystal-aura {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.9) 0%, rgba(251, 146, 60, 0.6) 50%, transparent 70%);
    animation: crystal-pulse-active 0.6s ease-in-out infinite;
}

@keyframes crystal-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.95; }
}

@keyframes crystal-pulse-active {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; filter: hue-rotate(90deg); }
}

@keyframes spin-mystical {
    0% { transform: scale(1.05) rotate(0deg); }
    100% { transform: scale(1.05) rotate(360deg); }
}

/* Crystal ball response */
.crystal-response-area {
    width: 100%;
    animation: slideUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.response-glass {
    background: rgba(18, 10, 36, 0.6);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-mystical);
}

.mystical-preface {
    font-size: 0.85rem;
    color: var(--color-gold);
    font-weight: 500;
    margin-bottom: 0.8rem;
    letter-spacing: 0.1em;
}

.mystical-answer {
    font-family: var(--font-myeongjo);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.8;
}

/* ==========================================
   9. Footer Styling
   ========================================== */
footer {
    text-align: center;
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.footer-note {
    font-family: var(--font-myeongjo);
    font-size: 0.75rem !important;
    opacity: 0.6;
}

/* ==========================================
   10. Keyframe Animations & Utilities
   ========================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.hidden {
    display: none !important;
}

/* Spin and Pulse Logo Icons */
.cosmic-spin {
    animation: spin 20s linear infinite;
}

.cosmic-pulse {
    animation: pulse 4s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* ==========================================
   11. Responsive Layout (Mobile Devices)
   ========================================== */
@media (max-width: 992px) {
    .tarot-deck {
        gap: 1.5rem;
    }
    
    .tarot-card-wrapper {
        width: 170px;
        height: 290px;
    }
    
    .result-flex-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .result-card-display {
        width: 200px;
        height: 340px;
    }
    
    .score-label {
        width: 100px;
    }
    
    .horoscope-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .logo-title {
        font-size: 2.2rem;
    }
    
    .glass-nav {
        flex-wrap: wrap;
        border-radius: 20px;
        gap: 0.5rem;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1.2rem;
    }
    
    .tarot-deck {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .tarot-card-wrapper {
        width: 200px;
        height: 340px;
    }
    
    .horoscope-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .lucky-items {
        flex-direction: column;
        gap: 1rem;
    }
    
    .lucky-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 0.8rem;
    }
}

@media (max-width: 480px) {
    .horoscope-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .result-glass-card {
        padding: 1.5rem;
    }
    
    .result-card-name {
        font-size: 1.8rem;
    }
    
    .crystal-ball-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .crystal-aura {
        width: 140px;
        height: 140px;
    }
}
