body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Noto Sans KR', 'Noto Color Emoji', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.container {
    background: white;
    padding: 14px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: auto;
    max-width: 90%;
    margin: 20px;
}

h1 {
    margin-top: 0;
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
    text-align: center;
}

.category {
    border-radius: 8px;
    width: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 8px 5px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.9);
}

.category-header:hover {
    background: linear-gradient(135deg, #3a61ff 0%, #891cff 100%);
}

.category-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.category-content {
    display: flex;
    flex-direction: column;
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
}

.category-content.collapsed {
    max-height: 0;
    margin-top: 0;
}

.set-button {
    background-color: rgba(255, 255, 255, 0);
    border: 0;
    border-radius: 0;
    color: rgb(0, 0, 0);
    cursor: pointer;
    display: block;
    font-size: 14px;
    padding: 1px 0 3px 6px;
    text-align: left;
    text-decoration: none;
}

.set-button:hover {
    background: rgba(255, 234, 0, 0.7);
    border-color: transparent;
    border-radius: 8px;
}

@media (orientation: portrait) and (pointer: coarse) and (max-width: 1500px) {
    .container {
        width: 95vw !important;
        max-width: 95vw !important;
        padding: 20px !important;
        margin: 10px !important;
    }

    h1 {
        font-size: 36px !important;
        margin-bottom: 40px !important;
    }

    .category {
        margin-bottom: 25px !important;
    }

    .category-header {
        padding: 8px 12px !important;
    }

    .category-header h2 {
        font-size: 24px !important;
    }

    .arrow {
        font-size: 20px !important;
    }

    .set-button {
        font-size: 20px !important;
        padding: 6px 0 8px 10px !important;
    }
}

@media (orientation: landscape) {
    .container {
        max-height: none !important;
        height: auto !important;
    }
}