:root {
  --bg: #ffffff;
  --text: #202124;
  --muted: #5f6368;
  --border: #dfe1e5;
  --border-strong: #dadce0;
  --button-bg: #f8f9fa;
  --button-hover: #f8f9fa;
  --blue: #4285f4;
  --blue-dark: #1a73e8;
  --red: #ea4335;
  --yellow: #fbbc05;
  --green: #34a853;
  --danger: #b3261e;
  --success: #137333;
  --shadow-soft: 0 1px 6px rgba(32, 33, 36, 0.28);
  --shadow-card: 0 1px 2px rgba(60, 64, 67, 0.14), 0 8px 28px rgba(60, 64, 67, 0.08);
  --focus-ring: 0 0 0 3px rgba(26, 115, 232, 0.24);
  --content-width: 584px;
  font-family: Arial, Helvetica, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button,
select {
  color: var(--text);
}

button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease,
    transform 120ms ease;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.about-text {
  white-space: pre-line;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 11px 23px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.top-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text);
  font-size: 14px;
  line-height: 1;
}

.top-links span {
  cursor: pointer;
  user-select: none;
}

.about-panel {
  position: absolute;
  top: 28px;
  left: 0;
  z-index: 30;
  width: min(300px, calc(100vw - 46px));
  padding: 12px 14px;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  box-shadow: var(--shadow-card);
  font-size: 13px;
  line-height: 1.45;
}

.about-panel p {
  margin: 0;
}

.language-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
}

.language-control select {
  min-height: 34px;
  max-width: 160px;
  padding: 6px 30px 6px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f1f3f4;
  color: var(--text);
}

.language-control select:hover,
.language-control select:focus-visible {
  background: #e8eaed;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 76px 16px 42px;
}

.mode {
  width: min(100%, 760px);
}

.google-home {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 22px;
  min-height: min(680px, calc(100vh - 118px));
}

.demo-layout {
  position: relative;
}

.brand-wrap {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 100%;
  max-width: calc(100vw - 32px);
}

.brand-title {
  width: max-content;
  max-width: calc(100vw - 32px);
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  color: transparent;
  background:
    linear-gradient(
      90deg,
      var(--blue) 0 18%,
      var(--red) 18% 33%,
      var(--yellow) 33% 48%,
      var(--blue) 48% 64%,
      var(--green) 64% 80%,
      var(--red) 80% 100%
    );
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 60px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-rendering: geometricPrecision;
}

.description {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 16px;
  line-height: 1.55;
}

.search-form,
.demo-search-area {
  width: min(100%, var(--content-width));
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: 2px;
}

.search-pill {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 44px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 180ms ease;
}

.search-pill:hover {
  border-color: rgba(223, 225, 229, 0);
  box-shadow: var(--shadow-soft);
}

.search-pill:focus-within,
.search-pill.is-focused {
  border-color: var(--border);
  box-shadow: none;
}

.search-icon {
  position: relative;
  width: 20px;
  height: 20px;
  justify-self: end;
  margin-right: 12px;
  color: #9aa0a6;
}

.search-icon::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 13px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.search-decoration {
  width: 18px;
  height: 18px;
  justify-self: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--blue-dark) 0 2px, transparent 2.5px),
    radial-gradient(circle at 50% 18%, var(--red) 0 2px, transparent 2.5px),
    radial-gradient(circle at 20% 72%, var(--yellow) 0 2px, transparent 2.5px),
    radial-gradient(circle at 80% 72%, var(--green) 0 2px, transparent 2.5px);
  opacity: 0.76;
}

.search-input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
  outline: 0;
  appearance: none;
}

.search-input:focus,
.search-input:focus-visible {
  outline: none;
  box-shadow: none;
}

.search-input::-webkit-search-cancel-button {
  appearance: none;
}

