/* ==========================================================================
   IDEAL8 - Authentic 1990s Retro Web Stylesheet
   Inspired by Windows 95/98 Chrome, Netscape Navigator 4.0 & Thai 90s Portals
   ========================================================================== */

:root {
  --win-gray: #c0c0c0;
  --win-light: #ffffff;
  --win-mid: #dfdfdf;
  --win-dark: #808080;
  --win-darker: #000000;
  --win-navy: #000080;
  --win-navy-grad: #1084d0;
  --cyber-bg: #000028;
  --cyber-yellow: #ffff00;
  --cyber-cyan: #00ffff;
  --cyber-lime: #00ff00;
  --cyber-magenta: #ff00ff;
  --link-blue: #0000ee;
  --link-visited: #551a8b;
  --font-ui: "Tahoma", "MS Sans Serif", "Geneva", sans-serif;
  --font-serif: "Times New Roman", "Georgia", serif;
  --font-mono: "Courier New", "Courier", monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0 0 calc(42px + env(safe-area-inset-bottom, 0px)) 0;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.55;
  color: #000000;
  background-color: var(--cyber-bg);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* Classic 90s Tiled Starfield + Subtle Grid Background */
body.bg-stars {
  background-color: #000028;
  background-image:
    radial-gradient(#ffffff 1px, transparent 1px),
    radial-gradient(#00ffff 1px, transparent 1px),
    radial-gradient(#ffff00 1px, transparent 1px),
    linear-gradient(rgba(0, 128, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 128, 255, 0.08) 1px, transparent 1px);
  background-size: 97px 97px, 143px 143px, 211px 211px, 32px 32px, 32px 32px;
  background-position: 0 0, 41px 63px, 19px 111px, 0 0, 0 0;
}

/* Optional CRT Scanlines Mode */
.crt-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.22) 3px,
    rgba(0, 0, 0, 0.22) 4px
  );
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.45);
}

body.crt-active .crt-overlay {
  display: block;
}

/* Top Utility Bar */
.top-utility-bar {
  background: #000000;
  color: var(--cyber-lime);
  border-bottom: 2px ridge #808080;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 10px;
}

.top-utility-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.led-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #00ff00;
  border: 1px solid #006600;
  box-shadow: 0 0 6px #00ff00;
  margin-right: 4px;
}

.utility-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.clock-box {
  background: #001a00;
  color: #00ff00;
  border: 2px inset #808080;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-weight: bold;
  letter-spacing: 1px;
}

/* Main Portal Container (Fluid across PC, Notebook, iPad, Tablet & Mobile) */
.portal-wrapper {
  max-width: 1020px;
  width: 100%;
  margin: 12px auto 24px;
  padding: 0 10px;
}

.content-col,
.sidebar-col {
  min-width: 0;
}

.table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Mobile / iPad Sticky Quick Bar (Hidden on PC & Notebook) */
.mobile-quickbar {
  display: none;
  position: sticky;
  top: 4px;
  z-index: 850;
  margin-bottom: 10px;
}

.mobile-quickbar-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-toggle {
  flex-shrink: 0;
  white-space: nowrap;
}

