/* ===== mage OS classic Aqua rebuild ===== */
:root {
  --ui-mono: "Spline Sans Mono", monospace;
  --data-mono: "IBM Plex Mono", monospace;
  --display: "Syne", "Noto Sans KR", sans-serif;
  --body: "Noto Sans KR", "Spline Sans Mono", sans-serif;
  --ink: #1d2b3a;
  --muted: #677482;
  --aqua: #2f6fd0;
  --aqua-hi: #6aa6ea;
  --gold: #ffae3a;
  --paper: #ece9dd;
  --chrome: #d4d0c8;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: var(--ui-mono);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  background:
    linear-gradient(180deg, rgba(8, 10, 14, .45) 0%, rgba(8, 10, 14, .12) 30%, rgba(8, 10, 14, .18) 64%, rgba(8, 10, 14, .5) 100%),
    #0c1014 url("assets/wallpaper.jpg?v=3") center center / cover no-repeat fixed;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

::-webkit-scrollbar-track {
  background: #d9d6c8;
  border-left: 1px solid #aaa794;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #cdd9ee, #9bb6dd);
  border: 1px solid #6f8db9;
  border-radius: 2px;
}

.hidden {
  display: none !important;
}

@keyframes fos-pop {
  0% { opacity: 0; transform: scale(.96); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes fos-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes spectrum {
  from { height: 12%; }
  to { height: var(--peak, 80%); }
}

/* boot */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(5, 6, 8, .72), rgba(5, 6, 8, .36)),
    rgba(0, 0, 0, .2);
  animation: fade .2s ease;
}

.boot-screen.boot-exit {
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.boot-panel {
  width: min(560px, calc(100vw - 36px));
  min-height: 214px;
  padding: 0;
  overflow: hidden;
  background: var(--chrome);
  border: 1px solid #1c1c1c;
  border-radius: 5px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .65);
}

.boot-head {
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(180deg, #eaeaea 0 1px, #cdcdcd 1px 2px);
  border-bottom: 1px solid #7a7a7a;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 12px;
}

.boot-log {
  min-height: 190px;
  margin: 0;
  padding: 17px 18px;
  color: #a8ffcc;
  background: #050806;
  font: 13px/1.65 var(--data-mono);
  white-space: pre-wrap;
  text-shadow: 0 0 12px rgba(127, 224, 106, .35);
}

.boot-log::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 4px;
  vertical-align: -2px;
  background: #a8ffcc;
  animation: blink .8s steps(1) infinite;
}

/* login */
.login {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: rgba(0, 0, 0, .12);
  animation: fade .35s ease;
}

.login-card {
  width: 258px;
  padding: 24px 26px 21px;
  text-align: center;
  color: #1a1a1a;
  background: linear-gradient(180deg, #fbfbf8, #d9d6cc);
  border: 1px solid #4b4b4b;
  border-radius: 7px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.login-avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 11px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, #8ee8ff, #2f6fd0 52%, #7840bd);
  border: 1px solid rgba(0, 0, 0, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), 0 4px 11px rgba(0, 0, 0, .36);
}
.login-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.login-avatar span {
  font-family: "Archivo Black", sans-serif;
  font-size: 49px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, .45);
}

.login-name {
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 14px;
}

.login-pass {
  width: 100%;
  margin-bottom: 11px;
  padding: 6px 8px;
  text-align: center;
  color: #293340;
  background: #fff;
  border: 1px solid #9f9f9f;
  border-radius: 3px;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, .16);
  letter-spacing: 2px;
}

.login-btn,
.login-hint {
  width: 100%;
  min-height: 28px;
  border-radius: 5px;
  cursor: pointer;
}

.login-btn {
  color: #fff;
  font-weight: 700;
  border: 1px solid #245bb0;
  background: linear-gradient(180deg, var(--aqua-hi), var(--aqua));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 1px 2px rgba(0, 0, 0, .2);
}

.login-hint {
  margin-top: 11px;
  color: #5d6570;
  background: transparent;
  border: 0;
  font-size: 11px;
}

.login-foot {
  color: rgba(255, 255, 255, .8);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .8);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* desktop */
.desktop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  animation: fade .35s ease;
}

.menubar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  overflow: hidden;
  color: #1a1a1a;
  background: linear-gradient(180deg, #fbfbfb, #ededed 55%, #d6d6d6);
  border-bottom: 1px solid #6f6f6f;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  font-size: 13px;
}

.menubar-left,
.menubar-right {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.menubar-left {
  gap: 13px;
  min-width: 0;
}

.menubar-right {
  gap: 9px;
  flex: 0 0 auto;
  font-family: var(--data-mono);
  font-size: 12px;
}

.app-logo {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
}

.app-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.menubar-left strong {
  font-weight: 800;
}

.menu-item {
  padding: 2px 0;
  color: #242424;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 13px;
}

.menu-item:hover,
.menu-item:focus-visible {
  color: #000;
  text-decoration: underline;
  outline: none;
}

.ticker .up,
.market-change.up {
  color: #1f8a3b;
  font-weight: 700;
}

.ticker .down,
.market-change.down {
  color: #c0392b;
  font-weight: 700;
}

.clock {
  font-weight: 700;
}

.wordmark {
  position: absolute;
  top: 5%;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 12px;
  text-align: center;
  pointer-events: none;
  font-family: "Spline Sans Mono", "IBM Plex Mono", monospace;
  font-weight: 700;
  font-size: clamp(22px, 4.1vw, 50px);
  letter-spacing: -1px;
  line-height: 1.12;
  color: #5cff9f;
  -webkit-text-stroke: 0.7px rgba(120, 255, 175, .55);
  text-shadow:
    0 0 2px rgba(120, 255, 175, .8),
    0 0 10px rgba(60, 255, 159, .55),
    0 0 26px rgba(60, 255, 159, .35),
    0 2px 3px rgba(0, 0, 0, .7);
  animation: wm-flicker 4.5s infinite steps(60);
}
@keyframes wm-flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: .72; }
  94% { opacity: 1; }
  96% { opacity: .85; }
  97% { opacity: 1; }
}

.wordmark span {
  color: #b6ffd6;
}

/* terminal input prompt + cursor */
.wordmark::before {
  content: "> ";
  color: #5cff9f;
  opacity: .85;
}
.wordmark::after {
  content: "▮";
  margin-left: 6px;
  color: #5cff9f;
  animation: wm-blink 1.1s steps(1) infinite;
}
@keyframes wm-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

