:root {
    --bg-primary: #050505;
    --bg-elevated: rgba(255, 255, 255, 0.03);
    --bg-hover: rgba(255, 255, 255, 0.06);
    --bg-input: rgba(255, 255, 255, 0.02);

    --text-primary: #fafafa;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-tertiary: rgba(255, 255, 255, 0.4);

    --accent-red: #ef4444;
    --accent-red-bright: #f87171;
    --accent-red-dark: #dc2626;
    --accent-glow: rgba(239, 68, 68, 0.4);

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-input: rgba(255, 255, 255, 0.12);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 10px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    --font-mono: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow: hidden;
    perspective: 1200px;
    perspective-origin: 50% 50%;
}

::selection {
    background: var(--accent-red);
    color: white;
}

:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.scene {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 10vh;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.bg-layer {
    position: absolute;
    inset: -100px;
    pointer-events: none;
    transform-style: preserve-3d;
}

.bg-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 40%, rgba(239, 68, 68, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 45%, rgba(239, 68, 68, 0.05) 0%, transparent 60%);
    transform: translateZ(-200px) scale(1.4);
}

.grid-texture {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, black 0%, transparent 70%);
    transform: translateZ(-150px) scale(1.3);
}

.grid-cursor {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(239, 68, 68, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(239, 68, 68, 0.3) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out-expo);
    --mouse-x: 50%;
    --mouse-y: 50%;
    mask-image: radial-gradient(circle 180px at var(--mouse-x) var(--mouse-y), black 0%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle 180px at var(--mouse-x) var(--mouse-y), black 0%, black 30%, transparent 100%);
    transform: translateZ(-80px) scale(1.15);
}

.grid-cursor.active {
    opacity: 1;
}

.floating-dots {
    position: absolute;
    inset: 0;
    transform: translateZ(-100px) scale(1.2);
}

.floating-dots::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.4);
    top: 10%;
    left: 5%;
    box-shadow:
        calc(8vw) calc(25vh) 0 rgba(239, 68, 68, 0.2),
        calc(12vw) calc(60vh) 0 rgba(239, 68, 68, 0.25),
        calc(6vw) calc(80vh) 0 rgba(255, 255, 255, 0.1),
        calc(88vw) calc(20vh) 0 rgba(239, 68, 68, 0.2),
        calc(92vw) calc(55vh) 0 rgba(239, 68, 68, 0.25),
        calc(85vw) calc(75vh) 0 rgba(255, 255, 255, 0.1),
        calc(18vw) calc(15vh) 0 rgba(255, 255, 255, 0.08),
        calc(82vw) calc(85vh) 0 rgba(255, 255, 255, 0.08);
}

.particles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateZ(-60px) scale(1.1);
}

.particle-cross {
    position: absolute;
    font-size: 16px;
    font-weight: 300;
    font-family: var(--font-mono);
    color: rgba(239, 68, 68, 0.35);
    opacity: 0;
    will-change: transform, opacity;
    animation: crossFloat var(--duration) ease-in-out var(--delay) infinite;
}

@keyframes crossFloat {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.8);
    }
    15% {
        opacity: var(--max-opacity);
        transform: translate(calc(var(--tx) * 0.15), calc(var(--ty) * 0.15)) scale(1);
    }
    85% {
        opacity: var(--max-opacity);
        transform: translate(calc(var(--tx) * 0.85), calc(var(--ty) * 0.85)) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0.8);
    }
}


.container {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    transform-style: preserve-3d;
}

.title {
    font-size: clamp(2.5rem, 10vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
    transform-style: preserve-3d;
    transform: translateZ(60px);
}

.title-poke {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-bright));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transform: translateZ(10px);
}

.title-craft {
    color: var(--text-primary);
    display: inline-block;
    transform: translateZ(10px);
}

.ip-field {
    width: 100%;
    transform-style: preserve-3d;
    transform: translateZ(80px);
    transition: transform 0.3s var(--ease-out-expo);
}

.ip-field:hover {
    transform: translateZ(120px);
}

.ip-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: translateZ(35px);
}

.ip-input {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    transform-style: preserve-3d;
    transform: translateZ(10px);
}

.ip-input::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0.5;
    pointer-events: none;
}

.ip-input:hover {
    background: var(--bg-hover);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 8px 40px rgba(239, 68, 68, 0.15);
    transform: translateZ(25px);
}

.ip-input:active {
    transform: translateZ(20px) scale(0.98);
}

.ip-value {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    transform: translateZ(15px);
}

.ip-action {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    transition: all 0.3s var(--ease-out-expo);
    transform: translateZ(18px);
}

.ip-input:hover .ip-action {
    color: var(--accent-red);
    transform: translateZ(25px);
}

.ip-input.copied .ip-action {
    color: var(--accent-red);
}

.install-box {
    position: relative;
    width: 100%;
    padding: 24px;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-lg);
    transform-style: preserve-3d;
    transform: translateZ(80px);
    transition: all 0.3s var(--ease-out-expo);
}

