/* ============================================================
   STAVKI.TV — версия 2 (Tower Rush). Mobile-first.
   Шрифты: Lilita One (логотип) + Rubik 800 (заголовки, кириллица) + Nunito (текст).
   Анимируются только transform и opacity.
   ============================================================ */
:root {
    --sky1: #3fa9e0; --sky2: #8fd3f3; --sky3: #dff3fc;
    --navy: #0e3c7a; --ink: #1d2f40; --muted: #5d7384;
    --y: #ffc21a; --y2: #ffd84d; --o: #f7931e;
    --brown: #4a3a33; --blue: #2a9ae6; --blue-d: #1b6fb8; --green: #86d140; --tg: #229ed9;
    --f-logo: 'Lilita One', 'Rubik', system-ui, sans-serif;
    --f-d: 'Rubik', 'Lilita One', system-ui, sans-serif;
    --f-b: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; min-height: 100vh; position: relative; overflow-x: hidden;
    font-family: var(--f-b); font-weight: 700; font-size: 16px; line-height: 1.45; color: var(--ink);
    background: linear-gradient(180deg, var(--sky1) 0, var(--sky2) 640px, var(--sky3) 100%);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; padding: 0; background: none; cursor: pointer; }
h1, h2, h3, p, ol { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 10px; }
.wrap2 { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; position: relative; z-index: 1; }

/* облака */
.sky { position: absolute; inset: 0 0 auto 0; height: 1100px; overflow: hidden; pointer-events: none; z-index: 0; }
.cloud { position: absolute; left: -200px; width: 130px; height: 40px; background: #fff; border-radius: 40px; opacity: .92; animation: drift var(--t, 70s) linear infinite; animation-delay: var(--d, 0s); will-change: transform; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 54px; height: 54px; left: 18px; top: -26px; }
.cloud::after { width: 72px; height: 72px; left: 52px; top: -38px; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 420px)); } }
.cloud--s { animation-name: drift-s; }
@keyframes drift-s { from { transform: scale(.65) translateX(0); } to { transform: scale(.65) translateX(calc(155vw + 600px)); } }

