/* ================== Global Styles ================== */
/* Import Pixel Font */
@import url('../assets/fonts/04b03.css');
@import url('../assets/fonts/Tendrilis.css');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 24px;
  font-family: "04b03", Verdana, sans-serif;
  font-size: 16px;
  line-height: 15px;
  text-align: center;
    background: #fde3f1;
  color: #3a2f3f;
  border: 0;
}

a {
    color: #8b63b5;         
    text-decoration: underline; 
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

a:hover {
    color: #b8a5eb;         
}

.small-btn {
    background: #b8a5eb;
    color: white;
    border: 2px solid white;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: "04b03", sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.small-btn:hover { 
    background: #a389e6; 
}
.large-btn {
    background: #b8a5eb;
    color: white;
    border: 3px solid white;
    border-radius: 12px;
    padding: 10px 20px;
    font-family: "04b03", sans-serif;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: transform 0.2s, background 0.2s;
}

.large-btn:hover {
    background: #a389e6;
    transform: scale(1.05);
}


.pixel-divider {
  border: 0;
  height: 4px;
  background-image: linear-gradient(to right, transparent, #b8a5eb, transparent);
  margin: 40px 0;
}

.fae-select {
    font-family: '04b03', sans-serif;
    background: #fdfbf5;
    border: none;
    border-bottom: 2px solid #b8a5eb;
    padding: 10px;
    width: 100
    color: #5a4a3a;
    outline: none;
    cursor: pointer;
    appearance: none;
}
/* Styling for the disabled (greyed out) options */
.fae-select option:disabled {
    color: #a1a1a1;
    font-style: italic;
    background-color: #f0f0f0;
}

@media (max-width: 780px) {
  body {
    flex-direction: column !important;
    overflow-x: hidden;
    height: auto !important;
  }
}

/* ================== Form Elements  ================== */

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

label {
  font-family: "04b03", Verdana, sans-serif;
  font-size: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #5a4a8d;
  margin-bottom: 5px;
}

input {
  font-family: "04b03", Verdana, sans-serif;
  font-size: 16px;
  padding: 12px;
  border: 1px solid #dcdde1;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

input:focus {
  outline: none;
  border-color: #b8a5eb;
  box-shadow: 0 0 0 3px rgba(184, 165, 235, 0.2);
}



/* ================== Header ================== */

.top-row {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: flex-end;
    height: 80px;
    align-items: center;         
    padding: 0 20px;
}

.logo {
  max-width: 560px;
  margin: 0 auto;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translate(-50%, -50%);
  image-rendering: pixelated;
   filter: drop-shadow(0 0 10px #b8a5eb);
}


/* ================== Auth and Top Bar ================== */

.top-auth {
    display: block;        
    position: relative;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: fit-content;
    
    margin-left: auto;     

    background: rgba(255,255,255,0.9);
    padding: 8px 16px;     
    border-radius: 8px;
    border: 2px solid #b8a5eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-family: "04b03", Verdana, sans-serif; 
    font-size: 14px;
}

#auth-container {
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  padding: 0;
}

#auth-container a {
  color: #3a2f3f;
  text-decoration: none;
  margin: 0 4px;
  font-size: 14px;
  transition: color 0.2s ease;
}

#auth-container a:hover {
  color: #8b63b5;
}

#welcome {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 10px;
  font-weight: bold;
  white-space: nowrap;
}

.divider {
    margin: 0 10px;
    color: #b8a5eb;
    font-weight: normal;
}
.crystal-display {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid #d6c4e8;
    cursor: pointer;
}

.crystal-display:hover {
    background: rgba(184, 165, 235, 0.2);
}

.nav-crystal-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    image-rendering: pixelated;
}

#nav-crystal-count {
    color: #8b63b5;
    font-weight: bold;
}


/* ================== Auth Modal ================== */

  #auth-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 6000;
    align-items: center;
    justify-content: center;
  }

  #auth-modal .modal-window {
    position: relative;
    background: #fff;
    padding: 24px;
    width: 320px;
    max-width: 90vw;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  }

  #auth-modal input {
    width: 100%;
    margin: 8px 0;
    padding: 8px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
  }

  #auth-modal button {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    background: #e8dff0;
    cursor: pointer;
    margin-top: 6px;
  }

  #auth-modal button:hover {
    background: #d8cbe6;
  }

  #auth-modal .modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 20px;
    cursor: pointer;
  }

  #auth-switch {
    margin-top: 12px;
    font-size: 14px;
  }

  #auth-status {
    margin-top: 6px;
    font-size: 13px;
    color: red;
  }

  #auth-username {
    width: 100%;
    margin: 8px 0;
    padding: 8px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
  }

  #show-password {
    margin-top: 4px;
  }
  
  