.install-box:hover {
    border-color: rgba(239, 68, 68, 0.25);
    transform: translateZ(120px);
}

.install-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.4s var(--ease-out-expo);
}

.install-box:hover::before {
    opacity: 0.8;
}

.install-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    transform: translateZ(25px);
}

.install-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform-style: preserve-3d;
    transform: translateZ(10px);
}

.install-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    margin: -12px;
    border-radius: var(--radius-md);
    cursor: default;
    transform-style: preserve-3d;
    transform: translateZ(5px);
    transition: all 0.3s var(--ease-out-expo);
}

.install-step:hover {
    background: var(--bg-hover);
    transform: translateZ(25px);
}

.step-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid var(--accent-red);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-red);
    transition: all 0.3s var(--ease-out-expo);
    transform: translateZ(15px);
}

.install-step:hover .step-num {
    background: var(--accent-red);
    color: white;
    transform: translateZ(25px) scale(1.15);
}

.step-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
    transform: translateZ(12px);
}

.install-step:hover .step-text {
    transform: translateZ(20px);
}

.step-text a {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s var(--ease-out-expo);
}

.step-text a:hover {
    color: var(--accent-red-bright);
}

.step-text a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-red);
    transition: width 0.3s var(--ease-out-expo);
}

.step-text a:hover::after {
    width: 100%;
}

.step-text strong {
    color: var(--text-primary);
    font-weight: 500;
}

.install-note {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    color: var(--text-tertiary);
    transform: translateZ(8px);
}

@media (max-width: 480px) {
    .container {
        padding: 24px 16px;
        gap: 20px;
    }

    .title {
        font-size: clamp(1.75rem, 14vw, 2.5rem);
    }

    .ip-input {
        padding: 16px;
    }

    .install-box {
        padding: 18px;
    }

    .step-num {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .install-step {
        gap: 14px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 20px 14px;
    }

    .title {
        font-size: 1.5rem;
    }

    .ip-value {
        font-size: 0.9rem;
    }

    .step-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 32px 18px;
        gap: 24px;
    }

    .install-box {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 36px 20px;
        gap: 28px;
    }

    .title {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .ip-label,
    .map-label {
        font-size: 0.8rem;
    }

    .step-text {
        font-size: 0.9rem;
    }

    .install-note {
        font-size: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    body {
        perspective: none;
    }

    .scene {
        transform-style: flat;
        transform: none !important;
    }

    .bg-layer,
    .bg-glow,
    .grid-texture,
    .floating-dots,
    .particles-container {
        transform-style: flat;
        transform: none;
    }

    .grid-cursor {
        display: none;
    }

    .particle-cross {
        display: none;
    }

    .container,
    .title,
    .ip-field,
    .ip-input,
    .install-box,
    .install-step,
    .step-num,
    .step-text {
        transform-style: flat;
        transform: none;
    }

    .ip-field:hover,
    .ip-input:hover,
    .install-box:hover,
    .install-step:hover {
        transform: none;
    }

    .ip-input:active {
        background: var(--bg-hover);
        border-color: rgba(239, 68, 68, 0.4);
    }

    .install-step:active {
        background: var(--bg-hover);
    }

    .install-step:active .step-num {
        background: var(--accent-red);
        color: white;
    }

    .ip-input {
        min-height: 48px;
    }

    .install-step {
        min-height: 44px;
        padding: 12px;
        margin: 0;
    }

    .step-text a {
        padding: 4px 2px;
        margin: -4px -2px;
        display: inline-block;
    }

    .bg-glow {
        background: radial-gradient(ellipse 80% 50% at 50% 40%, rgba(239, 68, 68, 0.08) 0%, transparent 50%);
    }

    .floating-dots::before {
        box-shadow: none;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .scene {
        align-items: flex-start;
    }

    .container {
        padding: 20px;
        gap: 16px;
        max-width: 600px;
    }

    .title {
        font-size: 1.75rem;
    }

    .install-box {
        padding: 16px;
    }

    .install-steps {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .install-step {
        margin: 0;
    }

    .install-note {
        grid-column: 1 / -1;
        margin-top: 12px;
        padding-top: 12px;
    }
}

.server-section {
    position: absolute;
    right: calc(50% + 280px);
    top: calc(50% - 130px - 5vh);
    transform: translateZ(80px);
    width: 300px;
    height: 500px;
    transform-style: preserve-3d;
    transition: all 0.4s var(--ease-out-expo);
}

.server-section:hover {
    transform: translateZ(120px);
}

.server-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: translateZ(35px);
}

.server-panel {
    position: relative;
    width: 100%;
    height: calc(100% - 28px);
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-lg);
    transform-style: preserve-3d;
    transform: translateZ(10px);
    transition: all 0.3s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
}

.server-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2px;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
    opacity: 0.5;
}

.server-section:hover .server-panel {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 8px 40px rgba(239, 68, 68, 0.15);
    transform: translateZ(25px);
}

.server-header {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
    transform-style: preserve-3d;
}

.server-logo {
    width: 62px;
    height: 62px;
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transform: translateZ(25px);
    transition: all 0.3s var(--ease-out-expo);
}

.server-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.server-logo-placeholder {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-red);
}

