/* --== Global Styles ==-- */

@import url("https://font.nmscd.com/assets/font/NMSGeoSans_Kerned/Web-TT/NMSGeoSans_Kerned.css");

@font-face {
  font-family: "3270";
  src:
    url(../fonts/3720/3270-Regular.woff) format("woff"),
    url(../fonts/3720/3270-Regular.ttf) format("truetype");
  font-weight: normal;
  font-style: normal;
}

html,
body {
  font-family: "3270", sans-serif;
  font-size: 40px;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

* {
  box-sizing: border-box;
}

.inactive {
  display: none !important;
}

p {
  margin: 0;
}

#versionLabel {
  font-weight: bold;
}

#custom-pointer {
  position: fixed;
  pointer-events: none;
  z-index: 500;
  width: 1440px;
  height: 2447px;
  background: url(../assets/Hand.png) no-repeat;
  background-size: contain;
  top: -3000px;
  left: -3000px;
  transform: translate(-5.7%, -4.5%);
  will-change: left, top;
}

#overlay {
  position: fixed;
  pointer-events: none;
  width: 100vw;
  height: 100vh;
  max-width: 100%;
  max-height: 100%;
  z-index: 998;
}

#background {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  align-content: center;
  position: fixed;
  pointer-events: none;
  width: 250vw;
  height: 300vh;
  z-index: -500;
}

#backgroundTop,
#backgroundBottom {
  width: 100%;
  height: 3%;
}

#backgroundView {
  width: 100%;
  height: 25%;
}

#helmet {
  display: flex;
  width: 100vw;
  height: 100vh;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
}

#helmetTop {
  position: relative;
  width: 75%;
  height: 5%;
  filter: blur(5px);
  border-radius: 0 0 100% 100%;
  border: 4px solid;
  top: -4%;
}

#helmetBottom {
  position: relative;
  width: 30%;
  height: 7%;
  filter: blur(5px);
  border-radius: 100% 100% 0 0;
  border: 4px solid;
  bottom: -4%;
}

#perspective {
  overflow: hidden;
  display: flex;
  width: 100vw;
  max-width: 100%;
  height: 100vh;
  max-height: 100%;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  transform: translate3d(0, 0, 0);
}

#visual {
  overflow: visible;
  display: flex;
  flex-direction: column;
  width: 250%;
  height: 200%;
  align-items: center;
  justify-content: center;
  transform: rotateX(0deg);
  transform: translateY(0px);
}

#outerDetail1 {
  overflow: visible;
  width: 300%;
  height: 200px;
  border: 3px solid;
  margin-bottom: 15px;
}

#outerDetail2 {
  overflow: visible;
  width: 300%;
  height: 200px;
  border: 3px solid;
  margin-top: 15px;
}

#musicControls {
  display: flex;
  justify-content: space-around;
}

#musicTopBorder {
  width: 100%;
  height: 0px;
  border: 25px solid;
  border-top: 0px;
}

#musicBorder1 {
  width: 100vw;
  height: fit-content;
  border: 4px solid;
}

#musicBorder2 {
  width: 100%;
  height: 100%;
  border: 30px solid;
}

#screenBorder1 {
  position: relative;
  width: 80%;
  height: 60%;
  border: 4px solid;
}

#emergencyRestartPanel {
  position: absolute;
  right: 0;
  bottom: 10%;
  z-index: -1;
  display: flex;
  height: fit-content;
  width: 20vw;
  transform: translateX(0%);
  transition: transform 0.6s ease;
}

#emergencyRestartPanel.out {
  transform: translateX(60%);
}

#restartPanelConnection {
  width: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

#restartPanelConnection hr {
  width: 100%;
  height: 17%;
}

#restartPanel {
  display: flex;
  flex-direction: column;
  border: 3px solid;
  padding: 10px;
  width: 50%;
  height: fit-content;
  align-items: center;
}

#restartButton {
  aspect-ratio: 1/1;
  width: 75%;
}

#restartButtonOuterCircle {
  width: 100%;
  height: 100%;
  border: 3px solid;
  border-radius: 50%;
}

#restartButtonInnerCircle {
  position: relative;
  width: 75%;
  height: 75%;
  border: 3px solid;
  border-radius: 50%;
  left: 12.5%;
  top: 12.5%;
}

#screenBorder2 {
  width: 100%;
  height: 100%;
  border: 30px solid;
  border-bottom-width: 70px;
}

#screenBorder3,
#musicBorder3 {
  width: 100%;
  height: 100%;
  border: 4px solid;
}

#screenBorder4,
#musicBorder4 {
  width: 100%;
  height: 100%;
  border: 25px solid;
}

#trackInfo {
  display: flex;
  justify-content: center;
  width: fit-content;
}

#trackInfo p,
#musicCreditButton,
#musicControls p {
  margin-left: 10px;
  margin-right: 10px;
}

#monitorBackground {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#monitorDetail {
  position: absolute;
  width: 97%;
  height: 97%;
  filter: blur(6px);
  z-index: 49;
}

#monitorOff {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 90;
  display: none;
}

#monitorOff.on {
  display: block;
}

#helpContent {
  font-size: 30px;
}

#noSignalScreen.active {
  width: 100%;
  height: 100%;
  padding: 0;
  z-index: 95;
}

#noSignalContent {
  width: 100%;
  height: 100%;
}

#noSignalImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.active {
  position: relative;
  width: 97%;
  height: 97%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  z-index: 50;
}

.divider,
.dividerLight {
  width: 100%;
  border: none;
  height: 2px;
  background-size: 40px 100%;
}

button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
}

li {
  list-style: square;
  font-size: 35px;
}

ul {
  margin: 0px;
}

#menuScreen {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.menuButton {
  width: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
}

#startingScreen {
  display: flex;
  justify-content: center;
  align-items: center;
}

.infoText {
  font-size: 25px;
}

.project,
.experience,
.certification {
  margin-top: 15px;
  margin-bottom: 15px;
}

.setting {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 25px;
  margin-bottom: 25px;
  width: stretch;
}

.credit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  margin-bottom: 15px;
}

.titleReturn {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#doorsSilhouetteUI {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  font-family: inherit;
  color: #ffffff;
}

#doorsSilhouetteUI [hidden],
#doorsSilhouetteUI[hidden] {
  display: none !important;
}

.doors-silhouette-bottom {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  text-align: center;
}

.doors-silhouette-notes {
  padding: 8px;
  background: #000000cc;
  font-size: 26px;
  white-space: pre-line;
  line-height: 1.4;
}

.doors-silhouette-lock,
.doors-silhouette-heartbeat {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100% - 40px));
  box-sizing: border-box;
  padding: 16px;
  background: #080808ee;
  border: 1px solid #bebebe;
  text-align: center;
  font-size: 20px;
  pointer-events: auto;
}

.doors-silhouette-rhythm {
  position: relative;
  height: 72px;
  overflow: hidden;
  margin: 12px 0;
  border-block: 1px solid #666;
}

.doors-silhouette-hit-zone {
  position: absolute;
  left: 16%;
  width: 18%;
  height: 100%;
  background: #ffffff18;
}

.doors-silhouette-hit-zone::after {
  content: "";
  position: absolute;
  left: 50%;
  height: 100%;
  border-left: 2px solid white;
}

.doors-silhouette-beat {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  padding: 5px 9px;
  border: 1px solid #bebebe;
  background: #161616;
}

.doors-silhouette-beat[data-status="hit"] {
  color: #b7e6bc;
  opacity: 0.35;
}

.doors-silhouette-beat[data-status="missed"] {
  color: #ee9999;
  opacity: 0.35;
}

.doors-silhouette-prompt {
  white-space: pre-line;
}

