:root {
  --pink: #ff69b4;
  --bubble: #ff85c1;
  --pastel: #ffd1e8;
  --lavender: #dda0ff;
  --turquoise: #8cf5ef;
  --cream: #fff9fc;
  --plum: #642653;
  --plum-soft: #8b4a78;
  --gold: #ffd86b;
  --soft: #ff85c1;
  --hard: #ff6b6b;
  --extreme: #a64dff;
  --radius: 22px;
  --shadow: 0 14px 40px rgba(100, 38, 83, .2);
  --slot-h: clamp(230px, 36vh, 360px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--plum);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at 10% 8%, rgba(221, 160, 255, .45), transparent 22rem),
    radial-gradient(circle at 92% 20%, rgba(140, 245, 239, .35), transparent 20rem),
    radial-gradient(circle at 50% 100%, rgba(255, 105, 180, .35), transparent 26rem),
    linear-gradient(160deg, #fff9fc 0%, #ffd1e8 60%, #ffe8f4 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }

.bg-decor { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.float { position: absolute; color: rgba(255, 105, 180, .35); font-size: 2.4rem; animation: floaty 7s ease-in-out infinite alternate; }
.s1 { left: 6%; top: 12%; } .s2 { right: 8%; top: 22%; animation-delay: -2s; color: rgba(221,160,255,.5); }
.s3 { left: 12%; top: 56%; animation-delay: -4s; color: rgba(140,245,239,.7); } .s4 { right: 14%; top: 66%; animation-delay: -1s; }
.s5 { left: 40%; top: 88%; animation-delay: -3s; color: rgba(221,160,255,.5); } .s6 { right: 38%; top: 4%; animation-delay: -5s; }
@keyframes floaty { to { transform: translate3d(0, -18px, 0) rotate(10deg); } }

/* ── gate ── */
.gate { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px;
  background: linear-gradient(160deg, #ff85c1, #dda0ff); transition: opacity .5s, visibility .5s; }
.is-unlocked .gate { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-card { width: min(340px, 100%); padding: 26px 22px 22px; text-align: center; background: var(--cream); border-radius: 32px;
  box-shadow: var(--shadow); border: 3px solid #fff; }
.gate-card.is-wrong { animation: shake .45s; }
.gate-card.is-right { animation: pop .5s; }
.gate-badge { font-size: 3rem; }
.kicker { font-size: .72rem; letter-spacing: .14em; font-weight: 800; color: var(--pink); margin-top: 4px; }
.gate h1 { font-size: 1.55rem; margin: 4px 0 14px; }
.gate-dots { display: flex; justify-content: center; gap: 12px; margin-bottom: 10px; }
.gate-dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--pink); transition: .15s; }
.gate-dots span.is-filled { background: var(--pink); transform: scale(1.15); }
.gate-message { min-height: 1.4em; margin-bottom: 12px; font-weight: 700; color: var(--plum-soft); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.keypad button { height: 58px; border: 0; border-radius: 18px; font-size: 1.5rem; font-weight: 800; color: var(--plum);
  background: linear-gradient(#fff, var(--pastel)); box-shadow: 0 4px 0 #f3a6cf; }
.keypad button:active { transform: translateY(3px); box-shadow: 0 1px 0 #f3a6cf; }
.keypad-heart { display: grid; place-items: center; font-size: 1.6rem; color: var(--pink); }
@keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
@keyframes pop { 50% { transform: scale(1.05); } }

/* ── layout ── */
.app { position: relative; z-index: 1; width: min(560px, 100%); margin: 0 auto; padding: 14px 16px calc(24px + var(--safe-b)); }
.screen { display: flex; flex-direction: column; gap: 14px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; }
.brand { font-size: 1.5rem; font-weight: 900; text-align: center; flex: 1; letter-spacing: .01em; }
.brand em { font-style: normal; color: var(--pink); }
.icon-btn, .heart-btn { width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 16px;
  background: rgba(255, 255, 255, .8); box-shadow: 0 3px 0 rgba(255, 105, 180, .35); font-size: 1.3rem; }
.heart-btn { background: transparent; box-shadow: none; }
.icon-btn:active { transform: translateY(2px); }
.lead { text-align: center; color: var(--plum-soft); font-weight: 600; }
.hint { text-align: center; color: var(--plum-soft); font-size: .9rem; min-height: 1.2em; }
.footnote { text-align: center; font-size: .8rem; color: var(--plum-soft); opacity: .85; }

/* ── buttons ── */
.btn { border: 0; border-radius: 20px; padding: 12px 18px; font-weight: 800; font-size: 1rem; color: #fff;
  background: var(--pink); box-shadow: 0 5px 0 #d94b94; min-height: 48px; transition: transform .08s, box-shadow .08s, filter .2s; }
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 #d94b94; }
.btn:disabled { filter: grayscale(.5); opacity: .55; cursor: not-allowed; }
.btn-ghost { color: var(--plum); background: #fff; box-shadow: 0 5px 0 #f1b3d6; }
.btn-ghost:active:not(:disabled) { box-shadow: 0 1px 0 #f1b3d6; }
.btn-done { background: linear-gradient(#52d6a4, #2fbf8a); box-shadow: 0 5px 0 #1f9a6d; }
.btn-skip { background: linear-gradient(#b585ff, #9a66f2); box-shadow: 0 5px 0 #7a47d1; }
.btn-big { font-size: 1.5rem; min-height: 68px; border-radius: 26px; letter-spacing: .04em; }
.btn-play, .btn-spin { background: linear-gradient(#ff9bcf, #ff5fae); box-shadow: 0 7px 0 #d23c8c, 0 16px 30px rgba(255, 105, 180, .45); }
.btn-play:active:not(:disabled), .btn-spin:active:not(:disabled) { box-shadow: 0 2px 0 #d23c8c; transform: translateY(5px); }
.btn-sm { min-height: 38px; padding: 6px 12px; font-size: .85rem; border-radius: 14px; box-shadow: 0 3px 0 rgba(0,0,0,.15); }
.add-player { align-self: center; }

/* ── players ── */
.player-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.player-card { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 14px; border-radius: 24px; color: var(--plum);
  background: linear-gradient(100deg, var(--pc), #fff 160%); box-shadow: var(--shadow); border: 2px solid rgba(255,255,255,.8); }
.player-card .avatar { width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.9rem; background: rgba(255,255,255,.75); border-radius: 50%; }
.player-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.player-info strong { font-size: 1.2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-info small { opacity: .8; }
.empty { text-align: center; padding: 22px; border: 3px dashed var(--bubble); border-radius: 24px; color: var(--plum-soft); font-weight: 700; }

/* ── level + type pickers ── */
.level-pick, .type-pick, .seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.level-btn, .type-btn, .seg-btn { border: 3px solid transparent; border-radius: 18px; padding: 10px 6px; font-weight: 800; background: rgba(255,255,255,.75);
  box-shadow: 0 3px 0 rgba(100, 38, 83, .12); min-height: 48px; }
.level-btn.level-soft { --c: var(--soft); } .level-btn.level-hard { --c: var(--hard); } .level-btn.level-extreme { --c: var(--extreme); }
.level-btn.is-active { background: var(--c); color: #fff; border-color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.18), 0 0 18px var(--c); }
.type-btn { font-size: 1.1rem; min-height: 54px; }
.type-btn.is-active { background: linear-gradient(#ff9bcf, #ff5fae); color: #fff; border-color: #fff; box-shadow: 0 4px 0 #d23c8c; }
.seg-btn.is-active { background: var(--pink); color: #fff; }
.type-btn:disabled { opacity: .6; }

/* ── turn header ── */
.turn { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; justify-content: center; }
.turn-avatar { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; font-size: 1.6rem; background: var(--pc, var(--pink)); border: 3px solid #fff; box-shadow: var(--shadow); }
.turn-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.turn-label { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--plum-soft); font-weight: 700; }
.turn strong { font-size: 1.3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── slot machine (single window) ── */
.machine { position: relative; padding: 38px 14px 18px; border-radius: 34px; border: 4px solid #fff;
  background: linear-gradient(160deg, #ff9fcf 0%, #ff5fae 55%, #e04a9a 100%);
  box-shadow: 0 18px 44px rgba(214, 51, 140, .45), inset 0 4px 10px rgba(255,255,255,.6), inset 0 -8px 16px rgba(160, 20, 100, .25); }
.machine[data-level="hard"] { background: linear-gradient(160deg, #ff9a8a 0%, #ff5b5b 55%, #d93a4a 100%); }
.machine[data-level="extreme"] { background: linear-gradient(160deg, #cfa0ff 0%, #a64dff 55%, #7b2fd1 100%); }
.machine-lights { position: absolute; top: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 12px; }
.machine-lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: blink 1.6s infinite; }
.machine-lights i:nth-child(odd) { animation-delay: -.8s; }
.machine.is-spinning .machine-lights i { animation-duration: .35s; }
.machine-label { text-align: center; color: #fff; font-weight: 900; letter-spacing: .18em; font-size: .85rem; margin-bottom: 10px; text-shadow: 0 2px 0 rgba(0,0,0,.2); }
.machine-label b { color: var(--gold); }
@keyframes blink { 50% { opacity: .25; transform: scale(.8); } }

.slot-window { position: relative; height: var(--slot-h); overflow: hidden; border-radius: 22px; background: var(--cream);
  border: 4px solid #fff; box-shadow: inset 0 6px 16px rgba(100, 38, 83, .3), 0 0 0 4px rgba(255,255,255,.35); }
.slot-strip { will-change: transform; transform: translate3d(0, 0, 0); backface-visibility: hidden; }
.slot-card { height: var(--slot-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 16px; text-align: center; background: linear-gradient(#fff 0%, #ffeaf5 100%); border-bottom: 2px dashed rgba(255, 105, 180, .3); }
.slot-card-icon { font-size: 2.6rem; }
.slot-card.is-decoy { opacity: .85; }
.slot-card.is-decoy .slot-card-text { color: var(--plum-soft); }
.slot-card.is-final { overflow-y: auto; justify-content: safe center; }
.slot-card-badge { padding: 5px 16px; border-radius: 999px; font-weight: 900; letter-spacing: .14em; font-size: .85rem; color: #fff; background: var(--pink); box-shadow: 0 3px 0 #d94b94; flex: none; }
.slot-card.type-dare .slot-card-badge { background: #ff7a45; box-shadow: 0 3px 0 #d4561f; }
.slot-card-text { font-weight: 800; line-height: 1.28; color: var(--plum); overflow-wrap: anywhere; hyphens: auto; }
.size-xl { font-size: 1.7rem; } .size-l { font-size: 1.45rem; } .size-m { font-size: 1.25rem; } .size-s { font-size: 1.1rem; } .size-xs { font-size: .98rem; }
.slot-shade { position: absolute; left: 0; right: 0; height: 22%; pointer-events: none; z-index: 2; }
.slot-shade-top { top: 0; background: linear-gradient(rgba(100, 38, 83, .10), transparent); }
.slot-shade-bottom { bottom: 0; background: linear-gradient(transparent, rgba(100, 38, 83, .08)); }
.machine.is-spinning .slot-card { filter: blur(.6px); }
.machine.just-revealed .slot-window { animation: glow 1.1s ease-out; }
@keyframes glow { 0% { box-shadow: inset 0 6px 16px rgba(100,38,83,.3), 0 0 0 4px rgba(255,255,255,.35); } 40% { box-shadow: inset 0 6px 16px rgba(100,38,83,.3), 0 0 0 4px #fff, 0 0 40px 10px var(--gold); } }
.remaining { text-align: center; margin-top: 10px; color: #fff; font-weight: 800; font-size: .85rem; min-height: 1.1em; text-shadow: 0 1px 0 rgba(0,0,0,.2); }

.burst-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.burst { position: absolute; left: 50%; bottom: 20%; font-size: 1.5rem; animation: burst 1.3s ease-out forwards; }
@keyframes burst { 0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.4); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)) scale(1.2); } }

.actions { display: flex; flex-direction: column; gap: 12px; }
.actions-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.actions-row .btn { min-height: 62px; font-size: 1.1rem; }

/* ── modals ── */
.overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 14px; background: rgba(100, 38, 83, .55); backdrop-filter: blur(3px); animation: fade .2s; }
.modal { width: min(460px, 100%); max-height: calc(100vh - 28px); display: flex; flex-direction: column; border-radius: 28px; background: var(--cream); border: 3px solid #fff; box-shadow: var(--shadow); }
.modal-wide { width: min(720px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 16px 8px 20px; }
.modal-head h2 { font-size: 1.25rem; }
.modal-body { padding: 8px 20px 20px; overflow-y: auto; }
@keyframes fade { from { opacity: 0; } }
.confirm { display: flex; flex-direction: column; gap: 16px; }
.confirm p { white-space: pre-line; line-height: 1.45; }
.row { display: flex; gap: 10px; align-items: flex-end; }
.row > * { flex: 1; }
.row.wrap { flex-wrap: wrap; }
.settings, .form { display: flex; flex-direction: column; gap: 16px; }
.field, .form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.field small { color: var(--plum-soft); font-weight: 500; }
input[type="text"], input[type="search"], select, textarea { width: 100%; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--pastel); background: #fff; min-height: 46px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { width: 44px; height: 44px; border-radius: 14px; border: 3px solid transparent; background: #fff; font-size: 1.3rem; }
.chip-color { border-radius: 50%; }
.gender-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gender-btn { border: 3px solid transparent; border-radius: 18px; min-height: 54px; font-weight: 800; font-size: 1.05rem; background: #fff; box-shadow: 0 3px 0 rgba(100, 38, 83, .12); }
.gender-woman.is-active { background: #ff69b4; color: #fff; border-color: #fff; box-shadow: 0 4px 0 #d94b94, 0 0 14px #ff69b4; }
.gender-man.is-active { background: #4da3ff; color: #fff; border-color: #fff; box-shadow: 0 4px 0 #2a7bd6, 0 0 14px #4da3ff; }
.chip-text { width: auto; padding: 0 12px; font-size: .85rem; font-weight: 700; }
.chip.is-active { border-color: var(--plum); box-shadow: 0 0 0 3px #fff, 0 0 12px var(--pink); background: var(--pastel); }
.chip-color.is-active { background: inherit; }
.error { color: #c0245f; font-weight: 700; min-height: 1em; }
.switch { position: relative; flex-direction: row !important; align-items: center; gap: 10px; }
.switch > span:first-child { flex: 1; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; z-index: 1; }
.switch-state { min-width: 3.2em; text-align: right; font-weight: 900; font-size: .85rem; letter-spacing: .06em; color: #9b7a8e; }
.switch-state.is-on { color: var(--pink); }
.switch-track { display: inline-block; width: 56px; height: 32px; border-radius: 999px; background: #d9c2d0; border: 2px solid #c7a9bb; position: relative; transition: .2s; flex: none; }
.switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 2px 4px rgba(0,0,0,.25); }
.switch input:checked ~ .switch-track { background: var(--pink); border-color: #d94b94; }
.switch input:checked ~ .switch-track::after { transform: translateX(24px); }
.switch input:focus-visible ~ .switch-track { outline: 3px solid var(--turquoise); outline-offset: 2px; }

/* ── toast ── */
.toast-root { position: fixed; z-index: 400; left: 0; right: 0; bottom: calc(14px + var(--safe-b)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 14px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; color: #fff; font-weight: 700; background: var(--plum); box-shadow: var(--shadow); animation: fade .2s; max-width: 460px; }
.toast-action { border: 0; border-radius: 12px; padding: 6px 12px; background: var(--pink); color: #fff; font-weight: 800; }

/* ── developer mode ── */
.dev { display: flex; flex-direction: column; gap: 12px; }
.dev-tabs { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); }
.dev-tabs .seg-btn { padding: 8px 2px; font-size: .85rem; }
.dev-filters { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; }
.dev-filters input { grid-column: 1 / -1; }
.dev-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dev-item { padding: 10px 12px; border-radius: 16px; background: #fff; border: 2px solid var(--pastel); display: flex; flex-direction: column; gap: 6px; }
.dev-item.is-off { opacity: .55; }
.dev-item p { font-size: .95rem; line-height: 1.35; }
.dev-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dev-meta code { font-size: .75rem; color: var(--plum-soft); }
.tag { padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; background: var(--pastel); }
.tag-soft { background: var(--soft); color: #fff; } .tag-hard { background: var(--hard); color: #fff; } .tag-extreme { background: var(--extreme); color: #fff; }
.tag-custom { background: var(--turquoise); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.stat { padding: 10px; border-radius: 16px; background: #fff; border: 2px solid var(--pastel); display: flex; flex-direction: column; }
.stat strong { font-size: 1.4rem; }
.dev h3 { font-size: 1rem; margin-top: 6px; }

@media (max-width: 380px) {
  .size-xl { font-size: 1.45rem; } .size-l { font-size: 1.25rem; } .size-m { font-size: 1.1rem; }
  .btn-big { font-size: 1.3rem; }
  .dev-filters { grid-template-columns: 1fr 1fr; }
}
@media (min-height: 800px) { :root { --slot-h: clamp(260px, 38vh, 400px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .float { display: none; }
}

/* ── parties, roster, couples ── */
.party-bar { display: flex; align-items: center; justify-content: center; gap: 8px; }
.party-name { font-size: 1.2rem; font-weight: 900; color: var(--plum); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70%; }
.add-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.add-row .btn { flex: 1 1 140px; }
.member { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; padding: 0; }
.member strong { font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member.is-out { opacity: .55; }
.pencil { opacity: .7; }
.player-card.is-couple { padding: 10px; gap: 6px; background: #fff; }
.player-card.is-couple .member { padding: 6px 8px; border-radius: 18px; background: linear-gradient(100deg, var(--pc), #fff 160%); }
.player-card.is-couple .avatar { width: 42px; height: 42px; font-size: 1.5rem; flex: none; }
.couple-heart { flex: none; font-size: 1.2rem; }
.sub-title { font-size: 1rem; color: var(--plum-soft); }
.partner-box { display: flex; flex-direction: column; gap: 14px; padding: 12px; border-radius: 20px; border: 2px dashed var(--bubble); background: rgba(255, 255, 255, .6); }
.partner-box[hidden] { display: none; }
.yn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.yn-btn { border: 3px solid transparent; border-radius: 16px; min-height: 46px; font-weight: 800; background: #fff; box-shadow: 0 3px 0 rgba(100, 38, 83, .12); }
.yn-btn.is-active { background: var(--pink); color: #fff; border-color: #fff; box-shadow: 0 4px 0 #d94b94; }
.mode-btn.is-active { background: var(--lavender); color: #fff; border-color: #fff; box-shadow: 0 4px 0 #a66fd6; }
.chips { max-height: 150px; overflow-y: auto; }
.points-box { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.points-box small { color: var(--plum-soft); text-align: center; }
.points-row { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; }
.points-row .icon-btn { width: 38px; height: 38px; font-weight: 900; }
.points-row .icon-btn:disabled { opacity: .4; }
.points-value { min-width: 2ch; text-align: center; font-size: 1.3rem; }
.party-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.party-row { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 18px; background: #fff; border: 2px solid var(--pastel); }
.party-row.is-active { border-color: var(--pink); }
.party-head { display: flex; align-items: center; gap: 8px; }
.party-avatars { font-size: 1.3rem; overflow-wrap: anywhere; }

/* ── scores, winner, disqualified ── */
.score-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.score-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 18px; background: linear-gradient(100deg, var(--pc), #fff 160%); }
.score-row .avatar { font-size: 1.6rem; }
.score-row strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-row.is-out { filter: grayscale(1); opacity: .6; }
.score-pts { font-weight: 900; }
.winner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.winner-trophy { font-size: 4.5rem; animation: pop .6s; }
.winner-avatar { font-size: 4rem; }
.winner-name { font-size: 1.6rem; font-weight: 900; }
.dq-overlay { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 16px; background: rgba(60, 20, 50, .88); animation: fade .25s; }
.dq-card { width: min(420px, 100%); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 20px; text-align: center; border-radius: 32px; border: 4px solid #fff; box-shadow: 0 0 60px rgba(0, 0, 0, .5);
  background: linear-gradient(160deg, #d9d2e6, #b0a3c4); color: var(--plum); animation: dq-drop .7s cubic-bezier(.3, 1.6, .5, 1); }
.dq-avatar { font-size: clamp(7rem, 38vw, 11rem); line-height: 1; filter: grayscale(.7); animation: dq-shake .6s .7s 2; }
.dq-name { font-size: 1.7rem; font-weight: 900; overflow-wrap: anywhere; }
.dq-title { font-size: clamp(1.9rem, 9vw, 2.6rem); font-weight: 900; color: #c0262d; letter-spacing: .02em; }
.dq-line { font-weight: 700; }
.dq-ok { margin-top: 8px; width: 100%; }
@keyframes dq-drop { from { opacity: 0; transform: translateY(-120%) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes dq-shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.tag-with { background: var(--lavender); color: #fff; }
.turn strong { font-size: 1.1rem; }
@media (prefers-reduced-motion: reduce) {
  .dq-card, .dq-avatar, .winner-trophy { animation: none !important; }
}

.slot-card-who { flex: none; padding: 4px 14px; border-radius: 999px; font-weight: 900; font-size: 1rem; color: var(--plum); background: #fff; border: 2px solid var(--bubble); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
