:root {
  --win-bg: #2f7fd4;
  --win-silver: #ece9d8;
  --win-white: #ffffff;
  --win-gray: #aca899;
  --win-black: #000000;
  --win-blue-dark: #0a58d9;
  --win-blue-light: #4d97f5;
  --win-blue-mid: #1657d6;
  --win-border-light: #f9f7ef;
  --win-border-dark: #0a246a;
  --xp-green: #38a91f;
  --xp-green-dark: #117414;
  --xp-orange: #f28c22;
  --xp-red: #e81123;
  --wallpaper: url("https://static.wikitide.net/windowswallpaperwiki/c/cf/Bliss.jpg");
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: Tahoma, "Segoe UI", Verdana, Arial, sans-serif;
  background: var(--win-bg);
  color: #000;
}

button,
input,
textarea {
  font: inherit;
}

.hidden {
  display: none !important;
}

.taskbar-fullscreen {
  min-width: 24px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(5, 47, 117, 0.75);
  border-radius: 3px;
  background: linear-gradient(180deg, #fefefe, #d8e4f7);
  color: #0a246a;
  font-size: 13px;
  line-height: 1;
  padding: 0 4px;
  box-shadow: inset 0 1px 0 #fff;
}

.taskbar-fullscreen:active {
  background: linear-gradient(180deg, #c8d6ef, #ffffff);
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.25);
}

#desktop {
  position: relative;
  width: 100vw;
  height: calc(100vh - 32px);
  background-image: var(--wallpaper);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.desktop-shortcuts {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 14px;
  max-height: calc(100% - 32px);
  align-content: flex-start;
}

.shortcut {
  width: 92px;
  min-height: 94px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: default;
  user-select: none;
  text-align: center;
  padding: 6px;
  border-radius: 3px;
}

[data-private-app="1"] {
  display: none !important;
}

body.private-apps-unlocked .shortcut[data-private-app="1"] {
  display: flex !important;
}

body.private-apps-unlocked .start-item[data-private-app="1"] {
  display: block !important;
}

.shortcut:hover,
.shortcut.selected {
  background: rgba(49, 106, 197, 0.35);
  border: 1px dotted rgba(255, 255, 255, 0.9);
}

.shortcut-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: pixelated;
}

.icon-large {
  width: 64px;
  height: 64px;
}

.shortcut span {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.1;
  color: #fff;
  text-shadow: 1px 1px #000;
}

#window-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.window {
  position: absolute;
  display: flex;
  flex-direction: column;
  background: var(--win-silver);
  border: 1px solid var(--win-border-dark);
  border-radius: 8px 8px 3px 3px;
  box-shadow: 3px 6px 18px rgba(0, 0, 0, 0.45);
  min-width: 280px;
  min-height: 180px;
  overflow: hidden;
  pointer-events: auto;
}

.window.active .window-header {
  background: linear-gradient(180deg, var(--win-blue-light) 0%, var(--win-blue-dark) 45%, var(--win-blue-mid) 55%, var(--win-blue-dark) 100%);
}

.window.inactive .window-header {
  background: linear-gradient(180deg, #9fb7db 0%, #6d89bc 45%, #5d7bac 100%);
}

.window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: calc(100vh - 32px) !important;
}

.window-header {
  color: #fff;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 0 8px;
  cursor: move;
  user-select: none;
  gap: 8px;
  border-bottom: 1px solid #0a246a;
  font-family: "Trebuchet MS", Tahoma, Arial, sans-serif;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.45);
}

.header-title {
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-controls {
  display: flex;
  gap: 2px;
}

.win-btn {
  width: 21px;
  height: 19px;
  background: linear-gradient(180deg, #78b1ff, #1652c9);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 3px;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.win-btn:active {
  filter: brightness(0.9);
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.35);
}

.header-controls .win-btn[data-action="close"] {
  background: linear-gradient(180deg, #f37b73, var(--xp-red));
}

.window-body {
  display: flex;
  flex-direction: column;
  background: var(--win-silver);
  height: calc(100% - 30px);
  min-height: 0;
}

.window-content {
  background: #fff;
  border: 1px solid #7f9db9;
  margin: 7px;
  padding: 8px;
  overflow: auto;
  scrollbar-gutter: stable both-edges;
  flex: 1;
}

.window-content,
.discord-messages,
.msn-chatlog,
.slot98-window-content {
  scrollbar-width: auto;
  scrollbar-color: #7a7a7a #d7d7d7;
}

.window-content::-webkit-scrollbar,
.discord-messages::-webkit-scrollbar,
.msn-chatlog::-webkit-scrollbar,
.slot98-window-content::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.window-content::-webkit-scrollbar-track,
.discord-messages::-webkit-scrollbar-track,
.msn-chatlog::-webkit-scrollbar-track,
.slot98-window-content::-webkit-scrollbar-track {
  background: #f1eee4;
  border-left: 1px solid #aca899;
}

.window-content::-webkit-scrollbar-thumb,
.discord-messages::-webkit-scrollbar-thumb,
.msn-chatlog::-webkit-scrollbar-thumb,
.slot98-window-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fff, #c8d6ef);
  border: 1px solid #7f9db9;
}

.window-statusbar {
  display: flex;
  gap: 6px;
  padding: 0 8px 8px;
  font-size: 11px;
}

.status-panel {
  border: 1px solid;
  border-color: #aca899 #fff #fff #aca899;
  padding: 2px 8px;
  background: #f4f1e7;
}

.window-resizer {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  cursor: nwse-resize;
}

.taskbar {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 32px;
  background: linear-gradient(180deg, #2c8df0 0%, #095bc8 14%, #0b53bd 54%, #0743a1 100%);
  border-top: 1px solid #4ea3ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 7px 0 0;
  z-index: 9999;
}

.start-btn,
.task-item,
.start-item,
.action-btn,
.message-send {
  border: 1px solid #8b8b8b;
  background: linear-gradient(180deg, #fff, #dfdfdf);
}

.start-btn,
.task-item,
.start-item {
  cursor: pointer;
}

.start-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  min-width: 96px;
  padding: 0 16px 0 12px;
  font-weight: bold;
  font-size: 13px;
  color: #fff;
  border: 0;
  border-radius: 0 14px 14px 0;
  background: radial-gradient(circle at 20% 0%, #b8f074 0%, #45bd28 34%, var(--xp-green-dark) 76%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 2px 0 8px rgba(0, 0, 0, 0.28);
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.55);
}

.start-btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.35));
}

.start-btn:active {
  filter: brightness(0.92);
  box-shadow: inset 1px 1px 4px rgba(0, 0, 0, 0.35);
}

.taskbar-items {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
}

.task-item {
  min-width: 128px;
  max-width: 190px;
  height: 24px;
  padding: 0 10px;
  font-size: 11.5px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22) rgba(0, 40, 120, 0.8) rgba(0, 40, 120, 0.9) rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  background: linear-gradient(180deg, #5fa7f8, #1a67cf 52%, #0d4fa9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.task-item.active {
  background: linear-gradient(180deg, #1450b2, #0b3d91);
  box-shadow: inset 1px 1px 4px rgba(0, 0, 0, 0.38);
}

.systray {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 170px;
  justify-content: flex-end;
  padding: 0 9px;
  height: 100%;
  font-size: 11.5px;
  color: #fff;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(180deg, #28b8f2, #0b8ad9 48%, #0674c1);
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.45);
}

.systray-separator {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.45);
}

.start-menu {
  position: fixed;
  bottom: 32px;
  left: 0;
  width: 300px;
  background: #fff;
  border: 1px solid #1f57b9;
  border-radius: 7px 7px 0 0;
  box-shadow: 5px -5px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  z-index: 10000;
}

.start-menu-layout {
  display: flex;
  min-height: 390px;
  flex-direction: column;
}

.start-sidebar {
  width: 100%;
  min-height: 58px;
  background: linear-gradient(180deg, #4a9df7, #0b55c2);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 14px;
  border-bottom: 1px solid #083b8e;
}

.start-sidebar span {
  transform: none;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  white-space: nowrap;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.55);
}

.start-content {
  flex: 1;
  padding: 8px;
  background: linear-gradient(90deg, #fff 0 55%, #d6e7ff 55% 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 2px 8px;
}

.start-item {
  width: 100%;
  display: block;
  padding: 8px 9px;
  text-align: left;
  font-size: 12px;
  margin-bottom: 0;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
}

.start-item:hover {
  background: #316ac5;
  color: #fff;
}

.start-content hr {
  border: none;
  border-top: 1px solid #b8c7e6;
  grid-column: 1 / -1;
  width: 100%;
  margin: 6px 0;
}

.explorer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
}

.folder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 6px;
  cursor: pointer;
  text-align: center;
}

.folder-item:hover {
  background: #e4e9ff;
}

.folder-item span {
  margin-top: 4px;
  font-size: 11px;
}

.app-section-title {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 8px;
}

.app-copy {
  font-size: 12px;
  line-height: 1.4;
}

.chat-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  height: 100%;
}

.chat-toolbar,
.private-toolbar {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.chat-messages,
.private-messages {
  border: 2px inset var(--win-silver);
  background: #fff;
  padding: 8px;
  overflow-y: auto;
  min-height: 220px;
}

.chat-row {
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.35;
  word-break: break-word;
}

.chat-row strong {
  color: var(--win-blue-dark);
}

.chat-form,
.private-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.win-input {
  width: 100%;
  border: 2px inset var(--win-silver);
  padding: 6px;
  background: #fff;
  outline: none;
  font-size: 12px;
}

.message-send,
.action-btn {
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
}

.contact-list {
  display: grid;
  gap: 6px;
}

.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid;
  border-color: var(--win-white) var(--win-gray) var(--win-gray) var(--win-white);
  background: #ececec;
  padding: 8px;
  font-size: 12px;
}

.contact-status {
  font-weight: bold;
}

.contact-status.online {
  color: #0a7f00;
}

.contact-status.offline {
  color: #7f0000;
}

.music-player {
  background: #202020;
  color: #15ff00;
  padding: 10px;
  height: 100%;
  font-family: "Courier New", monospace;
}

.music-display {
  border: 1px solid #15ff00;
  padding: 8px;
  margin-bottom: 10px;
  min-height: 42px;
  background: #000;
}

.player-controls {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.game-list {
  display: grid;
  gap: 8px;
}

.game-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid;
  border-color: var(--win-white) var(--win-gray) var(--win-gray) var(--win-white);
  background: #efefef;
  padding: 8px;
  font-size: 12px;
}

.game-item-rich {
  gap: 10px;
}

.game-item-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.game-item-main strong,
.game-item-main small {
  display: block;
}

.game-item-main strong {
  color: #173f69;
  margin-bottom: 2px;
}

.game-item-main small {
  color: #5a7090;
}

.game-thumb {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid #7b94b3;
  background: #fff;
  image-rendering: auto;
}

