/* Fake Windows Update - /app/fake-windows-update/ (moved out of index.php 16 Oct 2026) */
.prank-tool {
    max-width: 960px;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
}

/* Hero Section - Windows 11 Dark Style */
.hero-section {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, #202020 0%, #0a0a0a 100%);
    border-radius: 8px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid #333;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(0, 120, 212, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(96, 205, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section__icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.25rem;
    position: relative;
    z-index: 1;
}

.hero-section__icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(0, 120, 212, 0.4));
}

.hero-section__title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem;
    position: relative;
    z-index: 1;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.hero-section__subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* Windows 11 Style Control Panel */
.win-control-panel {
    background: linear-gradient(180deg, #2d2d2d 0%, #252525 100%);
    border-radius: 8px;
    padding: 0;
    margin-bottom: 2rem;
    border: 1px solid #404040;
    overflow: hidden;
    font-family: 'Segoe UI', system-ui, sans-serif;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.win-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #1f1f1f;
    border-bottom: 1px solid #404040;
}

.win-titlebar__icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.win-titlebar__icon svg {
    width: 100%;
    height: 100%;
    fill: #60cdff;
}

.win-titlebar__text {
    font-size: 13px;
    font-weight: 400;
    color: #fff;
    flex: 1;
}

.win-titlebar__buttons {
    display: flex;
    gap: 2px;
}

.win-titlebar__btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: default;
}

.win-titlebar__btn--minimize { background: #ffbd2e; }
.win-titlebar__btn--maximize { background: #28c940; }
.win-titlebar__btn--close { background: #ff5f57; }

.win-panel-content {
    padding: 24px;
}

.win-section {
    margin-bottom: 24px;
}

.win-section:last-child {
    margin-bottom: 0;
}

.win-section__title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.win-section__title i {
    color: #60cdff;
    font-size: 16px;
}

.win-section__title svg {
    width: 16px;
    height: 16px;
    fill: #60cdff;
}

/* OS Selection Cards - 4 cols desktop, 2 cols mobile, auto-fit between */
.win-os-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 900px) {
    .win-os-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .win-os-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.win-os-card {
    display: block;
    width: 100%;
    font-family: inherit;
    color: inherit;
    background: #363636;
    border: 2px solid #4a4a4a;
    border-radius: 6px;
    padding: 14px 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.win-os-card:hover {
    background: #404040;
    border-color: #60cdff;
}

.win-os-card.active {
    background: rgba(0, 120, 212, 0.15);
    border-color: #0078d4;
}

.win-os-card__icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.win-os-card__icon svg {
    width: 100%;
    height: 100%;
}

.win-os-card__name {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    margin: 0;
}

.win-os-card__desc {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    margin: 3px 0 0;
}

/* Input Fields */
.win-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.win-input-row--three {
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 700px) {
    .win-input-row, .win-input-row--three {
        grid-template-columns: 1fr;
    }
}

.win-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.win-input-label {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.8);
}

.win-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.win-input,
.win-select {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #1f1f1f;
    border: 1px solid #5a5a5a;
    border-bottom: 2px solid #0078d4;
    border-radius: 4px 4px 0 0;
    color: #fff;
    outline: none;
    transition: all 0.15s ease;
    width: 100%;
}

.win-input:focus,
.win-select:focus {
    background: #2a2a2a;
    border-color: #60cdff;
    border-bottom-color: #60cdff;
}

.win-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.win-input-unit {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    min-width: 60px;
}

.win-input-hint {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}

/* Toggle Switches */
.win-toggle-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}

@media (max-width: 700px) {
    .win-toggle-list {
        grid-template-columns: 1fr;
    }
}

.win-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    padding: 4px 0;
}

.win-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.win-toggle__switch {
    width: 36px;
    height: 20px;
    background: #5a5a5a;
    border-radius: 10px;
    position: relative;
    transition: background 0.2s ease;
    flex-shrink: 0;
    margin-top: 1px;
}

.win-toggle__switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.win-toggle input:checked + .win-toggle__switch {
    background: #0078d4;
}

.win-toggle input:checked + .win-toggle__switch::after {
    transform: translateX(16px);
}

.win-toggle input:focus-visible + .win-toggle__switch {
    box-shadow: 0 0 0 2px #60cdff;
}

.win-toggle__text {
    flex: 1;
}

.win-toggle__label {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    line-height: 1.3;
}

.win-toggle__hint {
    font-size: 11px;
    color: rgba(255,255,255,0.65);
    margin-top: 2px;
    line-height: 1.3;
}

/* Buttons */
.win-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #404040;
}