#logged-in-view {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ================== Toast Notifications ================== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #3a2f3f;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid #b8a5eb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 11000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* ================== Main and Sidebar ================== */

.page-wrapper {
    display: flex;
    min-height: calc(100vh - 50px); 
}

.main-content {
  position: relative;
  flex: 1;
  margin-left: 230px;
  padding: 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(100% - 230px);
  gap: 30px;
  box-sizing: border-box;
}


.map-placeholder {
  width: 600px;
  height: 500px;
  background: #f9e8fc;
  border: 3px solid #d6c4e8;;
  font-size: 1.1rem;
  color: #8b63b5;
  text-align: center;
  padding: 10px;
}

.sidebar {
  width: 230px;
  background: #e8dff0;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 4px solid #d6c4e8;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 500;
}

.sidebar-item {
  background: rgba(255,255,255,0.7);
  padding: 6px;
  border-radius: 8px;
  font-size:  18px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s ease;
}

.sidebar-item img {
    position: relative;
    top: 2px;
}
.sidebar-item a {
  text-decoration: none;
  color: #3a2f3f;
}

.sidebar-item:hover {
  background: rgba(255,255,255,0.9);
}

.sidebar-search {
    padding: 10px;
    margin-top: 10px;
    position: relative;
}

#player-search-input {
    width: 100%;
    padding: 8px;
    font-family: '04b03', sans-serif;
    background: #fdfbf5;
    border: 2px solid #b8a5eb;
    border-radius: 4px;
    color: #3e2731;
    outline: none;
    box-sizing: border-box;
}

.search-dropdown {
    position: absolute;
    bottom: 100%; /* Shows ABOVE the search bar */
    left: 10px;
    right: 10px;
    background: white;
    border: 2px solid #b8a5eb;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    display: none; /* Hidden until user types */
    z-index: 100;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}

.search-result-item {
    padding: 8px;
    cursor: pointer;
    font-family: '04b03', sans-serif;
    font-size: 12px;
    border-bottom: 1px solid #eee;
    color: #3e2731;
}

.search-result-item:hover {
    background: #e8dff0;
}
@media (max-width: 780px) {
  .page-wrapper { 
      flex-direction: column; 
  }
  
    .sidebar {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    border-right: none !important;
    border-bottom: 4px solid #d6c4e8;
    padding: 20px 10px !important;
    z-index: 100;
    overflow-y: visible !important; 
  }

  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 10px !important;
    min-height: 0 !important;
  }
    .sidebar-item {
    width: 90% !important;
    margin: 4px auto !important;
  }
    .map-placeholder {
    width: 100%;
    height: 300px;
  }
}

/* ================== Sidebar Clock ================== */

#clock {
  width: 190px;
  height: 54px;
  background-image: url("../assets/clock.png");
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  line-height: 1;
  color: #3a2f3f;
  image-rendering: pixelated;
  text-shadow: 1px 1px 0 #fff;
    text-align: center;
  padding-left: 9px; /* shifts visual center */
  margin: 0 auto 12px auto; /* center in sidebar */
}

#clock span {
  font-family: "04b03", monospace;
  font-size: 18px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateX(7px); 
  line-height: 1;
  width: 210px;
}

@keyframes clockGlow {
  0%, 100% { text-shadow: 0 0 2px #fff, 0 0 4px #ff77ff, 0 0 6px #ff77ff; }
  50% { text-shadow: 0 0 4px #fff, 0 0 6px #ff99ff, 0 0 8px #ff99ff; }
}

#clock {
  animation: clockGlow 2s infinite ease-in-out;
}

@media (max-width: 780px) {
  #clock {
    display: block !important;
    visibility: visible !important;
    width: 190px !important;
    height: 54px !important;
    background-image: url("../assets/clock.png") !important; 
    background-size: 100% 100% !important;
    margin: 0 auto 15px auto !important;
  }
}

/* ================== Home Page ================== */


.index {
  width: 900px;
  background: #f9e8fc;
  border: 3px solid #d6c4e8;
  border-radius: 12px;
  text-align: center;
  padding: 20px 10px;
  margin: 0 auto;
}


.intro-section {
  text-align: center;
  padding: 40px 20px;
  background: radial-gradient(circle, rgba(184, 165, 235, 0.1) 0%, transparent 70%);
}

.guest-box {
  background: #fdfbf5;
  border: 2px dashed #b8a5eb;
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
}

.home-card {
  background: white;
  border: 3px solid #b8a5eb;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.home-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(184, 165, 235, 0.4);
}

.home-card img {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  margin-bottom: 10px;
}

.game-tag {
  display: inline-block;
  font-size: 11px;
  background: #e8dff0;
  color: #8b63b5;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.whisper-text {
    font-family: '04b03', sans-serif;
    font-size: 16px;
    color: #4a3b28;
    line-height: 1.4;
    font-style: italic;
}



