/* Micro-region cards, the region sheet and the snow-line pyramid (regions.js), in the prototype's dark panel style. */
[hidden] { display: none !important; }
.cards-wrap { position: absolute; left: 12px; right: 56px; bottom: 30px; z-index: 2; color: var(--ink); pointer-events: none; }
.cards-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px 2px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55); }
.cards-head b { font: 700 16px/1 var(--font); }
.cards-head span { font-size: 12.5px; color: #e3e8ed; }
.cards { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; pointer-events: auto; scrollbar-width: thin; }
.rcard { flex: 0 0 200px; display: grid; gap: 3px; text-align: left; background: var(--panel); color: var(--ink); border: 1px solid var(--line);
  border-radius: 14px; padding: 11px 12px; cursor: pointer; font: inherit; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
.rcard:hover, .rcard:focus-visible { border-color: rgba(255, 255, 255, 0.45); outline: none; }
.rcard .rn { font: 650 14.5px/1.2 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard .rc { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard .big { font: 700 30px/1.05 var(--font); color: #7fd3f5; margin-top: 4px; font-variant-numeric: tabular-nums; }
.rcard .big small { font-size: 14px; color: var(--ink); font-weight: 600; }
.rcard .rs { font-size: 11.5px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px var(--font); margin-top: 4px; }
.chip i, .aval .lv i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
.chip.none { color: var(--muted); font-weight: 500; }
.cards .empty { pointer-events: auto; background: var(--panel); padding: 10px 14px; border-radius: 10px; margin: 0; font-size: 13px; }
.sheet { position: absolute; top: 12px; right: 52px; width: 360px; max-height: calc(100% - 250px); overflow-y: auto; z-index: 3; box-sizing: border-box;
  background: var(--panel); color: var(--ink); border-radius: 16px; padding: 16px; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; gap: 14px; }
.sh-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.sh-head h2 { margin: 0; font: 700 21px/1.15 var(--font); }
.sh-head .sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.x { border: 0; background: rgba(255, 255, 255, 0.1); color: var(--ink); width: 30px; height: 30px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; flex: 0 0 auto; }
.fresh .big { display: block; font: 700 46px/1 var(--font); color: #7fd3f5; font-variant-numeric: tabular-nums; }
.fresh .big small { font-size: 20px; color: var(--ink); font-weight: 600; }
.fresh .lbl { font-size: 13px; color: var(--muted); }
.aval { background: rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 11px 13px; display: grid; gap: 4px; }
.aval .k, .stat .k { font: 600 11px/1.2 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.aval .lv { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.aval .lv b { font-size: 22px; }
.aval .h, .stat .h { font-size: 12px; color: var(--muted); }
.aval .none { font-size: 14px; color: var(--muted); }
.profile { width: 100%; height: auto; display: block; border-radius: 8px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.stat { display: grid; gap: 3px; text-align: left; min-width: 0; }
.stat .v { font: 650 19px/1.15 var(--font); font-variant-numeric: tabular-nums; }
.stat.btn { font: inherit; color: inherit; background: rgba(72, 190, 202, 0.12); border: 1px solid rgba(72, 190, 202, 0.45); border-radius: 12px; padding: 9px 10px; cursor: pointer; }
.stat.btn:hover, .stat.btn:focus-visible { background: rgba(72, 190, 202, 0.22); outline: none; }
.stat.btn:disabled { opacity: 0.5; cursor: default; }
.sw { display: inline-block; width: 14px; height: 0; border-top: 2px solid; }
.sw.sl { border-color: #48beca; }
.sw.fz { border-top: 2px dashed #f2a541; }
.modal { position: fixed; inset: 0; z-index: 10; background: rgba(5, 8, 12, 0.62); display: grid; place-items: center; padding: 16px; }
.dialog { width: min(640px, 100%); max-height: calc(100% - 32px); overflow-y: auto; background: #10171e; color: var(--ink); border-radius: 18px;
  padding: 16px 18px 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); display: grid; gap: 10px; box-sizing: border-box; }
.dialog .sh-head h2 { font-size: 19px; }
#pyr { width: 100%; display: block; touch-action: none; cursor: grab; }
#pyr:active { cursor: grabbing; }
.pyr-table { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pyr-table button { font: inherit; color: var(--ink); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 9px;
  padding: 6px 8px; display: grid; text-align: left; cursor: pointer; }
.pyr-table button b { font-size: 12px; color: var(--muted); }
.pyr-table button span { font: 600 13.5px var(--font); font-variant-numeric: tabular-nums; }
.pyr-note { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin: 0; }
.fzk { display: inline-block; width: 18px; border-top: 2px dashed #f2a541; vertical-align: middle; }
/* #readout: an id, so that it wins over the page's own .readout rules, which come later in the cascade */
@media (min-width: 601px) { #readout { left: auto; right: 56px; top: 12px; bottom: auto; } body.sheet-open #readout { display: none; } }
@media (max-width: 600px) {
  .cards-wrap { left: 8px; right: 8px; bottom: 26px; }
  .rcard { flex-basis: 170px; }
  .rcard .big { font-size: 26px; }
  .sheet { top: auto; bottom: 8px; left: 8px; right: 8px; width: auto; max-height: 72%; }
  body.sheet-open .cards-wrap { display: none; }
  #readout { bottom: 200px; }
  .pyr-table { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
