/* ===== токены (цвета сняты с machine.png и скриншота оригинала) ===== */
:root {
  --ink:    #1c1a18;
  --bg:     #181716;
  --red:    #d93a1e;
  --red-hi: #e8452a;
  --cream:  #f7f1e4;
  --yellow: #e8b53a;
  --teal:   #2f6f5e;
  --mute:   #8d887d;
  --line:   rgba(247, 241, 228, .13);

  --f-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --f-jp:      'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --f-mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 58% 42% at 50% 22%, rgba(217, 58, 30, .24), transparent 70%),
    radial-gradient(circle, rgba(247, 241, 228, .055) 1px, transparent 1.4px) 0 0 / 26px 26px,
    var(--bg);
  color: var(--cream);
  font-family: var(--f-mono);
  -webkit-font-smoothing: antialiased;
}
/* виньетка + тонкие строки развёртки поверх всего */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 50;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .09) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(0, 0, 0, .35) 100%);
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== шапка ===== */
.bar {
  position: relative; z-index: 5;
  height: 36px;
  padding: 0 26px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .02em;
  line-height: 1;
  transform: scaleX(1.55);
  transform-origin: left center;
  color: var(--cream);
  text-shadow: 1px 0 0 var(--cream);
}
.follow {
  height: 36px;
  display: inline-flex; align-items: center;
  padding: 0 18px;
  border: 1.5px solid var(--yellow);
  border-top-width: 0;
  border-radius: 0 0 18px 18px / 0 0 18px 18px;
  border-radius: 999px;
  background: rgba(232, 181, 58, .06);
  color: var(--yellow);
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  transition: background .15s;
}
.follow:hover { background: rgba(232, 181, 58, .16); }

/* ===== сцена ===== */
.stage {
  flex: 1;
  position: relative; z-index: 5;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 19px 16px 12px;
}

.machine {
  display: block;
  height: clamp(150px, 28.5vh, 330px);
  width: auto;
  border-radius: 14px;
  filter: drop-shadow(0 0 38px rgba(217, 58, 30, .38));
  cursor: pointer;
  transform-origin: 50% 100%;
}
.machine.wobble { animation: wobble .6s ease-in-out; }

.jp {
  margin-top: 20px;
  font-family: var(--f-jp);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .55em;
  padding-left: .55em;
  color: var(--yellow);
  line-height: 1;
}

/* плитки $GACHA */
.word { margin: 20px 0 0; }
.letters { display: flex; gap: clamp(5px, .65vw, 12px); justify-content: center; }
.letters i {
  position: relative;
  width: clamp(44px, 6.2vw, 120px);
  aspect-ratio: 118 / 158;
  display: grid; place-items: center;
  padding-bottom: .05em;
  font-style: normal;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 5.1vw, 6.2rem);
  line-height: 1;
  color: var(--cream);
  background: linear-gradient(180deg, #2a2826 0%, #1b1a18 100%);
  border: 1.5px solid #3c3935;
  border-radius: clamp(8px, .7vw, 14px);
  box-shadow:
    0 clamp(4px, .38vw, 8px) 0 #0b0a09,
    0 12px 22px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 255, 255, .09);
  animation: drop .75s cubic-bezier(.3, 1.45, .5, 1) both;
  animation-delay: calc(var(--i) * 90ms);
}
.letters i:first-child {
  color: var(--red);
  text-shadow: 0 0 22px rgba(217, 58, 30, .7);
}

/* наклонённый ярлык COMING SOON на последней плитке */
.soon {
  position: absolute;
  left: 50%; top: -28px;
  transform: translateX(-50%) rotate(5deg);
  padding: 9px 16px;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 13px; font-weight: 700; letter-spacing: .2em;
  color: var(--yellow);
  background: #151412;
  border: 2px solid var(--yellow);
  border-radius: 7px;
  box-shadow: 0 0 22px rgba(232, 181, 58, .28);
}

.tagline {
  margin: 23px 0 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.6vw + .6rem, 2.3rem);
  letter-spacing: -.025em;
  line-height: 1.1;
  color: var(--cream);
}
.tagline em { font-style: normal; color: var(--red-hi); }