/* ================== About Page ================== */
.about-card {
    background: rgba(255, 255, 255, 0.7); /* Soft glass look */
    border: 2px dashed #b8a5eb;
    border-radius: 15px;
    padding: 30px;
    max-width: 650px;
    margin: 40px auto; /* Centers it in the main area */
    text-align: left; /* Aligns text for readability */
    line-height: 1.6;
    color: #3a2f3f;
}

.about-card h2 {
    font-family: "04b03", sans-serif;
    color: #8b63b5;
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.about-card p {
    margin-bottom: 15px;
    font-size: 15px;
}

.solo-tag {
    text-align: center;
    margin-top: 20px;
    color: #8b63b5;
    font-weight: bold;
}

.about-pixel-art {
    margin-top: 20px;
    image-rendering: pixelated;
    width: 100px;
}

.faq-section {
    margin-top: 20px;
}

details {
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid #b8a5eb;
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 12px 15px;
    text-align: left;
    transition: all 0.3s ease;
}

details[open] {
    background: rgba(255, 255, 255, 0.8);
    border-style: solid;
}

summary {
    font-weight: bold;
    color: #8b63b5;
    cursor: pointer;
    list-style: none; /* Removes default arrow */
    outline: none;
    display: flex;
    align-items: center;
}


details[open] summary::before {
    transform: rotate(45deg);
}

details p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #3a2f3f;
    border-top: 1px dashed #b8a5eb;
    padding-top: 10px;
}

/* ================== Credits ================== */
.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
    text-align: left;
}

.credits-category h3, h3 {
    font-family: "04b03", sans-serif;
    font-size: 18px;
    color: #8b63b5;
    border-bottom: 2px dashed #b8a5eb;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

.credits-category ul {
    list-style: none; /* Keeps it clean */
    padding: 0;
}

.credits-category li {
    font-size: 14px;
    margin-bottom: 8px;
    color: #3a2f3f;
    line-height: 1.4;
}

.credits-category li strong {
    color: #8b63b5;
}

/* Hover effect for credit links */
.credits-category a {
    text-decoration: underline dotted;
}

/* ================== Secret Discoveries ================== */

.secret-area {
    margin-top: 40px;
    padding-bottom: 10px;
    width: 100%;
    /* This forces the crystal and message to stack vertically */
    display: flex;
    flex-direction: column; 
    align-items: center;    
    justify-content: center;
    gap: 8px; /* Space between crystal and text */
}

#secret-message {
    font-size: 12px;
    color: #8b63b5;
    font-style: italic;
    opacity: 0;
    transition: opacity 0.5s ease;
    min-height: 15px; /* Prevents the card from flickering/jumping */
    text-align: center;
    width: 100%;
}
#secret-crystal {
    width: 20px; 
    image-rendering: pixelated; 
    opacity: 0.5; 
    cursor: pointer;
    transition: all 0.5s ease;
    filter: grayscale(100%); 
}

#secret-crystal:hover {
    opacity: 1;
    filter: grayscale(0%) drop-shadow(0 0 8px #b8a5eb); 
    transform: scale(1.4) rotate(10deg);
}



/* ================== Magic Flower ================== */

.garden-space {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 350px; 
    margin: 0;
    padding: 40px 20px;
    border-radius: 25px;
    gap: 5px;
}

.garden-flex-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start; 
    gap: 30px;              
    width: 100%;
    max-width: 850px;
    position: relative;
    margin: 60px auto 20px;
}

.pot-wrapper {
    position: relative;
    width: 128px;
    height: 128px;
    margin-top: 50px;
    pointer-events: none;
}

#potted-plant {
    width: 128px;
    height: 128px;
    image-rendering: pixelated;
    display: block;
    pointer-events: auto;
}

.garden-hint {
    font-style: italic;
    font-size: 14px;
    color: #3a2f3f;
    width: 100%;
    max-width: 310px;
    text-align: center;
    display: block;
    line-height: 1.4;
}


.visitor-area {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 100px; /* Space above the pot for fliers */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}


.garden-visitor {
    width: 96px;
    height: 96px;
    position: absolute;
    z-index: 10;
    pointer-events: auto;
    image-rendering: pixelated;
    object-fit: contain;
    transition: transform 0.2s ease, filter 0.2s ease;
    cursor: help;
}

.garden-visitor:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px rgba(184, 165, 235, 0.8));
}


.visitor-floating {
    top: -45px;
    right: -90px;
    animation: visitorFloat 3s ease-in-out infinite;
}

@keyframes visitorFloat {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -15px); }
}
.visitor-on-left {
    top: 20px;
    right: 90px;
}

.visitor-on-right {
    top: 10px;
    right: -80px;
}




/* Reward Pop up */

#reward-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
    z-index: 9999;
}

