        @font-face {
            font-family: 'Noto Sans KR';
            font-style: normal;
            font-weight: 400;
            src: url('/css/font/noto-sans-kr-v36-latin-regular.woff2') format('woff2');
        }

        @font-face {
            font-family: 'Noto Sans KR';
            font-style: normal;
            font-weight: 700;
            src: url('/css/font/noto-sans-kr-v36-latin-700.woff2') format('woff2');
        }

        body {
            font-family: 'Noto Sans KR', sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f4f8fb;
            color: #333;
            display: flex;
            /* text-align: center; */
            flex-direction: column;

        }

        header {
            background: linear-gradient(135deg, #57c4f5, #3a89c9);
            color: #fff;
            text-align: center;
            padding: 0.3rem 0.3rem;
        }

        header h1 {
            font-size: 1.5rem;
            margin: 0;
        }

        a {
            text-decoration: none;
        }


        .menu-panel {
            width: 250px;
            background-color: #fff;
            border-left: 1px solid #d1d9e6;
            overflow-y: auto;
            transition: transform 0.3s ease;
            position: absolute;
            right: 0;
            z-index: 9999;
            height: 100%;
            transform: translateX(0);
        }

        .menu-panel.closed {
            transform: translateX(calc(100% - 0px));
            /* Leave 10px visible */
            /* background: linear-gradient(to top, rgba(57, 196, 245, 1) 60%, rgba(255, 255, 255, 0) 0%); */
            background: linear-gradient(to top, rgba(255, 255, 255, 0) 0%, rgba(64, 150, 210, 1) 100%);
            /* background-color: #57c4f5; Background for the remaining 10px */
            /* animation: barGauge 1s ease-in-out; */
        }

        @keyframes barGauge {
            0% {
                background: linear-gradient(to top, rgba(57, 196, 245, 1) 0%, rgba(255, 255, 255, 0) 0%);
            }

            50% {
                background: linear-gradient(to top, rgba(57, 196, 245, 1) 0%, rgba(255, 255, 255, 0) 40%);
            }

            100% {
                background: linear-gradient(to top, rgba(57, 196, 245, 1) 40%, rgba(255, 255, 255, 0) 60%);
            }
        }

        .menu-list {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            padding: 1rem;
            opacity: 1;
            transition: opacity 0.3s ease;
        }

        .menu-panel.closed .menu-list {
            opacity: 0;
            pointer-events: none;
        }

        .menu-item {
            background-color: #fff;
            border: 1px solid #d1d9e6;
            border-radius: 8px;
            padding: 0.8rem;
            z-index: 1000;
            text-decoration: none;
            color: #333;
            font-weight: bold;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background 0.2s ease;
        }

        .menu-item:hover {
            background-color: #f0f8ff;
        }

        .menu-item .icon {
            font-size: 1.2rem;
            color: #3a89c9;
        }

        @keyframes gradientMove {
            0% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }

            100% {
                background-position: 0% 50%;
            }
        }

        .toggle-button {
            font-size: 1.5rem;
            position: absolute;
            top: 10px;
            right: 20px;
            /* background-color: #3a89c9; */
            color: #fff;
            border: 1px solid #57C4F5;
            border-radius: 4px;
            padding: 0.3rem 0.6rem;
            font-weight: bold;
            cursor: pointer;
            z-index: 1000;
            transform: scaleX(1.3);
            transition: background 0.2s ease;
            background: linear-gradient(135deg, #ed8a11, #e4c515);
            background-size: 200% 200%;
            animation: gradientMove 2.5s ease infinite;
        }

        .toggle-button:hover {
            background-color: #336699;
        }


        /* Swiper 컨테이너 스타일 */
        .swiper {

        width: 100%;
        /* height: calc(100vh - 60px); */
        /* height: 100vh; */
        }

        .swiper-slide {
        text-align: center;
        /* font-size: 24px; */
        background: #f7fbff;

        /* Center slide text vertically */
        /* display: flex; */
        justify-content: center;
        align-items: center;
        }        


        .container {
            /* display: flex; */
            flex: 1;
            overflow-y: auto; 
            /* height: 100vh; */
            position: relative;
            text-align: center;
        }

        .content {
            display: inline-block;
            flex: 1;
            padding: 0.5rem 0.5rem;
            /* margin: 0rem auto; */
            margin-bottom: 0rem;
            /* To prevent overlap with the navigation bar */
            /* align-items: center; */
            overflow-y: auto;
            text-align: center;
            background: #f7fbff;
        }

        .info-box {
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            padding: 0.5rem;
            margin-bottom: 1rem;
            text-align: left;
            border: 1px solid #333;
        }

        .info-box:hover, .info-box:active  {
        background-color: #D6EBFF; 
        transition: background-color 0.2s ease;
        }

        .info-box a {
            margin-bottom: 0.5rem;
        }

        .info-box h2 {
            font-size: 1.2rem;
            color: #3a89c9;
            margin: 0 0 0rem;
        }

        .info-box p {
            font-size: 0.9rem;
            line-height: 1.4;
            margin: 0;
        }

        .btn-primary {
            display: block;
            background: linear-gradient(135deg, #3a89c9, #57c4f5);
            color: #fff;
            text-align: center;
            padding: 0.7rem;
            border-radius: 8px;
            text-decoration: none;
            font-weight: bold;
            margin-top: 1rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        }

        a:active .btn-primary {
            color: #000;
        }

        a:active {
            transform: translateY(2px);
        }

        #viewFrame {
            position: fixed;
            display: inline-block;
            width: 90%;
            max-width: 600px;
            height: 80%;
            max-height: 550px;
            padding: 10px;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            /* pointer-events: none; */
            background-color: rgba(90, 90, 90, 0.9);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
            border-radius: 8px;
        }

        #noticePC {
            position: fixed;
            display: inline-block;
            width: 90%;
            max-width: 600px;
            height: 80%;
            max-height: 500px;
            padding: 10px;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 1.8vw;
            /* pointer-events: none; */
            background-color: rgba(255, 255, 255, 0.8);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
            border-radius: 8px;
            white-space: normal;
            font-weight: bold;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        input[type="button"] {
            font-size: 18px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            width: 98%;
            padding: 2px;
            background-color: #007BFF;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        input[type="button"]:active {
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
            transform: translateY(2px);
        }


        .clr {
            /* position: relative; */
            display: inline-block;
            width: 35px;
            height: 35px;
            line-height: 30px;
            font-weight: 700;
            font-size: 20px;
            color: #fff;
            letter-spacing: -0.025em;
            vertical-align: middle;
            border-radius: 100%;
            text-align: center;
            box-shadow: 0 2px 4px rgba(0, 255, 0, 0.4);
            /* border: 1px solid green; */
        }

        .clr~.clr {
            margin-left: 3px
        }

        .plus {
            position: relative;
            margin-left: 23px;
            color: #333;

        }

        /* .winner_number .bx_winner .list .clr.plus :after {content:""; position:absolute; left:-17px; top:50%; z-index:1; width:9px; height:9px; margin-top:-5px; background-size:9px auto} */
        .clr0 {
            background: #ffffff;
            color: black;
        }

        .clr1 {
            background: #e4a816
        }

        .clr2 {
            background: #1994da
        }

        .clr3 {
            background: #e86352
        }

        .clr4 {
            background: #8f8f8f
        }

        .clr5 {
            background: #5bb544
        }

        .view-text3 {
            /* font-family: Arial; */
            /* font-size: clamp(24px, 6vw, 32px); */
            font-size: 1.1rem;
            color: #333;
            text-align: center;
            font-weight: bold;
            /* text-shadow:
                -1px -1px 0 black,
                1px -1px 0 black,
                -1px 1px 0 black,
                1px 1px 0 black; */
        }

        .new-label {
            display: inline-flex;
            /* 텍스트와 자연스럽게 배치 */
            align-items: flex-end;
            /* 텍스트의 하단에 맞춰 정렬 */
            color: red;
            /* 빨간색 텍스트 */
            font-size: 12px;
            /* 라벨 크기 */
            font-weight: bold;
            /* 굵은 텍스트 */
            margin-right: 5px;
            /* 텍스트와 간격 */
            transform: translateY(-50%);
            /* 세로로 위쪽 배치 */
            line-height: 1;
            /* 줄 간격 최소화 */
            margin-right: -1px;
        }

        .new-label2 {
            color: red;
            font-size: 14px;
            position: absolute;
            top: 4px;
            right: 5px;
            z-index: 9999;
            padding-top: 0px;
            padding-bottom: 3px;
            height: 16px;
            line-height: 16px;
            background-color: rgba(232, 232, 232, 0.6);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            border-radius: 4px;
            box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
            pointer-events: none;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            background: #ffffff;
            border-radius: 4px;
            overflow: hidden;
        }

        th,
        td {
            border: 1px solid #ddd;
            padding: 5px;
            text-align: center;
        }

        th {
            background-color: #3a89c9;
            color: #ffffff;
        }

        td {
            background-color: #EBEFF2;
            color: #1b4f72;
        }


        .bottom-menu-bar {

            background: #202020;
            border-top: 3px solid #d1d9e6;
            box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
            position: fixed;
            bottom: 0;
            width: 100%;
            display: flex;
            justify-content: space-around;
            padding: 0.1rem 0;
            align-items: center;
            /* height: 50px;
      line-height: 50px; */
            z-index: 99999;
        }

        @keyframes border-glow {
            0% {
                border-image-source: linear-gradient(90deg, orange, yellow, green, blue);
                border-image-slice: 1;
            }

            50% {
                border-image-source: linear-gradient(270deg, orange, yellow, green, blue);
                border-image-slice: 1;
            }

            100% {
                border-image-source: linear-gradient(90deg, orange, yellow, green, blue);
                border-image-slice: 1;
            }
        }

        .bottom-menu-bar-ani {
            animation: border-glow 4s linear infinite;
        }

        .bottom-menu-bar a {
            /* color: #333; */
            color: #ccc;
            text-decoration: none;
            font-size: 0.9rem;
            text-align: center;
            padding: 0;
            /* padding: 1px 1px; */
            /* font-size: 17px; */
            /* text-shadow:
                -1px -1px 0 black,
                1px -1px 0 black,
                -1px 1px 0 black,
                1px 1px 0 black; */
            transition: background-color 0.3s;
        }

        .bottom-menu-bar a span {
            display: block;
            font-size: 1.2rem;
            align-items: center;
            /* margin-bottom: 0.2rem; */
        }

        .bottom-menu-bar a.active {
            /* background-color: #f7f7f7; */
            color: #eee;
            font-size: 22px;
            font-weight: bold;
            text-shadow: none;
        }

        .bottom-menu-bar a.active span {
            text-shadow:
                -1px -1px 0 black,
                1px -1px 0 black,
                -1px 1px 0 black,
                1px 1px 0 black;
        }

        
        .bottom-menu-item {
            color: white;
            text-decoration: none;
            font-size: 18px;
            padding: 10px 15px;
            transition: color 0.3s;
        }

        /* .bottom-menu-item:hover {
            color: #ff4500;
        } */


        @media (min-width: 1024px) {
            .info-box {
                width: 640px;
                max-width: 640px;
            }

            header h1 {
                font-size: 1.8rem;
            }

            .menu-panel {
                width: 350px;
            }

            .menu-item {
                padding: 0.6rem;
                font-size: 1.1rem;
            }

            .toggle-button {
                font-size: 1.2rem;
                padding: 0.3rem 0.6rem;
            }

            /* .swiper-slide {
                font-size: 24px;
            } */
            
        }

        @media (max-width: 768px) {
            header h1 {
                font-size: 1.5rem;
            }

            .menu-panel {
                width: 300px;
            }

            .menu-item {
                padding: 0.6rem;
                font-size: 1.1rem;
            }

            .toggle-button {
                font-size: 1.2rem;
                padding: 0.2rem 0.4rem;
            }
        }

        @media (max-width: 480px) {
            header h1 {
                font-size: 1.2rem;
            }

            .menu-panel {
                width: 230px;
                /* width: 200px; */
            }

            .menu-item {
                padding: 0.5rem;
                font-size: 1.0rem;
            }

            .toggle-button {
                font-size: 1.2rem;
                padding: 0.1rem 0.3rem;
            }
        }


            .btn-primary2 {
        /* display: block; */
        background: linear-gradient(135deg, #3a89c9, #57c4f5);
        color: #fff;
        text-align: center;
        padding: 0 0.1rem;
        border-radius: 3px;
        text-decoration: none;
        font-weight: bold;
        margin-top: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    /* 1등 스타일 (금색) */
    .rank-1 {
        background-color: #FFD700;
        color: white;
        font-weight: bold;
        font-size: 1.2rem;
        border: 2px solid #B8860B;
        text-align: center;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 1.9);
    }

    /* 2등 스타일 (실버) */
    .rank-2 {
        background-color: #A9A9A9;
        color: white;
        font-weight: bold;
        font-size: 1.1rem;
        border: 2px solid #888;
        text-align: center;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 1.9);
    }

    /* 3등 스타일 (동색) */
    .rank-3 {
        background-color: #CD7F32;
        color: white;
        font-weight: bold;
        font-size: 1.1rem;
        border: 2px solid #8B4513;
        text-align: center;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 1.9);
    }

    .rank-4 {
        background: #A3D9A5;
        font-size: 1rem;
    }

    .rank-5 {
        background: #D9E3F0;
        font-size: 1rem;
    }

   #pwa-install-overlay {
      position: fixed;
      top: 1px;
      left: 1px;
      z-index: 9999;
      width: 30px;
      height: 30px;
      background: transparent;
      border: none;
      padding: 0;
      cursor: pointer;
      outline: none;
      /* display: none; */
      align-items: center;
      justify-content: center;
    }

    #lottoi-logo {
      z-index: 100;
      width: 100%;
      height: 100%;
      will-change: transform;
      pointer-events: none;
    }    



