:root {
  color-scheme: light;
  --background: #f7f9fc;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --border: #dbe3ef;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #e0edff 0, var(--background) 42rem);
}

.results-page--fullscreen {
  overflow: hidden;
  background: #fff;
}


.home-page {
  display: grid;
  place-items: center;
  padding: 2rem;
}

.home-shell {
  width: min(100%, 46rem);
  text-align: center;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 7vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.tagline, .muted, .source-note {
  color: var(--muted);
}

.tagline {
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.search-form {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.search-form button {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: 700 1rem/1 Inter, ui-sans-serif, system-ui, sans-serif;
  transition: background 160ms ease, transform 160ms ease;
}

.search-form button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.search-form--hero {
  padding: 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.search-form--hero input {
  padding: 1rem 1.25rem;
  font-size: 1.15rem;
}

.search-form--hero button {
  padding: 0 1.5rem;
}

.results-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  padding: 1rem;
  background: rgba(247, 249, 252, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.search-form--compact {
  max-width: 36rem;
}

.search-form--compact input {
  padding: 0.75rem 1rem;
}

.search-form--compact button {
  padding: 0 1.15rem;
}

.results-shell {
  width: min(100% - 2rem, 70rem);
  margin: 2rem auto;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.results-shell h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.google-frame-shell {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.google-frame-shell--fullscreen {
  width: 100vw;
  height: 100vh;
}

#google-results {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.doodle-mask {
  --mask-height: clamp(4.75rem, 16vw, 6rem);
  --mask-main-width: clamp(6.5rem, 23vw, 8.8rem);
  --mask-fade-width: clamp(4.25rem, 18vw, 7.4rem);

  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: var(--mask-main-width);
  height: var(--mask-height);
  background: linear-gradient(to bottom, #000 0 95%, rgba(0, 0, 0, 0));
  pointer-events: none;
}

.doodle-mask::before,
.doodle-mask::after {
  content: "";
  position: absolute;
  top: 0;
  left: 100%;
  width: var(--mask-fade-width);
  height: var(--mask-height);
  border-bottom-right-radius: calc(var(--mask-height) * 0.52);
  background: linear-gradient(to right, #000 0 68%, rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(to bottom, #000 0 95%, rgba(0, 0, 0, 0));
  mask-image: linear-gradient(to bottom, #000 0 95%, rgba(0, 0, 0, 0));
}

.doodle-mask::before {
  display: none;
}

.empty-results {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 560px) {
  .search-form { flex-direction: column; }
  .search-form button { padding: 0.9rem 1rem; }
  .search-form--hero { border-radius: 1.5rem; }

  .doodle-mask {
    --mask-height: clamp(4.5rem, 22vw, 5.25rem);
    --mask-main-width: clamp(6rem, 35vw, 7.25rem);
    --mask-fade-width: clamp(3.5rem, 24vw, 5rem);

    left: 50%;
    transform: translateX(-50%);
  }

  .doodle-mask::before {
    display: block;
    right: 100%;
    left: auto;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: calc(var(--mask-height) * 0.52);
    background: linear-gradient(to left, #000 0 68%, rgba(0, 0, 0, 0));
  }
}

.google-home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0;
  background: radial-gradient(circle at top, rgba(232, 244, 255, 0.72) 0, rgba(246, 251, 255, 0.58) 28rem, #fbfdff 100%);
}

.google-home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 1.15rem;
  font-size: 0.9rem;
}

.google-home-nav nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.google-home a,
.google-home-footer a {
  color: #202124;
  text-decoration: none;
}

.google-home a:hover,
.google-home-footer a:hover {
  text-decoration: underline;
}

.apps-icon {
  width: 1.5rem;
  color: #5f6368;
  font-size: 0.7rem;
  line-height: 0.32rem;
  text-align: center;
  letter-spacing: 0.1rem;
  transform: rotate(90deg);
}

.sign-in-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.3rem;
  min-height: 2.5rem;
  border-radius: 999px;
  background: #2f5bd3;
  color: #fff !important;
  font-weight: 700;
}

.google-home-shell {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(4rem, 12vh, 7rem);
}

.home-doodle-mask {
  width: min(34rem, 66vw);
  height: clamp(7rem, 14vw, 11rem);
  border-top-left-radius: 0.8rem;
  border-top-right-radius: 4rem;
  border-bottom-right-radius: 1.6rem;
  background: #000;
}

.google-search-form {
  display: flex;
  align-items: center;
  gap: 0;
  width: min(43rem, calc(100vw - 2rem));
  min-height: 3.2rem;
  margin-top: 3rem;
  padding: 0 1.25rem;
  border: 1px solid #dfe1e5;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.16);
}

.google-search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: 1.15rem/1.5 Arial, sans-serif;
}

.google-search-form--simple input {
  text-align: left;
}
