/* ==========================================================================
   edsheeran.geocities  ::  STYLE.CSS
   Handcrafted in Notepad at 2am while drinking a cup of tea. Do not steal.
   (c) 1999 THE OFFICIAL ED SHEERAN FAN ZONE :: ALL RITES RESERVED
   ========================================================================== */

/* ---------- 0. THE SACRED VARIABLES ---------- */
:root {
  --hotpink:   #ff00cc;
  --hotpink2:  #ff66dd;
  --cyan:      #00ffff;
  --lime:      #39ff14;
  --gold:      #ffd700;
  --ginger:    #ff6a00;
  --ginger2:   #ff9436;
  --purple:    #8a2be2;
  --deepblue:  #000066;
  --midnight:  #10002b;
  --tealwin:   #008080;   /* the one true desktop colour */
  --silver:    #c0c0c0;
  --win-face:  #d4d0c8;
  --win-shadow:#808080;

  --comic: 'Comic Neue', 'Comic Sans MS', 'Chalkboard SE', cursive;
  --pixel: 'Press Start 2P', 'Courier New', monospace;
  --term:  'VT323', 'Courier New', monospace;
}

/* ---------- 1. RESET (1999 DID NOT HAVE THESE BUT I HAVE GROWN) ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--comic);
  font-size: 16px;
  color: #ffffff;
  cursor: url("../assets/cursor-sparkle.svg") 8 8, auto;
  overflow-x: hidden;

  /* THE TILED BACKGROUND. Every great site had one. */
  background-color: var(--midnight);
  background-image:
    repeating-linear-gradient(45deg,  rgba(255,0,204,.18) 0 12px, transparent 12px 24px),
    repeating-linear-gradient(-45deg, rgba(0,255,255,.18) 0 12px, transparent 12px 24px),
    radial-gradient(circle at 20% 15%, rgba(255,215,0,.30) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 45%, rgba(255,255,255,.35) 0 2px, transparent 3px),
    radial-gradient(circle at 45% 80%, rgba(0,255,255,.30) 0 2px, transparent 3px),
    linear-gradient(160deg, #10002b 0%, #3c096c 35%, #000066 70%, #240046 100%);
  background-size: 48px 48px, 48px 48px, 160px 160px, 210px 210px, 190px 190px, cover;
  background-attachment: fixed;
  animation: bgdrift 40s linear infinite;
}

@keyframes bgdrift {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, center; }
  to   { background-position: 480px 480px, -480px 480px, 160px 320px, -210px 420px, 190px -380px, center; }
}

/* ---------- 2. LAYOUT ---------- */
.page {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 8px 60px;
}

/* the classic two-column TABLE layout, but with flex because my back hurts */
.myspace-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
}
.col-left  { flex: 1 1 300px; min-width: 280px; }
.col-right { flex: 2 1 480px; min-width: 300px; }

/* ---------- 3. THE MODULE / TABLE-LOOKING BOX ---------- */
.module {
  background: rgba(0, 0, 40, .82);
  border: 3px ridge var(--hotpink);
  margin: 0 0 14px;
  box-shadow: 0 0 14px rgba(255, 0, 204, .75), inset 0 0 22px rgba(0, 0, 80, .9);
  position: relative;
}
.module > h2 {
  margin: 0;
  padding: 5px 10px;
  font-family: var(--pixel);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .5px;
  color: #000;
  text-shadow: 1px 1px 0 rgba(255,255,255,.6);
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--gold), var(--hotpink2), var(--cyan));
  background-size: 300% 100%;
  animation: slidebar 6s linear infinite;
  border-bottom: 3px double #000;
}
@keyframes slidebar {
  from { background-position: 0 0; }
  to   { background-position: 300% 0; }
}
.module .inner { padding: 12px; overflow-wrap: anywhere; }

/* ---------- 4. TEXT FX: the reason we are all here ---------- */
.rainbow {
  background-image: linear-gradient(90deg,
    #ff0000, #ff8800, #ffee00, #33ff00, #00ffee, #0088ff, #8800ff, #ff0088, #ff0000);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: rainbowroll 4s linear infinite;
  font-weight: 700;
}
@keyframes rainbowroll {
  from { background-position: 0 0; }
  to   { background-position: 400% 0; }
}

.blink { animation: blinky 1.1s steps(1, end) infinite; }
@keyframes blinky { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .12; } }

