:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #111;
  --ink: #f3f3f3;
  --muted: #9c9c9c;
  --line: #f3f3f3;
  --soft-line: rgba(255, 255, 255, 0.2);
  --shadow: rgba(0, 0, 0, 0.7);
  --white-panel: #fff;
  --black-ink: #000;
  --hero-grad-start: #131313;
  --hero-grad-end: #050505;
  --theme-accent: #fff;
  --theme-accent-soft: rgba(255, 255, 255, 0.14);
  --theme-panel-strong: rgba(10, 10, 10, 0.96);
  --theme-status: #bdbdbd;
  --theme-pop: rgba(14, 14, 14, 0.96);
  --theme-pop-border: rgba(255, 255, 255, 0.18);
  --theme-pop-shadow: rgba(0, 0, 0, 0.45);
  --tg-viewport-height: 100dvh;
  --mono: "Courier New", "Nimbus Mono PS", monospace;
  --sans: Arial, Helvetica, sans-serif;
}

body[data-theme="bimbo"] {
  --bg: #cde1fa;
  --panel: #6f2555;
  --ink: #fff7fc;
  --muted: #f7c7e1;
  --line: #ffe1f2;
  --soft-line: rgba(255, 221, 239, 0.3);
  --shadow: rgba(62, 8, 43, 0.6);
  --white-panel: #dd1c8b;
  --black-ink: #1f0f1a;
  --hero-grad-start: #7f2e65;
  --hero-grad-end: #571e45;
  --theme-accent: #cde1fa;
  --theme-accent-soft: rgba(205, 225, 250, 0.22);
  --theme-panel-strong: rgba(86, 27, 68, 0.94);
  --theme-status: #ffd0ec;
  --theme-pop: rgba(90, 28, 70, 0.96);
  --theme-pop-border: rgba(255, 221, 239, 0.24);
  --theme-pop-shadow: rgba(45, 6, 27, 0.44);
}

body[data-theme="bimbo"] .brandmark {
  background: transparent;
  box-shadow: none;
}

body[data-theme="bimbo"] .brand {
  background: transparent;
  filter: none;
}

body[data-theme="bimbo"] .brand:hover,
body[data-theme="bimbo"] .brand:focus-visible {
  background: transparent;
}

body[data-theme="bimbo"] .brand img,
body[data-theme="bimbo"] .brand:hover img,
body[data-theme="bimbo"] .brand:focus-visible img {
  filter: none;
}

body[data-theme="bimbo"] .window__bar,
body[data-theme="bimbo"] .gallery-head,
body[data-theme="bimbo"] .tracklist li.is-active,
body[data-theme="bimbo"] .social__link,
body[data-theme="bimbo"] .game__hud button,
body[data-theme="bimbo"] .inspector,
body[data-theme="bimbo"] .event__link {
  background: var(--white-panel);
  color: var(--black-ink);
}

body[data-theme="bimbo"] .menubar {
  background: #dd1c8b;
}

body[data-theme="bimbo"] .menubar,
body[data-theme="bimbo"] .menubar .statusbar,
body[data-theme="bimbo"] .menubar .clock {
  color: #fff8fd;
}

body[data-theme="bimbo"] .desktop {
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.28), transparent 2px),
    radial-gradient(circle at 19% 71%, rgba(255, 255, 255, 0.16), transparent 2px),
    linear-gradient(180deg, #cde1fa 0%, #a9c8f2 100%);
}

body[data-theme="bimbo"] .folder__icon,
body[data-theme="bimbo"] .folder__icon::before {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.24) 0 2px, transparent 2px 7px),
    #dd1c8b;
}

body[data-theme="bimbo"] .folder:hover,
body[data-theme="bimbo"] .folder:focus-visible {
  background: rgba(205, 225, 250, 0.12);
}

body[data-theme="bimbo"] .eyebrow,
body[data-theme="bimbo"] .inspector {
  background: #dd1c8b;
  color: #381224;
}

body[data-theme="bimbo"] .hero-logo-title {
  filter: none;
}

body[data-theme="bimbo"] .disc {
  background:
    radial-gradient(circle, #fff4fc 0 12%, #cde1fa 13% 16%, transparent 17%),
    conic-gradient(from 90deg, #fff6fd, #dd1c8b, #cde1fa, #ffe4f6, #fff6fd);
}

body[data-theme="bimbo"] .mini-player {
  border-color: #cde1fa;
  background: rgba(221, 28, 139, 0.92);
  box-shadow: 10px 10px 0 rgba(221, 28, 139, 0.32);
}

body[data-theme="bimbo"] .mini-player button {
  background: #cde1fa;
  color: #381224;
  border-color: #ffe7f4;
}

body[data-theme="bimbo"] .mini-player button:hover,
body[data-theme="bimbo"] .mini-player button:focus-visible {
  background: #fff5fb;
  color: #381224;
}

body[data-theme="bimbo"] .mini-player__like {
  color: #3f1a31;
}

body[data-theme="bimbo"] .mini-player__like.is-liked {
  color: #fff9fd;
}

body[data-theme="bimbo"] .mini-player__volume-popover {
  border-color: #cde1fa;
  background: rgba(221, 28, 139, 0.96);
  box-shadow: 8px 8px 0 rgba(221, 28, 139, 0.32);
}

body[data-theme="bimbo"] .mini-player__meta strong,
body[data-theme="bimbo"] #mini-player-time {
  color: #fff9fd;
}

body[data-theme="bimbo"] .theme-popover,
body[data-theme="bimbo"] .inspector {
  background: rgba(205, 225, 250, 0.94);
  color: #381224;
}

body[data-theme="bimbo"] .inspector {
  box-shadow: 8px 8px 0 rgba(221, 28, 139, 0.4);
}

body[data-theme="bimbo"] .theme-popover__title,
body[data-theme="bimbo"] .theme-popover__badge,
body[data-theme="bimbo"] .theme-option__copy strong,
body[data-theme="bimbo"] .inspector p {
  color: #381224;
}

body[data-theme="bimbo"] .theme-option {
  background: rgba(221, 28, 139, 0.12);
}

body[data-theme="bimbo"] .theme-option:hover,
body[data-theme="bimbo"] .theme-option:focus-visible,
body[data-theme="bimbo"] .theme-option.is-active {
  border-color: #dd1c8b;
  background: rgba(221, 28, 139, 0.22);
}

body[data-theme="bimbo"] .social__screen,
body[data-theme="bimbo"] .game__stage,
body[data-theme="bimbo"] .telegram-post,
body[data-theme="bimbo"] .instagram-feed__loading,
body[data-theme="bimbo"] .instagram-post {
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(221, 28, 139, 0.32) 49% 50%, transparent 50%),
    repeating-linear-gradient(0deg, rgba(221, 28, 139, 0.12) 0 2px, transparent 2px 13px),
    #cde1fa;
  color: #381224;
}

body[data-theme="bimbo"] .social__screen::after {
  background:
    radial-gradient(circle at 24% 20%, rgba(221, 28, 139, 0.14), transparent 2px),
    radial-gradient(circle at 76% 68%, rgba(221, 28, 139, 0.1), transparent 2px);
}

