/* FiveZone Police PC - web demo (home screen, toasts, most wanted TV). Not part of the resource. */
body.demo {
    background: radial-gradient(1200px 700px at 15% -10%, #1c2430 0%, transparent 60%),
                radial-gradient(900px 600px at 110% 110%, #241d0a 0%, transparent 55%), #0b0e12;
}

#demo-home {
    position: fixed; inset: 0; overflow-y: auto; z-index: 5;
    display: flex; justify-content: center; padding: 40px 16px 32px;
}
#demo-home.hidden { display: none; }
.dh-wrap { width: 100%; max-width: 1180px; }
.dh-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.dh-logo {
    width: 58px; height: 58px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center;
    background: linear-gradient(145deg, var(--accent), #a8810a); color: #17140a; box-shadow: 0 10px 30px rgba(241, 196, 15, .25);
}
.dh-logo svg.i { width: 30px; height: 30px; stroke-width: 1.8; }
.dh-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.dh-head p { color: var(--muted); font-size: 14px; margin-top: 3px; }
.dh-store { margin-left: auto; padding: 10px 18px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }

.dh-note {
    display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; margin-bottom: 22px; border-radius: 10px;
    background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--text); font-size: 13px; line-height: 1.5;
}
.dh-note svg.i { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.dh-mobile { display: none; margin: -10px 0 18px; color: var(--muted); font-size: 12px; }
.dh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.dh-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 9px; text-align: left; cursor: pointer;
    padding: 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-2); color: var(--text);
    font: inherit; transition: transform .15s, border-color .15s, background .15s;
}
.dh-card:hover { transform: translateY(-2px); border-color: var(--accent-line); background: var(--panel-2); }
.dh-card.big {
    grid-column: span 2; grid-row: span 2; padding: 26px;
    background: linear-gradient(160deg, #1d2633 0%, var(--panel) 70%);
}
.dh-card.big .dh-t { font-size: 22px; }
.dh-card.big .dh-x { font-size: 14px; }
.dh-card.big .app-ico { width: 64px; height: 64px; border-radius: 17px; }
.dh-card.big .app-ico svg.i { width: 32px; height: 32px; }
.dh-t { font-size: 16px; font-weight: 700; }
.dh-x { color: var(--muted); font-size: 13px; line-height: 1.5; flex: 1; }
.dh-btn { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 700; font-size: 13px; margin-top: 4px; }
.dh-card.big .dh-btn { background: var(--accent); color: #17140a; padding: 9px 16px; border-radius: 9px; font-size: 14px; }

.dh-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.dh-foot span { padding: 5px 11px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 12px; }

#demo-back {
    position: fixed; left: 14px; bottom: 14px; z-index: 100000; display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 13px; border-radius: 9px; border: 1px solid var(--accent-line); background: #151a21; color: var(--accent);
    font: inherit; font-weight: 700; font-size: 12px; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
#demo-back:hover { background: #1f2630; }
#demo-back.hidden { display: none; }

#demo-toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 100001; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(520px, calc(100% - 32px)); }
.demo-toast {
    padding: 10px 16px; border-radius: 10px; background: #1b2129; border: 1px solid var(--line-2); border-left: 3px solid var(--info);
    color: var(--text); font-size: 13px; box-shadow: var(--shadow); animation: dtIn .2s ease-out; transition: opacity .3s, transform .3s;
}
.demo-toast.ok { border-left-color: var(--ok); }
.demo-toast.bad { border-left-color: var(--bad); }
.demo-toast.out { opacity: 0; transform: translateY(-6px); }
@keyframes dtIn { from { opacity: 0; transform: translateY(-8px); } }

#demo-wanted {
    position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    background: rgba(5, 7, 10, .92); padding: 16px;
}
#demo-wanted.hidden { display: none; }
.dw-tv {
    width: min(1280px, calc(100vw - 32px), calc((100vh - 100px) * 16 / 9)); aspect-ratio: 16 / 9; position: relative; overflow: hidden;
    border: 10px solid #050505; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .8), 0 0 0 1px #2a2f36;
}
.dw-tv iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; border: 0; transform-origin: 0 0; }

@media (max-width: 720px) {
    #demo-home { padding-top: 24px; }
    .dh-head { flex-wrap: wrap; }
    .dh-store { margin-left: 0; }
    .dh-head h1 { font-size: 22px; }
    .dh-card.big { grid-column: auto; grid-row: auto; }
    .dh-mobile { display: block; }
}
