/* ========================================
   ARIA Design System
   Cyberpunk / Terminal Aesthetic
   ======================================== */

/* === CSS VARIABLES === */
:root {
    /* Colors - Good Mode (Cyan) */
    --color-primary: #00ffff;
    --color-primary-glow-soft: rgba(0, 255, 255, 0.3);
    --color-primary-glow-medium: rgba(0, 255, 255, 0.5);
    --color-primary-glow-strong: rgba(0, 255, 255, 0.8);
    --color-secondary: #006666;

    /* Colors - Evil/Danger Mode (Red) */
    --color-danger: #ff0000;
    --color-danger-dark: #8b0000;
    --color-danger-light: #ff3333;
    --color-danger-glow: rgba(255, 0, 0, 0.3);
    --color-danger-secondary: #4a0000;

    /* Colors - Neutral */
    --color-bg-deep: #0a0a0a;
    --color-bg-surface: #1a1a1a;
    --color-bg-elevated: #242424;
    --color-text-primary: rgba(255, 255, 255, 0.87);
    --color-text-secondary: rgba(255, 255, 255, 0.6);
    --color-text-muted: rgba(255, 255, 255, 0.4);

    /* Colors - Effects */
    --color-glitch-magenta: #f0f;
    --color-glitch-yellow: #ff0;
    --color-overlay-dark: rgba(0, 20, 20, 0.9);
    --color-success: #00ff00;

    /* Typography */
    --font-primary: "Courier New", Courier, monospace;
    --font-system: system-ui, Avenir, Helvetica, Arial, sans-serif;

    --text-xs: 0.6rem;
    --text-sm: 0.7rem;
    --text-base: 0.85rem;
    --text-md: 0.9rem;
    --text-lg: 1rem;
    --text-xl: 1.5rem;
    --text-2xl: 2.5rem;
    --text-3xl: 3.2rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;

    /* Borders */
    --border-thin: 1px solid;
    --border-medium: 2px solid;
    --border-radius-none: 0;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-full: 50%;

    /* Shadows */
    --shadow-glow-soft: 0 0 10px rgba(0, 255, 255, 0.3);
    --shadow-glow-medium: 0 0 20px rgba(0, 255, 255, 0.4);
    --shadow-glow-strong: 0 0 30px rgba(0, 255, 255, 0.8);
    --shadow-inset: inset 0 0 20px rgba(0, 255, 255, 0.05);
    --shadow-danger-soft: 0 0 10px rgba(255, 51, 51, 0.2);
    --shadow-danger-medium: 0 0 20px rgba(255, 0, 0, 0.4);
    --shadow-danger-strong: 0 0 30px rgba(255, 0, 0, 0.8);

    /* Animation */
    --ease-default: ease;
    --ease-smooth: ease-in-out;
    --ease-out: ease-out;
    --ease-bounce: cubic-bezier(0.4, 0, 0.2, 1);

    --duration-instant: 0.1s;
    --duration-fast: 0.3s;
    --duration-normal: 0.5s;
    --duration-slow: 0.8s;
}

/* === BASE RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-deep);
    color: var(--color-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Grid Background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* === CRT OVERLAY EFFECTS === */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.scanlines::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    animation: crtFlicker 0.1s infinite;
}

.scanlines::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 255, 255, 0.1);
    animation: scanline 4s linear infinite;
}

/* === CORNER DECORATIONS === */
.corner {
    position: fixed;
    width: 60px;
    height: 60px;
    z-index: 100;
}

.corner-tl {
    top: 20px;
    left: 20px;
    border-top: 3px solid var(--color-primary);
    border-left: 3px solid var(--color-primary);
    box-shadow: var(--shadow-glow-soft);
}

.corner-tr {
    top: 20px;
    right: 20px;
    border-top: 3px solid var(--color-primary);
    border-right: 3px solid var(--color-primary);
    box-shadow: var(--shadow-glow-soft);
}

.corner-bl {
    bottom: 60px;
    left: 20px;
    border-bottom: 3px solid var(--color-primary);
    border-left: 3px solid var(--color-primary);
    box-shadow: var(--shadow-glow-soft);
}

