button {
    border: none;
}

/* Lottery - CSS */
.lottery-container {
    position: fixed;
	left: 0;
	right: 0;
	top: 0;
    bottom: 0;
    background:rgba(0, 0, 0, 0.6);
    z-index: 20000;
    display: none;
}
.lottery-container.active {
    display: block;
}
.lottery-container .lottery-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 488px;
    height: 500px;
    background: linear-gradient(180deg, #FF624A 0%, #FF512E 100%);
    z-index: 100;

    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    transition: width 320ms, height 320ms;
    -moz-transition: width 320ms, height 320ms;
    -webkit-transition: width 320ms, height 320ms;
}
.lottery-container .lottery-wrapper[data-type="result"] {
    width: 410px;
    height: 500px;
    background: #DC3103;
    border-radius: 16px;
}
.lottery-container .lottery-wrapper .lottery-section {
    position: relative;
    margin: 12px 10px 0px;
    height: 488px;    
    background: #FF2301;
    border-radius: 10px;
    display: none;
    opacity: 0;
}
.lottery-container .lottery-wrapper .lottery-result-section {
    position: relative;
    height: 500px;
    display: none;
    opacity: 0;
}
.lottery-container .lottery-wrapper .lottery-section.active {
    opacity: 1;
    display: flex;
}
.lottery-container .lottery-wrapper .lottery-result-section.active {
    opacity: 1;
    display: block;
}
.lottery-container .lottery-wrapper .lottery-section.lottery-animation {
    animation: lottery-hide-animation 320ms linear 1 forwards;
    -moz-animation: lottery-hide-animation 320ms linear 1 forwards;
    -webkit-animation: lottery-hide-animation 320ms linear 1 forwards;
}
.lottery-container .lottery-wrapper .lottery-section.lottery-rollback-animation {
    animation: lottery-show-animation 320ms linear 1 forwards;
    -moz-animation: lottery-show-animation 320ms linear 1 forwards;
    -webkit-animation: lottery-show-animation 320ms linear 1 forwards;
}
.lottery-container .lottery-wrapper .lottery-result-section.lottery-animation {
    animation: lottery-show-animation 320ms linear 1 forwards;
    -moz-animation: lottery-show-animation 320ms linear 1 forwards;
    -webkit-animation: lottery-show-animation 320ms linear 1 forwards;
}
.lottery-container .lottery-wrapper .lottery-result-section.lottery-rollback-animation {
    animation: lottery-hide-animation 320ms linear 1 forwards;
    -moz-animation: lottery-hide-animation 320ms linear 1 forwards;
    -webkit-animation: lottery-hide-animation 320ms linear 1 forwards;
}
.lottery-container .lottery-wrapper .lottery-section .lottery-item-area {
    position: relative;
    margin: 8px;
    padding: 14px;
    height: 462px;
    
    background: rgba(238, 0, 0, 1);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.lottery-container .lottery-wrapper .lottery-section .lottery-decoration-area {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
#lottery-item-list .lottery-item {
    position: relative;
    width: calc(33.33% - 5px);
    height: calc(33.33% - 5px);
    max-width: 134px;
    max-height: 136px;
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
}
#lottery-item-list .lottery-item::after {
    content: "";
    position: absolute;
    bottom: 0px;
    width: 100%;
    height: 6px;    
    background: linear-gradient(90deg, #FFE8E7 0%, #FABCB7 51%, #FFE8E7 100%);
}
#lottery-item-list .lottery-item.lottery-choosen {
    background: linear-gradient(180deg, #FFF8B9 0%, #FFE386 100%);
}
#lottery-item-list .lottery-item.lottery-choosen::after {
    content: "";
    position: absolute;
    bottom: 0px;
    width: 100%;
    height: 6px;    
    background: linear-gradient(90deg, #FFE94C 0%, #FFBC4C 53%, #FFE94C 100%);
}
#lottery-item-list .lottery-start-btn {
    position: relative;
    width: calc(33.33% - 5px);
    height: calc(33.33% - 5px);
    max-width: 134px;
    max-height: 136px;
    background: linear-gradient(180deg, #FFEC4D 0%, #FFD141 100%);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
#lottery-item-list .lottery-start-btn:hover {
    background: linear-gradient(90deg, #FFF4D1 0%, #FFD141 50%, #FFF4D1 100%);
}
#lottery-item-list .lottery-start-btn::after {
    content: "";
    position: absolute;
    bottom: 0px;
    width: 100%;
    height: 6px; 
    background: linear-gradient(90deg, #FF8903 0%, #FF4500 52%, #FF7A02 100%);
}
#lottery-item-list .lottery-start-btn > p:nth-child(1) {
    width: 100%;
    height: 42px;
    background: linear-gradient(180deg, #C21203 0%, #C24603 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    font-size: 42px;
    font-weight: 600;
    color: #C24603;
    line-height: 42px;
    text-align: center;
}
#lottery-item-list .lottery-start-btn > p:nth-child(2) {
    margin-top: 10px;
    width: 100%;
    height: 32px;
    background: linear-gradient(90deg, rgba(255, 201, 40, 0) 0%, #FFC928 50%, rgba(255, 201, 40, 0) 100%);

    font-size: 14px;
    font-weight: 500;
    color: #C95A00;
    line-height: 32px;
    text-align: center;
}
#lottery-item-list .lottery-item > img {
    margin: 15px auto;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    max-width: 120px;
    max-height: 120px;
    display: block;
    object-fit: contain;
}
#lottery-item-list .lottery-item > img[src=''],
#lottery-item-list .lottery-item > img:not([src]) {
    background: transparent;
}