.mobile-quick-links {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.mobile-quick-links a {
  white-space: nowrap;
  text-decoration: none;
}

/* PDPA Cookie Consent Banner (Retro Win95 Style) */
.pdpa-banner {
  position: fixed;
  right: 12px;
  bottom: calc(38px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  max-width: 680px;
  margin: 0 auto;
  z-index: 1500;
}

.pdpa-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pdpa-text {
  margin: 0;
  font-size: 12px;
  flex: 1 1 320px;
}

.pdpa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Windows 95 / 98 Beveled Window Chrome */
.win95-window {
  background: var(--win-gray);
  border-top: 2px solid var(--win-light);
  border-left: 2px solid var(--win-light);
  border-right: 2px solid var(--win-darker);
  border-bottom: 2px solid var(--win-darker);
  box-shadow: inset -1px -1px 0 var(--win-dark), inset 1px 1px 0 var(--win-mid), 3px 3px 0 rgba(0, 0, 0, 0.55);
  margin-bottom: 12px;
}

.win95-titlebar {
  background: linear-gradient(90deg, var(--win-navy) 0%, var(--win-navy-grad) 100%);
  color: #ffffff;
  font-weight: bold;
  font-size: 12px;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  letter-spacing: 0.2px;
  user-select: none;
}

.titlebar-left {
  display: flex;
  align-items: center;
  gap: 5px;
}

.titlebar-tag {
  font-family: var(--font-mono);
  color: var(--cyber-yellow);
  font-size: 11px;
}

.titlebar-buttons {
  display: inline-flex;
  gap: 2px;
}

.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 14px;
  background: var(--win-gray);
  color: #000000;
  font-size: 10px;
  font-weight: bold;
  line-height: 1;
  border-top: 1px solid var(--win-light);
  border-left: 1px solid var(--win-light);
  border-right: 1px solid var(--win-darker);
  border-bottom: 1px solid var(--win-darker);
}

.tb-btn-close {
  cursor: pointer;
  padding: 0;
}

.win95-body {
  padding: 10px;
}

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

/* Classic Win95 Beveled Buttons */
.win95-btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: bold;
  color: #000000;
  background: var(--win-gray);
  text-decoration: none;
  padding: 4px 10px;
  cursor: pointer;
  border-top: 2px solid var(--win-light);
  border-left: 2px solid var(--win-light);
  border-right: 2px solid var(--win-darker);
  border-bottom: 2px solid var(--win-darker);
  box-shadow: inset -1px -1px 0 var(--win-dark);
}

.win95-btn:hover {
  background: #d4d4d4;
}

.win95-btn:active {
  border-top: 2px solid var(--win-darker);
  border-left: 2px solid var(--win-darker);
  border-right: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-light);
  box-shadow: none;
  padding: 5px 9px 3px 11px;
}

.btn-mini {
  padding: 1px 6px;
  font-size: 11px;
}

.btn-primary {
  background: #d8e4ff;
  border-color: #ffffff #000066 #000066 #ffffff;
}

/* Header Banner */
.header-body {
  padding: 6px;
  background: #000033;
}

.hero-banner {
  background:
    linear-gradient(180deg, #000055 0%, #000022 60%, #1a0033 100%);
  border: 3px ridge #00ffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #ffffff;
}

.hero-emblem {
  text-align: center;
  flex-shrink: 0;
}

.hero-emblem svg {
  border: 2px outset #c0c0c0;
  display: block;
  margin: 0 auto 4px;
}

.emblem-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyber-yellow);
  background: #000000;
  border: 1px solid #00ffff;
  padding: 1px 4px;
}

.hero-title-block {
  text-align: center;
  flex: 1;
}

.rainbow-line {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: bold;
  color: var(--cyber-cyan);
  letter-spacing: 1px;
  margin-bottom: 2px;
}

/* Iconic 90s WordArt Chrome/Gold Title */
.wordart-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 6px;
  line-height: 1.05;
  color: #ffff00;
  text-shadow:
    3px 3px 0 #ff0080,
    6px 6px 0 #0000ff,
    -1px -1px 0 #00ffff;
}

.hero-subtitle {
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
  margin-top: 4px;
  text-shadow: 1px 1px 0 #000000;
}

.hero-tagline {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyber-lime);
}

.hero-right-badge {
  flex-shrink: 0;
}

.award-box {
  width: 96px;
  border: 2px outset #ffd700;
  background: #220000;
  text-align: center;
  font-family: var(--font-mono);
  box-shadow: 2px 2px 0 #000000;
}

.award-top {
  background: #cc0000;
  color: #ffff00;
  font-size: 10px;
  font-weight: bold;
  padding: 2px;
}

.award-mid {
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  padding: 6px 2px;
  line-height: 1.25;
}

