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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: linear-gradient(to bottom right, #1F2937, #374151);
    min-height: 100vh;
    color: #F3F4F6;
    padding: 16px;
}

.max-w-4xl {
    max-width: 56rem;
}

.w-full {
    width: 100%;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.text-gray-400 {
    color: #9CA3AF;
}

.text-gray-300 {
    color: #D1D5DB;
}

.text-transparent {
    color: transparent;
}

.bg-clip-text {
    background-clip: text;
    -webkit-background-clip: text;
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-primary {
    --tw-gradient-from: #4F46E5;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(79, 70, 229, 0));
}

.to-secondary {
    --tw-gradient-to: #10B981;
}

.font-bold {
    font-weight: 700;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.font-semibold {
    font-weight: 600;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-6 {
    gap: 1.5rem;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.bg-gray-800\/50 {
    background-color: rgba(31, 41, 55, 0.5);
}

.bg-gray-700\/30 {
    background-color: rgba(55, 85, 130, 0.3);
}

.bg-gray-700\/70 {
    background-color: rgba(55, 85, 130, 0.7);
}

.bg-gray-700 {
    background-color: #37496D;
}

.bg-dark\/90 {
    background-color: rgba(31, 41, 55, 0.9);
}

.bg-transparent {
    background-color: transparent;
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-primary\/90 {
    --tw-gradient-from: rgba(79, 70, 229, 0.9);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(79, 70, 229, 0));
}

.to-primary\/70 {
    --tw-gradient-to: rgba(79, 70, 229, 0.7);
}

.from-accent\/90 {
    --tw-gradient-from: rgba(245, 158, 11, 0.9);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(245, 158, 11, 0));
}

.to-accent\/70 {
    --tw-gradient-to: rgba(245, 158, 11, 0.7);
}

.from-secondary\/90 {
    --tw-gradient-from: rgba(16, 185, 129, 0.9);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(16, 185, 129, 0));
}

.to-secondary\/70 {
    --tw-gradient-to: rgba(16, 185, 129, 0.7);
}

.from-purple-600\/90 {
    --tw-gradient-from: rgba(147, 51, 234, 0.9);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(147, 51, 234, 0));
}

.from-purple-500\/70 {
    --tw-gradient-to: rgba(168, 85, 247, 0.7);
}

.bg-primary {
    background-color: #4F46E5;
}

.bg-primary\/80 {
    background-color: rgba(79, 70, 229, 0.8);
}

.bg-accent {
    background-color: #F59E0B;
}

.bg-accent\/80 {
    background-color: rgba(245, 158, 11, 0.8);
}

.text-light {
    color: #F3F4F6;
}

.text-dark {
    color: #1F2937;
}

.text-primary {
    color: #4F46E5;
}

.text-secondary {
    color: #10B981;
}

.text-accent {
    color: #F59E0B;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.w-64 {
    width: 16rem;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    inset: 0;
}

.opacity-0 {
    opacity: 0;
}

.pointer-events-none {
    pointer-events: none;
}

.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 500ms;
}

.cursor-pointer {
    cursor: pointer;
}

.font-medium {
    font-weight: 500;
}

.border-none {
    border-style: none;
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.tile-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.game-shadow {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.tile-transition {
    transition: all 0.2s ease-out;
}

.btn-hover {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

.btn-hover:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.hover\:brightness-110:hover {
    filter: brightness(1.1);
}

.hover\:bg-primary\/80:hover {
    background-color: rgba(79, 70, 229, 0.8);
}

.hover\:bg-accent\/80:hover {
    background-color: rgba(245, 158, 11, 0.8);
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-1:focus {
    box-shadow: 0 0 0 1px #4F46E5;
}

.focus\:ring-primary:focus {
    --tw-ring-color: #4F46E5;
}

.grid {
    display: grid;
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scale-95 {
    transform: scale(0.95);
}

@media (min-width: 768px) {
    .md\:flex-row {
        flex-direction: row;
    }
    
    .md\:w-64 {
        width: 16rem;
    }
}

@media (min-width: 1024px) {
    .lg\:w-64 {
        width: 16rem;
    }
}