/* Custom styles for Tetris game aligned with hub aesthetic */

:root {
    color-scheme: dark;
}

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

body {
    font-family: 'Orbitron', system-ui, sans-serif;
    overflow-x: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.18), transparent 60%),
                radial-gradient(circle at 80% 10%, rgba(236, 72, 153, 0.18), transparent 60%),
                #020617;
    background-attachment: fixed;
    color: #f8fafc;
}

/* Ad Strip Styling */
.ad-strip {
    min-height: 70px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.ad-strip ins {
    display: block;
    width: 100%;
    min-height: 60px;
}

.adsense-disabled .adsbygoogle {
    position: relative;
    border: 1px dashed rgba(129, 140, 248, 0.45);
    background: rgba(2, 6, 23, 0.55);
}

.adsense-disabled .adsbygoogle::before {
    content: 'Ad placeholder (local build)';
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

@media (min-width: 768px) {
    .ad-strip ins {
        max-width: 970px;
    }
}

@media (max-width: 767px) {
    .ad-strip {
        min-height: 50px;
        padding: 10px 12px;
    }

    .ad-strip ins {
        min-height: 50px;
    }
}

/* Game title styling */
.game-title {
    font-family: 'Orbitron', system-ui, sans-serif;
    line-height: 1.4;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.fold-card {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1.5rem;
    background: rgba(15, 23, 42, 0.45);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.fold-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
    gap: 0.5rem;
}

.fold-card summary::-webkit-details-marker {
    display: none;
}

.fold-card summary::after {
    content: '▾';
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.6);
    transition: transform 0.25s ease;
}

.fold-card[open] summary::after {
    transform: rotate(180deg);
}

.fold-card summary h2,
.fold-card summary span {
    margin: 0;
}

.fold-body {
    margin-top: 1rem;
}

.faq-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.game-nav {
    width: 100%;
    gap: 0.75rem;
}

.game-nav a {
    letter-spacing: inherit;
}

@media (max-width: 768px) {
    .game-nav {
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    .game-title {
        letter-spacing: 0.12em;
    }

    .game-nav {
        justify-content: center;
        gap: 0.5rem;
        letter-spacing: 0.16em;
    }

    .game-nav a {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    header .game-title {
        font-size: 1.65rem;
    }

    .mobile-section .game-title {
        font-size: 2rem;
    }
}

/* Button styling */
.game-btn {
    font-family: 'Orbitron', system-ui, sans-serif;
    padding: 12px 24px;
    border: none;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.45);
    color: white;
    position: relative;
    overflow: hidden;
}

.game-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.game-btn:hover:not(:disabled)::before {
    width: 300px;
    height: 300px;
}

.game-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.55);
}

.game-btn:active:not(:disabled) {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.5);
}

.game-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

/* Floating Controls Container */
.floating-controls {
    --control-margin: clamp(12px, 4vw, 24px);
    display: none;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    padding: calc(env(safe-area-inset-top, 0px) + var(--control-margin))
             var(--control-margin)
             calc(env(safe-area-inset-bottom, 0px) + var(--control-margin));
}

@media (max-width: 768px) {
    .floating-controls {
        display: block;
    }
}

@media (max-width: 768px) {
    .mobile-section {
        min-height: calc(100vh - 140px);
        justify-content: space-between;
        align-items: center;
        padding-left: clamp(12px, 4vw, 24px);
        padding-right: clamp(12px, 4vw, 24px);
        width: 100%;
        box-sizing: border-box;
    }

    .mobile-hud {
        width: min(100%, 420px);
        margin: 0 auto;
    }

    .mobile-hud-group {
        flex: 1 1 auto;
    }

    .mobile-board-wrapper {
        width: min(100%, 420px);
    }
}

@media (max-width: 480px) {
    .floating-top-actions {
        gap: 8px;
    }

    .floating-top-btn {
        flex: 1 1 104px;
        min-width: 104px;
        padding: 10px 14px;
        font-size: 11px;
    }

    .floating-actions {
        gap: 12px;
    }

    .mobile-hud {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .mobile-hud-group {
        justify-content: space-between;
        gap: 8px;
    }

    .hud-pill {
        align-items: center;
        min-width: 0;
        flex: 1 1 0;
    }

    .mobile-hud-next {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }

    .mobile-hud-next .hud-label {
        margin-right: 4px;
    }

    .mobile-hud-next .next-piece-preview-mobile {
        width: 48px;
        height: 48px;
    }
}

.hud-label {
    font-size: 9px;
}

.hud-value {
    font-size: 16px;
}

.adsense-disabled .adsbygoogle::before {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
}

@media (max-width: 640px) {
    .adsense-disabled .adsbygoogle::before {
        font-size: 0.52rem;
        letter-spacing: 0.2em;
    }
}

@media (max-width: 480px) {
    .hud-label {
        font-size: 8px;
        letter-spacing: 0.14em;
    }

    .hud-value {
        font-size: 15px;
    }

    .adsense-disabled .adsbygoogle::before {
        font-size: 0.48rem;
        letter-spacing: 0.18em;
    }
}

.floating-top-actions {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + var(--control-margin));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    pointer-events: all;
}

