/* Solitude - design tokens
   palette: near-black room #0b0a0a, classic silver UI chrome #d4d0c8 / #ece9d8,
   accent: Solana gradient teal #14F195 -> purple #9945FF, on the titlebar only
   type: system UI stack (Tahoma/Segoe UI) for chrome, system monospace for the CA + clock
   corner radius: 0. shadows: hard 1px bevels only, no blur.
   motion: one blinking text cursor, nothing else
*/

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

html, body {
  height: 100%;
  background: #0b0a0a;
  overflow: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Tahoma, "Segoe UI", "MS Sans Serif", Geneva, sans-serif;
  color: #1a1a1a;
  padding: 16px;
}

.stage {
  display: flex;
  align-items: flex-end;
  gap: 0;
}

.wojak {
  width: clamp(120px, 20vw, 240px);
  height: auto;
  display: block;
  margin-right: clamp(-24px, -3vw, -10px);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.window {
  width: clamp(300px, 46vw, 560px);
  background: #d4d0c8;
  border: 2px solid #808080;
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #404040;
  position: relative;
  z-index: 2;
}

.titlebar {
  height: 26px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  background: linear-gradient(90deg, #14F195, #9945FF);
}

.app-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.title {
  color: #050505;
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 0.06em;
  flex: 1;
}

.winbtns {
  display: flex;
  gap: 3px;
}

.winbtns i {
  width: 12px;
  height: 12px;
  background: #d4d0c8;
  border: 1px solid #050505;
  display: block;
}

.descbar {
  background: #ece9d8;
  border-bottom: 1px solid #808080;
  padding: 5px 8px;
}

.ca {
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(10px, 1.6vw, 12px);
  background: none;
  border: none;
  color: #3a3a3a;
  cursor: pointer;
  padding: 2px 0;
  text-align: left;
  width: 100%;
  word-break: break-all;
}

.ca:active { opacity: 0.6; }

.ca.copied::after {
  content: " \2713 copied";
  color: #147d4a;
}

.body {
  display: flex;
  height: clamp(180px, 26vh, 260px);
}

.contacts {
  width: 34%;
  background: #fbfbfb;
  border-right: 1px solid #a8a8a8;
  padding: 8px;
}

.online-count {
  font-size: 12px;
  font-weight: bold;
  color: #111;
}

.messages {
  flex: 1;
  background: #ffffff;
  padding: 10px;
}

.placeholder-line {
  width: 60%;
  height: 6px;
  background: #e5e5e5;
}

.inputbar {
  height: 26px;
  background: #ffffff;
  border-top: 1px solid #a8a8a8;
  display: flex;
  align-items: center;
  padding: 0 8px;
}

.cursor {
  width: 2px;
  height: 14px;
  background: #1a1a1a;
  animation: blink 1s step-end infinite;
}

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

.statusbar {
  height: 20px;
  background: #d4d0c8;
  border-top: 1px solid #fff;
  box-shadow: inset 0 1px 0 #808080;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 10px;
  color: #3a3a3a;
}

.clock {
  font-family: Consolas, "Courier New", monospace;
}

.x-link {
  position: fixed;
  right: 16px;
  bottom: 14px;
  display: flex;
  gap: 14px;
  font-size: 12px;
  z-index: 3;
}
/* на странице была одна ссылка на X и ни одной кнопки купить (06.09.2026) */
.x-link a {
  color: #6a6a6a;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.x-link a:hover { color: #cfcfcf; }

#boot-error {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #c0392b;
  color: #fff;
  font: 12px monospace;
  padding: 8px;
  z-index: 99999;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; opacity: 1; }
}

@media (max-width: 700px) {
  .stage {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .wojak {
    width: clamp(110px, 32vw, 160px);
    margin-right: 0;
    margin-bottom: -6px;
  }
  .window {
    width: min(92vw, 420px);
  }
  .body {
    height: clamp(150px, 24vh, 200px);
  }
}