.corner-br {
    bottom: 60px;
    right: 20px;
    border-bottom: 3px solid var(--color-primary);
    border-right: 3px solid var(--color-primary);
    box-shadow: var(--shadow-glow-soft);
}

/* === CONTAINER === */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 40px 80px;
    min-height: 100vh;
}

/* === PAGE TRANSITIONS === */
.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

/* === HEADER === */
.header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.live-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: var(--border-radius-full);
    animation: statusPulse 1s ease-in-out infinite;
    box-shadow: 0 0 10px var(--color-primary);
}

.header-text {
    font-size: var(--text-sm);
    letter-spacing: 4px;
    color: var(--color-primary);
    text-transform: uppercase;
}

/* === TYPOGRAPHY === */
.title {
    font-size: 36px;
    color: var(--color-primary);
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 20px var(--color-primary), 0 0 40px var(--color-primary-glow-medium);
    margin-bottom: 15px;
    animation: letterGlitch 4s ease-in-out infinite;
}

.title.success {
    color: var(--color-success);
    text-shadow: 0 0 20px var(--color-success), 0 0 40px rgba(0, 255, 0, 0.5);
}

.title.danger {
    color: var(--color-danger);
    text-shadow: 0 0 20px var(--color-danger), 0 0 40px var(--color-danger-glow);
}

.subtitle {
    font-size: 14px;
    color: var(--color-text-secondary);
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-shadow: 0 0 10px var(--color-primary-glow-soft);
}

/* === ARIA CAT SVG === */
.aria-cat-svg {
    width: 200px;
    height: 180px;
    margin: 0 auto 30px;
    display: block;
    filter: drop-shadow(0 0 15px var(--color-primary-glow-medium));
    animation: float 3s ease-in-out infinite;
}

.aria-cat-svg.large {
    width: 300px;
    height: 270px;
}

.aria-cat-svg.evil {
    filter: drop-shadow(0 0 15px var(--color-danger-glow));
}

/* Cat SVG Animations */
.cat-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 2s ease forwards;
}

.whisker {
    transform-origin: right center;
    animation: whiskerTwitch 4s ease-in-out infinite;
}

.whisker:nth-child(odd) {
    animation-delay: 0.1s;
}

.eye-pupil {
    animation: eyeLookAround 4s ease-in-out infinite;
}

.eye-group {
    transform-origin: 100px 115px;
    animation: eyeBlink 3.5s ease-in-out infinite;
}

/* === DAY SELECTOR === */
.day-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.day-btn {
    flex: 0 0 auto;
    min-width: 200px;
    padding: 25px 40px;
    background: var(--color-bg-elevated);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-default);
    text-align: center;
}

.day-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: var(--shadow-glow-medium);
    transform: scale(1.02);
}

.day-btn.active {
    border-color: var(--color-danger);
    color: var(--color-danger);
    background: rgba(255, 0, 0, 0.1);
    box-shadow: var(--shadow-danger-medium);
    animation: pulse 2s infinite;
}

.day-name {
    display: block;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.day-hours {
    display: block;
    font-size: var(--text-sm);
    opacity: 0.7;
}

/* === SLOTS CONTAINER === */
.slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 40px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--color-primary-glow-soft);
    background: var(--color-bg-surface);
}

.slots-container::-webkit-scrollbar {
    width: 8px;
}

.slots-container::-webkit-scrollbar-track {
    background: var(--color-bg-surface);
}

.slots-container::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: var(--border-radius-sm);
}

.slot-btn {
    padding: 15px 10px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-family: var(--font-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-default);
    letter-spacing: 1px;
}

.slot-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: var(--shadow-glow-soft);
    transform: translateY(-2px);
}

