/* THE DUNKING DECREE - STYLE.CSS */
:root {
    --drink-color: #C07640;
    --accent-gold: #D4AF37;
    --lab-bg: #1A1A1A;
    --parchment: #E8D5B7;
    --baked-gold: #d4a068;
    --text-dark: #3E2723;
    --ministry-blue: #2c3e50;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--parchment) repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(139, 119, 101, .03) 35px, rgba(139, 119, 101, .03) 70px);
    font-family: 'Playfair Display', serif;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.app-container {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

.main-content {
    flex: 0 0 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Was center, causing layout issues */
    border-right: 2px solid rgba(139, 90, 43, .2);
    overflow-y: auto;
    padding-bottom: 2rem;
    padding-top: 2rem;
    /* Added top padding */
}

.sidebar {
    flex: 0 0 30%;
    background: var(--lab-bg);
    color: #E0E0E0;
    display: flex;
    flex-direction: column;
    font-family: 'Courier New', monospace;
    border-left: 2px solid var(--accent-gold);
    z-index: 100;
    transition: transform .3s;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .main-content {
        flex: 0 0 100%;
        border: none;
    }

    .sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 85%;
        max-width: 350px;
        transform: translateX(100%);
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: -10px 0 30px rgba(0, 0, 0, .5);
    }

    #stats-toggle {
        display: flex !important;
    }
}

.header-bar {
    width: 100%;
    padding: 15px 20px;
    background: rgba(232, 213, 183, .95);
    border-bottom: 2px solid rgba(139, 90, 43, .3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(101, 67, 33, .15);
    z-index: 10;
    flex-wrap: wrap;
    gap: 10px;
}

.header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.header-title h1 {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    color: #3E2723;
    letter-spacing: 2px;
    font-size: 1.5rem;
    margin: 0;
}

.header-title p {
    font-family: 'Inter', sans-serif;
    font-size: .65rem;
    color: #5D4037;
    opacity: .7;
    letter-spacing: 2px;
    margin: 0;
}

.btn-store {
    background: var(--ministry-blue);
    color: #f4f1ea;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    padding: 10px 16px;
    border: 2px solid #1a252f;
    font-size: .75rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all .2s;
}

.btn-store:hover {
    background: #1a252f;
}

/* CONFIG PANEL */
.config-panel {
    background: rgba(255, 248, 225, .95);
    padding: 40px;
    border-radius: 8px;
    border: 2px solid #5D4037;
    box-shadow: 0 10px 30px rgba(62, 39, 35, .3);
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: fadeIn .5s;
}

.config-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.config-label {
    font-family: 'Cinzel', serif;
    font-weight: bold;
    color: var(--text-dark);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.big-select {
    padding: 12px 20px;
    font-size: 1.1rem;
    background: #FFF3E0;
    border: 2px solid #8D6E63;
    border-radius: 4px;
    color: #3E2723;
    width: 100%;
    max-width: 300px;
    font-family: 'Playfair Display', serif;
    cursor: pointer;
}

.big-range {
    width: 100%;
    max-width: 300px;
    height: 10px;
    -webkit-appearance: none;
    appearance: none;
    background: #D7CCC8;
    border-radius: 5px;
}

.big-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #5D4037;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #D7CCC8;
}

.temp-display {
    font-weight: bold;
    color: #8D6E63;
    font-size: .9rem;
    text-transform: uppercase;
}

/* GRID */
.grid-section {
    width: 100%;
    max-width: 800px;
    padding: 30px;
    display: none;
    animation: fadeIn .5s;
}

.biscuit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 24px;
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform .2s;
    padding: 10px;
    border-radius: 8px;
}

.grid-item:hover {
    transform: scale(1.05);
    background: rgba(93, 64, 55, .05);
}

.grid-item-name {
    font-size: .8rem;
    font-weight: bold;
    color: #5D4037;
    text-transform: uppercase;
    text-align: center;
}

.grid-item-time {
    font-size: 1.2rem;
    color: #3E2723;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
}

/* STAGE */
.stage-section {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    animation: fadeIn .5s;
}

.physics-limit-display {
    font-size: 2rem;
    font-family: 'Cinzel', serif;
    font-weight: 900;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 0 rgba(255, 255, 255, .5);
    margin: 20px 0;
}

.cup-wrapper {
    position: relative;
    width: 200px;
    height: 180px;
    margin-bottom: 20px;
}

.cup-handle {
    position: absolute;
    right: -30px;
    top: 45px;
    width: 45px;
    height: 70px;
    border: 10px solid #E0E0E0;
    border-radius: 0 25px 25px 0;
}