.award-bot {
  background: #ffd700;
  color: #000000;
  font-size: 10px;
  font-weight: bold;
  padding: 1px;
}

/* Classic 90s Scrolling Marquee */
.marquee-container {
  display: flex;
  align-items: center;
  margin-top: 6px;
  background: #000000;
  border: 2px inset #808080;
  overflow: hidden;
}

.marquee-label {
  background: #ff0000;
  color: #ffff00;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: bold;
  padding: 4px 8px;
  flex-shrink: 0;
  border-right: 2px solid #ffffff;
}

.marquee-viewport {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  padding: 3px 0;
}

.marquee-track {
  display: inline-block;
  padding-left: 100%;
  color: var(--cyber-yellow);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: bold;
  animation: retro-marquee 32s linear infinite;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes retro-marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Portal 2-Column Layout */
.portal-grid {
  display: grid;
  grid-template-columns: 215px 1fr;
  gap: 12px;
  align-items: start;
}

/* Sidebar Navigation */
.sidebar-body {
  padding: 8px;
}

.menu-header {
  background: #000080;
  color: #ffff00;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: bold;
  text-align: center;
  padding: 2px 4px;
  margin-bottom: 6px;
}

.retro-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-link {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.nav-link.active {
  background: #ffffcc;
  color: #000080;
}

.quick-links {
  list-style: none;
  margin: 0;
  padding: 0 2px;
  font-size: 12px;
}

.quick-links li {
  margin-bottom: 4px;
}

a {
  color: var(--link-blue);
  text-decoration: underline;
}

a:visited {
  color: var(--link-visited);
}

a:hover {
  color: #ff0000;
}

.retro-hr {
  border: 0;
  height: 2px;
  border-top: 1px solid var(--win-dark);
  border-bottom: 1px solid var(--win-light);
  margin: 10px 0;
}

/* Classic Blinking NEW / HOT Tags */
.blink-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: bold;
  padding: 0 3px;
  border: 1px solid #000000;
  animation: retro-blink 1s steps(2, start) infinite;
}

.tag-hot {
  background: #ff0000;
  color: #ffff00;
}

.tag-new {
  background: #00ff00;
  color: #000000;
}

@keyframes retro-blink {
  to {
    visibility: hidden;
  }
}

/* Hit Counter */
.counter-body {
  text-align: center;
}

.counter-label {
  font-size: 11px;
  margin-bottom: 5px;
  font-weight: bold;
}

.led-counter {
  display: inline-block;
  background: #000000;
  color: #00ff00;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 4px;
  padding: 4px 8px 4px 12px;
  border: 3px inset #808080;
  text-shadow: 0 0 6px #00ff00;
}

.counter-sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #404040;
}

/* 88x31 Pixel Badges */
.badges-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.pixel-badge {
  width: 140px;
  height: 26px;
  padding: 0;
  display: flex;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  border: 2px outset #ffffff;
  background: #000000;
}

.pixel-badge span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.pb-left {
  width: 42%;
  color: #ffffff;
}

.pb-right {
  width: 58%;
  color: #000000;
}

