/* Opponent, respond, intro, equipment, strategy, cry and sent. See public/js/screens/fight.js. */

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ch-big { margin: 0; font: bold calc(24 * var(--u)) / 1.1 var(--serif); color: var(--gold); text-shadow: 0 calc(1 * var(--u)) 0 #000; }
.ch-name { font-size: calc(20 * var(--u)); }
.ch-ask { margin: 0; font: bold calc(14 * var(--u)) / 1.2 var(--serif); color: var(--gold); text-shadow: 0 calc(1 * var(--u)) 0 #000; }
.ch-clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-small { font-size: calc(10 * var(--u)); }
.inset { background: #0f1260; border: calc(1 * var(--u)) solid #5a64d8; border-radius: calc(3 * var(--u)); color: #fff; }
.ch-forfeit { margin: 0; padding: calc(5 * var(--u)) calc(8 * var(--u)); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }

/* Lists of challenges and of previous cries */
.ch-row span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-row .ch-sub { font-size: calc(10 * var(--u)); color: #4a5280; }
.ch-row[aria-pressed='true'] .ch-sub { color: #1b2250; }
.ch-list p { color: #333; }

/* Equipment: the rider by the tent, and per kind an in-use line and a spare line (tag, name, accuracy, weight, strength) */
.eq-scene, .eq-spots { pointer-events: none !important; }
.eq-spots > * { pointer-events: auto; }
.eq-spot { padding: 0; border: 0; background: none; }
.eq-spot canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.eq-spot:hover { filter: brightness(1.25) drop-shadow(0 0 calc(3 * var(--u)) var(--gold)); }
.eq-head { display: grid; grid-template-columns: repeat(3, calc(34 * var(--u))); justify-content: end; margin: 0; font-size: calc(10 * var(--u)); font-weight: bold; text-align: right; color: var(--gold); }
.eq-head span { padding-right: calc(4 * var(--u)); }
.eq-slot { display: flex; flex-direction: column; gap: calc(1 * var(--u)); padding-left: calc(44 * var(--u)); }
.eq-label { position: absolute; left: 0; top: 0; height: 100%; width: calc(44 * var(--u)); display: flex; align-items: center; font-weight: bold; font-size: calc(10 * var(--u)); color: var(--gold); }
.eq-line { display: grid; white-space: nowrap; grid-template-columns: calc(40 * var(--u)) 1fr repeat(3, calc(34 * var(--u))); align-items: center; width: 100%; height: calc(15 * var(--u)); font-size: calc(10 * var(--u)); text-align: left; }
div.eq-line { background: #0f1260; color: #fff; border: calc(1 * var(--u)) solid #5a64d8; }
button.eq-spare { background: linear-gradient(#4f7fd0, #2a56a8); color: #fff; border: calc(1 * var(--u)) solid #8fb0f0; border-radius: 0; }
button.eq-spare:hover { background: linear-gradient(#d49a62, #96602f); border-color: #f0c490; }
.eq-none { opacity: 0.6; }
.eq-tag { padding-left: calc(3 * var(--u)); opacity: 0.8; }
.eq-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: bold; padding-right: calc(2 * var(--u)); }
.eq-n { text-align: right; padding-right: calc(4 * var(--u)); }
.eq-panel { padding: calc(3 * var(--u)) calc(6 * var(--u)); font-size: calc(10 * var(--u)); line-height: 1.15; overflow: hidden; }
/* The message line would cover the hints, so on this screen it goes under the picture instead. */
#stage:has(.eq-panel) #message { left: calc(190 * var(--u)); max-width: calc(370 * var(--u)); }
.eq-panel p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Strategy */
.st-title { display: block; width: fit-content; margin: 0 auto; padding: 0 calc(5 * var(--u)); background: rgba(10, 12, 50, 0.72); border-radius: calc(3 * var(--u)); text-align: center; color: var(--gold); font-size: calc(11 * var(--u)); text-shadow: 0 calc(1 * var(--u)) 0 #000, 0 0 calc(3 * var(--u)) #000; }
.st-effects { padding: calc(3 * var(--u)) calc(6 * var(--u)); font-size: calc(10 * var(--u)); overflow: hidden; }
.st-effects p { margin: 0; line-height: 1.2; }
.st-effects b { display: block; line-height: 1.1; }
.st-effect { display: grid; grid-template-columns: calc(46 * var(--u)) calc(42 * var(--u)) 1fr; align-items: center; gap: calc(3 * var(--u)); margin-top: calc(2 * var(--u)); }
.st-track { position: relative; height: calc(7 * var(--u)); background: rgba(0, 0, 0, 0.45); border-right: calc(1 * var(--u)) solid #fff; }
.st-track i { display: block; height: 100%; width: 100%; }
.st-track .at { height: 100%; }
.st-track .more { background: #43c04a; }
.st-track .less { background: #e8503c; }

/* The status of a pass sits just to the right of its button, which is why that button does not clip. */
.blade.pass { overflow: visible; }
.st-sub { position: absolute; left: calc(100% + 4 * var(--u)); top: 50%; transform: translateY(-50%); padding: calc(1 * var(--u)) calc(4 * var(--u)); font-size: calc(10 * var(--u)); font-weight: normal; white-space: nowrap; color: #fff; background: #1a1f8e; border: calc(1 * var(--u)) solid var(--amber); border-radius: calc(3 * var(--u)); text-shadow: none; }
.done .st-sub::before { content: '\2713\00a0'; color: #7dff8a; }
.st-left { margin: 0; font-size: calc(10 * var(--u)); color: #fff; text-shadow: 0 calc(1 * var(--u)) 0 #000, 0 0 calc(3 * var(--u)) #000; }
.st-read { margin: 0; padding: calc(2 * var(--u)) calc(8 * var(--u)); font-size: calc(10 * var(--u)); line-height: 1.2; }
.st-legend { margin: 0; font-size: calc(10 * var(--u)); display: flex; align-items: center; justify-content: center; gap: calc(3 * var(--u)); color: #fff; text-shadow: 0 0 calc(3 * var(--u)) #000; }
.st-legend i { display: inline-block; width: calc(14 * var(--u)); height: calc(12 * var(--u)); line-height: calc(12 * var(--u)); text-align: center; font-style: normal; font-weight: bold; color: var(--ink); background: rgb(var(--c)); text-shadow: none; }
/* With the artwork, the original's own scale stands in for the swatches, which stay for anyone who cannot see it. */
html.art .st-legend { left: calc(246 * var(--u)) !important; width: calc(97 * var(--u)) !important; height: calc(18 * var(--u)) !important; display: block; background: url('/assets/gfx/menu/easyhard.png') 0 0 / 100% 100%; }
html.art .st-legend > * { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html.art .st-legend { font-size: 0; }

.d1 { --c: 242, 226, 107; --f: 1; }
.d2 { --c: 240, 190, 70; --f: 2; }
.d3 { --c: 236, 150, 60; --f: 3; }
.d4 { --c: 218, 98, 52; --f: 4; }
.d5 { --c: 190, 40, 32; --f: 5; }
.d4, .d5 { color: #fff; }

/* The two armoured dummies: where the lance may go, and where the shield stands. */
.st-grid { display: grid; grid-template-columns: repeat(4, calc(32 * var(--u))); grid-auto-rows: calc(32 * var(--u)); }
html.art .st-grid { background: url('/assets/gfx/menu/dummyarmour.png') 0 0 / calc(128 * var(--u)) calc(131 * var(--u)) no-repeat; }
.st-grid > i { position: absolute; border: calc(1.5 * var(--u)) dashed rgba(255, 255, 255, 0.55); pointer-events: none; }
html.art .st-grid > i.st-head, html.art .st-grid > i.st-torso, html.art .st-grid > i.st-legs { display: none; }
.st-head { left: calc(40 * var(--u)); top: calc(1 * var(--u)); width: calc(48 * var(--u)); height: calc(30 * var(--u)); border-radius: 50%; }
.st-torso { left: calc(3 * var(--u)); top: calc(33 * var(--u)); width: calc(122 * var(--u)); height: calc(60 * var(--u)); border-radius: calc(12 * var(--u)); }
.st-legs { left: calc(31 * var(--u)); top: calc(95 * var(--u)); width: calc(66 * var(--u)); height: calc(32 * var(--u)); border-radius: 0 0 calc(8 * var(--u)) calc(8 * var(--u)); }
.st-grid > i.st-block { z-index: 1; width: calc(64 * var(--u)); height: calc(64 * var(--u)); border: 0; background: rgba(255, 226, 60, 0.3); }
.st-grid > i.st-shield { z-index: 1; width: calc(64 * var(--u)); height: calc(64 * var(--u)); border: 0; background: url('/assets/gfx/menu/dummyshield.png') 0 0 / 100% 100%; }
html:not(.art) .st-grid > i.st-shield { background: rgba(24, 62, 140, 0.9); border: calc(2 * var(--u)) solid #fff; }

.st-grid .st-cell { position: relative; z-index: 2; width: auto; height: auto; padding: 0; border: calc(1 * var(--u)) solid rgba(0, 0, 0, 0.35); border-radius: 0; font-weight: bold; font-size: calc(12 * var(--u)); color: #fff; text-shadow: 0 0 calc(2 * var(--u)) #000, 0 0 calc(2 * var(--u)) #000; background: rgba(var(--c, 255, 255, 255), 0.85); }
.st-grid .st-cell:disabled { opacity: 1; cursor: not-allowed; background: transparent; border: calc(1 * var(--u)) dashed rgba(255, 255, 255, 0.25); }
.st-grid .st-cell.shield { background: transparent; }
.st-grid .st-cell.shield:hover { background: rgba(255, 255, 255, 0.2); }
.st-grid .st-cell.lance:hover:not(:disabled) { filter: brightness(1.2); }
.st-grid .st-cell.d1, .st-grid .st-cell.d2 { color: var(--ink); text-shadow: none; }
.st-grid .st-cell[aria-checked='true'] { font-size: calc(14 * var(--u)); border: calc(3 * var(--u)) solid var(--ink); box-shadow: inset 0 0 0 calc(2 * var(--u)) #fff; z-index: 3; }
.st-grid .st-cell.shield[aria-checked='true'] { border: calc(2 * var(--u)) solid #fff; box-shadow: none; }
html.art .st-grid .st-cell.lance { background: none; border: 0; }
html.art .st-grid .st-cell.lance::before { content: ''; position: absolute; inset: 0; background: url('/assets/gfx/menu/lanceover.png') 0 calc(var(--f) * -32 * var(--u)) / calc(32 * var(--u)) calc(192 * var(--u)) no-repeat; opacity: 0.6; pointer-events: none; z-index: -1; }
html.art .st-grid .st-cell.lance:hover:not(:disabled)::before { opacity: 0.9; }
html.art .st-grid .st-cell.lance:disabled::before { content: none; }
html.art .st-grid .st-cell.lance:disabled { border: 0; }
html.art .st-grid .st-cell.lance[aria-checked='true'] { border: 0; box-shadow: none; }
html.art .st-grid .st-cell.lance[aria-checked='true']::after { content: ''; position: absolute; left: calc(-4 * var(--u)); top: calc(-4 * var(--u)); width: calc(41 * var(--u)); height: calc(41 * var(--u)); background: url('/assets/gfx/menu/crosshairs.png') 0 calc(var(--f) * -41 * var(--u)) / calc(41 * var(--u)) calc(246 * var(--u)) no-repeat; pointer-events: none; }
html.art .st-grid .st-cell.lance[aria-checked='true']::before { opacity: 0.9; }
html.art .st-grid .st-cell.shield { border: 0; }
html.art .st-grid .st-cell.shield[aria-checked='true'] { border: 0; outline: calc(1 * var(--u)) dashed rgba(255, 255, 255, 0.6); outline-offset: calc(-3 * var(--u)); }
