.clash-themed{--clash-accent:#50bfff;--clash-edge:#2278dc;--clash-glow:rgba(34,120,220,.18);--clash-panel:#121c28}
.clash-themed[data-game=lorcana]{--clash-accent:#efd49a;--clash-edge:#ae813d;--clash-glow:rgba(149,84,202,.17);--clash-panel:#21192b}
.clash-themed[data-game=pokemon]{--clash-accent:#ffe078;--clash-edge:#e85650;--clash-glow:rgba(232,86,80,.15);--clash-panel:#27191c}
.clash-themed .clash-duel{max-width:820px;margin-inline:auto;border-color:color-mix(in srgb,var(--clash-edge) 35%,transparent);background:radial-gradient(ellipse at 50% 0,var(--clash-glow),transparent 65%),#181614;padding:20px!important;overflow:visible}
.clash-themed .clash-duel>h3{letter-spacing:.09em;text-transform:uppercase;color:var(--clash-accent);font-size:13px}
.clash-themed .hub-match-arena{position:relative;display:grid!important;grid-template-columns:repeat(2,minmax(0,280px))!important;justify-content:center;align-items:stretch;gap:64px!important;max-width:720px;margin-inline:auto;padding:12px 0!important}
.clash-themed .hub-match-side{position:relative;isolation:isolate;min-width:0;padding:12px!important;border:1px solid var(--clash-edge)!important;border-radius:14px;background:linear-gradient(155deg,var(--clash-panel),#141414 78%);box-shadow:0 7px 24px #0005,inset 0 0 0 3px #1119;display:flex;flex-direction:column;gap:12px;text-align:center;overflow:hidden}
.clash-themed .hub-match-side::before{content:'';position:absolute;z-index:-1;inset:4px;border:1px solid color-mix(in srgb,var(--clash-accent) 30%,transparent);border-radius:10px;pointer-events:none}
.clash-themed .hub-match-side::after{content:'';position:absolute;top:0;left:20%;right:20%;height:3px;background:var(--clash-accent);box-shadow:0 0 15px var(--clash-edge);pointer-events:none}
.clash-themed[data-game=digimon] .hub-match-side{border-radius:3px 19px 3px 19px;background:linear-gradient(135deg,#18395266,transparent 35%),repeating-linear-gradient(90deg,transparent 0 25px,#50bfff05 25px 26px),var(--clash-panel)}
.clash-themed[data-game=digimon] .hub-match-side::before{border-radius:0 14px 0 14px;border-left:2px solid var(--clash-accent);border-bottom:2px solid var(--clash-accent)}
.clash-themed[data-game=lorcana] .hub-match-side{border-radius:25px 25px 14px 14px;background:radial-gradient(ellipse at top,#55306555,transparent 70%),linear-gradient(150deg,#2b2330,#17131b);box-shadow:0 8px 28px #0006,inset 0 0 0 3px #19131b,inset 0 0 0 4px #ae813d55}
.clash-themed[data-game=lorcana] .hub-match-side::before{border-radius:20px 20px 10px 10px;border-color:#efd49a5c}
.clash-themed[data-game=lorcana] .hub-match-side::after{left:calc(50% - 15px);right:auto;top:2px;width:30px;height:4px;border-radius:50%;background:#f2d797;box-shadow:0 0 18px #d2a35988}
.clash-themed[data-game=pokemon] .hub-match-side{border:2px solid #df514b!important;border-radius:20px;background:linear-gradient(180deg,#58212b44 0,transparent 40%),#1e1b20;box-shadow:0 7px 24px #0005,inset 0 0 0 3px #171719,inset 0 0 0 4px #ffd76b55}
.clash-themed[data-game=pokemon] .hub-match-side::before{border-radius:14px;border-color:#ffe07844}
.clash-themed .hub-match-side>img,.clash-themed .hub-match-side>button:first-child img{display:block!important;width:100%!important;height:auto!important;max-height:370px!important;aspect-ratio:63/88;object-fit:contain!important;margin:0 auto!important;border-radius:9px;filter:drop-shadow(0 5px 7px #0007)}
.clash-themed .hub-match-side>button:first-child{margin:0!important}
.clash-themed .hub-match-side h4,.clash-themed .hub-match-side h3{font-size:14px;line-height:1.35;min-height:38px;margin:0!important;display:flex;align-items:center;justify-content:center}
.clash-themed .hub-match-side>p{margin:0!important;font-size:12px}
.clash-themed .hub-match-side>button:last-child,.clash-themed .hub-match-side>a{margin-top:auto!important;width:100%;border-color:var(--clash-edge);background:linear-gradient(135deg,var(--clash-glow),#161616);color:var(--clash-accent);font-size:13px;min-height:44px;border-radius:10px;display:flex;justify-content:center;align-items:center}
.clash-themed .hub-match-side>button:last-child:hover{background:var(--clash-glow);box-shadow:0 0 0 1px var(--clash-edge)}
.clash-themed .hub-match-vs{position:absolute!important;z-index:3;top:180px!important;left:50%!important;transform:translate(-50%,-50%)!important;width:48px!important;height:48px!important;display:grid!important;place-items:center;border:1px solid var(--clash-edge)!important;border-radius:15px!important;background:#171513!important;color:var(--clash-accent)!important;font-size:17px!important;font-weight:900;font-style:italic;box-shadow:0 0 0 5px #171513,0 0 25px var(--clash-glow);letter-spacing:-1px;pointer-events:none}
.clash-themed .clash-many .hub-match-vs{display:none!important}
@media(max-width:600px){.clash-themed .clash-duel{padding:12px!important;border-radius:20px}.clash-themed .hub-match-arena{gap:28px!important;padding:8px 0!important}.clash-themed .hub-match-side{padding:7px!important;gap:9px;border-radius:12px}.clash-themed .hub-match-side h4,.clash-themed .hub-match-side h3{font-size:12px;min-height:48px}.clash-themed .hub-match-side>p{font-size:11px}.clash-themed .hub-match-side>button:last-child,.clash-themed .hub-match-side>a{font-size:11px;padding:8px 5px;line-height:1.25}.clash-themed .hub-match-vs{top:calc((100vw - 120px)*.349)!important;width:32px!important;height:36px!important;font-size:13px!important;border-radius:10px!important;box-shadow:0 0 0 3px #171513}.clash-themed[data-game=lorcana] .hub-match-side{border-radius:17px 17px 10px 10px}}
@media(prefers-reduced-motion:reduce){.clash-themed *{transition:none!important}}
.clash-themed .clash-duel{color:#f7f1e8!important}
.clash-themed .clash-duel .text-muted-foreground,.clash-themed .clash-duel>p{color:#c1b6ab!important}
.clash-themed .hub-match-arena{background:transparent!important;border:0!important}
.clash-themed .hub-match-side{color:#f7f1e8!important}
.clash-themed .hub-match-side h3,.clash-themed .hub-match-side h4{color:#f7f1e8!important}
.clash-themed .hub-match-side>p{color:#cfc4b7}

.champion-art{--winner-accent:#24d8ee;--winner-bg:#06152c;max-width:600px;margin:24px auto;padding:32px 38px 28px;background:var(--winner-bg);color:#f8f8ff;text-align:center;border-radius:22px;border:1px solid #ffffff12;overflow:hidden;isolation:isolate}
.champion-art[data-game=lorcana]{--winner-accent:#e5ba65;--winner-bg:#1b1725}
.champion-art[data-game=pokemon]{--winner-accent:#ffdb45;--winner-bg:#071d3b}
.champion-brand{font-size:12px;letter-spacing:.25em;color:#ff8a32;font-weight:800;margin:0 0 18px!important}
.champion-title{font-size:clamp(28px,4.2vw,44px);font-weight:900;letter-spacing:.025em;line-height:1.12;text-transform:uppercase;margin:0!important;color:#faf9ff!important}
.champion-game{font-size:18px;letter-spacing:.26em;font-weight:800;color:var(--winner-accent)!important;margin:12px 0 45px!important}
.champion-art[data-game=lorcana] .champion-title,.champion-art[data-game=lorcana] .champion-name{font-family:Georgia,'Times New Roman',serif;color:#fff0ca!important;font-weight:600}
.champion-card-wrap{position:relative;width:min(100%,350px);aspect-ratio:63/88;margin:0 auto}
.champion-frame{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:2}
.champion-card{position:absolute;inset:3.8% 4.4%;padding:0!important;display:grid;place-items:center;background:transparent!important;border:0!important;border-radius:7px;overflow:hidden;cursor:zoom-in;width:auto!important;height:auto!important}
.champion-card img{display:block;width:100%;height:100%;object-fit:contain;aspect-ratio:63/88}
.champion-card:focus-visible{outline:3px solid #fff;outline-offset:-3px}
.champion-image-fallback{font-size:14px;color:#eee;padding:16px}
.champion-caption{text-transform:uppercase;letter-spacing:.24em;font-size:11px;color:var(--winner-accent)!important;margin:28px 0 9px!important}
.champion-name{font-size:20px;line-height:1.3;color:#fff!important;font-weight:800;margin:0!important;overflow-wrap:anywhere}
.champion-code{font-size:11px;color:#b9b7c3!important;margin:9px 0 0!important;overflow-wrap:anywhere}
@media(max-width:600px){.champion-art{padding:26px 25px 23px;border-radius:17px;margin:18px auto}.champion-brand{font-size:10px;letter-spacing:.2em}.champion-title{font-size:28px}.champion-game{font-size:15px;margin-bottom:38px!important}.champion-caption{font-size:10px;letter-spacing:.17em}.champion-name{font-size:18px}}

/* Scoped, shared layout for legacy, direct and repechage in all games. */
.clash-themed .clash-duel{box-sizing:border-box;width:100%;max-width:820px;min-width:0}
.clash-themed .hub-match-arena{--duel-gap:48px;--side-pad:12px;--arena-pad:12px;container-type:inline-size;box-sizing:border-box;position:relative!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--duel-gap)!important;width:100%;max-width:608px;margin-inline:auto!important;padding:var(--arena-pad) 0!important;align-items:stretch!important}
.clash-themed .hub-match-side{box-sizing:border-box;width:100%!important;max-width:none!important;min-width:0!important;padding:var(--side-pad)!important;align-self:stretch;justify-self:stretch;margin:0!important;border-width:1px!important}
.clash-themed .hub-match-side>img,.clash-themed .hub-match-side>button:first-child img{box-sizing:border-box;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:63/88;object-fit:contain!important}
.clash-themed .hub-match-side>button:first-child:has(img){display:block;box-sizing:border-box;width:100%;padding:0!important;min-height:0!important;flex:none}
.clash-themed .hub-match-side>button:last-child:not(:has(img)){white-space:normal!important;min-width:0!important;height:auto!important;padding:10px 6px!important;line-height:1.3}
.clash-themed .hub-match-vs{box-sizing:border-box;position:absolute!important;left:50%!important;top:180px!important;margin:0!important;transform:translate(-50%,-50%)!important;width:38px!important;height:42px!important;font-size:15px!important;z-index:4;max-width:none;align-self:auto;justify-self:auto}
@supports(width:1cqw){.clash-themed .hub-match-vs{top:calc(var(--arena-pad) + var(--side-pad) + ((100cqw - var(--duel-gap))/2 - 2*var(--side-pad) - 2px)*.6984127)!important}}
.clash-themed .clash-many{row-gap:18px!important}
@media(max-width:600px){.clash-themed .clash-duel{padding:12px!important;max-width:100%}.clash-themed .hub-match-arena{--duel-gap:24px;--side-pad:6px;--arena-pad:8px;grid-template-columns:repeat(2,minmax(0,1fr))!important}.clash-themed .hub-match-side{gap:9px!important}.clash-themed .hub-match-side h3,.clash-themed .hub-match-side h4{font-size:12px!important;line-height:1.3;min-height:48px;overflow-wrap:anywhere}.clash-themed .hub-match-side>p{overflow-wrap:anywhere}.clash-themed .hub-match-side>button:last-child:not(:has(img)),.clash-themed .hub-match-side>a{font-size:11px!important;min-height:44px!important}.clash-themed .hub-match-vs{width:26px!important;height:32px!important;font-size:12px!important;border-radius:9px!important;box-shadow:0 0 0 2px #171513!important;top:100px!important}@supports(width:1cqw){.clash-themed .hub-match-vs{top:calc(var(--arena-pad) + var(--side-pad) + ((100cqw - var(--duel-gap))/2 - 2*var(--side-pad) - 2px)*.6984127)!important}}}
