@font-face {
  font-family: "ALS Hauss";
  src: url("fonts/ALS-Hauss-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ALS Hauss";
  src: url("fonts/ALS-Hauss-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: only light;
  --blue: #0877e7;
  --blue-text: #0071ff;
  --blue-deep: #075cc1;
  --cyan: #72f6ff;
  --sky: #1daff7;
  --lime: #7fff64;
  --pink: #fe529c;
  --surface: #f5f6f5;
  --ink: #282a2c;
  --ui-scale: 1;
  --page-gradient:
    radial-gradient(
      ellipse 78% 86% at 7% 95%,
      rgba(42, 218, 245, 0.98) 0%,
      rgba(18, 179, 232, 0.72) 34%,
      rgba(18, 142, 220, 0) 69%
    ),
    radial-gradient(
      ellipse 62% 55% at 72% 8%,
      rgba(1, 92, 192, 0.46) 0%,
      rgba(1, 92, 192, 0) 72%
    ),
    linear-gradient(120deg, #0a94df 0%, #0786d8 39%, #0877e7 70%, #0768cf 100%);
  --rays-background:
    radial-gradient(
      ellipse 86% 78% at 4% 100%,
      rgba(50, 220, 246, 0.96) 0%,
      rgba(19, 177, 232, 0.55) 34%,
      rgba(19, 149, 223, 0) 68%
    ),
    repeating-conic-gradient(
      from 191deg at 76% 68%,
      rgba(4, 87, 181, 0.43) 0deg 7deg,
      rgba(13, 126, 230, 0.16) 7deg 14deg
    ),
    linear-gradient(118deg, #0798df 0%, #087bd4 48%, #086bd0 100%);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--rays-background);
  background-color: var(--blue);
  background-repeat: no-repeat;
}

body {
  overflow: hidden;
  color: #fff;
  font-family: "ALS Hauss", Arial, sans-serif;
  font-size: 22px;
  font-weight: 400;
  font-synthesis: none;
  font-kerning: normal;
  line-height: 24px;
  letter-spacing: -1px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

button,
input,
a {
  font: inherit;
}

button {
  color: inherit;
}
[hidden] {
  display: none !important;
}

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

.app,
.screen {
  width: 100%;
  height: 100dvh;
}

.app {
  background: var(--rays-background);
  background-color: var(--blue);
  background-repeat: no-repeat;
}

.screen {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--rays-background);
  background-color: var(--blue);
  background-repeat: no-repeat;
}

.screen--ray {
  background: var(--page-gradient);
}

.screen__canvas {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1280px;
  height: 720px;
  overflow: hidden;
  background: transparent;
  transform: translateX(-50%) scale(var(--ui-scale));
  transform-origin: top center;
}

.screen-header {
  position: absolute;
  z-index: 40;
  inset: 0;
  pointer-events: none;
}

.brand,
.research-link {
  position: absolute;
  pointer-events: auto;
}

.brand {
  top: 50px;
  left: 50px;
  width: 109px;
  height: 43px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.back-button {
  position: absolute;
  z-index: 35;
  top: 118px;
  left: 50px;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  font-family: "ALS Hauss", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: -0.6px;
  cursor: pointer;
}

.back-button:hover,
.back-button:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  outline: none;
}

.brand img {
  display: block;
  width: 109px;
  height: 43px;
  object-fit: contain;
}

.research-link {
  top: 50px;
  right: 50px;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 22px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -1px;
  text-align: right;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  white-space: nowrap;
  cursor: pointer;
}

.figma-copy,
.ray-copy,
.result-copy {
  position: absolute;
  z-index: 10;
  top: 174px;
  left: 50px;
}

h1,
h2 {
  margin: 0;
  color: #fff;
  font-size: 90px;
  font-weight: 500;
  line-height: 80px;
  letter-spacing: -3px;
}

p {
  margin: 0;
}

.figma-copy--home {
  width: 691px;
}

.home-description,
.wish-description,
.result-copy p {
  width: 650px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.9);
}

.home-description p + p {
  margin-top: 18px;
}

.choice-question {
  height: 60px;
  padding-top: 30px;
  font-weight: 500;
}

.choice-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.figma-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 52px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  background: var(--surface);
  forced-color-adjust: none;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.figma-pill:hover,
.figma-pill:focus-visible {
  color: var(--blue);
  -webkit-text-fill-color: var(--blue);
  background: var(--cyan);
  outline: none;
}

.figma-pill:active {
  transform: scale(0.98);
}
.figma-pill--lime {
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  background: var(--lime);
}

.figma-pill--outline {
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.home-art,
.entity-art,
.wish-art {
  position: absolute;
  z-index: 3;
  display: block;
  max-width: none;
  pointer-events: none;
}

.home-art {
  top: 112px;
  left: 700px;
  width: 560px;
  height: auto;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
}

.entity-art {
  top: 112px;
  left: 770px;
  width: 500px;
  height: auto;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
}

.wish-art {
  top: 72px;
  left: 688px;
  display: block;
  width: 560px;
  height: auto;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
}

.screen[data-screen="wish"][data-mode="project"] .wish-art {
  left: 705px;
}

.figma-copy--entity {
  width: 801px;
}

.figma-form {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 650px;
  height: 56px;
  padding: 5px 7px 5px 22px;
  border-radius: 999px;
  background: var(--surface);
}

.figma-copy--entity .figma-form {
  top: 222px;
  left: 0;
}

.figma-form input {
  position: relative;
  z-index: 3;
  display: block;
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--blue);
  background: transparent;
  font-size: 22px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -1px;
}

.figma-form input::placeholder {
  color: rgba(8, 119, 231, 0.56);
}

.figma-arrow {
  position: relative;
  z-index: 5;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-family: "ALS Hauss", Arial, sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  appearance: none;
  cursor: pointer;
}

.figma-arrow:hover,
.figma-arrow:focus-visible {
  color: var(--ink);
  background: var(--lime);
  outline: none;
}

.field-error {
  position: absolute;
  top: 294px;
  left: 20px;
  color: #fff;
  font-size: 17px;
  line-height: 20px;
}

.figma-form.has-error {
  box-shadow: 0 0 0 3px var(--pink);
}
.figma-copy--wish {
  width: 691px;
}

.figma-form--wish {
  z-index: 20;
  top: 444px;
  left: 50px;
}

.figma-form--wish:has(.suggestions:not([hidden])) {
  border-radius: 28px 28px 0 0;
}

.wish-combobox {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.wish-combobox input {
  width: 100%;
  max-width: none;
}

.suggestions {
  position: absolute;
  z-index: 2;
  top: 50px;
  left: -22px;
  width: 650px;
  height: 155px;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  background: var(--surface);
  background-image: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.suggestions__scroll {
  position: absolute;
  inset: 0 10px 6px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: var(--blue) transparent;
  scrollbar-width: thin;
}

.suggestions__scroll::-webkit-scrollbar {
  width: 8px;
}
.suggestions__scroll::-webkit-scrollbar-track {
  background: transparent;
}
.suggestions__scroll::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: var(--blue);
}

.suggestions button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 11px 16px 12px;
  border: 0;
  border-radius: 14px;
  color: var(--ink);
  background: transparent;
  font-size: 22px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -1px;
  text-align: left;
  cursor: pointer;
}

.suggestions button:hover,
.suggestions button:focus-visible {
  background: rgba(114, 246, 255, 0.65);
  outline: none;
}

.field-error--wish {
  z-index: 22;
  top: 516px;
  left: 72px;
}

/* Ray mechanic: mirrors the stable implementation from the previous project. */
.screen--ray .screen__canvas {
  touch-action: none;
}

.screen--ray .screen__canvas {
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  transform: none;
}

.ray-copy {
  z-index: 18;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.screen--ray .screen-header,
.screen--ray .back-button,
.screen--ray .research-link {
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.screen--ray.is-interacting .screen-header,
.screen--ray.is-launched .screen-header,
.screen--ray.is-interacting .back-button,
.screen--ray.is-launched .back-button,
.screen--ray.is-interacting .research-link,
.screen--ray.is-launched .research-link {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.screen--ray.is-interacting .ray-copy,
.screen--ray.is-launched .ray-copy {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.ray-stage {
  --pull-x: 0px;
  --pull-y: 0px;
  --pull: 0;
  --trajectory-angle: -45deg;
  --origin-x: 50%;
  --origin-y: 50%;
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
}

#ray-canvas {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ray-control {
  position: absolute;
  z-index: 16;
  top: var(--origin-y);
  left: var(--origin-x);
  width: 150px;
  height: 150px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
  touch-action: none;
  cursor: grab;
}

.ray-control:active {
  cursor: grabbing;
}

.ray-control__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 104px;
  height: 104px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  opacity: calc(0.76 - var(--pull) * 0.46);
  transform: translate(-50%, -50%);
}

.ray-control__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--lime);
  transform: translate(calc(-50% + var(--pull-x)), calc(-50% + var(--pull-y)));
  will-change: transform;
}

.ray-instruction {
  position: absolute;
  z-index: 17;
  top: calc(var(--origin-y) + 78px);
  left: var(--origin-x);
  width: max-content;
  margin: 0;
  font-size: 22px;
  line-height: 24px;
  letter-spacing: -1px;
  white-space: nowrap;
  transform: translateX(-50%);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  pointer-events: none;
}

.screen--ray.is-interacting .ray-instruction,
.screen--ray.is-launched .ray-instruction {
  opacity: 0;
  transform: translate(-50%, -8px);
}

.trajectory {
  position: absolute;
  z-index: 3;
  top: calc(var(--origin-y) + var(--pull-y));
  left: calc(var(--origin-x) + var(--pull-x));
  width: 120vmax;
  height: 76px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.1);
  clip-path: polygon(0 42%, 100% 0, 100% 100%, 0 58%);
  transform: translateY(-50%) rotate(var(--trajectory-angle));
  transform-origin: left center;
  pointer-events: none;
}

.trajectory i {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.72);
}

.trajectory i:nth-child(1) {
  top: 24%;
}
.trajectory i:nth-child(2) {
  top: 50%;
}
.trajectory i:nth-child(3) {
  top: 76%;
}
.screen--ray.is-interacting .ray-stage.has-trajectory .trajectory {
  opacity: 1;
}

.screen--ray.is-launched .ray-control,
.screen--ray.is-launched .trajectory {
  opacity: 0;
  pointer-events: none;
}

.ray-next {
  position: absolute;
  z-index: 30;
  top: 50%;
  left: 50%;
  min-width: 250px;
  color: var(--blue-deep);
  background: var(--surface);
  transform: translate(-50%, -50%);
}

.ray-next:hover,
.ray-next:focus-visible {
  background: var(--cyan);
}
.ray-next:active {
  transform: translate(-50%, -50%) scale(0.98);
}

/* Result */
.result-copy {
  width: 470px;
}

.result-copy p {
  width: 390px;
}

.result-output {
  position: absolute;
  z-index: 10;
  top: 126px;
  left: 555px;
  width: 675px;
  text-align: center;
}

.card-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.card-preview {
  width: 520px;
  height: 416px;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--blue);
}

