*, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    margin: 0;
    line-height: inherit;
}

button,
input,
select {
    font: inherit;
    color: inherit;
    margin: 0;
}

button,
select {
    text-transform: none;
}

button,
[type="button"] {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
}

button,
[role="button"] {
    cursor: pointer;
}

strong {
    font-weight: 700;
}

svg {
    display: block;
    vertical-align: middle;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: none;
    background-color: #000;
}

#display-area {
    transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out;
}

.huge-icon {
    width: 50vmin;
    height: 50vmin;
}

.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #4B5563; border-radius: 10px; }

/* Custom toggle styling */
input:checked ~ .dot {
    transform: translateX(100%);
    background-color: #3b82f6;
}
input:checked ~ .block {
    background-color: #1d4ed8;
}

/* Strobe Effect Animation */
@keyframes strobeAnimation {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.15; }
}
.strobe-active {
    animation: strobeAnimation 0.15s infinite;
}

/* Orbit Animation for Peripheral Training */
@keyframes orbit {
    from { transform: rotate(0deg) translateX(120px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}
.peripheral-target {
    animation: orbit 4s linear infinite;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.pointer-events-none { pointer-events: none; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { inset: 0; }
.top-1 { top: 0.25rem; }
.top-6 { top: 1.5rem; }
.top-24 { top: 6rem; }
.right-6 { right: 1.5rem; }
.left-1 { left: 0.25rem; }
.left-6 { left: 1.5rem; }
.z-0 { z-index: 0; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.block { display: block; }
.flex { display: flex; }
.hidden { display: none !important; }
.h-2 { height: 0.5rem; }
.h-4 { height: 1rem; }
.h-6 { height: 1.5rem; }
.w-4 { width: 1rem; }
.w-6 { width: 1.5rem; }
.w-10 { width: 2.5rem; }
.w-80 { width: 20rem; }
.w-96 { width: 24rem; }
.w-full { width: 100%; }
.max-w-sm { max-width: 24rem; }
.max-h-\[80vh\] { max-height: 80vh; }
.cursor-pointer { cursor: pointer; }
.appearance-none { appearance: none; -webkit-appearance: none; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-0\.5 { gap: 0.125rem; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-3\.5 { gap: 0.875rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.overflow-y-auto { overflow-y: auto; }
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-gray-500 { border-color: #6b7280; }
.border-gray-600 { border-color: #4b5563; }
.border-gray-700 { border-color: #374151; }
.border-gray-800 { border-color: #1f2937; }
.border-gray-900 { border-color: #111827; }
.bg-white { background-color: #fff; }
.bg-blue-600 { background-color: #2563eb; }
.bg-gray-700 { background-color: #374151; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }
.bg-gray-800\/80 { background-color: rgb(31 41 55 / 0.8); }
.bg-gray-900\/95 { background-color: rgb(17 24 39 / 0.95); }
.bg-gray-950\/80 { background-color: rgb(3 7 18 / 0.8); }
.bg-gray-950\/95 { background-color: rgb(3 7 18 / 0.95); }
.bg-black\/95 { background-color: rgb(0 0 0 / 0.95); }
.p-2\.5 { padding: 0.625rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-3\.5 { padding-top: 0.875rem; }
.pt-4 { padding-top: 1rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.font-sans { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation 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-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[15vmin\] { font-size: 15vmin; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.uppercase { text-transform: uppercase; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.text-white { color: #fff; }
.text-white\/90 { color: rgb(255 255 255 / 0.9); }
.text-gray-100 { color: #f3f4f6; }
.text-gray-200 { color: #e5e7eb; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-700 { color: #374151; }
.text-blue-400 { color: #60a5fa; }
.text-blue-500 { color: #3b82f6; }
.text-green-400 { color: #4ade80; }
.text-purple-400 { color: #c084fc; }
.text-red-400 { color: #f87171; }
.text-yellow-400 { color: #facc15; }
.text-yellow-500 { color: #eab308; }
.drop-shadow-2xl { filter: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15)); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }
.backdrop-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.transform { transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.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-opacity { transition-property: opacity; 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-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.accent-blue-500 { accent-color: #3b82f6; }

.hover\:bg-gray-700:hover { background-color: #374151; }
.hover\:bg-blue-500:hover { background-color: #3b82f6; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:text-blue-300:hover { color: #93c5fd; }
.hover\:text-white:hover { color: #fff; }
.group:hover .group-hover\:bg-gray-600 { background-color: #4b5563; }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px #3b82f6; }
.focus\:ring-blue-500:focus { --tw-ring-color: #3b82f6; }

/* Phase 3 session telemetry */
.session-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.session-stat {
    background-color: rgb(31 41 55 / 0.75);
    border: 1px solid #374151;
    border-radius: 0.75rem;
    padding: 0.625rem 0.5rem;
    text-align: center;
}

.session-stat-label {
    color: #9ca3af;
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.session-stat strong {
    color: #f3f4f6;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.95rem;
}

.session-reset-btn {
    background-color: #1f2937;
    border: 1px solid #4b5563;
    border-radius: 0.75rem;
    color: #d1d5db;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    grid-column: 1 / -1;
    padding: 0.625rem;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.session-reset-btn:hover {
    background-color: #374151;
    border-color: #60a5fa;
    color: #fff;
}