.server-section:hover .server-logo {
    border-color: rgba(239, 68, 68, 0.3);
    transform: translateZ(35px);
}

.server-meta {
    flex: 1;
    min-width: 0;
    transform-style: preserve-3d;
}

.server-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    transform: translateZ(25px);
}

.server-version {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    transform: translateZ(20px);
}

.status-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    transform: translateZ(20px);
    transition: all 0.3s var(--ease-out-expo);
}

.server-section:hover .status-badge {
    transform: translateZ(20px);
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-tertiary);
    flex-shrink: 0;
}

.status-indicator.online {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.status-indicator.offline {
    background: var(--accent-red);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.status-text {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.players-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
    transform-style: preserve-3d;
}

.players-header {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
    transform-style: preserve-3d;
}

.players-header-title {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: translateZ(30px);
}

.player-count {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-tertiary);
    transform: translateZ(30px);
}

.player-count-number {
    color: var(--accent-red);
}

.players-list-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 320px;
    perspective: 800px;
}

.players-list-wrapper::-webkit-scrollbar {
    width: 3px;
}

.players-list-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.players-list-wrapper::-webkit-scrollbar-thumb {
    background: var(--border-input);
    border-radius: 0;
}

.players-list-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

.players-list {
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    transform-style: preserve-3d;
    overflow: visible;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 2px;
    transition: all 0.3s var(--ease-out-expo);
    cursor: default;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(5px);
}

.player-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 0;
    background: var(--accent-red);
    transition: height 0.3s var(--ease-out-expo);
}

.player-item:hover {
    background: var(--bg-hover);
    transform: translateZ(25px);
}

.player-item:hover::before {
    height: 50%;
}

.player-avatar {
    width: 24px;
    height: 24px;
    border-radius: 2px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    flex-shrink: 0;
    image-rendering: pixelated;
    transition: all 0.3s var(--ease-out-expo);
    transform-style: preserve-3d;
    transform: translateZ(8px);
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

.player-item:hover .player-avatar {
    transform: translateZ(20px) scale(1.1);
    border-color: rgba(239, 68, 68, 0.4);
}

.player-info {
    flex: 1;
    min-width: 0;
    transform-style: preserve-3d;
    transform: translateZ(6px);
}

.player-item:hover .player-info {
    transform: translateZ(15px);
}

.player-item:hover .player-name {
    transform: translateZ(50px);
}

.player-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform 0.3s var(--ease-out-expo);
    transform-style: preserve-3d;
    transform: translateZ(15px);
}

.player-badge {
    font-size: 0.5rem;
    padding: 2px 4px;
    border-radius: 1px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
    transition: all 0.3s var(--ease-out-expo);
    transform: translateZ(10px);
}

.player-item:hover .player-badge {
    transform: translateZ(22px);
}

.player-badge.admin {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
    color: var(--accent-red);
}

.players-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 20px;
    text-align: center;
}

.players-empty-icon {
    font-size: 1.5rem;
    opacity: 0.4;
}

.players-empty-text {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}

.players-empty-text strong {
    color: var(--text-secondary);
    font-weight: 500;
}

.server-loading {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
}

.loading-bar {
    width: 40px;
    height: 2px;
    background: var(--border-subtle);
    overflow: hidden;
    position: relative;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
    animation: loadingSlide 0.8s ease-in-out infinite;
}

@keyframes loadingSlide {
    0% { left: -20px; }
    100% { left: 40px; }
}

.loading-text {
    font-size: 0.65rem;
    color: var(--text-tertiary);
}

.map-section {
    position: absolute;
    left: calc(50% + 280px);
    top: calc(50% - 130px - 5vh);
    transform: translateZ(80px);
    width: 380px;
    height: 500px;
    transform-style: preserve-3d;
    transition: all 0.4s var(--ease-out-expo);
}

.map-section:hover {
    transform: translateZ(120px);
}

.map-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: translateZ(35px);
}

.map-frame {
    position: relative;
    width: 100%;
    height: calc(100% - 28px);
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transform-style: preserve-3d;
    transform: translateZ(10px);
    transition: all 0.3s var(--ease-out-expo);
}

.map-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
    opacity: 0.5;
    z-index: 1;
}

.map-section:hover .map-frame {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 8px 40px rgba(239, 68, 68, 0.15);
    transform: translateZ(25px);
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-lg);
    aspect-ratio: 380 / 472;
    background-color: var(--bg-primary);
}

@media (max-width: 1200px) {
    .map-section,
    .server-section {
        display: none;
    }
}

/* Classe utilitaire pour l'accessibilité - texte invisible mais lu par les lecteurs d'écran */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
