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

:root {
  --bg: #1a1a1f;
  --win-bg: #1e1e24;
  --win-border: #3a3a4a;
  --bar: #2a2a34;
  --bar2: #222228;
  --accent: #c8a97e;
  --accent2: #a07850;
  --text: #e8e0d0;
  --text2: #a09880;
  --text3: #6a6050;
  --radius: 10px;
  --desktop-icon-size: 58px;
  --mac-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* ── MURO: colores temáticos ──────────────────────────────
     Cambia estas variables para re-colorear todo el muro
     de una sola vez.
     ───────────────────────────────────────────────────────── */
  --wall-bg: #f5e8f0;
  --wall-dot-color: #d4a8c4;
  --wall-accent: #8b4a6b;
  --wall-accent2: #c47a9b;
  --wall-border: #d4a8c4;
  --wall-card-bg: rgba(255, 255, 255, .88);
  --wall-text: #4a2040;
  --wall-text2: #8b6080;
  --wall-font: 'Courier New', Courier, monospace;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: white;
}

body {
  font-family: var(--mac-font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

/* Todas las ventanas y controles heredan también la fuente del sistema */
button,
input,
textarea,
select {
  font-family: var(--mac-font);
  -webkit-font-smoothing: antialiased;
}

/* ── BOOT ──────────────────────────────────────────────────── */
#boot {
  position: fixed;
  inset: 0;
  background: #0a0a0e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .7s;
}

#boot h1 {
  font-size: 2rem;
  color: var(--accent);
  letter-spacing: 6px;
  margin-bottom: .5rem;
}

#boot p {
  font-size: .8rem;
  color: var(--text2);
  margin-bottom: 2rem;
}

.boot-bar {
  width: 260px;
  height: 4px;
  background: #2a2a34;
  border-radius: 2px;
  overflow: hidden;
}

.boot-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 2px;
  animation: bfill 2.2s ease forwards;
}

@keyframes bfill {
  to {
    width: 100%
  }
}

/* ── DESKTOP ───────────────────────────────────────────────── */
#desktop {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: url('img/fondo.png') no-repeat center center;
  background-size: cover;
}

#desktop::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── MENUBAR ───────────────────────────────────────────────── */
#menubar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  z-index: 999;
}

#menubar-title {
  font-size: .72rem;
  color: var(--accent);
  letter-spacing: .3px;
  font-weight: 600;
  margin-right: auto;
}

#clock {
  font-size: .68rem;
  color: var(--text2);
  letter-spacing: .3px;
  font-weight: 500;
}

/* ── DESKTOP ICONS ─────────────────────────────────────────── */
/*
  Para cambiar el tamaño de TODOS los iconos:
    → edita --desktop-icon-size en :root (arriba)

  Para cambiar UN icono específico, usa su clase modificadora:
    .dsk-icon--entries  → Notas
    .dsk-icon--search   → Buscador
    .dsk-icon--cal      → Calendario
    .dsk-icon--ipod     → iPod
    .dsk-icon--gallery  → Galería

  Ejemplo: hacer el iPod más grande
    .dsk-icon--ipod .dsk-icon-img { width: 72px !important; height: 72px !important; }

  Para cambiar la POSICIÓN de un icono:
    .dsk-icon--entries { top: 52px; left: 28px; }
*/
.dsk-icon {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  padding: 8px 6px;
  border-radius: 8px;
  width: 88px;
  min-height: 90px;
  transition: background .15s;
  user-select: none;
}

.dsk-icon:hover {
  background: rgba(200, 169, 126, .15);
}

.dsk-icon-img {
  width: var(--desktop-icon-size);
  height: var(--desktop-icon-size);
  min-width: var(--desktop-icon-size);
  min-height: var(--desktop-icon-size);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  flex-shrink: 0;
}

.dsk-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  display: block;
}

.dsk-icon-lbl {
  width: 100%;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 500;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .75);
}

/* Posiciones de cada icono */
.dsk-icon--entries {
  top: 52px;
  left: 28px;
}

.dsk-icon--search {
  top: 160px;
  left: 90px;
}

.dsk-icon--cal {
  top: 257px;
  left: 150px;
}

.dsk-icon--ipod {
  top: 270px;
  left: 22px;
}

.dsk-icon--gallery {
  top: 393px;
  left: 155px;
}

/* ── WINDOWS ───────────────────────────────────────────────── */
.win {
  position: absolute;
  display: none;
  flex-direction: column;
  background: var(--win-bg);
  border: 1px solid var(--win-border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .7);
  min-width: 260px;
  overflow: hidden;
  z-index: 100;
}

.win.open {
  display: flex;
}

/* Tamaños y posiciones iniciales de cada ventana */
#win-entries {
  width: 360px;
  height: 440px;
  top: 60px;
  left: 140px;
}