/* ===== terminal / matrix windows (README, About) ===== */
.win-terminal .win-body {
  position: relative;
  background: #04100a;
  color: #5dff8f;
  font-family: "IBM Plex Mono", monospace;
  text-shadow: 0 0 6px rgba(74, 255, 130, .4);
}
.matrix-rain {
  position: absolute; top: 0; left: 0; z-index: 0;
  opacity: .4; pointer-events: none;
}
.win-terminal .win-body > :not(canvas) { position: relative; z-index: 1; }
.win-terminal .win-body::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.16) 2px 3px);
}
.win-terminal .win-body h2,
.win-terminal .win-body h3 { color: #8affb0; text-shadow: 0 0 8px rgba(74,255,130,.55); }
.win-terminal .win-body b { color: #c5ffd8; }
.win-terminal .win-body a { color: #7dffc0; border-bottom-color: rgba(125,255,192,.5); }
.win-terminal .win-body code { background: rgba(0,255,100,.12); color: #aaffcc; }
.win-terminal .win-body .muted { color: #3fae66; }
.win-terminal .win-body ::selection { background: rgba(74,255,130,.3); color: #fff; }
/* link cards / panels inside terminal windows → match the green matrix theme */
.win-terminal .link-card {
  background: rgba(0,34,14,.5) !important;
  border: 1px solid rgba(74,255,130,.32) !important;
}
.win-terminal .link-card:hover {
  background: rgba(0,64,26,.6) !important;
  border-color: rgba(110,255,170,.7) !important;
  box-shadow: 0 0 12px rgba(74,255,130,.25) !important;
}
.win-terminal .link-card b { color: #c5ffd8; }
.win-terminal .link-card span,
.win-terminal .link-card small { color: #46c374; }
.win-terminal .token-line,
.win-terminal .token-table,
.win-terminal .market-list,
.win-terminal .market-chart-wrap { background: rgba(0,28,12,.5) !important; border-color: rgba(74,255,130,.28) !important; }
.win-terminal .token-line span, .win-terminal .token-line b,
.win-terminal .token-table th, .win-terminal .token-table td { color: #7dffc0 !important; border-color: rgba(74,255,130,.2) !important; }
.win-terminal .win-button, .win-terminal button.button, .win-terminal .button {
  background: rgba(0,50,20,.6) !important; border: 1px solid rgba(74,255,130,.4) !important; color: #aaffcc !important;
}

/* desktop icons */
.icons {
  position: absolute;
  top: 56px;
  bottom: 10px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;            /* overflow into extra columns instead of under the player */
  align-content: flex-start;
  align-items: center;
  gap: 10px;
}

.icons-left {
  left: 14px;
  bottom: 200px;             /* keep the left column clear of the music player */
}

.icons-right {
  right: 14px;
}

.icon {
  width: 84px;
  min-height: 74px;
  padding: 5px 2px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 1px dotted transparent;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  color: #fff;
  text-align: center;
  touch-action: manipulation;
}

.icon:hover,
.icon:focus-visible {
  background: rgba(47, 111, 208, .22);
  border-color: rgba(255, 255, 255, .6);
  outline: none;
}

.icon:active .aqua-svg {
  transform: translateY(1px) scale(.98);
}

.glyph {
  width: 58px;
  height: 52px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.aqua-svg {
  width: 58px;
  height: 58px;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .45));
  transition: transform .16s ease, filter .16s ease;
}

.icon:hover .aqua-svg,
.icon:focus-visible .aqua-svg {
  transform: translateY(-3px);
  filter: drop-shadow(0 7px 6px rgba(0, 0, 0, .46));
}

.aqua-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5));
  transition: transform .16s ease, filter .16s ease;
}

.icon:hover .aqua-img,
.icon:focus-visible .aqua-img {
  transform: translateY(-3px) scale(1.04);
  filter: drop-shadow(0 8px 7px rgba(0, 0, 0, .5));
}

.icon:active .aqua-img {
  transform: translateY(1px) scale(.98);
}

/* ===== Portfolio Finder (folder browser) ===== */
.win-body:has(.finder) { padding: 0; }
.finder {
  background: #f4f2e9;
  color: #2a2a2a;
  min-height: 372px;
  display: flex;
  flex-direction: column;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}
.finder-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-bottom: 1px solid #cbc6b6;
  background: linear-gradient(#fbfaf3, #e7e3d6);
}
.finder-back {
  width: 28px; height: 23px;
  border-radius: 6px;
  border: 1px solid #b7b1a0;
  background: linear-gradient(#fff, #eee);
  cursor: pointer;
  font-size: 13px; line-height: 1; color: #444;
}
.finder-back:disabled { opacity: .4; cursor: default; }
.finder-back:not(:disabled):hover { background: #fff; border-color: #8aa0b5; }
.finder-crumb {
  font: 600 13px/1.2 "IBM Plex Mono", monospace;
  color: #34302a;
  display: flex; align-items: center; gap: 6px;
}
.finder-star { color: #e6a700; }
.finder-sep { color: #b3ad9d; }
.finder-grid {
  display: grid;
  gap: 4px;
  padding: 16px;
  align-content: start;
  flex: 1;
}
.finder-grid.is-root { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
.finder-grid.is-folder { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); }
.finder-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 11px 6px;
  border: 1px solid transparent; border-radius: 9px;
  background: transparent; cursor: pointer;
  text-align: center; color: #2a2a2a; text-decoration: none;
  transition: background .12s ease, border-color .12s ease;
}
.finder-item:hover { background: rgba(47, 111, 208, .14); border-color: rgba(47, 111, 208, .42); }
.finder-glyph {
  position: relative;
  width: 56px; height: 50px;
  display: flex; align-items: flex-end; justify-content: center;
}
.finder-glyph .aqua-svg { width: 52px; height: 52px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.finder-badge {
  position: absolute; right: 5px; bottom: 3px;
  width: 17px; height: 17px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.finder-name { font: 600 12px/1.25 "IBM Plex Mono", monospace; max-width: 100%; word-break: keep-all; }
.finder-file { padding: 12px 9px; }
.finder-file .finder-desc {
  font: 400 10.5px/1.32 -apple-system, system-ui, sans-serif;
  color: #6c6657; max-width: 150px;
}
.finder-detail {
  flex: 1; padding: 26px 28px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 11px;
}
.finder-detail-icon { width: 48px; height: 48px; display: block; }
.finder-detail-icon .aqua-svg { width: 46px; height: 46px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.finder-detail h3 { margin: 2px 0 0; font: 700 17px/1.2 "IBM Plex Mono", monospace; color: #2a2a2a; }
.finder-detail p { margin: 0; font: 400 13px/1.5 -apple-system, system-ui, sans-serif; color: #555; max-width: 470px; }
.finder-open {
  margin-top: 4px; font: 700 12px/1 "IBM Plex Mono", monospace;
  color: #fff; background: #2f6fd0; padding: 9px 14px; border-radius: 7px; text-decoration: none;
}
.finder-open:hover { background: #3f7fe0; }
.finder-tag {
  font: 600 11px/1 "IBM Plex Mono", monospace; color: #8a8472;
  background: rgba(0, 0, 0, .05); padding: 6px 10px; border-radius: 6px;
}

/* snatchos-style rich detail card */
.finder-detail.pf-card { padding: 18px 22px 24px; gap: 14px; align-items: stretch; overflow-y: auto; }
.pf-hero {
  position: relative; width: 100%; min-height: 158px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, #0e2018, #07120c);
  border: 1px solid rgba(124, 255, 160, .16);
  border-radius: 11px; overflow: hidden;
}
.pf-eyebrow {
  position: absolute; top: 13px; left: 15px;
  font: 700 10px/1 "IBM Plex Mono", monospace; letter-spacing: .14em;
  color: var(--accent); text-transform: uppercase;
}
.pf-cube { width: 172px; height: 106px; opacity: .92; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 48%, transparent)); }
.pf-chip {
  position: absolute; top: 13px; right: 15px;
  font: 700 11px/1.55 "IBM Plex Mono", monospace; color: var(--accent); text-align: right;
  text-shadow: 0 0 7px color-mix(in srgb, var(--accent) 50%, transparent);
}
.pf-card h3 { margin: 3px 0 0; font: 800 22px/1.06 "Syne", "IBM Plex Mono", sans-serif; color: #232323; letter-spacing: -.01em; }
.pf-meta { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; }
.pf-meta > div { display: contents; }
.pf-meta dt { font: 700 11px/1.5 "IBM Plex Mono", monospace; letter-spacing: .07em; color: #a39a82; text-transform: uppercase; }
.pf-meta dd { margin: 0; font: 600 12.5px/1.5 "IBM Plex Mono", monospace; color: #34322b; display: flex; align-items: center; gap: 8px; }
.pf-dot { width: 8px; height: 8px; border-radius: 50%; background: #41d18a; box-shadow: 0 0 6px currentColor; color: #41d18a; }
.pf-dot.is-research { background: #ffb454; color: #ffb454; }
.pf-dot.is-paper { background: #5aa9ff; color: #5aa9ff; }
.finder-detail.pf-card p { margin: 0; color: #4a4639; font-size: 13px; line-height: 1.55; max-width: none; }

/* MapleStory launcher window */
.game-launch { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 16px 22px 24px; }
.game-art { width: 116px; height: 116px; object-fit: contain; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .45)); }
.game-launch h2 { margin: 0; }
.game-launch p { margin: 0; color: #9fe0a8; font-size: 13px; max-width: 300px; }
.game-play {
  margin-top: 6px; font: 700 14px/1 "IBM Plex Mono", monospace;
  color: #04100a; background: #5cff9f; padding: 12px 24px; border-radius: 9px;
  text-decoration: none; box-shadow: 0 4px 16px rgba(92, 255, 159, .3);
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.game-play:hover { background: #7dffc0; transform: translateY(-2px); box-shadow: 0 7px 20px rgba(92, 255, 159, .42); }

/* ============================================================
   premium layer — film grain, depth, numeric polish, motion
   additive; preserves the classic-Aqua + matrix identity
   ============================================================ */

/* fine film grain (overlay-blended) + depth vignette, baked into the
   body background stack so it never sits above interactive content */
body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 160px 160px repeat,
    linear-gradient(180deg, rgba(8, 10, 14, .45) 0%, rgba(8, 10, 14, .12) 30%, rgba(8, 10, 14, .18) 64%, rgba(8, 10, 14, .5) 100%),
    radial-gradient(125% 88% at 50% 30%, transparent 55%, rgba(2, 8, 5, .5) 100%),
    #0c1014 url("assets/wallpaper.jpg?v=3") center center / cover no-repeat fixed;
  background-blend-mode: overlay, normal, normal, normal;
}

/* numeric polish — monospaced figures line up + faint glow on the ticker */
.ticker, .clock, .num, .market-price, .market-change,
.market-chart-head .num, .token-line b, .pf-meta dd {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.ticker { text-shadow: 0 0 8px rgba(60, 255, 159, .22); letter-spacing: .01em; }

/* refined window entrance — soft rise + scale on a premium easing */
@keyframes win-rise {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.window {
  animation: win-rise .24s cubic-bezier(.22, 1, .36, 1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 18px 44px -8px rgba(0, 0, 0, .6);
}

/* menubar gets a hairline matrix-green underglow */
.menubar { box-shadow: 0 1px 0 rgba(92, 255, 159, .16), 0 2px 6px rgba(0, 0, 0, .34); }

/* matrix-green text selection + view transitions */
::selection { background: rgba(92, 255, 159, .3); color: #eafff2; }
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ===== Photos album ===== */
.win-body:has(.gallery) { padding: 0; }
.gallery {
  position: relative;
  background: #f4f2e9;
  color: #2a2a2a;
  display: flex;
  flex-direction: column;
  max-height: 560px;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}
.gallery-head {
  display: flex; align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid #cbc6b6;
  background: linear-gradient(#fbfaf3, #e7e3d6);
}
.gallery-count { font: 600 12px/1 "IBM Plex Mono", monospace; color: #5a5446; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 14px;
  padding: 16px;
  overflow-y: auto;
}
.gallery-card { position: relative; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  cursor: pointer;
  font: inherit;
  border: 1px solid #cfcabb;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .14);
  aspect-ratio: 1;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .28s ease; }
.gallery-thumb:hover img { transform: scale(1.06); }
.gallery-dl {
  position: absolute; top: 7px; right: 7px; z-index: 2;
  width: 25px; height: 25px; border-radius: 7px;
  background: rgba(18, 18, 18, .6); color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 14px; font-weight: 700;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background .14s ease;
}
.gallery-dl:hover { background: #2f6fd0; }
.gallery-card figcaption { font: 600 11.5px/1.2 "IBM Plex Mono", monospace; color: #4a4438; text-align: center; }

/* photo lightbox — click a thumb to open in-window with a download button */
.gallery-lightbox {
  position: absolute; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.gallery-lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 12, 9, .74);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.lightbox-pane {
  position: relative; margin: 0;
  max-width: 94%; max-height: 94%;
  display: flex; flex-direction: column;
  background: #161815;
  border: 1px solid rgba(124, 255, 160, .22);
  border-radius: 11px; overflow: hidden;
  box-shadow: 0 26px 64px rgba(0, 0, 0, .55);
}
.lightbox-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px;
  background: linear-gradient(#222620, #14170f);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.lightbox-name { font: 600 12px/1 "IBM Plex Mono", monospace; color: #b7f5cd; }
.lightbox-actions { display: flex; align-items: center; gap: 8px; }
.lightbox-dl {
  font: 700 11.5px/1 "IBM Plex Mono", monospace;
  color: #04100a; background: #5cff9f;
  padding: 7px 11px; border-radius: 7px; text-decoration: none;
}
.lightbox-dl:hover { background: #7dffc0; }
.lightbox-close {
  width: 26px; height: 26px; border: 0; border-radius: 7px;
  background: rgba(255, 255, 255, .12); color: #fff;
  cursor: pointer; font-size: 17px; line-height: 1;
}
.lightbox-close:hover { background: rgba(255, 86, 86, .55); }
.lightbox-img {
  max-width: 100%; max-height: 62vh;
  object-fit: contain; display: block; background: #0b0d0a;
}

/* ===== Airdrop Farm folder ===== */
.win-body:has(.airdrop) { padding: 0; }
.airdrop { background: #f4f2e9; color: #2a2a2a; display: flex; flex-direction: column; max-height: 580px; border-radius: 0 0 6px 6px; overflow: hidden; }
.ad-head-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 14px; border-bottom: 1px solid #cbc6b6;
  background: linear-gradient(#fbfaf3, #e7e3d6);
}
.ad-count { font: 700 12px/1 "IBM Plex Mono", monospace; color: #2b7a43; }
.ad-note { font: 400 11px/1 "IBM Plex Mono", monospace; color: #8a8472; }
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 12px; padding: 16px; overflow-y: auto; }
.ad-card {
  display: flex; flex-direction: column; gap: 9px;
  padding: 13px 14px; background: #fff;
  border: 1px solid #ddd8c8; border-radius: 12px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .07);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ad-card:hover { transform: translateY(-3px); box-shadow: 0 11px 26px -9px rgba(0, 0, 0, .24); border-color: #2bd35a; }
.ad-tool { background: linear-gradient(180deg, #f1fff6, #fff); border-color: #9ae8b8; }
.ad-head { display: flex; align-items: center; gap: 10px; }
.ad-logo { width: 30px; height: 30px; border-radius: 8px; background: #f0ece0; object-fit: contain; border: 1px solid #e2dcc9; flex: 0 0 30px; }
.ad-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ad-title b { font: 700 14px/1.1 "IBM Plex Mono", monospace; color: #222; }
.ad-title small { font: 400 10.5px/1 "IBM Plex Mono", monospace; color: #9a9484; }
.ad-badge { align-self: flex-start; font: 700 9px/1 "IBM Plex Mono", monospace; letter-spacing: .05em; color: #04100a; background: #5cff9f; padding: 3px 6px; border-radius: 5px; }
.ad-desc { margin: 0; font: 400 12px/1.45 -apple-system, system-ui, sans-serif; color: #5a554a; flex: 1; }
.ad-links { display: flex; gap: 6px; flex-wrap: wrap; }
.ad-btn { font: 600 11px/1 "IBM Plex Mono", monospace; color: #34322b; background: #efeadd; border: 1px solid #ddd6c4; padding: 7px 9px; border-radius: 7px; text-decoration: none; transition: background .12s ease; }
.ad-btn:hover { background: #e3dcc8; }
.ad-btn.yt { color: #a4231b; }
.ad-btn.go { color: #fff; background: #2f6fd0; border-color: #2f6fd0; }
.ad-btn.go:hover { background: #3f7fe0; }
.ad-tool .ad-btn.go { background: #16a34a; border-color: #16a34a; }
.ad-tool .ad-btn.go:hover { background: #1bb352; }
.ad-head .ad-badge { margin-left: auto; align-self: center; }
.ad-title .ad-cat {
  align-self: flex-start;
  font: 700 9px/1.2 "IBM Plex Mono", monospace; letter-spacing: .04em;
  color: #2b7a43; background: rgba(43, 122, 67, .1);
  padding: 3px 6px; border-radius: 5px; text-transform: uppercase;
}

/* market timeframe selector */
.market-tf { display: flex; gap: 5px; margin: 7px 0 2px; }
.tf-btn {
  font: 600 11px/1 "IBM Plex Mono", monospace; color: #7dffc0;
  background: rgba(16, 40, 22, .5); border: 1px solid rgba(93, 255, 143, .25);
  padding: 5px 9px; border-radius: 6px; cursor: pointer;
  transition: background .14s ease, border-color .14s ease, box-shadow .14s ease, color .14s ease;
}
.tf-btn:hover { border-color: rgba(93, 255, 143, .55); box-shadow: 0 0 10px -2px rgba(45, 211, 90, .4); }
.tf-btn.active { background: #5cff9f; color: #04100a; border-color: #5cff9f; }

/* Arbital app — how-to list + invite code chips */
.how-list { margin: 6px 0 4px; padding-left: 18px; }
.how-list li { margin: 3px 0; line-height: 1.45; }
.code-list { display: flex; flex-wrap: wrap; gap: 5px; margin: 7px 0 12px; }
.code-list code {
  position: relative;
  font: 600 11px/1 "IBM Plex Mono", monospace; color: #d9ff6a;
  background: rgba(16, 40, 12, .6); border: 1px solid rgba(124, 255, 160, .25);
  padding: 5px 7px; border-radius: 5px; cursor: pointer;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.code-list code:hover { border-color: rgba(124, 255, 160, .6); background: rgba(16, 40, 12, .85); }
.code-list code.copied { background: #5cff9f; color: #04140b; border-color: #5cff9f; }
.code-list code.copied::after {
  content: "copied!"; position: absolute; left: 50%; top: -22px; transform: translateX(-50%);
  font: 700 9px/1 "IBM Plex Mono", monospace; color: #04140b; background: #d9ff6a;
  padding: 3px 5px; border-radius: 4px; white-space: nowrap; pointer-events: none;
}

/* Cyberpunk video player window */
.win-body:has(.video-wrap) { padding: 0; }
.video-wrap { background: #000; display: flex; border-radius: 0 0 5px 5px; overflow: hidden; }
.video-el { width: 100%; max-height: 72vh; display: block; background: #000; }

.label {
  max-width: 82px;
  color: #fff;
  font-size: 11px;
  line-height: 1.12;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
  overflow-wrap: anywhere;
  pointer-events: none;
}

/* windows */
#windows {
  position: absolute;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.window {
  position: absolute;
  min-width: 320px;
  max-width: calc(100vw - 20px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink);
  background: var(--chrome);
  border: 1px solid #1c1c1c;
  border-radius: 5px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .5);
  animation: fos-pop .13s ease-out;
  pointer-events: auto;
}

.win-bar {
  position: relative;
  flex: 0 0 auto;
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 7px;
  background: repeating-linear-gradient(180deg, #eaeaea 0 1px, #cdcdcd 1px 2px);
  border-bottom: 1px solid #7a7a7a;
  cursor: default;
}

.win-bar.dragging {
  cursor: grabbing;
}

.win-control {
  width: 13px;
  height: 11px;
  padding: 0;
  flex: 0 0 auto;
  border: 1px solid #555;
  border-radius: 2px;
  background: linear-gradient(180deg, #fff, #cdcdcd);
  box-shadow: inset 0 1px 0 #fff;
  cursor: pointer;
}

.win-control:hover {
  background: linear-gradient(180deg, #fff, #bcd3f4);
}

.win-close::before,
.pll-close::before {
  content: "";
}

.win-title {
  position: absolute;
  left: 50%;
  max-width: 68%;
  padding: 0 8px;
  transform: translateX(-50%);
  overflow: hidden;
  color: #1a1a1a;
  background: #dcd9d0;
  font-weight: 700;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.win-zoom {
  margin-left: auto;
}

.win-body {
  flex: 1 1 auto;
  max-height: min(64vh, 560px);
  overflow: auto;
  padding: 17px 18px 18px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 13px;
  line-height: 1.62;
  user-select: text;
}

.win-body h2,
.win-body h3 {
  margin: 0;
  color: #15263a;
  font-family: var(--display);
  line-height: 1.12;
}

.win-body h2 {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 800;
}

.win-body h3 {
  margin: 15px 0 7px;
  font-size: 14px;
  font-weight: 800;
}

.win-body p {
  margin: 0 0 10px;
}

.win-body ul {
  margin: 0 0 12px 18px;
  padding: 0;
}

.win-body li {
  margin: 4px 0;
}

.win-body a {
  color: #245bb0;
  text-decoration: none;
  border-bottom: 1px dotted rgba(36, 91, 176, .55);
}

.win-body a:hover {
  color: #0d3f91;
}

.win-body code,
.contract-box,
.market-price,
.market-change,
.token-line b,
.token-table td:last-child {
  font-family: var(--data-mono);
}

.win-body code {
  padding: 1px 5px;
  color: #0c4b35;
  background: #fff;
  border: 1px solid #cbc6b8;
  border-radius: 3px;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 8px 0 13px;
}

.link-card {
  min-height: 72px;
  display: block;
  padding: 10px 11px;
  color: #15263a !important;
  background: #fff;
  border: 1px solid #d9d4c4 !important;
  border-left: 3px solid var(--aqua) !important;
  border-radius: 7px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.link-card:hover {
  border-color: #2f6fd0 !important;
  box-shadow: 0 3px 10px rgba(47, 111, 208, .2);
}

.link-card b,
.link-card span {
  display: block;
}

.link-card b {
  margin-bottom: 4px;
  font-size: 13px;
}

.link-card span {
  color: #5a6675;
  font-size: 11.5px;
  line-height: 1.35;
}

.token-summary,
.market-chart-wrap {
  margin: 10px 0 12px;
  border: 1px solid #c8c1b2;
  border-radius: 5px;
  background: #fbfbf6;
  padding: 8px 10px 6px;
}
.market-chart-head {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 11px; color: #5a6675; margin-bottom: 4px;
}
.market-chart-head .num {
  font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 13px; color: #1d2b3a;
}
#market-chart { width: 100%; height: 120px; display: block; }
.market-chart-foot { font-size: 10px; color: #46c374; margin-top: 3px; text-align: right; }
.market-chart-foot::before { content: "● "; color: #3bdc5a; animation: live-pulse 1.2s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
#mc-last.up { color: #3bdc5a; }
#mc-last.down { color: #ff5f6e; }
#mc-last.flash { animation: mc-flash .5s ease; }
@keyframes mc-flash { 0% { filter: brightness(1.7); text-shadow: 0 0 10px currentColor; } 100% { filter: brightness(1); text-shadow: none; } }

/* ===== full app embedded in a window (mage desk, PerpStats) ===== */
.window:has(.embed-body) { display: flex; flex-direction: column; overflow: hidden; }
.win-body.embed-body { padding: 0 !important; overflow: hidden; flex: 1 1 auto; min-height: 0; height: auto; max-height: none !important; background: #04100a; }
.embed-frame { width: 100%; height: 100%; border: 0; display: block; }

/* ===== music player → matrix terminal ===== */
.player { background: rgba(4,16,10,.92) !important; border-color: rgba(74,255,130,.35) !important; }
.player-titlebar { background: rgba(0,30,12,.85) !important; color: #7dffc0 !important; border-bottom-color: rgba(74,255,130,.25) !important; }
.player-art { background: #04100a !important; }
.viz i { background: linear-gradient(180deg,#aaffcc,#1f9c3e) !important; }
#np-title, .player-track { color: #aaffcc !important; }
#np-sub, .player-sub { color: #46c374 !important; }
.player-btn { background: rgba(0,40,16,.7) !important; border-color: rgba(74,255,130,.4) !important; color: #aaffcc !important; }
.player-btn:hover { background: rgba(0,70,28,.85) !important; box-shadow: 0 0 10px rgba(74,255,130,.3); }
.player-btn.play { background: linear-gradient(160deg,#2bd35a,#13853a) !important; color: #04100a !important; border-color: transparent !important; }
.player-list-panel { background: rgba(4,16,10,.97) !important; border-color: rgba(74,255,130,.35) !important; }
.pll-body, #player-list-body { background: transparent !important; }
.pll-head { background: rgba(0,30,12,.6) !important; }
.pll-close { color: #7dffc0 !important; }
.pl-t, .pl-row .pl-t { color: inherit !important; }
.pll-head { color: #aaffcc !important; border-bottom-color: rgba(74,255,130,.2) !important; }
.pl-row { color: #7dffc0 !important; }
.pl-row:hover { background: rgba(0,70,28,.5) !important; }
.pl-row.on { background: rgba(74,255,130,.18) !important; }
.pl-n { color: #46c374 !important; }
.market-row { cursor: pointer; }
.market-row.sel { background: rgba(47, 111, 208, .12); }

.market-list {
  margin: 10px 0 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #c8c1b2;
  border-radius: 5px;
}

.token-line,
.market-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 11px;
  border-bottom: 1px solid #ded8c8;
}

.token-line:last-child,
.market-row:last-child {
  border-bottom: 0;
}

.token-line span,
.market-row small {
  color: var(--muted);
}

.token-line b,
.market-price {
  color: #15263a;
  text-align: right;
}

.token-table {
  width: 100%;
  margin: 8px 0 14px;
  border-collapse: collapse;
  overflow: hidden;
  background: #fff;
  border: 1px solid #c8c1b2;
  border-radius: 5px;
}

.token-table th,
.token-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #ded8c8;
  text-align: left;
}

.token-table th {
  color: #15263a;
  background: #ddd8cb;
}

.token-table tr:last-child td {
  border-bottom: 0;
}

.token-table td:last-child {
  color: #9a5e09;
  text-align: right;
  font-weight: 700;
}

.contract-box {
  display: block;
  margin-top: 7px;
  overflow-wrap: anywhere;
}

.market-row small {
  display: block;
  margin-top: 1px;
  font-size: 10px;
}

.market-values {
  text-align: right;
}

.market-price {
  display: block;
}

.market-change {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

/* iTunes player */
.player {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 400;
  width: 328px;
  overflow: hidden;
  color: #1a1a1a;
  background: var(--chrome);
  border: 1px solid #1c1c1c;
  border-radius: 5px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .6);
  font-family: var(--ui-mono);
}

.player-titlebar {
  position: relative;
  height: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(180deg, #eaeaea 0 1px, #cdcdcd 1px 2px);
  border-bottom: 1px solid #7a7a7a;
}

.player-titlebar span {
  padding: 0 8px;
  color: #1a1a1a;
  background: #dcd9d0;
  font-size: 11px;
  font-weight: 700;
}

.player-min {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 11px;
  line-height: 1;
  font-family: var(--ui-mono);
  color: #aaffcc;
  background: rgba(0, 40, 16, .7);
  border: 1px solid rgba(74, 255, 130, .45);
  border-radius: 3px;
  cursor: pointer;
}
.player-min:hover { background: rgba(0, 70, 28, .9); box-shadow: 0 0 8px rgba(74, 255, 130, .35); }

/* collapsed: show only the titlebar */
.player.player--min { width: 188px; }
.player.player--min .player-art,
.player.player--min .player-controls { display: none; }

.player-art {
  position: relative;
  height: 178px;
  margin: 8px 8px 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 24%),
    radial-gradient(120% 130% at 50% 0%, #38243f, #120d1c 60%, #050407);
  border: 1px solid #111;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

.player-yt {
  position: absolute;
  inset: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.player-yt iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.viz {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 18px;
  bottom: 45px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  pointer-events: none;
}

.viz::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 24px 24px;
}

.viz i {
  flex: 1;
  min-width: 2px;
  height: 16%;
  border-radius: 2px 2px 0 0;
  opacity: .88;
  background: linear-gradient(180deg, #ffe14d 0%, #ff8a3d 45%, #ff3f87 78%, #d11f8f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), 0 0 8px rgba(255, 88, 110, .22);
}

.player.playing .viz i {
  animation: spectrum var(--dur, 1.2s) cubic-bezier(.45, .05, .45, .95) infinite alternate;
  animation-delay: var(--dl, 0s);
}

.player-art-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  min-height: 43px;
  padding: 8px 12px 7px;
  color: #fff;
  background: linear-gradient(180deg, rgba(18, 14, 26, .55), rgba(18, 14, 26, .92));
  text-shadow: 0 1px 2px rgba(0, 0, 0, .65);
}

.player-art-label span,
.player-art-label small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.player-art-label span {
  font-size: 14px;
  font-weight: 800;
}

.player-art-label small {
  margin-top: 2px;
  color: #ffc66a;
  font-size: 10px;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 8px 9px 9px;
  background: #cfccc2;
  border-top: 1px solid #b3b0a6;
}

.player-btn {
  min-width: 48px;
  height: 26px;
  padding: 0 10px;
  color: #1a1a1a;
  border: 1px solid #555;
  border-radius: 4px;
  background: linear-gradient(180deg, #fff, #d2cfc5);
  box-shadow: inset 0 1px 0 #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.player-btn:hover {
  background: linear-gradient(180deg, #fff, #c9ddf8);
}

.player-btn.play {
  min-width: 68px;
  color: #fff;
  border-color: #245bb0;
  background: linear-gradient(180deg, var(--aqua-hi), var(--aqua));
  text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
}

.player-list-panel {
  position: absolute;
  left: 14px;
  bottom: 250px;
  z-index: 650;
  width: 328px;
  max-height: min(54vh, 430px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink);
  background: var(--chrome);
  border: 1px solid #1c1c1c;
  border-radius: 5px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .58);
  animation: fos-pop .12s ease-out;
}

.player-list-panel[hidden] {
  display: none;
}

.pll-head {
  height: 24px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 7px 0 10px;
  background: repeating-linear-gradient(180deg, #eaeaea 0 1px, #cdcdcd 1px 2px);
  border-bottom: 1px solid #7a7a7a;
  font-size: 11px;
  font-weight: 700;
}

.pll-head em {
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
}

.pll-close {
  width: 17px;
  height: 15px;
  padding: 0;
  color: #1a1a1a;
  border: 1px solid #555;
  border-radius: 2px;
  background: linear-gradient(180deg, #fff, #cdcdcd);
  box-shadow: inset 0 1px 0 #fff;
  cursor: pointer;
  font-size: 11px;
  line-height: 12px;
}

.pll-body {
  overflow-y: auto;
  padding: 7px;
  background: var(--paper);
}

.pl-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  color: #15263a;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
}

.pl-row:hover {
  background: #fff;
  border-color: #d0c9bb;
}

.pl-row.on {
  color: #fff;
  background: linear-gradient(180deg, var(--aqua-hi), var(--aqua));
  border-color: #245bb0;
}

.pl-n {
  width: 25px;
  flex: 0 0 25px;
  color: var(--muted);
  font-family: var(--data-mono);
  font-size: 11px;
  text-align: right;
}

.pl-row.on .pl-n {
  color: #fff;
}

.pl-t {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pl-empty {
  padding: 14px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 820px) {
  .menubar {
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }

  .menubar-left {
    gap: 8px;
  }

  .menu-item[data-open="portfolio"],
  .menu-item[data-open="fleet"] {
    display: none;
  }

  .ticker {
    display: none;
  }

  .wordmark {
    top: 42px;
    font-size: 32px;
  }

  .desktop {
    overflow: auto;
    padding-top: 96px;
    padding-bottom: 20px;
  }

  .icons,
  .icons-right {
    position: static;
    width: min(390px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(72px, 84px));
    justify-content: center;
    gap: 8px 6px;
  }

  .icons-right {
    margin-top: 6px;
  }

  .icon {
    min-height: 70px;
  }

  .player,
  .player-list-panel {
    display: none;
  }

  .window {
    position: fixed !important;
    left: 4vw !important;
    top: 76px !important;
    width: 92vw !important;
    min-width: 0;
  }

  .win-body {
    max-height: calc(100vh - 118px);
  }

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

@media (max-height: 660px) and (min-width: 821px) {
  .icons {
    gap: 5px;
  }

  .icon {
    min-height: 66px;
  }

  .glyph {
    height: 46px;
  }

  .aqua-svg {
    width: 52px;
    height: 52px;
  }

  .player {
    width: 304px;
  }

  .player-art {
    height: 140px;
  }

  .player-list-panel {
    width: 304px;
    bottom: 212px;
  }
}

/* ============================================================
   GLASS THEME — glassmorphism + aurora (modern re-skin, retires matrix)
   chrome only; content text colours are left intact to avoid cascade traps
   ============================================================ */
body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 160px 160px repeat,
    radial-gradient(55% 55% at 86% 10%, rgba(170, 120, 255, .16), transparent 62%),
    radial-gradient(50% 50% at 12% 90%, rgba(0, 214, 255, .14), transparent 62%),
    linear-gradient(180deg, rgba(6, 8, 14, .34), rgba(6, 8, 14, .62)),
    #07080e url("assets/wallpaper.jpg?v=3") center center / cover no-repeat fixed !important;
  background-blend-mode: overlay, screen, screen, normal, normal !important;
  background-attachment: fixed !important;
}
.window {
  background: rgba(18, 20, 30, .52) !important;
  -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 30px 80px -22px rgba(0, 0, 0, .72) !important;
}
.win-bar {
  background: linear-gradient(rgba(255, 255, 255, .07), rgba(255, 255, 255, .015)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
  height: 30px !important;
}
.win-title { color: #d8dce8 !important; font-weight: 600; letter-spacing: .2px; }
.menubar {
  background: rgba(13, 14, 21, .55) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, .1) !important;
  color: #e7e9f1 !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05), 0 6px 20px rgba(0, 0, 0, .35) !important;
}
.menu-item { color: #cdd2e0 !important; }
.menu-item:hover, .menu-item:focus-visible { color: #fff !important; }
.menubar-left strong { color: #fff; }
.clock { color: #e7e9f1 !important; }
.app-logo { border-color: rgba(255, 255, 255, .25) !important; }
.player {
  background: rgba(18, 20, 30, .58) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 16px !important;
}
.player-titlebar { background: rgba(255, 255, 255, .05) !important; color: #d8dce8 !important; border-bottom-color: rgba(255, 255, 255, .08) !important; }
.player-list-panel {
  background: rgba(18, 20, 30, .7) !important;
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, .12) !important; border-radius: 14px !important;
}
.wordmark {
  color: transparent !important; -webkit-text-fill-color: transparent;
  background: linear-gradient(116deg, #6ad7ff, #b388ff 46%, #5cffb0) !important;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 0 !important; text-shadow: none !important;
  filter: drop-shadow(0 0 30px rgba(120, 180, 255, .3)); animation: none !important;
}
.wordmark span { color: transparent !important; -webkit-text-fill-color: transparent; }
.wordmark::before, .wordmark::after { content: none !important; }
.boot-panel, .login-card {
  background: rgba(18, 20, 30, .6) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .12) !important; border-radius: 16px !important;
}
.boot-head { color: #d8dce8 !important; background: rgba(255, 255, 255, .05) !important; }
.boot-log { color: #8be9b0 !important; }
.login-name, .login-foot { color: #eef1f8 !important; }
.window .matrix-rain, #matrixRain { opacity: .1 !important; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .2) !important; border: 0 !important; border-radius: 8px !important; }
::-webkit-scrollbar-track { background: transparent !important; border: 0 !important; }

/* =====================================================================
   mage OS — Unified Effects Bundle (ADDITIVE, pure vanilla)
   1) Aurora + mesh ambient background  (body.mage-fx)
   2) Cursor spotlight on cards/icons   (.mage-spot)
   3) Border beam on featured cards      (.mage-beam)
   4) Shimmer buttons                    (.game-play / .ad-btn.go / .button.primary)
   5) Animated shiny text                (.mg-shiny / .mg-shiny--brand)
   6) Glow-on-hover pulse                (.mg-glow)
   Accents: cyan #6ad7ff / violet #b388ff / mint #5cffb0
   GPU-friendly (transform/opacity/bg-position). Honors reduced-motion.
   Append at END of stylesheet so additive rules win the cascade.
   ===================================================================== */
:root{
  --mg-cyan:#6ad7ff; --mg-violet:#b388ff; --mg-mint:#5cffb0;
  --mg-accent:linear-gradient(116deg,#6ad7ff,#b388ff 46%,#5cffb0);
  --mg-shimmer-speed:3s; --mg-shiny-speed:4.5s;
}

/* ---- 1. AURORA / MESH AMBIENT BACKGROUND --------------------------------
   Layers BEHIND glass+UI (z-index -2/-1), ABOVE the dark wallpaper.
   Wallpaper must sit at z-index <= -3 (or be painted on html/body bg). */
body.mage-fx{ position:relative; }
body.mage-fx::before{
  content:""; position:fixed; inset:-25vmax; z-index:-2; pointer-events:none;
  background:
    radial-gradient(38vmax 32vmax at 18% 22%, rgba(106,215,255,.28), transparent 60%),
    radial-gradient(42vmax 40vmax at 82% 30%, rgba(179,136,255,.26), transparent 62%),
    radial-gradient(46vmax 38vmax at 65% 82%, rgba(92,255,176,.20), transparent 60%),
    radial-gradient(34vmax 34vmax at 30% 78%, rgba(106,215,255,.18), transparent 60%);
  background-size:180% 180%,200% 200%,190% 190%,170% 170%;
  background-repeat:no-repeat;
  background-position:0% 0%,100% 0%,50% 100%,0% 100%;
  filter:blur(28px) saturate(118%); opacity:.85;
  will-change:background-position, transform;
  animation:mg-aurora-drift 36s ease-in-out infinite alternate;
}
body.mage-fx::after{
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background-image:
    conic-gradient(from 210deg at 50% 50%,
      rgba(106,215,255,.05), rgba(179,136,255,.05) 33%,
      rgba(92,255,176,.04) 66%, rgba(106,215,255,.05)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  background-size:100% 100%,160px 160px;
  background-blend-mode:screen, overlay;
  opacity:.06; mix-blend-mode:screen;
  will-change:transform, background-position;
  animation:mg-aurora-veil 40s ease-in-out infinite alternate,
            mg-grain 8s steps(6) infinite;
}
@keyframes mg-aurora-drift{
  0%{ background-position:0% 0%,100% 0%,50% 100%,0% 100%; transform:translate3d(0,0,0) scale(1); }
  50%{ background-position:30% 25%,70% 20%,40% 70%,25% 80%; transform:translate3d(0,-1.5%,0) scale(1.04); }
  100%{ background-position:60% 40%,40% 50%,60% 50%,50% 55%; transform:translate3d(0,1.2%,0) scale(1.02); }
}
@keyframes mg-aurora-veil{ 0%{ transform:translate3d(0,0,0) rotate(0deg) scale(1.05); } 100%{ transform:translate3d(0,0,0) rotate(8deg) scale(1.12); } }
@keyframes mg-grain{ 0%{ background-position:0 0,0 0; } 100%{ background-position:0 0,-80px 60px; } }

/* ---- 2. CURSOR SPOTLIGHT  (.mage-spot on .ad-card / .finder-item / .icon) */
.ad-card.mage-spot,.finder-item.mage-spot,.icon.mage-spot{
  position:relative; isolation:isolate;
  --mx:50%; --my:50%; --spot-size:320px; --spot-opacity:0;
}
.ad-card.mage-spot::before,.finder-item.mage-spot::before,.icon.mage-spot::before{
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  border-radius:inherit; opacity:var(--spot-opacity); transition:opacity .28s ease;
  background:radial-gradient(var(--spot-size) var(--spot-size) at var(--mx) var(--my),
    rgba(106,215,255,.16) 0%, rgba(179,136,255,.10) 38%,
    rgba(92,255,176,.05) 60%, transparent 72%);
  mix-blend-mode:screen;
}
.ad-card.mage-spot:hover,.finder-item.mage-spot:hover,.icon.mage-spot:hover{ --spot-opacity:1; }
.icon.mage-spot{ --spot-size:120px; }
.icon.mage-spot::before{
  background:radial-gradient(var(--spot-size) var(--spot-size) at var(--mx) var(--my),
    rgba(106,215,255,.28) 0%, rgba(179,136,255,.14) 45%, transparent 70%);
}

/* ---- 3. BORDER BEAM  (.mage-beam on featured cards / hero / buttons) ----- */
@property --beam-angle{ syntax:"<angle>"; inherits:false; initial-value:0deg; }
.mage-beam{ position:relative; isolation:isolate; }
.mage-beam::after{
  content:""; position:absolute; inset:0; z-index:0; border-radius:inherit;
  padding:1.5px; pointer-events:none;
  background:conic-gradient(from var(--beam-angle),
    transparent 0deg, transparent 300deg,
    #6ad7ff 330deg, #b388ff 348deg, #5cffb0 360deg);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite:exclude;
  animation:mg-beam-spin 4.5s linear infinite;
}
.mage-beam::before{
  content:""; position:absolute; inset:-1px; z-index:-1; border-radius:inherit;
  padding:1px; pointer-events:none;
  background:linear-gradient(116deg, rgba(106,215,255,.35), rgba(179,136,255,.35) 46%, rgba(92,255,176,.35));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite:exclude; opacity:.45;
}
@keyframes mg-beam-spin{ to{ --beam-angle:360deg; } }

/* ---- 4. SHIMMER BUTTONS  (.game-play / .ad-btn.go / .button.primary) ----- */
.game-play,.ad-btn.go,.button.primary{
  position:relative; isolation:isolate; overflow:hidden; z-index:0;
  transition:transform .18s ease, box-shadow .28s ease, filter .28s ease;
  will-change:transform;
}
.game-play::before,.ad-btn.go::before,.button.primary::before{
  content:""; position:absolute; inset:-2px; z-index:-1; pointer-events:none;
  background:linear-gradient(100deg, transparent 20%, rgba(106,215,255,0) 35%,
    rgba(255,255,255,.55) 48%, rgba(179,136,255,.35) 56%, transparent 72%);
  background-size:220% 100%; background-position:200% 0;
  mix-blend-mode:screen; opacity:.85;
  animation:mg-shimmer var(--mg-shimmer-speed) linear infinite;
}
.game-play::after,.ad-btn.go::after,.button.primary::after{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  border-radius:inherit;
  background:radial-gradient(120% 140% at 50% -20%, rgba(255,255,255,.18), transparent 60%);
  opacity:.6; transition:opacity .28s ease;
}
@keyframes mg-shimmer{ 0%{ background-position:200% 0; } 100%{ background-position:-120% 0; } }
.game-play:hover,.ad-btn.go:hover,.button.primary:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 22px rgba(106,215,255,.28), 0 2px 10px rgba(179,136,255,.22), 0 0 0 1px rgba(255,255,255,.06) inset;
  filter:saturate(1.06) brightness(1.03);
}
.game-play:hover::before,.ad-btn.go:hover::before,.button.primary:hover::before{ animation-duration:1.15s; opacity:1; }
.game-play:hover::after,.ad-btn.go:hover::after,.button.primary:hover::after{ opacity:1; }
.game-play:active,.ad-btn.go:active,.button.primary:active{ transform:translateY(0) scale(.985); }
.game-play:focus-visible,.ad-btn.go:focus-visible,.button.primary:focus-visible{
  outline:none;
  box-shadow:0 0 0 2px rgba(12,14,22,.9), 0 0 0 4px var(--mg-cyan), 0 6px 22px rgba(106,215,255,.28);
}

/* ---- 5. ANIMATED SHINY TEXT  (.mg-shiny / .mg-shiny--brand) -------------- */
.mg-shiny{
  background-image:linear-gradient(110deg, var(--mg-cyan) 0%, var(--mg-violet) 30%,
    #fff 48%, var(--mg-mint) 66%, var(--mg-cyan) 100%);
  background-size:220% 100%; background-position:0% 0;
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
  animation:mg-shiny-text var(--mg-shiny-speed) linear infinite;
}
@supports not ((-webkit-background-clip:text) or (background-clip:text)){
  .mg-shiny{ -webkit-text-fill-color:currentColor; color:var(--mg-cyan); background:none; animation:none; }
}
@keyframes mg-shiny-text{ 0%{ background-position:0% 0; } 100%{ background-position:-220% 0; } }
.mg-shiny.mg-shiny--brand{
  background-image:linear-gradient(110deg, var(--mg-cyan) 0%, var(--mg-violet) 40%,
    rgba(255,255,255,.92) 52%, var(--mg-mint) 64%, var(--mg-cyan) 100%);
  --mg-shiny-speed:6s;
}

/* ---- 6. GLOW-ON-HOVER PULSE  (.mg-glow on glass cards) ------------------- */
.mg-glow{ position:relative; transition:transform .2s ease, box-shadow .3s ease; }
.mg-glow::after{
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  opacity:0; transition:opacity .3s ease;
  background:radial-gradient(140% 120% at 50% 0%, rgba(106,215,255,.10), transparent 55%);
}
.mg-glow:hover{ transform:translateY(-2px); }
.mg-glow:hover::after{ opacity:1; animation:mg-glow-pulse 2.4s ease-in-out infinite; }
@keyframes mg-glow-pulse{
  0%,100%{ box-shadow:0 0 0 1px rgba(106,215,255,.16) inset, 0 10px 32px rgba(106,215,255,.16); }
  50%{ box-shadow:0 0 0 1px rgba(179,136,255,.22) inset, 0 14px 42px rgba(179,136,255,.22); }
}

/* ---- GRACEFUL DEGRADATION ------------------------------------------------ */
@supports not (backdrop-filter:blur(2px)){
  body.mage-fx::before{ filter:blur(18px) saturate(112%); opacity:.7; }
}
@media (max-width:700px){
  body.mage-fx::before{ filter:blur(22px) saturate(115%); opacity:.78; }
  body.mage-fx::after{ opacity:.045; }
}
/* tab-hidden pause hook (JS toggles these classes) */
.mage-fx-paused::before,.mage-fx-paused::after{ animation-play-state:paused !important; }
.mg-paused::before{ animation-play-state:paused !important; }

/* ---- REDUCED MOTION: freeze heavy animations, keep static accents -------- */
@media (prefers-reduced-motion:reduce){
  body.mage-fx::before,body.mage-fx::after{ animation:none !important; }
  body.mage-fx::before{ background-position:25% 20%,75% 25%,50% 80%,20% 75%; transform:none; }
  .mage-beam::after{ animation:none; }
  .ad-card.mage-spot::before,.finder-item.mage-spot::before,.icon.mage-spot::before{ transition:none; }
  .game-play::before,.ad-btn.go::before,.button.primary::before{ animation:none; opacity:0; }
  .mg-shiny{ animation:none; background-position:50% 0; }
  .mg-glow:hover::after{ animation:none; }
  .game-play,.ad-btn.go,.button.primary,.mg-glow{ transition:none; }
}
/* ============================================================
   GLASS COHESION v2 — dark-glass content panels + kill all matrix
   (the light cream panels + green terminal windows were the
   "not top-tier / matrix leftover" gap)
   ============================================================ */
/* 1) kill matrix rain entirely */
.matrix-rain, #matrixRain { display: none !important; }

/* 2) terminal windows -> clean glass (no green, no scanline) */
.win-terminal .win-body { background: transparent !important; color: #cfd3df !important; }
.win-terminal .win-body::after { display: none !important; }
.win-terminal .win-body h2, .win-terminal .win-body h3 { color: #fff !important; text-shadow: none !important; }
.win-terminal .win-body b { color: #eaf0ff !important; }
.win-terminal .win-body a { color: #6ad7ff !important; border-bottom-color: rgba(106,215,255,.45) !important; }
.win-body ul li::marker { color: #6ad7ff; }
.link-card { background: rgba(255,255,255,.05) !important; border: 1px solid rgba(255,255,255,.12) !important; color: #e3e6ef !important; }
.link-card:hover { background: rgba(106,215,255,.10) !important; border-color: rgba(106,215,255,.35) !important; }
.link-card span { color: #aab0c2 !important; }
.market-chart-foot { color: #9fb0c8 !important; }
.market-chart-foot::before { color: #6ad7ff !important; }
#mc-last.up, .market-change.up { color: #54e39b !important; }
#mc-last.down, .market-change.down { color: #ff6b8a !important; }
.market-row { border-color: rgba(255,255,255,.08) !important; }
.market-row.sel, .market-row:hover { background: rgba(106,215,255,.10) !important; }

/* 3) MapleStory launcher + lightbox -> cyan/light (no green) */
.game-launch p { color: #aab0c2 !important; }
.game-play { background: linear-gradient(116deg,#6ad7ff,#b388ff) !important; color: #06121e !important; box-shadow: 0 4px 16px rgba(106,215,255,.3) !important; }
.lightbox-name { color: #b7d9ff !important; }
.lightbox-dl { background: linear-gradient(116deg,#6ad7ff,#b388ff) !important; color: #06121e !important; }

/* 4) Arbital invite codes -> cyan (no green) */
.code-list code { color: #7fe0ff !important; background: rgba(106,215,255,.1) !important; border-color: rgba(106,215,255,.25) !important; }
.code-list code.copied { background: #6ad7ff !important; color: #06121e !important; border-color: #6ad7ff !important; }
.code-list code.copied::after { background: #b388ff !important; color: #06121e !important; }

/* 5) CONTENT APP PANELS (finder / gallery / airdrop) -> dark glass */
.finder, .gallery, .airdrop {
  background: rgba(15,17,26,.74) !important; color: #e3e6ef !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
}
.finder-bar, .gallery-head, .ad-head-bar {
  background: rgba(255,255,255,.04) !important; border-bottom-color: rgba(255,255,255,.08) !important;
}
.finder-crumb { color: #dfe3ee !important; }
.finder-star { color: #ffcf6a !important; }
.finder-sep { color: #6b7185 !important; }
.finder-back { background: rgba(255,255,255,.06) !important; border-color: rgba(255,255,255,.16) !important; color: #cfd3df !important; }
.finder-back:not(:disabled):hover { background: rgba(106,215,255,.16) !important; border-color: rgba(106,215,255,.4) !important; }
.finder-item { color: #e3e6ef !important; }
.finder-item:hover { background: rgba(106,215,255,.10) !important; border-color: rgba(106,215,255,.3) !important; }
.finder-name { color: #eef1f8 !important; }
.finder-desc, .finder-detail.pf-card p, .ad-desc, .ad-note { color: #aab0c2 !important; }
.finder-tag { color: #aab0c2 !important; background: rgba(255,255,255,.06) !important; }
.pf-card h3 { color: #fff !important; }
.pf-meta dt { color: #8a90a4 !important; }
.pf-meta dd { color: #dfe3ee !important; }

/* 6) gallery -> dark */
.gallery-count { color: #9fb0c8 !important; }
.gallery-thumb { background: rgba(255,255,255,.04) !important; border-color: rgba(255,255,255,.12) !important; }
.gallery-card figcaption { color: #cfd3df !important; }

/* 7) airdrop cards -> dark glass */
.ad-count { color: #7fe0ff !important; }
.ad-card { background: rgba(22,24,34,.7) !important; border-color: rgba(255,255,255,.08) !important; }
.ad-card:hover { border-color: rgba(106,215,255,.4) !important; box-shadow: 0 11px 26px -9px rgba(0,0,0,.5), 0 0 24px -10px rgba(106,215,255,.4) !important; }
.ad-tool { background: linear-gradient(180deg, rgba(20,42,32,.72), rgba(22,24,34,.72)) !important; border-color: rgba(92,255,176,.32) !important; }
.ad-logo { background: rgba(255,255,255,.06) !important; border-color: rgba(255,255,255,.12) !important; }
.ad-title b { color: #fff !important; }
.ad-title small { color: #8a90a4 !important; }
.ad-cat { color: #7fe0ff !important; background: rgba(106,215,255,.12) !important; }
.ad-btn { background: rgba(255,255,255,.06) !important; border-color: rgba(255,255,255,.14) !important; color: #dfe3ee !important; }
.ad-btn:hover { background: rgba(255,255,255,.13) !important; }
.ad-btn.yt { color: #ff9a9a !important; }
.ad-btn.go, .ad-tool .ad-btn.go { background: linear-gradient(116deg,#6ad7ff,#b388ff) !important; color: #06121e !important; border: 0 !important; }

/* ============================================================
   LIQUID GLASS v3 — Apple-style specular glass + liquid refraction
   specular rim-light = the "real glass" cue;
   refracts the backdrop (own content stays crisp).
   ============================================================ */
.window, .menubar, .player {
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
.window, .player, .boot-panel, .login-card {
  border: 1px solid rgba(255,255,255,.16) !important;
  box-shadow:
    inset 0 1px 0.5px rgba(255,255,255,.5),
    inset 0 0 0 1px rgba(255,255,255,.05),
    inset 0 -18px 36px -24px rgba(255,255,255,.15),
    0 26px 64px -20px rgba(0,0,0,.62) !important;
}
.win-bar { box-shadow: inset 0 1px 0 rgba(255,255,255,.34) !important; border-bottom: 1px solid rgba(255,255,255,.07) !important; }
.menubar { box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 26px rgba(0,0,0,.42) !important; border-bottom: 1px solid rgba(255,255,255,.12) !important; }
.ad-card, .finder, .gallery, .airdrop, .pf-hero, .game-launch, .player-list-panel, .finder-detail.pf-card {
  -webkit-backdrop-filter: blur(22px) saturate(172%);
  backdrop-filter: blur(22px) saturate(172%);
}
.ad-card { box-shadow: inset 0 1px 0.5px rgba(255,255,255,.22), 0 10px 28px -12px rgba(0,0,0,.5) !important; }
.ad-card:hover { box-shadow: inset 0 1px 0.5px rgba(255,255,255,.34), 0 14px 34px -12px rgba(0,0,0,.55), 0 0 30px -10px rgba(106,215,255,.45) !important; }
.game-play, .ad-btn.go, .button.primary, .lightbox-dl {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 6px 18px -6px rgba(106,215,255,.5) !important;
}
.icon .glyph, .icon .aqua-svg, .icon .aqua-img { filter: drop-shadow(0 3px 7px rgba(0,0,0,.55)); }

/* ============================================================
   TYPOGRAPHY v4 — Inter for prose, mono for data (premium feel)
   ============================================================ */
:root { --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Noto Sans KR", system-ui, sans-serif; }
html { scroll-behavior: smooth; }
.win-body p, .win-body li, .finder-desc, .ad-desc, .ad-note, .pf-card p,
.game-launch p, .finder-detail p, .link-card span {
  font-family: var(--font-sans) !important; letter-spacing: -.006em; line-height: 1.55;
}
.win-body h2, .win-body h3, .pf-card h3, .ad-title b, .finder-name, .game-launch h2 {
  font-family: var(--font-sans) !important; letter-spacing: -.018em; font-weight: 700;
}
.num, .market-price, .ticker, .clock, #mc-last, .code-list code, .pf-meta dt, .pf-meta dd,
.ad-cat, .finder-crumb, .ad-count, .gallery-card figcaption, .market-values {
  font-family: "IBM Plex Mono", ui-monospace, monospace !important; font-variant-numeric: tabular-nums;
}
:focus-visible { outline: 2px solid rgba(106,215,255,.6) !important; outline-offset: 2px; }

/* ============================================================
   POLISH v5 — macOS traffic-light controls + glass titlebar
   ============================================================ */
.win-bar { gap: 8px !important; padding-left: 11px !important; }
.win-control {
  width: 12px !important; height: 12px !important;
  border-radius: 50% !important; border: 0 !important;
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.28), 0 0 6px rgba(0,0,0,.25) !important;
  position: relative; transition: filter .14s ease;
}
.win-close { background: #ff5f57 !important; margin: 0 !important; }
.win-zoom { background: #28c840 !important; margin-left: 0 !important; }
.win-control:hover { filter: brightness(1.12) saturate(1.1); }
.win-close::after { content: "\00d7"; }
.win-zoom::after { content: "+"; }
.win-control::after {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font: 800 9px/1 -apple-system, sans-serif; color: rgba(0,0,0,.5); opacity: 0; transition: opacity .14s ease;
}
.win-bar:hover .win-control::after { opacity: 1; }
.win-title { background: transparent !important; color: #d8dce8 !important; font-weight: 600 !important; letter-spacing: .1px; }

/* icon labels legible over the animated aurora */
.icon .label { text-shadow: 0 1px 3px rgba(0,0,0,.72), 0 0 8px rgba(0,0,0,.45); color: #f2f5fb !important; }

/* premium window entrance (springier) */
@keyframes win-rise-v5 { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.window { animation: win-rise-v5 .3s cubic-bezier(.2,.9,.25,1.08) !important; }

/* ============================================================
   PLAYER -> liquid glass (kill the remaining matrix green inside)
   ============================================================ */
.player { background: rgba(18,20,30,.6) !important; border: 1px solid rgba(255,255,255,.14) !important; }
.player-titlebar, .pll-head { background: rgba(255,255,255,.05) !important; color: #d8dce8 !important; border-bottom-color: rgba(255,255,255,.08) !important; }
.player-titlebar span, .pll-head { color: #d8dce8 !important; }
.player-art { background: rgba(12,14,22,.72) !important; }
.viz { background: transparent !important; }
.viz::before { opacity: .22 !important; filter: hue-rotate(155deg) saturate(.6) !important; }
.viz i { background: linear-gradient(180deg,#9ad8ff,#7a5cff) !important; box-shadow: 0 0 6px rgba(106,215,255,.35) !important; }
#np-title, .player-track, .player-art-label span { color: #eef2fb !important; text-shadow: none !important; }
#np-sub, .player-sub, .player-art-label small { color: #9aa6c0 !important; }
.player-btn { background: rgba(255,255,255,.06) !important; border-color: rgba(255,255,255,.16) !important; color: #dfe3ee !important; }
.player-btn:hover { background: rgba(106,215,255,.16) !important; box-shadow: 0 0 12px rgba(106,215,255,.3) !important; }
.player-btn.play { background: linear-gradient(116deg,#6ad7ff,#b388ff) !important; color: #06121e !important; border-color: transparent !important; }
.player-min { background: rgba(255,255,255,.08) !important; color: #cfd3df !important; border-color: rgba(255,255,255,.16) !important; }
.player-min:hover { background: rgba(106,215,255,.2) !important; box-shadow: 0 0 8px rgba(106,215,255,.35) !important; }
.player-list-panel { background: rgba(18,20,30,.8) !important; border-color: rgba(255,255,255,.14) !important; }
.pll-close { color: #cfd3df !important; }
.pll-body, #player-list-body, .pll-body * { color: #cfd3df !important; }

/* ============================================================
   KILL STRAGGLERS — last matrix-green bits (terminal code/tables,
   tf active button, contract box)
   ============================================================ */
.win-terminal .win-body code { background: rgba(255,255,255,.07) !important; color: #cde6ff !important; }
.win-terminal .link-card b { color: #eaf0ff !important; }
.win-terminal .link-card small, .win-terminal .win-body small { color: #9aa6c0 !important; }
.win-terminal .token-table th, .win-terminal .token-table td { color: #dfe3ee !important; border-color: rgba(255,255,255,.1) !important; }
.contract-box { background: rgba(255,255,255,.06) !important; border-color: rgba(106,215,255,.3) !important; color: #cde6ff !important; }
.token-line b, .token-summary b { color: #fff !important; }
.tf-btn.active { background: linear-gradient(116deg,#6ad7ff,#b388ff) !important; color: #06121e !important; border-color: transparent !important; }
.boot-log { color: #9ad8ff !important; }
.wordmark::before, .wordmark::after { content: none !important; }

/* ============================================================
   LIQUID GLASS ALL v6 — every surface = uniform frosted glass
   top-level surfaces keep refraction; inner panels translucent
   so the refracted window shows through (consistent depth)
   ============================================================ */
.window, .menubar, .player, .player-list-panel, .boot-panel, .login-card, .drawer-panel {
  -webkit-backdrop-filter: blur(22px) saturate(178%) !important;
  backdrop-filter: blur(22px) saturate(178%) !important;
}
.window { background: rgba(18,20,30,.44) !important; }
.player, .player-list-panel { background: rgba(18,20,30,.5) !important; }
.finder, .gallery, .airdrop {
  background: rgba(16,18,28,.34) !important;
  -webkit-backdrop-filter: blur(16px) saturate(165%) !important;
  backdrop-filter: blur(16px) saturate(165%) !important;
}
.finder-bar, .gallery-head, .ad-head-bar { background: rgba(255,255,255,.05) !important; }
.window, .player, .player-list-panel, .finder, .gallery, .airdrop, .pf-hero, .game-launch, .boot-panel, .login-card, .drawer-panel {
  box-shadow: inset 0 1px 0.5px rgba(255,255,255,.42), inset 0 0 0 1px rgba(255,255,255,.05), 0 20px 50px -20px rgba(0,0,0,.6) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
}
.ad-card, .finder-item, .gallery-thumb, .pf-hero, .game-launch, .note, .pf-meta {
  -webkit-backdrop-filter: blur(13px) saturate(160%) !important;
  backdrop-filter: blur(13px) saturate(160%) !important;
}
.ad-card { background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.13) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 8px 22px -12px rgba(0,0,0,.5) !important; }
.ad-card:hover { background: rgba(255,255,255,.1) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 12px 28px -12px rgba(0,0,0,.55), 0 0 28px -10px rgba(106,215,255,.42) !important; }
.finder-item:hover { background: rgba(255,255,255,.09) !important; }
.gallery-thumb { background: rgba(255,255,255,.05) !important; }
.ad-btn, .finder-back, .tf-btn, .button.secondary, .player-btn {
  -webkit-backdrop-filter: blur(10px) saturate(160%) !important; backdrop-filter: blur(10px) saturate(160%) !important;
  background: rgba(255,255,255,.07) !important; border: 1px solid rgba(255,255,255,.16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24) !important; color: #e3e6ef !important;
}
.ad-btn.go, .game-play, .button.primary, .lightbox-dl, .player-btn.play, .tf-btn.active {
  background: linear-gradient(116deg,#6ad7ff,#b388ff) !important; color: #06121e !important; border: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 6px 18px -6px rgba(106,215,255,.5) !important;
}

/* fix: player controls strip + any leftover light chrome -> glass */
.player-controls { background: rgba(255,255,255,.035) !important; border-top: 1px solid rgba(255,255,255,.08) !important; }
.player-art-label { background: transparent !important; }

/* fix: leftover gray title chips -> glass (player "mage radio" chip was #dcd9d0) */
.player-titlebar span { background: transparent !important; color: #d8dce8 !important; font-weight: 600 !important; letter-spacing: .2px; }
.win-title, .aqua-window-title { background: transparent !important; }

/* ============================================================
   VISUAL FLAIR v7 — flashy hero, animated mesh, glowing cube,
   gradient titles, grid texture (Aceternity/Magic-UI vibe)
   ============================================================ */
/* Portfolio hero: kill the dark-green flat bg -> vibrant animated mesh + grid dots */
.pf-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(rgba(255,255,255,.1) 1px, transparent 1.5px) 0 0 / 20px 20px,
    radial-gradient(62% 82% at 26% 18%, color-mix(in srgb, var(--accent) 50%, transparent), transparent 60%),
    radial-gradient(58% 78% at 84% 86%, rgba(179,136,255,.42), transparent 60%),
    radial-gradient(54% 64% at 60% 46%, rgba(106,215,255,.30), transparent 66%),
    linear-gradient(135deg, #12141f, #0a0c16) !important;
  background-size: 20px 20px, 220% 220%, 220% 220%, 220% 220%, 100% 100% !important;
  animation: pf-hero-shift 16s ease-in-out infinite alternate !important;
}
@keyframes pf-hero-shift {
  0%   { background-position: 0 0, 0% 0%, 100% 100%, 50% 50%, 0 0; }
  100% { background-position: 0 0, 48% 38%, 52% 66%, 38% 42%, 0 0; }
}
/* glowing, gently floating cube */
.pf-cube {
  position: relative; z-index: 1;
  filter: drop-shadow(0 0 16px color-mix(in srgb, var(--accent) 78%, transparent))
          drop-shadow(0 0 36px color-mix(in srgb, var(--accent) 45%, transparent)) !important;
  animation: pf-cube-float 6s ease-in-out infinite !important;
}
@keyframes pf-cube-float { 0%,100% { transform: translateY(0) rotate(-2.5deg); } 50% { transform: translateY(-9px) rotate(2.5deg); } }
.pf-chip { z-index: 2; text-shadow: 0 0 10px var(--accent), 0 0 22px color-mix(in srgb, var(--accent) 55%, transparent) !important; }
.pf-eyebrow { z-index: 2; color: var(--accent) !important; text-shadow: 0 0 9px color-mix(in srgb, var(--accent) 55%, transparent) !important; }
.pf-dot { box-shadow: 0 0 8px currentColor, 0 0 16px currentColor !important; }

/* gradient titles (flashy) */
.pf-card h3, .win-body h2, .game-launch h2, .pll-head {
  background: linear-gradient(116deg, #ffffff, #6ad7ff 55%, #b388ff) !important;
  -webkit-background-clip: text; background-clip: text;
  color: transparent !important; -webkit-text-fill-color: transparent;
}
/* metadata labels -> accent-tinted */
.pf-meta dt { color: color-mix(in srgb, var(--accent) 55%, #9aa0b2) !important; }

/* richer card hover glow (accent halo) */
.ad-card:hover, .finder-item:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 14px 34px -12px rgba(0,0,0,.6), 0 0 40px -8px rgba(106,215,255,.5) !important;
}
.ad-card .ad-logo { box-shadow: 0 0 14px -4px rgba(106,215,255,.4); }

/* =====================================================================
   mage OS — FLASHY FX BUNDLE (meteors + .tilt3d + .shine-border + .glow-orb)
   Additive, vanilla, GPU-friendly (transform/opacity), reduced-motion aware.
   Collision-safe: NEVER touches ::before/::after of .mage-spot / .mage-beam
   (which already own pseudos on .ad-card/.finder-item/.icon/.pf-hero).
   Layering: wallpaper = body bg; aurora = z-index -2/-1; meteors = z-index -1
   (above wallpaper, behind .desktop UI). Append at END of aqua.css.
   ===================================================================== */

/* registered angle for the rotating shine border (distinct from --beam-angle) */
@property --mfx-shine-rot{ syntax:"<angle>"; inherits:false; initial-value:0deg; }
@property --mfx-rx{ syntax:"<angle>"; inherits:false; initial-value:0deg; }
@property --mfx-ry{ syntax:"<angle>"; inherits:false; initial-value:0deg; }

:root{
  --mfx-cyan:#6ad7ff; --mfx-violet:#b388ff; --mfx-mint:#5cffb0;
}

/* ---- A. METEORS / shooting-stars ambient overlay ------------------------ */
.mage-meteors{
  position:fixed; inset:0; z-index:-1;     /* above wallpaper, below .desktop */
  overflow:hidden; pointer-events:none; contain:strict;
}
.mage-meteors .meteor{
  position:absolute; top:-10%;
  width:2px; height:2px; border-radius:9999px;
  background:var(--mtr-color,#6ad7ff);
  box-shadow:0 0 6px 1px var(--mtr-color,#6ad7ff),
    0 0 14px 2px color-mix(in srgb,var(--mtr-color,#6ad7ff) 55%,transparent);
  opacity:0;
  transform:translate3d(0,0,0) rotate(var(--mtr-angle,32deg));
  will-change:transform,opacity;
  animation:mfx-meteor-fall var(--mtr-dur,5s) linear infinite,
            mfx-meteor-fade var(--mtr-dur,5s) linear infinite;
  animation-delay:var(--mtr-delay,0s);
}
.mage-meteors .meteor::before{
  content:""; position:absolute; top:50%; right:1px; height:1px;
  width:var(--mtr-len,140px); transform:translateY(-50%); border-radius:9999px;
  background:linear-gradient(90deg,transparent,
    color-mix(in srgb,var(--mtr-color,#6ad7ff) 70%,transparent));
}
@keyframes mfx-meteor-fall{
  from{ transform:translate3d(0,0,0) rotate(var(--mtr-angle,32deg)); }
  to  { transform:translate3d(var(--mtr-x,60vw),120vh,0) rotate(var(--mtr-angle,32deg)); }
}
@keyframes mfx-meteor-fade{
  0%{opacity:0;} 8%{opacity:var(--mtr-peak,.7);}
  70%{opacity:var(--mtr-peak,.7);} 100%{opacity:0;}
}

/* ---- B. 3D TILT-ON-HOVER (.tilt3d) — glare is an injected child span ----- */
.tilt3d{
  --mfx-rx:0deg; --mfx-ry:0deg; --mfx-gx:50%; --mfx-gy:50%;
  --tilt-active:0; --tilt-lift:0px;
  position:relative; isolation:isolate; transform-style:preserve-3d;
  transform:perspective(900px) translateZ(0) translateY(var(--tilt-lift))
            rotateX(var(--mfx-rx)) rotateY(var(--mfx-ry));
  transition:transform .5s cubic-bezier(.22,.61,.18,1);
  will-change:transform; transform-origin:center center;
}
.tilt3d.is-tilting{ --tilt-lift:-4px; transition:transform .08s linear; }
.tilt3d > .mfx-glare{
  position:absolute; inset:0; z-index:2; border-radius:inherit;
  pointer-events:none; opacity:0; transition:opacity .35s ease;
  mix-blend-mode:screen; transform:translateZ(40px);
  background:
    radial-gradient(140px 140px at var(--mfx-gx) var(--mfx-gy),
      rgba(255,255,255,.34) 0%, rgba(106,215,255,.20) 30%,
      rgba(179,136,255,.10) 52%, transparent 70%),
    linear-gradient(116deg, rgba(106,215,255,.08),
      rgba(179,136,255,.06) 46%, rgba(92,255,176,.08));
}
.tilt3d.is-tilting > .mfx-glare{ opacity:1; }
.tilt3d [data-tilt-pop]{
  transform:translateZ(28px); transform-style:preserve-3d;
  transition:transform .5s cubic-bezier(.22,.61,.18,1);
}
.tilt3d:focus-within{ --tilt-lift:-3px; }

/* ---- C. SHINE BORDER (rotating conic gradient border, own border only) --- */
.shine-border{
  --shine-width:1.6px; --shine-speed:5s;
  position:relative;
  border:var(--shine-width) solid transparent; border-radius:14px;
  background:
    linear-gradient(var(--shine-fill,rgba(13,16,26,.55)),var(--shine-fill,rgba(13,16,26,.55))) padding-box,
    conic-gradient(from var(--mfx-shine-rot),
      var(--mfx-cyan), var(--mfx-violet) 33%, var(--mfx-mint) 66%, var(--mfx-cyan)) border-box;
  background-origin:border-box;
  will-change:--mfx-shine-rot;
  animation:mfx-shine-rotate var(--shine-speed) linear infinite;
}
@keyframes mfx-shine-rotate{ to{ --mfx-shine-rot:360deg; } }
.shine-border.shine-border--ring{
  --shine-fill:transparent;
  background:
    linear-gradient(transparent,transparent) padding-box,
    conic-gradient(from var(--mfx-shine-rot),
      transparent 0deg, transparent 240deg,
      var(--mfx-cyan) 300deg, var(--mfx-violet) 330deg,
      var(--mfx-mint) 350deg, transparent 360deg) border-box;
  background-origin:border-box;
}
.shine-border.shine-border--btn{
  --shine-width:1.4px; --shine-speed:3.4s; border-radius:11px;
  transition:box-shadow .28s ease, filter .28s ease, transform .18s ease;
}
.shine-border.shine-border--btn:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 22px rgba(106,215,255,.26), 0 2px 10px rgba(179,136,255,.20);
  filter:saturate(1.05) brightness(1.02);
}
/* fallback when @property/conic unsupported: animated linear sheen */
@supports not (background:conic-gradient(from 1deg,red,blue)){
  .shine-border{
    background:
      linear-gradient(var(--shine-fill,rgba(13,16,26,.55)),var(--shine-fill,rgba(13,16,26,.55))) padding-box,
      linear-gradient(116deg,var(--mfx-cyan),var(--mfx-violet) 46%,var(--mfx-mint)) border-box;
    background-size:auto, 220% 100%; background-origin:border-box;
    animation:mfx-shine-sheen var(--shine-speed) linear infinite;
  }
  @keyframes mfx-shine-sheen{ 0%{background-position:0 0,0% 0;} 100%{background-position:0 0,-220% 0;} }
}

/* ---- D. GLOW ORB (standalone drifting blurred blob) + host --------------- */
.glow-orb{
  position:absolute; z-index:0; pointer-events:none;
  width:var(--orb-size,46vmax); height:var(--orb-size,46vmax);
  left:var(--orb-x,50%); top:var(--orb-y,40%);
  margin-left:calc(var(--orb-size,46vmax) / -2);
  margin-top:calc(var(--orb-size,46vmax) / -2);
  border-radius:50%;
  background:radial-gradient(circle at 50% 50%,
    var(--orb-color,rgba(106,215,255,.42)) 0%,
    color-mix(in srgb,var(--orb-color,#6ad7ff) 22%,transparent) 42%, transparent 70%);
  filter:blur(var(--orb-blur,60px)) saturate(120%);
  opacity:var(--orb-opacity,.8); mix-blend-mode:screen;
  will-change:transform;
  animation:mfx-orb-drift var(--orb-speed,22s) ease-in-out infinite alternate;
}
@keyframes mfx-orb-drift{
  0%{transform:translate3d(-6%,-4%,0) scale(1);}
  50%{transform:translate3d(5%,6%,0) scale(1.12);}
  100%{transform:translate3d(8%,-3%,0) scale(.96);}
}
.glow-orb--cyan{ --orb-color:rgba(106,215,255,.45); }
.glow-orb--violet{ --orb-color:rgba(179,136,255,.42); }
.glow-orb--mint{ --orb-color:rgba(92,255,176,.36); }
.glow-orb--b{ animation-direction:alternate-reverse; animation-delay:-7s; --orb-speed:28s; }
.glow-orb--c{ animation-delay:-13s; --orb-speed:34s; }
.glow-orb-host{ position:relative; isolation:isolate; overflow:hidden; }
.glow-orb-host > .glow-orb{ z-index:0; }
.glow-orb-host > :not(.glow-orb){ position:relative; z-index:1; }

/* ---- PAUSE hooks (tab hidden) ------------------------------------------- */
.mfx-paused .meteor,
.shine-paused,
.orb-paused .glow-orb{ animation-play-state:paused !important; }

@media (max-width:700px){
  .glow-orb{ filter:blur(var(--orb-blur,44px)) saturate(115%); opacity:.62; }
}

/* ---- REDUCED MOTION (single unified guard) ------------------------------ */
@media (prefers-reduced-motion:reduce){
  .mage-meteors{ display:none; }
  .tilt3d{
    --mfx-rx:0deg !important; --mfx-ry:0deg !important;
    transform:translateY(var(--tilt-lift)); transition:transform .2s ease;
  }
  .tilt3d.is-tilting{ --tilt-lift:-2px; }
  .tilt3d > .mfx-glare{ display:none; }
  .tilt3d [data-tilt-pop]{ transform:none; transition:none; }
  .shine-border{ animation:none; --mfx-shine-rot:116deg; }
  .shine-border.shine-border--btn{ transition:none; }
  .glow-orb{ animation:none; transform:translate3d(0,0,0) scale(1.02); }
}
/* ---- Touch / coarse pointers: tilt-on-move is meaningless --------------- */
@media (hover:none),(pointer:coarse){
  .tilt3d{ transform:none; transition:none; }
  .tilt3d > .mfx-glare{ display:none; }
}
/* glow-orbs ambient container (behind UI, over wallpaper) */
.fx-orbs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }

/* ============================================================
   LIQUID GLASS HQ v8 — clear LIGHT glass (octocat reference quality)
   was dark-tinted (bg hidden) -> now light/clear so wallpaper+aurora
   show THROUGH vividly, with crisp bright borders + specular sheen
   ============================================================ */
.window, .menubar, .player, .player-list-panel, .finder, .gallery, .airdrop,
.boot-panel, .login-card, .drawer-panel, .pf-hero, .game-launch {
  background: rgba(255,255,255,.06) !important;
}
.window, .menubar, .player {
  -webkit-backdrop-filter: blur(16px) saturate(190%) brightness(1.05) !important;
  backdrop-filter: blur(16px) saturate(190%) brightness(1.05) !important;
}
.player-list-panel, .finder, .gallery, .airdrop, .boot-panel, .login-card, .drawer-panel {
  -webkit-backdrop-filter: blur(16px) saturate(185%) brightness(1.04) !important;
  backdrop-filter: blur(16px) saturate(185%) brightness(1.04) !important;
}
.window, .player, .player-list-panel, .finder, .gallery, .airdrop, .boot-panel, .login-card, .drawer-panel, .game-launch {
  border: 1px solid rgba(255,255,255,.32) !important;
  border-radius: 20px !important;
  box-shadow: inset 0 1px 0.5px rgba(255,255,255,.72), inset 0 0 0 1px rgba(255,255,255,.04), 0 24px 60px -18px rgba(0,0,0,.5) !important;
}
.ad-card {
  background: rgba(255,255,255,.07) !important;
  -webkit-backdrop-filter: blur(13px) saturate(175%) brightness(1.03) !important;
  backdrop-filter: blur(13px) saturate(175%) brightness(1.03) !important;
  border: 1px solid rgba(255,255,255,.26) !important; border-radius: 16px !important;
  box-shadow: inset 0 1px 0.5px rgba(255,255,255,.5), 0 8px 24px -12px rgba(0,0,0,.4) !important;
}
.ad-card:hover { background: rgba(255,255,255,.12) !important; border-color: rgba(255,255,255,.42) !important; box-shadow: inset 0 1px 0.5px rgba(255,255,255,.65), 0 14px 32px -12px rgba(0,0,0,.5), 0 0 36px -8px rgba(106,215,255,.5) !important; }
.finder-bar, .gallery-head, .ad-head-bar { background: rgba(255,255,255,.06) !important; border-bottom: 1px solid rgba(255,255,255,.16) !important; }
.ad-btn, .finder-back, .tf-btn, .player-btn {
  background: rgba(255,255,255,.1) !important; border: 1px solid rgba(255,255,255,.3) !important; color: #f0f3fa !important;
  -webkit-backdrop-filter: blur(8px) saturate(160%) !important; backdrop-filter: blur(8px) saturate(160%) !important;
}
/* text contrast over clear glass */
.win-body, .finder, .gallery, .airdrop, .ad-desc, .ad-title, .finder-name, .finder-desc, .pf-meta, .player { text-shadow: 0 1px 3px rgba(0,0,0,.45); }

/* meteors removed per request */
.mage-meteors { display: none !important; }

/* ============================================================
   v9 — rainbow wallpaper (shows through clear glass) + Portfolio
   composition fix (kill gradient-bar h3, 2x2 glass meta grid)
   ============================================================ */
body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 160px 160px repeat,
    linear-gradient(180deg, rgba(8,9,16,.40), rgba(8,9,16,.66)),
    #07080e url("assets/wallpaper-rainbow.jpg?v=1") center center / cover no-repeat fixed !important;
  background-blend-mode: overlay, normal, normal !important;
}
/* Portfolio detail title: solid white (was a gradient-clip bar) */
.pf-card h3 {
  background: none !important; color: #ffffff !important; -webkit-text-fill-color: #ffffff !important;
  -webkit-background-clip: border-box !important; background-clip: border-box !important;
  text-shadow: 0 1px 6px rgba(0,0,0,.5) !important;
}
/* metadata -> 2x2 glass mini-cards (fills width, composed) */
.pf-meta { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
.pf-meta > div {
  display: flex !important; flex-direction: column !important; gap: 5px;
  padding: 12px 14px; background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.14); border-radius: 12px;
  -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%);
}
.pf-meta dt { color: color-mix(in srgb, var(--accent,#6ad7ff) 60%, #b8bdcc) !important; }
.pf-meta dd { font-size: 13.5px !important; color: #f0f3fa !important; }

/* ============================================================
   v10 — kill gradient-clip heading BARS (clip failed -> full-width
   gradient box). All headings solid. + Arbital codes collapsible.
   ============================================================ */
.pf-card h3, .win-body h2, .win-body h3, .game-launch h2, .pll-head {
  background: none !important; background-image: none !important;
  color: #ffffff !important; -webkit-text-fill-color: #ffffff !important;
  -webkit-background-clip: border-box !important; background-clip: border-box !important;
}
.win-body h3 { color: #e7ecf6 !important; -webkit-text-fill-color: #e7ecf6 !important; }
/* Arbital invite codes -> collapsible (hidden until expanded) */
.code-details { margin: 4px 0 10px; }
.code-details summary {
  cursor: pointer; list-style: none; user-select: none; width: fit-content;
  font: 700 12px/1 "IBM Plex Mono", monospace; color: #cfe6ff;
  padding: 9px 12px; border-radius: 9px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  display: inline-flex; align-items: center; gap: 8px;
}
.code-details summary::-webkit-details-marker { display: none; }
.code-details summary::before { content: "\25B8"; color: #6ad7ff; transition: transform .15s ease; }
.code-details[open] summary::before { transform: rotate(90deg); }
.code-details summary small { color: #9aa6c0; font-weight: 400; }
.code-details[open] .code-list { margin-top: 10px; }

/* ============================================================
   v11 — glass fix: DARK-translucent (HQ v8 white was washed-out
   over the bright rainbow). Dims bg -> white text pops, bg still
   shows (saturated) = real reference quality. Keep bright borders.
   ============================================================ */
.window, .menubar, .player, .player-list-panel, .finder, .gallery, .airdrop,
.boot-panel, .login-card, .drawer-panel, .pf-hero, .game-launch {
  background: rgba(11,14,23,.4) !important;
}
.ad-card { background: rgba(13,16,26,.5) !important; }
.ad-card:hover { background: rgba(20,24,38,.6) !important; }
.finder-bar, .gallery-head, .ad-head-bar { background: rgba(255,255,255,.05) !important; }
.ad-btn, .finder-back, .tf-btn, .player-btn { background: rgba(255,255,255,.09) !important; }
.ad-desc, .finder-desc { color: #c2c8d6 !important; }
.ad-title small { color: #8d94a6 !important; }

/* ============================================================
   v12 — BUBBBLY GLASS (ref: bubbbly.com github-glass-badge)
   Iridescent butterfly wallpaper + LIGHT-WHITE glass that POPS.
   Overrides v11 dark. Desktop ICONS untouched (per request).
   ============================================================ */
body {
  background:
    linear-gradient(rgba(6,8,14,.32), rgba(6,8,14,.46)),
    url("assets/wallpaper-glass.jpg?v=3") center center / cover no-repeat fixed !important;
  background-blend-mode: normal, normal !important;
}

/* --- primary surfaces: light-white liquid glass --- */
.window, .menubar, .player, .player-list-panel, .finder, .gallery, .airdrop,
.boot-panel, .login-card, .drawer-panel, .pf-hero, .game-launch {
  background: rgba(255,255,255,.10) !important;
  border: 1px solid rgba(255,255,255,.30) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.38) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.35) !important;
  backdrop-filter: blur(22px) saturate(1.35) !important;
  color: #fff !important;
}
.window, .finder, .gallery, .airdrop, .drawer-panel, .login-card, .game-launch {
  border-radius: 24px !important;
}
/* legible white text over busy wallpaper */
.win-body, .finder, .airdrop, .gallery, .drawer-panel, .pf-hero, .game-launch,
.boot-panel, .player, .player-list-panel {
  text-shadow: 0 1px 2px rgba(0,0,0,.32);
}

/* --- sub-surfaces / bars --- */
.finder-bar, .gallery-head, .ad-head-bar, .win-titlebar, .player-titlebar,
.drawer-head, .pll-head, .menubar {
  background: rgba(255,255,255,.06) !important;
}

/* --- cards (ref .stat/.panel-box: rgba(255,255,255,.07) + border .45) --- */
.ad-card, .pf-card {
  background: rgba(255,255,255,.07) !important;
  border: 1px solid rgba(255,255,255,.40) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.30), 0 12px 30px -16px rgba(0,0,0,.4) !important;
  border-radius: 16px !important;
}
.ad-card:hover, .pf-card:hover {
  background: rgba(255,255,255,.14) !important;
  border-color: rgba(255,255,255,.55) !important;
}
.pf-meta div, .pf-meta dt, .code-list code {
  background: rgba(255,255,255,.07) !important;
  border: 1px solid rgba(255,255,255,.30) !important;
}

/* --- buttons / inputs: glass pills (ref .glass-btn) --- */
.ad-btn, .finder-back, .tf-btn, .player-btn, .login-btn, .pll-close,
.icon-button, .menu-item, .player-min, .login-hint {
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.42) !important;
  color: #fff !important;
}
.ad-btn:hover, .finder-back:hover, .tf-btn:hover, .player-btn:hover,
.login-btn:hover, .pll-close:hover, .icon-button:hover, .menu-item:hover,
.player-min:hover { background: rgba(255,255,255,.18) !important; }
.tf-btn.active, .player-btn.play {
  background: #fff !important; color: #12233b !important;
  border-color: #fff !important; text-shadow: none !important;
}

/* --- text colors (white scale, ref opacity .92/.85) --- */
.ad-desc, .finder-desc, .pf-desc, .win-body p, .drawer-body p, .boot-log,
.pll-body, .player-art-label small {
  color: rgba(255,255,255,.86) !important;
}
.ad-title small, .muted, .pf-meta dt, .login-foot, .ticker, .clock,
.code-details summary small { color: rgba(255,255,255,.70) !important; }

/* --- liquid input field (search etc.) --- */
input[type="search"], input[type="text"], .login-pass {
  background: rgba(255,255,255,.07) !important;
  border: 1px solid rgba(255,255,255,.45) !important;
  color: #fff !important; border-radius: 999px !important;
}

/* ============================================================
   v13 — kill the wordmark BAR, fix menu items, and ELIMINATE all
   remaining matrix-GREEN (win-terminal skin, market, player, CTAs)
   -> unify everything to the bubbbly transparent-glass palette.
   Keeps semantic up/down price colors only.
   ============================================================ */
/* 1) the full-width gradient "mage OS" bar -> gone */
.wordmark { display: none !important; }

/* 2) menubar items = plain glass text, no boxed border */
.menu-item {
  background: transparent !important; border: 0 !important;
  box-shadow: none !important; color: rgba(255,255,255,.9) !important;
  border-radius: 8px !important;
}
.menu-item:hover, .menu-item:focus-visible {
  background: rgba(255,255,255,.14) !important; color: #fff !important;
}
.menubar strong { color: #fff !important; }

/* 3) win-terminal green skin -> neutral glass */
.win-terminal, .win-terminal .win-body { background: transparent !important; }
.win-terminal .win-body h2 { color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,.3) !important; }
.win-terminal .win-body h3 { color: #cfe9ff !important; text-shadow: none !important; }
.win-terminal .win-body code {
  background: rgba(255,255,255,.10) !important; color: #eaf2ff !important;
  border: 1px solid rgba(255,255,255,.18) !important;
}
.win-terminal .win-body ::selection { background: rgba(140,190,255,.35) !important; color: #fff !important; }

/* 4) Arbital / link CTA cards -> glass */
.win-terminal .link-card, .link-card {
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.34) !important;
}
.win-terminal .link-card:hover, .link-card:hover {
  background: rgba(255,255,255,.16) !important; border-color: rgba(255,255,255,.55) !important;
}
.win-terminal .link-card b, .link-card b { color: #fff !important; }
.win-terminal .link-card span, .win-terminal .link-card small,
.link-card span, .link-card small { color: rgba(255,255,255,.74) !important; }

/* 5) Market window -> glass (price neutral white; keep up/down semantics) */
.win-terminal .market-chart-wrap, .market-chart-wrap {
  background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.22) !important;
}
.win-terminal .market-list, .market-list { background: transparent !important; }
.win-terminal .token-table th, .win-terminal .token-table td {
  color: #eaf2ff !important; border-color: rgba(255,255,255,.14) !important;
}
.market-price, .market-chart-head .num { color: #fff !important; }
.market-change.up { color: #4ee6a0 !important; }
.market-change.down { color: #ff7a8a !important; }
.market-row.sel { background: rgba(255,255,255,.12) !important; }
.market-chart-foot { color: rgba(255,255,255,.74) !important; }
.market-chart-foot::before { color: #6ad7ff !important; }

/* 6) timeframe buttons -> glass */
.tf-btn { background: rgba(255,255,255,.08) !important; border: 1px solid rgba(255,255,255,.30) !important; color: rgba(255,255,255,.85) !important; }
.tf-btn:hover { border-color: rgba(255,255,255,.55) !important; box-shadow: none !important; }
.tf-btn.active { background: #fff !important; color: #12233b !important; border-color: #fff !important; }

/* 7) player -> glass (green text/borders out) */
.player, .player-list-panel { background: rgba(255,255,255,.10) !important; border-color: rgba(255,255,255,.30) !important; }
.player-titlebar { background: rgba(255,255,255,.06) !important; color: #fff !important; border-bottom-color: rgba(255,255,255,.16) !important; }
.player-btn { background: rgba(255,255,255,.10) !important; border-color: rgba(255,255,255,.40) !important; color: #fff !important; }
.player-btn:hover { background: rgba(255,255,255,.2) !important; box-shadow: none !important; }
.pll-head { color: #fff !important; border-bottom-color: rgba(255,255,255,.16) !important; }
.pl-row.on { background: rgba(255,255,255,.16) !important; }

/* 8) airdrop card CTA buttons (green referral/tool) -> glass */
.ad-btn.go, .ad-tool .ad-btn.go {
  background: rgba(255,255,255,.12) !important; border: 1px solid rgba(255,255,255,.42) !important; color: #fff !important;
}
.ad-btn.go:hover, .ad-tool .ad-btn.go:hover { background: rgba(255,255,255,.22) !important; }
.ad-btn.yt { color: #ffd6d2 !important; }
.game-launch p { color: rgba(255,255,255,.82) !important; }

/* boot matrix-rain loading layer (behind boot ROM panel) */
.boot-screen { position: fixed; }
.boot-matrix { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .85; pointer-events: none; }
.boot-panel { position: relative; z-index: 1; }

/* chart-head live price -> neutral white (kill green/red tick color) */
#mc-last, #mc-last.up, #mc-last.down, .market-chart-head .num.up, .market-chart-head .num.down,
.market-chart-head .num { color: #fff !important; }

/* ============================================================
   v14 — make airdrop (and all card) CONTENT readable like the
   Arbital window (ref user image #16: cards were washed out).
   Stronger light-glass fill + text-shadow => white text always pops.
   ============================================================ */
.ad-card {
  background: rgba(255,255,255,.16) !important;
  border: 1px solid rgba(255,255,255,.34) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 14px 34px -18px rgba(0,0,0,.55) !important;
}
.ad-card:hover { background: rgba(255,255,255,.24) !important; border-color: rgba(255,255,255,.52) !important; }
.ad-card, .ad-card * { text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.ad-title b, .ad-card .ad-title b { color: #fff !important; }
.ad-cat { color: rgba(255,255,255,.82) !important; }
.ad-desc { color: #ffffff !important; }
.ad-count, .ad-note { color: rgba(255,255,255,.86) !important; }
.ad-btn { background: rgba(255,255,255,.18) !important; border: 1px solid rgba(255,255,255,.5) !important; color: #fff !important; }
.ad-btn.go, .ad-tool .ad-btn.go { background: rgba(255,255,255,.24) !important; }
.ad-btn.yt { color: #ffe0dc !important; }
.ad-badge { background: rgba(255,255,255,.2) !important; border: 1px solid rgba(255,255,255,.5) !important; color: #fff !important; }
.ad-logo { background: rgba(255,255,255,.92) !important; }

/* ============================================================
   v15 — convert the LAST non-glass screens. Root cause: non-terminal
   .win-body was CREAM (--paper); Finder + Photos gallery + lightbox +
   MapleStory launcher never got glass. + fix icon/player occlusion.
   ============================================================ */
/* all window bodies transparent (cream paper / green-black embed -> glass) */
.win-body { background: transparent !important; }
.win-body.embed-body { background: transparent !important; }

/* Finder (Portfolio) -> glass */
.finder, .finder-grid, .finder-detail, .finder-detail.pf-card { background: transparent !important; }
.finder-detail h3, .finder-name { color: #eef1f8 !important; }
.finder-detail p, .finder-desc, .finder-detail.pf-card p { color: rgba(255,255,255,.82) !important; }
.finder-item { background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.16) !important; }
.finder-item:hover { background: rgba(255,255,255,.13) !important; border-color: rgba(255,255,255,.34) !important; }
.finder-tag { background: rgba(255,255,255,.08) !important; color: rgba(255,255,255,.78) !important; }
.finder-open { background: rgba(255,255,255,.16) !important; border: 1px solid rgba(255,255,255,.42) !important; color: #fff !important; }
.finder-open:hover { background: rgba(255,255,255,.26) !important; }

/* Photos gallery -> glass */
.gallery, .gallery-grid { background: transparent !important; }
.gallery-card figcaption { color: rgba(255,255,255,.82) !important; }
.gallery-count { color: rgba(255,255,255,.8) !important; }
.gallery-thumb { background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.18) !important; }
.gallery-dl { background: rgba(255,255,255,.18) !important; border: 1px solid rgba(255,255,255,.45) !important; color: #fff !important; }
.gallery-dl:hover { background: rgba(255,255,255,.3) !important; }

/* Photo lightbox -> glass */
.lightbox-backdrop { background: rgba(6,8,14,.55) !important; -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2); }
.lightbox-pane { background: rgba(16,20,30,.5) !important; border: 1px solid rgba(255,255,255,.28) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 24px 60px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.3) !important; }
.lightbox-bar { background: rgba(255,255,255,.06) !important; }
.lightbox-name { color: #eef1f8 !important; }
.lightbox-dl { background: rgba(255,255,255,.18) !important; border: 1px solid rgba(255,255,255,.45) !important; color: #fff !important; }
.lightbox-dl:hover { background: rgba(255,255,255,.3) !important; }
.lightbox-close { background: rgba(255,255,255,.12) !important; border: 1px solid rgba(255,255,255,.4) !important; color: #fff !important; }
.lightbox-close:hover { background: rgba(255,90,90,.5) !important; }

/* MapleStory launch button -> glass (was green #5cff9f) */
.game-play {
  background: rgba(255,255,255,.16) !important; border: 1px solid rgba(255,255,255,.45) !important;
  color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,.5) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35) !important;
}
.game-play:hover { background: rgba(255,255,255,.28) !important; box-shadow: 0 8px 22px rgba(0,0,0,.32) !important; }

/* fix: keep the left icon column clear of the music player (no occlusion) */
.icons-left { bottom: 300px !important; }

/* guide ("How to use") app list */
.guide-list { margin: 6px 0 6px; padding-left: 18px; }
.guide-list li { margin: 5px 0; line-height: 1.5; }
.win-terminal .guide-list b { color: #ffffff !important; }

/* ============================================================
   v16 — the green band under the Market chart = the rows panel
   (.market-list) BORDER. v13 fixed its bg but not the border.
   Force white glass borders + clear remaining win-terminal greens.
   ============================================================ */
.win-terminal .market-list, .market-list,
.win-terminal .token-table, .win-terminal .token-line,
.win-terminal .token-table th, .win-terminal .token-table td,
.market-row, .market-list .market-row {
  border-color: rgba(255,255,255,.16) !important;
}
.win-terminal .token-line span, .win-terminal .token-line b,
.win-terminal .token-table th, .win-terminal .token-table td { color: #eaf2ff !important; }
.win-terminal .win-button, .win-terminal button.button, .win-terminal .button {
  background: rgba(255,255,255,.10) !important; border: 1px solid rgba(255,255,255,.4) !important; color: #fff !important;
}
.win-terminal .win-body a { color: #cfe9ff !important; border-bottom-color: rgba(160,210,255,.5) !important; }
.menubar { box-shadow: 0 1px 0 rgba(255,255,255,.12), 0 2px 6px rgba(0,0,0,.34) !important; }

/* ============================================================
   v17 — DIRECTIVE: whole site = glass + WHITE lines only.
   Strip every cyan/purple/blue/green accent, gradient, white logo
   box, and colored hover/border. Monochrome white-glass.
   ============================================================ */
/* primary CTAs: accent gradients -> solid white + dark text */
.player-btn.play, .tf-btn.active, .metric-tab.active, .filter-tab.active,
.ad-btn.go, .ad-tool .ad-btn.go, .game-play, .lightbox-dl, .gallery-dl,
.finder-open, .button.primary {
  background: #ffffff !important; background-image: none !important;
  color: #14233b !important; border: 1px solid rgba(255,255,255,.7) !important;
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.4) !important; text-shadow: none !important;
}
.player-btn.play:hover, .ad-btn.go:hover, .ad-tool .ad-btn.go:hover, .game-play:hover,
.lightbox-dl:hover, .gallery-dl:hover, .finder-open:hover { background: #eef2f8 !important; }

/* colored hovers / selections -> white glass */
.finder-item:hover { background: rgba(255,255,255,.13) !important; border-color: rgba(255,255,255,.34) !important; }
.market-row.sel, .market-row:hover { background: rgba(255,255,255,.12) !important; }
.pl-row:hover, .pl-row.on, .pl-row.sel, .pl-row.active, .pl-row[aria-current="true"], .pl-row[aria-selected="true"] {
  background: rgba(255,255,255,.16) !important; color: #fff !important;
}
.pll-head { border-bottom-color: rgba(255,255,255,.14) !important; }
.player-list-panel { border-color: rgba(255,255,255,.28) !important; }

/* player visualizer -> translucent white; art -> glass (image #25) */
.viz i { background: rgba(255,255,255,.5) !important; box-shadow: none !important; }
.player-art { background: rgba(255,255,255,.05) !important; }

/* airdrop logo WHITE BOX -> transparent glass (image #26) */
.ad-logo { background: rgba(255,255,255,.12) !important; border: 1px solid rgba(255,255,255,.2) !important; }

/* status dots -> neutral white (monochrome) */
.pf-dot, .pf-dot.is-research, .pf-dot.is-paper {
  background: rgba(255,255,255,.88) !important; color: rgba(255,255,255,.88) !important;
  box-shadow: 0 0 6px rgba(255,255,255,.5) !important;
}
.live-dot { background: #ffffff !important; box-shadow: 0 0 10px rgba(255,255,255,.7) !important; }

/* win-terminal body links -> white */
.win-terminal .win-body a { color: #ffffff !important; border-bottom-color: rgba(255,255,255,.45) !important; }

/* Portfolio detail: clean white border finish + monochrome geometric mark (image #22) */
.pf-hero { border: 1px solid rgba(255,255,255,.26) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.30) !important; }
.pf-meta > div { background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.20) !important; box-shadow: none !important; }
.pf-chip, .pf-eyebrow { color: rgba(255,255,255,.82) !important; text-shadow: none !important; }
.pf-meta dt { color: rgba(255,255,255,.62) !important; }
.pf-cube { filter: drop-shadow(0 0 8px rgba(255,255,255,.28)) !important; }
.pf-cube g { stroke: rgba(255,255,255,.92) !important; }
.pf-cube circle { fill: rgba(255,255,255,.92) !important; stroke: none !important; }

/* lighten the wallpaper back toward original brightness (was .32/.46) */
body {
  background:
    linear-gradient(rgba(6,8,14,.08), rgba(6,8,14,.16)),
    url("assets/wallpaper-glass.jpg?v=3") center center / cover no-repeat fixed !important;
}

/* ============================================================
   v18 — PERFORMANCE (fix mouse lag). The SVG displacement filter,
   continuous bg animations behind glass (force backdrop recompute
   every frame), 3D tilt + cursor spotlight repaints, and oversized
   blur were the cost. Keep ONE cheap blur on top-level surfaces only.
   ============================================================ */
/* only top-level glass surfaces get a (cheap) backdrop blur */
.window, .menubar, .player, .player-list-panel, .boot-panel, .login-card, .drawer-panel {
  -webkit-backdrop-filter: blur(11px) saturate(1.25) !important;
  backdrop-filter: blur(11px) saturate(1.25) !important;
}
/* nested surfaces: no own backdrop-filter (parent window already blurs) */
.finder, .gallery, .airdrop, .pf-hero, .pf-card, .finder-detail, .game-launch,
.ad-card, .ad-head-bar, .finder-bar, .gallery-head {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
/* stop continuous animations running behind glass (constant GPU recompute) */
.glow-orb, .fx-orbs, .fx-orbs > *, .mage-aurora, [class*="aurora"], .mage-meteors { animation: none !important; }
.fx-orbs { opacity: .5; }
/* disable 3D tilt + cursor-follow spotlight repaints (mouse-move cost) */
.tilt3d { transform: none !important; transition: none !important; }
.mage-spot::before { display: none !important; }
/* avoid repainting huge fixed wallpaper on scroll */
body { background-attachment: scroll !important; }

/* ============================================================
   v19 — HARD perf fix (188% CPU). The music viz (34 bars, infinite
   `spectrum`) + aurora/orb/shine animations were recomputing the
   backdrop-filters behind them EVERY FRAME. Kill all continuous
   animation; backdrop-filter on content .window only; always-visible
   chrome becomes opaque glass (no blur).
   ============================================================ */
/* 1) stop every continuous/decorative animation (highest specificity for viz) */
.player.playing .viz i, .viz i, .viz, .mage-aurora, [class*="aurora"],
[class*="mg-"], [class*="mfx-"], .glow-orb, .fx-orbs, .fx-orbs > *,
.pf-hero, .pf-cube, .wordmark, .mage-meteors, .shine-border, .live-dot {
  animation: none !important;
}
.market-chart-foot::before, .pf-hero::before, .pf-hero::after { animation: none !important; }

/* 2) backdrop-filter ONLY on content windows; chrome = opaque glass */
.menubar, .player, .player-list-panel, .drawer-panel, .boot-panel, .login-card,
.finder, .gallery, .airdrop, .pf-hero, .game-launch, .ad-card, .ad-head-bar {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
.window {
  -webkit-backdrop-filter: blur(8px) saturate(1.18) !important;
  backdrop-filter: blur(8px) saturate(1.18) !important;
}
.player, .player-list-panel { background: rgba(16,18,28,.85) !important; }
.menubar { background: rgba(12,14,22,.66) !important; }
.drawer-panel { background: rgba(16,18,28,.9) !important; }
.boot-panel, .login-card { background: rgba(16,18,28,.88) !important; }
.fx-orbs { opacity: .3; }

/* v19.1 — the aurora layer is `.mage-fx` (not caught by [class*="mg-"]).
   Its 3 infinite animations (drift/veil/grain) ran behind ALL glass,
   recomputing every backdrop-filter every frame = the real CPU peg. */
.mage-fx, .mage-fx::before, .mage-fx::after,
[class*="mage-fx"], [class*="mage-aurora"] { animation: none !important; }

/* v20 — restore translucent glass on the radio player (it went opaque
   black in the perf pass). SAFE now: 0 continuous animations run behind
   it, so a static backdrop-filter never recomputes = no lag. */
.player, .player-list-panel {
  background: rgba(20,24,38,.42) !important;
  border: 1px solid rgba(255,255,255,.26) !important;
  -webkit-backdrop-filter: blur(11px) saturate(1.25) !important;
  backdrop-filter: blur(11px) saturate(1.25) !important;
}
.player-art { background: rgba(255,255,255,.04) !important; }

/* ============================================================
   v21 — restore translucent GLASS on every window/panel (radio was
   the first; now menubar/drawer/boot/login/windows too). SAFE: there
   are 0 continuous animations, so these static backdrop-filters never
   recompute = no lag. + content-visibility skips off-screen card paint.
   ============================================================ */
.window, .menubar, .drawer-panel, .boot-panel, .login-card,
.player, .player-list-panel {
  -webkit-backdrop-filter: blur(11px) saturate(1.25) !important;
  backdrop-filter: blur(11px) saturate(1.25) !important;
}
.menubar     { background: rgba(16,20,32,.5) !important; }
.drawer-panel{ background: rgba(20,24,38,.46) !important; }
.boot-panel, .login-card { background: rgba(20,24,38,.5) !important; }
.window      { background: rgba(20,24,38,.4) !important; }
/* cheaper paint on long card lists (skip off-screen) */
.ad-card { content-visibility: auto; contain-intrinsic-size: auto 230px; }

/* ============================================================
   v22 — Portfolio detail (image #28): remove the geometric shape,
   flatten the blotchy hero background to clean glass, Open button
   -> transparent glass (was solid white).
   ============================================================ */
.pf-cube { display: none !important; }
.pf-hero {
  background: rgba(255,255,255,.06) !important; background-image: none !important;
  border: 1px solid rgba(255,255,255,.20) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.22) !important;
}
.pf-hero::before, .pf-hero::after { content: none !important; display: none !important; background: none !important; }
.finder-open {
  background: rgba(255,255,255,.12) !important; background-image: none !important;
  color: #ffffff !important; border: 1px solid rgba(255,255,255,.4) !important;
  box-shadow: none !important; text-shadow: 0 1px 2px rgba(0,0,0,.4) !important;
}
.finder-open:hover { background: rgba(255,255,255,.22) !important; }

/* image #30 — photo download arrows -> transparent glass (were solid) */
.gallery-dl, .lightbox-dl {
  background: rgba(255,255,255,.14) !important; background-image: none !important;
  color: #ffffff !important; border: 1px solid rgba(255,255,255,.4) !important; box-shadow: none !important;
}
.gallery-dl:hover, .lightbox-dl:hover { background: rgba(255,255,255,.26) !important; }

/* ============================================================
   v23 — Portfolio detail (image #31): the hero box is empty now that
   the shape is gone (its info — category, #id/hash — already lives in
   the breadcrumb + BLOCK tile). Remove it. Tidy meta tiles/labels.
   ============================================================ */
.pf-hero { display: none !important; }
.pf-card h3, .finder-detail h3 { margin: 0 0 4px !important; }
.pf-meta { margin-top: 2px !important; }
.pf-meta > div {
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 12px !important; padding: 11px 14px !important;
  box-shadow: none !important;
}
.pf-meta dt {
  background: transparent !important; border: 0 !important; padding: 0 0 3px !important;
  box-shadow: none !important;
}
.pf-meta dd { background: transparent !important; border: 0 !important; }

/* ============================================================
   v24 — DIRECTIVE (image #32): EVERY button = transparent glass +
   white font, system-wide. Overrides the solid-white CTAs (Trade /
   Play / active tabs / Open / Launch / Download). Menubar text items
   excluded (they stay plain text per earlier request).
   ============================================================ */
.ad-btn, .ad-btn.go, .ad-tool .ad-btn.go, .ad-btn.yt,
.finder-open, .finder-back, .tf-btn,
.player-btn, .player-btn.play, .pll-close, .player-min,
.game-play, .gallery-dl, .lightbox-dl, .lightbox-close,
.metric-tab, .filter-tab, .icon-button, .code-details summary, .link-card,
.button, .button.primary, .card-button {
  background: rgba(255,255,255,.12) !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.40) !important;
  box-shadow: none !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.4) !important;
}
.ad-btn:hover, .ad-btn.go:hover, .ad-tool .ad-btn.go:hover, .finder-open:hover,
.finder-back:hover, .tf-btn:hover, .player-btn:hover, .game-play:hover,
.gallery-dl:hover, .lightbox-dl:hover, .metric-tab:hover, .filter-tab:hover,
.button:hover, .button.primary:hover, .card-button:hover, .link-card:hover,
.icon-button:hover, .code-details summary:hover {
  background: rgba(255,255,255,.22) !important;
}
/* active tab/segment: slightly more filled to read as "selected", still glass+white */
.tf-btn.active, .metric-tab.active, .filter-tab.active {
  background: rgba(255,255,255,.26) !important; color: #ffffff !important;
  border-color: rgba(255,255,255,.62) !important; background-image: none !important;
}

/* portfolio detail: YouTube guide thumbnail (shown when item.href is a YT video) */
.pf-thumb {
  display: block; position: relative; margin: 2px 0 6px; border-radius: 14px; overflow: hidden;
  aspect-ratio: 16 / 9; border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 16px 36px -18px rgba(0,0,0,.6); background: rgba(255,255,255,.05);
}
.pf-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-thumb-play {
  position: absolute; inset: 0; margin: auto; width: 58px; height: 58px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(0,0,0,.5); border: 2px solid rgba(255,255,255,.88); color: #fff;
  font-size: 20px; padding-left: 4px; transition: transform .15s ease, background .15s ease;
}
.pf-thumb:hover .pf-thumb-play { transform: scale(1.08); background: rgba(0,0,0,.66); }

/* v25 — re-enable the music VISUALIZER animation (user: sound-wave not moving).
   SAFE: .viz bars are CHILDREN of the player, so animating them repaints only
   the tiny bars — it does NOT change the player's backdrop, so the backdrop-
   filter is not recomputed (unlike the full-screen aurora that caused lag). */
.player.playing .viz i {
  animation: spectrum var(--dur, 1.1s) cubic-bezier(.45,.05,.45,.95) infinite alternate !important;
}

/* ============================================================
   PERF item 2 — only the FOCUSED (top) window pays for the frosted
   backdrop-filter; background windows drop it (slightly more opaque
   bg compensates). Big GPU win when several windows are open / dragging.
   ============================================================ */
.window:not(.win-focused) {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background: rgba(18,22,34,.64) !important;
}

/* cyberpunk custom video controls (timeline maps [13.5s, end] -> 0–100%) */
.video-wrap { position: relative; display: flex; flex-direction: column; }
.video-wrap .video-el { width: 100%; display: block; }
.vid-ctrl { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(10,12,20,.55); }
.vid-play { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); color: #fff; min-width: 34px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 12px; }
.vid-play:hover { background: rgba(255,255,255,.24); }
.vid-bar { position: relative; flex: 1; height: 6px; background: rgba(255,255,255,.18); border-radius: 999px; cursor: pointer; }
.vid-prog { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255,255,255,.88); border-radius: 999px; pointer-events: none; }
.vid-knob { position: absolute; top: 50%; left: 0; transform: translate(-50%,-50%); width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); pointer-events: none; }
.vid-time { font: 600 11px/1 "IBM Plex Mono", monospace; color: rgba(255,255,255,.82); min-width: 92px; text-align: right; }

/* clickable invite codes (RISEx etc.) inside airdrop card collapsible */
.code-list a { text-decoration: none; display: inline-block; }
.code-list a code { cursor: pointer; }
.code-list a:hover code { background: rgba(255,255,255,.22) !important; border-color: rgba(255,255,255,.55) !important; }

/* Edgerunners / YouTube embed window */
.video-wrap .yt-embed { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

/* airdrop farm filter + search toolbar (referral-hub discoverability) */
.ad-toolbar { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding: 0 0 12px; }
.ad-search { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: #fff; padding: 7px 14px; font: 600 12px/1 "IBM Plex Mono", monospace; min-width: 170px; }
.ad-search::placeholder { color: rgba(255,255,255,.55); }
.ad-search:focus { outline: none; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.12); }
.ad-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.ad-filter { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.28); color: rgba(255,255,255,.8); border-radius: 999px; padding: 5px 11px; font: 600 11px/1 "IBM Plex Mono", monospace; cursor: pointer; white-space: nowrap; }
.ad-filter:hover { background: rgba(255,255,255,.16); color: #fff; }
.ad-filter.active { background: rgba(255,255,255,.26); color: #fff; border-color: rgba(255,255,255,.6); }

/* ---- MOBILE: keep BGM controllable — compact bottom control bar ---------
   was: .player { display:none } at <=820px, so the user couldn't pause music.
   Now: collapse the art/viz (iframe stays RENDERED so audio keeps playing),
   show a slim play/prev/next bar pinned to the bottom. */
@media (max-width: 820px) {
  .player {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    position: fixed;
    left: 8px; right: 8px; bottom: 8px;
    width: auto; min-width: 0; max-width: none;
    padding: 6px 10px;
    border-radius: 14px;
    z-index: 70;
  }
  .player-titlebar { display: none; }
  /* keep the YouTube iframe in the DOM (audio keeps playing) but collapse it */
  .player-art {
    width: 1px; height: 1px; min-height: 0;
    flex: 0 0 auto; overflow: hidden; opacity: 0; pointer-events: none;
  }
  .player-controls {
    flex: 1 1 auto; display: flex; justify-content: space-evenly;
    align-items: center; gap: 8px; margin: 0; padding: 0;
  }
  .player-btn { padding: 8px 12px; font-size: 13px; }
  .player-btn.play { min-width: 66px; }
  .player-list-panel { display: none !important; }
  /* leave room above the bar so window content isn't hidden behind it */
  .win-body { max-height: calc(100vh - 150px) !important; }
}

/* ---- About > Start here: 3-level learning path (referral-hub onboarding) -- */
.startpath { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 4px; }
.path-step { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(255,255,255,.05); }
.path-badge { flex: 0 0 26px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 999px; border: 1px solid rgba(255,255,255,.42); font: 700 13px/1 "IBM Plex Mono", monospace; color: #fff; }
.path-body { min-width: 0; }
.path-body b { display: block; font-size: 13.5px; margin-bottom: 3px; color: #fff; }
.path-body p { margin: 0; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.84); }
.path-link { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.32); border-radius: 6px; color: #fff; font: 600 12px/1.3 "IBM Plex Mono", monospace; padding: 1px 6px; cursor: pointer; }
.path-link:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.55); }
.path-risk { margin: 10px 0 2px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; background: rgba(255,255,255,.04); font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.9); }
