:root { font-family: Arial, "Helvetica Neue", sans-serif; color: #1f2937; background: #f4f6f8; color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; height: 100dvh; display: flex; flex-direction: column; }
#content { flex: 1; min-height: 0; overflow: auto; }
.heading, .connection { flex-shrink: 0; }
.heading { min-height: 64px; padding: 10px 20px; background: #daedf0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.heading-main { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.heading-titles { min-width: 0; overflow-wrap: anywhere; }
.back-link { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: 8px; color: #1c6472; font-size: 14px; text-decoration: none; }
.back-link[hidden] { display: none; }
.back-link:hover { background: #cce6ea; }
.title { font-size: 20px; line-height: 1.3; font-weight: 700; color: #1c274c; text-decoration: none; }
.subtitle { color: #617080; font-size: 12px; margin-top: 4px; }
.freshness { font-size: 12px; color: #617080; white-space: nowrap; }
.live-status { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.viewers { color: #1c6472; font-size: 13px; white-space: nowrap; }
a { color: #16869a; }
a:focus-visible { outline: 2px solid #16869a; outline-offset: 3px; }
.empty { margin: 0; padding: 80px 24px; text-align: center; font-size: 20px; color: #617080; }
.connection { margin: 0; padding: 8px 20px; background: #fff6cf; font-size: 13px; }
.catalog { max-width: 1120px; padding: 28px 24px; margin: auto; display: grid; gap: 20px; }
.tournament { background: #fafbfc; padding: 22px 24px; border-radius: 8px; }
.tournament h2 { margin: 0 0 6px; font-size: 20px; color: #1c274c; }
.tournament p { margin: 0; color: #617080; font-size: 13px; }
.stage-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }
.stage-links a { padding: 5px 0; text-decoration: none; border-bottom: 2px solid transparent; }
.stage-links a:hover { border-color: #40c5db; }
.stage-layout { display: grid; grid-template-columns: minmax(0, 1fr); height: 100%; min-height: 0; }
.stage-main { min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.tabs { flex-shrink: 0; display: flex; flex-wrap: wrap; gap: 4px; padding: 0 8px; min-height: 38px; }
.tabs a { color: #1f2937; text-decoration: none; padding: 10px 12px 9px; position: relative; font-size: 14px; }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 1px; height: 3px; border-radius: 3px; background: #40c5db; }
.sections { overflow: auto; flex: 1; min-height: 0; overscroll-behavior: contain; touch-action: pan-x pan-y; }
.zoom-surface { padding: 10px; min-width: 100%; width: fit-content; }
.section { margin: 0 0 14px; width: max-content; max-width: none; }
.section img { display: block; flex-shrink: 0; }
.zoom-surface.groups, .calls-board { display: flex; flex-wrap: wrap; align-content: flex-start; align-items: flex-start; gap: 20px; width: auto; }
.zoom-surface.groups .section, .calls-board .section { margin: 0; }
.calls-caption { font-size: 16px; font-weight: 700; padding: 4px 0 12px; }
.notifications { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 10; width: min(380px, calc(100vw - 32px)); display: grid; gap: 8px; pointer-events: none; }
.notice { display: flex; align-items: flex-start; background: #e0f1f3; border-radius: 10px; box-shadow: 0 4px 20px #1c274c20; pointer-events: auto; }
.notice-link { display: grid; gap: 5px; flex: 1; min-width: 0; padding: 14px 8px 14px 16px; color: #1c274c; text-decoration: none; overflow-wrap: anywhere; }
.notice-link strong { font-size: 14px; }
.notice-link span { font-size: 13px; line-height: 1.4; }
.notice-dismiss { border: 0; background: transparent; color: #617080; font-size: 24px; min-width: 44px; min-height: 44px; cursor: pointer; border-radius: 8px; }
.notice-dismiss:hover { background: #cce6ea; }
.notice-dismiss:focus-visible { outline: 2px solid #16869a; outline-offset: -3px; }
@media (max-width: 900px) {
  .heading { gap: 12px; flex-wrap: wrap; }
  .title { font-size: 18px; }
  .catalog { padding: 16px; }
}
@media (max-width: 600px) {
  .heading-main { flex-basis: 100%; }
  .live-status { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 5px 14px; }
}
