/* ============================================
   FONT DECLARATIONS
   ============================================ */

@font-face {
    font-family: 'TheSeasons';
    src: url('fonts/The Seasons Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Muli';
    src: url('fonts/Muli-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Muli';
    src: url('fonts/Muli-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Muli';
    src: url('fonts/Muli-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'ZiHunBaiGeTianXing';
    src: url('fonts/字魂白鸽天行体(商用需授权).ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Adobe Heiti Std R';
    src: url('fonts/Adobe Heiti Std R.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* ============================================
   BASE STYLES
   ============================================ */

html {
    min-height: 100vh;
    min-height: 100dvh;
}

body {
    text-align: center;
    font-family: 'Muli', sans-serif;
}

@media (hover: none) and (pointer: coarse) {
    html {
        background-color: #cf112d;
    }
    
    body {
        background-color: #cf112d;
    }
}

.container-fluid {
    padding: 0;
}

video {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

/* ============================================
   LAYOUT & CONTAINERS
   ============================================ */

.main-container {
    background: 
        url('../assets/backgrounds/start-sunray-bg.png'),
        url('../assets/backgrounds/beige-pattern-bg.png');
    background-size: 
        cover,
        cover;
    background-position: 
        center top,
        center top;
    background-repeat: 
        no-repeat,
        repeat;
    width: 100%;
    height: 100dvh !important;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-container > * {
    position: relative;
    z-index: 2;
}

.main-image {
    width: 100%;
    min-height: 0;
    flex-grow: 1;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.main-images-container {
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    gap: 10px;
    margin-top: -40px;
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.main-image-wrapper {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -15%;
    position: relative;
    z-index: 4;
}

.main-character-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.main-content-wrapper {
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 0;
    overflow: visible;
}

.main-content-section {
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.subtitle-wrapper {
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

.subtitle-text {
    text-align: center;
}

.bottom-content-wrapper {
    text-align: center;
    padding-bottom: 1rem;
    width: 100%;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.bottom-inner {
    width: 100%;
    padding-bottom: 1rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.bg-red {
    background-color: #E82128;
}

.bg-gold {
    background-color: #F5B74C;
}

.top-center-logo {
    display: block;
    margin: 0 auto;
    max-width: 70px;
}

.qr-code {
    width: 300px;
}

.yusheng-img {
    max-width: 70%;
    height: auto;
}

.plating-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.caisen-img {
    width: 55%;
}

.caishen-head-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    display: block;
    box-sizing: border-box;
    padding: 30px 20px;;
}

.caishen-head-wrapper .caishen-head {
    width: auto;
    max-width: 50%;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    transform-origin: center bottom;
    animation: caishenHeadLean 2.4s ease-in-out infinite;
}

.caishen-head-bubble {
    position: absolute;
    height: auto;
    width: auto;
    /* max-width: 40%; */
    max-height: 55%;
    z-index: 0;
    object-fit: contain;
}

.caishen-head-bubble-left {
    left: 2%;
    bottom: -15%;
    top: auto;
    right: auto;
}

.caishen-head-bubble-right {
    top: -15%;
    right: 2%;
    left: auto;
    bottom: auto;
}

.caishen-head {
    max-width: 90%;
}

@keyframes caishenHeadLean {
    0% {
        transform: rotate(-10deg);
    }
    50% {
        transform: rotate(10deg);
    }
    100% {
        transform: rotate(-10deg);
    }
}

.floating-img {
    position: absolute;
    top: 25%;
    width: 60px;
    z-index: 1;
}

#permission {
    display: none;
}

/* ============================================
   SHARED BUTTONS
   ============================================ */

.btn-primary {
    color: #d1002d;
    font-size: 22px;
    font-style: normal;
    text-transform: uppercase;
}

.start-btn {
    padding: 12px 0;
    border: none;
    background-color: transparent;
    background-size: auto 100%;
    width: 100%;
}

.snake-btn {
    color: #fff;
    padding: 12px 0;
    border: none;
    background-color: #39b54a;
    background: url("../assets/decorative/green-strip-center.png") center center repeat-x;
    background-size: auto 100%;
    width: 100%;
}

.ready-btn {
    padding: 10px 0;
    border: none;
    background-color: transparent;
    background-size: auto 100%;
    width: 100%;
    font-size: 18px; 
    font-weight: bold;
}

.back-btn {
    color: #fff;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    text-transform: uppercase;
    border: none;
    text-decoration: underline;
}

.back-btn:hover {
    color: #E82128;
    border: none;
}

.play-btn {
    background-color: #fff;
    color: #d1002d;
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    text-transform: uppercase;
}

.restart-btn {
    background-color: #CB7410;
    border: #CB7410;
    color: #fff;
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    text-transform: uppercase;
}

.start-game-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #d1002d;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
}

.start-game-btn:hover {
    background-color: #CB7410;
}

.next-button {
    background-color: #E82128;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 15px;
    margin: 10px auto;
}

.btn:hover,
.btn:active,
.btn:focus,
.btn:active:focus,
.btn:focus-visible,
.btn.active,
.btn.show {
    background-color: inherit !important;
    border-color: inherit !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus,
.btn-primary:active:focus,
.btn-primary:focus-visible,
.btn-primary.active,
.btn-primary.show {
    color: #d1002d !important;
}

.start-btn:hover,
.start-btn:active,
.start-btn:focus,
.start-btn:active:focus,
.start-btn:focus-visible,
.start-btn.active,
.start-btn.show {
    color: #d1002d !important;
}

.snake-btn:hover,
.snake-btn:active,
.snake-btn:focus,
.snake-btn:active:focus,
.snake-btn:focus-visible,
.snake-btn.active,
.snake-btn.show {
    color: #fff !important;
}

.back-btn:hover,
.back-btn:active,
.back-btn:focus,
.back-btn:active:focus,
.back-btn:focus-visible,
.back-btn.active,
.back-btn.show {
    color: #fff !important;
}

.play-btn:hover,
.play-btn:active,
.play-btn:focus,
.play-btn:active:focus,
.play-btn:focus-visible,
.play-btn.active,
.play-btn.show {
    color: #d1002d !important;
}

.restart-btn:hover,
.restart-btn:active,
.restart-btn:focus,
.restart-btn:active:focus,
.restart-btn:focus-visible,
.restart-btn.active,
.restart-btn.show {
    color: #fff !important;
}

.start-game-btn:hover,
.start-game-btn:active,
.start-game-btn:focus,
.start-game-btn:active:focus,
.start-game-btn:focus-visible,
.start-game-btn.active,
.start-game-btn.show {
    color: #fff !important;
}

.gold-strip-wrap-btn {
    width: 80%;
    padding: 0 25px;
    margin: 15px auto;
    position: relative;
    z-index: 2;
    background:
        url("../assets/decorative/strip-left.png") left center no-repeat,
        url("../assets/decorative/strip-right.png") right center no-repeat;
    background-size: auto 100%, auto 100%;
}

.gold-strip-wrap-btn > * {
    position: relative;
    z-index: 1;
}

.gold-strip-wrap-btn::before {
    content: '';
    position: absolute;
    left: 25px;
    right: 25px;
    top: 0;
    bottom: 0;
    background: url("../assets/decorative/strip-center.png") center center repeat-x;
    background-size: auto 100%;
    z-index: 0;
    pointer-events: none;
}

.green-strip-wrap-btn {
    width: 80%;
    padding: 0 25px;
    margin: 15px auto;
    position: relative;
    z-index: 2;
    background:
        url("../assets/decorative/green-strip-left.png") left center no-repeat,
        url("../assets/decorative/green-strip-right.png") right center no-repeat;
    background-size: auto 100%, auto 100%;
}

/* ============================================
   SHARED MODALS
   ============================================ */

.modal-dialog {
    max-width: 300px;
    margin: 0 auto !important;
}

.modal-content {
    border-radius: 20px;
}

.modal-body {
    color: #cf112d;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
}

.modal-body .label-text {
    color: #cf112d;
    text-align: center;
    font-size: 16px;
    text-transform: uppercase;
}

.modal-body .info-text {
    font-family: 'TheSeasons', sans-serif;
    font-size: 18px;
    text-align: center;
}

.modal-title {
    margin-bottom: 20px;
}

.modal-title h2 {
    color: #E82128;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: bold;
}

.info-modal-content {
    clip-path: polygon(0 30px,30px 0,calc(100% - 30px) 0,100% 30px,100% calc(100% - 30px),calc(100% - 30px) 100%,30px 100%,0 calc(100% - 30px));
    aspect-ratio: 1 / 1;
    background-color: #f9dea0;
    position: relative;
}

.info-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/backgrounds/modal-sunrays-bg.png');
    background-size: calc(100% + 140px) auto;
    background-repeat: no-repeat;
    background-position: bottom;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
    clip-path: inherit;
}

.info-modal-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/ui/lantern-banner-top.png');
    background-size: calc(100% - 80px) auto;
    background-repeat: no-repeat;
    background-position: 40px 0;
    z-index: 1;
    pointer-events: none;
    clip-path: inherit;
}

#infoModal .modal-body {
    padding: 40px 15px;
    position: relative;
    z-index: 1;
}

.modal-head-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    z-index: 1;
}

body:has(#infoModal.show) .modal-backdrop,
.modal-backdrop.show {
    background-color: #c4162c;
}

#permissionModal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

#permissionModal > div {
    background-color: white;
    color: black;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    width: 75%;
}

.how-to-play,
.score {
    text-align: left;
    margin-bottom: 20px;
    font-family: Poppins !important;
}

.how-to-play h3,
.score h3 {
    color: #CB7410;
    font-size: 18px;
    font-weight: bold;
}

.how-to-play ul {
    list-style-type: none;
    padding: 0;
}

.how-to-play li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    color: #CB7410;
}

.score p {
    color: #CB7410;
    font-size: 16px;
    margin: 5px 0;
}

/* ============================================
   SHARED COMPONENTS
   ============================================ */

.header-wrapper {
    margin-top: 20px;
    text-align: center;
    width: 100%;
    flex-shrink: 0;
}

.red-title-text {
    color: #fff;
    text-align: center;
    font-family: TheSeasons, sans-serif;
    font-size: 45px;
    text-transform: uppercase;
    line-height: 1;
}

.main-text {
    color: #fff;
    font-family: 'TheSeasons', sans-serif;
    text-align: center;
    font-size: 18px;
    text-transform: uppercase;
    padding: 15px 0 10px;
    width: 80%;
    margin: 0 auto;
    border-bottom: 2px solid #efe700;
}

.red-border {
    background-image: url('../assets/decorative/red-border-left.png'), url('../assets/decorative/red-border-right.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left, right;
    margin: 0 auto;
    width: 90%;
    padding: 0px 40px;
}

.top-text {
    color: #CB7410;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 15px;
}

.content-text {
    color: #E82128;
    text-align: center;
    text-shadow: 1px 1px 0px #FFF;
    font-family: Knewave;
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
    text-transform: uppercase;
}

.share-section {
    text-align: center;
    width: 100%;
    padding-top: 10px;
    margin-top: auto;
}

.share-section p {
    font-size: 22px;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: bold;
    font-family: TheSeasons, sans-serif;
}

.social-icon {
    display: inline-flex;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fcf0d8;
    margin: 0 10px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-icon i {
    font-size: 24px;
    color: #d1002d;
    margin: 0;
}

.social-icons-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 15px;
}

.info-button,
.audio-button {
    font-size: 24px;
    color: #cf112d;
    cursor: pointer;
    position: relative;
    z-index: 10;
    user-select: none;
}

.info-icon {
    width: 36px;
    display: block;
    margin: 0 auto;
}

.decorative-border-left,
.decorative-border-right,
.social-icons-border-left,
.social-icons-border-right,
.ingredient-number-border-left,
.ingredient-number-border-right,
.tossing-text-border-left,
.tossing-text-border-right {
    flex: 1;
    height: 3px;
    background-color: #efe700;
    min-width: 50px;
    position: relative;
}

.decorative-border-left::after,
.social-icons-border-left::after,
.ingredient-number-border-left::after,
.tossing-text-border-left::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: #efe700;
}

.decorative-border-right::after,
.social-icons-border-right::after,
.ingredient-number-border-right::after,
.tossing-text-border-right::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: #efe700;
}

/* ============================================
   PAGE: START/HOME
   ============================================ */

.start-page.main-container {
    background: 
        url('../assets/gold-coins/start-coins-top-left.png'),
        url('../assets/gold-coins/start-coins-top-right.png'),
        url('../assets/gold-coins/start-coins-mid-left.png'),
        url('../assets/gold-coins/start-coins-mid-right.png'),
        url('../assets/backgrounds/start-sunray-bg.png'),
        url('../assets/backgrounds/beige-pattern-bg.png');
    background-size: 
        24% auto,
        24% auto,
        24% auto,
        24% auto,
        cover,
        cover;
    background-position: 
        5% 5%,
        95% 5%,
        5% 20%,
        95% 20%,
        center top,
        center top;
    background-repeat: 
        no-repeat,
        no-repeat,
        no-repeat,
        no-repeat,
        no-repeat,
        repeat;
}

.start-page.main-container::before, 
.end-page.main-container::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: #39b54a;
    z-index: 0;
    clip-path: circle(76% at 50% 100%);
}

.start-page.main-container::after, 
.end-page.main-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: url('../assets/backgrounds/red-textured-bg.png');
    background-size: 150%;
    background-position: center bottom;
    background-repeat: repeat;
    z-index: 1;
    clip-path: circle(75% at 50% 100%);
    pointer-events: none;
}

.start-page .main-character-img {
    max-width: 80%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.title-text-arched {
    width: 100%;
    height: 120px;
    min-height: 80px;
    max-height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    overflow: visible;
    flex-shrink: 0;
}

.title-text-arched svg {
    width: 100%;
    height: 100%;
    max-width: 500px;
    flex-shrink: 0;
}

.title-text-arched text {
    font-family: 'TheSeasons', sans-serif;
    font-size: 50px;
    font-weight: bold;
    fill: #d1002d;
    text-transform: uppercase;
}

.chinese-text-wrapper {
    width: 100%;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    position: relative;
    z-index: 1;
    overflow: visible;
    margin-bottom: -25%;
    margin-left: 5%;
}

.chinese-text-img {
    max-width: 95%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ============================================
   PAGE: INGREDIENTS
   ============================================ */

.ingredients-page.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url('../assets/backgrounds/ingredients-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ingredients-page .main-text {
    width: 100%;
    border-bottom: none;
}

.ingredients-page .header-wrapper {
    margin: 0;
}

.ingredients-page .bottom-content-wrapper {
    text-align: center;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.ingredient-image {
    position: relative;
    padding: 10px;
    max-width: 650px;
    width: 100%;
    margin: 20px auto;
    overflow: hidden;
}

.ingredient-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85px;
    height: 85px;
    border: 3px solid #efe700;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.ingredient-header-wrapper {
    width: 80%;
    border-bottom: 3px solid #efe700;
    margin: 0 auto;
}

.ingredient-name-characters {
    font-family: 'Adobe Heiti Std R', sans-serif;
    font-weight: bold;
    font-style: normal;
}

.ingredient-number-wrapper {
    position: relative;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    z-index: 1;
    width: 100%;
    gap: 15px;
}

.ingredient-number {
    position: relative;
    background-image: url('../assets/gold-coins/Gold-Ingot-For-Numbering.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: #d1002d;
    width: 55px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    z-index: 1;
}

.ingredient-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 30px;
    background-color: #E82128;
    z-index: 0;
}

.name-card {
    --mask: radial-gradient(30px at 30px 30px, #0000 98%, #000) -30px -30px;
    -webkit-mask: var(--mask);
    mask: var(--mask);
    background-color: #fcf1da;
    padding: 5px;
    margin: 0 auto;
    width: 100%;
}

.name-card-content {
    position: relative;
    --mask:
        radial-gradient(30px at 30px 30px, #0000 calc(98% - 2px), #000 calc(100% - 2px) 98%, #0000) -30px -30px,
        linear-gradient(90deg, #000 4px, #0000 0) -2px 50% / 100% calc(100% - 60px + 2px) repeat-x,
        linear-gradient(#000 4px, #0000 0) 50% -2px / calc(100% - 60px + 2px) 100% repeat-y;
}

.ingredients-page .name-card-container {
    position: relative;
    width: 90%;
    margin: 40px;
}

.name-card-container::before,
.name-card-container::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 3px solid #fcf1da;
    background-color: transparent;
}

.name-card-container::before {
    top: 0;
    left: 0;
}

.name-card-container::after {
    top: 0;
    right: 0;
}

.name-card-container .bottom-left::before,
.name-card-container .bottom-right::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 3px solid #fcf1da;
    background-color: transparent;
}

.name-card-container .bottom-left::before {
    bottom: 0;
    left: 0;
}

.name-card-container .bottom-right::after {
    bottom: 0;
    right: 0;
}

.name-text {
    color: #cf112d;
    text-align: center;
    font-family: 'ZiHunBaiGeTianXing', sans-serif;
    font-size: 50px;
    user-select: none;
}

.pinyin-text {
    font-size: 20px;
    color: #cf112d;
    text-align: center;
    margin-top: -15px;
}

.translation-text {
    font-size: 16px;
    color: #d1002d;
    padding: 10px 0;
    border: none;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
}

.name-card-container .gold-strip-wrap-btn {
    width: 75%;
    margin: 5px auto 15px;
    padding: 0 25px;
}

.name-card-container .gold-strip-wrap-btn::before {
    right: 25px;
    left: 25px;
}

.orange-top-left {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    max-width: 20%;
    height: auto;
    transform: translate(-30%, -30%);
}

.bag-bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 10;
    max-width: 18%;
    height: auto;
    transform: translate(30%, 30%);
}

.slick-slide {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.slick-slide:first-child {
    pointer-events: none;
}

.slick-slide img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 10px auto;
    background-color: #fff;
    padding: 5px;
}

.ingredients-page .slick-current img {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto;
}

.ingredients-page .slick-current .next-button {
    width: 80px !important;
    height: 80px !important;
    margin: 0;
}

.slider-arrows {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 100px;
    margin: 0 auto 20px;
}

.slick-prev {
    right: 50% !important;
    left: auto !important;
}

.ingredients-page .slick-next {
    left: 50% !important;
    right: auto !important;
}

.slick-prev,
.slick-next {
    color: #efe700;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: extra-bold;
    text-transform: uppercase;
    top: auto !important;
    margin: 0 10px;
}

.slick-prev.disabled-arrow {
    pointer-events: none;
    opacity: 0.5;
}

.slick-next:before {
    content: '\F138' !important;
}

.ingredients-page .slick-prev:before {
    content: '\F12F' !important;
}

.slick-next:before,
.slick-prev:before {
    font-family: 'bootstrap-icons' !important;
    color: #efe700 !important;
    display: inline-block;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-text-stroke: 2px #efe700;
    text-stroke: 2px #efe700;
}

.ingredients-page .swipe-text {
    color: #CB7410;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.chevron-container {
    display: flex;
    align-items: center;
    gap: 2px;
    position: relative;
}

.chevron {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    display: inline-block;
    animation: disappearWave 1.8s ease-in-out infinite;
}

.chevron:nth-child(1) {
    animation-delay: 0s;
}

.chevron:nth-child(2) {
    animation-delay: 0.3s;
}

.chevron:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes disappearWave {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    20% {
        opacity: 0;
        transform: translateX(-8px) scale(0.8);
    }
    40% {
        opacity: 0;
        transform: translateX(-8px) scale(0.8);
    }
    60% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.swipe-text-content {
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 18px;
    color: #fff;
    text-align: center;
    margin: 0 auto;
}

.swipe-second-line {
    font-size: 12px;
}

/* ============================================
   PAGE: READY TO LO HEI
   ============================================ */

.lohei-page.main-container {
    background-image: 
        url('../assets/backgrounds/lohei-sunrays-bg.png'),
        url('../assets/backgrounds/red-coins-pattern-bg.png');
    background-size: cover, 100%;
    background-position: center, center bottom;
    background-repeat: no-repeat, repeat;
}

.lohei-page.main-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #8B1A1A; 
    background-image: url('../assets/backgrounds/texture-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    z-index: 1;
    clip-path: ellipse(40% 30% at 50% 45%);
    pointer-events: none;
}

.lohei-page.main-container > * {
    position: relative;
    z-index: 2;
}

.lohei-page .main-content-wrapper {
    margin-top: 1rem;
}

.lohei-page .red-title-text {
    font-size: 40px;
}

.lohei-page .gold-strip-wrap-btn {
    width: 45%;
    padding: 0px 25px;
}

.lohei-page .subtitle-wrapper img {
    max-width: 18%;
}

.lohei-page .subtitle-text {
    font-size: 20px;
    color: #fff;
    text-align: center;
    width: 75%;
}

/* ============================================
   PAGE: TOSSING
   ============================================ */

.tossing-video-fullscreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.tossing-page.main-container {
    background-color: #cf112d;
    background: none;
    justify-content: flex-end;
}

.tossing-page.main-container > *:not(.tossing-video-fullscreen) {
    position: relative;
    z-index: 1;
}

.tossing-page .header-wrapper {
    margin-top: 0;
}

.tossing-page .subtitle-wrapper {
    margin-top: auto;
    margin-bottom: 1.5rem;
}

.tossing-page .subtitle-wrapper img {
    max-width: 18%;
}

.tossing-page .subtitle-text {
    font-size: 20px;
    color: #fff;
    text-align: center;
    width: 75%;
}

.tossing-page .main-text {
    font-size: 20px;
    color: #d1002d;
    padding: 10px 0;
    border: none;
    width: 100%;
    text-align: center;
    text-transform: none;
    font-family: 'TheSeasons', sans-serif;
}

.tossing-page .gold-strip-wrap-btn {
    width: 100%;
}

.tossing-page .gold-strip-wrap-btn::before {
    right: 30px;
    left: 30px;
}

.tossing-header-wrapper {
    width: 80%;
    margin: 0 auto;
}

.tossing-text-wrapper {
    position: relative;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    z-index: 1;
    width: 100%;
    gap: 15px;
}

.tossing-text {
    font-size: 16px;
    color: #fff;
    padding: 10px;
    border: none;
    text-align: center;
    text-transform: uppercase;
}

/* ============================================
   PAGE: END
   ============================================ */

.end-page.main-container {
    background: 
        url('../assets/gold-coins/end-coins-top-left.png'),
        url('../assets/gold-coins/end-coins-top-right.png'),
        url('../assets/gold-coins/end-coins-mid-left.png'),
        url('../assets/gold-coins/end-coins-mid-right.png'),
        url('../assets/backgrounds/start-sunray-bg.png'),
        url('../assets/backgrounds/beige-pattern-bg.png');
    background-size: 
        35% auto,
        50% auto,
        28% auto,
        22% auto,
        cover,
        cover;
    background-position: 
        2% 1%,
        98% -2%,
        2% 22%,
        98% 20%,
        center top,
        center top;
    background-repeat: 
        no-repeat,
        no-repeat,
        no-repeat,
        no-repeat,
        no-repeat,
        repeat;
    justify-content: center;
}

.end-page.main-container .main-image img {
    max-width: 60%;
}

/* .end-page .main-content-wrapper {
    justify-content: flex-start;
} */

.end-page .main-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.end-page.main-container .red-title-text {
    color: #cf112d;
}

.end-page.main-container .header-wrapper {
    margin: 40px auto 20px;
}

.end-page .end-title-text {
    color: #ffff;
    text-align: center;
    text-shadow: 3px 3px 0px #CB7410;
    font-family: Knewave;
    font-size: 50px;
    font-style: normal;
    font-weight: 400;
    line-height: 43px;
    text-transform: uppercase;
}

.snake-end-page.main-container {
    justify-content: center;
}

.snake-end-page .main-image {
    margin-top: auto;
    margin-bottom: auto;
}

.huat-number-text {
    margin-bottom: 20px;
    text-align: center;
    flex-shrink: 0;
}

.number-box {
    display: inline-block;
    background: linear-gradient(to bottom, transparent, rgba(204, 102, 0, 0.5));
    color: #d1002d;
    font-size: 55px;
    font-weight: 900;
    /* -webkit-text-stroke: 1px #d1002d; */
    width: 55px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    margin: 0 5px;
    border-radius: 0;
    font-family: Muli, sans-serif;
}

.number-box span {
    visibility: hidden;
}

/* ============================================
   SCREEN SIZE & ORIENTATION MESSAGES
   ============================================ */

#screen-size-message,
#orientation-message {
    height: 100vh !important;
    display: none;
    color: #E82128;
    background-color: #fff;
}

#screen-size-message .logo {
    position: absolute;
    top: 5%;
    width: 100px;
}

#orientation-message {
    display: flex;
    text-align: center;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    font-size: 30px;
}

/* ============================================
   MEDIA QUERIES
   ============================================ */

@media (min-width: 651px) {
    #screen-size-message {
        display: block;
        text-align: center;
        padding: 20px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 30px;
        flex-direction: column;
    }

    .main-container {
        display: none !important;
    }
}

@media (min-width: 430px) {
    .swipe-text {
        left: -50%;
        position: relative;
    }
}

@media screen and (max-height: 765px) {
    .snake-btn {
        padding: 10px 0;
    }

    .ingredients-page .ingredient-image {
        margin: 5px;
    }

    .ingredients-page .ingredient-image::before {
        width: 75px;
        height: 75px;
    }

    .ingredients-page .name-card-container {
        margin: 20px 0;
    }

    .ingredients-page .slick-current img {
        width: 70px !important;
        height: 70px !important;
        margin: 5px auto;
    }

    .ingredients-page .slick-current .next-button {
        width: 70px !important;
        height: 70px !important;
        margin: 10px auto;
    }
}

@media screen and (max-height: 720px) {
    .yusheng-img {
        max-width: 55%;
    }

    .start-page .chinese-text-wrapper {
        flex: 0 0 auto;
    }

    
    .start-page .main-images-container {
        gap: 5px;
    }
}
