/* ═══════════════════════════════════════════════════════════════════════════
   NIOH 3 BUILD OPTIMIZER - COMPILED TAILWIND CSS
   Pre-compiled from cdn.tailwindcss.com for 10x faster loading
   This file replaces the slow CDN script that was causing 4s+ render blocking
   ═══════════════════════════════════════════════════════════════════════════ */

/* Reset & Base */
*,
::before,
::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    font-family: ui-sans-serif, system-ui, sans-serif;
}

body {
    margin: 0;
    line-height: inherit;
}

h1,
h2,
h3,
h4 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: inherit;
}

button,
input {
    font-family: inherit;
    font-size: 100%;
    margin: 0;
    padding: 0;
}

button {
    cursor: pointer;
    background-color: transparent;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #374151;
    border-radius: 4px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #ef4444;
    border-radius: 50%;
    cursor: pointer;
}

input[type="checkbox"] {
    accent-color: var(--tw-accent);
}

details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

/* Layout */
.min-h-screen {
    min-height: 100vh;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1 1 0%;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

/* Flexbox */
.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-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.space-y-2> :not([hidden])~ :not([hidden]) {
    margin-top: 0.5rem;
}

.space-y-4> :not([hidden])~ :not([hidden]) {
    margin-top: 1rem;
}

/* Width/Height */
.w-full {
    width: 100%;
}

.w-1 {
    width: 0.25rem;
}

.w-5 {
    width: 1.25rem;
}

.w-8 {
    width: 2rem;
}

.w-20 {
    width: 5rem;
}

.w-px {
    width: 1px;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.h-1 {
    height: 0.25rem;
}

.h-4 {
    height: 1rem;
}

.h-5 {
    height: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.h-full {
    height: 100%;
}

/* Spacing */
.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.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;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mt-auto {
    margin-top: auto;
}

.pt-4 {
    padding-top: 1rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.pb-2 {
    padding-bottom: 0.5rem;
}

/* Positioning */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.top-0 {
    top: 0;
}

.top-1 {
    top: 0.25rem;
}

.bottom-0 {
    bottom: 0;
}

.bottom-1 {
    bottom: 0.25rem;
}

.left-\[20\%\] {
    left: 20%;
}

.left-\[30\%\] {
    left: 30%;
}

.left-\[70\%\] {
    left: 70%;
}

.left-\[100\%\] {
    left: 100%;
}

/* Typography */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.font-mono {
    font-family: ui-monospace, SFMono-Regular, monospace;
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

.italic {
    font-style: italic;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

/* Colors */
.text-white {
    color: #fff;
}

.text-gray-300 {
    color: #d1d5db;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-red-100 {
    color: #fee2e2;
}

.text-red-400 {
    color: #f87171;
}

.text-red-500 {
    color: #ef4444;
}

.text-red-600 {
    color: #dc2626;
}

.text-green-400 {
    color: #4ade80;
}

.text-green-600 {
    color: #16a34a;
}

.text-blue-400 {
    color: #60a5fa;
}

.text-blue-600 {
    color: #2563eb;
}

.text-yellow-400 {
    color: #facc15;
}

.text-yellow-500 {
    color: #eab308;
}

.text-yellow-600 {
    color: #ca8a04;
}

.text-purple-400 {
    color: #c084fc;
}

.text-orange-400 {
    color: #fb923c;
}

/* Backgrounds */
.bg-white {
    background-color: #fff;
}

.bg-black {
    background-color: #000;
}

.bg-black\/30 {
    background-color: rgb(0 0 0 / 0.3);
}

.bg-black\/50 {
    background-color: rgb(0 0 0 / 0.5);
}

.bg-gray-800 {
    background-color: #1f2937;
}

.bg-gray-900 {
    background-color: #111827;
}

.bg-gray-900\/50 {
    background-color: rgb(17 24 39 / 0.5);
}

.bg-red-900\/10 {
    background-color: rgb(127 29 29 / 0.1);
}

.bg-red-900\/20 {
    background-color: rgb(127 29 29 / 0.2);
}

.bg-red-900\/50 {
    background-color: rgb(127 29 29 / 0.5);
}

.bg-green-500 {
    background-color: #22c55e;
}

.bg-green-900\/20 {
    background-color: rgb(20 83 45 / 0.2);
}

.bg-blue-500 {
    background-color: #3b82f6;
}

.bg-blue-500\/30 {
    background-color: rgb(59 130 246 / 0.3);
}

.bg-blue-900\/20 {
    background-color: rgb(30 58 138 / 0.2);
}

.bg-yellow-500 {
    background-color: #eab308;
}

.bg-purple-500 {
    background-color: #a855f7;
}

.bg-purple-900\/20 {
    background-color: rgb(88 28 135 / 0.2);
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-black {
    --tw-gradient-from: #000;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-gray-900 {
    --tw-gradient-to: #111827;
}

/* Borders */
.border {
    border-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-l-4 {
    border-left-width: 4px;
}

.border-gray-700 {
    border-color: #374151;
}

.border-gray-800 {
    border-color: #1f2937;
}

.border-red-500 {
    border-color: #ef4444;
}

.border-red-900 {
    border-color: #7f1d1d;
}

.border-red-900\/30 {
    border-color: rgb(127 29 29 / 0.3);
}

.border-green-500 {
    border-color: #22c55e;
}

.border-blue-500 {
    border-color: #3b82f6;
}

.border-yellow-500 {
    border-color: #eab308;
}

.border-yellow-900 {
    border-color: #713f12;
}

.border-purple-500 {
    border-color: #a855f7;
}

.border-purple-500\/30 {
    border-color: rgb(168 85 247 / 0.3);
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Effects */
.shadow-\[0_0_20px_rgba\(0\,255\,0\,0\.2\)\] {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.overflow-hidden {
    overflow: hidden;
}

.outline-none {
    outline: none;
}

.cursor-pointer {
    cursor: pointer;
}

/* Transitions */
.transition {
    transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

/* Transforms */
.rotate-180 {
    transform: rotate(180deg);
}

.group-open\:rotate-180:is(details[open] *) {
    transform: rotate(180deg);
}

/* Animations */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

/* Hover States */
.hover\:bg-gray-800\/50:hover {
    background-color: rgb(31 41 55 / 0.5);
}

.hover\:bg-red-600\/50:hover {
    background-color: rgb(220 38 38 / 0.5);
}

.hover\:bg-red-900\/30:hover {
    background-color: rgb(127 29 29 / 0.3);
}

.hover\:bg-green-900\/30:hover {
    background-color: rgb(20 83 45 / 0.3);
}

.hover\:text-red-400:hover {
    color: #f87171;
}

/* Focus States */
.focus\:border-red-500:focus {
    border-color: #ef4444;
}

/* Responsive (md: 768px+) */
@media (min-width: 768px) {
    .md\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:p-10 {
        padding: 2.5rem;
    }
}

/* Accent Color Variable */
:root {
    --tw-accent: #a855f7;
}

.accent-purple-500 {
    accent-color: #a855f7;
}