.cup-body {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #F5F5F5, #E0E0E0);
    border-radius: 8px 8px 70px 70px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, .15);
}

.liquid {
    position: absolute;
    bottom: 0;
    left: 6px;
    right: 6px;
    height: 80%;
    background: var(--drink-color);
    border-radius: 0 0 64px 64px;
    transition: background .3s;
}

.cup-rim {
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 14px;
    background: linear-gradient(to bottom, #FFF, #EEE);
    border-radius: 6px 6px 0 0;
    border: 1px solid #E0E0E0;
}

.dunk-zone {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
}

/* BUTTONS */
.btn-gold {
    background: var(--baked-gold);
    color: var(--text-dark);
    font-family: 'Cinzel', serif;
    font-weight: 900;
    padding: 16px 32px;
    border: 2px solid #5D4037;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 0 #5D4037;
    transition: all .1s;
}

.btn-gold:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #5D4037;
}

.btn-gold:active {
    transform: translateY(2px);
    box-shadow: none;
}

.btn-small {
    padding: 8px 16px;
    font-size: .8rem;
}

/* SIDEBAR */
.sidebar-top {
    border-bottom: 2px solid var(--accent-gold);
}

.share-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.share-btn-sidebar,
.copy-btn-sidebar {
    padding: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all .2s;
    font-size: .75rem;
    text-transform: uppercase;
}

.share-btn-sidebar {
    background: #25D366;
    color: white;
}

.copy-btn-sidebar {
    background: #333;
    color: var(--accent-gold);
    border-left: 1px solid rgba(212, 175, 55, .3);
}

.share-btn-sidebar:hover,
.copy-btn-sidebar:hover {
    filter: brightness(.9);
}

.tab-switcher {
    display: flex;
    border-bottom: 2px solid var(--accent-gold);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: #222;
    color: #888;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all .2s;
}

.tab-btn.active {
    background: var(--baked-gold);
    color: var(--text-dark);
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2);
}

.tab-btn:hover:not(.active) {
    background: #333;
}

.lab-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.lab-row {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(212, 175, 55, .15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background .2s;
    font-size: .9rem;
}

.lab-row:hover {
    background: rgba(212, 175, 55, .1);
}

.lab-row.king {
    background: rgba(212, 175, 55, .15);
    border-left: 3px solid var(--accent-gold);
}

.survival-rate {
    color: var(--accent-gold);
    font-weight: bold;
}

.my-stats-summary {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, .2);
}

.my-stats-big {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-gold);
}

.my-stats-label {
    font-size: 10px;
    text-transform: uppercase;
    opacity: .6;
    letter-spacing: 1px;
}

.lab-footer {
    padding: 15px;
    background: rgba(0, 0, 0, .3);
    border-top: 1px solid rgba(212, 175, 55, .2);
    text-align: center;
    font-size: .7rem;
    line-height: 1.4;
}

.lab-footer a {
    color: var(--accent-gold);
    text-decoration: none;
    display: block;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-disclaimer {
    margin-top: 10px;
    opacity: .4;
    font-size: .6rem;
}

#stats-toggle {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 200;
    background: var(--baked-gold);
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .4);
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* OVERLAYS */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 0, 0, .6);
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.overlay.show {
    display: flex;
}

.modal-box {
    background: #FFF8E1;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, .4);
    max-width: 90%;
    width: 400px;
}

/* SATURATION BAR */
.sat-bar-container {
    width: 200px;
    height: 16px;
    background: #D7CCC8;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
    border: 2px solid #8D6E63;
    display: none;
}

.sat-bar-container.active {
    display: block;
}

.sat-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #8BC34A, #FF9800, #F44336);
}

/* BISCUIT SHAPES */
.biscuit {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.biscuit::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, .4) 0%, transparent 50%, rgba(0, 0, 0, .2) 100%);
    pointer-events: none;
}

.circ {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
}

.rect {
    width: 80px;
    height: 45px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
}

