:root {
  --bg: #09090b;
  --bg-elevated: #111113;
  --surface: #18181b;
  --surface-hover: #1f1f23;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --accent: #a3e635;
  --accent-soft: rgba(163, 230, 53, 0.12);
  --accent-text: #c8f05a;
  --text: #f4f4f5;
  --text-secondary: #a1a1aa;
  --danger: #fb7185;
  --radius: 14px;
  --nav-h: 64px;
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 450;
  letter-spacing: -0.01em;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(163, 230, 53, 0.14), transparent),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(56, 189, 248, 0.08), transparent),
    linear-gradient(180deg, #0c0c0e 0%, var(--bg) 40%);
  background-attachment: fixed;
}

/* Cursor 02 on links instead of default hand */
a,
a:hover,
a:focus,
a:active,
.quick-link,
.dropdown-item,
.nav-link,
.link-accent,
.btn[href],
summary {
  cursor: url("/assets/cursors/hottabych.net_cursors_02.cur"), pointer;
}

#hottab {
  position: fixed !important;
  z-index: 2147483647 !important;
  pointer-events: none !important;
}

.font-mono, pre, code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0;
}

.bg-panel {
  background: rgba(9, 9, 11, 0.72) !important;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.text-accent, .link-accent { color: var(--accent-text) !important; }
.link-accent:hover { color: #dff99a !important; }

.brand-mark {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text) !important;
}

.brand-mark span { color: var(--accent); }

.site-nav {
  border-bottom: 1px solid var(--border) !important;
  min-height: var(--nav-h);
}

.site-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem !important;
  border-radius: 999px;
  transition: color .15s, background .15s;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active,
.site-nav .dropdown-item.active {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.05);
}

.dropdown-menu-dark {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0.4rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.dropdown-menu-dark .dropdown-item {
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  color: var(--text-secondary);
}

.dropdown-menu-dark .dropdown-item:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(163, 230, 53, 0.08) 0%, transparent 42%),
    linear-gradient(180deg, #141416 0%, #0e0e10 100%);
  padding: clamp(2rem, 5vw, 4rem) !important;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.7;
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid rgba(163, 230, 53, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.hero-title span { color: var(--accent); }

.hero-lead {
  max-width: 34rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}

.surface-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(24, 24, 27, 0.7);
  backdrop-filter: blur(8px);
}

.page-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.page-title::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.65rem;
  margin-bottom: 0.15rem;
  border-radius: 2px;
  background: var(--accent);
  vertical-align: middle;
}

.card-hack {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, background .2s, transform .2s;
}

.card-hack:hover {
  border-color: rgba(163, 230, 53, 0.35);
  background: var(--surface-hover);
  transform: translateY(-3px);
}

.btn-hack {
  --bs-btn-color: #09090b;
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: #b8f04a;
  --bs-btn-hover-border-color: #b8f04a;
  --bs-btn-hover-color: #09090b;
  --bs-btn-font-weight: 700;
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  letter-spacing: -0.01em;
}

.btn-outline-hack {
  --bs-btn-color: var(--text);
  --bs-btn-border-color: var(--border-strong);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.06);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.22);
  --bs-btn-hover-color: #fff;
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
}

.btn-sm.btn-hack,
.btn-sm.btn-outline-hack {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.table-hack {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--border);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
  --bs-table-hover-bg: var(--accent-soft);
}

.table-hack th {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legacy-content {
  line-height: 1.7;
  color: var(--text-secondary);
}

.legacy-content .legacy-cell { margin-bottom: 0.85rem; }

.legacy-content p { line-height: 1.7; color: var(--text-secondary); }

.legacy-content strong,
.legacy-content h2 {
  color: var(--text);
}

.legacy-content a { color: var(--accent-text); }

.legacy-content a.btn-hack,
.legacy-content a.btn-hack:hover,
.legacy-content a.btn-hack:focus {
  color: #09090b !important;
}

.legacy-content a.btn-outline-hack,
.legacy-content a.btn-outline-hack:hover,
.legacy-content a.btn-outline-hack:focus {
  color: var(--text) !important;
}

.legacy-content a.btn-outline-hack:hover {
  color: #fff !important;
}

.gallery-thumb {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: #000;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.userbar-thumb {
  width: 100%;
  max-height: 40px;
  object-fit: contain;
  background: #000;
  border-radius: 8px;
}

.wallpaper-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.badge-offline {
  background: rgba(251, 113, 133, 0.12);
  color: var(--danger);
  border: 1px solid rgba(251, 113, 133, 0.3);
  border-radius: 999px;
  font-weight: 600;
}

.footer {
  border-top: 1px solid var(--border) !important;
  color: var(--text-secondary);
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.45;
}

.footer-text sup {
  font-size: 0.65em;
  top: -0.4em;
}

.section-grid a.quick-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: border-color .2s, background .2s, transform .2s;
}

