:root {
  color-scheme:dark;
  --portal-accent:#00c2ff;
  --portal-bg:#081322;
  --portal-surface:#14273c;
  --portal-text:#eef6ff;
  --portal-accent-ink:#07101d;
  --muted:#9aafc2;
  --border:rgba(168,206,233,.17);
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  font-synthesis:none
}

* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth
}

body {
  background:#07101c;
  color:var(--portal-text);
  margin:0;
  line-height:1.55;
  min-width:290px
}

a {
  color:inherit;
  text-decoration:none
}

button {
  font:inherit
}

button,a {
  transition:background .18s,color .18s,transform .18s
}

a:focus-visible,button:focus-visible {
  outline:3px solid var(--portal-accent);
  outline-offset:3px
}

a:hover,button:hover {
  transform:translateY(-1px)
}

.wrap {
  max-width:1240px;
  padding-left:32px;
  padding-right:32px;
  margin:0 auto
}

.site-top {
  max-width:1430px;
  margin:auto;
  display:flex;
  align-items:center;
  gap:28px;
  justify-content:space-between;
  min-height:94px;
  padding:16px 36px;
  border-bottom:1px solid var(--border)
}

.wordmark {
  display:inline-flex;
  align-items:center;
  gap:13px;
  white-space:nowrap;
  font-size:19px;
  font-weight:800;
  letter-spacing:.055em;
  line-height:1
}

.wordmark img {
  object-fit:contain
}

.wordmark b {
  color:var(--portal-accent)
}

.wordmark small {
  font-size:9px;
  display:block;
  letter-spacing:.17em;
  color:#829cb5;
  margin-top:8px;
  font-weight:700
}

.site-top nav {
  display:flex;
  flex-wrap:wrap;
  gap:27px;
  color:#bfd2e3;
  font-size:13px;
  font-weight:700
}

.site-top nav a:hover,.text-link:hover,.event-card-foot a:hover {
  color:var(--portal-accent)
}

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  border-radius:9px;
  padding:13px 19px;
  font-size:13px;
  font-weight:800;
  letter-spacing:.02em;
  border:1px solid transparent;
  cursor:pointer
}

.btn-primary {
  background:var(--portal-accent);
  color:var(--portal-accent-ink)
}

.btn-primary:hover {
  filter:brightness(1.09)
}

.btn-outline {
  background:transparent;
  border-color:#55708a;
  color:#edf6ff
}

.btn-outline:hover {
  border-color:var(--portal-accent)
}

.btn:disabled {
  opacity:.65;
  cursor:wait
}

.hero {
  min-height:548px;
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);
  align-items:center;
  gap:45px;
  padding-top:52px;
  padding-bottom:63px
}

.eyebrow {
  font-size:11px;
  color:var(--portal-accent);
  letter-spacing:.18em;
  font-weight:900;
  text-transform:uppercase;
  margin:0 0 16px
}

.live-dot {
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--portal-accent);
  box-shadow:0 0 15px var(--portal-accent);
  margin-right:8px
}

.hero h1 {
  font-size:clamp(49px,6vw,84px);
  font-weight:950;
  letter-spacing:-.065em;
  line-height:1.03;
  margin:0 0 24px
}

.hero h1 em {
  font-style:normal;
  color:var(--portal-accent)
}

.hero-lede {
  max-width:515px;
  font-size:17px;
  color:#bbcbda;
  margin-bottom:27px
}

.hero-actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px
}

.hero-meta {
  display:flex;
  flex-wrap:wrap;
  gap:28px;
  border-top:1px solid var(--border);
  margin-top:49px;
  padding-top:18px
}

.hero-meta span {
  display:flex;
  flex-direction:column
}

.hero-meta b {
  font-size:11px;
  letter-spacing:.09em
}

.hero-meta small {
  font-size:11px;
  color:var(--muted);
  margin-top:3px
}

.hero-art {
  position:relative;
  min-height:405px;
  display:flex;
  align-items:center;
  justify-content:center;
  isolation:isolate;
  background:radial-gradient(circle at 50% 48%,rgba(0,194,255,.18),transparent 59%);
  overflow:hidden
}

.orbit {
  position:absolute;
  border:1px solid rgba(79,157,202,.31);
  border-radius:50%;
  transform:rotate(-25deg)
}

.orbit-one {
  width:375px;
  height:375px;
  box-shadow:inset 0 0 35px rgba(35,139,190,.09)
}