/* TEXTURES */
.tex-digestive {
    background: radial-gradient(circle at 30% 30%, #E5C29F, #BF8F5A);
    background-image: radial-gradient(rgba(0, 0, 0, .1) 15%, transparent 16%), radial-gradient(circle at 30% 30%, #E5C29F, #BF8F5A);
    background-size: 6px 6px, 100% 100%;
    border: 1px solid #A67C52;
    box-shadow: 2px 2px 0 #8B6B4B, inset 2px 2px 6px rgba(255, 255, 255, .2);
}

.tex-chocdig {
    background: linear-gradient(135deg, #4A3226, #2C1810);
    box-shadow: 3px 3px 0 #1A0F08, inset 2px 2px 8px rgba(255, 255, 255, .1);
    overflow: visible;
}

.tex-chocdig::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 2px;
    right: -2px;
    bottom: -4px;
    background: #BF8F5A;
    z-index: -1;
    border-radius: inherit;
    box-shadow: 2px 2px 0 #8B6B4B;
}

.tex-maryland {
    background: #D4A068;
    background-image: radial-gradient(circle at 20% 30%, #2C1810 4px, transparent 5px), radial-gradient(circle at 70% 20%, #2C1810 3px, transparent 4px), radial-gradient(circle at 40% 60%, #2C1810 4px, transparent 5px), radial-gradient(circle at 80% 70%, #2C1810 3px, transparent 4px);
    box-shadow: 2px 2px 0 #A67C52;
}

.tex-richtea {
    background: #FADFB7;
    border: 1px solid #E0B080;
    box-shadow: 1px 1px 0 #D4A068;
}

.tex-richtea::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 2px dotted rgba(160, 120, 90, .3);
    border-radius: 50%;
}

.tex-hobnob {
    background: linear-gradient(45deg, #BCAAA4, #8D6E63);
    border: 1px solid #6D4C41;
    box-shadow: 2px 2px 0 #5D4037;
}

.tex-bourbon {
    background: #3E2723;
    box-shadow: 0 4px 0 #FFF, 0 8px 0 #2C1810;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tex-bourbon::after {
    content: '• • • • •';
    color: rgba(0, 0, 0, .3);
    font-size: 20px;
    letter-spacing: 2px;
}

.tex-nice {
    background: #F3E5AB;
    border: 2px solid #D4B483;
    background-image: radial-gradient(circle, #FFF 1px, transparent 1px);
    background-size: 8px 8px;
    box-shadow: 0 4px 0 #C4A473;
}

.tex-nice::after {
    content: 'NICE';
    font-size: 10px;
    font-weight: 900;
    color: rgba(139, 90, 43, .4);
    letter-spacing: 2px;
}

.tex-malted {
    background: #FAFAEB;
    border: 2px solid #D2B48C;
    border-radius: 8px !important;
    box-shadow: 0 4px 0 #BCA27E;
}

.tex-malted::after {
    content: '🐄';
    font-size: 18px;
    opacity: .25;
    filter: sepia(1);
}

.tex-ginger {
    background: linear-gradient(45deg, #D35400, #A04000);
    border: 1px solid #873600;
    box-shadow: 2px 2px 0 #6E2C00;
}

.tex-jaffa {
    background: repeating-linear-gradient(45deg, #3E2723, #3E2723 5px, #4E342E 5px, #4E342E 10px);
    border: 1px solid #1A0F08;
    box-shadow: 0 3px 0 #F39C12, 0 6px 0 #E67E22;
}

.tex-shortcake {
    background: radial-gradient(circle, #FFF9C4, #FBC02D);
    border: 1px solid #F9A825;
    box-shadow: 2px 2px 0 #F57F17;
}

.tex-custard {
    background: #FFF59D;
    border: 2px solid #FBC02D;
    box-shadow: 0 4px 0 #F9A825, 0 6px 0 #FFF, 0 10px 0 #F9A825;
    transform: translateY(-5px);
}

.tex-custard::after {
    content: '✥';
    font-size: 24px;
    color: rgba(249, 168, 37, .4);
}

#physics-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 70;
}

.crumb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.steam-box {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
    z-index: 55;
}

.steam-puff {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 255, 255, .8), transparent);
    filter: blur(5px);
    border-radius: 50%;
    opacity: 0;
}

.frac-left-circ {
    clip-path: polygon(0 0, 55% 0, 50% 15%, 60% 30%, 45% 50%, 55% 70%, 50% 85%, 55% 100%, 0 100%);
}

.frac-right-circ {
    clip-path: polygon(55% 0, 100% 0, 100% 100%, 55% 100%, 50% 85%, 60% 70%, 45% 50%, 55% 30%, 50% 15%);
}

.frac-left-rect {
    clip-path: polygon(0 0, 60% 0, 55% 20%, 65% 50%, 50% 80%, 60% 100%, 0 100%);
}

.frac-right-rect {
    clip-path: polygon(60% 0, 100% 0, 100% 100%, 60% 100%, 50% 80%, 65% 50%, 55% 20%);
}

/* ANIMATIONS */
@keyframes steamRise {
    0% {
        opacity: 0;
        transform: translateY(0) scale(.5);
    }

    20% {
        opacity: .6;
    }

    100% {
        opacity: 0;
        transform: translateY(-40px) scale(1.5);
    }
}

@keyframes liftOut {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-250px) rotate(5deg);
    }
}



/* GARIBALDI ASSETS */
.biscuit-garibaldi {
    width: 140px;
    height: 65px;
    background: #e3a857;
    /* Golden dough base */
    border-radius: 4px;
    position: relative;
    /* Baked depth + Drop shadow */
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2), 2px 2px 5px rgba(0, 0, 0, 0.2);
    /* Texture: Cross-hatch baking marks */
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
    background-size: 4px 4px;
    overflow: hidden;
}

/* The "Squashed Flies" (Currants) - Generated via Box Shadow to save DOM elements */
.biscuit-garibaldi::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3e1c1c;
    /* Dark currant color */
    opacity: 0.7;
    box-shadow:
        15px 5px 0 #3e1c1c, 35px -2px 0 #3e1c1c, 55px 8px 0 #3e1c1c,
        75px -3px 0 #3e1c1c, 95px 6px 0 #3e1c1c, 115px 2px 0 #3e1c1c,
        10px 25px 0 #3e1c1c, 30px 35px 0 #3e1c1c, 50px 28px 0 #3e1c1c,
        70px 32px 0 #3e1c1c, 90px 38px 0 #3e1c1c, 110px 25px 0 #3e1c1c,
        20px 15px 0 #3e1c1c, 60px 18px 0 #3e1c1c, 100px 12px 0 #3e1c1c;
}

