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

body {
    font-family: 'Orbitron', monospace;
    background: #000000;
    color: #00ffff;
    overflow: hidden;
    user-select: none;
}

.game-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at center, #001122 0%, #000000 70%);
    position: relative;
}

/* Quantum Grid Background */
.game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

/* Header */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid #00ffff;
    z-index: 10;
    position: relative;
}

.game-title {
    font-size: 2rem;
    font-weight: 900;
    color: #00ffff;
    text-shadow: 0 0 20px #00ffff;
    letter-spacing: 4px;
}

.game-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.dimension-indicator {
    transition: all 0.3s ease;
}

.dimension-indicator.beta {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}

/* Main Game Layout */
.game-layout {
    display: flex;
    height: calc(100vh - 140px);
    gap: 20px;
    padding: 0 20px;
}

/* Game Viewport */
.game-viewport {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5;
    min-width: 0;
}

#gameCanvas {
    border: 2px solid #00ffff;
    background: rgba(0, 0, 0, 0.8);
    box-shadow:
        0 0 50px rgba(0, 255, 255, 0.3),
        inset 0 0 50px rgba(0, 255, 255, 0.1);
    image-rendering: pixelated;
    outline: none;
}

#gameCanvas:focus {
    box-shadow:
        0 0 60px rgba(0, 255, 255, 0.5),
        inset 0 0 50px rgba(0, 255, 255, 0.2);
}

/* Game UI Overlay */
.game-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
}

.controls-hint {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: auto;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: rgba(0, 255, 255, 0.7);
}

.key {
    padding: 5px 10px;
    border: 1px solid #00ffff;
    border-radius: 3px;
    background: rgba(0, 255, 255, 0.1);
    font-weight: 700;
    min-width: 60px;
    text-align: center;
    text-shadow: 0 0 5px #00ffff;
}

.action {
    font-weight: 400;
    letter-spacing: 1px;
}

/* Modal System */
.modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    z-index: 20;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(0, 20, 40, 0.95);
    border: 2px solid #00ffff;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.5);
    max-width: 400px;
    width: 90%;
}

.modal-content h2 {
    font-size: 1.8rem;
    color: #00ffff;
    margin-bottom: 20px;
    text-shadow: 0 0 20px #00ffff;
    letter-spacing: 3px;
}

.modal-controls {
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
}

.control-hint {
    font-size: 0.9rem;
    color: #ccc;
    margin: 0;
    text-align: center;
    letter-spacing: 1px;
}

.control-hint .key {
    color: #00ffff;
    font-weight: 700;
    padding: 2px 6px;
    border: 1px solid #00ffff;
    border-radius: 3px;
    background: rgba(0, 255, 255, 0.1);
    margin: 0 2px;
    font-size: 0.8rem;
}

.level-stats, .final-stats {
    margin: 20px 0;
    font-size: 1rem;
    color: #ccc;
}

.level-stats p, .final-stats p {
    margin: 10px 0;
    letter-spacing: 1px;
}

.level-stats span, .final-stats span {
    color: #00ffff;
    font-weight: 700;
    text-shadow: 0 0 5px #00ffff;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 12px 25px;
    margin: 10px;
    border: 2px solid;
    background: transparent;
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary {
    border-color: #00ffff;
    color: #00ffff;
}

.btn-primary:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    text-shadow: 0 0 10px #00ffff;
}

.btn-secondary {
    border-color: #666;
    color: #666;
}

.btn-secondary:hover {
    border-color: #999;
    color: #999;
    background: rgba(255, 255, 255, 0.1);
}

/* Instructions Sidebar */
.instructions-sidebar {
    width: 350px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ffff;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    z-index: 10;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.sidebar-content {
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: #00ffff #000;
}

.sidebar-content::-webkit-scrollbar {
    width: 8px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: #00ffff;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #00cccc;
}

.sidebar-content h3 {
    font-size: 1rem;
    color: #00ffff;
    margin-bottom: 15px;
    margin-top: 25px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #00ffff;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 5px;
}

.sidebar-content h3:first-child {
    margin-top: 0;
}

.sidebar-content p {
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.6;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

/* Element Grid */
.element-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.element-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 0;
    position: relative;
}

.element-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 1px;
    background: rgba(0, 255, 255, 0.3);
}

