/* PumpFun Pill — ретро-ОС в зелёнке, тот же язык что PUMP1900:
   win95-фаски, title-bar панели, CRT-терминал, Tahoma/Courier/Georgia. */
:root {
  --pump: #55d292;
  --pump-br: #7fe6ac;
  --win-face: #dcece2;
  --win-gray: #d1e2d7;
  --win-dk: #8fb39f;
  --win-lt: #ffffff;
  --panel: #127a4c;
  --panel-2: #0e5e3b;
  --ink: #08331f;
  --paper: #f2fbf6;
  --phos: #5cff9f;
  --phos-dim: #22aa66;
  --red: #e0644f;
  --sans: Tahoma, "MS Sans Serif", "Segoe UI", Arial, sans-serif;
  --mono: "Courier New", Courier, monospace;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
/* утащенное за край окно не должно распахивать страницу вбок */
html, body { overflow-x: clip; }
body {
  /* дизеринг теперь полупрозрачный — сквозь него переливается градиент ниже */
  background:
    repeating-conic-gradient(rgba(8, 51, 31, .06) 0% 25%, rgba(255, 255, 255, .16) 0% 50%) 0 0 / 4px 4px,
    var(--win-face);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
}
/* пампфановский вайб: медленно вращающееся пастельное колесо под всей страницей */
body::before {
  content: ""; position: fixed; left: 50%; top: 50%; z-index: -1;
  width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax;
  pointer-events: none;
  background: conic-gradient(from 40deg,
    #b8ecd0, #f6eebc, #ffd9b8, #ffc2cd, #e0c6f5, #bcd9ff, #c0f0e2, #b8ecd0);
  filter: blur(70px) saturate(1.15);
  opacity: .85;
  animation: vibespin 48s linear infinite;
}
@keyframes vibespin { to { transform: rotate(1turn); } }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 18px; }
.row { display: flex; align-items: center; gap: 12px; }
.dim { opacity: .62; }
code { font-family: var(--mono); }

/* ── 95-хром ── */
.btn95 {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--ink);
  background: var(--win-face);
  border: 2px solid;
  border-color: var(--win-lt) var(--win-dk) var(--win-dk) var(--win-lt);
  box-shadow: 1px 1px 0 var(--ink);
  padding: 7px 14px; cursor: pointer; text-decoration: none; user-select: none;
}
.btn95:active, .btn95.pressed {
  border-color: var(--win-dk) var(--win-lt) var(--win-lt) var(--win-dk);
  box-shadow: none; transform: translate(1px, 1px);
}
.sunken {
  background: var(--paper);
  border: 2px solid;
  border-color: var(--win-dk) var(--win-lt) var(--win-lt) var(--win-dk);
}
.win {
  background: var(--win-face);
  border: 2px solid;
  border-color: var(--win-lt) var(--ink) var(--ink) var(--win-lt);
  box-shadow: 3px 3px 0 rgba(8, 51, 31, .55);
}
.tbar {
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(90deg, var(--panel-2), var(--panel) 55%, #1c9a63);
  color: #fff; padding: 5px 8px;
}
.tbar-title { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; }
.tbar.mini { padding: 3px 8px; }
.tbar-btns { display: flex; gap: 4px; }
.tbar-btns i {
  font-style: normal; font-size: 10px; line-height: 1;
  background: var(--win-face); color: var(--ink);
  border: 1px solid; border-color: var(--win-lt) var(--win-dk) var(--win-dk) var(--win-lt);
  padding: 2px 5px;
}
.win-body { padding: 18px; }
.statusbar {
  display: flex; justify-content: space-between; gap: 10px;
  border-top: 2px solid var(--win-lt); padding: 5px 10px;
  font-size: 11.5px; color: var(--ink); opacity: .8; font-family: var(--mono);
}
.statusbar span { border: 1px solid; border-color: var(--win-dk) var(--win-lt) var(--win-lt) var(--win-dk); padding: 2px 8px; }

/* ── menubar / ticker ── */
.menubar {
  position: sticky; top: 0; z-index: 30;
  background: var(--win-face);
  border-bottom: 2px solid; border-color: var(--win-lt) transparent var(--win-dk) transparent;
}
.menubar .row { justify-content: space-between; height: 52px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 15px; letter-spacing: .03em; }
.brand .ver { font-family: var(--mono); font-size: 11px; opacity: .55; }
.brand-pill { width: 30px; height: 30px; display: inline-block; border: 1px solid var(--ink); background: #fff; }
.brand-pill svg { width: 100%; height: 100%; display: block; }
.brand-pill.sm { width: 20px; height: 20px; }
.menu a { color: var(--ink); text-decoration: none; font-size: 13.5px; padding: 4px 8px; }
.menu a:hover { background: var(--panel); color: #fff; }
.btn-buy { background: var(--pump); }
.btn-buy:hover { background: var(--pump-br); }
.btn-buy.big { font-size: 16px; padding: 11px 22px; }



/* ── hero ── */
.desk { padding-bottom: 80px; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center; padding-top: 52px; padding-bottom: 26px; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; color: var(--panel); font-weight: 700; margin-bottom: 12px; }
h1 {
  font-family: var(--serif); font-size: clamp(36px, 5vw, 58px);
  line-height: 1.02; letter-spacing: .01em; font-weight: 700;
  text-shadow: 2px 2px 0 var(--pump-br);
}
h1 .hl { color: var(--panel); background: var(--pump-br); padding: 0 8px; text-shadow: none; }
.lead { margin-top: 16px; font-size: 15px; max-width: 52ch; }
.hero-cta { margin-top: 22px; flex-wrap: wrap; }
.ca-chip code { font-size: 12px; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-ic { opacity: .6; }

.win-army .win-body { padding: 10px; }
.hero-shot { background: #1d1d1d; }
.hero-img { display: block; width: 100%; height: auto; }

/* ── sections ── */
section { padding-top: 26px; }

/* generator */
.gen-grid { display: grid; grid-template-columns: 340px 1fr; gap: 26px; align-items: start; }
.pill-frame { aspect-ratio: 1; overflow: hidden; background: #1d1d1d; display: grid; place-items: center; }
.pill-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* пустой стенд */
.pf-idle { display: grid; place-items: center; gap: 6px; font-family: var(--mono); text-align: center; }
.pf-idle .pf-q { font-size: 64px; font-weight: 700; color: #33443b; }
.pf-idle .pf-t { font-size: 11px; letter-spacing: .22em; color: #5c6f64; }

/* варка */
.cooking { display: grid; place-items: center; gap: 12px; width: 72%; text-align: center; font-family: var(--mono); color: var(--phos); }
.cook-ic { font-size: 42px; animation: bubble 1.1s ease-in-out infinite alternate; }
.cook-bar { width: 100%; height: 14px; border: 2px solid var(--phos-dim); display: block; overflow: hidden; }
.cook-bar i { display: block; height: 100%; width: 40%; background: repeating-linear-gradient(90deg, var(--phos) 0 8px, transparent 8px 12px); animation: chase 1.4s linear infinite; }
.cook-msg { font-size: 12px; letter-spacing: .08em; color: var(--phos-dim); }
@keyframes bubble { from { transform: translateY(0); } to { transform: translateY(-6px); } }
@keyframes chase { from { transform: translateX(-110%); } to { transform: translateX(280%); } }

/* авария */
.pf-err { display: grid; gap: 8px; place-items: center; text-align: center; font-family: var(--mono); color: #ff8f8f; padding: 18px; }
.pf-err b { letter-spacing: .12em; }
.pf-err span { font-size: 12px; color: #d8a0a0; }
.pill-meta { display: flex; justify-content: center; align-items: center; margin-top: 10px; gap: 10px; }
.traits { font-size: 11.5px; opacity: .65; text-align: center; }
.gen-controls { display: flex; flex-direction: column; gap: 14px; }
.field span { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; margin-bottom: 6px; font-weight: 700; }
.sunken-input {
  width: 100%; font-family: var(--mono); font-size: 17px; padding: 11px 13px;
  background: var(--paper); color: var(--ink); outline: none;
  border: 2px solid; border-color: var(--win-dk) var(--win-lt) var(--win-lt) var(--win-dk);
}
.sunken-input:focus { background: #fff; }
.gap { gap: 10px; }
.btn-go { flex: 1; justify-content: center; font-size: 15px; padding: 11px; background: var(--pump); }
.btn-go:hover { background: var(--pump-br); }
.btn-dice { font-size: 18px; padding: 9px 13px; }
.btn-dl { justify-content: center; font-size: 13.5px; padding: 11px; background: var(--ink); color: var(--phos); border-color: #2e5c44 var(--ink) var(--ink) #2e5c44; }
.btn-dl:disabled { opacity: .4; cursor: default; }
.hint { font-size: 12px; opacity: .8; }

/* свежие пиллы из лаборатории */
.recent { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--win-dk); background: var(--win-gray); }
.recent-k { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; white-space: nowrap; }
.recent-grid { display: flex; gap: 8px; overflow-x: auto; }
.recent-grid img { width: 52px; height: 52px; border: 1px solid var(--ink); background: #1d1d1d; flex: 0 0 auto; }

/* fees terminal */
.term { background: var(--ink); color: var(--phos); font-family: var(--mono); }
.term-line { font-size: 13.5px; margin-bottom: 12px; white-space: pre-wrap; }
.term .dim { color: var(--phos-dim); opacity: 1; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 14px; }
.timers { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.tmr {
  flex: 1; min-width: 150px; display: flex; justify-content: space-between;
  align-items: baseline; gap: 8px; border: 1px dashed var(--phos-dim); padding: 8px 12px;
}
.tmr i { font-style: normal; font-size: 10px; letter-spacing: .12em; color: var(--phos-dim); }
.tmr b { font-size: 15px; font-variant-numeric: tabular-nums; }
.stat { border: 1px solid var(--phos-dim); padding: 10px 12px; }
.stat .k { display: block; font-size: 10px; letter-spacing: .12em; color: var(--phos-dim); }
.stat b { font-size: 18px; }
.feed { list-style: none; padding: 0; }
.feed li { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; border-bottom: 1px dotted var(--phos-dim); }
.feed li:last-child { border-bottom: 0; }

/* how */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step .win-body b { display: block; font-family: var(--serif); font-size: 19px; margin-bottom: 4px; }
.step .win-body span { font-size: 13px; opacity: .85; }

/* taskbar */
.taskbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  background: var(--win-face);
  border-top: 2px solid var(--win-lt);
  box-shadow: 0 -1px 0 var(--win-dk);
  padding: 5px 0;
}
.taskbar .row { justify-content: flex-start; }
.start { font-weight: 700; }
.task { font-size: 12px; }
.tray { margin-left: auto; display: flex; align-items: center; gap: 10px; padding: 5px 10px; font-size: 11.5px; }
.clock { font-size: 12px; font-weight: 700; }

/* mobile */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 30px; }
  .gen-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .menu { display: none; }
  .tray .dim { display: none; }
  h1 { font-size: clamp(32px, 9vw, 44px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ── фишки ОС ── */
/* boot screen */
#boot {
  position: fixed; inset: 0; z-index: 100;
  background: #041b10; color: var(--phos);
  font-family: var(--mono); font-size: 14px;
  display: flex; align-items: flex-start; cursor: pointer;
}
#boot .boot-inner { padding: 34px 38px; }
#boot p { margin-bottom: 8px; opacity: 0; animation: bline .01s forwards; }
#boot .b1 { animation-delay: .05s; } #boot .b2 { animation-delay: .35s; }
#boot .b3 { animation-delay: .6s; }  #boot .b4 { animation-delay: .85s; }
#boot .b5 { animation-delay: 1.15s; animation-name: bline, blink; animation-duration: .01s, 1s; animation-iteration-count: 1, infinite; }
@keyframes bline { to { opacity: 1; } }
@keyframes blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .25; } }
#boot.off { display: none; }

/* draggable windows */
.win { position: relative; z-index: 1; }
.tbar { cursor: grab; touch-action: none; }
.tbar:active { cursor: grabbing; }
.win.dragging { z-index: 40; box-shadow: 6px 6px 0 rgba(8,51,31,.55); }

/* ── армия пиллов, плывущая по столу ── */
#pillstream { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fp {
  position: absolute; top: var(--top); left: 0;
  display: grid; justify-items: center; gap: 3px;
  rotate: var(--r); opacity: .55; will-change: transform;
  animation: cross var(--dur) linear infinite;
  animation-delay: var(--delay, 0s);
}
.fp.rev { animation-direction: reverse; }
@keyframes cross { from { transform: translateX(-150px); } to { transform: translateX(calc(100vw + 150px)); } }
.fp img { width: 58px; height: 58px; border: 1px solid var(--ink); background: #1d1d1d; box-shadow: 2px 2px 0 rgba(8, 51, 31, .25); }
.fp span {
  font-family: var(--mono); font-size: 9.5px; color: var(--ink);
  background: var(--win-face); border: 1px solid var(--win-dk); padding: 1px 6px;
  max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* текст хиро — над лентами */
.hero-copy { position: relative; z-index: 1; }
@media (max-width: 860px) {
  .fp img { width: 46px; height: 46px; }
  .fp span { font-size: 8.5px; max-width: 64px; }
  .fp { opacity: .38; }
}

