@charset "utf-8";

/****************************************************************************************************************************************
swiper 시작
*****************************************************************************************************************************************/
.hero-sec {position: relative; height: 680px;}
.swiper-container {width: 100%;}
.swiper-slide {height: 680px; background: #0d0e1b; text-align: center;}
.swiper-slide > img {height:100%; opacity: 0.8; transform: scale(1.1); transition: all 7000ms linear;}
.swiper-slide-active > img {transform: scale(1.25);}

.swiper-pagination {left:0; right:0; z-index: 99;}
.swiper-container-horizontal > .swiper-pagination-bullets,
.swiper-pagination-custom,
.swiper-pagination-fraction {bottom:74px !important;}

.swiper-pagination-bullet {width: 12px; height: 12px; background:rgba(255,255,255,0.7); border-radius: 50%; opacity: 0.7; outline: none;}
.swiper-pagination-bullet-active {background: #ff7a21; opacity: 1 !important}

.caption {position: absolute; top:50%; left:50%; transform: translate(-50%, -50%); margin:40px 0 0 0; padding: 0 15px; width:1200px; display: flex; align-items: flex-start; flex-direction: column;}
.caption > h3 {opacity: 0; margin-bottom: 40px; width: 700px; line-height: 1.2; font-size: 92px; font-weight: 500; color: #fff; transform: translateX(-100px);}

.btn-more {position: relative; z-index: 1; opacity: 0; margin: 0 0 0 20px; padding: 0px 10px; line-height: 30px; font-size:16px; font-weight: 500; color: #fff; background: transparent; transition: all 0.3s ease; transform: translateX(80px);}
.btn-more::before,
.btn-more::after {content: ''; position: absolute; top: 0px; width: 20px; height: 100%; background: #ff7a21; transition: all 0.3s ease;}
.btn-more::before {left: 0px; transform: skew(15deg);}
.btn-more::after {right: 0px; transform: skew(-15deg);}
.btn-more > span {position: relative; z-index:1; display:block; padding:10px 45px; background: #ff7a21; transition: all 0.3s ease;}

.swiper-slide-active > .caption > h3 {opacity: 1; transform: translateX(0); transition: all 700ms ease; transition-delay: 300ms;}
.swiper-slide-active > .caption > .btn-more {opacity: 1; transform: translateX(0); transition: all 700ms ease; transition-delay: 700ms;} 

@media (hover: hover) and (pointer: fine) {
    .swiper-pagination-bullet:hover {background: #ff7a21;}

    .btn-more:hover::before,
    .btn-more:hover::after {transform: skew(0deg); box-shadow: inset 0px 0px 20px 0px #ff7a21, 0px 0px 20px 0px #ff7a21;}
    .btn-more:hover > span {box-shadow: inset 0px 0px 20px 0px #ff7a21, 0px 0px 20px 0px #ff7a21;}
}

/****************************************************************************************************************************************
category section
*****************************************************************************************************************************************/
.category {position: relative; margin:0 auto; padding:50px 0 0 0;}
.category::before {content: ''; position: absolute; top:-74px; z-index: 2; margin:0; padding:0; width: 100%; height: 74px; background: url('../Img/Main/pattern-1.png') center bottom repeat-x;}

ul.cate-list {position: relative; margin:0 auto 30px auto; padding:0 15px; width: 1430px; display: flex; gap:10px; justify-content: center; align-items: center;}
ul.cate-list > li {position: relative; padding:0 30px; width: calc(100% / 2); height: 80px; display: flex; justify-content:space-between; align-items: center; background:#212121; border-radius:10px; transition: 0.3s; cursor: pointer;}
ul.cate-list > li > img {display:block; filter: grayscale(100%) brightness(0.4); transition: 0.3s;}
ul.cate-list > li > .txt-panel {text-align: left;}

.txt-panel {display: flex; align-items: center;}
.txt-panel > .cate-kr {font-size:36px; font-weight: 700; color: #676767; text-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);}
.txt-panel > .cate-en {margin:10px 0 0 10px; font-size:18px; font-weight: 600; color: #676767; text-shadow: 2px 0 5px rgba(0, 0, 0, 0.5); font-family: "Noto Sans KR", serif;}

ul.cate-list > li.active {color: #fff; background: #ff7a21;}
ul.cate-list > li.active > .txt-panel > .cate-en,
ul.cate-list > li.active > .txt-panel > .cate-kr {color: #fff;}
ul.cate-list > li.active > img {filter: grayscale(0) drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));}

@media (hover: hover) and (pointer: fine) {
    ul.cate-list > li {background: #2e2e2e;}
    ul.cate-list > li:hover > .txt-panel > .cate-en,
    ul.cate-list > li:hover > .txt-panel > .cate-kr {color: #fff;}
    ul.cate-list > li:hover > img {filter: grayscale(0) drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));}
}

/****************************************************************************************************************************************
game-sec section
*****************************************************************************************************************************************/
.game-sec {position: relative; margin:0 auto; padding:0 0 50px 0; background: #07070f;}
.game-sec::before {content: ''; position: absolute; bottom:-73px; z-index: 3; margin:0; padding:0; width: 100%; height: 74px; background:url('../Img/Main/pattern-2.png') center bottom repeat-x;}
.gameSec-inner {position:relative; margin: 0 auto; padding:0 15px; width: 1430px;}

.game-view{display: none; position: relative; margin:0 auto; padding:15px 0; width:100%;}
.game-view.active {display: block;}

/* game-list  */
ul.game-list {position: relative; margin:0 auto; padding:0; width: 100%; display: flex; gap:60px 15px; justify-content: center; align-items: center; flex-wrap: wrap;}
ul.game-list > li {position: relative; width: calc(100% / 5 - 15px); transform: translateY(0px); box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.50); cursor: pointer;}

ul.slot-list > li {width: calc(100% / 6 - 15px);}

.game-logo {position: absolute; bottom: 65px; left: 50%; transform: translateX(-50%); z-index: 2; padding:15px; width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; background: #0d0e1b; border: 2px #ff9800 solid; border-radius: 50%;}
.game-img {position: relative;}

.play-btn {position: absolute; top: 0; left: 50%; transform: translate(-50%); z-index: 6; transition: all 0.3s ease;}
.play-btn > button {position: relative; margin:0 auto; line-height: 40px; background: transparent; border: none; transition: all 0.3s ease;}
.play-btn > button::before,
.play-btn > button::after {content: ''; position: absolute; top: 0px; width: 20px; height: 100%; background: #ff7a21;}
.play-btn > button::before {left: -10px; transform: skew(15deg);}
.play-btn > button::after {right: -10px; transform: skew(-15deg);} 
.play-btn > button > span {position: relative; z-index:1; display:block; padding:0 30px; font-weight: 600; color:#fff; background: #ff7a21;}

/* ft-txt */
.ft-txt {position: relative; margin: 0 auto; padding:35px 0 0 0; width: 100%; text-align: center; overflow: hidden;}
.kr-txt {margin: 0 0 7px 0; padding:0; width: 100%; text-align: center; font-size: 17px; font-weight: 600; color: #fff; font-family:"Noto Sans KR";}
.en-txt {margin: 0 auto; padding:0; width: 100%; text-align: left; font-weight: 500; color: #727489; text-transform: uppercase; font-family:"Noto Sans KR";}

@media (hover: hover) and (pointer: fine) {
    ul.game-list > li:hover {transform: translateY(-10px); box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.50);} 
    ul.game-list > li:hover .game-logo {filter: brightness(120%);}
    ul.game-list > li:hover .play-btn {top:15px;}
    ul.game-list > li:hover .play-btn > button {background: #07070f; box-shadow: 0px 0px 20px 0px #ff7a21, 0px 0px 20px 0px #07070f;}
    ul.game-list > li:hover .play-btn > button::before,
    ul.game-list > li:hover .play-btn > button::after {transform: skew(0deg); background: #07070f; box-shadow: 0px 0px 20px 0px #ff7a21, 0px 0px 20px 0px #07070f;}
    ul.game-list > li:hover .play-btn > button > span {background: #07070f;}
    ul.game-list > li:hover .kr-txt {color: #ff7a21;}

}

/****************************************************************************************************************************************
메인 Board 시작
*****************************************************************************************************************************************/
.main-border {position: relative; margin:0 auto; padding:100px 0 50px 0; background: #14141c;}
.main-border::before {content: ''; position: absolute; bottom:-73px; z-index: 3; margin:0; padding:0; width: 100%; height: 74px; background:url('../Img/Main/pattern-3.png') center bottom repeat-x;}

.mainBo-inner {position:relative; margin: 0 auto; padding:0 15px; width: 1430px; display: flex; gap: 50px; justify-content: center;}
.board-group {position: relative; flex-grow: 2; flex-shrink: 2; flex-basis: 0;}
.main-customer {padding:6px 0 0 0;flex-grow: 1.5;}

/* 메인 공지사항 및 메인 이벤트 */
.notice-hd {position: relative; margin: 0 0 10px; padding: 0 15px; width: 100%; height: 50px; display: flex; justify-content:space-between; align-items: center; background:#070707;  border: 1px solid rgba(255, 255, 255, 0.10);}
.notice-hd > h3 {position: relative; margin-right: 15px; padding-right: 15px; color: #ff7a21; font-weight: 500;}
.notice-hd > h3 > img {margin-right:10px;}
.notice-hd > .hd-icon {position: relative; font-weight: 500; cursor: pointer;}
.notice-hd > .hd-icon > i {display: inline-block; margin-right:3px; font-size:18px; color: #717389; font-weight: 500; transition: 0.3s;}

.mainBo-con {position: relative; margin:0 auto; padding:0; width: 100%;}
.mainBo-con > table {margin:0 auto 20px auto; padding:0; width: 100%;}
.mainBo-con > table th,
.mainBo-con > table td {padding:0 5px; height: 35px; font-weight:500;}
.mainBo-con > table th {display: inline-block; text-align: left; width:280px; font-weight: 600; color: #717389; white-space: nowrap; text-overflow: ellipsis; text-decoration: none; overflow: hidden; cursor: pointer;}
.mainBo-con > table td {text-align: right; width: 26%; color: #56586a;}

/* 메인 실시간 입출금 */
.main-finance {position: relative;}
.finance-hd {position: relative; margin:0 auto; padding:0; width: 100%; display: flex; justify-content: center; align-items: center;}
.finance-hd > button {width: calc(100% / 2); height: 50px; color: #717389; font-weight: 700; border:none}
.finance-hd > button.exchange {background:#070707; border: 1px solid rgba(255, 255, 255, 0.10); border-right: none;}
.finance-hd > button.charge {background:#070707;  border: 1px solid rgba(255, 255, 255, 0.10);}
.finance-hd > button.active {color: #ff7a21;}

.realtime-con {position: relative; margin:0 auto; padding: 6px 6px; width: 100%; height: 300px; overflow: hidden;}
.newsticker {display:none; opacity: 0;position: relative; animation: realtimeAnim 0.5s ease 1 forwards; overflow: hidden;}
@keyframes realtimeAnim {
    0% {opacity: 0; transform: scale(0.5);}
    100% {opacity: 1;transform: scale(1.0);}
}
.newsticker.active {display: block;}

.newsticker > ul {position: relative; margin:0 auto; padding:0; width: 100%; height:100%; overflow: hidden;}
.newsticker > ul > li {padding:0 5px; width:100%; height: 43px; display: flex; align-items:center; justify-content: space-between; cursor: pointer; transition: 0.3s;}
.newsticker > ul > li > span {font-weight: 500;}
.newsticker > ul > li > span:nth-child(1) {color: #56586a; text-align: center;}
.newsticker > ul > li > span:nth-child(2) {color: #fff; text-align: right;}
.newsticker > ul > li > span:nth-child(3) {color: #56586a; text-align: right;}
.tag {display:inline-block; margin-right: 10px; padding: 0; width: 36px; line-height: 20px; text-align: center; font-size: 12px; font-weight: 500; background: #34344a;}
.blue-tag {color:#00c3ff;}
.red-tag {color:#ffdd53;}

/* 메인 고객센터 */
dl.quick-cs {position: relative; margin:0 0 50px 0; padding:0; width: 100%; text-align: left;}
dl.quick-cs > dt {color: #56586a; font-weight: 600;}
dl.quick-cs > dd {margin-top:5px; color: #fff; font-size: 18px;}

ul.quick-sns {position: relative; margin:0; padding:0; width: 100%; display: flex; gap: 20px; justify-content: flex-start; align-items: center;}
ul.quick-sns > li {margin:0; text-align: center;}
ul.quick-sns > li > a {display:block; width: 40px; height: 40px; line-height:40px; text-align: center; color:#fff; background: #000; border-radius: 50%;}
ul.quick-sns > li > a > i {font-size: 17px;}

@media (hover: hover) and (pointer: fine) {
    .notice-hd > .hd-icon:hover {color: #fff;}
    .notice-hd > .hd-icon:hover > i {color: #fff; transform: rotate(180deg);}
    .mainBo-con > table tr:hover th {color: #fff;}
    .mainBo-con > table tr:hover td {color: #717389;}

    .newsticker > ul > li:hover {background:#1f1f2a;} 

    ul.quick-sns > li > a:hover {color: #ff7a21; box-shadow: 0px 0px 30px 0px #ff7a21;}
}

/****************************************************************************************************************************************
미디어쿼리문 시작
*****************************************************************************************************************************************/
@media (max-width:1460px) {
    ul.cate-list,
    .gameSec-inner,
    .mainBo-inner {width: 100%;}
}

@media (max-width:1230px) {
    .hero-sec,
    .swiper-slide {height: 680px;}

    .caption {width: 100%; align-items: center;}
    .caption > h3 {margin:0 auto 10px auto; width:100%; text-align: center; font-size: 75px;}
    .btn-more {margin:0 auto;}

    /* main-border */
    .mainBo-inner {gap:30px;}
} /* 미디어쿼리문 끝 */

@media (max-width:1024px) {
    /* game-sec */
    ul.game-list > li {width: calc(100% / 4 - 15px);}

    /* main-border */
    .mainBo-inner {flex-direction: column;}
    .board-group,
    .main-customer {width: 100%; flex-grow: unset; flex-shrink: unset; flex-basis: unset;}
    
    .main-finance {order: 1;}
    .main-notice {order: 2;}
    .main-customer {order: 3; padding:30px 0 0 0; border-top: 1px #313140 solid;}

    dl.quick-cs {text-align: center;}
    ul.quick-sns {justify-content: center;}

}

@media (max-width:992px) {
    .hero-sec,
    .swiper-slide {height: 500px;}
    .caption > h3 {font-size: 60px;}

    /* category */
    .txt-panel > .cate-kr {font-size: 30px;}

    /* game-sec */
    ul.game-list > li {width: calc(100% / 3 - 15px);}
} /* 미디어쿼리문 끝 */

@media (max-width:767px) {
    .hero-sec,
    .swiper-slide {height: 300px;}
    .caption {margin:10px 0 0 0;}
    .caption > h3 {font-size: 40px;}

    /* category */
    .category {padding:20px 0 0 0;}
    ul.cate-list {margin: 0 auto 10px auto; padding: 0 5px;}
    ul.cate-list > li {padding:0 15px; height: 50px;}
    .txt-panel > .cate-kr {font-size: 20px;}
    .txt-panel > .cate-en {display: none;}
    ul.cate-list > li > img {height: 26px;}

    /* game-sec */
    .game-sec {padding: 0 0 20px 0;}
    .gameSec-inner {padding:0 5px;}
    ul.game-list {gap:30px 10px;}
    ul.game-list > li {width: calc(100% / 2 - 15px);}
    ul.sports-list > li {
        width: calc(180% / 2 - 15px) !important;
    }
    .kr-txt,
    .en-txt {text-align: center;}

    /* main-border */
    .main-border {padding: 70px 0 0 0;}
    .mainBo-inner {padding:0 5px;}
    .mainBo-con > table th {width: 200px;}
    .realtime-con {height: 180px;}
    dl.quick-cs {margin: 0 0 20px 0;}
} /* 미디어쿼리문 끝 */



.wrapper_loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1976;
}

.wrapper_loading_img {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -70px;
    margin-left: -18px;
    width: 36px;
    height: 55px;
}

.level-icon {
    max-width: 28px;
    max-height: 28px;
}

.hidden {
    display: none !important
}

/* 출석 달력 스타일 - v5-1 테마 적용 */
.claender-tit {
    position: relative;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    text-align: center;
    font-size: 24px;
    color: #333;
    font-weight: 600;
}
.claender-tit > span {
    margin-left: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #ff7a21;
}

.claender-info {
    position: relative;
    margin: 5px auto 20px auto;
    padding: 0;
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.calendar-tb {
    position: relative;
    margin: 20px auto 0 auto;
    padding: 0;
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.calendar-tb tr {
    border-bottom: 1px solid #f0f0f0;
}

.calendar-tb th,
.calendar-tb td {
    position: relative;
    margin: 0 auto;
    padding: 12px 8px;
    width: 14.28%;
    height: 60px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
}

.calendar-tb th {
    background: linear-gradient(45deg, #ff7a21, #ff8533);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.calendar-tb td {
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-tb td:hover {
    background-color: #f8f9fa;
}

.calendar-tb td.checked {
    background: linear-gradient(45deg, #ff7a21, #ff8533);
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    margin: 2px;
    height: 56px;
}

.calendar-tb td.past-day {
    color: #ccc;
    background-color: #fafafa;
}

.btn-go {
    background: linear-gradient(45deg, #ff7a21, #ff8533);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-go:hover {
    background: linear-gradient(45deg, #ff8533, #ff7a21);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 122, 33, 0.3);
}

.btn-go:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-go:disabled:hover {
    background: linear-gradient(45deg, #ff7a21, #ff8533);
    transform: none;
    box-shadow: none;
}

/* 이벤트 목록 스타일 - v5-1 테마 적용 */
.event-category-tabs {
    margin: 20px auto;
    padding: 0 20px;
}

.category-tab-item > a {
    color: #666;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-tab-item.active > a {
    color: #fff;
    background: linear-gradient(45deg, #ff7a21, #ff8533);
    border: 1px solid #ff7a21;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.event-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    background: #fff;
}

.event-item:hover {
    transform: translateY(-2px);
    border-color: #ff7a21;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.event-item.ongoing .event-status {
    background: #28a745;
}

.event-item.upcoming .event-status {
    background: #ffc107;
}

.event-item.ended .event-status {
    background: #6c757d;
}

/* 이벤트 상세 페이지 스타일 - v5-1 테마 적용 */
.event-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.event-title {
    text-align: center;
    margin-bottom: 30px;
}

.event-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.event-period {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    text-align: center;
}

.event-period p {
    margin: 0;
    font-size: 16px;
    color: #555;
}

.event-period strong {
    color: #ff7a21;
    font-weight: 600;
}

.event-content-image {
    text-align: center;
    margin-bottom: 30px;
}

.event-content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.event-navigation {
    border-top: 1px solid #e0e0e0;
    padding-top: 25px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline-primary {
    color: #ff7a21;
    border-color: #ff7a21;
    background: transparent;
}

.btn-outline-primary:hover {
    color: #fff;
    background: linear-gradient(45deg, #ff7a21, #ff8533);
    border-color: #ff7a21;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 122, 33, 0.3);
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
    background: transparent;
}

.btn-outline-secondary:hover {
    color: #fff;
    background: #6c757d;
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(45deg, #ff7a21, #ff8533);
    border: 1px solid #ff7a21;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #ff8533, #ff7a21);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 122, 33, 0.3);
}

.alert {
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-danger p {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.btn i {
    font-size: 14px;
}

/* 이벤트 및 출석 관련 모바일 반응형 */
@media screen and (max-width: 768px) {
    .claender-tit {
        font-size: 20px;
    }
    .claender-tit > span {
        font-size: 20px;
    }
    .claender-info {
        font-size: 13px;
        margin: 15px 0;
    }
    .calendar-tb th,
    .calendar-tb td {
        padding: 8px 4px;
        height: 45px;
        font-size: 12px;
    }
    .calendar-tb th {
        font-size: 11px;
    }
    .calendar-tb td {
        font-size: 13px;
    }
    .calendar-tb td.checked {
        height: 41px;
        margin: 1px;
    }

    .event-detail-container {
        padding: 15px;
    }

    .event-title h2 {
        font-size: 24px;
    }

    .event-period {
        padding: 12px;
    }

    .event-period p {
        font-size: 14px;
    }

    .event-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .event-navigation > div {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .event-navigation > div:not(:last-child) {
        margin-bottom: 10px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .btn i {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .event-title h2 {
        font-size: 20px;
    }

    .event-period p {
        font-size: 13px;
    }

    .btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* 레이어 팝업 공통 스타일 - v5-1 테마 적용 */
#chatPopup {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 999;
    width: 100%;
    height: 100%;
}

.layer-bg {
    position: relative;
    padding: 30px 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.7);
    overflow-y: auto;
}

.layer-wrap {
    position: relative;
}

.layer-close {
    position: absolute;
    top: 5px;
    right: 25px;
    z-index: 9;
    transition: 0.3s;
    cursor: pointer;
}

.layer-close > i {
    font-size: 22px;
    color: #ff7a21;
}

.layer-con {
    position: relative;
}

@media (hover: hover) and (pointer: fine) {
    .layer-close:hover {
        transform: rotate(180deg);
    }
}

/* 팝업 스타일 - v5-1 테마 적용 */
.main_pop_wrap {
    position: fixed;
    z-index: 1500;
    pointer-events: none;
}

.main_pop_box {
    position: absolute;
    width: 500px;
    min-height: 600px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    pointer-events: auto;
    overflow: hidden;
}

.main_pop_title {
    position: relative;
    padding: 20px;
    background: linear-gradient(45deg, #ff7a21, #ff8533);
    color: #fff;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.main_pop_title img {
    max-height: 40px;
}

.close_btn_x, .close_btn_cu {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.close_btn_x:hover, .close_btn_cu:hover {
    color: #000;
    transform: rotate(90deg);
}

.main_pop_con {
    padding: 20px;
    padding-bottom: 80px; /* 버튼 영역 확보 */
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.6;
}

.main_pop_con::-webkit-scrollbar {
    width: 6px;
}

.main_pop_con::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.main_pop_con::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff7a21, #ff8533);
    border-radius: 3px;
}

.main_pop_con::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff8533, #ff7a21);
}

.main_popup_close {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.close_btn_today {
    background: linear-gradient(45deg, #ff7a21, #ff8533);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close_btn_today:hover {
    background: linear-gradient(45deg, #ff8533, #ff7a21);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 122, 33, 0.3);
}

/* 채팅 위젯 스타일 - v5-1 테마 적용 */
.chat-widget {
    width: 100%;
    background: #0b0e18;
    border: 1px solid #ff7a21;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 122, 33, 0.3);
}

.chat-header {
    position: relative;
    padding: 12px 44px 12px 14px;
    background: linear-gradient(45deg, #ff7a21, #ff8533);
    color: #000;
    font-weight: 600;
}

.chat-header span {
    color: #000;
}

.chat-close {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: #666;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    transition: all 0.3s ease;
}

.chat-close:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.chat-messages {
    height: 340px;
    overflow: auto;
    background: #0b0e18;
    color: #e5e7eb;
    padding: 12px 12px 4px 12px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff7a21, #ff8533);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff8533, #ff7a21);
}

.chat-input {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: #1a1a2e;
    border-top: 1px solid #ff7a21;
}

#chatInput {
    width: 70%;
    flex: 1;
    height: 38px;
    background: #16213e;
    color: #e5e7eb;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 0 10px;
    outline: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

#chatInput:focus {
    border-color: #ff7a21;
    box-shadow: 0 0 0 2px rgba(255, 122, 33, 0.2);
}

#chatSend {
    height: 38px;
    min-width: 72px;
    background: linear-gradient(45deg, #ff7a21, #ff8533);
    border: 0;
    color: #000;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#chatSend:hover {
    background: linear-gradient(45deg, #ff8533, #ff7a21);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 122, 33, 0.3);
}

/* 채팅 메시지 스타일 */
.chat-widget .msg {
    display: flex;
    gap: 8px;
    margin: 8px 0;
    align-items: flex-end;
}

.chat-widget .msg.me {
    justify-content: flex-end;
}

.chat-widget .bubble {
    max-width: 78%;
    padding: 8px 10px;
    border-radius: 10px;
    line-height: 1.35;
    word-break: break-word;
}

.chat-widget .msg.me .bubble {
    background: linear-gradient(45deg, #ff7a21, #ff8533);
    color: #000;
    border-top-right-radius: 4px;
}

.chat-widget .msg.other .bubble {
    background: #1f2937;
    color: #e5e7eb;
    border-top-left-radius: 4px;
}

.chat-widget .ts {
    font-size: 11px;
    color: #9ca3af;
    margin: 0 6px;
}

/* 키보드 오픈 상태 */
body.keyboard-open .chat-widget {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    border-radius: 0;
}

/* 모바일 반응형 */
@media screen and (max-width: 768px) {
    .chat-widget {
        max-width: 100%;
        margin: 0;
    }

    .chat-messages {
        height: 280px;
    }

    .chat-header {
        padding: 10px 40px 10px 12px;
    }

    .chat-close {
        right: 12px;
    }

    #chatInput {
        font-size: 14px;
        height: 36px;
    }

    #chatSend {
        height: 36px;
        min-width: 60px;
        font-size: 14px;
    }

    .chat-widget .bubble {
        max-width: 85%;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .chat-messages {
        height: 240px;
        padding: 10px;
    }

    .chat-input {
        padding: 8px;
        gap: 6px;
    }

    #chatInput {
        font-size: 13px;
        height: 34px;
    }

    #chatSend {
        height: 34px;
        min-width: 50px;
        font-size: 13px;
    }

    .chat-widget .bubble {
        max-width: 90%;
        padding: 6px 8px;
        font-size: 13px;
    }
}

/* 슬롯 게임 전용 컨테이너 - 다른 곳 영향 없음 */
.slot-game-container .board-wrap,
.slot-game-container .board-inner,
.slot-game-container .game-view,
.slot-game-container .game-view.active,
.slot-game-container #slot,
.slot-game-container #slot > .search-container,
.slot-game-container #games,
.slot-game-container #games.game-list.slot-list {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    box-sizing: border-box;
}

/* 슬롯 게임 전용 스타일 - popup.css 완전 오버라이드 */
.slot-game-container .board-wrap {
    width: 90vw !important;
    max-width: 90vw !important;
    min-width: 90vw !important;
    margin: 0 auto !important;
    padding: 50px 30px !important;
    background: #090a14 !important;
    border: 1px solid #727489 !important;
    border-radius: 30px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.slot-game-container .board-inner {
    width: 100% !important;
}

.slot-game-container #slot {
    width: 100% !important;
}

.slot-game-container #games {
    width: 100% !important;
}

/* 슬롯 게임 모달 너비 설정 */
.gamelistModal .modal-dialog {
    max-width: 90vw;
    width: 90vw;
}

.gamelistModal .modal-content {
    width: 100%;
}

/* 슬롯 게임 목록 개선된 배치 - Slots.cshtml #games 요소에만 적용 */
.slot-game-container #games.game-list.slot-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-direction: row !important;
}

.slot-game-container #games.game-list.slot-list li {
    position: relative !important;
    z-index: 1 !important;
    width: calc(25% - 11.25px) !important; /* 기본 4열 - gap 고려 */
    min-width: 180px !important;
    max-width: 220px !important;
    transition: all 0.4s !important;
    cursor: pointer !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    float: none !important;
}

/* 큰 화면 */
@media (min-width: 1200px) {
    #games.game-list.slot-list li {
        width: calc(20% - 12px); /* 5열 */
    }
}

/* 중간 화면 */
@media (min-width: 768px) and (max-width: 1199px) {
    #games.game-list.slot-list li {
        width: calc(25% - 11.25px); /* 4열 */
    }
}

/* 작은 화면 */
@media (max-width: 767px) {
    #games.game-list.slot-list {
        gap: 12px;
    }

    #games.game-list.slot-list li {
        width: calc(33.333% - 8px); /* 3열 */
        filter: brightness(0.8);
    }
}

/* 매우 작은 화면 */
@media (max-width: 480px) {
    #games.game-list.slot-list {
        gap: 10px;
    }

    #games.game-list.slot-list li {
        width: calc(50% - 5px); /* 2열 */
    }
}

/* 컨테이너 스크롤 설정 */
.game-view.active {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* 스크롤바 스타일링 */
.game-view.active::-webkit-scrollbar {
    width: 6px;
}

.game-view.active::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.game-view.active::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.game-view.active::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* v7 스타일 hover 효과 */
#games.game-list.slot-list li:hover {
    transform: scale(1.05);
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    filter: brightness(1);
}

/* 게임 로고 이미지 가운데 정렬 */
.gamelist-logo {
    display: block;
    margin: 0 auto;
    text-align: center;
}
