/* The feedback survey card at /survey. One screen, pixel accents, glow on
   whatever you tap. Palette comes from legacy-refresh.css. */

.survey-page {
  min-height: calc(100vh - 78px);
  display: grid;
  align-content: center;
  padding: 3rem 1rem 3rem;
  background-image: radial-gradient(circle, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 8px 8px;
}
.survey-wrap { width: min(36rem, 100%); margin-inline: auto; }

/* The cat walks along a ledge above the card. */
.survey-shelf {
  height: 44px; position: relative; overflow: hidden;
  border-bottom: 3px solid rgba(148,108,255,.55); margin: 0 .6rem;
}
.survey-cat {
  position: absolute; bottom: -6px; left: 0; width: 64px; height: 64px;
  image-rendering: pixelated;
  background: url("pixel-cat-sprite.png") 0 0 / 384px 64px no-repeat;
  animation: surveyPaws .8s steps(6) infinite, surveyStroll 15s linear infinite;
  filter: drop-shadow(0 0 8px rgba(255,196,110,.45));
}
@keyframes surveyPaws { to { background-position: -384px 0; } }
@keyframes surveyStroll { from { transform: translateX(-70px); } to { transform: translateX(38rem); } }
body.survey-hyper .survey-cat { animation-duration: .4s, 7s; }
@media (prefers-reduced-motion: reduce) { .survey-cat { animation: none; left: 1rem; } }

.survey-card {
  background: #11152b; border: 1px solid rgba(148,108,255,.55); border-radius: 18px;
  padding: clamp(1.3rem, 4vw, 2rem);
  box-shadow: 6px 6px 0 rgba(0,0,0,.5), 0 0 60px rgba(148,108,255,.13);
}
.survey-card .eyebrow {
  margin: 0 0 .8rem; font-family: 'Press Start 2P', monospace;
  font-size: .58rem; letter-spacing: .06em; color: #43dff5;
  text-shadow: 0 0 12px rgba(67,223,245,.55);
}
.survey-card h1 { margin: 0 0 .3rem; font-size: clamp(1.5rem, 5vw, 1.95rem); line-height: 1.15; }
.survey-card .sub { margin: 0 0 1.4rem; color: #aeb2c8; font-size: .92rem; }

.survey-q { margin-bottom: 1.25rem; }
.survey-q > label, .survey-q > legend {
  display: block; font-weight: 600; font-size: .94rem; margin-bottom: .5rem; padding: 0;
}
.survey-card fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

.survey-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.survey-chip {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; font-size: .85rem;
  padding: .38rem .7rem; background: #171b35; border: 1px solid rgba(164,151,255,.18);
  border-radius: 99px; color: #aeb2c8; transition: all .15s;
}
.survey-chip:hover { border-color: rgba(148,108,255,.55); color: #f4f5fb; }
.survey-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.survey-chip:has(input:checked) {
  border-color: #946cff; color: #f4f5fb;
  background: rgba(148,108,255,.18); box-shadow: 0 0 14px rgba(148,108,255,.4);
}
.survey-chip img { width: 17px; height: 17px; border-radius: 5px; object-fit: cover; }

.survey-faces { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.survey-face {
  display: flex; flex-direction: column; align-items: center; gap: .35rem; cursor: pointer;
  padding: .6rem .3rem; background: #171b35; border: 1px solid rgba(164,151,255,.18);
  border-radius: 12px; transition: all .15s;
}
.survey-face:hover { border-color: rgba(148,108,255,.55); }
.survey-face input { position: absolute; opacity: 0; width: 0; height: 0; }
.survey-face em { font-style: normal; font-size: 1.4rem; line-height: 1; }
.survey-face span { font-family: 'Press Start 2P', monospace; font-size: .5rem; color: #7d81a0; }
.survey-face:has(input:checked) {
  border-color: #946cff; background: rgba(148,108,255,.18);
  box-shadow: 0 0 16px rgba(148,108,255,.4);
}
.survey-face:has(input:checked) span { color: #f4f5fb; }
.survey-face:has(input:checked) em { filter: drop-shadow(0 0 8px rgba(255,255,255,.4)); }

.survey-split { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.survey-box {
  background: #171b35; border: 1px solid rgba(164,151,255,.18); border-radius: 13px;
  padding: .7rem .75rem; transition: border-color .15s, box-shadow .15s;
}
.survey-box label {
  display: flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .86rem; margin-bottom: .35rem;
}
.survey-box label em { font-style: normal; font-size: .95rem; }
.survey-box textarea {
  width: 100%; background: none !important; border: 0 !important; color: #f4f5fb;
  font: inherit; font-size: .93rem; resize: vertical; min-height: 4rem; line-height: 1.55;
  padding: 0 !important;
}
.survey-box textarea:focus { outline: none !important; box-shadow: none !important; }
.survey-box textarea::placeholder { color: #7d81a0; }
.survey-box--good:focus-within { border-color: #55dea5; box-shadow: 0 0 18px rgba(85,222,165,.28); }
.survey-box--bad:focus-within { border-color: #fde68a; box-shadow: 0 0 18px rgba(253,230,138,.24); }

.survey-card .survey-input {
  width: 100%; padding: .7rem .8rem; background: #171b35; color: #f4f5fb;
  border: 1px solid rgba(164,151,255,.18); border-radius: 12px; font: inherit; font-size: 1rem;
}
.survey-card .survey-input::placeholder { color: #7d81a0; }

.survey-foot {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  padding-top: 1.1rem; border-top: 1px solid rgba(164,151,255,.18);
}
.survey-foot p { margin: 0; flex: 1 1 11rem; font-size: .79rem; color: #7d81a0; }

/* House keycap, same as the site buttons. */
.survey-card .survey-send {
  font-family: 'Press Start 2P', monospace; font-size: .62rem; cursor: pointer;
  padding: .95rem 1.5rem; border-radius: 12px; border: 0 !important; color: #06121c !important;
  background: linear-gradient(150deg, #5ceaff, #55dea5) !important;
  box-shadow: 0 4px 0 #1c9c86 !important;
  transition: filter .12s, transform .08s, box-shadow .08s;
}
.survey-card .survey-send:hover { filter: brightness(1.08); }
.survey-card .survey-send:active { transform: translateY(4px); box-shadow: 0 0 0 #1c9c86 !important; }
.survey-card .survey-send[disabled] { filter: grayscale(.5); cursor: default; }

.survey-note { margin: 1rem 0 0; text-align: center; font-size: .78rem; color: #7d81a0; }
.survey-note a { color: #43dff5; text-decoration: none; border-bottom: 1px solid rgba(67,223,245,.35); }

.survey-msg { margin: .9rem 0 0; font-size: .87rem; border-radius: 12px; padding: .75rem .9rem; display: none; }
.survey-msg.show { display: block; }
.survey-msg--ok { background: rgba(85,222,165,.1); border: 1px solid #55dea5; color: #b7f0d8; }
.survey-msg--bad { background: rgba(255,139,122,.1); border: 1px solid #ff8b7a; color: #ffc4bb; }

.survey-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 30rem) {
  .survey-page { padding: 2.5rem .8rem 2.5rem; }
  .survey-split { grid-template-columns: 1fr; }
  .survey-faces { grid-template-columns: repeat(2, 1fr); }
}