.crystal-popup, .growth-popup {
    position: absolute;
    font-family: "04b03", sans-serif;
    font-size: 24px;
    color: #b8a5eb;
    text-shadow: 2px 2px 0px #fff, -1px -1px 0px #fff, 1px -1px 0px #fff, -1px 1px 0px #fff;
    font-weight: bold;
    animation: floatUpFade 2s ease-out forwards;
    display: flex;
    align-items: center;
    gap: 8px;
}

.crystal-popup img {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
}

@keyframes floatUpFade {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    20% {
        opacity: 1;
        transform: translateY(-20px);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px);
    }
}


#plant-actions {
    display: flex;
    flex-direction: column;
    align-items: center;   
    justify-content: center;
    gap: 12px;             
    margin-top: 20px;      
    width: 100%;
}


#plant-timer-msg {
    font-family: "04b03", sans-serif;
    color: #8b63b5;
    padding: 5px 15px;
    display: inline-block;
    margin-top: 10px;
}

#debug-controls {
    display: visible !important;
}




/* --- Button --- */

.garden-btn {
    background: #b8a5eb;
    color: white;
    border: 2px solid white;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: "04b03", sans-serif;
    cursor: pointer;
    display: block;        
    margin: 0 auto;         
    min-width: 160px;     
}

.garden-btn:hover { 
    background: #a389e6; 
    
}




/* --- Garden Journal --- */

.garden-journal {
    position: relative;
    overflow: visible;
    flex-shrink: 0;
      background-color: #fcf8f2; 
  border: 4px solid #5a3d2b; 
  box-shadow: 
    inset -4px -4px 0px 0px #d9c5b2,
    4px 4px 0px 0px rgba(0,0,0,0.1); 
  padding: 20px;
    margin-top: 40px;
    width: 300px; 
    min-height: 200px;
    margin: 0;
    top: 30px;
    text-align: center;
}


.garden-journal h3 {
    font-family: "04b03", sans-serif;
    margin-bottom: 20px;
      color: #8a67ab; 
}

.garden-journal ul {
    display:  block;
    width: fit-content;
    list-style-type: '✦ ';
    list-style-position: inside; 
    padding: 0;
    margin: 0 auto;
    text-align: left; 
}

.garden-journal li {
    margin-bottom: 12px;
    font-family: "04b03", sans-serif;
    padding-left: 1.2em;
    display: list-item;
}

#stat-growth-stage {
    color: #8b63b5;
    font-weight: bold;
}


/* Lantern */

.lantern-anchor {
    width: 120px; 
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center; 
    position: relative;
    z-index: 10;
}

.lantern-container {
position: absolute; 
    left: 50%;
    top: -50px; 
    transform: translateX(-50%); 
    
    width: 120px; 
    height: 120px;
    z-index: 1000; 
    image-rendering: pixelated;
    pointer-events: auto;
    cursor: help;
}

