/* ===== GLOBAL 90s CRT VIBE ===== */
body{
  margin:0;
  padding:0;
  color:#fff;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  background:#000 url("stars.png") repeat;
}

/* Keep site content above overlays */
.site{
  position:relative;
  z-index:10;
}

/* ===== LAYOUT ===== */
.wrap{
  width:900px;
  margin:20px auto 40px;
  border:3px outset #666;
  background:#0b0b0b;
  box-shadow: 0 0 0 3px #ff00cc;
}

/* ===== HEADER / LOGO ===== */
.header{
  text-align:center;
  margin-top:20px;
}

.logoRow{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:10px 0 4px;
}

.logo{
  width:400px;
  max-width:95%;
  height:auto;
}

.spinThing{
  width:54px;
  height:54px;
  animation: spin 1.8s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255,0,204,.35));
}

@keyframes spin{ to{ transform:rotate(360deg); } }

/* ===== NAVBAR ===== */
.navbar{
  padding:10px 12px;
  border-bottom:2px groove #444;
  background: linear-gradient(#222, #060606);
  text-align:center;
}

.navbar a{
  color:#00ff66;
  text-decoration:none;
  font-weight:900;
  margin:0 10px;
  display:inline-block;
}

.navbar a:hover{
  color:#ff4bd6;
  text-decoration:underline;
}

/* ===== PORTAL STAGE + HERO (hero.png) ===== */
.portal{
  position:relative;
  width:900px;
  height:600px;
  margin:0 auto;
  overflow:hidden;
  background:#000;
  border-top:1px solid #111;
}

.portal img.hero{
  position:absolute;
  top:0; right:0; bottom:0; left:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  z-index:1;
}

/* ===== PORTAL LINKS (no duplicates) ===== */
.portalGif{
  position:absolute;
  display:block;
  width:150px;
  height:auto;
  z-index:5;
  pointer-events:auto;
  filter: drop-shadow(0 0 10px rgba(255,0,204,.45));
  transition: transform .2s ease, filter .2s ease;
}

.portalGif img{
  width:100%;
  height:auto;
  display:block;
}

.portalGif:hover{
  transform: scale(1.06);
  filter: drop-shadow(0 0 16px rgba(255,75,214,.75));
}

/* Positions (matches your original 900px layout) */
.portalGif.rosamultiverse{ left: 70px;  top: 90px;  width:150px; }
.portalGif.houseofsances{ left: 140px; top: 380px; width:170px; }
.portalGif.nirvana{       left: 420px; top: 110px; width:150px; }
.portalGif.girlland{      left: 650px; top: 260px; width:150px; }
.portalGif.up8{           left: 770px; top: 90px;  width:140px; }

/* ===== CYBER ROSA (floating PNG, no box) ===== */
.cyberRosa{
  position:fixed;
  right:24px;
  bottom:18px;
  width:200px;
  max-width:42vw;
  z-index:9999;
  animation: rosaFloat 5s ease-in-out infinite;
  pointer-events:none;
  filter: drop-shadow(0 0 12px rgba(255,0,204,.35));
}

@keyframes rosaFloat{
  0%{ transform:translateY(0); }
  50%{ transform:translateY(-12px); }
  100%{ transform:translateY(0); }
}

/* ===== ENTERING PAGES ===== */
.enter{
  padding:30px;
  text-align:center;
}

.enterBox{
  width:760px;
  max-width:92vw;
  margin:0 auto;
  padding:20px;
  border:3px inset #666;
  background:#000;
}

.bigTitle{
  font-size:28px;
  font-weight:900;
  color:#ff4bd6;
  text-shadow:2px 2px 0 #000;
  margin-bottom:8px;
}

.subTitle{
  font-size:14px;
  color:#00ff66;
  margin-bottom:18px;
}

.loading{
  display:inline-block;
  font-family:"Courier New", monospace;
  font-size:14px;
  color:#fff;
  letter-spacing:2px;
  animation: blink 0.9s infinite;
}

@keyframes blink{
  0%,49%{ opacity:1; }
  50%,100%{ opacity:0.2; }
}

/* ===== SECTION PAGES ===== */
.panel{
  position:relative;
  width:900px;
  min-height:480px;
  background:#000;
}

.panel .hud,
.panel .frame{
  position:absolute;
  top:0; right:0; bottom:0; left:0;
  width:100%;
  height:100%;
  pointer-events:none;
}

.sectionContent{
  position:relative;
  padding:26px 30px;
  z-index:2;
}

.sectionContent h1{
  margin:0 0 10px 0;
  color:#b8ff5a;
  text-shadow:2px 2px 0 #000;
}

.sectionContent p{
  line-height:1.5;
}

.sectionContent a{
  color:#00ff66;
  font-weight:900;
}

.sectionContent a:hover{
  color:#ff4bd6;
}

/* ===== Responsive tweaks ===== */
@media (max-width: 940px){
  .wrap{ width:94vw; }
  .portal{ width:94vw; height:62.6vw; } /* keeps ~900x600 ratio */
}
/* ===== ROSA SPEECH BUBBLE (no box UI, just bubble) ===== */
.rosaBubble{
  position:fixed;
  right:240px;         /* sits left of CyberRosa */
  bottom:120px;
  width:320px;
  max-width:60vw;
  z-index:10000;
  color:#111;
  font-family: Verdana, Tahoma, Arial, sans-serif;
}

.rosaBubbleInner{
  background:#efe3b8;
  border:3px solid #555;
  box-shadow:4px 4px 0 #000;
  padding:10px 12px 10px;
  position:relative;
}

/* bubble tail */
.rosaBubbleInner:after{
  content:"";
  position:absolute;
  right:-14px;
  bottom:26px;
  width:0;
  height:0;
  border-top:10px solid transparent;
  border-bottom:10px solid transparent;
  border-left:14px solid #efe3b8;
}

/* ===== ROSA SPEECH BUBBLE ===== */
.rosaBubble{
  position:fixed;
  right:240px;
  bottom:140px;
  z-index:10000;
  max-width:62vw;
  color:#111;
}

.rosaBubbleInner{
  display:inline-block;
  max-width:340px;
  background:#efe3b8;
  border:3px solid #111;
  border-radius:22px;
  padding:12px 14px 10px;
  position:relative;
  box-shadow:0 6px 0 rgba(0,0,0,0.35);
}

/* bubble tail */
.rosaBubbleInner:before{
  content:"";
  position:absolute;
  right:-10px;
  bottom:18px;
  width:18px;
  height:18px;
  background:#efe3b8;
  border:3px solid #111;
  border-left:0;
  border-top:0;
  transform:rotate(-25deg);
  border-bottom-right-radius:6px;
}

.rosaBubbleInner:after{
  content:"";
  position:absolute;
  right:6px;
  bottom:10px;
  width:18px;
  height:18px;
  background:#efe3b8;
  transform:rotate(-25deg);
}

.rosaBubbleName{
  font-weight:900;
  font-size:12px;
  margin-bottom:6px;
}

.rosaBubbleText{
  font-size:13px;
  line-height:1.35;
  white-space:pre-wrap;
}

.rosaBubbleHint{
  margin-top:8px;
  font-weight:900;
  font-size:12px;
  animation:bubbleBlink .9s steps(1,end) infinite;
}

@keyframes bubbleBlink{
  50%{opacity:0;}
}
.buddhaBase{
  position:absolute;

  left:64%;     /* shift right to match the baked glow */
  top:61%;      /* place it on the water glow */

  transform:translate(-50%, -50%);

  width:380px;
  pointer-events:none;
  z-index:6;
}
/* ===== PORTAL LABELS ===== */
.portal{
  position:relative;
}

.portalLabels{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  pointer-events:none;
}

.portalLabels span{
  position:absolute;
  color:#ffffff;
  font-size:12px;
  font-family:Verdana, Arial, sans-serif;
  text-shadow:0 0 6px #000;
  white-space:nowrap;
}
/* =========================================================
   FIX: PORTAL STAGE (keeps image-map coords aligned)
   ========================================================= */
.portal{
  position: relative;
  width: 900px;          /* IMPORTANT: match your map coords */
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
  border-top: 1px solid #111;
}

.portal img.hero{
  display: block;
  width: 900px;          /* IMPORTANT: match your map coords */
  max-width: 100%;
  height: auto;
}

/* =========================================================
   HEADER SKELETONS
   ========================================================= */
.skeleton{
  width: 90px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(255,0,204,.35));
}

