/* Siêu Cúp DragonBum (cup.js, cup3d.js) and Voucher BumX (voucher.js) — the owner 17/11/2026. */
/* ---- launcher in the island's feature column ---- */
.feature-sidebar .cup-btn{border-color:#ffd447;background:radial-gradient(circle at 50% 25%,#7a5a12,#2a1a04 75%);color:#fff3c4}
.cup-btn .cup-icon{font-size:24px;line-height:1;filter:drop-shadow(0 0 6px #ffcf4a)}.cup-btn small{color:#ffe49a;font-weight:800}.cup-btn .cup-sub{font-size:10px;font-weight:800;color:#ffd36b;white-space:nowrap}
.cup-btn.is-live{animation:cup-live 1.6s ease-in-out infinite}.cup-btn.is-live .cup-sub{color:#9dffb0}
@keyframes cup-live{50%{box-shadow:0 0 0 3px #ffd44788,0 0 18px #ffd447}}

/* ---- the screen ---- */
.cup-view{position:fixed;inset:0;z-index:63;color:#f3f6ff;background:#0b1226 url('assets/ta-long/arena.webp?v=20261117') center 62%/cover no-repeat;overflow:hidden;transform:translateZ(0)}
.cup-view::before{content:'';position:absolute;inset:0;background:linear-gradient(#060b1ab0,#060b1a40 40%,#060b1a90);pointer-events:none}
body.cup-mode .scene-3d,body.cup-mode #app-scroll,body.cup-mode .dragon-view{visibility:hidden}
.cup-screen{position:relative;height:100%;min-height:0}
.cup-canvas{position:absolute;inset:0;width:100%!important;height:100%!important;display:block;pointer-events:none}
.cup-wait{height:100%;display:grid;place-content:center;justify-items:center;gap:12px;font-size:16px}
.cup-panel{border:1px solid #ffd77a55;border-radius:18px;background:linear-gradient(#0d1a35e6,#071022ee);box-shadow:0 10px 30px #0008}
.cup-view .avatar{flex:none}

/* Phòng đợi */
.cup-room{height:100%;display:flex;flex-direction:column;padding:10px max(12px,calc((100% - 1180px) / 2)) 12px;gap:10px}
.cup-top{display:flex;align-items:center;gap:10px}
.cup-top h2{flex:1;margin:0;text-align:center;font-size:clamp(18px,2.6vw,28px);font-weight:900;color:#ffe08a;text-shadow:0 2px 0 #6a3a00,0 0 18px #ffb80088;letter-spacing:.5px}
.cup-top button{min-height:38px;padding:6px 14px;border-radius:999px;border:1px solid #ffd77a88;background:#0d1a35cc;color:#fff3d0;font-weight:800}
.cup-room-grid{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:12px}
.cup-mine{display:flex;flex-direction:column;gap:8px;padding:12px;min-height:0;overflow:auto}
.cup-who{display:flex;gap:12px;align-items:center}.cup-who>div{display:grid;gap:4px;min-width:0}.cup-who>div>b{font-size:20px;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cup-stats{display:flex;flex-wrap:wrap;gap:6px}.cup-stats em{font-style:normal;font-size:12.5px;padding:3px 9px;border-radius:999px;background:#ffffff14;border:1px solid #ffffff22;color:#dfe8ff}.cup-stats em b{color:#ffe08a}
.cup-line{position:relative;flex:1;min-height:150px;display:flex;flex-direction:column;border-radius:14px;background:radial-gradient(ellipse at 50% 85%,#ffd77a22,transparent 60%),#ffffff08;overflow:hidden}
.cup-line3d{position:relative;flex:1;min-height:110px}
.cup-line-names{display:grid;grid-template-columns:repeat(5,1fr);width:85%;margin:0 auto 6px;padding:0;list-style:none;text-align:center;gap:4px}
.cup-line-names.n1{grid-template-columns:1fr}.cup-line-names.n2{grid-template-columns:repeat(2,1fr)}.cup-line-names.n3{grid-template-columns:repeat(3,1fr)}.cup-line-names.n4{grid-template-columns:repeat(4,1fr)}
.cup-line-names li{display:grid;min-width:0}.cup-line-names b{font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff}.cup-line-names small{font-size:10.5px;color:#c9d6f0;white-space:nowrap}
.cup-2d{position:absolute;inset:0;display:flex;justify-content:space-around;align-items:center}.cup-2d .cup-thumb{width:18%;max-width:120px}
.cup-actions{display:flex;gap:10px;align-items:stretch}.cup-actions>.quiet{flex:none;border-radius:14px;padding:8px 14px;font-weight:800}
.cup-go{flex:1;min-height:56px;border:0;border-radius:16px;font-size:20px;font-weight:900;letter-spacing:.5px;color:#3a2200;background:linear-gradient(#fff3a8,#ffc02e 55%,#e08a00);box-shadow:0 4px 0 #8a4a00,0 0 22px #ffb40066;cursor:pointer}
.cup-go:disabled{filter:grayscale(.8) brightness(.75);cursor:default;font-size:15px}
.cup-search{flex:1;display:flex;align-items:center;gap:12px;padding:8px 12px;border-radius:16px;border:2px solid #9dffb0aa;background:#0a2a1acc}
.cup-search>div{flex:1;display:grid}.cup-search b{font-size:16px}.cup-search small{color:#bfe8cc}
.cup-radar{position:relative;width:38px;height:38px;flex:none;border-radius:50%;border:2px solid #9dffb0}.cup-radar i{position:absolute;inset:0;border-radius:50%;border:2px solid #9dffb0;animation:cup-radar 1.6s ease-out infinite}.cup-radar i+i{animation-delay:.8s}
@keyframes cup-radar{from{scale:.3;opacity:1}to{scale:1.6;opacity:0}}
.cup-open-line{margin:0;font-size:13px;color:#dfe8ff}.cup-open-line.live b{color:#9dffb0}
.cup-sched{margin:0;font-size:12px;color:#aebbd8}
.cup-rank{display:flex;flex-direction:column;gap:6px;padding:12px;min-height:0;overflow:auto}
.cup-rank h3{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;font-size:16px;color:#ffe08a}.cup-rank h4{margin:6px 0 0;font-size:13px;color:#ffe08a}
.cup-more{font-size:11.5px;padding:4px 10px;border-radius:999px}
.cup-reset{margin:0;font-size:11.5px;color:#c9d6f0}
.cup-prizes{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:0;padding:0;list-style:none}
.cup-prizes li{display:grid;padding:5px 8px;border-radius:10px;background:linear-gradient(135deg,#3b2a0a,#1d1a12);border:1px solid #f6c45366}.cup-prizes span{font-size:11px;font-weight:800;color:#ffe3a1}.cup-prizes b{font-size:14px;color:#fff}.cup-prizes em{font-style:normal;font-size:10.5px;color:#ffd36b}
.cup-ranklist{margin:0;padding:0;list-style:none;display:grid;gap:3px}
.cup-ranklist li{display:grid;grid-template-columns:34px auto minmax(0,1fr) auto auto;align-items:center;gap:6px;padding:4px 8px;border-radius:10px;background:#ffffff0d}
.cup-ranklist.last li{grid-template-columns:34px minmax(0,1fr) auto auto}
.cup-ranklist li.is-me{background:linear-gradient(90deg,#ffd44755,#ffd44718);outline:1px solid #ffd447}
.cup-ranklist .rk{font-weight:900;text-align:center;color:#ffe08a}.cup-ranklist b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.cup-ranklist small{font-size:10.5px;color:#aebbd8;white-space:nowrap}.cup-ranklist strong{font-size:14px;color:#fff;font-variant-numeric:tabular-nums}
.cup-ranklist .cup-empty,.cup-line-names .cup-empty{display:block;grid-column:1/-1;padding:10px;color:#c9d6f0;font-size:12.5px;text-align:center;background:none}
.cup-rankmodal .cup-ranklist{margin-top:8px}

/* Tải trận */
.cup-load{position:relative;height:100%;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:start;gap:10px;padding:14px max(12px,calc((100% - 1180px) / 2))}
.cup-load-3d{position:absolute;inset:0;pointer-events:none}
.cup-lside{position:relative;z-index:1;display:grid;justify-items:center;gap:3px;text-align:center;animation:cup-in-l .6s ease-out both}
.cup-lside.right{animation-name:cup-in-r}
.cup-lside>b{font-size:20px;font-weight:900;color:#fff;text-shadow:0 2px 6px #000}.cup-lside>small{font-size:13px;color:#ffe08a;font-weight:800}
.cup-lside .cup-lteam{position:static;display:flex;flex-wrap:wrap;justify-content:center;gap:4px;margin:6px 0 0;padding:0;list-style:none}
.cup-lteam li{display:flex;align-items:center;gap:4px;padding:2px 8px 2px 2px;border-radius:999px;background:#060b1ab8;border:1px solid #ffffff22}
.cup-lteam .cup-lthumb{width:26px;height:26px;border-radius:50%;object-fit:cover;background:#ffffff14}
.cup-lteam span{display:grid;text-align:left;line-height:1.1}.cup-lteam b{font-size:11px;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cup-lteam small{font-size:9.5px;color:#c9d6f0}
.cup-vs{position:relative;z-index:1;display:grid;justify-items:center;align-self:center;margin-top:8vh}
.cup-vs b{font:900 clamp(56px,9vw,110px)/1 'Lilita One','Baloo 2',system-ui,sans-serif;background:linear-gradient(#fff6a8,#ffc21a 50%,#ff5a0a);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;-webkit-text-stroke:3px #4a1400;filter:drop-shadow(0 4px 0 #4a1400) drop-shadow(0 0 22px #ff8a00);animation:cup-vs 1s ease-out both}
.cup-vs small{font-size:12px;color:#dfe8ff}.cup-vs em{font:900 40px/1 system-ui,sans-serif;font-style:normal;color:#fff;text-shadow:0 0 14px #ffb400}
.cup-load-tip{position:absolute;z-index:1;left:50%;bottom:10px;translate:-50% 0;width:min(720px,92%);margin:0;padding:6px 12px;border-radius:12px;background:#060b1ac8;text-align:center;font-size:12.5px;color:#dfe8ff}
@keyframes cup-in-l{from{opacity:0;translate:-60px 0}}@keyframes cup-in-r{from{opacity:0;translate:60px 0}}@keyframes cup-vs{0%{scale:3;opacity:0}60%{scale:.9;opacity:1}}

/* The fight */
.cup-fight{position:absolute;inset:0}
.cup-3d{position:absolute;inset:0;pointer-events:none}
.cup-fhead{position:absolute;top:8px;z-index:7;display:flex;align-items:center;gap:8px;width:min(330px,34%);padding:6px 10px;border-radius:16px;background:#060b1ad0;border:1px solid #ffffff22;pointer-events:none}
.cup-fhead.left{left:8px}.cup-fhead.right{right:8px;flex-direction:row-reverse;text-align:right}
.cup-hav{position:relative;flex:none;width:52px;height:52px;display:grid;place-items:center}
.cup-ring{position:absolute;inset:0;width:100%;height:100%;rotate:-90deg}.cup-ring circle{fill:none;stroke:#ffffff22;stroke-width:3.5}.cup-ring .cup-ring-on{stroke:#9dffb0;stroke-dasharray:100;stroke-dashoffset:100;stroke-linecap:round;transition:stroke-dashoffset .25s linear}
.cup-hav.is-turn{filter:drop-shadow(0 0 8px #9dffb0)}.cup-hav.is-late .cup-ring-on{stroke:#ff6a5a}
.cup-ring-n{position:absolute;right:-6px;bottom:-4px;min-width:20px;padding:0 4px;border-radius:999px;background:#0a2a1a;border:1px solid #9dffb0;font:900 12px/18px system-ui,sans-serif;font-style:normal;color:#fff;text-align:center}.cup-ring-n:empty{display:none}
.cup-hav.is-late .cup-ring-n{border-color:#ff6a5a;background:#3a0a0a}
.cup-hinfo{flex:1;display:grid;gap:2px;min-width:0}.cup-hinfo b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cup-hinfo small{font-size:11.5px;color:#ffe08a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cup-hp{position:relative;display:block;height:14px;border-radius:999px;background:#2a0a0acc;border:1px solid #ffffff33;overflow:hidden}
.cup-hp i{position:absolute;inset:0 auto 0 0;background:linear-gradient(#9dff8a,#2fb84a);transition:width .45s ease-out}
.right .cup-hp i{inset:0 0 0 auto;background:linear-gradient(#ff9a8a,#d8342a)}
.cup-hp em{position:relative;display:block;font:800 10px/14px system-ui,sans-serif;font-style:normal;text-align:center;color:#fff;text-shadow:0 1px 2px #000}
.cup-chips{display:flex;gap:4px;min-height:0}.right .cup-chips{justify-content:flex-end}.cup-chips em{font-style:normal;font-size:10.5px;font-weight:800;padding:1px 6px;border-radius:999px;background:#ffffff18}.cup-chips .g{color:#a9dcff}.cup-chips .p{color:#ffb09a}.cup-chips .m{color:#ffd36b}
.cup-leave{position:absolute;z-index:8;top:8px;left:50%;translate:-50% 0;min-height:32px;padding:4px 12px;border-radius:999px;border:1px solid #ff8a7a88;background:#2a0a0acc;color:#ffd0c8;font-weight:800;font-size:12px}
.cup-bench{position:absolute;bottom:8px;z-index:7;display:grid;gap:2px;padding:5px 7px;border-radius:14px;background:#060b1ac8;border:1px solid #ffffff22}
.cup-bench.left{left:8px}.cup-bench.right{right:8px;justify-items:end}
.cup-brow{display:flex;gap:5px}.cup-bench.right .cup-brow{flex-direction:row-reverse}
.cup-bm{all:unset;box-sizing:border-box;position:relative;width:52px;height:52px;border-radius:12px;background:#ffffff12;border:2px solid #ffffff2a;display:grid;place-items:center;cursor:default}
.cup-bm .cup-bthumb{width:44px;height:44px;object-fit:contain}
.cup-bm.is-active{border-color:#ffd447;box-shadow:0 0 12px #ffd447aa;background:#ffd44722}
.cup-bm.is-out{filter:grayscale(1) brightness(.5)}
.cup-bm.can{cursor:pointer;border-color:#9dffb0;animation:cup-can 1.4s ease-in-out infinite}.cup-bm.can:hover{background:#9dffb033}
@keyframes cup-can{50%{box-shadow:0 0 10px #9dffb0}}
.cup-bhp{position:absolute;left:4px;right:4px;bottom:3px;height:5px;border-radius:999px;background:#2a0a0a;overflow:hidden}.cup-bhp i{position:absolute;inset:0 auto 0 0;background:#5be36a;transition:width .45s}
.cup-bench.right .cup-bhp i{background:#ff6a5a}
.cup-bm em{position:absolute;top:-2px;right:1px;font-style:normal;font-size:12px;font-weight:900;color:#fff;text-shadow:0 1px 2px #000}.cup-bm em.on{color:#ffd447}
.cup-bnote{font-size:10.5px;color:#c9d6f0;font-weight:700}
.cup-fight .bb-combo{left:max(10px,calc(50% - var(--cell) * 3.5 - 84px));z-index:2}
.cup-fight .bb-root.is-foe-turn .bb-combo{left:auto;right:max(10px,calc(50% - var(--cell) * 3.5 - 84px))}
.cup-fight .bb-wrap{top:calc(50% - 10px)}
.cup-banner{position:absolute;z-index:8;left:50%;top:22%;translate:-50% 0;padding:8px 22px;border-radius:999px;font-size:18px;font-weight:900;white-space:nowrap;pointer-events:none;opacity:0;background:#060b1ae0;border:2px solid #ffd77a;color:#fff3c4}
.cup-banner[data-kind="go"]{border-color:#9dffb0;color:#c8ffd4}.cup-banner[data-kind="bad"]{border-color:#ff8a7a;color:#ffd0c8}
.cup-banner.show{animation:cup-banner 1.8s ease-out}
@keyframes cup-banner{0%{opacity:0;scale:.7}12%{opacity:1;scale:1.08}22%{scale:1}80%{opacity:1}100%{opacity:0}}
.cup-pop{z-index:9}
.cup-float em{font:900 13px/1 system-ui,sans-serif;font-style:normal;color:#fff;-webkit-text-stroke:.8px #003a5a;text-shadow:0 0 8px #3ab8ff;margin-top:3px;letter-spacing:1px}
.cup-end{position:absolute;inset:0;z-index:20;display:grid;place-items:center;background:#000a}
.cup-endcard{width:min(420px,92%);display:grid;justify-items:center;gap:6px;padding:18px 16px;border-radius:22px;text-align:center;background:linear-gradient(#1d2a4a,#0a1226);border:2px solid #ffd77a;box-shadow:0 0 40px #ffb40055}
.cup-endcard.lose{border-color:#8a9ab8;box-shadow:none}
.cup-endcard .big{font-size:54px;line-height:1}.cup-endcard h2{margin:0;font-size:28px;font-weight:900;color:#ffe08a}.cup-endcard.lose h2{color:#dfe8ff}.cup-endcard p{margin:0;color:#dfe8ff;font-size:13px}
.cup-delta{display:grid;justify-items:center;padding:6px 18px;border-radius:14px;background:#ffffff10}.cup-delta small{font-size:11px;color:#aebbd8}.cup-delta b{font-size:34px;font-weight:900;color:#fff}.cup-delta.up b{color:#9dffb0}.cup-delta.down b{color:#ff8a7a}.cup-delta em{font-style:normal;font-size:12px;color:#ffe08a}
.cup-end-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:6px}.cup-end-actions button{min-height:42px;padding:8px 16px;border-radius:14px;font-weight:800}
.modal-primary.danger{background:linear-gradient(#ff8a7a,#c8342a);color:#fff}
.cup-leaveask,.cup-season{display:grid;justify-items:center;gap:8px;text-align:center}.cup-season>span{font-size:56px}

/* phones held sideways and other short screens */
@media (max-height:520px){
    .cup-room{padding:6px 10px 8px;gap:6px}.cup-top button{min-height:32px;padding:4px 10px;font-size:12px}.cup-top h2{font-size:17px}
    .cup-mine,.cup-rank{padding:8px;gap:5px}.cup-who .avatar{--size:40px!important}.cup-who>div>b{font-size:15px}.cup-stats em{font-size:11px;padding:2px 7px}
    .cup-line{min-height:96px}.cup-line3d{min-height:70px}.cup-go{min-height:44px;font-size:17px}.cup-sched{display:none}
    .cup-prizes li{padding:3px 6px}.cup-prizes b{font-size:12px}
    .cup-fhead{padding:4px 7px;gap:6px;top:4px}.cup-hav{width:42px;height:42px}.cup-fhead .avatar{--size:32px!important}.cup-hinfo b{font-size:12px}.cup-hinfo small{font-size:10px}.cup-hp{height:12px}.cup-hp em{line-height:12px;font-size:9px}
    .cup-leave{top:4px;min-height:26px;font-size:11px;padding:2px 10px}
    .cup-bench{bottom:4px;padding:3px 5px}.cup-bm{width:40px;height:40px;border-radius:10px}.cup-bm .cup-bthumb{width:34px;height:34px}.cup-bnote{display:none}
    .cup-banner{top:16%;font-size:14px;padding:5px 14px}
    .cup-lside>b{font-size:15px}.cup-lside .avatar{--size:46px!important}.cup-vs{margin-top:4vh}.cup-vs em{font-size:28px}.cup-lteam b{max-width:80px}.cup-load-tip{font-size:11px;bottom:4px}
    .cup-endcard{padding:10px 12px;gap:4px}.cup-endcard .big{font-size:36px}.cup-endcard h2{font-size:22px}.cup-delta b{font-size:26px}
}

/* the same on a phone turned by the game (html.rotated: the media queries see the portrait size) */
html.short .cup-room{padding:6px 10px 8px;gap:6px}
html.short .cup-top button{min-height:32px;padding:4px 10px;font-size:12px}
html.short .cup-top h2{font-size:17px}
html.short .cup-mine,html.short .cup-rank{padding:8px;gap:5px}
html.short .cup-who .avatar{--size:40px!important}
html.short .cup-who>div>b{font-size:15px}
html.short .cup-stats em{font-size:11px;padding:2px 7px}
html.short .cup-line{min-height:96px}
html.short .cup-line3d{min-height:70px}
html.short .cup-go{min-height:44px;font-size:17px}
html.short .cup-sched{display:none}
html.short .cup-prizes li{padding:3px 6px}
html.short .cup-prizes b{font-size:12px}
html.short .cup-fhead{padding:4px 7px;gap:6px;top:4px}
html.short .cup-hav{width:42px;height:42px}
html.short .cup-fhead .avatar{--size:32px!important}
html.short .cup-hinfo b{font-size:12px}
html.short .cup-hinfo small{font-size:10px}
html.short .cup-hp{height:12px}
html.short .cup-hp em{line-height:12px;font-size:9px}
html.short .cup-leave{top:4px;min-height:26px;font-size:11px;padding:2px 10px}
html.short .cup-bench{bottom:4px;padding:3px 5px}
html.short .cup-bm{width:40px;height:40px;border-radius:10px}
html.short .cup-bm .cup-bthumb{width:34px;height:34px}
html.short .cup-bnote{display:none}
html.short .cup-banner{top:16%;font-size:14px;padding:5px 14px}
html.short .cup-lside>b{font-size:15px}
html.short .cup-lside .avatar{--size:46px!important}
html.short .cup-vs{margin-top:4vh}
html.short .cup-vs em{font-size:28px}
html.short .cup-lteam b{max-width:80px}
html.short .cup-load-tip{font-size:11px;bottom:4px}
html.short .cup-endcard{padding:10px 12px;gap:4px}
html.short .cup-endcard .big{font-size:36px}
html.short .cup-endcard h2{font-size:22px}
html.short .cup-delta b{font-size:26px}
@media (max-width:760px) and (min-height:521px){html:not(.rotated) .cup-room-grid{grid-template-columns:1fr;overflow:auto}html:not(.rotated) .cup-rank{overflow:visible}}

/* ---- Voucher BumX ---- */
.vc-card{display:grid;gap:6px;padding:12px;border-radius:14px;border:2px dashed #f6c453;background:linear-gradient(135deg,#3b2a0a,#1d1a12);color:#fff3d0;text-align:left}
.vc-card.is-used{border-color:#7a8296;background:linear-gradient(135deg,#2a2d36,#16181e);opacity:.85}
.vc-head{display:flex;justify-content:space-between;align-items:center;font-weight:900;color:#ffd166}.vc-head span{letter-spacing:3px;font-size:12px}.vc-head b{font-size:22px}.vc-head b small{font-size:13px}
.vc-title{margin:0;font-size:12.5px;color:#e8d8b0}
.vc-code{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.vc-code code{flex:1;min-width:0;padding:6px 10px;border-radius:10px;background:#0008;border:1px solid #ffd16655;font:800 15px/1.2 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.5px;color:#fff;white-space:nowrap;overflow-x:auto;user-select:all;-webkit-user-select:all}
.vc-copy{min-height:34px;padding:4px 12px;border-radius:10px;border:0;background:linear-gradient(#ffe48a,#ffb52e);color:#3a2200;font-weight:900;cursor:pointer;white-space:nowrap}
.vc-status{margin:0;font-size:12px;font-weight:800}.vc-status.unused{color:#9dffb0}.vc-status.used{color:#c0c6d4}
.vc-how{margin:0;font-size:11.5px;color:#d8c8a0}
.vc-card.is-compact{padding:8px;gap:4px}.vc-card.is-compact .vc-head b{font-size:17px}.vc-card.is-compact code{font-size:14px}
.vc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
.vc-count{margin:4px 0 8px;font-weight:800;color:#ffd166}.vc-empty{padding:16px;border-radius:12px;background:#ffffff0d;text-align:center}
.mb-items .mb-voucher{display:block;width:100%;padding:0;background:none}
.mb-items .vc-card{margin-top:4px}
.boss-vouchers{display:grid;gap:10px}
.pw-ticket.pw-voucher .pwt-main em{letter-spacing:2px}
.mb-head h2{flex:1}

.cup-count{position:absolute;z-index:2;left:10px;top:8px;padding:3px 10px;border-radius:999px;background:#060b1ac8;border:1px solid #ffd77a66;font-size:12px;color:#fff3d0}.cup-count b{color:#ffe08a}.cup-count.is-short{border-color:#ffb34788}
/* Phone landscape: the five 3D dragons already show the team; the name chips over them only crowd it (17/11). */
@media (max-height:460px){.cup-lteam{display:none}}
/* The owner 18/11: no dragon names under the 3D team line (they ran into each other on phones); the 3D dragons say it. */
.cup-line-names li:not(.cup-empty){display:none}

/* 📖 Hướng dẫn + the tile legend on the loading screen (18/11). */
.cup-topbtns{display:flex;gap:6px}
.cup-load-tip{display:grid;gap:6px;justify-items:center}.cup-load-tip p{margin:0}.cup-load-tip button{min-height:26px;padding:2px 10px;margin-left:6px}
.cup-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 12px;margin:0;padding:0;list-style:none}
.cup-legend li{display:flex;align-items:center;gap:6px;text-align:left}.cup-legend .bb-gem{width:30px;height:30px;flex:none;font-size:15px}
.cup-legend b{display:block;font-size:12.5px;color:#fff}.cup-legend small{display:block;font-size:10.5px;color:#c9d6f0}
.cup-guide h3{margin:12px 0 4px;font-size:15px}.cup-guide p,.cup-guide li{font-size:13.5px;line-height:1.45}.cup-guide .cup-legend{justify-content:flex-start}
.bb-chain em{display:block;font-style:normal;font-size:12px;font-weight:900;color:#ffe08a;text-shadow:0 1px 3px #000}
@media (max-height:460px){.cup-legend small{display:none}.cup-legend .bb-gem{width:24px;height:24px}.cup-load-tip{font-size:11.5px}}

/* Phòng đợi: Đổi đội hình and Tìm trận (or the search box) in two neat rows, one above the other, never stretched */
.cup-actions{flex-direction:column;align-items:stretch;gap:6px}
.cup-actions>.quiet{flex:none;width:100%;height:36px;min-height:36px;padding:0 12px;border-radius:12px;font-size:13.5px;display:flex;align-items:center;justify-content:center;gap:6px}
.cup-actions .cup-go{flex:none;width:100%;height:48px;min-height:48px;font-size:18px}
.cup-actions .cup-search{flex:none;min-height:48px;padding:5px 10px;gap:10px;border-radius:14px}
.cup-actions .cup-search>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;min-width:0}
.cup-actions .cup-search b{font-size:15px;white-space:nowrap}.cup-actions .cup-search small{white-space:nowrap;font-size:12px}
.cup-actions .cup-search .cup-radar{width:28px;height:28px}
.cup-actions .cup-search button{flex:none;height:34px;padding:0 14px;border-radius:10px}
html.short .cup-actions .cup-go{height:42px;min-height:42px;font-size:16px}html.short .cup-actions .cup-search{min-height:42px}html.short .cup-actions>.quiet{height:32px;min-height:32px}

/* End of a match (the owner 19/11): a big CHIẾN THẮNG / THẤT BẠI, and Tìm trận tiếp / Về phòng đợi the same size side by side */
.cup-endcard h2,html.short .cup-endcard h2{font-size:40px;letter-spacing:1px;line-height:1.05;text-shadow:0 3px 0 #0008}
.cup-endcard.lose h2,html.short .cup-endcard.lose h2{color:#ff9a8a}
html.short .cup-endcard .big{font-size:34px}
.cup-end-actions,html.short .cup-end-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:10px}
.cup-end-actions button,html.short .cup-end-actions button{width:100%;height:48px;min-height:48px;padding:0 10px;margin:0;font-size:15px;display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
