/* ============================================================
   DREAMLAB — DrynWorks
   Estilo central compartilhado por todas as páginas.

   Sumário
   01 · Fontes
   02 · Temas (tokens)
   03 · Reset e base
   04 · Relevo / bevel
   05 · Fundo e efeitos
   06 · Janela externa
   07 · Banner e letreiro
   08 · Colunas
   09 · Painel (window)
   10 · Sidebar (perfil, navegação, temas, player)
   11 · Conteúdo principal
   12 · Lightbox
   13 · Rodapé
   14 · Splash (index)
   15 · Responsivo
   16 · Sakura
   17 · 404 (not_found)
   ============================================================ */

/* ===== 01 · FONTES ===== */
@import url('https://fonts.googleapis.com/css2?family=Silkscreen&family=VT323&family=Inter:wght@400;500;600&family=Share+Tech+Mono&display=swap');

@font-face {
  font-family: "Pixelated MS Sans Serif";
  src: url("https://files.catbox.moe/1za99g.woff") format("woff");
  font-weight: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pixelated MS Sans Serif";
  src: url("https://files.catbox.moe/z7csle.woff") format("woff");
  font-weight: bold;
  font-display: swap;
}

/* ===== 02 · TEMAS ===== */
:root,
:root[data-theme="black"] {
  --background: #000000;
  --background-2: #070707;
  --surface: #0e0e0e;
  --surface-alt: #171717;
  --surface-sunken: #050505;
  --titlebar: #101010;
  --titlebar-2: #2b2b2b;
  --titlebar-text: #f0f0f0;
  --titlebar-text-dim: #a8a8a8;
  --border-light: #3d3d3d;
  --border-dark: #000000;
  --border-outer: #383838;
  --text: #d8d8d8;
  --muted: #7d7d7d;
  --link: #e6e6e6;
  --link-hover: #ffffff;
  --accent: #ffffff;
  --accent-contrast: #000000;
  --fx-stars: 0.7;
  --fx-petal: 0.35;
  --petal-a: rgba(200, 200, 200, 0.7);
  --petal-b: rgba(230, 230, 230, 0.7);
  /* fundo dos botõezinhos de janela — os ícones são SVG pretos,
     então em temas escuros precisa de uma face clara */
  --control-face: #8a8a8a;
}

:root[data-theme="dark"] {
  --background: #101216;
  --background-2: #191c22;
  --surface: #262a31;
  --surface-alt: #2f343c;
  --surface-sunken: #1a1d22;
  --titlebar: #383e48;
  --titlebar-2: #5a626e;
  --titlebar-text: #f2f4f7;
  --titlebar-text-dim: #b9bec7;
  --border-light: #4d545e;
  --border-dark: #0d0f12;
  --border-outer: #05060a;
  --text: #dfe3e9;
  --muted: #949ba6;
  --link: #86bce6;
  --link-hover: #b6d8f4;
  --accent: #86bce6;
  --accent-contrast: #10131a;
  --control-face: #8e959f;
  --fx-stars: 0.55;
  --fx-petal: 0.6;
  --petal-a: rgba(214, 154, 172, 0.85);
  --petal-b: rgba(226, 172, 188, 0.85);
}

:root[data-theme="purple"] {
  --background: #16121d;
  --background-2: #221a2e;
  --surface: #ece2f6;
  --surface-alt: #f6f0fb;
  --surface-sunken: #cfbde4;
  --titlebar: #4a1a70;
  --titlebar-2: #9a5bc7;
  --titlebar-text: #ffffff;
  --titlebar-text-dim: #e3d0f4;
  --border-light: #ffffff;
  --border-dark: #9d81bb;
  --border-outer: #2a1040;
  --text: #241a34;
  --muted: #6a5580;
  --link: #6a2d9a;
  --link-hover: #45185f;
  --accent: #7a3cb0;
  --accent-contrast: #ffffff;
  --control-face: var(--surface);
  --fx-stars: 0.4;
  --fx-petal: 0.55;
  --petal-a: rgba(214, 168, 240, 0.9);
  --petal-b: rgba(232, 196, 248, 0.9);
}

