/* Tournament navigation and match sheets */
.cup-hub .cup-grid {max-width:none;gap:12px}
.cup-hub .cup-grid .cup-tile {grid-template-rows:1fr auto auto;gap:4px;text-align:left;min-height:148px;isolation:isolate;overflow:hidden}
.cup-hub .cup-tile::after,.cup-hero::after {content:"";position:absolute;pointer-events:none;right:-34px;top:-40px;width:110px;height:110px;border:1px solid currentColor;border-radius:50%;box-shadow:0 0 0 12px #ffffff12,0 0 0 26px #ffffff0b;opacity:.23;z-index:-1}
.cup-hub .cup-grid .cup-tile small {color:inherit;font:500 12px/1.35 system-ui;opacity:.82}
.cup-hub button:focus-visible {outline:2px solid #d5ff8b;outline-offset:2px}
.cup-hub .cup-back {min-height:44px;background:transparent;color:#bfd0cb;width:auto}
.cup-hub .cup-list-card,.cup-hero {position:relative;text-align:left;border:1px solid #3a474a;border-radius:20px;background:linear-gradient(120deg,#26353a,#172024);color:#f5f8f2;overflow:hidden}
.cup-hub .cup-list-card {display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;width:100%;margin-bottom:10px;padding:17px}
.cup-list-card b,.cup-list-card small,.cup-list-card .cup-tag {grid-column:1}
.cup-list-card .rz-icon {grid-row:1/4;grid-column:2;align-self:center;color:#c7fa62}
.cup-list-card b {font:600 clamp(17px,4vw,23px)/1.2 var(--display)}
.cup-tag {width:fit-content;font:650 12px/1.4 system-ui;letter-spacing:.02em;color:#d4f5c2;display:inline-flex;align-items:center;gap:6px}
.cup-tag::before {content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.cup-hub .cup-hero {padding:20px;isolation:isolate;background:radial-gradient(at 100% 0,#374832,transparent 65%),#1c2729}
:is(#home,.tab-neighbor) .cup-hero h2 {margin:14px 0 6px;font-size:clamp(23px,6vw,36px);max-width:90%}
.cup-hero p,.cup-tempo,.cup-round-head span,.cup-match footer {font:500 13px/1.4 system-ui;color:#b9c9c6}
.cup-summary {margin-top:16px;padding-top:12px;border-top:1px solid #ffffff20;font-size:14px;line-height:1.45}
.cup-hero button {min-height:44px;margin-top:12px;width:100%;border-radius:12px}
.cup-tempo,.cup-round-head,.cup-match header,.cup-match footer,.cup-side,.cup-rank header,.cup-rank>div {display:flex;align-items:center;gap:9px}
.cup-tempo {margin:12px 1px 18px}.cup-tempo .rz-icon,.cup-match footer .rz-icon {width:16px;height:16px;flex:none}
.cup-switch {display:flex;border-radius:15px;background:#1a2226;padding:4px;border:1px solid #334145}
.cup-switch button,.cup-stages button {min-height:44px;background:transparent;color:#bdc9cb;border-radius:11px;padding:6px 12px;border:0}
.cup-switch button {flex:1}
.cup-switch button[aria-pressed=true] {background:#354347;color:#fff}
.cup-stages {display:flex;flex-wrap:wrap;gap:5px;margin:15px 0}
.cup-stages button {min-width:45px;border:1px solid #38474a;font-size:13px;width:auto}
.cup-stages button[aria-pressed=true] {background:#c7fa62;color:#152009;border-color:#c7fa62}
.cup-round-head {justify-content:space-between;margin:16px 0 9px}
.cup-matches {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:10px}
.cup-match {min-width:0;border:1px solid #374449;background:#192226;border-radius:16px;overflow:hidden}
.cup-match[data-state=open] {border-color:#799d66}
.cup-match header {position:static;justify-content:space-between;margin:0;padding:8px 12px;font:550 12px/1.4 system-ui;color:#b2c3c4;background:#ffffff06}
.cup-match[data-state=open] header span,.cup-side[data-won=true] {color:#cef79e}
.cup-side {margin:0 12px;min-height:40px;font-size:14px}
.cup-side+.cup-side {border-top:1px solid #ffffff10}
.cup-avatar {display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;color:#dbeddd;background:#35433e;font-size:12px}
.cup-side strong {margin-left:auto;font:650 18px/1.2 system-ui;font-variant-numeric:tabular-nums}
.cup-match footer {padding:8px 12px;border-top:1px solid #ffffff10;font-size:12px}
.cup-rank {margin-top:14px}.cup-rank header,.cup-rank>div {padding:12px 8px;border-bottom:1px solid #334044}
.cup-rank header {font-size:12px;color:#b9c9c6;position:static}
.cup-rank span:first-child {flex:1}.cup-rank i {font-style:normal;color:#a6b8bd;display:inline-block;min-width:2ch}
.cup-rank b,.cup-rank header span:not(:first-child) {width:42px;text-align:right;font-variant-numeric:tabular-nums}
.cup-rank [data-mine=true] {color:#c7fa62;background:#222f28}
.cup-hub .cup-empty,.cup-hub [data-cup-status]:not(:empty) {padding:16px;background:#1a2327;border-radius:15px;margin-top:12px;line-height:1.45}
@media (prefers-reduced-motion:no-preference){.cup-switch button,.cup-stages button {transition:background .16s,color .16s}.cup-hub .cup-tile:active {transform:scale(.985)}}
.cup-side>span:nth-child(2),.cup-match header span,.cup-tempo span,.cup-rank span {color:inherit}.cup-match header span {font-weight:500}.cup-side strong {letter-spacing:normal}
button.trophy-reveal {--glow:#c9a35a;position:fixed;inset:0;z-index:1200;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%;height:100%;padding:20px;border:0;border-radius:0;color:#f5f1e7;background:radial-gradient(ellipse at center,#20251fee,transparent 58%),#0b1014f5;isolation:isolate;animation:trophy-veil 1s both}
.trophy-reveal[data-category=region]{--glow:#8bbdb0}.trophy-reveal[data-category=rookie]{--glow:#c09379}
.trophy-reveal::before {content:"";position:absolute;z-index:-1;width:min(64vw,280px);aspect-ratio:1;border:1px solid var(--glow);border-radius:50%;box-shadow:0 0 42px -18px var(--glow);animation:trophy-orbit .8s ease-out both}
.trophy-reveal img {width:clamp(128px,38vmin,202px);height:auto;animation:trophy-rise .5s cubic-bezier(.18,.75,.22,1) both}
.trophy-reveal b {font:600 clamp(16px,4vw,25px)/1.25 var(--display);letter-spacing:-.035em;text-align:center}
@keyframes trophy-veil {0%,100%{opacity:0}15%,77%{opacity:1}}
@keyframes trophy-rise {from{opacity:0;transform:translateY(14px) scale(.91)}to{opacity:1;transform:none}}
@keyframes trophy-orbit {from{opacity:0;transform:scale(.7)}to{opacity:.26;transform:scale(1.05)}}
@media(prefers-reduced-motion:reduce){button.trophy-reveal{display:none}}
