/* Base reset and styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #050302;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Workbench container - dark wooden texture background */
.workbench {
    position: relative;
    width: 100%;
    height: 100vh;
    background: 
        radial-gradient(circle at 50% 30%, rgba(68, 44, 30, 0.4) 0%, rgba(13, 9, 7, 0.9) 70%),
        repeating-linear-gradient(45deg, rgba(20, 14, 10, 0.1) 0px, rgba(20, 14, 10, 0.1) 2px, transparent 2px, transparent 10px),
        linear-gradient(to right, #1c130e, #0a0604);
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 90, 0, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.device-wrapper {
    position: relative;
    z-index: 2;
    transform: rotateX(5deg);
    transform-style: preserve-3d;
}

/* 1980s Bakelite/Metal login device case */
.device-case {
    position: relative;
    width: 480px;
    background: linear-gradient(135deg, #2b1b11 0%, #150d08 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    box-shadow: 
        inset 1px 1px 2px rgba(255, 255, 255, 0.1),
        inset -2px -2px 6px rgba(0, 0, 0, 0.8),
        0 15px 35px rgba(0, 0, 0, 0.7),
        0 30px 60px rgba(0, 0, 0, 0.9);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    user-select: none;
}

/* Mechanical Screw Details */
.screw {
    position: absolute;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #8f8f8f 0%, #3a3a3a 100%);
    border-radius: 50%;
    box-shadow: 
        inset 1px 1px 1px rgba(255,255,255,0.4),
        1px 2px 2px rgba(0,0,0,0.6);
}
.screw::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 1px;
    width: 12px;
    height: 2px;
    background-color: #1a1a1a;
}
.top-left { top: 15px; left: 15px; transform: rotate(24deg); }
.top-right { top: 15px; right: 15px; transform: rotate(115deg); }
.bottom-left { bottom: 15px; left: 15px; transform: rotate(205deg); }
.bottom-right { bottom: 15px; right: 15px; transform: rotate(72deg); }

/* Recessed display panel holding the Nixie Tubes */
.display-panel-recess {
    position: relative;
    background: #090605;
    border: 4px solid #1c1410;
    border-radius: 12px;
    padding: 15px 12px 10px 12px;
    box-shadow: 
        inset 0 4px 12px rgba(0, 0, 0, 0.95),
        0 2px 4px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.panel-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    color: #4a3429;
    letter-spacing: 2px;
    text-align: center;
    text-shadow: 0 1px 0 rgba(255,255,255,0.02);
}

.nixie-tubes-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 125px;
    padding: 0 5px;
    background: linear-gradient(to bottom, #050302, #0d0908);
    border-radius: 6px;
    border: 1px solid #140d0a;
}

/* Nixie Tube Styling */
.nixie-tube {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 62px;
    height: 110px;
}

.glass-dome {
    position: relative;
    width: 44px;
    height: 85px;
    background: rgba(255, 110, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    border-radius: 22px 22px 4px 4px;
    box-shadow: 
        inset 0 6px 12px rgba(255, 255, 255, 0.06),
        inset 3px 0 6px rgba(255, 255, 255, 0.03),
        inset -3px 0 6px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Dark wire anode mesh behind digits */
.anode-mesh {
    position: absolute;
    top: 5px;
    left: 4px;
    right: 4px;
    bottom: 5px;
    border-radius: 17px 17px 3px 3px;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to right, rgba(255,255,255,0.01) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.01) 1px, transparent 1px);
    background-size: 3px 3px, 6px 6px, 6px 6px;
    border: 1px dashed rgba(255, 255, 255, 0.04);
    z-index: 1;
    pointer-events: none;
}

/* Base gas glow of the Nixie tube */
.base-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25px;
    background: radial-gradient(circle at bottom, rgba(255, 77, 0, 0.0) 0%, transparent 70%);
    z-index: 2;
    transition: background 0.2s ease;
    pointer-events: none;
}

.nixie-tube.active-glow .base-glow {
    background: radial-gradient(circle at bottom, rgba(255, 77, 0, 0.35) 0%, transparent 70%);
}

.filaments {
    position: relative;
    width: 100%;
    height: 80%;
    margin-top: 10px;
    z-index: 3;
}

/* Stacking and physical offsets of unlit wires */
.filament {
    position: absolute;
    top: 50%;
    left: 50%;
    font-family: 'Comfortaa', sans-serif;
    font-size: 38px;
    font-weight: 300;
    color: rgba(87, 45, 30, 0.06); /* Thin metallic unlit grid wire look */
    text-shadow: none;
    transition: color 0.15s ease, text-shadow 0.15s ease;
}

/* Micro-depth simulation offsets for stacked wire look */
.f0 { transform: translate(-52%, -50%) scale(1.02); }
.f1 { transform: translate(-49%, -52%) scale(0.97); }
.f2 { transform: translate(-50%, -47%) scale(1.01); }
.f3 { transform: translate(-51%, -51%) scale(0.99); }
.f4 { transform: translate(-48%, -49%) scale(1.00); }
.f5 { transform: translate(-50%, -50%) scale(1.03); }
.f6 { transform: translate(-53%, -48%) scale(0.98); }
.f7 { transform: translate(-49%, -53%) scale(1.02); }
.f8 { transform: translate(-51%, -47%) scale(0.99); }
.f9 { transform: translate(-50%, -51%) scale(1.01); }

/* Glowing neon/amber active digit */
.filament.active {
    color: #ff6a00;
    text-shadow: 
        0 0 2px #ff4500,
        0 0 6px rgba(255, 69, 0, 0.8),
        0 0 12px rgba(255, 69, 0, 0.5),
        0 0 20px rgba(255, 69, 0, 0.3);
    z-index: 10;
    animation: nixie-flicker 0.1s infinite alternate;
}

/* Incorrect passcode failure flicker */
.nixie-tube.error-flicker .filament.active {
    color: #ff2200;
    text-shadow: 
        0 0 2px #ff0000,
        0 0 8px rgba(255, 0, 0, 0.9),
        0 0 15px rgba(255, 0, 0, 0.6),
        0 0 30px rgba(255, 0, 0, 0.4);
    animation: error-flicker-anim 0.1s infinite alternate;
}

@keyframes nixie-flicker {
    0%, 100% { opacity: 0.96; filter: brightness(1.03); }
    50% { opacity: 0.90; filter: brightness(0.95); }
    80% { opacity: 0.98; filter: brightness(1.05); }
}

@keyframes error-flicker-anim {
    0%, 100% { opacity: 0.95; filter: brightness(1.1); }
    50% { opacity: 0.1; filter: brightness(0.2); }
}

/* Glass glare reflection overlay */
.glass-glare {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.08) 12%, 
        rgba(255, 255, 255, 0.15) 20%, 
        rgba(255, 255, 255, 0.0) 40%,
        rgba(255, 255, 255, 0) 80%,
        rgba(255, 255, 255, 0.05) 90%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 5;
    pointer-events: none;
    border-radius: 22px 22px 4px 4px;
}

