        /* Define color variables */
        :root {
	        --bg: #131313; /* Off-black */
	        --color1: #f54b73; /* Pink */
	        --color1-hover: #f33a65;
	        --color1-transparent: #f54b73c8;
	        --foreground: #131313; /* Dark greyish */
	        --text-color: #e0e0e0; /* Light grey for text */
            --genshin-blue: #1b1e2a;
            --genshin-gold: #ffae18ef;
            --genshin-bright-gold: #ffcc33;
            --genshin-purple: #42366b;
            --primogem-purple: #a291f0;
            --stellar-white: #fcfaf2;
        }

        @font-face {
  font-family: 'Zhcn';
  src: url('/public/assets/cursorImages/zhcn.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

        body {
            margin: 0;
            padding: 0;
            background: radial-gradient(circle at center, #2c3148 0%, #161824 100%);
	        font-family: 'Montserrat', sans-serif;
 	        font-family: 'Zhcn', 'Montserrat', sans-serif; 
            /* scrollbar-width: thin; handled by style.css but good to keep if needed */
        }

        .gacha-wrapper {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: calc(100vh - 60px); /* Adjust for header */
            box-sizing: border-box;
            /* margin-left is handled by .main-content in style.css */
            /* margin-top is handled by .main-content in style.css (50px) but we might want more check */
        }

        /* Starry Background */
        .stars-bg {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: url('https://www.transparenttextures.com/patterns/stardust.png');
            opacity: 0.3;
            pointer-events: none;
            z-index: 0;
        }

        #heroSection {
            position: relative;
            z-index: 2;
            perspective: 1000px;
            margin-bottom: 20px;
        }

        .card-wrapper {
            width: 260px;
            height: 400px;
            position: relative;
            transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            transform-style: preserve-3d;
        }

        .card-wrapper.flipping {
            transform: rotateY(180deg);
        }

        .card-front, .card-back {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            border-radius: 12px;
            box-shadow: 0 0 30px rgba(0,0,0,0.5);
            border: 2px solid var(--genshin-gold);
            overflow: hidden;
        }

        .card-front {
            background: linear-gradient(135deg, #2a2e45, #1b1e2a);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .card-front img {
            width: 80%;
            opacity: 0.5;
            filter: sepia(1) hue-rotate(200deg);
        }

        .card-back {
            background: linear-gradient(135deg, #2a2e45, #1b1e2a);
            transform: rotateY(180deg);
        }

        .card-back img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Changed to cover to fill the card space */
           /*  background: #0a0a0a; */ /* Dark background for transparent images */
            display: block;
            color: var(--genshin-gold); /* Make alt text readable */
            font-size: 0.8rem;
        }

        /* Styles for low resolution items (smaller card, contain image) */
        .card-wrapper.low-res-reward {
            width: 200px;
            height: 310px;
        }

        .card-wrapper.low-res-reward .card-back img {
            object-fit: contain;
            padding: 25px;
            background: transparent;
            box-sizing: border-box;
        }

        .card-wrapper.low-res-reward #revealName {
            font-size: 1.4rem;
            bottom: 15px;
        }

        .card-glow {
            position: absolute;
            top: -20px; left: -20px; right: -20px; bottom: -20px;
            border-radius: 20px;
            background: radial-gradient(circle, rgba(255, 204, 51, 0.2) 0%, transparent 70%);
            z-index: -1;
            animation: pulse 3s infinite ease-in-out;
        }

        @keyframes pulse {
            0%, 100% { opacity: 0.5; transform: scale(1); }
            50% { opacity: 1; transform: scale(1.05); }
        }

        #codeContainer {
            position: relative;
            z-index: 2;
            text-align: center;
            background: rgba(27, 30, 42, 0.8);
            padding: 20px 50px 30px;
            border-radius: 20px;
            border: 2px solid #ffae1840;
            box-shadow: 0 10px 40px rgba(0,0,0,0.6);
            backdrop-filter: blur(10px);
            width: 400px;
            max-width: 90vw;
            min-height: 250px;
            display: flex;
            flex-direction: column;
        }

        .tabs {
            display: flex;
            justify-content: space-around;
            margin-bottom: 25px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 5px;
        }

        .tab {
            background: transparent;
            border: none;
            color: var(--text-color);
            font-family: 'Zhcn', 'Montserrat', sans-serif;
            font-size: 1rem;
            cursor: pointer;
            padding: 10px 20px;
            position: relative;
            transition: color 0.3s;
            text-transform: uppercase;
            letter-spacing: 1px;
            opacity: 0.6;
        }

        .tab:hover {
            color: var(--genshin-gold);
            opacity: 1;
        }

        .tab.active {
            color: var(--genshin-gold);
            opacity: 1;
            font-weight: bold;
        }

        .tab.active::after {
            content: '';
            position: absolute;
            bottom: -6px; /* Align with border-bottom of .tabs */
            left: 50%;
            transform: translateX(-50%);
            width: 60%;
            height: 3px;
            border-radius: 2px;
            background: var(--genshin-gold);
            box-shadow: 0 0 10px var(--genshin-gold);
        }

        .tab-content {
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex-grow: 1;
            animation: fadeIn 0.4s ease forwards;
        }

        .tab-content.active {
            display: flex;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        h2 {
            margin-top: 0;
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-size: 1.2rem;
            color: var(--genshin-gold); /* not on sidebar */
        }

        /* Input Group */
        .input-group {
            display: flex;
            flex-direction: column;
            gap: 15px;
            align-items: center;
            width: 100%;
        }

        #codeInput {
            background: transparent;
            border: none;
            border-bottom: 2px solid var(--genshin-gold);
            color: var(--stellar-white);
            font-size: 1.5rem;
            text-align: center;
            padding: 10px;
            width: 100%;
            outline: none;
            font-family: 'Zhcn', 'Montserrat', sans-serif;
            letter-spacing: 5px;
            transition: border-color 0.3s;
        }

        #codeInput:focus {
            border-color: var(--genshin-bright-gold);
        }

        /* Buttons */
        .action-button {
            margin-top: 15px;
            background: var(--genshin-gold);
            color: var(--genshin-blue);
            border: none;
            padding: 12px 60px;
            border-radius: 30px;
            font-size: 1.1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            font-family: 'Zhcn', 'Montserrat', sans-serif;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .action-button:hover {
            background: var(--genshin-bright-gold);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 204, 51, 0.4);
        }

        .action-button:active {
            transform: translateY(0);
        }

        .action-button:disabled {
            background: #444;
            color: #888;
            cursor: not-allowed;
            box-shadow: none;
            transform: none;
        }

        /* Daily Claim Specifics */
        .daily-text {
            color: var(--text-color);
            margin-bottom: 20px;
            font-size: 0.95rem;
            line-height: 1.4;
        }

        /* Wish Animation Overlay */
        #wishOverlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgb(0, 0, 0);
            z-index: 10000;
            display: none;
            align-items: center;
            justify-content: center;
        }

        #wishOverlay.active {
            display: flex;
            animation: flash 1.5s forwards;
        }

        @keyframes flash {
            0% { opacity: 0; }
            20% { opacity: 1; }
            80% { opacity: 1; background: rgba(220, 171, 36, 0.394); }
            100% { opacity: 0; pointer-events: none; }
        }

        .shooting-star {
            position: absolute;
            width: 4px;
            height: 4px;
            background: white;
            border-radius: 50%;
            box-shadow: 0 0 20px 2px white;
            filter: blur(1px);
        }

        /* Character reveal text */
        #revealName {
            position: absolute;
            bottom: 20px;
            left: 0;
            width: 100%;
            text-align: center;
            font-family: 'Zhcn', 'Montserrat', sans-serif;
            font-size: 1.8rem;
            color: #ffffff;
            text-shadow: 2px 2px 4px #000, 0 0 10px #000, 0 0 5px #000;
            opacity: 0;
            transition: opacity 0.5s;
            z-index: 10;
        }

        .card-wrapper.flipping #revealName,
        .card-wrapper.flipped #revealName {
            opacity: 1;
        }

        /* Circular Timer Styles */
        .timer-container {
            position: relative;
            width: 120px;
            height: 120px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .timer-svg {
            width: 100%;
            height: 100%;
            transform: rotate(-90deg);
        }

        .timer-bg {
            fill: none;
            stroke: #333;
            stroke-width: 8;
        }

        .timer-bar {
            fill: none;
            stroke: #4CAF50; /* Green */
            stroke-width: 8;
            stroke-linecap: round;
            stroke-dasharray: 283; /* 2 * PI * R (45) */
            stroke-dashoffset: 0;
            transition: stroke-dashoffset 1s linear;
        }

        .timer-text {
            position: absolute;
            font-size: 1.1rem;
            font-weight: bold;
            color: var(--text-color);
            font-family: monospace;
        }

        .push-setup-button {
            margin-top: 12px;
            padding: 10px 24px;
            font-size: 0.95rem;
        }

        /* Push Notifications Prompt */
        .push-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(10, 12, 20, 0.72);
            backdrop-filter: blur(6px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 11000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease;
        }

        .push-modal-overlay.is-open {
            opacity: 1;
            pointer-events: auto;
        }

        .push-modal {
            width: min(440px, 90vw);
            background: linear-gradient(180deg, rgba(33, 36, 54, 0.95), rgba(19, 21, 34, 0.98));
            border: 1px solid rgba(255, 174, 24, 0.35);
            border-radius: 18px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
            padding: 26px 24px 22px;
            text-align: center;
            transform: translateY(10px) scale(0.98);
            transition: transform 0.2s ease;
        }

        .push-modal-overlay.is-open .push-modal {
            transform: translateY(0) scale(1);
        }

        .push-modal-title {
            color: var(--genshin-bright-gold);
            font-size: 1.25rem;
            font-weight: 700;
            letter-spacing: 0.4px;
            margin-bottom: 8px;
        }

        .push-modal-subtitle {
            color: var(--stellar-white);
            opacity: 0.85;
            font-size: 0.95rem;
            margin-bottom: 18px;
        }

        .push-modal-actions {
            display: flex;
            gap: 12px;
            justify-content: center;
        }

        .push-modal-button {
            border: none;
            border-radius: 999px;
            padding: 10px 18px;
            font-size: 0.95rem;
            font-weight: 700;
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
            font-family: 'Zhcn', 'Montserrat', sans-serif;
        }

        .push-modal-button.primary {
            background: var(--genshin-gold);
            color: var(--genshin-blue);
            box-shadow: 0 6px 18px rgba(255, 174, 24, 0.35);
        }

        .push-modal-button.primary:hover {
            background: var(--genshin-bright-gold);
            transform: translateY(-1px);
        }

        .push-modal-button.secondary {
            background: rgba(255, 255, 255, 0.08);
            color: var(--stellar-white);
            border: 1px solid rgba(255, 255, 255, 0.15);
        }

        .push-modal-button.secondary:hover {
            background: rgba(255, 255, 255, 0.16);
            transform: translateY(-1px);
        }

        .push-modal-button:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        #socialMediaLogos i {
            font-size: 30px;
            color: var(--color1);
        }

        .row {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            flex-direction: row;
        }

        .col {
               display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            flex-direction: column;
        }