.floating-top-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex: 1 1 120px;
    min-width: 120px;
    padding: 12px 18px;
    font-size: 12px;
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.95), rgba(56, 142, 106, 0.95));
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.35);
}

.floating-top-btn[disabled] {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.6), rgba(100, 116, 139, 0.6));
    box-shadow: none;
}

.floating-top-btn + .floating-top-btn:not([disabled]) {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(234, 88, 12, 0.95));
    box-shadow: 0 10px 24px rgba(251, 146, 60, 0.35);
}

/* D-Pad Styling */
.floating-dpad {
    position: absolute;
    bottom: calc(env(safe-area-inset-bottom, 0px) + var(--control-margin));
    left: var(--control-margin);
    pointer-events: all;
}

.dpad-container {
    position: relative;
    width: clamp(120px, 32vw, 160px);
    height: clamp(120px, 32vw, 160px);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 2px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    padding: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.dpad-btn {
    font-family: Arial, sans-serif;
    font-weight: bold;
    background: linear-gradient(145deg, rgba(100, 120, 200, 0.45), rgba(80, 100, 180, 0.45));
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(22px, 7vw, 30px);
    line-height: 1;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: all 0.1s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
                inset 0 2px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dpad-btn span {
    display: block;
    transform: scale(1, 1);
    font-weight: 900;
}

.dpad-up {
    grid-column: 2;
    grid-row: 1;
    border-radius: 12px 12px 4px 4px;
}

.dpad-down {
    grid-column: 2;
    grid-row: 3;
    border-radius: 4px 4px 12px 12px;
}

.dpad-left {
    grid-column: 1;
    grid-row: 2;
    border-radius: 12px 4px 4px 12px;
}

.dpad-right {
    grid-column: 3;
    grid-row: 2;
    border-radius: 4px 12px 12px 4px;
}

.dpad-center {
    grid-column: 2;
    grid-row: 2;
    background: radial-gradient(circle, rgba(40, 40, 60, 0.8), rgba(20, 20, 40, 0.8));
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.dpad-btn:active {
    background: linear-gradient(145deg, rgba(120, 140, 220, 0.6), rgba(100, 120, 200, 0.6));
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3),
                inset 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
}

/* Action Buttons Styling */
.floating-actions {
    position: absolute;
    bottom: calc(env(safe-area-inset-bottom, 0px) + var(--control-margin));
    right: var(--control-margin);
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 3vh, 18px);
    pointer-events: all;
}

.action-btn {
    font-family: 'Orbitron', system-ui, sans-serif;
    width: clamp(72px, 24vw, 90px);
    height: clamp(72px, 24vw, 90px);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.25);
    color: white;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: all 0.1s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.action-rotate {
    background: linear-gradient(145deg, rgba(170, 0, 255, 0.45), rgba(138, 0, 207, 0.45));
    box-shadow: 0 8px 24px rgba(170, 0, 255, 0.3),
                inset 0 2px 0 rgba(255, 255, 255, 0.2),
                inset 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.action-drop {
    background: linear-gradient(145deg, rgba(255, 23, 68, 0.45), rgba(220, 0, 50, 0.45));
    box-shadow: 0 8px 24px rgba(255, 23, 68, 0.3),
                inset 0 2px 0 rgba(255, 255, 255, 0.2),
                inset 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.action-btn .btn-label {
    font-size: clamp(9px, 2vw, 11px);
    opacity: 0.8;
    letter-spacing: 1px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease-out;
    pointer-events: none;
}

.action-btn:active::before {
    transform: translate(-50%, -50%) scale(1.5);
}

.action-btn:active {
    transform: scale(0.92);
}

.action-rotate:active {
    background: linear-gradient(145deg, rgba(190, 30, 255, 0.6), rgba(158, 20, 227, 0.6));
    box-shadow: 0 4px 16px rgba(170, 0, 255, 0.4),
                inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.action-drop:active {
    background: linear-gradient(145deg, rgba(255, 50, 90, 0.6), rgba(240, 20, 70, 0.6));
    box-shadow: 0 4px 16px rgba(255, 23, 68, 0.4),
                inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Key badge styling */
.key-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    min-width: 55px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Game board */
.game-board,
.game-board-mobile {
    position: relative;
    background: linear-gradient(135deg, rgba(25, 30, 45, 0.95), rgba(35, 40, 60, 0.95));
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5),
                0 20px 60px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(100, 120, 200, 0.3);
}

/* Next piece preview */
.next-piece-preview {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.8), rgba(20, 20, 35, 0.8));
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.next-piece-preview-mobile {
    width: clamp(52px, 18vw, 60px);
    height: clamp(52px, 18vw, 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.8), rgba(20, 20, 35, 0.8));
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.mobile-board-wrapper {
    padding-top: 4px;
}

.mobile-hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mobile-hud-group {
    display: flex;
    gap: 10px;
    flex: 1 1 auto;
}

.hud-pill {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 70px;
}

.hud-label {
    font-size: 10px;
    letter-spacing: 0.18em;
    color: rgba(226, 232, 240, 0.7);
}

.hud-value {
    font-family: 'Orbitron', system-ui, sans-serif;
    font-size: 18px;
    color: rgba(241, 245, 249, 0.95);
}

.hud-value--score {
    background: linear-gradient(135deg, rgba(255, 214, 0, 0.95), rgba(255, 159, 64, 0.95));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hud-value--level {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.95), rgba(59, 130, 246, 0.95));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hud-value--high {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.95), rgba(129, 140, 248, 0.95));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hud-value--next {
    font-family: inherit;
    font-size: 11px;
    color: rgba(186, 230, 253, 0.95);
}

.mobile-hud-next {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 86px;
}

.hud-subtext {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    letter-spacing: 0.12em;
    color: rgba(148, 163, 184, 0.85);
}

.level-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 14, 25, 0.7);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 120;
}

