/* Win9x / XP + Straw рисовалка + русский UI */
:root {
  --face: #c0c0c0;
  --dark: #808080;
  --light: #ffffff;
  --title: #000080;
  --ink: #000000;
  --straw-red: #e02020;
  --font-pixel: "Press Start 2P", monospace;
  --font-hand: "Caveat", cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Tahoma, "MS Sans Serif", Arial, sans-serif;
  font-size: 13px;
  color: var(--ink);
  background: var(--face);
  padding-bottom: 56px;
}

.desktop-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, #87ceeb 0%, #5aa469 42%, #3d8b3d 100%);
  opacity: 0.35;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10001;
  pointer-events: none;
  opacity: 0.06;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.25) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* Возрастной оверлей */
.age-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 40, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.age-box {
  max-width: 480px;
  background: #fff;
  border: 3px solid var(--ink);
  padding: 18px 20px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35);
}

.age-title {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--straw-red);
  margin: 0 0 12px;
}

.age-text {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 0 0 10px;
}

.age-check {
  display: block;
  margin: 14px 0;
  font-weight: bold;
  font-family: var(--font-hand);
  font-size: 1.15rem;
}

.win-inset {
  border-style: solid;
  border-width: 2px;
  border-color: var(--dark) var(--light) var(--light) var(--dark);
}

/* Плавающие гифки */
.deco-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.deco-float {
  position: absolute;
  max-width: min(100px, 18vw);
  height: auto;
  opacity: 0.88;
  image-rendering: auto;
  animation: floatGif 10s ease-in-out infinite;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.2));
}

@keyframes floatGif {
  0%,
  100% {
    transform: translate(0, 0) rotate(-4deg) scale(1);
  }
  50% {
    transform: translate(10px, -12px) rotate(5deg) scale(1.05);
  }
}

.wrap {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 8px 70px;
}

/* Заголовок окна */
.win-header {
  border: 2px solid var(--ink);
  background: var(--face);
  margin-bottom: 8px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

.title-bar-active {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  font-size: 12px;
}

.title-bar-active.sm {
  background: linear-gradient(90deg, #000080, #1084d0);
}

.win-ico {
  font-size: 18px;
}

.greet {
  flex: 1;
  font-family: var(--font-pixel);
  font-size: 0.48rem;
  line-height: 1.6;
  margin: 0;
  text-shadow: 1px 1px 0 #000;
}

.title-btns {
  display: flex;
  gap: 4px;
  font-family: Arial, sans-serif;
}

.subgreet {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  margin: 0;
  padding: 8px 12px;
  color: #8b008b;
  font-weight: 700;
  animation: wob 4s ease-in-out infinite;
}

@keyframes wob {
  0%,
  100% {
    transform: rotate(-0.3deg);
  }
  50% {
    transform: rotate(0.3deg);
  }
}

.marquee-win {
  overflow: hidden;
  border-top: 1px solid #fff;
  border-bottom: 1px solid var(--dark);
  background: #fff;
}

.marquee {
  white-space: nowrap;
  animation: marq 22s linear infinite;
  font-family: var(--font-pixel);
  font-size: 0.38rem;
  padding: 6px;
  color: #800080;
}

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

/* Навигация */
.win-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
  padding: 6px;
  background: var(--face);
  border: 2px solid;
  border-color: var(--light) var(--dark) var(--dark) var(--light);
}

.win-nav button {
  font-family: Tahoma, sans-serif;
  font-size: 12px;
  padding: 6px 14px;
  background: var(--face);
  border: 2px solid;
  border-color: var(--light) var(--dark) var(--dark) var(--light);
  cursor: pointer;
}

.win-nav button[aria-current="true"] {
  border-color: var(--dark) var(--light) var(--light) var(--dark);
  background: #d4d0c8;
}

.page-block[hidden] {
  display: none !important;
}

.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 8px;
  align-items: start;
}

@media (max-width: 960px) {
  .grid-main {
    grid-template-columns: 1fr;
  }
}

.win-card {
  border: 2px solid var(--ink);
  background: var(--face);
  margin-bottom: 8px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.15);
}

.title-bar-inactive {
  background: #7f7f7f;
  color: #c0c0c0;
  padding: 3px 6px;
  font-size: 11px;
  font-weight: bold;
}

