html {
  height: 100%;
}

body {
  margin: 0;
  background: #0a0a0a;
  color: #fff;
  min-height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
}

.t2d-page {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  background:
    radial-gradient(
      ellipse at 0% 0%,
      rgba(192, 0, 17, 0.35) 0%,
      transparent 45%
    ),
    radial-gradient(
      ellipse at 100% 100%,
      rgba(252, 221, 154, 0.12) 0%,
      transparent 40%
    ),
    #0a0a0a;
}

.t2d-page--embed {
  min-height: auto;
}

.t2d-header {
  padding: 12px 16px 0;
  margin: 0 auto;
}

.t2d-header__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.t2d-container {
  margin: 0 auto;
  padding: 20px 12px 24px;
}

.t2d-page--embed .t2d-container {
  padding-top: 16px;
}

.t2d-title-block {
  margin-bottom: 16px;
}

.t2d-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.2;
  background: linear-gradient(
    180deg,
    #ffffff 15%,
    #fff0d6 32%,
    #e8a43b 55%,
    #d8b679 79%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.8));
}

.t2d-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.t2d-banners {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

/* APB result card */
.t2d-apb-card {
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #e0d09f 0%, #af996a 100%);
  color: #1a1508;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  position: relative;
}

.t2d-apb-card__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.t2d-apb-card__ribbon {
  grid-column: 1;
  justify-self: start;
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 24px;
}

.t2d-apb-card__ribbon-bg {
  display: block;
  height: 100%;
  width: auto;
}

.t2d-apb-card__ribbon-content {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px 0 4px;
}

.t2d-apb-card__ribbon-asia {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.t2d-apb-card__ribbon-text {
  font-size: 12px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #000;
  white-space: nowrap;
}

.t2d-apb-card__pb-wrap {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  margin-top: 2px;
  padding: 6px 4px 6px 6px;
  border-radius: 13px;
  background: #000;
}

.t2d-apb-card__pb-back {
  width: 6px;
  height: auto;
  flex-shrink: 0;
}

.t2d-apb-card__pb-logo {
  display: block;
  height: 12px;
  width: auto;
}

.t2d-apb-card__live {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 5px;
  margin-right: 0;
}

.t2d-apb-card__live--mobile {
  display: inline-flex;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.t2d-play-live {
  display: inline-flex;
  align-items: center;
  height: 18px;
  margin-top: 1px;
}

.t2d-play-live__pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
  width: max-content;
  max-width: 72px;
  height: 16px;
  padding: 0 10px 0 8px;
  margin-right: -9px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fcdd9a 0%, #c4a86a 55%, #8b6832 100%);
  border: 1px solid #966b2a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.t2d-page--th .t2d-play-live__pill {
  max-width: 64px;
  padding: 0 8px 0 7px;
}

.t2d-play-live__label {
  position: relative;
  z-index: 1;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.t2d-page--th .t2d-play-live__label {
  font-size: 7px;
  letter-spacing: -0.02em;
}

.t2d-play-live__btn {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.t2d-apb-card__livebox--desktop {
  display: none;
}

@keyframes t2d-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.t2d-apb-card__body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 45px 10px 10px;
}

.t2d-apb-card__asia {
  position: absolute;
  left: 13px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  object-fit: contain;
}

@media (min-width: 360px) {
  .t2d-apb-card__asia {
    left: 7%;
    width: 44px;
    height: 44px;
  }
}

@media (min-width: 430px) {
  .t2d-apb-card__asia {
    left: 13%;
  }
}

@media (min-width: 520px) {
  .t2d-apb-card__asia {
    left: 20%;
  }
}

@media (min-width: 640px) {
  .t2d-apb-card__asia {
    left: 24%;
  }
}

.t2d-apb-card__result {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.t2d-apb-card__result-label {
  margin: 0 0 4px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.2;
  color: #1a1508;
  white-space: nowrap;
}

.t2d-apb-card__result-date {
  font-weight: 700;
}

.t2d-apb-card__result-empty {
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #4c3920 0%, #775932 100%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

.t2d-apb-card__balls {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 6px 8px;
  border-radius: 8px;
  background: linear-gradient(180deg, #4c3920 0%, #775932 100%);
}

.t2d-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  height: auto;
  padding: 0 2px;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

.t2d-ball--2d {
  min-width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background:
    linear-gradient(180deg, #47361e 0%, #060606 100%) padding-box,
    linear-gradient(311.02deg, #8b6832 6.09%, #fcdd9a 54.51%, #966b2a 100%)
      border-box;
  color: #fcdd9a;
  font-size: 18px;
}

.t2d-ball--plus {
  background: transparent;
  color: #fff;
  min-width: auto;
  padding: 0 2px;
  font-size: 19px;
}

.t2d-apb-card__livebox {
  display: none;
}

.t2d-apb-card__live-left {
  display: flex;
  /* flex-direction: column; */
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-shrink: 0;
}

.t2d-apb-card__live-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.t2d-apb-card__live-img {
  width: 32px;
  height: 32px;
}

.t2d-apb-card__live-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.t2d-apb-card__live-title {
  font-size: 8px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #fff;
  text-align: center;
  width: 30px;
  white-space: break-spaces;
}

.t2d-apb-card__watch:hover,
.t2d-apb-card__watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  width: 100%;
  padding: 4px 8px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f5f5f5 0%, #b8b8b8 100%);
  color: #2a2a2a;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  line-height: 1.2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  cursor: pointer;
}

.t2d-apb-card__watch img {
  flex-shrink: 0;
  opacity: 0.65;
}

.t2d-apb-card__watch--static {
  cursor: default;
}

.t2d-apb-card__live-date {
  font-size: 8px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

/* Promo card */
.t2d-promo-card {
  position: relative;
  display: none;
  align-items: stretch;
  min-height: 112px;
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(359.56deg, #601420 16.62%, #1b1112 84.8%);
  border: 1px solid rgba(252, 221, 154, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.t2d-promo-card__brand {
  position: absolute;
  top: 5px;
  left: 10px;
  z-index: 2;
}

.t2d-promo-card__brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.t2d-promo-card__brand-asia {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

.t2d-promo-card__brand-pb {
  display: block;
  height: 10px;
  width: auto;
}

.t2d-promo-card__girl {
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 128px;
  max-width: 48%;
  height: auto;
  object-fit: contain;
  object-position: left bottom;
  pointer-events: none;
  z-index: 1;
}

.t2d-promo-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0px;
  margin-left: auto;
  width: 56%;
  padding: 26px 10px 10px 0;
  transform: translateY(-8px);
}

.t2d-promo-card__headline {
  display: flex;
  align-items: center;
  gap: 7px;
}

.t2d-promo-card__headline.th {
  gap: 37px;
}

.t2d-promo-card__free-text {
  font-size: 26px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(1deg, #ffde83 0.4%, #f6dca6 50%, #a68047 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  -webkit-text-stroke: 0.4px #8b6832;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.8));
}

.t2d-promo-card__lucky-text {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: -0.01em;
  background: linear-gradient(
    180deg,
    #ffffff 15%,
    #fff0d6 32%,
    #e8a43b 55%,
    #d8b679 79%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.8));
}

.t2d-promo-card__daily {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 9px;
  border-radius: 9px;
  background: #850202;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.t2d-promo-card__worth {
  margin: 5px 0 0;
  padding-top: 2px;
  border-top: 1px solid rgba(252, 221, 154, 0.25);
  font-size: 11px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.92);
}

.t2d-promo-card__worth em {
  font-style: italic;
  font-weight: 500;
}

.t2d-promo-card__worth strong {
  margin-left: 4px;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(
    180deg,
    #ffffff 15%,
    #fff0d6 32%,
    #e8a43b 55%,
    #d8b679 79%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media (min-width: 780px) {
  .t2d-banners {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: stretch;
    gap: 8px;
  }

  .t2d-apb-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 124px;
  }

  .t2d-promo-card {
    display: flex;
    min-height: 124px;
  }

  .t2d-apb-card__live--mobile {
    display: none;
  }

  .t2d-apb-card__livebox--desktop {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 100%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .t2d-apb-card__top {
    position: relative;
    top: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    padding: 0;
    gap: 0;
  }

  .t2d-apb-card__ribbon {
    grid-column: 1;
    justify-self: start;
    height: 26px;
  }

  .t2d-apb-card__ribbon-asia {
    width: 18px;
    height: 18px;
  }

  .t2d-apb-card__ribbon-text {
    font-size: 13px;
  }

  .t2d-apb-card__pb-wrap {
    grid-column: 2;
    justify-self: center;
    height: 26px;
    margin-top: 2px;
    padding: 0 10px 0 7px;
  }

  .t2d-apb-card__pb-logo {
    height: 12px;
  }

  .t2d-apb-card__body {
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 4px 10px 4px;
    flex: 1;
  }

  .t2d-apb-card__asia {
    position: static;
    left: auto;
    bottom: auto;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
  }

  .t2d-apb-card__result {
    align-items: flex-start;
    text-align: left;
    flex: 0 1 auto;
    min-width: 0;
  }

  .t2d-apb-card__result-label {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .t2d-apb-card__balls {
    padding: 7px 10px;
    gap: 8px;
  }

  .t2d-ball {
    font-size: 21px;
  }

  .t2d-ball--2d {
    min-width: 24px;
    height: 24px;
    font-size: 19px;
  }

  .t2d-ball--plus {
    font-size: 21px;
  }

  .t2d-apb-card__livebox--desktop {
    margin-left: auto;
    flex-shrink: 0;
    min-width: 0;
    max-width: none;
    padding: 8px 12px;
    gap: 12px;
  }

  .t2d-apb-card__live-play {
    width: 32px;
    height: 32px;
  }

  .t2d-apb-card__live-play::after {
    border-width: 6px 0 6px 9px;
  }

  .t2d-apb-card__live-title {
    font-size: 9px;
    width: 38px;
  }

  .t2d-apb-card__live-date {
    font-size: 9px;
  }

  .t2d-apb-card__watch:hover,
  .t2d-apb-card__watch {
    font-size: 9px;
    padding: 5px 10px;
    cursor: pointer;
  }

  .t2d-promo-card__content {
    width: 59%;
    padding: 28px 10px 12px 0;
  }

  .t2d-promo-card__girl {
    width: 132px;
    max-width: 50%;
  }

  .t2d-promo-card__free-text {
    font-size: 32px;
  }

  /* .t2d-promo-card__lucky-text {
    font-size: 19px;
  } */

  .t2d-promo-card__worth {
    font-size: 11px;
  }

  .t2d-promo-card__worth strong {
    font-size: 15px;
  }
}

@media (min-width: 781px) and (max-width: 850px) {
  .t2d-apb-card__balls {
    padding: 4px 6px;
    gap: 5px;
  }
  .t2d-apb-card__result-label {
    font-size: 11px;
  }
}

/* Win alert */
.t2d-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  /* border: 1px solid rgba(252, 221, 154, 0.35); */
  background: linear-gradient(90deg, #4a3d31 0%, #181615 100%);
}

.t2d-alert__icon {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
}

.t2d-alert__text {
  flex: 1;
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

.t2d-alert__text strong {
  color: #fcdd9a;
  font-weight: 700;
}

.t2d-alert__close {
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #fcdd9a;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

/* Results table */
.t2d-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
}

.t2d-tabs__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #c19051;
  background: transparent;
  color: #c19051;
  -webkit-text-fill-color: #c19051;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.t2d-tabs__btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.t2d-tabs__btn--active {
  background: linear-gradient(90deg, #c19051 0%, #e3ba70 100%);
  color: #2a1d0c;
  -webkit-text-fill-color: #2a1d0c;
  border-color: transparent;
}

.t2d-table-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(252, 221, 154, 0.2);
  background: #141414;
}

.t2d-table-scroll {
  overflow-x: hidden;
}

.t2d-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 10px;
}

.t2d-table thead tr {
  background: linear-gradient(90deg, #c19051 0%, #c19051 100%);
  color: #1a1508;
}

.t2d-table th {
  padding: 8px 10px;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.15;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  vertical-align: middle;
}

.t2d-col-date {
  width: 15%;
}

.t2d-col-issue {
  width: 15%;
}

.t2d-col-lucky {
  width: 11%;
}

.t2d-col-source {
  width: 15%;
}

.t2d-col-result {
  width: 11%;
}

.t2d-col-status {
  width: 15%;
}

.t2d-col-amount {
  width: 18%;
  text-align: right !important;
  padding-right: 33px !important;
}

.t2d-col-wdate {
  width: 24%;
}

.t2d-col-winner {
  width: 34%;
}

.t2d-col-wnum {
  width: 18%;
}

.t2d-col-wamount {
  width: 24%;
  text-align: right !important;
  padding-right: 33px !important;
}

.t2d-table td {
  padding: 8px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
  text-align: left;
  font-size: 11px;
  line-height: 1.2;
}

.t2d-table tbody tr:nth-child(odd) {
  background: #1a1716;
}

.t2d-table tbody tr:nth-child(even) {
  background: #29221c;
}

.t2d-table__row--you {
  background: linear-gradient(90deg, #523b1a 0%, #2e210f 100%) !important;
}

.t2d-table__empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  padding: 24px 8px !important;
}

.t2d-source {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t2d-source--sportsbook {
  background: #5cb1ea1a;
  color: #5cb1ea;
}

.t2d-source--kingmaker {
  background: #a06dff1a;
  color: #a06dff;
}

.t2d-source--efg,
.t2d-source--abc,
.t2d-source--default {
  background: #24b9aa1a;
  color: #24b9aa;
}

.t2d-table__winner {
  text-align: left;
  padding-left: 10px !important;
}

.t2d-table__winner-name {
  color: #eec37c;
  font-weight: 600;
  word-break: break-all;
}

.t2d-table__row--you .t2d-table__winner-name {
  color: #ffde8c;
}

.t2d-you-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #2a1d0c;
  background: linear-gradient(90deg, #c19051 0%, #f2cc80 100%);
  vertical-align: middle;
}

.t2d-winners__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}

.t2d-winners__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #fcdd9a;
}

.t2d-winners__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.t2d-winners__datepicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 3px 4px;
  border-radius: 999px;
  border: 1px solid rgba(252, 221, 154, 0.45);
  background: rgba(26, 23, 22, 0.92);
  position: relative;
}

.t2d-winners__nav {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.t2d-winners__nav img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
  pointer-events: none;
}

.t2d-winners__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.t2d-winners__date-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 118px;
  height: 26px;
  padding: 0 6px;
  border: none;
  background: transparent;
  color: #f5e6c8;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.t2d-winners__cal-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E3BA70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

.t2d-winners__date-text {
  white-space: nowrap;
}

.t2d-winners__date-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  border: 0;
  padding: 0;
  margin: 0;
}

.t2d-winners__field {
  display: none;
}

.t2d-winners__search {
  display: none;
}

@media (min-width: 768px) {
  .t2d-page {
    padding-bottom: 48px;
  }
}

.ui-datepicker {
  z-index: 40 !important;
  background: #1a1716;
  border: 1px solid rgba(252, 221, 154, 0.35);
  border-radius: 8px;
  color: #ffffff;
}

.ui-datepicker .ui-datepicker-header {
  background: #231d18;
  border: none;
  color: #f2cc80;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  top: 4px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(252, 221, 154, 0.5);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.ui-datepicker .ui-datepicker-prev-hover,
.ui-datepicker .ui-datepicker-next-hover,
.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
  top: 4px;
  border-color: rgba(252, 221, 154, 0.85);
  background: linear-gradient(90deg, #c19051 0%, #e3ba70 100%);
}

.ui-datepicker .ui-datepicker-prev {
  left: 6px;
}

.ui-datepicker .ui-datepicker-next {
  right: 6px;
}

.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
  display: none;
}

.ui-datepicker .ui-datepicker-prev::before,
.ui-datepicker .ui-datepicker-next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #f2cc80;
  border-right: 2px solid #f2cc80;
  transform-origin: center;
}

.ui-datepicker .ui-datepicker-prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.ui-datepicker .ui-datepicker-next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.ui-datepicker .ui-datepicker-prev:hover::before,
.ui-datepicker .ui-datepicker-next:hover::before,
.ui-datepicker .ui-datepicker-prev-hover::before,
.ui-datepicker .ui-datepicker-next-hover::before {
  border-color: #2a1d0c;
}

.ui-datepicker .ui-state-default {
  background: transparent;
  border: none;
  color: #ffffff;
  text-align: center;
}

.ui-datepicker .ui-state-active,
.ui-datepicker .ui-state-hover {
  background: linear-gradient(90deg, #c19051 0%, #e3ba70 100%);
  color: #2a1d0c;
}

.t2d-winners__search {
  display: none;
}

.t2d-back-top {
  position: fixed;
  right: max(5px, calc((100vw - 1000px) / 2 + 2px));
  left: auto;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  transform: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.t2d-back-top img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  pointer-events: none;
}

.t2d-page--embed .t2d-back-top {
  position: sticky;
  right: 12px;
  left: auto;
  bottom: 8px;
  margin: 8px 0 0 auto;
  transform: none;
}

.t2d-cards {
  display: none;
  flex-direction: column;
  gap: 6px;
}

.t2d-card {
  position: relative;
  display: block;
  padding: 8px 10px 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(96, 80, 51, 0.45);
  background: #1a1716;
  overflow: hidden;
}

.t2d-card__bar {
  position: absolute;
  left: 0;
  top: 0px;
  bottom: 0px;
  width: 3px;
  border-radius: 2px;
  background: #8b6832;
}

.t2d-card--pending .t2d-card__bar {
  background: #8b6832;
}

.t2d-card--lose .t2d-card__bar {
  background: #eb5959;
}

.t2d-card--win .t2d-card__bar {
  background: #59d170;
}

.t2d-card__inner {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.t2d-card__upper {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.t2d-card__num {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid #605033;
  background: #29221c;
  color: #ffde8c;
  font-size: 15px;
  font-weight: 800;
}

.t2d-card__body {
  flex: 1;
  min-width: 0;
}

.t2d-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.t2d-card__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.t2d-card__row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.t2d-card__row--bottom {
  margin-top: 4px;
  justify-content: space-between;
}

.t2d-card__result {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.t2d-card__result strong {
  color: #fff;
  font-weight: 700;
}

.t2d-card__status {
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.t2d-card__status.t2d-status--pending {
  background: #ff7c001a;
  color: #ff7c00;
  -webkit-text-fill-color: #ff7c00;
}

.t2d-card__status.t2d-status--lose {
  background: #d51c1c1a;
  color: #d51c1c;
  -webkit-text-fill-color: #d51c1c;
}

.t2d-card__status.t2d-status--win {
  background: #1cd52f1a;
  color: #1cd52f;
  -webkit-text-fill-color: #1cd52f;
}

.t2d-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.t2d-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.t2d-card__date {
  font-size: 11px;
  color: #c7c2b8;
}

.t2d-card__issue {
  font-size: 10px;
  color: #c7c2b8;
  font-weight: 300;
}

.t2d-card__won {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.t2d-card__won--win {
  color: #59d170;
}

.t2d-card__won-prefix {
  color: #c7c2b8;
  font-weight: 400;
}

.t2d-card__name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #ffde8c;
  word-break: break-all;
}

.t2d-card__won-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
}

.t2d-card--you {
  border-color: #c19051;
}

.t2d-card--you .t2d-card__name > span:first-child {
  color: #ffde8c;
}

.t2d-card--winner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #605033;
  background: #141110;
}

.t2d-card--winner.t2d-card--you {
  background: linear-gradient(90deg, #523b1a 0%, #2e210f 100%);
  border-color: #e3ba708c;
  overflow: hidden;
  padding-left: 12px;
}

.t2d-card--winner.t2d-card--you .t2d-card__bar {
  background: #c19051;
}

.t2d-card--winner .t2d-card__num {
  background: #0f0f12;
  flex-shrink: 0;
  color: #ffde8c;
}

.t2d-card--winner .t2d-card__body {
  flex: 1;
  min-width: 0;
}

.t2d-card__winner-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.t2d-card__winner-main {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.t2d-card__winner-amount {
  display: flex;
  flex: 0 0 auto;
  min-width: 0;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 4px;
  text-align: right;
}

.t2d-card--winner .t2d-card__date {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.62);
}

.t2d-card--winner .t2d-card__won-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.t2d-card--winner .t2d-card__won--win {
  font-size: 12px;
  font-weight: 700;
  color: #59d170;
  line-height: 1.1;
  white-space: nowrap;
}

.t2d-mobile-only {
  display: none;
}

@media (max-width: 767px) {
  .t2d-back-top {
    /* Sit above Safari's bottom toolbar tap zone when chrome is hidden. */
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    right: 0px;
    width: 48px;
    height: 48px;
  }

  .t2d-page {
    padding-bottom: calc(50px + env(safe-area-inset-bottom, 0px));
  }

  .t2d-page--embed {
    padding-bottom: 24px;
  }

  .t2d-winners {
    padding-bottom: 8px;
  }

  .t2d-table {
    display: none;
  }

  .t2d-table-wrap:not(:has(.t2d-empty)) {
    display: none;
  }

  .t2d-cards {
    display: flex;
  }

  .t2d-tabs {
    gap: 8px;
  }

  .t2d-tabs__btn {
    flex: 1;
    min-height: 40px;
    border-radius: 8px;
  }

  .t2d-winners__title {
    display: none;
  }

  .t2d-winners__filters {
    width: 100%;
    align-items: center;
  }

  .t2d-winners__datepicker {
    width: 100%;
    justify-content: space-between;
    min-height: 38px;
    padding: 4px 6px;
  }

  .t2d-winners__nav {
    width: 28px;
    height: 28px;
  }

  .t2d-winners__date-btn {
    flex: 1;
    min-width: 0;
    height: 28px;
  }

  .t2d-winners__search {
    display: none;
  }

  .t2d-cards--winners {
    gap: 6px;
  }

  .t2d-card--winner {
    border-radius: 8px;
  }

  .t2d-card--winner .t2d-card__num {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 15px;
  }

  .t2d-card__winner-layout {
    align-items: flex-start;
    gap: 6px;
  }

  .t2d-card__winner-main {
    gap: 2px;
  }

  .t2d-card--winner .t2d-card__name {
    font-size: 12px;
    line-height: 1.2;
    color: white;
  }

  .t2d-card--winner .t2d-card__date {
    font-size: 9px;
  }

  .t2d-card--winner .t2d-card__won-label {
    font-size: 9px;
  }

  .t2d-card__winner-amount {
    justify-content: flex-start;
    gap: 4px;
  }

  .t2d-card--winner .t2d-card__won--win {
    font-size: 12px;
  }
}

.t2d-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 32px;
  text-align: center;
  background: #141414;
}

.t2d-empty__loading {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
}

.t2d-empty__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: #60503340;
}

.t2d-empty__icon {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.t2d-empty__title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: #fcdd9a;
}

.t2d-empty__desc {
  margin: 0 0 18px;
  max-width: 300px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.t2d-empty__btn,
.t2d-empty__btn:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 10px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(
    311.02deg,
    #8b6832 6.09%,
    #fcdd9a 54.51%,
    #966b2a 100%
  );
  color: #1a1508;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.t2d-table__date {
  color: rgba(255, 255, 255, 0.85);
}

.t2d-table__date-line {
  display: inline;
}

.t2d-table__date-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin-left: 8px;
}

.t2d-table__lucky {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 4px;
  border-radius: 4px;
  border: 1px solid #605033;
  background: #29221c;

  color: #fcdd9a;
  font-size: 11px;
  font-weight: 700;
}

.t2d-table--winners .t2d-table__lucky {
  background: #000000;
}

.t2d-table__result {
  color: #eec37c;
  font-weight: 500;
  word-break: break-word;
}

.t2d-status {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
}

.t2d-status--win {
  background: #1cd52f1a;
  color: #1cd52f;
  -webkit-text-fill-color: #1cd52f;
}

.t2d-status--lose {
  background: #d51c1c1a;
  color: #d51c1c;
  -webkit-text-fill-color: #d51c1c;
}

.t2d-status--pending {
  background: #ff7c001a;
  color: #ff7c00;
  -webkit-text-fill-color: #ff7c00;
}

.t2d-table__amount {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  text-align: right !important;
  padding-right: 33px !important;
}

.t2d-table__amount--win {
  color: #1cd52f;
  text-align: right !important;
}

@media (max-width: 519px) {
  .t2d-title {
    font-size: 20px;
  }

  .t2d-apb-card__body {
    flex-wrap: wrap;
  }

  .t2d-tabs {
    gap: 6px;
  }

  .t2d-tabs__btn {
    flex: 1;
    min-height: 34px;
    padding: 6px 8px;
    font-size: 11px;
  }

  .t2d-winners__toolbar {
    align-items: stretch;
  }

  .t2d-winners__filters {
    width: 100%;
  }

  .t2d-table th {
    font-size: 11px;
    padding: 7px 2px;
  }

  .t2d-table td {
    font-size: 11px;
    padding: 7px 2px;
  }

  .t2d-status {
    font-size: 9px;
    padding: 3px 5px;
  }
}
