/*
 * Prank Screen Studio: the tool's own components, styled in the site's design language (25 Nov 2026, written new on the
 * UltraCompress Pro template). The first part is the shared block of Manifest 369's file, unchanged (tokens, page, hero,
 * buttons, fields, windows, toasts, information sections). Base: /libs/site-pages.css (tokens, Inter and Space Grotesk,
 * theme toggle, focus rings) and /libs/shared-nav.css (the site's header and footer). The second part is the tool: the
 * stage with its monitor (always dark, like a studio at night), the strip of screens, the card with five tabs, the gallery
 * (a dark console of every screen), the full screen and the Gotcha, and the pretend desktop's own look (dark or light, set
 * on the desktop, not by the page theme). Light is the default; dark applies when <html> has no data-theme. Written by
 * hand: this file is the source.
 */

/* ----- Tokens the tool adds ----- */
:root {
    --surface: #ffffff;
    --surface-2: #f3f4f8;
    --ring: rgba(139, 92, 246, 0.18);
    --app-max: 1600px;
    --radius-lg: 16px;
    --line: rgba(0, 0, 0, 0.1);
    --line-strong: rgba(0, 0, 0, 0.24);
    --ok: #166534;
    --ok-soft: rgba(22, 101, 52, 0.09);
    --bad: #b91c1c;
    --bad-soft: rgba(185, 28, 28, 0.08);
    --warn: #92400e;
    --warn-soft: rgba(217, 119, 6, 0.1);
}
:root:not([data-theme="light"]) {
    --surface: #14141f;
    --surface-2: rgba(255, 255, 255, 0.05);
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.26);
    --ok: #4ade80;
    --ok-soft: rgba(74, 222, 128, 0.1);
    --bad: #f87171;
    --bad-soft: rgba(248, 113, 113, 0.1);
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, 0.1);
}

/* ----- Page: full width, the page provides the side space ----- */
.container.app-container { max-width: calc(var(--app-max) + 2 * var(--content-gutter)); margin-top: 16px; }
@media (min-width: 640px) { .container.app-container { margin-top: 24px; } }

/* ----- The site header is the first thing on the page and stays at the top ----- */
body { padding-top: 0; }
body > header { position: sticky; top: 0; z-index: 50; }
header .site-nav { position: relative; top: auto; }
.theme-toggle { top: 90px; }
@media (max-width: 639.98px) { .theme-toggle { top: 75px; } } /* the header is 81 px tall from 640 px, 65 px below */

/* ----- Hero ----- */
.app-hero { margin: 0 0 2rem; text-align: center; }
.app-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 1.25rem; font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--text-strong); }
.app-brand img { width: 44px; height: 44px; border-radius: 12px; display: block; }
.app-hero h1 { margin-bottom: 0.75rem; }
.app-tagline { color: var(--text-2); font-size: 1.125rem; line-height: 1.6; max-width: 46rem; margin: 0 auto; }

/* ----- Small helpers ----- */
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--text-2); }
.small { font-size: 0.9rem; }
.block { display: block; }
.hint { color: var(--text-3); font-size: 0.8rem; font-weight: 400; line-height: 1.45; }
.err { color: var(--bad); font-size: 0.85rem; font-weight: 600; }
.err:empty { display: none; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link:hover { color: var(--link-hover); }
code { font-size: 0.85em; padding: 1px 6px; border-radius: 6px; background: var(--code-bg); color: var(--code-text); }
kbd { font-family: inherit; font-size: 0.72rem; font-weight: 700; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--chip-border); background: var(--chip); color: var(--text-strong); }

/* ----- Buttons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 9999px; font-family: inherit; font-weight: 600; font-size: 0.95rem; line-height: 1.2; padding: 12px 24px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn .ico { width: 17px; height: 17px; }
.btn-primary { background: var(--gradient-brand); color: #fff; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text-strong); border: 1px solid var(--surface-border); padding: 11px 23px; }
.btn-secondary:hover:not(:disabled) { border-color: var(--brand); color: var(--link); transform: translateY(-2px); }
.btn-danger { background: var(--surface); color: var(--danger); border: 1px solid rgba(185, 28, 28, 0.35); padding: 11px 23px; }
.btn-danger:hover:not(:disabled) { background: var(--danger-strong); color: #fff; border-color: transparent; transform: translateY(-2px); }
.btn-sm { font-size: 0.85rem; padding: 9px 16px; }
.btn-secondary.btn-sm, .btn-danger.btn-sm { padding: 8px 15px; }
.btn-stack { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); flex-shrink: 0; padding: 0; font-family: inherit; transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease; }
.icon-btn:hover { border-color: var(--brand); color: var(--link); background: var(--surface); }
.icon-btn.del:hover { border-color: var(--danger); color: var(--danger); }
.icon-btn:focus-visible, .link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ----- Toolbar ----- */
.app-shell { margin: 0 0 3rem; scroll-margin-top: 90px; }
.app-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 1.25rem; }
.toolbar-left, .toolbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.shell-hint { margin-top: 14px; }

