:root {
  --green-950: #04150d;
  --green-900: #062317;
  --green-800: #0a3524;
  --green-700: #135136;
  --lime: #c9f24b;
  --cream: #f4f2eb;
  --ink: #14201b;
  --muted: #748078;
  --line: #dfe5df;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(11, 43, 29, 0.12);
}
body.dark-mode { --cream: #0d1c16; --ink: #edf4ef; --muted: #95a69e; --line: #284038; --white: #13271f; --shadow: 0 18px 55px rgba(0, 0, 0, .28); background: #091710; }

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #eef1ed; font-family: "DM Sans", Arial, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 10px; color: #69987d; font-size: 10px; font-weight: 700; letter-spacing: 2px; }
.brand, .mobile-brand { display: flex; align-items: center; gap: 12px; color: var(--cream); font-family: "Space Grotesk"; font-size: 12px; font-weight: 700; letter-spacing: 2px; line-height: 1.1; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(201, 242, 75, .7); border-radius: 50%; color: var(--lime); font-size: 13px; }
.dark-mode .mobile-brand { color: var(--lime); }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.25fr) minmax(390px, .75fr); }
.login-visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 48px 7vw 58px; overflow: hidden; color: var(--cream); background: radial-gradient(circle at 80% 18%, #176445 0, transparent 28%), linear-gradient(150deg, #05170f 25%, #0b3927 100%); }
.hero-copy, .hero-stats, .login-visual .brand { position: relative; z-index: 2; }
.hero-copy h1 { margin: 0 0 20px; color: var(--cream); font: 700 clamp(52px, 6vw, 86px)/.96 "Space Grotesk"; letter-spacing: -4px; }
em { color: var(--lime); font-family: inherit; font-style: normal; }
.hero-copy p:last-child { max-width: 500px; color: #b8c9bf; font-size: 17px; line-height: 1.65; }
.hero-stats { display: flex; gap: 55px; }
.hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { color: var(--lime); font: 700 36px "Space Grotesk"; }
.hero-stats span { color: #91a89b; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.orb { position: absolute; border-radius: 50%; border: 1px solid rgba(201, 242, 75, .14); }
.orb-one { right: -100px; bottom: -170px; width: 620px; height: 620px; }
.orb-two { right: 80px; bottom: 30px; width: 280px; height: 280px; border-width: 18px; opacity: .65; }
.login-panel { display: grid; place-items: center; padding: 48px; background: var(--cream); }
.login-panel { position: relative; }
.login-box { width: min(100%, 390px); }
.mobile-brand { display: none; color: var(--green-900); margin-bottom: 50px; }
.login-box h2 { margin: 0 0 6px; font: 700 34px "Space Grotesk"; letter-spacing: -1.5px; }
.muted, .signup { color: var(--muted); font-size: 14px; }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 28px 0 18px; }
.social-button { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--white); font-weight: 700; }
.social-button:hover { border-color: var(--green-700); }
.google-icon { color: #4285f4; }.facebook-icon { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: white; background: #1877f2; font-family: Arial; }
.separator { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: #9ea8a2; font-size: 11px; }
.separator::before, .separator::after { height: 1px; flex: 1; content: ""; background: var(--line); }
label { display: block; margin: 16px 0 7px; font-size: 12px; font-weight: 700; }
input, select { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--ink); background: var(--white); }
input:focus, select:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(19, 81, 54, .1); }
.password-wrap { position: relative; }.password-wrap input { padding-right: 50px; }.password-wrap button { position: absolute; right: 10px; top: 10px; border: 0; color: var(--green-700); background: transparent; font-size: 12px; font-weight: 700; }
.form-options { display: flex; align-items: center; justify-content: space-between; margin: 13px 0 20px; }
.checkbox { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--muted); font-weight: 500; }.checkbox input { width: auto; accent-color: var(--green-700); }
.link-button { padding: 0; border: 0; color: var(--green-700); background: transparent; font-size: 12px; font-weight: 700; }
.primary-button { width: 100%; padding: 14px 18px; border: 0; border-radius: 8px; color: var(--green-950); background: var(--lime); font-weight: 700; transition: .2s; }.primary-button:hover { transform: translateY(-1px); background: #d7fa69; }
.primary-button span { float: right; font-size: 18px; line-height: 16px; }.signup { margin-top: 18px; text-align: center; }.guest-button { width: 100%; margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--green-700); background: transparent; font-size: 13px; font-weight: 700; }.guest-button:hover { border-color: var(--green-700); background: rgba(19, 81, 54, .05); }.form-message { min-height: 16px; margin: 9px 0 0; color: #b33b3b; font-size: 11px; line-height: 1.4; }

.dashboard { display: grid; min-height: 100vh; grid-template-columns: 205px 1fr; }
.sidebar { display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 28px 18px; color: #9fb4a9; background: var(--green-950); }
nav { display: grid; gap: 7px; margin-top: -100px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 7px; color: #91a99d; background: transparent; font-size: 13px; text-align: left; }.nav-item:hover, .nav-item.active { color: var(--lime); background: rgba(201, 242, 75, .09); }
.nav-item span { width: 18px; font-size: 17px; text-align: center; }
.trophy-card { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; padding: 14px; border: 1px solid rgba(201, 242, 75, .12); border-radius: 8px; background: rgba(201, 242, 75, .05); font-size: 11px; }.trophy-card small { color: #789286; font-size: 9px; letter-spacing: 1px; }.mini-ball { color: var(--lime); }
.main-content { min-width: 0; padding: 26px 34px 40px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }.topbar h2 { margin: 0; font: 700 24px "Space Grotesk"; letter-spacing: -1px; }.topbar .eyebrow { margin-bottom: 3px; }
.topbar-actions, .profile { display: flex; align-items: center; gap: 16px; }.search { position: relative; margin: 0; }.search span { position: absolute; left: 13px; top: 8px; font-size: 20px; }.search input { width: 210px; padding: 10px 12px 10px 36px; font-size: 12px; }.icon-button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--green-700); background: var(--white); font-size: 20px; }.dark-mode .icon-button { color: var(--lime); }
.guest-notice { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 11px 14px; border: 1px solid #d2b866; border-radius: 8px; color: #735e19; background: #fff9e4; font-size: 12px; }.guest-notice strong { font-family: "Space Grotesk"; }.dark-mode .guest-notice { color: #f0d46d; border-color: #61552b; background: #292611; }
.site-footer { padding: 22px 0 2px; color: var(--muted); font-size: 11px; letter-spacing: .4px; text-align: center; }.login-footer { position: absolute; right: 0; bottom: 20px; left: 0; padding: 0; }
.section-description { max-width: 650px; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }.schedule-summary { display: flex; gap: 10px; margin-bottom: 16px; }.schedule-pill { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--white); font-size: 10px; font-weight: 700; letter-spacing: .5px; }.schedule-list { display: grid; gap: 14px; }.schedule-day { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }.schedule-date { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; color: var(--green-800); background: #eef4ef; }.dark-mode .schedule-date, .dark-mode .group-title { color: var(--lime); background: #1a3027; }.schedule-date strong { font: 700 14px "Space Grotesk"; }.schedule-date small { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1px; }.schedule-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }.schedule-game { display: grid; grid-template-columns: 48px 1fr; gap: 10px; min-height: 112px; padding: 13px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); }.game-time { color: var(--green-700); font: 700 15px "Space Grotesk"; }.game-info { min-width: 0; }.game-meta { display: flex; justify-content: space-between; gap: 5px; margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .6px; }.game-team { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 5px; font-size: 11px; font-weight: 700; }.game-team-name { display: flex; align-items: center; gap: 7px; min-width: 0; }.game-team .team-badge { width: 48px; height: 20px; flex-basis: 48px; }.game-team .team-badge img { width: 21px; height: 13px; }.game-score { min-width: 13px; color: var(--green-700); font: 700 14px "Space Grotesk"; text-align: right; }.placeholder-team { color: var(--muted); font-style: italic; font-weight: 500; }.knockout-label { color: var(--green-700); font-size: 10px; font-weight: 700; }
.profile span:last-child { display: flex; flex-direction: column; font-size: 12px; }.profile small { color: var(--muted); }.avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: var(--green-950); background: var(--lime); font-size: 11px; font-weight: 700; }
.menu-button { display: none; }
.hero-banner { position: relative; display: flex; align-items: flex-end; justify-content: space-between; min-height: 216px; margin-bottom: 16px; padding: 30px 34px; overflow: hidden; border-radius: 12px; color: var(--cream); background: radial-gradient(circle at 82% 90%, #1d6848, transparent 32%), linear-gradient(115deg, #072418, #0d432e); }
.hero-banner h1 { margin: 0 0 8px; font: 700 41px/.98 "Space Grotesk"; letter-spacing: -2px; }.hero-banner p:last-child { margin-bottom: 0; color: #a6beb2; font-size: 13px; }
.countdown { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; padding: 15px 18px; border: 1px solid rgba(201, 242, 75, .18); border-radius: 8px; background: rgba(0, 0, 0, .13); }.countdown small, .countdown span { color: #a6beb2; font-size: 9px; letter-spacing: 1.3px; }.countdown strong { color: var(--lime); font: 700 31px "Space Grotesk"; }
.banner-ball { position: absolute; right: 20%; bottom: -80px; width: 190px; height: 190px; padding: 43px; border: 20px solid rgba(201, 242, 75, .14); border-radius: 50%; color: rgba(201, 242, 75, .22); font-size: 62px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }.stats-row article { display: flex; align-items: center; gap: 14px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); }.stat-icon { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 50%; color: var(--green-700); background: #e9f2eb; font-size: 18px; }.stats-row div { display: flex; flex-direction: column; gap: 3px; }.stats-row small { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1.1px; }.stats-row strong { font: 700 23px "Space Grotesk"; }.stats-row em { color: #b8c0bb; font-size: 14px; }
.content-card { padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }.section-heading, .heading-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.section-heading { margin-bottom: 18px; }.section-heading h3, .modal-heading h3 { margin: 0; font: 700 24px "Space Grotesk"; letter-spacing: -1px; }.heading-actions select { width: 160px; padding: 10px; font-size: 12px; }.outline-button, .ghost-button { padding: 10px 13px; border: 1px solid var(--green-700); border-radius: 7px; color: var(--green-700); background: var(--white); font-size: 12px; font-weight: 700; }.outline-button:hover { color: white; background: var(--green-700); }.outline-button:disabled, .sync-button:disabled { cursor: not-allowed; opacity: .45; }.sync-button { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--white); font-size: 11px; font-weight: 700; }.sync-button.online { color: var(--green-700); border-color: #a9c9b3; background: #edf7ef; }.dark-mode .sync-button.online { color: var(--lime); border-color: #41624f; background: #173426; }.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: #a7b0ab; }.sync-button.online .sync-dot { background: #46b868; box-shadow: 0 0 0 3px rgba(70, 184, 104, .14); }
.groups-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; }
.group-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }.group-title { display: flex; justify-content: space-between; padding: 12px 14px; color: var(--green-800); background: #eef4ef; font: 700 13px "Space Grotesk"; letter-spacing: .6px; }.group-title small { color: #7f9388; font: 700 9px "DM Sans"; letter-spacing: 1px; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }th { padding: 8px 5px; color: #91a098; font-size: 9px; text-align: center; }th:first-child, td:first-child { padding-left: 12px; text-align: left; }td { padding: 9px 5px; border-top: 1px solid #eef1ee; text-align: center; }.team-cell { display: flex; align-items: center; gap: 7px; font-weight: 700; }.team-badge { display: flex; width: 53px; height: 23px; flex: 0 0 53px; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--line); border-radius: 4px; background: #edf3ee; line-height: 1; }.team-badge img { width: 23px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }.team-badge small { color: var(--green-800); font-size: 8px; font-weight: 700; letter-spacing: .2px; }.dark-mode .team-badge { background: #1c352b; }.dark-mode .team-badge small { color: var(--lime); }.rank { display: inline-grid; width: 18px; height: 18px; place-items: center; margin-right: 6px; border-radius: 50%; color: #91a098; }.qualifies { color: var(--green-700); background: #e3f1e4; }.points { color: var(--green-700); font-weight: 700; }
dialog { width: min(94%, 590px); border: 0; border-radius: 12px; color: var(--ink); background: var(--white); box-shadow: var(--shadow); }dialog::backdrop { background: rgba(1, 16, 9, .68); }.modal-card { padding: 8px; }.modal-heading { display: flex; justify-content: space-between; }.modal-description { color: var(--muted); font-size: 13px; line-height: 1.6; }.close-button { border: 0; color: var(--muted); background: transparent; font-size: 28px; }.score-editor { display: grid; grid-template-columns: 1fr 60px 15px 60px 1fr; align-items: center; gap: 10px; margin: 22px 0; }.score-editor div { display: flex; align-items: center; gap: 7px; font-size: 12px; }.score-editor div:last-child { justify-content: flex-end; }.score-editor input { padding: 14px 5px; text-align: center; }.score-editor > span { color: var(--muted); text-align: center; }.modal-actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; margin-top: 14px; }.mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }.mode-card { display: flex; align-items: center; gap: 9px; margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }.mode-card:has(input:checked) { border-color: var(--green-700); background: rgba(70, 184, 104, .08); }.mode-card input { width: auto; accent-color: var(--green-700); }.mode-card span { display: flex; flex-direction: column; gap: 3px; }.mode-card small, .field-help { color: var(--muted); font-size: 10px; font-weight: 500; }.field-help { display: block; margin-top: 7px; }.sync-status { margin-top: 14px; padding: 10px 12px; border-radius: 7px; color: var(--muted); background: rgba(116, 128, 120, .1); font-size: 11px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 5; padding: 12px 16px; border-radius: 7px; color: white; background: var(--green-800); box-shadow: var(--shadow); font-size: 13px; transform: translateY(90px); transition: .3s; }.toast.show { transform: translateY(0); }
@media (max-width: 850px) { .login-page { display: block; }.login-visual { display: none; }.login-panel { min-height: 100vh; padding: 28px; }.mobile-brand { display: flex; }.dashboard { display: block; }.sidebar { position: fixed; z-index: 4; width: 205px; transform: translateX(-100%); transition: .25s; }.sidebar.open { transform: translateX(0); }.main-content { padding: 20px; }.menu-button { display: block; border: 0; background: transparent; font-size: 22px; }.topbar { gap: 12px; }.topbar-actions .search { display: none; }.profile span:last-child { display: none; }.hero-banner { padding: 26px; }.countdown { display: none; }.stats-row { grid-template-columns: 1fr; }.section-heading { align-items: flex-start; flex-direction: column; }.heading-actions { width: 100%; }.heading-actions select { flex: 1; }.groups-grid { grid-template-columns: 1fr; } }
@media (max-width: 450px) { .main-content { padding: 14px; }.hero-banner h1 { font-size: 33px; }.heading-actions { align-items: stretch; flex-direction: column; }.heading-actions select { width: 100%; }.score-editor { grid-template-columns: 1fr 43px 10px 43px 1fr; gap: 5px; }.score-editor div { flex-direction: column; text-align: center; }.modal-actions, .mode-options { grid-template-columns: 1fr; }.schedule-summary { flex-wrap: wrap; }.schedule-games { grid-template-columns: 1fr; } }
