    * {
      box-sizing: border-box;
    }
    body {
      margin: 0;
background: #241a14;
color: #ffe8d3;
      font:
        15px system-ui,
        sans-serif;
    }
    header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px 5%;
      border-bottom: 1px solid #ffffff20;
    }
    h1,
    h2,
    p {
      margin: 0;
    }
    h1 {
      font-size: 24px;
    }
    small {
color: #e5b99a;
    }
/* Rat Society header logo */
#siteLogo {
  display: block;
  width: 440px;
  max-width: 100%;
  height: auto;
margin: 0 0 0 -35px;
}

/* Align the logo to the left */
header > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
main {
  max-width: 1800px;
  margin: auto;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 18px;
}
    .panel {
background: #38291f;
border: 1px solid #80583c;
      border-radius: 18px;
      padding: 18px;
    }
    button,
    input {
      font: inherit;
      border-radius: 9px;
      border: 1px solid #ffffff25;
      padding: 11px;
background: #2b201a;
      color: inherit;
    }
/* Rat Society orange input fields */
input {
  background: #2b201a;
  border: 1px solid #966746;
  color: #ffe8d3;
}
    button {
      cursor: pointer;
background: #f2a65a;
      color: #332b19;
      font-weight: 700;
    }
    button:hover {
      filter: brightness(1.12);
    }
    canvas {
      width: 100%;
      display: block;
      border-radius: 12px;
      touch-action: none;
background: #c88e62;
    }
    #chat {
      height: 300px;
      overflow: auto;
      overflow-wrap: anywhere;
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin: 16px 0;
    }
    #chat b {
      color: #f4cd79;
    }
    #chat p {
      font-size: 14px;
    }
    form {
      display: flex;
      gap: 6px;
    }
    form input {
      min-width: 0;
      flex: 1;
    }
    .bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 14px;
    }
    .emotes {
      display: flex;
      gap: 7px;
      flex-wrap: wrap;
      margin-top: 14px;
    }
    .emotes button {
background: #80583c;
      color: white;
      font-size: 20px;
      padding: 7px 14px;
    }
    #join {
      position: fixed;
      inset: 0;
background: #241a14ee;
      display: grid;
      place-items: center;
      z-index: 4;
      padding: 20px;
    }
    #join .panel {
      width: min(420px, 100%);
      padding: 32px;
      display: grid;
      gap: 15px;
    }
    #join label {
      display: grid;
      gap: 6px;
    }
    #join input[type="color"] {
      width: 100%;
      height: 45px;
    }
    #status {
      color: #f4cd79;
    }
    #players {
      margin-top: 12px;
      display: grid;
      gap: 6px;
      max-height: 180px;
      overflow: auto;
    }
    footer {
      padding: 0 24px 20px;
      text-align: center;
color: #e5b99a;
    }
    @media (max-width: 800px) {
      main {
        grid-template-columns: 1fr;
        padding: 12px;
      }
      #chat {
        height: 180px;
      }
    }
    select {
      font: inherit;
background: #2b201a;
      color: inherit;
      padding: 9px;
      border-radius: 8px;
    }
    dialog {
color: #ffe8d3;
background: #38291f;
      border: 1px solid #ffffff30;
      border-radius: 16px;
      width: min(440px, 95vw);
    }
    dialog::backdrop {
      background: #0009;
    }
    dialog label {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin: 12px 0;
    }
    #furniture button {
      font-size: 23px;
      padding: 5px 9px;
    }
    #tools {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin: 12px 0;
    }
    #players button {
      font-size: 12px;
      padding: 4px 8px;
    }


/* ==================================
   CANE'S THREADS CLOTHING SHOP
   ================================== */

.clothing-shop {
  width: min(95vw, 1000px);
  max-width: 1000px;
  max-height: 90vh;
  padding: 0;
  border: 3px solid #8b6546;
  border-radius: 16px;
  background: #f8efd9;
  color: #493829;
  overflow: hidden;
}

.clothing-shop::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.shop-layout {
  display: grid;
  grid-template-columns: 60% 40%;
  min-height: 500px;
  max-height: 85vh;
}

/* Dressing room */
.shop-preview {
  position: relative;
  overflow: hidden;
  background: #e9d5b3;
}

.shop-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-title {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background: #714c38;
  color: white;
  border-radius: 12px;
  font-size: 22px;
  font-weight: bold;
  white-space: nowrap;
}

/* Clothing catalog */
.shop-catalog {
  padding: 22px;
  overflow-y: auto;
  background: #fff6e6;
}

.shop-catalog h2 {
  margin: 0 0 15px;
  color: #714c38;
}


#clothingItems {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
grid-template-rows: repeat(3, 30%);
  gap: 8px;
  width: 100%;
}

#clothingItems .clothing-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
  padding: 6px;
}

#clothingItems .clothing-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}


.clothing-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 2px solid #e0cba9;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
}

.clothing-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.clothing-item-info {
  flex: 1;
}

.clothing-item button,
#closeClothingShop {
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: #8b6546;
  color: white;
  cursor: pointer;
}

.clothing-item button:hover,
#closeClothingShop:hover {
  background: #684630;
}

