:root { font-family: Roboto, Helvetica, Arial, sans-serif; color: #fff; background: #242424; font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-padding-top: 88px; scroll-behavior: smooth; }
body { margin: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #90caf9; outline-offset: 4px; }
.site-shell { min-height: 100svh; display: flex; flex-direction: column; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 10; padding: 12px 20px; background: #1976d2; }
.skip-link:focus { top: 10px; }
.site-header { position: sticky; top: 0; z-index: 5; min-height: 64px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 36px; padding: 0 32px; background: #191919; box-shadow: 0 2px 6px #0005; }
.wordmark { display: inline-flex; align-items: center; font-size: 24px; font-weight: 500; letter-spacing: .03em; white-space: nowrap; }
nav { display: flex; gap: 12px; align-items: center; }
nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; text-transform: uppercase; font-size: 14px; font-weight: 500; letter-spacing: .025em; border-radius: 4px; }
nav a:hover { background: #ffffff0d; }
main { width: min(100% - 64px, 1200px); margin: 24px auto 56px; flex: 1; }
h1 { font-size: 32px; font-weight: 400; line-height: 1.25; margin: 0 0 12px; text-align: center; }
h3 { margin: 0 0 6px; font-size: 20px; font-weight: 500; }
.guide-section { max-width: 960px; margin: 48px auto 0; }
.welcome-banner { width: min(100%, 760px); margin-inline: auto; padding-top: 24px; overflow: hidden; border: 1px solid #4d5359; border-radius: 6px; background: #101413; }
.welcome-banner-image { display: block; width: 100%; height: auto; object-fit: contain; }
.welcome-banner h1 { margin: 0; padding: 20px 24px; color: #fff; font-size: clamp(25px, 3vw, 32px); font-weight: 600; line-height: 1.3; text-shadow: 0 2px 6px #000; }
.guide-intro { color: #bdbdbd; line-height: 1.6; text-align: center; }
.download-section { max-width: 760px; margin: 28px auto 0; }
.download-section > h2 { text-align: center; font-size: 24px; font-weight: 400; margin: 0 0 18px; }
.download-card { padding: 24px; background: #2c2c2c; border: 1px solid #424242; border-radius: 4px; }
.download-card-header { display: flex; align-items: center; gap: 20px; }
.download-artwork { display: block; width: 112px; height: 80px; flex-shrink: 0; object-fit: contain; object-position: center; background: #141414; border: 1px solid #424242; border-radius: 4px; }
.file-details { min-width: 0; flex: 1; }
.file-details p { margin: 0; color: #bdbdbd; font-size: 14px; line-height: 1.5; }
.file-details .release-id { margin-top: 4px; color: #aaa; font-size: 12px; overflow-wrap: anywhere; }
.download-card-actions { display: flex; justify-content: center; align-items: flex-end; gap: 16px; margin-top: 24px; }
.download-region-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; max-width: 400px; }
.download-region-field label { color: #ddd; font-size: 14px; }
.download-region-field select { width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid #777; border-radius: 4px; background: #242424; color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.download-action { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; background: #3f6b50; border: 1px solid #fff; border-radius: 4px; color: #fff; font-family: inherit; font-size: 14px; font-weight: 600; box-shadow: 0 2px 4px #0003; cursor: pointer; flex-shrink: 0; }
.download-action:hover { background: #355b44; }
.download-action:disabled { opacity: .45; cursor: not-allowed; }
.download-caption { color: #bdbdbd; font-size: 14px; line-height: 1.6; margin: 16px 0 0; text-align: center; }
.download-caption a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.patch-notes { margin-top: 20px; border-top: 1px solid #484848; border-bottom: 1px solid #484848; }
summary { padding: 14px 0; cursor: pointer; color: #e4e4e4; font-size: 15px; font-weight: 500; }
summary:hover { color: #fff; }
.patch-notes ul { margin: 0; padding: 0 0 16px 22px; color: #ccc; font-size: 14px; line-height: 1.65; }
.patch-notes li + li { margin-top: 8px; }
.guide-notice { max-width: 760px; margin: 24px auto 0; text-align: center; padding: 18px 20px; border: 1px solid #547360; border-radius: 6px; background: #263029; color: #dfebe2; line-height: 1.6; }
.region-guide { max-width: 760px; margin: 12px auto 0; border-bottom: 1px solid #484848; }
.table-scroll { overflow-x: auto; padding-bottom: 10px; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 14px; line-height: 1.6; }
th,td { padding: 12px; border-bottom: 1px solid #424242; }
th { color: #ddd; font-weight: 500; }
td { color: #bdbdbd; }
td code { color: #d6e8f7; white-space: nowrap; font-size: 12px; }
.method-heading { margin: 28px 0 16px; font-size: 18px; font-weight: 500; text-align: center; }
.guide-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 760px; margin-inline: auto; }
.guide-method { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 16px; border: 2px solid #484848; border-radius: 6px; background: #2c2c2c; color: #eee; font: inherit; cursor: pointer; }
.guide-method:hover { background: #32383e; border-color: #8394a5; }
.guide-method[aria-pressed="true"] { border-color: #90caf9; background: #233343; }
.guide-method-icon { display: block; width: 100px; height: 80px; object-fit: contain; border-radius: 4px; }
.guide-method strong { font-size: 24px; font-weight: 500; }
.guide-method span { color: #c4c4c4; font-size: 14px; line-height: 1.5; text-align: center; }
.guide-steps-heading { margin: 32px 0 18px; text-align: center; }
.guide-steps-heading h3 { margin: 0; }
.guide-step-list { padding: 0; margin: 20px 0 0; list-style: none; display: grid; gap: 16px; }
.guide-step { padding: 24px; border: 1px solid #484848; border-radius: 6px; background: #292929; }
.guide-step-copy { display: flex; align-items: flex-start; gap: 18px; }
.guide-step-number { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 50%; background: #233e55; color: #b8ddff; font-size: 18px; }
.guide-step h4 { font-size: 19px; font-weight: 500; margin: 5px 0 10px; }
.guide-step p { color: #ccc; line-height: 1.7; margin: 0; }
.guide-step .guide-note { padding: 14px 18px; border-left: 3px solid #e7b563; background: #e7b5630a; color: #e8d9c0; line-height: 1.7; margin-top: 16px; }
.guide-step .guide-note-error { border: 2px solid #e57373; border-radius: 6px; background: #302626; color: #f0dede; }
footer { width: min(100% - 64px, 1200px); margin: 0 auto; display: flex; justify-content: space-between; gap: 18px; padding: 22px 0; border-top: 1px solid #424242; color: #bdbdbd; font-size: 14px; line-height: 1.5; }
.language-selector { display: flex; align-items: center; gap: 10px; justify-self: end; }
.language-selector label { font-size: 14px; color: #c9c9c9; }
.language-selector select { min-height: 44px; max-width: 100%; padding: 8px 12px; border: 1px solid #666; border-radius: 4px; background: #242424; color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
nav a[aria-current="page"] { background: #ffffff0d; }
.players-page { max-width: 960px; margin: 48px auto 0; }
.players-summary { margin: 30px 0 20px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid #484848; border-radius: 6px; background: #2c2c2c; }
.players-total-wrap { display: flex; align-items: baseline; gap: 16px; }
.players-total { font-size: clamp(44px, 7vw, 64px); font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.players-total-label { color: #ccc; font-size: 18px; line-height: 1.4; }
.players-status { min-height: 24px; margin: 0 0 28px; color: #bdbdbd; font-size: 14px; line-height: 1.6; }
.players-status[data-state="error"] { color: #ffc2c2; }
.players-status[data-state="live"]::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: #91cfa4; }
.players-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mode-card { min-width: 0; border: 1px solid #484848; border-radius: 6px; background: #292929; padding: 24px; }
.mode-card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid #424242; }
.mode-card-header h2 { min-width: 0; margin: 0; font-size: 21px; font-weight: 500; overflow-wrap: anywhere; }
.mode-count { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 50%; background: #233e55; color: #b8ddff; font-size: 18px; font-variant-numeric: tabular-nums; }
.mode-names { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.mode-names li { max-width: 100%; padding: 8px 12px; border: 1px solid #4a5157; border-radius: 4px; background: #30363b; color: #e5edf3; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.mode-empty { margin: 20px 0 0; color: #aaa; font-size: 14px; line-height: 1.6; }
.players-note { color: #aaa; font-size: 14px; line-height: 1.7; margin: 24px 0 0; }
@media(max-width: 900px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 8px 16px; }
  .wordmark { grid-column: 1; grid-row: 1; }
  .language-selector { grid-column: 2; grid-row: 1; }
  .language-selector label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; gap: 0; }
  nav a { padding-inline: 8px; }
  html { scroll-padding-top: 120px; }
}
@media(max-width: 600px) {
  main { width: calc(100% - 32px); margin-top: 16px; }
  .guide-section { margin-top: 28px; }
  .welcome-banner h1 { padding: 18px 16px; }
  h1 { font-size: 28px; }
  .download-card { padding: 20px; }
  .download-card-header { gap: 16px; }
  .download-card-actions { flex-direction: column; align-items: stretch; }
  .download-region-field { max-width: none; }
  .guide-methods { gap: 12px; }
  .guide-method { padding: 18px 10px; }
  .guide-step { padding: 18px; }
  .guide-step-copy { gap: 12px; }
  .players-page { margin-top: 28px; }
  .players-summary { padding: 20px; gap: 16px; flex-wrap: wrap; }
  .players-total-wrap { gap: 12px; }
  .players-total-label { font-size: 16px; }
  .players-modes { grid-template-columns: 1fr; gap: 16px; }
  .mode-card { padding: 20px; }
  footer { width: calc(100% - 32px); flex-direction: column; gap: 5px; }
}
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
