* { box-sizing:border-box; }
body { margin:0; font-family:system-ui,-apple-system,sans-serif; background:linear-gradient(135deg,#667eea 0%,#764ba2 100%); min-height:100vh; display:flex; flex-direction:column; }
main { flex:1; }

/* MOBILE FIRST */
.nav { display:flex; justify-content:space-between; align-items:center; padding:16px; background:rgba(255,255,255,0.95); backdrop-filter:blur(10px); box-shadow:0 2px 10px rgba(0,0,0,0.1); flex-wrap:wrap; gap:10px; }
.nav h1 { margin:0; font-size:24px; flex:1; }
.controls { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.controls select, .controls button { padding:10px 16px; font-size:16px; border:none; border-radius:8px; cursor:pointer; background:#667eea; color:white; font-weight:bold; }
.voice-label { font-size:16px; color:#333; font-weight:600; }

.title { text-align:center; font-size:28px; margin:20px 16px; color:white; font-weight:bold; }

/* GRID - Mobile First */
.grid { display:grid; grid-template-columns:1fr; gap:16px; padding:16px; }

.glass { background:rgba(255,255,255,0.95); backdrop-filter:blur(12px); border-radius:16px; padding:20px; box-shadow:0 4px 15px rgba(0,0,0,0.1); transition:all 0.3s ease; border:2px solid rgba(255,255,255,0.3); }

.card { text-decoration:none; color:#333; text-align:center; border:none; background:none; cursor:pointer; padding:0; }
.card-content { display:flex; flex-direction:column; align-items:center; gap:12px; }
.emoji { font-size:60px; display:block; }
.text { font-size:22px; font-weight:600; }

.btn { display:flex; flex-direction:column; align-items:center; gap:12px; border:none; cursor:pointer; padding:0; background:none; width:100%; }
.btn .emoji { font-size:72px; }
.btn .text { font-size:24px; font-weight:700; color:#333; }

.glass:active, .btn:active { transform:scale(0.98); }
.glass:hover, .btn:hover { transform:translateY(-4px); box-shadow:0 8px 20px rgba(0,0,0,0.15); }

/* TABLET */
@media (min-width:640px) {
  .grid { grid-template-columns:repeat(2,1fr); gap:20px; padding:20px; }
  .title { font-size:36px; }
  .emoji { font-size:80px; }
  .btn .emoji { font-size:90px; }
  .text { font-size:24px; }
  .btn .text { font-size:26px; }
}

/* DESKTOP */
@media (min-width:1024px) {
  .grid { grid-template-columns:repeat(3,1fr); gap:24px; padding:32px; }
  .title { font-size:42px; margin:32px; }
  .emoji { font-size:100px; }
  .btn .emoji { font-size:110px; }
  .text { font-size:26px; }
  .btn .text { font-size:28px; }
}

/* BACK BUTTON */
.back-container { padding:12px 16px; }
.back-btn { display:flex; align-items:center; gap:8px; padding:12px 16px; background:rgba(255,255,255,0.95); border-radius:12px; text-decoration:none; color:#333; font-weight:600; font-size:16px; border:2px solid rgba(102,126,234,0.3); transition:all 0.3s ease; width:fit-content; }
.back-btn:active { transform:scale(0.95); }
.back-btn:hover { background:#667eea; color:white; border-color:#667eea; }
.back-btn .emoji { font-size:24px; }

@media (min-width:640px) {
  .back-btn { font-size:18px; padding:14px 20px; }
  .back-btn .emoji { font-size:28px; }
}

@media (min-width:1024px) {
  .back-btn { font-size:18px; padding:14px 24px; }
  .back-btn .emoji { font-size:32px; }
}

/* ACCESSIBILITY MODE */
.accessible .emoji { font-size:100px; }
.accessible .btn .emoji { font-size:130px; }
.accessible .text { font-size:28px; }
.accessible .btn .text { font-size:32px; }
.accessible .btn { padding:16px; }
.accessible .glass { padding:28px; }
.accessible .back-btn { font-size:22px; padding:16px 20px; }
.accessible .back-btn .emoji { font-size:40px; }

/* ABOUT & TERMS PAGES */
.about-container, .terms-container { padding:16px; }
.about-content, .terms-content { max-width:800px; margin:0 auto; color:#333; line-height:1.8; }
.about-content p, .terms-content p { font-size:16px; margin:16px 0; }
.about-section { margin:20px 0; }
.about-mission { margin:20px 0; }
.about-closing { margin-top:30px; font-style:italic; }
.terms-content h3 { font-size:20px; color:#667eea; margin-top:24px; margin-bottom:12px; font-weight:bold; }
.terms-content ul { margin:12px 0; padding-left:24px; }
.terms-content li { margin:8px 0; font-size:15px; }

/* CONTACT PAGE */
.contact-container { padding:16px; }
.contact-content { max-width:600px; margin:0 auto; }
.contact-content h2 { color:white; font-size:28px; margin-bottom:8px; }
.contact-content > p { color:rgba(255,255,255,0.85); margin-bottom:20px; font-size:16px; }
.contact-alert { padding:12px 16px; border-radius:8px; margin-bottom:16px; font-weight:500; }
.contact-alert-success { background:#d4edda; color:#155724; }
.contact-alert-error { background:#f8d7da; color:#721c24; }
.contact-form { background:rgba(255,255,255,0.95); backdrop-filter:blur(12px); border-radius:16px; padding:24px; box-shadow:0 4px 15px rgba(0,0,0,0.15); }
.contact-field { margin-bottom:18px; }
.contact-field label { display:block; margin-bottom:6px; font-weight:600; color:#333; font-size:14px; }
.contact-field input, .contact-field textarea { width:100%; padding:10px 12px; border:1px solid #ddd; border-radius:8px; font-family:inherit; font-size:15px; background:white; transition:border-color 0.2s; }
.contact-field input:focus, .contact-field textarea:focus { outline:none; border-color:#667eea; box-shadow:0 0 0 3px rgba(102,126,234,0.15); }
.contact-field textarea { resize:vertical; }
.contact-btn { width:100%; padding:14px; background:#667eea; color:white; border:none; border-radius:8px; font-size:16px; font-weight:700; cursor:pointer; transition:background 0.3s; }
.contact-btn:hover { background:#5568d3; }

/* FOOTER */
.footer { background:rgba(0,0,0,0.7); color:white; padding:20px 16px; text-align:center; margin-top:auto; }
.footer-links { display:flex; justify-content:center; gap:20px; flex-wrap:wrap; margin-bottom:12px; }
.footer-link { color:white; text-decoration:none; font-weight:600; font-size:14px; transition:all 0.3s ease; }
.footer-link:hover { color:#667eea; text-decoration:underline; }
.footer-text { margin:8px 0 0 0; font-size:13px; opacity:0.8; }

@media (min-width:640px) {
  .about-content p, .terms-content p { font-size:18px; }
  .terms-content h3 { font-size:22px; }
  .terms-content li { font-size:16px; }
  .footer-links { gap:32px; }
}

@media (min-width:1024px) {
  .about-content p, .terms-content p { font-size:18px; }
  .terms-content h3 { font-size:22px; }
}