:root[data-theme="blue"] {
  --background: #0c1826;
  --background-2: #142438;
  --surface: #d8e4f0;
  --surface-alt: #ecf2f9;
  --surface-sunken: #b4c6da;
  --titlebar: #0a2a6a;
  --titlebar-2: #3d7ab8;
  --titlebar-text: #ffffff;
  --titlebar-text-dim: #cadcf0;
  --border-light: #ffffff;
  --border-dark: #93a8c0;
  --border-outer: #08182f;
  --text: #10202f;
  --muted: #55697e;
  --link: #14508f;
  --link-hover: #0a3260;
  --accent: #1a5f9e;
  --accent-contrast: #ffffff;
  --control-face: var(--surface);
  --fx-stars: 0.45;
  --fx-petal: 0.45;
  --petal-a: rgba(160, 200, 240, 0.85);
  --petal-b: rgba(190, 220, 248, 0.85);
}

:root[data-theme="red"] {
  --background: #1a0d0d;
  --background-2: #2a1414;
  --surface: #eddfdf;
  --surface-alt: #f8efef;
  --surface-sunken: #d3bcbc;
  --titlebar: #6e1414;
  --titlebar-2: #b8483a;
  --titlebar-text: #ffffff;
  --titlebar-text-dim: #f0d2ce;
  --border-light: #ffffff;
  --border-dark: #b39898;
  --border-outer: #2e0f0f;
  --text: #241414;
  --muted: #74595a;
  --link: #963022;
  --link-hover: #661c12;
  --accent: #a6362a;
  --accent-contrast: #ffffff;
  --control-face: var(--surface);
  --fx-stars: 0.4;
  --fx-petal: 0.5;
  --petal-a: rgba(232, 152, 152, 0.9);
  --petal-b: rgba(242, 178, 178, 0.9);
}

:root[data-theme="green"] {
  --background: #0a1a10;
  --background-2: #12291b;
  --surface: #dcecdf;
  --surface-alt: #eef6ef;
  --surface-sunken: #bcd4c0;
  --titlebar: #14562a;
  --titlebar-2: #4d9c5e;
  --titlebar-text: #ffffff;
  --titlebar-text-dim: #cfe8d5;
  --border-light: #ffffff;
  --border-dark: #9ab5a0;
  --border-outer: #0b2e15;
  --text: #14241a;
  --muted: #5a7562;
  --link: #1d6b33;
  --link-hover: #10471f;
  --accent: #22713a;
  --accent-contrast: #ffffff;
  --control-face: var(--surface);
  --fx-stars: 0.4;
  --fx-petal: 0.5;
  --petal-a: rgba(168, 226, 180, 0.9);
  --petal-b: rgba(198, 238, 206, 0.9);
}

/* Tokens não temáticos */
:root {
  --font-ui: "Pixelated MS Sans Serif", 'Silkscreen', 'VT323', monospace;
  --font-display: 'Silkscreen', 'VT323', monospace;
  --font-term: 'VT323', 'Share Tech Mono', monospace;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Share Tech Mono', ui-monospace, monospace;
  --gap: 10px;
  --pad: 10px;
  --shadow-window: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* ===== 03 · RESET E BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border-dark) var(--background-2);
}

body {
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: 0.1px;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--accent-contrast);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--background-2); }
::-webkit-scrollbar-thumb {
  background: var(--surface);
  border: 1px solid var(--border-outer);
  box-shadow: inset 1px 1px 0 var(--border-light), inset -1px -1px 0 var(--border-dark);
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

img { max-width: 100%; }

button { font-family: var(--font-ui); cursor: pointer; }

/* Barra de carregamento do topo */
@keyframes loading-bar {
  0% { width: 0; }
  100% { width: 100%; }
}

#loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 9999;
  animation: loading-bar 1.1s ease-out forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

/* ===== 04 · RELEVO / BEVEL ===== */
.bevel-out,
.window,
.outer-window,
.win95-window {
  box-shadow:
    inset 1px 1px 0 var(--border-light),
    inset -1px -1px 0 var(--border-dark);
}

.bevel-in {
  box-shadow:
    inset 1px 1px 0 var(--border-dark),
    inset -1px -1px 0 var(--border-light);
}

/* ===== 05 · FUNDO E EFEITOS ===== */
.desktop-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--background);
  background-image:
    radial-gradient(ellipse at 50% 0%, var(--background-2) 0%, transparent 70%);
}

.desktop-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/stardown.gif');
  opacity: var(--fx-stars);
}

