/* =====================================================================
   v4: посадочная страница, боковые панели игры, промо «Легенды»
   ===================================================================== */

/* ---------- посадочная */
.land { position: relative; display: grid; gap: 64px; padding-bottom: 40px; }
.land-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.land-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; animation: filmIn 1.2s ease both; }
.land-veil { position: absolute; inset: 0; background:
  radial-gradient(ellipse at 70% 30%, transparent 0%, rgba(7,7,13,.55) 60%),
  linear-gradient(90deg, rgba(7,7,13,.92) 0%, rgba(7,7,13,.55) 45%, rgba(7,7,13,.35) 100%),
  linear-gradient(180deg, transparent 50%, rgba(7,7,13,.95) 100%); }
.land-top { display: flex; justify-content: space-between; align-items: center; padding-top: 4px; }
.land-hero { display: grid; gap: 28px; align-items: center; min-height: calc(100vh - 140px); }
.lh-left { display: grid; gap: 20px; align-content: center; }
.lh-kicker { justify-self: start; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); background: rgba(198,255,61,.1); border: 1px solid rgba(198,255,61,.35); padding: 7px 12px; border-radius: 99px; }
.land .hero-h { font-size: clamp(40px, 6.4vw, 84px); text-shadow: 0 10px 40px rgba(0,0,0,.5); }
.land .lead { max-width: 620px; font-size: 17px; }
.land-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.ls-cell { display: grid; padding: 12px 18px; border-radius: 16px; background: rgba(14,15,27,.6); border: 1px solid var(--line2); backdrop-filter: blur(12px); }
.ls-cell b { font-family: var(--display); font-size: 26px; background: linear-gradient(90deg, #fff, var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ls-cell small { color: var(--muted); font-size: 12px; font-weight: 700; }
.land .steps div { backdrop-filter: blur(12px); background: rgba(14,15,27,.6); }
.lh-right { position: relative; }
.form-fox { position: absolute; width: 110px; height: 110px; top: -78px; right: 26px; z-index: 2; animation: float2 3s ease-in-out infinite; }
.lh-right form { position: relative; z-index: 1; padding: 22px; background: rgba(14,15,27,.82); border: 1px solid var(--line2); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(198,255,61,.08); }
.form-h { font-family: var(--display); font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.form-h b { color: var(--gold); }

.land-sec { display: grid; gap: 18px; }
.land-h { font-family: var(--display); font-weight: 900; font-size: clamp(26px, 4vw, 44px); letter-spacing: -.01em; text-transform: none; color: var(--text); margin: 0; display: block; }
.land-sub { color: #c4c8dc; font-size: 16px; margin-top: -8px; }

/* лестница из четырёх арен */
.stairs { display: grid; gap: 14px; }
.stair { --c: var(--street); position: relative; overflow: hidden; isolation: isolate; border-radius: 24px; min-height: 230px; display: grid; align-content: end; padding: 20px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 20px 50px -24px var(--c); animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * .12s); transition: transform .3s var(--ease); }
.stair:hover { transform: translateY(-6px); }
.stair.tier-pro { --c: var(--pro); } .stair.tier-elite { --c: var(--elite); } .stair.tier-legend { --c: var(--legend); }
.stair video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.st-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,7,13,.1) 20%, rgba(7,7,13,.92) 100%); }
.st-em { position: absolute; top: 14px; right: 14px; width: 64px; height: 64px; filter: drop-shadow(0 6px 18px var(--c)); }
.st-em svg { width: 100%; height: 100%; }
.st-body { display: grid; gap: 2px; }
.st-step { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.st-body b { font-family: var(--display); font-size: 26px; font-weight: 900; text-transform: uppercase; }
.st-prize { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 900; font-size: 30px; color: var(--gold); text-shadow: 0 0 20px rgba(255,200,61,.5); }
.st-prize .coin { width: 24px; height: 24px; }
.st-body small { color: #d6d9ea; font-size: 13px; }

/* бегущая лента игр */
.gmq { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.mq-run { display: inline-flex; gap: 12px; animation: tick 50s linear infinite; padding: 6px 0; }
.gmq:hover .mq-run { animation-play-state: paused; }
.mq-tile { width: 230px; flex: none; display: grid; gap: 6px; padding: 16px; border-radius: 20px; background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--c) 24%, transparent), transparent 60%), rgba(14,15,27,.8); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.mq-tile b { font-size: 16px; }
.mq-tile small { color: #c4c8dc; font-size: 13px; line-height: 1.4; }

.land-feed { display: grid; gap: 8px; }
.lf-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(14,15,27,.7); border: 1px solid var(--line); }
.lf-row span { display: grid; }
.lf-row em { font-style: normal; font-family: var(--display); color: var(--lime); }
.lf-row small { color: var(--muted); font-size: 12px; }
.land-final { justify-items: center; text-align: center; padding: 30px 0 10px; }
.land-final .fox { width: 130px; height: 130px; animation: jump 1s var(--ease) both; }
.land-final .btn { max-width: 380px; }

@media (min-width: 1000px) {
  .land-hero { grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); gap: 56px; }
  .stairs { grid-template-columns: repeat(4, 1fr); align-items: end; }
  .stair { min-height: 260px; }
  .stair:nth-child(2) { min-height: 310px; }
  .stair:nth-child(3) { min-height: 360px; }
  .stair:nth-child(4) { min-height: 420px; }
  .land-feed { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- игра: фон и боковые панели */
.g-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.g-bg video { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; opacity: .16; filter: blur(14px) saturate(1.3); }
.g-bgicon { position: absolute; right: -6vmin; bottom: -8vmin; width: 52vmin; height: 52vmin; color: var(--c); opacity: .06; transform: rotate(-12deg); }
.g-bgicon svg { width: 100%; height: 100%; }
.g-grid { position: absolute; inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--c) 10%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--c) 10%, transparent) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 60%, #000 10%, transparent 70%); animation: gridMove 18s linear infinite; opacity: .5; }
@keyframes gridMove { to { background-position: 0 56px, 56px 0; } }
.g-shell { position: relative; z-index: 1; width: 100%; display: flex; justify-content: center; gap: 22px; }
.g-side { display: none; }
.g-mobile-vs { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); background: rgba(14,15,27,.6); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; justify-self: center; align-self: center; }
@media (min-width: 1100px) {
  .g-side { display: flex; flex-direction: column; gap: 12px; width: 290px; padding: 20px 0; position: sticky; top: 0; align-self: flex-start; animation: rise .5s var(--ease) both; }
  .g-right { animation-delay: .1s; }
  .g-mobile-vs { display: none; }
}
.gs-card { background: rgba(14,15,27,.72); border: 1px solid var(--line2); border-radius: 20px; padding: 16px; display: grid; gap: 10px; backdrop-filter: blur(14px); }
.gs-h { font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gs-bank { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 900; font-size: 34px; color: var(--gold); text-shadow: 0 0 22px rgba(255,200,61,.45); }
.gs-bank .coin { width: 28px; height: 28px; }
.gs-row { display: flex; justify-content: space-between; font-size: 13px; color: #c4c8dc; }
.gs-row b { font-family: var(--display); color: var(--text); }
.gs-op { display: flex; align-items: center; gap: 10px; }
.gs-op span { display: grid; min-width: 0; }
.gs-op b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-op small { color: var(--muted); font-size: 11.5px; }
.gs-card .rules li { font-size: 12.5px; padding: 8px 10px; }
.gs-fox { grid-template-columns: 70px 1fr; align-items: center; }
.gs-foxi { width: 70px; height: 70px; }
.gs-say { position: relative; font-size: 13.5px; font-weight: 700; line-height: 1.4; color: #f0e8ff; background: linear-gradient(120deg, rgba(255,122,43,.18), rgba(138,92,255,.16)); border: 1px solid rgba(255,140,60,.35); padding: 10px 12px; border-radius: 14px 14px 14px 4px; }
.gs-meter { height: 12px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.gs-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 40%, #fff)); box-shadow: 0 0 14px var(--c); transition: width .5s var(--ease); }
.gs-meter i.over { background: linear-gradient(90deg, var(--gold), var(--pink)); box-shadow: 0 0 18px var(--gold); animation: pulseGlow 1s infinite; }

/* ---------- лобби: промо «Легенды» и советы */
.promo { position: relative; overflow: hidden; isolation: isolate; width: 100%; min-height: 230px; border-radius: 24px; text-align: left; display: grid; align-content: end; padding: 18px; border: 1px solid rgba(255,95,210,.5); box-shadow: 0 20px 50px -20px rgba(255,61,187,.6); transition: transform .25s var(--ease); }
.promo:hover { transform: translateY(-4px); }
.promo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.pr-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,7,13,0) 25%, rgba(7,7,13,.9) 100%); }
.pr-body { display: grid; gap: 2px; }
.pr-k { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ff9be4; }
.pr-body b { font-family: var(--display); font-weight: 900; font-size: 30px; background: linear-gradient(90deg, #ff8be0, #b59bff, #7fe6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pr-prize { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 900; font-size: 26px; color: var(--gold); }
.pr-prize .coin { width: 22px; height: 22px; }
.pr-body small { color: #e3e6f5; font-size: 12.5px; }
.pr-go { margin-top: 8px; justify-self: start; font-family: var(--display); font-weight: 700; font-size: 12px; color: #fff; background: linear-gradient(90deg, #ff5fd2, #8a5cff); padding: 8px 14px; border-radius: 10px; }
.tipcard { display: flex; gap: 12px; align-items: center; padding: 14px; }
.tipcard .fox { width: 56px; height: 56px; flex: none; }
.tipcard b { font-size: 13px; color: #ffb347; }
.tipcard p { font-size: 13px; color: #d9dcec; line-height: 1.45; margin-top: 2px; }

/* правая колонка длиннее экрана — не липнет */
@media (min-width: 1100px) { .lobby .col-r { position: static; } }

/* игровая область на всю высоту: поле по центру, без пустоты снизу */
.g-shell { min-height: 100vh; }
.g-shell > .g-wrap { min-height: 100vh; }
.g-grid { opacity: .9; }
@media (min-width: 1100px) {
  .sc-grid { max-width: 540px; gap: 9px; }
  .sc-grid button { border-radius: 18px; }
  .grid9 { max-width: 440px; }
  .arena { max-width: 560px; }
  .od-grid { max-width: 500px; }
  .g-side { min-height: 100vh; justify-content: center; }
}
