/* ─── Adventurer show ───────────────────────────────────── */
/* ───────────────────────────────────────────────────────────────────────────*/
/*start of show window */
.adventurer-show {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--border);
  background: var(--bg-card);
  height: calc(90vh - 18px);
  width: 96vw;
  margin: 2rem auto;
  overflow: hidden;
}

/*left partition*/
.adventurer-left {
  overflow: hidden;
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border-right: 1px solid var(--border);
  position: relative;
}

.adventurer-picture {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 3/4 = 75% of width */
  height: 0;
  background: var(--bg-raised);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 0.5rem;
}
.adventurer-picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.adventurer-picture video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.adventurer-picture img,
.adventurer-picture video,
.adventurer-form-picture img,
.adventurer-form-picture video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}



.adventurer-identity {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.adventurer-name {
  font-family: var(--font-head-soft);
  font-size: 2rem;
  text-shadow: 0 1 1.5px var(--bg);
  color: var(--gold);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 0;
}

.adventurer-title {
  font-family: var(--font-head-soft);
  font-size: 1.5rem;
  font-style: italic;
  text-shadow: 0 0 3px var(--red);
  letter-spacing: 0.05em;
  color: var(--red);
  line-height: 1;
  margin-top: 0.2rem;
}
.adventurer-left:hover .adventurer-title {
  animation: kind-flame 2s ease-in-out infinite;
  text-shadow: 0 0 3px var(--red);
}

.adventurer-label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.2;
}

.adventurer-meta {
  display: flex;
  gap: 3.25rem;
  flex-wrap: wrap;
}

