/* snake/index.html 전용 스타일 (클래식 레트로 그린스크린 톤) */
.snk-page {
    margin: 0;
    min-height: 100vh;
    background: #001100;
    color: #33ff33;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    display: flex;
    justify-content: center;
    padding: 24px 16px 40px;
    box-sizing: border-box;
}
.snk-page *, .snk-page *::before, .snk-page *::after {
    box-sizing: border-box;
}

.snk-wrap {
    width: 100%;
    max-width: 640px;
}

.snk-back {
    display: inline-block;
    color: #1f8a1f;
    text-decoration: none;
    font-size: 10px;
    margin-bottom: 16px;
}
.snk-back:hover { color: #33ff33; }

.snk-title {
    font-size: 28px;
    letter-spacing: 4px;
    text-align: center;
    color: #33ff33;
    text-shadow: 0 0 8px rgba(51, 255, 51, 0.7);
    margin: 0 0 20px;
}

.snk-layout {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.snk-board-area {
    position: relative;
    flex: 0 0 auto;
}

.snk-board {
    display: block;
    background: #000900;
    border: 4px solid #1f8a1f;
    box-shadow: 0 0 0 4px #000900, 0 0 24px rgba(51, 255, 51, 0.35);
    touch-action: none;
}

.snk-touch-controls {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    user-select: none;
    -webkit-user-select: none;
}

.snk-touch-row {
    display: flex;
    gap: 8px;
}

.snk-touch-btn {
    width: 56px;
    height: 56px;
    font-family: inherit;
    font-size: 20px;
    color: #33ff33;
    background: #000900;
    border: 3px solid #1f8a1f;
    touch-action: none;
    -webkit-touch-callout: none;
    cursor: pointer;
}
.snk-touch-btn:active {
    background: #0a2a0a;
    border-color: #7fff7f;
}

.snk-overlay {
    position: absolute;
    inset: 4px;
    background: rgba(0, 17, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
}
.snk-hidden { display: none; }

.snk-overlay-box {
    text-align: center;
    padding: 16px;
}

.snk-overlay-title {
    font-size: 20px;
    color: #33ff33;
    text-shadow: 0 0 8px rgba(51, 255, 51, 0.7);
    margin: 0 0 14px;
}

.snk-overlay-text {
    font-size: 11px;
    color: #7fff7f;
    line-height: 1.8;
    margin: 0 0 16px;
}

.snk-btn {
    display: inline-block;
    border: 2px solid #33ff33;
    border-radius: 2px;
    background: #001a00;
    color: #33ff33;
    font-family: inherit;
    font-size: 11px;
    padding: 10px 18px;
    cursor: pointer;
}
.snk-btn:hover { background: #0a2a0a; }

.snk-name-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.snk-name-label {
    font-size: 9px;
    color: #7fff7f;
}

.snk-name-input {
    font-family: inherit;
    font-size: 11px;
    padding: 8px 10px;
    background: #000900;
    border: 2px solid #1f8a1f;
    color: #33ff33;
    border-radius: 2px;
    text-align: center;
    width: 160px;
}

.snk-save-msg {
    font-size: 9px;
    min-height: 16px;
    color: #7fff7f;
}

.snk-side {
    flex: 0 0 auto;
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.snk-panel {
    background: #000900;
    border: 2px solid #1f8a1f;
    border-radius: 2px;
    padding: 10px 12px;
}

.snk-panel-label {
    font-size: 9px;
    color: #7fff7f;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.snk-panel-value {
    font-size: 16px;
    color: #33ff33;
}

.snk-ranking-list {
    margin: 0;
    padding: 0 0 0 18px;
    font-size: 10px;
    line-height: 1.9;
    color: #7fff7f;
}
.snk-ranking-empty { list-style: none; margin-left: -18px; color: #1f8a1f; }

.snk-ranking-more {
    display: block;
    margin-top: 8px;
    font-size: 9px;
    color: #33ff33;
    text-decoration: none;
}
.snk-ranking-more:hover { text-decoration: underline; }

.snk-controls-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 10px;
    line-height: 2;
    color: #7fff7f;
}

.snk-key {
    display: inline-block;
    background: #1f8a1f;
    color: #001100;
    border-radius: 2px;
    padding: 1px 6px;
    font-size: 9px;
    margin-right: 3px;
}

@media (max-width: 480px) {
    .snk-board { width: 88vw; height: 88vw; max-width: 320px; max-height: 320px; }
    .snk-title { font-size: 20px; }
    .snk-side { width: 100%; max-width: 320px; }
}
