/* WAP — классический светлый «текстовый» стиль (белый фон, синие ссылки, Arial) */
body.theme-wap {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --border: #cccccc;
  --border-strong: #aaaaaa;
  --text: #000000;
  --text-heading: #000000;
  --text-muted: #333333;
  --text-subtle: #555555;
  --text-faint: #777777;
  --accent: #0000ee;
  --accent-hover: #0000cc;
  --accent-muted: rgba(0, 0, 238, 0.08);
  --secondary: #0000ee;
  --secondary-hover: #0000cc;
  --secondary-muted: rgba(0, 0, 238, 0.08);
  --btn-primary-text: #ffffff;
  --btn-ghost-hover-bg: #f0f0f0;
  --btn-ghost-hover-text: #000000;
  --success: #008000;
  --success-bg: #e8f5e8;
  --danger: #cc0000;
  --danger-bg: #fce8e8;
  --info: #0066aa;
  --warning-bg: #fff8e0;
  --warning-border: #cccc99;
  --warning-text: #664400;
  --reward-text: #006600;
  --wrong-text: #990000;
  --log-bg: #ffffff;
  --log-entry-border: #dddddd;
  --modal-overlay: rgba(0, 0, 0, 0.35);
  --modal-bg: #ffffff;
  --modal-header-border: #cccccc;
  --close: #666666;
  --close-hover: #000000;
  --map-cell-bg: #ffffff;
  --map-cell-border: #cccccc;
  --input-bg: #ffffff;
  --input-border: #aaaaaa;
  --science-track: #e8e8e8;
  --science-fill: #0000ee;
  --strip-bg: #f0f0f0;
  --chip-bg: #f0f0f0;
  --chip-border: #cccccc;
  --strip-enemy: #cc0000;
  --strip-friendly: #0066aa;
  --strip-empty: #999999;
  --siege-accent: #990000;
  --siege-banner-bg: #f0f0f0;
  --siege-label: #660000;
  --siege-label-bg: rgba(153, 0, 0, 0.08);
  --siege-title: #000000;
  --tavern-divider: #cccccc;
  --chat-log-bg: #f0f0f0;
  --theme-btn-bg: #ffffff;
  --theme-btn-border: #cccccc;
  --theme-btn-active-bg: #0000ee;
  --theme-btn-active-text: #ffffff;
  --font-ui: Arial, Helvetica, sans-serif;
  --font-display: Arial, Helvetica, sans-serif;
  --font-hud: Arial, Helvetica, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  --tracking-hud: 0;
  --text-ui: 16px;
  --text-2xs: 12px;
  --text-xs: 13px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-md: 17px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 22px;
  --leading-none: 1;
  --leading-dense: 1.15;
  --leading-tight: 1.2;
  --leading-normal: 1.35;
  --leading-loose: 1.45;
  --radius: 0;
  --radius-modal: 0;
  --radius-pill: 0;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --map-swamp-bg: #e8f0e8;
  --map-garrison-bg: #f0ebe0;
  --map-barbarian: #8B4513;
  --map-castle: #555555;
  --map-fort: #444466;
  --map-fort-room-bg: #f4f4f8;
  --map-fort-unknown: #8B0000;
  --map-treasure: #886600;
  --map-colony: #0066aa;
  --map-swamp-label: #2d6a2d;
  --map-focus-border: #0000ee;
  --map-empty-label: #888888;
  --map-cleared: #555555;
  --map-oil-label: #555555;
  --country-admin-accent: #886600;
  --country-admin-glow: rgba(136, 102, 0, 0.2);
  --country-admin-bg: rgba(136, 102, 0, 0.06);
  --country-admin-border: rgba(136, 102, 0, 0.4);
  --season-summer-bg: #fff8e0;
  --season-summer-text: #664400;
  --season-winter-bg: #e8f4f8;
  --season-winter-text: #055160;
  --wap-header-bg: #f0f0f0;
  min-height: 100vh;
  background-color: var(--bg);
  -webkit-font-smoothing: auto;
  font-weight: 400;
}

/* Ссылки — классический синий */
body.theme-wap a,
body.theme-wap a:link {
  color: #0000ee;
}
body.theme-wap a:visited {
  color: #551a8b;
}
body.theme-wap a:hover {
  color: #0000cc;
}

body.theme-wap h1 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

