/*
Theme Name: mmo-shop
Description: Заглушка агрегатора цен на игры и восстановленные страницы mmo-shop.ru
Version: 1.0.0
Text Domain: mmo-shop
*/
 -> style.css, <script> -> assets/stub.js, fonts/ и layer-*.webp -> assets/.
  Блоки .ph (плейсхолдеры) и скрипт их показа в боевой теме удалить: картинки уже лежат рядом.
-->
<style>
/* Onest (OFL, кириллица, вариативный 100-900): self-hosted, один гарнитур на всю страницу */
@font-face{font-family:"Onest";font-style:normal;font-weight:100 900;font-display:swap;src:url("assets/fonts/Onest-cyrillic.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Onest";font-style:normal;font-weight:100 900;font-display:swap;src:url("assets/fonts/Onest-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Onest";font-style:normal;font-weight:100 900;font-display:swap;src:url("assets/fonts/Onest-rub.woff2") format("woff2");unicode-range:U+20BD}

:root{
  --night:#08191d;        /* основа: тёмная морская зелень, не чёрный */
  --night-deep:#05100f;
  --gold:#f0b83a;         /* свет факела, монеты, ключ */
  --gold-soft:#ffdf8e;
  --bone:#f4efe0;         /* текст */
  --mist:#a7bfb9;         /* второстепенный текст */
  --line:rgba(240,184,58,.36);
  --ease:cubic-bezier(.22,1,.36,1);
  --pad-x:clamp(20px,6.7vw,110px);
  --pad-y:clamp(18px,3.2vw,44px);
}
*,*::before,*::after{box-sizing:border-box}
html{background:var(--night);-webkit-text-size-adjust:100%}
body{margin:0;background:var(--night);color:var(--bone);font:400 1rem/1.5 "Onest",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased;overflow-x:hidden}

/* ---------- Экран ---------- */
.stage{
  position:relative;isolation:isolate;overflow:hidden;
  height:100svh;height:100dvh;            /* заглушка на один экран по брифу; ниже 560px высоты экран прокручивается */
  min-height:560px;
  display:grid;grid-template-rows:auto 1fr auto;
  padding:calc(var(--pad-y) + env(safe-area-inset-top)) calc(var(--pad-x) + env(safe-area-inset-right)) calc(var(--pad-y) * .7 + env(safe-area-inset-bottom)) calc(var(--pad-x) + env(safe-area-inset-left));
}
/* читаемость текста: тёмная кромка слева, вместе с факелом даёт свет только там, где предметы */
.stage::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(90deg,rgba(5,16,15,.72) 0,rgba(5,16,15,.5) 38%,rgba(5,16,15,0) 64%)}

/* ---------- Сцена (слои параллакса) ---------- */
.scene{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.scene--front{z-index:3}                 /* ближний слой стоит ПЕРЕД текстом */
.layer{position:absolute;will-change:transform;pointer-events:none}
.layer img,.layer .ph{display:block;width:100%;height:100%}
.layer img{object-fit:contain}
.layer .bob{width:100%;height:100%}

.l-bg   {inset:-3%}                                  .l-bg img{object-fit:cover}
.l-far  {inset:-5%}                                  .l-far img{object-fit:cover;object-position:50% 100%}
.l-chest{right:-1vw;bottom:-3dvh;width:clamp(420px,46vw,980px);aspect-ratio:7/5}
.l-key  {right:21vw;top:7dvh;height:clamp(300px,64dvh,780px);aspect-ratio:3/4}
.l-pad  {right:2vw;top:9dvh;width:clamp(220px,25vw,460px);aspect-ratio:5/4}
.l-gems {right:8vw;bottom:29dvh;width:clamp(200px,20vw,380px);aspect-ratio:1}
.l-near {inset:-9%}                                  .l-near img{object-fit:cover}

/* факел: тёмная виньетка с «дырой» у курсора + тёплое пятно света */
.torch{position:absolute;inset:0;z-index:1;pointer-events:none;
  --tx:66vw;--ty:46dvh;
  background:
    radial-gradient(circle 17vmax at var(--tx) var(--ty),rgba(255,186,72,.16),rgba(255,186,72,0)),
    radial-gradient(circle 58vmax at var(--tx) var(--ty),rgba(5,16,15,0) 0,rgba(5,16,15,0) 10%,rgba(5,16,15,.36) 40%,rgba(5,16,15,.6) 100%)}

/* ---------- Плейсхолдеры (видны, пока картинки не легли) ---------- */
.ph{display:none;align-items:flex-start;justify-content:flex-start;padding:10px 12px;border:2px dashed var(--c);border-radius:10px;
  background:color-mix(in srgb,var(--c) 28%,transparent);color:#fff;font:500 12px/1.35 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:0}
.layer:not(.is-loaded) .ph{display:flex}
.l-bg .ph,.l-far .ph,.l-near .ph{border-radius:0;border-width:1px}
.l-bg .ph{background:linear-gradient(180deg,#0e3a40,#08191d 70%);}
.l-far .ph{background:rgba(47,143,154,.12)}
.l-near .ph{position:absolute;inset:8%;width:auto;height:auto;background:none;border:2px dashed var(--c);border-radius:18px;align-items:flex-end}

/* ---------- Содержимое ---------- */
.stage>header{position:relative;z-index:2;justify-self:start}
.wordmark:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:2px}
.wordmark{font-weight:500;font-size:1.05rem;letter-spacing:-.01em;color:var(--bone);text-decoration:none}
.wordmark span{color:var(--gold)}
main{position:relative;z-index:2;align-self:center;max-width:760px;padding:clamp(16px,2.5dvh,32px) 0}
h1{margin:0;font-weight:500;font-size:clamp(2.35rem,7.2vw,6rem);line-height:.98;letter-spacing:-.035em;text-wrap:balance}
.lead{margin:clamp(14px,2.4dvh,26px) 0 0;max-width:34em;font-size:clamp(1rem,1.25vw,1.2rem);line-height:1.55;color:#dbe5df;text-wrap:pretty}
.shop{color:var(--gold-soft);white-space:nowrap}

/* панель быстрого доступа: пять ячеек = пять товаров агрегатора (декор, дублирует абзац) */
.hotbar{list-style:none;margin:clamp(20px,4dvh,38px) 0 0;padding:0;display:flex;gap:clamp(8px,1vw,14px)}
.hotbar li{display:grid;justify-items:center;gap:7px;width:clamp(56px,4.8vw,70px)}
.slot{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:1;border-radius:8px;color:var(--gold);
  background:linear-gradient(180deg,#143533,#0a1f21);border:1px solid var(--line);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),inset 0 -10px 16px rgba(0,0,0,.35)}
.slot .i{width:44%;height:44%}
.slot kbd{position:absolute;top:3px;left:6px;font:500 12px/1 "Onest",sans-serif;color:var(--mist)}
.hotbar span{font-size:.78rem;line-height:1.1;color:var(--mist);text-align:center}
.i{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

footer{position:relative;z-index:2;font-size:.78rem;color:var(--mist);opacity:.85}

/* ---------- Движение: только при no-preference ---------- */
@media (prefers-reduced-motion:no-preference){
  .layer img,.layer .ph{animation:appear .9s var(--ease) both;animation-delay:var(--d,0s)}
  .bob{animation:bob var(--bob,9s) ease-in-out infinite;animation-delay:var(--bd,0s)}
  .wordmark,h1,.lead,.hotbar,footer{animation:rise .9s var(--ease) both}
  h1{animation-delay:.12s}.lead{animation-delay:.24s}.hotbar{animation-delay:.36s}footer{animation-delay:.5s}
}
/* вкладка скрыта: плавание предметов ставится на паузу (скрипт вешает .is-paused) */
.is-paused .bob{animation-play-state:paused}
@keyframes appear{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes bob{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-10px) rotate(.8deg)}}

/* ---------- Телефон и узкие экраны: текст сверху, добыча снизу ---------- */
@media (max-width:820px),(max-aspect-ratio:1/1){
  .stage::before{background:linear-gradient(180deg,rgba(5,16,15,.78) 0,rgba(5,16,15,.55) 55%,rgba(5,16,15,0) 85%)}
  main{align-self:start;max-width:none;padding-top:clamp(14px,3.2dvh,34px)}
  h1{font-size:clamp(2.3rem,11.2vw,4.4rem)}
  .lead{font-size:1rem;max-width:30em}
  .hotbar{margin-top:clamp(16px,3dvh,28px)}
  .hotbar li{width:clamp(52px,16vw,68px)}
  .l-chest{right:-16vw;bottom:-2dvh;width:96vw}
  .l-key  {right:8vw;top:auto;bottom:12dvh;height:31dvh}
  .l-pad  {right:auto;left:-8vw;top:auto;bottom:11dvh;width:44vw}
  .l-gems {right:-4vw;bottom:34dvh;width:38vw}
  .torch{--tx:50vw;--ty:70dvh}
}
@media (max-height:640px) and (max-width:820px){
  .lead{font-size:.94rem;line-height:1.45}
  .hotbar span{display:none}
}
