/* ========================
   1. GLOBAL REFINEMENT
   ======================== */
:root {
    --bg-paper: #F9F7F2;      
    --bg-dark: #0f1c2e;       
    --text-dark: #0a111c;     
    --text-light: #e6e6e6;    
    --accent-gold: #D4AF37;   
    --accent-hover: #b49226;  
    /* Modern UI Tokens */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(212, 175, 55, 0.15);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

html {
    scroll-behavior: smooth; 
    background-color: #0f1c2e; 
}

body {
    background-color: var(--bg-paper);
    margin: 0;
    padding: 0;
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-dark);
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-gold);
}

/* ========================
   2. CONTENT BOX (The "Hero")
   ======================== */
.content-box {
    background-color: var(--bg-dark); 
    width: 100%;
    padding: 60px 0 40px 0; /* Increased top padding to push inner content down */
    color: var(--text-light);
    border-bottom: 4px solid var(--accent-gold);
    display: block;
    margin-top: 70px;
}

.inner-content {
    width: 85%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 40px; 
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    border-right: 1px solid rgba(212, 175, 55, 0.2);
}

/* ========================
   3. BOOKS & ART GRIDS
   ======================== */
.book-grid, .art-hub {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px; 
    padding: 40px 0;
}

.book-item, .art-folder {
    width: 300px;
    transition: transform 0.3s ease;
}

.book-item img, .folder-preview {
    width: 100%;
    border: 1px solid var(--accent-gold); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.book-item:hover { transform: translateY(-10px); }

.folder-preview {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.folder-preview img {
    width: 100%; height: 100%; object-fit: cover;
    transition: 0.5s;
}

.folder-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(15, 28, 46, 0.9); 
    padding: 15px; text-align: center;
    border-top: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}

/* ========================
   4. COMIC & READER STYLES
   ======================== */
.chapter-selection {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 15px;
    padding: 10px 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) rgba(255,255,255,0.1);
}

.chapter-selection::-webkit-scrollbar { height: 5px; }
.chapter-selection::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 10px;
}

#comic-stream img, #comic-display img {
    width: 100%;
    display: block;
    margin: 0 auto;
    opacity: 0;
    animation: comicFadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

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

/* ========================
   5. EMBEDDED READER
   ======================== */
.reader-container {
    max-width: 800px;
    margin: 0 auto;
}

.embedded-reader {
    background-color: #fff;
    color: #1a1a1a;
    height: 600px;      
    overflow-y: scroll;    
    padding: 50px; 
    border: 1px solid #ddd;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    line-height: 1.9;
    font-size: 1.35rem;
}

.embedded-reader::-webkit-scrollbar { width: 8px; }
.embedded-reader::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 4px;
}

/* RESPONSIVE FIX */
@media (max-width: 800px) {
    .footer-inner { flex-direction: column; align-items: center; gap: 40px; }
    .site-title { font-size: 3.5rem; }
}

/* ========================
   6. ADMIN DESK FOUNDATION
   ======================== */
#admin-desk {
    display: flex; 
    background-color: var(--bg-dark) !important;
}

#main-content {
    background-color: var(--bg-dark) !important;
    min-height: 100vh;
    flex: 1; 
    padding: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch; 
}

.admin-form {
    width: 100%;
    max-width: none; 
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    color: var(--text-light);
    box-sizing: border-box;
}

.vault-input {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.vault-input:focus {
    border-color: var(--accent-gold);
    outline: none;
    background: rgba(0, 0, 0, 0.4);
}

.publish-btn {
    background: var(--accent-gold);
    color: var(--bg-dark);
    border: none;
    cursor: pointer;
    font-weight: bold;
    padding: 16px;
    width: 100%;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.publish-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    background-color: var(--accent-hover);
}

.hidden { display: none !important; }

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

.admin-form:not(.hidden) {
    animation: adminFadeIn 0.5s ease-out forwards;
}

/* ========================
   7. TEACHER PORTRAIT & SPEECH BUBBLE
   ======================== */
.teacher-portrait-wrap {
    position: relative;
    width: 300px;
    height: 400px;
    margin: 30px auto;
    cursor: pointer;
    background-image: url('https://raw.githubusercontent.com/ThePaigeEdict/sg-art-vault/main/images/avatar/shared/background/classroombg.png');
    background-size: cover;
    background-position: center;
    border: 3px solid var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: visible; 
}

.portrait-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.4s ease-in-out;
    overflow: hidden;
}

