/* ========================================
   Littleworld Home Page Styles
   Global CSS for all language versions
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fredoka', 'Noto Sans KR', sans-serif;
    overflow-x: hidden;
    background: linear-gradient(to bottom, #87CEEB 0%, #87CEEB 50%, #4A90E2 100%);
    min-height: 100vh;
}

/* ============================================
   모바일 카드 스타일 (기본: 숨김, 모바일/태블릿에서만 표시)
   ============================================ */
.mobile-cards {
    display: none; /* 기본값: PC에서는 숨김 */
}

.mobile-cards .card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    padding: 16px;
    margin: 12px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}

.mobile-cards .card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.mobile-cards .card .thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: linear-gradient(135deg, #eee, #ddd);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.mobile-cards .card h4 {
    margin: 0 0 6px 0;
    font-size: 1.05rem;
    color: #333;
}

.mobile-cards .card p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* 언어 선택 */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    animation: fadeInDown 1s ease-out;
}

#languageSelect {
    padding: 10px 15px;
    font-size: 1rem;
    border: 2px solid white;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    outline: none;
}

#languageSelect:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

#languageSelect:focus {
    border-color: #2196F3;
}

/* 헤더 */
.header {
    text-align: center;
    padding: 15px 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    animation: fadeInDown 1s ease-out;
}

.header p {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
    animation: fadeInDown 1.2s ease-out;
}

/* 아일랜드 컨테이너 */
.island-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 구름 애니메이션 */
.cloud {
    position: absolute;
    background: white;
    border-radius: 100px;
    opacity: 0.8;
    animation: float 20s infinite ease-in-out;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 100px;
}

.cloud1 {
    width: 100px;
    height: 40px;
    top: 30px;
    left: 10%;
    animation-delay: 0s;
}

.cloud1::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
}

.cloud1::after {
    width: 60px;
    height: 40px;
    top: -15px;
    right: 10px;
}

.cloud2 {
    width: 120px;
    height: 45px;
    top: 60px;
    right: 15%;
    animation-delay: 3s;
}

.cloud2::before {
    width: 55px;
    height: 55px;
    top: -28px;
    left: 15px;
}

.cloud2::after {
    width: 65px;
    height: 45px;
    top: -18px;
    right: 15px;
}

/* 섬 배경 */
.island {
    position: relative;
    width: 100%;
    height: 650px;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 섬 베이스 */
.island-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: none;
    height: 320px;
    background: linear-gradient(180deg, #9EEB8A 0%, #7CB342 55%, #5F8A33 100%);
    border-radius: 0;
    box-shadow: 0 30px 60px rgba(0,0,0,0.35), inset 0 -8px 20px rgba(0,0,0,0.15);
    transform-style: preserve-3d;
    overflow: hidden;
    z-index: 1;
}

.island-base::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 36px;
    background: rgba(109,76,65,0.95);
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.5;
}

/* 잔디 디테일 */
.grass-detail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 72px,
            rgba(139, 195, 74, 0.4) 72px,
            rgba(139, 195, 74, 0.4) 74px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 72px,
            rgba(104, 159, 56, 0.4) 72px,
            rgba(104, 159, 56, 0.4) 74px
        );
    border-radius: 20px;
    pointer-events: none;
}

/* 건물 공통 스타일 */
.building {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.building a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
    z-index: 1;
}

.building:hover {
    filter: brightness(1.2) drop-shadow(0 20px 30px rgba(0,0,0,0.5));
    z-index: 100 !important;
}

/* 말풍선 스타일 */
.building-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(8px) scale(0.98);
    background: rgba(255,255,255,0.98);
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
    border: 2px solid #FFD700;
    opacity: 0;
    visibility: hidden;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}

.building-tooltip::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #FFD700;
}

.building-tooltip::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(255,255,255,0.98);
}

