/* ==========================================================================
   赤金德州 · interactive desktop
   桌面顶栏 / 桌面图标 / 可拖动窗口 / 任务栏 / 右键菜单 / 响应式
   ========================================================================== */

.screen--desktop {
  display: none;
  background: #07050a;
  overflow: hidden;
}

.screen--desktop.is-active {
  display: flex;
}

.desktop__scene {
  z-index: 0;
}

.desktop__scene .lobby__arch {
  opacity: 0.82;
  filter: saturate(0.82) brightness(0.82);
}

.desktop__scene .lobby__bokeh {
  opacity: 0.6;
}

.desktop-wallmark {
  position: absolute;
  left: 50%;
  top: 13%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
  opacity: 0.055;
  font-family: var(--font-display);
  line-height: 0.9;
  letter-spacing: 0.08em;
  color: var(--gold-0);
}

.desktop-wallmark span {
  font-size: clamp(70px, 12vw, 180px);
  font-weight: 600;
}

.desktop-wallmark em {
  font-size: clamp(22px, 4vw, 58px);
  font-style: normal;
  letter-spacing: 0.34em;
  color: var(--gold-1);
}

/* --------------------------------------------------------------------------
   顶栏
   -------------------------------------------------------------------------- */

.desktop-bar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex: none;
  height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(232, 196, 125, 0.12);
  background:
    linear-gradient(180deg, rgba(23, 13, 16, 0.92), rgba(11, 7, 9, 0.78)),
    radial-gradient(ellipse 50% 200% at 50% 0%, rgba(232, 196, 125, 0.08), transparent 70%);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
}

.desktop-bar__left,
.desktop-bar__right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.desktop-bar__left {
  gap: 18px;
  flex: 1 1 auto;
}

.desktop-bar__right {
  gap: 12px;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.desktop-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.desktop-brand__crest {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(232, 196, 125, 0.34);
  background:
    radial-gradient(circle at 36% 22%, rgba(255, 245, 215, 0.45), transparent 44%),
    linear-gradient(145deg, #9a6d2c, #4c2e0d);
  color: #2b1a06;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 240, 200, 0.4);
}

.desktop-brand__crest .icon {
  width: 16px;
  height: 16px;
}

.desktop-brand__copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}

.desktop-brand__copy b {
  color: var(--gold-0);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.desktop-brand__copy small {
  color: var(--muted-dim);
  font-family: var(--font-num);
  font-size: 6.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
}

/* 桌面用紧凑档案胶囊 */
.profile-chip--desktop {
  min-height: 38px;
  padding: 4px 13px 4px 5px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(48, 30, 34, 0.62), rgba(19, 12, 15, 0.7));
  border-color: rgba(232, 196, 125, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 239, 205, 0.05);
}

.profile-chip--desktop .avatar {
  width: 30px;
  height: 30px;
  flex: none;
}

.profile-chip--desktop .avatar__level {
  width: 14px;
  height: 14px;
  font-size: 7px;
  right: -2px;
  bottom: -2px;
}

.profile-chip--desktop .profile-chip__meta {
  gap: 2px;
}

.profile-chip--desktop .profile-chip__row {
  gap: 8px;
}

.profile-chip--desktop .profile-chip__name {
  max-width: 130px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-chip--desktop .rank-pill {
  padding: 2px 7px;
  font-size: 7.5px;
}

.profile-chip--desktop .rank-pill .icon {
  width: 9px;
  height: 9px;
}

.profile-chip--desktop .profile-chip__row--sub {
  gap: 6px;
  font-size: 7.5px;
}

.profile-chip--desktop .mini-track {
  width: 45px;
  height: 3px;
}

.profile-chip--desktop .mini-track__num {
  font-size: 7px;
}

.desktop-bar__clock {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.desktop-bar__clock strong {
  color: var(--gold-0);
  font-family: var(--font-num);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-shadow: 0 0 18px rgba(232, 196, 125, 0.15);
}

.desktop-bar__clock span {
  margin-top: 3px;
  color: var(--muted-dim);
  font-size: 7px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.desktop-online-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(63, 200, 180, 0.25);
  border-radius: 8px;
  background: rgba(15, 47, 43, 0.28);
  color: var(--green-bright);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}

.desktop-online-chip:hover {
  border-color: rgba(95, 224, 189, 0.55);
  background: rgba(22, 65, 59, 0.44);
}

.desktop-online-chip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 8px rgba(95, 224, 189, 0.8);
  animation: online-pulse 2.4s ease-in-out infinite;
}

.desktop-online-chip em {
  padding-left: 4px;
  border-left: 1px solid rgba(63, 200, 180, 0.2);
  color: var(--muted-dim);
  font-family: var(--font-num);
  font-size: 6px;
  font-style: normal;
  letter-spacing: 0.14em;
}

.desktop-currencies {
  display: flex;
  align-items: center;
  gap: 6px;
}

.currency--desktop {
  height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(232, 196, 125, 0.12);
  border-radius: 8px;
  background: rgba(21, 14, 16, 0.46);
  font-family: var(--font-num);
  font-size: 10px;
}

.currency--desktop .currency__icon {
  width: 18px;
  height: 18px;
}

.currency--desktop .currency__icon .icon {
  width: 10px;
  height: 10px;
}

.desktop-bar__tools {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 3px;
}

.desktop-bar__tools .icon-btn {
  width: 29px;
  height: 29px;
}

.desktop-bar__tools .icon {
  width: 15px;
  height: 15px;
}

/* --------------------------------------------------------------------------
   桌面主体 / 图标
   -------------------------------------------------------------------------- */

.desktop-surface {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 60% at 50% 34%, rgba(255, 222, 167, 0.045), transparent 68%),
    linear-gradient(180deg, rgba(3, 2, 3, 0.08), rgba(3, 2, 3, 0.25));
}

.desktop-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(232, 196, 125, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 196, 125, 0.025) 1px, transparent 1px);
  background-size: 68px 68px;
  opacity: 0.4;
}