.win-body {
  padding: 10px 12px;
  border-style: solid;
  border-width: 2px;
  border-color: var(--dark) var(--light) var(--light) var(--dark);
  background: #fff;
}

.gif-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  max-height: 320px;
  overflow-y: auto;
}

.gif-gallery img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--dark);
}

.side-img {
  max-width: 100%;
  margin-top: 8px;
}

.inp-win {
  width: 100%;
  font-family: Tahoma, sans-serif;
  font-size: 12px;
  padding: 4px 6px;
  margin-bottom: 8px;
  border: 2px inset #fff;
  background: #fff;
}

textarea.inp-win {
  min-height: 64px;
  resize: vertical;
}

.cat-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
}

.cat-btn {
  background: var(--face);
  border: 2px solid;
  border-color: var(--light) var(--dark) var(--dark) var(--light);
  padding: 4px 6px 8px;
  cursor: pointer;
  max-width: 120px;
  text-align: center;
  transition: transform 0.12s;
}

.cat-btn:hover {
  transform: scale(1.05);
}

.cat-btn.active {
  border-color: var(--dark) var(--light) var(--light) var(--dark);
  background: #d4d0c8;
}

.cat-btn img {
  display: block;
  margin: 0 auto;
  max-height: 72px;
  object-fit: contain;
  animation: tilt 5s ease-in-out infinite;
}

.cat-btn:nth-child(2) img {
  animation-delay: 0.5s;
}
.cat-btn:nth-child(3) img {
  animation-delay: 1s;
}
.cat-btn:nth-child(4) img {
  animation-delay: 1.5s;
}

@keyframes tilt {
  0%,
  100% {
    transform: rotate(6deg);
  }
  50% {
    transform: rotate(-6deg);
  }
}

.cat-btn:hover img {
  animation: adP 0.7s ease infinite;
}

@keyframes adP {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.15) saturate(1.2);
  }
}

.cat-btn .lbl {
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  display: block;
  margin-top: 4px;
}

/* Straw рисовалка */
.draw-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

.straw-wrap {
  flex: 1;
  min-width: 260px;
}

.straw-window {
  border: 3px solid var(--straw-red);
  background: #fff;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

.straw-titlebar {
  background: #fff;
  border-bottom: 2px solid var(--straw-red);
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--straw-red);
  font-weight: bold;
}

.straw-dots {
  letter-spacing: 2px;
}

.straw-url {
  font-family: Tahoma, sans-serif;
}

.canvas-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: #fff5f5;
}

.straw-canvas-wrap {
  padding: 4px 8px 8px;
  background: #fff;
}

#drawCanvas {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  border: 2px inset #ccc;
  touch-action: none;
  cursor: crosshair;
  background: #fff;
}

.straw-footer {
  border-top: 2px solid var(--straw-red);
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--straw-red);
  background: #fff;
}

.straw-icons .ico-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
}

.crab-col {
  flex-shrink: 0;
}

.crab {
  max-width: 140px;
  height: auto;
  animation: crabB 3s ease-in-out infinite;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.15));
}

@keyframes crabB {
  0%,
  100% {
    transform: rotate(-4deg) translateY(0);
  }
  50% {
    transform: rotate(4deg) translateY(-6px);
  }
}

.btn-win {
  font-family: Tahoma, sans-serif;
  font-size: 12px;
  padding: 4px 14px;
  background: var(--face);
  border: 2px solid;
  border-color: var(--light) var(--dark) var(--dark) var(--light);
  cursor: pointer;
  margin: 4px 4px 4px 0;
}

.btn-win:active {
  border-color: var(--dark) var(--light) var(--light) var(--dark);
}

.btn-win.primary {
  font-weight: bold;
}

.btn-win.btn-danger {
  color: #800;
}

.hint {
  font-size: 12px;
  color: #333;
  margin: 8px 0;
}

.hr-win {
  border: none;
  border-top: 1px solid var(--dark);
  margin: 12px 0;
}

.feed-list {
  max-height: 420px;
  overflow-y: auto;
}

.feed-item {
  border: 1px dashed #666;
  padding: 8px;
  margin-bottom: 8px;
  background: #fafafa;
}

.stack-imgs img {
  max-width: 120px;
  margin: 4px 4px 0 0;
  border: 1px solid var(--dark);
}

.profile-badge {
  display: inline-block;
  background: #ffffcc;
  border: 2px solid var(--dark);
  padding: 2px 8px;
  font-weight: bold;
}

