:root {
    --bg-mint: #D1FAE5;
    --primary-mint: #10B981;
    --light-mint: #A7F3D0;
    --white: #FFFFFF;
    --text-color: #374151;
    --pink-accent: #F472B6;
    --machine-bg: #FCE7F3;
    /* Các biến bóng mờ */
    --shadow-soft-mint: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
    --shadow-soft-pink: 0 10px 25px -5px rgba(244, 114, 182, 0.5);
    --shadow-card: 0 15px 35px -10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-mint);
    background-image: url('https://i.pinimg.com/736x/d7/27/36/d7273680827778882828087880272282.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-color);
    margin: 0;
    padding-bottom: 100px;
    overflow-x: hidden;
    position: relative;
    cursor: url('https://cur.cursors-4u.net/symbols/sym-1/sym383.cur'), auto;
}

#bg-animations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}


/* --- Header --- */

header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 70px 20px 50px;
    text-align: center;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.2);
    margin-bottom: 30px;
    position: relative;
    border-top: 8px solid var(--primary-mint);
    overflow: hidden;
    z-index: 2;
}

h1 {
    color: var(--primary-mint);
    margin: 0;
    font-family: 'Baloo 2', cursive;
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 0px #ECFDF5;
    letter-spacing: 1px;
    position: relative;
    z-index: 10;
}

p.subtitle {
    color: #6B7280;
    margin-top: 5px;
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    z-index: 10;
}

.rainbow-natural {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 450px;
    z-index: 1;
    opacity: 0.6;
    background: radial-gradient(ellipse at center bottom, transparent 50%, #FFCDD2 53%, #FFE0B2 56%, #FFF9C4 59%, #C8E6C9 62%, #E1BEE7 65%, transparent 70%);
    filter: blur(10px);
}

.cloud-deco {
    position: absolute;
    width: 140px;
    opacity: 0.9;
    z-index: 5;
    animation: floatCloud linear infinite;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.05));
}

.c1 {
    top: 60px;
    left: -150px;
    animation-duration: 45s;
}

.c2 {
    top: 30px;
    right: -150px;
    animation-duration: 50s;
    animation-direction: reverse;
    width: 100px;
}

.c3 {
    top: 100px;
    left: 10%;
    width: 80px;
    opacity: 0.6;
    animation: floatCloud 60s infinite linear;
    animation-delay: -20s;
}

@keyframes floatCloud {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(110vw);
    }
}


/* --- MENU VÀ NÚT BẤM --- */

.controls-wrapper {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
    max-width: 1100px;
    width: 95%;
    margin: -30px auto 40px auto;
    position: relative;
    z-index: 10;
}

.tabs-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 12px 20px;
    border-radius: 25px;
    width: fit-content;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), inset 0 0 0 2px rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    flex-wrap: nowrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: #6B7280;
    padding: 10px 25px;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.tab-btn .icon {
    font-size: 1.4rem;
    filter: grayscale(100%);
    transition: 0.3s;
}

.tab-btn .text {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: 1.05rem;
}

.tab-btn:hover {
    background: #FFF;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.tab-btn:hover .icon {
    filter: grayscale(0%);
    transform: scale(1.2);
}

.tab-btn.active {
    background: #FFF;
    color: var(--primary-mint);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25);
    font-weight: 800;
}

.tab-btn.active .icon {
    filter: grayscale(0%);
    animation: bounceIcon 0.5s;
}

.tab-btn.special.active {
    color: #DB2777;
    box-shadow: 0 8px 25px rgba(219, 39, 119, 0.3);
}

.tab-btn.game-mode.active {
    color: #7C3AED;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

@keyframes bounceIcon {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4);
    }
}


/* --- BỘ LỌC + TÌM KIẾM MỚI --- */