.lede {
  max-width: 600px;
  margin: 20px 0 0;
  font-size: 14.5px;
  line-height: 26px;
  letter-spacing: .03em;
  color: var(--mute);
}
.lede strong { color: var(--cream); font-weight: 700; }

/* кнопка */
.cta {
  margin-top: 24px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 0 32px;
  height: 60px;
  font-size: 17px; font-weight: 700; letter-spacing: .05em;
  color: var(--cream);
  background: linear-gradient(180deg, #e44a2c, #cc3419);
  border-radius: 11px;
  border-bottom: 5px solid #8a200f;
  box-shadow: 0 0 34px rgba(217, 58, 30, .5), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .1s, box-shadow .1s, border-bottom-width .1s;
}
.cta:hover  { transform: translateY(1px); }
.cta:active { transform: translateY(4px); border-bottom-width: 1px; }
.cta__coin {
  width: 19px; height: 19px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff1b0, #e8b53a 55%, #a8761a);
  box-shadow: 0 0 8px rgba(232, 181, 58, .8), inset 0 -2px 3px rgba(0, 0, 0, .3);
}

.coin__label {
  margin: 20px 0 0;
  font-size: 11.5px; font-weight: 700; letter-spacing: .32em; padding-left: .32em;
  color: var(--yellow);
}
.coin__sub {
  margin: 8px 0 0;
  font-size: 11.5px; letter-spacing: .06em;
  color: var(--mute);
}
.coin__sub strong { color: var(--cream); font-weight: 700; }

/* ===== бегущая строка снизу ===== */
.ticker {
  position: relative; z-index: 5;
  overflow: hidden; white-space: nowrap;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, .22);
  font-size: 11.5px; font-weight: 500; letter-spacing: .24em;
  color: var(--mute);
}
.ticker__track { display: inline-flex; animation: marquee 45s linear infinite; }
.ticker__track > span { flex: none; }
.ticker b  { color: var(--yellow); font-weight: 700; }
.ticker em { color: var(--red-hi); font-style: normal; font-weight: 600; }

.foot {
  position: relative; z-index: 5;
  padding: 13px 16px 13px;
  text-align: center;
  font-size: 11.5px; letter-spacing: .08em;
  color: var(--mute);
}
.foot b { color: var(--cream); font-weight: 700; }

/* ===== боковой вертикальный текст ===== */
.side {
  position: fixed; top: 280px; z-index: 4;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .28em;
  color: rgba(247, 241, 228, .26);
  pointer-events: none;
}
.side--l { left: 22px; }
.side--r { right: 22px; }

/* ===== капсулы ===== */
.capsules { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.capsule {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--s); aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .55), transparent 38%),
    linear-gradient(180deg, #e9e4d8 0 47%, #17110f 47% 52%, #cf3219 52% 100%);
  box-shadow:
    inset -5px -7px 12px rgba(0, 0, 0, .5),
    inset 3px 3px 6px rgba(255, 255, 255, .25),
    0 10px 24px rgba(0, 0, 0, .55);
  filter: blur(var(--b));
  animation: float var(--d) ease-in-out infinite alternate;
}

/* ===== анимации ===== */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes drop {
  from { transform: translateY(-110vh) rotate(-10deg); }
  to   { transform: none; }
}
@keyframes wobble {
  20% { transform: rotate(-3deg); }
  40% { transform: rotate(2.5deg); }
  60% { transform: rotate(-1.5deg); }
  80% { transform: rotate(1deg); }
}
@keyframes float {
  from { transform: translate(0, 0) rotate(var(--r)); }
  to   { transform: translate(10px, -16px) rotate(calc(var(--r) * -1)); }
}

/* ===== адаптив ===== */
@media (max-width: 900px) {
  .side { display: none; }
  .soon { top: -24px; padding: 7px 10px; font-size: 10px; }
  .machine { height: clamp(130px, 24vh, 240px); }
  .lede { font-size: 13.5px; line-height: 24px; }
}
@media (max-width: 480px) {
  .logo { transform: scaleX(1.2); font-size: 18px; }
  .follow { padding: 0 12px; font-size: 10px; }
  .cta { padding: 0 22px; font-size: 15px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track, .capsule, .letters i, .machine.wobble { animation: none; }
}