.lantern-base, .lantern-flame {
    position: absolute;
    top: 65px;
    left: 20px;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.lantern-flame {
    z-index: 1001;
    filter: drop-shadow(0 0 10px rgba(184, 165, 235, 0.7));
}


/* Ensure the flex row doesn't squish our anchor */
.lantern-anchor {
    flex-shrink: 0;
}



/* mobile */

@media (max-width: 780px) {
    .garden-flex-row {
        flex-direction: column;
        align-items: center;
    }
}

/* ================== Settings Page ================== */


.settings-page {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
    font-family: "04b03", Verdana, sans-serif;
  font-size: 16px;
}

.settings-card {
  background: white;
  width: 100%;
  max-width: 450px;
  padding: 30px;
  border-radius: 15px;
  border: 2px solid #e0d7f7; 
  box-shadow: 0 10px 25px rgba(184, 165, 235, 0.1);
}

.settings-title {
  color: #5a4a8d;
  margin-bottom: 25px;
  text-align: center;
}

.read-only-field {
    background: #f0f0f0;
    padding: 10px;
    border-radius: 4px;
    color: #666;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}
.security-check {
    background: #fff5f5;
    padding: 15px;
    border: 1px solid #feb2b2;
    border-radius: 8px;
}

.read-only-field {
  background: #f8f9fd;
  padding: 12px;
  border-radius: 8px;
  color: #7f8c8d;
  border: 1px solid #edf0f5;
  font-size: 0.95rem;
}

.security-box {
  background: #fdfaff;
  padding: 15px;
  border-radius: 10px;
  border: 1px dashed #b8a5eb;
  margin-bottom: 20px;
}

.security-warning {
  font-size: 0.85rem;
  color: #d9534f;
  font-weight: bold;
  margin-bottom: 10px;
}


/* Privacy Policy */

.privacy-policy ul {
  list-style-type: '✦ ';
  list-style-position: inside;  
}

.privacy-policy li {
    margin-bottom: 12px;
    font-family: "04b03", sans-serif;
    padding-left: 1.2em;
    display: list-item;
}


/* ================== Saved Houses Page  ================== */

.houses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    padding: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.category-card {
    background: white;
    border: 4px solid #b8a5eb;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.latest-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #fdf6ec;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 4px solid #b8a5eb;
}

.latest-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

.house-card {
    background: white;
    border: 3px solid #b8a5eb;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.house-preview-large {
    width: 100%;
    aspect-ratio: 1/1; /* Keeps cards square */
    background: #fdf6ec;
    border-radius: 8px;
    border: 1px solid #eee;
    overflow: hidden;
}

.house-preview-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated; /* Keeps your mushroom art crisp */
}

.card-actions {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.card-actions button {
    font-family: "04b03", Verdana, sans-serif;
    font-size: 16px;
    flex: 1;
    padding: 8px 5px;
    font-size: 0.85em;
    cursor: pointer;
    border: 2px solid #b8a5eb;
    background: white;
    border-radius: 6px;
    transition: all 0.2s;
}

.edit-btn:hover { background: #e8f5e9; border-color: #4caf50; }
.download-btn:hover { background: #e3f2fd; border-color: #2196f3; }
.delete-btn-large:hover { background: #ffebee; border-color: #f44336; color: #f44336; }

#houses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    gap: 20px;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    #houses-grid {
        grid-template-columns: 1fr;
    }
}

/* ================== Galleries Page  ================== */


.category-info {
    padding: 20px;
    text-align: center;
}

.view-gallery-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: #b8a5eb;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-family: "04b03", sans-serif;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}


.category-card {
    background: #fff;
    border: 3px solid #b8a5eb;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(184, 165, 235, 0.2);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-5px);
}

.latest-preview {
    width: 100%;
    height: 180px;
    background: #f9f7ff;
    border-bottom: 2px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.category-card.locked {
    filter: grayscale(0.8);
    opacity: 0.8;
    border-color: #ccc;
    cursor: not-allowed;
}

.lock-icon {
    font-size: 3rem;
    color: #999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #b8a5eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.category-info {
    padding: 20px;
    text-align: center;
}

.category-info h2 {
    margin: 0 0 10px 0;
    color: #3a2f3f;
}

.view-gallery-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #b8a5eb;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 10px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}


.category-card {
    background: #fff;
    border: 3px solid #b8a5eb;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(184, 165, 235, 0.2);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-5px);
}

.latest-preview {
    width: 100%;
    height: 180px;
    background: #f9f7ff;
    border-bottom: 2px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* The "Locked" Look */
.category-card.locked {
    filter: grayscale(0.8);
    opacity: 0.8;
    border-color: #ccc;
    cursor: not-allowed;
}

.lock-icon {
    font-size: 3rem;
    color: #999;
}


/* Category Info Text */
.category-info {
    padding: 20px;
    text-align: center;
}

.category-info h2 {
    margin: 0 0 10px 0;
    color: #3a2f3f;
}

.view-gallery-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #b8a5eb;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 10px;
}
/* Container for the whole grid */
.houses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 10px 0;
}


/* ================== Profile page  ================== */

.main-content .profile-card {
  display: flex;
  background: white;
  border: 4px solid #b8a5eb;
  border-radius: 16px;
  padding: 25px;
  width: 100%;
  max-width: 600px;
  margin-top: 20px;
  box-shadow: 0 4px 10px rgba(184, 165, 235, 0.2);
  gap: 30px;
  text-align: left; 
}

.profile-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.profile-left #profile-avatar {
  width: 90px;
  height: 90px;
  border: 3px solid #d6c4e8;
  border-radius: 12px;
  image-rendering: pixelated;
  background: #fdf6ff;
}

.profile-left #profile-name {
  font-size: 24px;
  color: #3a2f3f;
  margin: 0;
}

.profile-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  flex: 1.5;
}

.profile-right .stat-box {
  border-bottom: 2px dashed #d6c4e8;
  padding-bottom: 5px;
}

.profile-right .stat-label {
  font-size: 14px;
  color: #8b63b5;
  display: block;
  margin-bottom: 4px;
}

#profile-started, #profile-last-online {
  font-size: 18px;
  margin: 0;
}

.galleries-section .featured-house-card {
  display: block;
  text-decoration: none;
  background: white;
  border: 3px solid #b8a5eb;
  border-radius: 12px;
  overflow: hidden;
  max-width: 300px;
  margin: 15px 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.galleries-section .featured-house-card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 15px rgba(184, 165, 235, 0.4);
}

.galleries-section .preview-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fdf6ff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid #e8dff0;
}

.galleries-section #latest-house-preview {
  width: 90%;
  height: 90%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.galleries-section .preview-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(184, 165, 235, 0.8);
  color: white;
  padding: 5px;
  font-size: 12px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.featured-house-card:hover .preview-overlay {
  opacity: 1;
}

