@charset "UTF-8";

/* ===== GmarketSans 폰트 ===== */
@font-face {
  font-family: "GmarketSans";
  font-weight: 700;
  font-display: swap;
  src:
    local("Gmarket Sans Bold"),
    local("GmarketSans-Bold"),
    url("https://m.dhlottery.co.kr/resources/img/font/GmarketSansTTFBold.woff2") format("woff2");
}

@font-face {
  font-family: "GmarketSans";
  font-weight: 500;
  font-display: swap;
  src:
    local("Gmarket Sans Medium"),
    url("https://m.dhlottery.co.kr/resources/img/font/GmarketSansTTFMedium.woff2") format("woff2");
}

body,
iframe,
img,
p {
  padding: 0;
  margin: 0;
}

img,
iframe {
  border: 0;
}

#bottomBg {
  position: fixed;
  z-index: 501;
  bottom: 0;
  width: 100%;
  height: 49px;
  background: black;
  opacity: 0.8;
}

#bottomBadge {
  position: fixed;
  z-index: 502;
  bottom: 0;
  width: 100%;
  text-align: center;
}

#bottomBadge > a:first-child {
  margin-right: 8px;
}

#youtubeBtn {
  position: fixed;
  z-index: 503;
  top: 8px;
  right: 6px;
  background: url(/images/logo-youtube.svg) no-repeat;
  width: 52px;
  height: 36px;
}

#topImage {
  position: relative;
  z-index: 500;
  width: 100%;
  height: 50vw;
  max-height: 50vh;
}

.frame_wrap {
  position: relative;
  top: -68px;
  height: 1200px;
}

.lott_iframe {
  width: 100%;
  height: 100%;
}

/* ===== Lotto Result Styles (동행복권 스타일) ===== */
.lotto-result-wrap {
  position: relative;
  top: -60px;
  padding: 0 12px;
  z-index: 500;
}

.lotto-result-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 20px 8px;
}

/* 회차 헤더 */
.lotto-result-header {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #e4e6ea;
}

.lotto-result-title {
  font-family:
    "GmarketSans",
    -apple-system,
    sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #333;
  line-height: 1.5;
}

.lotto-result-title .lotto-turn {
  color: #11957d;
  font-weight: 700;
}

.lotto-result-date {
  font-family:
    "GmarketSans",
    -apple-system,
    sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  margin-top: 4px;
}

/* 당첨번호 영역 */
.lotto-result-numbers {
  padding: 20px 0 16px;
}

.result-ballWrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}

