/* Fertigkeitstraining (ui/training.js): books and soul stones in one window - left the supply and the skills of the
   path, right the Leseliste, the buttons in one row below. Panels .fp of imperial.css; both pages keep one height. */
#ui #training .win-body { padding: 5px 6px 6px; }
#training .tr-cols { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 4px; }
#training .tr-col { display: flex; flex-direction: column; min-width: 0; }
/* one row under both columns: Lesen | Alle lesen | Vormerken (Seelenstein: Benutzen | Vormerken), all the same size */
#training .tr-btns { width: 100%; margin-top: 4px; }
/* the supply: books of the own skills, soul stones, Exorzismus-Schriftrolle, Konzentriertes Lesen (a click uses these two) */
#training .tr-supply { gap: 3px; }
#training .tr-sup.none > img { opacity: .4; filter: grayscale(1); }
#training .tr-sup.use { cursor: pointer; }
#training .tr-sup.use.none { cursor: default; }
#ui #training .tr-sup.on { box-shadow: inset 0 0 0 1px #7bd65a, inset 0 0 0 2px #0a0907, 0 0 4px rgba(123, 214, 90, .5); }
/* a skill: icon, name over its counter, wait, level, books of it */
#training .tr-skills { padding: 1px; }
#training .tr-sk, #training .tr-q { display: flex; align-items: center; gap: 4px; height: 22px; padding: 0 4px 0 2px; box-shadow: inset 0 -1px 0 #2a241d; }
#training .tr-sk { cursor: pointer; }
#training :is(.tr-sk, .tr-q):last-child { box-shadow: none; }
#training .tr-sk:hover { background: rgba(242, 196, 90, .07); }
#training .tr-sk.picked { background: linear-gradient(90deg, rgba(242, 196, 90, .2), rgba(242, 196, 90, .04)); box-shadow: inset 2px 0 0 #e2bf72, inset 0 -1px 0 #2a241d; }
#training .tr-sk.off { cursor: default; }
#training .tr-sk.off:hover { background: none; }
#training .tr-sk.off .tr-ic img { opacity: .45; filter: grayscale(1); }
#training .tr-sk.off .tr-nm { color: var(--dim); }
#training .tr-ic { flex: none; width: 18px; height: 18px; background: #0f0d0b; box-shadow: inset 0 0 0 1px #5d5038; }
#training .tr-ic img { display: block; width: 16px; height: 16px; margin: 1px; }
#training .tr-ic.small { width: 14px; height: 14px; }
#training .tr-ic.small img { width: 12px; height: 12px; image-rendering: auto; }
#training .tr-mid { flex: 1; min-width: 0; }
#training .tr-nm { font-size: 8px; line-height: 9px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#training .tr-sub { min-height: 8px; font-size: 7px; line-height: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#training .tr-st { flex: none; font-size: 7px; line-height: 9px; text-shadow: var(--ol); }
#training .tr-n { flex: none; min-width: 12px; text-align: right; font-size: 7px; line-height: 9px; color: var(--text); text-shadow: var(--ol); }
#training .tr-n.dim { color: var(--dim); }
/* the Leseliste: five places, a taken one with its skill, what it reads and its state, x takes it off */
#training .tr-q { gap: 3px; padding: 0 3px; }
#training .tr-qn { flex: none; width: 6px; text-align: center; font-size: 7px; line-height: 9px; }
#training .tr-qe { font-size: 7px; line-height: 9px; }
#training .tr-qx { position: relative; flex: none; width: 9px; height: 9px; cursor: pointer; background: #0f0c0a; box-shadow: inset 0 0 0 1px var(--bronze-d); }
#training .tr-qx::before, #training .tr-qx::after { content: ''; position: absolute; left: 2px; top: 4px; width: 5px; height: 1px; background: var(--gold); transform: rotate(45deg); }
#training .tr-qx::after { transform: rotate(-45deg); }
#training .tr-qx:hover { box-shadow: inset 0 0 0 1px var(--bronze-l); }
#training .tr-hint { padding: 4px 2px 0; font-size: 7px; line-height: 8px; overflow-wrap: anywhere; }
/* the button of the page Fertigkeiten (ui/character.js) */
#character .cw-train { margin-top: 4px; }

/* a reading that got possible: the book in the row of the ready marks (#hud-ready, css/alchemy.css), like the kettle */
#ui #hud-ready > #train-ready { order: 3; }
#ui #train-ready { position: relative; flex: none; width: 22px; height: 22px; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
#ui #train-ready img { display: block; width: 16px; height: 16px; pointer-events: none; }
#ui #train-ready .et-dot { display: block; right: 1px; top: 1px; }
#ui #train-ready::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px #ffd24a, 0 0 4px 1px rgba(255, 200, 80, .55);
  animation: alch-ready 1.2s ease-in-out infinite; }
#ui #train-ready:hover img { filter: brightness(1.25); }
#ui #train-ready:hover::after { animation: none; }
html.touch #ui #train-ready { width: calc(44px / var(--px)); height: calc(44px / var(--px)); }
html.touch #ui #train-ready img { width: 20px; height: 20px; }
html.touch #ui #ttop #train-ready { width: calc(20px * var(--tz)); height: calc(20px * var(--tz)); }
html.touch #ui #ttop #train-ready img { width: 70%; height: 70%; }

/* phones: wider, rows and the x a finger high, no hint (the guide has it) */
html.touch #ui #training { width: min(340px, calc((100% - 8px) / var(--wz))) !important; }
html.touch #ui #training .tr-cols { grid-template-columns: minmax(0, 1fr) 126px; }
html.touch #ui #training :is(.tr-sk, .tr-q) { height: auto; min-height: var(--finger); }
html.touch #ui #training .tr-sup { width: var(--finger); height: var(--finger); }
html.touch #ui #training .tr-sup > img { left: calc((var(--finger) - 16px) / 2); top: calc((var(--finger) - 16px) / 2); }
html.touch #ui #training .tr-qx { width: var(--finger); height: var(--finger); margin-right: -3px; background: none; box-shadow: none; }
html.touch #ui #training .tr-qx::before, html.touch #ui #training .tr-qx::after { left: calc(50% - 4px); top: 50%; width: 8px; }
html.touch #ui #training .tr-hint { display: none; }