#doorsSilhouetteUI button,
#doorsSilhouetteUI input {
  font: inherit;
  color: inherit;
  background: #161616;
  border: 1px solid #bebebe;
  padding: 8px 12px;
  margin: 6px;
}

#doorsSilhouetteUI input {
  width: 80%;
  box-sizing: border-box;
  text-align: center;
  letter-spacing: 4px;
}

#doorsSilhouetteUI button {
  cursor: pointer;
}

#doorsSilhouetteUI button:hover {
  background: #333333;
}

.doors-silhouette-feedback {
  font-size: 20px;
  margin: 6px 0 0;
}

#doorsCanvas {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  margin: 0;
}

#doorsContent {
  position: relative;
  overflow: hidden;
}

#doorsMenu {
  display: flex;
  flex-direction: column;
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow-y: auto;
  padding: 15px;
  font-size: 30px;
}

#doorsMenuBody {
  margin-block: auto;
  flex-shrink: 0;
}

.doorsInstructions {
  margin: 15px 0;
}

#doorsMenuTip,
#doorsMenuNote {
  font-size: 22px;
}

#doorsMenu .volumeText {
  width: 40%;
  flex-shrink: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

#doorsMenu .audioSlider {
  flex: 1;
  min-width: 0;
}

#doorsMenu output {
  width: 4ch;
  margin-left: 15px;
  text-align: right;
}

#doorsMenuContinue {
  width: 100%;
  cursor: pointer;
}

#doorsMenu :focus-visible {
  outline: 2px solid;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  #doorsMenu {
    font-size: 22px;
    padding: 10px;
  }

  #doorsMenuTip,
  #doorsMenuNote {
    font-size: 18px;
  }
}

#doorsHud,
#doorsHealth,
#doorsInteractionIndicator {
  position: absolute;
  z-index: 1;
  color: #ffffff;
  pointer-events: none;
  text-shadow: 0 0 4px #000000;
}

#doorsHud {
  bottom: 12px;
  left: 12px;
  font-size: 1rem;
}

#doorsHealth {
  top: 12px;
  left: 12px;
  font-size: 1rem;
}

#doorsExitIndicator {
  position: absolute;
  top: 0;
  right: 0;
  width: 2rem;
  height: 2rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 0 4px #000000;
  transform-origin: center;
}

#doorsInteractionIndicator {
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  min-height: 1.2em;
  font-size: 1rem;
}

.screenContent {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  height: 100%;
}

.scroll-box {
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
}

.scroll-box::-webkit-scrollbar {
  width: 30px;
}

.scroll-box::-webkit-scrollbar-track {
  background: transparent;
}

.scroll-box::-webkit-scrollbar-thumb {
  background-color: #b0e0ff;
  border-radius: 0px;
}

#musicPlayer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: fit-content;
  width: 100%;
}

#musicOff {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: none;
}

#musicOff.on {
  display: block;
}

#aboutMe {
  display: flex;
  align-items: space-between;
  justify-content: center;
}

#aboutMe div {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: center;
}

#avatar {
  width: 20%;
}

#contactLine {
  display: flex;
  justify-content: space-between;
  margin: 10px;
  transform: translateY(-70px);
  font-family: "NMSGeoSans", "3270";
}

#latestCommit {
  display: flex;
  position: fixed;
  justify-content: space-between;
  align-items: center;
  transform: translateY(-15px);
  font-family: "NMSGeoSans", "3270";
  font-size: 30px;
}

#latestCommit div {
  margin: 10px;
}

#versionMessage {
  font-size: 20px;
}

#socials {
  display: flex;
  font-size: 30px;
  align-items: center;
}

.volumeText {
  width: 500px;
}

#pixelationText,
#doorsSiteAudioOverrideText {
  width: 50%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#pixelationStatus,
#doorsSiteAudioOverrideStatus {
  width: 30%;
}

.audioSlider {
  appearance: none;
  width: stretch;
  height: 10px;
}

.audioSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 0px;
}

#textEditorSizeInput {
  appearance: none;
  width: stretch;
  height: 10px;
}

#textEditorSizeInput::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 0px;
}

hr {
  border: 1px solid;
  margin: 5px;
  height: 100%;
  width: 1px;
}

.textInput {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  font-size: 50px;
  border: 2px solid;
  text-align: center;
  caret-shape: block;
}

#accessCodeInput {
  text-transform: uppercase;
  margin: 20px;
}

#textProperties {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

#colorTextEditor {
  width: 300px;
}

#sizeTextEditor {
  width: stretch;
}

#textEditorSizeInput,
#textEditorColorInput {
  width: stretch;
}

#textEditorText {
  height: stretch;
  border: 2px solid;
  text-align: center;
  align-content: center;
  font-size: 50px;
  font: inherit;
  width: 100%;
  caret-shape: block;
}

#TimelineSetup7117 {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  height: fit-content;
}

#TimelineLeft7117,
#TimelineRight7117 {
  position: relative;
  width: 49.5%;
  height: 100%;
}

#TimelineCenter7117 {
  position: relative;
  width: 1%;
  height: 100%;
  margin-left: 10px;
  margin-right: 10px;
}

.TimelineIndicator7117 {
  position: absolute;
  left: -50%;
  width: 200%;
  height: 3px;
}

.TimelineEvent7117 {
  position: absolute;
  width: stretch;
}

.TimelineEventHeader7117 {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px;
  font-size: 30px;
  cursor: pointer;
}

.TimelineDateText7117 {
  width: 100%;
  text-align: center;
  font-size: 45px;
}

.TimelineArrow7117 {
  position: absolute;
  left: 10px;
  display: inline-block;
  transform-origin: center;
  transition: transform 0.25s ease;
}

.side-left .TimelineArrow7117 {
  left: auto;
  right: 10px;
  transform: scaleX(-1);
}

.TimelineEvent7117.open .TimelineArrow7117 {
  transform: rotate(-90deg);
}

.TimelineEvent7117.open.side-left .TimelineArrow7117 {
  transform: scaleX(-1) rotate(-90deg);
}

.TimelineEventTitle7117 {
  font-size: 35px;
  margin-bottom: 10px;
  text-align: center;
}

.TimelineEvent7117 .dividerLight,
.TimelineEvent7117 .divider {
  margin: 0;
}

.TimelineEventBody7117 {
  max-height: 0px;
  overflow: hidden;
  padding: 0 10px;
  transition: max-height 0.35s ease;
}

.TimelineEventText7117 {
  font-size: 30px;
  padding-bottom: 10px;
  text-align: justify;
}

.TimelineEventImage7117 {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

#TimelineNowIndicator7117 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: fit-content;
  padding: 5px 15px;
  border-radius: 8px;
}

#backgroundView {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 20%;
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
}

#backgroundView .star-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  display: block;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--star-shadows);
  animation: animStar var(--star-duration) linear infinite;
  will-change: transform;
}

#backgroundView .star-layer::after {
  content: "";
  position: absolute;
  display: block;
  top: 2000px;
  left: 0;
  width: inherit;
  height: inherit;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--star-shadows);
}

#backgroundView #stars {
  --star-duration: 50s;
  width: 1px;
  height: 1px;
}

#backgroundView #stars2 {
  --star-duration: 100s;
  width: 2px;
  height: 2px;
}

#backgroundView #stars3 {
  --star-duration: 150s;
  width: 3px;
  height: 3px;
}

@keyframes animStar {
  from {
    transform: translateY(0px);
  }

  to {
    transform: translateY(-2000px);
  }
}

/* --== TELLER GAME ==-- */

#tellerMenu,
#tellerRound {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#tellerDifficultyRow {
  display: flex;
  justify-content: center;
  width: 100%;
}

