@layer components {
/* ===== FOOTER ===== */

.footer {
  padding: 26px 0 42px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.footer-text {
  max-width: 760px;
  font-size: 13px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: 0.2s ease;
}

.footer-links .footer-social-link {
  width: 38px;
  padding: 0;
}

.footer-links a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
}

.twitch-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: var(--layer-widget);
  display: flex;
  justify-content: flex-end;
  width: min(320px, calc(100vw - 22px));
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, width 0.22s ease;
}

.twitch-widget.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.twitch-widget.is-expanded {
  width: min(50vw, 780px);
}

.twitch-widget.is-collapsed {
  width: min(320px, calc(100vw - 22px));
}

.twitch-widget-shell {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(145, 70, 255, 0.32);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(145, 70, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(17, 22, 31, 0.96), rgba(10, 14, 21, 0.96));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.34),
    0 10px 26px rgba(145, 70, 255, 0.16);
  backdrop-filter: blur(12px);
}

.twitch-widget.is-platform-youtube .twitch-widget-shell {
  border-color: rgba(255, 63, 58, 0.32);
  background:
    radial-gradient(circle at top right, rgba(255, 63, 58, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(17, 22, 31, 0.96), rgba(10, 14, 21, 0.96));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.34),
    0 10px 26px rgba(255, 63, 58, 0.14);
}

.twitch-widget-header {
  display: grid;
  gap: 10px;
  padding: 14px 14px 10px;
}

.twitch-widget-title-wrap {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.twitch-widget-title-wrap:hover .twitch-widget-title,
.twitch-widget-title-wrap:focus-visible .twitch-widget-title {
  color: #ffffff;
}

.twitch-widget-title {
  color: #edf2ff;
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.twitch-widget-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.twitch-widget-open,
.twitch-widget-expand,
.twitch-widget-hide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #edf2ff;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.twitch-widget-open:hover,
.twitch-widget-open:focus-visible,
.twitch-widget-expand:hover,
.twitch-widget-expand:focus-visible,
.twitch-widget-hide:hover,
.twitch-widget-hide:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(145, 70, 255, 0.42);
  color: #ffffff;
  transform: translateY(-1px);
}

.twitch-widget.is-platform-youtube .twitch-widget-open:hover,
.twitch-widget.is-platform-youtube .twitch-widget-open:focus-visible,
.twitch-widget.is-platform-youtube .twitch-widget-expand:hover,
.twitch-widget.is-platform-youtube .twitch-widget-expand:focus-visible,
.twitch-widget.is-platform-youtube .twitch-widget-hide:hover,
.twitch-widget.is-platform-youtube .twitch-widget-hide:focus-visible {
  border-color: rgba(255, 63, 58, 0.42);
}

.twitch-widget-player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #05070b;
}

.twitch-widget-player-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.twitch-widget-launcher-wrap {
  position: relative;
  width: 100%;
}

.twitch-widget-launcher-wrap[hidden] {
  display: none;
}

.twitch-widget-launcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(145, 70, 255, 0.32);
  border-radius: 999px;
  background:
    radial-gradient(circle at top right, rgba(145, 70, 255, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(17, 22, 31, 0.96), rgba(10, 14, 21, 0.96));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.3),
    0 10px 26px rgba(145, 70, 255, 0.16);
  color: #edf2ff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.twitch-widget-launcher-close {
  position: absolute;
  top: -8px;
  right: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(7, 10, 16, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.twitch-widget-launcher[hidden] {
  display: none;
}

.twitch-widget-launcher:hover,
.twitch-widget-launcher:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(145, 70, 255, 0.48);
  color: #ffffff;
}

.twitch-widget-launcher-close:hover,
.twitch-widget-launcher-close:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(16, 22, 32, 0.98);
  color: #ffffff;
}

