/* Главная страница: кинематографичный Асгард. Поверх общего style.css. */
/* Главная живёт в холодной палитре Асгарда; сама игра остаётся в бежевых тонах */
body.landing { --bg: #f3f5fc; --paper: #f8f9ff; --paper2: #e9edfa; --line: #dce1f2; --line2: #c3cbe6; --ink: #232948; --ink2: #4a5380; --muted: #8890b4;
    --gold: #c9973c; --gold2: #e6bf6a; --gold3: #f6e3b4; --bronze: #8a6120; --link: #3d56a8;
    --shadow: 0 1px 2px rgba(52,62,120,.08), 0 10px 28px rgba(52,62,120,.1); --shadow-lift: 0 2px 4px rgba(52,62,120,.1), 0 16px 36px rgba(52,62,120,.18);
    background: #eef1fb; padding: 0; }
.landing .kicker { margin: 0 0 6px; text-transform: uppercase; letter-spacing: 4px; font-size: 11px; font-weight: 700; color: var(--gold); }

/* Кнопки */
.lbtn { display: inline-block; padding: 8px 20px; border-radius: 999px; font-weight: 700; font-size: 13px; border: 1px solid #b98838; cursor: pointer; text-align: center; font-family: inherit;
    background: linear-gradient(180deg, #fbe7a8, #e0b25a 55%, #c8953c); color: #3a2a0c; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 3px 0 #9a6f24, 0 10px 22px rgba(60,50,20,.3); transition: transform .15s, filter .15s; }
.lbtn:hover { transform: translateY(-2px); filter: brightness(1.06); color: #3a2a0c; }
.lbtn:active { transform: translateY(1px); }
.lbtn.big { padding: 12px 28px; font-size: 15px; }
.lbtn.ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.6); box-shadow: none; backdrop-filter: blur(6px); }
.lbtn.ghost:hover { background: rgba(255,255,255,.28); color: #fff; }

/* Верхнее меню */
.lnav { position: fixed; z-index: 100; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 28px;
    background: linear-gradient(180deg, rgba(22,28,80,.72), rgba(22,28,80,.38)); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.18); transition: background .25s, box-shadow .25s; }
.lnav.solid { background: rgba(26,32,92,.92); box-shadow: 0 6px 24px rgba(10,14,50,.35); }
.llogo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: 2px; text-transform: uppercase; color: #fff3c9; white-space: nowrap; text-shadow: 0 2px 8px rgba(10,14,60,.6); }
.llogo .emb { width: 34px; height: 34px; display: inline-block; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.llogo .emb svg { width: 100%; height: 100%; display: block; }
.lmenu { display: flex; align-items: center; gap: 4px; }
.lmenu a { padding: 6px 12px; border-radius: 999px; color: #eef1ff; font-size: 13px; font-weight: 600; transition: background .15s, color .15s; white-space: nowrap; }
.lmenu a:hover, .lmenu a.on { background: rgba(255,255,255,.18); color: #fff3c9; }
.lmenu a.lbtn { margin-left: 6px; color: #3a2a0c; }
.lmenu a.lbtn.ghost { color: #fff; }

/* Заставка */
.lhero { position: relative; min-height: 700px; height: 100vh; max-height: 920px; overflow: hidden; display: flex; align-items: center; color: #fff; }
.lhero-art { position: absolute; inset: 0; }
.lhero-art svg { width: 100%; height: 100%; display: block; }
.lhero-art .px { transition: transform .3s ease-out; }
.lhero-fade { position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(20,26,86,.8) 0%, rgba(20,26,86,.5) 34%, rgba(20,26,86,.1) 60%, rgba(20,26,86,0) 72%), linear-gradient(0deg, #eef1fb 0%, rgba(238,241,251,0) 16%), linear-gradient(180deg, rgba(14,18,64,.45), rgba(14,18,64,0) 22%); }
.lhero-in { position: relative; z-index: 3; width: 100%; max-width: 1240px; margin: 0 auto; padding: 80px 28px 60px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.lhero-text { max-width: 600px; }
.lhero-text .kicker { color: #ffe9ae; text-shadow: 0 2px 8px rgba(10,14,60,.7); }
.ltitle { margin: 0 0 14px; font-family: var(--serif); font-size: clamp(44px, 7.4vw, 96px); line-height: .95; letter-spacing: 2px; text-transform: uppercase; color: #fff3cf; padding: 0;
    text-shadow: 0 2px 0 #8a6330, 0 4px 0 #6a4a20, 0 10px 30px rgba(10,14,60,.8), 0 0 60px rgba(255,214,120,.35); }
.ltitle::after { display: none; }
.ltitle span { display: block; color: #ffd36a; font-size: .8em; }
.lsub { font-size: 17px; line-height: 1.55; color: #f3f5ff; max-width: 520px; margin: 0 0 22px; text-shadow: 0 2px 10px rgba(10,14,60,.8); }
.lcta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.lonline { font-size: 13px; color: #e3e8ff; margin: 0; text-shadow: 0 1px 6px rgba(10,14,60,.8); }
.lonline i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #67e08a; margin-right: 6px; box-shadow: 0 0 0 0 rgba(103,224,138,.6); animation: lpulse 2s infinite; }
@keyframes lpulse { 70% { box-shadow: 0 0 0 9px rgba(103,224,138,0); } 100% { box-shadow: 0 0 0 0 rgba(103,224,138,0); } }

/* Карточка входа и регистрации */
.lcard { width: 340px; flex: none; padding: 18px 20px 20px; border-radius: 18px; color: var(--ink); background: rgba(255,255,255,.9); backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.8); box-shadow: 0 24px 60px rgba(14,20,80,.45), inset 0 1px 0 #fff; transform: perspective(900px) rotateY(-3deg); transition: transform .3s; scroll-margin-top: 90px; }
.lcard:hover { transform: perspective(900px) rotateY(0); }
.ltabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--paper2); border-radius: 999px; margin-bottom: 12px; }
.ltabs button { border: 0; padding: 7px 8px; border-radius: 999px; background: transparent; font: inherit; font-weight: 700; color: var(--ink2); cursor: pointer; }
.ltabs button.on { background: #fff; color: var(--bronze); box-shadow: 0 2px 8px rgba(52,62,120,.18); }
.lcard .form { display: grid; gap: 10px; }
.lcard .form[hidden] { display: none; }
.lcard .lbtn { width: 100%; }
.lcard p { margin: 0; }
.lcard .flash { margin: 0 0 10px; }

/* Золотая пыль над сценой */
.dust { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.dust i { position: absolute; bottom: -10px; width: 5px; height: 5px; border-radius: 50%; background: #ffe9ae; box-shadow: 0 0 10px 3px rgba(255,220,130,.8); opacity: 0; animation: dustUp 9s linear infinite; }
.dust i:nth-child(1) { left: 6%; animation-delay: 0s; } .dust i:nth-child(2) { left: 14%; animation-delay: 2s; width: 3px; height: 3px; }
.dust i:nth-child(3) { left: 23%; animation-delay: 5s; } .dust i:nth-child(4) { left: 33%; animation-delay: 1s; width: 4px; height: 4px; }
.dust i:nth-child(5) { left: 41%; animation-delay: 6s; } .dust i:nth-child(6) { left: 52%; animation-delay: 3s; width: 3px; height: 3px; }
.dust i:nth-child(7) { left: 61%; animation-delay: 7s; } .dust i:nth-child(8) { left: 70%; animation-delay: 4s; }
.dust i:nth-child(9) { left: 79%; animation-delay: 8s; width: 4px; height: 4px; } .dust i:nth-child(10) { left: 86%; animation-delay: 2.5s; }
.dust i:nth-child(11) { left: 92%; animation-delay: 5.5s; width: 3px; height: 3px; } .dust i:nth-child(12) { left: 47%; animation-delay: 9s; }
@keyframes dustUp { 0% { transform: translateY(0) translateX(0); opacity: 0; } 12% { opacity: .9; } 100% { transform: translateY(-620px) translateX(40px); opacity: 0; } }

/* Полоса цифр */
.lstats { position: relative; z-index: 4; max-width: 1180px; margin: -46px auto 0; padding: 0 18px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.lstat { background: #fff; border: 1px solid var(--line2); border-radius: 14px; padding: 14px 10px; text-align: center; box-shadow: var(--shadow-lift); transform: translateY(0); transition: transform .2s; }
.lstat:hover { transform: translateY(-4px); }
.lstat b { display: block; font-family: var(--serif); font-size: 30px; line-height: 1.1; background: linear-gradient(180deg, #e6b546, #9a6a1f); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lstat span { font-size: 12px; color: var(--ink2); }

/* Секции */
.lsec { padding: 70px 18px 20px; }
.lsec.alt { background: linear-gradient(180deg, rgba(255,255,255,.0), rgba(255,255,255,.65) 12%, rgba(255,255,255,.65) 88%, rgba(255,255,255,0)); margin: 30px 0 0; padding-bottom: 60px; }
.lhead { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.lhead h2 { font-size: clamp(24px, 3.4vw, 36px); margin: 0 0 10px; color: var(--ink); }
.lhead p:last-child { color: var(--ink2); margin: 0; font-size: 15px; }

.wgrid, .mgrid, .bgrid, .fgrid, .lvgrid { max-width: 1180px; margin: 0 auto; display: grid; gap: 16px; }
.wgrid { grid-template-columns: repeat(3, 1fr); }
.wcard { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line2); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; transform-style: preserve-3d; }
.wcard:hover { box-shadow: var(--shadow-lift); }
.wcard .scene { height: 170px; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.wcard .scene .cap { font-size: 20px; }
.wtext { padding: 12px 16px 16px; font-size: 13px; color: var(--ink2); }
.wtext p { margin: 0 0 6px; }

.mgrid { grid-template-columns: repeat(4, 1fr); }
.mcard, .bcard { background: #fff; border: 1px solid var(--line2); border-radius: 16px; padding: 20px 18px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; position: relative; overflow: hidden; }
.mcard:hover, .bcard:hover { box-shadow: var(--shadow-lift); }
.mcard::before, .bcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold3), #7c8bff); }
.mi, .bi { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 10px;
    background: radial-gradient(circle at 50% 30%, #fff, #dfe5fb); border: 1px solid var(--line2); box-shadow: 0 6px 14px rgba(52,62,120,.15); }
.mcard h3, .bcard h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 18px; color: var(--ink); }
.mcard p, .bcard p { margin: 0; font-size: 13px; color: var(--ink2); line-height: 1.5; }
.zones-demo { max-width: 1180px; margin: 20px auto 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.zones-demo span { padding: 6px 16px; border-radius: 999px; background: linear-gradient(180deg, #fff, #e7ebfa); border: 1px solid var(--line2); font-weight: 700; font-size: 13px; color: var(--bronze); box-shadow: 0 3px 8px rgba(52,62,120,.1); }
.zones-demo p { flex-basis: 100%; text-align: center; margin: 6px 0 0; }

.bgrid { grid-template-columns: repeat(3, 1fr); }
.bstats { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.bstats span { font-size: 11px; padding: 3px 10px; border-radius: 999px; background: var(--paper2); border: 1px solid var(--line2); color: var(--ink2); }
.bstats b { color: var(--bronze); }

.lvgrid { grid-template-columns: repeat(6, 1fr); gap: 12px; }
.lvc { background: #fff; border: 1px solid var(--line2); border-radius: 14px; padding: 14px 12px; text-align: center; box-shadow: var(--shadow); }
.lvn { width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 800; font-size: 20px; color: #4a3208;
    background: radial-gradient(circle at 35% 30%, #fff3c4, #e0b25a 60%, #b98838); box-shadow: 0 6px 14px rgba(150,110,40,.35); }
.lvi { font-size: 12px; line-height: 1.6; }

.fgrid { grid-template-columns: 1fr 1fr; }
.fcard { background: #fff; border: 1px solid var(--line2); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }
.fcard h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 19px; }
.flist { list-style: none; margin: 0; padding: 0; }
.flist li { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line2); font-size: 13px; }
.flist li:last-child { border: 0; }
.fn { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; background: var(--paper2); color: var(--ink2); }
.flist li:nth-child(1) .fn { background: linear-gradient(180deg, #fbe7a8, #d9a63d); color: #4a3208; }
.flist li:nth-child(2) .fn { background: linear-gradient(180deg, #f1f3fa, #aab2cf); color: #2b3358; }
.flist li:nth-child(3) .fn { background: linear-gradient(180deg, #f1c9a0, #b9784a); color: #3a2010; }
.fname i.on { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3dba68; margin-left: 4px; }
.fl, .fw { color: var(--ink2); font-size: 12px; white-space: nowrap; }

.lcta-band { margin: 50px auto 0; max-width: 1180px; padding: 30px 36px; border-radius: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: #fff;
    background: radial-gradient(500px 200px at 90% 0, rgba(255,214,120,.35), rgba(255,214,120,0) 70%), linear-gradient(120deg, #2b3a8c, #5a6cc4); box-shadow: 0 20px 50px rgba(30,40,110,.35); }
.lcta-band h2 { margin: 0 0 6px; color: #fff3cf; font-size: 26px; }
.lcta-band p { margin: 0; color: #e3e8ff; }
.lfoot { margin-top: 40px; padding: 22px 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--ink2); font-size: 12px; border-top: 1px solid var(--line2); }
.lfoot a:hover { color: var(--gold); }

/* Появление по мере прокрутки */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
    .lhero-in { flex-direction: column; align-items: flex-start; padding-top: 90px; }
    .lcard { width: 100%; max-width: 420px; transform: none; }
    .lhero { height: auto; max-height: none; min-height: 0; padding-bottom: 70px; }
    .lstats { grid-template-columns: repeat(3, 1fr); }
    .wgrid, .bgrid { grid-template-columns: repeat(2, 1fr); }
    .mgrid { grid-template-columns: repeat(2, 1fr); }
    .lvgrid { grid-template-columns: repeat(4, 1fr); }
    .fgrid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .lnav { padding: 8px 12px; flex-wrap: wrap; }
    .lmenu { width: 100%; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
    .llogo { font-size: 15px; }
    .lhero-in { padding: 120px 16px 50px; }
    .lstats, .wgrid, .bgrid, .mgrid { grid-template-columns: 1fr 1fr; }
    .wgrid, .bgrid, .mgrid { grid-template-columns: 1fr; }
    .lvgrid { grid-template-columns: repeat(3, 1fr); }
    .lcta-band { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .dust { display: none; } }
.js .reveal.in[data-tilt] { transition: transform .15s ease-out, opacity .6s, box-shadow .25s; }

.lhero-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.lhero-gl.ready { opacity: 1; }
