/* WEB PANEL PROXY public CSS */
* {
      box-sizing: border-box;
    }

    :root {
      --bg: #0b0b10;
      --panel: rgba(255, 255, 255, 0.06);
      --border: rgba(255, 255, 255, 0.1);
      --text: #ffffff;
      --muted: #9494a8;
      --accent: #b7ff00;
      --gold: #ffd84d;
    }

    body {
      margin: 0;
      min-height: 100vh;
      font-family: Arial, Helvetica, sans-serif;
      color: var(--text);
      background:
        radial-gradient(
          circle at 20% 10%,
          rgba(183, 255, 0, 0.08),
          transparent 30%
        ),
        radial-gradient(
          circle at 80% 80%,
          rgba(255, 54, 211, 0.08),
          transparent 35%
        ),
        var(--bg);

      overflow-x: hidden;
    }

    button {
      font: inherit;
    }

    .app {
      width: min(1100px, calc(100% - 32px));
      margin: 0 auto;
      padding: 24px 0 60px;
    }

    .topbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      margin-bottom: 20px;
    }

    .logo {
      font-size: clamp(22px, 4vw, 38px);
      font-weight: 900;
      letter-spacing: -1px;
    }

    .logo span {
      color: var(--accent);
    }

    .reset-button {
      padding: 10px 14px;
      border: 1px solid var(--border);
      color: var(--muted);
      background: var(--panel);
      border-radius: 12px;
      cursor: pointer;
    }

    .reset-button:hover {
      color: white;
      border-color: rgba(255, 255, 255, 0.25);
    }

    .grid {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 20px;
    }

    .panel {
      position: relative;
      overflow: hidden;
      padding: 22px;
      border: 1px solid var(--border);
      border-radius: 24px;
      background: var(--panel);
      backdrop-filter: blur(14px);
    }

    .main-game {
      min-height: 570px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
    }

    .stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-bottom: 22px;
    }

    .stat {
      padding: 15px;
      border-radius: 16px;
      background: rgba(0, 0, 0, 0.25);
    }

    .stat-label {
      display: block;
      margin-bottom: 5px;
      color: var(--muted);
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .stat-value {
      font-weight: 900;
      font-size: 20px;
    }

    .rank {
      margin-bottom: 10px;
      padding: 7px 12px;
      font-size: 12px;
      font-weight: 800;
      border: 1px solid rgba(183, 255, 0, 0.25);
      border-radius: 999px;
      color: var(--accent);
      background: rgba(183, 255, 0, 0.08);
    }

    .score {
      margin: 0;
      font-size: clamp(48px, 9vw, 90px);
      line-height: 1;
      font-weight: 1000;
      letter-spacing: -4px;
    }

    .score-label {
      margin-top: 8px;
      color: var(--muted);
    }

    .brain-button {
      position: relative;

      width: 230px;
      height: 230px;

      margin: 38px 0 24px;

      border: none;
      border-radius: 50%;

      cursor: pointer;
      user-select: none;

      font-size: 92px;

      background:
        radial-gradient(
          circle at 35% 30%,
          #d9ff6d,
          var(--accent) 45%,
          #6e9400 100%
        );

      box-shadow:
        0 0 0 10px rgba(183, 255, 0, 0.05),
        0 0 70px rgba(183, 255, 0, 0.18);

      transition:
        transform 0.08s ease,
        filter 0.1s ease;
    }

    .brain-button:hover {
      filter: brightness(1.08);
      transform: scale(1.03);
    }

    .brain-button:active {
      transform: scale(0.92) rotate(-3deg);
    }

    .brain-button.shake {
      animation: shake 0.16s linear;
    }

    @keyframes shake {
      0% {
        transform: translateX(0) rotate(0);
      }

      25% {
        transform: translateX(-7px) rotate(-3deg);
      }

      50% {
        transform: translateX(7px) rotate(3deg);
      }

      75% {
        transform: translateX(-4px) rotate(-2deg);
      }

      100% {
        transform: translateX(0) rotate(0);
      }
    }

    .click-info {
      font-weight: 800;
    }

    .combo {
      margin-top: 8px;
      height: 22px;
      color: var(--gold);
      font-weight: 900;
    }

    .message {
      max-width: 600px;
      min-height: 44px;

      margin-top: 20px;

      color: var(--muted);

      line-height: 1.5;
    }

    .progress {
      width: 100%;
      max-width: 500px;
      height: 8px;

      margin-top: 18px;

      overflow: hidden;

      border-radius: 999px;

      background: rgba(255, 255, 255, 0.08);
    }

    .progress-inner {
      width: 0;
      height: 100%;

      background: var(--accent);

      transition: width 0.3s ease;
    }

    .shop-title {
      margin: 0 0 6px;
      font-size: 26px;
    }

    .shop-subtitle {
      margin: 0 0 20px;
      color: var(--muted);
      font-size: 14px;
    }

    .upgrades {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .upgrade {
      width: 100%;

      padding: 15px;

      text-align: left;

      border: 1px solid var(--border);
      border-radius: 16px;

      color: white;

      background: rgba(0, 0, 0, 0.2);

      cursor: pointer;

      transition: 0.15s ease;
    }

    .upgrade:hover:not(:disabled) {
      transform: translateY(-2px);

      border-color: rgba(183, 255, 0, 0.4);

      background: rgba(183, 255, 0, 0.06);
    }

    .upgrade:disabled {
      cursor: not-allowed;
      opacity: 0.45;
    }

    .upgrade-top {
      display: flex;
      justify-content: space-between;
      gap: 10px;

      margin-bottom: 6px;
    }

    .upgrade-name {
      font-weight: 900;
    }

    .upgrade-cost {
      white-space: nowrap;
      color: var(--accent);
      font-weight: 900;
    }

    .upgrade-desc {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.4;
    }

    .upgrade-level {
      margin-top: 7px;

      color: #ccc;

      font-size: 12px;
    }

    .floating {
      position: fixed;
      z-index: 100;

      pointer-events: none;

      font-size: 22px;
      font-weight: 1000;

      color: var(--accent);

      text-shadow: 0 2px 20px #000;

      animation: fly 0.8s ease-out forwards;
    }

    @keyframes fly {
      from {
        transform: translate(-50%, 0) scale(0.8);
        opacity: 1;
      }

      to {
        transform: translate(-50%, -100px) scale(1.25);
        opacity: 0;
      }
    }

    .toast-container {
      position: fixed;

      right: 20px;
      bottom: 20px;

      z-index: 200;

      display: flex;
      flex-direction: column;
      gap: 8px;

      width: min(350px, calc(100vw - 40px));
    }

    .toast {
      padding: 14px 16px;

      border: 1px solid var(--border);
      border-radius: 14px;

      background: rgba(15, 15, 20, 0.94);

      backdrop-filter: blur(10px);

      animation: toastIn 0.25s ease;
    }

    .toast-title {
      margin-bottom: 3px;
      font-weight: 900;
    }

    .toast-text {
      color: var(--muted);
      font-size: 13px;
    }

    @keyframes toastIn {
      from {
        opacity: 0;
        transform: translateY(15px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .event-overlay {
      display: none;

      position: fixed;
      inset: 0;

      z-index: 300;

      align-items: center;
      justify-content: center;

      padding: 20px;

      background: rgba(0, 0, 0, 0.7);

      backdrop-filter: blur(8px);
    }

    .event-overlay.active {
      display: flex;
    }

    .event-card {
      width: min(450px, 100%);

      padding: 28px;

      text-align: center;

      border: 1px solid var(--border);
      border-radius: 24px;

      background: #15151c;

      box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    }

    .event-emoji {
      font-size: 64px;
    }

    .event-card h2 {
      margin: 10px 0;
      font-size: 30px;
    }

    .event-card p {
      color: var(--muted);
      line-height: 1.5;
    }

    .event-button {
      width: 100%;

      margin-top: 12px;
      padding: 14px;

      border: none;
      border-radius: 14px;

      font-weight: 900;

      cursor: pointer;

      background: var(--accent);
      color: #111;
    }

    .footer {
      margin-top: 20px;

      text-align: center;

      color: #5e5e70;

      font-size: 12px;
    }

    @media (max-width: 800px) {
      .grid {
        grid-template-columns: 1fr;
      }

      .main-game {
        min-height: auto;
        padding-top: 35px;
        padding-bottom: 35px;
      }

      .brain-button {
        width: 190px;
        height: 190px;
        font-size: 75px;
      }

      .stats {
        grid-template-columns: 1fr;
      }
    }