/* --- TAILWIND PREFLIGHT RESET (Critical for box model) --- */
*,
::before,
::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: currentColor;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
}

body {
    margin: 0;
    line-height: inherit;
}

img,
video {
    display: block;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

:root {
    --terminal-blue: #80dfff;
    /* Phosphor Blue */
    --terminal-bg: #050a0f;
}

body {
    background-color: #000;
    color: var(--terminal-blue);
    font-family: 'VT323', monospace;
    overflow: hidden;
    /* Prevent body scroll to stop jumping */
    margin: 0;
    height: 100vh;
    width: 100vw;
    /* CRT Color Distortion - Removed for theme compatibility */
    text-shadow: 0 0 8px var(--terminal-blue);
    animation: glitch-random 25s infinite;
}

/* Override default selection colors */
::selection {
    background-color: var(--terminal-blue);
    color: #000;
}

::-moz-selection {
    background-color: var(--terminal-blue);
    color: #000;
}

#root {
    /* Monitor Blur & Bloom - Reduced for better readability */
    filter: blur(0.4px) contrast(1.2) brightness(1.1);
    width: 100%;
    height: 100%;
    animation: distortion 30s infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    background: #000;
    border-left: 1px solid color-mix(in srgb, var(--terminal-blue) 20%, #000);
}

::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--terminal-blue) 20%, #000);
    border: 1px solid var(--terminal-blue);
    box-shadow: inset 0 0 5px var(--terminal-blue);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--terminal-blue);
}

/* CRT Effects */
.scanlines {
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 0) 50%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.4));
    background-size: 100% 6px;
    /* Thicker scanlines for retro feel */
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
    /* Slightly darker scanlines to contrast with brightness */
}

.crt-flicker {
    animation: flicker 0.15s infinite;
    position: fixed;
    inset: 0;
    background: transparent;
    pointer-events: none;
    z-index: 9998;
}

.crt-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9997;
    opacity: 0.1;
    /* Increased noise slightly */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    animation: noise 0.5s steps(5) infinite;
}

/* Vignette / Curve */
.crt-curve {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.4) 80%, rgba(0, 0, 0, 0.95) 150%);
    pointer-events: none;
    z-index: 9996;
}

/* CRT Anomalies - Random glitches */
.crt-glitch {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9995;
    animation: glitch-random 2s infinite, distortion 3s infinite;
}

.crt-glitch::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    animation: screen-roll 40s infinite;
    opacity: 0;
}

@keyframes glitch-random {

    0%,
    97%,
    100% {
        transform: translateX(0) skew(0);
    }

    97.5% {
        transform: translateX(-3px) skew(-0.4deg);
    }

    98% {
        transform: translateX(3px) skew(0.4deg);
    }

    98.5% {
        transform: translateX(-1px);
    }
}

@keyframes distortion {

    0%,
    97%,
    100% {
        filter: blur(0.4px) contrast(1.2) brightness(1.1);
    }

    97.5% {
        filter: blur(1.5px) contrast(1.25) brightness(1.12);
    }

    98% {
        filter: blur(1px) contrast(1.22) brightness(1.11);
    }

    98.5% {
        filter: blur(0.6px) contrast(1.21);
    }
}


@keyframes screen-roll {

    0%,
    94%,
    100% {
        opacity: 0;
        transform: translateY(0);
    }

    95% {
        opacity: 0.3;
        transform: translateY(5px);
    }

    96% {
        opacity: 0.2;
        transform: translateY(-3px);
    }

    97% {
        opacity: 0;
        transform: translateY(0);
    }
}

@keyframes flicker {
    0% {
        opacity: 0.95;
    }

    50% {
        opacity: 1.0;
    }

    100% {
        opacity: 0.96;
    }
}

@keyframes noise {
    0% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5%, -5%);
    }

    20% {
        transform: translate(-10%, 5%);
    }

    30% {
        transform: translate(5%, -10%);
    }

    40% {
        transform: translate(-5%, 15%);
    }

    50% {
        transform: translate(-10%, 5%);
    }

    60% {
        transform: translate(15%, 0);
    }

    70% {
        transform: translate(0, 10%);
    }

    80% {
        transform: translate(-15%, 0);
    }

    90% {
        transform: translate(10%, 5%);
    }

    100% {
        transform: translate(5%, 0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-2px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(2px);
    }
}

