/* WEB PANEL PROXY public CSS */
* { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e1e2f, #3a3a5c);
    color: #fff;
    padding: 20px;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 25px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.4s ease;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  h1 { font-size: 22px; margin-bottom: 6px; text-align: center; }
  .subtitle { font-size: 14px; color: #b0b0c8; margin-bottom: 18px; text-align: center; line-height: 1.5; }

  .game-wrap {
    position: relative;
    width: 100%;
    height: 260px;
    background: linear-gradient(to bottom, #87ceeb 0%, #b0e0f0 100%);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: inset 0 -4px 0 #6b8e23;
  }

  .ground {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 30px;
    background: #8b7355;
    border-top: 4px solid #6b8e23;
  }

  .player {
    position: absolute;
    left: 60px;
    bottom: 30px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border-radius: 8px;
    box-shadow: inset -4px -4px 0 rgba(0,0,0,0.2), 0 3px 0 rgba(0,0,0,0.15);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  }

  .obstacle {
    position: absolute;
    bottom: 30px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 6px 6px 0 0;
    box-shadow: inset -3px -3px 0 rgba(0,0,0,0.25);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    overflow: hidden;
  }

  .obstacle.small { font-size: 9px; }
  .obstacle.big { font-size: 11px; }

  .hud {
    position: absolute;
    top: 12px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    z-index: 5;
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
  }

  .hud .score { font-family: 'Courier New', monospace; letter-spacing: 1px; }

  .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(30, 30, 47, 0.8);
    color: #fff;
    z-index: 10;
    text-align: center;
    padding: 20px;
    border-radius: 14px;
    transition: opacity 0.3s;
  }

  .overlay.hidden { opacity: 0; pointer-events: none; }

  .overlay .big { font-size: 40px; margin-bottom: 10px; }
  .overlay h2 { font-size: 22px; margin-bottom: 8px; }
  .overlay p { font-size: 14px; color: #d0d0e0; line-height: 1.5; }
  .overlay .hint { margin-top: 14px; font-size: 13px; color: #f1c40f; font-weight: 600; }

  .btn-restart {
    margin-top: 16px;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    background: #2ecc71;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
  }
  .btn-restart:hover { background: #27ae60; transform: translateY(-2px); }
  .btn-restart:active { transform: translateY(0); }

  .success-screen { display: none; text-align: center; padding: 20px 0; }
  .success-screen.show { display: block; }

  .icon-big { font-size: 60px; margin-bottom: 15px; }

  .link-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 40px;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  }
  .link-btn:hover { background: #2980b9; transform: translateY(-3px); box-shadow: 0 10px 25px rgba(52, 152, 219, 0.5); }
  .link-btn:active { transform: translateY(0); }

  .game-screen.hide { display: none; }