.tellerDiffButton {
  border: 2px solid;
  padding: 10px 20px;
  margin: 10px;
}

#tellerMenuHint {
  font-size: 25px;
  margin-top: 10px;
}

.tellerSettingText {
  display: flex;
  align-items: center;
}

#tellerTimerToggle {
  width: 100%;
}

#tellerRoundInfo {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 10px;
}

#tellerCounters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex: 1;
  gap: 20px;
}

#tellerCoins,
#tellerBills {
  position: relative;
  width: 45%;
  height: 100%;
  border: 2px solid;
}

.tellerCoin {
  position: absolute;
  border: 3px solid;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tellerCoin.quarter {
  width: 2.25em;
  height: 2.25em;
  font-size: 1.1em;
}

.tellerCoin.nickel {
  width: 1.8em;
  height: 1.8em;
  font-size: 0.85em;
}

.tellerCoin.dime,
.tellerCoin.penny {
  width: 1.7em;
  height: 1.7em;
  font-size: 0.7em;
}

.tellerBill {
  position: absolute;
  top: 56%;
  left: 38%;
  width: 8em;
  height: 4em;
  border: 3px solid;
  transform-origin: left center;
  transform: rotate(-70deg);
  transition: transform 0.25s ease;
  cursor: pointer;
}

.tellerBillCorner {
  position: absolute;
  font-size: 1.1em;
}

.tellerBillCorner.tl {
  top: 0.15em;
  left: 0.2em;
}

.tellerBillCorner.tr {
  top: 0.15em;
  right: 0.2em;
}

.tellerBillCorner.bl {
  bottom: 0.15em;
  left: 0.2em;
}

.tellerBillCorner.br {
  bottom: 0.15em;
  right: 0.2em;
}

.tellerBill.counted {
  transform: rotate(-58deg);
  cursor: default;
  pointer-events: none;
}

#tellerTotalRow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

#tellerTotalInput {
  width: 200px;
}

#tellerFeedback {
  margin-top: 10px;
  text-align: center;
}

#tellerRoundEndButtons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

#tellerRoundEndButtons .menuButton {
  width: auto;
  padding: 0 20px;
}

/* --== USER IDENTITY ==-- */

#identitySection {
  display: flex;
  margin-top: 15px;
  margin-bottom: 15px;
  align-items: center;
  justify-content: space-between;
}

#identityRow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.identityWord {
  padding: 4px 10px;
  border: 2px solid;
  text-transform: uppercase;
  cursor: pointer;
}

.identityWord.locked {
  border-color: transparent;
  cursor: default;
}

#identityConfirmArrow {
  font-size: 0.8em;
  padding: 0 10px;
  cursor: pointer;
}

#identityConfirmArrow.taken {
  cursor: not-allowed;
}

#AppreciationsContainer7117 {
  position: relative;
  z-index: 1;
  height: 75%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 10px;
  gap: 10px;
}

.AppreciationText7117 {
  display: inline-block;
  white-space: nowrap;
}

.AppreciationWord7117 {
  cursor: pointer;
}

/* --== STRESS RELIEF ==-- */

#stressContent {
  position: relative;
  align-items: center;
  overflow: hidden;
  min-height: 0;
}

.stressArrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  font-size: 40px;
  line-height: 1;
  padding: 10px 18px;
  cursor: pointer;
  z-index: 2;
}

#stressArrowLeft {
  left: 0;
}

#stressArrowRight {
  right: 0;
}

#stressCarouselViewport {
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

#stressCarouselTrack {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.stressPanel {
  position: relative;
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 100%;
}

.stressPanel > * {
  align-self: center;
}

.stressToyLabel {
  position: absolute;
  top: clamp(12px, 3vh, 36px);
  font-size: 25px;
  flex: 0 0 auto;
}

#stressCounter {
  margin-top: 10px;
  font-size: 20px;
  text-align: center;
}

#stressVolumeControl {
  display: flex;
  align-items: center;
  gap: 15px;
  width: min(70%, 650px);
  margin-top: 15px;
  font-size: 20px;
}

#stressVolumeControl label {
  flex: 0 0 auto;
}

#stressVolumeSlider {
  flex: 1;
}

#stressMusicOverrideLabel {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
}

#stressMusicOverride {
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
}

#lightSwitchPlate {
  width: clamp(100px, 12vw, 180px);
  height: clamp(160px, 25vh, 280px);
  border: 3px solid;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#lightSwitchToggle {
  width: 50%;
  height: 44%;
  border-radius: 4px;
  transition: background 0.2s ease;
}

#pullStringContainer {
  position: relative;
  width: min(82%, 700px);
  height: 78%;
  min-height: 300px;
}

#pullString {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100px;
  transform-origin: top center;
  z-index: 0;
}

#pullBallEl {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(60px, 7vw, 110px);
  height: clamp(60px, 7vw, 110px);
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
  z-index: 1;
}

#pullBallEl.dragging,
#revolverWheel.dragging {
  cursor: grabbing !important;
}

#revolverWheel {
  position: relative;
  width: clamp(180px, 24vh, 300px);
  height: clamp(180px, 24vh, 300px);
  border-radius: 50%;
  border: 4px solid;
  cursor: grab;
  touch-action: none;
}

#revolverWheel.dragging {
  cursor: grabbing;
}

.revolverChamber {
  position: absolute;
  width: clamp(32px, 5vh, 52px);
  height: clamp(32px, 5vh, 52px);
  border-radius: 50%;
  border: 2px solid;
  top: 50%;
  left: 50%;
  margin: 0;
  transform-origin: center;
}

#bubbleWrapGrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  justify-content: center;
  justify-items: center;
}

.bubble {
  width: clamp(36px, 5vw, 64px);
  height: clamp(36px, 5vw, 64px);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.bubble.popped {
  transform: scale(0.6);
  cursor: default;
}

#bubbleResetButton {
  margin-top: 10px;
  border: 2px solid;
  padding: 5px 15px;
}

#bouncyBallsPlayfield {
  position: relative;
  width: min(82%, 760px);
  height: 72%;
  min-height: 260px;
  overflow: hidden;
  border: 2px solid;
  touch-action: none;
}

#bouncyBallsControls {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

#bouncyBallsControls button {
  border: 2px solid;
  padding: 5px 15px;
  font: inherit;
  cursor: pointer;
}

.bouncyBall {
  position: absolute;
  width: clamp(34px, 5vw, 68px);
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.bouncyBall.dragging {
  cursor: grabbing;
}

#squishBallEl {
  width: clamp(140px, 18vh, 240px);
  height: clamp(140px, 18vh, 240px);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.1s ease;
  touch-action: none;
}

#squishBallEl.squished {
  transform: scale(0.75);
}

/* --== ROOM LIGHTS ==-- */

#overlay,
#background,
#latestCommit,
#contactLine,
#emergencyRestartPanel,
#musicSection,
#screenBorder1,
#monitorBackground {
  transition: opacity 0.4s ease;
}

body.lightsOff #overlay,
body.lightsOff #background,
body.lightsOff #latestCommit,
body.lightsOff #contactLine,
body.lightsOff #emergencyRestartPanel {
  opacity: 0.18;
}

body.lightsOff #screenBorder1 {
  box-shadow: none;
}

body.lightsOff #monitorBackground {
  box-shadow: none;
}

#screenBorder1,
#screenBorder2,
#screenBorder3,
#screenBorder4,
#musicBorder1,
#musicBorder2,
#musicBorder3,
#musicBorder4 {
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease;
}

.doors-silhouette-hint {
  font-size: 24px;
  margin-bottom: 12px;
  text-shadow: 0 2px 3px #000;
}

.doors-silhouette-hint:empty {
  display: none;
}