.slot-btn.selected {
    border-color: var(--color-success);
    color: var(--color-success);
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.slot-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slot-btn.booked {
    border-color: var(--color-error, #ff3366);
    color: var(--color-error, #ff3366);
    background: rgba(255, 51, 102, 0.1);
    opacity: 0.6;
    text-decoration: line-through;
    cursor: not-allowed;
}

.slot-btn.booked:hover {
    background: rgba(255, 51, 102, 0.1);
    box-shadow: none;
    transform: none;
}

/* === PARTICIPANTS SELECTOR === */
.participants-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.participant-btn {
    width: 80px;
    height: 80px;
    background: var(--color-bg-elevated);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-default);
    position: relative;
}

.participant-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: var(--shadow-glow-medium);
    transform: scale(1.1);
}

.participant-btn.selected {
    border-color: var(--color-success);
    color: var(--color-success);
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
    animation: pulse 2s infinite;
}

/* === FORM ELEMENTS === */
.player-form {
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    letter-spacing: 3px;
    color: var(--color-primary);
    margin-bottom: 10px;
    text-shadow: 0 0 5px var(--color-primary-glow-soft);
    text-transform: uppercase;
}

.input-field {
    width: 100%;
    padding: 15px 20px;
    background: #000000;
    border: 1px solid var(--color-primary);
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 16px;
    letter-spacing: 1px;
    transition: all var(--duration-fast) var(--ease-default);
}

.input-field:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow-medium);
    background: #000000;
    color: #ffffff;
}

.input-field::placeholder {
    color: var(--color-text-muted);
}

/* === PHOTO UPLOAD === */
.photo-upload {
    width: 100%;
    cursor: pointer;
}

.photo-preview {
    width: 100%;
    height: 200px;
    background: var(--color-bg-surface);
    border: 2px dashed var(--color-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--ease-default);
    overflow: hidden;
}

.photo-preview:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow-medium);
    background: var(--color-bg-elevated);
}

.photo-preview.has-photo {
    border-style: solid;
    border-color: var(--color-success);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.photo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.photo-icon {
    font-size: 48px;
    color: var(--color-primary);
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.photo-text {
    font-size: var(--text-sm);
    letter-spacing: 2px;
    color: var(--color-text-secondary);
}

/* === NAVIGATION BUTTONS === */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.btn-next, .btn-back {
    padding: 18px 40px;
    font-family: var(--font-primary);
    font-size: 14px;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-default);
    text-transform: uppercase;
}

.btn-next {
    background: var(--color-bg-elevated);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    margin-left: auto;
}

.btn-next:hover:not(:disabled) {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: var(--shadow-glow-medium);
    transform: translateX(5px);
}

.btn-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-back {
    background: transparent;
    border: 1px solid var(--color-text-secondary);
    color: var(--color-text-secondary);
}

.btn-back:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: var(--shadow-glow-soft);
    transform: translateX(-5px);
}

/* === CONFIRMATION PAGE === */
.confirmation-icon {
    font-size: 100px;
    text-align: center;
    color: var(--color-success);
    margin-bottom: 20px;
    animation: pulse 2s infinite;
    text-shadow: 0 0 30px var(--color-success);
}

.summary {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-primary);
    padding: 30px;
    margin-bottom: 40px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-primary-glow-soft);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    letter-spacing: 2px;
}

.summary-value {
    color: var(--color-success);
    font-size: 14px;
}

.summary-player {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--color-danger);
}

.summary-player-title {
    color: var(--color-danger);
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* === TICKER === */
.ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--color-bg-surface);
    border-top: 1px solid var(--color-primary);
    overflow: hidden;
    z-index: 100;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    padding: 10px 0;
    font-size: 14px;
    color: var(--color-primary);
    letter-spacing: 2px;
    animation: ticker 20s linear infinite;
}

/* === INTRO PAGE === */
#page-intro {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#page-intro.active {
    display: flex;
}

.intro-container {
    text-align: center;
    animation: fadeIn 1s ease;
}

