/* ─────────────────────────────────────────────
   dhzz.os 98 — retro desktop homepage
   pixel font (Galmuri) for chrome, Pretendard for reading
   ───────────────────────────────────────────── */

:root {
  --bg: #000;
  --acc: #29c2f2;
  --acc-rgb: 41, 194, 242;
  --acc-dk: #0b5f8a;
  --navy: #062d45;

  --silver: #d4d0c8;
  --hi: #fff;
  --lite: #dfdfdf;
  --mid: #808080;
  --lo: #404040;
  --ink: #111;
  --ink-2: #444;      /* secondary text on white: 9.7:1 */
  --ink-3: #5c5c5c;   /* tertiary text on white / silver: ≥4.5:1 */
  --paper: #fff;
  --dim: rgba(255, 255, 255, 0.6);

  --pink: #f6a8c0;
  --yellow: #ffd75e;
  --green: #5fd4a8;
  --orange: #ff9f43;

  --font-ui: "Galmuri11", "Galmuri9", system-ui, -apple-system, sans-serif;
  --font-mono: "GalmuriMono11", "Galmuri11", ui-monospace, monospace;
  --font-big: "Galmuri14", "Galmuri11", sans-serif;
  --font-text: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;

  --bar-h: 36px;
  --task-h: 40px;

  /* per-wallpaper hero colors (overridden below) */
  --hero: var(--acc);
  --hero-glow: rgba(var(--acc-rgb), 0.6);
  --hero-text: rgba(255, 255, 255, 0.8);

  --out: inset -1px -1px var(--lo), inset 1px 1px var(--hi), inset -2px -2px var(--mid), inset 2px 2px var(--lite);
  --in: inset -1px -1px var(--hi), inset 1px 1px var(--mid), inset -2px -2px var(--lite), inset 2px 2px var(--lo);
  --field: inset -1px -1px var(--hi), inset 1px 1px var(--mid);
  --dither: repeating-conic-gradient(var(--silver) 0 25%, var(--hi) 0 50%) 0 0 / 2px 2px;
}