.doors-silhouette-quiet {
  position: absolute;
  top: 35%;
  width: 100%;
  text-align: center;
  font-size: clamp(48px, 9vw, 96px);
  text-shadow: 0 3px 8px #000;
}

#identityCursorSection {
  margin: 15px 0;
}

.identityCursorEditor {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.identityCursorSample {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

#identityCursorPreview {
  position: absolute;
  width: 64px;
  height: 64px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.identityCursorEditor fieldset {
  flex: 1;
  min-width: 240px;
  border: 0;
  margin: 0;
  padding: 0;
}

.identityCursorControl {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(90px, 1fr) 40px;
  gap: 8px;
  align-items: center;
  margin: 6px 0;
  font-size: 20px;
}

.identityCursorControl input,
.identityCursorControl select,
.identityCursorControl button,
#identityCursorSave {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  padding: 4px 8px;
  cursor: pointer;
  min-height: 34px;
}

.identityCursorControl input[type="color"] {
  width: 100%;
  padding: 2px;
}

.identityCursorControl select option {
  color: #fff;
  background: #111;
}

.identityCursorActions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 20px;
}

#identityCursorStatus {
  font-size: 18px;
}

#identityCursorSave:disabled {
  opacity: 0.5;
  cursor: default;
}

.identityCursorControl button:hover,
#identityCursorSave:not(:disabled):hover {
  background: #ffffff22;
}

#doorsMenuBody {
  display: grid;
  gap: 18px;
  width: 100%;
}

#doorsMenuGuide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

#doorsMenuGuide .doorsInstructions {
  display: grid;
  gap: 8px;
}

#doorsMenuTips {
  display: grid;
  align-content: start;
  gap: 8px;
  height: clamp(150px, 28vh, 300px);
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  padding-right: 8px;
}

#doorsMenuTips::-webkit-scrollbar {
  width: 12px;
}

#doorsMenuTips::-webkit-scrollbar-track {
  background: transparent;
}

#doorsMenuTips::-webkit-scrollbar-thumb {
  background: currentColor;
}

#doorsMenuTips summary {
  cursor: pointer;
  padding: 4px 8px;
}

#doorsMenuTips p {
  font-size: 22px;
  line-height: 1.3;
  padding: 8px;
}

#doorsMenuTip,
.doorsMenuTip {
  text-align: center;
}

#doorsMenuContinue {
  font-size: 1.5em;
  padding: 16px;
  justify-content: center;
}

#doorsMenu .setting {
  margin: 0;
}

#doorsMenu .settingTitle,
#doorsMenu button p {
  color: inherit;
}

#identitySection {
  gap: 12px;
  flex-wrap: wrap;
}

#identityAliasForm {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  flex: 1 1 300px;
  width: min(100%, 430px);
  min-width: 0;
  max-width: 430px;
  padding-bottom: 20px;
  overflow: visible;
}

#identityAlias {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  padding: 4px 8px;
  font: inherit;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#identityAlias:focus {
  overflow-x: auto;
  text-overflow: clip;
  outline: 1px solid currentColor;
  outline-offset: 2px;
}

#identityAliasConfirm {
  flex: 0 0 auto;
  min-width: 42px;
  font-size: 0.8em;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
}

#identityAliasConfirm:disabled {
  opacity: 0.5;
  cursor: default;
}

#identityAliasStatus {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 17px);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  line-height: 17px;
}

@media (max-width: 600px) {
  #doorsMenuGuide {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  #doorsMenuTips p {
    font-size: 18px;
  }
}

/* --== Doors Puzzle UI ==-- */

.doors-puzzle-ui {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.58);
  pointer-events: auto;
}

.doors-puzzle-ui.inactive {
  display: none !important;
}

.doors-puzzle-window {
  width: min(720px, 94%);
  max-height: 94%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0c1216;
  border: 2px solid #718895;
  box-shadow: 0 0 28px rgba(113, 136, 149, 0.2);
  color: #cbd5da;
  font-family: "3270", sans-serif;
  font-size: 20px;
}

.doors-puzzle-ui[data-puzzle-type="pipe"] .doors-puzzle-window {
  width: min(780px, 96%);
}

.doors-puzzle-header {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 7px 10px;
  border-bottom: 1px solid #465963;
  background: #172229;
  flex: 0 0 auto;
}

#doorsPuzzleClose {
  width: 36px;
  height: 36px;
  border: 1px solid #718895;
  color: #cbd5da;
  line-height: 1;
  cursor: pointer;
}

#doorsPuzzleClose:hover {
  background: #718895;
  color: #0c1216;
}

.doors-puzzle-body {
  min-height: 0;
  overflow: hidden;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
}

.doors-puzzle-solved .doors-puzzle-window {
  border-color: #7f9687;
  box-shadow: 0 0 38px rgba(127, 150, 135, 0.3);
}

.doors-puzzle-meter {
  width: min(420px, 86%);
  height: 18px;
  border: 1px solid #718895;
  background: #080d10;
  overflow: hidden;
}

#doorsPuzzleMeterFill {
  width: 0;
  height: 100%;
  background: #718895;
  transition: width 0.08s linear;
}

.doors-bridge-control-wrap {
  width: 100%;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.doors-crank-control {
  width: 190px;
  height: 190px;
  border: 2px solid #718895;
  border-radius: 50%;
  background: #111a20;
  cursor: pointer;
}

.doors-crank-control:hover {
  box-shadow: 0 0 24px rgba(113, 136, 149, 0.28);
}

.doors-crank-control:disabled {
  cursor: default;
  opacity: 0.75;
}

.doors-crank-wheel {
  position: relative;
  display: block;
  width: 112px;
  height: 112px;
  margin: auto;
  border: 8px solid #92a5ae;
  border-radius: 50%;
  transition: transform 0.08s linear;
}

.doors-crank-wheel::before,
.doors-crank-wheel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #92a5ae;
  transform: translate(-50%, -50%);
}

.doors-crank-wheel::before {
  width: 84px;
  height: 7px;
}

.doors-crank-wheel::after {
  width: 7px;
  height: 84px;
}

.doors-crank-wheel i {
  position: absolute;
  right: -25px;
  top: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #cbd5da;
  box-shadow: 0 0 10px rgba(203, 213, 218, 0.32);
}

.doors-bridge-button {
  width: 210px;
  height: 210px;
  border: 2px solid #718895;
  border-radius: 50%;
  background: #111a20;
  cursor: pointer;
}

.doors-bridge-button span {
  display: block;
  width: 120px;
  height: 120px;
  margin: auto;
  border-radius: 50%;
  background: #526c79;
  border: 5px solid #92a5ae;
  box-shadow:
    0 10px 0 #334851,
    0 0 22px rgba(113, 136, 149, 0.18);
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease;
}

.doors-bridge-button:active span {
  transform: translateY(8px);
  box-shadow:
    0 2px 0 #334851,
    0 0 28px rgba(113, 136, 149, 0.28);
}

.doors-simon-board {
  width: min(360px, 78%);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid #465963;
  background: #10181d;
}

