/* Base reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: Tahoma, Verdana, Segoe UI, sans-serif;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M0,0 L0,12 L4,8 L7,14 L9,13 L6,7 L11,7 Z" fill="white" stroke="black" stroke-width="1"/></svg>'), auto;
}

button, .char-tab, a {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><circle cx="10" cy="10" r="8" fill="rgba(100,200,255,0.3)" stroke="cyan" stroke-width="2"/><circle cx="10" cy="10" r="3" fill="cyan"/></svg>'), pointer;
}

/* Full Desktop */
.desktop {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-bottom: 50px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.15), transparent 55%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.15), transparent 55%),
    url("assets/pics/ice-age.jpg") center / cover no-repeat,
    #07213e;
}

/* Main game window */
.game-window {
  position: relative;
  width: 90%;
  max-width: 1600px;
  height: calc(100vh - 92px);
  max-height: none;
  background: rgba(2, 10, 25, 0.98);
  border-radius: 8px 8px 10px 10px;
  border: 1px solid rgba(58, 125, 255, 0.8);
  box-shadow:
    0 0 0 1px rgba(10, 30, 60, 0.9),
    0 0 0 2px rgba(100, 170, 255, 0.5),
    0 20px 60px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* XP Taskbar */
.xp-taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(180deg, #2a5fa8 0%, #1a4585 100%);
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
  z-index: 2000;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.5);
}

.start-button {
  background: linear-gradient(180deg, #5a9f5a 0%, #2d7d2d 100%);
  border: 2px outset #4a8f4a;
  border-radius: 4px;
  padding: 3px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.start-button:hover {
  background: linear-gradient(180deg, #6aaf6a 0%, #3d8d3d 100%);
}

.start-button:active {
  border-style: inset;
}

/* Taskbar Items*/
.taskbar-items {
  flex: 1;
  display: flex;
  gap: 2px;
  min-width: 0;
}

.taskbar-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3px 12px;
  color: white;
  font-size: 11px;
  border-radius: 3px;
  max-width: 160px;
  white-space: nowrap;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.taskbar-item.active {
  background: linear-gradient(180deg, #4a8fff 0%, #2a6fdf 100%);
  border: 2px inset rgba(255, 255, 255, 0.3);
}

.about-button {
  background: linear-gradient(180deg, #4a8fff 0%, #2a6fdf 100%);
  border: 2px inset rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  padding: 3px 12px;
  margin-left: 2px;
  display: flex;
  align-items: center;
  color: white;
  font-size: 11px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.about-button:hover {
  background: linear-gradient(180deg, #5b9fff 0%, #3b7fef 100%);
}

.about-button:active {
  border-style: inset;
  background: linear-gradient(180deg, #3e7fe0 0%, #2255b5 100%)
}

.system-tray {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  color: white;
}

/* About pop-up styles */
.popup-window {
  position: fixed;
  top: 20%;
  left: 20%;
  width: 280px;
  max-width: 90vw;
  background: #0b1630;
  border-radius: 6px;
  border: 1px solid rgba(80, 150, 255, 0.8);
  box-shadow:
    0 0 0 1px rgba(10, 30, 60, 0.8),
    0 18px 40px rgba(0, 0, 0, 0.9);
  color: #e4f0ff;
  font-size: 12px;
  z-index: 3000;
  overflow: hidden;
}

.popup-window.hidden {
  display: none;
}

/* XP style titlebar for popup */
.popup-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 8px;
  background: linear-gradient(to right, #1a4c96, #2f74d2);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
  cursor: move;
}

.popup-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popup-close {
  width: 18px;
  height: 16px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.6);
  background: linear-gradient(180deg, #ffd6d6 0%, #e54b4b 100%);
  color: #240000;
  font-weight: bold;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.popup-close:hover {
  filter: brightness(1.06);
}

.popup-body {
  padding: 8px 10px 10px;
}

.popup-text {
  margin: 0 0 6px;
}

.popup-list {
  margin: 0 0 6px;
  padding-left: 14px;
}

.popup-list a {
  color: #9fd7ff;
  text-decoration: none;
}

.popup-list a:hover {
  text-decoration: underline;
}

.popup-footnote {
  margin: 0;
  font-size: 11px;
  color: #9eb8e6;
}

/* Mute Button */
.mute-toggle {
  width: auto;
  height: auto;
  margin-right: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.mute-toggle:hover {
  opacity: 1;
}

.mute-toggle::before {
  content: "🔊";
}

.mute-toggle.muted::before {
  content: "X";
  color: #ff2d2d;
}

.clock {
  font-family: Tahoma, sans-serif;
  font-size: 11px;
}



/* FPS and Save Slots */
.game-meta {
  position: absolute;
  right: 0;
  top: 25%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0px;
  font-family: "Courier New", monospace;
  font-size: 10px;
  color: rgba(206, 229, 255, 0.88);
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.85);
  pointer-events: auto;
}

.meta-fps {
  color: #9fffb0;
}

.meta-save-slot {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  color: rgba(206, 229, 255, 0.85);
  font: inherit;
  text-align: right;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.15s ease, text-shadow 0.15s ease, color 0.15s ease;
}

.meta-save-slot:hover {
  opacity: 1;
}

.meta-save-slot.active {
  color: #9fffb0;
  text-shadow:
    0 0 4px rgba(159, 255, 176, 0.9),
    0 0 10px rgba(159, 255, 176, 0.4);
  opacity: 1;
}

/* Title bar */
.game-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px;
  background: linear-gradient(to right, #16478f, #2c7dd9);
  color: #f7f9ff;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(10, 30, 70, 0.5);
  position: relative;
}

.game-titlebar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    rgba(0, 0, 0, 0.03) 1px,
    rgba(0, 0, 0, 0.03) 2px
  );
  pointer-events: none;
}

.game-title-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.game-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: url("assets/pics/snow.png") center / cover no-repeat;
}

.game-title-text {
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Window Control Buttons */
.game-title-controls {
  display: flex;
  gap: 3px;
}

/* Base XP style button */
.ctrl-dot {
  width: 22px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.6) 0%,
      rgba(255, 255, 255, 0.3) 30%,
      rgba(0, 0, 0, 0.2) 100%
    );
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.1s ease, filter 0.1s ease, box-shadow 0.1s ease;
  font-size: 11px;
  line-height: 1;
}

/* Glyphs for each button */
.ctrl-dot-min::before,
.ctrl-dot-max::before,
.ctrl-dot-close::before {
  position: relative;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 11px;
  font-weight: bold;
}

/* Minimize: small bar */
.ctrl-dot-min {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.6) 0%,
      rgba(180, 220, 255, 0.7) 40%,
      rgba(60, 120, 190, 0.9) 100%
    );
}
.ctrl-dot-min::before {
  content: "_";
  color: #063065;
  transform: translateY(-2px);
}

/* Maximize: square */
.ctrl-dot-max {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.6) 0%,
      rgba(200, 230, 255, 0.7) 40%,
      rgba(80, 140, 210, 0.95) 100%
    );
}
.ctrl-dot-max::before {
  content: "🗖";
  color: #063065;
}

/* Close: red XP style */
.ctrl-dot-close {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 180, 180, 0.9) 40%,
      rgba(190, 40, 40, 1) 100%
    );
}
.ctrl-dot-close::before {
  content: "×";
  color: #240000;
}