.section-grid a.quick-link i {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-text) !important;
}

.section-grid a.quick-link:hover {
  border-color: rgba(163, 230, 53, 0.4);
  background: var(--surface-hover);
  transform: translateY(-2px);
  color: var(--text);
}

.motd {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.motd .prompt { color: var(--accent-text); }

.text-secondary { color: var(--text-secondary) !important; }

.img-fluid.rounded-3.border {
  border-color: var(--border) !important;
}

.review-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
}

.review-card .review-title {
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.review-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.review-card p:last-child { margin-bottom: 0; }

.legacy-content strong {
  color: var(--text);
  font-weight: 600;
}

.cursor-preview {
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: pixelated;
  background: #000;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 8px;
}

.cursor-all-preview {
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
  background: #000;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px;
}

.sm-sprite {
  width: 54px;
  height: auto;
  image-rendering: pixelated;
  background: rgba(0,0,0,.35);
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 6px;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  padding: 1.5rem;
}

.lightbox-overlay.is-open { display: flex; }

.lightbox-img {
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.25rem;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-nav:hover { background: rgba(163, 230, 53, 0.2); }

.flash-banner {
  background: #012933;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.flash-banner-home {
  background: transparent;
  border: 0;
}

.flash-banner-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flash-banner-shapka {
  position: relative;
  min-height: 100px;
}

.flash-banner-shapka object,
.flash-banner-shapka ruffle-player {
  max-width: 100%;
  width: 870px !important;
  height: 100px !important;
}

.flash-banner-futb object,
.flash-banner-futb ruffle-player {
  width: 142px !important;
  height: 600px !important;
  max-width: 100%;
}

.flash-banner-main {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #012933;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.flash-banner-main object,
.flash-banner-main ruffle-player {
  display: block;
  width: 570px !important;
  height: 350px !important;
  max-width: 100%;
  border-radius: var(--radius);
}

.ost-play.is-playing {
  background: var(--accent-soft);
  color: var(--accent-text) !important;
  border-color: rgba(163, 230, 53, 0.45) !important;
}

body.ost-dock-open .ost-table-wrap {
  margin-bottom: 5.5rem;
}

.ost-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  background: rgba(9, 9, 11, 0.92);
  border-top: 1px solid var(--border-strong);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  padding: 0.75rem 0;
}

.ost-dock[hidden] {
  display: none !important;
}

.ost-dock-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1.4fr) auto auto;
  gap: 0.75rem 1rem;
  align-items: center;
}

.ost-dock-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ost-dock-label {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.ost-dock-title {
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ost-dock-controls {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.ost-dock-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.ost-time {
  font-size: 0.72rem;
  color: var(--text-secondary);
  min-width: 2.4rem;
}

.ost-seek,
.ost-volume {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
}

.ost-seek {
  flex: 1;
  min-width: 0;
}

.ost-volume {
  width: 88px;
}

.ost-seek::-webkit-slider-thumb,
.ost-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 0;
}

.ost-seek::-moz-range-thumb,
.ost-volume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 0;
}

.ost-dock-volume {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ost-dock-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  line-height: 1;
}

@media (max-width: 900px) {
  .ost-dock-inner {
    grid-template-columns: 1fr auto auto;
    grid-template-areas:
      "meta controls close"
      "progress progress progress"
      "volume volume volume";
  }

  .ost-dock-meta { grid-area: meta; }
  .ost-dock-controls { grid-area: controls; justify-self: end; }
  .ost-dock-progress { grid-area: progress; }
  .ost-dock-volume { grid-area: volume; }
  .ost-dock-close { grid-area: close; justify-self: end; }

  .ost-volume {
    flex: 1;
    width: auto;
  }
}

@media (max-width: 900px) {
  .flash-banner-shapka object,
  .flash-banner-shapka ruffle-player {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 870 / 100;
  }

  .flash-banner-futb object,
  .flash-banner-futb ruffle-player {
    width: 120px !important;
    height: 506px !important;
  }

  .flash-banner-main object,
  .flash-banner-main ruffle-player {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 570 / 350;
  }
}

.wallpaper-thumb,
a.lightbox-trigger img {
  cursor: zoom-in;
}

.video-embed {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* SigComments — только оболочка; содержимое iframe стилизуется в кабинете SigComments */
.sigcomments-wrap,
#sigCommentsBlock {
  min-height: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

#sigCommentsBlock #sigCommentsLoading {
  background: var(--surface) !important;
  color: var(--text-secondary);
  padding: 2rem !important;
  width: auto !important;
  margin: 0 auto !important;
}

#sigCommentsBlock #chatBlockBox {
  background: transparent;
}