body[data-theme="bimbo"] .social__kicker,
body[data-theme="bimbo"] .instagram-post__meta,
body[data-theme="bimbo"] .telegram-head__meta,
body[data-theme="bimbo"] .instagram-head__meta,
body[data-theme="bimbo"] .telegram-post__meta,
body[data-theme="bimbo"] .folder__meta {
  color: #7a3e69;
}

body[data-theme="bimbo"] .social__kicker {
  background: #dd1c8b;
  color: #fff8fd;
}

body[data-theme="bimbo"] .social h3,
body[data-theme="bimbo"] .telegram-post__text,
body[data-theme="bimbo"] .instagram-post__caption,
body[data-theme="bimbo"] .game__intro strong,
body[data-theme="bimbo"] .game__intro span {
  color: #381224;
}

body[data-theme="bimbo"] .instagram-post__image,
body[data-theme="bimbo"] .telegram-post__media,
body[data-theme="bimbo"] .game__intro span {
  border-color: rgba(221, 28, 139, 0.35);
}

body[data-theme="bimbo"] .gallery-item img,
body[data-theme="bimbo"] .gallery-viewer img,
body[data-theme="bimbo"] .instagram-post__image,
body[data-theme="bimbo"] .telegram-post__media {
  filter: saturate(1.05) contrast(1.02);
}

body[data-theme="bimbo"] .gallery-item:hover img,
body[data-theme="bimbo"] .gallery-item:focus-visible img {
  filter: saturate(1.1) contrast(1.04) brightness(1.02);
}

body[data-theme="bimbo"] .game__intro span {
  background: rgba(205, 225, 250, 0.9);
}

body[data-theme="bimbo"] .music-seek input,
body[data-theme="bimbo"] .mini-player input {
  accent-color: #dd1c8b;
}

body[data-theme="bimbo"] .music-seek,
body[data-theme="bimbo"] .mini-player__meta {
  gap: 8px;
}

body[data-theme="bimbo"] .music-seek input::-webkit-slider-runnable-track,
body[data-theme="bimbo"] .mini-player input::-webkit-slider-runnable-track {
  background: #cde1fa;
  border-radius: 999px;
  height: 10px;
  border: 1px solid rgba(255, 232, 244, 0.75);
}

body[data-theme="bimbo"] .music-seek input::-moz-range-track,
body[data-theme="bimbo"] .mini-player input::-moz-range-track {
  background: #cde1fa;
  border-radius: 999px;
  height: 10px;
  border: 1px solid rgba(255, 232, 244, 0.75);
}

body[data-theme="bimbo"] .music-seek input::-webkit-slider-thumb,
body[data-theme="bimbo"] .mini-player input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -7px;
  border-radius: 50%;
  border: 2px solid #ffeaf5;
  background: #dd1c8b;
  box-shadow: 0 0 0 2px rgba(205, 225, 250, 0.55);
}

body[data-theme="bimbo"] .music-seek input::-moz-range-thumb,
body[data-theme="bimbo"] .mini-player input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ffeaf5;
  background: #dd1c8b;
  box-shadow: 0 0 0 2px rgba(205, 225, 250, 0.55);
}

body[data-theme="bimbo"] .theme-popover__meta,
body[data-theme="bimbo"] .theme-option__copy small {
  display: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: var(--tg-viewport-height);
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  letter-spacing: 0;
}

html.is-telegram-webapp,
html.is-telegram-webapp body {
  min-height: var(--tg-viewport-height);
  overscroll-behavior: none;
}

body.is-telegram-webapp {
  touch-action: pan-y;
}

html.is-mobile-modal-open,
body.is-mobile-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  gap: 18px;
  align-content: center;
  background: #fff;
  color: #000;
  animation: bootOut 0.72s ease 1.35s forwards;
  will-change: opacity, filter, visibility;
}

.mobile-modal-backdrop {
  display: none;
}

html.is-mobile-modal-open .mini-player {
  display: none !important;
}

.boot__line {
  font-size: clamp(13px, 3vw, 22px);
  font-weight: 700;
  text-transform: uppercase;
}

.boot__bar {
  width: min(520px, 76vw);
  height: 14px;
  border: 2px solid #000;
  overflow: hidden;
  background: #fff;
}

.boot__bar span {
  display: block;
  height: 100%;
  width: 100%;
  background:
    repeating-linear-gradient(90deg, #000 0 8px, transparent 8px 14px),
    #000;
  background-size: 14px 100%, 100% 100%;
  transform-origin: left;
  transform: scaleX(0);
  animation: load 1.18s cubic-bezier(0.65, 0, 0.22, 1) forwards;
  will-change: transform;
}

.desktop {
  position: relative;
  min-height: var(--tg-viewport-height);
  isolation: isolate;
  overflow: hidden;
  padding: 72px 18px 96px;
  background: linear-gradient(180deg, var(--hero-grad-start) 0%, var(--hero-grad-end) 100%);
  opacity: 0;
  animation: desktopIn 0.48s ease 1.2s forwards;
  will-change: opacity;
}

.menubar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  padding: 0 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--soft-line);
  box-shadow: 0 8px 30px var(--shadow);
}

.brand {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  background: var(--bg);
  overflow: visible;
  filter: contrast(120%);
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.45));
}

.brand:hover,
.brand:focus-visible {
  outline: none;
  background: var(--white-panel);
}

.brand:hover img,
.brand:focus-visible img {
  filter: invert(1) contrast(140%);
}

.menu {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  min-width: 0;
  white-space: nowrap;
}

.menu button,
.menu a {
  border: 0;
  padding: 3px 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  text-transform: lowercase;
}

.menu button:hover,
.menu a:hover {
  color: var(--black-ink);
  background: var(--white-panel);
}

.statusbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  font-weight: 900;
  white-space: nowrap;
}

.theme-switcher {
  position: relative;
}

.status-trigger {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
}

.status-trigger:hover,
.status-trigger:focus-visible {
  outline: none;
  background: var(--theme-accent-soft);
}

.clock {
  min-width: 44px;
  color: var(--muted);
  text-align: right;
}

.status-icon {
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
}

.status-icon--cell {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  width: 15px;
  height: 12px;
}

.status-icon--cell i { width: 3px; background: var(--theme-status); }

.status-icon--cell i:nth-child(1) { height: 4px; }
.status-icon--cell i:nth-child(2) { height: 8px; }
.status-icon--cell i:nth-child(3) { height: 12px; }

.status-icon--wifi {
  width: 17px;
  height: 12px;
  border: 2px solid var(--theme-status);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: 50% 50% 0 0;
}

.status-icon--wifi::before,
.status-icon--wifi::after {
  content: "";
  position: absolute;
  left: 50%;
  border: 2px solid var(--theme-status);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: 50% 50% 0 0;
  transform: translateX(-50%);
}

.status-icon--wifi::before {
  top: 3px;
  width: 11px;
  height: 7px;
}

.status-icon--wifi::after {
  top: 8px;
  width: 3px;
  height: 3px;
  border: 0;
  background: var(--theme-status);
  border-radius: 50%;
}