/* The Sugar Glaze Shine */
.biscuit-garibaldi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.25) 0%, transparent 40%);
    z-index: 2;
}

/* THE JAMMY DODGER (The Heart of the Operation) */
.biscuit-jammy-dodger {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    /* Perfectly Round */
    background: #f0e68c;
    /* Shortcake Khaki */
    position: relative;
    box-shadow:
        inset 0 0 10px rgba(0, 0, 0, 0.1),
        /* Baked edge */
        4px 4px 8px rgba(0, 0, 0, 0.2);
    /* Drop shadow */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The Top Biscuit Texture (Subtle crumb) */
.biscuit-jammy-dodger::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: radial-gradient(#d2b48c 15%, transparent 16%);
    background-size: 8px 8px;
    opacity: 0.3;
}

/* The Jam Center (Heart Shape) */
.biscuit-jammy-dodger::after {
    content: '♥';
    font-size: 60px;
    color: #cc0000;
    /* Jam Red */
    text-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.5);
    /* Sticky Depth */
    filter: drop-shadow(0px 1px 0px rgba(255, 255, 255, 0.5));
    /* Jam Glint */
    display: flex;
    align-items: center;
    justify-content: center;
}



@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drop {
    0% {
        transform: translateY(-200px);
    }

    100% {
        transform: translateY(50px);
    }
}

@keyframes bob {

    0%,
    100% {
        transform: translateY(50px);
    }

    50% {
        transform: translateY(65px);
    }
}

@keyframes liftOut {
    0% {
        transform: translateY(50px);
    }

    100% {
        transform: translateY(-30px);
    }
}

.anim-drop {
    animation: drop .5s ease-out forwards;
}

.anim-bob {
    animation: bob 2s ease-in-out infinite;
}

/* QUARTERMASTER STORE */
#merch-interface {
    display: none;
    width: 100%;
    max-width: 900px;
    padding: 30px;
    animation: fadeIn .5s;
}

#merch-interface.active {
    display: block;
}

.store-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px double #5D4037;
}

.store-header h2 {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    color: #3E2723;
    font-size: 1.8rem;
    letter-spacing: 3px;
    margin: 0 0 8px;
}

.store-header p {
    font-family: 'Courier New', monospace;
    color: #5D4037;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.shop-card {
    background: #FFF8E1;
    border: 2px solid #5D4037;
    padding: 15px;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}

.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(62, 39, 35, .3);
}

.shop-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 1px solid #D7CCC8;
    margin-bottom: 12px;
}

.shop-card h3 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: #3E2723;
    font-size: .95rem;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.shop-card .tag {
    font-family: 'Courier New', monospace;
    color: #8D6E63;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.btn-requisition {
    background: var(--ministry-blue);
    color: #f4f1ea;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid #1a252f;
    font-size: .75rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all .2s;
    width: 100%;
}

.btn-requisition:hover {
    background: #1a252f;
}

.btn-back-store {
    display: block;
    margin: 30px auto 0;
    background: transparent;
    color: #5D4037;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px dashed #5D4037;
    font-size: .75rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-back-store:hover {
    background: rgba(93, 64, 55, .1);
}

/* PWA INSTALL MODAL */
#install-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .85);
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

#install-modal.show {
    display: flex;
}

