* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==================== CSS VARIABLES FOR CUSTOMIZATION ==================== */
/*
  These variables make it easy to customize the theme.
  Later you can replace gradients with background-image: url('your-image.png')
*/
:root {
  /* Window Frame */
  --msn-window-width: 320px;
  --msn-window-border-radius: 8px;
  --msn-window-border: 2px solid #0054e3;
  --msn-window-shadow: 2px 2px 10px rgba(0,0,0,0.5);

  /* Title Bar - Windows XP style gradient */
  --msn-titlebar-bg: linear-gradient(180deg, #0059e8 0%, #0059e8 1px, #2b90ff 2px, #2b90ff 4px, #0053e1 5px, #0053e1 100%);
  --msn-titlebar-height: 26px;
  --msn-titlebar-text-color: #fff;

  /* Window Buttons - Replace with images for custom buttons */
  --msn-btn-size: 21px;
  --msn-btn-bg: linear-gradient(180deg, #2e8bef 0%, #0054d2 100%);
  --msn-btn-border: 1px solid #003c9d;
  --msn-btn-close-bg: linear-gradient(180deg, #e87561 0%, #c43d21 100%);

  /* Content Area */
  --msn-content-bg: #ece9d8;
  --msn-content-border: 1px solid #aca899;

  /* Avatar Frame - Replace with image for custom frame */
  --msn-avatar-size: 96px;
  --msn-avatar-border: 2px solid #7b9ebd;
  --msn-avatar-bg: #fff;

  /* Input Fields */
  --msn-input-bg: #fff;
  --msn-input-border: 1px solid #7b9ebd;
  --msn-input-border-radius: 4px;

  /* Sign In Button - Replace with image for custom button */
  --msn-signin-bg: linear-gradient(180deg, #fff 0%, #ece9d8 100%);
  --msn-signin-border: 1px solid #003c74;
  --msn-signin-border-radius: 4px;
  --msn-signin-text-color: #003c74;

  /* Footer/Status Bar */
  --msn-footer-bg: #ece9d8;
  --msn-footer-border: 1px solid #aca899;

  /* Colors */
  --msn-text-color: #000;
  --msn-link-color: #0066cc;
  --msn-error-color: #cc0000;
  --msn-online-color: #008000;
}

body {
  font-family: 'Tahoma', 'Segoe UI', Geneva, Verdana, sans-serif;
  background-image: url('bliss.jpg');
  background-color: #0078d7;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* ==================== MSN LOGIN SCREEN - WINDOWS XP STYLE ==================== */
.msn-login-screen {
  display: none;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  /* Uses bliss background from body */
  background: transparent;
}

.msn-login-screen.active {
  display: flex;
}

/* Main Window Container */
.msn-window {
  width: var(--msn-window-width);
  border-radius: var(--msn-window-border-radius);
  box-shadow: var(--msn-window-shadow);
  overflow: hidden;
  background: #0054e3;
  border: var(--msn-window-border);
}

/* Title Bar */
.msn-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--msn-titlebar-height);
  padding: 3px 5px 3px 8px;
  /* Replace with: background-image: url('titlebar.png') */
  background: var(--msn-titlebar-bg);
  border-bottom: 1px solid #003399;
  border-radius: 6px 6px 0 0;
}

.msn-title {
  color: var(--msn-titlebar-text-color);
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

/* Window Icon - replace with: background-image: url('icon.png') */
.msn-icon {
  color: #7dd3fc;
  font-size: 14px;
}

/* Window Control Buttons Container */
.msn-window-buttons {
  display: flex;
  gap: 2px;
}

/* Window Buttons - Using custom images */
.msn-btn {
  width: 21px;
  height: 21px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  padding: 0;
}

.msn-btn.minimize {
  background-image: url('minimize.png');
}

.msn-btn.maximize {
  background-image: url('maximize.png');
}

.msn-btn.close {
  background-image: url('close.png');
}

.msn-btn:hover {
  opacity: 0.9;
}

.msn-btn:active {
  opacity: 0.8;
}

/* Menu Bar */
.msn-menu-bar {
  display: flex;
  gap: 15px;
  padding: 2px 8px;
  background: var(--msn-content-bg);
  border-bottom: var(--msn-content-border);
  font-size: 11px;
  color: var(--msn-text-color);
}

.msn-menu-bar span {
  cursor: pointer;
  padding: 2px 4px;
}

.msn-menu-bar span:hover {
  background: #316ac5;
  color: #fff;
}

/* Main Content Area */
.msn-content {
  padding: 20px 25px;
  /* Replace with: background-image: url('content-bg.png') */
  background: var(--msn-content-bg);
}

/* Brand Header */
.msn-header {
  text-align: center;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid #aca899;
}

.msn-brand-icon {
  font-size: 16px;
  color: #0054e3;
}

.msn-brand-text {
  font-size: 14px;
  font-weight: bold;
  color: #0054e3;
  margin-left: 4px;
}

/* Avatar Container - Replace border with: background-image: url('avatar-frame.png') */
.msn-avatar-container {
  text-align: center;
  margin-bottom: 15px;
}

.msn-avatar {
  width: var(--msn-avatar-size);
  height: var(--msn-avatar-size);
  border-radius: 10px;
  border: var(--msn-avatar-border);
  background: var(--msn-avatar-bg);
  object-fit: cover;
  /* For custom frame, use padding and background-image */
  padding: 3px;
}

/* Form Area */
.msn-form {
  margin-bottom: 12px;
}

.msn-label {
  display: block;
  font-size: 11px;
  color: var(--msn-text-color);
  margin-bottom: 3px;
  font-weight: normal;
}

/* Dropdown Select */
.msn-select {
  width: 100%;
  padding: 4px 6px;
  border: var(--msn-input-border);
  border-radius: var(--msn-input-border-radius);
  background: var(--msn-input-bg);
  font-size: 11px;
  font-family: 'Tahoma', sans-serif;
  margin-bottom: 10px;
  cursor: pointer;
}

.msn-select:focus {
  outline: 1px solid #0054e3;
}

/* Text Input */
.msn-input {
  width: 100%;
  padding: 4px 6px;
  border: var(--msn-input-border);
  border-radius: var(--msn-input-border-radius);
  background: var(--msn-input-bg);
  font-size: 11px;
  font-family: 'Tahoma', sans-serif;
  margin-bottom: 10px;
}

.msn-input:focus {
  outline: 1px solid #0054e3;
}

/* Status Row */
.msn-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.msn-status {
  font-size: 11px;
  color: var(--msn-online-color);
  font-weight: normal;
}

.status-dropdown {
  font-size: 8px;
  color: #666;
}

/* Checkboxes */
.msn-checkboxes {
  margin-bottom: 12px;
}

.msn-checkbox {
  display: block;
  font-size: 11px;
  color: var(--msn-text-color);
  margin-bottom: 4px;
  cursor: pointer;
}

.msn-checkbox input {
  margin-right: 5px;
}

/* Sign In Button - Replace with: background-image: url('signin-btn.png') */
.msn-sign-in-btn {
  width: 100%;
  padding: 6px 16px;
  background: var(--msn-signin-bg);
  border: var(--msn-signin-border);
  border-radius: var(--msn-signin-border-radius);
  font-size: 11px;
  font-family: 'Tahoma', sans-serif;
  font-weight: normal;
  cursor: pointer;
  color: var(--msn-signin-text-color);
  /* XP 3D button effect */
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #808080;
}

.msn-sign-in-btn:hover {
  background: linear-gradient(180deg, #fff 0%, #d4d0c8 100%);
}

.msn-sign-in-btn:active {
  background: #d4d0c8;
  box-shadow:
    inset -1px -1px 0 #fff,
    inset 1px 1px 0 #808080;
}

/* Error Message */
.msn-error {
  color: var(--msn-error-color);
  font-size: 11px;
  text-align: center;
  margin-top: 8px;
  min-height: 14px;
}

/* Links Section */
.msn-links {
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid #aca899;
}

.msn-links a {
  display: block;
  font-size: 11px;
  color: var(--msn-link-color);
  text-decoration: none;
  margin-bottom: 3px;
}

.msn-links a:hover {
  text-decoration: underline;
}

/* Footer / Status Bar */
.msn-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px;
  background: var(--msn-footer-bg);
  border-top: var(--msn-footer-border);
  font-size: 11px;
  color: #666;
}

.msn-footer-icon {
  font-size: 12px;
}

/* ==================== HUB SCREEN - MSN STYLE ==================== */
.msn-hub-screen {
  display: none;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: transparent;
}

.msn-hub-screen.active {
  display: flex;
}

.msn-hub-window {
  width: 380px;
}

.msn-hub-content {
  padding: 15px 20px;
}

/* User Profile Section */
.msn-hub-user {
  display: flex;
  align-items: center;
  padding: 10px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.msn-hub-user:hover {
  background: #c1d2ee;
}

.msn-hub-avatar-container {
  margin-right: 12px;
}

.msn-hub-avatar {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 2px solid #7b9ebd;
  background: #fff;
  object-fit: cover;
  padding: 2px;
}

.msn-hub-user-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.msn-hub-username {
  font-size: 13px;
  font-weight: bold;
  color: #000;
}

.msn-hub-status {
  font-size: 11px;
  color: #008000;
  display: flex;
  align-items: center;
  gap: 4px;
}

.msn-online-dot {
  width: 8px;
  height: 8px;
  background: #008000;
  border-radius: 50%;
  display: inline-block;
}

.msn-hub-divider {
  height: 1px;
  background: #aca899;
  margin: 12px 0;
}

/* Activities Section */
.msn-hub-section {
  margin-bottom: 15px;
}

.msn-hub-section-title {
  font-size: 11px;
  color: #0054e3;
  font-weight: bold;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #aca899;
}

.msn-hub-activities {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.msn-hub-activity {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  background: linear-gradient(180deg, #fff 0%, #ece9d8 100%);
  border: 1px solid #7b9ebd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.msn-hub-activity:hover {
  background: linear-gradient(180deg, #c1d2ee 0%, #a8c0e0 100%);
  border-color: #316ac5;
}

.msn-hub-activity:active {
  background: #a8c0e0;
}

.msn-hub-activity-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.msn-hub-activity-disabled:hover {
  background: linear-gradient(180deg, #fff 0%, #ece9d8 100%);
  border-color: #7b9ebd;
}

.msn-hub-activity-icon {
  font-size: 24px;
  margin-right: 12px;
  width: 32px;
  text-align: center;
}

.msn-hub-activity-text {
  display: flex;
  flex-direction: column;
}

.msn-hub-activity-name {
  font-size: 12px;
  font-weight: bold;
  color: #000;
}

.msn-hub-activity-desc {
  font-size: 10px;
  color: #666;
}

.msn-hub-signout {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #aca899;
}

.msn-hub-signout .msn-sign-in-btn {
  width: 100%;
}

/* ==================== FULL SCREEN SCREENS ==================== */
.screen {
  display: none;
}

.screen.active {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(240,248,255,0.92) 100%);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 10px 10px 0 0;
  box-shadow:
    0 0 40px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 8px 32px rgba(31,38,135,0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  min-height: 100vh;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
}

/* Window Title Bar - Aero Glass Style */
.window-header {
  background: linear-gradient(180deg,
    rgba(80,160,220,0.95) 0%,
    rgba(40,120,200,0.9) 40%,
    rgba(30,100,180,0.85) 60%,
    rgba(20,80,160,0.9) 100%);
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid rgba(0,60,120,0.3);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.1);
}

.window-header h1, .window-header h2 {
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.window-header .window-icon {
  width: 16px;
  height: 16px;
}

.window-buttons {
  display: flex;
  gap: 3px;
}

.window-btn {
  width: 26px;
  height: 20px;
  border: none;
  border-radius: 3px;
  font-size: 11px;
  font-weight: normal;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.window-btn.minimize {
  background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

.window-btn.maximize {
  background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

.window-btn.close {
  background: linear-gradient(180deg, #ff6b6b 0%, #ee5a5a 50%, #d64545 100%);
  color: #fff;
  border: 1px solid rgba(180,60,60,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.window-btn:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.3) 100%);
}

.window-btn.close:hover {
  background: linear-gradient(180deg, #ff8080 0%, #ff6060 50%, #e05050 100%);
}

/* Menu Screen */
#menu-screen {
  text-align: center;
}

.menu-content {
  padding: 50px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.msn-logo {
  font-size: 56px;
  font-weight: 300;
  background: linear-gradient(180deg, #0078d4 0%, #005a9e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  text-shadow: none;
}

.msn-logo span {
  background: linear-gradient(180deg, #ff8c00 0%, #ff6600 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: #5a5a5a;
  margin-bottom: 35px;
  font-size: 15px;
  font-weight: 300;
}

.menu-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 450px;
  margin: 0 auto;
}

/* Aero Style Inputs */
input {
  padding: 12px 15px;
  border: 1px solid #a0c4e8;
  border-radius: 4px;
  background: linear-gradient(180deg, #fff 0%, #f8fcff 100%);
  color: #1a1a1a;
  font-size: 14px;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  box-shadow:
    inset 0 1px 3px rgba(0,0,0,0.08),
    0 1px 0 rgba(255,255,255,0.8);
  transition: all 0.2s ease;
}

input:focus {
  outline: none;
  border-color: #0078d4;
  box-shadow:
    inset 0 1px 3px rgba(0,0,0,0.08),
    0 0 8px rgba(0,120,212,0.4);
}

input::placeholder {
  color: #888;
}

/* Aero Glass Buttons */
.btn {
  padding: 12px 28px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  cursor: pointer;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.9) 0%,
    rgba(240,245,250,0.8) 45%,
    rgba(220,230,240,0.85) 55%,
    rgba(200,215,230,0.9) 100%);
  color: #1a1a1a;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.btn:hover {
  background: linear-gradient(180deg,
    rgba(255,255,255,1) 0%,
    rgba(245,250,255,0.9) 45%,
    rgba(230,240,250,0.9) 55%,
    rgba(210,225,240,0.95) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 2px 8px rgba(0,0,0,0.15);
}

.btn:active {
  background: linear-gradient(180deg,
    rgba(200,215,230,0.9) 0%,
    rgba(220,230,240,0.85) 100%);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary {
  background: linear-gradient(180deg,
    #5eb3f0 0%,
    #3498db 45%,
    #2980b9 55%,
    #2472a4 100%);
  color: #fff;
  border: 1px solid rgba(0,80,140,0.4);
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 2px 4px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  background: linear-gradient(180deg,
    #6ec4ff 0%,
    #45a8eb 45%,
    #3990c9 55%,
    #3082b4 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 4px 12px rgba(0,120,200,0.3);
}

.btn-secondary {
  background: linear-gradient(180deg,
    rgba(255,255,255,0.95) 0%,
    rgba(245,248,250,0.9) 45%,
    rgba(235,240,245,0.9) 55%,
    rgba(225,232,240,0.95) 100%);
  color: #1a1a1a;
}

.btn-small {
  padding: 6px 14px;
  font-size: 12px;
}

.divider {
  color: #777;
  text-align: center;
  font-size: 12px;
  font-weight: 300;
}

/* Panel Styling - Aero Glass */
.panel {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 6px;
  margin: 10px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.panel-header {
  background: linear-gradient(180deg, rgba(80,160,220,0.9) 0%, rgba(40,120,200,0.85) 100%);
  color: #fff;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 400;
  margin: -15px -15px 15px -15px;
  border-radius: 5px 5px 0 0;
}

/* Lobby Screen */
.lobby-header {
  text-align: center;
  padding: 15px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(240,248,255,0.4) 100%);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.lobby-header h2 {
  font-size: 14px;
  font-weight: 400;
  color: #444;
  margin-bottom: 8px;
}

#room-code-display {
  color: #0078d4;
  font-family: 'Segoe UI', 'Courier New', monospace;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 6px;
  text-shadow: 0 1px 2px rgba(0,120,212,0.2);
}

.players-section {
  margin: 20px;
  flex: 1;
}

.players-section h3 {
  font-size: 13px;
  font-weight: 600;
  color: #0078d4;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,120,212,0.2);
}

#player-list, #game-player-list, #final-player-list {
  list-style: none;
}

#player-list li, #game-player-list li, #final-player-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(245,250,255,0.6) 100%);
  border: 1px solid rgba(0,120,212,0.15);
  border-radius: 4px;
  margin-bottom: 5px;
  font-size: 14px;
  transition: all 0.2s ease;
}

#player-list li:hover, #game-player-list li:hover {
  background: linear-gradient(180deg, rgba(0,120,212,0.9) 0%, rgba(0,100,180,0.85) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,120,212,0.3);
}

.player-score {
  color: #2ecc71;
  font-weight: 600;
}

#player-list li:hover .player-score,
#game-player-list li:hover .player-score {
  color: #90EE90;
}

.chat-messages, .game-messages {
  margin: 20px;
  padding: 15px;
  flex: 1;
  min-height: 180px;
  max-height: 350px;
  overflow-y: auto;
  font-size: 13px;
  color: #333;
  background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(250,252,255,0.85) 100%);
  border: 1px solid rgba(0,120,212,0.2);
  border-radius: 6px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.chat-messages p, .game-messages p {
  padding: 3px 0;
}

.system-message {
  color: #777;
  font-style: italic;
}

.correct-message {
  color: #27ae60;
  font-weight: 600;
}

.super-sonic-message {
  color: #e67e22;
  font-weight: 600;
}

/* Game Screen */
.game-header {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(240,248,255,0.3) 100%);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 13px;
  color: #555;
}

.timer-container {
  padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(240,248,255,0.2) 100%);
}

.timer-bar {
  height: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(245,250,255,0.8) 100%);
  border: 1px solid rgba(0,120,212,0.3);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.08);
}

.timer-fill {
  height: 100%;
  background: linear-gradient(180deg,
    #5eb3f0 0%,
    #3498db 40%,
    #2980b9 60%,
    #2472a4 100%);
  width: 100%;
  transition: width 0.1s linear;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}

.timer-fill.super-sonic {
  background: linear-gradient(180deg,
    #69db7c 0%,
    #40c057 40%,
    #2f9e44 60%,
    #2b8a3e 100%);
}

#timer-text {
  font-size: 20px;
  color: #333;
  text-align: center;
  display: block;
  margin-top: 10px;
  font-weight: 300;
}

.guess-status {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.status-box {
  flex: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(245,250,255,0.75) 100%);
  padding: 25px;
  border: 1px solid rgba(0,120,212,0.2);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.status-box .label {
  display: block;
  color: #666;
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 10px;
}

.status-box .value {
  font-weight: 600;
  font-size: 18px;
  color: #333;
}

.status-box.guessed {
  background: linear-gradient(180deg, rgba(144,238,144,0.5) 0%, rgba(100,220,100,0.4) 100%);
  border-color: rgba(46,204,113,0.4);
}

.status-box.guessed .value {
  color: #27ae60;
}

.guess-input-container {
  display: flex;
  gap: 10px;
  padding: 10px 20px 20px 20px;
}

.guess-input-container input {
  flex: 1;
}

.btn-hint {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(180deg,
    #ffd93d 0%,
    #f9c846 40%,
    #f0b429 60%,
    #e5a00d 100%);
  color: #5d4e00;
  border: 1px solid rgba(180,140,0,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}

.btn-hint:hover {
  background: linear-gradient(180deg,
    #ffe066 0%,
    #ffd93d 40%,
    #f9c846 60%,
    #f0b429 100%);
}

.btn-hint:disabled {
  background: linear-gradient(180deg, rgba(200,200,200,0.8) 0%, rgba(180,180,180,0.7) 100%);
  color: #888;
  cursor: not-allowed;
  border-color: rgba(150,150,150,0.3);
}

/* Hint System */
.hint-container {
  padding: 0 20px 20px 20px;
}

.hint-bar-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.hint-label {
  color: #666;
  font-size: 12px;
}

.hint-bar {
  flex: 1;
  height: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(245,245,245,0.8) 100%);
  border: 1px solid rgba(200,160,0,0.3);
  border-radius: 8px;
  overflow: hidden;
  max-width: 160px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}

.hint-fill {
  height: 100%;
  background: linear-gradient(180deg, #ffd93d 0%, #f0b429 100%);
  width: 100%;
  transition: width 0.3s ease;
  border-radius: 7px;
}

#hint-points-text {
  color: #b38600;
  font-weight: 600;
  font-size: 12px;
}

.hint-display {
  background: linear-gradient(180deg, rgba(255,250,200,0.9) 0%, rgba(255,245,180,0.85) 100%);
  border: 2px solid rgba(255,200,0,0.5);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  font-family: 'Segoe UI', 'Courier New', monospace;
  font-size: 24px;
  letter-spacing: 5px;
  color: #8b7000;
  display: none;
  box-shadow: 0 2px 10px rgba(200,160,0,0.2);
}

.hint-display.active {
  display: block;
}

.game-players {
  padding: 0 20px;
}

.game-players h3 {
  font-size: 13px;
  font-weight: 600;
  color: #0078d4;
  margin-bottom: 10px;
}

.extend-votes {
  color: #666;
  font-size: 12px;
  text-align: center;
  padding: 8px;
}

.action-buttons {
  padding: 15px;
  text-align: center;
}

/* Round End Screen */
#round-end-screen {
  text-align: center;
}

#round-end-screen .panel {
  margin-top: 25px;
}

.answer-reveal {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.answer-box {
  flex: 1;
  background: linear-gradient(180deg, rgba(144,238,144,0.6) 0%, rgba(100,220,100,0.5) 100%);
  border: 2px solid rgba(46,204,113,0.5);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(46,204,113,0.2);
}

.answer-box .label {
  display: block;
  color: #1e7e34;
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 8px;
}

.answer-box .value {
  font-size: 18px;
  font-weight: 600;
  color: #27ae60;
}

.final-scores {
  margin: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(245,250,255,0.7) 100%);
  border: 1px solid rgba(0,120,212,0.2);
  border-radius: 8px;
  padding: 20px;
}

.final-scores h3 {
  color: #0078d4;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,120,212,0.2);
}

#round-end-screen .btn {
  margin: 8px;
}

/* Status Bar - Aero */
.status-bar {
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(240,248,255,0.4) 100%);
  border-top: 1px solid rgba(255,255,255,0.8);
  padding: 8px 15px;
  font-size: 12px;
  color: #555;
  display: flex;
  justify-content: space-between;
}

/* Animations */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.pulse {
  animation: pulse 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.shake {
  animation: shake 0.2s ease-in-out;
}

/* Online indicator - Aero style */
.online-indicator {
  width: 10px;
  height: 10px;
  background: linear-gradient(180deg, #5dfc5d 0%, #2ecc71 100%);
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  border: 1px solid rgba(46,204,113,0.5);
  box-shadow: 0 0 6px rgba(46,204,113,0.5);
}

/* User Header Bar */
.user-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(240,248,255,0.4) 100%);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.user-info:hover {
  background: rgba(0,120,212,0.1);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(0,120,212,0.3);
  object-fit: cover;
}

.profile-arrow {
  color: #666;
  font-size: 10px;
}

/* Player list avatars */
.player-avatar-small {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(0,120,212,0.2);
  object-fit: cover;
  margin-right: 8px;
}

#player-list li, #game-player-list li, #final-player-list li {
  display: flex;
  align-items: center;
}

.player-name {
  flex: 1;
}

/* Error and Success Messages */
.error-message {
  color: #e74c3c;
  font-size: 12px;
  text-align: center;
  min-height: 18px;
}

.success-message {
  color: #27ae60;
  font-size: 12px;
  text-align: center;
  min-height: 18px;
}

/* Profile Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(245,250,255,0.95) 100%);
  border: 1px solid rgba(0,120,212,0.3);
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.modal-header {
  background: linear-gradient(180deg,
    rgba(80,160,220,0.95) 0%,
    rgba(40,120,200,0.9) 40%,
    rgba(30,100,180,0.85) 60%,
    rgba(20,80,160,0.9) 100%);
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 9px 9px 0 0;
  border-bottom: 1px solid rgba(0,60,120,0.3);
}

.modal-header h2 {
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.modal-close {
  background: linear-gradient(180deg, #ff6b6b 0%, #ee5a5a 50%, #d64545 100%);
  border: 1px solid rgba(180,60,60,0.5);
  color: #fff;
  width: 26px;
  height: 20px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.modal-close:hover {
  background: linear-gradient(180deg, #ff8080 0%, #ff6060 50%, #e05050 100%);
}

.modal-body {
  padding: 20px;
}

/* Profile Header in Modal */
.profile-header {
  text-align: center;
  margin-bottom: 25px;
}

.profile-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(0,120,212,0.4);
  box-shadow: 0 4px 15px rgba(0,120,212,0.2);
  object-fit: cover;
  margin-bottom: 10px;
}

.profile-header h3 {
  color: #0078d4;
  font-size: 20px;
  font-weight: 600;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}

.stat-item {
  background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(245,250,255,0.8) 100%);
  border: 1px solid rgba(0,120,212,0.2);
  border-radius: 8px;
  padding: 15px 10px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 24px;
  font-weight: 600;
  color: #0078d4;
}

.stat-label {
  display: block;
  font-size: 10px;
  color: #666;
  margin-top: 4px;
}

/* Most Guessed Game */
.most-guessed {
  background: linear-gradient(180deg, rgba(255,250,200,0.6) 0%, rgba(255,245,180,0.5) 100%);
  border: 1px solid rgba(200,160,0,0.3);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  margin-bottom: 25px;
}

.most-guessed h4 {
  color: #8b7000;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.most-guessed p {
  color: #6b5800;
  font-size: 16px;
  font-weight: 500;
}

/* Password Section */
.password-section {
  border-top: 1px solid rgba(0,120,212,0.2);
  padding-top: 20px;
  margin-top: 20px;
}

.password-section h4 {
  color: #444;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 15px;
}

.password-section input {
  width: 100%;
  margin-bottom: 10px;
}

.password-section .btn {
  width: 100%;
  margin-top: 5px;
}

/* Admin Section */
.admin-section {
  border-top: 2px solid rgba(231,76,60,0.3);
  padding-top: 20px;
  margin-top: 20px;
  background: linear-gradient(180deg, rgba(231,76,60,0.05) 0%, rgba(255,255,255,0) 100%);
  border-radius: 0 0 8px 8px;
  padding: 20px;
  margin: 20px -20px -20px -20px;
}

.admin-section h4 {
  color: #c0392b;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 15px;
}

.admin-section select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #a0c4e8;
  border-radius: 4px;
  background: linear-gradient(180deg, #fff 0%, #f8fcff 100%);
  color: #1a1a1a;
  font-size: 14px;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  margin-bottom: 10px;
  cursor: pointer;
}

.admin-section select:focus {
  outline: none;
  border-color: #c0392b;
}

.admin-section input {
  width: 100%;
  margin-bottom: 10px;
}

.admin-section .btn {
  width: 100%;
  background: linear-gradient(180deg,
    #e57373 0%,
    #e74c3c 45%,
    #c0392b 55%,
    #a93226 100%);
  color: #fff;
  border: 1px solid rgba(150,50,50,0.4);
}

.admin-section .btn:hover {
  background: linear-gradient(180deg,
    #ef9a9a 0%,
    #e57373 45%,
    #e74c3c 55%,
    #c0392b 100%);
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 5px;
  }

  .guess-status {
    flex-direction: column;
  }

  .answer-reveal {
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-content {
    width: 95%;
    max-height: 95vh;
  }
}

/* ==================== MSN CHAT SCREEN - WINDOWS XP STYLE ==================== */
/*
  CSS Variables for MSN Chat customization
  Replace backgrounds with: background-image: url('your-image.png')
*/
:root {
  /* Chat Window */
  --msn-chat-bg: #ece9d8;
  --msn-chat-border: 3px solid #0849a8;

  /* Chat Area */
  --msn-chat-area-bg: #fff;
  --msn-chat-area-border: 1px solid #7b9ebd;

  /* Message Colors */
  --msn-msg-sender-color: #808080;
  --msn-msg-text-color: #000;
  --msn-msg-system-color: #808080;

  /* File Transfer */
  --msn-file-icon-bg: #e6e6e6;
  --msn-progress-bar-bg: #00ff00;
  --msn-progress-bar-border: 1px solid #000;
}

/* MSN Chat Screen Override - Resizable Window */
/* Must use !important to override .screen.active which sets min-height:100vh, width:100% */
.msn-chat-screen {
  display: none;
  flex-direction: column;
  background: var(--msn-chat-bg);
  border: var(--msn-chat-border);
  border-radius: 8px;
  /* Resizable window - NOT fullscreen, starts at 1000x850 */
  width: 1000px !important;
  height: 850px !important;
  min-width: 500px !important;
  min-height: 400px !important;
  max-width: none !important;
  max-height: none !important;
  /* Center in viewport */
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  font-family: 'Tahoma', sans-serif;
  overflow: visible !important;
  box-shadow: 4px 4px 15px rgba(0,0,0,0.5);
  z-index: 1000;
}

.msn-chat-screen.active {
  display: flex;
}

/* Resize Handles - invisible but clickable */
.resize-handle {
  position: absolute;
  z-index: 1001;
}

.resize-n {
  top: -5px;
  left: 10px;
  right: 10px;
  height: 10px;
  cursor: ns-resize;
}

.resize-s {
  bottom: -5px;
  left: 10px;
  right: 10px;
  height: 10px;
  cursor: ns-resize;
}

.resize-e {
  right: -5px;
  top: 10px;
  bottom: 10px;
  width: 10px;
  cursor: ew-resize;
}

.resize-w {
  left: -5px;
  top: 10px;
  bottom: 10px;
  width: 10px;
  cursor: ew-resize;
}

.resize-ne {
  top: -5px;
  right: -5px;
  width: 15px;
  height: 15px;
  cursor: nesw-resize;
}

.resize-nw {
  top: -5px;
  left: -5px;
  width: 15px;
  height: 15px;
  cursor: nwse-resize;
}

.resize-se {
  bottom: -5px;
  right: -5px;
  width: 15px;
  height: 15px;
  cursor: nwse-resize;
}

.resize-sw {
  bottom: -5px;
  left: -5px;
  width: 15px;
  height: 15px;
  cursor: nesw-resize;
}

/* Background is now set in the main body selector at the top */

/* Chat Title Bar */
.msn-chat-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 26px;
  padding: 3px 5px 3px 8px;
  /* Windows XP style gradient */
  background: linear-gradient(180deg, #0059e8 0%, #0059e8 1px, #2b90ff 2px, #2b90ff 4px, #0053e1 5px, #0053e1 100%);
  border-bottom: 1px solid #003399;
  border-radius: 8px 8px 0 0;
}

.msn-chat-title {
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

.msn-chat-icon {
  font-size: 14px;
}

/* Chat Menu Bar */
.msn-chat-menubar {
  display: flex;
  gap: 15px;
  padding: 2px 8px;
  background: var(--msn-chat-bg);
  border-bottom: 1px solid #aca899;
  font-family: 'Tahoma', sans-serif;
  font-size: 11px;
  color: #000;
}

.msn-chat-menubar span {
  cursor: pointer;
  padding: 2px 4px;
}

.msn-chat-menubar span:hover {
  background: #316ac5;
  color: #fff;
}

/* Toolbar */
.msn-chat-toolbar {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  background: var(--msn-chat-bg);
  border-bottom: 1px solid #aca899;
  gap: 2px;
  min-height: 32px;
}

.msn-toolbar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 10px;
  color: #000;
  min-width: 50px;
}

.msn-toolbar-btn:hover {
  background: #c1d2ee;
  border: 1px solid #316ac5;
  margin: -1px;
}

.toolbar-icon {
  font-size: 18px;
  margin-bottom: 2px;
}

/* Toolbar Action Buttons */
.msn-toolbar-action-btn {
  padding: 4px 12px;
  background: linear-gradient(180deg, #fff 0%, #ece9d8 100%);
  border: 1px solid #7b9ebd;
  border-radius: 3px;
  font-family: 'Tahoma', sans-serif;
  font-size: 11px;
  cursor: pointer;
  color: #000;
}

.msn-toolbar-action-btn:hover {
  background: linear-gradient(180deg, #fff 0%, #d4d0c8 100%);
  border-color: #316ac5;
}

.msn-toolbar-action-btn:active {
  background: #d4d0c8;
}

.msn-toolbar-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.msn-toolbar-logo {
  margin-left: auto;
  padding: 4px 8px;
}

.msn-logo-text {
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: bold;
  font-style: italic;
  color: #ff6600;
}

/* Main Chat Area */
.msn-chat-main {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Left Side - Chat Area */
.msn-chat-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--msn-chat-bg);
}

.msn-chat-to {
  padding: 6px 8px;
  background: #fff;
  border: 1px solid #7b9ebd;
  margin: 4px;
  font-size: 11px;
  border-radius: 4px;
}

.to-label {
  color: #808080;
  margin-right: 4px;
}

.to-value {
  color: #000;
}

/* Player List in Chat */
.msn-player-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px;
}

.msn-player-list ul {
  list-style: none;
}

.msn-player-list li {
  display: flex;
  align-items: center;
  padding: 4px 6px;
  margin-bottom: 2px;
  font-size: 11px;
  cursor: pointer;
  border-radius: 4px;
}

.msn-player-list li:hover {
  background: #c1d2ee;
}

.msn-player-list .player-avatar-small {
  width: 32px;
  height: 32px;
  border: 1px solid #7b9ebd;
  margin-right: 8px;
  border-radius: 6px;
}

.msn-player-list .player-name {
  flex: 1;
  color: #000;
}

.msn-player-list .player-score {
  color: #008000;
  font-size: 10px;
}

/* Player info container (name + streak) */
.msn-player-list .player-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 32px;
}

.msn-player-list .player-info .player-name {
  flex: none;
}

/* Streak display */
.player-streak {
  font-size: 9px;
  color: #ff6600;
  font-weight: bold;
  margin-top: 1px;
}

/* Current User - avatar only, centered */
.msn-chat-user {
  display: flex;
  justify-content: center;
  padding: 8px;
  background: var(--msn-chat-bg);
  border-top: 1px solid #aca899;
}

.msn-chat-avatar {
  width: 120px;
  height: 120px;
  border: 2px solid #7b9ebd;
  border-radius: 10px;
  object-fit: cover;
}

.msn-chat-user-info {
  display: flex;
  flex-direction: column;
}

.msn-chat-username {
  font-size: 11px;
  font-weight: bold;
  color: #000;
}

.msn-chat-status {
  font-size: 10px;
  color: #008000;
}

/* Right Side - Player List */
.msn-chat-right {
  width: 180px;
  display: flex;
  flex-direction: column;
  background: var(--msn-chat-bg);
  border-left: 1px solid #aca899;
}

/* Display Picture Area (Top Left) */
.msn-display-area {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px;
  gap: 10px;
}

.msn-display-picture {
  width: 96px;
  height: 96px;
  border: 2px solid #7b9ebd;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  /* Replace with: background-image: url('dp-frame.png') */
}

.msn-display-picture img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
}

.msn-timer-display {
  background: linear-gradient(180deg, #fff 0%, #ece9d8 100%);
  border: 1px solid #7b9ebd;
  padding: 8px 16px;
  font-size: 24px;
  font-weight: bold;
  color: #003c74;
  border-radius: 6px;
}

/* Chat Messages Area */
.msn-chat-messages {
  flex: 1;
  background: var(--msn-chat-area-bg);
  border: var(--msn-chat-area-border);
  margin: 8px;
  margin-left: 16px; /* More separation from window edge */
  padding: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: 'Tahoma', sans-serif;
  font-size: 13px;
  min-height: 200px;
  border-radius: 8px;
}

/* Chat Message Styling */
.msn-chat-messages .chat-msg {
  margin-bottom: 8px;
}

.msn-chat-messages .msg-sender {
  color: var(--msn-msg-sender-color);
  font-size: 13px;
}

.msn-chat-messages .msg-text {
  color: var(--msn-msg-text-color);
  font-size: 13px;
  margin-left: 4px;
}

.msn-chat-messages .msg-system {
  color: var(--msn-msg-system-color);
  font-style: italic;
  font-size: 13px;
}

/* File Transfer Display */
.msn-file-transfer {
  display: flex;
  align-items: flex-start;
  margin: 10px 0;
  padding: 8px;
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.msn-file-icon {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  /* Replace with: background-image: url('music-icon.png') */
  background: linear-gradient(180deg, #fff 0%, #e6e6e6 100%);
  border: 1px solid #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border-radius: 4px;
}

.msn-file-icon-img {
  width: 29px;
  height: 32px;
  margin-right: 10px;
}

.msn-file-info {
  flex: 1;
}

.msn-file-name {
  font-size: 11px;
  color: #000;
  margin-bottom: 4px;
}

.msn-file-progress {
  height: 16px;
  background: #fff;
  border: 1px solid #808080;
  position: relative;
  display: flex;
  gap: 2px;
  padding: 2px;
  box-sizing: border-box;
}

.msn-file-progress-segment {
  flex: 1;
  height: 100%;
  background: transparent;
}

.msn-file-progress-segment.filled {
  background: linear-gradient(to bottom, #3994ff 0%, #3994ff 40%, #0053E1 40%, #0053E1 100%);
}

/* Rainbow Text Animation for Correct Guesses */
@keyframes rainbow {
  0% { color: #ff0000; }
  14% { color: #ff7f00; }
  28% { color: #ffff00; }
  42% { color: #00ff00; }
  57% { color: #0000ff; }
  71% { color: #4b0082; }
  85% { color: #9400d3; }
  100% { color: #ff0000; }
}

.rainbow-text {
  animation: rainbow 2s linear infinite;
  font-weight: bold;
}

/* Horizontal Rainbow Animation - scrolls colors left to right */
@keyframes rainbow-horizontal {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.rainbow-horizontal {
  background: linear-gradient(90deg,
    #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3,
    #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbow-horizontal 3s linear infinite;
  font-weight: bold;
  font-size: 14px;
}

.sonic-bonus {
  font-size: 16px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Wave Text Effect - each letter moves independently */
@keyframes wave-letter {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.wave-text {
  display: inline;
}

.wave-text .wave-letter {
  display: inline-block;
  animation: wave-letter 0.6s ease-in-out infinite;
}

/* Bottom Input Area */
.msn-chat-bottom {
  background: var(--msn-chat-bg);
  border-top: 1px solid #aca899;
}

.msn-format-bar {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  gap: 4px;
  border-bottom: 1px solid #aca899;
  position: relative;
}

.format-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  border-radius: 3px;
}

.format-btn:hover {
  background: #c1d2ee;
  border: 1px solid #316ac5;
  border-radius: 3px;
}

.msn-game-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

/* Right controls - positioned in sidebar area */
.msn-right-controls {
  position: absolute;
  right: -172px; /* Push into sidebar area (180px - 8px padding) */
  bottom: 0; /* Align to bottom */
  display: flex;
  flex-direction: column-reverse; /* Enviar at bottom, hints at top */
  gap: 6px;
  width: 160px;
}

.msn-right-controls .msn-send-btn {
  padding: 8px 16px;
}

.msn-right-controls .msn-game-controls {
  margin-top: 0;
  justify-content: center;
}

/* Windows XP Style Volume Slider - in format bar */
.msn-volume-control {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 0 4px;
}

.volume-label {
  font-size: 11px;
  color: #000;
  font-family: 'Tahoma', sans-serif;
}

.volume-slider-container {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #ece9d8;
  border: 1px solid #aca899;
  padding: 2px 6px;
  border-radius: 0;
}

.volume-minus, .volume-plus {
  font-size: 11px;
  color: #000;
  font-weight: bold;
  user-select: none;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 16px;
  background: transparent;
  cursor: pointer;
}

.volume-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  background: linear-gradient(180deg, #808080 0%, #fff 1px, #c0c0c0 50%, #dfdfdf 100%);
  border: 1px solid #808080;
  border-radius: 0;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 8px;
  height: 16px;
  background: linear-gradient(180deg, #fff 0%, #ece9d8 50%, #c0c0c0 100%);
  border: 1px solid #808080;
  border-radius: 0;
  margin-top: -7px;
  cursor: pointer;
}

.volume-slider::-moz-range-track {
  width: 100%;
  height: 4px;
  background: linear-gradient(180deg, #808080 0%, #fff 1px, #c0c0c0 50%, #dfdfdf 100%);
  border: 1px solid #808080;
  border-radius: 0;
}

.volume-slider::-moz-range-thumb {
  width: 8px;
  height: 16px;
  background: linear-gradient(180deg, #fff 0%, #ece9d8 50%, #c0c0c0 100%);
  border: 1px solid #808080;
  border-radius: 0;
  cursor: pointer;
}

.msn-hint-btn, .msn-extend-btn {
  padding: 4px 10px;
  background: linear-gradient(180deg, #fff 0%, #ece9d8 100%);
  border: 1px solid #003c74;
  font-size: 11px;
  font-family: 'Tahoma', sans-serif;
  cursor: pointer;
  color: #003c74;
  border-radius: 3px;
}

.msn-hint-btn:hover, .msn-extend-btn:hover {
  background: linear-gradient(180deg, #fff 0%, #d4d0c8 100%);
}

.msn-hint-btn:disabled, .msn-extend-btn:disabled {
  background: #d4d0c8;
  color: #808080;
  cursor: not-allowed;
}

.hint-points {
  font-size: 10px;
  color: #808080;
}

/* Input Area - must align with chat messages box */
.msn-input-area {
  position: relative;
  display: flex;
  margin: 8px;
  margin-left: 16px; /* Match chat messages left margin */
  margin-right: calc(180px + 1px); /* sidebar width + border to match chat box */
  gap: 8px;
}

.msn-chat-input {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #7b9ebd;
  background: #fff;
  font-family: 'Tahoma', sans-serif;
  font-size: 11px;
  /* Resizable vertically with limits */
  resize: vertical;
  min-height: 80px;
  max-height: 200px;
  height: 100px;
  border-radius: 6px;
}

.msn-chat-input:focus {
  outline: 1px solid #0054e3;
}

.msn-send-buttons {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.msn-send-btn {
  padding: 8px 20px;
  background: linear-gradient(180deg, #fff 0%, #ece9d8 100%);
  border: 1px solid #003c74;
  font-size: 11px;
  font-family: 'Tahoma', sans-serif;
  cursor: pointer;
  color: #003c74;
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #808080;
  border-radius: 4px;
}

.msn-send-btn:hover {
  background: linear-gradient(180deg, #fff 0%, #d4d0c8 100%);
}

.msn-send-btn:active {
  box-shadow:
    inset -1px -1px 0 #fff,
    inset 1px 1px 0 #808080;
}

/* Status Bar */
.msn-chat-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 4px 8px;
  background: var(--msn-chat-bg);
  border-top: 1px solid #fff;
  font-size: 11px;
  color: #000;
  border-radius: 0 0 8px 8px;
}

/* Correct guess message styling */
.correct-guess-msg {
  font-weight: bold;
}

/* System server user - sqrrr */
.sqrrr-msg {
  color: #0066cc;
  font-weight: bold;
}

/* Font Customization Popup */
.font-popup {
  position: absolute;
  bottom: 100%;
  left: 0;
  background: var(--msn-chat-bg);
  border: 2px solid #0054e3;
  border-radius: 8px;
  padding: 0;
  min-width: 200px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  z-index: 100;
  overflow: hidden;
}

.font-popup-header {
  background: linear-gradient(180deg, #0a58ca 0%, #0849a8 50%, #0a4da0 100%);
  color: #fff;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: bold;
}

.font-popup-content {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.font-popup-content label {
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.font-popup-content select,
.font-popup-content input[type="color"] {
  font-size: 11px;
  padding: 2px 4px;
  border-radius: 3px;
}

.font-popup-content input[type="color"] {
  width: 50px;
  height: 22px;
  padding: 0;
  border: 1px solid #7b9ebd;
  border-radius: 4px;
}

/* Font popup save button */
.font-popup-content .font-save-btn {
  padding: 6px 16px;
  background: linear-gradient(180deg, #fff 0%, #ece9d8 100%);
  border: 1px solid #003c74;
  border-radius: 4px;
  font-size: 11px;
  font-family: 'Tahoma', sans-serif;
  cursor: pointer;
  color: #003c74;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
  margin-top: 5px;
}

.font-popup-content .font-save-btn:hover {
  background: linear-gradient(180deg, #fff 0%, #d4d0c8 100%);
}

.font-popup-content .font-save-btn:active {
  background: #d4d0c8;
  box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #808080;
}

/* ==================== MSN PLAYER PROFILE POPUP ==================== */
.msn-profile-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.msn-profile-popup.active {
  display: flex;
}

.msn-profile-window {
  width: 320px;
  border-radius: 8px;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  background: #0054e3;
  border: 2px solid #0054e3;
}

.msn-profile-content {
  padding: 15px 20px;
}

.msn-profile-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.msn-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 2px solid #7b9ebd;
  background: #fff;
  object-fit: cover;
  padding: 2px;
}

.msn-profile-info {
  display: flex;
  flex-direction: column;
}

.msn-profile-username {
  font-size: 14px;
  font-weight: bold;
  color: #000;
}

.msn-profile-status {
  font-size: 11px;
  color: #008000;
  display: flex;
  align-items: center;
  gap: 4px;
}

.msn-profile-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.msn-profile-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  background: linear-gradient(180deg, #fff 0%, #f5f5f0 100%);
  border: 1px solid #aca899;
  border-radius: 3px;
}

.msn-profile-stat-label {
  font-size: 11px;
  color: #333;
}

.msn-profile-stat-value {
  font-size: 11px;
  font-weight: bold;
  color: #0054e3;
}

.msn-profile-most-guessed {
  text-align: center;
  padding: 10px;
  background: linear-gradient(180deg, #fffbcc 0%, #fff5a0 100%);
  border: 1px solid #d4c800;
  border-radius: 4px;
}

.msn-profile-most-guessed-game {
  display: block;
  font-size: 12px;
  font-weight: bold;
  color: #5a5000;
  margin-top: 4px;
}