/* Metal tube socket at the base of the glass dome */
.tube-socket {
    width: 48px;
    height: 15px;
    background: linear-gradient(to right, #444 0%, #666 25%, #222 55%, #777 85%, #333 100%);
    border: 1px solid #111;
    border-radius: 3px 3px 5px 5px;
    box-shadow: 
        inset 0 2px 2px rgba(255,255,255,0.2),
        0 2px 5px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

/* Control Panel Section */
.control-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Dymo Embossed Label Tape */
.dymo-holder {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 5px 0;
}

.dymo-tape {
    background-color: #7b1313; /* Dymo Red plastic */
    padding: 6px 16px;
    border-radius: 3px;
    box-shadow: 
        inset 1px 1px 0 rgba(255,255,255,0.2),
        inset -1px -1px 1px rgba(0,0,0,0.6),
        0 4px 8px rgba(0, 0, 0, 0.4),
        0 1px 2px rgba(0,0,0,0.2);
    border: 1px solid #5a0d0d;
    transform: rotate(-1.5deg);
    display: inline-block;
    max-width: max-content;
}

.dymo-text {
    font-family: 'Special Elite', monospace;
    color: #f7eded; /* Embossed white lettering */
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 5px;
    text-shadow: 
        1px 1px 0px rgba(0, 0, 0, 0.4),
        -1px -1px 0px rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
}

/* Rotary Dial Housing */
.dial-housing {
    position: relative;
    width: 290px;
    height: 290px;
    background: radial-gradient(circle, #1a110a 0%, #0d0805 100%);
    border: 8px solid #23160e;
    border-radius: 50%;
    box-shadow: 
        inset 0 4px 10px rgba(0,0,0,0.9),
        0 4px 8px rgba(255,255,255,0.03),
        0 10px 20px rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.rotary-dial {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 50%;
}

/* Background Plate with Stationary Numbers */
.dial-base-plate {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #eae3d2; /* Vintage off-white enamel paper */
    border: 4px solid #140d08;
    border-radius: 50%;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    z-index: 1;
}

.number-label {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin-left: -16px;
    margin-top: -16px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 26px;
    font-weight: bold;
    color: #1f1d18;
    text-align: center;
    line-height: 32px;
    /* Circular position layout */
    transform: rotate(var(--angle)) translate(0, -96px) rotate(calc(-1 * var(--angle)));
}

/* Rotating Finger Wheel */
.finger-wheel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 3px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        inset 0 0 25px rgba(255, 255, 255, 0.18),
        0 8px 24px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(1px);
    z-index: 2;
    cursor: grab;
    transform-origin: center center;
    will-change: transform;
}

.finger-wheel:active {
    cursor: grabbing;
}

.wheel-center-cap {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 76px;
    height: 76px;
    margin-left: -38px;
    margin-top: -38px;
    background: radial-gradient(circle, #e9e3d0 0%, #ccc1a4 100%);
    border: 4px solid #444;
    border-radius: 50%;
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.6),
        0 4px 10px rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4;
    pointer-events: none;
}

.cap-emblem {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    color: #4c4235;
    font-weight: bold;
    letter-spacing: 1px;
    border: 1px solid rgba(76, 66, 53, 0.2);
    padding: 3px 6px;
    border-radius: 2px;
}

/* Interactive finger holes */
.finger-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 38px;
    height: 38px;
    margin-left: -19px;
    margin-top: -19px;
    border-radius: 50%;
    /* Recessed opening visual effect */
    background: rgba(0, 0, 0, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        inset 0 3px 8px rgba(0, 0, 0, 0.95),
        0 1px 1px rgba(255, 255, 255, 0.15);
    /* Circular layout positioned exactly over stationary digits */
    transform: rotate(var(--angle)) translate(0, -96px);
    cursor: pointer;
    z-index: 3;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.finger-hole:hover {
    border-color: rgba(255, 90, 0, 0.5);
    background: rgba(255, 90, 0, 0.1);
}

/* Metal Finger Stop (Anschlag) */
.finger-stop {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 48px;
    margin-left: -16px;
    margin-top: -24px;
    /* Placed around 140 degrees (bottom right) */
    transform: rotate(140deg) translate(0, -94px) rotate(-140deg);
    z-index: 5;
    pointer-events: none;
}

/* Chrome stop hook */
.stop-bracket {
    position: absolute;
    bottom: 0;
    left: 6px;
    width: 20px;
    height: 36px;
    background: linear-gradient(to right, #ccc 0%, #fff 25%, #999 50%, #eee 75%, #666 100%);
    border: 1px solid #333;
    border-radius: 12px 2px 2px 2px;
    box-shadow: 
        1px 3px 5px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255,255,255,0.7);
    transform: rotate(-10deg);
}

.stop-buffer {
    position: absolute;
    top: -2px;
    left: 4px;
    width: 10px;
    height: 8px;
    background-color: #222; /* Black rubber bumper */
    border-radius: 2px;
}

/* Panel Footer & Status Indicator */
.panel-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.indicator-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.indicator-light-container {
    width: 22px;
    height: 22px;
    background-color: #120b08;
    border: 2px solid #2d1e16;
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.indicator-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    /* Default: Warm amber idle glow */
    background-color: #a04d00;
    box-shadow: 0 0 1px rgba(0,0,0,0.5);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Idle state glow */
.indicator-light.state-idle {
    background-color: #ffa200;
    box-shadow: 
        0 0 4px #ff8c00,
        0 0 8px rgba(255, 140, 0, 0.5);
}

/* Success state glow */
.indicator-light.state-success {
    background-color: #00ff2b;
    box-shadow: 
        0 0 5px #00ff22,
        0 0 10px rgba(0, 255, 34, 0.6);
}

/* Processing state glow */
.indicator-light.state-processing {
    background-color: #00bfff;
    box-shadow: 
        0 0 4px #00bfff,
        0 0 8px rgba(0, 191, 255, 0.5);
    animation: blink-processing 0.4s infinite alternate;
}

/* Error state flash */
.indicator-light.state-error {
    background-color: #ff0000;
    box-shadow: 
        0 0 5px #ff0000,
        0 0 12px rgba(255, 0, 0, 0.7);
    animation: blink-error 0.15s infinite;
}

@keyframes blink-processing {
    0% { opacity: 0.3; }
    100% { opacity: 1.0; }
}

@keyframes blink-error {
    0%, 100% { opacity: 1.0; }
    50% { opacity: 0.2; }
}

.indicator-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: #8c7365;
    letter-spacing: 1px;
}

.instruction-label {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 10px;
    color: #634737;
    text-align: center;
    max-width: 250px;
    line-height: 1.4;
}

/* Success Screen CRT Overlay (Hidden initially) */
.success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

.success-overlay.show {
    opacity: 1;
    pointer-events: all;
    transform: scale(1.0);
}

/* Vintage CRT glass screen simulation */
.crt-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #031306; /* Dark green phosphor background */
    border: 6px solid #23160e;
    border-radius: 22px;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.95);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: #00ff55;
    overflow: hidden;
}

/* Curved glass screen reflections */
.crt-screen::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 10;
}

/* Scanlines overlay */
.crt-scanlines {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.04), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.04));
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
    z-index: 8;
}

