/* ==========================================================================
   ✨ L'ACADÉMIE DES SORTILÈGES — STYLE FÉERIQUE & MAGIQUE
   Inspiré de La Fabrique Numérique • Kids & Famille
   ========================================================================== */

:root {
    --bg-night: #100826;
    --bg-violet-dark: #1b0e3a;
    --bg-card: rgba(35, 18, 70, 0.75);
    --gold: #ffcf40;
    --gold-glow: rgba(255, 207, 64, 0.4);
    --pink-fairy: #ff7bac;
    --pink-glow: rgba(255, 123, 172, 0.4);
    --cyan-magic: #4df0ff;
    --cyan-glow: rgba(77, 240, 255, 0.4);
    --emerald: #2ecc71;
    --purple-deep: #2a164d;
    --text-light: #f7f1ff;
    --text-muted: #bfa8e6;
    --font-magic: 'Cinzel Decorative', cursive, serif;
    --font-body: 'Nunito', sans-serif;
    --font-parchment: 'Playfair Display', serif;
}

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

body {
    background: radial-gradient(circle at 50% 20%, #291254 0%, #100826 60%, #060214 100%);
    color: var(--text-light);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    user-select: none;
}

/* Canvas pour les étincelles de la baguette magique */
#sparkles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

/* ==================== HEADER ==================== */
.magic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(16, 8, 38, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(255, 207, 64, 0.25);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.wand-icon {
    font-size: 2.4rem;
    filter: drop-shadow(0 0 10px var(--gold));
    animation: wandHover 3s ease-in-out infinite alternate;
}

@keyframes wandHover {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(15deg) scale(1.1); }
}

.brand h1 {
    font-family: var(--font-magic);
    font-size: 1.3rem;
    color: var(--gold);
    letter-spacing: 1px;
    text-shadow: 0 0 12px var(--gold-glow);
}

.sub-brand {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.magic-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timer-box {
    background: rgba(42, 22, 77, 0.9);
    border: 1px solid var(--gold);
    border-radius: 30px;
    padding: 0.4rem 1rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0 15px rgba(255, 207, 64, 0.2);
}

.btn-icon {
    background: rgba(60, 30, 110, 0.8);
    border: 1px solid var(--pink-fairy);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--pink-fairy);
    box-shadow: 0 0 15px var(--pink-glow);
    transform: translateY(-2px);
}

.fairy-btn {
    border-color: var(--cyan-magic);
}

.fairy-btn:hover {
    background: var(--cyan-magic);
    color: #0c0728;
    box-shadow: 0 0 15px var(--cyan-glow);
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
}

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

/* ==================== TRACKER (5 SALLES) ==================== */
.quest-tracker {
    display: flex;
    justify-content: center;
    background: rgba(20, 10, 48, 0.9);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 1rem;
    overflow-x: auto;
}

.quest-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.quest-step.active {
    background: linear-gradient(135deg, var(--gold), #ff9e22);
    color: #1a0933;
    font-weight: 800;
    box-shadow: 0 0 15px var(--gold-glow);
}

.quest-step.completed {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

/* ==================== GAME ROOMS & GENERAL LAYOUT ==================== */
#game-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.game-room {
    display: none;
    animation: fadeIn 0.6s ease forwards;
}

.game-room.active {
    display: block;
}

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

.room-wrapper {
    background: var(--bg-card);
    border: 2px solid rgba(255, 207, 64, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 207, 64, 0.15);
    backdrop-filter: blur(15px);
}

.room-tag {
    display: inline-block;
    background: rgba(255, 207, 64, 0.15);
    color: var(--gold);
    font-weight: 800;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.room-story h3 {
    font-family: var(--font-magic);
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 0.6rem;
    text-shadow: 0 0 10px var(--gold-glow);
}

.room-story p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Boutons Magiques Universels */
.btn-magic {
    background: linear-gradient(135deg, var(--gold) 0%, #ff8c00 100%);
    color: #1a0933;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1rem;
    border: none;
    border-radius: 25px;
    padding: 0.8rem 1.6rem;
    cursor: pointer;
    box-shadow: 0 5px 20px var(--gold-glow);
    transition: all 0.3s ease;
}

.btn-magic:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 207, 64, 0.6);
}

.btn-next-room {
    background: linear-gradient(135deg, #2ecc71, #1abc9c);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    border: none;
    border-radius: 30px;
    padding: 1rem 2rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(46, 204, 113, 0.4);
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    width: 100%;
}

.btn-next-room:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(46, 204, 113, 0.7);
}

.btn-next-room:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    box-shadow: none;
}

.feedback-msg {
    min-height: 28px;
    margin-top: 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
}

.feedback-msg.success {
    color: #2ecc71;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.feedback-msg.error {
    color: #ff6b81;
}

/* ==================== SALLE 0 : LANDING PAGE ==================== */
.landing-hero {
    background: var(--bg-card);
    border: 2px solid rgba(255, 207, 64, 0.4);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.stars-backdrop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.interactive-moon {
    font-size: 4rem;
    cursor: pointer;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 0 20px #ffd700);
}

.interactive-moon:hover {
    transform: rotate(20deg) scale(1.15);
}

.perched-owl {
    position: relative;
    font-size: 3.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.perched-owl:hover {
    transform: scale(1.2);
}

.owl-bubble {
    position: absolute;
    right: 70px;
    top: 5px;
    background: #fff;
    color: #1a0933;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: none;
}

.badge-kids {
    background: linear-gradient(135deg, var(--pink-fairy), #a855f7);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px var(--pink-glow);
}

.hero-content h2 {
    font-family: var(--font-magic);
    font-size: 2.3rem;
    color: var(--gold);
    margin-bottom: 1rem;
    text-shadow: 0 0 15px var(--gold-glow);
}

.story-intro, .story-mission {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: #f0e6ff;
}

.interactive-landing-secrets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin: 2rem 0;
}

.secret-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 207, 64, 0.2);
    border-radius: 18px;
    padding: 1.2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secret-card:hover {
    background: rgba(255, 207, 64, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.secret-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.spell-box {
    margin: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.spell-box input {
    flex: 1;
    min-width: 250px;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    border: 2px solid var(--gold);
    background: rgba(16, 8, 38, 0.8);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
}

.spell-box input:focus {
    outline: none;
    box-shadow: 0 0 15px var(--gold-glow);
}

.btn-cta-large {
    background: linear-gradient(135deg, var(--gold) 0%, #ff5e36 100%);
    color: #1a0933;
    font-family: var(--font-magic);
    font-size: 1.3rem;
    font-weight: 800;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 35px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 207, 64, 0.5);
    transition: all 0.3s ease;
    width: 100%;
}

.btn-cta-large:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(255, 94, 54, 0.6);
}

/* ==================== SALLE 1 : LUCIOLES MUSICALES ==================== */
.simon-fairies-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.simon-fairy {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fairy-avatar {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 10px transparent);
    transition: all 0.3s ease;
}

.fairy-name {
    font-weight: 700;
    font-size: 1rem;
}

.simon-fairy.active-glow {
    transform: scale(1.08);
}

.simon-fairy[data-color="pink"].active-glow {
    background: rgba(255, 123, 172, 0.3);
    border-color: var(--pink-fairy);
    box-shadow: 0 0 25px var(--pink-fairy);
}
.simon-fairy[data-color="cyan"].active-glow {
    background: rgba(77, 240, 255, 0.3);
    border-color: var(--cyan-magic);
    box-shadow: 0 0 25px var(--cyan-magic);
}
.simon-fairy[data-color="gold"].active-glow {
    background: rgba(255, 207, 64, 0.3);
    border-color: var(--gold);
    box-shadow: 0 0 25px var(--gold);
}
.simon-fairy[data-color="emerald"].active-glow {
    background: rgba(46, 204, 113, 0.3);
    border-color: var(--emerald);
    box-shadow: 0 0 25px var(--emerald);
}

.simon-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
}

/* ==================== SALLE 2 : CHAUDRON DE LA SORCIÈRE ==================== */
.scroll-riddle {
    background: #fffae8;
    color: #3b2816;
    font-family: var(--font-parchment);
    font-size: 1.25rem;
    line-height: 1.7;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 2px dashed #b38647;
    box-shadow: inset 0 0 20px rgba(179, 134, 71, 0.3);
    margin-bottom: 2rem;
}

.cauldron-game {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.cauldron-display {
    position: relative;
    text-align: center;
}

.cauldron-pot {
    font-size: 7rem;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.5));
    animation: potFloat 4s ease-in-out infinite alternate;
}

@keyframes potFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

.cauldron-liquid {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 40px;
    background: radial-gradient(circle, #ff7bac, #8a2be2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px #ff7bac;
}

.cauldron-bubbles {
    font-size: 1.2rem;
    animation: bubbleWobble 1s infinite alternate;
}

@keyframes bubbleWobble {
    0% { transform: scale(0.9); }
    100% { transform: scale(1.15); }
}

.cauldron-stats {
    margin-top: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    font-size: 1rem;
}

.ingredients-rack {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.ingredient-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.8rem 1.4rem;
    border-radius: 20px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.ingredient-btn:hover {
    background: rgba(255, 207, 64, 0.2);
    border-color: var(--gold);
    transform: translateX(5px);
}

.ingredient-trap:hover {
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.2);
}

.cauldron-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* ==================== SALLE 3 : PONT ARC-EN-CIEL ==================== */
.unicorn-stage {
    text-align: center;
    margin: 1.5rem 0;
}

.unicorn-mascot {
    font-size: 5rem;
    animation: unicornTrot 2.5s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.8));
}

@keyframes unicornTrot {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-12px) rotate(4deg); }
}