.search-filter-box {
    display: flex;
    gap: 10px;
    max-width: 650px;
    margin: 20px auto 0;
    padding: 0 10px;
    justify-content: center;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.search-group {
    flex: 2;
    position: relative;
    min-width: 200px;
}

#district-select,
#search-input {
    width: 100%;
    height: 56px;
    padding: 0 15px;
    border-radius: 50px;
    border: 3px solid #FFF;
    background: rgba(255, 255, 255, 0.9);
    font-family: 'Nunito';
    font-weight: 700;
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

#district-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

#search-input {
    padding-left: 50px;
}

#district-select:focus,
#search-input:focus {
    box-shadow: var(--shadow-soft-mint);
    border-color: var(--primary-mint);
    background: #FFF;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--primary-mint);
    z-index: 5;
}


/* --- Card Grid --- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    background: var(--white);
    border-radius: 25px;
    padding: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border: none;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s;
}

.card::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 120px;
    height: 35px;
    background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5) 10px, rgba(236, 253, 245, 0.8) 10px, rgba(236, 253, 245, 0.8) 20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    z-index: 20;
    border-radius: 2px;
}

.card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.2);
    z-index: 30;
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 15px;
    background-color: #f3f4f6;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.category-tag {
    position: absolute;
    top: 30px;
    left: 30px;
    background-color: var(--white);
    color: var(--primary-mint);
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 800;
    font-family: 'Baloo 2';
    font-size: 0.9rem;
    box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.15);
}

.card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 0 10px;
}

.place-name {
    font-family: 'Baloo 2', cursive;
    font-size: 1.7rem;
    color: #1F2937;
    margin: 0 0 8px 0;
    line-height: 1.2;
    font-weight: 800;
}

.place-address {
    font-size: 0.95rem;
    color: #6B7280;
    margin-bottom: 15px;
    display: flex;
    gap: 6px;
    font-weight: 700;
}

.place-note {
    background-color: #FEF3C7;
    color: #D97706;
    padding: 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 700;
    border-left: 5px solid #F59E0B;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.place-desc {
    font-size: 0.95rem;
    color: #4B5563;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-map {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #6EE7B7 0%, #3B82F6 100%);
    color: white;
    padding: 12px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    margin-top: auto;
    font-family: 'Baloo 2', cursive;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-map:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.6);
}


/* --- Loading & No Result --- */

#loading {
    text-align: center;
    margin-top: 50px;
    width: 100%;
}

#loading p {
    color: var(--primary-mint);
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: 1.5rem;
    margin-top: 10px;
}

#no-result {
    text-align: center;
    font-size: 1.3rem;
    color: #888;
    grid-column: 1/-1;
    font-weight: 700;
    display: none;
    margin-top: 20px;
}


/* --- MACHINE 777 --- */

#randomizer-section {
    display: none;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.slot-machine-box {
    background: #FCE7F3;
    border: 8px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    padding: 35px;
    box-shadow: 0 20px 50px -10px rgba(244, 114, 182, 0.4);
    position: relative;
    margin-bottom: 40px;
}

.machine-roof {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    background: #F472B6;
    padding: 10px;
    border-radius: 20px;
    color: white;
    box-shadow: 0 5px 15px rgba(244, 114, 182, 0.4);
}

.machine-roof h3 {
    margin: 0;
    font-family: 'Baloo 2';
    font-size: 1.4rem;
    font-weight: 800;
}

.dot {
    width: 10px;
    height: 10px;
    background: #FFD600;
    border-radius: 50%;
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    from {
        opacity: 0.5;
    }
    to {
        opacity: 1;
        transform: scale(1.2);
    }
}

.slot-display-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.slot-column {
    flex: 1;
    background: #FFF;
    padding: 10px;
    border-radius: 20px;
    border: 3px solid #FBCFE8;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slot-label {
    font-size: 0.9rem;
    font-weight: 800;
    color: #DB2777;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.slot-window {
    width: 100%;
    height: 100px;
    background: #F3F4F6;
    border: 3px solid #DB2777;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.reel-text {
    font-family: 'Baloo 2';
    font-weight: 800;
    color: #1F2937;
    font-size: 1.1rem;
    text-align: center;
    padding: 5px;
    line-height: 1.2;
}

#slot-sub {
    font-size: 1rem;
    color: #888;
    margin-bottom: 20px;
    font-weight: 700;
}