/* Плоские панели без теней и скруглений */
body.theme-wap .sect,
body.theme-wap .tavern-box:not(.lobby-tavern),
body.theme-wap .world-map-container,
body.theme-wap .country-card,
body.theme-wap .squad-management-box .squad-row,
body.theme-wap .log-container,
body.theme-wap .modal-content {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Серые полоски-заголовки как на скринах */
body.theme-wap .sect-title {
  background: var(--wap-header-bg);
  color: #000000;
  font-weight: 700;
  letter-spacing: 0;
  margin: -15px -15px 10px;
  padding: 4px 15px;
  border-bottom: 1px solid var(--border);
  display: block;
}

body.theme-wap .modal-header {
  background: var(--wap-header-bg);
  color: #000000;
  font-weight: 700;
  margin: -30px -30px 16px;
  padding: 8px 30px;
  border-bottom: 1px solid var(--modal-header-border) !important;
}

body.theme-wap .tavern-panel-label {
  background: var(--wap-header-bg);
  color: #000000;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 8px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-left: none;
  border-right: none;
}

body.theme-wap .war-log-table thead th,
body.theme-wap .leaderboard-table th {
  background: var(--wap-header-bg);
  color: #000000;
  font-weight: 700;
}

body.theme-wap .map-cell {
  background: var(--map-cell-bg) !important;
  color: var(--text) !important;
  border: 1px solid var(--map-cell-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.theme-wap .map-cell.map-cell--swamp {
  background: var(--map-swamp-bg) !important;
}

body.theme-wap .map-cell.map-cell--garrison {
  background: var(--map-garrison-bg) !important;
}

body.theme-wap .qty-input,
body.theme-wap .start-input,
body.theme-wap input,
body.theme-wap select,
body.theme-wap textarea {
  border-radius: 0 !important;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  box-shadow: none !important;
  font-family: var(--font-ui);
}

/* Кнопки: ghost — нейтральные; primary — синяя заливка */
body.theme-wap button {
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--font-ui);
  font-size: var(--text-base);
}

body.theme-wap .game-container #gameHeaderRow button:not(.country-header-loc-btn):not(.onboarding-help-btn),
body.theme-wap .game-container #cityPanelMount button,
body.theme-wap .game-container #adminPanelMount button {
  background: #f0f0f0;
  color: #000000;
  border: 1px solid #aaaaaa;
}

body.theme-wap .game-container #gameHeaderRow button:not(.country-header-loc-btn):not(.onboarding-help-btn):hover:not(:disabled),
body.theme-wap .game-container #cityPanelMount button:hover:not(:disabled),
body.theme-wap .game-container #adminPanelMount button:hover:not(:disabled) {
  background: #e0e0e0;
  color: #000000;
  border-color: #888888;
}

body.theme-wap .game-container #gameHeaderRow button.country-header-loc-btn,
body.theme-wap .game-container #gameHeaderRow button.country-header-loc-btn:hover:not(:disabled) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--text-subtle);
  padding: 0;
}

body.theme-wap button.primary,
body.theme-wap .game-container #gameHeaderRow button.primary,
body.theme-wap .game-container #cityPanelMount button.primary {
  background: #0000ee;
  border: 1px solid #0000cc;
  color: #ffffff;
}

body.theme-wap button.primary:hover:not(:disabled),
body.theme-wap .game-container #gameHeaderRow button.primary:hover:not(:disabled),
body.theme-wap .game-container #cityPanelMount button.primary:hover:not(:disabled) {
  background: #0000cc;
  color: #ffffff;
}

body.theme-wap .game-container #adminPanelMount button.btn-end-game {
  background: #cc0000;
  border-color: #990000;
  color: #ffffff;
}

body.theme-wap .game-container #adminPanelMount button.btn-end-game:hover:not(:disabled) {
  background: #990000;
  color: #ffffff;
}

body.theme-wap .resource-bar,
body.theme-wap .game-stat-line {
  font-weight: 400;
  font-size: var(--text-base);
  color: var(--text);
}

body.theme-wap .log-entry {
  border-bottom-color: var(--log-entry-border) !important;
  color: var(--text);
}

body.theme-wap .leaderboard-table th,
body.theme-wap .leaderboard-table td,
body.theme-wap .p2p-table tbody tr {
  border-color: var(--border) !important;
  color: var(--text);
}

