/* ==========================================================================
   Tama Olympus - stylesheet (no framework, mobile-first)
   Colors come from the "Marketing as a Team Sport" workshop deck.
   Layout: base styles are for phones; @media (min-width) blocks add the desktop layout.
   ========================================================================== */

/* 1. Design tokens (change colors here and the whole app follows) ----------- */
:root {
    --forest-dark: #073B3D;      /* brand ink: darkest teal (top bar, sidebar) */
    --primary-color: #117B95;    /* brand deep teal: main buttons */
    --primary-hover: #0E6379;
    --success-color: #5E8600;    /* deck: olive-lime (success buttons, scores) */
    --success-hover: #496800;
    --accent-lime: #23B4C9;      /* brand turquoise (progress, focus) */
    --accent-teal: #007C99;      /* deck: teal (links; slightly darker for contrast) */
    --accent-orange: #E9873C;    /* deck: orange (alerts, bronze) */
    --bg-color: #F3F6EC;         /* off-white tint for inner panels */
    --card-bg: #FFFFFF;
    --text-main: #073B3D;
    --text-muted: #4F6B6C;
    --border-color: #DCE4D6;
    --danger: #B3261E;
    --gold: #F2B01E;
    --silver: #B8C0B4;
    --bronze: #E9873C;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(15, 45, 5, 0.08);
}

