/* 기본 스타일과 엑셀 위장 UI */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #f3f3f3;
    overflow: hidden;
}

.excel-container {
    background: white;
    border: 1px solid #d1d5db;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.excel-toolbar {
    background: #f8f9fa;
    border-bottom: 1px solid #d1d5db;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.excel-toolbar button {
    background: none;
    border: 1px solid transparent;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
}

.excel-toolbar button:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.excel-headers {
    background: #f3f4f6;
    border-bottom: 1px solid #d1d5db;
    display: flex;
    height: 20px;
}

.excel-row-header {
    width: 40px;
    background: #f3f4f6;
    border-right: 1px solid #d1d5db;
    font-size: 11px;
    text-align: center;
    line-height: 20px;
    color: #6b7280;
}

.excel-column-header {
    min-width: 80px;
    border-right: 1px solid #d1d5db;
    font-size: 11px;
    text-align: center;
    line-height: 20px;
    color: #6b7280;
    background: #f3f4f6;
}

.excel-grid {
    flex: 1;
    overflow: auto;
    background: white;
}

.excel-row {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
}

.excel-cell {
    min-width: 80px;
    height: 20px;
    border-right: 1px solid #e5e7eb;
    padding: 2px 4px;
    font-size: 11px;
    line-height: 16px;
    cursor: cell;
}

.excel-cell:hover {
    background: #f9fafb;
}

.excel-cell.selected {
    background: #3b82f6;
    color: white;
}

/* 게임 오버레이 */
.game-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 750px;
    z-index: 1000;
    opacity: 0.7;
}

.game-overlay.hidden {
    display: none;
    visibility: hidden;
}

/* 투명도 조절 컨트롤 */
.opacity-control {
    position: absolute;
    top: 10px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.05);
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 12px;
    z-index: 1001;
}

.opacity-label {
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}

.opacity-slider-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.opacity-slider {
    width: 80px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.opacity-slider::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.opacity-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.opacity-value {
    color: #374151;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
    font-size: 11px;
}

.game-content {
    margin-top: 0;
}

/* 빠른 숨김 기능 */
.quick-hide {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    z-index: 1001;
}

.quick-hide:hover {
    background: #dc2626;
}
