@font-face {
    font-family: 'Wendy';
    src: url('/assets/fonts/wendy.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "GameFont";
    src: url("/assets/fonts/Bungee-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    /* background: linear-gradient(to bottom, #1e1d63, #402f8e, #7a3b8f, #f77356); */
    background: url('/assets/icons/city_bg.png') no-repeat;
    background-size: 100% 100%;
    overflow: hidden;
}

.wrapper {
    max-width: 600px;
    padding-top: 10px;
    margin: auto;
    background: url('/assets/icons/city_bg.png') no-repeat;
    background-size: 100% 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff1dc;
    font-family: 'Segoe UI', sans-serif;
    position: relative;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    margin-bottom: 1rem;
}

.center-wrapper {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
}

.menu-left,
.menu-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: absolute;
    top: 20px;
}

.menu-left {
    left: 20px;
}

.menu-right {
    right: 20px;
}

.menu-button,
[data-tc-connect-button="true"],
[data-tc-dropdown-button="true"] {
    padding: 8px;
    display: flex;
    justify-content: center;
    color: #fff1dc;
    text-align: center;
    font-size: 18px;
    background: linear-gradient(0deg, #3d347b 70%, rgba(122, 117, 161, 1) 100%);
    cursor: pointer;
    border: 2px solid #323076;
    border-radius: 999px;
    transition: all 0.3s;
    /* box-shadow: 6px 6px 12px #201856, -6px -6px 12px #201856; */
    box-shadow: 0px 0px 0px #201856, 0px 4px 12px #201856;
    align-items: center;
    gap: 10px;
    width: fit-content;
    height: fit-content;
    margin-right: auto;
    margin-left: auto;
    position: relative;
    z-index: 2;
}

[data-tc-connect-button="true"] div,
[data-tc-dropdown-button="true"] div {
    color: #fff1dc !important;
}

[data-tc-dropdown-button="true"] svg {
    transform: rotate(90deg);
    /* flips the arrow upward */
}

[data-tc-dropdown-container="true"] {
    transform: translate(20%, -150%);
}

.menu-button:active {
    color: #666;
    box-shadow: inset 4px 4px 12px #201856, inset -4px -4px 12px #201856;
}

.menu-button-text {
    font-weight: 600;
    text-align: center;
    color: #f7e2be;
    margin-top: 3px;
}

.character {
    margin-top: 30px;
    width: 12rem;
    height: 12rem;
    position: relative;
    z-index: 2;
}

.character img {
    width: 100%;
}

.platform {
    background: url('/assets/icons/stageindex.png');
    background-size: 100% 100%;
    width: 25rem;
    aspect-ratio: 2.5/1;
    margin-top: -3.5rem;
    position: relative;
    z-index: 1;
}

.start-bar {
    margin-top: -35px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 5;
    position: relative;
}

.bottom-bar {
    position: absolute;
    bottom: 2%;
    /* width: 100%;
            background: linear-gradient(to top, #1e1d63, #402f8e, #7a3b8f, #f77356); */
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-play {
    background: #6d4bff;
    padding: 15px 40px;
    font-size: 24px;
    border-radius: 30px;
    font-weight: bold;
    color: white;
}

.wallet-icon {
    width: 50px;
    height: 50px;
    background-color: #4c2d91;
    border-radius: 15px;
}

.wallet-label {
    text-align: center;
    margin-top: 5px;
}

.start-button {
    cursor: pointer;
    margin-left: 5px;
    margin-bottom: 15px;
    font-size: 2.2rem;
    font-family: Helvetica, Arial, Sans-Serif;
    text-decoration: none;
    font-weight: bold;
    color: #fff1dc;
    padding: 0.6rem 2.5rem;
    display: inline-block;
    width: auto;
    background: linear-gradient(to bottom, #fdd52b 0%, #f9a828 100%);
    border-radius: 15px;
    border: 3px solid #b95e06;
    box-shadow: 0 5px 0 #8d4704, 0 8px 12px rgba(0, 0, 0, 0.3);
    text-shadow: 2px 0 #8d4704, -2px 0 #8d4704, 0 2px #8d4704, 0 -2px #8d4704,
        1px 1px #8d4704, -1px -1px #8d4704, 1px -1px #8d4704, -1px 1px #8d4704;
    transition: all 0.1s ease-out;
    position: relative;
}

.start-button:visited {
    color: #fff1dc;
}

.start-button:hover {
    background: linear-gradient(to bottom, #ffe156 0%, #fcb11d 100%);
}

.start-button:active {
    top: 4px;
    box-shadow: 0 2px 0 #8d4704, 0 4px 8px rgba(0, 0, 0, 0.2);
    color: rgb(186, 186, 186);
}

.play-button {
    background: linear-gradient(to bottom, #6c41e8, #5538ea);
    border: none;
    border-radius: 40px;
    padding: 16px 48px;
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff6cc;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    max-width: 60vw;

    /* Distinct directional shadows */
    box-shadow:
        inset 2px 2px 4px rgba(255, 255, 255, 0.4),
        /* top-left light */
        inset -2px -2px 4px rgba(0, 0, 0, 0.2),
        /* bottom-right inner dark */
        -3px -3px 0#7b46f2,
        /* top-left outer light bevel */
        3px 3px 0 #3a1e90,
        /* bottom-right outer dark edge */
        0 6px 12px rgba(0, 0, 0, 0.35);
    /* base drop shadow */

    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 2px 2px 4px rgba(255, 255, 255, 0.5),
        inset -2px -2px 4px rgba(0, 0, 0, 0.25),
        -3px -3px 0 #7b46f2,
        3px 3px 0 #2f1474,
        0 8px 14px rgba(0, 0, 0, 0.45);
}

.play-button:active {
    transform: translateY(2px);
    box-shadow:
        inset 2px 2px 6px rgba(0, 0, 0, 0.4),
        inset -2px -2px 4px rgba(255, 255, 255, 0.2),
        -2px -2px 0 #7b46f2,
        2px 2px 0 #2d1670,
        0 4px 8px rgba(0, 0, 0, 0.3);
}


.avatar-frame {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    padding: 6px;
    background: radial-gradient(circle at 30% 30%, #2b2572, #311a75);
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        /* inner glow */
        0 4px 8px rgba(0, 0, 0, 0.4),
        /* outer shadow */
        0 1px 0 rgba(255, 255, 255, 0.1);
    /* top highlight */
    display: flex;
    align-items: center;
    justify-content: center;
    scale: 1.5;
    aspect-ratio: 1;
}

.avatar-frame img {
    width: 100%;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    box-shadow:
        inset 0 -2px 4px rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.profile-bar {
    display: flex;
    color: #fff1dc;
    border-radius: 15px;
    background: linear-gradient(0deg, rgba(37, 32, 105, 1) 70%, rgba(122, 117, 161, 1) 100%);
    border: 2px solid #323076;
    box-shadow: 0px 0px 0px #201856, 0px 4px 12px #201856;
}

.profile-bar:hover {
    transform: scale(1.03);
}

.profile-bar:active {
    transform: translateY(2px);
}

.hover-animate:hover {
    transform: scale(1.03);
}

.hover-animate:active {
    transform: translateY(2px);
}

.stamina-container {
    border-radius: 15px;
    background: #18194d;
}

.check-balance {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 11px 20px;
    background: linear-gradient(to bottom, #8f5de1, #3b299a 18%);
    color: #fff1dc;
    font-weight: bold;
    font-family: 'Helvetica', sans-serif;
    border: none;
    border-radius: 20px;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        0 4px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.1s ease;
    height: fit-content;
}

.check-balance:hover {
    transform: scale(1.03);
}

.check-balance:active {
    transform: translateY(2px);
}

.icon-circle {
    /* background: radial-gradient(circle at center, #fbd35f, #f29100); */
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    margin-right: 10px;
    justify-content: center;
    /* box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.4); */
}

.icon-circle img {
    width: 100%;
    height: 100%;
}

.energy-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(to bottom, #3c2e80, #1d1b5c);
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        0 3px 6px rgba(0, 0, 0, 0.3);
    color: white;
    font-weight: bold;
    font-family: 'Helvetica', sans-serif;
    font-size: 16px;
}

.energy-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

.energy-icon img {
    width: 16px;
    height: 16px;
}

.energy-text {
    line-height: 1;
}

.announcement {
    /* background: rgba(0, 0, 0, 0.31); */
    margin-top: -5px;
}

.btn-sm {
    height: fit-content;
}

.btn:not(.btn-secondary) {
    display: inline-block;
    font-weight: 600;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: #ffbf00;
    /* bright cartoon yellow */
    border: none;
    padding: 0.2rem 0.6rem;
    /* font-size: 1.1rem; */
    line-height: 1.5;
    border-radius: 12px;
    box-shadow: 0 6px #d9a200;
    /* darker bottom to fake depth */
    transition: all 0.15s ease-in-out;
    font-family: 'Comic Sans MS', 'Fredoka', sans-serif;
    /* playful fonts */
}

.btn-danger {
    background-color: #ff4d4d !important;
    box-shadow: 0 6px #cc0000 !important;
}

.btn-success {
    background-color: #4caf50 !important;
    box-shadow: 0 6px #388e3c !important;
}

.btn-primary {
    background-color: #2196f3 !important;
    box-shadow: 0 6px #0b79d0 !important;
}

/* On hover: lift effect */
.btn:not(.btn-secondary):hover {
    background-color: #ffdb4d;
    box-shadow: 0 8px #c19000;
    transform: translateY(-2px);
}

/* On active: pressed-in effect */
.btn:not(.btn-secondary):active {
    box-shadow: 0 2px #c19000;
    transform: translateY(2px);
}

@media (max-width: 550px) or (max-height: 700px) {

    body {
        font-size: 14px !important;
    }

    div:where(.swal2-container) div:where(.swal2-html-container) {
        font-size: 14px !important;
    }

    .character {
        width: 10rem;
        height: 10rem;
    }

    .platform {
        width: 20rem;
        margin-top: -2.5rem;
    }

    .start-button {
        font-size: 1.8rem;
        padding: 0.6rem 2.2rem;
    }

    .start-bar {
        margin-top: -25px;
        gap: 20px;
    }

    .play-button {
        font-size: 1.5rem;
    }

    #checkBalanceLabel {
        display: none;
    }

    .icon-circle {
        margin-right: 0;
    }

    .btn {
        font-size: 14px !important;
    }
}

@media (max-width: 400px) or (max-height: 600px) {
    .play-button {
        font-size: 1.0rem;
    }

    .menu-button img{
        width: 30px;
        height: 30px;
    }

    .first-deposit-icon img{
        width: 50px;
        height: 50px;
    }
}

@media (max-height: 600px) {
    .menu-left,.menu-right{
        padding-top: 30px;
    }
}
#phaser-game-container {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    z-index: 4;
    margin: 0;
    background: url('/assets/icons/city_bg.png') no-repeat;
    background-size: 100% 100%;
}

canvas {
    margin: auto;
}

.convert-btn {
    cursor: pointer;
}

.overflow-visible {
    overflow: visible !important;
}

swiper-container {
    width: 100%;
    height: 100%;
}

swiper-slide {
    text-align: center;
    font-size: 18px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    /* semi-transparent black */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.mask-button {
    animation-name: pulse;
    animation-duration: 1.5s;
    animation-timing-function: ease-out;
    animation-iteration-count: infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    }

    80% {
        box-shadow: 0 0 0 14px rgba(0, 136, 204, 0);
    }
}

.first-deposit-icon img {
    display: block;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6)) drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
    animation: softGlow 2.5s ease-in-out infinite, floatBounce 4s ease-in-out infinite;
    transition: transform 0.3s ease;
    transform-origin: center;
}

/* Existing Glow Animation */
@keyframes softGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6)) drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(255, 223, 0, 0.8)) drop-shadow(0 0 35px rgba(255, 200, 0, 0.5));
    }
}