.doors-simon-pad {
  position: relative;
  border: 2px solid color-mix(in srgb, var(--simon-color) 70%, #89969c 30%);
  background: color-mix(in srgb, var(--simon-color) 72%, #1a2226 28%);
  cursor: pointer;
  opacity: 0.78;
  transition:
    opacity 0.08s ease,
    transform 0.08s ease,
    filter 0.08s ease;
}

.doors-simon-pad:hover:not(:disabled) {
  opacity: 0.92;
}

.doors-simon-pad.active {
  opacity: 1;
  filter: brightness(1.65);
  transform: scale(0.94);
}

.doors-simon-pad:disabled {
  cursor: default;
}

.doors-wire-board {
  position: relative;
  width: min(620px, 100%);
  height: min(350px, 62vh);
  min-height: 270px;
  display: grid;
  grid-template-columns: 104px 1fr 104px;
  gap: 18px;
  align-items: center;
  user-select: none;
  touch-action: none;
}

.doors-wire-column {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
}

.doors-wire-space {
  pointer-events: none;
}

.doors-wire-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}

.doors-wire-cable {
  fill: none;
  stroke-width: 4;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.doors-wire-cable-drag {
  stroke-dasharray: 8 6;
  opacity: 0.82;
}

.doors-wire-node {
  position: relative;
  z-index: 2;
  width: 88px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #465963;
  border-radius: 0;
  background: #111a20;
  cursor: grab;
  touch-action: none;
}

.doors-wire-left:active {
  cursor: grabbing;
}

.doors-wire-right {
  cursor: default;
}

.doors-wire-node:hover {
  border-color: #8da0aa;
  background: #172229;
}

.doors-wire-node.connected {
  border-color: #718895;
}

.doors-wire-shape {
  width: 32px;
  height: 32px;
  display: block;
  background: var(--wire-color);
  pointer-events: none;
}

.doors-pipe-board {
  position: relative;
  width: min(760px, 100%);
  padding: 0 42px;
}

.doors-pipe-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.doors-pipe-tile {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid #465963;
  background: #111a20;
  overflow: hidden;
  cursor: pointer;
}

.doors-pipe-tile:hover {
  border-color: #92a5ae;
  box-shadow: inset 0 0 14px rgba(113, 136, 149, 0.12);
}

.doors-pipe-tile.blank {
  cursor: default;
  background: #0d1317;
  border-color: #2f3a40;
}

.doors-pipe-tile.blank:hover {
  border-color: #2f3a40;
  box-shadow: none;
}

.doors-pipe-tile span {
  position: absolute;
  inset: 0;
  display: block;
  transition: transform 0.14s ease;
}

.doors-pipe-tile span::before,
.doors-pipe-tile span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #849ba6;
  transform-origin: 0 50%;
  box-shadow: 0 0 6px rgba(132, 155, 166, 0.25);
}

.doors-pipe-tile span::before {
  width: 52%;
  height: 9px;
  transform: translateY(-50%);
}

.doors-pipe-tile span::after {
  width: 9px;
  height: 52%;
  transform: translateX(-50%);
}

.doors-pipe-tile.straight span::after {
  height: 100%;
  top: 0;
}

.doors-pipe-tile.straight span::before {
  display: none;
}

.doors-pipe-tile.corner span::before {
  width: 50%;
}

.doors-pipe-tile.corner span::after {
  height: 50%;
  top: 0;
}

.doors-pipe-port {
  position: absolute;
  top: 41.6667%;
  width: 42px;
  height: 0;
  border-top: 9px solid #849ba6;
  transform: translateY(-50%);
  filter: drop-shadow(0 0 5px rgba(132, 155, 166, 0.3));
}

.doors-pipe-port-in {
  left: 0;
}

.doors-pipe-port-out {
  right: 0;
}

.doors-pipe-port-in::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #849ba6;
  transform: translateY(-50%);
}

.doors-pipe-port-in::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 14px solid #cbd5da;
  transform: translateY(-50%);
}

.doors-pipe-port-out::before {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 4px solid #7f9687;
  background: #0c1216;
  transform: translateY(-50%);
}

.doors-pipe-port-out::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 14px solid #7f9687;
  transform: translate(100%, -50%);
}

@media (max-width: 600px), (max-height: 650px) {
  .doors-puzzle-ui {
    padding: 8px;
  }

  .doors-puzzle-window {
    width: min(620px, 98%);
    max-height: 98%;
  }

  .doors-puzzle-header {
    min-height: 42px;
    padding: 3px 7px;
  }

  #doorsPuzzleClose {
    width: 32px;
    height: 32px;
  }

  .doors-puzzle-body {
    padding: 10px;
  }

  .doors-bridge-control-wrap {
    min-height: 220px;
    gap: 18px;
  }

  .doors-crank-control,
  .doors-bridge-button {
    width: 145px;
    height: 145px;
  }

  .doors-crank-wheel {
    width: 84px;
    height: 84px;
  }

  .doors-bridge-button span {
    width: 82px;
    height: 82px;
  }

  .doors-simon-board {
    width: min(300px, 76%);
    gap: 9px;
    padding: 12px;
  }

  .doors-wire-board {
    grid-template-columns: 78px 1fr 78px;
    height: min(280px, 58vh);
    min-height: 210px;
    gap: 8px;
  }

  .doors-wire-node {
    width: 68px;
    height: 52px;
  }

  .doors-wire-shape {
    width: 26px;
    height: 26px;
  }

  .doors-pipe-board {
    width: min(620px, 78vh, 100%);
    padding: 0 30px;
  }

  .doors-pipe-grid {
    gap: 5px;
  }

  .doors-pipe-port {
    width: 30px;
    border-top-width: 7px;
  }
}

/* --== Mobile ==-- */
#doorsTouchControls,
#connectMobileControls {
  display: none;
}

