:root {
  --windose-line: #4330a8;
  --windose-ink: #33256e;
  --windose-paper: #fffaff;
  --windose-pink: #ed64ac;
  --windose-mint: #c5efea;
  --windose-lavender: #edd7ef;
  --windose-shadow: #c95aa2;
}

body:has(.windose-desktop) { overflow: hidden; padding-bottom: 0 !important; background: #f7dceb !important; }
.windose-desktop,.windose-desktop * { box-sizing: border-box; }

.windose-desktop {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  color: var(--windose-ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: #f6ddea url("/assets/ngod-game/stream-background.png") no-repeat calc(100% - 48px) calc(100% - 42px) / min(56vw, 696px) auto;
}
.windose-desktop::before { position: absolute; z-index: -1; inset: 0; content: ""; pointer-events: none; background: linear-gradient(90deg, rgba(255, 240, 250, .86) 0 42%, rgba(255, 239, 251, .48) 64%, rgba(255, 231, 246, .08)); }

.desktop-media,.desktop-start { display: flex; align-items: center; gap: 6px; height: 100%; border: 0; color: inherit; background: transparent; font: 700 10px "DotGothic16", "Noto Sans SC", sans-serif; cursor: pointer; }

.desktop-shortcuts { position: fixed; z-index: 160; top: 12px; left: max(20px, calc((100vw - 1420px) / 2)); display: grid; gap: 8px; width: 84px; }
.desktop-shortcuts button,.desktop-shortcut-link { display: grid; justify-items: center; gap: 2px; width: 84px; min-height: 82px; border: 0; padding: 2px 0; color: #32246e; background: transparent; font: 9px/1.35 "DotGothic16", "Noto Sans SC", sans-serif; text-align: center; text-decoration: none; text-shadow: 1px 1px #fff; cursor: pointer; }
.desktop-shortcuts img { display: block; width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(1px 2px 0 rgba(60, 40, 109, .2)); }
.desktop-shortcuts button:hover,.desktop-shortcut-link:hover,.desktop-shortcuts button:focus-visible,.desktop-shortcut-link:focus-visible { color: #d94895; outline: 1px solid #d94895; background: rgba(255, 255, 255, .4); }
.desktop-workspace { position: relative; min-height: calc(100dvh - 42px); padding-top: 0; }

.desktop-window { position: absolute; top: 0; left: 0; display: flex; flex-direction: column; width: min(var(--window-width), calc(100vw - 126px)); height: min(var(--window-height), calc(100dvh - 104px)); min-width: 320px; min-height: 280px; overflow: hidden; border: 2px solid var(--windose-line); background: var(--windose-paper); box-shadow: 3px 3px 0 #9ce2de, 0 0 0 1px rgba(255, 255, 255, .84) inset; transform: translate(var(--window-x), var(--window-y)); transition: box-shadow .14s ease, filter .14s ease; }
.desktop-window.is-active { box-shadow: 4px 4px 0 var(--windose-shadow), 0 0 0 1px rgba(255, 255, 255, .84) inset; }.desktop-window.is-maximized { top: 12px; right: 14px; bottom: 50px; left: 104px; width: auto; height: auto; transform: none; }
.desktop-window-titlebar { display: flex; align-items: center; flex: 0 0 32px; min-height: 32px; padding: 3px 5px; border-bottom: 2px solid var(--windose-line); color: var(--windose-ink); background: #eed2ed; font: 9px "DotGothic16", "Noto Sans SC", sans-serif; cursor: grab; touch-action: none; user-select: none; }.desktop-window-titlebar:active { cursor: grabbing; }
.desktop-app-mark { width: 20px; height: 20px; margin-right: 6px; object-fit: contain; image-rendering: pixelated; }.desktop-window-copy { display: grid; gap: 1px; min-width: 0; }.desktop-window-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.desktop-window-copy small { color: #785da5; font-size: 7px; }.desktop-window-actions { display: flex; gap: 2px; margin-left: auto; }.desktop-window-actions button { display: grid; place-items: center; width: 20px; height: 20px; border: 0; padding: 0; background: transparent; cursor: pointer; }.desktop-window-actions img { display: block; width: 20px; height: 20px; image-rendering: pixelated; }.desktop-window-actions button:hover { filter: brightness(.88) saturate(1.3); }.desktop-window-actions button:focus-visible { outline: 1px solid var(--windose-ink); outline-offset: 1px; }

.desktop-app-frame { flex: 1; width: 100%; min-height: 0; border: 0; background: #fffaff; }
/* Iframes otherwise resolve to their document height after a maximized window
   changes from a fixed height to top/bottom constraints. Keep every app
   surface exactly as tall as the space below the desktop titlebar. */
.desktop-window > .desktop-app-frame { display: block; flex: 0 0 calc(100% - 32px); height: calc(100% - 32px); }
.desktop-window.is-maximized > .desktop-app-frame { flex: 0 0 calc(100dvh - 94px); height: calc(100dvh - 94px); }
.desktop-welcome { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(255px, .66fr); flex: 1; min-height: 0; overflow: auto; background: #fffaff; }
.desktop-diary-page { display: flex; flex-direction: column; padding: 31px 34px 23px; }.desktop-kicker { margin: 0 0 9px; color: #b34083; font: 9px "DotGothic16", "Noto Sans SC", sans-serif; }.desktop-welcome h1 { margin: 0; color: #3f2b92; font: 700 31px/1.22 "Noto Sans SC", "Microsoft YaHei", sans-serif; letter-spacing: 0; }.desktop-welcome h1 em { color: #df529b; font-style: normal; }.desktop-diary-copy { max-width: 500px; margin: 17px 0; color: #4d426d; font-size: 14px; line-height: 1.75; }
.desktop-welcome-actions { display: flex; flex-wrap: wrap; gap: 8px; }.desktop-welcome-actions button,.desktop-welcome-actions .desktop-open-link { border: 1px solid var(--windose-line); padding: 8px 10px; color: #fff; background: #6246ac; box-shadow: 2px 2px 0 #b8e6e2; font: 10px "DotGothic16", "Noto Sans SC", sans-serif; text-decoration: none; cursor: pointer; }.desktop-welcome-actions button:nth-child(2) { background: #e85caa; }.desktop-welcome-actions button:nth-child(3) { color: #3f2b92; background: #fff4a9; }.desktop-welcome-actions button:hover,.desktop-welcome-actions .desktop-open-link:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 #b8e6e2; }.desktop-diary-footer { display: grid; gap: 4px; margin-top: auto; border-top: 1px dashed #ad93c9; padding-top: 13px; color: #775b9b; font-size: 10px; }.desktop-diary-footer span { color: #df529b; font: 8px "DotGothic16", "Noto Sans SC", sans-serif; }
.desktop-cloud-game { display: grid; grid-template-columns: minmax(0, 1fr) 190px; flex: 1; min-height: 0; overflow: auto; background: linear-gradient(135deg, #fff8ff 0 56%, #d5f3ef 56% 100%); }
.desktop-cloud-game-copy { display: flex; flex-direction: column; min-height: 100%; padding: 38px 42px 28px; }
.desktop-cloud-game h1 { margin: 0; color: #3f2b92; font: 700 38px/1.1 "Noto Sans SC", "Microsoft YaHei", sans-serif; }.desktop-cloud-game h1 em { color: #df529b; font-style: normal; }
.desktop-cloud-game-copy > p:not(.desktop-kicker) { max-width: 500px; margin: 20px 0 24px; color: #4d426d; font-size: 14px; line-height: 1.75; }
.desktop-cloud-game-actions { display: flex; flex-wrap: wrap; gap: 8px; }.desktop-cloud-game-actions a { border: 1px solid var(--windose-line); padding: 10px 12px; color: #fff; background: #6246ac; box-shadow: 2px 2px 0 #b8e6e2; font: 10px "DotGothic16", "Noto Sans SC", sans-serif; text-decoration: none; }.desktop-cloud-game-actions a + a { color: #4b367d; background: #fff; }.desktop-cloud-game-actions a:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 #b8e6e2; }
.desktop-cloud-game-copy small { margin-top: auto; border-top: 1px dashed #ad93c9; padding-top: 14px; color: #775b9b; font: 8px/1.5 "DotGothic16", "Noto Sans SC", sans-serif; }
.desktop-cloud-game-side { display: grid; align-content: center; justify-items: center; gap: 9px; border-left: 2px solid var(--windose-line); padding: 24px 12px; color: #fff; background: #6146a0; }.desktop-cloud-game-side img { width: 96px; height: 96px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(3px 3px 0 #e85caa); }.desktop-cloud-game-side b { font: 17px/1 "DotGothic16", sans-serif; }.desktop-cloud-game-side span { border: 1px solid #c5efea; padding: 4px 6px; color: #c5efea; font: 8px/1 "DotGothic16", sans-serif; }
.desktop-session-console { margin: 2px 0 16px; border: 1px solid var(--windose-line); background: #fdf9ff; box-shadow: 2px 2px 0 #c6ece7; }.desktop-session-console header { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--windose-line); padding: 7px 8px; color: #412d88; background: #ece2f4; font: 8px "DotGothic16", "Noto Sans SC", sans-serif; }.desktop-session-console header b { color: #d74d96; font-weight: inherit; }.desktop-session-console p { min-height: 42px; margin: 0; padding: 8px 9px; color: #493d70; font-size: 12px; line-height: 1.55; }.desktop-session-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; border-top: 1px solid #c2b5df; padding: 7px; }.desktop-session-action { min-height: 31px; border: 1px solid var(--windose-line); padding: 5px 6px; color: #3f2b92; background: #fff; box-shadow: 1px 1px 0 #b2e4df; font: 8px "DotGothic16", "Noto Sans SC", sans-serif; cursor: pointer; }.desktop-session-action:nth-child(2n) { background: #effbfd; }.desktop-session-action:nth-child(3n) { background: #ffeaf5; }.desktop-session-action:hover:not(:disabled),.desktop-session-action:focus-visible:not(:disabled) { color: #fff; background: #df579d; outline: none; transform: translate(1px, 1px); box-shadow: none; }.desktop-session-action:disabled { cursor: not-allowed; opacity: .46; }
.desktop-session-history { display: grid; gap: 0; margin: 0; border-top: 1px dashed #b8aad7; padding: 0; list-style: none; }.desktop-session-history li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 5px; border-top: 1px solid rgba(129, 109, 181, .24); padding: 5px 8px; color: #766197; font-size: 8px; }.desktop-session-history li:first-child { border-top: 0; }.desktop-session-history b { color: #d34c94; font: 7px "DotGothic16", "Noto Sans SC", sans-serif; }.desktop-session-history span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desktop-session-events { display: grid; gap: 0; margin: 0; border-top: 1px solid #b8aad7; padding: 0; list-style: none; }.desktop-session-events li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 6px; border-top: 1px solid rgba(129, 109, 181, .18); padding: 5px 8px; color: #6f5b91; font-size: 8px; line-height: 1.4; }.desktop-session-events li:first-child { border-top: 0; }.desktop-session-events b { color: #4a328e; font: 7px "DotGothic16", "Noto Sans SC", sans-serif; }.desktop-session-events li.is-threshold b { color: #d34892; }.desktop-session-events li.is-diary b { color: #2c9f9c; }

.desktop-presence { align-self: start; display: flex; flex-direction: column; min-width: 0; border-left: 2px solid var(--windose-line); background: #e8f7f4; }.desktop-presence-head { display: flex; align-items: center; gap: 7px; padding: 12px 13px; border-bottom: 1px solid #9fcfd1; background: rgba(255, 250, 255, .78); }.desktop-presence-head img { width: 28px; height: 28px; object-fit: contain; image-rendering: pixelated; }.desktop-presence-head span { display: grid; gap: 2px; font: 9px "DotGothic16", "Noto Sans SC", sans-serif; }.desktop-presence-head small { color: #d34892; font-size: 7px; }.desktop-presence figure { position: relative; min-height: 0; margin: 0; border-bottom: 2px solid var(--windose-line); background: #d8eeed; aspect-ratio: 696 / 454; }.desktop-presence figure img { display: block; width: 100%; height: 100%; max-height: none; object-fit: contain; object-position: center; }.desktop-presence-message { display: flex; align-items: center; gap: 6px; margin: 12px 13px 8px; color: #553a84; font-size: 11px; line-height: 1.45; }.desktop-presence-message img { width: 20px; height: 20px; object-fit: contain; image-rendering: pixelated; }.desktop-status-list { display: grid; gap: 4px; margin: 0 12px 12px; padding: 0; list-style: none; }.desktop-status-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 5px; border-top: 1px solid rgba(67, 48, 168, .42); padding: 5px 0; font-size: 9px; }.desktop-status-list img { width: 24px; height: 20px; object-fit: contain; image-rendering: pixelated; }.desktop-status-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #735a9e; }.desktop-status-list b { color: #403097; font: 8px "DotGothic16", "Noto Sans SC", sans-serif; }
.desktop-window.is-maximized .desktop-welcome { grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); }.desktop-window.is-maximized .desktop-presence { width: min(420px, 100%); }.desktop-window.is-maximized .desktop-presence figure { width: 100%; }

/* The ego-search shortcut opens an actual JINE-like companion app. It keeps
   the native desktop chrome and uses the two existing game webcam resources
   as identity signals rather than introducing a generic chat product UI. */
.desktop-companion { display: grid; grid-template-columns: 196px minmax(0, 1fr); flex: 1; min-height: 0; overflow: hidden; color: #3f2b69; background: #fffaff; }
.companion-roster { display: flex; flex-direction: column; min-height: 0; border-right: 2px solid var(--windose-line); background: #f5e4f6 url("/assets/ngod-game/jine-background.png") center bottom / 180px auto no-repeat; }
.companion-roster-heading { display: grid; gap: 3px; border-bottom: 2px solid var(--windose-line); padding: 11px 12px 10px; color: #563f93; background: rgba(246, 222, 243, .9); }.companion-roster-heading span { color: #d94d98; font: 8px "DotGothic16", "Noto Sans SC", sans-serif; }.companion-roster-heading b { font-size: 13px; }
.companion-persona-list { display: grid; gap: 7px; padding: 10px; }.companion-persona-list button { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 61px; border: 1px solid #a78cc6; padding: 6px; color: #4b347d; background: rgba(255, 251, 255, .92); font-family: "DotGothic16", "Noto Sans SC", sans-serif; text-align: left; cursor: pointer; }.companion-persona-list button:hover,.companion-persona-list button:focus-visible { border-color: #e5539d; outline: 0; box-shadow: 2px 2px 0 #ef9fc9; }.companion-persona-list button.is-active { color: #fff; border-color: #5c4490; background: #6b51a8; box-shadow: 2px 2px 0 #ec71b4; }.companion-persona-list img { width: 46px; height: 46px; object-fit: cover; object-position: center; border: 1px solid currentColor; image-rendering: pixelated; }.companion-persona-list span { display: grid; gap: 4px; min-width: 0; }.companion-persona-list b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.companion-persona-list small { color: inherit; font-size: 7px; opacity: .85; }
.companion-roster-note { margin: auto 12px 10px; color: #755f95; font-size: 9px; line-height: 1.55; }.companion-clear { align-self: stretch; margin: 0 10px 11px; border: 1px solid #8869ad; padding: 7px; color: #694d94; background: rgba(255, 250, 255, .9); font: 8px "DotGothic16", "Noto Sans SC", sans-serif; cursor: pointer; }.companion-clear:hover { color: #fff; background: #9a6cb2; }
.companion-chat { display: grid; grid-template-rows: 74px minmax(0, 1fr) auto; min-width: 0; min-height: 0; background: #fffaff; }.companion-chat-head { display: flex; align-items: center; gap: 10px; min-width: 0; border-bottom: 2px solid var(--windose-line); padding: 9px 14px; background: #ead8f5; }.companion-chat-head > img { width: 52px; height: 52px; object-fit: cover; object-position: center; border: 2px solid #fff; outline: 1px solid #7654a3; image-rendering: pixelated; }.companion-chat-head > span { display: grid; gap: 2px; min-width: 0; }.companion-chat-head small { color: #d6529d; font: 8px "DotGothic16", "Noto Sans SC", sans-serif; }.companion-chat-head b { color: #51358b; font-size: 15px; }.companion-chat-head i { overflow: hidden; max-width: 350px; color: #755d98; font: 8px "DotGothic16", "Noto Sans SC", sans-serif; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }.companion-chat-head button { margin-left: auto; border: 1px solid #8061a7; padding: 6px 8px; color: #fff; background: #7457a3; font: 8px "DotGothic16", "Noto Sans SC", sans-serif; cursor: pointer; }
.companion-history { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 17px; overflow-y: auto; background: #e28edf url("/assets/ngod-game/jine-background.png") center / cover no-repeat; }.companion-empty { margin: auto; border: 1px solid rgba(94, 58, 135, .68); padding: 8px 10px; color: #633d8c; background: rgba(255, 249, 255, .84); box-shadow: 2px 2px 0 rgba(104, 57, 141, .34); font: 10px "DotGothic16", "Noto Sans SC", sans-serif; text-align: center; }.companion-message { align-self: flex-start; max-width: min(84%, 560px); border: 1px solid #76529d; padding: 9px 11px; background: rgba(255, 252, 255, .92); box-shadow: 2px 2px 0 rgba(93, 51, 129, .33); backdrop-filter: blur(2px); }.companion-message.is-user { align-self: flex-end; border-color: #bd4f91; background: rgba(255, 239, 249, .94); }.companion-message.is-pending { color: #806496; border-style: dashed; background: rgba(255, 247, 255, .9); font-size: 10px; }.companion-message small { display: block; margin-bottom: 5px; color: #d44891; font: 8px "DotGothic16", "Noto Sans SC", sans-serif; }.companion-message.is-user small { color: #5d4793; }.companion-message p { margin: 0; color: #3d3159; font-size: 13px; line-height: 1.72; white-space: pre-wrap; overflow-wrap: anywhere; }.companion-error { align-self: center; margin: 0; border: 1px solid #b74c85; padding: 7px 9px; color: #8f2e61; background: rgba(255, 237, 245, .94); font-size: 10px; }
.companion-composer { display: grid; gap: 7px; border-top: 2px solid var(--windose-line); padding: 10px 12px; background: #f6e7f6; }.companion-composer textarea { display: block; width: 100%; min-height: 62px; resize: vertical; border: 1px solid #8669a8; padding: 8px 9px; color: #3f315d; outline: 0; background: #fff; font: 13px/1.55 "Noto Sans SC", "Microsoft YaHei", sans-serif; }.companion-composer textarea:focus { border-color: #e6539e; box-shadow: 0 0 0 2px rgba(235, 102, 174, .2); }.companion-composer > div { display: flex; align-items: center; gap: 9px; }.companion-composer span { color: #80689d; font: 8px "DotGothic16", "Noto Sans SC", sans-serif; }.companion-composer button { margin-left: auto; min-width: 58px; border: 1px solid #5d4494; padding: 7px 10px; color: #fff; background: #e6529c; box-shadow: 2px 2px 0 #7960a2; font: 9px "DotGothic16", "Noto Sans SC", sans-serif; cursor: pointer; }.companion-composer button:disabled { cursor: wait; opacity: .6; box-shadow: none; }
.desktop-companion[data-persona="ame"] .companion-chat-head { background: #efd4e4; }.desktop-companion[data-persona="ame"] .companion-chat-head small,.desktop-companion[data-persona="ame"] .companion-message small { color: #a34370; }.desktop-companion[data-persona="ame"] .companion-composer button { background: #614080; }.desktop-companion[data-persona="ame"] .companion-message.is-user { border-color: #74528f; background: #f5eff9; }
.desktop-companion-notification { position: fixed; z-index: 190; right: max(18px, calc((100vw - 1410px) / 2)); bottom: 54px; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 8px; width: min(318px, calc(100vw - 36px)); border: 2px solid #553387; padding: 7px 8px; color: #433068; background: #fff8ff url("/assets/ngod-game/jine-background.png") right center / 145px auto no-repeat; box-shadow: 4px 4px 0 #56398e; font-family: "DotGothic16", "Noto Sans SC", sans-serif; text-align: left; cursor: pointer; opacity: 0; transform: translateY(12px); transition: opacity .16s steps(2, end), transform .16s steps(2, end); }.desktop-companion-notification.is-visible { opacity: 1; transform: translateY(0); }.desktop-companion-notification img { width: 42px; height: 42px; border: 1px solid #543485; object-fit: cover; object-position: center; image-rendering: pixelated; background: #f3d7ef; }.desktop-companion-notification span { display: grid; min-width: 0; gap: 2px; }.desktop-companion-notification small { color: #d34791; font-size: 7px; }.desktop-companion-notification b { overflow: hidden; color: #503684; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.desktop-companion-notification i { overflow: hidden; color: #58466f; font: 8px/1.35 "Noto Sans SC", "Microsoft YaHei", sans-serif; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }.desktop-companion-notification[data-persona="ame"] { border-color: #6a478a; box-shadow: 4px 4px 0 #865477; }.desktop-companion-notification[data-persona="ame"] small { color: #9e3f6c; }.desktop-companion-notification:hover,.desktop-companion-notification:focus-visible { outline: 0; transform: translate(1px, 1px); box-shadow: 2px 2px 0 #56398e; }
.desktop-status-list li span { display: grid; gap: 3px; overflow: visible; white-space: normal; }.desktop-status-list li span i { display: block; height: 4px; overflow: hidden; border: 1px solid #8472bd; background: #fff; font-style: normal; }.desktop-status-list li span i b { display: block; height: 100%; min-width: 2px; background: #63d7d5; }.desktop-status-list li.is-stress span i b { background: #ed70aa; }.desktop-status-list li.is-darkness span i b { background: #66509f; }
.desktop-presence figure { overflow: hidden; }
.desktop-presence figure::before { position:absolute; z-index:2; right:9px; top:8px; padding:3px 5px; color:#fff; background:#5942a0; content:"TAP HEAD"; font:7px/1 "DotGothic16",sans-serif; opacity:.74; pointer-events:none; }
.desktop-head-pat { position:absolute; z-index:3; top:13%; left:26%; width:48%; height:55%; border:1px dashed transparent; padding:0; color:transparent; background:transparent; cursor:pointer; }
.desktop-head-pat span { position:absolute; right:-16px; bottom:-10px; display:grid; place-items:center; width:24px; height:24px; border:1px solid var(--windose-line); color:#fff; background:#e755a0; font:16px/1 serif; opacity:0; transform:rotate(8deg); transition:opacity .12s ease,transform .12s ease; }
.desktop-head-pat:hover,.desktop-head-pat:focus-visible { border-color:rgba(67,48,168,.62); background:rgba(255,255,255,.1); outline:none; }
.desktop-head-pat:hover span,.desktop-head-pat:focus-visible span { opacity:1; transform:rotate(8deg) translateY(-2px); }
.desktop-presence figure.is-patted::before { content:"♡ +1"; background:#e755a0; opacity:1; animation:pat-pop 1.1s steps(3,end) both; }
.desktop-presence figure.is-patted img { animation:kangel-patted .55s steps(3,end) both; }
.desktop-presence figure.is-patted .desktop-head-pat span { opacity:1; animation:heart-pop .65s ease-out both; }
.desktop-presence figure.is-patted .desktop-head-pat { border-color:#e755a0; }
@keyframes kangel-breathe{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(1px) scale(1.012)}}@keyframes kangel-live{50%{background:#6448a4}}@keyframes kangel-patted{0%{transform:translateY(0) rotate(0)}35%{transform:translateY(2px) rotate(-1deg)}70%{transform:translateY(-1px) rotate(1deg)}100%{transform:translateY(0) rotate(0)}}@keyframes pat-pop{0%{transform:translateY(5px);opacity:0}25%{transform:translateY(0);opacity:1}75%{opacity:1}100%{transform:translateY(-4px);opacity:0}}@keyframes heart-pop{0%{transform:rotate(8deg) scale(.7);opacity:0}45%{transform:rotate(-5deg) scale(1.1);opacity:1}100%{transform:rotate(8deg) scale(1);opacity:0}}@media(prefers-reduced-motion:reduce){.desktop-presence figure::after,.desktop-presence figure img,.desktop-presence figure.is-patted::before,.desktop-presence figure.is-patted .desktop-head-pat span{animation:none!important}.desktop-head-pat span{transition:none!important}}

.desktop-taskbar { position: fixed; z-index: 170; right: 0; bottom: 0; left: 0; display: flex; align-items: center; gap: 6px; height: 42px; border-top: 2px solid var(--windose-line); padding: 4px max(10px, calc((100vw - 1420px) / 2)); color: var(--windose-ink); background: #eee0f3; }.desktop-start { flex: 0 0 auto; height: 30px; padding: 0 9px; border: 1px solid var(--windose-line); background: #fff9ff; }.desktop-start span { display: grid; place-items: center; width: 15px; height: 15px; color: #fff; background: #df539d; }.desktop-task-tabs { display: flex; flex: 1; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }.desktop-task-tabs button { flex: 0 0 auto; max-width: 150px; overflow: hidden; border: 1px solid #9e84be; padding: 6px 9px; color: #5a3f86; background: rgba(255, 255, 255, .55); font: 8px "DotGothic16", "Noto Sans SC", sans-serif; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }.desktop-task-tabs button.is-active { color: #fff; background: #6650a7; }.desktop-task-tabs button.is-minimized { opacity: .63; }.desktop-media { flex: 0 0 auto; height: 30px; padding: 0 8px; border: 1px solid var(--windose-line); color: #412c7d; background: #f698c9 url("/assets/ngod-game/desktop-youtube.png") 5px center / 20px 20px no-repeat; }.desktop-media span { visibility: hidden; width: 17px; }.desktop-media b { color: #fff; }.desktop-day { display: grid; flex: 0 0 auto; min-width: 76px; padding: 3px 7px; color: #fff; background: #4c3587; font: 9px "DotGothic16", "Noto Sans SC", sans-serif; line-height: 1.05; text-align: center; }.desktop-day time { color: #fff; font: 10px/1 "DotGothic16", "Noto Sans SC", sans-serif; white-space: nowrap; }.desktop-day #desktop-date { color: #bff2ed; font-size: 7px; }
/* The player has one reading order: track, transport, progress, then secondary actions. */
body:has(.windose-desktop) .music-player {
  position: fixed !important;
  z-index: 180 !important;
  left: auto !important;
  right: max(18px, calc((100vw - 1410px) / 2 + 150px)) !important;
  bottom: 55px !important;
  display: grid !important;
  grid-template-areas:
    "art copy play"
    "art progress progress"
    "art actions actions" !important;
  grid-template-columns: 42px minmax(0, 1fr) 38px !important;
  grid-template-rows: 34px 22px 24px !important;
  gap: 4px 6px !important;
  width: 360px !important;
  min-height: 102px !important;
  padding: 25px 8px 8px !important;
  border-color: var(--windose-line) !important;
  box-shadow: 3px 3px 0 var(--windose-shadow) !important;
  background: #fffaff !important;
}
body:has(.windose-desktop) .music-player[hidden] { display: none !important; }
body:has(.windose-desktop) .music-player::before { display: none; }
body:has(.windose-desktop) .music-player .player-titlebar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex !important;
  align-items: center;
  gap: 6px;
  height: 20px;
  border-bottom: 1px solid var(--windose-line);
  padding: 2px 8px;
  color: #4a328e;
  background: #eed2ed;
  font: 8px "DotGothic16", "Noto Sans SC", sans-serif;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
body:has(.windose-desktop) .music-player .player-titlebar:active { cursor: grabbing; }
body:has(.windose-desktop) .music-player .player-titlebar img { width: 17px; height: 17px; image-rendering: pixelated; }
body:has(.windose-desktop) .music-player.is-positioned { right: auto !important; bottom: auto !important; left: var(--music-x) !important; top: var(--music-y) !important; }
body:has(.windose-desktop) .music-player.is-dragging { opacity: .92; box-shadow: 5px 5px 0 var(--windose-shadow) !important; }
body:has(.windose-desktop) .music-player .player-art { grid-area: art; width: 42px !important; height: 42px !important; align-self: center; border-color: var(--windose-line) !important; }
body:has(.windose-desktop) .music-player .player-copy { grid-area: copy; min-width: 0; align-self: center; }
body:has(.windose-desktop) .music-player .player-copy small,body:has(.windose-desktop) .music-player .player-copy strong,body:has(.windose-desktop) .music-player .player-copy span { display: block !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body:has(.windose-desktop) .music-player .player-copy small,body:has(.windose-desktop) .music-player .player-copy span { font-size: 7px !important; }
body:has(.windose-desktop) .music-player .player-copy strong { font-size: 10px !important; }
body:has(.windose-desktop) .music-player #track-toggle { grid-area: play; }
body:has(.windose-desktop) .music-player #track-previous,body:has(.windose-desktop) .music-player #track-next { display: none !important; }
body:has(.windose-desktop) .music-player .player-control { display: grid !important; width: 100% !important; height: 28px !important; min-width: 0; border-color: var(--windose-line) !important; background: #fff !important; font-size: 10px !important; }
body:has(.windose-desktop) .music-player .player-play { height: 28px !important; color: #fff !important; background: #e75ba9 !important; font-size: 8px !important; }
body:has(.windose-desktop) .music-player .player-progress { grid-area: progress; display: grid !important; grid-template-columns: 25px minmax(0, 1fr) 25px; gap: 4px; min-width: 0; font-size: 7px !important; }
body:has(.windose-desktop) .music-player .player-progress input { min-width: 0; width: 100% !important; }
body:has(.windose-desktop) .music-player .player-actions { grid-area: actions; display: flex !important; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
body:has(.windose-desktop) .music-player .player-search-toggle { height: 20px; border-color: var(--windose-line); padding: 0 7px; color: #fff; background: #5a44a0; font-size: 8px; }
body:has(.windose-desktop) .music-player .volume-control { display: flex !important; gap: 4px; color: #6b5798; font-size: 7px !important; }
body:has(.windose-desktop) .music-player .volume-control input { width: 54px !important; }

@media (max-width: 1000px) { .windose-desktop { background-position: calc(100% + 174px) calc(100% - 42px); }.desktop-shortcuts { top: 10px; left: 10px; width: 70px; }.desktop-shortcuts button,.desktop-shortcut-link { width: 70px; min-height: 71px; font-size: 8px; }.desktop-shortcuts img { width: 54px; height: 54px; }.desktop-window { width: min(var(--window-width), calc(100vw - 132px)); margin-left: 72px; }.desktop-window.is-maximized { left: 88px; margin-left: 0; }.desktop-welcome { grid-template-columns: minmax(0, 1fr) 250px; }.desktop-diary-page { padding: 27px 26px 21px; } }
@media (max-width: 620px) {
  /* Mobile is an app switcher, not a scaled down multi-window desktop. */
  body:has(.windose-desktop) { overflow: hidden; }
  .windose-desktop {
    display: grid;
    grid-template-rows: 82px minmax(0, 1fr);
    height: 100dvh;
    min-height: 100dvh;
    background: #f7dfea url("/assets/ngod-game/stream-background.png") center bottom / auto 190px no-repeat;
  }
  .windose-desktop::before { background: rgba(255, 239, 251, .78); }
  .desktop-shortcuts {
    position: relative;
    z-index: 160;
    top: auto;
    left: auto;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    height: 82px;
    padding: 7px 6px 3px;
    background: rgba(255, 238, 250, .78);
  }
  .desktop-shortcuts button,.desktop-shortcut-link {
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0 1px;
    font-size: 7px;
    line-height: 1.2;
  }
  .desktop-shortcuts button span,.desktop-shortcut-link span {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .desktop-shortcuts img { width: 38px; height: 38px; }
  .desktop-workspace {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    padding: 6px 8px 54px;
    overflow: hidden;
  }
  .windose-desktop:has(.music-player:not([hidden])) .desktop-workspace { padding-bottom: 158px; }
  .desktop-window,.desktop-window.is-maximized {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    max-height: 100%;
    margin-left: 0;
    transform: none;
  }
  .desktop-window > .desktop-app-frame,.desktop-window.is-maximized > .desktop-app-frame { flex: 1 1 auto; height: auto; }
  .desktop-window:not(.is-active) { display: none; }
  .desktop-window-titlebar { cursor: default; touch-action: auto; }
  .desktop-welcome { grid-template-columns: 1fr; }
  .desktop-diary-page { padding: 18px 16px 12px; }
  .desktop-welcome h1 { font-size: 24px; }
  .desktop-diary-copy { margin: 10px 0; font-size: 13px; overflow-wrap: anywhere; }
  .desktop-session-console { margin-bottom: 12px; }.desktop-session-console p { min-height: 38px; font-size: 11px; }.desktop-session-actions { gap: 4px; padding: 6px; }.desktop-session-action { min-height: 29px; padding: 4px; font-size: 7px; }
  .desktop-presence { display: none; }
  .desktop-taskbar { gap: 4px; height: 48px; padding: 5px 7px; }
  .desktop-start { width: 32px; padding: 0; font-size: 0; }
  .desktop-start span { margin: auto; }
  .desktop-media { width: 35px; padding: 0; }
  .desktop-media b { display: none; }
  .desktop-day { padding: 7px 5px; font-size: 8px; }
  .desktop-task-tabs button { max-width: 112px; padding: 7px; }
  body:has(.windose-desktop) .music-player {
    right: 8px !important;
    bottom: 62px !important;
    width: calc(100vw - 16px) !important;
    grid-template-areas: "art copy play" "art progress progress" "art actions actions" !important;
    grid-template-columns: 36px minmax(0, 1fr) 35px !important;
    grid-template-rows: 34px 20px 22px !important;
    min-height: 94px !important;
    padding-top: 25px !important;
  }
  body:has(.windose-desktop) .music-player #track-previous,body:has(.windose-desktop) .music-player #track-next { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .desktop-window,.desktop-shortcuts button,.desktop-shortcut-link { transition: none !important; } }

/* Running applications keep their own desktop mark in the taskbar. */
.desktop-task-tabs button { display: flex; align-items: center; gap: 5px; padding: 5px 8px; }
.desktop-task-tabs button img { flex: 0 0 16px; width: 16px; height: 16px; object-fit: contain; image-rendering: pixelated; }
.desktop-task-tabs button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* Mobile uses the exact same window manager as desktop, but presents one
   readable application at a time.  It is a launcher and taskbar, not a
   shrunken canvas of overlapping desktop windows. */
@media (max-width: 620px) {
  /* Each app remains a real shortcut instead of a scaled desktop icon.  The
     two-row launcher gives touch labels enough room without sacrificing the
     active application's reading area. */
  .windose-desktop {
    grid-template-rows: 128px minmax(0, 1fr);
    background-position: center bottom;
    background-size: auto 224px;
  }
  .windose-desktop::before { background: linear-gradient(180deg, rgba(255, 240, 251, .9), rgba(255, 239, 251, .68)); }
  .desktop-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 3px 5px;
    height: 128px;
    padding: 6px 9px 5px;
    border-bottom: 2px solid rgba(67, 48, 168, .44);
    background: rgba(255, 247, 253, .86);
  }
  .desktop-shortcuts button,.desktop-shortcut-link {
    position: relative;
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 1px;
    width: 100%;
    min-height: 54px;
    padding: 1px 0 0;
    border: 1px solid transparent;
    color: #34256f;
    font-size: 9px;
    line-height: 1.25;
  }
  .desktop-shortcuts button::after {
    position: absolute;
    right: 7px;
    top: 3px;
    width: 6px;
    height: 6px;
    border: 1px solid #fff;
    content: "";
    background: #e957a3;
    opacity: 0;
  }
  .desktop-shortcuts button.is-open::after { opacity: 1; }
  .desktop-shortcuts button.is-active {
    border-color: var(--windose-line);
    color: #fff;
    background: #6650a7;
    text-shadow: none;
    box-shadow: 2px 2px 0 #f09ac4;
  }
  .desktop-shortcuts button.is-active::after { background: #bff2ed; }
  .desktop-shortcuts img { width: 34px; height: 34px; margin-bottom: 1px; }
  .desktop-shortcuts button span,.desktop-shortcut-link span { min-height: 16px; font-size: 9px; }
  .desktop-workspace { padding: 8px 8px 56px; }
  .windose-desktop:has(.music-player:not([hidden])) .desktop-workspace { padding-bottom: 166px; }
  .desktop-window,.desktop-window.is-maximized {
    border-width: 2px;
    box-shadow: 3px 4px 0 var(--windose-shadow), 0 0 0 1px rgba(255, 255, 255, .84) inset;
  }
  .desktop-window-titlebar { flex-basis: 38px; min-height: 38px; padding: 4px 6px; }
  .desktop-app-mark { width: 23px; height: 23px; margin-right: 5px; }
  .desktop-window-copy b { font-size: 9px; }.desktop-window-copy small { font-size: 7px; }
  .desktop-window-actions { gap: 3px; }.desktop-window-actions button { width: 28px; height: 28px; }.desktop-window-actions img { width: 22px; height: 22px; }
  .desktop-window > .desktop-app-frame,.desktop-window.is-maximized > .desktop-app-frame { flex: 1 1 auto; height: auto; }
  .desktop-welcome { display: block; overflow-y: auto; background: rgba(255, 250, 255, .97); }
  .desktop-companion { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }.companion-roster { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-right: 0; border-bottom: 2px solid var(--windose-line); background-image: none; }.companion-roster-heading { align-self: stretch; padding: 7px 9px; border-bottom: 0; border-right: 1px solid #b695c9; }.companion-roster-heading b { font-size: 11px; }.companion-persona-list { display: flex; gap: 4px; padding: 5px; }.companion-persona-list button { grid-template-columns: 30px auto; min-height: 0; padding: 3px; }.companion-persona-list img { width: 30px; height: 30px; }.companion-persona-list b { font-size: 8px; }.companion-persona-list small { display: none; }.companion-roster-note,.companion-clear { display: none; }.companion-chat { grid-template-rows: 60px minmax(0, 1fr) auto; }.companion-chat-head { gap: 8px; padding: 6px 9px; }.companion-chat-head > img { width: 42px; height: 42px; }.companion-chat-head b { font-size: 13px; }.companion-chat-head i { max-width: 190px; font-size: 7px; }.companion-history { gap: 8px; padding: 10px; background-size: cover; }.companion-message { max-width: 92%; padding: 8px; }.companion-message p { font-size: 12px; }.companion-composer { gap: 5px; padding: 7px 8px; }.companion-composer textarea { min-height: 52px; font-size: 12px; }.companion-composer button { min-height: 28px; }.desktop-companion-notification { right: 10px; bottom: 50px; width: min(350px, calc(100vw - 20px)); }
  .desktop-cloud-game { display: block; overflow-y: auto; }.desktop-cloud-game-copy { min-height: 0; padding: 24px 18px 16px; }.desktop-cloud-game h1 { font-size: 29px; }.desktop-cloud-game-copy > p:not(.desktop-kicker) { margin: 15px 0 19px; font-size: 13px; }.desktop-cloud-game-copy small { margin-top: 22px; }.desktop-cloud-game-side { display: flex; justify-content: flex-start; gap: 8px; min-height: 72px; border-top: 2px solid var(--windose-line); border-left: 0; padding: 10px 18px; }.desktop-cloud-game-side img { width: 48px; height: 48px; }.desktop-cloud-game-side b { font-size: 14px; }
  .desktop-diary-page { display: block; padding: 20px 16px 14px; }
  .desktop-welcome h1 { font-size: 26px; line-height: 1.26; }.desktop-diary-copy { margin: 12px 0 16px; font-size: 13px; line-height: 1.72; }
  .desktop-welcome-actions { gap: 7px; }.desktop-welcome-actions button,.desktop-welcome-actions .desktop-open-link { min-height: 35px; padding: 8px 9px; font-size: 9px; }
  .desktop-diary-footer { margin-top: 18px; padding-top: 10px; }
  .desktop-presence {
    display: flex;
    margin: 0 14px 16px;
    border: 2px solid var(--windose-line);
    border-left: 2px solid var(--windose-line);
    background-size: 120px auto;
  }
  .desktop-presence-head { padding: 8px 10px; }.desktop-presence figure img { height: 100%; max-height: none; }
  .desktop-presence-message { margin: 8px 10px 6px; }.desktop-status-list { margin: 0 10px 9px; }
  .desktop-status-list li { min-height: 28px; padding: 4px 0; }
  .desktop-taskbar { height: 50px; padding: 5px 7px; gap: 5px; }
  .desktop-task-tabs { gap: 5px; }.desktop-task-tabs button { min-height: 34px; max-width: 116px; padding: 6px 7px; }.desktop-task-tabs button img { width: 17px; height: 17px; }
  .desktop-start { width: 32px; }.desktop-media { width: 36px; }.desktop-day { min-width: 73px; padding: 4px 5px; }
  body:has(.windose-desktop) .music-player { right: 8px !important; bottom: 64px !important; width: calc(100vw - 16px) !important; }
  /* Desktop drag coordinates are intentionally ignored on phones. A saved
     wide-screen x/y would otherwise push this panel outside the viewport and
     make the search controls unreachable. */
  body:has(.windose-desktop) .music-player.is-positioned {
    left: 8px !important;
    right: 8px !important;
    top: auto !important;
    bottom: 64px !important;
    width: calc(100vw - 16px) !important;
  }

  /* Cloud gaming is the one mobile app that benefits from a console-like
     layout.  Keep every launcher reachable while returning the lost vertical
     room to the remote screen and preventing the outer page from scrolling. */
  .windose-desktop[data-active-app="cloud-game"] {
    grid-template-rows: 60px minmax(0, 1fr);
    background-size: auto 136px;
  }
  .windose-desktop[data-active-app="cloud-game"] .desktop-shortcuts {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: 1fr;
    gap: 1px;
    height: 60px;
    padding: 4px 4px 3px;
  }
  .windose-desktop[data-active-app="cloud-game"] .desktop-shortcuts button,
  .windose-desktop[data-active-app="cloud-game"] .desktop-shortcut-link {
    min-height: 50px;
    font-size: 7px;
  }
  .windose-desktop[data-active-app="cloud-game"] .desktop-shortcuts img {
    width: 29px;
    height: 29px;
  }
  .windose-desktop[data-active-app="cloud-game"] .desktop-shortcuts button span,
  .windose-desktop[data-active-app="cloud-game"] .desktop-shortcut-link span {
    min-height: 13px;
    font-size: 7px;
    -webkit-line-clamp: 1;
  }
  .windose-desktop[data-active-app="cloud-game"] .desktop-workspace {
    padding: 4px 4px 54px;
  }
  .windose-desktop[data-active-app="cloud-game"] .desktop-window,
  .windose-desktop[data-active-app="cloud-game"] .desktop-window.is-maximized {
    box-shadow: 2px 3px 0 var(--windose-shadow), 0 0 0 1px rgba(255, 255, 255, .84) inset;
  }
  .windose-desktop[data-active-app="cloud-game"] .desktop-window-titlebar {
    flex-basis: 34px;
    min-height: 34px;
  }
  .windose-desktop[data-active-app="cloud-game"] .desktop-window-actions button {
    width: 25px;
    height: 25px;
  }
  .windose-desktop[data-active-app="cloud-game"] .desktop-app-frame {
    overscroll-behavior: contain;
    background: #111;
  }
}