/* Smaller screens */
@media (max-width: 700px) {
  .shop-layout {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .shop-preview {
    height: 300px;
  }

  .shop-catalog {
    max-height: 450px;
  }
}
/* Shop exit button */

#exitShop:not([hidden]) {
  position: absolute;
  bottom: 3%;
  left: 3%;
  z-index: 110;
}


#exitShop:hover {
background: #f2a65a;
}

/* Cane's Threads — in-game clothing catalog */
body.in-clothing-shop .shop-catalog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 340px;
  height: 460px;

  padding: 95px 28px 28px 28px;
  overflow-y: auto;

  background: url("/assets/ui/clothing-catalog.png") center center / 100% 100% no-repeat;
  border: none;
  border-radius: 0;
  box-shadow: none;
  z-index: 20;
}

/* Hide the catalog outside Cane's Threads */
#dressingRoomCatalog {
  display: none;
}

/* Show the catalog inside Cane's Threads */
body.in-clothing-shop #dressingRoomCatalog {
  display: block;
}

/* Apply custom artwork to the clothing catalog */
body.in-clothing-shop #dressingRoomCatalog {

  background-position: center;
background-size: contain;
  background-repeat: no-repeat;
}

/* Hide catalog controls outside Cane's Threads */
#dressingRoomCatalog {
  display: none;
}

/* Show clothing controls inside Cane's Threads */
body.in-clothing-shop #dressingRoomCatalog {
  display: block;
  position: absolute;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  z-index: 20;
}

/* Hide duplicate controls from the old catalog */
body.in-clothing-shop #dressingRoomCatalog > h2,
body.in-clothing-shop #dressingRoomCatalog > p,
body.in-clothing-shop #closeClothingShop {
  display: none;
}

/* Keep the canvas and clothing catalog aligned */
#gameCanvasWrapper {
  position: relative;
  width: 100%;
  line-height: 0;
}

/* Keep the canvas responsive */
#gameCanvasWrapper #world {
  display: block;
  width: 100%;
  height: auto;
}

/* Position catalog controls over the artwork */
body.in-clothing-shop #dressingRoomCatalog {
  position: absolute;
  top: 22%;
  left: 47%;
  width: 32%;
  height: 66%;
  transform: none;

  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
  z-index: 10;

  line-height: normal;
}

/* Keep clothing controls aligned with the game canvas */
body.in-clothing-shop #gameCanvasWrapper #dressingRoomCatalog {
  position: absolute;
  top: 22%;
  left: 47%;
  width: 32%;
  height: 66%;

  /* Override old popup styling */
  min-height: 0;
  max-height: none;
  min-width: 0;
  transform: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}

/* Cane's Threads — clean clothing slots */
body.in-clothing-shop #clothingItems .clothing-item {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 2%;
  min-width: 0;
}

/* Hide clothing names and ownership/price text */
body.in-clothing-shop .clothing-item-info {
  display: none;
}

/* Make thumbnails resize with their grid cells */
body.in-clothing-shop #clothingItems .clothing-item img {
  display: block;
width: 95%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}



/* Fine-tune clothing grid positioning */



body.in-clothing-shop #clothingItems {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 0;
  row-gap: 0;

  /* Bring clothing thumbnails closer together */
  width: 92%;

  /* Move 1% to the right */
transform: translate(2%, -5%);
}




/* Make clothing thumbnails slightly bigger */

body.in-clothing-shop #clothingItems .clothing-item img {
  display: block;
  width: 115%;
  height: auto;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
}


/* Reduce spacing inside each clothing slot */
body.in-clothing-shop #clothingItems .clothing-item {
  padding: 0;
  gap: 2px;
}


/* Hide original buttons inside Cane's Threads */

/* Scale button text with the game canvas */
#gameCanvasWrapper {
  container-type: inline-size;
}

/* Custom Buy/Equip button text */
body.in-clothing-shop #clothingItems .clothing-item button {
  visibility: visible;
  display: block;

  background: transparent;
  border: none;
  box-shadow: none;

  color: #ffffff;
  font-size: 1.6cqw;
  font-weight: bold;
  text-align: center;

width: 70%;
min-width: 0;
padding: 0;
margin: 0 auto;

  cursor: pointer;
}

/* Prevent old hover backgrounds */
body.in-clothing-shop #clothingItems .clothing-item button:hover {
  background: transparent;
}


/* Shopping District zoom controls */
#zoomControls {
  position: absolute;
  right: 2%;
  bottom: 3%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 15;
}

/* Hide zoom controls inside Cane's Threads */
body.in-clothing-shop #zoomControls {
  display: none;
}

/* Zoom button appearance */
#zoomControls button {
  width: 3.5cqw;
  height: 3.5cqw;
  min-width: 24px;
  min-height: 24px;

  background: #fff6e6;
  color: #493525;
  border: 2px solid #a98562;
  border-radius: 8px;

  font-size: 2cqw;
  font-weight: bold;
  cursor: pointer;
}

/* Button hover effect */
#zoomControls button:hover {
  background: #f5d7a6;
}


/* ==================================
   CHEESE PLAZA — PROFILE WINDOW
   ================================== */

#closet {
  width: min(440px, 90vw);
  max-height: 85vh;
  padding: 28px;

  background: #fff8ee;
border: 3px solid #d7a36f;
  border-radius: 22px;

