/* ===== TOP BAR COMPONENT STYLES ===== */
/* Extracted from main.css for use with <game-top-bar> Web Component */

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--top-bar-height);
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.98) 0%, rgba(13, 17, 23, 0.98) 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 77, 102, 0.3);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  z-index: 100;
}

.game-title-small {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 24px;
  color: #00d4ff;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
}

.game-title-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.game-title-link:hover {
  opacity: 0.8;
}

.top-bar-left,
.top-bar-center,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ===== RESOURCE DISPLAY ===== */
.resource-display {
  display: flex;
  gap: 12px;
}

.resource {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 6px;
  color: #e6edf3;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: all var(--transition-medium);
  cursor: pointer;
  text-transform: uppercase;
}

.resource:hover {
  background: rgba(0, 77, 102, 0.2);
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

/* ===== RESOURCE ROW LAYOUT ===== */
.resource-row-top {
  display: flex;
  flex-basis: 100%;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}

.resource-bar {
  flex-basis: 100%;
  height: 4px;
  min-height: 4px;
  align-self: flex-start;
  background: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-sizing: border-box;
}

.resource-bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  transition: width 0.4s ease;
}

.resource-status {
  flex-basis: 100%;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
  font-family: var(--font-heading);
}
.resource-status:empty {
  display: none;
}

.resource-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.resource-amount {
  font-weight: 700;
  font-size: 14px;
}

.resource-cap {
  font-weight: 400;
  font-size: 12px;
  opacity: 0.5;
  text-shadow: none;
}