.badge-netscape .pb-left { background: #004466; }
.badge-netscape .pb-right { background: #00cccc; }

.badge-html .pb-left { background: #cc3300; }
.badge-html .pb-right { background: #ffcc00; }

.badge-y2k .pb-left { background: #006600; }
.badge-y2k .pb-right { background: #66ff66; }

.badge-guslive .pb-left { background: #660099; }
.badge-guslive .pb-right { background: #ff99ff; }

.webboard-open-strip {
  display: block;
  margin-top: 6px;
  width: 100%;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: bold;
  color: #000000;
  padding: 6px 4px;
  border: 2px outset #ffffff;
  background: linear-gradient(180deg, #99ff99 0%, #33cc33 100%);
  box-shadow: 1px 1px 0 #000000;
}

.webboard-open-strip:hover {
  color: #000080;
  background: linear-gradient(180deg, #ffff66 0%, #ffcc00 100%);
}

/* Main Content Typography & Tables */
.content-body {
  background: #ececec;
}

.welcome-banner {
  background: #ffffff;
  border: 2px inset #808080;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.welcome-ascii {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: bold;
  color: #000080;
  text-align: center;
  margin-bottom: 8px;
  overflow-x: auto;
}

.lead-text {
  margin: 0;
  font-size: 13px;
}

.retro-h2 {
  margin: 0 0 10px 0;
  padding: 4px 8px;
  background: #000080;
  color: #ffff00;
  font-size: 14px;
  border: 2px outset #ffffff;
}

.retro-h3 {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: #800000;
  text-decoration: underline;
}

.retro-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
  background: #808080;
  border: 2px outset #ffffff;
  margin-top: 8px;
}

.retro-table th {
  background: #000080;
  color: #ffffff;
  padding: 5px 8px;
  text-align: left;
  font-size: 12px;
}

.retro-table td {
  background: #ffffff;
  padding: 7px 8px;
  vertical-align: top;
}

.pillar-cell {
  width: 50%;
}

.pillar-title {
  font-weight: bold;
  color: #000080;
  font-size: 13px;
  margin-bottom: 4px;
}

.pillar-cell p {
  margin: 0 0 6px 0;
  font-size: 12px;
}

.retro-inline-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: bold;
}

.mono {
  font-family: var(--font-mono);
}

.status-ok {
  color: #008000;
  font-weight: bold;
  font-family: var(--font-mono);
  text-align: center;
}

.status-hot {
  color: #cc0000;
  font-weight: bold;
  font-family: var(--font-mono);
  text-align: center;
}

/* Studio Floor Explorer */
.floor-explorer {
  margin: 10px 0 12px;
}

.floor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: -2px;
  position: relative;
  z-index: 2;
}

.win95-tab {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: bold;
  padding: 5px 10px;
  background: #b0b0b0;
  color: #000000;
  cursor: pointer;
  border-top: 2px solid var(--win-light);
  border-left: 2px solid var(--win-light);
  border-right: 2px solid var(--win-darker);
  border-bottom: 2px solid var(--win-dark);
}

.win95-tab.active {
  background: #ffffff;
  color: #000080;
  border-bottom: 2px solid #ffffff;
}

.floor-panel {
  padding: 10px;
  position: relative;
  z-index: 1;
}

.floor-grid {
  display: grid;
  grid-template-columns: 235px 1fr;
  gap: 12px;
  align-items: center;
}

.ascii-map {
  margin: 0;
  padding: 8px;
  background: #001122;
  color: #00ff99;
  border: 2px inset #808080;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.35;
  overflow-x: auto;
}

.floor-real-photo {
  display: block;
  width: 100%;
  max-height: 195px;
  object-fit: cover;
  border: 2px ridge #808080;
  background: #000022;
  cursor: zoom-in;
}

.retro-list {
  margin: 4px 0 6px 18px;
  padding: 0;
}

.retro-list li {
  margin-bottom: 4px;
}

/* GUSlive Diagram */
.guslive-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  margin-bottom: 10px;
  background: #000033;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
}

.diagram-node {
  border: 2px outset #c0c0c0;
  background: #004488;
  padding: 4px 8px;
  font-weight: bold;
}

.node-highlight {
  background: #cc0066;
  color: #ffff00;
  border-color: #ffff00;
}

.diagram-arrow {
  color: #00ff00;
  font-weight: bold;
}

.cta-row {
  margin: 10px 0 0;
}

/* Split 2 Columns (Pro-AV & Engineering) */
.split-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.retro-panel {
  background: #ffffff;
  border: 2px inset #808080;
  padding: 10px;
}

/* Official Channel CTA Bars & Partner Feature Box */
.channel-cta-bar {
  margin-top: 10px;
  padding: 8px 10px;
  background: #dfe8ff;
  border: 2px ridge #808080;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.channel-cta-label {
  font-weight: bold;
  font-size: 12px;
  color: #000080;
}

.btn-fb {
  background: #d9e6ff;
  color: #003399;
}

.btn-yt {
  background: #ffe0e0;
  color: #aa0000;
}

.partner-feature-box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #ffffff;
}

.partner-badge-col {
  flex-shrink: 0;
}

.partner-emblem {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, #000066 0%, #004488 100%);
  color: #ffff00;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: bold;
  line-height: 1.25;
  border: 3px ridge #00ffff;
}

.partner-emblem-kv {
  background: linear-gradient(180deg, #330044 0%, #990044 100%);
  color: #ffffff;
  border-color: #ff66aa;
}

.kiloview-box {
  padding: 10px 12px;
  background: #ffffff;
}

.partner-info-col {
  flex: 1 1 280px;
}

.directory-table {
  min-width: 480px;
}

.dir-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.dir-links a {
  text-decoration: none;
}

.info-table th {
  width: 34%;
  background: #dfdfdf;
  color: #000000;
  border-right: 1px solid #808080;
}

/* Retro Forms (Guestbook & Contact) */
.small-note {
  margin-top: 0;
  font-size: 12px;
  color: #333333;
}

.retro-form {
  padding: 10px;
  background: #f5f5f5;
  margin-bottom: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 8px;
  align-items: start;
  margin-bottom: 8px;
}

.form-row label {
  font-weight: bold;
  font-size: 12px;
  padding-top: 3px;
}

.retro-form input[type="text"],
.retro-form select,
.retro-form textarea {
  font-family: var(--font-ui);
  font-size: 12px;
  padding: 4px 6px;
  background: #ffffff;
  color: #000000;
  border-top: 2px solid var(--win-dark);
  border-left: 2px solid var(--win-dark);
  border-right: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-light);
  width: 100%;
}

.form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* Guestbook Entries */
.guestbook-entries-header {
  background: #008080;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  margin-bottom: 8px;
}

.guestbook-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gb-entry {
  background: #ffffff;
  border: 2px ridge #808080;
  padding: 8px 10px;
}

.gb-entry-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  border-bottom: 1px dashed #808080;
  padding-bottom: 4px;
  margin-bottom: 5px;
  font-size: 11px;
}

.gb-author {
  font-weight: bold;
  color: #000080;
}

.gb-mood {
  background: #ffffcc;
  border: 1px solid #808080;
  padding: 0 5px;
  font-family: var(--font-mono);
}

.gb-date {
  font-family: var(--font-mono);
  color: #555555;
}

.gb-msg {
  margin: 0;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Footer & Webring */
.footer-body {
  text-align: center;
  font-size: 12px;
}

.webring-box {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #000033;
  color: #ffff00;
  border: 2px ridge #00ffff;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.copyright-line {
  margin: 6px 0 0;
  line-height: 1.6;
}

.webmaster-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #404040;
}

/* Bottom Browser Status Bar */
.browser-statusbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: var(--win-gray);
  border-top: 2px solid var(--win-light);
  padding: 3px 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.status-left,
.status-right {
  border-top: 1px solid var(--win-dark);
  border-left: 1px solid var(--win-dark);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  padding: 1px 6px;
}

.status-left {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-right {
  font-family: var(--font-mono);
  font-weight: bold;
  color: #000080;
}

/* ==========================================================================
   PIRCH98 IRC Live Chat Client Styles (Authentic 1998 Thai IRC Experience)
   ========================================================================== */

.pirch-menubar {
  background: var(--win-gray);
  border-bottom: 1px solid var(--win-dark);
  padding: 2px 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  user-select: none;
}

.pirch-menu-item {
  cursor: pointer;
  padding: 1px 4px;
}

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

.pirch-body {
  background: var(--win-gray);
  padding: 8px;
}

.pirch-chan-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.pirch-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.pirch-users-toggle {
  display: none;
}

.pirch-topic {
  background: #ffffe0;
  color: #000066;
  border: 1px inset #808080;
  padding: 3px 6px;
  font-size: 11px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pirch-main-split {
  display: grid;
  grid-template-columns: 1fr 165px;
  gap: 6px;
  margin-bottom: 6px;
}

.pirch-log {
  height: 255px;
  overflow-y: auto;
  padding: 6px 8px;
  background: #ffffff;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.5;
  word-break: break-word;
}

.pirch-window.pirch-dark .pirch-log {
  background: #000018;
  color: #e0e0e0;
}

.pirch-window.pirch-dark .pirch-nick-pane {
  background: #000028;
  color: #00ffcc;
}

.pirch-window.pirch-dark .pirch-nick-head {
  background: #000080;
  color: #ffff00;
}

.pirch-line {
  margin-bottom: 3px;
}

.pirch-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #777777;
  margin-right: 4px;
}

.pirch-window.pirch-dark .pirch-time {
  color: #8899aa;
}

.pirch-nick {
  font-weight: bold;
  margin-right: 4px;
}

.pirch-nick-op {
  color: #cc0000;
}

.pirch-nick-self {
  color: #0000cc;
}

.pirch-window.pirch-dark .pirch-nick-self {
  color: #66ccff;
}

.pirch-line-system {
  color: #008000;
  font-family: var(--font-mono);
  font-size: 11px;
}

.pirch-window.pirch-dark .pirch-line-system {
  color: #33ff66;
}

.pirch-line-action {
  color: #800080;
  font-style: italic;
}

.pirch-window.pirch-dark .pirch-line-action {
  color: #ff88ff;
}

.pirch-nick-pane {
  height: 255px;
  overflow-y: auto;
  background: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
}

.pirch-nick-head {
  background: #dfdfdf;
  border-bottom: 1px solid #808080;
  padding: 3px 6px;
  font-weight: bold;
  position: sticky;
  top: 0;
}

.pirch-nicklist {
  list-style: none;
  margin: 0;
  padding: 4px 6px;
}

.pirch-nicklist li {
  padding: 2px 2px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pirch-nicklist li:hover {
  background: #000080;
  color: #ffffff;
}

.pirch-tools-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}

.pirch-color-select {
  font-family: var(--font-ui);
  font-size: 11px;
  padding: 2px 4px;
  background: #ffffff;
  border-top: 2px solid var(--win-dark);
  border-left: 2px solid var(--win-dark);
  border-right: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-light);
}

.pirch-emotes {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.pirch-input-row {
  display: flex;
  gap: 6px;
}

.pirch-input-row input {
  flex: 1;
  font-family: var(--font-ui);
  font-size: 13px;
  padding: 5px 8px;
  background: #ffffff;
  border-top: 2px solid var(--win-dark);
  border-left: 2px solid var(--win-dark);
  border-right: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-light);
}

.pirch-send-btn {
  flex-shrink: 0;
}

@media (max-width: 680px) {
  .pirch-users-toggle {
    display: inline-flex;
  }

  .pirch-main-split {
    grid-template-columns: 1fr;
  }

  .pirch-nick-pane {
    display: none;
    height: 140px;
  }

  .pirch-nick-pane.is-open {
    display: block;
  }

  .pirch-input-row input {
    font-size: 16px;
  }
}

/* ==========================================================================
   Daily Industry News Wire & Classic 90s Thai Webboard Styles
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.news-header-bar,
.wb-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.news-h2,
.wb-h2 {
  margin-bottom: 4px;
}

.news-meta-line,
.wb-stats {
  font-size: 11px;
  color: #333333;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.news-filter.active,
.wb-cat-btn.active {
  background: #000080;
  color: #ffff00;
  border-top: 2px solid var(--win-darker);
  border-left: 2px solid var(--win-darker);
  border-right: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-light);
}

.news-list {
  padding: 8px;
  background: #ffffff;
  max-height: 360px;
  overflow-y: auto;
}

.loading-row {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 12px;
  text-align: center;
  color: #000080;
}

.news-item {
  border-bottom: 1px dashed #808080;
  padding: 8px 4px;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
}

.news-cat-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: bold;
  padding: 1px 6px;
  background: #000080;
  color: #ffffff;
  border: 1px solid #000000;
}

.news-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #555555;
}

.news-title {
  margin: 2px 0 4px;
  font-size: 13px;
  font-weight: bold;
}

.news-summary {
  margin: 0 0 4px;
  font-size: 12px;
  color: #222222;
}

.news-source {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #006666;
}

/* Classic 90s Webboard */
.wb-top-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.wb-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.wb-toolbar .filter-bar {
  margin-bottom: 0;
}

.wb-search-box input {
  font-family: var(--font-ui);
  font-size: 12px;
  padding: 3px 6px;
  width: 210px;
  background: #ffffff;
  border-top: 2px solid var(--win-dark);
  border-left: 2px solid var(--win-dark);
  border-right: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-light);
}

.wb-table td {
  font-size: 12px;
  vertical-align: middle;
}

.wb-table tr:nth-child(even) td {
  background: #f4f7ff;
}

.wb-topic-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: bold;
  color: var(--link-blue);
  text-decoration: underline;
  text-align: left;
  cursor: pointer;
}

.wb-topic-btn:hover {
  color: #cc0000;
}

.wb-pin-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  background: #ffff00;
  color: #800000;
  border: 1px solid #800000;
  padding: 0 3px;
  margin-right: 4px;
}

.wb-cat-label {
  font-size: 11px;
  color: #004466;
  font-weight: bold;
}

.wb-stats-cell {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
}

.wb-legend {
  margin-top: 6px;
  font-size: 11px;
  color: #404040;
}

/* Webboard Thread Reader (Pantip 90s Classic Post Boxes!) */
.wb-op-box {
  background: #000055;
  color: #ffffff;
  border: 3px ridge #00ffff;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.wb-op-header {
  border-bottom: 1px dashed #00ffff;
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.wb-op-title {
  margin: 0 0 4px;
  font-size: 15px;
  color: #ffff00;
}

.wb-op-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #aaddff;
}

.wb-op-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.wb-reply-box {
  background: #ffffff;
  border: 2px ridge #808080;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.wb-reply-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  background: #e6eeff;
  border-bottom: 1px solid #99aacc;
  padding: 3px 6px;
  margin: -8px -10px 8px;
  font-size: 11px;
}

.wb-reply-num {
  font-family: var(--font-mono);
  font-weight: bold;
  color: #000080;
}

.wb-reply-body {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.wb-reply-form {
  margin-top: 10px;
}

/* Webboard Image Upload, Preview & Lightbox Styles */
.img-hint {
  font-size: 10px;
  color: #555555;
  margin-top: 2px;
}

.img-preview-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  margin: 4px 0 8px;
  background: #e8e8e8;
  border: 2px inset #808080;
}

.wb-preview-thumb {
  max-width: 160px;
  max-height: 110px;
  border: 2px outset #ffffff;
  background: #000000;
  object-fit: contain;
}

.wb-has-img {
  display: inline-block;
  margin-left: 5px;
  font-size: 11px;
  vertical-align: middle;
}

.wb-attached-figure {
  margin: 10px 0 2px;
  padding: 6px;
  display: inline-block;
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  max-width: 100%;
}

.wb-attached-img {
  display: block;
  max-width: 100%;
  max-height: 360px;
  cursor: zoom-in;
  border: 1px solid #000000;
  background: #000022;
}

.wb-attached-caption {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #000000;
  text-align: center;
}

.img-modal-dialog {
  width: 100%;
  max-width: 760px;
  margin: 0;
}

.img-modal-body {
  text-align: center;
  background: #202020;
}

.img-modal-full {
  max-width: 100%;
  max-height: 75vh;
  border: 2px ridge #c0c0c0;
  background: #000000;
}

/* Classic Win95 Modal Dialog */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  width: 100%;
  max-width: 400px;
  margin: 0;
}