color: #76533a;
box-shadow: 0 12px 40px rgba(145, 80, 32, 0.25);
}

/* Dim the game behind the profile */
#closet::backdrop {
  background: rgba(35, 20, 50, 0.55);
  backdrop-filter: blur(4px);
}

/* Profile heading */
#closet h2 {
color: #76533a;
  font-size: 26px;
  text-align: center;
  margin: 0 0 20px;
}

/* Form labels */
#closet label {
color: #76533a;
  font-weight: 600;
}

/* Profile inputs */
#closet select,
#closet input {
  background: #ffffff;
color: #76533a;
border: 2px solid #d7a36f;
  border-radius: 10px;
  padding: 9px;
}

/* Profile buttons */
#closet button {
  background: #7950a3;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 11px 18px;
  font-weight: bold;
  cursor: pointer;
}

#closet button:hover {
  background: #9469ba;
}

/* =====================================
   CHEESE PLAZA — PROFILE LAYOUT
   ===================================== */

/* Make Profile wider for two columns */
#closet {
  width: min(700px, 95vw);
  max-width: 700px;
  box-sizing: border-box;
}

/* Mouse preview + biography side by side */
#closet .profile-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin: 20px 0;
}

/* Mouse preview container */
#closet .profile-avatar {
  min-width: 0;
}

#closet .profile-avatar h3,
#closet .profile-biography h3 {
  color: #7950a3;
  margin: 0 0 12px;
  font-size: 18px;
}

/* Mouse preview canvas */
#closet #preview {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

/* Biography area */
#closet .profile-biography {
  min-width: 0;
}

/* Biography text box */
#closet #profileBio {
  width: 100%;
  height: 170px;
  box-sizing: border-box;
  resize: vertical;

  padding: 12px;
  background: white;
  color: #493a54;
  border: 2px solid #e3d0ee;
  border-radius: 12px;

  font: inherit;
  line-height: 1.5;
}

/* Character counter */
#closet .profile-biography small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #8c769c;
}

/* Stack columns on narrow screens */
@media (max-width: 520px) {
  #closet .profile-main {
    grid-template-columns: 1fr;
  }
}

/* =====================================
   CHEESE PLAZA — CHARACTER-FOCUSED PROFILE
   ===================================== */

/* Wider, more spacious profile window */
#closet {
  width: min(760px, 95vw);
  max-width: 760px;
  padding: 30px;
}

/* Make the mouse preview the main focus */
#closet .profile-main {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 18px;
  align-items: stretch;
  margin: 24px 0;
}

/* Character showcase */
#closet .profile-avatar {
  background: linear-gradient(160deg, #e9d6f5, #fff0d9);
  border: 2px solid #d6b6e8;
  border-radius: 22px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(100, 65, 120, 0.12);
}

#closet .profile-avatar h3 {
  color: #7950a3;
  font-size: 19px;
  margin: 0 0 14px;
}

/* Keep mouse art proportional */
#closet #preview {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  image-rendering: auto;
}

/* Biography card */
#closet .profile-biography {
  background: #ffffff;
  border: 2px solid #ead8f2;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 5px 15px rgba(100, 65, 120, 0.07);
}

#closet .profile-biography h3 {
  color: #7950a3;
  font-size: 19px;
  margin: 0 0 14px;
}

/* Biography editor */
#closet #profileBio {
  width: 100%;
  height: 185px;
  box-sizing: border-box;
  padding: 14px;

  background: #fffbf6;
  color: #493a54;
  border: 1px solid #ddc8e9;
  border-radius: 12px;

  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

/* Responsive layout */
@media (max-width: 520px) {
  #closet .profile-main {
    grid-template-columns: 1fr;
  }
}

/* Compact Profile customization controls */

/* Reduce spacing between customization rows */
#closet > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  margin: 4px 0;
  padding: 2px 0;

  font-size: 13px;
}

/* Make dropdowns smaller */
#closet > label select {
  width: 125px;
  padding: 5px 8px;
  font-size: 13px;
  border-radius: 8px;
}

/* Compact fur color picker */
#closet > label input[type="color"] {
  width: 45px;
  height: 30px;
  padding: 2px;
  cursor: pointer;
}

/* Reduce space above the character showcase */
#closet .profile-main {
  margin-top: 12px;
}

/* =========================================
   CHEESE PLAZA — PROFILE CUSTOMIZATION CARDS
   ========================================= */

/* Each customization option becomes a card */
#closet > label {
  display: flex;
  align-items: center;
  justify-content: space-between;

  background: #f2e7f8;
  border: 1px solid #dec6ed;
  border-radius: 12px;

  padding: 9px 14px;
  margin: 6px 0;
  gap: 12px;

  color: #7950a3;
  font-size: 14px;
  font-weight: 700;
}

/* Styled dropdown controls */
#closet > label select {
  width: 150px;
  min-height: 36px;
  padding: 7px 10px;

  background: #fffdf9;
  color: #604375;
  border: 1px solid #cfafe4;
  border-radius: 10px;

  font-size: 13px;
  font-weight: 600;
  cursor: pointer;

  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Highlight the selected control */
#closet > label select:focus {
  outline: none;
  border-color: #9870c0;
box-shadow: 0 0 0 3px rgba(242, 166, 90, 0.18);
}

