:root {
  --bg: #08080a;
  --surface: #121216;
  --primary: #00ff88;
  --primary-hover: #00cc6a;
  --text: #e4e4e7;
  --text-muted: #8a8a93;
  --border: #222228;
  --rc-blue: #4285f4;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }
body { background: var(--bg); color: var(--text); overflow-x: hidden; }

/* Фон */
.bg-glow { position: fixed; top: -20vh; left: 50%; transform: translateX(-50%); width: 80vw; height: 80vw; background: radial-gradient(circle, rgba(0,255,136,0.08) 0%, transparent 60%); z-index: -1; pointer-events: none; }
.bg-grid { position: fixed; inset: 0; z-index: -2; opacity: 0.1; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 50px 50px; mask-image: radial-gradient(circle at center, black 30%, transparent 80%); }

/* Навигация */
nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; border-bottom: 1px solid var(--border); background: rgba(8,8,10,0.9); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 100; }
.brand { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: 1px; }
.brand span { color: var(--primary); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 600; transition: 0.2s; }
.nav-links a:hover { color: var(--primary); }
.btn-nav { border: 1px solid var(--border); padding: 8px 16px; border-radius: 6px; }

/* Главный экран */
.hero { text-align: center; padding: 100px 20px 40px; max-width: 800px; margin: 0 auto; }
.status-badge { display: inline-block; background: rgba(0,255,136,0.1); color: var(--primary); padding: 6px 14px; border-radius: 20px; font-family: 'Chakra Petch'; font-size: 12px; margin-bottom: 24px; border: 1px solid rgba(0,255,136,0.2); }
.hero h1 { font-family: 'Chakra Petch'; font-size: 52px; font-weight: 700; margin-bottom: 16px; line-height: 1.1; letter-spacing: -1px; }
.hero p { color: var(--text-muted); font-size: 18px; }

/* Сетка читов */
.cheats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; padding: 40px 5% 100px; max-width: 1200px; margin: 0 auto; }
.cheat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: 0.3s; }
.cheat-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,255,136,0.1); }
.cheat-img { height: 180px; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.cheat-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--surface), transparent 80%); z-index: 1; }

.cheat-info { padding: 20px; position: relative; z-index: 2; }
.cheat-info h3 { font-family: 'Chakra Petch'; font-size: 22px; margin-bottom: 6px; color: var(--text); }
.cheat-info p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.btn-dl { background: transparent; border: 1px solid var(--primary); color: var(--primary); padding: 10px 20px; border-radius: 6px; font-family: 'Chakra Petch'; font-weight: 700; font-size: 14px; cursor: pointer; transition: 0.2s; width: 100%; }
.btn-dl:hover { background: var(--primary); color: #000; box-shadow: 0 0 15px rgba(0,255,136,0.4); }

/* ================= FAKE reCAPTCHA ================= */
.recaptcha-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; z-index: 9999; font-family: Roboto, Arial, sans-serif; }
.recaptcha-modal.visible { display: flex; }