@media (max-width: 1024px) {
  html,
  body {
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    overflow: hidden;
    font-size: clamp(17px, 4.4vw, 24px);
    overscroll-behavior: none;
  }

  #overlay,
  #custom-pointer,
  #latestCommit,
  #contactLine,
  #emergencyRestartPanel {
    display: none !important;
  }

  #perspective {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    padding: env(safe-area-inset-top) env(safe-area-inset-right)
      env(safe-area-inset-bottom) env(safe-area-inset-left);
    perspective: none;
    overflow: hidden;
  }

  #visual {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    justify-content: flex-start;
    align-items: stretch;
    transform: none !important;
  }

  #background {
    width: 100vw;
    height: 100dvh;
  }

  #screenBorder1 {
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
    border-width: 2px;
  }

  #screenBorder2,
  #musicBorder2 {
    border-width: 8px;
  }

  #screenBorder2 {
    border-bottom-width: 8px;
  }

  #screenBorder3,
  #musicBorder3 {
    border-width: 2px;
  }

  #screenBorder4,
  #musicBorder4 {
    border-width: 6px;
  }

  #monitorBackground,
  #screenBorder2,
  #screenBorder3,
  #screenBorder4 {
    min-width: 0;
    min-height: 0;
  }

  #monitorBackground {
    overflow: hidden;
  }

  #monitorDetail {
    width: 100%;
    height: 100%;
    filter: blur(3px);
  }

  #monitorBackground > .active {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 8px;
  }

  .sectionHeader {
    flex: 0 0 auto;
  }

  .titleReturn {
    gap: 8px;
    font-size: clamp(18px, 5vw, 24px);
  }

  .titleReturn > :first-child,
  .titleReturn {
    min-width: 0;
  }

  .backButton,
  .menuButton,
  button,
  a {
    touch-action: manipulation;
  }

  .backButton {
    min-height: 42px;
    padding: 5px 8px;
    flex: 0 0 auto;
  }

  .screenContent {
    min-width: 0;
    min-height: 0;
    width: 100%;
  }

  #menuScreen {
    justify-content: flex-start;
    align-items: stretch;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  #menuIntro,
  #menuButtons {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex: 0 0 auto;
  }

  #menuWelcomeText {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    line-height: 1.05;
  }

  #menuScreen #spacer {
    display: none;
  }

  #aboutMe {
    flex-direction: column-reverse;
    align-items: center;
    gap: 10px;
  }

  #aboutMe div {
    width: 100%;
  }

  #avatar {
    width: min(26vw, 110px);
    max-width: 110px;
    border-radius: 4px;
  }

  .menuButton {
    min-height: 48px;
    margin: 5px 0;
    padding: 7px 4px;
    text-align: left;
  }

  .infoText,
  li {
    font-size: clamp(15px, 3.8vw, 19px);
    line-height: 1.3;
  }

  ul {
    padding-left: 24px;
  }

  #projectsContent,
  #certificationsContent,
  #settingsContent,
  #Content7117,
  #helpContent {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }

  .project,
  .experience,
  .certification {
    margin: 10px 0;
  }

  .projectTitle,
  .certificationTitle,
  .experienceTitle {
    overflow-wrap: anywhere;
  }

  .scroll-box::-webkit-scrollbar {
    width: 8px;
  }

  .setting,
  .credit {
    width: 100%;
    min-width: 0;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
  }

  .volumeText,
  #pixelationText,
  #doorsSiteAudioOverrideText {
    width: auto;
    min-width: 120px;
    flex: 1 1 42%;
  }

  .audioSlider {
    min-width: 90px;
    flex: 1 1 45%;
  }

  .audioSlider::-webkit-slider-thumb,
  #textEditorSizeInput::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
  }

  #accessContent {
    justify-content: center;
  }

  #accessCodeInput {
    width: min(100%, 520px);
    margin: 10px 0;
    font-size: clamp(24px, 8vw, 42px);
  }

  #accessCodeConfirm {
    min-height: 46px;
  }

  #textEditorContent {
    justify-content: flex-start;
  }

  #textProperties {
    flex-direction: column;
    gap: 8px;
  }

  #colorTextEditor,
  #sizeTextEditor {
    width: 100%;
  }

  #textEditorText {
    min-height: 0;
    flex: 1;
    font-size: clamp(22px, 6vw, 38px);
  }

  #identitySection,
  #identityRow,
  #identityAliasForm,
  .identityCursorEditor,
  .identityCursorActions {
    width: 100%;
  }

  #identitySection {
    align-items: flex-start;
    flex-direction: column;
  }

  #identityAliasForm {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
  }

  #identityRow {
    flex-wrap: wrap;
  }

  .identityCursorEditor {
    gap: 10px;
  }

  .identityCursorSample {
    width: 72px;
    height: 72px;
  }

  #identityCursorPreview {
    width: 52px;
    height: 52px;
  }

  .identityCursorEditor fieldset {
    min-width: 0;
    width: 100%;
  }

  .identityCursorControl {
    grid-template-columns: minmax(78px, 1fr) minmax(74px, 1fr) 42px;
    font-size: 16px;
  }

  #stressContent {
    padding-inline: 4px;
  }

  .stressArrow {
    top: 50%;
    font-size: 30px;
    padding: 12px 8px;
  }

  #stressCarouselViewport {
    width: calc(100% - 42px);
  }

  #stressVolumeControl {
    width: 100%;
    gap: 6px;
    font-size: 14px;
    flex-wrap: wrap;
  }

  #pullStringContainer,
  #bouncyBallsPlayfield {
    width: 88%;
  }

  #menuWelcomeText {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    line-height: 1.2;
  }

  #Content7117 {
    align-items: stretch;
    padding-right: 2px;
  }

  #TimelineSetup7117 {
    display: block;
    padding-left: 44px;
  }

  #TimelineLeft7117 {
    display: none;
  }

  #TimelineRight7117 {
    position: relative;
    width: 100%;
    height: 100%;
  }

  #TimelineCenter7117 {
    position: absolute;
    top: 0;
    left: 18px;
    width: 2px;
    margin: 0;
  }

  .TimelineIndicator7117 {
    left: -5px;
    width: 12px;
    height: 2px;
  }

  .TimelineEventHeader7117 {
    min-height: 44px;
    padding: 6px 30px 6px 6px;
    font-size: 16px;
  }

  .TimelineDateText7117 {
    font-size: clamp(18px, 5vw, 24px);
    text-align: left;
  }

  .TimelineArrow7117,
  .side-left .TimelineArrow7117 {
    left: auto;
    right: 6px;
  }

  .side-left .TimelineArrow7117 {
    transform: none;
  }

  .TimelineEvent7117.open.side-left .TimelineArrow7117 {
    transform: rotate(-90deg);
  }

  .TimelineEventTitle7117 {
    font-size: clamp(18px, 5vw, 24px);
  }

  .TimelineEventText7117 {
    font-size: clamp(15px, 4vw, 19px);
    line-height: 1.35;
    text-align: left;
  }

  .TimelineEventBody7117 {
    padding: 0 6px;
  }

  #TimelineNowIndicator7117 {
    left: 18px;
    padding: 3px 5px;
    font-size: 11px;
  }

  #AppreciationsContainer7117 {
    height: auto;
    min-height: 55%;
    flex: 0 0 auto;
    overflow-x: hidden;
  }

  #stressContent {
    padding-inline: 2px;
  }

  .stressArrow {
    width: 44px;
    min-height: 54px;
    top: 48%;
    padding: 4px;
    font-size: 26px;
    touch-action: manipulation;
  }

  #stressCarouselViewport {
    width: calc(100% - 50px);
  }

  .stressPanel {
    padding: 34px 2px 2px;
  }

  .stressToyLabel {
    top: 3px;
    font-size: 16px;
  }

  #lightSwitchPlate {
    width: min(24vw, 82px);
    height: min(36vw, 126px);
    min-width: 68px;
    min-height: 100px;
  }

  #pullStringContainer {
    width: 88%;
    height: min(52vw, 205px);
    min-height: 145px;
  }

  #pullBallEl {
    width: clamp(50px, 16vw, 66px);
    height: clamp(50px, 16vw, 66px);
  }

  #revolverWheel {
    width: min(46vw, 176px);
    height: min(46vw, 176px);
  }

  .revolverChamber {
    width: clamp(28px, 9vw, 38px);
    height: clamp(28px, 9vw, 38px);
  }

  #bubbleWrapGrid {
    gap: 5px;
  }

  .bubble {
    width: clamp(32px, 10vw, 44px);
    height: clamp(32px, 10vw, 44px);
  }

  #bubbleResetButton,
  #bouncyBallsControls button {
    min-height: 42px;
    padding: 5px 10px;
    font-size: 14px;
  }

  #bouncyBallsPlayfield {
    width: 90%;
    height: min(48vw, 190px);
    min-height: 135px;
  }

  #squishBallEl {
    width: min(42vw, 155px);
    height: min(42vw, 155px);
  }

  #stressCounter {
    margin-top: 4px;
    font-size: 14px;
  }

  #stressVolumeControl {
    width: 100%;
    margin-top: 4px;
    gap: 4px 6px;
    font-size: 12px;
    flex-wrap: wrap;
  }

  #stressVolumeSlider {
    min-width: 95px;
  }

  #musicSection {
    width: 100%;
    flex: 0 0 auto;
    min-width: 0;
  }

  #musicTopBorder {
    border-width: 8px;
  }

  #musicBorder1 {
    width: 100%;
    border-width: 2px;
  }

  #musicPlayer {
    min-width: 0;
    padding: 4px 6px;
    gap: 4px 8px;
    flex-wrap: wrap;
    font-size: 13px;
  }

  #musicControls {
    flex: 1 1 auto;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
  }

  #musicControls p {
    display: none;
  }

  #musicControls button,
  #musicCreditButton {
    min-width: 38px;
    min-height: 38px;
    margin: 0;
  }

  #trackInfo {
    min-width: 0;
    flex: 1 1 45%;
    overflow: hidden;
    justify-content: flex-start;
  }

  #trackInfo p {
    margin: 0 3px;
    min-width: 0;
  }

  #currentTitle,
  #currentArtist {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #doorsScreen.active,
  #connectScreen.active {
    padding-bottom: 0;
  }

  #doorsContent {
    flex: 1;
    min-height: 0;
  }

  #doorsCanvas {
    touch-action: none;
  }

  #doorsHud {
    top: 8px;
    bottom: auto;
    left: 8px;
    font-size: 18px;
  }

  #doorsHealth {
    top: 8px;
    left: auto;
    right: 8px;
    font-size: 18px;
  }

  #doorsExitIndicator {
    top: 34px;
    right: 8px;
    font-size: 24px;
  }

  #doorsInteractionIndicator {
    bottom: 150px;
    font-size: 17px;
  }

  #doorsMenu {
    z-index: 12;
    font-size: 18px;
    padding: 10px;
  }

  #doorsMenuContinue {
    min-height: 48px;
  }

  #doorsSilhouetteUI {
    z-index: 10;
  }

  .doors-puzzle-ui {
    z-index: 11;
  }

  #doorsTouchControls {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 6;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
  }

  #doorsTouchControls button,
  #doorsTouchControls input {
    font: inherit;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.7);
    min-height: 42px;
    border-radius: 4px;
    pointer-events: auto;
    touch-action: none;
  }

  #doorsTouchControls button {
    min-width: 44px;
    padding: 5px 8px;
  }

  #doorsTouchControls button.pressed,
  #doorsTouchControls button:active {
    background: rgba(255, 255, 255, 0.25);
  }

  .doorsTouchJoystick {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    pointer-events: auto;
    touch-action: none;
  }

  .doorsTouchJoystickBase {
    position: relative;
    width: 116px;
    height: 116px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.42);
    box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.08);
    pointer-events: none;
  }

  .doorsTouchJoystickBase::before,
  .doorsTouchJoystickBase::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: rgba(255, 255, 255, 0.14);
    transform: translate(-50%, -50%);
  }

  .doorsTouchJoystickBase::before {
    width: 1px;
    height: 76%;
  }

  .doorsTouchJoystickBase::after {
    width: 76%;
    height: 1px;
  }

  .doorsTouchJoystickKnob {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    will-change: transform;
    pointer-events: none;
  }

  .doorsTouchActions {
    display: grid;
    grid-template-columns: repeat(2, minmax(58px, auto));
    gap: 4px;
    pointer-events: none;
  }

  .doorsTouchChat {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    pointer-events: none;
  }

  #doorsMobileChatInput {
    width: min(34vw, 150px);
    padding: 5px 7px;
    touch-action: manipulation !important;
  }

  body:has(#doorsScreen.active) #musicSection,
  body:has(#connectScreen.active) #musicSection {
    display: none;
  }
}