/* =========================================================
   PORTAL LABELS (optional text on top of hero)
   ========================================================= */
.portalLabels{
  position:absolute;
  inset:0;
  pointer-events:none;     /* labels won't block clicks */
  z-index: 6;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-weight: 900;
  color: #b8ff5a;
  text-shadow: 2px 2px 0 #000;
  font-size: 12px;
}

.portalLabels span{
  position:absolute;
  padding: 3px 6px;
  border: 2px outset #666;
  background: rgba(0,0,0,0.75);
  white-space: nowrap;
}

/* =========================================================
   BUDDHA BASE overlay
   (adjust left/top/width to move it)
   ========================================================= */
.buddhaBase{
  position:absolute;
  z-index: 7;
  width: 290px;      /* <- bigger = increase this */
  height: auto;

  left: 578px;       /* <- move right: increase */
  top: 340px;        /* <- move down: increase */
  pointer-events:none;
}

/* =========================================================
   CYBER ROSA (bottom-right)
   ========================================================= */
.cyberRosa{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 130px;
  height: auto;
  z-index: 9998;
  pointer-events: none;
  filter: drop-shadow(0 0 14px rgba(255,0,204,.45));
}

/* =========================================================
   ROSA SPEECH BUBBLE (simple, no big RPG box)
   ========================================================= */