.desktop-icons {
  position: absolute;
  left: 14px;
  top: 14px;
  bottom: 14px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 86px;
  padding: 3px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.desktop-icons::-webkit-scrollbar {
  display: none;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 6px 2px 7px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}

.desktop-icon:hover,
.desktop-icon:focus-visible {
  outline: none;
  border-color: rgba(232, 196, 125, 0.18);
  background: rgba(255, 236, 200, 0.055);
  transform: translateY(-1px);
}

.desktop-icon:active {
  transform: translateY(0) scale(0.97);
}

.desktop-icon__tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(232, 196, 125, 0.2);
  border-radius: 12px;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 242, 212, 0.13), transparent 42%),
    linear-gradient(150deg, rgba(67, 42, 37, 0.88), rgba(17, 11, 14, 0.94));
  color: var(--gold-1);
  box-shadow:
    0 7px 18px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 240, 210, 0.1);
  transition: filter var(--dur-fast), box-shadow var(--dur-fast);
}

.desktop-icon:hover .desktop-icon__tile {
  filter: brightness(1.13);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.34),
    0 0 18px rgba(232, 196, 125, 0.12),
    inset 0 1px 0 rgba(255, 240, 210, 0.13);
}

.desktop-icon__tile .icon {
  width: 20px;
  height: 20px;
}

.desktop-icon__tile--gold {
  border-color: rgba(232, 196, 125, 0.42);
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 248, 225, 0.28), transparent 44%),
    linear-gradient(145deg, #7d5726, #3c240c);
  color: #f6ddb0;
}

.desktop-icon__tile--live {
  border-color: rgba(63, 200, 180, 0.3);
  color: var(--green-bright);
}

.desktop-icon__dot {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 9px;
  height: 9px;
  border: 2px solid #150d10;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 8px rgba(95, 224, 189, 0.7);
}

.desktop-icon__label {
  max-width: 100%;
  overflow: hidden;
  font-size: 8.5px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* --------------------------------------------------------------------------
   窗口
   -------------------------------------------------------------------------- */

.desktop-windows {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.desktop-window {
  position: absolute;
  display: flex;
  flex-direction: column;
  width: 460px;
  max-height: calc(100% - 28px);
  pointer-events: auto;
  overflow: hidden;
  border: 1px solid rgba(232, 196, 125, 0.2);
  border-radius: 13px;
  background:
    linear-gradient(157deg, rgba(50, 33, 35, 0.84) 0%, rgba(19, 13, 15, 0.92) 48%, rgba(10, 7, 9, 0.95) 100%);
  box-shadow:
    0 24px 62px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 240, 205, 0.08);
  backdrop-filter: blur(20px) saturate(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
  animation: desktop-window-in 0.32s var(--ease-out) both;
  transition: box-shadow var(--dur-fast), border-color var(--dur-fast), opacity var(--dur-fast), transform var(--dur-fast);
}

.desktop-window::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 0% at 50% 0%, rgba(255, 235, 195, 0.075), transparent 60%),
    linear-gradient(90deg, rgba(232, 196, 125, 0.028), transparent 15%, transparent 85%, rgba(232, 196, 125, 0.025));
}