/* Fur color picker */
#closet > label input[type="color"] {
  width: 48px;
  height: 34px;
  padding: 3px;

  background: #fffdf9;
  border: 1px solid #cfafe4;
  border-radius: 9px;
  cursor: pointer;
}


/* Profile customization controls below character */
#closet .profile-customization {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

#closet .profile-customization label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  background: #f2e7f8;
  border: 1px solid #dec6ed;
  border-radius: 12px;
  padding: 10px 12px;

  color: #7950a3;
  font-size: 14px;
  font-weight: 700;
}

#closet .profile-customization select {
  width: 125px;
  max-width: 65%;
  padding: 7px;

  background: #fffdf9;
  color: #604375;
  border: 1px solid #cfafe4;
  border-radius: 9px;
  cursor: pointer;
}

#closet .profile-customization input[type="color"] {
  width: 45px;
  height: 32px;
  padding: 2px;
  cursor: pointer;
}

#closet .profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

@media (max-width: 520px) {
  #closet .profile-customization {
    grid-template-columns: 1fr;
  }
}

/* =====================================
   CHEESE PLAZA — PROFILE OUTFIT INVENTORY
   ===================================== */

#closet .profile-outfits {
  grid-column: 1 / -1;
  padding: 14px;
background: #fff1df;
  border: 1px solid #dec6ed;
  border-radius: 14px;
}

#closet .profile-outfits h3 {
  color: #7950a3;
  font-size: 16px;
  margin: 0 0 12px;
}

/* Three outfits per row */
#closet #profileOutfitGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

/* Clothing thumbnail cards */
#closet #profileOutfitGrid .profile-outfit-item {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  aspect-ratio: 1;
  padding: 10px;

  background: #fffdf9;
  border: 2px solid #e3d0ee;
  border-radius: 12px;

  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}

/* Outfit thumbnails */
#closet #profileOutfitGrid .profile-outfit-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Highlight selected outfit */
#closet #profileOutfitGrid .profile-outfit-item.selected {
  background: #ead8f7;
  border-color: #7950a3;
  box-shadow: 0 0 0 2px rgba(121, 80, 163, 0.2);
}

/* Hover effect */
#closet #profileOutfitGrid .profile-outfit-item:hover {
  transform: translateY(-2px);
  border-color: #a980c7;
}

/* Responsive layout */
@media (max-width: 520px) {
  #closet #profileOutfitGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =====================================
   CHEESE PLAZA — PROFILE TWO-COLUMN LAYOUT
   ===================================== */

/* Player left, wardrobe right */
#closet .profile-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
  margin: 20px 0;
}

/* Stack player preview and biography */
#closet .profile-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* Keep wardrobe in right column */
#closet .profile-main > .profile-outfits {
  grid-column: 2;
  min-width: 0;
  margin: 0;
}

/* Make the wardrobe a 2-column grid */
#closet #profileOutfitGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* Wardrobe category buttons */
#closet #wardrobeTabs {
  display: flex;
  gap: 5px;
  margin-bottom: 12px;
}

#closet #wardrobeTabs button {
  flex: 1;
  min-width: 0;
  padding: 9px 5px;
  font-size: 12px;
  border-radius: 9px;
}

/* Pagination below wardrobe */
#closet #wardrobePagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}

/* Mobile layout */
@media (max-width: 600px) {
  #closet .profile-main {
    grid-template-columns: 1fr;
  }

  #closet .profile-main > .profile-outfits {
    grid-column: 1;
  }
}

/* Hide old Face and Accessory controls in Profile */
#closet .profile-customization label:has(#face),
#closet .profile-customization label:has(#hat) {
  display: none;
}

/* Active wardrobe bookmark */
#closet #wardrobeTabs .wardrobe-tab.active {
  background: #e4d0f5;
  color: #68418c;
  border: 2px solid #7950a3;
  font-weight: 800;
}

/* Inactive wardrobe bookmarks */
#closet #wardrobeTabs .wardrobe-tab:not(.active) {
  background: #7950a3;
  color: white;
  border: 2px solid transparent;
}

/* Hover effect */
#closet #wardrobeTabs .wardrobe-tab:not(.active):hover {
  background: #9469ba;
}


/* Fur color selector above wardrobe */
#closet .profile-outfits > label {
  display: flex;
  align-items: center;
  justify-content: space-between;

  background: #fffaf3;
  border: 2px solid #dec6ed;
  border-radius: 12px;

  padding: 9px 12px;
  margin-bottom: 14px;

  color: #7950a3;
  font-size: 14px;
  font-weight: 700;
}

/* Fur color picker */
#closet .profile-outfits > label input[type="color"] {
  width: 48px;
  height: 34px;
  padding: 3px;

  background: white;
  border: 1px solid #cfafe4;
  border-radius: 9px;
  cursor: pointer;
}


/* =====================================
   CHEESE PLAZA — PROFILE FINAL LAYOUT
   ===================================== */

/* Give the player preview more room */
#closet .profile-main {
  grid-template-columns: 1.15fr 1fr;
  align-items: start;
  gap: 16px;
}

/* Make the player showcase more prominent */
#closet .profile-avatar {
  padding: 18px;
  border-radius: 20px;
}

/* Enlarge the preview without stretching */
#closet #preview {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: auto;
}