.element-icon {
    font-size: 1.2rem;
    min-width: 24px;
    text-align: center;
}

.element-desc {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #ccc;
}

.element-desc strong {
    color: #00ffff;
    display: block;
    margin-bottom: 2px;
}

/* Mechanics List */
.mechanics-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.mechanic-item {
    padding: 8px 12px;
    background: rgba(0, 255, 255, 0.05);
    border-left: 3px solid #00ffff;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #ccc;
    position: relative;
}

.mechanic-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 1px;
    background: rgba(0, 255, 255, 0.2);
}

.mechanic-item strong {
    color: #00ffff;
}

/* Controls Grid */
.controls-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 0;
    font-size: 0.8rem;
    position: relative;
}

.control-row:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 1px;
    background: rgba(0, 255, 255, 0.2);
}

.control-key {
    color: #00ffff;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    min-width: 100px;
}

.control-action {
    color: #ccc;
    text-align: right;
}

/* Touch Controls */
.touch-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.touch-item {
    padding: 6px 10px;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 0;
    font-size: 0.8rem;
    color: #ccc;
    position: relative;
}

.touch-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 1px;
    background: rgba(0, 255, 255, 0.2);
}

.touch-item strong {
    color: #00ffff;
}

/* Difficulty Grid */
.difficulty-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.difficulty-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 0;
    font-size: 0.75rem;
    position: relative;
}

.difficulty-item::after {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    right: 50%;
    width: 1px;
    background: rgba(0, 255, 255, 0.3);
}

.difficulty-grid .difficulty-item:nth-child(odd)::after {
    right: 0;
}

.difficulty-grid .difficulty-item:nth-child(even)::after {
    display: none;
}

.diff-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
    background: #00ffff;
}

.difficulty-item.casual .diff-number {
    background: #00ff00;
}

.difficulty-item.challenge .diff-number {
    background: #ff8800;
}

.difficulty-item.zen .diff-number {
    background: #ff00ff;
}

.diff-info {
    line-height: 1.3;
    color: #ccc;
}

.diff-info strong {
    color: #00ffff;
    display: block;
}

/* Tips List */
.tips-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.tip-item {
    padding: 8px 12px;
    background: rgba(255, 255, 0, 0.05);
    border-left: 3px solid #ffff00;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #ccc;
    position: relative;
}

.tip-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 1px;
    background: rgba(255, 255, 0, 0.2);
}

.tip-item strong {
    color: #ffff00;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px currentColor;
        box-shadow: 0 0 10px currentColor;
    }
    50% {
        text-shadow: 0 0 20px currentColor;
        box-shadow: 0 0 20px currentColor;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

.glow {
    animation: glow 3s infinite;
}

/* Achievement Notifications */
.achievement-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 20, 40, 0.95);
    border: 2px solid #00ffff;
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    z-index: 1000;
    animation: achievementSlideIn 0.5s ease-out, achievementSlideOut 0.5s ease-in 3.5s forwards;
    max-width: 300px;
}

.achievement-icon {
    font-size: 24px;
    animation: achievementPulse 2s infinite;
}

