.dp-players{min-width:0}.dp-player-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}.dp-player-title h3{font-size:17px;margin:0}.dp-player-list{display:grid;gap:10px}.dp-player-row{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #dbe6df;border-radius:15px;background:#fff;min-width:0}.dp-player-avatar{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:50%;background:#e5f1eb;color:#235f48;font:750 18px system-ui;overflow:hidden}.dp-player-avatar img{width:100%;height:100%;object-fit:cover}.dp-player-info{flex:1;min-width:0}.dp-player-edit{padding:0;border:0;background:transparent;color:inherit;text-align:left;min-height:44px;cursor:pointer;font:inherit}.dp-player-edit strong::after{content:" ✎";font-size:12px;color:#5d7466}.dp-player-edit:focus-visible{outline:3px solid #bd861f;outline-offset:4px;border-radius:6px}.dp-player-info strong,.dp-player-info small{display:block;overflow-wrap:anywhere}.dp-player-info small{font-size:12px;color:#596e62;margin-top:3px}.dp-player-controls{display:flex;gap:4px;flex-shrink:0}.dp-player-controls button{width:44px;min-height:44px;padding:4px}.dp-add-player{width:100%;min-height:48px;margin-top:10px;border:1px dashed #40866b;background:#f1f8f4;color:#205b43;border-radius:14px;font-weight:700}.dp-player-empty{padding:18px;border-radius:14px;border:1px dashed #b8cebf;color:#5d7466;text-align:center;font-size:14px}.dp-player-help{font-size:12px;color:#5d7466;line-height:1.5;margin:8px 0}.dp-player-dialog{box-sizing:border-box;position:fixed;inset:0;width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;border-radius:0;background:#f4f8f5;color:#203c34;font:15px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.dp-player-dialog::backdrop{background:#163b3380}.dp-player-shell{height:100%;display:flex;flex-direction:column;max-width:960px;margin:auto}.dp-player-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;padding:14px max(16px,env(safe-area-inset-right)) 14px max(16px,env(safe-area-inset-left));background:#fff;border-bottom:1px solid #dce7df}.dp-player-head h2{font-size:20px;line-height:1.3;margin:0}.dp-player-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 16px max(20px,env(safe-area-inset-bottom))}.dp-player-body h3{font-size:16px;margin:20px 0 10px}.dp-player-body p{line-height:1.5}.dp-player-dialog button,.dp-player-dialog input,.dp-player-dialog select{font:inherit;box-sizing:border-box}.dp-player-dialog button{min-height:46px;padding:10px 14px;border-radius:12px;border:1px solid #c5d8ca;color:#214e3c;background:#fff;cursor:pointer}.dp-player-dialog button.primary{background:#24694f;color:#fff;border-color:#24694f}.dp-player-dialog button:disabled{opacity:.55;cursor:default}.dp-player-dialog button:focus-visible,.dp-player-dialog input:focus-visible,.dp-player-dialog select:focus-visible{outline:3px solid #c58a22;outline-offset:3px}.dp-name-form{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.dp-name-form label{display:grid;gap:6px;flex:1 1 220px;min-width:0;font-weight:650}.dp-player-dialog input,.dp-player-dialog select{width:100%;min-height:48px;border:1px solid #c5d8ca;border-radius:12px;background:#fff;color:#203c34;padding:10px 12px;max-width:100%}.dp-player-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dp-player-tile{display:flex;align-items:center;gap:12px;text-align:left;min-height:86px!important;min-width:0}.dp-player-tile .dp-player-avatar{flex-basis:48px;width:48px;height:48px}.dp-player-tile strong,.dp-player-tile small{display:block;overflow-wrap:anywhere}.dp-player-tile small{font-size:12px;line-height:1.4;color:#587363;margin-top:4px}.dp-player-tile.is-selected{background:#e8f5ee;border-color:#40866b}.dp-player-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.dp-player-actions>*{flex:1 1 180px}.dp-player-error{color:#a32732;min-height:22px;margin:10px 0;font-size:14px}.dp-player-notice{border-radius:12px;padding:12px;background:#e7f1eb;font-size:14px}.dp-player-scanner{position:relative;max-width:540px;margin:0 auto 16px;background:#163b33;border-radius:16px;overflow:hidden;aspect-ratio:1.3}.dp-player-scanner video{width:100%;height:100%;object-fit:cover}.dp-player-scanner::after{content:"";position:absolute;inset:18%;border:3px solid #fff9;border-radius:16px;pointer-events:none}.dp-player-qr{text-align:center;padding:12px;background:#fff;border-radius:16px}.dp-player-qr svg,.dp-player-qr canvas{display:block;width:min(100%,320px);height:auto;margin:0 auto}.dp-player-name{margin:12px 0;font-size:20px;font-weight:700}.dp-player-mini{font-size:13px;color:#5b7263}.dp-player-share{margin-top:8px}.dp-player-bot-levels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dp-player-bot-custom{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dp-player-bot-custom label{display:grid;gap:7px;font-weight:650}.dp-player-plus{color:#7043a2}.dp-player-dialog [hidden],.dp-players [hidden]{display:none!important}@media(min-width:700px){.dp-player-body{padding:24px}.dp-player-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}.dp-player-bot-levels{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:370px){.dp-player-body{padding:12px}.dp-player-tiles{grid-template-columns:1fr}.dp-player-controls{gap:0}.dp-player-controls button{width:44px;min-width:44px}.dp-player-avatar{flex-basis:36px;width:36px;height:36px}.dp-player-row{gap:8px;padding:10px}.dp-player-head h2{font-size:18px}}
.dp-player-body [data-player-profiles]{margin:16px 0}

/* Reordering stays local to setup; it never changes a started game's seats. */
.dp-player-handle{position:relative;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:1px dashed #93b7a2;border-radius:12px;background:#edf7f1;color:#245b43;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.dp-player-handle:focus-visible{outline:3px solid #c58a22;outline-offset:3px}
.dp-player-handle .dp-player-avatar{width:34px;height:34px;flex-basis:34px;margin:auto;font-size:16px;pointer-events:none}
.dp-player-grip{position:absolute;right:-2px;bottom:-3px;display:grid;place-items:center;width:19px;height:19px;border:1px solid #bdd5c8;border-radius:6px;background:#fff;color:#28684c;font-size:17px;line-height:1;pointer-events:none}
.dp-player-controls button{min-width:44px;min-height:44px;touch-action:manipulation}
.dp-player-controls [data-player-action=up],.dp-player-controls [data-player-action=down]{background:#eef5fd;border-color:#ccdaed;color:#245f91}
.dp-player-controls [data-player-action=remove]{background:#fff0f1;border-color:#edcfd3;color:#9c3949}
.dp-player-row.is-dragging{opacity:.25;border-style:dashed;border-color:#3a8864}
.dp-player-drag-ghost{box-sizing:border-box;margin:0;max-width:none;box-shadow:0 14px 36px #163b3340;border-color:#3a8864;opacity:.97}
.dp-player-dragging,.dp-player-dragging .dp-player-handle{cursor:grabbing;user-select:none;-webkit-user-select:none}
.dp-player-order-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:540px){.dp-player-row{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px 12px}.dp-player-controls{grid-column:2;gap:6px;justify-content:flex-start}.dp-player-info{width:100%}}