/* ===== 06 · JANELA EXTERNA ===== */
.outer-window {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 24px auto;
  background: var(--surface);
  border: 1px solid var(--border-outer);
  box-shadow:
    inset 1px 1px 0 var(--border-light),
    inset -1px -1px 0 var(--border-dark),
    var(--shadow-window);
}

.outer-titlebar {
  background: linear-gradient(90deg, var(--titlebar), var(--titlebar-2));
  padding: 4px 4px 4px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.outer-titlebar-title {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: bold;
  color: var(--titlebar-text);
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.outer-body { padding: 0; }

/* ===== 07 · BANNER E LETREIRO ===== */
.marquee-bar {
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--border-dark);
  border-top: 1px solid var(--border-light);
  padding: 3px 0;
  overflow: hidden;
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: marqueeScroll 22s linear infinite;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--text);
}

.marquee-content .sep {
  color: var(--accent);
  margin: 0 20px;
}

/* ===== 08 · COLUNAS ===== */
.site-columns {
  display: flex;
  align-items: stretch;
  gap: var(--gap);
  padding: var(--gap);
}

.site-sidebar {
  width: 186px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.site-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* ===== 09 · PAINEL (WINDOW) ===== */
/* backwards (e não both) para que o transform do hover não seja
   sobrescrito pelo estado final da animação de entrada */
.window {
  background: var(--surface);
  border: 1px solid var(--border-outer);
  animation: fadeInUp 0.35s ease-out backwards;
}

.window-header {
  background: linear-gradient(90deg, var(--titlebar), var(--titlebar-2));
  padding: 3px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  user-select: none;
}

.window-title {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: bold;
  color: var(--titlebar-text);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-body { padding: var(--pad); }

/* ===== 10 · SIDEBAR ===== */

/* Perfil */
.profile-card .window-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 8px;
}

.profile-avatar {
  width: 68px;
  height: 68px;
  background: var(--surface-alt);
  border: 1px solid var(--border-outer);
  box-shadow: inset 1px 1px 0 var(--border-dark), inset -1px -1px 0 var(--border-light);
  padding: 2px;
  overflow: hidden;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--text);
}

.profile-status-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.profile-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #4caf50;
  border: 1px solid var(--border-outer);
  display: inline-block;
}

.profile-feeling {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}

.imood-badge {
  border: 1px solid var(--border-outer);
  display: block;
}

/* Navegação */
.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1px;
  color: var(--text);
  background: var(--surface-alt);
  border: 1px solid transparent;
}

.nav-item:hover {
  background: var(--accent);
  color: var(--accent-contrast);
  text-decoration: none;
}

.nav-item:hover .nav-icon { color: var(--accent-contrast); }

.nav-item.active {
  background: var(--surface-sunken);
  border-color: var(--border-outer);
  box-shadow: inset 1px 1px 0 var(--border-dark), inset -1px -1px 0 var(--border-light);
}

.nav-icon {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  width: 10px;
  text-align: center;
}

.nav-item.active .nav-icon { color: var(--text); }

/* Seletor de temas */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}

.theme-swatch {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 5px;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.8px;
  color: var(--text);
  background: var(--surface-alt);
  border: 1px solid var(--border-outer);
  box-shadow: inset 1px 1px 0 var(--border-light), inset -1px -1px 0 var(--border-dark);
  text-align: left;
}

.theme-swatch:hover { background: var(--surface-sunken); }

.theme-swatch:active,
.theme-swatch.is-active {
  box-shadow: inset 1px 1px 0 var(--border-dark), inset -1px -1px 0 var(--border-light);
  background: var(--surface-sunken);
}

.theme-swatch.is-active { color: var(--accent); }

.theme-swatch .sw {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border: 1px solid var(--border-outer);
  background: linear-gradient(135deg, var(--sw-a) 0 50%, var(--sw-b) 50% 100%);
}

/* Variante flutuante (splash) */
.theme-bar {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  background: var(--surface);
  border: 1px solid var(--border-outer);
  box-shadow: inset 1px 1px 0 var(--border-light), inset -1px -1px 0 var(--border-dark);
  padding: 4px;
  display: flex;
  gap: 3px;
}

.theme-bar .theme-swatch { padding: 3px; gap: 0; }
.theme-bar .theme-swatch .label { display: none; }

