.preparation .word-loadout {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #fff4df;
  background: #24191e;
  border: 1px solid #94754f;
  box-shadow: inset 0 0 0 2px #110c10, 0 5px 14px #08040844;
}

.word-vignette {
  --portrait-y: 30%;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 9.8rem;
  padding: 1rem 1.1rem .8rem;
  overflow: hidden;
  background: #21151b;
}
.word-vignette[data-speaker="toji"] { --portrait-y: 20%; }
.word-vignette[data-speaker="ricardo"] { --portrait-y: 30%; }
.word-vignette[data-speaker="feri"] { --portrait-y: 24%; }
.word-vignette[data-speaker="wang"] { --portrait-y: 17%; }
.word-vignette[data-speaker="lucifer"] { --portrait-y: 22%; }
.word-vignette .word-scene {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 71%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--portrait-y);
}
.word-vignette::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(0deg, #160e17b5, transparent 60%),
    linear-gradient(90deg, #23151c 10%, #25161df5 29%, #25161dae 47%, #25161d16 76%);
}
.word-inscription {
  width: 66%;
  min-width: 0;
}
.word-imprint {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .15em .7em;
  color: #f3d59e;
}
.word-imprint i { font: italic 1.14rem/1.15 Georgia, serif; }
.word-imprint small { font: .76rem/1.4 var(--sans); letter-spacing: .05em; }
.word-vignette #word-loadout-title {
  margin: .28em 0 0;
  color: #fff2e1;
  font: 600 clamp(1.36rem, 4.5vw, 1.7rem)/1.48 var(--serif);
  line-break: strict;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 4px #110a12;
}
.word-scene-link {
  padding: .55em 0 .2em;
  color: #edddbd;
  font: 500 .94rem/1.4 var(--sans);
  text-decoration: underline;
  text-decoration-color: #ba9b71b0;
  text-underline-offset: .28em;
}
.word-scene-link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.word-vignette:has(.word-scene-link:focus-visible) { outline: 2px solid #ffe1ad; outline-offset: -3px; }
.word-vignette:hover .word-scene-link { color: #ffedc6; }

.word-fittings {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 44px;
  padding: 0 .55rem;
  background: linear-gradient(100deg, #301e24, #25191d);
  border-top: 1px solid #836447;
}
.word-fittings .word-picker {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}
.word-fittings .word-picker::after {
  content: "";
  position: absolute;
  right: .6rem;
  top: 44%;
  width: .46rem;
  height: .46rem;
  border: solid #c4a271;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
.preparation .word-fittings select {
  appearance: none;
  border: 0;
  background: transparent;
  color: #f9e8cd;
  font: 600 1rem/1.4 var(--serif);
  max-width: 100%;
  min-height: 44px;
  padding: .4em 1.7rem .4em .42rem;
  cursor: pointer;
}
.word-fittings option { background: #25191d; color: #fff2df; }
.word-clasp {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: 0 .4rem;
  min-height: 44px;
  font: 600 .98rem/1.45 var(--sans);
  color: #e0d1c5;
  cursor: pointer;
}
.word-clasp input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.word-switch {
  box-sizing: content-box;
  display: flex;
  align-items: center;
  width: 1.65rem;
  height: .83rem;
  padding: 2px;
  border: 1px solid #9d8b7c;
  border-radius: 1rem;
  background: #1a1619;
}
.word-switch::after {
  content: "";
  width: .8rem;
  height: .8rem;
  border-radius: 50%;
  background: #b5a498;
}
.word-clasp input:checked + .word-switch {
  justify-content: flex-end;
  background: #715438;
  border-color: #cfb487;
}
.word-clasp input:checked + .word-switch::after {
  background: #f6ddad;
  box-shadow: inset 0 0 0 1px #ffedce, 0 1px 2px #33241b;
}
.word-clasp input:checked ~ span { color: #f3dfbc; }
.word-clasp:focus-within, .word-fittings select:focus-visible {
  outline: 2px solid #ffe1ad;
  outline-offset: -2px;
}
@media (forced-colors: active) {
  .word-clasp input { position: static; width: 1.1rem; height: 1.1rem; opacity: 1; }
  .word-switch { display: none; }
}
