@charset "utf-8";

:root {
  --bg: #0a0a09;
  --panel: #141412;
  --panel-2: #1c1c19;
  --border: #2c2b25;
  --text: #e9e6d8;
  --muted: #9a9a86;
  --accent: #d4c24f;
  --accent-dim: #8a7f3e;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type { border-bottom: none; }

h1, h2 {
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.hero {
  padding-top: 48px;
}

.hero h1 {
  font-size: clamp(38px, 7vw, 64px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin: 0 0 18px;
  max-width: 820px;
}

.hero h1 .wiki { color: var(--accent); }

.lede {
  max-width: 720px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.55;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.chip {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.chip:hover { border-color: var(--accent-dim); }

.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.chip:focus-visible,
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 26px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.tile[hidden] { display: none; }

.tile:hover {
  border-color: var(--accent-dim);
  background: var(--panel-2);
}

.tile.is-featured { border-color: var(--accent); }

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

.tile-head svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile:hover .tile-head svg { color: var(--accent); }

.tile-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.tile-badge {
  margin-left: auto;
  align-self: flex-start;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--bg);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.tile-ext {
  margin-left: auto;
  color: var(--muted);
}

.tile-desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.next-playtest {
  margin: 0 0 22px;
  background: var(--panel);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 18px 20px;
}

.np-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-dim);
  margin-bottom: 6px;
}

.np-title {
  font-size: 19px;
  font-weight: 700;
}

.np-when {
  color: var(--text);
  margin-top: 2px;
}

.np-countdown {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(212, 194, 79, 0.14);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.np-desc {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0 0;
}

.np-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.np-link:hover { text-decoration: underline; }


#playtests h2 {
  font-size: clamp(22px, 4vw, 30px);
  margin: 0 0 22px;
}

.pt-warning {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 22px;
  padding: 12px 16px;
  border: 1px solid rgba(212, 194, 79, 0.45);
  border-radius: 10px;
  background: rgba(212, 194, 79, 0.08);
  font-size: 14px;
  line-height: 1.45;
}

.pt-warning svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pt-warning p { margin: 0; color: var(--muted); }
.pt-warning strong { color: var(--accent); }

.pt-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pt-item {
  display: flex;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}

.pt-item.is-upcoming { border-left: 3px solid var(--accent); }

.pt-item.is-live {
  border-left: 3px solid var(--accent);
  background: rgba(212, 194, 79, 0.07);
}

.pt-item.is-past { opacity: 0.62; }

.pt-date {
  flex: 0 0 116px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
}

.pt-item.is-past .pt-date { color: var(--muted); }

.pt-body {
  flex: 1 1 0;
  min-width: 0;
}

.pt-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.pt-title {
  font-weight: 700;
  font-size: 16px;
}

.pt-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
}

.pt-item.is-upcoming .pt-badge,
.pt-item.is-live .pt-badge {
  border-color: var(--accent);
  color: var(--accent);
}

.pt-time {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.pt-desc {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.pt-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.pt-link:hover { text-decoration: underline; }

.pt-note {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

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

footer {
  max-width: 1120px;
  border-top: 1px solid var(--border);
  margin: 0 auto;
  padding: 28px 20px 44px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

footer p { margin: 6px 0; }

.author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.author-name {
  color: var(--text);
  font-weight: 600;
}

.social {
  display: inline-flex;
  color: var(--muted);
  transition: color 0.15s;
}

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

.social svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

@media (max-width: 560px) {
  .pt-item {
    flex-direction: column;
    gap: 6px;
  }
  .pt-date { flex-basis: auto; }
  section { padding: 40px 0; }
  main { padding: 0 16px; }
  .hero { padding-top: 32px; }
  .tiles { grid-template-columns: 1fr; gap: 12px; }
  .tile { padding: 20px; }
  .chip { padding: 9px 16px; font-size: 15px; }
}

.video-feed-tab {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 300px;
  padding: 8px 10px 8px 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  text-align: left;
}

.video-feed-tab:hover { background: var(--panel-2); }

.vft-thumb {
  width: 88px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 auto;
  background: var(--panel-2);
}

.vft-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.vft-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vft-channel {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vft-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 12px;
}

.video-feed-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: clamp(420px, 28vw, 620px);
  background: var(--panel);
  border-right: 1px solid var(--border);
  z-index: 70;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.video-feed-panel.is-open { transform: translateX(0); visibility: visible; }

.vfp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.vfp-title {
  font-weight: 700;
  font-size: 16px;
}

.vfp-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}

.vfp-close:hover { color: var(--text); }

.vfp-body {
  overflow-y: auto;
  padding: 16px 18px 28px;
}

.vfp-section + .vfp-section { margin-top: 22px; }

.vfp-h {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent-dim);
  margin: 0 0 10px;
}

.vfp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vf-card {
  display: flex;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  border-radius: 8px;
  padding: 8px;
}

.vf-card:hover { background: var(--panel-2); }

.vf-card--official {
  border: 2px solid var(--accent);
}

.vf-card-badge {
  display: inline-block;
  margin-bottom: 3px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vf-card img {
  width: 150px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 auto;
  background: var(--panel-2);
}

.vf-card-body { min-width: 0; }

.vf-card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vf-card-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.video-feed-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 65;
}

.video-feed-overlay[hidden] { display: none; }

/* Боковой вкладке нужно свободное поле слева от контента (1120px), иначе она наезжает на карточки. */
@media (max-width: 1700px) {
  .video-feed-tab { display: none; }
}

@media (max-width: 720px) {
  .video-feed-panel { width: min(360px, 88vw); }
}

.video-feed-tab[hidden],
.video-feed-nav-btn[hidden] {
  display: none;
}

@keyframes vf-wave-flash {
  0% { background: transparent; box-shadow: none; }
  25% { background: rgba(255, 255, 255, 0.14); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset; }
  100% { background: transparent; box-shadow: none; }
}

@keyframes vf-wave-flash-gold {
  0% { background: transparent; box-shadow: none; }
  8% { background: rgba(212, 194, 79, 0.3); box-shadow: 0 0 0 1px var(--accent) inset; }
  55% { background: rgba(212, 194, 79, 0.3); box-shadow: 0 0 0 1px var(--accent) inset; }
  100% { background: transparent; box-shadow: none; }
}

.vf-card.vf-wave {
  animation: vf-wave-flash 0.9s ease-out;
  animation-delay: calc(var(--i, 0) * 140ms);
}

.vf-card.vf-wave-target {
  animation: vf-wave-flash-gold 3.6s ease-out;
  animation-delay: calc(var(--i, 0) * 140ms);
}

.tile-featured {
  color: var(--text);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile-featured[hidden] { display: none; }