/* Make the biography more compact */
#closet .profile-biography {
  padding: 12px 14px;
  border-radius: 16px;
}

/* Reduce biography heading spacing */
#closet .profile-biography h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

/* Shorter biography editor */
#closet #profileBio {
  height: 95px;
  min-height: 95px;
  resize: none;
  padding: 10px;
  font-size: 13px;
}

/* Keep the stacked player sections close together */
#closet .profile-left {
  gap: 10px;
}

/* Stack on smaller screens */
@media (max-width: 600px) {
  #closet .profile-main {
    grid-template-columns: 1fr;
  }
}

/* =====================================
   CHEESE PLAZA — PROFILE REFINEMENTS
   ===================================== */

/* Remove the outer biography box */
#closet .profile-biography {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 4px 0;
}

/* Remove the biography text box appearance */
#closet #profileBio {
  background: transparent;
  border: none;
  box-shadow: none;
  outline: none;

  width: 100%;
  height: 85px;
  min-height: 85px;
  padding: 4px 0;
  resize: none;
}


/* Player preview — preserve character proportions */
#closet #preview {
  display: block;
  width: 78%;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  object-fit: contain;
}


/* Keep the player showcase centered */
#closet .profile-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Profile mouse showcase */
#closet #preview {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  background: transparent !important;
  border: none;
  border-radius: 0;
}
/* Move biography slightly to the right */
#closet .profile-biography {
  transform: translateX(10px);
}

/* Other players' profiles — match My Profile theme */
#publicProfile {
  background: #fffaf1;
  color: #7653a0;
border: 3px solid #f2a65a;
  border-radius: 22px;
  padding: 30px;
  width: min(550px, 90vw);
box-shadow: 0 18px 50px rgba(100, 55, 25, 0.25);
}

/* Player name and section headings */
#publicProfile h2,
#publicProfile h3 {
color: #76533a;
}

/* Character preview */
#publicProfile canvas {
  background: transparent !important;
  border-radius: 16px;
}

/* Biography text */
#publicProfile p {
color: #76533a;
}

/* Close Profile button */
#publicProfile button {
color: #76533a;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: bold;
  cursor: pointer;
}

#publicProfile button:hover {
  background: #63438b;
}

/* Public profile layout */
#publicProfile .public-profile-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Lavender character card */
#publicProfile .public-profile-avatar {
  background: linear-gradient(135deg, #e8daf5, #fff7ed);
  border: 2px solid #d7b4f7;
  border-radius: 20px;
  padding: 16px;
  text-align: center;
}

/* Player username */
#publicProfile #publicProfileName {
  color: #7653a0;
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 10px;
}

/* Large character preview */
#publicProfile #publicProfilePreview {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
  background: transparent !important;
  border: none;
  border-radius: 0;
}

/* About Me section */
#publicProfile .public-profile-bio {
  padding: 0 10px;
}

#publicProfile .public-profile-bio h3 {
  margin: 0 0 14px;
  color: #7653a0;
}

#publicProfile #publicProfileBio {
  margin: 0;
  color: #584b62;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Space above Close Profile button */
#publicProfile #closePublicProfile {
  margin-top: 24px;
}


/* Cane's Threads — responsive Buy/Equip buttons */
#clothingItems .clothing-item button {
  background: #4a90d6 !important;
  color: white !important;
  border: none !important;
  border-radius: 50% !important;

  /* Scale with the clothing item */
width: 15%;
margin: 0 auto;
display: block;
  min-width: 0;
  height: auto;
  aspect-ratio: 2.5 / 1;
  padding: 0;

  font-size: clamp(8px, 1.5cqw, 18px);
  font-weight: bold;
  line-height: 1;

  cursor: pointer;
  box-shadow: none !important;
  position: relative;
z-index: 5;
}
#gameCanvasWrapper {
  container-type: inline-size;
}

/* Button hover effect */
#clothingItems .clothing-item button:hover {
  background: #347bc2 !important;
transform: scale(1.05);
}

/* Exit Shop button inside the dressing room */
#gameCanvasWrapper {
  position: relative;
}

#exitShop {
  position: absolute;
  bottom: 3%;
  left: 3%;

background: #966746;
  color: white;
border: 2px solid #f2a65a;
  border-radius: 12px;

  padding: 1.2% 2%;
  font-size: clamp(9px, 1.5cqw, 18px);
  font-weight: bold;

  cursor: pointer;
  z-index: 110;
}

#exitShop:hover {
background: #a87550;
}

/* Keep the button hidden outside the shop */
#exitShop[hidden] {
  display: none !important;
}

/* My Profile — top-right close button */
#closet {
  position: relative;
}

#closet .profile-close {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 32px;
  height: 32px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #7653a0;
  color: white;
  border: none;
  border-radius: 50%;

font-size: 22px;
font-weight: bold;
line-height: 1;
font-family: Arial, sans-serif;
text-align: center;
padding-top: 3px;
padding-bottom: 0;
box-sizing: border-box;
  cursor: pointer;
  z-index: 10;
}

#closet .profile-close:hover {
  background: #63438b;
}


/* Scale My Profile with the browser window */
#closet {
  width: 760px;
  height: 730px;
  max-width: none;
  max-height: none;
  box-sizing: border-box;
  overflow: hidden;

  transform: scale(
    min(
      1,
      calc((100vw - 32px) / 760px),
      calc((100vh - 32px) / 730px)
    )
  );
  transform-origin: center center;
}