/* 🪄 New Floating Effect */
@keyframes floatBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px) scale(1.05);
    }
}

/* Optional: Hover Boost */
.first-deposit-icon img:hover {
    transform: scale(1.1) rotate(1deg);
}

.switch {
    position: relative;
    display: inline-block;
    width: 49px;
    height: 24px;
}

.switch .custom-sun-toggle {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000000;
    transition: .4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    border-radius: 20px;
    left: 2px;
    bottom: 2px;
    z-index: 2;
    background-color: #e8e8e8;
    transition: .4s;
}

.sun-toggle svg {
    position: absolute;
    top: 6px;
    left: 36px;
    z-index: 1;
    width: 24px;
    height: 24px;
}

.moon-toggle svg {
    fill: #000000;
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 1;
    width: 24px;
    height: 24px;
}

/* .switch:hover */
.sun-toggle svg {
    animation: rotate 15s linear infinite;
}

@keyframes rotate {

    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* .switch:hover */
.moon-toggle svg {
    animation: tilt 5s linear infinite;
}

@keyframes tilt {

    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.custom-sun-toggle:checked+.slider {
    background-color: #5dade2;
}

.custom-sun-toggle:focus+.slider {
    box-shadow: 0 0 1px #5dade2;
}

.custom-sun-toggle:checked+.slider:before {
    transform: translateX(24px);
}

.game-font {
    font-family: 'GameFont', sans-serif;
}

.change-lang {
    max-width: 170px;
    padding: 10px
}

.change-lang:hover {
    color: black;
    background: white;
}

.max-w-300 {
    max-width: 310px;
}

.scrolling-text {
  width: 100%;
  overflow: hidden;
}

.scrolling-text p {
  white-space: nowrap;
  animation: scroll 15s linear infinite;
}


@keyframes scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

::-webkit-scrollbar {
  width: 12px;
  background: transparent;
}

::-webkit-scrollbar-track {
  background: linear-gradient(rgb(143, 93, 225), rgb(59, 41, 154) 18%);
  border-radius: 12px;
  margin: 16px 0; /* Space above/below for vertical scrollbar */
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #FFF4D6, #BDAAF5 70%);
  border-radius: 12px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #FFE1A1, #9B86E4 70%);
}

::-webkit-scrollbar-button {
  display: none;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #BDAAF5 #8F5DE1;
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    color: black !important;
    background: #BDAAF5;
}