/* ===== GOLD ===== */
.resource.gold .resource-label    { color: #ca8a04; }
.resource.gold .resource-amount   { color: #eab308; text-shadow: 0 0 6px rgba(234,179,8,0.5); }
.resource.gold .resource-bar-fill { background: #eab308; box-shadow: 0 0 5px rgba(234,179,8,0.5); }
.resource.gold .resource-status   { color: #a16207; }

.resource.gold.resource-full {
  background: rgba(234, 179, 8, 0.05) !important;
  animation: pulse-gold 2s ease-in-out infinite;
}
.resource.gold.resource-full .resource-amount {
  text-shadow: 0 0 8px rgba(234,179,8,0.8), 0 0 16px rgba(234,179,8,0.4) !important;
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: inset 0 0 12px rgba(234,179,8,0.1); }
}

/* ===== FOOD ===== */
.resource.food .resource-label    { color: #2563eb; }
.resource.food .resource-amount   { color: #3b82f6; text-shadow: 0 0 6px rgba(59,130,246,0.5); }
.resource.food .resource-bar-fill { background: #3b82f6; box-shadow: 0 0 5px rgba(59,130,246,0.5); }
.resource.food .resource-status   { color: #1e40af; }

.resource.food.resource-full {
  background: rgba(59, 130, 246, 0.05) !important;
  animation: pulse-food 2s ease-in-out infinite;
}
.resource.food.resource-full .resource-amount {
  text-shadow: 0 0 8px rgba(59,130,246,0.8), 0 0 16px rgba(59,130,246,0.4) !important;
}
@keyframes pulse-food {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: inset 0 0 12px rgba(59,130,246,0.1); }
}

/* ===== WOOD ===== */
.resource.wood .resource-label    { color: #059669; }
.resource.wood .resource-amount   { color: #10b981; text-shadow: 0 0 6px rgba(16,185,129,0.5); }
.resource.wood .resource-bar-fill { background: #10b981; box-shadow: 0 0 5px rgba(16,185,129,0.5); }
.resource.wood .resource-status   { color: #065f46; }

.resource.wood.resource-full {
  background: rgba(16, 185, 129, 0.05) !important;
  animation: pulse-wood 2s ease-in-out infinite;
}
.resource.wood.resource-full .resource-amount {
  text-shadow: 0 0 8px rgba(16,185,129,0.8), 0 0 16px rgba(16,185,129,0.4) !important;
}
@keyframes pulse-wood {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: inset 0 0 12px rgba(16,185,129,0.1); }
}

/* ===== ATK & POP STAT BOXES ===== */
.resource.units,
.resource.workers {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
  padding: 6px 12px;
}

.resource.units:hover,
.resource.workers:hover {
  background: rgba(0, 212, 255, 0.05);
  border-color: rgba(0, 212, 255, 0.4);
}

.resource.units .resource-label,
.resource.workers .resource-label {
  color: #484f58;
  font-size: 11px;
  letter-spacing: 2px;
}

.resource.units .resource-amount,
.resource.workers .resource-amount {
  color: #00d4ff;
  font-size: 12px;
  text-shadow: 0 0 6px rgba(0, 212, 255, 0.4);
}

.resource-icon {
  font-size: 20px;
}

/* Scanlines overlay */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--top-bar-height);
  pointer-events: none;
  z-index: 101;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0px,
    rgba(0, 0, 0, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* ===== RESOURCE RATES & FORECAST ===== */
.resource-rate {
  flex-basis: 100%;
  font-size: 0.7em;
  line-height: 1;
  color: rgba(245, 240, 232, 0.4);
}
.resource-rate:empty {
  display: none;
}
.resource-rate-positive {
  color: #81C784;
}
.resource-rate-full {
  color: #FFA726;
  font-weight: bold;
}

.resource-forecast {
  font-size: 0.65em;
  line-height: 1;
  color: rgba(245, 240, 232, 0.4);
}
.forecast-critical {
  color: #FF6B6B;
  font-weight: bold;
}
.forecast-warning {
  color: #FFA726;
}
.forecast-ok {
  color: rgba(245, 240, 232, 0.35);
}

.resource-tooltip {
  position: fixed;
  background: #0d1117;
  border: 2px solid var(--dark-blue-earthy);
  border-radius: 2px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  padding: 12px 14px;
  min-width: 240px;
  max-width: 320px;
  z-index: 1500;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.resource-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.resource-tooltip .tooltip-title {
  font-weight: 700;
  color: var(--dark-blue-earthy);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.resource-tooltip .tooltip-section {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.resource-tooltip .tooltip-subtitle {
  font-size: 13px;
  text-transform: uppercase;
  color: rgba(0, 212, 255, 0.8);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.resource-tooltip .tooltip-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: #e6edf3;
  padding: 4px 0;
}

.resource-tooltip .tooltip-row.tooltip-highlight {
  font-weight: 600;
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.1);
  padding: 6px 8px;
  border-radius: 2px;
  margin: 4px 0;
}

.resource-tooltip .tooltip-note {
  font-size: 12px;
  color: rgba(0, 212, 255, 0.85);
  margin-top: 4px;
}

.resource-tooltip .tooltip-warning {
  margin-top: 6px;
  padding: 8px;
  border-radius: 2px;
  background: rgba(255, 51, 68, 0.1);
  border: 1px solid rgba(255, 51, 68, 0.4);
  color: #ff3344;
  font-weight: 600;
}

.resource-tooltip .tooltip-success {
  margin-top: 6px;
  padding: 8px;
  border-radius: 2px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.4);
  color: #00ff88;
  font-weight: 600;
  text-align: center;
}

.resource-tooltip .tooltip-treasury {
  font-weight: 600;
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.15);
  padding: 6px 8px;
  border-radius: 2px;
  margin: 4px 0;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.resource-tooltip .tooltip-subsection {
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(0, 212, 255, 0.7);
  letter-spacing: 0.04em;
  margin-top: 8px;
  margin-bottom: 2px;
}

.resource-tooltip .tooltip-secondary {
  font-size: 13px;
  color: rgba(0, 212, 255, 0.8);
  padding: 2px 0;
}

.resource-tooltip .tooltip-divider {
  height: 1px;
  background: rgba(0, 212, 255, 0.15);
  margin: 8px 0;
}

.resource-tooltip .tooltip-storage-full {
  background: rgba(255, 51, 68, 0.15);
  border: 1px solid rgba(255, 51, 68, 0.3);
  border-radius: 2px;
  padding: 6px 8px;
  margin: 4px 0;
  color: #ff3344;
  font-weight: 600;
}

.user-email {
  color: #484f58;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  padding: 6px 0;
  border-radius: 0;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

.user-email:hover {
  color: #8b949e;
}

/* ===== ATTACKS INDICATOR ===== */
.attacks-container {
  position: relative;
  align-self: center;
}

.attacks-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 51, 68, 0.1);
  border: 1px solid rgba(255, 51, 68, 0.6);
  color: #ff3344;
  padding: 8px 14px;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  font-family: var(--font-body);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  height: auto;
  transition: all var(--transition-fast);
}

.attacks-toggle.attacks-idle {
  background: rgba(255, 51, 68, 0.05);
  border-color: rgba(255, 51, 68, 0.25);
  color: rgba(255, 51, 68, 0.5);
}

.attacks-toggle:hover {
  background: rgba(255, 51, 68, 0.18);
  border-color: #ff3344;
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(255, 51, 68, 0.2);
}

.attacks-toggle.attacks-idle:hover {
  background: rgba(255, 51, 68, 0.1);
  border-color: rgba(255, 51, 68, 0.4);
  color: #ff3344;
  transform: translateY(-1px);
}

.attacks-icon {
  font-size: 16px;
}

.attacks-count {
  background: transparent;
  color: #ff3344;
  font-size: 13px;
  font-weight: 700;
  padding: 0;
  border-radius: 0;
  min-width: 0;
  text-align: center;
}

.attacks-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 320px;
  max-width: 400px;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.98) 0%, rgba(10, 10, 15, 0.98) 100%);
  border: 2px solid rgba(255, 51, 68, 0.5);
  border-radius: 2px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(0, 212, 255, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-medium);
  z-index: 1000;
  overflow: hidden;
  max-height: 400px;
}

.attacks-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.attacks-dropdown-header {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(230, 237, 243, 0.6);
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 51, 68, 0.3);
}

.attacks-list {
  max-height: 350px;
  overflow-y: auto;
}

.no-attacks {
  padding: 20px;
  text-align: center;
  color: rgba(230, 237, 243, 0.5);
  font-style: italic;
  font-size: 14px;
}

.attack-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 77, 102, 0.2);
  color: #e6edf3;
  transition: background var(--transition-fast);
}

.attack-item:hover {
  background: rgba(0, 77, 102, 0.2);
}

.attack-item:last-child {
  border-bottom: none;
}

.attack-direction {
  font-size: 12px;
  font-weight: 600;
  color: rgba(230, 237, 243, 0.7);
  margin-bottom: 6px;
}

.attack-target {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #e6edf3;
}

.attack-eta {
  font-size: 12px;
  color: rgba(0, 212, 255, 0.9);
  font-weight: 600;
}

.attacks-dropdown-divider {
  height: 1px;
  background: rgba(255, 51, 68, 0.3);
  margin: 8px 0;
}

.attacks-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: #e6edf3;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
  text-align: left;
}

.attacks-dropdown-item:hover {
  background: rgba(0, 77, 102, 0.2);
}

.attacks-dropdown-item .menu-item-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.attacks-dropdown-item .menu-item-text {
  flex: 1;
}

/* ===== ACTIVITY LOG INDICATOR ===== */
/* ===== ALLIANCE ONLINE BADGE ===== */
.alliance-online {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 2px;
  font-size: 10px;
  font-family: var(--font-heading);
  letter-spacing: 1.5px;
  color: #22c55e;
  text-transform: uppercase;
  white-space: nowrap;
}

.alliance-online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-online 2s ease-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-online {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70%  { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.activity-container {
  position: relative;
}

.activity-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: #00d4ff;
  padding: 8px 14px;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  font-family: var(--font-body);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all var(--transition-fast);
}

.activity-toggle:hover {
  background: rgba(0, 212, 255, 0.12);
  border-color: #00d4ff;
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.15);
}

.activity-count {
  background: transparent;
  color: #00d4ff;
  font-size: 13px;
  font-weight: 700;
  padding: 0;
  border-radius: 0;
  min-width: 0;
  text-align: center;
}

.activity-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 320px;
  max-width: 400px;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.98) 0%, rgba(10, 10, 15, 0.98) 100%);
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 2px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(0, 212, 255, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-medium);
  z-index: 1000;
  overflow: hidden;
  max-height: 450px;
}