.twitch-widget.is-platform-youtube .twitch-widget-launcher {
  border-color: rgba(255, 63, 58, 0.32);
  background:
    radial-gradient(circle at top right, rgba(255, 63, 58, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(17, 22, 31, 0.96), rgba(10, 14, 21, 0.96));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.3),
    0 10px 26px rgba(255, 63, 58, 0.14);
}

.twitch-widget.is-platform-youtube .twitch-widget-launcher:hover,
.twitch-widget.is-platform-youtube .twitch-widget-launcher:focus-visible {
  border-color: rgba(255, 63, 58, 0.48);
}

.top-guide {
  position: fixed;
  top: 120px;
  left: 22px;
  z-index: var(--layer-guide);
  width: min(320px, calc(100vw - 44px));
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(255, 91, 46, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(18, 24, 34, 0.97), rgba(10, 14, 21, 0.97));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.34),
    0 10px 30px rgba(255, 91, 46, 0.12);
  backdrop-filter: blur(16px);
}

.top-guide-progress {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 214, 199, 0.92);
}

.top-guide-title {
  margin: 10px 0 0;
  font-size: 1.15rem;
  line-height: 1.2;
  color: #f7fbff;
}

.top-guide-body {
  margin: 12px 0 0;
  color: rgba(226, 234, 245, 0.9);
  line-height: 1.6;
  font-size: 0.96rem;
}

.top-guide-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.top-guide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #edf2ff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.top-guide-btn:hover,
.top-guide-btn:focus-visible {
  transform: translateY(-1px);
  color: #ffffff;
}

.top-guide-btn:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.top-guide-btn-primary {
  background: linear-gradient(135deg, rgba(255, 91, 46, 0.92), rgba(255, 141, 87, 0.88));
  border-color: rgba(255, 141, 87, 0.5);
  color: #fff6f0;
}

.top-guide-btn-secondary:hover,
.top-guide-btn-secondary:focus-visible,
.top-guide-btn-ghost:hover,
.top-guide-btn-ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.top-guide-launcher {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: var(--layer-guide-launcher);
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 91, 46, 0.3);
  background:
    radial-gradient(circle at top left, rgba(255, 91, 46, 0.18), transparent 45%),
    linear-gradient(180deg, rgba(18, 24, 34, 0.97), rgba(10, 14, 21, 0.97));
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    0 8px 24px rgba(255, 91, 46, 0.14);
  color: #f7fbff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.top-guide-launcher:hover,
.top-guide-launcher:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 141, 87, 0.5);
}

