/* ============================================================
   MODERN LANDMARKS CSS — CHESS KINGDOM V2
   Interior UI/UX Makeover for all 10 Kingdom Buildings:
   1. Đình Làng (Hall of Fame & Leaderboard)
   2. Chợ Phiên (Sky Port Bazaar & Shop)
   3. Cây Đa May Mắn (Sacred Spirit Tree & Lucky Wheel)
   4. Núi Danh Vọng (Crystal Mountain & Gateway)
   5. Vườn Cây (Sky Terrace Farm & Garden)
   6. Ao Ước Nguyện (Moonlit Lotus Pond)
   7. Trường Học (Grandmaster Academy & Quest Board)
   8. Tháp Kỳ Vương (Ascending Tower & Puzzles)
   9. Phiêu Lưu (Airship Expedition Hub)
   10. Thế Giới Rồng (Dragon Lair Navigation & HUD)
   ============================================================ */

/* ════════════════════════════════════════════════════════════
   1. UNIFIED RPG MODAL SHELL & THEME OVERRIDES
   ════════════════════════════════════════════════════════════ */
#hall-modal .modal-content,
#shop-modal .modal-content,
#wheel-modal .modal-content,
#mountain-modal .modal-content,
#garden-modal .modal-content,
#pond-modal .modal-content {
    background: radial-gradient(ellipse at top center, rgba(30, 22, 60, 0.96) 0%, rgba(13, 10, 28, 0.98) 100%) !important;
    border: 1.5px solid rgba(255, 215, 0, 0.35) !important;
    border-radius: 24px !important;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(108, 92, 231, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    color: #f1f2f6;
    overflow: hidden;
}

.modal-title > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    vertical-align: middle;
}
.modal-title > span svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.5));
}

/* Custom scrollbar inside landmark modals */
#hall-modal .modal-body::-webkit-scrollbar,
#shop-modal .modal-body::-webkit-scrollbar,
#wheel-modal .modal-body::-webkit-scrollbar,
#mountain-modal .modal-body::-webkit-scrollbar,
#garden-modal .modal-body::-webkit-scrollbar,
#pond-modal .modal-body::-webkit-scrollbar {
    width: 6px;
}
#hall-modal .modal-body::-webkit-scrollbar-thumb,
#shop-modal .modal-body::-webkit-scrollbar-thumb,
#wheel-modal .modal-body::-webkit-scrollbar-thumb,
#mountain-modal .modal-body::-webkit-scrollbar-thumb,
#garden-modal .modal-body::-webkit-scrollbar-thumb,
#pond-modal .modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 10px;
}

/* Landmark Modal Header */
.landmark-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-bottom: 1.5px solid rgba(255, 215, 0, 0.25);
}

.landmark-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landmark-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.5));
}
.landmark-header-icon svg {
    width: 100%;
    height: 100%;
}

.landmark-header-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #FFF9C4 0%, #FFD700 50%, #FFA000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.landmark-header-sub {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

/* ════════════════════════════════════════════════════════════
   2. ĐÌNH LÀNG (HALL OF FAME & LEADERBOARDS)
   ════════════════════════════════════════════════════════════ */
.pantheon-container {
    padding: 10px 6px;
}

/* Top 3 Champion Podium */
.podium-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 14px;
    margin: 12px auto 20px;
    max-width: 480px;
    padding: 14px 10px 0;
}

