.pgd-galoplar-page {
  min-height: calc(100vh - 120px);
  padding: 16px 14px 36px;
  color: #2a2117;
}

.pgd-galoplar-shell {
  width: min(1564px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.pgd-galoplar-page .pgd-galop-programbar {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: 68px !important;
  overflow: visible !important;
}

.pgd-galoplar-page .pgd-datebar-desktop-main {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.pgd-galoplar-page .pgd-datebar-inline-hips {
  flex: 0 0 210px !important;
  min-width: 210px !important;
}

.pgd-galoplar-page .pgd-datebar-inline-tabs {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}

.pgd-galoplar-page .pgd-datebar-inline-tabs::-webkit-scrollbar {
  display: none !important;
}

.pgd-galoplar-page .pgd-galop-programbar,
.pgd-galoplar-page .pgd-mobile-date-nav,
.pgd-galoplar-page .pgd-datebar-desktop-dategroup {
  overflow: visible !important;
}

.pgd-galoplar-page .pgd-galop-dateform {
  display: flex !important;
  position: relative !important;
  overflow: visible !important;
}

.pgd-galoplar-page .pgd-galop-dateform .pgd-nav-date-input.pgd-datebar-input {
  position: absolute !important;
  inset: auto 0 0 auto !important;
  display: block !important;
  width: 1px !important;
  min-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

.pgd-galoplar-page .pgd-galop-dateform .pgd-datebar-calbtn {
  position: relative !important;
  z-index: 2 !important;
}

.pgd-galoplar-page .pgd-galop-dateform .pgd-date-panel {
  z-index: 7000 !important;
}

.pgd-galop-mobile-controls,
.pgd-galop-mobile-tabs,
.pgd-galop-track-readout {
  display: none;
}

.pgd-galoplar-page .pgd-program-hip-select-trigger,
.pgd-galoplar-page .pgd-kosutabs-link {
  box-shadow: none !important;
}

.pgd-galoplar-page .pgd-program-hip-select-icon .pgd-hip-pist-mark,
.pgd-galoplar-page .pgd-program-hip-select-option-icon .pgd-hip-pist-mark {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
}

.pgd-galoplar-page .pgd-program-hip-select-icon .pgd2-pist-ico,
.pgd-galoplar-page .pgd-program-hip-select-option-icon .pgd2-pist-ico {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
}

.pgd-galop-datebar {
  display: grid;
  grid-template-columns: minmax(160px, 178px) 118px minmax(190px, 1fr) minmax(260px, 2.2fr);
  align-items: stretch;
  gap: 6px;
}

.pgd-galop-datebox,
.pgd-galop-daystep,
.pgd-galop-hipselect,
.pgd-galop-racenav,
.pgd-galop-hero,
.pgd-galop-runner,
.pgd-galop-empty {
  border: 1px solid #eadcc8;
  border-radius: 8px;
  background: #fffdfa;
}

.pgd-galop-datebox {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  min-height: 52px;
  padding: 6px 8px;
}

.pgd-galop-datebox-icon,
.pgd-galop-daystep a {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 7px;
  background: #f4a000;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.pgd-galop-datebox label {
  display: grid;
  gap: 1px;
  position: relative;
}

.pgd-galop-datebox strong {
  font-size: 13px;
  line-height: 1.1;
}

.pgd-galop-datebox span,
.pgd-galop-datebox input {
  color: #7b6247;
  font-size: 11px;
}

.pgd-galop-datebox input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.pgd-galop-daystep {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  gap: 0;
  align-items: center;
  min-height: 52px;
  padding: 6px;
}

.pgd-galop-daystep strong {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f1710;
  font-size: 22px;
  font-weight: 900;
}

.pgd-galop-hipselect,
.pgd-galop-racenav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  min-height: 52px;
  padding: 5px;
}

.pgd-galop-hipselect a,
.pgd-galop-racenav a {
  flex: 0 0 auto;
  min-width: 136px;
  border: 1px solid #eadcc8;
  border-radius: 7px;
  color: #2a2117;
  background: #fff9ef;
  text-decoration: none;
}

.pgd-galop-hipselect a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
}

.pgd-galop-hipselect a > i {
  color: #f4a000;
  font-size: 17px;
}

.pgd-galop-hipselect strong,
.pgd-galop-hipselect small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgd-galop-hipselect strong {
  display: block;
  font-size: 13px;
}

.pgd-galop-hipselect small {
  display: block;
  color: #8b7357;
  font-size: 11px;
}

.pgd-galop-hipselect a.is-active,
.pgd-galop-racenav a.is-active {
  border-color: #f4a000;
  background: #fff2d7;
}

.pgd-galop-racenav a {
  min-width: 66px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  padding: 6px 8px;
  position: relative;
}

.pgd-galop-racenav strong {
  color: #21170d;
  font-size: 20px;
  line-height: 1;
}

.pgd-galop-racenav small {
  grid-column: 1 / -1;
  margin-top: 2px;
  color: #7b6247;
  font-size: 11px;
}

.pgd-galop-racenav i {
  color: #2b9b61;
  font-size: 12px;
}

.pgd-galop-hero {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
}

.pgd-galop-racebadge {
  height: 64px;
  border-radius: 12px;
  background: #f4a000;
  color: #fff;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  justify-items: center;
  padding: 0 10px;
}

.pgd-galop-racebadge strong {
  font-size: 32px;
  line-height: 1;
}

.pgd-galop-racebadge span {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
}

.pgd-galop-title {
  min-width: 0;
}

.pgd-galop-title p {
  margin: 0 0 3px;
  color: #8b7357;
  font-size: 12px;
  font-weight: 800;
}

.pgd-galop-title h1 {
  margin: 0;
  color: #14100b;
  font-size: 24px;
  line-height: 1.05;
  text-transform: none;
}

.pgd-galop-title em {
  display: block;
  margin-top: 6px;
  color: #8b7357;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.pgd-galop-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}

.pgd-galop-chips span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border: 1px solid #eadcc8;
  border-radius: 999px;
  background: #fff8eb;
  color: #4d3a25;
  font-size: 12px;
  line-height: 1;
  padding: 0 10px;
}

.pgd-galop-chips .pgd-galop-surface-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: #fff8e7;
  border-color: rgba(184, 124, 12, 0.2);
  color: #8c5e0c;
}

.pgd-galop-chips .pgd-galop-surface-chip .pgd2-pist-ico {
  width: 14px;
  height: 14px;
  display: block;
}

.pgd-galop-stats {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.pgd-galop-stats span {
  min-width: 86px;
  border-radius: 7px;
  background: #f6efe5;
  color: #70583e;
  font-size: 11px;
  padding: 8px 10px;
}

.pgd-galop-stats strong {
  display: block;
  color: #14100b;
  font-size: 19px;
}

.pgd-galop-stats span.is-kosmaz {
  border: 1px solid #ead0d0;
  background: #fff4f4;
  color: #9a3e3e;
}

.pgd-galop-graphics {
  display: grid;
  gap: 10px;
}

.pgd-galop-compare {
  display: grid;
  gap: 10px;
}

.pgd-galoplar-page .pgd-galop-compare {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.pgd-galop-graphics-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  padding: 6px 2px 0;
}

.pgd-galop-graphics-head span {
  color: #8b7357;
  font-size: 12px;
  font-weight: 800;
}

.pgd-galop-graphics-head h2 {
  margin: 1px 0 0;
  font-size: 18px;
  color: #14100b;
}

.pgd-galop-graphics-head > strong {
  color: #8b7357;
  font-size: 12px;
}

.pgd-galop-read-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pgd-galop-read-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label value" "name value";
  align-items: center;
  gap: 3px 10px;
  min-height: 50px;
  padding: 9px 11px;
  border: 1px solid #eadcc8;
  border-left: 4px solid #f4a000;
  border-radius: 8px;
  background: linear-gradient(135deg, #fffaf2, #fffdfa 72%);
}

.pgd-galop-read-card span {
  grid-area: label;
  color: #8b7357;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.pgd-galop-read-card strong {
  grid-area: name;
  min-width: 0;
  overflow: hidden;
  color: #14100b;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgd-galop-read-card em {
  grid-area: value;
  justify-self: end;
  color: #147247;
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.pgd-galop-race-sim {
  margin-top: 10px;
  border: 1px solid #eadcc8;
  border-radius: 10px;
  background: linear-gradient(180deg, #fffdfa 0%, #fff6e8 100%);
  overflow: hidden;
}

.pgd-galop-race-sim-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 0;
}

.pgd-galop-race-sim-head strong {
  color: #14100b;
  font-size: 14px;
  font-weight: 900;
}

.pgd-galop-race-sim-head span {
  color: #7b6247;
  font-size: 11px;
  font-weight: 800;
}

.pgd-galop-race-track {
  position: relative;
  height: 224px;
  margin: 6px 12px 12px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, rgba(242, 218, 178, 0.28) 0 20%, rgba(213, 168, 96, 0.20) 20% 21%, rgba(255, 251, 244, 0) 21% 47%, rgba(213, 168, 96, 0.16) 47% 48%, rgba(255, 251, 244, 0) 48% 75%, rgba(213, 168, 96, 0.14) 75% 76%, rgba(255, 251, 244, 0) 76%),
    linear-gradient(180deg, #fff9ef, #f7ecd9);
  box-shadow: inset 0 0 0 1px rgba(137, 95, 38, 0.10);
  perspective: 860px;
  overflow: hidden;
}

.pgd-galop-race-track::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 72px;
  bottom: 24px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(101, 66, 28, 0.16), rgba(101, 66, 28, 0) 66%);
  transform: skewX(-16deg);
  opacity: 0.8;
}

.pgd-galop-race-rail {
  position: absolute;
  left: 18px;
  right: 86px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(126, 91, 42, 0.18), rgba(218, 151, 31, 0.70), rgba(126, 91, 42, 0.22));
}

.pgd-galop-race-rail.is-top { top: 44px; }
.pgd-galop-race-rail.is-bottom { bottom: 42px; }