.desktop-window > * {
  position: relative;
  z-index: 1;
}

.desktop-window.is-active {
  border-color: rgba(232, 196, 125, 0.4);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.6),
    0 0 28px rgba(232, 196, 125, 0.06),
    inset 0 1px 0 rgba(255, 240, 205, 0.12);
}

.desktop-window.is-dragging {
  opacity: 0.95;
  transition: none;
  cursor: grabbing;
}

.desktop-window.is-minimized,
.desktop-window.is-closed {
  display: none;
}

.desktop-window.is-maximized {
  left: 10px !important;
  top: 10px !important;
  width: calc(100% - 20px) !important;
  height: calc(100% - 20px) !important;
  max-height: none;
}

.desktop-window.is-maximized .desktop-window__body {
  width: 100%;
  max-width: 860px;
  max-height: none;
  margin: 0 auto;
  flex: 1 1 auto;
}

.desktop-window.is-maximized .desktop-window__body--play {
  max-width: 780px;
  justify-content: center;
}

@keyframes desktop-window-in {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.desktop-window__bar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
  height: 36px;
  padding: 0 7px 0 11px;
  border-bottom: 1px solid rgba(232, 196, 125, 0.11);
  background: linear-gradient(180deg, rgba(49, 33, 35, 0.6), rgba(22, 14, 17, 0.32));
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.desktop-window.is-dragging .desktop-window__bar {
  cursor: grabbing;
}

.desktop-window__handle {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: none;
  width: 10px;
}

.desktop-window__handle i {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(232, 196, 125, 0.25);
}

.desktop-window__title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  color: var(--gold-1);
}

.desktop-window__title .icon {
  width: 13px;
  height: 13px;
  flex: none;
}

.desktop-window__title b {
  overflow: hidden;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-window__title small {
  overflow: hidden;
  color: var(--muted-dim);
  font-family: var(--font-num);
  font-size: 6px;
  letter-spacing: 0.16em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-window__controls {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}

.desktop-window__controls button {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.desktop-window__controls button:hover {
  background: rgba(255, 239, 205, 0.08);
  color: var(--gold-0);
}

.desktop-window__controls button[data-window-action="close"]:hover {
  background: rgba(181, 45, 53, 0.25);
  color: #ffd7cc;
}

.desktop-window__body {
  min-height: 0;
  flex: 1 1 auto;
  padding: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 196, 125, 0.2) transparent;
}

.desktop-window__body::-webkit-scrollbar {
  width: 5px;
}

.desktop-window__body::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: rgba(232, 196, 125, 0.18);
}

.desktop-window__body--play {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   窗口：牌桌启动器
   -------------------------------------------------------------------------- */

.desktop-play-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 3px 0 1px;
  text-align: center;
}

.desktop-play-head__kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--gold-2);
  font-family: var(--font-num);
  font-size: 6.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.desktop-play-head__kicker i {
  display: block;
  width: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 196, 125, 0.45));
}

.desktop-play-head__kicker i:last-child {
  background: linear-gradient(270deg, transparent, rgba(232, 196, 125, 0.45));
}

.desktop-play-head h2 {
  margin: 0;
  color: var(--gold-0);
  font-family: var(--font-display);
  font-size: 35px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 20px rgba(232, 196, 125, 0.14);
}

.desktop-play-head h2 em {
  color: var(--gold-1);
  font-style: normal;
}

.desktop-play-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 8.5px;
  letter-spacing: 0.05em;
}