/* ----- Fields ----- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.label { font-weight: 600; font-size: 0.85rem; color: var(--text-strong); }
.input, .select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 14px; background: var(--field); border: 1px solid var(--field-border); border-radius: 12px; font-family: inherit; font-size: 0.95rem; color: var(--text); outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.input:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.input::placeholder { color: var(--placeholder); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.select { width: auto; max-width: 100%; appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; cursor: pointer; }
.select option { color: #0a0a14; background: #fff; }
.check-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 0.925rem; color: var(--text); padding: 4px 0; }
.check-row input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 9999px; border: 1px solid var(--chip-border); background: var(--surface); font-family: inherit; font-size: 0.85rem; font-weight: 600; color: var(--text-2); cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.seg button:hover { border-color: var(--brand); color: var(--link); transform: translateY(-1px); }
.seg button[aria-pressed="true"] { background: var(--gradient-brand); color: #fff; border-color: transparent; }
.seg button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 9999px; border: 1px solid var(--chip-border); background: var(--chip); font-family: inherit; font-size: 0.8rem; font-weight: 600; color: var(--text-2); cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.chip .ico { width: 15px; height: 15px; color: var(--link); }
.chip:hover { border-color: var(--brand); color: var(--link); transform: translateY(-1px); }
.chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ----- Windows ----- */
.dialog { margin: auto; border: 1px solid var(--surface-border); border-radius: 20px; padding: 0; width: min(520px, calc(100vw - 16px)); max-height: calc(100vh - 32px); background: var(--surface); color: var(--text); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35); }
.dialog--narrow { width: min(420px, calc(100vw - 16px)); }
.dialog--wide { width: min(680px, calc(100vw - 16px)); }
.dialog::backdrop { background: rgba(10, 10, 20, 0.6); backdrop-filter: blur(6px); }
.dialog[open] { animation: pop 0.2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }
.dialog-head { padding: 18px 20px; border-bottom: 1px solid var(--surface-border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-title { margin: 0; font-size: 1.15rem; }
.dialog-close { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--chip-border); background: var(--chip); color: var(--text-strong); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: border-color 0.2s ease, color 0.2s ease; }
.dialog-close:hover { border-color: var(--brand); color: var(--link); }
.dialog-body { padding: 20px; overflow-y: auto; max-height: calc(100vh - 210px); display: flex; flex-direction: column; gap: 14px; }
.dialog-actions { padding: 14px 20px; border-top: 1px solid var(--surface-border); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.confirm-message { margin: 0; color: var(--text); }

/* ----- Toasts ----- */
.toasts { position: fixed; bottom: 24px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { pointer-events: auto; background: #0a0a14; color: #fff; border: 1px solid rgba(255, 255, 255, 0.12); border-left: 4px solid var(--brand); border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3); min-width: 260px; max-width: 420px; font-size: 0.875rem; font-weight: 500; overflow-wrap: anywhere; animation: slideIn 0.3s ease; transition: opacity 0.3s ease, transform 0.3s ease; }
.toast button { background: none; border: 0; padding: 0; color: #c4b5fd; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; white-space: nowrap; }
.toast.leaving { opacity: 0; transform: translateX(40px); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.toast.good { border-left-color: #4ade80; }
.toast.bad { border-left-color: #f87171; }

/* ----- Information sections ----- */
.info-section { margin: 0 0 2.5rem; }
.info-section h2 { font-size: 1.75rem; margin: 0 0 1.25rem; }
.info-section .info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1rem 0 1.5rem; }
.info-stack { display: grid; gap: 12px; }
.info-card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: 16px; box-shadow: var(--surface-shadow); padding: 20px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--surface-hover-shadow); }
.info-card--small { padding: 16px; box-shadow: none; }
.info-card h3 { margin: 0 0 0.75rem; font-size: 1.15rem; }
.info-card p { color: var(--text-2); margin-bottom: 0.75rem; }
.info-card p:last-child { margin-bottom: 0; }
.step-card { position: relative; padding-top: 24px; }
.step-num { position: absolute; top: -16px; left: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--gradient-brand); color: #fff; font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 0.75rem; }
.step-head h3 { margin: 0; }
.step-emoji { font-size: 1.6rem; line-height: 1; }
.info-section details.info-card { padding: 0; }
.info-section details.info-card summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--text-strong); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.info-section details.info-card summary::-webkit-details-marker { display: none; }
.info-section details.info-card summary::after { content: '+'; color: var(--link); font-weight: 700; font-size: 1.2rem; line-height: 1; flex-shrink: 0; }
.info-section details.info-card[open] summary::after { content: '\2212'; }
.info-section details.info-card p { padding: 0 20px 16px; margin: 0; color: var(--text-2); }

/* ===== Prank Screen Studio components ===== */

/* ----- The site's text rules (p, ul, li, headings) must not reach the tool: same weight as the site's, loaded later ----- */
:where(.app-shell) p, :where(.app-shell) ul, :where(.app-shell) ol, :where(.app-shell) li, :where(.app-shell) dl, :where(.app-shell) dd, :where(.dialog) p, :where(.dialog) ul, :where(.dialog) li, :where(.ps-sim) p, :where(.ps-sim) ul, :where(.ps-sim) li, :where(.ps-sim) ol { margin: 0; line-height: 1.5; }
:where(.app-shell) h2, :where(.app-shell) h3, :where(.app-shell) h4, :where(.ps-sim) h2, :where(.ps-sim) h3 { margin: 0; line-height: 1.25; }
:root { --head: 81px; }
@media (max-width: 639.98px) { :root { --head: 65px; } }
.app-shell { scroll-margin-top: calc(var(--head) + 16px); }
.info-section > p { color: var(--text-2); max-width: 60rem; margin: 0 0 1rem; }
main [hidden], .dialog [hidden], .ps-sim [hidden] { display: none !important; }

/* ----- Cards: the site's white cards, one layer ----- */
.card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-lg); box-shadow: var(--surface-shadow); padding: 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sub-title { font-size: 1rem; color: var(--text-strong); margin-bottom: 4px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.ps-row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* sliders and switches (Frequency Studio's) */
.value { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; font-size: 1rem; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 32px; margin: 0; padding: 0; background: transparent; cursor: pointer; --fill: 50%; }
.range:focus { outline: none; }
.range::-webkit-slider-runnable-track { height: 12px; border-radius: 9999px; border: 1px solid var(--line); background: linear-gradient(90deg, var(--brand) 0, var(--brand-2) var(--fill), var(--surface-2) var(--fill), var(--surface-2) 100%); }
.range::-moz-range-track { height: 12px; border-radius: 9999px; border: 1px solid var(--line); background: linear-gradient(90deg, var(--brand) 0, var(--brand-2) var(--fill), var(--surface-2) var(--fill), var(--surface-2) 100%); }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -8px; border-radius: 50%; background: #ffffff; border: 2px solid var(--brand); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #ffffff; border: 2px solid var(--brand); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--brand); outline-offset: 2px; }
.range:focus-visible::-moz-range-thumb { outline: 2px solid var(--brand); outline-offset: 2px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 0.925rem; color: var(--text-strong); }
.switch-text { display: flex; flex-direction: column; min-width: 0; }
.switch { position: relative; width: 52px; height: 44px; flex: none; padding: 0; border: 0; background: transparent; cursor: pointer; }
.switch::before { content: ""; position: absolute; left: 3px; top: 8px; width: 46px; height: 28px; border-radius: 14px; background: var(--line-strong); transition: background 0.2s ease; }
.switch::after { content: ""; position: absolute; top: 12px; left: 7px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.2s ease; }
.switch[aria-checked="true"]::before { background: var(--gradient-brand); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.switch:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 16px; }
.ps-color { width: 100%; height: 44px; padding: 4px; border: 1px solid var(--field-border); border-radius: 12px; background: var(--field); cursor: pointer; }
.ps-note { padding: 14px 16px; border-radius: 12px; background: var(--tint-brand); border: 1px solid var(--tint-brand-border); color: var(--text); font-size: 0.875rem; }
.ps-note strong { color: var(--text-strong); }

/* ----- Layout: the stage beside the card with five tabs; one above the other on narrower screens ----- */
.ps-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .ps-layout { grid-template-columns: minmax(0, 1fr) minmax(380px, 440px); } }

/* ----- The stage: always dark, like a studio at night ----- */
.ps-stage { position: relative; min-width: 0; border-radius: 16px; overflow: hidden; color: #f1f5ff; padding: 20px; display: flex; flex-direction: column; gap: 16px; isolation: isolate;
    background: radial-gradient(120% 70% at 50% 0%, rgba(124, 58, 237, 0.35) 0%, rgba(124, 58, 237, 0) 60%), radial-gradient(80% 60% at 100% 100%, rgba(236, 72, 153, 0.22) 0%, rgba(236, 72, 153, 0) 60%), linear-gradient(180deg, #0f1022 0%, #07070f 100%);
    box-shadow: 0 20px 50px rgba(15, 16, 34, 0.35); }
.ps-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 100%); -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 100%); }
.ps-stage-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ps-now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ps-now-emoji { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(236, 72, 153, 0.35)); border: 1px solid rgba(255, 255, 255, 0.14); flex: none; }
.ps-now-words { min-width: 0; }
:where(.app-shell) p.ps-now-cat { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #c4b5fd; }
.ps-now-name { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 1.5rem; font-weight: 700; color: #ffffff; }
.ps-tools { display: flex; align-items: center; gap: 8px; }
.ps-tool { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); color: #ffffff; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease; }
.ps-tool:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.5); transform: translateY(-2px); }
.ps-tool .ico { width: 20px; height: 20px; }
#favBtn[aria-pressed="true"] { color: #fde047; border-color: rgba(253, 224, 71, 0.6); }
#favBtn[aria-pressed="true"] .ico { fill: currentColor; }
.ps-tool .ico-off { display: none; }
#soundBtn[aria-pressed="false"] .ico-on { display: none; }
#soundBtn[aria-pressed="false"] .ico-off { display: inline; }
.ps-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); color: #ffffff; font-family: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.ps-pill:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.5); transform: translateY(-2px); }
.ps-tool:focus-visible, .ps-pill:focus-visible, .ps-go:focus-visible, .ps-ghost:focus-visible, .ps-chip:focus-visible, .ps-strip-arrow:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 2px; }