.orbit-two {
  width:270px;
  height:270px;
  border:14px solid rgba(79,160,220,.1);
  box-shadow:0 0 85px rgba(11,141,208,.18)
}

.hero-symbol {
  font-size:clamp(95px,11vw,155px);
  font-weight:950;
  font-style:italic;
  letter-spacing:-.1em;
  transform:skewX(-8deg);
  text-shadow:0 0 65px rgba(0,194,255,.3)
}

.hero-symbol span {
  color:var(--portal-accent)
}

.hero-frame-label {
  position:absolute;
  right:15px;
  bottom:45px;
  font-size:10px;
  letter-spacing:.3em;
  color:#7897b2
}

.homepage-announcement {
  position:relative;
  display:flex;
  align-items:center;
  gap:18px;
  min-height:126px;
  margin-bottom:18px;
  padding:21px 27px;
  border:1px solid color-mix(in srgb,var(--portal-accent) 45%,transparent);
  border-left:5px solid var(--portal-accent);
  background:linear-gradient(105deg,rgba(0,194,255,.1),rgba(16,32,55,.8));
  border-radius:13px;
  overflow:hidden
}

.homepage-announcement[hidden],.hidden {
  display:none!important
}

.homepage-announcement img {
  width:190px;
  height:105px;
  object-fit:cover;
  border-radius:8px
}

.portal-announcement-copy {
  flex:1;
  min-width:0
}

.portal-announcement-copy strong {
  display:block;
  font-size:20px;
  line-height:1.25;
  font-weight:850
}

.portal-announcement-copy p {
  white-space:pre-line;
  margin:6px 0;
  color:#bdccda;
  font-size:13px
}

.portal-announcement-copy .eyebrow {
  display:block;
  margin-bottom:6px
}

.announcement-link {
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
  color:var(--portal-accent);
  font-weight:800;
  font-size:13px
}

.announcement-link[hidden] {
  display:none!important
}

.portal-announcement-dots {
  color:#8cabca;
  font-size:11px;
  align-self:flex-start
}

.homepage-announcement.announcement-exit {
  animation:banner-exit .26s ease both
}

.homepage-announcement.announcement-enter {
  animation:banner-enter .42s ease both
}

@keyframes banner-exit {
  to {
    opacity:.08;
    transform:translateX(-10px)
  }

}

@keyframes banner-enter {
  from {
    opacity:.08;
    transform:translateX(18px)
  }

  to {
    opacity:1;
    transform:translateX(0)
  }

}

.content-section {
  padding-top:78px;
  padding-bottom:82px;
  scroll-margin-top:20px
}

.section-header {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:27px
}

.section-header .eyebrow {
  margin-bottom:8px
}

.section-header h2,.cta-section h2 {
  font-size:clamp(29px,3.6vw,43px);
  letter-spacing:-.05em;
  margin:0;
  font-weight:900
}

.section-header .muted {
  margin:5px 0 0
}

.muted {
  color:var(--muted);
  font-size:13px
}

.text-link {
  color:#c3d7eb;
  font-size:13px;
  font-weight:800;
  white-space:nowrap
}

.video-shell {
  border:1px solid var(--border);
  border-radius:17px;
  background:linear-gradient(105deg,#121c2e,#0c172a);
  overflow:hidden
}

.video-offline {
  min-height:145px;
  display:flex;
  align-items:center;
  gap:26px;
  padding:24px 34px
}

.play-icon {
  width:66px;
  height:66px;
  border:2px solid #607f9b;
  color:var(--portal-accent);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  font-size:24px
}

.video-offline>div:nth-child(2) {
  flex:1
}

.video-offline h3 {
  margin:7px 0 4px;
  font-size:21px
}

.video-offline p {
  margin:0;
  color:var(--muted);
  font-size:13px
}

.tag {
  display:inline-block;
  border:1px solid rgba(72,157,201,.38);
  border-radius:5px;
  padding:5px 8px;
  color:var(--portal-accent);
  font-size:10px;
  font-weight:900;
  letter-spacing:.13em
}

.video-playing {
  max-width:1000px;
  margin:auto;
  padding:17px
}

.video-on-air-meta {
  display:flex;
  align-items:center;
  gap:20px;
  padding:14px 5px
}

.video-on-air-meta .tag {
  border-color:#d84459;
  color:#ff4967
}

.video-on-air-meta a {
  margin-left:auto;
  color:#abd8ff;
  font-size:13px;
  font-weight:800
}

.cards-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:15px
}

