.shuffle-stack { display: grid; gap: 1.5rem; }
.shuffle-columns { display: grid; gap: 1.5rem; align-items: start; }
.shuffle-results { display: grid; gap: 1rem; }
.shuffle-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }
.shuffle-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.shuffle-team-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .65rem; }
.shuffle-team-fixed { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; font-size: .75rem; font-weight: 600; }
.shuffle-team-fixed input { width: 1rem; height: 1rem; accent-color: #2563eb; }
.shuffle-team-fixed:has(input:disabled) { cursor: not-allowed; opacity: .55; }
.shuffle-url { display: flex; flex-wrap: wrap; gap: .5rem; }
.shuffle-url input { flex: 1 1 16rem; min-width: 0; }
.shuffle-rank-mode { padding: 0; border: 0; min-width: 0; }
.shuffle-segmented { display: inline-flex; flex-wrap: wrap; gap: .35rem; padding: .25rem; border: 1px solid #cbd5e1; border-radius: .65rem; background: #f8fafc; }
.shuffle-segmented label { cursor: pointer; }
.shuffle-segmented input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.shuffle-segmented span { display: block; padding: .45rem .8rem; border-radius: .45rem; color: #475569; font-size: .875rem; font-weight: 600; }
.shuffle-segmented input:checked + span { color: #fff; background: #2563eb; }
.shuffle-segmented input:focus-visible + span { outline: 2px solid #1d4ed8; outline-offset: 2px; }
.shuffle-rank-mode:disabled .shuffle-segmented { opacity: .55; }
.shuffle-rank-mode:disabled .shuffle-segmented label { cursor: not-allowed; }
.shuffle-meta { display: grid; gap: .5rem; margin-bottom: 1rem; font-size: .875rem; color: #475569; }
.shuffle-id { overflow-wrap: anywhere; font-family: monospace; }
.shuffle-status { margin-top: 1rem; white-space: pre-line; overflow-wrap: anywhere; }
.shuffle-status[data-error="true"] { color: #b91c1c; }
.shuffle-list { max-height: 24rem; overflow-y: auto; }
.shuffle-person { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.shuffle-person-info { min-width: 0; overflow-wrap: anywhere; }
.shuffle-person-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.shuffle-rank-badge { display: inline-flex; align-items: center; gap: .3rem; }
.shuffle-rank-icon { width: 1.35rem; height: 1.35rem; flex: 0 0 auto; object-fit: contain; }
.shuffle-rank-icon-radiant { padding: .08rem; border-radius: 999px; background: #334155; filter: drop-shadow(0 1px 1px rgb(15 23 42 / .35)); }
.shuffle-person button { flex-shrink: 0; }
.shuffle-empty { padding: 1.25rem; color: #64748b; font-size: .875rem; }
.shuffle-register { max-width: 72rem; margin-inline: auto; }
.shuffle-register-form-panel { width: 100%; max-width: 34rem; margin-inline: auto; }
.shuffle-register-summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; cursor: pointer; list-style: none; }
.shuffle-register-summary::-webkit-details-marker { display: none; }
.shuffle-register-editor[data-collapsible="false"] > .shuffle-register-summary { cursor: default; }
.shuffle-register-editor[data-collapsible="false"] > .shuffle-register-summary .badge { opacity: .7; }
.shuffle-admin-dialog { width: min(34rem, calc(100% - 2rem)); max-width: 34rem; padding: 0; border: 0; border-radius: .75rem; }
.shuffle-admin-dialog::backdrop { background: rgb(15 23 42 / .5); }
.shuffle-viewer-person { align-items: flex-start; }
.shuffle-map-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.shuffle-map-option { position: relative; min-height: 4.4rem; overflow: hidden; border: 2px solid #cbd5e1; border-radius: .6rem; color: #fff; background-position: center; background-size: cover; text-shadow: 0 1px 3px #000; font-weight: 700; text-transform: capitalize; }
.shuffle-map-option::before { content: ''; position: absolute; inset: 0; background: rgb(15 23 42 / .52); }
.shuffle-map-option > span { position: relative; z-index: 1; }
.shuffle-map-option:hover:not(:disabled) { border-color: #60a5fa; }
.shuffle-map-option[aria-pressed="true"] { border-color: #22c55e; box-shadow: 0 0 0 2px rgb(34 197 94 / .3); }
.shuffle-map-option[aria-pressed="true"]::before { background: rgb(21 128 61 / .5); }
.shuffle-map-option:disabled { cursor: not-allowed; opacity: .65; }
.shuffle-map-roulette { display: grid; justify-items: center; gap: 1rem; padding-top: .5rem; text-align: center; }
.shuffle-map-slot-window { position: relative; width: min(100%, 18rem); height: 5rem; overflow: hidden; border: 2px solid #334155; border-radius: .6rem; background: #fff; }
.shuffle-map-slot-window::before, .shuffle-map-slot-window::after { content: ''; position: absolute; z-index: 2; right: 0; left: 0; height: 1.4rem; pointer-events: none; }
.shuffle-map-slot-window::before { top: 0; background: linear-gradient(#fff, transparent); }
.shuffle-map-slot-window::after { bottom: 0; background: linear-gradient(transparent, #fff); }
.shuffle-map-slot-strip { display: flex; flex-direction: column; }
.shuffle-map-slot-item { display: flex; flex: 0 0 5rem; align-items: center; justify-content: center; color: #fff; background-position: center; background-size: cover; font-family: "Squada One", sans-serif; font-size: 2rem; letter-spacing: .05em; text-shadow: 0 1px 4px #000; text-transform: capitalize; }
.shuffle-fields { display: grid; gap: 1rem; padding: 0; border: 0; min-width: 0; }
.shuffle-check { display: flex; align-items: center; gap: .75rem; }
.shuffle-check input { flex: 0 0 auto; }
.shuffle-consent { align-items: flex-start; line-height: 1.5; }
.shuffle-riot-id { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(5.5rem, .45fr); align-items: center; gap: .5rem; }
.shuffle-riot-id label { min-width: 0; }
.shuffle-riot-separator { color: #64748b; font-weight: 700; }
.shuffle-rank-result { padding: .8rem 1rem; border: 1px solid #bfdbfe; border-radius: .55rem; color: #1e3a8a; background: #eff6ff; font-weight: 600; }
.shuffle-rank-result[data-error="true"] { border-color: #fecaca; color: #991b1b; background: #fef2f2; }
.shuffle-count { width: 7rem; }
.shuffle-help { margin-top: .75rem; }
.shuffle-block { margin-bottom: 1.5rem; }
[hidden] { display: none !important; }
@media (min-width: 900px) {
	.shuffle-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.shuffle-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
	.shuffle-team-controls { width: 100%; justify-content: space-between; }
	.shuffle-register-summary { align-items: flex-start; }
	.shuffle-register-summary .badge { flex: 0 1 auto; text-align: center; white-space: normal; }
}
