body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; display: flex; min-height: 100vh; margin: 0; align-items: center; justify-content: center; background: #0f172a; color: #fff; padding: 12px }
#app { width: 100%; max-width: 820px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px }
.title { font-weight: 700; letter-spacing: .2px; font-size: 18px }
.stats { opacity: .9; font-size: 14px; white-space: nowrap }
.card { width: 100%; min-height: 260px; background: #111827; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 40px; padding: 28px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); user-select: none; transition: transform 0.3s ease; cursor: pointer; perspective: 1000px; position: relative; box-sizing: border-box }
.card.flipping { transform: rotateY(90deg) }
.card:not(.flipping):hover { transform: scale(1.02) }
.controls { margin-top: 16px; display: flex; gap: 8px; justify-content: center }
button { background: #1f2937; color: #fff; border: 0; padding: 12px 18px; border-radius: 10px; cursor: pointer; font-size: 15px; font-weight: 500; flex: 1; max-width: 200px; touch-action: manipulation; -webkit-tap-highlight-color: transparent }
button:hover { background: #374151 }
button:active { transform: scale(0.97) }
#good { background: #059669; }
#good:hover { background: #047857 }
.speak-btn { position: absolute; top: 12px; right: 12px; background: rgba(31, 41, 55, 0.8); border: 0; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; transition: all 0.2s ease; backdrop-filter: blur(4px); touch-action: manipulation; -webkit-tap-highlight-color: transparent }
.speak-btn:hover { background: rgba(55, 65, 81, 0.9); transform: scale(1.1) }
.speak-btn:active { transform: scale(0.95) }
.flip-icon { position: absolute; bottom: 12px; left: 12px; color: rgba(255, 255, 255, 0.6); font-size: 18px; pointer-events: none; transition: all 0.2s ease }

@media (max-width: 640px) { 
  .title { font-size: 16px }
  .stats { font-size: 13px }
  .card { font-size: 32px; min-height: 220px; padding: 24px }
  button { padding: 12px 16px; font-size: 14px }
}

@media (max-width: 480px) { 
  body { padding: 8px }
  .topbar { margin-bottom: 12px }
  .title { font-size: 15px }
  .stats { font-size: 12px }
  .card { font-size: 26px; min-height: 180px; padding: 20px; border-radius: 12px }
  .controls { margin-top: 12px; gap: 6px }
  button { padding: 11px 14px; font-size: 13px; border-radius: 8px }
  .speak-btn { width: 36px; height: 36px; font-size: 14px; top: 10px; right: 10px }
  .flip-icon { font-size: 16px; bottom: 10px; left: 10px }
}

@media (max-width: 360px) {
  .card { font-size: 22px; min-height: 160px; padding: 16px }
  button { padding: 10px 12px; font-size: 12px }
}