#win-reader {
  width: 400px;
  height: 460px;
  top: 80px;
  left: 220px;
}

#win-search {
  width: 320px;
  height: 380px;
  top: 55px;
  left: 520px;
}

#win-cal {
  width: 310px;
  height: 460px;
  top: 70px;
  left: 360px;
}

#win-ipod {
  width: 240px;
  height: 430px;
  top: 55px;
  left: 600px;
}

#win-wall {
  width: 380px;
  height: 480px;
  top: 62px;
  left: 440px;
}

#win-gallery {
  width: 520px;
  height: 440px;
  top: 82px;
  left: 300px;
}

.wbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  background: linear-gradient(180deg, var(--bar) 0%, var(--bar2) 100%);
  border-bottom: 1px solid var(--win-border);
  cursor: grab;
  user-select: none;
  flex-shrink: 0;
}

.wbar:active {
  cursor: grabbing;
}

.wdot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}

.wdot.r {
  background: #ff5f57;
}

.wdot.y {
  background: #ffbd2e;
}

.wdot.g {
  background: #28c840;
}

.wtitle {
  flex: 1;
  text-align: center;
  font-size: .72rem;
  color: var(--text2);
  letter-spacing: 0;
  pointer-events: none;
}

.wbody {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent2) transparent;
}

.wbody::-webkit-scrollbar {
  width: 5px;
}

.wbody::-webkit-scrollbar-thumb {
  background: var(--accent2);
  border-radius: 3px;
}

.wresize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  cursor: se-resize;
  z-index: 2;
}

.wresize::after {
  content: '⌟';
  position: absolute;
  right: 2px;
  bottom: 0;
  font-size: .7rem;
  color: var(--text3);
}

/* ── ENTRIES ───────────────────────────────────────────────── */
.month-hdr {
  font-size: .7rem;
  color: var(--accent);
  letter-spacing: 0;
  text-transform: uppercase;
  border-bottom: 1px solid var(--win-border);
  padding-bottom: 5px;
  margin: 14px 0 8px;
}

.month-hdr:first-child {
  margin-top: 0;
}

.ecard {
  padding: 9px 11px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  margin-bottom: 5px;
  transition: background .12s, border-color .12s;
}

.ecard:hover {
  background: rgba(200, 169, 126, .08);
  border-color: var(--win-border);
}

.ecard-date {
  font-size: .65rem;
  color: var(--accent2);
  margin-bottom: 2px;
}

.ecard-title {
  font-size: .88rem;
  color: var(--text);
  margin-bottom: 3px;
  letter-spacing: 0;
}

.ecard-prev {
  font-size: .75rem;
  color: var(--text2);
  font-style: italic;
  line-height: 1.4;
}

.empty-msg {
  font-size: .78rem;
  color: var(--text3);
  text-align: center;
  padding: 24px;
  font-style: italic;
}

/* ── READER ────────────────────────────────────────────────── */
#wbody-reader {
  line-height: 1.85;
  color: var(--text);
}

.r-title {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 4px;
  letter-spacing: 0;
}

.r-date {
  font-size: .7rem;
  color: var(--accent2);
  border-bottom: 1px solid var(--win-border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.r-body {
  font-size: .92rem;
  white-space: pre-wrap;
}

/* ── SEARCH ────────────────────────────────────────────────── */
.sinput {
  width: 100%;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--win-border);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--text);
  font-size: .85rem;
  outline: none;
  margin-bottom: 12px;
}

.sinput:focus {
  border-color: var(--accent2);
}

/* ── CALENDAR ──────────────────────────────────────────────── */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cal-month-lbl {
  font-size: .9rem;
  color: var(--accent);
}

.cal-arrow {
  background: none;
  border: 1px solid var(--win-border);
  color: var(--text2);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-arrow:hover {
  background: rgba(200, 169, 126, .15);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 10px;
}

.cal-dow {
  font-size: .6rem;
  color: var(--text3);
  text-align: center;
  padding: 2px;
  font-weight: 600;
  text-transform: uppercase;
}

.cal-day {
  font-size: .72rem;
  color: var(--text2);
  text-align: center;
  padding: 5px 2px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1px;
}

.cal-day:hover {
  background: rgba(200, 169, 126, .1);
}

.cal-day.today {
  border-color: var(--accent2);
  color: var(--accent);
}

.cal-day.has-entry {
  color: var(--text);
  font-weight: 700;
}

.cal-day.has-entry::after {
  content: '·';
  color: var(--accent);
  font-size: 1rem;
  line-height: 0;
  margin-top: 3px;
}

.cal-day.selected {
  background: var(--accent2);
  color: #fff;
}

.cal-day.empty-day {
  cursor: default;
  opacity: 0;
  pointer-events: none;
}

/* ── iPOD ──────────────────────────────────────────────────── */
#win-ipod .wbar {
  background: linear-gradient(180deg, #3a3a3e, #222224) !important;
}

#wbody-ipod {
  background: #000;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ipod-shell {
  width: 200px;
  margin: 12px auto;
  background: linear-gradient(170deg, #e8e8ee 0%, #c8c8d0 40%, #b0b0b8 100%);
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .8);
}

