:root { color-scheme: dark; font: 100%/1.6 Inter, system-ui, sans-serif; background: #111113; color: #f4f4f5; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #9aeb8e; outline-offset: 4px; }
[hidden] { display: none !important; }
html[data-lang="en"] :not(.notice-fallback) > span[lang="zh-Hans"],
html[data-lang="zh"] :not(.notice-fallback) > span[lang="en"],
html[data-lang="en"] #dialog-body [lang="zh-Hans"],
html[data-lang="zh"] #dialog-body [lang="en"] { display: none; }
.topbar { min-height: 3.45rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; padding: 0 max(1rem, calc((100% - 75rem) / 2)); background: #151518; border-bottom: 1px solid #27272b; }
.wordmark { display: inline-flex; justify-content: center; }
.wordmark img { object-fit: contain; }
.tabs { display: flex; justify-content: center; gap: clamp(.8rem, 3vw, 2.6rem); font-size: .95rem; }
.tabs a { padding-block: .8rem; color: #c7c7ce; white-space: nowrap; }
.tabs a[aria-current="page"] { color: #9aeb8e; font-weight: 700; }
.top-actions, .dialog-actions { display: flex; align-items: center; gap: .7rem; }
.notice-link, .language { font-size: .86rem; white-space: nowrap; background: #242426; border: 1px solid #48494e; border-radius: .5rem; padding: .28rem .65rem; }
.notice-link { color: #e4bd74; }
.hero { min-height: 29rem; display: grid; place-items: center; text-align: center; padding: 4rem 1rem 3rem; background: linear-gradient(0deg, #111113 0%, #11111330 48%, #11111333 100%), #171719 url("/closure-assets/table.png") center top / cover no-repeat; }
.hero-inner { max-width: 36rem; text-shadow: 0 2px 10px #101011; }
.hero-logo { display: block; object-fit: contain; margin: 0 auto 1.1rem; }
.eyebrow { margin: 0; color: #e6d6a5; font-size: .78rem; letter-spacing: .14em; font-weight: 700; }
h1, h2, h3 { line-height: 1.18; }
h1 { font-size: clamp(2.15rem, 5vw, 3.35rem); margin: .55rem 0 .7rem; }
.hero-subtitle { color: #dfdfe4; margin: 0 auto 1.3rem; }
.primary { display: inline-flex; align-items: center; justify-content: center; padding: .58rem 1rem; border: 1px solid #83d777; border-radius: .6rem; background: #a3e88c; color: #132210; font-weight: 750; text-shadow: none; }
.primary:hover { background: #bcf2ad; }
.game-area, .notice-fallback { width: min(100% - 2rem, 62.5rem); margin: 0 auto 3rem; }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.section-heading h2 { margin: 0; font-size: 1.55rem; }
.status, .closed { display: inline-block; width: fit-content; padding: .16rem .52rem; border-radius: .4rem; color: #e9c482; border: 1px solid #695433; background: #302719; font-size: .75rem; font-weight: 650; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.card { min-height: 10.5rem; border: 1px solid #37373c; border-radius: .8rem; padding: 1rem; background-color: #232327; background-repeat: no-repeat; background-position: right bottom; background-size: auto 100%; }
.card.ring { background-image: linear-gradient(90deg, #232327, #23232742), url("/closure-assets/ring.png"); }
.card.tournament { background-image: linear-gradient(90deg, #232327, #23232742), url("/closure-assets/mtt.png"); }
.card.ladder { background-image: linear-gradient(90deg, #232327, #23232742), url("/closure-assets/sng.png"); }
.card h3 { margin: .15rem 0 .35rem; }
.card p { margin: 0 0 .9rem; color: #dddde4; font-size: .88rem; }
.notice-fallback { max-width: 49rem; border-top: 1px solid #3b3b42; padding-top: 1rem; }
.notice-fallback [lang] { padding-bottom: .5rem; }
.notice-fallback a, #dialog-body a { color: #abdfa4; text-decoration: underline; text-underline-offset: .17em; }
#dialog-body h3 { font-size: 1.32rem; margin-block: .45rem .7rem; }
.deadline { color: #fff; font-weight: 750; }
.rebirth { padding: .8rem .9rem; border-radius: .6rem; border: 1px solid #80602e; background: #352918; color: #ffdc91; }
.rebirth strong { font-weight: 750; }
footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.3rem; border-top: 1px solid #343439; padding: 1.15rem; color: #c5c5ce; font-size: .92rem; }
footer a:hover, .tabs a:hover { color: #b1f49d; }
dialog { overflow: auto; width: min(34rem, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); max-width: none; border-radius: .9rem; border: 1px solid #525258; color: #f4f4f5; background: #202023; padding: 1.1rem clamp(1rem, 4vw, 1.55rem); box-shadow: 0 15px 64px #000a; }
dialog::backdrop { background: #050506ad; }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #414146; padding-bottom: .6rem; }
.dialog-head h2 { color: #bfc1c7; font-size: .9rem; margin: .45rem 0 0; }
.icon-close { font-size: 1.65rem; line-height: 1; min-width: 2rem; min-height: 2rem; border: 1px solid #525258; border-radius: .4rem; background: #29292e; }
.dialog-actions { justify-content: space-between; border-top: 1px solid #414146; padding-top: .8rem; }
@media (max-width: 41rem) {
  .topbar { grid-template-columns: auto 1fr; gap: 0 .75rem; padding: .5rem 1rem 0; }
  .top-actions { justify-content: end; }
  .tabs { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: .2rem; font-size: .87rem; }
  .tabs a { padding-block: .55rem; }
  .hero { min-height: 22rem; padding: 2.5rem 1rem; background-image: linear-gradient(0deg, #111113, #1111132b 60%), url("/closure-assets/table-mobile.png"); }
  .hero-logo { width: 9.5rem; max-height: 2.4rem; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 8rem; }
  dialog { font-size: .93rem; }
}
