/* Bot Sportello Arcade - Shared Page Theme */
/* Terminal/Noir Aesthetic with Starry Sky Background */
/*
 * STARRY BACKGROUND: To enable the twinkling stars effect, add this to your page:
 * <script src="../stars.js"></script>
 * The script auto-creates the stars container and generates 150 animated stars.
 */

@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital@0;1&display=swap');

/* ========================================
   DESIGN TOKENS (CSS Custom Properties)
   ======================================== */
:root {
    /* Color Palette */
    --color-bg: #0a0a0a;
    --color-bg-elevated: rgba(26, 0, 0, 0.4);
    --color-bg-input: rgba(0, 0, 0, 0.6);

    --color-primary: #ff0000;
    --color-primary-dim: rgba(255, 0, 0, 0.7);
    --color-secondary: #00ffff;
    --color-text: #7ec8e3;
    --color-text-dim: rgba(126, 200, 227, 0.7);

    /* Typography Scale (Major Third - 1.25) */
    --font-family: 'Courier Prime', monospace;
    --font-size-xs: 0.8rem;
    --font-size-sm: 0.9rem;
    --font-size-base: 1rem;
    --font-size-md: 1.125rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 1.875rem;
    --font-size-3xl: 2.25rem;

    /* Line Heights for Readability */
    --line-height-tight: 1.3;
    --line-height-base: 1.6;
    --line-height-relaxed: 1.75;

    /* Spacing Scale (8px base) */
    --space-1: 0.25rem;  /* 4px */
    --space-2: 0.5rem;   /* 8px */
    --space-3: 0.75rem;  /* 12px */
    --space-4: 1rem;     /* 16px */
    --space-5: 1.25rem;  /* 20px */
    --space-6: 1.5rem;   /* 24px */
    --space-8: 2rem;     /* 32px */
    --space-10: 2.5rem;  /* 40px */
    --space-12: 3rem;    /* 48px */

    /* Borders & Shadows */
    --border-width: 2px;
    --border-radius: 0;
    --shadow-glow-primary: 0 0 20px rgba(255, 0, 0, 0.5);
    --shadow-glow-secondary: 0 0 15px rgba(0, 255, 255, 0.4);
    --shadow-glow-text: 0 0 10px rgba(126, 200, 227, 0.5);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;

    /* Touch Targets (WCAG AAA) */
    --touch-target-min: 44px;

    /* Page chrome */
    --page-title-size: clamp(1.6rem, 2vw + 1rem, 2.4rem);
    --page-subtitle-size: clamp(0.95rem, 1vw + 0.85rem, 1.15rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, #1a0a1a 0%, var(--color-bg) 50%, #0a1a1a 100%);
    background-attachment: fixed;
    color: var(--color-text);
    overflow-x: hidden;
    overflow-y: auto;
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    min-height: 100vh;
    padding: var(--space-10) var(--space-5);
    position: relative;
}

/* Starry sky background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.star.blue {
    background: #7ec8e3;
    box-shadow: 0 0 6px #7ec8e3;
}

.star.cyan {
    background: #00ffff;
    box-shadow: 0 0 6px #00ffff;
}

.star.red {
    background: #ff0000;
    box-shadow: 0 0 6px #ff0000;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* CRT Scanline effect */
body::before {
    content: '';
    position: fixed;
    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
        );
    pointer-events: none;
    z-index: 9998;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% { opacity: 0.97; }
    50% { opacity: 1; }
    100% { opacity: 0.97; }
}

/* ========================================
   BACK BUTTON (HOME LINK) - ARROW ONLY
   ========================================
   DETERMINISTIC STYLING: Always shows only "←" arrow
   regardless of HTML content (← HOME, HOME, Back, etc.)
   Uses pseudo-element to guarantee consistent display.
   ======================================== */

/* Base home-link styling - hides all text content */
.home-link,
a.home-link {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 22px;
    border: 1px solid rgba(126, 200, 227, 0.35);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /* CRITICAL: Hide any text content */
    font-size: 0;
    color: transparent;
    overflow: hidden;
}

/* Arrow displayed via pseudo-element - ALWAYS shows just ← */
.home-link::before,
a.home-link::before {
    content: '←';
    font-size: 20px;
    line-height: 1;
    color: #7ec8e3;
    font-family: var(--font-family);
}

/* Wrapper variant with inner anchor - also hide text */
.home-link a {
    font-size: 0;
    color: transparent;
}

/* Hover/focus states */
.home-link:hover,
.home-link:focus,
a.home-link:hover,
a.home-link:focus {
    border-color: rgba(255, 0, 0, 0.6);
    box-shadow: 0 10px 26px rgba(255, 0, 0, 0.25), 0 0 0 2px rgba(0, 255, 255, 0.12) inset;
    transform: translateY(-1px);
}

.home-link:hover::before,
.home-link:focus::before,
a.home-link:hover::before,
a.home-link:focus::before {
    color: #00ffff;
}

/* Unified page chrome for back button + title/subtitle */
.page-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(126, 200, 227, 0.35);
    border-radius: 14px;
    padding: var(--space-3) var(--space-4);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    margin: 0 auto var(--space-5);
    max-width: 1200px;
    position: relative;
    z-index: 2;
}

/* Page header variant - same arrow-only display */
.page-header .home-link,
.page-header a.home-link {
    position: relative;
    top: auto;
    left: auto;
    width: var(--touch-target-min);
    height: var(--touch-target-min);
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
    border-radius: calc(var(--touch-target-min) / 2);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    /* Inherit arrow-only styling from base .home-link */
}

.page-title-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.page-title {
    margin: 0;
    font-size: var(--page-title-size);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-text);
    text-shadow: var(--shadow-glow-text);
}

.page-subtitle,
.page-title-group .subtitle {
    margin: 0;
    font-size: var(--page-subtitle-size);
    color: var(--color-text-dim);
    letter-spacing: 0.03em;
    line-height: 1.5;
    max-width: 80ch;
}