.spin-btn {
    background: linear-gradient(to bottom, #F9A8D4, #DB2777);
    color: white;
    border: none;
    padding: 20px 50px;
    border-radius: 50px;
    font-family: 'Baloo 2';
    font-size: 1.8rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 15px 30px -5px rgba(219, 39, 119, 0.5);
    width: 100%;
    text-transform: uppercase;
    transition: 0.3s;
}

.spin-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px -10px rgba(219, 39, 119, 0.7);
}

.spin-btn:disabled {
    background: #E5E7EB;
    box-shadow: none;
    cursor: not-allowed;
    color: #9CA3AF;
}


/* Combo Result */

#random-result-card {
    display: none;
    animation: popUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popUp {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.combo-card {
    background: white;
    border-radius: 30px;
    padding: 20px;
    border: 4px solid #F472B6;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    text-align: left;
}

.combo-header {
    text-align: center;
    color: #BE185D;
    font-family: 'Baloo 2';
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    border-bottom: 2px dashed #FBCFE8;
    padding-bottom: 10px;
}

.combo-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    background: #FFF5F7;
    padding: 15px;
    border-radius: 15px;
    gap: 15px;
}

.combo-icon {
    font-size: 1.8rem;
    background: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.combo-details {
    flex-grow: 1;
    min-width: 0;
}

.combo-details h4 {
    margin: 0;
    color: #DB2777;
    font-size: 1.1rem;
}

.combo-details p {
    margin: 4px 0 0 0;
    font-size: 0.9rem;
    color: #666;
    word-wrap: break-word;
}

.combo-link {
    text-decoration: none;
    background: #10B981;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    flex-shrink: 0;
    align-self: center;
}


/* Heart BG */

.bg-heart {
    position: absolute;
    bottom: -50px;
    font-size: 20px;
    animation: floatUpBg linear forwards;
    opacity: 0.6;
    z-index: -1;
}

@keyframes floatUpBg {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-110vh) rotate(360deg);
        opacity: 0;
    }
}


/* --- GAME CENTER --- */

.game-header-box {
    text-align: center;
    background: linear-gradient(135deg, #FFF, #F0FDFA);
    padding: 30px;
    border-radius: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.15);
}

.game-header-box h3 {
    margin: 0;
    font-family: 'Baloo 2', cursive;
    font-size: 2.2rem;
    background: -webkit-linear-gradient(#10B981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.game-header-box p {
    position: relative;
    z-index: 1;
    color: #6B7280;
    font-weight: 700;
}

#game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 25px;
}

.game-card {
    background: #FFF;
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.4s;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.game-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
    z-index: 5;
}

.game-thumb-wrapper {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.game-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.game-card:hover .game-thumb {
    transform: scale(1.1);
}

.game-info {
    padding: 15px 10px;
}

.game-title {
    font-family: 'Baloo 2';
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 0 5px;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.play-tag {
    display: inline-block;
    background: #ECFDF5;
    color: var(--primary-mint);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
}


/* Modal Game */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 30, 0.9);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    padding: 20px;
}

.modal-content {
    background: #000;
    width: 95%;
    max-width: 1000px;
    height: 90vh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: popUp 0.4s ease;
    border: 4px solid #333;
}

.game-frame-container {
    flex-grow: 1;
    background: #000;
    position: relative;
    width: 100%;
    height: 100%;
}

iframe#game-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.modal-header {
    padding: 15px 20px;
    background: #1F2937;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #374151;
}

.close-btn {
    font-size: 2rem;
    cursor: pointer;
    color: #F87171;
    transition: 0.2s;
    line-height: 0.8;
}

.close-btn:hover {
    color: #EF4444;
    transform: scale(1.2);
}


/* --- WEATHER EFFECTS --- */

#weather-effects-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s ease;
}

#weather-effects-container.active {
    opacity: 1;
}

.effect-sun {
    background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.4) 0%, rgba(255, 255, 255, 0) 60%);
    mix-blend-mode: screen;
}

