.tv-room {
  --tv-frame: #ba9067;
  --tv-glow: #f8d8a0;
  margin: 0 auto;
  max-width: 760px;
  padding: clamp(11px, 3vw, 26px);
  background: radial-gradient(ellipse at 50% -21%, #63334b 0%, #311f30 46%, #211827 78%);
  border: 1px solid #ad8660;
  border-radius: 6px;
  box-shadow: 0 14px 32px #100a19a3, inset 0 0 0 3px #24152480;
  color: #f8edd7;
}
.tv-floor-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(5px, 1.4vw, 11px);
  padding: 0;
  margin: 0 0 clamp(14px, 3vw, 24px);
}
.tv-floor-list li {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 71px;
  padding: 6px 3px;
  text-align: center;
  border: 1px solid #a787726c;
  border-radius: 3px;
  background: #1b1420bc;
}
.tv-floor-list li[data-status="current"] {
  background: #533143;
  border-color: var(--tv-glow);
  box-shadow: 0 0 12px #cda07932, inset 0 0 0 2px #edcc9250;
}
.tv-floor-list li[data-status="passed"] {
  background: #2b3c39;
  border-color: #9ebca6;
}
.tv-floor-list li[data-status="trap"] {
  background: #592534;
  border-color: #e398a2;
}
.tv-floor-list span {
  color: #e2c5a9;
  font-size: .69rem;
}
.tv-floor-list b {
  font: 700 clamp(12px, 3.4vw, 17px) var(--serif);
}
.tv-floor-list small {
  color: #f3ce9f;
  font: 500 clamp(9px, 2.7vw, 12px) var(--sans);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.tv-stage {
  padding: clamp(9px, 2.6vw, 19px);
  border: 1px solid #ac8b6a74;
  border-radius: 4px;
  background: radial-gradient(ellipse at 50% 16%, #a46f4538, transparent 64%), #271a29;
}
.tv-chamber {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 0 0 9px;
}
.tv-chamber h2 {
  color: #f1dcb3;
  font: 700 clamp(19px, 5vw, 28px) var(--serif);
  margin: 0;
}
.tv-chamber span {
  white-space: nowrap;
  color: #eab98d;
  font-size: clamp(12px, 3vw, 14px);
  font-variant-numeric: tabular-nums;
}
.tv-doors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 2vw, 14px);
}
.tv-door {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
  border: 1px solid #c69362;
  border-radius: 49% 49% 4px 4px / 34% 34% 4px 4px;
  min-height: clamp(123px, 29vw, 200px);
  padding: 18px 4px 11px;
  background: linear-gradient(93deg, #1d161880 4%, transparent 30% 72%, #140a1585 97%), var(--tv-door);
  box-shadow: 0 4px 9px #120e1780, inset 0 0 0 3px #eac89926, inset 0 0 0 6px #21162156;
  color: #f9dfad;
}
.tv-door::before {
  position: absolute;
  inset: 9px 8px 26px;
  content: "";
  border: 1px solid #efc88c6e;
  border-radius: inherit;
  pointer-events: none;
}
.tv-door:not(:disabled):hover,
.tv-door:not(:disabled):focus-visible {
  border-color: #ffe5b5;
  box-shadow: 0 4px 14px #100819bf, inset 0 0 0 2px #ffe5b5b3;
}
.tv-door.tv-starlight { --tv-door: linear-gradient(110deg, #2b4a53, #182b38); }
.tv-door.tv-moon { --tv-door: linear-gradient(110deg, #5c4677, #30213d); }
.tv-door.tv-crown { --tv-door: linear-gradient(110deg, #713644, #411c2c); }
.tv-door strong {
  position: relative;
  text-align: center;
  text-wrap: balance;
  font: 700 clamp(11px, 3.1vw, 16px) var(--serif);
}
.tv-crest {
  align-self: center;
  display: grid;
  place-items: center;
  width: 51%;
  max-width: 70px;
  aspect-ratio: 1;
  margin-bottom: 5px;
  border: 1px solid #e4b77f;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 28%, #704b52, #251724 75%);
  box-shadow: inset 0 0 0 2px #291f2a, inset 0 0 0 3px #c29b6870, 0 4px 7px #17111b95;
  font: 400 clamp(18px, 5.7vw, 36px)/1 Georgia, "Noto Serif", serif;
}
.tv-opening:disabled {
  opacity: 1;
  border-color: #ffe8ab;
  animation: tv-unseal .65s ease-in-out backwards;
}
@keyframes tv-unseal {
  from { transform: translateY(0); opacity: .76; }
  45% { transform: translateY(-5px); opacity: 1; }
  to { transform: translateY(0); opacity: 1; }
}
.tv-feedback {
  min-height: 2.6em;
  margin: 11px 0 5px;
  color: #efd7c3;
  font-size: .82rem;
}
.tv-ledger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  border-top: 1px solid #a283627d;
  padding-top: 9px;
}
.tv-ledger span {
  display: block;
  color: #dbc0aa;
  font-size: .7rem;
}
.tv-ledger strong {
  color: #ffdfa9;
  font: 700 clamp(17px, 5.1vw, 26px) Georgia, var(--serif);
  font-variant-numeric: tabular-nums;
}
.tv-claim {
  min-height: 44px;
  border: 1px solid #f1c58d;
  border-radius: 4px;
  padding: 5px clamp(8px, 2.6vw, 19px);
  color: #33202a;
  font-size: clamp(12px, 3.2vw, 15px);
  font-weight: 700;
  background: linear-gradient(#f8dfaf, #d2a46e);
}
.tv-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px 14px;
  min-height: 73px;
  border: 1px solid #b99672;
  border-radius: 4px;
  padding: 10px clamp(10px, 3vw, 17px);
  background: #33212d;
}
.tv-trapped { border-color: #c28197; }
.tv-crowned {
  background: linear-gradient(115deg, #59334b, #43212b 64%, #714627);
  border-color: #ffe0a4;
}
.tv-result strong {
  font: 700 clamp(25px, 6vw, 37px)/1 Georgia, var(--serif);
  color: #ffdb97;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tv-result small {
  margin-left: 5px;
  font: 400 12px var(--sans);
  color: #dfc3a2;
}
