/* Matchs-only extras on top of the copied myrank.shop style.css */

.nav-logo small {
  display: none;
  margin-left: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-600);
}
.svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
@media (min-width: 768px) {
  .nav-logo small { display: inline; }
}

.hero--tool {
  padding-bottom: 3rem;
}
.hero--tool .hero-inner {
  grid-template-columns: 1fr;
}
.hero--tool .hero-lead {
  max-width: 40rem;
}

.feature-go {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--brand-700);
}

.matchs-note {
  margin-top: 1.5rem;
  color: var(--slate-500);
  font-size: 0.95rem;
}

.match-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .match-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .match-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.match-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 1.25rem;
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-nav);
}
.match-card header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.match-card .matchup {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.2rem 0 0.35rem;
}
.match-card .matchup small { color: var(--slate-400); font-weight: 600; }
.match-card .scoreline { margin: 0 0 0.75rem; color: var(--slate-600); }
.match-card .match-note { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--slate-500); }
.match-card .match-meta { font-size: 0.8rem; color: var(--slate-400); }
.match-card.phase-live {
  border-color: var(--brand-400);
  box-shadow: var(--shadow-xl);
}

.phase-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--slate-100);
  font-size: 0.75rem;
  font-weight: 700;
}
.phase-live .phase-pill { background: #ccfbf1; color: var(--brand-700); }
.phase-after .phase-pill { background: var(--slate-200); }

.prob-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 700;
}
.prob-bar {
  height: 0.45rem;
  border-radius: 999px;
  background: var(--slate-100);
  overflow: hidden;
  margin-top: 0.35rem;
}
.prob-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-700));
  border-radius: 999px;
}
.prob-bar.slim { height: 0.28rem; margin-top: 0.25rem; max-width: 8rem; }

.hit-ok, .hit-no, .hit-wait, .hit-cancel {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.45rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
}
.hit-ok { background: #ccfbf1; color: var(--brand-700); }
.hit-no { background: #ffe4e6; color: var(--danger); }
.hit-wait { background: var(--slate-100); color: var(--slate-500); }
.hit-cancel { background: #e2e8f0; color: #334155; }

.table-wrap { overflow-x: auto; }
.match-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 1rem;
}
.match-table th, .match-table td {
  text-align: left;
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.92rem;
}
.match-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-500);
  background: var(--slate-50);
}
.match-table tr.is-top td { font-weight: 700; background: #f0fdfa; }
.match-table td.is-fav,
.match-table tr.is-top td:nth-child(2) {
  color: var(--brand-700);
  background: #ccfbf1;
  font-weight: 800;
}

.is-fav {
  color: var(--brand-700);
  background: #ccfbf1;
  padding: 0.08em 0.32em;
  border-radius: 0.35em;
  font-weight: 800;
}
.name-circled {
  position: relative;
  display: inline-block;
  isolation: isolate;
  padding: 0.12em 0.42em;
}
.name-circled::before,
.name-circled::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-style: solid;
  border-color: var(--brand-600);
  mix-blend-mode: multiply;
}
.name-circled::before {
  inset: -0.28em -0.42em;
  border-width: 2.5px;
  border-radius: 62% 38% 58% 42% / 44% 56% 42% 58%;
  transform: rotate(-8deg);
  opacity: 0.88;
  filter: url(#crayon-wobble);
}
.name-circled::after {
  inset: -0.16em -0.3em;
  border-width: 1.5px;
  border-radius: 40% 60% 45% 55% / 58% 42% 60% 40%;
  transform: rotate(5deg);
  opacity: 0.55;
  filter: url(#crayon-wobble);
}

.bet-picks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.6rem;
  padding: 0.85rem;
  background: var(--slate-50);
}
.bet-pick-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: 0.75rem;
  padding: 0.65rem 0.8rem;
}
.bet-pick-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--slate-500);
  text-transform: uppercase;
}
.bet-pick-horses { font-weight: 700; font-size: 0.95rem; }
.bet-pick-prob { font-size: 0.82rem; color: var(--brand-700); font-weight: 700; }
@media (min-width: 640px) {
  .bet-picks { grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
}

.match-card.is-fav-home,
.match-card.is-fav-away {
  border-color: var(--brand-200);
}

.race-block {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 1.1rem;
  margin-bottom: 0.85rem;
  padding: 0.4rem 0.6rem 0.6rem;
}
.race-block.is-confident {
  border-color: var(--brand-200);
  background: #f7fffd;
}
.race-conf {
  display: inline-block;
  padding: 0.08rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--brand-700);
  background: #ccfbf1;
}
.match-table .race-conf {
  margin-left: 0.35rem;
  vertical-align: middle;
}
.race-block summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: baseline;
  padding: 0.7rem 0.5rem;
  font-weight: 700;
}
.race-block summary::-webkit-details-marker { display: none; }
.race-title { font-size: 1.05rem; }
.race-sub { font-size: 0.88rem; color: var(--slate-500); font-weight: 500; }

