/* The Sockets window (rpg/ui-sockets.js): Brom's sockets and gems, in the Forge window's navy and gold. Its own file so
   the busy world.css stays out of it; it uses world.css's tokens (--gold, --muted, --green, …). */
/* The Forge's recipe line: "◆ 2 sockets, 1 gem kept" by the piece an upgrade takes (rpg/ui-rpg.js forgePanel). */
.recipes .need em.keeps { font-style: normal; font-size: 13px; color: var(--gold); margin-left: 4px; }
.so-open { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 8px 0 2px; }
.so-open small { font-size: 13px; opacity: 0.8; }

.so-status { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; font-size: 15px; line-height: 1.4; border: 1px solid #2e3d74; background: rgba(3, 10, 44, 0.6); }
.so-status b { color: var(--gold); font-weight: 400; }
.so-status.awake { border-color: rgba(95, 232, 111, 0.55); background: rgba(95, 232, 111, 0.08); }
.so-status.warn { border-color: rgba(255, 152, 31, 0.6); background: rgba(255, 152, 31, 0.08); }
.so-status.asleep { color: var(--muted); }
.so-status .btn { margin-left: 6px; padding: 2px 10px; }
.so-sum { margin: 6px 0 0; font-size: 15px; color: var(--muted); }

/* What setting a gem takes: four ticked lines, green when you have it, orange when you don't. */
.so-need { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.so-need li { display: flex; align-items: center; gap: 8px; padding: 6px 9px 6px 6px; border-radius: 8px; background: rgba(3, 10, 44, 0.55); border: 1px solid #2e3d74; }
.so-need li > i { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: 15px; line-height: 1; }
.so-need li.ok { border-color: rgba(95, 232, 111, 0.45); }
.so-need li.ok > i { background: rgba(95, 232, 111, 0.18); color: var(--green); }
.so-need li.no > i { background: rgba(255, 152, 31, 0.16); color: var(--rs-orange); }
.so-need li > span { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.so-need b { font-size: 15px; color: #fff; font-weight: 400; }
.so-need small { font-size: 13px; color: var(--muted); }
.so-need .btn { flex: none; padding: 2px 10px; white-space: nowrap; }
.so-sum b { color: var(--green); font-weight: 400; }

.so-list, .so-pouch { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.so-piece { display: flex; gap: 10px; align-items: center; padding: 7px 9px; border-radius: 8px; background: rgba(3, 10, 44, 0.55); border: 1px solid #2e3d74; }
.so-piece.worn { border-color: rgba(255, 210, 63, 0.55); }
.so-piece > div { flex: 1; min-width: 0; }
.so-piece b { font-size: 17px; color: #fff; font-weight: 400; }
.so-piece small { color: var(--muted); font-size: 13px; }
.so-piece small em { font-style: normal; color: var(--gold); }
.so-piece > .so-act { flex: none; display: grid; justify-items: center; gap: 3px; }
.so-act .btn { white-space: nowrap; }
.so-act small { font-size: 12px; color: var(--green); }
.so-act small.no { color: var(--rs-orange); }
.so-full { flex: none; font-style: normal; font-size: 13px; color: var(--muted); }

/* A socket: a dark round hole with a gold rim and a "+" (tap to set a gem); full ones hold the gem's icon; no socket cut
   yet is a dim dashed ring. The line next to them says it in words. */
.so-socks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.so-sock > i { font-style: normal; font-size: 30px; line-height: 1; color: var(--gold); opacity: 0.85; }
.so-sock { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--gold-dark); background: radial-gradient(circle at 50% 40%, #050a20, #0d1636 70%); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8); }
.so-sock.full { border-color: var(--gold-2); background: radial-gradient(circle at 50% 40%, #1b2a5e, #0a1440 75%); }
.so-sock.on { border-color: #fff3a0; box-shadow: 0 0 0 2px var(--gold), inset 0 2px 4px rgba(0, 0, 0, 0.6); }
.so-sock.none { border: 2px dashed #34427a; background: none; box-shadow: none; opacity: 0.7; }
.so-state { flex: 1 1 150px; min-width: 0; margin-left: 4px; font-size: 13px; line-height: 1.3; }
.so-state.need, .so-state.more { color: var(--rs-orange); }
.so-state.ready { color: var(--green); }
.so-state.full { color: var(--gold); }
.so-sock img, .so-gem .ri, .so-pouch .ri, .so-choose > .ri { width: 32px; height: 32px; image-rendering: pixelated; } /* the 16 px art at a whole 2x */
button.so-sock:hover { border-color: var(--gold); }

.so-choose { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 214, 90, 0.06); border: 1px solid rgba(255, 210, 63, 0.35); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.so-choose > span { flex: 1; min-width: 160px; }
.so-choose b { font-size: 15px; }
.so-gems { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.so-gem { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 8px; border: 1px solid #2e3d74; background: #141d40; text-align: left; }
.so-gem:not(:disabled):hover { border-color: var(--gold); }
.so-gem span { display: grid; line-height: 1.1; }
.so-gem b { font-size: 14px; color: #fff; }
.so-gem small { font-size: 12px; color: var(--muted); }
.so-gem:disabled { opacity: 0.6; cursor: default; }
.so-why { width: 100%; color: var(--rs-orange); font-size: 13px; }

.so-pouch li { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 8px; background: rgba(3, 10, 44, 0.55); border: 1px solid #2e3d74; font-size: 15px; }
.so-pouch li > span { flex: 1; min-width: 0; }
.so-pouch li small { color: var(--muted); font-size: 13px; }
.so-pouch .btn { flex: none; white-space: nowrap; padding: 2px 10px; }
.so-h small { font-family: var(--ui-font); font-size: 13px; color: var(--muted); margin-left: 6px; }

/* Ready to fuse (rpg/ui-sockets.js fuseBox): on top of the window, gold-edged, only while a fuse is ready. */
.so-fuse { margin-top: 8px; padding: 0 8px 8px; border-radius: 10px; border: 1px solid rgba(255, 210, 63, 0.6); background: rgba(255, 214, 90, 0.07); }
.so-fuse .so-pouch li { border-color: rgba(255, 210, 63, 0.35); }
.so-fuse .so-pouch li b { color: #fff; font-weight: 400; }
.so-fuse .so-why { display: block; margin-top: 4px; }

/* The risky fuse (rpg/ui-sockets.js riskyBox): 2 gems and parts for a chance at the next grade, and how the last try went. */
.so-risky { border-color: rgba(255, 140, 60, 0.6); background: rgba(255, 120, 40, 0.07); }
.so-risky .so-pouch li { border-color: rgba(255, 140, 60, 0.35); }
.so-risky .so-pouch li > span small { display: block; }
.so-risky .so-pouch em { font-style: normal; }
.so-risky .so-pouch em.no { color: var(--rs-orange); }
.so-odds { font-style: normal; margin-left: 4px; padding: 0 6px; border-radius: 6px; background: rgba(255, 140, 60, 0.25); color: var(--gold); font-size: 13px; }
.so-note { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.modal .so-roll { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; padding: 6px 10px 6px 6px; border-radius: 8px; font-size: 16px; line-height: 1.25; } /* over .modal p's 18 px at 1.45 */
.so-roll .ri { width: 32px; height: 32px; image-rendering: pixelated; }
.so-roll small { display: block; color: var(--muted); font-size: 13px; }
.so-roll.held { border: 1px solid var(--gold); background: radial-gradient(circle at 10% 50%, rgba(255, 214, 90, 0.3), rgba(3, 10, 44, 0.6) 70%); box-shadow: 0 0 14px rgba(255, 210, 63, 0.35); }
.so-roll.held b { color: var(--gold); font-weight: 400; }
.so-roll.cracked { border: 1px solid #a33a3a; background: rgba(120, 20, 20, 0.35); }
.so-roll.cracked b { color: #ff8a80; font-weight: 400; }
.so-roll.cracked .ri { filter: grayscale(0.7) brightness(0.7); }
.so-roll.held.fresh { animation: so-held 0.9s ease-out; }
.so-roll.cracked.fresh { animation: so-crack 0.5s ease-in-out; }
@keyframes so-held { 0% { transform: scale(0.85); } 40% { transform: scale(1.04); box-shadow: 0 0 28px rgba(255, 210, 63, 0.8); } 100% { transform: scale(1); } }
@keyframes so-crack { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .so-roll.fresh { animation: none; } }

/* The Titan's Gauntlet (won from Thraxos): its picture with the stones in it, then its six sockets, one stone each. */
.so-gaunt { display: flex; gap: 12px; align-items: center; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: radial-gradient(circle at 20% 50%, rgba(140, 90, 200, 0.22), rgba(3, 10, 44, 0.6) 70%); border: 1px solid #4a3a7a; }
.so-gaunt.full { border-color: var(--gold); box-shadow: 0 0 14px rgba(255, 210, 63, 0.35); }
.so-gaunt p { margin: 0; flex: 1; min-width: 0; font-size: 15px; line-height: 1.4; color: var(--muted); }
.so-gaunt p b { color: var(--green); font-weight: 400; }
.so-gart { flex: none; width: 120px; height: auto; image-rendering: pixelated; }
.so-stones { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.so-stone { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 8px; background: rgba(3, 10, 44, 0.55); border: 1px solid #2e3d74; }
.so-stone.set { border-color: rgba(255, 210, 63, 0.55); }
.so-stone:not(.set) .ri { opacity: 0.45; filter: grayscale(0.6); }
.so-stone > span { flex: 1; min-width: 0; display: grid; line-height: 1.15; }
.so-stone b { font-size: 14px; color: #fff; font-weight: 400; }
.so-stone small { font-size: 12px; color: var(--muted); }
.so-stone .btn { flex: none; white-space: nowrap; padding: 2px 10px; }
.so-stone .so-none { flex: none; font-size: 12px; color: var(--muted); }
.so-stone .ri { width: 32px; height: 32px; image-rendering: pixelated; }

/* The trade window: the other side's socketed gear names its gems. */
.trade-so { font-style: normal; font-size: 12px; color: var(--cyan); }

@media (max-width: 560px) {
  /* Phones: the piece's name and sockets get the whole row, the Cut button goes under them. */
  .so-piece { flex-wrap: wrap; }
  .so-piece > div { flex: 1 1 calc(100% - 52px); }
  .so-piece > .so-act, .so-full { margin-left: 42px; }
  .so-piece > .so-act { justify-items: start; }
  .so-need { grid-template-columns: 1fr; }
  .so-sock { width: 36px; height: 36px; }
  .so-stones { grid-template-columns: 1fr; }
  .so-gart { width: 96px; }
}

/* The Bag's Socket gems go one kind a row (rpg/ui-rpg.js bagRows): an empty item the bag's width ends a row. Half the row
   gap on each side of it, so the rows sit as close as wrapped ones. */
.bag > .bag-br { flex-basis: 100%; height: 0; }
.bag:has(> .bag-br) { row-gap: 3px; }
/* Under the Socket gems, what you've found lately: "1/2 gems in 2 days" (rpg/ui-rpg.js gemDayHTML), and under the Scrolls
   today's find of each, two to a line (scrollDayHTML). Dashed and see-through so it reads as a count, not one more item. */
.bag > span.gem-day { flex: 1 1 140px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 3px 10px; background: rgba(3, 10, 44, 0.3); border-style: dashed; line-height: 1.25; }
.gem-day b { color: #fff; font-weight: 400; }
.gem-day b.full { color: var(--green); }
.gem-day .sd-each { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 18px; }
/* Under them, what Brom does with them and a button to his bench (rpg/ui-rpg.js gemGoHTML); the Storage House says the same
   about the gems stored there (rpg/ui-legends.js). */
.gem-go, .stash-brom { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.gem-go { margin: 0 0 8px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.gem-go > span, .stash-brom > span { flex: 1 1 200px; min-width: 0; }
.gem-go b { color: var(--gold); font-weight: 400; }
.gem-go .btn, .stash-brom .btn { flex: none; padding: 2px 10px; white-space: nowrap; }

/* The Gem board (rpg/ui-sockets.js gemBoardWindow): the World's numbers on the players window's tiles, a tile a grade, then
   the Rankings' parchment for who wears the most and the newest finds. */
.gb-stats { margin-top: 10px; }
.gb-grades { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gb-grades li { display: grid; justify-items: center; gap: 2px; padding: 7px 4px 6px; border-radius: 8px; background: rgba(3, 10, 44, 0.55); border: 1px solid #2e3d74; text-align: center; }
.gb-grades li > span { display: flex; gap: 2px; }
.gb-grades .ri, .gb-gems .ri, .gb-find .ri { width: 16px; height: 16px; image-rendering: pixelated; }
.gb-grades b { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.1; color: #fff; }
.gb-grades small { font-size: 13px; color: var(--muted); }
.gb-grades li.g2 { border-color: rgba(95, 170, 255, 0.5); }
.gb-grades li.g2 small { color: #9fd0ff; }
.gb-grades li.g3 { border-color: rgba(255, 210, 63, 0.6); box-shadow: inset 0 0 12px rgba(255, 210, 63, 0.12); }
.gb-grades li.g3 small { color: var(--gold); }
.gb-note { margin: 8px 0 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.gb-scroll .rk-body { padding-bottom: 22px; }
.gb-table td { vertical-align: middle; }
.gb-table .rk-nm { flex-wrap: nowrap; }
.gb-lv { flex: none; font-size: 13px; color: var(--ink-2); }
.gb-gems { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.gb-piece { display: inline-flex; gap: 1px; padding: 2px 3px; border-radius: 6px; background: rgba(40, 26, 8, 0.12); border: 1px solid rgba(92, 62, 24, 0.3); }
.gb-hole { display: inline-block; width: 14px; height: 14px; margin: 1px; border-radius: 50%; border: 1px dashed rgba(92, 62, 24, 0.6); }
.gb-table .gb-adds { width: 6.4em; white-space: normal; line-height: 1.15; }
.gb-adds small { display: block; font-size: 14px; color: #2f6a2a; }
.gb-find .ri { vertical-align: -2px; margin-right: 5px; }
.gb-finds td { overflow: hidden; text-overflow: ellipsis; } /* a long gem name ends in … rather than running into When */
.gb-finds td:nth-child(2) { width: 46%; }
.gb-finds .rk-c { width: 6.4em; font-size: 15px; color: var(--ink-2); }
.gb-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px 0 2px; }
@media (max-width: 520px) {
  .gb-grades { grid-template-columns: repeat(2, 1fr); }
  .gb-table { font-size: 16px; }
  .gb-finds td:first-child { width: 34%; }
  .gb-finds td:nth-child(2) { width: auto; white-space: normal; line-height: 1.15; } /* the whole gem name, on two lines if need be */
  .gb-finds .rk-c { width: 4.6em; font-size: 13px; }
}

/* The Enchant window (rpg/ui-enchants.js): the three scrolls as three numbered steps, an example, the four enchantments'
   table, then your gear with each piece's enchantment in words and its buttons. Cleanse asks first in a red box. */
.en-steps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.en-steps li { display: flex; align-items: flex-start; gap: 8px; padding: 7px 9px 7px 6px; border-radius: 8px; background: rgba(3, 10, 44, 0.55); border: 1px solid #2e3d74; }
.en-steps li > span { display: grid; gap: 2px; line-height: 1.25; min-width: 0; }
.en-steps b { font-size: 15px; color: #fff; font-weight: 400; }
.en-steps small { font-size: 13px; color: var(--muted); }
.en-steps em { font-style: normal; font-size: 12px; color: var(--muted); }
.en-steps em.have { color: var(--green); }
.en-steps .ri, .en-piece .ri { flex: none; width: 32px; height: 32px; image-rendering: pixelated; }
.en-example { margin: 6px 0 0; padding: 6px 9px; border-radius: 8px; border: 1px dashed rgba(255, 210, 63, 0.45); background: rgba(255, 214, 90, 0.05); font-size: 14px; line-height: 1.4; color: var(--muted); }
.en-example b { color: var(--gold); font-weight: 400; }
.en-table-wrap { overflow-x: auto; margin-top: 6px; }
.en-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.en-table th { text-align: left; font-weight: 400; font-size: 12px; color: var(--muted); padding: 3px 6px; border-bottom: 1px solid #2e3d74; }
.en-table td { padding: 5px 6px; border-bottom: 1px solid rgba(46, 61, 116, 0.6); vertical-align: top; color: #dfe6ff; }
.en-table td:first-child { white-space: nowrap; }
.en-table td b { color: #fff; font-weight: 400; }
.en-table td small { display: block; font-size: 12px; color: var(--muted); }
.en-table td:nth-child(n + 3) { white-space: nowrap; }
.en-note { margin: 4px 0 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.en-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.en-piece { display: flex; gap: 10px; align-items: center; padding: 7px 9px; border-radius: 8px; background: rgba(3, 10, 44, 0.55); border: 1px solid #2e3d74; }
.en-piece.worn { border-color: rgba(255, 210, 63, 0.55); }
.en-piece > div:first-of-type { flex: 1; min-width: 0; }
.en-piece b { font-size: 17px; color: #fff; font-weight: 400; }
.en-piece small { color: var(--muted); font-size: 13px; }
.en-piece small em { font-style: normal; color: var(--gold); }
.en-ench { display: grid; margin-top: 3px; font-size: 15px; color: #e6c8ff; line-height: 1.3; }
.en-ench.k-burn { color: #ffb070; }
.en-ench.k-thorns { color: #b8f08a; }
.en-ench.k-mend { color: #8af0b4; }
.en-ench.k-hardy { color: #9fd0ff; }
.en-ench.none { color: var(--rs-orange); }
.en-acts { flex: none; display: grid; gap: 5px; justify-items: center; }
.en-btn { display: grid; justify-items: center; gap: 2px; }
.en-btn .btn { white-space: nowrap; }
.en-btn small { font-size: 12px; color: var(--green); }
.en-btn small.no { color: var(--rs-orange); }
.en-max { font-style: normal; font-size: 12px; color: var(--gold); text-align: center; max-width: 140px; }
.en-sure { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 70, 70, 0.08); border: 1px solid rgba(255, 110, 110, 0.55); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.en-sure > span { flex: 1 1 220px; }
.en-sure b { font-size: 14px; color: #fff; }
.en-sure .btn-red { background: #b8322c; border-color: #ff8a80; color: #fff; }
.ls-ench { font-style: normal; font-size: 12px; color: #e6c8ff; margin-left: 4px; }
@media (max-width: 560px) {
  .en-steps { grid-template-columns: 1fr; }
  .en-piece { flex-wrap: wrap; }
  .en-piece > div:first-of-type { flex: 1 1 calc(100% - 52px); }
  .en-acts { margin-left: 42px; grid-auto-flow: column; justify-items: start; }
  .en-table { font-size: 13px; }
}

/* The Forge window's legendary row (rpg/ui-rpg.js forgePanel, at the Imperial Forge): a legendary's orange, and the
   weapon's story and spell under it. */
.recipes li.tier-head.legendary b { color: #ff9a2a; text-shadow: 0 0 8px rgba(255, 138, 26, 0.55); }
.recipes li.legend-lore { background: none; border: 0; padding: 0 9px 8px; }
.recipes li.legend-lore small { color: #ffc58a; font-style: italic; line-height: 1.35; }

/* Class gems (rpg/ui-class-gems.js, 2026-10-17): Brom's Class gems bench, a gem slot on each class technique in the ⚔
   Attacks window, the Bag's row and the fight's ★. Gold when the ★ is awake, dashed when the slot is empty, dim when it
   sleeps (a weapon under tier 7, another class, a fight against players). */
.cg-list .cg-tech { display: flex; gap: 10px; align-items: center; padding: 7px 9px; border-radius: 8px; background: rgba(3, 10, 44, 0.55); border: 1px solid #2e3d74; }
.cg-list .cg-tech.on { border-color: rgba(255, 210, 63, 0.6); background: rgba(255, 210, 63, 0.08); }
.cg-list .cg-tech > div { flex: 1; min-width: 0; }
.cg-list .cg-tech b { font-size: 17px; color: #fff; font-weight: 400; }
.cg-list .cg-tech small { display: block; color: var(--muted); font-size: 13px; }
.cg-list .cg-tech .atk-cost { color: var(--gold); font-size: 14px; }
.cg-list .cg-tech > .btn { flex: none; white-space: nowrap; }
.cg-state { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; line-height: 1.3; color: var(--muted); }
.cg-state.on { color: var(--gold); }
.cg-state.zz { color: #a9b3d6; }
.cg-state img { flex: none; width: 20px; height: 20px; image-rendering: pixelated; }
.cg-state.zz img, .cg-slot.zz img { opacity: 0.5; filter: grayscale(0.6); }
.cg-would { color: #c8d2ff !important; }
.cg-ring { flex: none; display: inline-block; width: 16px; height: 16px; margin: 2px; border-radius: 4px; border: 2px dashed #8a95c8; transform: rotate(45deg); }
.cg-slot { display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 5px; padding: 3px 8px 3px 4px; border-radius: 8px; border: 1px dashed #4a5a9a; background: rgba(3, 10, 44, 0.45); color: var(--muted); font: inherit; font-size: 13px; line-height: 1.3; text-align: left; cursor: pointer; }
.cg-slot img { flex: none; width: 20px; height: 20px; image-rendering: pixelated; }
.cg-slot.on { border: 1px solid rgba(255, 210, 63, 0.6); background: rgba(255, 210, 63, 0.1); color: var(--gold); }
.cg-slot:hover, .cg-slot:focus-visible { border-color: var(--edge-light); }
.cg-note .btn { margin-left: 6px; padding: 2px 10px; }
.cg-note b { color: var(--gold); font-weight: 400; }
.cg-odds { width: 100%; margin: 6px 0 0; border-collapse: collapse; font-size: 14px; }
.cg-odds td { padding: 4px 8px; border-bottom: 1px solid #22305e; color: var(--muted); }
.cg-odds td:last-child { text-align: right; white-space: nowrap; color: #fff; }
.bag > span.cg-none img { opacity: 0.35; filter: grayscale(1); }
.cg-star { font-style: normal; font-size: 13px; color: var(--gold); text-shadow: 0 0 6px rgba(255, 210, 63, 0.7); }
.cg-star.zz { color: #8a95c8; text-shadow: none; }
/* The fight's technique buttons are cream: a deeper gold there, outlined, so the ★ reads at a glance. */
.bt-menu .cg-star { font-size: 16px; color: #e08a00; text-shadow: 0 1px 0 #5a3000, 0 0 4px rgba(255, 170, 0, 0.6); }
.bt-menu .cg-star.zz { color: #8a95c8; text-shadow: none; }
@media (max-width: 560px) {
  .cg-list .cg-tech { flex-wrap: wrap; }
  .cg-list .cg-tech > div { flex: 1 1 calc(100% - 52px); }
  .cg-list .cg-tech > .btn { margin-left: 42px; }
}

/* A piece's sockets, Diablo style (rpg/paperdoll.js socksHTML; owner, 2026-11-18, with a shot of Diablo's equipment column:
   "Do stones in weapons like Diablo on display on wardrobe and on here"): a row of round sockets along the foot of the piece's
   square, on the Wardrobe's doll and Gear tiles and on the Character tab. Each is a dark well in a bronze ring; a gem sits in
   it as its own icon, the ring and a glow in its kind's colour (--gc), the glow stronger the better its grade (q0 Chipped …
   q3 Flawless, which gets a pale gold ring). Grey while your gems sleep (.zz). --gs: a socket's size. */
.gsk { --gs: 14px; position: absolute; left: 0; right: 0; bottom: 3px; z-index: 1; display: flex; justify-content: center; gap: 1px; pointer-events: none; }
.gsk > i { --gc: #c9a24e; position: relative; flex: none; width: var(--gs); height: var(--gs); box-sizing: border-box; border: 1px solid #a8853a; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #2b2414, #050407 72%); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.85), inset 0 1px 2px rgba(0, 0, 0, 0.9); }
.gsk > i > img { position: absolute; left: 50%; top: 50%; width: var(--gs); height: var(--gs); translate: -50% -50%; image-rendering: pixelated; }
.gsk > i.k-sparkstone { --gc: #f2c418; } .gsk > i.k-guardstone { --gc: #3a7ae8; } .gsk > i.k-lifestone { --gc: #2ccc66; }
.gsk > i:not(.e) { border-color: var(--gc); background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--gc) 30%, #0a0a14), #050407 75%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.85), 0 0 3px color-mix(in srgb, var(--gc) 55%, transparent); }
.gsk > i.q2 { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.85), 0 0 5px color-mix(in srgb, var(--gc) 80%, transparent); }
.gsk > i.q3 { border-color: #fff0a8; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.85), 0 0 6px var(--gc), 0 0 2px #fff; }
.gsk.zz > i { border-color: #5d5d66; background: radial-gradient(circle at 50% 35%, #1c1c22, #050407 72%); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.85); }
.gsk.zz > i > img { filter: grayscale(1) brightness(0.7); }
/* on the doll (its squares go from 26 to 60 px) and the Gear tab's tiles: the piece moves up and a little smaller over them */
.pd-slot > .gsk { --gs: max(7px, calc(var(--ds) * 0.27)); bottom: max(2px, calc(var(--ds) * 0.05)); }
.pd-slot.so > img { translate: 0 calc(var(--ds) * -0.1); scale: 0.86; }
.cw-gt > .gsk { --gs: 15px; bottom: 4px; }
.cw-gt.so > img { translate: 0 -6px; scale: 0.86; }
.cw-gt.so .cw-gt-d { bottom: -10px; }
/* the Character tab: each piece you wear in its rarity's frame, as the doll's squares; taller, Diablo's way, when any of
   them has sockets, the sockets under the piece */
.adv-pc { --rc: #e8e8e8; position: relative; flex: none; display: grid; place-items: center; box-sizing: border-box; width: 40px; height: 40px; border: 1px solid color-mix(in srgb, var(--rc) 75%, #000); border-radius: 6px;
  background: radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--rc) 22%, #131b48), #050a24 80%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.7), inset 0 0 10px color-mix(in srgb, var(--rc) 30%, transparent); }
.adv-pc:is(.r-epic, .r-legendary) { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.7), inset 0 0 12px color-mix(in srgb, var(--rc) 45%, transparent), 0 0 6px color-mix(in srgb, var(--rc) 45%, transparent); }
.adv-pc > .ri { width: 32px; height: 32px; }
.adv-pc.none { border: 1px dashed #2e3d74; background: rgba(3, 8, 30, 0.6); box-shadow: none; }
.adv-pc.none > .ri.empty { border: 0; }
.adv-gear:has(.gsk) .adv-pc { height: 50px; place-items: start center; }
.adv-gear:has(.gsk) .adv-pc > .ri { margin-top: 3px; }
.adv-pc > .gsk { --gs: 12px; }
/* More than 3 sockets (a Pilgrim's shield from 100 walks of El Camino: up to 6): two rows of 3, the first row on top, a
   little smaller on the doll and the Gear tiles, the piece above them; the Character tab's frame grows a row taller. */
.gsk.two { flex-wrap: wrap; align-content: flex-end; max-width: calc(var(--gs) * 3 + 2px); margin: 0 auto; row-gap: 1px; }
.pd-slot > .gsk.two { --gs: max(6px, calc(var(--ds) * 0.2)); }
.pd-slot.so:has(> .gsk.two) > img { translate: 0 calc(var(--ds) * -0.2); scale: 0.66; }
.cw-gt > .gsk.two { --gs: 12px; }
.cw-gt.so:has(> .gsk.two) > img { translate: 0 -12px; scale: 0.72; }
.adv-gear .adv-pc:has(> .gsk.two) { height: 63px; }

/* The fuse reveal (rpg/ui-sockets.js fuseReveal): what Brom just fused from your Gem Dust or your gems. The Dust (or the
   gems) swirl into the middle (.swirl), the middle throbs (.charged), and on the anvil's ring the gem lands (.landed): a
   flash, rays and a glow in its kind's colour (--k, --k-hi, --k-glow; the Dust's lilac until then), what it adds on a
   ribbon; the window jolts (.modal.gfz-boom); the particles are on .gfz-fx. Then the tiles and the buttons pop in. */
.gfz-book { --k: #7e68c0; --k-hi: #e2d8ff; --k-glow: #b49cff; position: relative; text-align: center; }
.gfz-book.gfz-sparkstone { --k: #c08a00; --k-hi: #fff07a; --k-glow: #f2c418; }
.gfz-book.gfz-guardstone { --k: #1c4ab0; --k-hi: #9ac4ff; --k-glow: #3a7ae8; }
.gfz-book.gfz-lifestone { --k: #139a48; --k-hi: #a2f2bc; --k-glow: #2ccc66; }
.gfz-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.gfz-kick { margin: 0 0 2px; font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; color: var(--k-glow); }
.modal .gfz-h { margin: 0 0 8px; font-size: 26px; line-height: 1.15; color: #fff; text-shadow: 0 2px 0 #000; }
.gfz-h span { color: var(--k-hi); }
.gfz-book.landed .gfz-h { animation: gfz-title 0.55s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes gfz-title { from { scale: 0.7; } }
.gfz-stage { position: relative; height: 236px; margin: 0 0 14px; border-radius: 14px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--k-glow) 55%, #2e3d74);
  background: radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--k-glow) 30%, #1d2a6c) 0, #131c4e 46%, #070c2a 100%); box-shadow: inset 0 3px 12px rgba(0, 0, 0, 0.6); }
.gfz-rays { position: absolute; left: 50%; top: 44%; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; background: repeating-conic-gradient(color-mix(in srgb, var(--k-hi) 48%, transparent) 0 9deg, transparent 9deg 22.5deg);
  -webkit-mask: radial-gradient(circle, #000 14%, transparent 60%); mask: radial-gradient(circle, #000 14%, transparent 60%); opacity: 0; scale: 0.4; transition: opacity 0.5s, scale 0.8s cubic-bezier(0.2, 1.4, 0.4, 1); animation: gfz-spin 16s linear infinite; }
.gfz-book.charged .gfz-rays { opacity: 0.3; scale: 0.7; animation-duration: 3s; }
.gfz-book.landed .gfz-rays { opacity: 1; scale: 1; }
@keyframes gfz-spin { to { rotate: 360deg; } }
.gfz-glow { position: absolute; left: 50%; top: 44%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.85), color-mix(in srgb, var(--k-glow) 45%, transparent) 42%, transparent 70%); opacity: 0.2; transition: opacity 0.4s, scale 0.4s; }
.gfz-book.swirl .gfz-glow { opacity: 0.5; }
.gfz-book.charged .gfz-glow { opacity: 1; scale: 1.35; animation: gfz-throb 0.16s ease-in-out infinite alternate; }
.gfz-book.landed .gfz-glow { opacity: 0.65; scale: 1.2; animation: none; }
@keyframes gfz-throb { to { scale: 1.5; } }
/* the Dust's specks (in its icon's colours, --c) or the gems that go in, round the middle at --a, each a little late (--d) */
.gfz-motes { position: absolute; left: 50%; top: 44%; z-index: 1; }
.gfz-motes > i { --o: rotate(var(--a)) translateX(96px) rotate(calc(-1 * var(--a))) scale(1); position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; background: var(--c, #fff); box-shadow: 0 0 8px var(--c, #fff); transform: var(--o); }
.gfz-motes > i:has(img) { left: -16px; top: -16px; width: 32px; height: 32px; background: none; box-shadow: none; }
.gfz-bit { display: block; width: 32px; height: 32px; image-rendering: pixelated; filter: drop-shadow(0 0 5px var(--k-glow)); }
.gfz-book.swirl .gfz-motes > i { animation: gfz-in 1.8s cubic-bezier(0.55, 0, 0.85, 0.5) var(--d) forwards; }
@keyframes gfz-in { 0% { transform: var(--o); opacity: 1; } 85% { opacity: 1; } 100% { transform: rotate(calc(var(--a) + 600deg)) translateX(0) rotate(calc(-1 * (var(--a) + 600deg))) scale(0.2); opacity: 0; } }
.gfz-book.landed .gfz-motes { display: none; }
/* the middle: the Dust's icon (or the gem that goes in), the kinds flicking by for the Dust, then your gem */
.gfz-tap { position: absolute; left: 50%; top: 44%; translate: -50% -50%; z-index: 2; padding: 0; border: 0; background: none; cursor: pointer; }
.gfz-tap .gfz-gem { display: block; width: 112px; height: 112px; image-rendering: pixelated; scale: 0.5; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.35)); transition: scale 1.6s cubic-bezier(0.5, 0, 0.9, 0.6); }
.gfz-book.swirl .gfz-gem { scale: 0.8; }
.gfz-book.charged .gfz-gem { filter: brightness(1.4) drop-shadow(0 0 16px #fff); animation: gfz-shake 0.08s linear infinite alternate; }
.gfz-book.landed .gfz-gem { scale: 1; transition: none; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.35)) drop-shadow(0 0 14px color-mix(in srgb, var(--k-glow) 85%, transparent)); animation: gfz-land 0.7s cubic-bezier(0.2, 1.5, 0.4, 1), gfz-bob 1.8s ease-in-out 0.8s infinite; }
@keyframes gfz-shake { from { translate: -2px 1px; } to { translate: 2px -1px; } }
@keyframes gfz-land { 0% { scale: 0.5; } 100% { scale: 1; } }
@keyframes gfz-bob { 50% { translate: 0 -5px; } }
.gfz-flash { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 44%, #fff, rgba(255, 255, 255, 0.85) 35%, color-mix(in srgb, var(--k-hi) 40%, transparent) 75%); }
.gfz-book.landed .gfz-flash { animation: gfz-flash 0.6s ease-out; }
@keyframes gfz-flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
.gfz-name { position: absolute; left: 50%; bottom: 12px; translate: -50% 0; z-index: 2; white-space: nowrap; padding: 4px 22px; border-radius: 6px; border: 2px solid rgba(20, 12, 2, 0.7); background: linear-gradient(180deg, var(--k-hi), var(--k));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 3px 0 rgba(0, 0, 0, 0.45); color: #1e1406; font-family: var(--display); font-size: 20px; line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0; scale: 0.4; }
.gfz-book.landed .gfz-name { animation: gfz-name 0.55s cubic-bezier(0.2, 1.6, 0.4, 1) 0.25s forwards; }
@keyframes gfz-name { to { opacity: 1; scale: 1; } }
.modal.gfz-boom { animation: gfz-boom 0.45s ease-out; }
@keyframes gfz-boom { 0%, 100% { translate: 0 0; } 15% { translate: -7px 3px; } 30% { translate: 6px -4px; } 45% { translate: -4px 2px; } 60% { translate: 3px -1px; } 80% { translate: -1px 0; } }
/* what you have now, how far to the next grade, the Dust left */
.gfz-tiles { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; text-align: left; }
.gfz-tile { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; border: 1px solid #34468a; background: linear-gradient(180deg, #1a2663, #141e52); box-shadow: 0 3px 0 #000a2e; }
.gfz-tile.gfz-you { border-color: color-mix(in srgb, var(--k-glow) 70%, #34468a); box-shadow: 0 3px 0 #000a2e, 0 0 12px color-mix(in srgb, var(--k-glow) 30%, transparent); }
.gfz-tile > .ri { width: 44px; height: 44px; image-rendering: pixelated; }
.gfz-tile > .gfz-next { filter: grayscale(0.35) brightness(0.85); }
.gfz-tile b { display: block; font-family: var(--display); font-weight: 400; font-size: 18px; line-height: 1.2; color: #fff; }
.modal .gfz-tile small { display: block; margin-top: 2px; font-size: 17px; line-height: 1.2; color: #bcc5ea; }
.gfz-bar { display: block; height: 6px; margin-top: 5px; border-radius: 3px; overflow: hidden; background: #0a1238; box-shadow: inset 0 0 0 1px #2e3d74; }
.gfz-bar > i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--k), var(--k-hi)); }
.gfz-book .actions { justify-content: center; flex-wrap: wrap; }
.gfz-book [data-pop] { opacity: 0; visibility: hidden; }
.gfz-book [data-pop].on { visibility: visible; animation: gfz-pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) forwards; }
@keyframes gfz-pop { 0% { opacity: 0; scale: 0.7; translate: 0 10px; } 100% { opacity: 1; scale: 1; translate: 0 0; } }
@media (max-width: 560px) {
  .modal .gfz-h { font-size: 22px; }
  .gfz-stage { height: 212px; }
  .gfz-tap .gfz-gem { width: 96px; height: 96px; }
  .gfz-name { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .gfz-rays, .gfz-book .gfz-gem, .gfz-book.landed .gfz-h, .modal.gfz-boom { animation: none !important; }
  .gfz-book.landed .gfz-flash { animation: none; }
  .gfz-book.landed .gfz-name { animation: none; opacity: 1; scale: 1; }
  .gfz-book [data-pop].on { animation: none; opacity: 1; }
}
