:root {
  --ink: #172033;
  --muted: #667085;
  --navy: #0b1f3a;
  --navy-2: #123968;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --gold: #f5b82e;
  --surface: #ffffff;
  --canvas: #f3f6fa;
  --border: #dbe3ed;
  --shadow: 0 12px 32px rgba(15, 31, 55, .09);
}

* { box-sizing: border-box; }

body.wt-site {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0, rgba(37, 99, 235, .08), transparent 28rem),
    var(--canvas);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: var(--blue-dark); }
a:hover { color: #153e9f; text-decoration: none; }

.wt-header {
  color: #fff;
  background: linear-gradient(125deg, #07182e 0%, var(--navy-2) 75%, #164e78 100%);
  border-bottom: 4px solid var(--gold);
  box-shadow: 0 8px 24px rgba(7, 24, 46, .2);
}

.wt-header-inner {
  display: flex;
  min-height: 154px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.75rem 1rem;
}

.wt-brand { color: #fff; }
.wt-brand:hover { color: #fff; }
.wt-brand h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.045em; }
.wt-brand h1 span { color: var(--gold); }
.wt-brand p { margin: .25rem 0 0; color: #cdd9e9; font-size: .95rem; letter-spacing: .02em; }
.wt-header-art { width: min(430px, 40vw); max-height: 96px; object-fit: cover; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; opacity: .92; }

.wt-nav-wrap { position: sticky; top: 0; z-index: 1000; padding: .75rem 0; background: rgba(243,246,250,.9); border-bottom: 1px solid rgba(219,227,237,.8); backdrop-filter: blur(12px); }
.wt-nav { align-items: center; gap: .4rem; }
.wt-nav .btn { border-radius: 8px !important; padding: .55rem .85rem; font-size: .84rem; font-weight: 700; }
.wt-nav .btn-primary { background: var(--blue); border-color: var(--blue); }
.wt-nav .btn-primary:hover, .wt-nav .btn-primary:focus { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 6px 15px rgba(37,99,235,.22); }
.wt-nav .btn.disabled { color: var(--navy); background: #dce8f8; border-color: #dce8f8; opacity: 1; }
.wt-week-selector { flex-direction: column; overflow: hidden; border: 1px solid var(--blue); border-radius: 9px; background: var(--blue); }
.wt-week-label { padding: .18rem .75rem; color: #fff; background: var(--blue-dark); font-size: .68rem; font-weight: 800; letter-spacing: .12em; line-height: 1.2; text-align: center; text-transform: uppercase; }
.wt-week-buttons { border-radius: 0; }
.wt-week-buttons .btn { min-width: 2.15rem; padding: .42rem .55rem; border: 0; border-left: 1px solid rgba(255,255,255,.2); border-radius: 0 !important; }
.wt-week-buttons .btn:first-child { border-left: 0; }
.dropdown-menu { padding: .45rem; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.dropdown-item { border-radius: 6px; padding: .55rem .75rem; font-size: .84rem; }
.dropdown-item:hover { background: #eaf1ff; }

.wt-main { min-height: 45vh; padding: 1rem 0 2rem; }
.wt-main h3, .wt-main h4 { color: var(--navy); font-weight: 750; letter-spacing: -.02em; }

.wt-main .border, .wt-main .table, .wt-main form { border-color: var(--border) !important; }
.wt-main > .container > .row > .column.border,
.wt-main > .container > .row > .table-small,
.wt-main .col.p-4,
.wt-main .table:not(.table-sm) {
  border-radius: 12px;
}

table { color: var(--ink); }
.table, .table-small { overflow-x: auto; }
.wt-main table { background: var(--surface) !important; border-color: var(--border) !important; border-collapse: separate; border-spacing: 0; box-shadow: 0 5px 18px rgba(15,31,55,.06); }
.wt-main table th { color: #344054; background: #edf2f8; border-color: var(--border); font-size: .72rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.wt-main table td { border-color: #e6ebf1; vertical-align: middle; }
.wt-main .table-hover tbody tr { transition: filter .12s ease; }
.wt-main .table-hover tbody tr:hover { filter: brightness(.97); }
.wt-main table a { font-weight: 650; }
.wt-main table tr:first-child th:first-child { border-top-left-radius: 8px; }
.wt-main table tr:first-child th:last-child { border-top-right-radius: 8px; }
.table-success, .table-success > td { background-color: #ddf6e8 !important; }
.table-danger, .table-danger > td { background-color: #fee4e2 !important; }
.table-info, .table-info > td { background-color: #dff4ff !important; }
.table-warning, .table-warning > td { background-color: #fff2cc !important; }

.wt-standings-page { max-width: 100%; padding-right: clamp(1rem, 3vw, 3rem); padding-left: clamp(1rem, 3vw, 3rem); }
.wt-standings-table { width: 100%; padding: clamp(.2rem, .6vw, .6rem); overflow: hidden; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); }
.wt-standings-table table { width: 100%; table-layout: fixed; font-size: clamp(.48rem, .72vw, .72rem); box-shadow: none; }
.wt-standings-table th, .wt-standings-table td { padding: clamp(.18rem, .45vw, .5rem) .08rem; overflow: hidden; text-align: center; text-overflow: clip; white-space: nowrap; }
.wt-standings-table th:first-child, .wt-standings-table td:first-child { width: clamp(4.5rem, 13vw, 11rem); padding-left: clamp(.2rem, .6vw, .7rem); text-align: left; }

.wt-results-page { max-width: 1440px; }
.wt-results-layout { align-items: flex-start; padding: clamp(1rem, 3vw, 2.5rem); }
.wt-results-card { margin-bottom: 1.25rem; padding: clamp(.75rem, 1.6vw, 1.4rem); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.wt-results-title { margin: 0 0 .5rem; text-align: center; }
.wt-results-table { width: 100%; margin-bottom: 0; font-size: clamp(.68rem, .8vw, .8rem); border: 1px solid var(--border) !important; border-radius: 9px; box-shadow: none !important; }
.wt-results-table th { padding: .6rem .4rem; }
.wt-results-table td { padding: .48rem .4rem; }
.wt-results-table .wt-matchup-start > td { border-top: 2px solid #aebaca; }
.wt-line-column { width: 20%; }
.wt-half-column { width: 50%; }
.wt-team-logo { display: block; width: 24px; height: 24px; object-fit: contain; }
.wt-last-update { padding: .65rem 0 0; color: var(--muted); font-size: .78rem; text-align: right; }
.wt-results-sidebar { padding-left: 1.25rem; }
.wt-results-panel { padding: .75rem; }
.wt-results-panel table h3, .wt-results-panel table h4 { margin: 0; font-size: 1rem; }
.wt-pick-card { margin-top: 3.25rem; }
.wt-pick-card .alert { margin-bottom: .75rem; }
.wt-pick-choice { min-width: 5rem; padding-left: 1.8rem; }
.wt-pick-table label { font-weight: 700; cursor: pointer; }
.wt-pick-table td:nth-child(3) { font-weight: 700; text-align: center; }
.wt-pick-table td:last-child { white-space: nowrap; }

.btn { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn-primary { background: var(--blue); border-color: var(--blue); font-weight: 700; }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); box-shadow: 0 6px 15px rgba(37,99,235,.22); }
.btn:focus, a:focus, input:focus { outline: 3px solid rgba(37,99,235,.28) !important; outline-offset: 2px; box-shadow: none !important; }
.form-control { min-height: 44px; border-color: #cbd5e1; border-radius: 8px; }
.form-check-input { width: 1.1rem; height: 1.1rem; }
.alert { border: 0; border-left: 4px solid currentColor; border-radius: 9px; box-shadow: 0 4px 14px rgba(15,31,55,.06); }

.wt-account { margin-top: 1rem; padding: 1.25rem 1rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 4px 14px rgba(15,31,55,.04); }
.wt-account > .row:first-child { padding-top: 0 !important; }
.wt-account form { margin: 0; }
.wt-account .btn { min-width: 7rem; }
.wt-footer { margin-top: 2rem; padding: 1.4rem 0; color: #cbd5e1; background: var(--navy); border-top: 3px solid var(--gold); }
.wt-footer-logos { display: flex; align-items: center; justify-content: space-around; gap: 1rem; overflow: hidden; }
.wt-footer-logos img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0,0,0,.25)); }

@media (max-width: 767.98px) {
  .wt-header-inner { min-height: 120px; padding: 1.3rem 1rem; }
  .wt-brand p { font-size: .85rem; }
  .wt-header-art { display: none; }
  .wt-nav-wrap { position: static; }
  .wt-nav { width: 100%; }
  .wt-nav > .btn, .wt-nav > .btn-group { flex: 1 1 auto; }
  .wt-nav .btn { width: 100%; font-size: .78rem; }
  .wt-main { padding-top: .5rem; }
  .wt-main .row.p-5 { padding: 1rem !important; }
  .wt-main .col-6 { flex: 0 0 92%; max-width: 92%; }
  .wt-account .row { gap: .5rem; }
  .wt-footer-logos img { width: 36px; height: 36px; }
  .wt-standings-page { padding-right: .75rem; padding-left: .75rem; }
  .wt-standings-page h3 { font-size: 1.25rem; }
  .wt-standings-table { padding: .15rem; }
  .wt-standings-table table { font-size: clamp(.38rem, 1.5vw, .58rem); }
  .wt-standings-table th, .wt-standings-table td { padding: .24rem .02rem; letter-spacing: 0; }
  .wt-standings-table th:first-child, .wt-standings-table td:first-child { width: clamp(3.7rem, 18vw, 5.5rem); }
  .wt-week-long { display: none; }
  .wt-results-layout { padding: 1rem .2rem; }
  .wt-results-sidebar { padding-left: 15px; }
  .wt-results-card { padding: .65rem; border-radius: 10px; }
  .wt-results-table { font-size: .66rem; }
  .wt-results-table th, .wt-results-table td { padding: .4rem .2rem; }
  .wt-game-board .table { overflow-x: visible; }
  .wt-team-logo { width: 21px; height: 21px; }
  .wt-last-update { text-align: center; }
  .wt-pick-card { margin-top: 0; }
  .wt-pick-choice { min-width: 4rem; padding-left: 1.45rem; }
  .wt-pick-table td:last-child { font-size: .58rem; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