.note-box {
  border: 2px inset var(--win-silver);
  background: #fffbe6;
  padding: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.profile-card {
  border: 2px solid;
  border-color: var(--win-white) var(--win-gray) var(--win-gray) var(--win-white);
  background: #ececec;
  padding: 8px;
  font-size: 12px;
}

.profile-label {
  color: #444;
  margin-bottom: 4px;
}

.profile-value {
  font-size: 18px;
  font-weight: bold;
  color: var(--win-blue-dark);
}

.session-row {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 11px;
  border: 1px solid;
  border-color: var(--win-gray) var(--win-white) var(--win-white) var(--win-gray);
  background: #e8e8e8;
}

.auth-badge.online {
  color: #0a7f00;
}

.auth-badge.offline {
  color: #7f0000;
}

.msn-window {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.94), transparent 21%),
    radial-gradient(circle at top left, rgba(52, 211, 153, 0.35), transparent 24%),
    linear-gradient(180deg, #f9fcff 0%, #dcecff 38%, #c5dcfb 100%);
  border: 1px solid #8db2da;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(123, 168, 213, 0.45),
    0 0 0 1px rgba(255,255,255,0.4);
  padding: 0;
}

.window[data-app-id="private-chat"] {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.55), transparent 18%),
    radial-gradient(circle at bottom right, rgba(43, 209, 120, 0.28), transparent 26%),
    linear-gradient(180deg, #dcecff 0%, #b8d4f5 55%, #8cb7e6 100%);
  border: 1px solid #6e9dcc;
  border-radius: 16px 16px 12px 12px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    0 10px 26px rgba(16, 52, 97, 0.35),
    0 0 0 1px rgba(255,255,255,0.34);
  overflow: hidden;
}

.window[data-app-id="private-chat"].active .window-header,
.window[data-app-id="private-chat"].inactive .window-header {
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.75), transparent 30%),
    linear-gradient(180deg, #6fb9ff 0%, #3d8edc 55%, #2b69b3 100%);
  color: #fff;
}

.window[data-app-id="private-chat"] .window-header {
  height: 34px;
  padding: 5px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.window[data-app-id="private-chat"] .header-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 0 rgba(15, 61, 109, 0.55);
}

.window[data-app-id="private-chat"] .header-controls {
  gap: 6px;
}

.window[data-app-id="private-chat"] .win-btn {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(22, 81, 140, 0.8);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(194,223,255,0.96));
  color: #245183;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    0 1px 0 rgba(255,255,255,0.24);
}

.window[data-app-id="private-chat"] .win-btn:active {
  border-color: rgba(22, 81, 140, 0.8);
  background: linear-gradient(180deg, rgba(183,214,248,0.96), rgba(255,255,255,0.98));
}

.window[data-app-id="private-chat"] .window-body {
  background: transparent;
  height: calc(100% - 34px);
}

.window[data-app-id="private-chat"] .window-statusbar {
  padding: 0 10px 10px;
}

.window[data-app-id="private-chat"] .status-panel {
  border-radius: 999px;
  border-color: #a7c7e7;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(222,237,255,0.95));
}

.window[data-app-id="private-chat"] .window-resizer {
  width: 16px;
  height: 16px;
  right: 4px;
  bottom: 4px;
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(72,122,176,0.95) 45% 55%, transparent 55%),
    linear-gradient(135deg, transparent 0 65%, rgba(255,255,255,0.95) 65% 73%, transparent 73%);
  border-radius: 0 0 8px 0;
}

.window[data-app-id="explorer-games"],
.window[data-app-id="proyectos"],
.window[data-app-id="creator-pro"],
.window[data-app-id="sales-registry"],
.window[data-app-id="sales-goals"],
.window[data-app-id="under-maps"],
.window[data-app-id="xp-agar-strike"],
.window[data-app-id="recording-studio"] {
  background:
    linear-gradient(180deg, #a97b4f 0%, #7b5736 100%);
  border: 4px solid #4c331f;
  border-radius: 0;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.16),
    0 10px 0 rgba(61, 42, 24, 0.85),
    0 16px 28px rgba(0,0,0,0.35);
  overflow: hidden;
}