.status-msg {
  margin-top: 8px;
  padding: 8px;
  font-size: 12px;
}

.status-msg.ok {
  background: #dfd;
  border: 1px solid #080;
}

.status-msg.err {
  background: #fdd;
  border: 1px solid #c00;
}

.tiny {
  font-size: 11px;
  color: #333;
}

.about-text {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  line-height: 1.45;
}

.mod-row {
  border: 1px solid #999;
  padding: 8px;
  margin-bottom: 8px;
  background: #fff;
}

.mod-inline {
  margin-top: 6px;
}

.site-ft {
  text-align: center;
  margin-top: 16px;
  color: #333;
}

@media (max-width: 600px) {
  .greet {
    font-size: 0.4rem;
  }
}

/* Шапка: Frutiger / Y2K */
.win-header-hero {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 80, 180, 0.25), 4px 4px 0 rgba(0, 0, 0, 0.15);
}

.title-bar-hero {
  background: linear-gradient(90deg, #0066cc 0%, #00b4d8 45%, #48cae4 100%) !important;
  padding: 8px 10px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.greet-hero {
  font-family: "Fredoka", "Nunito", Tahoma, sans-serif !important;
  font-size: clamp(0.85rem, 2.8vw, 1.15rem) !important;
  letter-spacing: 0.02em;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 2px 0 rgba(0, 40, 120, 0.5),
    2px 2px 0 rgba(0, 60, 140, 0.35);
}

.subgreet-hero {
  font-family: "Pacifico", "Caveat", cursive !important;
  font-size: clamp(1.15rem, 3.5vw, 1.65rem) !important;
  color: #5b21b6 !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.95), 0 1px 0 #fff;
  padding: 10px 14px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(230, 240, 255, 0.85));
}

/* Превью YouTube */
.video-preview-wrap {
  margin: 6px 0 10px;
  padding: 8px;
  background: #f0f8ff;
  border: 2px dashed #6495ed;
  border-radius: 6px;
}

.video-thumb-preview {
  display: block;
  max-width: 320px;
  width: 100%;
  height: auto;
  margin-top: 6px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 60, 120, 0.25);
}