@media (max-width: 500px) {


        #heroSection {
            position: relative;
            z-index: 2;
            perspective: 1000px;
            margin-bottom: 10px; /* Increased to give space for #revealName */
        }


         .card-wrapper {
            width: 160px;
            height: 250px;
            position: relative;
            transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            transform-style: preserve-3d;
        }

        .card-wrapper.low-res-reward {
            width: 130px;
            height: 200px;
        }

        .card-wrapper.low-res-reward #revealName {
            font-size: 1.1rem;
            bottom: 10px;
        }

        .card-wrapper.low-res-reward .card-back img {
            padding: 15px;
        }

}
/* --- Berries Streak Graph Styles --- */
.streak-section.mobile {
    margin: 20px 0;
    padding: 24px;
    background: rgba(27, 30, 42, 0.8);
    border: 2px solid #ffae1840;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    box-sizing: border-box;
    width: 400px;
    max-width: 90vw;
    text-align: left;
}

.streak-section h3 {
    font-size: 1rem;
    color: #ccc;
    margin-top: 0;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.streak-section span {
    color: var(--text-color);
    font-size: 0.95rem;
}

.streak-section i.ph-currency-btc {
    color: var(--genshin-gold);
    float: right;
    font-size: 1.5rem;
}

/* Day squares */
.day {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    outline: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.day:hover {
    transform: scale(1.15);
    z-index: 2;
    outline: 1px solid rgba(255, 255, 255, 0.3);
}

.day.level-0 { background-color: rgba(255, 255, 255, 0.05); }
.day.future { 
    background-color: rgba(255, 255, 255, 0.02); 
    border: 1px dashed rgba(255, 255, 255, 0.1);
    outline: none;
}

.day.level-4 { 
    background-color: var(--color1); 
    outline: 1px solid var(--color1);
    box-shadow: 0 0 15px rgba(245, 75, 115, 0.4);
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.2); }
    70% { transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.pop-in {
    animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.waifu-stamp {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    image-rendering: pixelated; 
}

.week-grid {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap; 
    justify-content: center;
}

.week-grid .day {
    width: 48px;
    height: 48px;
    border-radius: 10px;
}

.week-grid .day.level-4 {
    outline: 2px solid var(--color1);
}

@media (max-width: 500px) {
    .week-grid {
        gap: 8px;
    }
    .week-grid .day {
        width: 38px;
        height: 38px;
    }
}
