/*
 * XChat Museum
 * Visual concept: "Ночной архив XChat"
 *
 * Ownership:
 *   museum-popup.css     — museum shell, home, users, VIP, pagination
 *   museum-meetings.css  — meeting galleries and fullscreen viewer
 *
 * No layout or visual rules are injected by JavaScript.
 */

.xmuseum-overlay {
  --xm-bg: #05091a;
  --xm-bg-deep: #020513;
  --xm-panel: rgba(13, 21, 48, .86);
  --xm-panel-soft: rgba(19, 29, 61, .66);
  --xm-card: rgba(255, 255, 255, .055);
  --xm-card-hover: rgba(255, 222, 126, .09);

  --xm-line: rgba(198, 211, 255, .13);
  --xm-line-strong: rgba(255, 221, 118, .29);

  --xm-gold: #f6d979;
  --xm-gold-soft: #dcb958;
  --xm-gold-pale: #fff0b3;

  --xm-blue: #8fb8ff;
  --xm-text: #eef3ff;
  --xm-muted: #9ba9c9;

  position: fixed;
  inset: 0;
  z-index: 100000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  color: var(--xm-text);

  background:
    radial-gradient(
      circle at 18% 10%,
      rgba(44, 77, 157, .27),
      transparent 31%
    ),
    radial-gradient(
      circle at 84% 82%,
      rgba(119, 82, 29, .16),
      transparent 34%
    ),
    rgba(1, 3, 12, .84);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  animation: xmuseum-overlay-in 180ms ease-out;
}


@keyframes xmuseum-overlay-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


.xmuseum-window {
  position: relative;
  isolation: isolate;

  width: min(1060px, 96vw);
  height: min(820px, 92vh);
  max-height: 92vh;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border: 1px solid rgba(241, 218, 142, .24);
  border-radius: 22px;

  color: var(--xm-text);

  background:
    linear-gradient(
      180deg,
      rgba(18, 29, 63, .96) 0,
      rgba(8, 14, 35, .98) 150px,
      rgba(5, 9, 25, .99) 100%
    );

  box-shadow:
    0 32px 100px rgba(0, 0, 0, .74),
    0 0 0 1px rgba(110, 143, 223, .08) inset,
    0 1px rgba(255, 255, 255, .08) inset;

  animation: xmuseum-window-in 220ms cubic-bezier(.2, .8, .2, 1);
}


.xmuseum-window::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 226, 131, .035) 50%,
      transparent
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, .012) 0,
      rgba(255, 255, 255, .012) 1px,
      transparent 1px,
      transparent 4px
    );
}


.xmuseum-window::after {
  content: "";
  position: absolute;
  z-index: 20;
  pointer-events: none;

  inset: 0;

  border-radius: inherit;

  box-shadow:
    0 0 45px rgba(92, 132, 228, .06) inset,
    0 0 100px rgba(0, 0, 0, .17) inset;
}


@keyframes xmuseum-window-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* ──────────────────────────────────────────────────────────
   HEADER
   ────────────────────────────────────────────────────────── */

.xmuseum-window > header {
  position: relative;
  z-index: 4;

  min-height: 68px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 15px 20px 14px 24px;

  border-bottom: 1px solid rgba(230, 215, 162, .13);

  background:
    linear-gradient(
      90deg,
      rgba(27, 44, 89, .66),
      rgba(13, 22, 50, .78) 55%,
      rgba(45, 33, 18, .28)
    );

  box-shadow:
    0 10px 30px rgba(0, 0, 0, .16);
}


.xmuseum-window > header::before {
  content: "XCHAT ARCHIVE";
  display: inline-flex;
  align-items: center;

  margin-right: auto;

  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;

  color: rgba(246, 217, 121, .52);
}


.xmuseum-window > header b {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 24px;
  font-weight: 700;
  letter-spacing: .025em;

  color: var(--xm-gold-pale);

  text-shadow:
    0 0 22px rgba(246, 217, 121, .13);
}