.status-icon--dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--theme-status);
  border-radius: 50%;
}

.theme-popover {
  position: absolute;
  top: calc(100% + 14px);
  right: -8px;
  width: min(320px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid var(--theme-pop-border);
  background: var(--theme-pop);
  box-shadow: 0 18px 44px var(--theme-pop-shadow);
  backdrop-filter: blur(18px);
}

.theme-popover[hidden] { display: none; }

.theme-popover__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.theme-popover__title,
.theme-popover__meta { margin: 0; }

.theme-popover__title {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.theme-popover__meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.theme-popover__badge {
  padding: 4px 8px;
  border: 1px solid var(--soft-line);
  background: var(--theme-accent-soft);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  text-transform: lowercase;
}

.theme-options {
  display: grid;
  gap: 8px;
}

.network-auth {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--soft-line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)),
    rgba(0, 0, 0, 0.32);
}

.network-auth[hidden] {
  display: none;
}

.network-auth__head,
.network-auth__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.network-auth__label {
  margin: 0;
}

.network-auth__label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.network-auth__badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid var(--soft-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.network-auth__form {
  display: grid;
  gap: 8px;
}

.network-auth__input {
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--soft-line);
  background: rgba(5, 5, 5, 0.94);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.network-auth__input:focus-visible {
  outline: none;
  border-color: var(--theme-accent);
}

.network-auth__input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.network-auth__button {
  padding: 8px 12px;
  border: 1px solid var(--soft-line);
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.network-auth__button--ghost {
  background: transparent;
  color: var(--ink);
}

.network-auth__button:hover,
.network-auth__button:focus-visible {
  outline: none;
  border-color: var(--theme-accent);
}

.network-auth__button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.theme-option {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}

.theme-option:hover,
.theme-option:focus-visible,
.theme-option.is-active {
  outline: none;
  border-color: var(--theme-accent);
  background: var(--theme-accent-soft);
}

.theme-option__wifi {
  display: grid;
  place-items: center;
  width: 18px;
  height: 14px;
}

.theme-option__wifi-icon {
  position: relative;
  width: 16px;
  height: 11px;
  border: 2px solid var(--line);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: 50% 50% 0 0;
}

.theme-option__wifi-icon::before,
.theme-option__wifi-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.theme-option__wifi-icon::before {
  top: 3px;
  width: 10px;
  height: 6px;
  border: 2px solid var(--line);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: 50% 50% 0 0;
}

.theme-option__wifi-icon::after {
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
}

.theme-option.is-active .theme-option__wifi-icon,
.theme-option.is-active .theme-option__wifi-icon::before {
  border-top-color: var(--theme-accent);
}

.theme-option.is-active .theme-option__wifi-icon::after {
  background: var(--theme-accent);
}

.theme-option__copy {
  display: grid;
  gap: 2px;
}

.theme-option__copy strong {
  color: var(--ink);
  font-size: 14px;
  text-transform: lowercase;
}

.theme-option__copy small {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.battery {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.battery__shell {
  position: relative;
  width: 25px;
  height: 12px;
  border: 1px solid var(--theme-status);
  padding: 2px;
}

.battery__shell::after {
  content: "";
  position: absolute;
  top: 3px;
  right: -4px;
  width: 2px;
  height: 5px;
  background: var(--theme-status);
}

.battery__level {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--theme-status);
}

.battery__text {
  font-size: 11px;
}

.battery.is-unavailable {
  opacity: 0.62;
}

.battery.is-unavailable .battery__level {
  background: var(--theme-status);
}

.account-trigger {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--theme-status);
}

.account-trigger:hover,
.account-trigger:focus-visible,
.account-trigger[aria-expanded="true"] {
  outline: none;
  border-color: var(--theme-status);
  background: rgba(255,255,255,0.08);
}

.account-trigger__icon {
  position: relative;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.account-trigger__icon::before,
.account-trigger__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.account-trigger__icon::before {
  top: 3px;
  width: 5px;
  height: 5px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--bg);
}

.account-trigger__icon::after {
  bottom: 1px;
  width: 12px;
  height: 6px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--bg);
}

.account-trigger--social {
  text-decoration: none;
}

.account-trigger__planet {
  position: relative;
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.account-trigger__planet::before,
.account-trigger__planet::after {
  content: "";
  position: absolute;
  inset: 4px -5px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-24deg);
}

.account-trigger__planet::after {
  inset: 5px 6px;
  border: 0;
  border-left: 2px solid currentColor;
  transform: none;
}

.hero {
  position: relative;
  min-height: calc(100svh - 142px);
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(330px, 1.25fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
}

.readout {
  position: absolute;
  left: 0;
  right: 0;
  top: 43%;
  z-index: -1;
  color: rgba(255, 255, 255, 0.12);
  font-size: clamp(24px, 3.8vw, 58px);
  font-weight: 900;
  line-height: 0.95;
  text-transform: lowercase;
}

.readout p {
  margin: 0;
}

.hero__copy {
  align-self: end;
  padding-bottom: 42px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 10px;
  padding: 3px 7px;
  background: var(--white-panel);
  color: var(--black-ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-logo-title {
  margin: 0;
  width: min(54vw, 560px);
  max-width: 100%;
  line-height: 0;
  filter:
    drop-shadow(7px 0 0 var(--theme-accent-soft))
    drop-shadow(-5px 0 0 rgba(0, 0, 0, 0.95));
}

.hero-logo-title img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero__copy p:last-child {
  max-width: 470px;
  margin: 24px 0 0;
  color: #d8d8d8;
  font-size: clamp(14px, 1.7vw, 18px);
  line-height: 1.45;
}

.folders {
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 1fr));
  gap: clamp(16px, 2.5vw, 32px);
  align-items: start;
}

.folder {
  position: relative;
  display: grid;
  gap: 9px;
  min-height: 154px;
  padding: 12px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.folder:hover,
.folder:focus-visible {
  outline: none;
  transform: translateY(-6px);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.folder__icon {
  position: relative;
  width: clamp(78px, 9vw, 118px);
  aspect-ratio: 1.25;
  border: 2px solid var(--line);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.34) 0 2px, transparent 2px 7px),
    #0b0b0b;
  box-shadow: 8px 8px 0 var(--theme-accent-soft);
}

.folder__icon::before {
  content: "";
  position: absolute;
  left: 9px;
  top: -17px;
  width: 42%;
  height: 17px;
  border: 2px solid var(--line);
  border-bottom: 0;
  background: #0b0b0b;
}

.folder__name {
  display: block;
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 900;
  text-transform: lowercase;
}

.folder__meta {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.window {
  position: absolute;
  z-index: 8;
  display: none;
  width: min(680px, calc(100vw - 36px));
  max-height: min(720px, calc(100svh - 178px));
  border: 2px solid var(--line);
  background: var(--theme-panel-strong);
  box-shadow: 14px 14px 0 var(--theme-accent-soft), 0 28px 80px rgba(0,0,0,0.74);
  overflow: hidden;
}

.window.is-open {
  display: flex;
  flex-direction: column;
}

.window--afisha {
  top: 18%;
  right: clamp(18px, 5vw, 78px);
}

.window--music {
  top: 27%;
  left: clamp(18px, 7vw, 94px);
}

.window--archive {
  width: min(920px, calc(100vw - 36px));
  right: clamp(18px, 11vw, 170px);
  bottom: 118px;
}

.window--social {
  width: min(460px, calc(100vw - 36px));
}

.window--game {
  width: min(760px, calc(100vw - 36px));
}

.window--tg {
  top: 20%;
  left: clamp(22px, 11vw, 180px);
}

.window--inst {
  top: 24%;
  right: clamp(24px, 8vw, 132px);
}

.window--tt {
  left: clamp(24px, 28vw, 460px);
  bottom: 102px;
}

.window__bar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 5px 8px;
  color: var(--black-ink);
  background: var(--white-panel);
  user-select: none;
}

.window__bar h2 {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
}

.window__bar button {
  width: 26px;
  height: 24px;
  border: 1px solid var(--black-ink);
  background: var(--white-panel);
  color: var(--black-ink);
  font-size: 18px;
  line-height: 1;
}

.dots {
  display: flex;
  gap: 5px;
}

.dots span {
  width: 9px;
  height: 9px;
  border: 1px solid #000;
  background: var(--white-panel);
}

.window__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(14px, 2vw, 24px);
  scrollbar-width: thin;
  scrollbar-color: #fff #050505;
}

.window__body::-webkit-scrollbar {
  width: 8px;
}

.window__body::-webkit-scrollbar-track {
  background: #050505;
}

.window__body::-webkit-scrollbar-thumb {
  background: #fff;
}

.afisha {
  display: grid;
  gap: 10px;
}

.event {
  min-height: 132px;
  padding: 12px;
  border: 1px solid var(--soft-line);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent);
}