.event-card {
  display:flex;
  flex-direction:column;
  min-height:250px;
  padding:24px;
  border:1px solid var(--border);
  border-radius:12px;
  background:linear-gradient(154deg,#16263b,#101b2a)
}

.event-card:hover {
  border-color:rgba(62,180,241,.52)
}

.event-card-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px
}

.status {
  font-size:10px;
  color:#94a8ba
}

.status.accepting {
  color:#84edc5
}

.event-card h3 {
  font-size:20px;
  line-height:1.3;
  letter-spacing:-.02em;
  margin:22px 0 13px
}

.event-card .event-date {
  margin:0;
  font-size:13px;
  font-weight:800;
  color:#dce8f7
}

.event-card .muted {
  margin:7px 0 15px;
  line-height:1.45
}

.event-card-foot {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-top:auto;
  padding-top:14px;
  border-top:1px solid var(--border);
  font-size:12px;
  color:var(--muted)
}

.event-card-foot a {
  font-weight:800;
  color:var(--portal-accent);
  white-space:nowrap
}

.empty-state {
  grid-column:1/-1;
  border:1px dashed #37516b;
  color:#adc0d3;
  border-radius:12px;
  text-align:center;
  padding:35px
}

.section-darker {
  background:#0a1524;
  border-top:1px solid #1a2e45;
  border-bottom:1px solid #1a2e45
}

.stats-layout {
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:18px
}

.metrics-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px
}

.metric,.rank-panel {
  border:1px solid var(--border);
  background:#111f32;
  border-radius:12px;
  padding:25px
}

.metric strong {
  display:block;
  font-size:43px;
  line-height:1.2;
  color:var(--portal-accent);
  letter-spacing:-.05em
}

.metric span {
  font-size:12px;
  color:var(--muted)
}

.rank-header {
  display:flex;
  justify-content:space-between;
  align-items:center
}

.rank-header h3 {
  margin:0;
  font-size:18px
}

.rank-header span {
  font-size:10px;
  color:var(--portal-accent);
  letter-spacing:.12em;
  font-weight:900
}

.rank-panel ol {
  list-style:none;
  padding:0;
  margin:14px 0 0
}

.rank-panel li {
  border-top:1px solid var(--border);
  display:grid;
  grid-template-columns:38px 1fr auto 85px;
  align-items:center;
  gap:8px;
  padding:13px 0;
  font-size:13px
}

.rank-panel .rank-num {
  color:var(--portal-accent);
  font-weight:900
}

.rank-panel li span:nth-last-child(2) {
  font-weight:800
}

.rank-panel small {
  color:var(--muted);
  text-align:right
}

.cta-section {
  background:radial-gradient(ellipse at 80% 45%,rgba(0,194,255,.14),transparent 55%),#142439;
  border:1px solid rgba(61,137,188,.3);
  border-radius:18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding-top:48px;
  padding-bottom:48px;
  margin-top:5px;
  margin-bottom:85px
}

.cta-section p:not(.eyebrow) {
  color:#aec2d2;
  margin:8px 0 0
}

.site-footer {
  max-width:1240px;
  margin:auto;
  padding:40px 32px 50px;
  border-top:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  flex-wrap:wrap
}

.site-footer strong {
  letter-spacing:.09em
}

.site-footer p,.site-footer small {
  font-size:12px;
  color:#8fa8c2
}

.site-footer div:nth-child(2) {
  display:flex;
  gap:20px;
  font-size:12px;
  color:#bfd2e3
}

.event-detail {
  padding-top:35px;
  padding-bottom:100px;
  min-height:70vh
}

.back-link {
  display:inline-block;
  color:#b6cde4;
  margin-bottom:34px;
  font-size:13px
}

.event-detail-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  align-items:start;
  gap:45px
}

.event-detail h1 {
  font-size:clamp(35px,4.2vw,58px);
  line-height:1.1;
  letter-spacing:-.05em;
  margin:17px 0
}

.event-detail .lede {
  font-size:15px;
  color:#b6c9dd;
  white-space:pre-line
}

.detail-data {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  padding:25px 0;
  margin:30px 0
}

.detail-data div {
  display:flex;
  flex-direction:column
}

