/* GDPWars Web Application Stylesheet */
:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #121824;
  --bg-tertiary: #1a2233;
  --bg-panel: #151d2c;
  --border-color: #243047;
  --border-focus: #3b82f6;
  --text-main: #e2e8f0;
  --text-muted: #8b9bb4;
  --accent-green: #10b981;
  --accent-blue: #3b82f6;
  --accent-gold: #f59e0b;
  --accent-red: #ef4444;
  --header-height: 56px;
  --sidebar-width: 380px;
  --left-rail-width: 200px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  height: var(--header-height);
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 100;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand h1 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
}

.brand-badge {
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background-color: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.nav-views {
  display: flex;
  background: var(--bg-primary);
  border-radius: 6px;
  padding: 3px;
  border: 1px solid var(--border-color);
}

.nav-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-btn:hover {
  color: #fff;
}

.nav-btn.active {
  background: var(--accent-blue);
  color: #fff;
  font-weight: 600;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg-tertiary);
  border-radius: 6px;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

/* App Container */
.app-container {
  display: flex;
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* Map Area */
.map-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  background-color: #0d121c;
  cursor: grab;
  user-select: none;
}

.map-container:active {
  cursor: grabbing;
}

.map-viewport {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.map-plane {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.map-layer {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  image-rendering: pixelated;
}

.grid-svg {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

/* Viewport Controls */
.viewport-hud {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
}

.hud-panel {
  background: rgba(18, 24, 36, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.coords-badge {
  font-family: monospace;
  color: #fff;
  font-weight: 600;
}

/* Zoom cluster docks to the map area's top-right corner. Bottom-right
   is taken by the legend badge baked into the map PNGs (WEB7). */
.zoom-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 10;
}

.zoom-btn {
  width: 34px;
  height: 34px;
  background: rgba(18, 24, 36, 0.9);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.zoom-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-blue);
}

/* Left rail (WEB7): the layer toggles live in a control column that
   flanks the map on the left, mirroring the right sidebar. The map
   fills the space between the two control columns. */
.left-rail {
  width: var(--left-rail-width);
  background-color: var(--bg-panel);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-content: flex-start;
  height: 100%;
  overflow-y: auto;
  z-index: 20;
  flex-shrink: 0;
  padding: 0.75rem;
  gap: 0.6rem;
}

.rail-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
  flex-shrink: 0;
}

.layer-toggles {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.45rem;
  font-size: 0.8rem;
}

.layer-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  color: var(--text-muted);
}

.layer-toggle-label input:checked + span {
  color: #fff;
  font-weight: 500;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-panel);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  z-index: 20;
  flex-shrink: 0;
}

.sidebar-section {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Panel model (WR4): switchable sidebar panels mirroring the client's
   alt-ui layer names. Buttons are generated from PANEL_REGISTRY in
   app.js; exactly one .game-panel is visible at a time. */
.panel-switcher {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.panel-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.panel-btn:hover {
  color: #fff;
  border-color: var(--accent-blue);
}

.panel-btn.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}

.game-panel {
  display: none;
  flex-direction: column;
}

.game-panel.active {
  display: flex;
}

.panel-placeholder {
  padding: 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* History day scrubber (WR8) */
.history-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.5rem 0 0.4rem;
}
.history-nav input[type="range"] {
  flex: 1;
  accent-color: var(--accent-green);
  cursor: pointer;
}
.history-day-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.hist-day-label {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}
.hist-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-main);
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
}
.hist-btn:hover:not(:disabled) {
  border-color: var(--accent-green);
}
.hist-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Ward Card */
.ward-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.85rem;
}