.event--main {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.1) 0 2px, transparent 2px 9px);
}

.event p,
.player p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.event h3,
.player h3 {
  margin: 0 0 13px;
  font-family: var(--sans);
  font-size: clamp(21px, 3vw, 36px);
  line-height: 0.95;
  text-transform: uppercase;
}

.event time,
.event span {
  display: block;
  color: #fff;
  font-weight: 900;
}

.event__details {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
}

.event__details div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  padding-top: 2px;
}

.event__details dt,
.event__details dd {
  margin: 0;
}

.event__details dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.event__details dd {
  color: #fff;
  font-weight: 900;
}

.event__link {
  width: fit-content;
  margin-top: 18px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--white-panel);
  color: var(--black-ink);
  font-weight: 900;
  text-transform: uppercase;
}

.event__link:hover,
.event__link:focus-visible {
  outline: none;
  background: var(--bg);
  color: var(--ink);
}

.admin-page {
  min-height: 100svh;
  overflow: hidden;
  background: var(--bg);
}

.admin-shell {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  overflow: hidden;
}

.admin-panel,
.admin-workspace {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.94);
  box-shadow: 12px 12px 0 rgba(255,255,255,0.12);
}

.admin-panel {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 4vw, 34px);
}

.admin-panel h1,
.admin-workspace h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 76px);
  line-height: 0.9;
  text-transform: uppercase;
}

.admin-panel__status {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-panel__hint {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.admin-panel__actions,
.admin-workspace__session {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-login {
  display: grid;
  gap: 10px;
  max-width: 360px;
}

.admin-login label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-login input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 11px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.admin-login input:focus-visible {
  outline: 2px solid var(--line);
  outline-offset: 2px;
}

.admin-panel__actions button,
.admin-login button,
.admin-workspace__session button,
.admin-panel__back {
  width: fit-content;
  padding: 10px 13px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-panel__actions button:hover,
.admin-panel__actions button:focus-visible,
.admin-login button:hover,
.admin-login button:focus-visible,
.admin-workspace__session button:hover,
.admin-workspace__session button:focus-visible,
.admin-panel__back:hover,
.admin-panel__back:focus-visible {
  outline: none;
  background: var(--white-panel);
  color: var(--black-ink);
}

.admin-panel__back {
  text-decoration: none;
}

.admin-workspace {
  min-height: min(640px, calc(100svh - 48px));
}

.admin-workspace__bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-workspace__session span {
  max-width: min(38vw, 260px);
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-workspace__empty {
  display: grid;
  min-height: 360px;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-pins {
  display: grid;
  gap: 10px;
  width: min(420px, 100%);
  justify-self: start;
}

.admin-pins p,
.admin-pins span {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-pins label {
  display: grid;
  gap: 5px;
}

.admin-pins input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 10px 11px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.admin-pins button {
  width: fit-content;
  border: 1px solid var(--line);
  padding: 10px 13px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

body[data-admin-state="loading"] #admin-sign-in,
body[data-admin-state="admin"] #admin-gate,
body[data-admin-state="signed-out"] [data-admin-sign-out] {
  display: none;
}

.account-modal[hidden] {
  display: none;
}

.account-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.account-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.account-card {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: min(760px, calc(100svh - 36px));
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.96);
  box-shadow: 12px 12px 0 rgba(255,255,255,0.12);
  overflow: hidden;
}

.account-card__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--white-panel);
  color: var(--black-ink);
}

.account-card__bar h2 {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
}

.account-card__bar button {
  border: 1px solid var(--black-ink);
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
}

.account-auth,
.account-profile {
  max-height: calc(100svh - 92px);
  overflow: auto;
  padding: clamp(14px, 3vw, 24px);
}

.account-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.account-tabs button,
.account-form button,
.account-profile button {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 10px 12px;
  text-transform: uppercase;
}

.account-tabs button:hover,
.account-tabs button:focus-visible,
.account-tabs button.is-active,
.account-form button:hover,
.account-form button:focus-visible,
.account-profile button:hover,
.account-profile button:focus-visible {
  outline: none;
  background: var(--white-panel);
  color: var(--black-ink);
}

.account-form {
  display: none;
  max-width: 460px;
  gap: 12px;
}

.account-form.is-active {
  display: grid;
}

.account-form__status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 11px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.account-form input:focus-visible {
  outline: 2px solid var(--line);
  outline-offset: 2px;
}

.account-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-profile {
  display: grid;
  gap: 14px;
}

.account-profile[hidden] {
  display: none;
}

.account-profile__hero,
.account-profile__social,
.account-profile__feed {
  border: 1px solid var(--soft-line);
}

.account-profile__banner {
  display: grid;
  min-height: 150px;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.12) 0 2px, transparent 2px 10px),
    linear-gradient(90deg, #090909, #2a2a2a);
  color: rgba(255,255,255,0.34);
  font-size: clamp(24px, 6vw, 54px);
  font-weight: 900;
  text-transform: uppercase;
}

.account-profile__identity {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: end;
  padding: 0 16px 16px;
  margin-top: -34px;
}

.account-profile__avatar {
  display: grid;
  place-items: center;
  width: 92px;
  aspect-ratio: 1;
  border: 2px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
}

.account-profile__identity h3 {
  margin: 0 0 4px;
  font-size: clamp(24px, 5vw, 44px);
  line-height: 1;
  text-transform: lowercase;
}

.account-profile__identity p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.account-profile__social {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
}

.account-profile__social p,
.account-profile__feed-head p,
.account-post p {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.account-profile__social a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.account-profile__feed-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--soft-line);
}

.account-post {
  display: grid;
  gap: 5px;
  padding: 16px;
}

.account-post span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.social-page {
  min-height: 100svh;
  overflow: auto;
  background: var(--bg);
}

.social-menubar {
  position: sticky;
  top: 0;
  z-index: 20;
}

.social-menubar .menu a,
.social-menubar .menu button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: clamp(14px, 1.25vw, 22px);
  font-weight: 900;
  text-decoration: none;
  text-transform: lowercase;
}

.social-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(0, 720px) minmax(190px, 260px);
  gap: 20px;
  max-width: 1280px;
  min-height: calc(100svh - 92px);
  margin: 0 auto;
  padding: 24px 18px 48px;
}

.social-shell::before {
  content: "";
  position: fixed;
  inset: 72px 0 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 28%, rgba(255,255,255,0.08), transparent 22%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 68px);
}

