:root {
  color-scheme: dark;
  --bg: #0b0f16;
  --panel: rgba(20, 28, 40, 0.86);
  --panel-strong: #172233;
  --text: #eef5ff;
  --muted: #9aa9bb;
  --accent: #f1b443;
  --accent-2: #78d5ff;
  --danger: #ff6b6b;
  --ok: #58d68d;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Unbounded", Inter, system-ui, sans-serif;
  font-family: var(--font-body);
}

:root[data-vk-appearance="light"] {
  color-scheme: light;
  --bg: #eef2f7;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #ffffff;
  --text: #172033;
  --muted: #5e6a7b;
  --accent: #d89517;
  --accent-2: #0077ff;
  --border: rgba(20, 30, 45, 0.12);
  --shadow: 0 18px 44px rgba(20, 30, 45, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-bottom: 190px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(120, 213, 255, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(241, 180, 67, 0.12), transparent 28rem),
    linear-gradient(145deg, #080b10 0%, var(--bg) 45%, #111827 100%);
  color: var(--text);
}

:root[data-vk-appearance="light"] body {
  background:
    radial-gradient(circle at top left, rgba(0, 119, 255, 0.14), transparent 34rem),
    radial-gradient(circle at top right, rgba(216, 149, 23, 0.16), transparent 28rem),
    linear-gradient(145deg, #f7f9fc 0%, var(--bg) 55%, #e5ebf4 100%);
}

button,
input,
textarea {
  font: inherit;
}

.app-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px 14px calc(132px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 861px) {
  .app-shell {
    padding-right: 132px;
    padding-bottom: 64px;
  }
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 22px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.94), rgba(24, 35, 52, 0.78)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 22px);
  box-shadow: var(--shadow);
}

.theme-toggle {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border: 1px solid rgba(241, 180, 67, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow: none;
  font-size: 13px;
  line-height: 1;
}

:root[data-vk-appearance="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.72);
}

:root[data-vk-appearance="light"] .hero {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(240, 244, 250, 0.9)),
    repeating-linear-gradient(135deg, rgba(20, 30, 45, 0.04) 0 1px, transparent 1px 22px);
}

.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -80px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 180, 67, 0.24), transparent 68%);
}

.hero__badge {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid rgba(241, 180, 67, 0.45);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(241, 180, 67, 0.09);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero h1,
.section-title,
.live-card h3,
.detail h2 {
  font-family: var(--font-display);
}

.hero h1 {
  max-width: 900px;
  margin: 18px 0 10px;
  font-size: clamp(32px, 6.4vw, 68px);
  line-height: 1;
  letter-spacing: -0.032em;
  overflow-wrap: normal;
}

.hero p {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.live-banner {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 80, 80, 0.35);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 70, 70, 0.12), rgba(241, 180, 67, 0.1));
  box-shadow: var(--shadow);
}

.live-banner__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 0 6px rgba(255, 77, 77, 0.2);
  animation: live-pulse 1.4s ease-in-out infinite;
}

@keyframes live-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.7;
  }
}

.live-banner__streams {
  display: grid;
  gap: 10px;
}

.live-card {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
}

.live-card__thumb-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(255, 77, 77, 0.25), rgba(241, 180, 67, 0.2));
}

.live-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.live-card__live-tag {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #ff4d4d;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.live-card__body {
  min-width: 0;
}

.live-card h3 {
  margin: 4px 0;
  font-size: 15px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.live-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.live-status__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.12);
}