.galleries-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.galleries-section #share-link-container {
    background: #fff;
    border: 2px dashed #b8a5eb;
    padding: 15px;
    border-radius: 12px;
    margin: 20px auto;    
    width: 90%;
    max-width: 600px;     
    text-align: left;
}
.galleries-section #share-link {
    width: 100%;
    background: white;
    border: 2px solid #d6c4e8;
    padding: 10px;
    border-radius: 8px;
    font-family: "04b03", monospace;
    color: #3a2f3f;
    outline: none;
}

#edit-profile-btn {
  position: relative;
  bottom: 30px;
  right: 30px;
  margin: 20px auto;
  background: #b8a5eb;
  color: white;
  border: 3px solid white;
  border-radius: 12px;
  padding: 10px 20px;
  font-family: "04b03", sans-serif;
  font-size: 16px;
  cursor: pointer;
  z-index: 100;
}

#edit-profile-btn:hover {
  background: #a389e6;
  transform: scale(1.05);
}

.house-card-footer {
    padding: 12px;
    background: #fff;
    text-align: center;      
    border-top: 1px solid #f0eaff;
}

#latest-house-name {
    display: block;         
    font-size: 16px;
    font-family: "04b03", sans-serif; 
    color: #3a2f3f;          
    text-decoration: none;   
    padding: 4px 10px;
    transition: color 0.2s ease;
}

.featured-house-card:hover #latest-house-name {
    color: #8b63b5;          
}

.name-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px; 
}

.name-container h3 {
    margin: 0;
    line-height: 1.2;
    font-size: 1.1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%; /
}

/* The Pencil "Icon" Button */
.edit-name-btn {
    background: #fdf6ec; 
    border: 2px solid #b8a5eb;
    border-radius: 20%; 
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    transition: all 0.2s ease;
    flex-shrink: 0; 
}

.edit-name-btn:hover {
    background: #b8a5eb;
    transform: scale(1.1);
}

    .avatar-picker {
      width: 50%;
      min-width: 300px;        
      display: grid;
      grid-template-columns: repeat(auto-fill, 100px);
      gap: 15px;
      justify-content: center;
      background: rgba(255,255,255,0.5);
      padding: 20px;
      border-radius: 16px;
      margin: 15px 0;
      border: 2px solid #e8dff0;
    }
    
    .avatar-option {
      width: 90px;
      height: 90px;
      cursor: pointer;
      border: 3px solid #fff;
      border-radius: 15px;
      image-rendering: pixelated;
      background: #fdf6ff;
      image-rendering: pixelated;
      image-rendering: crisp-edges;
    
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

.avatar-option:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: #d6c4e8;
    background: white;
    box-shadow: 0 6px 12px rgba(184, 165, 235, 0.3);
}

.avatar-option.selected {
    border-color: #b8a5eb;
    background: white;
    transform: scale(1.02);
    box-shadow: 0 0 0 3px #b8a5eb; /* Outer glow/border effect */
}
    .edit-form {
      display: flex;
      align-items: center;
      flex-direction: column;
      gap: 15px;
      width: 100%;
      max-width: 800px;
    }
    
    .edit-form input[type="text"] {
        width: 30%;
    min-width: 200px;
      padding: 10px;
      border-radius: 8px;
      border: 1px solid #d6c4e8;
      font-family: inherit;
    text-align: center
    }
    
    .save-btn {
    bottom: 30px;
    right: 30px;
    background: #b8a5eb;
    color: white;
    border: 3px solid white;
    border-radius: 12px;
    padding: 10px 20px;
    font-family: "04b03", sans-serif;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    }
    
    .save-btn:hover {
  background: #a389e6;
  transform: scale(1.05);
}
    

@media (max-width: 600px) {
  .main-content .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  #edit-profile-btn {
    margin: 20px auto;
  }
}


/* ================== Book Reader ================== */

#fae-book-window {
    display: none; 
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    z-index: 20000; 
}


.book-background-image {
    position: relative;
    width: 410px;
    height: 200px;
    margin: 0 auto;
    background-image: url('../assets/recipebook.png');
    background-size: contain;
    z-index: 10;
    padding: 40px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.book-page {
    position: absolute;
    top: 15px;         
    width: 150px;      
    height: 150px;     
    overflow: hidden;
    font-size: 13px;    
    color: #3e2731;   
    line-height: 1.5;
    text-align: left;
    justify-content: flex-start;
    display: flex;
    hyphens: auto;
    flex-direction: column;
}

.page-inner {
    font-family: "04b03", Verdana, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    image-rendering: pixelated;
    text-align: left;
    margin-top: 0; 
}
#book-page-left {
    left: 40px;         
}

#book-page-right {
    left: 225px;        
}