.nav-cta-wrap { position: relative; }
.nav-cta-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 12rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
  padding: 0.4rem;
  z-index: 60;
}
.nav-cta-wrap:hover .nav-cta-menu,
.nav-cta-wrap.is-open .nav-cta-menu { display: block; }
.nav-cta-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  font-size: 0.88rem;
  color: #0f172a;
  font-weight: 700;
}
.nav-cta-menu a:hover {
  background: var(--slate-100);
  color: #020617;
}
.nav-cta-menu a i {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 0.4rem;
  background: #0f172a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 800;
}

.board-block {
  margin-top: 1.75rem;
}
.board-block:first-child { margin-top: 0.25rem; }
.board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.85rem;
  margin-bottom: 0.85rem;
}
.board-head h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.board-count {
  margin: 0;
  color: var(--slate-400);
  font-size: 0.9rem;
  font-weight: 700;
}

.wdl-legend {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate-500);
  margin: 0.35rem 0 0.35rem;
}
.wdl-bar {
  display: flex;
  height: 0.55rem;
  border-radius: 999px;
  overflow: hidden;
  background: var(--slate-200);
}
.wdl-bar i { display: block; height: 100%; }
.wdl-away { background: #64748b; }
.wdl-draw { background: #f59e0b; }
.wdl-home { background: var(--brand-700); }

.kick-clock {
  font-weight: 800;
  color: var(--brand-700);
  letter-spacing: -0.02em;
}

.daily-list { display: flex; flex-direction: column; gap: 0.65rem; }
.daily-day {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  padding: 0.2rem 0.7rem 0.55rem;
}
.daily-day summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding: 0.75rem 0.2rem;
  font-weight: 700;
}
.daily-day summary::-webkit-details-marker { display: none; }
.daily-date { font-size: 1.05rem; }
.daily-stat { color: var(--slate-500); font-weight: 600; font-size: 0.92rem; }
.blind-overall {
  margin: 0 0 1rem;
  font-weight: 800;
  font-size: 1.05rem;
}

.pay-banner {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid var(--slate-200);
  background: #f8fafc;
}
.pay-banner__legal {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 700;
}
.pay-modal__legal {
  margin: 0.85rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  background: #fff7ed;
  border: 2px solid #ea580c;
  color: #7c2d12;
  line-height: 1.5;
}
.pay-modal__legal-lead {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}
.pay-modal__legal p { margin: 0; }
.pay-modal__refund {
  margin: 0.85rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  background: #fef2f2;
  border: 2px solid #b91c1c;
  color: #7f1d1d;
  line-height: 1.5;
}
.pay-modal__refund p { margin: 0; }
.pay-modal__refund .pay-modal__legal-lead { margin: 0 0 0.45rem; }
.legal-callout {
  margin: 0 0 1rem;
  padding: 0.95rem 1.05rem;
  border-radius: 0.75rem;
  border-left: 4px solid #ea580c;
  background: #fff7ed;
  color: #7c2d12;
  line-height: 1.55;
  font-weight: 700;
}
.legal-callout p { margin: 0 0 0.4rem; color: inherit; }
.legal-callout p:last-child { margin: 0; }
.site-footer__legal {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem 1.5rem;
  color: #b8b9c9;
  font-size: 0.8rem;
  line-height: 1.55;
  text-align: center;
}
.site-footer__legal p { margin: 0 0 0.35rem; }
.site-footer__legal p:last-child { margin: 0; }
.site-footer__legal b { color: #f8fafc; font-weight: 800; }
.pay-banner__status { margin: 0; font-weight: 700; color: var(--brand-700); }
.pay-banner__note { margin: 0.4rem 0 0; color: var(--slate-500); font-size: 0.9rem; }
.pay-banner__btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  background: var(--slate-900);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.pay-banner__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.pay-banner__plans {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.65rem;
}
.pay-banner__group-label {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--slate-500);
}
.pay-banner__hint {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--slate-600);
  line-height: 1.45;
  font-weight: 600;
}
.pay-banner__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pay-banner__btn--all {
  background: #0f766e;
}
.pay-banner__btn[hidden] {
  display: none;
}
.pay-banner__off {
  font-weight: 700;
  opacity: 0.9;
}
.match-card.is-ai-locked,
.race-block.is-ai-locked {
  opacity: 0.96;
}
.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 1rem 2rem;
  overflow: auto;
}
.pay-modal[hidden] { display: none; }
.pay-modal__panel {
  width: min(36rem, 100%);
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.4rem 1.35rem 1.5rem;
  box-shadow: var(--shadow-nav);
  position: relative;
}
.pay-modal__close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  border: 0;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}
.pay-modal__rights {
  margin: 0.65rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1e3a8a;
  font-weight: 700;
  line-height: 1.5;
}
.pay-modal__warn {
  color: #b45309;
  font-weight: 700;
  line-height: 1.45;
}
.pay-modal__disclaimer {
  margin: 1rem 0;
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  background: #f8fafc;
  border: 1px solid var(--slate-200);
}
.pay-modal__disclaimer h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.pay-modal__check { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.75rem 0 1rem; }
.pay-modal__err { color: #b91c1c; font-weight: 700; }
.legal-body h2 { margin: 1.5rem 0 0.5rem; }
.legal-body p { line-height: 1.6; color: var(--slate-600); }
#pay-widget-methods, #pay-widget-agreement { margin: 0.75rem 0; min-height: 0; }

.race-track {
  margin: 0 0.35rem 0.85rem;
  padding: 0.75rem 0.8rem 0.7rem;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid #bbf7d0;
}
.race-track__lead {
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.race-track__ai {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: var(--brand-700);
  vertical-align: 0.12em;
}
.race-track__board {
  position: relative;
  overflow-x: auto;
}
.race-track__ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--slate-500);
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.race-track__lanes {
  position: relative;
  min-width: 16rem;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(22, 101, 52, 0.06) 0 1.65rem,
      rgba(22, 101, 52, 0.12) 1.65rem 3.3rem
    );
  border-radius: 0.55rem;
  border: 1px solid #86efac;
  overflow: hidden;
}
.race-track__lanes::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0.35rem;
  bottom: 0;
  width: 3px;
  background: repeating-linear-gradient(
    180deg,
    #fff 0 8px,
    #dc2626 8px 16px
  );
  opacity: 0.9;
}
.race-track__horse {
  position: absolute;
  left: 3%;
  width: 1.55rem;
  height: 1.45rem;
  margin-left: -0.75rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
  transition: left 0.8s linear;
  z-index: 1;
}
.race-track__horse i {
  font-style: normal;
}
.race-track__horse.is-ai {
  background: var(--brand-700);
  outline: 2px solid #fde68a;
  outline-offset: 1px;
  z-index: 2;
}
.race-track__note {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--slate-500);
  line-height: 1.4;
}