/* Site info (contador / última atualização) */
.site-info-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.8px;
  color: var(--muted);
}

.site-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.site-info-value {
  color: var(--text);
}

/* CD player */
#music-player {
  background: var(--surface);
  border: 1px solid var(--border-outer);
  padding: 3px;
}

.win98-titlebar {
  background: linear-gradient(90deg, var(--titlebar), var(--titlebar-2));
  padding: 3px 2px 3px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.win98-titlebar-text {
  font-family: var(--font-ui);
  font-weight: bold;
  font-size: 10px;
  letter-spacing: 0.8px;
  color: var(--titlebar-text);
  display: flex;
  align-items: center;
  gap: 4px;
}

.win98-titlebar-text img { height: 13px; width: 13px; }

.win98-titlebar-controls,
.win95-titlebar-controls { display: flex; gap: 2px; }

.win98-titlebar-controls button {
  padding: 0;
  display: block;
  width: 15px;
  height: 13px;
  background-color: var(--control-face);
  box-shadow: inset 1px 1px 0 var(--border-light), inset -1px -1px 0 var(--border-dark);
  border: 1px solid var(--border-outer);
  border-radius: 0;
}

.win98-titlebar-controls button:active {
  box-shadow: inset 1px 1px 0 var(--border-dark), inset -1px -1px 0 var(--border-light);
}

.win98-titlebar-controls button[aria-label="Minimize"] {
  background-image: url("https://raw.githubusercontent.com/jdan/98.css/main/icon/minimize.svg");
  background-position: bottom 2px left 3px;
  background-repeat: no-repeat;
}
.win98-titlebar-controls button[aria-label="Maximize"] {
  background-image: url("https://raw.githubusercontent.com/jdan/98.css/4a2282dd9170cabf730fb5803d1153d86b2e94e3/icon/maximize.svg");
  background-position: top 1px left 2px;
  background-repeat: no-repeat;
}
.win98-titlebar-controls button[aria-label="Close"] {
  background-image: url("https://raw.githubusercontent.com/jdan/98.css/main/icon/close.svg");
  background-position: top 2px left 3px;
  background-repeat: no-repeat;
}

.win98-iframe-body { margin: 3px 0 0; padding: 0; line-height: 0; }
.win98-iframe-body iframe { display: block; border: 0; }

/* ===== 11 · CONTEÚDO PRINCIPAL ===== */

/* Cabeçalho de página — barra simples, sem duplicar o título da janela */
.page-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border-outer);
  box-shadow:
    inset 1px 1px 0 var(--border-light),
    inset -1px -1px 0 var(--border-dark);
  animation: fadeInUp 0.35s ease-out backwards;
}

.page-title {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 2.5px;
  color: var(--text);
}

/* filete gravado preenchendo o resto da linha */
.page-head::after {
  content: '';
  flex: 1;
  height: 2px;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-light);
}

/* Cards do menu principal */
.menu-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  /* acompanha a altura da coluna, com limite para não virar painel gigante */
  flex: 1;
  max-height: 420px;
}

/* ===== 09.1 · HOME (pages/home.html) ===== */
/* WELCOME ocupa as duas colunas; LATEST e STATUS dividem a linha
   de baixo, na ordem em que aparecem no HTML */
.home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.home-panel {
  display: flex;
  flex-direction: column;
}

.home-welcome {
  grid-column: 1 / -1;
}

.home-welcome-body {
  padding: 16px 14px;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.4px;
}

.home-status-body {
  padding: 16px 14px;
}

.home-latest {
  color: inherit;
}

.home-latest-thumb {
  flex: 1;
  min-height: 140px;
  background: var(--surface-sunken);
  margin: 3px;
  box-shadow: inset 1px 1px 0 var(--border-dark), inset -1px -1px 0 var(--border-light);
  overflow: hidden;
}

.home-latest-thumb img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  display: block;
}

/* ===== 10.1 · VISUALIZADOR (IFRAME CENTRAL) ===== */
/* Janela que hospeda o iframe — ocupa o espaço que sobrar na coluna,
   ao lado da shoutbox (que continua fora do iframe) */
.content-frame {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 420px;
}

.content-frame-body {
  flex: 1;
  background: var(--surface-sunken);
  margin: 3px;
  box-shadow: inset 1px 1px 0 var(--border-dark), inset -1px -1px 0 var(--border-light);
  overflow: hidden;
}

