/* =========================================
   CUPCAKE TOWN
========================================= */

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(to bottom, #87CEEB 0%, #dff6ff 100%);
    color: #333;
}

.town-header {
    position: relative;
    z-index: 1000;
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    box-sizing: border-box;
}
.town-teleport-btn {
    margin-left: 10px;
    padding: 13px 28px;
    border: none;
    border-radius: 20px;
    background: #8b5cf6;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.town-teleport-btn:hover {
    transform: translateY(-2px);
}
.town-header h1 {
    margin: 0;
    font-size: 2rem;
}

#town-status {
    margin-top: 8px;
    color: white;
    font-size: 1rem;
}

#town-container {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.town-map-wrapper {
    position: relative;
    width: fit-content;
    margin: 0 auto;
}

#town-map {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.town-location {
    position: absolute;
    display: block;
    cursor: pointer;
}
/* ===== Temporary Town Rebuild Overrides ===== */
#home-link {
    position: absolute;
    left: 11%;
    top: 19%;
    width: 20%;
    height: 28%;
}

#members-link {
    position: absolute;
    left: 5%;
    top: 47%;
    width: 25%;
    height: 34%;
}

#bakery-link {
    position: absolute;
    left: 40%;
    top: 17%;
    width: 23%;
    height: 32%;
}

#messages-link {
    position: absolute;
    left: 69%;
    top: 18%;
    width: 25%;
    height: 33%;
}

#matches-link {
    position: absolute;
    left: 72%;
    top: 50%;
    width: 22%;
    height: 30%;
}

#gift-link {
    position: absolute;
    left: 16%;
    top: 76%;
    width: 23%;
    height: 24%;
}

#arcade-link {
    position: absolute;
    left: 40%;
    top: 75%;
    width: 23%;
    height: 25%;
}

#music-link {
    position: absolute;
    left: 69%;
    top: 75%;
    width: 23%;
    height: 25%;
}

/* ===========================
   HOTSPOT EDITOR
=========================== */

#editor-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;

    width: 260px;

    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);

    padding: 15px;

    z-index: 99999;

    font-family: Arial, Helvetica, sans-serif;
}

#editor-panel strong{
    display:block;
    margin-bottom:10px;
}

#editor-output{
    font-size:14px;
    color:#444;
    word-break:break-word;
}
body.hide-hotspots .town-location{
    outline: none !important;
}
/* ===== Welcome Banner Fix ===== */

/* =========================================
   CUPCAKE TOWN — CENTER WELCOME BANNER
========================================= */

#welcome-banner {
    position: relative !important;
    z-index: 20;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 12px auto 20px !important;
    padding: 0 12px !important;

    text-align: center !important;
    box-sizing: border-box !important;

    top: auto !important;
    right: auto !important;
    left: auto !important;
}

#welcome-banner h1 {
    display: inline-block;
    max-width: 100%;

    margin: 0;
    padding: 14px 28px;

    text-align: center;
    box-sizing: border-box;
}

#welcome-banner h1 {
    display: inline-block;
    margin: 0;
    padding: 14px 28px;
    background: white;
    border-radius: 18px;
}

/* ===== CUPCAKE TOWN LOGOUT BUTTON ===== */

#townLogoutBtn {
    background: linear-gradient(135deg, #ff5fa2, #e83e8c);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(232, 62, 140, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#townLogoutBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(232, 62, 140, 0.4);
}

#townLogoutBtn:active {
    transform: translateY(0);
}

/* ==========================================================
   CUPCAKE TOWN WALKER
========================================================== */

#town-walker {
    position: absolute;

    left: 50%;
    top: 65%;

    transform: translate(-50%, -50%);

    font-size: 38px;
    line-height: 1;

    z-index: 999;

    /* No test circle */
    background: transparent;
    border: none;

    width: auto;
    height: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;

    /* Smooth walking movement */
    transition:
        left 1.2s ease,
        top 1.2s ease,
        transform 0.2s ease;

    /* Small shadow so walker stands out */
    filter: drop-shadow(0 3px 4px rgba(0,0,0,0.45));
}

/* =========================================================
   CUPCAKE WALKING ANIMATION
========================================================= */

#town-walker.walking {
    animation: cupcakeWalk 0.28s ease-in-out infinite alternate;
}

@keyframes cupcakeWalk {

    0% {
        translate: 0 0;
        rotate: -8deg;
    }

    100% {
        translate: 0 -12px;
        rotate: 8deg;
    }
}

/* ==========================================
   CUPCAKE TOWN TELEPORT MODAL
========================================== */

.teleport-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(20, 10, 35, 0.72);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.teleport-modal.active {
    display: flex;
}

