:root {
    --primary: #0067b8;
    --dark-bg: #e6e6e6;
    --text-light: #242424;
    --black-bg: #f3f2f1;
    --prompt-bg: #ffffff;
    --border-color: rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--black-bg);
    color: var(--text-light);
    font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    user-select: none;
}

.background {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f3f2f1;
    padding: 20px;
}

.prompt-container {
    background-color: var(--prompt-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.05);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.header-text {
    flex-grow: 1;
}

.header-text h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px 0;
    letter-spacing: -0.5px;
}

.header-text h2 {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.countdown-section {
    display: flex;
    flex-direction: column;
    background-color: rgba(52, 133, 212, 0.1);
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 32px;
    border: 1px solid rgba(52, 133, 212, 0.2);
    border-left: 4px solid var(--primary);
}

.countdown-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 12px;
}

.progress-container {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #ff5252;
    width: 100%;
    transition: width 1s linear;
}

.countdown-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.timer {
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #ff5252;
    text-shadow: 0 0 10px rgba(255, 82, 82, 0.3);
    letter-spacing: 1px;
}

.steps-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--text-light);
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    counter-reset: step-counter;
}

.steps-list li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 40px;
    background-color: #f8f8f8;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: background-color 0.2s;
}

.steps-list li:hover {
    background-color: #f0f0f0;
}

.steps-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 8px rgba(52, 133, 212, 0.4);
}

.step-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px 14px 4px;
    gap: 16px;
}

.step-content > span {
    color: #242424;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

.keys {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

kbd {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-shadow: 0 1px 0 #cccccc, 0 1px 2px rgba(0,0,0,0.1);
    color: #333333;
    display: inline-block;
    font-family: 'Segoe UI', 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    padding: 5px 8px;
    white-space: nowrap;
}

.win-key {
    padding: 5px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.win-key svg {
    width: 12px;
    height: 12px;
}

.driver-id-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text-light);
}

.id-box-container {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.id-box {
    flex-grow: 1;
    background-color: #fafafa;
    border: 1px solid #cccccc;
    padding: 16px;
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 15px;
    color: var(--primary);
    text-align: center;
    letter-spacing: 2px;
    font-weight: 600;
    user-select: none;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.copy-btn {
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 54px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(52, 133, 212, 0.3);
}

.copy-btn:hover {
    background-color: #2a70b5;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(52, 133, 212, 0.4);
}

.copy-btn:active {
    background-color: #1f558a;
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(52, 133, 212, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.prompt-container {
    animation: fadeIn 0.4s ease-out forwards;
}

.reconnect-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.reconnect-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.reconnect-modal {
    background-color: var(--prompt-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 12px 24px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.warning-icon {
    width: 48px;
    height: 48px;
    color: #ffb74d;
    margin-bottom: 16px;
}

.success-icon {
    width: 48px;
    height: 48px;
    color: #10b981;
    margin-bottom: 16px;
}

.reconnect-modal h2 {
    margin: 0 0 12px 0;
    font-size: 22px;
    color: #242424;
}

.reconnect-modal p {
    margin: 0;
    color: #444444;
    line-height: 1.5;
    font-size: 15px;
}