.effect-rain {
    background-color: rgba(0, 0, 0, 0.1);
}

.effect-rain::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(transparent, transparent 5px, rgba(255, 255, 255, 0.5) 5px, rgba(255, 255, 255, 0.5) 20px);
    background-size: 2px 100%;
    animation: rain-fall 0.7s linear infinite;
    opacity: 0.3;
}

@keyframes rain-fall {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 0 100vh;
    }
}

.effect-snow {
    background-color: rgba(255, 255, 255, 0.1);
}

.effect-snow::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.8) 2px, transparent 2px), radial-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px;
    background-position: 0 0, 15px 15px;
    animation: snow-fall 5s linear infinite;
}

@keyframes snow-fall {
    from {
        background-position: 0 0, 15px 15px;
    }
    to {
        background-position: 0 100vh, 15px 100vh;
    }
}

.effect-storm {
    background-color: rgba(0, 0, 0, 0.4);
    animation: lightning-flash 8s infinite;
}

@keyframes lightning-flash {
    0%,
    90%,
    94%,
    98% {
        background-color: rgba(0, 0, 0, 0.4);
    }
    92%,
    96% {
        background-color: rgba(255, 255, 255, 0.6);
    }
}

.effect-cloud::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 60%), radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 50%);
    background-size: 60% 60%, 40% 40%;
    opacity: 0.4;
    animation: cloud-drift 30s linear infinite;
}

@keyframes cloud-drift {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-10%, 5%);
    }
    100% {
        transform: translate(0, 0);
    }
}

.effect-hot {
    box-shadow: inset 0 0 100px rgba(255, 69, 0, 0.3);
    background: radial-gradient(circle, transparent 60%, rgba(255, 165, 0, 0.1) 100%);
    animation: heat-pulse 4s infinite alternate;
}

@keyframes heat-pulse {
    from {
        opacity: 0.8;
    }
    to {
        opacity: 1;
    }
}

.effect-fog {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 40%, transparent 100%);
    z-index: 9999;
}

.effect-breeze::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#6EE7B7 2px, transparent 2px), radial-gradient(#34D399 3px, transparent 3px);
    background-size: 60px 60px, 100px 100px;
    animation: leaf-fly 10s linear infinite;
    opacity: 0.6;
}

@keyframes leaf-fly {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 100px 100vh, -100px 100vh;
    }
}


/* --- [WIDGET THỜI TIẾT + ĐỒNG HỒ MỚI] --- */

.weather-box-cute {
    margin-top: 25px;
    padding: 10px 25px;
    /* Nới rộng padding chút */
    gap: 20px;
    /* Tăng khoảng cách giữa các thành phần */
    border-radius: 60px;
    /* Bo tròn hơn cho cute */
    background: rgba(255, 255, 255, 0.85);
    /* Nền đục hơn xíu cho rõ chữ */
    box-shadow: 0 15px 35px -5px rgba(16, 185, 129, 0.2);
    display: inline-flex;
    /* Xếp ngang hàng */
    align-items: center;
    justify-content: center;
    border: 3px solid #FFF;
    position: relative;
    z-index: 20;
    transition: transform 0.3s;
    max-width: 90%;
    overflow: hidden;
}

.weather-box-cute:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.95);
}


/* Đồng hồ con bên trong */

.clock-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
}

.mini-clock {
    font-family: 'Baloo 2', cursive;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-mint);
    line-height: 1;
    text-shadow: none;
}

.date-today {
    font-size: 0.85rem;
    font-weight: 700;
    color: #9CA3AF;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* Vạch kẻ dọc */

.vertical-sep {
    width: 2px;
    height: 40px;
    background-color: #E5E7EB;
    border-radius: 10px;
}


/* Phần thời tiết */

.weather-pet {
    width: 85px;
    height: 85px;
    background: #D1FAE5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #10B981;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.weather-pet img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: bouncePet 2s infinite;
}

@keyframes bouncePet {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.weather-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    justify-content: center;
    z-index: 2;
}

.temp-text {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: 1.5rem;
    color: #059669;
    line-height: 1;
    margin-bottom: 2px;
}

.desc-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #4B5563;
    white-space: normal;
    line-height: 1.3;
    max-width: 150px;
}


