/* * Tailwind CSS - Pre-built for State Swap Explorer * Run `npx tailwindcss -i ./static/css/input.css -o ./static/css/tailwind.css` to rebuild */ /* Base reset */ *, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: #e5e7eb; } ::before, ::after { --tw-content: ''; } html { line-height: 1.5; -webkit-text-size-adjust: 100%; -moz-tab-size: 4; tab-size: 4; font-family: 'Space Grotesk', system-ui, sans-serif; } body { margin: 0; line-height: inherit; font-family: 'Space Grotesk', system-ui, sans-serif; } hr { height: 0; color: inherit; border-top-width: 1px; } h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; } a { color: inherit; text-decoration: inherit; } b, strong { font-weight: bolder; } code, kbd, samp, pre { font-family: 'JetBrains Mono', monospace; font-size: 1em; } small { font-size: 80%; } button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; color: inherit; margin: 0; padding: 0; } button, select { text-transform: none; } button, [type='button'], [type='reset'], [type='submit'] { -webkit-appearance: button; background-color: transparent; background-image: none; } table { text-indent: 0; border-color: inherit; border-collapse: collapse; } /* Utilities */ .pointer-events-none { pointer-events: none; } .fixed { position: fixed; } .absolute { position: absolute; } .relative { position: relative; } .sticky { position: sticky; } .inset-0 { inset: 0; } .bottom-0 { bottom: 0; } .left-0 { left: 0; } .right-0 { right: 0; } .top-0 { top: 0; } .z-10 { z-index: 10; } .z-40 { z-index: 40; } .z-50 { z-index: 50; } .col-span-3 { grid-column: span 3 / span 3; } .mx-auto { margin-left: auto; margin-right: auto; } .my-4 { margin-top: 1rem; margin-bottom: 1rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; } .ml-2 { margin-left: 0.5rem; } .mr-2 { margin-right: 0.5rem; } .mt-0\.5 { margin-top: 0.125rem; } .mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-4 { margin-top: 1rem; } .block { display: block; } .inline-block { display: inline-block; } .flex { display: flex; } .inline-flex { display: inline-flex; } .grid { display: grid; } .hidden { display: none; } .h-2 { height: 0.5rem; } .h-3 { height: 0.75rem; } .h-4 { height: 1rem; } .h-5 { height: 1.25rem; } .h-6 { height: 1.5rem; } .h-8 { height: 2rem; } .h-10 { height: 2.5rem; } .h-full { height: 100%; } .h-screen { height: 100vh; } .min-h-screen { min-height: 100vh; } .w-3 { width: 0.75rem; } .w-4 { width: 1rem; } .w-5 { width: 1.25rem; } .w-6 { width: 1.5rem; } .w-8 { width: 2rem; } .w-10 { width: 2.5rem; } .w-24 { width: 6rem; } .w-full { width: 100%; } .w-\[450px\] { width: 450px; } .max-w-5xl { max-width: 64rem; } .max-w-7xl { max-width: 80rem; } .flex-1 { flex: 1 1 0%; } .flex-shrink-0 { flex-shrink: 0; } .origin-left { transform-origin: left; } .translate-x-0 { --tw-translate-x: 0px; transform: translateX(var(--tw-translate-x)); } .translate-x-full { --tw-translate-x: 100%; transform: translateX(var(--tw-translate-x)); } .-rotate-45 { --tw-rotate: -45deg; transform: rotate(var(--tw-rotate)); } .scale-150 { --tw-scale-x: 1.5; --tw-scale-y: 1.5; transform: scale(var(--tw-scale-x), var(--tw-scale-y)); } .cursor-pointer { cursor: pointer; } .resize { resize: both; } .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); } .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .flex-col { flex-direction: column; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; } .items-start { align-items: start; } .items-end { align-items: flex-end; } .justify-center { justify-content: center; } .justify-between { justify-content: space-between; } .gap-1 { gap: 0.25rem; } .gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; } .gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; } .gap-8 { gap: 2rem; } .gap-0\.5 { gap: 0.125rem; } .space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; } .space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; } .space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; } .overflow-hidden { overflow: hidden; } .overflow-x-auto { overflow-x: auto; } .overflow-y-auto { overflow-y: auto; } .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rounded { border-radius: 0.25rem; } .rounded-full { border-radius: 9999px; } .rounded-lg { border-radius: 0.5rem; } .rounded-xl { border-radius: 0.75rem; } .rounded-sm { border-radius: 0.125rem; } .border { border-width: 1px; } .border-b { border-bottom-width: 1px; } .border-l { border-left-width: 1px; } .border-slate-700 { border-color: rgb(51 65 85); } .border-slate-800 { border-color: rgb(30 41 59); } .bg-cyan-900\/50 { background-color: rgb(22 78 99 / 0.5); } .bg-cyan-800\/50 { background-color: rgb(21 94 117 / 0.5); } .bg-emerald-500 { background-color: rgb(16 185 129); } .bg-emerald-400 { background-color: rgb(52 211 153); } .bg-emerald-500\/20 { background-color: rgb(16 185 129 / 0.2); } .bg-lime-500 { background-color: rgb(132 204 22); } .bg-lime-400 { background-color: rgb(163 230 53); } .bg-lime-500\/20 { background-color: rgb(132 204 22 / 0.2); } .bg-yellow-500 { background-color: rgb(234 179 8); } .bg-yellow-400 { background-color: rgb(250 204 21); } .bg-yellow-500\/20 { background-color: rgb(234 179 8 / 0.2); } .bg-orange-400 { background-color: rgb(251 146 60); } .bg-orange-300 { background-color: rgb(253 186 116); } .bg-orange-400\/20 { background-color: rgb(251 146 60 / 0.2); } .bg-red-500 { background-color: rgb(239 68 68); } .bg-red-400 { background-color: rgb(248 113 113); } .bg-red-500\/20 { background-color: rgb(239 68 68 / 0.2); } .bg-slate-600 { background-color: rgb(71 85 105); } .bg-slate-600\/20 { background-color: rgb(71 85 105 / 0.2); } .bg-slate-700 { background-color: rgb(51 65 85); } .bg-slate-800 { background-color: rgb(30 41 59); } .bg-slate-800\/50 { background-color: rgb(30 41 59 / 0.5); } .bg-slate-900 { background-color: rgb(15 23 42); } .bg-slate-900\/50 { background-color: rgb(15 23 42 / 0.5); } .bg-slate-900\/80 { background-color: rgb(15 23 42 / 0.8); } .bg-slate-950 { background-color: rgb(2 6 23); } .bg-black\/50 { background-color: rgb(0 0 0 / 0.5); } .bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); } .bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); } .from-slate-950 { --tw-gradient-from: rgb(2 6 23); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } .from-emerald-400 { --tw-gradient-from: rgb(52 211 153); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } .via-slate-900 { --tw-gradient-to: rgb(15 23 42); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); } .to-slate-950 { --tw-gradient-to: rgb(2 6 23); } .to-cyan-400 { --tw-gradient-to: rgb(34 211 238); } .bg-clip-text { -webkit-background-clip: text; background-clip: text; } .p-2 { padding: 0.5rem; } .p-3 { padding: 0.75rem; } .p-4 { padding: 1rem; } .p-6 { padding: 1.5rem; } .p-8 { padding: 2rem; } .px-2 { padding-left: 0.5rem; padding-right: 0.5rem; } .px-3 { padding-left: 0.75rem; padding-right: 0.75rem; } .px-4 { padding-left: 1rem; padding-right: 1rem; } .py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; } .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; } .py-4 { padding-top: 1rem; padding-bottom: 1rem; } .py-8 { padding-top: 2rem; padding-bottom: 2rem; } .py-20 { padding-top: 5rem; padding-bottom: 5rem; } .py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; } .text-left { text-align: left; } .text-center { text-align: center; } .text-right { text-align: right; } .font-sans { font-family: 'Space Grotesk', system-ui, sans-serif; } .font-mono { font-family: 'JetBrains Mono', monospace; } .text-xs { font-size: 0.75rem; line-height: 1rem; } .text-sm { font-size: 0.875rem; line-height: 1.25rem; } .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-bold { font-weight: 700; } .font-medium { font-weight: 500; } .font-semibold { font-weight: 600; } .uppercase { text-transform: uppercase; } .tracking-wide { letter-spacing: 0.025em; } .text-transparent { color: transparent; } .text-white { color: rgb(255 255 255); } .text-cyan-400 { color: rgb(34 211 238); } .text-emerald-400 { color: rgb(52 211 153); } .text-lime-400 { color: rgb(163 230 53); } .text-yellow-400 { color: rgb(250 204 21); } .text-orange-400 { color: rgb(251 146 60); } .text-red-400 { color: rgb(248 113 113); } .text-red-500 { color: rgb(239 68 68); } .text-slate-300 { color: rgb(203 213 225); } .text-slate-400 { color: rgb(148 163 184); } .text-slate-500 { color: rgb(100 116 139); } .opacity-50 { opacity: 0.5; } .shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); } .ring-2 { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); } .ring-cyan-400 { --tw-ring-color: rgb(34 211 238); } .ring-white\/50 { --tw-ring-color: rgb(255 255 255 / 0.5); } .backdrop-blur-sm { backdrop-filter: blur(4px); } .transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; 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-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; 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-100 { transition-duration: 100ms; } .duration-150 { transition-duration: 150ms; } .duration-300 { transition-duration: 300ms; } /* Hover states */ .hover\:bg-cyan-800\/50:hover { background-color: rgb(21 94 117 / 0.5); } .hover\:bg-emerald-400:hover { background-color: rgb(52 211 153); } .hover\:bg-lime-400:hover { background-color: rgb(163 230 53); } .hover\:bg-yellow-400:hover { background-color: rgb(250 204 21); } .hover\:bg-orange-300:hover { background-color: rgb(253 186 116); } .hover\:bg-red-400:hover { background-color: rgb(248 113 113); } .hover\:bg-slate-500:hover { background-color: rgb(100 116 139); } .hover\:bg-slate-600:hover { background-color: rgb(71 85 105); } .hover\:bg-slate-700:hover { background-color: rgb(51 65 85); } .hover\:bg-slate-800\/50:hover { background-color: rgb(30 41 59 / 0.5); } .hover\:text-white:hover { color: rgb(255 255 255); } .hover\:underline:hover { text-decoration-line: underline; } .hover\:scale-150:hover { transform: scale(1.5); } .hover\:ring-2:hover { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); } .hover\:z-10:hover { z-index: 10; } /* Media queries */ @media (min-width: 768px) { .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } } @media (min-width: 1024px) { .lg\:col-span-3 { grid-column: span 3 / span 3; } .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } } /* Custom tier colors */ .tier-5 { background-color: rgb(16 185 129); } .tier-4 { background-color: rgb(132 204 22); } .tier-3 { background-color: rgb(234 179 8); } .tier-2 { background-color: rgb(251 146 60); } .tier-1 { background-color: rgb(239 68 68); } .tier-0 { background-color: rgb(71 85 105); } .tier-5-text { color: rgb(52 211 153); } .tier-4-text { color: rgb(163 230 53); } .tier-3-text { color: rgb(250 204 21); } .tier-2-text { color: rgb(251 146 60); } .tier-1-text { color: rgb(248 113 113); } .tier-0-text { color: rgb(148 163 184); } /* Matrix cell styles */ .matrix-cell { transition: all 100ms ease; cursor: pointer; } .matrix-cell:hover { transform: scale(1.5); z-index: 10; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); } .matrix-cell.selected { box-shadow: 0 0 0 2px rgb(34 211 238); } /* Detail panel */ .detail-panel { position: fixed; right: 0; top: 0; height: 100%; width: 100%; max-width: 450px; background-color: rgb(15 23 42); border-left: 1px solid rgb(51 65 85); box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); overflow-y: auto; transform: translateX(100%); transition: transform 300ms ease; } .detail-panel.visible { transform: translateX(0); } /* Mobile-specific adjustments */ @media (max-width: 480px) { .detail-panel { max-width: 100%; border-left: none; } /* Hide keyboard hints on mobile - not useful on touch devices */ .keyboard-hint { display: none !important; } /* More compact state header on mobile */ .detail-panel .text-2xl { font-size: 1.25rem; } /* Compact header on mobile */ .mobile-title { font-size: 1.125rem !important; } /* Smaller stat values on mobile */ .stat-value { font-size: 1.5rem !important; } /* Better matrix controls on mobile */ .matrix-controls { flex-direction: column; gap: 0.75rem; } .matrix-controls .sort-buttons { flex-wrap: wrap; } /* Single column for about links on very small screens */ .about-links { grid-template-columns: 1fr !important; } } /* Hide non-essential elements on mobile/tablet */ @media (max-width: 640px) { .hidden-mobile { display: none !important; } } /* Custom scrollbar */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background-color: rgb(15 23 42); } ::-webkit-scrollbar-thumb { background-color: rgb(51 65 85); border-radius: 9999px; } ::-webkit-scrollbar-thumb:hover { background-color: rgb(71 85 105); } /* Loading animation */ @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; } /* Slide in animation */ @keyframes slideIn { 0% { transform: translateX(100%); } 100% { transform: translateX(0); } } .animate-slide-in { animation: slideIn 0.3s ease-out forwards; } /* Fade in animation */ @keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } } .animate-fade-in { animation: fadeIn 0.2s ease-out forwards; }