.listener-entry {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  align-items: center;
  gap: clamp(24px, 5vw, 84px);
  padding: 40px max(26px, calc((100vw - 1120px) / 2));
  background: radial-gradient(ellipse at 22% 36%, #332520, #161317 57%);
}
.listener-entry[hidden], #listenerLounge[hidden], .listener-name-tag[hidden] { display: none; }
.entry-welcome .mark { width: 54px; height: 54px; font-size: 26px; }
.entry-welcome h1 {
  margin: 22px 0 18px;
  color: #f6dfc4;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.1;
}
.entry-welcome h1 small {
  display: block;
  margin-top: 12px;
  color: #dfbb96;
  font-size: 11px;
  font-weight: 500;
}
.entry-welcome p { color: #c7b3a5; line-height: 1.7; margin: 0; }
.entry-form {
  min-width: 0;
  padding: clamp(18px, 3vw, 30px);
  background: #211c20;
  border: 1px solid #57473e;
  border-radius: 18px;
  box-shadow: 0 18px 70px #0d080a8c;
}
.entry-form > label, .entry-form legend { font-size: 13px; font-weight: 500; color: #ecd4bc; }
.entry-form > input {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  color: #f0dfcf;
  background: #151215;
  border: 1px solid #594842;
  border-radius: 8px;
}
.entry-form > input[aria-invalid="true"] { border-color: #c47e68; }
.entry-form > p { margin: 7px 0 17px; font-size: 12px; color: #c0a79a; }
.entry-form fieldset { min-width: 0; border: 0; padding: 0; margin: 0 0 16px; }
.entry-options label { position: relative; display: block; cursor: pointer; margin-top: 7px; }
.entry-options input { position: absolute; top: 50%; right: 12px; margin: 0; transform: translateY(-50%); accent-color: #d7aa81; }
.entry-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 9px 35px 9px 12px;
  border: 1px solid #5e4a40;
  border-radius: 9px;
  background: #302423;
  font-size: 12px;
  color: #e9c8a9;
}
.entry-choice img { object-fit: contain; border-radius: 5px; background: radial-gradient(ellipse, #4b392f, #211a1c); }
.entry-choice small { display: block; margin-top: 5px; color: #ccb3a1; }
.entry-options input:focus-visible + .entry-choice { outline: 2px solid #efc69c; outline-offset: 2px; }
#entryCharacters {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 10px) / 2);
  gap: 10px;
  overflow-x: auto;
  margin-top: 8px;
  scroll-snap-type: x proximity;
  scrollbar-color: #8c6d57 #211c20;
}
#entryCharacters label { margin: 0; min-width: 0; scroll-snap-align: start; }
#entryCharacters input {
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
#entryCharacters .entry-choice {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border-color: #655045;
  background: #292125;
  text-align: center;
}
#entryCharacters .entry-choice > span:last-child { padding: 10px 5px; }
#entryCharacters .entry-choice b { font-size: 16px; }
#entryCharacters input:checked + .entry-choice {
  border-color: #e4c094;
  box-shadow: inset 0 0 0 1px #e4c09465;
  background: #3e2f2b;
  color: #f8dfbf;
}
#entryCharacters input:focus-visible + .entry-choice { outline-offset: -3px; }
#entryCharacters input:disabled + .entry-choice { opacity: .5; }
.entry-portrait {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: .78;
  max-height: 262px;
  background: radial-gradient(ellipse at 48% 41%, #48352c, #241c20 75%);
  border-bottom: 1px solid #caa17d27;
  color: #c0a79a;
}
input:checked + .entry-choice .entry-portrait:has(canvas:not([hidden])) { cursor: grab; touch-action: pan-y; }
input:checked + .entry-choice .entry-portrait.is-dragging { cursor: grabbing; }
.entry-portrait:has(canvas:not([hidden]))::before {
  content: "";
  position: absolute;
  width: 50%;
  height: 10%;
  bottom: 7%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #120e10a8, transparent 71%);
}
.entry-portrait img { width: 66%; height: auto; max-height: 86%; }
.entry-portrait canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.entry-portrait:has(canvas:not([hidden])) > :is(img,span) { display: none; }
.entry-form > button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 12px;
  border: 1px solid #d7aa81;
  border-radius: 8px;
  background: #d7aa81;
  color: #241813;
  font-weight: 600;
}
.entry-form > button:disabled { opacity: .52; cursor: default; }
.entry-form > button[data-logout] {
  min-height: auto;
  margin-top: .65rem;
  padding: .25rem 0;
  justify-content: flex-end;
  border: 0;
  background: transparent;
  color: #c0a79a;
  font-size: 12px;
}
.listener-name-tag {
  position: absolute;
  z-index: 1;
  padding: 3px 7px;
  border-radius: 5px;
  background: #1b151bda;
  color: #ddc8b5;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  transform: translate(-50%, -100%);
  pointer-events: none;
}
@media (max-width: 740px) {
  .listener-entry { grid-template-columns: minmax(0, 500px); justify-content: center; align-content: center; padding-block: 24px; }
}