/* Keep wardrobe panel the same size on every page */
#closet .profile-outfits {
  height: 534px;
  box-sizing: border-box;
}

/* Reserve space for all four outfit slots */
#closet #profileOutfitGrid {
  min-height: 286px;
  grid-template-rows: repeat(2, 1fr);
  align-content: start;
}

/* Keep wardrobe navigation in the same position */
#closet #wardrobePagination {
  margin-top: 12px;
}

/* Move top and bottom catalog rows toward the middle */
#clothingItems .clothing-item:nth-child(-n+3) {
  transform: translateY(15%);
}

#clothingItems .clothing-item:nth-child(n+7) {
  transform: translateY(-15%);
}

/* Cheese Plaza — In-game chat button */
#toggleChat {
  position: absolute;
  top: 2%;
  right: 2%;
  z-index: 120;

  background: #7653a0;
  color: white;
  border: 2px solid #c9a7eb;
  border-radius: 12px;

  padding: 1% 2%;
  font-size: clamp(10px, 1.5cqw, 18px);
  font-weight: bold;
  cursor: pointer;
}

#toggleChat:hover {
  background: #63438b;
}

/* Chat panel overlay */
#gameChatPanel {
  position: absolute;
  top: 12%;
  right: 2%;
  width: 32%;
  height: 75%;
  z-index: 119;
  box-sizing: border-box;
}

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

#gameChatPanel .panel {
  height: 100%;
  box-sizing: border-box;
  overflow-y: auto;
background: rgba(56, 41, 31, 0.94);
  border: 2px solid #c9a7eb;
  border-radius: 14px;
  padding: 12px;
  line-height: normal;
}

/* Keep chat input inside the panel */
#gameChatPanel #chatForm {
  display: flex;
  gap: 5px;
}

#gameChatPanel #message {
  min-width: 0;
  flex: 1;
}

/* Give the game the full available width */
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 1800px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

/* Keep game canvas proportional */
#gameCanvasWrapper {
  width: 100%;
  position: relative;
  container-type: inline-size;
}

#gameCanvasWrapper #world {
  display: block;
  width: 100%;
  height: auto;
}

/* Responsive room chat */
#gameChatPanel {
  width: 30%;
  min-width: 0;
  height: 72%;
  top: 12%;
  right: 2%;
}

/* Scale chat text and controls with game width */
#gameChatPanel .panel {
  font-size: clamp(10px, 1.4cqw, 18px);
  padding: 4%;
}

#gameChatPanel h2 {
  font-size: clamp(12px, 2cqw, 24px);
}

#gameChatPanel #chat {
  overflow-wrap: anywhere;
}

#gameChatPanel #chatForm {
  flex-wrap: wrap;
}

/* Scale Cheese Plaza to fit the browser window */
#gameCanvasWrapper {
  width: 100%;
  margin-inline: auto;
  position: relative;
  container-type: inline-size;
}

/* Preserve the original 1000 x 600 game proportions */
#gameCanvasWrapper #world {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
}

/* Keep Room Chat proportional to the game */
#gameChatPanel {
  width: 30%;
  height: 72%;
  top: 12%;
  right: 2%;
}

/* Scale chat contents with the game window */
#gameChatPanel .panel {
  font-size: clamp(9px, 1.4cqw, 18px);
  overflow-y: auto;
}

#gameChatPanel h2 {
  font-size: clamp(11px, 2cqw, 22px);
}

/* Container for scaling the entire game */
#gameScaleArea {
  width: 100%;
  position: relative;
  overflow: visible;
}

/* Keep the game layout at a consistent base size */
#gameLayout {
  width: 1200px;
  max-width: none;
  margin: 0 auto;
  box-sizing: border-box;
  transform-origin: top center;
}

/* Welcome screen inside Cheese Plaza */
#gameCanvasWrapper {
  position: relative;
}

/* Keep Welcome screen inside the game canvas */
#gameCanvasWrapper #join {
  position: absolute;
  inset: 0;
  z-index: 150;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(20, 25, 30, 0.55);
  box-sizing: border-box;
  line-height: normal;
}

/* Welcome form */
#gameCanvasWrapper #join .panel {
  width: 65%;
  max-width: 420px;
  max-height: 95%;
  overflow-y: auto;
  box-sizing: border-box;

  padding: 3%;
  border-radius: 18px;
}

/* Responsive title and text */
#gameCanvasWrapper #join h1 {
  font-size: clamp(14px, 2.5cqw, 26px);
}

#gameCanvasWrapper #join label,
#gameCanvasWrapper #join small {
  font-size: clamp(10px, 1.5cqw, 16px);
}

/* Keep inputs inside the form */
#gameCanvasWrapper #join input {
  width: 100%;
  box-sizing: border-box;
}

/* Enter Plaza button */
#gameCanvasWrapper #join #enter {
  width: 100%;
}

/* Keep clothing buttons above overlapping outfit images */
#clothingItems .clothing-item {
  position: relative;
}

#clothingItems .clothing-item:hover {
  z-index: 10;
}

#clothingItems .clothing-item button {
  position: relative;
  z-index: 11;
}