.quick-zone--desktop {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.desktop-window .quick-start {
  width: 100%;
  min-height: 70px;
}

.desktop-window .quick-start__copy strong {
  font-size: 19px;
}

.desktop-window .quick-start__copy small {
  font-size: 8.5px;
}

.desktop-window .quick-note {
  justify-content: center;
  font-size: 8px;
}

.desktop-window .quick-note b {
  font-size: 9px;
}

.tier-picker--desktop {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin: 0;
}

.tier-picker--desktop .tier {
  min-height: 68px;
  padding: 8px 5px;
  border-radius: 9px;
}

.tier-picker--desktop .tier__stars {
  font-size: 8px;
  letter-spacing: 0.1em;
}

.tier-picker--desktop .tier b {
  font-size: 11px;
}

.tier-picker--desktop .tier small {
  font-size: 7px;
}

.tier-picker--desktop .tier__badge {
  top: -6px;
  right: 4px;
  padding: 1px 5px;
  font-size: 6.5px;
}

.tier-picker--desktop .tier__lock {
  font-size: 6.5px;
}

.desktop-window__hint {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
  color: var(--muted-dim);
  font-size: 7.5px;
  line-height: 1.5;
}

.desktop-window__hint > span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.desktop-window__hint-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 7px rgba(232, 196, 125, 0.4);
}

/* --------------------------------------------------------------------------
   窗口：档案与赛季
   -------------------------------------------------------------------------- */

.desktop-file-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(232, 196, 125, 0.09);
}

.avatar--file {
  width: 50px;
  height: 50px;
  flex: none;
}

.avatar--file .avatar__level {
  width: 17px;
  height: 17px;
  font-size: 8px;
}

.desktop-kicker {
  display: block;
  color: var(--gold-2);
  font-family: var(--font-num);
  font-size: 6.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.desktop-file-name {
  display: block;
  margin-top: 1px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.desktop-file-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.desktop-file-id {
  margin-left: auto;
  align-self: flex-start;
  color: var(--muted-dim);
  font-family: var(--font-num);
  font-size: 7px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.desktop-season {
  margin-top: 11px;
  padding: 10px 11px;
  border: 1px solid rgba(232, 196, 125, 0.12);
  border-radius: 9px;
  background: rgba(14, 9, 11, 0.34);
}

.desktop-season__top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-season__badge {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: none;
  border-radius: 8px;
  background: linear-gradient(145deg, #dcb56d, #8c6124);
  color: #2b1906;
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 700;
}

.desktop-season__top div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.desktop-season__top b {
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
}

.desktop-season__top small {
  color: var(--muted);
  font-size: 7.5px;
}

.desktop-season__count {
  margin-left: auto;
  color: var(--gold-1);
  font-family: var(--font-num);
  font-size: 10px;
  white-space: nowrap;
}

.desktop-season__track {
  height: 4px;
  margin-top: 9px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.desktop-season__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9b702f, #f4dea9);
  box-shadow: 0 0 10px rgba(232, 196, 125, 0.32);
}

.desktop-season__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  color: var(--muted-dim);
  font-size: 7px;
}

.desktop-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(232, 196, 125, 0.2);
  border-radius: 6px;
  background: rgba(232, 196, 125, 0.06);
  color: var(--gold-1);
  font-size: 7.5px;
  cursor: pointer;
}

.desktop-mini-btn:hover {
  border-color: rgba(232, 196, 125, 0.4);
  background: rgba(232, 196, 125, 0.12);
}

.desktop-mini-btn .icon {
  width: 10px;
  height: 10px;
}

.stat-grid--desktop {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}

.stat-grid--desktop .stat {
  padding: 8px 9px;
  border: 1px solid rgba(232, 196, 125, 0.1);
  border-radius: 8px;
  background: rgba(12, 8, 10, 0.28);
}

.stat-grid--desktop .stat strong {
  font-size: 18px;
}

.stat-grid--desktop .stat span {
  font-size: 7.5px;
}

.desktop-best {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  padding: 7px 1px 0;
  border-top: 1px solid rgba(232, 196, 125, 0.08);
  color: var(--muted);
  font-size: 7.5px;
}

.desktop-best .mini-cards {
  gap: 2px;
}

.desktop-best .mini-cards i {
  display: grid;
  place-items: center;
  width: 14px;
  height: 18px;
  border-radius: 2px;
  background: #f4ead8;
  color: var(--card-black);
  font-family: var(--font-symbol);
  font-size: 8px;
  font-style: normal;
}

.desktop-best b {
  margin-left: auto;
  color: var(--gold-1);
  font-size: 8px;
  font-weight: 500;
}

.desktop-open-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 31px;
  margin-top: 10px;
  padding: 0 10px;
  border: 1px solid rgba(232, 196, 125, 0.17);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(232, 196, 125, 0.08), rgba(232, 196, 125, 0.03));
  color: var(--gold-1);
  font-size: 8.5px;
  cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}