.ipod-screen {
  background: #9ab89a;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 12px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .4);
  min-height: 90px;
}

.ipod-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, .2);
  padding-bottom: 4px;
  margin-bottom: 6px;
}

.ipod-brand {
  font-size: .55rem;
  font-weight: 700;
  color: #1a3a1a;
  letter-spacing: 1px;
}

.ipod-battery {
  font-size: .55rem;
  color: #1a3a1a;
}

.ipod-now {
  text-align: center;
}

.ipod-song {
  font-size: .72rem;
  font-weight: 700;
  color: #0a2a0a;
  margin-bottom: 1px;
}

.ipod-artist {
  font-size: .6rem;
  color: #2a4a2a;
}

.ipod-progress {
  height: 3px;
  background: rgba(0, 0, 0, .2);
  border-radius: 2px;
  margin: 6px 0 2px;
}

.ipod-bar {
  height: 100%;
  background: #0a3a0a;
  border-radius: 2px;
  transition: width .4s linear;
}

.ipod-time {
  font-size: .55rem;
  color: #1a3a1a;
  display: flex;
  justify-content: space-between;
}

.ipod-menu-screen {
  font-size: .62rem;
  color: #0a2a0a;
}

.ipod-menu-item {
  padding: 3px 4px;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.ipod-menu-item.sel {
  background: #1a3a1a;
  color: #9ab89a;
}

.ipod-track {
  padding: 2px 4px;
  cursor: pointer;
  border-radius: 2px;
}

.ipod-track.playing {
  background: #1a3a1a;
  color: #9ab89a;
}

.cwheel {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 0 auto;
  background: radial-gradient(circle at 35% 35%, #e0e0e8, #b0b0b8 60%, #888890);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .5);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cwheel-center {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d8d8e0, #a8a8b0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  color: #444;
  font-weight: 700;
}

.cwheel-btn {
  position: absolute;
  font-size: .55rem;
  color: #555;
  font-weight: 700;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.cwheel-btn:hover {
  color: #222;
}

.cw-top {
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.cw-bot {
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.cw-lft {
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.cw-rgt {
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

/* ── MURO — estilo Spacehey/MySpace ────────────────────────────
   GUÍA DE PERSONALIZACIÓN:

   [A] Barra de la ventana        → #win-wall .wbar
   [B] Fondo del muro             → #wbody-wall (background + background-image)
   [C] Patrón de puntos           → edita el radial-gradient en #wbody-wall
   [D] Título "COMENTARIOS..."    → .wall-h  (color, font-size, letter-spacing)
   [E] Subtítulo                  → .wall-sub
   [F] Caja del formulario        → .wall-form (background, border)
   [G] Inputs / Textarea          → .wall-form input, .wall-form textarea
   [H] Botón publicar             → .wall-btn
   [I] Cabecera "Comentarios"     → .wall-section-hdr
   [J] Tarjeta de cada post       → .wall-note
   [K] Nombre del autor           → .wall-name
   [L] Fecha                      → .wall-date
   [M] Texto del mensaje          → .wall-text

   Para cambiar la paleta entera de una vez, edita las
   variables --wall-* en :root al principio de este archivo.
   ─────────────────────────────────────────────────────────── */

/* [A] */
#win-wall .wbar {
  background: linear-gradient(180deg, #c9a0b8 0%, #a07090 100%) !important;
  border-bottom: 1px solid #b888a8;
}

.wall-win-title {
  color: #fff !important;
}

/* [B][C] */
#wbody-wall {
  background-color: var(--wall-bg);
  background-image:
    radial-gradient(circle, var(--wall-dot-color) 1px, transparent 1px);
  background-size: 18px 18px;
  padding: 12px;
}

/* [D] */
.wall-h {
  font-family: var(--wall-font);
  font-size: .78rem;
  font-weight: 700;
  color: var(--wall-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 2px dotted var(--wall-border);
  padding-bottom: 6px;
  margin-bottom: 3px;
}

/* [E] */
.wall-sub {
  font-family: var(--wall-font);
  font-size: .65rem;
  color: var(--wall-text2);
  margin-bottom: 12px;
  font-style: italic;
}

/* [F] */
.wall-form {
  background: var(--wall-card-bg);
  border: 1px dashed var(--wall-border);
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 12px;
}

/* [G] */
.wall-form input,
.wall-form textarea {
  width: 100%;
  border: 1px solid var(--wall-border);
  border-radius: 2px;
  padding: 5px 7px;
  font-family: var(--wall-font);
  font-size: .78rem;
  margin-bottom: 6px;
  background: #fff;
  color: var(--wall-text);
  outline: none;
  resize: vertical;
}

.wall-form input:focus,
.wall-form textarea:focus {
  border-color: var(--wall-accent2);
  box-shadow: 0 0 0 2px rgba(196, 122, 155, .2);
}

.wall-form textarea {
  min-height: 60px;
}

/* [H] */
.wall-btn {
  background: linear-gradient(180deg, var(--wall-accent2) 0%, var(--wall-accent) 100%);
  color: #fff;
  border: 1px solid var(--wall-accent);
  padding: 5px 14px;
  border-radius: 3px;
  font-family: var(--wall-font);
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .5px;
  transition: filter .1s;
}

.wall-btn:hover {
  filter: brightness(1.1);
}

/* [I] */
.wall-section-hdr {
  font-family: var(--wall-font);
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--wall-accent), var(--wall-accent2));
  padding: 4px 8px;
  border-radius: 3px 3px 0 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1px;
}

/* [J] */
.wall-note {
  background: var(--wall-card-bg);
  border: 1px solid var(--wall-border);
  border-left: 3px solid var(--wall-accent2);
  border-radius: 0 4px 4px 0;
  padding: 9px 10px;
  margin-bottom: 6px;
  box-shadow: 0 1px 4px rgba(139, 74, 107, .1);
}

.wall-note-header {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.wall-note-avatar {
  font-size: 1.4rem;
  margin-right: 7px;
  flex-shrink: 0;
}

/* [K] */
.wall-name {
  font-family: var(--wall-font);
  font-weight: 700;
  color: var(--wall-accent);
  font-size: .8rem;
}

/* [L] */
.wall-date {
  font-family: var(--wall-font);
  font-size: .58rem;
  color: var(--wall-text2);
}

/* [M] */
.wall-text {
  font-family: var(--wall-font);
  font-size: .78rem;
  color: var(--wall-text);
  line-height: 1.5;
  border-top: 1px dashed var(--wall-border);
  padding-top: 5px;
  margin-top: 4px;
}

/* ── DOCK ──────────────────────────────────────────────────── */
#dock {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  padding: 8px 14px;
  z-index: 1000;
}

.dicon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: transform .15s;
  position: relative;
  color: inherit;
  text-decoration: none;
}

.dicon:hover {
  transform: translateY(-8px) scale(1.15);
}

.dicon-em {
  font-size: 1.9rem;
  line-height: 1;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5));
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ig-icon {
  position: relative;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 105%, #feda75 0 18%, #fa7e1e 34%, transparent 35%),
    radial-gradient(circle at 25% 25%, #ffffff44 0 10%, transparent 28%),
    linear-gradient(135deg, #4f5bd5 0%, #962fbf 28%, #d62976 55%, #fa7e1e 78%, #feda75 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35), inset 0 1px 1px rgba(255, 255, 255, .35);
  font-size: 0;
}

.ig-icon::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, .95);
  border-radius: 8px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.ig-icon::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border: 2px solid rgba(255, 255, 255, .95);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 9px -9px 0 -2px rgba(255, 255, 255, .95);
}

.dicon-lbl {
  font-size: .55rem;
  opacity: 0;
  transition: opacity .15s;
  position: absolute;
  bottom: -14px;
  white-space: nowrap;
  color: white;
}

.dicon:hover .dicon-lbl {
  opacity: 1;
}

/* ── GALERÍA ───────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.gallery-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--win-border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s, border-color .15s, background .15s;
}

.gallery-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent2);
  background: rgba(200, 169, 126, .08);
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: rgba(0, 0, 0, .25);
}

.gallery-meta {
  padding: 8px;
}

.gallery-title {
  color: var(--text);
  font-size: .78rem;
  margin-bottom: 3px;
  letter-spacing: 0;
}

.gallery-desc {
  color: var(--text2);
  font-size: .72rem;
  line-height: 1.35;
}

.gallery-date {
  color: var(--accent2);
  font-size: .62rem;
  margin-top: 5px;
}

.gallery-help {
  border: 1px dashed var(--win-border);
  border-radius: 10px;
  padding: 16px;
  color: var(--text2);
  font-size: .76rem;
  line-height: 1.55;
}

#gallery-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(10px);
  z-index: 99999;
}

#gallery-lightbox.open {
  display: flex;
}

#gallery-lightbox-img {
  max-width: min(88vw, 1000px);
  max-height: 76vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .8);
}

.gallery-lightbox-caption {
  max-width: min(88vw, 800px);
  text-align: center;
  color: var(--text);
}

#gallery-lightbox-title {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 4px;
}

#gallery-lightbox-desc {
  color: var(--text2);
  font-size: .9rem;
}

.gallery-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-close:hover {
  background: rgba(255, 255, 255, .16);
}