/* WEB PANEL PROXY public CSS */
* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      min-height: 100vh;
      font-family: Arial, sans-serif;
      color: white;
      background:
        radial-gradient(circle at 20% 20%, rgba(84, 71, 255, 0.2), transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(0, 217, 255, 0.12), transparent 35%),
        #050611;
      overflow-x: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background-image:
        radial-gradient(circle, white 1px, transparent 1px),
        radial-gradient(circle, white 1px, transparent 1px);
      background-size: 80px 80px, 130px 130px;
      background-position: 0 0, 40px 50px;
      opacity: 0.15;
    }

    button {
      font: inherit;
    }

    .game {
      width: min(1200px, calc(100% - 30px));
      margin: 0 auto;
      padding: 30px 0;
      position: relative;
      z-index: 1;
    }

    header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      margin-bottom: 25px;
    }

    .logo {
      font-size: 28px;
      font-weight: 900;
      letter-spacing: 2px;
    }

    .logo span {
      color: #6fe7ff;
    }

    .level-info {
      text-align: right;
      color: #a8b0ca;
    }

    .level-info strong {
      color: white;
      font-size: 20px;
    }

    .layout {
      display: grid;
      grid-template-columns: 1.3fr 0.7fr;
      gap: 20px;
    }

    .panel {
      background: rgba(15, 18, 38, 0.75);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 24px;
      backdrop-filter: blur(15px);
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    }

    .main-panel {
      min-height: 650px;
      padding: 30px;
      display: flex;
      flex-direction: column;
    }

    .stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }

    .stat {
      background: rgba(255, 255, 255, 0.05);
      padding: 15px;
      border-radius: 16px;
    }

    .stat-label {
      color: #8992ad;
      font-size: 13px;
      margin-bottom: 7px;
    }

    .stat-value {
      font-size: 22px;
      font-weight: 800;
    }

    .planet-area {
      flex: 1;
      min-height: 380px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .planet {
      width: 240px;
      height: 240px;
      border: 0;
      border-radius: 50%;
      cursor: pointer;
      position: relative;
      background:
        radial-gradient(
          circle at 32% 28%,
          #c6fbff 0%,
          #5ee9ff 10%,
          #2884ff 34%,
          #5430c9 62%,
          #171447 100%
        );
      box-shadow:
        0 0 30px rgba(82, 177, 255, 0.45),
        0 0 90px rgba(67, 72, 255, 0.28),
        inset -35px -25px 50px rgba(0, 0, 0, 0.38);
      transition:
        transform 0.08s ease,
        filter 0.15s ease;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
    }

    .planet::before {
      content: "";
      position: absolute;
      width: 320px;
      height: 65px;
      border: 17px solid rgba(163, 206, 255, 0.65);
      border-left-color: rgba(80, 112, 255, 0.18);
      border-right-color: rgba(190, 229, 255, 0.9);
      border-radius: 50%;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%) rotate(-15deg);
      pointer-events: none;
    }

    .planet:hover {
      filter: brightness(1.1);
    }

    .planet:active,
    .planet.clicked {
      transform: scale(0.93);
    }

    .planet-core {
      position: absolute;
      width: 36px;
      height: 20px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.13);
      left: 43px;
      top: 63px;
      transform: rotate(-25deg);
    }

    .click-text {
      position: fixed;
      pointer-events: none;
      z-index: 100;
      font-size: 22px;
      font-weight: 900;
      color: #a5f3ff;
      text-shadow: 0 0 15px #57dfff;
      animation: clickFly 900ms ease-out forwards;
    }

    .click-text.critical {
      color: #ffd45a;
      font-size: 28px;
      text-shadow: 0 0 18px #ff8a00;
    }

    @keyframes clickFly {
      0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.7);
      }

      100% {
        opacity: 0;
        transform: translate(-50%, -140px) scale(1.25);
      }
    }

    .energy-wrapper {
      margin-top: auto;
    }

    .energy-row {
      display: flex;
      justify-content: space-between;
      margin-bottom: 8px;
      color: #aab2c9;
      font-size: 14px;
    }

    .progress {
      height: 12px;
      border-radius: 99px;
      overflow: hidden;
      background: rgba(255, 255, 255, 0.06);
    }

    .progress-value {
      width: 100%;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #653cff, #5ee7ff);
      transition: width 0.2s;
    }

    .side-panel {
      padding: 22px;
    }

    .side-panel h2 {
      font-size: 19px;
      margin-bottom: 16px;
    }

    .upgrades {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .upgrade {
      width: 100%;
      display: grid;
      grid-template-columns: 48px 1fr auto;
      align-items: center;
      gap: 12px;
      text-align: left;
      padding: 12px;
      border: 1px solid rgba(255, 255, 255, 0.07);
      border-radius: 16px;
      color: white;
      background: rgba(255, 255, 255, 0.04);
      cursor: pointer;
      transition: 0.15s ease;
    }

    .upgrade:hover:not(:disabled) {
      transform: translateY(-2px);
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(94, 231, 255, 0.3);
    }

    .upgrade:disabled {
      cursor: not-allowed;
      opacity: 0.4;
    }

    .upgrade-icon {
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border-radius: 14px;
      background: linear-gradient(135deg, #322b72, #16516d);
      font-size: 23px;
    }

    .upgrade-title {
      font-weight: 800;
      margin-bottom: 4px;
    }

    .upgrade-description {
      color: #8992ad;
      font-size: 12px;
    }

    .upgrade-price {
      font-weight: 800;
      color: #76eaff;
      white-space: nowrap;
    }

    .separator {
      height: 1px;
      background: rgba(255, 255, 255, 0.07);
      margin: 22px 0;
    }

    .event-box {
      min-height: 115px;
      padding: 15px;
      border-radius: 16px;
      background: rgba(109, 77, 255, 0.08);
      border: 1px solid rgba(133, 112, 255, 0.15);
    }

    .event-box h3 {
      margin-bottom: 8px;
      font-size: 15px;
    }

    .event-box p {
      color: #9fa8c2;
      font-size: 13px;
      line-height: 1.5;
    }

    .event-button {
      display: none;
      width: 100%;
      margin-top: 12px;
      border: 0;
      border-radius: 10px;
      background: #7258ff;
      color: white;
      font-weight: 800;
      padding: 9px;
      cursor: pointer;
    }

    .event-button.visible {
      display: block;
    }

    .event-button:hover {
      background: #826cff;
    }

    .reset-button {
      margin-top: 20px;
      width: 100%;
      padding: 11px;
      border: 1px solid rgba(255, 92, 119, 0.25);
      border-radius: 12px;
      background: rgba(255, 62, 95, 0.06);
      color: #ff869a;
      cursor: pointer;
    }

    .reset-button:hover {
      background: rgba(255, 62, 95, 0.12);
    }

    @media (max-width: 850px) {
      .layout {
        grid-template-columns: 1fr;
      }

      .main-panel {
        min-height: 570px;
      }
    }

    @media (max-width: 550px) {
      .game {
        width: min(100% - 20px, 1200px);
        padding-top: 18px;
      }

      .main-panel {
        padding: 18px;
      }

      .stats {
        grid-template-columns: 1fr 1fr;
      }

      .stat:last-child {
        grid-column: 1 / -1;
      }

      .planet {
        width: 190px;
        height: 190px;
      }

      .planet::before {
        width: 250px;
        height: 52px;
      }

      header {
        align-items: flex-start;
      }

      .logo {
        font-size: 22px;
      }
    }