:root {
    --bg: #0f172a;
    --bg-soft: #16213c;
    --panel: #101a30;
    --line: #2a3a5a;
    --text: #edf2ff;
    --muted: #b9c4e4;
    --accent: #20c997;
    --accent-strong: #19a67e;
    --danger: #ef476f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    line-height: 1.6;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 10%, #1f3b73 0%, transparent 35%),
        radial-gradient(circle at 90% 20%, #14395b 0%, transparent 30%),
        linear-gradient(180deg, #0a1225 0%, #101a31 100%);
}

a {
    color: #7cd4ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#app-container {
    width: min(1100px, 92%);
    margin: 0 auto;
    padding: 24px 0 40px;
}

.site-header {
    background: rgba(9, 18, 36, 0.82);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(2px);
}

.eyebrow {
    display: inline-block;
    margin: 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #143f58;
    color: #7ee1ff;
}

.site-header h1 {
    margin: 12px 0 8px;
    line-height: 1.2;
}

.sub-copy,
.updated-at {
    margin: 0;
    color: var(--muted);
}

.site-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 12px;
}

.site-header nav a {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
}

main {
    display: grid;
    gap: 20px;
}

.card {
    background: rgba(13, 24, 45, 0.88);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
}

.card h2,
.card h3,
.card h4 {
    margin-top: 0;
}

#club-layout {
    display: flex;
    gap: 16px;
    margin-top: 14px;
}

#club-map {
    width: 68%;
    height: 620px;
    background:
        linear-gradient(170deg, #1f2e47, #0f1d34),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04) 8px, transparent 8px, transparent 16px);
    border: 2px solid #3a4d73;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.zone {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 6px;
    border: 1px dashed rgba(255, 255, 255, 0.85);
    background: rgba(5, 10, 20, 0.5);
    color: #f1f5ff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px;
    transition: transform 0.15s ease, background-color 0.2s ease;
}

.zone.drag-over {
    background: rgba(53, 197, 150, 0.45);
    transform: scale(1.02);
}

.zone span {
    pointer-events: none;
    line-height: 1.2;
}

#main-stage-area {
    top: 28%;
    left: 23%;
    width: 62%;
    height: 65%;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: rgba(85, 138, 252, 0.2);
}

#mvip-zone,
#vvip-zone {
    left: 80%;
    width: 16%;
    height: 8%;
    background: rgba(255, 207, 102, 0.85);
    color: #412900;
    border: 1px solid #ffd166;
}

#mvip-zone {
    top: 10%;
}

#vvip-zone {
    top: 22%;
}

.booth {
    background: rgba(103, 139, 214, 0.85);
    border-style: solid;
}

#booth-a {
    top: 42%;
    left: 72%;
    width: 11%;
    height: 8%;
}

#booth-b {
    top: 18%;
    left: 20%;
    width: 11%;
    height: 8%;
}

#booth-c {
    top: 30%;
    left: 27%;
    width: 11%;
    height: 8%;
}

#booth-d {
    top: 6%;
    left: 40%;
    width: 11%;
    height: 8%;
}

#booth-e {
    top: 52%;
    left: 60%;
    width: 11%;
    height: 8%;
}

#booth-f {
    top: 24%;
    left: 52%;
    width: 11%;
    height: 8%;
}

.facility {
    background: rgba(73, 86, 116, 0.92);
    font-size: 11px;
}

#charging-spot {
    top: 46%;
    left: 10%;
    width: 8%;
    height: 5%;
}

#information {
    top: 53%;
    left: 10%;
    width: 8%;
    height: 5%;
}

#emergency {
    top: 60%;
    left: 10%;
    width: 8%;
    height: 5%;
    background: rgba(146, 69, 89, 0.95);
}

#smoking-area {
    top: 75%;
    left: 21%;
    width: 8%;
    height: 5%;
}

#toilet {
    top: 75%;
    left: 10%;
    width: 8%;
    height: 5%;
}

#official-merchandise {
    top: 68%;
    left: 5%;
    width: 8%;
    height: 5%;
}

#water-bar {
    top: 73%;
    left: 5%;
    width: 8%;
    height: 5%;
}

#guest-controls {
    width: 32%;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
}

#add-guest-form {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

#guest-name-input {
    flex: 1;
    min-width: 0;
    padding: 10px 11px;
    border-radius: 8px;
    border: 1px solid #3d4f75;
    background: #0f1a33;
    color: var(--text);
}

#add-guest-btn,
.ghost-btn {
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 700;
}

#add-guest-btn {
    background: var(--accent);
    color: #032018;
}

#add-guest-btn:hover {
    background: var(--accent-strong);
}

.actions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.ghost-btn {
    background: #1e2d4b;
    color: #cde1ff;
    border: 1px solid #36507b;
}

#clear-guests-btn {
    border-color: #74354a;
    color: #ffd8e2;
}

#guest-count {
    color: var(--muted);
    margin: 0 0 10px;
}

#guest-list-container {
    background: #0d1831;
    border: 1px solid #31496e;
    border-radius: 10px;
    padding: 10px;
    min-height: 200px;
}

#guest-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.guest-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #4ea8ff;
    color: #051225;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
    user-select: none;
    position: absolute;
    transition: transform 0.2s;
    font-size: 11px;
    text-align: center;
    padding: 3px;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    z-index: 50;
}

#guest-list .guest-avatar {
    position: relative;
    margin: 0;
    z-index: auto;
}

.guest-avatar.dragging {
    opacity: 0.75;
    transform: scale(1.08);
}

.text-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.text-grid article {
    border: 1px solid #32476b;
    border-radius: 10px;
    padding: 12px;
    background: #101b34;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.resource-item {
    border: 1px solid #32476b;
    border-radius: 10px;
    padding: 12px;
    background: #101b34;
}

.resource-item h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.resource-item p {
    margin: 0;
    color: var(--muted);
}

ul {
    margin: 0;
    padding-left: 20px;
}

details {
    border: 1px solid #32476b;
    border-radius: 10px;
    padding: 10px 12px;
    background: #101b34;
    margin-bottom: 10px;
}

details p {
    margin: 8px 0 0;
}

.site-footer {
    margin-top: 20px;
    background: rgba(9, 18, 36, 0.88);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    color: var(--muted);
}

.site-footer p {
    margin: 0 0 8px;
}

.site-footer p:last-child {
    margin-bottom: 0;
}

.site-footer a {
    margin-right: 10px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 980px) {
    #club-layout {
        flex-direction: column;
    }

    #club-map,
    #guest-controls {
        width: 100%;
    }

    #club-map {
        height: 520px;
    }

    .text-grid {
        grid-template-columns: 1fr;
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    #app-container {
        width: min(100%, 95%);
        padding-top: 14px;
    }

    .site-header,
    .card,
    .site-footer {
        padding: 14px;
        border-radius: 12px;
    }

    #add-guest-form,
    .actions {
        flex-direction: column;
    }

    #club-map {
        height: 420px;
    }
}
