:root {
  --bg: #f6f5f1;
  --ink: #151515;
  --muted: #66665f;
  --line: #dedbd2;
  --card: #ffffff;
  --accent: #f5bd32;
  --accent-dark: #075f4f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: Roboto, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(246, 245, 241, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.logo {
  font-size: 1.05rem;
  font-weight: 900;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
}

.intro,
.segment {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 48px;
  align-items: end;
  padding: clamp(52px, 8vw, 96px) 0 clamp(34px, 5vw, 62px);
}

.tag,
.label {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tag {
  margin: 0 0 12px;
}

h1,
h2,
h3,
p,
dl {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(3.2rem, 8.5vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3.35rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 6px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quick-stats div,
.channel-card,
.game-card,
.link-grid a {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quick-stats div {
  min-width: 0;
  padding: 16px;
}

.quick-stats strong {
  display: block;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  font-weight: 900;
  line-height: 1;
}

.quick-stats span {
  display: block;
  margin-top: 9px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.18;
}

.quick-stats small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
}

.segment {
  padding: clamp(34px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
}

.section-title {
  margin-bottom: 22px;
}

.section-title .tag {
  margin-bottom: 6px;
}

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

.channel-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 20px;
}

.channel-card img {
  width: 118px;
  height: 118px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--accent);
}

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

.channel-card dl {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.channel-card dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.channel-card dd {
  margin: 4px 0 0;
  font-size: clamp(1.2rem, 2vw, 1.42rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.example-segment {
  padding-bottom: clamp(42px, 7vw, 82px);
}

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

.game-card {
  overflow: hidden;
}

.game-card img {
  width: 100%;
  aspect-ratio: 315 / 250;
  object-fit: cover;
  background: #e7e5dc;
}

.game-card div {
  padding: 13px;
}

.game-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.links-segment {
  padding-bottom: 92px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.link-grid a {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-weight: 700;
}

.channel-card:hover,
.channel-card:focus-visible,
.game-card:hover,
.game-card:focus-visible,
.link-grid a:hover,
.link-grid a:focus-visible {
  border-color: var(--accent-dark);
  box-shadow: 0 12px 36px rgba(20, 20, 20, 0.08);
}

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

  .quick-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .intro,
  .segment {
    width: min(440px, calc(100% - 32px));
  }

  .intro {
    padding-top: 44px;
  }

  .quick-stats,
  .channel-grid,
  .game-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    display: block;
  }

  .channel-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .channel-card img {
    width: 88px;
    height: 88px;
  }

  .channel-card dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .channel-card dd {
    font-size: 1.2rem;
  }
}

@media (max-width: 420px) {
  nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 4rem);
  }

  .channel-card dl {
    grid-template-columns: 1fr;
  }
}