.main-numbers {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bonus-numbers {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.result-ballBox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.result-ball {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family:
    "GmarketSans",
    -apple-system,
    sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 36px;
  color: #fff;
}

.result-ball.num-0n {
  background-color: #e08f00;
}

.result-ball.num-1n {
  background-color: #0063cc;
}

.result-ball.num-2n {
  background-color: #d8314f;
}

.result-ball.num-3n {
  background-color: #6e7382;
}

.result-ball.num-4n {
  background-color: #2c9e44;
}

.result-ball.num-none {
  background-color: #f0f0f0;
  color: #b8bbc1;
}

.result-plus {
  font-family:
    "GmarketSans",
    -apple-system,
    sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  margin-top: 8px;
}

.ball-label {
  font-family:
    "GmarketSans",
    -apple-system,
    sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  margin-top: 8px;
  text-align: center;
}

/* ===== Win Result Box ===== */
.win-result-box {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px 16px;
  margin-top: 16px;
  text-align: center;
}

.win-title {
  font-family:
    "GmarketSans",
    -apple-system,
    sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.win-rank {
  font-family:
    "GmarketSans",
    -apple-system,
    sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.win-rank .highlight {
  color: #11957d;
  font-weight: 700;
}

.lose-text {
  color: #666;
  font-weight: 400;
}

/* ===== Notice Text ===== */
.notice-text {
  margin-top: 16px;
  padding: 12px 8px;
  font-size: 12px;
  color: #888;
  line-height: 1.6;
}

/* ===== Game List (내 번호 목록) ===== */
.game-list {
  margin-top: 8px;
}

.game-row {
  display: flex;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
}

.game-row:first-child {
  border-top: 1px solid #eee;
}

.game-label {
  width: 20px;
  font-family:
    "GmarketSans",
    -apple-system,
    sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  text-align: center;
}

.game-result {
  width: 54px;
  font-family:
    "GmarketSans",
    -apple-system,
    sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  margin-left: 8px;
}

.game-result.win {
  color: #11957d;
}

.game-result.lose {
  color: #999;
}

.game-numbers {
  display: flex;
  gap: 5px;
  flex: 1;
  justify-content: flex-end;
}

.result-ball.small {
  width: 32px;
  height: 32px;
  font-size: 14px;
  line-height: 32px;
}

.no-data {
  color: #999;
  font-size: 14px;
  padding: 20px 0;
  text-align: center;
}

/* ===== 연금복권720+ (Pension) Result Styles ===== */
.pension-result-wrap {
  position: relative;
  top: -60px;
  padding: 0 12px;
  z-index: 500;
}

.pension-result-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 20px 8px;
}

/* 회차 헤더 */
.pension-result-header {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #e4e6ea;
}

.pension-result-title {
  font-family:
    "GmarketSans",
    -apple-system,
    sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #333;
  line-height: 1.5;
}

.pension-result-title .pension-turn {
  color: #11957d;
  font-weight: 700;
}

.pension-result-date {
  font-family:
    "GmarketSans",
    -apple-system,
    sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  margin-top: 4px;
}

/* 당첨번호 영역 */
.pension-result-numbers {
  padding: 16px 0 8px;
}

.result-wfBall {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
}

.result-wfBall + .result-wfBall {
  border-top: 1px dashed #e4e6ea;
  margin-top: 8px;
  padding-top: 16px;
}

.wfBall-infoWrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.wfBall-rank {
  font-family:
    "GmarketSans",
    -apple-system,
    sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

.wfBall-money {
  font-family:
    "GmarketSans",
    -apple-system,
    sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.wfBall-money .color-g {
  color: #11957d;
  font-weight: 700;
}

.wf720-num-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 당첨번호 볼 - 테두리만 색상 */
.wf-ball {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family:
    "GmarketSans",
    -apple-system,
    sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #333;
  background: #fff;
  border: 3px solid transparent;
}

.wf-ball.pension-jo {
  border-color: #d9d9d9;
}

.wf-ball.wf-1n {
  border-color: #de4c0e;
}

.wf-ball.wf-2n {
  border-color: #f08200;
}

.wf-ball.wf-3n {
  border-color: #f3c00f;
}

.wf-ball.wf-4n {
  border-color: #2a9bdb;
}

.wf-ball.wf-5n {
  border-color: #a87ad7;
}

.wf-ball.wf-6n {
  border-color: #adb0ba;
}

/* 조/각조 영역을 감싸는 wrapper - 동일 너비로 정렬 */
.jo-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 56px;
  gap: 2px;
}

.num-jo {
  font-family:
    "GmarketSans",
    -apple-system,
    sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #666;
}

.num-each {
  font-family:
    "GmarketSans",
    -apple-system,
    sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #666;
}

/* 당첨 결과 박스 */
.win-result-box.fill {
  background: #f3f9f7;
  border: 1px solid #d5ece5;
  border-radius: 12px;
  padding: 24px 16px;
  margin-top: 16px;
  text-align: center;
}

.color-g {
  color: #11957d;
}

/* 내 복권번호 테이블 */
.pension-mynum-table {
  margin-top: 8px;
  background: #fff;
  border: 1px solid #e4e6ea;
  border-radius: 8px;
  overflow: hidden;
}

.mynum-row {
  display: flex;
  align-items: center;
  padding: 12px 12px;
}

.mynum-row + .mynum-row {
  border-top: 1px solid #f0f0f0;
}

.mynum-label {
  width: 60px;
  font-family:
    "GmarketSans",
    -apple-system,
    sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #666;
  line-height: 1.4;
  flex-shrink: 0;
}

.mynum-balls {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  justify-content: center;
  min-width: 0;
}

.mynum-jo {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family:
    "GmarketSans",
    -apple-system,
    sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #333;
}

.mynum-jo-text {
  font-family:
    "GmarketSans",
    -apple-system,
    sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  margin-left: -4px;
  margin-right: 4px;
}

/* 내 복권번호 볼 - 기본 회색 */
.mynum-ball {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family:
    "GmarketSans",
    -apple-system,
    sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #b8bbc1;
  background: #f0f0f0;
  border: 2px solid transparent;
  flex-shrink: 0;
}

/* 일치하는 볼 - 자릿수별 테두리 색상 */
.mynum-ball.wf-1n {
  color: #333;
  background: #fff;
  border-color: #de4c0e;
}

.mynum-ball.wf-2n {
  color: #333;
  background: #fff;
  border-color: #f08200;
}

.mynum-ball.wf-3n {
  color: #333;
  background: #fff;
  border-color: #f3c00f;
}

.mynum-ball.wf-4n {
  color: #333;
  background: #fff;
  border-color: #2a9bdb;
}

.mynum-ball.wf-5n {
  color: #333;
  background: #fff;
  border-color: #a87ad7;
}

.mynum-ball.wf-6n {
  color: #333;
  background: #fff;
  border-color: #adb0ba;
}

.mynum-result {
  width: 30px;
  font-family:
    "GmarketSans",
    -apple-system,
    sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-align: right;
  flex-shrink: 0;
}

.mynum-result.win {
  color: #11957d;
  font-weight: 700;
}

.mynum-result.lose {
  color: #999;
}