.teleport-panel {
    width: min(520px, 92vw);
    background: linear-gradient(145deg, #ffffff, #fff0f7);
    border: 3px solid #ff70b7;
    border-radius: 24px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.teleport-panel h2 {
    margin: 0 0 6px;
    font-size: 30px;
    color: #e83e8c;
}

.teleport-panel p {
    margin: 0 0 22px;
    color: #555;
    font-weight: 600;
}

.teleport-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.teleport-grid button {
    padding: 14px 10px;
    border: 2px solid #ffd0e5;
    border-radius: 14px;
    background: white;
    color: #333;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease,
                box-shadow 0.18s ease,
                background 0.18s ease;
}

.teleport-grid button:hover {
    background: #ffebf5;
    border-color: #ff70b7;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 18px rgba(232, 62, 140, 0.25);
}

.teleport-grid button:active {
    transform: scale(0.97);
}

#closeTeleportBtn {
    margin-top: 20px;
    padding: 11px 28px;
    border: none;
    border-radius: 20px;
    background: #333;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

#closeTeleportBtn:hover {
    background: #555;
}

@media (max-width: 520px) {
    .teleport-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   MASTER TELEPORT DIRECTORY UPGRADE
========================================== */

.teleport-panel-large {
    width: min(980px, 94vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow: hidden;
}

.teleport-sections {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    margin-top: 10px;
    flex: 1;
}

/* Custom scrollbar */
.teleport-sections::-webkit-scrollbar {
    width: 10px;
}

.teleport-sections::-webkit-scrollbar-track {
    background: #f4dce8;
    border-radius: 20px;
}

.teleport-sections::-webkit-scrollbar-thumb {
    background: #e83e8c;
    border-radius: 20px;
}

.teleport-sections::-webkit-scrollbar-thumb:hover {
    background: #c92f75;
}

.teleport-section {
    margin-bottom: 26px;
}

.teleport-section h3 {
    margin: 6px 0 12px;
    font-size: 20px;
    color: #333;
    text-align: left;
    border-bottom: 2px solid #ffd1e5;
    padding-bottom: 7px;
}

.teleport-section .teleport-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.teleport-section .teleport-grid button {
    min-height: 58px;
    padding: 12px 14px;
    line-height: 1.25;
}

.coming-soon {
    position: relative;
    opacity: 0.65;
    cursor: not-allowed !important;
    background: #f7f7f7 !important;
    transform: none !important;
    box-shadow: none !important;
}

.coming-soon span {
    display: block;
    width: fit-content;
    margin: 7px auto 0;
    padding: 3px 8px;
    border-radius: 999px;
    background: #333;
    color: white;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

#closeTeleportBtn {
    flex: 0 0 auto;
    margin: 18px auto 0;
    min-width: 130px;
}

/* Tablet */
@media (max-width: 800px) {

    .teleport-section .teleport-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .teleport-panel-large {
        width: 94vw;
        max-height: 90vh;
    }
}

/* Phone */
@media (max-width: 520px) {

    .teleport-panel-large {
        width: 94vw;
        max-height: 92vh;
        padding: 18px 14px;
    }

    .teleport-section .teleport-grid {
        grid-template-columns: 1fr;
    }

    .teleport-section h3 {
        font-size: 18px;
    }

    .teleport-section .teleport-grid button {
        min-height: 52px;
    }
}

/* ==========================================
   CUPCAKE TOWN WEATHER LAYER
========================================== */

#town-weather-layer {

    position: absolute;
    inset: 0;

    overflow: hidden;

    border-radius: 20px;

    pointer-events: none;

    z-index: 500;

}

/* ==========================================
   CUPCAKE TOWN RAIN EFFECT
========================================== */

.weather-rain {
    background: rgba(20, 30, 50, 0.18);
}

.rain-drop {
    position: absolute;
    top: -12%;
    width: 2px;
    height: 24px;
    background: rgba(210, 235, 255, 0.85);
    border-radius: 999px;
    animation-name: cupcakeRainFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes cupcakeRainFall {

    from {
        transform: translateY(-10vh) rotate(12deg);
    }

    to {
        transform: translateY(120vh) rotate(12deg);
    }

}

/* ==========================================
   CUPCAKE TOWN SNOW EFFECT
========================================== */

.weather-snow {
    background: rgba(235, 245, 255, 0.12);
}

.snow-flake {
    position: absolute;
    top: -10%;
    color: white;
    opacity: 0.9;
    text-shadow: 0 0 5px rgba(255,255,255,0.8);
    animation-name: cupcakeSnowFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes cupcakeSnowFall {

    from {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
    }

    to {
        transform: translateY(120vh) translateX(30px) rotate(360deg);
    }

}

/* ==========================================
   CUPCAKE TOWN SLEET EFFECT
========================================== */

.weather-sleet {
    background: rgba(210, 225, 240, 0.16);
}

.sleet-pellet {
    position: absolute;
    top: -8%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(235, 245, 255, 0.95);
    box-shadow: 0 0 4px rgba(255,255,255,0.8);
    animation-name: cupcakeSleetFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes cupcakeSleetFall {

    from {
        transform: translateY(-10vh) translateX(0);
    }

    to {
        transform: translateY(120vh) translateX(18px);
    }

}

/* ==========================================
   CUPCAKE TOWN THUNDERSTORM EFFECT
========================================== */

.weather-thunderstorm {
    background: rgba(12, 18, 35, 0.28);
}

.storm-rain-drop {
    position: absolute;
    top: -12%;
    width: 2px;
    height: 28px;
    background: rgba(210, 235, 255, 0.9);
    border-radius: 999px;
    animation-name: cupcakeStormRain;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.lightning-flash {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    animation: cupcakeLightning 5s infinite;
}

@keyframes cupcakeStormRain {

    from {
        transform: translateY(-10vh) rotate(14deg);
    }

    to {
        transform: translateY(120vh) rotate(14deg);
    }

}

@keyframes cupcakeLightning {

    0%, 88%, 100% {
        background: rgba(255,255,255,0);
    }

    89% {
        background: rgba(255,255,255,0.85);
    }

    90% {
        background: rgba(255,255,255,0.12);
    }

    91% {
        background: rgba(255,255,255,0.7);
    }

    92% {
        background: rgba(255,255,255,0);
    }

}

/* ==========================================
   CUPCAKE TOWN CLOUDY EFFECT
========================================== */

.weather-cloudy {
    background:
        linear-gradient(
            rgba(90, 105, 130, 0.16),
            rgba(90, 105, 130, 0.10)
        );
}

.weather-cloudy::before,
.weather-cloudy::after {
    content: "☁";
    position: absolute;

    font-size: 110px;
    line-height: 1;

    color: rgba(238, 243, 250, 0.62);

    text-shadow:
        0 6px 14px rgba(20, 30, 55, 0.20);

    animation: cupcakeCloudDrift 22s linear infinite;
}

.weather-cloudy::before {
    top: 4%;
    left: -25%;
}

.weather-cloudy::after {
    top: 18%;
    left: -40%;

    font-size: 90px;
    opacity: 0.7;
    animation-delay: 6s;
}
@keyframes cupcakeCloudDrift {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(1600px);
    }

}

/* ==========================================
   CUPCAKE TOWN FOG EFFECT
========================================== */

.weather-fog {
    background: rgba(210, 220, 230, 0.20);
}

.weather-fog::before,
.weather-fog::after {
    content: "";
    position: absolute;
    width: 70%;
    height: 140px;
    left: -70%;
    border-radius: 50%;
    background: rgba(235, 240, 245, 0.45);
    filter: blur(28px);
    animation: cupcakeFogDrift 20s linear infinite;
}

.weather-fog::before {
    top: 25%;
}

.weather-fog::after {
    top: 55%;
    animation-delay: 8s;
    opacity: 0.65;
}

@keyframes cupcakeFogDrift {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(250%);
    }
}

/* ==========================================
   CUPCAKE TOWN FREEZING RAIN EFFECT
========================================== */

.weather-freezing-rain {
    background:
        linear-gradient(
            rgba(170, 205, 235, 0.22),
            rgba(205, 225, 245, 0.14)
        );
}

.freezing-rain-drop {
    position: absolute;
    top: -10%;
    width: 4px;
    height: 38px;
    background: rgba(230, 245, 255, 0.95);
    border-radius: 999px;
    box-shadow: 0 0 7px rgba(220, 240, 255, 0.95);
    animation-name: cupcakeFreezingRain;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes cupcakeFreezingRain {
    from {
        transform: translateY(-10vh) rotate(10deg);
    }

    to {
        transform: translateY(120vh) rotate(10deg);
    }
}

/* ==========================================
   CUPCAKE TOWN WIND EFFECT
========================================== */

.weather-windy {
    overflow: hidden;
}

.wind-gust {
    position: absolute;
    left: -25%;
    width: 140px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.45);

    animation-name: cupcakeWindGust;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes cupcakeWindGust {

    from {
        transform: translateX(0);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    80% {
        opacity: 0.8;
    }

    to {
        transform: translateX(150vw);
        opacity: 0;
    }
}

.wind-leaf {
    position: absolute;
    left: -10%;
    z-index: 5;
    pointer-events: none;

    animation-name: cupcakeLeafBlow;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes cupcakeLeafBlow {

    from {
        transform:
            translateX(0)
            translateY(0)
            rotate(0deg);
    }

    50% {
        transform:
            translateX(65vw)
            translateY(35px)
            rotate(360deg);
    }

    to {
        transform:
            translateX(125vw)
            translateY(-20px)
            rotate(720deg);
    }
}

/* ==========================================
   CUPCAKE TOWN PARTLY CLOUDY EFFECT
========================================== */

.weather-partly-cloudy {
    overflow: hidden;
}

.partly-cloud {
    position: absolute;
    left: -20%;

    width: 120px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 90px;
    line-height: 1;

    color: rgba(245, 248, 255, 0.92);

    text-shadow:
        0 6px 12px rgba(20, 30, 60, 0.18);

    animation-name: cupcakeCloudDrift;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.partly-cloud::before {
    content: "☁";
}
@keyframes cupcakeCloudDrift {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(145vw);
    }
}

/* ==========================================
   CUPCAKE TOWN HAIL EFFECT
========================================== */

.weather-hail {
    overflow: hidden;
    background: rgba(190, 210, 225, 0.10);
}

.hail-stone {
    position: absolute;
    top: -5%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(245, 250, 255, 0.95);
    box-shadow:
        0 0 5px rgba(220, 240, 255, 0.9);

    animation-name: cupcakeHailFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes cupcakeHailFall {
    from {
        transform: translateY(-10vh) translateX(0);
    }

    to {
        transform: translateY(120vh) translateX(20px);
    }
}

/* ==========================================
   CUPCAKE TOWN STRONG WIND EFFECT
========================================== */

.weather-strong-wind {
    overflow: hidden;
}

/* FAST WIND STREAKS */

.strong-wind-gust {
    position: absolute;
    left: -25%;
    width: 180px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 0 7px rgba(255, 255, 255, 0.5);

    animation: cupcakeStrongGust linear infinite;
}

@keyframes cupcakeStrongGust {
    from {
        transform: translateX(0);
        opacity: 0;
    }

    15% {
        opacity: 0.9;
    }

    85% {
        opacity: 0.9;
    }

    to {
        transform: translateX(155vw);
        opacity: 0;
    }
}

/* BLOWING LEAVES */

.storm-leaf {
    position: absolute;
    left: -10%;
    z-index: 6;
    pointer-events: none;

    animation: cupcakeStormLeaf linear infinite;
}

@keyframes cupcakeStormLeaf {
    from {
        transform:
            translateX(0)
            translateY(0)
            rotate(0deg);
    }

    50% {
        transform:
            translateX(70vw)
            translateY(55px)
            rotate(540deg);
    }

    to {
        transform:
            translateX(130vw)
            translateY(-35px)
            rotate(1080deg);
    }
}

/* SMALL FLYING DEBRIS */

.wind-debris {
    position: absolute;
    left: -10%;
    width: 9px;
    height: 4px;
    border-radius: 2px;
    background: rgba(105, 75, 45, 0.75);
    z-index: 5;

    animation: cupcakeWindDebris linear infinite;
}

@keyframes cupcakeWindDebris {
    from {
        transform:
            translateX(0)
            translateY(0)
            rotate(0deg);
    }

    50% {
        transform:
            translateX(65vw)
            translateY(-30px)
            rotate(360deg);
    }

    to {
        transform:
            translateX(130vw)
            translateY(45px)
            rotate(720deg);
    }
}

/* ==========================================
   CUPCAKE TOWN HEAVY RAIN EFFECT
========================================== */

.weather-heavy-rain {
    overflow: hidden;
    background:
        linear-gradient(
            rgba(35, 45, 65, 0.20),
            rgba(45, 55, 75, 0.28)
        );
}

.heavy-rain-drop {
    position: absolute;
    top: -15%;
    width: 3px;
    height: 34px;
    background: rgba(220, 235, 255, 0.90);
    border-radius: 999px;

    animation-name: cupcakeHeavyRain;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes cupcakeHeavyRain {
    from {
        transform:
            translateY(-10vh)
            translateX(0)
            rotate(10deg);
    }

    to {
        transform:
            translateY(125vh)
            translateX(30px)
            rotate(10deg);
    }
}

/* ==========================================
   CUPCAKE TOWN SUN SHOWER EFFECT
========================================== */

.weather-sun-shower {
    overflow: hidden;
}

.sun-shower-drop {
    position: absolute;
    top: -10%;
    width: 2px;
    height: 18px;
    border-radius: 999px;

    background: rgba(220, 240, 255, 0.72);

    animation-name: cupcakeSunShower;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes cupcakeSunShower {
    from {
        transform:
            translateY(-10vh)
            translateX(0);
        opacity: 0.45;
    }

    20% {
        opacity: 0.8;
    }

    to {
        transform:
            translateY(120vh)
            translateX(15px);
        opacity: 0.45;
    }
}

/* ==========================================
   CUPCAKE TOWN DRIZZLE EFFECT
========================================== */

.weather-drizzle {
    overflow: hidden;
}

.drizzle-drop {
    position: absolute;
    top: -8%;
    width: 1px;
    height: 9px;
    border-radius: 999px;
    background: rgba(220, 240, 255, 0.58);

    animation-name: cupcakeDrizzle;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes cupcakeDrizzle {
    from {
        transform:
            translateY(-10vh)
            translateX(0);
        opacity: 0.3;
    }

    25% {
        opacity: 0.7;
    }

    to {
        transform:
            translateY(120vh)
            translateX(10px);
        opacity: 0.3;
    }
}

/* ==========================================
   CUPCAKE TOWN HEAVY SNOW EFFECT
========================================== */

.weather-heavy-snow {
    overflow: hidden;
    background: rgba(210, 225, 240, 0.08);
}

.heavy-snow-flake {
    position: absolute;
    top: -10%;
    color: white;
    pointer-events: none;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);

    animation-name: cupcakeHeavySnow;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes cupcakeHeavySnow {
    from {
        transform:
            translateY(-10vh)
            translateX(0)
            rotate(0deg);
        opacity: 0.6;
    }

    50% {
        transform:
            translateY(55vh)
            translateX(45px)
            rotate(180deg);
        opacity: 1;
    }

    to {
        transform:
            translateY(120vh)
            translateX(-35px)
            rotate(360deg);
        opacity: 0.75;
    }
}

/* ==========================================
   CUPCAKE TOWN BLOWING SNOW EFFECT
========================================== */

.weather-blowing-snow {
    overflow: hidden;
    background: rgba(215, 225, 240, 0.08);
}

.blowing-snow-flake {
    position: absolute;
    left: -10%;
    color: white;
    pointer-events: none;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.8);

    animation-name: cupcakeBlowingSnow;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes cupcakeBlowingSnow {
    from {
        transform:
            translateX(0)
            translateY(0)
            rotate(0deg);
        opacity: 0.65;
    }

    50% {
        transform:
            translateX(70vw)
            translateY(25px)
            rotate(180deg);
        opacity: 1;
    }

    to {
        transform:
            translateX(135vw)
            translateY(-20px)
            rotate(360deg);
        opacity: 0.75;
    }
}

/* ==========================================
   CUPCAKE TOWN MIST EFFECT
========================================== */

.weather-mist {
    overflow: hidden;
    background: rgba(220, 230, 235, 0.06);
}

.mist-layer {
    position: absolute;
    left: -35%;
    width: 70%;
    height: 70px;
    border-radius: 999px;
    background: rgba(235, 240, 245, 0.22);
    filter: blur(14px);
    pointer-events: none;

    animation-name: cupcakeMistDrift;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes cupcakeMistDrift {
    from {
        transform: translateX(0);
        opacity: 0.35;
    }

    50% {
        opacity: 0.55;
    }

    to {
        transform: translateX(170vw);
        opacity: 0.35;
    }
}

/* ==========================================
   CUPCAKE TOWN LIVE WEATHER DISPLAY
========================================== */

#town-weather-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin: 6px 0 10px;
    padding: 8px 16px;

    background: rgba(20, 15, 45, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 18px;

    color: white;
    font-size: 15px;
    font-weight: 600;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
body.hide-live-weather #town-weather-display {
    display: none !important;
}
#town-weather-temp {
    font-weight: 800;
}

#town-weather-condition {
    text-transform: capitalize;
}

#town-weather-wind {
    opacity: 0.9;
}

/* ==========================================
   CUPCAKE TOWN HOTSPOT HOVER
========================================== */

.town-location {
    transition: transform 0.25s ease, filter 0.25s ease;
}

.town-location.hotspot-active {
    transform: scale(1.08);
    filter:
        brightness(1.18)
        drop-shadow(0 0 10px rgba(255, 190, 230, 0.9));
    z-index: 20;
}

/* =========================================
   CUPCAKE TOWN — NIGHT MODE
========================================= */

body[data-time-of-day="night"] #town-map {
    filter: brightness(0.48) saturate(0.85) hue-rotate(12deg);
    transition: filter 2s ease;
}


/* =========================================
   CUPCAKE TOWN — NIGHT SKY MAGIC
========================================= */

/* Keep overlays positioned over the town image */
.town-map-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

/* Night sky tint + tiny stars */
.town-map-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0;

    background:
        radial-gradient(circle at 12% 12%, rgba(255,255,255,.85) 0 1px, transparent 2px),
        radial-gradient(circle at 25% 8%, rgba(255,255,255,.65) 0 1px, transparent 2px),
        radial-gradient(circle at 42% 15%, rgba(255,255,255,.8) 0 1px, transparent 2px),
        radial-gradient(circle at 58% 9%, rgba(255,255,255,.65) 0 1px, transparent 2px),
        radial-gradient(circle at 80% 14%, rgba(255,255,255,.85) 0 1px, transparent 2px),
        radial-gradient(circle at 92% 8%, rgba(255,255,255,.7) 0 1px, transparent 2px),
        linear-gradient(
            to bottom,
            rgba(15, 20, 70, .38),
            rgba(34, 24, 75, .18) 48%,
            rgba(5, 10, 35, .10)
        );

    transition: opacity 2s ease;
}

/* Moon — positioned directly over the picture's sun */
.town-map-wrapper::after {
    content: "";
    position: absolute;

    left: 63%;
    top: 17%;

    width: clamp(42px, 4.5vw, 64px);
    aspect-ratio: 1;

    transform: translate(-50%, -50%);

    border-radius: 50%;
    z-index: 6;
    pointer-events: none;

    opacity: 0;

 
    background: radial-gradient(
    circle at 38% 32%,
    #eef2ff 0%,
    #dce5ff 48%,
    #b8c7ee 100%
);
    box-shadow:
    0 0 10px rgba(220,225,255,.65),
    0 0 24px rgba(170,180,255,.38),
    0 0 45px rgba(120,110,220,.18);
transition: opacity 2s ease;
    
}

/* Turn the night effects on */
body[data-time-of-day="night"] .town-map-wrapper::before,
body[data-time-of-day="night"] .town-map-wrapper::after {
    opacity: 1;
}

/* Keep clickable town locations above the night overlay */
.town-location {
    z-index: 10;
}

/* =========================================
   CUPCAKE TOWN — LIVING SEASONS
   Summer
========================================= */

body[data-season="summer"] .town-map-wrapper {
    filter:
        saturate(1.06)
        brightness(1.03)
        contrast(1.02);
}

/* =========================================
   Autumn
========================================= */

body[data-season="autumn"] .town-map-wrapper {
    filter:
        saturate(1.10)
        sepia(0.10)
        brightness(1.01)
        contrast(1.03);
}

/* =========================================
   Winter
========================================= */

body[data-season="winter"] .town-map-wrapper {
    filter:
        saturate(0.82)
        brightness(1.06)
        contrast(1.03);
}

/* =========================================
   Spring
========================================= */

body[data-season="spring"] .town-map-wrapper {
    filter:
        saturate(1.12)
        brightness(1.05)
        contrast(1.01);
}

/* =========================================
   AUTUMN LEAF EFFECT
========================================= */

#town-season-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 7;
}

.autumn-leaf {
    position: absolute;
    top: -10%;
    animation-name: autumnLeafFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes autumnLeafFall {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
    }

    50% {
        transform: translateY(50vh) translateX(35px) rotate(180deg);
    }

    100% {
        transform: translateY(110vh) translateX(-25px) rotate(360deg);
    }
}

/* =========================================
   WINTER SEASON EFFECT
========================================= */

.winter-sparkle {
    position: absolute;
    top: -10%;
    opacity: 1;
    text-shadow:
    0 0 6px rgba(255,255,255,0.95),
    0 0 12px rgba(210,230,255,0.75);
    animation-name: winterSparkleFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes winterSparkleFall {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
    }

    50% {
        transform: translateY(50vh) translateX(20px) rotate(180deg);
    }

    100% {
        transform: translateY(110vh) translateX(-15px) rotate(360deg);
    }
}

/* =========================================
   SPRING SEASON EFFECT
========================================= */

.spring-petal {
    position: absolute;
    top: -10%;
    animation-name: springPetalFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes springPetalFall {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
    }

    50% {
        transform: translateY(50vh) translateX(25px) rotate(160deg);
    }

    100% {
        transform: translateY(110vh) translateX(-20px) rotate(320deg);
    }
}

/* =========================================
   SUMMER SEASON EFFECT
========================================= */

.summer-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
opacity: var(--season-intensity, 1);
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(255, 220, 140, 0.14),
            transparent 45%
        );

    animation: summerGlowPulse 6s ease-in-out infinite;
}

@keyframes summerGlowPulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}
.summer-glow.summer-glow-night {
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(120, 140, 255, 0.08),
            transparent 45%
        );

    opacity: 0.35;
}

body.haunted-rainstorm .town-map-wrapper {
    filter:
        brightness(0.78)
        contrast(1.08)
        saturate(0.85)
        hue-rotate(-8deg);
}

#haunted-rainstorm-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 8;

  background:
    radial-gradient(
        circle at 50% 20%,
        rgba(120, 40, 140, 0.08),
        transparent 45%
    ),
    linear-gradient(
        rgba(20, 10, 30, 0.04),
        rgba(10, 5, 20, 0.10)
    );  
}

#haunted-rainstorm-overlay::before {
    content: "";
    position: absolute;
    inset: -100px 0;

    background-image:
    linear-gradient(
        115deg,
        transparent 0 47%,
        rgba(210, 225, 255, 0.34) 48%,
        transparent 49% 100%
    );

background-size: 18px 42px;
        
    animation: hauntedRainFall 0.45s linear infinite;
}

