        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #000000 0%, #1a0000 25%, #330000 50%, #1a0000 75%, #000000 100%);
            background-attachment: fixed;
            color: #ffffff;
            text-align: center;
            padding: 20px;
            min-height: 100vh;
            position: relative;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 20% 20%, rgba(255, 0, 0, 0.1) 0%, transparent 50%),
                        radial-gradient(circle at 80% 80%, rgba(255, 0, 0, 0.08) 0%, transparent 50%),
                        radial-gradient(circle at 40% 70%, rgba(255, 0, 0, 0.05) 0%, transparent 50%);
            pointer-events: none;
            z-index: -1;
        }

        #app-container {
            max-width: 800px;
            margin: auto;
            background: rgba(20, 20, 20, 0.4);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 0, 0, 0.2);
            color: #ffffff;
            padding: 30px;
            border-radius: 25px;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
                        inset 0 1px 0 rgba(255, 255, 255, 0.1);
            position: relative;
        }

        #app-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, 
                rgba(255, 0, 0, 0.1) 0%, 
                transparent 25%, 
                transparent 75%, 
                rgba(255, 0, 0, 0.05) 100%);
            border-radius: 25px;
            pointer-events: none;
            z-index: -1;
        }

        h1 {
            color: #ff4444;
            text-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
            margin-bottom: 10px;
            font-weight: 700;
        }

        .subtitle {
            color: #cccccc;
            margin-bottom: 30px;
            font-size: 16px;
        }

        .input-group {
            margin-bottom: 25px;
            text-align: left;
        }

        .input-row {
            display: flex;
            gap: 20px;
            align-items: center;
            margin-bottom: 15px;
            flex-wrap: wrap;
        }

        label {
            margin-right: 10px;
            font-weight: 600;
            color: #ff6666;
            min-width: 80px;
        }

        input[type="number"],
        input[type="file"],
        select {
            padding: 10px;
            border-radius: 10px;
            border: 1px solid rgba(255, 0, 0, 0.3);
            background: rgba(20, 20, 20, 0.6);
            backdrop-filter: blur(10px);
            color: #ffffff;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        input[type="number"]:focus,
        input[type="file"]:focus,
        select:focus {
            outline: none;
            border-color: #ff4444;
            box-shadow: 0 0 15px rgba(255, 68, 68, 0.3);
            background: rgba(30, 30, 30, 0.8);
        }

        .photo-upload {
            margin-bottom: 20px;
        }

        .photo-preview {
            margin-top: 10px;
            max-width: 200px;
            max-height: 200px;
            border-radius: 15px;
            border: 2px solid rgba(255, 0, 0, 0.3);
            display: none;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        }

        #food-selection {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }

        .food-item {
            cursor: pointer;
            padding: 15px;
            border: 1px solid rgba(255, 0, 0, 0.2);
            border-radius: 20px;
            transition: all 0.3s ease;
            background: rgba(20, 20, 20, 0.4);
            backdrop-filter: blur(15px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3),
                        inset 0 1px 0 rgba(255, 255, 255, 0.1);
            position: relative;
            overflow: hidden;
        }

        .food-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, 
                rgba(255, 0, 0, 0.05) 0%, 
                transparent 50%, 
                rgba(255, 0, 0, 0.02) 100%);
            border-radius: 20px;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .food-item:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 35px rgba(255, 68, 68, 0.2),
                        0 5px 15px rgba(0, 0, 0, 0.4),
                        inset 0 1px 0 rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 68, 68, 0.4);
        }

        .food-item:hover::before {
            opacity: 1;
        }

        .food-item.selected {
            border-color: #ff4444;
            background: rgba(255, 68, 68, 0.15);
            backdrop-filter: blur(20px);
            box-shadow: 0 0 30px rgba(255, 68, 68, 0.3),
                        inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        .food-item.selected::before {
            background: linear-gradient(135deg, 
                rgba(255, 68, 68, 0.2) 0%, 
                transparent 50%, 
                rgba(255, 68, 68, 0.1) 100%);
            opacity: 1;
        }

        .food-item img {
            width: 60px;
            height: 60px;
            margin-bottom: 10px;
        }

        .food-name {
            font-weight: 600;
            margin-bottom: 5px;
        }

        .food-nutrition {
            font-size: 12px;
            color: #aaaaaa;
        }

        .food-item.selected .food-nutrition {
            color: rgba(255, 255, 255, 0.9);
        }

        #calculate-btn {
            background: linear-gradient(135deg, #ff0000 0%, #cc0000 50%, #aa0000 100%);
            color: #fff;
            padding: 15px 30px;
            border: none;
            border-radius: 25px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            margin-top: 30px;
            transition: all 0.3s ease;
            box-shadow: 0 10px 25px rgba(255, 0, 0, 0.3),
                        inset 0 1px 0 rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            position: relative;
            overflow: hidden;
        }

        #calculate-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s ease;
        }

        #calculate-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(255, 0, 0, 0.4),
                        0 5px 15px rgba(0, 0, 0, 0.3),
                        inset 0 1px 0 rgba(255, 255, 255, 0.3);
            background: linear-gradient(135deg, #ff1111 0%, #dd0000 50%, #bb0000 100%);
        }

        #calculate-btn:hover::before {
            left: 100%;
        }

        #result {
            margin-top: 40px;
        }

        #life-bar-container {
            width: 100%;
            background: rgba(20, 20, 20, 0.6);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 0, 0, 0.2);
            border-radius: 20px;
            overflow: hidden;
            margin-bottom: 20px;
            box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
        }

        #life-bar {
            width: 100%;
            height: 40px;
            background: linear-gradient(90deg, #ff0000, #ff4444, #ff6666);
            transition: width 2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
            position: relative;
            overflow: hidden;
        }

        #life-bar::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, 
                transparent 30%, 
                rgba(255, 255, 255, 0.1) 50%, 
                transparent 70%);
            animation: shimmer 3s infinite;
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        #result-text {
            font-size: 28px;
            margin-top: 20px;
            color: #ff6666;
            font-weight: bold;
            text-shadow: 0 0 15px rgba(255, 102, 102, 0.5);
        }

        .result-details {
            margin-top: 20px;
            padding: 20px;
            background: rgba(20, 20, 20, 0.4);
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 0, 0, 0.2);
            border-radius: 20px;
            text-align: left;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3),
                        inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .nutrition-summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 15px;
        }

        .nutrition-item {
            padding: 15px;
            background: rgba(20, 20, 20, 0.6);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 0, 0, 0.2);
            border-radius: 15px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
                        inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .nutrition-value {
            font-size: 20px;
            font-weight: bold;
            color: #ff6666;
            text-shadow: 0 0 10px rgba(255, 102, 102, 0.3);
        }

        .nutrition-label {
            font-size: 12px;
            color: #cccccc;
            margin-top: 5px;
        }

        #health-tips {
            margin-top: 30px;
            padding: 20px;
            background: rgba(20, 20, 20, 0.4);
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 0, 0, 0.2);
            border-radius: 20px;
            text-align: left;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3),
                        inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .tips-list {
            list-style: none;
            padding: 0;
        }

        .tips-list li {
            padding: 10px 0;
            border-bottom: 1px solid rgba(255, 0, 0, 0.2);
            color: #dddddd;
        }

        .tips-list li:before {
            content: "� ";
            margin-right: 8px;
        }

        h3, h4 {
            color: #ff6666;
            text-shadow: 0 0 10px rgba(255, 102, 102, 0.3);
        }

        /* Reaper Animation Styles */
        .reaper-container {
            position: relative;
            width: 100%;
            height: 200px;
            margin: 20px 0;
            overflow: hidden;
            border-radius: 15px;
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 0, 0, 0.6) 100%);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 0, 0, 0.3);
            box-shadow: inset 0 0 50px rgba(255, 0, 0, 0.1);
        }

        .reaper {
            position: absolute;
            bottom: 10px;
            font-size: 80px;
            transition: all 2s ease-in-out;
            filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.5));
            z-index: 2;
        }

        .reaper.safe {
            left: -100px;
            opacity: 0.3;
            transform: scale(0.8);
        }

        .reaper.warning {
            left: 20%;
            opacity: 0.6;
            transform: scale(0.9);
            animation: reaper-lurk 3s infinite ease-in-out;
        }

        .reaper.danger {
            left: 50%;
            opacity: 0.8;
            transform: scale(1);
            animation: reaper-approach 2s infinite ease-in-out;
        }

        .reaper.critical {
            left: 75%;
            opacity: 1;
            transform: scale(1.2);
            animation: reaper-menace 1s infinite ease-in-out;
        }

        @keyframes reaper-lurk {
            0%, 100% { transform: scale(0.9) translateY(0px); }
            50% { transform: scale(0.95) translateY(-5px); }
        }

        @keyframes reaper-approach {
            0%, 100% { transform: scale(1) translateY(0px) rotate(-2deg); }
            50% { transform: scale(1.05) translateY(-8px) rotate(2deg); }
        }

        @keyframes reaper-menace {
            0%, 100% { 
                transform: scale(1.2) translateY(0px) rotate(-5deg);
                filter: drop-shadow(0 0 30px rgba(255, 0, 0, 0.8));
            }
            50% { 
                transform: scale(1.3) translateY(-10px) rotate(5deg);
                filter: drop-shadow(0 0 40px rgba(255, 0, 0, 1));
            }
        }

        .death-timer {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            color: #ff6666;
            font-size: 24px;
            font-weight: bold;
            text-shadow: 0 0 15px rgba(255, 102, 102, 0.8);
            z-index: 3;
        }

        .death-message {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            color: #ffaaaa;
            font-size: 14px;
            text-align: center;
            opacity: 0.8;
            z-index: 3;
        }

        .fog-effect {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 60px;
            background: linear-gradient(to top, 
                rgba(255, 0, 0, 0.1) 0%,
                rgba(255, 0, 0, 0.05) 50%,
                transparent 100%);
            animation: fog-drift 4s infinite ease-in-out alternate;
        }

        @keyframes fog-drift {
            0% { opacity: 0.3; transform: translateX(-10px); }
            100% { opacity: 0.6; transform: translateX(10px); }
        }

        .reaper-eyes {
            position: absolute;
            width: 6px;
            height: 6px;
            background: #ff0000;
            border-radius: 50%;
            box-shadow: 0 0 10px #ff0000;
            animation: reaper-blink 3s infinite;
        }

        .reaper-eyes.left {
            top: 25px;
            left: 35px;
        }

        .reaper-eyes.right {
            top: 25px;
            left: 45px;
        }

        @keyframes reaper-blink {
            0%, 90%, 100% { opacity: 1; }
            95% { opacity: 0; }
        }