.modal-content-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.modal-icon {
  font-size: 28px;
  line-height: 1;
}

.modal-message {
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-line;
}

.modal-actions {
  text-align: center;
}

.modal-actions .win95-btn {
  min-width: 84px;
}

/* ==========================================================================
   Multi-Device Responsive Breakpoints:
   - PC (>= 1200px)
   - Notebook (901px - 1199px)
   - iPad / Tablet (601px - 900px)
   - Mobile (<= 600px)
   ========================================================================== */

/* Notebook / Compact Laptop */
@media (max-width: 1120px) {
  .portal-wrapper {
    max-width: 980px;
  }

  .portal-grid {
    grid-template-columns: 200px 1fr;
    gap: 10px;
  }

  .wordart-title {
    font-size: 46px;
  }
}

/* iPad & Tablet (Portrait & Compact Landscape) */
@media (max-width: 900px) {
  .mobile-quickbar {
    display: block;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  /* Collapsible Sidebar Drawer on iPad/Tablet & Mobile */
  .sidebar-col {
    display: none;
  }

  .sidebar-col.is-open {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-bottom: 6px;
  }

  .hero-banner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 12px;
  }

  .hero-title-block {
    flex: 1 1 100%;
    order: 1;
  }

  .hero-emblem {
    order: 2;
  }

  .hero-right-badge {
    order: 3;
  }

  .wordart-title {
    font-size: 42px;
    letter-spacing: 4px;
  }

  .floor-grid,
  .split-2col {
    grid-template-columns: 1fr;
  }

  .wb-search-box,
  .wb-search-box input {
    width: 100%;
  }
}

