/* ==========================================================================
   CYBER-REALM '99 // AUTHENTIC LATE-90s WEB 1.0 + NETSCAPE 4.7 + WIN98 CSS
   ========================================================================== */

:root {
  --win-gray: #c0c0c0;
  --win-light: #dfdfdf;
  --win-white: #ffffff;
  --win-dark: #808080;
  --win-black: #000000;
  --win-navy: #000080;
  --win-teal: #008080;
  --space-bg: #05021a;
  --neon-green: #00ff00;
  --neon-cyan: #00ffff;
  --neon-magenta: #ff00ff;
  --neon-yellow: #ffff00;
  --neon-orange: #ff6600;
  --neon-red: #ff0033;
  --link-blue: #3399ff;
  --link-visited: #cc66ff;
  --link-active: #ff0000;
}

* {
  box-sizing: border-box;
  image-rendering: pixelated;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--win-teal);
  font-family: "Times New Roman", Times, Georgia, serif;
  color: #ffffff;
  user-select: none;
}

/* Raw page mode (when user hides Netscape chrome) */
body.raw-page-mode .netscape-titlebar,
body.raw-page-mode .netscape-menubar,
body.raw-page-mode .netscape-toolbar,
body.raw-page-mode .netscape-locationbar,
body.raw-page-mode .netscape-personalbar,
body.raw-page-mode .netscape-statusbar,
body.raw-page-mode .win98-taskbar {
  display: none !important;
}

body.raw-page-mode .raw-mode-FloatingExit {
  display: flex !important;
}

body.raw-page-mode .browser-shell {
  border: none;
  height: 100vh;
}

/* CRT Scanlines & Curvature Effect */
body.crt-enabled::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  background:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.26) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 3px, 6px 100%;
}

/* Classic Win98 3D Bevels */
.win-outset {
  background: var(--win-gray);
  color: #000;
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-black);
  border-bottom: 2px solid var(--win-black);
  box-shadow: inset 1px 1px 0 var(--win-light), inset -1px -1px 0 var(--win-dark);
}

.win-inset {
  background: #ffffff;
  color: #000;
  border-top: 2px solid var(--win-dark);
  border-left: 2px solid var(--win-dark);
  border-right: 2px solid var(--win-white);
  border-bottom: 2px solid var(--win-white);
  box-shadow: inset 1px 1px 0 var(--win-black), inset -1px -1px 0 var(--win-light);
}

.win-inset-gray {
  background: var(--win-gray);
  color: #000;
  border-top: 1px solid var(--win-dark);
  border-left: 1px solid var(--win-dark);
  border-right: 1px solid var(--win-white);
  border-bottom: 1px solid var(--win-white);
}

.win-btn {
  font-family: "Tahoma", "MS Sans Serif", Arial, sans-serif;
  font-size: 11px;
  background: var(--win-gray);
  color: #000000;
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-black);
  border-bottom: 2px solid var(--win-black);
  box-shadow: inset -1px -1px 0 var(--win-dark);
  padding: 2px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.win-btn:active, .win-btn.active {
  border-top: 2px solid var(--win-black);
  border-left: 2px solid var(--win-black);
  border-right: 2px solid var(--win-white);
  border-bottom: 2px solid var(--win-white);
  box-shadow: inset 1px 1px 0 var(--win-dark);
  padding: 3px 7px 1px 9px;
}

/* Classic Retro Scrollbars */
::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}
::-webkit-scrollbar-track {
  background:
    conic-gradient(#dfdfdf 90deg, #c0c0c0 90deg 180deg, #dfdfdf 180deg 270deg, #c0c0c0 270deg);
  background-size: 4px 4px;
}
::-webkit-scrollbar-thumb {
  background: var(--win-gray);
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-black);
  border-bottom: 2px solid var(--win-black);
  box-shadow: inset -1px -1px 0 var(--win-dark);
}
::-webkit-scrollbar-corner {
  background: var(--win-gray);
}

/* ==========================================================================
   NETSCAPE COMMUNICATOR 4.7 SHELL
   ========================================================================== */
.app-desktop {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  background: var(--win-teal);
}

.browser-shell {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-black);
  border-bottom: 2px solid var(--win-black);
  background: var(--win-gray);
}

/* Titlebar */
.netscape-titlebar {
  height: 22px;
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  color: #ffffff;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px;
  flex-shrink: 0;
}