/* Decor bay bay */

.floating-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.deco-icon {
    position: absolute;
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    animation: floatAround 3s ease-in-out infinite;
    opacity: 0.8;
}

.d1 {
    top: 10px;
    right: 20px;
    animation-delay: 0s;
    color: #FCD34D;
}

.d2 {
    bottom: 5px;
    left: 90px;
    animation-delay: 1.5s;
    color: #F472B6;
    font-size: 1rem;
}

.d3 {
    top: 45%;
    right: 10px;
    animation-delay: 0.8s;
}

@keyframes floatAround {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(10deg);
    }
}


/* --- 2. DARK MODE (THEME: CYBER NEON BLUE) --- */

body.dark-mode {
    background-color: #020617;
    /* Blend ảnh nền với màu xanh đậm */
    background-image: linear-gradient(to bottom, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.95)), url('https://i.pinimg.com/originals/2a/36/53/2a36531980894080164654b419830500.gif');
    background-blend-mode: overlay;
    color: #e0f2fe;
}


/* Header Neon */

body.dark-mode header {
    background: rgba(10, 25, 47, 0.95);
    /* Viền trên phát sáng Cyan */
    border-top: 3px solid #22d3ee;
    box-shadow: 0 10px 40px -10px rgba(34, 211, 238, 0.3);
    backdrop-filter: blur(15px);
}

body.dark-mode h1 {
    color: #67e8f9;
    /* Màu Cyan sáng */
    /* Hiệu ứng chữ phát sáng neon */
    text-shadow: 0 0 5px #67e8f9, 0 0 20px rgba(34, 211, 238, 0.7);
}

body.dark-mode p.subtitle {
    color: #bae6fd;
}


/* --- Widget Thời Tiết Neon --- */

body.dark-mode .weather-box-cute {
    background: rgba(15, 23, 42, 0.9);
    /* Viền neon kép */
    border: 2px solid #0ea5e9;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4), inset 0 0 15px rgba(14, 165, 233, 0.2);
}

body.dark-mode .mini-clock {
    color: #a5f3fc;
    text-shadow: 0 0 15px #22d3ee;
}

body.dark-mode .date-today {
    color: #7dd3fc;
}

body.dark-mode .vertical-sep {
    background-color: #1e40af;
    box-shadow: 0 0 10px rgba(30, 64, 175, 0.5);
}


/* --- Thẻ Card (Viền sáng nhẹ) --- */

body.dark-mode .card {
    background: #0f1c35;
    border: 1px solid #1e3a8a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

body.dark-mode .card:hover {
    border-color: #38bdf8;
    /* Hover vào thẻ sẽ phát sáng viền */
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
    transform: translateY(-3px);
}

body.dark-mode .place-name {
    color: #67e8f9;
    text-shadow: 0 0 5px rgba(103, 232, 249, 0.3);
}

body.dark-mode .place-desc {
    color: #cffafe;
}

body.dark-mode .place-note {
    background-color: #1e3a8a;
    color: #fde047;
    /* Vàng chanh neon */
    border-left: 4px solid #facc15;
    box-shadow: inset 5px 0 10px -5px rgba(250, 204, 21, 0.5);
}


/* --- Input & Select (VIỀN NEON KHI FOCUS) --- */

body.dark-mode #search-input,
body.dark-mode #district-select {
    background: #172554;
    border: 2px solid #1e40af;
    /* Viền tối bình thường */
    color: #e0f2fe;
    transition: all 0.3s ease;
}

body.dark-mode #search-input:focus,
body.dark-mode #district-select:focus {
    background: #0f1c35;
    border-color: #67e8f9;
    /* Viền Cyan sáng khi bấm vào */
    /* Hiệu ứng phát sáng 2 lớp (trong và ngoài) */
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.6), inset 0 0 10px rgba(34, 211, 238, 0.3);
}