.pgd-galop-race-finish {
  position: absolute;
  top: 30px;
  right: 56px;
  bottom: 32px;
  width: 8px;
  border-radius: 999px;
  background: repeating-linear-gradient(180deg, #14100b 0 7px, #fffdfa 7px 14px);
  box-shadow: 0 0 0 2px rgba(20, 16, 11, 0.08);
  z-index: 7;
}

.pgd-galop-race-finish b {
  position: absolute;
  right: -18px;
  top: -20px;
  color: #4f3b24;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.pgd-galop-race-entry {
  position: absolute;
  top: var(--lane-y);
  left: var(--finish-x);
  z-index: 4;
  width: 320px;
  height: 58px;
  transform: translateX(-100%) translateY(10px) scale(0.86) rotateX(7deg);
  transform-origin: 100% 78%;
  opacity: 0;
  animation: pgd-galop-race-drive 1.28s cubic-bezier(0.18, 0.86, 0.26, 1) var(--delay) forwards;
}

.pgd-galop-race-entry.is-rank-1 { z-index: 6; }
.pgd-galop-race-entry.is-rank-2 { z-index: 5; }

.pgd-galop-race-entry.is-selected .pgd-galop-race-tag,
.pgd-galop-race-entry:hover .pgd-galop-race-tag {
  border-color: #f4a000;
  background: #fff3d7;
}

.pgd-galop-race-rank {
  position: absolute;
  left: auto;
  right: 108px;
  top: 16px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: #f4a000;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(99, 62, 16, 0.18);
}

.pgd-galop-race-tag {
  position: absolute;
  left: auto;
  right: 138px;
  top: 6px;
  z-index: 3;
  display: grid;
  gap: 1px;
  width: 154px;
  min-height: 40px;
  padding: 6px 8px;
  border: 1px solid rgba(234, 220, 200, 0.92);
  border-radius: 9px;
  background: rgba(255, 253, 250, 0.86);
  box-shadow: 0 10px 20px rgba(83, 53, 21, 0.08);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.pgd-galop-race-tag b,
.pgd-galop-race-tag small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgd-galop-race-tag b {
  color: #14100b;
  font-size: 11px;
  font-weight: 900;
}

.pgd-galop-race-tag small {
  color: #147247;
  font-size: 10px;
  font-weight: 900;
}

.pgd-galop-race-horse {
  position: absolute;
  right: 0;
  top: -5px;
  width: 116px;
  height: 64px;
  transform-style: preserve-3d;
  filter: drop-shadow(0 10px 10px rgba(72, 43, 17, 0.18));
  animation: pgd-galop-horse-bob 0.52s ease-in-out infinite alternate;
}

.pgd-galop-race-horse i {
  position: absolute;
  display: block;
}

.pgd-galop-race-shadow {
  left: 12px;
  right: 6px;
  bottom: 3px;
  height: 9px;
  border-radius: 50%;
  background: rgba(47, 29, 12, 0.20);
  filter: blur(5px);
  transform: skewX(-14deg);
}

.pgd-galop-race-horse::before {
  content: "";
  position: absolute;
  left: 57%;
  top: 20%;
  z-index: 3;
  width: 17%;
  height: 14%;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 4px;
  background: var(--silk);
  box-shadow: 0 1px 2px rgba(26, 16, 8, 0.18);
  opacity: 0.9;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.pgd-galop-race-horse img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pgd-galop-race-svg {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.pgd-galop-race-svg .pgd-svg-tail,
.pgd-galop-race-svg .pgd-svg-body,
.pgd-galop-race-svg .pgd-svg-neck,
.pgd-galop-race-svg .pgd-svg-head {
  fill: var(--horse-body);
  stroke: var(--horse-dark);
  stroke-width: 3.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.pgd-galop-race-svg .pgd-svg-tail {
  fill: var(--horse-dark);
}

.pgd-galop-race-svg .pgd-svg-neck,
.pgd-galop-race-svg .pgd-svg-head {
  fill: color-mix(in srgb, var(--horse-body) 86%, #fff 14%);
}

.pgd-galop-race-svg .pgd-svg-mane,
.pgd-galop-race-svg .pgd-svg-leg,
.pgd-galop-race-svg .pgd-svg-hoof,
.pgd-galop-race-svg .pgd-svg-arm,
.pgd-galop-race-svg .pgd-svg-rein {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pgd-galop-race-svg .pgd-svg-mane {
  stroke: #1f130c;
  stroke-width: 6;
}

.pgd-galop-race-svg .pgd-svg-leg {
  stroke: var(--horse-dark);
  stroke-width: 6.4;
}

.pgd-galop-race-svg .pgd-svg-hoof {
  stroke: #17100b;
  stroke-width: 4.6;
}

.pgd-galop-race-svg .pgd-svg-saddle {
  fill: #2b2018;
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 1.8;
}

.pgd-galop-race-svg .pgd-svg-jockey,
.pgd-galop-race-svg .pgd-svg-cap {
  fill: var(--silk);
  stroke: #2c2015;
  stroke-width: 2.2;
  stroke-linejoin: round;
}

.pgd-galop-race-svg .pgd-svg-jockey-head {
  fill: #eac58f;
  stroke: #2c2015;
  stroke-width: 1.8;
}

.pgd-galop-race-svg .pgd-svg-arm {
  stroke: #2c2015;
  stroke-width: 4;
}

.pgd-galop-race-svg .pgd-svg-rein {
  stroke: rgba(36, 22, 10, 0.72);
  stroke-width: 2.2;
}

.pgd-galop-horse-body {
  left: 38px;
  top: 31px;
  width: 70px;
  height: 28px;
  border-radius: 54% 42% 48% 50%;
  background:
    radial-gradient(circle at 68% 32%, rgba(255, 221, 168, 0.28), transparent 24%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(180deg, var(--horse-body), var(--horse-dark));
  box-shadow: inset -10px -8px 16px rgba(0, 0, 0, 0.17), inset 8px 5px 14px rgba(255, 255, 255, 0.12);
}

.pgd-galop-horse-tail {
  left: 18px;
  top: 35px;
  width: 34px;
  height: 9px;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(90deg, var(--horse-dark), var(--horse-body));
  transform: rotate(-24deg);
  transform-origin: right center;
  animation: pgd-galop-tail 0.46s ease-in-out infinite alternate;
}

.pgd-galop-horse-neck {
  left: 97px;
  top: 21px;
  width: 29px;
  height: 18px;
  border-radius: 9px 16px 8px 9px;
  background: linear-gradient(125deg, var(--horse-body), var(--horse-dark));
  transform: rotate(-34deg);
}

.pgd-galop-horse-head {
  left: 119px;
  top: 13px;
  width: 28px;
  height: 20px;
  border-radius: 62% 34% 46% 46%;
  background: linear-gradient(145deg, var(--horse-body), var(--horse-dark));
  transform: rotate(-12deg);
}

.pgd-galop-horse-head::before {
  content: "";
  position: absolute;
  left: 4px;
  top: -7px;
  width: 7px;
  height: 11px;
  border-radius: 8px 8px 1px 1px;
  background: var(--horse-dark);
  transform: rotate(-18deg);
}

.pgd-galop-horse-head::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 6px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #120d08;
}

.pgd-galop-horse-mane {
  left: 98px;
  top: 19px;
  width: 22px;
  height: 7px;
  border-radius: 999px;
  background: rgba(26, 16, 9, 0.76);
  transform: rotate(-39deg);
}

.pgd-galop-horse-leg {
  width: 7px;
  height: 33px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--horse-dark), #2b170e);
  transform-origin: 50% 5px;
}

.pgd-galop-horse-leg::after {
  content: "";
  position: absolute;
  left: -2px;
  bottom: -2px;
  width: 13px;
  height: 5px;
  border-radius: 999px;
  background: #1b100a;
}

.pgd-galop-horse-leg.is-front-a {
  left: 96px;
  top: 52px;
  transform: rotate(-26deg);
  animation: pgd-galop-leg-front 0.42s ease-in-out infinite alternate;
}

.pgd-galop-horse-leg.is-front-b {
  left: 84px;
  top: 51px;
  transform: rotate(24deg);
  animation: pgd-galop-leg-back 0.42s ease-in-out infinite alternate;
}

.pgd-galop-horse-leg.is-back-a {
  left: 52px;
  top: 52px;
  transform: rotate(30deg);
  animation: pgd-galop-leg-back 0.42s ease-in-out infinite alternate;
}

.pgd-galop-horse-leg.is-back-b {
  left: 66px;
  top: 52px;
  transform: rotate(-24deg);
  animation: pgd-galop-leg-front 0.42s ease-in-out infinite alternate;
}

.pgd-galop-jockey-body {
  left: 73px;
  top: 13px;
  width: 26px;
  height: 15px;
  border-radius: 13px 13px 8px 8px;
  background: linear-gradient(135deg, var(--silk), #fff0bf 58%, var(--silk));
  box-shadow: 0 2px 0 rgba(30, 18, 8, 0.18);
  transform: rotate(14deg) skewX(-8deg);
}

.pgd-galop-jockey-head {
  left: 94px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #eac58f;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.14);
}

.pgd-galop-jockey-head::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -4px;
  width: 16px;
  height: 7px;
  border-radius: 999px 999px 2px 2px;
  background: var(--silk);
}

.pgd-galop-jockey-arm {
  left: 95px;
  top: 19px;
  width: 32px;
  height: 3px;
  border-radius: 999px;
  background: rgba(36, 22, 10, 0.72);
  transform: rotate(-18deg);
  transform-origin: left center;
}

@keyframes pgd-galop-race-drive {
  0% {
    left: 7%;
    opacity: 0;
    transform: translateX(-100%) translateY(18px) scale(0.76) rotateX(10deg);
  }
  62% {
    opacity: 1;
  }
  100% {
    left: var(--finish-x);
    opacity: 1;
    transform: translateX(-100%) translateY(0) scale(var(--horse-scale)) rotateX(7deg);
  }
}

@keyframes pgd-galop-horse-bob {
  from { transform: translateY(0) rotate(-1deg); }
  to { transform: translateY(-3px) rotate(1deg); }
}

@keyframes pgd-galop-leg-front {
  from { transform: rotate(-34deg); }
  to { transform: rotate(30deg); }
}

@keyframes pgd-galop-leg-back {
  from { transform: rotate(28deg); }
  to { transform: rotate(-30deg); }
}

@keyframes pgd-galop-tail {
  from { transform: rotate(-18deg); }
  to { transform: rotate(-34deg); }
}

@media (prefers-reduced-motion: reduce) {
  .pgd-galop-race-entry,
  .pgd-galop-race-horse,
  .pgd-galop-horse-tail,
  .pgd-galop-horse-leg {
    animation: none !important;
  }

  .pgd-galop-race-entry {
    opacity: 1;
    transform: translateX(-100%) translateY(0) scale(var(--horse-scale)) rotateX(7deg);
  }
}

.pgd-galop-compare-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.pgd-galop-flowpanel,
.pgd-galop-profilepanel,
.pgd-galop-trackpanel,
.pgd-galop-heatpanel {
  border: 1px solid #eadcc8;
  border-radius: 8px;
  background: #fffdfa;
  overflow: hidden;
}

.pgd-galop-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #eadcc8;
  background: #fff8eb;
}

.pgd-galop-panel-head strong {
  color: #14100b;
  font-size: 14px;
}

.pgd-galop-panel-head span {
  color: #7b6247;
  font-size: 11px;
  font-weight: 800;
}

.pgd-galop-flowpanel {
  border: 0;
  background: transparent;
  overflow: visible;
}

.pgd-galop-phase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
}

.pgd-galop-phase-card {
  --phase-accent: #f4a000;
  --phase-bg: #fff8e8;
  --phase-line: rgba(244, 160, 0, 0.24);
  --phase-soft: rgba(244, 160, 0, 0.10);
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 11px 12px 10px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--phase-bg), #fffdfa 82%);
  box-shadow: inset 0 0 0 1px var(--phase-line);
}

.pgd-galop-phase-card.is-total {
  --phase-accent: #8b5cf6;
  --phase-bg: #ffffff;
  --phase-line: rgba(139, 92, 246, 0.18);
  --phase-soft: rgba(139, 92, 246, 0.08);
}

.pgd-galop-phase-card.is-early {
  --phase-accent: #2f8f5b;
  --phase-bg: #f0fbf4;
  --phase-line: rgba(47, 143, 91, 0.22);
  --phase-soft: rgba(47, 143, 91, 0.10);
}

.pgd-galop-phase-card.is-middle {
  --phase-accent: #2878a8;
  --phase-bg: #eef8ff;
  --phase-line: rgba(40, 120, 168, 0.22);
  --phase-soft: rgba(40, 120, 168, 0.10);
}

.pgd-galop-phase-card.is-finish {
  --phase-accent: #b34f7a;
  --phase-bg: #fff1f7;
  --phase-line: rgba(179, 79, 122, 0.22);
  --phase-soft: rgba(179, 79, 122, 0.10);
}

.pgd-galop-phase-card header {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.pgd-galop-phase-card header > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--phase-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.pgd-galop-phase-card header div {
  min-width: 0;
}

.pgd-galop-phase-card header strong,
.pgd-galop-phase-card header small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgd-galop-phase-card header strong {
  color: #14100b;
  font-size: 13px;
  font-weight: 900;
}

.pgd-galop-phase-card header small {
  margin-top: 1px;
  color: #7b6247;
  font-size: 10px;
  font-weight: 800;
}

.pgd-galop-phase-card ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 2px 0 0;
  border-top: 1px solid var(--phase-line);
  list-style: none;
}

.pgd-galop-phase-card li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.pgd-galop-phase-card li + li {
  border-top: 1px solid rgba(117, 91, 61, 0.11);
}

.pgd-galop-phase-card li.is-selected {
  margin-inline: -5px;
  padding-inline: 5px;
  border-radius: 7px;
  background: var(--phase-soft);
  box-shadow: inset 0 0 0 1px var(--phase-line);
}

.pgd-galop-phase-card li.is-kosmaz {
  opacity: 0.58;
}

.pgd-galop-phase-card li > b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--phase-accent);
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px var(--phase-line);
}

.pgd-galop-phase-card li span {
  min-width: 0;
}

.pgd-galop-phase-card li strong,
.pgd-galop-phase-card li small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgd-galop-phase-card li strong {
  color: #14100b;
  font-size: 11px;
  font-weight: 900;
}

.pgd-galop-phase-card li.is-kosmaz strong {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.pgd-galop-phase-card li small {
  margin-top: 1px;
  color: #7b6247;
  font-size: 9px;
  font-weight: 800;
}

.pgd-galop-phase-card li em {
  color: var(--phase-accent);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.pgd-galop-flow-story {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin: 12px 0 16px;
  padding: 10px 12px;
  border: 1px solid rgba(244, 160, 0, 0.24);
  border-radius: 10px;
  background: #fff7e6;
}

.pgd-galop-flow-story strong {
  color: #14100b;
  font-size: 12px;
  font-weight: 900;
}

.pgd-galop-flow-story span {
  color: #6c5438;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.pgd-galop-flow-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 10px 12px 0;
}

.pgd-galop-flow-summary span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  min-height: 50px;
  padding: 8px 10px;
  border: 1px solid #eadcc8;
  border-radius: 9px;
  background: #fffaf2;
}

.pgd-galop-flow-summary b,
.pgd-galop-flow-summary strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgd-galop-flow-summary b {
  grid-column: 1 / -1;
  color: #8b7357;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.pgd-galop-flow-summary strong {
  color: #14100b;
  font-size: 12px;
  font-weight: 900;
}

.pgd-galop-flow-summary em {
  color: #147247;
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
}

.pgd-galop-flow-map {
  padding: 10px 10px 8px;
  overflow-x: auto;
}

.pgd-galop-flow-map svg {
  display: block;
  min-width: 720px;
  width: 100%;
  height: auto;
}

.pgd-galop-flow-track {
  fill: #fffaf2;
  stroke: #eadcc8;
  stroke-width: 2;
}

.pgd-galop-flow-grid {
  stroke: rgba(126, 91, 43, 0.18);
  stroke-width: 2;
  stroke-dasharray: 6 8;
}

.pgd-galop-flow-label {
  fill: #7b6247;
  font-size: 13px;
  font-weight: 900;
  text-anchor: middle;
}

.pgd-galop-flow-line {
  fill: none;
  stroke: #7b6247;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.48;
  transition: opacity 0.16s ease, stroke-width 0.16s ease;
}

.pgd-galop-flow-mark {
  fill: #fffdfa;
  stroke-width: 2;
  opacity: 0.75;
}

.pgd-galop-flow-line.is-front,
.pgd-galop-flow-mark.is-front { stroke: #d9941a; }
.pgd-galop-flow-line.is-press,
.pgd-galop-flow-mark.is-press { stroke: #2f78a8; }
.pgd-galop-flow-line.is-sprint,
.pgd-galop-flow-mark.is-sprint { stroke: #a84f78; }
.pgd-galop-flow-line.is-balanced,
.pgd-galop-flow-mark.is-balanced { stroke: #4d8b57; }

.pgd-galop-flow-number circle {
  fill: #fffdfa;
  stroke: #7b6247;
  stroke-width: 2;
}

.pgd-galop-flow-number text {
  fill: #14100b;
  font-size: 12px;
  font-weight: 900;
  text-anchor: middle;
}

.pgd-galop-flow-number.is-front circle { stroke: #d9941a; }
.pgd-galop-flow-number.is-press circle { stroke: #2f78a8; }
.pgd-galop-flow-number.is-sprint circle { stroke: #a84f78; }
.pgd-galop-flow-number.is-balanced circle { stroke: #4d8b57; }

.pgd-galop-flow-name {
  fill: #4f3a22;
  font-size: 11px;
  font-weight: 900;
  opacity: 0.74;
}

[data-flow-horse].is-selected.pgd-galop-flow-line {
  opacity: 1;
  stroke-width: 6;
}

[data-flow-horse].is-selected.pgd-galop-flow-name,
[data-flow-horse].is-selected.pgd-galop-flow-mark,
[data-flow-horse].is-selected.pgd-galop-flow-number {
  opacity: 1;
}

.pgd-galop-flow-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 0 12px 12px;
}

.pgd-galop-flow-legend span,
.pgd-galop-flow-legend strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #eadcc8;
  border-radius: 999px;
  background: #fffdfa;
  color: #6f5a42;
  font-size: 10px;
  font-weight: 900;
}

.pgd-galop-flow-legend strong {
  margin-left: auto;
  color: #147247;
  background: #f3fff6;
}

.pgd-galop-flow-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.pgd-galop-flow-legend .is-front { background: #d9941a; }
.pgd-galop-flow-legend .is-press { background: #2f78a8; }
.pgd-galop-flow-legend .is-sprint { background: #a84f78; }
.pgd-galop-flow-legend .is-balanced { background: #4d8b57; }

.pgd-galop-selected-card {
  display: grid;
  gap: 14px;
  padding: 12px;
}

.pgd-galop-selected-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid #eadcc8;
  border-radius: 10px;
  background: linear-gradient(135deg, #fffaf2, #fffdfa);
}

.pgd-galop-selected-head > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f4a000;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.pgd-galop-selected-head div {
  min-width: 0;
}

.pgd-galop-selected-head strong,
.pgd-galop-selected-head small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgd-galop-selected-head strong {
  color: #14100b;
  font-size: 15px;
  font-weight: 900;
}

.pgd-galop-selected-head small {
  margin-top: 3px;
  color: #7b6247;
  font-size: 10px;
  font-weight: 800;
}

.pgd-galop-selected-head em {
  display: grid;
  justify-items: end;
  color: #147247;
  font-style: normal;
  font-weight: 900;
}

.pgd-galop-selected-head em b {
  font-size: 24px;
}

.pgd-galop-selected-head em small {
  color: #7b6247;
  font-size: 10px;
  text-transform: uppercase;
}

.pgd-galop-segment-track {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  padding: 9px;
  border: 1px solid rgba(126, 91, 43, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(244, 160, 0, 0.12), rgba(43, 155, 97, 0.14)),
    #fffaf2;
}

.pgd-galop-segment {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 64px;
  padding: 8px 5px;
  border: 1px solid #eadcc8;
  border-radius: 999px;
  color: #14100b;
  text-align: center;
}

.pgd-galop-segment b,
.pgd-galop-segment strong {
  display: block;
}

.pgd-galop-segment b {
  max-width: 100%;
  overflow: hidden;
  color: #5f4b34;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgd-galop-segment strong {
  margin-top: 5px;
  font-size: 15px;
  font-weight: 900;
}

.pgd-galop-profile-scale {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.pgd-galop-profile-scale span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #eadcc8;
  border-radius: 999px;
  background: #fffdfa;
  color: #6f5a42;
  font-size: 10px;
  font-weight: 900;
}

.pgd-galop-profile-scale i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.pgd-galop-profile-scale .is-low { background: #f4c08d; }
.pgd-galop-profile-scale .is-mid { background: #e9d96f; }
.pgd-galop-profile-scale .is-high { background: #43d66f; }

.pgd-galop-track-help,
.pgd-galop-metric-key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px 12px 0;
}

.pgd-galop-track-help span,
.pgd-galop-metric-key span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #eadcc8;
  border-radius: 999px;
  background: #fffaf2;
  color: #6f5a42;
  font-size: 10px;
  font-weight: 800;
}

.pgd-galop-track-help b,
.pgd-galop-metric-key b {
  color: #14100b;
  font-weight: 900;
}

.pgd-galop-track-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 8px 12px 0;
  padding: 8px 10px;
  border: 1px solid rgba(244, 160, 0, 0.22);
  border-radius: 9px;
  background: #fff7e6;
  color: #6c5438;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.pgd-galop-track-note i {
  flex: 0 0 auto;
  margin-top: 1px;
  color: #d89418;
  font-size: 13px;
}

.pgd-galop-track-note span {
  min-width: 0;
}

.pgd-galop-visual-key {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px 0;
}

.pgd-galop-visual-key span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #eadcc8;
  border-radius: 999px;
  background: #fffdfa;
  color: #6f5a42;
  font-size: 10px;
  font-weight: 900;
}

.pgd-galop-visual-key i {
  display: inline-block;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.pgd-galop-visual-key .is-low i {
  width: 10px;
  height: 10px;
  background: #f4c08d;
}

.pgd-galop-visual-key .is-mid i {
  width: 14px;
  height: 14px;
  background: #e9d96f;
}

.pgd-galop-visual-key .is-high i {
  width: 18px;
  height: 18px;
  background: #43d66f;
}

.pgd-galop-trackmap {
  position: relative;
  min-height: 270px;
  margin: 14px;
  border: 1px solid rgba(126, 91, 43, 0.18);
  border-radius: 138px;
  background:
    linear-gradient(90deg, rgba(244, 160, 0, 0.12), rgba(43, 155, 97, 0.16)),
    #f5ebdc;
  box-shadow:
    inset 0 0 0 16px #d5b76e,
    inset 0 0 0 33px #f8efe2,
    inset 0 0 0 49px rgba(126, 91, 43, 0.14),
    0 10px 26px rgba(63, 43, 19, 0.08);
  overflow: visible;
}

.pgd-galop-trackmap::before {
  content: "";
  position: absolute;
  inset: 64px 88px;
  z-index: 1;
  border: 1px solid rgba(43, 155, 97, 0.18);
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, rgba(43, 155, 97, 0.12) 0 12px, rgba(43, 155, 97, 0.05) 12px 24px),
    #dcebd5;
}

.pgd-galop-trackmap::after {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 50%;
  z-index: 2;
  height: 36px;
  border: 1px solid rgba(126, 91, 43, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(244, 160, 0, 0.2), rgba(232, 218, 112, 0.18), rgba(43, 155, 97, 0.22)),
    rgba(255, 253, 250, 0.74);
  box-shadow: inset 0 0 0 8px rgba(255, 253, 250, 0.6);
  transform: translateY(-50%);
}

.pgd-galop-trackmap-inner {
  position: absolute;
  left: 11%;
  right: 11%;
  top: 50%;
  z-index: 3;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(244, 160, 0, 0.78), rgba(43, 155, 97, 0.82));
  transform: translateY(-50%);
}

.pgd-galop-trackmap-label {
  position: absolute;
  z-index: 3;
  min-height: 22px;
  padding: 4px 8px;
  border: 1px solid rgba(142, 100, 42, 0.2);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.86);
  color: #7b6247;
  font-size: 10px;
  font-weight: 900;
}

.pgd-galop-trackmap-label--start {
  left: 9%;
  top: 50%;
  transform: translateY(calc(-50% - 34px));
}

.pgd-galop-trackmap-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 118px;
  height: 66px;
  border: 1px solid rgba(126, 91, 43, 0.18);
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.86);
  color: #14100b;
  text-align: center;
  box-shadow: 0 10px 24px rgba(63, 43, 19, 0.1);
  transform: translate(-50%, -126%);
}

.pgd-galop-trackmap-center strong,
.pgd-galop-trackmap-center span {
  display: block;
}

.pgd-galop-trackmap-center strong {
  font-size: 12px;
  font-weight: 900;
}

.pgd-galop-trackmap-center span {
  margin-top: 3px;
  color: #147247;
  font-size: 10px;
  font-weight: 900;
}

.pgd-galop-trackmap-finish {
  position: absolute;
  right: 8%;
  top: 50%;
  z-index: 3;
  min-width: 54px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: #147247;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  transform: translateY(calc(-50% - 34px));
}

.pgd-galop-track-dot {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  color: #14100b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(63, 43, 19, 0.18);
  cursor: default;
  outline: 0;
}

.pgd-galop-track-dot::after {
  content: attr(data-horse-name);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 10;
  max-width: 210px;
  padding: 6px 9px;
  border-radius: 7px;
  background: rgba(20, 16, 11, 0.95);
  color: #fffdf8;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 10px 22px rgba(20, 16, 11, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.pgd-galop-track-dot::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  z-index: 9;
  width: 8px;
  height: 8px;
  background: rgba(20, 16, 11, 0.95);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px) rotate(45deg);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.pgd-galop-track-dot:hover::after,
.pgd-galop-track-dot:hover::before,
.pgd-galop-track-dot:focus-visible::after,
.pgd-galop-track-dot:focus-visible::before {
  opacity: 1;
}

.pgd-galop-track-dot:hover,
.pgd-galop-track-dot:focus-visible {
  z-index: 30;
}

.pgd-galop-track-dot.is-selected {
  border-color: #14100b;
  box-shadow: 0 0 0 3px rgba(244, 160, 0, 0.28), 0 8px 18px rgba(63, 43, 19, 0.2);
}

.pgd-galop-track-dot:hover::after,
.pgd-galop-track-dot:focus-visible::after {
  transform: translate(-50%, 0);
}

.pgd-galop-track-dot:hover::before,
.pgd-galop-track-dot:focus-visible::before {
  transform: translate(-50%, 0) rotate(45deg);
}

.pgd-galop-track-legend {
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 14px 14px;
  color: #7b6247;
  font-size: 11px;
  font-weight: 800;
}

.pgd-galop-track-legend b {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f0cba5, #f4a000, #2b9b61);
}

.pgd-galop-track-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 14px 12px;
  padding: 9px 11px;
  border: 1px solid #eadcc8;
  border-radius: 9px;
  background: #fff8eb;
}

.pgd-galop-track-readout div {
  min-width: 0;
}

.pgd-galop-track-readout strong,
.pgd-galop-track-readout small {
  display: block;
}

.pgd-galop-track-readout strong {
  min-width: 0;
  overflow: hidden;
  color: #14100b;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgd-galop-track-readout small {
  margin-top: 2px;
  color: #8b7357;
  font-size: 10px;
  font-weight: 800;
}

.pgd-galop-track-readout span {
  flex: 0 0 auto;
  color: #147247;
  font-size: 12px;
  font-weight: 900;
}

.pgd-galop-heatpanel {
  min-width: 0;
}

.pgd-galop-heatmap {
  display: grid;
  gap: 5px;
  padding: 10px;
  overflow-x: auto;
}

.pgd-galop-heatrow {
  display: grid;
  grid-template-columns: minmax(210px, 1.6fr) repeat(7, minmax(58px, 0.52fr));
  gap: 5px;
  min-width: 760px;
  align-items: center;
}

.pgd-galop-heatrow[data-galop-select] {
  cursor: pointer;
  outline: 0;
}

.pgd-galop-heatrow[data-galop-select]:hover .pgd-galop-heatname,
.pgd-galop-heatrow[data-galop-select]:focus-visible .pgd-galop-heatname,
.pgd-galop-heatrow.is-selected .pgd-galop-heatname {
  border-color: #f4a000;
  background: #fff3d7;
  box-shadow: inset 0 0 0 1px rgba(244, 160, 0, 0.18);
}

.pgd-galop-heatrow.is-selected .pgd-galop-heatcell {
  box-shadow: inset 0 0 0 1px rgba(20, 16, 11, 0.14);
}

.pgd-galop-heathead span {
  background: transparent;
  border: 0;
  color: #8b7357;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.pgd-galop-heatname,
.pgd-galop-heatcell {
  min-height: 34px;
  border: 1px solid #eadcc8;
  border-radius: 6px;
}

.pgd-galop-heatname {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  background: #fffaf2;
}

.pgd-galop-heatname b {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #f4a000;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.pgd-galop-heatname strong {
  overflow: hidden;
  color: #14100b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgd-galop-heatname em,
.pgd-galop-rankitem small,
.pgd-galop-runner-title em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  border: 1px solid #ead0d0;
  border-radius: 999px;
  background: #fff4f4;
  color: #9a3e3e;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.pgd-galop-heatname em {
  padding: 0 7px;
}

.pgd-galop-heatrow.is-kosmaz {
  opacity: 0.66;
}

.pgd-galop-heatrow.is-kosmaz .pgd-galop-heatname {
  background: #fbf5f1;
}

.pgd-galop-heatrow.is-kosmaz .pgd-galop-heatname strong {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.pgd-galop-heatrow.is-kosmaz .pgd-galop-heatcell {
  filter: grayscale(0.55);
}

.pgd-galop-heatcell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #14100b;
  font-size: 12px;
  font-weight: 900;
}

.pgd-galop-rankbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pgd-galop-rankitem {
  position: relative;
  min-height: 46px;
  border: 1px solid #eadcc8;
  border-radius: 8px;
  background: #fffdfa;
  overflow: hidden;
  padding: 7px 46px 7px 40px;
}

.pgd-galop-rankitem span {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff2d7;
  color: #6f4300;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
}

.pgd-galop-rankitem strong {
  position: relative;
  z-index: 2;
  display: block;
  overflow: hidden;
  color: #14100b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgd-galop-rankitem small {
  position: relative;
  z-index: 2;
  width: max-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 0 7px;
}

.pgd-galop-rankitem.is-kosmaz {
  opacity: 0.66;
  background: #fbf5f1;
}

.pgd-galop-rankitem.is-kosmaz strong {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.pgd-galop-rankitem.is-kosmaz b {
  background: #c5b8ad;
}

.pgd-galop-rankitem b {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, #f4a000, #2b9b61);
}

.pgd-galop-rankitem em {
  position: absolute;
  right: 10px;
  top: 13px;
  color: #147247;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.pgd-galop-graphic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pgd-galop-graphic-card {
  border: 1px solid #eadcc8;
  border-radius: 8px;
  background: #fffdfa;
  padding: 12px;
  min-width: 0;
}

.pgd-galop-graphic-top {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.pgd-galop-graphic-top > span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8f5ee;
  color: #147247;
  font-weight: 900;
}

.pgd-galop-graphic-top strong,
.pgd-galop-runner-title a,
.pgd-galop-runner-title strong {
  color: #14100b;
  font-weight: 900;
  text-decoration: none;
}

.pgd-galop-graphic-top small {
  display: block;
  color: #7b6247;
  font-size: 11px;
}

.pgd-galop-spark {
  width: 100%;
  height: 56px;
  margin: 8px 0 6px;
  overflow: visible;
}

.pgd-galop-spark path {
  stroke: #eadcc8;
  stroke-width: 1;
  fill: none;
}

.pgd-galop-spark polyline {
  stroke: #2367a4;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pgd-galop-spark circle {
  fill: #f4a000;
  stroke: #fff;
  stroke-width: 1.2;
}

.pgd-galop-meter {
  height: 5px;
  border-radius: 999px;
  background: #f0e4d3;
  overflow: hidden;
}

.pgd-galop-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f4a000, #2b9b61);
}

.pgd-galop-graphic-meta,
.pgd-galop-mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 8px;
  margin-top: 8px;
}

.pgd-galop-graphic-meta span,
.pgd-galop-mini-metrics span {
  color: #7b6247;
  font-size: 11px;
}

.pgd-galop-graphic-meta b,
.pgd-galop-mini-metrics b {
  color: #14100b;
}

.pgd-galop-list {
  display: grid;
  gap: 8px;
}

.pgd-galop-runner {
  display: grid;
  grid-template-columns: minmax(400px, 0.46fr) minmax(620px, 1fr);
  grid-template-rows: auto auto;
  gap: 10px 16px;
  align-items: start;
  padding: 10px 12px;
}

.pgd-galop-runner.is-kosmaz {
  opacity: 0.66;
}

.pgd-galop-runner-main {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-column: 1;
  grid-row: 1;
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0e6d8;
}

.pgd-galop-start {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff2d7;
  color: #6f4300;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
}

.pgd-galop-runner-title small {
  display: block;
  margin-top: 4px;
  color: #7b6247;
  font-size: 12px;
  line-height: 1.35;
}

.pgd-galop-runner-title em {
  display: inline-flex;
  margin-top: 6px;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  border: 1px solid #ead0d0;
  border-radius: 999px;
  background: #fff4f4;
  color: #9a3e3e;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  padding: 0 8px;
  white-space: nowrap;
}

.pgd-galop-runner.is-kosmaz .pgd-galop-start,
.pgd-galop-runner.is-kosmaz .pgd-galop-score {
  filter: grayscale(0.7);
}

.pgd-galop-runner.is-kosmaz .pgd-galop-runner-title a,
.pgd-galop-runner.is-kosmaz .pgd-galop-runner-title strong {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.pgd-galop-runner-chart {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto auto;
  grid-column: 1;
  grid-row: 2;
  column-gap: 10px;
  align-items: center;
  align-self: start;
  min-width: 0;
}

.pgd-galop-score {
  grid-row: 1 / 3;
  width: 56px;
  height: 56px;
  border: 2px solid #f4a000;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background: #fff8eb;
}

.pgd-galop-score strong {
  color: #14100b;
  font-size: 18px;
  line-height: 1;
}

.pgd-galop-score span {
  color: #147247;
  font-size: 11px;
  font-weight: 900;
}

.pgd-galop-runner-chart .pgd-galop-spark {
  height: 42px;
  margin: 0;
}

.pgd-galop-mini-metrics {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7px;
}

.pgd-galop-mini-metrics span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 28px;
  padding: 5px 6px;
  border: 1px solid #f0e6d8;
  border-radius: 7px;
  background: #fffaf2;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.pgd-galop-workouts {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  gap: 0;
  min-width: 0;
  border-left: 1px solid #eadcc8;
  padding-left: 14px;
}

.pgd-galop-workout {
  display: grid;
  grid-template-columns: 168px minmax(260px, 1.35fr) minmax(190px, 0.82fr) 112px;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  margin: 0 -6px;
  padding: 6px;
  border-bottom: 1px solid #f0e6d8;
  border-radius: 8px;
  transition: background-color 0.14s ease, box-shadow 0.14s ease;
}

.pgd-galop-workout:hover {
  background: #fffaf2;
  box-shadow: inset 3px 0 0 rgba(244, 160, 0, 0.42);
}

.pgd-galop-workout:last-child {
  border-bottom: 0;
}

.pgd-galop-workout > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pgd-galop-workout > div em {
  display: inline-flex;
  flex: 0 0 auto;
  margin: 0;
  color: #b47a12;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.pgd-galop-workout > div strong {
  display: inline;
  flex: 0 0 auto;
  color: #14100b;
  font-size: 14px;
  line-height: 1.05;
}

.pgd-galop-workout > div span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgd-galop-workout > div span,
.pgd-galop-workout p,
.pgd-galop-workout small {
  color: #6f5a42;
  font-size: 11px;
  line-height: 1.35;
}

.pgd-galop-workout p,
.pgd-galop-workout small {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pgd-galop-workout p {
  display: block;
  line-height: 1.35;
  white-space: nowrap;
}

.pgd-galop-workout small {
  min-width: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pgd-galop-workout p b {
  color: #2a2117;
}

.pgd-galop-workout nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 112px;
}

.pgd-galop-workout nav a,
.pgd-galop-workout nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  min-height: 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #fff5df;
  color: #7a520b;
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 0 9px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.pgd-galop-workout nav a:hover,
.pgd-galop-workout nav button:hover {
  border-color: rgba(180, 122, 18, 0.28);
  background: #ffefd0;
}

.pgd-galop-no-workout {
  color: #7b6247;
  font-size: 12px;
  font-weight: 800;
  padding: 18px 0;
}

.pgd-galop-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 34px 18px;
  text-align: center;
  color: #7b6247;
}

.pgd-galop-empty-soft {
  background: transparent;
  border-style: dashed;
}

.pgd-galop-empty i {
  color: #f4a000;
  font-size: 30px;
}

.pgd-galop-empty strong {
  color: #14100b;
}

.pgd-galop-detail-link {
  background: #fff6df !important;
  color: #8b5600 !important;
}

.pgd-galop-detail-lightbox .son-lightbox-dialog {
  max-width: min(860px, calc(100vw - 28px));
}

.pgd-galop-detail-lightbox .son-lightbox-subtitle {
  color: #7b6247;
  font-size: 12px;
  font-weight: 800;
}

.pgd-galop-detail-body {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #fffdfa;
  max-height: min(72vh, 720px);
  overflow: auto;
}

.pgd-galop-detail-hero {
  display: grid;
  grid-template-columns: minmax(130px, 0.65fr) minmax(130px, 0.65fr) minmax(220px, 1fr);
  gap: 10px;
  align-items: stretch;
}

.pgd-galop-detail-hero > div {
  min-width: 0;
  border: 1px solid #eadcc8;
  border-radius: 8px;
  background: #fff8eb;
  padding: 12px;
}

.pgd-galop-detail-hero small,
.pgd-galop-detail-item span,
.pgd-galop-detail-note strong {
  display: block;
  color: #7b6247;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pgd-galop-detail-hero strong {
  display: block;
  color: #14100b;
  font-size: 27px;
  font-weight: 950;
  line-height: 1.05;
  margin-top: 5px;
}

.pgd-galop-detail-hero span {
  color: #5b4730;
  font-size: 12px;
  font-weight: 800;
}

.pgd-galop-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: center;
}

.pgd-galop-detail-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid #eadcc8;
  background: #fffdfa;
  color: #3d2a17;
  padding: 0 9px;
}

.pgd-galop-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pgd-galop-detail-item {
  min-width: 0;
  border: 1px solid #eadcc8;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.pgd-galop-detail-item strong {
  display: block;
  color: #14100b;
  font-size: 13px;
  line-height: 1.25;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.pgd-galop-detail-note {
  border: 1px solid #eadcc8;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.pgd-galop-detail-note p {
  margin: 6px 0 0;
  color: #342313;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.pgd-galop-detail-source,
.pgd-galop-detail-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #7b6247;
  font-size: 12px;
  font-weight: 800;
}

.pgd-galop-detail-source {
  border-top: 1px solid #eadcc8;
  padding-top: 10px;
}

.pgd-galop-detail-source a,
.pgd-galop-detail-foot a {
  color: #8b5600;
  font-weight: 900;
}

.pgd-galop-detail-foot {
  padding: 0 16px 14px;
  background: #fffdfa;
}

.pgd-galop-video-lightbox .son-lightbox-dialog {
  max-width: min(980px, calc(100vw - 28px));
}

.pgd-galop-video-lightbox .son-lightbox-subtitle {
  color: #f3d7a8;
  font-size: 12px;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.34);
}

.pgd-galop-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f131a;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.pgd-galop-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  background: #0f131a;
  object-fit: contain;
}

.pgd-galop-video-lightbox .son-lightbox-source a {
  color: inherit;
  font-weight: 900;
}

.pgd-galop-video-link {
  background: #e8f5ee !important;
  color: #147247 !important;
}

@media (max-width: 1180px) {
  .pgd-galop-datebar {
    grid-template-columns: minmax(160px, 180px) 112px minmax(250px, 1fr);
  }

  .pgd-galop-racenav {
    grid-column: 1 / -1;
  }

  .pgd-galop-graphic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pgd-galop-compare-grid {
    grid-template-columns: 1fr;
  }

  .pgd-galop-rankbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pgd-galop-runner {
    grid-template-columns: minmax(340px, 0.48fr) minmax(0, 1fr);
  }

  .pgd-galop-workouts {
    grid-column: 2;
    grid-row: 1 / span 2;
    border-left: 1px solid #eadcc8;
    border-top: 0;
    padding: 0 0 0 12px;
  }

  .pgd-galop-workout {
    grid-template-columns: 148px minmax(180px, 1fr) minmax(135px, 0.72fr) 108px;
    gap: 8px;
  }
}

@media (max-width: 1040px) {
  .pgd-galop-runner {
    grid-template-columns: 1fr;
  }

  .pgd-galop-runner-main,
  .pgd-galop-runner-chart,
  .pgd-galop-workouts {
    grid-column: 1;
    grid-row: auto;
  }

  .pgd-galop-workouts {
    border-left: 0;
    border-top: 1px solid #eadcc8;
    padding: 8px 0 0;
  }
}

@media (max-width: 760px) {
  .pgd-galoplar-page {
    padding: 8px 6px 28px;
  }

  .pgd-galoplar-shell {
    gap: 8px;
  }

  .pgd-galoplar-page .pgd-galop-programbar {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 220 !important;
    box-shadow: none !important;
  }

  .pgd-galoplar-page .pgd-datebar-desktop-main {
    display: none !important;
  }

  .pgd-galoplar-page .pgd-mobile-date-nav {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) 38px 44px !important;
    gap: 6px !important;
    padding: 7px !important;
  }

  .pgd-galoplar-page .pgd-mobile-date-current {
    min-width: 0 !important;
  }

  .pgd-galoplar-page .pgd-mobile-date-value {
    font-size: 15px !important;
  }

  .pgd-galoplar-page .pgd-mobile-date-helper {
    font-size: 11px !important;
  }

  .pgd-galoplar-page .pgd-mobile-date-step,
  .pgd-galoplar-page .pgd-mobile-date-picker-btn {
    min-width: 38px !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 9px !important;
  }

  .pgd-galop-mobile-controls {
    display: grid;
    gap: 8px;
    padding: 0 7px 9px;
  }

  .pgd-galop-datebar,
  .pgd-galop-hero,
  .pgd-galop-runner {
    grid-template-columns: 1fr;
  }

  .pgd-galop-hipselect,
  .pgd-galop-racenav {
    min-height: 48px;
  }

  .pgd-galop-hero {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
    border-radius: 12px;
  }

  .pgd-galop-racebadge {
    width: 110px;
    height: 58px;
    min-height: 58px;
    border-radius: 10px;
    grid-template-columns: 38px minmax(0, 1fr);
    justify-items: start;
    column-gap: 6px;
    padding: 0 8px;
  }

  .pgd-galop-racebadge strong {
    justify-self: start;
    font-size: 29px;
  }

  .pgd-galop-racebadge span {
    font-size: 11px;
    line-height: 1.08;
    white-space: normal;
  }

  .pgd-galop-title h1 {
    font-size: 20px;
    line-height: 1.08;
  }

  .pgd-galop-title p {
    display: none;
  }

  .pgd-galop-chips {
    gap: 5px;
  }

  .pgd-galop-chips span {
    min-height: 25px;
    padding: 0 8px;
    font-size: 11px;
  }

  .pgd-galop-stats {
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 6px;
  }

  .pgd-galop-stats span {
    flex: 1 1 90px;
    min-height: 42px;
    border-radius: 9px;
  }

  .pgd-galop-compare {
    border-radius: 12px;
    padding: 8px;
  }

  .pgd-galop-graphics-head {
    display: grid;
    gap: 4px;
    padding: 4px 2px 0;
  }

  .pgd-galop-graphics-head h2 {
    font-size: 18px;
    line-height: 1.1;
  }

  .pgd-galop-graphics-head > strong {
    font-size: 10px;
  }

  .pgd-galop-read-cards {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .pgd-galop-read-card {
    min-height: 44px;
    padding: 8px 10px;
  }

  .pgd-galop-race-sim {
    margin-top: 8px;
    border-radius: 10px;
  }

  .pgd-galop-race-sim-head {
    display: grid;
    gap: 2px;
    padding: 9px 10px 0;
  }

  .pgd-galop-race-sim-head span {
    font-size: 10px;
  }

  .pgd-galop-race-track {
    height: 222px;
    margin: 7px 9px 9px;
    border-radius: 12px;
  }

  .pgd-galop-race-rail {
    left: 12px;
    right: 50px;
  }

  .pgd-galop-race-finish {
    right: 34px;
  }

  .pgd-galop-race-entry {
    width: 250px;
  }

  .pgd-galop-race-entry.is-rank-1 { --lane-y: 24px !important; }
  .pgd-galop-race-entry.is-rank-2 { --lane-y: 86px !important; }
  .pgd-galop-race-entry.is-rank-3 { --lane-y: 146px !important; }

  .pgd-galop-race-rank {
    right: 92px;
    top: 18px;
  }

  .pgd-galop-race-tag {
    right: 122px;
    top: 8px;
    width: 104px;
    min-height: 38px;
    padding: 5px 7px;
  }

  .pgd-galop-race-tag b {
    font-size: 10px;
  }

  .pgd-galop-race-horse {
    right: -3px;
    top: -2px;
    width: 100px;
    height: 58px;
  }

  .pgd-galop-race-horse {
    transform: scale(0.94);
    transform-origin: right bottom;
  }

  .pgd-galop-track-help,
  .pgd-galop-metric-key {
    gap: 5px;
    padding: 8px 9px 0;
  }

  .pgd-galop-track-help span,
  .pgd-galop-metric-key span {
    min-height: 22px;
    padding: 0 7px;
    font-size: 9px;
  }

  .pgd-galop-track-note {
    margin: 7px 9px 0;
    padding: 7px 8px;
    font-size: 10px;
  }

  .pgd-galop-visual-key {
    gap: 5px;
    padding: 8px 9px 0;
  }

  .pgd-galop-visual-key span {
    min-height: 24px;
    padding: 0 7px;
    font-size: 9px;
  }

  .pgd-galop-visual-key .is-high i {
    width: 16px;
    height: 16px;
  }

  .pgd-galop-mobile-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin: 8px 0;
    padding: 4px;
    border: 1px solid #eadcc8;
    border-radius: 10px;
    background: #fffaf2;
  }

  .pgd-galop-mobile-tabs button {
    min-height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6f5a42;
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
  }

  .pgd-galop-mobile-tabs button.is-active {
    background: #f4a000;
    color: #fff;
    box-shadow: 0 5px 14px rgba(244, 160, 0, 0.22);
  }

  .pgd-galop-compare-grid {
    display: block;
  }

  .pgd-galop-compare .pgd-galop-mobile-panel {
    display: none;
  }

  .pgd-galop-compare .pgd-galop-mobile-panel.is-active {
    display: block;
  }

  .pgd-galop-compare .pgd-galop-rankbar.pgd-galop-mobile-panel.is-active {
    display: grid;
  }

  .pgd-galop-graphic-grid {
    grid-template-columns: 1fr;
  }

  .pgd-galop-flowpanel,
  .pgd-galop-profilepanel,
  .pgd-galop-trackpanel,
  .pgd-galop-heatpanel {
    border-radius: 10px;
  }

  .pgd-galop-flowpanel {
    border-radius: 0;
    background: transparent;
  }

  .pgd-galop-panel-head {
    display: grid;
    gap: 2px;
    padding: 9px 10px;
  }

  .pgd-galop-panel-head span {
    font-size: 10px;
  }

  .pgd-galop-phase-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0;
  }

  .pgd-galop-phase-card {
    padding: 10px;
  }

  .pgd-galop-flow-story {
    grid-template-columns: 1fr;
    margin: 10px 0 12px;
    padding: 9px 10px;
  }

  .pgd-galop-flow-summary {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 8px 9px 0;
  }

  .pgd-galop-flow-summary span {
    min-height: 42px;
    padding: 7px 9px;
  }

  .pgd-galop-flow-map {
    padding: 8px 8px 6px;
  }

  .pgd-galop-flow-map svg {
    min-width: 660px;
  }

  .pgd-galop-flow-legend {
    padding: 0 9px 9px;
  }

  .pgd-galop-flow-legend strong {
    width: 100%;
    margin-left: 0;
  }

  .pgd-galop-selected-card {
    gap: 10px;
    padding: 9px;
  }

  .pgd-galop-selected-head {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px;
  }

  .pgd-galop-selected-head > span {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 15px;
  }

  .pgd-galop-selected-head strong {
    font-size: 13px;
  }

  .pgd-galop-selected-head em b {
    font-size: 20px;
  }

  .pgd-galop-segment-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-radius: 14px;
    padding: 7px;
  }

  .pgd-galop-segment {
    min-height: 54px;
    border-radius: 12px;
  }

  .pgd-galop-profile-scale {
    gap: 5px;
  }

  .pgd-galop-profile-scale span {
    min-height: 24px;
    padding: 0 7px;
    font-size: 9px;
  }

  .pgd-galop-trackmap {
    min-height: 252px;
    margin: 9px;
    border-radius: 126px;
  }

  .pgd-galop-trackmap-label--start {
    left: 9px;
    top: 50%;
    transform: translateY(calc(-50% - 30px));
  }

  .pgd-galop-trackmap-center {
    width: 104px;
    height: 58px;
    border-radius: 15px;
    transform: translate(-50%, -124%);
  }

  .pgd-galop-trackmap-center strong {
    font-size: 11px;
  }

  .pgd-galop-trackmap-center span {
    font-size: 9px;
  }

  .pgd-galop-trackmap-finish {
    right: 10px;
    min-width: 42px;
    min-height: 24px;
    font-size: 10px;
    transform: translateY(calc(-50% - 30px));
  }

  .pgd-galop-track-dot::after {
    max-width: 150px;
  }

  .pgd-galop-track-dot.is-selected {
    border-color: #14100b;
    box-shadow: 0 0 0 3px rgba(244, 160, 0, 0.28), 0 8px 18px rgba(63, 43, 19, 0.2);
  }

  .pgd-galop-track-readout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 9px 9px;
    padding: 9px 10px;
    border: 1px solid #eadcc8;
    border-radius: 9px;
    background: #fff8eb;
  }

  .pgd-galop-track-readout strong {
    min-width: 0;
    overflow: hidden;
    color: #14100b;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pgd-galop-track-readout span {
    flex: 0 0 auto;
    color: #7b6247;
    font-size: 11px;
    font-weight: 900;
  }

  .pgd-galop-heatmap {
    overflow: visible;
    padding: 8px;
  }

  .pgd-galop-heathead {
    display: none;
  }

  .pgd-galop-heatrow {
    min-width: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 8px;
    padding: 7px;
    border: 1px solid #eadcc8;
    border-radius: 10px;
    background: #fffdfa;
  }

  .pgd-galop-heatname {
    grid-column: 1 / -1;
    min-height: 36px;
    border-radius: 8px;
    background: #fff8eb;
  }

  .pgd-galop-heatcell {
    min-height: 44px;
    border-radius: 8px;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
  }

  .pgd-galop-heatcell::before {
    content: attr(data-metric-label);
    color: rgba(47, 31, 12, 0.68);
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
  }

  .pgd-galop-rankbar {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 0;
  }

  .pgd-galop-rankitem {
    border-radius: 10px;
    min-height: 48px;
    padding: 8px 10px;
  }

  .pgd-galop-detail-body {
    padding: 12px;
  }

  .pgd-galop-detail-hero,
  .pgd-galop-detail-grid {
    grid-template-columns: 1fr;
  }

  .pgd-galop-detail-source,
  .pgd-galop-detail-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .pgd-galop-runner-chart {
    grid-template-columns: 58px minmax(0, 1fr);
    padding-top: 4px;
  }

  .pgd-galop-list {
    gap: 8px;
  }

  .pgd-galop-runner {
    gap: 9px;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 5px 14px rgba(63, 43, 19, 0.06);
  }

  .pgd-galop-runner-main {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .pgd-galop-start {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 18px;
  }

  .pgd-galop-runner-title a,
  .pgd-galop-runner-title strong {
    font-size: 15px;
  }

  .pgd-galop-runner-title small {
    font-size: 11px;
    white-space: normal;
  }

  .pgd-galop-score {
    width: 54px;
    height: 54px;
    border-radius: 12px;
  }

  .pgd-galop-runner-chart .pgd-galop-spark {
    height: 44px;
  }

  .pgd-galop-mini-metrics {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .pgd-galop-mini-metrics span {
    justify-content: center;
    min-width: 0;
    padding: 6px 5px;
    text-align: center;
  }

  .pgd-galop-workout {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 5px 8px;
    min-height: 0;
    margin: 5px 0 0;
    padding: 7px;
    border: 1px solid #f0e6d8;
    border-radius: 10px;
    background: #fffaf2;
  }

  .pgd-galop-workout > div {
    grid-column: 1;
    grid-row: 1;
    gap: 6px;
  }

  .pgd-galop-workout > div strong {
    font-size: 13px;
  }

  .pgd-galop-workout p {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    white-space: nowrap;
  }

  .pgd-galop-workout small {
    grid-column: 2;
    grid-row: 2;
    max-width: 148px;
    text-align: right;
    white-space: nowrap;
  }

  .pgd-galop-workout nav {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    min-width: 0;
    gap: 5px;
  }

  .pgd-galop-workout nav a,
  .pgd-galop-workout nav button {
    min-width: 48px;
    min-height: 32px;
    padding: 0 8px;
    font-size: 10px;
  }
}

/* Galoplar mobile navigation uses the same date / hipodrom / race rhythm as Yarislar. */
@media (max-width: 900px) {
  

  .pgd-galoplar-page .pgd-galop-programbar {
    display: block !important;
    margin: 0 0 4px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    box-shadow: none;
    overflow: visible !important;
  }

  .pgd-galoplar-page .pgd-mobile-date-nav {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) 46px auto !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(74, 49, 16, 0.12) !important;
    border-radius: 8px !important;
    background: #fffaf2 !important;
    overflow: hidden !important;
  }

  .pgd-galoplar-page .pgd-mobile-date-step,
  .pgd-galoplar-page .pgd-mobile-date-picker-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 46px !important;
    height: auto !important;
    min-height: 52px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #8e5a09 !important;
    box-shadow: none;
  }

  .pgd-galoplar-page .pgd-mobile-date-current {
    display: flex !important;
    min-width: 0 !important;
    min-height: 52px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    padding: 7px 8px !important;
    border-left: 1px solid rgba(74, 49, 16, 0.08) !important;
    border-right: 1px solid rgba(74, 49, 16, 0.08) !important;
  }

  .pgd-galoplar-page .pgd-mobile-date-value {
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
    color: #201407 !important;
  }

  .pgd-galoplar-page .pgd-mobile-date-helper {
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    color: #7b633f !important;
  }

  .pgd-galoplar-page .pgd-galop-mobile-controls {
    display: grid !important;
    gap: 4px !important;
    padding: 0 0 4px !important;
  }

  .pgd-galoplar-page .pgd-galop-mobile-hip-picker,
  .pgd-galoplar-page .pgd-galop-mobile-race-tabs {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none;
  }

  .pgd-galoplar-page .pgd-galop-mobile-race-tabs > .pgd-kt-wrap,
  .pgd-galoplar-page .pgd-galop-mobile-race-tabs > .pgd-kt-wrap-mobile-only {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none;
    overflow: visible !important;
  }

  .pgd-galoplar-page .pgd-galop-mobile-race-tabs .pgd-kt-tabs.btabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 0 0 2px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
  }

  .pgd-galoplar-page .pgd-galop-mobile-race-tabs .pgd-kt-tabs.btabs::-webkit-scrollbar {
    display: none !important;
  }

  .pgd-galoplar-page .pgd-galop-mobile-race-tabs .pgd-kt-tab.btab {
    flex: 0 0 74px !important;
    width: 74px !important;
    min-width: 74px !important;
    min-height: 56px !important;
    display: grid !important;
    place-items: center !important;
    padding: 8px 8px 7px !important;
    border: 1px solid rgba(214, 190, 156, 0.92) !important;
    border-radius: 9px !important;
    background: rgba(255, 253, 248, 0.98) !important;
    color: #231609 !important;
    text-decoration: none !important;
    box-shadow: none;
  }

  .pgd-galoplar-page .pgd-galop-mobile-race-tabs .pgd-kt-tab.btab.active,
  .pgd-galoplar-page .pgd-galop-mobile-race-tabs .pgd-kt-tab.btab.aktif {
    border-color: #f0a000 !important;
    background: #fff3d7 !important;
  }

  .pgd-galoplar-page .pgd-galop-mobile-race-tabs .pgd-kt-no-row {
    display: grid !important;
    grid-template-areas:
      "no icon"
      "time time" !important;
    grid-template-columns: minmax(0, 1fr) 16px !important;
    gap: 3px 4px !important;
    align-items: start !important;
    justify-items: start !important;
    width: 100% !important;
  }

  .pgd-galoplar-page .pgd-galop-mobile-race-tabs .pgd-kt-no {
    grid-area: no !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: .92 !important;
  }

  .pgd-galoplar-page .pgd-galop-mobile-race-tabs .pgd-kt-saat {
    grid-area: time !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #825d2f !important;
  }

  .pgd-galoplar-page .pgd-galop-mobile-race-tabs .pgd-kt-state-icon {
    grid-area: icon !important;
    justify-self: end !important;
    align-self: start !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    min-width: 16px !important;
    height: 16px !important;
    font-size: 10px !important;
    line-height: 1 !important;
  }
}

