:root {
  color-scheme: dark;
  --ink: #eaf8f5;
  --muted: #7f9ca3;
  --muted-2: #496872;
  --deep: #031018;
  --panel: rgba(7, 28, 38, 0.78);
  --panel-solid: #081d27;
  --line: rgba(128, 201, 204, 0.13);
  --cyan: #4de5d1;
  --cyan-soft: #9cf4e8;
  --coral: #ff6f61;
  --amber: #f0c66e;
  --red: #ff766e;
  --radius: 18px;
  --mono: "DM Mono", ui-monospace, monospace;
  --sans: "Manrope", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--deep);
  min-height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    radial-gradient(circle at 80% 10%, rgba(20, 124, 128, 0.12), transparent 30%),
    linear-gradient(180deg, #051721 0%, #031018 58%, #020b11 100%);
  background-size: 44px 44px, 44px 44px, auto, auto;
  color: var(--ink);
  font-family: var(--sans);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.ocean-glow {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.08;
  pointer-events: none;
}

.ocean-glow--one {
  top: 28%;
  left: -210px;
  background: var(--cyan);
}

.ocean-glow--two {
  right: -260px;
  bottom: 10%;
  background: #007f8a;
}

.topbar {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  letter-spacing: 0.08em;
}

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(77, 229, 209, 0.25);
  border-radius: 12px;
  background: rgba(77, 229, 209, 0.07);
}

.brand__mark svg {
  width: 30px;
  fill: var(--cyan);
}

.brand__mark circle {
  fill: var(--deep);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.86rem;
}

.brand small {
  margin-top: 2px;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
}

.topbar__status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(77, 229, 209, 0.45);
  animation: pulse 2s infinite;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 385px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-kicker {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.13em;
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0 20px;
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 em {
  color: var(--cyan);
  font-style: normal;
  font-weight: 500;
}

.hero p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.sonar {
  position: relative;
  width: 310px;
  aspect-ratio: 1;
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(77, 229, 209, 0.1);
  border-radius: 50%;
  background:
    linear-gradient(rgba(77, 229, 209, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 229, 209, 0.08) 1px, transparent 1px),
    radial-gradient(circle, rgba(77, 229, 209, 0.09), transparent 68%);
  background-size: 50% 50%, 50% 50%, auto;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.5);
}

.sonar__ring {
  position: absolute;
  inset: 50%;
  border: 1px solid rgba(77, 229, 209, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.sonar__ring--one { width: 34%; height: 34%; }
.sonar__ring--two { width: 66%; height: 66%; }
.sonar__ring--three { width: 94%; height: 94%; }

.sonar__sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 79%, rgba(77, 229, 209, 0.28) 95%, transparent 100%);
  animation: sweep 5s linear infinite;
}

.sonar__core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.sonar__core::before {
  content: "";
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(6, 22, 31, 0.92);
  border: 1px solid rgba(77, 229, 209, 0.32);
  box-shadow: 0 0 32px rgba(77, 229, 209, 0.15);
}

.sonar__core span {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 18px var(--coral);
}

.control-panel {
  margin-top: 34px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(9, 34, 45, 0.96), rgba(5, 22, 31, 0.84));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.control-panel h2,
.section-heading h2,
.rules-section h2 {
  margin: 5px 0 0;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.control-panel p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.control-panel__actions {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.bankroll-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bankroll-field__input {
  height: 48px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.17);
}

.bankroll-field input {
  width: 112px;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0 8px 0 14px;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.94rem;
}

.bankroll-field b {
  padding-right: 13px;
  color: var(--muted);
}

.primary-button {
  min-width: 190px;
  height: 48px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 0;
  border-radius: 11px;
  color: #05201f;
  background: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(77, 229, 209, 0.17);
}

.primary-button:disabled {
  opacity: 0.58;
  cursor: progress;
  transform: none;
}

.button-icon {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.button-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 7px;
  background: currentColor;
  transform-origin: 50% 0;
  animation: sweep 2s linear infinite;
}

.source-strip {
  margin: 14px 0 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(5, 22, 30, 0.68);
}

.source {
  min-width: 0;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-right: 1px solid var(--line);
}

.source:last-child {
  border-right: 0;
}

.source__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
}

.source.is-ok .source__dot {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(77, 229, 209, 0.5);
}

.source.is-error .source__dot {
  background: var(--red);
}

.source b,
.source small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source b {
  font-size: 0.72rem;
}

.source small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.6rem;
}

.source__state {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  text-transform: uppercase;
}

