/* 3deaths.net — values from web/brand/palette.md and web/content/design.md */

@font-face { font-family: "Dela Gothic One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/dela-gothic-one-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Dela Gothic One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/dela-gothic-one-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Dela Gothic One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/dela-gothic-one-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/rubik-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/rubik-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/rubik-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0B0A0C;
  --surface: #17151A;
  --border: #2A262D;
  --text: #F3EEEA;
  --text-muted: #A39DA3;
  --accent: #E0182D;
  --accent-hover: #C01228;
  --accent-text: #FF4D5E;
  --success: #34C27A;
  --warning: #F5A524;
  --badge-bg: #211E24;
  --offline: #5C5560;

  --font-display: "Dela Gothic One", "Arial Black", sans-serif;
  --font-body: Rubik, system-ui, sans-serif;
  --ease: 150ms ease-out;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; }
h2 { font-size: 40px; line-height: 1.1; margin-bottom: 28px; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

.container { max-width: calc(1200px + 64px); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: 8px; }
.cmd { color: var(--accent-text); font-weight: 600; }
.nowrap { white-space: nowrap; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 10, 12, .85);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header__row { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.header__logo img { height: 25px; width: auto; }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 15px; transition: color var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.header__actions { margin-left: auto; display: flex; gap: 8px; }
.btn-icon {
  display: inline-grid; place-items: center;
  min-width: 40px; height: 40px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 8px;
  background: transparent; color: var(--text);
  font: 700 13px var(--font-body); text-decoration: none; cursor: pointer;
  transition: border-color var(--ease);
}
.btn-icon:hover { border-color: var(--text-muted); }
.burger { display: none; padding: 0; }
.burger__lines, .burger__lines::before, .burger__lines::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px;
  transition: transform var(--ease), background var(--ease);
}
.burger__lines { position: relative; }
.burger__lines::before, .burger__lines::after { content: ""; position: absolute; left: 0; }
.burger__lines::before { top: -6px; }
.burger__lines::after { top: 6px; }
.menu-open .burger__lines { background: transparent; }
.menu-open .burger__lines::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger__lines::after { transform: translateY(-6px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px; border: 0; border-radius: 10px;
  background: var(--accent); color: #FFFFFF;
  font: 700 16px var(--font-body); text-decoration: none; cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { background: var(--accent-hover); transform: translateY(1px); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.is-copied { background: var(--success); color: var(--bg); }

/* Badges and dots */
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font: 600 13px/1.3 var(--font-body); white-space: nowrap;
}
.badge--soon { background: var(--warning); color: var(--bg); text-transform: uppercase; letter-spacing: .04em; }
.badge--version { background: var(--badge-bg); border: 1px solid var(--border); color: var(--text-muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--offline); flex: none; }
.dot--warning { background: var(--warning); }

/* Hero */
.hero { padding: 80px 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.hero__grid > * { min-width: 0; }
.hero__title { overflow-wrap: break-word; }
.hero__title { font-size: 76px; line-height: 1.05; }
.hero__subtitle { margin-top: 20px; font-size: 20px; color: var(--text-muted); max-width: 560px; }
.hero__art { position: relative; display: grid; place-items: center; }
.hero__art::before {
  content: ""; position: absolute; inset: -10%;
  background: radial-gradient(closest-side, rgba(224, 24, 45, .45), transparent);
}
.hero__art img { position: relative; width: 380px; transform: rotate(-8deg); }
.hero--store .hero__copy .badge { margin-bottom: 20px; }
.hero__title--store { font-size: 60px; }
.hero__art--store::before { display: none; }
.hero__art--store img { width: 220px; transform: rotate(8deg); }

.ip {
  margin-top: 32px; display: flex; align-items: center; gap: 12px;
  max-width: 500px; padding: 6px 6px 6px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
}
.ip__label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); white-space: nowrap; }
.ip__value {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text);
  font: 700 20px var(--font-body); padding: 0;
}
.ip__value:focus-visible { outline: none; }
.ip:focus-within { border-color: var(--text-muted); }
.ip__copy { flex: none; }

.online { margin-top: 16px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }
.online[hidden] { display: none; }
.online.is-up .dot { background: var(--success); }

/* Sections */
.section { padding: 88px 0; }
.section--tight { padding-top: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.modes { display: grid; gap: 12px; }
.mode {
  display: grid; grid-template-columns: 200px 1fr auto; gap: 24px; align-items: center;
  padding: 22px 24px; background: var(--surface);
  border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 14px;
}
.mode__title { font-size: 22px; }
.mode__text { font-size: 15px; color: var(--text-muted); }
.mode--soon { border-left-color: var(--warning); opacity: .72; }

.rules li { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.rules__num { font-family: var(--font-display); font-size: 16px; color: var(--accent-text); flex: none; width: 28px; }

.discord {
  margin-top: 68px; padding: 32px;
  background: linear-gradient(135deg, #2A0B10, var(--surface));
  border: 1px solid var(--border); border-radius: 20px;
}
.discord h2 { margin-bottom: 8px; }
.discord p { color: var(--text-muted); }
.discord .btn, .discord .soon-note { margin-top: 24px; }
.soon-note { display: flex; align-items: center; gap: 8px; color: var(--warning); font-weight: 600; }
.soon-note--plain { margin-top: 28px; }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 24px; background: var(--surface); opacity: .72;
  border: 1px solid var(--border); border-left: 4px solid var(--warning); border-radius: 14px;
}
.card h3 { font-size: 22px; }
.card p { font-size: 15px; color: var(--text-muted); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 32px 0; font-size: 13px; color: var(--text-muted); }
.footer__row { display: flex; justify-content: space-between; gap: 24px; }

/* Mobile */
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .container { padding: 0 20px; }
  h2 { font-size: 28px; margin-bottom: 20px; }

  .burger { display: inline-grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 19;
    flex-direction: column; gap: 4px; padding: 24px 20px;
    background: var(--bg); visibility: hidden; opacity: 0;
    transition: opacity var(--ease), visibility var(--ease);
  }
  .nav a { font-size: 22px; padding: 10px 0; color: var(--text); }
  .menu-open .nav { visibility: visible; opacity: 1; }
  .menu-open { overflow: hidden; }

  .hero { padding: 40px 0 56px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero__art { order: -1; }
  .hero__art img { width: 190px; }
  .hero__title { font-size: 40px; }
  .hero__title--store { font-size: 36px; }
  .hero__subtitle { font-size: 16px; margin-top: 12px; }
  .hero__art--store { display: none; }
  .ip { margin-top: 24px; }
  .ip__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ip__value { font-size: 17px; }
  .btn { height: 44px; padding: 0 16px; }

  .section { padding: 56px 0; }
  .section--tight { padding-top: 0; }
  .split { grid-template-columns: 1fr; gap: 56px; }
  .mode { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
  .mode .badge { order: -1; justify-self: start; }
  .discord { margin-top: 0; padding: 24px 20px; }
  .cards { grid-template-columns: 1fr; }
  .card { flex-direction: column-reverse; align-items: flex-start; padding: 20px; }
  .footer__row { flex-direction: column; gap: 12px; }
}

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