.xmuseum-window > header button {
  position: relative;
  z-index: 2;

  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  flex: 0 0 auto;

  margin-left: auto;
  padding: 0;

  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 12px;

  background: rgba(255, 255, 255, .045);
  color: rgba(238, 243, 255, .78);

  font: inherit;
  font-size: 27px;
  line-height: 1;

  cursor: pointer;

  transition:
    color 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}


.xmuseum-window > header button:hover {
  color: #fff;
  border-color: rgba(246, 217, 121, .36);
  background: rgba(246, 217, 121, .09);
  transform: rotate(3deg);
}


/* ──────────────────────────────────────────────────────────
   NAVIGATION
   ────────────────────────────────────────────────────────── */

.xmuseum-window nav {
  position: relative;
  z-index: 3;

  display: flex;
  align-items: center;

  gap: 5px;

  flex-wrap: nowrap;

  padding: 10px 14px;

  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;

  border-bottom: 1px solid rgba(255, 255, 255, .075);

  background: rgba(3, 7, 21, .55);
}


.xmuseum-window nav::-webkit-scrollbar {
  height: 4px;
}


.xmuseum-window nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(246, 217, 121, .24);
}


.xmuseum-window nav button,
.xmuseum-window nav a {
  appearance: none;

  flex: 0 0 auto;

  min-height: 36px;

  padding: 8px 13px;

  border: 1px solid transparent;
  border-radius: 10px;

  background: transparent;

  color: #aebbd6;

  font: inherit;
  font-size: 13px;
  font-weight: 650;

  text-decoration: none;
  white-space: nowrap;

  cursor: pointer;

  transition:
    background 140ms ease,
    color 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}


.xmuseum-window nav button:hover,
.xmuseum-window nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .055);
}


.xmuseum-window nav button.active {
  border-color: rgba(246, 217, 121, .24);

  color: var(--xm-gold-pale);

  background:
    linear-gradient(
      180deg,
      rgba(246, 217, 121, .16),
      rgba(246, 217, 121, .075)
    );

  box-shadow:
    0 1px rgba(255, 255, 255, .06) inset,
    0 5px 15px rgba(0, 0, 0, .12);
}


/* ──────────────────────────────────────────────────────────
   BODY
   ────────────────────────────────────────────────────────── */

#xchatMuseumBody {
  position: relative;
  z-index: 2;

  flex: 1;
  min-height: 0;

  padding: 28px 30px 32px;

  overflow: auto;
  overscroll-behavior: contain;

  scrollbar-width: thin;
  scrollbar-color:
    rgba(246, 217, 121, .25)
    rgba(255, 255, 255, .025);
}


#xchatMuseumBody::-webkit-scrollbar {
  width: 8px;
}


#xchatMuseumBody::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .025);
}


#xchatMuseumBody::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    rgba(246, 217, 121, .24)
    padding-box;
}


/* ──────────────────────────────────────────────────────────
   HOME HERO
   ────────────────────────────────────────────────────────── */

.xmuseum-hero {
  position: relative;

  max-width: 760px;

  margin: 2px auto 28px;
  padding: 27px 28px 24px;

  text-align: center;

  border: 1px solid rgba(246, 217, 121, .14);
  border-radius: 18px;

  background:
    radial-gradient(
      circle at 50% 0,
      rgba(67, 102, 187, .19),
      transparent 57%
    ),
    rgba(255, 255, 255, .024);

  box-shadow:
    0 14px 38px rgba(0, 0, 0, .17);
}


.xmuseum-hero::before {
  content: "✦";

  display: block;

  margin-bottom: 7px;

  color: var(--xm-gold);

  font-size: 18px;

  opacity: .8;
}


.xmuseum-hero h2 {
  margin: 0 0 8px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(28px, 4vw, 39px);
  font-weight: 700;
  line-height: 1.08;

  color: #fff3c6;

  letter-spacing: -.025em;

  text-shadow:
    0 0 26px rgba(246, 217, 121, .12);
}


.xmuseum-hero p {
  max-width: 610px;

  margin: 0 auto;

  color: var(--xm-muted);

  font-size: 14px;
  line-height: 1.6;
}


/* ──────────────────────────────────────────────────────────
   STATISTICS
   ────────────────────────────────────────────────────────── */