.adventurer-meta-pair {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.adventurer-meta-value {
  font-family: var(--font-head);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.2;
}

.adventurer-meta-pair:hover .adventurer-meta-value{
  animation: blood-rage 2s ease-in-out infinite;
}


.adventurer-rank-row {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.5rem;
  position: absolute;
  bottom: 1rem;
  right: 1rem;
}

.adventurer-rank {
  font-family: var(--font-head);
  font-size: 2.7rem;
  font-weight: 700;
  color: var(--red-bright);
  border: 4px solid var(--red-dark);
  letter-spacing: 0.1em;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: blood-idle 4s ease-in-out infinite;
}

.adventurer-left:hover .adventurer-rank {
  animation: kind-flame 2s ease-in-out infinite;
}


/* ───────────────────────────────────────────────────────────────────────────*/
.adventurer-middle {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-right: 1px solid var(--border);
  min-height: 0;
}

.adventurer-additionals {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}


.adventurer-stats {
  display: flex;
  flex-direction: column;
  flex: 1;
  border: 1px solid var(--border);
  transition: box-shadow 0.6s, border-color 0.6s;
  min-height: 0;
  overflow-y: auto;
}
.adventurer-stats:hover {
  animation: stats-box-glow 1.2s ease-out forwards, stats-text-glow 1.2s ease-out forwards;
}


.adventurer-stats .adventurer-label {
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}

.adventurer-stats-row {
  display: flex;
  align-items: stretch;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.adventurer-stats-key {
  color: var(--text-muted);
  flex: 3;
  padding: 0.4rem 0.5rem;
}

.adventurer-stats-val {
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  flex: 1;
  text-align: right;
  border: 2px solid var(--border);
  padding: 0.4rem 0.5rem;
  background: var(--bg-raised);
}
.adventurer-stats-row:hover .adventurer-stats-val{
  animation: stats-box-glow 1.2s ease-out forwards, stats-text-glow 1.2s ease-out forwards;
}


.adventurer-special-label {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dim);
  line-height: 1.2;
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 1;
}


/* ───────────────────────────────────────────────────────────────────────────*/
.adventurer-right {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  overflow: hidden;
}

.adventurer-special-links{
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  transition: box-shadow 0.6s, border-color 0.6s;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.adventurer-special-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0.5rem;
  font-size: 1.4rem;
}


.adventurer-special-meta {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  text-align: right;
  animation: kind-flame 3s ease-in-out infinite;
}
.adventurer-special-links:hover .adventurer-special-row-meta {
  animation: flame-of-destruction 2s ease-in-out infinite;
}
.adventurer-special-links:hover {
  animation: stats-box-bleed 1.2s ease-out forwards
}



/* ─── Adventurer form ───────────────────────────────────── */
/* ───────────────────────────────────────────────────────────────────────────*/
/* shared input reset */
.adventurer-form-input {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
}
.adventurer-form-input:focus {
  outline: none;
  border-bottom-color: var(--border);
}
.adventurer-form-input:selection {
  background: var(--gold-dim);
  color: var(--bg);
}
.adventurer-form-input::placeholder { opacity: 0.4; }

.adventurer-form-select {
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  color: inherit;
  font: inherit;
  appearance: none;
  cursor: pointer;
  padding: 0.1rem 0;
  transition: border-color 0.15s;
}
.adventurer-form-select:focus {
  outline: none;
  border-bottom-color: var(--border);
}



/* ───────────────────────────────────────────────────────────────────────────*/
.adventurer-form-left {
  overflow: hidden;
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border-right: 1px solid var(--border);
  position: relative;
}

.adventurer-form-picture {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 3/4 = 75% of width */
  height: 0;
  background: var(--bg-raised);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 0.5rem;
}
.adventurer-form-picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.adventurer-form-picture video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.adventurer-form-file {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.5rem;
  border: none;
  border-top: 1px solid var(--border);
  cursor: pointer;
  width: 100%;
}
.adventurer-form-file:hover { color: var(--gold); }

.adventurer-form-identity {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: -0.2rem; 
}

.adventurer-form-name {
  font-family: var(--font-head-soft);
  font-size: 2rem;
  text-shadow: 0 1 1.5px var(--bg);
  color: var(--gold);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 0;
  padding: 0; border: none;
}

.adventurer-form-title {
  font-family: var(--font-head-soft);
  font-size: 1.5rem;
  font-style: italic;
  text-shadow: 0 0 3px var(--red);
  letter-spacing: 0.05em;
  color: var(--red);
  display: block;
  line-height: 1;
  margin: 0;
  padding: 0;
  border: none;
  height: auto;
  min-height: 0;
  margin-top: -0.2rem; 
}
.adventurer-form-left:hover .adventurer-form-title {
  animation: kind-flame 2s ease-in-out infinite;
  text-shadow: 0 0 3px var(--red);
}


.adventurer-form-label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.2;
  margin-top: -0.15rem;
  margin-bottom: -0.02rem;
}

.adventurer-form-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;

}

.adventurer-form-meta-pair {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 4.6rem;
}

.adventurer-form-meta-value {
  font-family: var(--font-head);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.2;
  margin-top: -0.12rem;
}


.adventurer-form-rank-row {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.5rem;
  position: absolute;
  bottom: 1rem;
  right: 1rem;
}

.adventurer-form-rank {
  font-family: var(--font-head);
  font-size: 2.7rem;
  font-weight: 700;
  color: var(--red-bright);
  border: 4px solid var(--red-dark);
  letter-spacing: 0.1em;
  text-align: center;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 3rem;
  margin-left: 0.22rem;
  animation: blood-idle 4s ease-in-out infinite;
}
.adventurer-form-left:hover .adventurer-form-rank {
  animation: kind-flame 2s ease-in-out infinite;
}



/* ───────────────────────────────────────────────────────────────────────────*/
.adventurer-form-middle {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  overflow: hidden;
}

.adventurer-form-additionals{
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}


.adventurer-form-stats {
  display: flex;
  flex-direction: column;
  flex: 1;
  border: 1px solid var(--border);
  transition: box-shadow 0.6s, border-color 0.6s;
  overflow-y: auto;
  width: 100%;
}
.adventurer-form-stats:hover {
  animation: stats-box-glow 1.2s ease-out forwards, stats-text-glow 1.2s ease-out forwards;
}


