@font-face {
  font-family: 'Charlemagne Std Bold';
  src: url('./assets/fonts/Charlemagne\ Std\ Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
    font-family: Comic Sans MS;
    src: url('../Comic-Sans-MS.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Charlemagne Std Bold', bold;
    background: #000;
    color: #fff;
}

/* ============================================================
   SCREEN SYSTEM  — only .active is shown
   ============================================================ */
.screen {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.screen.active { display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* ============================================================
   BACKGROUND LAYER
   ============================================================ */
.bg-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    z-index: 0;
}

/* Placeholder label for missing bg images */
.placeholder-bg-label {
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    opacity: 0.4;
    background: rgba(0,0,0,.5);
    padding: 2px 8px;
    border-radius: 4px;
    pointer-events: none;
}

/* Everything above the bg */
.screen > *:not(.bg-layer) { position: relative; z-index: 1; }

/* ============================================================
   BUTTONS — CD-i style gold border
   ============================================================ */
.btn-cdi {
    display: inline-block;
    padding: 12px 28px;
    margin: 8px;
    font-family: Comic Sans MS, sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #ffe066;
    background: rgba(0, 0, 0, 0.75);
    border: 3px solid #b8860b;
    border-radius: 4px;
    cursor: pointer;
    text-shadow: 0 0 8px #ffaa00;
    box-shadow: inset 0 0 12px rgba(255,160,0,0.15), 0 2px 8px rgba(0,0,0,0.7);
    transition: background 0.15s, transform 0.1s;
    letter-spacing: 1px;
}
.btn-cdi:hover  { background: rgba(80, 40, 0, 0.85); transform: scale(1.04); }
.btn-cdi:active { transform: scale(0.97); }
.btn-cdi:disabled, .btn-cdi[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   SPEECH BUBBLE
   ============================================================ */
.speech-bubble {
    font-family: Comic Sans MS, sans-serif;
    background: rgba(255,255,220,0.95);
    color: #222;
    border: 3px solid #b8860b;
    border-radius: 10px;
    padding: 12px 18px;
    max-width: 480px;
    font-size: 16px;
    text-align: center;
    line-height: 1.5;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    margin-top: 10px;
}

/* ============================================================
   CHARACTER / ASSET PLACEHOLDERS
   ============================================================ */
.char-placeholder {
    min-width: 180px;
    min-height: 180px;
    background: rgba(255,255,255,0.08);
    border: 2px dashed rgba(255,200,0,0.4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: rgba(255,220,100,0.6);
    text-align: center;
    padding: 12px;
    margin: 8px auto;
}

.item-placeholder {
    width: 80px; height: 80px;
    background: rgba(255,255,255,0.08);
    border: 2px dashed rgba(255,200,0,0.4);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: rgba(255,220,100,0.5);
    margin: 0 auto 6px;
    text-align: center;
}
.item-placeholder.large { width: 200px; height: 200px; font-size: 14px; }

/* ============================================================
   UTILITY
   ============================================================ */
.hidden { display: none !important; }

.screen-title {
    font-size: 26px;
    background-image: linear-gradient(to bottom, #ffe066, #ff8800);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 0, 0 0 16px #ff8800;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 2px;
}


.subtitle {
    font-size: 14px;
    color: #ffd080;
    text-align: center;
    margin-bottom: 14px;
    opacity: 0.8;
}

.big-msg {
    font-size: 28px;
    color: #ffe066;
    text-shadow: 0 0 12px #fff;
    text-align: center;
    padding: 20px;
    animation: pulse 0.6s infinite alternate;
}

@keyframes pulse { from { opacity: 0.7; } to { opacity: 1; } }

/* ============================================================
   MAIN MENU
   ============================================================ */
.menu-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: rgba(0,0,0,0.6);
    padding: 40px 60px;
    border: 3px solid #b8860b;
    border-radius: 8px;
}

.game-title {
    font-size: 36px;
    font-family: 'Charlemagne Std Bold', bold;
    background-image: linear-gradient(to bottom, #ffe066, #ff8800);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: 3px 3px 0, 0 0 20px #ff8800;
    text-align: center;
    line-height: 1.25;
    letter-spacing: 2px;
    animation: mainPulse 0.5s infinite alternate;
}

.game-title span {
    font-size: 22px;
    display: block;
    background-image: linear-gradient(to bottom, #ffcc44, #ff8800);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

@keyframes mainPulse {
    from { opacity: 1; transform: scale(0.97); }
    to   { opacity: 1;    transform: scale(1.04); }
}

.menu-subtitle {
    font-size: 18px;
    background-image: linear-gradient(to bottom, #ffcc44, #ff8800);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-align: center;
    line-height: 1.4;
    letter-spacing: 1px;
}

.menu-buttons { display: flex; flex-direction: column; align-items: center; gap: 4px; }

/* ============================================================
   INTRO CUTSCENE
   ============================================================ */
#intro-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 16px;
}

#king-walkin-anim,
#king-thinking-anim,
#king-announce-anim {
    display: flex;
    align-items: center;
    justify-content: center;
}

#intro-speech-bubble {
    min-width: 300px;
    max-width: 480px;
}

/* ============================================================
   SHOP
   ============================================================ */
.shop-ui {
    width: 90%;
    max-width: 700px;
    background: rgba(0,0,0,0.7);
    border: 3px solid #b8860b;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-height: 95vh;
    overflow-y: auto;
}

/* Fixed to the GIFs' actual 371x209 canvas so the container can't collapse
   to the .char-placeholder min-width fallback when morshu-idle-img is
   hidden (display:none) — that collapse was making the absolutely-positioned
   morshu-cant-afford-img get capped by max-width:100% at a much smaller size. */
#morshu-anim { margin-bottom: 0; width: 371px; height: 209px; position: relative; }

/* Stack morshu-idle.gif and morshu-cant-afford.gif on top of one another so
   swapping between them (via the .hidden utility class) doesn't shift layout. */
#morshu-idle-img,
#morshu-cant-afford-img {
    width: 100%;
    height: 100%;
}
#morshu-cant-afford-img {
    position: absolute;
    inset: 0;
    margin: auto;
}

.shop-hud {
    display: flex;
    gap: 30px;
    font-size: 16px;
    color: #ffe066;
    background: rgba(0,0,0,0.5);
    padding: 8px 20px;
    border: 2px solid #b8860b;
    border-radius: 4px;
}

.ingredient-shelf {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    width: 100%;
}

/* Individual ingredient cards */
.ingredient-card {
    width: 120px;
    background: rgba(255,255,200,0.1);
    border: 2px solid #b8860b;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    color: #ffe066;
    font-size: 13px;
}
.ingredient-card:hover { background: rgba(255,200,0,0.2); transform: scale(1.05); }
.ingredient-card.purchased {
    opacity: 0.5;
    cursor: default;
    border-color: #555;
    transform: none;
}
.ingredient-card .ing-icon { font-size: 32px; margin-bottom: 4px; }
.ingredient-card .ing-name { font-weight: bold; }
.ingredient-card .ing-price { font-size: 11px; color: #ffcc44; margin-top: 3px; }

.shop-actions { margin-top: 8px; }

/* ============================================================
   KITCHEN
   ============================================================ */
.kitchen-ui {
    width: 90%;
    max-width: 700px;
    background: rgba(0,0,0,0.75);
    border: 3px solid #b8860b;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-height: 95vh;
    overflow-y: auto;
}

.kitchen-area { width: 100%; }

.kitchen-panel {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,200,0,0.3);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
}
.kitchen-panel h3 {
    color: #ffe066;
    margin-bottom: 12px;
    font-size: 16px;
    text-align: center;
}

/* Appliance buttons */
.appliance-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.appliance-btn {
    width: 130px;
    padding: 12px 8px;
    background: rgba(0,0,0,0.6);
    border: 2px solid #b8860b;
    border-radius: 6px;
    color: #ffe066;
    font-family: Charlemagne Std Bold, bold;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s;
}
.appliance-btn:hover { background: rgba(80,40,0,0.8); }
.appliance-btn.selected { background: rgba(120,80,0,0.9); border-color: #ffcc00; }
.appliance-btn small { display: block; color: #ffcc44; font-size: 11px; }
.appliance-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    filter: grayscale(0.8);
    background: rgba(0,0,0,0.6);
}
.appliance-btn:disabled:hover { background: rgba(0,0,0,0.6); }

/* Oven temp */
#oven-temp-panel { margin-top: 14px; text-align: center; color: #ffe066; }
#oven-temp-panel label { display: block; margin-bottom: 8px; font-size: 14px; }
.temp-buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.temp-btn {
    padding: 8px 14px;
    background: rgba(0,0,0,0.6);
    border: 2px solid #b8860b;
    border-radius: 4px;
    color: #ffe066;
    font-family: Comic Sans MS, sans-serif;
    cursor: pointer;
    transition: background 0.15s;
}
.temp-btn:hover { background: rgba(80,40,0,0.8); }
.temp-btn.selected { background: rgba(120,80,0,0.9); border-color: #ffcc00; }
.temp-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    filter: grayscale(0.8);
    background: rgba(0,0,0,0.6);
}
.temp-btn:disabled:hover { background: rgba(0,0,0,0.6); }

/* Cooking area */
.appliance-visual {
    min-height: 80px;
    background: rgba(255,255,255,0.06);
    border: 2px dashed rgba(255,200,0,0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,220,100,0.4);
    font-size: 13px;
    margin-bottom: 12px;
}

.ingredient-tray {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    min-height: 50px;
}

.tray-item {
    padding: 6px 12px;
    background: rgba(255,200,0,0.15);
    border: 1px solid #b8860b;
    border-radius: 4px;
    font-size: 13px;
    color: #ffe066;
    cursor: pointer;
}
.tray-item:hover { background: rgba(255,200,0,0.3); }
.tray-item.added { opacity: 0.4; cursor: default; text-decoration: line-through; }

.cooking-vessel {
    min-height: 80px;
    background: rgba(80, 40, 0, 0.4);
    border: 3px solid #b8860b;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    color: #ffcc44;
    font-size: 13px;
    margin-bottom: 12px;
}

#vessel-contents { margin-top: 6px; font-size: 13px; color: #ffe066; }

/* Oven timer bar */
#oven-timer-display {
    text-align: center;
    margin-bottom: 10px;
    color: #ffe066;
}
.timer-bar-wrap {
    width: 100%;
    height: 16px;
    background: rgba(0,0,0,0.5);
    border: 2px solid #b8860b;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 4px;
}
.timer-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #ff4400, #ffaa00);
}

.cooking-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.cooking-actions .btn-cdi {
    margin: 8px 0;
}

.appliance-visual-img {
    width: 128px;
    height: 128px;
    object-fit: contain;
    image-rendering: pixelated;
    display: block;
    margin: 0 auto;
}

#cooking-status-label { text-align: center; }

/* ============================================================
   PLATING
   ============================================================ */
.plating-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.plate-btn {
    width: 130px;
    padding: 14px 10px;
    background: rgba(0,0,0,0.6);
    border: 2px solid #b8860b;
    border-radius: 8px;
    color: #ffe066;
    font-family: Comic Sans MS, sans-serif;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s, transform 0.1s;
}
.plate-btn:hover { background: rgba(80,40,0,0.8); transform: scale(1.05); }
.plate-btn.selected { background: rgba(120,80,0,0.9); border-color: #ffcc00; }

.plating-preview {
    text-align: center;
    color: #ffe066;
    font-size: 15px;
    padding: 10px;
    border: 2px solid #b8860b;
    border-radius: 6px;
    background: rgba(0,0,0,0.4);
    margin-bottom: 14px;
}

/* ============================================================
   JUDGEMENT
   ============================================================ */
#judgement-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 16px;
}

.score-reveal {
    display: flex;
    align-items: baseline;
    gap: 0;
    animation: scorePop 0.5s cubic-bezier(0.36, 1.5, 0.6, 1);
}

@keyframes scorePop {
    from { transform: scale(0.3); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.score-number {
    font-size: 100px;
    font-weight: bold;
    color: #ffe066;
    text-shadow: 4px 4px 0 #000, 0 0 30px #ff8800;
    line-height: 1;
}
.score-label {
    font-size: 100px;
    color: #ffcc44;
    font-weight: bold;
    text-shadow: 4px 4px 0 #000, 0 0 30px #ff8800;
    line-height: 1;
    margin-left: -14px;
}

.outcome-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   DEATH REVEAL  (replaces the score number when a lethal
   ingredient was cooked into the King's meal)
   ============================================================ */
.death-reveal-msg {
    font-size: 46px;
    font-weight: bold;
    color: #ff2222;
    text-shadow: 3px 3px 0 #000, 0 0 30px #ff0000, 0 0 60px #990000;
    text-align: center;
    line-height: 1.15;
    letter-spacing: 1px;
    max-width: 480px;
    animation: deathPulse 0.5s infinite alternate;
}

@keyframes deathPulse {
    from { opacity: 0.75; transform: scale(0.97); }
    to   { opacity: 1;    transform: scale(1.04); }
}

/* ============================================================
   SCRUBBING MINIGAME
   ============================================================ */
.scrub-ui {
    width: 90%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scrub-hud {
    display: flex;
    gap: 30px;
    font-size: 18px;
    font-family: Comic Sans MS, sans-serif;
    color: #ffe066;
    background: rgba(0,0,0,0.6);
    padding: 8px 20px;
    border: 2px solid #b8860b;
    border-radius: 4px;
}

.scrub-floor {
    width: 100%;
    max-width: 600px;
    height: 280px;
    background: rgba(80, 50, 20, 0.6);
    border: 3px solid #b8860b;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

/* Dirt patches — JS creates these */
.dirt-patch {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #5a3a10, #3a2005);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.dirt-patch:hover { transform: scale(1.15); }
.dirt-patch.scrubbed { opacity: 0; pointer-events: none; }

/* ============================================================
   JUMPSCARE
   ============================================================ */
.jumpscare-img {
    font-size: 120px;
    text-align: center;
    animation: zoomIn 0.3s cubic-bezier(0.36, 1.5, 0.6, 1) forwards;
}

@keyframes zoomIn {
    from { transform: scale(0.1); opacity: 0; }
    to   { transform: scale(4.0);   opacity: 1; }
}

/* ============================================================
   DEFEAT
   ============================================================ */
.defeat-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    background: rgba(20,0,0,0.82);
    border: 3px solid #8b0000;
    border-radius: 8px;
    padding: 30px 50px;
    text-align: center;
}

.defeat-title {
    font-size: 40px;
    color: #ff4444;
    text-shadow: 3px 3px 0 #000, 0 0 20px #cc0000;
    letter-spacing: 3px;
}

.defeat-body {
    font-size: 16px;
    color: #ffaaaa;
    max-width: 380px;
    line-height: 1.6;
    white-space: pre-line;
}

/* ============================================================
   VICTORY
   ============================================================ */
.victory-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    background: rgba(0,0,0,0.7);
    border: 3px solid #b8860b;
    border-radius: 8px;
    padding: 30px 50px;
    text-align: center;
}

.victory-title {
    font-size: 40px;
    color: #ffe066;
    text-shadow: 3px 3px 0 #000, 0 0 20px #ff8800;
    letter-spacing: 3px;
}

.victory-body {
    font-size: 16px;
    color: #ffdd88;
    max-width: 380px;
    line-height: 1.6;
}

/* ============================================================
   DEATH PUNISHMENT  (you killed the King — permanent flames)
   ============================================================ */
.death-punishment-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    background: rgba(40,0,0,0.85);
    border: 3px solid #ff4500;
    border-radius: 8px;
    padding: 30px 50px;
    text-align: center;
}

.death-punishment-title {
    font-size: 40px;
    color: #ff6600;
    text-shadow: 3px 3px 0 #000, 0 0 24px #ff2200;
    letter-spacing: 3px;
    animation: deathPulse 0.5s infinite alternate;
}

.death-punishment-body {
    font-size: 16px;
    color: #ffcc99;
    max-width: 380px;
    line-height: 1.6;
}

/* ============================================================
   SCRUB FAIL
   ============================================================ */
.scrub-fail-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    background: rgba(20,0,0,0.85);
    border: 3px solid #8b0000;
    border-radius: 8px;
    padding: 30px 50px;
    text-align: center;
}

.scrub-fail-title {
    font-size: 40px;
    color: #ff4444;
    text-shadow: 3px 3px 0 #000, 0 0 20px #cc0000;
    letter-spacing: 3px;
}

.scrub-fail-body {
    font-size: 16px;
    color: #ffaaaa;
    max-width: 380px;
    line-height: 1.6;
}

/* Bad ingredient warning tag */
.ing-bad-tag {
    font-size: 10px;
    color: #ff6666;
    margin-top: 3px;
}

/* ============================================================
   BGM HINT  — bottom of main menu screen
   ============================================================ */
.bgm-hint {
    position: absolute !important;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 22px;
    font-weight: bold;
    font-family: Comic Sans MS, sans-serif;
    background-image: linear-gradient(to bottom, #ffe066, #cc8800);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 2px 0px #000) drop-shadow(-1px -1px 0px #000) drop-shadow(1px -1px 0px #000) drop-shadow(-1px 1px 0px #000);
    letter-spacing: 1px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 2;
    animation: bgm-hint-pulse 2s ease-in-out infinite;
    transition: opacity 0.6s ease;
}

.yt-credit {
    font-family: Comic Sans MS, sans-serif;
    position: fixed !important;
    top: 16px;
    right: auto;
    left: 16px;
    font-size: 20px;
    font-weight: bold;
    background-image: linear-gradient(to bottom, #ffe066, #cc8800);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 2px 0px #000) drop-shadow(-1px -1px 0px #000) drop-shadow(1px -1px 0px #000) drop-shadow(-1px 1px 0px #000);
    letter-spacing: 1px;
    z-index: 9999;
    text-decoration: none;
}

.yt-credit:hover {
    text-decoration: underline;
    font-family: Comic Sans MS, sans-serif;
}

@keyframes bgm-hint-pulse {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1;   }
}

/* ============================================================
   TIP BARS  — Zelda (cooking) & Link (plating)
   ============================================================ */
.tip-bar {
    position: absolute !important;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    z-index: 10;
    pointer-events: none;
}

.tip-char-img {
    height: 160px;
    width: auto;
    object-fit: contain;
    image-rendering: pixelated;
    flex-shrink: 0;
    align-self: flex-end;
    margin-bottom: 0;
    filter: drop-shadow(2px 0 6px rgba(0,0,0,0.8));
}

.tip-bubble {
    font-family: Comic Sans MS, sans-serif;
    width: 280px;
    flex-shrink: 0;
    background: rgba(255, 255, 220, 0.95);
    color: #222;
    border: 3px solid #b8860b;
    border-radius: 10px 10px 0 0;
    padding: 12px 20px 14px;
    font-size: 15px;
    line-height: 1.55;
    text-align: center;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}

.tip-bubble strong {
    font-family: Charlemagne Std Bold, bold;
    display: block;
    font-size: 17px;
    color: #7a3d00;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}
/* =============================================================
   PRELOADER
   ============================================================= */
.preloader-ui {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 2rem;
    padding: 2rem;
}

.preloader-title {
    animation: titleGlow 2s ease-in-out infinite alternate;
}

.preloader-bar-wrap {
    width: min(480px, 80vw);
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    border: 3px solid #c8960c;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(200, 150, 12, 0.5);
}

.preloader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7a4a00, #c8960c, #ffe066, #c8960c);
    background-size: 200% 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
    animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.preloader-label {
    font-family: 'Charlemagne Std Bold', 'Comic Sans MS', serif;
    color: #ffe066;
    font-size: 1rem;
    text-align: center;
    letter-spacing: 0.05em;
    text-shadow: 0 0 8px rgba(200, 150, 12, 0.8);
    min-height: 1.5em;
}