.topbar { position: relative; z-index: 2; display: flex; justify-content: flex-end; padding: 12px 16px 0; max-width: 1040px; margin: 0 auto; }
.age2 { display: inline-grid; place-items: center; min-width: 38px; height: 26px; padding: 0 8px; border-radius: 8px; background: #fff; border: 3px solid var(--brown); font-family: var(--f-d); font-weight: 800; font-size: 14px; color: var(--brown); }
.age2--xl { min-width: 76px; height: 48px; font-size: 24px; border-radius: 14px; }

/* hero */
.hero2 { position: relative; text-align: center; padding: 8px 0 30px; }
.logo2 { display: flex; flex-direction: column; align-items: center; font-family: var(--f-logo); font-weight: 400; line-height: .88; transform: rotate(-3deg); margin: 4px 0 18px; animation: pop .8s var(--ease) both; }
.logo2 span { --o: #53423b; letter-spacing: .01em; text-shadow: 0 4px 0 var(--o), 4px 0 0 var(--o), -4px 0 0 var(--o), 0 -4px 0 var(--o), 3px 3px 0 var(--o), -3px 3px 0 var(--o), 3px -3px 0 var(--o), -3px -3px 0 var(--o), 0 10px 0 rgba(0, 0, 0, .22); }
.logo2 .a { font-size: clamp(60px, 19vw, 112px); color: var(--y); }
.logo2 .b { font-size: clamp(54px, 17vw, 100px); color: #36b0f5; margin-top: 6px; }
@keyframes pop { from { opacity: 0; transform: rotate(-3deg) scale(.8) translateY(20px); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.hero2 h1 { font-family: var(--f-d); font-weight: 800; font-size: clamp(24px, 6.4vw, 38px); line-height: 1.12; letter-spacing: -.01em; color: #fff; text-shadow: 0 3px 0 rgba(14, 60, 122, .55); max-width: 18ch; margin: 0 auto; animation: rise .8s .1s var(--ease) both; }
.hero2 .sub { color: var(--navy); font-weight: 800; max-width: 38ch; margin: 12px auto 0; animation: rise .8s .2s var(--ease) both; }

.ticket { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 420px; margin: 20px auto 0; padding: 10px 10px 10px 18px; border-radius: 22px; background: #fff; border: 3px dashed var(--o); box-shadow: 0 7px 0 rgba(14, 60, 122, .25); text-align: left; transition: transform .2s var(--ease); animation: rise .8s .3s var(--ease) both; }
.ticket:hover { transform: translateY(-2px); }
.ticket:active { transform: translateY(3px); }
.ticket__t { display: grid; min-width: 0; }
.ticket__t small { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.ticket__code { font-family: var(--f-d); font-weight: 800; font-size: clamp(20px, 6vw, 28px); letter-spacing: .03em; color: var(--navy); overflow: hidden; text-overflow: ellipsis; }
.ticket__btn { margin-left: auto; flex: none; padding: 12px 14px; border-radius: 14px; background: var(--blue); color: #fff; font-family: var(--f-d); font-weight: 800; font-size: 14px; box-shadow: 0 4px 0 var(--blue-d); }
.ticket.is-copied { border-color: var(--green); border-style: solid; }
.ticket.is-copied .ticket__btn { background: #5cb82a; box-shadow: 0 4px 0 #3f8a17; }
.bonus { margin-top: 12px; color: var(--navy); font-weight: 800; font-size: 14px; animation: rise .8s .35s var(--ease) both; }

/* кнопки в стиле игры */
.chunk { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 26px; border-radius: 16px; font-family: var(--f-d); font-weight: 800; font-size: 20px; border: 4px solid var(--brown); transition: transform .12s var(--ease), box-shadow .12s; }
.chunk--y { background: linear-gradient(var(--y2), var(--y)); color: #3a2a12; box-shadow: 0 6px 0 var(--brown); }
.chunk--b { background: linear-gradient(#49b0f2, var(--blue)); color: #fff; box-shadow: 0 6px 0 var(--brown); text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.chunk--tg { background: linear-gradient(#3fb4ec, var(--tg)); color: #fff; box-shadow: 0 6px 0 var(--brown); text-shadow: 0 2px 0 rgba(0, 0, 0, .22); font-size: 17px; min-height: 52px; }
.chunk:hover { transform: translateY(-2px); }
.chunk:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--brown); }
.chunk svg { flex: none; transition: transform .2s var(--ease); }
.chunk:hover svg { transform: translateX(4px); }
.play { width: 100%; max-width: 420px; margin-top: 22px; animation: rise .8s .45s var(--ease) both; }

/* шаги */
.howwrap { position: relative; padding: 8px 0 26px; }
.h2 { text-align: center; font-family: var(--f-d); font-weight: 800; font-size: clamp(28px, 7vw, 42px); color: #fff; text-shadow: 0 4px 0 rgba(14, 60, 122, .55); margin-bottom: 20px; }
.list { list-style: none; padding: 0; display: grid; gap: 14px; }
.st { position: relative; display: flex; gap: 14px; padding: 16px; background: #fff; border: 4px solid var(--brown); border-radius: 22px; box-shadow: 0 7px 0 rgba(14, 60, 122, .22); }
.st__n { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--y2); border: 3px solid var(--brown); font-family: var(--f-d); font-weight: 800; font-size: 20px; color: #3a2a22; }
.st__b { display: grid; gap: 6px; min-width: 0; }
.st h3 { font-family: var(--f-d); font-weight: 800; font-size: 19px; line-height: 1.2; color: var(--navy); }
.st p { color: var(--muted); }
.minicode { display: inline-flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; margin-top: 4px; padding: 6px 6px 6px 14px; border-radius: 12px; border: 2.5px dashed var(--o); background: #fff8e8; font-family: var(--f-d); font-weight: 800; font-size: 18px; color: var(--navy); letter-spacing: .03em; }
.minicode i { font-style: normal; padding: 6px 10px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 12px; letter-spacing: 0; }
.minicode.is-copied { border-style: solid; border-color: var(--green); }
.guidebtn { width: 100%; max-width: 420px; display: flex; margin: 22px auto 0; }
.note { margin-top: 14px; text-align: center; color: var(--navy); font-size: 13px; font-weight: 800; }

/* финальный блок: играть + Telegram */
.cta2 { padding: 4px 0 34px; text-align: center; }
.cta2 .play { margin: 0 auto; animation: none; }
.tgcard { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 14px; max-width: 420px; margin: 24px auto 0; padding: 16px; text-align: left; background: #fff; border: 4px solid var(--brown); border-radius: 22px; box-shadow: 0 7px 0 rgba(14, 60, 122, .22); }
.tgcard__ic { width: 46px; height: 46px; padding: 10px; border-radius: 14px; background: var(--tg); color: #fff; }
.tgcard__t { display: grid; min-width: 0; }
.tgcard__t b { font-family: var(--f-d); font-weight: 800; font-size: 17px; line-height: 1.2; color: var(--navy); }
.tgcard__t span { color: var(--muted); font-size: 14px; }
.tgcard .chunk { grid-column: 1 / -1; width: 100%; }

/* подвал */
.foot2 { margin-top: 6px; padding: 26px 0 32px; background: #27465e; color: #b9cddb; font-size: 13px; text-align: center; border-top: 6px solid #1b3345; }
.foot2__logo { font-family: var(--f-logo); font-weight: 400; font-size: 26px; color: var(--y); margin-bottom: 10px; }
.foot2__logo span { color: #36b0f5; }
.foot2 p { max-width: 560px; margin: 0 auto; font-weight: 700; }

/* окно со скриншотами */
.gmodal { position: fixed; inset: 0; z-index: 92; display: grid; place-items: center; padding: 12px; background: rgba(14, 40, 70, .78); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); opacity: 0; transition: opacity .25s var(--ease); }
.gmodal.is-show { opacity: 1; }
.gmodal__box { position: relative; width: min(520px, 100%); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 14px; padding: 22px 18px 20px; background: #fff; border: 4px solid var(--brown); border-radius: 26px; box-shadow: 0 10px 0 rgba(14, 60, 122, .3); transform: translateY(26px) scale(.97); transition: transform .4s var(--ease); }
.gmodal.is-show .gmodal__box { transform: none; }
.gmodal__x { position: sticky; top: 0; justify-self: end; margin: -8px -4px -34px 0; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: var(--y2); border: 3px solid var(--brown); font-family: var(--f-d); font-weight: 800; font-size: 22px; line-height: 1; color: #3a2a22; }
.gmodal__x:active { transform: scale(.92); }
.gmodal__box h3 { font-family: var(--f-d); font-weight: 800; font-size: 24px; line-height: 1.1; color: var(--navy); padding-right: 44px; }
.gsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.gstep { display: grid; gap: 8px; justify-items: start; padding-bottom: 18px; border-bottom: 2px dashed #d3e2ec; }
.gstep:last-child { border-bottom: 0; padding-bottom: 0; }
.gstep__head { display: flex; align-items: center; gap: 10px; }
.gstep__head b { font-family: var(--f-d); font-weight: 800; font-size: 18px; line-height: 1.15; color: var(--navy); }
.gstep__n { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--y2); border: 3px solid var(--brown); font-family: var(--f-d); font-weight: 800; color: #3a2a22; }
.gstep p { color: var(--muted); }
.gstep__img { width: 100%; height: auto; max-width: 360px; justify-self: center; border-radius: 16px; border: 3px solid var(--brown); box-shadow: 0 5px 0 rgba(14, 60, 122, .2); background: #2a1d3a; }
.gnote { font-size: 12.5px; color: var(--muted); text-align: center; }
.gmodal__box > .chunk { width: 100%; }

.toast2 { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 95; width: max-content; max-width: calc(100% - 32px); transform: translate(-50%, 24px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 14px; background: var(--brown); color: #fff; font-family: var(--f-d); font-weight: 800; font-size: 16px; text-align: center; transition: opacity .25s, transform .35s var(--ease); }
.toast2.is-show { opacity: 1; transform: translate(-50%, 0); }

.agegate2 { position: fixed; inset: 0; z-index: 99; display: grid; place-items: center; padding: 16px; background: rgba(14, 40, 70, .82); backdrop-filter: blur(5px); }
.agegate2__box { width: min(400px, 100%); display: grid; justify-items: center; gap: 12px; padding: 26px 20px; background: #fff; border: 4px solid var(--brown); border-radius: 26px; text-align: center; }
.agegate2__box h2 { font-family: var(--f-d); font-weight: 800; font-size: 26px; color: var(--navy); }
.agegate2__box p { color: var(--muted); }
.agegate2__no { color: var(--muted); font-weight: 800; text-decoration: underline; }

@media (min-width: 720px) {
    .hero2 { padding-bottom: 40px; }
    .st { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .cloud, .logo2, .hero2 h1, .hero2 .sub, .ticket, .bonus, .play { animation: none !important; }
    .gmodal, .gmodal__box { transition: none; }
}