@media (max-width: 600px) {
    .win-btn-row {
        flex-direction: column;
    }
}

.win-btn {
    flex: 1;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Segoe UI', system-ui, sans-serif;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.win-btn i {
    font-size: 16px;
}

.win-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.win-btn-primary {
    background: #0078d4;
    color: #fff;
}

.win-btn-primary:hover { background: #1a86d9; }
.win-btn-primary:active { background: #006cbe; }

.win-btn-secondary {
    background: #363636;
    color: #fff;
    border: 1px solid #5a5a5a;
}

.win-btn-secondary:hover {
    background: #404040;
    border-color: #6a6a6a;
}

.win-btn-share {
    background: transparent;
    color: #60cdff;
    border: 1px solid #60cdff;
    flex: 0 0 auto;
    padding: 12px 18px;
}

.win-btn-share:hover {
    background: rgba(96, 205, 255, 0.1);
}

.win-btn-share.copied {
    background: #28c940;
    border-color: #28c940;
    color: #fff;
}

/* Tips Section */
.win-tips {
    background: rgba(0, 120, 212, 0.08);
    border: 1px solid rgba(0, 120, 212, 0.2);
    border-radius: 4px;
    padding: 16px;
    margin-top: 20px;
}

.win-tips__title {
    font-size: 13px;
    font-weight: 600;
    color: #60cdff;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.win-tips__title i {
    font-size: 16px;
}

.win-tips__title svg {
    width: 16px;
    height: 16px;
    fill: #60cdff;
}

.win-tips__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 600px) {
    .win-tips__list {
        grid-template-columns: 1fr;
    }
}

.win-tips__list li {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    padding-left: 16px;
    position: relative;
}

.win-tips__list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #60cdff;
    font-weight: bold;
}

kbd {
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    font-family: 'Segoe UI', monospace;
    background: #1f1f1f;
    border: 1px solid #5a5a5a;
    border-radius: 3px;
    color: #fff;
}

/* Features - Light Theme */
.features-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .features-row { grid-template-columns: 1fr; }
}

.feature-box {
    text-align: center;
    padding: 1.5rem 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}

.feature-box__icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.875rem;
    color: #0078d4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-box__icon i {
    font-size: 2.5rem;
}

.feature-box__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.feature-box__title {
    font-size: 1rem;
    font-weight: 600;
    color: #2f6e8d;
    margin: 0 0 0.375rem;
}

.feature-box__desc {
    font-size: 0.875rem;
    color: #5a7a8a;
    margin: 0;
    line-height: 1.4;
}

/* Info Cards */
.info-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.info-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.info-card__header svg {
    width: 20px;
    height: 20px;
    fill: #4bb2d5;
    flex-shrink: 0;
}

.info-card__header i {
    font-size: 1.25rem;
    color: #4bb2d5;
    flex-shrink: 0;
}

.info-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: #2f6e8d;
    margin: 0;
}

.info-card__body {
    padding: 1.25rem;
}

.info-card__body p {
    margin: 0 0 1rem;
    color: #5a7a8a;
    line-height: 1.6;
}

.info-card__body p:last-child {
    margin-bottom: 0;
}

/* Use Cases Grid */
.use-cases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 0;
}