@media (max-width: 640px) {
    .page-header {
        padding: var(--space-3);
        gap: var(--space-3);
    }

    .page-title {
        font-size: clamp(1.3rem, 4vw + 0.9rem, 2rem);
    }
}

/* Container for page content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Content wrapper for main page content */
.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Story page layout - centered content on all viewport widths */
body.story-page {
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.story-container {
    max-width: 720px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.story-container .chapter {
    margin-bottom: 60px;
}

.story-container .chapter-title {
    color: var(--color-accent-secondary);
    font-size: 1.6em;
    margin-bottom: 20px;
}

.story-container p {
    max-width: none;
}

.story-container .paragraph {
    margin-bottom: 18px;
    font-size: 1.05em;
}

/* Input section container */
.input-section {
    background: rgba(26, 0, 0, 0.4);
    border: 2px solid #ff0000;
    padding: 20px;
    margin-bottom: 20px;
}

/* Todos section container */
.todos-section {
    margin: 20px 0;
}

/* Filter section for filter buttons */
.filter-section {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
}

/* Footer section */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 2px solid #ff0000;
    font-size: 0.9em;
    color: #00ffff;
    letter-spacing: 1px;
}

/* Headers */
h1, h2, h3 {
    color: var(--color-primary);
    text-shadow: var(--shadow-glow-primary);
    line-height: var(--line-height-tight);
    letter-spacing: 0.1em;
    font-weight: 700;
}

h1 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-5);
    text-align: center;
}

@keyframes titleGlitch {
    0% { transform: translate(0, 0); color: #ff0000; }
    20% { transform: translate(-2px, 2px); color: #7ec8e3; }
    40% { transform: translate(2px, -2px); color: #ff0000; }
    60% { transform: translate(-1px, 1px); color: #00ffff; }
    80% { transform: translate(1px, -1px); color: #ff0000; }
    100% { transform: translate(0, 0); color: #ff0000; }
}

h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-4);
}

h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-3);
    color: var(--color-secondary);
    text-shadow: var(--shadow-glow-secondary);
}

/* Text and paragraphs */
p {
    color: var(--color-text);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-base);
    max-width: 70ch; /* Optimal reading width */
}

/* Links */
a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition-base);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

a:hover {
    color: var(--color-text);
    text-shadow: var(--shadow-glow-text);
}

a:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* Buttons */
button, .btn {
    background: var(--color-primary-dim);
    color: var(--color-text);
    border: var(--border-width) solid var(--color-text);
    padding: var(--space-3) var(--space-6);
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-family: var(--font-family);
    transition: var(--transition-base);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    min-height: var(--touch-target-min);
}

button:hover, .btn:hover {
    background: var(--color-primary);
    transform: skew(-3deg);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.7);
}

button:active, .btn:active {
    transform: skew(-3deg) scale(0.98);
}

button:focus-visible, .btn:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* Input fields */
input, textarea, select {
    background: var(--color-bg-input);
    color: var(--color-text);
    border: var(--border-width) solid var(--color-text);
    padding: var(--space-3);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: var(--transition-base);
    min-height: var(--touch-target-min);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-glow-secondary);
}

input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

input::placeholder, textarea::placeholder {
    color: var(--color-text-dim);
}

/* Cards and panels */
.card, .panel {
    background: rgba(26, 0, 0, 0.4);
    border: 2px solid #ff0000;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.card::before, .panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(126, 200, 227, 0.1), transparent);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Section styling */
.section {
    margin-bottom: 60px;
    padding: 40px;
    background: rgba(26, 0, 0, 0.4);
    border: 2px solid #ff0000;
    position: relative;
    overflow: hidden;
    animation: fadeInSection 1s ease-in-out;
}

@keyframes fadeInSection {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(126, 200, 227, 0.02) 2px,
        rgba(126, 200, 227, 0.02) 4px
    );
    pointer-events: none;
}

/* Lists */
ul, ol {
    list-style-position: inside;
    color: #7ec8e3;
    font-size: 0.9em;
    line-height: 1.8;
}

li {
    margin-bottom: 10px;
}

/* Code blocks */
code, pre {
    background: rgba(126, 200, 227, 0.1);
    padding: 3px 8px;
    border: 1px solid #7ec8e3;
    color: #7ec8e3;
    font-family: 'Courier Prime', monospace;
    font-size: 0.9em;
}

pre {
    padding: 15px;
    overflow-x: auto;
    display: block;
    margin: 15px 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    margin: 20px 0;
}

th, td {
    border: 2px solid #ff0000;
    padding: 12px;
    text-align: left;
}

th {
    background: rgba(255, 0, 0, 0.3);
    color: #00ffff;
    font-weight: bold;
}

td {
    background: rgba(0, 0, 0, 0.4);
    color: #7ec8e3;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */

/* Main content layout - multi-column grid */
.main-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Header section styling */
.header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1a0000 0%, #0a0a0a 50%, #1a0000 100%);
    border: 3px solid #ff0000;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(126, 200, 227, 0.05) 0%, transparent 50%);
    pointer-events: none;
    animation: dreamShift 8s ease-in-out infinite;
}

