/* Bedrock Event — сайт сервера. Сезон Хэллоуина: фиолетовая ночь, тыквенный свет, кейс в центре. */
:root {
  --night: #170C2B;
  --night-2: #21123D;
  --panel: #2A1850;
  --panel-2: #36205F;
  --line: #45297A;
  --pumpkin: #FF8A1F;
  --pumpkin-hi: #FFA54D;
  --pumpkin-lo: #B4520A;
  --candle: #FFD36B;
  --slime: #9BE15D;
  --text: #F4EEFF;
  --muted: #B6A8D6;
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--night); color: var(--text); font: 400 16px/1.55 var(--font); }
img { max-width: 100%; }
.pixel, .slot img, .prod .icon img { image-rendering: pixelated; }
a { color: var(--candle); text-underline-offset: 3px; }
a:hover { color: #FFE6A6; }
:focus-visible { outline: 3px solid var(--candle); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }
h1, h2, h3 { font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .45em; }
h1 { font-size: clamp(34px, 5.6vw, 64px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 20px; letter-spacing: -.01em; }
p { margin: 0 0 1em; max-width: 66ch; }
.lead { color: var(--muted); font-size: 18px; }
.muted { color: var(--muted); }
code { font-family: var(--font); font-weight: 700; }

/* ---------- шапка */
.top { position: sticky; top: 0; z-index: 20; background: rgba(23, 12, 43, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 19px; white-space: nowrap; }
.logo img { width: 30px; height: 30px; }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; white-space: nowrap; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); background: var(--night-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--panel); }
.online-pill { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; white-space: nowrap; padding: 6px 12px; border-radius: 99px; background: var(--night-2); }
.online-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #7B6E9C; }
.online-pill .dot.up { background: var(--slime); box-shadow: 0 0 0 4px rgba(155, 225, 93, .18); }
@media (max-width: 760px) {
  .top .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; gap: 4px 12px; }
  .online-pill { margin-left: auto; }
  .nav { order: 3; flex-basis: 100%; margin: 0 -10px; padding-bottom: 8px; }
}