.portrait-layer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hover-state {
    opacity: 0;
}

.hover-state img {
    transform: scaleX(-1); 
}

.teacher-portrait-wrap:hover .hover-state {
    opacity: 1;
}

.teacher-portrait-wrap:hover #teacher-standard {
    opacity: 0;
}

.portrait-label {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    color: var(--accent-gold);
    background: rgba(15, 28, 46, 0.8);
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 2px;
    font-weight: bold;
    margin: 0;
    padding: 5px 0;
    z-index: 10;
}

/* SPEECH BUBBLE SYSTEM */
.speech-bubble-container {
    position: absolute;
    top: 15px;      
    left: 15px;
    right: 15px;
    z-index: 1005;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
}

.speech-bubble {
    background: rgba(249, 247, 242, 0.95); 
    background-image: url('https://www.transparenttextures.com/patterns/natural-paper.png');
    color: var(--bg-dark);
    padding: 10px 15px;
    border: 2px solid var(--accent-gold);
    border-radius: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation: bubbleFloat 4s ease-in-out infinite;
    white-space: normal;
    overflow-wrap: break-word;
    max-width: 100%;
    width: 210px; 
    box-sizing: border-box;
}

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

.teacher-portrait-wrap:hover .speech-bubble-container {
    transform: scale(1.05);
}

/* ========================
   8. KIBITZ REFINEMENTS
   ======================== */
.comment-bubble {
    background: rgba(255,255,255,0.03); 
    padding: 20px; 
    border-radius: 4px; 
    border-left: 3px solid var(--accent-gold); 
    position: relative;
    display: flex;
    gap: 25px; 
    align-items: flex-start;
}

/* ========================
   9. HOME PAGE HERO & TICKER
   ======================== */

/* --- TICKER STYLING --- */
.update-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    padding: 4px 15px 4px 6px;
    text-decoration: none;
    transition: 0.3s ease;
    margin-bottom: 25px;
}
.update-pill:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--accent-gold);
    transform: translateX(5px);
}
.pill-label {
    background: var(--accent-gold);
    color: var(--bg-dark);
    font-size: 0.7rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 50px;
    margin-right: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.pill-text {
    color: var(--text-light);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    font-family: 'Cormorant Garamond', serif;
}

/* --- HERO LAYOUT --- */
.home-hero { 
    max-width: 1000px;
    margin: 40px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
}

.about-text-content { flex: 1; }

.rank-row { 
    display: flex; 
    gap: 10px; 
    margin: 20px 0; 
    justify-content: flex-start;
}

.rank-badge { 
    border: 1px solid var(--accent-gold); 
    padding: 6px 16px; 
    background: rgba(212, 175, 55, 0.1); 
    font-weight: 600; 
    color: var(--accent-gold); 
    font-size: 0.9rem; 
    letter-spacing: 2px; 
}

/* --- PATREON BUTTON --- */
.patreon-btn { 
    display: inline-block; 
    margin-top: 20px; 
    padding: 12px 24px; 
    background: #f96854; 
    color: white !important; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 1rem; 
    border-radius: 4px; 
    transition: 0.3s ease;
    font-family: 'Cormorant Garamond', serif;
}
.patreon-btn:hover { 
    background: #d85644; 
    transform: translateY(-2px); 
}

/* --- MAIN CTA BUTTON --- */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-gold);
    color: var(--bg-dark) !important;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.cta-button:hover { 
    background: white; 
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) { 
    .home-hero { flex-direction: column-reverse; text-align: center; }
    .rank-row { justify-content: center; }
}

/* ========================
   10. MODERN STUDENT PORTAL (VIEWPORT)
   ======================== */
.portal-body {
    color: var(--text-light);
}

.portal-container {
    display: block; 
    padding: 40px 0;
    margin: 0;
    min-height: 80vh;
}

