@import url('https://fonts.googleapis.com/css2?family=VT323&family=Inter:wght@300;400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English&family=Spectral:ital@1&display=swap');

body {
  background: url("https://files.catbox.moe/y6c1y0.jpg") repeat;
  background-size: 400px;
  background-color: #0b1020;
  color: #e6e1d8;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.5);
}

/* room */
.room {
  max-width: 1300px;
  width: 90%;
  margin: 10vh auto;
  padding: 1.5rem;
  background: #121b33;
  border: 1px solid #2a355c;
  box-shadow: 0 0 40px rgba(15, 22, 41, 0.9);
}

/* fairy lights */
.fairylights {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.fairylights span {
  width: 8px;
  height: 8px;
  background: #f2c879;
  border-radius: 50%;
  filter: blur(0.3px);
  box-shadow:
    0 0 6px rgba(242,200,121,0.8),
    0 0 12px rgba(242,200,121,0.5);
  animation: twinkle 6s ease-in-out infinite;
}

.fairylights span:nth-child(even) { animation-delay: 2s; }
.fairylights span:nth-child(3n) { animation-delay: 1s; }
.fairylights span:nth-child(odd) {
  transform: translateY(-2px);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ===== MAIN GRID LAYOUT ===== */

.floor {
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  grid-template-rows: auto auto;
  gap: 1.5rem;
  align-items: start;
}

/* Left column */
.left-column {
  grid-column: 1;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Header spans columns 2 and 3, row 1 */
.header-section {
  grid-column: 2 / 4;
  grid-row: 1;
}

/* Center column containers */
.center-column {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Right column containers */
.right-column {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* header */
.bed-header {
  background: 
    linear-gradient(rgba(26,36,66,0.85), rgba(26,36,66,0.85)),
    url("https://files.catbox.moe/evvfb2.jpg");
  background-size: cover;
  background-position: center;
  border: 1px solid #2a355c;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.bed-header h1 {
  font-family: 'VT323', monospace;
  font-size: 3rem;
  color: #f2c879;
  margin: 0;
}

.bed-header p {
  color: #b8b2a7;
  margin: 0.5rem 0 0 0;
}

/* ===== NAVIGATION BAR ===== */

.navigation-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-tab {
  font-family: 'VT323', monospace;
  font-size: 1.4rem;
  color: #f2c879;
  text-decoration: none;
  background: #121b33;
  border: 1px dashed #2a355c;
  padding: 0.8rem 1.6rem;
  transition: all 0.2s ease;
  text-transform: lowercase;
  border-radius: 3px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.3);
}

.nav-tab:hover {
  background: #2a355c;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(242,200,121,0.3);
}

/* boxes */
.box {
  background: #0f1629;
  border: 1px solid #2a355c;
  padding: 1.2rem;
  box-sizing: border-box;
  min-width: 0;
}

.box h2 {
  font-family: 'VT323', monospace;
  color: #f2c879;
  font-size: 1.6rem;
  margin: 0 0 0.5rem 0;
}

.box p {
  margin: 0;
}

.subtitle {
  font-style: italic;
  color: #b8b2a7;
  margin-bottom: 0.8rem;
  display: block;
}

.hello-card p,
.about-card p {
  white-space: pre-line;
  font-family: 'IM Fell English', serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #ddd7cc;
  max-width: 90%;
}

/* memory box */
.memory-box {
  background: #0d1426;
}

.memories {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0.8rem 0;
}

.memories li {
  margin-bottom: 0.5rem;
}

.open-box {
  display: inline-block;
  margin-top: 0.8rem;
  color: #b084ff;
  text-decoration: none;
}

.open-box:hover {
  text-decoration: underline;
}

/* ===== ABOUT CARD ===== */

.about-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.about-title {
  font-family: 'VT323', monospace;
  color: #f2c879;
  font-size: 1.6rem;
  margin: 0 0 0.5rem 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.about-icon {
  width: 150px;
  height: auto;
  flex-shrink: 0;
  border-radius: 4px;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.4));
}
.about-icon {
  transition: 
    transform 0.35s ease,
    filter 0.35s ease,
    box-shadow 0.35s ease;
}

.about-icon:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.05) contrast(1.05);
  box-shadow: 0 6px 18px rgba(242, 200, 121, 0.25);
  cursor: pointer;
}


.about-text {
  line-height: 1.4;
  color: #e6e1d8;
  max-width: 280px;
}

/* ===== TRINKET BOX ===== */

.trinket-box {
  background: #2a2218;
  border: 2px solid #3a2f22;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}

.trinket-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.03) 2px,
    transparent 2px,
    transparent 6px
  );
  pointer-events: none;
}