@media (max-width: 700px) {
    .use-cases { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .use-cases { grid-template-columns: 1fr; }
}

.use-case {
    padding: 0.875rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.use-case__icon {
    color: #4bb2d5;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.use-case__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2f6e8d;
    margin: 0 0 0.25rem;
}

.use-case__desc {
    font-size: 0.8125rem;
    color: #5a7a8a;
    margin: 0;
    line-height: 1.4;
}

/* PRANK SCREENS - Full overlay base */
body.prank-active,
html.prank-active {
    overflow: hidden !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.prank-active::-webkit-scrollbar,
html.prank-active::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

body.prank-active,
html.prank-active {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

.update-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2147483647;
    cursor: none !important;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
}

.update-screen * { cursor: none !important; }
.update-screen.active { display: flex; }

/* Windows 11 Dot Spinner */
.dot-spinner {
    display: flex;
    gap: 8px;
    margin-bottom: 50px;
}

.dot-spinner .dot {
    width: 10px;
    height: 10px;
    background: #0078d4;
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite;
}

.dot-spinner .dot:nth-child(1) { animation-delay: 0s; }
.dot-spinner .dot:nth-child(2) { animation-delay: 0.2s; }
.dot-spinner .dot:nth-child(3) { animation-delay: 0.4s; }
.dot-spinner .dot:nth-child(4) { animation-delay: 0.6s; }
.dot-spinner .dot:nth-child(5) { animation-delay: 0.8s; }

@keyframes dotPulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Windows 10 Spinner */
.spinner-container {
    width: 100px;
    height: 100px;
    margin-bottom: 40px;
    position: relative;
}

.spinner {
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: #0078d4;
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.68, -0.15, 0.265, 1.15) infinite;
}

.spinner::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 4px solid transparent;
    border-top-color: rgba(0, 120, 212, 0.5);
    border-radius: 50%;
    animation: spin 2s cubic-bezier(0.68, -0.15, 0.265, 1.15) infinite reverse;
}

/* Windows 7 Aero Ring Spinner */
.aero-spinner {
    width: 80px;
    height: 80px;
    margin-bottom: 40px;
    position: relative;
}

.aero-spinner::before,
.aero-spinner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 6px solid transparent;
    animation: spin 2s linear infinite;
}

.aero-spinner::before {
    border-top-color: #4eb1ff;
    border-right-color: #4eb1ff;
    box-shadow: 0 0 18px rgba(78, 177, 255, 0.6);
}

