/* Activated by the parent viewport, not the narrower desktop iframe width. */
.mobile-board body {
  margin: 0;
  overflow: hidden;
  font-size: 13px;
}
.mobile-board img {
  -webkit-touch-callout: none;
}
.mobile-board img:is(#deckCover, #discardCover, #lostZoneCover) {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mobile-board img[draggable='true'] {
  touch-action: none;
}
.mobile-board #boardCircle,
.mobile-board #innerCircle {
  display: none;
}
.mobile-board #hand {
  justify-content: flex-start !important;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 23%;
  align-items: center;
  gap: 5px;
  padding: 0 5px;
  box-sizing: border-box;
  overscroll-behavior: contain;
}
.mobile-board #hand img {
  height: 85%;
  max-height: 120px;
  flex: 0 0 auto;
  margin: 0;
}
.mobile-board #handLabel {
  bottom: 23%;
  left: 4px;
  font-size: 13px;
  height: 28px;
}
.mobile-board #handText {
  bottom: 23%;
  right: 8px;
}
.mobile-board #active {
  top: 7%;
  bottom: auto;
  left: 37%;
  width: 40%;
  height: min(29%, 170px);
  overflow-x: auto;
  overflow-y: hidden;
  justify-content: flex-start;
  overscroll-behavior: contain;
}
.mobile-board #active .play-container {
  flex-shrink: 0;
}
.mobile-board #bench {
  top: 46%;
  bottom: auto;
  left: 19%;
  width: 79%;
  height: 23%;
  justify-content: flex-start !important;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 12px;
  padding: 0 5px;
  box-sizing: border-box;
  overscroll-behavior: contain;
}
.mobile-board #bench .play-container {
  flex-shrink: 0;
  margin: 0;
}
.mobile-board #prizes {
  top: 46%;
  bottom: auto;
  left: 2%;
  width: 14%;
  height: 23%;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
}
.mobile-board #prizes img {
  max-width: 48%;
  max-height: 33%;
  object-fit: contain;
}
.mobile-board #deckCover {
  top: 7%;
  bottom: auto;
  right: 2%;
  width: 17%;
  height: 18%;
}
.mobile-board #discardCover {
  top: 29%;
  bottom: auto;
  right: 2%;
  width: 17%;
  height: 13%;
}
.mobile-board #lostZoneCover {
  top: 7%;
  bottom: auto;
  left: 2%;
  width: 16%;
  height: 16%;
}
.mobile-board #board {
  top: 27%;
  bottom: auto;
  left: 2%;
  right: auto;
  width: 31%;
  height: 15%;
  padding: 0;
  z-index: 0;
}
.mobile-board #board img {
  height: 90%;
}
.mobile-board #deckText {
  top: 0;
  bottom: auto;
  right: 3%;
}
.mobile-board #discardText {
  top: 25%;
  bottom: auto;
  right: 3%;
}
.mobile-board #lostZoneText {
  top: 0;
  bottom: auto;
  left: 3%;
}
.mobile-board [data-mobile-label]::before {
  content: attr(data-mobile-label);
  position: absolute;
  top: 0;
  left: 2px;
  font-size: 10px;
  line-height: 12px;
  color: #4d5870;
  pointer-events: none;
  z-index: -1;
}
.mobile-board #active::before,
.mobile-board #bench::before {
  z-index: 0;
}
.mobile-board #specialMoveButtonContainer {
  top: 37%;
  bottom: auto;
  left: 36%;
  right: auto;
  width: 42%;
  height: 8%;
  justify-content: center;
}
.mobile-board #specialMoveButtonContainer button {
  min-height: 32px;
  max-height: none;
  height: 100%;
  min-width: 48px;
  font-size: 12px;
}
.mobile-board .self-text,
.mobile-board .opp-text {
  font-size: 13px;
  transform: none;
}
.mobile-board .opp-circle,
.mobile-board .opp-tab {
  transform: none;
}
.mobile-board .zone,
.mobile-board #attachedCards,
.mobile-board #viewCards,
.mobile-board .full-view {
  top: 4% !important;
  left: 3% !important;
  width: 94% !important;
  height: 90% !important;
  transform: none !important;
  padding: 6px;
  box-sizing: border-box;
  overflow: auto;
  background: #e4e7ed;
  z-index: 20 !important;
}
.mobile-board .zone img,
.mobile-board #attachedCards img,
.mobile-board #viewCards img,
.mobile-board .full-view img {
  width: 22%;
  height: auto;
  max-height: none;
  margin: 1%;
}
.mobile-board .flip-image img {
  transform: none !important;
}
.mobile-board .header {
  position: sticky;
  top: 0;
  left: 0;
  transform: none;
  font-size: 14px;
}
.mobile-board .self-zone-button-container {
  position: sticky;
  left: 0;
  bottom: 0;
  width: 100%;
  transform: none;
  padding: 4px;
  box-sizing: border-box;
}
.mobile-board button {
  min-height: 44px;
  font-size: 13px;
  padding: 6px;
  touch-action: manipulation;
}
.mobile-board #attachedCards button,
.mobile-board #viewCards button {
  width: auto;
}
.mobile-board .self-circle,
.mobile-board .opp-circle {
  min-width: 30px;
  min-height: 30px;
  font-size: 16px !important;
}
.mobile-board .mobile-drag-ready {
  outline: 3px solid #299969;
}
.mobile-board .mobile-drop-target {
  outline: 3px solid #299969 !important;
  outline-offset: -3px;
  background-color: #29996933 !important;
}
@media (max-height: 320px) {
  .mobile-board #active {
    height: 33%;
  }
  .mobile-board #bench {
    top: 44%;
    height: 25%;
  }
  .mobile-board #specialMoveButtonContainer {
    top: 5%;
    left: 19%;
    width: 10%;
    flex-direction: column;
    height: 35%;
  }
  .mobile-board #specialMoveButtonContainer button {
    min-height: 28px;
    height: 28px;
  }
  .mobile-board #handLabel {
    height: 20px;
  }
}
