#rival-fronts {
  min-width: 0;
  pointer-events: auto;
  --front-line: #2b3c4a;
  --front-row-height: 46px;
}
#rival-fronts .panel-head { justify-content: space-between; }
#fronts-back { transform: rotate(180deg); }
#rival-fronts-list {
  max-height: calc(3 * var(--front-row-height));
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #3a5261 #101b25;
}
#rival-fronts .front-row {
  display: flex;
  align-items: stretch;
  width: 100%;
  block-size: var(--front-row-height);
  min-height: var(--front-row-height);
  box-sizing: border-box;
  border: 0;
  border-block-end: 1px solid var(--front-line);
  border-radius: 0;
  text-align: start;
  background: #101d28;
  color: var(--text);
}
#rival-fronts .front-select, #rival-fronts .front-offer {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  font: inherit;
}
#rival-fronts button { cursor: pointer; }
#rival-fronts :is(.front-select,.front-offer,.front-pool):is(:hover,:focus-visible) {
  background: #1d3440;
  color: #fff;
}
#rival-fronts button:focus-visible { outline: 2px solid var(--cyan,#36e4d7); outline-offset: -2px; }
.front-flags, .front-emblem { display: grid; flex: 0 0 25px; justify-items: start; }
.front-flags .flag, .front-emblem .flag { width: 18px; height: 12px; object-fit: cover; }
.front-flags .flag + .flag { margin-inline-start: 7px; margin-block-start: -1px; outline: 1px solid #101d28; }
.front-name { flex: 1; min-width: 0; display: grid; gap: 2px; }
.front-name :is(strong,small) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.front-name strong, .front-single-country { font-weight: 700; color: var(--text); }
.front-name small, .front-brief, .front-motto, .front-empty { color: var(--muted); }
#rival-fronts :is(.front-select,.front-offer):is(:hover,:focus-visible) .front-name strong { color: var(--cyan); }
.front-name small .flag { width: 13px; height: 9px; vertical-align: baseline; }
.front-level {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px;
  border: 1px solid currentColor; border-radius: 3px; white-space: nowrap;
  font: 500 10px/1.2 var(--mono); color: #a3cec7;
}
.front-level.high { color: #ff9a89; background: #302228; }
.front-level.medium { color: #efc579; background: #28251d; }
.front-level.low { background: #172a2c; }
.front-level i { display: flex; align-items: end; gap: 1px; height: 8px; }
.front-level i b { width: 2px; background: currentColor; }
.front-level i b:first-child { height: 3px; }
.front-level i b:nth-child(2) { height: 5px; }
.front-level i b:nth-child(3) { height: 8px; }
.front-level.low i b:not(:first-child), .front-level.medium i b:nth-child(3) { opacity: .25; }
#fronts-context { padding: 8px; border-block-end: 1px solid var(--front-line); }
.front-brief, .front-country-tabs { display: flex; align-items: center; gap: 6px; }
.front-country-tabs { margin-block-start: 7px; flex-wrap: wrap; }
.front-country-tabs button, .front-retry {
  display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 3px 6px;
  border: 1px solid var(--front-line); border-radius: 4px; color: var(--muted);
  background: #14232e;
}
.front-country-tabs button[aria-pressed=true] { border-color: #469d99; color: var(--cyan); background: #123333; }
.front-country-tabs .flag { width: 16px; height: 11px; }
.front-single-country { display: flex; align-items: center; gap: 5px; }
.front-motto { margin: 6px 0 0; }
.front-offer { flex: 1; min-width: 0; border: 0; border-radius: 0; text-align: start; color: inherit; background: transparent; }
.front-offer > .icon, .front-select > .icon, .front-pool .icon, .front-emblem .icon { width: 15px; height: 15px; flex: none; }
.front-offer > .icon { color: var(--amber,#ffc15c); }
.front-price { white-space: nowrap; }
.front-emblem { flex-basis: 18px; color: #71d5cc; }
.front-pool {
  display: grid; align-content: center; justify-items: center; gap: 2px; padding: 0 6px; min-width: 34px;
  border: 0; border-inline-start: 1px solid var(--front-line); font: 500 10px/1.2 var(--mono);
  border-radius: 0; background: #132732; color: #71d5cc;
}
#rival-fronts .front-title { background: linear-gradient(100deg,#123138,#14242e); border-inline-start: 2px solid #53bcaf; }
.front-empty { margin: 0; padding: 10px; }
.front-retry { margin: 0 8px 8px; }
@media (max-width: 1100px) {
  .front-target:not(.front-title) .front-name small { font-size: 13px; }
}
@media (min-width: 1101px) and (max-height: 730px) {
  .intel { overflow: visible; justify-content: space-between; pointer-events: none; }
  .intel .ranking-stack { display: grid; flex: 0 1 auto; overflow: auto; overscroll-behavior: contain; }
}
@media (max-width: 780px), (pointer:coarse) {
  #rival-fronts { --front-row-height: 50px; }
  #rival-fronts button { min-height: 44px; }
  #rival-fronts :is(.front-pool,#fronts-back) { min-width: 44px; }
}
