/* assets/css/style.css */
:root {
    --bg-color: #0d1117;
    --text-color: #e6edf3;
    --primary: #238636;
    --primary-hover: #2ea043;
    --accent: #f78166; /* Orange/Red for chicks? */
    --surface: #161b22;
    --border: #30363d;
    --neon-yellow: #f2cc0c; /* Chick color */

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 60px; /* Space for nav if needed */
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 2rem 0;
    background: radial-gradient(circle at center, #1f2937 0%, var(--bg-color) 70%);
}

header h1 {
    font-size: 2.5rem;
    color: var(--neon-yellow);
    text-shadow: 0 0 10px rgba(242, 204, 12, 0.5);
    margin-bottom: 0.5rem;
}

/* Auth / Landing */
.auth-box {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}

input[type="text"], input[type="number"] {
    background: #0d1117;
    border: 1px solid var(--border);
    color: var(--text-color);
    padding: 12px;
    border-radius: 6px;
    width: 100%;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    width: 100%;
    margin-top: 10px;
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: var(--surface);
    border-color: var(--border);
}
.btn-secondary:hover {
    background: #21262d;
}

/* Game Dashboard */
.status-bar {
    display: flex;
    justify-content: space-between;
    background: var(--surface);
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.balance {
    color: var(--neon-yellow);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Race Track */
.track {
    background: #2c3e50;
    border-top: 4px solid #fff;
    border-bottom: 4px solid #fff;
    padding: 20px 0;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    height: 480px; /* Adjust for 6 lanes */
}

.lane {
    height: 70px;
    border-bottom: 1px dashed rgba(255,255,255,0.2);
    position: relative;
    display: flex;
    align-items: center;
}

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

.chick {
    width: 60px;
    height: 60px;
    position: absolute;
    left: 0;
    transition: left 0.5s linear; /* Smooth movement update */
    z-index: 10;
}
.chick img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.chick-label {
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 0.8rem;
    color: #fff;
    white-space: nowrap;
    background: rgba(0,0,0,0.5);
    padding: 2px 4px;
    border-radius: 4px;
}

.finish-line {
    position: absolute;
    right: 50px;
    top: 0;
    bottom: 0;
    width: 10px;
    background: repeating-linear-gradient(
      0deg,
      #fff,
      #fff 10px,
      #000 10px,
      #000 20px
    );
    z-index: 5;
}

/* Betting Cards */
.entries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.entry-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s;
}

.entry-card:hover {
    border-color: var(--accent);
}

.entry-card.selected {
    border-color: var(--neon-yellow);
    box-shadow: 0 0 10px rgba(242, 204, 12, 0.3);
}

.entry-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}
.entry-name { font-weight: bold; margin-bottom: 5px; }
.entry-odds { color: var(--accent); font-size: 1.1rem; }
.entry-character { font-size: 0.8rem; color: #8b949e; }

/* Admin Panel */
.admin-panel {
    border: 1px solid var(--primary);
    padding: 15px;
    margin-top: 30px;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 600px) {
    header h1 { font-size: 2rem; }
    .track { height: 400px; }
    .lane { height: 60px; }
    .chick { width: 50px; height: 50px; }
}

/* Animations */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
;
}
.chick img {
    animation: bounce 0.5s infinite;
}