#sigCommentsBlock iframe#gChatFrame,
#sigCommentsBlock iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  border: 0 !important;
  border-radius: 0;
  background: #111113;
  color-scheme: dark;
}

/* —— Чат с Кисой —— */
.kisa-chat-shell {
  display: flex;
  flex-direction: column;
  min-height: min(68vh, 640px);
  width: 100%;
  max-width: none;
}

.kisa-chat-log {
  flex: 1 1 auto;
  min-height: 280px;
  max-height: min(58vh, 520px);
  overflow-y: auto;
  padding: 1.1rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(163, 230, 53, 0.04), transparent 28%),
    var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  line-height: 1.55;
}

.kisa-line {
  margin-bottom: 0.55rem;
  word-break: break-word;
}

.kisa-who {
  font-weight: 600;
}

.kisa-who-kisa { color: var(--accent-text); }
.kisa-who-user { color: #7dd3fc; }

.kisa-msg .kisa-link {
  word-break: break-all;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kisa-line-typing .kisa-msg {
  color: var(--text-secondary);
  font-style: italic;
  animation: kisa-blink 1.1s ease-in-out infinite;
}

.kisa-line-offline .kisa-msg {
  color: var(--danger);
}

@keyframes kisa-blink {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.kisa-chat-form {
  display: flex;
  gap: 0.65rem;
  padding: 0.9rem 1rem 0.35rem;
  align-items: stretch;
}

.kisa-chat-input {
  flex: 1 1 auto;
  background: var(--bg) !important;
  border: 1px solid var(--border-strong) !important;
  color: var(--text) !important;
  border-radius: 10px !important;
  padding: 0.65rem 0.9rem !important;
}

.kisa-chat-input:focus {
  border-color: rgba(163, 230, 53, 0.45) !important;
  box-shadow: 0 0 0 3px var(--accent-soft) !important;
}

.kisa-chat-send {
  flex: 0 0 auto;
  white-space: nowrap;
}

.kisa-chat-hint {
  padding: 0 1rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.kisa-chat-hint.is-error {
  color: var(--danger);
}

.kisa-chat-about {
  max-width: 52rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.kisa-page-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.kisa-avatar {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(163, 230, 53, 0.45);
  box-shadow: 0 0 0 4px rgba(163, 230, 53, 0.08), 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform .15s ease, box-shadow .15s ease;
}

a.kisa-avatar-link {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
  border-radius: 50%;
}

a.kisa-avatar-link:hover .kisa-avatar,
a.kisa-avatar-link:focus-visible .kisa-avatar {
  transform: scale(1.04);
  box-shadow: 0 0 0 4px rgba(163, 230, 53, 0.16), 0 12px 32px rgba(0, 0, 0, 0.4);
}

.kisa-page-head-text .page-title {
  margin-bottom: 0.25rem;
}

.kisa-page-tagline {
  font-size: 0.95rem;
}

@media (max-width: 576px) {
  .kisa-avatar {
    width: 72px;
    height: 72px;
  }
}

.kisa-about {
  padding: 1.25rem 1.35rem 1.4rem;
  border-left: 3px solid var(--accent);
  background:
    linear-gradient(135deg, rgba(163, 230, 53, 0.06), transparent 42%),
    rgba(24, 24, 27, 0.7);
}

.kisa-about-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.65rem;
}

.kisa-about-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 576px) {
  .kisa-chat-form {
    flex-direction: column;
  }
  .kisa-chat-send {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-hack:hover,
  .section-grid a.quick-link:hover {
    transform: none;
  }
  .kisa-line-typing .kisa-msg {
    animation: none;
  }
}
