:root {
  --b-bg: #f4f0e8;
  --b-ink: #14201c;
  --b-muted: #5d6b64;
  --b-accent: #0f7a5f;
  --b-card: rgba(255, 252, 246, 0.92);
  --b-line: rgba(20, 32, 28, 0.12);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--b-ink);
  background: var(--b-bg);
  line-height: 1.45;
}
.pre-root {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}
.pre-hero {
  position: relative;
  border-radius: 26px;
  margin: 1.25rem 0 2.2rem;
  padding: clamp(3rem, 10vw, 6rem) clamp(1.5rem, 6vw, 4rem);
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(244,240,232,.96) 0%, rgba(244,240,232,.78) 42%, rgba(20,32,28,.42) 100%),
    url("/cards/steam.webp") center / cover no-repeat;
  box-shadow: 0 22px 60px rgba(40,30,10,.1);
}
.pre-hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(500px 240px at 12% 18%, rgba(45,212,191,.22), transparent 55%),
    radial-gradient(520px 260px at 88% 12%, rgba(15,122,95,.18), transparent 52%);
  filter: blur(18px);
  animation: preHeroGlow 10s ease-in-out infinite alternate;
}
@keyframes preHeroGlow {
  from { opacity: .7; transform: scale(1); }
  to { opacity: 1; transform: scale(1.08); }
}
.pre-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border-radius: 999px;
  padding: .35rem .9rem;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .04em;
  background: rgba(255,252,246,.9);
  border: 1px solid var(--b-line);
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 18px rgba(20,32,28,.08);
}
.pre-badge::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--b-accent);
  box-shadow: 0 0 10px 2px rgba(15,122,95,.45);
  animation: preLive 2s ease-in-out infinite;
}
@keyframes preLive {
  0%, 100% { opacity: .75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}
.pre-hero h1 {
  position: relative;
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: .98;
  letter-spacing: -.03em;
  max-width: 14ch;
}
.pre-hero p {
  position: relative;
  margin: 1rem 0 0;
  color: var(--b-muted);
  max-width: 42ch;
  font-size: 1.05rem;
}
.pre-hero-cta {
  position: relative;
  margin-top: 1.6rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.pre-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  padding: .75rem 1.4rem;
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid var(--b-line);
  background: rgba(255,252,246,.8);
  color: var(--b-ink);
  box-shadow: 0 6px 18px rgba(20,32,28,.06);
}
.pre-btn-primary {
  background: var(--b-ink);
  color: #fff;
  border-color: var(--b-ink);
}
.pre-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.pre-cat {
  position: relative;
  display: grid;
  align-items: end;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  background: var(--b-card);
  border: 1px solid var(--b-line);
  box-shadow: 0 12px 32px rgba(40,30,10,.06);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pre-cat:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(40,30,10,.1);
}
.pre-cat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.pre-cat:hover img { transform: scale(1.08); }
.pre-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(20,32,28,.68) 100%);
}
.pre-cat span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  padding: .85rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.pre-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.pre-feature {
  background: var(--b-card);
  border: 1px solid var(--b-line);
  border-radius: 22px;
  padding: 1.35rem;
  box-shadow: 0 12px 32px rgba(40,30,10,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pre-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(40,30,10,.08);
}
.pre-feature svg {
  width: 32px;
  height: 32px;
  color: var(--b-accent);
  margin-bottom: .7rem;
}
.pre-feature h3 {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
}
.pre-feature p {
  margin: 0;
  color: var(--b-muted);
  font-size: .92rem;
}
.pre-footer {
  text-align: center;
  color: var(--b-muted);
  font-size: .88rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--b-line);
}
.pre-dots::after {
  content: "";
  animation: preDots 1.4s steps(4, end) infinite;
}
@keyframes preDots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
  100% { content: ""; }
}
.pre-noscript {
  padding: 1rem;
  text-align: center;
  background: #fff;
  color: #900;
}
@media (max-width: 640px) {
  .pre-hero h1 { max-width: none; }
  .pre-categories { grid-template-columns: repeat(2, 1fr); }
}