.building:hover .building-tooltip,
.building:focus-within .building-tooltip,
.building.tooltip-open .building-tooltip {
    transform: translateX(-50%) translateY(0) scale(1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.building-tooltip h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.building-tooltip p {
    font-size: 0.85rem;
    color: #666;
    max-width: 280px;
    white-space: normal;
}

.island-container, .island { position: relative; z-index: 2000; }
.building { position: absolute; z-index: 2100; }
.building .building-structure, .building a { position: absolute; z-index: 2150; }
.footer { position: relative; z-index: 100; }
.language-selector { z-index: 10000; }

/* GIIP 건물 */
.giip-building {
    top: 120px;
    left: 120px;
    width: 90px;
    height: 128px;
    z-index: 10;
}

.giip-structure {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1976D2 0%, #0D47A1 100%);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    position: relative;
    border: 3px solid #1565C0;
}

.giip-structure::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: calc(100% - 30px);
    background: repeating-linear-gradient(
        0deg,
        rgba(255,255,255,0.15) 0px,
        rgba(255,255,255,0.15) 18px,
        transparent 18px,
        transparent 20px,
        rgba(33, 150, 243, 0.3) 20px,
        rgba(33, 150, 243, 0.3) 38px,
        transparent 38px,
        transparent 40px
    );
    border-radius: 4px;
}

.giip-structure::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    box-shadow: 0 0 10px #4CAF50, 0 0 20px #4CAF50;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.giip-led {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

.giip-led.led1 { top: 25px; left: 12px; background: #FF5722; box-shadow: 0 0 8px #FF5722; animation-delay: 0s; }
.giip-led.led2 { top: 45px; left: 18px; background: #FFC107; box-shadow: 0 0 8px #FFC107; animation-delay: 0.3s; }
.giip-led.led3 { top: 70px; right: 15px; background: #4CAF50; box-shadow: 0 0 8px #4CAF50; animation-delay: 0.6s; }
.giip-led.led4 { top: 95px; left: 10px; background: #2196F3; box-shadow: 0 0 8px #2196F3; animation-delay: 0.9s; }
.giip-led.led5 { top: 120px; right: 20px; background: #9C27B0; box-shadow: 0 0 8px #9C27B0; animation-delay: 1.2s; }
.giip-led.led6 { top: 140px; left: 15px; background: #00BCD4; box-shadow: 0 0 8px #00BCD4; animation-delay: 1.5s; }

.giip-sign {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 700;
    color: #1976D2;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    white-space: nowrap;
    border: 2px solid #2196F3;
    z-index: 200;
    pointer-events: none;
}

/* Lord of the Lords 건물 */
.lol-building {
    top: 120px;
    right: 60px;
    width: 102px;
    height: 141px;
    z-index: 10;
}

.castle {
    width: 100%;
    height: 100%;
    position: relative;
}

.castle-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, #757575 0%, #424242 100%);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    border: 3px solid #616161;
}

.castle-base::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: repeating-linear-gradient(
        90deg,
        #757575 0px,
        #757575 20px,
        transparent 20px,
        transparent 30px
    );
}

.castle-base::after {
    content: '🚪';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    filter: brightness(0.7);
}

.castle-tower {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 80%;
    background: linear-gradient(to bottom, #9E9E9E 0%, #616161 100%);
    border: 3px solid #757575;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.castle-tower::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
    background: repeating-linear-gradient(
        90deg,
        #9E9E9E 0px,
        #9E9E9E 15px,
        transparent 15px,
        transparent 22px
    );
}

.castle-tower::after {
    content: '⚔️';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    animation: wave 2s ease-in-out infinite;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

@keyframes wave {
    0%, 100% { transform: translateX(-50%) rotate(-5deg); }
    50% { transform: translateX(-50%) rotate(5deg); }
}

.lol-sign {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    color: #616161;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    white-space: nowrap;
    border: 2px solid #9E9E9E;
    z-index: 200;
    pointer-events: none;
}

/* JinzaiX 건물 */
.jinzai-building {
    top: 300px;
    left: 220px;
    width: 96px;
    height: 115px;
    z-index: 50;
}

.jinzai-structure {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #2C3E50 0%, #34495E 60%, #2C3E50 100%);
    border-radius: 2px;
    box-shadow: 
        0 15px 40px rgba(0,0,0,0.5),
        inset 2px 0 10px rgba(255,255,255,0.1);
    position: relative;
    overflow: visible;
    border-left: 2px solid #546E7A;
    border-right: 2px solid #1C2833;
    pointer-events: auto;
}

.jinzai-structure::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 85%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 10px,
        rgba(66, 165, 245, 0.3) 10px,
        rgba(66, 165, 245, 0.3) 11px
    ),
    repeating-linear-gradient(
        90deg,
        transparent,
        transparent 15px,
        rgba(66, 165, 245, 0.3) 15px,
        rgba(66, 165, 245, 0.3) 16px
    );
    border: 1px solid #546E7A;
    pointer-events: none;
}

.jinzai-structure::after {
    content: '🤖';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    background: rgba(255,255,255,0.1);
    padding: 3px 10px;
    border-radius: 3px;
    backdrop-filter: blur(5px);
    pointer-events: none;
}

@keyframes eye-glow {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.jinzai-sign {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 700;
    color: #2C3E50;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 200;
    white-space: nowrap;
    border: 2px solid #34495E;
    pointer-events: none;
}

/* Token Exchange 건물 */
.exchange-building {
    top: 300px;
    right: 220px;
    width: 90px;
    height: 102px;
    z-index: 50;
}

.exchange-structure {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, #FFA726 0%, #FF6F00 100%);
    border-radius: 15px 15px 5px 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 3px solid #F57C00;
    overflow: visible;
    pointer-events: auto;
}

.exchange-structure::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 60%;
    background: 
        linear-gradient(90deg, transparent 48%, #F57C00 48%, #F57C00 52%, transparent 52%),
        linear-gradient(0deg, transparent 48%, #F57C00 48%, #F57C00 52%, transparent 52%);
    background-size: 40px 40px;
    pointer-events: none;
}

.exchange-structure::after {
    content: '💱';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    animation: coinSpin 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes coinSpin {
    0%, 100% { transform: translateX(-50%) rotateY(0deg); }
    50% { transform: translateX(-50%) rotateY(360deg); }
}

.exchange-door {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 45%;
    height: 35%;
    background: linear-gradient(to bottom, #6D4C41 0%, #4E342E 100%);
    border-radius: 8px 8px 0 0;
    border: 2px solid #5D4037;
    pointer-events: none;
}

.exchange-door::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 70%;
    width: 8px;
    height: 8px;
    background: #FFD700;
    border-radius: 50%;
    box-shadow: 0 0 10px #FFD700;
}

.exchange-sign {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 700;
    color: #FF6F00;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    white-space: nowrap;
    border: 2px solid #FFA726;
    z-index: 200;
    pointer-events: none;
}

/* Billboard 건물 */
.billboard-building {
    top: 330px;
    left: 50px;
    width: 96px;
    height: 160px;
    z-index: 300;
}

.billboard-building a {
    z-index: 310;
    position: absolute;
    inset: 0;
    display: block;
}

.billboard-structure {
    width: 100%;
    height: 100%;
    position: relative;
}

.billboard-structure * {
    pointer-events: none;
}

.youtube-tower {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 6px;
    border: 3px solid rgba(0,0,0,0.15);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.youtube-logo {
    margin-top: 10px;
    width: 80%;
    height: 34px;
    background: #FF0000;
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.youtube-logo .yt-play {
    width: 0;
    height: 0;
    border-left: 10px solid #fff;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    margin-right: 8px;
    display: inline-block;
}

.tower-windows {
    margin-top: 12px;
    width: 86%;
    flex: 1 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-content: flex-start;
    justify-content: center;
    padding-bottom: 12px;
}

.tower-windows .window {
    width: 22%;
    height: 26px;
    background: linear-gradient(180deg, #fff 0%, #e6e6e6 100%);
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 3px;
    box-shadow: inset 0 -4px 6px rgba(0,0,0,0.06);
    pointer-events: none;
}

.youtube-logo, .tower-door, .tower-windows { pointer-events: none; }

.tower-door {
    width: 28px;
    height: 32px;
    background: linear-gradient(180deg, #5c4033 0%, #3a2a20 100%);
    border-radius: 3px;
    margin: 10px 0 14px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

.billboard-sign {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    color: #FF0000;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    white-space: nowrap;
    border: 2px solid #FF6B00;
    z-index: 200;
    pointer-events: none;
}

.library-columns {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 90px;
    background: linear-gradient(to bottom, #F5F5DC 0%, #E8DCC0 100%);
    border: 3px solid #D4C5A9;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 5px 10px;
}

.column {
    width: 15px;
    height: 75px;
    background: linear-gradient(to right, #FFFFFF 0%, #E0E0E0 50%, #FFFFFF 100%);
    border-radius: 3px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}

.library-door {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 65px;
    background: linear-gradient(to bottom, #6D4C41 0%, #5D4037 100%);
    border-radius: 10px 10px 0 0;
    border: 2px solid #4E342E;
}

.library-door::before {
    content: '📖';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
}

.library-sign {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 700;
    color: #6D4C41;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    white-space: nowrap;
    border: 2px solid #8D6E63;
    z-index: 200;
    pointer-events: none;
}

.library-building {
    position: absolute;
    top: 180px;
    left: 160px;
    width: 112px;
    height: 128px;
    z-index: 2150;
}

.library-building a {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 320;
    pointer-events: auto !important;
    background: transparent;
}

/* Home 건물 */
.home-building {
    top: 430px;
    right: 95px;
    width: 104px;
    height: 120px;
    z-index: 20;
}

.home-structure {
    width: 100%;
    height: 100%;
    position: relative;
    pointer-events: auto;
}

.home-roof {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 70px solid transparent;
    border-right: 70px solid transparent;
    border-bottom: 55px solid #D32F2F;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    pointer-events: none;
}

.home-roof::before {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 65px solid transparent;
    border-right: 65px solid transparent;
    border-bottom: 50px solid #E53935;
}

.home-walls {
    position: absolute;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 70px;
    background: linear-gradient(to bottom, #FFF9C4 0%, #FFF59D 100%);
    border: 3px solid #F9A825;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    pointer-events: none;
}

.home-door {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 50px;
    background: linear-gradient(to bottom, #8D6E63 0%, #6D4C41 100%);
    border-radius: 8px 8px 0 0;
    border: 2px solid #5D4037;
    z-index: 200;
}

.home-door::before {
    content: '🚪';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.3rem;
}

.home-window {
    position: absolute;
    top: 65px;
    left: 20px;
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, #81D4FA 0%, #4FC3F7 100%);
    border: 2px solid #0277BD;
    border-radius: 3px;
    pointer-events: none;
}

.home-window::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0277BD;
    transform: translateY(-50%);
}

.home-window::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #0277BD;
    transform: translateX(-50%);
}

.home-chimney {
    position: absolute;
    top: 15px;
    right: 35px;
    width: 15px;
    height: 30px;
    background: linear-gradient(to right, #8D6E63 0%, #6D4C41 100%);
    border-radius: 3px 3px 0 0;
    border: 2px solid #5D4037;
    pointer-events: none;
}

.home-chimney::before {
    content: '💨';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    animation: smoke 2s ease-in-out infinite;
}

@keyframes smoke {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(-5px); }
}

.home-sign {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 700;
    color: #D32F2F;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    white-space: nowrap;
    border: 2px solid #E53935;
    z-index: 200;
    pointer-events: none;
}

/* 나무와 장식 */
.tree {
    position: absolute;
    width: 60px;
    height: 80px;
}

.tree1 { 
    top: 320px; 
    left: 400px; 
    z-index: 12;
}

.tree2 { 
    top: 320px; 
    right: 400px; 
    z-index: 12;
}

.tree-trunk {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 30px;
    background: #5D4037;
    border-radius: 3px;
}

.tree-leaves {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 60px solid #4CAF50;
}

.tree-leaves::before {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 50px solid #66BB6A;
}

/* 파도 애니메이션 */
.waves {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 100"><path d="M0,50 Q300,20 600,50 T1200,50 L1200,100 L0,100 Z" fill="%234FC3F7" opacity="0.3"/></svg>') repeat-x;
    animation: wave-animation 15s linear infinite;
}

.wave:nth-child(2) {
    bottom: 10px;
    animation-delay: -5s;
    opacity: 0.5;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: white;
    margin-top: 100px;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 애니메이션 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes shine {
    to {
        left: 100%;
    }
}

@keyframes wave-animation {
    to {
        transform: translateX(-50%);
    }
}

/* ============================================
   반응형 디자인 (Responsive Design)
   ============================================ */

/* 모바일 (Mobile) - max-width: 768px */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .header p {
        font-size: 1rem;
    }

    .island-container {
        display: none !important;
    }

    .mobile-cards {
        display: block !important;
        padding: 10px 0;
    }

    .mobile-cards .card {
        margin: 12px 16px;
    }

    .building-tooltip {
        display: none !important;
    }

    .giip-building {
        width: 90px;
        height: 130px;
    }

    .lol-building {
        width: 100px;
        height: 140px;
    }

    .jinzai-building {
        width: 95px;
        height: 120px;
    }

    .tree {
        width: 40px;
        height: 60px;
    }
}

/* 태블릿 (Tablet) - 769px ~ 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .island-container {
        display: block !important;
        width: 60%;
        float: left;
    }

    .island {
        height: 700px;
    }

    .mobile-cards {
        display: block !important;
        width: 38%;
        float: right;
        margin-top: 20px;
    }

    .mobile-cards .card {
        margin: 10px;
        font-size: 0.9rem;
    }
}

/* 데스크탑 (Desktop) - min-width: 1025px */
@media (min-width: 1025px) {
    .island-container {
        display: block;
        cursor: grab;
        -webkit-user-select: none;
        user-select: none;
        height: auto;
    }

    .island-container.dragging {
        cursor: grabbing;
    }

    .mobile-cards {
        display: none !important;
    }

    .building-tooltip {
        display: block;
    }
}

/* ============================================
   블로그/업데이트 섹션 스타일
   ============================================ */

.updates-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px 20px;
    background: #FFFFFF;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #00C853;
}

.updates-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 10px;
}

.updates-section > p {
    font-size: 0.95rem;
    color: #999999;
    margin-bottom: 30px;
}

/* 최신 업데이트 그리드 */
.latest-updates-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    margin-bottom: 30px !important;
}

/* 그리드 로딩 메시지 */
.updates-grid-loading {
    text-align: center;
    color: #999999;
    font-size: 1rem;
    padding: 40px 20px;
    grid-column: 1 / -1;
}

/* 블로그 포스트 카드 */
.blog-post-card {
    background: #FFFFFF !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    padding: 25px !important;
    transition: all 0.3s ease !important;
    border-left: 4px solid #2196F3 !important;
    display: flex !important;
    flex-direction: column !important;
}

.blog-post-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* 블로그 카드 헤더 */
.blog-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.blog-post-emoji {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.blog-post-category {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #e3f2fd;
    color: #1565c0;
    white-space: nowrap;
}

/* 블로그 제목 */
.blog-post-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 10px;
    line-height: 1.4;
    word-break: break-word;
}

/* 블로그 날짜 */
.blog-post-date {
    display: block;
    font-size: 0.85rem;
    color: #999999;
    margin-bottom: 15px;
    font-style: italic;
}

/* 블로그 요약 */
.blog-post-excerpt {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 75px;
    flex-grow: 1;
}

/* 블로그 링크 */
.blog-post-link {
    display: inline-block;
    color: #2196F3;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.blog-post-link:hover {
    color: #1976D2;
    transform: translateX(4px);
}

/* 버튼 래퍼 */
.updates-button-wrapper {
    text-align: center;
    margin-top: 40px;
}

.updates-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #FFFFFF;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.updates-button:hover {
    background: linear-gradient(135deg, #1976D2 0%, #0D47A1 100%);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
    transform: translateY(-2px);
}

/* 서비스 현황 섹션 */
.service-status {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #2196F3;
}

.service-status h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 30px;
}

.service-status-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 25px !important;
}

.service-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%) !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    padding: 25px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

.service-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.service-card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 10px;
}

.service-card-status {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4CAF50;
    margin-bottom: 8px;
}

.service-card-info {
    font-size: 0.85rem;
    color: #999999;
}

/* 추천글 섹션 */
.testimonials {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px 20px;
    background: #FFFFFF;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #667eea;
}

.testimonials h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333333;
    text-align: center;
    margin-bottom: 40px;
}

.testimonials-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 25px !important;
}

.testimonial-card {
    background: #FFFFFF !important;
    border-radius: 15px !important;
    padding: 30px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    display: block !important;
    border: 1px solid #e0e0e0 !important;
}

.testimonial-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.testimonial-quote {
    font-size: 1rem;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333333;
}

.testimonial-role {
    font-size: 0.8rem;
    color: #999999;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .updates-section {
        margin: 40px auto;
        padding: 25px 15px;
    }

    .updates-section h2 {
        font-size: 1.5rem;
    }

    .latest-updates-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-post-card {
        padding: 15px;
    }

    .blog-post-title {
        font-size: 1.1rem;
    }

    .updates-button-wrapper {
        margin-top: 30px;
    }

    .updates-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .service-status-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-card {
        padding: 15px;
    }

    .service-card-icon {
        font-size: 2rem;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .testimonials h2 {
        font-size: 1.5rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .testimonial-card {
        padding: 20px;
    }
}

/* 태블릿 반응형 */
@media (min-width: 769px) and (max-width: 1024px) {
    .latest-updates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .service-status-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