.adventurer-form-stats .adventurer-form-label {
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}

.adventurer-form-stats-row {
  display: flex;
  align-items: stretch;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border);
}


.adventurer-form-stats-key {
  color: var(--text-muted);
  flex: 3;
  min-width: 0;
  margin-bottom: 0.3rem;
  padding: 0.4rem 0.5rem;
  width: auto;
}

.adventurer-form-stats-val {
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: right;
  flex: 1;
  min-width: 0;
  border-left: 1px solid var(--border);
  padding: 0.4rem 0.5rem;
  border: 2px solid var(--border);
  background: var(--bg-raised);
  width: auto;
}
.adventurer-form-stats-row:hover .adventurer-form-stats-val{
  animation: stats-box-glow 1.2s ease-out forwards, stats-text-glow 1.2s ease-out forwards;
}

.adventurer-form-stats-val::-webkit-inner-spin-button,
.adventurer-form-stats-val::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.adventurer-form-stats-val[type="number"] {
  -moz-appearance: textfield;
}


.adv-form-remove-btn {
  background: transparent;
  border: none;
  border-left: 2px solid var(--border);
  color: var(--red);
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0 0.6rem;
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: blood-idle 4s ease-in-out infinite;
  transition: background 0.15s;
}
.adv-form-remove-btn:hover {
  animation: kind-flame 1.5s ease-in-out infinite;
   animation: stats-box-bleed 1.2s ease-out forwards, kind-flame 1.2s ease-out forwards;
}

.adv-form-stats-add-btn {
  background: transparent;
  border: none;
  border: 1px solid var(--gold-dim);
  color: var(--gold-dim);
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.4rem 0;
  width: 100%;
  text-align: center;
  display: block;
  transition: color 0.15s, box-shadow 0.15s;
}
.adv-form-stats-add-btn:hover {
  animation: stats-box-glow 1.2s ease-out forwards, stats-text-glow 1.2s ease-out forwards;
}



.adventurer-form-special-label {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dim);
  line-height: 1.2;
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}


/* ───────────────────────────────────────────────────────────────────────────*/
.adventurer-form-right {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  overflow: hidden;
}

.adventurer-form-special-links{
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  transition: box-shadow 0.6s, border-color 0.6s;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.adventurer-form-specials-links:hover {
  animation: stats-box-bleed 1.2s ease-out forwards
}


.adventurer-form-special-row{
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0.5rem;
  font-size: 1.4rem;
  min-width: 0;
}

.adventurer-form-special-title {
  color: var(--gold);
  flex: 1;
  text-align: center;
}

.adventurer-form-special-meta {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  text-align: right;

  animation: kind-flame 3s ease-in-out infinite;
}




.adv-form-add-btn {
  background: transparent;
  border: none;
  border-left: 2px solid var(--border);
  color: var(--red);
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0 0.72rem;
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: blood-idle 4s ease-in-out infinite;
  transition: background 0.15s;
}
.adv-form-add-btn:hover {
  animation: kind-flame 1.5s ease-in-out infinite;
   animation: stats-box-bleed 1.2s ease-out forwards, kind-flame 1.2s ease-out forwards;
}


.adventurer-form-stimulus-row {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--border);
}

.adventurer-form-stimulus-spinbox {
  background: transparent;
  border: none;
  border: 1px solid var(--gold-dim);
  color: var(--gold-dim);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.7rem 0;
  width: 100%;
  text-align: center;
  display: block;
  transition: color 0.15s, box-shadow 0.15s;
}
.adventurer-form-stimulus-spinbox:focus { outline: none; }

.adventurer-form-stimulus-add {
  background: transparent;
  border: none;
  color: var(--green-dim);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0 0.75rem;
  align-self: stretch;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.adventurer-form-picker-add:hover { color: var(--green); }