.content-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--surface);
}

/* Corpo das páginas carregadas dentro do iframe (pages/*.html) —
   substitui o padding que .site-columns/.outer-body davam no shell */
.frame-body {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding: var(--gap);
  min-height: 100vh;
  background: var(--surface-sunken);
}

.menu-option-card {
  display: flex;
  flex-direction: column;
  color: inherit;
}

/* Shoutbox — o widget agora é fluido (Shoutbox Width: 100% configurado
   no iShoutbox), então o iframe só precisa acompanhar a moldura */
.shoutbox-body {
  background: var(--surface-alt);
  margin: 3px;
  padding: 3px;
  box-shadow: inset 1px 1px 0 var(--border-dark), inset -1px -1px 0 var(--border-light);
  overflow: hidden;
}

.shoutbox-body iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}

/* Shoutbox flutuante — janela independente, fora da área de conteúdo.
   Usa .window/.win98-titlebar/.win95-btn já existentes; só a posição,
   o tamanho e o estado minimizado são específicos daqui. */
.shoutbox-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 280px;
  padding: 3px;
  z-index: 40;
}

.shoutbox-toggle {
  cursor: pointer;
}

.shoutbox-float.is-minimized .shoutbox-body {
  display: none;
}

/* ===== SHOUTBOX — VARIANTE PDA/PAGER (experimental) =====
   Tudo aqui só se aplica com a classe .shoutbox-pda no mesmo elemento
   de .shoutbox-float. Pra voltar à janela padrão, é só tirar essa
   classe do elemento em menu.html — nada abaixo afeta o modo normal. */
.shoutbox-pda-chrome {
  display: none;
}

.shoutbox-float.shoutbox-pda {
  background: var(--titlebar);
  border: 2px solid var(--border-outer);
  border-radius: 6px;
  padding: 8px 8px 10px;
}

.shoutbox-float.shoutbox-pda .shoutbox-pda-chrome {
  display: flex;
  align-items: center;
  justify-content: center;
}

.shoutbox-float.shoutbox-pda .shoutbox-pda-top {
  position: relative;
  justify-content: space-between;
  padding: 0 3px 8px;
}

/* reaproveita o mesmo pontinho verde do card de Perfil, com um leve brilho */
.shoutbox-float.shoutbox-pda .shoutbox-pda-top .status-dot {
  box-shadow: 0 0 3px #4caf50;
}

.shoutbox-float.shoutbox-pda .shoutbox-pda-speaker {
  width: 46px;
  height: 8px;
  border-radius: 3px;
  background-color: var(--surface-sunken);
  background-image: radial-gradient(circle, var(--border-outer) 1px, transparent 1.2px);
  background-size: 5px 5px;
  background-position: center;
  box-shadow: inset 1px 1px 0 var(--border-dark), inset -1px -1px 0 var(--border-light);
}

.shoutbox-float.shoutbox-pda .shoutbox-pda-screen {
  background: var(--surface-sunken);
  border: 1px solid var(--border-outer);
  border-radius: 2px;
  padding: 3px;
  box-shadow: inset 1px 1px 0 var(--border-dark), inset -1px -1px 0 var(--border-light);
}

.shoutbox-float.shoutbox-pda .shoutbox-pda-buttons {
  gap: 8px;
  padding-top: 10px;
}

.shoutbox-float.shoutbox-pda .shoutbox-pda-btn {
  width: 26px;
  height: 10px;
  background: var(--surface);
  border: 1px solid var(--border-outer);
  border-radius: 2px;
  box-shadow: inset 1px 1px 0 var(--border-light), inset -1px -1px 0 var(--border-dark);
}

.menu-option-card .option-body { flex: 1; }

.menu-option-card:hover { text-decoration: none; }

.menu-option-card:hover .window-header {
  filter: brightness(1.15);
}

.arrow-indicator {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--titlebar-text-dim);
}

.menu-option-card:hover .arrow-indicator { color: var(--titlebar-text); }

.option-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--surface-alt);
  margin: 3px;
  box-shadow: inset 1px 1px 0 var(--border-dark), inset -1px -1px 0 var(--border-light);
}

