:root {
  color-scheme: light;
  --blue: #2b48ff;
  --blue-deep: #102b86;
  --blue-soft: #e9f2ff;
  --ice: #dff5ff;
  --ink: #080d1d;
  --muted: #5f6b82;
  --line: rgba(83, 112, 168, 0.2);
  --panel: rgba(255, 255, 255, 0.72);
  --danger: #c9394b;
  --red-accent: #e95063;
  --aa-blue: #1e3cff;
  --aa-red: #f00a0a;
  --chrome-dark: #11151d;
  --chrome-mid: #303642;
  --shadow: 0 26px 80px rgba(27, 63, 136, 0.16);
}

[hidden] {
  display: none !important;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: Inter, "Noto Sans JP", "Noto Sans KR", system-ui, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(128deg, rgba(255, 255, 255, 0.94), rgba(229, 242, 255, 0.88)),
    #eef5ff;
  letter-spacing: 0;
}

button, input, textarea { font: inherit; letter-spacing: 0; }
button { -webkit-tap-highlight-color: transparent; }

.survey-shell {
  width: min(1440px, calc(100% - 40px));
  min-height: min(900px, calc(100vh - 40px));
  margin: 20px auto;
  display: grid;
  grid-template-columns: minmax(360px, 43%) minmax(0, 57%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  background: rgba(246, 250, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(130%);
}

.brand-stage {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #fbfdff 0%, #edf7ff 58%, #e8efff 100%);
  border-right: 1px solid var(--line);
}

.brand-stage::before,
.brand-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.brand-stage::before {
  width: 58%;
  aspect-ratio: 1;
  left: -20%;
  bottom: -12%;
  border: 1px solid rgba(43, 72, 255, 0.14);
  transform: rotate(42deg);
}

.brand-stage::after {
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(228, 240, 255, 0.55));
}

.stage-light {
  position: absolute;
  width: 34vw;
  height: 34vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
}

.stage-light-blue { background: #4dafff; right: -18%; top: -12%; }
.stage-light-red { background: var(--red-accent); left: -24%; top: 15%; opacity: 0.1; }

.stage-art {
  position: relative;
  z-index: 1;
  width: 96%;
  height: 94%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 30px 42px rgba(17, 48, 112, 0.18));
}

.stage-caption {
  position: absolute;
  z-index: 2;
  left: 30px;
  top: 28px;
  display: grid;
  gap: 5px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 12px 38px rgba(25, 60, 128, 0.12);
  backdrop-filter: blur(16px) saturate(140%);
}

.stage-caption span { font-size: 11px; font-weight: 700; color: var(--blue); }
.stage-caption strong { font-size: 14px; }

.survey-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 44px 30px;
  background:
    linear-gradient(138deg, rgba(255, 255, 255, 0.78), rgba(239, 247, 255, 0.66)),
    rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(24px) saturate(140%);
}

.survey-header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  width: 94px;
  height: 46px;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
}

.chapter-rail {
  --chapter-count: 4;
  position: absolute;
  z-index: 4;
  left: 30px;
  right: 30px;
  bottom: 26px;
  display: grid;
  grid-template-columns: repeat(var(--chapter-count), minmax(0, 1fr));
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 8px;
  background: rgba(247,251,255,.7);
  box-shadow: 0 14px 38px rgba(25,60,128,.12), inset 0 1px rgba(255,255,255,.95);
  backdrop-filter: blur(16px) saturate(135%);
}

.chapter-node {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0,1fr);
  grid-template-areas: "dot index" "dot label";
  align-items: center;
  column-gap: 8px;
  padding: 4px 9px;
  color: #8a96a9;
}

.chapter-node:not(:last-child)::after {
  content: "";
  position: absolute;
  width: 1px;
  top: 5px;
  bottom: 5px;
  right: 0;
  background: rgba(101,130,183,.18);
}

