html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #000;
    overflow: hidden;
    font-family: 'Orbitron', sans-serif;
    color: #00d8ff;
}

.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 3rem;
    position: relative;
}

.screen {
    position: relative;
    width: 800px;
    height: 400px;
    background: #0a0a0a;
    border: 10px solid #00d8ff;
    border-radius: 20px;
    box-shadow: 0 0 60px #00d8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.5rem;
    overflow: hidden;
    transition: transform 1s ease-in-out;
    z-index: 5;
}

.screen.zoom {
    position: relative;
    top: 125px;
    transform: scale(2.5);
    z-index: 10;
}

.screen::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 2px, transparent 2px, transparent 4px);
    pointer-events: none;
    z-index: 2;
}

.screen-content {
    z-index: 3;
}

.loading-animation {
    display: inline-block;
    margin-left: 0.5rem;
}

.loading-animation::after {
    content: "...";
    animation: dots 1.2s steps(3, end) infinite;
}

@keyframes dots {
    0%   { content: ""; }
    33%  { content: "."; }
    66%  { content: ".."; }
    100% { content: "..."; }
}

/* === CONTROLLER === */
.controller {
    width: 400px;
    height: 200px;
    background: #222;
    border-radius: 100px 100px 60px 60px;
    position: relative;
    box-shadow: 0 0 20px rgba(0,255,255,0.2);
    transition: transform 1s ease, opacity 0.8s;
    z-index: 8;
}

.controller.hide {
    transform: translateY(300px);
    opacity: 0;
}

.stick {
    width: 40px;
    height: 40px;
    background: #555;
    border-radius: 50%;
    position: absolute;
    top: 40px;
    left: 50px;
}

.buttons {
    position: absolute;
    right: 50px;
    top: 30px;
    display: grid;
    grid-template-columns: repeat(2, 30px);
    gap: 10px;
}

.button {
    width: 30px;
    height: 30px;
    background: #00d8ff;
    border-radius: 50%;
}

.home-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #00d8ff;
    color: #000;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 0 10px #00d8ff;
    transition: 0.3s ease;
}

.home-btn:hover {
    transform: translateX(-50%) scale(1.2);
}