.ward-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.ward-name {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.ward-prof {
  font-size: 0.75rem;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.ward-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.stat-item {
  background: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

/* Action Controls */
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.action-btn {
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.65rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
}

.action-btn:hover:not(:disabled) {
  background: var(--bg-tertiary);
  border-color: var(--accent-blue);
  color: #fff;
}

.action-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.action-btn.primary {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.action-btn.primary:hover:not(:disabled) {
  background: rgba(16, 185, 129, 0.35);
  border-color: #34d399;
  color: #fff;
}

.selected-cell-box {
  background: var(--bg-primary);
  border: 1px dashed var(--border-color);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Orders List */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 200px;
  overflow-y: auto;
}

.order-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.45rem 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.order-badge {
  font-size: 0.7rem;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
}

.cancel-order-btn {
  background: transparent;
  color: var(--accent-red);
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 2px 4px;
}

/* Videos Archive Section */
.videos-view {
  display: none;
  flex: 1;
  background-color: var(--bg-primary);
  overflow-y: auto;
  padding: 2rem;
}

.videos-view.active {
  display: block;
}

/* Newspaper view */
.paper-view {
  display: none;
  flex: 1;
  background-color: var(--bg-primary);
  overflow-y: auto;
  padding: 2rem;
}

.paper-view.active {
  display: block;
}

.paper-container {
  max-width: 720px;
  margin: 0 auto;
  background-color: #f4efe4;
  color: #1c1a17;
  padding: 2rem 2.5rem;
  font-family: Georgia, 'Times New Roman', serif;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.paper-masthead {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 3px double #1c1a17;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.paper-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-family: inherit;
}

.paper-nav button {
  background: #1c1a17;
  color: #f4efe4;
  border: none;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  font-family: inherit;
}

.paper-nav button:disabled {
  opacity: 0.35;
  cursor: default;
}

.paper-section {
  border-bottom: 1px solid #c9c2b2;
  padding: 0.75rem 0;
}

.paper-section h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.paper-section p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
}

.paper-empty {
  color: #6b6455;
  font-style: italic;
}

.videos-container {
  max-width: 1080px;
  margin: 0 auto;
}

.video-day-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.video-day-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  color: #fff;
}

.video-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

video {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: #000;
}

/* Auth Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.55rem 0.75rem;
  color: #fff;
  font-size: 0.9rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.btn-submit {
  width: 100%;
  background: var(--accent-blue);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-submit:hover {
  background: #2563eb;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .app-container {
    flex-direction: column;
  }
  /* Left rail becomes a horizontal strip above the map; the layer
     toggles scroll sideways in one row to keep the map tall. */
  .left-rail {
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0.75rem;
    gap: 0.75rem;
  }
  .layer-toggles {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.75rem;
  }
  .layer-toggle-label {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .sidebar {
    width: 100%;
    height: 45vh;
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
  .zoom-controls {
    right: 1rem;
  }
  .video-pair {
    grid-template-columns: 1fr;
  }

  /* Two-row header: brand + Sign In on row 1, nav scrolls on row 2 */
  header {
    height: auto;
    min-height: var(--header-height);
    flex-wrap: wrap;
    align-content: center;
    row-gap: 0.4rem;
    padding: 0.5rem 0.75rem;
  }
  .brand h1 {
    font-size: 1rem;
  }
  .header-status {
    gap: 0.5rem;
    font-size: 0.8rem;
  }
  .status-indicator {
    display: none;
  }
  .nav-views {
    order: 3;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  /* Panel switcher: wrap to horizontal rows to save vertical space
     in the 45vh mobile sidebar (still no horizontal overflow). */
  .panel-switcher {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding: 0.5rem 0.75rem;
  }
  .panel-btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.35rem 0.6rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .brand-badge {
    display: none;
  }
  .nav-btn {
    padding: 0.25rem 0.25rem;
    font-size: 0.7rem;
  }
  .layer-toggles {
    gap: 0.6rem;
    font-size: 0.72rem;
  }
}

/* Release banner */
.release-banner {
  background-color: var(--accent-gold);
  color: #1c1a17;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.45rem 1rem;
  letter-spacing: 0.02em;
}

/* Island overview banner (WEB10): hideable strip of per-island cards
   (3D thumbnail + name + tiny WEB9 metrics table) for the focused
   era. Cards scroll sideways so any fleet size fits; the whole strip
   collapses to a thin bar via the toggle button. Hidden entirely in
   single-world mode (app.js keeps display:none without islands.json). */
.island-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  flex-shrink: 0;
}
.banner-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.island-cards {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
  scrollbar-width: thin;
}
.island-card {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  flex: 0 0 auto;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.4rem;
  cursor: pointer;
  color: var(--text-main);
  font: inherit;
  text-align: left;
}
.island-card:hover {
  border-color: var(--border-focus);
}
.island-card-current {
  border-color: var(--accent-gold);
}
.island-thumb {
  position: relative;
  width: 112px;
  height: 84px;
  flex-shrink: 0;
  background-color: var(--bg-tertiary);
  border-radius: 6px;
  overflow: hidden;
}
.island-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.island-thumb.no-thumb::after {
  content: 'no preview';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.7rem;
}
.island-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.15rem 0.35rem;
  background-color: rgba(10, 13, 20, 0.75);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.island-metrics {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  font-size: 0.7rem;
  min-width: 96px;
}
.island-metrics .mrow {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.island-metrics .mlabel {
  color: var(--text-muted);
}
.island-metrics .mcap {
  color: var(--text-muted);
  font-size: 0.65rem;
  margin-top: 0.15rem;
}
.island-metrics.no-data {
  color: var(--text-muted);
  font-style: italic;
}
.banner-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
}
.banner-toggle:hover {
  border-color: var(--border-focus);
  color: var(--text-main);
}
.island-banner.collapsed {
  padding: 0.3rem 0.75rem;
}
.island-banner.collapsed .island-cards {
  display: none;
}
@media (max-width: 480px) {
  .island-banner {
    padding: 0.4rem 0.5rem;
    gap: 0.5rem;
  }
  .banner-label {
    font-size: 0.65rem;
  }
  .island-thumb {
    width: 88px;
    height: 66px;
  }
  .island-metrics {
    font-size: 0.66rem;
    min-width: 84px;
  }
}

/* Hamburger menu (About / Contact) */
.menu-wrap {
  position: relative;
}
.hamburger {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
}
.hamburger:hover {
  border-color: var(--border-focus);
}
.menu-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  min-width: 140px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  z-index: 200;
}
.menu-dropdown.open {
  display: flex;
  flex-direction: column;
}
.menu-item {
  background: none;
  border: none;
  color: var(--text-main);
  text-align: left;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.menu-item:hover {
  background-color: var(--bg-tertiary);
}

/* World (era + island) switcher in the hamburger menu (MI7).
   Past eras sit under muted labels so they stay discoverable but
   unobtrusive; the selected island is marked with a check.
   #world-menu is one flex item of the dropdown column, so its own
   children must be laid out as a column too — otherwise the island
   buttons flow inline and share rows. */
#world-menu {
  display: flex;
  flex-direction: column;
}
.menu-era-label {
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1rem 0.15rem;
}
.menu-item-current {
  color: var(--accent-gold);
}

/* About / Contact views */
.info-view {
  display: none;
  flex: 1;
  background-color: var(--bg-primary);
  overflow-y: auto;
  padding: 2rem;
}
.info-view.active {
  display: block;
}
.info-container {
  max-width: 720px;
  margin: 0 auto;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 2rem 2.5rem;
  line-height: 1.6;
}
.info-container h2 {
  margin-bottom: 1rem;
  color: var(--accent-gold);
}
.info-container p {
  margin-bottom: 0.9rem;
}
.info-container a {
  color: var(--accent-blue);
}

/* About page: collapsed technical details (WEB6) */
.about-tech {
  display: none;
}
.about-tech.open {
  display: block;
}
.about-tech-toggle {
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 0.9rem;
  color: var(--accent-blue);
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Island Ward Roster (WR3) */
.ward-roster-wrap {
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-secondary);
}

table.ward-roster {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

table.ward-roster th {
  position: sticky;
  top: 0;
  background: var(--bg-secondary);
  color: var(--text-muted);
  text-align: left;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

table.ward-roster td {
  padding: 0.3rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #d5deeb;
}

table.ward-roster tbody tr {
  cursor: pointer;
}

table.ward-roster tbody tr:hover {
  background: rgba(59, 130, 246, 0.12);
}

.ward-status-wild { color: var(--text-muted); }
.ward-status-claimed { color: var(--accent-blue); }
.ward-status-yours { color: var(--accent-gold); font-weight: 600; }
/* WEB8 ward-status table: take-ward lifecycle colors */
.ward-status-caption { font-size: 0.72rem; color: var(--text-muted); margin: 0.25rem 0 0.1rem; }
.ward-status-wrap { max-height: 104px; overflow-y: auto; }
.wstat-active { color: var(--accent-green); font-weight: 600; }
.wstat-requested { color: var(--accent-gold); }
.wstat-did-not-get { color: var(--accent-red); }
.wstat-claimed { color: var(--accent-blue); }

/* Market panel (WR5) */
table.ward-roster tbody tr.market-selected {
  background: rgba(16, 185, 129, 0.18);
  outline: 1px solid var(--accent-green);
}

.market-controls {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

.market-field {
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
  color: var(--text-muted);
  gap: 0.25rem;
}

.market-field .form-input {
  width: 70px;
  padding: 0.35rem 0.5rem;
}

.market-controls .action-btn {
  padding: 0.4rem 0.85rem;
}

.market-status {
  font-size: 0.75rem;
  color: var(--accent-gold);
  min-height: 1.1rem;
  margin: 0.5rem 0 0;
}

@media (max-width: 480px) {
  .release-banner {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
  }
}