@keyframes hauntedRainFall {
    from {
        transform: translateY(-35px);
    }

    to {
        transform: translateY(35px);
    }
}


#haunted-walking-cat {
    position: absolute;
    width: 54px;
    height: 34px;
    pointer-events: none;
    z-index: 20;
}

.black-cat-body {
    position: relative;
    width: 54px;
    height: 34px;
}

.black-cat-torso {
    position: absolute;
    left: 13px;
    top: 13px;
    width: 28px;
    height: 16px;
    background: #050505;
    border-radius: 50% 50% 45% 45%;
}

.black-cat-head {
    position: absolute;
    left: 34px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: #050505;
    border-radius: 50%;
}

.black-cat-ear {
    position: absolute;
    top: -6px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 9px solid #050505;
}

.black-cat-ear.left {
    left: -2px;
}

.black-cat-ear.right {
    right: -2px;
}

.black-cat-eye {
    position: absolute;
    top: 6px;
    width: 2px;
    height: 3px;
    background: #ffe66d;
    border-radius: 50%;
}

.black-cat-eye.left {
    left: 4px;
}

.black-cat-eye.right {
    right: 4px;
}

.black-cat-tail {
    position: absolute;
    left: 2px;
    top: 7px;
    width: 18px;
    height: 18px;
    border: 4px solid #050505;
    border-right: 0;
    border-bottom: 0;
    border-radius: 50%;
    transform: rotate(-20deg);
}