/* Вкладки «книжка» */
.book-card .win-body {
  background: linear-gradient(180deg, #fefefe 0%, #e8eef8 100%);
}

.book-shelf {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: flex-end;
  margin-bottom: 12px;
  padding-left: 4px;
}

.book-tab {
  position: relative;
  font-family: "Fredoka", Tahoma, sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px 10px;
  margin-right: 4px;
  margin-bottom: -2px;
  border: 2px solid #5a6a8a;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, #d8e4f8 0%, #a8c0e8 100%);
  color: #1a2744;
  cursor: pointer;
  box-shadow: 2px -2px 0 rgba(255, 255, 255, 0.5) inset;
  z-index: 1;
}

.book-tab:hover {
  filter: brightness(1.05);
}

.book-tab.active {
  background: linear-gradient(180deg, #fff 0%, #e8f0ff 55%, #d0e0f8 100%);
  z-index: 3;
  box-shadow: 0 -2px 12px rgba(0, 80, 160, 0.2);
  color: #0c4a8a;
}

.book-feed {
  min-height: 80px;
  max-height: 480px;
  overflow-y: auto;
  padding: 12px;
  border: 2px solid #5a6a8a;
  border-radius: 0 8px 8px 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.book-row {
  border: 1px solid #b8c4d8;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 10px;
  background: linear-gradient(180deg, #fafdff, #f0f4fa);
}

.book-row-thumb img {
  max-width: 200px;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #999;
  margin-bottom: 6px;
}

.book-row-title {
  font-family: "VT323", monospace;
  font-size: 1.1rem;
  color: #6b21a8;
  margin-bottom: 4px;
}

.book-row-body {
  word-break: break-word;
}

.book-note {
  font-size: 12px;
  color: #444;
  margin-top: 6px;
  font-style: italic;
}

.book-meta {
  font-size: 11px;
  color: #666;
  margin-top: 8px;
}

.book-empty {
  margin: 0;
  padding: 12px;
}

/* Рисовалка — полный экран */
.draw-fs-bar {
  margin-bottom: 8px;
}

#drawFsWrap:fullscreen {
  background: linear-gradient(180deg, #87ceeb 0%, #5a8a6a 100%);
  padding: 12px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#drawFsWrap:fullscreen .draw-row {
  flex: 1;
}

#drawFsWrap:fullscreen #drawCanvas {
  max-width: none;
  width: 100% !important;
  height: auto;
}

/* Страница «О себе» — полосы, карточки (Straw / webcore) */
.page-block.about-page {
  max-width: 900px;
  margin: 0 auto;
}

.about-striped {
  background: repeating-linear-gradient(
    90deg,
    #e9d5ff 0px,
    #e9d5ff 18px,
    #ddd6fe 18px,
    #ddd6fe 36px
  );
  border: 3px solid #7c3aed;
  border-radius: 12px;
  padding: 12px 12px 20px;
  box-shadow: 0 8px 32px rgba(91, 33, 182, 0.2);
}

.about-top-nav {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.about-nav-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #fff;
  border: 2px solid #7c3aed;
  border-radius: 6px;
  font-size: 1.1rem;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.12);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

@media (max-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-card {
  background: #fff;
  border: 2px solid #a78bfa;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 4px 4px 0 rgba(124, 58, 237, 0.15);
}

.about-name {
  font-family: "Bungee", "Fredoka", sans-serif;
  font-size: 1rem;
  color: #5b21b6;
  margin-bottom: 10px;
  text-shadow: 1px 1px 0 #fff, 2px 2px 0 #c4b5fd;
}

.about-avatar {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 8px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #a78bfa, 4px 4px 12px rgba(91, 33, 182, 0.25);
  margin-bottom: 12px;
}

.about-bio-list {
  margin: 0 0 12px;
  padding-left: 1.1rem;
  font-family: "Nunito", Tahoma, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #4c1d95;
}

.about-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-social a {
  font-family: "Fredoka", sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid;
}

.soc-tw {
  background: #f0e7ff;
  border-color: #9147ff !important;
  color: #392e5c !important;
}

.soc-tg {
  background: #e0f2fe;
  border-color: #229ed9 !important;
  color: #0c4a6e !important;
}

.about-content {
  font-family: "Nunito", Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #1e1b4b;
}

.about-content p:first-child {
  margin-top: 0;
}

.about-post {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #c4b5fd;
}

.about-post-text {
  white-space: pre-wrap;
}

.about-post-img img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 2px solid #ddd6fe;
}

.about-editor {
  margin-top: 18px;
  padding: 14px;
  background: #faf5ff;
  border: 2px dashed #7c3aed;
  border-radius: 10px;
}

.ed-title {
  font-family: "Fredoka", sans-serif;
  color: #5b21b6;
  margin: 0 0 12px;
  font-size: 1rem;
}

.inp-about {
  width: 100%;
  margin-bottom: 8px;
  padding: 8px;
  border: 2px inset #e9d5ff;
  border-radius: 6px;
  font-family: "Nunito", monospace;
  font-size: 13px;
}

.btn-about {
  font-family: "Fredoka", Tahoma, sans-serif;
  font-size: 13px;
  padding: 8px 14px;
  margin: 4px 8px 8px 0;
  border: 2px solid #7c3aed;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  color: #5b21b6;
}

.btn-about.primary {
  background: linear-gradient(180deg, #c4b5fd, #a78bfa);
  color: #1e1b4b;
  font-weight: 700;
}

.btn-about.sm {
  padding: 4px 10px;
  font-size: 11px;
  margin-left: 8px;
}

.about-blocks-list {
  margin: 10px 0;
  max-height: 200px;
  overflow-y: auto;
}

.about-block-edit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  margin-bottom: 6px;
  background: #fff;
  border: 1px solid #ddd6fe;
  border-radius: 6px;
  font-size: 12px;
}

.about-block-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Berry/webcore "о себе" (как на картинке 1) */
.berry-wrap {
  border: 3px solid #ff6bb3;
  border-radius: 14px;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 190, 235, 0.18) 0px,
    rgba(255, 190, 235, 0.18) 16px,
    rgba(255, 255, 255, 0.55) 16px,
    rgba(255, 255, 255, 0.55) 32px
  );
  box-shadow: 0 18px 40px rgba(255, 105, 180, 0.18);
  padding: 12px;
}

.berry-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 2px solid rgba(255, 105, 180, 0.6);
  background: rgba(255, 255, 255, 0.72);
  padding: 6px 10px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.berry-url {
  font-family: "VT323", monospace;
  font-size: 14px;
  color: #d51b7b;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.berry-hearts {
  color: #ff4fa1;
  font-size: 18px;
  letter-spacing: 6px;
  opacity: 0.8;
}

.berry-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 240px;
  gap: 12px;
  align-items: start;
}

