:root {
  --ink: #10141c;
  --ink-soft: #1a2230;
  --paper: #f6f7f4;
  --paper-strong: #ffffff;
  --muted: #657184;
  --line: #d8ded8;
  --cyan: #3c8ea3;
  --green: #2f8b67;
  --amber: #c6903b;
  --red: #b95b4e;
  --violet: #7666a6;
  --shadow: 0 18px 45px rgba(16, 20, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  padding: 0 max(18px, calc((100vw - 1160px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
  background: rgba(12, 17, 25, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.top-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.top-nav a:hover {
  color: #fff;
}

.hero {
  min-height: 78vh;
  padding: 132px 18px 104px;
  display: flex;
  align-items: center;
  color: #fff;
  background-color: #10141c;
  background-image:
    linear-gradient(90deg, rgba(11, 15, 23, 0.94) 0%, rgba(18, 25, 36, 0.82) 50%, rgba(18, 25, 36, 0.38) 100%),
    url("avatar.png");
  background-repeat: no-repeat;
  background-position: center, right max(28px, calc((100vw - 1160px) / 2)) center;
  background-size: cover, min(420px, 54vw);
}

.hero-inner,
.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.hero-inner {
  position: relative;
}

.eyebrow {
  margin: 0 0 12px;
  color: #e2b766;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(54px, 10vw, 118px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 4px 0 10px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.card-link,
.copy-button {
  min-height: 46px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button {
  padding: 12px 18px;
}

.button-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.primary {
  background: #e1b260;
  color: #15110b;
}

.primary .button-icon {
  color: var(--green);
  background: #fff7dc;
}

.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.28);
}

.live-strip {
  width: min(1160px, calc(100% - 36px));
  margin: -52px auto 0;
  position: relative;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--paper-strong);
}

.live-item {
  min-height: 104px;
  padding: 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  border-right: 1px solid var(--line);
}

.live-item:last-child {
  border-right: 0;
}

.status-dot {
  width: 11px;
  height: 11px;
  margin-top: 6px;
  border-radius: 50%;
  background: #9aa4b3;
  box-shadow: 0 0 0 5px rgba(154, 164, 179, 0.16);
}

.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(47, 139, 103, 0.18);
}

.status-dot.offline {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(185, 91, 78, 0.18);
}

.live-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.live-item strong {
  grid-column: 2;
  margin-top: 4px;
  font-size: 28px;
  line-height: 1.1;
}

.section {
  padding: 88px 18px;
}

.section-heading {
  margin-bottom: 30px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

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

.resource-card,
.game-card {
  border-radius: 8px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(16, 20, 28, 0.06);
}

.resource-card {
  min-height: 260px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
}

.resource-card strong {
  margin-top: 22px;
  font-size: 25px;
  line-height: 1.05;
}

.resource-card span:not(.card-kicker) {
  margin-top: 14px;
  color: var(--muted);
}

.resource-card em {
  margin-top: auto;
  color: var(--ink-soft);
  font-style: normal;
  font-weight: 900;
}

.card-kicker,
.game-type {
  width: fit-content;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.accent-blue .card-kicker {
  background: var(--cyan);
}

.accent-green .card-kicker {
  background: var(--green);
}

.accent-amber .card-kicker {
  background: var(--amber);
}

.accent-red .card-kicker {
  background: var(--red);
}

.games-section {
  background: #151b25;
  color: #fff;
}

.games-section .section-heading h2 {
  max-width: 760px;
}

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

.game-card {
  min-height: 430px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: #fdfdf9;
  color: var(--ink);
}

.game-type {
  background: var(--ink-soft);
}

.game-card[data-game-card="pwfs"] .game-type {
  background: var(--amber);
}

.game-card[data-game-card="minecraft"] .game-type {
  background: var(--green);
}

.game-card[data-game-card="valheim"] .game-type {
  background: var(--violet);
}

.game-card p {
  margin: 0;
  color: var(--muted);
}

.metrics {
  margin: 28px 0 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metrics div {
  min-width: 0;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8f4;
}

.metrics dt {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metrics dd {
  margin: 0;
  min-height: 32px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.05;
}

.card-link,
.copy-button {
  width: 100%;
  margin-top: auto;
  padding: 12px 14px;
  background: var(--ink-soft);
  color: #fff;
}

.copy-button {
  border: 0;
}

.status-note {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.quiet-section {
  background: #eef2ed;
}

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

.link-list a {
  min-height: 86px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper-strong);
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
}

.link-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.social-section {
  background: #fff;
}

.social-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: center;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  background: #f8f8f5;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.site-footer {
  position: relative;
  min-height: 70px;
  padding: 20px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.secret-flea {
  position: absolute;
  z-index: 60;
  left: 18px;
  bottom: 8px;
  width: 44px;
  height: 26px;
  opacity: 0.72;
  transform: translateX(0);
  animation: flea-crawl 34s linear infinite;
}

.secret-flea:hover {
  opacity: 0.95;
}

.secret-flea:focus-visible {
  outline: 2px solid rgba(226, 183, 102, 0.9);
  outline-offset: 5px;
}

.flea-body {
  position: absolute;
  left: 10px;
  top: 7px;
  width: 20px;
  height: 12px;
  border-radius: 48% 42% 46% 50%;
  background: #c89a4b;
  box-shadow:
    inset 4px 0 0 rgba(255, 255, 255, 0.16),
    0 1px 0 rgba(0, 0, 0, 0.35);
}

.flea-head {
  position: absolute;
  right: -7px;
  top: 3px;
  width: 8px;
  height: 7px;
  border-radius: 50%;
  background: #b9873e;
}

.flea-body::before,
.flea-body::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #e0bd73;
}

.flea-body::before {
  left: 4px;
}

.flea-body::after {
  left: 8px;
}

.flea-leg {
  position: absolute;
  left: 3px;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #8b6730;
  transform-origin: left center;
}

.leg-one {
  top: 2px;
  transform: rotate(-32deg);
}

.leg-two {
  top: 7px;
  transform: rotate(18deg);
}

.leg-three {
  top: 11px;
  transform: rotate(38deg);
}

@keyframes flea-crawl {
  0% {
    left: 18px;
    transform: translateY(0) rotate(0deg);
  }

  28% {
    transform: translateY(-1px) rotate(-2deg);
  }

  54% {
    transform: translateY(0) rotate(1deg);
  }

  100% {
    left: calc(100% - 62px);
    transform: translateY(-1px) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .secret-flea {
    animation: none;
    left: auto;
    right: 18px;
  }
}

@media (hover: hover) {
  .resource-card,
  .game-card,
  .link-list a,
  .social-links a,
  .button,
  .card-link,
  .copy-button {
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  }

  .resource-card:hover,
  .game-card:hover,
  .link-list a:hover,
  .social-links a:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 20, 28, 0.22);
    box-shadow: var(--shadow);
  }

  .button:hover,
  .card-link:hover,
  .copy-button:hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 920px) {
  .hero {
    min-height: 720px;
    background-position: center, right 20px bottom 80px;
    background-size: cover, 280px;
  }

  .live-strip,
  .resource-grid,
  .game-grid,
  .link-list,
  .social-inner {
    grid-template-columns: 1fr;
  }

  .live-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .live-item:last-child {
    border-bottom: 0;
  }

  .resource-card,
  .game-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 62px;
  }

  .brand span {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .top-nav {
    gap: 12px;
    font-size: 13px;
  }

  .hero {
    min-height: 670px;
    padding-top: 112px;
  }

  .lead {
    max-width: 92%;
  }

  .section {
    padding: 64px 18px;
  }

  .section-heading {
    display: block;
  }

  .metrics {
    grid-template-columns: 1fr;
  }
}
