:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

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

/* Header Styles */
.header {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.user-session {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.emoji {
    font-size: 2.5rem;
}

.youtube-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #ff0000;
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.youtube-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: #cc0000;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(79, 70, 229, 0.16);
    border-radius: 999px;
    font-weight: 700;
}

.logout-btn,
.password-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger-color);
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn:hover {
    transform: translateY(-2px);
    background: rgba(239, 68, 68, 0.12);
    box-shadow: var(--shadow-sm);
}

.password-btn {
    border-color: rgba(79, 70, 229, 0.2);
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary-color);
}

.password-btn:hover {
    transform: translateY(-2px);
    background: rgba(79, 70, 229, 0.12);
    box-shadow: var(--shadow-sm);
}

.password-form {
    display: grid;
    gap: 0.5rem;
}

.password-form label {
    font-weight: 700;
    color: var(--text-primary);
}

.password-form input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.password-message {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger-color);
    font-weight: 700;
}

.password-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
}

/* Search Bar */
.vocabulary-selector {
    margin-bottom: 1.5rem;
}

.selector-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.vocabulary-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.vocabulary-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.vocabulary-select option {
    padding: 0.5rem;
}

.search-bar {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.2s;
    background: var(--bg-secondary);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.clear-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.25rem;
    display: none;
    transition: color 0.2s;
}

.clear-btn:hover {
    color: var(--danger-color);
}

.clear-btn.visible {
    display: block;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Filter Section */
.filter-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--bg-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.game-start-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-md);
    margin-left: auto;
}

.game-start-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.print-vocab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-md);
    margin-left: 10px;
}

.print-vocab-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Word List */
.word-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.word-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.word-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.word-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.word-card:hover::before {
    transform: scaleX(1);
}

.word-card.learned {
    border: 2px solid var(--secondary-color);
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.word-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.word-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pronunciation-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.2s;
    border-radius: 50%;
    width: 28px;
    height: 28px;
}

.pronunciation-btn:hover {
    background: var(--bg-secondary);
    transform: scale(1.1);
}

.pronunciation-btn svg {
    width: 18px;
    height: 18px;
}

.learned-badge {
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.word-pronunciation {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.75rem;
}

.word-meaning {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    padding: 1rem;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--danger-color);
}

.modal-body {
    padding: 2rem;
}

.modal-word {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-word .pronunciation-btn {
    width: 40px;
    height: 40px;
}

.modal-word .pronunciation-btn svg {
    width: 24px;
    height: 24px;
}

.modal-pronunciation {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.modal-meaning {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-example {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1.5rem;
}

.modal-example p {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.modal-example p:last-child {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.toggle-learned-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--primary-color);
    color: white;
}

.toggle-learned-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.toggle-learned-btn.learned {
    background: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .header {
        padding: 1.5rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .emoji {
        font-size: 2rem;
    }

    .user-session {
        width: 100%;
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
    }

    .user-chip,
    .password-btn,
    .logout-btn {
        justify-content: center;
        width: 100%;
    }

    .word-list {
        grid-template-columns: 1fr;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-word {
        font-size: 2rem;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Game Modal Styles */
.game-modal {
    max-width: 700px;
}

.game-setup {
    text-align: center;
}

.game-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.game-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.game-options {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.option-group {
    text-align: left;
}

.option-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.game-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.game-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-primary);
}

.game-start-large-btn {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-md);
}

.game-start-large-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Game Play */
.game-play {
    animation: fadeIn 0.3s ease-in;
}

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

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.game-progress {
    font-size: 1.125rem;
    font-weight: 600;
}

.question-number {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.question-total {
    color: var(--text-secondary);
}

.game-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.score-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.game-timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--danger-color);
    min-width: 50px;
    text-align: center;
}

.question-section {
    text-align: center;
    margin-bottom: 2rem;
}

.question-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.question-text .pronunciation-btn {
    width: 36px;
    height: 36px;
}

.question-text .pronunciation-btn svg {
    width: 22px;
    height: 22px;
}

.question-hint {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
}

.answers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.answer-btn {
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.answer-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.answer-btn.correct {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    animation: correctPulse 0.5s;
}

.answer-btn.wrong {
    background: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
    animation: shake 0.5s;
}

.answer-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

@keyframes correctPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

/* Game Result */
.game-result {
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

.result-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.result-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.result-score {
    margin-bottom: 2rem;
}

.score-big {
    font-size: 4rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.score-details {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.score-details p {
    margin: 0.25rem 0;
}

.score-details span {
    font-weight: 700;
    color: var(--text-primary);
}

/* Leaderboard Form */
.leaderboard-form {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.player-name-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.player-name-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.submit-score-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    background: var(--secondary-color);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
}

.submit-score-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.retry-btn {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.retry-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Leaderboard */
.leaderboard {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.leaderboard-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.leaderboard-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.leaderboard-rank {
    font-size: 1.5rem;
    font-weight: 700;
    min-width: 40px;
}

.leaderboard-rank.gold {
    color: #fbbf24;
}

.leaderboard-rank.silver {
    color: #9ca3af;
}

.leaderboard-rank.bronze {
    color: #d97706;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-name {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.leaderboard-details {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.leaderboard-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.leaderboard-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* PDF 출력 스타일 */
.print-area {
    display: none;
}

@media print {
    body * {
        visibility: hidden;
    }
    
    #printArea, #printArea * {
        visibility: visible;
    }
    
    #printArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        display: block !important;
    }
}

.print-vocab-layout {
    font-family: 'Noto Sans KR', sans-serif;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.print-vocab-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #4A90E2;
}

.print-vocab-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #333;
}

.print-vocab-info {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.print-vocab-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.print-word-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    background: #f9f9f9;
    page-break-inside: avoid;
}

.print-word-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.print-word-en {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.print-word-pronunciation {
    font-size: 12px;
    color: #7f8c8d;
    font-style: italic;
}

.print-word-meaning {
    font-size: 14px;
    color: #34495e;
    margin: 5px 0;
    font-weight: 600;
}

.print-word-example {
    font-size: 12px;
    color: #555;
    margin-top: 5px;
    font-style: italic;
    line-height: 1.4;
}

.print-word-example-kr {
    font-size: 11px;
    color: #777;
    margin-top: 3px;
}

.print-footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 2px solid #ddd;
    text-align: center;
    font-size: 12px;
    color: #999;
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #f5f5f5;
    border-color: #999;
}

.bottom-ad-slot {
    width: min(100%, 970px);
    min-height: 90px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* 로딩 스피너 */
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* ==================== Netlify 쿠키 배너 숨김 ==================== */
/* Netlify의 쿠키 동의 배너를 완전히 숨김 */
#consent-banner,
[id*="netlify"],
[class*="netlify-banner"],
[class*="cookie-consent"],
div[style*="z-index: 999999"],
div[style*="position: fixed"][style*="bottom: 0"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 인쇄 시 Netlify 배너 숨김 */
@media print {
    #consent-banner,
    [id*="netlify"],
    [class*="netlify-banner"],
    [class*="cookie-consent"] {
        display: none !important;
    }
}