@media (max-width: 920px) {
  .berry-grid {
    grid-template-columns: 1fr;
  }
}

.berry-left,
.berry-mid,
.berry-right {
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(255, 105, 180, 0.45);
  border-radius: 12px;
  padding: 10px;
}

.berry-profile {
  text-align: center;
}

.berry-avatar {
  width: 190px;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.25), 6px 10px 22px rgba(0, 0, 0, 0.08);
  margin: 6px auto 10px;
  display: block;
}

.berry-name {
  font-family: "Bungee", "Fredoka", sans-serif;
  font-size: 20px;
  color: #ad1457;
  margin-bottom: 8px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.berry-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 10px;
}

.berry-badge {
  font-family: "Nunito", Tahoma, sans-serif;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 2px solid rgba(173, 20, 87, 0.25);
  background: rgba(255, 235, 248, 0.85);
  color: #880e4f;
}

.berry-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.berry-soc {
  text-decoration: none;
  font-family: "Fredoka", sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 12px;
  border: 2px solid rgba(173, 20, 87, 0.35);
  background: rgba(255, 255, 255, 0.9);
  color: #880e4f;
}

.berry-mid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.berry-mid-title {
  font-family: "VT323", monospace;
  color: #c2185b;
  font-size: 1.25rem;
}

.berry-updates {
  min-height: 220px;
}

.berry-about-content {
  font-family: "Nunito", Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #2e1067;
}

.berry-right-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.berry-navbtn {
  font-family: "Bungee", "Fredoka", sans-serif;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 2px solid rgba(173, 20, 87, 0.35);
  background: rgba(255, 255, 255, 0.9);
  color: #880e4f;
}

.berry-right-divider {
  height: 2px;
  background: rgba(173, 20, 87, 0.35);
  border-radius: 2px;
  margin: 6px 0;
}

.berry-right-small {
  font-family: "Nunito", Tahoma, sans-serif;
  font-size: 13px;
  color: rgba(136, 14, 79, 0.9);
  text-align: center;
  padding: 4px 0 0;
}

/* Музыка: старый стиль (как на картинке 2) */
.music-player-win .win-body {
  background: linear-gradient(180deg, rgba(220, 255, 255, 0.95), rgba(245, 245, 255, 0.95));
}

.music-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

@media (max-width: 900px) {
  .music-grid {
    grid-template-columns: 1fr;
  }
}

.music-left {
  border: 2px solid rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  padding: 10px;
}

.music-left-title {
  font-family: var(--font-pixel);
  color: #0a3d62;
  font-size: 0.62rem;
  margin-bottom: 8px;
}

.music-track-list {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.music-track-item {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  cursor: pointer;
  border: 2px solid rgba(0, 0, 0, 0.25);
  background: rgba(230, 247, 255, 0.8);
  border-radius: 10px;
  padding: 8px 10px;
}

.music-track-item.active {
  background: rgba(120, 210, 255, 0.45);
  border-color: rgba(0, 70, 120, 0.65);
}

.music-track-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  object-fit: cover;
}

.music-track-label {
  font-family: var(--font-hand);
  font-size: 14px;
  color: #0a3d62;
  word-break: break-word;
}

.music-right {
  border: 2px solid rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  padding: 12px;
}

.music-cover-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.music-cover {
  width: 260px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 3px solid rgba(0, 70, 120, 0.25);
  box-shadow: 0 10px 28px rgba(0, 70, 120, 0.18);
}

.music-meta {
  margin-bottom: 10px;
  text-align: center;
}

.music-now-title {
  font-family: "VT323", monospace;
  font-size: 1.2rem;
  color: #143f74;
}

.music-now-artist {
  font-family: "Nunito", Tahoma, sans-serif;
  margin-top: 4px;
}

.music-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.music-progress {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  gap: 10px;
  margin: 8px 0 10px;
}

.music-progress input[type="range"] {
  width: 100%;
}

.music-audio-note {
  min-height: 18px;
  text-align: center;
  color: #800;
}