.animate-shake {
    animation: shake 0.5s infinite;
}

.glow-text {
    text-shadow: 0 0 6px var(--terminal-blue), 0 0 12px var(--terminal-blue);
    color: var(--terminal-blue);
}

.terminal-border {
    border: 2px solid var(--terminal-blue);
    box-shadow: 0 0 20px var(--terminal-blue), inset 0 0 40px rgba(0, 0, 0, 0.9);
    background: #000508;
}

.text-theme {
    color: var(--terminal-blue);
}

.border-theme {
    border-color: var(--terminal-blue);
}


.bg-theme-dim {
    background-color: color-mix(in srgb, var(--terminal-blue) 15%, transparent);
}

.bg-theme {
    background-color: var(--terminal-blue);
}

.shadow-theme {
    box-shadow: 0 0 6px var(--terminal-blue);
}

.border-theme-dim {
    border-color: var(--terminal-blue);
    opacity: 0.1;
}

/* Board square highlights - use separate divs with opacity */
.bg-theme-highlight-light {
    background-color: var(--terminal-blue);
    opacity: 0.25;
}

.bg-theme-highlight-strong {
    background-color: var(--terminal-blue);
    opacity: 0.35;
}

/* Light board squares */
.bg-theme-square-light {
    background-color: var(--terminal-blue);
    opacity: 0.25;
}

/* Board square borders */
.border-theme-dim {
    border: 0.5px solid;
    border-color: var(--terminal-blue);
    opacity: 0.1;
}

/* Check state background */
.bg-theme-check {
    background-color: var(--terminal-blue);
    opacity: 0.5;
}

/* Range Slider Thumb */
input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--terminal-blue);
    cursor: pointer;
    border: 2px solid #000;
    box-shadow: 0 0 8px var(--terminal-blue);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--terminal-blue);
    cursor: pointer;
    border: 2px solid #000;
    box-shadow: 0 0 8px var(--terminal-blue);
}

/* Remove default details/summary styling */
details summary {
    outline: none;
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

/* Override all button states to prevent orange/amber colors */
button:focus,
button:active,
button:focus-visible {
    outline: none !important;
    outline-color: transparent !important;
}

/* Safety CSS in case Tailwind fails */
.layout-force-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
}

.layout-col-fixed {
    display: flex !important;
    flex-direction: column !important;
    flex-shrink: 0 !important;
}

.layout-col-fluid {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-width: 0 !important;
}

/* --- TAILWIND POLYFILL (For when CDN fails) --- */

/* Layout & Flexbox */
.flex {
    display: flex !important;
}

.flex-col {
    flex-direction: column !important;
}

.flex-row {
    flex-direction: row !important;
}

.items-center {
    align-items: center !important;
}

.justify-center {
    justify-content: center !important;
}

.justify-between {
    justify-content: space-between !important;
}

.flex-1 {
    flex: 1 1 0% !important;
    width: 100% !important;
}

