/* COGO contest arena r2 — scoped to the contest list. */
html body[data-view="contests"] #main .contests15.contest-arena-r2{--ar-ink:#243139;--ar-muted:#6d787e;--ar-line:#dde2e4;--ar-paper:#fff;--ar-soft:#f1f3f3;--ar-blue:#334c48;display:flex!important;flex-direction:column!important;gap:0!important;height:auto!important;min-height:0!important;max-height:none!important;padding:0!important;overflow:visible!important;color:var(--ar-ink)}
#main .contest-arena-r2 *{box-sizing:border-box}
#main .contest-arena-r2 .arena-icon{flex:none;display:inline-block;vertical-align:middle;width:18px;height:18px}
#main .contest-arena-r2 .arena-hero{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:40px;align-items:center;overflow:hidden;flex:none;padding:28px 36px;border:1px solid #354147;border-radius:15px;background:radial-gradient(ellipse at 90% -30%,#40514f66,transparent 60%),linear-gradient(112deg,#182025,#263238);box-shadow:0 10px 24px #1320260c;color:#f8faf9}
#main .contest-arena-r2 .arena-hero:before{content:"";position:absolute;z-index:-1;inset:0;background:repeating-linear-gradient(115deg,transparent 0,transparent 119px,#ffffff04 120px,#ffffff04 121px);pointer-events:none}
#main .contest-arena-r2 .arena-hero:after{content:"";position:absolute;z-index:-1;height:1px;top:0;left:36px;right:36px;background:linear-gradient(90deg,transparent,#b7c9c46b,transparent);pointer-events:none}
#main .contest-arena-r2 .arena-hero-copy{min-width:0}
#main .contest-arena-r2 .arena-kicker{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:700;letter-spacing:2.2px;color:#d8e0de}
#main .contest-arena-r2 .arena-kicker>i{width:5px;height:5px;background:#a7c1b7;border-radius:50%;margin-right:2px}
#main .contest-arena-r2 .arena-kicker>b{font-weight:400;color:#778b8b;margin:0 2px}
#main .contest-arena-r2 .arena-kicker>span{letter-spacing:0;font-weight:400;border-left:1px solid #ffffff25;padding-left:10px;margin-left:5px;color:#aebebc}
#main .contest-arena-r2 .arena-hero h1{font-size:36px;line-height:1.2;letter-spacing:-1.6px;font-weight:800;margin:16px 0 12px;color:#f4f6f5}
#main .contest-arena-r2 .arena-hero h1 em{font-style:normal;color:#f4f6f5}
#main .contest-arena-r2 .arena-hero p{font-size:12px;line-height:1.7;color:#b7c4c3;margin:0 0 19px;word-break:keep-all;overflow-wrap:anywhere}
#main .contest-arena-r2 .arena-hero-cta{display:inline-flex;align-items:center;justify-content:center;gap:28px;min-height:39px;padding:9px 14px;border:1px solid #fff0;border-radius:6px;background:#edf1ed;color:#243332;font:inherit;font-size:12px;font-weight:700;cursor:pointer;transition:background .2s,box-shadow .2s}
#main .contest-arena-r2 .arena-hero-cta:hover{background:#fff;box-shadow:0 4px 16px #0002}
#main .contest-arena-r2 .arena-hero-cta .arena-icon{transition:transform .2s}
#main .contest-arena-r2 .arena-hero-cta:hover .arena-icon{transform:translateX(3px)}
#main .contest-arena-r2 .arena-hero-side{display:flex;flex-direction:column;gap:20px;min-width:0;padding:21px 0 23px 35px;border-left:1px solid #ffffff1f}
#main .contest-arena-r2 .arena-status-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#c2ccca;font-size:11px;font-weight:500}
#main .contest-arena-r2 .arena-status-heading>span:last-child{font-size:9px;letter-spacing:1.5px;color:#839895}
#main .contest-arena-r2 .arena-score-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:22px}
#main .contest-arena-r2 .arena-score-strip>div{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding-top:13px;border-top:1px solid #ffffff25;min-width:0}
#main .contest-arena-r2 .arena-score-strip>div:first-child{border-top-color:#a4bdb4}
#main .contest-arena-r2 .arena-score-strip span{display:flex;align-items:center;gap:5px;font-size:10px;white-space:nowrap;color:#aebdba}
#main .contest-arena-r2 .arena-score-strip strong{color:#e8eeeb;font-size:44px;font-weight:500;letter-spacing:-2px;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#main .contest-arena-r2 .arena-live-dot{display:inline-block;width:4px;height:4px;border-radius:50%;background:#abc5b8}
#main .contest-arena-r2 .arena-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:26px 0 16px}
#main .contest-arena-r2 .arena-section-head h2{font-size:19px;letter-spacing:-.6px;line-height:1.4;margin:0 0 4px;color:var(--ar-ink)}
#main .contest-arena-r2 .arena-section-head>div>span{font-size:12px;color:var(--ar-muted)}
#main .contest-arena-r2 .contest14-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#main .contest-arena-r2 .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--ar-blue);border:1px solid var(--ar-blue);color:#fff;border-radius:9px;min-height:38px;padding:8px 13px;font-size:12px;font-weight:700;line-height:1.5}
#main .contest-arena-r2 .btn.outline{border-color:var(--ar-line);color:var(--ar-ink);background:var(--ar-paper)}
#main .contest-arena-r2 .contest-tools15{display:flex!important;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 17px!important;padding:0!important;background:transparent;border:0;flex:none}
#main .contest-arena-r2 .contest-tabs15{display:flex;gap:4px;flex-wrap:nowrap;flex:0 0 auto;width:max-content;padding:4px;border-radius:8px;background:var(--ar-soft);border:1px solid var(--ar-line);margin:0;min-width:0}
#main .contest-arena-r2 .contest-tabs15 button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:33px;white-space:nowrap;padding:6px 13px;border:0;border-radius:7px;background:transparent;color:var(--ar-muted);font-size:12px;font-weight:700;line-height:1.4;box-shadow:none}
#main .contest-arena-r2 .contest-tabs15 button span{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;background:var(--ar-line);color:var(--ar-muted);font-size:10px;border-radius:5px;padding:0 4px;font-variant-numeric:tabular-nums}
#main .contest-arena-r2 .contest-tabs15 button.active{background:var(--ar-ink);color:var(--ar-paper);box-shadow:0 2px 4px #24313910}
#main .contest-arena-r2 .contest-tabs15 button.active span{background:#ffffff25;color:inherit}
#main .contest-arena-r2 .contest-search15{height:42px;min-width:160px;max-width:350px;margin:0 0 0 auto;flex:1;display:flex;align-items:center;gap:8px;padding:0 12px;background:var(--ar-paper);border:1px solid var(--ar-line);border-radius:10px;color:var(--ar-muted)}
#main .contest-arena-r2 .contest-search15 input{min-width:0;width:100%;border:0!important;outline:0;box-shadow:none;background:transparent;color:var(--ar-ink);padding:0;font-size:12px}
#main .contest-arena-r2 .contest-search15:focus-within{outline:2px solid #6d9281;outline-offset:2px}
#main .contest-arena-r2 #contestAccess15{width:auto!important;max-width:100%;height:42px;padding:0 28px 0 12px;border:1px solid var(--ar-line);border-radius:10px;background-color:var(--ar-paper);color:var(--ar-muted);font-size:12px}
html body[data-view="contests"] #main .contest-arena-r2 .contest-table15{display:block!important;flex:none!important;border:0!important;border-radius:0!important;background:transparent!important;padding:0!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;box-shadow:none!important}
html body[data-view="contests"] #main .contest-arena-r2 #contestRows15{display:grid!important;grid-template-columns:repeat(var(--arena-columns,1),minmax(0,1fr))!important;grid-template-rows:none!important;gap:16px!important;flex:none!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:0!important;border:0!important;background:transparent!important}
html body[data-view="contests"] #main .contest-arena-r2 #contestRows15 .arena-card{position:relative;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:0!important;min-width:0!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;padding:22px!important;overflow:hidden!important;border:1px solid var(--ar-line)!important;border-radius:10px!important;background:var(--ar-paper)!important;color:var(--ar-ink)!important;text-align:left;font:inherit;cursor:pointer;box-shadow:0 3px 10px #24313904;transition:transform .2s,border-color .2s,box-shadow .2s}
#main .contest-arena-r2 .arena-card:before{content:"";position:absolute;inset:0 auto 0 0;width:2px;background:#c2cacc}
html body[data-view="contests"] #main .contest-arena-r2 #contestRows15 .arena-card[data-state="live"]{border-color:#becfc5!important;background:linear-gradient(135deg,#f7faf8,var(--ar-paper))!important}
#main .contest-arena-r2 .arena-card[data-state="live"]:before{background:#557d6b}
#main .contest-arena-r2 .arena-card[data-state="upcoming"]:before{background:#a69d89}
html body[data-view="contests"] #main .contest-arena-r2 #contestRows15 .arena-card:hover{transform:translateY(-2px);border-color:#9eb3a9!important;box-shadow:0 9px 20px #263c3210}
#main .contest-arena-r2 .arena-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:17px;min-width:0}
#main .contest-arena-r2 .arena-status{display:inline-flex;align-items:center;gap:5px;background:var(--ar-soft);color:#6e7a7e;border-radius:6px;font-size:11px;font-weight:800;line-height:1.4;padding:5px 7px;white-space:nowrap}
#main .contest-arena-r2 .arena-status svg{width:13px;height:13px}
#main .contest-arena-r2 [data-state="live"] .arena-status{background:#e8efeb;color:#3b6252}
#main .contest-arena-r2 [data-state="upcoming"] .arena-status{background:#efede7;color:#71634c}
#main .contest-arena-r2 [data-state="cancelled"] .arena-status{background:#fff0ed;color:#a24c3d}
#main .contest-arena-r2 .arena-entry{display:flex;align-items:center;gap:4px;font-size:10px;color:var(--ar-muted);white-space:nowrap}
#main .contest-arena-r2 .arena-entry svg{width:13px;height:13px}
#main .contest-arena-r2 .arena-card-title{display:block;min-width:0;margin-bottom:18px}
#main .contest-arena-r2 .arena-card-title strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal!important;font-size:17px;font-weight:800;line-height:1.55;letter-spacing:-.5px;word-break:keep-all;overflow-wrap:anywhere;color:var(--ar-ink)}
#main .contest-arena-r2 .arena-card-title small{display:block;font-size:11px;line-height:1.5;color:var(--ar-muted);margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#main .contest-arena-r2 .arena-card-dates{display:grid;gap:7px;padding:12px 0;border-top:1px solid var(--ar-line);margin-top:auto;font-size:11px;color:var(--ar-muted)}
#main .contest-arena-r2 .arena-card-dates>span{display:flex;gap:10px;min-width:0;align-items:baseline}
#main .contest-arena-r2 .arena-card-dates i{font-style:normal;font-size:10px;flex:none}
#main .contest-arena-r2 .arena-card-dates time{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;line-height:1.5}
#main .contest-arena-r2 .arena-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px;padding-top:12px;border-top:1px solid var(--ar-line)}
#main .contest-arena-r2 .arena-problem-count{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--ar-muted)}
#main .contest-arena-r2 .arena-problem-count svg{width:15px;height:15px;margin-right:3px}
#main .contest-arena-r2 .arena-problem-count b{font-size:14px;color:var(--ar-ink)}
#main .contest-arena-r2 .arena-card-action{display:flex;align-items:center;justify-content:center;gap:10px;background:var(--ar-soft);color:var(--ar-ink);padding:8px 10px;border-radius:7px;font-size:11px;font-weight:800;line-height:1.5;white-space:nowrap}
#main .contest-arena-r2 .arena-card-action svg{width:15px;height:15px}
#main .contest-arena-r2 [data-state="live"] .arena-card-action{background:#344f43;color:white}
#main .contest-arena-r2 [data-state="upcoming"] .arena-card-action{background:#efede7;color:#75654c}
#main .contest-arena-r2 .arena-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;gap:9px;padding:40px 20px;border:1px dashed var(--ar-line);border-radius:14px;background:var(--ar-paper);text-align:center;color:var(--ar-muted)}
#main .contest-arena-r2 .arena-empty>svg{width:26px;height:26px;color:#819a8c;margin-bottom:4px}
#main .contest-arena-r2 .arena-empty strong{font-size:15px;color:var(--ar-ink)}
#main .contest-arena-r2 .arena-empty p{margin:0 0 7px;font-size:12px;line-height:1.7}
#main .contest-arena-r2 .arena-loader{width:23px;height:23px;margin-bottom:7px;border:2px solid var(--ar-line);border-top-color:var(--ar-blue);border-radius:50%;animation:arena-spin-r2 1s linear infinite}
html body #main .contest-arena-r2 .arena-pager{display:flex!important;justify-content:space-between;align-items:center;gap:12px;min-height:30px;height:auto!important;padding:10px 0!important;margin:5px 0 0!important;border:0!important;flex:none;color:var(--ar-muted);font-size:11px;background:transparent}
#main .contest-arena-r2 .arena-pager>div{display:flex;gap:6px}
#main .contest-arena-r2 .arena-pager button{min-height:32px;border:1px solid var(--ar-line);background:var(--ar-paper);color:var(--ar-ink);border-radius:7px;padding:5px 10px;font-size:11px}
#main .contest-arena-r2 .arena-pager button:disabled{opacity:.4;cursor:default}
html body #main .contest-arena-r2 .contest-note15{margin:8px 0 0!important;padding:0!important;flex:none;font-size:10px;line-height:1.7;color:var(--ar-muted)}
#main .contest-arena-r2 button:focus-visible,#main .contest-arena-r2 select:focus-visible{outline:3px solid #6d9281!important;outline-offset:3px!important}
@media(min-width:1100px){
 html body[data-view="contests"] #main .contest-arena-r2 #contestRows15[data-arena-count="1"] .arena-card{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(200px,.7fr) minmax(155px,.4fr)!important;column-gap:28px!important;align-items:center!important;padding:22px 26px!important}
 #main .contest-arena-r2 #contestRows15[data-arena-count="1"] .arena-card-top{grid-column:1;margin:0 0 8px;justify-content:flex-start;gap:13px}
 #main .contest-arena-r2 #contestRows15[data-arena-count="1"] .arena-card-title{grid-column:1;margin:0}
 #main .contest-arena-r2 #contestRows15[data-arena-count="1"] .arena-card-dates{grid-column:2;grid-row:1/3;align-self:center;border-top:0;border-left:1px solid var(--ar-line);padding:6px 0 6px 24px;margin:0}
 #main .contest-arena-r2 #contestRows15[data-arena-count="1"] .arena-card-bottom{grid-column:3;grid-row:1/3;flex-direction:column;align-items:stretch;border:0;padding:0;margin:0;gap:10px}
 #main .contest-arena-r2 #contestRows15[data-arena-count="1"] .arena-problem-count{justify-content:center}
}
@media(max-width:1100px){#main .contest-arena-r2 .arena-hero{grid-template-columns:minmax(0,1fr) 235px;padding:25px 27px;gap:25px}#main .contest-arena-r2 .arena-hero h1{font-size:34px}#main .contest-arena-r2 .arena-hero-side{padding-left:24px}#main .contest-arena-r2 .arena-score-strip{gap:12px}#main .contest-arena-r2 .arena-score-strip strong{font-size:38px}#main .contest-arena-r2 .contest-tabs15 button{padding-inline:10px}#main .contest-arena-r2 .contest-search15{max-width:none}}
@media(max-width:700px){
 #main .contest-arena-r2 .arena-hero{grid-template-columns:1fr;padding:23px;gap:25px;border-radius:12px}
 #main .contest-arena-r2 .arena-hero h1{font-size:32px;letter-spacing:-1.3px;margin-top:16px}
 #main .contest-arena-r2 .arena-hero p{font-size:11px;margin-bottom:17px}
 #main .contest-arena-r2 .arena-hero-side{padding:0;border-left:0;gap:11px}
 #main .contest-arena-r2 .arena-status-heading{display:none}
 #main .contest-arena-r2 .arena-score-strip{gap:20px}
 #main .contest-arena-r2 .arena-score-strip>div{gap:6px;padding-top:11px}
 #main .contest-arena-r2 .arena-score-strip strong{font-size:28px;letter-spacing:-1px}
 #main .contest-arena-r2 .arena-section-head{margin-top:23px;gap:12px}
 #main .contest-arena-r2 .arena-section-head h2{font-size:17px}
 #main .contest-arena-r2 .contest-tools15{gap:9px}
 #main .contest-arena-r2 .contest-tabs15{width:100%;flex-basis:100%;justify-content:space-between}
 #main .contest-arena-r2 .contest-tabs15 button{flex:1;gap:4px;padding:7px 5px;font-size:11px}
 #main .contest-arena-r2 .contest-tabs15 button span{font-size:9px;min-width:16px}
 #main .contest-arena-r2 .contest-search15{margin:0;min-width:130px}
 #main .contest-arena-r2 #contestAccess15{font-size:11px;padding-left:9px;padding-right:23px}
 html body[data-view="contests"] #main .contest-arena-r2 #contestRows15 .arena-card{padding:19px!important}
 #main .contest-arena-r2 .arena-card-title strong{font-size:16px}
 #main .contest-arena-r2 .contest14-toolbar{gap:6px}
 #main .contest-arena-r2 .contest14-toolbar .btn{font-size:11px;padding:7px 10px;min-height:36px}
}
html[data-theme="dark"] body #main .contests15.contest-arena-r2{--ar-ink:#e5eae8;--ar-muted:#a5b1ac;--ar-line:#374740;--ar-paper:#1d2925;--ar-soft:#2a3831;--ar-blue:#749781}
html[data-theme="dark"] body[data-view="contests"] #main .contest-arena-r2 #contestRows15 .arena-card[data-state="live"]{background:linear-gradient(135deg,#263b30,#1d2925)!important;border-color:#537562!important}
html[data-theme="dark"] #main .contest-arena-r2 [data-state="ended"] .arena-status{color:#b5c6ba}
html[data-theme="dark"] #main .contest-arena-r2 [data-state="live"] .arena-status{background:#354d3d;color:#d0e4d6}
html[data-theme="dark"] #main .contest-arena-r2 [data-state="upcoming"] .arena-status{background:#494337;color:#dfd5bd}
html[data-theme="dark"] #main .contest-arena-r2 [data-state="cancelled"] .arena-status{background:#493039;color:#ffc9bb}
html[data-theme="dark"] #main .contest-arena-r2 .arena-status:not(:only-child){border-color:transparent}

@keyframes arena-spin-r2{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#main .contest-arena-r2 *,#main .contest-arena-r2 *:before,#main .contest-arena-r2 *:after{animation:none!important;transition:none!important}}