/* CRT flickering glow */
.crt-glow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle, rgba(0, 255, 85, 0.08) 0%, transparent 70%);
    animation: crt-flicker 0.15s infinite;
    pointer-events: none;
    z-index: 7;
}

@keyframes crt-flicker {
    0%, 100% { opacity: 0.95; }
    50% { opacity: 1.05; }
}

.success-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    height: 100%;
    width: 100%;
    z-index: 9;
}

/* Magic Eye Tube EM84 Simulator */
.magic-eye-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.magic-eye-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 8px;
    color: rgba(0, 255, 85, 0.4);
    letter-spacing: 1px;
}

.magic-eye-housing {
    width: 130px;
    height: 30px;
    background: #020a03;
    border: 2px solid #004d16;
    border-radius: 4px;
    padding: 3px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
}

.magic-eye-tube {
    width: 100%;
    height: 100%;
    background-color: #002208;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.magic-eye-phosphor {
    width: 100%;
    height: 100%;
    /* Bright phosphor green */
    background-color: #00ff44;
    box-shadow: 
        0 0 10px #00ff33,
        inset 0 0 4px rgba(255,255,255,0.7);
    display: flex;
    justify-content: center;
    position: relative;
}

/* Dark closing iris wedge of the EM84 indicator */
.magic-eye-iris {
    position: absolute;
    height: 100%;
    width: 60%; /* Represents gap width */
    background-color: #002208;
    box-shadow: 0 0 5px #002208;
    /* Soft edges of the beam deflection */
    filter: blur(1.5px);
    transition: width 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* When successfully unlocked, the dark shadow gap collapses to 0 */
.success-overlay.show .magic-eye-iris {
    width: 0%;
}

.magic-eye-sub {
    font-family: 'Share Tech Mono', monospace;
    font-size: 7px;
    color: rgba(0, 255, 85, 0.6);
    letter-spacing: 0.5px;
}

/* Success Terminal Text */
.success-message {
    text-align: center;
    margin: 15px 0;
}

.terminal-text {
    font-family: 'VT323', monospace;
    font-size: 16px;
    letter-spacing: 1px;
    color: rgba(0, 255, 85, 0.7);
    margin-bottom: 5px;
}

.cursor-blink::after {
    content: '_';
    animation: cursor-blink-anim 0.8s infinite;
}

@keyframes cursor-blink-anim {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.success-heading {
    font-family: 'VT323', monospace;
    font-size: 46px;
    letter-spacing: 2px;
    color: #00ff55;
    text-shadow: 
        0 0 4px rgba(0, 255, 85, 0.8),
        0 0 12px rgba(0, 255, 85, 0.5);
    margin-bottom: 8px;
}

.programmer-link {
    display: inline-block;
    margin-top: 14px;
    font-family: 'VT323', monospace;
    font-size: 20px;
    color: #00ff55;
    text-decoration: none;
    letter-spacing: 1px;
    opacity: 0.85;
    transition: opacity 0.15s ease, text-shadow 0.15s ease;
}

.programmer-link:hover {
    opacity: 1;
    text-shadow: 0 0 8px rgba(0, 255, 85, 0.8);
}

.terminal-subtext {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    color: rgba(0, 255, 85, 0.65);
    max-width: 320px;
    line-height: 1.4;
}

/* Action Reset Push Button */
.action-container {
    margin-top: 5px;
}

.retro-push-button {
    position: relative;
    background: linear-gradient(to bottom, #d62d2d 0%, #8b1313 100%);
    border: 2px solid #5a0707;
    border-radius: 6px;
    padding: 10px 24px;
    cursor: pointer;
    box-shadow: 
        0 4px 0 #520505,
        0 8px 12px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.25);
    transition: transform 0.05s ease, box-shadow 0.05s ease;
    outline: none;
}

.retro-push-button:active {
    transform: translateY(4px);
    box-shadow: 
        0 0px 0 #520505,
        0 4px 6px rgba(0,0,0,0.6),
        inset 0 1px 3px rgba(0,0,0,0.4);
}

.button-glow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    border-radius: 4px;
}

.button-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 2px 2px rgba(0,0,0,0.6);
}

