/* Reserve the illustrated operation tiles for matches. Practice lives below the two modes. */
.range-entry {
  --line: #53614a;
  position: relative;
  width: 100%;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  padding: 0 21px 0 0;
  min-height: 84px;
  color: var(--paper);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: linear-gradient(100deg, #343e31, #222a21 49%, #1e261e);
}
.range-art {
  position: relative;
  width: 158px;
  height: 82px;
  flex: none;
  align-self: stretch;
  overflow: hidden;
  background: linear-gradient(90deg, #101910, #323c2d);
  border-right: 1px solid #626c52;
}
.range-art img {
  position: absolute;
  width: 67px;
  height: 78px;
  object-fit: cover;
  top: 17px;
  left: 15px;
  border: 2px solid #8b9171;
  border-radius: 4px;
  box-shadow: 1px 3px 9px #080d0799;
  transform: rotate(-15deg);
}
.range-art img:nth-child(2) { left: 49px; top: 10px; transform: rotate(0); }
.range-art img:nth-child(3) { left: 84px; transform: rotate(14deg); }
.range-copy { display: grid; gap: 4px; min-width: 0; }
.range-copy strong { font: 700 25px/1 "Field Condensed",var(--sans); }
.range-copy span { font: 400 13px/1.4 var(--sans); color: #c0cbb8; }
.range-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  color: #d4ddbf;
  font: 700 12px var(--sans);
}
.range-link .icon { width: 17px; }
.range-entry:hover { border-color: #9bab81; }
.range-entry:focus-visible, .brief-card:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

dialog.deck-setup { width: min(640px, calc(100% - 24px)); max-height: 90svh; }
.deck-setup .dialog-content { max-height: 90svh; display: flex; flex-direction: column; }
.deck-setup .dialog-header, .deck-setup .dialog-footer { flex: none; }
.deck-setup .dialog-body { overflow: auto; display: grid; gap: 15px; grid-template-columns: 1fr 1fr; }
.deck-setup .option-group { margin: 0; }
.deck-setup .doctrine-group, .deck-setup .dialog-note { grid-column: 1/-1; }
.deck-setup .dialog-note { margin: 0; }
.doctrine-brief { margin-top: 10px; padding: 14px; border: 1px solid #495441; border-radius: 4px; background: #1a2119; }
.doctrine-desc { color: #e2e5d7; font-size: 13px; line-height: 1.4; margin: 0; }
.doctrine-detail { margin: 5px 0 15px; color: #b4c1a9; font: 12px/1.45 var(--sans); }
.doctrine-detail strong { color: #d5ba87; margin-right: 5px; }
.deck-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: #dbe1d0; font: 600 12px/1.3 var(--sans); }
.deck-heading small { color: #aebba4; font-weight: 400; font-size: 11px; }
.brief-deck { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; margin-top: 7px; }
.brief-card { border: 1px solid #56624d; border-radius: 3px; background: #2b3427; padding: 0; text-align: left; overflow: hidden; }
.brief-card img { display: block; width: 100%; aspect-ratio: 2.2; object-fit: cover; }
.brief-card span { display:block; padding: 6px; font: 600 16px/1.1 "Field Condensed",var(--sans); color: #ecebdc; }
.brief-card:hover { border-color: #e1bc79; }

.order-bar { display: flex; gap: 9px; align-items: center; justify-content: space-between; margin: 9px 18px 0; padding: 8px 10px; background: #363323; color: #f2d299; border: 1px solid #6d6041; border-radius: 3px; }
.order-readout { display: flex; gap: 8px; align-items: center; font: 500 12px/1.3 var(--sans); }
.order-readout .icon { width: 17px; height: 17px; flex: none; }
#issue-order { flex: none; min-height: 34px; padding: 5px 12px; font-size: 12px; }
.square.legal.order-target:not(.capture)::before { inset: 37%; border-radius: 2px; background:#775722a8; border:1.5px solid #f7d390; transform: rotate(45deg); }
.square.legal.capture.order-target::before { border-color: #7d4f1e; outline: 1px solid #f7d390; }
.square.order-locked { box-shadow:inset 0 0 0 4px #5b3d17; background-color:#dbc382; }
.log-panel .section-header { gap: 9px; }
.log-count { margin-left: auto; }
#replay-button { color:#d9bf91; padding-left:3px; font-size:12px; }
.log-row { align-items: stretch; padding: 2px 7px; }
.log-row > span { align-self: center; }
.log-row > button { text-align: left; padding: 5px 2px; font: inherit; color: inherit; border-radius: 2px; }
.log-row > button:hover,.log-row > button:focus-visible { background: #343e2e; color:#f5cf86; }

@media(max-width:600px) {
  .range-entry { gap: 12px; padding-right: 12px; min-height: 77px; }
  .range-art { width: 79px; height: auto; min-height: 77px; }
  .range-art img { width: 46px; height: 57px; top: 28px; left: -10px; }
  .range-art img:nth-child(2) { left: 14px; top: 19px; }
  .range-art img:nth-child(3) { left: 36px; }
  .range-copy { gap: 3px; padding: 10px 0; }
  .range-copy strong { font-size: 22px; }
  .range-copy span { font-size: 12px; }
  .range-link { font-size: 0; gap: 0; }
  .deck-setup .dialog-body { gap: 13px; padding: 13px; }
  .deck-setup .dialog-header,.deck-setup .dialog-footer { padding: 11px 13px; }
  .brief-deck { gap: 4px; }
  .doctrine-brief { padding: 9px; }
  .brief-card span { padding: 5px 3px; font-size: 14px; }
  .order-bar { margin: 7px 6px 0; }
}
@media(max-width:480px) {
  .deck-setup .dialog-body { grid-template-columns:1fr; }
  .deck-setup .doctrine-detail { font-size:11.5px; }
}