.option-icon {
  width: 44px;
  height: 38px;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-outer);
  box-shadow: inset 1px 1px 0 var(--border-light), inset -1px -1px 0 var(--border-dark);
}

/* Ícone GALLERY — moldura com "montanha" em CSS */
.option-icon.icon-gallery::before {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  height: 15px;
  background: var(--accent);
  clip-path: polygon(0 100%, 30% 25%, 52% 100%, 68% 55%, 100% 100%);
}
.option-icon.icon-gallery::after {
  content: '';
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

/* Ícone LINKS — dois elos em CSS */
.option-icon.icon-links::before,
.option-icon.icon-links::after {
  content: '';
  position: absolute;
  top: 12px;
  width: 18px;
  height: 13px;
  border: 2px solid var(--accent);
  border-radius: 7px;
}
.option-icon.icon-links::before { left: 5px; }
.option-icon.icon-links::after { right: 5px; }

.option-title {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--text);
}

.menu-option-card:hover .option-title { color: var(--accent); }

/* Galeria */
.artes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.artes-card {
  cursor: pointer;
  transition: transform 0.15s ease;
}

.artes-card:hover { transform: translateY(-2px); }

.artes-card .window-header { padding: 3px 5px; }

.artes-zoom-icon {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--titlebar-text-dim);
}

.artes-card:hover .artes-zoom-icon { color: var(--titlebar-text); }

.artes-img-container {
  position: relative;
  overflow: hidden;
  background: var(--surface-sunken);
  margin: 3px;
  box-shadow: inset 1px 1px 0 var(--border-dark), inset -1px -1px 0 var(--border-light);
  aspect-ratio: 4 / 3;
}

.artes-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.artes-card:hover .artes-img-container img { transform: scale(1.04); }

.artes-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.6) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.artes-card:hover .artes-overlay { opacity: 1; }

.artes-overlay span {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 1px;
  color: #fff;
}

.artes-card-body { padding: 6px 8px 8px; }

.artes-card-title {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.6px;
  color: var(--text);
}

/* Links */
.links-page-container {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* Grupo/categoria (My Links, Music, Other Sites, Buttons) */
.link-group-body {
  display: flex;
  flex-direction: column;
}

.link-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  color: inherit;
}

.link-row:hover {
  background: var(--surface-alt);
  text-decoration: none;
}

.link-row + .link-row {
  border-top: 1px solid var(--border-dark);
}

.link-row-text { min-width: 0; }

.link-external-icon {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--titlebar-text-dim);
  flex-shrink: 0;
}

.link-row:hover .link-external-icon { color: var(--titlebar-text); }

/* Espaço reservado para futuros botões 88×31 */
.buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 10px;
}

.button-slot {
  width: 88px;
  height: 31px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  border: 1px dashed var(--border-outer);
}

.link-card-name {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.8px;
  color: var(--text);
}

.link-card-url {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--link);
  letter-spacing: 0.3px;
}

.link-card-desc {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 2px;
}

/* ===== 12 · LIGHTBOX ===== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

.lightbox-modal.active { display: flex; }

.lightbox-dialog {
  max-width: 720px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.2s ease-out backwards;
}

.lightbox-close-btn {
  height: 16px;
  padding: 0 8px;
  line-height: 1;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.8px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-outer);
  box-shadow: inset 1px 1px 0 var(--border-light), inset -1px -1px 0 var(--border-dark);
  border-radius: 0;
  cursor: pointer;
}

.lightbox-close-btn:active {
  box-shadow: inset 1px 1px 0 var(--border-dark), inset -1px -1px 0 var(--border-light);
}

.lightbox-body {
  padding: 4px;
  overflow: auto;
}

.lightbox-img-wrapper {
  background: var(--surface-sunken);
  box-shadow: inset 1px 1px 0 var(--border-dark), inset -1px -1px 0 var(--border-light);
  padding: 4px;
  display: flex;
  justify-content: center;
}

.lightbox-img-wrapper img {
  max-width: 100%;
  max-height: 66vh;
  object-fit: contain;
  display: block;
}

.lightbox-nav {
  display: flex;
  gap: 6px;
  padding: 6px 4px 2px;
}

.lightbox-nav-btn {
  flex: 1;
  padding: 6px 10px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1px;
  color: var(--text);
  background: var(--surface-alt);
  border: 1px solid var(--border-outer);
  box-shadow: inset 1px 1px 0 var(--border-light), inset -1px -1px 0 var(--border-dark);
  border-radius: 0;
  cursor: pointer;
}

.lightbox-nav-btn:hover { color: var(--accent); }

.lightbox-nav-btn:active {
  box-shadow: inset 1px 1px 0 var(--border-dark), inset -1px -1px 0 var(--border-light);
}

/* ===== 13 · RODAPÉ ===== */
.site-footer {
  border-top: 1px solid var(--border-dark);
  background: var(--surface-alt);
  padding: 8px 12px;
  text-align: center;
}