.desktop-open-profile:hover {
  border-color: rgba(232, 196, 125, 0.38);
  background: rgba(232, 196, 125, 0.13);
}

.desktop-open-profile .icon {
  width: 12px;
  height: 12px;
}

/* --------------------------------------------------------------------------
   窗口：今日挑战
   -------------------------------------------------------------------------- */

.desktop-quest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(232, 196, 125, 0.09);
}

.desktop-quest-extra {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--gold-1);
  font-family: var(--font-num);
  font-size: 9px;
}

.desktop-quest-extra .icon {
  width: 12px;
  height: 12px;
}

.desktop-quest {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(232, 196, 125, 0.065);
}

.desktop-quest__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid rgba(232, 196, 125, 0.13);
  border-radius: 8px;
  background: rgba(232, 196, 125, 0.045);
  color: var(--gold-1);
}

.desktop-quest__icon .icon {
  width: 14px;
  height: 14px;
}

.desktop-quest__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1 1 auto;
}

.desktop-quest__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 8.5px;
}

.desktop-quest__row b {
  overflow: hidden;
  color: var(--ink-soft);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-quest__row span {
  flex: none;
  color: var(--gold-1);
  font-family: var(--font-num);
  font-size: 7.5px;
}

.desktop-quest__track {
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
}

.desktop-quest__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9f7432, #e4c179);
}

.desktop-quest__reward {
  flex: none;
  color: var(--green-bright);
  font-family: var(--font-num);
  font-size: 8px;
}

.desktop-intel {
  margin-top: 11px;
  padding: 9px 10px;
  border: 1px solid rgba(232, 196, 125, 0.1);
  border-radius: 9px;
  background: rgba(13, 8, 10, 0.32);
}

.desktop-intel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 8px;
}

.desktop-intel__head > span:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
}

.desktop-intel__head .icon {
  width: 11px;
  height: 11px;
  color: var(--gold-1);
}

.desktop-intel__body {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
}

.desktop-intel__body p {
  margin: 0;
  color: var(--muted);
  font-size: 7.5px;
}

.desktop-intel__body b {
  color: var(--ink-soft);
  font-weight: 500;
}

.desktop-intel__body .intel-avatars {
  flex: none;
}

.desktop-intel__body .mini-avatar {
  width: 19px;
  height: 19px;
}

.desktop-intel__meta {
  display: flex;
  gap: 5px;
  margin-top: 6px;
  color: var(--muted-dim);
  font-size: 6.5px;
}

/* --------------------------------------------------------------------------
   任务栏
   -------------------------------------------------------------------------- */

.desktop-dock {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: none;
  height: 64px;
  padding: 0 14px;
  border-top: 1px solid rgba(232, 196, 125, 0.13);
  background:
    linear-gradient(180deg, rgba(25, 15, 18, 0.86), rgba(9, 6, 8, 0.94)),
    radial-gradient(ellipse 50% 200% at 50% 100%, rgba(126, 49, 43, 0.18), transparent 70%);
  box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(24px) saturate(1.1);
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
}

.desktop-dock__left,
.desktop-dock__tray {
  display: flex;
  align-items: center;
  min-width: 0;
}

.desktop-dock__left {
  gap: 10px;
  flex: 1 1 auto;
}

.desktop-dock__tray {
  gap: 12px;
  flex: none;
}

.desktop-start {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px 0 6px;
  border: 1px solid rgba(232, 196, 125, 0.3);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(232, 196, 125, 0.16), rgba(232, 196, 125, 0.05));
  color: var(--gold-0);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  white-space: nowrap;
}

.desktop-start:hover {
  border-color: rgba(232, 196, 125, 0.55);
  background: linear-gradient(180deg, rgba(232, 196, 125, 0.24), rgba(232, 196, 125, 0.08));
}

