/* 포켓 프론트라인 (War Game) — 포탈 셸 (헤더/컨테이너만, 게임 내부는 runtime.css 소관) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

html { scrollbar-gutter: stable; }

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: var(--fc-bg, #0a0a1a);
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--fc-ink, #fff8e7);
}

.bg-effects {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 15s ease-in-out infinite;
}

.bg-orb:nth-child(1) {
    width: 400px; height: 400px;
    background: #00d4ff;
    top: -100px; left: -100px;
}

.bg-orb:nth-child(2) {
    width: 350px; height: 350px;
    background: var(--fc-accent, #ff6b9d);
    bottom: -50px; right: -100px;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 0.75rem;
}

.header-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.back-btn {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    color: var(--fc-ink-2, #c0c0d8);
    text-decoration: none;
    font-size: 0.9rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.5rem;
    border-radius: var(--fc-r-md, 8px);
    transition: color 0.3s, background 0.3s;
}

.back-btn:hover {
    color: #00d4ff;
    background: rgba(255, 255, 255, 0.1);
}

.back-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.editor-open-btn {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    color: var(--fc-ink-2, #c0c0d8);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: var(--fc-r-md, 8px);
    border: 1px solid var(--fc-line, #ff6b9d);
    transition: color 0.3s, background 0.3s;
}

.editor-open-btn:hover {
    color: #00d4ff;
    background: rgba(255, 255, 255, 0.1);
}

h1 {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 2rem;
    color: #ffd700;
    text-shadow:
        0 0 10px rgba(255, 215, 0, 0.6),
        0 0 18px rgba(255, 107, 157, 0.35),
        3px 3px 0 #172c66;
}

#war-root {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

footer {
    text-align: center;
    padding: 1.5rem 0 1rem;
    color: var(--fc-ink-2, #c0c0d8);
    font-size: 0.85rem;
}

footer a { color: #00d4ff; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ===== 모바일 반응형 ===== */
@media (max-width: 600px) {
    .container {
        padding: 0.5rem 0.5rem;
    }
    h1 {
        font-size: 1.4rem;
    }
}