.footer-text {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 1.4px;
  color: var(--muted);
}

/* ===== 14 · SPLASH (index) ===== */
.splash-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.splash-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
}

.floating-logo {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 0 auto 28px;
  animation: logo-float 4.5s ease-in-out infinite;
}

.page-logo {
  margin: 3px auto 3px;
}

.page-logo + .outer-window {
  margin-top: 0;
}

.page-logo .logo-dream {
  width: 360px;
}

.logo-dream,
.logo-lab {
  display: block;
  aspect-ratio: 1536 / 1024;
  background-color: var(--accent);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: background-color 0.3s ease;
}

.logo-dream {
  width: 420px;
  max-width: 78vw;
  -webkit-mask-image: url('https://file.garden/amn38WzDxwsxIhyo/ChatGPT%20Image%2029%20de%20jul.%20de%202026%2C%2008_41_22.png');
  mask-image: url('https://file.garden/amn38WzDxwsxIhyo/ChatGPT%20Image%2029%20de%20jul.%20de%202026%2C%2008_41_22.png');
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.logo-lab {
  position: absolute;
  right: -8%;
  bottom: 14%;
  width: 45%;
  -webkit-mask-image: url('https://file.garden/amn38WzDxwsxIhyo/ChatGPT%20Image%2029%20de%20jul.%20de%202026%2C%2010_35_15.png');
  mask-image: url('https://file.garden/amn38WzDxwsxIhyo/ChatGPT%20Image%2029%20de%20jul.%20de%202026%2C%2010_35_15.png');
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.splash-dual-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.win95-window {
  background: var(--surface);
  border: 1px solid var(--border-outer);
  box-shadow:
    inset 1px 1px 0 var(--border-light),
    inset -1px -1px 0 var(--border-dark),
    var(--shadow-window);
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.4s ease-out backwards;
}

.splash-terminal-window { animation-delay: 0.1s; align-self: start; margin-top: -18px; }

.win95-titlebar {
  background: linear-gradient(90deg, var(--titlebar), var(--titlebar-2));
  padding: 3px 3px 3px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.win95-titlebar-title {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.8px;
  color: var(--titlebar-text);
}

.win95-btn {
  width: 15px;
  height: 13px;
  font-family: var(--font-ui);
  font-size: 9px;
  line-height: 1;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-outer);
  box-shadow: inset 1px 1px 0 var(--border-light), inset -1px -1px 0 var(--border-dark);
  border-radius: 0;
}

.win95-btn:active {
  box-shadow: inset 1px 1px 0 var(--border-dark), inset -1px -1px 0 var(--border-light);
}

.win95-body { flex: 1; padding: 3px; }

.win95-body.media-body {
  background: var(--surface-sunken);
  margin: 3px;
  padding: 3px;
  box-shadow: inset 1px 1px 0 var(--border-dark), inset -1px -1px 0 var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.moon-gif {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.win95-body.terminal-body {
  background: var(--surface-sunken);
  margin: 3px;
  padding: 10px;
  box-shadow: inset 1px 1px 0 var(--border-dark), inset -1px -1px 0 var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.crt-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.06) 0 1px,
    transparent 1px 3px
  );
}

.terminal-content {
  font-family: var(--font-term);
  font-size: 15px;
  line-height: 1.35;
  color: var(--text);
}

.terminal-line { white-space: pre-wrap; }

.terminal-line.highlight-line { color: var(--accent); }

.terminal-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--accent);
  vertical-align: middle;
  animation: blink-cursor 1s steps(1) infinite;
}

.enter-button-wrapper {
  display: flex;
  justify-content: center;
}

.win95-enter-button {
  display: block;
  padding: 6px 22px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.5px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-outer);
  box-shadow: inset 1px 1px 0 var(--border-light), inset -1px -1px 0 var(--border-dark);
}

