:root {
  --bg: #fafaf9;
  --bar: rgb(255 255 255 / 0.88);
  --surface: #ffffff;
  --surface-hover: #f5f5f4;
  --ring: rgb(0 0 0 / 0.06);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  --text: #1c1917;
  --muted: #57534e;
  --accent: #d97706;
  --glow: 0.35;
  --tint-mix: 14%;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0a09;
    --bar: rgb(23 23 23 / 0.8);
    --surface: #171717;
    --surface-hover: #1f1f1f;
    --ring: rgb(255 255 255 / 0.06);
    --shadow: none;
    --text: #fafafa;
    --muted: #a3a3a3;
    --accent: #fbbf24;
    --glow: 0.5;
    --tint-mix: 20%;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0c0a09;
  --bar: rgb(23 23 23 / 0.8);
  --surface: #171717;
  --surface-hover: #1f1f1f;
  --ring: rgb(255 255 255 / 0.06);
  --shadow: none;
  --text: #fafafa;
  --muted: #a3a3a3;
  --accent: #fbbf24;
  --glow: 0.5;
  --tint-mix: 20%;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--accent) var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
}

h2,
p {
  margin: 0;
}

.sprite {
  display: none;
}

.ic {
  width: 24px;
  height: 24px;
  flex: none;
}

.ic-fill {
  fill: currentColor;
}

.ic-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Header ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 24px;
  background: linear-gradient(to bottom, var(--bg), color-mix(in srgb, var(--bg) 75%, transparent) 60%, transparent);
  pointer-events: none;
  transition: transform 0.15s ease;
}

.topbar[data-scrolled] {
  transform: translateY(-12px);
}

.bar {
  position: relative;
  max-width: 1232px;
  height: 56px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bar);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--ring);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
  transition: box-shadow 0.15s ease;
}

.topbar[data-scrolled] .bar {
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.12), inset 0 0 0 1px var(--ring);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  flex: none;
}

/* The avatar dissolves into the bar towards the name. */
.brand img {
  width: 84px;
  height: 56px;
  object-fit: cover;
  object-position: 45% 28%;
  -webkit-mask-image: linear-gradient(90deg, #000 35%, rgb(0 0 0 / 0.55) 62%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 35%, rgb(0 0 0 / 0.55) 62%, transparent 100%);
}

.brand-name {
  position: relative;
  margin-left: -22px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.3; }
}

.nav {
  display: none;
  align-items: center;
  height: 100%;
  padding-block: 8px;
  margin-left: auto;
}

.nav a,
.mobile-menu a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}

.nav a:hover,
.nav a[aria-current="page"],
.mobile-menu a:hover,
.mobile-menu a[aria-current="page"] {
  background: var(--surface-hover);
  color: var(--text);
}

.bar-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-right: 8px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.icon-btn:hover {
  background: var(--surface-hover);
}

.icon-btn .ic {
  width: 20px;
  height: 20px;
}

/* Show the sun in dark mode (click → light) and the moon in light mode. */
.theme-sun { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-sun { display: block; }
  :root:not([data-theme="light"]) .theme-moon { display: none; }
}

:root[data-theme="dark"] .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon { display: none; }

.mobile-menu {
  max-width: 1232px;
  margin: 8px auto 0;
  padding: 8px;
  display: grid;
  gap: 2px;
  border-radius: 16px;
  background: var(--bar);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.16), inset 0 0 0 1px var(--ring);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  height: 40px;
}

@media (min-width: 800px) {
  .nav { display: flex; }
  .menu-btn,
  .mobile-menu { display: none !important; }
}

/* ---------- Social buttons ---------- */