.black-cat-leg {
    position: absolute;
    top: 24px;
    width: 4px;
    height: 11px;
    background: #050505;
    border-radius: 4px;
}

.black-cat-leg.front {
    left: 35px;
}

.black-cat-leg.back {
    left: 17px;
}

.black-cat-leg.front {
    animation: blackCatStepFront 0.45s ease-in-out infinite alternate;
}

.black-cat-leg.back {
    animation: blackCatStepBack 0.45s ease-in-out infinite alternate;
}

.black-cat-tail {
    transform-origin: right bottom;
    animation: blackCatTailMove 1.2s ease-in-out infinite alternate;
}

@keyframes blackCatStepFront {
    from {
        transform: rotate(18deg);
    }

    to {
        transform: rotate(-18deg);
    }
}

@keyframes blackCatStepBack {
    from {
        transform: rotate(-18deg);
    }

    to {
        transform: rotate(18deg);
    }
}

@keyframes blackCatTailMove {
    from {
        transform: rotate(-28deg);
    }

    to {
        transform: rotate(-5deg);
    }
}

.cat-walking-route {
    animation:
        hauntedCatGroundWalk var(--cat-duration) linear forwards;
}

.cat-behind-bushes {
    z-index: 4 !important;
    opacity: 0.82;
}

@keyframes hauntedCatGroundWalk {
    0% {
        left: var(--cat-start-x);
        top: var(--cat-start-y);
        transform: translate(0, 0);
    }

    45% {
        transform: translate(
            calc((var(--cat-end-x) - var(--cat-start-x)) * 0.45),
            calc((var(--cat-end-y) - var(--cat-start-y)) * 0.45)
        );
    }

    55% {
        transform: translate(
            calc((var(--cat-end-x) - var(--cat-start-x)) * 0.52),
            calc((var(--cat-end-y) - var(--cat-start-y)) * 0.52)
        );
    }

    100% {
        left: var(--cat-end-x);
        top: var(--cat-end-y);
    }
}