#book-left-arrow {
    left: 25px;
}

#book-right-arrow {
    right: 25px;
}


#book-left-arrow, #book-right-arrow {
    position: absolute; 
    cursor: pointer; 
    font-weight: bold; 
    bottom: 10px;  
    font-size: 26px;
    text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff;  
    user-select: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
    z-index: 100;
}



#book-left-arrow:hover, #book-right-arrow:hover {
    filter: brightness(1.2);
    opacity: 0.85;
}

#book-left-arrow:active, #book-right-arrow:active {
    transform: scale(0.95);
}


#book-close-x {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-weight: bold;
    z-index: 101;
}
#book-close-x:hover {
    transform: scale(1.1);
}
#book-page-counter {
    image-rendering: pixelated;
    letter-spacing: 1px;
}
/* ================== Modal Styling ================== */

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-window {
    background: white;
    padding: 25px;
    border-radius: 15px;
    border: 4px solid #b8a5eb;
    text-align: center;
    max-width: 400px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid #b8a5eb;
    background: white;
    cursor: pointer;
    font-weight: bold;
}

.delete-confirm {
    background: #ff7675;
    color: white;
    border-color: #d63031;
}


#delete-all-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); 
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(2px);
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    border: 4px solid #b8a5eb; 
    text-align: center;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-content h2 {
    color: #4a3f6b;
    margin-top: 0;
}

.modal-content p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}


/* ================== Inventory Page ================== */
    
.inventory-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    width: 100%;
}

/* Title and Crystals */
.inventory-header-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    text-align: center;
}

.inventory-grids-wrapper {
    display: flex;
    flex-direction: row; /* Side by side */
    justify-content: center;
    align-items: flex-start;
    gap: 50px; /* Space between Library and Bag */
    width: 100%;
    flex-wrap: wrap; /* Allows stacking on mobile */
}

/* Left Section: Library */
.inventory-section {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
}

.inventory-icon {
    width: 100px;
    height: 100px;
    image-rendering: pixelated;
    object-fit: contain;
}
.forage-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}
.forage-item .inventory-icon {
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

/* Right Section: The Forage Bag */
.forage-bag-section {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
}

.bag-visual-container {
    position: relative;
    width: 320px;
    height: 320px;
}

.bag-background {
    width: 320px;
    height: 320px;
    image-rendering: pixelated; /* Sharp upscale */
    display: block;
}

/* The 2x2 Overlay Grid */
.forage-grid-overlay {
    position: absolute;
    top: 63.5%;
    left: 49%;
    transform: translate(-50%, -50%); 
    
    width: 110px; 
    height: 110px; 
    
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5px;    
    pointer-events: none; 
}

.forage-grid-overlay .item-slot {
    pointer-events: auto;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.forage-grid-overlay .item-quantity {
    background: #b8a5eb;
    font-weight: bold;
    border: 1px solid white;
    font-size: 10px;
    bottom: 1px;
    right: 1px;
}


.currency-vault {
    display: flex;
    justify-content: center;
}

.crystal-stat-card {
    background: white;
    border: 3px solid #b8a5eb;
    border-radius: 20px;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(184, 165, 235, 0.2);
}

.large-crystal-icon {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
}

.stat-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.stat-label {
    font-size: 14px;
    color: #8b63b5;
    font-weight: bold;
        margin-bottom: 10px;
}

.stat-value {
    font-size: 32px;
    font-family: "04b03", sans-serif;
    color: #3a2f3f;
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    background: rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 16px;
    border: 2px dashed #d6c4e8;
}

.empty-slot {
    aspect-ratio: 1/1;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid #e8dff0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8a5eb;
    font-size: 12px;
}

.item-slot {
    position: relative;

}
.item-quantity {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 11px;
    padding: 1px 4px;
    border-radius: 3px;
    pointer-events: none;
    z-index: 10;
    font-family: sans-serif;
}


#stack-selector {
    margin: 15px 0;
    padding: 10px;
    background: rgba(0,0,0,0.05);
    border-radius: 8px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
}

.quantity-controls input {
    width: 60px;
    text-align: center;
    font-family: '04b03', sans-serif;
    border: 2px solid #b8a5eb;
}

.quantity-controls button {
    width: 35px;
    height: 35px;
    padding: 2px;
    cursor: pointer;
    background: #b8a5eb;
    font-family: "04b03", sans-serif;
    font-size: 16px;
    color: white;
    border: none;
    border-radius: 4px;
}
.status-banner.success { color: green; font-weight: bold; }
.status-banner.error { color: red; font-weight: bold; }

.action-item-icon-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

#action-item-icon {
    width: 100px;  /* Upscaled 2x */
    height: 100px;
    image-rendering: pixelated;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

#action-item-description {
    font-size: 14px;
    line-height: 1.4;
    color: #4a3b28; /* Soft brown for fae feel */
    margin-bottom: 20px;
    padding: 0 10px;
    text-align: center;
    font-style: italic;
}