.podium-slot {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.podium-slot:hover {
    transform: translateY(-6px);
}

.podium-crown {
    font-size: 1.4rem;
    margin-bottom: -6px;
    z-index: 2;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
    animation: crownFloat 2.4s ease-in-out infinite;
}
@keyframes crownFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.podium-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.podium-slot--1 .podium-avatar {
    width: 62px;
    height: 62px;
    font-size: 1.6rem;
    background: linear-gradient(135deg, #FFE57F, #FFC107);
    border: 3px solid #FFF59D;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}
.podium-slot--2 .podium-avatar {
    background: linear-gradient(135deg, #E2E8F0, #94A3B8);
    border: 3px solid #F1F5F9;
    box-shadow: 0 0 18px rgba(148, 163, 184, 0.5);
}
.podium-slot--3 .podium-avatar {
    background: linear-gradient(135deg, #FDBA74, #C2410C);
    border: 3px solid #FFEDD5;
    box-shadow: 0 0 18px rgba(234, 88, 12, 0.5);
}

.podium-name {
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 6px;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}
.podium-val {
    font-size: 0.72rem;
    font-weight: 800;
    color: #FFD700;
    margin-bottom: 6px;
}

.podium-base {
    width: 100%;
    border-radius: 12px 12px 4px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.3);
}
.podium-slot--1 .podium-base {
    height: 70px;
    background: linear-gradient(180deg, rgba(255, 193, 7, 0.35) 0%, rgba(255, 160, 0, 0.15) 100%);
    border: 1.5px solid rgba(255, 215, 0, 0.5);
}
.podium-slot--2 .podium-base {
    height: 52px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.3) 0%, rgba(71, 85, 105, 0.15) 100%);
    border: 1.5px solid rgba(203, 213, 225, 0.4);
}
.podium-slot--3 .podium-base {
    height: 40px;
    background: linear-gradient(180deg, rgba(217, 119, 6, 0.3) 0%, rgba(146, 64, 14, 0.15) 100%);
    border: 1.5px solid rgba(251, 146, 60, 0.4);
}

/* Modern Tab Bar */
.modern-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.modern-tab {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.modern-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.modern-tab.active {
    background: linear-gradient(135deg, #6C5CE7, #A855F7);
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

/* Modern Leaderboard Rows */
.leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}
.leaderboard-row:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
    border-color: rgba(255, 215, 0, 0.3);
}
.leaderboard-row.current-user {
    background: linear-gradient(90deg, rgba(108, 92, 231, 0.25) 0%, rgba(168, 85, 247, 0.15) 100%);
    border: 1.5px solid rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
}

.leaderboard-rank {
    font-weight: 800;
    font-size: 0.95rem;
    min-width: 28px;
    text-align: center;
}
.leaderboard-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.88rem;
    color: #f1f2f6;
}
.leaderboard-score {
    font-weight: 800;
    font-size: 0.88rem;
    color: #FFD700;
}

/* ════════════════════════════════════════════════════════════
   3. CHỢ PHIÊN (SHOP & BAZAAR)
   ════════════════════════════════════════════════════════════ */
.shop-currency-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.shop-currency-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.shop-currency-pill--stars {
    border-color: rgba(255, 215, 0, 0.4);
    color: #FFE082;
    background: rgba(255, 215, 0, 0.08);
}
.shop-currency-pill--coins {
    border-color: rgba(251, 146, 60, 0.4);
    color: #FDBA74;
    background: rgba(251, 146, 60, 0.08);
}
.shop-currency-pill--tickets {
    border-color: rgba(52, 211, 153, 0.4);
    color: #6EE7B7;
    background: rgba(52, 211, 153, 0.08);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    max-height: 52vh;
    overflow-y: auto;
    padding: 4px;
}

.shop-card {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}
.shop-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Rarity Accents */
.shop-card[data-category="special"],
.shop-card.rarity-epic {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.2);
}
.shop-card[data-category="dragon"],
.shop-card.rarity-legendary {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.2);
}
.shop-card[data-category="garden"] {
    border-color: rgba(52, 211, 153, 0.5);
}

.shop-card-icon {
    width: 64px;
    height: 64px;
    margin: 4px auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
}

.shop-card-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.shop-card-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: #FFD700;
    margin: 6px 0;
}

/* Stepper Box */
.shop-stepper-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    padding: 3px 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.shop-stepper-btn {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.shop-stepper-btn:hover:not(:disabled) {
    background: rgba(108, 92, 231, 0.6);
}
.shop-stepper-input {
    width: 32px;
    text-align: center;
    border: none;
    background: transparent;
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
}

/* ════════════════════════════════════════════════════════════
   4. CÂY ĐA MAY MẮN (SACRED SPIRIT TREE & LUCKY WHEEL)
   ════════════════════════════════════════════════════════════ */
.wheel-stage-wrapper {
    position: relative;
    padding: 10px;
    text-align: center;
}

.wheel-container {
    position: relative;
    width: 340px;
    height: 340px;
    margin: 0 auto;
    border-radius: 50%;
    padding: 8px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, rgba(13, 10, 28, 0.8) 70%);
    box-shadow: 
        0 0 35px rgba(255, 215, 0, 0.35),
        inset 0 0 20px rgba(0, 0, 0, 0.6);
    border: 3px solid rgba(255, 215, 0, 0.5);
}

