/* ============================================================
   apps.css — per-app interior styles
   ============================================================ */

/* ---- Notes: the discount easter-egg hunt checklist ---- */
.nt-body.qz { overflow-y: auto; }
.qz-h { font-family: var(--display); font-size: 22px; margin: 0 0 6px; }
.qz-intro { color: var(--muted); line-height: 1.6; font-size: 13.5px; margin: 0 0 16px; }
.qz-bar { height: 7px; border-radius: 99px; background: rgba(128,128,128,.22); overflow: hidden; }
.qz-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2f9e44, #51cf66); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.qz-count { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); margin: 7px 0 14px; }
.qz-list { display: flex; flex-direction: column; }
.qz-item { border-bottom: 1px solid rgba(128,128,128,.12); }
.qz-item:last-child { border-bottom: 0; }
.qz-step { display: flex; align-items: center; gap: 11px; padding: 9px 4px; font-size: 14px; opacity: .5; }
.qz-step.done { opacity: 1; }
.qz-label { flex: 1; }
.qz-step.done .qz-label { text-decoration: line-through; text-decoration-color: rgba(128,128,128,.5); }
.qz-hint-btn { flex: 0 0 auto; font-size: 11px; color: var(--muted); background: rgba(128,128,128,.12); border: 0; border-radius: 99px; padding: 4px 11px; cursor: pointer; transition: background .15s, color .15s; }
.qz-hint-btn:hover { background: rgba(128,128,128,.2); }
.qz-hint-btn.on { background: #2f9e44; color: #fff; }
.qz-hint { margin: 0 4px 11px 33px; padding: 11px 13px; font-size: 12.5px; line-height: 1.5; color: var(--text); background: linear-gradient(160deg, rgba(47,158,68,.14), rgba(81,207,102,.05)); border: 1px solid rgba(47,158,68,.34); border-radius: 12px; position: relative; }
.qz-hint b { color: #2f9e44; margin-right: 4px; }
.qz-hint::before { content: ''; position: absolute; top: -6px; left: 18px; width: 11px; height: 11px; background: inherit; border-left: 1px solid rgba(47,158,68,.34); border-top: 1px solid rgba(47,158,68,.34); transform: rotate(45deg); }
.qz-box { flex: 0 0 22px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(128,128,128,.4); font-size: 12px; color: var(--muted); }
.qz-step.done .qz-box { background: #2f9e44; border-color: #2f9e44; color: #fff; }
.qz-foot { margin-top: 16px; font-size: 12.5px; color: var(--muted); font-style: italic; }
.qz-reveal { margin-top: 18px; padding: 18px; border-radius: 14px; text-align: center; background: linear-gradient(160deg, rgba(47,158,68,.16), rgba(81,207,102,.06)); border: 1px solid rgba(47,158,68,.4); }
.qz-rk { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.qz-code { font-family: var(--mono); font-weight: 800; font-size: 30px; letter-spacing: .06em; margin: 6px 0; color: #2f9e44; }
.qz-rsub { font-size: 12.5px; color: var(--muted); }

/* ---------- STORE -------------------------------------------- */
.store { display: flex; height: 100%; font-size: 14px; }
.store-side {
  width: 168px; flex: 0 0 168px; background: var(--sidebar-bg); backdrop-filter: blur(20px);
  border-right: .5px solid var(--border); display: flex; flex-direction: column;
  padding: 14px 10px;
}
.store-side-h { font-family: var(--display); font-weight: 800; font-size: 16px; padding: 4px 8px 12px; }
.store-cats { display: flex; flex-direction: column; gap: 2px; }
.store-cat { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 7px;
  font-size: 13px; color: var(--text-soft); text-align: left; }
.store-cat:hover { background: var(--hover); }
.store-cat.on { background: var(--accent); color: #fff; }
.store-side-foot { margin-top: auto; font-family: var(--mono); font-size: 10px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .1em; padding: 8px; line-height: 1.6; }

.store-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.store-bar { height: 44px; flex: 0 0 44px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; border-bottom: .5px solid var(--border); background: var(--win-bar); backdrop-filter: blur(20px); }
.store-path { font-size: 13px; color: var(--text-soft); font-weight: 500; }
.store-path .link-back { color: var(--accent); font-weight: 600; }
.store-cart-btn { position: relative; font-size: 17px; padding: 4px 8px; border-radius: 8px; }
.store-cart-btn:hover { background: var(--hover); }
.store-cart-btn .cc { position: absolute; top: -2px; right: -2px; background: var(--accent-2); color: #fff;
  font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; opacity: 0; }
.store-cart-btn .cc.has { opacity: 1; }

.store-scroll { flex: 1; overflow: auto; padding: 18px; }
.store-scroll.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; align-content: start; }
.pcard { display: flex; flex-direction: column; gap: 7px; text-align: left; border-radius: 12px; padding: 0; }
.pcard-img { aspect-ratio: 4/5; border-radius: 12px; position: relative; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.1);
  transition: transform .18s var(--ease), box-shadow .18s; overflow: hidden;
  background: linear-gradient(160deg,#f4f4f1,#e6e6e2); display: grid; place-items: center; }
.pcard-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.pcard:hover .pcard-img { transform: translateY(-3px); box-shadow: 0 14px 30px -10px rgba(0,0,0,.4); }
.pcard-tag { position: absolute; top: 8px; left: 8px; font-family: var(--mono); font-size: 9px; text-transform: uppercase;
  letter-spacing: .08em; background: rgba(0,0,0,.65); color: #fff; padding: 3px 7px; border-radius: 20px; }
.pcard-name { font-weight: 600; font-size: 13px; }
.pcard-price { font-size: 13px; color: var(--text-soft); }

.store-scroll.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 26px; }
.pd-img { border-radius: 16px; position: relative; min-height: 340px; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.1);
  background: linear-gradient(160deg,#f4f4f1,#e6e6e2); display: grid; place-items: center; overflow: hidden; }
.pd-img img { width: 100%; height: 100%; object-fit: contain; padding: 22px; }
/* image gallery */
.pd-gallery { display: flex; flex-direction: column; gap: 10px; }
.pd-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-thumb { width: 56px; height: 64px; border-radius: 8px; overflow: hidden; background: linear-gradient(160deg,#f4f4f1,#e6e6e2);
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.12); opacity: .6; transition: opacity .15s, box-shadow .15s; }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.pd-thumb.on { opacity: 1; box-shadow: 0 0 0 2px var(--accent); }
.pd-thumb:hover { opacity: 1; }
/* sold-out states */
.pcard.sold .pcard-img, .pd-img.sold { filter: grayscale(.7) brightness(.92); }
.pcard-tag.sold { background: #b00020; color: #fff; }
.pd-soldtag { color: #ff6b6b; font-size: 14px; font-weight: 600; }
.pd-add.sold { background: var(--card-bg) !important; color: var(--win-muted) !important; cursor: not-allowed; }
.pd-info h1 { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -.02em; }
.pd-price { font-size: 19px; margin: 6px 0 16px; }
.pd-info p { color: var(--text-soft); line-height: 1.6; }
.pd-desc { color: var(--text-soft); line-height: 1.6; font-size: 14px; white-space: pre-line; }
.pd-desc.collapsed { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pd-more { color: var(--accent); font-size: 13px; font-weight: 600; margin-top: 7px; padding: 2px 0; }
.pd-more:hover { text-decoration: underline; }
.pd-note { font-size: 12px; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 12px; margin: 18px 0; line-height: 1.5; }
.pd-add { width: 100%; background: var(--btn-bg); color: var(--btn-text); padding: 13px; border-radius: 30px; font-weight: 600; font-size: 14px; }
.pd-add:hover { background: var(--accent); }
.pd-cart-link { width: 100%; margin-top: 10px; color: var(--text-soft); font-size: 13px; padding: 8px; }
.pd-cart-link:hover { color: var(--accent); }

/* cart drawer */
.cart-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 320px; background: var(--white);
  border-left: .5px solid var(--border); box-shadow: -20px 0 50px -20px rgba(0,0,0,.4); z-index: 5;
  display: flex; flex-direction: column; animation: drawer-in .22s var(--ease); }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: .5px solid var(--border); font-size: 15px; }
.cart-x:hover { color: var(--accent-2); }
.cart-list { flex: 1; overflow: auto; padding: 10px 14px; }
.cart-empty { color: var(--muted); font-size: 13px; padding: 30px 6px; text-align: center; }
.cart-row { display: flex; gap: 11px; align-items: center; padding: 10px 4px; border-bottom: .5px solid var(--border); }
.cart-sw { width: 42px; height: 52px; border-radius: 7px; flex: 0 0 42px; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.1);
  background: linear-gradient(160deg,#f4f4f1,#e6e6e2); display: grid; place-items: center; overflow: hidden; }
.cart-sw img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.cart-meta { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.cart-meta small { color: var(--muted); font-size: 11px; }
.cart-rm { font-size: 11px; color: var(--muted); }
.cart-rm:hover { color: var(--accent-2); }
.cart-foot { padding: 14px 18px; border-top: .5px solid var(--border); }
.cart-undo { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 10px; }
.cart-undo.off { color: var(--muted); opacity: .5; }
.cart-total { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 12px; }
.cart-checkout { width: 100%; background: var(--btn-bg); color: var(--btn-text); padding: 13px; border-radius: 30px; font-weight: 600; }
.cart-checkout:hover:not([disabled]) { background: var(--accent); }
.cart-checkout[disabled] { opacity: .4; cursor: default; }

/* ---------- REWIND (DJ player) ------------------------------ */
.rewind { background: #0c0c0e; color: #eee; display: flex; flex-direction: column; height: 100%; padding: 16px; gap: 14px; }
.rw-top { display: flex; gap: 16px; align-items: center; }
.rw-viz { flex: 1; height: 110px; background: #08080a; border-radius: 12px; border: .5px solid #222; max-width: 60%; }
.rw-now { flex: 1; }
.rw-title { font-family: var(--display); font-weight: 800; font-size: 20px; }
.rw-artist { color: #888; font-size: 13px; margin-top: 2px; }
.rw-bpm { font-family: var(--mono); font-size: 11px; color: var(--accent); margin-top: 8px; letter-spacing: .1em; }
.rw-controls { display: flex; align-items: center; gap: 12px; }
.rw-btn { font-size: 18px; color: #eee; width: 40px; height: 40px; border-radius: 50%; background: #1a1a1d; }
.rw-btn:hover { background: var(--accent); }
.rw-play { background: #fff; color: #000; }
.rw-seek { flex: 1; height: 6px; background: #222; border-radius: 4px; cursor: pointer; overflow: hidden; }
.rw-seek-fill { height: 100%; width: 0; background: var(--accent); }
.rw-time { font-family: var(--mono); font-size: 12px; color: #888; min-width: 36px; }
.rw-fader { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; color: #888; }
.rw-cross { flex: 1; accent-color: var(--accent); }
.rw-list { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.rw-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; text-align: left; color: #ccc; }
.rw-row:hover { background: #161619; }
.rw-row.on { background: #161619; color: #fff; }
.rw-row.on .rw-eq i { animation: eq .7s ease-in-out infinite; }
.rw-eq { display: flex; gap: 2px; align-items: flex-end; width: 16px; height: 14px; }
.rw-eq i { width: 3px; height: 5px; background: var(--accent); border-radius: 2px; }
.rw-eq i:nth-child(2){ animation-delay: .2s } .rw-eq i:nth-child(3){ animation-delay: .4s }
@keyframes eq { 0%,100%{ height: 4px } 50%{ height: 14px } }
.rw-row-meta { flex: 1; display: flex; flex-direction: column; }
.rw-row-meta small { color: #777; font-size: 11px; }
.rw-row-len { font-family: var(--mono); font-size: 11px; color: #777; }

/* ---------- OUTFIT BUILDER ---------------------------------- */
.outfit { display: flex; height: 100%; }
.ob-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 18px;
  background-color: #d7d1c5;
  background-image:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,.5), transparent 60%),
    linear-gradient(rgba(60,50,38,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60,50,38,.09) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px, 28px 28px; }
.ob-figure { position: relative; width: min(300px, 80%); aspect-ratio: 3/4; }
/* soft contact shadow grounding the flat-lay stack */
.ob-ground { position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%); z-index: 0;
  width: 46%; height: 4.5%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse, rgba(0,0,0,.34), rgba(0,0,0,0) 70%); }
.ob-mannequin .mq-shadow { fill: rgba(0,0,0,.12); }
.ob-layer { pointer-events: none; }
.ob-fit-label { font-family: var(--mono); font-size: 11px; color: var(--text-soft); text-transform: uppercase; letter-spacing: .08em; text-align: center; max-width: 90%; line-height: 1.5; }
.ob-panel { width: 280px; flex: 0 0 280px; border-left: .5px solid var(--border); display: flex; flex-direction: column; background: var(--win-bar); backdrop-filter: blur(20px); }
.ob-slots { display: flex; padding: 12px; gap: 6px; }
.ob-slot { flex: 1; padding: 8px; border-radius: 8px; font-size: 12px; font-weight: 600; background: var(--card-bg); color: var(--text-soft); }
.ob-slot.on { background: var(--accent); color: #fff; }
.ob-rack { flex: 1; overflow: auto; padding: 6px 12px; display: flex; flex-direction: column; gap: 6px; }
.ob-chip { display: flex; align-items: center; gap: 10px; padding: 7px; border-radius: 10px; text-align: left; border: 1px solid transparent; }
.ob-chip:hover { background: var(--hover); }
.ob-chip.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.ob-chip-sw { width: 38px; height: 44px; border-radius: 6px; flex: 0 0 38px; background: linear-gradient(160deg,#f4f4f1,#e6e6e2); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.1); display: grid; place-items: center; overflow: hidden; }
.ob-chip-sw img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.ob-chip-name { flex: 1; font-size: 13px; font-weight: 500; }
.ob-chip-price { font-size: 12px; color: var(--muted); }
.ob-foot { padding: 14px; border-top: .5px solid var(--border); }
.ob-total { font-size: 13px; color: var(--text-soft); margin-bottom: 10px; }
.ob-total b { font-size: 16px; color: var(--text); }
.ob-add { width: 100%; background: var(--btn-bg); color: var(--btn-text); padding: 12px; border-radius: 30px; font-weight: 600; }
.ob-add:hover:not([disabled]) { background: var(--accent); }
.ob-add[disabled] { opacity: .4; cursor: default; }
.ob-clear { width: 100%; margin-top: 8px; color: var(--muted); font-size: 12px; padding: 6px; }

/* ---------- LOOKBOOK ---------------------------------------- */
.lookbook { height: 100%; position: relative; background: #111; }
.lb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; height: 100%; padding: 4px; }
.lb-tile { position: relative; border-radius: 6px; overflow: hidden; min-height: 120px;
  background-size: cover; background-position: center; transition: transform .4s var(--ease), filter .3s; cursor: pointer; }
.lb-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.6)); transition: opacity .3s; }
.lb-tile:hover { transform: scale(1.025); filter: brightness(1.06) saturate(1.08); z-index: 2; }
.lb-season { position: absolute; bottom: 12px; left: 14px; z-index: 2; color: #fff; font-family: var(--display); font-weight: 800; font-size: 15px;
  letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(0,0,0,.7); transition: transform .3s var(--ease); }
.lb-tile:hover .lb-season { transform: translateY(-3px); }
.lb-season.big { font-size: clamp(30px, 4.5vw, 52px); bottom: 30px; left: 30px; }
.lb-tag { position: absolute; top: 10px; left: 12px; z-index: 2; font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(0,0,0,.55); color: #f0c060; padding: 3px 8px; border-radius: 20px; }
.lb-light { position: absolute; inset: 0; display: flex; background: #060606; z-index: 4; animation: fade .3s ease; }
.lb-photo { flex: 1.5; position: relative; overflow: hidden; background: #060606; }
.lb-photo::before { content: ""; position: absolute; inset: -4%; background-image: inherit; background-size: cover; background-position: center;
  animation: lb-ken 14s ease-out both; pointer-events: none; }
.lb-photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 160px 30px rgba(0,0,0,.55);
  background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 30%, transparent 70%, rgba(0,0,0,.4)); pointer-events: none; }
@keyframes lb-ken { 0% { transform: scale(1.16) translate(2%, 1%); } 100% { transform: scale(1) translate(0, 0); } }
.lb-close { position: absolute; top: 14px; right: 14px; color: #fff; font-size: 18px; background: rgba(0,0,0,.4); width: 34px; height: 34px; border-radius: 50%; }
.lb-shop { flex: 1; background: var(--win-bg); padding: 22px; overflow: auto; }
.lb-shop h3 { font-family: var(--display); font-weight: 800; margin-bottom: 14px; }
.lb-shop-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 6px; border-bottom: .5px solid var(--border); text-align: left; }
.lb-shop-row:hover { background: var(--hover); }
.lb-shop-sw { width: 36px; height: 44px; border-radius: 6px; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.1);
  background: linear-gradient(160deg,#f4f4f1,#e6e6e2); display: grid; place-items: center; overflow: hidden; }
.lb-shop-sw img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.lb-shop-row span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.lb-shop-row small { color: var(--muted); font-size: 12px; }
.lb-shop-go { color: var(--muted); }
.lb-shop-all { width: 100%; margin-top: 16px; background: var(--btn-bg); color: var(--btn-text); padding: 11px; border-radius: 30px; font-weight: 600; }

/* ---------- MESSAGES ---------------------------------------- */
.messages { display: flex; flex-direction: column; height: 100%; background: var(--win-bg); }
.msg-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: .5px solid var(--border); }
.msg-av { width: 34px; height: 34px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-text); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 13px; }
.msg-head small { display: block; color: var(--muted); font-size: 11px; }
.msg-scroll { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 18px; font-size: 14px; line-height: 1.4; }
.bubble.them { align-self: flex-start; background: var(--card-bg); color: var(--win-text); border-bottom-left-radius: 5px; }
.bubble.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.bubble.typing { display: flex; gap: 4px; padding: 12px 14px; }
.bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: #aaa; animation: eq .9s infinite; }
.bubble.typing i:nth-child(2){ animation-delay:.15s } .bubble.typing i:nth-child(3){ animation-delay:.3s }
.msg-input { display: flex; gap: 8px; padding: 12px; border-top: .5px solid var(--border); }
.msg-input input { flex: 1; border: 1px solid var(--border-2); border-radius: 20px; padding: 9px 14px; font: inherit; outline: none; background: var(--field-bg); color: var(--win-text); }
.msg-input input:focus { border-color: var(--accent); }
.msg-input button { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 16px; }

/* ---------- SETTINGS ---------------------------------------- */
.settings { background: var(--win-bg); height: 100%; overflow: auto; }
.set-pad { padding: 26px 30px; }
.set-pad h1 { font-size: 24px; margin-bottom: 18px; }
.set-group { margin-bottom: 22px; }
.set-group > label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 10px; color: var(--text-soft); }
.set-seg { display: inline-flex; background: var(--card-bg); border-radius: 9px; padding: 3px; gap: 3px; }
.set-mode { padding: 7px 18px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--text-soft); }
.set-mode.on { background: var(--win-bg); color: var(--win-text); box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.set-row { display: flex; align-items: center; justify-content: space-between; }
.set-row input { width: 20px; height: 20px; accent-color: var(--accent); }
.set-walls { display: flex; gap: 10px; flex-wrap: wrap; }
.set-wall { width: 84px; height: 54px; border-radius: 10px; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.15); }
.set-wall.on { outline: 3px solid var(--accent); outline-offset: 2px; }
.set-accents { display: flex; gap: 10px; }
.set-accent { width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.2); }
.set-accent.on { outline: 3px solid #111; outline-offset: 2px; }

/* ---------- MAPS / CALENDAR / TV ---------------------------- */
.maps { display: flex; height: 100%; }
.maps-canvas { flex: 1.3; position: relative; background: #1b2a36; overflow: hidden; }
.maps-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; }
.maps-pin { position: absolute; transform: translate(-50%, -100%); text-align: center; color: #fff; }
.maps-pin::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%; background: var(--accent); opacity: .5; animation: map-ping 2.4s ease-out infinite; pointer-events: none; }
@keyframes map-ping { 0% { transform: scale(.4); opacity: .6; } 100% { transform: scale(3.2); opacity: 0; } }
.maps-pin span { font-size: 26px; display: block; position: relative; }
.maps-pin b { font-size: 11px; background: rgba(0,0,0,.6); padding: 2px 6px; border-radius: 10px; }
.maps-list { flex: 1; padding: 22px; background: var(--win-bg); overflow: auto; }
.maps-list h3 { font-family: var(--display); font-weight: 800; margin-bottom: 14px; }
.maps-row { padding: 11px 4px; border-bottom: .5px solid var(--border); }
.maps-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

.calendar { background: var(--win-bg); height: 100%; overflow: auto; }
.cal-pad { padding: 26px 30px; }
.cal-pad h1 { font-size: 24px; margin-bottom: 16px; }
.cal-row { display: flex; align-items: center; gap: 14px; padding: 13px 12px; border-radius: 10px; background: var(--card-bg); margin-bottom: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.cal-d { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--accent); width: 56px; }
.cal-t { flex: 1; font-size: 14px; }
.cal-k { font-size: 11px; color: var(--muted); }
.cal-row.tour { border-left: 3px solid var(--accent-2); }

.tv { background: #0a0a0b; height: 100%; display: flex; flex-direction: column; padding: 14px; gap: 12px; }
.tv-screen { flex: 1; position: relative; background: radial-gradient(circle, #1a1a22, #050507); border-radius: 12px; overflow: hidden; }
.tv-stage { position: absolute; inset: 0; z-index: 1; }
.tv-scan { position: absolute; inset: 0; z-index: 2; background: repeating-linear-gradient(rgba(255,255,255,.05) 0 2px, transparent 2px 4px); pointer-events: none; }
.tv-chan { display: flex; gap: 6px; }
.tv-body { flex: 1; display: flex; gap: 10px; min-height: 0; }
.tv-body .tv-screen { flex: 1; }
.tv-side { flex: 0 0 232px; overflow-y: auto; background: #0c0c0e; border: .5px solid #1d1d20; border-radius: 12px; padding: 6px; }
.tv-cat { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #8a8a92; padding: 11px 6px 5px; }
.tv-vid { display: flex; gap: 9px; width: 100%; text-align: left; padding: 5px; border-radius: 8px; align-items: center; }
.tv-vid:hover { background: rgba(255,255,255,.06); }
.tv-vid.on { background: rgba(255,255,255,.12); }
.tv-vid img { width: 66px; height: 38px; object-fit: cover; border-radius: 5px; flex: 0 0 66px; background: #222; }
.tv-vid span { font-size: 11px; line-height: 1.25; color: #dcdce0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.mobile .tv-body { flex-direction: column; }
body.mobile .tv-side { flex: 0 0 auto; max-height: 38%; }
.tv-cbtn { flex: 0 0 auto; padding: 8px 16px; border-radius: 10px; background: #141416; color: #999; font-size: 13px; font-weight: 700; border: 1px solid #232327; }
.tv-cbtn.on { background: #fff; color: #000; border-color: #fff; }
.tv-social { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; color: #eee; padding: 30px; }
.tv-social-em { font-size: 48px; }
.tv-social h3 { font-family: var(--display); font-weight: 800; font-size: 22px; }
.tv-social p { color: #9aa; font-size: 13px; }
.tv-social-links { display: flex; gap: 10px; margin-top: 10px; }
.tv-social-links a { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; padding: 9px 18px; border-radius: 24px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .15s; }
.tv-social-links a:hover { background: rgba(255,255,255,.2); }
.tv-rail { display: flex; gap: 8px; overflow-x: auto; }
.tv-chip { flex: 0 0 auto; padding: 8px 14px; border-radius: 20px; background: #1a1a1d; color: #aaa; font-size: 12px; }
.tv-chip.on { background: #fff; color: #000; }

/* ---------- ARCADE / REWIND RUN ----------------------------- */
.arcade { background: #08080a; height: 100%; display: grid; place-items: center; position: relative; }
.rr-wrap { position: relative; width: 560px; max-width: 100%; }
.rr-canvas { width: 100%; background: linear-gradient(180deg, #0e0e14, #060608); border-radius: 12px; display: block; }
.rr-hud { position: absolute; top: 10px; left: 14px; right: 14px; display: flex; justify-content: space-between; color: #fff; font-family: var(--mono); font-size: 14px; }
.rr-best { color: #888; }
.rr-overlay { position: absolute; inset: 0; background: rgba(6,6,10,.82); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; color: #eee; border-radius: 12px; overflow: auto; padding: 16px; box-sizing: border-box; }
.rr-title { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -.02em; }
.rr-overlay p { font-size: 13px; color: #aaa; line-height: 1.6; }
.rr-start { background: #fff; color: #000; font-weight: 700; padding: 11px 26px; border-radius: 30px; }
.rr-start:hover { background: var(--accent); color: #fff; }
.rr-skinlab { font-family: var(--mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: #ffc21e; margin-top: -2px; }
.rr-skins { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 320px; }
.rr-skin { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 66px; padding: 7px 4px 5px;
  border-radius: 11px; background: rgba(243,241,234,.06); border: 1.5px solid transparent; transition: border-color .15s, background .15s, transform .12s; }
.rr-skin img { width: 46px; height: 36px; object-fit: contain; }
.rr-skin span { font-size: 9.5px; letter-spacing: .04em; color: #c9c2dc; }
.rr-skin:hover { background: rgba(243,241,234,.12); transform: translateY(-1px); }
.rr-skin.on { border-color: #ffc21e; background: rgba(255,194,30,.14); }
.rr-skin.on span { color: #fff; }

/* ---------- SPOTLIGHT --------------------------------------- */
#spotlight { position: fixed; inset: 0; z-index: 9800; background: rgba(0,0,0,.25); display: flex; align-items: flex-start; justify-content: center; padding-top: 16vh; backdrop-filter: blur(4px); }
.sp-box { width: min(560px, 92vw); background: var(--chrome); backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%); border: .5px solid var(--border-2); border-radius: 16px; box-shadow: var(--shadow-win); overflow: hidden; animation: pop .14s var(--ease); }
.sp-input { width: 100%; padding: 18px 22px; font-size: 19px; border: none; outline: none; background: none; color: var(--text); }
.sp-results { max-height: 50vh; overflow: auto; border-top: .5px solid var(--border); padding: 6px; }
.sp-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 14px; border-radius: 10px; text-align: left; }
.sp-row.on { background: var(--accent); color: #fff; }
.sp-row.on small { color: rgba(255,255,255,.8); }
.sp-ic { font-size: 20px; }
.sp-meta { display: flex; flex-direction: column; }
.sp-meta small { color: var(--muted); font-size: 12px; }
.sp-empty { padding: 18px; color: var(--muted); font-size: 14px; text-align: center; }

/* ---------- reduced motion toggle from Settings ------------- */
html.rm *, html.rm *::before, html.rm *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }

/* ============================================================
   MOBILE SPRINGBOARD
   ============================================================ */
body.mobile #menubar, body.mobile #dock-wrap, body.mobile #desktop { display: none; }
#springboard { position: fixed; inset: 0; z-index: 100; overflow-y: auto;
  display: flex; flex-direction: column;
  background: var(--wall); background-size: cover; background-position: center;
  padding: env(safe-area-inset-top) 18px calc(14px + env(safe-area-inset-bottom)); color: #fff; }
.sb-scrim { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,8,6,.28) 0%, rgba(10,8,6,.5) 50%, rgba(10,8,6,.85) 100%); }
#springboard > *:not(.sb-scrim) { position: relative; z-index: 1; }
.sb-status { display: flex; justify-content: space-between; padding: 10px 4px 0; font-size: 12px; font-family: var(--mono); color: #e8e2d6; font-weight: 500; }
.sb-status-r { font-size: 10px; letter-spacing: .06em; opacity: .85; }
.sb-hero { text-align: center; padding: 16px 0 18px; }
.sb-logo-img { width: min(190px, 56vw); height: auto; }
.sb-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: #c9bfae; margin-top: 6px; }

/* featured 1-of-1 card */
.sb-feature { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: rgba(28,24,20,.5); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: .5px solid rgba(236,231,223,.14); border-radius: 20px; padding: 12px; margin-bottom: 22px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); transition: transform .12s; }
.sb-feature:active { transform: scale(.98); }
.sb-feature-img { width: 76px; height: 76px; flex: none; border-radius: 14px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.sb-feature-img img { width: 100%; height: 100%; object-fit: cover; }
.sb-feature-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sb-feature-tag { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; color: var(--yellow); }
.sb-feature-meta b { font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-feature-cta { font-size: 12px; color: #c9bfae; }

/* home-screen widgets (mobile) */
.sb-widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.sb-wg { text-align: left; background: rgba(28,24,20,.5); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: .5px solid rgba(236,231,223,.14); border-radius: 18px; padding: 12px 14px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6);
  display: flex; flex-direction: column; gap: 9px; min-height: 80px; justify-content: center; transition: transform .12s; }
.sb-wg:active { transform: scale(.97); }
.sb-wg-t { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #c9bfae; }
.sb-wg .wg-count { font-size: 19px; font-weight: 700; color: #fff; }
.sb-wg .wg-count b { color: var(--yellow); }
.sb-wg .wg-np { display: flex; align-items: center; gap: 8px; }
.sb-wg .wg-np-art { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; background: linear-gradient(135deg,#e8631a,#ffc21e); color: #1a1430; font-weight: 800; font-size: 11px; flex: none; }
.sb-wg .wg-np b { font-size: 12px; color: #fff; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80px; }
.sb-wg .wg-np small { font-size: 10px; color: #b8ae9e; display: block; }
.sb-wg .wg-play { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; flex: none; font-size: 11px; }

.sb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 14px; }
.sb-app { display: flex; flex-direction: column; align-items: center; gap: 7px; color: #fff; transition: transform .12s; }
.sb-app:active { transform: scale(.9); }
.sb-ic { width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; background: var(--tile, linear-gradient(165deg,#3a3a42,#0d0d10)); box-shadow: 0 6px 14px rgba(0,0,0,.45); overflow: hidden; }
.sb-name { font-size: 11px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
/* folder tile = 2×2 mini icons */
.sb-folder-ic { background: rgba(40,36,31,.55); backdrop-filter: blur(14px); display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 7px; }
.sb-folder-ic i { font-size: 15px; display: grid; place-items: center; font-style: normal; }

/* bottom dock — pinned to the bottom of the column */
.sb-dock { margin-top: auto; flex: none;
  display: flex; justify-content: space-around; padding: 11px 8px;
  background: rgba(30,26,22,.5); backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: .5px solid rgba(236,231,223,.16); border-radius: 28px; box-shadow: 0 14px 40px -8px rgba(0,0,0,.6); }
.sb-dock .sb-app { gap: 0; }
.sb-dock .sb-name { display: none; }

/* folder bottom sheet */
.sb-folder-sheet { position: fixed; inset: 0; z-index: 150; display: flex; align-items: flex-end;
  background: rgba(8,6,4,.5); backdrop-filter: blur(8px); animation: fade .2s ease; }
.sb-folder-inner { width: 100%; background: rgba(26,22,18,.96); border-radius: 26px 26px 0 0; padding: 18px 18px calc(28px + env(safe-area-inset-bottom));
  border-top: .5px solid rgba(236,231,223,.16); animation: mv-in .26s var(--ease); }
.sb-folder-title { font-family: var(--mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #c9bfae; text-align: center; margin-bottom: 18px; }
.sb-folder-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 14px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---- mobile app layout overrides ---- */
body.mobile .store { flex-direction: column; }
body.mobile .store-side { width: 100%; flex: none; flex-direction: row; align-items: center;
  padding: 9px 12px; overflow-x: auto; border-right: none; border-bottom: .5px solid var(--border); }
body.mobile .store-side::-webkit-scrollbar { display: none; }
body.mobile .store-side-h, body.mobile .store-side-foot { display: none; }
body.mobile .store-cats { flex-direction: row; flex-wrap: nowrap; gap: 7px; }
body.mobile .store-cat { white-space: nowrap; padding: 7px 14px; border-radius: 20px; background: var(--card-bg); }
body.mobile .store-scroll.grid { grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; }
body.mobile .store-scroll.detail { grid-template-columns: 1fr; gap: 16px; padding: 16px; }

body.mobile .outfit { flex-direction: column; }
body.mobile .ob-stage { flex: 1 1 52%; min-height: 0; padding: 10px; }
body.mobile .ob-panel { width: 100%; flex: 1 1 48%; min-height: 0; overflow: hidden; border-left: none; border-top: .5px solid var(--border); }
body.mobile .ob-figure { width: auto; height: 94%; aspect-ratio: 3/4; max-width: 78%; }

/* Music (iTunes) */
body.mobile .it-top { flex-wrap: wrap; gap: 8px 10px; }
body.mobile .it-search { display: none; }
body.mobile .it-lcd { max-width: none; order: 3; width: 100%; margin: 0; }
body.mobile .it-body { flex-direction: column; }
body.mobile .it-side { width: 100%; flex: 0 0 auto; max-height: 30%; border-right: none; border-bottom: .5px solid var(--win-bd); overflow-y: auto; }

/* Notes / Manifesto */
body.mobile .notes { flex-direction: column; }
body.mobile .nt-side { width: 100%; flex: 0 0 auto; max-height: 34%; border-right: none; border-bottom: .5px solid var(--win-bd); }

/* App Store */
body.mobile .appstore { flex-direction: column; }
body.mobile .as-side { width: 100%; flex: 0 0 auto; flex-direction: row; gap: 7px; overflow-x: auto;
  border-right: none; border-bottom: .5px solid var(--win-bd); padding: 9px 12px; white-space: nowrap; }

/* Photo Booth — camera on top, controls below */
/* Photo Booth: camera on top, capture button at the BOTTOM (thumb reach) */
body.mobile .pb { flex-direction: column; }
body.mobile .pb-stage { flex: 1 1 auto; min-height: 0; }
body.mobile .pb-bar { padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); }
/* Lookbook: stack — album chips scroll horizontally on top, photo grid fills below */
body.mobile .photos { flex-direction: column; }
body.mobile .ph-side { width: 100%; flex: 0 0 auto; display: flex; flex-direction: row; align-items: center; gap: 7px;
  border-right: none; border-bottom: .5px solid var(--win-bd); overflow-x: auto; overflow-y: hidden; padding: 8px 10px; -webkit-overflow-scrolling: touch; }
body.mobile .ph-side::-webkit-scrollbar { display: none; }
body.mobile .ph-side-h, body.mobile .ph-side-lab { display: none; }
body.mobile .ph-album { flex: 0 0 auto; white-space: nowrap; width: auto; padding: 7px 13px; border-radius: 20px; background: var(--card-bg, rgba(128,128,135,.14)); }
body.mobile .ph-main { flex: 1; min-height: 0; }

/* Maps */
body.mobile .maps { flex-direction: column; }
body.mobile .maps-canvas { flex: 0 0 42%; }
body.mobile .maps-list { flex: 1; }

/* Worldwide globe */
body.mobile .globe { flex-direction: column; }
body.mobile .gl-panel { width: 100%; flex: 0 0 auto; max-height: 40%; overflow-y: auto; }

/* Decks — stack the two decks vertically (side-by-side won't fit a phone) */
body.mobile .decks { padding: 10px; gap: 8px; overflow-y: auto; }
body.mobile .dk-body { grid-template-columns: 1fr; gap: 8px; }
body.mobile .dk-mixer { order: 3; }
body.mobile .dk-deck { padding: 10px; gap: 9px; }
body.mobile .dk-jog { width: 110px; height: 110px; }

/* Lookbook */
body.mobile .lb-grid { grid-template-columns: repeat(2, 1fr); }
body.mobile .lb-light { flex-direction: column; }
body.mobile .lb-photo { flex: 0 0 46%; }

/* Paint — slimmer toolbox so the canvas fits */
body.mobile .pt-toolbox { width: 48px; flex: 0 0 48px; }
body.mobile .pt-tool { width: 30px; height: 30px; font-size: 14px; }

body.mobile .decks, body.mobile .itunes { font-size: 13px; }
/* Beat Pad: let the transport controls wrap instead of running off the right edge */
body.mobile .beat-transport { flex-wrap: wrap; gap: 10px 12px; }
body.mobile .beat-swing { min-width: 88px; }
body.mobile .beat-tools { margin-left: auto; }
#mobile-view { position: fixed; inset: 0; z-index: 200; background: var(--surface); display: flex; flex-direction: column; height: 100dvh; animation: mv-in .25s var(--ease); }
@keyframes mv-in { from { transform: translateY(100%); } to { transform: none; } }
.mv-bar { display: flex; align-items: center; justify-content: space-between; padding: max(10px, env(safe-area-inset-top)) 14px 10px; background: var(--chrome); backdrop-filter: blur(20px); border-bottom: .5px solid var(--border); }
.mv-back { color: var(--accent); font-size: 15px; font-weight: 500; }
.mv-title { font-weight: 700; font-size: 15px; }
.mv-body { flex: 1; overflow: auto; position: relative; }
.mv-home { height: 22px; display: flex; justify-content: center; align-items: center; }
.mv-home::after { content: ""; width: 130px; height: 5px; border-radius: 4px; background: rgba(0,0,0,.3); }

/* ---------- PAINT ------------------------------------------- */
.paint { display: flex; flex-direction: column; height: 100%; background: var(--card-bg-2); }
.pt-tools { display: flex; align-items: center; gap: 14px; padding: 8px 12px; background: var(--win-bar);
  backdrop-filter: blur(20px); border-bottom: .5px solid var(--win-bd); flex-wrap: wrap; }
.pt-toolset { display: flex; gap: 3px; }
.pt-tool { width: 34px; height: 34px; border-radius: 8px; font-size: 16px; display: grid; place-items: center; background: var(--card-bg); }
.pt-tool:hover { background: var(--hover); }
.pt-tool.on { background: var(--accent); }
.pt-sizes { display: flex; align-items: center; gap: 10px; }
.pt-size { width: 96px; accent-color: var(--accent); }
.pt-size-dot { background: var(--win-text); border-radius: 50%; display: inline-block; min-width: 4px; min-height: 4px; }
.pt-color { width: 34px; height: 34px; border: none; border-radius: 8px; background: none; cursor: pointer; padding: 0; }
.pt-swatches { display: flex; gap: 4px; flex-wrap: wrap; max-width: 320px; }
.pt-sw { width: 22px; height: 22px; border-radius: 5px; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.25); }
.pt-sw:hover { transform: scale(1.12); }
.pt-stage { flex: 1; display: grid; place-items: center; padding: 16px; overflow: auto; }
.pt-canvas { background: #fff; border-radius: 8px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
  max-width: 100%; max-height: 100%; cursor: crosshair; touch-action: none; }
.pt-actions { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--win-bar);
  backdrop-filter: blur(20px); border-top: .5px solid var(--win-bd); }
.pt-spacer { flex: 1; }
.pt-btn { padding: 8px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; background: var(--card-bg); color: var(--win-text); }
.pt-btn:hover { background: var(--hover); }
.pt-primary { background: var(--accent) !important; color: #fff !important; }
.pt-primary:hover { filter: brightness(1.08); }

.pt-modal { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center;
  background: rgba(0,0,0,.45); backdrop-filter: blur(6px); padding: 24px; }
.pt-card { width: min(420px, 100%); background: var(--win-bg); color: var(--win-text); border-radius: 18px;
  padding: 24px; box-shadow: var(--shadow-win); position: relative; max-height: 100%; overflow: auto; }
.pt-x { position: absolute; top: 14px; right: 16px; font-size: 16px; color: var(--win-soft); }
.pt-card h2 { font-family: var(--display); font-weight: 800; font-size: 22px; margin-bottom: 6px; }
.pt-card p { color: var(--win-soft); font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
.pt-preview { width: 100%; border-radius: 10px; border: .5px solid var(--win-bd); margin-bottom: 14px; background: #fff; }
.pt-form { display: flex; flex-direction: column; gap: 10px; }
.pt-form input { padding: 11px 13px; border-radius: 10px; border: 1px solid var(--win-bd-strong); background: var(--field-bg); color: var(--win-text); font: inherit; outline: none; }
.pt-form input:focus { border-color: var(--accent); }
.pt-send { padding: 12px; border-radius: 10px; font-weight: 600; margin-top: 4px; }
.pt-send:disabled { opacity: .6; cursor: default; }
.pt-status { font-size: 13px; min-height: 18px; text-align: center; }
.pt-status.ok { color: var(--green); }
.pt-status.err { color: var(--accent-2); }

/* ---------- GLOBE / WORLDWIDE ------------------------------- */
.globe { display: flex; height: 100%; background: radial-gradient(circle at 40% 30%, #0c1430, #05060e 70%); color: #eef; }
.gl-stage { flex: 1.5; position: relative; min-width: 0; display: grid; place-items: center; }
.gl-canvas { position: absolute; inset: 0; }
.gl-loading { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #6a7a9a; z-index: 2; }
.gl-fallback { text-align: center; padding: 30px; max-width: 380px; }
.gl-fallback-emoji { font-size: 64px; margin-bottom: 12px; }
.gl-fallback p { color: #cdd6f0; line-height: 1.6; margin-bottom: 8px; }
.gl-panel { width: 300px; flex: 0 0 300px; padding: 22px 22px 16px; background: rgba(8,10,22,.6);
  backdrop-filter: blur(20px); border-left: .5px solid rgba(255,255,255,.08); display: flex; flex-direction: column; overflow: auto; }
.gl-panel h1 { font-size: 24px; line-height: 1.1; margin-bottom: 16px; }
.gl-stats { display: flex; gap: 14px; margin-bottom: 18px; }
.gl-stats > div { flex: 1; background: rgba(40,220,255,.07); border: .5px solid rgba(40,220,255,.18); border-radius: 12px; padding: 12px; }
.gl-stats b { font-family: var(--display); font-weight: 800; font-size: 26px; display: block; }
.gl-stats small { color: #7e8aa8; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.gl-board { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.gl-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.gl-name { flex: 0 0 96px; color: #cdd6f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-bar { flex: 1; height: 6px; background: rgba(255,255,255,.08); border-radius: 4px; overflow: hidden; }
.gl-bar i { display: block; height: 100%; background: linear-gradient(90deg,#1c4696,#28dcff); border-radius: 4px; }
.gl-v { flex: 0 0 30px; text-align: right; font-variant-numeric: tabular-nums; color: #9fb0d6; }
.gl-ticker { margin-top: auto; padding-top: 12px; border-top: .5px solid rgba(255,255,255,.08); }
.gl-tick { font-family: var(--mono); font-size: 11px; color: #28dcff; letter-spacing: .04em; }

/* ---------- product spec chips ------------------------------ */
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.pd-tag-chip { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px;
  background: var(--card-bg); color: var(--text-soft); border: .5px solid var(--win-bd); }

/* ---------- SAFARI ------------------------------------------ */
.safari { display: flex; flex-direction: column; height: 100%; background: var(--win-bg); }
.sf-tabs { display: flex; gap: 2px; padding: 6px 10px 0; background: var(--win-bar); }
.sf-tab { display: flex; align-items: center; gap: 7px; padding: 7px 16px; border-radius: 9px 9px 0 0; font-size: 12px; background: var(--win-bg); max-width: 200px; }
.sf-tab .sf-fav { font-size: 10px; }
.sf-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--win-bar);
  backdrop-filter: blur(20px); border-bottom: .5px solid var(--win-bd); }
.sf-nav { width: 30px; height: 30px; border-radius: 8px; font-size: 16px; color: var(--win-soft); }
.sf-nav:hover { background: var(--hover); }
.sf-url { flex: 1; display: flex; align-items: center; gap: 7px; background: var(--card-bg); border-radius: 9px; padding: 6px 12px; }
.sf-lock { font-size: 11px; opacity: .7; }
.sf-input { flex: 1; border: none; background: none; outline: none; color: var(--win-text); font-size: 13px; text-align: center; }
.sf-view { flex: 1; position: relative; overflow: auto; background: var(--win-bg); }
.sf-frame { width: 100%; height: 100%; border: 0; }
.sf-blocked { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--win-soft);
  background: var(--pop-bg); padding: 8px 14px; border-radius: 10px; box-shadow: var(--shadow-pop); display: flex; gap: 10px; align-items: center; }
.sf-blocked .sf-openext { color: var(--accent); font-weight: 600; }

.sf-landing { text-align: center; padding: 60px 24px; }
.sf-landing .sf-logo { font-family: var(--display); font-weight: 800; font-size: 60px; letter-spacing: -.04em; }
.sf-landing h1 { font-family: var(--display); font-weight: 800; font-size: 30px; margin: 8px 0; }
.sf-landing p { color: var(--win-soft); margin-bottom: 22px; }
.sf-quick { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.sf-quick button { padding: 11px 18px; border-radius: 30px; background: var(--card-bg); font-weight: 600; font-size: 13px; }
.sf-quick button:hover { background: var(--accent); color: #fff; }

.sf-checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; min-height: 100%; }
.sf-co-form { padding: 30px 34px; display: flex; flex-direction: column; gap: 10px; }
.sf-co-secure { font-size: 12px; color: var(--green); margin-bottom: 6px; }
.sf-co-form h2 { font-family: var(--display); font-weight: 800; font-size: 16px; margin-top: 10px; }
.sf-co-form input { padding: 11px 13px; border-radius: 9px; border: 1px solid var(--win-bd-strong); background: var(--field-bg); color: var(--win-text); font: inherit; outline: none; }
.sf-co-form input:focus { border-color: var(--accent); }
.sf-co-row { display: flex; gap: 10px; } .sf-co-row input { flex: 1; }
.sf-co-pay { padding: 12px 13px; border-radius: 9px; background: var(--card-bg); font-size: 14px; }
.sf-co-pay span { color: var(--win-muted); font-size: 12px; }
.sf-co-btn { margin-top: 8px; padding: 14px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; }
.sf-co-note { font-size: 11px; color: var(--win-muted); line-height: 1.5; margin-top: 4px; }
.sf-co-summary { background: var(--card-bg-2); padding: 30px 28px; border-left: .5px solid var(--win-bd); }
.sf-co-summary h3 { font-family: var(--display); font-weight: 800; margin-bottom: 16px; }
.sf-co-item { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 13px; }
.sf-co-sw { width: 40px; height: 48px; border-radius: 7px; background: linear-gradient(160deg,#f4f4f1,#e6e6e2); display: grid; place-items: center; overflow: hidden; flex: 0 0 40px; }
.sf-co-sw img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.sf-co-meta { flex: 1; display: flex; flex-direction: column; } .sf-co-meta small { color: var(--win-muted); font-size: 11px; }
.sf-co-empty { color: var(--win-muted); font-size: 13px; }
.sf-co-tot { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: .5px solid var(--win-bd); font-size: 16px; }
.sf-co-done { text-align: center; padding: 70px 24px; grid-column: 1 / -1; }
.sf-co-done .sf-logo { font-size: 56px; } .sf-co-done h1 { font-family: var(--display); font-weight: 800; font-size: 30px; margin: 10px 0; }
.sf-co-done p { color: var(--win-soft); line-height: 1.6; }

/* ---------- REWIND as iTunes -------------------------------- */
.itunes { display: flex; flex-direction: column; height: 100%; background: var(--win-bg); color: var(--win-text); font-size: 13px; }
.it-top { display: flex; align-items: center; gap: 14px; padding: 9px 14px; background: var(--win-bar);
  backdrop-filter: blur(20px); border-bottom: .5px solid var(--win-bd); }
.it-controls { display: flex; align-items: center; gap: 4px; }
.it-c { width: 30px; height: 28px; border-radius: 7px; font-size: 13px; color: var(--win-text); }
.it-c:hover { background: var(--hover); }
.it-play { font-size: 15px; }
.it-vol { display: flex; align-items: center; gap: 5px; margin-left: 6px; font-size: 12px; }
.it-vol-s { width: 64px; accent-color: var(--accent); }
.it-lcd { flex: 1; max-width: 460px; margin: 0 auto; display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, var(--card-bg-2), var(--card-bg)); border: .5px solid var(--win-bd);
  border-radius: 9px; padding: 6px 12px; box-shadow: inset 0 1px 3px rgba(0,0,0,.25); }
.it-art { width: 38px; height: 38px; border-radius: 5px; background: linear-gradient(150deg,#3b8bff,#5b4bd6); overflow: hidden;
  display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 800; font-size: 13px; flex: 0 0 38px; }
.it-art img { width: 100%; height: 100%; object-fit: cover; }
.it-feats { white-space: nowrap; }
.it-feats a { color: var(--accent); font-weight: 600; text-decoration: none; }
.it-feats a:hover { text-decoration: underline; }
.it-nowlink { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62%; }
.it-nowlink:hover { text-decoration: underline; }
.it-lcd-main { flex: 1; min-width: 0; text-align: center; }
.it-lcd-now { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it-lcd-sub { font-size: 11px; color: var(--win-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it-scrub { display: flex; align-items: center; gap: 7px; margin-top: 3px; }
.it-scrub span { font-size: 10px; color: var(--win-muted); font-variant-numeric: tabular-nums; min-width: 28px; }
.it-bar { flex: 1; height: 5px; background: rgba(128,128,135,.3); border-radius: 4px; cursor: pointer; overflow: hidden; }
.it-bar-fill { height: 100%; width: 0; background: var(--accent); }
.it-lcd-eq { display: flex; gap: 2px; align-items: flex-end; height: 26px; }
.it-lcd-eq i { width: 3px; height: 6px; background: var(--accent); border-radius: 2px; }
.itunes.playing .it-lcd-eq i { animation: eq .7s ease-in-out infinite; }
.it-lcd-eq i:nth-child(2){animation-delay:.15s} .it-lcd-eq i:nth-child(3){animation-delay:.3s} .it-lcd-eq i:nth-child(4){animation-delay:.45s}
.it-search { width: 150px; padding: 6px 12px; border-radius: 16px; border: .5px solid var(--win-bd-strong);
  background: var(--field-bg); color: var(--win-text); font: inherit; font-size: 12px; outline: none; }
.it-search:focus { border-color: var(--accent); }

.it-body { flex: 1; display: flex; min-height: 0; }
.it-side { width: 180px; flex: 0 0 180px; background: var(--sidebar-bg); backdrop-filter: blur(20px);
  border-right: .5px solid var(--win-bd); padding: 10px 8px; overflow: auto; }
.it-side-group { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--win-muted); padding: 10px 8px 4px; }
.it-src { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 9px; border-radius: 6px; text-align: left; font-size: 13px; color: var(--win-text); }
.it-src:hover { background: var(--hover); }
.it-src.on { background: var(--accent); color: #fff; }
/* collapsible artist rows — every artist equal, alphabetical */
.it-art-row { display: flex; align-items: center; }
.it-art-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 6px; text-align: left; font-size: 13px; font-weight: 600; color: var(--win-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it-art-name:hover { background: var(--hover); }
.it-art-name.on { background: var(--accent); color: #fff; }
.it-caret { font-size: 9px; opacity: .65; transition: transform .15s ease; display: inline-block; flex: none; }
.it-artist.open .it-caret { transform: rotate(90deg); }
.it-art-out { flex: none; padding: 5px 8px; border-radius: 6px; color: var(--win-muted); font-size: 12px; }
.it-art-out:hover { color: var(--accent); background: var(--hover); }
.it-art-albums { display: none; }
.it-artist.open .it-art-albums { display: block; }
.it-art-albums .it-album { padding-left: 26px; font-size: 12px; color: var(--win-soft); }
.it-art-row .it-src { flex: 1; min-width: 0; }
.it-radio { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 6px; text-align: left; font-size: 13px; color: var(--win-text); }
.it-radio:hover { background: var(--hover); }
.it-radio.on { background: var(--accent); color: #fff; }
/* in-app SoundCloud radio embed */
.it-radio-embed { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; background: #161618; }
.itunes.it-radio-on .it-head { display: none; }
.itunes.it-radio-on .it-list { padding: 0; overflow: hidden; }
.it-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.it-head, .it-row { display: grid; grid-template-columns: 2.4fr .7fr 1.3fr 1.4fr; gap: 10px; padding: 7px 16px; align-items: center; }
.it-head { font-size: 11px; font-weight: 600; color: var(--win-soft); border-bottom: .5px solid var(--win-bd); position: sticky; top: 0; background: var(--win-bg); }
.it-list { flex: 1; overflow: auto; }
.it-row { font-size: 13px; cursor: default; border-bottom: .5px solid rgba(128,128,135,.08); }
.it-row:nth-child(even) { background: rgba(128,128,135,.05); }
.it-row:hover { background: var(--hover); }
.it-row.on { background: var(--accent); color: #fff; }
.it-row.on .c-a, .it-row.on .c-al, .it-row.on .c-t { color: rgba(255,255,255,.85); }
.it-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-t, .c-a, .c-al { color: var(--win-soft); }
.it-eqmini { display: inline-flex; gap: 1.5px; align-items: flex-end; height: 10px; vertical-align: middle; margin-right: 4px; }
.it-eqmini i { width: 2px; height: 4px; background: currentColor; animation: eq .6s infinite; }
.it-eqmini i:nth-child(2){animation-delay:.2s} .it-eqmini i:nth-child(3){animation-delay:.4s}
.it-viz { width: 120px; height: 34px; align-self: center; }
.it-foot { padding: 6px 16px; border-top: .5px solid var(--win-bd); background: var(--win-bar); font-size: 11px; color: var(--win-soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.it-feat { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.it-feat:hover { text-decoration: underline; }

/* ---------- NOTES ------------------------------------------- */
.notes { display: flex; height: 100%; background: var(--win-bg); }
.nt-side { width: 230px; flex: 0 0 230px; background: var(--sidebar-bg); backdrop-filter: blur(20px); border-right: .5px solid var(--win-bd); overflow: auto; }
.nt-side-h { display: flex; align-items: center; justify-content: space-between; font-family: var(--display); font-weight: 800; font-size: 15px; padding: 14px 16px 8px; color: var(--win-soft); }
.nt-new { width: 26px; height: 26px; border-radius: 7px; font-size: 17px; line-height: 1; color: var(--accent); background: var(--card-bg); display: grid; place-items: center; }
.nt-new:hover { background: var(--accent); color: #fff; }
.nt-group { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--win-muted); padding: 12px 14px 5px; }
.nt-lock { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--win-muted); }
.nt-del { font-size: 12px; color: #ff5f57; font-weight: 600; }
.nt-del:hover { text-decoration: underline; }
.nt-body.locked { color: var(--win-soft); cursor: default; }
.nt-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nt-item { display: block; width: 100%; text-align: left; padding: 10px 14px; border-bottom: .5px solid var(--win-bd); }
.nt-item:hover { background: var(--hover); }
.nt-item.on { background: var(--accent); color: #fff; }
.nt-item b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.nt-prev { font-size: 12px; color: var(--win-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.nt-prev i { color: var(--win-soft); font-style: normal; }
.nt-item.on .nt-prev, .nt-item.on .nt-prev i { color: rgba(255,255,255,.85); }
.nt-editor { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.nt-bar { padding: 12px 28px 0; }
.nt-date { font-size: 12px; color: var(--win-muted); }
.nt-body { flex: 1; padding: 14px 28px 28px; overflow: auto; line-height: 1.6; font-size: 15px; outline: none; }
.nt-body:first-line { font-weight: 700; }
/* audio note — phone-Notes-style recording list */
.nt-audio-intro { color: var(--win-soft); margin-bottom: 16px; }
.nt-audio-list { display: flex; flex-direction: column; gap: 10px; }
.nt-au { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-radius: 12px; background: var(--card-bg, rgba(128,128,135,.12)); border: 1px solid var(--win-bd); }
.nt-au-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nt-au-meta b { font-size: 14.5px; }
.nt-au-meta small { color: var(--win-muted); font-size: 12px; }
.nt-au-play { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-text); font-weight: 700; font-size: 13px; cursor: pointer; }
.nt-au-play span { font-size: 11px; }
.nt-au-play:hover { opacity: .9; }

/* ---------- PHOTOS (lookbook chrome) ------------------------ */
.photos { display: flex; height: 100%; background: var(--win-bg); }
.ph-side { width: 200px; flex: 0 0 200px; background: var(--sidebar-bg); backdrop-filter: blur(20px); border-right: .5px solid var(--win-bd); padding: 10px 8px; }
.ph-side-h { font-family: var(--display); font-weight: 800; font-size: 15px; padding: 6px 10px 10px; }
.ph-album { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; padding: 7px 10px; border-radius: 7px; font-size: 13px; color: var(--win-text); }
.ph-album:hover { background: var(--hover); }
.ph-album.on { background: var(--accent); color: #fff; }
.ph-side-lab { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 10px 4px; }
.ph-ig { display: block; margin-top: 14px; padding: 8px 10px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--win-soft); text-decoration: none; border: 1px solid var(--win-bd); }
.ph-ig:hover { background: var(--hover); color: var(--win-text); }
body.mobile .ph-ig { display: none; }
.lb-credit { font-size: 12px; color: var(--muted); line-height: 1.6; margin: -4px 0 12px; }
.lb-colcount { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; }
.ph-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ph-bar { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 18px 10px; }
.ph-title { font-family: var(--display); font-weight: 800; font-size: 20px; }
.ph-count { font-size: 12px; color: var(--win-muted); }
.photos .lb-grid { flex: 1; grid-template-columns: repeat(3, 1fr); padding: 0 8px 8px; align-content: start; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff; font-size: 22px; backdrop-filter: blur(8px); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-arrow:hover { background: rgba(0,0,0,.7); }

/* ---------- CALENDAR (month grid) --------------------------- */
.calendar2 { display: flex; flex-direction: column; height: 100%; background: var(--win-bg); }
.cal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; }
.cal-title { font-family: var(--display); font-weight: 800; font-size: 22px; }
.cal-nav { display: flex; gap: 4px; align-items: center; }
.cal-nav button { padding: 5px 12px; border-radius: 7px; font-size: 14px; color: var(--win-text); }
.cal-nav button:hover { background: var(--hover); }
.cal-today { border: .5px solid var(--win-bd-strong); font-size: 12px !important; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); padding: 0 16px; }
.cal-week span { text-align: right; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--win-muted); padding: 4px 8px; }
.cal-grid { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 1fr; gap: 1px; padding: 0 16px 16px; background: var(--win-bd); border: 1px solid var(--win-bd); margin: 0 16px 16px; border-radius: 8px; overflow: hidden; }
.cal-cell { background: var(--win-bg); padding: 5px 7px; display: flex; flex-direction: column; gap: 3px; min-height: 0; overflow: hidden; }
.cal-cell.empty { background: var(--card-bg-2); }
.cal-num { font-size: 12px; color: var(--win-soft); text-align: right; }
.cal-cell.today .cal-num { background: var(--accent-2); color: #fff; border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; margin-left: auto; }
.cal-ev { font-size: 10px; padding: 2px 5px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.drop { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }
.cal-ev.tour { background: color-mix(in srgb, var(--accent-2) 22%, transparent); color: var(--accent-2); }

/* ---------- LAUNCHPAD --------------------------------------- */
#launchpad { position: fixed; inset: 0; z-index: 9700; background: rgba(10,9,14,.94); display: grid; place-items: center; animation: lp-in .25s var(--ease); }
@keyframes lp-in { from { opacity: 0; } to { opacity: 1; } }
.lp-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px 44px; padding: 40px; max-width: 760px; }
.lp-app { display: flex; flex-direction: column; align-items: center; gap: 9px; color: #fff; animation: lp-pop .35s var(--spring) backwards; }
.lp-app:hover .lp-ic { transform: scale(1.12); }
@keyframes lp-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.lp-ic { width: 72px; height: 72px; border-radius: 17px; display: grid; place-items: center; font-size: 38px; transition: transform .15s var(--spring);
  background: var(--tile, linear-gradient(165deg,#3a3a42,#0d0d10)); box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.lp-ic[data-accent="paper"], .lp-ic[data-accent="yellow"] { color: #1d1d1f; }
.lp-name { font-size: 13px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }

/* ---------- shared GAME PAUSE control ---------------------- */
.g-pausebtn { position: absolute; top: 10px; left: 10px; z-index: 40;
  width: 34px; height: 34px; border-radius: 50%; padding: 0;
  border: 1px solid rgba(255,255,255,.28); background: rgba(20,18,28,.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.35); transition: transform .12s ease, background .12s ease; }
.g-pausebtn:hover { transform: scale(1.08); background: rgba(34,30,46,.75); }
.g-pausebtn span { width: 3.5px; height: 13px; border-radius: 2px; background: #f3f1ea; display: block; }
.g-pause { position: absolute; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  background: rgba(8,6,14,.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.g-pause-card { display: flex; flex-direction: column; gap: 11px; min-width: 210px; text-align: center;
  padding: 26px 26px 24px; border-radius: 18px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(24,22,32,.94); box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.g-pause-h { font: 800 20px "Plus Jakarta Sans", sans-serif; letter-spacing: .06em; color: #f3f1ea; margin-bottom: 6px; }
.g-pause-btn { padding: 11px 16px; border-radius: 11px; border: 1px solid rgba(255,255,255,.16);
  font: 700 14px "Plus Jakarta Sans", sans-serif; cursor: pointer; transition: transform .1s ease, background .12s ease; }
.g-pause-btn:hover { transform: translateY(-1px); }
.g-pause-resume { background: #f3f1ea; color: #15131c; border-color: transparent; }
.g-pause-resume:hover { background: #fff; }
.g-pause-menu { background: rgba(255,255,255,.06); color: #e8e4dc; }
.g-pause-menu:hover { background: rgba(255,255,255,.13); }

/* ---------- CROSSFADE (rhythm game) ------------------------- */
.xf { --h: 198; height: 100%; display: grid; place-items: center; padding: 14px;
  background: radial-gradient(circle at 50% 24%, hsl(var(--h) 45% 12%), #06060b 78%); }
.xf-wrap { position: relative; width: 520px; max-width: 100%; }
.xf-canvas { width: 100%; border-radius: 16px; display: block; box-shadow: 0 24px 60px -22px rgba(0,0,0,.8), inset 0 0 0 1px hsla(var(--h) 80% 60% .18); }
.xf-hud { position: absolute; top: 14px; left: 18px; right: 18px; display: flex; align-items: flex-start; justify-content: space-between; pointer-events: none; }
.xf-np { display: flex; flex-direction: column; }
.xf-track { font-family: var(--display); font-weight: 800; font-size: 22px; color: #fff; text-shadow: 0 2px 16px hsla(var(--h) 95% 60% .6); }
.xf-artist { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: hsla(var(--h) 70% 78% .8); }
.xf-bpm { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: hsla(var(--h) 70% 80% .7); padding-top: 4px; }
/* shared in-game tutorial card */
.g-tut { display: flex; flex-direction: column; gap: 7px; text-align: left; margin: 6px 0 10px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 13px 15px; }
.g-tut > div { font-size: 12.5px; line-height: 1.35; color: #d4d7df; }
.g-tut b { display: inline-block; min-width: 62px; font-family: var(--mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: .14em; color: #f0c060; vertical-align: 1px; }

/* shared high-score board */
.g-board { width: min(320px, 80vw); margin: 4px auto 0; text-align: left; }
.g-board-h { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #f0c060; text-align: center; margin-bottom: 8px; }
.g-board-entry { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; font-size: 12px; color: #d4d7df; }
.g-board-entry span { flex: 1; }
.g-initials { width: 56px; text-transform: uppercase; text-align: center; font-weight: 800; letter-spacing: .14em; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.2); border-radius: 7px; padding: 6px; color: #fff; }
.g-save { background: #f0c060; color: #1a140d; font-weight: 700; font-size: 12px; padding: 7px 14px; border-radius: 8px; }
.g-board-list { display: flex; flex-direction: column; gap: 3px; }
.g-board-row { display: flex; align-items: center; gap: 10px; padding: 5px 10px; border-radius: 7px; font-size: 13px; background: rgba(255,255,255,.03); }
.g-board-row.me { background: rgba(240,192,96,.16); box-shadow: inset 0 0 0 1px rgba(240,192,96,.4); }
.g-board-row .g-rk { width: 16px; color: #888; font-family: var(--mono); font-size: 11px; }
.g-board-row b { flex: 1; font-family: var(--mono); font-weight: 700; letter-spacing: .1em; color: #fff; }
.g-board-row em { font-style: normal; font-variant-numeric: tabular-nums; color: #cfd2da; }
.g-board-empty { text-align: center; font-size: 12px; color: #888; padding: 10px; }

.xf-stat { display: flex; flex-direction: column; align-items: flex-end; }
.xf-score { font-family: var(--display); font-weight: 800; font-size: 24px; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 2px 14px hsla(var(--h) 95% 60% .5); }
.xf-combo { font-family: var(--mono); font-size: 13px; font-weight: 700; color: hsl(var(--h) 90% 68%); }
.xf-prog { position: absolute; left: 18px; right: 18px; bottom: 14px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; pointer-events: none; }
.xf-prog i { display: block; height: 100%; width: 0; background: hsl(var(--h) 95% 62%); box-shadow: 0 0 10px hsl(var(--h) 95% 62%); }
.xf-overlay { position: absolute; inset: 0; background: hsla(var(--h) 40% 6% / .9); backdrop-filter: blur(6px); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; color: #eee; padding: 24px; overflow-y: auto; box-sizing: border-box; }
.xf-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: hsla(var(--h) 80% 72% .9); }
.xf-title { font-family: var(--display); font-weight: 800; font-size: 38px; letter-spacing: -.02em; color: #fff; text-shadow: 0 4px 30px hsla(var(--h) 95% 60% .5); }
.xf-overlay p { font-size: 13px; color: #b8bcc8; line-height: 1.7; max-width: 36ch; }
.xf-overlay p b { color: #fff; }

/* ---------- SHARE modal + buttons --------------------------- */
#share-modal { position: fixed; inset: 0; z-index: 9850; background: rgba(0,0,0,.55); backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 24px; animation: lp-in .2s var(--ease); }
.sh-card { width: min(440px, 100%); background: var(--win-bg); color: var(--win-text); border-radius: 18px; padding: 22px;
  box-shadow: var(--shadow-win); position: relative; max-height: 90vh; overflow: auto; }
.sh-x { position: absolute; top: 14px; right: 16px; font-size: 16px; color: var(--win-soft); }
.sh-card h2 { font-family: var(--display); font-weight: 800; font-size: 20px; margin-bottom: 14px; }
.sh-img { width: 100%; border-radius: 12px; border: .5px solid var(--win-bd); margin-bottom: 14px; display: block; }
.sh-actions { display: flex; gap: 8px; }
.sh-btn { flex: 1; padding: 11px; border-radius: 10px; background: var(--card-bg); font-weight: 600; font-size: 13px; }
.sh-btn:hover { background: var(--hover); }
.sh-primary { background: var(--accent) !important; color: #fff !important; }
.ob-share { width: 100%; margin-top: 8px; color: var(--accent); font-size: 12px; font-weight: 600; padding: 6px; }
.ob-share:hover { text-decoration: underline; }

/* ---------- PHOTO BOOTH ------------------------------------- */
.pb { display: flex; flex-direction: column; height: 100%; background: #0c0c12; }
.pb-stage { flex: 1; position: relative; overflow: hidden; display: grid; place-items: center; background: #000; }
.pb-video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.pb-overlay { position: absolute; inset: 0; pointer-events: none; }
.pb-overlay.scan { background: repeating-linear-gradient(rgba(255,255,255,.06) 0 2px, transparent 2px 4px); }
.pb-overlay.rgb { box-shadow: inset 3px 0 0 rgba(255,0,80,.4), inset -3px 0 0 rgba(0,200,255,.4); mix-blend-mode: screen; }
.pb-overlay.vignette { box-shadow: inset 0 0 120px 30px rgba(0,0,0,.6); }
.pb-overlay.grain::after { content: ""; position: absolute; inset: 0; opacity: .12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 160px 160px; }
.pb-mark { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 36vh; color: rgba(255,255,255,.16); }
.pb-msg { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #aaa; padding: 30px; }
.pb-msg-em { font-size: 56px; margin-bottom: 10px; }
.pb-filters { display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto; background: #14141c; border-top: .5px solid #222; }
.pb-filter { flex: 0 0 auto; padding: 8px 14px; border-radius: 20px; background: #222; color: #ccc; font-size: 12px; font-weight: 600; }
.pb-filter.on { background: var(--accent); color: #fff; }
.pb-bar { display: grid; place-items: center; padding: 12px; background: #14141c; }
.pb-shoot { background: #fff; color: #000; font-weight: 700; padding: 11px 26px; border-radius: 30px; font-size: 14px; }
.pb-shoot:hover { background: var(--accent); color: #fff; }
.pb-result { position: absolute; inset: 0; background: rgba(8,8,14,.92); z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; }
.pb-shot { max-width: 88%; max-height: 70%; border-radius: 12px; box-shadow: var(--shadow-win); }
.pb-actions { display: flex; gap: 8px; }
.pb-btn { padding: 11px 18px; border-radius: 10px; background: #222; color: #eee; font-weight: 600; font-size: 13px; }
.pb-btn:hover { background: #2c2c35; }
.pb-btn.pb-primary { background: var(--accent); color: #fff; }

/* ---------- DECKS — pro DJ console -------------------------- */
.decks { display: flex; flex-direction: column; height: 100%; gap: 10px; padding: 12px; color: #e8eaf0;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(54,214,255,.05), transparent 50%),
    radial-gradient(120% 80% at 80% 0%, rgba(255,157,59,.05), transparent 50%),
    linear-gradient(180deg, #15161c, #0a0a0e 70%);
  font-family: var(--mono); }
/* twin waveforms */
.dk-waves { display: flex; flex-direction: column; gap: 5px; }
.dk-waverow { display: flex; align-items: center; gap: 8px; height: 46px;
  background: #0c0d12; border: .5px solid #20222c; border-radius: 9px; padding: 0 8px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.6); }
.dk-wmeta { font-weight: 800; font-size: 13px; width: 14px; text-align: center; }
.dk-wave { flex: 1; height: 100%; display: block; }
/* body: deck | mixer | deck */
.dk-body { flex: 1; display: grid; grid-template-columns: 1fr 168px 1fr; gap: 10px; min-height: 0; }
.dk-deck { background: linear-gradient(180deg,#191a22,#111219); border: .5px solid #24262f; border-radius: 13px;
  padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 11px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }
.dk-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.dk-id { font-size: 9px; letter-spacing: .18em; color: var(--dc); font-weight: 700; }
.dk-track { font-size: 11px; color: #cfd2da; font-weight: 600; flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-bpm-led { font-size: 9px; color: #6c7080; letter-spacing: .1em; }
.dk-bpm-led b { color: var(--dc); font-size: 13px; font-variant-numeric: tabular-nums; text-shadow: 0 0 8px var(--dc); }
/* jog wheel */
.dk-jogwrap { flex: 1; display: grid; place-items: center; width: 100%; min-height: 0; }
.dk-jog { width: 132px; height: 132px; border-radius: 50%; position: relative; cursor: grab; touch-action: none;
  background: radial-gradient(circle at 50% 38%, #34363f, #16171d 62%, #0a0b0f);
  box-shadow: 0 10px 26px rgba(0,0,0,.6), inset 0 0 0 2px #0a0b0f, inset 0 0 0 8px #1d1f27, 0 0 0 1px #2c2f3a; }
.dk-jog .dk-grooves { position: absolute; inset: 12px; border-radius: 50%;
  background: repeating-radial-gradient(rgba(255,255,255,.045) 0 1px, transparent 1px 4px); }
.dk-jog .dk-zlogo { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 15px; color: #fff; z-index: 2; }
.dk-jog::after { content: ""; position: absolute; inset: 41%; border-radius: 50%; background: var(--dc); opacity: .9; box-shadow: 0 0 14px var(--dc); }
.dk-jog .dk-marker { position: absolute; top: 6px; left: 50%; width: 3px; height: 22px; margin-left: -1.5px; border-radius: 2px; background: var(--dc); box-shadow: 0 0 8px var(--dc); z-index: 3; }
.dk-jog:active { cursor: grabbing; }
.dk-jog.spin { animation: dk-spin 1.6s linear infinite; }
@keyframes dk-spin { to { transform: rotate(360deg); } }
/* stems */
.dk-stems { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; width: 100%; }
.dk-stem { padding: 7px 4px; border-radius: 7px; font-size: 10px; font-weight: 700; letter-spacing: .08em;
  background: #14151b; color: #777b8a; border: 1px solid #23252f; transition: all .12s; }
.dk-stem.on { background: color-mix(in srgb, var(--dc) 22%, #14151b); color: #fff; border-color: var(--dc); box-shadow: 0 0 12px -2px var(--dc), inset 0 0 0 1px var(--dc); }
/* transport */
.dk-transport { display: flex; gap: 6px; width: 100%; }
.dk-cue { flex: 0 0 44px; padding: 9px 0; border-radius: 8px; font-size: 10px; font-weight: 700; letter-spacing: .1em; background: #1c1e26; color: #c9ccd6; border: 1px solid #2a2d38; }
.dk-cue:active { background: #ffb13b; color: #000; }
.dk-play { flex: 1; padding: 9px 0; border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: .1em; background: #1c1e26; color: #e8eaf0; border: 1px solid #2a2d38; }
.dk-play.playing { background: var(--dc); color: #0a0b0f; border-color: var(--dc); box-shadow: 0 0 16px -3px var(--dc); }
/* center mixer */
.dk-mixer { background: linear-gradient(180deg,#101118,#0b0c11); border: .5px solid #22242e; border-radius: 13px;
  padding: 12px 10px; display: flex; flex-direction: column; gap: 9px; min-height: 0; overflow: hidden; }
.dk-channels { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-height: 0; overflow: hidden; }
.dk-ch { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.dk-eq { display: flex; flex-direction: column; gap: 9px; align-items: center; }
.dk-knob { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: ns-resize; touch-action: none; }
.dk-dial { width: 34px; height: 34px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 50% 35%, #2c2f3a, #15161d); box-shadow: 0 2px 5px rgba(0,0,0,.5), inset 0 0 0 1px #34384a; }
.dk-dial i { position: absolute; top: 3px; left: 50%; width: 2px; height: 11px; margin-left: -1px; background: #e8eaf0; border-radius: 2px; transform-origin: 50% 14px; }
.dk-knob label { font-size: 8px; letter-spacing: .1em; color: #777b8a; }
.dk-filt .dk-dial { box-shadow: 0 2px 5px rgba(0,0,0,.5), inset 0 0 0 1px #4a3d2a; }
.dk-fader { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 34px; }
.dk-vol { writing-mode: vertical-lr; direction: rtl; width: 8px; flex: 1; accent-color: #fff; cursor: ns-resize; }
.dk-fader label { font-size: 9px; font-weight: 700; color: #9a9ead; }
.dk-cross { display: flex; align-items: center; gap: 8px; font-size: 10px; color: #9a9ead; font-weight: 700; }
.dk-crossf { flex: 1; height: 10px; accent-color: #e8eaf0; cursor: ew-resize; }
.dk-tempo-wrap { display: flex; align-items: center; gap: 8px; font-size: 9px; letter-spacing: .12em; color: #777b8a; }
.dk-tempo { flex: 1; accent-color: var(--accent); }
.dk-hint { flex: none; text-align: center; font-size: 10px; color: #5a5e6c; letter-spacing: .04em; padding-top: 2px; }

/* ---------- product size + recommendations ------------------ */
.pd-size { margin: 4px 0 14px; }
.pd-size > label { display: block; font-size: 12px; font-weight: 600; color: var(--text-soft); margin-bottom: 7px; }
.pd-sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-sz { padding: 8px 14px; border-radius: 9px; border: 1px solid var(--win-bd-strong); font-size: 13px; font-weight: 600; color: var(--win-text); }
.pd-sz:hover { border-color: var(--accent); }
.pd-sz.on { background: var(--win-text); color: var(--win-bg); border-color: var(--win-text); }
.pd-rec { margin-top: 26px; }
.pd-rec h3 { font-family: var(--display); font-weight: 800; font-size: 17px; margin-bottom: 14px; }
.pd-rec-row { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-rec-card { width: 124px; text-align: left; }
.pd-rec-img { display: grid; place-items: center; aspect-ratio: 4/5; border-radius: 10px; background: linear-gradient(160deg,#f4f4f1,#e6e6e2); overflow: hidden; margin-bottom: 6px; transition: box-shadow .18s; }
.pd-rec-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.pd-rec-card b { font-size: 12.5px; display: block; line-height: 1.2; }
.pd-rec-card small { color: var(--muted); font-size: 12px; }
.pd-rec-card:hover .pd-rec-img { box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); }

/* ---------- cart promo + checkout discount ------------------ */
.cart-promo { display: flex; gap: 6px; margin-bottom: 10px; }
.cart-promo-in { flex: 1; padding: 8px 11px; border-radius: 8px; border: 1px solid var(--win-bd-strong); background: var(--field-bg); color: var(--win-text); font: inherit; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; outline: none; }
.cart-promo-in:focus { border-color: var(--accent); }
.cart-promo-go { padding: 8px 13px; border-radius: 8px; background: var(--card-bg); font-size: 12px; font-weight: 700; }
.cart-promo-go:hover { background: var(--accent); color: #fff; }
.cart-line { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.cart-line.discount { color: var(--green); }
.sf-co-disc { display: flex; justify-content: space-between; color: var(--green); font-size: 13px; margin-top: 8px; }

/* ---------- toast action button ----------------------------- */
.toast .t-action { align-self: center; background: var(--accent); color: #fff; font-weight: 700; font-size: 12px; padding: 7px 13px; border-radius: 8px; white-space: nowrap; }
.toast .t-action:hover { filter: brightness(1.1); }

/* ---------- desktop items / pin / trash dock ---------------- */
.desk-prod { width: 40px; height: 40px; border-radius: 9px; background: linear-gradient(160deg,#f4f4f1,#e6e6e2); background-size: contain; background-position: center; background-repeat: no-repeat; display: block; box-shadow: 0 4px 8px rgba(0,0,0,.35); }
.desk-icon .desk-prod { background-color: #fff; }
.desk-icon.dragging-desk { cursor: grabbing; }
.dock-item.full .dot { opacity: 1; background: var(--accent-2); width: 5px; height: 5px; }

/* sticky notes on the desktop */
.sticky { position: fixed; width: 180px; min-height: 150px; border-radius: 4px; box-shadow: 0 14px 30px -8px rgba(0,0,0,.45); z-index: 50; display: flex; flex-direction: column; transition: box-shadow .2s; }
.sticky-bar { height: 22px; cursor: grab; display: flex; align-items: center; justify-content: center; opacity: .35; color: #000; }
.sticky-bar:active { cursor: grabbing; }
.sticky-body { flex: 1; padding: 4px 12px 14px; font-family: var(--ui); font-size: 14px; color: #1a1a1a; outline: none; line-height: 1.45; overflow: auto; }

/* ---------- UNDO BIN app ------------------------------------ */
.trashapp { padding: 26px 28px; height: 100%; overflow: auto; background: var(--win-bg); }
.ta-head { display: flex; align-items: baseline; gap: 12px; }
.ta-head h1 { font-family: var(--display); font-weight: 800; font-size: 24px; }
.ta-head span { color: var(--win-muted); font-size: 13px; }
.ta-sub { color: var(--win-soft); font-size: 13px; margin: 6px 0 18px; line-height: 1.5; }
.ta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.ta-item { background: var(--card-bg); border-radius: 12px; padding: 14px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ta-ic { font-size: 26px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--win-text); }
.ta-ic svg { width: 30px; height: 30px; }
.ta-prod { width: 38px; height: 46px; border-radius: 6px; background: #fff; background-size: contain; background-repeat: no-repeat; background-position: center; }
.ta-item b { font-size: 12px; font-weight: 600; line-height: 1.2; }
.ta-back { font-size: 11px; color: var(--accent); font-weight: 600; }
.ta-back:hover { text-decoration: underline; }
.ta-empty { grid-column: 1/-1; color: var(--win-muted); font-size: 13px; text-align: center; padding: 30px 10px; line-height: 1.6; }
.ta-empty-btn { margin-top: 20px; background: var(--card-bg); color: var(--accent-2); font-weight: 600; font-size: 13px; padding: 10px 18px; border-radius: 10px; }
.ta-empty-btn:hover { background: var(--accent-2); color: #fff; }

/* ---------- STICKIES app ------------------------------------ */
.stk { background: var(--win-bg); height: 100%; }
.stk-pad { padding: 26px 28px; }
.stk-pad h1 { font-size: 22px; margin: 4px 0 8px; }
.stk-pad p { color: var(--win-soft); font-size: 13px; line-height: 1.5; margin-bottom: 18px; }
.stk-colors { display: flex; gap: 8px; margin-bottom: 18px; }
.stk-c { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.2); }
.stk-c.on { outline: 3px solid var(--accent); outline-offset: 2px; }
.stk-new { background: var(--btn-bg); color: var(--btn-text); font-weight: 600; padding: 11px 20px; border-radius: 30px; }
.stk-new:hover { background: var(--accent); color: #fff; }

/* ---------- store pin + messages chips ---------------------- */
.pd-secondary { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.pd-cart-link { width: auto !important; margin: 0 !important; padding: 8px 0 !important; }
.pd-pin { color: var(--text-soft); font-size: 13px; padding: 8px 0; }
.pd-pin:hover { color: var(--accent); }
.msg-quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 8px 12px; }
.msg-chip { border: 1px solid var(--accent); color: var(--accent); background: transparent; font-size: 12px; font-weight: 600; padding: 7px 13px; border-radius: 18px; }
.msg-chip:hover { background: var(--accent); color: #fff; }
.msg-open { background: var(--accent); color: #fff; font-weight: 600; font-size: 13px; padding: 7px 13px; border-radius: 14px; }

/* ---------- SPOTLIGHT thumbnails + icons -------------------- */
.sp-thumb { width: 30px; height: 30px; border-radius: 7px; background: linear-gradient(160deg,#f4f4f1,#e6e6e2); display: grid; place-items: center; overflow: hidden; flex: 0 0 30px; }
.sp-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.sp-ic svg { width: 22px; height: 22px; }

/* ---------- APP STORE --------------------------------------- */
.appstore { display: flex; height: 100%; background: var(--win-bg); }
.as-side { width: 170px; flex: 0 0 170px; background: var(--sidebar-bg); backdrop-filter: blur(20px); border-right: .5px solid var(--win-bd); padding: 12px 10px; }
.as-side-h { font-family: var(--display); font-weight: 800; font-size: 15px; padding: 6px 8px 10px; }
.as-tab { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 7px; font-size: 13px; color: var(--win-text); }
.as-tab:hover { background: var(--hover); }
.as-tab.on { background: var(--accent); color: #fff; }
.as-main { flex: 1; overflow: auto; padding: 24px 26px; }
.as-main h1 { font-family: var(--display); font-weight: 800; font-size: 24px; }
.as-sub { color: var(--win-soft); font-size: 13px; margin: 6px 0 20px; }
.as-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.as-card { background: var(--card-bg); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.as-card b { font-size: 14px; }
.as-card small { color: var(--win-muted); font-size: 12px; line-height: 1.4; }
.as-bundle-imgs { display: flex; gap: 4px; width: 100%; }
.as-bundle-imgs span { flex: 1; aspect-ratio: 3/4; border-radius: 8px; background: #fff center/contain no-repeat; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.1); }
.as-prices { font-size: 14px; }
.as-prices s { color: var(--win-muted); }
.as-prices span { color: var(--accent); font-weight: 700; }
.as-wall { width: 100%; aspect-ratio: 16/10; border-radius: 10px; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.15); }
.as-widget-em { font-size: 30px; }
.as-get, .as-apply, .as-add { width: 100%; background: var(--btn-bg); color: var(--btn-text); font-weight: 600; font-size: 13px; padding: 9px; border-radius: 9px; margin-top: auto; }
.as-get:hover, .as-apply:hover, .as-add:hover { background: var(--accent); color: #fff; }

/* ---------- DESKTOP WIDGETS --------------------------------- */
.widget { position: fixed; width: 200px; background: var(--pop-bg); backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%); border: .5px solid var(--pop-bd); border-radius: 18px; box-shadow: var(--shadow-pop); z-index: 40; color: var(--pop-text); overflow: hidden; }
.wg-bar { display: flex; align-items: center; gap: 6px; padding: 7px 10px; cursor: grab; touch-action: none; }
.wg-bar:active { cursor: grabbing; }
.wg-grab { opacity: .4; font-size: 11px; }
.wg-title { font-size: 10px; font-weight: 700; color: var(--win-soft); flex: 1; text-transform: uppercase; letter-spacing: .06em; }
.wg-x { width: 18px; height: 18px; border-radius: 50%; font-size: 13px; color: var(--win-soft); opacity: 0; transition: opacity .15s; }
.widget:hover .wg-x { opacity: 1; }
.wg-x:hover { background: var(--accent-2); color: #fff; }
.wg-body { padding: 2px 16px 16px; }
.wg-count { font-family: var(--display); font-size: 21px; font-weight: 800; }
.wg-count b { font-variant-numeric: tabular-nums; }
.wg-np { display: flex; align-items: center; gap: 10px; }
.wg-np-art { width: 40px; height: 40px; border-radius: 8px; background: linear-gradient(150deg,#3b8bff,#5b4bd6); display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 800; font-size: 12px; flex: 0 0 40px; }
.wg-np small { display: block; color: var(--win-muted); font-size: 11px; }
.wg-np .wg-play { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; }
.wg-wx { display: flex; align-items: center; gap: 12px; font-size: 30px; }
.wg-wx b { font-family: var(--display); font-size: 26px; }
.wg-wx small { display: block; color: var(--win-muted); font-size: 11px; }
.wg-ww b { font-family: var(--display); font-size: 28px; font-weight: 800; }
.wg-ww small { display: block; color: var(--win-muted); font-size: 11px; }

/* ---------- DESKTOP FOLDERS --------------------------------- */
.desk-folder .folder-thumb { width: 62px; height: 62px; border-radius: 15px; background: rgba(255,255,255,.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 6px; box-shadow: 0 4px 10px rgba(0,0,0,.3); }
.folder-mini { border-radius: 6px; display: grid; place-items: center; font-size: 13px; background: linear-gradient(160deg,#2b2d36,#15161b); color: #fff; overflow: hidden; }
.folder-mini[data-accent="paper"] { background: linear-gradient(160deg,#fafafa,#e3e3df); color: #111; }
.folder-mini[data-accent="blue"]  { background: linear-gradient(160deg,#3b8bff,#1559d6); }
.folder-mini[data-accent="green"] { background: linear-gradient(160deg,#39d353,#1ea33a); }
.folder-mini svg { width: 14px; height: 14px; }
#folder-pop { position: fixed; inset: 0; z-index: 9600; background: rgba(8,8,14,.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: grid; place-items: center; animation: lp-in .18s var(--ease); }
.fp-card { background: var(--pop-bg); backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%); border: .5px solid var(--pop-bd); border-radius: 24px; box-shadow: var(--shadow-pop); padding: 26px 30px; min-width: 280px; }
.fp-title { font-family: var(--display); font-weight: 800; font-size: 18px; text-align: center; margin-bottom: 18px; color: var(--pop-text); }
.fp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 26px; }
.fp-app { display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--pop-text); font-size: 12px; }
.fp-ic { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; font-size: 28px; background: var(--tile, linear-gradient(165deg,#3a3a42,#0d0d10)); color: #fff; box-shadow: 0 6px 14px rgba(0,0,0,.35); transition: transform .15s var(--spring); }
.fp-app:hover .fp-ic { transform: scale(1.1); }
.fp-ic svg { width: 30px; height: 30px; }
/* "Coming Soon" teasers — dimmed with a SOON badge, not launchable */
.fp-ic { position: relative; }
.fp-app.soon { opacity: .72; }
.fp-app.soon .fp-ic { filter: grayscale(.35) saturate(.8); }
.fp-app.soon:hover .fp-ic { transform: scale(1.04); }
.fp-soon { position: absolute; bottom: -5px; right: -7px; background: #ff8a3c; color: #1a1a1a; font-family: var(--mono); font-size: 7.5px; font-weight: 800; letter-spacing: .04em; line-height: 1; padding: 3px 4px; border-radius: 6px; box-shadow: 0 2px 5px rgba(0,0,0,.45); }

/* ---------- PAINT — classic Windows look (overrides) -------- */
.paint { display: flex; flex-direction: column; height: 100%; background: #c0c0c0; color: #000;
  font-family: 'Tahoma', 'Segoe UI', sans-serif; font-size: 12px; }
/* ---------- PAINT — classic Mac (System 7 / Platinum) skin ---------- */
.pt-note { background: #ededed; color: #1a1a1a; font-size: 11px; padding: 6px 12px; display: flex; gap: 6px; align-items: center; border-bottom: 1px solid #adadad; }
.pt-note b { color: #0a5fd6; }
.pt-shell { flex: 1; display: flex; min-height: 0; }
.pt-toolbox { width: 64px; flex: 0 0 64px; background: #dcdcdc; border-right: 1px solid #adadad; padding: 6px 5px; }
.pt-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.pt-tool { height: 26px; background: #f7f7f7; border: 1px solid #9a9a9a; display: grid; place-items: center; font-size: 14px; color: #1a1a1a; border-radius: 4px; box-shadow: inset 0 1px 0 #fff; }
.pt-tool:hover { background: #ededed; }
.pt-tool.on, .pt-tool:active { background: #3a3a3a; color: #fff; border-color: #2a2a2a; box-shadow: none; }
.pt-opts { margin-top: 8px; background: #eee; border: 1px solid #9a9a9a; border-radius: 5px; padding: 8px 5px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pt-size-prev { width: 100%; height: 28px; display: grid; place-items: center; background: #fff; border: 1px solid #9a9a9a; border-radius: 3px; }
.pt-size-dot { background: #000; border-radius: 50%; }
.pt-size { width: 54px; accent-color: #4a4a4a; }
.pt-stage { flex: 1; background: #b8b8b8; display: grid; place-items: center; padding: 12px; overflow: auto; }
.pt-canvas { background: #fff; border: 1px solid #6f6f6f; border-radius: 0; max-width: 100%; max-height: 100%; cursor: crosshair; touch-action: none; box-shadow: 0 1px 0 #fff, 0 6px 18px -8px rgba(0,0,0,.4); }
.pt-palette { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #dcdcdc; border-top: 1px solid #adadad; }
.pt-fg { position: relative; width: 34px; height: 34px; flex: 0 0 34px; }
.pt-fg-1, .pt-fg-2 { position: absolute; width: 22px; height: 22px; border: 1px solid #6f6f6f; }
.pt-fg-1 { top: 0; left: 0; background: #000; z-index: 2; }
.pt-fg-2 { bottom: 0; right: 0; background: #fff; }
.pt-color { width: 30px; height: 24px; border: 1px solid #6f6f6f; padding: 0; background: none; border-radius: 3px; }
.pt-swatches { display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: 1fr 1fr; gap: 2px; }
.pt-sw { width: 16px; height: 16px; border: 1px solid #6f6f6f; border-radius: 2px; }
.pt-sw:hover { outline: 1.5px solid #000; outline-offset: -1px; }
.pt-actions { display: flex; align-items: center; gap: 7px; padding: 8px 12px; background: #dcdcdc; border-top: 1px solid #adadad; }
.pt-spacer { flex: 1; }
.pt-btn { background: #fcfcfc; border: 1px solid #8a8a8a; padding: 5px 13px; font-size: 11.5px; color: #1a1a1a; border-radius: 9px; font-weight: 500; box-shadow: inset 0 1px 0 #fff, 0 1px 1px rgba(0,0,0,.08); }
.pt-btn:hover { background: #f0f0f0; }
.pt-btn:active { background: #3a3a3a; color: #fff; }
.pt-btn.pt-primary { background: linear-gradient(#ffffff, #e9e9e9) !important; border: 2px solid #1a1a1a; border-radius: 11px; color: #000 !important; font-weight: 700; }
.pt-btn.pt-primary:hover { filter: none; background: linear-gradient(#fff, #ededed) !important; }
.pt-btn.pt-primary:active { background: #3a3a3a !important; color: #fff !important; }

/* ---------- CROSSFADE song select -------------------------- */
.xf-songs { display: flex; flex-direction: column; gap: 9px; width: 86%; max-width: 320px; margin-top: 8px; }
.xf-song { --h: 198; position: relative; background: hsla(var(--h) 50% 50% / .1); border: 1px solid hsla(var(--h) 70% 60% / .35); border-radius: 12px; padding: 12px 16px; text-align: left; color: #eee; transition: all .15s; overflow: hidden; }
.xf-song::before { content: "▶"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: hsl(var(--h) 90% 65%); font-size: 12px; opacity: 0; transition: opacity .15s; }
.xf-song:hover { background: hsla(var(--h) 70% 55% / .22); border-color: hsl(var(--h) 90% 62%); box-shadow: 0 0 26px -6px hsl(var(--h) 90% 55%); transform: translateY(-1px); }
.xf-song:hover::before { opacity: 1; }
.xf-song b { display: block; font-size: 15px; font-weight: 700; }
.xf-song small { opacity: .65; font-size: 11px; font-family: var(--mono); letter-spacing: .04em; }


/* ---------- APP STORE 2.0 (overrides) ----------------------- */
.as-side { display: flex; flex-direction: column; }
.as-side-foot { margin-top: auto; font-size: 11px; color: var(--win-muted); padding: 10px 8px; }
.as-hero { margin-bottom: 18px; }
.as-hero b { font-family: var(--display); font-weight: 800; font-size: 24px; display: block; }
.as-hero span { color: var(--win-soft); font-size: 13px; }
.as-hero code { background: var(--card-bg); padding: 1px 6px; border-radius: 5px; font-family: var(--mono); font-size: 12px; color: var(--accent); }
.as-card { transition: transform .15s, box-shadow .15s; }
.as-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -12px rgba(0,0,0,.4); }
.as-card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.as-pill { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); padding: 3px 7px; border-radius: 10px; white-space: nowrap; }
.as-items { color: var(--win-muted); font-size: 11px; line-height: 1.4; }
.as-get.done, .as-apply.done { background: var(--green) !important; color: #fff !important; }
.as-widget-em { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 26px; }
.as-add, .as-remove { width: 100%; font-weight: 600; font-size: 13px; padding: 9px; border-radius: 9px; margin-top: auto; }
.as-add { background: var(--btn-bg); color: var(--btn-text); }
.as-add:hover { background: var(--accent); color: #fff; }
.as-remove { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.as-remove:hover { background: var(--accent-2); color: #fff; }
.as-card.as-on { box-shadow: inset 0 0 0 1.5px var(--accent); }

/* New! tab — product tiles */
.as-new-card { cursor: pointer; }
.as-new-img { width: 100%; aspect-ratio: 1/1; border-radius: 10px; background: #f3f1ea center/contain no-repeat; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.1); }
.as-new-img.sold { opacity: .5; }
/* Stockists tab */
.as-pill-ok { color: #28c840; background: rgba(40,200,64,.16); }
.as-pill-appt { color: #febc2e; background: rgba(254,188,46,.16); }
.as-stockist-city { font-weight: 600; color: var(--win-soft); }
.as-stockist-addr { color: var(--win-soft); font-size: 12.5px; text-decoration: none; line-height: 1.45; }
.as-stockist-addr:hover { color: var(--win-text); text-decoration: underline; }
.as-stockist-note { color: var(--win-muted); font-style: italic; }

/* ===== Audit pass — responsive + touch-target fixes ===== */
@media (max-width: 768px) {
  .sf-checkout { grid-template-columns: 1fr; }            /* Safari checkout was 2-col, crushed on phones */
  .cal-grid { grid-auto-rows: minmax(52px, auto); }       /* calendar day cells were ~50px & clipped events */
  #spotlight { padding-top: 12vh; }
  .sp-results { max-height: 58dvh; }                       /* dvh, not vh, for mobile browser chrome */
  .sh-card { max-height: 88dvh; }
  .cart-drawer { width: min(330px, 92%); }                 /* don't overflow small phones */
  /* touch targets → ~40px */
  .it-c { width: 40px; height: 38px; }
  .msg-input button { width: 40px; height: 40px; }
  .sf-nav { width: 38px; height: 38px; }
  .nt-new { width: 36px; height: 36px; }
  .pt-tool { height: 34px; }
}

/* ============================================================
   PUPBALL — Kato's rescue-ranch pinball
   ============================================================ */
.pball { width: 100%; height: 100%; background: #211a33; color: #f3f1ea; }
.pball-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 100%; height: 100%; padding: 10px; box-sizing: border-box; }
.pball-hud { display: flex; align-items: center; justify-content: space-between; width: min(400px, 100%);
  font-family: var(--mono); }
.pball-score { font-size: 22px; font-weight: 800; color: #ffc21e; font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 10px rgba(232,99,26,.5); }
.pball-balls { font-size: 16px; letter-spacing: 2px; }
.pball-canvas { width: auto; height: auto; max-width: 100%;
  max-height: calc(100% - 120px); aspect-ratio: 400 / 600; border-radius: 16px; display: block; touch-action: none;
  box-shadow: 0 24px 60px -22px rgba(0,0,0,.85), inset 0 0 0 1px rgba(255,194,30,.18); cursor: pointer; }
.pball-ctl { display: flex; gap: 8px; width: min(400px, 100%); }
.pball-zone, .pball-launch { flex: 1; border: 0; border-radius: 12px; padding: 12px 6px; cursor: pointer;
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #2a2140; user-select: none; -webkit-user-select: none; touch-action: none; transition: transform .08s, filter .1s; }
.pball-zone { background: #ffc21e; flex: 0 0 90px; }
.pball-launch { background: #e8631a; color: #f3f1ea; }
.pball-zone:active, .pball-launch:active { transform: translateY(2px); filter: brightness(1.12); }

.pball-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; text-align: center; padding: 18px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(42,33,64,.92), rgba(33,26,51,.97)); backdrop-filter: blur(4px);
  border-radius: 16px; z-index: 5; }
.pball-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: #e8631a; }
.pball-title { font-size: 26px; font-weight: 800; color: #f3f1ea; margin-bottom: 2px;
  text-shadow: 0 4px 18px rgba(232,99,26,.4); }
.pball-board { width: min(320px, 84%); }
.pball-start { margin-top: 6px; border: 0; border-radius: 999px; padding: 12px 30px; cursor: pointer;
  background: #ffc21e; color: #2a2140; font-weight: 800; font-size: 15px; letter-spacing: .02em;
  box-shadow: 0 12px 30px -10px rgba(255,194,30,.6); transition: transform .1s; }
.pball-start:active { transform: scale(.96); }

@media (max-width: 480px) {
  .pball-zone { flex: 0 0 78px; font-size: 11px; }
  .pball-title { font-size: 22px; }
}

/* ===== BEAT PAD (.beat-) ===== */
.beat { --accent-h: 8; height: 100%; display: flex; background: #0c0d10; color: #e8eaf0; }
.beat-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px;
  background: radial-gradient(120% 80% at 50% -10%, rgba(120,124,140,.12), transparent 60%), repeating-linear-gradient(115deg, #1a1c21 0 2px, #15171b 2px 4px), linear-gradient(#16181d, #0e1013);
  border-radius: 10px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 -2px 8px rgba(0,0,0,.6); overflow: hidden; }
.beat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.beat-brand { font-family: var(--mono, monospace); font-size: 10px; font-weight: 700; letter-spacing: .14em; color: #8b909c; }
.beat-tut { font-size: 11px; color: #9aa0ac; text-align: right; line-height: 1.3; max-width: 60%; }
.beat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; flex: 1; min-height: 0; }
.beat-pad { position: relative; border: 0; cursor: pointer; border-radius: 9px; background: linear-gradient(#2a2d34, #1b1d22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -3px 6px rgba(0,0,0,.55), 0 2px 5px rgba(0,0,0,.45);
  display: flex; align-items: flex-end; justify-content: space-between; padding: 8px 9px; min-height: 52px;
  transition: transform .05s, box-shadow .12s, background .12s; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.beat-pad:active { transform: translateY(1px); }
.beat-pl { font-family: var(--mono, monospace); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; color: #b8bdc8; pointer-events: none; }
.beat-led { width: 8px; height: 8px; border-radius: 50%; flex: none; pointer-events: none; background: hsl(var(--ph), 12%, 22%); box-shadow: inset 0 0 2px rgba(0,0,0,.6); transition: background .12s, box-shadow .12s; }
.beat-pad.beat-sel { background: linear-gradient(#34373f, #1f2127); }
.beat-pad.beat-sel .beat-led { background: hsl(var(--ph), 80%, 55%); box-shadow: 0 0 6px hsl(var(--ph), 90%, 55%); }
.beat-pad.beat-sel .beat-pl { color: #f0f2f6; }
.beat-pad.beat-hit { background: linear-gradient(hsl(var(--ph), 60%, 32%), hsl(var(--ph), 55%, 20%)); box-shadow: inset 0 0 0 1px hsl(var(--ph), 90%, 60%), 0 0 18px hsl(var(--ph), 90%, 50%), 0 0 36px hsl(var(--ph), 90%, 45%); transition: none; }
.beat-pad.beat-hit .beat-led { background: hsl(var(--ph), 95%, 70%); box-shadow: 0 0 10px hsl(var(--ph), 95%, 65%); }
.beat-pad.beat-hit .beat-pl { color: #fff; }
.beat-seqhead { display: flex; align-items: center; justify-content: space-between; }
.beat-seqlabel { font-family: var(--mono, monospace); font-size: 10px; letter-spacing: .1em; color: #8b909c; }
.beat-seqlabel b { color: hsl(var(--accent-h), 80%, 62%); }
.beat-clear { border: 0; cursor: pointer; font-family: var(--mono, monospace); font-size: 9.5px; font-weight: 700; letter-spacing: .1em; color: #c2c7d2; padding: 5px 11px; border-radius: 6px; background: #23262c; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 1px 3px rgba(0,0,0,.4); }
.beat-clear:active { transform: translateY(1px); }
.beat-seq { display: grid; grid-template-columns: repeat(16, 1fr); gap: 4px; }
.beat-step { height: 30px; border: 0; cursor: pointer; border-radius: 5px; padding: 0; background: linear-gradient(#222429, #16181c); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 -2px 4px rgba(0,0,0,.5); transition: background .1s, box-shadow .1s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.beat-step:nth-child(4n+1) { background: linear-gradient(#2a2c33, #1a1c21); }
.beat-step.beat-on { background: linear-gradient(hsl(var(--accent-h), 70%, 52%), hsl(var(--accent-h), 65%, 38%)); box-shadow: inset 0 0 0 1px hsl(var(--accent-h), 90%, 62%), 0 0 8px hsl(var(--accent-h), 85%, 45%); }
.beat-step.beat-cur { outline: 2px solid rgba(255,255,255,.85); outline-offset: -1px; }
.beat-step.beat-cur.beat-on { box-shadow: inset 0 0 0 1px #fff, 0 0 14px hsl(var(--accent-h), 90%, 55%); }
/* clear buttons + beat-count ruler */
.beat-clearbtns { display: flex; gap: 6px; }
.beat-clearall { border: 0; cursor: pointer; font-family: var(--mono, monospace); font-size: 9.5px; font-weight: 700; letter-spacing: .1em; color: #f4dcb4; padding: 5px 11px; border-radius: 6px; background: linear-gradient(#3a2517, #281810); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 1px 3px rgba(0,0,0,.4); }
.beat-clearall:active { transform: translateY(1px); }
.beat-count { display: grid; grid-template-columns: repeat(16, 1fr); gap: 4px; margin: 2px 0 3px; }
.beat-cnt { text-align: center; font-family: var(--mono, monospace); font-size: 9px; line-height: 1; color: #565b67; user-select: none; }
.beat-cnt-beat { color: #ffc21e; font-weight: 800; font-size: 11.5px; }
.beat-transport { display: flex; align-items: center; gap: 16px; }
.beat-play { width: 46px; height: 46px; flex: none; border: 0; cursor: pointer; border-radius: 50%; font-size: 16px; color: #e8eaf0; background: radial-gradient(circle at 35% 30%, #3a3d45, #1c1e23); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 3px 7px rgba(0,0,0,.5); transition: box-shadow .12s, transform .05s; -webkit-tap-highlight-color: transparent; }
.beat-play:active { transform: translateY(1px); }
.beat-play.beat-playing { color: #fff; background: radial-gradient(circle at 35% 30%, hsl(var(--accent-h), 70%, 48%), hsl(var(--accent-h), 70%, 28%)); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 16px hsl(var(--accent-h), 85%, 50%); }
.beat-tempo { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.beat-tempo label { font-family: var(--mono, monospace); font-size: 9.5px; letter-spacing: .1em; color: #8b909c; }
.beat-tempo label b { color: hsl(var(--accent-h), 80%, 62%); font-size: 12px; }
.beat-bpmslider { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 3px; background: #2a2c33; box-shadow: inset 0 1px 2px rgba(0,0,0,.6); outline: none; cursor: pointer; }
.beat-bpmslider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(#e6e8ee, #b4b8c2); box-shadow: 0 1px 3px rgba(0,0,0,.5), inset 0 1px 0 #fff; cursor: pointer; }
.beat-bpmslider::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: linear-gradient(#e6e8ee, #b4b8c2); box-shadow: 0 1px 3px rgba(0,0,0,.5); cursor: pointer; }
@media (max-width: 640px) { .beat-tut { display: none; } .beat-pad { min-height: 60px; } .beat-step { height: 34px; } .beat-play { width: 52px; height: 52px; } }

/* ===== RUFF RACER (.race-) ===== */
.race-wrap { position: relative; width: 400px; max-width: 100%; margin: 0 auto; }
.race-canvas { width: 100%; display: block; border-radius: 12px; background: linear-gradient(180deg, #2a2140, #e8631a); touch-action: none; -webkit-user-select: none; user-select: none; cursor: pointer; box-shadow: 0 10px 30px -12px rgba(0,0,0,.55); }
.race-hud { position: absolute; top: 12px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; color: #f3f1ea; font-family: var(--mono); font-size: 14px; text-shadow: 0 1px 4px rgba(0,0,0,.6); pointer-events: none; }
.race-score { font-size: 20px; font-weight: 700; color: #ffc21e; }
.race-speed { font-size: 12px; letter-spacing: .08em; opacity: .9; }
.race-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 18px; border-radius: 12px; color: #f3f1ea; background: radial-gradient(120% 90% at 50% 30%, rgba(42,33,64,.82), rgba(10,8,16,.92)); }
.race-title { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 30px; letter-spacing: -.01em; color: #f3f1ea; text-shadow: 0 0 18px rgba(232,99,26,.5); }
.race-overlay p { font-size: 13px; color: #c9c4d6; line-height: 1.6; }
.race-overlay p b { color: #ffc21e; }
.race-board { width: 100%; max-width: 280px; }
.race-start { background: #ffc21e; color: #2a2140; font-weight: 800; font-family: "Plus Jakarta Sans", sans-serif; font-size: 14px; padding: 12px 28px; border: none; border-radius: 30px; cursor: pointer; transition: background .15s, transform .1s; }
.race-start:hover { background: #e8631a; color: #f3f1ea; }
.race-start:active { transform: scale(.96); }
@media (max-width: 480px) { .race-wrap { width: 100%; max-width: 390px; } .race-title { font-size: 26px; } }

/* ===== WEATHER (.wx-) ===== */
.wx { width: 100%; height: 100%; }
.wx-panel { position: relative; height: 100%; overflow: auto; display: flex; flex-direction: column; font-family: -apple-system, "SF Pro Text", system-ui, sans-serif; color: #fff; padding: 14px 16px 18px; background: linear-gradient(160deg, #5b6b85, #2f3a4d); transition: background .8s ease; }
.wx-panel[data-kind="sun"][data-day="1"]   { background: linear-gradient(160deg, #4a9fe8 0%, #7cc0f0 45%, #f7c873 100%); }
.wx-panel[data-kind="sun"][data-day="0"]   { background: linear-gradient(160deg, #11163a 0%, #28306b 60%, #4a3d7a 100%); }
.wx-panel[data-kind="partly"][data-day="1"]{ background: linear-gradient(160deg, #4f93c9 0%, #84b4d8 60%, #d4c6b0 100%); }
.wx-panel[data-kind="partly"][data-day="0"]{ background: linear-gradient(160deg, #161b3c 0%, #2c3560 100%); }
.wx-panel[data-kind="cloud"]               { background: linear-gradient(160deg, #6c7888 0%, #444f60 100%); }
.wx-panel[data-kind="fog"]                 { background: linear-gradient(160deg, #8a93a0 0%, #5d6675 100%); }
.wx-panel[data-kind="rain"]                { background: linear-gradient(160deg, #3a4453 0%, #232a38 100%); }
.wx-panel[data-kind="snow"]                { background: linear-gradient(160deg, #8aa0bd 0%, #5d6f8c 100%); }
.wx-panel[data-kind="storm"]               { background: linear-gradient(160deg, #2a2d3f 0%, #15161f 100%); }
.wx-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.wx-tab { flex: 1 1 auto; min-width: 0; padding: 7px 8px; cursor: pointer; font: 600 12px/1 inherit; color: rgba(255,255,255,.82); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); white-space: nowrap; transition: background .2s, color .2s, transform .1s; }
.wx-tab:hover { background: rgba(255,255,255,.22); }
.wx-tab:active { transform: scale(.96); }
.wx-tab.is-active { background: #fff; color: #1c2230; border-color: #fff; }
.wx-body { flex: 1; display: flex; flex-direction: column; }
.wx-now { display: flex; align-items: center; gap: 8px; }
.wx-now-icon { width: 96px; height: 96px; flex: none; }
.wx-now-main { display: flex; flex-direction: column; }
.wx-temp { font-size: 58px; font-weight: 300; line-height: 1; letter-spacing: -2px; }
.wx-temp span { font-size: 24px; font-weight: 400; vertical-align: top; opacity: .8; }
.wx-cond { font-size: 17px; font-weight: 600; margin-top: 4px; }
.wx-feels { font-size: 13px; opacity: .75; margin-top: 2px; }
.wx-loc { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 4px; }
.wx-city { font-size: 20px; font-weight: 700; }
.wx-time { font-size: 13px; opacity: .8; }
.wx-stats { display: flex; gap: 8px; margin: 10px 0 4px; }
.wx-stat { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 10px; border-radius: 14px; text-align: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.wx-stat span { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; opacity: .7; }
.wx-stat b { font-size: 15px; font-weight: 600; }
.wx-forecast { display: flex; gap: 6px; margin-top: 14px; padding: 8px; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.wx-day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; min-width: 0; }
.wx-dname { font-weight: 600; opacity: .9; }
.wx-dico { width: 34px; height: 34px; }
.wx-dhi { font-weight: 700; }
.wx-dlo { opacity: .65; }
.wx-svg { width: 100%; height: 100%; overflow: visible; }
.wx-disc { fill: #ffd66b; }
.wx-disc-sm { fill: #ffd66b; }
.wx-cloud { fill: #f2f5fa; }
.wx-sun .wx-disc { animation: wx-pulse 4s ease-in-out infinite; transform-origin: 32px 32px; }
.wx-fog rect { fill: #e7ebf1; animation: wx-fog 3.5s ease-in-out infinite; }
.wx-rain line { stroke: #bcd6ff; stroke-width: 2.4; stroke-linecap: round; animation: wx-drop 1.1s linear infinite; }
.wx-rain line:nth-child(2) { animation-delay: .35s; }
.wx-rain line:nth-child(3) { animation-delay: .7s; }
.wx-snow circle { fill: #fff; animation: wx-snowf 2.4s ease-in-out infinite; }
.wx-snow circle:nth-child(2) { animation-delay: .5s; }
.wx-snow circle:nth-child(3) { animation-delay: 1s; }
.wx-bolt { fill: #ffe14d; animation: wx-flash 2.2s ease-in-out infinite; }
.wx-sun .wx-rays circle { r: 22; fill: none; stroke: #ffd66b; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1 13; transform-origin: 32px 32px; animation: wx-spin 22s linear infinite; }
@keyframes wx-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes wx-spin { to { transform: rotate(360deg); } }
@keyframes wx-drop { 0% { transform: translateY(-4px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }
@keyframes wx-snowf { 0%,100% { transform: translateY(0); opacity: .9; } 50% { transform: translateY(4px); opacity: .55; } }
@keyframes wx-fog { 0%,100% { transform: translateX(0); opacity: .85; } 50% { transform: translateX(4px); opacity: .55; } }
@keyframes wx-flash { 0%,55%,100% { opacity: 1; } 60%,70% { opacity: .25; } }
.wx-loading { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; opacity: .85; padding: 40px 0; }
.wx-spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.3); border-top-color: #fff; animation: wx-spin .9s linear infinite; }
.wx-error { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 40px 16px; }
.wx-error-ico { font-size: 44px; opacity: .85; }
.wx-error p { font-size: 15px; font-weight: 500; opacity: .9; margin: 0; }
.wx-retry { padding: 9px 22px; cursor: pointer; font: 600 13px/1 inherit; color: #1c2230; background: #fff; border: none; border-radius: 999px; transition: transform .1s; }
.wx-retry:active { transform: scale(.95); }
@media (prefers-reduced-motion: reduce) { .wx-panel, .wx-svg *, .wx-spin { animation: none !important; transition: none !important; } }

/* ===== PUP SWEEPER (.ps-) ===== */
.ps { --ps-purple:#2a2140; --ps-sun:#e8631a; --ps-gold:#ffc21e; --ps-off:#f3f1ea; --ps-aqua:#7fd4c9; --ps-green:#3f8f6b; display:flex; height:100%; }
.ps-wrap { position:relative; display:flex; flex-direction:column; gap:12px; width:100%; padding:14px; box-sizing:border-box; background:linear-gradient(160deg,#2a2140 0%,#3a2c52 55%,#5a3a4e 100%); color:var(--ps-off); font-family:"Plus Jakarta Sans",Inter,sans-serif; }
.ps-hud { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.ps-stat { display:flex; align-items:center; gap:6px; background:rgba(0,0,0,.28); border:1px solid rgba(255,255,255,.1); padding:7px 14px; font-weight:800; font-variant-numeric:tabular-nums; font-size:18px; min-width:64px; justify-content:center; }
.ps-ic { font-size:15px; opacity:.9; }
.ps-bones { color:var(--ps-gold); }
.ps-time { color:var(--ps-aqua); }
.ps-flagbtn { font-family:inherit; font-weight:800; font-size:13px; letter-spacing:.02em; padding:8px 16px; cursor:pointer; color:var(--ps-off); background:rgba(0,0,0,.28); border:1px solid rgba(255,255,255,.16); transition:transform .08s, background .15s, box-shadow .15s; }
.ps-flagbtn:hover { background:rgba(0,0,0,.4); }
.ps-flagbtn:active { transform:translateY(1px); }
.ps-flagbtn.is-on { background:var(--ps-sun); color:#fff; border-color:var(--ps-gold); box-shadow:0 0 0 2px rgba(255,194,30,.4); }
.ps-levels { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.ps-lvl, .ps-reset { font-family:inherit; font-weight:700; font-size:12px; padding:6px 12px; cursor:pointer; color:var(--ps-off); background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); transition:background .15s, color .15s; }
.ps-lvl:hover, .ps-reset:hover { background:rgba(255,255,255,.14); }
.ps-lvl.is-on { background:var(--ps-gold); color:var(--ps-purple); border-color:var(--ps-gold); }
.ps-reset { margin-left:auto; }
.ps-grid { display:grid; grid-template-columns:repeat(var(--ps-cols,9),1fr); gap:4px; padding:8px; align-content:start; background:linear-gradient(180deg,rgba(20,14,30,.55),rgba(20,14,30,.3)); border:1px solid rgba(127,212,201,.18); }
.ps-cell { aspect-ratio:1/1; min-width:0; padding:0; margin:0; cursor:pointer; font-family:inherit; font-weight:800; font-size:clamp(12px,3.4vw,18px); line-height:1; display:flex; align-items:center; justify-content:center; color:var(--ps-purple); user-select:none; -webkit-user-select:none; touch-action:manipulation; -webkit-tap-highlight-color:transparent; background:linear-gradient(160deg,#fbfbf7,#dfe7e6); border:1px solid rgba(255,255,255,.7); box-shadow:inset -2px -2px 0 rgba(42,33,64,.16), inset 2px 2px 0 rgba(255,255,255,.7); transition:transform .06s, filter .12s; }
.ps-cell:hover:not(.is-open) { filter:brightness(1.06); }
.ps-cell:active:not(.is-open) { transform:translateY(1px); }
.ps-cell.is-open { cursor:default; box-shadow:none; border:1px solid rgba(127,212,201,.22); background:rgba(243,241,234,.07); color:var(--ps-off); }
.ps-cell.is-flag { background:linear-gradient(160deg,#ffe6a0,#ffc21e); color:var(--ps-purple); }
.ps-cell.is-bone { background:linear-gradient(160deg,#e8631a,#c23d12); color:#fff; box-shadow:inset 0 0 0 2px rgba(255,194,30,.6); }
.ps-cell.n1 { color:#5aa9ff; } .ps-cell.n2 { color:#5fd08a; } .ps-cell.n3 { color:#ff7a6b; } .ps-cell.n4 { color:#c79bff; }
.ps-cell.n5 { color:#ffc21e; } .ps-cell.n6 { color:#7fd4c9; } .ps-cell.n7 { color:#f3f1ea; } .ps-cell.n8 { color:#ff9d4d; }
@keyframes ps-shake { 0%,100% { transform:translateX(0); } 20% { transform:translateX(-6px); } 40% { transform:translateX(6px); } 60% { transform:translateX(-4px); } 80% { transform:translateX(4px); } }
.ps-grid.ps-shake { animation:ps-shake .5s ease; }
.ps-overlay { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; text-align:center; padding:24px; box-sizing:border-box; background:rgba(26,18,38,.92); backdrop-filter:blur(4px); z-index:5; }
.ps-title { font-weight:800; font-size:26px; letter-spacing:.04em; color:var(--ps-off); text-shadow:0 2px 0 rgba(232,99,26,.5); }
.ps-msg { font-size:14px; color:var(--ps-aqua); }
.ps-msg b { color:var(--ps-gold); }
.ps-start { font-family:inherit; font-weight:800; font-size:15px; cursor:pointer; padding:12px 28px; color:#fff; border:none; background:linear-gradient(160deg,#e8631a,#ffc21e); transition:transform .08s, filter .15s; }
.ps-start:hover { filter:brightness(1.08); }
.ps-start:active { transform:translateY(1px); }
@media (max-width:430px) { .ps-wrap { padding:10px; gap:9px; } .ps-grid { gap:3px; padding:6px; } .ps-stat { font-size:16px; padding:6px 10px; min-width:54px; } .ps-title { font-size:22px; } }

/* ============================================================
   COMMAND Z ARCADE — shared cohesion + branding across all games
   ============================================================ */
:root { --cz-night:#1a1430; --cz-purple:#2a2140; --cz-plum:#3a2c52; --cz-sun:#e8631a; --cz-gold:#ffc21e; --cz-off:#f3f1ea; --cz-aqua:#7fd4c9; }
/* unified intro / game-over overlay */
.rr-overlay, .xf-overlay, .ps-overlay, .pball-overlay, .race-overlay, .beat-overlay, .mc-overlay {
  background: radial-gradient(130% 100% at 50% 0%, rgba(58,44,82,.93), rgba(20,14,30,.97)) !important; backdrop-filter: blur(5px); }
/* ⌘Z brand watermark on every overlay */
.rr-overlay::after, .xf-overlay::after, .ps-overlay::after, .pball-overlay::after, .race-overlay::after, .beat-overlay::after, .mc-overlay::after {
  content: "⌘Z"; position: absolute; right: 16px; bottom: 12px; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800;
  font-size: 30px; color: rgba(243,241,234,.07); pointer-events: none; letter-spacing: -.02em; }
/* RUFF TIMES rope logo crowns every game's title / loading screen */
.rr-overlay::before, .xf-overlay::before, .ps-overlay::before, .pball-overlay::before, .race-overlay::before, .beat-overlay::before, .mc-overlay::before {
  content: ""; flex: 0 0 auto; width: min(64%, 232px); aspect-ratio: 760 / 324; margin-bottom: 2px;
  background: url(../assets/img/brand/ruff-times.png) center / contain no-repeat;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.45)); pointer-events: none; }
/* unified title */
.rr-title, .xf-title, .ps-title, .pball-title, .race-title, .beat-title, .mc-title {
  font-family: "Plus Jakarta Sans", sans-serif !important; font-weight: 800 !important; letter-spacing: -.01em;
  color: var(--cz-off) !important; text-shadow: 0 0 22px rgba(232,99,26,.45) !important; }
/* consistent eyebrow */
.xf-eyebrow, .pball-eyebrow { font-family: var(--mono) !important; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--cz-sun) !important; }
/* unified start / replay button — sunset → gold pill */
.rr-start, .ps-start, .pball-start, .race-start, .beat-start, .mc-start {
  background: linear-gradient(160deg, var(--cz-sun), var(--cz-gold)) !important; color: #2a1206 !important;
  font-family: "Plus Jakarta Sans", sans-serif !important; font-weight: 800 !important; font-size: 15px !important;
  border: none !important; border-radius: 999px !important; padding: 12px 30px !important; cursor: pointer;
  box-shadow: 0 12px 30px -10px rgba(232,99,26,.6); transition: transform .12s, filter .15s; }
.rr-start:hover, .ps-start:hover, .pball-start:hover, .race-start:hover, .beat-start:hover, .mc-start:hover { filter: brightness(1.08); transform: translateY(-1px); }
.rr-start:active, .ps-start:active, .pball-start:active, .race-start:active, .beat-start:active, .mc-start:active { transform: translateY(1px); }
/* fixed-size game windows: the zoom/maximize button does nothing → hide it */
.window.win-fixed .tl-max { visibility: hidden; pointer-events: none; }
/* Beat Pad intro overlay shell (title screen + instructions) */
.beat-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; text-align: center; padding: 24px; box-sizing: border-box; z-index: 6; border-radius: 12px; }
.beat-overlay .g-tut { max-width: 34ch; }