.xmuseum-stats {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 13px;

  margin: 0 0 18px;
}


.xmuseum-stats > div {
  position: relative;
  overflow: hidden;

  min-height: 106px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 18px 21px;

  border: 1px solid var(--xm-line);
  border-radius: 15px;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, .065),
      rgba(255, 255, 255, .022)
    );

  box-shadow:
    0 9px 26px rgba(0, 0, 0, .12);

  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}


.xmuseum-stats > div::after {
  content: "";

  position: absolute;
  right: -22px;
  bottom: -34px;

  width: 100px;
  height: 100px;

  border: 1px solid rgba(246, 217, 121, .09);
  border-radius: 50%;
}


.xmuseum-stats > div:hover {
  transform: translateY(-2px);

  border-color: rgba(246, 217, 121, .23);

  background:
    linear-gradient(
      135deg,
      rgba(246, 217, 121, .075),
      rgba(255, 255, 255, .025)
    );
}


.xmuseum-stats b {
  position: relative;
  z-index: 1;

  display: block;

  margin-bottom: 2px;

  color: var(--xm-gold);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 34px;
  line-height: 1;
  font-weight: 700;

  font-variant-numeric: tabular-nums;
}


.xmuseum-stats span {
  position: relative;
  z-index: 1;

  color: var(--xm-muted);

  font-size: 12px;
  line-height: 1.35;

  letter-spacing: .035em;
}


/* ──────────────────────────────────────────────────────────
   DAILY / SEARCH
   ────────────────────────────────────────────────────────── */

.xmuseum-daily,
.xmuseum-search {
  margin-top: 14px;
  padding: 19px;

  border: 1px solid var(--xm-line);
  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, .052),
      rgba(255, 255, 255, .022)
    );

  box-shadow:
    0 10px 28px rgba(0, 0, 0, .1);
}


.xmuseum-daily h3,
.xmuseum-search h3 {
  margin: 0 0 14px;

  color: #e7edff;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 18px;
  font-weight: 700;
}


.xmuseum-daily-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 11px;
}


.xmuseum-daily-grid > div {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 7px;

  padding: 15px;

  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 12px;

  background: rgba(2, 7, 22, .35);
}


.xmuseum-daily-grid small {
  color: #8594b8;

  font-size: 11px;
  line-height: 1.3;

  text-transform: uppercase;
  letter-spacing: .065em;
}


.xmuseum-daily-grid strong {
  color: #f5f7ff;

  font-size: 18px;
  line-height: 1.2;

  overflow-wrap: anywhere;
}


.xmuseum-daily-grid img {
  width: auto;
  max-width: 100%;
  height: 74px;

  align-self: flex-start;

  margin-top: 2px;

  object-fit: contain;
  object-position: left center;

  filter:
    drop-shadow(0 7px 12px rgba(0, 0, 0, .24));
}


.xmuseum-search form {
  display: flex;
  gap: 9px;
}


.xmuseum-search input {
  min-width: 0;
  flex: 1;

  min-height: 42px;

  padding: 10px 13px;

  border: 1px solid rgba(159, 182, 238, .18);
  border-radius: 11px;

  outline: none;

  background:
    rgba(1, 5, 18, .55);

  color: #fff;

  font: inherit;
  font-size: 14px;

  box-shadow:
    0 1px rgba(255, 255, 255, .025) inset;

  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}


.xmuseum-search input::placeholder {
  color: #657493;
}


.xmuseum-search input:focus {
  border-color: rgba(246, 217, 121, .48);

  background: rgba(4, 9, 27, .8);

  box-shadow:
    0 0 0 3px rgba(246, 217, 121, .065);
}


.xmuseum-search button,
.xmuseum-classic a {
  appearance: none;

  min-height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 9px 16px;

  border: 1px solid rgba(246, 217, 121, .28);
  border-radius: 11px;

  color: #1a1609;

  background:
    linear-gradient(
      180deg,
      #f7df8a,
      #d5ae45
    );

  box-shadow:
    0 6px 18px rgba(102, 73, 12, .18),
    0 1px rgba(255, 255, 255, .38) inset;

  font: inherit;
  font-weight: 750;

  text-decoration: none;

  cursor: pointer;

  transition:
    transform 140ms ease,
    filter 140ms ease,
    box-shadow 140ms ease;
}


