/* =========================
   THEME / GLOBAL
   ========================= */
:root{
  --main-w: 900px;
  --rail-w: 360px;
  --rail-gap: 22px;

  --panel-bg: #470000;
  --panel-shadow: 0 0 0.9rem 0.9rem #470000;

  --hotpink: #ff2f92;
  --softpink: #f7abcf;

  --glitter: url("https://wallpapers.com/images/hd/purple-glitter-1920-x-1080-v57hrspv7eeohb83.jpg");
}

*{
  cursor: url("https://cur.cursors-4u.net/nature/nat-6/nat586.cur"), auto;
  box-sizing: border-box;
}

::selection{ background: var(--softpink); color: #fff; }
a{ text-decoration: none; color: purple; }
html{ overflow-y: scroll; overflow-x: hidden; }

body{
  margin:0;
  padding:0;
  background-image: url("https://i.giphy.com/voDNhxZxi6ZLq.webp");
  background-attachment: fixed;
  background-repeat: repeat;
}

/* Scrollbars (FIXED: defined globally, not nested inside a class) */
::-webkit-scrollbar{ width: 12px; }
::-webkit-scrollbar-track{ background: #000; }
::-webkit-scrollbar-thumb{ background: #41073D; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover{ background: #5a0d4f; }

/* =========================
   PAGE LAYOUT
   ========================= */
.page{
  max-width: calc(var(--rail-w) + var(--main-w) + var(--rail-w) + (2 * var(--rail-gap)));
  margin: 0 auto;
  padding: 18px 14px 40px;
  display: grid;
  grid-template-columns: var(--rail-w) minmax(320px, var(--main-w)) var(--rail-w);
  gap: var(--rail-gap);
  align-items: start;
}

.rail{
  position: sticky;
  top: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 10;
  min-width: 0;
}

/* Stack earlier (your “minimize screen” behavior) */
@media (max-width: 1400px){
  :root{ --rail-w: 320px; --rail-gap: 16px; }
  .page{
    grid-template-columns: 1fr;
    max-width: 960px;
  }
  .rail{ position: static; }
}

/* =========================
   SHARED PANEL LOOK
   ========================= */
.panel{
  border: 8px dashed black;
  background: var(--panel-bg);
  box-shadow: var(--panel-shadow);
  padding: 10px;
}

/* =========================
   TOP WELCOME
   ========================= */
.welcome{
  height: 200px;
  display: grid;
  place-items: center;
  margin-bottom: -80px;
  overflow: visible;
}

.welcome .welcome-scale{
  display:inline;
  transform: scale(200%);
  transform-origin:center;
}

@media (max-width: 800px){
  .welcome{ height: 170px; }
  .welcome .welcome-scale{ transform: scale(1); }
}

/* =========================
   LEFT LOGO
   ========================= */
.left-logo img{
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  transition: transform .2s ease, filter .2s ease;
}
.left-logo img:hover{
  transform: scale(1.03);
  filter: drop-shadow(0 0 10px rgba(255,105,180,.55));
}

/* =========================
   LEFT NAV BOX
   ========================= */
.side-nav{
  border: 2px solid #280741;
  background: var(--glitter) center/cover;
  padding: 18px;
  color: #fff;
  font-family: Georgia, serif;
}

.nav-group{ display:flex; flex-direction:column; gap:6px; margin-bottom: 16px; }

.nav-title{
  font-size: 18px;
  color: #fff;
  margin-bottom: 6px;
  text-shadow: 0 0 8px rgba(255,0,153,.35);
}

.side-link{
  display:inline;
  padding: 7px 10px;
  color: #DBB89A;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,105,180,.35);
  border-radius: 10px;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}

.side-link:hover{
  transform: translateY(-2px);
  filter: drop-shadow(0 0 8px rgba(255,0,153,.55));
  background: rgba(0,0,0,.5);
}

/* =========================
   MAIN PANEL
   ========================= */
.main{
  min-height: 200px;
  overflow: hidden;
}

/* =========================
   TOP NAV BUTTONS
   ========================= */
.nav-buttons{
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  display:flex;
  gap: 12px;
  justify-content:center;
}
.nav-buttons a{ flex:1; display:block; min-width: 140px; }

.nav-btn{
  width:100%;
  padding: 14px 0;
  font-size:16px;
  border:2px solid #280741;
  background-image: var(--glitter);
  background-size:cover;
  color:#fff;
  cursor:pointer;
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
  box-shadow: 0 6px 0 black;
}
.nav-btn:hover{ filter:brightness(1.06); transform: translateY(-10px); }
.nav-btn:active{ transform: translateY(4px) scale(.98); box-shadow: 0 2px 0 black; }

@media (max-width: 600px){
  .nav-buttons{ flex-wrap: wrap; }
  .nav-buttons a{ flex: 1 1 200px; }
}

/* =========================
   ABOUT MODULE
   ========================= */
.profile-module{
  width:100%;
  margin-top: 24px;
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  align-items:start;
  min-width: 0;
}
@media (max-width: 900px){
  .profile-module{ grid-template-columns: 1fr; }
}

.hover-pic{
  display:inline;
  line-height:0;
  border-radius: 12px;
  transition: transform .18s ease, filter .18s ease;
  will-change: transform, filter;
  justify-self: start;
}

.hover-pic img{
  display:block;
  width: 260px;
  height:auto;
  border-radius: 12px;
  transition: transform .18s ease, filter .18s ease;
  max-width: 100%;
}

.hover-pic:hover img{
  transform: translateY(-3px) scale(1.03);
  filter: drop-shadow(0 0 10px rgba(255,0,153,.55));
}

.about-box{
  margin-top: 100px;
  border-radius: 14px;
  background: rgba(255,105,180,.12);
  border: 2px solid rgba(255,105,180,.45);
  box-shadow: 0 0 16px rgba(255,0,153,.18);
  padding: 10px;
  min-width: 0;
}

@media (max-width: 1400px){
  .about-box{ margin-top: 18px; }
}

.about-grid{
  display:grid;
  grid-template-columns: 1fr 130px;
  gap: 14px;
  align-items:start;
}
@media (max-width: 520px){
  .about-grid{ grid-template-columns: 1fr; }
}

.about-title{
  font-size:16px;
  letter-spacing:.5px;
  margin-bottom:8px;
  color:#fff;
  text-shadow: 0 0 8px rgba(255,0,153,.35);
}

.about-content{
  min-height: 220px;
  max-height: 470px;
  overflow:auto;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,105,180,.35);
  color:#fff;
  font-size: 22px;
  line-height:1.35;
  outline:none;
}

.about-links{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
  max-height: 300px;
  overflow:auto;
  padding-right:2px;
}
@media (max-width: 520px){
  .about-links{
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-height: none;
    overflow: visible;
  }
}

.img-btn{ display:inline; line-height:0; border-radius:12px; }
.img-btn img{
  width: 115px;
  height:auto;
  border-radius:12px;
  transition: transform .18s ease, filter .18s ease;
  max-width: 100%;
}
.img-btn:hover img{
  transform: translateY(-3px) scale(1.03);
  filter: drop-shadow(0 0 10px rgba(255,0,153,.55));
}

/* =========================
   STATUS + GUESTBOOK
   ========================= */
.status-box{
  width:100%;
  max-width: 860px;
  margin: 40px auto 0;
  background: rgba(255,255,255,.9);
  border: 4px dashed black;
  padding:15px;
  color:#000;
}

.status-song{ display:flex; align-items:center; gap:6px; margin: 6px 0 8px; }

.guestbook-box{
  width:100%;
  max-width: 860px;
  margin: 30px auto 0;
  background-image: var(--glitter);
  background-size:cover;
  border: 4px dashed black;
  padding:15px;
}

.guestbook-box h3{ margin:0 0 10px; color:#fff; }

.guestbook-frame{
  width:100%;
  height: 520px;
  border:2px solid black;
  background:#000;
}

/* =========================
   BUTTONS (scrollable area under guestbook)
   ========================= */
.button-scroll-area{
  max-height: 220px;
  overflow-y: auto;
  padding: 10px;
  border: 5px dashed #FF00AE;
  background: #4b1b5a;
  margin-top: 12px;
}

.my-button-section{ text-align: center; }

.button-title{
  font-weight: bold;
  margin-bottom: 25px;
  color: #ffffff;
}

.button-row{
  margin-bottom: 6px;
  display: flex;
  justify-content: center;
}

.web-button{
  width: 88px;
  height: 31px;
  image-rendering: pixelated;
  display: block;
}

.button-code{
  width: 50%;
  height: 70px;
  font-size: 12px;
  resize: none;
  margin-top: 6px;
  box-sizing: border-box;
}

/* FIXED: your divider rule was invalid; keep it visually “a line” */
.button-divider{
  border: 0;
  border-top: 2px dashed #FF00AE;
  margin: 10px 0;
}

.friends-buttons{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

@media (max-width: 520px){
  .button-scroll-area{ max-height: 260px; }
}

/* =========================
   RIGHT RAIL
   ========================= */
.chococat-side{
  width: 100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 10px;
  min-width: 0;
}

.chococat-side img{
  cursor:pointer;
  display:block;
  transition: transform .2s ease, filter .2s ease;
  max-width: 100%;
  height: auto;
}
.chococat-side img:hover{
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(255,0,153,.6));
}

.chococat-text{
  padding: 4px 8px;
  background: var(--softpink);
  color:#000;
  font-size:12px;
  letter-spacing:.4px;
  border: 2px solid black;
  box-shadow: 0 3px 0 black;
  width: fit-content;
  text-align:center;
}

.guest-counter{ display:flex; flex-direction:column; align-items:center; gap:6px; }

.guest-counter-label{
  padding: 3px 8px;
  background: var(--softpink);
  color:#000;
  font-size:11px;
  letter-spacing:.4px;
  border:2px solid black;
  box-shadow: 0 3px 0 black;
  border-radius:6px;
  text-align:center;
}

.charlie-img{
  width: 100%;
  max-width: 250px;
  border-radius:6px;
  box-shadow: 0 0 10px rgba(255,0,153,.35);
}

.charlie-text-wrap{
  padding: 6px 10px;
  background:#000;
  border:1px solid black;
  box-shadow: 0 2px 0 black;
  display:flex;
  justify-content:center;
  width: 100%;
  max-width: 280px;
}

.charlie-text{
  width: 230px;
  height:auto;
  display:block;
  max-width: 100%;
}

/* =========================
   FOOTER
   ========================= */
.site-footer{
  margin: 22px auto 0;
  padding: 8px 12px;
  width: fit-content;
  background: var(--hotpink);
  color:#fff;
  font-size:12px;
  border:2px solid black;
  box-shadow: 0 4px 0 black;
  text-align:center;
}