/* Galoplar mobile nav must visually match Yarislar: no wrapper frame, same block rhythm. */
@media (max-width: 900px) {
  .pgd-galoplar-page {
    padding: 8px 6px 28px !important;
  }

  .pgd-galoplar-page .pgd-galoplar-shell {
    gap: 4px !important;
  }

  .pgd-galoplar-page .pgd-galop-programbar {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .pgd-galoplar-page .pgd-datebar-desktop-main {
    display: none !important;
  }

  .pgd-galoplar-page .pgd-mobile-date-nav {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) 34px 28px !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    border: 1px solid rgba(74, 49, 16, 0.10) !important;
    border-radius: 8px !important;
    background: #fffdfa !important;
    box-shadow: none !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .pgd-galoplar-page .pgd-mobile-date-step,
  .pgd-galoplar-page .pgd-mobile-date-picker-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #9a6817 !important;
    box-shadow: none !important;
  }

  .pgd-galoplar-page .pgd-mobile-date-step-prev {
    border-right: 1px solid rgba(74, 49, 16, 0.07) !important;
  }

  .pgd-galoplar-page .pgd-mobile-date-step-next,
  .pgd-galoplar-page .pgd-mobile-date-picker-btn {
    border-left: 1px solid rgba(74, 49, 16, 0.07) !important;
  }

  .pgd-galoplar-page .pgd-mobile-date-current {
    display: flex !important;
    min-width: 0 !important;
    min-height: 38px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 0 6px !important;
    border: 0 !important;
    background: transparent !important;
    overflow: hidden !important;
    text-align: center !important;
  }

  .pgd-galoplar-page .pgd-mobile-date-value {
    max-width: 100% !important;
    overflow: hidden !important;
    color: #201407 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .pgd-galoplar-page .pgd-mobile-date-helper {
    display: none !important;
  }

  .pgd-galoplar-page .pgd-mobile-date-caldock {
    display: flex !important;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .pgd-galoplar-page .pgd-mobile-date-picker-btn i {
    font-size: 13px !important;
    line-height: 1 !important;
  }

  .pgd-galoplar-page .pgd-galop-mobile-controls {
    display: grid !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .pgd-galoplar-page .pgd-galop-mobile-controls::before,
  .pgd-galoplar-page .pgd-galop-mobile-controls::after,
  .pgd-galoplar-page .pgd-galop-mobile-hip-picker::before,
  .pgd-galoplar-page .pgd-galop-mobile-hip-picker::after,
  .pgd-galoplar-page .pgd-galop-mobile-race-tabs::before,
  .pgd-galoplar-page .pgd-galop-mobile-race-tabs::after {
    content: none !important;
    display: none !important;
  }

  .pgd-galoplar-page .pgd-galop-mobile-hip-picker,
  .pgd-galoplar-page .pgd-galop-mobile-race-tabs,
  .pgd-galoplar-page .pgd-galop-mobile-hip-picker .pgd-program-hip-mobile-picker,
  .pgd-galoplar-page .pgd-galop-mobile-race-tabs > .pgd-kt-wrap,
  .pgd-galoplar-page .pgd-galop-mobile-race-tabs > .pgd-kt-wrap-mobile-only {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .pgd-galoplar-page .pgd-galop-mobile-hip-picker .pgd-program-hip-mobile-trigger {
    min-height: 38px !important;
    padding: 8px 11px !important;
    border-radius: 8px !important;
  }

  .pgd-galoplar-page .pgd-galop-mobile-race-tabs .pgd-kt-tabs.btabs {
    gap: 6px !important;
    padding: 0 0 2px !important;
  }

  .pgd-galoplar-page .pgd-galop-mobile-race-tabs .pgd-kt-tab.btab {
    flex-basis: 62px !important;
    width: 62px !important;
    min-width: 62px !important;
    min-height: 52px !important;
    padding: 7px 8px 6px !important;
    border-radius: 8px !important;
  }
}

/* Galoplar compact pass: keep the same data, reduce vertical bulk. */
.pgd-galoplar-page {
  padding-top: 10px !important;
}

.pgd-galoplar-shell {
  gap: 8px !important;
}

.pgd-galop-hero {
  grid-template-columns: 82px minmax(0, 1fr) auto !important;
  gap: 10px !important;
  padding: 7px 10px !important;
  border-radius: 8px !important;
}

.pgd-galop-racebadge {
  width: 82px !important;
  height: 46px !important;
  min-height: 46px !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  gap: 5px !important;
  padding: 0 7px !important;
  border-radius: 8px !important;
}

.pgd-galop-racebadge strong {
  font-size: 24px !important;
}

.pgd-galop-racebadge span {
  font-size: 10px !important;
  line-height: 1.05 !important;
}

.pgd-galop-title p {
  margin-bottom: 1px !important;
  font-size: 11px !important;
}

.pgd-galop-title h1 {
  font-size: 20px !important;
  line-height: 1.05 !important;
}

.pgd-galop-title em {
  margin-top: 3px !important;
  font-size: 11px !important;
}

.pgd-galop-chips {
  align-items: center !important;
  gap: 4px !important;
  margin-top: 4px !important;
}

.pgd-galop-chips span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 21px !important;
  padding: 0 7px !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

.pgd-galop-stats {
  gap: 5px !important;
}

.pgd-galop-stats span {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 5px !important;
  min-width: 0 !important;
  min-height: 30px !important;
  padding: 5px 8px !important;
  border-radius: 7px !important;
  font-size: 10px !important;
  white-space: nowrap !important;
}

.pgd-galop-stats strong {
  display: inline !important;
  font-size: 16px !important;
}

.pgd-galop-graphics-head {
  gap: 8px !important;
  padding: 2px 1px 0 !important;
}

.pgd-galop-graphics-head h2 {
  font-size: 16px !important;
  line-height: 1.1 !important;
}

.pgd-galop-graphics-head span,
.pgd-galop-graphics-head > strong {
  font-size: 11px !important;
}

.pgd-galop-read-cards {
  gap: 6px !important;
}

.pgd-galop-read-card {
  min-height: 38px !important;
  padding: 6px 9px !important;
  border-left-width: 3px !important;
  border-radius: 7px !important;
}

.pgd-galop-read-card span {
  font-size: 9px !important;
}

.pgd-galop-read-card strong {
  font-size: 12px !important;
}

.pgd-galop-read-card em {
  font-size: 13px !important;
}

.pgd-galop-race-sim {
  margin-top: 6px !important;
  border-radius: 8px !important;
}

.pgd-galop-race-sim-head {
  padding: 7px 10px 0 !important;
}

.pgd-galop-race-sim-head strong {
  font-size: 13px !important;
}

.pgd-galop-race-sim-head span {
  font-size: 10px !important;
}

.pgd-galop-race-track {
  height: 156px !important;
  margin: 5px 10px 10px !important;
  border-radius: 10px !important;
}

.pgd-galop-race-track::before {
  bottom: 16px !important;
  height: 30px !important;
}

.pgd-galop-race-rail.is-top {
  top: 30px !important;
}

.pgd-galop-race-rail.is-bottom {
  bottom: 28px !important;
}

.pgd-galop-race-finish {
  top: 20px !important;
  bottom: 22px !important;
}

.pgd-galop-race-entry {
  height: 48px !important;
  width: 270px !important;
}

.pgd-galop-race-horse {
  top: -3px !important;
  width: 100px !important;
  height: 54px !important;
}

.pgd-galop-race-entry.is-rank-1 { --lane-y: 14px !important; }
.pgd-galop-race-entry.is-rank-2 { --lane-y: 56px !important; }
.pgd-galop-race-entry.is-rank-3 { --lane-y: 98px !important; }

.pgd-galop-race-rank {
  top: 12px !important;
  right: 92px !important;
  width: 22px !important;
  height: 22px !important;
  font-size: 11px !important;
}

.pgd-galop-race-tag {
  right: 120px !important;
  top: 4px !important;
  width: 128px !important;
  min-height: 34px !important;
  padding: 5px 7px !important;
  border-radius: 7px !important;
}

.pgd-galop-race-tag b {
  font-size: 10px !important;
}

.pgd-galop-race-tag small {
  font-size: 9px !important;
}

@media (max-width: 760px) {
  .pgd-galop-hero {
    grid-template-columns: 78px minmax(0, 1fr) !important;
    gap: 7px !important;
    padding: 7px !important;
    border-radius: 9px !important;
  }

  .pgd-galop-racebadge {
    width: 78px !important;
    height: 42px !important;
    min-height: 42px !important;
    grid-template-columns: 26px minmax(0, 1fr) !important;
    padding: 0 6px !important;
  }

  .pgd-galop-racebadge strong {
    font-size: 22px !important;
  }

  .pgd-galop-racebadge span {
    font-size: 9px !important;
  }

  .pgd-galop-title h1 {
    font-size: 17px !important;
  }

  .pgd-galop-stats {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .pgd-galop-stats span {
    justify-content: center !important;
    min-height: 28px !important;
    padding: 4px 6px !important;
  }

  .pgd-galop-read-cards {
    grid-template-columns: 1fr !important;
  }

  .pgd-galop-race-track {
    height: 152px !important;
    margin: 5px 8px 8px !important;
  }

  .pgd-galop-race-entry {
    width: 228px !important;
  }

  .pgd-galop-race-horse {
    width: 88px !important;
    height: 50px !important;
  }

  .pgd-galop-race-entry.is-rank-1 { --lane-y: 14px !important; }
  .pgd-galop-race-entry.is-rank-2 { --lane-y: 55px !important; }
  .pgd-galop-race-entry.is-rank-3 { --lane-y: 96px !important; }

  .pgd-galop-race-rank {
    right: 80px !important;
  }

  .pgd-galop-race-tag {
    right: 108px !important;
    width: 96px !important;
  }
}

.pgd-galop-race-layout {
  display: grid !important;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: stretch !important;
  padding: 6px 10px 10px !important;
}

.pgd-galop-race-ranks {
  display: grid !important;
  align-content: center !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.pgd-galop-race-ranks li {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 42px !important;
  padding: 6px 8px !important;
  border: 1px solid #eadcc8 !important;
  border-radius: 8px !important;
  background: #fffaf2 !important;
}

.pgd-galop-race-ranks li:first-child {
  border-color: rgba(244, 160, 0, 0.45) !important;
  background: #fff3d7 !important;
}

.pgd-galop-race-ranks-no {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 999px !important;
  background: #f4a000 !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.pgd-galop-race-ranks-copy {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
}

.pgd-galop-race-ranks-copy strong,
.pgd-galop-race-ranks-copy small {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.pgd-galop-race-ranks-copy strong {
  color: #14100b !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.pgd-galop-race-ranks-copy small {
  color: #147247 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
}

.pgd-galop-race-layout .pgd-galop-race-track {
  height: 150px !important;
  margin: 0 !important;
}

.pgd-galop-race-layout .pgd-galop-race-entry {
  width: 118px !important;
}

.pgd-galop-race-layout .pgd-galop-race-rank,
.pgd-galop-race-layout .pgd-galop-race-tag {
  display: none !important;
}

.pgd-galop-race-layout .pgd-galop-race-horse {
  right: 0 !important;
}

@media (max-width: 760px) {
  .pgd-galop-race-layout {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    padding: 6px 8px 8px !important;
  }

  .pgd-galop-race-ranks {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  .pgd-galop-race-ranks li {
    grid-template-columns: 28px minmax(0, 1fr) !important;
    gap: 6px !important;
    min-height: 38px !important;
    padding: 5px 6px !important;
  }

  .pgd-galop-race-ranks-no {
    width: 26px !important;
    height: 26px !important;
    font-size: 13px !important;
  }

  .pgd-galop-race-ranks-copy strong {
    font-size: 10px !important;
  }

  .pgd-galop-race-ranks-copy small {
    font-size: 9px !important;
  }

  .pgd-galop-race-layout .pgd-galop-race-track {
    height: 142px !important;
  }

  .pgd-galop-race-layout .pgd-galop-race-entry {
    width: 104px !important;
  }
}

/* Compact calendar panel for galop date navigation. */
@media (min-width: 901px) {
  .pgd-galoplar-page .pgd-galop-programbar {
    min-height: 48px !important;
  }

  .pgd-galoplar-page .pgd-datebar-desktop-dategroup {
    min-height: 48px !important;
  }

  .pgd-galoplar-page .pgd-galop-dateform {
    flex: 0 0 34px !important;
    width: 34px !important;
    min-width: 34px !important;
  }

  .pgd-galoplar-page .pgd-galop-dateform .pgd-datebar-calbtn,
  .pgd-galoplar-page .pgd-datebar-quicknav-btn {
    width: 34px !important;
    min-width: 34px !important;
    min-height: 48px !important;
    font-size: 14px !important;
  }

  .pgd-galoplar-page .pgd-galop-dateform .pgd-datebar-calbtn {
    border-radius: 8px 0 0 8px !important;
  }

  .pgd-galoplar-page .pgd-datebar-labelbox {
    width: 96px !important;
    min-width: 96px !important;
    min-height: 48px !important;
    padding: 5px 8px !important;
  }

  .pgd-galoplar-page .pgd-datebar-current {
    font-size: 13px !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
  }

  .pgd-galoplar-page .pgd-datebar-helper {
    margin-top: 1px !important;
    font-size: 9.5px !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
  }

  .pgd-galoplar-page .pgd-datebar-quicknav {
    min-width: 100px !important;
    border-radius: 0 8px 8px 0 !important;
  }

  .pgd-galoplar-page .pgd-datebar-quicknav-current strong {
    font-size: 17px !important;
    line-height: 1 !important;
  }

  .pgd-galoplar-page .pgd-datebar-caldock-desktop .pgd-date-panel,
  .pgd-galoplar-page .pgd-galop-dateform .pgd-date-panel {
    top: calc(100% + 8px) !important;
    width: min(360px, calc(100vw - 40px)) !important;
    max-width: min(360px, calc(100vw - 40px)) !important;
    max-height: min(82vh, 460px) !important;
    padding: 12px !important;
    border-top-width: 2px !important;
    border-radius: 8px !important;
    overflow-y: auto !important;
  }
}

.pgd-galoplar-page .pgd-date-panel-head {
  grid-template-columns: 32px 1fr 32px !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
}

.pgd-galoplar-page .pgd-date-panel-titlebox {
  gap: 2px !important;
}

.pgd-galoplar-page .pgd-date-panel-kicker {
  font-size: 9.5px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.pgd-galoplar-page .pgd-date-panel-title {
  font-size: 20px !important;
  line-height: 1.05 !important;
}

.pgd-galoplar-page .pgd-date-panel-nav {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
}

.pgd-galoplar-page .pgd-date-panel-weekdays,
.pgd-galoplar-page .pgd-date-panel-grid {
  gap: 4px !important;
}

.pgd-galoplar-page .pgd-date-panel-weekdays {
  margin-bottom: 6px !important;
}

.pgd-galoplar-page .pgd-date-panel-weekdays span {
  min-height: 20px !important;
  font-size: 10.5px !important;
  line-height: 1 !important;
}

.pgd-galoplar-page .pgd-date-day,
.pgd-galoplar-page .pgd-date-panel-grid button {
  min-height: 34px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

.pgd-galoplar-page .pgd-date-panel-foot {
  gap: 8px !important;
  margin-top: 10px !important;
}

.pgd-galoplar-page .pgd-date-panel-action {
  min-height: 32px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

@media (max-width: 900px) {
  .pgd-galoplar-page .pgd-mobile-date-caldock .pgd-date-panel.open {
    position: fixed !important;
    inset: auto !important;
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: min(336px, calc(100vw - 16px)) !important;
    max-width: min(336px, calc(100vw - 16px)) !important;
    max-height: min(78vh, 430px) !important;
    padding: 10px !important;
    border-top-width: 2px !important;
    border-radius: 8px !important;
    transform: translate(-50%, -50%) !important;
    overflow-y: auto !important;
  }

  .pgd-galoplar-page .pgd-mobile-date-caldock .pgd-date-panel-head {
    grid-template-columns: 28px 1fr 28px !important;
    gap: 6px !important;
    margin-bottom: 7px !important;
    padding-bottom: 6px !important;
  }

  .pgd-galoplar-page .pgd-mobile-date-caldock .pgd-date-panel-title {
    font-size: 13px !important;
    line-height: 1.1 !important;
  }

  .pgd-galoplar-page .pgd-mobile-date-caldock .pgd-date-panel-nav {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
  }

  .pgd-galoplar-page .pgd-mobile-date-caldock .pgd-date-panel-weekdays {
    gap: 3px !important;
    margin: 4px 0 5px !important;
  }

  .pgd-galoplar-page .pgd-mobile-date-caldock .pgd-date-panel-weekdays span {
    min-height: 17px !important;
    font-size: 9px !important;
  }

  .pgd-galoplar-page .pgd-mobile-date-caldock .pgd-date-panel-grid {
    gap: 3px !important;
    margin-top: 4px !important;
  }

  .pgd-galoplar-page .pgd-mobile-date-caldock .pgd-date-day,
  .pgd-galoplar-page .pgd-mobile-date-caldock .pgd-date-panel-grid button {
    min-height: 29px !important;
    border-radius: 7px !important;
    font-size: 11px !important;
  }

  .pgd-galoplar-page .pgd-mobile-date-caldock .pgd-date-panel-foot {
    gap: 6px !important;
    margin-top: 7px !important;
    padding-top: 7px !important;
  }

  .pgd-galoplar-page .pgd-mobile-date-caldock .pgd-date-panel-action {
    min-height: 30px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
  }
}

/* Only requested addition: equal-width 600 / 800 / 1000 columns. */
.pgd-galop-heatrow {
  grid-template-columns: minmax(210px, 1.6fr) repeat(10, minmax(58px, 0.52fr));
  min-width: 940px;
}

.pgd-galop-heat-time.is-best {
  border-color: #a9d8bd;
  background: #eaf7ef;
}

@media (max-width: 760px) {
  .pgd-galop-heatrow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-width: 0;
  }

  .pgd-galop-rankitem {
    padding-left: 42px;
    padding-right: 44px;
  }
}
