.idx-mg-page {
  display: flex;
  flex-direction: column;
  width: 1920px;
  align-items: flex-start;
  position: relative;
  background-color: #141518;
}

.idx-mg-page .topbar {
  display: flex;
  height: 65px;
  align-items: center;
  justify-content: space-between;
  padding: 0px 24px;
  position: relative;
  align-self: stretch;
  width: 100%;
  background-color: #272a31;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-color: #1e2939;
}

.idx-mg-page .frame {
  display: inline-flex;
  align-items: center;
  position: relative;
  flex: 0 0 auto;
}

.idx-mg-page .logo {
  display: flex;
  width: 232px;
  align-items: center;
  gap: 76px;
  position: relative;
}

.idx-mg-page .idx-mg-x__kakao {
  position: relative;
  width: 154px;
  height: 26px;
  aspect-ratio: 5.92;
  object-fit: cover;
}

.idx-mg-page .idx-mg-x__alarm {
  display: flex;
  max-width: 500px;
  width: 300px;
  height: 40px;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  position: relative;
  background-color: #303338;
  border-radius: 10px;
}

.idx-mg-page .idx-mg-x__vector {
  position: relative;
  width: 15px;
  height: 15px;
  aspect-ratio: 1;
}

.idx-mg-page .idx-mg-x__text-wrap {
  display: -webkit-box;
  flex: 1;
  margin-top: -1.5px;
  font-weight: 600;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  position: relative;
  align-items: center;
  font-family: "Inter", Helvetica;
  font-size: 12px;
  letter-spacing: -0.06px;
  line-height: 17.4px;
}

