  .survey {
    padding: calc(10px + env(safe-area-inset-top)) 0 calc(10px + env(safe-area-inset-bottom));
    background: rgba(14, 10, 26, .78);
    -webkit-backdrop-filter: blur(10px) saturate(.9);
    backdrop-filter: blur(10px) saturate(.9);
  }

  .survey .survey-card {
    width: min(92vw, 430px);
    max-height: min(86dvh, 740px);
    padding: 20px 0 calc(16px + env(safe-area-inset-bottom));
    display: flex; flex-direction: column;
    border: 1px solid rgba(255, 214, 102, .3);
    border-radius: 26px;
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 214, 102, .12) 0%, rgba(255, 214, 102, 0) 55%),
      linear-gradient(180deg, #2E2454 0%, #211A3E 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
    overflow: hidden;
  }

  .survey-card .sd-kicker {
    padding: 0 20px;
    font-size: 11px; font-weight: 600;
    letter-spacing: .18em;
    color: #F0C87A;
    text-align: center;
  }
  .survey-card .reveal-name {
    padding: 0 20px;
    margin-top: 6px;
    font-size: 20px;
    line-height: 1.35;
    color: #FFF6E6;
    text-align: center;
  }
  .survey-card .reveal-name::after {
    content: "";
    display: block;
    width: 56px; height: 1px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, rgba(255, 214, 102, 0), rgba(255, 214, 102, .55), rgba(255, 214, 102, 0));
  }

  .survey-body {
    flex: 1 1 auto; min-height: 0;
    margin-top: 12px;
    padding: 0 16px 2px;
    text-align: left;              /* .reveal-card 的居中不带进正文 */
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8px, #000 calc(100% - 10px), transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 8px, #000 calc(100% - 10px), transparent 100%);
  }

  .sq {
    margin-bottom: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    background: rgba(255, 255, 255, .055);
  }
  .sq:last-child { margin-bottom: 2px; }
  .sq-title {
    font-size: 14px; font-weight: 600;
    line-height: 1.6;
    color: #FFF1DD;
    overflow-wrap: anywhere;       /* 长题目在窄屏正常换行，不横向溢出 */
  }

  .sq-opts {
    display: grid; grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
  }
  .sq-opts label {
    display: flex; align-items: center; gap: 10px;
    min-height: 46px;
    padding: 10px 14px;
    border: 1.5px solid rgba(255, 241, 221, .16);
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 241, 221, .82);
    font-size: 14px; line-height: 1.45;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
  }
  .sq-opts label:active { transform: scale(.985); }
  .sq-opts label:has(input:checked) {
    border-color: rgba(255, 216, 77, .85);
    background: rgba(255, 216, 77, .16);
    color: #FFF9EC;
    box-shadow: 0 0 0 3px rgba(255, 216, 77, .12);
  }
  .sq-opts label:has(input:checked)::after {
    content: "✓";
    margin-left: auto;
    font-size: 14px; font-weight: 700;
    color: #FFD84D;
  }
  .sq-opts input {
    flex: 0 0 auto;
    width: 18px; height: 18px; margin: 0;
    accent-color: #FFD84D;
  }
  .sq-opts label:has(input:focus-visible),
  .sq-sheep-item:has(input:focus-visible) {
    outline: 2px solid rgba(255, 216, 77, .7);
    outline-offset: 2px;
  }

  .sq-score {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }
  .sq-score label {
    position: relative;
    justify-content: center;
    padding: 0;
    min-height: 48px;
    font-size: 17px; font-weight: 700;
    color: #FFE9C4;
  }
  .sq-score label::after { display: none !important; }
  .sq-score label:has(input:checked) {
    border-color: var(--accent-2);
    background: var(--accent-2);
    color: #4A2A18;
  }
  .sq-score input {
    position: absolute;
    width: 1px; height: 1px; margin: 0;
    opacity: 0; pointer-events: none;
  }

  .sq-sheep {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
  }
  .sq-sheep-item {
    position: relative;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 4px;
    min-height: 84px;
    padding: 8px 4px 7px;
    border: 1.5px solid rgba(255, 241, 221, .16);
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 241, 221, .78);
    font-size: 11px; line-height: 1.25;
    text-align: center;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
  }
  .sq-sheep-item img {
    width: 100%; max-width: 56px; height: 44px;
    object-fit: contain;
  }
  .sq-sheep-item input {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0; pointer-events: none;
  }
  .sq-sheep-item:has(input:checked) {
    border-color: rgba(255, 216, 77, .9);
    background: rgba(255, 216, 77, .17);
    color: #FFF9EC;
    box-shadow: 0 0 0 3px rgba(255, 216, 77, .12);
  }
  .sq-sheep-item:has(input:checked)::after {
    content: "✓";
    position: absolute; top: 4px; right: 6px;
    font-size: 11px; font-weight: 700;
    color: #FFD84D;
  }
  @media (max-width: 359px) {
    .sq-sheep { grid-template-columns: repeat(3, 1fr); }
  }

  #survey-note {
    width: 100%;
    min-height: 92px;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1.5px solid rgba(255, 241, 221, .16);
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    color: #FFF6E6;
    font: inherit; font-size: 14px; line-height: 1.6;
    resize: none;
    -webkit-user-select: text;
    user-select: text;
  }
  #survey-note::placeholder { color: rgba(255, 241, 221, .42); }
  #survey-note:focus {
    outline: none;
    border-color: rgba(255, 216, 77, .7);
    background: rgba(255, 255, 255, .09);
  }

  .survey-card .reveal-btn {
    width: calc(100% - 32px);
    min-height: 50px;
    margin: 14px 16px 0;
    border-radius: 999px;
    font-size: 16px;
  }
  .survey-card .link-btn {
    align-self: center;
    min-height: 44px;
    margin-top: 6px;
    padding: 0 16px;
    color: rgba(255, 241, 221, .62);
    font-size: 13px;
  }
  .survey-card .link-btn:active { color: rgba(255, 241, 221, .92); }

  .survey-done {
    display: flex; flex-direction: column; align-items: center;
    margin: 24px 20px 4px;
    text-align: center;
  }
  .survey-done[hidden] { display: none; }   /* flex 会盖住 hidden 的默认样式 */
  .survey-done-mark {
    display: grid; place-items: center;
    width: 64px; height: 64px;
    border-radius: 50%;
    font-size: 30px; font-weight: 700;
    color: #FFF9EC;
    background: radial-gradient(circle at 50% 35%, #FFE28A 0%, #F5B942 68%, #D99325 100%);
    box-shadow: 0 8px 24px rgba(255, 190, 60, .32), inset 0 1px 0 rgba(255, 255, 255, .55);
  }
  .survey-done-text {
    margin-top: 16px;
    font-size: 14px; line-height: 1.7;
    color: rgba(255, 241, 221, .82);
  }