.xmuseum-search button:hover,
.xmuseum-classic a:hover {
  transform: translateY(-1px);

  filter: brightness(1.05);

  box-shadow:
    0 9px 22px rgba(112, 80, 11, .24),
    0 1px rgba(255, 255, 255, .46) inset;
}


.xmuseum-search button:active,
.xmuseum-classic a:active {
  transform: translateY(0);
}


/* Search results */

.xmuseum-found {
  display: flex;
  flex-wrap: wrap;

  gap: 7px;

  margin-top: 14px;
}


.xmuseum-found b,
.xmuseum-user-grid > div {
  border: 1px solid rgba(163, 186, 237, .1);

  color: #dfe7fb;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .055),
      rgba(255, 255, 255, .028)
    );

  box-shadow:
    0 4px 12px rgba(0, 0, 0, .08);
}


.xmuseum-found b {
  padding: 7px 10px;

  border-radius: 9px;

  font-size: 12px;
  font-weight: 650;
}


.xmuseum-search-more {
  margin-top: 10px;

  color: #8695b8;

  font-size: 12px;
  line-height: 1.45;
}


/* ──────────────────────────────────────────────────────────
   CLASSIC ARCHIVE LINK
   ────────────────────────────────────────────────────────── */

.xmuseum-classic {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  margin-top: 14px;
}


.xmuseum-classic a {
  min-height: 36px;

  padding: 7px 12px;

  border-color: rgba(147, 175, 237, .2);

  color: #bbc9e7;

  background: rgba(64, 90, 151, .1);

  box-shadow: none;

  font-size: 12px;
  font-weight: 600;
}


.xmuseum-classic a:hover {
  color: #fff;

  background: rgba(90, 120, 190, .16);

  box-shadow: none;
}


/* ──────────────────────────────────────────────────────────
   USERS / OLD-TIMERS
   ────────────────────────────────────────────────────────── */

.xmuseum-list-head {
  position: relative;

  margin-bottom: 20px;
  padding: 0 0 17px;

  border-bottom: 1px solid rgba(255, 255, 255, .075);
}


.xmuseum-list-head::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -1px;

  width: 82px;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      var(--xm-gold),
      transparent
    );
}


.xmuseum-list-head h2 {
  margin: 0 0 6px;

  color: #fff1be;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 27px;
  line-height: 1.15;
}


.xmuseum-list-head p {
  margin: 0;

  color: #8f9cbb;

  font-size: 13px;
  line-height: 1.5;
}


.xmuseum-user-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fill, minmax(150px, 1fr));

  gap: 9px;
}


.xmuseum-user-grid > div {
  position: relative;

  min-width: 0;

  padding: 11px 12px 11px 16px;

  border-radius: 11px;

  overflow: hidden;

  font-size: 13px;
  line-height: 1.35;

  overflow-wrap: anywhere;

  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}


.xmuseum-user-grid > div::before {
  content: "";

  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;

  width: 2px;

  border-radius: 999px;

  background:
    linear-gradient(
      180deg,
      var(--xm-gold),
      rgba(100, 141, 232, .65)
    );

  opacity: .5;
}


.xmuseum-user-grid > div:hover {
  transform: translateY(-1px);

  border-color: rgba(246, 217, 121, .22);

  background:
    linear-gradient(
      180deg,
      rgba(246, 217, 121, .075),
      rgba(255, 255, 255, .028)
    );
}


/* ──────────────────────────────────────────────────────────
   VIP ARCHIVE
   ────────────────────────────────────────────────────────── */

.xmuseum-vip-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fill, minmax(145px, 1fr));

  gap: 12px;
}


.xmuseum-vip-grid > div {
  position: relative;

  min-width: 0;
  min-height: 142px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 10px;

  padding: 13px 11px;

  overflow: hidden;

  border: 1px solid rgba(246, 217, 121, .13);
  border-radius: 14px;

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(246, 217, 121, .09),
      transparent 55%
    ),
    rgba(255, 255, 255, .032);

  box-shadow:
    0 9px 24px rgba(0, 0, 0, .12);

  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}


