/* Phone emulator stage */
body { background: radial-gradient(900px 600px at 50% 120%, color-mix(in srgb, var(--c-primary) 60%, #000) 0%, transparent 70%), #0E1117; color: #E8EAF0; min-height: 100vh; overflow-x: hidden; }
.emu-bar { height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 20px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.emu-back { display: flex; gap: 6px; align-items: center; font-size: 14px; color: rgba(255, 255, 255, .7); }
.emu-back:hover { color: #fff; }
.emu-brand { display: flex; gap: 10px; align-items: center; margin: 0 auto; }
.emu-brand img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; background: #fff; }
.emu-brand b { font-family: var(--font-heading); }
.emu-brand span { font-size: 12px; background: rgba(255, 255, 255, .1); padding: 2px 8px; border-radius: 99px; color: rgba(255, 255, 255, .75); }
.emu-actions { display: flex; gap: 8px; align-items: center; }
.emu-actions select { background: #1B1F27; color: #fff; border: 1px solid rgba(255, 255, 255, .15); border-radius: 99px; padding: 7px 12px; font-size: 13px; }
.emu-btn { background: #1B1F27; color: #fff; border: 1px solid rgba(255, 255, 255, .15); }
.emu-btn:hover { border-color: rgba(255, 255, 255, .4); }
.emu-btn.accent { background: var(--c-accent); color: var(--c-on-accent); border-color: transparent; }

.emu-stage { display: grid; grid-template-columns: 260px 1fr 280px; gap: 24px; padding: 18px 24px; align-items: start; min-height: calc(100vh - 64px); }
.emu-tour h2 { color: #fff; font-size: 18px; margin: 4px 0 4px; }
.emu-tour > p { font-size: 13px; color: rgba(255, 255, 255, .6); }
.emu-tour ol { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 2px; counter-reset: t; }
.emu-tour li { counter-increment: t; }
.emu-tour button { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; padding: 8px 10px; border-radius: 10px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.emu-tour button::before { content: counter(t); width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: 11px; display: grid; place-items: center; }
.emu-tour button i { font-size: 18px; color: var(--c-highlight); }
.emu-tour button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.emu-tour button.on { background: var(--c-accent); color: var(--c-on-accent); }
.emu-tour button.on::before { background: rgba(0, 0, 0, .2); }
.emu-tour button.on i { color: inherit; }
.emu-toggle { display: flex; gap: 8px; align-items: center; font-size: 13px; background: rgba(255, 255, 255, .06); padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.emu-toggle input { accent-color: var(--c-accent); width: 16px; height: 16px; }

.device-wrap { display: grid; justify-items: center; gap: 14px; }
.device-wrap > .device { margin-bottom: calc(var(--scaled-h, 880px) - (var(--h) + 28px)); }
.device { --w: 393px; --h: 852px; position: relative; width: calc(var(--w) + 28px); height: calc(var(--h) + 28px); padding: 14px; border-radius: 62px; background: linear-gradient(145deg, #3A3D44, #17191D 40%, #2A2D33); box-shadow: 0 0 0 2px #4A4D55, 0 50px 100px -30px rgba(0, 0, 0, .8), inset 0 0 6px rgba(255, 255, 255, .15); transform-origin: top center; flex-shrink: 0; }
.device-screen { position: relative; width: 100%; height: 100%; border-radius: 48px; overflow: hidden; background: #000; }
.device iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.cutout { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 122px; height: 35px; border-radius: 20px; background: #000; z-index: 3; pointer-events: none; }
.device-btn { position: absolute; width: 4px; border-radius: 2px; background: #2A2D33; }
.device-btn.b1 { left: -4px; top: 180px; height: 34px; }
.device-btn.b2 { left: -4px; top: 240px; height: 64px; }
.device-btn.b3 { right: -4px; top: 260px; height: 96px; }
.device[data-model="pixel"] { border-radius: 48px; background: linear-gradient(145deg, #E5E3DF, #B9B6B0); box-shadow: 0 0 0 2px #CFCBC4, 0 50px 100px -30px rgba(0, 0, 0, .8); }
.device[data-model="pixel"] .device-screen { border-radius: 36px; }
.device[data-model="pixel"] .cutout, .device[data-model="galaxy"] .cutout { width: 14px; height: 14px; top: 14px; border-radius: 50%; }
.device[data-model="galaxy"] { border-radius: 40px; background: linear-gradient(145deg, #2C2F36, #0F1013); padding: 10px; width: calc(var(--w) + 20px); height: calc(var(--h) + 20px); }
.device[data-model="galaxy"] .device-screen { border-radius: 30px; }
.device-controls { display: flex; gap: 8px; }
.device-controls button { display: flex; gap: 6px; align-items: center; font-size: 13px; color: rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .06); padding: 7px 14px; border-radius: 99px; }
.device-controls button:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.emu-side { display: grid; gap: 16px; }
.emu-card { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; padding: 16px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.emu-card h3 { color: #fff; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.emu-card h3 i { font-size: 22px; color: var(--c-highlight); }
.emu-card b { color: #fff; }
.qr { background: #fff; border-radius: 12px; padding: 8px; width: 170px; margin: 10px 0; }
.qr svg { display: block; width: 100%; height: auto; }
.emu-ticks { padding-left: 18px; margin: 8px 0 0; display: grid; gap: 4px; }

@media (max-width: 1100px) {
  .emu-stage { grid-template-columns: 1fr; justify-items: center; }
  .emu-tour { order: 2; width: min(520px, 100%); }
  .emu-tour ol { grid-template-columns: 1fr 1fr; }
  .emu-side { order: 3; width: min(520px, 100%); }
  .emu-brand span, .emu-actions .emu-btn { display: none; }
}
@media (max-width: 640px) {
  .emu-tour ol { grid-template-columns: 1fr; }
  .emu-bar { padding: 0 12px; gap: 8px; }
  .emu-brand b { display: none; }
}