/* ---------- кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border: 0; border-radius: 12px;
  font: 700 16px/1 var(--font); color: #2A1100; text-decoration: none; cursor: pointer; white-space: nowrap;
  background: linear-gradient(180deg, var(--pumpkin-hi), var(--pumpkin)); box-shadow: 0 4px 0 var(--pumpkin-lo), 0 10px 30px rgba(255, 138, 31, .25); }
.btn:hover { color: #2A1100; filter: brightness(1.06); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--pumpkin-lo); }
.btn:disabled { filter: grayscale(.7) brightness(.8); cursor: not-allowed; box-shadow: 0 4px 0 #3b2a55; }
.btn.ghost { color: var(--text); background: var(--panel); box-shadow: 0 4px 0 #1B0F33; }
.btn.ghost:hover { background: var(--panel-2); color: var(--text); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; box-shadow: 0 3px 0 var(--pumpkin-lo); }

/* ---------- первый экран */
.hero { position: relative; overflow: hidden; padding: 64px 0 0;
  background:
    radial-gradient(600px 420px at 78% 40%, rgba(255, 138, 31, .22), transparent 70%),
    radial-gradient(1px 1px at 8% 18%, #fff 99%, transparent), radial-gradient(1px 1px at 30% 8%, #e6d9ff 99%, transparent),
    radial-gradient(2px 2px at 52% 22%, #fff 70%, transparent), radial-gradient(1px 1px at 64% 6%, #fff 99%, transparent),
    radial-gradient(1px 1px at 92% 14%, #e6d9ff 99%, transparent), radial-gradient(2px 2px at 18% 44%, #fff 60%, transparent),
    radial-gradient(1px 1px at 44% 52%, #fff 99%, transparent),
    linear-gradient(180deg, #0F0720 0%, var(--night) 75%); }
.moon { position: absolute; top: 34px; left: 47%; width: 46px; height: 46px; border-radius: 4px; background: #FFE9B0;
  box-shadow: inset -7px -7px 0 #F2CF7A, 0 0 70px 16px rgba(255, 220, 140, .18); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.season { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px 6px 6px; border-radius: 99px; background: rgba(255, 138, 31, .14); color: var(--pumpkin-hi); font-weight: 600; font-size: 14px; text-decoration: none; }
.season img { width: 26px; height: 26px; }
.season:hover { background: rgba(255, 138, 31, .22); color: var(--pumpkin-hi); }
.hero h1 { max-width: 14ch; }
.hero-lede { font-size: 19px; color: #D9CFF0; max-width: 44ch; }
.ipbox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 26px 0 0; padding: 10px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); max-width: 520px; }
.ipbox .addr { flex: 1; min-width: 200px; padding: 0 8px; }
.ipbox .addr small { display: block; color: var(--muted); font-size: 13px; }
.ipbox .addr code { font-size: 22px; letter-spacing: -.01em; }
.ipbox .port { padding: 0 14px; border-left: 1px solid var(--line); }
.ipbox .port small { display: block; color: var(--muted); font-size: 13px; }
.ipbox .port code { font-size: 22px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.hero-facts b { color: var(--text); }
.hero-art { position: relative; aspect-ratio: 1; max-width: 480px; justify-self: center; width: 100%; }
.hero-art .crate { position: absolute; inset: 14%; width: 72%; height: 72%; filter: drop-shadow(0 20px 50px rgba(255, 138, 31, .45)); animation: bob 5s ease-in-out infinite; }
.hero-art .hat { position: absolute; width: 21%; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); }
.hero-art .h1 { left: 0; top: 8%; transform: rotate(-10deg); }
.hero-art .h2 { right: 2%; top: 2%; transform: rotate(8deg); }
.hero-art .h3 { right: -2%; top: 52%; transform: rotate(12deg); }
.hero-art .h4 { left: -2%; top: 58%; transform: rotate(-6deg); }
.hero-art .h5 { left: 40%; bottom: -4%; transform: rotate(4deg); }
@keyframes bob { 50% { transform: translateY(-10px); } }
.horizon { height: 168px; background: url("/assets/img/horizon.png") repeat-x left bottom / 960px 168px; image-rendering: pixelated; margin-top: -24px; position: relative; }
@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-art { max-width: 300px; order: -1; margin-bottom: 18px; }
  .hero-art .h5 { bottom: 0; }
  .moon { left: auto; right: 8%; top: 16px; width: 34px; height: 34px; }
  .horizon { height: 112px; background-size: 640px 112px; margin-top: 0; }
  .ipbox .port { border-left: 0; padding: 0 8px; }
}
@media (max-width: 520px) {
  .ipbox { padding: 12px; }
  .ipbox .addr { min-width: 0; flex-basis: 100%; }
  .ipbox .btn { flex: 1; }
}

/* ---------- секции */
.section { padding: 76px 0; }
.section.alt { background: var(--night-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); }

/* режимы */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mode { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; padding: 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); color: inherit; text-decoration: none; }
a.mode:hover { border-color: var(--pumpkin); }
.mode img { width: 64px; height: 64px; }
.mode h3 { margin: 4px 0 4px; }
.mode p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .modes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .modes { grid-template-columns: 1fr; } .mode { grid-template-columns: 52px 1fr; padding: 14px; } .mode img { width: 52px; height: 52px; } }

/* спонсор */
.sponsor { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding: 36px; border-radius: 22px;
  background: radial-gradient(500px 300px at 85% 20%, rgba(255, 211, 107, .22), transparent 70%), linear-gradient(135deg, #3B1E6E, #24124A);
  border: 1px solid #6B44B0; }
.sponsor .crown { width: 56px; height: 56px; margin-bottom: 10px; }
.sponsor h2 { margin: 0 0 10px; }
.sponsor .price { font-size: 40px; font-weight: 800; letter-spacing: -.02em; color: var(--candle); }
.sponsor .price small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.incl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.incl li { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 12px; background: rgba(23, 12, 43, .55); font-weight: 600; }
.incl img { width: 40px; height: 40px; image-rendering: pixelated; }
@media (max-width: 800px) { .sponsor { grid-template-columns: 1fr; padding: 24px; gap: 20px; } }

/* как зайти */
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plat { padding: 24px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.plat h3 { margin-bottom: 4px; }
.plat .sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 16px 46px; min-height: 34px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px;
  font-weight: 800; color: #2A1100; background: var(--pumpkin); }
.plat .after { color: var(--muted); font-size: 15px; margin: 4px 0 0; }
@media (max-width: 760px) { .platforms { grid-template-columns: 1fr; } .plat { padding: 18px; } }

/* кейс */
.case { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.case .crate { width: 300px; height: 300px; filter: drop-shadow(0 0 40px rgba(255, 138, 31, .35)); }
.hats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.slot { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.slot img { width: 50px; height: 50px; }
@media (max-width: 760px) { .case { grid-template-columns: 1fr; gap: 12px; } .case .crate { width: 200px; height: 200px; } }

/* донат на главной */
.shop-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.shop-strip a { display: grid; justify-items: start; gap: 6px; padding: 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.shop-strip a:hover { border-color: var(--pumpkin); }
.shop-strip img { width: 44px; height: 44px; image-rendering: pixelated; }
.shop-strip b { font-size: 18px; }
.shop-strip span { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .shop-strip { grid-template-columns: 1fr 1fr; } }

/* ---------- магазин */
.shop-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.shop-grid > * { min-width: 0; }
@media (max-width: 900px) { .shop-grid { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; font: 600 15px/1 var(--font); padding: 11px 16px; cursor: pointer; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: #2A1100; background: var(--pumpkin); border-color: var(--pumpkin); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.prod { position: relative; display: grid; justify-items: center; gap: 6px; padding: 20px 14px 18px; cursor: pointer; text-align: center; font: inherit; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.prod:hover { border-color: #7A55C2; }
.prod[aria-pressed="true"] { border-color: var(--pumpkin); box-shadow: 0 0 0 2px var(--pumpkin) inset; background: var(--panel-2); }
.prod .icon { width: 64px; height: 64px; display: grid; place-items: center; }
.prod .icon img { width: 56px; height: 56px; }
.prod .t { font-weight: 700; line-height: 1.3; }
.prod .per { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.prod .p { font-size: 22px; font-weight: 800; color: var(--candle); }
.prod .b { position: absolute; top: 10px; right: 10px; font-size: 12px; font-weight: 700; color: #2A1100; background: var(--candle); padding: 3px 8px; border-radius: 99px; }
.prod.wide { grid-column: 1 / -1; grid-template-columns: 72px 1fr auto; justify-items: start; text-align: left; align-items: center; gap: 4px 18px; padding: 22px; }
.prod.wide .icon { grid-row: span 2; }
.prod.wide .incl { grid-column: 2 / -1; grid-template-columns: repeat(2, 1fr); gap: 6px 14px; margin-top: 8px; }
.prod.wide .incl li { display: block; padding: 0 0 0 18px; background: none; position: relative; font-weight: 500; color: #E2D8F7; }
.prod.wide .incl li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--pumpkin); }
.prod.wide .p { grid-column: 3; grid-row: 1; font-size: 28px; }
@media (max-width: 600px) {
  .products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .prod { padding: 16px 10px 14px; }
  .prod .icon img { width: 44px; height: 44px; }
  .prod.wide { grid-template-columns: 56px 1fr; padding: 18px; }
  .prod.wide .p { grid-column: 2; grid-row: auto; font-size: 24px; }
  .prod.wide .incl { grid-column: 1 / -1; grid-template-columns: 1fr; }
}
.order-box { position: sticky; top: 84px; padding: 20px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.order-box h3 { margin: 0 0 14px; }
.order-box label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.order-box input { width: 100%; font: 600 18px/1 var(--font); color: var(--text); background: var(--night); border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; height: 50px; }
.order-box input:focus { outline: none; border-color: var(--pumpkin); }
.order-box .hint { font-size: 13px; color: var(--muted); margin: 6px 0 14px; }
.order-box .sum { display: block; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.order-box .sum b { color: var(--text); }
.order-box .sum strong { display: block; font-size: 26px; font-weight: 800; color: var(--candle); margin-top: 4px; }
.order-box .btn { width: 100%; }
.error { color: #FF8C8C; font-weight: 600; font-size: 14px; display: block; margin-top: 10px; }
.legal { color: var(--muted); font-size: 14px; margin-top: 28px; }
.empty { color: var(--muted); }

/* ---------- текстовые страницы */
.doc { max-width: 760px; }
.doc h2 { font-size: 22px; margin-top: 1.6em; }
.doc ol { padding-left: 22px; }
.doc li { margin: 0 0 10px; }

/* ---------- подвал */
.foot { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.foot a { color: var(--muted); }
.foot .brand { font-weight: 800; color: var(--text); font-size: 16px; margin-right: auto; }
.prod.wide .b { top: -11px; right: 18px; }
.prod.wide .t { font-size: 20px; }
