@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-main: #060814;
  --bg-card: rgba(13, 17, 33, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.18);
  --primary: #ff007f;
  --primary-glow: rgba(255, 0, 127, 0.3);
  --secondary: #00f0ff;
  --secondary-glow: rgba(0, 240, 255, 0.3);
  --accent: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.3);
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.2);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --glass-blur: blur(12px);
  --border-radius: 16px;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 10% 20%, rgba(255, 0, 127, 0.05) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(0, 240, 255, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  padding-bottom: 110px;
}

h1, h2, h3, h4 { font-family: var(--font-heading); color: #ffffff; }
button, input { font-family: inherit; font-size: inherit; color: inherit; background: none; border: none; }
button { cursor: pointer; }

.app-container { display: flex; flex-direction: column; min-height: 100vh; }
.main-content { flex: 1; width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 2rem 1.5rem; }

.navbar {
  background: rgba(6, 8, 20, 0.8);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  position: sticky; top: 0; z-index: 1000;
}
.navbar-container { max-width: var(--max-width); margin: 0 auto; padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.nav-logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.ad-slot-wrapper { margin: 1.5rem 0; width: 100%; display: flex; flex-direction: column; align-items: center; }
.ad-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.5rem; }
.ad-container { width: 100%; background: rgba(13, 17, 33, 0.4); border: 1px dashed var(--border-color); border-radius: 12px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--text-muted); min-height: 100px; position: relative; overflow: hidden; }
.ad-container.leaderboard { max-width: 728px; height: 90px; }
.ad-container.rectangle { max-width: 336px; height: 280px; }

.sticky-footer-ad {
  position: fixed; bottom: 0; left: 0; width: 100%; height: 90px;
  background: rgba(6, 8, 20, 0.95); backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--border-color); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 10000;
}

.glass-card { background: var(--bg-card); backdrop-filter: var(--glass-blur); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 1.75rem; }
.prompt-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.5rem; }
.image-container { width: 100%; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); margin: 1rem 0; background: #000; }
.image-container img { width: 100%; height: 100%; object-fit: cover; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; font-family: var(--font-heading); font-weight: 600; border-radius: 10px; transition: all 0.25s ease; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }
.btn-secondary { background: rgba(255, 255, 255, 0.05); color: #fff; border: 1px solid var(--border-color); }
.btn-accent { background: linear-gradient(135deg, var(--secondary), var(--accent)); color: #fff; }

.thermometer-wrapper { display: flex; align-items: center; gap: 1rem; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-color); padding: 1rem; border-radius: 12px; margin-bottom: 1.25rem; }
.therm-track { flex: 1; height: 16px; background: rgba(255, 255, 255, 0.05); border-radius: 8px; border: 1px solid var(--border-color); overflow: hidden; }
.therm-fill { width: 0%; height: 100%; background: linear-gradient(90deg, #00f0ff, #ff007f); transition: width 0.5s ease; }
.therm-text { font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; min-width: 110px; text-align: right; }

.console-box { background: #030712; border: 1px solid var(--border-color); border-radius: 10px; font-family: monospace; font-size: 0.8rem; padding: 0.75rem 1rem; color: #10b981; height: 110px; overflow-y: auto; margin-bottom: 1.25rem; }
.console-line.error { color: var(--primary); }
.console-line.info { color: var(--secondary); }

.input-control { width: 100%; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border-color); padding: 0.75rem 1rem; border-radius: 10px; color: #ffffff; }
.guesses-log { max-height: 250px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.guess-row { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0.85rem; border-radius: 8px; background: rgba(255,255,255,0.02); border: 1px solid var(--border-color); font-size: 0.85rem; }
.guess-row.warm { border-color: rgba(139, 92, 246, 0.4); background: rgba(139, 92, 246, 0.05); }
.guess-row.hot { border-color: rgba(255, 0, 127, 0.4); background: rgba(255, 0, 127, 0.05); }
.guess-row.correct { border-color: var(--success); background: rgba(16, 185, 129, 0.05); color: #fff; font-weight: 600; }
.badge-solved { background: var(--success); color: #fff; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; display: none; }
.footer { background: rgba(6, 8, 20, 0.95); border-top: 1px solid var(--border-color); padding: 1.5rem; text-align: center; font-size: 0.85rem; color: var(--text-muted); }
@media (max-width: 900px) { .prompt-layout { grid-template-columns: 1fr; } }