.wheel-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 28px solid #FF4757;
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700, #FFA000);
    border: 3px solid #FFF59D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    z-index: 5;
}

.wheel-spin-btn {
    padding: 12px 36px;
    font-size: 1.15rem;
    font-weight: 800;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.45);
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}
.wheel-spin-btn:hover:not(:disabled) {
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.65);
}
.wheel-spin-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

/* ════════════════════════════════════════════════════════════
   5. NÚI DANH VỌNG (CRYSTAL MOUNTAIN GATEWAY)
   ════════════════════════════════════════════════════════════ */
.mountain-gateway-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 10px 4px;
}
@media (max-width: 600px) {
    .mountain-gateway-grid {
        grid-template-columns: 1fr;
    }
}

.mountain-portal-card {
    border-radius: 18px;
    padding: 18px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mountain-portal-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.mountain-portal-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}
.mountain-portal-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}
.mountain-portal-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
}
.mountain-portal-arrow {
    margin-left: auto;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.25s ease;
}
.mountain-portal-card:hover .mountain-portal-arrow {
    transform: translateX(4px);
    color: #FFD700;
}

/* ════════════════════════════════════════════════════════════
   6. VƯỜN CÂY (SKY TERRACE FARM)
   ════════════════════════════════════════════════════════════ */
.garden-terrace-wrapper {
    padding: 6px;
}

.garden-mascot-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.4);
    font-weight: 700;
    font-size: 0.82rem;
    color: #7BED9F;
    margin-bottom: 12px;
}

.garden-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 440px;
    margin: 0 auto 16px;
}

.garden-plot-card {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(120, 53, 15, 0.6) 0%, rgba(69, 26, 3, 0.8) 100%);
    border: 2px solid rgba(180, 83, 9, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.garden-plot-card:hover {
    transform: translateY(-4px) scale(1.04);
    border-color: #F59E0B;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(245, 158, 11, 0.4);
}
.garden-plot-card.can-harvest {
    border-color: #10B981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
    animation: harvestPulse 1.8s ease-in-out infinite;
}
@keyframes harvestPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ════════════════════════════════════════════════════════════
   7. TRƯỜNG HỌC & QUEST BOARD (SCHOOL ACADEMY)
   ════════════════════════════════════════════════════════════ */
.school-quest-board {
    max-width: 860px;
    margin: 0 auto;
    padding: 14px;
}

.quest-milestone-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 12px 18px;
    margin-bottom: 18px;
}

.quest-card-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    margin-bottom: 8px;
    transition: all 0.2s ease;
}
.quest-card-item:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(4px);
    border-color: rgba(255, 215, 0, 0.3);
}

.quest-card-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}
.quest-card-info {
    flex: 1;
}
.quest-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
}
.quest-card-reward {
    font-size: 0.78rem;
    color: #FFD700;
    font-weight: 700;
    margin-top: 2px;
}

/* ════════════════════════════════════════════════════════════
   8. PHIÊU LƯU (AIRSHIP EXPEDITION HUB)
   ════════════════════════════════════════════════════════════ */
.expedition-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 20px auto;
}
@media (max-width: 650px) {
    .expedition-hero-grid {
        grid-template-columns: 1fr;
    }
}

.expedition-hub-card {
    border-radius: 22px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.expedition-hub-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.expedition-hub-card--chess {
    border-color: rgba(56, 189, 248, 0.4);
}
.expedition-hub-card--chess:hover {
    border-color: #38BDF8;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.35);
}
.expedition-hub-card--dragon {
    border-color: rgba(239, 68, 68, 0.4);
}
.expedition-hub-card--dragon:hover {
    border-color: #EF4444;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(239, 68, 68, 0.35);
}

.expedition-hub-icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.5));
}
.expedition-hub-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.expedition-hub-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
}