.trinket-box h2,
.trinket-box .subtitle {
  position: relative;
  z-index: 1;
}

.trinket-box h2 {
  background: rgba(0,0,0,0.15);
  padding: 4px 8px;
  display: inline-block;
  border-radius: 2px;
}

.trinket:nth-child(2) { transform: translateY(3px); }
.trinket:nth-child(4) { transform: translateX(-2px); }

.trinket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 1.2rem;
  margin-top: 0.8rem;
  position: relative;
  z-index: 1;
}

.trinket {
  text-decoration: none;
  text-align: center;
  color: #f0e6d2;
  display: block;
}

.trinket img {
  width: 70px;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.trinket:hover img {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 0 6px rgba(255,220,160,0.6));
}

.trinket-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #d8c7a8;
  opacity: 0.85;
}

.hello-card {
  overflow-wrap: break-word;
}

/* ===== MUSIC PLAYER STYLES ===== */

@font-face {
  font-family: "Myriad Pro";
  src: url("https://dl.dropbox.com/scl/fi/z8hqw29h8a9i3a3cbbxkt/MYRIADPRO-REGULAR.OTF?rlkey=begwqxljs2gzyw26h00oeovzi&st=px0mbeax&dl=0") format("woff");
}

.music-widget {
  padding: 1rem;
}

.music-widget .player {
  width: fit-content;
  border: #CECECE solid 2px;
  border-radius: 100px;
  margin: 0 auto;
  background: linear-gradient(0deg, rgba(205,205,205,1) 0%, rgba(230,230,230,1) 30%, rgba(255,255,255,1) 100%); 
  padding: 5px;
  transform: rotate(-1deg);
}

.music-widget .window, .music-widget .title-bar {
  font-family: "Myriad Pro", sans-serif;
  -webkit-font-smoothing: none;
  font-size: 11px;
}

.music-widget .window {
  padding: 6px;
  width: 240px;
  transform: scale(0.85);
  transform-origin: center;
}

.music-widget .window-body { 
  display: block;
  margin: auto; 
  border-radius: 0;
}

.music-widget .flex {
  display: flex;
}

.music-widget #musicplayer {
  display: block;
  float: right;
  background: linear-gradient(0deg, #F1E3F0, white) padding-box, linear-gradient(to top, white, #A2A2A2) border-box;
  border-radius: 60em;
  border: 2px solid transparent;
  margin-left: 8px;
  padding-left: 10px;
  box-shadow: 1px 1px 10px 0px rgba(128,128,128,0.27) inset;
}

.music-widget .wheel {
  display: block;
  justify-content: center;
  margin: auto;
  background: linear-gradient(white, white) padding-box, linear-gradient(to top, white, #A2A2A2) border-box;
  border-radius: 50em;
  border: 2px solid transparent;
  padding-top: 0;
  box-shadow: 1px 1px 10px 0px rgba(128,128,128,0.27) inset;
}

.music-widget .innerwheel {
  border-radius: 50em;
  border: 2px solid #E2E2E2;
  padding: 9px;
  padding-left: 10px;
  padding-right: 12px;
  margin: 0;
  box-shadow: 1px 1px 10px 0px rgba(128,128,128,0.17) inset;
}

.music-widget th {
  width: 20px;
  margin: 0;
}

.music-widget .wheelcontrols {
  font-size: 14px !important;
  text-align: left;
  padding-top: 2px;
  color: #aaa;
  opacity: 0.8;
}

.music-widget .wheelcontrols button {
  background: none;
  border: none;
  color: #aaa;
  opacity: 0.6;
  font-size: 14px;
  padding: 2px;
  cursor: pointer;
  min-width: 20px;
  min-height: auto;
}

.music-widget .wheelcontrols button:hover {
  opacity: 1;
}

.music-widget .controls button:hover {
  opacity: 1;
}

.music-widget .playpause-track {
  font-size: 22px !important;
  padding: 3px;
  color: #C1C1C1;
}

.music-widget .songtitle {
  padding: 25px;
  color: #A3A3A3;
  padding-bottom: 0;
  margin-left: 15px;
  margin-right: 20px;
  font-size: 16px;
  display: block;
  font-family: "Myriad Pro", sans-serif;
}

.music-widget .controls button {
  display: block;
  margin-left: 15px;
  font-size: 14px !important;
  text-align: center;
  color: #ccb3be;
  opacity: 0.6;
  background: none;
  border: none;
  min-width: 20px;
  min-height: auto;
  padding: 2px;
}

.music-widget button:active {
  opacity: 0.7;
}

.music-widget .seeking {
  display: flex;
  justify-content: space-evenly;
  padding: 10px;
  padding-left: 0;
  padding-bottom: 0;
  color: #A3A3A3;
}

.music-widget .current-time {
  padding-right: 5px;
}

.music-widget .total-duration {
  padding-left: 5px;
}

.music-widget .seek_slider {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: 6px;
  background: #e4d5dc;
  opacity: 0.7;
  transition: opacity .2s;
  border-radius: 8px;
  width: 100%;
}

.music-widget .seek_slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 8px;
  height: 8px;
  background: white;
  cursor: pointer;
  border-radius: 50%;
  border: 1px solid #cecece;
  position: relative;
  bottom: 3px;
}