/* Welcome screen — Guest button */
#gameCanvasWrapper #join #enter {
  display: block;
  width: 100%;
  padding: 12px 16px;

  background: #edd184;
  color: #201c15;

  border: none;
  border-radius: 10px;

  font-size: 15px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;

  margin-bottom: 10px;
}

#gameCanvasWrapper #join #enter:hover {
  background: #f5dc99;
}

/* Place Room Chat beside the emotes */
#emoteChatRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

#emoteChatRow #emotes {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Match the existing emote buttons */
#emoteChatRow #toggleChat {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 56px;
  height: 44px;
  padding: 0;

background: #80583c;
  color: white;
border: 1px solid #966746;
  border-radius: 10px;

  font-size: 23px;
  cursor: pointer;
  flex-shrink: 0;
}

#emoteChatRow #toggleChat:hover {
background: #966746;
}
/* Align Chat button with the emote buttons */
#emoteChatRow {
  display: flex;
  align-items: center;
  gap: 8px;
}

#emoteChatRow #emotes {
  margin: 0;
}

#emoteChatRow #toggleChat {
  align-self: center;
}
/* Room Chat first, emotes second */
#emoteChatRow #toggleChat {
  order: -1;
}

#emoteChatRow #emotes {
  order: 1;
}

/* Position Room Chat on the left side of the map */
#gameChatPanel {
  left: 2%;
  right: auto;
}

/* Cheese Plaza Login / Register form */
#accountForm {
  margin-top: 12px;
  padding: 14px;
background: rgba(43, 32, 26, 0.95);
border: none;
  border-radius: 12px;
}

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

#accountForm h3 {
  margin: 0 0 12px;
  text-align: center;
}

#accountForm label {
  display: block;
  margin-bottom: 10px;
}

#accountForm input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 5px;
  padding: 9px;
  border-radius: 8px;
}

.accountFormButtons {
  display: flex;
  gap: 8px;
  margin-top: 60px;
}

.accountFormButtons button {
  flex: 1;
}

/* Hide Welcome screen when Login/Register is open */
#welcomeContent[hidden] {
  display: none !important;
}

/* Hide account form when returning to Welcome screen */
#accountForm[hidden] {
  display: none !important;
}

/* Add more space above the Welcome screen buttons */
#welcomeContent #enter {
  margin-top: 55px;
}

/* Balanced Welcome screen button spacing */
#welcomeContent #enter {
  display: block;
  width: 100%;
  margin-top: 35px;
  margin-bottom: 20px;
}

#welcomeContent #accountOptions {
  display: flex;
  gap: 12px;
  width: 100%;
}

#welcomeContent #accountOptions button {
  flex: 1;
}

/* Add breathing room between the welcome description and Nickname */
#welcomeContent > p {
  margin-bottom: 28px;
}

/* Session window overlay */
#roomPanel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 380px;
  max-width: 85%;
  box-sizing: border-box;
  padding: 28px;

background: #38291f;
  color: white;
  border: none;
  border-radius: 16px;
  z-index: 200;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

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

#sessionPanel h3 {
  margin: 0 0 24px;
  font-size: 24px;
}

#sessionPanel input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 12px;
  border-radius: 8px;
}

.roomPanelButtons {
  display: flex;
  gap: 12px;
  margin-top: 35px;
}

.roomPanelButtons button {
  flex: 1;
}
/* Keep Room and Copy Invite Link side by side */
#roomInviteButtons {
  display: flex;
  align-items: center;
  gap: 10px;
}

#roomInviteButtons button {
  flex: 1;
}

/* Balance Room and Copy Invite Link buttons */
#roomInviteButtons {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

#roomInviteButtons button {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  white-space: nowrap;
  font-size: 14px;
}

/* Keep Room and Invite buttons grouped on the right */
#roomInviteButtons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: auto;
  margin-left: auto;
}

#roomInviteButtons button {
  flex: none;
  width: auto;
  min-width: 110px;
  height: 48px;
  padding: 8px 14px;
  white-space: nowrap;
}

/* Make Room button more compact */
#roomInviteButtons #roomButton {
  min-width: 0;
  width: auto;
  padding: 8px 16px;
}

/* Active Rooms section */
#activeRoomsSection {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

#activeRoomsSection h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

/* Scrollable room list */
#activeRoomsList {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}

/* Individual room */
.activeRoomItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.activeRoomItem span {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.activeRoomItem button {
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: 13px;
}

/* Space out the Create Session button */
#createRoomButton {
  display: block;
  margin-top: 18px;
  margin-bottom: 12px;
  padding: 10px 18px;
}

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

#activeRoomsHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}


#activeRoomsHeader h3 {
  margin: 0;
}



#refreshRoomsButton {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 50%;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}

/* Add space between Room Code label and input */
#roomPanel label[for="roomCodeInput"] {
  margin-right: 18px;
}

/* Keep existing-room message below the Room Code input */
#roomCodeMessage {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 16px;
  margin-bottom: 12px;
  padding: 10px 12px;

  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;

  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

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

/* Align Show Password checkbox with its label */
#accountForm .showPasswordOption {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 0;
  cursor: pointer;
}

#accountForm .showPasswordOption input {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: #e9d38c;
}