/* =========================================
   BLACK CAT WALKING MOTION
========================================= */

.black-cat-body {
    transform-origin: center bottom;
    animation: blackCatBodyWalk 0.38s ease-in-out infinite alternate;
}

.black-cat-leg.front {
    transform-origin: top center;
    animation: blackCatFrontStep 0.38s ease-in-out infinite alternate;
}

.black-cat-leg.back {
    transform-origin: top center;
    animation: blackCatBackStep 0.38s ease-in-out infinite alternate;
}

.black-cat-tail {
    transform-origin: right bottom;
    animation: blackCatTailWalk 0.9s ease-in-out infinite alternate;
}

@keyframes blackCatBodyWalk {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-2px);
    }
}

@keyframes blackCatFrontStep {
    from {
        transform: rotate(24deg);
    }

    to {
        transform: rotate(-24deg);
    }
}

@keyframes blackCatBackStep {
    from {
        transform: rotate(-24deg);
    }

    to {
        transform: rotate(24deg);
    }
}

@keyframes blackCatTailWalk {
    from {
        transform: rotate(-28deg);
    }

    to {
        transform: rotate(-5deg);
    }
}

/* =========================================
   HAUNTED BATS
========================================= */

.haunted-bat {
    position: absolute;
    width: 56px;
    height: 30px;
    pointer-events: none;
    z-index: 18;
}

.bat-body {
    position: relative;
    width: 56px;
    height: 30px;
}

.bat-head {
    position: absolute;
    left: 24px;
    top: 8px;
    width: 9px;
    height: 10px;
    background: #050505;
    border-radius: 50%;
    z-index: 3;
}

.bat-ear {
    position: absolute;
    top: -5px;
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 7px solid #050505;
}

.bat-ear.left {
    left: -1px;
}

.bat-ear.right {
    right: -1px;
}

.bat-body::after {
    content: "";
    position: absolute;
    left: 25px;
    top: 15px;
    width: 7px;
    height: 12px;
    background: #050505;
    border-radius: 45% 45% 60% 60%;
    z-index: 2;
}

.bat-wing {
    position: absolute;
    top: 8px;
    width: 25px;
    height: 17px;
    background: #050505;
    transform-origin: center right;
    clip-path: polygon(
        100% 40%,
        72% 0%,
        58% 35%,
        32% 8%,
        38% 50%,
        0% 38%,
        28% 78%,
        58% 63%,
        72% 100%,
        100% 62%
    );
}

.bat-wing.left {
    left: 1px;
    transform-origin: right center;
    animation: batWingLeft 0.28s ease-in-out infinite alternate;
}

.bat-wing.right {
    right: 1px;
    transform: scaleX(-1);
    transform-origin: left center;
    animation: batWingRight 0.28s ease-in-out infinite alternate;
}

@keyframes batWingLeft {
    from {
        transform: rotate(18deg);
    }

    to {
        transform: rotate(-22deg);
    }
}

@keyframes batWingRight {
    from {
        transform: scaleX(-1) rotate(18deg);
    }

    to {
        transform: scaleX(-1) rotate(-22deg);
    }
}

.bat-fly-right {
    left: -70px;
    animation: batFlyRight var(--bat-duration) linear forwards;
}

.bat-fly-left {
    right: -70px;
    transform: scaleX(-1);
    animation: batFlyLeft var(--bat-duration) linear forwards;
}

@keyframes batFlyRight {
    0% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(28vw) translateY(-18px);
    }

    50% {
        transform: translateX(55vw) translateY(12px);
    }

    75% {
        transform: translateX(82vw) translateY(-10px);
    }

    100% {
        transform: translateX(115vw) translateY(4px);
    }
}

@keyframes batFlyLeft {
    0% {
        transform: scaleX(-1) translateX(0) translateY(0);
    }

    25% {
        transform: scaleX(-1) translateX(28vw) translateY(-18px);
    }

    50% {
        transform: scaleX(-1) translateX(55vw) translateY(12px);
    }

    75% {
        transform: scaleX(-1) translateX(82vw) translateY(-10px);
    }

    100% {
        transform: scaleX(-1) translateX(115vw) translateY(4px);
    }
}

/* =========================================
   REALISTIC HAUNTED BAT DETAILS
========================================= */

.haunted-bat {
    position: absolute;
    width: 68px;
    height: 38px;
    pointer-events: none;
    z-index: 18;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.65));
}

.bat-body {
    position: relative;
    width: 68px;
    height: 38px;
}

.bat-head {
    position: absolute;
    left: 29px;
    top: 7px;
    width: 10px;
    height: 11px;
    background: #050505;
    border-radius: 50%;
    z-index: 5;
}

.bat-ear {
    position: absolute;
    top: -5px;
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 7px solid #050505;
}

.bat-ear.left {
    left: -1px;
}

.bat-ear.right {
    right: -1px;
}

.bat-eye {
    position: absolute;
    top: 4px;
    width: 2px;
    height: 2px;
    background: #ff4b4b;
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(255, 75, 75, 0.8);
}

.bat-eye.left {
    left: 2px;
}

.bat-eye.right {
    right: 2px;
}

.bat-torso {
    position: absolute;
    left: 29px;
    top: 15px;
    width: 10px;
    height: 17px;
    background: #050505;
    border-radius: 45% 45% 60% 60%;
    z-index: 4;
}

.bat-tail {
    position: absolute;
    left: 31px;
    top: 29px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 8px solid #050505;
    z-index: 3;
}

.bat-wing {
    position: absolute;
    top: 10px;
    width: 31px;
    height: 22px;
    background: #050505;
    z-index: 2;
}

.bat-wing.left {
    left: 0;
    transform-origin: right center;
    clip-path: polygon(
        100% 38%,
        78% 6%,
        62% 26%,
        43% 4%,
        33% 32%,
        8% 20%,
        20% 53%,
        0% 70%,
        31% 72%,
        43% 100%,
        64% 76%,
        80% 96%,
        100% 62%
    );
    animation: realisticBatLeftWing 0.24s ease-in-out infinite alternate;
}

.bat-wing.right {
    right: 0;
    transform-origin: left center;
    clip-path: polygon(
        0% 38%,
        22% 6%,
        38% 26%,
        57% 4%,
        67% 32%,
        92% 20%,
        80% 53%,
        100% 70%,
        69% 72%,
        57% 100%,
        36% 76%,
        20% 96%,
        0% 62%
    );
    animation: realisticBatRightWing 0.24s ease-in-out infinite alternate;
}

.bat-wing-tip {
    display: none;
}

@keyframes realisticBatLeftWing {
    from {
        transform: rotate(12deg) scaleY(1);
    }

    to {
        transform: rotate(-28deg) scaleY(0.72);
    }
}

@keyframes realisticBatRightWing {
    from {
        transform: rotate(-12deg) scaleY(1);
    }

    to {
        transform: rotate(28deg) scaleY(0.72);
    }
}

/* =========================================
   NATURAL BAT FLIGHT MOTION
========================================= */

.haunted-bat {
    animation-timing-function: ease-in-out;
}

.haunted-bat .bat-body {
    animation: batNaturalFlight 1.8s ease-in-out infinite;
}

@keyframes batNaturalFlight {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-8px) rotate(-2deg);
    }

    50% {
        transform: translateY(3px) rotate(1deg);
    }

    75% {
        transform: translateY(-5px) rotate(-1deg);
    }

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

/* =========================================
   HAUNTED LIGHTNING
========================================= */

#haunted-lightning-flash {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;

        background: rgba(220, 0, 235, 0.72);
}

#haunted-lightning-flash.lightning-strike {
    opacity: 1 !important;
}

@keyframes hauntedLightningFlash {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 0.85;
    }

    18% {
        opacity: 0.12;
    }

    28% {
        opacity: 0.65;
    }

    42% {
        opacity: 0.08;
    }

    100% {
        opacity: 0;
    }
}