.xmuseum-vip-grid > div::before {
  content: "VIP";

  position: absolute;
  top: 8px;
  right: 8px;

  padding: 2px 5px;

  border: 1px solid rgba(246, 217, 121, .18);
  border-radius: 5px;

  color: rgba(246, 217, 121, .55);

  font-size: 8px;
  font-weight: 850;
  letter-spacing: .09em;
}


.xmuseum-vip-grid > div:hover {
  transform: translateY(-3px);

  border-color: rgba(246, 217, 121, .32);

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(246, 217, 121, .15),
      transparent 58%
    ),
    rgba(255, 255, 255, .045);

  box-shadow:
    0 15px 34px rgba(0, 0, 0, .2);
}


.xmuseum-vip-grid img {
  display: block;

  width: auto;
  max-width: 100%;
  height: 78px;

  object-fit: contain;

  filter:
    drop-shadow(0 8px 12px rgba(0, 0, 0, .32));
}


.xmuseum-vip-grid span {
  max-width: 100%;

  color: #a8b5d2;

  font-size: 11px;
  line-height: 1.3;
  text-align: center;

  overflow-wrap: anywhere;
}


/* ──────────────────────────────────────────────────────────
   PAGINATION
   ────────────────────────────────────────────────────────── */

.xmuseum-pagination {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  flex-wrap: wrap;

  margin: 24px 0 8px;
}


.xmuseum-pagination > button,
.xmuseum-page-number {
  appearance: none;

  min-width: 37px;
  min-height: 37px;

  padding: 7px 10px;

  border: 1px solid rgba(166, 187, 235, .14);
  border-radius: 10px;

  background: rgba(255, 255, 255, .038);

  color: #aebad5;

  font: inherit;
  font-size: 12px;
  font-weight: 650;

  cursor: pointer;

  transition:
    border-color 130ms ease,
    background 130ms ease,
    color 130ms ease,
    transform 130ms ease;
}


.xmuseum-pagination > button:hover:not(:disabled),
.xmuseum-page-number:hover:not(:disabled) {
  transform: translateY(-1px);

  border-color: rgba(246, 217, 121, .32);

  color: var(--xm-gold-pale);

  background: rgba(246, 217, 121, .075);
}


.xmuseum-pagination button:disabled {
  opacity: .28;
  cursor: default;
}


.xmuseum-page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 5px;

  flex-wrap: wrap;
}


.xmuseum-page-number.active {
  border-color: #e7c45d;

  color: #171306;

  background:
    linear-gradient(
      180deg,
      #f6dc82,
      #d3ab42
    );

  box-shadow:
    0 5px 13px rgba(118, 82, 9, .2);

  font-weight: 800;
}


.xmuseum-page-gap {
  padding: 0 2px;

  color: #6e7d9f;
}


.xmuseum-pagination-info {
  margin: 9px 0 0;

  color: #7483a3;

  font-size: 11px;
  text-align: center;
}


.xmuseum-pagination-info b {
  color: #aebbd7;
  font-weight: 700;
}


/* ──────────────────────────────────────────────────────────
   STATES
   ────────────────────────────────────────────────────────── */

.xmuseum-note,
.xmuseum-empty {
  color: #8e9cba;

  font-size: 13px;
  line-height: 1.55;
}


.xmuseum-empty {
  padding: 35px 20px;

  text-align: center;

  border: 1px dashed rgba(166, 187, 235, .15);
  border-radius: 14px;

  background: rgba(255, 255, 255, .018);
}


.xmuseum-loading,
.xmuseum-error {
  min-height: 210px;

  display: grid;
  place-items: center;

  padding: 50px 15px;

  color: #a8b5d0;

  text-align: center;
}


.xmuseum-loading::before {
  content: "✦";

  display: inline-block;

  margin-right: 8px;

  color: var(--xm-gold);

  animation: xmuseum-pulse 1.1s ease-in-out infinite;
}