/* Hover and pressed states */
.ctrl-dot:hover {
  filter: brightness(1.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ctrl-dot:active {
  transform: translateY(1px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.7),
    inset 0 1px 2px rgba(0, 0, 0, 0.7);
  background-position: 0 1px;
}

/* Layout inside game window */
.game-content {
  flex: 1;
  display: flex;
  padding: 14px;
  gap: 14px;
  background:
    linear-gradient(145deg, rgba(10, 22, 46, 0.9), rgba(6, 16, 36, 0.98));
  position: relative;
}

.game-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 30, 60, 0.03),
    rgba(0, 30, 60, 0.03) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

.character-section,
.info-section {
  position: relative;
  z-index: 2;
}

/* Character select section */

.character-section {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
}

/* Tabs */

.char-tabs {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-left: 7.5px;
  margin-bottom:0;
  position: relative; 
}

.char-tab {
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px 6px 0 0;
  border: 1px solid rgba(58, 125, 255, 0.6);
  border-bottom: none;
  background: 
    linear-gradient(to bottom, 
      rgba(255, 255, 255, 0.08) 0%,
      rgba(100, 160, 240, 0.15) 50%,
      rgba(30, 70, 140, 0.3) 100%
    ),
    linear-gradient(to bottom, #1e4080, #0f2550);
  color: #c5d9ff;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  position: relative;
}

.char-tab::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 4px;
  right: 4px;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
  border-radius: 4px 4px 0 0;
  pointer-events: none;
}

.char-tab:hover {
  background: 
    linear-gradient(to bottom, 
      rgba(255, 255, 255, 0.12) 0%,
      rgba(120, 180, 255, 0.2) 50%,
      rgba(40, 90, 160, 0.35) 100%
    ),
    linear-gradient(to bottom, #2550a0, #153570);
  color: #e0edff;
}

.char-tab.active {
  background: 
    linear-gradient(to bottom,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(140, 200, 255, 0.25) 40%,
      rgba(60, 140, 220, 0.3) 100%
    ),
    linear-gradient(to bottom, #3a7dff, #2460d0);
  color: #ffffff;
  box-shadow: 
    0 0 15px rgba(58, 125, 255, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    0 -2px 8px rgba(58, 125, 255, 0.4);
  border-color: rgba(100, 170, 255, 0.8);
}

.char-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to bottom, #3a7dff, #2460d0);
}

/* Character main area */

.char-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 12px;
  padding: 10px;
  margin-top: 0px;
  border-radius: 10px;
  background: radial-gradient(circle at top left, rgba(80, 176, 255, 0.18), transparent 55%),
              radial-gradient(circle at bottom right, rgba(68, 122, 255, 0.18), transparent 55%),
              rgba(3, 10, 30, 0.96);
  box-shadow: inset 0 0 0 1px rgba(142, 199, 255, 0.35);
}

/* Viewport for 3D  model */

.char-viewport {
  position: relative;
  border-radius: 10px;
  background:
    /* scanlines */
    repeating-linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.2) 0px,
      rgba(0, 0, 0, 0.2) 1px,
      transparent 1px,
      transparent 3px
    ),
    radial-gradient(circle at top, #446b99, #050914 65%);
  box-shadow:
    0 0 0 1px rgba(120, 185, 255, 0.3),
    0 0 22px rgba(37, 137, 255, 0.5),
    inset 0 0 25px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* border glow */
.char-viewport::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 8px;
  border: 1px solid rgba(180, 220, 255, 0.35);
  box-shadow:
    0 0 12px rgba(120, 190, 255, 0.35),
    inset 0 0 8px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

/* animated light sweep */
.char-viewport::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 120%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 15%,
    rgba(180, 225, 255, 0.1) 25%,
    transparent 100%
  );
  mix-blend-mode: screen;
  opacity: 0.3;
  pointer-events: none;
  transform: translateX(-120%);
  animation: viewportSweep 15s linear infinite;
}