/* =========================================
   HAUNTED GLOWING PUMPKINS
========================================= */

.haunted-pumpkin {
    position: absolute;
    width: 46px;
    height: 44px;
    pointer-events: none;
    z-index: 14;

    opacity: 0;
    transform: scale(0.82);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease;

    filter:
        drop-shadow(0 0 8px rgba(255, 120, 20, 0.55))
        drop-shadow(0 3px 4px rgba(0, 0, 0, 0.55));
}

.haunted-pumpkin.pumpkin-visible {
    opacity: 1;
    transform: scale(1);
}

.pumpkin-body {
    position: absolute;
    left: 3px;
    top: 8px;

    width: 40px;
    height: 32px;

    background:
        radial-gradient(
            ellipse at center,
            #ff9a1f 0%,
            #e86b0c 58%,
            #a93b05 100%
        );

    border-radius: 48% 48% 44% 44%;
    box-shadow:
        inset 6px 0 7px rgba(255, 185, 55, 0.35),
        inset -6px 0 7px rgba(100, 25, 0, 0.32),
        0 0 10px rgba(255, 110, 10, 0.38);
}

.pumpkin-body::before,
.pumpkin-body::after {
    content: "";
    position: absolute;
    top: 2px;

    width: 13px;
    height: 28px;

    border-radius: 50%;
    border-left: 2px solid rgba(125, 42, 0, 0.35);
    border-right: 2px solid rgba(255, 180, 65, 0.22);
}

.pumpkin-body::before {
    left: 7px;
}

.pumpkin-body::after {
    right: 7px;
}

.pumpkin-stem {
    position: absolute;
    left: 19px;
    top: 1px;

    width: 8px;
    height: 11px;

    background: #4a2d13;
    border-radius: 3px 3px 1px 1px;

    transform: rotate(7deg);
    z-index: 2;
}

.pumpkin-eye {
    position: absolute;
    top: 10px;

    width: 0;
    height: 0;

    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;

    filter: drop-shadow(0 0 4px rgba(255, 220, 90, 0.95));
}

.pumpkin-eye.left {
    left: 10px;
    border-right: 7px solid #ffe06a;
}

.pumpkin-eye.right {
    right: 10px;
    border-left: 7px solid #ffe06a;
}

.pumpkin-mouth {
    position: absolute;
    left: 10px;
    top: 21px;

    width: 20px;
    height: 7px;

    background: #ffd95c;

    clip-path: polygon(
        0% 20%,
        20% 55%,
        35% 25%,
        50% 65%,
        66% 25%,
        80% 55%,
        100% 20%,
        92% 100%,
        8% 100%
    );

    box-shadow: 0 0 7px rgba(255, 220, 90, 0.85);
}

.haunted-pumpkin.pumpkin-visible .pumpkin-body {
    animation: hauntedPumpkinGlow 2.4s ease-in-out infinite;
}

@keyframes hauntedPumpkinGlow {
    0%,
    100% {
        filter: brightness(0.92);
    }

    50% {
        filter: brightness(1.18);
    }
}

/* ==========================================================
   HAUNTED GROUND FOG
========================================================== */

.haunted-ground-fog {
    position: fixed;

    width: 280px;
    height: 90px;

    pointer-events: none;
    z-index: 13;

    opacity: 0;

    border-radius: 50%;

    background: radial-gradient(
    ellipse at center,
    rgba(225, 230, 240, 0.95) 0%,
    rgba(195, 205, 220, 0.80) 35%,
    rgba(165, 175, 195, 0.55) 60%,
    rgba(140, 150, 170, 0.20) 75%,
    transparent 88%
);
    filter: blur(12px);

    transform: translateX(-40px) scale(0.85);

    transition:
        opacity 1.4s ease,
        transform 9s linear;
}

.haunted-ground-fog.fog-visible {
    opacity: 0.9;
    transform: translateX(120px) scale(1.2);
}

/* ==========================================================
   HAUNTED GHOSTS
========================================================== */

.haunted-ghost {
    position: fixed;
    width: 62px;
    height: 82px;

    pointer-events: none;
    z-index: 12;

    opacity: 0;

    filter:
        drop-shadow(0 0 8px rgba(220, 230, 255, 0.55))
        blur(0.2px);

    transition:
        left 9s linear,
        top 9s ease-in-out,
        opacity 1.2s ease;
}

.haunted-ghost.ghost-visible {
    opacity: 0.72;
}

.ghost-body {
    position: relative;
    width: 58px;
    height: 72px;

    background:
        radial-gradient(
            circle at 50% 25%,
            rgba(245, 248, 255, 0.95),
            rgba(205, 215, 235, 0.78) 48%,
            rgba(160, 170, 205, 0.42) 75%,
            transparent 100%
        );

    border-radius: 50% 50% 36% 36%;

    animation:
        hauntedGhostFloat 2.2s ease-in-out infinite;
}

/* Ragged floating bottom */

.ghost-body::after {
    content: "";
    position: absolute;

    left: 0;
    bottom: -12px;

    width: 100%;
    height: 24px;

    background:
        linear-gradient(
            135deg,
            rgba(190, 200, 225, 0.60) 25%,
            transparent 25%
        ),
        linear-gradient(
            225deg,
            rgba(190, 200, 225, 0.60) 25%,
            transparent 25%
        );

    background-size: 20px 24px;
    background-position: 0 0, 10px 0;
}

/* Eyes */

.ghost-eye {
    position: absolute;
    top: 25px;

    width: 8px;
    height: 12px;

    background: rgba(25, 20, 40, 0.82);
    border-radius: 50%;

    box-shadow:
        0 0 5px rgba(110, 80, 170, 0.55);
}

.ghost-eye.left {
    left: 16px;
}

.ghost-eye.right {
    right: 16px;
}

/* Mouth */

.ghost-mouth {
    position: absolute;

    left: 24px;
    top: 44px;

    width: 10px;
    height: 13px;

    background: rgba(30, 20, 45, 0.72);
    border-radius: 50%;
}

/* Gentle floating movement */

@keyframes hauntedGhostFloat {
    0%,
    100% {
        transform:
            translateY(0)
            rotate(-1deg);
    }

    50% {
        transform:
            translateY(-9px)
            rotate(2deg);
    }
}

/* ==========================================================
   HAUNTED LANTERNS
========================================================== */

.haunted-lantern {
    position: fixed;

    width: 34px;
    height: 54px;

    pointer-events: none;
    z-index: 15;

    opacity: 0;
    transform: translateY(8px) scale(0.9);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.haunted-lantern.lantern-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.lantern-frame {
    position: absolute;
    left: 7px;
    top: 8px;

    width: 20px;
    height: 36px;

    border: 2px solid #17131f;
    border-radius: 4px 4px 6px 6px;

    background:
        linear-gradient(
            rgba(30, 22, 40, 0.92),
            rgba(12, 10, 18, 0.96)
        );

    box-shadow:
        0 3px 6px rgba(0, 0, 0, 0.55);
}

.lantern-cap {
    position: absolute;
    left: 3px;
    top: -7px;

    width: 14px;
    height: 6px;

    background: #17131f;
    border-radius: 3px 3px 1px 1px;
}

.lantern-base {
    position: absolute;
    left: 2px;
    bottom: -5px;

    width: 16px;
    height: 5px;

    background: #17131f;
    border-radius: 1px 1px 4px 4px;
}

.lantern-light {
    position: absolute;
    left: 5px;
    top: 7px;

    width: 10px;
    height: 20px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at center,
            rgba(220, 180, 255, 1) 0%,
            rgba(145, 80, 210, 0.95) 42%,
            rgba(72, 34, 120, 0.55) 72%,
            transparent 100%
        );

    animation: hauntedLanternFlicker 1.4s ease-in-out infinite;
}