.rainbow-bridge {
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 1.5rem 0;
    overflow: hidden;
    position: relative;
}

.rainbow-beam {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff2244, #ff7700, #ffdd00, #22dd44, #0088ff, #3322bb, #8811ee);
    transition: width 0.6s ease;
    box-shadow: 0 0 20px #fff;
}

.color-gems-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.gem-btn {
    background: var(--c);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    border: none;
    border-radius: 20px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.gem-btn:hover {
    transform: scale(1.1);
}

.current-selection-box {
    text-align: center;
    margin: 1rem 0;
    font-size: 1.1rem;
    color: var(--gold);
    font-weight: 700;
}

.rainbow-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ==================== SALLE 4 : CONSTELLATION PÉGASE ==================== */
.constellation-sandbox {
    background: radial-gradient(circle, #1a0f3d 0%, #08031a 100%);
    border: 2px solid rgba(255, 207, 64, 0.3);
    border-radius: 20px;
    height: 380px;
    position: relative;
    margin: 1.5rem 0;
    overflow: hidden;
}

.sky-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.celestial-star {
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: 2.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    filter: drop-shadow(0 0 10px var(--gold));
    z-index: 5;
}

.celestial-star:hover {
    transform: translate(-50%, -50%) scale(1.3);
}

.celestial-star.linked {
    filter: drop-shadow(0 0 25px var(--cyan-magic));
}

.star-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    white-space: nowrap;
}

.constellation-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.constellation-controls {
    text-align: center;
    margin-top: 1rem;
}

.hint-small {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* ==================== SALLE 5 : L'ARBRE SACRÉ ==================== */
.tree-sanctuary {
    text-align: center;
    margin: 2rem 0;
}

.sacred-tree-art {
    font-size: 8rem;
    filter: drop-shadow(0 0 30px #2ecc71);
    animation: treePulse 3s ease-in-out infinite alternate;
}

@keyframes treePulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 20px #2ecc71); }
    100% { transform: scale(1.05); filter: drop-shadow(0 0 40px var(--gold)); }
}

.relics-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
    margin: 2rem 0;
}

.relic-slot {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 207, 64, 0.4);
    border-radius: 18px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.4s ease;
}

