.bots { display: grid; grid-template-columns: 360px 1fr; gap: 16px; align-items: stretch; }
.phone {
  position: relative; border-radius: 40px; padding: 12px; background: #050608;
  border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(0,128,110,.45), inset 0 0 0 2px #15171d;
}
.phone::before { content: ''; position: absolute; top: 20px; left: 50%; width: 90px; height: 24px; margin-left: -45px; border-radius: 14px; background: #000; z-index: 3; }
.tg { position: relative; height: 600px; border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; background: #0e1621; }
.tg-head { display: flex; align-items: center; gap: 12px; padding: 50px 16px 12px; background: #17212b; border-bottom: 1px solid #0b1118; }
.tg-ava { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 9px; background: #0b0c0f; }
.tg-ava i { border-radius: 2px; }
.tg-head b { display: block; font-size: 15px; }
.tg-head span { font-size: 12.5px; color: #6c8eaf; }
.tg-head span.typing { color: #64b5ef; }
.tg-body {
  flex: 1; overflow: hidden; padding: 14px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  background: radial-gradient(circle at 20% 20%, rgba(0,128,110,.12), transparent 50%), radial-gradient(circle at 80% 80%, rgba(132,27,62,.14), transparent 50%), #0e1621;
}
.msg { max-width: 84%; padding: 8px 12px 6px; border-radius: 16px; font-size: 14px; line-height: 1.4; position: relative; animation: msgin .45s cubic-bezier(.34, 1.56, .64, 1) both; transform-origin: bottom left; }
.msg.me { align-self: flex-end; background: #2b5278; border-bottom-right-radius: 4px; transform-origin: bottom right; }
.msg.bot { align-self: flex-start; background: #182533; border-bottom-left-radius: 4px; }
.msg small { display: block; text-align: right; font-size: 11px; color: rgba(255,255,255,.45); margin-top: 2px; }
.msg.me small::after { content: ' ✓✓'; color: #64b5ef; }
.msg .kb { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 8px -6px -2px; }
.msg .kb span { text-align: center; padding: 7px; border-radius: 8px; background: rgba(255,255,255,.07); font-size: 13px; color: #8ac8ff; }
.msg.cmd { color: #64b5ef; }
.dots { align-self: flex-start; padding: 12px 14px; border-radius: 16px; background: #182533; display: flex; gap: 4px; animation: msgin .3s ease both; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #6c8eaf; animation: blink 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; transform: translateY(-2px); } }
@keyframes msgin { from { opacity: 0; transform: translateY(14px) scale(.85); } }
.tg-input { display: flex; align-items: center; gap: 10px; padding: 10px 14px 16px; background: #17212b; color: #6c8eaf; font-size: 14px; }
.tg-input span { flex: 1; }
.tg-input i { color: #64b5ef; }

.bots-side { display: grid; grid-template-rows: auto 1fr; gap: 16px; }
.flow { padding: 26px; }
.flow-row { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.flow-row::before { content: ''; position: absolute; left: 12%; right: 12%; top: 31px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px); }
.node { position: relative; text-align: center; }
.node .ic { width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center; font-size: 22px; color: var(--cl); background: color-mix(in srgb, var(--c) 20%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), box-shadow .4s; position: relative; z-index: 1; }
.node.hot .ic { transform: scale(1.12); box-shadow: 0 0 0 6px var(--bg), 0 0 30px color-mix(in srgb, var(--c) 70%, transparent); }
.node b { display: block; font-size: 14.5px; }
.node span { font-size: 12.5px; color: var(--dim); }
.packet { position: absolute; top: 25px; width: 14px; height: 14px; border-radius: 4px; background: var(--teal-l); box-shadow: 0 0 16px var(--teal-l); z-index: 2; opacity: 0; transition: left .7s cubic-bezier(.65, 0, .35, 1), opacity .2s; }
.admin { padding: 0; display: flex; flex-direction: column; }
.admin-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.admin-head b { font-size: 15px; }
.admin-head span { margin-left: auto; font: 500 12px var(--f-mono); color: var(--dim); }
.admin-body { flex: 1; padding: 16px 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 230px; }
.admin-body .msg { max-width: 92%; }
.admin-body .head { font: 500 12.5px var(--f-mono); color: var(--teal-l); }
.feat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.shots { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; align-items: stretch; }
.shot-card { padding: 0; display: flex; flex-direction: column; }
.shot-card .cap { padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.shot-card .cap h3 { font-size: 17px; margin-bottom: 6px; }
.shot-card .cap p { margin: 0; color: var(--muted); font-size: 14px; }
.shot-stage { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }

.mp { position: absolute; inset: 14px; border-radius: 14px; overflow: hidden; background: #fff; color: #1d1d22; display: flex; flex-direction: column; font-family: var(--f-body); }
.mp-img { position: relative; flex: 1; min-height: 0; background: linear-gradient(160deg, #ffe3f1, #f4d5ff 55%, #d9e8ff); display: grid; place-items: center; overflow: hidden; }
.mp-img img { width: auto; max-width: 56%; max-height: 74%; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(120, 40, 120, .3)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
.mp-img .badge { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; background: #ff3d7f; color: #fff; font-weight: 800; font-size: 12px; }
.mp-img .badge.b2 { left: auto; right: 10px; background: #1d1d22; }
.mp-img .chip { position: absolute; left: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 4px; }
.mp-img .chip span { padding: 4px 9px; border-radius: 8px; background: rgba(255,255,255,.85); font-size: 11px; font-weight: 700; color: #6b2fa0; }
.mp-info { padding: 12px 14px 14px; }
.mp-price { display: flex; align-items: baseline; gap: 8px; }
.mp-price b { font-size: 20px; color: #ff2d6f; }
.mp-price s { font-size: 13px; color: #9a9aa5; }
.mp-name { font-size: 13.5px; margin: 4px 0 10px; line-height: 1.3; color: #3a3a44; }
.mp-btn { text-align: center; padding: 9px; border-radius: 10px; background: #a53cf6; color: #fff; font-weight: 700; font-size: 13.5px; }

.ig { position: absolute; inset: 14px; border-radius: 14px; overflow: hidden; background: linear-gradient(170deg, #f6eadb, #ead6bd); color: #3b2414; font-family: var(--f-body); }
.ig h4 { position: absolute; left: 20px; top: 18px; right: 20px; margin: 0; font: 700 22px/1.1 var(--f-head); letter-spacing: -.02em; color: #4a2a12; }
.ig h4 small { display: block; font: 600 12px var(--f-body); color: #8a6648; margin-top: 6px; letter-spacing: 0; }
.ig img { position: absolute; left: 50%; bottom: 8%; width: 46%; transform: translateX(-50%); filter: drop-shadow(0 22px 16px rgba(80, 40, 10, .35)); }
.ig .pt { position: absolute; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.reveal.in .ig .pt { opacity: 1; transform: none; }
.ig .pt i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #b0621d; font-size: 12px; flex: none; box-shadow: 0 6px 12px -6px rgba(80, 40, 10, .5); }
.ig .pt span { background: rgba(255,255,255,.75); padding: 5px 9px; border-radius: 8px; line-height: 1.2; }
.ig .pt span em { display: block; font-style: normal; font-weight: 600; color: #8a6648; font-size: 10.5px; }
.ig svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ig svg path { fill: none; stroke: #b0621d; stroke-width: 1.4; stroke-dasharray: 4 4; opacity: .7; }

.ba { position: absolute; inset: 14px; border-radius: 14px; overflow: hidden; cursor: ew-resize; user-select: none; touch-action: pan-y; }
.ba .layer { position: absolute; inset: 0; display: grid; place-items: center; }
.ba .before { background: #dcd7d1; clip-path: inset(0 calc(100% - var(--p, 50%)) 0 0); z-index: 2; }
.ba .before img { width: 62%; filter: drop-shadow(0 6px 4px rgba(0,0,0,.18)) saturate(.8) brightness(.96); }
.ba .after { background: radial-gradient(circle at 50% 32%, #ffcf7a 0%, #c86a1c 28%, #3a1a0c 62%, #120806 100%); }
.ba .after::before { content: ''; position: absolute; left: -10%; right: -10%; bottom: 0; height: 34%; background: url(../assets/textures/planks.png) 0 0 / 64px 64px; image-rendering: pixelated; filter: brightness(.55) saturate(1.1); transform: perspective(300px) rotateX(48deg); transform-origin: bottom; }
.ba .after img { position: relative; width: 62%; filter: drop-shadow(0 26px 22px rgba(0,0,0,.6)) saturate(1.15) contrast(1.05); }
.ba .after .bokeh { position: absolute; border-radius: 50%; background: #ffd27a; filter: blur(6px); opacity: .5; animation: drift 6s ease-in-out infinite; }
@keyframes drift { 50% { transform: translateY(-14px); opacity: .8; } }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--p, 50%); width: 2px; margin-left: -1px; background: #fff; z-index: 3; box-shadow: 0 0 12px rgba(0,0,0,.4); }
.ba .handle::after { content: '\f337'; font: 900 14px 'Font Awesome 6 Free'; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: #fff; color: #222; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.ba .lbl { position: absolute; top: 10px; z-index: 4; padding: 4px 10px; border-radius: 999px; font: 600 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; background: rgba(0,0,0,.55); color: #fff; }
.ba .lbl.l { left: 10px; } .ba .lbl.r { right: 10px; }

.lvl { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
.lvl-view { position: relative; padding: 0; min-height: 520px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #1d2230, #0d0f14 75%); }
.lvl-view canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; cursor: grab; }
.lvl-view canvas:active { cursor: grabbing; }
.lvl-hud { position: absolute; left: 16px; top: 16px; display: flex; gap: 8px; z-index: 2; }
.lvl-hud button { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(11,12,15,.75); backdrop-filter: blur(6px); color: var(--muted); font: 600 13px var(--f-body); display: inline-flex; gap: 8px; align-items: center; transition: all .25s; }
.lvl-hud button.on, .lvl-hud button:hover { color: var(--text); border-color: var(--teal-l); }
.lvl-hud button:disabled { opacity: .4; pointer-events: none; }
.lvl-mode { display: inline-flex; padding: 3px; gap: 3px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(11,12,15,.75); backdrop-filter: blur(6px); }
.lvl-mode button { border: 0 !important; background: transparent !important; padding: 6px 11px !important; }
.lvl-mode button.on { background: var(--text) !important; color: var(--bg) !important; }
.lvl-hud { flex-wrap: wrap; right: 16px; }
.lvl-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font: 500 13px var(--f-mono); }
.legend { display: grid; gap: 8px; align-content: start; }
.legend button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: left; transition: all .25s; }
.legend button i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); flex: none; box-shadow: 0 0 12px color-mix(in srgb, var(--c) 60%, transparent); }
.legend button span { display: block; font-size: 12.5px; color: var(--dim); }
.legend button b { font-weight: 600; font-size: 14.5px; }
.legend button.off { opacity: .4; }
.legend button.off i { box-shadow: none; }
.legend .hint { color: var(--dim); font-size: 13px; margin: 6px 2px 0; }

@media (max-width: 1080px) {
  .bots { grid-template-columns: 1fr; }
  .phone { max-width: 380px; margin: 0 auto; width: 100%; }
  .shots { grid-template-columns: 1fr 1fr; }
  .lvl { grid-template-columns: 1fr; }
  .legend { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .shots { grid-template-columns: 1fr; }
  .flow-row { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .flow-row::before { display: none; }
  .lvl-view { min-height: 380px; }
  .legend { grid-template-columns: 1fr; }
  .tg { height: 540px; }
}
.beat { position: relative; padding: clamp(22px, 4vw, 40px); overflow: hidden; background: linear-gradient(150deg, #241a0c, var(--surface) 55%, #1a0f14); }
.beat-viz { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.beat > *:not(.beat-viz) { position: relative; }
.beat-main { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.beat-play { width: 78px; height: 78px; border-radius: 50%; border: 0; flex: none; display: grid; place-items: center; font-size: 26px; color: #1a1006; background: linear-gradient(140deg, var(--amber-l), #f7c76a); box-shadow: 0 14px 40px -12px rgba(227,162,59,.8); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.beat-play:hover { transform: scale(1.07); }
.beat-play i { margin-left: 3px; }
.beat.playing .beat-play i { margin-left: 0; }
.beat.playing .beat-play { animation: pulse 1.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(227,162,59,.55); } 100% { box-shadow: 0 0 0 22px rgba(227,162,59,0); } }
.beat-info h3 { font-size: clamp(24px, 3vw, 34px); margin: 8px 0 4px; }
.beat-meta { font: 500 13px var(--f-mono); color: var(--dim); }
.beat-side { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.beat-time { font: 500 15px var(--f-mono); color: var(--muted); }
.beat-time b { color: var(--text); font-weight: 600; }
.beat-loop { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--dim); transition: all .25s; }
.beat-loop.on { color: var(--amber-l); border-color: color-mix(in srgb, var(--amber-l) 60%, transparent); }
.wave { display: flex; align-items: center; gap: 3px; height: 120px; margin: 30px 0 24px; cursor: pointer; outline: none; }
.wave i { flex: 1; border-radius: 3px; background: #3a3f4c; height: calc(var(--h) * 100%); min-height: 4px; transition: background .2s, transform .25s; transform-origin: center; animation: grow .8s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--k) * 6ms); }
@keyframes grow { from { transform: scaleY(0); } }
.wave i.done { background: linear-gradient(var(--amber-l), var(--wine-l)); }
.wave i.hover { background: #5a6070; }
.wave i.done.hover { filter: brightness(1.25); }
.wave:focus-visible { box-shadow: 0 0 0 2px var(--amber-l); border-radius: 8px; }
.beat-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) { .wave { height: 84px; gap: 2px; } .beat-side { margin-left: 0; width: 100%; justify-content: space-between; } }
.shots.real { grid-template-columns: 2.37fr 1fr 1fr; }
.shot-stage.wide { aspect-ratio: 16 / 9; }
.shot-stage.tall { aspect-ratio: 3 / 4; }
.shot-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .7s var(--ease); }
.shot-card:hover .shot-stage > img { transform: scale(1.035); }
.shots.real .ba { inset: 0; border-radius: 0; }
.shots.real .ba .layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }
.shots.real .ba .after { background: #111; }
.shots.real .ba .after::before { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 24px; background: rgba(5,6,8,.9); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .3s; cursor: zoom-out; }
.lightbox.show { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1400px, 100%); max-height: 100%; border-radius: 14px; box-shadow: 0 40px 80px -30px #000; transform: scale(.94); transition: transform .45s var(--ease); }
.lightbox.show img { transform: none; }
@media (max-width: 1080px) { .shots.real { grid-template-columns: 1fr 1fr; } .shots.real > :first-child { grid-column: 1 / -1; } }
@media (max-width: 700px) { .shots.real { grid-template-columns: 1fr; } }