.social-sidebar,
.social-main {
  position: relative;
  z-index: 1;
}

.social-main {
  align-content: start;
}

.social-sidebar {
  display: grid;
  align-content: start;
  gap: 12px;
}

.social-side-nav {
  display: grid;
  gap: 8px;
}

.social-side-nav a,
.social-tabbar a,
.social-tabbar button {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.social-side-nav a:hover,
.social-side-nav a:focus-visible,
.social-tabbar a:hover,
.social-tabbar a:focus-visible,
.social-tabbar button:hover,
.social-tabbar button:focus-visible {
  outline: none;
  background: var(--white-panel);
  color: var(--black-ink);
}

.social-mobile-pins,
.social-tabbar {
  display: none;
}

.social-sidebar__card,
.social-auth,
.social-feed,
.social-profile-view {
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.9);
}

.social-sidebar__card {
  display: grid;
  gap: 6px;
  padding: 13px;
}

.social-me-card {
  width: 100%;
  color: var(--ink);
  font: inherit;
  text-align: left;
}

.social-me-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.social-me-card__actions button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 9px 10px;
}

.social-me-card__actions button:hover,
.social-me-card__actions button:focus-visible {
  outline: none;
  background: var(--white-panel);
  color: var(--black-ink);
}

.social-me-card__actions button[hidden] {
  display: none;
}

.social-sidebar__card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.social-sidebar__card strong {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-sidebar__card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.social-pinned {
  display: grid;
  gap: 8px;
}

.social-pinned a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--soft-line);
  color: var(--ink);
  text-decoration: none;
}

.social-pinned a:hover,
.social-pinned a:focus-visible {
  outline: none;
  border-color: var(--line);
  background: var(--white-panel);
  color: var(--black-ink);
}

.social-pinned b {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  font-size: 11px;
}

.social-mobile-pins {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.9);
  padding: 9px;
}

.social-mobile-pins p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.social-pinned--strip {
  grid-auto-flow: column;
  grid-auto-columns: minmax(118px, 1fr);
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.social-pinned--strip a {
  grid-template-columns: 30px 1fr;
  min-width: 118px;
}

.social-pinned--strip b {
  width: 30px;
}

.social-auth,
.social-feed,
.social-profile-view {
  min-height: min(720px, calc(100svh - 140px));
  padding: 16px;
}

.social-profile-card h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 0.9;
  text-transform: lowercase;
}

.social-post {
  display: grid;
  gap: 8px;
  padding: 15px 0;
  border-bottom: 1px solid var(--soft-line);
}

.social-post strong {
  font-size: 16px;
}

.social-post p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.social-post-list {
  display: grid;
}

.social-post-card {
  gap: 12px;
}

.social-post__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.social-post__head > div {
  display: grid;
  gap: 2px;
}

.social-post__head button,
.social-post__avatar,
.social-profile-card__avatar,
.social-follow,
.social-post__actions button,
.social-comment button,
.social-composer button,
.social-settings-form button {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.social-post__head button:not(.social-follow):not(.social-post__avatar) {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  text-transform: none;
}

.social-post__avatar {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
}

.social-post__head time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.social-follow {
  min-width: 94px;
  padding: 8px 10px;
}

.social-follow[aria-pressed="true"],
.social-post__actions button[aria-pressed="true"] {
  background: var(--white-panel);
  color: var(--black-ink);
}

.social-post__actions,
.social-inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.social-post__actions > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.social-post__actions button,
.social-comment button,
.social-composer button,
.social-settings-form button {
  padding: 8px 10px;
}

.social-post-edit,
.social-comment form,
.social-composer form,
.social-settings-form {
  display: grid;
  gap: 8px;
}

.social-post-edit[hidden] {
  display: none;
}

.social-post-edit textarea,
.social-comment input,
.social-composer textarea,
.social-settings-form textarea,
.social-settings-form input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 10px;
}

.social-post-edit textarea,
.social-composer textarea,
.social-settings-form textarea {
  min-height: 92px;
  resize: vertical;
}

.social-post-edit span,
.social-comment span,
.social-comment p,
.social-composer p,
.social-composer span,
.social-settings-form p,
.social-settings-form span {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.social-comment {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--soft-line);
  padding-top: 10px;
}

.social-comment p b {
  color: var(--ink);
}

.social-composer {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--soft-line);
}

.social-composer > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.social-profile-card {
  border: 1px solid var(--soft-line);
}

.social-profile-card__banner {
  display: grid;
  min-height: 190px;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.12) 0 2px, transparent 2px 10px),
    #101010;
  color: rgba(255,255,255,0.28);
  font-size: clamp(28px, 7vw, 64px);
  font-weight: 900;
  text-transform: uppercase;
}

.social-profile-card__body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
  align-items: end;
  padding: 0 16px 18px;
  margin-top: -40px;
}

.social-profile-card__avatar {
  display: grid;
  place-items: center;
  width: 104px;
  aspect-ratio: 1;
  border: 2px solid var(--line);
  background: var(--bg);
  font-size: 32px;
  font-weight: 900;
}

.social-profile-card__body .social-follow {
  align-self: end;
}

.social-profile-card p,
.social-profile-card a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.social-profile-settings {
  margin: 0 16px 16px;
  border-top: 1px solid var(--soft-line);
  padding-top: 12px;
}

.social-profile-settings summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.social-settings-form {
  margin-top: 12px;
}

.social-settings-form label {
  display: grid;
  gap: 6px;
}

.social-profile-settings button {
  margin-top: 12px;
}

.music {
  display: grid;
  gap: 22px;
}

.player {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 18px;
  align-items: center;
}

.disc {
  width: 128px;
  aspect-ratio: 1;
  border: 2px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--bg) 0 12%, var(--line) 13% 16%, transparent 17%),
    conic-gradient(from 90deg, var(--line), #080808, #777, #080808, var(--line));
  animation: spin 4.5s linear infinite;
}

.meter {
  height: 18px;
  margin-top: 18px;
  border: 1px solid #fff;
  overflow: hidden;
}