.detail-data small {
  font-size:10px;
  letter-spacing:.14em;
  color:var(--portal-accent);
  font-weight:900;
  margin-bottom:6px
}

.detail-data strong {
  font-size:14px
}

.detail-panel {
  margin-top:23px;
  border:1px solid var(--border);
  background:#121f30;
  border-radius:12px;
  padding:27px
}

.detail-panel h2 {
  font-size:19px;
  margin:0 0 12px
}

.prewrap {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  color:#c2d3e3;
  font-size:14px
}

.register-panel {
  position:sticky;
  top:20px;
  border:1px solid rgba(42,176,238,.5);
  background:linear-gradient(156deg,#172c43,#0d1c2d);
  border-radius:14px;
  padding:27px
}

.register-panel h2 {
  font-size:24px;
  margin:0
}

.register-panel>p:not(.eyebrow) {
  font-size:13px;
  color:#afc2d4
}

.join-status {
  font-size:12px;
  padding:13px 0;
  color:var(--portal-accent)
}

#signup-actions .btn {
  width:100%
}

.small-hint {
  font-size:11px!important;
  line-height:1.5
}

.not-found {
  min-height:70vh;
  padding-top:90px
}

.not-found a {
  color:var(--portal-accent)
}

@media(max-width:1000px) {
  .site-top nav {
    gap:12px
  }

  .hero {
    grid-template-columns:1fr .7fr
  }

  .cards-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }

  .stats-layout {
    grid-template-columns:1fr
  }

  .event-detail-grid {
    grid-template-columns:1fr 300px;
    gap:22px
  }

}

@media(max-width:720px) {
  .wrap {
    padding-left:19px;
    padding-right:19px
  }

  .site-top {
    min-height:80px;
    padding:13px 18px;
    flex-wrap:wrap;
    gap:14px
  }

  .site-top nav {
    order:3;
    width:100%;
    justify-content:space-between;
    padding-top:5px
  }

  .nav-portal {
    margin-left:auto
  }

  .site-top nav a {
    font-size:11px
  }

  .wordmark {
    font-size:16px
  }

  .wordmark img {
    width:38px;
    height:38px
  }

  .wordmark small {
    font-size:8px
  }

  .hero {
    min-height:auto;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    padding-top:56px;
    padding-bottom:38px;
    gap:0
  }

  .hero h1 {
    font-size:clamp(45px,12vw,69px)
  }

  .hero-art {
    min-height:180px;
    max-height:240px
  }

  .orbit-one {
    width:225px;
    height:225px
  }

  .orbit-two {
    width:158px;
    height:158px
  }

  .hero-symbol {
    font-size:92px
  }

  .hero-frame-label {
    bottom:8px
  }

  .hero-meta {
    gap:17px;
    margin-top:30px
  }

  .hero-meta b {
    font-size:10px
  }

  .hero-meta small {
    font-size:10px
  }

  .homepage-announcement {
    flex-wrap:wrap;
    padding:17px;
    min-height:120px
  }

  .homepage-announcement img {
    width:100%;
    height:145px
  }

  .homepage-announcement .announcement-link {
    order:3
  }

  .homepage-announcement .portal-announcement-dots {
    position:absolute;
    right:14px;
    top:13px
  }

  .content-section {
    padding-top:58px;
    padding-bottom:61px
  }

  .section-header {
    display:block
  }

  .section-header>.text-link,.section-header>.btn {
    display:inline-flex;
    margin-top:13px
  }

  .cards-grid {
    grid-template-columns:1fr
  }

  .event-card {
    min-height:215px
  }

  .video-offline {
    padding:20px;
    flex-wrap:wrap;
    gap:15px
  }

  .video-offline .play-icon {
    width:44px;
    height:44px;
    font-size:17px
  }

  .video-offline .btn {
    width:100%
  }

  .video-offline>div:nth-child(2) {
    flex-basis:calc(100% - 70px)
  }

  .video-offline h3 {
    font-size:17px
  }

  .stats-layout {
    gap:13px
  }

  .rank-panel {
    padding:18px
  }

  .rank-panel li {
    grid-template-columns:25px 1fr auto;
    gap:7px
  }

  .rank-panel li small {
    display:none
  }

  .metric {
    padding:20px
  }

  .metric strong {
    font-size:35px
  }

  .cta-section {
    flex-direction:column;
    align-items:start;
    margin-bottom:50px
  }

  .site-footer {
    align-items:start;
    flex-direction:column
  }

  .event-detail-grid {
    grid-template-columns:1fr
  }

  .register-panel {
    position:static
  }

  .detail-data {
    gap:18px
  }

  .event-detail {
    padding-bottom:60px
  }

}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }

  a,button {
    transition:none
  }

  .homepage-announcement.announcement-exit,.homepage-announcement.announcement-enter {
    animation:none
  }

}

