/* Official artwork has its own space; selection stays a quiet, consistent control. */
.xy-game-option-cards.xy-game-choices,
.xy-game-list.xy-game-choices {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  width:100%;
}
.xy-game-choices button.xy-game-choice {
  position:relative;
  display:flex;
  align-items:center;
  gap:14px;
  box-sizing:border-box;
  min-width:0;
  min-height:102px;
  padding:14px;
  border:1px solid #dce3ed;
  border-radius:10px;
  background:#fff;
  color:#172b48;
  text-align:left;
  box-shadow:none;
  transform:none;
  overflow:visible;
  transition:border-color .15s,background-color .15s;
}
.xy-game-choices button.xy-game-choice::before,
.xy-game-choices button.xy-game-choice::after {display:none}
.xy-game-choices .xy-game-choice .xy-game-artwork {
  display:block;
  width:72px;
  height:72px;
  flex:0 0 72px;
  grid-row:auto;
  margin:0;
  border-radius:8px;
  background:transparent;
}
.xy-game-choices .xy-game-choice .xy-game-artwork img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:8px;
}
.xy-game-choices .xy-game-choice .xy-game-choice-copy {
  display:flex;
  flex-direction:column;
  gap:5px;
  flex:1 1 auto;
  width:auto;
  height:auto;
  min-width:0;
  margin:0;
  padding:0;
  border-radius:0;
  background:transparent;
  text-align:left;
}
.xy-game-choices .xy-game-choice .xy-game-choice-copy strong {
  margin:0;
  color:#172b48;
  font-size:15px;
  font-weight:600;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.xy-game-choices .xy-game-choice .xy-game-choice-copy small {
  margin:0;
  color:#596b83;
  font-size:12px;
  font-weight:400;
  line-height:1.5;
  white-space:normal;
}
.xy-game-choices .xy-game-choice .xy-game-choice-state {
  display:block;
  position:absolute;
  right:10px;
  top:10px;
  box-sizing:border-box;
  width:14px;
  height:14px;
  border:1px solid #8a98ac;
  border-radius:50%;
  background:#fff;
  transform:none;
}
.xy-game-choices button.xy-game-choice:hover:not(:disabled) {
  border-color:#8ca2d9;
  background:#f8faff;
  box-shadow:none;
  transform:none;
}
.xy-game-choices button.xy-game-choice.active {
  border-color:#4a68d8;
  background:#f3f6ff;
  box-shadow:none;
}
.xy-game-choices .xy-game-choice.active .xy-game-choice-state {
  border:4px solid #4161d0;
}
.xy-game-choices button.xy-game-choice:focus-visible {
  outline:2px solid #293c63;
  outline-offset:3px;
}
.xy-game-choices button.xy-game-choice:disabled {
  border-color:#dce3ed;
  background:#f5f6f8;
  color:#66758a;
  opacity:1;
  cursor:not-allowed;
}
.xy-game-choices .xy-game-choice:disabled .xy-game-artwork {filter:grayscale(.65);opacity:.7}
.xy-game-choices .xy-game-choice:disabled .xy-game-choice-copy strong {color:#66758a}
.xy-game-choices .xy-game-choice:disabled .xy-game-choice-copy {background:transparent;filter:none}
@media(max-width:1599px) {
  .xy-game-list.xy-game-choices {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1279px) {
  .xy-game-option-cards.xy-game-choices,
  .xy-game-list.xy-game-choices {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px) {
  .xy-game-choices button.xy-game-choice {
    flex-direction:column;
    justify-content:flex-start;
    gap:10px;
    padding:14px 10px 12px;
    min-height:124px;
  }
  .xy-game-choices .xy-game-choice .xy-game-artwork {width:64px;height:64px;flex-basis:64px}
  .xy-game-choices .xy-game-choice .xy-game-choice-copy {flex:1 1 auto;justify-content:center;align-items:center;text-align:center}
  .xy-game-choices .xy-game-choice .xy-game-choice-copy strong {font-size:14px}
  .xy-game-choices .xy-game-choice .xy-game-choice-state {right:8px;top:8px;width:12px;height:12px}
  .xy-game-choices .xy-game-choice.active .xy-game-choice-state {border-width:3px}
}
@media(prefers-reduced-motion:reduce) {
  .xy-game-choices button.xy-game-choice {transition:none}
}

/* Official core artwork: preserve the source colors and aspect ratio. */
:is(.xy-game-cloud-page,.xy-ptero-buy) .xy-minecraft-software-grid.xy-minecraft-software-grid button[data-core] > b {background:#f2f5fa}
:is(.xy-game-cloud-page,.xy-ptero-buy) .xy-minecraft-software-grid.xy-minecraft-software-grid button[data-core] > b img {width:100%;height:100%;object-fit:contain;border-radius:4px}
:is(.xy-game-cloud-page,.xy-ptero-buy) .xy-minecraft-software-grid.xy-minecraft-software-grid button[data-core="folia"] > b {background:#315244}
:is(.xy-game-cloud-page,.xy-ptero-buy) .xy-minecraft-software-grid.xy-minecraft-software-grid button[data-core="folia"] > b img {width:85%;height:85%}
