/* "6. und 7. Bonus" at Seon-Hae (ui/bonus67.js): the piece with its two bonuses | Bonus hinzufügen (fragments, Ergänzung,
   chance) | Neu würfeln (the two Segnungen) | a line of fixed height. Every part has its fixed height, so the window keeps
   its size whatever it shows (ui.md "Feste Fenstergröße") */
#ui #bonus67 .win-body { padding: 5px 6px; }
#ui #bonus67 .fp-slot > .n { right: 3px; }
/* the piece: its slot (room for three cells), name in two lines, the 6th and 7th bonus in two lines each */
#ui #bonus67 .b67-item { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 6px; height: 62px; align-items: center; }
#ui #bonus67 .b67-slotbox { position: relative; width: 20px; height: 56px; }
#ui #bonus67 .b67-slotbox:not(.eq-slot) { background: #0d0b09; box-shadow: inset 0 0 0 1px #3a332a; }
/* with a piece: a socket of the equipment (imperial.css .eq-slot: brass frame, gold caps, the well tinted by the piece's
   rarity), the icon in its middle (game.css .eq-slot img.ic), the whole socket a button that takes it out */
#ui #bonus67 .b67-slotbox.eq-slot { cursor: pointer; }
#ui #bonus67 .b67-info { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; height: 56px; font-size: 7px; line-height: 8px; }
#ui #bonus67 .b67-name { max-height: 16px; overflow: hidden; color: #eee3c8; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
#ui #bonus67 .b67-row { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 2px; height: 16px; overflow: hidden; }
#ui #bonus67 .b67-row > span:last-child { overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
#ui #bonus67 .b67-x { color: #f29b52; }
#ui #bonus67 .b67-hint { text-align: left; overflow-wrap: anywhere; }
/* a line: icon with the amount | name over a second line | what to do with it */
#ui #bonus67 .b67-line { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 4px; height: 22px; }
#ui #bonus67 .b67-line + .b67-line { margin-top: 2px; }
#ui #bonus67 .b67-line.short .fp-slot > img, #ui #bonus67 .fp-slot.short > img { opacity: .45; }
#ui #bonus67 .b67-mid { min-width: 0; font-size: 7px; line-height: 8px; }
#ui #bonus67 .b67-t { color: #eee3c8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ui #bonus67 .b67-s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ui #bonus67 .b67-line > .btn.small { min-width: 44px; }
/* - n + : both buttons the same size, the number between them */
#ui #bonus67 .b67-step { display: grid; grid-template-columns: 14px 14px 14px; align-items: center; gap: 1px; }
#ui #bonus67 .b67-step > .btn.small { min-width: 0; width: 14px; padding: 0; }
#ui #bonus67 .b67-n { text-align: center; font-size: 9px; line-height: 11px; color: var(--gold); text-shadow: var(--ol); }
#ui #bonus67 .b67-cap { margin: 4px 0 2px; font-size: 7px; line-height: 8px; }
/* the four choices of the Ergänzung: equal columns over the whole width, the chosen one in gold */
#ui #bonus67 .b67-adds { width: 100%; grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); }
#ui #bonus67 .b67-adds > .btn.small { padding: 0 1px; white-space: nowrap; overflow: hidden; }
#ui #bonus67 .b67-adds > .btn.on { color: #ffe39a; background: linear-gradient(#5a4a2c, #3a2f1c 55%, #2a2214); box-shadow: 0 0 0 1px #060504, inset 0 0 0 1px #e2bf72; }
#ui #bonus67 .b67-go { display: block; width: 100%; height: 14px; margin-top: 4px; font-size: 8px; }
/* what happened / why not: always the room of two lines */
#ui #bonus67 .b67-note { height: 16px; margin: 4px 1px 2px; font-size: 7px; line-height: 8px; text-align: center; overflow: hidden; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
#ui #bonus67 .b67-keys { text-align: center; }

/* phone: the window as high as the screen at most, its body scrolls; every button a finger wide and high */
html.touch #ui #bonus67 { width: min(210px, calc((100% - 8px) / var(--wz))); max-height: calc((100% - 8px) / var(--wz)); }
html.touch #ui #bonus67 > .win-body { overflow-y: auto; }
html.touch #ui #bonus67 .b67-line { height: auto; min-height: var(--finger); }
html.touch #ui #bonus67 .b67-line > .btn.small { height: var(--finger); min-height: var(--finger); min-width: var(--finger); }
html.touch #ui #bonus67 .b67-step { grid-template-columns: var(--finger) 16px var(--finger); }
html.touch #ui #bonus67 .b67-step > .btn.small { width: var(--finger); height: var(--finger); font-size: 10px; }
html.touch #ui #bonus67 .b67-adds > .btn.small, html.touch #ui #bonus67 .b67-go { height: var(--finger); min-height: var(--finger); }
html.touch #ui #bonus67 .b67-keys { display: none; }