.xmuseum-error {
  color: #efb0b0;
}


@keyframes xmuseum-pulse {
  0%,
  100% {
    opacity: .3;
    transform: scale(.85);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}


/* ──────────────────────────────────────────────────────────
   ACCESSIBILITY
   ────────────────────────────────────────────────────────── */

.xmuseum-window button:focus-visible,
.xmuseum-window a:focus-visible,
.xmuseum-window input:focus-visible {
  outline: 2px solid rgba(246, 217, 121, .8);
  outline-offset: 2px;
}


/* ──────────────────────────────────────────────────────────
   MOBILE
   ────────────────────────────────────────────────────────── */

@media (max-width: 700px) {
  .xmuseum-overlay {
    align-items: stretch;

    padding: 0;

    background: #020513;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }


  .xmuseum-window {
    width: 100%;
    height: 100%;
    max-height: none;

    border: 0;
    border-radius: 0;

    box-shadow: none;
  }


  .xmuseum-window > header {
    min-height: 60px;

    padding:
      max(10px, env(safe-area-inset-top))
      12px
      9px;
  }


  .xmuseum-window > header::before {
    content: "ARCHIVE";

    font-size: 8px;
    letter-spacing: .14em;
  }


  .xmuseum-window > header b {
    font-size: 19px;
  }


  .xmuseum-window > header button {
    width: 36px;
    height: 36px;

    border-radius: 10px;
  }


  .xmuseum-window nav {
    padding: 8px 9px;

    gap: 3px;
  }


  .xmuseum-window nav button,
  .xmuseum-window nav a {
    min-height: 34px;

    padding: 7px 10px;

    border-radius: 9px;

    font-size: 12px;
  }


  #xchatMuseumBody {
    padding:
      19px
      14px
      max(25px, env(safe-area-inset-bottom));
  }


  .xmuseum-hero {
    margin-bottom: 18px;
    padding: 21px 15px 19px;

    border-radius: 15px;
  }


  .xmuseum-hero h2 {
    font-size: 29px;
  }


  .xmuseum-hero p {
    font-size: 13px;
  }


  .xmuseum-stats {
    gap: 9px;
  }


  .xmuseum-stats > div {
    min-height: 92px;

    padding: 14px;

    border-radius: 13px;
  }


  .xmuseum-stats b {
    font-size: 28px;
  }


  .xmuseum-daily,
  .xmuseum-search {
    padding: 15px;

    border-radius: 14px;
  }


  .xmuseum-search form {
    flex-direction: column;
  }


  .xmuseum-search button {
    width: 100%;
  }


  .xmuseum-daily-grid {
    grid-template-columns: 1fr;
  }


  .xmuseum-user-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 7px;
  }


  .xmuseum-user-grid > div {
    padding: 10px 9px 10px 13px;

    font-size: 12px;
  }


  .xmuseum-vip-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 9px;
  }


  .xmuseum-vip-grid > div {
    min-height: 128px;

    padding: 11px 8px;
  }


  .xmuseum-vip-grid img {
    height: 67px;
  }


  .xmuseum-list-head {
    margin-bottom: 15px;
  }


  .xmuseum-list-head h2 {
    font-size: 23px;
  }


  .xmuseum-pagination {
    gap: 5px;

    margin-top: 19px;
  }


  .xmuseum-pagination > button {
    flex: 1 1 auto;
  }


  .xmuseum-page-number {
    min-width: 34px;
    min-height: 34px;

    padding: 6px 8px;
  }
}


@media (max-width: 390px) {
  .xmuseum-window > header::before {
    display: none;
  }


  .xmuseum-stats {
    grid-template-columns: 1fr;
  }


  .xmuseum-user-grid,
  .xmuseum-vip-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  .xmuseum-page-numbers {
    width: 100%;
  }
}


@media (prefers-reduced-motion: reduce) {
  .xmuseum-overlay,
  .xmuseum-window,
  .xmuseum-window *,
  .xmuseum-window *::before,
  .xmuseum-window *::after {
    scroll-behavior: auto;
    animation: none !important;
    transition: none !important;
  }
}