#lottery-decoration-area .decoration-title-image {
    position: absolute;
    top: -238px;
    left: 50%;
    margin-left: -352px;
    width: 704px;
    height: 228px;
    object-fit: contain;
}
#lottery-decoration-area .decoration-title-rect {
    position: absolute;
    top: -36px;
    left: 50%;
    margin-left: -244px;
    width: 488px;
    height: 24px;
    background: linear-gradient(225deg, #EF0000 0%, #FF2301 51%, #FF6149 100%);
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
}
#lottery-decoration-area .decoration-top {
    position: absolute;
    top: -8px;
    left: 50%;
    margin-left: -121px;
    width: 242px;
    height: 16px;
    background: #FF2301;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    justify-content: space-around;
}
#lottery-decoration-area .decoration-top > li {
    margin-top: 3px;
    width: 10px;
    height: 10px;
    background: linear-gradient(139deg, #FFD200 0%, #FFE50E 100%);
    box-shadow: 0px 0px 5px 0px #FFF2D0;
    border-radius: 50%;
}
#lottery-decoration-area .decoration-bottom {
    position: absolute;
    bottom: 0px;
    width: 100%;
    height: 20px;
}
#lottery-decoration-area .decoration-bottom .decoration-dots {
    position: absolute;
    top: 0px;
    left: 50%;
    margin-left: -121px;
    width: 242px;
    height: 20px;
    display: flex;
    justify-content: space-around;
}
#lottery-decoration-area .decoration-bottom .decoration-dots > li {
    margin-top: 5px;
    width: 10px;
    height: 10px;
    background: linear-gradient(139deg, #FFD200 0%, #FFE50E 100%);
    box-shadow: 0px 0px 5px 0px #FFF2D0;
    border-radius: 50%;
}
#lottery-decoration-area .decoration-bottom .decoration-lines {
    position: absolute;
    left: 12px;
    bottom: 6px;
    width: calc(100% - 24px);
    height: 6px;
    display: flex;
    justify-content: space-between;
}
#lottery-decoration-area .decoration-bottom .decoration-lines > li {
    position: relative;
    width: 32px;
    height: 100%;
}
#lottery-decoration-area .decoration-bottom .decoration-lines > li .long-line {
    width: 32px;
    height: 2px;
    background: #D70000;
    border-radius: 50%;
}
#lottery-decoration-area .decoration-bottom .decoration-lines > li .short-line {
    margin-top: 2px;
    width: 24px;
    height: 2px;
    background: #D70000;
    border-radius: 50%;
}
#lottery-decoration-area .decoration-bottom .decoration-oval-rect {
    position: absolute;
    left: 54px;
    bottom: 0px;
    width: calc(100% - 108px);
    height: 8px;
    display: flex;
    justify-content: space-between;
}
#lottery-decoration-area .decoration-bottom .decoration-oval-rect > li {
    width: 64px;
    height: 8px;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    background: linear-gradient(180deg, #FF624A 0%, #FF512E 100%);
}