.glow-pink { text-shadow: 0 0 4px #fff, 0 0 10px var(--hotpink), 0 0 20px var(--hotpink), 0 0 34px var(--purple); }
.glow-cyan { text-shadow: 0 0 4px #fff, 0 0 10px var(--cyan), 0 0 22px #0088ff; }

.wobble { display: inline-block; animation: wobble 2.4s ease-in-out infinite; }
@keyframes wobble {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%      { transform: rotate(3deg) translateY(-4px); }
}

/* Per-letter bounce, applied by JS.
   NOTE: background-clip:text does NOT inherit, so when .rainbow text gets split
   into letter spans the gradient stops applying and the letters go invisible.
   Each letter therefore carries its own gradient. */
.rainbow .bouncy-letter,
.glitter-text .bouncy-letter {
  background-image: linear-gradient(90deg,
    #ff0000, #ff8800, #ffee00, #33ff00, #00ffee, #0088ff, #8800ff, #ff0088, #ff0000);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: letterhop 1.6s ease-in-out infinite, rainbowroll 4s linear infinite;
}

/* per-letter bounce, applied by JS */
.bouncy-letter {
  display: inline-block;
  animation: letterhop 1.6s ease-in-out infinite;
}
@keyframes letterhop {
  0%, 100% { transform: translateY(0) scale(1); }
  40%      { transform: translateY(-9px) scale(1.15); }
}

.outline-text {
  -webkit-text-stroke: 1.5px #000;
  paint-order: stroke fill;
}

/* the GLITTER TEXT (background image shimmer) */
.glitter-text {
  overflow-wrap: anywhere;
  font-family: var(--pixel);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image:
    radial-gradient(circle at 15% 25%, #fff 0 1.5px, transparent 2px),
    radial-gradient(circle at 65% 70%, #fff 0 1.5px, transparent 2px),
    radial-gradient(circle at 40% 10%, #ffe9fb 0 1.5px, transparent 2px),
    linear-gradient(90deg, var(--hotpink), var(--gold), var(--cyan), var(--hotpink));
  background-size: 22px 22px, 31px 31px, 17px 17px, 300% 100%;
  animation: glitterpop .35s steps(2) infinite, rainbowroll 5s linear infinite;
}
@keyframes glitterpop {
  0%   { background-position: 0 0, 0 0, 0 0, var(--gx, 0) 0; }
  100% { background-position: 11px 7px, -9px 13px, 6px -8px, var(--gx, 0) 0; }
}

/* ---------- 5. MARQUEES (the CSS kind, for the ones I write by hand) ---------- */
.marquee-bar {
  contain: inline-size;
  overflow: hidden;
  white-space: nowrap;
  border-top: 3px double var(--gold);
  border-bottom: 3px double var(--gold);
  background: linear-gradient(90deg, #000 0%, #2a003f 50%, #000 100%);
  padding: 5px 0;
  font-family: var(--term);
  font-size: 22px;
  letter-spacing: 1px;
}
.marquee-bar > span {
  display: inline-block;
  padding-left: 100%;
  animation: scrollleft 18s linear infinite;
}
.marquee-bar.slow > span  { animation-duration: 34s; }
.marquee-bar.rev > span   { animation-name: scrollright; }
@keyframes scrollleft  { from { transform: translateX(0); }     to { transform: translateX(-100%); } }
@keyframes scrollright { from { transform: translateX(-100%); } to { transform: translateX(0); } }

/* ---------- 6. THE HEADER ---------- */
.mega-header {
  text-align: center;
  padding: 18px 6px 10px;
  position: relative;
}
.mega-header h1 {
  overflow-wrap: anywhere;
  font-family: var(--pixel);
  font-size: clamp(20px, 5.2vw, 52px);
  line-height: 1.3;
  margin: 6px 0;
  letter-spacing: -1px;
}
.mega-header .sub {
  font-family: var(--comic);
  font-size: clamp(14px, 2.4vw, 22px);
  font-weight: 700;
  margin: 4px 0;
}
.flame-strip {
  height: 26px;
  background: repeating-linear-gradient(90deg,
    #ff0000 0 10px, #ff8800 10px 20px, #ffdd00 20px 30px, #ff8800 30px 40px);
  background-size: 40px 100%;
  animation: flamerun .6s linear infinite;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
}
@keyframes flamerun { from { background-position: 0 0; } to { background-position: 40px 0; } }

/* ---------- 7. PROFILE PIC + AVATAR ---------- */
.avatar-frame {
  position: relative;
  padding: 8px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}
.avatar-frame::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 240%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  transform-origin: center;
  background: conic-gradient(from 0deg, var(--hotpink), var(--gold), var(--cyan), var(--lime), var(--hotpink));
  animation: spinhalo 5s linear infinite;
  z-index: 0;
}
@keyframes spinframe { to { transform: rotate(360deg); } }
@keyframes spinhalo {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
.avatar-frame img {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  background: #fff;
  border: 3px solid #000;
  border-radius: 3px;
}
.avatar-caption {
  text-align: center;
  font-family: var(--comic);
  font-weight: 700;
  font-size: 13px;
  margin-top: 10px;
  color: var(--gold);
}

/* ---------- 8. "ONLINE NOW" / status ---------- */
.status-line {
  font-family: var(--pixel);
  font-size: 10px;
  line-height: 1.9;
  margin: 8px 0;
}
.online-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: pulsedot 1.4s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes pulsedot { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .55; } }

/* ---------- 9. TOP 8 FRIENDS ---------- */
.top8 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.friend {
  text-align: center;
  background: rgba(255,255,255,.07);
  border: 2px outset var(--cyan);
  padding: 6px 4px;
  transition: transform .18s ease;
}
.friend:hover { transform: scale(1.12) rotate(-3deg); border-color: var(--hotpink); z-index: 5; }
.friend img { width: 100%; height: auto; background: #fff; border: 2px solid #000; display: block; }
.friend .name {
  font-family: var(--pixel);
  font-size: 8px;
  line-height: 1.6;
  margin-top: 5px;
  color: var(--cyan);
  word-break: break-word;
}
.friend .rank {
  font-family: var(--comic);
  font-weight: 700;
  font-size: 10px;
  color: var(--gold);
}

/* ---------- 10. BLURB / TABLE OF INTERESTS ---------- */
table.interests {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.interests th {
  overflow-wrap: anywhere;
  width: 30%;
  text-align: right;
  vertical-align: top;
  padding: 7px 9px;
  background: rgba(255, 0, 204, .28);
  border: 2px groove var(--hotpink2);
  font-family: var(--pixel);
  font-size: 9px;
  line-height: 1.7;
  color: var(--gold);
}
table.interests td {
  padding: 7px 9px;
  overflow-wrap: anywhere;
  border: 2px groove var(--cyan);
  background: rgba(0, 255, 255, .07);
  line-height: 1.5;
}

/* ---------- 11. BUTTONS / LINKS ---------- */
a { color: var(--cyan); text-decoration: underline; text-decoration-style: wavy; }
a:hover { color: var(--gold); background: rgba(255,0,204,.35); }
a:visited { color: #ff9ae6; }

.btn-98 {
  display: inline-block;
  font-family: var(--comic);
  font-weight: 700;
  font-size: 14px;
  padding: 7px 14px;
  color: #000;
  background: var(--win-face);
  border: 2px solid;
  border-color: #fff var(--win-shadow) var(--win-shadow) #fff;
  cursor: url("../assets/cursor-sparkle.svg") 8 8, pointer;
  text-decoration: none;
  margin: 4px 3px;
  box-shadow: 1px 1px 0 #000;
}
.btn-98:hover { background: #e8e5dd; color: #000; }
.btn-98:active { border-color: var(--win-shadow) #fff #fff var(--win-shadow); transform: translate(1px, 1px); }

.btn-mega {
  display: inline-block;
  font-family: var(--pixel);
  font-size: 13px;
  line-height: 1.6;
  padding: 12px 20px;
  color: #000;
  text-decoration: none;
  background: linear-gradient(90deg, var(--gold), var(--hotpink2), var(--cyan), var(--lime), var(--gold));
  background-size: 400% 100%;
  border: 4px outset var(--gold);
  animation: rainbowroll 3s linear infinite, megapulse 1.6s ease-in-out infinite;
  text-shadow: 1px 1px 0 #fff;
  margin: 6px 4px;
}
@keyframes megapulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 10px var(--gold); }
  50%      { transform: scale(1.06); box-shadow: 0 0 26px var(--hotpink); }
}
.btn-mega:hover { background: #fff; color: #ff00cc; }

/* ---------- 12. DIVIDERS ---------- */
.divider {
  height: 22px;
  margin: 16px 0;
  background-image:
    radial-gradient(circle at 10% 50%, var(--gold) 0 3px, transparent 4px),
    radial-gradient(circle at 30% 50%, var(--cyan) 0 3px, transparent 4px),
    radial-gradient(circle at 50% 50%, var(--hotpink) 0 4px, transparent 5px),
    radial-gradient(circle at 70% 50%, var(--lime) 0 3px, transparent 4px),
    radial-gradient(circle at 90% 50%, var(--gold) 0 3px, transparent 4px),
    linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  background-size: 120px 22px, 120px 22px, 120px 22px, 120px 22px, 120px 22px, 100% 2px;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, center;
  background-repeat: repeat-x;
  animation: dividerrun 3s linear infinite;
}
@keyframes dividerrun { from { background-position-x: 0; } to { background-position-x: 120px; } }

/* ---------- 13. UNDER CONSTRUCTION ---------- */
.construction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px;
  background: repeating-linear-gradient(45deg,
    #ffdd00 0 18px, #000 18px 36px);
  background-size: 51px 51px;
  animation: hazardrun 1.2s linear infinite;
  border: 3px solid #000;
  margin: 14px 0;
}
@keyframes hazardrun { from { background-position: 0 0; } to { background-position: 51px 0; } }
.construction span {
  background: #000;
  color: #ffdd00;
  font-family: var(--pixel);
  font-size: 11px;
  line-height: 1.7;
  padding: 7px 11px;
  border: 2px solid #ffdd00;
}
.construction img { width: 46px; height: 46px; }

/* ---------- 14. HIT COUNTER ---------- */
.counter-box {
  max-width: 100%;
  flex-wrap: wrap;
  display: inline-flex;
  gap: 3px;
  padding: 6px;
  background: #000;
  border: 3px inset var(--silver);
}
.counter-box .digit {
  font-family: var(--pixel);
  font-size: 20px;
  line-height: 1;
  color: var(--lime);
  background: #001100;
  padding: 7px 5px;
  border: 1px solid #004400;
  text-shadow: 0 0 8px var(--lime);
  min-width: 22px;
  text-align: center;
}

/* ---------- 15. GUESTBOOK / COMMENTS ---------- */
.comment {
  display: flex;
  gap: 10px;
  padding: 10px;
  margin-bottom: 10px;
  background: rgba(255,255,255,.06);
  border-left: 5px solid var(--hotpink);
  border-top: 1px solid rgba(255,255,255,.2);
}
.comment .pic {
  flex: 0 0 62px;
  width: 62px; height: 62px;
  background: #fff;
  border: 2px solid #000;
  display: grid;
  place-items: center;
  font-size: 30px;
  overflow: hidden;
}
.comment .pic img { width: 100%; height: 100%; object-fit: cover; }
.comment .body { flex: 1 1 auto; min-width: 0; }
.comment .who {
  font-family: var(--pixel);
  font-size: 9px;
  line-height: 1.8;
  color: var(--cyan);
  word-break: break-word;
}
.comment .when { font-size: 11px; color: #ffb3f0; font-weight: 700; }
.comment .txt { margin-top: 5px; font-size: 14px; line-height: 1.45; overflow-wrap: break-word; }

.gb-form { display: grid; gap: 9px; }
.gb-form label {
  font-family: var(--pixel);
  font-size: 9px;
  line-height: 1.8;
  color: var(--gold);
}
.gb-form input, .gb-form textarea, .gb-form select {
  font-family: var(--comic);
  font-size: 15px;
  padding: 8px;
  background: #ffffe8;
  color: #000;
  border: 3px inset var(--silver);
  width: 100%;
}
.gb-form textarea { min-height: 88px; resize: vertical; }

/* ---------- 16. NOW PLAYING / MUSIC PLAYER ---------- */
.player {
  border: 3px outset var(--purple);
  background: linear-gradient(180deg, #1a0033, #000);
  padding: 10px;
}
.player .title {
  contain: inline-size;
  font-family: var(--term);
  font-size: 20px;
  color: var(--lime);
  white-space: nowrap;
  overflow: hidden;
}
.player .title > span { display: inline-block; padding-left: 100%; animation: scrollleft 12s linear infinite; }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 42px; margin: 9px 0; }
.eq i {
  flex: 1 1 auto;
  background: linear-gradient(180deg, var(--hotpink), var(--gold), var(--lime));
  height: 20%;
  animation: eqbounce .7s ease-in-out infinite alternate;
}
.eq.paused i { animation-play-state: paused; height: 8%; }
@keyframes eqbounce { from { height: 12%; } to { height: 100%; } }

/* ---------- 17. THE 88x31 BADGE WALL ---------- */
.badge-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  align-items: center;
}
.badge-wall img {
  width: 88px; height: 31px;
  border: 1px solid #fff;
  image-rendering: pixelated;
}
.badge-wall img:hover { animation: badgeshake .28s linear infinite; }
@keyframes badgeshake {
  0%,100% { transform: translate(0,0) rotate(0); }
  25%     { transform: translate(-2px,1px) rotate(-2deg); }
  75%     { transform: translate(2px,-1px) rotate(2deg); }
}

/* ---------- 18. POPUP WINDOW (win98 chrome) ---------- */
.popup {
  position: fixed;
  z-index: 9000;
  width: min(340px, 90vw);
  background: var(--win-face);
  border: 3px solid;
  border-color: #fff var(--win-shadow) var(--win-shadow) #fff;
  box-shadow: 4px 4px 0 rgba(0,0,0,.6);
  color: #000;
  font-family: var(--comic);
  animation: popin .22s ease-out;
}
@keyframes popin { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.popup .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(90deg, var(--deepblue), #1084d0);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 4px 4px 7px;
  cursor: move;
  user-select: none;
}
.popup .bar button {
  font-family: var(--comic);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  width: 20px; height: 20px;
  background: var(--win-face);
  color: #000;
  border: 2px solid;
  border-color: #fff var(--win-shadow) var(--win-shadow) #fff;
  cursor: pointer;
}
.popup .content { padding: 14px; font-size: 14px; line-height: 1.5; }
.popup .content p { margin: 0 0 12px; }
.popup .foot { text-align: right; padding: 0 12px 12px; }
.popup .icon { float: left; font-size: 34px; margin: 0 12px 6px 0; line-height: 1; }

/* ---------- 19. GLITTER / SPARKLE PARTICLES ---------- */
#sparkle-layer, #rain-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8000;
  overflow: hidden;
}
#rain-layer { z-index: 1; }
.sparkle {
  position: absolute;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  pointer-events: none;
  animation: sparkfade .95s linear forwards;
}
@keyframes sparkfade {
  0%   { transform: scale(0) rotate(0deg);      opacity: 1; }
  45%  { transform: scale(1.25) rotate(140deg); opacity: 1; }
  100% { transform: scale(.15) rotate(300deg) translateY(32px); opacity: 0; }
}
.faller {
  position: absolute;
  top: -40px;
  font-size: 22px;
  line-height: 1;
  animation: fall linear forwards;
  filter: drop-shadow(0 0 5px rgba(255,255,255,.7));
}
@keyframes fall {
  0%   { transform: translateY(0) rotate(0deg);      opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(105vh) rotate(420deg); opacity: 0; }
}

/* ---------- 20. STROBE / DISCO OVERLAY ---------- */
#disco {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
  opacity: .30;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,0,204,.85) 0, transparent 34%),
    radial-gradient(circle at 82% 30%, rgba(0,255,255,.85) 0, transparent 34%),
    radial-gradient(circle at 50% 85%, rgba(255,215,0,.85) 0, transparent 34%),
    radial-gradient(circle at 25% 70%, rgba(57,255,20,.75) 0, transparent 30%);
  animation: discomove 7s ease-in-out infinite alternate, discoflash 2s steps(2) infinite;
}
@keyframes discomove {
  from { transform: scale(1) rotate(0deg); }
  to   { transform: scale(1.3) rotate(22deg); }
}
@keyframes discoflash { 0% { opacity: .30; } 100% { opacity: .12; } }

/* ---------- 21. THE CHAOS CONTROL PANEL ---------- */
#chaos-panel {
  position: fixed;
  right: 8px;
  bottom: 8px;
  z-index: 9500;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}
#chaos-panel button {
  font-family: var(--pixel);
  font-size: 9px;
  line-height: 1.6;
  padding: 7px 9px;
  background: var(--win-face);
  color: #000;
  border: 2px solid;
  border-color: #fff var(--win-shadow) var(--win-shadow) #fff;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(0,0,0,.5);
  white-space: nowrap;
}
#chaos-panel button:hover { background: var(--gold); }

/* ---------- 22. NAV BAR ---------- */
.navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  padding: 9px 4px;
  background: rgba(0,0,0,.65);
  border-top: 3px double var(--cyan);
  border-bottom: 3px double var(--cyan);
  margin-bottom: 14px;
}
.navbar a {
  font-family: var(--pixel);
  font-size: 10px;
  line-height: 1.7;
  padding: 7px 10px;
  text-decoration: none;
  color: #000;
  background: linear-gradient(180deg, #fff, var(--silver));
  border: 2px outset var(--gold);
}
.navbar a:hover  { background: linear-gradient(180deg, var(--gold), var(--ginger)); color: #000; transform: translateY(-2px); }
.navbar a.here   { background: linear-gradient(180deg, var(--hotpink2), var(--hotpink)); color: #fff; }

/* ---------- 23. FOOTER ---------- */
.footer {
  text-align: center;
  font-family: var(--comic);
  font-size: 12px;
  line-height: 1.7;
  padding: 18px 10px 40px;
  color: #cdb4ff;
}
.footer .webring {
  border: 2px dashed var(--gold);
  padding: 10px;
  margin: 12px auto;
  max-width: 560px;
  background: rgba(0,0,0,.5);
}

/* ---------- 24. MISC BITS ---------- */
.spin      { display: inline-block; animation: spinframe 3s linear infinite; }
.spin-slow { display: inline-block; animation: spinframe 9s linear infinite; }
.jiggle    { display: inline-block; animation: badgeshake .3s linear infinite; }
.grow      { display: inline-block; animation: megapulse 1.4s ease-in-out infinite; }

.center { text-align: center; }
.small  { font-size: 12px; }
.tiny   { font-size: 10px; }
.big    { font-size: clamp(18px, 3.4vw, 30px); font-weight: 700; }
.gold   { color: var(--gold); }
.pink   { color: var(--hotpink2); }
.cyanic { color: var(--cyan); }
.limey  { color: var(--lime); }
.nowrap { white-space: nowrap; }

ul.starred { list-style: none; padding-left: 4px; margin: 6px 0; }
ul.starred li { padding: 4px 0 4px 26px; position: relative; line-height: 1.45; overflow-wrap: anywhere; }
ul.starred li::before {
  content: "\2605";
  position: absolute;
  left: 2px; top: 3px;
  color: var(--gold);
  animation: blinky 1.6s steps(1,end) infinite;
}
ul.starred li:nth-child(even)::before { color: var(--hotpink2); animation-delay: .4s; }

blockquote.aim {
  margin: 10px 0;
  padding: 10px 12px;
  background: #ffffe8;
  color: #000;
  border: 3px inset var(--silver);
  font-family: var(--comic);
  font-size: 14px;
  line-height: 1.45;
}
blockquote.aim b { color: #0000cc; }

.tea-steam { animation: steam 3s ease-in-out infinite; }
@keyframes steam {
  0%,100% { transform: translateY(0) scaleX(1); opacity: .8; }
  50%     { transform: translateY(-5px) scaleX(1.12); opacity: .35; }
}

/* progress bars for the FAN LEVEL meter */
.meter {
  height: 22px;
  background: #000;
  border: 3px inset var(--silver);
  padding: 2px;
  margin: 4px 0 10px;
}
.meter i {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(90deg,
    var(--lime) 0 9px, #000 9px 12px);
  box-shadow: 0 0 10px var(--lime);
  animation: meterfill 2.2s ease-out both;
}
@keyframes meterfill { from { width: 0 !important; } }

/* quiz */
.quiz-q { margin-bottom: 16px; }
.quiz-q > p {
  font-family: var(--comic);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--gold);
}
.quiz-opt {
  display: block;
  padding: 8px 10px;
  margin-bottom: 5px;
  background: rgba(255,255,255,.07);
  border: 2px outset var(--cyan);
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
}
.quiz-opt:hover { background: rgba(255,0,204,.3); border-color: var(--hotpink); }
.quiz-opt input { margin-right: 8px; }
.quiz-opt.picked { background: rgba(255,215,0,.35); border-style: inset; border-color: var(--gold); }

#quiz-result { display: none; }
#quiz-result.show { display: block; animation: popin .4s ease-out; }

/* shrine gallery */
.shrine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.shrine-card {
  background: rgba(0,0,0,.55);
  border: 3px ridge var(--gold);
  padding: 9px;
  text-align: center;
}
.shrine-card img { width: 100%; height: auto; background: #fff; border: 2px solid #000; }
.shrine-card .cap { font-size: 12px; margin-top: 7px; line-height: 1.4; font-weight: 700; }

/* ---------- 25. MOBILE ---------- */
@media (max-width: 700px) {
  body { font-size: 15px; }
  .page { padding-bottom: 130px; }        /* room to scroll clear of the panel */
  .module > h2 { font-size: 9px; }
  .marquee-bar { font-size: 17px; }
  .mega-header h1 { letter-spacing: 0; }

  /* the control panel becomes a squat 2x2 grid so it covers less of the page */
  #chaos-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    left: 8px;
    right: 8px;
    opacity: .95;
  }
  #chaos-panel button { font-size: 8px; padding: 8px 4px; width: 100%; text-align: center; }
  .comment .pic { flex-basis: 48px; width: 48px; height: 48px; font-size: 24px; }
  table.interests th { width: 38%; font-size: 8px; }
}

/* ---------- 26. CALM MODE :: for when it is simply too much ----------
   Triggered by the "TOO MUCH!!" button or by the OS reduced-motion setting.
   Keeps the taste, removes the seizure.                                  */
html[data-calm="1"] *,
html[data-calm="1"] *::before,
html[data-calm="1"] *::after {
  animation: none !important;
  transition: none !important;
}
html[data-calm="1"] .rainbow,
html[data-calm="1"] .rainbow .bouncy-letter,
html[data-calm="1"] .glitter-text .bouncy-letter,
html[data-calm="1"] .glitter-text {
  -webkit-text-fill-color: #ffd700;
  color: var(--gold);
  background: none;
}
html[data-calm="1"] .blink { opacity: 1 !important; }
html[data-calm="1"] #disco,
html[data-calm="1"] #rain-layer,
html[data-calm="1"] #sparkle-layer { display: none !important; }
html[data-calm="1"] body { background-image: linear-gradient(160deg, #10002b, #240046); }
html[data-calm="1"] .marquee-bar > span { padding-left: 0; }
html[data-calm="1"] .avatar-frame { background: var(--gold); }
html[data-calm="1"] .avatar-frame::before { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  #disco, #rain-layer { display: none; }
  .marquee-bar > span { padding-left: 0; animation: none; }
}
