@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/anton-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/anton-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0b0b0c;
  --surface: #131315;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #f4f4f5;
  --text-2: #a1a1aa;
  --text-3: #8b8b94;
  --accent: #e81d1e;
  --accent-hover: #ff2b2c;
  --accent-text: #ff5a4e;
  --gold: #f5d250;
  --green: #3ddc84;
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

code,
kbd {
  font-family: var(--mono);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 16px;
  background: #ffffff;
  color: #000000;
  font-weight: 700;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.accent {
  color: var(--accent);
}

/* Przyciski */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-lg {
  min-height: 58px;
  padding: 0 28px;
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-md {
  min-height: 50px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 700;
}

.btn-sm {
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
}

.display-btn {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-red {
  background: var(--accent);
  color: #ffffff;
}

.btn-red:hover {
  background: var(--accent-hover);
}

.btn-white {
  background: #ffffff;
  color: var(--bg);
}

.btn-white:hover {
  background: #e4e4e7;
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--text);
  font-weight: 600;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

/* Nagłówek */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 12, 0.96);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand-name {
  font-family: var(--display);
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
}

.brand-name-sm {
  font-size: 20px;
}

.menu {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  color: #ffffff;
}

.nav a[aria-current='page'] {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 9px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 6px;
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
}

.online strong {
  color: #ffffff;
}

.dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.18);
}

.dot.is-off {
  background: #71717a;
  box-shadow: 0 0 0 3px rgba(113, 113, 122, 0.2);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #d4d4d8;
}

.icon-link:hover {
  color: #ffffff;
}

.nav-toggle {
  display: none;
}

/* Góra strony */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-outline {
  position: absolute;
  left: 50%;
  bottom: -0.2em;
  margin: 0;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: 23vw;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
}

.hero-outline-small {
  bottom: -0.22em;
  font-size: 21vw;
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.06);
}

.hero-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px 48px;
  padding-top: 72px;
  padding-bottom: 112px;
}

.hero-text {
  display: flex;
  flex: 1 1 520px;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  min-width: 0;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}

.label-square {
  width: 10px;
  height: 10px;
  background: var(--accent);
}

.hero-title {
  margin: 0;
  font-size: clamp(56px, 7.4vw, 112px);
  line-height: 1.02;
}

.lead {
  max-width: 30em;
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-2);
}

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

.note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 32em;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}

.note-icon {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--gold);
}

.connect {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 14px;
  color: var(--text-3);
}

.connect code {
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  color: var(--text);
}

.copy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 4px;
  cursor: pointer;
}

.copy-link:hover {
  text-decoration-color: #ffffff;
}

.poster-wrap {
  position: relative;
  flex: 1 1 400px;
  min-width: 0;
  max-width: 500px;
  margin: 0 auto;
}

.poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #151517;
}

.poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 12, 0.35) 0%, rgba(11, 11, 12, 0) 28%, rgba(11, 11, 12, 0) 48%, rgba(11, 11, 12, 0.94) 100%);
}

.live {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(11, 11, 12, 0.8);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
}

.poster-stats {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.players {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0;
}

.players-num {
  font-size: 68px;
  line-height: 0.9;
  color: #ffffff;
}

.players-max {
  font-size: 15px;
  font-weight: 600;
  color: #d4d4d8;
}

.bar {
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.bar-fill {
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 0.6s ease;
}

.discord-stat {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #d4d4d8;
}

.discord-stat strong {
  color: #ffffff;
}

.sticker {
  position: absolute;
  right: -22px;
  top: -34px;
  width: clamp(110px, 11vw, 160px);
  height: auto;
  transform: rotate(10deg);
  filter: drop-shadow(3px 0 0 #ffffff) drop-shadow(-3px 0 0 #ffffff) drop-shadow(0 3px 0 #ffffff) drop-shadow(0 -3px 0 #ffffff) drop-shadow(0 16px 24px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

/* Sekcje */

.section {
  padding-top: 120px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: 36px;
}

.section-title {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.08;
}

.section-lead {
  max-width: 26em;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
}

.modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  column-gap: 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mode {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
  gap: 6px 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.mode-icon {
  display: inline-flex;
  grid-row: span 2;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(232, 29, 30, 0.3);
  border-radius: 14px;
  background: rgba(232, 29, 30, 0.1);
  color: var(--accent-text);
}

.mode-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
}

.mode p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}

.split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 64px;
}

.split-head {
  display: flex;
  flex: 1 1 300px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.split-head .section-lead {
  max-width: 24em;
}

.split-head .btn {
  margin-top: 4px;
}

.steps {
  display: flex;
  flex: 2 1 560px;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
  gap: 8px 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: var(--surface);
}

.step > :not(.step-num) {
  grid-column: 2;
}

.step-num {
  display: inline-flex;
  grid-row: span 3;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 28px;
}

.step-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
}

.step kbd {
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: var(--text);
}

.step code {
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: var(--text);
}

.step .btn {
  justify-self: start;
}

.step-required {
  border-color: rgba(245, 210, 80, 0.35);
  background: #16140d;
}

.step-required .step-num {
  background: var(--gold);
  color: var(--bg);
}

.step-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.badge-required {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--gold);
  color: var(--bg);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  min-height: 44px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rules-short {
  flex: 2 1 560px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.rules-short li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.rules-short-num {
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
  text-decoration: none;
}

.rules-short-num:hover {
  color: var(--accent-hover);
}

.rules-short span {
  font-size: 16px;
  line-height: 1.6;
  color: #d4d4d8;
}

/* Zakończenie */

.ending {
  position: relative;
  overflow: hidden;
  margin-top: 120px;
}

.ending-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 45%;
  opacity: 0.55;
  filter: saturate(0.85);
}

.ending-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #0b0b0c 0%, rgba(11, 11, 12, 0) 24%, rgba(11, 11, 12, 0) 76%, #0b0b0c 100%),
    linear-gradient(90deg, #0b0b0c 0%, rgba(11, 11, 12, 0.88) 38%, rgba(11, 11, 12, 0.3) 75%, rgba(11, 11, 12, 0.5) 100%);
}

.ending-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding-top: 128px;
  padding-bottom: 128px;
}

.ending-title {
  margin: 0;
  font-size: clamp(44px, 6vw, 92px);
  line-height: 1.04;
}

.ending .section-lead {
  max-width: 30em;
  font-size: 17px;
  color: #b4b4bc;
}

/* Stopka */

.site-footer {
  border-top: 1px solid var(--line-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-top: 32px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  width: 30px;
  height: 30px;
}

.footer-brand p {
  max-width: 46em;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-3);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #ffffff;
}

/* Regulamin */

.rules-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding-top: 72px;
  padding-bottom: 80px;
}