.socials {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.social {
  position: relative;
  display: grid;
  place-items: center;
  height: 56px;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.social:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.social .ic {
  width: 26px;
  height: 26px;
}

.s-twitch { --brand: #9146ff; }
.s-youtube { --brand: #e62b2b; }
.s-telegram { --brand: #28a8e9; }
.s-tiktok { --brand: linear-gradient(135deg, #25f4ee -40%, #111 45%, #111 60%, #fe2c55 150%); }
.s-donate { --brand: #f57d07; }

.live-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3b3b;
  box-shadow: 0 0 0 3px rgb(255 255 255 / 0.9);
  animation: pulse 1.6s ease-in-out infinite;
}

.live-dot[hidden],
.live[hidden] {
  display: none;
}

@media (min-width: 768px) {
  .socials { gap: 16px; }
}

/* ---------- Info cards ---------- */

.posts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}

.post {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 16px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--ring);
  scroll-margin-top: 96px;
}

.banner {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: var(--banner);
  color: #fff;
}

/* Soft glossy highlight over every banner. */
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 15% 0%, rgb(255 255 255 / 0.28), transparent 55%);
  pointer-events: none;
}

.banner .ic {
  width: 30%;
  max-width: 76px;
  height: auto;
  aspect-ratio: 1;
  stroke-width: 2;
  filter: drop-shadow(0 6px 18px rgb(0 0 0 / 0.25));
  transition: transform 0.25s ease;
}

a.banner:hover .ic {
  transform: scale(1.08) rotate(-4deg);
}

.b-clips { --banner: radial-gradient(80% 90% at 0% 100%, #fde047 0%, transparent 55%), linear-gradient(135deg, #fb923c, #f43f5e 60%, #9d174d); }
.b-bot { --banner: radial-gradient(80% 80% at 100% 0%, #bef264 0%, transparent 55%), linear-gradient(135deg, #34d399, #0d9488 55%, #134e4a); }
.b-auc { --banner: radial-gradient(80% 90% at 100% 100%, #fde68a 0%, transparent 55%), linear-gradient(135deg, #c084fc, #9333ea 50%, #3b0764); }
.b-collab { --banner: radial-gradient(80% 90% at 100% 100%, #f0abfc 0%, transparent 55%), linear-gradient(135deg, #7dd3fc, #6366f1 55%, #312e81); }

.post-title {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.post-text {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.shout {
  color: var(--text);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* "там вся инфа и команды" with a hand-drawn arrow into the link. */
.pointer {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent);
}

.pointer-row {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-top: 2px;
}

.pointer-arrow {
  width: 40px;
  height: 32px;
  flex: none;
  margin-left: 4px;
  margin-bottom: 10px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tint, var(--text)) var(--tint-mix), transparent);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.15s, transform 0.15s;
}

.pill-link:hover {
  background: color-mix(in srgb, var(--tint, var(--text)) calc(var(--tint-mix) + 12%), transparent);
  transform: translateY(-1px);
}

.pill-link .ic {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
  color: var(--tint, var(--text));
}

.email {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

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

.copy-btn .done-icon,
.copy-btn[data-copied] .copy-icon {
  display: none;
}

.copy-btn[data-copied] .done-icon {
  display: block;
  color: #16a34a;
}

@media (min-width: 640px) {
  .posts { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (min-width: 640px) and (max-width: 1199px) {
  .posts > :last-child { grid-column: 1 / -1; }
  .posts > :last-child .banner { aspect-ratio: 3 / 1; }
}

/* Two wide cards on top (games, auctions), three regular ones below. */
@media (min-width: 1200px) {
  .posts { grid-template-columns: repeat(6, 1fr); }
  .posts > * { grid-column: span 2; }
  .posts > .post-wide { grid-column: span 3; }
  .post-wide .banner { aspect-ratio: 2.4 / 1; }
}

/* ---------- Games page ---------- */

.prose-wide {
  max-width: 760px;
}

.count {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--ring);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.6;
  vertical-align: 3px;
}

.group-note {
  font-size: 13.5px;
  color: var(--muted);
}

.game-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.game-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 10px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--ring);
  scroll-margin-top: 96px;
}

.game-cover {
  position: relative;
  display: block;
  aspect-ratio: 460 / 215;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-hover);
}

.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-entry:hover .game-cover img {
  transform: scale(1.04);
}

.cover-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.7);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.game-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 4px 4px;
}

.prose .game-body h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.prose .game-body p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--surface-hover);
  box-shadow: inset 0 0 0 1px var(--ring);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
}

.seen {
  margin-left: 4px;
  font-size: 12px;
  color: var(--muted);
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.game-actions .pill-link {
  padding: 6px 12px;
  font-size: 13px;
}

@media (min-width: 640px) {
  .game-entry {
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: center;
  }
}

/* Tilted mosaic of covers on the home page "Игры" card. */
.b-games {
  --banner: #0b0b0f;
}

.mosaic {
  position: absolute;
  inset: -40% -25%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: center;
  gap: 6px;
  transform: rotate(-12deg);
  transition: transform 0.5s ease;
}

.mosaic img {
  width: 100%;
  aspect-ratio: 460 / 215;
  object-fit: cover;
  border-radius: 6px;
}

.b-games::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 50%, rgb(0 0 0 / 0.2), rgb(0 0 0 / 0.6));
}

.post-link:hover .mosaic {
  transform: rotate(-12deg) scale(1.06);
}

.banner-badge {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgb(0 0 0 / 0.45);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.banner .banner-badge .ic {
  width: 32px;
  max-width: none;
}

/* ---------- Clickable info cards on the home page ---------- */

.post {
  position: relative;
}

.post-link,
.post:has(.stretched) {
  transition: background-color 0.15s;
}

.post-link:hover,
.post:has(.stretched):hover {
  background: var(--surface-hover);
}

.post-link:hover .banner .ic,
.post:has(.stretched):hover .banner .ic {
  transform: scale(1.08) rotate(-4deg);
}

/* Title link stretched over the whole card; inner controls sit above it. */
.stretched::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 16px;
}

.post .email {
  position: relative;
  z-index: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- Article pages ---------- */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding-top: 8px;
}

.side-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: -16px;
  padding: 2px 16px 4px;
}

.side-nav::-webkit-scrollbar {
  display: none;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--ring);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}

.side-nav a:hover,
.side-nav a[aria-current="page"] {
  background: var(--surface-hover);
  color: var(--text);
}

.side-nav a[aria-current="page"] {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}

.side-nav .ic {
  width: 16px;
  height: 16px;
}

.side-nav .ext {
  width: 12px;
  height: 12px;
  margin-left: -4px;
  opacity: 0.6;
}

.toc {
  display: none;
}

.prose {
  min-width: 0;
  max-width: 680px;
  width: 100%;
  margin-inline: auto;
  font-size: 15px;
  line-height: 1.7;
}

.prose h1 {
  margin: 16px 0 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-align: center;
}

.prose .lead {
  margin: 12px auto 0;
  max-width: 560px;
  font-size: 16px;
  color: var(--muted);
  text-align: center;
}

.prose h2 {
  margin-top: 44px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  scroll-margin-top: 96px;
}

.prose h3 {
  margin: 28px 0 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  scroll-margin-top: 96px;
}

.prose p {
  margin-top: 10px;
}

.prose a:not([class]) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.callout {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}

.callout .ic {
  margin-top: 2px;
  color: var(--accent);
}

.callout p {
  margin: 0;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.platforms li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--ring);
  font-size: 14px;
  font-weight: 600;
}

.platforms .ic {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
  color: #16a34a;
}

.channels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.channel {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--ring);
  transition: background-color 0.15s, transform 0.15s;
}

.channel:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.channel-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
}