#lottery-result .lottery-result-top-area {
    position: absolute;
    top: 15px;
    left: 18px;
    width: calc(100% - 30px);
    height: calc(100% - 36px);
    background: linear-gradient(180deg, #FFF8E4 0%, #FFE8BE 100%);
    border-radius: 18px;
}
#lottery-result .lottery-result-bottom-area {
    position: absolute;
    left: 0px;
    bottom: 0px;
    width: 100%;
    height: 160px;
    background: url(/images/activity/activity-lottery-bottom.png) center no-repeat;
}
#lottery-result .lottery-result-top-area .lottery-result-top-content {
    position: relative;
    margin: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border-radius: 15px;
    border: 1px solid #FCE4B5;
}

#lottery-result .lottery-result-top-content .lottery-result-title {
    position: relative;
    margin-top: 26px;
    width: 100%;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
}
#lottery-result .lottery-result-top-content .lottery-result-title .title-value {
    margin: 0px 20px;
    color: #A95513;
    font-size: 32px;
    font-weight: 600;
    line-height: 36px;
    text-align: center;
}
#lottery-result .lottery-result-top-content .lottery-result-title .title-decoration {
    position: relative;
    width: 38px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #A2351A 100%);
}
#lottery-result .lottery-result-top-content .lottery-result-title .title-decoration.right {
    background: linear-gradient(90deg, #A2351A 0%, rgba(255, 255, 255, 0) 100%);
}
#lottery-result .lottery-result-top-content .lottery-result-title .title-decoration.left::after {
    content: "";
    position: absolute;
    top: -3px;
    right: -8px;
    width: 4px;
    height: 4px;
    border: 2px solid rgba(162, 53, 26, 1);
    box-sizing: content-box;

    transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}
#lottery-result .lottery-result-top-content .lottery-result-title .title-decoration.right::after {
    content: "";
    position: absolute;
    top: -3px;
    left: -8px;
    width: 4px;
    height: 4px;
    border: 2px solid rgba(162, 53, 26, 1);
    box-sizing: content-box;

    transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

#lottery-result .lottery-result-top-content .lottery-result-icon {
    position: relative;
    margin: 32px auto 0px;
    height: 98px;
    display: block;
    object-fit: contain;
}
#lottery-result .lottery-result-top-content .lottery-result-gift {
    position: relative;
    margin-top: 36px;
    width: 100%;
    height: 30px;

    color: #A95513;
    font-size: 30px;
    font-weight: 600;
    line-height: 30px;
    text-align: center;
}
#lottery-result .lottery-result-top-content .lottery-exchange-btn {
    margin: 24px auto 0px;
    width: 240px;
    height: 22px;
    background: transparent;
    cursor: pointer;
    display: block;

    font-size: 16px;
    font-weight: 400;
    color: #A2351A;
    line-height: 22px;
    text-decoration: underline;
}
#lottery-result[data-type="error"] .lottery-result-top-content .lottery-exchange-btn {
    display: none;
}

#lottery-result .lottery-result-bottom-area .lottery-copy-btn {
    margin: 72px auto 0px;
    width: 330px;
    height: 62px;
    background: linear-gradient(180deg, #FFF0CB 0%, #ECC37B 62%, #FFD89A 100%);
    border-radius: 33px;
    cursor: pointer;
    display: block;

    font-size: 30px;
    font-weight: 500;
    color: #D51F2E;
    line-height: 30px;
}
#lottery-result .lottery-result-bottom-area .lottery-copy-btn:hover {
    box-shadow: 0px 6px 9px 0px rgba(170, 24, 36, 0.46);
}
#lottery-result .lottery-copy-btn[data-type="redeemed"] {
    background: #FFDF00;
    color: #A50B16;
}

.lottery-container .lottery-wrapper .lottery-close-btn {
    position: absolute;
    left: 50%;
    bottom: -58px;
    margin-left: -21px;
    width: 42px;
    height: 42px;
    border: none;
    background: url(/images/activity/activity-11-close.png) center no-repeat;
    background-size: 42px;
    display: block;
    cursor: pointer;
}


/* Key Frames - CSS */
@-webkit-keyframes lottery-hide-animation {
	from {opacity: 1;}
	to {opacity: 0;}
}
@-moz-keyframes lottery-hide-animation {
	from {opacity: 1;}
	to {opacity: 0;}
}
@keyframes lottery-hide-animation {
	from {opacity: 1;}
	to {opacity: 0;}
}

@-webkit-keyframes lottery-show-animation {
	from {opacity: 0;}
	to {opacity: 1;}
}
@-moz-keyframes lottery-show-animation {
	from {opacity: 0;}
	to {opacity: 1;}
}
@keyframes lottery-show-animation {
	from {opacity: 0;}
	to {opacity: 1;}
}