.lantern-glow {
    position: absolute;
    left: -18px;
    top: -10px;

    width: 70px;
    height: 70px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(145, 80, 220, 0.28) 0%,
            rgba(95, 45, 160, 0.16) 42%,
            transparent 72%
        );

    filter: blur(8px);

    animation: hauntedLanternGlow 2s ease-in-out infinite;
}

@keyframes hauntedLanternFlicker {
    0%,
    100% {
        opacity: 0.75;
        transform: scaleY(1);
    }

    35% {
        opacity: 1;
        transform: scaleY(1.08);
    }

    55% {
        opacity: 0.55;
        transform: scaleY(0.92);
    }

    75% {
        opacity: 0.9;
        transform: scaleY(1.04);
    }
}

@keyframes hauntedLanternGlow {
    0%,
    100% {
        opacity: 0.55;
        transform: scale(0.94);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.08);
    }
}

/* ==========================================================
   HAUNTED SPIRIT ORBS
========================================================== */

.haunted-spirit-orb {
    position: fixed;

    width: 18px;
    height: 18px;

    pointer-events: none;
    z-index: 14;

    opacity: 0;
    transform: scale(0.65);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(235, 245, 255, 1) 0%,
            rgba(160, 120, 255, 0.95) 28%,
            rgba(95, 55, 185, 0.65) 52%,
            rgba(50, 25, 100, 0.18) 72%,
            transparent 100%
        );

    box-shadow:
        0 0 8px rgba(190, 165, 255, 0.95),
        0 0 18px rgba(130, 85, 235, 0.75),
        0 0 30px rgba(85, 45, 165, 0.42);

    transition:
        opacity 1s ease,
        transform 1s ease;

    animation:
        hauntedOrbDrift 5s ease-in-out infinite,
        hauntedOrbPulse 2.2s ease-in-out infinite;
}

.haunted-spirit-orb.orb-visible {
    opacity: 0.85;
    transform: scale(1);
}

@keyframes hauntedOrbDrift {
    0%,
    100% {
        margin-left: 0;
        margin-top: 0;
    }

    25% {
        margin-left: 12px;
        margin-top: -10px;
    }

    50% {
        margin-left: -6px;
        margin-top: -18px;
    }

    75% {
        margin-left: 9px;
        margin-top: -7px;
    }
}

@keyframes hauntedOrbPulse {
    0%,
    100% {
        filter: brightness(0.9);
    }

    50% {
        filter: brightness(1.35);
    }
}

/* ==========================================================
   HAUNTED MOVING SHADOW
========================================================== */

.haunted-moving-shadow {
    position: fixed;

    width: 42px;
    height: 86px;

    pointer-events: none;
    z-index: 11;

    opacity: 0;

    filter:
        blur(1.5px)
        drop-shadow(0 4px 7px rgba(0, 0, 0, 0.75));

    transition:
        left 8s linear,
        top 8s ease-in-out,
        opacity 1.2s ease;
}

.haunted-moving-shadow.shadow-visible {
    opacity: 0.48;
}

.shadow-head {
    position: absolute;

    left: 11px;
    top: 0;

    width: 20px;
    height: 23px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 45% 35%,
            rgba(35, 28, 45, 0.92),
            rgba(5, 5, 10, 0.98) 72%
        );
}

.shadow-body {
    position: absolute;

    left: 4px;
    top: 20px;

    width: 34px;
    height: 62px;

    background:
        linear-gradient(
            180deg,
            rgba(15, 12, 22, 0.96),
            rgba(3, 3, 8, 0.82) 65%,
            transparent 100%
        );

    clip-path: polygon(
        35% 0%,
        65% 0%,
        78% 14%,
        86% 44%,
        72% 100%,
        52% 78%,
        30% 100%,
        14% 44%,
        22% 14%
    );

    animation: hauntedShadowSway 1.8s ease-in-out infinite;
}

@keyframes hauntedShadowSway {
    0%,
    100% {
        transform: translateY(0) skewX(-1deg);
    }

    50% {
        transform: translateY(-3px) skewX(2deg);
    }
}

/* ==================================================
   CUPCAKE CONNECT LOCATION PERMISSION
================================================== */

#cupcake-location-permission {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: rgba(7, 5, 20, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cupcake-location-card {
    width: min(92%, 480px);
    padding: 38px 34px;

    text-align: center;
    color: white;

    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);

    background:
        linear-gradient(
            145deg,
            rgba(74, 35, 110, 0.96),
            rgba(29, 21, 64, 0.97)
        );

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.45),
        0 0 35px rgba(255, 82, 166, 0.18);
}

.location-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.cupcake-location-card h2 {
    margin: 0 0 18px;
    font-size: 27px;
    line-height: 1.2;
}

.cupcake-location-card p {
    margin: 0 auto 17px;
    line-height: 1.6;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.88);
}

.cupcake-location-card .location-privacy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.68);
}

.location-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
}

.location-buttons button {
    border: 0;
    border-radius: 999px;
    padding: 13px 24px;

    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

#allow-cupcake-location {
    color: white;
    background: linear-gradient(135deg, #ff4fa3, #9b5cff);
    box-shadow: 0 8px 25px rgba(255, 79, 163, 0.32);
}

#decline-cupcake-location {
    color: white;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

#allow-cupcake-location:hover,
#decline-cupcake-location:hover {
    transform: translateY(-1px);
}

/* CLICKABLE WEATHER / LOCATION CONTROL */
#town-weather-display {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}

#town-weather-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 79, 163, 0.35);
}

#town-weather-display:active {
    transform: translateY(1px) scale(0.98);
}

/* =========================================
   LOCATION OFF / TURN LOCATION ON BUTTON
========================================= */

#enableLocationBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-width: 175px;
    padding: 13px 22px;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;

    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 0.95),
        rgba(255, 79, 163, 0.95)
    );

    color: white;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 24px rgba(139, 92, 246, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);

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

#enableLocationBtn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(255, 79, 163, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

#enableLocationBtn:active {
    transform: translateY(0) scale(0.97);
}

#townSweetCoins {
    color: #ffffff;
    font-weight: 700;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.95),
        0 0 8px rgba(0, 0, 0, 0.65);
}

/* WW MOBILE — CUPCAKE TOWN MAP */
#town-container {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 3 / 2 !important;
    
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.town-map-wrapper {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    transform: none !important;
}

#town-map {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    transform: none;
}

/* WW MOBILE — TOWN VIEWPORT */
.town-map-wrapper {
    overflow: hidden !important;
    touch-action: pan-y !important;
}

/* =========================================================
   WW MOBILE — CUPCAKE TOWN MASTER LAYOUT
   ========================================================= */