@keyframes viewportSweep {
  0%   { transform: translateX(-130%); }
  100% { transform: translateX(350%); }
}


.char-viewport model-viewer {
  width: 100%;
  height: 100%;
  outline: none;
  transform: translateY(6px);
}


.char-label {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform: translate(-50%, 50%);

  display: inline-block;
  padding: 3px 10px;
  border-radius: 500px;

  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;

  background: rgba(3, 18, 46, 0.82);
  color: #eaf3ff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  box-shadow:
    0 0 8px rgba(0, 0, 0, 0.7),
    0 0 10px rgba(154, 204, 255, 0.7);
}


.char-spotlight {
  position: absolute;
  bottom: 10px;
  width: 70%;
  max-width: 240px;
  height: 24px;
  background: radial-gradient(
    ellipse at center,
    rgba(187, 226, 255, 0.95) 0%,
    rgba(120, 180, 255, 0.0) 70%
  );
  filter: blur(1px);
  opacity: 0.95;
}

/* Character Info & Stats */
.char-stats {
  display: block;
  opacity: 0;
  visibility: hidden;
  color: #e4f0ff;
  font-size: 13px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  grid-column: 2;
  grid-row: 1;
}

.char-stats.active {
  opacity: 1;
  visibility: visible;
}

.char-name {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.char-role {
  margin: 0 0 10px;
  font-size: 12px;
  color: #9ec3ff;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.stat-row span {
  flex: 0 0 70px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9eb8e6;
}

.stat-bar {
  flex: 1;
  height: 20px;
  border-radius: 999px;
  background: rgba(24, 65, 146, 0.8);
  overflow: hidden;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.6);
}

.stat-fill {
  height: 100%;
  width: 0;
  background: 
    linear-gradient(90deg, 
      #39e3ff 0%, 
      #5cffdb 25%,
      #3eff9b 50%,
      #5cffdb 75%,
      #39e3ff 100%
    );
  background-size: 200% 100%;
  box-shadow: 
    0 0 8px rgba(57, 227, 255, 0.6),
    0 0 4px rgba(62, 255, 155, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: width 0.7s ease-out;
  position: relative;
  animation: shimmerBar 3s linear infinite;
}

@keyframes shimmerBar {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* Add gloss highlight */
.stat-fill::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  border-radius: 999px 999px 0 0;
}

/* Animated end cap */
.stat-fill::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  bottom: -2px;
  width: 4px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(100, 255, 200, 0.6));
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(100, 255, 200, 0.8);
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.9); }
}

/* Active */
.char-stats.active .stat-fill {
  width: var(--fill-width);
}

/* Not Active */
.char-stats:not(.active) .stat-fill {
  width: 0;
}

/* Flavour Statements */
.char-flavor {
  margin-top: 10px;
  font-size: 12px;
  color: #c0d9ff;
}

/* Character buttons */