.idx-mg-page .btn {
  display: inline-flex;
  height: 36px;
  align-items: center;
  gap: 12px;
  position: relative;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-x__div {
  height: 40px;
  justify-content: center;
  gap: 5px;
  margin-top: -2px;
  margin-bottom: -2px;
  display: inline-flex;
  align-items: center;
  position: relative;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-x__div-2 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-x__ico-prof {
  width: 20px;
  height: 20px;
  position: relative;
  aspect-ratio: 1;
}

.idx-mg-page .idx-mg-x__tw-2 {
  display: flex;
  margin-top: -1px;
  font-size: 16px;
  letter-spacing: -0.08px;
  line-height: 23.2px;
  position: relative;
  align-items: center;
  width: fit-content;
  font-family: "Inter", Helvetica;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

.idx-mg-page .level {
  display: inline-flex;
  padding: 2px 6px;
  flex: 0 0 auto;
  background-color: var(--purple);
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.idx-mg-page .frame-2 {
  justify-content: center;
  display: inline-flex;
  align-items: center;
  position: relative;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-x__tw-3 {
  font-size: 12px;
  letter-spacing: -0.06px;
  line-height: 17.4px;
  position: relative;
  display: flex;
  align-items: center;
  width: fit-content;
  margin-top: -1px;
  font-family: "Inter", Helvetica;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-x__tw-4 {
  width: fit-content;
  margin-top: -1px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: -0.06px;
  line-height: 17.4px;
  position: relative;
  display: flex;
  align-items: center;
  font-family: "Inter", Helvetica;
  color: #eeff00;
  white-space: nowrap;
}

.idx-mg-page .logout-btn {
  position: relative;
  width: 82px;
  height: 36px;
  background-color: #303338;
  border-radius: 10px;
}

.idx-mg-page .idx-mg-x__tw-5 {
  position: absolute;
  top: 8px;
  left: 15px;
  font-family: "Inter", Helvetica;
  font-weight: 600;
  color: #d1d5dc;
  font-size: 14px;
  text-align: center;
  letter-spacing: 0;
  line-height: 20px;
  white-space: nowrap;
}

.idx-mg-page .frame-3 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-x__sidebar {
  display: flex;
  flex-direction: column;
  width: 256px;
  align-items: flex-start;
  padding: 10px 0px;
  position: relative;
  align-self: stretch;
  background-color: #212328;
  border-right-width: 1px;
  border-right-style: solid;
  border-color: #1e2939;
}

.idx-mg-page .idx-mg-x__container {
  gap: 24px;
  padding: 0px 16px;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.idx-mg-page .idx-mg-x__div-3 {
  gap: 8px;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.idx-mg-page .idx-mg-x__heading {
  display: flex;
  height: 16px;
  align-items: flex-start;
  position: relative;
  align-self: stretch;
  width: 100%;
}

.idx-mg-page .idx-mg-x__tw-6 {
  flex: 1;
  margin-top: -1px;
  font-weight: 600;
  color: #6a7282;
  font-size: 12px;
  letter-spacing: 0;
  line-height: 16px;
  position: relative;
  font-family: "Inter", Helvetica;
}

.idx-mg-page .idx-mg-x__cash-menu {
  display: flex;
  height: 35px;
  align-items: center;
  justify-content: space-between;
  padding: 0px 20px;
  position: relative;
  align-self: stretch;
  width: 100%;
  background-color: #303338;
  border-radius: 10px;
  overflow: hidden;
}

.idx-mg-page .frame-4 {
  display: inline-flex;
  height: 14px;
  align-items: center;
  gap: 6px;
  position: relative;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-x__ico-cash {
  position: relative;
  width: 19.06px;
  height: 15px;
  margin-top: -0.5px;
  margin-bottom: -0.5px;
  aspect-ratio: 1.27;
  background-image: url(../../img/idx-em/11_Minigame_1/vector-1.svg);
  background-size: 100% 100%;
}

.idx-mg-page .img {
  position: absolute;
  width: 100%;
  height: 65.89%;
  top: 34.11%;
  left: 0;
}

.idx-mg-page .idx-mg-x__v2 {
  position: absolute;
  width: 41.23%;
  height: 27.25%;
  top: 72.75%;
  left: 58.77%;
}

.idx-mg-page .idx-mg-x__tw-7 {
  position: relative;
  display: flex;
  align-items: center;
  width: 23px;
  height: 17px;
  margin-top: -2.5px;
  margin-bottom: -0.5px;
  font-family: "Inter", Helvetica;
  font-weight: 500;
  color: #d1d5dc;
  font-size: 12px;
  letter-spacing: -0.06px;
  line-height: 17.4px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-x__ico-cashback {
  position: relative;
  width: 19px;
  height: 15px;
  margin-top: -0.5px;
  margin-bottom: -0.5px;
  aspect-ratio: 1.21;
}

.idx-mg-page .idx-mg-x__ico-point-a {
  margin-top: -0.5px;
  margin-bottom: -0.5px;
  aspect-ratio: 0.82;
  background-image: url(../../img/idx-em/11_Minigame_1/v4.svg);
  position: relative;
  width: 12.33px;
  height: 15px;
  background-size: 100% 100%;
}

.idx-mg-page .idx-mg-x__v3 {
  position: absolute;
  width: 66.08%;
  height: 76.84%;
  top: 23.16%;
  left: 33.92%;
}

.idx-mg-page .idx-mg-x__tw-8 {
  position: relative;
  display: flex;
  align-items: center;
  width: fit-content;
  margin-top: -2.5px;
  margin-bottom: -0.5px;
  font-family: "Inter", Helvetica;
  font-weight: 500;
  color: #d1d5dc;
  font-size: 12px;
  letter-spacing: -0.06px;
  line-height: 17.4px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-x__div-4 {
  gap: 4px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  align-self: stretch;
  width: 100%;
}

.idx-mg-page .idx-mg-x__link-wrap {
  height: 30px;
  justify-content: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  align-self: stretch;
  width: 100%;
}

.idx-mg-page .idx-mg-x__link {
  gap: 12px;
  padding: 0px 0px 0px 8px;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  position: relative;
  border-radius: 10px;
}

.idx-mg-page .idx-mg-x__icon {
  position: relative;
  width: 20px;
  height: 20px;
}

.idx-mg-page .idx-mg-x__v4 {
  position: absolute;
  width: 83.33%;
  height: 41.67%;
  top: 58.33%;
  left: 16.67%;
}

.idx-mg-page .idx-mg-x__v5 {
  position: absolute;
  width: 70.83%;
  height: 91.67%;
  top: 8.33%;
  left: 29.17%;
}

.idx-mg-page .idx-mg-x__div-wrap {
  position: relative;
  width: 70px;
  height: 20px;
}

.idx-mg-page .idx-mg-x__tw-9 {
  position: absolute;
  top: 0;
  left: 0;
  font-family: "Inter", Helvetica;
  font-weight: 500;
  color: #d1d5dc;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 20px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-x__icon-2 {
  position: relative;
  width: 20px;
}

.idx-mg-page .idx-mg-x__sb-2 {
  position: relative;
  width: 42px;
  height: 20px;
}

.idx-mg-page .idx-mg-x__tw-10 {
  position: relative;
  width: fit-content;
  margin-top: -1px;
  font-family: "Inter", Helvetica;
  font-weight: 500;
  color: #d1d5dc;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 20px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-x__tw-11 {
  width: fit-content;
  margin-top: -1px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.07px;
  line-height: 20.3px;
  position: relative;
  display: flex;
  align-items: center;
  font-family: "Inter", Helvetica;
  color: #eeff00;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-x__cal {
  position: relative;
  width: 20px;
  height: 18px;
  aspect-ratio: 1.09;
  background-image: url(../../img/idx-em/11_Minigame_1/v8.svg);
  background-size: 100% 100%;
}

.idx-mg-page .idx-mg-x__vs {
  position: absolute;
  height: 55.56%;
  top: 44.44%;
  left: calc(50.00% - 4px);
  width: 8px;
}

.idx-mg-page .idx-mg-x__sb-3 {
  position: relative;
  width: 93.84px;
  height: 20px;
}

.idx-mg-page .idx-mg-x__train {
  position: relative;
  width: 20px;
  height: 20px;
  aspect-ratio: 1;
  background-image: url(../../img/idx-em/11_Minigame_1/v9.svg);
  background-size: 100% 100%;
}

.idx-mg-page .idx-mg-x__v6 {
  position: absolute;
  width: 64.58%;
  height: 66.67%;
  top: 33.33%;
  left: 35.42%;
}

.idx-mg-page .idx-mg-x__v7 {
  position: absolute;
  width: 54.17%;
  height: 47.92%;
  top: 52.08%;
  left: 45.83%;
}

.idx-mg-page .idx-mg-x__v8 {
  position: absolute;
  width: 91.67%;
  height: 70.84%;
  top: 29.16%;
  left: 8.33%;
}

.idx-mg-page .idx-mg-x__v9 {
  position: absolute;
  width: 54.17%;
  height: 70.84%;
  top: 29.16%;
  left: 45.83%;
}

.idx-mg-page .idx-mg-x__v10 {
  position: absolute;
  width: 83.33%;
  height: 54.17%;
  top: 45.83%;
  left: 16.67%;
}

.idx-mg-page .idx-mg-x__v11 {
  position: absolute;
  width: 83.33%;
  height: 91.67%;
  top: 8.33%;
  left: 16.67%;
}

.idx-mg-page .idx-mg-x__v12 {
  position: absolute;
  width: 91.67%;
  height: 95.84%;
  top: 4.16%;
  left: 8.33%;
}

.idx-mg-page .idx-mg-x__v13 {
  position: absolute;
  width: 54.17%;
  height: 37.50%;
  top: 62.50%;
  left: 45.83%;
}

.idx-mg-page .idx-mg-x__sb-4 {
  position: relative;
  width: 56px;
  height: 20px;
}

.idx-mg-page .idx-mg-x__notice-wrap {
  display: flex;
  flex-direction: column;
  width: 20px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1px 0px;
  position: relative;
}

.idx-mg-page .idx-mg-x__ico-notice {
  position: relative;
  width: 18.5px;
  height: 18.5px;
  margin-top: -0.25px;
  margin-bottom: -0.25px;
  aspect-ratio: 1;
}

.idx-mg-page .idx-mg-x__link-wrap-2 {
  position: relative;
  align-self: stretch;
  width: 100%;
  height: 36px;
}

.idx-mg-page .idx-mg-x__link-2 {
  width: 223px;
  height: 36px;
  justify-content: space-between;
  padding: 0px 8px;
  display: flex;
  align-items: center;
  position: relative;
  border-radius: 10px;
}

.idx-mg-page .idx-mg-x__sb-5 {
  display: flex;
  width: 74px;
  height: 20px;
  align-items: center;
  gap: 12px;
  position: relative;
}

.idx-mg-page .idx-mg-x__trophy {
  display: flex;
  flex-direction: column;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 106px 155px;
  position: relative;
  margin-top: -2.5px;
  margin-bottom: -2.5px;
}

.idx-mg-page .idx-mg-x__trophy-stroke {
  position: relative;
  width: 16px;
  height: 23px;
  margin-top: -105px;
  margin-bottom: -105px;
  margin-left: -150.5px;
  margin-right: -150.5px;
  aspect-ratio: 0.7;
}

.idx-mg-page .text {
  position: relative;
  flex: 1;
  flex-grow: 1;
  height: 20px;
}

.idx-mg-page .idx-mg-x__div-5 {
  position: absolute;
  top: 0;
  left: 0;
  font-family: "Inter", Helvetica;
  font-weight: 500;
  color: #d1d5dc;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 20px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-x__span {
  font-family: "Inter", Helvetica;
  font-weight: 500;
  color: #d1d5dc;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 20px;
}

.idx-mg-page .idx-mg-x__tw-12 {
  font-size: 12px;
}

.idx-mg-page .idx-mg-x__vec-wrap {
  position: relative;
  width: 16px;
  height: 16px;
}

.idx-mg-page .idx-mg-x__v14 {
  position: absolute;
  width: 66.67%;
  height: 79.16%;
  top: 20.84%;
  left: 33.33%;
}

.idx-mg-page .idx-mg-x__sb-6 {
  display: flex;
  width: 60px;
  height: 20px;
  align-items: center;
  gap: 12px;
  position: relative;
}

.idx-mg-page .idx-mg-x__img-2 {
  position: relative;
  width: 25px;
  height: 25px;
  margin-top: -2.5px;
  margin-bottom: -2.5px;
  aspect-ratio: 1;
}

.idx-mg-page .idx-mg-x__sb-7 {
  display: flex;
  width: 88px;
  height: 20px;
  align-items: center;
  gap: 12px;
  position: relative;
}

.idx-mg-page .live {
  position: relative;
  width: 25px;
  margin-top: -1.75px;
  margin-bottom: -1.75px;
  aspect-ratio: 1;
}

.idx-mg-page .idx-mg-x__mini-game {
  position: relative;
  align-self: stretch;
  width: 100%;
  height: 36px;
  background-color: #303338;
  border-radius: 10px;
}

.idx-mg-page .idx-mg-x__tw-13 {
  position: absolute;
  top: 0;
  left: 0;
  text-shadow: 0px 0px 4px #ffffff33;
  font-family: "Inter", Helvetica;
  font-weight: 900;
  color: #ffffff;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 20px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-x__sb-8 {
  display: flex;
  width: 106.92px;
  height: 20px;
  align-items: center;
  gap: 12px;
  position: relative;
}

.idx-mg-page .chip {
  position: relative;
  width: 25px;
  margin-top: -1.5px;
  margin-bottom: -1.5px;
}

.idx-mg-page .idx-mg-x__coin {
  position: relative;
  width: 25px;
  margin-top: -1.5px;
  margin-bottom: -1.5px;
  aspect-ratio: 1;
}

.idx-mg-page .idx-mg-x__bet {
  display: flex;
  flex-direction: column;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: -2.5px;
  margin-bottom: -2.5px;
}

.idx-mg-page .idx-mg-x__v15 {
  position: relative;
  width: 23px;
  height: 23px;
  aspect-ratio: 1;
}

.idx-mg-page .x {
  position: relative;
  width: 25px;
  height: 22.28px;
  margin-top: -1.14px;
  margin-bottom: -1.14px;
  aspect-ratio: 1.12;
}

.idx-mg-page .idx-mg-x__vs-2 {
  position: absolute;
  width: 96.38%;
  height: 60.98%;
  top: 39.02%;
  left: 3.62%;
}

.idx-mg-page .idx-mg-x__vs-3 {
  position: absolute;
  width: 86.23%;
  height: 44.72%;
  top: 55.28%;
  left: 13.77%;
}

.idx-mg-page .idx-mg-x__vs-4 {
  position: absolute;
  width: 60.87%;
  height: 44.72%;
  top: 55.28%;
  left: 39.13%;
}

.idx-mg-page .idx-mg-x__vs-5 {
  position: absolute;
  width: 35.51%;
  height: 44.72%;
  top: 55.28%;
  left: 64.49%;
}

.idx-mg-page .idx-mg-x__vs-6 {
  position: absolute;
  width: 75.36%;
  height: 100%;
  top: 0;
  left: 24.64%;
}

.idx-mg-page .idx-mg-x__vs-7 {
  position: absolute;
  width: 100%;
  height: 77.24%;
  top: 22.76%;
  left: 0;
}

.idx-mg-page .idx-mg-x__vs-8 {
  position: absolute;
  width: 28.26%;
  height: 77.24%;
  top: 22.76%;
  left: 71.74%;
}

.idx-mg-page .idx-mg-x__ace {
  position: relative;
  width: 25px;
  height: 25px;
  margin-top: -2.5px;
  margin-bottom: -2.5px;
}

.idx-mg-page .idx-mg-x__image {
  position: relative;
  align-self: stretch;
  width: 100%;
  height: 60px;
  object-fit: cover;
}

.idx-mg-page .idx-mg-shell {
  padding: 10px;
  flex: 1;
  align-self: stretch;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.idx-mg-page .idx-mg-shell__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  flex: 1;
  align-self: stretch;
  width: 100%;
  flex-grow: 1;
}

.idx-mg-page .idx-mg-shell__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  position: relative;
  flex: 1;
  align-self: stretch;
  width: 100%;
  flex-grow: 1;
}

/* 태블릿 이하: 상단 게임 카테고리 (토큰/벳365 페이지와 동형, 데스크톱 숨김) */
.idx-mg-page .idx-tg-game-cat-row {
  display: none;
}

@media (max-width: 1024px) {
  .idx-mg-page .idx-tg-game-cat-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
    align-self: stretch;
    position: relative;
    background-color: #272a31;
    border-radius: 16px;
    overflow: hidden;
    gap: 4px;
    padding: 8px 14px;
    margin-bottom: 10px;
    box-sizing: border-box;

  }
}

.idx-mg-page .idx-tg-game-cat-row > .idx-casino-cat-btn {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: opacity 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 3px;
  position: relative;
  width: 100%;
  min-height: 30px;
  border-radius: 3px;
  background: transparent;
  color: #ffffff;
  font-family: "Inter", Helvetica;
  font-weight: 600;
  font-size: 12px;
  line-height: 14.4px;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;
}

.idx-mg-page .idx-tg-game-cat-row > .idx-casino-cat-btn:visited {
  color: #ffffff;
}

.idx-mg-page .idx-tg-game-cat-row > .idx-casino-cat-btn:not(.is-selected) {
  opacity: 0.35;
  background-color: transparent;
  box-shadow: none;
}

.idx-mg-page .idx-tg-game-cat-row > .idx-casino-cat-btn.is-selected {
  opacity: 1;
  background-color: #3b3f46;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.idx-mg-page .idx-tg-game-cat-row > .idx-casino-cat-btn:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: 2px;
}

.idx-mg-page .idx-mg-board {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  position: relative;
  flex: 1;
  align-self: stretch;
  width: 100%;
  flex-grow: 1;
}

.idx-mg-page .idx-mg-board__list {
  display: flex;
  flex-direction: column;
  min-width: 320px;
  /* 게임 줄/컨텐츠를 좌우로 꽉 채우기 */
  align-items: stretch;
  gap: 4px;
  position: relative;
  flex: 1;
  align-self: stretch;
  flex-grow: 1;
}

.idx-mg-page .idx-mg-board__providers {
  display: flex;
  height: 80px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  position: relative;
  align-self: stretch;
  width: 100%;
  background-color: #272a31;
  border-radius: 16px;
  overflow: hidden;
}

.idx-mg-page .idx-mg-board__provider-frame--lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0px 3px;
  position: relative;
  flex: 1;
  align-self: stretch;
  flex-grow: 1;
  background-color: #3b3f46;
  border-radius: 10px;
}

.idx-mg-page .idx-mg-board__provider-icon {
  position: relative;
  width: 25px;
  height: 25px;
  aspect-ratio: 1;
}

.idx-mg-page .idx-mg-board__provider-label--alt {
  position: relative;
  display: -webkit-box;
  align-items: center;
  justify-content: center;
  width: fit-content;
  font-family: "Inter", Helvetica;
  font-weight: 600;
  color: #ffffff;
  font-size: 12px;
  text-align: center;
  letter-spacing: -0.06px;
  line-height: 14.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.idx-mg-page .idx-mg-board__provider-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0px 3px;
  position: relative;
  flex: 1;
  align-self: stretch;
  flex-grow: 1;
  border-radius: 3px;
  opacity: 0.2;
}

/* idx-mg-board__providers: 단일 선택 · 클릭 시 시각 상태 전환 */
.idx-mg-page .idx-mg-board__providers > .idx-mg-board__provider-btn {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition:
    opacity 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    border-radius 0.18s ease;
}

.idx-mg-page .idx-mg-board__providers > .idx-mg-board__provider-btn:not(.is-selected) {
  opacity: 0.35;
  background-color: transparent;
  border-radius: 10px;
  box-shadow: none;
}

.idx-mg-page .idx-mg-board__providers > .idx-mg-board__provider-btn.is-selected {
  opacity: 1;
  background-color: #3b3f46;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.idx-mg-page .idx-mg-board__providers > .idx-mg-board__provider-btn:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: 2px;
}

.idx-mg-page .idx-mg-board__providers > .idx-mg-board__provider-btn:active:not(:focus-visible) {
  opacity: 0.85;
}

.idx-mg-page .idx-mg-board__providers > .idx-mg-board__provider-btn.is-selected:active:not(:focus-visible) {
  opacity: 1;
}

.idx-mg-page .layer {
  position: relative;
  width: 25px;
  height: 25px;
  aspect-ratio: 1;
  background-image: url(../../img/idx-em/11_Minigame_1/path8917-6.svg);
  background-size: 100% 100%;
}

.idx-mg-page .idx-mg-board__provider-label {
  display: -webkit-box;
  justify-content: center;
  font-size: 12px;
  text-align: center;
  letter-spacing: -0.06px;
  line-height: 14.4px;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  position: relative;
  align-items: center;
  width: fit-content;
  font-family: "Inter", Helvetica;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-x__group {
  position: relative;
  width: 29.44px;
  height: 25px;
  aspect-ratio: 1.18;
  background-image: url(../../img/idx-em/11_Minigame_1/v29.svg);
  background-size: 100% 100%;
}

.idx-mg-page .idx-mg-x__v16 {
  position: absolute;
  width: 100%;
  height: 94.61%;
  top: 5.39%;
  left: 0;
}

.idx-mg-page .idx-mg-x__v17 {
  position: absolute;
  width: 61.90%;
  height: 58.21%;
  top: 41.79%;
  left: 38.10%;
}

.idx-mg-page .idx-mg-x__v18 {
  position: absolute;
  width: 38.12%;
  height: 55.60%;
  top: 44.40%;
  left: 61.88%;
}

.idx-mg-page .idx-mg-x__v19 {
  position: absolute;
  width: 60.71%;
  height: 85.09%;
  top: 14.91%;
  left: 39.29%;
}

.idx-mg-page .idx-mg-x__v20 {
  position: absolute;
  width: 90.30%;
  height: 84.12%;
  top: 15.88%;
  left: 9.70%;
}

.idx-mg-page .idx-mg-x__v21 {
  position: absolute;
  width: 100%;
  height: 54.92%;
  top: 45.08%;
  left: 0;
}

.idx-mg-page .idx-mg-x__v22 {
  position: absolute;
  width: 61.26%;
  height: 94.87%;
  top: 5.13%;
  left: 38.74%;
}

.idx-mg-page .idx-mg-x__v23 {
  position: absolute;
  width: 21.48%;
  height: 55.97%;
  top: 44.03%;
  left: 78.52%;
}

.idx-mg-page .idx-mg-x__group-2 {
  position: relative;
  width: 25px;
  height: 25px;
  aspect-ratio: 1;
  background-image: url(../../img/idx-em/11_Minigame_1/v38.svg);
  background-size: 100% 100%;
}

.idx-mg-page .idx-mg-x__v24 {
  position: absolute;
  width: 76.99%;
  height: 69.93%;
  top: 30.07%;
  left: 23.01%;
}

.idx-mg-page .idx-mg-x__v25 {
  position: absolute;
  width: 48.57%;
  height: 60.55%;
  top: 39.45%;
  left: 51.43%;
}

.idx-mg-page .idx-mg-board__games {
  display: flex;
  height: 50px;
  align-items: center;
  /* 종목 버튼들이 좌우 끝까지 꽉 차게 */
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  position: relative;
  align-self: stretch;
  width: 100%;
  background-color: #272a31;
  border-radius: 16px;
  overflow: hidden;
}

/* 데스크톱: 종목 버튼도 균등 확장 */
.idx-mg-page .idx-mg-board__games > .idx-mg-board__game-btn {
  flex: 1 1 0;
  min-width: 0;
}

/* idx-mg-board__games: 단일 선택 · 활성 시 보라 배경(idx-mg-board__game-frame--lead 시안과 동일) */
.idx-mg-page .idx-mg-board__games > .idx-mg-board__game-btn {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition:
    opacity 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.idx-mg-page .idx-mg-board__games > .idx-mg-board__game-btn:not(.is-selected) {
  opacity: 0.42;
  background-color: transparent !important;
  box-shadow: none;
}

.idx-mg-page .idx-mg-board__games > .idx-mg-board__game-btn.is-selected {
  opacity: 1;
  background-color: var(--purple) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.idx-mg-page .idx-mg-board__games > .idx-mg-board__game-btn:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: 2px;
}

.idx-mg-page .idx-mg-board__games > .idx-mg-board__game-btn:active:not(:focus-visible) {
  opacity: 0.88;
}

.idx-mg-page .idx-mg-board__games > .idx-mg-board__game-btn.is-selected:active:not(:focus-visible) {
  opacity: 1;
}

.idx-mg-page .idx-mg-board__game-frame--lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0px 10px;
  position: relative;
  flex: 1;
  align-self: stretch;
  flex-grow: 1;
  background-color: var(--purple);
  border-radius: 10px;
}

.idx-mg-page .idx-mg-board__game-title {
  position: relative;
  display: -webkit-box;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  font-family: "Inter", Helvetica;
  font-weight: 600;
  color: #ffffff;
  font-size: 12px;
  text-align: center;
  letter-spacing: -0.06px;
  line-height: 14.4px;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.idx-mg-page .idx-mg-board__game-timer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  font-family: "Digital Numbers-Regular", Helvetica;
  font-weight: 400;
  color: #eeff00;
  font-size: 8px;
  text-align: center;
  letter-spacing: -0.04px;
  line-height: 9.6px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-board__game-frame {
  display: flex;
  flex-direction: column;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0px 10px;
  position: relative;
  flex: 1;
  flex-grow: 1;
  border-radius: 10px;
}

.idx-mg-page .idx-mg-board__game-status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  font-family: "Inter", Helvetica;
  font-weight: 400;
  color: #ff4e00;
  font-size: 8px;
  text-align: center;
  letter-spacing: -0.04px;
  line-height: 9.6px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-board__stage {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-live {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px;
  position: relative;
  flex: 1;
  flex-grow: 1;
  min-width: 0;
  background-color: #272a31;
  border-radius: 16px;
  overflow: hidden;
}

.idx-mg-page .idx-mg-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  gap: 10px;
  margin: auto;
}

.idx-mg-page .idx-mg-empty__img {
  display: block;
  margin: 0 auto;
}

.idx-mg-page .idx-mg-live__viewport {
  position: relative;
  align-self: stretch;
  width: 100%;
  border-radius: 0;
  aspect-ratio: 1.78;
  background-image: url(../../img/idx-em/11_Minigame_1/idx-mg-live.svg);
  background-size: cover;
  background-position: 50% 50%;
}

/* 미니게임 라이브 — banner_loading 플레이스홀더 미사용(iframe만 표시) */
.idx-mg-page .idx-mg-live__viewport .idx-mg-live__banner-img,
.idx-mg-page .idx-mg-live__banner-img,
.idx-mg-page .banner_loading,
.game_mini .banner_loading,
.game_mini .live_picture-1 .banner_loading {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}

.idx-mg-page .idx-mg-markets {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px;
  position: relative;
  flex: 1;
  align-self: stretch;
  flex-grow: 1;
  min-width: 0;
  background-color: #272a31;
  border-radius: 16px;
  overflow: hidden;
}

/* 데스크톱: 라이브(iframe) 6 · 베팅선택(idx-mg-markets) 4 */
@media (min-width: 1025px) {
  .idx-mg-page .idx-mg-board__stage {
    gap: 6px;
  }

  .idx-mg-page .idx-mg-board__stage > .idx-mg-live {
    flex: 6 1 0;
    min-width: 0;
  }

  .idx-mg-page .idx-mg-board__stage > .idx-mg-markets {
    flex: 4 1 0;
    min-width: 0;
  }
}

.idx-mg-page .idx-mg-markets__head {
  justify-content: space-between;
  padding: 5px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-markets__event-line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  font-family: "Inter", Helvetica;
  font-weight: 600;
  color: #ffffff;
  font-size: 12px;
  text-align: center;
  letter-spacing: -0.06px;
  line-height: 17.4px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-markets__meta-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-markets__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  position: relative;
  flex: 0 0 auto;
  background-color: #212328;
  border-radius: 4px 0px 0px 4px;
}

.idx-mg-page .idx-mg-markets__meta-text {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: fit-content;
  margin-top: -1px;
  font-family: "Inter", Helvetica;
  font-weight: 400;
  color: #ffffff;
  font-size: 10px;
  text-align: right;
  letter-spacing: -0.05px;
  line-height: 14.5px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-markets__countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  position: relative;
  flex: 0 0 auto;
  background-color: var(--purple);
  border-radius: 0px 4px 4px 0px;
}

.idx-mg-page .idx-mg-markets__sections {
  gap: 2px;
  padding: 0px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-market-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-market-card__head {
  height: 20px;
  gap: 4px;
  align-self: stretch;
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.idx-mg-page .idx-mg-market-card__marker {
  position: relative;
  width: 2px;
  height: 10px;
  background-color: var(--purple);
  border-radius: 2px;
}

.idx-mg-page .idx-mg-market-card__label {
  position: relative;
  display: flex;
  align-items: center;
  width: 64px;
  height: 20px;
  margin-top: -1px;
  font-family: "Inter", Helvetica;
  font-weight: 400;
  color: #99a1af;
  font-size: 10px;
  letter-spacing: -0.05px;
  line-height: 120px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-market-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-market-card__row {
  gap: 2px;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  position: relative;
}

.idx-mg-page .idx-mg-market-card__odds-left {
  height: 25px;
  justify-content: space-around;
  gap: 4px;
  padding: 4px 6px;
  flex: 1;
  flex-grow: 1;
  background-color: #4a4f56;
  border-radius: 10px 0px 0px 0px;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}

.idx-mg-page .idx-mg-market-card__odd-value {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin-top: -1px;
  font-family: "Inter", Helvetica;
  font-weight: 600;
  color: #ffffff;
  font-size: 12px;
  text-align: center;
  letter-spacing: -0.06px;
  line-height: 17.4px;
}

.idx-mg-page .idx-mg-market-card__odds-right {
  height: 25px;
  justify-content: space-around;
  gap: 4px;
  padding: 4px 6px;
  flex: 1;
  flex-grow: 1;
  background-color: #4a4f56;
  border-radius: 0px 10px 0px 0px;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}

.idx-mg-page .idx-mg-market-card__picks {
  justify-content: center;
  padding: 6px;
  flex: 1;
  flex-grow: 1;
  background-color: #3b3f46;
  border-radius: 0px 0px 0px 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}

.idx-mg-page .idx-mg-market-card__pick,
.idx-mg-page .idx-mg-market-card__pick-alt,
.idx-mg-page .idx-mg-market-card__pick-player,
.idx-mg-page .idx-mg-market-card__pick-tie,
.idx-mg-page .idx-mg-market-card__pick-ou-a,
.idx-mg-page .idx-mg-market-card__pick-ou-b {
  cursor: pointer;
}

/* 베팅 셀 선택 — 노란 링 (부모 overflow:hidden 에서도 보이도록 inset) */
.idx-mg-page .idx-mg-market-card__pick.is-selected,
.idx-mg-page .idx-mg-market-card__pick-alt.is-selected,
.idx-mg-page .idx-mg-market-card__pick-player.is-selected,
.idx-mg-page .idx-mg-market-card__pick-tie.is-selected,
.idx-mg-page .idx-mg-market-card__pick-ou-a.is-selected,
.idx-mg-page .idx-mg-market-card__pick-ou-b.is-selected {
  position: relative;
  z-index: 1;
  box-shadow:
    inset 0 0 0 2px #ffee00,
    0 0 0 2px rgba(255, 238, 0, 0.4);
}

.idx-mg-page .idx-mg-market-card__pick-ou-a.is-selected,
.idx-mg-page .idx-mg-market-card__pick-ou-b.is-selected {
  border-color: #ffee00;
}

.idx-mg-page .idx-mg-market-card__pick--locked {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
}

.idx-mg-page .idx-mg-market-card__pick {
  display: flex;
  flex-direction: column;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  background-color: #1b6bcf;
  border-radius: 25px;
  aspect-ratio: 1;
}

.idx-mg-page .idx-mg-market-card__pick-label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  font-family: "Inter", Helvetica;
  font-weight: 700;
  color: #ffffff;
  font-size: 16px;
  text-align: center;
  letter-spacing: -0.08px;
  line-height: 23.2px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-market-card__pick-cell-right {
  justify-content: center;
  padding: 6px;
  flex: 1;
  flex-grow: 1;
  background-color: #3b3f46;
  border-radius: 0px 0px 10px 0px;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}

.idx-mg-page .idx-mg-market-card__pick-alt {
  display: flex;
  flex-direction: column;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  background-color: #f66c05;
  border-radius: 25px;
  aspect-ratio: 1;
}

.idx-mg-page .idx-mg-market-card__odds-left-mid {
  height: 25px;
  justify-content: space-around;
  gap: 4px;
  padding: 4px 6px;
  flex: 1;
  flex-grow: 1;
  background-color: #4a4e55;
  border-radius: 10px 0px 0px 0px;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}

.idx-mg-page .idx-mg-market-card__odds-mid {
  height: 25px;
  justify-content: space-around;
  gap: 4px;
  padding: 4px 6px;
  flex: 1;
  flex-grow: 1;
  background-color: #4a4f56;
  display: flex;
  align-items: center;
  position: relative;
}

.idx-mg-page .idx-mg-market-card__pick-player {
  display: flex;
  flex-direction: column;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  background-color: #1b6bcf;
  border-radius: 25px;
}

.idx-mg-page .idx-mg-market-card__pick-long {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  font-family: "Inter", Helvetica;
  font-weight: 700;
  color: #ffffff;
  font-size: 12px;
  text-align: center;
  letter-spacing: -0.06px;
  line-height: 17.4px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-market-card__pick-tie-cell {
  justify-content: center;
  padding: 6px;
  flex: 1;
  flex-grow: 1;
  background-color: #3b3f46;
  display: flex;
  align-items: center;
  position: relative;
}

.idx-mg-page .idx-mg-market-card__pick-tie {
  display: flex;
  flex-direction: column;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  background-color: #4ea65b;
  border-radius: 25px;
}

.idx-mg-page .idx-mg-market-card__pick-cell-ou {
  justify-content: center;
  padding: 6px;
  flex: 1;
  flex-grow: 1;
  background-color: #3b3f46;
  border-radius: 0px 0px 10px 0px;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}

.idx-mg-page .idx-mg-market-card__pick-ou-a {
  display: flex;
  flex-direction: column;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  border-radius: 25px;
  border: 2px solid;
  border-color: #1b6bcf;
  aspect-ratio: 1;
}

.idx-mg-page .idx-mg-market-card__pick-ou-b {
  display: flex;
  flex-direction: column;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  border-radius: 25px;
  border: 2px solid;
  border-color: #f66c05;
  aspect-ratio: 1;
}

.idx-mg-page .idx-mg-history {
  margin-top: 5px;
  padding: 10px;
  background-color: #272a31;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-history__head {
  flex-direction: column;
  gap: 6px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-history__title-chip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 273px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-history__title-text {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: -1px;
  font-family: "Inter", Helvetica;
  font-weight: 400;
  color: #d1d5dc;
  font-size: 12px;
  text-align: center;
  letter-spacing: -0.06px;
  line-height: 17.4px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-history__scroll {
  gap: 5px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-history__thead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  border-radius: 5px;
  overflow: hidden;
}

.idx-mg-page .idx-mg-history__th {
  height: 30px;
  justify-content: center;
  padding: 4px 6px;
  flex: 1;
  flex-grow: 1;
  background-color: #212328;
  display: flex;
  align-items: center;
  position: relative;
}

.idx-mg-page .idx-mg-history__th-text {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  font-family: "Inter", Helvetica;
  font-weight: 400;
  color: #99a1af;
  font-size: 10px;
  text-align: center;
  letter-spacing: -0.05px;
  line-height: 14.5px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-history__rows {
  gap: 0;
  flex: 0 0 auto;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  align-self: stretch;
  width: 100%;
}

.idx-mg-page .idx-mg-history__scroll > .idx-mg-history__thead,
.idx-mg-page .idx-mg-history__scroll > .idx-mg-history__rows {
  margin-top: 5px;
}

.idx-mg-page .idx-mg-history__scroll > :first-child {
  margin-top: 0;
}

.idx-mg-page .idx-mg-history__row {
  gap: 2px;
  margin-top: 5px;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}

.idx-mg-page .idx-mg-history__rows > .idx-mg-history__row:first-child {
  margin-top: 0;
}

.idx-mg-page .idx-mg-history__cell {
  height: 30px;
  justify-content: center;
  gap: 4px;
  padding: 4px 6px;
  flex: 1;
  flex-grow: 1;
  background-color: #3b3f46;
  display: flex;
  align-items: center;
  position: relative;
}

.idx-mg-page .idx-mg-history__cell-text {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  font-family: "Inter", Helvetica;
  font-weight: 400;
  color: #ffffff;
  font-size: 12px;
  text-align: center;
  letter-spacing: -0.06px;
  line-height: 17.4px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-history__action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  font-family: "Inter", Helvetica;
  font-weight: 400;
  color: #ff4e00;
  font-size: 12px;
  text-align: center;
  letter-spacing: -0.06px;
  line-height: 17.4px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-board__pager {
  display: flex;
  height: 30px;
  align-items: center;
  position: relative;
  align-self: stretch;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
}

.idx-mg-page .idx-mg-board__pager-num {
  justify-content: center;
  flex: 1;
  height: 20px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  letter-spacing: -0.07px;
  line-height: 20.3px;
  position: relative;
  display: flex;
  align-items: center;
  font-family: "Inter", Helvetica;
  color: #eeff00;
  white-space: nowrap;
}

.idx-mg-page .user-idx-mg-board {
  display: flex;
  flex-direction: column;
  width: 300px;
  align-items: flex-start;
  gap: 5px;
  position: relative;
}

.idx-mg-page .idx-mg-x__div-8 {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  background-color: #272a31;
  border-radius: 16px;
  overflow: hidden;
}

.idx-mg-page .idx-mg-x__div-9 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-slip__user-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  border-radius: 10px 10px 0px 0px;
  overflow: hidden;
}

.idx-mg-page .idx-mg-x__div-10 {
  gap: 4px;
  display: inline-flex;
  align-items: center;
  position: relative;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-x__ico-prof {
  width: 14px;
  height: 14px;
  position: relative;
  aspect-ratio: 1;
}

.idx-mg-page .idx-mg-x__tw-29 {
  position: relative;
  display: flex;
  align-items: center;
  width: fit-content;
  margin-top: -1px;
  font-family: "Inter", Helvetica;
  font-weight: 600;
  color: #ffffff;
  font-size: 14px;
  letter-spacing: -0.07px;
  line-height: 20.3px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-x__level {
  display: flex;
  width: 30px;
  height: 20px;
  background-color: #fa52ff;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.idx-mg-page .idx-mg-x__tw-30 {
  font-size: 10px;
  letter-spacing: -0.05px;
  line-height: 14.5px;
  position: relative;
  display: flex;
  align-items: center;
  width: fit-content;
  margin-top: -1px;
  font-family: "Inter", Helvetica;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-x__tw-31 {
  width: fit-content;
  margin-top: -1px;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: -0.05px;
  line-height: 14.5px;
  position: relative;
  display: flex;
  align-items: center;
  font-family: "Inter", Helvetica;
  color: #eeff00;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-slip__avatar-row {
  gap: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-x__ico-msg {
  position: relative;
  width: 14.23px;
  height: 14.17px;
  margin-left: -0.12px;
  aspect-ratio: 1;
}

.idx-mg-page .idx-mg-x__tw-32 {
  position: relative;
  display: flex;
  align-items: center;
  width: fit-content;
  margin-top: -1px;
  font-family: "Inter", Helvetica;
  font-weight: 400;
  color: #ffffff;
  font-size: 14px;
  letter-spacing: -0.07px;
  line-height: 20.3px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-x__tw-33 {
  width: fit-content;
  margin-top: -1px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.07px;
  line-height: 20.3px;
  position: relative;
  display: flex;
  align-items: center;
  font-family: "Inter", Helvetica;
  color: #eeff00;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-x__div-11 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  background-color: #303338;
  border-radius: 10px;
  overflow: hidden;
}

.idx-mg-page .idx-mg-x__image-wrap {
  position: relative;
  width: 15px;
  height: 15px;
  border-radius: 7.5px;
  border: 1px solid;
  border-color: var(--purple);
  aspect-ratio: 1;
}

.idx-mg-page .idx-mg-x__image-2 {
  position: absolute;
  top: 4px;
  left: 3px;
  width: 8px;
  height: 7px;
}

.idx-mg-page .idx-mg-x__tw-34 {
  display: flex;
  width: fit-content;
  margin-top: -1px;
  font-weight: 400;
  color: #d1d5dc;
  white-space: nowrap;
  position: relative;
  align-items: center;
  font-family: "Inter", Helvetica;
  font-size: 12px;
  letter-spacing: -0.06px;
  line-height: 17.4px;
}

.idx-mg-page .idx-mg-slip__tool-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
  position: relative;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-x__tw-35 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: fit-content;
  margin-top: -1px;
  font-family: "Inter", Helvetica;
  font-weight: 600;
  color: #eeff00;
  font-size: 12px;
  text-align: right;
  letter-spacing: -0.06px;
  line-height: 17.4px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-x__tw-36 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: fit-content;
  margin-top: -1px;
  font-family: "Inter", Helvetica;
  font-weight: 400;
  color: #ffffff;
  font-size: 12px;
  text-align: right;
  letter-spacing: -0.06px;
  line-height: 17.4px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-x__img-wrap {
  position: relative;
  width: 14.88px;
  height: 14.88px;
  aspect-ratio: 1;
  background-image: url(../../img/idx-em/11_Minigame_1/v41.svg);
  background-size: 100% 100%;
}

.idx-mg-page .idx-mg-x__v26 {
  position: absolute;
  width: 67.70%;
  height: 71.48%;
  top: 28.52%;
  left: 32.30%;
}

.idx-mg-page .idx-mg-x__point-wrap {
  display: flex;
  flex-direction: column;
  width: 15px;
  height: 15px;
  align-items: center;
  justify-content: center;
  position: relative;
  aspect-ratio: 1;
}

.idx-mg-page .idx-mg-x__ico-point-a {
  background-image: url(../../img/idx-em/11_Minigame_1/v43.svg);
  position: relative;
  width: 12.33px;
  height: 15px;
  background-size: 100% 100%;
}

.idx-mg-page .idx-mg-x__roulette {
  position: relative;
  width: 15px;
  height: 15px;
  overflow: hidden;
  aspect-ratio: 1;
}

.idx-mg-page .idx-mg-x__group-3 {
  position: relative;
  width: 94.12%;
  height: 100.00%;
  left: 2.94%;
  display: flex;
  background-image: url(../../img/idx-em/11_Minigame_1/v45.svg);
  background-size: 100% 100%;
}

.idx-mg-page .idx-mg-x__v27 {
  flex: 1;
  width: 4.37px;
}

.idx-mg-page .idx-mg-slip__idx-mg-markets__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  background-color: #3b3f46;
  border-radius: 10px;
  overflow: hidden;
  border-color: var(--purple);
}

.idx-mg-page .idx-mg-slip__header-row {
  gap: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-x__chk-on {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  position: relative;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-x__chk-on-2 {
  position: relative;
  width: 12px;
  height: 12px;
  aspect-ratio: 1;
  background-image: url(../../img/idx-em/11_Minigame_1/v47.svg);
  background-size: 100% 100%;
}

.idx-mg-page .idx-mg-x__v28 {
  position: absolute;
  top: calc(50.00% - 4px);
  left: calc(50.00% - 4px);
  width: 9px;
  height: 7px;
  aspect-ratio: 1.33;
}

.idx-mg-page .idx-mg-x__tw-37 {
  position: relative;
  display: flex;
  align-items: center;
  width: fit-content;
  margin-top: -1px;
  font-family: "Inter", Helvetica;
  font-weight: 400;
  color: #99a1af;
  font-size: 10px;
  letter-spacing: -0.05px;
  line-height: 12px;
  white-space: nowrap;
}

.idx-mg-page .line {
  position: relative;
  width: 1px;
  height: 12px;
  object-fit: cover;
}

.idx-mg-page .idx-mg-x__del {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  position: relative;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-x__del-2 {
  position: relative;
  width: 10px;
  height: 10px;
  aspect-ratio: 1;
}

.idx-mg-page .idx-mg-x__v29 {
  position: absolute;
  width: 91.34%;
  height: 100%;
  top: 0;
  left: 8.66%;
}

.idx-mg-page .idx-mg-slip__bar {
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-slip__cash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  background-color: #3b3f46;
}

.idx-mg-page .idx-mg-slip__input {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  flex: 1;
  flex-grow: 1;
}

.idx-mg-page .idx-mg-slip__field {
  display: flex;
  height: 30px;
  align-items: center;
  justify-content: flex-end;
  padding: 4px 10px;
  position: relative;
  flex: 1;
  flex-grow: 1;
  background-color: #272a31;
  border-radius: 8px;
  overflow: hidden;
}

.idx-mg-page .idx-mg-x__tw-38 {
  position: relative;
  display: flex;
  align-items: center;
  width: fit-content;
  font-family: "Inter", Helvetica;
  font-weight: 600;
  color: #eeff00;
  font-size: 14px;
  letter-spacing: -0.07px;
  line-height: 20.3px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-slip__control {
  display: inline-flex;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  position: relative;
  flex: 0 0 auto;
  background-color: #e701e2;
  border-radius: 8px;
  overflow: hidden;
}

.idx-mg-page .idx-mg-x__tw-39 {
  position: relative;
  display: flex;
  align-items: center;
  width: fit-content;
  margin-top: -4.5px;
  margin-bottom: -2.5px;
  font-family: "Inter", Helvetica;
  font-weight: 700;
  color: #ffffff;
  font-size: 12px;
  letter-spacing: -0.06px;
  line-height: 17.4px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-slip__idx-mg-x__bet-lines {
  justify-content: center;
  gap: 2px;
  padding: 10px 15px;
  background-color: #3b3f46;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-slip__frame-a {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-slip__frame-b {
  display: flex;
  height: 30px;
  align-items: center;
  justify-content: center;
  gap: 1px;
  position: relative;
  flex: 1;
  flex-grow: 1;
  background-color: #303338;
  border-radius: 8px;
}

.idx-mg-page .idx-mg-x__tw-40 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: fit-content;
  font-family: "Inter", Helvetica;
  font-weight: 600;
  color: #7f8691;
  font-size: 12px;
  text-align: right;
  letter-spacing: -0.06px;
  line-height: 17.4px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-slip__frame-c {
  display: flex;
  height: 30px;
  align-items: center;
  justify-content: center;
  gap: 1px;
  position: relative;
  flex: 1;
  flex-grow: 1;
  background-color: #e701e2;
  border-radius: 8px;
}

.idx-mg-page .idx-mg-x__tw-41 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: fit-content;
  font-family: "Inter", Helvetica;
  font-weight: 600;
  color: #ffffff;
  font-size: 12px;
  text-align: right;
  letter-spacing: -0.06px;
  line-height: 17.4px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-slip__calc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 14px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  background-color: #3b3f46;
}

.idx-mg-page .idx-mg-slip__frame-d {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-slip__submit {
  display: flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  position: relative;
  align-self: stretch;
  width: 100%;
  background-color: #00bc7d;
  border-radius: 10px;
  box-shadow: 0px 0px 15px #10b9814c;
}

.idx-mg-page .idx-mg-x__tw-42 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  font-family: "Inter", Helvetica;
  font-weight: 700;
  color: #ffffff;
  font-size: 18px;
  text-align: center;
  letter-spacing: -0.09px;
  line-height: 26.1px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-slip__idx-mg-x__bet-idx-mg-slip__detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  border-radius: 10px;
  overflow: hidden;
}

.idx-mg-page .idx-mg-slip__detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 15px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  background-color: #303338;
}

.idx-mg-page .idx-mg-x__tw-43 {
  position: relative;
  display: flex;
  align-items: center;
  width: fit-content;
  margin-top: -1px;
  font-family: "Inter", Helvetica;
  font-weight: 400;
  color: #7f8691;
  font-size: 12px;
  letter-spacing: -0.06px;
  line-height: 17.4px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-x__tw-44 {
  display: flex;
  justify-content: flex-end;
  width: fit-content;
  margin-top: -1px;
  font-weight: 400;
  color: #d1d5dc;
  text-align: right;
  white-space: nowrap;
  position: relative;
  align-items: center;
  font-family: "Inter", Helvetica;
  font-size: 12px;
  letter-spacing: -0.06px;
  line-height: 17.4px;
}

.idx-mg-page .idx-mg-x__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 50px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  background-color: #272a31;
  border-top-width: 1px;
  border-top-style: solid;
  border-right-style: none;
  border-bottom-style: none;
  border-left-style: none;
  border-color: #1e2939;
}

.idx-mg-page .idx-mg-x__text-14 {
  display: inline-flex;
  align-items: flex-end;
  position: relative;
  flex: 0 0 auto;
}

.idx-mg-page .idx-mg-x__tw-45 {
  position: relative;
  width: fit-content;
  margin-top: -0.67px;
  font-family: "Inter", Helvetica;
  font-weight: 700;
  color: var(--purple);
  font-size: 20px;
  letter-spacing: -0.8px;
  line-height: 20px;
  white-space: nowrap;
}

.idx-mg-page .idx-mg-x__tw-46 {
  width: fit-content;
  font-weight: 700;
  color: #ffffff;
  font-size: 20px;
  letter-spacing: -0.8px;
  line-height: 16.3px;
  white-space: nowrap;
  position: relative;
  font-family: "Inter", Helvetica;
}

.idx-mg-page .idx-mg-x__container-2 {
  width: 794.34px;
  gap: 3px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.idx-mg-page .idx-mg-x__tw-47 {
  position: relative;
  align-self: stretch;
  margin-top: -1px;
  font-family: "Inter", Helvetica;
  font-weight: 400;
  color: #6a7282;
  font-size: 12px;
  text-align: right;
  letter-spacing: 0;
  line-height: 16px;
}

.idx-mg-page .idx-mg-x__brand {
  position: relative;
  align-self: stretch;
  font-family: "Inter", Helvetica;
  font-weight: 400;
  color: transparent;
  font-size: 12px;
  text-align: right;
  letter-spacing: 0;
  line-height: 16px;
}

.idx-mg-page .idx-mg-x__tw-48 {
  font-weight: 500;
  color: #f952ff;
}

.idx-mg-page .idx-mg-x__tw-49 {
  color: #6a7282;
}

.idx-mg-page .idx-mg-x__tw-50 {
  position: relative;
  align-self: stretch;
  font-family: "Inter", Helvetica;
  font-weight: 400;
  color: #6a7282;
  font-size: 12px;
  text-align: right;
  letter-spacing: 0;
  line-height: 16px;
}

/* 태블릿·모바일: 라이브 영역 위, 베팅(idx-mg-markets) 아래 */
@media (max-width: 1024px) {
  .idx-mg-page .idx-mg-board__stage {
    flex-direction: column;
    align-items: stretch;
  }

  .idx-mg-page .idx-mg-live,
  .idx-mg-page .idx-mg-markets {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    align-self: stretch;
  }

  /* 미니게임(empty) 전용: 본문 하단 여백 */
  .idx-mg-page.idx-mg-page--mini-empty {
    margin-bottom: 24px;
  }

  .idx-mg-page .idx-mg-board__list {
    min-width: 0;
  }

  .idx-mg-page .idx-mg-history {
    min-width: 0;
    overflow: hidden;
  }

  .idx-mg-page .idx-mg-history__scroll {
    overflow-x: hidden;
    padding: 8px 6px;
    box-sizing: border-box;
  }

  /* 베팅내역: 경기일시·회차·베팅내역·베팅금액·적중여부 5열 (베팅시간·배당·당첨금·삭제 숨김) */
  .idx-mg-page .idx-mg-history__thead .idx-mg-history__th:nth-child(3),
  .idx-mg-page .idx-mg-history__thead .idx-mg-history__th:nth-child(6),
  .idx-mg-page .idx-mg-history__thead .idx-mg-history__th:nth-child(7),
  .idx-mg-page .idx-mg-history__thead .idx-mg-history__th:nth-child(9),
  .idx-mg-page .idx-mg-history__row .idx-mg-history__cell:nth-child(3),
  .idx-mg-page .idx-mg-history__row .idx-mg-history__cell:nth-child(6),
  .idx-mg-page .idx-mg-history__row .idx-mg-history__cell:nth-child(7),
  .idx-mg-page .idx-mg-history__row .idx-mg-history__cell:nth-child(9) {
    display: none;
  }

  .idx-mg-page .idx-mg-history__thead,
  .idx-mg-page .idx-mg-history__row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr) minmax(0, 0.75fr) minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 2px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .idx-mg-page .idx-mg-history__rows {
    width: 100%;
    min-width: 0;
  }

  .idx-mg-page .idx-mg-history__th,
  .idx-mg-page .idx-mg-history__cell {
    flex: none;
    width: auto;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 30px;
    padding: 4px 2px;
    box-sizing: border-box;
  }

  .idx-mg-page .idx-mg-history__th-text,
  .idx-mg-page .idx-mg-history__cell-text {
    width: 100%;
    max-width: 100%;
    font-size: 10px;
    line-height: 1.25;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
}

/* 모바일: 제공사(넥슨스코어 등) 행 — 하단 라벨 숨김 / 게임 종목 — 4열 줄바꿈 */
@media (max-width: 768px) {
  .idx-mg-page .idx-mg-board__providers {
    height: auto;
    min-height: 52px;
    padding: 8px 6px;
  }

  .idx-mg-page .idx-mg-board__providers .idx-mg-board__provider-label,
  .idx-mg-page .idx-mg-board__providers .idx-mg-board__provider-label--alt {
    display: none;
  }

  .idx-mg-page .idx-mg-board__provider-frame--lead,
  .idx-mg-page .idx-mg-board__provider-frame {
    gap: 0;
    justify-content: center;
  }

  .idx-mg-page .idx-mg-board__games {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: auto;
    min-height: 0;
    align-items: stretch;
    justify-content: stretch;
    gap: 6px 8px;
    padding: 8px 10px;
    overflow: visible;
  }

  .idx-mg-page .idx-mg-board__games > .idx-mg-board__game-btn {
    width: 100%;
    min-width: 0;
  }

  .idx-mg-page .idx-mg-board__game-frame--lead,
  .idx-mg-page .idx-mg-board__game-frame {
    flex: none;
    flex-grow: 0;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 36px;
    padding: 4px 4px;
    box-sizing: border-box;
  }

  .idx-mg-page .idx-mg-board__game-title {
    -webkit-line-clamp: 2;
    font-size: 11px;
    line-height: 13px;
    white-space: normal;
  }
}
