/* One file for games: the parts that used to be separate files follow in their old order, each in its old layer. */
/* main.css */

/* 1. Define your layer order. */
@layer global, layout, components, overrides;

@import url("../components/hub-card.5d27defa1fea.css") layer(components);

/* ==== variables.css (layer variables) ==== */
@layer variables {
/* games/variables.css */

:root {
    /* Color Palette */
    --game-primary-hover: #00cc6a;
    --game-text-color: var(--line);
    --game-bg-secondary: #1a1a2e;

    /* Button Colors */
    --button-primary-bg: #00cc6a;
    --button-secondary-bg: #007BFF;
    --button-secondary-hover: #459bf6;
    --button-tertiary-bg: #28a745;

    /* Grid Colors */
    --grid-cell-bg: rgba(255, 255, 255, 0.05);
    --grid-cell-border: rgba(255, 255, 255, 0.1);
    --grid-bg: rgba(255, 255, 255, 0.1);

    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 30px;

    /* Container */
    --container-max-width: 600px;
    --container-padding: 20px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 255, 136, 0.2);
    --shadow-glow: 0 0 10px rgba(0, 255, 136, 0.3);
}
}

/* ==== global.css (layer global) ==== */
@layer global {
/* games/global.css */

* {
    box-sizing: border-box;
}

h1 {
    text-align: center;
    text-shadow: var(--shadow-glow);
    margin: var(--spacing-md) 0 var(--spacing-sm) 0;
    font-size: 2rem;
}

h2 {
    text-align: center;
    color: var(--ink);
    margin: var(--spacing-md) 0;
}

h3 {
    text-align: center;
    margin: var(--spacing-sm) 0;
}

.info {
    text-align: center;
    color: var(--ink-3);
    margin: var(--spacing-sm) 0;
}

/* Hub page */
.hub-header {
    width: 100%;
    text-align: center;
    margin-bottom: 24px;
    padding-top: 12px;
    border-bottom: 2px solid var(--accent-activity);
}

.hub-header h1 {
    font-size: 1.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    color: var(--game-text-color);
    text-shadow: 0 0 12px rgba(0,255,136,.3);
}
}