.meta {
  margin: 0;
  font-size: 14px;
  color: var(--text-3);
}

.search {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 680px;
  margin-top: 10px;
}

.search label {
  font-size: 14px;
  font-weight: 600;
  color: #d4d4d8;
}

.search-field {
  position: relative;
}

.search-field svg {
  position: absolute;
  left: 18px;
  top: 18px;
  color: var(--text-3);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  height: 56px;
  padding: 0 18px 0 50px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.search-field input:focus {
  border-color: rgba(255, 255, 255, 0.45);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: var(--surface);
  color: #d4d4d8;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.chip:hover {
  border-color: rgba(255, 255, 255, 0.32);
}

.chip[aria-pressed='true'] {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--bg);
}

.rules-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 56px;
  padding-top: 40px;
  padding-bottom: 112px;
}

.rules-aside {
  display: flex;
  flex: 1 1 260px;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.toc {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: var(--surface);
}

.toc-head {
  margin: 0;
  padding: 10px 12px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.toc a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: #e4e4e7;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.toc a:hover {
  background: rgba(255, 255, 255, 0.05);
}

.toc a.is-empty {
  color: var(--text-3);
}

.toc-num {
  width: 24px;
  font-size: 16px;
  color: var(--text-3);
}

.toc-title {
  flex: 1 1 auto;
  min-width: 0;
}

.toc-count {
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.help-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: var(--surface);
}

.help-card h2 {
  margin: 0;
  font-size: 22px;
}

.help-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}

.help-card p a,
.rule-body a {
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rules-content {
  flex: 999 1 560px;
  min-width: 0;
}

.search-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding: 12px 12px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: var(--surface);
}

.search-result p {
  margin: 0;
  font-size: 15px;
  color: #d4d4d8;
}

.no-results {
  padding: 48px 24px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  text-align: center;
}

.no-results p {
  margin: 0;
  color: var(--text-3);
}

.no-results .display {
  margin-bottom: 8px;
  font-size: 26px;
  color: var(--text);
}

.rule-section {
  padding-bottom: 56px;
  scroll-margin-top: 96px;
}

.rule-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding-bottom: 16px;
}

.rule-section-num {
  font-size: 34px;
  line-height: 1;
  color: var(--accent);
}

.rule-section-head h2 {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.15;
}

.rule-section-count {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-3);
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
}

.table-wrap table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.table-wrap thead tr {
  background: var(--surface);
}

.table-wrap th,
.table-wrap td {
  padding: 14px 18px;
  text-align: left;
}

.table-wrap thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.table-wrap tbody tr {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.table-wrap tbody th {
  font-weight: 600;
  color: var(--text);
}

.table-wrap td {
  color: #d4d4d8;
}

.table-wrap td.muted {
  color: var(--text-3);
}

.rule {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 12px 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  scroll-margin-top: 96px;
}

.rule:target .rule-num {
  border-color: var(--accent);
  color: #ffffff;
}

.rule-num {
  display: inline-flex;
  align-items: center;
  align-self: start;
  justify-content: center;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: var(--surface);
  color: #e4e4e7;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.rule-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.rule-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #e4e4e7;
}

.rule-body .rule-note {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.rule-body .rule-after {
  font-size: 15px;
  color: var(--text-2);
}

.rule-subs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-subs li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
}

.rule-subs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: #52525b;
}

@media (min-width: 961px) {
  .rules-aside {
    position: sticky;
    top: 96px;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
  }

  .nav-toggle .icon-close {
    display: none;
  }

  .nav-toggle[aria-expanded='true'] .icon-open {
    display: none;
  }

  .nav-toggle[aria-expanded='true'] .icon-close {
    display: block;
  }

  .menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 8px 24px 24px;
    border-bottom: 1px solid var(--line-soft);
    background: var(--bg);
  }

  .menu.is-open {
    display: flex;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
  }

  .nav a {
    min-height: 52px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 16px;
  }

  .header-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 18px;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-name {
    font-size: 22px;
  }

  .hero-inner {
    padding-top: 48px;
    padding-bottom: 88px;
  }

  .players-num {
    font-size: 56px;
  }

  .sticker {
    right: -6px;
    top: -26px;
  }

  .section {
    padding-top: 88px;
  }

  .step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px 14px;
    padding: 18px;
  }

  .step-num {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .rules-short li {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .ending-inner {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .rules-hero {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .rule {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px 12px;
  }
}

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

  .bar-fill {
    transition: none;
  }
}