@media (max-width: 600px) {
  .doorsTouchChat {
    bottom: 94px;
  }

  .doorsTouchActions {
    grid-template-columns: 1fr;
  }

  #doorsInteractionIndicator {
    bottom: 194px;
  }
}

@media (max-width: 1024px) and (orientation: landscape) {
  html,
  body {
    font-size: 16px;
  }

  #avatar {
    width: 70px;
  }

  #aboutMe {
    flex-direction: row;
  }

  .infoText,
  li {
    font-size: 14px;
  }

  .stressPanel {
    padding-top: 24px;
  }

  .stressToyLabel {
    font-size: 13px;
  }

  #lightSwitchPlate {
    width: 60px;
    height: 88px;
    min-width: 60px;
    min-height: 88px;
  }

  #pullStringContainer {
    height: 120px;
    min-height: 120px;
  }

  #revolverWheel {
    width: 112px;
    height: 112px;
  }

  #bouncyBallsPlayfield {
    height: 110px;
    min-height: 110px;
  }

  #squishBallEl {
    width: 100px;
    height: 100px;
  }

  #stressVolumeControl {
    margin-top: 2px;
  }

  #doorsInteractionIndicator {
    bottom: 100px;
  }

  .doorsTouchChat {
    bottom: 0;
  }
}

@media (max-width: 600px) {
  .doorsTouchActions {
    grid-template-columns: repeat(2, minmax(58px, auto));
  }

  .doorsTouchChat {
    bottom: calc(100% + 6px);
  }

  #doorsInteractionIndicator {
    bottom: 150px;
  }
}

@media (max-width: 340px) {
  #doorsHeader .titleReturn {
    font-size: 14px;
    white-space: nowrap;
  }

  #doorsHeader .backButton {
    min-height: 38px;
    padding: 3px 4px;
    font-size: 14px;
  }

  #doorsTouchControls {
    font-size: 14px;
  }

  #doorsTouchControls button {
    min-width: 40px;
    min-height: 40px;
    padding: 4px 5px;
  }

  .doorsTouchJoystick {
    width: 104px;
    height: 104px;
  }

  .doorsTouchJoystickBase {
    width: 100px;
    height: 100px;
  }

  .doorsTouchJoystickKnob {
    width: 40px;
    height: 40px;
  }

  .doorsTouchActions {
    grid-template-columns: repeat(2, 50px);
    font-size: 12px;
  }

  #doorsMobileChatInput {
    width: 108px;
  }
}

/* --== Mobile Touch Fixes ==-- */
@media (max-width: 1024px) {
  #doorsScreen.active,
  #doorsScreen.active *,
  #doorsTouchControls,
  #doorsTouchControls button,
  .doorsTouchJoystick,
  .doorsTouchJoystickBase,
  .doorsTouchJoystickKnob,
  .doorsTouchActions {
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent;
  }

  #doorsScreen.active #doorsContent,
  #doorsScreen.active #doorsCanvas {
    touch-action: none;
  }

  #doorsScreen.active input,
  #doorsScreen.active textarea,
  #doorsScreen.active [contenteditable="true"] {
    -webkit-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default;
  }

  #doorsTouchControls,
  #doorsTouchControls button,
  .doorsTouchJoystick,
  .doorsTouchJoystickBase,
  .doorsTouchJoystickKnob,
  .doorsTouchActions {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }

  #doorsTouchControls button {
    -webkit-tap-highlight-color: transparent;
  }
}

/* --== Mobile Teller ==-- */
@media (max-width: 1024px) {
  #tellerContent {
    min-height: 0;
    overflow: hidden;
    justify-content: flex-start;
  }

  #tellerMenu,
  #tellerRound {
    min-height: 0;
    justify-content: flex-start;
    padding: 8px 2px 2px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  #tellerMenu {
    gap: 8px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #tellerDifficultyRow {
    gap: 5px;
  }

  .tellerDiffButton {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 6px 2px;
    font-size: clamp(14px, 4vw, 18px);
  }

  #tellerMenuHint {
    margin: 0;
    font-size: 16px;
    text-align: center;
  }

  #tellerTimerToggle,
  #tellerStartButton {
    margin: 4px 0;
    min-height: 46px;
  }

  #tellerStartButton {
    text-align: center;
  }

  #tellerRoundInfo {
    flex: 0 0 auto;
    margin-bottom: 6px;
    font-size: clamp(14px, 4vw, 18px);
  }

  #tellerCounters {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    flex-direction: column;
    gap: 7px;
  }

  #tellerCoins,
  #tellerBills {
    flex: 1 1 0;
    width: 100%;
    min-height: 120px;
    overflow: hidden;
    border-width: 1px;
    font-size: clamp(13px, 3.6vw, 18px);
  }

  .tellerBill {
    top: 50%;
    left: 50%;
    width: min(44vw, 150px);
    height: min(22vw, 75px);
    border-width: 2px;
    transform: translate(-50%, -50%) rotate(-70deg);
  }

  .tellerBill.counted {
    transform: translate(-50%, -50%) rotate(-58deg);
  }

  #tellerTotalRow {
    flex: 0 0 auto;
    width: 100%;
    gap: 6px;
    margin-top: 6px;
  }

  #tellerTotalInput {
    width: min(48vw, 180px);
    min-width: 0;
    font-size: 16px;
  }

  #tellerFeedback {
    margin-top: 5px;
    font-size: 16px;
  }

  #tellerRoundEndButtons {
    flex: 0 0 auto;
    width: 100%;
    gap: 6px;
    margin-top: 5px;
  }

  #tellerRoundEndButtons .menuButton {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding: 5px 4px;
    text-align: center;
  }
}

