  * { box-sizing: border-box; margin: 0; padding: 0; }
  /*
   * overflow-x: clip, а не hidden.
   *
   * hidden создаёт собственный контейнер прокрутки, и тогда position: sticky
   * внутри страницы перестаёт работать — липкий элемент «прилипает» к этому
   * контейнеру, который сам не прокручивается, и просто уезжает вместе с
   * текстом. clip обрезает выход за край, но контейнера не создаёт.
   */
  html { scroll-behavior: smooth; overflow-x: clip; }

  :root {
    --ga-lime: #d4f000;
    --ga-lime-dim: #a8c200;
    --ga-purple: #a855f7;
    --ga-purple-deep: #7c3aed;
    --ga-pink: #ec4899;
    --ga-pink-deep: #db2777;

    --ga-bg-1: #0a0a0a;
    --ga-bg-2: #121212;
    --ga-bg-3: #1a1a1a;
    --ga-text: #f5f5f5;
    --ga-text-dim: #8a8a8a;
    --ga-border: rgba(255, 255, 255, 0.1);
  }

  body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--ga-text);
    min-height: 100vh;
    background:
      radial-gradient(circle at 20% 20%, rgba(212, 240, 0, 0.06) 0%, transparent 50%),
      radial-gradient(circle at 80% 30%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
      radial-gradient(circle at 50% 90%, rgba(236, 72, 153, 0.06) 0%, transparent 55%),
      linear-gradient(135deg, var(--ga-bg-1), var(--ga-bg-2));
    background-attachment: fixed;
    /* См. пояснение у html: clip не мешает position: sticky. */
    overflow-x: clip;
  }

  body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(160px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
  }
  body::before {
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--ga-lime), transparent 70%);
    top: -200px; left: -200px;
    animation: float1 22s ease-in-out infinite;
  }
  body::after {
    width: 700px; height: 700px;
    background: radial-gradient(circle, var(--ga-purple), transparent 70%);
    bottom: -250px; right: -250px;
    animation: float2 26s ease-in-out infinite;
  }
  @keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(120px, 80px) scale(1.15); }
  }
  @keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-140px, -80px) scale(1.1); }
  }

  .app {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  .main-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 24px 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
  }

  .top-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 30;
    margin-bottom: 28px;
    flex-wrap: wrap;
  }

  .top-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .brand {
    padding: 7px 16px;
    border-radius: 30px;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--ga-border);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ga-text);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    white-space: nowrap;
  }
  .brand .brand-star {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px rgba(212, 240, 0, 0.7));
  }
  .brand .brand-star svg {
    width: 100%; height: 100%;
    display: block;
    fill: url(#brand-grad);
  }
  .brand .brand-text {
    background: linear-gradient(135deg, var(--ga-lime), var(--ga-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 800;
  }

  .server-time {
    padding: 7px 16px;
    border-radius: 30px;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--ga-border);
    font-size: 12px;
    font-weight: 600;
    color: var(--ga-lime);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    white-space: nowrap;
  }

  .account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px 7px 10px;
    border-radius: 30px;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--ga-border);
    color: var(--ga-text);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
    font-family: inherit;
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
  }
  .account-btn:hover {
    border-color: rgba(212, 240, 0, 0.45);
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.5),
      0 0 22px rgba(212, 240, 0, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
  }

  /* ===== РђР’РђРўРђР  РџРћР›Р¬Р—РћР’РђРўР•Р›РЇ ===== */
  .user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #000;
    flex-shrink: 0;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--ga-lime), var(--ga-purple));
    overflow: hidden;
    position: relative;
  }
  .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
  }

  /* ===== Р‘РћР›Р¬РЁРћР™ РђР’РђРўРђР  Р’ РџР РћР¤РР›Р• ===== */
  .avatar-editor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ga-border);
    border-radius: 14px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
  }

  .avatar-preview {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--ga-lime), var(--ga-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 800;
    color: #000;
    text-transform: uppercase;
    box-shadow:
      0 10px 30px rgba(168, 85, 247, 0.35),
      0 0 0 3px rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
  }
  .avatar-preview:hover {
    transform: scale(1.04);
    box-shadow:
      0 14px 40px rgba(168, 85, 247, 0.5),
      0 0 0 3px rgba(212, 240, 0, 0.4);
  }
  .avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .avatar-preview .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    color: var(--ga-lime);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
  }
  .avatar-preview:hover .overlay { opacity: 1; }

  .avatar-actions {
    display: flex;
    gap: 8px;
    width: 100%;
  }

  .avatar-action-btn {
    flex: 1;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--ga-text);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .avatar-action-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
  }
  .avatar-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }
  .avatar-action-btn.primary {
    background: linear-gradient(135deg, rgba(212, 240, 0, 0.18), rgba(168, 85, 247, 0.18));
    border-color: rgba(212, 240, 0, 0.4);
    color: var(--ga-lime);
  }
  .avatar-action-btn.primary:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(212, 240, 0, 0.3), rgba(168, 85, 247, 0.3));
  }
  .avatar-action-btn.danger {
    border-color: rgba(255, 107, 107, 0.35);
    background: rgba(255, 107, 107, 0.08);
    color: #ff8b8b;
  }
  .avatar-action-btn.danger:hover:not(:disabled) {
    background: rgba(255, 107, 107, 0.18);
  }

  .avatar-hint {
    font-size: 11px;
    color: var(--ga-text-dim);
    text-align: center;
    line-height: 1.5;
  }

  .hero {
    text-align: center;
    margin-bottom: 36px;
  }
  .hero h1 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--ga-lime), var(--ga-purple), var(--ga-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 10px;
    line-height: 1.15;
  }
  .hero p {
    font-size: clamp(14px, 2vw, 16px);
    color: var(--ga-text-dim);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
  }

  .filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    align-items: center;
    justify-content: center;
  }
  .filter-btn {
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ga-text-dim);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    letter-spacing: 0.3px;
    white-space: nowrap;
  }
  .filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--ga-text);
    transform: translateY(-1px);
  }
  .filter-btn.active {
    background: linear-gradient(135deg, var(--ga-lime), var(--ga-lime-dim));
    color: #000;
    border-color: transparent;
    box-shadow: 0 4px 18px rgba(212, 240, 0, 0.35);
  }
  .filter-btn.active.purple {
    background: linear-gradient(135deg, var(--ga-purple), var(--ga-purple-deep));
    color: #fff;
    box-shadow: 0 4px 18px rgba(168, 85, 247, 0.5);
  }
  .filter-btn.active.pink {
    background: linear-gradient(135deg, var(--ga-pink), var(--ga-pink-deep));
    color: #fff;
    box-shadow: 0 4px 18px rgba(236, 72, 153, 0.5);
  }

  .boss-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    align-content: start;
  }

  /* Разделы таймера: мировые боссы и элитные монстры. */
  .boss-section { margin-bottom: 28px; }
  .boss-section:last-child { margin-bottom: 0; }
  .boss-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding-bottom: 9px;
    font-size: 16px;
    border-bottom: 1px solid var(--ga-border);
  }
  .boss-section-count {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    color: var(--ga-text-dim);
    background: rgba(255, 255, 255, 0.07);
  }

  /* Время возрождения, которого нет на вики, помечаем иначе. */
  .boss-level.assumed {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--ga-border);
    color: var(--ga-text-dim);
    cursor: help;
  }

  .boss-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(20, 20, 20, 0.95), rgba(12, 12, 12, 0.98));
    border: 1px solid var(--ga-border);
    padding: 18px;
    box-shadow:
      0 8px 28px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.25s, border-color 0.25s;
    animation: fadeIn 0.4s ease both;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .boss-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 240, 0, 0.3);
    box-shadow:
      0 16px 44px rgba(0, 0, 0, 0.7),
      0 0 0 1px rgba(212, 240, 0, 0.15),
      0 0 40px rgba(212, 240, 0, 0.08);
  }
  .boss-card.spawned {
    border-color: rgba(212, 240, 0, 0.55);
    box-shadow:
      0 8px 28px rgba(0, 0, 0, 0.55),
      0 0 34px rgba(212, 240, 0, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  .boss-card.spawned::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    pointer-events: none;
    animation: spawnPulse 1.8s ease-in-out infinite;
    border: 1px solid rgba(212, 240, 0, 0.4);
  }
  @keyframes spawnPulse {
    0%, 100% { opacity: 0.3; }
    50%      { opacity: 0.8; }
  }

  .boss-card.idle {
    opacity: 0.85;
    border-style: dashed;
  }
  .boss-card.idle:hover {
    opacity: 1;
    border-style: solid;
  }

  .boss-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    /* Длинное имя оставляет плашке со временем слишком мало места, и слова
       начинали рваться по слогам («Превосход/ный»). Разрешаем плашке уйти на
       свою строку: тогда имя получает всю ширину карточки. */
    flex-wrap: wrap;
  }

  .boss-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
  }

  .boss-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
      0 4px 14px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    display: block;
  }
  .boss-card:hover .boss-icon {
    transform: scale(1.06);
    border-color: rgba(212, 240, 0, 0.4);
    box-shadow:
      0 6px 20px rgba(0, 0, 0, 0.6),
      0 0 20px rgba(212, 240, 0, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  .boss-card.spawned .boss-icon {
    border-color: rgba(212, 240, 0, 0.6);
    box-shadow:
      0 6px 20px rgba(0, 0, 0, 0.6),
      0 0 24px rgba(212, 240, 0, 0.45);
  }
  .boss-card.idle .boss-icon {
    filter: grayscale(0.7) brightness(0.8);
  }
  .boss-card.idle:hover .boss-icon {
    filter: grayscale(0.2) brightness(1);
  }

  .boss-icon-fallback {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    background: linear-gradient(135deg, rgba(212, 240, 0, 0.12), rgba(168, 85, 247, 0.12));
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow:
      0 4px 14px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .boss-name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    /* Переносим по словам, а внутри слова — только если оно совсем не
       помещается. С прежним `word-break: break-word` браузер сжимал блок
       почти до одной буквы и рвал имена посередине («Зверомо/р»). */
    word-break: normal;
    overflow-wrap: break-word;
    line-height: 1.2;
  }

  /*
   * Текст имени переносится и сжимается. Без min-width: 0 длинное слово
   * вроде «Баксбакуалануксивайе» не давало блоку ужаться: имя вылезало за
   * карточку и наезжало на плашку со временем возрождения.
   */
  .boss-name-text {
    min-width: 0;
    overflow-wrap: break-word;
  }

  /* Плашку со временем не сжимаем и прижимаем вправо — в том числе когда
     она переехала на отдельную строку. */
  .boss-header .boss-level { flex-shrink: 0; margin-left: auto; }

  /*
   * Длинное имя забирает всю строку, а время возрождения переезжает под него.
   * Иначе плашка отнимала у имени половину ширины, и слова ломались посередине
   * («Превосход/ный», «пожирател/ь»).
   */
  .boss-header.long-name .boss-title { min-width: 100%; }

  .boss-name .boss-star {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    fill: var(--ga-purple);
    filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.6));
  }

  .boss-level {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: var(--ga-purple);
    white-space: nowrap;
    flex-shrink: 0;
  }

  .boss-location {
    font-size: 12px;
    color: var(--ga-text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: -6px;
  }

  .timer-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
  }

  .timer-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ga-text-dim);
  }

  .timer-value {
    font-size: 30px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    color: var(--ga-lime);
    text-shadow: 0 0 24px rgba(212, 240, 0, 0.3);
    line-height: 1;
    transition: color 0.3s;
  }
  .timer-value.spawned-text {
    color: var(--ga-lime);
    text-shadow: 0 0 32px rgba(212, 240, 0, 0.6);
    animation: textPulse 1.6s ease-in-out infinite;
  }
  @keyframes textPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.7; }
  }
  .timer-value.idle-text {
    color: var(--ga-text-dim);
    text-shadow: none;
    font-size: 18px;
    letter-spacing: 0.5px;
  }

  .timer-bar {
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
  }
  .timer-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--ga-lime), var(--ga-purple));
    transition: width 1s linear;
    box-shadow: 0 0 12px rgba(212, 240, 0, 0.5);
  }
  .timer-bar-fill.spawned-fill {
    background: var(--ga-lime);
    box-shadow: 0 0 18px rgba(212, 240, 0, 0.8);
    animation: fillPulse 1.4s ease-in-out infinite;
  }
  .timer-bar-fill.idle-fill {
    background: rgba(138, 138, 138, 0.3);
    box-shadow: none;
  }
  @keyframes fillPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.6; }
  }

  .boss-actions {
    display: flex;
    gap: 8px;
    margin-top: 2px;
  }

  .action-btn {
    flex: 1;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--ga-text);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  .action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
  }
  .action-btn.killed {
    background: linear-gradient(135deg, rgba(212, 240, 0, 0.15), rgba(168, 85, 247, 0.15));
    border-color: rgba(212, 240, 0, 0.4);
    color: var(--ga-lime);
  }
  .action-btn.killed:hover {
    background: linear-gradient(135deg, rgba(212, 240, 0, 0.25), rgba(168, 85, 247, 0.25));
  }
  .action-btn.start {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(124, 58, 237, 0.2));
    border-color: rgba(168, 85, 247, 0.45);
    color: var(--ga-purple);
  }
  .action-btn.start:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(124, 58, 237, 0.35));
  }
  .action-btn.reset {
    background: rgba(255, 255, 255, 0.04);
    color: var(--ga-text-dim);
    flex: 0 0 auto;
    padding: 9px 14px;
  }
  .action-btn.reset:hover {
    color: var(--ga-text);
    background: rgba(255, 255, 255, 0.1);
  }

  .empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--ga-text-dim);
    font-size: 15px;
    min-height: 240px;
    text-align: center;
    padding: 40px 20px;
  }
  .empty .big {
    font-size: 52px;
    opacity: 0.4;
    animation: pulse 2.5s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50%      { transform: scale(1.1); opacity: 0.65; }
  }

  .info-banner {
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: var(--ga-text-dim);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }
  .info-banner .icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1;
  }
  .info-banner strong {
    color: var(--ga-lime);
    font-weight: 700;
  }

  .status {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    color: var(--ga-text-dim);
    pointer-events: none;
    z-index: 199;
    padding: 8px 18px;
    border-radius: 12px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--ga-border);
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  }
  .status.visible { opacity: 1; }
  .status.ok { color: var(--ga-lime); }
  .status.err { color: #ff6b6b; }

  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn 0.25s ease;
    overflow: hidden;
  }

  .modal {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(160deg, #141414, #0e0e0e);
    border: 1px solid var(--ga-border);
    border-radius: 20px;
    padding: 28px;
    box-shadow:
      0 30px 80px rgba(0, 0, 0, 0.85),
      0 0 0 1px rgba(212, 240, 0, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: modalIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25), transparent 70%);
    pointer-events: none;
  }
  .modal::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 240, 0, 0.18), transparent 70%);
    pointer-events: none;
  }

  @keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }

  .modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--ga-border);
    color: var(--ga-text-dim);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
    font-family: inherit;
  }
  .modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--ga-text);
    transform: rotate(90deg);
  }

  .modal-head {
    position: relative;
    z-index: 1;
    margin-bottom: 22px;
    text-align: center;
  }

  .modal-head .logo {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--ga-lime), var(--ga-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.35);
  }
  .modal-head .logo svg {
    width: 30px; height: 30px;
    fill: #000;
  }

  .modal-head h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
  }
  .modal-head p {
    font-size: 13px;
    color: var(--ga-text-dim);
    line-height: 1.5;
  }

  .form-group {
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
  }
  .form-group label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ga-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
  }
  .form-group input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--ga-text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  }
  .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.28);
  }
  .form-group input:focus {
    border-color: var(--ga-lime);
    background: rgba(212, 240, 0, 0.05);
    box-shadow: 0 0 0 3px rgba(212, 240, 0, 0.12);
  }

  .form-error {
    font-size: 12.5px;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.25);
    padding: 9px 12px;
    border-radius: 10px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
    animation: shake 0.35s ease;
    word-break: break-word;
  }
  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-6px); }
    75%      { transform: translateX(6px); }
  }

  .form-success {
    font-size: 12.5px;
    color: var(--ga-lime);
    background: rgba(212, 240, 0, 0.1);
    border: 1px solid rgba(212, 240, 0, 0.3);
    padding: 9px 12px;
    border-radius: 10px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
    word-break: break-word;
  }

  .submit-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ga-lime), var(--ga-purple));
    color: #000;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.25s, opacity 0.2s;
    font-family: inherit;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.35);
    position: relative;
    z-index: 1;
  }
  .submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 34px rgba(168, 85, 247, 0.55);
  }
  .submit-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
  }
  .submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .profile {
    position: relative;
    z-index: 1;
  }

  .profile-info {
    min-width: 0;
    flex: 1;
    text-align: center;
  }
  .profile-info h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 3px;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .profile-info span {
    font-size: 12px;
    color: var(--ga-text-dim);
  }

  .profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }
  .stat {
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ga-border);
    border-radius: 12px;
    text-align: center;
    min-width: 0;
  }
  .stat .val {
    font-size: 20px;
    font-weight: 800;
    color: var(--ga-lime);
    font-variant-numeric: tabular-nums;
    margin-bottom: 3px;
    word-break: break-word;
  }
  .stat.purple .val { color: var(--ga-purple); }
  .stat .lbl {
    font-size: 11px;
    color: var(--ga-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
  }

  .logout-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 107, 107, 0.35);
    background: rgba(255, 107, 107, 0.08);
    color: #ff8b8b;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    position: relative;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .logout-btn:hover {
    background: rgba(255, 107, 107, 0.18);
    border-color: rgba(255, 107, 107, 0.6);
    transform: translateY(-1px);
  }

  .fx-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1001;
    overflow: hidden;
  }
  .fx-glow {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 18% 50%, rgba(212, 240, 0, 0.20) 0%, transparent 42%),
      radial-gradient(circle at 82% 50%, rgba(168, 85, 247, 0.20) 0%, transparent 42%);
    animation: glowPulse 1.6s ease-in-out forwards;
  }
  @keyframes glowPulse {
    0%   { opacity: 0; }
    40%  { opacity: 1; }
    100% { opacity: 0; }
  }
  .star {
    position: absolute;
    width: var(--size, 26px);
    height: var(--size, 26px);
    pointer-events: none;
    opacity: 0;
    animation: starPop var(--dur, 1.4s) cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: var(--delay, 0s);
    filter: drop-shadow(0 0 6px currentColor);
  }
  .star svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
  }
  @keyframes starPop {
    0%   { opacity: 0; transform: translate(0, 0) scale(0.2) rotate(0deg); }
    25%  { opacity: 1; transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(1.15) rotate(30deg); }
    60%  { opacity: 0.9; transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(0.9) rotate(120deg); }
    100% { opacity: 0; transform: translate(calc(var(--tx, 0px) * 1.8), calc(var(--ty, 0px) * 1.8)) scale(0.4) rotate(220deg); }
  }
  .star.pulse {
    animation: starPulse var(--dur, 1.6s) ease-in-out forwards;
    animation-delay: var(--delay, 0s);
  }
  @keyframes starPulse {
    0%   { opacity: 0; transform: scale(0.3) rotate(0deg); }
    35%  { opacity: 1; transform: scale(1.2) rotate(25deg); }
    65%  { opacity: 0.85; transform: scale(0.95) rotate(-15deg); }
    100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  }
  .spark {
    position: absolute;
    width: var(--size, 6px);
    height: var(--size, 6px);
    border-radius: 50%;
    pointer-events: none;
    background: currentColor;
    box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
    opacity: 0;
    animation: sparkFly var(--dur, 1.1s) ease-out forwards;
    animation-delay: var(--delay, 0s);
  }
  @keyframes sparkFly {
    0%   { opacity: 0; transform: translate(0, 0) scale(0.2); }
    20%  { opacity: 1; transform: translate(calc(var(--tx,0px) * 0.3), calc(var(--ty,0px) * 0.3)) scale(1.1); }
    100% { opacity: 0; transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(0.2); }
  }

  body::-webkit-scrollbar { width: 10px; }
  body::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); }
  body::-webkit-scrollbar-thumb {
    background: rgba(212, 240, 0, 0.35);
    border-radius: 5px;
  }
  body::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 240, 0, 0.55);
  }

  @media (max-width: 700px) {
    .main-panel { padding: 18px 14px 40px; }
    .boss-grid { grid-template-columns: 1fr; }
    .top-bar { gap: 8px; }
    .account-btn { max-width: 140px; }
    .server-time { font-size: 11px; padding: 6px 12px; }
    .brand { padding: 6px 12px; font-size: 11px; }
    .boss-icon, .boss-icon-fallback { width: 42px; height: 42px; font-size: 22px; }
  }

  @media (max-width: 480px) {
    .main-panel { padding: 14px 10px 36px; }
    .hero h1 { font-size: 24px; }
    .hero p { font-size: 13px; }
    .boss-card { padding: 14px; }
    .timer-value { font-size: 26px; }
    .filter-btn { padding: 7px 14px; font-size: 11.5px; }
    .modal { padding: 22px; }
    .account-btn { padding: 6px 12px 6px 6px; font-size: 11px; max-width: 110px; }
    .user-avatar { width: 20px; height: 20px; font-size: 10px; }
    .boss-icon, .boss-icon-fallback { width: 38px; height: 38px; font-size: 20px; border-radius: 10px; }
    .boss-name { font-size: 15px; }
    .avatar-preview { width: 78px; height: 78px; font-size: 30px; }
  }