.rosaBubble{
  position: fixed;
  right: 160px;  /* sits left of cyberRosa */
  bottom: 34px;
  width: min(320px, 72vw);
  z-index: 9999;
  pointer-events: auto;
}

.rosaBubbleInner{
  background: #efe3b8;
  border: 4px solid #555;
  box-shadow: 4px 4px 0 #000;
  padding: 10px 12px;
  color: #111;
  border-radius: 12px;
  position: relative;
}

/* little tail pointing to cyberRosa */
.rosaBubbleInner::after{
  content:"";
  position:absolute;
  right:-14px;
  bottom: 18px;
  border-width: 10px 0 10px 14px;
  border-style: solid;
  border-color: transparent transparent transparent #555;
}

.rosaBubbleInner::before{
  content:"";
  position:absolute;
  right:-10px;
  bottom: 20px;
  border-width: 8px 0 8px 12px;
  border-style: solid;
  border-color: transparent transparent transparent #efe3b8;
}

.rosaBubbleName{
  font-weight: 900;
  margin-bottom: 6px;
}

.rosaBubbleText{
  font-size: 14px;
  line-height: 1.35;
  min-height: 44px;
}

.rosaBubbleHint{
  margin-top: 8px;
  font-weight: 900;
  opacity: 0.8;
  animation: rbBlink 0.9s steps(1,end) infinite;
}

@keyframes rbBlink{ 50%{ opacity:0; } }

/* Mobile tweaks */
@media (max-width: 520px){
  .cyberRosa{ width: 105px; right: 10px; bottom: 10px; }
  .rosaBubble{ right: 125px; bottom: 18px; width: min(280px, 70vw); }
  /* Portal labels: no boxes, just glowing text */
  /* ===== FORCE STARS BACKGROUND (LAST RULE WINS) ===== */
html, body{
  height:100%;
}

/* ===== GUESTBOOK ===== */

.guestbook{
  padding:30px;
  color:#fff;
}

.guestbook input,
.guestbook textarea{
  width:100%;
  margin:8px 0;
  padding:8px;
  background:#000;
  color:#00ff66;
  border:2px inset #666;
  font-family:Verdana;
}

.guestbook button{
  background:#111;
  color:#ff4bd6;
  border:2px outset #666;
  padding:6px 12px;
  cursor:pointer;
}

.entry{
  margin-top:14px;
  padding:10px;
  border:2px groove #444;
  background:#050505;
}
body{
  margin:0;
  padding:0;
  color:#fff;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  background:#000 url("stars.png") repeat;

  cursor: url("cursor.png"), auto;
}