/* --- Tab Buttons (VIỀN NEON CỰC MẠNH) --- */

body.dark-mode .tabs-container {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid #1e3a8a;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}


/* Trạng thái nút bình thường (Tối) */

body.dark-mode .tab-btn {
    background: rgba(30, 58, 138, 0.3);
    border: 1px solid #1e40af;
    /* Viền xanh tối */
    color: #93c5fd;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Khi di chuột vào nút (Sáng nhẹ) */

body.dark-mode .tab-btn:hover {
    background: rgba(30, 58, 138, 0.8);
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
    color: #fff;
}


/* Nút đang được chọn (NEON BÙNG NỔ) */

body.dark-mode .tab-btn.active {
    background: linear-gradient(135deg, #0891b2, #0ea5e9);
    border: 2px solid #67e8f9 !important;
    /* Viền Cyan rực rỡ */
    color: white;
    /* Hiệu ứng bóng neon 3 lớp: Sắc nét, trung bình, lan tỏa rộng */
    box-shadow: 0 0 5px #67e8f9, /* Lớp sáng nét sát viền */
    0 0 20px #0ea5e9, /* Lớp hào quang xanh dương */
    0 0 50px rgba(14, 165, 233, 0.7);
    /* Lớp lan tỏa rộng ngoài cùng */
}

body.dark-mode .tab-btn.active .icon {
    /* Làm icon phát sáng theo */
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
    transform: scale(1.1);
}


/* --- Game Section --- */

body.dark-mode .game-header-box {
    background: linear-gradient(135deg, #0f1c35, #172554);
    border-bottom: 2px solid #1e3a8a;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

body.dark-mode .game-card {
    background: #0f1c35;
    border: 1px solid #1e40af;
}

body.dark-mode .game-card:hover {
    border-color: #22d3ee;
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.4);
}

body.dark-mode .game-title {
    color: #67e8f9;
}

body.dark-mode .play-tag {
    background: #1e3a8a;
    color: #67e8f9;
    box-shadow: 0 0 10px rgba(103, 232, 249, 0.3);
}


/* --- Game Section --- */

body.dark-mode .game-header-box {
    background: linear-gradient(135deg, #0f1c35, #1e3a8a);
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.3);
}

body.dark-mode .game-card {
    background: #0f1c35;
    border: 1px solid #1e40af;
}

body.dark-mode .game-title {
    color: #7dd3fc;
}

body.dark-mode .play-tag {
    background: #172554;
    color: #38bdf8;
}


/* Scrollbar đẹp cho dark mode */

body.dark-mode::-webkit-scrollbar-track {
    background: #050b26;
}

body.dark-mode::-webkit-scrollbar-thumb {
    background: #1e40af;
    border-radius: 10px;
}


/* --- MOBILE RESPONSIVE --- */

@media screen and (max-width: 768px) {
    /* 1. Header & Widget gọn lại */
    header {
        padding: 30px 15px 20px;
        border-radius: 0 0 30px 30px;
    }
    h1 {
        font-size: 2rem;
    }
    p.subtitle {
        font-size: 0.9rem;
    }
    /* Widget thời tiết & Đồng hồ */
    .weather-box-cute {
        justify-content: space-between !important;
        padding: 8px 15px !important;
        width: 95%;
        border-radius: 20px;
    }
    .vertical-sep {
        display: block !important;
        height: 25px !important;
        margin: 0 15px !important;
    }
    .mini-clock {
        font-size: 1.4rem !important;
    }
    .weather-pet {
        width: 50px;
        height: 50px;
    }
    /* 2. MENU NÚT BẤM (Thu nhỏ size) */
    .controls-wrapper {
        width: 98%;
        padding: 0 5px;
        margin-top: -20px;
    }
    .tabs-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* Chia 2 cột đều */
        gap: 8px;
        padding: 8px;
        width: 100%;
        border-radius: 20px;
    }
    .tab-btn {
        width: 100%;
        height: 38px;
        /* Giảm chiều cao xuống 38px cho gọn */
        padding: 0 5px;
        border-radius: 10px;
    }
    .tab-btn .text {
        font-size: 0.8rem;
        /* Chữ nhỏ lại */
    }
    .tab-btn .icon {
        font-size: 1rem;
    }
    .tab-btn.game-mode {
        grid-column: 1 / -1;
        /* Nút Game nằm dài ở dưới */
        height: 38px;
    }
    /* 3. THANH TÌM KIẾM & BỘ LỌC (Sửa phần bạn vừa khoanh đỏ) */
    .search-filter-box {
        flex-direction: column;
        /* Xếp chồng lên nhau */
        gap: 8px;
        /* Khoảng cách giữa 2 thanh */
        margin-top: 15px;
        padding: 0 5px;
    }
    #district-select,
    #search-input {
        width: 100%;
        height: 42px;
        /* Giảm từ 56px -> 42px */
        font-size: 0.9rem;
        /* Cỡ chữ vừa mắt hơn */
        border-width: 2px;
        /* Viền mỏng lại chút cho thanh thoát */
    }
    /* Chỉnh vị trí icon kính lúp cho cân với chiều cao mới */
    .search-icon {
        font-size: 1rem;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    #search-input {
        padding-left: 40px;
        /* Thu hẹp khoảng cách lề trái */
    }
    #district-select {
        padding-left: 15px;
        background-position: right 10px center;
        /* Đẩy mũi tên sang phải chút */
        background-size: 12px;
    }
    /* 4. CÁC PHẦN KHÁC (Grid hiển thị quán, Game...) */
    .places-grid {
        grid-template-columns: 1fr;
        /* 1 cột duy nhất */
        gap: 20px;
        padding-bottom: 80px;
    }
    .card-img {
        height: 180px;
    }
    .slot-machine-box {
        padding: 15px;
        border-width: 4px;
    }
    .slot-column {
        padding: 5px;
    }
    .slot-window {
        height: 60px;
    }
    .reel-text {
        font-size: 0.9rem;
    }
    #game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .game-thumb-wrapper {
        height: 90px;
    }
    .modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: none;
    }
}


