/* Cartographic game surface: true coast material, schematic regions, exact server routes. */
.st-risk .rk-art {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 48px;
  flex: 0 0 auto;
  pointer-events: none;
  vertical-align: middle;
}
.st-risk .rk-art > svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.st-risk .rk-art :is(svg, image) {
  pointer-events: none;
}
.st-risk .rk-desk {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.st-risk .rk-desk > .rk-art {
  width: 46px;
  height: 58px;
}
.st-risk .rk-desk > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.st-risk .rk-desk strong {
  font-size: 16px;
  color: var(--ink);
}
.st-risk .rk-desk span:not(.rk-art) {
  font-size: 13px;
  color: var(--muted);
}
.st-risk .rk-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}
.st-risk .rk-navigation button {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: var(--club-light-blue);
  color: var(--secondary-text);
  font: inherit;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
}
.st-risk .rk-map-scroll {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  scrollbar-color: var(--club-blue) var(--club-light-blue);
  overscroll-behavior-inline: contain;
  scroll-padding: 45px;
}
.st-risk .rk-world {
  min-width: 780px;
  width: 100%;
  aspect-ratio: 1.5;
  background: #17475e;
  overflow: hidden;
}
.st-risk .rk-world > svg {
  width: 100%;
  height: 100%;
  display: block;
}
.st-risk .rk-world > svg text {
  font:
    700 15px Vazirmatn,
    sans-serif;
  fill: #fff5cf;
  text-anchor: middle;
}
.st-risk .rk-world .rk-wrap-label {
  font-size: 12px;
  fill: #dbe4f1;
}
.st-risk .rk-sea-link {
  fill: none;
  stroke: #dbe4f1;
  stroke-width: 1.4;
  stroke-dasharray: 5 5;
  opacity: 0.8;
}
.st-risk .rk-neighbor-link {
  fill: none;
  stroke: #ffdaa4;
  stroke-width: 3;
  stroke-linecap: round;
}
.st-risk .rk-current-route {
  fill: none;
  stroke: white;
  stroke-width: 4;
  stroke-dasharray: 8 5;
}
.st-risk .rk-territory {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 60px;
  min-height: 54px;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 0;
  padding: 3px;
  border: 1px solid #cbd6e5;
  border-radius: 7px;
  background: #ffffffed;
  color: var(--ink);
  z-index: 2;
  cursor: pointer;
  box-shadow: 0 2px 6px #14213b22;
}
.st-risk .rk-troop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  min-height: 33px;
}
.st-risk .rk-troop > .rk-art {
  width: 23px;
  height: 33px;
}
.st-risk .rk-troop > b {
  font-size: 19px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.st-risk .rk-troop > small {
  position: absolute;
  right: -2px;
  top: -3px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--rk-owner);
  color: white;
  font-size: 10px;
  border: 1px solid white;
}
.st-risk .rk-territory-name {
  font-size: 10px;
  line-height: 1.5;
  font-weight: 700;
  white-space: normal;
  overflow-wrap: normal;
}
.st-risk .rk-territory.rk-legal {
  outline: 2px solid var(--club-blue);
  outline-offset: 2px;
  background: #f2f6ff;
}
.st-risk .rk-territory.rk-neighbor {
  border: 2px solid #ad4c13;
}
.st-risk .rk-territory.rk-from::after,
.st-risk .rk-territory.rk-to::after {
  display: block;
  font-size: 10px;
  color: var(--secondary-text);
  font-weight: 800;
}
.st-risk .rk-territory.rk-from::after {
  content: "مبدأ";
}
.st-risk .rk-territory.rk-to::after {
  content: "مقصد";
}
.st-risk .rk-territory.selected {
  outline: 3px solid #f5a14a;
  outline-offset: 3px;
  z-index: 4;
}
.st-risk .rk-territory:hover {
  background: #ffdaa4;
}
.st-risk .rk-map-hint {
  font-size: 12px;
  color: var(--secondary-text);
  line-height: 1.9;
  margin: 8px 0 20px;
}
.st-risk .rk-map-hint > span {
  color: var(--muted);
}
.st-risk .rk-context.pg-context {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  max-height: none;
  overflow: visible;
  box-shadow: none;
  margin: 12px 0 !important;
  background: var(--club-light-blue) !important;
  border-color: var(--club-blue) !important;
  z-index: 3;
}
.st-risk .rk-context-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.st-risk .rk-context-head > div {
  flex: 1;
  min-width: 0;
}
.st-risk .rk-context-head h3 {
  margin: 0 0 5px;
  font-size: 17px;
}
.st-risk .rk-context-head span:not(.rk-art) {
  font-size: 12px;
  color: var(--muted);
}
.st-risk .rk-context-head > button {
  min-height: 44px;
}
.st-risk .rk-neighbors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 12px 0;
}
.st-risk .rk-neighbors > strong {
  font-size: 12px;
}
.st-risk .rk-neighbors button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  color: var(--secondary-text);
  font: inherit;
  font-size: 12px;
  padding: 6px 10px;
  cursor: pointer;
}
.st-risk .rk-context .pg-context-actions {
  flex-wrap: wrap;
}
.st-risk .rk-context p {
  font-size: 12px;
}
.st-risk .rk-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 12px;
}
.st-risk .rk-section-head h3 {
  font-size: 17px;
  margin: 0;
}
.st-risk .rk-section-head > span {
  font-size: 12px;
  color: var(--muted);
}
.st-risk .rk-continents > div:last-child {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.st-risk .rk-continents button {
  min-height: 78px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: right;
  cursor: pointer;
}
.st-risk .rk-continents button strong {
  font-size: 13px;
}
.st-risk .rk-continents button span {
  font-size: 13px;
  color: var(--secondary-text);
  font-weight: 700;
}
.st-risk .rk-continents button small {
  flex-basis: 100%;
  font-size: 11px;
  color: var(--muted);
}
.st-risk .rk-commander {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.st-risk .rk-commander > .rk-art {
  width: 36px;
  height: 48px;
}
.st-risk .rk-commander strong {
  font-size: 13px;
  flex: 1;
  min-width: 70px;
  color: var(--rk-owner);
}
.st-risk .rk-commander > span:not(.rk-art) {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.st-risk .rk-commander small {
  font-size: 11px;
  color: var(--muted);
}
.st-risk .rk-commander.eliminated {
  opacity: 0.65;
}
.st-risk .rk-battle {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.st-risk .rk-battle h3 {
  font-size: 14px;
  margin: 0 0 10px;
}
.st-risk .rk-battle > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}
.st-risk .rk-battle small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.st-risk .rk-die {
  display: inline-block;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}
.st-risk .rk-die > svg {
  width: 100%;
  height: 100%;
  fill: var(--ink);
}
.st-risk .rk-dice-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.st-risk .rk-dice-actions > strong {
  font-size: 13px;
  flex-basis: 100%;
}
.st-risk .rk-hand > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.st-risk .rk-card {
  width: 140px;
  min-height: 155px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--status-ground);
}
.st-risk .rk-card .rk-art {
  width: 95px;
  height: 85px;
}
.st-risk .rk-card strong {
  font-size: 12px;
}
.st-risk .rk-card > span:not(.rk-art) {
  font-size: 11px;
  color: var(--muted);
}
.st-risk .rk-private-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.st-risk .rk-table .text-button {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--secondary-text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.st-risk :is(button, .rk-map-scroll):focus-visible {
  outline: 3px solid var(--club-blue);
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .st-risk .rk-navigation {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .st-risk .rk-navigation button {
    font-size: 11px;
    padding: 5px;
  }
  .st-risk .rk-desk strong {
    font-size: 14px;
  }
  .st-risk .rk-desk span:not(.rk-art) {
    font-size: 12px;
  }
  .st-risk .rk-section-head {
    display: block;
  }
  .st-risk .rk-section-head h3 {
    font-size: 15px;
    margin-bottom: 4px;
  }
  .st-risk .rk-section-head > span {
    font-size: 11px;
  }
  .st-risk .rk-continents > div:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .st-risk .rk-continents button {
    padding: 8px;
  }
  .st-risk .rk-commander {
    gap: 8px;
  }
  .st-risk .rk-commander > span:not(.rk-art) {
    font-size: 12px;
  }
  .st-risk .rk-commander small {
    flex-basis: calc(100% - 48px);
    margin-right: 44px;
  }
  .st-risk .rk-context-head {
    gap: 8px;
  }
  .st-risk .rk-context-head h3 {
    font-size: 15px;
  }
  .st-risk .rk-context-head > .rk-art {
    width: 30px;
    height: 40px;
  }
  .st-risk .rk-context-head > span {
    font-size: 11px;
  }
}

.st-risk .rk-troop > small {
  background: white;
  color: var(--ink);
  border: 2px solid var(--rk-owner);
}
.st-risk .rk-commander strong {
  color: var(--ink);
}
.st-risk .rk-wild {
  display: inline-grid;
  place-items: center;
  width: 95px;
  height: 85px;
  color: var(--secondary-text);
}
.st-risk .rk-wild svg {
  width: 60px;
  height: 60px;
  fill: #ffdaa4;
  stroke: currentColor;
  stroke-width: 1.5;
}
@media (max-width: 760px) {
  .st-risk .rk-world {
    min-width: 1120px;
  }
  .st-risk .rk-territory {
    width: 72px;
    min-height: 60px;
  }
}