/* Checkbox View */
.rc-box { background: #fff; width: 304px; padding: 24px; border-radius: 3px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 0 4px 1px rgba(0,0,0,0.2); animation: fadeIn 0.2s; }
.rc-checkbox { width: 28px; height: 28px; border: 2px solid #c1c1c1; border-radius: 2px; cursor: pointer; position: relative; transition: 0.2s; flex-shrink: 0; }
.rc-checkbox:hover { border-color: #b2b2b2; }
.rc-checkmark { display: none; position: absolute; left: 8px; top: 2px; width: 6px; height: 14px; border: solid #0f9d58; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.rc-spinner { display: none; position: absolute; inset: -2px; border: 3px solid #e0e0e0; border-top-color: var(--rc-blue); border-radius: 50%; animation: spin 0.8s linear infinite; }
.rc-text { font-size: 14px; color: #000; margin-left: 12px; flex: 1; }
.rc-logo { text-align: center; font-size: 10px; color: #555; flex-shrink: 0; }
.rc-logo img { width: 32px; height: 32px; }
.rc-terms { font-size: 8px; color: #555; }

/* Challenge View (Image Grid) */
.rc-challenge { background: #fff; width: 400px; border-radius: 3px; display: none; flex-direction: column; box-shadow: 0 0 10px rgba(0,0,0,0.3); animation: fadeIn 0.3s; }
.rc-header { padding: 16px; border-bottom: 1px solid #e0e0e0; }
.rc-instruction { font-size: 15px; color: #000; margin-bottom: 12px; line-height: 1.4; }
.rc-icons { display: flex; gap: 12px; justify-content: flex-end; }
.rc-icon { width: 24px; height: 24px; border: 1px solid #ccc; border-radius: 2px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #555; cursor: pointer; }

.rc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: #fff; }

/* Обновленный квадратик: теперь без размытия */
.rc-tile { 
  aspect-ratio: 1; 
  background: #eee; 
  cursor: pointer; 
  position: relative; 
  border: 2px solid transparent; 
  transition: 0.1s; 
  overflow: hidden;
}

/* Внутренний слой с картинкой и размытием */
.rc-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(1.2px) contrast(1.2) brightness(0.9) grayscale(0.1);
}

/* Шум поверх картинки */
.rc-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Выделение (рамка четкая) */
.rc-tile.selected { border-color: var(--rc-blue); }
.rc-tile.selected .rc-img { opacity: 0.7; }

/* Галочка (четкая) */
.rc-tile.selected::after { 
  content: '✓'; position: absolute; top: 2px; left: 2px; color: #fff; background: var(--rc-blue); 
  width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; 
  font-size: 14px; z-index: 10; 
}

.rc-footer { display: flex; justify-content: space-between; padding: 12px 16px; border-top: 1px solid #e0e0e0; }
.rc-btn-skip { background: none; border: none; color: #555; font-size: 14px; cursor: pointer; }
.rc-btn-verify { background: var(--rc-blue); color: #fff; border: none; padding: 10px 24px; border-radius: 2px; font-size: 14px; font-weight: 600; cursor: pointer; position: relative; }

/* Instruction View */
.rc-instruction-view { background: #fff; width: 400px; border-radius: 3px; display: none; flex-direction: column; box-shadow: 0 0 10px rgba(0,0,0,0.3); animation: fadeIn 0.3s; }
.rc-inst-header { padding: 20px; border-bottom: 1px solid #e0e0e0; text-align: center; }
.rc-inst-logo img { width: 48px; height: 48px; margin-bottom: 12px; }
.rc-inst-header h2 { font-size: 20px; color: #000; font-weight: 500; }
.rc-inst-body { padding: 20px; }
.rc-inst-body p { font-size: 14px; color: #555; margin-bottom: 20px; line-height: 1.5; }
.rc-inst-steps { background: #f8f9fa; border-radius: 8px; padding: 16px; }
.rc-step { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: 14px; color: #333; line-height: 1.4; }
.rc-step:last-child { margin-bottom: 0; }
.rc-step-num { background: var(--rc-blue); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; flex-shrink: 0; margin-top: 1px; }
.rc-step kbd { background: #fff; border: 1px solid #ccc; border-radius: 3px; padding: 2px 6px; font-family: monospace; font-size: 12px; box-shadow: 0 1px 0 rgba(0,0,0,0.1); }
.rc-step code { color: var(--rc-blue); font-family: monospace; font-weight: 600; }

/* Нижний лоадер */
.rc-loading-footer { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; border-top: 1px solid #e0e0e0; font-size: 13px; color: #555; }
.rc-spinner-small { width: 16px; height: 16px; border: 2px solid #e0e0e0; border-top-color: var(--rc-blue); border-radius: 50%; animation: spin 0.8s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