/* Modern Glassmorphism Architecture */
.portal-sidebar, .stat-card, .manual-log-box {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 16px; 
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.student-rank-badge {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 25px;
}

.rank-name {
    font-size: 3rem; 
    font-weight: bold;
    color: var(--accent-gold);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Refined Accuracy Panel */
.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px; 
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
}

.stat-value {
    color: var(--accent-gold);
    font-weight: 700;
}

/* Sensei's Directive Box (Modern Parchment) */
.sensei-task-box {
    background-color: var(--bg-paper);
    background-image: url('https://www.transparenttextures.com/patterns/natural-paper.png');
    color: var(--text-dark);
    padding: 30px;
    border-radius: 16px;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

/* Quest Lists within Parchment */
.quest-list { list-style: none; padding: 0; margin: 15px 0; }
.quest-item { 
    padding: 10px 0; 
    border-bottom: 1px solid rgba(0,0,0,0.1); 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    color: var(--text-dark); 
}

/* ========================
   11. PORTAL TAB SYSTEM & FORM UI
   ======================== */
.portal-tabs-wrapper {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 5px;
}

.portal-tab-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 5px;
    transition: all 0.3s ease;
    opacity: 0.4;
    position: relative;
}

.portal-tab-btn.active {
    opacity: 1;
    color: var(--accent-gold);
}

.portal-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gold);
    box-shadow: 0 0 15px var(--accent-gold);
}

/* Library & Viewport Finish */
.game-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

#portal-main-content {
    animation: portalFadeIn 0.5s ease-out;
}

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

/* =========================================
   LEADERBOARD & PODIUM STYLES
   ========================================= */

/* --- LAYOUT WRAPPERS --- */
.leaderboard-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    padding-bottom: 80px;
}

.leaderboard-header { text-align: center; }
.leaderboard-title { 
    font-size: 4rem; 
    color: var(--accent-gold); 
    margin: 0; 
    text-transform: uppercase; 
    letter-spacing: 4px;
}
.leaderboard-subtitle {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 30px;
    opacity: 0.7;
}

