/* The question about Combat controls (controls-choice.js): one of the front end's full screens, two cards. Everything
   here is under .front.choice or carries a cc- name, so it collides with nothing in lab.css or forge.css.
   The two cards look the same: neither is the lit one. The focus is a thicker band of brass, a shape as well as a color.
   Nothing moves but a pressed card going down a pixel, and not that with reduced motion. */

.front.choice { background: #0f0d0a; }
.cc-page { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; scrollbar-width: none;
  display: grid; grid-template-columns: minmax(0, 60rem); justify-content: center; align-content: safe center; gap: clamp(14px, 2.6vh, 28px);
  padding: calc(18px + var(--safe-t)) calc(20px + var(--safe-r)) calc(20px + var(--safe-b)) calc(20px + var(--safe-l)); }
.cc-page::-webkit-scrollbar { display: none; }

.cc-head { display: grid; gap: 6px; justify-items: center; text-align: center; }
.cc-head h1 { font-size: clamp(24px, 2.2vw + 14px, 38px); text-wrap: balance; }
.cc-lead { color: var(--muted); font-size: calc(17px * var(--ts, 1)); max-width: 62ch; text-wrap: balance; }

.cc-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(12px, 1.6vw, 22px); align-items: stretch; }

.cc-card { display: grid; grid-template-rows: auto 1fr auto; gap: 14px; align-content: start; min-width: 0; min-height: 44px; margin: 0; padding: 18px 20px 16px; border: 0; cursor: pointer;
  text-align: left; color: var(--text); font: calc(17px * var(--ts, 1)) / 1.45 var(--body); -webkit-tap-highlight-color: transparent;
  background: linear-gradient(#2c281e, #201c15); clip-path: var(--cut);
  box-shadow: inset 0 0 0 2px #4a4334, inset 0 3px 0 rgba(255, 255, 255, 0.05), inset 0 -4px 0 rgba(0, 0, 0, 0.4); }
.cc-card:active { transform: translateY(1px); }
.cc-card:focus { outline: none; }
.cc-card:focus-visible { box-shadow: inset 0 0 0 4px var(--brass), inset 0 0 0 7px #14110d; }

.cc-figure { display: grid; gap: 6px; justify-items: center; padding: 10px 10px 8px; background: #17140f; box-shadow: inset 0 0 0 1px var(--seam); }
.cc-art { display: block; width: min(100%, 20rem); height: auto; aspect-ratio: 128 / 68; overflow: visible; fill: none; stroke: var(--brass); stroke-width: 1.7; stroke-linecap: square; stroke-linejoin: miter; }
.cc-art .cc-foe { stroke: #b3a88f; }
.cc-art .cc-act { stroke: var(--ember-hi); stroke-width: 2.1; }
.cc-art .cc-link { stroke-width: 1.4; stroke-dasharray: 2 4; }
.cc-art .cc-reach { stroke: var(--ember-hi); stroke-width: 1.4; stroke-dasharray: 5 5; }
.cc-art .cc-floor { stroke: #5a5242; stroke-width: 1.2; }
.cc-caption { color: var(--muted); font-size: calc(14.5px * var(--ts, 1)); line-height: 1.3; text-align: center; }

.cc-words { display: grid; gap: 6px; align-content: start; min-width: 0; }
.cc-name { font: 600 calc(clamp(22px, 1.2vw + 14px, 28px) * var(--ts, 1)) / 1.15 var(--display); letter-spacing: 0.05em; color: var(--brass); }
.cc-text { display: block; max-width: 44ch; }

/* What pressing the card does, in words, on the card itself: the same plate on both. */
.cc-pick { display: grid; place-items: center; min-height: 44px; padding: 6px 14px; text-align: center;
  font: 700 calc(15px * var(--ts, 1)) / 1.2 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text);
  background: linear-gradient(#383327, #262219); box-shadow: inset 0 0 0 1px #5a513f, inset 0 2px 0 rgba(255, 255, 255, 0.06), inset 0 -3px 0 rgba(0, 0, 0, 0.4); }

.cc-note { text-align: center; text-wrap: balance; color: var(--text); font-size: calc(16px * var(--ts, 1)); }

/* A phone held upright: one card over the other, each drawing with its words beside it. */
@media (max-width: 639px) and (orientation: portrait) {
  .cc-page { gap: 12px; padding: calc(14px + var(--safe-t)) calc(16px + var(--safe-r)) calc(16px + var(--safe-b)) calc(16px + var(--safe-l)); }
  .cc-head { gap: 4px; }
  .cc-head h1 { font-size: clamp(20px, 6vw, 26px); }
  .cc-lead { display: none; }
  .cc-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cc-card { gap: 10px; padding: 14px 14px 12px; font-size: calc(16px * var(--ts, 1)); line-height: 1.4; }
  .cc-figure { grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 10px; }
  .cc-caption { text-align: left; }
}

/* A phone on its side: the two cards side by side, each with its drawing to the left of its words. */
@media (orientation: landscape) and (max-height: 520px) {
  .cc-page { gap: 8px; padding-top: calc(8px + var(--safe-t)); padding-bottom: calc(8px + var(--safe-b)); }
  .cc-head { gap: 0; }
  .cc-head .eyebrow, .cc-lead { display: none; }
  .cc-head h1 { font-size: 24px; }
  .cc-card { grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 8px 12px; padding: 12px 14px 10px; font-size: calc(15.5px * var(--ts, 1)); line-height: 1.35; }
  .cc-figure { align-self: start; padding: 6px; }
  .cc-caption { font-size: calc(13.5px * var(--ts, 1)); }
  .cc-pick { grid-column: 1 / -1; }
  .cc-note { font-size: calc(15px * var(--ts, 1)); }
}

@media (prefers-reduced-motion: reduce) { .cc-card:active { transform: none; } }
