body {
    font-family: system-ui, sans-serif;
    margin: 16px;
}

h2 {
    margin: 0 0 6px 0;
    user-select: none;
}

.small {
    font-size: 14px;
    opacity: 0.75;
    margin-bottom: 12px;
    user-select: none;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.party-btn {
    padding: 18px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    text-align: left;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.party-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
}

.party-sub {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 6px;
    line-height: 1.2;
}

button:disabled {
    opacity: 0.55;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.88);
    color: white;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    display: none;
}

/* shared modal */
.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
}

.modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100vw - 24px));
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: none;
}

.row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

input {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
}

pre {
    background: #f6f6f6;
    padding: 10px;
    border-radius: 12px;
    overflow: auto;
}

.hint {
    font-size: 13px;
    opacity: 0.75;
}

.modal h3 {
    margin: 0 0 8px 0;
}

.modal .grid button {
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    font-size: 18px;
}