/* --- TABS --- */
.leaderboard-tabs { display: flex; gap: 20px; justify-content: center; margin-top: 20px; }
.tab-btn {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 10px 30px;
    cursor: pointer;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: 0.3s;
}
.tab-btn:hover, .tab-btn.active {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

/* --- PODIUM CONTAINER --- */
.podium-container {
    display: flex;
    align-items: flex-end; /* Aligns bases to bottom */
    justify-content: center;
    gap: 15px;
    height: 550px; /* Fixed height for the stage */
    width: 100%;
    margin-top: 20px;
}

/* 1. Shrink the clickable area of the podium link */
.podium-spot {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 260px !important;
    text-decoration: none !important;
    position: relative !important;
    transition: transform 0.3s ease !important;
    /* THE FIX: Ensure the link doesn't grow taller than it needs to */
    vertical-align: bottom !important; 
    overflow: visible !important;
}

.podium-spot:hover { transform: translateY(-5px); }

/* 2. Constrain the Avatar View box */
.podium-avatar-view {
    width: 100% !important;
    height: 350px !important; 
    position: relative !important;
    /* THE FIX: This prevents the 'invisible box' from floating over your tabs */
    pointer-events: none !important; 
    display: flex !important;
    justify-content: center !important;
    margin-top: auto !important; /* Pushes it down to the base */
}

/* Target only images that are children of the podium view */
.podium-avatar-view img.avatar-layer {
    position: absolute !important;
    bottom: -25px !important;    /* Forces them down onto the base */
    height: 100% !important;     /* Keeps them scaled to the podium height */
    width: auto !important;
    left: 50% !important;        /* Moves anchor to center */
    transform: translateX(-50%) !important; /* Perfectly centers them */
    top: auto !important;        /* Disables any top alignment from other files */
}

/* --- PODIUM BASES (ENGRAVED LOOK) --- */
.podium-base {
    position: relative !important;
    z-index:10 !important;
    pointer-events: auto !important;
    width: 100% !important;
    text-align: center !important;
    padding: 20px 10px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 5px !important;
}

/* Special adjustment for when the badge is on the Podium Bases */
.podium-base .student-badge {
    background: rgba(0, 0, 0, 0.3); /* Darker so it stands out on gold/silver */
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    margin-bottom: 8px;
}

/* Color & Height Variants */
.rank-1 { order: 2; z-index: 10; } /* Center */
.rank-1 .podium-base { 
    height: 180px; 
    background: linear-gradient(180deg, #D4AF37 0%, #8a6e0b 100%); /* Gold */
    border-top: 4px solid #fff;
}
.rank-1 .podium-avatar-view { height: 420px; } /* #1 is taller */

.rank-2 { order: 1; } /* Left */
.rank-2 .podium-base { 
    height: 130px; 
    background: linear-gradient(180deg, #C0C0C0 0%, #5a6e7c 100%); /* Silver */
}

.rank-3 { order: 3; } /* Right */
.rank-3 .podium-base { 
    height: 90px; 
    background: linear-gradient(180deg, #CD7F32 0%, #8b4513 100%); /* Bronze */
}

/* --- ENGRAVED TEXT --- */
.engraved-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: rgba(0,0,0,0.65);
    text-shadow: 1px 1px 0 rgba(255,255,255,0.2);
    font-family: 'Cormorant Garamond', serif;
}
.engraved-stat {
    font-size: 1rem;
    color: rgba(0,0,0,0.5);
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.1);
}
.rank-number-engraved {
    font-size: 3rem;
    opacity: 0.15;
    font-weight: 900;
    line-height: 1;
    margin-top: 10px;
}

/* --- THE COMMON SCROLL (LIST) --- */
.scroll-heading {
    width: 100%;
    max-width: 900px;
    text-align: left;
    border-bottom: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding-bottom: 10px;
    margin-top: 40px;
}

.common-scroll-area {
    width: 100%;
    max-width: 900px;
    /* CHANGE THESE LINES: */
    background: var(--glass-bg); 
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px); /* This adds the "frosted glass" look */
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px; /* Matches your portal cards */
    overflow: hidden; 
}

.rank-item {
    display: grid;
    grid-template-columns: 60px 70px 1fr 100px; /* Rank | Head | Info | Stat */
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
    color: var(--text-light);
}
.rank-item:hover { background: rgba(212, 175, 55, 0.05); }

.list-rank { font-size: 1.2rem; color: var(--accent-gold); font-weight: bold; opacity: 0.6; }

/* 1. Make the container larger */
.list-headshot-frame {
    width: 80px !important;   /* Increased from 50px */
    height: 80px !important;  /* Must match width to stay a circle */
    border-radius: 50% !important;
    border: 2px solid var(--accent-gold) !important;
    background: #000 !important;
    position: relative !important;
    overflow: hidden !important; 
}

/* 2. Adjust the Image inside if needed */
.list-headshot-frame img {
    position: absolute !important;
    width: 200% !important;   /* Slightly higher zoom helps fill the larger circle */
    left: 50% !important;
    top: -70% !important;     /* You may need to tweak this (-40% to -60%) */
    transform: translateX(-50%) !important;
    height: auto !important;
    max-width: none !important;
    display: block !important;
}

.list-name { font-size: 1.2rem; font-weight: bold; }
.list-sub { font-size: 0.8rem; opacity: 0.5; }
.list-stat { text-align: right; color: var(--accent-gold); font-weight: bold; font-size: 1.2rem; }

/* --- MOBILE LEADERBOARD ADJUSTMENTS --- */
@media (max-width: 900px) {
    /* Stack the podiums */
    .podium-container {
        flex-direction: column;
        height: auto;
        align-items: center;
        gap: 50px;
        margin-bottom: 50px;
    }

    /* Reorder so #1 is always on top, then #2, then #3 */
    .rank-1 { order: 1; }
    .rank-2 { order: 2; }
    .rank-3 { order: 3; }

    /* Adjust sizing for mobile */
    .podium-spot { width: 100%; max-width: 300px; }
    .podium-base { height: auto !important; padding: 30px 10px; }
    .podium-avatar-view { height: 300px; }

    /* Fix the list view on small screens */
    .rank-item {
        display: grid;
        grid-template-columns: 60px 80px 1fr 100px; /* Remove the stat column or merge it */
        gap: 10px;
    }
    .list-stat {
        grid-column: 3;
        text-align: left;
        font-size: 1rem;
    }
}

/* ========================
   7. TemporaryBadges
   ======================== */

 /* --- OFFICIAL STUDENT BADGE --- */
.student-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(212, 175, 55, 0.1); /* Subtle gold tint */
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-size: 0.7rem;          /* Smaller, compact text */
    font-weight: 800;
    text-transform: uppercase;  /* Makes it look official */
    letter-spacing: 1px;
    padding: 2px 10px;
    border-radius: 4px;         /* Slightly rounded corners */
    margin-top: 4px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

/* Add a small diamond icon before the text */
.student-badge::before {
    content: '◈';
    margin-right: 5px;
    font-size: 0.8rem;
}

/* avatar stuff
/* Unified Avatar Container for the whole site */
.avatar-container {
    width: 300px;
    height: 400px;
    position: relative;
    background: #000; /* Standard black background */
    border: 2px solid var(--accent-gold);
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
}

.avatar-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}