.channel-name {
  align-self: end;
  font-weight: 700;
  line-height: 1.3;
}

.channel-meta {
  align-self: start;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.email-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 12px 12px 12px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--ring);
}

.email-card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #7dd3fc, #6366f1 60%, #312e81);
  color: #fff;
}

.email-card-address {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.email-card-address:hover {
  color: var(--accent);
}

.email-card .copy-btn {
  margin-left: auto;
}

@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: 220px minmax(0, 1fr) 220px;
    gap: 32px;
    align-items: start;
  }

  .side-nav,
  .toc {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    margin: 0;
    padding: 0;
  }

  .side-nav a {
    align-items: flex-start;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
    line-height: 1.35;
    white-space: normal;
  }

  .side-nav a[aria-current="page"] {
    background: var(--surface);
    box-shadow: var(--shadow), inset 0 0 0 1px var(--ring);
  }

  .side-nav .ic {
    margin-top: 1px;
  }

  .side-nav .ext {
    margin: 4px 0 0 -4px;
  }

  .toc-title {
    margin: 0 0 6px;
    padding-inline: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .toc a {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.35;
    color: var(--muted);
    transition: background-color 0.15s, color 0.15s;
  }

  .toc a.sub {
    margin-left: 12px;
  }

  .toc a:hover {
    background: var(--surface);
    color: var(--text);
  }

  .toc a[aria-current="true"],
  .toc a.is-parent {
    color: var(--text);
    font-weight: 600;
  }

  .prose h1 {
    font-size: 40px;
    margin-top: 8px;
  }

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

/* ---------- Auctions page ---------- */

.date-chip {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, #9333ea var(--tint-mix), transparent);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: 3px;
}

.timeline {
  position: relative;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

/* The line connecting the steps, drawn through the middle of the thumbnails. */
.timeline::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 55px;
  width: 2px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--text) 14%, transparent);
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 10px 0;
  scroll-margin-top: 96px;
}

.step-thumb {
  position: relative;
  display: block;
  aspect-ratio: 460 / 215;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--bg), inset 0 0 0 1px var(--ring);
}

.step-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.prose .step h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0;
  font-size: 17px;
  line-height: 1.3;
}

.prose .step h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.prose .step h3 a:hover {
  color: var(--accent);
}

.prose .step p {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.drop {
  padding: 1px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, #ef4444 var(--tint-mix), transparent);
  color: #ef4444;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.drop.reroll {
  background: color-mix(in srgb, #9333ea var(--tint-mix), transparent);
  color: #a855f7;
}

.auc-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-left: 128px;
}

.tag-link {
  color: var(--text);
  transition: background-color 0.15s;
}

.tag-link:hover {
  background: color-mix(in srgb, #9333ea var(--tint-mix), transparent);
}

@media (max-width: 479px) {
  .step { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  .timeline::before { left: 41px; }
  .auc-summary { padding-left: 96px; }
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 40px 32px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 4px;
}

.footer-links a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--muted);
  transition: color 0.15s, background-color 0.15s;
}

.footer-links a:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.footer-links .ic {
  width: 20px;
  height: 20px;
}

/* ---------- Small screens ---------- */

@media (max-width: 639px) {
  .container { padding-inline: 16px; }
  .topbar { padding: 16px; }
  .topbar[data-scrolled] { transform: translateY(-8px); }
  .social { height: 52px; border-radius: 14px; }
  .social .ic { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