/* the monitor */
.ps-monitor { display: flex; flex-direction: column; align-items: center; width: 100%; }
.ps-bezel { position: relative; width: min(100%, 960px); padding: 12px 12px 26px; border-radius: 20px; background: linear-gradient(145deg, #30344a 0%, #14161f 55%, #0a0b11 100%); box-shadow: 0 34px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.ps-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000000; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.8); }
.ps-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 32%, rgba(255, 255, 255, 0) 45%); }
.ps-preview { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ps-preview:focus-visible { outline: 3px solid #c4b5fd; outline-offset: -3px; }
.ps-stage.is-editing .ps-preview { cursor: move; }
.ps-domprev { position: absolute; inset: 0; overflow: hidden; background: #000; }
.ps-domprev-inner { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; }
.ps-live { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 8px; border-radius: 9999px; background: rgba(0, 0, 0, 0.55); color: #ffffff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; pointer-events: none; }
.ps-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 8px #ef4444; animation: psLive 1.6s ease-in-out infinite; }
@keyframes psLive { 50% { opacity: 0.3; } }
.ps-led { position: absolute; left: 50%; bottom: 9px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.ps-neck { width: min(16%, 140px); height: 38px; background: linear-gradient(90deg, #1b1e2a, #343a52 50%, #1b1e2a); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.ps-foot { width: min(36%, 320px); height: 10px; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #3a3f58, #171923); box-shadow: 0 14px 24px rgba(0, 0, 0, 0.5); }
:where(.app-shell) p.ps-now-desc { color: #cfd5f2; font-size: 1rem; text-align: center; max-width: 52rem; margin: 0 auto; }
.ps-launch { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.ps-go { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 30px; border: 0; border-radius: 9999px; background: var(--gradient-brand); color: #ffffff; font-family: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer; box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.ps-go::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid rgba(196, 181, 253, 0.6); animation: psRing 2.4s ease-out infinite; pointer-events: none; }
@keyframes psRing { 0% { opacity: 0.9; transform: scale(0.96); } 80%, 100% { opacity: 0; transform: scale(1.12); } }
.ps-go:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(236, 72, 153, 0.55); }
.ps-go .ico { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.ps-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.06); color: #ffffff; font-family: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.ps-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.55); transform: translateY(-2px); }
.ps-ghost[aria-pressed="true"] { background: rgba(196, 181, 253, 0.2); border-color: #c4b5fd; }
:where(.app-shell) p.ps-safe { text-align: center; color: #b8bfe0; font-size: 0.85rem; }
.ps-strip-wrap { display: flex; align-items: center; gap: 8px; }
.ps-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 8px; flex: 1; min-width: 0; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.25) transparent; }
.ps-strip-arrow { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); color: #ffffff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ps-strip-arrow:hover { background: rgba(255, 255, 255, 0.15); }
.ps-chip { flex: none; scroll-snap-align: center; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.05); color: #e6e9fb; font-family: inherit; font-size: 0.85rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.ps-chip:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-1px); }
.ps-chip[aria-pressed="true"] { background: var(--gradient-brand); border-color: transparent; color: #ffffff; box-shadow: 0 4px 16px rgba(139, 92, 246, 0.45); }
.ps-chip-emoji { font-size: 1.05rem; line-height: 1; }

/* ----- The card with five tabs ----- */
.ps-panel { padding: 0; gap: 0; overflow: hidden; }
@media (min-width: 1100px) { .ps-panel { position: sticky; top: calc(var(--head) + 16px); max-height: calc(100vh - var(--head) - 32px); } }
.ps-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; padding: 6px; border-bottom: 1px solid var(--surface-border); flex: none; }
.ps-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; padding: 4px 2px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font-family: inherit; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.ps-tabs button span { font-size: 1.15rem; line-height: 1; }
.ps-tabs button:hover { color: var(--link); }
.ps-tabs button[aria-selected="true"] { background: var(--tint-brand); color: var(--link); box-shadow: inset 0 0 0 1px var(--tint-brand-border); }
.ps-tabs button:focus-visible, .ps-pane:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.ps-pane { flex: 1; min-height: 0; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.ps-fields { display: flex; flex-direction: column; gap: 16px; }
.ps-pane .seg button { flex: 1 1 auto; }

/* combos */
.ps-combos { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ps-combo { border: 1px solid var(--surface-border); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.ps-combo:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--surface-hover-shadow); }
.ps-combo-top { display: flex; gap: 12px; align-items: flex-start; }
.ps-combo-emoji { font-size: 1.8rem; line-height: 1; flex: none; }
.ps-combo-name { font-size: 1rem; color: var(--text-strong); margin-bottom: 2px; }
.ps-steps { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ps-step { display: inline-flex; padding: 3px 10px; border-radius: 9999px; background: var(--chip); border: 1px solid var(--chip-border); font-size: 0.78rem; font-weight: 600; color: var(--text-2); }
.ps-step-arrow { color: var(--text-3); font-size: 0.8rem; }
.ps-csteps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ps-cstep { display: grid; grid-template-columns: 26px minmax(0, 1.4fr) minmax(0, 1fr) 36px 36px; gap: 6px; align-items: center; }
.ps-cstep .select { width: 100%; }
.ps-cstep-n { width: 26px; height: 26px; border-radius: 50%; background: var(--gradient-brand); color: #fff; font-size: 0.8rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* more */
.ps-today { border-radius: 14px; padding: 16px; background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(236, 72, 153, 0.12)); border: 1px solid var(--tint-brand-border); display: flex; flex-direction: column; gap: 10px; }
.ps-today-row { display: flex; gap: 12px; align-items: center; }
.ps-today-emoji { font-size: 2.2rem; line-height: 1; }
:where(.app-shell) p.ps-today-name { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--text-strong); }
.ps-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ps-stat { border: 1px solid var(--surface-border); border-radius: 12px; padding: 10px 12px; }
.ps-stats dt { font-size: 0.78rem; color: var(--text-2); font-weight: 600; }
.ps-stats dd { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--text-strong); margin: 2px 0 0; }
.ps-badges { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ps-badge { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; border: 1px dashed var(--line-strong); }
.ps-badge.is-got { border-style: solid; border-color: var(--tint-brand-border); background: var(--tint-brand); }
.ps-badge-emoji { font-size: 1.5rem; line-height: 1; filter: grayscale(1); opacity: 0.5; }   /* only the picture is dimmed, the words keep their contrast */
.ps-badge.is-got .ps-badge-emoji { opacity: 1; }
.ps-badge.is-got .ps-badge-emoji { filter: none; }
:where(.app-shell) p.ps-badge-name { font-weight: 700; font-size: 0.85rem; color: var(--text-strong); }
:where(.app-shell) p.ps-badge-how { font-size: 0.78rem; color: var(--text-2); line-height: 1.35; }
.ps-keys { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.875rem; color: var(--text); }

/* the creator */
.cr-list, .cr-edit { display: flex; flex-direction: column; gap: 14px; }
.cr-templates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cr-tpl { display: flex; flex-direction: column; gap: 6px; padding: 6px 6px 10px; border-radius: 12px; border: 1px solid var(--surface-border); background: var(--surface); color: var(--text-strong); font-family: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.cr-tpl:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--surface-hover-shadow); }
.cr-tpl-c, .cr-design-c { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; display: block; background: #000; }
.cr-designs { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cr-design { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px; border: 1px solid var(--surface-border); border-radius: 12px; }
.cr-design-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cr-design-name { font-weight: 700; color: var(--text-strong); overflow-wrap: anywhere; }
:where(.app-shell) p.cr-empty { color: var(--text-2); font-size: 0.9rem; }
.cr-box { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 1px solid var(--surface-border); }
.cr-els { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cr-el { display: flex; align-items: center; gap: 4px; border: 1px solid var(--surface-border); border-radius: 10px; padding: 2px 4px 2px 2px; }
.cr-el.is-sel { border-color: var(--brand); background: var(--tint-brand); }
.cr-el-pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 8px; border: 0; background: transparent; font-family: inherit; font-size: 0.85rem; font-weight: 600; color: var(--text-strong); text-align: left; cursor: pointer; border-radius: 8px; }
.cr-el-pick span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-el-emoji { font-size: 1.1rem; }
.cr-syms .chip { min-width: 44px; justify-content: center; font-size: 0.95rem; }
.chip[aria-pressed="true"] { background: var(--gradient-brand); color: #fff; border-color: transparent; }
.cr-actions { position: sticky; bottom: -20px; padding: 12px 0; background: var(--surface); border-top: 1px solid var(--surface-border); }

/* ----- The gallery: a dark console of every screen ----- */
.ps-gallery { margin-top: 20px; border-radius: 16px; padding: 20px; color: #eef0ff; background: radial-gradient(90% 60% at 0% 0%, rgba(99, 102, 241, 0.22) 0%, rgba(99, 102, 241, 0) 60%), linear-gradient(180deg, #0d0f1f 0%, #080810 100%); box-shadow: 0 20px 50px rgba(15, 16, 34, 0.3); }
.ps-gal-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ps-gal-title { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 1.6rem; font-weight: 700; color: #ffffff; }
:where(.app-shell) p.ps-gal-count { color: #a9b0d6; font-size: 0.875rem; }
.ps-search { width: min(100%, 340px); min-height: 44px; padding: 10px 16px; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); color: #ffffff; font-family: inherit; font-size: 0.95rem; outline: none; }
.ps-search::placeholder { color: #9aa2c8; }
.ps-search:focus { border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.3); }
.ps-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ps-filter { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 14px; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.04); color: #dfe3ff; font-family: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.ps-filter:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); }
.ps-filter[aria-pressed="true"] { background: var(--gradient-brand); border-color: transparent; color: #ffffff; }
.ps-filter:focus-visible, .ps-card-main:focus-visible, .ps-card-acts button:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 2px; }
.ps-filter-n { font-size: 0.75rem; padding: 1px 7px; border-radius: 9999px; background: rgba(255, 255, 255, 0.14); }
.ps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 899px) { .ps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 560px) and (max-width: 899px) { .ps-grid.is-odd > .ps-card:last-child { grid-column: span 2; } .ps-grid.is-odd > .ps-card--special:last-child .ps-card-art { aspect-ratio: 32 / 9; } }
@media (max-width: 559px) { .ps-grid { grid-template-columns: minmax(0, 1fr); } }
:where(.app-shell) p.ps-grid-none { grid-column: 1 / -1; color: #c3c9ea; text-align: center; padding: 30px 10px; }
.ps-card { position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, #161a2e 0%, #10121f 100%); border: 1px solid rgba(255, 255, 255, 0.08); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.ps-card:hover { transform: translateY(-6px); border-color: rgba(167, 139, 250, 0.55); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(167, 139, 250, 0.25), 0 0 40px rgba(139, 92, 246, 0.25); }
.ps-card.is-sel { border-color: #a78bfa; box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.55); }
.ps-card-main { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; font: inherit; color: inherit; }
.ps-card-c { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; transition: transform 0.4s ease; }
.ps-card:hover .ps-card-c { transform: scale(1.04); }
.ps-card-cat { position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 9999px; background: rgba(0, 0, 0, 0.62); color: #ffffff; font-size: 0.72rem; font-weight: 700; }
.ps-card-body { padding: 14px 16px 6px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ps-card-name { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 1.1rem; font-weight: 700; color: #ffffff; }
:where(.app-shell) p.ps-card-text { color: #b9bfde; font-size: 0.875rem; line-height: 1.5; }
.ps-card-acts { display: flex; gap: 8px; padding: 10px 16px 16px; align-items: center; }
.ps-card-go { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 18px; border-radius: 9999px; border: 0; background: var(--gradient-brand); color: #fff; font-family: inherit; font-weight: 700; font-size: 0.85rem; cursor: pointer; box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.ps-card-go:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(236, 72, 153, 0.45); }
.ps-card-cus { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: #e6e9fb; font-family: inherit; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease; }
.ps-card-cus:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.45); }
.ps-card-fav { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); background: transparent; color: #c9cee9; font-size: 1.15rem; line-height: 1; cursor: pointer; transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease; }
.ps-card-fav:hover { transform: scale(1.1); color: #fde047; }
.ps-card-fav[aria-pressed="true"] { color: #fde047; border-color: rgba(253, 224, 71, 0.55); }
.ps-card--special .ps-card-main { background: transparent; }
.ps-card-art { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: radial-gradient(70% 90% at 30% 20%, rgba(244, 114, 182, 0.55), rgba(244, 114, 182, 0) 70%), radial-gradient(70% 90% at 80% 90%, rgba(96, 165, 250, 0.55), rgba(96, 165, 250, 0) 70%), linear-gradient(135deg, #4c1d95, #1e1b4b); }
.ps-card--combos .ps-card-art { background: radial-gradient(70% 90% at 70% 20%, rgba(251, 191, 36, 0.5), rgba(251, 191, 36, 0) 70%), radial-gradient(70% 90% at 20% 90%, rgba(34, 211, 238, 0.45), rgba(34, 211, 238, 0) 70%), linear-gradient(135deg, #831843, #1e1b4b); }
.ps-card-big { font-size: 3.6rem; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4)); transition: transform 0.4s ease; }
.ps-card:hover .ps-card-big { transform: scale(1.15) rotate(-6deg); }

/* page confetti */
.ps-pagefx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2500; }

/* ----- Full screen: the dialog covers everything (above any ad), the stage inside goes full screen ----- */
.ps-sim { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000000; color: #ffffff; overflow: hidden; }
@supports (height: 100dvh) { .ps-sim { height: 100dvh; } }
.ps-sim::backdrop { background: #000000; }
.ps-sim-stage { position: absolute; inset: 0; background: #000000; outline: none; overflow: hidden; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; touch-action: none; }
.ps-sim-stage:fullscreen { width: 100%; height: 100%; }
.ps-sim-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: fill; image-rendering: auto; }
.ps-sim-stage.is-contain .ps-sim-canvas { object-fit: contain; }
.ps-sim-canvas { transition: opacity 0.6s ease; }
.ps-sim-canvas.is-fading { opacity: 0; }
.ps-sim-dom { position: absolute; inset: 0; touch-action: auto; }
.ps-ptr-hide, .ps-ptr-hide *, .ps-ptr-auto.is-idle, .ps-ptr-auto.is-idle * { cursor: none !important; }
.ps-sim-cap { position: absolute; left: 20px; bottom: 20px; z-index: 4; padding: 6px 14px; border-radius: 9999px; background: rgba(0, 0, 0, 0.6); color: #ffffff; font: 600 0.9rem 'Inter', sans-serif; pointer-events: none; }
.ps-gotcha { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 16px; background: radial-gradient(60% 60% at 50% 40%, rgba(236, 72, 153, 0.92), rgba(124, 58, 237, 0.95) 60%, rgba(30, 27, 75, 0.99) 100%); animation: psGotchaIn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2); cursor: default; }
@keyframes psGotchaIn { from { opacity: 0; transform: scale(1.08); } }
.ps-gotcha-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.ps-gotcha-card { position: relative; z-index: 1; width: min(640px, 100%); text-align: center; padding: 32px 24px; border-radius: 28px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.35); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); display: flex; flex-direction: column; gap: 14px; align-items: center; animation: psPop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.4) 0.1s both; }
@keyframes psPop { from { opacity: 0; transform: scale(0.6) rotate(-4deg); } }
:where(.ps-sim) p.ps-gotcha-emoji { font-size: 4.5rem; line-height: 1; animation: psWiggle 1.2s ease-in-out infinite; }
@keyframes psWiggle { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(8deg) scale(1.12); } }
.ps-gotcha-title { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: clamp(2rem, 1.2rem + 4vw, 3.6rem); font-weight: 800; color: #ffffff; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35); overflow-wrap: anywhere; }
:where(.ps-sim) p.ps-gotcha-line { font-size: 1.25rem; color: #fdf4ff; font-weight: 500; }
.ps-gotcha-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
:where(.ps-sim) p.ps-gotcha-note { font-size: 0.9rem; color: #f5e8ff; }
:where(.ps-sim) p.ps-gotcha-brand { font-size: 0.8rem; color: rgba(255, 255, 255, 0.85); letter-spacing: 0.04em; }
.ps-gotcha .ps-go:focus-visible, .ps-gotcha .ps-ghost:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }

/* ===== The pretend desktop (built by desktop.js). Its own look: a modern desktop, dark or light. ===== */
.dk { position: absolute; inset: 0; overflow: hidden; font-family: "Segoe UI", "Segoe UI Variable Text", "Inter", system-ui, -apple-system, sans-serif; font-size: 14px; color: var(--dk-fg); user-select: none; -webkit-user-select: none; cursor: default; line-height: 1.35;
    --dk-fg: #ffffff; --dk-sub: #c9c9d1; --dk-bar: rgba(28, 30, 38, 0.86); --dk-panel: rgba(34, 36, 44, 0.96); --dk-win: #202125; --dk-winbar: #2b2c31; --dk-line: rgba(255, 255, 255, 0.1); --dk-hover: rgba(255, 255, 255, 0.08); --dk-acc: #4cc2ff; --dk-input: #2c2d33; }
.dk[data-dk="light"] { --dk-fg: #111318; --dk-sub: #4b5060; --dk-bar: rgba(240, 242, 247, 0.9); --dk-panel: rgba(249, 250, 252, 0.97); --dk-win: #ffffff; --dk-winbar: #f2f3f6; --dk-line: rgba(0, 0, 0, 0.1); --dk-hover: rgba(0, 0, 0, 0.06); --dk-acc: #0067c0; --dk-input: #ffffff; }
.dk button { font-family: inherit; color: inherit; }
.dk p, .dk h3 { margin: 0; }
.dk-wallc { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dk-trail, .dk-icons, .dk-wins, .dk-dlgs { position: absolute; left: 0; top: 0; right: 0; bottom: 48px; }
.dk-icons { z-index: 1; }
.dk-trail { z-index: 2; pointer-events: none; }
.dk-wins { z-index: 3; pointer-events: none; }
.dk-dlgs { z-index: 4; pointer-events: none; }
.dk-wins > *, .dk-dlgs > * { pointer-events: auto; }
.dk-icon { position: absolute; width: 84px; padding: 6px 4px; border: 1px solid transparent; border-radius: 6px; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: default; color: #ffffff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); transition: left 0.7s cubic-bezier(0.3, 1.4, 0.5, 1), top 0.7s cubic-bezier(0.3, 1.4, 0.5, 1), transform 0.7s ease; }
.dk-icon.is-drag { transition: none; opacity: 0.85; }
.dk-icon:hover { background: rgba(255, 255, 255, 0.12); }
.dk-icon.is-sel { background: rgba(120, 180, 255, 0.28); border-color: rgba(160, 205, 255, 0.55); }
.dk-icon:focus-visible { outline: 1px dotted #ffffff; }
.dk-icon-img { width: 44px; height: 44px; display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); }
.dk-icon-img svg { width: 100%; height: 100%; display: block; }
.dk-icon-label { font-size: 12px; line-height: 1.25; text-align: center; overflow-wrap: anywhere; max-width: 100%; }
.dk[data-icons="s"] .dk-icon-img { width: 32px; height: 32px; }
.dk[data-icons="l"] .dk-icon-img { width: 60px; height: 60px; }
.dk-icons.is-refresh .dk-icon { opacity: 0; transition: opacity 0.1s; }
.dk-rubber { position: absolute; z-index: 2; border: 1px solid rgba(120, 180, 255, 0.9); background: rgba(120, 180, 255, 0.22); pointer-events: none; }
.dk-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 48px; z-index: 30; display: flex; align-items: center; justify-content: center; background: var(--dk-bar); border-top: 1px solid var(--dk-line); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); }
.dk-bar-main { display: flex; align-items: center; gap: 4px; height: 100%; }
.dk[data-bar="left"] .dk-bar { justify-content: flex-start; padding-left: 8px; }
.dk-tb { height: 40px; min-width: 40px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; position: relative; cursor: default; transition: background 0.15s ease; }
.dk-tb:hover, .dk-tb.is-active { background: var(--dk-hover); }
.dk-tb svg { width: 24px; height: 24px; display: block; }
.dk-tb-search { padding: 0 14px 0 10px; border-radius: 20px; background: var(--dk-hover); color: var(--dk-sub); }
.dk-tb-search svg { width: 16px; height: 16px; }
.dk-tb-search span { font-size: 13px; }
.dk-tb-apps { display: flex; align-items: center; gap: 2px; }
.dk-tb-app.is-open::after { content: ""; position: absolute; bottom: 2px; left: 50%; width: 6px; height: 3px; margin-left: -3px; border-radius: 2px; background: var(--dk-sub); transition: width 0.2s ease, margin 0.2s ease; }
.dk-tb-app.is-active::after { width: 16px; margin-left: -8px; background: var(--dk-acc); }
.dk-tray { position: absolute; right: 8px; top: 0; bottom: 0; display: flex; align-items: center; gap: 2px; }
.dk-tray-b { height: 40px; min-width: 32px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; display: inline-flex; align-items: center; gap: 6px; position: relative; cursor: default; }
.dk-tray-b:hover { background: var(--dk-hover); }
.dk-tray-b svg { width: 16px; height: 16px; display: block; }
.dk-q-wifi { display: inline-flex; }
.dk-clock { flex-direction: column; align-items: flex-end; justify-content: center; gap: 0; font-size: 12px; line-height: 1.3; }
.dk-badge { position: absolute; top: 4px; right: 2px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: var(--dk-acc); color: #000; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.dk-pop { position: absolute; bottom: 56px; z-index: 40; background: var(--dk-panel); border: 1px solid var(--dk-line); border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); backdrop-filter: blur(30px) saturate(1.5); -webkit-backdrop-filter: blur(30px) saturate(1.5); animation: dkUp 0.22s cubic-bezier(0.1, 0.9, 0.2, 1); }
@keyframes dkUp { from { opacity: 0; transform: translateY(24px); } }
.dk-start { left: 50%; width: min(640px, calc(100% - 16px)); max-height: calc(100% - 72px); margin-left: calc(min(640px, calc(100% - 16px)) / -2); overflow-y: auto; padding: 22px 26px 0; display: flex; flex-direction: column; gap: 12px; }
.dk[data-bar="left"] .dk-start { left: 8px; margin-left: 0; }
.dk-start-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 38px; border-radius: 19px; background: var(--dk-input); border: 1px solid var(--dk-line); color: var(--dk-sub); }
.dk-start-search svg { width: 16px; height: 16px; flex: none; }
.dk-start-input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--dk-fg); font: inherit; outline: none; }
.dk-start-head { font-weight: 600; font-size: 14px; }
.dk-start-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 4px; }
.dk-start-app { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 0; border-radius: 6px; background: transparent; cursor: default; font-size: 12px; }
.dk-start-app:hover, .dk-start-file:hover { background: var(--dk-hover); }
.dk-start-ic { width: 32px; height: 32px; display: block; flex: none; }
.dk-start-ic svg { width: 100%; height: 100%; display: block; }
.dk-start-none { grid-column: 1 / -1; color: var(--dk-sub); padding: 10px 0; }
.dk-start-rec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.dk-start-file { display: flex; gap: 10px; align-items: center; padding: 8px; border: 0; border-radius: 6px; background: transparent; text-align: left; cursor: default; min-width: 0; }
.dk-start-file > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.dk-start-fname { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-start-when { font-size: 12px; color: var(--dk-sub); }
.dk-start-foot { position: sticky; bottom: 0; margin: 8px -26px 0; padding: 12px 26px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--dk-line); background: var(--dk-panel); }
.dk-start-user { display: flex; align-items: center; gap: 10px; }
.dk-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #60a5fa, #a78bfa); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.dk-avatar svg { width: 20px; height: 20px; }
.dk-start-power { width: 36px; height: 36px; border: 0; border-radius: 6px; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: default; }
.dk-start-power:hover { background: var(--dk-hover); }
.dk-start-power svg { width: 18px; height: 18px; }
.dk-quick { right: 8px; width: min(360px, calc(100% - 16px)); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.dk-q-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dk-q-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 8px; border: 1px solid var(--dk-line); background: var(--dk-hover); font-size: 12px; cursor: default; }
.dk-q-tile.is-on { background: var(--dk-acc); color: #000; border-color: transparent; }
.dk-q-ic svg { width: 18px; height: 18px; display: block; }
.dk-q-slider { display: flex; align-items: center; gap: 10px; }
.dk-q-slider input { flex: 1; accent-color: var(--dk-acc); }
.dk-q-foot { font-size: 12px; color: var(--dk-sub); }
.dk-cal { right: 8px; width: min(320px, calc(100% - 16px)); padding: 16px; }
.dk-cal-head { font-weight: 600; margin-bottom: 10px; }
.dk-cal-month { font-size: 13px; color: var(--dk-sub); margin-bottom: 8px; }
.dk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 12px; }
.dk-cal-dow { color: var(--dk-sub); padding: 4px 0; }
.dk-cal-day { padding: 7px 0; border-radius: 50%; }
.dk-cal-day.is-today { background: var(--dk-acc); color: #000; font-weight: 700; }
.dk-center { right: 8px; width: min(360px, calc(100% - 16px)); max-height: calc(100% - 72px); overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.dk-center-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.dk-link { border: 0; background: transparent; color: var(--dk-acc); cursor: pointer; font-size: 12px; }
.dk-center-item { padding: 10px; border-radius: 8px; background: var(--dk-hover); }
.dk-center-none { color: var(--dk-sub); font-size: 13px; padding: 20px 0; text-align: center; }
.dk-notes { position: absolute; right: 12px; bottom: 60px; z-index: 35; display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100% - 24px)); pointer-events: none; }
.dk-note { position: relative; pointer-events: auto; padding: 12px 36px 12px 14px; border-radius: 10px; background: var(--dk-panel); border: 1px solid var(--dk-line); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); animation: dkSlide 0.35s cubic-bezier(0.1, 0.9, 0.2, 1); transition: opacity 0.3s ease, transform 0.3s ease; }
.dk-note.is-out { opacity: 0; transform: translateX(40px); }
@keyframes dkSlide { from { opacity: 0; transform: translateX(80px); } }
.dk-note-app { font-size: 12px; color: var(--dk-sub); margin-bottom: 4px; }
.dk-note-title { font-weight: 600; font-size: 14px; }
.dk-note-text { font-size: 13px; color: var(--dk-sub); }
.dk-note-x { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border: 0; border-radius: 4px; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: default; }
.dk-note-x svg { width: 10px; height: 10px; }
.dk-note-x:hover { background: var(--dk-hover); }
.dk-note-acts { display: flex; gap: 8px; margin-top: 10px; }
.dk-note-act { flex: 1; padding: 7px 10px; border-radius: 6px; border: 1px solid var(--dk-line); background: var(--dk-hover); font-size: 13px; cursor: default; }
.dk-note-act:first-child { background: var(--dk-acc); color: #000; border-color: transparent; }
.dk-menu { position: absolute; z-index: 45; min-width: 210px; padding: 4px; border-radius: 8px; background: var(--dk-panel); border: 1px solid var(--dk-line); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); }
.dk-menu-item { display: block; width: 100%; text-align: left; padding: 7px 12px; border: 0; border-radius: 4px; background: transparent; font-size: 13px; cursor: default; }
.dk-menu-item:hover { background: var(--dk-hover); }
.dk-menu-sep { height: 1px; margin: 4px 6px; background: var(--dk-line); }
.dk-dim { position: absolute; inset: 0; z-index: 60; background: #000; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.dk-dim.is-dying { opacity: 0.75; transition: opacity 3s ease; }
.dk-dim.is-dead { opacity: 1; transition: opacity 0.6s ease; pointer-events: auto; }
.dk-night { position: absolute; inset: 0; z-index: 59; background: rgba(255, 140, 40, 0.18); mix-blend-mode: multiply; opacity: 0; pointer-events: none; transition: opacity 0.6s ease; }
.dk-night.is-on { opacity: 1; }
.dk-glitch { position: absolute; inset: 0; z-index: 70; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.dk.is-frozen, .dk.is-frozen * { cursor: progress !important; }
.dk.is-frozen .dk-win::after { content: ""; position: absolute; inset: 32px 0 0; background: rgba(255, 255, 255, 0.35); pointer-events: none; }
.dk.is-glitch .dk-wins, .dk.is-glitch .dk-dlgs, .dk.is-glitch .dk-icons { animation: dkGlitch 0.35s steps(2) infinite; }
@keyframes dkGlitch { 0% { transform: translate(0, 0); filter: none; } 25% { transform: translate(-6px, 2px); filter: hue-rotate(80deg) contrast(1.6); } 50% { transform: translate(5px, -3px); clip-path: inset(10% 0 30% 0); } 75% { transform: translate(-2px, 4px); filter: invert(0.15) saturate(3); } 100% { transform: translate(0, 0); } }
.dk.is-shake .dk-wins, .dk.is-shake .dk-icons { animation: dkShake 0.12s linear 6; }
@keyframes dkShake { 25% { transform: translate(-5px, 2px); } 75% { transform: translate(5px, -2px); } }
.dk-icon.is-run { pointer-events: none; }
.dk.is-bare .dk-icons, .dk.is-bare .dk-bar, .dk.is-bare .dk-wins { display: none; }
.dk.is-bare .dk-trail, .dk.is-bare .dk-dlgs { bottom: 0; }
/* windows */
.dk-win { position: absolute; display: flex; flex-direction: column; min-width: 260px; min-height: 160px; background: var(--dk-win); border: 1px solid var(--dk-line); border-radius: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); overflow: hidden; }
.dk-win.is-focus { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.dk-win.is-in { animation: dkOpen 0.22s cubic-bezier(0.1, 0.9, 0.2, 1); }
.dk-win.is-out { animation: dkClose 0.16s ease-in forwards; }
@keyframes dkOpen { from { opacity: 0; transform: scale(0.94); } }
@keyframes dkClose { to { opacity: 0; transform: scale(0.94); } }
.dk-win.is-max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; }
.dk-win-bar { flex: none; height: 32px; display: flex; align-items: center; gap: 8px; padding-left: 10px; background: var(--dk-winbar); touch-action: none; }
.dk-win-ic { width: 16px; height: 16px; flex: none; }
.dk-win-ic svg { width: 100%; height: 100%; display: block; }
.dk-win-title { flex: 1; min-width: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-win-b { width: 46px; height: 32px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: default; flex: none; }
.dk-win-b svg { width: 10px; height: 10px; }
.dk-win-b:hover { background: var(--dk-hover); }
.dk-win-x:hover { background: #c42b1c; color: #fff; }
.dk-win-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.dk-win-grip { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; touch-action: none; }
.dk-win.is-max .dk-win-grip { display: none; }
/* apps */
.dk-np { display: flex; flex-direction: column; height: 100%; }
.dk-np-menu { display: flex; gap: 2px; padding: 2px 6px; border-bottom: 1px solid var(--dk-line); }
.dk-np-m { padding: 5px 10px; border: 0; border-radius: 4px; background: transparent; font-size: 12px; cursor: default; }
button.dk-np-m:hover { background: var(--dk-hover); }
.dk-np-m.is-dead { color: var(--dk-sub); }
.dk-np-text { flex: 1; width: 100%; resize: none; border: 0; outline: none; padding: 10px 12px; background: var(--dk-win); color: var(--dk-fg); font: 15px Consolas, "Cascadia Mono", "DejaVu Sans Mono", monospace; user-select: text; -webkit-user-select: text; cursor: text; }
.dk-np-status { padding: 4px 12px; font-size: 12px; color: var(--dk-sub); border-top: 1px solid var(--dk-line); }
.dk-calc { display: flex; flex-direction: column; height: 100%; padding: 8px; gap: 6px; outline: none; }
.dk-calc-line { text-align: right; font-size: 13px; color: var(--dk-sub); min-height: 18px; overflow: hidden; white-space: nowrap; }
.dk-calc-show { text-align: right; font-size: 40px; font-weight: 600; overflow: hidden; white-space: nowrap; }
.dk-calc-show.is-long { font-size: 26px; }
.dk-calc-keys { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.dk-calc-k { border: 0; border-radius: 5px; background: var(--dk-hover); font-size: 16px; cursor: default; min-height: 40px; }
.dk-calc-k.is-num { background: rgba(255, 255, 255, 0.12); font-weight: 600; }
.dk[data-dk="light"] .dk-calc-k.is-num { background: #ffffff; box-shadow: 0 0 0 1px var(--dk-line); }
.dk-calc-k.is-eq { background: var(--dk-acc); color: #000; }
.dk-calc-k:hover { filter: brightness(1.2); }
.dk-paint { display: flex; flex-direction: column; height: 100%; }
.dk-paint-tools { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 8px; border-bottom: 1px solid var(--dk-line); align-items: center; }
.dk-paint-sw { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--dk-line); cursor: default; }
.dk-paint-sw.is-on { border-color: var(--dk-acc); transform: scale(1.15); }
.dk-paint-sz { width: 30px; height: 30px; border: 0; border-radius: 4px; background: var(--dk-hover); display: inline-flex; align-items: center; justify-content: center; cursor: default; }
.dk-paint-sz i { display: block; border-radius: 50%; background: var(--dk-fg); }
.dk-paint-er, .dk-paint-act { padding: 5px 10px; border: 1px solid var(--dk-line); border-radius: 4px; background: var(--dk-hover); font-size: 12px; cursor: default; }
.dk-paint-er.is-on { border-color: var(--dk-acc); }
.dk-paint-c { flex: 1; width: 100%; min-height: 0; background: #ffffff; touch-action: none; cursor: crosshair; display: block; }
.dk-files { display: flex; height: 100%; }
.dk-files-side { width: 170px; flex: none; padding: 8px; border-right: 1px solid var(--dk-line); display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.dk-files-q { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 0; border-radius: 4px; background: transparent; font-size: 13px; text-align: left; cursor: default; }
.dk-files-q:hover, .dk-files-item:hover { background: var(--dk-hover); }
.dk-files-ic { width: 20px; height: 20px; flex: none; display: block; }
.dk-files-ic svg { width: 100%; height: 100%; display: block; }
.dk-files-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dk-files-top { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--dk-line); }
.dk-files-back { width: 30px; height: 30px; border: 0; border-radius: 4px; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: default; }
.dk-files-back svg { width: 16px; height: 16px; }
.dk-files-back:disabled { opacity: 0.35; }
.dk-files-crumb { font-size: 13px; padding: 5px 10px; border-radius: 4px; background: var(--dk-input); border: 1px solid var(--dk-line); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-files-list { flex: 1; overflow-y: auto; padding: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; align-content: start; }
.dk-files-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border: 1px solid transparent; border-radius: 4px; background: transparent; font-size: 12px; cursor: default; }
.dk-files-item .dk-files-ic { width: 40px; height: 40px; }
.dk-files-item:focus { background: rgba(120, 180, 255, 0.2); border-color: rgba(120, 180, 255, 0.5); outline: none; }
.dk-files-name { text-align: center; overflow-wrap: anywhere; }
.dk-files-empty { grid-column: 1 / -1; color: var(--dk-sub); text-align: center; padding: 30px 0; font-size: 13px; }
.dk-bin-empty { padding: 6px 12px; border: 1px solid var(--dk-line); border-radius: 4px; background: var(--dk-hover); font-size: 13px; cursor: default; }
.dk-photo { flex: 1; display: flex; align-items: center; justify-content: center; background: #111; height: 100%; }
.dk-photo canvas { max-width: 100%; max-height: 100%; display: block; }
.dk-term { flex: 1; height: 100%; overflow-y: auto; padding: 8px 10px; background: #0c0c0c; color: #cccccc; font: 14px Consolas, "Cascadia Mono", "DejaVu Sans Mono", monospace; cursor: text; user-select: text; -webkit-user-select: text; }
.dk-term-l { white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1.3em; }
.dk-term-row { display: flex; gap: 0; }
.dk-term-pr { white-space: pre; }
.dk-term-in { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: inherit; font: inherit; padding: 0; caret-color: currentColor; }
.dk-set { padding: 16px 20px; overflow-y: auto; height: 100%; display: flex; flex-direction: column; gap: 10px; }
.dk-set-h { font-size: 15px; font-weight: 600; margin-top: 6px; }
.dk-set-walls { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.dk-set-wall { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: transparent; cursor: default; }
.dk-set-wall.is-on { border-color: var(--dk-acc); }
.dk-set-wall canvas { width: 100%; height: auto; display: block; }
.dk-set-row { display: flex; gap: 8px; }
.dk-set-pill { padding: 6px 16px; border-radius: 16px; border: 1px solid var(--dk-line); background: var(--dk-hover); font-size: 13px; cursor: default; }
.dk-set-pill.is-on { background: var(--dk-acc); color: #000; border-color: transparent; }
.dk-set-p { font-size: 13px; color: var(--dk-sub); }
.dk-inst { padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.dk-inst-head { font-size: 16px; font-weight: 600; }
.dk-inst-p, .dk-inst-file, .dk-inst-pct { font-size: 13px; color: var(--dk-sub); }
.dk-inst-bar { height: 14px; border-radius: 7px; background: var(--dk-hover); overflow: hidden; }
.dk-inst-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22c55e, #16a34a); transition: width 0.3s ease; }
.dk-em { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; height: 100%; }
.dk-em-f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.dk-em-in { padding: 7px 10px; border-radius: 4px; border: 1px solid var(--dk-line); background: var(--dk-input); color: var(--dk-fg); font: inherit; user-select: text; -webkit-user-select: text; }
.dk-em-err { color: #f87171; font-size: 12px; min-height: 0; }
.dk-em-go { align-self: flex-start; padding: 8px 16px; border-radius: 4px; border: 0; background: var(--dk-acc); color: #000; font-weight: 600; cursor: default; }
/* error messages in three looks */
.dk-dlg { position: absolute; width: min(420px, calc(100% - 16px)); display: flex; flex-direction: column; background: #f3f3f3; color: #111111; border: 1px solid rgba(0, 0, 0, 0.18); border-radius: 8px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); font-size: 13px; animation: dkPopIn 0.14s ease-out; }
@keyframes dkPopIn { from { opacity: 0; transform: scale(0.95); } }
.dk-dlg.is-nudge { animation: dkNudge 0.3s ease; }
@keyframes dkNudge { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.dk-dlg-bar { height: 32px; display: flex; align-items: center; padding-left: 12px; background: #ffffff; border-radius: 8px 8px 0 0; touch-action: none; }
.dk-dlg-title { flex: 1; min-width: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-dlg-x { width: 46px; height: 32px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; border-radius: 0 8px 0 0; cursor: default; color: #111; }
.dk-dlg-x svg { width: 10px; height: 10px; }
.dk-dlg-x:hover { background: #c42b1c; color: #fff; }
.dk-dlg-body { display: flex; gap: 16px; align-items: flex-start; padding: 20px 20px 22px; background: #ffffff; }
.dk-dlg-ic { width: 32px; height: 32px; flex: none; display: block; }
.dk-dlg-ic svg { width: 100%; height: 100%; display: block; }
.dk-dlg-msg { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; padding-top: 4px; }
.dk-dlg-btns { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 16px; background: #f0f0f0; border-top: 1px solid #e3e3e3; border-radius: 0 0 8px 8px; }
.dk-dlg-b { min-width: 86px; padding: 6px 14px; border: 1px solid #d0d0d0; border-radius: 4px; background: #fdfdfd; color: #111; font-size: 13px; cursor: default; }
.dk-dlg-b.is-def { border-color: #0067c0; box-shadow: inset 0 0 0 1px #0067c0; }
.dk-dlg-b:hover { background: #f5f5f5; }
.dk-dlg--classic { border-radius: 6px 6px 0 0; border: 1px solid #5b7bab; background: linear-gradient(180deg, #dbe9fb, #c2d6f2 30px, #f0f0f0 30px); }
.dk-dlg--classic .dk-dlg-bar { background: linear-gradient(180deg, #e3eefc, #c7dbf5); border-radius: 6px 6px 0 0; }
.dk-dlg--classic .dk-dlg-body { background: #ffffff; }
.dk-dlg--classic .dk-dlg-x { width: 42px; height: 20px; margin-right: 6px; border-radius: 4px; background: linear-gradient(180deg, #e7a28e, #c74a2d); color: #fff; border: 1px solid #8a2c14; }
.dk-dlg--classic .dk-dlg-b { border-color: #707070; background: linear-gradient(180deg, #f6f6f6, #dddddd); border-radius: 3px; }
.dk-dlg--retro { border-radius: 0; border: 2px solid; border-color: #ffffff #404040 #404040 #ffffff; background: #c0c0c0; box-shadow: 1px 1px 0 #000000, 12px 12px 30px rgba(0, 0, 0, 0.35); font-family: "MS Sans Serif", Tahoma, Verdana, sans-serif; font-size: 12px; animation: none; }
.dk-dlg--retro .dk-dlg-bar { height: 22px; margin: 2px; padding-left: 6px; border-radius: 0; background: linear-gradient(90deg, #000080, #1084d0); color: #ffffff; font-weight: 700; }
.dk-dlg--retro .dk-dlg-title { font-weight: 700; }
.dk-dlg--retro .dk-dlg-x { width: 18px; height: 16px; margin-right: 2px; border-radius: 0; background: #c0c0c0; color: #000; border: 2px solid; border-color: #ffffff #404040 #404040 #ffffff; font-size: 11px; line-height: 1; }
.dk-dlg--retro .dk-dlg-x:hover { background: #c0c0c0; color: #000; }
.dk-dlg--retro .dk-dlg-body { background: #c0c0c0; padding: 16px; }
.dk-dlg--retro .dk-dlg-btns { background: #c0c0c0; border-top: 0; justify-content: center; padding: 4px 16px 14px; border-radius: 0; }
.dk-dlg--retro .dk-dlg-b { min-width: 75px; border-radius: 0; background: #c0c0c0; border: 2px solid; border-color: #ffffff #404040 #404040 #ffffff; box-shadow: none; }
.dk-dlg--retro .dk-dlg-b.is-def { outline: 1px solid #000; outline-offset: -1px; }
.dk-ghost { pointer-events: none !important; animation: none !important; }
/* a narrow screen (a phone): a shorter taskbar, the clock stays */
.dk.is-narrow .dk-bar { justify-content: flex-start; padding-left: 4px; }
.dk.is-narrow .dk-tb-search, .dk.is-narrow .dk-tray-b:first-child, .dk.is-narrow .dk-tray-q, .dk.is-narrow .dk-tb-app:nth-child(n+5) { display: none; }
.dk.is-narrow .dk-start { left: 8px; margin-left: 0; }

/* ----- MoodScape (the Moods tab) ----- */
.ms-now { display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--surface-border); }
.ms-now-row { display: flex; align-items: center; gap: 12px; }
.ms-now-tx { flex: 1; min-width: 0; }
.ms-now-tx .sub-title { margin: 0; }
.ms-now-name { font-weight: 600; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-play { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 0; background: var(--gradient-brand); color: #ffffff; font-family: inherit; font-size: 1.05rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.ms-play:hover { transform: translateY(-2px) scale(1.04); }
.ms-play:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.ms-play[aria-pressed="true"] { animation: ms-pulse 2.4s ease-in-out infinite; }
@keyframes ms-pulse { 0%, 100% { box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4); } 50% { box-shadow: 0 6px 28px rgba(236, 72, 153, 0.55); } }
.ms-play-ico { line-height: 1; letter-spacing: -2px; }
.ms-status { font-size: 0.85rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ms-sec { display: flex; flex-direction: column; gap: 10px; }
.ms-sec + .ms-sec { border-top: 1px solid var(--surface-border); padding-top: 14px; }
.ms-filters button { padding: 6px 12px; font-size: 0.8rem; }
.ms-n { font-size: 0.72rem; font-weight: 700; }
.ms-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) and (max-width: 1099px) { .ms-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ms-tile { position: relative; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; min-height: 58px; padding: 8px 12px; border-radius: 12px; border: 0; background: linear-gradient(120deg, var(--m1) 0%, var(--m2) 85%); color: #ffffff; font-family: inherit; font-size: 0.8rem; font-weight: 700; text-align: left; line-height: 1.2; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.ms-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25); }
.ms-tile[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand); }
.ms-tile:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.ms-tile-emoji { font-size: 1.5rem; line-height: 1; flex: none; }
.ms-tile-name { min-width: 0; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); overflow-wrap: break-word; hyphens: auto; }
.ms-tile-fav { position: absolute; top: 4px; right: 6px; color: #fde68a; font-size: 0.75rem; line-height: 1; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.ms-none { grid-column: 1 / -1; }
.ms-mix { display: flex; flex-direction: column; gap: 12px; }
.ms-layer { display: grid; grid-template-columns: 26px minmax(84px, 0.9fr) minmax(0, 1.4fr) 34px 36px; gap: 8px; align-items: center; }
.ms-layer--sub { grid-template-columns: minmax(60px, 0.5fr) minmax(0, 1.4fr) 34px; margin-top: 8px; }
.ms-layer-emoji { font-size: 1.15rem; text-align: center; line-height: 1; }
.ms-layer-name { font-size: 0.85rem; font-weight: 600; color: var(--text-strong); }
.ms-layer .value { font-size: 0.85rem; text-align: right; }
.ms-save { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--surface-border); }
.ms-more { border-top: 1px solid var(--surface-border); padding-top: 12px; }
.ms-more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; }
.ms-more > summary::-webkit-details-marker { display: none; }
.ms-more > summary::after { content: '+'; font-weight: 700; color: var(--link); font-size: 1.25rem; line-height: 1; }
.ms-more[open] > summary::after { content: '\2212'; }
.ms-more > summary .sub-title { margin: 0; }
.ms-more > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.ms-more-body { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; }
.ms-timer { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding-top: 12px; border-top: 1px dashed var(--surface-border); }
.ms-timer .ps-fields { width: 100%; }
.ms-seg button { padding: 6px 11px; }
.ms-h3 { font-size: 0.95rem; color: var(--text-strong); }
.ps-combo.is-on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.ms-mylist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ms-my { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ms-my-pick { border: 1px solid var(--chip-border); background: var(--surface); border-radius: 9999px; padding: 7px 14px; font-family: inherit; font-size: 0.85rem; font-weight: 600; color: var(--text-strong); cursor: pointer; transition: border-color 0.2s ease, transform 0.2s ease; }
.ms-my-pick:hover { border-color: var(--brand); transform: translateY(-1px); }
.ms-my-pick[aria-pressed="true"] { background: var(--gradient-brand); color: #ffffff; border-color: transparent; }
.ms-my-pick:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ----- Narrow screens ----- */
@media (max-width: 639px) {
    .ps-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ms-tile { gap: 8px; padding: 8px 10px; }
    .ms-tile-emoji { font-size: 1.3rem; }
    .ms-layer { grid-template-columns: 26px minmax(0, 1fr) 40px 44px; }
    .ms-layer .range { grid-column: 1 / -1; grid-row: 2; }
    .ms-layer--sub { grid-template-columns: minmax(0, 1fr) 40px; }
    .ps-stage { padding: 16px; gap: 14px; padding-right: 16px; }
    .ps-stage-top { padding-right: 52px; }
    .ps-pane { padding: 16px; }
    .ps-gallery { padding: 16px; }
    .ps-bezel { padding: 7px 7px 16px; border-radius: 14px; }
    .ps-led { bottom: 5px; }
    .ps-neck { height: 22px; }
    .ps-now-name { font-size: 1.25rem; }
    .ps-go { width: 100%; }
    .ps-ghost { flex: 1 1 140px; }
    .ps-strip-arrow { display: none; }
    .ps-cstep { grid-template-columns: 26px minmax(0, 1fr) 44px 44px; }
    .ps-cstep .select:nth-of-type(2) { grid-column: 2 / -1; }
    .ps-badges, .ps-stats, .cr-templates { grid-template-columns: minmax(0, 1fr); }
    .cr-design { grid-template-columns: minmax(0, 1fr); }
    .toasts { bottom: 16px; right: 16px; left: 16px; align-items: stretch; }
    .toast { min-width: 0; max-width: none; }
    .info-section h2 { font-size: 1.4rem; }
    .info-section .info-grid, .info-three { grid-template-columns: 1fr; }
    .info-card { padding: 16px; }
    .step-num { left: 16px; }
    .dk-files-side { display: none; }
    .dk-start { padding: 16px 16px 0; }
    .dk-start-foot { margin: 8px -16px 0; padding: 12px 16px; }
    .dk-tb-search span { display: none; }
    .dk-tb-search { padding: 0 10px; background: transparent; }
}
@media (min-width: 640px) and (max-width: 1099px) { .ps-gallery .ps-grid { gap: 16px; } }

/* still pictures when the device asks for less motion */
@media (prefers-reduced-motion: reduce) {
    .btn, .info-card, .toast, .seg button, .chip, .switch::before, .switch::after, .ps-tool, .ps-pill, .ps-go, .ps-ghost, .ps-chip, .ps-card, .ps-card-c, .ps-card-big, .ps-card-go, .ps-card-fav, .ps-filter, .ps-combo, .ms-play, .ms-tile, .ms-my-pick, .ps-sim-canvas, .cr-tpl, .dialog[open], .ps-gotcha, .ps-gotcha-card, .ps-gotcha-emoji, .dk-icon, .dk-pop, .dk-note, .dk-win, .dk-dlg { transition: none; animation: none; }
    .ps-go::after, .ps-live::before { animation: none; }
    .ps-card:hover, .ps-card:hover .ps-card-c, .ps-card:hover .ps-card-big { transform: none; }
}

/* Phones: 16 px text, 44 px tap targets (AdSense audit H-04, 8 Oct 2026). The screens themselves are pictures. */
@media (max-width: 639.98px) {
    main button, main select, main summary, main [role="button"],
    main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="range"]):not([type="color"]) { min-height: 44px; }
    main input[type="range"] { height: 44px; }
    main .seg button { min-height: 44px; min-width: 44px; }
    main .ps-tool { width: 44px; height: 44px; }
    main .icon-btn { width: 44px; height: 44px; font-size: 1rem; }
    main .ms-more > summary { min-height: 44px; }
    main .ps-card-fav { width: 44px; height: 44px; }
    main .ps-chip, main .ps-filter, main .ps-pill, main .ps-card-go, main .ps-card-cus { min-height: 44px; }
    main :is(p, li, dt, .hint, .label, .select, .input, .seg button, .muted, .small, .switch-row, .link, .ps-tabs button, .ps-pill, .ps-chip, .ps-filter, .ps-card-go, .ps-card-cus, .ps-card-cat, .ps-step, .chip, .cr-el-pick, .cr-tpl, .ps-search, .ps-keys, .value, .ps-ghost, .ps-filter-n, .ms-tile, .ms-layer-name, .ms-h3, .ms-my-pick, .ms-n) { font-size: 1rem; }
    main .btn { font-size: 1rem; }
    .dialog :is(p, li, .label, .input, .btn, .hint) { font-size: 1rem; }
    .dialog .btn, .dialog .input { min-height: 44px; }
    .dialog .dialog-close { width: 44px; height: 44px; }
    .ps-sim :is(.ps-go, .ps-ghost) { min-height: 44px; font-size: 1rem; }
    :where(.ps-sim) p.ps-gotcha-note, :where(.ps-sim) p.ps-gotcha-brand { font-size: 1rem; }
    main p.ps-today-name { font-size: 1.15rem; }
    main .ps-stats dd { font-size: 1.2rem; }
    main .ps-now-name { font-size: 1.25rem; }
    main .ps-card-name, main .ps-combo-name { font-size: 1.1rem; }
}