/* 2. Reset / base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #FAFBF6;
    color: var(--text-main);
    font-family: "Lato", "Segoe UI", Roboto, Calibri, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
img, video { max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0 0 8px; color: var(--text-main); line-height: 1.2; font-family: "Roboto Condensed", "Arial Narrow", "Lato", sans-serif; font-weight: 700; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 12px; }
a { color: var(--accent-teal); }
code { background: #E7EEDF; padding: 1px 6px; border-radius: 4px; }
.muted { color: var(--text-muted); }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--accent-lime); outline-offset: 2px; }

/* 3. Top bar and navigation ---------------------------------------------------- */
.topbar { background: var(--forest-dark); position: sticky; top: 0; z-index: 50; }
.topbar-inner {
    max-width: 1100px; margin: 0 auto; padding: 10px 16px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.brand { color: #fff; text-decoration: none; font-size: 1.15rem; letter-spacing: .3px; }
.brand strong { color: var(--accent-lime); }
.brand-mark { color: var(--accent-lime); margin-right: 4px; }

.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle { display: flex; flex-direction: column; gap: 5px; padding: 10px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 3px; background: #fff; border-radius: 2px; }
.nav-toggle-input:focus-visible + .nav-toggle { outline: 3px solid var(--accent-lime); }

.nav-links { display: none; width: 100%; flex-direction: column; gap: 4px; padding: 8px 0 6px; }
.nav-toggle-input:checked ~ .nav-links { display: flex; }
.nav-links a, .nav-btn {
    display: block; width: 100%; text-align: left; color: #E9F2DE; background: none; border: 0;
    padding: 12px; border-radius: 8px; text-decoration: none; font: inherit; cursor: pointer;
}
.nav-links a:hover, .nav-btn:hover { background: rgba(255,255,255,.08); }
.nav-links a.active { background: var(--primary-color); color: #fff; font-weight: 600; }
.nav-logout { margin: 0; }

/* 4. Page frame ---------------------------------------------------------------- */
.page { width: 100%; max-width: 900px; margin: 0 auto; padding: 20px 16px 40px; flex: 1; }
.page-wide { max-width: 1100px; }
.page-head { margin-bottom: 16px; }
.lead { color: var(--text-muted); max-width: 62ch; margin: 0; }
.help { color: var(--text-muted); font-size: .95rem; }
.site-footer { text-align: center; color: var(--text-muted); font-size: .85rem; padding: 18px 16px; }

/* 5. Cards ----------------------------------------------------------------------- */
.card {
    background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 20px; margin-bottom: 18px;
}
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.empty-state { text-align: center; color: var(--text-muted); }
.empty-state h3 { color: var(--text-muted); }

/* 6. Login page ------------------------------------------------------------------ */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; background: var(--forest-dark); }
.hero-img { display: block; width: 100%; height: 240px; object-fit: cover; opacity: .75; }
.hero-overlay {
    position: absolute; inset: 0; padding: 20px; color: #fff;
    display: flex; flex-direction: column; justify-content: flex-end;
    background: linear-gradient(0deg, rgba(15,45,5,.92) 0%, rgba(15,45,5,.1) 70%);
}
.hero h1 { color: #fff; font-size: 1.7rem; margin-bottom: 6px; }
.hero-sub { margin: 0; color: #DCEBC8; font-size: .95rem; }
.eyebrow { margin: 0 0 6px; color: var(--accent-lime); font-size: .78rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }

.steps { margin: 0; padding-left: 22px; }
.steps li { margin-bottom: 8px; }
.how-it-works h2 { margin-bottom: 10px; }

.auth-card { padding: 0; overflow: hidden; }
.auth-tabs { display: flex; background: #EAF0E3; }
.auth-tab {
    flex: 1; padding: 14px; border: 0; background: none; font: inherit; font-weight: 700;
    color: var(--text-muted); cursor: pointer;
}
.auth-tab.active { background: var(--card-bg); color: var(--primary-color); box-shadow: inset 0 -3px 0 var(--accent-lime); }
.auth-pane { display: none; padding: 20px; }
.auth-pane.active { display: block; }

/* 7. Forms --------------------------------------------------------------------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: .92rem; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=datetime-local], select, textarea {
    width: 100%; padding: 12px; font: inherit; color: var(--text-main); background: #fff;
    border: 2px solid var(--border-color); border-radius: 10px; transition: border-color .2s;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary-color); }
input:disabled, select:disabled, textarea:disabled { background: #F1F4EC; color: #4a5a50; cursor: not-allowed; }
input[type=file] { width: 100%; font: inherit; padding: 8px 0; }
.field-hint { display: block; margin-top: 4px; color: var(--text-muted); font-size: .82rem; }

/* 8. Buttons ------------------------------------------------------------------- */
.btn {
    display: inline-block; width: 100%; padding: 13px 16px; border: 0; border-radius: 10px;
    color: #fff; font: inherit; font-weight: 700; text-align: center; text-decoration: none;
    cursor: pointer; transition: background-color .2s, transform .15s; margin-top: 6px;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary-color); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-success { background: var(--success-color); }
.btn-success:hover { background: var(--success-hover); }
.btn-outline { background: transparent; color: var(--primary-color); box-shadow: inset 0 0 0 2px var(--primary-color); }
.btn-outline:hover { background: #EAF0E3; }
.btn-sm { width: auto; padding: 8px 14px; font-size: .9rem; margin-top: 0; }
.btn-inline { width: auto; align-self: end; margin-top: 0; }

.message-container { min-height: 22px; margin-top: 12px; text-align: center; font-size: .92rem; font-weight: 600; }
.text-success { color: #3F6B00; }
.text-danger { color: var(--danger); }
.text-secondary { color: var(--text-muted); }

/* 9. Stat cards and progress ------------------------------------------------------- */
.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.stat-card {
    background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 14px 16px; display: flex; flex-direction: column; justify-content: center;
}
.stat-wide { grid-column: 1 / -1; }
.stat-num { font-size: 1.9rem; font-weight: 800; color: var(--primary-color); line-height: 1.1; }
.stat-label { font-size: .85rem; color: var(--text-muted); }
.stat-alert .stat-num { color: var(--accent-orange); }
.progress-bar-container { width: 100%; height: 14px; margin-top: 8px; background: var(--border-color); border-radius: 20px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--success-color), var(--accent-lime)); border-radius: 20px; transition: width .8s ease; }

/* 10. Day tabs and mission cards ----------------------------------------------------- */
.tabs { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.tab-btn {
    flex: 0 0 auto; padding: 11px 16px; border: 0; border-radius: 10px; background: #E4EBDC;
    color: var(--text-muted); font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.tab-btn.active { background: var(--primary-color); color: #fff; box-shadow: 0 4px 10px rgba(20,79,0,.25); }
.tab-count { margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: rgba(0,0,0,.1); font-size: .78rem; }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn .35s ease-out; }
.day-intro { background: #E7F0D5; border-radius: 10px; padding: 12px 14px; color: var(--primary-color); }

.task-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.task-card {
    background: var(--card-bg); border: 2px solid var(--border-color); border-radius: var(--radius);
    padding: 18px; display: flex; flex-direction: column;
}
.task-card.is-done { border-color: var(--accent-lime); background: #FBFDF7; }
.task-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.task-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.god-chip { display: inline-block; margin-bottom: 4px; padding: 2px 10px; border-radius: 12px; background: var(--forest-dark); color: var(--accent-lime); font-size: .72rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.points-chip { padding: 3px 10px; border-radius: 12px; background: #FFF1E3; color: #A4510F; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.task-badge { padding: 3px 10px; border-radius: 12px; background: rgba(94,134,0,.15); color: #3F6B00; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge-verified { background: #3F6B00; color: #fff; }
.badge-locked { background: #EEE; color: #555; }
.task-desc { color: var(--text-muted); font-size: .95rem; }
.task-form { margin-top: auto; }
.uploaded-note { color: #3F6B00; font-weight: 600; font-size: .9rem; }

/* 11. Leaderboard -------------------------------------------------------------------- */
.leaderboard-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hero-card {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg-color);
    border-radius: 12px; border-left: 6px solid var(--border-color); transition: transform .2s, box-shadow .2s;
}
.hero-card:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(15,45,5,.1); background: #fff; }
.hero-card.rank-1 { border-left-color: var(--gold); }
.hero-card.rank-2 { border-left-color: var(--silver); }
.hero-card.rank-3 { border-left-color: var(--bronze); }
.hero-card.is-me { outline: 2px solid var(--accent-lime); background: #F4FAE6; }
.rank-badge { flex: 0 0 auto; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--border-color); font-weight: 800; }
.rank-1 .rank-badge { background: var(--gold); color: #3a2a00; }
.rank-2 .rank-badge { background: var(--silver); color: #1c2a1c; }
.rank-3 .rank-badge { background: var(--bronze); color: #fff; }
.hero-info { flex: 1; min-width: 0; }
.hero-name { font-weight: 800; color: var(--primary-color); overflow-wrap: anywhere; }
.hero-title { font-size: .78rem; color: var(--text-muted); }
.hero-score { flex: 0 0 auto; padding: 6px 12px; border-radius: 20px; background: rgba(94,134,0,.14); color: #3F6B00; font-size: 1.15rem; font-weight: 900; }
.hero-score span { font-size: .75rem; font-weight: 600; color: var(--text-muted); }
.you-tag { margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: var(--accent-lime); color: var(--forest-dark); font-size: .7rem; font-weight: 800; }

/* 12. Admin: tables, filters, submissions ------------------------------------------------- */
.table-wrap { margin-top: 10px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--bg-color); color: var(--primary-color); text-align: left; }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.empty-cell { text-align: center; color: var(--text-muted); }
.badge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: .78rem; font-weight: 700; }
.badge-pending { background: #FDEEDD; color: #9A4F12; }
.badge-approved { background: #E4F0C2; color: #2F4A00; }

/* On phones each table row becomes a small card, so nothing needs sideways scrolling. */
@media (max-width: 719px) {
    .data-table thead { display: none; }
    .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
    .data-table tr { padding: 10px 0; border-bottom: 2px solid var(--border-color); }
    .data-table td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
    .data-table td::before { content: attr(data-label); font-weight: 700; color: var(--text-muted); text-align: left; }
    .data-table td[colspan] { display: block; text-align: center; }
    .data-table td[colspan]::before { content: none; }
}

.filter-bar { display: flex; flex-direction: column; gap: 4px; }
.filter-bar .form-group { margin-bottom: 8px; }
.submission-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.submission-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.submission-card header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.submission-card h3 { margin-bottom: 2px; overflow-wrap: anywhere; }
.sub-mission { margin: 0; font-weight: 600; font-size: .92rem; }
.sub-answer { background: var(--bg-color); padding: 10px 12px; border-radius: 8px; overflow-wrap: anywhere; }
.media-preview { display: block; width: 100%; max-height: 320px; object-fit: contain; border-radius: 8px; margin: 10px 0; background: #000; }

/* 13. Animation ---------------------------------------------------------------------------- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ==========================================================================
   Tablet and desktop (>= 720px)
   ========================================================================== */
@media (min-width: 720px) {
    h1 { font-size: 2.1rem; }
    .page { padding: 28px 24px 56px; }
    .card { padding: 26px; }
    .card.auth-card { padding: 0; }

    /* Navigation becomes one horizontal row, burger button disappears */
    .nav-toggle { display: none; }
    .nav-links { display: flex; width: auto; flex-direction: row; align-items: center; padding: 0; }
    .nav-links a, .nav-btn { width: auto; padding: 8px 14px; }

    .hero-img { height: 320px; }
    .hero-overlay { padding: 32px; }
    .hero h1 { font-size: 2.4rem; }

    .stats-row { grid-template-columns: repeat(4, 1fr); }
    .stat-wide { grid-column: span 2; }
    .task-grid { grid-template-columns: 1fr 1fr; }
    .submission-grid { grid-template-columns: 1fr 1fr; }
    .filter-bar { flex-direction: row; align-items: flex-end; gap: 16px; }
    .filter-bar .form-group { flex: 1; margin-bottom: 0; }
    .btn { width: auto; min-width: 160px; }
    .auth-pane .btn, .task-form .btn { width: 100%; }
}

@media (min-width: 1000px) {
    .page-wide .submission-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ==========================================================================
   Games, admin control panel, entries (version 2)
   ========================================================================== */

/* Flash messages (one-time notices after a form was saved) */
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; }
.flash-success { background: #E4F0C2; color: #2F4A00; }
.flash-danger  { background: #FBE4E1; color: var(--danger); }
.flash-info    { background: #E1F1F6; color: #064B5E; font-weight: 500; }

.crumbs { margin: 0 0 6px; font-size: .9rem; }
.sub-title { margin-top: 22px; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.inline { display: inline-block; margin: 0; }
form[hidden] { display: none; }

/* Game cards and progress line */
.game-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.game-card h2 { margin-bottom: 6px; }
.progress-line { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; }
.progress-line .progress-bar-container { margin-top: 0; flex: 1; }
.progress-pct { font-weight: 800; color: var(--primary-color); min-width: 44px; text-align: right; }
.hero-info .progress-line { margin: 4px 0; }

/* Mission cards: timer, entries, tags */
.day-closed { background: #FDEEDD; color: #7A3E0C; }
.timer-note { background: #EEF4E6; border-radius: 8px; padding: 8px 12px; font-size: .9rem; margin: 6px 0 12px; }
.timer-over { background: #FBE4E1; color: var(--danger); }
.tag-chip { display: inline-block; padding: 2px 10px; border-radius: 12px; background: #E1F1F6; color: #064B5E; font-size: .78rem; font-weight: 700; }
.entry-list { list-style: none; margin: 8px 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.entry-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 10px 12px; background: var(--bg-color); border-radius: 10px; }
.entry-main { min-width: 0; overflow-wrap: anywhere; }
.entry-main p { margin: 4px 0; }
.entry-form { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border-color); }
.upload-progress { margin-bottom: 8px; }

/* Forms on admin pages */
.stack-form { display: flex; flex-direction: column; gap: 4px; }
.inline-form { display: flex; flex-direction: column; gap: 4px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0 20px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; font-weight: 400; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.advanced { margin: 6px 0 12px; padding: 10px 14px; background: var(--bg-color); border-radius: 10px; }
.advanced summary { cursor: pointer; font-weight: 700; color: var(--primary-color); }
.current-file { margin-top: 10px; }
.current-file .media-preview { max-width: 360px; }
fieldset.days-pick { border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 14px; margin: 0 0 16px; }
fieldset.days-pick legend { font-weight: 600; padding: 0 6px; font-size: .92rem; }
select[multiple] { padding: 6px; }
.card-danger { border-top-color: var(--danger); }
.copy-form { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border-color); }

/* Days and game missions rows */
.day-row { display: flex; flex-direction: column; gap: 4px; padding: 12px; margin-bottom: 10px; background: var(--bg-color); border-radius: 12px; }
.day-num { font-weight: 800; color: var(--primary-color); }
.gm-row { padding: 12px; margin-bottom: 10px; border: 1px solid var(--border-color); border-radius: 12px; display: flex; flex-direction: column; gap: 8px; }
.gm-title { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; align-items: end; }
.gm-form .form-group { margin-bottom: 8px; }
.gm-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mini-input { width: 76px !important; padding: 7px 8px !important; display: inline-block; }
.chips-cell { display: flex; flex-wrap: wrap; gap: 6px; }
.day-chip { border: 0; border-radius: 12px; padding: 3px 10px; background: #E4F0C2; color: #2F4A00; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.day-chip:hover { background: #F3CFCB; color: var(--danger); }
.actions-cell { display: flex; flex-wrap: wrap; gap: 8px; }
/* Admin task action help bubble */
.help-bubble-wrap { position: relative; display: inline-flex; align-items: center; }
.help-bubble-wrap summary { list-style: none; }
.help-bubble-wrap summary::-webkit-details-marker { display: none; }
.help-circle {width:22px;height:22px;border-radius:50%;background:#e9ecef;color:var(--text-main);font-size:12px;font-weight:800;display: inline-flex;align-items:center;justify-content:center;cursor:pointer;border: 1px solid var(--border-color);user-select:none;}
.help-bubble-text {position: absolute;bottom: calc(100% + 6px);right: 0;width: 220px;background: var(--forest-dark);color: #ffffff;padding: 8px 10px;font-size: 12px;border-radius: 8px;box-shadow: var(--shadow);z-index: 50;line-height: 1.3;}

/* Filters and submissions */
.filter-grid { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.filter-grid .form-actions { align-self: end; margin-bottom: 16px; }
.filter-summary { margin: 8px 0 0; color: var(--text-muted); }
.sub-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; }
.page-head .help a { white-space: nowrap; }

/* Table rows as cards on phones: keep chips and action buttons readable */
@media (max-width: 719px) {
    .data-table .chips-cell, .data-table .actions-cell { justify-content: flex-end; }
    .data-table td.chips-cell::before, .data-table td.actions-cell::before { margin-right: auto; }
    .stats-row .stat-card { padding: 12px; }
}

@media (min-width: 720px) {
    .game-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr 1fr; }
    .inline-form { flex-direction: row; align-items: flex-end; flex-wrap: wrap; gap: 0 16px; }
    .inline-form .form-group { flex: 1 1 200px; margin-bottom: 0; }
    .inline-form .btn-inline, .inline-form .check { margin-bottom: 0; }
    .inline-form .check { flex-basis: 100%; }
    .day-row { flex-direction: row; align-items: flex-end; gap: 16px; }
    .day-row .form-group { flex: 1; margin-bottom: 0; }
    .day-num { min-width: 60px; padding-bottom: 12px; }
    .gm-row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
    .gm-title { flex: 1 1 220px; }
    .gm-form { display: flex; gap: 12px; align-items: flex-end; }
    .gm-form .form-group { margin-bottom: 0; width: 110px; }
    .gm-form .form-group:nth-child(2) { width: 170px; }
    .filter-grid { grid-template-columns: repeat(3, 1fr); }
    .btn-sm { min-width: 0; }
}
@media (min-width: 1000px) {
    .game-grid { grid-template-columns: 1fr 1fr 1fr; }
    .filter-grid { grid-template-columns: repeat(4, 1fr); }
}
