/* Page-specific styles; shared header, footer, tables and buttons stay in the site stylesheets. */

/* Base components */

.odds-page .tools { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.odds-page .tools input { flex: 1; min-width: 210px; width: auto; }
.odds-finder-results { position: absolute; top: calc(100% - 12px); left: 20px; right: 20px; z-index: 20; max-height: 350px; overflow: auto; background: white; border: 1px solid #c9d1df; border-radius: 8px; box-shadow: 0 8px 25px #071c8026; }
.odds-finder-results a { display: flex; justify-content: space-between; gap: 12px; padding: 14px; color: #111d4a; text-decoration: none; border-bottom: 1px solid #e2e7f0; }
.odds-finder-results a:hover { background: #e9eefb; outline: 2px solid var(--brand-blue); outline-offset: -2px; }
.odds-finder-results a:focus-visible { background: #e9eefb; outline: 2px solid var(--brand-blue); outline-offset: -2px; }
.odds-finder-results small { display: block; margin-top: 5px; color: #617088; }
.odds-finder-results p { padding: 0 14px; }
.odds-section { margin: 26px 0 30px; }
.odds-section-content { padding: 20px; background: white; border: 1px solid #d9deea; border-radius: 16px; box-shadow: 0 3px 12px #111d4a12; }
.odds-headline { padding: 20px; border: 1px solid #d9deea; border-radius: 16px; box-shadow: 0 3px 12px #111d4a12; background: #ffd700; border-color: #d5a822; }
.odds-section h2 { font: 400 26px/1.3 var(--show-font); color: var(--brand-deep); margin: 0 0 12px; letter-spacing: .025em; text-transform: uppercase; }
.odds-headline h2 { color: #1536b8; font-size: 32px; margin-bottom: 18px; }
.odds-caption { display: block; font: 800 11px/1.2 Arial,sans-serif; text-transform: uppercase; margin: 3px 0 0; }
.odds-ranking-table .r-art { width: 8%; padding-left: 10px; }
.odds-ranking-table .r-watch { width: 38%; }
.odds-ranking-table .r-overall { width: 130px; padding-right: 15px; text-align: left; }
.odds-ranking-table .r-overall .r-number { display: inline-block; white-space: normal; }
.odds-message { padding: 20px; background: white; border: 1px solid #d5ddea; border-radius: 12px; line-height: 1.5; }
.odds-section-intro { font-size: 14px; line-height: 1.6; color: #536080; margin: -6px 0 20px; }
.odds-name-line { display: block; min-width: 0; }
.odds-name-line h3 { display: inline; min-width: 0; }
.odds-rank { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 44px; height: 40px; padding: 4px; border-radius: 6px; font-family: Arial,sans-serif; line-height: 1.1; color: white; }
.odds-rank strong { font-size: 18px; font-weight: 800; }
.odds-rank-unknown { background: #68758a; }
.odds-data-note { font-size: 12px; color: #536080; line-height: 1.5; margin: 16px 0 0; }
.odds-ranking-table .r-rank { width: 6%; padding-left: 15px; padding-right: 0; }
.odds-ranking-table .r-artwork { max-width: 80px; }
.odds-ranking-table .r-name { width: 34%; }
.odds-reference-table .r-name { width: 40%; }
.odds-ranking-table .r-overall .odds-awaiting { display: inline-block; width: 95px; max-width: 100%; font-size: 13px; font-weight: 500; line-height: 1.3; white-space: normal; text-align: left; }
.odds-name-rank { display: none; }

@media(min-width:851px) {
  .odds-ranking-table .r-watch { padding-left: 10px; padding-right: 10px; }
  .odds-ranking-table .r-watch .watch { width: var(--odds-watch-width, 185px); max-width: 100%; margin-inline: auto; transform: translateX(var(--watch-shift,0px)); }
  .odds-ranking-table .r-name .r-price { margin-right: 7px; }
}

@media(max-width:850px) {
  .odds-page .container { padding: 0 16px; }
  .odds-section h2 { font-size: 23px; }
  .odds-headline h2 { color: #1536b8; font-size: 28px; }
  .odds-ranking-table tbody { display: block; }
  .odds-ranking-table .remaining-row { display: grid; padding: 15px; border-radius: 0; box-shadow: none; border: 0; border-top: 1px solid #e2e7f0; background: #eef2f9; align-items: start; gap: 10px 12px; grid-template-columns: 106px minmax(0,1fr); }
  .odds-ranking-table .r-rank { grid-column: 1; grid-row: 1; padding: 0; margin: 0; display: none; }
  .odds-ranking-table .r-art { padding: 0; line-height: normal; grid-column: 1; grid-row: 1/4; align-self: start; position: relative; }
  .odds-ranking-table .r-artwork { max-width: none; margin: 0; border-radius: 5px; width: 106px; }
  .odds-ranking-table .r-name { padding: 0; margin: 0; min-height: 0; grid-column: 2; grid-row: 1; align-self: start; }
  .odds-ranking-table .r-name h3 { font-size: 18px; line-height: 1.3; }
  .odds-ranking-table .r-watch { padding: 0; margin: 0; width: 100px; grid-column: 2; grid-row: 3; }
  .odds-ranking-table .watch { width: 100px; max-width: 100%; min-height: 43px; border-radius: 12px; padding: 8px; }
  .odds-ranking-table .watch-artwork { width: 185px; }
  .odds-ranking-table .r-overall { display: block; text-align: left; padding: 0; grid-column: 2; grid-row: 2; }
  .odds-ranking-table .r-overall .r-label { font-size: 10px; margin: 0 0 3px; }
  .odds-ranking-table .r-number { font-size: 17px; }
  .odds-ranking-table .r-price { position: static; display: inline-flex; font-size: 12px; padding: 0 4px; margin: 0; height: 18px; align-items: center; }
  .odds-reference-table .remaining-row { grid-template-columns: 106px minmax(0,1fr); }
  .odds-reference-table .r-art { grid-column: 1; }
  .odds-reference-table .r-name { grid-column: 2; }
  .odds-reference-table .r-watch { grid-column: 2; grid-row: 3; }
  .odds-reference-table .r-overall { grid-column: 2; }
  .odds-ranking-table .remaining-row:first-child { border-top: 0; }
  .odds-name-rank { flex: none; vertical-align: top; display: flex; width: max-content; margin: 0 0 7px; }
  .odds-name-rank .odds-rank { width: 32px; height: 28px; padding: 3px; }
  .odds-name-rank .odds-rank strong { font-size: 15px; }
  .odds-name-line h3 { white-space: normal; overflow-wrap: anywhere; }
  .odds-leaderboard .odds-name-line { display: flex; align-items: flex-start; gap: 5px; }
  .odds-leaderboard .r-price { flex: none; display: inline-flex; margin: 0 5px 0 0; vertical-align: baseline; }
  .odds-leaderboard .odds-name-line h3 { flex: 1; min-width: 0; }
  .odds-ranking-table .odds-name-line { display: block; text-align: left; }
  .odds-ranking-table .odds-name-line h3 { display: inline; white-space: normal; }
  .odds-leaderboard .odds-name-rank { display: flex; margin: 0 0 7px; }
  .odds-headline .odds-name-rank { display: inline-flex; margin: 0; flex: none; }
  .odds-leaderboard .remaining-table-wrap { border-radius: 16px; overflow: hidden; border: 1px solid #d9deea; }
  .odds-exhausted .remaining-table-wrap { border-radius: 16px; overflow: hidden; border: 1px solid #d9deea; }
}

@media(max-width:550px) {

  .odds-section-content { padding: 16px; }
  .odds-headline { padding: 16px; }
  .odds-headline h2 { color: #1536b8; font-size: 27px; }
  .odds-page .tools { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.95fr); gap: 10px; padding: 16px; }
  .odds-page .tools #game-finder { grid-column: 1; width: 100%; min-width: 0; }
  .odds-page .tools #price { grid-column: 2; }
  .odds-page .tools #sort { grid-column: 1/-1; }
  .odds-ranking-table .remaining-row { padding: 14px 10px; }
  .odds-ranking-table .r-name h3 { font-size: 16px; }
  .odds-ranking-table .odds-rank { width: 38px; height: 32.44px; }
  .odds-rank strong { font-size: 16px; }
  .odds-ranking-table .r-watch { width: 96px; }
  .odds-ranking-table .watch { width: 96px; max-width: 100%; padding: 6px; min-height: 36px; }
  .odds-name-line { display: block; }
  .odds-name-line h3 { display: inline; }
  .odds-finder-results { left: 16px; right: 16px; }
  .odds-reference-table .remaining-row { grid-template-columns: 106px minmax(0,1fr); }
  .odds-reference-table .r-name { grid-column: 2; }
  .odds-reference-table .r-watch { grid-column: 2; }
  .odds-reference-table .r-overall { grid-column: 2; }
  .odds-name-rank .odds-rank { width: 32px; height: 28px; }
}

.odds-mobile-stats { display: none; }

@media (max-width: 850px) {
  .odds-ranking-table .remaining-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    grid-template-areas: "art info" "art watch";
    align-items: start;
    gap: 14px 12px;
    padding: 18px 12px;
  }

  .odds-ranking-table .remaining-row > :is(.r-rank, .r-overall) { display: none; }
  .odds-ranking-table .remaining-row > .r-art { grid-area: art; }

  .odds-ranking-table .remaining-row > .r-name { grid-area: info; }

  .odds-ranking-table .remaining-row > .r-watch {
    grid-area: watch;
    width: 100%;
    margin-top: 6px;
  }

  .odds-ranking-table .r-artwork { width: 100%; border-radius: 8px; }

  .odds-ranking-table .r-watch .watch {
    width: 100%;
    min-height: 38px;
    padding: 6px 8px;
    border-radius: 9px;
  }

  .odds-ranking-table .r-watch .watch-artwork { width: 136px; }

  .odds-mobile-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 8px;
    margin: 14px 0 0;
  }

  .odds-mobile-stats dt { color: #69758a; font-size: 12px; line-height: 1.3; margin-bottom: 3px; }
  .odds-mobile-stats dd { margin: 0; font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
  .odds-mobile-stats .odds-no-prizes { color: #a9233b; }
  .odds-mobile-stats .progress-track { height: 7px; max-width: 131px; margin-top: 7px; }
}

.odds-page .container { width: min(100% - 64px, 1200px); max-width: none; padding-inline: 0; }
.odds-page .odds-stuart-box { padding: 32px; background: var(--brand-deep); border: 1.5px solid #0033ff; box-shadow: 0 2px 7px #10234c29, 0 0 0 1px #10234c14; }
.odds-page .odds-stuart-box > h2 { color: #ffd700; }
.odds-page .odds-stuart-box .odds-stuart { background: transparent; color: white; }
.odds-page :is(.odds-game, .odds-ranking-table) .odds-name-line { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.odds-page .odds-name-line h3 { flex: 1; }
.odds-page .odds-name-line :is(.odds-ticket-price, .r-price) { display: inline-flex; flex: none; align-items: center; height: auto; margin: 0; padding: 5px 7px; border-radius: 6px; background: #e9eeff; color: #1536b8; font: 700 12px/1.25 Arial,sans-serif; }
.odds-page .r-badge { position: static; display: inline-block; margin-top: 7px; max-width: 100%; padding: 5px 7px; font-size: 12px; box-shadow: none; }
@media (max-width: 850px) {
  .odds-page .container { width: calc(100% - 36px); }
  .odds-page .odds-stuart-box { padding: 24px clamp(14px, 4.3vw, 16px); }
}

.odds-ranking-note { margin: 24px 0; font-size: 14px; line-height: 1.5; color: #53617a; }
.odds-ranking-note h2 { margin: 0 0 4px; font-size: 14px; color: inherit; }
.odds-ranking-note p { margin: 0 0 12px; }
.odds-ranking-note .odds-table-tag { display: inline-flex; margin-top: 0; vertical-align: baseline; }
.odds-ranking-table .r-badge { margin-top: 7px; }
@media (min-width: 851px) {
  .odds-page { --odds-art-width: 80px; --odds-rank-size: calc(var(--odds-art-width) * 403 / 646); }
  .odds-ranking-table .remaining-row { height: 96px; }
  .odds-ranking-table td { padding-block: 10px; }
  .odds-ranking-table :is(td,th).r-art { width: 97px; padding-inline: 15px 2px; }
  .odds-ranking-table .r-rank { width: calc(var(--odds-rank-size) + 15px); }
  :is(.odds-ranking-table .r-rank, .odds-section:not(.odds-global-section) .odds-card-stack) > .odds-rank { width: var(--odds-rank-size); height: auto; aspect-ratio: 1; vertical-align: middle; }
  .odds-ranking-table .r-badge { line-height: 14px; margin-top: 5px; }
}

.odds-showcase-grid .game-tile:not(.odds-showcase-best) { background: #fff4ce; }
.odds-ranking-table .odds-row-best,
.odds-showcase-grid .odds-showcase-best { background: #eef8f1; }
.odds-ranking-table .odds-row-worst { background: #fff2f2; }
.odds-table-tag { display: flex; width: max-content; align-items: center; justify-content: center; margin-top: 2px; border-radius: 4px; padding: 4px 7px; color: white; font: 700 .75rem/1.25 Arial,sans-serif; }
.odds-row-best { --odds-highlight: #00843d; }
.odds-row-worst { --odds-highlight: #e51c35; }

@media (min-width: 851px) {
  .odds-ranking-table .r-rank > .odds-rank strong { font-size: 22px; }
}

.odds-table-tag { background: var(--odds-highlight); }
.odds-ranking-table :is(.odds-row-best,.odds-row-worst) :is(.r-overall .r-number,.odds-overall-stat dd) { color: var(--odds-highlight); }

.odds-ranking-table .remaining-row:not(.odds-row-best,.odds-row-worst) { background: white; }

@media (max-width: 850px) {
  .odds-ranking-table .odds-name-line { gap: 7px; flex-wrap: wrap; }
  .odds-ranking-table .odds-name-line > .odds-name-rank { display: inline-flex; margin: 0; }
  .odds-ranking-table .odds-name-rank .odds-rank { border-radius: 6px; }
  .odds-ranking-table .odds-name-line h3 { flex: 0 0 100%; min-width: 0; font-size: 18px; line-height: 1.25; }
  .odds-ranking-table .r-badge { font-size: 12px; padding: 5px 7px; margin-top: 7px; }
  .odds-ranking-table .odds-mobile-stats { display: block; margin-top: 16px; border-top: 1px solid #d9deea; padding-top: 16px; }
  .odds-ranking-table .odds-mobile-stats > :not(.odds-overall-stat) { display: none; }
  .odds-ranking-table .odds-name-rank .odds-rank {
    width: auto; height: auto; min-width: 0; padding: 5px 7px; margin: 0; line-height: 1.25;
  }
  .odds-ranking-table .odds-name-rank .odds-rank strong { font-size: 12px; }
}

.odds-table-tag.only { background: #1536b8; }

@media (max-width: 850px) {
  .odds-section-content:has(> .remaining-table-wrap) { display: contents; }
  .odds-ranking-table .remaining-row {
    grid-template-columns: calc(var(--art-width) + 20px) 20px minmax(0,1fr);
    grid-template-areas: "art . info" "art . watch";
    gap: 20px 0;
    padding: 18px var(--mobile-inset) 20px;
    align-items: start;
  }
  .odds-ranking-table .remaining-row > .r-art { align-self: start; }
  .odds-ranking-table .r-artwork:has(img) { aspect-ratio: 646 / 403; }
  .odds-ranking-table .r-artwork img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
}

.odds-page {
  --odds-search-line: 1.125rem;
  --odds-search-panel-half: calc(20px + 2px + (var(--odds-search-line) + 28px) / 2);
  --odds-search-gap: 33px;
}
.odds-page .hero { padding-bottom: calc(var(--odds-search-gap) + var(--odds-search-panel-half)); }
.odds-page .hero + main { margin-top: calc(-1 * var(--odds-search-panel-half)); }
.odds-page .odds-finder :is(input, select) { line-height: var(--odds-search-line); }
.odds-page .hero .odds-price-shortcuts {
  --home-gold: #ffd700;
  width: min(100%, 940px);
  margin: 40px auto 0;
}
.odds-page .odds-section[id^="price-"] { scroll-margin-top: var(--banner-height, 90px); }
.odds-showcase-grid {
  --home-ink: #111d4a;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.odds-showcase-grid .game-heading { gap: 7px; min-height: calc(2 * 1.06rem * 1.25 + 3px); }
.odds-showcase-grid .odds-rank { width: auto; height: auto; padding: 5px 7px; font-size: .8rem; line-height: normal; }
.odds-showcase-grid .odds-rank strong { font-size: inherit; }
.odds-showcase-grid .game-art > .r-badge { position: absolute; bottom: 8px; left: 8px; margin: 0; z-index: 1; }
.odds-showcase-grid .game-facts dd { overflow-wrap: anywhere; }
@media (min-width: 641px) and (max-width: 1000px) {
  .odds-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .odds-page {
    --odds-search-gap: 32px;
    --odds-search-panel-half: calc(16px + 2px + var(--odds-search-line) + 28px + 5px);
  }
  .odds-page > header, .odds-page .hero { background-size: 950px auto; }
  .odds-page .hero .odds-price-shortcuts { flex-wrap: wrap; margin-top: 30px; }
  .odds-price-shortcuts a { flex: 1 1 0; }
  .odds-shortcut-word { display: none; }
  .odds-page .odds-finder { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr); gap: 10px; padding: 16px; }
  .odds-page .odds-finder #game-finder { grid-column: 1; width: 100%; min-width: 0; }
  .odds-page .odds-finder #price { grid-column: 2; }
  .odds-page .odds-finder #sort { grid-column: 1 / -1; }
  .odds-showcase-grid { grid-template-columns: minmax(0, 1fr); }
  .odds-showcase-grid .game-heading,
  .odds-showcase-grid .game-facts dd { min-height: 0; }
}

.odds-showcase-grid .odds-table-tag.best { background: #00843d; }

@media (min-width: 641px) {
  .odds-showcase-grid .game-facts dd { min-height: 47px; }
}

.odds-page {
  --odds-section-space: 54px;
  --odds-intro-space: 26px;
}
.odds-page #odds-comparisons > .odds-global-section {
  margin-bottom: var(--odds-section-space);
}
.odds-page section.odds-stuart-box:has(> #stuart-heading) {
  margin-block: 0 var(--odds-section-space);
  padding-top: 24px;
}
.odds-page #odds-comparisons > .odds-section[id^="price-"],
.odds-page #odds-comparisons > .odds-exhausted {
  margin: 0;
  padding-block: var(--odds-section-space);
}
.odds-page #odds-comparisons > .odds-stuart-box + .odds-section[id^="price-"] {
  padding-top: 0;
}
.odds-page #odds-comparisons > .odds-section[id^="price-"] + .odds-section[id^="price-"],
.odds-page #odds-comparisons > .odds-exhausted:not(:first-child) {
  border-top: 1px solid #d9deea;
}
.odds-page #odds-comparisons > .odds-exhausted { padding-bottom: 0; }
.odds-page #odds-comparisons .odds-exhausted > h2 { margin-block: 0 7px; }
.odds-page main .odds-stuart-box > #stuart-heading { margin-block: 0 12px; }
.odds-page .odds-exhausted > .odds-section-intro {
  margin: 0 0 var(--odds-intro-space);
  line-height: 1.5;
  color: #344969;
}
@media (max-width: 640px) {
  .odds-page {
    --odds-section-space: 34px;
    --odds-intro-space: 18px;
  }
  .odds-page section.odds-stuart-box:has(> #stuart-heading) { padding-top: 16px; }
}

@media (min-width: 851px) {
  .odds-page .odds-ranking-table .r-watch .watch-artwork { width: 158px; }
}

.odds-page .odds-headline > #global-heading { margin-block: 0 14px; }
@media (max-width: 640px) {
  .odds-page .odds-headline { padding: 18px 16px; }
}

.odds-page .odds-ranking-table .r-badge {
  font-size: 9px;
  line-height: 1.2;
}
.odds-showcase-best .game-facts > div:last-child dd { color: #00843d; }

@media (max-width: 850px) {
  .odds-ranking-table .odds-mobile-stats .odds-overall-stat dd { font-size: 18px; }
}

.odds-ranking-note a { color: #1536b8; text-decoration: none; text-underline-offset: .15em; }
.odds-ranking-note a:is(:hover, :focus-visible) { text-decoration: underline; }

@media (max-width: 640px) {
  .odds-page .odds-showcase-grid .game-heading { margin-bottom: 10px; align-content: start; }
  .odds-page .odds-showcase-grid .game-facts {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 10px;
    padding-block: 10px 0;
  }
  .odds-showcase-grid .game-facts > div + div {
    border-top: 1px solid #d9deea;
    padding-top: 10px;
  }
  .odds-page .odds-showcase-grid .game-tile .watch { margin-top: 15px; }

  @supports (grid-template-rows: subgrid) {
    .odds-showcase-grid .game-tile,
    .odds-showcase-grid .game-body,
    .odds-showcase-grid .game-facts {
      display: grid;
      grid-template-rows: subgrid;
    }
    .odds-showcase-grid .game-tile { grid-row: span 5; row-gap: 0; }
    .odds-showcase-grid .game-body { grid-row: span 4; row-gap: 0; }
    .odds-page .odds-showcase-grid .game-facts { grid-row: span 2; margin-top: 0; }
  }
}

.odds-page .odds-ranking-table tr:has(.odds-game-link) { cursor: pointer; }
.odds-page .odds-game-link { color: inherit; text-decoration: none; }
.odds-page #odds-comparisons > .odds-leaderboard:has(+ .odds-stuart-box) {
  margin-bottom: 0;
}
.odds-page #odds-comparisons > .odds-leaderboard + .odds-stuart-box:has(> #stuart-heading) {
  margin-top: var(--odds-section-space);
}