.desktop-start__crest {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(145deg, #e0bb77, #9c712f);
  color: #2b1905;
}

.desktop-start__crest .icon {
  width: 13px;
  height: 13px;
}

.desktop-dock__divider {
  width: 1px;
  height: 25px;
  background: rgba(232, 196, 125, 0.12);
}

.desktop-tasks {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.desktop-tasks::-webkit-scrollbar {
  display: none;
}

.desktop-task {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  max-width: 150px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.desktop-task:hover {
  background: rgba(255, 239, 205, 0.06);
  color: var(--ink-soft);
}

.desktop-task.is-active {
  border-color: rgba(232, 196, 125, 0.18);
  background: rgba(232, 196, 125, 0.08);
  color: var(--gold-1);
}

.desktop-task.is-minimized {
  opacity: 0.58;
}

.desktop-task .icon {
  width: 12px;
  height: 12px;
  flex: none;
}

.desktop-task span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.desktop-tray-live {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-dim);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}

.desktop-tray-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-1);
  box-shadow: 0 0 8px rgba(232, 196, 125, 0.42);
}

.desktop-tray-online {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
  font-size: 7.5px;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-tray-online:hover {
  color: var(--green-bright);
}

.desktop-tray-online .icon {
  width: 11px;
  height: 11px;
}

.desktop-dock__clock {
  padding-left: 12px;
  border-left: 1px solid rgba(232, 196, 125, 0.13);
  color: var(--ink-soft);
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   窗口缩放手柄
   -------------------------------------------------------------------------- */

.desktop-window__resize {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 4;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
  touch-action: none;
  opacity: 0;
  transition: opacity var(--dur-fast);
}

.desktop-window__resize::before,
.desktop-window__resize::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 7px;
  height: 1px;
  background: rgba(232, 196, 125, 0.34);
  transform: rotate(-45deg);
  transform-origin: right center;
}

.desktop-window__resize::after {
  width: 4px;
  right: 2px;
  bottom: 6px;
  opacity: 0.55;
}

.desktop-window:hover .desktop-window__resize,
.desktop-window.is-active .desktop-window__resize {
  opacity: 1;
}

.desktop-window.is-resizing {
  transition: none;
}

.desktop-window.is-resizing .desktop-window__resize {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   开始菜单
   -------------------------------------------------------------------------- */

.desktop-start.is-open {
  border-color: rgba(232, 196, 125, 0.55);
  background: linear-gradient(180deg, rgba(232, 196, 125, 0.25), rgba(232, 196, 125, 0.08));
  box-shadow: 0 0 22px rgba(232, 196, 125, 0.1);
}

.desktop-start-menu {
  position: absolute;
  left: 14px;
  bottom: 76px;
  z-index: 90;
  width: 306px;
  padding: 10px;
  border: 1px solid rgba(232, 196, 125, 0.24);
  border-radius: 13px;
  background:
    radial-gradient(ellipse 80% 48% at 50% 0%, rgba(126, 49, 43, 0.18), transparent 70%),
    linear-gradient(160deg, rgba(34, 22, 25, 0.97), rgba(10, 7, 9, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 240, 205, 0.08);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  animation: desktop-start-in 0.18s var(--ease-out) both;
}

.desktop-start-menu[hidden] {
  display: none;
}

@keyframes desktop-start-in {
  from { opacity: 0; transform: translateY(7px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.desktop-start-menu__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 3px 10px;
  border-bottom: 1px solid rgba(232, 196, 125, 0.1);
}

.desktop-start-menu__avatar {
  width: 36px;
  height: 36px;
  flex: none;
}

.desktop-start-menu__avatar .avatar__level {
  width: 14px;
  height: 14px;
  font-size: 7px;
}

.desktop-start-menu__identity {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.desktop-start-menu__identity strong {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-start-menu__identity small {
  color: var(--muted);
  font-size: 7.5px;
}

.desktop-start-menu__identity .desktop-kicker {
  font-size: 6px;
}

.desktop-start-menu__version {
  margin-left: auto;
  align-self: flex-start;
  color: var(--muted-dim);
  font-family: var(--font-num);
  font-size: 6.5px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.desktop-start-menu__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding: 9px 0 7px;
}

.desktop-start-app {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}

.desktop-start-app:hover {
  border-color: rgba(232, 196, 125, 0.15);
  background: rgba(232, 196, 125, 0.07);
}

.desktop-start-app__icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-bottom: 2px;
  border: 1px solid rgba(232, 196, 125, 0.16);
  border-radius: 7px;
  background: rgba(232, 196, 125, 0.055);
  color: var(--gold-1);
}

.desktop-start-app__icon .icon {
  width: 13px;
  height: 13px;
}

.desktop-start-app strong {
  overflow: hidden;
  max-width: 100%;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-start-app small {
  overflow: hidden;
  max-width: 100%;
  color: var(--muted-dim);
  font-size: 6.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-start-menu__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 3px 1px;
  border-top: 1px solid rgba(232, 196, 125, 0.1);
}

.desktop-start-menu__foot button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 7.5px;
  cursor: pointer;
}

.desktop-start-menu__foot button:hover {
  color: var(--gold-1);
}

.desktop-start-menu__foot span {
  color: var(--muted-dim);
  font-family: var(--font-num);
  font-size: 6px;
  letter-spacing: 0.16em;
}

/* --------------------------------------------------------------------------
   桌面右键菜单
   -------------------------------------------------------------------------- */

.desktop-context {
  position: absolute;
  z-index: 120;
  display: flex;
  flex-direction: column;
  width: 172px;
  padding: 5px;
  border: 1px solid rgba(232, 196, 125, 0.22);
  border-radius: 9px;
  background: rgba(17, 11, 13, 0.97);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.desktop-context[hidden] {
  display: none;
}

.desktop-context button,
.desktop-context a {
  display: flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 9px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.desktop-context button:hover,
.desktop-context a:hover {
  background: rgba(232, 196, 125, 0.1);
  color: var(--gold-0);
}

.desktop-context__sep {
  display: block;
  height: 1px;
  margin: 4px 6px;
  background: rgba(232, 196, 125, 0.12);
}

/* --------------------------------------------------------------------------
   响应式：窄屏 / 小高度
   -------------------------------------------------------------------------- */

@media (max-width: 1280px) {
  .desktop-bar {
    gap: 10px;
    padding: 0 12px;
  }

  .desktop-bar__left {
    gap: 10px;
  }

  .desktop-brand__copy {
    display: none;
  }

  .desktop-online-chip em {
    display: none;
  }

  .desktop-currencies {
    gap: 4px;
  }

  .currency--desktop {
    padding: 0 6px;
  }
}

@media (max-width: 1100px), (max-height: 650px) {
  .desktop-bar {
    height: 54px;
  }

  .desktop-brand__copy,
  .profile-chip--desktop .profile-chip__row--sub,
  .desktop-bar__clock {
    display: none;
  }

  .desktop-bar__left,
  .desktop-bar__right {
    flex: 0 1 auto;
  }

  .desktop-bar__right {
    margin-left: auto;
  }

  .desktop-currencies .currency--desktop:nth-child(2) {
    display: none;
  }

  .desktop-icons {
    left: 8px;
    right: 8px;
    top: 7px;
    bottom: auto;
    width: auto;
    height: 58px;
    flex-direction: row;
    gap: 2px;
    padding: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(232, 196, 125, 0.1);
    border-radius: 10px;
    background: rgba(12, 8, 10, 0.28);
  }

  .desktop-icon {
    flex: none;
    width: 62px;
    gap: 3px;
    padding: 4px 2px;
  }

  .desktop-icon__tile {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .desktop-icon__tile .icon {
    width: 16px;
    height: 16px;
  }

  .desktop-icon__label {
    font-size: 7px;
  }

  .desktop-windows {
    top: 74px;
    bottom: 10px;
    left: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 2px 10px;
    overflow-x: hidden;
    overflow-y: auto;
    pointer-events: auto;
  }

  .desktop-window {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-height: none;
    flex: none;
    animation: none;
  }

  .desktop-window.is-maximized {
    height: auto !important;
  }

  .desktop-window__body {
    max-height: none;
    overflow: visible;
  }

  .desktop-window__bar {
    cursor: default;
  }

  .desktop-window__handle {
    display: none;
  }

  .desktop-window__controls button[data-window-action="maximize"] {
    display: none;
  }

  .desktop-window__resize {
    display: none;
  }

  .desktop-dock {
    height: 58px;
    padding: 0 8px;
  }

  .desktop-tray-live {
    display: none;
  }

  .desktop-start {
    height: 33px;
    padding: 0 9px 0 4px;
    font-size: 9px;
  }

  .desktop-start__crest {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 760px) {
  .desktop-bar {
    height: 50px;
    padding: 0 9px;
  }

  .desktop-brand {
    display: none;
  }

  .desktop-bar__left {
    flex: 0 0 auto;
    min-width: 0;
  }

  .profile-chip--desktop {
    flex: 0 0 auto;
    width: 154px;
    min-width: 0;
    max-width: 154px;
    min-height: 34px;
    padding: 3px 9px 3px 4px;
  }

  .profile-chip--desktop .profile-chip__meta {
    display: flex;
  }

  .profile-chip--desktop .profile-chip__row {
    flex-wrap: nowrap;
  }

  .profile-chip--desktop .profile-chip__name {
    max-width: 92px;
    font-size: 11px;
  }

  .profile-chip--desktop .rank-pill {
    display: none;
  }

  .desktop-online-chip {
    width: 27px;
    height: 27px;
    padding: 0;
    justify-content: center;
  }

  .desktop-online-chip span,
  .desktop-online-chip em {
    display: none;
  }

  .desktop-currencies {
    display: none;
  }

  .desktop-bar__tools .icon-btn {
    width: 27px;
    height: 27px;
  }

  .desktop-icons {
    top: 6px;
    height: 54px;
  }

  .desktop-windows {
    top: 68px;
    bottom: 6px;
  }

  .desktop-window {
    border-radius: 10px;
  }

  .desktop-window__title small {
    display: none;
  }

  .desktop-window__body {
    padding: 12px;
  }

  .desktop-play-head h2 {
    font-size: 28px;
  }

  .desktop-play-head p {
    font-size: 7.5px;
  }

  .desktop-window .quick-start {
    min-height: 61px;
  }

  .desktop-window .quick-start__copy strong {
    font-size: 16px;
  }

  .desktop-window .quick-start__copy small {
    font-size: 7.5px;
  }

  .desktop-window .quick-start__icon {
    width: 34px;
    height: 34px;
  }

  .desktop-window .quick-start__icon .icon {
    width: 18px;
    height: 18px;
  }

  .tier-picker--desktop {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .tier-picker--desktop .tier {
    min-height: 45px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    text-align: left;
  }

  .tier-picker--desktop .tier__stars {
    width: 34px;
    flex: none;
  }

  .tier-picker--desktop .tier small {
    margin-left: auto;
  }

  .tier-picker--desktop .tier__badge {
    position: static;
    margin-left: 2px;
  }

  .tier-picker--desktop .tier__lock {
    margin-left: auto;
  }

  .desktop-window__hint {
    display: none;
  }

  .desktop-dock {
    height: 53px;
    gap: 5px;
  }

  .desktop-dock__left {
    gap: 5px;
  }

  .desktop-dock__divider {
    height: 20px;
  }

  .desktop-task {
    max-width: 88px;
    padding: 0 6px;
    font-size: 7px;
  }

  .desktop-task span {
    display: none;
  }

  .desktop-tray-online {
    display: none;
  }

  .desktop-dock__clock {
    padding-left: 8px;
    font-size: 9px;
  }

  .desktop-start-menu {
    left: 8px;
    right: 8px;
    bottom: 61px;
    width: auto;
    max-height: min(420px, calc(100% - 120px));
    overflow-y: auto;
  }

  .desktop-start {
    width: 33px;
    height: 33px;
    padding: 0;
    justify-content: center;
  }

  .desktop-start > span:last-child {
    display: none;
  }

  .desktop-start__crest {
    width: 24px;
    height: 24px;
  }

  .desktop-context {
    width: 158px;
  }
}

@media (max-height: 620px) and (min-width: 1101px) {
  .desktop-icons {
    gap: 0;
  }

  .desktop-icon {
    padding: 3px 1px 4px;
  }

  .desktop-icon__tile {
    width: 35px;
    height: 35px;
  }
}

.desktop-tasks__empty { padding: 0 8px; color: var(--muted-dim); font-size: 7.5px; white-space: nowrap; }


/* 在线版：固定布局，不提供拖动 / 缩放 / 窗口控制 */
.desktop-window.is-fixed .desktop-window__bar {
  cursor: default;
  user-select: none;
}
.desktop-window.is-fixed .desktop-window__controls,
.desktop-window.is-fixed .desktop-window__resize {
  display: none;
}

.desktop-window.is-fixed .desktop-window__handle {
  display: none;
}
