:root {
  --blue: #1736d6; --blue-d: #0f27a8; --blue-l: #3d5cf0; --ink: #0b1020; --paper: #ffffff; --muted: #5b6478;
  --yellow: #fbbc04; --green: #34a853; --red: #ea4335; --gblue: #4285f4; --orange: #ff8a00;
  --shadow: 6px 6px 0 rgba(6, 12, 60, .55); --radius: 22px;
  --pixel: "Press Start 2P", monospace; --round: "Nunito", system-ui, sans-serif; --body: "Manrope", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--body); color: var(--ink); background: var(--blue); min-height: 100vh; overflow-x: hidden; }
.bg { position: fixed; inset: 0; z-index: -2; background: url(/static/img/bg.webp) center/cover no-repeat, var(--blue); }
.bg::after { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1.3px, transparent 1.6px); background-size: 28px 28px; opacity: .55; }
[hidden] { display: none !important; }
a { color: inherit; }

/* монетки на фоне */
.coins { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.coins i { position: absolute; width: 34px; height: 22px; border-radius: 50%;
  background: radial-gradient(ellipse at 40% 35%, #ffe08a, #f5b623 55%, #c98a0c);
  box-shadow: 0 4px 0 #a06b06, 0 6px 10px rgba(0,0,0,.25); animation: bob 6s ease-in-out infinite; }
.coins i:nth-child(1) { left: 6%; top: 22%; } .coins i:nth-child(2) { left: 88%; top: 14%; animation-delay: -2s; }
.coins i:nth-child(3) { left: 93%; top: 58%; animation-delay: -4s; } .coins i:nth-child(4) { left: 3%; top: 72%; animation-delay: -1s; }
.coins i:nth-child(5) { left: 47%; top: 93%; animation-delay: -3s; } .coins i:nth-child(6) { left: 70%; top: 34%; animation-delay: -5s; transform: scale(.8); }
@keyframes bob { 0%, 100% { translate: 0 0; rotate: -8deg; } 50% { translate: 0 -12px; rotate: 8deg; } }

/* шапка */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1080px; margin: 0 auto; padding: 22px 16px 10px; }
.logo { text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.logo-box { display: inline-block; font-family: var(--pixel); color: #fff; font-size: clamp(13px, 2.6vw, 20px); letter-spacing: 1px;
  padding: 12px 16px 10px; background: var(--blue-l); border: 3px solid #cfe0ff; box-shadow: 7px 7px 0 #0a0f2b; }
.logo-box.small { font-size: 13px; }
.logo-sub { font-family: var(--pixel); font-size: 9px; color: #fff; background: #0a0f2b; padding: 6px 10px; align-self: flex-start; margin-left: 18px; transform: skew(-8deg); }

/* вкладки */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; max-width: 1080px; margin: 6px auto 0; padding: 0 16px; }
.tab { font-family: var(--round); font-weight: 900; font-size: 16px; border: 3px solid #fff; border-radius: 999px; padding: 9px 18px;
  background: rgba(255,255,255,.16); color: #fff; cursor: pointer; transition: transform .15s; }
.tab.on { background: #fff; color: var(--blue); box-shadow: 4px 4px 0 #0a0f2b; }
.tab.soon { opacity: .55; cursor: default; border-style: dashed; }
.tab:not(.soon):hover { transform: translateY(-2px); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 8px 16px 40px; display: grid; gap: 22px; }

/* герой */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 10px; color: #fff; padding-top: 8px; }
.badge-pill { display: inline-block; font-family: var(--pixel); font-size: 11px; background: #0a0f2b; color: #fff; padding: 8px 12px; box-shadow: 4px 4px 0 rgba(0,0,0,.3); }
.sticker-title { font-family: var(--round); font-weight: 900; font-size: clamp(58px, 11vw, 116px); line-height: .95; margin: 16px 0 10px; letter-spacing: -1px; }
.sticker-title span { display: inline-block; -webkit-text-stroke: 0; paint-order: stroke fill;
  text-shadow: 0 0 0 #fff, 4px 0 0 #fff, -4px 0 0 #fff, 0 4px 0 #fff, 0 -4px 0 #fff, 3px 3px 0 #fff, -3px 3px 0 #fff, 3px -3px 0 #fff, -3px -3px 0 #fff,
               7px 9px 0 rgba(10,15,43,.55); animation: pop .5s backwards; }
.sticker-title span.sp { width: .3em; text-shadow: none; }
.sticker-title span:nth-child(odd) { rotate: -3deg; } .sticker-title span:nth-child(even) { rotate: 2deg; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.hero-sub { font-size: 18px; font-weight: 700; max-width: 520px; margin: 0 0 16px; text-shadow: 0 2px 0 rgba(0,0,0,.2); }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-points li { background: #fff; color: var(--ink); font-weight: 800; padding: 8px 14px 8px 8px; border-radius: 999px; box-shadow: 3px 3px 0 #0a0f2b; display: flex; align-items: center; gap: 8px; }
.hero-points b { background: var(--yellow); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; }
.hero-img { width: 100%; max-width: 440px; max-height: 380px; object-fit: contain; justify-self: center; filter: drop-shadow(8px 12px 0 rgba(6,12,60,.45)); }
.float { animation: float 5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }

/* карточки-стикеры */
.card { background: var(--paper); border: 4px solid #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; position: relative; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-head.between { justify-content: space-between; flex-wrap: wrap; }
.card-head h2 { margin: 0; font-family: var(--round); font-weight: 900; font-size: 24px; }
.flex { display: flex; align-items: center; gap: 12px; }
.step { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-family: var(--pixel); font-size: 13px;
  background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); flex: none; }
.step-blue { background: var(--gblue); color: #fff; } .step-green { background: var(--green); color: #fff; }

.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row .input { flex: 1 1 260px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input { width: 100%; font: 700 16px var(--body); padding: 14px 16px; border: 3px solid #d7def0; border-radius: 14px; outline: none; background: #f6f8ff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--gblue); box-shadow: 0 0 0 4px rgba(66,133,244,.18); background: #fff; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .5px; }
.lbl { display: block; font-weight: 800; font-size: 14px; margin: 14px 0 6px; }
.lbl .input { margin-top: 6px; }
.hint { color: var(--muted); font-size: 13px; margin-top: -2px; }
.pw { position: relative; display: block; }
.eye { position: absolute; right: 10px; top: 50%; translate: 0 -40%; border: 0; background: none; font-size: 18px; cursor: pointer; }

.btn { font: 900 16px var(--round); border: 3px solid var(--ink); border-radius: 14px; padding: 12px 20px; cursor: pointer; background: #fff; color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink); transition: transform .1s, box-shadow .1s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-yellow { background: var(--yellow); }
.btn-wide { width: 100%; margin-top: 18px; font-size: 18px; padding: 15px; }
.btn-ghost { border-color: #fff; color: #fff; background: rgba(255,255,255,.12); box-shadow: 4px 4px 0 #0a0f2b; }
.btn-small { font-size: 14px; padding: 8px 14px; box-shadow: 3px 3px 0 var(--ink); }

.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button { font: 800 14px var(--body); border: 3px solid #d7def0; border-radius: 12px; background: #f6f8ff; padding: 10px 14px; cursor: pointer; }
.seg button.on { border-color: var(--ink); background: #e8efff; box-shadow: 3px 3px 0 var(--ink); }
.mbox { margin-top: 4px; }
.how { margin-top: 10px; background: #f3f6ff; border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.how summary { cursor: pointer; font-weight: 800; color: var(--blue); }
.how ol { margin: 8px 0 0; padding-left: 20px; line-height: 1.5; }
.note { margin-top: 16px; font-size: 13px; background: #fff8e1; border: 2px dashed #f5c542; border-radius: 12px; padding: 10px 12px; }

.result { margin-top: 16px; border-radius: 16px; padding: 14px 16px; font-weight: 700; }
.result.ok { background: #e9f8ee; border: 3px solid var(--green); }
.result.bad { background: #fdecea; border: 3px solid var(--red); }
.uses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.uses span { background: #fff; border: 2px solid #cfd6e8; border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.bar { height: 12px; border-radius: 99px; background: #e3e8f5; overflow: hidden; margin-top: 10px; border: 2px solid var(--ink); }
.bar > i { display: block; height: 100%; background: repeating-linear-gradient(45deg, var(--green), var(--green) 8px, #2c9349 8px, #2c9349 16px); }

/* статус */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 16px; }
.tl { text-align: center; font-weight: 800; font-size: 13px; color: var(--muted); }
.tl .dot { width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-size: 20px;
  background: #eef1f9; border: 3px solid #d7def0; }
.tl.done .dot { background: var(--green); border-color: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.tl.now .dot { background: var(--yellow); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); animation: pulse 1.2s infinite; }
.tl.fail .dot { background: var(--red); border-color: var(--ink); color: #fff; }
.tl.done, .tl.now, .tl.fail { color: var(--ink); }
@keyframes pulse { 50% { transform: scale(1.08); } }
.status-big { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: #f3f6ff; }
.status-big .emoji { font-size: 34px; }
.status-big h3 { margin: 0 0 4px; font-family: var(--round); font-weight: 900; font-size: 21px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; margin-top: 14px; font-size: 15px; }
.kv dt { color: var(--muted); font-weight: 700; } .kv dd { margin: 0; font-weight: 800; word-break: break-all; }
.copy { border: 2px solid #cfd6e8; background: #fff; border-radius: 8px; padding: 2px 8px; margin-left: 6px; cursor: pointer; font-size: 12px; font-weight: 800; }
.spin { display: inline-block; width: 14px; height: 14px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rot .8s linear infinite; vertical-align: -2px; }
@keyframes rot { to { transform: rotate(360deg); } }

/* статусы-чипы */
.st { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; padding: 5px 11px; border-radius: 999px; border: 2px solid var(--ink); white-space: nowrap; }
.st-pending { background: #fff3c4; } .st-running { background: #dbe6ff; } .st-success { background: #c9f0d5; }
.st-failed { background: #ffd2cc; } .st-cancelled { background: #e7e7ee; }

/* история */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { font: 800 13px var(--body); border: 2px solid #cfd6e8; background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.chip.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.list { display: grid; gap: 10px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 14px 16px; border: 3px solid #e1e6f3;
  border-radius: 16px; cursor: pointer; background: #fbfcff; transition: transform .12s, border-color .12s, box-shadow .12s; text-align: left; width: 100%; font: inherit; color: inherit; }
.item:hover { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.item .em { font-weight: 800; word-break: break-all; }
.item .sub { color: var(--muted); font-size: 13px; grid-column: 1 / -1; }
.empty { text-align: center; padding: 26px 10px; color: var(--muted); font-weight: 700; }
.empty img { width: 150px; display: block; margin: 0 auto 8px; opacity: .9; }
.muted { color: var(--muted); } .small { font-size: 13px; }

.faq details { border-top: 2px dashed #e1e6f3; padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 16px; }
.faq p { margin: 8px 0 0; color: #333a4d; line-height: 1.5; }

.foot { text-align: center; color: #fff; padding: 10px 16px 46px; }
.foot-img { width: 200px; max-width: 50vw; filter: drop-shadow(6px 8px 0 rgba(6,12,60,.45)); }
.foot-sub { font-family: var(--pixel); font-size: 10px; margin: 14px 0 6px; }
.foot .muted { color: #c9d4ff; }

/* модалка, тост */
.modal { position: fixed; inset: 0; background: rgba(6,10,40,.6); display: grid; place-items: center; padding: 16px; z-index: 20; backdrop-filter: blur(3px); }
.modal-card { background: #fff; border: 4px solid #fff; border-radius: var(--radius); box-shadow: 8px 8px 0 #0a0f2b; width: min(520px, 100%); padding: 22px; position: relative; max-height: 90vh; overflow: auto; animation: pop .25s; }
.modal-card h3 { margin: 0 0 10px; font-family: var(--round); font-weight: 900; font-size: 22px; }
.x { position: absolute; right: 12px; top: 12px; border: 2px solid var(--ink); background: #fff; border-radius: 10px; width: 34px; height: 34px; cursor: pointer; font-weight: 900; }
.toast { position: fixed; left: 50%; bottom: 22px; translate: -50% 0; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 800; z-index: 30; box-shadow: 4px 4px 0 rgba(0,0,0,.3); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-img { max-width: 230px; max-height: 230px; order: -1; margin-bottom: -6px; }
  .item { grid-template-columns: 1fr; }
  .item .st { justify-self: start; }
  .coins i:nth-child(n+4) { display: none; }
  .coins i { opacity: .7; }
  .card { padding: 18px 16px; }
  .row2 { grid-template-columns: 1fr; }
  .timeline .tl { font-size: 11px; }
  .logo-sub { margin-left: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
