* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    font-family: 'Minecraft', sans-serif;
}

body {
    min-height: 100%;
    background: #0d0d0d;
    color: #e8e8e8;
    image-rendering: pixelated;
    transition: background 0.4s ease;
}

/* 월드별 미세 다크 틴트 (포털 톤 유지) */
body.lobby-bg     { background: #0d0d0d; }
body.overworld-bg { background: #0d140d; }
body.nether-bg    { background: #140808; }
body.ender-bg     { background: #0d0814; }

/* ===== 상단 네비게이션 바 ===== */
#topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 28px;
    background: #111;
    border-bottom: 1px solid #2a2a2a;
}

.nav-logo {
    color: #fff;
    font-size: 22px;
    letter-spacing: 1px;
}

.nav-logo .pick {
    color: #5fd1ff;
}

.nav-menu {
    display: flex;
    gap: 22px;
}

.nav-menu span {
    color: #cfcfcf;
    font-size: 14px;
    cursor: pointer;
}

.nav-menu span:hover {
    color: #ffd24a;
}

/* ===== 본문 가운데 컬럼 ===== */
#page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}

.breadcrumb {
    color: #9a9a9a;
    font-size: 13px;
    margin-bottom: 6px;
}

.page-title {
    color: #d8d8d8;
    font-size: 30px;
    font-weight: 400;
}

.divider {
    border: 0;
    border-top: 1px solid #2a2a2a;
    margin: 16px 0 20px;
}

/* ===== 게임 아이콘 바 (썸네일 carousel) ===== */
.icon-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    margin-bottom: 18px;
    background: #141414;
    border: 1px solid #2a2a2a;
    overflow-x: auto;
}

.game-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 64px;
    cursor: pointer;
}

.game-icon img {
    width: 56px;
    height: 56px;
    border: 1px solid #333;
    border-radius: 12px;
    image-rendering: pixelated;
}

.game-icon span {
    font-size: 12px;
    color: #cfcfcf;
}

.game-icon:hover span {
    color: #fff;
}

.icon-arrow {
    flex: none;
    margin-left: auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffd24a;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
}

/* ===== 게임 화면 박스 ===== */
#canvas-wrapper {
    position: relative;
    width: 1024px;
    height: 768px;
    max-width: 100%;
    margin: 0 auto;
    background: #000;
    border: 1px solid #3a3a3a;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
}

/* ===== 팀 소개란 ===== */
.team-intro {
    max-width: 1024px;
    margin: 28px auto 0;
    padding: 22px 26px;
    background: #141414;
    border: 1px solid #2a2a2a;
}

.team-intro h2 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 4px;
}

.team-sub, .credits-sub {
    font-size: 13px;
    color: #9a9a9a;
    margin-bottom: 16px;
}

.team-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.team-list li {
    padding: 10px 16px;
    background: #1e1e1e;
    border: 1px solid #333;
    font-size: 14px;
    color: #e8e8e8;
}

.team-list li span {
    margin-left: 8px;
    font-size: 12px;
    color: #ffd24a;
}


.credits {
    max-width: 1024px;
    margin: 28px auto 0;
    padding: 22px 26px;
    background: #141414;
    border: 1px solid #2a2a2a;
    font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
}

/* ===== 폰트 ===== */
@font-face {
    font-family: 'Minecraft';
    src: url('assets/font/Minecraft-Bold.otf') format('opentype');
    font-weight: 700;
}

@font-face {
    font-family: 'Minecraft';
    src: url('assets/font/Minecraft.otf') format('opentype');
    font-weight: 400;
}

/* ===== 맵 에디터 (기존 유지) ===== */
select {
    width: 150px;
    height: 30px;
    border-radius: 10px;
    text-align: end;
    padding-right: 5px;
}

#map-editor {
    display: none;
    width: 1024px;
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 15px;
}

#map-editor input[type=text] {
    width: 150px;
    border-radius: 10px;
    padding: 0 10px;
    text-align: end;
    height: 30px;
}

#map-editor img {
    cursor: pointer;
    height: 32px;
}

#map-editor div {
    padding-top: 5px;
    display: flex;
    width: 450px;
    justify-content: space-between;
    align-items: center;
}

/* ===== 로그 (기존 유지) ===== */
#log {
    display: none;
    width: 1024px;
    max-width: 100%;
    height: 150px;
    margin: 20px auto 0;
    overflow-y: scroll;
    background: #111;
    color: #ccc;
}