.chapter-node-index { grid-area: index; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.chapter-node strong { grid-area: label; overflow: hidden; color: inherit; font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.chapter-node-dot {
  grid-area: dot;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #bcc9da;
  border-radius: 50%;
  background: rgba(255,255,255,.78);
  font-size: 11px;
  color: transparent;
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}
.chapter-node.complete { color: #4b648c; }
.chapter-node.complete .chapter-node-dot { color: #fff; border-color: #7894c8; background: #7894c8; }
.chapter-node.current { color: #163586; }
.chapter-node.current .chapter-node-dot { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(43,72,255,.12), 0 0 15px rgba(43,72,255,.28); }
.chapter-node.current .chapter-node-dot::after { content:""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.chapter-node.current .chapter-node-dot i { display:none; }
.chapter-rail.chapter-shift::before {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(100deg, transparent 35%, rgba(88,169,255,.2), transparent 65%);
  animation: chapter-light 420ms ease-out 1;
}
@keyframes chapter-light { from { transform: translateX(-65%); opacity:0; } 35% { opacity:1; } to { transform:translateX(65%); opacity:0; } }

.chapter-compact { display:none; }

.language-switch {
  display: inline-flex;
  padding: 4px;
  gap: 3px;
  border: 1px solid rgba(113, 141, 194, 0.23);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.92);
}

.language-switch button {
  min-width: 42px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #68748b;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.language-switch button.active {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 6px 16px rgba(43, 72, 255, 0.24);
}

.progress-wrap { margin: 18px 0 12px; }
.progress-meta { display: flex; justify-content: space-between; gap: 16px; color: #738096; font-size: 12px; font-weight: 700; }
.progress-track { height: 5px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: #e3ebf7; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #4baef3); transition: width 320ms ease; }

.survey-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 26px 5px 22px 0;
  scrollbar-width: thin;
  scrollbar-color: #c8d6ea transparent;
}

.screen { animation: screen-in 220ms cubic-bezier(.2,.75,.2,1); }
@keyframes screen-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1, h2 { margin: 0; max-width: 780px; }
h1 { font-size: clamp(34px, 4vw, 58px); line-height: 1.04; }
h2 { font-size: clamp(27px, 3vw, 42px); line-height: 1.12; }
.lead { margin: 18px 0 0; max-width: 680px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.supporting { margin: 10px 0 0; color: #68748b; font-size: 13px; line-height: 1.55; }
.optional-note { color: #7a859a; font-size: 12px; }

.welcome-benefit {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  max-width: 680px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,.68), rgba(224,241,255,.52));
  box-shadow: 0 16px 48px rgba(37, 73, 148, 0.1);
  backdrop-filter: blur(18px) saturate(140%);
}
.welcome-benefit i { display: grid; place-items: center; width: 40px; height: 40px; color: var(--blue); background: rgba(255,255,255,.78); border-radius: 8px; font-size: 21px; }
.welcome-benefit strong { display: block; margin-bottom: 5px; }
.welcome-benefit p { margin: 0; color: #526078; line-height: 1.55; font-size: 14px; }

.welcome-action { margin-top: 30px; width: min(340px, 100%); }
.welcome-start { width: 100%; }

.preview-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 680px;
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(39, 96, 222, 0.2);
  border-radius: 8px;
  color: #34527f;
  background: rgba(229, 240, 255, 0.7);
  font-size: 13px;
  line-height: 1.5;
}
.preview-note i { flex: 0 0 auto; margin-top: 2px; color: var(--blue); font-size: 17px; }
.success-mark.preview { color: var(--blue); background: rgba(225, 239, 255, 0.88); }

.question-list { margin-top: 30px; display: grid; gap: 28px; }
.question-block { padding-top: 24px; border-top: 1px solid rgba(102, 130, 182, 0.18); }
.question-block:first-child { padding-top: 0; border-top: 0; }
.question-title { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 750; }
.question-help { margin: 7px 0 0; color: #66728a; font-size: 13px; line-height: 1.55; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }
.choice-card {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid rgba(126, 153, 199, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.88), 0 9px 24px rgba(45, 77, 137, 0.06);
  color: #202a3e;
  cursor: pointer;
  text-align: left;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, box-shadow 170ms ease;
}
.choice-card:hover { transform: translateY(-1px); border-color: rgba(43,72,255,.42); }
.choice-card.selected { color: #102766; border-color: var(--blue); background: rgba(225, 237, 255, 0.92); box-shadow: 0 12px 24px rgba(43,72,255,.12), inset 0 1px #fff; }
.choice-indicator { flex: 0 0 auto; width: 19px; height: 19px; display: grid; place-items: center; border: 1.5px solid #a8b6cd; border-radius: 50%; color: transparent; font-size: 12px; }
.multi .choice-indicator { border-radius: 5px; }
.selected .choice-indicator { color: white; border-color: var(--blue); background: var(--blue); }
.choice-label { line-height: 1.35; font-size: 14px; font-weight: 600; }

.rating-row { display: grid; grid-template-columns: repeat(5, minmax(46px, 1fr)); gap: 9px; margin-top: 15px; }
.rating-row.nps { grid-template-columns: repeat(11, minmax(34px, 1fr)); gap: 6px; }
.rating-button { height: 50px; border: 1px solid rgba(126,153,199,.28); border-radius: 8px; background: rgba(255,255,255,.68); color: #44516a; cursor: pointer; font-weight: 750; transition: 160ms ease; }
.rating-button:hover { transform: translateY(-1px); border-color: rgba(43,72,255,.45); }
.rating-button.selected { color: #fff; border-color: var(--blue); background: var(--blue); box-shadow: 0 9px 20px rgba(43,72,255,.2); }
.rating-ends { display: flex; justify-content: space-between; margin-top: 8px; color: #7b879b; font-size: 11px; }
.na-button { width: 100%; min-height: 42px; margin-top: 10px; border: 1px dashed rgba(110,137,184,.36); border-radius: 8px; background: rgba(255,255,255,.46); color: #637088; cursor: pointer; }
.na-button.selected { color: #173477; border-style: solid; border-color: #8aa6d8; background: #edf4ff; }

.field-wrap { margin-top: 14px; }
.field-label { display: block; margin: 0 0 7px; color: #45536c; font-size: 12px; font-weight: 700; }
.field-label .optional { margin-left: 8px; color: #8591a4; font-size: 10px; font-weight: 400; white-space: nowrap; }
textarea, input[type="text"], input[type="email"] {
  width: 100%;
  border: 1px solid rgba(119, 147, 194, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
textarea { min-height: 104px; overflow-y: hidden; resize: none; padding: 14px 15px; line-height: 1.55; }
input[type="text"], input[type="email"] { min-height: 48px; padding: 0 14px; }
textarea:focus, input:focus { border-color: var(--blue); background: rgba(255,255,255,.88); box-shadow: 0 0 0 3px rgba(43,72,255,.1); }
textarea::placeholder, input::placeholder { color: #9aa5b8; }

.conditional-panel { margin-top: 14px; padding: 15px; border-left: 3px solid var(--blue); background: rgba(231,241,255,.56); border-radius: 0 8px 8px 0; animation: conditional-in 220ms ease-out; }
@keyframes conditional-in { from { opacity:0; transform:translateY(-5px); } to { opacity:1; transform:none; } }
.consent-grid { display: grid; gap: 10px; margin-top: 16px; }
.consent-card { min-height: 60px; align-items: flex-start; padding: 18px 15px; }
.consent-card .choice-label { display: grid; gap: 6px; }
.consent-card .choice-label strong { color: #17223b; font-size: 13px; font-weight: 600; line-height: 1.7; }
.consent-card .choice-label small { color: #7c8ba3; font-size: 10px; font-weight: 400; line-height: 1.8; }
.contact-box { margin-top: 25px; padding: 19px 16px; border: 1px solid #dce5f3; border-radius: 11px; background: #f6f8fd; }
.contact-box-title { display: block; margin: 0 0 10px; color: #17223b; font-size: 13px; font-weight: 600; line-height: 1.85; }
.contact-row { display: flex; gap: 9px; min-width: 0; }
.contact-row select, .contact-row input { min-width: 0; min-height: 44px; border: 1px solid #d9e2f1; border-radius: 7px; background: #fff; padding: 11px 10px; font-size: 12px; }
.contact-row select { width: 103px; flex: 0 0 103px; }
.contact-row input { width: 100px; flex: 1; }
.privacy-note { display: flex; gap: 9px; margin-top: 23px; color: #7a8aa4; font-size: 11px; line-height: 1.8; }
.privacy-note i { margin-top: 3px; font-size: 15px; }
.nav-hint { grid-column: 1 / -1; margin: 2px 0 0; color: #8390a4; font-size: 10px; line-height: 1.8; text-align: center; }
.add-note { margin-top: 8px; }
.add-note summary { display: flex; min-height: 35px; align-items: center; gap: 6px; color: #697fa6; font-size: 10px; cursor: pointer; list-style: none; }
.add-note summary::-webkit-details-marker { display: none; }
.add-note summary i { font-size: 13px; }
.add-note .field-wrap { margin-top: 8px; }
.bali-screen .bali-question-block > .question-title,
.bali-screen .bali-field-wrap > .bali-text-question-title {
  color: #202a3e;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.45;
}
.bali-screen .bali-field-wrap > .bali-text-question-title {
  display: block;
  margin: 0 0 7px;
}
.bali-screen .bali-field-wrap > .bali-text-question-title .optional {
  color: #8591a4;
  font-size: 12px;
  font-weight: 400;
}
.bali-screen .bali-rating-followup .bali-text-question-title {
  color: #45536c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.bali-screen .bali-rating-followup .bali-text-question-title .optional {
  font-size: 10px;
}
.bali-screen .bali-rating-followup { margin-top: -20px; }

.form-error { margin: 4px 0 14px; padding: 12px 14px; color: #8c2030; border: 1px solid rgba(201,57,75,.26); border-radius: 8px; background: rgba(255,236,239,.75); font-size: 13px; }
.survey-actions { display: grid; grid-template-columns: minmax(108px, 150px) minmax(0, 340px); justify-content: end; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(101,130,183,.16); }
.primary-action-slot { width: 100%; min-width: 0; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 8px; cursor: pointer; font-weight: 750; transition: transform 170ms ease, box-shadow 170ms ease, opacity 170ms ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.button-secondary { color: #34415a; border: 1px solid rgba(106,135,184,.28); background: rgba(255,255,255,.68); }

.signal-module-button {
  --signal-height: 60px;
  position: relative;
  width: min(340px, 100%);
  height: var(--signal-height);
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--signal-height);
  gap: 4px;
  padding: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 10px 12px rgba(10, 18, 35, 0.24));
  transition: transform 210ms ease, filter 210ms ease, opacity 210ms ease;
  -webkit-tap-highlight-color: transparent;
}

.signal-module-button::after {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: -1;
  border: 2px solid transparent;
  border-radius: 10px;
  pointer-events: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.signal-module-frame {
  position: relative;
  min-width: 0;
  height: 100%;
  padding: 4px;
  overflow: hidden;
  isolation: isolate;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
  background:
    linear-gradient(155deg, rgba(255,255,255,.88) 0 2%, transparent 2% 20%),
    linear-gradient(180deg, #4b5360 0%, #171c25 15%, #080b10 50%, #222933 84%, #070a0e 100%);
  box-shadow:
    inset 0 1px rgba(255,255,255,.78),
    inset 1px 0 rgba(218,229,243,.52),
    inset 0 -1px rgba(0,0,0,.92);
}

.signal-module-frame::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  clip-path: inherit;
  background: linear-gradient(180deg, #0a0e15, #1c222c 52%, #090c12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 0 4px 7px rgba(0,0,0,.78);
}

.signal-module-frame::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 9px;
  right: 9px;
  z-index: 3;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,249,255,.88) 18%, rgba(255,255,255,.46) 78%, transparent);
  pointer-events: none;
}

.signal-module-screen {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
  background: linear-gradient(180deg, #3157ff 0%, var(--aa-blue) 52%, #1430d8 100%);
  box-shadow:
    inset 0 0 0 1px rgba(125,207,255,.92),
    inset 0 3px 8px rgba(255,255,255,.17),
    inset 0 -5px 10px rgba(5,18,105,.38),
    0 0 0 1px rgba(0,69,255,.9),
    0 0 10px rgba(30,60,255,.36);
  transition: background 210ms ease, box-shadow 210ms ease;
}

.signal-module-screen::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.2), transparent);
  opacity: .72;
}

.signal-module-label-text {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 0 16px;
  overflow-wrap: anywhere;
  font-family: Unbounded, Inter, "Noto Sans JP", "Noto Sans KR", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0,0,0,.32);
}

.signal-module-icon {
  position: relative;
  z-index: 2;
  font-size: 24px;
  line-height: 1;
  transition: transform 210ms ease;
}

.signal-module-light {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 1px;
  width: 8px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: #64c8ff;
  box-shadow: 0 0 4px rgba(30,60,255,.62);
  pointer-events: none;
}

.signal-module-sweep {
  position: absolute;
  z-index: 1;
  inset: -35% auto -35% -38%;
  width: 28%;
  transform: skewX(-18deg);
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  opacity: 0;
}

.signal-module-button:focus-visible::after {
  border-color: rgba(30,60,255,.84);
  box-shadow: 0 0 0 3px rgba(30,60,255,.2);
}

.signal-module-button:focus-visible .signal-module-arrow-screen {
  background: linear-gradient(180deg, #ff3434, var(--aa-red) 58%, #b90000);
  box-shadow: inset 0 0 0 1px rgba(255,175,175,.9), inset 0 3px 8px rgba(255,255,255,.18), inset 0 -5px 10px rgba(91,0,0,.4), 0 0 0 1px rgba(240,10,10,.9), 0 0 10px rgba(240,10,10,.32);
}

.signal-module-button:focus-visible .signal-module-label-screen {
  box-shadow: inset 0 0 0 1px rgba(176,225,255,.98), inset 0 3px 9px rgba(255,255,255,.22), inset 0 -5px 10px rgba(5,18,105,.34), 0 0 0 1px rgba(0,69,255,.92), 0 0 12px rgba(30,60,255,.46);
}

.signal-module-button:active:not(:disabled) {
  transform: translateY(1px);
  filter: drop-shadow(0 5px 6px rgba(10,18,35,.22));
}

.signal-module-button:disabled {
  cursor: not-allowed;
  opacity: .54;
  filter: saturate(.72) drop-shadow(0 4px 6px rgba(10,18,35,.12));
}

.signal-module-button.is-loading { cursor: wait; }
.signal-module-button.is-loading .signal-module-icon { animation: signal-module-spin 820ms linear infinite; }

@keyframes signal-module-sweep {
  0% { left: -38%; opacity: 0; }
  18% { opacity: .7; }
  100% { left: 118%; opacity: 0; }
}

@keyframes signal-module-spin { to { transform: rotate(360deg); } }

@media (hover: hover) and (pointer: fine) {
  .signal-module-button:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: drop-shadow(0 13px 15px rgba(10,18,35,.25));
  }

  .signal-module-button:hover:not(:disabled) .signal-module-arrow-screen {
    background: linear-gradient(180deg, #ff3434, var(--aa-red) 58%, #b90000);
    box-shadow: inset 0 0 0 1px rgba(255,175,175,.9), inset 0 3px 8px rgba(255,255,255,.18), inset 0 -5px 10px rgba(91,0,0,.4), 0 0 0 1px rgba(240,10,10,.9), 0 0 10px rgba(240,10,10,.32);
  }

  .signal-module-button:hover:not(:disabled) .signal-module-label-screen {
    box-shadow: inset 0 0 0 1px rgba(176,225,255,.98), inset 0 3px 9px rgba(255,255,255,.22), inset 0 -5px 10px rgba(5,18,105,.34), 0 0 0 1px rgba(0,69,255,.92), 0 0 12px rgba(30,60,255,.46);
  }

  .signal-module-button:hover:not(:disabled) .signal-module-icon { transform: translateX(2px); }
  .signal-module-button:hover:not(:disabled) .signal-module-sweep { animation: signal-module-sweep 450ms ease-out 1; }
}

.success-mark { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 50%; color: #fff; background: var(--blue); box-shadow: 0 16px 36px rgba(43,72,255,.24); font-size: 30px; }
.success-mark.trophy { position:relative; overflow:hidden; color:#173477; background:linear-gradient(145deg,#fff,#dce7f5 58%,#aebed5); box-shadow:0 16px 36px rgba(43,72,255,.18), inset 0 1px #fff; }
.success-mark.trophy::after { content:""; position:absolute; inset:-25%; background:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.95) 49%,transparent 63%); animation:trophy-shine 720ms ease-out 1; }
@keyframes trophy-shine { from { transform:translateX(-90%); } to { transform:translateX(90%); } }
.success-id { margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 8px; color: #44516a; background: rgba(255,255,255,.65); }
.completion-preferences { max-width:660px; display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:22px; color:#52617a; font-size:12px; }
.completion-preferences strong { flex-basis:100%; color:#364660; }
.completion-preferences span { display:inline-flex; align-items:flex-start; gap:6px; padding:8px 10px; border:1px solid rgba(112,143,196,.22); border-radius:8px; background:rgba(255,255,255,.66); line-height:1.4; }
.completion-preferences i { margin-top:2px; color:var(--blue); }

@media (max-width: 980px) {
  .survey-shell { width: min(100% - 24px, 860px); grid-template-columns: 1fr; margin: 12px auto; min-height: calc(100vh - 24px); }
  .brand-stage { min-height: 230px; height: 30vh; max-height: 330px; border-right: 0; border-bottom: 1px solid var(--line); transition: height 240ms ease, min-height 240ms ease; }
  .survey-shell.started .brand-stage { height: 104px; min-height: 104px; }
  .stage-art { width: 100%; height: 100%; object-position: center 45%; }
  .survey-shell.started .stage-art { width: 86%; object-position: center 48%; }
  .stage-caption { display: none; }
  .chapter-rail { display:none; }
  .chapter-compact { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:10px; padding:9px 11px; border:1px solid rgba(111,141,194,.2); border-radius:8px; background:rgba(255,255,255,.55); }
  .chapter-compact-copy { min-width:0; display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:8px; }
  .chapter-compact-copy span { color:#7b879a; font-size:9px; font-weight:800; }
  .chapter-compact-copy strong { overflow:hidden; color:#173477; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
  .chapter-compact-dots { display:flex; gap:5px; }
  .chapter-compact-dots i { width:6px; height:6px; border-radius:50%; background:#cbd5e4; }
  .chapter-compact-dots i.complete { background:#7894c8; }
  .chapter-compact-dots i.current { background:var(--blue); box-shadow:0 0 0 3px rgba(43,72,255,.12); }
  .survey-panel { min-height: 0; padding: 20px 28px 24px; }
  .survey-content { overflow: visible; }
}

@media (max-width: 640px) {
  .survey-shell { width: 100%; min-height: 100vh; margin: 0; border: 0; border-radius: 0; }
  .brand-stage { height: 210px; min-height: 210px; }
  .survey-shell.started .brand-stage { height: 82px; min-height: 82px; }
  .survey-panel { padding: 16px 18px calc(20px + env(safe-area-inset-bottom)); }
  .survey-header { min-height: 48px; }
  .brand-logo { width: 76px; height: 38px; }
  .language-switch button { min-width: 38px; padding: 0 7px; }
  .survey-content { padding-top: 20px; }
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  .lead { font-size: 15px; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice-card { min-height: 54px; }
  .rating-row.nps { grid-template-columns: repeat(6, minmax(38px, 1fr)); }
  .survey-actions { position: sticky; bottom: 0; z-index: 8; grid-template-columns: minmax(92px, .34fr) minmax(0, 1fr); margin: 0 -18px -20px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: rgba(245,249,255,.86); backdrop-filter: blur(16px) saturate(140%); }
  .button { min-height: 50px; }
  .signal-module-button { --signal-height: 56px; width: 100%; }
  .signal-module-label-text { padding: 0 10px; font-size: 13px; }
  .signal-module-icon { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .signal-module-button:hover:not(:disabled), .signal-module-button:active:not(:disabled) { transform: none; }
  .signal-module-sweep { display: none; }
}

body.reentry-choice-open { overflow: hidden; }

.reentry-choice-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(240, 245, 255, .43);
  backdrop-filter: blur(9px) saturate(.9);
}

.reentry-choice-overlay[hidden] { display: none; }

.reentry-choice-dialog {
  position: relative;
  width: min(590px, 100%);
  padding: 34px 36px 32px;
  overflow: hidden;
  border: 1px solid rgba(187, 206, 236, .78);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(244,249,255,.94));
  box-shadow: 0 28px 80px rgba(42,65,113,.18), inset 0 1px rgba(255,255,255,.9);
}

.reentry-choice-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(130deg, rgba(255,255,255,.7), transparent 38%, rgba(181,222,255,.12));
}

.reentry-choice-dialog > * { position: relative; z-index: 1; }

.reentry-choice-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
  color: #1e3cff;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0;
}

.reentry-choice-status > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.reentry-choice-status i { font-size: 13px; }
.reentry-choice-status strong { font-weight: 750; }

.reentry-choice-dialog h2 {
  margin: 0;
  color: #0b1931;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.reentry-choice-dialog h2:focus { outline: none; }

.reentry-choice-description {
  max-width: 470px;
  margin: 12px 0 27px;
  color: #687995;
  font-size: 14px;
  line-height: 1.7;
}

.reentry-choice-card {
  padding: 18px;
  border: 1px solid #dce5f3;
  border-radius: 13px;
  background: rgba(255,255,255,.74);
}

.reentry-choice-card + .reentry-choice-card { margin-top: 12px; }
.reentry-choice-card h3 { margin: 0 0 5px; color: #14213a; font-size: 15px; font-weight: 700; line-height: 1.4; }
.reentry-choice-card p { margin: 0; color: #7b8aa2; font-size: 12px; line-height: 1.55; }
.reentry-primary-slot { width: 100%; margin-top: 15px; }
.reentry-primary-slot .signal-module-button { --signal-height: 54px; width: 100%; }
.reentry-primary-slot .signal-module-label-text { font-size: 13px; }
.reentry-primary-slot .signal-module-icon svg { width: 24px; height: 24px; }

.reentry-secondary-action {
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  padding: 10px 16px;
  border: 1px solid #bfcce0;
  border-radius: 8px;
  background: rgba(250,252,255,.9);
  color: #31548f;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.reentry-secondary-action:hover { border-color: #8ca9d6; background: #f4f8ff; }
.reentry-secondary-action:active { transform: translateY(1px); }
.reentry-secondary-action:focus-visible,
.reentry-back-action:focus-visible { outline: 3px solid rgba(30,60,255,.28); outline-offset: 3px; }

.reentry-back-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #6d7e98;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

@media (max-width: 620px) {
  .reentry-choice-overlay { align-items: start; padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)); }
  .reentry-choice-dialog { margin: auto 0; padding: 28px 22px 25px; border-radius: 17px; }
  .reentry-choice-dialog h2 { font-size: 29px; }
  .reentry-choice-description { margin-bottom: 22px; font-size: 13px; }
  .reentry-choice-card { padding: 15px; }
  .reentry-primary-slot .signal-module-label-text { padding: 0 8px; font-size: 12px; }
}

/* Confirmed Alpha Arena entrance. Kept independent from the survey UI below. */
.alpha-welcome {
  --welcome-blue: #1e3cff;
  --welcome-red: #f00a0a;
  --welcome-ink: #11182c;
  --welcome-muted: #7b879c;
  --welcome-bg: #f4f7fc;
  min-height: 100svh;
  color: var(--welcome-ink);
  background:
    radial-gradient(ellipse at 10% 10%, rgba(249, 237, 246, .48), transparent 46%),
    radial-gradient(ellipse at 86% 25%, rgba(233, 242, 255, .54), transparent 50%),
    var(--welcome-bg);
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Malgun Gothic", sans-serif;
  color-scheme: light;
  overflow-x: hidden;
}

.alpha-welcome button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.alpha-welcome button:focus-visible {
  outline: 3px solid #5370ff;
  outline-offset: 5px;
}

.alpha-welcome button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.alpha-welcome-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: 1160px;
  margin: auto;
  padding: 25px 30px 13px;
}

.alpha-welcome-brand {
  width: 108px;
  height: 42px;
  flex: 0 0 auto;
  overflow: hidden;
}

.alpha-welcome-brand img {
  display: block;
  width: 108px;
  height: auto;
  transform: translateY(-21px);
  mix-blend-mode: multiply;
}

.alpha-welcome-languages {
  display: flex;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  padding: 3px;
  background: rgba(255, 255, 255, .6);
  gap: 1px;
}

.alpha-welcome-languages button {
  border: 0;
  background: transparent;
  border-radius: 5px;
  padding: 8px 9px;
  min-width: 41px;
  min-height: 35px;
  font-size: 10px;
  color: var(--welcome-muted);
}

.alpha-welcome-languages button.active,
.alpha-welcome-languages button[aria-pressed="true"] {
  background: #e8edff;
  color: var(--welcome-blue);
  font-weight: 600;
}

.alpha-welcome-entrance {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px 23px;
  text-align: center;
}

.alpha-welcome-scene {
  width: min(100%, 870px, calc(139.095svh - 570px));
  min-width: min(100%, 470px);
  aspect-ratio: 1586 / 992;
  position: relative;
  margin: 0 auto;
  isolation: isolate;
}

.alpha-welcome-scene::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6%;
  background: linear-gradient(transparent, var(--welcome-bg));
  pointer-events: none;
  z-index: 2;
}

.alpha-welcome-scene-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  mask-image: radial-gradient(ellipse 78% 79% at 50% 47%, #000 52%, #000 69%, transparent 98%);
}

.alpha-welcome-scene.is-image-missing {
  border: 1px solid rgba(83, 112, 168, .16);
  background: linear-gradient(145deg, rgba(255,255,255,.78), rgba(226,239,255,.76));
}

.alpha-welcome-lighting {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.alpha-welcome-blue-crystal-detail {
  opacity: .98;
}

.alpha-welcome-blue-crystal-highlight {
  fill: url(#welcomeBlueCrystalHighlight);
  opacity: .54;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 4px rgba(80, 168, 255, .24));
}

.alpha-welcome-guide-light {
  fill: none;
  stroke: #dcffff;
  stroke-linecap: butt;
  opacity: .12;
  filter: drop-shadow(0 0 7px #1e7fff);
  mix-blend-mode: screen;
}

.alpha-welcome-door-glow {
  fill: #9bdeff;
  stroke: none;
  opacity: .03;
  filter: blur(10px);
}

.alpha-welcome-portal-top {
  stroke: #d3fdff;
  stroke-width: 8;
  opacity: .3;
  filter: drop-shadow(0 0 7px #1773ff);
}

.alpha-welcome-gate-beacon {
  stroke: #d8fcff;
  stroke-width: 9;
  opacity: 0;
  filter: drop-shadow(0 0 7px #1e3cff);
}

.alpha-welcome-tower-glow {
  stroke: #a2d8ff;
  stroke-width: 3;
  opacity: .1;
  filter: drop-shadow(0 0 5px #1e3cff);
}

.alpha-welcome-gate-entry {
  position: absolute;
  left: 60.8%;
  top: 24%;
  width: 13.9%;
  height: 49.7%;
  z-index: 3;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 3px;
}

.alpha-welcome-gate-entry:focus-visible {
  outline: 2px solid #65cfff;
  outline-offset: 4px;
  box-shadow: 0 0 24px rgba(30, 127, 255, .25);
}

.alpha-welcome-scene-caption {
  position: absolute;
  z-index: 4;
  bottom: 3%;
  left: 4%;
  right: 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: .13em;
  color: #90a1bc;
  pointer-events: none;
}

.alpha-welcome-scene-caption span {
  display: flex;
  gap: 6px;
  align-items: center;
}

.alpha-welcome-scene-caption i {
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: #7a93de;
}

.alpha-welcome-copy {
  position: relative;
  z-index: 6;
  margin: 24px auto 0;
  max-width: 680px;
  padding: 0 10px;
}

.alpha-welcome-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #637aab;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin: 0 0 12px;
}

.alpha-welcome-eyebrow i {
  height: 5px;
  width: 5px;
  background: var(--welcome-blue);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(30, 60, 255, .03);
}

.alpha-welcome h1 {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 0 auto 16px;
  color: #111b35;
  white-space: pre-line;
  text-wrap: balance;
}

html[lang="ja"] .alpha-welcome h1,
html[lang="ko"] .alpha-welcome h1 {
  font-size: 36px;
  letter-spacing: -.025em;
  line-height: 1.3;
}

.alpha-welcome-description {
  font-size: 16px;
  line-height: 1.6;
  color: #7b8aa2;
  margin: 0 auto 24px;
  max-width: 620px;
  white-space: pre-line;
  text-wrap: pretty;
}

.alpha-welcome-story-status {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #506b9b;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.alpha-welcome-story-dots {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
}

.alpha-welcome-story-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d4ddec;
  transition: background .2s, box-shadow .2s;
}

.alpha-welcome-story-dots i.active {
  background: var(--welcome-blue);
  box-shadow: 0 0 5px rgba(30, 60, 255, .2);
}

.alpha-welcome-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.alpha-welcome-signal {
  --cut: 6px;
  --shape: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  height: 56px;
  width: 284px;
  max-width: 100%;
  display: flex;
  gap: 4px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 5px 5px rgba(21, 34, 60, .13));
  transition: transform .2s, filter .2s;
  color: white;
}

.alpha-welcome .alpha-welcome-signal {
  color: #fff;
}

.alpha-welcome-module {
  position: relative;
  height: 56px;
  padding: 4px;
  clip-path: var(--shape);
  display: flex;
  min-width: 0;
  background: linear-gradient(158deg, #b1bfce 0%, #3c485b 5%, #151c26 25%, #364155 48%, #101821 80%, #8794a7 96%);
}

.alpha-welcome-module::before {
  content: "";
  position: absolute;
  inset: 1px;
  clip-path: var(--shape);
  background: linear-gradient(155deg, #2d3746, #111722 45%, #293444 78%, #10141d);
  border-top: 1px solid rgba(213, 232, 255, .6);
  border-bottom: 1px solid rgba(166, 189, 209, .29);
}

.alpha-welcome-main-module { flex: 1; }
.alpha-welcome-arrow-module { flex: 0 0 56px; }

.alpha-welcome-screen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  padding: 0 12px;
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
  border: 1px solid #95b8ff;
  background: linear-gradient(166deg, #537cff -26%, #1e3cff 37%, #1730d2);
  box-shadow: inset 0 1px 0 rgba(219, 237, 255, .69), inset 0 0 0 2px #153b97, inset 0 -3px 8px rgba(16, 36, 140, .38);
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
}

.alpha-welcome-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(119deg, rgba(199, 229, 255, .13), transparent 36%, transparent 76%, rgba(199, 229, 255, .07) 77%, transparent 88%);
}

.alpha-welcome-screen > span,
.alpha-welcome-screen > svg {
  position: relative;
  z-index: 1;
}

.alpha-welcome-screen svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
  transition: transform .2s;
}

.alpha-welcome-arrow-module .alpha-welcome-screen { padding: 0; }

.alpha-welcome-arrow-module .alpha-welcome-screen::before {
  background: linear-gradient(#fc2b2b, var(--welcome-red));
  opacity: 0;
  transition: opacity .2s;
}

.alpha-welcome-led {
  position: absolute;
  width: 8px;
  height: 2px;
  bottom: 1px;
  left: calc(50% - 4px);
  background: #c5f8ff;
  border-radius: 2px;
  box-shadow: 0 0 1px 1px #0c5eff, 0 0 5px #0389ff;
}

.alpha-welcome-signal:focus-visible .alpha-welcome-arrow-module .alpha-welcome-screen::before,
.alpha-welcome-signal:active .alpha-welcome-arrow-module .alpha-welcome-screen::before { opacity: 1; }

.alpha-welcome-signal:active {
  transform: translateY(1px);
  filter: drop-shadow(0 1px 2px rgba(23, 32, 57, .15));
}

.alpha-welcome-note {
  font-size: 11px;
  color: #9aa5b8;
  line-height: 1.8;
  margin: 16px auto 0;
  max-width: 540px;
}

.alpha-welcome-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px 18px;
  font-size: 8px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #a0adbf;
}

.alpha-welcome-footer i {
  width: 26px;
  height: 1px;
  display: inline-block;
  vertical-align: middle;
  background: #adbfe7;
  margin-right: 8px;
}

.alpha-welcome.is-entering { pointer-events: none; animation: alpha-welcome-exit 300ms ease forwards; }
.survey-shell.is-arriving { animation: alpha-survey-arrive 300ms ease; }

@keyframes alpha-welcome-exit {
  to { opacity: 0; transform: translateY(-8px); }
}

@keyframes alpha-survey-arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (hover: hover) and (pointer: fine) {
  .alpha-welcome-signal:hover {
    transform: translateY(-1px);
    filter: drop-shadow(0 7px 6px rgba(20, 40, 85, .16));
  }

  .alpha-welcome-signal:hover .alpha-welcome-arrow-module .alpha-welcome-screen::before { opacity: 1; }
  .alpha-welcome-signal:hover .alpha-welcome-arrow-module svg { transform: translateX(2px); }
  .alpha-welcome-signal:hover .alpha-welcome-arrow-module .alpha-welcome-screen {
    border-color: #ffc6c6;
    box-shadow: inset 0 1px 0 #ffd6d6, inset 0 0 0 2px #9f1414;
  }
  .alpha-welcome-signal:hover .alpha-welcome-main-module .alpha-welcome-screen {
    border-color: #d7f5ff;
    box-shadow: inset 0 1px 0 #fff, inset 0 0 0 2px #1760ed, inset 0 -3px 8px rgba(16, 36, 140, .31);
  }
}

@media (max-width: 720px) {
  .alpha-welcome-topbar { padding: 20px 18px 10px; gap: 12px; }
  .alpha-welcome-brand { width: 102px; height: 39px; }
  .alpha-welcome-brand img { width: 102px; transform: translateY(-20px); }
  .alpha-welcome-languages button { min-width: 39px; min-height: 39px; padding: 8px 5px; }
  .alpha-welcome-entrance { padding: 0 0 17px; }
  .alpha-welcome-scene { width: 100%; min-width: 0; margin-top: 15px; overflow: visible; }
  .alpha-welcome-copy { margin: 20px auto 0; padding: 0 23px; }
  .alpha-welcome-eyebrow { font-size: 9px; margin-bottom: 12px; }
  .alpha-welcome h1 { font-size: clamp(28px, 7.5vw, 30px); max-width: 380px; margin: 0 auto 16px; line-height: 1.2; white-space: normal; }
  html[lang="ja"] .alpha-welcome h1,
  html[lang="ko"] .alpha-welcome h1 { font-size: 28px; line-height: 1.3; }
  .alpha-welcome-description { font-size: 14px; max-width: 360px; line-height: 1.6; margin-bottom: 24px; }
  .alpha-welcome-scene-caption { font-size: 6px; left: 6%; right: 6%; bottom: 1%; }
  .alpha-welcome-story-status { font-size: 13px; margin-bottom: 16px; }
  .alpha-welcome-note { max-width: 300px; font-size: 11px; }
  .alpha-welcome-footer { padding: 10px 22px 17px; font-size: 7px; }
  .alpha-welcome-signal { width: 280px; }
}

@media (max-width: 360px) {
  .alpha-welcome-topbar { padding-left: 13px; padding-right: 13px; }
  .alpha-welcome-brand { width: 96px; height: 37px; }
  .alpha-welcome-brand img { width: 96px; transform: translateY(-19px); }
  .alpha-welcome-languages button { min-width: 35px; font-size: 9px; }
  .alpha-welcome-copy { padding: 0 18px; }
  .alpha-welcome h1 { font-size: 28px; }
  .alpha-welcome-scene { margin-top: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .alpha-welcome-signal,
  .alpha-welcome-signal svg { transform: none !important; }
  .alpha-welcome.is-entering,
  .survey-shell.is-arriving { animation: none !important; }
  .chapter-rail.chapter-shift::before,
  .success-mark.trophy::after { display:none; }
}

/* Alpha Arena survey shell: independent KV and form cards */
body.survey-open {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(240, 69, 116, .075), transparent 31%),
    radial-gradient(circle at 91% 10%, rgba(30, 60, 255, .12), transparent 34%),
    linear-gradient(135deg, #fbfdff 0%, #f3f8ff 54%, #f9fbff 100%);
}

body.merch-dialog-open { overflow: hidden; }

.survey-shell {
  width: min(1252px, calc(100% - 56px));
  min-height: 0;
  margin: 22px auto;
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  gap: 22px;
  align-items: start;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.brand-stage {
  position: sticky;
  top: 22px;
  display: block;
  min-height: 720px;
  height: calc(100vh - 44px);
  max-height: 870px;
  overflow: hidden;
  border: 1px solid rgba(146, 173, 220, .4);
  border-radius: 19px;
  background: #eef5ff;
  box-shadow: 0 18px 46px rgba(43, 71, 132, .11);
}

.brand-stage::before,
.brand-stage::after { display: none; }

.stage-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
  transform: none;
}

.stage-badge {
  position: absolute;
  z-index: 3;
  top: 20px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 8px 24px rgba(45, 67, 110, .07);
  color: #18346f;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .14em;
}

.stage-badge i { width: 6px; height: 6px; border-radius: 50%; background: #1e3cff; }

.stage-caption {
  position: absolute;
  inset: auto 0 0;
  display: block;
  width: auto;
  max-width: none;
  padding: 58px 27px 22px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(246, 250, 255, 0) 0%, rgba(246, 250, 255, .74) 36%, rgba(248, 251, 255, .97) 70%, #f8fbff 100%);
  box-shadow: none;
  backdrop-filter: none;
  color: #0d1936;
}

.stage-caption strong {
  display: block;
  font-size: clamp(28px, 2.35vw, 31px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.04em;
}

.stage-caption-rule {
  display: block;
  width: 100%;
  height: 1px;
  margin: 22px 0 14px;
  background: rgba(96, 121, 167, .3);
}

.stage-caption-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #657391;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: .1em;
}

.survey-panel {
  min-width: 0;
  min-height: 0;
  padding: 26px 28px 28px;
  overflow: visible;
  border: 1px solid rgba(146, 173, 220, .4);
  border-radius: 19px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 18px 46px rgba(43, 71, 132, .105);
  backdrop-filter: blur(22px) saturate(1.08);
}

.survey-header {
  min-height: 38px;
  padding: 0;
  border: 0;
}

.alpha-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0e1730;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.065em;
  white-space: nowrap;
}

.alpha-wordmark i { width: 5px; height: 21px; flex: none; background: #1e3cff; transform: skew(-14deg); }

.chapter-rail {
  position: relative;
  inset: auto;
  width: 100%;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.survey-content {
  min-height: 0;
  padding: 0;
  overflow: visible;
}

.survey-actions {
  position: relative;
  inset: auto;
  padding: 22px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.survey-shell.intro-mode .survey-header { margin-bottom: 20px; }

.survey-intro {
  width: 100%;
  color: #111c37;
}

.intro-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #1e3cff;
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.intro-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1e3cff;
  box-shadow: 0 0 12px rgba(30, 60, 255, .35);
}

.survey-intro > h1 {
  max-width: 720px;
  margin: 0;
  color: #111c37;
  font-size: clamp(38px, 4vw, 43px);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -.025em;
}

.intro-lead {
  max-width: 720px;
  margin: 16px 0 0;
  color: #6e7c99;
  font-size: 16px;
  line-height: 1.58;
}

.intro-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 24px 0 20px;
  padding: 18px 0;
  border-top: 1px solid rgba(136, 161, 207, .26);
  border-bottom: 1px solid rgba(136, 161, 207, .26);
}

.intro-benefits article {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  min-width: 0;
  padding: 0 22px 0 0;
}

.intro-benefits article + article {
  padding: 0 0 0 22px;
  border-left: 1px solid rgba(136, 161, 207, .28);
}

.intro-benefits article > i {
  color: #1e3cff;
  font-size: 24px;
  line-height: 1;
}

.intro-benefits strong {
  display: block;
  margin: 0 0 4px;
  color: #16213a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.intro-benefits p {
  margin: 0;
  color: #74819b;
  font-size: 12px;
  line-height: 1.5;
}

.merch-card {
  display: grid;
  grid-template-columns: 54% 46%;
  min-height: 292px;
  overflow: hidden;
  border: 1px solid rgba(116, 157, 229, .36);
  border-radius: 18px;
  background: #edf6ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.merch-product-wrap {
  position: relative;
  min-width: 0;
  min-height: 292px;
  overflow: hidden;
  background: linear-gradient(140deg, #edf6ff, #e4efff 70%, #edf4ff);
}

.merch-product {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.merch-product img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 51% 57%;
  transform: scale(1.04);
  transition: transform 220ms ease, filter 220ms ease;
}

.merch-product:focus-visible {
  outline: 3px solid rgba(30, 60, 255, .7);
  outline-offset: -4px;
}

.merch-concept-label {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 3;
  color: rgba(72, 91, 129, .76);
  font-size: 10px;
  line-height: 1.4;
}

.merch-hotspot {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.merch-hotspot span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(30, 60, 255, .32);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 15px rgba(41, 74, 146, .18);
  color: #1e3cff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.merch-hotspot-shirt { left: 18.5%; top: 57%; }
.merch-hotspot-tumbler { left: 88%; top: 43%; transform: translateX(-50%); }

.merch-hotspot:focus-visible { outline: 3px solid rgba(30, 60, 255, .55); outline-offset: 1px; }

.merch-copy-panel {
  position: relative;
  min-width: 0;
  min-height: 292px;
  overflow: hidden;
  background: #eff7ff;
}

.merch-crystal-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  transform: scale(1.02);
}

.merch-copy-content {
  position: relative;
  z-index: 2;
  width: 88%;
  padding: 40px 12px 26px 30px;
}

.merch-copy-content > i {
  display: block;
  margin: 0 0 12px;
  color: #1e3cff;
  font-size: 24px;
  line-height: 1;
}

.merch-copy-content h2 {
  margin: 0;
  color: #111c37;
  font-size: clamp(17px, 1.25vw, 20px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.015em;
}

.merch-copy-content > p {
  margin: 10px 0 0;
  color: #74819b;
  font-size: 13px;
  line-height: 1.5;
}

.merch-explore {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid rgba(30, 60, 255, .42);
  background: transparent;
  color: #1e3cff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.merch-explore i { font-size: 15px; }
.merch-explore:focus-visible { outline: 3px solid rgba(30, 60, 255, .45); outline-offset: 5px; border-radius: 2px; }

.intro-early-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: 760px;
  margin: 16px auto 0;
  color: #62718f;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.intro-early-note i { color: #1e3cff; font-size: 16px; }
.intro-primary-slot { display: flex; justify-content: center; margin-top: 16px; }
.intro-primary-slot .signal-module-button { width: min(340px, 100%); }

.intro-fairness {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 720px;
  margin: 14px auto 0;
  color: #8290aa;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.intro-fairness i { font-size: 14px; }

@media (hover: hover) and (pointer: fine) {
  .merch-product:hover img { transform: scale(1.065); filter: saturate(1.04) brightness(1.025); }
  .merch-hotspot:hover span { transform: scale(1.12); background: #1e3cff; color: #fff; }
  .merch-explore:hover { color: #102ad4; border-color: currentColor; }
}

/* Native dialog with one concept image and configurable crop views */
.merch-dialog {
  width: min(980px, calc(100% - 40px));
  max-width: none;
  max-height: min(760px, calc(100dvh - 40px));
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: #111c37;
}

.merch-dialog::backdrop {
  background: rgba(13, 22, 45, .42);
  backdrop-filter: blur(9px);
}

.merch-dialog-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, .72fr);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(154, 180, 225, .48);
  border-radius: 24px;
  background: rgba(249, 252, 255, .97);
  box-shadow: 0 28px 80px rgba(16, 35, 78, .28);
}

.merch-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(104, 132, 184, .28);
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 24px rgba(27, 53, 105, .12);
  color: #172440;
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.merch-dialog-close:focus-visible { outline: 3px solid rgba(30, 60, 255, .55); outline-offset: 3px; }

.merch-dialog-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(145deg, #eaf3ff, #f3f7ff);
}

.merch-dialog-visual img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: 50% 55%;
  transform: scale(1.02);
  transition: transform 260ms ease, object-position 260ms ease;
}

.merch-dialog[data-item="tshirt"] .merch-dialog-visual img { transform: scale(1.48); object-position: 22% 61%; }
.merch-dialog[data-item="cap"] .merch-dialog-visual img { transform: scale(1.75); object-position: 64% 39%; }
.merch-dialog[data-item="tumbler"] .merch-dialog-visual img { transform: scale(1.58); object-position: 93% 48%; }
.merch-dialog[data-item="strap"] .merch-dialog-visual img { transform: scale(1.82); object-position: 68% 82%; }

.merch-dialog-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 72px 34px 34px;
  background:
    linear-gradient(rgba(250, 252, 255, .78), rgba(250, 252, 255, .78)),
    url('/alpha-arena/assets/alpha-merch-crystal.webp') center / cover no-repeat;
}

.merch-dialog-copy .eyebrow { margin-bottom: 12px; }
.merch-dialog-copy h2 { margin: 0; font-size: 28px; line-height: 1.18; letter-spacing: -.02em; }
.merch-dialog-copy > p:not(.eyebrow):not(.merch-concept-note) { margin: 14px 0 0; color: #66738d; font-size: 14px; line-height: 1.6; }

.merch-item-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.merch-item-tabs button {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(112, 141, 198, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #4e5d79;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.merch-item-tabs button.active {
  border-color: #1e3cff;
  background: #edf1ff;
  color: #1e3cff;
}

.merch-item-tabs button:focus-visible { outline: 3px solid rgba(30, 60, 255, .42); outline-offset: 2px; }
.merch-concept-note { margin: 22px 0 0; color: #8793aa; font-size: 11px; line-height: 1.55; }
.merch-concept-note[hidden] { display: none; }

@media (max-width: 1180px) {
  .survey-shell { grid-template-columns: minmax(310px, 43fr) minmax(0, 57fr); }
  .survey-panel { padding-inline: 28px; }
  .merch-card { grid-template-columns: 52% 48%; }
  .merch-copy-content { width: 88%; padding-left: 26px; }
}

@media (max-width: 980px) {
  .survey-shell {
    width: min(780px, calc(100% - 32px));
    margin: 16px auto;
    grid-template-columns: 1fr;
  }

  .brand-stage { display: none; }
  .survey-panel { border-radius: 24px; }
  .chapter-rail { display: none !important; }
  .chapter-compact { display: flex; }
  .survey-header { padding-bottom: 12px; border-bottom: 1px solid rgba(136, 161, 207, .2); }
  .survey-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(90deg, #1e3cff, #5badf4 74%, rgba(240, 10, 10, .34));
    opacity: .78;
  }
}

@media (max-width: 720px) {
  body.survey-open { background: #f4f8ff; }

  .survey-shell {
    width: 100%;
    margin: 0;
    gap: 0;
  }

  .survey-panel {
    min-height: 100dvh;
    padding: max(18px, env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
    border-width: 0;
    border-radius: 0;
    background:
      radial-gradient(circle at 100% 0%, rgba(30, 60, 255, .1), transparent 29%),
      rgba(252, 253, 255, .96);
    box-shadow: none;
  }

  .survey-panel::before { border-radius: 0; }
  .survey-header { min-height: 46px; }
  .alpha-wordmark { gap: 8px; font-size: 18px; }
  .alpha-wordmark i { width: 4px; height: 19px; }
  .language-switch button { min-width: 38px; min-height: 34px; padding: 7px 6px; }

  .survey-shell.intro-mode .survey-header { margin-bottom: 20px; }
  .survey-intro > h1 { font-size: clamp(28px, 8.2vw, 32px); line-height: 1.16; }
  .intro-lead { font-size: 14px; line-height: 1.6; }

  .intro-benefits {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-block: 16px;
  }

  .intro-benefits article,
  .intro-benefits article + article { padding: 0; border: 0; }

  .merch-card { grid-template-columns: 1fr; min-height: 0; border-radius: 16px; }
  .merch-product-wrap { min-height: 250px; aspect-ratio: 1.35; }
  .merch-product img { object-position: 50% 57%; }
  .merch-copy-panel { min-height: 220px; }
  .merch-crystal-art { object-position: 56% center; }
  .merch-copy-content { width: 72%; padding: 28px 16px 28px 24px; }
  .merch-copy-content h2 { font-size: 19px; }
  .intro-early-note { align-items: flex-start; text-align: left; }
  .intro-fairness { align-items: flex-start; text-align: left; }

  .merch-dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    overflow: auto;
    border-radius: 20px;
  }

  .merch-dialog-shell { grid-template-columns: 1fr; min-height: 0; border-radius: 20px; overflow: visible; }
  .merch-dialog-visual { min-height: 300px; aspect-ratio: 1.2; }
  .merch-dialog-visual img { min-height: 300px; }
  .merch-dialog-copy { padding: 30px 22px calc(28px + env(safe-area-inset-bottom)); }
  .merch-dialog-copy h2 { padding-right: 42px; font-size: 24px; }
  .merch-dialog-close { position: sticky; float: right; top: 12px; right: 12px; margin: 12px 12px -56px auto; }

  .survey-actions {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .survey-actions .button-secondary { width: 72px; min-width: 0; padding-inline: 0; border: 0; background: transparent; box-shadow: none; }
  .survey-actions .signal-module-button { width: 100%; max-width: none; }
  .question-block textarea,
  .question-block input { font-size: 16px; }
}

@media (max-width: 390px) {
  .survey-panel { padding-inline: 18px; }
  .merch-product-wrap { min-height: 226px; }
  .merch-copy-panel { min-height: 216px; }
  .merch-copy-content { width: 77%; padding-left: 20px; }
  .merch-hotspot-shirt { left: 17%; top: 55%; }
  .merch-hotspot-tumbler { left: 89%; top: 42%; }
}

@media (prefers-reduced-motion: reduce) {
  .merch-product img,
  .merch-hotspot span,
  .merch-dialog-visual img { transition: none !important; }
}
