/* Approved artwork skin. */
body {
  background:
    linear-gradient(rgba(238,242,245,.48), rgba(207,215,221,.38)),
    url("/static/releases/media/1665468a3fd37e2bab6c/images/urban-board-bg.webp") center / cover fixed no-repeat;
}
body::before { display: none; }
.app-header { min-height: 90px; }
.page { padding: 15px 24px 22px 36px; }
.dashboard { grid-template-columns: minmax(0,1.4568fr) minmax(420px,1fr); gap: 20px; }
.settings-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.leverage-hint { min-height: 16px; margin: 4px 0 0; color: #596a75; font-size: 11px; line-height: 1.35; }
.input-panel { padding: 0; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; }
.player-card {
  background-image:
    linear-gradient(to bottom, rgba(244,247,249,.08) 0 42%, rgba(25,34,42,.12) 57%, rgba(20,28,35,.92) 100%),
    url("/static/releases/media/1665468a3fd37e2bab6c/images/player-card-atlas.webp");
  background-size: 100% 100%, 300% 200%;
  background-repeat: no-repeat;
  background-position: center, var(--sprite-x) var(--sprite-y);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 8px 24px rgba(36,47,56,.11);
}
.player-card.has-character-image {
  background-image: linear-gradient(145deg,rgba(255,255,255,.76),rgba(209,216,221,.72));
}
.player-card.has-character-image::after {
  display: block;
  content: "";
  position: absolute;
  top: 17%;
  right: 5%;
  z-index: 0;
  width: 56%;
  height: auto;
  aspect-ratio: 1;
  border: 3px solid rgba(255,255,255,.88);
  border-radius: 50%;
  background: var(--character-image) center / cover no-repeat;
  box-shadow: 0 7px 22px rgba(24,35,44,.26), 0 0 0 1px rgba(35,48,58,.18);
  opacity: 1;
}
.player-card:nth-child(1) { --sprite-x: 0%; --sprite-y: 0%; }
.player-card:nth-child(2) { --sprite-x: 50%; --sprite-y: 0%; }
.player-card:nth-child(3) { --sprite-x: 100%; --sprite-y: 0%; }
.player-card:nth-child(4) { --sprite-x: 0%; --sprite-y: 100%; }
.player-card:nth-child(5) { --sprite-x: 50%; --sprite-y: 100%; }
.player-card:nth-child(6) { --sprite-x: 100%; --sprite-y: 100%; }
.player-card::after { display: none; }
.player-card::before { z-index: 0; top: 34px; color: rgba(255,255,255,.34); text-shadow: 0 1px 2px rgba(25,32,38,.15); }
.player-card > * { position: relative; z-index: 1; }
.player-name { padding: 3px 7px; border-radius: 5px; background: rgba(246,248,249,.72); backdrop-filter: blur(5px); color: #17212b; }
.player-role { display: block; width: fit-content; max-width: 100%; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 6px; border-radius: 5px; background: rgba(20,28,35,.76); color: #f5f8fa; font-size: 12px; }
.player-role[hidden] { display: none; }
.class-icon { background: rgba(244,247,248,.75); backdrop-filter: blur(5px); }
.odds-value { color: #f5f8fa; background: rgba(20,28,35,.72); text-shadow: 0 2px 8px rgba(0,0,0,.25); backdrop-filter: blur(6px); }
.odds-value:hover { background: rgba(20,28,35,.9); }
.step-button { color: #edf3f6; border-color: rgba(232,240,245,.42); background: rgba(25,34,42,.72); backdrop-filter: blur(6px); }
.step-button:hover { background: rgba(20,28,35,.92); }
.range-scale { color: rgba(239,244,247,.76); }
.summary { grid-template-columns: repeat(4,minmax(0,1fr)); }
.result-panel .summary { margin-top: 22px; }
.metric strong { font-size: clamp(20px,1.8vw,28px); }
.table-wrap th:first-child, .table-wrap td:first-child { width: 25%; }
.table-wrap th:nth-child(2), .table-wrap td:nth-child(2) { width: 17%; }
.table-wrap th:nth-child(3), .table-wrap td:nth-child(3) { width: 10%; }
.table-wrap th:nth-child(4), .table-wrap td:nth-child(4) { width: 16%; }
.table-wrap th:nth-child(5), .table-wrap td:nth-child(5) { width: 32%; }
@media (max-width: 1220px) and (min-width: 1024px) {
  .page { padding-left: 18px; padding-right: 18px; }
  .dashboard { gap: 12px; }
  .settings-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .leverage-card { grid-column: 1 / -1; }
}
@media (max-width: 1023px) {
  .dashboard { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .input-panel { display: contents; }
  .settings-grid { order: 1; }
  .method-options { order: 1; }
  .settings-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .leverage-card { grid-column: 1 / -1; }
  .result-column { order: 2; }
  .result-panel { min-height: 0; }
  .player-grid { order: 3; grid-template-rows: repeat(2,auto); }
  .form-foot { order: 4; }
}
@media (max-width: 700px) {
  .app-shell { grid-template-rows: auto auto 1fr auto; }
  .side-links { position: static; justify-self: end; display: flex; flex-direction: row; gap: 6px; margin: 4px 10px 0; }
  .side-links a, .side-links button { padding: 4px 9px; border-radius: 6px; writing-mode: horizontal-tb; letter-spacing: 0; font-size: 11px; }
  .app-header { min-height: 0; }
  .page { padding: 12px; }
  .dashboard { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .input-panel { display: contents; }
  .settings-grid { order: 1; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .setting-card { padding: 7px 9px; }
  .setting-head { margin-bottom: 3px; }
  .result-column { order: 2; }
  .result-panel { min-height: 0; padding: 12px; gap: 9px; }
  .result-panel .panel-title { font-size: 19px; }
  .result-panel .summary { margin-top: 0; }
  .summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .metric { padding: 8px; }
  .metric .metric-label { font-size: 11px; white-space: nowrap; }
  .metric strong { font-size: clamp(15px,4vw,21px); }
  .table-wrap { overflow-x: auto; }
  table { height: auto; min-width: 0; }
  th, td { padding: 8px 3px; font-size: 11px; }
  th:nth-child(n+3), td:nth-child(n+3) { white-space: nowrap; }
  .stake { font-size: 14px; }
  .player-grid { order: 3; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(3,auto); gap: 8px; }
  .player-card { padding: 8px; aspect-ratio: auto; min-height: 160px; }
  .player-card.has-role { min-height: 235px; }
  .player-grid[data-show-odds="false"] .player-card { min-height: 115px; }
  .player-grid[data-show-odds="false"] .player-card.has-role { min-height: 195px; }
  .player-name { font-size: 12px; }
  .class-icon { width: 23px; height: 23px; font-size: 12px; }
  .odds-value { font-size: 30px; }
  .odds-control { grid-template-columns: 40px minmax(0,1fr) 40px; gap: 4px; }
  .step-button { height: 40px; }
  .range-scale { display: none; }
  .form-foot { order: 4; }
  .fast-tip { font-size: 11px; }
  footer { display: none; }
}
@media (max-width: 480px) {
  .app-header { flex-wrap: wrap; }
  .brand { gap: 5px; }
  .brand-copy h1 { font-size: 17px; }
  .scan-button { min-width: 0; padding: 9px 10px; white-space: nowrap; }
  .page { padding: 8px; }
  .settings-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .player-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(3,auto); }
  .result-panel { min-height: 0; }
  .result-status .status { font-size: 11px; }
  .metric .info-button { display: none; }
  .table-wrap th,.table-wrap td { padding-inline: 2px; font-size: 11px; }
  .table-wrap .stake { font-size: 12px; }
}
@media (max-width: 359px) {
  .table-wrap th,.table-wrap td { font-size: 10px; }
}
@media (max-width: 700px) {
  .live-status { min-height:220px; }
  .live-status[data-state="live"] { min-height:70px; }
  .live-status[data-state="recent"] { min-height:140px; }
}
@container (max-width: 450px) {
  .summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
/* Let the calculator page scroll vertically on desktop as well as mobile. */
@media (min-width: 1024px) {
  html, body { height: auto; overflow-x: hidden; overflow-y: auto; }
  .app-shell { height: auto; min-height: 100dvh; }
  .dashboard { height: auto; align-items: stretch; }
  .input-panel { min-height: 760px; }
}
