.party-stage[hidden],.party-groups[hidden],.party-add[hidden] { display:none!important }
.party-stage { display:flex; flex-wrap:wrap; align-items:flex-start; gap:6px; margin:6px 0 14px; }
.party-groups { display:grid; gap:4px; min-width:0; }
.party-stage .party-groups { display:contents; }
.party-stage .party-card { width:min(100%,15rem); }
.room-panel .party-groups { margin:4px 0 6px; }
.party-card { --bubble-color:#4084dc; color:#151e2d; min-width:0; position:relative; border-radius:11px; border:1px solid color-mix(in srgb,var(--bubble-color) 42%,#fff); background:color-mix(in srgb,var(--bubble-color) 8%,#fff); animation:party-form .32s ease-out; transform-origin:16px 17px; }
.party-card.my-bubble { border-color:var(--bubble-color); box-shadow:inset 3px 0 var(--bubble-color) }
.party-card .party-toggle,.party-card .party-roster button { font:inherit; color:inherit; appearance:none; border:0; background:transparent; cursor:pointer; text-align:start }
.party-head { position:relative; display:flex; align-items:center; gap:4px; min-height:34px; padding:3px 8px; border-radius:inherit; }
.party-toggle { display:flex; align-items:center; gap:7px; min-width:0; padding:0; touch-action:manipulation; }
.party-toggle::after { content:""; position:absolute; inset:0; border-radius:inherit; }
.party-title { min-width:0; font-weight:700; line-height:1.22; font-size:.85rem; overflow-wrap:break-word; }
.party-communication { display:inline-flex; flex:none; align-items:center; justify-content:center; color:#354e5e; }
button.party-communication { position:relative; z-index:1; background:#ffffff80; border:1px solid #354e5e30; border-radius:6px; min-width:28px; min-height:28px; padding:1px; cursor:pointer; touch-action:manipulation; }
button.party-communication:hover,button.party-communication:focus-visible { background:#fff; border-color:#8395a1; }
span.party-communication,.party-head > .party-count,.party-head > .icon { pointer-events:none; }
.party-communication .icon { width:22px; height:16px; stroke-width:1.9; }
.party-personal-muted { position:absolute; inset-inline-end:-3px; bottom:-3px; display:grid; place-items:center; width:14px; height:14px; border-radius:50%; background:#30281b; color:#fff4ce; box-shadow:0 0 0 1px #fff; pointer-events:none; }
.party-communication .party-personal-muted .icon { width:10px; height:10px; stroke-width:2.3; }
.party-toggle[aria-expanded=false] .party-title { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.party-game-button { position:relative; z-index:1; flex:none; display:grid; place-items:center; width:28px; height:28px; padding:4px; border:1px solid #c8a446; border-radius:8px; background:#ffe4a0; cursor:pointer; touch-action:manipulation; }
.party-game-button:is(:hover,:focus-visible) { background:#ffd46d; border-color:#866624; }
.party-game-button img { width:18px; height:18px; }
.party-game-button + .party-toggle { display:grid; justify-items:start; align-content:center; gap:2px; }
.party-live-summary { color:#32465c; font-size:.72rem; line-height:1.2; font-weight:600; font-variant-numeric:tabular-nums; }
.party-live-summary,.party-game-status { min-width:0; overflow-wrap:anywhere; }
.party-card[data-outcome=win] .party-live-summary,.party-game-status[data-outcome=win] { color:#23663f; }
.party-card[data-outcome=loss] .party-live-summary,.party-game-status[data-outcome=loss] { color:#943524; }
.party-result-action { display:inline-flex; align-items:center; gap:5px; max-width:calc(100% - 16px); margin:0 8px 6px; padding:3px 7px; min-height:28px; border:1px solid #b6bdba; border-radius:7px; background:white; color:#212822; font:inherit; font-weight:650; font-size:.75rem; cursor:pointer; }
.party-result-action .icon { flex:none; width:15px; height:15px; }
.party-result-action:is(:hover,:focus-visible) { border-color:#78877d; }
.party-result-action[data-party-action="keep-open"] { background:#ffedb8; border-color:#caa854; color:#413314; }
[data-party-action="keep-open"][aria-busy="true"],[data-keep-open-game][aria-busy="true"] { cursor:wait; }
.party-count { margin-inline-start:auto; font-size:.72rem; font-variant-numeric:tabular-nums; color:#394753; }
.party-head > .icon { flex:none; width:12px; height:12px; }
.room-panel .party-head > .icon { margin-inline-start:auto; }
.party-toggle[aria-expanded=true] ~ .icon { transform:rotate(180deg); }
.party-mark { width:24px; height:23px; flex:none; position:relative; display:grid; place-items:center; color:#09233d; background:radial-gradient(ellipse at 28% 22%,#ffffffb0 0 8%,transparent 12%),linear-gradient(145deg,color-mix(in srgb,var(--bubble-color,#4084dc) 55%,#fff),var(--bubble-color,#4084dc)); border-radius:62% 42% 35% 38% / 71% 60% 33% 35%; }
.party-mark .icon { width:13px; height:13px; stroke-width:2; position:absolute; bottom:2px; }
.party-mark .icon+.icon { width:16px; height:16px; top:2px; bottom:auto; }
.room-panel .party-head { padding-inline:6px; }
.room-panel .party-toggle { gap:5px; }
.room-panel .party-communication .icon { width:20px; }
.party-body { padding:0 10px 10px; }
.party-access { margin:0 0 6px;color:#30475c;font-size:.75rem; }
.party-roster { list-style:none; padding:0;margin:0 0 7px; display:grid;gap:3px; }
.party-roster li button,.party-former { display:flex;align-items:center;gap:6px;padding:4px 0;min-height:30px;width:100%;line-height:1.25; }
.party-roster strong,.party-roster small { display:block;overflow-wrap:anywhere; }
.party-roster strong { font-size:.82rem; }
.party-roster small { font-size:.7rem;color:#314151; }
.party-roster img { width:26px;height:26px;border-radius:50%;object-fit:cover;background:white; }
.party-controls { display:flex;gap:4px;flex-wrap:wrap }
.party-controls button,.party-add { border:1px solid #b2bfcd; border-radius:8px; padding:6px 9px; background:#fff;color:#192838;cursor:pointer;font:inherit;font-size:.74rem;font-weight:650; }
.party-controls button { display:inline-grid; place-items:center; width:32px; height:32px; padding:0; }
.party-controls .icon { width:17px; height:17px; }
.party-controls button:is(:hover,:focus-visible) { border-color:#778ba0; background:#f2f5f8; }
.party-controls button[data-party-action=end] { color:#973528; }
@media (pointer:coarse) { .party-controls button { width:44px; } }
.party-add { justify-self:start;display:inline-flex;align-items:center;gap:6px;min-height:34px;border-color:#b5b6ae; }
.party-add .icon { width:16px;height:16px; }
.party-create-icon { display:inline-flex;position:relative;align-items:center;justify-content:center;width:22px;height:20px; }
.party-create-icon svg { width:15px;height:15px;position:absolute;bottom:0; }
.party-create-icon svg+svg { top:0;width:20px;height:18px; }
button[data-action=create-party] { display:inline-flex;align-items:center;gap:6px; }
.party-card button:focus-visible,.party-add:focus-visible { outline:2px solid #20559c;outline-offset:1px; }
.party-card .party-toggle:focus-visible { outline:none; }
.party-toggle:focus-visible::after { outline:2px solid #20559c;outline-offset:1px; }
#dialog:has(.party-modes) { width:min(22rem,calc(100% - 24px)); }
#dialog:has(.party-modes) .modal-content { padding:16px; }
#dialog:has(.party-modes) .modal-head { margin-bottom:10px; }
#dialog:has(.party-modes) .modal-head h2 { font-size:1.1rem; line-height:1.3; }
.party-modes { display:grid; gap:4px; }
.party-global-modes { display:grid; gap:4px; }
.party-modes [hidden] { display:none; }
.party-mode-caption { margin:6px 0 0; border-top:1px solid #deded5; padding:10px 10px 2px; color:#56574c; font-size:.76rem; font-weight:700; }
.party-modes button { display:grid; grid-template-columns:24px 1fr 16px; align-items:center; gap:9px; padding:8px 10px; min-height:40px; color:#25261f; background:transparent; border:1px solid transparent; border-radius:8px; font:inherit; font-size:.9rem; text-align:start; cursor:pointer; }
.party-modes [data-personal-mute] { grid-template-columns:24px 1fr; border-color:#d5d6cc; }
.party-modes button:is(:hover,:focus-visible) { background:#f1f1ec; }
.party-modes button[aria-pressed=true] { background:#fff2ca; border-color:#e5c36c; }
.party-modes button .icon:last-child { width:16px; visibility:hidden; }
.party-modes button[aria-pressed=true] .icon:last-child { visibility:visible; }
.party-modes[aria-busy=true] button { cursor:progress; }
.party-modes [data-party-error]:empty { display:none; }
.party-modes [data-party-error] { color:#96392b; }
#dialog:has(.party-game-sheet) { width:min(36rem,calc(100% - 24px)); }
.party-game-status { margin:0; font-weight:650; font-variant-numeric:tabular-nums; }
.party-game-teams { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.party-game-teams:not(:empty) { margin-top:16px; }
.party-game-teams h3 { margin:0 0 8px; font-size:.86rem; }
.party-team-result { display:inline-block; margin-inline-start:5px; padding:2px 5px; border-radius:4px; font-size:.7rem; }
.party-team-result[data-outcome=win] { color:#235c38; background:#e6f1e6; }
.party-team-result[data-outcome=loss] { color:#823221; background:#faebe7; }
.party-game-close { margin-top:14px; }
.party-game-close[hidden] { display:none; }
.party-game-teams h3::before { content:""; display:inline-block; width:8px; height:8px; margin-right:6px; border-radius:50%; background:#858778; }
.party-game-teams [data-team="100"] h3::before { background:#4479b7; }
.party-game-teams [data-team="200"] h3::before { background:#bf5655; }
.party-game-teams ul { list-style:none; margin:0; padding:0; display:grid; gap:4px; }
.party-game-teams li { display:flex; align-items:center; gap:7px; padding:4px 6px; min-height:39px; border-radius:7px; font-size:.83rem; overflow-wrap:anywhere; }
.party-game-teams li.is-confirmed { color:#302b1a; background:#fff1c5; }
.party-game-teams li strong { display:block; font-size:.76rem; }
.party-game-portrait { flex:none; display:grid; place-items:center; width:30px; height:30px; overflow:hidden; position:relative; border-radius:6px; background:#e5e3d9; color:#474535; }
.party-game-portrait > span { position:absolute; inset:0 auto auto 0; width:48px; height:48px; transform:scale(.625); transform-origin:top left; background-repeat:no-repeat; }
.party-game-sharing:has(button:not([hidden]),p:not([hidden]):not(:empty)) { margin-top:16px; }
.party-game-sharing .modal-note { margin:6px 0 0; }
.party-game-error { color:#96392b; }
.party-game-sharing [hidden],.party-game-error:empty { display:none; }
.party-auto-option { display:flex; align-items:center; gap:9px; min-height:36px; color:#35362b; font-size:.86rem; cursor:pointer; }
.league-foot .party-auto-option { flex-basis:100%; }
.party-auto-option[hidden],.party-auto-option small[hidden],.party-game-countdown[hidden] { display:none; }
.party-auto-option input { flex:none; width:17px; height:17px; margin:0; accent-color:#bb8812; }
.party-auto-option small { display:block; margin-top:3px; color:#66685f; font-size:.75rem; }
.party-countdown,.party-game-countdown { color:#63501b; font-size:.72rem; font-variant-numeric:tabular-nums; }
.party-game-countdown { margin:4px 0 0; font-size:.85rem; }
.party-burst { pointer-events:none; animation:party-burst-shell .72s ease-out forwards; }
.party-burst > :not(.party-slime) { animation:party-burst-content .24s ease-out forwards; }
.party-slime { position:relative; display:inline-grid; place-items:center; width:28px; height:28px; flex:none; pointer-events:none; }
.party-burst > .party-slime { position:absolute; top:50%; left:50%; margin:-14px 0 0 -14px; }
.party-slime::before { content:""; position:absolute; width:22px; height:19px; border:1px solid color-mix(in srgb,var(--bubble-color) 80%,#142b46); border-radius:62% 42% 36% 38% / 74% 64% 35% 35%; background:radial-gradient(ellipse at 30% 27%,#fff 0 7%,transparent 14%),linear-gradient(150deg,color-mix(in srgb,var(--bubble-color) 55%,#fff),var(--bubble-color)); animation:party-slime-burst .65s ease-out both; }
.party-slime i { position:absolute; width:5px; height:7px; border-radius:60% 40% 50% 50%; background:var(--bubble-color); animation:party-slime-drop .68s ease-out both; }
.party-slime i:nth-child(1) { --x:-20px; --y:-13px; }
.party-slime i:nth-child(2) { --x:5px; --y:-20px; }
.party-slime i:nth-child(3) { --x:24px; --y:-5px; }
.party-slime i:nth-child(4) { --x:16px; --y:16px; }
.party-slime i:nth-child(5) { --x:-6px; --y:20px; }
.party-slime i:nth-child(6) { --x:-24px; --y:7px; }
.party-burst-notice:not(:empty) { position:fixed; z-index:8; bottom:calc(1.25rem + env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:8px; width:max-content; max-width:calc(100% - 2rem); padding:7px 15px 7px 10px; border:1px solid #d8d7cf; border-radius:12px; background:#fff; color:#292a24; box-shadow:0 3px 16px #1c1c181a; font-size:.86rem; pointer-events:none; }
.android-view .party-burst-notice:not(:empty) { bottom:calc(5rem + env(safe-area-inset-bottom)); }
.party-burst-notice .party-slime::after { content:""; width:12px; height:6px; border:solid #325c45; border-width:0 0 2px 2px; transform:rotate(-45deg); animation:party-return-check .66s step-end; }
@keyframes party-return-check { from { opacity:0; } to { opacity:1; } }
@keyframes party-burst-shell { 35% { border-color:transparent; background:transparent; box-shadow:none; } to { border-color:transparent; background:transparent; box-shadow:none; opacity:0; } }
@keyframes party-burst-content { to { opacity:0; transform:scale(.94); } }
@keyframes party-slime-burst { 0% { opacity:0; transform:scale(.65,.55); } 24% { opacity:1; transform:scale(1.2,.88); } 43% { opacity:1; transform:scale(1.1,1.23); } 54%,100% { opacity:0; transform:scale(1.45,.7); } }
@keyframes party-slime-drop { 0%,42% { opacity:0; transform:scale(0); } 51% { opacity:1; } 100% { opacity:0; transform:translate(var(--x),var(--y)) scale(.5); } }
@media (pointer:coarse) { .party-game-button { min-width:38px; min-height:38px; } .party-game-sharing button,.party-result-action,.party-game-close { min-height:44px; } }
@media (pointer:coarse) { .party-auto-option { min-height:44px; } }
@media (max-width:430px) { .party-game-teams { gap:6px; } .party-game-teams li { padding-inline:3px; gap:5px; } }
.party-ended { animation:party-pop .32s ease-in forwards;pointer-events:none }
@keyframes party-form { from { opacity:0;transform:scale(.88,.78); } 70% { transform:scale(1.015,1.025) } }
@keyframes party-pop { 35% { transform:scale(1.025,1.065) } to {opacity:0;transform:scale(.8,.4)} }
@media (pointer:coarse) { .party-head,.party-controls button,.party-add,.party-modes button { min-height:44px; } button.party-communication { min-width:38px; min-height:38px; } }
@media (prefers-reduced-motion:reduce) { .party-card,.party-ended { animation:none } }
@media (prefers-reduced-motion:reduce) {
  .party-burst,.party-burst > :not(.party-slime),.party-slime::before,.party-slime i { animation:none; }
  .party-slime i { display:none; }
  .party-burst-notice .party-slime::before { display:none; }
  .party-burst-notice .party-slime::after { animation:none; }
}