@media (max-width: 1024px) and (orientation: landscape) {
  #tellerMenu,
  #tellerRound {
    padding-top: 2px;
  }

  #tellerCounters {
    flex-direction: row;
  }

  #tellerCoins,
  #tellerBills {
    width: 50%;
    min-height: 0;
  }

  .tellerBill {
    width: min(22vw, 130px);
    height: min(11vw, 65px);
  }
}

/* --== Mobile Audio / 7117 Refinements ==-- */
#musicTitleLink {
  color: inherit;
  text-decoration: none;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .mobileAudioSetting {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 10px;
  }

  .mobileAudioSetting .volumeText {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    text-align: left;
  }

  .mobileAudioSetting output {
    grid-column: 2;
    grid-row: 1;
    width: auto !important;
    margin: 0 !important;
    text-align: right;
    white-space: nowrap;
  }

  .mobileAudioSetting .audioSlider {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    height: 12px;
    margin: 9px 0 5px;
    flex: none;
    touch-action: none;
  }

  .mobileAudioSetting .audioSlider::-webkit-slider-thumb,
  #stressVolumeSlider::-webkit-slider-thumb {
    width: 30px;
    height: 30px;
  }

  #stressVolumeControl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 8px;
  }

  #stressVolumeControl > label[for="stressVolumeSlider"] {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
  }

  #stressVolumeValue {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }

  #stressVolumeSlider {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    margin: 8px 0 4px;
    touch-action: none;
  }

  #stressMusicOverrideLabel {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: center;
  }

  #TimelineSetup7117 {
    padding-left: 42px;
  }

  #TimelineRight7117 {
    overflow: visible;
  }

  .TimelineEvent7117 {
    left: 0;
    width: 100%;
    z-index: 2;
    background: rgba(0, 0, 0, 0.58);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .TimelineEvent7117.open {
    z-index: 50;
    background: rgba(0, 0, 0, 0.72);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .TimelineEventHeader7117,
  .TimelineEventBody7117 {
    width: 100%;
  }

  #TimelineCenter7117 {
    z-index: 4;
  }

  #TimelineNowIndicator7117 {
    z-index: 5;
  }

  #musicPlayer {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    padding: 3px 5px;
    gap: 2px;
    font-size: 15px;
    line-height: 1.05;
  }

  #trackInfo {
    order: 1;
    width: 100%;
    max-width: 100%;
    flex: none;
    justify-content: center;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    white-space: nowrap;
  }

  #musicTitleLink {
    display: block;
    min-width: 0;
    max-width: 58%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: auto;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
  }

  #currentTitle {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #musicByLabel,
  #currentArtist {
    flex: 0 1 auto;
    margin: 0 !important;
    min-width: 0;
  }

  #currentArtist {
    max-width: 32%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #musicCreditButton {
    display: none;
  }

  #musicControls {
    order: 2;
    width: 100%;
    flex: none;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }

  #musicControls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    min-height: 30px;
    margin: 0;
    padding: 3px 9px;
    line-height: 1;
    white-space: nowrap;
  }
}

/* --== Doors Items ==-- */
#doorsItemBar {
  position: absolute;
  top: 50%;
  right: 12px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transform: translateY(-50%);
  pointer-events: auto;
}

.doors-item-slot {
  position: relative;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid #7f8a91;
  background: #070a0dcc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.doors-item-slot.empty {
  opacity: 0.28;
  cursor: default;
}

.doors-item-slot.equipped {
  border-color: #ffffff;
  box-shadow: 0 0 10px #b0e0ffaa;
}

.doors-item-slot:not(.empty):hover {
  background: #101820ee;
}

.doors-item-slot:not(.empty)::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 9px);
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 7px;
  border: 1px solid #7f8a91;
  background: #050708ee;
  color: #ffffff;
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s linear;
}

.doors-item-slot:not(.empty):hover::after {
  opacity: 1;
}

.doors-item-count {
  position: absolute;
  right: 3px;
  bottom: 1px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1;
  text-shadow: 0 0 3px #000000;
}

.doors-item-icon {
  --item-color: #b9dfff;
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
}

.doors-item-icon-crucifix::before,
.doors-item-icon-crucifix::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #70492d;
  transform: translate(-50%, -50%);
}

.doors-item-icon-crucifix::before {
  width: 7px;
  height: 28px;
}

.doors-item-icon-crucifix::after {
  width: 22px;
  height: 7px;
  top: 43%;
}

.doors-item-icon-bandaid::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 10px;
  height: 10px;
  background: #d5b68b;
  box-shadow:
    inset 9px 0 #b7936d,
    inset -9px 0 #b7936d;
}

.doors-item-icon-lighter::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 16px;
  height: 24px;
  background: #65462d;
}

.doors-item-icon-lighter::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9b8d78;
}

.doors-item-icon-lighter.lit::after {
  background: #ffd783;
  box-shadow: 0 0 10px #ffd783;
}

.doors-item-icon-glowstick::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 1px;
  width: 6px;
  height: 28px;
  background: var(--item-color);
  box-shadow: 0 0 10px var(--item-color);
}

.doors-item-icon-candle::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d6b98a;
}

.doors-item-icon-candle::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4e5c66;
}

.doors-item-icon-candle.lit::after {
  background: #7bc8ff;
  box-shadow: 0 0 10px #7bc8ff;
}

.doors-item-icon-stim::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 26px;
  height: 10px;
  background: #45494d;
}

.doors-item-icon-stim::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 13px;
  width: 12px;
  height: 4px;
  background: #7acb87;
}

.doors-item-icon-lockpick::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 1px;
  width: 4px;
  height: 28px;
  background: #a9adb2;
}

.doors-item-icon-gun::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 24px;
  height: 9px;
  background: #383d43;
  box-shadow: 5px 8px 0 -2px #262a2f;
}

.doors-item-icon-gun::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 11px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ff5d5d;
  box-shadow: 0 0 7px #ff3434;
}

@media (max-width: 600px) {
  #doorsItemBar {
    right: 6px;
    gap: 4px;
  }

  .doors-item-slot {
    width: 40px;
    height: 40px;
  }

  .doors-item-icon {
    transform: scale(0.78);
  }

  .doors-item-slot:not(.empty)::after {
    display: none;
  }
}

/* --== Donate Popup ==-- */
#donatePopupBackdrop {
  position: absolute;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}

#donatePopup {
  width: fit-content;
  height: fit-content;
  overflow-y: auto;
  overflow-x: hidden;
  border: 2px solid currentColor;
  background: #050505;
  padding: 18px;
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.85);
}

.donatePopupHeader {
  margin-bottom: 10px;
}

.donatePopupPrompt {
  margin: 14px 0;
}

#donatePopupOptions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

#donatePopupOptions .menuButton {
  min-width: 0;
  margin: 0;
  padding: 8px;
  text-align: left;
}

@media (max-width: 600px) {
  #donatePopupBackdrop {
    padding: 12px;
  }

  #donatePopup {
    width: min(100%, 520px);
    max-height: calc(100% - 24px);
    padding: 12px;
  }

  #donatePopupOptions {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
