:root{
  --bg: #0f1724;
  --card: rgba(255,255,255,0.03);
  --accent: #7c5cff;
  --accent-2: #00d4ff;
  --text: #e6eef8;
  --muted: #9fb2c8;
  --glass: rgba(255,255,255,0.04);
  --glow: 0 8px 30px rgba(124,92,255,0.18);
  --glass-border: rgba(255,255,255,0.06);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background-image: linear-gradient(180deg, rgba(8,10,20,0.85), rgba(3,6,12,0.95)), url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1600&q=60');
  background-size:cover;
  background-position:center;
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  padding:28px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* shell */
.game-shell{
  width:100%;
  max-width:980px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius:14px;
  padding:18px;
  box-shadow: var(--glow);
  border:1px solid var(--glass-border);
  backdrop-filter: blur(6px) saturate(120%);
}

/* header */
.game-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}
.game-header h1{margin:0;font-size:20px}
.game-header .sub{margin:0;font-size:13px;color:var(--muted)}
.controls{display:flex;align-items:center;gap:8px}
.btn{
  background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border:1px solid rgba(255,255,255,0.06);
  color:var(--text);
  padding:8px 12px;
  border-radius:8px;
  cursor:pointer;
  font-size:14px;
  transition:transform .12s ease, box-shadow .12s ease;
}
.btn:active{transform:scale(.98)}
.openhub{color:var(--muted);font-size:13px;text-decoration:none;padding:6px 8px;border-radius:6px}

/* status bar */
.status-bar{
  display:flex;
  gap:12px;
  justify-content:space-between;
  align-items:center;
  margin-bottom:14px;
  padding:8px;
  border-radius:10px;
  background: linear-gradient(90deg, rgba(255,255,255,0.01), rgba(255,255,255,0.02));
  border:1px solid rgba(255,255,255,0.03);
  font-size:14px;
}
.status-bar strong{color:var(--accent-2)}

/* game area */
.game-area{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
  padding:22px;
  border-radius:12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.01));
  border:1px solid rgba(255,255,255,0.03);
}

.emoji-display{
  font-size:92px;
  width:260px;
  height:160px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.01));
  border:1px solid rgba(255,255,255,0.04);
  box-shadow: 0 12px 30px rgba(2,6,23,0.6), 0 8px 24px rgba(0,0,0,0.45);
  transition: transform .18s ease, box-shadow .18s ease;
  position:relative;
}

/* pulsing glow when new emoji appears */
.glow{
  animation: glowPulse 1.1s ease;
  box-shadow: 0 20px 60px rgba(124,92,255,0.18), inset 0 -6px 30px rgba(0,212,255,0.06);
}
@keyframes glowPulse{
  0%{transform:translateY(-4px) scale(.995)}
  40%{transform:translateY(0) scale(1.01)}
  100%{transform:translateY(0) scale(1)}
}

/* options (buttons) */
.options{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
  width:100%;
  max-width:760px;
}
.option-btn{
  min-width:180px;
  padding:14px 18px;
  border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border:1px solid rgba(255,255,255,0.04);
  color:var(--text);
  font-size:16px;
  cursor:pointer;
  text-align:center;
  transition: transform .12s, box-shadow .12s, background .12s;
  box-shadow: 0 8px 18px rgba(2,6,23,0.4);
}
.option-btn:hover{transform:translateY(-4px); box-shadow: 0 18px 40px rgba(2,6,23,0.55)}
.option-btn.correct{
  background: linear-gradient(90deg, rgba(34,197,94,0.14), rgba(34,197,94,0.06));
  border-color: rgba(34,197,94,0.28);
  box-shadow: 0 18px 50px rgba(34,197,94,0.06);
}
.option-btn.wrong{
  background: linear-gradient(90deg, rgba(239,68,68,0.12), rgba(239,68,68,0.04));
  border-color: rgba(239,68,68,0.28);
  box-shadow: 0 18px 50px rgba(239,68,68,0.05);
}

/* footer */
.footer-ui{display:flex;align-items:center;justify-content:space-between;margin-top:14px;gap:12px}
.difficulty{display:flex;flex-direction:column;gap:6px}
.hint-text{color:var(--muted);font-size:13px;margin-left:8px;min-width:160px}
.smallprint{color:var(--muted);font-size:12px}

/* responsive */
@media (max-width:720px){
  .options{flex-direction:column;align-items:stretch}
  .option-btn{min-width:unset;width:100%}
  .emoji-display{width:100%;height:120px;font-size:72px}
}