#card-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.slider-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--blue);
  -webkit-text-fill-color: var(--blue);
  background: var(--surface);
  forced-color-adjust: none;
  font-family: "ALS Hauss", Arial, sans-serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  appearance: none;
  cursor: pointer;
}

.slider-arrow:hover,
.slider-arrow:focus-visible {
  color: var(--ink);
  background: var(--cyan);
  outline: none;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.slider-dots button {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: transparent;
  color-scheme: only light;
  forced-color-adjust: none;
  cursor: pointer;
}

.slider-dots button.is-active {
  background: #fff;
}

.result-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 12px;
}

.result-links button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: #fff;
  background: transparent;
  font-size: 16px;
  line-height: 19px;
  cursor: pointer;
}

.result-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.result-buttons .figma-pill {
  min-width: 210px;
  min-height: 46px;
  padding-top: 9px;
  padding-bottom: 10px;
}

/* Research */
.research-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.share-fallback {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

body.is-modal-open {
  overflow: hidden;
}

.share-fallback[hidden] {
  display: none;
}

.share-fallback__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 32, 86, 0.72);
  backdrop-filter: blur(8px);
}

.share-fallback__panel {
  position: relative;
  width: min(500px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 34px;
  border-radius: 32px;
  color: #fff;
  background: var(--blue);
  text-align: center;
}

.share-fallback__panel h2 {
  margin: 0 44px 10px;
  font-size: 42px;
  font-weight: 500;
  line-height: 0.96;
}

.share-fallback__panel p {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.2;
}

.share-fallback__panel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  -webkit-touch-callout: default;
  user-select: auto;
}