.shrink-0 {
    flex-shrink: 0 !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-4 {
    gap: 1rem !important;
}

.gap-6 {
    gap: 1.5rem !important;
}

/* Positioning */
.fixed {
    position: fixed !important;
}

.absolute {
    position: absolute !important;
}

.relative {
    position: relative !important;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-10 {
    z-index: 10 !important;
}

.z-50 {
    z-index: 50 !important;
}

.z-\[100\] {
    z-index: 100 !important;
}

/* Sizing */
.w-full {
    width: 100% !important;
}

.h-full {
    height: 100% !important;
}

.h-screen {
    height: 100vh !important;
}

.w-screen {
    width: 100vw !important;
}

.max-w-3xl {
    max-width: 48rem !important;
}

.max-w-\[1800px\] {
    max-width: 1800px !important;
}

.w-64 {
    width: 16rem !important;
}

.w-96 {
    width: 24rem !important;
}

.xl\:w-80 {
    width: 20rem !important;
}

/* Hardcode desktop XL for safety */
.xl\:w-\[28rem\] {
    width: 28rem !important;
}

/* Key missing layout classes */
.aspect-square {
    aspect-ratio: 1 / 1 !important;
}

.max-w-full {
    max-width: 100% !important;
}

.max-h-full {
    max-height: 100% !important;
}

.min-w-0 {
    min-width: 0px !important;
}

.min-h-0 {
    min-height: 0px !important;
}

.min-w-\[600px\] {
    min-width: 600px !important;
}

/* Flex Utilities */
.flex-wrap {
    flex-wrap: wrap !important;
}

.content-center {
    align-content: center !important;
}

/* More Spacing */
.p-0 {
    padding: 0px !important;
}

.m-auto {
    margin: auto !important;
}

/* Spacing */
.p-1 {
    padding: 0.25rem !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.p-3 {
    padding: 0.75rem !important;
}

.p-4 {
    padding: 1rem !important;
}

.p-8 {
    padding: 2rem !important;
}

.p-12 {
    padding: 3rem !important;
}

.px-2 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.px-8 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

.py-1 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.py-3 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.py-6 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.pt-2 {
    padding-top: 0.5rem !important;
}

.pb-2 {
    padding-bottom: 0.5rem !important;
}

.pb-8 {
    padding-bottom: 2rem !important;
}

.m-0 {
    margin: 0 !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.mx-12 {
    margin-left: 3rem !important;
    margin-right: 3rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-4 {
    margin-top: 1rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 0.75rem !important;
}

.mb-4 {
    margin-bottom: 1rem !important;
}

.mb-8 {
    margin-bottom: 2rem !important;
}

.mb-10 {
    margin-bottom: 2.5rem !important;
}

.mb-12 {
    margin-bottom: 3rem !important;
}

/* Typography */
.text-center {
    text-align: center !important;
}

.uppercase {
    text-transform: uppercase !important;
}

.font-bold {
    font-weight: 700 !important;
}

.font-mono {
    font-family: monospace !important;
}

.text-sm {
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
}

.text-lg {
    font-size: 1.125rem !important;
    line-height: 1.75rem !important;
}

.text-xl {
    font-size: 1.25rem !important;
    line-height: 1.75rem !important;
}

.text-2xl {
    font-size: 1.5rem !important;
    line-height: 2rem !important;
}

.text-3xl {
    font-size: 1.875rem !important;
    line-height: 2.25rem !important;
}

.text-4xl {
    font-size: 2.25rem !important;
    line-height: 2.5rem !important;
}

.text-5xl {
    font-size: 3rem !important;
    line-height: 1 !important;
}

.text-7xl {
    font-size: 4.5rem !important;
    line-height: 1 !important;
}

.tracking-widest {
    letter-spacing: 0.1em !important;
}

.tracking-\[0\.2em\] {
    letter-spacing: 0.2em !important;
}

.tracking-wider {
    letter-spacing: 0.05em !important;
}

/* Visuals */
.bg-black {
    background-color: #000 !important;
}

.text-black {
    color: #000 !important;
}

.bg-transparent {
    background-color: transparent !important;
}

.bg-black\/95 {
    background-color: rgba(0, 0, 0, 0.95) !important;
}

.bg-black\/90 {
    background-color: rgba(0, 0, 0, 0.9) !important;
}

.border-2 {
    border-width: 2px !important;
}

.border-4 {
    border-width: 4px !important;
}

.border-b {
    border-bottom-width: 1px !important;
}

.border-b-2 {
    border-bottom-width: 2px !important;
}

.rounded-full {
    border-radius: 9999px !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.opacity-60 {
    opacity: 0.6 !important;
}

.opacity-80 {
    opacity: 0.8 !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

.block {
    display: block !important;
}

.hidden {
    display: none !important;
}

@media (min-width: 1024px) {
    .lg\:block {
        display: block !important;
    }

    .lg\:hidden {
        display: none !important;
    }

    .lg\:flex {
        display: flex !important;
    }

    .lg\:flex-row {
        flex-direction: row !important;
    }

    .lg\:w-64 {
        width: 16rem !important;
    }

    .lg\:w-96 {
        width: 24rem !important;
    }

    .lg\:gap-4 {
        gap: 1rem !important;
    }

    .lg\:p-4 {
        padding: 1rem !important;
    }
}

/* Extended Polyfill - Small Sizes */
.w-1 {
    width: 0.25rem !important;
}

.h-1 {
    height: 0.25rem !important;
}

.w-1\.5 {
    width: 0.375rem !important;
}

.h-1\.5 {
    height: 0.375rem !important;
}

.w-2 {
    width: 0.5rem !important;
}

.h-2 {
    height: 0.5rem !important;
}

.w-3 {
    width: 0.75rem !important;
}

.h-3 {
    height: 0.75rem !important;
}

.w-6 {
    width: 1.5rem !important;
}

.h-6 {
    height: 1.5rem !important;
}

.w-12 {
    width: 3rem !important;
}

.h-12 {
    height: 3rem !important;
}

/* Extended Polyfill - Small Positions */
.top-0 {
    top: 0 !important;
}

.right-0 {
    right: 0 !important;
}

.bottom-0 {
    bottom: 0 !important;
}

.left-0 {
    left: 0 !important;
}

.top-1 {
    top: 0.25rem !important;
}

.right-1 {
    right: 0.25rem !important;
}

.bottom-1 {
    bottom: 0.25rem !important;
}

.left-1 {
    left: 0.25rem !important;
}

.top-0\.5 {
    top: 0.125rem !important;
}

.right-0\.5 {
    right: 0.125rem !important;
}

.bottom-0\.5 {
    bottom: 0.125rem !important;
}

.left-0\.5 {
    left: 0.125rem !important;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    position: absolute !important;
}

/* Extended Polyfill - Z-Index */
.z-0 {
    z-index: 0 !important;
}

.z-\[1\] {
    z-index: 1 !important;
}

.z-\[2\] {
    z-index: 2 !important;
}

.z-20 {
    z-index: 20 !important;
}

/* Extended Polyfill - Pointer & Interaction */
.select-none {
    user-select: none !important;
    -webkit-user-select: none !important;
}

.pointer-events-none {
    pointer-events: none !important;
}

.transition-colors {
    transition-property: color, background-color, border-color !important;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition-duration: 150ms !important;
}

.transition-all {
    transition-property: all !important;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition-duration: 150ms !important;
}

/* Extended Polyfill - Text */
.text-left {
    text-align: left !important;
}

.text-base {
    font-size: 1rem !important;
    line-height: 1.5rem !important;
}

/* Extended Polyfill - Table */
.border-collapse {
    border-collapse: collapse !important;
}

.sticky {
    position: sticky !important;
}

/* Extended Polyfill - Border Radius */
.rounded-sm {
    border-radius: 0.125rem !important;
}

/* Extended Polyfill - Small Spacing */
.p-\[2px\] {
    padding: 2px !important;
}

.sm\:p-1 {
    padding: 0.25rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.pr-1 {
    padding-right: 0.25rem !important;
}

.py-12 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Extended Polyfill - Overflow */
.overflow-y-auto {
    overflow-y: auto !important;
}

/* Extended Polyfill - Borders */
.border {
    border-width: 1px !important;
}

/* Extended Polyfill - Hover States */
.hover\:bg-theme-dim:hover {
    background-color: color-mix(in srgb, var(--terminal-blue) 15%, transparent) !important;
}

.hover\:underline:hover {
    text-decoration: underline !important;
}

.decoration-dashed {
    text-decoration-style: dashed !important;
}

/* Extended Polyfill - Animations */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

.animate-spin {
    animation: spin 1s linear infinite !important;
}

.animate-bounce {
    animation: bounce 1s infinite !important;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
}

/* Extended Polyfill - Appearance */
.appearance-none {
    appearance: none !important;
    -webkit-appearance: none !important;
}

/* Extended Polyfill - More Sizes */
.w-8 {
    width: 2rem !important;
}

.h-8 {
    height: 2rem !important;
}

.w-24 {
    width: 6rem !important;
}

.h-24 {
    height: 6rem !important;
}

.w-48 {
    width: 12rem !important;
}

.h-48 {
    height: 12rem !important;
}

.w-56 {
    width: 14rem !important;
}

.h-56 {
    height: 14rem !important;
}

.lg\:w-48 {
    width: 12rem !important;
}

.lg\:h-48 {
    height: 12rem !important;
}

.xl\:w-56 {
    width: 14rem !important;
}

.xl\:h-56 {
    height: 14rem !important;
}

.min-h-\[32px\] {
    min-height: 32px !important;
}

/* Extended Polyfill - Text & Typography */
.leading-relaxed {
    line-height: 1.625 !important;
}

.leading-snug {
    line-height: 1.375 !important;
}

.italic {
    font-style: italic !important;
}

.whitespace-nowrap {
    white-space: nowrap !important;
}

.truncate {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.drop-shadow-md {
    filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06)) !important;
}

.lg\:text-4xl {
    font-size: 2.25rem !important;
    line-height: 2.5rem !important;
}

.lg\:text-2xl {
    font-size: 1.5rem !important;
    line-height: 2rem !important;
}

.lg\:text-xl {
    font-size: 1.25rem !important;
    line-height: 1.75rem !important;
}

.lg\:text-lg {
    font-size: 1.125rem !important;
    line-height: 1.75rem !important;
}

.lg\:text-base {
    font-size: 1rem !important;
    line-height: 1.5rem !important;
}

.tracking-\[0\.3em\] {
    letter-spacing: 0.3em !important;
}

/* Extended Polyfill - Spacing */
.space-y-6>*+* {
    margin-top: 1.5rem !important;
}

.gap-3 {
    gap: 0.75rem !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.ml-3 {
    margin-left: 0.75rem !important;
}

.mr-2 {
    margin-right: 0.5rem !important;
}

.pl-2 {
    padding-left: 0.5rem !important;
}

/* Extended Polyfill - Sizing Heights */
.lg\:h-8 {
    height: 2rem !important;
}

/* Extended Polyfill - Backgrounds & Filters */
.blur-3xl {
    filter: blur(64px) !important;
}

.bg-\[\#000508\] {
    background-color: #000508 !important;
}

.bg-theme-dim\/5 {
    background-color: color-mix(in srgb, var(--terminal-blue) 5%, transparent) !important;
}

.bg-theme-dim\/50 {
    background-color: color-mix(in srgb, var(--terminal-blue) 50%, transparent) !important;
}

.hover\:bg-theme-dim\/50:hover {
    background-color: color-mix(in srgb, var(--terminal-blue) 50%, transparent) !important;
}

/* Extended Polyfill - Scale */
.scale-100 {
    transform: scale(1) !important;
}

.scale-105 {
    transform: scale(1.05) !important;
}

.scale-110 {
    transform: scale(1.1) !important;
}

/* Extended Polyfill - Group */
.group:hover .group-hover\:opacity-100 {
    opacity: 1 !important;
}

/* Extended Polyfill - Duration */
.duration-500 {
    transition-duration: 500ms !important;
}

/* Extended Polyfill - Max Width for buttons */
.max-w-xs {
    max-width: 20rem !important;
}

/* Extended Polyfill - Ping Animation */
@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite !important;
}

/* Extended Polyfill - Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out !important;
}

/* Extended Polyfill - Hover Shadow */
.hover\:shadow-theme:hover {
    box-shadow: 0 0 6px var(--terminal-blue) !important;
}

/* Extended Polyfill - Custom Height Percentages */
.h-\[40\%\] {
    height: 40% !important;
}

.min-h-\[40\%\] {
    min-height: 40% !important;
}

.max-h-\[40\%\] {
    max-height: 40% !important;
}

/* Extended Polyfill - Opacity overrides */
.opacity-10 {
    opacity: 0.1 !important;
}

.opacity-20 {
    opacity: 0.2 !important;
}

.opacity-25 {
    opacity: 0.25 !important;
}

.opacity-30 {
    opacity: 0.3 !important;
}

.opacity-40 {
    opacity: 0.4 !important;
}

.opacity-50 {
    opacity: 0.5 !important;
}

.opacity-70 {
    opacity: 0.7 !important;
}

.opacity-90 {
    opacity: 0.9 !important;
}

/* Extended Polyfill - Grid */
.grid {
    display: grid !important;
}