.meter span {
  display: block;
  width: 68%;
  height: 100%;
  background: repeating-linear-gradient(90deg, #fff 0 8px, transparent 8px 13px);
  animation: meter 1.8s steps(6, end) infinite alternate;
}

.music-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.music-controls button,
.mini-player button {
  display: grid;
  place-items: center;
  min-width: 54px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  text-transform: none;
}

.music-controls button:hover,
.music-controls button:focus-visible,
.mini-player button:hover,
.mini-player button:focus-visible {
  outline: none;
  background: var(--white-panel);
  color: var(--black-ink);
}

.music-seek {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.music-seek input,
.mini-player input {
  width: 100%;
  accent-color: var(--theme-accent);
}

.tracklist {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tracklist li,
.archive a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--soft-line);
}

.tracklist button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.tracklist li.is-active {
  color: #000;
  background: #fff;
  padding-inline: 8px;
}

.tracklist span {
  font-weight: 900;
  text-transform: lowercase;
}

.tracklist time {
  color: var(--muted);
  font-style: normal;
}

.archive {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: min(520px, calc(100svh - 260px));
  overflow: hidden;
}

.gallery-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  background: var(--white-panel);
  color: var(--black-ink);
  font-weight: 900;
  text-transform: uppercase;
}

.gallery-head__copy {
  display: grid;
  gap: 2px;
}

.gallery-head span,
.gallery-head strong {
  font-size: 12px;
}

.archive-switch {
  display: inline-flex;
  gap: 6px;
}

.archive-switch__button {
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--black-ink);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.archive-switch__button.is-active,
.archive-switch__button:hover,
.archive-switch__button:focus-visible {
  outline: none;
  background: var(--black-ink);
  color: var(--white-panel);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
}

.gallery-grid[hidden] {
  display: none;
}

.gallery-grid::-webkit-scrollbar {
  width: 8px;
}

.gallery-grid::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.08);
}

.gallery-grid::-webkit-scrollbar-thumb {
  background: #fff;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255,255,255,0.58);
  padding: 0;
  background: #050505;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15);
  transition: filter 160ms ease, transform 160ms ease;
}

.gallery-item span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 5px;
  background: var(--white-panel);
  color: var(--black-ink);
  font-size: 10px;
  font-weight: 900;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  filter: grayscale(1) contrast(1.35) brightness(1.14);
  transform: scale(1.04);
}

.gallery-empty {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--soft-line);
  color: var(--muted);
  text-transform: uppercase;
}

.archive-video {
  display: grid;
  align-content: start;
  grid-auto-rows: min-content;
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
}

.archive-video[hidden] {
  display: none;
}

.archive-video__item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--soft-line);
  background: rgba(255,255,255,0.04);
  color: inherit;
  font: inherit;
  text-align: left;
}

.archive-video__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #fff;
  background: #050505;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.archive-video__copy {
  display: grid;
  gap: 3px;
}

.archive-video__copy strong {
  color: var(--ink);
  font-size: 14px;
  text-transform: lowercase;
}

.archive-video__copy small {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.archive-video__item:hover,
.archive-video__item:focus-visible {
  outline: none;
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}

.gallery-viewer {
  position: absolute;
  inset: 44px 12px 12px;
  z-index: 6;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  grid-template-rows: 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #fff;
  background:
    linear-gradient(rgba(0,0,0,0.82), rgba(0,0,0,0.94)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.08) 0 2px, transparent 2px 11px);
  padding: 12px;
}

.gallery-viewer[hidden] {
  display: none;
}

.gallery-viewer img {
  grid-column: 2;
  width: 100%;
  height: min(62svh, 560px);
  object-fit: contain;
  filter: grayscale(1) contrast(1.12);
}

.gallery-video-player {
  grid-column: 2;
  position: relative;
  display: grid;
  width: 100%;
}

.gallery-video-player[hidden] {
  display: none;
}

.gallery-video-player video {
  display: block;
  width: 100%;
  max-height: min(56svh, 520px);
  border: 1px solid rgba(255,255,255,0.58);
  background: #000;
}

.gallery-video-player__controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.42);
  background: linear-gradient(180deg, rgba(0,0,0,0.68), rgba(0,0,0,0.86));
}

.gallery-video-player__buttons {
  justify-content: center;
}

.gallery-video-player__seek {
  margin-top: 0;
}

.gallery-viewer__close,
.gallery-viewer__nav {
  border: 1px solid #fff;
  background: #050505;
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.gallery-viewer__close {
  position: absolute;
  z-index: 7;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 32px;
}

.gallery-viewer__nav {
  width: 44px;
  height: 64px;
  font-size: 34px;
  line-height: 1;
}

.gallery-viewer__nav--prev {
  grid-column: 1;
}

.gallery-viewer__nav--next {
  grid-column: 3;
}

.gallery-viewer p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-weight: 900;
}

.social {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social__screen {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  padding: 18px;
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(255,255,255,0.88) 49% 50%, transparent 50%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.09) 0 2px, transparent 2px 13px),
    #050505;
}

.social--tg .social__screen,
.social--inst .social__screen {
  flex: 1 1 auto;
  min-height: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.09) 0 2px, transparent 2px 13px),
    #050505;
}

.social__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 20%, rgba(255,255,255,0.22), transparent 2px),
    radial-gradient(circle at 76% 68%, rgba(255,255,255,0.16), transparent 2px);
  opacity: 0.8;
}

.social__kicker {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 0 0 16px;
  padding: 3px 6px;
  background: #fff;
  color: #000;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.social h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 0.9;
  text-transform: uppercase;
}

.telegram-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.telegram-head__meta {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
}

.telegram-feed {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 28px;
  max-height: none;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #fff #050505;
}

.telegram-feed::-webkit-scrollbar {
  width: 8px;
}

.telegram-feed::-webkit-scrollbar-track {
  background: #050505;
}

.telegram-feed::-webkit-scrollbar-thumb {
  background: #fff;
}

.telegram-post,
.telegram-feed__loading {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--soft-line);
  background: rgba(0, 0, 0, 0.62);
}

.telegram-post {
  display: grid;
  gap: 8px;
}

.telegram-post__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.15);
}

.telegram-post__text {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.telegram-post__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.telegram-post__meta a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.instagram-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.instagram-head__meta {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
}

.instagram-profile {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  margin-top: 18px;
  padding: 10px;
  border: 1px solid var(--soft-line);
  background: rgba(0,0,0,0.62);
}

.instagram-profile p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.instagram-profile strong {
  color: #fff;
}

.instagram-feed {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 14px;
  max-height: none;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #fff #050505;
}

.instagram-feed::-webkit-scrollbar {
  width: 8px;
}

.instagram-feed::-webkit-scrollbar-track {
  background: #050505;
}

.instagram-feed::-webkit-scrollbar-thumb {
  background: #fff;
}

.instagram-feed__loading {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--soft-line);
  background: rgba(0, 0, 0, 0.62);
}

.instagram-post {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--soft-line);
  background: rgba(0, 0, 0, 0.62);
}

.instagram-post:hover,
.instagram-post:focus-visible {
  outline: none;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.instagram-post__image {
  display: block;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,0.55);
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.15);
}

