body { --cup-ev: #ffab1a; --cup-gold: #ffc61a; --g-win: #6aab90; --g-lose: #c98080; --g-win-b: #22d36b; --r-common: #a3a3a3; --r-rare: #3b82f6; --r-epic: #a855f7; --r-legendary: #f59e0b; --r-mythic: #ec4899; }
.cup-section { padding-top: 38px; padding-bottom: 48px; }

.cup-menu { position: fixed; left: 18px; top: 18px; z-index: 60; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); color: #8a8a8a; font-size: .85rem; cursor: pointer; transition: color .14s, background .14s; }
.cup-menu:hover, .cup-menu.on { color: var(--white); background: var(--bg-card-hover); }
.cup-menu-p { position: fixed; left: 18px; top: 60px; z-index: 60; display: flex; flex-direction: column; width: 230px; padding: 6px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); animation: cup-pop .16s ease-out; }
.cup-menu-i { display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 11px; border: none; border-radius: 10px; background: none; font: inherit; font-size: .95rem; font-weight: 500; color: var(--text); text-align: left; text-decoration: none; cursor: pointer; transition: background .14s, color .14s; }
body:has(.cup-fs.on) .cup-menu { width: 36px; height: 36px; border: 0; border-radius: 11px; background: rgba(10, 10, 12, .68); color: #fff; }
body:has(.cup-fs.on) .cup-menu:hover, body:has(.cup-fs.on) .cup-menu.on { background: rgba(10, 10, 12, .85); }
.cup-menu-i:hover { background: var(--bg-raised); color: var(--white); }
.cup-menu-i i { width: 14px; font-size: .78rem; text-align: center; color: #8a8a8a; }
.cup-menu-i:hover i { color: var(--white); }
.cup-menu-i kbd { margin-left: auto; min-width: 22px; padding: 2px 6px; border: 1px solid var(--border); border-radius: 6px; font-family: var(--mono); font-size: .78rem; font-weight: 600; color: #9a9a9a; text-align: center; }
.cup-menu-p .cup-net { margin-top: 6px; padding: 8px 10px 4px; font-size: .8rem; color: #9a9a9a; }
.cup-menu-sep { height: 1px; margin: 5px 8px; border: 0; background: var(--border); }
body.cup-zen .cup-menu { opacity: .28; transition: opacity .14s, color .14s, background .14s; }
body.cup-zen .cup-menu:hover, body.cup-zen .cup-menu:focus-visible, body.cup-zen .cup-menu.on { opacity: 1; }
@media (pointer: coarse) {
    body.cup-zen .cup-menu { opacity: .4; }
    .cup-menu-i kbd { display: none; }
}
@media (max-width: 900px) {
    .cup-menu { left: calc(10px + env(safe-area-inset-left, 0px)); top: calc(10px + env(safe-area-inset-top, 0px)); width: 36px; height: 36px; }
    .cup-menu-p { left: calc(10px + env(safe-area-inset-left, 0px)); top: calc(54px + env(safe-area-inset-top, 0px)); }
    .cup-section { padding-top: 62px; padding-bottom: 40px; }
}

.cup-sign { display: inline-block; width: 20px; height: 20px; margin-right: 9px; vertical-align: -2px; background-color: currentColor; -webkit-mask: url(/assets/games/ic-cup.svg) center / 20px 20px no-repeat; mask: url(/assets/games/ic-cup.svg) center / 20px 20px no-repeat; }

.cup-brief { display: none; }

.cup-lobby.g-card { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 36px; align-items: stretch; padding: 24px; }
.cup-me { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.cup-look-c { display: flex; flex-direction: column; gap: 14px; }
.cup-prev { position: relative; width: 208px; height: 208px; flex-shrink: 0; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 0 3px rgba(0,0,0,.28); transition: background-color .25s; }
.cup-prev img, .cup-prev video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cup-prev span { position: absolute; inset: 0; display: block; padding: 0 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center; font-weight: 800; font-size: 1.15rem; line-height: 208px; color: #fff; -webkit-text-stroke: 2px #000; paint-order: stroke fill; }

.cup-prev-w { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cup-prev.can-fx { cursor: grab; touch-action: none; user-select: none; }
.cup-prev.can-fx.drag { cursor: grabbing; }
.cup-prev img.fx, .cup-prev video.fx, .cup-skin img.fx, .cup-skin video.fx { position: absolute; inset: auto; max-width: none; object-fit: fill; }
.cup-prev img { pointer-events: none; -webkit-user-drag: none; }
.cup-fxc { display: flex; align-items: center; gap: 10px; width: 100%; }
.cup-fxc > i { font-size: .8rem; color: #8a8a8a; }
.cup-lobby .cup-fxc input.cup-fxz { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 18px; margin: 0; background: none; cursor: pointer; }
.cup-lobby .cup-fxc input.cup-fxz::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: #2e2e2e; }
.cup-lobby .cup-fxc input.cup-fxz::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--white); border: 0; }
.cup-lobby .cup-fxc input.cup-fxz::-moz-range-track { height: 4px; border-radius: 999px; background: #2e2e2e; }
.cup-lobby .cup-fxc input.cup-fxz::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 0; }
.cup-fxc-r { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-raised); color: var(--text); font-size: .8rem; cursor: pointer; transition: background .15s, opacity .15s; }
.cup-fxc-r:hover:not(:disabled) { background: var(--bg-card-hover); }
.cup-fxc-r:disabled { opacity: .35; cursor: default; }
.cup-pick { min-width: 0; }
.cup-pick-h { display: flex; align-items: center; gap: 9px; font-size: 1rem; font-weight: 700; color: var(--text); }
.cup-l-n { margin-left: 2px; font-family: var(--mono); font-size: .82rem; font-weight: 500; color: #8a8a8a; }

.cup-colors { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cup-color { width: 100%; aspect-ratio: 1 / 1; padding: 0; border: none; border-radius: 50%; outline: 2px solid transparent; outline-offset: 3px; cursor: pointer; transition: outline-color .15s, transform .15s; }
.cup-color:hover { outline-color: #4a4a4a; transform: scale(1.06); }
.cup-color.sel { outline-color: var(--white); }
.cup-color:focus-visible, .cup-skin:focus-visible { outline-color: var(--white); }
input.cup-hue { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 18px; margin: 0; background: none; border-radius: 0; outline: none; cursor: pointer; }
input.cup-hue::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, hsl(0 100% 55%), hsl(60 100% 55%), hsl(120 100% 55%), hsl(180 100% 55%), hsl(240 100% 55%), hsl(300 100% 55%), hsl(360 100% 55%)); }
input.cup-hue::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -4px; border-radius: 50%; background: var(--white); border: 3px solid var(--bg-card); box-shadow: 0 0 0 1px var(--border); cursor: pointer; }
input.cup-hue::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, hsl(0 100% 55%), hsl(60 100% 55%), hsl(120 100% 55%), hsl(180 100% 55%), hsl(240 100% 55%), hsl(300 100% 55%), hsl(360 100% 55%)); }
input.cup-hue::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--bg-card); box-shadow: 0 0 0 1px var(--border); cursor: pointer; }

#cupSkinBox { display: flex; flex-direction: column; min-height: 0; }
.cup-skins-hd { position: relative; display: flex; align-items: center; gap: 16px; min-height: 32px; margin-bottom: 10px; }
.cup-skins-hd .cup-pick-h { margin: 0 auto 0 0; font-variant-numeric: tabular-nums; }
.cup-sk-tabs { gap: 18px; }
.cup-sk-tab { display: inline-flex; align-items: center; gap: 9px; height: 32px; padding: 0; border: 0; background: none; color: rgba(255,255,255,.4); font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; transition: color .14s; }
.cup-sk-tab:hover { color: rgba(255,255,255,.7); }
.cup-sk-tab.on { color: var(--text); cursor: default; }
#cupSkinBox.tab-st > :not(.cup-skins-hd):not(.cup-stk), #cupSkinBox.tab-st .cup-skins-hd > :not(.cup-sk-tabs) { display: none !important; }
.cup-stk { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.cup-stk::-webkit-scrollbar { display: none; }
.cup-stk-set { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; width: 100%; padding: 12px 12px 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-raised); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s; }
.cup-stk-set:hover { border-color: #3a3a3a; }
.cup-stk-set.sel { border-color: rgba(255,255,255,.3); cursor: default; }
.cup-stk-h { display: flex; align-items: center; gap: 10px; min-height: 26px; }
.cup-stk-h b { font-size: .94rem; font-weight: 700; color: var(--white); }
.cup-stk-l { flex-shrink: 0; margin: 10px 0 0 2px; font-size: .82rem; font-weight: 700; color: rgba(255,255,255,.45); }
.cup-stk-t { display: none; }
@media (min-width: 901px) {
    .cup-lobby.no-skins .cup-sk-tab[data-tab="st"] { display: none; }
    .cup-lobby.no-skins #cupSkinBox:not(.tab-st) .cup-stk-t { display: block; margin-top: 18px; font-size: 1rem; color: var(--text); }
}
.cup-stk-set.lock { cursor: default; }
.cup-stk-set.lock:hover { border-color: rgba(255,255,255,.22); }
.cup-stk-set.lock .cup-stk-h b { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cup-stk-set.lock .cup-stk-p, .cup-stk-buy { flex-shrink: 0; }
.cup-stk-set.lock { transition: border-color .6s; }
.cup-stk-set.hl { border-color: rgba(255,255,255,.5); transition: none; }
.cup-stk-p { display: inline-flex; align-items: center; gap: 5px; font-size: .88rem; font-weight: 700; color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; }
.cup-stk-p img { width: 15px; height: 15px; }
.cup-stk-buy { margin-left: auto; padding: 5px 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; color: #fff; font-size: .82rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .14s, border-color .14s; }
.cup-stk-buy:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }
.cup-stk-row { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); justify-items: center; gap: 6px; }
.cup-stk .cup-stk-i { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; max-width: 48px; min-width: 0; }
.cup-stk .cup-stk-i::before { content: ''; display: block; width: 100%; aspect-ratio: 1 / 1; background: var(--sheet) calc(var(--i) * 100% / 9) 0 / 1000% 100% no-repeat; }
.cup-stk .cup-stk-i kbd { font-family: var(--mono); font-size: .8rem; font-weight: 600; line-height: 1; color: rgba(255,255,255,.4); }
.cup-stk .sel .cup-stk-i kbd { color: rgba(255,255,255,.75); }
.cup-stpop { position: absolute; z-index: 6; display: grid; grid-template-columns: repeat(5, 44px); gap: 6px; padding: 8px; border-radius: 16px; background: #121214; animation: cup-pop .14s ease-out; }
.cup-stpop .cup-stk-i { position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 11px; background: rgba(255,255,255,.06); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.cup-stpop .cup-stk-i::before { content: ''; position: absolute; inset: 5px; background: var(--sheet) calc(var(--i) * 100% / 9) 0 / 1000% 100% no-repeat; pointer-events: none; }
.cup-stpop .cup-stk-i:active { background-color: rgba(255,255,255,.2); }
.cup-sk-link { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 2px; border: 0; background: none; color: rgba(255,255,255,.72); font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; transition: color .14s; }
.cup-sk-link:hover { color: #fff; }
.cup-sk-link i { font-size: .66rem; }
.cup-sk-menu, .cup-sk-pop { position: absolute; z-index: 20; background: #161616; border: 1px solid #26262b; border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.5); animation: cup-pop .15s ease-out; }
.cup-sk-menu { right: 0; top: 36px; min-width: 170px; padding: 5px; }
.cup-sk-menu button { display: flex; align-items: center; width: 100%; height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: rgba(255,255,255,.82); font: inherit; font-size: .92rem; text-align: left; cursor: pointer; }
.cup-sk-menu button:hover { background: rgba(255,255,255,.07); }
.cup-sk-menu button.sel { color: #fff; font-weight: 700; background: rgba(255,255,255,.08); }
.cup-sk-bar { position: relative; display: flex; gap: 8px; margin-bottom: 10px; }
.cup-sk-q { position: relative; flex: 1; min-width: 0; display: flex; }
.cup-skin-q { flex: 1; width: 100%; min-width: 0; height: 40px; margin: 0; padding: 0 40px 0 12px; font: inherit; font-size: .94rem; color: var(--text); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; outline: none; transition: border-color .14s; }
.cup-skin-q:focus { border-color: rgba(255,255,255,.3); }
.cup-sk-qx { position: absolute; right: 4px; top: 4px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: rgba(255,255,255,.6); font-size: .85rem; cursor: pointer; }
.cup-sk-qx:hover { color: #fff; background: rgba(255,255,255,.08); }
.cup-sk-fb { flex-shrink: 0; min-width: 110px; height: 40px; padding: 0 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.04); color: rgba(255,255,255,.72); font: inherit; font-size: .94rem; font-weight: 600; cursor: pointer; transition: background .14s, color .14s; }
.cup-sk-fb:hover, .cup-sk-fb[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.08); }
.cup-sk-fb.on { color: #fff; border-color: rgba(255,255,255,.3); }
.cup-sk-fb b { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.cup-sk-rars span { opacity: .75; }
.cup-sk-pop { left: 0; right: 0; top: 98px; display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.cup-sk-pop-l { margin-bottom: 8px; font-size: .84rem; font-weight: 500; color: rgba(255,255,255,.55); }
.cup-sk-rars span, .cup-sk-chip span { margin-left: 6px; opacity: .55; font-variant-numeric: tabular-nums; }
.cup-sk-rars { display: flex; flex-wrap: wrap; gap: 6px; }
.cup-sk-rars button { height: 36px; padding: 0 12px; border: 1.5px solid transparent; border-radius: 18px; background: rgba(255,255,255,.06); color: var(--rc); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; transition: background .14s, border-color .14s; }
.cup-sk-rars button:hover { background: rgba(255,255,255,.1); }
.cup-sk-rars button.on { border-color: var(--rc); background: color-mix(in srgb, var(--rc) 16%, transparent); }
.cup-sk-types { --rc: #fff; }
.cup-sk-types button { color: rgba(255,255,255,.82); }
.cup-sk-types button.on { color: #fff; }
.cup-sk-chip.cup-sk-rs { display: none; }
.cup-sk-chips { display: flex; gap: 6px; margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.cup-sk-chips::-webkit-scrollbar { display: none; }
.cup-sk-chips.mr { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
.cup-sk-chips.ml { -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px); mask-image: linear-gradient(90deg, transparent, #000 44px); }
.cup-sk-chips.ml.mr { -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
.cup-sk-chip { display: inline-flex; align-items: center; flex-shrink: 0; height: 36px; padding: 0 12px; border: 0; border-radius: 18px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.82); font: inherit; font-size: .9rem; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background .14s, color .14s; }
.cup-sk-chip:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.cup-sk-chip.on { background: rgba(255,255,255,.92); color: #000; }
.cup-sk-chip:disabled { opacity: .35; cursor: default; }
.cup-sk-gap { display: none; flex-shrink: 0; width: 10px; }
.cup-sk-head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; margin-top: 10px; font-size: .92rem; font-weight: 700; color: var(--rc); }
.cup-sk-head:first-child { margin-top: 0; }
.cup-sk-head span { font-weight: 500; color: rgba(255,255,255,.5); }
.cup-sk-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 12px; font-size: .94rem; font-weight: 500; line-height: 1.4; color: rgba(255,255,255,.72); text-align: center; }
.cup-sk-empty button { height: 40px; padding: 0 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-raised); color: #fff; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.cup-sk-empty button:hover { background: var(--bg-card-hover); }
.cup-sk-more { grid-column: 1 / -1; display: block; height: 1px; }
.cup-sk-all { display: none; align-items: center; justify-content: center; width: 100%; height: 44px; margin-top: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-raised); color: #fff; font: inherit; font-size: .94rem; font-weight: 600; cursor: pointer; }
.cup-skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); grid-auto-rows: max-content; align-content: start; gap: 11px; flex: 1 1 0; min-height: 120px; max-height: 440px; overflow-y: auto; padding: 8px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.22) transparent; }
.cup-skins::-webkit-scrollbar { width: 6px; }
.cup-skins::-webkit-scrollbar-track { background: none; }
.cup-skins::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 3px; }
.cup-skin { position: relative; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: none; border-radius: 50%; background: rgba(255,255,255,.06); cursor: pointer; outline: 3px solid transparent; outline-offset: 3px; transition: outline-color .15s, transform .15s; }
.cup-skin::before { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(0,0,0,.22); pointer-events: none; }
.cup-skin:hover { outline-color: #3a3a3a; transform: scale(1.04); }
.cup-skin.sel { outline-color: var(--white); }
.cup-skin-c { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.cup-skin img, .cup-skin video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cup-skin video { position: absolute; inset: 0; }
.cup-skin.none { background: var(--skin-c, #2b2b2b); }
.cup-skin.cur::after { content: ''; position: absolute; right: 1px; bottom: 1px; z-index: 2; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M7 3h10v18l-5-3.8L7 21z'/%3E%3C/svg%3E") center/7px auto no-repeat; }
.cup-skins-empty { grid-column: 1 / -1; align-self: center; font-size: .9rem; color: #8a8a8a; padding: 2px 0 4px; }
.cup-skins-none { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; padding: 12px 12px 12px 16px; border-radius: 12px; background: var(--bg-raised); }
.cup-skins-none span { font-size: .92rem; line-height: 1.4; color: var(--text-2); }
.cup-skins-none a { display: inline-flex; align-items: center; flex-shrink: 0; gap: 8px; height: 40px; padding: 0 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-raised); color: var(--text); font-size: .9rem; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s; }
.cup-skins-none a:hover { background: var(--bg-card-hover); border-color: #3a3a3a; }
.cup-skins.is-empty { display: block; flex: none; min-height: 0; max-height: none; overflow: visible; padding: 0; contain: none; -webkit-mask-image: none; mask-image: none; }
@media (min-width: 901px) {
    .cup-lobby #cupSkinBox { max-height: max(520px, calc(100vh / var(--cz, 1) - 240px)); }
    .cup-lobby .cup-sk-chips { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
    .cup-lobby .cup-sk-gap { display: none; }
    .cup-lobby .cup-skins { flex: 1 1 auto; max-height: none; min-height: 0; }
    .cup-lobby .cup-skins.is-empty { min-height: 0; contain: none; }
}
.cup-skin-star { position: absolute; top: -5px; right: -5px; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.72); color: #fff; font-size: .72rem; cursor: pointer; opacity: 0; transition: opacity .14s, background .14s; }
.cup-skin-star::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; }
.cup-skin-star:not(.on) i { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.72); }
.cup-skin-star:not(.on):hover i { -webkit-text-stroke-color: #fff; }
.cup-skin.sel .cup-skin-star { top: -10px; right: -10px; box-shadow: 0 0 0 2px var(--sk-bg, #101012); }
.cup-skins.mb { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 24px), transparent); }
.cup-skin:hover .cup-skin-star, .cup-skin:focus-visible .cup-skin-star { opacity: 1; }
.cup-skin-star:hover { background: rgba(0,0,0,.9); }
.cup-skin-star.on { opacity: 1; }

.cup-rules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.cup-rules li { position: relative; padding-left: 0; font-size: .97rem; line-height: 1.5; color: #b6b6b6; }

.cup-go { margin-top: 0; }
.cup-go .g-actions { margin-top: 0; }
.cup-go .g-action { position: relative; height: 60px; font-size: 1.3rem; font-weight: 800; letter-spacing: .01em; transition: transform .15s, background .15s, opacity .15s; }
.cup-go .g-action:not(:disabled):hover { transform: translateY(-1px); }
.cup-go .g-action kbd, #cupRespawn kbd { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); padding: 2px 7px; border: 1px solid rgba(0,0,0,.2); border-radius: 6px; font-family: var(--mono); font-size: .76rem; font-weight: 600; opacity: .6; }
.cup-under { margin-top: 8px; font-size: .86rem; color: #8a8a8a; text-align: center; }

.cup-l-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: -8px; }
.cup-l-acts:not(:has(> :not([hidden]))) { display: none; }
.cup-l-act { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; background: none; color: var(--text); font: inherit; font-size: .94rem; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.cup-l-act span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cup-l-act:hover { background: var(--bg-raised); border-color: #3a3a3a; }

.cup-info.g-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); column-gap: 44px; align-items: start; margin-top: 16px; padding: 6px 24px; }
.cup-info:not(:has(.cup-st-row:not([hidden]), .cup-admin:not([hidden]))) { display: none; }
.cup-info-c { display: flex; flex-direction: column; min-width: 0; }
.cup-info-c:not(:has(> :not([hidden]))) { display: none; }
.cup-st-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: start; padding: 16px 0; animation: cup-pop .2s ease-out; }
.cup-st-b { min-width: 0; }
.cup-st-t { margin-bottom: 8px; font-size: .9rem; font-weight: 700; color: var(--white); }
.cup-st-row > button { align-self: center; }

.cup-mine-l { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.cup-mine-v { font-family: var(--body); font-size: 1.4rem; font-weight: 800; line-height: 1.15; color: var(--white); font-variant-numeric: tabular-nums; }
.cup-mine-v.off { color: #8a8a8a; }
.cup-mine-l span { font-size: .84rem; color: var(--text-2); font-variant-numeric: tabular-nums; }

.cup-q-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 10px; font-size: .9rem; color: var(--text); }
.cup-q-row + .cup-q-row { margin-top: 10px; }
.cup-q-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cup-q-row b { font-family: var(--mono); font-size: .86rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--white); }
.cup-q-row i { grid-column: 1 / -1; height: 5px; margin-top: 6px; border-radius: 999px; background: #262626; overflow: hidden; }
.cup-q-row i::before { content: ''; display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--white); transform: scaleX(var(--p, 0)); transform-origin: left center; transition: transform .35s ease-out; }
.cup-q-row.done span { color: var(--text-2); }
.cup-q-row.done b { color: var(--text-2); }

.cup-ct-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: baseline; column-gap: 8px; font-size: .9rem; color: var(--text); }
.cup-ct-row + .cup-ct-row { margin-top: 6px; }
.cup-ct-row .cup-lb-i { width: auto; font-size: .78rem; color: #8a8a8a; font-weight: 500; }
.cup-ct-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cup-ct-row b { font-family: var(--mono); font-size: .86rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-2); }

.cup-rec-seg { display: flex; flex-wrap: nowrap; gap: 2px; width: 100%; margin: 4px 0 10px; }
.cup-rec-seg .seg-btn, .cup-rec-seg .seg-btn.on { flex: 1 1 auto; min-width: 0; padding: 7px 3px; font-size: .86rem; font-weight: 500; text-align: center; }
.cup-rec-list { transition: opacity .15s; }
.cup-rec-list.wait { opacity: .4; }
.cup-rec-list .cup-ct-row + .cup-ct-row { margin-top: 4px; }
.cup-rec-list em { font-style: normal; font-size: .8rem; color: #8a8a8a; }
.cup-rec-list .cup-ct-row.me span, .cup-rec-list .cup-ct-row.me b, .cup-rec-list .cup-ct-row.me .cup-lb-i { color: var(--white); font-weight: 700; }
.cup-rec-list .cup-rec-mine { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
.cup-rec-empty { font-size: .86rem; color: #8a8a8a; }

.cup-fr-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cup-fr-av { display: flex; flex-shrink: 0; }
.cup-fr-av:empty { display: none; }
.cup-fr-av img, .cup-fr-av i { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--bg-raised); background: #222; }
.cup-fr-av > * + * { margin-left: -8px; }
.cup-fr-n { min-width: 0; font-size: .9rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cup-fr-n b { font-weight: 700; color: var(--g-win-b); }
.cup-fr-go { height: 34px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); color: var(--white); font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s; }
.cup-fr-go:hover { background: var(--bg-card-hover); border-color: #3a3a3a; }

.cup-admin { grid-column: 1 / -1; margin: 4px 0 18px; padding: 4px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-raised); }
.cup-adm-hd { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 40px; padding: 0; background: none; border: none; font: inherit; font-size: .9rem; font-weight: 600; color: #bdbdbd; cursor: pointer; transition: color .14s; }
.cup-adm-hd span { display: inline-flex; align-items: center; gap: 12px; }
.cup-adm-hd:hover { color: var(--white); }
.cup-adm-hd > i { font-size: .72rem; transition: transform .18s; }
.cup-adm-hd.open > i { transform: rotate(180deg); }
.cup-adm-body { padding-bottom: 12px; }
.cup-adm-body { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.cup-adm-seg { display: flex; width: 100%; }
.cup-adm-seg .seg-btn { flex: 1; border: 0; text-align: center; }
.cup-adm-seg .seg-btn.sel { background: var(--btn); color: #111; font-weight: 600; }
.cup-admin .cup-adm-btn { color: var(--white); }
.cup-adm-row { display: flex; align-items: center; gap: 8px; }
.cup-adm-in { flex: 1; min-width: 0; padding: 8px 11px; font: inherit; font-size: .9rem; color: var(--text); background: var(--bg-raised); border: 1px solid var(--border); border-radius: 10px; outline: none; transition: border-color .14s; }
.cup-adm-in:focus { border-color: #3a3a3a; }
.cup-adm-btn { padding: 7px 13px; font: inherit; font-size: .9rem; color: var(--text-2); background: var(--bg-raised); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: color .14s, background .14s, border-color .14s; }
.cup-adm-btn:hover { color: var(--white); background: var(--bg-card-hover); border-color: #3a3a3a; }
.cup-adm-list { display: flex; flex-wrap: wrap; gap: 6px; }
.cup-adm-list:empty { display: none; }
.cup-adm-tester { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; font-family: var(--mono); font-size: .82rem; color: var(--text-2); background: var(--bg-raised); border: 1px solid var(--border); border-radius: 999px; }
.cup-adm-tester button { border: none; background: none; padding: 0 3px; font-size: .95rem; line-height: 1; color: #8a8a8a; cursor: pointer; }
.cup-adm-tester button:hover { color: var(--g-lose); }

.cup-fs {
    position: fixed; inset: 0; z-index: 50; display: none; flex-direction: column;
    background: var(--bg);
    --g-win: #6aab90;
    --g-lose: #c98080;
}
.cup-fs.on { display: flex; }
.cup-fs [hidden] { display: none !important; }
.cup-work { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.cup-work canvas { display: block; cursor: crosshair; touch-action: none; }
body:has(.cup-fs.on) { overflow: hidden; }
body:has(.cup-fs.on) .site-footer { display: none; }
html.cup-fit .cup-section { display: none; }

.cup-card { padding: 12px 14px; border: 0; border-radius: 14px; background: var(--hud-bg); color: #fff; }

.cup-hud { position: absolute; left: 62px; top: 18px; z-index: 2; display: flex; align-items: center; gap: 8px; height: 36px; }
.cup-hud-c { display: flex; align-items: center; gap: 9px; min-width: 0; height: 36px; padding: 0 13px 0 12px; border-radius: 11px; background: var(--hud-bg); white-space: nowrap; }
.cup-mass { font-family: var(--mono); font-size: 1.15rem; font-weight: 700; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.cup-ping-bad { padding-left: 9px; border-left: 1px solid rgba(255,255,255,.16); font-family: var(--mono); font-size: .8rem; font-weight: 700; color: #ff4d5e; cursor: pointer; }
.cup-netp { position: absolute; left: 50%; bottom: 18px; z-index: 4; transform: translateX(-50%); padding: 8px 12px; border-radius: 11px; background: var(--hud-bg2); font-family: var(--mono); font-size: .74rem; line-height: 1.55; color: #fff; white-space: pre; pointer-events: none; }
.cup-state { min-height: 0; padding-left: 9px; border-left: 1px solid rgba(255,255,255,.16); font-size: .84rem; font-weight: 600; color: var(--hud-t2); font-variant-numeric: tabular-nums; }
.cup-state:empty { display: none; }
.cup-sub { padding-left: 9px; border-left: 1px solid rgba(255,255,255,.16); font-size: .84rem; color: var(--hud-t2); }

.cup-rail { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); }
.cup-rb { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: none; border-radius: 12px; background: none; color: #8a8a8a; font-size: .82rem; cursor: pointer; transition: color .14s, background .14s; }
.cup-rb:hover { color: var(--white); background: var(--bg-card-hover); }

.cup-lb { position: absolute; right: 18px; top: 18px; z-index: 2; width: 250px; padding: 10px 8px 8px; }
.cup-lb .g-side-h { justify-content: flex-start; gap: 8px; margin: 0 4px 6px 6px; white-space: nowrap; font-size: .9rem; font-weight: 700; color: #fff; }
.cup-lb .g-side-h b { font-weight: inherit; }
.cup-lb-cnt { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-family: var(--mono); font-size: .8rem; font-weight: 600; color: var(--hud-t2); }
.cup-lb-cnt i { font-size: .72rem; }
.cup-lb-cnt:has(#cupLbN:empty) { display: none; }
.cup-lb-row { position: relative; isolation: isolate; display: flex; align-items: center; gap: 8px; min-height: 27px; padding: 3px 8px; border-radius: 8px; overflow: hidden; font-size: .88rem; color: rgba(255,255,255,.82); text-decoration: none; transition: background .14s; }
a.cup-lb-row:hover { background: rgba(255,255,255,.07); }
a.cup-lb-row:focus { outline: none; }
a.cup-lb-row:focus-visible { background: rgba(255,255,255,.14); }
.cup-lb-row > * { position: relative; z-index: 1; }
.cup-lb-row.has-bnr::before, .cup-ch-row.has-bnr::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: var(--bnr, none); background-size: cover; background-position: center; opacity: .22; filter: grayscale(1); -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); mask-image: linear-gradient(90deg, #000, transparent 70%); }
.cup-fs.map-light .cup-lb-row.has-bnr::before, .cup-fs.map-light .cup-ch-row.has-bnr::before { opacity: .15; }
.cup-lb-vidbg, .cup-ch-vidbg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .22 !important; filter: grayscale(1); -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); mask-image: linear-gradient(90deg, #000, transparent 70%); }
.cup-lb-i { display: inline-block; flex-shrink: 0; width: 20px; font-style: normal; font-family: var(--mono); font-size: .8rem; font-weight: 600; color: var(--hud-t2); }
.cup-lb-n { display: flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; }
.cup-lb-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cup-lb-clan { flex-shrink: 0; font-style: normal; font-size: .78rem; font-weight: 600; color: var(--hud-t2); }
.cup-lb-m { flex-shrink: 0; margin-left: auto; font-family: var(--mono); font-size: .82rem; font-weight: 700; color: rgba(255,255,255,.82); font-variant-numeric: tabular-nums; }
.cup-lb-row.me { background: rgba(255,255,255,.1); color: #fff; font-weight: 700; }
.cup-lb-row.me .cup-lb-m, .cup-lb-row.me .cup-lb-i { color: #fff; }
.cup-lb-eye { display: none; align-items: center; justify-content: center; flex-shrink: 0; width: 24px; height: 24px; padding: 0; border: none; border-radius: 8px; background: none; color: var(--hud-t2); font-size: .8rem; cursor: pointer; transition: color .14s, background .14s; }
.cup-lb-eye:hover { color: var(--white); background: rgba(255,255,255,.1); }
.cup-lb.spect .cup-lb-eye { display: inline-flex; }
.cup-lb-row.watch .cup-lb-eye { color: var(--white); }
.cup-net { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: .7rem; color: #8a8a8a; cursor: pointer; }
.cup-net span:empty { display: none; }
.cup-flag { width: 18px; height: 12px; border-radius: 2px; flex-shrink: 0; box-shadow: 0 0 0 1px var(--border); }

.cup-chat { position: absolute; left: 18px; bottom: 18px; z-index: 2; width: 400px; display: flex; flex-direction: column; gap: 8px; padding: 10px 10px 10px; }
.cup-chat-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px 0 4px; font-size: .9rem; font-weight: 700; color: #fff; }
.cup-chat-min { width: 26px; height: 26px; margin: -4px -6px -4px 0; }
.cup-chat-list { display: flex; flex-direction: column; gap: 2px; max-height: min(300px, 34vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22px); mask-image: linear-gradient(180deg, transparent 0, #000 22px); }
.cup-chat-list::-webkit-scrollbar { display: none; }
.cup-ch-row { position: relative; z-index: 0; flex-shrink: 0; padding: 4px 6px; border-radius: 8px; overflow: hidden; font-size: .9rem; font-weight: 500; line-height: 1.42; color: rgba(255,255,255,.9); overflow-wrap: break-word; animation: cup-msg .18s ease-out; }
@keyframes cup-msg { from { opacity: 0; transform: translateY(4px); } }
.cup-ch-row.sys, .cup-ch-row.sys-rich { display: flex; align-items: baseline; gap: 7px; font-size: .82rem; font-weight: 500; color: var(--hud-t2); }
.cup-ch-row.sys > i, .cup-ch-row.sys-rich > i { flex-shrink: 0; width: 14px; font-size: .74rem; text-align: center; color: rgba(255,255,255,.4); }
.cup-ch-row.sys-rich .cup-ch-n { font-weight: 600; }
.cup-ch-row.pm { background: rgba(255, 255, 255, .09); }
.cup-ch-pmtag { font-style: normal; font-size: .76rem; font-weight: 700; color: var(--hud-t2); }
.cup-ch-re { display: block; font-size: .78rem; color: var(--hud-t2); padding-left: 7px; border-left: 2px solid rgba(255,255,255,.22); margin: 1px 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cup-ch-n { font-weight: 700; color: #fff; }
.cup-ch-n > span, .cup-ch-n a { color: var(--nc, inherit); }
.cup-ch-n a { text-decoration: none; }
.cup-ch-n a:hover { text-decoration: underline; }
.cup-ch-n > i { font-style: normal; font-weight: 600; font-size: .8rem; color: var(--hud-t2); }
.cup-ch-lvl { font-style: normal; font-weight: 600; font-size: .74rem; color: var(--hud-t2); }
.cup-ch-deco { width: 16px; height: 16px; object-fit: contain; vertical-align: -3px; margin-right: 4px; }
.cup-ch-acts { display: none; margin-left: 8px; gap: 10px; }
.cup-ch-row:hover .cup-ch-acts, .cup-ch-row.sel .cup-ch-acts { display: inline-flex; }
.cup-ch-acts button { border: none; background: none; padding: 0; font: inherit; font-size: .76rem; font-weight: 600; color: var(--hud-t2); cursor: pointer; }
.cup-ch-acts button:hover { color: var(--white); }
.cup-ch-loc { display: inline-flex; align-items: center; gap: 6px; border: none; padding: 1px 9px; margin-left: 4px; font: inherit; font-size: .8rem; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .12); border-radius: 7px; cursor: pointer; transition: background .14s; }
.cup-ch-loc i { font-size: .72rem; color: var(--hud-t2); }
.cup-ch-loc:hover { background: rgba(255, 255, 255, .2); }
.cup-ch-chip { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; padding: 5px 8px 5px 11px; font-size: .82rem; font-weight: 600; color: #fff; background: rgba(255,255,255,.1); border-radius: 999px; }
.cup-ch-chip button { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: none; border-radius: 50%; background: none; padding: 0; font-size: 1rem; line-height: 1; color: var(--hud-t2); cursor: pointer; }
.cup-ch-chip button:hover { color: var(--white); background: rgba(255,255,255,.12); }
.cup-ch-more { align-self: flex-start; padding: 5px 12px; font: inherit; font-size: .8rem; font-weight: 600; color: var(--hud-t2); background: rgba(255,255,255,.08); border: 0; border-radius: 999px; cursor: pointer; transition: color .14s, background .14s; }
.cup-ch-more:hover { color: var(--white); background: rgba(255,255,255,.14); }
.cup-chat-inwrap { display: flex; gap: 6px; }
.cup-chat-inwrap:not(:has(> :not([hidden]))) { display: none; }
.cup-chat-field { position: relative; flex: 1; min-width: 0; display: flex; }
.cup-chat-field:has(.cup-chat-in[hidden]) { display: none; }
.cup-chat-in { flex: 1; min-width: 0; height: 40px; padding: 0 44px 0 13px; font: inherit; font-size: .92rem; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; outline: none; transition: border-color .14s, background .14s; }
.cup-chat-in:focus { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.1); }
.cup-chat-in::placeholder { color: rgba(255,255,255,.4); }
.cup-loc-btn { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; height: 40px; padding: 0 13px; font: inherit; font-size: .88rem; font-weight: 700; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; cursor: pointer; transition: background .14s, border-color .14s; }
.cup-loc-btn i { font-size: .8rem; color: var(--hud-t2); }
.cup-loc-btn:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); }
.cup-chat-in.cd, .cup-loc-btn.cd { color: rgba(255,255,255,.35); }
.cup-ch-cd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: .8rem; font-weight: 700; color: #ff4d5e; pointer-events: none; }
.cup-hint, .cup-chat-keys { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-left: 4px; font-size: .78rem; color: var(--hud-t2); }
.cup-hint span, .cup-chat-keys span { display: inline-flex; align-items: center; gap: 6px; }
.cup-hint kbd, .cup-chat-keys kbd, .cup-tip b { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 5px; background: rgba(255,255,255,.12); font-family: var(--mono); font-size: .7rem; font-weight: 700; color: #fff; }
.cup-chat-keys { display: none; }
.cup-chat:has(.cup-chat-in:not([hidden])) .cup-chat-keys { display: flex; }
.cup-chat:has(.cup-chat-in:not([hidden])) .cup-hint { display: none; }
.cup-x { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 26px; height: 26px; margin: -4px -4px -4px 6px; padding: 0; border: none; border-radius: 8px; background: none; color: var(--hud-t2, #8a8a8a); font-size: .82rem; cursor: pointer; transition: color .14s, background .14s; }
.cup-x:hover { color: var(--white); background: rgba(255,255,255,.1); }
.cup-lb .g-side-h { align-items: center; }
.cup-chat-t { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: none; background: none; font: inherit; color: inherit; cursor: text; }
.cup-pin { display: none; position: absolute; z-index: 2; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 11px; background: var(--hud-bg); color: #fff; font-size: .88rem; cursor: pointer; transition: background .14s; animation: cup-pop .16s ease-out; }
.cup-pin:hover { background: var(--hud-bg2); }
.cup-lb-restore { right: 18px; top: 18px; }
.cup-fs.lb-min .cup-lb { display: none !important; }
.cup-fs.lb-min .cup-lb-restore { display: inline-flex; }
.cup-mm-restore { right: 18px; bottom: 18px; }
.cup-fs.mm-on.mm-min:not(.h-mm) .cup-mm-restore { display: inline-flex; }
.cup-fs.h-all .cup-mm-restore, .cup-fs.h-all .cup-lb-restore, .cup-fs.h-lb .cup-lb-restore, .cup-fs.dead .cup-mm-restore, .cup-fs.blocked .cup-pin { display: none !important; }
.cup-lb, .cup-chat { animation: cup-pop .16s ease-out; }
@keyframes cup-pop { from { opacity: 0; transform: translateY(4px); } }
.cup-chat .cup-chat-list, .cup-chat-hd, .cup-chat .cup-hint { transition: opacity .4s ease; }
.cup-chat { transition: background-color .4s ease; }
.cup-chat.idle:not(:hover):not(:focus-within) { background: rgba(10, 10, 12, .56); }
.cup-chat.idle:not(:hover):not(:focus-within) .cup-chat-list { opacity: .72; }
.cup-chat.idle:not(:hover):not(:focus-within) .cup-chat-hd, .cup-chat.idle:not(:hover):not(:focus-within) .cup-hint { opacity: .5; }
.cup-chat-restore { display: none; position: absolute; left: 18px; bottom: 18px; z-index: 2; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 11px; background: var(--hud-bg); color: #fff; font-size: .88rem; cursor: pointer; transition: background .14s; }
.cup-chat-restore:hover { background: var(--hud-bg2); }
.cup-fs.chat-min .cup-chat { display: none; }
.cup-fs.chat-min .cup-chat-restore { display: inline-flex; }
.cup-fs.h-chat .cup-chat, .cup-fs.h-chat .cup-chat-restore, .cup-fs.h-chat #cupBtnChat { display: none !important; }
.cup-fs.h-lb .cup-lb { display: none !important; }
.cup-fs.h-mass .cup-hud-c { display: none !important; }
.cup-fs.h-hint .cup-hint, .cup-fs.h-hint .cup-tip { display: none !important; }
.cup-fs.h-all .cup-hud, .cup-fs.h-all .cup-lb, .cup-fs.h-all .cup-chat, .cup-fs.h-all .cup-chat-restore, .cup-fs.h-all .cup-tip, .cup-fs.h-all .cup-hint, .cup-fs.h-all #cupBtnChat { display: none !important; }
.cup-fs.h-all.chat-open .cup-chat, .cup-fs.h-chat.chat-open .cup-chat { display: flex !important; }


.cup-touch { position: absolute; right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 2; width: 184px; height: 176px; pointer-events: none; }
.cup-tbtn { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 50%; border: 0; background: rgba(10, 10, 12, .58); color: #fff; font: inherit; -webkit-tap-highlight-color: transparent; pointer-events: auto; touch-action: none; user-select: none; transition: transform .1s, background .12s; }
.cup-tbtn i { font-size: 1.1rem; }
.cup-tbtn span { font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.8); }
.cup-tbtn:active { background: rgba(255, 255, 255, .3); transform: scale(.93); }
#cupBtnSplit { right: 0; bottom: 0; width: 88px; height: 88px; }
#cupBtnSplit i { font-size: 1.45rem; }
#cupBtnSplit span { font-size: .78rem; }
#cupBtnEject { right: 10px; bottom: 100px; width: 66px; height: 66px; }
#cupBtnChat { right: 102px; bottom: 10px; width: 52px; height: 52px; }
#cupBtnPause { right: 102px; bottom: 74px; width: 52px; height: 52px; }
#cupBtnPause.on { background: #fff; color: #000; }
#cupBtnSt { right: 164px; bottom: 42px; width: 52px; height: 52px; }
#cupBtnSt[aria-expanded="true"] { background: rgba(255,255,255,.18); }
.cup-stick { position: absolute; z-index: 2; width: 116px; height: 116px; margin: -58px 0 0 -58px; border-radius: 50%; border: 0; background: rgba(10, 10, 12, .3); pointer-events: none; }
.cup-stick-knob { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255, 255, 255, .5); }

.cup-tip { position: absolute; left: 50%; bottom: 96px; z-index: 3; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 16px; border-radius: 11px; background: var(--hud-bg2); font-size: .9rem; font-weight: 500; color: #fff; white-space: nowrap; pointer-events: none; transition: opacity .25s; }
.cup-tip.out { opacity: 0; }
.cup-tip b { height: 22px; padding: 0 8px; font-size: .74rem; }

.cup-toast { position: absolute; left: 50%; top: 18px; z-index: 5; transform: translateX(-50%) translateY(-8px); padding: 10px 18px; border-radius: 11px; background: var(--hud-bg2); font-size: .9rem; font-weight: 500; color: #fff; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.cup-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

.cup-fs.blocked .cup-touch, .cup-fs.blocked .cup-stick, .cup-fs.blocked .cup-hud, .cup-fs.blocked .cup-lb, .cup-fs.blocked .cup-chat, .cup-fs.blocked .cup-chat-restore, .cup-fs.blocked .cup-tip { display: none !important; }
.cup-fs.btnedit .cup-hud, .cup-fs.btnedit .cup-lb, .cup-fs.btnedit .cup-chat, .cup-fs.btnedit .cup-chat-restore, .cup-fs.btnedit .cup-tip { display: none !important; }

.cup-watchbar { position: absolute; left: 50%; top: 18px; z-index: 3; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 6px 0 16px; border-radius: 12px; background: var(--hud-bg2); font-size: .92rem; font-weight: 600; color: #fff; white-space: nowrap; }
.cup-watchbar > span::before { content: '\f06e'; margin-right: 9px; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: .82rem; color: var(--hud-t2); }
.cup-watchbar .cup-rb { color: var(--hud-t2); }

.cup-over { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.78); animation: cup-fade .2s ease-out; }
@keyframes cup-fade { from { opacity: 0; } }
.cup-over-fixed { position: fixed; z-index: 120; }
.cup-over-p { width: min(380px, calc(100vw - 40px)); max-height: calc(100dvh - 40px); overflow-y: auto; scrollbar-width: none; padding: 24px 26px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); text-align: center; animation: cup-pop .22s ease-out; }
.cup-over-p::-webkit-scrollbar { display: none; }
.cup-over-ic { display: block; margin: 0 auto 14px; font-size: 2rem; color: var(--white); }
.cup-over-ic.turn { animation: cup-turn 1.6s ease-in-out infinite; }
@keyframes cup-turn { 0%, 25% { transform: rotate(0); } 55%, 100% { transform: rotate(-90deg); } }
.cup-over-t { font-size: 1.15rem; font-weight: 700; line-height: 1.3; color: var(--white); }
.cup-over-s { margin-top: 6px; font-size: .9rem; line-height: 1.5; color: #9a9a9a; }
.cup-over-acts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 16px; }
.cup-over-acts .g-action { margin-bottom: 2px; }
.cup-over-a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px; background: var(--bg-raised); border: 1px solid var(--border); color: var(--text); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; transition: background .14s, border-color .14s, color .14s; }
.cup-over-a:hover:not(:disabled) { background: var(--bg-card-hover); border-color: #3a3a3a; color: var(--white); }
.cup-over-a:disabled { cursor: default; color: var(--text-mute); }
#cupDead { align-items: flex-end; padding-bottom: 12vh; background: rgba(0,0,0,.4); }
#cupDead .cup-over-acts { display: flex; flex-wrap: wrap; }
#cupDead .cup-over-acts > * { flex: 1 1 calc(50% - 4px); min-width: 0; }
#cupDead .cup-over-acts > .g-action { flex-basis: 100%; }
#cupDead .cup-over-a { white-space: nowrap; padding: 0 10px; }
#cupDead .cup-over-a i { font-size: .8em; color: #8a8a8a; }
#cupDead .cup-over-a:hover i { color: var(--white); }
.cup-dead-p { width: min(400px, calc(100vw - 32px)); }
#cupRespawn.cup-again { height: 58px; font-size: 1.25rem; font-weight: 800; }
#cupRespawn { position: relative; }
.cup-over-link { display: flex; align-items: center; gap: 7px; margin: 14px auto 0; padding: 0; border: 0; background: none; font: inherit; font-size: .84rem; color: #9a9a9a; cursor: pointer; transition: color .14s; }
.cup-over-link:hover:not(:disabled) { color: var(--white); }
.cup-over-link:disabled { cursor: default; color: var(--text-mute); }
@media (pointer: coarse) {
    #cupRespawn kbd, .cup-pause .cup-pause-k { display: none; }
    .cup-hud .cup-pause { padding-right: 13px; }
}
.cup-help-rules { padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.cup-help-rules li { font-size: .92rem; color: var(--text); }
.cup-help-rules li[hidden] { display: none; }
@media (pointer: coarse) {
    #cupKeys .cup-kl { display: none; }
    .cup-help-rules { padding-bottom: 0; border-bottom: 0; }
}

.cup-dead-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 14px; text-align: left; }
.cup-ds { display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; border-radius: 10px; background: var(--bg-raised); }
.cup-dead-stats > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.cup-ds b { font-size: 1.05rem; font-weight: 700; line-height: 1.2; color: var(--white); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cup-ds span { font-size: .8rem; line-height: 1.3; color: #9a9a9a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cup-dead-rec { margin-top: 14px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-raised); text-align: left; }
.cup-dead-rec-l { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; font-size: .84rem; color: var(--text-2); }
.cup-dead-rec-l b { font-size: 1.15rem; font-weight: 800; color: var(--white); font-variant-numeric: tabular-nums; }
.cup-dead-rec-l span:last-child:not(:first-child) { margin-left: auto; font-size: .76rem; color: #8a8a8a; }
.cup-dead-rec.new { border-color: rgba(255, 196, 0, .55); background: rgba(255, 196, 0, .08); animation: cup-rec-in .32s ease-out; }
.cup-dead-rec.new .cup-dead-rec-l { align-items: center; }
.cup-dead-rec.new .cup-dead-rec-l i { font-size: 1.05rem; color: var(--cup-gold); }
.cup-dead-rec.new .cup-dead-rec-l b { font-family: var(--body); font-size: 1.2rem; color: var(--cup-gold); }
.cup-dead-rec-l strong { font-size: 1.1rem; font-weight: 800; color: var(--white); font-variant-numeric: tabular-nums; }
.cup-dead-bar { height: 6px; margin-top: 9px; border-radius: 999px; background: #2a2a2a; overflow: hidden; }
.cup-dead-bar i { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--white); transform-origin: left center; animation: cup-bar-in .4s ease-out; }
.cup-dead-rec em { display: block; margin-top: 7px; font-style: normal; font-size: .8rem; line-height: 1.4; color: #9a9a9a; }
.cup-dead-badge { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: .86rem; color: var(--text-2); text-align: left; }
.cup-dead-badge i { color: var(--cup-gold); }
.cup-dead-badge b { font-size: .84rem; font-weight: 700; color: var(--white); }
.cup-dead-badge.new { border-color: rgba(255, 196, 0, .55); animation: cup-rec-in .32s ease-out; }
.cup-dead-badge.far { color: #9a9a9a; font-size: .82rem; }
.cup-dead-badge.far i { color: #8a8a8a; }
@keyframes cup-rec-in { from { opacity: 0; transform: scale(.96); } }
@keyframes cup-bar-in { from { transform: scaleX(0); } }

.cup-ev .cup-st-t { color: var(--cup-ev); }
.cup-st-row.cup-ev.on { background: rgba(255, 150, 0, .08); }
.cup-ev-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 1rem; font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; }
.cup-ev-when span { font-size: .9rem; font-weight: 500; color: var(--text-2); }
.cup-ev.on .cup-ev-when { color: var(--cup-ev); }
.cup-ev-sub { margin-top: 3px; font-size: .9rem; line-height: 1.4; color: #9e9e9e; }
.cup-ev-row { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.cup-ev-row .cup-ev-go { order: -1; margin-left: 0; }
.cup-ev-n { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: .84rem; color: var(--text-2); white-space: nowrap; }
.cup-ev-n i { font-size: .78rem; color: #8a8a8a; }
.cup-ev-go { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0; height: 36px; margin-left: auto; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); color: var(--white); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.cup-ev-go:hover { border-color: #3a3a3a; background: var(--bg-card-hover); }
.cup-ev-go i { display: none; font-size: .8em; }
.cup-ev-go.on { border-color: #3a3a3a; background: none; color: var(--text-2); }
.cup-ev-go.on i { display: inline; }
.cup-ev-go:disabled { opacity: .6; cursor: default; }
.cup-empty { display: flex; align-items: flex-start; justify-content: center; gap: 9px; margin-bottom: 10px; font-size: .86rem; line-height: 1.4; color: #8a8a8a; }
.cup-empty i { margin-top: 3px; font-size: .8rem; color: #6a6a6a; }

.cup-fs { --hud-bg: rgba(10, 10, 12, .76); --hud-bg2: rgba(10, 10, 12, .86); --hud-t2: rgba(255, 255, 255, .62); }
.cup-fs.map-light { --hud-bg: rgba(16, 18, 24, .8); --hud-bg2: rgba(16, 18, 24, .9); }
.cup-evtag { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border-radius: 11px; background: var(--hud-bg); color: var(--cup-ev); font-size: .88rem; font-weight: 700; white-space: nowrap; animation: cup-pop .24s ease-out; }
.cup-evtag i { font-size: .82rem; }
.cup-pause { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 8px 0 13px; border-radius: 11px; background: var(--hud-bg); color: #fff; font-size: .92rem; font-weight: 700; white-space: nowrap; animation: cup-pop .24s ease-out; }
.cup-pause[hidden] { display: none; }
.cup-pause-k { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 6px; border: 1px solid rgba(255,255,255,.22); border-bottom-width: 2px; border-radius: 6px; font-family: var(--mono); font-size: .74rem; font-weight: 700; color: rgba(255,255,255,.8); }
.cup-qhud { position: absolute; left: 18px; top: 60px; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 9px; max-width: min(340px, calc(100vw - 320px)); padding: 7px 12px 9px; border-radius: 11px; background: var(--hud-bg); font-size: .88rem; color: #fff; white-space: nowrap; }
.cup-qhud > i { font-size: .8rem; color: var(--hud-t2); }
.cup-qhud span { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.cup-qhud b { font-family: var(--mono); font-size: .86rem; font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; }
.cup-qhud-bar { grid-column: 1 / -1; height: 3px; margin-top: 6px; border-radius: 999px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.cup-qhud-bar s { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--white); transform: scaleX(0); transform-origin: left center; transition: transform .35s ease-out; }
.cup-fs.dead .cup-touch { opacity: 0; pointer-events: none; }
.cup-fs.h-all .cup-qhud, .cup-fs.dead .cup-qhud, .cup-fs.blocked .cup-qhud, .cup-fs.btnedit .cup-qhud { display: none !important; }

.cup-inv { z-index: 135; }
.cup-clip { z-index: 137; }
.cup-clip-p { width: 640px; gap: 14px; }
.cup-clip-box { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #050506; }
.cup-clip-box video, .cup-clip-box img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cup-clip-prog { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: .92rem; font-weight: 600; color: var(--text-2); }
.cup-clip-prog i { display: block; width: 46%; height: 4px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.cup-clip-prog s { display: block; width: 100%; height: 100%; background: var(--white); transform: scaleX(0); transform-origin: left center; transition: transform .2s linear; }
.cup-clip-acts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.cup-clip-acts > * { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 0; width: 100%; height: 46px; margin: 0; padding: 0 12px; line-height: 1; text-decoration: none; }
.cup-clip-acts .g-action { border: 1px solid transparent; }
.cup-clip-acts .off { opacity: .35; pointer-events: none; }
body:has(#cupClip:not([hidden])) .cup-dead-p { visibility: hidden; }
.cup-clip-st { font-size: .86rem; color: var(--text-2); text-align: center; }
.cup-clip-st a { color: var(--white); font-weight: 600; text-decoration: none; border-bottom: 1px solid #3a3a3a; }
.cup-clip-card { padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); }
.cup-clip-media { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; background: #050506; object-fit: contain; }
.cup-clip-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 14px; }
.cup-clip-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; min-width: 0; font-size: .92rem; color: var(--text-2); }
.cup-clip-who a { font-size: 1.1rem; font-weight: 700; color: var(--white); text-decoration: none; }
.cup-clip-who a:hover { text-decoration: underline; }
.cup-clip-who b { font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; }
.cup-clip-pa { display: flex; align-items: center; gap: 16px; }
.cup-clip-pa .g-action { display: inline-flex; align-items: center; justify-content: center; width: auto; height: 46px; margin: 0; padding: 0 32px; }
.cup-clip-pa .cup-over-a { height: 46px; padding: 0 4px; border: 0; background: none; color: rgba(255,255,255,.6); }
.cup-clip-pa .cup-over-a:hover { background: none; color: var(--white); }
@media (max-width: 560px) {
    .cup-clip-page > .container { padding-left: 16px; padding-right: 16px; }
    .cup-clip-card { padding: 12px; }
    .cup-clip-meta { flex-direction: column; align-items: stretch; }
    .cup-clip-pa .g-action { flex: 1; }
}
@media (max-height: 500px) and (orientation: landscape) {
    .cup-clip-page { padding-top: 16px; }
    .cup-clip-page .crumbs { display: none; }
    .cup-clip-media { width: auto; max-width: 100%; max-height: calc(100dvh - 180px); margin: 0 auto; }
}
@media (max-height: 520px) {
    .cup-clip-p { width: min(640px, calc((100dvh - 132px) * 16 / 9 + 32px)); padding: 12px 16px 14px; gap: 10px; }
    .cup-clip-acts > * { height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
    .cup-clip-prog s { transition: none; }
}
.cup-inv-p { width: 400px; gap: 10px; }
.cup-inv-hd { display: flex; align-items: center; gap: 8px; }
.cup-inv-hd .cup-set-t { flex: 1; }
.cup-inv-k { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 7px; background: var(--bg-raised); font-family: var(--mono); font-size: .68rem; font-weight: 700; color: #8a8a8a; }
.cup-inv-x { margin: 0; width: 32px; height: 32px; }
.cup-inv-s { font-size: .78rem; line-height: 1.4; color: #8a8a8a; text-wrap: balance; }
.cup-inv-list { display: flex; flex-direction: column; gap: 4px; max-height: min(420px, calc(100dvh - 180px)); overflow-y: auto; margin: 0 -8px; padding: 0; scrollbar-width: thin; scrollbar-color: #2b2b2b transparent; }
.cup-inv-row { display: flex; align-items: center; gap: 11px; min-height: 52px; padding: 6px 8px; border-radius: 12px; transition: background .15s; }
.cup-inv-row:hover { background: var(--bg-raised); }
.cup-inv-av { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--bg-raised); color: #6a6a6a; font-size: .8rem; }
.cup-inv-n { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cup-inv-n b { font-size: .88rem; font-weight: 600; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cup-inv-st { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--text-2); }
.cup-inv-st i { font-size: .42rem; color: #8a8a8a; }
.cup-inv-st.cup { color: var(--g-win); }
.cup-inv-st.cup i { color: var(--g-win); }
.cup-inv-n em { font-style: normal; font-size: .72rem; color: var(--g-lose); }
.cup-inv-b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; min-width: 100px; height: 38px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-raised); color: var(--white); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; transition: opacity .15s, background .15s, color .15s; }
.cup-inv-b:hover:not(:disabled) { background: var(--bg-card-hover); border-color: #3a3a3a; }
.cup-inv-b:disabled { cursor: default; opacity: .6; }
.cup-inv-b.done { background: none; color: var(--g-win); border-color: rgba(106, 171, 144, .5); opacity: 1; }
.cup-inv-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 0; font-size: .84rem; color: #8a8a8a; }
.cup-inv-empty a { color: var(--white); font-weight: 600; text-decoration: none; border-bottom: 1px solid #3a3a3a; }
@media (pointer: coarse) {
    .cup-inv-k { display: none; }
    .cup-inv-x { width: 44px; height: 44px; }
    .cup-inv-b { height: 44px; }
    .cup-ev-go { height: 44px; }
}
@media (max-height: 520px) {
    #cupDead { align-items: center; padding: 8px; }
    .cup-dead-p { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; column-gap: 14px; width: min(780px, calc(100vw - 24px)); padding: 12px 14px; }
    .cup-dead-p > .cup-over-t { grid-column: 1 / -1; }
    .cup-dead-p > .cup-dead-rec, .cup-dead-p > .cup-dead-stats, .cup-dead-p > .cup-dead-badge { grid-column: 1; }
    .cup-dead-p > .cup-over-acts { grid-column: 2; grid-row: 2 / span 2; margin-top: 8px; }
    .cup-dead-p > .cup-over-link { grid-column: 2; grid-row: 4; align-self: center; margin-top: 8px; }
    .cup-dead-stats > :nth-child(5):last-child { grid-column: span 2; }
    .cup-dead-stats > :nth-child(4):last-child { grid-column: span 3; }
    .cup-dead-stats > :nth-child(3):last-child { grid-column: auto; }
    .cup-lb-clan, .cup-lb-cnt { display: none; }
    .cup-dead-rec { margin-top: 8px; padding: 8px 10px; }
    .cup-dead-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; }
    .cup-ds { padding: 5px 8px; }
    .cup-ds b { font-size: .86rem; }
    #cupRespawn.cup-again { height: 50px; }
    #cupDead .cup-over-a { white-space: nowrap; padding: 0 8px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .cup-dead-rec.new, .cup-dead-badge.new, .cup-dead-bar i, .cup-evtag, .cup-pause, .cup-over, .cup-over-p, .cup-over-ic.turn, .cup-set, .cup-set-p, .cup-st-row, .cup-ch-row, .cup-lb, .cup-chat, .cup-pin, .cup-ctx, .cup-skinmodal-w, .cup-stpop { animation: none; }
    .cup-q-row i::before, .cup-qhud-bar s, .cup-color, .cup-go .g-action, .cup-chat, .cup-chat-list, .cup-chat-hd, .cup-set input.cup-sw, .cup-set input.cup-sw::before { transition: none; }
    .cup-color:hover, .cup-go .g-action:not(:disabled):hover, .cup-skin:hover { transform: none; }
}
.cup-fs.dead .cup-hud, .cup-fs.dead .cup-chat, .cup-fs.dead .cup-chat-restore, .cup-fs.dead .cup-tip { opacity: 0; pointer-events: none; transition: opacity .2s; }

.cup-set { position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.78); animation: cup-fade .2s ease-out; }
.cup-set-p { width: 420px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 24px); overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 12px; padding: 20px 24px 22px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; animation: cup-pop .22s ease-out; }
.cup-set-p::-webkit-scrollbar { display: none; }
.cup-set-t { font-size: 1.15rem; font-weight: 700; color: var(--white); }
.cup-cset-l { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--border); font-size: .88rem; font-weight: 700; color: var(--white); }
.cup-inv-hd + .cup-cset-l { margin-top: 0; padding-top: 4px; border-top: 0; }
.cup-cset-row { display: flex; align-items: center; gap: 12px; min-height: 30px; font-size: .92rem; color: var(--text); cursor: pointer; }
.cup-cset-row > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cup-cset-row i { font-style: normal; font-size: .8rem; color: #8a8a8a; }
.cup-cset-row b { font-family: var(--mono); font-size: .84rem; font-weight: 600; color: var(--text-2); width: 44px; text-align: right; }
.cup-set .cup-cset-row select { -webkit-appearance: none; appearance: none; width: auto; height: 34px; padding: 0 12px; font: inherit; font-size: .86rem; color: var(--white); background: var(--bg-raised); border: 1px solid var(--border); border-radius: 9px; cursor: pointer; }
.cup-cset-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-raised); }
.cup-cset-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; border: 0; border-radius: 9px; background: none; color: var(--text-2); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.cup-cset-seg button:hover { color: var(--white); background: var(--bg-card-hover); }
.cup-cset-seg button.sel { background: var(--btn); color: #111; }
.cup-cset-net { display: flex; flex-direction: column; gap: 8px; }
.cup-set .cup-cset-tabs { display: flex; gap: 20px; margin: -2px 0 2px; border-bottom: 1px solid var(--border); }
.cup-set .cup-cset-tabs .cup-sk-tab { height: 40px; margin-bottom: -1px; border-bottom: 2px solid transparent; }
.cup-set .cup-cset-tabs .cup-sk-tab.sel { color: var(--white); border-bottom-color: var(--white); cursor: default; }
.cup-cset-pane { display: flex; flex-direction: column; gap: 12px; }
.cup-cset-pane[hidden] { display: none; }
.cup-cset-pane > .cup-cset-l:first-child { margin-top: 0; padding-top: 4px; border-top: 0; }
.cup-cset-seg4 { grid-template-columns: repeat(4, 1fr); }
.cup-cset-seg4 button { font-size: .84rem; }
.cup-cset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.cup-cset-grid label { display: flex; align-items: center; gap: 10px; min-height: 26px; font-size: .9rem; color: var(--text); cursor: pointer; }
.cup-cset-grid label:has(input:disabled) { opacity: .4; cursor: default; }
.cup-cset-btns { display: flex; gap: 8px; }
.cup-cset-foot { position: sticky; bottom: -22px; z-index: 1; display: flex; gap: 8px; margin: 6px 0 -22px; padding: 12px 0 22px; background: var(--bg-card); }
.cup-cset-foot .g-action { flex: 1; width: auto; }
.cup-cset-keys { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-raised); color: var(--text); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.cup-cset-keys:hover { background: var(--bg-card-hover); border-color: #3a3a3a; }
.cup-set input[type=checkbox] { -webkit-appearance: none; appearance: none; flex-shrink: 0; width: 20px; height: 20px; margin: 0; border: 1px solid #333; border-radius: 6px; background: var(--bg-raised); cursor: pointer; transition: background .14s, border-color .14s; }
.cup-set input[type=checkbox]:hover { border-color: #4a4a4a; }
.cup-set input[type=checkbox]:checked { background: var(--btn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23111'%3E%3Cpath d='M9.6 17.2 4.4 12l1.7-1.7 3.5 3.5 8-8L19.3 7.5z'/%3E%3C/svg%3E") center / 13px auto no-repeat; border-color: var(--btn); }
.cup-set input.cup-sw { position: relative; width: 40px; height: 24px; border: 0; border-radius: 999px; background: #2e2e2e; transition: background .18s; }
.cup-set input.cup-sw::before { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #9a9a9a; transition: transform .18s, background .18s; }
.cup-set input.cup-sw:checked { background: var(--btn); }
.cup-set input.cup-sw:checked::before { transform: translateX(16px); background: #111; }
.cup-set input.cup-sw:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.cup-set input[type=range] { -webkit-appearance: none; appearance: none; width: 130px; height: 4px; border-radius: 999px; background: #2e2e2e; outline: none; cursor: pointer; }
.cup-set input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: none; cursor: pointer; }
.cup-set input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: none; cursor: pointer; }
.cup-kl { display: flex; flex-direction: column; gap: 2px; }
.cup-kl-g { margin: 12px 0 4px; font-size: .8rem; font-weight: 700; color: #8a8a8a; }
.cup-kl-g:first-child { margin-top: 0; }
.cup-kl span { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 32px; font-size: .92rem; color: var(--text); }
.cup-kl kbd, .cup-set-p .cup-inv-k { justify-self: start; }
.cup-kl kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 26px; padding: 0 8px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 7px; background: var(--bg-raised); font-family: var(--mono); font-size: .76rem; font-weight: 700; color: var(--white); }
.cup-keys-o { z-index: 136; }

.cup-btnedit { position: fixed; left: 50%; top: 16px; z-index: 140; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 9px 11px 9px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; font-size: .9rem; color: var(--text); white-space: nowrap; }
.cup-btnedit .btn { padding: 7px 16px; }

@media (min-width: 901px) and (max-width: 1099px) {
    .cup-lobby.g-card { grid-template-columns: 250px minmax(0, 1fr); gap: 24px; padding: 20px; }
    .cup-prev { width: 180px; height: 180px; }
    .cup-prev span { line-height: 180px; font-size: 1.05rem; }
}
@media (min-width: 901px) and (max-height: 820px) {
    .cup-section { padding-top: 26px; padding-bottom: 32px; }
    .cup-skins { max-height: 360px; }
}

@media (max-width: 900px) {
    .section.cup-section { padding-bottom: 124px; }
    .cup-lobby.g-card { grid-template-columns: 112px minmax(0, 1fr); gap: 18px; padding: 16px; }
    .cup-me { display: contents; }
    .cup-prev-w { grid-column: 1; grid-row: 1; align-self: center; }
    .cup-look-c { grid-column: 2; grid-row: 1; align-self: center; }
    .cup-gst { grid-column: 1 / -1; order: 1; }
    .cup-lobby #cupSkinBox { grid-column: 1 / -1; order: 2; }
    .cup-l-acts { grid-column: 1 / -1; order: 3; margin-top: 0; }
    .cup-info.g-card { padding: 0 16px; }
    .cup-prev { width: 112px; height: 112px; }
    .cup-prev span { line-height: 112px; font-size: .9rem; -webkit-text-stroke-width: 1.6px; }
    .cup-skins { max-height: 262px; overscroll-behavior: contain; }
    .cup-lobby .cup-go { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--border); }
    .cup-lobby .cup-go .g-actions { position: static; margin: 0; padding: 0; background: none; }
    .cup-lobby .cup-go .g-action { max-width: 520px; height: 52px; margin: 0 auto; }
    .cup-lobby .cup-under { margin-top: 6px; }
    .cup-lobby .cup-empty { margin: 0 0 8px; font-size: .84rem; }
    .cup-fxc { gap: 6px; }
    .cup-fxc > i { display: none; }
    .cup-go .g-action kbd { display: none; }
}

@media (max-width: 560px) {
    .cup-skins { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 20px), transparent); }
    .cup-lobby.g-card { grid-template-columns: 100px minmax(0, 1fr); gap: 16px 14px; }
    .cup-prev { width: 100px; height: 100px; }
    .cup-prev span { line-height: 100px; font-size: .8rem; -webkit-text-stroke-width: 1.3px; }
    .cup-colors { gap: 8px; }
    .cup-skins { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 12px; }
    .cup-lobby.g-card { padding: 13px; }
    .cup-adm-in { min-height: 44px; font-size: 16px; }
}

@media (max-height: 460px) and (orientation: landscape) {
    .cup-section { padding-top: 44px; padding-bottom: 84px; }
    .cup-section .crumbs { display: none; }
    .cup-section .g-wrap { max-width: 820px; }
    .cup-section .g-band { height: 150px; }
    .g-page-head .section-title { font-size: 1.3rem; }
    .cup-lobby.g-card { grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px 18px; padding: 14px; }
    .cup-lobby .cup-prev { width: 96px; height: 96px; }
    .cup-lobby .cup-prev span { line-height: 96px; font-size: .8rem; }
    .cup-lobby .cup-gst, .cup-lobby .cup-l-acts { grid-column: 1 / span 2; }
    .cup-lobby #cupSkinBox { grid-column: 3; grid-row: 1 / span 3; order: 0; }
    .cup-lobby .cup-skins { max-height: 210px; }
    .cup-st-row { padding: 10px 12px; }
    .cup-lobby .cup-go { padding: 7px 14px calc(7px + env(safe-area-inset-bottom, 0px)); }
    .cup-lobby .cup-go .g-action { height: 44px; max-width: 420px; font-size: 1.1rem; }
    .cup-lobby .cup-empty { display: none; }
}

@media (max-width: 900px) {
    .cup-card { padding: 9px 11px; }
    .cup-hud { left: calc(58px + env(safe-area-inset-left, 0px)); top: calc(10px + env(safe-area-inset-top, 0px)); height: 38px; }
    .cup-hud-c { height: 38px; padding: 0 12px; }
    .cup-mass { font-size: 1.05rem; }
    .cup-lb { right: calc(10px + env(safe-area-inset-right, 0px)); top: 10px; width: 176px; padding: 8px 6px 6px; }
    .cup-lb .g-side-h { font-size: .82rem; margin-bottom: 4px; }
    .cup-lb-row { font-size: .8rem; padding: 2px 6px; min-height: 24px; }
    .cup-lb-m { font-size: .76rem; }
    #cupLbList .cup-lb-row:nth-child(n+4):not(.me) { display: none; }
    .cup-lb.spect { width: 210px; }
    .cup-chat { left: calc(10px + env(safe-area-inset-left, 0px)); top: 118px; bottom: auto; width: 270px; padding: 8px; gap: 6px; }
    .cup-fs.chat-open .cup-chat { top: calc(56px + env(safe-area-inset-top, 0px)); z-index: 5; width: min(380px, calc(100vw - 220px)); }
    .cup-chat .cup-ch-row { font-size: .82rem; padding: 3px 5px; }
    .cup-chat-list { max-height: 24vh; }
    .cup-fs.chat-open .cup-chat-list { max-height: 20vh; }
    .cup-fs.chat-open .cup-qhud { display: none !important; }
    .cup-fs:not(.chat-open) .cup-chat .cup-ch-row:nth-last-child(n+5) { display: none; }
    .cup-chat .cup-ch-more { display: none !important; }
    .cup-chat-restore { display: none !important; }
    .cup-chat-keys { display: none !important; }
    .cup-hud { z-index: 4; }
    .cup-hint { display: none; }
    .cup-qhud { left: calc(10px + env(safe-area-inset-left, 0px)); top: calc(56px + env(safe-area-inset-top, 0px)); max-width: calc(100vw - 220px); padding: 5px 10px 7px; font-size: .8rem; }
    .cup-evtag { height: 38px; padding: 0 11px; font-size: .8rem; }
    .cup-tip { top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); left: 50%; max-width: calc(100vw - 420px); min-width: 0; }
    .cup-tip span { overflow: hidden; text-overflow: ellipsis; }
    .cup-watchbar { top: 56px; }
}

@media (max-width: 600px) {
    .cup-lb { width: 150px; }
    .cup-lb-clan, .cup-lb-cnt { display: none; }
}

@media (pointer: coarse) {
    .cup-rb { width: 44px; height: 44px; border-radius: 14px; font-size: .95rem; }
    .cup-chat-min { width: 40px; height: 40px; }
    .cup-lb-eye { width: 36px; height: 36px; font-size: .82rem; }
    .cup-loc-btn, .cup-chat-in { height: 44px; }
    .cup-chat-in { font-size: 16px; }
    .cup-fr-go { height: 44px; }
    .cup-l-act { height: 48px; }
    .cup-cset-seg button { height: 42px; }
    input.cup-hue { height: 44px; }
    input.cup-hue::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -7px; }
    input.cup-hue::-moz-range-thumb { width: 20px; height: 20px; }
    .cup-adm-hd { min-height: 44px; }
}

.cup-skinmodal { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.3); display: flex; align-items: stretch; justify-content: flex-end; padding: 0; }
.cup-skinmodal[hidden] { display: none; }
.cup-skinmodal-w { position: relative; display: flex; flex-direction: column; width: min(400px, 100%); height: 100%; overflow: hidden; background: #101012; border-left: 1px solid #23232a; padding: 16px calc(16px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) 16px; animation: cup-drawer .18s ease-out; }
@keyframes cup-drawer { from { opacity: 0; transform: translateX(24px); } }
.cup-skinmodal-slot { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cup-skinmodal-w:has(.cup-skins.is-empty) { height: auto; align-self: flex-start; margin: 12px; border: 1px solid #23232a; border-radius: 14px; }
.cup-skinmodal .cup-pick { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 0; }
.cup-skinmodal .cup-skins-hd { padding-right: 44px; }
.cup-skinmodal .cup-skins-hd .cup-pick-h { min-height: 32px; display: flex; align-items: center; }
@media (pointer: coarse) {
    .cup-lobby .sk-many .cup-sk-bar, .cup-lobby .sk-many .cup-sk-chips, .cup-lobby .sk-many #cupSkSort, .cup-lobby .sk-many #cupSkReset, .cup-lobby .sk-many .cup-sk-head { display: none !important; }
    .cup-lobby .sk-many .cup-skins { display: flex; flex: none; gap: 12px; min-height: 0; max-height: none; padding: 6px; overflow-x: auto; overflow-y: hidden; contain: none; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
    .cup-lobby .sk-many .cup-skins::-webkit-scrollbar { display: none; }
    .cup-lobby .sk-many .cup-skin { flex: 0 0 64px; width: 64px; }
    .cup-lobby .cup-sk-all { display: flex; }
    .cup-skinmodal-w { width: 100%; padding: 10px calc(12px + env(safe-area-inset-right)) 10px calc(12px + env(safe-area-inset-left)); }
    .cup-skinmodal #cupSkinBox.sk-many { display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); column-gap: 14px; }
    .cup-skinmodal .sk-many .cup-skins-hd { grid-column: 1; grid-row: 1; padding-right: 0; gap: 10px; }
    .cup-skinmodal .sk-many .cup-sk-bar { grid-column: 1; grid-row: 2; flex-direction: column; gap: 2px; margin-bottom: 2px; }
    .cup-skinmodal .sk-many .cup-sk-q { flex: none; margin-bottom: 6px; }
    .cup-skinmodal .sk-many .cup-sk-fb { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0 12px; border: 0; background: none; color: rgba(255,255,255,.82); font-size: .96rem; font-weight: 500; }
    .cup-skinmodal .sk-many .cup-sk-fb.on, .cup-skinmodal .sk-many .cup-sk-fb[aria-expanded="true"] { background: rgba(255,255,255,.1); color: #fff; }
    .cup-skinmodal .sk-many .cup-sk-fb b { font-weight: 500; opacity: .55; }
    .cup-skinmodal .sk-many .cup-sk-pop { top: 104px; }
    .cup-skinmodal .sk-many #cupSkReset { display: none; }
    .cup-skinmodal .sk-many .cup-sk-rs { display: flex; margin-top: 10px; }
    .cup-skinmodal .sk-many .cup-sk-chips { grid-column: 1; grid-row: 3; flex-direction: column; gap: 2px; margin: 0; overflow-x: hidden; overflow-y: auto; -webkit-mask-image: none; mask-image: none; }
    .cup-skinmodal .sk-many .cup-sk-chip { justify-content: space-between; width: 100%; height: 44px; border-radius: 10px; background: none; font-size: .96rem; }
    .cup-skinmodal .sk-many .cup-sk-chip.on { background: rgba(255,255,255,.1); color: #fff; }
    .cup-skinmodal .sk-many .cup-sk-gap { display: block; width: auto; height: 10px; }
    .cup-skinmodal .sk-many .cup-skins { grid-column: 2; grid-row: 1 / span 3; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 12px; padding: 14px 6px 6px 0; }
    .cup-skinmodal .sk-many .cup-skin-q, .cup-skinmodal .sk-many .cup-sk-fb { height: 44px; font-size: 16px; }
    .cup-skinmodal .sk-many .cup-sk-qx { top: 6px; }
    .cup-skinmodal .sk-many .cup-sk-pop { right: auto; width: min(420px, calc(100vw - 60px)); max-height: calc(100dvh - 140px); overflow-y: auto; padding-bottom: 16px; }
    .cup-skinmodal .sk-many .cup-sk-rars button, .cup-sk-menu button { height: 44px; }
    .cup-skinmodal-x { top: 8px; z-index: 5; width: 44px; height: 44px; background: rgba(8,8,10,.8); border-radius: 50%; }
    .cup-skinmodal #cupSkinBox.sk-many .cup-skins { padding-right: 52px; }
    .cup-skinmodal .sk-many .cup-skins-hd { flex-wrap: wrap; row-gap: 0; }
    .cup-skinmodal #cupSkinBox.sk-many.tab-st { display: flex; }
    .cup-skinmodal #cupSkinBox.tab-st .cup-skins-hd { padding-right: 52px; }
    .cup-skin:not(.fav):not(.sel) .cup-skin-star { display: none; }
    .cup-skin-star { top: -6px; right: -6px; width: 32px; height: 32px; font-size: .8rem; opacity: 1; }
    .cup-skin.sel .cup-skin-star { top: -11px; right: -11px; }
    .cup-skin-star::after { inset: -4px; }
}
.cup-skinmodal .cup-skins { flex: 1; min-height: 0; max-height: none; grid-auto-rows: max-content; align-content: start; padding: 5px; -webkit-mask-image: none; mask-image: none; }
.cup-skinmodal-x { position: absolute; top: 16px; right: calc(12px + env(safe-area-inset-right)); z-index: 2; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; background: none; border: 0; border-radius: 8px; color: #8a8a8a; font-size: 1rem; cursor: pointer; }
.cup-skinmodal-x:hover { color: #e6e6e6; background: #1c1c20; }
@media (pointer: coarse) {
    .cup-skinmodal-x { top: 4px; width: 44px; height: 44px; }
}
.cup-dead-killer { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
@media (pointer: coarse) {
    .cup-mm-restore { right: auto; left: calc(10px + env(safe-area-inset-left, 0px)); bottom: 10px; width: 44px; height: 44px; }
    .cup-lb-restore { right: 10px; top: 10px; width: 44px; height: 44px; }
    .cup-x { width: 32px; height: 32px; }
}
.cup-ctx { position: fixed; z-index: 80; min-width: 190px; padding: 5px; background: #141416; border: 1px solid #26262b; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.45); animation: cup-pop .12s ease-out; }
.cup-ctx[hidden] { display: none; }
.cup-ctx button { display: flex; align-items: center; gap: 11px; width: 100%; height: 38px; padding: 0 11px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: .9rem; font-weight: 500; text-align: left; cursor: pointer; }
.cup-ctx button:hover, .cup-ctx button:focus-visible { background: var(--bg-card-hover); outline: none; }
.cup-ctx i { width: 15px; font-size: .84rem; color: #8a8a8a; text-align: center; }
.cup-ctx-h { display: flex; align-items: center; gap: 9px; padding: 7px 11px 8px; margin-bottom: 4px; border-bottom: 1px solid #26262b; font-size: .86rem; font-weight: 700; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
@media (pointer: coarse) {
    .cup-ctx button { height: 44px; }
}
.cl-head { align-items: center; margin-bottom: 14px; }
.cl-head .section-title { margin-bottom: 0; }
.cl-stats { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.cl-stat { display: inline-flex; align-items: baseline; gap: 7px; font-size: .84rem; color: #8a8a8a; }
.cl-stat i { font-size: .74rem; color: #6a6a6a; }
.cl-stat b { font-family: var(--mono); font-size: .95rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.cl-stat b.off { color: #6a6a6a; }
.cl-who { font-size: .78rem; color: #8a8a8a; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-ib { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--border); border-radius: 11px; background: none; color: #8a8a8a; font-size: .86rem; cursor: pointer; transition: color .14s, background .14s; }
.cl-ib:hover { color: var(--white); background: var(--bg-card-hover); }
.cl-stats .cl-ib + .cl-ib { margin-left: -10px; }
.cl-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px; padding: 0 2px; }
.cl-k { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; color: #9a9a9a; white-space: nowrap; }
.cl-k kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px; padding: 0 7px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 7px; background: var(--bg-raised); font-family: var(--mono); font-size: .76rem; font-weight: 700; color: var(--text); }
.cl-rules-l { margin-left: auto; font-size: .8rem; color: #8a8a8a; text-decoration: none; border-bottom: 1px solid #3a3a3a; }
.cl-rules-l:hover { color: var(--white); border-bottom-color: var(--white); }
.cup-l-n, .cup-q-row b, .cup-ct-row b, .cup-mass, .cup-lb-cnt, .cup-lb-i, .cup-lb-m, .cup-qhud b, .cup-cset-row b, .cl-stat b, .cup-ping-bad, .cup-ch-cd { font-family: var(--body); font-variant-numeric: tabular-nums; }
.cup-mass { font-weight: 800; }
@media (min-width: 1200px) {
    .cup-section .g-wrap { max-width: 1080px; }
}
@media (min-width: 2200px) and (min-height: 1300px) {
    .cup-section .g-wrap, .cup-hud, .cup-qhud, .cup-lb, .cup-chat, .cup-pin, .cup-chat-restore, .cup-tip, .cup-toast, .cup-watchbar, .cup-over-p, .cup-set-p, .cup-menu, .cup-menu-p, .cup-skinmodal-w { zoom: 1.3; }
}
@media (min-width: 3200px) and (min-height: 1800px) {
    .cup-section .g-wrap, .cup-hud, .cup-qhud, .cup-lb, .cup-chat, .cup-pin, .cup-chat-restore, .cup-tip, .cup-toast, .cup-watchbar, .cup-over-p, .cup-set-p, .cup-menu, .cup-menu-p, .cup-skinmodal-w { zoom: 1.6; }
}
@media (max-width: 900px) {
    .cl-stats { gap: 12px; }
    .cl-keys { display: none; }
}
@media (max-width: 560px) {
    .cl-head { flex-wrap: wrap; row-gap: 10px; }
    .cl-stats { width: 100%; margin-left: 0; }
    .cl-stats .cl-ib:first-of-type { margin-left: auto; }
}

.cup-g-tag { margin-left: 5px; font-size: .62rem; font-style: normal; color: var(--text-2); vertical-align: 1px; }
.cup-gst { display: flex; flex-direction: column; gap: 6px; }
.cup-gst[hidden] { display: none; }
.cup-gst-l { font-size: .8rem; font-weight: 600; color: var(--text-2); }
.cup-gst .cup-gst-in { height: 44px; font-size: .95rem; }
.cup-gst .cup-gst-in[aria-invalid="true"] { border-color: var(--danger); }
.cup-gst-err { font-size: .8rem; color: var(--danger); }
.cup-gst-err[hidden] { display: none; }
.cup-ps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cup-ps[hidden] { display: none; }
.cup-ps .cup-adm-in { flex: 1 1 130px; height: 40px; font-size: .92rem; }
.cup-ps .cup-ps-go { height: 40px; padding: 0 18px; font-size: .92rem; font-weight: 600; color: var(--white); }
.cup-ps .cup-gst-err { flex-basis: 100%; }
.cup-sk-link.on { color: var(--white); }
.cup-set.cup-mod, #cupSet { align-items: flex-start; padding-top: max(24px, 10vh); }
.cup-mod-p { width: 460px; }
.cup-mod-p .cup-inv-hd { gap: 12px; }
.cup-mod-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cup-mod-t a { color: inherit; text-decoration: none; }
.cup-mod-t a:hover { text-decoration: underline; }
.cup-mod-st { margin-left: auto; flex-shrink: 0; font-size: .8rem; color: var(--text-2); }
.cup-mod-body { display: flex; flex-direction: column; gap: 16px; }
.cup-mod-l, .cup-mod-a { display: flex; flex-direction: column; min-width: 0; }
.cup-mod-a { gap: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.cup-mod-facts { display: flex; flex-direction: column; }
.cup-mod-r { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border-soft); font-size: .88rem; }
.cup-mod-facts .cup-mod-r:last-child { border-bottom: 0; }
.cup-mod-r span { flex-shrink: 0; white-space: nowrap; color: var(--text-2); }
.cup-mod-r b { min-width: 0; font-weight: 500; line-height: 1.35; color: var(--text); text-align: right; overflow-wrap: anywhere; }
.cup-mod-r code { font-family: var(--mono); font-size: .82rem; }
.cup-mod-ip { user-select: all; }
.cup-mod-h { margin: 10px 0 2px; font-size: .84rem; font-weight: 500; color: var(--text-2); }
.cup-mod-r b em { display: block; font-style: normal; font-weight: 400; font-size: .8rem; color: var(--text-2); }
.cup-mod-t .cup-g-tag { font-size: .8rem; vertical-align: 2px; }
.cup-mod-acts .cup-adm-btn[data-op="kick"]:last-child { grid-column: 1 / -1; }
#cupStateActs .btn-primary:disabled { opacity: .45; cursor: default; transform: none; }
.cup-mod-mt { display: flex; flex-direction: column; max-height: 176px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.cup-mod-mt li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 5px 0; font-size: .84rem; }
.cup-mod-mt li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cup-mod-mt a { color: var(--text); }
.cup-mod-mt b { font-weight: 500; color: var(--text-2); }
.cup-mod-mt em { font-style: normal; font-size: .78rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.cup-mod-none { font-size: .86rem; color: var(--text-2); }
.cup-mod-why { width: 100%; height: 40px; font-size: .88rem; }
.cup-mod-dur button { height: 32px; }
.cup-mod-strict { margin-top: 4px; }
.cup-mod-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.cup-mod-acts .cup-adm-btn { height: 40px; padding: 0 10px; font-size: .84rem; }
.cup-mod-acts .cup-adm-btn:disabled { opacity: .4; cursor: default; }
.cup-mod-danger { color: var(--danger); }
.cup-mod-res { font-size: .84rem; color: var(--text-2); }
.cup-mod-res.bad { color: var(--danger); }
.cup-mod-res[hidden] { display: none; }
@media (pointer: coarse) {
    .cup-mod-acts .cup-adm-btn, .cup-mod-why { height: 44px; font-size: 16px; }
    .cup-mod-dur button { height: 36px; }
}
@media (max-height: 500px) {
    .cup-set.cup-mod { align-items: center; padding-top: 0; }
    .cup-mod-p { width: min(780px, calc(100vw - 32px)); }
    .cup-mod-body { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; align-items: start; }
    .cup-mod-a { padding-top: 0; border-top: 0; }
}
@media (pointer: coarse) and (max-width: 600px) {
    .cup-skinmodal #cupSkinBox.sk-many { display: flex; }
    .cup-skinmodal .sk-many .cup-skins-hd { padding-right: 52px; }
    .cup-skinmodal .sk-many .cup-sk-bar { flex-direction: row; gap: 8px; margin-bottom: 10px; }
    .cup-skinmodal .sk-many .cup-sk-q { flex: 1; margin-bottom: 0; }
    .cup-skinmodal .sk-many .cup-sk-fb { display: inline-flex; justify-content: center; gap: 6px; width: auto; min-width: 0; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); }
    .cup-skinmodal .sk-many .cup-sk-pop { left: 0; right: 0; top: 54px; width: auto; }
    .cup-skinmodal .sk-many .cup-sk-chips { flex-direction: row; flex-shrink: 0; gap: 6px; margin: 0 0 10px; overflow-x: auto; overflow-y: hidden; }
    .cup-skinmodal .sk-many .cup-sk-chip { justify-content: flex-start; width: auto; height: 40px; border-radius: 20px; background: rgba(255,255,255,.06); }
    .cup-skinmodal .sk-many .cup-sk-chip.on { background: rgba(255,255,255,.92); color: #000; }
    .cup-skinmodal .sk-many .cup-sk-gap { display: none; }
    .cup-skinmodal .sk-many .cup-sk-rs { margin-top: 0; }
    .cup-skinmodal #cupSkinBox.sk-many .cup-skins { padding: 6px; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
}
@media (max-width: 560px) {
    .cup-section .g-wrap { padding-left: 4px; padding-right: 4px; }
    .cup-lobby.g-card, .cup-info.g-card { padding-left: 0; padding-right: 0; }
    .cup-skins-hd { flex-wrap: wrap; row-gap: 2px; }
    .cup-sk-link { white-space: nowrap; }
}
@media (pointer: coarse) and (max-width: 600px) {
    .cup-skinmodal .sk-many .cup-sk-tabs { flex: 1 0 100%; }
    .cup-skinmodal .sk-many #cupPsBtn { margin-right: auto; }
}
@media (min-width: 2200px) and (min-height: 1300px) {
    .cup-section .g-wrap { zoom: 1.4; --cz: 1.4; }
}
@media (min-width: 3200px) and (min-height: 1800px) {
    .cup-section .g-wrap { zoom: 1.9; --cz: 1.9; }
}
@media (max-height: 500px) {
    #cupSet { padding-top: 12px; }
    .cup-set-p { padding: 12px 18px 14px; gap: 10px; }
    .cup-cset-foot { bottom: -14px; margin-bottom: -14px; padding: 10px 0 14px; }
    .cup-cset-foot .g-action, .cup-cset-keys { height: 40px; }
}