body[data-wall="seoul"] { --hero: #ffd27a; --hero-glow: rgba(255, 190, 90, 0.5); }
body[data-wall="sunset"] { --hero: #fff; --hero-glow: rgba(255, 63, 164, 0.9); --hero-text: #fff; }
body[data-wall="clouds"] { --hero: #fff; --hero-glow: rgba(10, 50, 120, 0.7); --hero-text: #fff; }
body[data-wall="teal"] { --hero: #fff; --hero-glow: rgba(0, 0, 0, 0.35); --hero-text: #fff; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: #fff;
  font: 12px/1.5 var(--font-ui);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--acc); color: #000; }
:focus-visible { outline: 1px dotted currentColor; outline-offset: -3px; }

/* reading text: anything with .text, and form controls inside it */
.text {
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

/* ───────── CRT overlay ───────── */
.crt::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5000;
  background:
    radial-gradient(ellipse at center, transparent 65%, rgba(0, 0, 0, 0.35) 100%),
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.07) 0 1px, transparent 1px 3px);
}
body.lowfx::after { display: none; }

/* ───────── top bar ───────── */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--bar-h);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 10px 0 14px;
  background: rgba(0, 0, 0, 0.78);
  border-bottom: 1px solid rgba(var(--acc-rgb), 0.35);
}
.brand { font: 15px/1 var(--font-big); text-decoration: none; color: #fff; }
.brand i { font-style: normal; color: var(--acc); animation: blink 1.2s steps(1) infinite; }
.topnav { display: flex; gap: 14px; }
.topnav button, .topnav a { background: none; border: 0; padding: 0; color: var(--dim); cursor: pointer; text-decoration: none; }
.topnav button:hover, .topnav button.is-on, .topnav a:hover { color: var(--acc); }

.np-chip {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 300px;
  min-width: 0;
  padding: 3px 10px;
  background: rgba(29, 185, 84, 0.12);
  border: 1px solid rgba(29, 185, 84, 0.5);
  color: #b9f5cf;
  cursor: pointer;
}
.np-chip:hover { background: rgba(29, 185, 84, 0.25); }
.np-chip.is-idle { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.72); }
.np-chip.is-idle:hover { background: rgba(255, 255, 255, 0.12); }
.np-chip.is-idle .np-chip-eq { display: none; }
.np-chip.is-idle::before { content: "♪"; color: #1db954; }
.np-chip > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-chip-eq { display: flex; align-items: flex-end; gap: 1px; height: 10px; flex: none; }
.np-chip-eq i { width: 2px; height: 40%; background: #1db954; animation: eq 0.6s steps(4) infinite alternate; }
.np-chip-eq i:nth-child(2) { animation-duration: 0.45s; }
.np-chip-eq i:nth-child(3) { animation-duration: 0.7s; }

/* social icons */
.sns { display: flex; align-items: center; }
.sns a { display: grid; place-items: center; text-decoration: none; }
.sns svg { display: block; fill: currentColor; }
.sns-bar { gap: 2px; margin-left: auto; }
.np-chip:not([hidden]) + .sns-bar { margin-left: 0; }
.sns-bar a { width: 30px; height: 30px; color: rgba(255, 255, 255, 0.78); }
.sns-bar svg { width: 16px; height: 16px; }
.sns-bar a:hover, .sns-bar a:focus-visible { color: var(--acc); outline: 0; }

[data-brand="github"] { --brand: #24292f; }
[data-brand="instagram"] { --brand: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); }
[data-brand="discord"] { --brand: #5865f2; }
[data-brand="spotify"] { --brand: #1db954; }
[data-brand="gmail"] { --brand: #ea4335; }

/* ───────── desktop ───────── */
.desktop { position: fixed; inset: 0; overflow: hidden; }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; background: #000; }

.hero {
  position: absolute;
  inset: var(--bar-h) 0 var(--task-h) 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  pointer-events: none;
  user-select: none;
  container-type: inline-size;
}
.hero p { margin: 0; }
.hero-date { font: 15px/1.6 var(--font-big); color: var(--hero-text); letter-spacing: 0.08em; }
.hero-date, .hero-sub, .hero-hint { text-shadow: 0 1px 0 #000, 0 0 6px rgba(0, 0, 0, 0.7); }
.hero-clock {
  font: clamp(48px, 15cqi, 156px)/1 var(--font-mono);
  color: var(--hero);
  text-shadow: 0 0 2px #fff, 0 0 18px var(--hero-glow), 0 0 48px var(--hero-glow);
}
body[data-wall="clouds"] .hero-clock, body[data-wall="teal"] .hero-clock { text-shadow: 4px 4px 0 var(--hero-glow); }
.hero-sub { margin-top: 8px !important; font: 12px var(--font-mono); color: var(--hero-text); letter-spacing: 0.1em; }
.hero-name {
  margin: 26px 0 0;
  font: 400 15px/1.4 var(--font-big);
  color: #fff;
  text-shadow: 0 1px 0 #000, 0 0 10px rgba(0, 0, 0, 0.6);
}
.hero-name span { display: block; margin-top: 2px; font: 12px var(--font-ui); color: var(--hero-text); letter-spacing: 0.06em; }

.sns-dock { gap: 8px; margin-top: 14px; pointer-events: auto; }
.sns-dock a {
  position: relative;
  width: 44px;
  height: 44px;
  background: var(--silver);
  color: #111;
  box-shadow: var(--out), 3px 3px 0 rgba(0, 0, 0, 0.45);
}
.sns-dock svg { width: 22px; height: 22px; }
.sns-dock a:hover, .sns-dock a:focus-visible { background: var(--brand); color: #fff; outline: 0; }
.sns-dock a:active { box-shadow: var(--in); }
.sns-dock a::after {
  content: attr(data-label);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  translate: -50% 0;
  padding: 1px 6px;
  background: #ffffe1;
  color: #000;
  box-shadow: 0 0 0 1px #000;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.sns-dock a:hover::after, .sns-dock a:focus-visible::after { opacity: 1; }

.hero-hint { margin-top: 30px !important; color: var(--hero-text); opacity: 0.6; }
.hint-mob { display: none; }

/* desktop icons */
.icons {
  position: absolute;
  top: calc(var(--bar-h) + 12px);
  left: 10px;
  bottom: calc(var(--task-h) + 12px);
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(auto-fill, 80px);
  grid-auto-columns: 80px;
  gap: 2px 6px;
  z-index: 2;
}
.icon {
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 2px;
  background: none;
  border: 0;
  cursor: pointer;
  color: #fff;
  text-shadow: 1px 1px 0 #000, 0 0 3px #000;
}
.icon span { padding: 0 3px; text-align: center; overflow-wrap: anywhere; }
.icon:focus-visible { outline: 0; }
.icon.is-sel span, .icon:focus-visible span { background: var(--acc-dk); outline: 1px dotted #fff; text-shadow: none; }
.icon.is-sel svg, .icon:focus-visible svg { filter: sepia(1) hue-rotate(160deg) saturate(4) brightness(0.75); }

/* pixel icons */
i[data-icon] { display: inline-block; line-height: 0; font-style: normal; }
i[data-icon] svg { width: 16px; height: 16px; shape-rendering: crispEdges; }
.icon i[data-icon] svg { width: 32px; height: 32px; display: block; }

/* ───────── buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 24px;
  padding: 2px 12px;
  background: var(--silver);
  color: #000;
  border: 0;
  box-shadow: var(--out);
  font-family: var(--font-ui);
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active, .btn[aria-pressed="true"] { box-shadow: var(--in); padding: 3px 11px 1px 13px; }
.btn:disabled { color: var(--mid); text-shadow: 1px 1px var(--hi); cursor: default; }
.btn:focus-visible { outline-offset: -5px; }

/* ───────── windows ───────── */
.win {
  position: absolute;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  max-width: calc(100vw - 16px);
  max-height: calc(100% - var(--bar-h) - var(--task-h) - 12px);
  padding: 3px;
  background: var(--silver);
  color: #000;
  box-shadow: var(--out), 8px 8px 0 rgba(0, 0, 0, 0.55);
  animation: win-in 0.14s steps(3);
}
.no-js .win { position: relative; margin: 48px auto; }
.win.is-max {
  left: 0 !important;
  top: var(--bar-h) !important;
  width: 100% !important;
  height: calc(100% - var(--bar-h) - var(--task-h)) !important;
  max-width: none;
  max-height: none;
  box-shadow: var(--out);
}
.win-title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 22px;
  padding: 0 3px 0 4px;
  background: linear-gradient(90deg, #7b7b7b, #b4b4b4);
  color: #e8e6e0;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.win.is-active .win-title { background: linear-gradient(90deg, var(--navy), var(--acc-dk) 55%, var(--acc)); color: #fff; }
.win.is-drag .win-title { cursor: grabbing; }
.win-title h2 { flex: 1; margin: 0; font: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-ctl { display: flex; gap: 2px; }
.win-ctl button {
  width: 18px;
  height: 16px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: var(--silver);
  color: #000;
  box-shadow: var(--out);
  font: 10px/1 var(--font-mono);
  cursor: pointer;
}
.win-ctl button:active { box-shadow: var(--in); }
.win-ctl button[data-act="close"] { margin-left: 2px; }

.win-menu { display: flex; gap: 2px; padding: 2px 0 1px; user-select: none; }
.win-menu span { padding: 0 6px; }
.win-menu span::first-letter { text-decoration: underline; }

.win-body { flex: 1; min-height: 0; margin-top: 3px; padding: 16px 18px; overflow: auto; }
.win-body.paper { background: var(--paper); box-shadow: var(--in); }
.music-mini { color: var(--ink); min-height: 165px; }
.music-kicker { margin: 0 0 9px; color: var(--ink-3); font: 11px var(--font-mono); }
.music-mini strong { display: block; font: 26px/1.1 var(--font-big); color: var(--acc-dk); }
.music-mini-time { margin: 5px 0 17px; color: var(--ink-2); }
.music-mini-top { min-height: 20px; margin: 0 0 14px; }
.win-body.silver { background: var(--silver); padding: 10px 8px 8px; }
.win-body > :first-child { margin-top: 0; }
.win-body > :last-child { margin-bottom: 0; }

.win-status { display: flex; gap: 3px; margin-top: 3px; flex: none; }
.win-status span { flex: 1; padding: 1px 6px; box-shadow: var(--field); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-status span:first-child { flex: 2; }

.win ::-webkit-scrollbar { width: 16px; height: 16px; }
.win ::-webkit-scrollbar-track { background: var(--dither); }
.win ::-webkit-scrollbar-thumb { background: var(--silver); box-shadow: var(--out); }
.win ::-webkit-scrollbar-corner { background: var(--silver); }

/* ───────── about ───────── */
.about-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.avatar {
  position: relative;
  flex: none;
  width: 104px;
  height: 104px;
  margin: 0;
  background: #000;
  box-shadow: 0 0 0 1px #000, 3px 3px 0 var(--acc);
}
.avatar img, .avatar canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar canvas { image-rendering: pixelated; transition: opacity 0.2s steps(4); }
.avatar:hover canvas { opacity: 0; }
.about-title { margin: 0 0 2px; font: 15px/1.4 var(--font-big); color: #000; }
.about-ko { margin: 0 0 8px; color: var(--ink-2); }
.blink { color: var(--acc-dk); animation: blink 1s steps(1) infinite; }
.tags { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
mark { background: var(--acc); color: #000; padding: 0 5px; font: 12px/1.6 var(--font-ui); }
abbr { text-decoration: underline dotted; cursor: help; }
.win-body.text p { margin: 0 0 10px; }
.kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 3px 16px;
  margin: 16px 0;
  padding: 12px 14px;
  background: #f3f5f7;
  border-left: 3px solid var(--acc);
}
.kv dt { font: 12px/1.95 var(--font-mono); color: var(--ink-3); }
.kv dd { margin: 0; }
.sig { color: var(--ink-2); }

/* ───────── explorer (projects) ───────── */
.addr { display: flex; align-items: center; gap: 6px; margin-top: 3px; padding: 2px 2px 2px 4px; }
.addr .field { flex: 1; padding: 2px 6px; background: var(--paper); box-shadow: var(--in); font-family: var(--font-mono); overflow: hidden; white-space: nowrap; }
.addr b { font-weight: normal; color: var(--acc-dk); }
.explorer { flex: 1; min-height: 0; display: flex; gap: 3px; margin-top: 3px; }
.tree { flex: none; width: 150px; margin: 0; padding: 6px 4px; list-style: none; background: var(--paper); box-shadow: var(--in); overflow: auto; }
.tree button { display: flex; align-items: center; gap: 6px; width: 100%; padding: 3px 4px; background: none; border: 0; text-align: left; cursor: pointer; white-space: nowrap; }
.tree button[aria-selected="true"] { background: var(--acc-dk); color: #fff; }
.files { flex: 1; min-width: 0; margin: 0; padding: 4px 0; list-style: none; background: var(--paper); box-shadow: var(--in); overflow: auto; max-height: 360px; }
.files a {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.2fr) 52px;
  align-items: baseline;
  gap: 12px;
  padding: 4px 12px;
  text-decoration: none;
}
.files a:hover, .files a:focus-visible { background: var(--acc-dk); color: #fff; outline: 0; }
.files b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files span { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files em { font: 11px var(--font-mono); font-style: normal; text-align: right; color: var(--ink-3); }
.files a:hover span, .files a:focus-visible span { color: rgba(255, 255, 255, 0.85); }
.files a:hover em, .files a:focus-visible em { color: var(--acc); }

/* ───────── posts ───────── */
.posts { margin: 0; padding: 0; list-style: none; }
.posts li { display: flex; gap: 16px; padding: 8px 0; border-bottom: 1px solid #e6e6e6; }
.posts time { flex: none; font: 12px/2 var(--font-mono); color: var(--acc-dk); }
.posts .soon { color: #8a8a8a; }
.posts .soon time { color: #9a9a9a; }
.note { font-size: 12px; color: var(--ink-3); }

/* ───────── system properties ───────── */
.tabs { display: flex; padding-left: 4px; position: relative; z-index: 1; }
.tabs button {
  padding: 2px 12px 3px;
  margin-right: -1px;
  background: var(--silver);
  border: 0;
  box-shadow: inset 1px 1px var(--hi), inset -1px 0 var(--lo), inset -2px 0 var(--mid);
  cursor: pointer;
  position: relative;
  top: 2px;
}
.tabs button[aria-selected="true"] { top: 0; padding-bottom: 5px; z-index: 1; }
.tabpanel { padding: 14px 12px; box-shadow: var(--out); }
.sys { display: flex; gap: 20px; align-items: flex-start; }
.sys i.sys-icon svg { width: 64px; height: 64px; }
.sys dl { margin: 0; }
.sys dt { color: var(--ink-3); margin-top: 8px; font: 12px var(--font-ui); }
.sys dt:first-child { margin-top: 0; }
.sys dd { margin: 0 0 0 12px; }
fieldset {
  margin: 0 0 10px;
  padding: 8px 10px 10px;
  border: 0;
  box-shadow: inset 1px 1px var(--mid), inset -1px -1px var(--hi), 1px 1px var(--hi);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
fieldset:last-child { margin-bottom: 0; }
legend { padding: 0 4px; }
fieldset.light { box-shadow: inset 0 0 0 1px #d6d6d6; flex-direction: column; flex-wrap: nowrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 6px; background: var(--paper); box-shadow: var(--field); font-family: var(--font-mono); }
.chip::before { content: ""; width: 8px; height: 8px; background: var(--c); box-shadow: 1px 1px 0 #000; }
.dlg-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 10px; }
.dlg-actions .btn { min-width: 76px; }
.dlg-actions .note { margin-right: auto; }

/* ───────── display properties ───────── */
.monitor { display: grid; justify-items: center; margin-bottom: 12px; }
.monitor-screen { padding: 10px 10px 16px; background: #e9e4d6; box-shadow: var(--out), inset 0 -6px 0 #cfc9b8; }
.monitor-screen canvas { display: block; width: 176px; height: 110px; image-rendering: pixelated; box-shadow: 0 0 0 1px #000, var(--in); background: #000; }
.monitor-stand { width: 60px; height: 10px; background: #cfc9b8; box-shadow: var(--out); clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%); }
.wall-label { margin: 0 0 4px; }
.wall-list { margin: 0; padding: 2px; list-style: none; background: var(--paper); box-shadow: var(--in); max-height: 120px; overflow: auto; }
.wall-list button { display: block; width: 100%; padding: 2px 6px; background: none; border: 0; text-align: left; cursor: pointer; }
.wall-list button[aria-selected="true"] { background: var(--acc-dk); color: #fff; }

/* ───────── now playing ───────── */
.win-body.lcd { padding: 10px; background: #000; color: var(--acc); box-shadow: var(--in); font-family: var(--font-mono); }
.np { display: flex; gap: 12px; align-items: center; }
.np-art { position: relative; flex: none; width: 64px; height: 64px; background: #0a0a0a; box-shadow: 0 0 0 1px rgba(var(--acc-rgb), 0.5); }
.np-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.np-meta { flex: 1; min-width: 0; }
.np-meta p { margin: 0; }
.np-state { font-size: 11px; color: var(--orange); }
.is-playing .np-state { color: #1ed760; }
.marquee { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin: 2px 0 1px; font: 15px/1.5 var(--font-big); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  /* scroll only titles that don't fit */
  body:not(.lowfx) .marquee.is-long { text-overflow: clip; }
  body:not(.lowfx) .marquee.is-long span { display: inline-block; padding-left: 100%; animation: marquee 12s linear infinite; }
}
.np-artist { color: rgba(var(--acc-rgb), 0.85); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-bar { height: 6px; margin: 10px 0 6px; background: repeating-linear-gradient(90deg, #12303d 0 2px, transparent 2px 3px); }
.np-bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--acc) 0 2px, transparent 2px 3px); }
.lcd-meta { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 11px; color: rgba(var(--acc-rgb), 0.75); }
.eq { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 12px; }
.eq i { width: 4px; height: 20%; background: var(--acc); }
.eq i:nth-child(3n) { background: var(--pink); }
.is-playing .eq i { animation: eq 0.5s steps(4) infinite alternate; }
.eq i:nth-child(2n) { animation-duration: 0.37s; }
.eq i:nth-child(3n+1) { animation-duration: 0.61s; }
.pl-ctrl { display: flex; gap: 3px; margin-top: 4px; }
.pl-ctrl .btn:first-child { flex: 1; }

/* ───────── webring ───────── */
.ring { display: flex; flex-wrap: wrap; gap: 4px; }
.ring .btn { flex: 1; padding: 2px 6px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.b88 { width: 88px; height: 31px; display: grid; place-content: center; text-align: center; font: 9px/1.1 "Galmuri9", var(--font-ui); text-decoration: none; overflow: hidden; }
.b88-me { background: #000; color: #fff; font: 12px/1.1 var(--font-big); box-shadow: inset 0 0 0 1px var(--acc); }
.b88-me i { color: var(--acc); font-style: normal; }
.b88-me small { font: 8px/1.2 "Galmuri7", "Galmuri9", sans-serif; color: var(--pink); }
.b88-mac { background: linear-gradient(#eee, #aaa); color: #000; box-shadow: inset 0 0 0 1px #000; }
.b88-kst { background: repeating-linear-gradient(45deg, var(--pink) 0 4px, #ffcbe6 4px 8px); color: #000; font-size: 10px; box-shadow: inset 0 0 0 1px #000; }
.friends { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.slot { display: grid; place-items: center; width: 100%; height: 31px; border: 1px dashed var(--mid); background: none; color: var(--ink-3); font-size: 10px; }
.slot-cta { cursor: pointer; color: var(--acc-dk); border-color: var(--acc-dk); }
.slot-cta:hover { background: var(--acc-dk); color: #fff; }

/* ───────── guestbook ───────── */
.gb { display: flex; flex-direction: column; gap: 10px; }
.gb-list { flex: 1; min-height: 120px; max-height: 280px; margin: 0; padding: 4px 12px; list-style: none; overflow: auto; background: var(--paper); box-shadow: var(--in); }
.gb-list li { padding: 10px 0; border-bottom: 1px solid #ececec; }
.gb-list li:last-child { border-bottom: 0; }
.gb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gb-name { font-weight: 700; color: #000; }
a.gb-name { color: var(--acc-dk); }
.gb-head time { font: 11px var(--font-mono); color: var(--ink-3); white-space: nowrap; }
.gb-msg { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.gb-empty { color: var(--ink-3); text-align: center; padding: 28px 0 !important; }
#gb-form { font-size: 13px; }
.gb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gb label { display: grid; gap: 2px; margin-bottom: 6px; color: #222; }
.gb .opt { color: var(--ink-3); font-size: 12px; }
.gb label:has(.opt) { display: block; }
.gb label:has(.opt) input { display: block; margin-top: 2px; }
.gb input, .gb textarea {
  width: 100%;
  padding: 4px 6px;
  border: 0;
  background: var(--paper);
  box-shadow: var(--in);
  font: 14px/1.5 var(--font-text);
  color: var(--ink);
  resize: vertical;
}
.gb input:focus, .gb textarea:focus { outline: 1px dotted var(--acc-dk); outline-offset: 1px; }
.gb .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gb .dlg-actions { margin-top: 2px; }
#gb-note { color: #333; }

/* ───────── start menu ───────── */
.startmenu {
  position: fixed;
  left: 4px;
  bottom: calc(var(--task-h) - 2px);
  z-index: 3100;
  display: flex;
  min-width: 210px;
  padding: 3px;
  background: var(--silver);
  color: #000;
  box-shadow: var(--out), 6px 6px 0 rgba(0, 0, 0, 0.5);
}
.sm-side { width: 26px; background: linear-gradient(0deg, var(--navy), var(--acc-dk) 60%, var(--acc)); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; }
.sm-side span { writing-mode: vertical-rl; transform: rotate(180deg); font: 15px/1 var(--font-big); color: #fff; white-space: nowrap; }
.sm-side b { font-weight: normal; color: var(--yellow); }
.startmenu ul { flex: 1; margin: 0; padding: 0; list-style: none; }
.startmenu li button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 5px 16px 5px 8px; background: none; border: 0; text-align: left; cursor: pointer; }
.startmenu li button:hover, .startmenu li button:focus-visible { background: var(--acc-dk); color: #fff; outline: 0; }
.startmenu i[data-icon] svg { width: 22px; height: 22px; }
.startmenu .check { width: 22px; text-align: center; }
#toggle-fx[aria-pressed="true"] .check::before { content: "✓"; }
.sm-sep { height: 2px; margin: 3px 2px; box-shadow: inset 0 1px var(--mid), inset 0 -1px var(--hi); }

/* ───────── taskbar ───────── */
.taskbar {
  position: fixed;
  inset: auto 0 0 0;
  height: var(--task-h);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 4px 3px;
  background: var(--silver);
  color: #000;
  box-shadow: inset 0 1px var(--lite), inset 0 2px var(--hi);
}
.start { height: 31px; padding: 0 8px 0 6px; font-family: var(--font-big); font-size: 13px; }
.start[aria-expanded="true"] { box-shadow: var(--in); }
.logo { display: grid; grid-template-columns: 7px 7px; gap: 1px; transform: skewX(-8deg); }
.logo i { width: 7px; height: 7px; }
.logo i:nth-child(1) { background: var(--acc); }
.logo i:nth-child(2) { background: var(--pink); }
.logo i:nth-child(3) { background: var(--yellow); }
.logo i:nth-child(4) { background: var(--green); }
.tasks { flex: 1; min-width: 0; display: flex; gap: 3px; padding-left: 4px; margin-left: 2px; box-shadow: -1px 0 var(--mid), -2px 0 var(--hi); }
.task { flex: 0 1 170px; min-width: 34px; height: 31px; justify-content: flex-start; padding: 0 8px; overflow: hidden; }
.task span { overflow: hidden; text-overflow: ellipsis; }
.task.is-active { box-shadow: var(--in); background: var(--dither); padding: 1px 7px 0 9px; }
.tray { display: flex; align-items: center; gap: 8px; height: 31px; padding: 0 10px; box-shadow: var(--field); font-family: var(--font-mono); white-space: nowrap; }
.tray-dot { color: #1a9e6a; }

/* ───────── boot + shutdown ───────── */
.boot, .shutdown { position: fixed; inset: 0; z-index: 4000; background: #000; font: 13px/1.7 var(--font-mono); }
.boot { padding: 28px 32px; color: #c8c8c8; transition: opacity 0.3s steps(3); }
.boot.is-out { opacity: 0; }
.boot pre { margin: 0; font: inherit; white-space: pre-wrap; }
.boot .ok { color: var(--green); }
.boot .hl { color: var(--acc); }
.shutdown { display: grid; place-content: center; text-align: center; color: var(--orange); cursor: pointer; font: 18px/1.8 var(--font-big); }
.shutdown p { margin: 0; }
.shutdown .hint { margin-top: 28px; font: 12px var(--font-ui); color: rgba(255, 159, 67, 0.55); animation: blink 1.6s steps(1) infinite; }

/* ───────── keyframes ───────── */
@keyframes blink { 50% { opacity: 0; } }
@keyframes win-in { from { transform: scale(0.97); } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes eq { 0% { height: 15%; } 100% { height: 100%; } }

body.lowfx *, body.lowfx *::before, body.lowfx *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ───────── small screens ───────── */
@media (max-width: 720px) {
  .topbar { gap: 10px; padding-right: 4px; }
  .topnav { display: none; }
  .np-chip { max-width: 40vw; padding: 2px 6px; }
  .sns-bar a { width: 28px; }
  .icons {
    right: 8px;
    left: 8px;
    bottom: auto;
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-columns: auto;
  }
  .icon { width: 100%; }
  .hero { place-content: end center; padding-bottom: 6vh; }
  .hint-desk { display: none; }
  .hint-mob { display: inline; }
  .win, .win.is-max {
    position: fixed;
    left: 6px !important;
    right: 6px;
    top: calc(var(--bar-h) + 6px) !important;
    bottom: calc(var(--task-h) + 6px);
    width: auto !important;
    height: auto !important;
    max-width: none;
    max-height: none;
    box-shadow: var(--out);
  }
  .win-player, #win-display { top: auto !important; }
  .win-title { cursor: default; }
  .win-ctl [data-act="max"] { display: none; }
  .explorer { flex-direction: column; }
  .tree { width: auto; display: flex; flex-wrap: wrap; gap: 2px; }
  .tree li { flex: 0 0 auto; }
  .files { max-height: none; }
  .files a { grid-template-columns: minmax(0, 1fr) 48px; gap: 0 10px; padding: 7px 12px; border-bottom: 1px solid #eee; }
  .files span { grid-column: 1; grid-row: 2; }
  .files em { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .gb-list { max-height: none; }
  .gb-row { grid-template-columns: 1fr; gap: 0; }
  .task { flex: 0 0 34px; justify-content: center; padding: 0; }
  .task.is-active { padding: 1px 0 0 1px; }
  .task span { display: none; }
  .about-head { align-items: flex-start; }
  .avatar { width: 84px; height: 84px; }
}