/* Audio Activation Banner */
.audio-banner {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(22, 16, 12, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.audio-banner.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.audio-banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.audio-icon {
    font-size: 22px;
}

.audio-banner p {
    color: #e2ccb8;
    font-size: 12px;
    line-height: 1.4;
    max-width: 300px;
}

.audio-btn {
    background: linear-gradient(to bottom, #d2792c 0%, #9c4c0b 100%);
    border: 1px solid #733705;
    border-radius: 6px;
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    font-weight: bold;
    padding: 8px 12px;
    cursor: pointer;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: filter 0.15s ease;
}

.audio-btn:hover {
    filter: brightness(1.1);
}

/* Touch-action: none verhindert dass der Browser Touch-Events für Scroll abfängt */
.device-case,
.dial-housing,
.rotary-dial,
.finger-wheel,
.finger-hole {
    touch-action: none;
}

/* JS-gesteuerter Pressed-State ersetzt das sticky :hover auf Mobile */
.finger-hole.is-pressed {
    border-color: rgba(255, 90, 0, 0.5);
    background: rgba(255, 90, 0, 0.1);
}

/* Auf echten Touch-Geräten :hover deaktivieren damit es nicht klebt */
@media (hover: none) {
    .finger-hole:hover {
        border-color: rgba(255, 255, 255, 0.3);
        background: rgba(0, 0, 0, 0.55);
    }
}

/* Desktop: leichte Verkleinerung bei kleinen Fenstern */
@media (max-height: 700px) and (min-width: 541px) {
    .device-wrapper { transform: rotateX(5deg) scale(0.85); }
}
@media (max-height: 600px) and (min-width: 541px) {
    .device-wrapper { transform: rotateX(5deg) scale(0.72); }
}

/* Mobile: zoom skaliert den Layout-Footprint mit → zentriert korrekt */
@media (max-width: 540px) {
    .device-wrapper { zoom: 0.78; }
    .dymo-text { font-size: 16px; letter-spacing: 4px; }
    .audio-banner {
        bottom: 10px;
        left: 10px;
        right: 10px;
        transform: none;
    }
    .audio-banner-content { flex-wrap: wrap; gap: 10px; }
    .audio-banner p { max-width: 100%; }
}

@media (max-width: 430px) {
    .device-wrapper { zoom: 0.70; }
}

@media (max-width: 390px) {
    .device-wrapper { zoom: 0.64; }
}

@media (max-width: 360px) {
    .device-wrapper { zoom: 0.58; }
}