/* --- CĂN GIỮA ĐỒNG HỒ VÀO KHOẢNG TRỐNG (Final) --- */

@media screen and (max-width: 768px) {
    /* 1. Khung widget: Chia đều 2 bên */
    .weather-box-cute {
        justify-content: space-between !important;
        padding: 5px 15px !important;
        /* Padding vừa phải */
        gap: 0 !important;
    }
    /* 2. Vạch kẻ dọc: Nằm giữa */
    .vertical-sep {
        margin: 0 20px !important;
        display: block !important;
        height: 25px !important;
        width: 1px !important;
        background: #ddd !important;
    }
    /* 3. ĐỒNG HỒ: CĂN GIỮA (Sửa đoạn này) */
    .clock-group {
        flex: 1 !important;
        /* Chiếm trọn khoảng trống bên trái */
        align-items: center !important;
        /* <--- QUAN TRỌNG: Căn giữa theo chiều ngang */
        padding-left: 0 !important;
        /* Bỏ lề trái để nó tự vào giữa */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    .mini-clock {
        font-size: 1.4rem !important;
        /* Tăng xíu cho rõ */
        line-height: 1 !important;
        width: 100% !important;
        text-align: center !important;
        /* Chữ nằm giữa */
    }
    /* 4. Thời tiết: Vẫn giữ căn phải như ý bạn lúc nãy */
    .weather-pet {
        margin-right: 5px !important;
        margin-left: auto !important;
        /* Đẩy sát về bên phải vạch kẻ */
    }
    .weather-info {
        flex: 1.2 !important;
        align-items: flex-start !important;
        max-width: none !important;
    }
    .desc-text {
        /* Cho phép xuống dòng */
        white-space: normal !important;
        /* Giới hạn tối đa 2 dòng */
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        /* Căn chỉnh chữ */
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        /* Giãn dòng chút cho dễ đọc */
        max-width: 100% !important;
        text-align: left !important;
    }
}