/* Главная: 3D-сцена «Клуб без администратора» (partials/club-scene.blade.php + club-scene.js) */
.cs-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.cs-head { max-width: 760px; }
.cs-ctl { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex: none; }
.cs-ctl-btns { display: flex; gap: 10px; }
.cs-modes { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--chip); }
.cs-mode { height: 34px; padding: 0 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.cs-mode[aria-selected='true'] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(20, 20, 19, .08), 0 0 0 1px rgba(20, 20, 19, .04); }

.cs-stage {
    position: relative; margin-top: 40px; height: clamp(520px, 46vw, 660px); border-radius: 22px; overflow: hidden;
    background: radial-gradient(120% 90% at 40% 30%, #fbfbfa 0%, #f3f3f1 55%, #ecece9 100%);
    border: 1px solid var(--line-card); isolation: isolate;
    -webkit-user-select: none; user-select: none;
}
.cs-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; }
.cs-ready .cs-fallback { opacity: 0; pointer-events: none; }
.cs-gl { position: absolute; inset: 0; }
.cs-gl canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .6s; outline: none; }
.cs-ready .cs-gl canvas { opacity: 1; }
.cs-gl.is-hover canvas { cursor: pointer; }

/* Точки-подсказки на объектах */
.cs-hots { position: absolute; inset: 0; pointer-events: none; }
.cs-hot {
    position: absolute; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
    display: grid; place-items: center; pointer-events: auto; cursor: pointer;
    background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 13px; font-weight: 600;
    box-shadow: 0 4px 14px rgba(20, 20, 19, .16), 0 0 0 1px rgba(20, 20, 19, .06);
    transition: opacity .3s, background .2s, color .2s, transform .2s;
}
.cs-hot::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid rgba(47, 91, 216, .5); animation: cs-ring 2.4s ease-out infinite; }
.cs-hot:hover { background: var(--ink); color: #fff; }
.cs-hot.on { background: var(--accent); color: #fff; }
.cs-hot.on::before { border-color: rgba(47, 91, 216, .7); }
.cs-hot.off { opacity: 0; pointer-events: none; }
.cs-hot-tip {
    position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); white-space: nowrap;
    background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; padding: 5px 9px; border-radius: 7px;
    opacity: 0; pointer-events: none; transition: opacity .15s;
}
.cs-hot:hover .cs-hot-tip { opacity: 1; }
@keyframes cs-ring { 0% { transform: scale(.8); opacity: 1; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

/* Подписи у объектов */
.cs-pin, .cs-face { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .35s; will-change: transform; }
.cs-admin {
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transform-origin: 50% 100%;
    background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; padding: 9px 14px 9px 12px; border-radius: 12px;
    box-shadow: 0 12px 30px rgba(20, 20, 19, .14), 0 0 0 1px rgba(20, 20, 19, .05);
}
.cs-admin::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
.cs-live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.cs-face { width: 10px; height: 10px; }
.cs-face i { position: absolute; width: 16px; height: 16px; border: 2.5px solid #3ddc84; }
.cs-face i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.cs-face i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.cs-face i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.cs-face i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.cs-face span {
    position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap;
    background: rgba(20, 20, 19, .86); color: #fff; font-size: 12.5px; font-weight: 600; padding: 4px 9px; border-radius: 7px;
    font-variant-numeric: tabular-nums; backdrop-filter: blur(6px);
}
.cs-face::after { content: ''; position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(180deg, transparent 0%, rgba(61, 220, 132, .22) 50%, transparent 52%); background-size: 100% 200%; animation: cs-scan 1.6s linear infinite; }
@keyframes cs-scan { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
.cs-stage.is-admin .cs-admin, .cs-stage.is-face .cs-face { opacity: 1; }

/* Ночь в режиме «Как живёт клуб» */
.cs-stage { transition: background-color .9s; }
.cs-stage::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 40% 30%, #3a3d46 0%, #23252b 60%, #1a1b20 100%); opacity: 0; transition: opacity 1.2s; }
.cs-stage.is-night::before { opacity: 1; }
.cs-stage.is-night .cs-hot { background: rgba(255, 255, 255, .86); }

/* Датчик климата и музыка */
.cs-sensor { display: flex; gap: 2px; padding: 6px; background: #fff; border-radius: 12px; transform-origin: 50% 100%; box-shadow: 0 12px 30px rgba(20, 20, 19, .16), 0 0 0 1px rgba(20, 20, 19, .05); }
.cs-sensor div { display: flex; flex-direction: column; padding: 4px 10px; border-left: 1px solid var(--line); }
.cs-sensor div:first-child { border-left: 0; }
.cs-sensor span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.cs-sensor b { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -0.01em; }
.cs-music { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; background: #fff; font-size: 13.5px; font-weight: 600; padding: 8px 13px 8px 10px; border-radius: 12px; box-shadow: 0 12px 30px rgba(20, 20, 19, .16), 0 0 0 1px rgba(20, 20, 19, .05); }
.cs-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.cs-eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--accent); transform-origin: 50% 100%; animation: cs-eq .9s ease-in-out infinite alternate; }
.cs-eq i:nth-child(2) { animation-delay: -.3s; } .cs-eq i:nth-child(3) { animation-delay: -.6s; } .cs-eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes cs-eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.cs-stage.is-sensor .cs-sensor, .cs-stage.is-music .cs-music { opacity: 1; }

/* Погода: METAR и проверка бахил */
.cs-metar {
    position: absolute; left: 24px; top: 24px; width: 330px; padding: 12px 14px 13px; border-radius: 14px; pointer-events: none;
    background: rgba(16, 18, 22, .9); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 16px 40px rgba(10, 12, 16, .3); opacity: 0; transform: translateY(-10px); transition: opacity .35s, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.cs-metar-top { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .55); font-weight: 600; }
.cs-metar-live { color: #3ddc84; }
.cs-metar-live::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #3ddc84; margin-right: 5px; vertical-align: 1px; }
.cs-metar code { display: block; margin: 7px 0 8px; font: 500 13.5px/1.45 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; color: #f5c451; letter-spacing: .02em; word-spacing: 2px; }
.cs-metar b { font-size: 14px; font-weight: 600; }
.cs-stage.is-metar .cs-metar { opacity: 1; transform: none; }
.cs-shoe { position: absolute; left: 0; top: 0; width: 10px; height: 10px; pointer-events: none; opacity: 0; transition: opacity .35s; }
.cs-shoe i { position: absolute; width: 14px; height: 14px; border: 2.5px solid #ff7a45; }
.cs-shoe i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 5px 0 0 0; }
.cs-shoe i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 5px 0 0; }
.cs-shoe i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 5px; }
.cs-shoe i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 5px 0; }
.cs-shoe span { position: absolute; left: 50%; top: calc(100% + 7px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; background: #d9480f; color: #fff; font-size: 12.5px; font-weight: 600; padding: 4px 9px; border-radius: 7px; }
.cs-stage.is-shoe .cs-shoe { opacity: 1; }

/* Карточка события */
.cs-event {
    position: absolute; left: 24px; top: 24px; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px;
    background: rgba(255, 255, 255, .96); border-radius: 14px; min-width: 260px;
    box-shadow: 0 14px 34px rgba(20, 20, 19, .12), 0 0 0 1px rgba(20, 20, 19, .05);
    opacity: 0; transform: translateY(-10px); transition: opacity .35s, transform .45s cubic-bezier(.2, .8, .2, 1); pointer-events: none;
}
.cs-event > div { display: flex; flex-direction: column; flex: 1; }
.cs-event b { font-size: 14.5px; font-weight: 600; }
.cs-event > div span { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cs-event-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.cs-event-ok { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; }
.cs-stage.is-event .cs-event { opacity: 1; transform: none; }

/* Телефон клиента */
.cs-phone {
    --s: 1; position: absolute; right: 36px; top: 50%; width: 236px; height: 484px; margin-top: -242px;
    border-radius: 40px; padding: 9px; background: linear-gradient(145deg, #2b2b2a, #111110);
    box-shadow: 0 30px 60px rgba(20, 20, 19, .26), 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 0 0 1.5px #3a3a38;
    transform: translateX(calc(100% + 60px)) scale(var(--s)); transform-origin: 100% 50%; opacity: 0;
    transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .4s;
}
.cs-stage.is-phone .cs-phone { transform: scale(var(--s)); opacity: 1; }
.cs-ph-screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: #f6f6f4; display: flex; flex-direction: column; }
.cs-ph-status { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 20px 0 24px; font-size: 12px; position: relative; }
.cs-ph-notch { position: absolute; left: 50%; top: 8px; width: 72px; height: 20px; margin-left: -36px; border-radius: 12px; background: #111110; }
.cs-ph-bat { width: 20px; height: 9px; border-radius: 3px; border: 1.2px solid var(--ink); position: relative; }
.cs-ph-bat::after { content: ''; position: absolute; inset: 1px 5px 1px 1px; background: var(--ink); border-radius: 1px; }
.cs-ph-body { flex: 1; display: flex; flex-direction: column; padding: 14px 14px 12px; gap: 10px; }
.cs-ph-club { font-size: 11.5px; color: var(--muted); }
.cs-ph-hello { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin-top: -6px; }
.cs-ph-card { background: #fff; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 0 0 1px var(--line); }
.cs-ph-card b { font-size: 13.5px; font-weight: 600; }
.cs-ph-card span:last-child { font-size: 11.5px; color: var(--muted); }
.cs-ph-badge { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); margin-bottom: 6px; }
.cs-act { display: none; flex-direction: column; gap: 10px; margin-top: auto; }
.cs-stage[data-act='gate'] [data-act='gate'], .cs-stage[data-act='locker'] [data-act='locker'], .cs-stage[data-act='shop'] [data-act='shop'] { display: flex; }
.cs-ph-btn {
    position: relative; height: 50px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; overflow: hidden;
    transition: background .3s, transform .12s; width: 100%;
}
.cs-ph-btn > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 8px; transition: opacity .25s, transform .3s; white-space: nowrap; }
.cs-ph-btn-b { opacity: 0; transform: translateY(12px); }
.cs-stage.is-wait .cs-ph-btn { animation: cs-press 1.6s ease-in-out infinite; cursor: pointer; }
.cs-ph-btn.is-down { transform: scale(.96); }
.cs-stage.is-done .cs-ph-btn { background: var(--ok); }
.cs-stage.is-done .cs-ph-btn-a { opacity: 0; transform: translateY(-12px); }
.cs-stage.is-done .cs-ph-btn-b { opacity: 1; transform: none; }
@keyframes cs-press { 0%, 100% { box-shadow: 0 0 0 0 rgba(47, 91, 216, .45); } 50% { box-shadow: 0 0 0 8px rgba(47, 91, 216, 0); } }
.cs-ph-tap { text-align: center; font-size: 11.5px; color: var(--accent); font-weight: 500; height: 16px; margin-top: -4px; opacity: 0; transition: opacity .3s; }
.cs-stage.is-wait .cs-ph-tap { opacity: 1; }
.cs-ph-row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 0 0 1px var(--line); }
.cs-ph-row div { display: flex; flex-direction: column; min-width: 0; }
.cs-ph-row b { font-size: 14px; font-weight: 600; }
.cs-ph-row span { font-size: 11px; color: var(--muted); line-height: 1.3; }
.cs-ph-sub-b { display: none; }
.cs-stage.is-done .cs-ph-sub-a { display: none; }
.cs-stage.is-done .cs-ph-sub-b { display: block; }
.cs-ph-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.cs-ph-ico-water i { width: 12px; height: 22px; border-radius: 4px 4px 3px 3px; background: linear-gradient(180deg, #2f5bd8 0 18%, #9fc0ff 18% 100%); box-shadow: inset 0 0 0 1.5px #2f5bd8; }
.cs-ph-tabs { display: flex; justify-content: space-around; padding: 8px 6px 0; border-top: 1px solid var(--line); }
.cs-ph-tabs i { width: 18px; height: 18px; border-radius: 6px; background: #e3e3df; }
.cs-ph-tabs i.on { background: var(--ink); }
.cs-push {
    position: absolute; left: 8px; right: 8px; top: 40px; z-index: 2; display: flex; gap: 9px; padding: 10px;
    background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-radius: 16px; box-shadow: 0 10px 28px rgba(20, 20, 19, .18), 0 0 0 1px rgba(20, 20, 19, .05);
    transform: translateY(-140%); opacity: 0; transition: transform .6s cubic-bezier(.2, 1.2, .3, 1), opacity .3s;
}
.cs-stage.is-push .cs-push:not(.cs-push-2), .cs-stage.is-push2 .cs-push-2 { transform: none; opacity: 1; }
.cs-push-ico { width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--ink); color: #fff; font-size: 9px; font-weight: 700; display: grid; place-items: center; }
.cs-push-body { display: flex; flex-direction: column; font-size: 12px; line-height: 1.3; min-width: 0; }
.cs-push-top { display: flex; justify-content: space-between; gap: 6px; font-size: 10.5px; color: var(--muted); }
.cs-push-top b { font-weight: 600; color: var(--ink-2); }
.cs-push-body > b { font-weight: 600; margin-top: 2px; }
.cs-push-body > span { color: var(--ink-2); }

/* Шаги */
.cs-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 22px; margin-top: 24px; }
.cs-step { position: relative; display: flex; flex-direction: column; gap: 6px; }
.cs-step-btn { display: flex; align-items: center; gap: 10px; text-align: left; position: relative; padding-top: 16px; }
.cs-step-bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 2px; background: var(--line-strong); overflow: hidden; }
.cs-step-bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.cs-step.done .cs-step-bar i { transform: scaleX(1); background: var(--ink); }
.cs-step.on .cs-step-bar i { transform: scaleX(var(--p, 1)); background: var(--accent); }
.cs-step-n { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--chip); color: var(--ink-2); transition: background .2s, color .2s; }
.cs-step-t { font-size: 15.5px; font-weight: 600; line-height: 1.25; }
.cs-step-btn:hover .cs-step-n { background: var(--hover); color: var(--ink); }
.cs-step.on .cs-step-n { background: var(--accent); color: #fff; }
.cs-step-x { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.cs-step-more { display: inline;  font-size: 13.5px; font-weight: 500; color: var(--accent); align-self: flex-start; }
.cs-step-more .i { display: inline-block; vertical-align: -2px; margin-left: 2px; }
.cs-step-more:hover { color: var(--accent-hover); }
.cs-step:not(.on) .cs-step-x { color: var(--muted); }
.cs-step:not(.on) .cs-step-more { color: var(--ink-2); }

@media (max-width: 1279px) {
    .cs-stage { height: 560px; }
    .cs-phone { --s: .82; right: 20px; }
    .cs-steps { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
}
@media (max-width: 767px) {
    .cs-top { flex-direction: column; align-items: stretch; gap: 20px; }
    .cs-ctl { align-items: stretch; }
    .cs-modes { display: flex; }
    .cs-mode { flex: 1; padding: 0 8px; font-size: 13.5px; }
    .cs-stage { height: 460px; margin-top: 24px; border-radius: 18px; margin-inline: calc(var(--pad) * -.5); }
    .cs-phone { --s: .56; right: 10px; top: auto; bottom: 10px; margin-top: 0; transform-origin: 100% 100%; }
    .cs-event { left: 12px; top: 12px; min-width: 0; right: 12px; padding: 10px; }
    .cs-metar { left: 12px; top: 12px; width: auto; right: 12px; padding: 10px 12px; }
    .cs-metar code { font-size: 12px; margin: 5px 0 6px; }
    .cs-admin { font-size: 12.5px; padding: 7px 11px 7px 10px; }
    .cs-hot { width: 26px; height: 26px; margin: -13px 0 0 -13px; font-size: 12px; }
    .cs-hot-tip { display: none; }
    .cs-steps { grid-template-columns: 1fr; gap: 0; margin-top: 12px; }
    .cs-step { padding: 12px 0 14px 46px; border-bottom: 1px solid var(--row); gap: 4px; }
    .cs-step-btn { padding-top: 0; position: static; }
    .cs-step-n { position: absolute; left: 0; top: 12px; }
    .cs-step-bar { top: auto; bottom: -1px; height: 2px; background: transparent; }
    .cs-step:not(.on) .cs-step-x, .cs-step:not(.on) .cs-step-more { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .cs-hot::before, .cs-face::after, .cs-stage.is-wait .cs-ph-btn, .cs-eq i { animation: none; }
}