.live-status b {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.live-status--live {
  border-color: rgba(255, 77, 77, 0.42);
  background: rgba(255, 77, 77, 0.12);
}

.live-status--live .live-status__dot {
  background: #ff4d4d;
  box-shadow: 0 0 0 5px rgba(255, 77, 77, 0.18);
  animation: live-pulse 1.4s ease-in-out infinite;
}

.live-status--live b {
  color: #ff7777;
}

.live-status--error {
  border-color: rgba(241, 180, 67, 0.38);
  background: rgba(241, 180, 67, 0.12);
}

.live-status--error .live-status__dot {
  background: var(--accent);
}

.live-status--offline {
  opacity: 0.78;
}

.digest-section {
  margin-bottom: 14px;
}

.meta-section,
.onboarding-section {
  margin-bottom: 14px;
}

.meta-section {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-color: rgba(120, 213, 255, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(120, 213, 255, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(120, 213, 255, 0.08), rgba(241, 180, 67, 0.06)),
    var(--panel);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

:root[data-vk-appearance="light"] .meta-section {
  background:
    linear-gradient(135deg, rgba(0, 119, 255, 0.055), rgba(216, 149, 23, 0.06)),
    rgba(255, 255, 255, 0.74);
}

.section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.meta-section .section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  margin-bottom: 18px;
}

.meta-section .section-heading-row > div {
  min-width: 0;
}

#metaUpdatedAt {
  max-width: 110px;
  text-align: right;
  line-height: 1.3;
}

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

.meta-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 118px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    rgba(5, 11, 18, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 30px rgba(0, 0, 0, 0.12);
}

.meta-card > * {
  min-width: 0;
}

.meta-card:first-child:nth-last-child(odd) {
  grid-column: 1 / -1;
}

:root[data-vk-appearance="light"] .meta-card {
  background: rgba(255, 255, 255, 0.62);
}

.meta-card h3 {
  margin: 2px 0 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.meta-card p {
  margin: 0;
  line-height: 1.45;
}

.meta-method {
  display: block;
  width: 100%;
  max-width: 760px;
  box-sizing: border-box;
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(120, 213, 255, 0.18);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(120, 213, 255, 0.07);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.meta-card__top,
.meta-sources,
.meta-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.meta-card__top {
  justify-content: space-between;
  min-height: 26px;
}

.meta-card__summary {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.meta-confidence {
  padding: 4px 8px;
  border-radius: 999px;
  color: #081018;
  background: var(--accent-2);
  font-size: 11px;
  font-weight: 900;
}

.meta-confidence--low {
  background: #f4c96a;
}

.meta-confidence--medium {
  background: #78d5ff;
}

.meta-confidence--high {
  background: #8be28b;
}

.meta-tags {
  margin: 0;
}

.meta-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 800;
}

.meta-card__block {
  margin-top: 0;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.16);
}

.meta-card__block strong {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.meta-card__block ul {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

.meta-card__block li + li {
  margin-top: 5px;
}

.meta-sources {
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid var(--border);
}

.meta-card__details {
  width: 100%;
  min-width: 0;
  margin-top: 0;
}

.meta-card__details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
}

.meta-card__details summary::-webkit-details-marker {
  display: none;
}

.meta-card__details summary::after {
  content: "+";
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: rgba(120, 213, 255, 0.13);
  color: var(--accent-2);
}

.meta-card__details[open] summary::after {
  content: "−";
}

.meta-card__details-body {
  display: grid;
  gap: 12px;
  padding-top: 12px;
}

.meta-reactions {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 0;
  padding: 10px;
  border: 1px solid rgba(241, 180, 67, 0.14);
  border-radius: 16px;
  background: rgba(241, 180, 67, 0.07);
}

.meta-reactions__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.meta-reactions__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.meta-reaction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.meta-reaction:hover,
.meta-reaction.active {
  border-color: rgba(241, 180, 67, 0.52);
  background: rgba(241, 180, 67, 0.16);
}

.meta-reaction:active {
  transform: translateY(1px);
}

.meta-reaction:disabled {
  cursor: wait;
  opacity: 0.7;
}

.meta-reaction b {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  color: #0b1220;
  background: var(--accent);
  font-size: 11px;
}

.meta-question-btn {
  align-self: flex-start;
  margin-top: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(241, 180, 67, 0.12);
  scroll-margin-bottom: 190px;
}

.meta-cta {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.meta-cta .secondary-btn {
  width: auto;
  min-width: 220px;
  margin: 0;
  padding: 10px 16px;
}

.onboarding-section {
  padding-top: 2px;
}

.onboarding-section .digest-feed {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.onboarding-section .news-card {
  min-height: 0;
}

.onboarding-section .news-card__image {
  height: 112px;
}

.digest-feed {
  display: grid;
  gap: 12px;
}

.feed-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.feed-filter {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  box-shadow: none;
  font-size: 13px;
}

.feed-filter.active {
  background: linear-gradient(135deg, var(--accent), #ffcf70);
  color: #111827;
  border-color: transparent;
}

.new-badge {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(88, 214, 141, 0.18);
  border: 1px solid rgba(88, 214, 141, 0.45);
  color: var(--ok);
  font-size: 12px;
  font-weight: 800;
}

.main-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 12px;
}

.main-tab {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  box-shadow: none;
}

.main-tab.active {
  background: linear-gradient(135deg, var(--accent), #ffcf70);
  color: #111827;
  border-color: transparent;
}

.tab-panel.hidden {
  display: none;
}

.section-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 10px;
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
  animation: section-heading-in 0.46s ease both;
}

.section-title::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 1.05em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(241, 180, 67, 0.28);
}

.section-title::after {
  content: "";
  flex: 1 1 auto;
  min-width: 36px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(241, 180, 67, 0.42), rgba(120, 213, 255, 0));
}

.section-heading-row .section-title {
  margin-top: 0;
}

@keyframes section-heading-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-title {
    animation: none;
  }
}

.section-lead {
  max-width: 720px;
  margin: -4px 0 16px;
  font-size: 15px;
  line-height: 1.45;
}

.pinned-section {
  margin-bottom: 14px;
}

.pinned-feed {
  display: grid;
  gap: 12px;
}

.pill-pin {
  border-color: rgba(241, 180, 67, 0.55);
  color: var(--accent);
}

.news-card--pinned {
  border-color: rgba(241, 180, 67, 0.35);
}

.events-list,
.lfg-board {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.event-card,
.lfg-card {
  padding: 16px;
}

.lfg-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding-right: 42px;
}

.field-label {
  display: grid;
  gap: 6px;
}

.field-label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field-label select,
.form-card input,
.form-card textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

:root[data-vk-appearance="light"] .field-label select,
:root[data-vk-appearance="light"] .form-card input,
:root[data-vk-appearance="light"] .form-card textarea {
  background: #fff;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.quick-links a,
button,
.secondary-btn {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #ffcf70);
  color: #111827;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.quick-links a {
  padding: 11px 14px;
}

button {
  padding: 12px 16px;
}

.quick-links a:hover,
button:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.panel,
.news-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.stat-card {
  display: flex;
  min-width: 0;
  min-height: 92px;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
  padding: 16px 18px;
}

.stat-card .muted {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.stat-value {
  display: block;
  min-width: 0;
  min-height: 42px;
  margin-top: 8px;
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.18;
  text-shadow: 0 2px 14px rgba(255, 255, 255, 0.12);
  overflow: visible;
  white-space: nowrap;
}

:root[data-vk-appearance="light"] .stat-value {
  color: var(--text);
  text-shadow: none;
}

.stat-value:empty::before {
  content: "...";
}

.about-panel {
  margin: 0 0 16px;
  padding: 16px;
}

.about-panel h2 {
  margin: 0 0 8px;
}

.about-panel p {
  margin: 0;
  line-height: 1.5;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.legal-links a,
.legal-consent a,
.legal-page a,
.back-link {
  color: var(--accent);
}

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

.rubrics {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 5px 0 14px;
}

.rubric-btn {
  flex: 0 0 auto;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.rubric-btn.active {
  border-color: rgba(241, 180, 67, 0.55);
  background: rgba(241, 180, 67, 0.16);
  color: var(--accent);
}

.rubric-btn--news.active {
  border-color: rgba(120, 213, 255, 0.65);
  background: rgba(120, 213, 255, 0.14);
  color: #9edcff;
}

.rubric-btn--patch.active {
  border-color: rgba(241, 180, 67, 0.65);
  background: rgba(241, 180, 67, 0.16);
  color: var(--accent);
}

.rubric-btn--guides.active {
  border-color: rgba(88, 214, 141, 0.65);
  background: rgba(88, 214, 141, 0.14);
  color: #8ce8b0;
}

.rubric-btn--esports.active {
  border-color: rgba(179, 136, 255, 0.65);
  background: rgba(179, 136, 255, 0.14);
  color: #d4b8ff;
}

.rubric-btn--video.active {
  border-color: rgba(255, 107, 107, 0.65);
  background: rgba(255, 107, 107, 0.14);
  color: #ff9f9f;
}

.rubric-btn--memes.active {
  border-color: rgba(255, 179, 71, 0.65);
  background: rgba(255, 179, 71, 0.14);
  color: #ffd08a;
}

.rubric-btn--tips.active {
  border-color: rgba(79, 209, 197, 0.65);
  background: rgba(79, 209, 197, 0.14);
  color: #8de8df;
}

.toolbar {
  margin: 0 0 16px;
}

.search {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  outline: none;
}

textarea {
  min-height: 115px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(120, 213, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(120, 213, 255, 0.12);
}

.feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}

.news-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  overflow: hidden;
  border-top: 3px solid rgba(120, 213, 255, 0.45);
}

.news-card--patch {
  border-top-color: rgba(241, 180, 67, 0.75);
}

.news-card--guides {
  border-top-color: rgba(88, 214, 141, 0.75);
}

.news-card--esports {
  border-top-color: rgba(179, 136, 255, 0.75);
}

.news-card--video {
  border-top-color: rgba(255, 107, 107, 0.75);
}

.news-card--memes {
  border-top-color: rgba(255, 179, 71, 0.75);
}

.news-card--tips {
  border-top-color: rgba(79, 209, 197, 0.75);
}

.news-card--read {
  opacity: 0.82;
}

.news-card--read h3 {
  color: var(--muted);
}

.news-card__image {
  height: 138px;
  background: linear-gradient(135deg, rgba(120, 213, 255, 0.15), rgba(241, 180, 67, 0.12));
  object-fit: cover;
  width: 100%;
}

.news-card__image--placeholder {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
}

.news-card__image--placeholder.news-card__image--patch {
  background: linear-gradient(135deg, rgba(241, 180, 67, 0.35), rgba(120, 80, 20, 0.5));
}

.news-card__image--placeholder.news-card__image--guides {
  background: linear-gradient(135deg, rgba(88, 214, 141, 0.35), rgba(20, 90, 60, 0.5));
}

.news-card__image--placeholder.news-card__image--esports {
  background: linear-gradient(135deg, rgba(179, 136, 255, 0.35), rgba(70, 40, 120, 0.5));
}

.news-card__image--placeholder.news-card__image--video {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.35), rgba(120, 30, 30, 0.5));
}

.news-card__image--placeholder.news-card__image--memes {
  background: linear-gradient(135deg, rgba(255, 179, 71, 0.35), rgba(120, 70, 20, 0.5));
}

.news-card__image--placeholder.news-card__image--tips {
  background: linear-gradient(135deg, rgba(79, 209, 197, 0.35), rgba(20, 90, 85, 0.5));
}

.news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
}

.pill {
  align-self: flex-start;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(120, 213, 255, 0.12);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
}

.pill--patch {
  background: rgba(241, 180, 67, 0.16);
  color: var(--accent);
}

.pill--guides {
  background: rgba(88, 214, 141, 0.16);
  color: #8ce8b0;
}

.pill--esports {
  background: rgba(179, 136, 255, 0.16);
  color: #d4b8ff;
}

.pill--video {
  background: rgba(255, 107, 107, 0.16);
  color: #ff9f9f;
}

.pill--memes {
  background: rgba(255, 179, 71, 0.16);
  color: #ffd08a;
}

.pill--tips {
  background: rgba(79, 209, 197, 0.16);
  color: #8de8df;
}

.detail-cover {
  width: 100%;
  max-height: 220px;
  margin: 0 0 14px;
  border-radius: 16px;
  object-fit: cover;
}

.news-card h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.text-btn {
  padding: 0;
  background: transparent;
  color: var(--accent);
}

.secondary-btn {
  display: block;
  width: 100%;
  margin: 16px 0 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.forms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.form-card {
  display: grid;
  gap: 11px;
  padding: 17px;
}

.form-card h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.form-card h2::before {
  content: "";
  width: 6px;
  height: 1.05em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0.8;
}

.form-card p {
  margin: 0;
}

.legal-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.legal-consent input {
  width: auto;
  margin-top: 2px;
}

.form-status {
  min-height: 1.2em;
  color: var(--ok);
}

.form-status.error {
  color: var(--danger);
}

dialog {
  width: min(760px, calc(100% - 20px));
  border: 0;
  border-radius: 24px;
  padding: 0;
  background: var(--panel-strong);
  color: var(--text);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.detail {
  position: relative;
  padding: 22px;
}

.close-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
}

.detail h2 {
  padding-right: 36px;
}

.detail-content {
  white-space: pre-wrap;
  color: #d8e2ef;
  line-height: 1.58;
}

.legal-page {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 18px 14px 40px;
}

.back-link {
  display: inline-flex;
  margin: 0 0 14px;
  text-decoration: none;
  font-weight: 800;
}

.legal-card {
  padding: 22px;
}

.legal-card h1 {
  margin: 0 0 8px;
}

.legal-card h2 {
  margin: 24px 0 8px;
}

.legal-card p {
  line-height: 1.58;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 12px 0 4px;
  font-size: 14px;
}

.hero-stats__dot {
  opacity: 0.45;
}

.about-panel {
  margin: 12px 0;
  padding: 14px 16px;
}

.about-panel summary {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.about-panel summary::before {
  content: "";
  width: 6px;
  height: 1.1em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.about-panel summary::-webkit-details-marker {
  display: none;
}

.about-panel[open] summary {
  margin-bottom: 10px;
}

.bottom-nav {
  position: fixed;
  z-index: 40;
  right: max(22px, calc((100vw - 1180px) / 2 + 22px));
  bottom: auto;
  top: 50%;
  width: 82px;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: color-mix(in srgb, var(--panel-strong) 92%, transparent);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.bottom-nav__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 62px;
  padding: 8px 5px;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 11px;
  line-height: 1.1;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.bottom-nav__item.active {
  color: var(--text);
  background: rgba(241, 180, 67, 0.16);
}

.bottom-nav__item:active {
  transform: scale(0.97);
}

.bottom-nav__icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 18px;
  line-height: 1;
}

.bottom-nav__item.active .bottom-nav__icon {
  background: rgba(241, 180, 67, 0.24);
  color: var(--accent);
}

.bottom-nav__label {
  max-width: 100%;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav__badge {
  position: absolute;
  top: 6px;
  right: 8px;
  min-width: 16px;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--ok);
  color: #0b1218;
  font-size: 10px;
  font-weight: 800;
}

.bottom-nav__badge--dot {
  min-width: 8px;
  width: 8px;
  height: 8px;
  padding: 0;
  top: 8px;
  right: 13px;
}

.pull-refresh {
  position: fixed;
  z-index: 30;
  top: calc(8px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translate(-50%, -120%);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--muted);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.pull-refresh.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast-host {
  position: fixed;
  z-index: 50;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  width: min(420px, calc(100% - 24px));
  pointer-events: none;
}

.toast {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 14px;
  animation: toast-in 0.22s ease;
}

.toast--error {
  border-color: rgba(255, 107, 107, 0.45);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skeleton-feed {
  display: grid;
  gap: 12px;
}

.skeleton-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel);
}

.skeleton-block {
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.06) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

:root[data-vk-appearance="light"] .skeleton-block {
  background: linear-gradient(
    90deg,
    rgba(20, 30, 45, 0.05) 0%,
    rgba(20, 30, 45, 0.12) 50%,
    rgba(20, 30, 45, 0.05) 100%
  );
  background-size: 200% 100%;
}

.skeleton-card .skeleton-block:first-child {
  min-height: 72px;
}

.skeleton-line {
  height: 12px;
  margin-bottom: 8px;
}

.skeleton-line.short {
  width: 42%;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.empty-state {
  display: grid;
  gap: 12px;
  padding: 18px 14px;
  border-radius: 18px;
  border: 1px dashed var(--border);
  text-align: center;
}

.toolbar--sticky {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 8px 0 10px;
  margin-bottom: 8px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.preset-btn {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: none;
  font-size: 13px;
}

.poll-card {
  margin-bottom: 14px;
}

.poll-card__title {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.poll-options {
  display: grid;
  gap: 8px;
}

.poll-option {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  text-align: left;
  cursor: pointer;
}

.poll-option:disabled {
  cursor: default;
  opacity: 0.92;
}

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

.poll-option__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f8cff, #7b5cff);
}

.poll-option__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.86rem;
}

.poll-status {
  margin: 10px 0 0;
  min-height: 1.2em;
}

@media (max-width: 860px) {
  .app-shell {
    padding-bottom: calc(190px + env(safe-area-inset-bottom, 0px));
  }

  .bottom-nav {
    right: auto;
    top: auto;
    left: 0;
    bottom: 0;
    width: 100%;
    transform: none;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
  }

  .bottom-nav__item {
    min-height: 54px;
    gap: 3px;
    padding: 6px 4px;
  }

  .bottom-nav__icon {
    width: 24px;
    height: 24px;
    border-radius: 10px;
    font-size: 17px;
  }
}

@media (max-width: 980px) {
  .meta-grid {
    grid-template-columns: 1fr;
  }

  .meta-card:first-child:nth-last-child(odd) {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .theme-toggle {
    top: 14px;
    right: 14px;
    padding: 8px 10px;
  }

  .stats-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    border-radius: 22px;
    padding: 22px 17px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(25px, 6vw, 29px);
    line-height: 1.04;
    letter-spacing: -0.004em;
  }

  .section-heading-row {
    display: block;
  }

  .meta-section .section-heading-row {
    display: block;
    margin-bottom: 16px;
  }

  #metaUpdatedAt {
    display: block;
    max-width: none;
    margin-top: 8px;
    text-align: left;
  }

  .section-title {
    margin: 20px 0 9px;
    font-size: clamp(23px, 7vw, 30px);
  }

  .section-title::after {
    min-width: 24px;
  }

  .meta-section {
    padding: 16px;
    border-radius: 24px;
  }

  .meta-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .meta-card {
    padding: 14px;
    border-radius: 18px;
    gap: 11px;
  }

  .meta-card h3 {
    font-size: 15px;
  }

  .meta-card__summary {
    font-size: 13px;
    line-height: 1.42;
  }

  .meta-question-btn {
    font-size: 13px;
  }

  .meta-reactions {
    gap: 7px;
    padding: 9px;
  }

  .meta-reaction {
    min-height: 32px;
    padding: 6px 8px;
    font-size: 11.5px;
  }

  .live-status-strip {
    gap: 6px;
    margin-top: 12px;
  }

  .live-status {
    min-height: 32px;
    padding: 6px 8px;
    font-size: 11px;
  }

  .live-status b {
    font-size: 10px;
  }

  .meta-card__block {
    padding: 10px;
  }

  .meta-card__details summary {
    align-items: flex-start;
    font-size: 12.5px;
  }

  .meta-card__details-body {
    gap: 10px;
    padding-top: 10px;
  }

  .meta-card__block ul {
    font-size: 12.5px;
  }

  .onboarding-section .digest-feed {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 78%);
    grid-template-columns: none;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
  }

  .onboarding-section .news-card {
    scroll-snap-align: start;
  }

  .bottom-nav {
    right: auto;
    top: auto;
    left: 0;
    bottom: 0;
    width: 100%;
    transform: none;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
  }

  .bottom-nav__item {
    min-height: 54px;
    gap: 3px;
    padding: 6px 4px;
  }

  .bottom-nav__icon {
    width: 24px;
    height: 24px;
    border-radius: 10px;
    font-size: 17px;
  }

  .live-card {
    grid-template-columns: 96px 1fr;
    grid-template-rows: auto auto;
  }

  .live-card .text-btn {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
    padding: 10px;
    border-radius: 12px;
    background: rgba(241, 180, 67, 0.14);
  }
}