/* ==== layout.css (layer layout) ==== */
@layer layout {
/* games/layout.css */

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Button Row / Navigation */
.button-row {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

/* Stats Section */
.stats {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin: var(--spacing-md) 0;
    width: 100%;
}

.stat {
    background: rgba(0, 0, 0, 0.3);
    color: var(--ink-3);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    border: 1px solid var(--grid-cell-border);
    text-align: center;
    min-width: 80px;
}

.stat span {
    display: block;
    color: var(--accent-activity);
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: var(--spacing-xs);
}

/* Controls Section */
.controls {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin: var(--spacing-md) 0;
    width: 100%;
}

/* Thinking / Status Display */
.thinking {
    text-align: center;
    color: var(--accent-activity);
    min-height: 30px;
    padding: var(--spacing-sm);
    font-style: italic;
}

.status {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    margin: var(--spacing-md) 0;
    border: 1px solid var(--grid-cell-border);
    color: var(--game-text-color);
    width: 100%;
    max-width: 500px;
}

/* State Display */
.state-display {
    background: rgba(0, 0, 0, 0.4);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    margin: var(--spacing-md) 0;
    border: 1px solid var(--grid-cell-border);
    width: 100%;
    max-width: 500px;
}

.state-display pre {
    margin: var(--spacing-sm) 0 0 0;
    color: var(--accent-activity);
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    overflow-x: auto;
}

/* Access Control States */
.access-denied {
    text-align: center;
    margin-top: 50px;
    color: red;
}

.access-denied h1 {
    color: red;
}

.access-denied h3 {
    color: var(--game-text-color);
}

.access-denied h3 span {
    color: gold;
}

.access-pending {
    text-align: center;
    margin-top: 50px;
    padding: var(--spacing-md);
    color: aqua;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
}

.access-pending h2 {
    color: aqua;
}

.access-pending p {
    color: var(--game-text-color);
}
}

/* ==== components/button.css (layer components) ==== */
@layer components {
/* games/components/button.css */

button {
    background-color: var(--button-primary-bg);
    color: var(--ink);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    min-width: 80px;
    box-shadow: var(--shadow-sm);
}

button:hover {
    background: linear-gradient(145deg, var(--button-primary-bg), var(--accent-teal-dark));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

button:disabled {
    /* off is its own colour, never a faded on */
    background-color: var(--disabled-bg);
    background-image: none;
    color: var(--ink);
    box-shadow: none;
    cursor: not-allowed;
}

/* Navigation Button Style */
.button2 {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--button-secondary-bg);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
}

.button2:hover {
    background-color: var(--button-secondary-hover);
    transform: translateY(-1px);
}

/* Action Button Style (for game start, etc.) */
.button3 {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--button-tertiary-bg);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.1rem;
}

.button3:hover {
    background-color: var(--activity-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.button3:active {
    transform: translateY(0);
}

.register-btn { 
    text-decoration: none; 
    font-weight: 600; 
}
}

/* ==== components/cell.css (layer components) ==== */
@layer components {
/* games/components/cell.css */

.grid {
    --cell-min: 28px;
    --cell-vw: 8.5vw;
    --cell-max: 40px;
    --grid-gap: 2px;
    --grid-padding: 2px;

    display: grid !important;
    grid-template-columns: repeat(10, 1fr) !important;
    gap: var(--grid-gap);
    background: var(--grid-bg);
    padding: var(--grid-padding);
    border-radius: var(--radius-lg);
    margin: var(--spacing-md) auto;
    max-width: 500px;
    width: 100%;
}

.cell {
    width: clamp(var(--cell-min), var(--cell-vw), var(--cell-max));
    aspect-ratio: 1 / 1;
    background: var(--grid-cell-bg);
    border: 1px solid var(--grid-cell-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    flex-direction: column;
}

.cell:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-activity);
}

.coord {
    font-size: 14px;
    color: var(--ink-2);
    position: absolute;
    top: 1px;
    left: 2px;
}

.content {
    font-size: 16px;
    font-weight: bold;
}
}

/* ==== components/log.css (layer components) ==== */
@layer components {
/* games/components/log.css */

.log {
    background: rgba(0, 0, 0, 0.3);
    color: var(--surface);
    border-radius: 8px;
    padding: 5px;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.log-entry {
    margin: 5px 0;
    padding: 5px;
    /* Use the variable for the green border */
    border-left: 3px solid var(--accent-activity); 
    padding-left: 10px;
}
}

/* ==== components/animations.css (layer components) ==== */
@layer components {
/* animations.css */

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

@keyframes glow {
    0% { box-shadow: 0 0 10px rgba(255, 107, 53, 0.4); }
    100% { box-shadow: 0 0 20px rgba(255, 107, 53, 0.8); }
}
}

/* ==== components/lucky_number.css (layer components) ==== */
@layer components {
/* games/components/lucky_number.css */
/* Styles for Lucky Number games (daily, pro, history) */

/* ===== LUCKY NUMBER DAILY STYLES ===== */

/* ── Page atmosphere ───────────────────────────────────── */
.lucky-daily-body {
    background: var(--bg-primary);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0.5rem 0 2rem;
}

.lucky-daily-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 30%, rgba(255, 179, 71, 0.3) 0%, transparent 70%),
        radial-gradient(circle at 20% 80%, rgba(255, 105, 180, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 85% 20%, rgba(64, 224, 208, 0.15) 0%, transparent 40%);
    pointer-events: none;
    animation: ambientShift 12s ease-in-out infinite alternate;
}

@keyframes ambientShift {
    0%   { opacity: .6; }
    100% { opacity: 1; }
}

/* ── Banner (one element — title + price) ──────────────── */
.lucky-number-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.55rem 2rem;
    margin: 0 auto 0.25rem;
    width: fit-content;
    position: relative;
    z-index: 1;
    background: linear-gradient(160deg, #2d1b69 0%, #1a1050 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    text-decoration: none;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(212, 175, 55, 0.08),
        inset 0 0 0 4px rgba(10, 8, 14, 1),
        inset 0 0 0 5px rgba(212, 175, 55, 0.25);
    transition: box-shadow .3s, border-color .3s;
}

.lucky-number-banner:hover {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow:
        0 6px 28px rgba(0, 0, 0, 0.5),
        0 0 12px rgba(212, 175, 55, 0.1),
        inset 0 0 0 4px rgba(10, 8, 14, 1),
        inset 0 0 0 5px rgba(212, 175, 55, 0.4);
}

.banner-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: var(--accent-gold);
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.banner-price {
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(220, 210, 190, 0.55);
    letter-spacing: 0.04em;
}

.banner-cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(212, 175, 55, 0.7);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.1rem;
    transition: color .2s;
}

.lucky-number-banner:hover .banner-cta {
    color: rgba(212, 175, 55, 1);
}

/* ── Wheel stage (glow + orb) ──────────────────────────── */
.wheel-stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0 0.5rem;
}

.wheel-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    animation: pulseGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: .5; }
    50%      { transform: scale(1.15); opacity: .8; }
}