.titlebar-left {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  white-space: nowrap;
}

.ns-mini-icon {
  width: 15px;
  height: 15px;
  background: #004050;
  border: 1px solid #00ffff;
  color: #00ffff;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: bold;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.titlebar-controls {
  display: flex;
  align-items: center;
  gap: 2px;
}

.titlebar-ctrl-btn {
  width: 16px;
  height: 14px;
  font-size: 9px;
  font-weight: bold;
  font-family: "Tahoma", sans-serif;
  padding: 0;
  line-height: 1;
}

/* Menu Bar */
.netscape-menubar {
  height: 20px;
  background: var(--win-gray);
  border-bottom: 1px solid var(--win-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 11px;
  color: #000;
  flex-shrink: 0;
}

.menubar-items {
  display: flex;
  gap: 10px;
}

.menubar-item {
  cursor: pointer;
  padding: 1px 4px;
}
.menubar-item:hover {
  background: var(--win-navy);
  color: #fff;
}
.menubar-item u {
  text-decoration: underline;
}

.menubar-right-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}

/* Navigation Toolbar */
.netscape-toolbar {
  height: 44px;
  background: var(--win-gray);
  border-top: 1px solid var(--win-white);
  border-bottom: 1px solid var(--win-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px;
  flex-shrink: 0;
}

.ns-tool-buttons {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
}

.ns-handle {
  width: 6px;
  height: 34px;
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-dark);
  margin-right: 4px;
}

.ns-tool-btn {
  height: 36px;
  min-width: 48px;
  background: var(--win-gray);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 10px;
  color: #000;
  cursor: pointer;
  padding: 2px 5px;
}

.ns-tool-btn:hover {
  border-top: 1px solid var(--win-white);
  border-left: 1px solid var(--win-white);
  border-right: 1px solid var(--win-dark);
  border-bottom: 1px solid var(--win-dark);
}

.ns-tool-btn:active {
  border-top: 1px solid var(--win-dark);
  border-left: 1px solid var(--win-dark);
  border-right: 1px solid var(--win-white);
  border-bottom: 1px solid var(--win-white);
}

.ns-tool-icon {
  font-size: 14px;
  line-height: 1;
}

.ns-sep {
  width: 2px;
  height: 32px;
  border-left: 1px solid var(--win-dark);
  border-right: 1px solid var(--win-white);
  margin: 0 3px;
}