.relic-slot.unlocked {
    background: rgba(255, 207, 64, 0.15);
    border: 2px solid var(--gold);
    box-shadow: 0 0 20px var(--gold-glow);
}

.slot-symbol {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.slot-name {
    font-weight: 800;
    display: block;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.slot-status {
    font-size: 0.85rem;
    color: var(--emerald);
    font-weight: 700;
}

.ultimate-moral-choice {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.ultimate-moral-choice h4 {
    font-family: var(--font-magic);
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.choice-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.8rem;
}

.choice-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.choice-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.choice-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.choice-card h5 {
    font-family: var(--font-magic);
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 0.8rem;
}

.choice-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e2d9f3;
    margin-bottom: 1.5rem;
}

/* ==================== MODALES ==================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 2, 20, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1.5rem;
}

.modal-backdrop.hidden {
    display: none;
}

.modal-card {
    background: #1b0e3a;
    border: 2px solid var(--gold);
    border-radius: 28px;
    padding: 2.5rem;
    max-width: 650px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px var(--gold-glow);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.mini-card {
    max-width: 450px;
}

.crown-icon, .fairy-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 0.8rem;
}

.modal-card h2 {
    font-family: var(--font-magic);
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.victory-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.parchment-diploma {
    background: #fffdf5;
    color: #2b1d0c;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.5rem;
}

.diploma-border {
    border: 2px solid #c59b27;
    border-radius: 12px;
    padding: 1.2rem;
}

.diploma-border h3 {
    font-family: var(--font-magic);
    font-size: 1.2rem;
    color: #a87915;
    margin-bottom: 0.5rem;
}

.diploma-border p {
    font-family: var(--font-parchment);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.diploma-signature {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    font-weight: 700;
    font-style: italic;
    color: #7a5813;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.toast-hidden {
    display: none;
    margin-top: 1rem;
    color: #2ecc71;
    font-weight: 700;
}

/* ==================== FOOTER ==================== */
.magic-footer {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 3rem;
}

/* Language Switcher */
.lang-switch-btn { background: rgba(255, 105, 180, 0.2); color: #ff69b4; border: 1.5px solid #ff69b4; padding: 6px 14px; border-radius: 20px; text-decoration: none; font-weight: 700; font-family: 'Nunito', sans-serif; font-size: 0.9rem; transition: all 0.25s ease; display: inline-flex; align-items: center; justify-content: center; }
.lang-switch-btn:hover { background: #ff69b4; color: #fff; box-shadow: 0 0 15px rgba(255, 105, 180, 0.6); transform: scale(1.05); }