.achievement-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.achievement-title {
    font-size: 14px;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.achievement-description {
    font-size: 11px;
    color: #ccc;
    line-height: 1.3;
}

@keyframes achievementSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes achievementSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes achievementPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .instructions-sidebar {
        width: 300px;
    }

    .sidebar-content h3 {
        font-size: 0.9rem;
    }

    .difficulty-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .game-layout {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 140px);
    }

    .instructions-sidebar {
        width: 100%;
        height: 300px;
        order: 2;
    }

    .game-viewport {
        order: 1;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .game-header {
        flex-direction: column;
        gap: 20px;
        padding: 15px 20px;
    }

    .game-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .game-stats {
        gap: 20px;
    }

    .game-layout {
        padding: 0 10px;
        gap: 10px;
    }

    .instructions-sidebar {
        height: 250px;
    }

    .sidebar-content {
        padding: 15px;
    }

    .element-grid {
        gap: 8px;
    }

    .element-item {
        padding: 8px;
        gap: 8px;
    }

    #gameCanvas {
        width: 90vw;
        height: 50vh;
        max-width: 600px;
        max-height: 400px;
    }

    .controls-hint {
        bottom: 15px;
        left: 15px;
        font-size: 0.8rem;
    }

    .key {
        min-width: 50px;
        padding: 3px 8px;
    }

    .instructions {
        padding: 15px 20px;
    }

    .instructions h3 {
        font-size: 0.9rem;
    }

    .instructions p {
        font-size: 0.8rem;
    }

    .modal-content {
        padding: 30px 20px;
        margin: 20px;
    }

    .modal-content h2 {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .game-header {
        padding: 10px 15px;
    }

    .game-title {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .stat-value {
        font-size: 1rem;
    }

    #gameCanvas {
        width: 95vw;
        height: 55vh;
    }

    .controls-hint {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

    .control-item {
        font-size: 0.7rem;
        gap: 8px;
    }

    .key {
        min-width: 40px;
        padding: 2px 6px;
        font-size: 0.7rem;
    }
}

/* Force landscape on mobile devices */
@media (max-width: 768px) and (orientation: portrait) {
    html, body {
        transform: rotate(90deg);
        transform-origin: center center;
        position: fixed;
        width: 100vh;
        height: 100vw;
        overflow: hidden;
        left: calc((100vw - 100vh) / 2);
        top: calc((100vh - 100vw) / 2);
    }
}

/* Mobile Optimization */
@media (max-width: 768px) {
    /* Hide ALL desktop content completely */
    .desktop-only,
    .instructions-sidebar,
    .controls-hint:not(.mobile-only) {
        display: none !important;
        visibility: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }

    /* Show mobile elements */
    .mobile-only {
        display: block !important;
        visibility: visible !important;
    }

    /* Portrait mode overlay (backup for devices that don't auto-rotate) */
    @media (orientation: portrait) {
        body::before {
            content: '📱 Please rotate your device to landscape mode';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.98);
            color: #00ffff;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            z-index: 99999;
            font-size: 1.2rem;
            padding: 20px;
            backdrop-filter: blur(10px);
            font-family: 'Orbitron', monospace;
        }
    }

    /* Mobile Layout - Full Screen */
    body {
        margin: 0;
        padding: 0;
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    .game-container {
        width: 100vw;
        height: 100vh;
        padding: 0;
        margin: 0;
        overflow: hidden;
        position: relative;
    }

    .game-header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 50px;
        padding: 8px 16px;
        font-size: 0.8rem;
        z-index: 30;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(5px);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .game-title {
        font-size: 1rem;
    }

    .game-stats {
        gap: 8px;
        display: flex;
    }

    .stat {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .stat-label {
        font-size: 0.5rem;
    }

    .stat-value {
        font-size: 0.7rem;
    }

    .game-layout {
        width: 100%;
        height: 100vh;
        padding-top: 50px;
        padding-bottom: 100px;
        display: flex;
        flex-direction: column;
    }

    .game-viewport {
        flex: 1;
        position: relative;
        width: 100%;
        height: calc(100vh - 150px);
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #gameCanvas {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain;
        touch-action: none;
        user-select: none;
    }

    /* Mobile Info Button */
    .info-toggle {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        background: rgba(0, 255, 255, 0.2);
        border: 1px solid #00ffff;
        border-radius: 50%;
        color: #00ffff;
        font-size: 18px;
        cursor: pointer;
        z-index: 25;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(5px);
    }

    .info-toggle:hover {
        background: rgba(0, 255, 255, 0.3);
        transform: scale(1.05);
    }

    /* Mobile Info Panel */
    .mobile-info-panel {
        position: absolute;
        top: 60px;
        right: -300px;
        width: 280px;
        height: calc(100vh - 60px);
        background: rgba(0, 0, 0, 0.95);
        border-left: 2px solid #00ffff;
        padding: 16px;
        overflow-y: auto;
        transition: right 0.3s ease;
        z-index: 15;
        backdrop-filter: blur(10px);
    }

    .mobile-info-panel.open {
        right: 0;
    }

    .info-content h3 {
        color: #00ffff;
        font-size: 0.9rem;
        margin-bottom: 8px;
        text-align: center;
    }

    .info-content h4 {
        color: #00ffff;
        font-size: 0.7rem;
        margin: 12px 0 6px 0;
        text-transform: uppercase;
    }

    .info-content p {
        font-size: 0.6rem;
        line-height: 1.4;
        margin-bottom: 12px;
        color: #ccc;
    }

    .element-list, .controls-list {
        font-size: 0.6rem;
        line-height: 1.3;
        color: #ccc;
    }

    .element-list div, .controls-list div {
        margin-bottom: 4px;
        padding: 2px 0;
    }

    /* Mobile Touch Controls - Wide Horizontal Layout */
    .mobile-controls {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100px;
        background: linear-gradient(180deg, rgba(0, 20, 40, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%);
        border-top: 3px solid #00ffff;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 40px;
        padding: 15px 20px;
        backdrop-filter: blur(10px);
        z-index: 40;
        box-shadow:
            0 -8px 25px rgba(0, 255, 255, 0.2),
            inset 0 2px 0 rgba(0, 255, 255, 0.15);
    }

    /* D-Pad Container - Wide Horizontal Layout */
    .dpad-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 12px 20px;
        min-width: 250px;
        background: rgba(0, 255, 255, 0.08);
        border-radius: 30px;
        box-shadow:
            inset 5px 5px 10px rgba(0, 0, 0, 0.4),
            inset -5px -5px 10px rgba(0, 255, 255, 0.15);
        border: 1px solid rgba(0, 255, 255, 0.2);
    }

    /* D-Pad Buttons - Enhanced Mobile Touch */
    .dpad-btn {
        width: 40px;
        height: 40px;
        background: linear-gradient(145deg, rgba(0, 255, 255, 0.3), rgba(0, 200, 200, 0.4));
        border: 2px solid rgba(0, 255, 255, 0.8);
        border-radius: 10px;
        color: #00ffff;
        font-size: 20px;
        font-weight: 900;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        user-select: none;
        transition: all 0.15s ease;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 255, 255, 0.3);
        text-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
        box-shadow:
            5px 5px 10px rgba(0, 0, 0, 0.5),
            -2px -2px 5px rgba(0, 255, 255, 0.3),
            inset 2px 2px 3px rgba(255, 255, 255, 0.15);
        /* Ensure buttons are touchable */
        position: relative;
        z-index: 10;
        pointer-events: all;
    }

    .dpad-btn:active {
        background: linear-gradient(145deg, rgba(0, 255, 255, 0.5), rgba(0, 200, 200, 0.6));
        border-color: #66ffff;
        transform: scale(0.92);
        box-shadow:
            inset 5px 5px 10px rgba(0, 0, 0, 0.4),
            inset -2px -2px 5px rgba(0, 255, 255, 0.3);
        text-shadow: 0 0 12px rgba(0, 255, 255, 1);
    }

    /* D-pad buttons are now in horizontal flex layout - no grid areas needed */

    /* Mobile Instructions - Compact for Wide Layout */
    .mobile-instructions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 10px 14px;
        background: rgba(0, 255, 255, 0.08);
        border-radius: 15px;
        box-shadow:
            inset 3px 3px 6px rgba(0, 0, 0, 0.4),
            inset -3px -3px 6px rgba(0, 255, 255, 0.15);
        border: 1px solid rgba(0, 255, 255, 0.2);
        width: 160px;
        flex-shrink: 0;
    }

    .instruction-item {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .instruction-icon {
        color: #00ffff;
        font-size: 16px;
        font-weight: bold;
        min-width: 50px;
        text-align: center;
        text-shadow: 0 0 6px rgba(0, 255, 255, 0.8);
    }

    .instruction-text {
        color: #99dddd;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        font-family: 'Orbitron', monospace;
        text-shadow: 0 0 3px rgba(0, 255, 255, 0.3);
    }

    /* Modal Adjustments for Mobile */
    .modal-content {
        width: 90%;
        max-width: 300px;
        padding: 16px;
        font-size: 0.8rem;
    }

    .modal-content h2 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .btn-primary, .btn-secondary {
        padding: 8px 16px;
        font-size: 0.7rem;
        margin: 4px;
    }
}

/* Default Mobile Elements Hidden */
.mobile-only {
    display: none;
}