.activity-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.activity-dropdown-header {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0, 212, 255, 0.8);
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}

.activity-list {
  max-height: 380px;
  overflow-y: auto;
}

.no-activity {
  padding: 20px;
  text-align: center;
  color: rgba(230, 237, 243, 0.5);
  font-style: italic;
  font-size: 14px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0, 77, 102, 0.15);
  transition: background var(--transition-fast);
}

.activity-item:hover {
  background: rgba(0, 77, 102, 0.15);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-item-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.activity-item-body {
  flex: 1;
  min-width: 0;
}

.activity-item-desc {
  font-size: 13px;
  color: #e6edf3;
  line-height: 1.4;
}

.activity-item-time {
  font-size: 11px;
  color: var(--text-dim, #484f58);
  margin-top: 2px;
}

/* ===== MENU DROPDOWN ===== */
.menu-container {
  position: relative;
}

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: #00d4ff;
  padding: 8px 16px;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  font-family: var(--font-body);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all var(--transition-fast);
}

.menu-toggle:hover {
  background: rgba(0, 212, 255, 0.12);
  border-color: #00d4ff;
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.15);
}

.menu-icon {
  font-size: 14px;
  color: #00d4ff;
}

.menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.98) 0%, rgba(10, 10, 15, 0.98) 100%);
  border: 2px solid rgba(0, 77, 102, 0.5);
  border-radius: 2px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(0, 212, 255, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-medium);
  z-index: 1000;
  overflow: hidden;
}

