@import url('./tv-farm-motion.css');

/* The venue controls are shared. Each active board has its own HUD, world and menu. */
.vt-cabinet[data-players] {
  --gap: clamp(4px, 0.5vw, 12px);
  --stroke: clamp(2px, 0.17vw, 4px);
  --radius: clamp(9px, 1vw, 26px);
  position: relative;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: calc(var(--radius) + 4px);
}
.vt-cabinet[data-players]:has(.vt-queue-list) {
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.vt-cabinet[data-players] .vt-header {
  display: flex;
  grid-template: none;
  align-items: center;
  gap: clamp(5px, 0.9vw, 22px);
  padding: 0 0.35vw var(--gap);
  min-height: 0;
}
.vt-cabinet[data-players] .vt-brand {
  gap: 0.35em;
  font-size: clamp(14px, 1.8vw, 41px);
}
.vt-cabinet[data-players] .vt-brand .mccullen-logo {
  width: clamp(28px, 3.2vw, 72px);
  height: clamp(28px, 5vh, 70px);
}
.vt-cabinet[data-players] .vt-header .game-partner {
  --partner-logo-size: clamp(26px, 4.5vh, 65px);
  font-size: clamp(8px, 0.78vw, 17px);
  white-space: nowrap;
}
.vt-cabinet[data-players] .vt-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(4px, 0.6vw, 16px);
  margin: 0 0 0 auto;
}
.vt-cabinet[data-players] .vt-venue,
.vt-cabinet[data-players] .vt-screen-id {
  font-size: clamp(10px, 1vw, 24px);
}
.vt-cabinet .vt-invite-button,
.vt-cabinet .vt-qr-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32em;
  padding: 0.4em 0.88em;
  border: 1px solid #175944;
  border-radius: 3em;
  background: #196752;
  color: #fff;
  cursor: pointer;
  font:
    600 clamp(12px, 1.06vw, 25px)/1.25 Kanit,
    sans-serif;
}
.vt-cabinet .vt-invite-button:disabled {
  background: #e3eae6;
  color: #455d52;
  border-color: #b7c9bf;
  cursor: default;
}
.vt-cabinet .vt-invite-button:focus-visible,
.vt-cabinet .vt-qr-close:focus-visible {
  outline: 3px solid #eea02c;
  outline-offset: 2px;
}
.vt-cabinet [hidden] {
  display: none !important;
}
.vt-cabinet[data-players] .vt-body {
  position: relative;
  min-width: 0;
}
.vt-cabinet .vt-boards {
  min-height: 0;
  min-width: 0;
  display: grid;
  gap: var(--gap);
  grid-template-columns: minmax(0, 1fr);
}
.vt-cabinet.vt-in-play .vt-body {
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}
.vt-cabinet[data-players='2'] .vt-boards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.vt-cabinet .vt-stage:not(.vt-lane) .vt-lane-head {
  display: none;
}
.vt-cabinet .vt-lane {
  --lane-ink: #115848;
  --lane-border: #257460;
  --lane-mist: #dcf2e7;
  --lane-paper: #f5faf3;
  --lane-edge: #acd5b6;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-color: var(--lane-border);
}
.vt-cabinet .vt-lane[data-lane='2'] {
  --lane-ink: #76345b;
  --lane-border: #934674;
  --lane-mist: #fae5ef;
  --lane-paper: #fff8fa;
  --lane-edge: #e2b6cd;
}
.vt-lane-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: clamp(4px, 0.55vw, 14px);
  min-width: 0;
  padding: clamp(3px, 0.38vw, 12px) clamp(5px, 0.65vw, 18px);
  border-bottom: 2px solid var(--lane-border);
  background: linear-gradient(105deg, var(--lane-mist), var(--lane-paper) 72%);
  color: var(--lane-ink);
}
.vt-player-id {
  min-width: 0;
}
.vt-lane-label {
  width: fit-content;
  padding: 0.16em 0.7em;
  border-radius: 3em;
  font-size: clamp(10px, 0.82vw, 18px);
  font-weight: 650;
  line-height: 1;
  background: var(--lane-ink);
  color: #fff;
}
.vt-lane-name {
  display: flex;
  align-items: center;
  gap: 0.4em;
  min-width: 0;
}
.vt-lane-name > strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(18px, 2vw, 46px);
  line-height: 1.24;
}
.vt-lane-name .member-badge {
  flex-shrink: 0;
  color: var(--lane-ink);
  font-size: clamp(8px, 0.76vw, 15px);
}
.vt-lane-name .member-badge img {
  width: 1.9em;
  height: 1.9em;
}
.vt-cabinet .vt-lane-head .vt-progress-slot,
.vt-cabinet .vt-lane-head .vt-wallet-slot {
  grid-area: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
}
.vt-lane-head .vt-progression {
  font-size: clamp(10px, 0.95vw, 21px);
}
.vt-lane-head .vt-wallet-chip {
  font-size: clamp(10px, 0.97vw, 22px);
}
.vt-lane .vt-menu {
  border-top-color: var(--lane-border);
  background: var(--lane-paper);
  padding: 0.45em 0.55em;
}
.vt-lane .vt-menu-meta {
  font-size: clamp(10px, 0.85vw, 19px);
  color: var(--lane-ink);
  margin-bottom: 0.42em;
  gap: 0.38em;
}
.vt-lane-state {
  margin-left: auto;
}
.vt-lane .vt-choice {
  min-height: clamp(35px, 6.4vh, 82px);
}
.vt-lane .vt-menu .vt-choice.selected {
  box-shadow: inset 0 -2px 0 #c38928;
}
.vt-cabinet[data-players='2'] .vt-lane-name .member-badge > span {
  display: none;
}
.vt-cabinet[data-players='2'] .vt-lane-head {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr) auto;
}
.vt-cabinet[data-players='2'] .vt-wallet {
  gap: 0.35em;
}
.vt-cabinet[data-players='2'] .vt-wallet-chip {
  font-size: clamp(9px, 0.8vw, 18px);
  padding-right: 0.44em;
}
.vt-cabinet[data-players='2'] .vt-progression {
  font-size: clamp(10px, 0.8vw, 19px);
}
.vt-cabinet[data-players='2'] .vt-choice {
  flex-direction: row;
  padding: 0.25em 0.3em;
  font-size: clamp(11px, 1.12vw, 25px);
  gap: 0.16em;
}
.vt-cabinet[data-players='2'] .vt-choice > .tv-sprite {
  width: clamp(19px, 2.6vw, 55px);
  height: clamp(20px, 4.3vh, 58px);
}
.vt-cabinet[data-players='2'] .vt-world-title h1 {
  font-size: clamp(24px, 7cqw, 88px);
}
.vt-cabinet .vt-foot:not(:has(.vt-queue-list)) {
  display: none;
}
.vt-cabinet .vt-foot {
  padding: 0.22em 0.6em;
  background: #f3f6fc;
  border: 1px solid #bacbe4;
}
.vt-cabinet .vt-roster {
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.vt-cabinet .vt-roster-label {
  font-size: clamp(11px, 0.96vw, 22px);
}
.vt-cabinet .vt-roster-label b {
  width: auto;
  padding: 0.08em 0.5em;
  height: auto;
  border-radius: 2em;
}
.vt-queue-label {
  font-size: clamp(11px, 0.95vw, 22px);
  color: #495c78;
  padding-left: 0.6em;
  border-left: 1px solid #b7c9db;
}
.vt-queue-list {
  display: flex;
  align-items: center;
  gap: 0.55em;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.vt-queue-seat {
  display: flex;
  align-items: center;
  gap: 0.38em;
  min-width: 0;
  padding: 0.12em 0.62em 0.12em 0.24em;
  border-radius: 2em;
  background: white;
  border: 1px solid #b6c6dc;
  font-size: clamp(12px, 1.05vw, 23px);
}
.vt-queue-seat b {
  background: #e6edf7;
  border-radius: 50%;
  text-align: center;
  min-width: 1.6em;
}
.vt-queue-seat > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vt-queue-seat .member-badge {
  flex-shrink: 0;
}
.vt-queue-seat .member-badge img {
  width: 1.55em;
  height: 1.55em;
}
.vt-queue-seat .member-badge span {
  display: none;
}

.vt-in-play .vt-side:not([hidden]) {
  position: absolute;
  z-index: 12;
  top: var(--gap);
  right: var(--gap);
  width: clamp(245px, 25vw, 620px);
  height: min(91%, clamp(285px, 34vw, 790px));
  grid-template: minmax(0, 1fr) auto / 1fr;
  border: 3px solid #537956;
  border-radius: var(--radius);
  background: #edf4e5;
  box-shadow: 0 0.5em 2em #12342966;
}
.vt-in-play .vt-side .vt-context {
  display: none;
}
.vt-in-play .vt-qr-close {
  justify-self: center;
  margin: 0.35em;
}
.vt-cabinet[data-players='0'] .vt-side {
  grid-template-rows: minmax(0, 3fr) minmax(0, 1fr);
}
.vt-cabinet[data-players='0'] .vt-side-help {
  flex-direction: row;
  padding-inline: 3%;
  gap: 4%;
}
.vt-cabinet[data-players='0'] .vt-side-help img {
  width: 35%;
}
@media (max-width: 850px) {
  .vt-lane-name .member-badge > span {
    display: none;
  }
  .vt-lane-head .vt-xp-total,
  .vt-lane-head .vt-next-unlock {
    display: none;
  }
  .vt-cabinet .vt-progression .vt-level-badge img {
    display: none;
  }
  .vt-cabinet .vt-lane-head .vt-wallet-chip {
    display: grid;
    gap: 0;
    padding: 0.22em 0.55em 0.22em 1.95em;
    min-height: 0;
  }
  .vt-cabinet .vt-wallet-chip img {
    left: 0.17em;
    width: 1.35em;
    height: 1.35em;
  }
  .vt-cabinet .vt-lane-head .vt-wallet-chip dt {
    font-size: 0.8em;
  }
  .vt-cabinet .vt-lane-head .vt-wallet-chip dd {
    font-size: 1.25em;
  }
}
@media (max-width: 650px) and (orientation: portrait) {
  .vt-cabinet[data-players='0'] .vt-side {
    grid-template: minmax(0, 1fr) / 1.4fr 1fr;
  }
  .vt-cabinet[data-players='2'] .vt-boards {
    grid-template: repeat(2, minmax(0, 1fr)) / minmax(0, 1fr);
  }
  .vt-cabinet .vt-invite-button {
    padding: 0.4em 0.5em;
    font-size: 10px;
  }
  .vt-cabinet[data-players] .vt-header {
    flex-wrap: wrap;
    row-gap: 1px;
  }
  .vt-cabinet[data-players] .vt-venue {
    display: none;
  }
  .vt-lane-head .member-badge > img {
    width: 15px;
    height: 15px;
  }
  .vt-lane .vt-menu {
    padding: 3px;
  }
  .vt-lane .vt-menu-meta {
    margin-bottom: 2px;
  }
  .vt-lane .vt-choice {
    min-height: 30px;
  }
  .vt-in-play .join-ticket {
    grid-template: auto minmax(0, 1fr) auto / minmax(0, 1fr);
  }
  .vt-in-play .join-ticket > * {
    grid-column: auto;
    grid-row: auto;
    align-self: stretch;
  }
  .vt-in-play .join-ticket-head {
    justify-content: center;
    align-items: center;
  }
  .vt-in-play .join-ticket-foot {
    text-align: center;
  }
  .vt-cabinet .vt-roster-label span {
    display: none;
  }
  .vt-cabinet .vt-queue-seat {
    font-size: 11px;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .vt-cabinet .vt-lane-head {
    padding-block: 2px;
  }
  .vt-cabinet .vt-next-unlock,
  .vt-cabinet .vt-xp-total,
  .vt-cabinet .vt-lane-name .member-badge,
  .vt-cabinet .vt-lane .vt-menu-meta {
    display: none;
  }
  .vt-cabinet .vt-brand .mccullen-logo {
    max-height: 27px;
  }
  .vt-cabinet .vt-lane .vt-choice {
    min-height: 27px;
  }
}
