:root {
    --bg-color: #f4f0ea;
    --text-color: #111111;
    --border-color: #111111;
    --accent: #8b5cf6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#ui-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.1s ease;
}

.container {
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 6rem 2rem 2rem 2rem;
}

.back-link {
    position: fixed;
    top: 2rem; left: 2rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    border: 2px solid var(--border-color);
    padding: 0.5rem 1rem;
    background: #fff;
    box-shadow: 4px 4px 0 var(--border-color);
    z-index: 1000;
}

.title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 1rem;
}

.subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.hold-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hold-btn {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: #fff;
    border: 8px solid var(--border-color);
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 0 var(--border-color);
    transition: all 0.1s;
    user-select: none;
}

.hold-btn:active {
    transform: translateY(10px);
    box-shadow: 0 0 0 var(--border-color);
    background-color: var(--accent);
    color: #fff;
}

#progress-container {
    width: 100%;
    height: 30px;
    background: #fff;
    border: 4px solid var(--border-color);
    box-shadow: 6px 6px 0 var(--border-color);
    overflow: hidden;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--accent);
    transition: width 0.1s linear;
}

/* Realistic OS Dialogs */
.os-window {
    position: fixed;
    background: #c0c0c0; /* Classic Win95 Gray */
    border: 2px solid #fff;
    border-right-color: #808080;
    border-bottom-color: #808080;
    padding: 2px;
    width: 350px;
    box-shadow: 1px 1px 0 #000;
    z-index: 1000;
    font-family: 'Tahoma', 'Arial', sans-serif;
    color: #000;
    pointer-events: none;
    text-align: left;
}

.os-title-bar {
    background: linear-gradient(90deg, #000080, #1084d0);
    padding: 3px 5px;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.os-content {
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 13px;
}

.os-icon-error {
    width: 32px;
    height: 32px;
    background: #ff4757;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    border: 2px solid #fff;
}

.os-buttons {
    padding: 10px;
    text-align: center;
}

.os-btn {
    background: #c0c0c0;
    border: 1px solid #fff;
    border-right-color: #000;
    border-bottom-color: #000;
    padding: 3px 20px;
    font-size: 12px;
    box-shadow: inset 1px 1px #dfdfdf;
}

/* Modern Battery Warning (Win 10 style) */
.battery-warning {
    position: fixed;
    top: 30%; left: 0;
    width: 100%;
    background: #4a69bd; /* Windows 10 Blue */
    color: #fff;
    padding: 2.5rem 10%;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-family: 'Segoe UI', 'Outfit', sans-serif;
    pointer-events: none;
    animation: slideInLeft 0.5s ease-out;
}

.battery-warning h2 {
    font-size: 2.8rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.battery-warning p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.battery-close-btn {
    position: absolute;
    bottom: 2rem;
    right: 5%;
    border: 3px solid #fff;
    padding: 0.5rem 3rem;
    background: transparent;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.bsod {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #0000aa;
    color: #fff;
    padding: 10%;
    font-family: 'Lucida Console', monospace;
    z-index: 10000;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#win-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20000;
}

.main-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    padding: 1rem 2rem;
    background-color: var(--accent);
    color: #fff;
    border: 4px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 6px 6px 0 var(--border-color);
    cursor: pointer;
    margin-top: 2rem;
}

.hidden { display: none !important; }

/* Effects */
.shake-intense {
    animation: shake 0.1s infinite;
}

@keyframes shake {
    0% { transform: translate(0,0); }
    25% { transform: translate(-3px, 3px); }
    50% { transform: translate(3px, -3px); }
    75% { transform: translate(-3px, -3px); }
    100% { transform: translate(0,0); }
}

.glitch-effect {
    filter: hue-rotate(90deg) invert(1);
}