.wheel {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background:
        radial-gradient(circle at 35% 35%, rgba(255, 200, 80, 0.7) 0%, transparent 50%),
        radial-gradient(circle at 70% 65%, rgba(180, 60, 90, 0.5) 0%, transparent 45%),
        conic-gradient(
            from 45deg,
            var(--accent-gold), #c0392b, #8e44ad, #2980b9,
            #1abc9c, #f39c12, var(--accent-gold)
        );
    border: 3px solid rgba(212, 175, 55, 0.5);
    box-shadow:
        0 0 30px rgba(212, 175, 55, 0.25),
        0 0 60px rgba(212, 175, 55, 0.1),
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    transition: transform .3s, box-shadow .3s;
}

.wheel-ring {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

.wheel:hover:not(.spinning):not(.inactive) {
    transform: scale(1.05);
    box-shadow:
        0 0 50px rgba(212, 175, 55, 0.35),
        0 0 80px rgba(212, 175, 55, 0.15),
        0 16px 50px rgba(0, 0, 0, 0.5),
        inset 0 0 40px rgba(255, 255, 255, 0.15);
}

.wheel-content {
    position: relative;
    z-index: 1;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.5px;
}

.wheel-text {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    opacity: 0.9;
}

/* ── Spin animation ────────────────────────────────────── */
.wheel.spinning {
    animation: orbSpin 3s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

@keyframes orbSpin {
    0%   { transform: rotate(0deg) scale(1); }
    40%  { transform: rotate(600deg) scale(1.08); }
    100% { transform: rotate(1440deg) scale(1); }
}

/* ── Result number ─────────────────────────────────────── */
.lucky-number {
    font-family: 'Roboto', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    color: white;
    text-shadow:
        0 0 15px rgba(212, 175, 55, 0.8),
        0 0 30px rgba(212, 175, 55, 0.4),
        0 0 50px rgba(212, 175, 55, 0.2);
    animation: revealNumber .5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* ── Spin Again button ─────────────────────────────────── */
.spin-again {
    display: none;
    margin: 1rem auto 0;
    padding: 0.6rem 2rem;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 2rem;
    cursor: pointer;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    transition: background .25s, border-color .25s, box-shadow .25s;
    position: relative;
    z-index: 1;
}

.spin-again:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 10px rgba(212, 175, 55, 0.1);
}

/* ===== LUCKY NUMBER PRO STYLES ===== */

/* Pro page container - applies purple gradient background */
.lucky-pro-container {
    background: linear-gradient(135deg, #6E0D25 80%, var(--accent-teal) 20%);
    min-height: 100vh;
    margin: 2rem 0;
    color: white;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    padding: 2rem 1rem;
}

.lucky-pro-container a {
    padding: 4px 8px;
    background-color: var(--accent-teal);
    color: white; /* White hyperlinks */
    text-decoration: none; /* Optional: remove underline */
}

.lucky-pro-container a:hover {
    text-decoration: underline; /* Optional: underline on hover */
}

.lucky-pro-container h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
}

/* Pro Wheel Variants */
.wheel.inactive {
    cursor: not-allowed;
    opacity: 0.7;
    background: linear-gradient(45deg, var(--ink-3) 0%, var(--ink-2) 100%);
}

.wheel.lucky-day {
    background: linear-gradient(45deg, #ffd700 0%, #ffed4e 100%);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
}

/* Form Section */
.form-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
    color: white;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Result Display */
.result-display {
    margin-top: 2rem;
    font-size: 1.2rem;
}

.total-score {
    font-size: 4rem;
    font-weight: bold;
    margin: 1rem 0;
    color: white;
}

.bonus-info {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    color: white;
}

.daily-limit-msg {
    background: rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    font-size: 1.1rem;
    color: white;
}

/* Top Score Banner */
.top-score-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: var(--ink);
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.top-score-banner.show {
    transform: translateY(0);
}

.top-score-banner .score-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.top-score-banner .score-label {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

body.has-banner {
    padding-top: 120px;
}

/* Pro specific button */
.search-lucky {
    background-color: navy;
    color: gold;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* ===== LUCKY NUMBER HISTORY STYLES ===== */

/* History page specific heading */
.lucky-history h1 {
    color: #667eea;
    text-align: center;
    margin-bottom: 2rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #6E0D25 0%, #5e214a 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Chart Container */
.chart-container {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    max-height: 400px;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table-container th {
    background: #667eea;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: bold;
}

.table-container td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--line);
}

.table-container tr:hover {
    background: #f8f9fa;
}

.best-score {
    background: #ffd700 !important;
    font-weight: bold;
}

.lucky-day-badge {
    background: var(--gold-bright);
    color: var(--text-main);
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.875rem;
    font-weight: bold;
}

.back-link {
    display: inline-block;
    color: var(--ink-3);
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: var(--ink-3);
    font-size: 1.2rem;
}

/* ===== UTILITY CLASSES ===== */

.hidden {
    display: none;
}

.error {
    color: var(--danger);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: 5px;
    margin-top: 1rem;
}

/* ===== RESPONSIVE STYLES ===== */

@media (max-width: 480px) {

    .lucky-daily-body {
        padding: 0.25rem 2px 1.5rem;
    }

    .lucky-number-banner {
        padding: 0.4rem 1.4rem;
    }

    .banner-title {
        font-size: 0.95rem;
    }

    .wheel {
        width: 240px;
        height: 240px;
    }

    .wheel-glow {
        width: 300px;
        height: 300px;
    }

    .wheel-stage {
        margin: 1rem 0 0.25rem;
    }

    .lucky-number {
        font-size: 3.5rem;
    }

    .spin-again {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Pro page responsive */
    .total-score {
        font-size: 2rem;
    }

    .form-section {
        padding: 0.3rem;
    }

    .top-score-banner .score-value {
        font-size: 1.8rem;
    }

    .top-score-banner .score-label {
        font-size: 0.875rem;
        letter-spacing: 1px;
    }

    .top-score-banner {
        padding: 0.5rem;
    }

    body.has-banner {
        padding-top: 90px;
    }
}

/* 480 -- space is gold: the shell gives its padding back to the content. */
@media (max-width: 480px) {
  .lucky-pro-container { padding-left: 4px; padding-right: 4px; }
  .chart-container { padding-left: 4px; padding-right: 4px; }
  .table-container th { padding-left: 4px; padding-right: 4px; }
  .table-container td { padding-left: 4px; padding-right: 4px; }
}
}

/* ==== components/exceptions.css (layer overrides) ==== */
@layer overrides {
/* exceptions.css */

/* Cell States */
.cell.player {
    background: radial-gradient(circle, #00ff88, #00cc6a);
    color: var(--ink);
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    border: 2px solid var(--surface);
}

.cell.item {
    background: radial-gradient(circle, #ff6b35, #d63031);
    color: var(--surface);
    animation: glow 3s ease-in-out infinite alternate;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.4);
}

.cell.adjacent {
    background: rgba(0, 255, 136, 0.2);
    border: 2px solid #00ff88;
    cursor: pointer;
}

.cell.adjacent:hover {
    background: rgba(0, 255, 136, 0.3);
    transform: scale(1.05);
}

.cell.hidden {
    background: radial-gradient(circle, #ff4757, #d63031);
    opacity: 0.5;
    box-shadow: 0 0 5px rgba(255, 71, 87, 0.3);
}

.cell.visible {
    opacity: 1;
}

/* Button State */
button.clicked {
    background: var(--danger) !important;
    transform: translateY(0px);
    box-shadow: 0 2px 5px rgba(255, 71, 87, 0.3);
}
}

/* ==== components/responsive.css (layer overrides) ==== */
@layer overrides {
/* responsive.css */

/*
 * Medium screens - reduce padding
 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
}

/*
 * Small screens - minimum padding as per CLAUDE.md instructions
 */
@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 5px;
        border-radius: 0;
    }

    .grid {
        width: 100%;
        max-width: none;
        padding: 4px;
        border-radius: 0;
        margin: var(--spacing-sm) auto;
    }

    h1 {
        font-size: 1.5rem;
        margin: var(--spacing-sm) 0;
    }

    .stats,
    .controls,
    .log,
    .status,
    .state-display,
    .thinking {
        max-width: 100%;
        padding: var(--spacing-xs);
    }

    .stats {
        gap: var(--spacing-xs);
    }

    .stat {
        min-width: 70px;
        padding: var(--spacing-xs);
    }

    .stat span {
        font-size: 1.2rem;
    }

    .controls {
        gap: var(--spacing-xs);
        flex-wrap: wrap;
    }

    button {
        min-width: 70px;
        padding: 6px 12px;
        font-size: 14px;
    }

    .button-row {
        gap: var(--spacing-xs);
    }

    .button2 {
        padding: 6px 12px;
        font-size: 14px;
    }

    .button3 {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .info {
        font-size: 0.9rem;
        padding: 0 var(--spacing-xs);
    }

    .state-display pre {
        font-size: 14px;
    }
}

/*
 * Extra small screens - very minimal padding
 */
@media (max-width: 360px) {
    .container {
        padding: 2px;
    }

    .grid {
        padding: 2px;
    }

    h1 {
        font-size: 1.3rem;
    }

    .stats {
        gap: 4px;
    }

    .stat {
        min-width: 60px;
        padding: 4px;
    }

    .controls {
        gap: 4px;
    }

    button {
        min-width: 60px;
        padding: 5px 10px;
        font-size: 14px;
    }

    .button2,
    .button3 {
        padding: 5px 10px;
        font-size: 14px;
    }
}
}