.source.is-ok .source__state { color: var(--cyan); }
.source.is-error .source__state { color: var(--red); }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.summary-grid article {
  min-height: 132px;
  padding: 21px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
}

.summary-grid article > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
}

.summary-grid strong {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1;
}

.summary-grid small {
  color: var(--muted-2);
  font-size: 0.66rem;
}

.summary-grid__accent {
  border-color: rgba(77, 229, 209, 0.22) !important;
  background: linear-gradient(145deg, rgba(77, 229, 209, 0.11), rgba(7, 28, 38, 0.75)) !important;
}

.summary-grid__accent strong {
  color: var(--cyan);
}

.results-section,
.history-section,
.rules-section {
  margin-top: 52px;
}

.section-heading {
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.count-badge,
.version-badge {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.notice {
  margin-bottom: 14px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 118, 110, 0.25);
  border-radius: 11px;
  background: rgba(255, 118, 110, 0.07);
  color: #ffc0bb;
  font-size: 0.76rem;
  line-height: 1.5;
}

.picks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.empty-state {
  min-height: 240px;
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px dashed rgba(128, 201, 204, 0.2);
  border-radius: var(--radius);
  background: rgba(5, 21, 29, 0.4);
  text-align: center;
}

.empty-state__radar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(77, 229, 209, 0.24);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 229, 209, 0.13), transparent 70%);
}

.empty-state__radar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 13px var(--cyan);
}

.empty-state h3 {
  margin: 14px 0 5px;
  font-size: 0.95rem;
}

.empty-state p {
  max-width: 420px;
  margin: 0;
  padding: 0 20px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.pick-card {
  overflow: hidden;
  border: 1px solid rgba(77, 229, 209, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(10, 38, 49, 0.98), rgba(5, 21, 29, 0.98));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.17);
}

.pick-card.is-saved {
  border-color: rgba(77, 229, 209, 0.42);
  box-shadow: 0 0 0 1px rgba(77, 229, 209, 0.06), 0 20px 50px rgba(0, 0, 0, 0.17);
}

.pick-card__top {
  padding: 18px 20px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.live-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulse 1.5s infinite;
}

.pick-card h3 {
  margin: 9px 0 0;
  font-size: 1rem;
}

.score {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 1.55rem;
}

.score small {
  display: block;
  margin-top: 3px;
  color: var(--cyan);
  font-size: 0.6rem;
  text-align: right;
}

.pick-card__body {
  padding: 18px 20px;
}

.pick-selection {
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-radius: 12px;
  background: rgba(77, 229, 209, 0.075);
}

.pick-selection span,
.pick-selection small {
  display: block;
}

.pick-selection span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  text-transform: uppercase;
}

.pick-selection b {
  display: block;
  margin-top: 5px;
  color: var(--cyan-soft);
  font-size: 0.94rem;
}

.pick-selection strong {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 1.55rem;
  font-weight: 500;
}

.pick-meta {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pick-meta div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.pick-meta span,
.pick-meta b {
  display: block;
}

.pick-meta span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.52rem;
  text-transform: uppercase;
}

.pick-meta b {
  margin-top: 4px;
  font-size: 0.76rem;
}

.quotes {
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6rem;
}

.pick-warning {
  margin: 13px 0 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(240, 198, 110, 0.3);
  border-radius: 9px;
  background: rgba(240, 198, 110, 0.08);
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 700;
}

.pick-warning span {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.6rem;
}

.pick-warning--history {
  margin-top: 10px;
}

.pick-card__action {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pick-card__action small {
  color: var(--muted);
  font-size: 0.62rem;
}

.place-pick-button {
  min-width: 166px;
  height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(77, 229, 209, 0.35);
  border-radius: 10px;
  background: var(--cyan);
  color: #05201f;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.place-pick-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(77, 229, 209, 0.16);
}

.place-pick-button.is-done {
  background: rgba(77, 229, 209, 0.1);
  color: var(--cyan-soft);
  cursor: default;
}

.place-pick-button:disabled {
  transform: none;
  box-shadow: none;
}

.history-section .section-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-empty {
  min-height: 120px;
  padding: 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px dashed rgba(128, 201, 204, 0.2);
  border-radius: 14px;
  background: rgba(5, 21, 29, 0.4);
  text-align: center;
}

.history-empty b {
  font-size: 0.82rem;
}

.history-empty span {
  color: var(--muted);
  font-size: 0.68rem;
}

.history-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(9, 32, 42, 0.88), rgba(5, 21, 29, 0.76));
}

