/* GOD EAT 고객 설문 — 기준 화면 1280x800(가로 태블릿). app.js가 화면 크기에 맞춰 통째로 늘리고 줄인다. 세로·휴대폰은 .tall */
@font-face { font-family: "Pretendard"; font-weight: 45 920; font-style: normal; font-display: swap; src: url(/assets/PretendardVariable.woff2) format("woff2-variations"); }
html, body { margin: 0; height: 100%; overflow: hidden; background: #f3f4f6; overscroll-behavior: none; }
.sv { --ac: #ff6b00; position: absolute; left: 0; top: 0; transform-origin: 0 0; display: flex; flex-direction: column; overflow: hidden; background: #f3f4f6; color: #1f1f1f; font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 16px; line-height: 1.5; letter-spacing: -0.01em; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.sv, .sv * { box-sizing: border-box; }
.sv[data-lang="ko"] { word-break: keep-all; }
.sv[data-lang="zh"] { font-family: "Noto Sans SC", "Pretendard", "PingFang SC", "Microsoft YaHei", sans-serif; }
.sv[data-lang="ja"] { font-family: "Noto Sans JP", "Pretendard", "Hiragino Sans", "Yu Gothic", sans-serif; }
.sv .zh { font-family: "Noto Sans SC", "Pretendard", "PingFang SC", "Microsoft YaHei", sans-serif; }
.sv .ja { font-family: "Noto Sans JP", "Pretendard", "Hiragino Sans", "Yu Gothic", sans-serif; }
.sv .ko, .sv .en { font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
.sv button { font: inherit; color: inherit; cursor: pointer; margin: 0; }
.sv input, .sv textarea { font: inherit; color: inherit; -webkit-user-select: text; user-select: text; }
.sv :focus-visible { outline: 3px solid var(--ac); outline-offset: 3px; }
.sv h1, .sv h2, .sv p { margin: 0; }
.sv svg { flex: none; }

/* 국적 선택 */
.nat-wrap { flex: 1; min-height: 0; display: flex; }
.nat-ink { width: 452px; flex: none; background: #1f1f1f; color: #fff; display: flex; flex-direction: column; padding: 44px 48px; }
.nat-ink .logo { height: 48px; width: auto; align-self: flex-start; }
.nat-ink .pic { flex: 1; display: grid; place-items: center; }
.nat-ink .pic img { width: 268px; height: auto; animation: floaty 4.6s ease-in-out infinite; }
.nat-ink .hello { font-size: 46px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.nat-ink .where { margin-top: 14px; font-size: 16px; font-weight: 500; color: #b9bcc4; min-height: 24px; }
.nat-main { flex: 1; min-width: 0; position: relative; background: #fff; padding: 60px 64px 40px; display: flex; flex-direction: column; }
.nat-head { height: 168px; }
.dots { display: flex; gap: 8px; }
.dots span { padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; background: #f3f4f6; color: #5c616b; transition: .3s; }
.dots span.on { background: #1f1f1f; color: #fff; }
.nat-head h1 { margin-top: 20px; font-size: 46px; line-height: 1.2; font-weight: 800; letter-spacing: -0.025em; }
.nat-head p { margin-top: 12px; font-size: 19px; color: #5c616b; font-weight: 500; }
.nat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.nat { display: flex; align-items: center; gap: 18px; width: 100%; min-height: 150px; padding: 20px 22px; border: 2px solid #1f1f1f; border-radius: 24px; background: #fff; text-align: left; transition: transform .14s, background .18s, color .18s, box-shadow .18s; }
.nat .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nat .name { font-size: 30px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.nat .name.sm { font-size: 22px; }
.nat .sub { font-size: 16px; font-weight: 500; color: #5c616b; transition: color .18s; }
.nat:active { transform: scale(.97); background: #1f1f1f; color: #fff; }
.nat:active .sub { color: #c9ccd3; }
@media (hover: hover) {
  .nat:hover { background: #1f1f1f; color: #fff; box-shadow: 0 10px 24px rgba(31,31,31,.18); }
  .nat:hover .sub { color: #c9ccd3; }
  .nat:hover .code { background: var(--ac); border-color: var(--ac); color: #fff; }
  .ch:hover, .btn:hover { border-color: #1f1f1f; }
  .lang:hover { color: #1f1f1f; border-color: #cfd3da; }
}
.code { flex: none; width: 60px; height: 60px; border: 2px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-size: 18px; font-weight: 800; letter-spacing: .02em; transition: .18s; }
.code.sm { width: 38px; height: 38px; font-size: 13px; border-width: 1.5px; }
.nat-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: #5c616b; font-weight: 500; }
.others { position: absolute; inset: 0; background: #fff; padding: 52px 64px 40px; display: flex; flex-direction: column; gap: 24px; overflow: auto; animation: inR .3s ease both; }
.others .head { display: flex; align-items: center; gap: 20px; }
.others h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.others .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.others p { font-size: 16px; color: #5c616b; }

/* 문항 화면 */
.topbar { height: 76px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 32px 0 56px; background: #fff; border-bottom: 1px solid #e4e6eb; }
.topbar .logo { height: 36px; width: auto; }
.chip { margin-left: 10px; padding: 6px 14px; border-radius: 999px; background: #f3f4f6; font-size: 14px; font-weight: 600; color: #3b3f47; white-space: nowrap; }
.langs { display: flex; gap: 2px; margin-left: auto; }
.lang { height: 40px; padding: 0 14px; border: 1.5px solid transparent; border-radius: 999px; background: transparent; font-size: 15px; font-weight: 600; color: #5c616b; transition: .15s; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lang.on { background: #1f1f1f; color: #fff; }
.lang.line { border-color: #cfd3da; }
.qmain { flex: 1; min-height: 0; display: flex; }
.qmain.inR { animation: inR .34s cubic-bezier(.2,.7,.2,1) both; }
.qmain.inL { animation: inL .34s cubic-bezier(.2,.7,.2,1) both; }
.qleft { width: 480px; flex: none; padding: 48px 36px 24px 56px; display: flex; flex-direction: column; }
.qmeta { display: flex; align-items: center; gap: 12px; }
.sec { padding: 6px 14px; border-radius: 999px; background: #1f1f1f; color: #fff; font-size: 15px; font-weight: 700; }
.cnt { font-size: 17px; font-weight: 600; color: #5c616b; font-variant-numeric: tabular-nums; }
.qleft h2 { margin-top: 22px; font-size: 35px; line-height: 1.34; font-weight: 800; letter-spacing: -0.025em; text-wrap: pretty; }
.hint { margin-top: 16px; font-size: 18px; line-height: 1.5; color: #5c616b; font-weight: 500; }
.intro { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1.5px solid #e4e6eb; font-size: 16px; line-height: 1.55; color: #3b3f47; }
.guide { margin-top: auto; display: flex; align-items: flex-end; gap: 12px; }
.guide img { width: 78px; height: auto; }
.bubble { padding: 12px 18px; border: 2px solid #1f1f1f; border-radius: 18px; background: #fff; font-size: 17px; font-weight: 700; line-height: 1.3; margin-bottom: 26px; }
.qright { flex: 1; min-width: 0; padding: 28px 56px 28px 12px; display: flex; flex-direction: column; justify-content: safe center; gap: 14px; overflow: auto; }
.block { display: flex; flex-direction: column; gap: 8px; }
.glabel { font-size: 14px; font-weight: 700; color: #5c616b; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.ch { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 74px; padding: 10px 20px; border: 1.5px solid #d3d7de; border-radius: 18px; background: #fff; text-align: left; font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; transition: transform .12s, border-color .12s, background .16s, color .16s; }
.ch:active { transform: scale(.97); }
.ch .mk { flex: none; width: 24px; height: 24px; border: 2px solid #aab0bb; border-radius: 50%; display: grid; place-items: center; transition: .16s; }
.ch.multi .mk { border-radius: 7px; }
.ch .mk svg { opacity: 0; transform: scale(.4); transition: .18s; }
.ch.on { background: #1f1f1f; border-color: #1f1f1f; color: #fff; }
.ch.on.pop { animation: pop .26s ease; }
.ch.on .mk { border-color: var(--ac); background: var(--ac); }
.ch.on .mk svg { opacity: 1; transform: scale(1); }
.ch:disabled { opacity: .38; cursor: not-allowed; }
.ch.dense { min-height: 60px; font-size: 18px; border-radius: 16px; padding: 8px 18px; }
.ch.big { flex-direction: column; justify-content: center; gap: 0; min-height: 150px; font-size: 32px; font-weight: 800; text-align: center; border-radius: 22px; }
.ch.big .mk { display: none; }
.ch.consent { font-size: 16px; align-items: flex-start; padding: 16px 18px; min-height: 0; }
.field { width: 100%; border: 1.5px solid #d3d7de; border-radius: 16px; background: #fff; padding: 16px 18px; font-size: 19px; line-height: 1.5; resize: none; }
.field:focus { outline: none; border-color: #1f1f1f; box-shadow: 0 0 0 3px rgba(31,31,31,.1); }
.field.up { animation: up .25s ease both; }
textarea.detail { height: 96px; }
textarea.free { height: 250px; font-size: 21px; }
.count { font-size: 15px; color: #5c616b; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.qr { display: flex; align-items: center; gap: 22px; padding: 18px 22px; border: 2px solid #1f1f1f; border-radius: 22px; background: #fff; animation: up .3s ease both; }
.qr svg { width: 132px; height: 132px; border-radius: 8px; }
.qr b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.qr span { display: block; margin-top: 6px; font-size: 17px; color: #3b3f47; font-weight: 500; line-height: 1.45; }

.starwrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.stars { display: flex; gap: 10px; }
.star { border: 0; background: none; padding: 4px; line-height: 0; transition: transform .12s; }
.star:active { transform: scale(.88); }
.star svg { display: block; width: 104px; height: 104px; fill: #fff; stroke: #1f1f1f; stroke-width: 1.5; stroke-linejoin: round; transition: fill .16s; }
.star.on svg { fill: var(--ac); }
.star.on.pop svg { animation: pop .32s ease both; animation-delay: var(--d, 0ms); }
.scale { width: 580px; max-width: 100%; display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; color: #5c616b; }
.cap { margin-top: 10px; height: 44px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.rows { display: flex; flex-direction: column; background: #fff; border: 1.5px solid #e4e6eb; border-radius: 24px; padding: 6px 28px; }
.row { display: flex; align-items: center; gap: 16px; min-height: 132px; }
.row + .row { border-top: 1px solid #e4e6eb; }
.row .lab { flex: 1; min-width: 0; }
.row .lab b { display: block; font-size: 23px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
.row .lab small { display: block; margin-top: 4px; font-size: 15px; color: #5c616b; font-weight: 500; line-height: 1.4; }
.row .lab i { display: block; margin-top: 6px; height: 22px; font-size: 15px; font-weight: 700; color: #3b3f47; font-style: normal; }
.row .stars { gap: 2px; flex: none; }
.row .star svg { width: 62px; height: 62px; }

.contact { display: flex; gap: 28px; align-items: flex-start; }
.contact .left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.phone { height: 92px; display: flex; align-items: center; padding: 0 24px; border: 2px solid #1f1f1f; border-radius: 20px; background: #fff; font-size: 36px; font-weight: 800; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.phone.empty { color: #b6bac3; }
.field.email { height: 92px; font-size: 26px; font-weight: 700; border-width: 2px; border-color: #1f1f1f; border-radius: 20px; }
.err { min-height: 24px; font-size: 16px; font-weight: 600; color: #e03131; }
.keys { width: 292px; flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.key { height: 62px; border: 1.5px solid #d3d7de; border-radius: 16px; background: #fff; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; transition: transform .1s, background .12s; }
.key:active { transform: scale(.94); background: #1f1f1f; color: #fff; }
.key.fn { font-size: 17px; color: #5c616b; background: #eceef2; border-color: #eceef2; }

.bottom { height: 98px; flex: none; display: flex; align-items: center; gap: 24px; padding: 0 56px; background: #fff; border-top: 1px solid #e4e6eb; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 132px; height: 62px; padding: 0 26px; border: 1.5px solid #cfd3da; border-radius: 18px; background: #fff; font-size: 19px; font-weight: 700; white-space: nowrap; transition: transform .12s, background .16s, border-color .16s, opacity .16s; }
.btn:active { transform: scale(.97); }
.btn.pri { min-width: 212px; background: #1f1f1f; border-color: #1f1f1f; color: #fff; }
.btn.light { background: #fff; border-color: #fff; color: #1f1f1f; }
.btn:disabled { opacity: .32; cursor: not-allowed; }
.segs { flex: 1; display: flex; justify-content: center; gap: 10px; min-width: 0; }
.seg { width: 128px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.seg span { font-size: 14px; text-align: center; font-weight: 600; color: #5c616b; white-space: nowrap; }
.seg.cur span { font-weight: 800; color: #1f1f1f; }
.seg i { display: block; height: 6px; border-radius: 99px; background: #e4e6eb; overflow: hidden; }
.seg i b { display: block; height: 100%; border-radius: 99px; background: #1f1f1f; transition: width .35s ease; }

/* 완료 · 무응답 안내 */
.done { flex: 1; background: #1f1f1f; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 40px; animation: fade .4s ease both; }
.done img { width: 184px; height: auto; animation: hop 1.5s ease-in-out infinite; }
.done h1 { margin-top: 18px; font-size: 50px; line-height: 1.2; font-weight: 800; letter-spacing: -0.025em; }
.done .s { font-size: 21px; color: #c9ccd3; font-weight: 500; }
.done .entry { margin-top: 4px; padding: 10px 20px; border-radius: 999px; background: var(--ac); font-size: 18px; font-weight: 700; }
.done .btn { margin-top: 22px; }
.done .count2 { font-size: 16px; color: #a3a7b0; font-variant-numeric: tabular-nums; }
.idle { position: absolute; inset: 0; z-index: 5; background: rgba(31,31,31,.62); display: grid; place-items: center; padding: 20px; animation: fade .25s ease both; }
.idle .box { width: 520px; max-width: 100%; background: #fff; border-radius: 28px; padding: 36px 40px 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; animation: up .3s ease both; }
.idle img { width: 92px; height: auto; }
.idle h2 { margin-top: 8px; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.idle p { font-size: 18px; color: #5c616b; font-weight: 500; }
.idle .n { margin: 6px 0; font-size: 56px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ac); }
.idle .btn { width: 100%; }

.swap { animation: up .5s ease both; }
@keyframes pop { 0% { transform: scale(.9); } 55% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes inR { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes inL { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-16px); } 55% { transform: translateY(0); } 70% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .sv * { animation: none !important; transition: none !important; } }

/* 세로 화면·휴대폰(QR로 여는 경우) */
.sv.tall .nat-wrap { flex-direction: column; }
.sv.tall .nat-ink { width: auto; flex-direction: row; align-items: center; gap: 14px; padding: 16px 20px; }
.sv.tall .nat-ink .logo { height: 30px; align-self: center; }
.sv.tall .nat-ink .pic { flex: none; order: -1; }
.sv.tall .nat-ink .pic img { width: 50px; animation: none; }
.sv.tall .nat-ink .hello { font-size: 22px; margin-left: auto; }
.sv.tall .nat-ink .where { display: none; }
.sv.tall .nat-main { padding: 26px 20px 18px; overflow: auto; }
.sv.tall .nat-head { height: auto; min-height: 132px; }
.sv.tall .nat-head h1 { font-size: 30px; margin-top: 14px; }
.sv.tall .nat-head p { font-size: 16px; }
.sv.tall .dots span { font-size: 12.5px; padding: 4px 9px; }
.sv.tall .nat-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
.sv.tall .nat { min-height: 86px; padding: 12px 16px; border-radius: 20px; gap: 14px; }
.sv.tall .nat .name, .sv.tall .nat .name.sm { font-size: 22px; }
.sv.tall .nat .sub { font-size: 14px; }
.sv.tall .code { width: 48px; height: 48px; font-size: 15px; }
.sv.tall .nat-foot { margin-top: 18px; font-size: 12.5px; }
.sv.tall .others { padding: 22px 20px; gap: 16px; }
.sv.tall .others h2 { font-size: 21px; }
.sv.tall .others .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sv.tall .topbar { height: 58px; padding: 0 12px 0 16px; gap: 8px; }
.sv.tall .topbar .logo { height: 24px; }
.sv.tall .chip { display: none; }
.sv.tall .lang { height: 34px; padding: 0 8px; font-size: 13px; }
.sv.tall .lang.line span { display: none; }
.sv.tall .qmain { flex-direction: column; overflow: auto; }
.sv.tall .qleft { width: auto; padding: 20px 20px 4px; }
.sv.tall .qleft h2 { font-size: 24px; margin-top: 12px; }
.sv.tall .hint { font-size: 15px; margin-top: 8px; }
.sv.tall .intro { font-size: 14.5px; margin-top: 10px; }
.sv.tall .guide { display: none; }
.sv.tall .qright { padding: 14px 20px 20px; overflow: visible; justify-content: flex-start; flex: none; }
.sv.tall .grid { grid-template-columns: repeat(var(--tcols, 2), minmax(0, 1fr)); gap: 8px; }
.sv.tall .ch { min-height: 58px; font-size: 16.5px; padding: 8px 14px; gap: 10px; border-radius: 15px; }
.sv.tall .ch.big { min-height: 84px; font-size: 21px; }
.sv.tall .star svg { width: 60px; height: 60px; }
.sv.tall .stars { gap: 2px; }
.sv.tall .cap { font-size: 23px; height: 34px; margin-top: 0; }
.sv.tall .rows { padding: 2px 16px; border-radius: 18px; }
.sv.tall .row { flex-direction: column; align-items: flex-start; gap: 4px; min-height: 0; padding: 14px 0; }
.sv.tall .row .lab b { font-size: 19px; }
.sv.tall .row .lab i { display: none; }
.sv.tall .row .star svg { width: 52px; height: 52px; }
.sv.tall textarea.free { height: 170px; font-size: 18px; }
.sv.tall .contact { flex-direction: column; gap: 14px; }
.sv.tall .contact .left { width: 100%; flex: none; }
.sv.tall .phone { height: 68px; font-size: 28px; }
.sv.tall .field.email { height: 68px; font-size: 20px; }
.sv.tall .keys { width: 100%; }
.sv.tall .key { height: 54px; }
.sv.tall .qr { gap: 14px; padding: 14px; }
.sv.tall .qr svg { width: 96px; height: 96px; }
.sv.tall .qr b { font-size: 18px; }
.sv.tall .qr span { font-size: 14px; }
.sv.tall .bottom { height: 76px; padding: 0 14px; gap: 10px; }
.sv.tall .btn { min-width: 92px; height: 52px; padding: 0 16px; font-size: 17px; border-radius: 15px; }
.sv.tall .btn.pri { min-width: 132px; }
.sv.tall .seg { width: auto; flex: 1; }
.sv.tall .seg span { display: none; }
.sv.tall .done h1 { font-size: 30px; }
.sv.tall .done .s { font-size: 17px; }
.sv.tall .done img { width: 130px; }
.sv.tall .idle h2 { font-size: 25px; }
.sv.tall .idle .box { padding: 26px 22px; }