/* 1) 애니메이션용 커스텀 길이 변수 */
@property --g {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

/* 2) 파동 유틸: 아무 요소에 .pulse 붙이면 동작 */
.pulse{
  position: relative;
  overflow: visible;          /* 밖으로 퍼져도 보이게 */
  box-sizing: border-box;

  /* 기본값(필요시 HTML/CSS에서 개별 오버라이드) */
  --pulse-color: currentColor;
  --pulse-stroke: 3px;        /* 선 두께 */
  --pulse-duration: 2s;       /* 1루프 시간 */
  --pulse-interval: 1s;      /* 파동 사이 간격 */
  --pulse-start: 0s;          /* 최초 시작 딜레이 */
  --pulse-max: 24px;          /* 픽셀 확장 거리(inset용) */
}

.pulse::before,
.pulse::after {
  content: "";
  position: absolute;
  top: calc(0px - var(--g));
  left: calc(0px - var(--g));
  right: calc(0px - var(--g));
  bottom: calc(0px - var(--g));
  border-radius: inherit;
  border: var(--pulse-stroke) solid var(--pulse-color);
  pointer-events: none;
  animation: pulse-grow var(--pulse-duration) linear infinite;
}

/* 4) 두 번째 파동(간격만 더해 시작) */
.pulse::after{
  animation-delay: calc(var(--pulse-start) + var(--pulse-interval));
  opacity: .4;
}

@keyframes pulse-grow {
  0%   { --g: 0px; opacity: .6; }
  80%  { --g: var(--pulse-max, 24px); opacity: 0; }
  100% { --g: var(--pulse-max, 24px); opacity: 0; }
}

/* 6) 접근성: 모션 최소화 존중 */
@media (prefers-reduced-motion: reduce){
  .pulse::before, .pulse::after{ animation: none; opacity: 0; }
}

/* 7) 선택 테마(원하면 사용) */
.pulse.win   { --pulse-color: #FFD700; } /* 골드(당첨) */
.pulse.lucky { --pulse-color: #50C878; } /* 에메랄드(행운) */


/* 컬러 토큰 */
:root{
  --brand:#3A89C9;      /* 기존 헤더 블루 */
  --accent:#11AA38;     /* 포인트(안전/검증) 초록 */
  --whiteHi:rgba(255,255,255,.96);
  --whiteLo:rgba(255,255,255,.82);
  --muted:rgba(255,255,255,.55);
}

/* 헤더 텍스트 묶음 */
.hero-msg{
  display:inline-block;
  padding:.2rem .2rem .1rem;
  text-align:center;
}

/* 상단 작은 배지 */
.hero-badge{
  display:inline-block;
  margin:.05rem 0 .15rem;
  /* padding:.15rem .45rem; */
  padding:.2rem .6rem;
  font-size:.9rem; 
  font-weight:800;
  color:#fff;
  background: linear-gradient(135deg,#ff6b6b,#ff9f43);
  border-radius:999px;
  letter-spacing:.2px;
}

/* 1줄 핵심(굵게, 큰 글자) */
.hero-claim{
  margin:.05rem 0 .1rem;
  color:var(--whiteHi);
  font-size:.95rem;          /* 모바일 기준 15~16px */
  font-weight:800;
  line-height:1.2;
  letter-spacing:.1px;
}

/* 구분점 */
.hero-claim .dot{
  color:var(--muted);
  margin:0 .32rem;
}

/* 2줄 보조(약간 얇게) */
.hero-safety{
  margin:.05rem 0 0;
  color:var(--whiteLo);
  font-size:.85rem;
  font-weight:600;
  line-height:1.15;
}
.hero-safety strong{ color:var(--whiteHi); font-weight:800; }

/* 점(·) 간격 살짝 넓게 → 가독성 ↑ */
.hero-claim .dot{ margin:0 .38rem; }

/* claim과 safety 사이 여백 조정 */
.hero-claim{ margin:0 0 .2rem; }
.hero-safety{ margin-top:.05rem; }

/* 데스크톱에서만 약간 크게 */
@media (min-width:768px){
  .hero-claim{ font-size:1.05rem; }
  .hero-safety{ font-size:.92rem; }
}

/* 배지 텍스트 가독성 소폭 강화 */
.hero-badge{ letter-spacing:.3px; font-weight:900; }


/* 아주 작은 화면 최적화 */
@media (max-width:360px){
  .hero-claim{ font-size:.9rem; }
  .hero-safety{ font-size:.8rem; }
}


/* 배지 강조 애니메이션 */
  .hero-badge{font-weight:700;text-align:center}
  .badge-rotator{
    display:inline-block;
    overflow:hidden;
    height:1.8em;             /* 한 줄 높이 고정 */
    line-height:1.8em;
    vertical-align:middle;
    will-change:transform;
  }
  .badge-rotator .track{
    display:flex;
    flex-direction:column;
    transform:translateY(0);
    transition:transform .5s ease;
  }
  .badge-rotator .track > span{
    white-space:nowrap;
    padding:0 .25em;
  }

  /* 모션 최소화 설정 존중 */
  @media (prefers-reduced-motion: reduce){
    .badge-rotator .track{transition:none}
  }