.aero-spinner::after {
    inset: 12px;
    border: 4px solid transparent;
    border-bottom-color: #a4d8ff;
    border-left-color: #a4d8ff;
    animation: spin 1.4s linear infinite reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.percentage {
    font-size: 42px;
    font-weight: 300;
    color: #fff;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.status-text {
    font-size: 24px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    text-align: center;
    padding: 0 20px;
}

.sub-text {
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 0 20px;
}

/* BSOD Screen */
.bsod-screen {
    background: #0078d4 !important;
    padding: 40px;
    cursor: none !important;
}

.bsod-content {
    max-width: 900px;
    color: #fff;
}

.bsod-sad {
    font-size: 140px;
    margin-bottom: 20px;
}

.bsod-title {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.4;
}

.bsod-percent {
    font-size: 24px;
    margin-bottom: 40px;
}

.bsod-footer {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.bsod-qr {
    width: 120px;
    height: 120px;
    background: #fff;
    padding: 10px;
    flex-shrink: 0;
}

.bsod-info {
    font-size: 14px;
    line-height: 1.6;
}

/* Windows XP Setup Screen */
.xp-screen {
    background: #3a6ea5 !important;
    color: #fff;
    font-family: 'Tahoma', 'MS Sans Serif', sans-serif;
    padding: 0 !important;
    justify-content: flex-start !important;
}

.xp-topbar {
    width: 100%;
    height: 90px;
    background: linear-gradient(180deg, #084e9e 0%, #1167cf 100%);
    display: flex;
    align-items: center;
    padding: 0 30px;
    border-bottom: 2px solid #fff;
}

.xp-topbar__title {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.xp-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
    margin: 0 auto;
}

.xp-body h2 {
    font-size: 22px;
    margin: 0 0 18px;
    font-weight: bold;
}

.xp-body p {
    font-size: 16px;
    margin: 0 0 22px;
    line-height: 1.5;
    text-align: center;
}

.xp-progress-frame {
    width: 100%;
    max-width: 480px;
    height: 26px;
    background: #fff;
    border: 2px inset #d4d0c8;
    padding: 3px;
    box-sizing: border-box;
}

.xp-progress-bar {
    height: 100%;
    width: 0%;
    background: repeating-linear-gradient(90deg, #1166cf 0 14px, #fff 14px 17px);
    transition: width 0.4s linear;
}

.xp-step {
    margin-top: 14px;
    font-size: 14px;
    font-style: italic;
    color: #ffe;
}

.xp-bottom {
    width: 100%;
    height: 80px;
    background: linear-gradient(180deg, #084e9e 0%, #1167cf 100%);
    border-top: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    text-align: center;
    padding: 0 20px;
}

/* Linux Terminal Screen */
.linux-screen {
    background: #0c0c0c !important;
    color: #d4d4d4;
    font-family: 'Ubuntu Mono', 'Courier New', Consolas, monospace;
    padding: 0 !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
}

.linux-bar {
    width: 100%;
    height: 28px;
    background: #2c2c2c;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
    color: #ccc;
    font-size: 12px;
    flex-shrink: 0;
    border-bottom: 1px solid #1a1a1a;
}

.linux-bar__dots {
    display: flex;
    gap: 6px;
}

.linux-bar__dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.linux-bar__dot--red { background: #ff5f57; }
.linux-bar__dot--yellow { background: #ffbd2e; }
.linux-bar__dot--green { background: #28c940; }

.linux-bar__title {
    flex: 1;
    text-align: center;
    color: #aaa;
}

.linux-output {
    flex: 1;
    padding: 14px 18px;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-all;
    color: #d4d4d4;
}

.linux-output .green { color: #4ec94e; }
.linux-output .yellow { color: #f5d76e; }
.linux-output .blue { color: #5fa8ff; }
.linux-output .gray { color: #888; }
.linux-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: #d4d4d4;
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 1s steps(2) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* iOS Update Screen */
.ios-screen {
    background: #000 !important;
    color: #fff;
    flex-direction: column !important;
}

.ios-logo {
    margin-bottom: 60px;
}

.ios-logo svg {
    width: 90px;
    height: 90px;
    fill: #fff;
}

.ios-progress {
    width: 280px;
    height: 4px;
    background: #2a2a2a;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 24px;
}

.ios-progress-bar {
    height: 100%;
    width: 0%;
    background: #fff;
    transition: width 0.5s ease;
}

.ios-status {
    font-size: 17px;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    margin-bottom: 6px;
}

.ios-time {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
}

/* Countdown Overlay */
.countdown-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2147483646;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
}

.countdown-overlay.active { display: flex; }

.countdown-overlay__label {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
}

.countdown-overlay__num {
    font-size: 180px;
    font-weight: 200;
    line-height: 1;
    color: #60cdff;
    animation: countPulse 1s ease-out;
}

@keyframes countPulse {
    0% { transform: scale(0.4); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.countdown-overlay__cancel {
    margin-top: 32px;
    padding: 10px 22px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
}

.countdown-overlay__cancel:hover {
    background: rgba(255,255,255,0.1);
}

/* Critical Error Popup (mid-update) */
.error-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    max-width: 92vw;
    background: #f0f0f0;
    border: 1px solid #888;
    box-shadow: 0 8px 40px rgba(0,0,0,0.7);
    color: #000;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    z-index: 2147483648;
    display: none;
    cursor: default !important;
}

.error-popup * { cursor: default !important; }

.error-popup.active { display: block; }

.error-popup__bar {
    background: linear-gradient(180deg, #d20000 0%, #8a0000 100%);
    color: #fff;
    padding: 6px 10px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.error-popup__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
}

.error-popup__body {
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.error-popup__icon {
    font-size: 40px;
    color: #d20000;
    flex-shrink: 0;
}

.error-popup__text {
    font-size: 14px;
    line-height: 1.5;
    color: #000;
}

.error-popup__text strong { color: #b00; }

.error-popup__actions {
    padding: 0 20px 16px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.error-popup__btn {
    padding: 6px 18px;
    font-size: 13px;
    background: linear-gradient(180deg, #f5f5f5 0%, #d8d8d8 100%);
    border: 1px solid #888;
    border-radius: 2px;
    cursor: pointer;
    font-family: inherit;
}

.error-popup__btn:hover { background: linear-gradient(180deg, #fff 0%, #e0e0e0 100%); }

/* Just Kidding Reveal Screen */
.reveal-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #4bb2d5 0%, #3b779b 100%);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2147483647;
    color: #fff;
    text-align: center;
    padding: 24px;
    font-family: 'Segoe UI', sans-serif;
}

.reveal-screen.active { display: flex; }

.reveal-screen__emoji {
    font-size: 90px;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.reveal-screen__title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 12px;
}

.reveal-screen__subtitle {
    font-size: 18px;
    margin: 0 0 32px;
    opacity: 0.9;
    max-width: 520px;
}

.reveal-screen__btn {
    padding: 14px 32px;
    background: #fff;
    color: #3b779b;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}

.reveal-screen__btn:hover {
    background: #f0f0f0;
    color: #2f6e8d;
}

.reveal-screen__site {
    margin-top: 28px;
    font-size: 13px;
    opacity: 0.75;
}

.reveal-screen__site a {
    color: #fff;
    text-decoration: underline;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    background: #1f1f1f;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    z-index: 2147483647;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border: 1px solid #404040;
    font-family: 'Segoe UI', sans-serif;
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
}

/* Exit Hint */
.exit-hint {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.8);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2147483647;
    font-family: 'Segoe UI', sans-serif;
}

.exit-hint.visible { opacity: 1; }

/* Responsive */
@media (max-width: 600px) {
    .hero-section { padding: 2rem 1rem; }
    .hero-section__title { font-size: 1.5rem; }
    .win-panel-content { padding: 16px; }
    .percentage { font-size: 32px; }
    .status-text { font-size: 18px; }
    .bsod-sad { font-size: 80px; }
    .bsod-title { font-size: 18px; }
    .bsod-footer { flex-direction: column; align-items: center; text-align: center; }
    .countdown-overlay__num { font-size: 110px; }
    .reveal-screen__title { font-size: 30px; }
    .reveal-screen__subtitle { font-size: 15px; }
    .xp-topbar__title { font-size: 20px; }
    .xp-body h2 { font-size: 18px; }
    .linux-output { font-size: 11px; padding: 10px 12px; }
}

/* ================================================
   16 Oct 2026 - accessibility, mobile exit
   ================================================ */
.win-os-card__name,
.win-os-card__desc { display: block; }

/* Fixed overlays sized to the visible viewport (100vh overshoots on phones).
   border-box: the BSOD screen's 40px padding made it 80px wider than a phone. */
.update-screen { width: 100%; height: 100%; box-sizing: border-box; }

@media (max-width: 600px) {
    .bsod-screen { padding: 24px 20px; }
}

.win-os-card:focus-visible,
.win-btn:focus-visible,
.countdown-overlay__cancel:focus-visible,
.error-popup__btn:focus-visible,
.error-popup__close:focus-visible { outline: 2px solid #60cdff; outline-offset: 2px; }
.reveal-screen__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.win-btn { min-height: 44px; }
.countdown-overlay__cancel { min-height: 44px; }

@media (prefers-reduced-motion: reduce) {
    .reveal-screen__emoji,
    .countdown-overlay__num { animation: none; }
}

/* 16 Oct 2026 - toggle label and hint on separate lines (they are inline spans) */
.win-toggle__label,
.win-toggle__hint { display: block; }