.search-input::placeholder {
  color: #80868b;
  opacity: 1;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.form-actions {
  margin-top: -2px;
}

.google-button,
.skip-button {
  padding: 0 16px;
  background: var(--button-bg);
  border-color: var(--button-bg);
  color: #3c4043;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.google-button:hover,
.skip-button:hover {
  border-color: var(--border-strong);
  background: var(--button-hover);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.google-button:active,
.skip-button:active,
.google-button.is-clicking {
  border-color: #c6c9ce;
  background: #eef0f3;
  box-shadow: inset 0 1px 2px rgba(60, 64, 67, 0.2);
  transform: translateY(1px) scale(0.96);
}


.skip-button {
  margin-top: -4px;
  background: #fff;
  border-color: var(--border-strong);
}

.status-message {
  min-height: 1.45em;
  margin: -2px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
}

.status-message.is-error {
  color: var(--danger);
}

.status-message.is-success {
  color: var(--success);
}

.share-panel {
  width: min(100%, var(--content-width));
  display: grid;
  gap: 12px;
  justify-items: stretch;
  margin-top: 0;
  padding: 16px;
  border: 1px solid #e8eaed;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.share-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.share-link {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 12px;
  overflow-x: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
  border-radius: 12px;
  background: #f8fafd;
  color: var(--blue-dark);
  font-size: 14px;
  line-height: 1.55;
  text-decoration: none;
}

.share-link:hover {
  text-decoration: underline;
}

.share-actions {
  justify-content: flex-start;
}

.fallback-panel {
  margin: -4px 0 0;
  text-align: center;
}

.fallback-panel a {
  color: var(--blue-dark);
  font-weight: 600;
  text-decoration: none;
}

.fallback-panel a:hover {
  text-decoration: underline;
}

.fake-cursor {
  --cursor-x: 24px;
  --cursor-y: 24px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 31px;
  height: 34px;
  pointer-events: none;
  transform: translate3d(var(--cursor-x), var(--cursor-y), 0);
  transition: transform 1500ms cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(0 2px 2px rgba(32, 33, 36, 0.34));
}

.fake-cursor::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 25px;
  height: 32px;
  background: #202124;
  clip-path: polygon(0 0, 0 27px, 7px 20px, 12px 32px, 17px 30px, 12px 19px, 23px 19px);
}

.fake-cursor::after {
  content: "";
  position: absolute;
  inset: 2px auto auto 2px;
  width: 18px;
  height: 22px;
  background: #fff;
  clip-path: polygon(0 0, 0 18px, 5px 13px, 10px 24px, 12px 23px, 8px 12px, 17px 12px);
  opacity: 0.92;
}

.fake-cursor.is-down {
  transform: translate3d(var(--cursor-x), var(--cursor-y), 0) scale(0.92);
}

.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;
}

[hidden] {
  display: none !important;
}

.site-credit {
  position: fixed;
  right: 18px;
  bottom: 14px;
  z-index: 30;
  color: #5f6368;
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .topbar {
    min-height: 56px;
    padding: 9px 14px;
  }

  .top-links {
    display: none;
  }

  .language-control {
    width: 100%;
    justify-content: flex-end;
  }

  .page-shell {
    align-items: start;
    padding: 92px 16px 36px;
  }

  .google-home {
    min-height: auto;
    gap: 18px;
  }

  .brand-wrap {
    gap: 8px;
  }

  .description {
    font-size: 15px;
  }

  .search-form,
  .demo-search-area,
  .share-panel {
    width: 100%;
  }

  .search-pill {
    min-height: 48px;
  }

  .search-input {
    min-height: 46px;
  }

  .button-row,
  .form-actions,
  .share-actions {
    width: 100%;
  }

  .form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .google-button,
  .skip-button {
    width: 100%;
    min-height: 44px;
  }

  .fake-cursor {
    width: 28px;
    height: 31px;
  }
}

@media (max-width: 380px) {
  .language-control span {
    display: none;
  }

  .search-pill {
    grid-template-columns: 40px minmax(0, 1fr) 36px;
  }

  .search-icon {
    margin-right: 9px;
  }

  .search-input {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}