.char-buttons {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.btn-primary {
  background: radial-gradient(circle at top, #63f6ff, #1a85ff);
  color: #02101f;
  box-shadow:
    0 0 14px rgba(96, 226, 255, 0.9),
    0 4px 12px rgba(0, 0, 0, 0.9);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-secondary {
  background: linear-gradient(to right, #1f345a, #111d35);
  color: #d3e4ff;
  border: 1px solid rgba(133, 189, 255, 0.7);
}

/* HUD panels */
.info-section {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 6px;
}

.hud-panel {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  background: 
    linear-gradient(135deg, 
      rgba(255, 255, 255, 0.02) 0%,
      transparent 50%
    ),
    linear-gradient(145deg, rgba(8, 20, 45, 0.98), rgba(3, 10, 28, 0.98));
  border-radius: 8px;
  border: 1px solid rgba(80, 150, 255, 0.3);
  box-shadow:
    0 0 0 1px rgba(20, 60, 120, 0.6),
    0 10px 30px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: all 0.3s ease;
}

.hud-panel:hover {
  border-color: rgba(100, 170, 255, 0.5);
  box-shadow:
    0 0 0 1px rgba(30, 80, 150, 0.8),
    0 12px 35px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(58, 125, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Different height ratios for the three panels */
.hud-mission {
  flex-grow: 0.6;
}

.hud-services {
  flex-grow: 1.2; 
}

.hud-contact {
  flex-grow: 0.8;
}

.hud-header {
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #ffffff;
  background: 
    linear-gradient(to bottom,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.03) 40%,
      transparent 60%
    ),
    linear-gradient(to right, #1e5bb0, #2f7ae0, #3a8ff5);
  border-bottom: 1px solid rgba(10, 30, 70, 0.6);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
}

/* Add small status LED */
.hud-header::before {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #5fff9f, #2fdd7f);
  border-radius: 50%;
  box-shadow: 
    0 0 4px rgba(95, 255, 159, 0.8),
    0 0 8px rgba(95, 255, 159, 0.4);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hud-body {
  padding: 8px 12px 14px;
  font-size: 12px;
  color: #d4e6ff;
}

.hud-objective {
  margin: 0 0 4px;
}

.hud-subtitle {
  margin: 6px 0 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #99c5ff;
}

.hud-body > .hud-subtitle:first-child {
  margin-top: 0;
}

.hud-list {
  margin: 0;
  padding-left: 0px;
  list-style: none;
}

.hud-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 3px;
}

.hud-list li::before {
  content: "✽";    /* ❄ could work too*/
  position: absolute;
  left: 0;
  font-size: 12px;
  color: #9fd7ff;
  transition: transform 0.12s ease-out;
}

.hud-list li:hover::before {
  transform: rotate(180deg) scale(1.15);
}

/* Party Invite HUD Panel */
.hud-callout {
  margin: 0 0 9px;
}

.btn-ready {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  background: radial-gradient(circle at top, #13fd3a, #1dbb5f);
  color: #03140b;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow:
    0 0 14px rgba(107, 255, 178, 0.9),
    0 4px 12px rgba(0, 0, 0, 0.9);
}

.btn-ready:hover {
  filter: brightness(1.05);
}

.hud-system-log {
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: #9fd7ff;
  opacity: 0.88;
}

.hud-system-log p {
  white-space: pre-line;
}

/* Mobile / narrow layout */
@media (max-width: 900px) {
  /* Desktop container */
  .desktop {
    align-items: flex-start;
    padding: 8px;
    padding-bottom: 40px;
  }

  /* Game window fills width and can grow taller */
  .game-window {
    width: 100%;
    height: auto;
    max-height: none;
    border-radius: 0;
  }

  /* Stack left and right sections */
  .game-content {
    flex-direction: column;
    padding: 8px;
    gap: 8px;
  }

  .character-section,
  .info-section {
    flex: 0 0 auto;
  }

  /* Character area: model on top, stats below */
  .char-main {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .char-viewport {
    grid-column: 1;
    grid-row: 1;
    min-height: 260px;
  }

  .char-stats {
    grid-column: 1;
    grid-row: 2;
    margin-top: 8px;
  }

  /* Tabs and meta */
  .char-tabs {
    margin-left: 7.5px;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px;
  }

  .char-tab {
    font-size: 10px;
    padding: 6px 10px;
  }

  .game-meta {
    position: static;
    transform: none;
    order: -1;
    width: 100%;
    text-align: left;
    padding-top: 0;
    margin-bottom: 4px;
    font-size: 9px;
  }

  .meta-save-slot {
    display: block;
  }

  /* HUD panels should not stretch weirdly */
  .info-section {
    padding-right: 0;
  }

  .hud-panel {
    flex: 0 0 auto;
  }

  /* Slight size tweaks for small screens */
  .hud-body {
    font-size: 11px;
  }

  .btn,
  .btn-ready {
    font-size: 11px;
    padding: 6px 14px;
  }
}