@media (max-width: 600px) {

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }

    body {
        min-height: 100dvh !important;
    }

    /* ---------- TOP AREA ---------- */

    .town-header {
        width: 100% !important;
        padding: 10px 8px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .town-header h1 {
        margin: 0 !important;
        font-size: 24px !important;
        line-height: 1.15 !important;
    }

    #town-status {
        margin-top: 5px !important;
        font-size: 13px !important;
    }

    #town-weather-display {
        max-width: calc(100vw - 20px) !important;
        margin: 6px auto 8px !important;
        padding: 7px 10px !important;
        font-size: 12px !important;
        gap: 5px !important;
        box-sizing: border-box !important;
    }

    #townLogoutBtn,
    .town-teleport-btn {
        min-height: 42px !important;
        margin: 5px 3px !important;
        padding: 9px 14px !important;
        font-size: 13px !important;
        touch-action: manipulation !important;
    }


    /* ---------- TOWN CONTAINER ---------- */

    #town-container {
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: hidden !important;
    }


    /* ---------- TOWN MAP ---------- */

    .town-map-wrapper {
        position: relative !important;

        display: block !important;

        width: 100vw !important;
        max-width: 100vw !important;
        aspect-ratio: auto !important;
        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: hidden !important;

        border-radius: 0 !important;
    }

    #town-map {
        display: block !important;

        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        object-fit: contain !important;
        
        object-position: center !important;
        margin: 0 !important;

        border-radius: 0 !important;
        box-shadow: none !important;
    }


    /* ---------- CLICKABLE BUILDINGS ---------- */

    .town-location {
        position: absolute !important;
        z-index: 20 !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
    }


    /* ---------- WEATHER / SEASON LAYERS ---------- */

    #town-weather-layer,
    #town-season-layer {
        position: absolute !important;
        inset: 0 !important;

        width: 100% !important;
        height: 100% !important;

        overflow: hidden !important;

        border-radius: 0 !important;

        pointer-events: none !important;
    }


    /* ---------- WALKER ---------- */

    #town-walker {
        font-size: 28px !important;
    }


    /* ---------- TELEPORT ---------- */

    .teleport-modal {
        padding: 10px !important;
    }

    .teleport-panel,
    .teleport-panel-large {
        width: calc(100vw - 20px) !important;
        max-width: 430px !important;
        max-height: 88dvh !important;

        padding: 16px 12px !important;

        border-radius: 18px !important;

        box-sizing: border-box !important;
    }

    .teleport-panel h2 {
        font-size: 23px !important;
    }

    .teleport-sections {
        width: 100% !important;
        padding-right: 3px !important;
    }

    .teleport-section {
        margin-bottom: 18px !important;
    }

    .teleport-section h3 {
        font-size: 16px !important;
    }

    .teleport-section .teleport-grid,
    .teleport-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 8px !important;
    }

    .teleport-section .teleport-grid button,
    .teleport-grid button {
        min-width: 0 !important;
        min-height: 48px !important;

        padding: 9px 5px !important;

        font-size: 12px !important;
        line-height: 1.15 !important;

        white-space: normal !important;

        touch-action: manipulation !important;
    }

    #closeTeleportBtn {
        min-height: 44px !important;
        margin-top: 12px !important;
    }
}

/* WW MOBILE — COLLAPSE TOWN MAP EMPTY SPACE */

#town-container {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    flex: 0 0 auto !important;
}

.town-map-wrapper {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

#town-map {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
    object-fit: contain !important;
    object-position: center center !important;
}

/* =========================================================
   WW MOBILE — ZOOM IN CUPCAKE TOWN MAP
========================================================= */

.town-map-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    overflow: hidden !important;
}

#town-map {
    display: block !important;
    width: 116vw !important;
    max-width: none !important;

    height: 58vh !important;
    object-fit: cover !important;
    object-position: center center !important;

    margin-left: -8vw !important;
    margin-right: 0 !important;
}

/* WW MOBILE — RELEASE TOWN CONTAINER HEIGHT */
#town-container {
    aspect-ratio: auto !important;
}

/* =========================================================
   WW MOBILE — FINAL TOWN FULL-BLEED + PINCH ZOOM
========================================================= */

@media (max-width: 600px) {

    #town-container {
        position: relative !important;

        width: 100vw !important;
        max-width: 100vw !important;

        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;

        margin-left: calc(50% - 50vw) !important;
        margin-right: 0 !important;

        padding: 0 !important;
        overflow: hidden !important;
    }

    .town-map-wrapper {
        position: relative !important;

        left: 50% !important;

        width: 124vw !important;
        max-width: none !important;

        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        transform: translateX(-50%) !important;

        overflow: hidden !important;
        border-radius: 0 !important;
    }

    #town-map {
        position: relative !important;
        inset: auto !important;

        display: block !important;

        width: 100% !important;
        max-width: none !important;

        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;

        object-fit: contain !important;
        object-position: center center !important;

        transform: none !important;
    }
}

/* =========================================================
   WW MOBILE — CUPCAKE TOWN FOOTER SPACE
========================================================= */

.town-footer-space {
    min-height: 160px;
    width: 100%;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 20px 20px 120px;

    text-align: center;

    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(139, 92, 246, 0.20),
            transparent 48%
        ),
        #10051d;

    color: white;
}

.town-footer-cupcake {
    font-size: 38px;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 12px rgba(255, 105, 180, 0.35));
}

.town-footer-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
}

.town-footer-text {
    font-size: 13px;
    opacity: 0.72;
}
/* =========================================================
   WW MOBILE — COPYRIGHT
========================================================= */

.town-copyright {
    margin-top: 14px;
    padding-bottom: 24px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.3px;
}



/* ============================================
   CUPCAKE TOWN — CENTER LAYOUT FIX
============================================ */

/* Center the welcome message */
#welcome-banner {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;

    width: fit-content !important;
    max-width: calc(100% - 24px) !important;

    margin: 18px auto 20px !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

/* Center the town heading and buttons */
.town-header {
    width: min(100% - 24px, 1100px) !important;
    max-width: 1100px !important;

    margin: 0 auto 20px !important;
    padding: 20px 12px !important;

    text-align: center !important;
    box-sizing: border-box !important;
}

/* Center the Cupcake Town heading */
.town-header h1 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Center the weather information */
#town-weather-display {
    width: fit-content !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Center the Sweet Coins balance */
#townSweetCoins {
    width: fit-content !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Small screens */
@media (max-width: 600px) {
    #welcome-banner {
        margin: 12px auto 16px !important;
    }

    .town-header {
        width: calc(100% - 20px) !important;
        padding: 16px 10px !important;
    }
}


/* ==========================================
   CUPCAKE TOWN — ALIGN EVERYTHING CENTER
========================================== */

#welcome-banner,
.town-header {
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;

    transform: none !important;

    float: none !important;
    clear: both !important;

    width: 100% !important;
    max-width: 100% !important;

    margin-left: auto !important;
    margin-right: auto !important;

    box-sizing: border-box !important;
    text-align: center !important;
}

#welcome-banner {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 12px !important;
}

#welcome-banner h1 {
    margin: 0 auto !important;
    text-align: center !important;
}

.town-header {
    display: block !important;
    padding: 16px 12px !important;
}

.town-header h1,
#town-status,
#townSweetCoins {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Center the town artwork without stretching it */

.town-container {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

.town-map-wrapper {
    position: relative !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
}

/* =========================================
   CUPCAKE TOWN — ANDROID WELCOME BANNER
   Luxury Purple and Rose
========================================= */

@media (max-width: 600px) {

    #welcome-banner {
        width: 100% !important;
        padding: 0 12px !important;
        margin: 12px auto 20px !important;
        background: transparent !important;
    }

    #welcome-banner h1 {
        width: 100%;
        max-width: 430px;
        margin: 0 auto !important;
        padding: 22px 16px !important;

        background: linear-gradient(
            135deg,
            #48245e,
            #30183f 55%,
            #6a295b
        ) !important;

        color: #fff5fa !important;

        border: 2px solid #d99aaf;
        border-radius: 24px;

        box-shadow:
            0 8px 24px rgba(0, 0, 0, 0.25),
            0 0 16px rgba(235, 115, 170, 0.18);

        font-size: clamp(24px, 6vw, 30px);
        line-height: 1.25;
        text-align: center;
        overflow-wrap: anywhere;
    }
}


/* CUPCAKE CONNECT — TELEPORT MAKEOVER */

.teleport-modal {
  background: rgba(15, 7, 28, 0.82) !important;
  backdrop-filter: blur(10px);
}

.teleport-panel,
.teleport-panel-large {
  background: linear-gradient(
    155deg,
    #352044 0%,
    #241331 55%,
    #170d26 100%
  ) !important;

  border: 2px solid #c77fb9 !important;
  border-radius: 28px !important;
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.45) !important;
  color: #fff0fa !important;
}

.teleport-panel h2 {
  color: #ffb5dc !important;
  text-shadow: 0 0 18px rgba(255, 126, 200, 0.22);
}

.teleport-panel h3,
.teleport-section h3 {
  color: #f8c2e0 !important;
}

.teleport-panel p {
  color: #ead5e9 !important;
}

.teleport-section {
  border-color: rgba(231, 154, 207, 0.35) !important;
}

.teleport-panel button,
.teleport-panel a {
  transition: background 0.2s ease, border-color 0.2s ease;
}
