@font-face {
  font-family: 'JMH Typewriter';
  src: url('https://raw.githubusercontent.com/realmxrza/assets/main/fonts/JMH%20Typewriter-Thin.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JMH Typewriter';
  src: url('https://raw.githubusercontent.com/realmxrza/assets/main/fonts/JMH%20Typewriter.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JMH Typewriter';
  src: url('https://raw.githubusercontent.com/realmxrza/assets/main/fonts/JMH%20Typewriter-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JMH Typewriter';
  src: url('https://raw.githubusercontent.com/realmxrza/assets/main/fonts/JMH%20Typewriter-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-chrome:  "JMH Typewriter", Tahoma, Verdana, "Segoe UI", Arial, sans-serif;
  --font-content: "JMH Typewriter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "JMH Typewriter", "JetBrains Mono", "Cascadia Mono", "Consolas", "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #060e08;
  font-family: var(--font-chrome);
  font-size: 12px;
  line-height: 1.55;
  min-height: 100vh;
  color: #000;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a             { color: #006618; }
a:hover       { color: #cc0000; }
a:visited     { color: #551a8b; }
img           { display: block; }

* { scrollbar-width: thin; scrollbar-color: #d4d0c8 #808080; }
::-webkit-scrollbar       { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: #c8c4bc; border: 1px solid; border-color: #808080 #fff #fff #808080; }
::-webkit-scrollbar-thumb { background: #d4d0c8; border: 2px solid; border-color: #fff #808080 #808080 #fff; }
::-webkit-scrollbar-button { display: block; height: 14px; background: #d4d0c8; border: 2px solid; border-color: #fff #808080 #808080 #fff; }

#entrance {
  position: fixed; inset: 0;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  z-index: 10000; cursor: pointer;
  flex-direction: column; gap: 0;
  transition: opacity 0.4s;
}
#entrance.out { opacity: 0; pointer-events: none; }
#entrance-gif { width: 260px; height: auto; margin-bottom: 20px; image-rendering: pixelated; }
.e-name   { font-family: var(--font-chrome); font-size: 18px; color: #c0c0c0; margin-bottom: 10px; letter-spacing: 3px; }
.e-prompt { font-family: var(--font-mono); font-size: 11px; color: #555; letter-spacing: 0.05em; animation: blink 1.2s step-end infinite; }

#content { display: none; padding: 12px; min-height: 100vh; }
#content.show { display: block; }

.win-app {
  max-width: 1240px;
  margin: 0 auto;
  background: rgba(212, 208, 200, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  box-shadow: 4px 4px 16px rgba(0,0,0,0.75);
}

.win-titlebar {
  background: linear-gradient(90deg, #004d00, #0d8830);
  padding: 3px 5px 3px 7px;
  display: flex; align-items: center; justify-content: space-between;
  user-select: none; gap: 4px;
}
.win-title-left { display: flex; align-items: center; gap: 5px; }
.win-title-text { color: #fff; font-size: 11px; font-weight: bold; }
.win-title-btns { display: flex; gap: 2px; }
.win-btn {
  width: 16px; height: 14px;
  background: #d4d0c8;
  border: 2px solid; border-color: #fff #808080 #808080 #fff;
  font-size: 9px; font-weight: bold; font-family: Tahoma, sans-serif;
  cursor: pointer; padding: 0; color: #000;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.win-btn:active { border-color: #808080 #fff #fff #808080; }

.top-nav {
  background: rgba(212, 208, 200, 0.90);
  border-bottom: 2px solid #808080;
  display: flex; align-items: flex-end;
  padding: 4px 6px 0; gap: 2px;
  flex-wrap: wrap; overflow-x: auto;
}
.nav-tab {
  padding: 3px 12px 4px;
  font-size: 11px; font-family: Tahoma, sans-serif;
  color: #000; text-decoration: none;
  background: rgba(212, 208, 200, 0.90);
  border: 2px solid; border-color: #fff #808080 #808080 #fff;
  border-bottom: none;
  position: relative; top: 2px; white-space: nowrap;
}
.nav-tab:hover  { background: rgba(232,228,220,0.95); color: #000; text-decoration: none; }
.nav-tab.active { background: rgba(212,208,200,0.95); border-bottom: 2px solid rgba(212,208,200,0.95); z-index: 1; font-weight: bold; }

.main-body { padding: 6px; }
.main-grid {
  display: grid;
  grid-template-columns: 210px 1fr;
  grid-template-rows: auto auto auto auto;
  grid-template-areas:
    "sidebar welcome"
    "sidebar stamps"
    "sidebar lower-a"
    "sidebar lower-b";
  gap: 6px;
}
.col-sidebar  { grid-area: sidebar; display: flex; flex-direction: column; gap: 6px; }
.area-welcome { grid-area: welcome; }
.area-stamps  { grid-area: stamps; }
.area-lower-a { grid-area: lower-a; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.area-lower-b { grid-area: lower-b; }

.stamps-row {
  display: flex; flex-wrap: wrap;
  gap: 6px; align-items: center; justify-content: center;
  padding: 2px;
}
.stamp {
  height: 56px; width: auto; max-width: 100%;
  border: 1px solid; border-color: #808080 #fff #fff #808080;
  transition: transform 0.18s ease;
  cursor: pointer;
}
.stamp:hover {
  transform: scale(1.35);
  position: relative; z-index: 5;
}

.ub-grid {
  display: flex; flex-wrap: wrap;
  gap: 6px; align-items: flex-start;
}
.ub {
  width: 350px; height: 44px;
  object-fit: contain; flex-shrink: 0;
  background: rgba(0,0,0,0.15);
  border: 1px solid; border-color: #808080 #fff #fff #808080;
}

.panel {
  background: rgba(212, 208, 200, 0.80);
  border: 2px solid; border-color: #ffffff #808080 #808080 #ffffff;
}
.panel-header {
  background: linear-gradient(90deg, #004d00, #0d8830);
  padding: 2px 6px;
  display: flex; align-items: center; justify-content: space-between;
}
.panel-header h2, .panel-header span {
  color: #fff; font-size: 11px; font-weight: bold; font-family: Tahoma, sans-serif;
}
.panel-mini-btns { display: flex; gap: 2px; }
.pmb {
  width: 13px; height: 11px;
  background: #d4d0c8;
  border: 1px solid; border-color: #fff #808080 #808080 #fff;
  font-size: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: Tahoma; font-weight: bold; color: #000; padding: 0;
}
.panel-body { padding: 7px; }
.panel-body.tight { padding: 5px; }
.panel-body.scroll {
  height: 160px; overflow-y: scroll;
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid; border-color: #808080 #fff #fff #808080;
  padding: 6px;
}

.inset {
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid; border-color: #808080 #fff #fff #808080;
  padding: 6px 8px;
  font-family: var(--font-content);
  line-height: 1.7;
  letter-spacing: 0.005em;
}
.inset p + p { margin-top: 6px; }

.nav-list { list-style: none; }
.nav-list li { margin: 1px 0; }
.nav-list a  { display: block; padding: 3px 6px; font-size: 12px; color: #000; text-decoration: none; }
.nav-list a::before { content: "> "; color: #808080; font-size: 10px; }
.nav-list a:hover   { background: #004d00; color: #fff; text-decoration: none; }
.nav-list a:hover::before { color: #aad; }

.chk-row { display: flex; align-items: center; gap: 5px; margin: 3px 0; font-size: 11px; cursor: pointer; }
.chk-row input { cursor: pointer; }

.counter-box { text-align: center; }
.counter-digits {
  font-family: var(--font-mono); font-size: 18px; font-weight: 500;
  background: #000; color: #00ff00; padding: 4px 10px;
  border: 2px solid; border-color: #808080 #fff #fff #808080;
  letter-spacing: 2px; display: inline-block;
}
.counter-label { font-size: 10px; color: #666; margin-top: 3px; letter-spacing: 0.04em; }

.clock-time { font-family: var(--font-mono); font-size: 20px; font-weight: 500; color: #004d00; letter-spacing: 1px; text-align: center; }
.clock-tz   { font-family: var(--font-mono); font-size: 9px; color: #808080; text-align: center; margin-top: 2px; letter-spacing: 0.08em; }

.img-ph {
  background: repeating-linear-gradient(45deg, #c8c4bc, #c8c4bc 2px, #d4d0c8 2px, #d4d0c8 12px);
  border: 2px solid; border-color: #808080 #fff #fff #808080;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
  color: #808080; font-size: 11px; text-align: center;
}

.welcome-grid {
  display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: start;
}

.discord-av-wrap {
  position: relative; width: 90px; height: 90px;
  margin: 0 auto; flex-shrink: 0;
}
.discord-av {
  width: 90px; height: 90px;
  border: 2px solid; border-color: #808080 #fff #fff #808080;
  object-fit: cover; background: #888; display: block;
}
.discord-dec {
  position: absolute;
  top: -12px; left: -12px;
  width: 114px; height: 114px;
  pointer-events: none; z-index: 2;
}

.status-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 11px; }
.sdot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.sdot.online  { background: #43b581; box-shadow: 0 0 3px #43b581; }
.sdot.idle    { background: #faa61a; }
.sdot.dnd     { background: #f04747; }
.sdot.offline { background: #747f8d; }

.pres-entry { display: flex; gap: 8px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dotted #aaa; }
.pres-entry:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.pres-art {
  width: 56px; height: 56px; flex-shrink: 0;
  border: 3px solid; border-color: #4ade80 #0e1a0e #0e1a0e #4ade80;
  outline: 1px solid #1e3d25;
  box-shadow: 0 0 10px rgba(74,222,128,0.45), 2px 2px 4px rgba(0,0,0,0.6);
  background: #888; object-fit: cover; position: relative;
  image-rendering: auto;
}
.pres-art-small {
  width: 20px; height: 20px; position: absolute; bottom: -4px; right: -4px;
  border: 1px solid #808080; background: #888; object-fit: cover;
}
.pres-info   { flex: 1; min-width: 0; }
.pres-type   { font-size: 9px; color: #808080; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.pres-name   { font-size: 12px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pres-detail { font-size: 11px; color: #444; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pres-state  { font-size: 10px; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pres-link   { font-size: 10px; color: #006618; text-decoration: none; display: inline-block; margin-top: 2px; }
.pres-link:hover { color: #cc0000; }
.prog-outer  { background: #808080; border: 1px solid; border-color: #808080 #fff #fff #808080; height: 7px; position: relative; margin-top: 4px; }
.prog-inner  { height: 100%; background: #004d00; width: 0; transition: width 1s linear; }
.prog-times  { display: flex; justify-content: space-between; font-size: 9px; color: #666; margin-top: 1px; }
.no-act      { font-size: 11px; color: #808080; padding: 10px 0; text-align: center; }

.blog-list { list-style: none; }
.blog-list li { padding: 5px 0; border-bottom: 1px dotted #aaa; }
.blog-list li:last-child { border-bottom: none; }
.blog-title { font-family: var(--font-content); font-weight: 600; font-size: 12px; line-height: 1.4; letter-spacing: -0.005em; }
.blog-date  { font-family: var(--font-mono); font-size: 10px; color: #666; letter-spacing: 0.02em; }
.blog-blurb { font-family: var(--font-content); font-size: 11px; color: #444; margin-top: 2px; line-height: 1.55; }
.blog-tag   { font-family: var(--font-mono); font-size: 9px; border: 1px solid #3a5040; padding: 1px 5px; color: #a0b8a5; margin-right: 4px; display: inline-block; letter-spacing: 0.03em; }

.blog-post-row { padding: 20px 18px; }
.blog-post-row + .blog-post-row { border-top: 1px solid #1e3d25; }
.blog-post-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #788a7c;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.blog-post-title {
  font-family: var(--font-content);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  color: #4ade80;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.blog-post-body {
  font-family: var(--font-content);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
  color: #c0dcc6;
  max-width: none;
  margin-bottom: 12px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.blog-post-body p + p { margin-top: 12px; }
.blog-post-body + .blog-post-tags { margin-top: 10px; }

.cl-entry { padding: 4px 0; border-bottom: 1px dotted #aaa; font-size: 11px; font-family: var(--font-content); line-height: 1.5; letter-spacing: 0.005em; }
.cl-entry:last-child { border-bottom: none; }
.cl-date { font-family: var(--font-mono); font-weight: 500; font-size: 10px; display: block; margin-bottom: 2px; letter-spacing: 0.03em; }

.tracks-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.t-item { text-align: center; }
.t-art {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border: 1px solid; border-color: #808080 #fff #fff #808080;
  background: #888; image-rendering: pixelated;
}
.t-name   { font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.t-artist { font-size: 8px; color: #666; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-dot {
  display: inline-block; width: 5px; height: 5px;
  border-radius: 50%; background: #004d00;
  animation: blink 1s step-end infinite;
  margin-right: 2px; vertical-align: middle;
}

.utterances-wrap { padding: 4px; min-height: 60px; }
.utterances-wrap .utterances { max-width: 100%; margin: 0; }

.win-footer {
  border-top: 2px solid; border-color: #808080 #fff;
  padding: 4px 8px;
  font-size: 10px; color: #444;
  display: flex; justify-content: space-between;
  background: rgba(212, 208, 200, 0.90);
  flex-wrap: wrap; gap: 4px;
}
.status-bar-seg {
  border: 1px solid; border-color: #808080 #fff #fff #808080;
  padding: 1px 6px; font-size: 10px; color: #444;
}

.win-app { overflow-x: hidden; }

.btn98 {
  background: rgba(212,208,200,0.95);
  border: 2px solid; border-color: #fff #808080 #808080 #fff;
  padding: 3px 12px; font-size: 12px; font-family: Tahoma, sans-serif;
  cursor: pointer; text-decoration: none; color: #000; display: inline-block;
}
.btn98:hover  { background: rgba(232,228,220,0.95); color: #000; text-decoration: none; }
.btn98:active { border-color: #808080 #fff #fff #808080; }

.btns88 { display: flex; flex-wrap: wrap; gap: 4px; }
.b88 {
  width: 88px; height: 31px;
  border: 1px solid #808080;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; text-align: center; overflow: hidden;
  cursor: pointer; text-decoration: none;
  background: #d4d0c8; color: #000; line-height: 1.1;
}
.b88:hover { border-color: #004d00; box-shadow: 0 0 0 1px #004d00; }
.b88.ph    { border-style: dashed; color: #aaa; font-style: italic; cursor: default; }
.b88 img   { width: 88px; height: 31px; object-fit: cover; }

.lfm-profile-box { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.lfm-av  { width: 64px; height: 64px; border: 2px solid; border-color: #808080 #fff #fff #808080; background: #888; object-fit: cover; }
.lfm-name { font-size: 18px; font-weight: bold; }
.lfm-stats { font-size: 11px; color: #444; margin-top: 3px; }
.lfm-stats span { margin-right: 12px; }
.lfm-stat-n { font-weight: bold; color: #000; }
.track-list { border-collapse: collapse; width: 100%; font-size: 11px; }
.track-list th { background: rgba(212,208,200,0.90); border-bottom: 2px solid #808080; padding: 4px 6px; text-align: left; font-size: 11px; }
.track-list td { padding: 3px 6px; border-bottom: 1px solid #e0dcd4; vertical-align: middle; }
.track-list tr:hover td { background: rgba(232,228,220,0.80); }
.track-list .tl-art { width: 32px; height: 32px; border: 1px solid #808080; object-fit: cover; background: #888; image-rendering: pixelated; }
.tl-num { color: #808080; width: 24px; }
.tl-now { color: #004d00; font-weight: bold; }

#world-map { width: 100%; display: block; cursor: grab; }
#world-map:active { cursor: grabbing; }
.country-path {
  fill: rgba(0,0,0,0.01);
  stroke: #ffffff; stroke-width: 0.5;
  cursor: pointer; pointer-events: all;
}
.country-path:hover { fill: rgba(0,100,0,0.15); stroke: #004d00; }
.country-path.has-v { stroke: #004d00; fill: rgba(0,100,0,0.10); }
.map-tip {
  position: fixed;
  background: rgba(212,208,200,0.96);
  border: 2px solid; border-color: #fff #808080 #808080 #fff;
  padding: 5px 10px; font-size: 11px;
  pointer-events: none; display: none; z-index: 500;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.map-tip.show { display: block; }
.map-tip strong { display: block; color: #004d00; font-size: 12px; }
.map-zoom-btns { display: flex; gap: 4px; margin-top: 4px; }

.socials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; }
.social-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.80);
  border: 2px solid; border-color: #808080 #fff #fff #808080;
  text-decoration: none; color: #000; font-size: 12px;
  font-family: var(--font-content);
}
.social-link:hover { background: rgba(232,228,220,0.90); color: #000; }
.social-ico    { width: 22px; height: 22px; flex-shrink: 0; }
.social-name   { font-weight: 600; font-size: 12px; letter-spacing: -0.005em; }
.social-handle { font-family: var(--font-mono); font-size: 10px; color: #666; letter-spacing: 0.02em; }

.sub-body { padding: 6px; }
.sub-header { border-bottom: 2px solid #808080; padding: 5px 4px 8px; margin-bottom: 6px; }
.sub-header h1 { font-family: var(--font-content); font-size: 16px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.sub-header p  { font-family: var(--font-content); font-size: 11px; color: #666; margin-top: 2px; line-height: 1.5; }

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

#pet-sprite { image-rendering: pixelated; }

body.dark-mode { color: #d0e8d4; }

body.dark-mode .win-app {
  background: rgba(6, 14, 8, 0.88);
  border-color: #1e3d25 #051009 #051009 #1e3d25;
}
body.dark-mode .top-nav {
  background: rgba(6, 14, 8, 0.92);
  border-bottom-color: #142d1a;
}
body.dark-mode .nav-tab {
  background: rgba(8, 18, 10, 0.90);
  color: #c0dcc6; border-color: #1e3d25 #060d08 #060d08 #1e3d25;
}
body.dark-mode .nav-tab:hover { background: rgba(15,35,18,0.95); color: #fff; }
body.dark-mode .nav-tab.active { background: rgba(6,14,8,0.95); border-bottom-color: rgba(6,14,8,0.95); }
body.dark-mode .panel {
  background: rgba(8, 16, 10, 0.85);
  border-color: #1e3d25 #051009 #051009 #1e3d25;
}
body.dark-mode .panel-body.scroll,
body.dark-mode .inset {
  background: rgba(5, 10, 6, 0.92);
  border-color: #142d1a #1e3d25 #1e3d25 #142d1a; color: #c0dcc6;
}
body.dark-mode .win-footer {
  background: rgba(6, 14, 8, 0.90);
  border-top-color: #142d1a; color: #788a7c;
}
body.dark-mode .status-bar-seg { color: #788a7c; border-color: #142d1a #1e3d25 #1e3d25 #142d1a; }
body.dark-mode a { color: #4ade80; }
body.dark-mode a:hover { color: #ff7777; }
body.dark-mode a:visited { color: #86efac; }
body.dark-mode .nav-list a { color: #c0dcc6; }
body.dark-mode .nav-list a:hover { background: #004d00; color: #fff; }
body.dark-mode .btn98 {
  background: rgba(10,22,12,0.90); color: #c0dcc6;
  border-color: #1e3d25 #051009 #051009 #1e3d25;
}
body.dark-mode .btn98:hover { background: rgba(15,35,18,0.95); color: #fff; }
body.dark-mode .blog-date, body.dark-mode .blog-blurb { color: #788a7c; }
body.dark-mode .blog-title { color: #4ade80; }
body.dark-mode .cl-date { color: #c0dcc6; }
body.dark-mode .cl-entry { border-bottom-color: #142d1a; color: #a0b8a5; }
body.dark-mode .pres-name   { color: #d0e8d4; }
body.dark-mode .pres-detail { color: #a0b8a5; }
body.dark-mode .pres-state  { color: #788a7c; }
body.dark-mode .pres-type   { color: #506858; }
body.dark-mode .no-act      { color: #384a3c; }
body.dark-mode .clock-time  { color: #4ade80; }
body.dark-mode .clock-tz    { color: #384a3c; }
body.dark-mode .counter-digits { background: #000; color: #00ff88; }
body.dark-mode .t-name   { color: #c0dcc6; }
body.dark-mode .t-artist { color: #788a7c; }
body.dark-mode .track-list th { background: rgba(8,16,10,0.90); color: #c0dcc6; border-bottom-color: #142d1a; }
body.dark-mode .track-list td { border-bottom-color: #0e2014; }
body.dark-mode .track-list tr:hover td { background: rgba(14,28,16,0.80); }
body.dark-mode .social-link { background: rgba(5,10,6,0.80); color: #c0dcc6; border-color: #142d1a #1e3d25 #1e3d25 #142d1a; }
body.dark-mode .social-link:hover { background: rgba(12,24,14,0.90); }
body.dark-mode .social-handle { color: #788a7c; }
body.dark-mode .sub-header  { border-bottom-color: #142d1a; }
body.dark-mode .sub-header p { color: #788a7c; }
body.dark-mode .img-ph { background: repeating-linear-gradient(45deg,#0c1a0e,#0c1a0e 2px,#10201a 2px,#10201a 12px); color: #384a3c; }
body.dark-mode .b88.ph { color: #384a3c; border-color: #142d1a; }
body.dark-mode .map-tip { background: rgba(6,14,8,0.96); color: #c0dcc6; }
body.dark-mode .map-tip strong { color: #4ade80; }
body.dark-mode #map-container { background: rgba(5,10,6,0.90) !important; }
body.dark-mode .country-path { stroke: #ffffff; }
body.dark-mode .country-path:hover { fill: rgba(74,222,128,0.15); stroke: #4ade80; }
body.dark-mode .country-path.has-v { stroke: #4ade80; fill: rgba(74,222,128,0.10); }
body.dark-mode .sdot.online { background: #43b581; }
body.dark-mode .sdot.idle   { background: #faa61a; }
body.dark-mode .sdot.dnd    { background: #f04747; }
body.dark-mode .sdot.offline { background: #384a3c; }
body.dark-mode #js-slabel { color: #788a7c; }
body.dark-mode #js-custom-status { color: #788a7c; }
body.dark-mode .pmb { background: rgba(10,22,12,0.90); color: #c0dcc6; border-color: #1e3d25 #051009 #051009 #1e3d25; }
body.dark-mode .chk-row { color: #c0dcc6; }
body.dark-mode .blog-list li { border-bottom-color: #142d1a; }
body.dark-mode .pres-entry  { border-bottom-color: #142d1a; }
body.dark-mode .prog-outer  { background: #142d1a; }
body.dark-mode .prog-inner  { background: #4ade80; }
body.dark-mode .prog-times  { color: #788a7c; }
body.dark-mode .lfm-name    { color: #c0dcc6; }
body.dark-mode .lfm-stats   { color: #788a7c; }
body.dark-mode .lfm-stat-n  { color: #c0dcc6; }
body.dark-mode .discord-av  { border-color: #142d1a #1e3d25 #1e3d25 #142d1a; }
body.dark-mode .stamp { border-color: #142d1a #1e3d25 #1e3d25 #142d1a; }
body.dark-mode .ub    { border-color: #142d1a #1e3d25 #1e3d25 #142d1a; background: rgba(255,255,255,0.04); }

.tl-play {
  background: none; border: 1px solid #808080;
  width: 20px; height: 20px;
  font-size: 9px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.tl-play:hover { background: #d4d0c8; }
body.dark-mode .tl-play { border-color: #1e3d25; color: #c0dcc6; }
body.dark-mode .tl-play:hover { background: #142d1a; }

.pres-art-wrap { flex-shrink: 0; position: relative; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(67,181,129,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(67,181,129,0); }
}
@keyframes slideRight {
  from { transform: translateX(-6px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.iris-overlay {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 200vmax #000;
  transform: translate(-50%, -50%);
  z-index: 99999;
  pointer-events: none;
  transition: width 0.55s cubic-bezier(0.65, 0, 0.35, 1),
              height 0.55s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: width, height;
}
.iris-overlay.open {
  width: 300vmax;
  height: 300vmax;
}

.panel {
  animation: panelIn 0.3s cubic-bezier(0.22,1,0.36,1) both;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.panel:hover {
  transform: translateY(-1px);
  box-shadow: 3px 5px 14px rgba(0,0,0,0.28);
}

.col-sidebar .panel:nth-child(1) { animation-delay: 0.04s; }
.col-sidebar .panel:nth-child(2) { animation-delay: 0.08s; }
.col-sidebar .panel:nth-child(3) { animation-delay: 0.12s; }
.col-sidebar .panel:nth-child(4) { animation-delay: 0.16s; }
.col-sidebar .panel:nth-child(5) { animation-delay: 0.20s; }
.col-sidebar .panel:nth-child(6) { animation-delay: 0.24s; }
.col-sidebar .panel:nth-child(7) { animation-delay: 0.28s; }
.area-welcome .panel             { animation-delay: 0.06s; }
.area-stamps  .panel             { animation-delay: 0.08s; }
.area-lower-a .panel:nth-child(1){ animation-delay: 0.10s; }
.area-lower-a .panel:nth-child(2){ animation-delay: 0.16s; }
.area-lower-b .panel:nth-child(1){ animation-delay: 0.22s; }

.nav-tab { transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }

.social-link { transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease; }
.social-link:hover { transform: translateX(3px); }

.pres-entry { animation: panelIn 0.25s ease both; }

.sdot.online { animation: dotPulse 2.5s ease-in-out infinite; }

.blog-list li { animation: slideRight 0.3s ease both; }
.blog-list li:nth-child(1) { animation-delay: 0.05s; }
.blog-list li:nth-child(2) { animation-delay: 0.10s; }
.blog-list li:nth-child(3) { animation-delay: 0.15s; }

body.dark-mode .panel:hover { box-shadow: 3px 5px 18px rgba(74,222,128,0.14); }

@media (prefers-reduced-motion: reduce) {
  .win-app, .panel, .pres-entry, .blog-list li { animation: none !important; }
  .nav-tab, .social-link, .panel { transition: none !important; }
}

@media (max-width: 800px) {
  #content { padding: 4px; }
  .main-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "sidebar" "welcome" "stamps" "lower-a" "lower-b";
  }
  .area-lower-a { grid-template-columns: 1fr; }
  .tracks-row   { grid-template-columns: repeat(5, 1fr); }
  .top-nav      { overflow-x: auto; flex-wrap: nowrap; }
  .nav-tab      { font-size: 10px; padding: 3px 8px 4px; }
  .welcome-grid { grid-template-columns: 1fr; }
  .discord-av-wrap { margin-bottom: 8px; }
  .socials-grid { grid-template-columns: 1fr; }
  .stamp        { height: 44px; }
  .stamp:hover  { transform: scale(1.2); }
}
@media (max-width: 480px) {
  .tracks-row { grid-template-columns: repeat(4, 1fr); }
  .area-lower-a { gap: 4px; }
  .win-app { box-shadow: none; }
}