.instagram-post__meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.instagram-post__caption {
  display: -webkit-box;
  overflow: hidden;
  min-height: 30px;
  color: #fff;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.social__screen--vertical {
  width: min(260px, 100%);
  min-height: 420px;
  margin: 0 auto;
  border-width: 2px;
}

.social__scan {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 44%;
  border: 1px solid rgba(255,255,255,0.8);
  background:
    linear-gradient(135deg, transparent 0 47%, #fff 47% 50%, transparent 50%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.12) 0 3px, transparent 3px 11px);
}

.game {
  display: grid;
  gap: 12px;
}

.game__topline,
.game__hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.game__topline p,
.game__hud p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.game__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  max-height: min(42vh, 320px);
  border: 1px solid var(--soft-line);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.08) 0 2px, transparent 2px 12px),
    #050505;
  overflow: hidden;
}

.game__canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  touch-action: manipulation;
}

.game__stage.is-idle .game__canvas {
  opacity: 0;
}

.game__stage.is-idle {
  background: #050505;
}

.game__intro {
  position: absolute;
  inset: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  pointer-events: none;
  text-align: center;
  text-transform: uppercase;
}

.game__intro strong {
  width: min(94%, 620px);
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(24px, 4.6vw, 54px);
  font-weight: 900;
  line-height: 0.9;
}

.game__intro span {
  width: min(94%, 520px);
  color: #fff;
  background: #050505;
  border: 1px solid rgba(255,255,255,0.45);
  padding: 5px 8px;
  font-size: clamp(10px, 1.25vw, 13px);
  font-weight: 900;
}

.game__intro.is-hidden {
  display: none;
}

.game__hud button {
  padding: 8px 12px;
  border: 1px solid #fff;
  background: #fff;
  color: #000;
  font: inherit;
  font-weight: 900;
  text-transform: uppercase;
}

.game__hud button:hover,
.game__hud button:focus-visible {
  outline: none;
  background: #050505;
  color: #fff;
}

.social__link {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid #fff;
  background: #fff;
  color: #000;
  font-weight: 900;
  text-transform: uppercase;
}

.social__link:hover,
.social__link:focus-visible {
  outline: none;
  background: #050505;
  color: #fff;
}

.inspector {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 12;
  width: min(300px, calc(100vw - 36px));
  padding: 12px;
  border: 1px solid #fff;
  background: #fff;
  color: #000;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.7);
}

.inspector p {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 22;
  display: flex;
  gap: 8px;
  max-width: calc(100vw - 24px);
  padding: 8px;
  border: 1px solid var(--soft-line);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

.dock--disabled {
  display: none;
}

.mini-player {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 21;
  display: none;
  grid-template-columns: auto auto auto minmax(180px, 420px) auto auto;
  gap: 8px;
  align-items: center;
  width: min(900px, calc(100vw - 24px));
  padding: 8px 16px 8px 8px;
  border: 1px solid #fff;
  background: rgba(5, 5, 5, 0.94);
  box-shadow: 10px 10px 0 rgba(255,255,255,0.12);
  transform: translateX(-50%);
}

.mini-player.is-visible {
  display: grid;
}

.mini-player__meta {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.mini-player__meta strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  text-transform: uppercase;
}

#mini-player-time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.mini-player__volume {
  position: relative;
  display: grid;
  place-items: center;
}

.mini-player__actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.mini-player__actions button {
  min-width: 48px;
  width: 48px;
  height: 38px;
  padding: 7px;
  font-size: 0;
  letter-spacing: 0;
}

.mini-player__actions svg {
  display: block;
  width: 22px;
  height: 22px;
}

.mini-player__volume svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linejoin: miter;
  stroke-linecap: square;
}

.mini-player__like {
  color: #242424;
}

.mini-player__like svg {
  fill: currentColor;
  stroke: #777;
  stroke-width: 1.5;
}

.mini-player__like.is-liked {
  color: #fff;
}

.mini-player__like.is-liked:hover,
.mini-player__like.is-liked:focus-visible {
  background: var(--bg);
  color: #fff;
}

.mini-player__like.is-liked svg {
  stroke: #fff;
}

.mini-player__volume-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  display: grid;
  place-items: center;
  width: 46px;
  height: 164px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.96);
  box-shadow: 8px 8px 0 rgba(255,255,255,0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.mini-player__volume-popover::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: inherit;
  transform: rotate(45deg);
}

.mini-player__volume:hover .mini-player__volume-popover,
.mini-player__volume:focus-within .mini-player__volume-popover,
.mini-player__volume.is-open .mini-player__volume-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mini-player__volume-popover input {
  width: 28px;
  height: 128px;
  writing-mode: vertical-lr;
  direction: rtl;
}

