body {
  background-color: #12002b;
  background-image: url("https://www.transparenttextures.com/patterns/stardust.png");
  color: #f8f0ff;
  font-family: Verdana, Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  width: 800px;
  margin: 30px auto;
  background-color: #1e0d3a;
  border: 4px solid #ff4fd8;
  padding: 20px;
  box-shadow: 0 0 15px #000;
}

h1 {
  text-align: center;
  color: #00f7ff;
  font-size: 42px;
  margin-bottom: 10px;
}

.tagline {
  text-align: center;
  color: #ffd700;
  font-style: italic;
}

.nav {
  text-align: center;
  margin: 20px 0;
  padding: 10px;
  background-color: #2a1450;
  border: 2px dashed #00f7ff;
}

.nav a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}

.nav a:hover {
  color: #ffea00;
}

.content {
  background-color: #241244;
  padding: 15px;
  border: 2px solid #8d5cff;
}

.footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #cccccc;
}

body.reststop {
  background-color: #080914;
  background-image: url("reststop-bg.jpg");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

body.home {
  background-image: url("home-bg.jpg");
  background-repeat: repeat;
  background-attachment: fixed;
}

body.games {
  background-color: #120028;
  background-image: url("games-bg.jpg?v=3");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

body.comics {
  background-color: #240038;
  background-image: url("comics-bg.jpg");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

body.cartoons {
  background-color: #260042;
  background-image: url("cartoons-bg.jpg");
  background-repeat: repeat;
  background-attachment: fixed;
}

body.godzilla {
  background-color: #200030;
  background-image: url("godzilla-bg.png");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

#blob-widget {
  position: fixed;
  top: 150px;
  width: 380px;
  z-index: 9999;
  text-align: center;
  right: calc((100vw - 1560px) / 4);
}

#blob-widget .blob-screen-title{
  text-align: center;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: bold;
  color: #0f380f;
  margin-bottom: 6px;
}

#blob-widget .gb-screen {
  width: 100%;
  padding: 10px;
  background: #9bbc0f;
  border: 4px solid #0f380f;
  box-shadow: 0 0 10px #000;
  font-family: 'Courier New', monospace;
  color: #0f380f;
  box-sizing: border-box;
}

#blob-widget .blob-ui {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
  text-align: center;
}

#blob-widget .blob-ui div {
  white-space: nowrap;
  font-size: 15px;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}

#blob-widget .blob-habitat {
  position: relative;
  width: 100%;
  height: 210px;
  background: linear-gradient(to top, #8bac0f 0 75%, #9bbc0f 75% 100%);
  border: 3px solid #0f380f;
  overflow: hidden;
}

#blob-widget .waterfall {
  position: absolute;
  left: 12px;
  top: 50px;
  width: 14px;
  height: 55px;
  background: #306230;
  box-shadow: inset 0 0 0 2px #8bac0f;
}

#blob-widget .pond {
  position: absolute;
  left: 8px;
  bottom: 10px;
  width: 72px;
  height: 30px;
  background: #306230;
  border: 2px solid #0f380f;
  border-radius: 50%;
}

#blob-widget .sleep-pad {
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 38px;
  height: 26px;
  background: #306230;
  border: 2px solid #0f380f;
}

/* roof outline layer */
#blob-widget .sleep-pad::before{
  content:"";
  position:absolute;
  left:-10px;
  top:-20px;
  width:0;
  height:0;
  border-left:29px solid transparent;
  border-right:29px solid transparent;
  border-bottom:20px solid #0f380f;
}

/* roof fill layer */
#blob-widget .sleep-pad::after{
  content:"";
  position:absolute;
  left:-8px;
  top:-18px;
  width:0;
  height:0;
  border-left:27px solid transparent;
  border-right:27px solid transparent;
  border-bottom:18px solid #306230;
}

#blob-widget .blob-door{
  position:absolute;
  bottom:0;
  left:12px;
  width:10px;
  height:14px;
  background:#0f380f;
}

#blob-widget .blob-tree{
  position:absolute;
  left:80px;
  bottom:44px;
  width:42px;
  height:54px;
}

#blob-widget .blob-tree::before{
  content:"";
  position:absolute;
  bottom:0;
  left:16px;
  width:10px;
  height:20px;
  background:#0f380f;
}

#blob-widget .blob-tree::after{
  content:"";
  position:absolute;
  bottom:14px;
  left:0;
  width:42px;
  height:32px;
  background:#306230;
  border:2px solid #0f380f;
  border-radius:16px;
}

#blob-widget .blob-flower{
  position:absolute;
  left:170px;
  bottom:14px;
  width:6px;
  height:10px;
}

#blob-widget .blob-flower::before{
  content:"";
  position:absolute;
  bottom:0;
  left:2px;
  width:2px;
  height:8px;
  background:#306230;
}