body.theme-wap .season-badge,
body.theme-wap .season-badge--light,
body.theme-wap .season-summer,
body.theme-wap .season-winter {
  border: none !important;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding-left: 4px;
  padding-right: 4px;
}

body.theme-wap .theme-switcher-toggle,
body.theme-wap .theme-switcher-toggle:hover:not(:disabled),
body.theme-wap .theme-switcher-toggle[aria-expanded="true"] {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #000000;
  font-family: var(--font-ui);
  font-size: var(--text-ui);
  font-weight: 400;
  line-height: 1.3;
  padding: 0;
}

body.theme-wap .theme-switcher-menu {
  border-radius: 0;
  box-shadow: none;
  border: 1px solid #cccccc;
}

/* Горизонтальные разделители в духе старых WAP-страниц */
body.theme-wap .sect + .sect {
  border-top-color: var(--border);
}

body.theme-wap hr {
  border: none;
  border-top: 1px solid #cccccc;
  margin: 8px 0;
}

body.theme-wap .leaderboard-table th {
  text-transform: none;
  letter-spacing: 0;
}

/* Лобби / ход матча — те же палитры, что и остальной WAP (белый фон, синие ссылки) */
body.theme-wap .lobby-root {
  background: #ffffff;
  color: #000000;
  font-family: var(--font-ui);
}
body.theme-wap .lobby-root a,
body.theme-wap .lobby-root a:link {
  color: #0000ee;
}
body.theme-wap .lobby-root a:visited {
  color: #551a8b;
}
body.theme-wap .lobby-root a:hover {
  color: #0000cc;
}
body.theme-wap .lobby-panel,
body.theme-wap .lobby-panel h2,
body.theme-wap .lobby-card h3,
body.theme-wap .lobby-log-title,
body.theme-wap .lobby-eco-row {
  color: #000000;
}
body.theme-wap .lobby-lead,
body.theme-wap .lobby-meta,
body.theme-wap .lobby-empty,
body.theme-wap .lobby-note,
body.theme-wap .lobby-log-container .log-turn {
  color: #333333;
}
body.theme-wap .lobby-card,
body.theme-wap .lobby-started,
body.theme-wap .lobby-castle-card,
body.theme-wap .lobby-match-log,
body.theme-wap .lobby-modal {
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 0;
  box-shadow: none;
}
/* Матч: одна оболочка, без отдельных рамок у разделов */
body.theme-wap .lobby-match-layout {
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 0;
  box-shadow: none;
}
body.theme-wap .lobby-match-layout .lobby-started,
body.theme-wap .lobby-match-layout .lobby-match-log,
body.theme-wap .lobby-match-layout .lobby-tavern {
  background: transparent;
  border: none;
  box-shadow: none;
}
body.theme-wap .lobby-match-layout .lobby-split {
  background: transparent;
}
body.theme-wap .lobby-match-layout .lobby-split::after {
  background: #dddddd;
}
body.theme-wap .lobby-match-layout .lobby-split:hover::after {
  background: #cccccc;
}
body.theme-wap .lobby-match-resize {
  background:
    linear-gradient(135deg, transparent 0 46%, #dddddd 46% 54%, transparent 54% 62%, #dddddd 62% 70%, transparent 70%);
}
@media (max-width: 900px) {
  body.theme-wap .lobby-match-layout .lobby-match-side {
    border-left: none;
    border-top: 1px solid #e5e5e5;
  }
  body.theme-wap .lobby-match-layout .tavern-section-quiz {
    border-left: none;
    border-top: 1px solid #e5e5e5;
  }
}
body.theme-wap .lobby-map {
  background-color: #d6d6d6;
  background-image: url("/img/fog-of-war-wap.png");
  background-repeat: repeat;
  border: 1px solid #cccccc;
  border-radius: 0;
  box-shadow: none;
}
body.theme-wap .lobby-log-title {
  background: var(--wap-header-bg);
  font-weight: 400;
  margin: -10px -12px 8px;
  padding: 4px 12px;
  border-bottom: 1px solid #cccccc;
}
body.theme-wap .lobby-squad-sel {
  background: #e8e8ff;
  border-radius: 0;
}
body.theme-wap .lobby-log-container .log-entry {
  border-bottom-color: #dddddd;
  color: #000000;
}
body.theme-wap .lobby-modal-head {
  background: var(--wap-header-bg);
  margin: -14px -16px 12px;
  padding: 8px 16px;
  border-bottom: 1px solid #cccccc;
}
body.theme-wap .lobby-root button {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0 2px;
  color: #0000ee;
  text-decoration: underline;
  font-family: var(--font-ui);
  font-size: var(--text-ui);
  font-weight: 400;
  cursor: pointer;
}
body.theme-wap .lobby-root button:hover:not(:disabled) {
  background: transparent;
  color: #0000cc;
}
body.theme-wap .lobby-root button.primary,
body.theme-wap .lobby-root button.primary:hover:not(:disabled) {
  background: transparent;
  border: 0;
  color: #0000ee;
  font-weight: 400;
}
body.theme-wap .lobby-root button:disabled {
  color: #777777;
  text-decoration: none;
  cursor: default;
}
body.theme-wap .lobby-root button.lobby-cell {
  background: #ffffff;
  color: #000000;
  border: 1px solid #cccccc;
  border-radius: 0;
  text-decoration: none;
  padding: 0;
}
body.theme-wap .lobby-root button.lobby-cell.owned {
  background: color-mix(in srgb, var(--lobby-owner, #888888) 48%, #ffffff);
  box-shadow: none;
}
body.theme-wap .lobby-root button.lobby-cell:focus,
body.theme-wap .lobby-root button.lobby-cell:focus-visible,
body.theme-wap .lobby-root button.lobby-cell.selected,
body.theme-wap .lobby-root button.lobby-cell.reach {
  outline: none !important;
  outline-offset: 0;
  box-shadow: none;
}
body.theme-wap .lobby-root button.lobby-cell:has(.lobby-map-ico) {
  z-index: 2;
}
body.theme-wap .lobby-root button.lobby-cell.selected {
  border-color: #000000;
  z-index: 3;
}
body.theme-wap .lobby-root button.lobby-cell.reach {
  border-style: dashed;
  border-color: #555555;
}
body.theme-wap .lobby-root button.lobby-cell.fog {
  background: transparent !important;
  color: transparent;
  border-color: #dddddd;
  box-shadow: none;
}
body.theme-wap .lobby-legend-empty {
  background-image: url("/img/fog-of-war-wap.png");
  border-color: #dddddd;
  border-radius: 0;
}
body.theme-wap .lobby-root .lobby-modal-head > button {
  color: #000000;
  text-decoration: none;
  font-size: var(--text-2xl);
}
body.theme-wap .lobby-root #lobbyNeighborsOpen {
  text-decoration: none;
}
body.theme-wap .lobby-root .lobby-map-overlay-head button,
body.theme-wap .lobby-root .lobby-map-overlay-sticky button {
  color: #000000;
  text-decoration: none;
  font-size: var(--text-ui);
  font-weight: 400;
}
body.theme-wap .lobby-swatch {
  border-radius: 0;
  border-color: #aaaaaa;
}
body.theme-wap .lobby-map-grid-toggle {
  background: none;
  border: none;
  border-radius: 0;
  color: #000000;
  font-family: var(--font-ui);
  font-size: var(--text-ui);
  font-weight: 400;
  line-height: 1.3;
}
body.theme-wap .lobby-map-grid-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  appearance: none;
  background: transparent;
}
body.theme-wap .lobby-map-grid-switch {
  background: #eeeeee;
  border: 1px solid #999999;
  border-radius: 999px;
}
body.theme-wap .lobby-map-grid-toggle input:checked + .lobby-map-grid-switch {
  background: #000000;
  border-color: #000000;
}
body.theme-wap .lobby-map-grid-switch::after {
  background: #666666;
}
body.theme-wap .lobby-map-grid-toggle input:checked + .lobby-map-grid-switch::after {
  background: #ffffff;
}
body.theme-wap .lobby-map--wap-art {
  gap: 0;
  padding: 6px;
}
body.theme-wap .lobby-map-sector-grid {
  left: 6px;
  top: 6px;
}
body.theme-wap .lobby-map-sector-grid path {
  stroke: #888888;
  opacity: 0.7;
}

body.theme-wap .lobby-root button.lobby-cell {
  overflow: visible;
}
body.theme-wap .lobby-cell-terrain {
  overflow: hidden;
  clip-path: inset(0);
}

body.theme-wap .lobby-root button.lobby-cell.fog {
  overflow: hidden;
}

body.theme-wap .lobby-pip {
  border-radius: 0;
}

body.theme-wap .lobby-cell-roads {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

body.theme-wap .lobby-cell-roads svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

body.theme-wap .lobby-road-bed {
  fill: none;
  stroke: var(--lobby-owner, #888888);
  stroke-width: 10;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

body.theme-wap .lobby-road-groove {
  fill: none;
  stroke: #ffffff;
  stroke-width: 3.2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

body.theme-wap .lobby-road-hub {
  fill: var(--lobby-owner, #888888);
  stroke: #000000;
  stroke-width: 1.2;
}

body.theme-wap .lobby-cell-art {
  position: absolute;
  inset: 0;
  z-index: 2;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  pointer-events: none;
}

body.theme-wap .lobby-cell-art--multi {
  flex-direction: row;
  flex-wrap: wrap;
  max-width: 100%;
}

body.theme-wap .lobby-map-ico {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

body.theme-wap .lobby-map-ico--castle {
  width: 36px;
  height: 36px;
  overflow: visible;
}

body.theme-wap .lobby-cell-art--multi .lobby-map-ico {
  width: 20px;
  height: 20px;
}

body.theme-wap .lobby-map-ico--squad,
body.theme-wap .lobby-map-ico--wandering_squad {
  width: 32px;
  height: 32px;
}

body.theme-wap .lobby-cell-art--multi .lobby-map-ico--squad,
body.theme-wap .lobby-cell-art--multi .lobby-map-ico--wandering_squad {
  width: 32px;
  height: 32px;
}

body.theme-wap .lobby-cell-art--multi .lobby-map-ico--castle {
  width: 36px;
  height: 36px;
}

body.theme-wap .lobby-map-legend-item .lobby-map-ico--squad,
body.theme-wap .lobby-map-legend-item .lobby-map-ico--wandering_squad {
  width: 28px;
  height: 28px;
}

body.theme-wap .lobby-map-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

body.theme-wap .lobby-cell .lobby-map-ico--artifact-blue {
  animation-name: lobby-art-blue-wap;
  animation-duration: 1.6s;
  animation-timing-function: steps(2, end);
  filter: none;
}
@keyframes lobby-art-blue-wap {
  0%, 100% { opacity: 1; transform: none; filter: none; }
  50% { opacity: 0.45; transform: none; filter: none; }
}

body.theme-wap .lobby-map-ico-lvl {
  position: absolute;
  right: -2px;
  bottom: -2px;
  min-width: 8px;
  padding: 0 2px;
  font-family: var(--font-ui);
  font-size: var(--text-ui);
  font-weight: 400;
  line-height: 1.1;
  color: #000000;
  background: #f0f0f0;
  border: 1px solid #cccccc;
}

body.theme-wap .lobby-cell-pips {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  line-height: 0;
  pointer-events: none;
}

body.theme-wap .lobby-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
  margin: 6px 0 4px;
  padding: 4px 8px;
  background: var(--wap-header-bg);
  border: 1px solid #cccccc;
  color: #000000;
  font-size: var(--text-ui);
  font-weight: 400;
  font-family: var(--font-ui);
}

body.theme-wap .lobby-map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.theme-wap .lobby-map-legend-item .lobby-map-ico {
  width: 28px;
  height: 28px;
}

body.theme-wap .lobby-root button.lobby-cell.lobby-cell--meadow:not(.owned) {
  background: #ccff99;
}
body.theme-wap .lobby-root button.lobby-cell.lobby-cell--plain:not(.owned) {
  background: #eeffaa;
}
body.theme-wap .lobby-root button.lobby-cell.lobby-cell--forest:not(.owned) {
  background: #66cc66;
}
body.theme-wap .lobby-root button.lobby-cell.lobby-cell--hill:not(.owned) {
  background: #cccc99;
}
body.theme-wap .lobby-root button.lobby-cell.lobby-cell--swamp:not(.owned) {
  background: #99cc66;
}
body.theme-wap .lobby-root button.lobby-cell.lobby-cell--water {
  background: #99ccff;
}
body.theme-wap .lobby-root button.lobby-cell.lobby-cell--river {
  background: #cce6ff;
}
body.theme-wap .lobby-root button.lobby-cell.lobby-cell--ford {
  background: #cce6ff;
}
body.theme-wap .lobby-root button.lobby-cell.lobby-cell--fissure {
  background: #ffffcc;
}

body.theme-wap .lobby-cell-terrain--wap.lobby-cell-terrain--water .t-body { fill: #99ccff; }
body.theme-wap .lobby-cell-terrain--wap.lobby-cell-terrain--water .t-body-hi { fill: #cce6ff; }
body.theme-wap .lobby-cell-terrain--wap.lobby-cell-terrain--water .t-wave {
  fill: none;
  stroke: #0000cc;
  stroke-width: 1;
}
body.theme-wap .lobby-cell-terrain--wap.lobby-cell-terrain--water .t-shore { fill: #0000cc; }

body.theme-wap .lobby-cell-terrain--wap.lobby-cell-terrain--river .t-wash {
  fill: #99ccff;
  stroke: none;
  opacity: 0.85;
}
body.theme-wap .lobby-cell-terrain--wap.lobby-cell-terrain--river .t-ribbon {
  fill: #0000cc;
  stroke: none;
}
body.theme-wap .lobby-cell-terrain--wap.lobby-cell-terrain--river .t-mouth--wet {
  fill: #0000cc;
  stroke: none;
  opacity: 0.35;
}
body.theme-wap .lobby-cell-terrain--wap.lobby-cell-terrain--river .t-mouth--dry {
  fill: #99ccff;
  stroke: none;
  opacity: 0.7;
}

body.theme-wap .lobby-cell-terrain--wap.lobby-cell-terrain--fissure .t-glow {
  fill: none;
  stroke: #ffff00;
  stroke-width: 10;
  stroke-linecap: square;
}
body.theme-wap .lobby-cell-terrain--wap.lobby-cell-terrain--fissure .t-core {
  fill: none;
  stroke: #000000;
  stroke-width: 3;
  stroke-linecap: square;
}

body.theme-wap .lobby-cell-terrain--wap.lobby-cell-terrain--meadow .t-tuft,
body.theme-wap .lobby-cell-terrain--wap.lobby-cell-terrain--meadow .t-reed,
body.theme-wap .lobby-cell-terrain--wap.lobby-cell-terrain--swamp .t-tuft,
body.theme-wap .lobby-cell-terrain--wap.lobby-cell-terrain--swamp .t-reed {
  fill: none;
  stroke: #006600;
  stroke-width: 1.2;
  stroke-linecap: square;
}
body.theme-wap .lobby-cell-terrain--wap.lobby-cell-terrain--plain .t-dust {
  fill: #999966;
}
body.theme-wap .lobby-cell-terrain--wap.lobby-cell-terrain--forest .t-canopy {
  fill: #006600;
  stroke: #000000;
  stroke-width: 1;
  stroke-linejoin: miter;
}
body.theme-wap .lobby-cell-terrain--wap.lobby-cell-terrain--forest .t-trunk {
  fill: none;
  stroke: #000000;
  stroke-width: 2;
  stroke-linecap: square;
}
body.theme-wap .lobby-cell-terrain--wap.lobby-cell-terrain--hill .t-mound {
  fill: none;
  stroke: #666600;
  stroke-width: 2;
  stroke-linecap: square;
}

body.theme-wap .lobby-map-ico--hut-5 {
  width: 24px;
  height: 24px;
}

body.theme-wap .lobby-cell-art--multi .lobby-map-ico--hut-5 {
  width: 16px;
  height: 16px;
}

body.theme-wap .lobby-map-legend-item .lobby-map-ico--hut-5 {
  width: 28px;
  height: 28px;
}

body.theme-wap .lobby-root .lobby-modal--compact,
body.theme-wap .lobby-root .lobby-modal--compact .lobby-modal-head strong,
body.theme-wap .lobby-root .lobby-modal--compact #lobbyNeighborsOpen,
body.theme-wap .lobby-root .lobby-modal--compact .lobby-eco-row,
body.theme-wap .lobby-root .lobby-modal--compact .lobby-eco-actions,
body.theme-wap .lobby-root .lobby-modal--compact .lobby-hire-all,
body.theme-wap .lobby-root .lobby-modal--compact .fight-calc-inputs,
body.theme-wap .lobby-root .lobby-modal--compact .fight-calc-inputs th,
body.theme-wap .lobby-root .lobby-modal--compact .fight-calc-inputs td,
body.theme-wap .lobby-root .lobby-modal--compact .fight-calc-inputs button,
body.theme-wap .lobby-root .lobby-modal--compact .war-house-mini,
body.theme-wap .lobby-root .lobby-modal--compact .lobby-eco-actions button,
body.theme-wap .lobby-root .lobby-modal--compact .fight-calc-arts,
body.theme-wap .lobby-root .lobby-modal--compact .fight-calc-arts th,
body.theme-wap .lobby-root .lobby-modal--compact .fight-calc-arts td,
body.theme-wap .lobby-root .lobby-modal--compact label,
body.theme-wap .lobby-root .lobby-modal--compact input,
body.theme-wap .lobby-root .lobby-modal--compact select,
body.theme-wap .lobby-root .lobby-modal--compact .lobby-admin-link,
body.theme-wap .lobby-root .lobby-modal--compact .lobby-mage-ability,
body.theme-wap .lobby-root .lobby-modal--compact .lobby-mage-ability strong,
body.theme-wap #lobbyAdminBack .lobby-admin-block__title,
body.theme-wap #lobbyAdminBack .lobby-admin-block__hint,
body.theme-wap #lobbyAdminBack .lobby-admin-block button,
body.theme-wap .lobby-root #lobbyHireTip,
body.theme-wap .lobby-root #lobbyHireTip .lobby-map-tip-line,
body.theme-wap .lobby-root #lobbyHireTip .lobby-map-tip-line:first-child,
body.theme-wap .lobby-root .lobby-map-overlay,
body.theme-wap .lobby-root .lobby-map-overlay *,
body.theme-wap .lobby-map-grid-toggle,
body.theme-wap .lobby-map-grid-toggle-text,
body.theme-wap .lobby-root #lobbyMapTip,
body.theme-wap .lobby-root #lobbyMapTip .lobby-map-tip-line,
body.theme-wap .lobby-root #lobbyMapTip .lobby-map-tip-line:first-child,
body.theme-wap .lobby-root #lobbyMapTip .lobby-map-tip-label {
  font-family: var(--font-ui);
  font-size: var(--text-ui);
  font-weight: 400;
  line-height: 1.3;
}
body.theme-wap .lobby-root .lobby-modal--compact .war-house-mini,
body.theme-wap .lobby-root .lobby-modal--compact button.primary.war-house-mini,
body.theme-wap .lobby-root .lobby-modal--compact button.primary.war-house-mini:hover:not(:disabled),
body.theme-wap .lobby-root .lobby-modal--compact .lobby-eco-actions button,
body.theme-wap .lobby-root .lobby-modal--compact .lobby-eco-actions button:hover:not(:disabled),
body.theme-wap .lobby-root .lobby-modal--compact .fight-calc-inputs button,
body.theme-wap .lobby-root .lobby-modal--compact .fight-calc-inputs button:hover:not(:disabled),
body.theme-wap #lobbyAdminBack .lobby-admin-block button,
body.theme-wap #lobbyAdminBack .lobby-admin-block button:hover:not(:disabled) {
  font-size: var(--text-ui);
  font-weight: 400;
  padding: 2px 6px;
}

body.theme-wap .lobby-root .lobby-map-draw-rail {
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 0;
  box-shadow: none;
}
body.theme-wap .lobby-root .lobby-map-draw-rail button,
body.theme-wap .lobby-root .lobby-map-draw-btn,
body.theme-wap .lobby-root .lobby-map-draw-who,
body.theme-wap .lobby-root .lobby-map-draw-swatch,
body.theme-wap .lobby-root .lobby-map-draw-note-grip {
  text-decoration: none !important;
  color: #000000;
  background: transparent;
  border-radius: 0;
  padding: 0;
}
body.theme-wap .lobby-root .lobby-map-draw-btn:hover,
body.theme-wap .lobby-root .lobby-map-draw-who:hover {
  color: #0000ee;
  background: #f0f0f0;
  text-decoration: none !important;
}
body.theme-wap .lobby-root .lobby-map-draw-btn.is-on,
body.theme-wap .lobby-root .lobby-map-draw-who.is-on {
  color: #0000ee;
  border: 1px solid #0000ee;
  background: #ffffff;
  text-decoration: none !important;
}
body.theme-wap .lobby-root .lobby-map-draw-note {
  background: #ffffff;
  color: #000000;
  border-color: #000000;
  border-radius: 0;
}