.dock button,
.dock a {
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  border: 1px solid #fff;
  background: #070707;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.dock button:hover,
.dock a:hover {
  background: #fff;
  color: #000;
}

@media (max-width: 860px) {
  .theme-popover {
    right: -10px;
    width: min(300px, calc(100vw - 20px));
  }

  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .desktop {
    min-height: var(--tg-viewport-height);
    overflow-x: hidden;
    overflow-y: auto;
    padding: calc(70px + env(safe-area-inset-top)) 12px calc(96px + env(safe-area-inset-bottom));
  }

  body.is-telegram-webapp .desktop {
    height: var(--tg-viewport-height);
    max-height: var(--tg-viewport-height);
  }

  .desktop.is-mobile-modal-host {
    overflow: hidden;
  }

  .menubar {
    grid-template-columns: auto 1fr;
    gap: 10px;
    min-height: 58px;
    padding: env(safe-area-inset-top) 12px 0;
  }

  .menu {
    display: none;
  }

  .statusbar {
    display: flex;
    justify-self: end;
    gap: 8px;
    min-width: 0;
  }

  .clock {
    min-width: 40px;
    font-size: 14px;
  }

  .battery__text {
    font-size: 10px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 0 24px;
  }

  .readout {
    top: 170px;
    left: -8px;
    right: -8px;
    font-size: clamp(22px, 9vw, 48px);
    overflow: hidden;
  }

  .hero__copy {
    padding-bottom: 0;
  }

  .hero-logo-title {
    width: min(82vw, 360px);
    animation: mobileLogoSpin 18s linear infinite;
    transform-origin: 50% 50%;
  }

  .folders {
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 18px 12px;
  }

  .folder {
    display: grid;
    justify-items: center;
    align-content: start;
    min-height: 142px;
    padding: 8px 6px;
    text-align: center;
  }

  .folder__icon {
    width: clamp(72px, 24vw, 96px);
  }

  .folder__name {
    margin-top: 8px;
    font-size: clamp(14px, 4vw, 18px);
    line-height: 1.05;
  }

  .folder__meta {
    font-size: 10px;
  }

  .window {
    position: fixed;
    z-index: 25;
    inset: calc(58px + env(safe-area-inset-top)) 0 0;
    width: 100%;
    height: calc(var(--tg-viewport-height) - 58px - env(safe-area-inset-top));
    max-height: none;
    margin: 0;
    overflow: hidden;
    border-top-width: 1px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    box-shadow: none;
    background: rgba(5, 5, 5, 0.985);
  }

  body[data-theme="bimbo"] .window {
    background: var(--theme-panel-strong);
  }

  body[data-theme="bimbo"] .window__body {
    background: transparent;
  }

  .mobile-modal-backdrop {
    display: none !important;
  }

  .mobile-modal-backdrop[hidden] {
    display: none;
  }

  .window:not(.is-open) {
    display: none;
  }

  .window.is-open {
    display: flex;
    flex-direction: column;
  }

  .window__bar {
    position: sticky;
    top: 0;
    z-index: 5;
    min-height: 42px;
    padding: 7px 10px;
  }

  .window__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 12px 12px calc(28px + env(safe-area-inset-bottom));
  }

  .window--afisha,
  .window--music,
  .window--archive,
  .window--social,
  .window--game,
  .window--tg,
  .window--inst,
  .window--tt {
    inset: calc(58px + env(safe-area-inset-top)) 0 0;
    width: 100%;
  }

  .afisha,
  .player {
    grid-template-columns: 1fr;
  }

  .event--main {
    min-height: 210px;
  }

  .event h3,
  .player h3 {
    font-size: clamp(24px, 9vw, 40px);
    overflow-wrap: anywhere;
  }

  .event__details div {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .event__details dd {
    overflow-wrap: anywhere;
  }

  .disc {
    width: 96px;
  }

  .archive {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .gallery-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .archive-switch {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    overflow: auto;
    padding-right: 0;
  }

  .gallery-item {
    aspect-ratio: 1.12 / 1;
  }

  .gallery-viewer {
    position: fixed;
    inset: calc(78px + env(safe-area-inset-top)) 10px calc(18px + env(safe-area-inset-bottom));
    grid-template-columns: 38px 1fr 38px;
    padding: 14px 10px 10px;
  }

  .gallery-video-player {
    align-self: start;
  }

  .gallery-video-player video {
    max-height: 38svh;
  }

  .gallery-video-player__controls {
    position: static;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: 10px;
    padding: 10px;
  }

  .gallery-viewer img {
    height: calc(var(--tg-viewport-height) - 194px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .gallery-viewer__nav {
    width: 38px;
    height: 54px;
  }

  .social {
    min-height: 100%;
  }

  .social__screen {
    min-height: 0;
    padding: 12px;
  }

  .window--inst .social__screen::after,
  .window--tg .social__screen::after {
    display: none;
  }

  .social h3 {
    font-size: clamp(28px, 12vw, 48px);
    overflow-wrap: anywhere;
  }

  .telegram-head,
  .instagram-head {
    display: grid;
    gap: 8px;
  }

  .telegram-head__meta,
  .instagram-head__meta {
    text-align: left;
  }

  .telegram-feed,
  .instagram-feed {
    max-height: none;
    padding-right: 0;
  }

  .instagram-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .telegram-post__meta,
  .instagram-post__meta {
    flex-wrap: wrap;
  }

  .game {
    min-height: 100%;
  }

  .game__stage {
    aspect-ratio: 1.55 / 1;
    max-height: none;
    min-height: 228px;
  }

  .account-modal {
    align-items: stretch;
    padding: 10px;
  }

  .account-card {
    max-height: calc(100svh - 20px);
  }

  .account-profile__identity {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .account-profile__social,
  .account-profile__feed-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .social-shell {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 10px 86px;
  }

  .social-sidebar {
    display: none;
  }

  .social-main {
    order: 1;
    display: grid;
    gap: 12px;
  }

  .social-page[data-social-view="feed"] .social-mobile-pins {
    display: block;
  }

  .social-auth,
  .social-feed,
  .social-profile-view {
    min-height: auto;
  }

  .social-tabbar {
    position: fixed;
    z-index: 30;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: min(100% - 20px, 520px);
    margin: 0 auto 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: rgba(5, 5, 5, 0.94);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
  }

  .social-tabbar a,
  .social-tabbar button {
    min-height: 46px;
    font-size: 12px;
  }

  .social-profile-card__body {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .social-profile-card__avatar {
    width: 86px;
  }

  .game__intro {
    inset: 10px;
  }

  .game__intro strong {
    font-size: clamp(26px, 11vw, 44px);
  }

  .game__hud,
  .game__topline {
    flex-wrap: wrap;
  }

  .inspector {
    display: none;
  }

  .dock {
    bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .dock button,
  .dock a {
    width: 42px;
  }

  .mini-player {
    position: fixed;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    z-index: 30;
    grid-template-columns: auto auto auto minmax(0, 1fr) auto;
    width: auto;
    padding: 8px;
    transform: none;
  }

  #mini-player-time {
    display: none;
  }

}

@media (max-width: 470px) {
  .theme-popover {
    position: fixed;
    top: calc(68px + env(safe-area-inset-top));
    right: 10px;
    left: 10px;
    width: auto;
  }

  .desktop {
    padding-inline: 10px;
  }

  .brand {
    width: 42px;
    height: 42px;
  }

  .folders {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
  }

  .folder {
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: start;
    min-height: 132px;
    text-align: center;
  }

  .folder__icon {
    width: 72px;
  }

  .folder__meta {
    grid-column: auto;
  }

  .afisha {
    display: block;
  }

  .event {
    margin-top: 10px;
  }

  .archive {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .gallery-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .archive-switch {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: auto;
    padding-right: 0;
  }

  .gallery-item {
    aspect-ratio: 1.12 / 1;
  }

  .gallery-viewer {
    position: fixed;
    inset: calc(80px + env(safe-area-inset-top)) 10px calc(18px + env(safe-area-inset-bottom));
    grid-template-columns: 38px 1fr 38px;
    padding: 14px 10px 10px;
  }

  .gallery-video-player {
    align-self: start;
  }

  .gallery-video-player video {
    max-height: 34svh;
  }

  .gallery-video-player__controls {
    position: static;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: 10px;
    padding: 10px;
  }

  .gallery-viewer img {
    height: calc(var(--tg-viewport-height) - 188px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .gallery-viewer__nav {
    width: 38px;
    height: 54px;
  }

  .player {
    grid-template-columns: 1fr;
  }

  .music-seek {
    grid-template-columns: 1fr;
  }

  .tracklist button {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .instagram-feed {
    grid-template-columns: 1fr;
  }

  .social__screen {
    border-left: 0;
    border-right: 0;
  }

  .window--inst .window__body {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .game__stage {
    aspect-ratio: 1.15 / 1;
    min-height: 260px;
  }

  .mini-player {
    grid-template-columns: auto auto auto auto;
  }

  .mini-player__meta {
    grid-column: 1 / -1;
  }

  .mini-player__actions {
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
  }
}

@keyframes load {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes bootOut {
  to {
    opacity: 0;
    filter: blur(6px);
    visibility: hidden;
  }
}

@keyframes desktopIn {
  to {
    opacity: 1;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes mobileLogoSpin {
  to { transform: rotate(360deg); }
}

@keyframes meter {
  to { width: 93%; }
}

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