.history-card__header,
.history-card__title,
.history-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.history-card__header {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.history-status {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
}

.history-status i {
  margin-right: 5px;
  font-style: normal;
}

.history-card time,
.history-card__title small,
.history-card__footer span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
}

.history-card__title {
  padding: 14px 0;
  align-items: flex-start;
}

.history-card__title h3 {
  margin: 5px 0 0;
  font-size: 0.9rem;
}

.history-card__title > strong {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 500;
}

.history-card__title > strong small {
  display: block;
  margin-top: 3px;
  color: var(--cyan);
  text-align: right;
}

.history-card__selection {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 8px;
}

.history-card__selection > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.history-card__selection span,
.history-card__selection b {
  display: block;
}

.history-card__selection span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.51rem;
  text-transform: uppercase;
}

.history-card__selection b {
  margin-top: 4px;
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-card__footer {
  margin-top: 12px;
}

.history-card__footer button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.history-card__footer button:hover {
  color: var(--red);
}

.pick-card__links {
  padding: 12px 20px 16px;
  display: flex;
  gap: 16px;
}

.pick-card__links a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6rem;
  text-underline-offset: 3px;
}

.rejected-panel {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(5, 21, 29, 0.56);
}

.rejected-panel summary {
  padding: 17px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.rejected-panel summary b {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
}

.rejected-panel summary > span:last-child {
  min-width: 30px;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  text-align: center;
}

.rejected-list {
  padding: 0 20px 18px;
}

.rejected-item {
  padding: 11px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.rejected-item b,
.rejected-item small {
  display: block;
}

.rejected-item b {
  font-size: 0.75rem;
}

.rejected-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.66rem;
}

.rejected-item > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6rem;
}

.muted {
  color: var(--muted);
  font-size: 0.72rem;
}

.rules-section {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.rules-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.rule-flow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.rule-step {
  min-height: 88px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(2, 14, 20, 0.3);
}

.rule-step > span {
  color: var(--coral);
  font-family: var(--mono);
  font-size: 0.58rem;
}

.rule-step b,
.rule-step small {
  display: block;
}

.rule-step b {
  font-size: 0.75rem;
}

.rule-step small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.45;
}

.stake-table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.7rem;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

td:nth-child(2) {
  color: var(--cyan);
  font-family: var(--mono);
  font-weight: 500;
}

.level {
  color: var(--muted);
}

.level--medium {
  color: var(--amber);
}

.level--high {
  color: var(--coral);
}

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 52px auto 0;
  min-height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
}

footer p {
  margin: 0;
  text-align: right;
}

@keyframes sweep {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(77, 229, 209, 0); }
  100% { box-shadow: 0 0 0 0 rgba(77, 229, 209, 0); }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr 250px;
  }

  .sonar {
    width: 235px;
  }

  .source-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .source:nth-child(2) {
    border-right: 0;
  }

  .source:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rules-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar,
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    height: 76px;
  }

  .topbar__status {
    font-size: 0;
  }

  .hero {
    min-height: 400px;
    grid-template-columns: 1fr;
    position: relative;
    overflow: hidden;
  }

  .hero__copy {
    position: relative;
    z-index: 1;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.6rem);
  }

  .hero p {
    max-width: 90%;
    font-size: 0.86rem;
  }

  .sonar {
    position: absolute;
    width: 235px;
    right: -110px;
    bottom: -55px;
    opacity: 0.54;
  }

  .control-panel {
    padding: 20px;
    align-items: stretch;
    flex-direction: column;
  }

  .control-panel__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .bankroll-field__input,
  .primary-button {
    width: 100%;
  }

  .bankroll-field input {
    width: 100%;
  }

  .source-strip {
    grid-template-columns: 1fr;
  }

  .source,
  .source:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .source:last-child {
    border-bottom: 0;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .summary-grid article {
    min-height: 116px;
    padding: 16px;
  }

  .summary-grid strong {
    font-size: 1.75rem;
  }

  .summary-grid small {
    font-size: 0.57rem;
  }

  .picks-grid {
    grid-template-columns: 1fr;
  }

  .pick-card__top,
  .pick-card__body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pick-meta {
    grid-template-columns: 1fr 1fr;
  }

  .pick-card__action {
    align-items: stretch;
    flex-direction: column;
  }

  .place-pick-button {
    width: 100%;
  }

  .history-card {
    padding: 16px;
  }

  .history-card__header,
  .history-card__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .history-card__selection {
    grid-template-columns: 1fr 1fr;
  }

  .rules-section {
    padding: 20px;
  }

  .rule-flow {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 25px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  footer p {
    text-align: left;
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