.music-widget .seek_slider::-moz-range-thumb {
  width: 8px;
  height: 8px;
  background: white;
  cursor: pointer;
  border-radius: 50%;
  border: 1px solid #cecece;
}

.music-widget input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 2px;
  cursor: pointer;
}

.music-widget input[type=range]::-moz-range-track {
  width: 100%;
  height: 2px;
  cursor: pointer;
}

.music-widget input[type=range]:focus {
  outline: none;
}

/* ===== FAKE WINDOW ===== */

.fake-window.window-frame {
  border: 5px solid #2a355c;
  padding: 4px;
  background: #000;
  box-shadow:
    inset 0 0 20px rgba(0,0,0,0.6),
    0 0 10px rgba(0,0,0,0.4);
}

.fake-window-video {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  filter: contrast(1.1) brightness(0.9);
  border: none;
}

/* ===== BLINKIES & STAMPS BOX ===== */

.blinkies-box {
  background: #0c1325;
}

.blinkie-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 0.8rem;
  justify-content: flex-start;
  align-items: center;
  padding: 10px;
}

.blinkie-grid img {
  width: 88px;
  height: 31px;
  transform: scale(1.8);
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
  margin: 10px;
}

.blinkie-grid img:hover {
  transform: scale(1.9);
  filter: brightness(1.1);
  cursor: pointer;
}

/* ===== GUESTBOOK ===== */

.guestbook {
  background: #10182f;
  border: 1px dashed #2a355c;
}

.guestbook-instruction {
  font-size: 0.8rem;
  color: #8c87a6;
  margin-bottom: 0.5rem;
  font-style: italic;
}

/* ===== DIVIDER ===== */

.bracelet-divider {
  margin: 1.5rem 0;
}

.bracelet-tile {
  height: 36px;
  width: 100%;
  background-image: url("https://files.catbox.moe/51n2my.jpg");
  background-repeat: repeat-x;
  background-size: auto 100%;
  filter: drop-shadow(0 0 6px rgba(242,200,121,0.35));
  opacity: 0.9;
}

/* ===== PAGE CONTENT LAYOUT ===== */

.page-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-content .box {
  margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
  .floor {
    grid-template-columns: 1fr;
  }
  
  .left-column,
  .header-section,
  .center-column,
  .right-column {
    grid-column: 1;
  }
  
  .left-column {
    grid-row: auto;
  }
}
/* ===== DIARY POPUP ===== */

#scrapbook-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 20, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

#scrapbook-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

#scrapbook-window {
  position: relative;
  width: min(900px, 90vw);
  height: 90vh;
  overflow-y: auto;

  background-image: url("https://files.catbox.moe/1oi913.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top center;
  background-color: #0f1629;

  border: 2px solid #2a355c;
  box-shadow:
    0 0 0 6px rgba(242,200,121,0.08),
    0 30px 80px rgba(0,0,0,0.7);
}

/* close button */
#scrapbook-close {
  position: sticky;
  top: 10px;
  margin-left: auto;
  margin-right: 10px;
  background: rgba(0,0,0,0.6);
  border: 1px solid #f2c879;
  color: #f2c879;
  font-size: 1.5rem;
  padding: 4px 10px;
  cursor: pointer;
  z-index: 2;
}