        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Old Standard TT', serif;
            background: linear-gradient(rgba(20, 15, 10, 0.7), rgba(20, 15, 10, 0.7)),
                        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"><rect fill="%23342820" width="400" height="400"/><path d="M0 0L400 400M400 0L0 400M200 0L200 400M0 200L400 200" stroke="%23241810" stroke-width="0.5" opacity="0.3"/></svg>');
            background-size: 200px 200px;
            min-height: 100vh;
            padding: 20px;
            color: #e8dfcc;
        }

        .archive-cabinet {
            max-width: 1400px;
            margin: 0 auto;
            background: linear-gradient(180deg, #4a3f2f 0%, #3d3426 100%);
            border: 3px solid #2a2318;
            border-radius: 8px;
            box-shadow: 
                0 20px 60px rgba(0, 0, 0, 0.8),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            padding: 30px;
        }

        .cabinet-header {
            background: linear-gradient(180deg, #5a4d3a 0%, #4a3f2f 100%);
            border: 2px solid #8b7355;
            border-radius: 6px;
            padding: 25px;
            margin-bottom: 40px;
            box-shadow: 
                0 4px 12px rgba(0, 0, 0, 0.5),
                inset 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .cabinet-title {
            text-align: center;
            font-size: 2.5em;
            font-weight: 700;
            color: #e8dfcc;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
            margin-bottom: 10px;
            letter-spacing: 2px;
        }

        .cabinet-subtitle {
            text-align: center;
            font-size: 1.1em;
            color: #c4b5a0;
            margin-bottom: 25px;
            font-style: italic;
        }

        .home-button {
            display: block;
            width: 60px;
            height: 60px;
            margin: 0 auto 20px;
            background: linear-gradient(180deg, #8b7355 0%, #6d5a45 100%);
            border: 3px solid #5a4d3a;
            border-radius: 8px;
            color: #e8dfcc;
            font-size: 1.8em;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 
                0 4px 10px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .home-button:hover {
            background: linear-gradient(180deg, #9d8465 0%, #7d6a55 100%);
            transform: translateY(-3px);
            box-shadow: 
                0 6px 15px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        .controls {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
        }

        .search-container {
            flex: 1;
            min-width: 250px;
            max-width: 400px;
        }

        .search-label {
            display: block;
            font-size: 0.9em;
            color: #c4b5a0;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .search-input {
            width: 100%;
            padding: 12px 15px;
            background: #e8dfcc;
            border: 3px solid #8b7355;
            border-radius: 4px;
            font-family: 'Courier', monospace;
            font-size: 1em;
            color: #1a1410;
            box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
        }

        .search-input:focus {
            outline: none;
            border-color: #a68a6a;
            box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 8px rgba(166, 138, 106, 0.5);
        }

        .drawer-handles {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .drawer-handle {
            padding: 10px 18px;
            background: linear-gradient(180deg, #8b7355 0%, #6d5a45 100%);
            border: 2px solid #5a4d3a;
            border-radius: 4px;
            color: #e8dfcc;
            font-family: 'Old Standard TT', serif;
            font-size: 0.95em;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 
                0 3px 8px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        .drawer-handle:hover {
            background: linear-gradient(180deg, #9d8465 0%, #7d6a55 100%);
            transform: translateY(-2px);
            box-shadow: 
                0 5px 12px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        .drawer-handle.active {
            background: linear-gradient(180deg, #660000 0%, #4d0000 100%);
            border-color: #330000;
            color: #fff;
        }

        .cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 30px;
            padding: 20px 0;
        }

        .card-container {
            perspective: 1000px;
            height: 400px;
        }

        .card {
            position: relative;
            width: 100%;
            height: 100%;
            transition: transform 0.8s;
            transform-style: preserve-3d;
            cursor: pointer;
        }

        .card.flipped {
            transform: rotateY(180deg);
        }

        .card-face {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            border-radius: 6px;
            box-shadow: 
                0 8px 24px rgba(0, 0, 0, 0.6),
                inset 0 0 40px rgba(0, 0, 0, 0.3);
        }

        .card-front {
            background: linear-gradient(135deg, #e8dfcc 0%, #d4c9b3 100%);
            border: 4px solid #8b7355;
            display: flex;
            flex-direction: column;
            padding: 20px;
        }

        .card-photo {
            width: 100%;
            height: 200px;
            background: linear-gradient(135deg, #8b7355 0%, #6d5a45 100%);
            border: 3px solid #5a4d3a;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
        }
        
        .card-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: sepia(0.9) contrast(1.1) grayscale(0.3);
            box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
        }

        .card-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: center;
        }

        .card-name {
            font-size: 1.5em;
            font-weight: 700;
            color: #1a1410;
            margin-bottom: 8px;
            text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
        }

        .card-regiment {
            font-size: 1em;
            color: #4a3f2f;
            margin-bottom: 12px;
        }

        .card-honour {
            font-size: 0.85em;
            color: #660000;
            font-style: italic;
            text-transform: uppercase;
            letter-spacing: 1px;
            border-top: 2px solid #8b7355;
            padding-top: 10px;
        }

        .card-back {
            background: linear-gradient(135deg, #d4c9b3 0%, #c4b5a0 100%);
            border: 4px solid #8b7355;
            transform: rotateY(180deg);
            padding: 25px;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
        }

        .war-office-stamp {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 80px;
            height: 80px;
            border: 3px solid rgba(102, 0, 0, 0.4);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transform: rotate(-15deg);
            font-size: 0.65em;
            color: rgba(102, 0, 0, 0.5);
            font-weight: 700;
            text-align: center;
            line-height: 1.2;
        }

        .dispatch-header {
            font-family: 'Courier', monospace;
            font-size: 0.75em;
            color: #1a1410;
            text-transform: uppercase;
            margin-bottom: 15px;
            border-bottom: 2px solid #8b7355;
            padding-bottom: 10px;
        }

        .dispatch-body {
            font-family: 'Courier', monospace;
            font-size: 0.9em;
            color: #2a2318;
            line-height: 1.6;
            flex: 1;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .dispatch-footer {
            font-family: 'Courier', monospace;
            font-size: 0.75em;
            color: #660000;
            text-align: center;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 2px solid #8b7355;
            font-weight: 700;
        }

        .no-results {
            text-align: center;
            padding: 60px 20px;
            font-size: 1.3em;
            color: #c4b5a0;
            font-style: italic;
        }

        /* Poppy Animation */
        .poppy-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
            overflow: hidden;
        }

        .poppy {
            position: absolute;
            opacity: 0;
            animation: fall linear infinite;
        }
        
        .poppy svg {
            filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.4));
        }

        @keyframes fall {
            0% {
                opacity: 0;
                transform: translateY(-10px) rotate(0deg);
            }
            10% {
                opacity: 0.8;
            }
            90% {
                opacity: 0.8;
            }
            100% {
                opacity: 0;
                transform: translateY(100vh) rotate(360deg);
            }
        }

        /* Typewriter Effect */
        .dispatch-body.typewriter {
            overflow: hidden;
        }

        .typewriter-text {
            display: inline;
            border-right: 2px solid #2a2318;
            animation: blink 0.7s step-end infinite;
        }

        @keyframes blink {
            50% {
                border-color: transparent;
            }
        }

        @media (max-width: 768px) {
            .cabinet-title {
                font-size: 1.8em;
            }

            .controls {
                flex-direction: column;
            }

            .search-container {
                max-width: 100%;
            }

            .cards-grid {
                grid-template-columns: 1fr;
            }
        }