.install-box {
    background: #f4f1ea;
    border: 4px solid var(--ministry-blue);
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 0 8px rgba(44, 62, 80, .3), 0 20px 60px rgba(0, 0, 0, .5);
}

.install-box h2 {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    color: var(--ministry-blue);
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin: 0 0 15px;
    text-transform: uppercase;
}

.install-box p {
    font-family: 'Courier New', monospace;
    color: #5D4037;
    font-size: .85rem;
    line-height: 1.6;
    margin: 0 0 25px;
}

.install-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-install {
    background: var(--ministry-blue);
    color: #f4f1ea;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    padding: 14px 24px;
    border: 2px solid #1a252f;
    font-size: .9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-install:hover {
    background: #1a252f;
}

.btn-dismiss {
    background: transparent;
    color: #8D6E63;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    padding: 10px 24px;
    border: none;
    font-size: .75rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-dismiss:hover {
    color: #5D4037;
}

#install-fab {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 25px;
    z-index: 250;
    width: 56px;
    height: 56px;
    background: var(--ministry-blue);
    color: #f4f1ea;
    border: 2px solid #1a252f;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .4);
    align-items: center;
    justify-content: center;
}

#install-fab.show {
    display: flex;
}

#install-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
}

/* SUGGESTION MODAL */
#suggestion-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0, 0, 0, .9);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

/* SUPPORT FOOTER */
.support-footer {
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    font-family: 'Playfair Display', serif;
    z-index: 50;
    pointer-events: none;
}

.support-footer a {
    color: #5D4037;
    text-decoration: none;
    pointer-events: auto;
    background: rgba(232, 213, 183, .9);
    padding: 4px 12px;
    border-radius: 4px;
}

/* --- VALENTINE'S DAY PROTOCOL --- */
/* THE JAMMY DODGER ASSET */
.biscuit-jammy-dodger {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #f0e68c;
    /* Shortcake Khaki */
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1), 4px 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.biscuit-jammy-dodger::before {
    /* Texture */
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: radial-gradient(#d2b48c 15%, transparent 16%);
    background-size: 8px 8px;
    opacity: 0.3;
}

.biscuit-jammy-dodger::after {
    /* The Heart Jam Center */
    content: '♥';
    font-size: 60px;
    color: #cc0000;
    /* Jam Red */
    text-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0px 1px 0px rgba(255, 255, 255, 0.5));
}

/* THE VALENTINE BANNER */
.valentine-banner {
    background: #fff0f0;
    border-bottom: 4px solid #cc0000;
    color: #8a1c1c;
    padding: 15px;
    text-align: center;
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    display: none;
    /* Hidden by default */
}

.valentine-deco {
    position: absolute;
    opacity: 0.1;
    font-size: 80px;
    pointer-events: none;
    user-select: none;
}

/* --- NIGHT SHIFT PROTOCOL --- */
/* The Toggle Button (Default Locked State) */
#night-shift-btn {
    background: transparent;
    border: 2px solid #555;
    color: #555;
    padding: 10px 20px;
    margin: 30px auto;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    display: block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
}

#night-shift-btn:hover {
    background: #eee;
    border-color: #333;
    color: #333;
}

/* ACTIVE MODE */
body.night-shift-mode {
    background-color: #0d0d0d !important;
    color: #00ff41 !important;
    /* Hacker Green */
}

body.night-shift-mode .biscuit-card,
body.night-shift-mode .modal-box,
body.night-shift-mode .app-container {
    background-color: #1a1a1a !important;
    border-color: #00ff41 !important;
    color: #00ff41 !important;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.15);
}

body.night-shift-mode button {
    background-color: #002200 !important;
    color: #00ff41 !important;
    border: 1px solid #00ff41 !important;
}

body.night-shift-mode img {
    filter: brightness(0.7) contrast(1.2) grayscale(0.5) sepia(1) hue-rotate(70deg);
}

body.night-shift-mode #night-shift-btn {
    border-color: #00ff41;
    color: #00ff41;
    box-shadow: 0 0 10px #00ff41;
}

/* --- MOBILE ADJUSTMENTS (Moved to end for priority) --- */
@media (max-width: 600px) {
    .valentine-banner {
        width: 96% !important;
        max-width: none !important;
        /* Override 600px limit */
        padding: 10px 5px !important;
        margin-bottom: 1.5rem;
    }

    .valentine-banner div {
        font-size: 0.85rem !important;
        line-height: 1.3;
        white-space: normal;
    }

    .valentine-deco {
        font-size: 40px;
        opacity: 0.05;
    }

    .header-title h1 {
        font-size: 1.2rem;
    }
}