/* ARIA Name Animation */
.aria-name {
    font-size: 72px;
    font-weight: bold;
    letter-spacing: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.aria-letter {
    color: var(--color-primary);
    text-shadow: 0 0 20px var(--color-primary), 0 0 40px var(--color-primary);
    opacity: 0;
    animation: letterAppear 0.5s ease forwards;
}

.aria-letter:nth-child(1) { animation-delay: 0.5s; }
.aria-letter:nth-child(3) { animation-delay: 0.7s; }
.aria-letter:nth-child(5) { animation-delay: 0.9s; }
.aria-letter:nth-child(7) { animation-delay: 1.1s; }

.aria-dot {
    color: var(--color-danger);
    text-shadow: 0 0 15px var(--color-danger);
    opacity: 0;
    animation: dotAppear 0.3s ease forwards;
}

.aria-dot:nth-child(2) { animation-delay: 0.6s; }
.aria-dot:nth-child(4) { animation-delay: 0.8s; }
.aria-dot:nth-child(6) { animation-delay: 1.0s; }

.aria-subtitle {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    letter-spacing: 4px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.5s;
    margin-bottom: 40px;
}

/* Loading Bar */
.aria-loading {
    width: 300px;
    height: 4px;
    background: var(--color-primary-glow-soft);
    border: 1px solid var(--color-primary);
    margin: 0 auto 20px;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 1.8s;
}

.aria-loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-danger), var(--color-glitch-magenta));
    box-shadow: 0 0 20px var(--color-primary);
    animation: ariaLoad 2s ease-in-out forwards;
    animation-delay: 1.5s;
}

.aria-message {
    font-size: 14px;
    color: var(--color-success);
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 2s;
    margin-bottom: 30px;
}

.aria-warning {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid var(--color-primary);
    opacity: 0;
    transform: scale(0.8);
    animation: alertAppear 0.5s ease forwards;
    animation-delay: 3.8s;
}

.warning-icon {
    font-size: 24px;
    color: var(--color-primary);
    animation: blink 0.8s infinite;
}

.warning-text {
    font-size: 16px;
    color: var(--color-primary);
    letter-spacing: 3px;
    font-weight: bold;
    text-shadow: 0 0 10px var(--color-primary-glow-medium);
}

/* === PROCESSING PAGE === */
#page-processing {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#page-processing.active {
    display: flex;
}

.processing-container {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.processing-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--color-primary);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-shadow: 0 0 20px var(--color-primary);
    animation: letterGlitch 0.5s infinite;
}

.processing-loading {
    width: 300px;
    height: 4px;
    background: var(--color-primary-glow-soft);
    border: 1px solid var(--color-primary);
    margin: 0 auto 20px;
    overflow: hidden;
}

.processing-loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-danger), var(--color-glitch-magenta));
    box-shadow: 0 0 20px var(--color-primary);
    animation: processingLoad 3s ease-in-out forwards;
}

.processing-message {
    font-size: 14px;
    color: var(--color-success);
    letter-spacing: 2px;
    animation: blink 1s infinite;
}

/* === MESSAGE BOX === */
.message-box {
    position: relative;
    padding: var(--space-xl);
    margin-top: var(--space-2xl);
    background: var(--color-overlay-dark);
    border: 1px solid var(--color-primary);
    font-family: var(--font-primary);
    font-size: var(--text-md);
    color: var(--color-primary);
    text-align: left;
    line-height: 1.6;
}

.message-box::before {
    content: "# STATUS";
    position: absolute;
    top: -10px;
    left: 10px;
    padding: 0 var(--space-sm);
    background: var(--color-bg-deep);
    font-size: var(--text-xs);
    letter-spacing: 3px;
    color: var(--color-primary);
}

.message-box::after {
    content: "_";
    animation: blink 0.8s step-end infinite;
}

/* === ORBITAL BORDERS === */
.orbital-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px;
    width: 250px;
    height: 250px;
}

.orbital-border {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--color-primary-glow-soft);
    border-radius: var(--border-radius-full);
    animation: orbitRotate 20s linear infinite;
}

.orbital-border:nth-child(1) {
    width: 200px;
    height: 200px;
}

.orbital-border:nth-child(2) {
    width: 240px;
    height: 240px;
    animation-direction: reverse;
    animation-duration: 25s;
}

.orbital-border:nth-child(3) {
    width: 280px;
    height: 280px;
    animation-duration: 30s;
}

/* === KEYFRAME ANIMATIONS === */

/* Fade In */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Blink */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Pulse */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* Float */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* CRT Flicker */
@keyframes crtFlicker {
    0%, 100% { opacity: 0.97; }
    50% { opacity: 1; }
}