/* v5.3.0 small announcement thumbnail beside the headline on the public home page. */
.homepage-announcement {
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:center;
  gap:12px;
  min-height:76px;
  padding:9px 14px
}

.homepage-announcement img {
  display:block;
  width:84px;
  max-width:84px;
  height:58px;
  max-height:58px;
  object-fit:contain;
  flex:none
}

.homepage-announcement .portal-announcement-copy {
  min-width:0;
  flex:1
}

@media(max-width:720px) {
  .homepage-announcement {
    flex-direction:row;
    flex-wrap:nowrap;
    align-items:center;
    min-height:65px;
    padding:9px 12px
  }

  .homepage-announcement img {
    width:60px;
    max-width:60px;
    height:54px;
    max-height:54px
  }

  .homepage-announcement .announcement-link {
    order:0
  }

}

@media(max-width:720px){.site-top nav{flex-wrap:wrap;gap:10px 16px;justify-content:flex-start}}

/* Public tournament summaries stay compact while the shared bracket renderer retains its other layouts. */
#live-tournaments {padding-top:16px;padding-bottom:8px}
#live-tournaments>h2 {font-size:1.25rem;margin:0 0 8px}
.public-tournament-status {font-size:.75rem;color:#adc4dc;margin:4px 0 8px}
.public-tournament {margin:8px 0;border:1px solid #364b63;border-radius:12px;background:#142235;min-width:0}
.public-tournament-bar {display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;padding:10px 14px;min-height:48px;box-sizing:border-box}
.public-tournament-bar::-webkit-details-marker {display:none}
.public-tournament-bar::after {content:'⌄';margin-left:auto;color:#9bcaff;font-size:20px}
.public-tournament[open]>.public-tournament-bar::after {content:'⌃'}
.public-tournament-name {font-size:1rem;line-height:1.3;overflow-wrap:anywhere}
.public-tournament-phase {font-size:.8rem;color:#ffbd88;overflow-wrap:anywhere}
.public-tournament-count {font-size:.8rem;white-space:nowrap;color:#bed4e9}
.public-tournament-body {padding:0 10px 10px}
.public-tournament .tournament-board {padding:0;background:transparent;border:0;border-radius:0;min-width:0}
.public-tournament-section {border-top:1px solid #344a61;padding:0;margin:0}
.public-tournament-section>summary {cursor:pointer;min-height:44px;padding:10px 4px;box-sizing:border-box;font-size:.9rem;font-weight:600;color:#dbe9f7}
.public-tournament-section .tb-bracket {max-width:100%}
.public-tournament-section .tb-podium {padding:10px 0}
.public-tournament-players {max-height:280px;overflow:auto;margin:0;padding:0 8px 8px 30px}
.public-tournament-players li {padding:6px 0;border-bottom:1px solid #2b4058;overflow-wrap:anywhere;font-size:.9rem}
.public-tournament-players li small {display:block;color:#a9c3df;font-size:.8rem;margin-top:2px}
.public-tournament summary:focus-visible {outline:2px solid #9bcaff;outline-offset:2px}
@media(max-width:600px){
 .public-tournament-bar {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;padding:8px 12px}
 .public-tournament-name {grid-column:1;font-size:.95rem}
 .public-tournament-phase {grid-column:1;font-size:.75rem}
 .public-tournament-count {grid-column:2;grid-row:2}
 .public-tournament-bar::after {grid-column:2;grid-row:1;font-size:18px}
 .public-tournament-body {padding:0 8px 8px}
}

.event-host{display:flex;align-items:center;gap:12px;margin:12px 0;color:#abc2db}.event-host img{height:56px;width:56px;object-fit:contain;border-radius:12px}.event-detail-grid>*{min-width:0}.event-detail h1{font-size:clamp(1.8rem,6vw,3rem);line-height:1.15;overflow-wrap:anywhere}.event-detail .detail-panel{margin-block:20px}
