:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  --text: #202124;
  --muted: #5f6368;
  --border: #dfe1e5;
  --blue: #1a73e8;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.hero { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 120px 20px 40px; }
.brand { font-size: clamp(62px, 10vw, 92px); font-weight: 600; letter-spacing: -7px; line-height: 1; user-select: none; }
.letter { display: inline-block; }
.blue { color: #4285f4; }.red { color: #ea4335; }.yellow { color: #fbbc05; }.green { color: #34a853; }
.echo { color: #ff5c8a; font-size: .48em; letter-spacing: -5px; transform: rotate(-8deg) translateY(-28px); display: inline-block; margin-left: 4px; }
.tagline { margin: 18px 0 30px; color: var(--muted); font-size: 15px; }

.search-form { width: min(584px, 100%); }
.search-box { position: relative; height: 46px; display: flex; align-items: center; border: 1px solid var(--border); border-radius: 24px; padding: 0 14px; transition: box-shadow .2s, border-color .2s; }
.search-box:hover, .search-box:focus-within { border-color: transparent; box-shadow: 0 1px 6px rgba(32, 33, 36, .28); }
.search-icon { color: #9aa0a6; font-size: 28px; line-height: 1; transform: rotate(-20deg); margin-right: 8px; }
.search-box input { border: 0; outline: 0; flex: 1; min-width: 0; font-size: 16px; color: var(--text); }
.clear-button, .voice-button { border: 0; background: transparent; color: #5f6368; cursor: pointer; font-size: 24px; padding: 0 5px; }
.voice-button { font-size: 17px; color: var(--blue); }
.clear-button { display: none; }
.chicken-rain { position: fixed; inset: 0; z-index: 20; overflow: hidden; pointer-events: none; display: none; }
.chicken-rain.active { display: block; }
.rain-chicken { position: absolute; top: -70px; left: var(--left); font-size: var(--size); opacity: 0; animation: chicken-fall var(--duration) linear var(--delay) forwards; filter: drop-shadow(0 3px 2px rgba(0,0,0,.14)); }
@keyframes chicken-fall { 0% { opacity: 0; transform: translate3d(0, -70px, 0) rotate(-20deg); } 12% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; transform: translate3d(var(--sway), calc(100vh + 100px), 0) rotate(380deg); } }
.actions { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.actions button { border: 1px solid #f8f9fa; background: #f8f9fa; color: #3c4043; border-radius: 4px; padding: 10px 16px; font-size: 14px; cursor: pointer; }
.actions button:hover { border-color: #dadce0; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
.language-note { margin-top: 28px; font-size: 13px; color: var(--muted); }
.language-note a { color: #1a0dab; }

.footer { background: #f2f2f2; color: var(--muted); font-size: 14px; }
.country { padding: 15px 30px; border-bottom: 1px solid #dadce0; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; padding: 15px 30px; }
.footer-links { display: flex; gap: 25px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: 82px; transform: translate(-50%, 20px); background: #202124; color: #fff; padding: 12px 18px; border-radius: 24px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; font-size: 14px; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 620px) {
  .hero { padding-top: 90px; }
  .tagline { text-align: center; }
  .actions { flex-direction: column; width: min(240px, 100%); }
  .footer-row { flex-direction: column; }
  .footer-links { justify-content: center; gap: 14px 20px; }
  .country { text-align: center; }
}