/* Scanline */
@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* Letter Glitch */
@keyframes letterGlitch {
    0%, 100% { transform: translate(0, 0); opacity: 1; }
    20% { transform: translate(-2px, 1px); opacity: 0.8; }
    40% { transform: translate(2px, -1px); opacity: 0.9; }
    60% { transform: translate(-1px, 2px); opacity: 0.7; }
    80% { transform: translate(1px, -2px); opacity: 1; }
}

/* Ticker */
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Letter Appear */
@keyframes letterAppear {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Dot Appear */
@keyframes dotAppear {
    0% { opacity: 0; transform: scale(0); }
    100% { opacity: 1; transform: scale(1); }
}

/* ARIA Load */
@keyframes ariaLoad {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Processing Load */
@keyframes processingLoad {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Alert Appear */
@keyframes alertAppear {
    0% { opacity: 0; transform: scale(0.8); }
    50% { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

/* Status Pulse */
@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 5px var(--color-primary); }
    50% { opacity: 0.5; box-shadow: 0 0 15px var(--color-primary); }
}

/* Orbit Rotate */
@keyframes orbitRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Draw (for SVG paths) */
@keyframes draw {
    to { stroke-dashoffset: 0; }
}

/* Whisker Twitch */
@keyframes whiskerTwitch {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(2deg); }
    75% { transform: rotate(-2deg); }
}

/* Eye Look Around */
@keyframes eyeLookAround {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    50% { transform: translateX(0); }
    75% { transform: translateX(8px); }
}

/* Eye Blink */
@keyframes eyeBlink {
    0%, 42%, 48%, 100% { transform: scaleY(1); }
    45% { transform: scaleY(0.1); }
}

/* Speaking Pulse */
@keyframes speakingPulse {
    0%, 100% { filter: drop-shadow(0 0 15px var(--color-primary-glow-medium)); }
    50% { filter: drop-shadow(0 0 30px var(--color-primary-glow-strong)); }
}

/* Evil Flicker */
@keyframes evilFlicker {
    0%, 100% { opacity: 1; }
    10% { opacity: 0.8; }
    20% { opacity: 1; }
    30% { opacity: 0.9; }
    50% { opacity: 1; }
    70% { opacity: 0.85; }
    80% { opacity: 1; }
}

/* Screen Glitch */
@keyframes screenGlitch {
    0% { filter: hue-rotate(0deg) saturate(100%); transform: translate(0); }
    10% { filter: hue-rotate(90deg) saturate(200%); transform: translate(-2px, 1px); }
    20% { filter: hue-rotate(180deg) saturate(150%); transform: translate(2px, -1px); }
    30% { filter: hue-rotate(270deg) saturate(300%); transform: translate(-1px, -1px); }
    40%, 100% { filter: hue-rotate(0deg) saturate(100%); transform: translate(0); }
}

/* Message Appear */
@keyframes messageAppear {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Typing Bounce */
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

/* === UTILITY CLASSES === */
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-blink { animation: blink 0.8s step-end infinite; }
.animate-glitch { animation: letterGlitch 4s ease-in-out infinite; }
.text-primary { color: var(--color-primary); }
.text-danger { color: var(--color-danger); }
.text-success { color: var(--color-success); }
.glow-primary { text-shadow: 0 0 20px var(--color-primary); }
.glow-danger { text-shadow: 0 0 20px var(--color-danger); }

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .container {
        padding: 80px 20px 60px;
    }

    .title {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .aria-name {
        font-size: 48px;
        letter-spacing: 4px;
    }

    .aria-cat-svg {
        width: 150px;
        height: 135px;
    }

    .aria-cat-svg.large {
        width: 200px;
        height: 180px;
    }

    .day-selector {
        flex-direction: column;
    }

    .day-btn {
        min-width: 100%;
    }

    .participant-btn {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .nav-buttons {
        flex-direction: column;
    }

    .btn-next {
        margin-left: 0;
    }

    .corner {
        width: 40px;
        height: 40px;
    }

    .orbital-container {
        width: 180px;
        height: 180px;
    }

    .orbital-border:nth-child(1) { width: 140px; height: 140px; }
    .orbital-border:nth-child(2) { width: 170px; height: 170px; }
    .orbital-border:nth-child(3) { width: 200px; height: 200px; }

    .aria-loading,
    .processing-loading {
        width: 250px;
    }
}