.share-fallback__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.share-fallback__actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.share-fallback__actions .figma-pill {
  width: 100%;
  min-height: 54px;
}

@media (max-width: 760px) {
  .share-fallback {
    padding: 12px;
  }

  .share-fallback__panel {
    padding: 26px 18px 20px;
    border-radius: 24px;
  }

  .share-fallback__panel h2 {
    margin-bottom: 8px;
    font-size: 34px;
  }

  .share-fallback__panel p {
    font-size: 16px;
  }

  .share-fallback__close {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
  }
}

.research-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 45, 92, 0.58);
  backdrop-filter: blur(7px);
}

.research-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 700px;
  min-height: 420px;
  padding: 64px 54px 48px;
  border-radius: 42px;
  color: #fff;
  background: var(--blue);
  text-align: center;
}

.research-modal__panel h2 {
  font-size: 60px;
  line-height: 55px;
  letter-spacing: -3px;
}

.research-modal__panel p {
  width: 560px;
  margin: 26px auto 34px;
}

.research-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0 0 4px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 760px) {
  html,
  body {
    min-height: 100%;
  }

  body {
    overflow-x: hidden;
    overflow-y: auto;
    font-size: 18px;
    line-height: 21px;
    letter-spacing: -0.7px;
  }

  .app,
  .screen {
    height: auto;
    min-height: 100dvh;
  }

  .screen {
    display: block;
    overflow-x: clip;
    overflow-y: visible;
  }

  .screen__canvas {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    background: transparent;
    transform: none;
  }

  .screen[data-screen="home"] .screen__canvas {
    display: flex;
    flex-direction: column;
  }

  .screen-header {
    position: relative;
    inset: auto;
    width: 100%;
    height: 82px;
  }

  .brand {
    top: 22px;
    left: 20px;
    width: 73px;
    height: 29px;
  }

  .brand img {
    width: 73px;
    height: 29px;
  }

  .research-link {
    top: 23px;
    right: 20px;
    width: 185px;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: -0.45px;
    text-align: right;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    white-space: normal;
  }

  .back-button {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    width: max-content;
    margin: 10px 20px 0;
    font-size: 15px;
    line-height: 18px;
  }

  .figma-copy,
  .ray-copy,
  .result-copy {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    padding: 22px 20px 0;
  }

  h1,
  h2 {
    font-size: clamp(44px, 13.8vw, 56px);
    line-height: 0.93;
    letter-spacing: -2px;
  }

  .home-description,
  .wish-description,
  .result-copy p {
    width: 100%;
    margin-top: 22px;
  }

  .choice-question {
    height: auto;
    margin-top: 22px;
    padding-top: 0;
  }

  .choice-row {
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
  }

  .choice-row .figma-pill {
    width: 100%;
  }

  .screen[data-screen="home"],
  .screen[data-screen="home"] .screen__canvas {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .home-art,
  .entity-art,
  .wish-art {
    display: none !important;
  }

  .screen[data-screen="home"] .figma-copy {
    margin: auto 0;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .screen[data-screen="home"] h1 {
    font-size: clamp(44px, 13.8vw, 56px);
    line-height: 0.93;
  }

  .screen[data-screen="home"] .home-description,
  .screen[data-screen="home"] .choice-question,
  .screen[data-screen="wish"] .wish-description {
    font-size: 18px;
    line-height: 21px;
    letter-spacing: -0.7px;
  }

  .screen[data-screen="home"] .home-description {
    margin-top: 20px;
  }
  .screen[data-screen="home"] .home-description p + p {
    margin-top: 18px;
  }
  .screen[data-screen="home"] .choice-question {
    margin-top: 20px;
  }

  .screen[data-screen="home"] .choice-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  .screen[data-screen="home"] .choice-row .figma-pill {
    min-width: 0;
    min-height: 46px;
    padding: 9px 12px;
  }

  .figma-copy--entity .figma-form,
  .figma-form--wish {
    position: relative;
    top: auto;
    left: auto;
    width: calc(100% - 40px);
    height: 58px;
    margin: 34px 20px 0;
    padding-left: 18px;
  }

  .screen[data-screen="entity"] .screen__canvas,
  .screen[data-screen="wish"] .screen__canvas {
    --mobile-field-top: clamp(390px, 57vh, 480px);
    --mobile-field-top: clamp(390px, 57svh, 480px);
    min-height: 700px;
    min-height: max(100svh, 700px);
  }

  .screen[data-screen="entity"] .figma-copy--entity {
    display: contents;
  }

  .screen[data-screen="entity"] .figma-copy--entity h2,
  .screen[data-screen="wish"] .figma-copy--wish {
    position: absolute;
    top: 132px;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0 20px;
  }

  .screen[data-screen="entity"] .figma-copy--entity .figma-form,
  .screen[data-screen="wish"] .figma-form--wish {
    position: absolute;
    top: var(--mobile-field-top);
    right: 20px;
    left: 20px;
    width: auto;
    margin: 0;
  }

  .figma-copy--entity .figma-form {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .figma-form input {
    height: 38px;
    font-size: 18px;
    line-height: 21px;
  }

  .figma-arrow {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .field-error,
  .field-error--wish {
    position: relative;
    top: auto;
    left: auto;
    min-height: 18px;
    margin: 7px 38px 0;
    font-size: 14px;
    line-height: 18px;
  }

  .screen[data-screen="entity"] .figma-copy--entity .field-error,
  .screen[data-screen="wish"] .field-error--wish {
    position: absolute;
    top: calc(var(--mobile-field-top) + 64px);
    right: 38px;
    left: 38px;
    margin: 0;
    padding: 0;
  }
  .wish-description br {
    display: none;
  }

  .wish-combobox {
    min-width: 0;
  }

  .suggestions {
    top: 52px;
    left: -18px;
    width: calc(100% + 79px);
    height: 143px;
  }

  .suggestions__scroll {
    inset: 0 8px 4px;
  }

  .suggestions button {
    min-height: 46px;
    padding: 10px 12px 11px;
    font-size: 17px;
    line-height: 20px;
  }

  .screen--ray,
  .screen--ray .screen__canvas {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    touch-action: none;
  }

  .ray-copy {
    z-index: 18;
  }

  .ray-instruction {
    top: calc(var(--origin-y) + 68px);
    font-size: 13px;
    line-height: 16px;
  }

  .ray-stage {
    --origin-y: 50%;
    width: 100%;
    height: 100%;
  }

  .ray-control {
    width: 132px;
    height: 132px;
  }

  .trajectory {
    height: 58px;
  }

  .ray-next {
    width: calc(100% - 40px);
    max-width: 350px;
  }

  .result-canvas {
    padding-bottom: 28px;
  }

  .result-output {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    margin-top: 22px;
    padding: 0 12px;
  }

  .card-slider {
    gap: 4px;
  }

  .card-preview {
    width: min(calc(100vw - 84px), 470px);
    height: min(calc((100vw - 84px) * 0.8), 376px);
    border-radius: 20px;
  }

  .slider-arrow {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    font-size: 19px;
    line-height: 19px;
  }

  .result-buttons {
    flex-direction: column;
    gap: 8px;
    padding: 0 6px;
  }

  .result-buttons .figma-pill {
    width: 100%;
  }

  .research-modal {
    padding: 16px;
  }

  .research-modal__panel {
    width: min(100%, 520px);
    min-height: 0;
    max-height: calc(100dvh - 32px);
    padding: 76px 22px 30px;
    border-radius: 28px;
  }

  .research-modal__panel h2 {
    font-size: clamp(38px, 11vw, 46px);
    line-height: 0.94;
    letter-spacing: -2px;
  }

  .research-modal__panel p {
    width: 100%;
    margin: 22px 0 28px;
  }

  .research-modal__panel .figma-pill {
    width: 100%;
  }

  .research-modal__close {
    top: 12px;
    right: 14px;
    width: 44px;
    height: 44px;
    font-size: 31px;
  }
}

@media (max-width: 380px) {
  h1,
  h2 {
    font-size: 44px;
  }
  .figma-copy,
  .ray-copy,
  .result-copy {
    padding-top: 16px;
  }
  .home-description {
    margin-top: 18px;
  }
  .choice-question {
    margin-top: 17px;
  }
  .research-link {
    width: 170px;
    font-size: 13px;
    line-height: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
