/* ==========================================================================
   KUTAY OS — Home frame
   The frame every home desktop lives in: per-desktop colour themes that
   also recolour the shared chrome, the desktop area between menu bar and
   dock, the right-hand desktop-icon column, the room stage, windows on
   the home desktop, and the "all desktops" overview dialog.
   Room content: css/rooms.css. The Studio desk scene: css/studio.css.
   ========================================================================== */

/* ---------------------------------------------------------------------- */
/* Per-desktop colour themes                                               */
/* ---------------------------------------------------------------------- */
body.realm-shell, body.realm-surface {
  --room-bg: #093f28; --room-ink: #fff6df; --room-muted: #b5d4be; --room-line: rgba(255, 255, 255, .15);
  --room-accent: #ffce50; --room-panel: #123f31; --room-soft: rgba(255, 255, 255, .04);
  background: var(--room-bg); color: var(--room-ink);
}
/* Brand Identity: bone and black, a monochrome brand board. The checker
   is the only pattern and the identity photos carry all the colour. */
body[data-realm="field"] { --room-bg: #f0ece3; --room-ink: #141414; --room-muted: #5f5b53; --room-line: rgba(20, 20, 20, .16); --room-accent: #141414; --room-panel: #faf8f3; --room-soft: rgba(20, 20, 20, .05); }
body[data-realm="stickers"] { --room-bg: #111110; --room-ink: #fcf9ed; --room-muted: #b5b5a8; --room-line: rgba(255, 255, 255, .15); --room-accent: #d1f55b; --room-panel: #21221d; --room-soft: rgba(255, 255, 255, .035); }
body[data-realm="type"] { --room-bg: #101010; --room-ink: #f6e9e1; --room-muted: #b8a99f; --room-line: rgba(255, 255, 255, .15); --room-accent: #ff6938; --room-panel: #27211f; --room-soft: rgba(255, 255, 255, .035); }
body[data-realm="gallery"] { --room-bg: #f1eee7; --room-ink: #312b27; --room-muted: #746a61; --room-line: rgba(49, 43, 39, .17); --room-accent: #b94628; --room-panel: #faf7f1; --room-soft: rgba(255, 255, 255, .35); }
body[data-realm="motion"] { --room-bg: #14131e; --room-ink: #eee6fc; --room-muted: #b5aac8; --room-line: rgba(197, 175, 255, .21); --room-accent: #c5afff; --room-panel: #272334; --room-soft: rgba(255, 255, 255, .035); }

/* The shared chrome (menu bar, dock, windows, menus, dialogs) takes its
   colours from the current desktop, so the whole screen reads as one. */
body.realm-shell {
  --bg: var(--room-bg); --text: var(--room-ink); --text-muted: var(--room-muted); --text-dim: var(--room-muted);
  --line: var(--room-line); --line-2: color-mix(in srgb, var(--room-ink) 7%, transparent);
  --line-strong: color-mix(in srgb, var(--room-ink) 30%, transparent);
  --hover: color-mix(in srgb, var(--room-ink) 8%, transparent); --hover-strong: color-mix(in srgb, var(--room-ink) 14%, transparent);
  --accent: var(--room-accent); --accent-ink: var(--room-bg);
  --menu-bg: color-mix(in srgb, var(--room-bg) 70%, transparent);
  --dock-bg: color-mix(in srgb, var(--room-panel) 68%, transparent);
  --window-bg: var(--room-panel); --panel: var(--room-panel); --panel-2: var(--room-panel);
  overflow: hidden; transition: background-color .5s;
}
body.realm-shell .wallpaper { background: var(--room-bg) !important; transition: background-color .5s; isolation: isolate; }
body.realm-shell .wallpaper > * { display: none; }
body.realm-shell .wallpaper::after {
  content: ""; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
body.realm-shell .menu-nav, body.realm-shell .mobile-menu { display: none !important; }
body.realm-shell :is(button, a, input, select):focus-visible { outline: 2px solid var(--room-accent); outline-offset: 3px; }
body.realm-shell .menu-cta:hover { box-shadow: 0 6px 22px color-mix(in srgb, var(--room-accent) 45%, transparent); }

/* ---------------------------------------------------------------------- */
/* Desktop area, stage and icon column (large screens)                     */
/* ---------------------------------------------------------------------- */
body.realm-shell .desktop { position: fixed; inset: var(--menu-h) 0 var(--dock-reserve); display: block; padding: 0; overflow: hidden; }
.realm-stage {
  position: absolute; z-index: 2; top: 20px; bottom: 0; left: 40px; right: calc(var(--icons-w, 96px) + 28px);
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--room-line) transparent;
}
.realm-room { position: relative; display: flex; flex-direction: column; min-height: 100%; }
.realm-room[hidden] { display: none !important; }
.realm-room.room-outgoing { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.realm-noscript { padding: 100px 10%; font-size: 25px; }

body.realm-shell .desktop-icons { position: absolute; z-index: var(--z-icons); inset: 16px 12px 8px 16px; padding: 0; pointer-events: none; }
body.realm-shell .desktop-icons .desk-icon { pointer-events: auto; }
body.realm-shell .desk-icon { width: 92px; min-height: 96px; gap: 7px; padding: 8px 3px; border-radius: 14px; color: var(--room-ink); transition: background .2s, transform .25s var(--ease-out), left .35s var(--ease-out), top .35s var(--ease-out); }
body.realm-shell .desk-icon.is-dragging { transition: none; }
body.realm-shell .desktop-icons.is-compact .desk-icon { min-height: 84px; gap: 4px; padding: 5px 3px; }
body.realm-shell .desk-label { overflow-wrap: normal; word-break: normal; color: var(--room-ink); font-size: 11.5px; line-height: 1.25; font-weight: 550; text-shadow: none; padding: 1px 3px; border-radius: 5px; }
body.realm-shell .desk-icon:hover { background: var(--hover); }
body.realm-shell .desk-icon:hover .realm-folder { transform: translateY(-3px) rotate(-2deg); }
body.realm-shell .desk-icon.is-selected { outline: 0; background: var(--hover) !important; }
body.realm-shell .desk-icon.is-selected .desk-label { background: var(--room-accent); color: var(--room-bg); }
body.realm-shell .desk-icon.is-dragging { rotate: -4deg; scale: 1.06; box-shadow: 0 16px 36px rgba(0, 0, 0, .25); background: var(--hover-strong); z-index: 80; }

.realm-folder { --folder-color: #efabc6; position: relative; display: block; width: 56px; height: 47px; margin-top: 7px; color: #173221; isolation: isolate; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.realm-folder::before { content: ""; position: absolute; left: 0; top: -6px; width: 28px; height: 16px; border-radius: 8px 9px 0 0; background: var(--folder-color); filter: brightness(.9); z-index: -2; }
.realm-folder > span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 6px 10px 10px 10px; background: var(--folder-color); box-shadow: inset 0 1px rgba(255, 255, 255, .5), 0 6px 14px rgba(0, 0, 0, .2); }
.realm-folder svg { width: 25px; height: 25px; }
.realm-folder > i { position: absolute; inset: 4px 5px 1px; background: #fff6df; border-radius: 5px; z-index: -1; transition: transform .25s; }
.desk-icon:hover .realm-folder > i { transform: translateY(-4px); }
.realm-folder.folder-1 { --folder-color: #ffcf55; } .realm-folder.folder-2 { --folder-color: #8bcbe6; }
.realm-folder.folder-3 { --folder-color: #a4d88a; } .realm-folder.folder-4 { --folder-color: #e8c6a0; }
body[data-icon-size="large"].realm-shell .realm-folder { width: 64px; height: 54px; }
/* Desktop shortcuts use the same illustrated tiles as the dock. */
.desk-art { position: relative; display: block; width: 52px; height: 52px; margin-top: 4px; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .2)); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.desk-icon:hover .desk-art { transform: translateY(-3px) rotate(-3deg); }
.desk-icon:active .desk-art { transform: scale(.94); }
body[data-icon-size="large"].realm-shell .desk-art { width: 64px; height: 64px; }
.launcher-drag-ghost .desk-art, .launcher-drag-ghost .dock-art { position: relative; left: auto; bottom: auto; transform: none; width: 52px; height: 52px; }

body[data-icon-size="large"].realm-shell .desk-icon { width: 104px; min-height: 112px; }

/* Studio: icons sit on the wall, above the folder shelf */
body.realm-shell[data-realm="play"] .realm-stage { inset: 0; overflow: visible; }
body.realm-shell.studio-v2[data-realm="play"] .desktop-icons { inset: 16px var(--st-icons-right) 8px 16px; }
body.realm-shell[data-realm="play"] .desk-label { color: #fff6df; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }

/* ---------------------------------------------------------------------- */
/* Windows on the home desktop                                             */
/* ---------------------------------------------------------------------- */
body.realm-shell .window[data-realm-off] { display: none !important; }
body.realm-shell .window { border-color: var(--room-line); }
body.realm-shell .window > .titlebar { color: var(--room-ink); border-bottom-color: var(--room-line); }
body.realm-shell .window .os-frame { display: block; width: 100%; height: calc(100% - var(--titlebar-h)); border: 0; background: var(--room-panel); }
body.realm-shell .window-enter { animation: realmWindowEnter .34s cubic-bezier(.18, .8, .2, 1); }
body.realm-shell .window-exit { animation: realmWindowExit .16s ease-in forwards; }
@keyframes realmWindowEnter { from { opacity: 0; translate: 0 22px; scale: .94; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes realmWindowExit { to { opacity: 0; translate: 0 12px; scale: .96; } }
body.realm-shell .task-tray { bottom: calc(var(--dock-reserve) + 6px); }
body.realm-shell .task-btn { background: var(--room-panel); color: var(--room-ink); border-color: var(--room-line); }

/* ---------------------------------------------------------------------- */
/* "All desktops" overview                                                 */
/* ---------------------------------------------------------------------- */
.realm-map-dialog { width: min(880px, 94vw) !important; max-width: 94vw !important; }
.realm-map-intro { font-size: 13px; line-height: 1.7; color: var(--room-muted); margin: 0; }
.realm-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.realm-map-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 8px 8px 14px; border-radius: 16px; text-align: left; background: var(--room-soft); color: var(--room-ink); border: 1px solid var(--room-line); transition: transform .3s var(--ease-out), border-color .2s, box-shadow .3s; }
.realm-map-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 14px 30px rgba(0, 0, 0, .18); }
.realm-map-card[aria-pressed="true"] { outline: 2px solid var(--room-accent); outline-offset: 2px; }
.realm-map-card > strong { font-size: 14px; margin: 2px 8px 0; }
.realm-map-card > small { font-size: 11px; line-height: 1.5; margin: 0 8px; color: var(--room-muted); }
.realm-map-card .map-picture { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 11px; overflow: hidden; background: var(--preview-bg, #14171d); }
.realm-map-card .map-picture img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2, .8, .3, 1); }
.realm-map-card:hover .map-picture img { transform: scale(1.05); }
.realm-map-card .map-picture b { position: absolute; left: 9px; top: 8px; padding: 2px 7px; border-radius: 20px; font: 700 10px/1.7 var(--font-mono); background: rgba(8, 10, 15, .62); color: #fff; backdrop-filter: blur(6px); }
.realm-map-hint { font-size: 11px; color: var(--room-muted); margin: 0; }

/* ---------------------------------------------------------------------- */
/* Menu-bar Spaces: how much of the switcher fits                          */
/* ---------------------------------------------------------------------- */
@media (max-width: 1439px) {
  .space { padding: 0 9px; }
  .space span { display: none; }
  .space[aria-current="page"] span { display: inline; }
  .space:hover span { display: inline; }
}
@media (max-width: 1099px) {
  .realm-shell .spaces { display: none; }
  .realm-shell .spaces-compact { display: inline-flex; }
  .menu-cta { display: none; }
}
@media (max-width: 1279px) { .menu-cta { display: none; } }

/* ---------------------------------------------------------------------- */
/* Small screens: one scrolling column                                     */
/* ---------------------------------------------------------------------- */
@media (max-width: 1099px), (max-height: 639px) {
  body.realm-shell .desktop { position: fixed; inset: var(--menu-h) 0 0; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(var(--dock-reserve) + 8px); }
  body.realm-shell .desktop-icons { position: relative; inset: auto; order: -1; width: auto; pointer-events: auto; display: flex; gap: 2px; flex-shrink: 0; padding: 12px 14px 4px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  body.realm-shell .desktop-icons::-webkit-scrollbar { display: none; }
  body.realm-shell .desktop-icons .desk-icon { position: relative !important; left: auto !important; top: auto !important; flex: 0 0 84px; min-height: 90px; scroll-snap-align: start; }
  .realm-stage, body.realm-shell[data-realm="play"] .realm-stage { position: relative; inset: auto; flex: 1 0 auto; overflow: visible; padding: 8px 20px 24px; }
  body.realm-shell[data-realm="play"] .realm-stage { padding: 0; }
  body.realm-shell[data-realm="play"] .desktop-icons { bottom: auto; }
  body.realm-shell .desktop > .window:not([hidden]) { position: fixed !important; inset: calc(var(--menu-h) + 8px) 8px calc(var(--dock-reserve) + 4px) !important; width: auto !important; height: auto !important; z-index: var(--window-z, 35); }
  body.realm-shell .desktop > .window.is-maximized:not([hidden]) { inset: var(--menu-h) 0 var(--dock-reserve) !important; border-radius: 0; }
  .realm-map { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 600px) {
  .realm-stage { padding: 6px 16px 20px; }
  body.realm-shell .desktop-icons { padding: 10px 8px 2px; }
  body.realm-shell .desktop-icons .desk-icon { flex: 1 0 68px; min-height: 84px; }
  body.realm-shell .desktop-icons .desk-label { font-size: 10.5px; }
  .realm-folder { width: 48px; height: 40px; }
  .desk-art { width: 48px; height: 48px; }
  .spaces-compact b { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.realm-shell *, body.realm-surface * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
body.realm-shell.reduce-motion * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* ---------------------------------------------------------------------- */
/* Control Center → Widgets (small native windows on the home desktop)     */
/* ---------------------------------------------------------------------- */
.about-window .about-body { display: grid; grid-template-columns: 38% minmax(0, 1fr); gap: 16px; height: calc(100% - var(--titlebar-h)); padding: 14px; min-height: 0; overflow: hidden; }
.about-window .portrait { border-radius: 12px; overflow: hidden; background: #111; min-height: 0; }
.about-window .portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-window .about-copy { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; justify-content: center; }
.about-window .eyebrow { font: 600 10px var(--font-mono); letter-spacing: .18em; color: var(--room-muted); }
.about-window h2 { margin: 0; font-size: 20px; line-height: 1.1; letter-spacing: -.02em; }
.about-window p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--room-muted); }
.about-window .about-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.music-mini .player { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; height: calc(100% - var(--titlebar-h)); padding: 14px 16px; }
.music-mini .cover { position: relative; width: 96px; height: 96px; border-radius: 14px; background: linear-gradient(135deg, #ff8a3d, #ffcf3e); display: grid; place-items: center; overflow: hidden; }
.music-mini .vinyl { width: 70px; height: 70px; border-radius: 50%; background: repeating-radial-gradient(circle, #1a1a1a 0 2px, #222 2px 4px); box-shadow: inset 0 0 0 22px #151515, inset 0 0 0 26px #ffcf3e; animation: vinylSpin 5s linear infinite; }
@keyframes vinylSpin { to { rotate: 360deg; } }
.music-mini .track { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.music-mini .onair { display: inline-flex; align-items: center; gap: 6px; font: 700 10px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: #ff9a3c; }
.music-mini .onair i { width: 7px; height: 7px; border-radius: 50%; background: #ff5a3c; animation: onairBlink 1.6s ease-in-out infinite; }
@keyframes onairBlink { 50% { opacity: .3; } }
.music-mini .track b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-mini .track > span { font-size: 12.5px; color: var(--room-muted); }
.music-mini .player-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.notes-mini .note-content { display: flex; flex-direction: column; height: calc(100% - var(--titlebar-h)); padding: 8px 10px; overflow: auto; }
.notes-mini .note-content a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 8px; border-bottom: 1px solid var(--room-line); font-size: 13px; border-radius: 8px; transition: background .2s; }
.notes-mini .note-content a:hover { background: var(--hover); }
.notes-mini .note-content a span { color: var(--room-muted); }
@media (max-width: 1099px), (max-height: 639px) {
  .about-window .about-body { grid-template-columns: 1fr; grid-template-rows: 55% auto; overflow: auto; }
}
@media (prefers-reduced-motion: reduce) { .music-mini .vinyl, .music-mini .onair i { animation: none; } }

/* A shortcut on its way to Production Waste. */
.desk-icon.is-trashing { transition: transform .24s var(--ease-out), opacity .24s; transform: scale(.4) translateY(40px); opacity: 0; }

/* ---------------------------------------------------------------------- */
/* Room transitions (js/home/room-transitions.js)                          */
/* ---------------------------------------------------------------------- */
.rt-running .realm-stage { overflow: hidden !important; }
.rt-paper, .rt-crt, .rt-floor, .rt-flash, .rt-iris { position: fixed; left: 0; right: 0; bottom: 0; z-index: 58; pointer-events: none; }
.rt-paper { background: rgba(240, 236, 227, 1); background-image: radial-gradient(rgba(0, 0, 0, .035) 1px, transparent 1px); background-size: 5px 5px; }
.rt-sketch { position: absolute; inset: 0; overflow: visible; }
.rt-sketch line, .rt-sketch circle { fill: none; stroke: #3f63ff; stroke-width: 1.3; stroke-linecap: round; opacity: .85; }
.rt-sketch .soft { stroke-width: 1; opacity: .5; }
.rt-sketch .grid { stroke-width: .8; opacity: .18; }
.rt-flaps { position: fixed; z-index: 58; pointer-events: none; transform-origin: 50% 50%; }
.rt-flap { position: absolute; top: 0; bottom: 0; width: 50%; transform-style: preserve-3d; }
.rt-flap-l { left: 0; transform-origin: 0 50%; }
.rt-flap-r { right: 0; transform-origin: 100% 50%; }
.rt-face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background-color: var(--room-bg, #111); }
.rt-back { transform: rotateY(180deg); }
.rt-kraft { background: #c9a574 linear-gradient(90deg, rgba(0, 0, 0, .08), transparent 30%, rgba(255, 255, 255, .06) 70%, rgba(0, 0, 0, .1)); }
.rt-kraft::after { content: ""; position: absolute; inset: 22px; border: 1px dashed rgba(60, 40, 15, .45); border-radius: 2px; }
.rt-flap-l .rt-front.rt-kraft::before { content: "THIS SIDE UP ↑↑"; position: absolute; left: 36px; bottom: 34px; font: 700 12px/1 var(--font-mono); letter-spacing: .14em; color: rgba(50, 32, 10, .6); }
.rt-flap-r .rt-front.rt-kraft::before { content: "KUTAY STUDIO · BOX 01"; position: absolute; right: 36px; top: 34px; font: 700 12px/1 var(--font-mono); letter-spacing: .14em; color: rgba(50, 32, 10, .6); }
.rt-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .2)); opacity: 0; pointer-events: none; }
.rt-flap-r .rt-shade { background: linear-gradient(270deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .2)); }
.rt-seam { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .7) 0 10px, transparent 10px 16px); transform-origin: top; }
.rt-tape { z-index: 3; position: absolute; left: 50%; top: 0; bottom: 0; width: 64px; transform: translateX(-50%) scaleY(0); transform-origin: top; background: rgba(214, 196, 150, .92); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); overflow: hidden; writing-mode: vertical-rl; font: 800 13px/64px var(--font-sans); letter-spacing: .3em; color: rgba(40, 30, 12, .55); text-align: center; white-space: nowrap; }
.rt-crt { top: 50%; bottom: auto; height: 2px; margin-top: 24px; background: #fff; box-shadow: 0 0 18px 4px rgba(200, 225, 255, .8); opacity: 0; }
.rt-floor { background:
    repeating-linear-gradient(90deg, rgba(120, 170, 255, .28) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(120, 170, 255, .28) 0 1px, transparent 1px 64px);
  top: auto; height: 60%; transform: perspective(600px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(transparent, #000 60%); mask-image: linear-gradient(transparent, #000 60%); opacity: 0; }
.rt-gizmo { position: fixed; z-index: 59; right: calc(var(--icons-w, 96px) + 40px); top: calc(var(--menu-h) + 26px); width: 72px; height: 72px; pointer-events: none; opacity: 0; }
.rt-gizmo svg { width: 100%; height: 100%; overflow: visible; }
.rt-gizmo line { stroke-width: 2.4; stroke-linecap: round; }
.rt-gizmo text { font: 700 8px var(--font-mono); fill: #d9e3ff; }
.rt-letterbox { position: fixed; z-index: 58; left: 0; right: 0; height: 7vh; background: #000; pointer-events: none; transform: scaleY(0); }
.rt-lb-t { transform-origin: top; }
.rt-lb-b { bottom: 0; transform-origin: bottom; }
.rt-timeline { position: fixed; z-index: 61; left: 50%; bottom: calc(var(--dock-reserve) + 14px); transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 12px; background: rgba(10, 10, 14, .9); color: #eee6fc; font: 600 12px var(--font-mono); pointer-events: none; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
.rt-track { position: relative; width: min(38vw, 420px); height: 18px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 1px, transparent 1px 12px) 0 50% / 100% 8px no-repeat; }
.rt-track i { position: absolute; top: -3px; bottom: -3px; left: 0; width: 2px; background: #ffcf3e; box-shadow: 0 0 8px #ffcf3e; }
.rt-fps { min-width: 52px; color: #c5afff; text-align: right; }
.rt-flash { background: #fff; opacity: 0; }
.rt-iris { background: #000; -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent calc(var(--rt-r) - 1%), #000 var(--rt-r)); mask-image: radial-gradient(circle at 50% 50%, transparent calc(var(--rt-r) - 1%), #000 var(--rt-r)); --rt-r: 150%; }
.rt-lampglow { position: fixed; z-index: 59; width: 70vmin; height: 70vmin; translate: -50% -50%; border-radius: 50%; pointer-events: none; opacity: 0; mix-blend-mode: screen; background: radial-gradient(circle, rgba(255, 200, 120, .75), rgba(255, 160, 70, .22) 35%, transparent 65%); }
.rt-ghost { z-index: 0; }
@media (max-width: 700px) { .rt-kraft::before { display: none; } .rt-timeline .rt-track { width: 30vw; } }

.rt-face-shade { position: absolute; inset: 0; z-index: 50; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .35)); opacity: 0; }
.rt-cube .realm-room.room-outgoing .rt-face-shade { background: linear-gradient(270deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .35)); }
.rt-cube-shadow { position: fixed; z-index: 1; left: 50%; bottom: calc(var(--dock-reserve) - 10px); width: 60vw; height: 70px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent); pointer-events: none; opacity: 0; }
.rt-hud { position: fixed; z-index: 59; left: 56px; top: calc(var(--menu-h) + 26px); font: 600 11px var(--font-mono); letter-spacing: .12em; color: #d9e3ff; pointer-events: none; opacity: 0; }
.rt-cube .desktop { background: radial-gradient(ellipse at 50% 40%, #232735, #0b0c10 70%); }

.rt-iris-full { top: 0 !important; z-index: 80 !important; }
.rt-endcard { position: fixed; z-index: 81; inset: 0; display: grid; place-content: center; gap: 12px; text-align: center; color: #f3efe6; pointer-events: none; opacity: 0; letter-spacing: .28em; }
.rt-endcard b { font: 800 clamp(22px, 3vw, 40px)/1 var(--font-sans); }
.rt-endcard span { font: 600 11px var(--font-mono); letter-spacing: .3em; color: #b5aac8; }
.rt-letterbox.rt-lb-t { top: 0; z-index: 82; }
.rt-letterbox.rt-lb-b { z-index: 82; }
/* Lights on (rtLightsOn): everything starts dark and switches on in turn. */
.lights-off { background: #000 !important; }
.lo-t { filter: brightness(.04) saturate(.2) !important; transition: filter .5s ease; }
.lo-t.lo-on { filter: brightness(1) !important; animation: loFlick .55s linear; }
@keyframes loFlick { 0% { filter: brightness(.9); } 12% { filter: brightness(.12); } 24% { filter: brightness(1.15); } 36% { filter: brightness(.35); } 52%, 100% { filter: brightness(1); } }
.lights-off .rt-lampglow { z-index: 3; }

/* Process ribbon */
.rt-ribbon { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--dock-reserve) + 12px); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: rgba(12, 12, 14, .82); backdrop-filter: blur(10px); color: rgba(255, 255, 255, .42); font: 600 10.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.rt-ribbon span { display: flex; gap: 6px; align-items: center; transition: color .3s, transform .3s; }
.rt-ribbon b { font-weight: 700; opacity: .6; }
.rt-ribbon i { width: 14px; height: 6px; background: repeating-conic-gradient(currentColor 0 25%, transparent 0 50%) 0 0 / 6px 6px; opacity: .5; }
.rt-ribbon .is-from { color: rgba(255, 255, 255, .85); }
.rt-ribbon .is-to { color: #ffcf3e; transform: translateY(-1px); }
.rt-slowmo .rt-ribbon { bottom: calc(var(--dock-reserve) + 68px); }
@media (max-width: 900px) { .rt-ribbon span:not(.is-to):not(.is-from) { display: none; } .rt-ribbon i { display: none; } }
/* Menu pill fills while its room arrives */
.space.rt-target { position: relative; overflow: hidden; }
.space.rt-target::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--c, #ffcf3e); transform-origin: left; animation: rtPill var(--rt-t, 1200ms) linear both; }
@keyframes rtPill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* Carton details */
.rt-edge { position: absolute; top: 0; bottom: 0; width: 7px; background: repeating-linear-gradient(90deg, #a27c4c 0 2px, #c9a574 2px 4px); transform: rotateY(90deg); transform-origin: left; }
.rt-flap-l .rt-edge { left: 100%; } .rt-flap-r .rt-edge { left: 0; transform-origin: left; transform: rotateY(-90deg); }
.rt-inner { display: grid; place-content: center; text-align: center; color: rgba(60, 38, 12, .55); }
.rt-inner b { font: 900 min(40vh, 22vw)/1 var(--font-sans); letter-spacing: -.06em; opacity: .5; }
.rt-inner small { font: 700 11px var(--font-mono); letter-spacing: .2em; }
.rt-minor { position: absolute; left: 6%; right: 6%; height: 20%; background: #b89262 linear-gradient(180deg, rgba(0, 0, 0, .12), transparent 40%); transform-style: preserve-3d; backface-visibility: hidden; }
.rt-minor-t { top: 0; transform-origin: 50% 0; border-radius: 0 0 6px 6px; }
.rt-minor-b { bottom: 0; transform-origin: 50% 100%; border-radius: 6px 6px 0 0; }
.rt-flaps .rt-flap { z-index: 2; }
/* Shipping label */
.rt-label { position: fixed; z-index: 60; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 6px; background: #fbf9f3; color: #141414; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); font-family: var(--font-mono); pointer-events: none; overflow: hidden; transform: rotate(-3deg); }
.rt-label header { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .12em; border-bottom: 2px solid #141414; padding-bottom: 6px; margin-bottom: 2px; }
.rt-label small { font-size: 9px; letter-spacing: .18em; color: #6b675f; }
.rt-label strong { font: 800 clamp(18px, 2.2vw, 28px)/1 var(--font-sans); letter-spacing: -.02em; }
.rt-barcode { flex: 1; min-height: 26px; margin-top: 6px; background: repeating-linear-gradient(90deg, #141414 0 2px, transparent 2px 4px, #141414 4px 5px, transparent 5px 8px, #141414 8px 11px, transparent 11px 12px); }
.rt-label footer { font-size: 8.5px; letter-spacing: .14em; color: #6b675f; }
.rt-laser { position: absolute; left: 8px; right: 8px; top: 58%; height: 2px; background: #ff2a2a; box-shadow: 0 0 10px 2px rgba(255, 40, 40, .8); opacity: 0; }
/* Slow-motion echoes + drifting character */
.rt-echo { position: fixed; z-index: 57; pointer-events: none; overflow: hidden; }
.rt-echo > * { width: 100% !important; height: 100% !important; margin: 0 !important; object-fit: cover; }
.rt-drift { position: fixed; z-index: 59; left: 30vw; top: 26vh; width: min(34vw, 460px); aspect-ratio: 1.48; border-radius: 14px; background: center / cover no-repeat; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); pointer-events: none; opacity: 0; }

/* ---------------------------------------------------------------------- */
/* Studio Radio deck (js/home/radio-widget.js)                             */
/* ---------------------------------------------------------------------- */
.radio-deck { position: fixed; z-index: 20; left: 22px; bottom: calc(var(--dock-reserve) + 12px); width: auto; color: #f6efe2; font-family: var(--font-sans); }
.rd-pill { position: relative; display: flex; align-items: center; gap: 11px; width: 60px; height: 60px; padding: 0 9px; overflow: hidden; transition: width .35s var(--ease-out), transform .2s var(--ease-out), border-color .2s; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; background: rgba(14, 16, 14, .82); backdrop-filter: blur(16px); color: inherit; cursor: pointer; text-align: left; box-shadow: 0 14px 34px rgba(0, 0, 0, .35); transition: transform .2s var(--ease-out), border-color .2s; }
.rd-pill:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .24); }
.rd-record { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; background: repeating-radial-gradient(circle, #111 0 1.5px, #262626 1.5px 3px); box-shadow: 0 2px 6px rgba(0, 0, 0, .5); animation: rdSpin 2.4s linear infinite paused; }
.rd-record i { position: absolute; inset: 14px; border-radius: 50%; background: radial-gradient(circle, #f6efe2 0 2px, var(--rd-label, #ff8a3d) 2.5px); }
.radio-deck[data-mode="night"] { --rd-label: #7b6cff; }
.radio-deck.is-playing .rd-record { animation-play-state: running; }
@keyframes rdSpin { to { transform: rotate(360deg); } }
.rd-arm { position: absolute; left: 40px; top: 7px; width: 3px; height: 26px; border-radius: 2px; background: #c9c2b0; transform-origin: 50% 2px; transform: rotate(-38deg); transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.radio-deck.is-playing .rd-arm { transform: rotate(-8deg); }
.rd-line { display: flex; flex-direction: column; gap: 2px; min-width: 0; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.radio-deck:hover .rd-pill, .radio-deck:has(:focus-visible) .rd-pill, .radio-deck.is-open .rd-pill { width: 250px; }
.radio-deck:hover .rd-line, .radio-deck:has(:focus-visible) .rd-line, .radio-deck.is-open .rd-line { opacity: 1; transition-delay: .12s; }
.rd-line b { font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-air { display: inline-flex; align-items: center; gap: 6px; font: 700 9.5px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(246, 239, 226, .55); }
.rd-air i { width: 7px; height: 7px; border-radius: 50%; background: #4a2a26; transition: background .3s, box-shadow .3s; }
.radio-deck.is-playing .rd-air { color: #ff9a85; }
.radio-deck.is-playing .rd-air i { background: #ff4a32; box-shadow: 0 0 8px 2px rgba(255, 74, 50, .7); animation: onairBlink 1.6s ease-in-out infinite; }
.rd-panel { position: absolute; left: 0; bottom: calc(100% + 10px); width: 340px; padding: 12px; border-radius: 18px; background: rgba(14, 16, 14, .94); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 24px 50px rgba(0, 0, 0, .5); backdrop-filter: blur(18px);
  opacity: 0; transform: translateY(10px) scale(.97); transform-origin: 20% 100%; pointer-events: none; visibility: hidden; transition: opacity .2s, transform .25s var(--ease-out), visibility 0s .25s; }
.radio-deck.is-open .rd-panel { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .2s, transform .25s var(--ease-out); }
.rd-tabs { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; }
.rd-tabs button { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: rgba(246, 239, 226, .7); font: 600 12px var(--font-sans); cursor: pointer; }
.rd-tabs button[aria-selected="true"] { background: #f6efe2; color: #111; border-color: #f6efe2; }
.rd-tabs a { margin-left: auto; font-size: 11.5px; color: rgba(246, 239, 226, .6); }
.rd-tabs a:hover { color: #f6efe2; }
.rd-embed { min-height: 152px; border-radius: 12px; overflow: hidden; background: repeating-radial-gradient(circle at 50% 120%, #1b1b1b 0 2px, #222 2px 4px); }
.rd-embed iframe { display: block; width: 100%; height: 152px; border: 0; }
.rd-note { margin: 8px 2px 0; font-size: 10.5px; line-height: 1.4; color: rgba(246, 239, 226, .45); }
body.lights-off .radio-deck, body.rt-running .radio-deck { opacity: 0; pointer-events: none; }
.radio-deck { transition: opacity .4s; }
body.st-night[data-realm="play"] .radio-deck { filter: brightness(.6); }
body.st-night[data-realm="play"] .radio-deck:hover, body.st-night[data-realm="play"] .radio-deck.is-open { filter: none; }
@media (max-width: 1099px) {
  .radio-deck { left: auto; right: 12px; width: auto; bottom: calc(var(--dock-reserve) + 10px); }
  .rd-pill, .radio-deck:hover .rd-pill, .radio-deck.is-open .rd-pill { width: 58px; padding: 0 8px; justify-content: center; }
  .rd-line, .rd-arm { display: none; }
  .rd-panel { left: auto; right: 0; width: min(340px, calc(100vw - 24px)); transform-origin: 90% 100%; }
}
@media (prefers-reduced-motion: reduce) { .rd-record { animation: none !important; } }
.radio-deck.is-open { z-index: 65; }

/* ---------------------------------------------------------------------- */
/* 00 Desktop (js/home/desk-room.js)                                       */
/* ---------------------------------------------------------------------- */
body[data-realm="desk"] { --room-bg: #15171b; --room-ink: #f1f3f7; --room-muted: #a7adb8; --room-line: rgba(255, 255, 255, .14); --room-accent: #9db8ff; --room-panel: #20232a; --room-soft: rgba(255, 255, 255, .05); }
body.realm-shell[data-realm="desk"] .desktop-icons { visibility: hidden; opacity: 0; }
body.realm-shell[data-realm="desk"] .realm-stage { inset: 0; overflow: hidden; }
.room-desk { position: absolute !important; inset: 0; min-height: 0 !important; padding: 0 !important; margin: 0 !important; max-width: none !important; }
.dk-wall { position: fixed; inset: 0; z-index: 0; background:
    radial-gradient(ellipse at 78% 18%, rgba(157, 184, 255, .22), transparent 55%),
    radial-gradient(ellipse at 12% 90%, rgba(255, 206, 80, .14), transparent 50%),
    linear-gradient(160deg, rgba(10, 12, 16, .55), rgba(10, 12, 16, .85)),
    url('../assets/home/studio-scene-v131.webp') center / cover; filter: saturate(.8); }
.dk-wall::after { content: ""; position: absolute; inset: 0; backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); }
.dk-wall::before { content: "KUTAY OS"; position: absolute; z-index: 1; left: 50%; top: 52%; translate: -50% -50%; font: 900 clamp(80px, 13vw, 220px)/1 var(--font-sans); letter-spacing: -.06em; color: rgba(255, 255, 255, .045); white-space: nowrap; pointer-events: none; }
.dk-icons { position: absolute; z-index: 2; left: 22px; top: 18px; bottom: 16px; right: 400px; }
.dk-icon { position: absolute; left: 0; top: 0; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border-radius: 12px; color: #f1f3f7; text-align: center; cursor: default; user-select: none; touch-action: none; transition: transform .35s var(--ease-out), background .15s; }
.dk-icon:hover { background: rgba(255, 255, 255, .08); }
.dk-icon.is-selected { background: rgba(157, 184, 255, .2); }
.dk-icon.is-selected .dk-label { background: #3d6bff; color: #fff; }
.dk-icon.is-dragging { transition: none; z-index: 5; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .45)); }
.dk-icon:focus-visible { outline: 2px solid var(--room-accent); outline-offset: 2px; }
.dk-icon .desk-art { width: 54px; height: 54px; margin: 0; }
.dk-folder { width: 58px; height: 48px; margin-top: 6px; }
.dk-folder svg { width: 22px; height: 22px; }
.dk-label { max-width: 92px; padding: 1px 5px; border-radius: 5px; font-size: 11.5px; font-weight: 550; line-height: 1.25; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dk-widgets { position: absolute; z-index: 2; right: 22px; top: 18px; width: 356px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.dk-w { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 160px; padding: 14px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(24, 27, 33, .62); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); color: #f1f3f7; text-align: left; box-shadow: 0 14px 34px rgba(0, 0, 0, .28); font: inherit; overflow: hidden; transition: transform .2s var(--ease-out); }
a.dk-w:hover, button.dk-w:hover { transform: translateY(-2px); }
.dk-w small { font: 700 9.5px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: #a7adb8; }
.dk-clock { align-items: center; justify-content: center; gap: 8px; }
.dk-face { position: relative; width: 100px; height: 100px; border-radius: 50%; background: #f4f1ea; box-shadow: inset 0 0 0 3px #fff, 0 6px 16px rgba(0, 0, 0, .35); }
.dk-face i { position: absolute; left: 50%; top: 6px; width: 2px; height: 7px; margin-left: -1px; background: #2a2a2a; transform-origin: 50% 44px; transform: rotate(var(--r)); }
.dk-face b { position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%; transform: translateX(-50%) rotate(var(--a, 0deg)); border-radius: 3px; background: #141414; }
.dk-face b[data-dk-h] { width: 4px; height: 26px; } .dk-face b[data-dk-m] { width: 3px; height: 36px; }
.dk-face b[data-dk-s] { width: 1.5px; height: 40px; background: #e0312b; }
.dk-face::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #e0312b; }
.dk-clock div:last-child { display: flex; gap: 8px; align-items: baseline; }
.dk-clock strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.dk-cal header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.dk-cal header b { color: #ff6a5a; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.dk-cal header span { font-size: 11px; color: #a7adb8; }
.dk-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; font-size: 10px; text-align: center; }
.dk-days i { font-style: normal; color: #a7adb8; font-weight: 700; }
.dk-days span { padding: 2px 0; border-radius: 50%; font-variant-numeric: tabular-nums; }
.dk-days .is-today { background: #ff5a4a; color: #fff; font-weight: 800; }
.dk-note { grid-column: span 2; min-height: 120px; background: #ffe58a; color: #2b2410; border-color: transparent; transform: rotate(-.6deg); }
.dk-note small { color: #8a7420; }
.dk-note b { font-size: 15px; } .dk-note p { margin: 0; font-size: 12.5px; line-height: 1.45; color: #4a4020; }
.dk-photo { padding: 0; justify-content: flex-end; }
.dk-photo-img { position: absolute; inset: 0; background: #222 center / cover; }
.dk-photo-img.is-in { animation: dkPhoto 1.2s ease-out both; }
@keyframes dkPhoto { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1); } }
.dk-photo small { position: relative; margin: 10px; padding: 4px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; align-self: flex-start; }
.dk-weather { cursor: pointer; background: linear-gradient(160deg, rgba(76, 132, 255, .55), rgba(24, 27, 33, .7)); }
.dk-weather b { font-size: 46px; font-weight: 300; letter-spacing: -.04em; line-height: 1; margin-top: 6px; }
.dk-weather span { font-size: 12px; color: #dbe5ff; }
.dk-coffee { cursor: pointer; align-items: flex-start; }
.dk-cup { position: relative; width: 46px; height: 54px; margin: 8px 0 4px; border: 3px solid #f1f3f7; border-top: 0; border-radius: 0 0 14px 14px; overflow: hidden; }
.dk-cup::after { content: ""; position: absolute; right: -14px; top: 10px; width: 12px; height: 18px; border: 3px solid #f1f3f7; border-left: 0; border-radius: 0 10px 10px 0; }
.dk-cup i { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(#a0683a, #6b4423); transition: height .8s var(--ease-out); }
.dk-coffee b { font-size: 20px; font-variant-numeric: tabular-nums; }
.dk-coffee em { position: absolute; right: 14px; bottom: 14px; font-style: normal; font-size: 11px; color: #a7adb8; }
.dk-hint { position: absolute; z-index: 2; left: 50%; bottom: 14px; translate: -50% 0; margin: 0; font-size: 11.5px; color: rgba(241, 243, 247, .55); pointer-events: none; }
.space-desk span { display: none; }
.space-desk::before { content: ""; width: 14px; height: 10px; border: 1.6px solid currentColor; border-radius: 2px; box-shadow: 0 3px 0 -1.6px currentColor; margin: 0 2px; }
.space-desk i { display: none; }
@media (max-width: 1099px), (max-height: 639px) {
  body.realm-shell[data-realm="desk"] .realm-stage { position: relative; }
  .room-desk { position: relative !important; inset: auto; display: flex; flex-direction: column; gap: 18px; padding: 8px 0 24px; min-height: calc(100dvh - var(--menu-h) - var(--dock-reserve)) !important; }
  .dk-wall { position: fixed; }
  .dk-icons { position: relative; inset: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 4px; }
  .dk-icon { position: relative; transform: none !important; width: auto; }
  .dk-widgets { position: relative; inset: auto; width: auto; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .dk-note { grid-column: auto; }
  .dk-hint { display: none; }
}

/* ---------------------------------------------------------------------- */
/* Lock screen (js/home/lock-screen.js)                                    */
/* ---------------------------------------------------------------------- */
.lock { --lift: 0; position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: clamp(40px, 9vh, 96px) 20px clamp(22px, 5vh, 48px); color: #fff8ea; overflow: hidden; touch-action: none; user-select: none; cursor: grab; will-change: transform; }
.lock.is-dragging { cursor: grabbing; }
.lock-bg { position: absolute; inset: -40px; z-index: -1; background: linear-gradient(180deg, rgba(4, 18, 11, .35), rgba(4, 12, 8, .7)), url('../assets/home/studio-scene-v131.webp') center / cover; filter: blur(calc(18px - var(--lift) * 14px)) saturate(1.1) brightness(calc(.75 + var(--lift) * .2)); transform: scale(calc(1.06 - var(--lift) * .04)); animation: lockBg 14s ease-in-out infinite alternate; }
@keyframes lockBg { to { background-position: 46% 54%, 46% 54%; } }
.lock::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-conic-gradient(#fff8ea 0 25%, transparent 0 50%) 0 0 / 6px 6px; opacity: .55; }
.lock-top { display: flex; flex-direction: column; align-items: center; text-align: center; animation: lockIn .9s .1s cubic-bezier(.2, .7, .2, 1) both; }
.lock-logo { width: 46px; height: 46px; border-radius: 50%; margin-bottom: 18px; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.lock-date { margin: 0; font-size: clamp(15px, 1.6vw, 20px); font-weight: 600; opacity: .85; text-transform: capitalize; }
.lock-time { margin: 0; font-size: clamp(88px, 14vw, 190px); font-weight: 750; line-height: .95; letter-spacing: -.055em; font-variant-numeric: tabular-nums; text-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
.lock-name { margin: 14px 0 0; display: flex; flex-direction: column; gap: 4px; }
.lock-name b { font-size: 13px; letter-spacing: .3em; }
.lock-name span { font-size: 13px; opacity: .7; }
.lock-notes { list-style: none; margin: 0; padding: 0; width: min(420px, 100%); display: grid; gap: 8px; }
.lock-notes li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 18px; background: rgba(20, 24, 22, .45); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); border: 1px solid rgba(255, 255, 255, .1); animation: lockIn .7s calc(.5s + var(--i) * .12s) cubic-bezier(.2, .7, .2, 1) both; }
.lock-notes .app-icon { width: 38px; height: 38px; }
.lock-notes b { display: block; font-size: 13px; }
.lock-notes span { display: block; font-size: 12.5px; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lock-notes time { align-self: start; font-size: 11px; opacity: .55; }
.lock-go { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 24px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; animation: lockIn .8s 1s both; }
.lock-go b { font-size: 15px; letter-spacing: .02em; }
.lock-go small { font-size: 11.5px; opacity: .6; }
.lock-go:focus-visible { outline: 2px solid #ffcf3e; outline-offset: 4px; border-radius: 12px; }
.lock-chev { width: 22px; height: 22px; border-left: 3px solid currentColor; border-top: 3px solid currentColor; border-radius: 2px; transform: rotate(45deg); animation: lockBob 1.6s ease-in-out infinite; }
@keyframes lockBob { 0%, 100% { translate: 0 6px; opacity: .5; } 50% { translate: 0 -4px; opacity: 1; } }
@keyframes lockIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.lock.is-lifting { box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
@media (max-height: 700px) { .lock-notes li:nth-child(3) { display: none; } .lock-time { font-size: clamp(70px, 12vw, 130px); } }
@media (prefers-reduced-motion: reduce) { .lock-bg, .lock-chev, .lock-top, .lock-notes li, .lock-go { animation: none; } }
.dk-widgets { bottom: 40px; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; padding-bottom: 6px; }
.dk-widgets::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) and (max-height: 820px) {
  .dk-w { min-height: 128px; padding: 12px; border-radius: 18px; }
  .dk-face { width: 78px; height: 78px; } .dk-face i { transform-origin: 50% 33px; }
  .dk-face b[data-dk-h] { height: 20px; } .dk-face b[data-dk-m] { height: 28px; } .dk-face b[data-dk-s] { height: 31px; }
  .dk-note { min-height: 100px; } .dk-weather b { font-size: 36px; } .dk-cup { width: 38px; height: 42px; }
  .dk-days { font-size: 9.5px; }
}
/* ---- 00 Desktop v18: free icons, Quick Look, three-size widgets ---- */
/* Rooms other than 00 Desktop carry no shortcut icons — files live on the Desktop. */
body.realm-shell { --icons-w: 0px !important; }
body.realm-shell .desktop-icons { display: none !important; }
.room-desk { --dk-z: 1; --wc: 2; --wrow: 168px; --wgap: 12px; --ww: calc(var(--wc) * 168px + (var(--wc) - 1) * var(--wgap)); user-select: none; }
@media (min-width: 1360px) { .room-desk { --wc: 3; } }
@media (min-width: 1100px) and (max-height: 820px) { .room-desk { --wrow: 150px; } }
/* icons */
.dk-icons { left: 14px; top: 12px; bottom: 14px; right: calc(var(--ww) + 44px); }
.dk-icon { width: calc(96px * var(--dk-z)); gap: calc(6px * var(--dk-z)); padding: calc(8px * var(--dk-z)) 4px; will-change: transform; }
.dk-icon[hidden] { display: none !important; }
.dk-icon .dk-label { max-width: calc(92px * var(--dk-z)); font-size: calc(11.5px * max(.9, var(--dk-z))); word-break: break-word; }
.dk-folder { width: calc(58px * var(--dk-z)); height: calc(48px * var(--dk-z)); margin-top: calc(6px * var(--dk-z)); }
.dk-folder svg { width: calc(22px * var(--dk-z)); height: calc(22px * var(--dk-z)); }
.dk-doc { position: relative; width: calc(44px * var(--dk-z)); height: calc(54px * var(--dk-z)); margin: 2px 0; border-radius: 3px calc(14px * var(--dk-z)) 3px 3px; background: linear-gradient(#fdfcf8, #ece8de); box-shadow: 0 6px 14px rgba(0, 0, 0, .35); display: grid; place-items: end center; padding-bottom: calc(7px * var(--dk-z)); }
.dk-doc::before { content: ""; position: absolute; right: 0; top: 0; width: calc(14px * var(--dk-z)); height: calc(14px * var(--dk-z)); border-radius: 0 0 0 4px; background: linear-gradient(225deg, transparent 50%, #d7d1c3 50%); }
.dk-doc::after { content: ""; position: absolute; left: 18%; right: 26%; top: 26%; height: 33%; background: repeating-linear-gradient(#c9c3b6 0 2px, transparent 2px 6px); opacity: .7; }
.dk-doc b { position: relative; z-index: 1; padding: 1px 5px; border-radius: 3px; font: 800 calc(9px * var(--dk-z)) var(--font-mono); letter-spacing: .06em; color: #fff; background: #555; }
.dk-doc-pdf b { background: #e0312b; } .dk-doc-ai b { background: #ff9a3d; color: #2b1300; } .dk-doc-txt b { background: #5b6472; }
.dk-doc-ai::after { background: repeating-linear-gradient(#e2a46a 0 2px, transparent 2px 6px); }
.dk-bin-art { position: relative; width: calc(54px * var(--dk-z)) !important; height: calc(54px * var(--dk-z)) !important; margin: 0; transition: transform .25s var(--ease-out); }
.dk-bin-badge { position: absolute; right: -6px; top: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff3b30; color: #fff; font: 800 10px/18px var(--font-sans); text-align: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.dk-bin.is-target .dk-bin-art { transform: scale(1.22) rotate(-6deg); }
.dk-bin.is-target { background: rgba(255, 59, 48, .18); }
.dk-bin.is-gulp .dk-bin-art { animation: dkGulp .5s var(--ease-out); }
@keyframes dkGulp { 30% { transform: scale(1.18, .86); } 60% { transform: scale(.94, 1.08); } }
.dk-icon.is-trashing { opacity: 0; scale: .4; transition: opacity .25s, scale .25s; }
.dk-icon.is-dragging { opacity: .92; }
.room-desk.dk-dragging .dk-icon:not(.is-dragging) { transition: transform .35s var(--ease-out), background .15s; }
.dk-marquee { position: absolute; z-index: 4; border: 1px solid rgba(157, 184, 255, .9); background: rgba(90, 130, 255, .16); border-radius: 3px; pointer-events: none; }
.dk-hint { bottom: 10px; }
/* widgets */
.dk-widgets { width: var(--ww); right: 22px; top: 18px; bottom: 92px; grid-template-columns: repeat(var(--wc), 1fr); grid-auto-rows: var(--wrow); grid-auto-flow: row dense; gap: var(--wgap); overflow-y: auto; overflow-x: hidden; padding: 2px 2px 40px; margin: -2px; -webkit-mask: linear-gradient(#000 calc(100% - 40px), transparent); mask: linear-gradient(#000 calc(100% - 40px), transparent); }
.dk-w { min-height: 0 !important; height: 100%; padding: 14px; transform: none; touch-action: none; cursor: grab; container-type: size; }
.dk-w[data-size="2"] { grid-column: span 2; }
.dk-w[data-size="3"] { grid-column: span 2; grid-row: span 2; }
.dk-w.is-moving { z-index: 20; cursor: grabbing; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); transition: none; }
.room-desk.dk-wdrag .dk-w:not(.is-moving) { opacity: .88; }
.dk-w.is-resizing { outline: 2px dashed rgba(255, 255, 255, .45); outline-offset: 3px; }
.dk-grip { position: absolute; top: 7px; left: 50%; width: 26px; height: 4px; margin-left: -13px; border-radius: 3px; background: rgba(255, 255, 255, .35); opacity: 0; transition: opacity .2s; pointer-events: none; }
.dk-wresize { position: absolute; right: 6px; bottom: 6px; z-index: 3; display: flex; gap: 2px; align-items: flex-end; padding: 5px; border: 0; border-radius: 8px; background: rgba(0, 0, 0, .45); cursor: nwse-resize; opacity: 0; transition: opacity .2s; }
.dk-wresize i { width: 4px; height: 4px; border-radius: 1px; background: rgba(255, 255, 255, .5); }
.dk-w[data-size="1"] .dk-wresize i:nth-child(1), .dk-w[data-size="2"] .dk-wresize i:nth-child(-n+2), .dk-w[data-size="3"] .dk-wresize i { background: #ffcf3e; }
.dk-wresize i:nth-child(2) { height: 7px; } .dk-wresize i:nth-child(3) { height: 10px; }
.dk-w:hover .dk-grip, .dk-w:hover .dk-wresize, .dk-w:focus-within .dk-wresize, .dk-w.is-resizing .dk-wresize { opacity: 1; }
.dk-wresize:focus-visible { opacity: 1; outline: 2px solid #ffcf3e; }
@media (hover: none) { .dk-wresize { opacity: .8; } }
.dk-w small { font: 700 9.5px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: #a7adb8; }
.dk-w > b { font-size: 16px; line-height: 1.25; letter-spacing: -.01em; }
.dk-w p { margin: 0; font-size: 12.5px; line-height: 1.45; color: #cfd4dc; }
.dk-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.dk-btn { height: 30px; padding: 0 12px; border-radius: 999px; border: 0; background: #f1f3f7; color: #15171b; font: 650 12px var(--font-sans); cursor: pointer; align-self: flex-start; transition: transform .15s; white-space: nowrap; }
.dk-btn i { font-style: normal; }
.dk-btn:hover { transform: translateY(-1px); } .dk-btn:focus-visible { outline: 2px solid #ffcf3e; outline-offset: 2px; }
.dk-btn.ghost { background: rgba(255, 255, 255, .1); color: #f1f3f7; }
.dk-btn.dark { background: #2b2410; color: #ffe58a; }
/* clock */
.dk-clock { flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.dk-clock .dk-face { width: min(100px, 62cqh); height: min(100px, 62cqh); flex: none; }
.dk-clock-txt { display: flex; gap: 8px; align-items: baseline; }
.dk-clock-txt strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.dk-w[data-size="2"].dk-clock { flex-direction: row; gap: 22px; }
.dk-w[data-size="2"].dk-clock .dk-clock-txt { flex-direction: column; gap: 2px; }
.dk-w[data-size="2"].dk-clock strong { font-size: 44px; font-weight: 300; letter-spacing: -.03em; }
.dk-w[data-size="3"].dk-clock strong { font-size: 40px; font-weight: 300; }
.dk-clock .dk-face { --fs: 1; }
.dk-w[data-size="3"].dk-clock .dk-face { width: 210px; height: 210px; }
.dk-w[data-size="3"].dk-clock .dk-face i { top: 10px; height: 12px; width: 3px; transform-origin: 50% 95px; }
.dk-w[data-size="3"].dk-clock .dk-face b[data-dk-h] { width: 7px; height: 56px; } .dk-w[data-size="3"].dk-clock .dk-face b[data-dk-m] { width: 5px; height: 80px; } .dk-w[data-size="3"].dk-clock .dk-face b[data-dk-s] { width: 2px; height: 88px; }
@media (min-width: 1100px) and (max-height: 820px) { .dk-clock .dk-face { width: 78px; height: 78px; } .dk-clock .dk-face i { transform-origin: 50% 33px; } .dk-w[data-size="3"].dk-clock .dk-face { width: 180px; height: 180px; } .dk-w[data-size="3"].dk-clock .dk-face i { transform-origin: 50% 80px; } }
/* calendar */
.dk-cal [data-dk-cal] { display: flex; flex-direction: column; height: 100%; }
.dk-w[data-size="2"] .dk-days, .dk-w[data-size="3"] .dk-days { font-size: 12px; gap: 4px; }
.dk-w[data-size="3"] .dk-days { font-size: 15px; gap: 10px 6px; margin-top: 10px; }
.dk-w[data-size="3"] .dk-cal header b, .dk-cal[data-size="3"] header b { font-size: 20px; }
.dk-cal[data-size="3"] header b { font-size: 22px; } .dk-cal[data-size="3"] .dk-days { font-size: 15px; gap: 10px 6px; margin-top: 12px; } .dk-cal[data-size="2"] .dk-days { font-size: 11.5px; gap: 3px 10px; }
/* meters / availability / now */
.dk-meter { position: relative; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; margin: 8px 0 6px; flex: none; }
.dk-meter i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); background: repeating-conic-gradient(#ffcf3e 0 25%, #f1a92a 0 50%) 0 0 / 10px 10px; border-radius: inherit; animation: dkFill 1.4s var(--ease-out) both; }
.dk-meter > span { position: relative; display: block; padding: 0 10px; font: 700 10.5px/22px var(--font-mono); color: #15171b; text-shadow: 0 0 6px rgba(255, 255, 255, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-meter-sm { height: 8px; } .dk-meter-sm > span { display: none; } .dk-meter-sm i { background: #8bd88a; }
@keyframes dkFill { from { width: 0; } }
.dk-avail { background: linear-gradient(150deg, rgba(255, 207, 62, .2), rgba(24, 27, 33, .7) 60%); }
.dk-avail > b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #5ee07a; animation: dkPulse 2s infinite; vertical-align: 2px; }
@keyframes dkPulse { 0% { box-shadow: 0 0 0 0 rgba(94, 224, 122, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(94, 224, 122, 0); } }
.dk-avail[data-size="1"] > b { font-size: 14px; }
.dk-avail[data-size="1"] .dk-meter > span span:not(:first-child) { display: none; }
.dk-avail[data-size="3"] > b { font-size: 26px; margin-top: 8px; } .dk-avail[data-size="3"] .dk-meter { height: 34px; margin: 18px 0; } .dk-avail[data-size="3"] .dk-meter > span { line-height: 34px; font-size: 12px; }
.dk-stages { list-style: none; margin: 10px 0 0; padding: 0; display: none; gap: 8px; }
.dk-stages li { display: grid; grid-template-columns: 12px 60px 1fr; align-items: center; gap: 8px; font-size: 12.5px; color: #a7adb8; }
.dk-stages li i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; }
.dk-stages li.on { color: #f1f3f7; } .dk-stages li.on i { background: #ffcf3e; border-color: #ffcf3e; }
.dk-stages li span { font: 700 9.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.dk-now-next { margin-top: auto !important; font-size: 11.5px !important; color: #a7adb8 !important; }
.dk-now[data-size="2"] .dk-stages, .dk-now[data-size="3"] .dk-stages { display: grid; } .dk-now[data-size="2"] .dk-now-next, .dk-now[data-size="3"] .dk-now-next { display: none; }
.dk-now[data-size="2"] > b { display: none; }
.dk-now[data-size="3"] > b { font-size: 26px; } .dk-now[data-size="3"] .dk-stages { gap: 16px; margin-top: 22px; } .dk-now[data-size="3"] .dk-stages li { font-size: 15px; }
/* photo */
.dk-photo { padding: 0; justify-content: flex-end; cursor: pointer; }
/* brief */
.dk-brief p { font-size: 15px; line-height: 1.4; color: #f1f3f7; font-weight: 550; }
.dk-brief[data-size="1"] p { font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.dk-brief[data-size="1"] .dk-btn span { display: none; }
.dk-brief[data-size="3"] p { font-size: 26px; line-height: 1.25; letter-spacing: -.02em; margin-top: 10px; }
/* note */
.dk-note { background: #ffe58a; color: #2b2410; border-color: transparent; rotate: -.6deg; }
.dk-note small { color: #8a7420; }
.dk-note form { display: flex; flex-direction: column; gap: 6px; height: 100%; }
.dk-note textarea { flex: 1; min-height: 0; width: 100%; resize: none; border: 0; background: repeating-linear-gradient(transparent 0 21px, rgba(43, 36, 16, .16) 21px 22px); color: #2b2410; font: 500 14px/22px var(--font-sans); padding: 0; outline: none; cursor: text; user-select: text; }
.dk-note textarea::placeholder { color: rgba(43, 36, 16, .45); }
.dk-note .dk-wresize { background: rgba(43, 36, 16, .3); }
/* screen time */
.dk-screen ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.dk-screen li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 11px; }
.dk-screen li b { font: 700 10.5px var(--font-mono); color: #cfd4dc; }
.dk-screen li::after { content: ""; grid-column: 1 / -1; height: 4px; border-radius: 4px; width: calc(var(--v) * 1%); background: var(--c); }
.dk-screen[data-size="1"] li:nth-child(4) { display: none; }
.dk-screen[data-size="3"] ul { gap: 16px; margin-top: 16px; } .dk-screen[data-size="3"] li { font-size: 14px; } .dk-screen[data-size="3"] li::after { height: 8px; }
.dk-weather { all: unset; margin-top: auto; padding-top: 6px; font-size: 11px; color: #a7adb8; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; }
.dk-weather b { font-size: 18px; font-weight: 400; color: #f1f3f7; }
.dk-weather:focus-visible { outline: 2px solid #ffcf3e; outline-offset: 2px; border-radius: 4px; }
/* radio */
.dk-radio { align-items: flex-start; }
.dk-record { position: relative; flex: none; width: 58px; height: 58px; margin: 8px 0 4px; border-radius: 50%; background: repeating-radial-gradient(#141414 0 2px, #222 2px 3px); box-shadow: 0 6px 14px rgba(0, 0, 0, .4); }
.dk-record i { position: absolute; inset: 35%; border-radius: 50%; background: #ff8a7a; }
.dk-radio.is-playing .dk-record { animation: dkSpin 2.4s linear infinite; }
@keyframes dkSpin { to { transform: rotate(360deg); } }
.dk-radio-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; width: 100%; margin-top: auto; }
.dk-radio-txt b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-radio[data-size="2"] { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 18px; }
.dk-radio[data-size="2"] small { grid-column: 1 / -1; } .dk-radio[data-size="2"] .dk-record { width: 96px; height: 96px; } .dk-radio[data-size="2"] .dk-radio-txt b { font-size: 16px; white-space: normal; }
.dk-radio[data-size="3"] { align-items: center; text-align: center; } .dk-radio[data-size="3"] .dk-record { width: 200px; height: 200px; margin: 14px auto; } .dk-radio[data-size="3"] .dk-radio-txt { align-items: center; } .dk-radio[data-size="3"] .dk-radio-txt b { font-size: 18px; }
/* radio deck moves to the right on the Desktop so Production Waste owns the bottom-left */
body[data-realm="desk"] .radio-deck { left: auto; right: 22px; }
/* Quick Look */
.os-dialog.dk-ql-dialog { width: min(760px, calc(100vw - 32px)); max-width: none; }
.dk-ql-meta { margin: 0 0 12px; font: 600 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.dk-ql-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dk-ql-grid figure { margin: 0; animation: dkQl .4s var(--ease-out) both; }
.dk-ql-grid figure:nth-child(n) { animation-delay: calc(var(--i, 0) * 40ms); }
.dk-ql-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--line-2); }
.dk-ql-grid figcaption { display: flex; justify-content: space-between; gap: 6px; padding-top: 6px; font-size: 12px; } .dk-ql-grid small { color: var(--text-muted); }
@keyframes dkQl { from { opacity: 0; transform: translateY(8px); } }
.dk-ql-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dk-ql-links li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--line-2); font-size: 13px; }
.dk-ql-links li span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--text); color: var(--bg, #fff); font: 800 12px var(--font-sans); }
.dk-ql-links small { color: var(--text-muted); }
.dk-ql-pdf { display: flex; gap: 14px; justify-content: center; padding: 18px; border-radius: 12px; background: #3a3d44; margin-bottom: 12px; }
.dk-ql-page { position: relative; width: min(240px, 40%); aspect-ratio: 1 / 1.414; background: #f6f2ea; color: #141414; padding: 18px; box-shadow: 0 14px 30px rgba(0, 0, 0, .4); display: flex; flex-direction: column; }
.dk-ql-page img { width: 40px; }
.dk-ql-page h3 { margin: auto 0 6px; font-size: clamp(20px, 3vw, 30px); line-height: .95; letter-spacing: -.04em; }
.dk-ql-page p { margin: 0; font-size: 10px; color: #555; } .dk-ql-page > span { position: absolute; right: 16px; top: 16px; font: 700 10px var(--font-mono); }
.dk-ql-page2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px; }
.dk-ql-page2 img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.dk-ql-ai { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dk-ql-board { display: grid; place-items: center; min-height: 200px; border-radius: 10px; background: repeating-conic-gradient(#e6e6e6 0 25%, #fff 0 50%) 0 0 / 16px 16px; color: #ff9a3d; font: 900 22px var(--font-sans); letter-spacing: -.02em; }
.dk-ql-board b { padding: 8px 12px; background: #2b1300; border-radius: 6px; rotate: -4deg; }
.dk-ql-ai dl { margin: 0; } .dk-ql-ai dl div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.dk-ql-ai dt { color: var(--text-muted); font: 600 10.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; } .dk-ql-ai dd { margin: 0; text-align: right; }
.dk-readme { white-space: pre-wrap; font: 13px/1.6 var(--font-mono); margin: 0; }
@media (max-width: 640px) { .dk-ql-grid { grid-template-columns: repeat(2, 1fr); } .dk-ql-ai { grid-template-columns: 1fr; } }
/* small screens: static icon grid, widgets flow below */
@media (max-width: 1099px), (max-height: 639px) {
  .room-desk { --wc: 2; }
  .dk-icons { right: auto; bottom: auto; }
  .dk-icon { transform: none !important; }
  .dk-widgets { width: auto; bottom: auto; right: auto; overflow: visible; -webkit-mask: none; mask: none; padding: 0; margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk-w { cursor: default; touch-action: auto; }
  body[data-realm="desk"] .radio-deck { left: auto; right: 12px; }
}
@media (min-width: 700px) and (max-width: 1099px) { .dk-widgets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .dk-meter i, .dk-avail > b::before, .dk-radio.is-playing .dk-record, .dk-bin.is-gulp .dk-bin-art { animation: none; } }
/* ---- 00 Desktop wallpapers (settings.deskWall) ---- */
@property --dw-a { syntax: '<color>'; inherits: true; initial-value: #0b1430; }
@property --dw-b { syntax: '<color>'; inherits: true; initial-value: #070b1c; }
.dk-wall { background: #121317; filter: none; overflow: hidden; }
.dk-wall::after { display: none; }
.dk-wall::before { display: none; }
.dw { position: absolute; inset: 0; transition: opacity .7s; }
.dw.is-out { opacity: 0; }
.dw > i { position: absolute; inset: 0; pointer-events: none; }
.dw-vig { background: radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(0, 0, 0, .55)); }
/* D1 — cutting mat */
.dw-cut { background: radial-gradient(ellipse at 40% 30%, #22594a, #163d31 70%); }
.dw-cut .dw-grid { background:
  linear-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px) 0 0 / 90px 90px, linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px) 0 0 / 90px 90px,
  linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 18px 18px, linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 18px 18px; }
.dw-cut svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.dw-angles path { fill: none; stroke: rgba(255, 236, 160, .14); stroke-width: 1; stroke-dasharray: 6 6; }
.dw-reg { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.2; }
.dw-ruler { position: absolute; font: 600 9px var(--font-mono); color: rgba(255, 255, 255, .5); pointer-events: none; }
.dw-rx { left: 0; right: 0; top: 4px; height: 14px; } .dw-rx span { position: absolute; translate: -50% 0; }
.dw-ry { top: 0; bottom: 0; left: 4px; width: 20px; } .dw-ry span { position: absolute; translate: 0 -50%; }
.dw-mat { position: absolute; right: 40%; bottom: 14px; margin: 0; font: 700 9px var(--font-mono); letter-spacing: .3em; color: rgba(255, 255, 255, .28); pointer-events: none; }
/* D2 — studio daylight */
.dw-daylight { --dw-light: .5; --dw-night: 0; --dw-warm: 0; transition: --dw-a 60s linear, --dw-b 60s linear, opacity .7s; }
.dw-daylight .dw-sky { background: linear-gradient(180deg, var(--dw-a), var(--dw-b)); transition: --dw-a 60s linear, --dw-b 60s linear; }
.dw-daylight .dw-sun { inset: auto; left: var(--dw-sx); top: var(--dw-sy); width: 120px; height: 120px; margin: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 246, 225, .95) 0 22%, rgba(255, 214, 160, .35) 40%, transparent 70%); opacity: var(--dw-light); filter: blur(2px); transition: left 60s linear, top 60s linear, opacity 60s; }
.dw-daylight .dw-window { background: repeating-linear-gradient(115deg, transparent 0 16%, rgba(255, 244, 220, .16) 16% 24%, transparent 24% 30%); -webkit-mask: linear-gradient(115deg, #000 10%, transparent 75%); mask: linear-gradient(115deg, #000 10%, transparent 75%); opacity: calc(var(--dw-light) * .9); mix-blend-mode: soft-light; }
.dw-daylight .dw-window::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 100%, rgba(255, 140, 60, .45), transparent 60%); opacity: var(--dw-warm); }
.dw-daylight .dw-stars { background-image: radial-gradient(1px 1px at 12% 20%, #fff, transparent), radial-gradient(1px 1px at 32% 8%, #fff, transparent), radial-gradient(1.5px 1.5px at 58% 26%, #fff, transparent), radial-gradient(1px 1px at 74% 12%, #fff, transparent), radial-gradient(1px 1px at 88% 34%, #fff, transparent), radial-gradient(1px 1px at 44% 40%, #fff, transparent), radial-gradient(1.5px 1.5px at 22% 48%, #fff, transparent), radial-gradient(1px 1px at 66% 54%, #fff, transparent); opacity: calc(var(--dw-night) * .8); }
.dw-daylight .dw-vig { background: linear-gradient(90deg, rgba(0, 0, 0, .32), transparent 40%), radial-gradient(ellipse at 50% 45%, transparent 50%, rgba(0, 0, 0, .4)); }
@media (max-width: 1099px), (max-height: 639px) { .dk-wall { position: fixed; } .dw-credit { right: 12px; top: auto; bottom: calc(var(--dock-reserve, 90px) + 70px); } }
.dk-doc-vcf b { background: #141414; }
/* radio panel on the Desktop opens leftwards so it stays on screen */
body[data-realm="desk"] .rd-panel { left: auto; right: 0; transform-origin: 90% 100%; max-width: calc(100vw - 24px); }
/* widget editing: floating widget, placeholder, resize outline */
.dk-w.is-floating { position: fixed !important; z-index: 9500; margin: 0; pointer-events: none; cursor: grabbing; box-shadow: 0 34px 70px rgba(0, 0, 0, .55); transition: none !important; will-change: transform; }
.dk-w.is-floating .dk-wresize, .dk-w.is-floating .dk-grip { opacity: 0; }
.dk-w-ph { border-radius: 22px; border: 2px dashed rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .04); }
.dk-w-ph[data-size="2"] { grid-column: span 2; } .dk-w-ph[data-size="3"] { grid-column: span 2; grid-row: span 2; }
.dk-w-outline { position: absolute; z-index: 30; border-radius: 22px; border: 2px dashed #ffcf3e; background: rgba(255, 207, 62, .08); pointer-events: none; transition: width .18s var(--ease-out), height .18s var(--ease-out); }
.dk-w-outline::after { content: attr(data-tier); position: absolute; right: 10px; bottom: 8px; width: 22px; height: 22px; border-radius: 50%; background: #ffcf3e; color: #15171b; font: 800 12px/22px var(--font-sans); text-align: center; }
.room-desk.dk-wdrag .dk-w { opacity: 1; }
.dk-w.is-resizing { outline: none; }
.dk-bin-art { isolation: isolate; }
.dock-trash .dock-art { isolation: isolate; }
/* size 2 (wide) fits in one row */
.dk-cal[data-size="2"] [data-dk-cal] { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: start; }
.dk-cal[data-size="2"] header { flex-direction: column; align-items: flex-start; gap: 2px; }
.dk-cal[data-size="2"] header b { font-size: 18px; }
.dk-cal[data-size="2"] .dk-days { font-size: 10.5px; gap: 1px 6px; margin: 0; }
.dk-cal[data-size="2"] .dk-days span { padding: 1px 0; }
.dk-screen[data-size="2"] ul { grid-template-columns: 1fr 1fr; column-gap: 18px; row-gap: 10px; margin-top: 10px; }
.dk-radio[data-size="2"] { grid-template-rows: auto 1fr; align-items: center; }
.dk-radio[data-size="2"] .dk-record { width: 84px; height: 84px; margin: 4px 0 0; }
.dk-radio[data-size="2"] .dk-radio-txt { margin-top: 0; }
.dk-weather { padding-right: 34px; }
body.reduce-motion .dw *, body.static-wallpaper .dw * { animation: none !important; }

/* Studio wall: the Studio room, out of focus */
.dw-studio { --px: 0; --py: 0; background: #14110d; overflow: hidden; }
.dw-studio .dw-st-img { inset: -60px !important; background: url('../assets/home/studio-scene-v131.webp') center 40% / cover no-repeat; filter: blur(16px) saturate(.9) brightness(.62); transform: scale(1.05); translate: calc(var(--px) * -24px) calc(var(--py) * -16px); transition: translate 1.6s cubic-bezier(.2, .8, .2, 1); }
.dw-studio .dw-st-tone { background: linear-gradient(180deg, rgba(20, 16, 12, .2), rgba(10, 8, 6, .45)); }
.dw-studio .dw-vig { background: linear-gradient(90deg, rgba(0, 0, 0, .4), transparent 30%), radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(0, 0, 0, .55)); }
/* Graphite */
.dw-graphite { background: linear-gradient(160deg, #2b2e35 0%, #1b1d22 45%, #121317 100%); }
.dw-graphite .dw-gr-glow { background: radial-gradient(ellipse 60% 50% at 70% 20%, rgba(255, 255, 255, .07), transparent 70%), radial-gradient(ellipse 50% 40% at 20% 90%, rgba(157, 184, 255, .06), transparent 70%); }
.dw-graphite .dw-grain { inset: 0 !important; mix-blend-mode: overlay; opacity: .35; animation: none; }
.dw-graphite .dw-vig { background: radial-gradient(ellipse at 50% 45%, transparent 50%, rgba(0, 0, 0, .4)); }
/* ---- small screens: centred icon grid, room to scroll past the dock ---- */
@media (max-width: 1099px), (max-height: 639px) {
  .dk-icons { left: auto !important; top: auto !important; right: auto !important; width: 100%; margin: 0 auto; padding: 0 6px; box-sizing: border-box; justify-items: center; }
  .dk-icon { margin: 0 auto; }
  .room-desk { padding-bottom: calc(var(--dock-reserve) + 40px) !important; }
  body.realm-shell .realm-stage { padding-bottom: calc(var(--dock-reserve) + 36px) !important; }
}
@media (max-width: 600px) { .dk-icons { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
/* ==== Cinematic package (cine.js) — computers only ==== */
:root { --sh-x: 4px; --sh-y: 10px; --sh-b: 14px; --sh-a: .32; --sh-warm: 0; --sh-lamp: 0; }
/* one light, one shadow: everything on the desk casts from the same window */
body.cine .room-desk .dk-icon:not(.is-dragging) > :first-child { filter: drop-shadow(var(--sh-x) var(--sh-y) var(--sh-b) rgba(calc(20 + 40 * var(--sh-warm)), calc(14 + 6 * var(--sh-warm)), 10, var(--sh-a))); transition: filter 2s linear; }
body.cine .room-desk .dk-icon.is-dragging > :first-child { filter: drop-shadow(calc(var(--sh-x) * 2.4) calc(var(--sh-y) * 2.4) calc(var(--sh-b) * 1.8) rgba(0, 0, 0, calc(var(--sh-a) * .9))); }
body.cine .room-desk .dk-w:not(.is-floating) { box-shadow: calc(var(--sh-x) * 1.4) calc(var(--sh-y) * 1.4) calc(var(--sh-b) * 2.2) rgba(calc(10 + 30 * var(--sh-warm)), 8, 6, calc(var(--sh-a) * 1.1)), inset calc(var(--sh-x) * -.15) calc(var(--sh-y) * -.15) 0 rgba(255, 240, 220, calc(.05 + .05 * var(--sh-warm))); transition: box-shadow 2s linear, transform .2s; }
body.cine .desktop > .window.floating-app { box-shadow: calc(var(--sh-x) * 2.6) calc(var(--sh-y) * 2.6) calc(var(--sh-b) * 4) rgba(0, 0, 0, calc(var(--sh-a) * 1.5)), 0 0 0 1px rgba(255, 255, 255, .06); }
body.cine .dock::before { box-shadow: calc(var(--sh-x) * 1.2) calc(var(--sh-y) * 1.2) calc(var(--sh-b) * 2.4) rgba(0, 0, 0, calc(var(--sh-a) * 1.2)), inset 0 1px 0 rgba(255, 255, 255, .08); transition: box-shadow 2s linear; }
/* rack focus: an open window pulls focus, the desk goes soft behind it */
body.cine .realm-stage, body.cine > .wallpaper { transition: filter .7s cubic-bezier(.3, .7, .2, 1); }
body.cine.cine-focus .realm-stage, body.cine.cine-focus > .wallpaper { filter: blur(5px) brightness(.68) saturate(.9); }
body.cine.cine-focus .radio-deck:not(.is-open) { opacity: .5; }
/* fold: a three-panel leaflet */
.cine-fold { position: fixed; z-index: 9400; pointer-events: none; perspective: 2200px; transform-origin: 50% 0; }
.cf-p { position: relative; transform-style: preserve-3d; backface-visibility: visible; background: linear-gradient(180deg, rgba(34, 37, 44, .98), rgba(24, 26, 32, .98)); border: 1px solid rgba(255, 255, 255, .1); border-radius: 0; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.cf-p.p1 { border-radius: 18px 18px 0 0; border-bottom: 0; }
.cf-p.p3 { border-radius: 0 0 18px 18px; border-top: 0; }
.cf-p.p2 { border-top: 0; border-bottom: 0; }
.cf-bar { position: absolute; left: 0; right: 0; top: 0; height: 52px; border-bottom: 1px solid rgba(255, 255, 255, .06); background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .12) 0 4px, transparent 4px 8px) 0 100% / 100% 4px no-repeat; }
.cf-bar::before { content: ""; position: absolute; left: 18px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: 22px 0 0 #febc2e, 44px 0 0 #28c840; opacity: .8; }
.cf-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .1)); pointer-events: none; }
.cf-h { position: absolute; left: -1px; right: -1px; top: 100%; transform-origin: 50% 0; transform-style: preserve-3d; }
/* paper settle used by desk physics */
.dk-icon.is-gliding { transition: none !important; }
.dw-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
/* the leaflet carries a ghost of the layout so it reads as the window itself */
.cf-sk { position: absolute; left: 6%; right: 6%; top: 18%; bottom: 14%; background:
  linear-gradient(rgba(255, 255, 255, .07), rgba(255, 255, 255, .07)) 0 0 / 38% 100% no-repeat,
  linear-gradient(rgba(255, 255, 255, .1), rgba(255, 255, 255, .1)) 44% 8% / 40% 14% no-repeat,
  linear-gradient(rgba(255, 255, 255, .05), rgba(255, 255, 255, .05)) 44% 40% / 56% 8% no-repeat,
  linear-gradient(rgba(255, 255, 255, .05), rgba(255, 255, 255, .05)) 44% 62% / 50% 8% no-repeat; border-radius: 6px; }
.cf-sk.s1 { top: 70px; background:
  linear-gradient(rgba(255, 255, 255, .08), rgba(255, 255, 255, .08)) 0 0 / 38% 100% no-repeat,
  linear-gradient(rgba(255, 255, 255, .14), rgba(255, 255, 255, .14)) 44% 10% / 30% 26% no-repeat,
  linear-gradient(rgba(255, 255, 255, .06), rgba(255, 255, 255, .06)) 44% 70% / 52% 12% no-repeat; }
.cf-sk.s3 { background:
  linear-gradient(rgba(255, 255, 255, .05), rgba(255, 255, 255, .05)) 0 0 / 48% 100% no-repeat,
  linear-gradient(rgba(255, 255, 255, .05), rgba(255, 255, 255, .05)) 100% 0 / 48% 100% no-repeat; }
/* ==== Cinematic packages 2 + 3 (cine2.js) ==== */
/* weather on the studio window */
.dw-wx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.dw > i.dw-clouds { opacity: 0; transition: opacity 3s; background: radial-gradient(ellipse 40% 22% at 20% 18%, rgba(220, 225, 232, .5), transparent 70%), radial-gradient(ellipse 50% 26% at 70% 12%, rgba(205, 212, 222, .45), transparent 70%), radial-gradient(ellipse 36% 18% at 48% 30%, rgba(230, 232, 238, .35), transparent 70%); background-size: 200% 100%; animation: c2Clouds 120s linear infinite; mix-blend-mode: soft-light; }
@keyframes c2Clouds { to { background-position: -200% 0; } }
.dw[data-wx="cloud"] .dw-clouds, .dw[data-wx="rain"] .dw-clouds, .dw[data-wx="storm"] .dw-clouds, .dw[data-wx="snow"] .dw-clouds, .dw[data-wx="fog"] .dw-clouds { opacity: 1; }
.dw[data-wx="fog"] .dw-clouds { mix-blend-mode: screen; opacity: .5; filter: blur(20px); }
.dw[data-wx="rain"] .dw-sky, .dw[data-wx="storm"] .dw-sky { filter: saturate(.6) brightness(.72); }
.dw[data-wx="cloud"] .dw-sky, .dw[data-wx="snow"] .dw-sky { filter: saturate(.75) brightness(.88); }
.dw[data-wx="fog"] .dw-sky { filter: saturate(.5) brightness(.95) contrast(.8); }
.dw[data-wx]:not([data-wx="clear"]) .dw-sun { opacity: calc(var(--dw-light) * .3); }
.dw[data-wx]:not([data-wx="clear"]) .dw-window { opacity: calc(var(--dw-light) * .35); }
.dw > i.dw-flash { background: rgba(220, 230, 255, .9); opacity: 0; mix-blend-mode: screen; }
/* the cut: letterbox and a light leak while rooms change */
.c2-cut { position: fixed; inset: 0; z-index: 9300; pointer-events: none; }
.c2-cut i { position: absolute; left: 0; right: 0; background: #000; transition: transform .38s cubic-bezier(.65, 0, .25, 1); }
.c2-cut .t { top: 0; height: 10vh; transform: translateY(-101%); }
.c2-cut .b { bottom: 0; height: 10vh; transform: translateY(101%); }
.c2-cut.is-on .t, .c2-cut.is-on .b { transform: none; }
.c2-cut .leak { top: 0; bottom: 0; left: 20%; right: 20%; background: linear-gradient(90deg, transparent, rgba(255, 150, 70, .55) 35%, rgba(255, 230, 190, .7) 50%, rgba(255, 90, 60, .45) 65%, transparent); mix-blend-mode: screen; filter: blur(30px); opacity: 0; transition: none; }
body:not(.cine) .c2-cut { display: none; }
/* sheen: the pointer as a second light */
body.cine .room-desk .dk-w::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; background: radial-gradient(circle 180px at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, calc(.14 * var(--gi, 0))), transparent 70%); mix-blend-mode: screen; }
body.cine .dock .dock-art::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: 10px; background: linear-gradient(105deg, transparent calc(var(--gx, 50%) - 22%), rgba(255, 255, 255, calc(.45 * var(--gi, 0))) var(--gx, 50%), transparent calc(var(--gx, 50%) + 22%)); mix-blend-mode: soft-light; }
/* life: the plant's shadow on the wall, the desk lamp at night */
.dw > i.dw-plant { right: auto; bottom: auto; left: 22%; top: 2%; width: 620px; height: 520px; opacity: calc(var(--dw-light) * .13); filter: blur(5px); transform: skewX(-14deg); }
.dw-plant svg { width: 100%; height: 100%; overflow: visible; }
.dw-plant .sway { transform-origin: 0 0; transform-box: view-box; animation: c2Sway 7s ease-in-out infinite alternate; }
@keyframes c2Sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.8deg) translateY(4px); } }
.dw > i.dw-lamp { left: auto; bottom: auto; right: 8%; top: -18%; width: 70vmin; height: 70vmin; border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 120, .38), rgba(255, 170, 90, .12) 40%, transparent 70%); opacity: var(--dw-night); mix-blend-mode: screen; transition: opacity 3s; }
/* cursor: a registration mark on the bare desk */
body.cine .room-desk, body.cine .room-desk .dk-icons { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.2'%3E%3Ccircle cx='14' cy='14' r='6'/%3E%3Cpath d='M14 1v26M1 14h26'/%3E%3C/g%3E%3Cg fill='none' stroke='%23000' stroke-opacity='.45' stroke-width='.6'%3E%3Ccircle cx='14' cy='14' r='7.2'/%3E%3C/g%3E%3C/svg%3E") 14 14, crosshair; }
body.cine .room-desk .dk-icon, body.cine .room-desk .dk-w { cursor: default; }
body.cine .room-desk .dk-w { cursor: grab; }
body.cine .room-desk .dk-icon.is-dragging, body.cine .room-desk.dk-dragging { cursor: grabbing; }
body.cine .room-desk .dk-photo { cursor: zoom-in; }
@property --iris { syntax: '<length-percentage>'; inherits: false; initial-value: 0%; }
.cine-veil { position: fixed; inset: 0; z-index: 9600; pointer-events: none; background: radial-gradient(circle at 50% 46%, transparent var(--iris), #000 calc(var(--iris) + 22%)); }

/* ===== cine3: chapter card, status, notes, days, tint, eyedropper ===== */
.c3-chapter { position: fixed; left: 0; right: 0; bottom: 0; height: 10vh; z-index: 9310; pointer-events: none; display: flex; align-items: center; justify-content: center; gap: 16px; color: #fff; opacity: 0;
  font: 600 12px/1 var(--mono, ui-monospace, monospace); letter-spacing: .24em; text-transform: uppercase; }
.c3-chapter .no { color: var(--c); }
.c3-chapter .nm { font: 700 clamp(22px, 2.3vw, 34px)/1 var(--display, inherit); letter-spacing: -.01em; text-transform: none; }
.c3-chapter i { width: 64px; height: 2px; background: var(--c); order: -1; opacity: .8; }
body:not(.cine) .c3-chapter { display: none; }

.c3-status { display: inline-flex; align-items: center; gap: 7px; max-width: 280px; }
.c3-status span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c3-status i { width: 7px; height: 7px; border-radius: 50%; background: #8a8a8a; flex: none; }
.c3-status[data-state=studio] i { background: #34c759; box-shadow: 0 0 0 3px rgba(52,199,89,.18); }
.c3-status[data-state=lunch] i { background: #ffb020; }
.c3-status[data-state=evening] i { background: #ff7a45; }
.c3-status[data-state=sleep] i, .c3-status[data-state=weekend] i { background: #7d8cff; }
.c3-status[data-state=air] i { background: #ff3b30; animation: c3air 1.2s ease-in-out infinite; }
.c3-status[data-state=air] span { font-weight: 700; letter-spacing: .02em; }
@keyframes c3air { 50% { opacity: .25; } }
@media (max-width: 1099px), (pointer: coarse) { .c3-status { display: none !important; } }

.c3-notes { position: fixed; right: 18px; top: calc(var(--menu-h, 30px) + 14px); z-index: 9000; display: grid; gap: 10px; width: 340px; pointer-events: none; }
.c3-note { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 34px 12px 12px; border-radius: 14px; color: #111;
  background: color-mix(in srgb, #fff 84%, transparent); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 18px 50px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.06); font-size: 13px; line-height: 1.35; }
.c3-body { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.c3-body img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex: none; }
.c3-body span { display: grid; gap: 2px; min-width: 0; }
.c3-body small { opacity: .6; font-size: 11px; }
.c3-act { flex: none; border: 0; border-radius: 999px; padding: 7px 12px; background: #111; color: #fff; font: 600 12px/1 inherit; cursor: pointer; }
.c3-x { position: absolute; right: 8px; top: 8px; border: 0; background: none; font-size: 16px; line-height: 1; opacity: .45; cursor: pointer; color: inherit; }
.c3-x:hover { opacity: 1; }
.c3-body .c3-day-mark { display: block; width: 28px; height: 28px; border-radius: 6px; flex: none; }
.c3-day-mark.m-flag { background: #e30a17 radial-gradient(circle at 42% 50%, #fff 0 7px, transparent 7.5px) ; position: relative; }
.c3-day-mark.m-flag::after { content: ''; position: absolute; left: 13px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: #e30a17; }
.c3-day-mark.m-confetti, .c3-day-mark.m-pantone { background: conic-gradient(#ffd24e, #ff5fa2, #4fd1ff, #8bd88a, #ffd24e); }
@media (max-width: 1099px), (pointer: coarse) { .c3-notes { left: 12px; right: 12px; width: auto; top: auto; bottom: calc(var(--dock-h, 74px) + 14px); } }

.c3-confetti { position: fixed; inset: 0; z-index: 9400; pointer-events: none; overflow: hidden; }
.c3-confetti i { position: absolute; top: -20px; width: 8px; height: 13px; border-radius: 2px; animation: c3fall var(--d) cubic-bezier(.3,.6,.5,1) forwards; }
@keyframes c3fall { to { transform: translate(var(--x), 110vh) rotate(var(--r)); opacity: .8; } }

.ql-win { transition: box-shadow .5s ease; }
body.cine .ql-win[style*="--ql-tint"] { box-shadow: 0 40px 120px color-mix(in srgb, var(--ql-tint) 55%, transparent), 0 0 0 1px color-mix(in srgb, var(--ql-tint) 40%, transparent); }
body.cine .ql-win[style*="--ql-tint"] .ql-hero { background: color-mix(in srgb, var(--ql-tint) 22%, #0b0b0b); }

body.c3-picking, body.c3-picking * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M3 23l2-6 9-9 3 3-9 9z' fill='%23fff' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M15 7l3-3a2.1 2.1 0 0 1 3 3l-3 3z' fill='%23000'/%3E%3C/svg%3E") 3 23, crosshair !important; }
.c3-tray { position: fixed; left: 50%; bottom: calc(var(--dock-h, 74px) + 22px); transform: translateX(-50%); z-index: 9050; min-width: 320px; max-width: min(760px, calc(100vw - 40px)); padding: 12px; border-radius: 16px;
  background: rgba(18,18,18,.86); color: #fff; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.c3-tray[hidden] { display: none; }
.c3-tray header { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.c3-tray header small { opacity: .6; flex: 1; }
.c3-tray header button { margin-left: auto; border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 999px; padding: 5px 10px; font: inherit; cursor: pointer; }
.c3-sw { display: flex; gap: 8px; margin-top: 10px; }
.c3-sw:empty { display: none; }
.c3-sw button { display: grid; gap: 3px; width: 104px; padding: 0 0 8px; border: 0; border-radius: 8px; overflow: hidden; background: #fff; color: #111; text-align: left; cursor: copy; font: inherit; }
.c3-sw i { height: 58px; background: var(--c); }
.c3-sw b, .c3-sw small { padding: 0 8px; font-size: 11px; }
.c3-sw small { opacity: .6; font-size: 10px; }
.c3-drop { display: inline-flex; align-items: center; }
body.c3-picking .c3-drop { color: #ff3b30; }
@media (max-width: 1099px), (pointer: coarse) { .c3-drop { display: none !important; } }
.c3-word { width: 46px; height: 46px; border-radius: 8px; flex: none; display: grid; place-items: center; background: #111; color: #fff; font: 800 8px/1 inherit; font-style: normal; letter-spacing: .02em; overflow: hidden; text-align: center; padding: 3px; }

/* clock face: every part scales with the face, so the ticks and hands stay
   centred at any widget size */
.dk-w.dk-clock .dk-face i:not(#_) { inset: 0; left: 0; top: 0; width: auto; height: auto; margin: 0; background: none; transform-origin: 50% 50%; transform: rotate(var(--r)); }
.dk-w.dk-clock .dk-face i:not(#_)::before { content: ""; position: absolute; left: 50%; top: 6%; width: 2px; height: 7%; margin-left: -1px; background: #2a2a2a; border-radius: 1px; }
.dk-w[data-size="3"].dk-clock .dk-face i:not(#_)::before { width: 3px; margin-left: -1.5px; }
.dk-w.dk-clock .dk-face b[data-dk-h]:not(#_) { height: 27%; }
.dk-w.dk-clock .dk-face b[data-dk-m]:not(#_) { height: 37%; }
.dk-w.dk-clock .dk-face b[data-dk-s]:not(#_) { height: 41%; }

/* ===== Home court (wallpaper + hoop, js/home/court.js) ===== */
.dw-court { --hx: 75vw; --hy: 22vh; --floor: 86vh; background: #0b2018; overflow: hidden; }
.dw-court .dw-ct-photo { inset: -40px !important; background: url('../assets/home/court-v2.webp') center 62% / cover no-repeat; translate: calc(var(--px, 0) * -14px) calc(var(--py, 0) * -8px); transition: translate 1.6s cubic-bezier(.2, .8, .2, 1); }
.dw-court .dw-ct-light { background: radial-gradient(ellipse 340px 280px at var(--hx) calc(var(--hy) + 10px), rgba(255, 214, 150, .16), transparent 70%); mix-blend-mode: screen; transition: background .6s; }
.dw-court .dw-vig { background: radial-gradient(ellipse at 50% 40%, transparent 50%, rgba(0, 0, 0, .5)); }

.bb-hoop { position: absolute; z-index: 4; width: 201.6px; height: 228px; pointer-events: none; transition: left .5s cubic-bezier(.2, .8, .2, 1), top .5s cubic-bezier(.2, .8, .2, 1), opacity .4s; }
.bb-hoop[hidden] { display: none; }
.bb-hoop .bb-svg:not(#_) { display: block; width: 201.6px; height: 228px; max-width: none; overflow: visible; filter: drop-shadow(5px 9px 5px rgba(0, 0, 0, .28)) drop-shadow(14px 22px 16px rgba(0, 0, 0, .12)); }
.bb-tip { position: absolute; right: 36px; top: 236px; width: 230px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 248, 234, .96); color: #1b1a17; font-size: 12.5px; line-height: 1.35; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); opacity: 0; translate: 0 6px; transition: opacity .3s, translate .3s; }
.bb-tip::before { content: ""; position: absolute; right: 52px; top: -6px; width: 12px; height: 12px; background: inherit; rotate: 45deg; border-radius: 2px; }
.bb-tip b { display: block; margin-bottom: 2px; }
.bb-tip.show { opacity: 1; translate: 0 0; }
.dk-icon.is-flying { z-index: 3; transition: none !important; }
.dk-icon.is-flying .dk-label { opacity: 0; }
.bb-live .dk-widgets { filter: brightness(.86); transition: filter .3s; }
.bb-win { position: fixed; z-index: 9500; left: 50%; top: 50%; display: flex; gap: 16px; align-items: center; width: min(420px, calc(100vw - 32px)); padding: 20px 22px; border-radius: 18px; background: #fff6e6; color: #1b1a17; box-shadow: 0 40px 90px rgba(0, 0, 0, .45); translate: -50% -40%; scale: .9; opacity: 0; transition: opacity .35s, translate .45s cubic-bezier(.2, .9, .3, 1.2), scale .45s cubic-bezier(.2, .9, .3, 1.2); }
.bb-win.in { opacity: 1; translate: -50% -50%; scale: 1; }
.bb-win.out { opacity: 0; scale: .95; }
.bb-win-cup { flex: none; width: 104px; height: 104px; margin: -14px 0 -6px -6px; }
.bb-coffee { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 14px rgba(80, 40, 10, .25)); }
.bb-steam path { fill: none; stroke: rgba(255, 255, 255, .95); stroke-width: 5.5; stroke-linecap: round; opacity: 0; stroke-dasharray: 60 60; animation: bbSteam 2.8s ease-in-out infinite; }
.bb-win { --steam: rgba(120, 96, 74, .75); }
.bb-win-cup { position: relative; }
.bb-win-cup::before { content: ""; position: absolute; left: 50%; top: 58%; width: 120px; height: 120px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 190, 120, .45), transparent 65%); animation: bbGlow 2.8s ease-in-out infinite; z-index: -1; }
@keyframes bbGlow { 50% { opacity: .55; transform: scale(.92); } }
.bb-steam path { stroke: var(--steam); }
.bb-steam .s2 { animation-delay: .9s; } .bb-steam .s3 { animation-delay: 1.8s; }
@keyframes bbSteam { 0% { opacity: 0; transform: translateY(10px) scaleX(.8); stroke-dashoffset: 60; } 25% { opacity: .9; } 60% { opacity: .55; } 100% { opacity: 0; transform: translateY(-14px) scaleX(1.25); stroke-dashoffset: -40; } }
.bb-steam path { transform-box: fill-box; transform-origin: 50% 100%; }
.bb-art { animation: bbArt 4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes bbArt { 50% { transform: rotate(8deg) scale(1.04); } }
.bb-win small { font: 700 10px var(--font-mono, monospace); letter-spacing: .14em; text-transform: uppercase; color: #c2551b; }
.bb-win b { display: block; font-size: 24px; letter-spacing: -.02em; margin: 2px 0 4px; }
.bb-win p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.4; color: #4a463d; }
.bb-win-act { display: flex; gap: 8px; align-items: center; }
.bb-claim { border: 0; border-radius: 999px; padding: 9px 16px; background: #1b1a17; color: #fff; font: 700 13px/1 inherit; cursor: pointer; }
.bb-x { margin-left: auto; border: 0; background: none; font-size: 22px; line-height: 1; color: #7a756a; cursor: pointer; }
@media (max-width: 1099px), (pointer: coarse) { .bb-hoop { display: none !important; } }

.bb-line { position: absolute; z-index: 1; width: 0; border-left: 2px dashed rgba(255, 246, 228, .16); pointer-events: none; transition: border-color .3s, left .5s cubic-bezier(.2, .8, .2, 1); }
.bb-line[hidden] { display: none; }
.bb-line span { position: absolute; bottom: 8px; left: 8px; font: 800 11px/1 var(--font-mono, monospace); letter-spacing: .2em; color: rgba(255, 246, 228, .28); }
.dk-dragging .bb-line, .bb-live .bb-line { border-left-color: rgba(255, 246, 228, .45); }
.dk-dragging .bb-line span, .bb-live .bb-line span { color: rgba(255, 246, 228, .7); }
.bb-line.is-warn { animation: bbWarn .9s ease-out 2; }
@keyframes bbWarn { 40% { border-left-color: #ff7a3c; } }
.bb-line-3 { border-left-style: dashed; border-left-color: rgba(255, 210, 122, .18); }
.bb-line-3 span { color: rgba(255, 210, 122, .35); }
.dk-dragging .bb-line-3, .bb-live .bb-line-3 { border-left-color: rgba(255, 210, 122, .5); }
.dk-dragging .bb-line-3 span, .bb-live .bb-line-3 span { color: rgba(255, 210, 122, .8); }
.bb-pop { position: absolute; left: 92px; top: 70px; font: 900 22px/1 var(--font-sans, sans-serif); color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); pointer-events: none; animation: bbPop 1.1s cubic-bezier(.2, .9, .3, 1) forwards; }
.bb-pop.is-3 { color: #ffd27a; font-size: 30px; }
@keyframes bbPop { 0% { opacity: 0; transform: translateY(10px) scale(.6); } 20% { opacity: 1; transform: translateY(-6px) scale(1.15); } 100% { opacity: 0; transform: translateY(-46px) scale(1); } }
/* the celebration */
.bb-conf { position: absolute; left: 99px; top: 92px; width: 7px; height: 11px; border-radius: 2px; pointer-events: none; animation: bbConf 1.3s cubic-bezier(.15, .8, .35, 1) forwards; }
@keyframes bbConf { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 60% { opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 160px)) rotate(var(--r)); opacity: 0; } }
.bb-quake .dk-widgets, .bb-quake .bb-hoop { animation: bbQuake .45s cubic-bezier(.3, .7, .4, 1); }
@keyframes bbQuake { 15% { translate: 3px -2px; } 35% { translate: -3px 2px; } 55% { translate: 2px 1px; } 75% { translate: -1px -1px; } }
.bb-pop { white-space: nowrap; }
.bb-pop.is-3 { font-size: 34px; letter-spacing: -.02em; color: #ffd27a; text-shadow: 0 0 18px rgba(255, 140, 40, .8), 0 3px 10px rgba(0, 0, 0, .5); left: 30px; }
/* the reward */
.bb-win-back { position: fixed; inset: 0; z-index: 9490; background: radial-gradient(circle at 50% 50%, rgba(40, 20, 6, .35), rgba(0, 0, 0, .72)); backdrop-filter: blur(3px); animation: bbFade .4s ease-out; }
.bb-win-back.out { opacity: 0; transition: opacity .3s; }
@keyframes bbFade { from { opacity: 0; } }
.bb-rain { position: fixed; inset: 0; z-index: 9510; pointer-events: none; overflow: hidden; }
.bb-rain i { position: absolute; top: -24px; height: 14px; border-radius: 2px; animation: bbRain var(--d) cubic-bezier(.3, .6, .5, 1) forwards; }
@keyframes bbRain { to { transform: translate(var(--x), 112vh) rotate(var(--r)); } }
.bb-win { width: min(560px, calc(100vw - 32px)); padding: 28px 30px; gap: 22px; border-radius: 24px; z-index: 9500; box-shadow: 0 50px 120px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 210, 140, .4), 0 0 80px rgba(255, 160, 60, .25); }
.bb-win b { font-size: 34px; }
.bb-win p { font-size: 15px; }
.bb-win-cup { width: 150px; height: 150px; margin: -24px -6px -10px -10px; }
.bb-win.in .bb-win-cup { animation: bbCupIn .9s cubic-bezier(.2, 1.4, .4, 1) .15s both; }
@keyframes bbCupIn { from { transform: scale(.3) rotate(-25deg); opacity: 0; } }
.bb-claim { padding: 12px 20px; font-size: 14px; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); animation: bbNudge 2.4s ease-in-out 1.2s infinite; }
@keyframes bbNudge { 0%, 80%, 100% { transform: none; } 88% { transform: translateY(-3px) scale(1.04); } }

/* the house rule + meter under the hoop */
/* a ball above the screen: where it will come down, and when */
.bb-sky { position: absolute; z-index: 6; top: 4px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; }
.bb-sky[hidden] { display: none; }
.bb-sky i { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 9px solid #ffd27a; filter: drop-shadow(0 0 6px rgba(255, 180, 80, .8)); animation: bbSky .5s ease-in-out infinite alternate; }
.bb-sky b { font: 800 12px/1 var(--font-mono, monospace); color: #ffd27a; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); transform: scale(calc(.9 + var(--h, 0) * .5)); }
@keyframes bbSky { to { transform: translateY(-3px); } }

/* hoop v2: glass board, two-part rim, diamond net that moves */
.bb-plate { stroke: rgba(0, 0, 0, .4); stroke-width: .6; }
.bb-arm { fill: none; stroke: #2a2d2b; stroke-width: 3.4; stroke-linecap: round; }
.bb-boardface { stroke: none; }
.bb-boardedge { fill: none; stroke: rgba(255, 255, 255, .92); stroke-width: 2; stroke-linejoin: round; }
.bb-target { fill: none; stroke: #f06a1f; stroke-width: 1.6; }
.bb-glint { fill: rgba(255, 255, 255, .35); }
.bb-bracket { fill: none; stroke: #b9501a; stroke-width: 3; stroke-linecap: round; }
.bb-rim-back { fill: none; stroke: #9c3f10; stroke-width: 3.2; }
.bb-rim-front { fill: none; stroke-width: 4.4; stroke-linecap: round; }
.bb-rim-hi { fill: none; stroke: rgba(255, 230, 200, .75); stroke-width: 1; stroke-linecap: round; }
.bb-net { transform-box: fill-box; transform-origin: 50% 0; animation: bbIdle 4.2s ease-in-out infinite; }
.bb-net path { fill: none; stroke: rgba(255, 255, 255, .72); stroke-width: 1; stroke-linecap: round; }
.bb-net .bb-mesh { stroke: rgba(255, 255, 255, .8); stroke-width: 1.1; }
.bb-strand { transform-box: view-box; transform-origin: 50% 48.5%; }
@keyframes bbIdle { 0%, 100% { transform: skewX(0); } 30% { transform: skewX(1.6deg); } 70% { transform: skewX(-1.4deg); } }
.bb-hoop.is-swish .bb-net { animation: bbSwish .95s cubic-bezier(.2, .9, .3, 1); }
.bb-hoop.is-swish .bb-strand { animation: bbStrand .9s cubic-bezier(.2, .8, .3, 1) both; animation-delay: calc(var(--i) * 18ms); }
@keyframes bbSwish { 0% { transform: none; } 18% { transform: scale(.78, 1.34); } 40% { transform: scale(1.08, .88) skewX(4deg); } 60% { transform: scale(.96, 1.08) skewX(-3deg); } 80% { transform: scale(1.02, .97) skewX(1deg); } 100% { transform: none; } }
@keyframes bbStrand { 0% { transform: none; } 22% { transform: translateY(5px) scaleY(1.06); } 45% { transform: translateY(-2px) rotate(1.4deg); } 70% { transform: translateY(1px) rotate(-.8deg); } 100% { transform: none; } }
.bb-hoop.is-jiggle .bb-net { animation: bbJiggle .55s ease-out; }
@keyframes bbJiggle { 20% { transform: skewX(6deg) scaleY(.96); } 45% { transform: skewX(-4deg) scaleY(1.03); } 70% { transform: skewX(2deg); } 100% { transform: none; } }
.bb-hoop.is-shake .bb-svg { animation: bbShake .38s ease-out; }
@keyframes bbShake { 30% { transform: translate(1px, 2px) rotate(.6deg); } 60% { transform: translate(-1px, -1px) rotate(-.4deg); } }
.bb-hoop.is-fire .bb-rim-front, .bb-hoop.is-fire .bb-rim-back { stroke: #ffb347; filter: drop-shadow(0 0 6px #ff7a1a) drop-shadow(0 0 14px rgba(255, 90, 0, .7)); animation: bbFire 1s ease-in-out infinite alternate; }
@keyframes bbFire { to { stroke: #ff5a1a; } }
/* wall scoreboard */
.bb-sb { position: absolute; z-index: 4; width: 232px; pointer-events: none; transform-origin: 50% -60px; }
.bb-sb[hidden] { display: none; }
.sb-cables { display: flex; justify-content: space-between; padding: 0 34px; height: 0; }
.sb-cables i { position: relative; top: -60px; width: 2px; height: 60px; background: linear-gradient(#0000, #222 30%); }
.sb-panel { padding: 9px 11px 0; border-radius: 9px; background: linear-gradient(#1a1d1b, #0b0d0c); border: 2px solid #2e3330; box-shadow: 0 14px 28px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06); overflow: hidden; }
.sb-row { display: flex; align-items: baseline; gap: 5px; }
.sb-lbl { font: 700 8.5px/1 var(--font-mono, monospace); letter-spacing: .16em; text-transform: uppercase; color: #7f857f; }
.sb-led { font: 700 30px/1 var(--font-mono, monospace); letter-spacing: .04em; color: #ff8a3c; text-shadow: 0 0 6px rgba(255, 120, 40, .8), 0 0 18px rgba(255, 90, 0, .35); font-variant-numeric: tabular-nums; }
.sb-led.sb-small { font-size: 18px; color: #ffd27a; text-shadow: 0 0 6px rgba(255, 200, 100, .6); }
.sb-of { font: 700 13px/1 var(--font-mono, monospace); color: #8a5a36; }
.sb-sep { flex: 1; }
.sb-lights { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 8px 0 7px; }
.sb-lights i { height: 7px; border-radius: 2px; background: #2a1d14; box-shadow: inset 0 0 0 1px #3a2a1f; transition: background .3s, box-shadow .3s; }
.sb-lights i.on { background: #ff8a3c; box-shadow: 0 0 8px rgba(255, 130, 50, .9); }
.bb-sb.is-hot .sb-lights i.on { background: #ffd27a; animation: sbHot .5s ease-in-out infinite alternate; }
@keyframes sbHot { to { box-shadow: 0 0 14px rgba(255, 190, 80, 1); } }
.sb-ticker { margin: 0 -11px; padding: 7px 0 8px; background: #050605; border-top: 1px solid #222; overflow: hidden; white-space: nowrap; }
.sb-ticker span { display: inline-block; padding-left: 100%; font: 600 12.5px/1.1 var(--font-sans, system-ui); letter-spacing: .02em; color: #ffe2a3; text-shadow: 0 0 6px rgba(255, 200, 100, .45); animation: sbTick 60s linear infinite; }
@keyframes sbTick { to { transform: translateX(-100%); } }
.sb-layout { pointer-events: auto; display: block; width: max-content; margin: 7px auto 0; white-space: nowrap; border: 1px solid rgba(255, 210, 122, .25); background: rgba(8, 16, 12, .7); color: #f1e8d6; border-radius: 999px; padding: 5px 10px; font: 600 10.5px/1 inherit; cursor: pointer; backdrop-filter: blur(6px); }
.sb-layout:hover { background: rgba(255, 138, 60, .3); }
.bb-sb.is-reset .sb-panel { animation: sbReset .6s ease-out; }
@keyframes sbReset { 20% { border-color: #ff3c2a; translate: -4px 0; } 40% { translate: 4px 0; } 60% { translate: -2px 0; } }
.bb-sb.is-done .sb-panel { border-color: #ffd27a; box-shadow: 0 0 26px rgba(255, 180, 80, .45); }
.bb-sb.is-flash .sb-panel { animation: sbFlash .9s ease-out; }
@keyframes sbFlash { 0% { border-color: #ffd27a; box-shadow: 0 0 0 rgba(255, 180, 80, 0); } 25% { border-color: #ffd27a; box-shadow: 0 0 34px rgba(255, 170, 70, .75); } 100% { } }
#room-desk .bb-live .bb-sb, #room-desk.bb-live .bb-sb { z-index: 1; }
/* free widget layout (computers): widgets sit anywhere on the desk */
.room-desk.dk-free .dk-widgets:not(#_) { left: 14px; right: 22px; top: 12px; bottom: 14px; width: auto; display: block; overflow: visible; padding: 0; -webkit-mask: none; mask: none; pointer-events: none; }
.room-desk.dk-free .dk-w { position: absolute; margin: 0; pointer-events: auto; box-sizing: border-box; }
.room-desk.dk-free .dk-w.is-moving { z-index: 20; cursor: grabbing; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.room-desk.dk-free .dk-w.is-resizing { z-index: 20; outline: 1.5px solid rgba(255, 207, 62, .8); outline-offset: 2px; }
.room-desk.dk-free.dk-wdrag .dk-w:not(.is-moving):not(.is-resizing) { opacity: .9; }
body .room-desk .dk-w[data-edge="n"]:not(#_), body .room-desk .dk-w[data-edge="s"]:not(#_) { cursor: ns-resize; }
body .room-desk .dk-w[data-edge="e"]:not(#_), body .room-desk .dk-w[data-edge="w"]:not(#_) { cursor: ew-resize; }
body .room-desk .dk-w[data-edge="ne"]:not(#_), body .room-desk .dk-w[data-edge="sw"]:not(#_) { cursor: nesw-resize; }
body .room-desk .dk-w[data-edge="nw"]:not(#_), body .room-desk .dk-w[data-edge="se"]:not(#_) { cursor: nwse-resize; }
.room-desk .dk-w[data-edge] { box-shadow: inset 0 0 0 1.5px rgba(255, 207, 62, .55); }
.dk-w-ghost { position: absolute; z-index: 1; border-radius: 22px; border: 2px dashed rgba(255, 207, 62, .75); background: rgba(255, 207, 62, .07); pointer-events: none; }
.dk-w-ghost[hidden] { display: none; }
.dk-guide { position: absolute; z-index: 25; pointer-events: none; background: #ff4fa3; }
.dk-guide.is-x { top: -12px; bottom: -14px; width: 1px; }
.dk-guide.is-y { left: -14px; right: -22px; height: 1px; }
.dk-guide[hidden] { display: none; }
.dk-wsize { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 30; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); padding: 3px 8px; border-radius: 6px; background: #ff4fa3; color: #fff; font: 700 11px/1.2 var(--font-mono, monospace); white-space: nowrap; pointer-events: none; }
/* the K ball */
.room-desk .dk-icon.dk-ball { width: calc(68px * var(--dk-z)); height: calc(68px * var(--dk-z)); padding: 0; gap: 0; display: block; border-radius: 50%; background: none !important; cursor: grab; z-index: 3; }
.room-desk .dk-icon.dk-ball:focus-visible { outline: 2px solid #e8b35a; outline-offset: 3px; }
.dk-ball-art { position: relative; z-index: 1; display: block; width: 100%; height: 100%; border-radius: 50%; will-change: transform; }
.dk-ball-art img { display: block; width: 100%; height: 100%; border-radius: 50%; pointer-events: none; user-select: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.dk-ball-shadow { position: absolute; left: 50%; bottom: -4px; width: 86%; height: 11px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0)); transform: translate(-50%, var(--lift, 0px)) scale(var(--ss, 1)); opacity: var(--so, .55); pointer-events: none; }
.room-desk .dk-icon.dk-ball:hover .dk-ball-art { transform: translateY(-3px); transition: transform .2s var(--ease-out); }
.room-desk .dk-icon.dk-ball.is-dragging { cursor: grabbing; filter: none; opacity: 1; }
.dk-ball.is-fast .dk-ball-art img { filter: drop-shadow(-10px 3px 6px rgba(232, 179, 90, .35)) drop-shadow(-20px 6px 10px rgba(232, 179, 90, .15)); }
.dk-ball.is-hot .dk-ball-art::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; box-shadow: 0 0 14px 4px rgba(255, 150, 40, .75), inset 0 0 8px rgba(255, 200, 90, .6); animation: ballHot .7s ease-in-out infinite alternate; pointer-events: none; }
@keyframes ballHot { to { box-shadow: 0 0 24px 8px rgba(255, 110, 20, .9), inset 0 0 10px rgba(255, 220, 120, .8); } }
/* until the first throw: a little hop every few seconds and a hint */
.dk-ball.is-inviting .dk-ball-art { animation: ballInvite 4.2s cubic-bezier(.3, 0, .4, 1) 1.2s infinite; }
@keyframes ballInvite { 0%, 70%, 100% { transform: none; } 78% { transform: translateY(-22px) rotate(-30deg); } 86% { transform: translateY(0) rotate(-55deg) scale(1.06, .92); } 92% { transform: translateY(-8px) rotate(-70deg); } 97% { transform: translateY(0) rotate(-80deg); } }
.dk-ball.is-inviting::before { content: attr(data-hint); position: absolute; left: 50%; bottom: calc(100% + 14px); translate: -50% 0; padding: 6px 11px; border-radius: 10px; background: #f6e6c4; color: #1d1a14; font: 650 12px/1.2 var(--font-sans, system-ui); white-space: nowrap; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); animation: ballHint 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes ballHint { 50% { translate: -50% -4px; } }
/* Production Waste in the dock as a drop target */
.dock .dock-trash.is-target .dock-art { transform: scale(1.3) rotate(-8deg); transition: transform .18s var(--ease-out); }

.dk-w[hidden] { display: none !important; }
.dk-wclose { position: absolute; left: 8px; top: 8px; z-index: 4; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); background: rgba(18, 20, 24, .85); color: #fff; font: 600 14px/17px var(--font-sans, system-ui); text-align: center; cursor: pointer; opacity: 0; scale: .7; transition: opacity .15s, scale .15s; }
.dk-w:hover .dk-wclose, .dk-wclose:focus-visible { opacity: 1; scale: 1; }
.dk-wclose:hover { background: #e5484d; border-color: #e5484d; }
.dk-note .dk-wclose { background: rgba(43, 36, 16, .85); }
@media (hover: none) { .dk-wclose { display: none; } }
/* game mode: the desk clears, only the court stays */
.room-desk .dk-widgets, .room-desk .dk-icon:not(.dk-ball) { transition: opacity .35s ease, scale .35s ease, translate .35s ease, visibility 0s linear 0s; }
.room-desk.dk-game .dk-widgets { opacity: 0; translate: 60px 0; pointer-events: none; visibility: hidden; transition: opacity .35s ease, translate .35s ease, visibility 0s linear .35s; }
.room-desk.dk-game .dk-icon:not(.dk-ball) { opacity: 0; scale: .5; pointer-events: none; visibility: hidden; transition: opacity .3s ease, scale .3s ease, visibility 0s linear .3s; }
.wd-switch { display: inline-flex; align-items: center; gap: 7px; }
.wd-switch[hidden] { display: none !important; }
.wd-switch span { font-size: 12px; }
.wd-switch i { position: relative; width: 28px; height: 16px; border-radius: 9px; background: rgba(255, 255, 255, .22); transition: background .2s; }
.wd-switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: transform .22s cubic-bezier(.3, 1.4, .5, 1); }
.wd-switch[aria-checked="true"] i { background: #34c759; }
.wd-switch[aria-checked="true"] i::after { transform: translateX(12px); }
.wd-note { position: fixed; z-index: 9000; top: 54px; display: grid; grid-template-columns: auto; gap: 3px; max-width: 280px; padding: 11px 13px 12px; border-radius: 14px; background: rgba(16, 18, 20, .86); border: 1px solid rgba(232, 179, 90, .35); color: #f1e8d6; backdrop-filter: blur(14px); box-shadow: 0 18px 40px rgba(0, 0, 0, .4); font-size: 12px; line-height: 1.35; animation: wdNote .35s cubic-bezier(.2, .9, .3, 1.2); }
.wd-note[hidden] { display: none; }
.wd-note::before { content: ""; position: absolute; right: 26px; top: -6px; width: 10px; height: 10px; rotate: 45deg; background: inherit; border-left: 1px solid rgba(232, 179, 90, .35); border-top: 1px solid rgba(232, 179, 90, .35); }
.wd-note b { font-size: 13px; color: #ffd27a; }
.wd-note button { justify-self: start; margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border: 0; border-radius: 999px; background: #f6e6c4; color: #1d1a14; font: 650 12px/1 inherit; cursor: pointer; }
.wd-note kbd { padding: 1px 5px; border-radius: 4px; background: rgba(0, 0, 0, .12); font: 600 10px/1.4 var(--font-mono, monospace); }
@keyframes wdNote { from { opacity: 0; translate: 0 -8px; } }

/* the movable hoop */
.bb-grab { position: absolute; left: 53px; top: 0; width: 149px; height: 134px; pointer-events: auto; cursor: grab; border-radius: 10px; }
.bb-hoop:hover .bb-grab { box-shadow: inset 0 0 0 1px rgba(255, 210, 122, .0); }
.bb-hoop.is-moving { transition: none !important; }
.bb-hoop.is-moving .bb-grab { cursor: grabbing; }
.bb-zone { position: absolute; z-index: 3; border: 1.5px dashed rgba(255, 210, 122, .55); border-radius: 14px; background: rgba(255, 210, 122, .05); pointer-events: none; }
.bb-zone[hidden] { display: none; }

/* game mode: the music player steps away too */
body.desk-game .radio-deck { opacity: 0; translate: 0 30px; pointer-events: none; visibility: hidden; transition: opacity .35s ease, translate .35s ease, visibility 0s linear .35s; }

/* coffee popup extras */
.bb-conf-p { position: fixed; z-index: 9520; pointer-events: none; will-change: transform; }
.bb-win-num { display: inline-block; padding: 0 10px; border-radius: 10px; background: linear-gradient(135deg, #ff8a3c, #ffd27a); color: #2a1406; font-weight: 900; animation: bbNum 1.2s cubic-bezier(.2, 1.6, .4, 1) .3s both; }
@keyframes bbNum { 0% { transform: scale(.2) rotate(-20deg); } 60% { transform: scale(1.25) rotate(6deg); } 100% { transform: none; } }
.bb-win.in { animation: bbWinPop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes bbWinPop { 0% { scale: .6; opacity: 0; } 60% { scale: 1.05; opacity: 1; } 100% { scale: 1; } }

/* floor zone numbers */
.bb-line span { display: none; }
.bb-zl { position: absolute; z-index: 1; translate: -50% -50%; display: flex; align-items: baseline; gap: 4px; pointer-events: none; color: rgba(255, 236, 200, .2); font-family: var(--font-sans, system-ui); transform: perspective(300px) rotateX(48deg); text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.bb-zl[hidden] { display: none; }
.bb-zl b { font-size: 64px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.bb-zl small { font: 800 13px/1 var(--font-mono, monospace); letter-spacing: .14em; }
.bb-zl-3 { color: rgba(255, 210, 122, .26); }

.bb-win:not(#_) { z-index: 9530; }

/* the coffee voucher in the brief */
.bw-coffee { position: relative; display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 10px 16px 10px 12px; border-radius: 14px; background: linear-gradient(120deg, #fff3dc, #ffe2b0 55%, #ffd68e); color: #2a1a08; border: 1.5px dashed rgba(150, 90, 30, .45); box-shadow: 0 8px 22px rgba(160, 90, 20, .18); animation: bwCoffeeIn .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.bw-coffee::before, .bw-coffee::after { content: ""; position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: rgb(32, 35, 42); }
.bw-coffee::before { left: -8px; } .bw-coffee::after { right: -8px; }
.bw-coffee-cup { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #2a1a08; font-size: 20px; }
.bw-coffee-txt { flex: 1; display: grid; gap: 1px; min-width: 0; }
.bw-coffee-txt small { font: 700 9.5px/1.2 var(--font-mono, monospace); letter-spacing: .14em; text-transform: uppercase; color: #a5541b; }
.bw-coffee-txt b { font-size: 15px; letter-spacing: -.01em; }
.bw-coffee-txt em { font-style: normal; font-size: 12px; color: #6b4a26; }
.bw-coffee-code { flex: none; padding: 6px 10px; border-left: 1.5px dashed rgba(150, 90, 30, .45); font: 800 13px/1 var(--font-mono, monospace); letter-spacing: .08em; color: #2a1a08; }
.bw-coffee-done { font-weight: 600; color: #a5541b; }
@keyframes bwCoffeeIn { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
.bb-win-note { margin: -4px 0 12px !important; font-size: 12.5px !important; font-weight: 650; color: #a5541b !important; }
/* catch the ball any time: a bigger hit area while it flies */
.room-desk .dk-icon.dk-ball.is-flying::after { content: ""; position: absolute; inset: -22px; border-radius: 50%; }

/* scoreboard buttons */
.sb-chips { display: flex; justify-content: center; gap: 6px; margin-top: 7px; }
.sb-chips .sb-layout:not(#_) { margin: 0; }
.sb-rb { pointer-events: auto; margin-left: 4px; width: 20px; height: 20px; padding: 0; border: 1px solid rgba(255, 210, 122, .3); border-radius: 50%; background: rgba(255, 255, 255, .06); color: #ffd27a; font: 700 12px/18px var(--font-sans, system-ui); cursor: pointer; opacity: .55; transition: opacity .15s, background .15s; align-self: center; }
.sb-rb:hover, .sb-rb:focus-visible { opacity: 1; background: rgba(255, 138, 60, .3); }

/* the ball rack */
.bb-rack { position: absolute; z-index: 3; width: 360px; height: 64px; padding: 0; border: 0; background: none; pointer-events: none; }
.bb-rack svg path { pointer-events: visibleStroke; cursor: pointer; }
.bb-rack[hidden] { display: none; }
.bb-rack svg { display: block; width: 100%; height: 100%; }
.bb-rack:hover svg { filter: drop-shadow(0 0 6px rgba(255, 210, 122, .35)); }

/* restore: an icon waits (invisible) until its paper ball lands */
.fx-arriving { opacity: 0 !important; transition: none !important; }
/* the desktop apps: dock icon only while the window is open */
.dock .dock-desk-app:not(.running):not(.active) { display: none; }
.dk-app-art { display: grid; place-items: center; }

/* admin: widgets hidden per device */
@media (max-width: 699px) { .dk-w[data-hide-on~="phone"] { display: none !important; } }
@media (min-width: 700px) and (max-width: 1099px) { .dk-w[data-hide-on~="tablet"] { display: none !important; } }
@media (min-width: 1100px) { .dk-w[data-hide-on~="desktop"] { display: none !important; } }

/* uploaded wallpapers (admin panel) */
.dw .dw-imgbg{position:absolute;inset:0;background-repeat:no-repeat;background-color:#111}
.dw .dw-imgdim{position:absolute;inset:0;background:#000}