#blob-widget .blob-flower::after{
  content:"";
  position:absolute;
  bottom:6px;
  left:0;
  width:6px;
  height:6px;
  background:#9bbc0f;
  border:2px solid #0f380f;
  border-radius:50%;
}

#blob-widget .grass {
  position: absolute;
  width: 8px;
  height: 10px;
  background: #306230;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

#blob-widget .grass1 { left: 90px; bottom: 12px; }
#blob-widget .grass2 { left: 145px; bottom: 15px; }
#blob-widget .grass3 { left: 205px; bottom: 12px; }

#blob-widget .blob {
  position: absolute;
  left: 125px;
  bottom: 22px;
  width: 28px;
  height: 18px;
  background: #0f380f;
  border-radius: 18px 18px 8px 8px;
  transform: translateX(-50%);
  transition: left 1.6s linear, bottom 0.6s ease, transform 0.25s ease;
}

#blob-widget .eye {
  position: absolute;
  top: 6px;
  width: 3px;
  height: 5px;
  background: #9bbc0f;
  border-radius: 1px;
  transition: all 0.18s ease;
}

#blob-widget .eye.left { left: 8px; }
#blob-widget .eye.right { right: 8px; }

/* Happy */
#blob-widget .blob.happy-eyes .eye {
  width: 6px;
  height: 3px;
  top: 8px;
  background: transparent;
  border-top: 2px solid #9bbc0f;
  border-radius: 50%;
}

/* Blink */
#blob-widget .blob.blink-eyes .eye {
  width: 5px;
  height: 2px;
  top: 9px;
  border-radius: 2px;
}

/* Excited */
#blob-widget .blob.excited-eyes .eye {
  width: 4px;
  height: 7px;
  top: 5px;
  border-radius: 2px;
}

/* Tired */
#blob-widget .blob.tired-eyes .eye {
  width: 6px;
  height: 2px;
  top: 9px;
  transform: skewX(20deg);
  border-radius: 2px;
}

#blob-widget .blob.bounce {
  transform: translateX(-50%) translateY(-6px);
}

#blob-widget .blob.sleeping .eye {
  height: 2px;
  top: 9px;
}

#blob-widget .blob.happy {
  box-shadow: 0 0 0 2px #306230;
}

#blob-widget .blob-status {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  font-size: 10px;
  text-align: center;
}

#blob-widget .zzz {
  position: absolute;
  right: 20px;
  bottom: 42px;
  font-size: 11px;
  display: none;
}

#blob-widget .blob-buttons {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

#blob-widget .blob-buttons button {
  background: #306230;
  color: #9bbc0f;
  border: 2px solid #0f380f;
  padding: 4px 7px;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 11px;
  cursor: pointer;
}

#blob-widget .blob-buttons button:hover {
  background: #0f380f;
}

@media (max-width: 1400px) {
  #blob-widget {
    display: none;
  }
}

.orb {
  width: 120px;
  height: 120px;
  margin: 10px auto 20px auto;
  border-radius: 50%;

  background:
    radial-gradient(circle at 35% 30%, rgba(200,255,220,0.45), transparent 25%),
    radial-gradient(circle at 50% 50%, rgba(0,255,160,0.35) 0%, rgba(0,80,40,0.9) 55%, rgba(0,20,10,1) 100%),
    radial-gradient(circle at 65% 70%, rgba(120,0,255,0.25), transparent 70%);

  box-shadow:
    0 0 20px rgba(0, 255, 160, 0.6),
    0 0 50px rgba(0, 255, 160, 0.35),
    0 0 25px rgba(120, 0, 255, 0.2),
    inset -12px -14px 25px rgba(0,0,0,0.8),
    inset 10px 10px 20px rgba(200,255,220,0.08);

  border: 1px solid rgba(0,255,160,0.2);
}

.orb {
  animation: orbPulse 5s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% {
    box-shadow:
      0 0 20px rgba(0, 255, 160, 0.6),
      0 0 50px rgba(0, 255, 160, 0.35),
      0 0 25px rgba(120, 0, 255, 0.2),
      inset -12px -14px 25px rgba(0,0,0,0.8),
      inset 10px 10px 20px rgba(200,255,220,0.08);
  }

  50% {
    box-shadow:
      0 0 30px rgba(0, 255, 160, 0.8),
      0 0 70px rgba(0, 255, 160, 0.5),
      0 0 35px rgba(120, 0, 255, 0.3),
      inset -12px -14px 25px rgba(0,0,0,0.8),
      inset 10px 10px 20px rgba(200,255,220,0.12);
  }
}

.orb-container {
  position: relative;
  width: 120px;
  margin: 10px auto 20px auto;
}

.orb-text {
  position: absolute;
  bottom: 50px;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: #7affc1;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  text-shadow: 0 0 5px rgba(0,255,160,0.6);
}

/* show text on hover */
.orb-container:hover .orb-text {
  opacity: 1;
}