.window[data-app-id="explorer-games"].active .window-header,
.window[data-app-id="explorer-games"].inactive .window-header,
.window[data-app-id="proyectos"].active .window-header,
.window[data-app-id="proyectos"].inactive .window-header,
.window[data-app-id="creator-pro"].active .window-header,
.window[data-app-id="creator-pro"].inactive .window-header,
.window[data-app-id="sales-registry"].active .window-header,
.window[data-app-id="sales-registry"].inactive .window-header,
.window[data-app-id="sales-goals"].active .window-header,
.window[data-app-id="sales-goals"].inactive .window-header,
.window[data-app-id="under-maps"].active .window-header,
.window[data-app-id="under-maps"].inactive .window-header,
.window[data-app-id="xp-agar-strike"].active .window-header,
.window[data-app-id="xp-agar-strike"].inactive .window-header,
.window[data-app-id="recording-studio"].active .window-header,
.window[data-app-id="recording-studio"].inactive .window-header {
  background:
    linear-gradient(180deg, #7bcf41 0%, #4f9d25 100%);
  color: #132106;
}

.window[data-app-id="explorer-games"] .window-header,
.window[data-app-id="proyectos"] .window-header,
.window[data-app-id="creator-pro"] .window-header,
.window[data-app-id="sales-registry"] .window-header,
.window[data-app-id="sales-goals"] .window-header,
.window[data-app-id="under-maps"] .window-header,
.window[data-app-id="xp-agar-strike"] .window-header,
.window[data-app-id="recording-studio"] .window-header {
  height: 34px;
  padding: 5px 8px;
  border-bottom: 4px solid #375f1d;
  box-shadow: inset 0 2px 0 rgba(198, 255, 152, 0.4);
}

.window[data-app-id="explorer-games"] .header-title,
.window[data-app-id="proyectos"] .header-title,
.window[data-app-id="creator-pro"] .header-title,
.window[data-app-id="sales-registry"] .header-title,
.window[data-app-id="sales-goals"] .header-title,
.window[data-app-id="under-maps"] .header-title,
.window[data-app-id="xp-agar-strike"] .header-title,
.window[data-app-id="recording-studio"] .header-title {
  font-size: 13px;
  font-weight: 700;
  color: #112007;
  text-shadow: 1px 1px 0 rgba(210,255,173,0.35);
}

.window[data-app-id="explorer-games"] .win-btn,
.window[data-app-id="proyectos"] .win-btn,
.window[data-app-id="creator-pro"] .win-btn,
.window[data-app-id="sales-registry"] .win-btn,
.window[data-app-id="sales-goals"] .win-btn,
.window[data-app-id="under-maps"] .win-btn,
.window[data-app-id="xp-agar-strike"] .win-btn,
.window[data-app-id="recording-studio"] .win-btn {
  width: 22px;
  height: 22px;
  border: 2px solid #355319;
  border-radius: 0;
  background: linear-gradient(180deg, #d5c08b, #b28d54);
  color: #2f1a0d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

.window[data-app-id="explorer-games"] .window-body,
.window[data-app-id="proyectos"] .window-body,
.window[data-app-id="creator-pro"] .window-body,
.window[data-app-id="sales-registry"] .window-body,
.window[data-app-id="sales-goals"] .window-body,
.window[data-app-id="under-maps"] .window-body,
.window[data-app-id="xp-agar-strike"] .window-body,
.window[data-app-id="recording-studio"] .window-body {
  background: linear-gradient(180deg, #c6a16d, #8c6138);
}

.window[data-app-id="explorer-games"] .window-statusbar,
.window[data-app-id="proyectos"] .window-statusbar,
.window[data-app-id="creator-pro"] .window-statusbar,
.window[data-app-id="sales-registry"] .window-statusbar,
.window[data-app-id="sales-goals"] .window-statusbar,
.window[data-app-id="under-maps"] .window-statusbar,
.window[data-app-id="xp-agar-strike"] .window-statusbar,
.window[data-app-id="recording-studio"] .window-statusbar {
  padding: 0 10px 10px;
}

.window[data-app-id="explorer-games"] .status-panel,
.window[data-app-id="proyectos"] .status-panel,
.window[data-app-id="creator-pro"] .status-panel,
.window[data-app-id="sales-registry"] .status-panel,
.window[data-app-id="sales-goals"] .status-panel,
.window[data-app-id="under-maps"] .status-panel,
.window[data-app-id="xp-agar-strike"] .status-panel,
.window[data-app-id="recording-studio"] .status-panel {
  border: 2px solid #4c331f;
  background: linear-gradient(180deg, #d9c08a, #b68f57);
  color: #2f1a0d;
}

.window[data-app-id="explorer-games"] .window-resizer,
.window[data-app-id="proyectos"] .window-resizer,
.window[data-app-id="creator-pro"] .window-resizer,
.window[data-app-id="sales-registry"] .window-resizer,
.window[data-app-id="sales-goals"] .window-resizer,
.window[data-app-id="under-maps"] .window-resizer,
.window[data-app-id="xp-agar-strike"] .window-resizer,
.window[data-app-id="recording-studio"] .window-resizer {
  width: 16px;
  height: 16px;
  right: 3px;
  bottom: 3px;
  background:
    linear-gradient(135deg, transparent 0 40%, #2f1d0d 40% 55%, transparent 55%),
    linear-gradient(135deg, transparent 0 62%, #d7be8b 62% 72%, transparent 72%);
}

.window[data-app-id="recording-studio"] {
  background:
    radial-gradient(circle at top left, rgba(255,218,145,0.18), transparent 22%),
    linear-gradient(180deg, #321a0d 0%, #1a0f0a 100%);
  border-color: #6d3b19;
}

.window[data-app-id="creator-pro"] {
  background:
    radial-gradient(circle at top left, rgba(255,236,168,0.22), transparent 20%),
    linear-gradient(180deg, #302313 0%, #17110a 100%);
  border-color: #8c6115;
}

.window[data-app-id="under-maps"] {
  background:
    radial-gradient(circle at top left, rgba(125, 211, 252, 0.24), transparent 24%),
    linear-gradient(180deg, #0f2732 0%, #071319 100%);
  border-color: #155e75;
}

.window[data-app-id="xp-agar-strike"] {
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.25), transparent 23%),
    linear-gradient(180deg, #07152c 0%, #05070a 100%);
  border-color: #1d4ed8;
}

.window[data-app-id="recording-studio"].active .window-header,
.window[data-app-id="recording-studio"].inactive .window-header {
  background:
    linear-gradient(180deg, #ff9e41 0%, #db5a1f 100%);
  color: #2e1204;
}

.window[data-app-id="creator-pro"].active .window-header,
.window[data-app-id="creator-pro"].inactive .window-header {
  background:
    linear-gradient(180deg, #ffd54f 0%, #f59e0b 100%);
  color: #2e1700;
}

.window[data-app-id="under-maps"].active .window-header,
.window[data-app-id="under-maps"].inactive .window-header {
  background:
    linear-gradient(180deg, #67e8f9 0%, #0891b2 100%);
  color: #05252e;
}

.window[data-app-id="xp-agar-strike"].active .window-header,
.window[data-app-id="xp-agar-strike"].inactive .window-header {
  background:
    linear-gradient(180deg, #60a5fa 0%, #0055e5 100%);
  color: #f8fafc;
}

.window[data-app-id="recording-studio"] .window-header {
  border-bottom-color: #8a3f16;
  box-shadow: inset 0 2px 0 rgba(255, 211, 140, 0.45);
}

.window[data-app-id="creator-pro"] .window-header {
  border-bottom-color: #8a5b10;
  box-shadow: inset 0 2px 0 rgba(255, 238, 162, 0.45);
}

.window[data-app-id="under-maps"] .window-header {
  border-bottom-color: #155e75;
  box-shadow: inset 0 2px 0 rgba(207, 250, 254, 0.5);
}

.window[data-app-id="xp-agar-strike"] .window-header {
  border-bottom-color: #1d4ed8;
  box-shadow: inset 0 2px 0 rgba(191, 219, 254, 0.5);
}

.window[data-app-id="recording-studio"] .header-title {
  color: #2b1207;
  text-shadow: 1px 1px 0 rgba(255,244,223,0.28);
}

.window[data-app-id="creator-pro"] .header-title {
  color: #342103;
  text-shadow: 1px 1px 0 rgba(255, 251, 231, 0.32);
}

.window[data-app-id="under-maps"] .header-title {
  color: #062e39;
  text-shadow: 1px 1px 0 rgba(236, 254, 255, 0.34);
}

.window[data-app-id="xp-agar-strike"] .header-title {
  color: #f8fafc;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.55);
}

.window[data-app-id="recording-studio"] .win-btn {
  border-color: #8b4819;
  background: linear-gradient(180deg, #ffcb77, #de8631);
  color: #391a09;
}

.window[data-app-id="creator-pro"] .win-btn {
  border-color: #8b6b16;
  background: linear-gradient(180deg, #ffe08a, #e0ad36);
  color: #382606;
}

.window[data-app-id="under-maps"] .win-btn {
  border-color: #155e75;
  background: linear-gradient(180deg, #cffafe, #22d3ee);
  color: #06313d;
}

.window[data-app-id="xp-agar-strike"] .win-btn {
  border-color: #1e3a8a;
  background: linear-gradient(180deg, #dbeafe, #60a5fa);
  color: #07152c;
}

.window[data-app-id="recording-studio"] .window-body {
  background: linear-gradient(180deg, #4b2b15, #22130d);
}

.window[data-app-id="creator-pro"] .window-body {
  background: linear-gradient(180deg, #584117, #231809);
}

.window[data-app-id="under-maps"] .window-body {
  background: linear-gradient(180deg, #123847, #07171d);
}

.window[data-app-id="xp-agar-strike"] .window-body {
  background: linear-gradient(180deg, #0b2252, #05070a);
}

.window[data-app-id="recording-studio"] .status-panel {
  border-color: #673718;
  background: linear-gradient(180deg, #deb57b, #b57639);
}

.window[data-app-id="creator-pro"] .status-panel {
  border-color: #755112;
  background: linear-gradient(180deg, #efd18a, #c6952e);
  color: #2f1a0d;
}

.window[data-app-id="episode-constructor"] {
  background: linear-gradient(180deg, #2d3b2d 0%, #121a14 100%);
  border: 4px solid #1f2a1f;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.14),
    0 10px 0 rgba(15, 23, 18, 0.86),
    0 18px 32px rgba(0,0,0,0.38);
  overflow: hidden;
}

.window[data-app-id="episode-constructor"].active .window-header,
.window[data-app-id="episode-constructor"].inactive .window-header {
  background: linear-gradient(180deg, #d7f99b 0%, #8fcf3b 100%);
  color: #14220b;
}

.window[data-app-id="episode-constructor"] .window-header {
  height: 34px;
  padding: 5px 8px;
  border-bottom: 4px solid #3d641f;
  box-shadow: inset 0 2px 0 rgba(244, 255, 204, 0.5);
}

.window[data-app-id="episode-constructor"] .header-title {
  font-size: 13px;
  font-weight: 700;
  color: #14220b;
}

.window[data-app-id="episode-constructor"] .win-btn {
  width: 22px;
  height: 22px;
  border: 2px solid #355319;
  border-radius: 0;
  background: linear-gradient(180deg, #f8e7a6, #c9a556);
  color: #2f1a0d;
}

.window[data-app-id="episode-constructor"] .window-body {
  background: linear-gradient(180deg, #d9e5c8, #9fb184);
  height: calc(100% - 34px);
  overflow: hidden;
}

.window[data-app-id="episode-constructor"] .window-statusbar {
  padding: 0 10px 10px;
}

.window[data-app-id="episode-constructor"] .status-panel {
  border: 2px solid #334522;
  background: linear-gradient(180deg, #edf7d3, #adc873);
  color: #16230d;
}

.window[data-app-id="episode-constructor"] .window-resizer {
  width: 16px;
  height: 16px;
  right: 3px;
  bottom: 3px;
  background:
    linear-gradient(135deg, transparent 0 40%, #1f2a1f 40% 55%, transparent 55%),
    linear-gradient(135deg, transparent 0 62%, #e4f0c3 62% 72%, transparent 72%);
}

.episode-constructor {
  display: grid;
  gap: 12px;
  height: 100%;
  min-height: 0;
  overflow: auto;
  background: linear-gradient(180deg, #f5f7ee, #e3ead5);
  color: #17200f;
  box-sizing: border-box;
  padding-bottom: 18px;
}

.episode-public-view {
  align-content: start;
}

.episode-public-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.episode-public-actions,
.episode-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.episode-public-actions {
  align-items: flex-start;
  min-width: 180px;
}

.episode-selector .action-btn {
  min-width: 34px;
  padding-left: 8px;
  padding-right: 8px;
}

.episode-public-day {
  display: grid;
  gap: 8px;
  border: 2px solid #1f2a1f;
  background: #fffef7;
  box-shadow: 3px 3px 0 rgba(31, 42, 31, 0.95);
  padding: 10px;
}

.episode-public-day-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.episode-public-day-head h3 {
  margin: 0;
  font-size: 14px;
}

.episode-public-day-head span {
  border: 1px solid #9caf88;
  background: #edf7d3;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
}

.episode-public-list {
  display: grid;
  gap: 7px;
}

.episode-public-row {
  display: grid;
  grid-template-columns: 54px minmax(220px, 1.2fr) minmax(150px, 0.7fr) minmax(220px, 1fr) minmax(180px, 0.9fr) minmax(220px, 1fr);
  gap: 9px;
  align-items: stretch;
  border: 1px solid #b9c8a2;
  background: #fbfcf3;
  padding: 8px;
}

.episode-public-block {
  display: grid;
  place-items: center;
  background: #17200f;
  color: #f9fbef;
  font-weight: 900;
}

.episode-public-row strong,
.episode-public-template b,
.episode-public-music b,
.episode-public-separator b,
.episode-public-next b {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

.episode-public-row span {
  display: block;
  margin-top: 3px;
  color: #4e6040;
  font-size: 12px;
  line-height: 1.35;
}

.episode-public-template,
.episode-public-music,
.episode-public-separator,
.episode-public-next {
  border-left: 1px solid #c8d6b5;
  padding-left: 8px;
}

.episode-public-template small,
.episode-public-music small,
.episode-public-separator small,
.episode-public-next small {
  display: block;
  color: #60704d;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.episode-builder-top,
.episode-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.episode-builder-top .shop-copy {
  max-width: 680px;
  color: #405033;
}

.episode-builder-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.episode-builder-stats div,
.episode-builder-panel,
.episode-shooting-card {
  border: 2px solid #1f2a1f;
  background: #fffef7;
  box-shadow: 3px 3px 0 rgba(31, 42, 31, 0.95);
}

.episode-builder-stats div {
  padding: 10px;
}

.episode-builder-stats span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #60704d;
}

.episode-builder-stats strong {
  display: block;
  margin-top: 3px;
  font-size: 22px;
}

.episode-builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 12px;
}

.episode-builder-panel {
  padding: 10px;
}

.episode-builder-panel h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.episode-field-grid,
.episode-block-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.episode-field {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  color: #3f4b33;
}

.episode-field.wide {
  grid-column: 1 / -1;
}

.episode-field textarea {
  min-height: 74px;
  resize: vertical;
  line-height: 1.35;
}

.episode-template-editor {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  font-family: "Courier New", monospace;
  line-height: 1.35;
}

.episode-creator-panel {
  display: grid;
  gap: 8px;
}

.episode-creator-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.episode-day-tabs,
.episode-block-list.horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.episode-day-tabs .active-tab {
  background: linear-gradient(180deg, #d9f99d, #a3e635);
}

.episode-block-board {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
}

.episode-block-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.episode-block-tab {
  width: 100%;
  text-align: left;
  border: 2px solid #1f2a1f;
  background: #f9fbef;
  color: #17200f;
  padding: 8px;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(31, 42, 31, 0.8);
}

.episode-block-tab.active {
  background: #e4f8b8;
  border-color: #4d7c0f;
}

.episode-block-tab strong,
.episode-block-tab span {
  display: block;
}

.episode-block-tab span {
  margin-top: 3px;
  font-size: 11px;
  color: #5b684d;
}

.episode-block-editor {
  min-width: 0;
}

.episode-combination-matrix {
  display: grid;
  gap: 10px;
}

.episode-json-importer {
  display: grid;
  gap: 8px;
  border-color: #4d7c0f;
  background: #f7ffe8;
}

.episode-json-input {
  width: 100%;
  min-height: 112px;
  font-family: "Courier New", monospace;
  line-height: 1.35;
  resize: vertical;
}

.episode-combination-day {
  display: grid;
  gap: 8px;
}

.episode-day-count {
  border: 1px solid #9caf88;
  background: #edf7d3;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
}

.episode-combination-table {
  display: grid;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.episode-combination-head,
.episode-combination-row {
  display: grid;
  grid-template-columns: 64px minmax(110px, 0.7fr) minmax(140px, 0.9fr) 94px minmax(220px, 1.2fr) minmax(220px, 1.2fr) minmax(200px, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 1080px;
}

.episode-combination-head {
  color: #4e6040;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.episode-combination-row {
  border: 1px solid #b9c8a2;
  background: #fbfcf3;
  padding: 6px;
}

.episode-combination-row.active {
  background: #e4f8b8;
  border-color: #4d7c0f;
}

.episode-combination-block {
  min-height: 32px;
  border: 2px solid #1f2a1f;
  background: #17200f;
  color: #f9fbef;
  font-weight: 900;
  cursor: pointer;
}

.template-number-select {
  font-weight: 900;
  text-align: center;
}

.episode-next-code,
.episode-public-template b,
.episode-public-next b {
  font-family: "Courier New", monospace;
  font-weight: 900;
  color: #17200f;
}

.episode-next-code small,
.episode-public-next span,
.episode-public-template span {
  display: block;
  margin-top: 3px;
  color: #60704d;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.compact-cell {
  min-height: 48px;
  resize: vertical;
  line-height: 1.3;
}

.episode-template-number-list {
  display: grid;
  gap: 5px;
  max-height: 132px;
  overflow: auto;
  margin-bottom: 8px;
}

.episode-template-number-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: start;
  border: 1px solid #b9c8a2;
  background: #fbfcf3;
  padding: 6px;
  font-size: 12px;
}

.episode-template-number-row strong {
  color: #17200f;
}

.episode-template-delete {
  padding: 4px 7px;
  font-size: 10px;
}

.episode-constructor.shooting {
  grid-template-rows: auto minmax(220px, 1fr) auto auto;
}

.episode-shooting-card {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 18px;
}

.episode-shooting-card span {
  font-size: 12px;
  font-weight: 700;
  color: #60704d;
}

.episode-shooting-card h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.episode-shooting-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.episode-shots {
  display: grid;
  gap: 8px;
}

.episode-shots div {
  border: 2px solid #1f2a1f;
  background: #f9fbef;
  padding: 10px;
  font-weight: 700;
}

.episode-combo-map {
  display: grid;
  gap: 10px;
}

.episode-combo-list {
  display: grid;
  gap: 6px;
  max-height: 280px;
  overflow: auto;
}

.episode-combo-row {
  display: grid;
  grid-template-columns: 52px 110px 150px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid #9caf88;
  background: #f9fbef;
  padding: 8px;
  font-size: 12px;
}

.episode-combo-row strong {
  font-family: "Courier New", monospace;
  font-size: 14px;
}

.episode-combo-row span {
  min-width: 0;
}

.window[data-app-id="under-maps"] .status-panel {
  border-color: #155e75;
  background: linear-gradient(180deg, #a5f3fc, #22d3ee);
  color: #062e39;
}

.window[data-app-id="xp-agar-strike"] .status-panel {
  border-color: #1d4ed8;
  background: linear-gradient(180deg, #bfdbfe, #60a5fa);
  color: #07152c;
}

.recording-studio-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 12px;
  box-sizing: border-box;
}

.studio-window-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #f6e4ca;
}

.recording-studio-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  border: 2px solid rgba(255,213,153,0.25);
  border-radius: 18px;
  background: #050505;
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}

.under-maps-shell .shop-copy {
  max-width: 720px;
}

.under-maps-frame {
  border-color: rgba(165, 243, 252, 0.32);
  border-radius: 14px;
}

.xp-agar-shell .shop-copy {
  max-width: 760px;
}

.xp-agar-frame {
  border-color: rgba(147, 197, 253, 0.32);
  border-radius: 12px;
}

.xp-agar-thumb {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, #0055e5 0 50%, #22c55e 50% 100%);
  border: 2px solid #111827;
}

.xp-agar-thumb::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid #111827;
  border-radius: 50%;
  background: #f8fafc;
  box-shadow: 18px 14px 0 #facc15;
}

.xp-agar-thumb span {
  position: relative;
  width: 18px;
  height: 4px;
  margin-top: 10px;
  border-radius: 99px;
  background: #ef4444;
}

.creator-pro-shell .shop-copy {
  max-width: 720px;
}

.sales-goals-shell .shop-copy {
  max-width: 690px;
}

.sales-goals-frame {
  background: #111827;
}

.window[data-app-id="chat-global"] {
  background:
    linear-gradient(180deg, #0c0c0c 0%, #151515 100%);
  border: 2px solid #334f14;
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(180,255,107,0.1),
    0 0 0 1px rgba(13,18,8,0.9),
    0 16px 32px rgba(0,0,0,0.45);
  overflow: hidden;
}

.window[data-app-id="chat-global"].active .window-header,
.window[data-app-id="chat-global"].inactive .window-header {
  background:
    linear-gradient(90deg, #0f1807 0%, #27490f 35%, #7ff013 100%);
  color: #f3ffe1;
}

.window[data-app-id="chat-global"] .window-header {
  height: 32px;
  padding: 4px 7px;
  border-bottom: 1px solid rgba(176,255,90,0.25);
}

.window[data-app-id="chat-global"] .header-title {
  font-size: 13px;
  letter-spacing: 0.2px;
  text-shadow: 0 0 8px rgba(145,255,0,0.22);
}

.window[data-app-id="chat-global"] .win-btn {
  width: 20px;
  height: 20px;
  border: 1px solid #4f7d1b;
  border-radius: 4px;
  background: linear-gradient(180deg, #1f2a12, #12180b);
  color: #dfffaa;
}

.window[data-app-id="chat-global"] .window-body {
  background: #101010;
}

.window[data-app-id="chat-global"] .status-panel {
  border-color: #3c531c;
  background: linear-gradient(180deg, #171d12, #0f130b);
  color: #d7ff9b;
}

.window[data-app-id="users"] {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.42), transparent 18%),
    linear-gradient(180deg, #edf6ff 0%, #c8ddf5 100%);
  border: 1px solid #7fa4cd;
  border-radius: 14px 14px 10px 10px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.94),
    0 12px 28px rgba(32, 69, 113, 0.24);
  overflow: hidden;
}

.window[data-app-id="users"].active .window-header,
.window[data-app-id="users"].inactive .window-header {
  background:
    linear-gradient(90deg, #6f9fd6 0%, #7dbbff 45%, #b8e1ff 100%);
  color: #fff;
}

.window[data-app-id="users"] .window-header {
  height: 33px;
  padding: 4px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.window[data-app-id="users"] .header-title {
  font-size: 13px;
  text-shadow: 0 1px 0 rgba(61,102,149,0.35);
}

.window[data-app-id="users"] .win-btn {
  width: 21px;
  height: 21px;
  border-radius: 8px;
  border: 1px solid rgba(81, 122, 170, 0.8);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(209,228,249,0.98));
  color: #325983;
}

.window[data-app-id="users"] .window-body {
  background: transparent;
  height: calc(100% - 33px);
}

.window[data-app-id="users"] .status-panel {
  border-radius: 999px;
  border-color: #a7c4e2;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(225,238,252,0.98));
}

.window[data-app-id="winamp"] {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.window[data-app-id="winamp"].active .window-header,
.window[data-app-id="winamp"].inactive .window-header {
  background: transparent;
  color: transparent;
}

.window[data-app-id="winamp"] .window-header {
  display: none;
}

.window[data-app-id="winamp"] .header-title {
  display: none;
}

.window[data-app-id="winamp"] .win-btn {
  display: none;
}

.window[data-app-id="winamp"] .window-body {
  background: transparent;
  height: 100%;
}

.window[data-app-id="winamp"] .status-panel {
  display: none;
}

.window[data-app-id="winamp"] .window-statusbar,
.window[data-app-id="winamp"] .window-resizer {
  display: none;
}

.window[data-app-id="winamp"] .window-content {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.msn-layout {
  display: grid;
  grid-template-columns: 188px 1fr;
  height: 100%;
  min-height: 0;
  background:
    linear-gradient(90deg, rgba(7, 42, 86, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.48), rgba(255,255,255,0.08));
}

.msn-sidebar {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.26), transparent 21%),
    linear-gradient(180deg, #2375ba 0%, #265f9f 34%, #173d72 74%, #0c244b 100%);
  color: #e9f3ff;
  padding: 12px 10px;
  border-right: 1px solid #84a9d3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.msn-sidebar::after {
  content: "";
  position: absolute;
  inset: auto -28px -42px 16px;
  height: 110px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.16) 0 1px, transparent 1px 9px);
  opacity: 0.45;
  pointer-events: none;
}

.msn-orb {
  width: 58px;
  height: 58px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 6px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(201,229,255,0.76));
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    0 8px 18px rgba(6, 35, 79, 0.28);
}

.msn-orb span {
  display: block;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

.msn-orb span:nth-child(1) { background: linear-gradient(135deg, #35b8ff, #1368c8); }
.msn-orb span:nth-child(2) { background: linear-gradient(135deg, #45df73, #169b3f); }
.msn-orb span:nth-child(3) { background: linear-gradient(135deg, #ffcf46, #f08c1b); }
.msn-orb span:nth-child(4) { background: linear-gradient(135deg, #ff6b77, #d41438); }

.msn-sidebar > * {
  position: relative;
  z-index: 1;
}

.msn-brand {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(0,0,0,0.28);
}

.msn-subbrand {
  font-size: 11px;
  opacity: 0.9;
  color: #d8ffef;
}

.msn-userpill {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  padding: 8px;
  font-size: 11px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}

.msn-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  background: #31d843;
  box-shadow: 0 0 6px rgba(49, 216, 67, 0.7);
}

.msn-sidebar-copy {
  font-size: 11px;
  line-height: 1.4;
  color: #d7e7ff;
}

.msn-presence-rail {
  display: grid;
  gap: 7px;
}

.msn-presence-card,
.msn-mini-board {
  border: 1px solid rgba(255,255,255,0.34);
  border-radius: 8px;
  background: rgba(2, 18, 44, 0.28);
  padding: 7px 8px;
  color: #eaf4ff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.msn-presence-card strong,
.msn-mini-board strong {
  display: block;
  font-size: 15px;
  color: #ffffff;
  line-height: 1.1;
}

.msn-presence-card span,
.msn-mini-board span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #bfe6ff;
}

.msn-presence-card.glow strong {
  color: #62ff9e;
  text-shadow: 0 0 8px rgba(98,255,158,0.65);
}

.msn-main {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 0;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.82), transparent 21%),
    radial-gradient(circle at right 26%, rgba(82, 201, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(231,241,255,0.96));
}

.msn-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #b8cfea;
  background:
    linear-gradient(90deg, rgba(28, 108, 190, 0.16), rgba(44, 216, 126, 0.12)),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(226,240,255,0.96));
}

.msn-kicker {
  font-size: 10px;
  font-weight: bold;
  color: #13824d;
}

.msn-hero-title {
  margin-top: 2px;
  color: #1d4c7b;
  font-size: 18px;
  font-weight: bold;
}

.msn-hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.msn-hero-pills span {
  border: 1px solid #9fc2e6;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255,255,255,0.8);
  color: #235177;
  font-size: 10px;
  font-weight: bold;
}

.msn-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid #b8cfea;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.95), rgba(219,233,251,0.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95);
}

.msn-add-contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  min-width: 220px;
}

.msn-add-contact .win-input {
  min-width: 0;
}

.msn-add-contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  min-width: 220px;
}

.msn-add-contact .win-input {
  min-width: 0;
}

.msn-title {
  font-size: 15px;
  font-weight: bold;
  color: #1f4975;
  text-shadow: 0 1px 0 rgba(255,255,255,0.85);
}

.msn-caption {
  font-size: 11px;
  color: #6580a2;
}

.msn-chatlog {
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.75), transparent 18%),
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(241,247,255,0.98)),
    repeating-linear-gradient(180deg, transparent 0, transparent 25px, rgba(44,89,138,0.035) 25px, rgba(44,89,138,0.035) 26px);
}

.chat-row {
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.35;
  word-break: break-word;
  max-width: 85%;
  padding: 8px 10px;
  border-radius: 10px 10px 10px 2px;
  border: 1px solid #b8cdeb;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.chat-row.self {
  align-self: flex-end;
  border-radius: 10px 10px 2px 10px;
  background: linear-gradient(180deg, #dbf5ff, #c4ebff);
  border-color: #96c6e6;
}

.chat-row.system {
  max-width: 100%;
  background: linear-gradient(180deg, #fff6d6, #ffefb4);
  border-color: #d8c47b;
}

.chat-row strong {
  color: #1f4d7f;
}

.chat-row-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
}

.chat-message-body {
  min-width: 0;
}

.chat-avatar-spacer {
  width: 38px;
  min-height: 1px;
}

.chat-avatar-button .user-avatar,
.member-avatar-button .user-avatar {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.16);
}

.chat-author-button strong {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.msn-compose {
  padding: 10px 12px 12px;
  border-top: 1px solid #c2d6ef;
  background:
    linear-gradient(180deg, rgba(239,246,255,0.96), rgba(214,229,247,0.98));
}

.msn-compose .chat-form,
.msn-compose .private-form {
  grid-template-columns: 1fr auto;
}

.msn-compose .win-input {
  border: 1px solid #8fb0d8;
  border-radius: 14px;
  padding: 8px 10px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(83, 124, 172, 0.12);
}

.msn-action {
  border: 1px solid #4e7cb1;
  background: linear-gradient(180deg, #ffffff, #e8f2ff 48%, #cfe3ff 100%);
  color: #1b4570;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92);
}

.msn-action:hover {
  border-color: #20733e;
  background: linear-gradient(180deg, #ffffff, #eef8ff 46%, #d9ffe8 100%);
  color: #145b34;
}

.msn-contact-list {
  display: grid;
  gap: 8px;
}

.msn-window .note-box {
  border: 1px solid #a9c7e8;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(225,240,255,0.96));
  color: #315b86;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.92),
    0 1px 0 rgba(164, 195, 228, 0.42);
}

.msn-contact {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid #b8cee7;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(233,242,255,0.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.96),
    0 1px 0 rgba(175, 199, 228, 0.45);
}

.msn-request-actions,
.discord-request-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.msn-request-actions .action-btn,
.discord-request-actions .action-btn {
  white-space: nowrap;
}

.msn-avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #2d74b5, #86c7ff);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

.msn-avatar.mini {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  font-size: 10px;
}

.msn-avatar.mini {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 10px;
}

.msn-contact-meta {
  font-size: 11px;
  color: #516c8d;
}

.msn-contact-meta strong {
  display: block;
  font-size: 12px;
  color: #254b75;
  margin-bottom: 2px;
}

.msn-contact-action {
  padding: 5px 10px;
}

.inline-global-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 6px;
}

.user-panel {
  display: grid;
  gap: 12px;
}

.user-hero {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #9eb6d4;
  background: linear-gradient(180deg, #f8fbff, #dceafe);
}

.user-hero-left {
  display: flex;
  gap: 12px;
  align-items: center;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #9bb5d5;
  background: linear-gradient(135deg, #2c6ca8, #7db0e4);
}

.user-avatar.large {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.msn-contact:hover {
  border-color: #6fb0e5;
  background:
    linear-gradient(90deg, rgba(220,255,234,0.82), transparent 52%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(233,242,255,0.98));
}

.user-avatar.mini {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.user-avatar.fallback {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: bold;
}

.avatar-trigger,
.chat-author-button {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.member-avatar-button,
.chat-avatar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-hero-name {
  font-size: 20px;
  font-weight: bold;
  color: #1f456f;
}

.user-hero-mail,
.user-hero-copy,
.shop-copy {
  font-size: 12px;
  color: #55708f;
}

.economy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
}

.config-shell,
.public-profile-shell {
  display: grid;
  gap: 12px;
}

.config-grid,
.public-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.public-profile-grid.single {
  grid-template-columns: 1fr;
}

.config-card,
.public-profile-card {
  border: 2px inset var(--win-silver);
  background: rgba(255, 255, 255, 0.92);
  padding: 10px;
}

.config-card h3,
.public-profile-card h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

.config-field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #4e6785;
}

.public-profile-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid #cbb8a5;
  background: linear-gradient(180deg, #fff8ee, #f7ebdb);
  padding: 12px;
}

.public-profile-copy {
  display: grid;
  gap: 6px;
}

.public-profile-name {
  font-size: 22px;
  font-weight: bold;
  color: #6e4218;
}

.public-profile-role,
.public-profile-bio,
.public-profile-links,
.public-track-meta span {
  font-size: 12px;
  color: #6f5d4f;
}

.public-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.public-profile-links a {
  color: #8d3e00;
}

.public-track-list {
  display: grid;
  gap: 8px;
}

.public-track-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid #d8c0a6;
  background: #fffaf2;
}

.public-track-cover {
  width: 42px;
  height: 42px;
  border: 1px solid #c7b091;
  background: linear-gradient(180deg, #ffe9cb, #f5d0a2);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #6b461f;
  font-weight: bold;
}

.public-track-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-track-meta {
  display: grid;
  gap: 3px;
}

.economy-card,
.user-card {
  border: 1px solid #a4bddb;
  background: linear-gradient(180deg, #fff, #edf4ff);
  padding: 10px;
}

.economy-card span,
.economy-card small {
  display: block;
}

.economy-card strong {
  font-size: 24px;
  color: #173f69;
}

.user-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.user-columns.bottom {
  align-items: start;
}

.user-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #21486f;
}

.form-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.generated-codes-output {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  font-family: "Courier New", monospace;
  margin-top: 8px;
}

.creative-studio {
  background: linear-gradient(180deg, #fff8ef 0%, #f6ede0 100%);
}

.creative-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.creative-subtitle {
  font-size: 12px;
  color: #6b5846;
  max-width: 520px;
  line-height: 1.4;
}

.creative-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.creative-grid.single {
  grid-template-columns: 1fr;
}

.creative-card {
  border: 2px inset var(--win-silver);
  background: rgba(255, 255, 255, 0.85);
  padding: 10px;
}

.creative-card h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

.creative-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.creative-pill {
  min-width: 0;
}

.creative-pill.active {
  background: linear-gradient(180deg, #ffe2bf, #ffc178);
  border-color: var(--win-white) #9c5f18 #9c5f18 var(--win-white);
}

.creative-textarea {
  min-height: 126px;
  resize: vertical;
  font-family: "Courier New", monospace;
  line-height: 1.4;
}

.creative-textarea.compact {
  min-height: 92px;
}

.creative-status {
  background: #fff3de;
}

.creative-project-list {
  display: grid;
  gap: 8px;
}

.creative-project-card {
  border: 1px solid #caa785;
  background: #fffdf8;
  padding: 8px;
}

.creative-project-card.managed {
  background: linear-gradient(180deg, #fffdf8, #fff3e3);
}

.creative-project-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.creative-project-tagline {
  margin-top: 4px;
  font-size: 12px;
  color: #5e4738;
}

.creative-project-copy,
.creative-project-meta {
  margin-top: 4px;
  font-size: 11px;
  color: #755d4a;
}

.creative-project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 8px;
  font-size: 11px;
  color: #7b624d;
}

.creative-project-links a {
  color: #8d3e00;
}

.creative-project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.creative-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

.creative-status-pill.published {
  background: #dff5df;
  color: #215e2d;
}

.creative-status-pill.draft {
  background: #fff4cc;
  color: #7a5812;
}

.creative-status-pill.archived {
  background: #e8e4df;
  color: #6d6257;
}

.skin-grid {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.skin-card {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid #aac3df;
  background: #fff;
}

.skin-card.active {
  background: linear-gradient(180deg, #edf7ff, #d5ecff);
  border-color: #71a7d8;
}

.skin-preview {
  height: 40px;
  border: 1px solid rgba(0,0,0,0.15);
}

.skin-meta {
  display: grid;
  gap: 2px;
  font-size: 11px;
  color: #5b7390;
}

.disabled-btn {
  opacity: 0.7;
}

.rank-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 8px;
  padding: 8px;
  align-items: center;
  border: 1px solid #b2c8e1;
  background: linear-gradient(180deg, #fff, #eff5ff);
  font-size: 12px;
}

.rank-row.empty {
  grid-template-columns: 1fr;
}

.discord-shell {
  display: grid;
  grid-template-columns: 62px 170px 1fr 180px;
  min-height: 100%;
  padding: 0;
  background:
    linear-gradient(rgba(5, 5, 5, 0.24), rgba(5, 5, 5, 0.78)),
    url("./assets/chat-flames.gif") center bottom / cover no-repeat,
    linear-gradient(rgba(145, 255, 0, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 255, 0, 0.08) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(70, 70, 70, 0.16), transparent 28%),
    linear-gradient(180deg, #090909 0%, #121212 100%);
  background-size: auto, cover, 26px 26px, 26px 26px, auto, auto;
  color: #eef4ff;
}

.discord-servers {
  background: linear-gradient(180deg, #070707 0%, #101010 100%);
  padding: 10px;
  display: grid;
  gap: 10px;
  align-content: start;
  border-right: 1px solid rgba(255,255,255,0.04);
}

.global-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #385014;
  background: linear-gradient(180deg, #1d1d1d, #0f0f0f);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 1px rgba(166, 255, 0, 0.08);
}

.global-badge img {
  width: 24px;
  height: 24px;
}

.global-badge.active {
  background: linear-gradient(180deg, #b8ff34, #7fd10f);
  border-color: #d6ff8a;
  color: #111;
}

.discord-channels,
.discord-members {
  background: linear-gradient(180deg, #101010 0%, #181818 100%);
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
  border-right: 1px solid rgba(255,255,255,0.04);
}

.discord-side-title {
  font-size: 11px;
  color: #baff6b;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(145, 255, 0, 0.15);
}

.discord-channel {
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: #c6d0e0;
  padding: 8px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.discord-channel.active,
.discord-channel:hover {
  background: rgba(145, 255, 0, 0.08);
  border-color: rgba(145, 255, 0, 0.22);
  color: #eaffc0;
}

.discord-main {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 26%),
    linear-gradient(180deg, rgba(17,17,17,0.84) 0%, rgba(10,10,10,0.72) 100%);
  backdrop-filter: blur(1px);
}

.discord-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(8, 9, 12, 0.2);
  box-shadow: inset 0 -1px 0 rgba(145, 255, 0, 0.08);
}

.discord-topbar.compact {
  display: grid;
  gap: 10px;
}

.discord-topbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.discord-title {
  font-size: 16px;
  font-weight: bold;
  color: #f5f7fb;
  letter-spacing: 0.3px;
}

.discord-subtitle,
.discord-side-note,
.discord-member-card span {
  font-size: 11px;
  color: #9aa6bc;
}

.discord-messages {
  overflow-y: auto;
  padding: 14px;
  display: grid;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.54), rgba(0,0,0,0.2)),
    url("./assets/chat-flames.gif") center bottom / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 108, 18, 0.16);
}

.discord-messages .chat-row {
  max-width: 100%;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #edf2f7;
  position: relative;
  padding: 5px 0 8px;
  min-height: 44px;
}

.discord-messages .chat-row-shell {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.discord-messages .chat-message-body {
  min-width: 0;
  padding-top: 2px;
  line-height: 1.45;
}

.discord-messages .chat-avatar-spacer {
  width: 38px;
  min-height: 38px;
}

.discord-messages .chat-row.self {
  background: transparent;
  border-color: rgba(145, 255, 0, 0.22);
}

.discord-messages .chat-row.system {
  background: transparent;
  border-color: rgba(239, 68, 68, 0.22);
}

.discord-messages .chat-row.bot {
  border-color: transparent;
}

.bot-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(7, 10, 18, 0.98));
  color: #d9f3ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.08);
}

.chat-bot-role {
  display: none;
  margin-right: 6px;
  color: #7dd3fc;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.72;
}

.discord-compose {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: linear-gradient(180deg, #0d0d0d 0%, #080808 100%);
  box-shadow: inset 0 1px 0 rgba(145, 255, 0, 0.06);
}

.discord-compose-tools,
.discord-message-row {
  display: grid;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.discord-compose-tools {
  grid-template-columns: auto 1fr;
}

.discord-message-row {
  grid-template-columns: 1fr auto;
  margin-bottom: 0;
}

.discord-color-input {
  width: 42px;
  height: 34px;
  padding: 0;
  border: 1px solid #355014;
  background: #14161c;
  border-radius: 4px;
}

.discord-upload-label,
.discord-blur-toggle {
  font-size: 11px;
  color: #d7e0ef;
}

.discord-upload-label {
  padding: 8px 10px;
  border: 1px solid #355014;
  background: rgba(145, 255, 0, 0.08);
  border-radius: 4px;
  cursor: pointer;
  color: #dfffab;
}

.discord-message-input {
  background: #181b22;
  color: #eef4ff;
  border-color: #355014;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(145, 255, 0, 0.05);
}

.emoji-stack {
  display: grid;
  gap: 8px;
}

.emoji-group summary {
  cursor: pointer;
  font-size: 11px;
  color: #9fb0ca;
  padding: 6px 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30px, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.emoji-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.emoji-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #2b3240;
  background: linear-gradient(180deg, #222733, #151922);
  cursor: pointer;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1;
}

.emoji-btn:hover {
  background: linear-gradient(180deg, #2e3650, #202944);
}

.discord-send {
  background: linear-gradient(180deg, #2f2f2f, #181818);
  color: #fff;
  border-color: #587f20;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(220, 255, 165, 0.12);
}

.discord-member-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  padding: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(145, 255, 0, 0.14);
  border-radius: 4px;
  align-items: center;
}

.discord-contact-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 12px;
}

.discord-contact-input {
  min-width: 0;
  background: #181b22;
  color: #eef4ff;
  border-color: #355014;
  border-radius: 4px;
}

.discord-contact-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.discord-upload-status {
  font-size: 11px;
  color: #9aa6bc;
  display: flex;
  align-items: center;
}

.mobile-global-chat {
  display: block;
}

.discord-messages .chat-row strong {
  color: #9dff52;
  text-shadow: 0 0 8px rgba(145, 255, 0, 0.14);
}

.discord-messages .chat-row span {
  font-weight: 700;
  letter-spacing: 0.1px;
  line-height: 1.45;
}

.chat-strike-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.34);
  color: #fca5a5;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.chat-image-wrap {
  margin-top: 8px;
  max-width: 240px;
  border-radius: 12px;
  overflow: hidden;
}

.chat-image-wrap.blurred .chat-image {
  filter: blur(18px);
  transform: scale(1.06);
}

.chat-image {
  width: 100%;
  display: block;
  object-fit: cover;
}

.chat-local-flag {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  color: #9fb0ca;
}

.undermusic-shell {
  display: grid;
  gap: 12px;
  background: transparent;
  color: #eef6ff;
}

.retro-mp3-shell {
  --lcd-text: #000000;
  --app-bg: #0d0d0d;
  --neon: #39ff14;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  min-height: 100%;
  margin: 0;
  font-family: "VT323", monospace;
  color: var(--neon);
}

.retro-mp3-shell .editor-panel {
  background: #1a1a1a;
  color: var(--neon);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #333;
  width: min(100%, 450px);
  text-align: center;
  z-index: 100;
}

.retro-editor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.retro-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.retro-toggle-wrap input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.retro-switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #374151;
  transition: background 0.2s ease;
}

.retro-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.2s ease;
}

.retro-toggle-wrap input[type="checkbox"]:checked + .retro-switch {
  background: #16a34a;
}

.retro-toggle-wrap input[type="checkbox"]:checked + .retro-switch::after {
  transform: translateX(20px);
}

.retro-label,
.retro-mini-label {
  font-size: 14px;
}

.retro-lcd-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.retro-lcd-controls.hidden,
.retro-mp3-shell .hidden {
  display: none;
}

.retro-mp3-shell #coords-output {
  margin-top: 10px;
  width: 100%;
  background: #000;
  color: var(--neon);
  font-family: monospace;
  font-size: 10px;
  padding: 8px;
  border: 1px solid #333;
  height: 80px;
  resize: none;
}

.retro-mp3-shell .range-input {
  width: 100%;
  accent-color: var(--neon);
}

.retro-mp3-shell .player {
  position: relative;
  width: 400px;
  aspect-ratio: 500 / 778;
  background: transparent;
  border-radius: 30px;
  overflow: visible;
  user-select: none;
  cursor: grab;
}

.retro-player-close {
  position: absolute;
  top: 17.3%;
  left: 68.3%;
  z-index: 30;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(126, 255, 60, 0.55);
  border-radius: 6px;
  background: rgba(6, 14, 6, 0.96);
  color: #b9ff73;
  font: 700 12px/1 "Tahoma", sans-serif;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(87, 255, 25, 0.12);
  display: grid;
  place-items: center;
  padding: 0;
}

.retro-player-close:hover {
  background: rgba(18, 40, 18, 0.92);
  box-shadow: 0 0 16px rgba(87, 255, 25, 0.28);
}

@media (max-width: 768px) {
  .retro-player-close {
    top: 17.3%;
    left: 68.3%;
    width: 22px;
    height: 22px;
  }
}

.retro-mp3-shell .skin {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

.retro-mp3-shell .lcd-display {
  position: absolute;
  z-index: 10;
  background:
    linear-gradient(180deg, rgba(174, 255, 141, 0.95), rgba(91, 228, 66, 0.92) 45%, rgba(56, 186, 41, 0.95));
  color: #173200;
  padding: 8px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 10px;
  box-shadow:
    inset 0 0 0 1px rgba(12, 84, 8, 0.45),
    inset 0 10px 18px rgba(255, 255, 255, 0.22),
    inset 0 -12px 20px rgba(10, 74, 12, 0.2),
    0 0 18px rgba(69, 255, 46, 0.16);
}

.retro-mp3-shell .player.power-on .lcd-display {
  opacity: 1;
}

.retro-mp3-shell .lcd-display::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(20, 68, 6, 0.11) 0 2px,
      rgba(255, 255, 255, 0.02) 2px 4px
    );
  opacity: 0.55;
  pointer-events: none;
}

.retro-mp3-shell .player:active {
  cursor: grabbing;
}

.retro-mp3-shell .player:not(.live-mode) .lcd-display {
  cursor: move;
  border: 2px dashed var(--neon);
  background-color: rgba(57, 255, 20, 0.1);
  opacity: 0.8;
  pointer-events: all;
}

.retro-mp3-shell .player.live-mode .lcd-display {
  pointer-events: none;
}

.retro-mp3-shell .btn {
  position: absolute;
  background: rgba(57, 255, 20, 0.3);
  border: 1px dashed var(--neon);
  cursor: move;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: white;
  text-transform: uppercase;
  font-weight: bold;
}

.retro-mp3-shell .player.live-mode .btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
  overflow: hidden;
  box-shadow:
    0 0 12px rgba(57, 255, 20, 0.18),
    inset 0 0 10px rgba(57, 255, 20, 0.08);
}

.retro-mp3-shell .player.live-mode #btn-setup {
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.96), rgba(58, 58, 58, 0.92));
  border: 1px solid rgba(184, 184, 184, 0.45);
  color: #e5f7d6;
  font-size: 7px;
  line-height: 1;
  text-indent: 0;
  overflow: visible;
  box-shadow:
    0 0 10px rgba(0, 0, 0, 0.32),
    inset 0 0 8px rgba(255, 255, 255, 0.06);
}

.retro-mp3-shell .player.live-mode .btn:hover {
  box-shadow:
    0 0 18px rgba(57, 255, 20, 0.32),
    inset 0 0 14px rgba(57, 255, 20, 0.16);
}

.retro-mp3-shell .player.live-mode #btn-setup:hover {
  background: linear-gradient(180deg, rgba(36, 36, 36, 0.98), rgba(78, 78, 78, 0.94));
  box-shadow:
    0 0 12px rgba(0, 0, 0, 0.4),
    inset 0 0 10px rgba(255, 255, 255, 0.08);
}

.retro-mp3-shell .player.live-mode .btn:active {
  box-shadow:
    0 0 24px rgba(57, 255, 20, 0.42),
    inset 0 0 20px rgba(57, 255, 20, 0.22);
}

.retro-mp3-shell .retro-lcd-top,
.retro-mp3-shell .retro-lcd-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: bold;
  position: relative;
  z-index: 1;
}

.retro-mp3-shell .retro-lcd-middle {
  flex-grow: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.retro-mp3-shell .scrolling {
  white-space: nowrap;
  font-size: 1.2rem;
  animation: scroll 12s linear infinite;
}

.retro-mp3-shell .visualizer {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 20px;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.retro-mp3-shell .bar {
  flex: 1;
  background: linear-gradient(180deg, #214d00, #0d2b00);
  height: 2px;
  transition: height 0.1s ease;
}

.retro-mp3-shell #config-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1a1a1a;
  border: 2px solid var(--neon);
  padding: 20px;
  z-index: 200;
  width: min(100%, 350px);
  border-radius: 15px;
  display: none;
  color: white;
}

.retro-mp3-shell #config-modal.open {
  display: block;
}

.retro-modal-tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 16px;
  border-bottom: 1px solid #374151;
  padding-bottom: 8px;
}

.retro-modal-tabs button {
  color: white;
}

.retro-modal-tabs button.active {
  color: var(--neon);
}

.retro-playlist-copy {
  margin-bottom: 10px;
  font-size: 13px;
}

.retro-library-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.retro-filter-btn {
  border: 1px solid rgba(113, 255, 46, 0.25);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: #d4ffbd;
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
}

.retro-filter-btn.active {
  background: rgba(113, 255, 46, 0.18);
  border-color: rgba(113, 255, 46, 0.55);
}

.retro-track-list {
  max-height: 220px;
  overflow-y: auto;
}

.retro-track-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #27272a;
  padding: 8px;
  margin-bottom: 4px;
  border-radius: 8px;
  font-size: 13px;
}

.retro-track-row.active {
  outline: 1px solid rgba(57, 255, 20, 0.65);
}

.retro-track-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.retro-track-meta strong,
.retro-track-meta span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.retro-track-meta span {
  color: #bfc7d1;
  font-size: 12px;
}

.retro-track-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.retro-track-play,
.retro-track-like,
.retro-close-btn {
  background: #374151;
  padding: 8px 12px;
  border-radius: 8px;
  color: white;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.retro-track-like.active {
  background: #166534;
  color: #d9ffd2;
}

.retro-track-empty {
  color: #d5d8df;
  font-size: 13px;
  opacity: 0.85;
  padding: 6px 2px;
}

.music-pending-row {
  display: grid;
  gap: 6px;
}

.music-pending-actions {
  display: flex;
  gap: 8px;
}

.retro-close-btn {
  width: 100%;
  margin-top: 16px;
}

.retro-design-list {
  display: grid;
  gap: 14px;
}

.retro-now-panel {
  display: grid;
  gap: 10px;
}

.retro-now-row {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(113, 255, 46, 0.15);
}

.retro-now-row span {
  color: #9fb69a;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.retro-now-row strong {
  color: #eef6e9;
  font-size: 13px;
  line-height: 1.35;
  word-break: break-word;
}

.retro-now-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.retro-now-btn {
  border: 1px solid rgba(113, 255, 46, 0.28);
  background: linear-gradient(180deg, rgba(32, 32, 32, 0.96), rgba(58, 58, 58, 0.9));
  color: #e5f7d6;
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}

.retro-design-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.undermusic-shell-floating {
  place-items: center;
}

.undermusic-console {
  display: grid;
  justify-items: center;
  background: transparent;
}

.undermusic-interaction {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  transition: transform 120ms ease, filter 120ms ease;
  filter: drop-shadow(0 16px 22px rgba(0,0,0,0.35));
  overflow: visible;
}

.undermusic-device-stage {
  position: absolute;
  inset: 0;
  background-image: url("./player-shell-alpha.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: none;
  transform-origin: center;
  transition: transform 120ms ease, filter 120ms ease;
}

.undermusic-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 120ms ease, filter 120ms ease;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 1;
  pointer-events: none;
  display: block;
}

.undermusic-screen-overlay {
  position: absolute;
  top: 7.8%;
  left: 23.2%;
  width: 53.8%;
  height: 39%;
  padding: 14px 16px 16px;
  border-radius: 24px 24px 14px 14px;
  border: 1px solid rgba(255, 177, 85, 0.32);
  background:
    linear-gradient(180deg, rgba(255,210,141,0.12), transparent 16%),
    linear-gradient(180deg, rgba(127,52,8,0.94), rgba(199,97,26,0.96) 24%, rgba(255,150,69,0.98) 52%, rgba(122,40,13,0.95) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.24),
    inset 0 -10px 16px rgba(73, 22, 4, 0.35);
  overflow: hidden;
  z-index: 2;
}

.undermusic-screen-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(73, 22, 4, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 22, 4, 0.08) 1px, transparent 1px);
  background-size: 100% 12px, 12px 100%;
  opacity: 0.32;
  pointer-events: none;
}

.undermusic-screen-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(46, 10, 2, 0.82);
  letter-spacing: 1px;
}

.undermusic-title {
  margin-top: 10px;
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: bold;
  letter-spacing: 1px;
  color: #2c0d02;
  text-transform: uppercase;
}

.undermusic-copy {
  font-size: 12px;
  opacity: 0.9;
  color: rgba(55, 15, 4, 0.9);
  text-transform: uppercase;
}

.undermusic-source-note,
.undermusic-stack-copy,
.undermusic-stack-note {
  font-size: 11px;
  line-height: 1.45;
}

.undermusic-source-note {
  margin-top: 10px;
  color: rgba(54, 15, 5, 0.84);
}

.undermusic-marquee {
  margin-top: 8px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 11px;
  color: rgba(64, 18, 4, 0.82);
  text-transform: uppercase;
}

.undermusic-marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: under-marquee 12s linear infinite;
}

.undermusic-wavefield {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  margin-top: 8px;
}

.undermusic-wavefield span {
  display: block;
  width: 10px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,244,221,0.92), rgba(120,29,4,0.8));
  transform-origin: center;
  animation: under-wave 1.25s ease-in-out infinite;
}

.undermusic-wavefield span:nth-child(2) { animation-delay: 0.08s; }
.undermusic-wavefield span:nth-child(3) { animation-delay: 0.16s; }
.undermusic-wavefield span:nth-child(4) { animation-delay: 0.24s; }
.undermusic-wavefield span:nth-child(5) { animation-delay: 0.32s; }
.undermusic-wavefield span:nth-child(6) { animation-delay: 0.4s; }
.undermusic-wavefield span:nth-child(7) { animation-delay: 0.48s; }
.undermusic-wavefield span:nth-child(8) { animation-delay: 0.56s; }

.undermusic-eq {
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  gap: 4px;
  align-items: end;
  margin-top: 14px;
  height: 46px;
}

.undermusic-eq span {
  display: block;
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, rgba(255,238,202,0.95), rgba(121,32,8,0.8));
}

.undermusic-cover-mini {
  position: absolute;
  top: 53.8%;
  left: 44.6%;
  width: 10.8%;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(0,0,0,0.4);
  box-shadow: 0 0 0 2px rgba(255,196,118,0.25);
  z-index: 2;
}

.undermusic-hotspot {
  position: absolute;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 3;
  border-radius: 999px;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
  overflow: hidden;
  z-index: 3;
}

.hotspot-play {
  top: 56%;
  left: 42.5%;
  width: 15%;
  height: 18%;
}

.hotspot-prev {
  top: 69%;
  left: 27%;
  width: 17%;
  height: 12%;
}

.hotspot-next {
  top: 69%;
  left: 56.5%;
  width: 17%;
  height: 12%;
}

.hotspot-back {
  top: 79%;
  left: 41%;
  width: 9%;
  height: 10%;
}

.hotspot-forward {
  top: 79%;
  left: 50%;
  width: 9%;
  height: 10%;
}

.undermusic-hotspot:hover {
  box-shadow: 0 0 0 1px rgba(255, 199, 118, 0.28);
}

.undermusic-hotspot:active ~ .undermusic-screen-overlay,
.undermusic-hotspot:active ~ .undermusic-cover-mini,
.undermusic-interaction.pressed .undermusic-screen-overlay,
.undermusic-interaction.pressed .undermusic-cover-mini {
  filter: brightness(1.12);
  transform: scale(0.992);
}

.undermusic-interaction.pressed .undermusic-device-stage,
.undermusic-hotspot:active ~ .undermusic-device-stage {
  filter: brightness(1.12);
  transform: scale(0.992);
}

.undermusic-player,
.undermusic-stack-note {
  padding: 0 6px;
  color: #c4d3c6;
}

.undermusic-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.music-track {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.music-track.active {
  border-color: rgba(130, 255, 85, 0.38);
  background: rgba(94, 255, 0, 0.08);
}

@keyframes under-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes under-wave {
  0%, 100% {
    transform: scaleY(0.35);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.music-track-cover {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.3);
  color: #fff;
  overflow: hidden;
}

.music-track-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-track-meta {
  display: grid;
  gap: 2px;
}

.music-track-meta span {
  font-size: 11px;
  color: #b8c9da;
}

.slot98-shell {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  background: #1e4ea1;
}

.slot98-left,
.slot98-right {
  display: grid;
  gap: 12px;
}

.slot98-headerbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: #000;
  color: #ffeb57;
  padding: 10px;
  font-family: "Courier New", monospace;
  font-weight: bold;
}

.slot98-machine {
  background: linear-gradient(145deg, #111, #333 45%, #000);
  border: 4px solid #888;
  padding: 16px;
  color: #fff;
}

.slot98-reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: #000;
  border: 2px solid #222;
  padding: 10px;
  min-height: 240px;
}

.slot98-reel {
  height: 220px;
  background: #fff;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot98-reel img {
  width: 86%;
  height: 86%;
  object-fit: contain;
}

.slot98-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.slot98-status {
  margin-top: 12px;
  font-size: 12px;
  font-weight: bold;
  color: #92d1ff;
  min-height: 18px;
}

.slot98-card {
  background: #eef4ff;
  border: 2px inset var(--win-silver);
  padding: 10px;
  color: #000;
}

.slot98-card h3 {
  margin: 0 0 8px;
  color: #21486f;
  font-size: 14px;
}

.slot98-album {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.slot98-album-panel {
  display: grid;
  margin-top: 10px;
}

.slot98-album-panel.open {
  display: grid;
}

.slot-album-card {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid #acc4e0;
  padding: 6px;
  font-size: 11px;
}

.slot-album-card.empty {
  opacity: 0.5;
}

.slot-album-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.slot-mini-btn {
  padding: 4px 6px;
  font-size: 10px;
}

.slot98-window-content {
  margin: 0;
  padding: 0;
  border: 0;
  background: #1e4ea1;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-gutter: stable both-edges;
}

.slot98-scene,
.slot98-frame,
.slot98-game-window {
  height: auto;
  min-height: 100%;
}

.slot98-scene {
  position: relative;
  background: #1e4ea1;
  overflow: visible;
}

.slot98-starfield {
  position: absolute;
  inset: 0;
}

.slot98-star {
  position: absolute;
  border-radius: 999px;
  background: #fff;
  opacity: 0;
  animation: slot98Blink infinite ease-in-out;
}

@keyframes slot98Blink {
  0%, 100% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.2);
  }
}

.slot98-frame {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 12px;
}

.slot98-game-window {
  width: 100%;
  max-width: 560px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  box-shadow: 4px 4px 0 2px #000;
  padding: 2px;
  position: relative;
  min-height: max-content;
}

.slot98-inner-titlebar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  padding: 3px 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: bold;
}

.slot98-mini-controls {
  display: flex;
  gap: 4px;
}

.slot98-ui-btn,
.slot98-menu-item {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  padding: 2px 10px;
  font-size: 11px;
  cursor: pointer;
  font-weight: bold;
}

.slot98-ui-btn:active,
.slot98-menu-item:active {
  border-color: #808080 #fff #fff #808080;
}

.slot98-ui-btn.wide {
  min-width: 110px;
}

.slot98-menubar {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 2px 5px;
  font-size: 12px;
  border-bottom: 1px solid #808080;
  background: #c0c0c0;
}

.slot98-menu-item {
  border-width: 1px;
  padding: 2px 6px;
}

.slot98-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 4px;
  min-width: 220px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  z-index: 20;
  padding: 8px;
}

.slot98-dropdown.show {
  display: block;
}

.slot98-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.slot98-dropdown-note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #8b8b8b;
  font-size: 10px;
  line-height: 1.4;
}

.slot98-stage {
  position: relative;
  padding: 18px 18px 14px;
  background: #c0c0c0;
  overflow: visible;
}

.slot98-logo {
  position: absolute;
  top: -70px;
  right: -62px;
  width: 270px;
  pointer-events: none;
  filter: drop-shadow(12px 12px 18px rgba(0, 0, 0, 0.55));
}

.slot98-logo img {
  width: 100%;
  display: block;
}

.slot98-cashbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: #000;
  border: 2px solid #666;
  color: #ffd956;
  font-family: "Courier New", monospace;
  font-weight: bold;
}

.slot98-cash,
.slot98-bet {
  letter-spacing: 0.8px;
}

.slot98-machine-body {
  position: relative;
  background: linear-gradient(145deg, #111 0%, #333 45%, #000 100%);
  border: 6px solid #888;
  border-radius: 4px;
  padding: 18px 18px 12px;
}

.slot98-progress-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.slot98-stat-chip {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(0,0,0,0.16));
  color: #ffe873;
  display: grid;
  gap: 4px;
  font-family: "Courier New", monospace;
}

.slot98-stat-label {
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #9ec9ff;
}

.slot98-heat-meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.slot98-heat-segment {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.slot98-heat-segment.filled {
  background: linear-gradient(90deg, #ff9a3c, #ff4040);
  box-shadow: 0 0 10px rgba(255,104,71,0.45);
}

.slot98-slot-container {
  position: relative;
  display: flex;
  gap: 10px;
  background: #000;
  padding: 10px 72px 10px 10px;
  height: 240px;
  overflow: visible;
  border: 2px solid #222;
}

.slot98-slot-container::after {
  content: "";
  position: absolute;
  top: 0;
  right: 62px;
  bottom: 0;
  left: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.85) 15%,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 0.85) 85%,
    rgba(0, 0, 0, 1) 100%
  );
  z-index: 4;
}

.slot98-reel-shell {
  flex: 1;
  background: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8);
}

.slot98-reel-strip {
  position: absolute;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.slot98-symbol {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.slot98-symbol img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

.slot98-lever-container {
  position: absolute;
  right: 10px;
  top: 30px;
  width: 52px;
  height: 182px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 6;
}

.slot98-lever-container:disabled {
  cursor: wait;
}

.slot98-lever-base {
  position: absolute;
  bottom: 0;
  left: 6px;
  width: 40px;
  height: 40px;
  background: #000;
  border-radius: 50%;
  border: 2px solid #666;
}

.slot98-lever-arm {
  position: absolute;
  bottom: 20px;
  left: 21px;
  width: 12px;
  height: 120px;
  background: linear-gradient(90deg, #666, #eee, #666);
  border-radius: 6px;
  transform-origin: bottom center;
  transition: transform 0.2s;
}

.slot98-lever-knob {
  position: absolute;
  top: -32px;
  left: -14px;
  width: 40px;
  height: 40px;
  background: #d21919;
  border-radius: 50%;
  border: 2px solid #000;
}

.slot98-lever-container.lever-pulled .slot98-lever-arm {
  transform: rotateX(150deg) translateY(-30px);
}

.slot98-floppy-slot {
  position: relative;
  margin-top: 15px;
  height: 16px;
  background: #2a2a2a;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot98-floppy-hole {
  width: 80%;
  height: 6px;
  background: #000;
  border-radius: 1px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 1);
  position: relative;
  z-index: 3;
}

.slot98-ticket {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  width: 90px;
  height: 90px;
  background: #fff;
  border: 3px solid #ddd;
  padding: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
  z-index: 2;
  transition: transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  border-radius: 2px;
}

.slot98-ticket.slide-up {
  transform: translateX(-50%) translateY(-105px);
  opacity: 1;
}

.slot98-ticket img {
  width: 75%;
  height: 75%;
  object-fit: contain;
  margin-bottom: 2px;
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.2));
}

.slot98-ticket-label {
  font-size: 7px;
  color: #d00;
  letter-spacing: 0.8px;
}

.slot98-footerbar {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: #b5b5b5;
  padding: 8px;
  border: 2px solid #7d7d7d;
}

.slot98-status-text {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  color: #000;
}

.slot98-footer-actions {
  display: flex;
  gap: 6px;
}

.slot98-result-note {
  margin-top: 8px;
  padding: 7px 9px 0;
  border-top: 1px dashed rgba(255,255,255,0.12);
  font-size: 11px;
  color: #e3f0ff;
  min-height: 18px;
}

.slot98-panels {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.slot98-sidecard {
  background: #eef4ff;
  border: 2px inset var(--win-silver);
  padding: 10px;
}

.slot98-side-title {
  margin-bottom: 8px;
  color: #21486f;
  font-size: 14px;
  font-weight: bold;
}

.slot98-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.slot98-code-input {
  min-width: 0;
}

.slot98-album-meta {
  margin-bottom: 8px;
  font-size: 11px;
  color: #496785;
}

.slot98-inventory-toggle {
  margin-top: 10px;
}

.slot98-inventory-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.slot98-side-note {
  font-size: 11px;
  color: #496785;
}

.slot98-inventory {
  display: none;
  gap: 8px;
  margin-top: 10px;
}

.slot98-inventory.open {
  display: grid;
}

.slot98-inventory-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid #b2c8e1;
  background: linear-gradient(180deg, #fff, #eff5ff);
}

.slot98-inventory-meta {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  align-items: center;
}

.slot98-inventory-meta img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid #9fb3ca;
  background: #fff;
}

.slot98-inventory-meta div {
  display: grid;
  gap: 2px;
}

.slot98-inventory-meta span,
.slot98-inventory-empty {
  font-size: 11px;
  color: #496785;
}

.album-progress-row {
  grid-template-columns: 32px 1fr auto auto;
}

body[data-chat-skin="matrix"] .discord-messages .chat-row,
body[data-chat-skin="matrix"] .private-messages .chat-row {
  color: #80ff95;
  background: linear-gradient(180deg, #001d11, #052b1a);
  border-color: #165f35;
}

body[data-chat-skin="lava"] .discord-messages .chat-row,
body[data-chat-skin="lava"] .private-messages .chat-row {
  color: #ffe2d9;
  background: linear-gradient(180deg, #35100d, #6e1c10);
  border-color: #b64d32;
}

body[data-chat-skin="ice"] .discord-messages .chat-row,
body[data-chat-skin="ice"] .private-messages .chat-row {
  color: #18486a;
  background: linear-gradient(180deg, #f6fdff, #caeeff);
  border-color: #7ebfe3;
}

.window:not([data-app-id="winamp"]) {
  background: var(--win-silver);
  border: 1px solid var(--win-border-dark);
  border-radius: 8px 8px 3px 3px;
  box-shadow: 3px 6px 18px rgba(0, 0, 0, 0.45);
}

.window:not([data-app-id="winamp"]).active .window-header,
.window:not([data-app-id="winamp"]).inactive .window-header {
  height: 30px;
  min-height: 30px;
  padding: 0 4px 0 8px;
  border-bottom: 1px solid #0a246a;
  border-radius: 6px 6px 0 0;
  color: #fff;
  font-family: "Trebuchet MS", Tahoma, Arial, sans-serif;
  background: linear-gradient(180deg, var(--win-blue-light) 0%, var(--win-blue-dark) 45%, var(--win-blue-mid) 55%, var(--win-blue-dark) 100%);
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.45);
}

.window:not([data-app-id="winamp"]).inactive .window-header {
  background: linear-gradient(180deg, #a7bee2 0%, #7894c3 48%, #637faf 100%);
}

.window:not([data-app-id="winamp"]) .header-title {
  color: #fff;
  font-size: 12.5px;
  font-weight: bold;
  letter-spacing: 0;
}

.window:not([data-app-id="winamp"]) .win-btn {
  width: 21px;
  height: 19px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 3px;
  background: linear-gradient(180deg, #78b1ff, #1652c9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.window:not([data-app-id="winamp"]) .header-controls .win-btn[data-action="close"] {
  background: linear-gradient(180deg, #f37b73, var(--xp-red));
}

.window:not([data-app-id="winamp"]) .window-body,
.window:not([data-app-id="winamp"]) .window-statusbar {
  background: var(--win-silver);
}

.window:not([data-app-id="winamp"]) .window-content {
  border: 1px solid #7f9db9;
  background: #fff;
}

.window:not([data-app-id="winamp"]) .status-panel {
  color: #000;
  border-color: #aca899 #fff #fff #aca899;
  background: #f4f1e7;
}

.action-btn,
.message-send {
  border: 1px solid #8c8c8c;
  border-radius: 2px;
  background: linear-gradient(180deg, #fff, #dedede);
  box-shadow: inset 0 1px 0 #fff;
}

.action-btn:active,
.message-send:active {
  background: linear-gradient(180deg, #d6d6d6, #fff);
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.28);
}

@media (max-width: 768px) {
  .desktop-shortcuts {
    gap: 10px;
    left: 8px;
    top: 8px;
  }

  .window {
    min-width: 0;
    min-height: 0;
  }

  .window-header {
    cursor: default;
  }

  .window-resizer {
    display: none;
  }

  .window-content {
    margin: 4px;
    padding: 6px;
  }

  .systray {
    min-width: 110px;
    gap: 4px;
  }

  #online-indicator {
    display: none;
  }

  .msn-layout {
    grid-template-columns: 1fr;
  }

  .msn-sidebar {
    display: none;
  }

  .msn-main {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .msn-hero {
    padding: 10px;
    align-items: flex-start;
  }

  .msn-hero-title {
    font-size: 16px;
    line-height: 1.15;
  }

  .msn-hero-pills {
    gap: 4px;
  }

  .msn-hero-pills span {
    padding: 3px 6px;
    font-size: 9px;
  }

  .msn-topbar {
    display: grid;
    padding: 9px 10px;
  }

  .msn-add-contact {
    min-width: 0;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .msn-chatlog {
    padding: 10px;
  }

  .msn-contact-list {
    gap: 7px;
  }

  .msn-contact {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .msn-contact .msn-contact-action,
  .msn-request-actions,
  .msn-contact > .msn-contact-meta:last-child {
    grid-column: 2;
    justify-content: flex-start;
  }

  .msn-window .note-box {
    padding: 9px 10px;
    font-size: 11px;
  }

  .user-columns,
  .discord-shell {
    grid-template-columns: 1fr;
  }

  .slot98-shell {
    grid-template-columns: 1fr;
  }

  .slot98-progress-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .slot98-window-content {
    overflow: auto;
  }

  .slot98-game-window {
    max-width: 100%;
  }

  .creative-grid {
    grid-template-columns: 1fr;
  }

  .creative-hero {
    flex-direction: column;
  }

  .episode-builder-top,
  .episode-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .episode-builder-stats,
  .episode-builder-layout,
  .episode-field-grid,
  .episode-block-fields,
  .episode-block-board {
    grid-template-columns: 1fr;
  }

  .episode-block-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .episode-block-tab {
    min-width: 180px;
  }

  .episode-combination-table {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .episode-combination-head,
  .episode-combination-row {
    min-width: 760px;
  }

  .episode-public-top,
  .episode-public-day-head {
    flex-direction: column;
    align-items: stretch;
  }

  .episode-public-row {
    grid-template-columns: 1fr;
  }

  .episode-public-template,
  .episode-public-next {
    border-left: 0;
    border-top: 1px solid #c8d6b5;
    padding-left: 0;
    padding-top: 8px;
  }

  .config-grid,
  .public-profile-grid,
  .public-profile-hero {
    grid-template-columns: 1fr;
  }

  .slot98-stage {
    padding: 12px 10px 12px;
  }

  .slot98-logo {
    top: -28px;
    right: -6px;
    width: 120px;
  }

  .slot98-cashbar {
    margin-top: 24px;
    font-size: 11px;
    padding: 8px;
  }

  .slot98-slot-container {
    height: 220px;
    padding-right: 58px;
  }

  .slot98-lever-container {
    right: 4px;
    top: 22px;
    transform: scale(0.84);
    transform-origin: top right;
  }

  .slot98-album {
    grid-template-columns: repeat(2, 1fr);
  }

  .slot98-inventory-actions {
    flex-direction: column;
  }

  .discord-compose-tools {
    grid-template-columns: 1fr;
  }

  .discord-servers,
  .discord-channels {
    display: none;
  }

  .discord-members {
    display: none;
  }

  .discord-topbar-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .chat-avatar-spacer {
    width: 28px;
  }
}