/* Netscape Animated Throbber ("N" Logo) */
.ns-throbber {
  width: 38px;
  height: 38px;
  background: radial-gradient(circle at 50% 35%, #004e66 0%, #001829 75%, #000814 100%);
  border-top: 2px solid var(--win-dark);
  border-left: 2px solid var(--win-dark);
  border-right: 2px solid var(--win-white);
  border-bottom: 2px solid var(--win-white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
}

.ns-throbber-n {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: bold;
  font-style: italic;
  color: #ffffff;
  text-shadow: 0 0 6px #00ffff, 2px 2px 0 #000;
  z-index: 2;
}

.ns-throbber-horizon {
  position: absolute;
  bottom: -6px;
  left: -10%;
  width: 120%;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #00e5ff 0%, #003344 100%);
  box-shadow: 0 -2px 6px #00ffff;
}

.ns-throbber.loading .ns-throbber-n {
  animation: nsPulse 0.35s infinite alternate;
}

.ns-throbber.loading::before {
  content: "✦ ✧ ★";
  position: absolute;
  top: 2px;
  left: -20px;
  font-size: 9px;
  color: #ffff88;
  animation: meteorShower 0.55s linear infinite;
}

@keyframes nsPulse {
  from { transform: scale(0.95); color: #ffffff; }
  to { transform: scale(1.08); color: #00ffff; }
}

@keyframes meteorShower {
  0% { transform: translate(-5px, -2px); opacity: 1; }
  100% { transform: translate(48px, 28px); opacity: 0.2; }
}

/* Location / Netsite Bar */
.netscape-locationbar {
  height: 28px;
  background: var(--win-gray);
  border-top: 1px solid var(--win-white);
  border-bottom: 1px solid var(--win-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 11px;
  color: #000;
  flex-shrink: 0;
}

.netsite-label {
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
}

.netsite-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  height: 21px;
  padding: 0 4px;
  background: #ffffff;
}

.netsite-input {
  width: 100%;
  border: none;
  outline: none;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: bold;
  color: #000080;
  background: transparent;
}

/* Personal Bookmarks Bar */
.netscape-personalbar {
  height: 24px;
  background: var(--win-gray);
  border-top: 1px solid var(--win-white);
  border-bottom: 2px solid var(--win-dark);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 11px;
  color: #000;
  flex-shrink: 0;
  overflow-x: auto;
}

.personal-bookmark {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  color: #000;
  text-decoration: none;
}

.personal-bookmark:hover {
  border-top: 1px solid var(--win-white);
  border-left: 1px solid var(--win-white);
  border-right: 1px solid var(--win-dark);
  border-bottom: 1px solid var(--win-dark);
}

/* ==========================================================================
   GEOCITIES FRAMESET VIEWPORT
   ========================================================================== */
.frameset-container {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 235px 1fr 220px;
  background: #808080;
  gap: 4px;
  padding: 2px;
  position: relative;
}

@media (max-width: 1100px) {
  .frameset-container {
    grid-template-columns: 215px 1fr;
  }
  .right-frame {
    display: none;
  }
}

@media (max-width: 760px) {
  .frameset-container {
    grid-template-columns: 1fr;
  }
  .left-frame {
    display: none;
  }
}

.frame-pane {
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  border-top: 2px solid var(--win-dark);
  border-left: 2px solid var(--win-dark);
  border-right: 2px solid var(--win-white);
  border-bottom: 2px solid var(--win-white);
  background-color: var(--space-bg);
  user-select: text;
}

/* Tiled Deep-Space Starry Background */
.space-bg-tiled {
  background-color: #040114;
  background-image:
    radial-gradient(#ffffff 1px, transparent 1px),
    radial-gradient(#00ffff 1px, transparent 1px),
    radial-gradient(#ff00ff 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 0, 0.7) 1px, transparent 1px);
  background-size: 90px 90px, 130px 130px, 170px 170px, 65px 65px;
  background-position: 0 0, 40px 60px, 110px 25px, 20px 45px;
}

/* Scanline Progressive Image Loader Simulation */
.frame-pane.progressive-loading {
  animation: dialupScanReveal 2.2s steps(18, end) forwards;
}

@keyframes dialupScanReveal {
  0% { clip-path: inset(0 0 96% 0); filter: contrast(1.8) saturate(0.5); }
  25% { clip-path: inset(0 0 72% 0); }
  55% { clip-path: inset(0 0 40% 0); }
  85% { clip-path: inset(0 0 12% 0); }
  100% { clip-path: inset(0 0 0 0); filter: none; }
}

/* ==========================================================================
   CLASSIC WEB 1.0 TYPOGRAPHY, LINKS, BLINK & MARQUEE
   ========================================================================== */
a, .retro-link {
  color: var(--link-blue);
  text-decoration: underline;
  cursor: pointer;
  font-weight: bold;
}
a:visited {
  color: var(--link-visited);
}
a:hover, .retro-link:hover {
  color: var(--neon-yellow);
  background-color: #000080;
}
a:active, .retro-link:active {
  color: var(--link-active);
}

.blink {
  animation: blinkAnim 0.85s steps(2, start) infinite;
}

@keyframes blinkAnim {
  to { visibility: hidden; }
}

.rainbow-text {
  background: linear-gradient(90deg, #ff0000, #ff9900, #ffff00, #00ff00, #00ffff, #ff00ff, #ff0000);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowShift 3s linear infinite;
  font-weight: bold;
}

@keyframes rainbowShift {
  to { background-position: 200% center; }
}

.comic-font {
  font-family: "Comic Sans MS", "Chalkboard SE", "Comic Neue", cursive, sans-serif;
}

.mono-font {
  font-family: "Courier New", Courier, monospace;
}

.pixel-label {
  font-family: "Tahoma", "MS Sans Serif", monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
}

/* Classic 3D Beveled HTML Tables */
table.retro-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
  border-top: 3px solid #dfdfdf;
  border-left: 3px solid #dfdfdf;
  border-right: 3px solid #555555;
  border-bottom: 3px solid #555555;
  background-color: #161038;
  margin-bottom: 14px;
}

table.retro-table th {
  background: linear-gradient(90deg, #4a0072, #000080, #005577);
  color: var(--neon-yellow);
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  padding: 5px 8px;
  font-family: "Verdana", "Tahoma", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

table.retro-table td {
  background-color: rgba(8, 6, 32, 0.92);
  border-top: 1px solid #444466;
  border-left: 1px solid #444466;
  border-right: 1px solid #aaaacc;
  border-bottom: 1px solid #aaaacc;
  padding: 7px 9px;
  font-size: 14px;
  line-height: 1.4;
}

/* Under Construction Hazard Tape */
.hazard-bar {
  height: 18px;
  background: repeating-linear-gradient(
    -45deg,
    #ffcc00,
    #ffcc00 12px,
    #111111 12px,
    #111111 24px
  );
  border-top: 2px solid #ffffff;
  border-bottom: 2px solid #555555;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0;
}

.hazard-bar span {
  background: #000000;
  color: var(--neon-yellow);
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 11px;
  padding: 0 10px;
  border: 1px solid var(--neon-yellow);
  letter-spacing: 1.5px;
}

/* Classic 90s Rainbow 3D Horizontal Rule */
hr.retro-hr {
  border: none;
  height: 6px;
  background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff);
  border-top: 1px solid #ffffff;
  border-bottom: 2px solid #000000;
  margin: 12px 0;
}

/* ==========================================================================
   LEFT FRAME: NAVIGATION, HIT COUNTER, WINAMP 2.11
   ========================================================================== */
.left-frame {
  padding: 8px;
  background:
    radial-gradient(#00ffcc 1px, transparent 1px),
    linear-gradient(180deg, #090426 0%, #14052b 100%);
  background-size: 48px 48px, 100% 100%;
}

.frame-header-badge {
  background: linear-gradient(90deg, #800080, #000080);
  border: 2px ridge #00ffff;
  padding: 4px;
  text-align: center;
  font-family: "Verdana", sans-serif;
  font-size: 11px;
  font-weight: bold;
  color: var(--neon-yellow);
  margin-bottom: 8px;
}

.nav-menu-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.nav-link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #120b38;
  border-top: 2px solid #6677ff;
  border-left: 2px solid #6677ff;
  border-right: 2px solid #040014;
  border-bottom: 2px solid #040014;
  padding: 5px 7px;
  color: var(--neon-cyan);
  font-family: "Comic Sans MS", "Tahoma", sans-serif;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}

.nav-link-btn:hover, .nav-link-btn.active {
  background: #330066;
  color: var(--neon-yellow);
  border-color: var(--neon-yellow);
}

.pixel-pill {
  font-family: "Courier New", monospace;
  font-size: 9px;
  font-weight: bold;
  padding: 1px 3px;
  background: #ff0000;
  color: #ffff00;
  border: 1px solid #ffff00;
}

.pixel-pill.hot {
  background: #ff6600;
  color: #ffffff;
}

/* Odometer Hit Counter */
.odometer-box {
  background: #000000;
  border: 3px inset #808080;
  padding: 5px;
  text-align: center;
  margin: 8px 0;
}

.odometer-digits {
  display: inline-flex;
  gap: 2px;
  background: #050505;
  padding: 3px;
  border: 1px solid #333;
}

.odo-digit {
  width: 17px;
  height: 24px;
  background: linear-gradient(180deg, #0a1f0a 0%, #000000 50%, #0a1f0a 100%);
  border: 1px solid #1f551f;
  color: #00ff33;
  font-family: "Courier New", monospace;
  font-size: 17px;
  font-weight: bold;
  line-height: 22px;
  text-align: center;
  text-shadow: 0 0 5px #00ff33;
}

/* WINAMP 2.11 MINI PLAYER */
.winamp-skin {
  background: #232631;
  border-top: 2px solid #6b728c;
  border-left: 2px solid #6b728c;
  border-right: 2px solid #0e1017;
  border-bottom: 2px solid #0e1017;
  padding: 4px;
  margin-top: 10px;
  font-family: "Tahoma", monospace;
  color: #00ff00;
  box-shadow: 2px 2px 0 #000;
}

.winamp-titlebar {
  background: linear-gradient(90deg, #1b2234, #3d4b6e, #1b2234);
  border: 1px solid #7f8ea8;
  color: #e2e8f0;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1.5px;
  padding: 2px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.winamp-display {
  background: #000000;
  border: 2px inset #4a5268;
  padding: 4px;
  margin-bottom: 4px;
}

.winamp-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.winamp-time {
  font-family: "Courier New", monospace;
  font-size: 16px;
  font-weight: bold;
  color: #00ff00;
  text-shadow: 0 0 4px #00ff00;
  letter-spacing: 1px;
}

.winamp-khz {
  font-size: 9px;
  color: #00ff00;
  font-family: "Courier New", monospace;
}

.winamp-marquee {
  background: #081408;
  border: 1px solid #163816;
  color: #00ff66;
  font-family: "Courier New", monospace;
  font-size: 10px;
  padding: 2px 4px;
  white-space: nowrap;
  overflow: hidden;
  margin-bottom: 4px;
}

.winamp-controls {
  display: flex;
  gap: 2px;
  justify-content: space-between;
}

.wa-btn {
  flex: 1;
  background: linear-gradient(180deg, #7c859e 0%, #3e4556 100%);
  border-top: 1px solid #b8c2db;
  border-left: 1px solid #b8c2db;
  border-right: 1px solid #14171f;
  border-bottom: 1px solid #14171f;
  color: #ffffff;
  font-size: 9px;
  font-weight: bold;
  padding: 3px 0;
  cursor: pointer;
}

.wa-btn:active, .wa-btn.active {
  background: #1f2430;
  color: #00ff00;
  border-top: 1px solid #14171f;
  border-left: 1px solid #14171f;
}

/* ==========================================================================
   MAIN CENTER FRAME
   ========================================================================== */
.main-frame {
  padding: 12px 16px 32px 16px;
}

.top-marquee-box {
  background: #000000;
  border: 2px ridge var(--neon-magenta);
  padding: 4px 6px;
  margin-bottom: 10px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: bold;
  color: var(--neon-green);
  overflow: hidden;
  white-space: nowrap;
}

.css-marquee-track {
  display: inline-block;
  white-space: nowrap;
  animation: retroTickerScroll 28s linear infinite;
}

@keyframes retroTickerScroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.hero-banner-wrap {
  text-align: center;
  margin-bottom: 12px;
}

.flaming-banner-canvas {
  width: 100%;
  max-width: 640px;
  height: 82px;
  border: 3px ridge #00ffff;
  background: #000;
  display: block;
  margin: 0 auto 6px auto;
}

/* BitGotchi Virtual Pet Widget */
.bitgotchi-shell {
  background: linear-gradient(145deg, #ffcc00 0%, #ff6600 100%);
  border: 4px outset #ffee88;
  border-radius: 18px;
  padding: 8px 10px;
  color: #000;
  max-width: 280px;
  margin: 0 auto;
  box-shadow: 4px 4px 0 #000;
}

.bitgotchi-lcd {
  background: #8bac0f;
  border: 3px inset #306230;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 88x31 Badges Grid */
.badges-88x31-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 8px;
  background: #050214;
  border: 2px inset #808080;
}

.badge-88x31 {
  width: 88px;
  height: 31px;
  border: 1px solid #ffffff;
  cursor: pointer;
  transition: transform 0.08s;
  flex-shrink: 0;
}

.badge-88x31:hover {
  transform: scale(1.07);
  border-color: var(--neon-yellow);
  box-shadow: 0 0 6px var(--neon-cyan);
}

/* ==========================================================================
   RIGHT FRAME: ICQ STATUS, WEBRING, AWARDS, GEOCITIES AD
   ========================================================================== */
.right-frame {
  padding: 8px;
  background:
    radial-gradient(#ff00ff 1px, transparent 1px),
    linear-gradient(180deg, #120428 0%, #050218 100%);
  background-size: 56px 56px, 100% 100%;
}

.icq-widget {
  background: var(--win-gray);
  color: #000;
  padding: 6px;
  margin-bottom: 10px;
  font-family: "Tahoma", sans-serif;
  font-size: 11px;
}

.award-card {
  background: #0d0726;
  border: 2px ridge #ffcc00;
  padding: 6px;
  text-align: center;
  margin-bottom: 10px;
}

/* ==========================================================================
   JAVA 1.1 IRC APPLET
   ========================================================================== */
.java-applet-box {
  background: #c0c0c0;
  color: #000;
  padding: 8px;
}

.irc-layout {
  display: grid;
  grid-template-columns: 1fr 145px;
  gap: 6px;
  height: 290px;
  margin-bottom: 6px;
}

.irc-messages {
  padding: 6px;
  overflow-y: auto;
  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.35;
  background: #ffffff;
  color: #000000;
}

.irc-users {
  padding: 4px;
  overflow-y: auto;
  font-family: "Courier New", monospace;
  font-size: 12px;
  background: #ffffff;
  color: #000080;
  font-weight: bold;
}

/* ==========================================================================
   NETSCAPE STATUS BAR & WINDOWS 98 SE TASKBAR
   ========================================================================== */
.netscape-statusbar {
  height: 22px;
  background: var(--win-gray);
  border-top: 1px solid var(--win-white);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 11px;
  color: #000;
  flex-shrink: 0;
}

.status-padlock {
  padding: 0 5px;
  height: 18px;
  display: flex;
  align-items: center;
}

.status-main-text {
  flex: 1;
  height: 18px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

.status-progress-wrap {
  width: 120px;
  height: 18px;
  padding: 2px;
  display: flex;
  align-items: center;
}

.status-progress-bar {
  height: 100%;
  width: 100%;
  background: repeating-linear-gradient(90deg, #000080 0px, #000080 8px, transparent 8px, transparent 10px);
}

/* Windows 98 Taskbar */
.win98-taskbar {
  height: 28px;
  background: var(--win-gray);
  border-top: 2px solid var(--win-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 11px;
  color: #000;
  flex-shrink: 0;
  z-index: 5000;
}

.taskbar-left {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow: hidden;
}

.start-btn {
  font-weight: bold;
  height: 22px;
  padding: 0 6px;
  font-size: 11px;
}

.taskbar-tab {
  height: 22px;
  min-width: 125px;
  max-width: 180px;
  justify-content: flex-start;
  overflow: hidden;
  text-overflow: ellipsis;
}

.taskbar-tab.active-window {
  background:
    conic-gradient(#ffffff 90deg, #c0c0c0 90deg 180deg, #ffffff 180deg 270deg, #c0c0c0 270deg);
  background-size: 2px 2px;
  font-weight: bold;
  border-top: 2px solid var(--win-black);
  border-left: 2px solid var(--win-black);
  border-right: 2px solid var(--win-white);
  border-bottom: 2px solid var(--win-white);
}

.taskbar-tray {
  height: 22px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}

/* ==========================================================================
   FLOATING WIN98 DIALOGS (56K MODEM, DOWNLOAD, START MENU, VIEW SOURCE)
   ========================================================================== */
.win98-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 8000;
}

.win98-modal-backdrop.open {
  display: flex;
}

.win98-dialog {
  width: 420px;
  max-width: 94vw;
  padding: 3px;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 11px;
  color: #000;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.65);
}

.win98-dialog-body {
  padding: 10px 12px;
}

/* Windows 98 Start Menu Popup */
.win98-start-menu {
  position: fixed;
  bottom: 28px;
  left: 2px;
  width: 210px;
  display: none;
  z-index: 8500;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 11px;
}

.win98-start-menu.open {
  display: flex;
}

.start-menu-sidebar {
  width: 26px;
  background: linear-gradient(180deg, #000080 0%, #0000ff 50%, #000080 100%);
  color: #ffffff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
}

.start-menu-sidebar span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 1px;
}

.start-menu-items {
  flex: 1;
  padding: 2px;
}

.start-menu-item {
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #000;
}

.start-menu-item:hover {
  background: var(--win-navy);
  color: #ffffff;
}

/* Floating GeoCities Watermark Square */
.geocities-watermark {
  position: fixed;
  bottom: 58px;
  right: 24px;
  width: 128px;
  z-index: 4000;
  font-family: "Tahoma", sans-serif;
  font-size: 10px;
  box-shadow: 3px 3px 0 #000;
}

/* Floating Exit Raw Mode Button */
.raw-mode-FloatingExit {
  position: fixed;
  top: 8px;
  right: 22px;
  z-index: 9500;
  display: none;
}

/* Cursor Trail Particle Layer */
#cursor-trail-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9980;
  overflow: hidden;
}

.trail-particle {
  position: absolute;
  pointer-events: none;
  font-weight: bold;
  transform: translate(-50%, -50%);
}
