:root {
    --bg-color: #0a0a0c;
    --primary: #ff0055;
    --secondary: #00f2ff;
    --accent: #7000ff;
    --text: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" style="fill:white"><circle cx="10" cy="10" r="5"/></svg>'), auto;
    touch-action: manipulation;
}

body {
    background-color: var(--bg-color);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.background-chaos {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 30%, var(--accent) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, var(--primary) 0%, transparent 40%);
    filter: blur(80px);
    opacity: 0.3;
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.2);
    }
}

.container {
    width: 95%;
    max-width: 600px;
    padding: 1.5rem;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: rotate(-0.5deg);
}

header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.glitch {
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    color: var(--text);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--secondary);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--primary);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
    }

    20% {
        clip: rect(62px, 9999px, 42px, 0);
    }

    100% {
        clip: rect(89px, 9999px, 98px, 0);
    }
}

.form-group {
    margin-bottom: 1.2rem;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-wrapper {
    display: flex;
    gap: 8px;
}

.borked-input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 0.8rem;
    border-radius: 12px;
    min-height: 50px;
    display: flex;
    align-items: center;
    font-family: 'Space Mono', monospace;
    color: var(--text);
    font-size: 0.9rem;
    overflow: hidden;
}

.borked-input.placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

.action-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 1rem;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 3px 3px 0 var(--accent);
}

.message-container {
    position: relative;
    height: 150px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

#message-input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    padding: 1rem;
    color: transparent;
    caret-color: var(--primary);
    resize: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

#physics-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.submit-container {
    position: relative;
    height: 120px;
    margin-top: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

#submit-btn,
.fake-btn {
    position: absolute;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.9rem;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 5;
}

.fake-btn {
    background: linear-gradient(45deg, #444, #222);
    opacity: 0.8;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--bg-color);
    width: 95%;
    max-width: 800px;
    height: 90vh;
    border: 2px solid var(--primary);
    border-radius: 24px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.modal-content h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

#falling-letters-zone {
    flex-grow: 1;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    overflow: hidden;
}

.falling-letter {
    position: absolute;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--secondary);
    user-select: none;
}

.phone-games-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex-grow: 1;
    overflow-y: auto;
}

.flag-section {
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.flag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 8px;
    margin-top: 8px;
    max-height: 150px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
}

.flag-item {
    font-size: 2rem;
    cursor: pointer;
    text-align: center;
    line-height: 1.2;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flag-item.selected {
    background: rgba(0, 242, 255, 0.2);
    border-radius: 6px;
}

.archery-game {
    flex-grow: 1;
    display: flex;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    min-height: 250px;
    overflow: hidden;
}

#bow-container {
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
}

#bow-wrapper {
    position: absolute;
    left: 20px;
    transition: transform 0.05s linear;
}

.css-bow {
    width: 40px;
    height: 100px;
    border: 4px solid #8b4513;
    border-left: 2px solid transparent;
    border-radius: 50%;
    position: relative;
}

.css-bow::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: #eee;
}

.css-arrow {
    width: 50px;
    height: 3px;
    background: #666;
    position: absolute;
    z-index: 10;
    transform-origin: center left;
}

.css-arrow::after {
    content: '';
    position: absolute;
    right: -10px;
    top: -6px;
    border: 8px solid transparent;
    border-left-color: #ff0055;
}

#target-zone {
    flex-grow: 1;
    position: relative;
    border-left: 1px dashed var(--glass-border);
}

.target-number {
    position: absolute;
    right: 15px;
    width: 35px;
    height: 35px;
    background: var(--accent);
    border: 1px solid var(--secondary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    color: white;
    font-size: 0.8rem;
}

.slot-controls {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.quick-domains {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.domain-btn {
    padding: 0.6rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--secondary);
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.7rem;
}

#stop-slot {
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    border: none;
    color: white;
    border-radius: 50px;
    font-weight: 900;
    font-size: 0.8rem;
}

#backspace-email {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border: none;
    color: white;
    border-radius: 12px;
    font-size: 1.2rem;
}

.modal-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.8rem;
}

.footer-btns {
    display: flex;
    align-items: center;
}

.close-btn {
    padding: 0.6rem 1.5rem;
    background: var(--secondary);
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.8rem;
}

#name-progress,
#phone-progress,
#email-progress {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--secondary);
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.physics-letter {
    position: absolute;
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    color: var(--text);
    pointer-events: auto;
    user-select: none;
    font-size: 1.2rem;
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .glitch {
        font-size: 1.8rem;
    }

    .slot-window {
        width: 60px;
    }

    .slot-char {
        font-size: 1.8rem;
    }

    .flag-item {
        font-size: 1.5rem;
    }

    .archery-game {
        min-height: 200px;
    }
}

.falling-letter {
    cursor: pointer;
    z-index: 100;
    padding: 30px;
    margin: -15px;
    touch-action: manipulation;
}

#aim-line {
    position: absolute;
    top: 50%;
    left: 40px;
    width: 300px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--secondary) 0, var(--secondary) 5px, transparent 5px, transparent 10px);
    transform-origin: left center;
    pointer-events: none;
    opacity: 0.5;
    z-index: 4;
}

.slot-machine-single {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
}

.slot-machine-single .slot-window {
    width: 100px;
    height: 360px;
    border: 3px solid var(--secondary);
    border-radius: 12px;
    background: #000;
    overflow: hidden;
    position: relative;
}

.slot-machine-single .slot-window::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: translateY(-50%);
    z-index: 10;
    opacity: 0.8;
    pointer-events: none;
    box-shadow: 0 0 10px var(--primary);
}

.slot-strip {
    position: absolute;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slot-char {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 900;
    color: var(--text);
}