.menu-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-header {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(230, 237, 243, 0.6);
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(0, 77, 102, 0.3);
}

.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: #e6edf3;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  border-bottom: 1px solid rgba(0, 77, 102, 0.15);
  text-decoration: none;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background: rgba(0, 77, 102, 0.2);
  padding-left: 20px;
  text-decoration: none;
}

.menu-item-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.menu-item-text {
  flex: 1;
}

.menu-item-danger {
  color: #ff3344;
}

.menu-item-danger:hover {
  background: rgba(255, 51, 68, 0.15);
}

.menu-divider {
  height: 1px;
  background: rgba(0, 77, 102, 0.3);
  margin: 4px 0;
}

/* ===== COMPACT RESOURCE DISPLAY (mobile only) ===== */
.resource-compact {
  display: none; /* hidden on desktop, shown via media query */
  gap: 10px;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 1px;
}

.resource-compact-item {
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.resource-compact-icon {
  font-size: 14px;
  line-height: 1;
}

.resource-compact-value {
  font-weight: 700;
  color: var(--text-primary);
}

.resource-compact-gold .resource-compact-value { color: #eab308; }
.resource-compact-food .resource-compact-value  { color: #3b82f6; }
.resource-compact-wood .resource-compact-value  { color: #10b981; }
.resource-compact-army .resource-compact-value  { color: var(--neon-primary); }

/* ===== MOBILE TOP BAR (≤ 480px) ===== */
@media (max-width: 480px) {
  :root {
    --top-bar-height: 48px;
  }

  .top-bar {
    height: 48px;
    padding: 0 10px;
  }

  /* Hide game title to save space */
  .game-title-small {
    display: none;
  }

  /* Hide full resource pills; show compact row */
  .resource-display {
    display: none;
  }

  .resource-compact {
    display: flex;
  }

  /* Keep right-side buttons as icon-only with adequate touch targets */
  .attacks-text,
  .activity-text,
  .menu-text {
    display: none;
  }

  .attacks-toggle,
  .activity-toggle,
  .menu-toggle {
    min-width: 40px;
    min-height: 40px;
    padding: 0 8px;
    justify-content: center;
  }

  /* Hide alliance online badge to save space (visible in menu) */
  .alliance-online {
    display: none !important;
  }

  /* Hide user email on very small screens */
  .user-email {
    display: none;
  }

  /* Tighten right-side gap */
  .top-bar-right {
    gap: 6px;
  }

  /* Dropdowns: full-width on mobile */
  .attacks-dropdown,
  .activity-dropdown,
  .menu-dropdown {
    min-width: min(320px, calc(100vw - 20px));
    right: 0;
  }
}