/* ================== Shop Styles ================== */

    .shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    padding: 20px;
}

.shop-item-card {
    background: #fff;
    border: 2px solid #e0d7f7;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    transition: 0.3s;
}

.shop-item-card:hover {
    transform: translateY(-5px);
    border-color: #b8a5eb;
}

.shop-item-name {
    font-size: 14px;
    color: #4a3728;
    margin-bottom: 10px;
}

.buy-button {
    background: #b8a5eb;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

.buy-button:hover {
    background: #a389d9;
}

.shop-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 160px;
    text-align: center;
    font-size: 0.9em;
}

.shop-item-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 8px;
    image-rendering: pixelated;
}

.shop-item.sold-out .shop-item-stock {
    color: #ff4d4d;
    font-weight: bold;
}


.shop-item-name { margin-bottom: 4px; color: #5a4a8d; }
.shop-item-stock { color: #888; font-size: 0.85em; margin-bottom: 4px; }
.shop-item-price { font-weight: bold; margin-bottom: 10px; }



.cancel-btn {
    background: none;
    border: 1px solid #ccc;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    margin-left: 10px;
}

   
   
.book-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 30px;
}

.book-card {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #b8a5eb;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s;
    min-width: 130px;
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-icon {
    width: 100px;
    height: 100px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
   
.footer-links {
    font-size: 13px;
    text-align: center;
}








/* misc */



   
   
.pixel-box {
  background-color: #fcf8f2; 
  border: 4px solid #5a3d2b; 
  box-shadow: 
    inset -4px -4px 0px 0px #d9c5b2,
    4px 4px 0px 0px rgba(0,0,0,0.1); 
  padding: 20px;
  max-width: 400px;
  margin: 40px auto;
  text-align: center;
  image-rendering: pixelated;
}

.pixel-box h2 {
  color: #8a67ab; 
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.pixel-box input[type="password"] {
  background: white;
  border: 3px solid #b8a5eb;
  padding: 10px;
  width: 80%;
  font-family: inherit;
  outline: none;
  margin-bottom: 15px;
}

.pixel-box input[type="password"]:focus {
  border-color: #8a67ab;
  background-color: #fff9ff;
}


#reset-button {
  background-color: #b8a5eb;
  color: white;
  border: none;
  border-bottom: 4px solid #8a67ab;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.1s;
}

#reset-button:active {
  border-bottom-width: 0px;
  margin-top: 4px;
}

/* Success/Error messages */
#message {
  font-size: 14px;
  min-height: 20px;
}




.helper-text {
  font-size: 0.75rem;
  color: #a0a0a0;
  margin-top: 4px;
}

.divider {
  border: 0;
  border-top: 1px solid #e0d7f7;
  margin: 25px 0;
}

.status-message {
  margin-top: 15px;
  text-align: center;
  font-size: 0.9rem;
  color: #5a4a8d;
}

  .card-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap; /* Helps on smaller screens */
}

.delete-btn-large {
    background: #ff7675 !important;
    color: white !important;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-family: "04b03", sans-serif;
    transition: transform 0.2s;
}

.delete-btn-large:hover {
    background: #d63031 !important;
    transform: scale(1.05);
}


#edit-profile-btn {
  bottom: 30px;
  right: 30px;
  background: #b8a5eb;
  color: white;
  border: 3px solid white;
  border-radius: 12px;
  padding: 10px 20px;
  font-family: "04b03", sans-serif;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 100;
}


#edit-profile-btn:hover {
  background: #a389e6;
  transform: scale(1.05);
}


.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
}


/* Tightening the Spacing */
.house-info {
    padding: 10px 15px; /* Reduced vertical padding */
    text-align: center;
}


.card-actions {
    display: flex;
    gap: 5px; /* Tighter gap between buttons */
    margin-top: 0; 
}

.inline-edit-input {
    font-family: inherit;
    font-size: 1.1em;
    font-weight: bold;
    color: #3a2f3f;
    border: 2px solid #b8a5eb;
    border-radius: 4px;
    padding: 2px 5px;
    width: 80%;
    text-align: center;
    outline: none;
    background: #fdf6ec;
}


/* Ensure images are 2x and sharp */
.pixel-art-2x {
    image-rendering: pixelated;
    width: 100%;       /* Fills the card container */
    max-width: 512px;  /* Adjust based on your original 256px art */
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Fix spacing issue mentioned in previous turn */
.house-info {
    padding: 10px;
    margin-top: -10px; /* Pulls info closer to the image */
}

.card-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
}



.house-preview-large img, 
.slot-preview img {
    image-rendering: pixelated; 
    image-rendering: crisp-edges; 
}



   
   
   
   