.top-guide-highlight {
  position: fixed;
  z-index: var(--layer-guide-highlight);
  pointer-events: none;
  border: 3px solid rgba(255, 91, 46, 0.82);
  border-radius: 24px;
  box-shadow:
    0 0 0 8px rgba(255, 91, 46, 0.13),
    0 0 0 9999px rgba(7, 11, 17, 0.52),
    0 24px 54px rgba(0, 0, 0, 0.28);
  transition: top 0.18s ease, left 0.18s ease, width 0.18s ease, height 0.18s ease, border-radius 0.18s ease;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.join-community-links {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.join-community-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.join-community-icon-link {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.join-community-copy {
  color: var(--muted);
  line-height: 1.5;
}

.rules-callout {
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid rgba(255, 91, 46, 0.34);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(255, 91, 46, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    rgba(12, 17, 26, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 42px rgba(0, 0, 0, 0.24);
}

.top-nav-link-rules,
.top-nav-more-link-rules {
  border-color: rgba(255, 108, 92, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 146, 84, 0.74), rgba(220, 44, 44, 0.96)),
    rgba(185, 32, 32, 0.34);
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(92, 8, 8, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 0 1px rgba(255, 145, 96, 0.16),
    0 12px 30px rgba(201, 35, 35, 0.38),
    0 0 24px rgba(255, 98, 64, 0.24);
}

.top-nav-link-rules:hover,
.top-nav-link-rules:focus-visible,
.top-nav-more-link-rules:hover,
.top-nav-more-link-rules:focus-visible {
  border-color: rgba(255, 140, 112, 0.98);
  background:
    linear-gradient(180deg, rgba(255, 160, 96, 0.82), rgba(232, 52, 52, 0.98)),
    rgba(198, 34, 34, 0.38);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 0 1px rgba(255, 170, 120, 0.2),
    0 16px 36px rgba(210, 36, 36, 0.46),
    0 0 30px rgba(255, 108, 72, 0.28);
}

.rules-callout-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 123, 84, 0.52);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 91, 46, 0.24), rgba(255, 91, 46, 0.14));
  color: #fff0e6;
  font-family: "Arial Black", "Segoe UI", Inter, sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rules-callout-badge::before {
  content: "🏁";
}

.rules-callout-title,
.rules-callout-subtitle {
  margin: 0;
  color: var(--text);
}

.rules-callout-title {
  margin-bottom: 10px;
  color: #fff5ee;
  font-family: "Arial Black", "Segoe UI", Inter, sans-serif;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  line-height: 1.08;
  text-wrap: balance;
  text-shadow: 0 8px 24px rgba(255, 91, 46, 0.22);
}

.rules-callout-lead {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 4px solid rgba(255, 132, 82, 0.88);
  border-radius: 14px;
  background: rgba(255, 103, 62, 0.1);
  color: #ffe0d0;
  font-size: 1rem;
  font-weight: 800;
}

.rules-callout-subtitle {
  margin: 20px 0 10px;
  color: #ffb38f;
  font-family: "Arial Black", "Segoe UI", Inter, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.rules-list {
  margin: 0;
  padding-left: 22px;
  color: #f8fbff;
  font-size: 0.98rem;
}

.rules-list li + li {
  margin-top: 8px;
}

.community-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(10, 14, 21, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 34px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.community-card:hover,
.community-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 209, 102, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 40px rgba(0, 0, 0, 0.24);
}

.community-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.community-card-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}

.community-card-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.community-card-title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
}

.community-card-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.community-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff6d4;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.community-card-cta::after {
  content: "↗";
  font-size: 0.95rem;
  line-height: 1;
}

.community-card-telegram {
  background:
    radial-gradient(circle at top right, rgba(39, 167, 231, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(15, 28, 38, 0.94), rgba(10, 14, 21, 0.92));
}

.community-card-telegram .community-card-icon-wrap {
  background: linear-gradient(135deg, #27a7e7, #168ac7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 24px rgba(39, 167, 231, 0.28);
}

.community-card-discord {
  background:
    radial-gradient(circle at top right, rgba(88, 101, 242, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(18, 21, 40, 0.94), rgba(10, 14, 21, 0.92));
}

.community-card-discord .community-card-icon-wrap {
  background: linear-gradient(135deg, #5865f2, #4752c4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 24px rgba(88, 101, 242, 0.3);
}

.community-card-youtube {
  background:
    radial-gradient(circle at top right, rgba(255, 42, 35, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(36, 18, 18, 0.94), rgba(10, 14, 21, 0.92));
}

.community-card-youtube .community-card-icon-wrap {
  background: linear-gradient(135deg, #ff2a23, #cc181e);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 24px rgba(204, 24, 30, 0.3);
}

.community-card-twitch {
  background:
    radial-gradient(circle at top right, rgba(145, 70, 255, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(27, 18, 44, 0.94), rgba(10, 14, 21, 0.92));
}

.community-card-twitch .community-card-icon-wrap {
  background: linear-gradient(135deg, #9146ff, #6f2cff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 24px rgba(145, 70, 255, 0.3);
}

.community-card-tiktok {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(24, 24, 24, 0.96), rgba(10, 14, 21, 0.92));
}

.community-card-tiktok .community-card-icon-wrap {
  background: linear-gradient(135deg, #151515, #2b2b2b);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 24px rgba(0, 0, 0, 0.28);
}

+}