.level-modal.visible {
    opacity: 1;
    pointer-events: all;
}

.level-modal__panel {
    max-width: 360px;
    width: 100%;
    padding: 28px 32px;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(37, 99, 235, 0.95), rgba(168, 85, 247, 0.95));
    box-shadow: 0 22px 48px rgba(2, 6, 23, 0.55), inset 0 0 0 2px rgba(255, 255, 255, 0.15);
    text-align: center;
    color: #f8fafc;
}

.level-modal__title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.level-modal__message {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 26px;
    color: rgba(241, 245, 249, 0.9);
}

.level-modal__confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #0f172a;
    background: rgba(248, 250, 252, 0.92);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.38), inset 0 0 0 2px rgba(248, 250, 252, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.level-modal__confirm:active,
.level-modal__confirm:focus-visible {
    transform: translateY(1px);
    box-shadow: 0 0 0 4px rgba(191, 219, 254, 0.65);
    outline: none;
}

@media (max-width: 480px) {
    .level-modal__panel {
        padding: 24px;
        border-radius: 20px;
    }

    .level-modal__title {
        font-size: 20px;
    }

    .level-modal__message {
        font-size: 13px;
    }
}

/* Panel styling */
.info-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Input styling */
input[type="text"] {
    font-family: 'Orbitron', system-ui, sans-serif;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

input[type="text"]:focus {
    outline: none;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(102, 126, 234, 0.5),
                     0 0 40px rgba(118, 75, 162, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(102, 126, 234, 0.8),
                     0 0 60px rgba(118, 75, 162, 0.5),
                     0 0 80px rgba(244, 143, 177, 0.3);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Apply animations */
h1.game-title {
    animation: glow 3s ease-in-out infinite;
}

.game-btn {
    animation: fadeIn 0.4s ease;
}

.info-panel {
    animation: fadeIn 0.6s ease;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #667eea, #764ba2);
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #5568d3, #6a3f8f);
}

/* Selection styling */
::selection {
    background: rgba(102, 126, 234, 0.4);
    color: white;
}

::-moz-selection {
    background: rgba(102, 126, 234, 0.4);
    color: white;
}

/* Prevent text selection on game elements */
.game-board,
.game-board-mobile,
.touch-btn,
.game-btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Score display */
.score-display {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
}

/* Stats grid */
.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .game-btn {
        font-size: 11px;
        padding: 12px 24px;
    }

    .touch-btn {
        font-size: 22px;
        padding: 18px;
        min-height: 70px;
    }

    .key-badge {
        font-size: 9px;
        padding: 6px 10px;
        min-width: 45px;
    }
}

@media (max-width: 480px) {
    .touch-btn {
        font-size: 20px;
        padding: 16px;
        min-height: 65px;
    }
}

/* Mobile landscape optimizations */
@media (max-height: 600px) and (orientation: landscape) {
    body {
        padding: 6px;
    }

    .game-title {
        font-size: 1.25rem !important;
        margin-bottom: 6px !important;
    }

    .touch-btn {
        padding: 12px;
        font-size: 18px;
    }

    .game-btn {
        padding: 8px 18px;
        font-size: 9px;
    }
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Neon glow effect */
.neon-glow {
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.5),
                0 0 10px rgba(102, 126, 234, 0.4),
                0 0 20px rgba(102, 126, 234, 0.3),
                0 0 40px rgba(118, 75, 162, 0.2);
}

/* Focus styles for accessibility */
button:focus-visible,
input:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 3px;
}

/* Print styles (hide game) */
@media print {
    body {
        display: none;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .game-board,
    .game-board-mobile {
        border-width: 4px;
    }

    .key-badge,
    .game-btn,
    .touch-btn {
        border-width: 3px;
    }
}

/* Shimmer effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}
