:root {
    --mc-green: #5aa136;
    --mc-dark-green: #3d6e25;
    --mc-dirt: #866043;
    --mc-stone: #7d7d7d;
    --primary: #5aa136;
    --bg-dark: #0f0f0f;
    --card-bg: rgba(25, 25, 25, 0.75);
    --text-main: #ffffff;
    --text-muted: #bcbcbc;
    --gold: #ffcc00;
    --accent: #32e1ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #1a1a1a;
    /* 새로 생성한 마인크래프트 파노라마 배경 */
    background-image:
        /* CSS를 이용한 픽셀화된 흙 패턴 오버레이 (dirt.png 대체) */
        repeating-conic-gradient(#4d3725 0% 25%, #3c2a1a 0% 50%),
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('../images/bg.png');
    /* Moved to assets/images */
    background-repeat: repeat, no-repeat, no-repeat;
    background-size: 4px 4px, cover, cover;
    /* 64px로 더 큼직한 흙 질감 구현 */
    background-position: center, center, center;
    background-attachment: fixed, fixed, fixed;
    background-blend-mode: overlay, normal, normal;

    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

/* 슬라이더 스타일 */
.slider-section {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.slider-window {
    flex: 1;
    overflow: hidden;
    border: 4px solid #000;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    background: #000;
}

.slides {
    display: flex;
    transition: transform 0.4s steps(10);
    width: 200%;
    /* 두 개의 슬라이드 */
}

.slide {
    width: 50%;
    flex-shrink: 0;
    line-height: 0;
}

.slide img {
    width: 100%;
    height: auto;
    image-rendering: pixelated;
}

.nav-btn {
    background: #555;
    border: 3px solid #000;
    border-top-color: #888;
    border-left-color: #888;
    color: #fff;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    cursor: pointer;
    user-select: none;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.nav-btn:hover {
    background: #777;
    border-color: #fff;
}

.nav-btn:active {
    transform: translate(1px, 1px);
    box-shadow: none;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 60px auto;
    position: relative;
    z-index: 1;
}

/* Minecraft Styled Header */
header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo-text {
    font-family: 'VT323', monospace;
    font-size: 5rem;
    color: var(--mc-green);
    text-shadow:
        0 0 10px rgba(90, 161, 54, 0.5),
        4px 4px 0px #000;
    letter-spacing: 4px;
    margin-bottom: 15px;
    text-transform: uppercase;
    filter: drop-shadow(0 0 20px rgba(90, 161, 54, 0.3));
}

.subtitle {
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.3);
    display: inline-block;
    padding: 5px 20px;
    border-radius: 4px;
    border-left: 4px solid var(--gold);
    border-right: 4px solid var(--gold);
}

/* Status Cards */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.card {
    background: rgba(16, 16, 16, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* 마인크래프트 GUI 스타일 테두리 */
    border: 4px solid #000;
    outline: 4px solid rgba(255, 255, 255, 0.1);
    outline-offset: -8px;

    border-radius: 4px;
    padding: 35px;
    text-align: center;
    transition: all 0.2s steps(4);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card:hover {
    transform: scale(1.02);
    border-color: var(--mc-green);
    background: rgba(24, 24, 24, 0.9);
}

.card h3 {
    font-family: 'VT323', monospace;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-main);
    letter-spacing: 1px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.status-on {
    background: rgba(90, 161, 54, 0.15);
    color: #b1ffb1;
    border: 1px solid rgba(136, 255, 136, 0.3);
    box-shadow: 0 0 20px rgba(90, 161, 54, 0.2);
}

.status-off {
    background: rgba(255, 68, 68, 0.15);
    color: #ffb1b1;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.pulse {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2eff2e;
    box-shadow: 0 0 10px #2eff2e;
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

/* IP Copy Section - Minecraft Button Style */
.ip-box {
    background: #555;
    border: 3px solid #000;
    border-top-color: #888;
    border-left-color: #888;
    border-radius: 2px;
    padding: 15px;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.ip-box:hover {
    background: #777;
    border-color: #fff;
    border-bottom-color: #000;
    border-right-color: #000;
}

.ip-box:active {
    transform: translate(1px, 1px);
    box-shadow: none;
}

.ip-text {
    font-family: 'VT323', monospace;
    font-size: 1.6rem;
    color: #fff;
    text-shadow: 2px 2px 0px #222;
}

/* Buttons - Minecraft Style */
.btn {
    background: #555;
    border: 4px solid #000;
    border-top-color: #888;
    border-left-color: #888;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    text-shadow: 2px 2px 0px #222;
    cursor: pointer;
    display: inline-block;
    transition: all 0.1s;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}

.btn:hover {
    background: #777;
    border-color: #fff;
    border-bottom-color: #000;
    border-right-color: #000;
    color: #ffffaa;
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

/* Image Section - Minecraft Style */
.image-section {
    background: rgba(16, 16, 16, 0.85);
    backdrop-filter: blur(8px);
    border: 4px solid #000;
    outline: 4px solid rgba(255, 255, 255, 0.1);
    outline-offset: -8px;
    border-radius: 4px;
    padding: 40px;
    margin-top: 20px;
    text-align: center;
    animation: fadeInUp 1s 0.2s ease-out both;
}

.image-section h2 {
    font-family: 'VT323', monospace;
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--mc-green);
    text-shadow: 2px 2px 0px #000;
}

.img-wrapper {
    position: relative;
    border: 4px solid #000;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    line-height: 0;
    margin-bottom: 30px;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
    /* 픽셀 느낌 강조 */
}

.link-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    animation: fadeInUp 1s 0.4s ease-out both;
}

/* Success Toast - Minecraft Chat Style */
#toast {
    visibility: hidden;
    min-width: 300px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: left;
    border-left: 5px solid var(--mc-green);
    padding: 15px 25px;
    position: fixed;
    z-index: 1000;
    left: 20px;
    bottom: 20px;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

#toast::before {
    content: '<System> ';
    color: var(--gold);
}

#toast.show {
    visibility: visible;
    animation: chatFadeIn 0.3s ease-out, chatFadeOut 0.5s 2.5s forwards;
}

/* Mouse Cursor Dirt Block */
#mc-cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 9999;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(25deg);
    /* 기존 translate(-50%, -50%) 제거 */
}

.cursor-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: 8px 8px;
    image-rendering: pixelated;
}

/* 흙 블록 각 면의 텍스처 */
.cursor-top {
    background-image: repeating-conic-gradient(#5aa136 0% 25%, #3d6e25 0% 50%);
    /* 잔디 느낌 */
    transform: rotateX(90deg) translateZ(12px);
}

.cursor-side {
    background-image: repeating-conic-gradient(#4d3725 0% 25%, #3c2a1a 0% 50%);
    transform: translateZ(12px);
}

.cursor-side-2 {
    background-image: repeating-conic-gradient(#4d3725 0% 25%, #3c2a1a 0% 50%);
    transform: rotateY(90deg) translateZ(12px);
}

/* Footer */
footer {
    margin-top: 80px;
    padding-bottom: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

footer strong {
    color: var(--text-main);
}

/* Animations */
@keyframes chatFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes chatFadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .logo-text {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .container {
        padding: 10px;
        margin: 20px auto;
    }

    .card {
        padding: 25px;
    }

    .status-grid {
        gap: 15px;
        grid-template-columns: 1fr;
    }

    .image-section {
        padding: 20px;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    #toast {
        min-width: calc(100% - 40px);
        left: 20px;
        bottom: 20px;
    }
}