.win95-enter-button:hover {
  background: var(--surface-alt);
  text-decoration: none;
  color: var(--accent);
}

.win95-enter-button:active {
  box-shadow: inset 1px 1px 0 var(--border-dark), inset -1px -1px 0 var(--border-light);
}

/* ===== 14.1 · ABOUT (pages/about.html) ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.about-span-2 { grid-column: 1 / -1; }

.about-profile-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-role {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.about-tag {
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text);
  background: var(--surface-alt);
  border: 1px solid var(--border-outer);
  box-shadow: inset 1px 1px 0 var(--border-light), inset -1px -1px 0 var(--border-dark);
}

/* ===== 15 · RESPONSIVO ===== */
@media (max-width: 860px) {
  .artes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .outer-window { margin: 10px; }

  .site-columns { flex-direction: column; }

  .site-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .site-sidebar > * { flex: 1 1 220px; }

  .splash-dual-grid { grid-template-columns: 1fr; }

  .splash-media-window { display: none; }

  .theme-bar { right: 8px; bottom: 8px; }

  /* Em telas menores a shoutbox deixa de flutuar e passa a ocupar
     o fluxo normal, abaixo do conteúdo */
  .shoutbox-float {
    position: static;
    width: 100%;
    max-width: 280px;
    margin: 0 auto var(--gap);
  }
}

@media (max-width: 520px) {
  .artes-grid,
  .menu-options-grid,
  .home-grid,
  .about-grid { grid-template-columns: 1fr; }

  .home-welcome,
  .about-span-2 { grid-column: 1; }
}

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

/* ===== 16 · SAKURA ===== */
@keyframes fall {
  0% { opacity: 0.9; top: 0; }
  100% { opacity: 0.2; top: 100%; }
}
@keyframes blow-soft-left    { 0% { margin-left: 0; } 100% { margin-left: -50%; } }
@keyframes blow-medium-left  { 0% { margin-left: 0; } 100% { margin-left: -100%; } }
@keyframes blow-soft-right   { 0% { margin-left: 0; } 100% { margin-left: 50%; } }
@keyframes blow-medium-right { 0% { margin-left: 0; } 100% { margin-left: 100%; } }

@keyframes sway-0 { 0% { transform: rotate(-5deg); } 40% { transform: rotate(28deg); } 100% { transform: rotate(3deg); } }
@keyframes sway-1 { 0% { transform: rotate(10deg); } 40% { transform: rotate(43deg); } 100% { transform: rotate(15deg); } }
@keyframes sway-2 { 0% { transform: rotate(15deg); } 40% { transform: rotate(56deg); } 100% { transform: rotate(22deg); } }
@keyframes sway-3 { 0% { transform: rotate(25deg); } 40% { transform: rotate(74deg); } 100% { transform: rotate(37deg); } }
@keyframes sway-4 { 0% { transform: rotate(40deg); } 40% { transform: rotate(68deg); } 100% { transform: rotate(25deg); } }
@keyframes sway-5 { 0% { transform: rotate(50deg); } 40% { transform: rotate(78deg); } 100% { transform: rotate(40deg); } }
@keyframes sway-6 { 0% { transform: rotate(65deg); } 40% { transform: rotate(92deg); } 100% { transform: rotate(58deg); } }
@keyframes sway-7 { 0% { transform: rotate(72deg); } 40% { transform: rotate(118deg); } 100% { transform: rotate(68deg); } }
@keyframes sway-8 { 0% { transform: rotate(94deg); } 40% { transform: rotate(136deg); } 100% { transform: rotate(82deg); } }

.sakura {
  position: fixed;
  /* acima das janelas (z 1), abaixo do seletor de temas (50) e do lightbox */
  z-index: 20;
  pointer-events: none;
  background: linear-gradient(120deg, var(--petal-a), var(--petal-b));
  filter: opacity(var(--fx-petal));
}

/* ===== 17 · 404 (not_found) ===== */
.splash-container.notfound-container {
  max-width: 420px;
}

.notfound-window { width: 100%; }

.notfound-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 26px 18px;
  text-align: center;
}

.notfound-code {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

.notfound-text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3px;
  color: var(--muted);
  max-width: 320px;
}

.notfound-actions { margin-top: 4px; }