/* Password field with visibility toggle */
#accountForm .passwordField {
  position: relative;
  width: 100%;
  margin-top: 5px;
  margin-bottom: 12px;
}

#accountForm .passwordField input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 45px 10px 12px;
  margin: 0;
}

/* Eye icon inside the password field */
#accountForm #togglePassword {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  height: 30px;
  min-width: 0;
  padding: 0;

  background: transparent;
  border: none;
  box-shadow: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
}

#accountForm #togglePassword:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

/* Login and Register error messages */
#accountError {
  margin-top: 14px;
  margin-bottom: 10px;
  padding: 10px 12px;

  background: rgba(220, 65, 65, 0.15);
  border: 1px solid rgba(220, 65, 65, 0.4);
  border-radius: 8px;

  color: #ffb3b3;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
/* Successful account notifications */
#accountError.success {
background: rgba(242, 166, 90, 0.15);
border: 1px solid rgba(242, 166, 90, 0.4);
  color: #86efac;
}

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

/* Cheese Plaza Settings window */
#settingsPanel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 380px;
  max-width: 85%;
  box-sizing: border-box;
  padding: 28px;

background: #38291f;
  color: white;
  border: none;
  border-radius: 16px;
  z-index: 210;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

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

#settingsPanel h3 {
  margin: 0 0 28px;
  font-size: 24px;
}

.settingsAccountSection {
  padding: 16px 0;
}

.settingsAccountSection h4 {
  margin: 0 0 10px;
  font-size: 18px;
}

.settingsAccountSection p {
  margin-bottom: 20px;
  font-size: 14px;
  opacity: 0.8;
}

#settingsLogout,
#settingsCancel {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
  padding: 12px;
}

#settingsCancel {
  margin-top: 8px;
}


/* Position Settings in the top-right corner of the map */
#gameCanvasWrapper {
  position: relative;
}

#gameCanvasWrapper #settingsButton {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 150;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;

background: #80583c;
color: white;
border: 1px solid #966746;
  border-radius: 50%;

  font-size: 20px;
  cursor: pointer;
}

#gameCanvasWrapper #settingsButton:hover {
background: #966746;
}


/* Forgot Password text link */
#forgotPasswordButton,
#resendVerificationButton {
  display: block;
  width: fit-content;
  margin: 10px 0 0 auto;
  padding: 0;

  background: transparent;
  border: none;
  box-shadow: none;

  color: #e9d38c;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

#forgotPasswordButton:hover,
#resendVerificationButton:hover {
  color: #fff1bd;
  background: transparent;
}

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

/* Cheese Plaza password recovery form */
#passwordRecoveryForm {
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  color: white;
}

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

#passwordRecoveryForm h3 {
  margin: 0 0 20px;
  text-align: center;
  font-size: 20px;
}

#passwordRecoveryForm > p {
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
}

#passwordRecoveryForm label {
  display: block;
  margin-bottom: 8px;
}

#passwordRecoveryForm #recoveryEmail {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 8px;
}

.recoveryButtons {
  display: flex;
  gap: 10px;
  margin-top: 40px;
}

.recoveryButtons button {
  flex: 1;
  min-width: 0;
}

#recoveryMessage {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
}

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

/* Rat Society password reset form */
#newPasswordForm {
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  color: white;
}

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

#newPasswordForm h3 {
  margin: 0 0 20px;
  text-align: center;
  font-size: 20px;
}

#newPasswordForm > p {
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
}

#newPasswordForm label {
  display: block;
  margin-top: 14px;
  margin-bottom: 8px;
}

#newPasswordForm input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 8px;
}

#saveNewPassword {
  display: block;
  width: 100%;
  margin-top: 32px;
}

#newPasswordMessage {
  margin-top: 14px;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
}

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

/* Password visibility buttons for Reset Password */
#newPasswordForm .passwordField {
  position: relative;
  width: 100%;
  margin-top: 5px;
  margin-bottom: 14px;
}

#newPasswordForm .passwordField input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 45px 10px 12px;
  margin: 0;
}

/* Position eye icons inside the password fields */
#newPasswordForm .passwordField button {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  height: 30px;
  min-width: 0;
  padding: 0;

  background: transparent;
  border: none;
  box-shadow: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

#newPasswordForm .passwordField button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}
/* Rat Society admin currency controls */
#adminCurrencyManager:not([hidden]) {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  background: #38291f;
  border: 1px solid #80583c;
  border-radius: 12px;
  color: #ffe8d3;
}

#adminCurrencyManager h3 {
  margin: 0;
  color: #f2a65a;
}

#adminCheeseAmount {
  width: 100%;
  background: #2b201a;
  border: 1px solid #966746;
  color: #ffe8d3;
}

#adminCurrencyManager .profile-actions {
  display: flex;
  gap: 10px;
}

#adminCurrencyManager .profile-actions button {
  flex: 1;
  background: #966746;
  color: white;
}

#adminCurrencyManager .profile-actions button:hover {
  background: #a87550;
}

#adminCurrencyMessage {
  margin: 0;
  font-size: 13px;
}
/* Prevent overlapping catalog items from blocking buttons */
body.in-clothing-shop #clothingItems .clothing-item {
  pointer-events: none;
}

body.in-clothing-shop #clothingItems .clothing-item button {
  pointer-events: auto;
}