/* «Ёлочка Авангарда» — главная без входа и вход с главной (21.11, entry.js; листы — behappy-yolochka/v3/work/entry/sheets,
   list-10-glavnaya: телефон — «Сначала про игру», ноутбук — «Всё на одном экране»). Цвета и кнопки — из style.css. */

/* ноутбук: на главной кегль крупнее (окно 1366×657 — без прокрутки) */
@media (min-aspect-ratio: 1/1) { html.y-main-on { font-size: clamp(16px, 2.9vmin, 22px); } }

.y-main { position: relative; margin: 0 auto; min-height: 100%; display: grid; color: #fff; }

/* ---------- телефон ---------- */
.y-main--phone { width: min(100% - 28px, 28rem); padding: calc(14px + var(--safe-t)) 0 calc(18px + var(--safe-b)); align-content: center; gap: 12px; }
.y-main__pic { height: min(36vh, 15.5rem); border-radius: 24px; background: url(/assets/yolochka/img/main-yard.webp) 50% 40% / cover no-repeat #2a1a52;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.y-main__title { margin: 6px 0 0; font-size: clamp(1.75rem, 7.4vmin, 2.6rem); font-weight: 800; line-height: 1.05; text-align: center; }
.y-main__lead { margin: 0; font-size: .98rem; line-height: 1.38; color: #e2dbf7; text-align: center; }
.y-main__acts { display: grid; gap: 10px; margin-top: 4px; }
.y-main__note { margin: 2px 0 0; font-size: .86rem; color: #c9bff0; text-align: center; }

/* ---------- ноутбук ---------- */
.y-main--wide { width: min(100% - 64px, 64rem); padding: calc(20px + var(--safe-t)) 0 20px; grid-template-columns: 1.08fr .92fr; gap: 16px 44px; align-items: center; align-content: center; }
.y-main__about { display: grid; gap: 16px; }
/* окно с роликами (24.11, вместо трёх плашек): 16:9, подпись снизу, стрелки по бокам, точки под окном */
.y-reel { display: grid; gap: 9px; container-type: inline-size; }
/* 16:9 по ширине колонки, но не выше, чем помещается без прокрутки (1366×657 — правило экранов без прокрутки); ниже — ролик обрезается по бокам */
.y-reel__win { position: relative; height: max(150px, min(56.25cqw, calc(100dvh - 400px))); border-radius: 18px; overflow: hidden; background: #24153f; box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }
.y-reel__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.y-reel__slide.is-on { opacity: 1; }
.y-reel__vid { display: block; width: 100%; height: 100%; object-fit: cover; }
.y-reel__cap { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 34px 16px 12px; background: linear-gradient(rgba(20, 10, 40, 0), rgba(20, 10, 40, .86)); color: #fff; }
.y-reel__cap b { font-size: 1.12rem; font-weight: 800; line-height: 1.15; }
.y-reel__cap span { font-size: .84rem; line-height: 1.3; color: #ece6ff; }
.y-reel__arr { position: absolute; top: 50%; z-index: 2; width: 38px; height: 38px; margin-top: -19px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); cursor: pointer; }
.y-reel__arr::before { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border: solid #24153f; border-width: 0 3px 3px 0; transform: translate(-65%, -50%) rotate(-45deg); }
.y-reel__arr--prev { left: 10px; } .y-reel__arr--prev::before { transform: translate(-35%, -50%) rotate(135deg); }
.y-reel__arr--next { right: 10px; }
.y-reel__arr:hover { transform: scale(1.06); } .y-reel__arr:active { transform: scale(.96); }
.y-reel__dots { display: flex; justify-content: center; gap: 7px; }
.y-reel__dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .35); cursor: pointer; transition: width .25s, background .25s; }
.y-reel__dot.is-on { width: 24px; background: #fff; }
.y-main__top { display: flex; gap: 16px; align-items: center; }
.y-main__icon { flex: none; width: 5rem; height: 5rem; border-radius: 1.4rem; box-shadow: 0 8px 18px rgba(0, 0, 0, .35); }
.y-main--wide .y-main__title { margin: 0; text-align: left; font-size: 2.2rem; }
.y-main--wide .y-main__lead { margin-top: 6px; text-align: left; font-size: 1rem; }
.y-main__pts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.y-main__pt { display: grid; justify-items: center; text-align: center; gap: 3px; padding: 10px 6px 11px; border-radius: 18px; background: rgba(255, 255, 255, .09); }
.y-main__pt img { width: 2.8rem; height: 2.8rem; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.y-main__pt b { font-size: .9rem; font-weight: 800; line-height: 1.1; }
.y-main__pt span { font-size: .76rem; color: #d2c8f2; line-height: 1.25; }
.y-main__phone { display: flex; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 20px; background: rgba(255, 255, 255, .09); }
.y-main__qr { flex: none; width: 6.2rem; height: 6.2rem; padding: 5px; border-radius: 14px; background: #fff; }
.y-main__qr img { display: block; width: 100%; height: 100%; }
.y-main__phone p { margin: 0; font-size: .86rem; line-height: 1.35; color: #e2dbf7; }
.y-main__phone b { display: block; color: #fff; font-size: .98rem; margin-bottom: 2px; }
.y-main__card { color: var(--ink); }
.y-main__h2 { margin: 0 0 12px; font-size: 1.3rem; font-weight: 800; }

/* ---------- формы на главной ---------- */
.y-main__pane .y-form { display: grid; }
.y-main__pane .y-small { margin: 12px 0 0; text-align: center; }
.y-main__avas { display: flex; justify-content: space-between; gap: 6px; margin: 4px 0 12px; }
.y-main__ava { flex: none; width: 3.2rem; height: 3.2rem; padding: 0; border: 3px solid transparent; border-radius: 50%; background: none; }
.y-main__ava .ya { width: 100%; height: 100%; }
.y-main__ava.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 2px #fff; }
.y-main__swap { justify-self: center; margin-top: 10px; }
.y-main__closed { display: grid; justify-items: center; gap: 6px; margin-bottom: 12px; }
.y-main__closed img { width: 6.5rem; }
.y-main__keylead { margin: 0 0 10px; }

/* «повесь шар» */
.y-hang__title { font-weight: 800; margin: 0 0 8px; }
.y-hang { position: relative; height: 13.5rem; border-radius: 20px; background: linear-gradient(180deg, var(--night-2), var(--plum)); overflow: hidden; touch-action: none; }
.y-hang__tree { position: absolute; left: 50%; bottom: 0; height: 96%; transform: translateX(-50%); pointer-events: none; }
.y-hang__slot { position: absolute; width: 2.9rem; height: 2.9rem; margin: -1.45rem 0 0 -1.45rem; border: 3px dashed #fff; border-radius: 50%; background: rgba(255, 255, 255, .12);
  animation: y-hang-pulse 1.4s ease-in-out infinite; }
.y-hang__slot { left: 50%; top: 50%; }
.y-hang__ball { position: absolute; left: 14px; top: 14px; width: 3.4rem; height: 3.4rem; padding: 0; border: 0; background: none; cursor: grab; touch-action: none; z-index: 2;
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.2); }
.y-hang__ball.is-drag { transition: none; cursor: grabbing; }
.y-hang__ball img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); pointer-events: none; }
.y-hang.is-done .y-hang__slot { animation: none; border-style: solid; border-color: #ffd5c4; }
.y-hang__tip { margin: 8px 0 0; text-align: center; }
.y-hang__back { display: block; margin: 8px auto 0; }
@keyframes y-hang-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* ключ входа */
.y-key { padding: 14px 12px 12px; border-radius: 20px; background: var(--soft); text-align: center; }
.y-key__text { display: block; font-size: clamp(1.2rem, 5.4vmin, 1.55rem); font-weight: 800; letter-spacing: .02em; color: var(--accent-d); line-height: 1.2; overflow-wrap: anywhere; }
.y-key__acts { display: flex; gap: 8px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.y-keybox { display: grid; gap: 10px; }
.y-keybox > .y-btn { justify-self: start; }

/* общая ёлка в списках и записки на ней для команды */
.y-friend--shared { background: #fff4ee; }
.y-shared { display: grid; gap: 8px; }

/* ---------- приложение на экран «Домой» (этап 2, pwa.js) ---------- */
.y-main__app { justify-self: center; margin-top: 2px; color: #fff; font-weight: 800; }
.y-app__steps { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.y-app__steps li { display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 18px; background: var(--soft); font-weight: 700; font-size: .95rem; }
.y-app__steps li > b { flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--accent); }
.y-app__ico { flex: none; width: 1.6rem; height: 1.6rem; color: #1f8ac4; } .y-app__ico svg { width: 100%; height: 100%; display: block; }
.y-sheet--app .y-btn--wide { margin-top: 8px; }
.y-apphint { position: fixed; z-index: 25; left: 12px; right: 12px; bottom: calc(86px + var(--safe-b)); margin: 0 auto; max-width: 30rem; display: flex; gap: 10px; align-items: center;
  padding: 10px 10px 10px 10px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 8px 0 rgba(0, 0, 0, .2), 0 18px 30px rgba(0, 0, 0, .25); }
.y-apphint__ico { flex: none; width: 3.2rem; height: 3.2rem; border-radius: .9rem; }
.y-apphint p { margin: 0; flex: 1; font-size: .88rem; font-weight: 700; line-height: 1.3; }
.y-apphint .y-btn { flex: none; }
.y-appblock { display: flex; gap: 12px; align-items: center; }
.y-appblock__ico { flex: none; width: 3.6rem; height: 3.6rem; border-radius: 1rem; box-shadow: 0 4px 10px rgba(29, 18, 56, .25); }
.y-appblock .y-small { margin: 0 0 8px; }
.y-appcode { display: grid; gap: 8px; justify-items: start; }
.y-appcode__digits { font-size: 1.9rem; font-weight: 800; letter-spacing: .08em; color: var(--accent-d); }
.y-appcode__left { font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.y-appcode .y-small { margin: 0; }

/* ---------- APK для Android (этап 3, pwa.js → apkSheet) ---------- */
.y-sheet--apk a.y-btn { text-decoration: none; margin: 4px 0 12px; }
.y-app__mini { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; counter-reset: s; }
.y-app__mini li { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
.y-app__mini li::before { counter-increment: s; content: counter(s); flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--soft); color: var(--accent); font-weight: 800; display: grid; place-items: center; font-size: .8rem; }
.y-main__app small { color: #c9bff0; font-weight: 600; }
.y-apphint a.y-btn { flex: none; text-decoration: none; }

/* ---------- «Где играть»: Браузер · Android · iPhone (22.11, лист 11; pwa.js → whereCard, whereSheet) ---------- */
.y-where__tabs { grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; }
.y-where__tabs button { min-height: 40px; }
.y-where { display: grid; gap: 10px; padding: 10px 12px 12px; border-radius: 20px; background: rgba(255, 255, 255, .09); }
.y-where .y-where__tabs { margin: 0; background: rgba(255, 255, 255, .1); }
.y-where .y-where__tabs button { min-height: 36px; color: #d9cff5; font-size: .86rem; }
.y-where .y-where__tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.y-where__pane { display: flex; gap: 14px; align-items: center; min-height: 6.4rem; }
.y-where__pane p { margin: 0; font-size: .86rem; line-height: 1.35; color: #e2dbf7; }
.y-where__pane b { display: block; color: #fff; font-size: .98rem; margin-bottom: 2px; }
.y-where__pane a { color: #fff; font-weight: 800; }
.y-where__steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 3px; font-size: .84rem; font-weight: 600; color: #e2dbf7; }
.y-where__steps li { display: flex; gap: 6px; align-items: center; }
.y-where__steps i { flex: none; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-style: normal; font-weight: 800; font-size: .74rem; display: grid; place-items: center; }
.y-where__ico { width: 1.05rem; height: 1.05rem; color: #fff; }
.y-sheet--where .y-where__tabs { margin-bottom: 12px; }
.y-sheet--where .y-where__sheet a.y-btn { text-decoration: none; margin: 4px 0 12px; }