/* Mobile Phones (iPhone / Android 360px - 600px) */
@media (max-width: 600px) {
  body {
    font-size: 13px;
  }

  .portal-wrapper {
    margin-top: 8px;
    padding: 0 6px;
  }

  .top-utility-inner {
    font-size: 11px;
    justify-content: center;
    text-align: center;
  }

  .win95-titlebar {
    font-size: 11px;
    padding: 4px 6px;
  }

  .titlebar-tag {
    display: none;
  }

  .win95-body {
    padding: 8px;
  }

  .wordart-title {
    font-size: 34px;
    letter-spacing: 3px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .hero-tagline {
    font-size: 10px;
    line-height: 1.45;
  }

  .welcome-ascii {
    font-size: 9px;
  }

  /* Stack 2x2 business pillars cleanly into 1 column on phones */
  .pillar-table tbody,
  .pillar-table tr,
  .pillar-table td.pillar-cell {
    display: block;
    width: 100%;
  }

  .pillar-table td.pillar-cell {
    margin-bottom: 4px;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    border-right: none;
    border-bottom: 1px solid #808080;
  }

  .wb-table {
    min-width: 520px;
  }

  .spec-table {
    min-width: 480px;
  }

  .guslive-diagram {
    flex-direction: column;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  /* Prevent iOS Safari zoom on input focus */
  .retro-form input[type="text"],
  .retro-form select,
  .retro-form textarea,
  .wb-search-box input {
    font-size: 16px;
    padding: 7px 8px;
  }

  /* Comfortable touch targets on Mobile */
  .win95-btn,
  .win95-tab {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .win95-btn.btn-mini {
    min-height: 32px;
  }

  .nav-link {
    justify-content: space-between;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .win95-btn {
    width: 100%;
  }

  .sidebar-col.is-open {
    grid-template-columns: 1fr;
  }

  .browser-statusbar {
    padding-bottom: calc(4px + env(safe-area-inset-bottom, 0px));
    font-size: 10px;
  }

  .status-right {
    display: none;
  }

  .pdpa-actions {
    width: 100%;
  }

  .pdpa-actions .win95-btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .blink-tag {
    animation: none;
  }
}