@keyframes dreamShift {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.header p, .subtitle, .message {
    font-size: 1em;
    color: #00ffff;
    margin-top: 10px;
    line-height: 1.6;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    letter-spacing: 1px;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.date-display {
    font-size: 0.9em;
    color: #7ec8e3;
    margin: 10px 0;
}

/* Sidebar layout */
.sidebar {
    background: rgba(26, 0, 0, 0.4);
    border: 2px solid #ff0000;
    padding: 20px;
    min-width: 250px;
}

.sidebar-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ff0000;
}

.sidebar-section:last-child {
    border-bottom: none;
}

/* ========================================
   STATS & DATA VISUALIZATION
   ======================================== */

/* Stats grid displays */
.stats, .stats-grid, .nutrition-grid, .productivity-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-box, .stat-card, .stat, .nutrition-card {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    text-align: center;
    border: 2px solid #7ec8e3;
    transition: all 0.3s ease;
}

.stat-box:hover, .stat-card:hover, .stat:hover, .nutrition-card:hover {
    border-color: #00ffff;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.3);
}

.stat-number, .stat-value {
    font-size: 2em;
    color: #00ffff;
    margin-bottom: 8px;
    display: block;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.stat-label, .label {
    font-size: 0.8em;
    color: #7ec8e3;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Progress bars */
.progress-bar {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #7ec8e3;
    height: 30px;
    overflow: hidden;
    position: relative;
    margin: 15px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0000 0%, #7ec8e3 100%);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    color: #0a0a0a;
    font-weight: bold;
}

/* Timeline and schedule layouts */
.timeline, .schedule-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.timeline-section {
    background: rgba(26, 0, 0, 0.4);
    border: 2px solid #ff0000;
    padding: 20px;
    margin-bottom: 20px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff0000;
}

.timeline-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Timeline item styling */
.timeline-item {
    padding: 30px;
    background: rgba(126, 200, 227, 0.05);
    border-left: 4px solid #7ec8e3;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 15px;
}

.timeline-item:hover {
    background: rgba(126, 200, 227, 0.15);
    transform: translateX(10px);
    box-shadow: 0 0 20px rgba(126, 200, 227, 0.3);
}

.timeline-item h3 {
    color: #00ffff;
    font-size: 1.2em;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.timeline-item .time {
    color: #ff0000;
    font-size: 0.9em;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.timeline-item p {
    color: #7ec8e3;
    font-size: 0.95em;
    line-height: 1.8;
    opacity: 0.9;
}

.hour-slot, .time-slot {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #7ec8e3;
    padding: 12px;
    position: relative;
}

.hour-label {
    font-size: 0.9em;
    color: #00ffff;
    font-weight: bold;
    min-width: 80px;
}

.time-indicator {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff0000;
    z-index: 100;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.time-indicator::before {
    content: '';
    position: absolute;
    left: 0;
    top: -4px;
    width: 10px;
    height: 10px;
    background: #ff0000;
    border-radius: 50%;
}

.empty-slot {
    color: rgba(126, 200, 227, 0.5);
    font-size: 0.9em;
    font-style: italic;
}

.time-badge {
    background: #ff0000;
    color: #7ec8e3;
    padding: 5px 10px;
    font-size: 0.8em;
    min-width: 60px;
    text-align: center;
}

.tasks-container {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Day bar charts */
.day-bar {
    margin: 15px 0;
}

.day-label {
    font-size: 0.9em;
    color: #00ffff;
    margin-bottom: 5px;
}

.day-bar-fill {
    height: 25px;
    background: linear-gradient(90deg, #ff0000 0%, #7ec8e3 100%);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    padding-left: 10px;
    font-size: 0.8em;
    color: #0a0a0a;
}

/* Rating displays */
.rating {
    text-align: center;
    margin: 20px 0;
}

.rating-title {
    font-size: 1em;
    color: #ff0000;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.rating-stars {
    font-size: 2em;
    color: #00ffff;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
}

.rating-message {
    font-size: 0.9em;
    color: #7ec8e3;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

/* Input groups */
.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.input-group input,
.input-group select {
    flex: 1;
}

.input-group button {
    flex-shrink: 0;
}

/* Form groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.form-group label {
    font-size: 0.9em;
    color: #00ffff;
    font-weight: bold;
    letter-spacing: 1px;
}

.add-task-form {
    background: rgba(26, 0, 0, 0.4);
    border: 2px solid #ff0000;
    padding: 20px;
    margin-bottom: 20px;
}

.quick-add-tasks {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.quick-add-tasks button {
    font-size: 0.8em;
    padding: 8px 12px;
}

.priority-select {
    background: rgba(0, 0, 0, 0.6);
    color: #7ec8e3;
    border: 2px solid #7ec8e3;
    padding: 10px;
    font-size: 0.9em;
    font-family: 'Courier Prime', monospace;
    cursor: pointer;
}

/* Slider controls */
.slider-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.slider-header label,
.slider-label {
    font-size: 0.9em;
    color: #00ffff;
}

.slider-value {
    font-size: 0.9em;
    color: #7ec8e3;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 12px;
    border: 2px solid #7ec8e3;
    min-width: 60px;
    text-align: center;
}

/* Specific slider variants */
.meat-slider input[type="range"]::-webkit-slider-thumb {
    background: #ff0000;
}

.veggie-slider input[type="range"]::-webkit-slider-thumb {
    background: #7ec8e3;
}

.bread-slider input[type="range"]::-webkit-slider-thumb {
    background: #00ffff;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #7ec8e3;
    outline: none;
    padding: 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #7ec8e3;
    border: 2px solid #00ffff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #00ffff;
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #7ec8e3;
    border: 2px solid #00ffff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    background: #00ffff;
    transform: scale(1.2);
}

/* Weekend/tab selectors */
.weekend-selector {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.weekend-btn {
    flex: 1;
    background: rgba(0, 0, 0, 0.6);
    color: #7ec8e3;
    border: 2px solid #7ec8e3;
    padding: 12px;
    cursor: pointer;
    font-size: 0.9em;
    font-family: 'Courier Prime', monospace;
    transition: all 0.3s ease;
}

.weekend-btn:hover {
    border-color: #00ffff;
}

.weekend-btn.active {
    background: rgba(255, 0, 0, 0.7);
    color: #7ec8e3;
    border-color: #7ec8e3;
}

/* Servings controls */
.servings-control {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.servings-buttons {
    display: flex;
    gap: 10px;
}

.servings-buttons button {
    min-width: 50px;
}

/* ========================================
   INTERACTIVE LISTS
   ======================================== */

/* List containers */
.todos-list, .task-list, .ingredients-list, .steps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

/* Todo/task items */
.todo-item, .task-item, .task, .ingredient-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(126, 200, 227, 0.05);
    border-left: 4px solid #7ec8e3;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.todo-item:hover, .task-item:hover, .task:hover, .ingredient-item:hover {
    transform: translateX(10px);
    background: rgba(126, 200, 227, 0.15);
    box-shadow: 0 0 20px rgba(126, 200, 227, 0.3);
}

.todo-item.completed, .task-item.completed, .task.completed, .ingredient-item.checked {
    opacity: 0.5;
}

.todo-item.completed .todo-text,
.task-item.completed .task-text,
.task.completed .task-text,
.ingredient-item.checked {
    text-decoration: line-through;
    color: rgba(126, 200, 227, 0.5);
}

/* Task content */
.task-content, .todo-text, .task-text {
    flex: 1;
    font-size: 0.95em;
    color: #7ec8e3;
}

.task-title {
    font-size: 1em;
    color: #00ffff;
    font-weight: bold;
    margin-bottom: 5px;
}

.task-description {
    font-size: 0.9em;
    color: #7ec8e3;
    line-height: 1.6;
}

.task-duration {
    font-size: 0.85em;
    color: #ff0000;
    background: rgba(255, 0, 0, 0.2);
    padding: 4px 8px;
}

.task-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.task-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Checkboxes */
.task-checkbox, .checkbox, input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #7ec8e3;
}

/* Quantity and value displays */
.quantity, .value {
    font-size: 0.9em;
    color: #00ffff;
    font-weight: bold;
    min-width: 60px;
}

.servings-display {
    font-size: 1.5em;
    color: #00ffff;
    font-weight: bold;
    min-width: 50px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Recipe/list steps */
.step-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.step-number {
    background: #ff0000;
    color: #7ec8e3;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    font-size: 0.95em;
    color: #7ec8e3;
    line-height: 1.6;
}

/* Mess/particle containers */
.mess-container {
    position: relative;
    min-height: 120px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background: rgba(26, 0, 0, 0.4);
    border: 2px solid #ff0000;
    margin: 20px 0;
}

.mess-item {
    font-size: 3em;
    animation: messWiggle 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.mess-item:nth-child(even) {
    animation-delay: 0.5s;
}

.dog-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.dog-emoji {
    font-size: 5em;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.title {
    font-size: 3em;
    color: #ff0000;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.6);
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ========================================
   BUTTON VARIANTS
   ======================================== */

.btn-primary {
    background: #ff0000;
    color: #7ec8e3;
    border-color: #7ec8e3;
}

.btn-primary:hover {
    background: rgba(255, 0, 0, 0.8);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.6);
    color: #7ec8e3;
    border-color: #7ec8e3;
}

.btn-secondary:hover {
    background: rgba(126, 200, 227, 0.2);
}

.btn-yes {
    background: rgba(126, 200, 227, 0.7);
    color: #0a0a0a;
    border-color: #7ec8e3;
}

.btn-yes:hover {
    background: #7ec8e3;
    box-shadow: 0 0 25px rgba(126, 200, 227, 0.6);
}

.btn-no {
    background: rgba(255, 0, 0, 0.7);
    color: #7ec8e3;
    border-color: #7ec8e3;
}

.btn-no:hover {
    background: #ff0000;
}

.btn-reset, .reset-button {
    background: rgba(0, 255, 255, 0.7);
    color: #0a0a0a;
    border-color: #00ffff;
}

.btn-reset:hover, .reset-button:hover {
    background: #00ffff;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
}

.clear-all-btn, .btn-print {
    background: rgba(0, 255, 255, 0.7);
    color: #0a0a0a;
    border-color: #00ffff;
}

.clear-all-btn:hover, .btn-print:hover {
    background: #00ffff;
}

/* Add button variant */
.btn-add {
    background: rgba(126, 200, 227, 0.7);
    color: #0a0a0a;
    border-color: #7ec8e3;
}

.btn-add:hover {
    background: #7ec8e3;
}

/* Clear completed button */
.btn-clear-completed {
    background: rgba(0, 255, 255, 0.7);
    color: #0a0a0a;
    border-color: #00ffff;
    padding: 12px 24px;
    font-size: 0.9em;
}

.btn-clear-completed:hover {
    background: #00ffff;
}

/* Filter button */
.filter-btn {
    background: rgba(0, 0, 0, 0.6);
    color: #7ec8e3;
    border: 2px solid #7ec8e3;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.9em;
    font-family: 'Courier Prime', monospace;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #00ffff;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: rgba(255, 0, 0, 0.7);
    color: #7ec8e3;
    border-color: #7ec8e3;
}

/* Action buttons (inline/small) */
.task-action, .task-delete, .delete-btn {
    background: transparent;
    color: #ff0000;
    border: 2px solid #ff0000;
    padding: 8px 12px;
    font-size: 0.8em;
    min-width: auto;
}

.task-action:hover, .task-delete:hover, .delete-btn:hover {
    background: #ff0000;
    color: #7ec8e3;
}

/* Number pad buttons */
.number-btn {
    background: rgba(0, 0, 0, 0.6);
    color: #7ec8e3;
    border: 2px solid #7ec8e3;
    width: 60px;
    height: 60px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.number-btn:hover {
    background: rgba(126, 200, 227, 0.3);
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(126, 200, 227, 0.4);
}

.number-pad {
    display: grid;
    grid-template-columns: repeat(3, 60px);
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

/* ========================================
   STATUS INDICATORS & BADGES
   ======================================== */

/* Priority badges */
.todo-priority, .priority-badge {
    font-size: 0.8em;
    padding: 5px 10px;
    font-weight: bold;
}

.priority-low {
    background: rgba(0, 255, 255, 0.7);
    color: #0a0a0a;
}

.priority-medium {
    background: rgba(126, 200, 227, 0.7);
    color: #0a0a0a;
}

.priority-high {
    background: rgba(255, 0, 0, 0.7);
    color: #7ec8e3;
}

/* Category badges */
.category-badge {
    font-size: 0.8em;
    padding: 5px 10px;
    background: rgba(255, 0, 0, 0.7);
    color: #7ec8e3;
}

.category-work {
    background: rgba(0, 255, 255, 0.7);
    color: #0a0a0a;
}

.category-personal {
    background: rgba(255, 0, 0, 0.7);
    color: #7ec8e3;
}

.category-health {
    background: rgba(126, 200, 227, 0.7);
    color: #0a0a0a;
}

.category-shopping {
    background: rgba(0, 255, 255, 0.7);
    color: #0a0a0a;
}

/* Conflict/error state */
.conflict {
    background: #ff0000 !important;
    color: #7ec8e3 !important;
    border-color: #7ec8e3 !important;
}

/* ========================================
   MODAL & OVERLAYS
   ======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #0a0a0a;
    border: 3px solid #7ec8e3;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 40px rgba(126, 200, 227, 0.4);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff0000;
}

.modal-header h2 {
    margin: 0;
}

.close-btn {
    background: transparent;
    color: #ff0000;
    border: 2px solid #ff0000;
    padding: 8px 16px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #ff0000;
    color: #7ec8e3;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #7ec8e3;
    padding: 15px 20px;
    box-shadow: 0 0 20px rgba(126, 200, 227, 0.4);
    z-index: 10001;
    font-size: 0.9em;
    color: #7ec8e3;
    animation: slideIn 0.3s ease;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 40px;
    color: rgba(126, 200, 227, 0.5);
    font-size: 0.9em;
}

.empty-state::before {
    content: '[ ]';
    display: block;
    font-size: 3em;
    margin-bottom: 15px;
    color: #ff0000;
}

/* Tips and info boxes */
.tips-box {
    background: rgba(26, 0, 0, 0.4);
    border: 2px solid #ff0000;
    padding: 15px;
    margin: 20px 0;
    font-size: 0.9em;
    color: #7ec8e3;
}

/* Success/completion messages */
.success-message, .completion-message {
    background: rgba(126, 200, 227, 0.1);
    border: 2px solid #7ec8e3;
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
    color: #7ec8e3;
    margin: 20px 0;
    display: none;
}

.success-message.show, .completion-message.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* AI suggestions */
.ai-suggestions {
    margin: 20px 0;
}

.suggestion-item {
    background: rgba(126, 200, 227, 0.05);
    border-left: 4px solid #7ec8e3;
    padding: 12px;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #7ec8e3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-item:hover {
    background: rgba(126, 200, 227, 0.15);
    transform: translateX(10px);
}

/* Visual composition displays (subway, etc) */
.visualization {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 30px 0;
    padding: 30px;
    background: rgba(26, 0, 0, 0.4);
    border: 2px solid #ff0000;
}

.sub-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
}

.sub {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 3px solid #7ec8e3;
}

.bread, .bread-right {
    height: 50px;
    background: linear-gradient(to bottom, #ff0000 0%, #cc0000 100%);
    border-bottom: 3px solid #7ec8e3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    color: #7ec8e3;
    font-weight: bold;
}

.bread::before {
    content: '>';
    font-size: 1.8em;
    margin-right: 8px;
}

.bread-right {
    border-bottom: none;
    border-top: 3px solid #7ec8e3;
}

.meat {
    background: linear-gradient(to bottom, #ff0000 0%, #cc0000 100%);
    border-bottom: 2px solid #7ec8e3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    color: #7ec8e3;
    font-weight: bold;
    min-height: 60px;
    transition: flex 0.3s ease;
}

.veggie {
    background: linear-gradient(to bottom, #7ec8e3 0%, #5ba8c7 100%);
    border-bottom: 2px solid #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    color: #0a0a0a;
    font-weight: bold;
    min-height: 60px;
    transition: flex 0.3s ease;
}

.icon, .sun-icon {
    font-size: 3em;
    margin: 15px 0;
    text-align: center;
    filter: drop-shadow(0 0 20px rgba(126, 200, 227, 0.5));
}

.timer-section, .action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

/* ========================================
   PARLAY VISUALIZATION
   ======================================== */

/* Control groups */
.control-group {
    margin-bottom: 25px;
}

.control-group label {
    display: block;
    font-size: 1em;
    color: #00ffff;
    margin-bottom: 10px;
    font-weight: bold;
}

.control-group small {
    display: block;
    margin-top: 8px;
    font-size: 0.85em;
    color: #7ec8e3;
    font-style: italic;
}

.value-display {
    float: right;
    background: #ff0000;
    color: #7ec8e3;
    padding: 4px 10px;
    font-size: 1em;
    font-weight: bold;
}

.controls-card {
    background: rgba(26, 0, 0, 0.4);
}

.visualization-card {
    background: rgba(26, 0, 0, 0.4);
}

/* Parlay visualization */
.parlay-leg {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(126, 200, 227, 0.05);
    border-left: 4px solid #7ec8e3;
    transition: all 0.3s ease;
}

.parlay-leg:hover {
    background: rgba(126, 200, 227, 0.15);
    transform: translateX(10px);
    box-shadow: 0 0 20px rgba(126, 200, 227, 0.3);
}

.leg-number {
    font-size: 1.2em;
    color: #00ffff;
    font-weight: bold;
    margin-bottom: 12px;
}

.probability-bar {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #7ec8e3;
    height: 40px;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
}

.probability-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0000 0%, #7ec8e3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    color: #0a0a0a;
    font-weight: bold;
    transition: width 0.5s ease;
    min-width: 50px;
}

.parlay-leg .stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-label {
    font-size: 0.85em;
    color: #7ec8e3;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.stat-item .stat-value {
    font-size: 1.1em;
    color: #00ffff;
    font-weight: bold;
}

/* Summary card */
.summary-card {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    border: 3px solid #7ec8e3;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.4);
}

.summary-title {
    font-size: 0.9em;
    color: #7ec8e3;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.summary-value {
    font-size: 3em;
    color: #7ec8e3;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(126, 200, 227, 0.5);
}

.summary-odds {
    font-size: 1em;
    color: #00ffff;
    font-weight: bold;
}

/* Documentation sections */
.documentation {
    margin-top: 40px;
    padding: 30px;
    background: rgba(26, 0, 0, 0.4);
    border: 2px solid #ff0000;
}

.doc-section {
    margin-bottom: 30px;
}

.doc-section h3 {
    color: #00ffff;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.doc-section p {
    font-size: 0.9em;
    color: #7ec8e3;
    line-height: 1.8;
    margin-bottom: 15px;
}

.doc-list {
    list-style: none;
    padding-left: 0;
}

.doc-list li {
    color: #7ec8e3;
    font-size: 0.9em;
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.doc-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #ff0000;
    font-weight: bold;
}

.insight-box {
    background: rgba(126, 200, 227, 0.1);
    border-left: 4px solid #7ec8e3;
    padding: 20px;
    margin: 25px 0;
}

.insight-box strong {
    color: #00ffff;
    font-size: 1em;
    display: block;
    margin-bottom: 10px;
}

.warning-box {
    background: rgba(255, 0, 0, 0.1);
    border-left: 4px solid #ff0000;
    padding: 20px;
    margin: 25px 0;
}

.warning-box strong {
    color: #ff0000;
    font-size: 1em;
    display: block;
    margin-bottom: 10px;
}

.insight-box p,
.warning-box p {
    color: #7ec8e3;
    font-size: 0.9em;
    line-height: 1.8;
    margin: 0;
}

/* Message states */
#message.success {
    background: rgba(126, 200, 227, 0.1);
    border: 2px solid #7ec8e3;
    color: #7ec8e3;
    padding: 12px;
    font-size: 0.9em;
}

#message.error {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff0000;
    color: #ff0000;
    padding: 12px;
    font-size: 0.9em;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #7ec8e3;
    font-size: 0.9em;
    animation: pulse 1.5s ease-in-out infinite;
}

/* ========================================
   POETRY & CREATIVE CONTENT
   ======================================== */

/* Poem container */
.poem {
    background: rgba(26, 0, 0, 0.4);
    border: 2px solid #ff0000;
    padding: 30px;
    margin: 30px 0;
    line-height: 2;
}

/* Individual stanzas */
.stanza {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 0, 0, 0.3);
    font-size: 0.95em;
    color: #7ec8e3;
    line-height: 2;
}

.stanza:last-child {
    border-bottom: none;
}

/* Radish/poem icons */
.radish-icon {
    font-size: 1.5em;
    margin: 0 5px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.radish-icon:nth-child(2) {
    animation-delay: 0.5s;
}

.radish-icon:nth-child(3) {
    animation-delay: 1s;
}

/* Interactive sections */
.interactive-section {
    background: rgba(26, 0, 0, 0.4);
    border: 2px solid #ff0000;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

/* Radish garden grid */
.radish-garden {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
}

/* Individual radish items */
.radish-item {
    font-size: 3em;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    background: rgba(126, 200, 227, 0.1);
}

.radish-item:hover {
    transform: scale(1.2) rotate(10deg);
    background: rgba(126, 200, 227, 0.2);
}

/* Signature text */
.signature {
    text-align: center;
    font-size: 0.9em;
    color: #00ffff;
    font-style: italic;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ff0000;
}

/* Floating elements (hearts, radishes, etc) */
.floating-radish {
    position: fixed;
    pointer-events: none;
    z-index: 10;
    animation: float 4s ease-in-out infinite;
}

/* Hearts container (anniversary style) */
.hearts-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 40px;
}

.heart {
    font-size: 4em;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.6));
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart:hover {
    transform: scale(1.3);
    filter: drop-shadow(0 0 40px rgba(255, 0, 0, 1));
}

/* Memory grid (anniversary style) */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}

.memory-card {
    padding: 25px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #7ec8e3;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.memory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(126, 200, 227, 0.3), transparent);
    animation: shimmer 3s infinite;
}

.memory-card:hover {
    background: rgba(126, 200, 227, 0.1);
    box-shadow: 0 0 30px rgba(126, 200, 227, 0.4);
    transform: translateY(-10px);
    border-color: #ff0000;
}

.memory-card p {
    color: #7ec8e3;
    font-size: 0.95em;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 10px rgba(126, 200, 227, 0.3);
}

/* Curtain effect (anniversary style) */
.curtain-section {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin: 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.curtain-left, .curtain-right {
    position: absolute;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, #cc0000, #ff0000);
    z-index: 2;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.curtain-left {
    left: 0;
    background: repeating-linear-gradient(
        90deg,
        #cc0000,
        #cc0000 10px,
        #ff0000 10px,
        #ff0000 20px
    );
}

.curtain-right {
    right: 0;
    background: repeating-linear-gradient(
        90deg,
        #ff0000,
        #ff0000 10px,
        #cc0000 10px,
        #cc0000 20px
    );
}

.curtain-section:hover .curtain-left {
    transform: translateX(-100%);
}

.curtain-section:hover .curtain-right {
    transform: translateX(100%);
}

.curtain-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px dashed #7ec8e3;
}

.curtain-content h3 {
    color: #00ffff;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

.curtain-content p {
    color: #7ec8e3;
    font-size: 0.95em;
    line-height: 1.8;
}

/* Interactive story (anniversary style) */
.interactive-story {
    padding: 40px;
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid #00ffff;
    position: relative;
    z-index: 1;
}

.story-text {
    color: #7ec8e3;
    font-size: 0.95em;
    line-height: 2;
    margin-bottom: 30px;
}

.story-reveal {
    color: #ff0000;
    cursor: pointer;
    text-decoration: underline;
    transition: all 0.3s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.story-reveal:hover {
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

.hidden-text {
    display: inline;
    color: #0a0a0a;
    background: #0a0a0a;
    transition: all 0.3s ease;
}

.hidden-text.revealed {
    color: #7ec8e3;
    background: transparent;
    text-shadow: 0 0 10px rgba(126, 200, 227, 0.5);
}

/* ========================================
   GAME LAYOUTS
   ======================================== */

/* Game wrapper */
.game-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px auto;
}

/* Canvas styling */
canvas {
    border: 3px solid #7ec8e3;
    box-shadow: 0 0 30px rgba(126, 200, 227, 0.4);
    background: #0a0a0a;
    max-width: 100%;
    height: auto;
}

/* Game container */
.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 100%;
}

/* Difficulty selector */
.difficulty-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.difficulty-btn {
    background: rgba(0, 0, 0, 0.6);
    color: #7ec8e3;
    border: 2px solid #7ec8e3;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.9em;
    font-family: 'Courier Prime', monospace;
    transition: all 0.3s ease;
}

.difficulty-btn:hover {
    border-color: #00ffff;
    transform: translateY(-2px);
}

.difficulty-btn.active {
    background: rgba(255, 0, 0, 0.7);
    color: #7ec8e3;
    border-color: #7ec8e3;
}

/* Controls section */
.controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Info panel */
.info-panel {
    background: rgba(26, 0, 0, 0.4);
    border: 2px solid #ff0000;
    padding: 15px;
    font-size: 0.9em;
    color: #7ec8e3;
    text-align: center;
    max-width: 500px;
    line-height: 1.8;
}

.info-panel strong {
    color: #00ffff;
}

/* Sudoku grid */
.sudoku-grid {
    background: rgba(0, 0, 0, 0.6);
    border: 3px solid #7ec8e3;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    grid-template-rows: repeat(9, 1fr);
    gap: 2px;
    max-width: 450px;
    aspect-ratio: 1;
    margin: 0 auto;
}

/* Grid cell (general - works for multiple games) */
.cell {
    background: #0a0a0a;
    border: 1px solid #7ec8e3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier Prime', monospace;
    font-size: 1em;
    color: #7ec8e3;
    cursor: pointer;
    transition: all 0.2s ease;
    aspect-ratio: 1;
    min-height: 40px;
}

.cell:hover {
    background: rgba(126, 200, 227, 0.2);
}

.cell.selected {
    background: #7ec8e3;
    color: #0a0a0a;
}

/* Given/pre-filled cells in puzzle games */
.cell.given {
    background: rgba(255, 0, 0, 0.3);
    color: #00ffff;
    cursor: default;
    font-weight: bold;
}

.cell.given:hover {
    background: rgba(255, 0, 0, 0.3);
}

/* Mobile-specific buttons */
.mobile-btn {
    background: rgba(0, 0, 0, 0.6);
    color: #7ec8e3;
    border: 2px solid #7ec8e3;
    padding: 15px;
    cursor: pointer;
    font-size: 0.9em;
    font-family: 'Courier Prime', monospace;
    transition: all 0.3s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-btn:hover, .mobile-btn:active {
    background: rgba(255, 0, 0, 0.7);
    color: #7ec8e3;
}

/* Game over modal */
.game-over-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.game-over-modal .modal-content {
    background: #0a0a0a;
    border: 3px solid #ff0000;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.5);
}

.game-over-modal h2 {
    color: #ff0000;
    margin-bottom: 20px;
    font-size: 2em;
    animation: titleGlitch 0.4s ease-in-out infinite;
}

.game-over-modal p {
    color: #7ec8e3;
    margin-bottom: 15px;
}

.final-score {
    font-size: 3em;
    color: #00ffff;
    margin: 20px 0;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 25px;
}

/* Mobile controls for games */
.mobile-controls {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 300px;
    margin: 20px auto;
}

.control-btn {
    background: rgba(0, 0, 0, 0.6);
    color: #7ec8e3;
    border: 2px solid #7ec8e3;
    padding: 20px;
    cursor: pointer;
    font-size: 1.5em;
    font-family: 'Courier Prime', monospace;
    transition: all 0.3s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover, .control-btn:active {
    background: rgba(126, 200, 227, 0.3);
    transform: scale(0.95);
}

.control-btn.empty {
    visibility: hidden;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Particle effects */
.particle, .confetti {
    position: absolute;
    pointer-events: none;
    animation: fall 3s linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Dragging state */
.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

/* Sad face animation trigger */
.sad-face {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes messWiggle {
    0%, 100% { transform: rotate(-5deg) scale(1); }
    25% { transform: rotate(5deg) scale(1.05); }
    50% { transform: rotate(-3deg) scale(1); }
    75% { transform: rotate(3deg) scale(1.05); }
}

@keyframes scaleIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ========================================
   MOBILE RESPONSIVENESS
   ======================================== */

/* TABLET MEDIA QUERY - 768px and below */
@media (max-width: 768px) {
    body {
        padding: 80px 15px 20px;
        overflow-x: auto;
        overflow-y: auto;
    }

    .home-link {
        top: 14px;
        left: 14px;
        width: 36px;
        height: 36px;
        min-height: 36px;
        min-width: 36px;
    }

    .home-link::before,
    a.home-link::before {
        font-size: 18px;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .header {
        padding: 45px 20px;
        min-height: auto;
    }

    h1 {
        font-size: 2em;
        margin-bottom: 15px;
        letter-spacing: 1px;
    }

    h2 {
        font-size: 1.5em;
        margin-bottom: 12px;
    }

    h3 {
        font-size: 1.1em;
    }

    .section {
        padding: 30px;
        margin-bottom: 45px;
    }

    .stats, .stats-grid, .nutrition-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }

    .stat-box, .stat-card {
        padding: 15px;
    }

    .stat-number, .stat-value {
        font-size: 1.6em;
    }

    .input-group {
        flex-direction: column;
    }

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

    .sidebar {
        min-width: 100%;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .notification {
        right: 10px;
        left: 10px;
        top: 80px;
    }

    button, .btn {
        min-height: 44px;
        padding: 10px 16px;
    }

    .todo-item, .task-item, .ingredient-item {
        padding: 12px;
    }

    .timeline-item {
        padding: 25px;
        border-left-width: 3px;
    }

    .timeline-item h3 {
        font-size: 1.1em;
    }

    .number-pad {
        grid-template-columns: repeat(3, 50px);
        gap: 8px;
    }

    .number-btn {
        width: 50px;
        height: 50px;
        font-size: 1em;
    }

    canvas {
        max-width: 95vw;
        max-height: 60vh;
    }

    .game-wrapper, .game-container {
        padding: 10px;
    }

    .mobile-controls {
        display: grid;
    }

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

    .difficulty-btn {
        width: 100%;
    }

    .controls {
        flex-direction: column;
    }

    .controls button {
        width: 100%;
    }

    .title {
        font-size: 2em;
    }

    .dog-emoji {
        font-size: 4em;
    }

    .mess-item {
        font-size: 2.5em;
    }

    .mess-container {
        padding: 20px;
        gap: 15px;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group button {
        width: 100%;
    }

    .control-group label {
        font-size: 0.85em;
    }

    .value-display {
        font-size: 0.9em;
        padding: 3px 8px;
    }

    .parlay-leg .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .summary-value {
        font-size: 2.5em;
    }

    .summary-title {
        font-size: 0.8em;
    }

    .summary-odds {
        font-size: 0.85em;
    }

    .doc-list li {
        font-size: 0.85em;
    }

    /* Poetry & creative mobile styles */
    .content {
        padding: 15px;
    }

    .poem {
        padding: 20px;
    }

    .stanza {
        font-size: 0.9em;
    }

    .radish-garden {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 10px;
    }

    .radish-item {
        font-size: 2.5em;
    }

    /* Anniversary-style mobile */
    .curtain-section {
        height: 350px;
        margin: 30px 0;
    }

    .curtain-content {
        padding: 30px;
    }

    .curtain-content h3 {
        font-size: 1.5em;
    }

    .hearts-container {
        gap: 30px;
        padding: 30px;
    }

    .heart {
        font-size: 3.5em;
    }

    .memory-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .memory-card {
        padding: 20px;
        min-height: 130px;
    }

    .interactive-story {
        padding: 30px;
    }

    .story-text {
        font-size: 0.9em;
        line-height: 1.8;
    }

    /* Game mobile styles */
    .sudoku-grid {
        max-width: 90vw;
        gap: 1px;
    }

    .cell {
        font-size: 0.9em;
        min-height: 30px;
    }

    /* Filter section mobile */
    .filter-section {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }
}

/* MOBILE MEDIA QUERY - 480px and below */
@media (max-width: 480px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    body {
        padding: 70px 10px 15px;
    }

    .container {
        width: 100%;
        overflow-x: hidden;
    }

    .home-link {
        top: 12px;
        left: 12px;
        width: 32px;
        height: 32px;
        min-height: 32px;
        min-width: 32px;
    }

    .home-link::before,
    a.home-link::before {
        font-size: 16px;
    }

    .header {
        padding: 30px 15px;
    }

    h1 {
        font-size: 1.5em;
        letter-spacing: 0.5px;
    }

    h2 {
        font-size: 1.2em;
    }

    h3 {
        font-size: 1em;
    }

    .section {
        padding: 20px;
        margin-bottom: 30px;
    }

    p, .todo-text, .task-content, .step-content {
        font-size: 0.85em;
    }

    .stats, .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number, .stat-value {
        font-size: 1.4em;
    }

    button, .btn {
        font-size: 0.8em;
        padding: 8px 12px;
    }

    .modal-content {
        padding: 15px;
    }

    .number-pad {
        grid-template-columns: repeat(3, 45px);
        gap: 6px;
    }

    .number-btn {
        width: 45px;
        height: 45px;
        font-size: 0.9em;
    }

    /* Timeline mobile (480px) */
    .timeline-item {
        padding: 18px;
    }

    .timeline-item h3 {
        font-size: 1em;
    }

    .timeline-item .time {
        font-size: 0.8em;
    }

    .timeline-item p {
        font-size: 0.85em;
        line-height: 1.6;
    }

    /* Anniversary-style mobile (480px) */
    .curtain-section {
        height: 280px;
        margin: 20px 0;
    }

    .curtain-content {
        padding: 20px;
    }

    .curtain-content h3 {
        font-size: 1.3em;
    }

    .hearts-container {
        gap: 15px;
        padding: 20px;
    }

    .heart {
        font-size: 2.5em;
    }

    .memory-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .memory-card {
        padding: 18px;
        min-height: 120px;
    }

    .interactive-story {
        padding: 20px;
    }

    .story-text {
        font-size: 0.85em;
        line-height: 1.6;
    }

    /* Poetry mobile (480px) */
    .stanza {
        font-size: 0.85em;
    }

    .signature {
        font-size: 0.85em;
    }

    .radish-item {
        font-size: 2em;
    }

    /* Layout mobile (480px) */
    .input-section, .todos-section {
        padding: 15px;
    }

    .footer {
        padding: 20px 12px;
        font-size: 0.8em;
    }

    /* Prevent horizontal overflow */
    * {
        max-width: 100%;
    }

    .section,
    .timeline-item,
    .memory-card,
    .curtain-content,
    .interactive-story,
    .story-text {
        overflow-x: hidden;
        word-wrap: break-word;
    }
}

/* Extra small devices - 360px and below */
@media (max-width: 360px) {
    h1 {
        font-size: 1.3em;
    }

    h2 {
        font-size: 1.1em;
    }

    h3 {
        font-size: 0.95em;
    }

    .header p {
        font-size: 0.8em;
    }

    .timeline-item h3 {
        font-size: 0.95em;
    }

    .heart {
        font-size: 2em;
    }

    .home-link {
        width: 30px;
        height: 30px;
        min-height: 30px;
        min-width: 30px;
    }

    .home-link::before,
    a.home-link::before {
        font-size: 14px;
    }

    .footer {
        font-size: 0.75em;
    }
}
