:root {
    --bg-color: #05070a;
    --panel-bg: #10141d;
    --border-color: #1e2638;
    --accent-cyan: #00f2ff;
    --accent-pink: #ff2a85;
    --accent-gold: #ffb700;
    --text-primary: #dbe4ee;
    --text-muted: #7e8b9b;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.header {
    text-align: center;
}

.header h1 {
    font-size: 2.2rem;
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.6);
}

.header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 6px;
}

.main-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.sidebar {
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
}

.ranking-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.panel {
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.panel h2 {
    font-size: 1rem;
    color: var(--accent-cyan);
}

.subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
}

textarea {
    width: 100%;
    height: 120px;
    background-color: #080b11;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: #fff;
    padding: 10px;
    font-size: 0.88rem;
    resize: none;
    outline: none;
}

textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 8px rgba(0, 242, 255, 0.3);
}

.participant-count {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-weight: bold;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #00f2ff, #0088ff);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.5);
}

.btn-subtle {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.btn-subtle:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

.info-box {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    background-color: rgba(16, 20, 29, 0.8);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-cyan);
}

.game-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.view-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
}

.map-box {
    width: 180px;
    height: 820px;
    border: 2px solid #1e2d42;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.zoom-box {
    width: 520px;
    height: 820px;
    border: 2px solid var(--accent-cyan);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #000;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

canvas {
    display: block;
}

.ranking-panel {
    min-height: 500px;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 750px;
    overflow-y: auto;
}

.ranking-list .placeholder {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 20px;
}

.rank-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #080b11;
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.rank-item.top-1 {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 183, 0, 0.2);
}
.rank-item.top-2 { border-color: #c0c0c0; color: #e0e0e0; }
.rank-item.top-3 { border-color: #cd7f32; color: #e0a080; }
