/* 신년관 — 자사 원본 사이트 스타일 그대로 (글꼴은 fonts/gf 에 내장). 아래 "테스트 결제 창"만 추가 */
:root {
  --night: #120b05;
  --night2: #1d1309;
  --paper: #efe5cc;
  --paper2: #f5ecd7;
  --ink: #33281a;
  --ink-soft: #5f4e37;
  --ink-faint: #8b7a5c;
  --line: #cbb996;
  --seal: #b23a26;
  --seal-deep: #96311f;
  --lamp: #d9a45b;
  --cream: #e9dcbe;
  --cream-soft: #c9b892;
  --wood: #337a45;
  --fire: #a92f1c;
  --earth: #ab7c15;
  --metal: #2380b8;
  --water: #3a5da0;
  --disp: "Song Myung", "Noto Serif KR", "AppleMyungjo", serif;
  --body: "Gowun Batang", "Noto Serif KR", "AppleMyungjo", serif;
  --deckle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='dk'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.014 0.02' numOctaves='2' seed='11' result='n'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='n' scale='9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='white' filter='url(%23dk)'/%3E%3C/svg%3E");
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  background: var(--night);
  color: var(--cream);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.8;
  overflow: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}
button {
  font-family: inherit;
  cursor: pointer;
}
input,
select {
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 3px;
}
#stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  padding: 24px;
}
.scene.on {
  opacity: 1;
  pointer-events: auto;
}
.bgimg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1.4s ease;
}
.dim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, rgba(10, 6, 2, 0.15), rgba(10, 6, 2, 0.78) 78%);
}
.bgblur {
  filter: blur(9px) brightness(0.45) saturate(0.85);
  transform: scale(1.08);
}
.scenevid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 1s ease;
}
.scenevid.dimmed {
  filter: blur(7px) brightness(0.45);
}
.vig {
  position: absolute;
  inset: 0;
  /* 화면 전체 폭 둥근 비네트 — 세로 화면에서 사각 띠가 생기지 않게 */
  background: radial-gradient(
    ellipse farthest-side at 50% 50%,
    rgba(0, 0, 0, 0) 38%,
    rgba(0, 0, 0, 0.42) 74%,
    rgba(0, 0, 0, 0.85) 100%
  );
  pointer-events: none;
}
.tap-hint {
  position: absolute;
  bottom: calc(34px + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  color: var(--cream-soft);
  letter-spacing: 0.22em;
  animation: pulse 2.2s ease-in-out infinite;
  transition: bottom 0.3s ease;
}
.btnrow {
  position: absolute;
  bottom: calc(5% + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 4;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.9;
  }
}
#restart {
  position: fixed;
  top: 20px;
  left: 22px;
  z-index: 50;
  background: none;
  border: none;
  color: rgba(233, 220, 190, 0.4);
  font-size: 12px;
  letter-spacing: 0.1em;
  display: none;
}
.btn-seal {
  background: var(--seal);
  color: #f7ead2;
  border: none;
  font-family: var(--disp);
  font-size: 18px;
  padding: 15px 44px;
  border-radius: 2px;
  letter-spacing: 0.1em;
  box-shadow: 0 10px 26px -10px rgba(178, 58, 38, 0.7);
}
.btn-seal:hover {
  background: var(--seal-deep);
}
.btn-ghost {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 2px;
}
.pcard {
  max-width: 640px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.scene > .hj {
  position: absolute;
  z-index: 3;
  top: calc(16px + env(safe-area-inset-top));
  right: 16px;
  font-family: var(--disp);
  font-size: 13px;
  color: var(--lamp);
  letter-spacing: 0.14em;
  opacity: 0.8;
}
.pcard p {
  font-family: var(--disp);
  font-size: clamp(20px, 3.4vw, 27px);
  line-height: 2;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 1.1s ease,
    transform 1.1s ease;
}
.pcard p.in {
  opacity: 1;
  transform: none;
}
.pcard .sub {
  font-size: 15px;
  color: var(--cream-soft);
  margin-top: 20px;
  font-family: var(--body);
}
.pcard p .pgap {
  display: block;
  margin-top: 0.5em;
}
.pcard .sub .sig {
  position: relative;
  display: inline-block;
}
.pcard .sub .sig i {
  position: absolute;
  right: 100%;
  margin-right: 0.45em;
  font-style: normal;
}
.pcard .num {
  display: block;
  position: relative;
  margin: 30px auto 0;
  padding: 26px 0;
  font-family: var(--disp);
  line-height: 1.15;
  letter-spacing: 0.46px;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.pcard p.in ~ .num {
  opacity: 1;
}
.pcard .num-big {
  display: block;
  color: #d8492c;
  font-size: 44px;
  letter-spacing: 0.02em;
  animation: seonBlink 1.4s ease-in-out infinite;
}
.pcard .num-sub {
  display: block;
  margin-top: 12px;
  color: var(--cream);
  font-size: 17px;
}
.pcard .num::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 340px;
  height: 250px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(
    ellipse closest-side at 50% 50%,
    rgba(40, 10, 4, 0.9) 0%,
    rgba(14, 8, 4, 0.78) 50%,
    rgba(10, 6, 2, 0.35) 76%,
    rgba(10, 6, 2, 0) 98%
  );
}
@keyframes seonBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.22;
  }
}
.pcard .pcard-cta {
  display: flex;
  justify-content: center;
  margin-top: 46px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease 0.55s;
}
.pcard p.in ~ .pcard-cta {
  opacity: 1;
  pointer-events: auto;
}
.pcard .pcard-cta .stampbtn {
  width: calc(min(100vw, 480px) - 76px);
  font-size: 16.5px;
  letter-spacing: 0.05em;
  padding: 20px 18px;
  line-height: 1.5;
}
.pcard .big-hanja {
  font-family: var(--disp);
  font-size: clamp(64px, 12vw, 110px);
  color: var(--seal);
  line-height: 1.2;
  display: block;
  margin: 10px 0 6px;
  text-shadow: 0 0 44px rgba(178, 58, 38, 0.35);
}
.pcard.first p {
  font-family: "Noto Serif KR", var(--disp);
  font-weight: 900;
  font-size: clamp(24px, 6.6vw, 40px);
  line-height: 1.72;
  letter-spacing: -0.5px;
  color: #f6ead2;
  opacity: 1;
  transform: none;
}
.pcard.first p .ink {
  display: inline-block;
  opacity: 0;
  filter: blur(7px);
  transform: translateY(6px);
  transition:
    opacity 1.5s ease,
    filter 1.5s ease,
    transform 1.5s ease;
}
.pcard.first p .ink2 {
  transition-delay: 1s;
}
.pcard.first p.in .ink {
  opacity: 1;
  filter: blur(0);
  transform: none;
}
.pcard.first .redline {
  color: #c03a20;
}
.pcard.first .sub {
  margin-top: 96px;
  opacity: 0;
  transition: opacity 1.4s ease 2.6s;
}
html[data-ab="b"] .pcard.first {
  margin-top: auto;
  margin-bottom: calc(118px + env(safe-area-inset-bottom));
}
html[data-ab="b"] .scene:has(> .pcard.first) > .vig {
  background:
    linear-gradient(180deg, rgba(10, 6, 2, 0) 52%, rgba(10, 6, 2, 0.5) 70%, rgba(10, 6, 2, 0.66) 100%),
    radial-gradient(ellipse farthest-side at 50% 50%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.42) 74%, rgba(0, 0, 0, 0.85) 100%);
}
html[data-ab="b"] .pcard.first .sub {
  margin-top: 34px;
}
html[data-ab="b"] .pcard.first p {
  position: relative;
}
html[data-ab="b"] .pcard.first p::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 56%;
  width: 150%;
  height: 190%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s ease;
  background: radial-gradient(
    ellipse closest-side at 50% 50%,
    rgba(10, 6, 2, 0.8) 0%,
    rgba(10, 6, 2, 0.62) 46%,
    rgba(10, 6, 2, 0.26) 76%,
    rgba(10, 6, 2, 0) 98%
  );
}
html[data-ab="b"] .pcard.first p.in::before {
  opacity: 1;
}
@media (max-height: 700px) {
  html[data-ab="b"] .pcard.first {
    margin-bottom: calc(92px + env(safe-area-inset-bottom));
  }
  html[data-ab="b"] .pcard.first .sub {
    margin-top: 20px;
  }
}
@media (min-width: 900px) {
  html[data-ab="b"] .pcard.first {
    margin-bottom: calc(52px + env(safe-area-inset-bottom));
  }
  html[data-ab="b"] .pcard.first .sub {
    margin-top: 22px;
  }
}
.pcard.first p.in + .sub {
  opacity: 1;
}
.pcard .redline {
  color: #d8492c;
}
.caption {
  position: absolute;
  bottom: 11%;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 3;
  padding: 0 24px;
}
.caption .who {
  font-size: 12.5px;
  color: var(--lamp);
  letter-spacing: 0.3em;
  margin-bottom: 8px;
}
.caption .line {
  font-family: var(--disp);
  font-size: clamp(19px, 3vw, 25px);
  color: #f3e8cf;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9);
}
.caption.mid {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
}
.caption.low {
  bottom: auto;
  top: 64%;
}
.caption.up {
  bottom: 26%;
}
.caption.up .line {
  font-size: clamp(25px, 6.4vw, 33px);
  line-height: 1.5;
}
.docwrap {
  position: relative;
  z-index: 2;
  width: min(500px, 85vw);
  min-width: 0;
  max-width: 100%;
}
.doc {
  background:
    url("img/hanji-tex.webp") center/cover no-repeat,
    var(--paper);
  color: var(--ink);
  padding: 40px 36px 36px;
  position: relative;
  box-shadow: 0 22px 52px -26px rgba(0, 0, 0, 0.8);
}
.doc .madang {
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--seal);
  margin-bottom: 10px;
  font-weight: 700;
}
.doc h2 {
  font-family: var(--disp);
  font-size: 25px;
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--ink);
}
.doc .say {
  font-size: 15.5px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.doc .say .fit1 {
  display: block;
  white-space: nowrap;
}
.doc .say .fit1 + .fit1 {
  margin-top: 1.15em;
}
.doc label {
  display: block;
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  margin: 16px 0 7px;
}
.doc input[type="text"] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(74, 52, 24, 0.5);
  border-radius: 0;
  padding: 9px 2px;
}
.doc input[type="text"]:focus {
  outline: none;
  border-bottom-color: var(--seal);
}
.doc input[type="text"]::placeholder {
  font-size: 12.5px;
  color: rgba(74, 52, 24, 0.28);
  opacity: 1;
}
.doc .foot {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}
.chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.chip {
  border: 1px solid rgba(120, 90, 45, 0.5);
  background: rgba(255, 250, 236, 0.4);
  color: var(--ink-soft);
  padding: 9px 16px;
  border-radius: 2px;
  font-size: 14.5px;
}
.chip-wide {
  grid-column: 1/-1;
}
.chip.sel {
  border-color: var(--seal);
  color: var(--seal-deep);
  background: rgba(178, 58, 38, 0.08);
  box-shadow: inset 0 0 0 1px var(--seal);
}
.doc .btn-seal {
  background: url("img/stamp-btn.webp") center/100% 100% no-repeat;
  border: none;
  box-shadow: none;
  position: relative;
  color: #f7e6cc;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 2px rgba(70, 8, 0, 0.55);
  padding: 17px 42px;
}
.doc .btn-seal:hover {
  background: url("img/stamp-btn.webp") center/100% 100% no-repeat;
  filter: brightness(1.06);
}
.doc .btn-seal:active {
  transform: scale(0.97);
}
.askwrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: calc(15vh + env(safe-area-inset-top)) 26px 0;
  pointer-events: none;
}
@media (max-height: 640px) {
  .askwrap {
    padding-top: calc(9vh + env(safe-area-inset-top));
  }
}
.askwrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(11, 6, 2, 0.88) 0%,
    rgba(11, 6, 2, 0.72) 38%,
    rgba(11, 6, 2, 0.3) 66%,
    transparent 92%
  );
}
.askwrap > * {
  pointer-events: auto;
  position: relative;
  z-index: 1;
}
.ask-q {
  font-family: var(--disp);
  font-size: clamp(25px, 6.6vw, 31px);
  font-weight: 400;
  line-height: 1.45;
  color: #f6ebd3;
}
.ask-head {
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
  padding-top: 6px;
}
.ask-head.out {
  opacity: 0;
  transform: translateY(-7px);
}
.ask-sub {
  display: none;
  margin-top: 11px;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(233, 220, 190, 0.6);
}
.ask-sub.on {
  display: block;
}
.ask-field {
  margin-top: 54px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 11px;
  transition: opacity 0.4s ease;
}
.ask-field.out {
  opacity: 0;
}
.ask-line {
  position: relative;
  flex: 1;
  max-width: 290px;
  border-bottom: 1.5px solid rgba(233, 220, 190, 0.38);
  padding: 9px 2px;
  text-align: center;
  transition: border-color 0.35s ease;
}
.ask-line.hot {
  border-bottom-color: var(--lamp);
}
.ask-line.bad {
  border-bottom-color: var(--seal);
}
.ask-line input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  font-size: 16px;
  color: transparent;
  caret-color: transparent;
  text-align: center;
}
.ask-line input:focus {
  outline: none;
}
.ask-mask {
  font-family: var(--disp);
  font-size: 23px;
  line-height: 1.35;
  white-space: nowrap;
  color: rgba(233, 220, 190, 0.3);
}
.ask-mask b {
  font-weight: 400;
  color: #f8eed6;
}
.ask-line.plain input {
  position: static;
  color: #f8eed6;
  font-family: var(--disp);
  font-size: 23px;
  caret-color: var(--lamp);
  height: auto;
}
.ask-line.plain input::placeholder {
  font-family: var(--body);
  font-size: 14.5px;
  color: rgba(233, 220, 190, 0.3);
}
.ask-hint {
  text-align: center;
  font-size: 13px;
  color: var(--seal);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease,
    margin-top 0.3s ease;
}
.ask-hint.on {
  max-height: 52px;
  margin-top: 12px;
  opacity: 1;
}
.cal {
  display: flex;
  flex: none;
  border: 1px solid rgba(233, 220, 190, 0.26);
  border-radius: 2px;
  overflow: hidden;
  align-self: flex-end;
  margin-bottom: 6px;
}
.cal button {
  background: none;
  border: none;
  font-family: var(--body);
  font-size: 13.5px;
  padding: 6px 11px;
  color: rgba(233, 220, 190, 0.55);
}
.cal button.on {
  background: var(--paper);
  color: var(--ink);
}
.ask-go {
  display: flex;
  justify-content: center;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    max-height 0.42s ease,
    opacity 0.45s ease,
    margin-top 0.42s ease;
}
.ask-go.on {
  max-height: 110px;
  margin-top: 34px;
  opacity: 1;
  pointer-events: auto;
}
.stampbtn {
  background: url("img/sbtn-solid.webp") center/100% 100% no-repeat;
  border: none;
  color: #fff3de;
  font-family: var(--disp);
  font-size: 18.5px;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 3px rgba(64, 6, 0, 0.55);
  padding: 27px 44px;
  filter: brightness(1.1) drop-shadow(0 14px 26px rgba(0, 0, 0, 0.55));
}
.stampbtn:active {
  transform: scale(0.97);
}
.sheetdim {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(8, 4, 1, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.sheetdim.on {
  opacity: 1;
  animation: dimIn 0.5s ease var(--sd, 0s) backwards;
}
@keyframes dimIn {
  from {
    opacity: 0;
  }
}
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  color: var(--ink);
  background:
    url("img/hanji-tex.webp") center/cover no-repeat,
    var(--paper);
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -14px 40px -22px rgba(0, 0, 0, 0.8);
  transform: translateY(100%);
  opacity: 0.5;
  transition:
    transform 0.5s cubic-bezier(0.28, 0.74, 0.28, 1),
    opacity 0.34s ease;
}
/* 시트는 붙는 즉시 '보이는 상태'가 최종 상태이고, 올라오는 움직임은 애니메이션(지연 포함)으로만 처리한다 */
.sheet.up {
  transform: none;
  opacity: 1;
  animation: sheetUp 0.5s cubic-bezier(0.28, 0.74, 0.28, 1) var(--sd, 0s) backwards;
}
@keyframes sheetUp {
  from {
    transform: translateY(100%);
    opacity: 0.5;
  }
}
.sheet:empty {
  display: none;
}
/* 화면이 넘어갈 때 선택 시트는 다음 장면보다 먼저 빠르게 사라진다 */
.scene:not(.on) .sheet,
.scene:not(.on) .sheetdim {
  opacity: 0;
  transition: opacity 0.15s ease;
}
.sheet-t {
  font-family: var(--disp);
  font-size: 18.5px;
  text-align: center;
}
.sheet-s {
  font-size: 12.5px;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 5px;
}
.opts {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.opts.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.opt {
  border: 1px solid rgba(120, 90, 45, 0.42);
  background: rgba(255, 250, 236, 0.42);
  color: var(--ink);
  border-radius: 9px;
  padding: 21px 8px;
  font-family: var(--body);
  font-size: 18.5px;
  text-align: center;
}
.opt:active {
  background: rgba(178, 58, 38, 0.1);
  border-color: var(--seal);
}
.opts.grid .opt {
  padding: 8px 3px;
  font-size: 15.5px;
}
.opt .oj {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 2px;
}
.opt .ot {
  font-size: 13px;
  letter-spacing: 0;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0 8px;
}
.pillar {
  background: var(--paper2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px 6px;
  text-align: center;
}
.pillar .lbl {
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}
.pillar .gz {
  font-family: var(--disp);
  font-size: 30px;
  line-height: 1.35;
}
.pillar .kr {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 6px;
}
.pillars.myeongsik {
  gap: 0;
  border: 1px solid rgba(74, 52, 24, 0.55);
  background: none;
}
.pillars.myeongsik .pillar {
  background: none;
  border: none;
  border-left: 1px solid rgba(74, 52, 24, 0.28);
  border-radius: 0;
  padding: 0;
}
.pillars.myeongsik .pillar:first-child {
  border-left: none;
}
.pillars.myeongsik .pillar .lbl {
  margin: 0;
  padding: 7px 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  border-bottom: 1px solid rgba(74, 52, 24, 0.28);
}
.pillars.myeongsik .pillar .glyph {
  font-family: var(--disp);
  font-size: 34px;
  line-height: 1.28;
  padding: 12px 0 10px;
  color: var(--ink);
}
.pillars.myeongsik .pillar .kr {
  margin: 0;
  padding: 6px 0 7px;
  font-size: 11px;
  color: var(--ink-faint);
  border-top: 1px solid rgba(74, 52, 24, 0.28);
}
.stamp {
  position: absolute;
  right: 26px;
  bottom: 88px;
  width: 80px;
  height: 80px;
  border-radius: 4px;
  color: #f0e7cf;
  background:
    radial-gradient(circle at 28% 22%, rgba(240, 231, 207, 0.3), transparent 42%),
    radial-gradient(circle at 74% 78%, rgba(240, 231, 207, 0.22), transparent 38%),
    radial-gradient(circle at 58% 32%, rgba(118, 22, 11, 0.5), transparent 55%), var(--seal);
  box-shadow: inset 0 0 10px rgba(80, 8, 3, 0.6);
  font-family: var(--disp);
  font-size: 26px;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  rotate: -8deg;
  scale: 1.7;
  opacity: 0;
  mix-blend-mode: multiply;
  filter: url(#inkrough);
  line-height: 1.25;
  text-align: center;
  pointer-events: none;
}
.stamp::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 34% 22% at 70% 20%, rgba(239, 229, 204, 0.45), transparent),
    radial-gradient(ellipse 26% 18% at 20% 72%, rgba(239, 229, 204, 0.38), transparent),
    radial-gradient(ellipse 44% 15% at 52% 94%, rgba(239, 229, 204, 0.3), transparent);
}
.stamp.in {
  animation: stampSlam 0.5s cubic-bezier(0.2, 0.85, 0.3, 1) forwards;
}
@keyframes stampSlam {
  0% {
    scale: 1.7;
    opacity: 0;
    rotate: -13deg;
    filter: url(#inkrough) blur(4px);
  }
  38% {
    scale: 1.12;
    opacity: 0.6;
    rotate: -9deg;
    filter: url(#inkrough) blur(1.5px);
  }
  55% {
    scale: 0.93;
    opacity: 1;
    rotate: -7.5deg;
    filter: url(#inkrough) blur(0);
  }
  74% {
    scale: 1.03;
    rotate: -8.4deg;
  }
  100% {
    scale: 1;
    opacity: 0.93;
    rotate: -8deg;
    filter: url(#inkrough);
  }
}
.doc.thud {
  animation: docThud 0.32s ease-out;
}
@keyframes docThud {
  0% {
    translate: 0 0;
  }
  35% {
    translate: 0 4px;
  }
  65% {
    translate: 0 -1px;
  }
  100% {
    translate: 0 0;
  }
}
.ritual-lines {
  position: relative;
  z-index: 2;
  text-align: center;
}
.ritual-lines .rl {
  font-family: var(--disp);
  font-size: clamp(18px, 3vw, 23px);
  color: #f0e4c8;
  opacity: 0;
  transition: opacity 1s ease;
  margin: 13px 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}
.ritual-lines .rl.in {
  opacity: 1;
}
#result {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--night);
  display: none;
}
#result.on {
  display: block;
  animation: gzIn 0.8s ease;
}
@keyframes gzIn {
  from {
    opacity: 0;
  }
}
#result.on .lt-head {
  animation: paperIn 1s ease 0.2s backwards;
}
@media (prefers-reduced-motion: reduce) {
  #result.on {
    animation: none;
  }
  #result.on .lt-head {
    animation: none;
  }
}
.gz-vig {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse farthest-side at 50% 42%,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.4) 76%,
    rgba(0, 0, 0, 0.8) 100%
  );
  pointer-events: none;
}
#letter {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
  padding: 9vh 28px 48vh;
  font-size: 17.5px;
  line-height: 1.95;
  color: #efe4cb;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.lt-head {
  text-align: center;
  margin-bottom: 54px;
}
.lt-cine {
  width: 100%;
  aspect-ratio: 21/9;
  margin: 0 auto 6px;
  background-size: cover;
  background-position: 45% 26%;
  -webkit-mask-image: radial-gradient(ellipse 36% 78% at 45% 44%, #000 26%, transparent 68%);
  mask-image: radial-gradient(ellipse 36% 78% at 45% 44%, #000 26%, transparent 68%);
}
.lt-name {
  font-family: var(--disp);
  font-size: 18px;
  color: var(--cream);
  letter-spacing: 0.14em;
}
.lt-sub {
  font-size: 12.5px;
  color: rgba(233, 220, 190, 0.5);
  margin-top: 8px;
  letter-spacing: 0.06em;
}
.ln-pic {
  margin: 30px 0 26px;
}
.ln-pic .pic {
  width: min(430px, 96%);
  aspect-ratio: 16/9;
  margin: 0 auto;
  border-radius: 0;
  background-size: cover;
  background-position: center;
  box-shadow: none;
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 50% 50%, #000 38%, transparent 80%);
  mask-image: radial-gradient(ellipse 78% 72% at 50% 50%, #000 38%, transparent 80%);
}
.ln-pic .pic.sep {
  filter: sepia(0.5) contrast(0.95) brightness(0.85);
}
.ln {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(3px);
  transition:
    opacity 0.95s ease,
    transform 0.95s ease,
    filter 0.95s ease;
  margin-bottom: 1.05em;
}
.ln.in {
  opacity: 1;
  transform: none;
  filter: none;
}
.ln.gap {
  margin-top: 2em;
}
.ln.em {
  font-family: var(--disp);
  color: var(--lamp);
  font-size: 19px;
}
.ln.big {
  font-family: var(--disp);
  color: var(--lamp);
  font-size: clamp(25px, 4.5vw, 31px);
  line-height: 1.6;
  margin: 14px 0 16px;
}
.ln .smudge {
  filter: blur(5px);
  opacity: 0.8;
  letter-spacing: 0.04em;
}
.ln .lamp {
  color: var(--lamp);
  font-size: 1.12em;
  font-weight: 700;
}
.ln.center {
  text-align: center;
}
.ln.yearmark {
  transition:
    filter 2.2s ease,
    opacity 2.2s ease;
}
.ln.yearmark.inkgone {
  filter: blur(7px);
  opacity: 0.12;
}
.ln:has(.pic.eyes) {
  transform: none;
  filter: none;
}
.ln-pic .pic.eyes {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  height: min(46vh, 420px);
  aspect-ratio: auto;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  box-shadow: none;
  background-size: 0 0;
  -webkit-mask-image: radial-gradient(ellipse 72% 64% at 50% 50%, #000 34%, transparent 76%);
  mask-image: radial-gradient(ellipse 72% 64% at 50% 50%, #000 34%, transparent 76%);
}
.ln-pic .pic.eyes i {
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: 45% 34%;
  transform: scale(2.05);
  transform-origin: 45% 34%;
  opacity: 0;
  transition:
    transform 2.2s ease-out,
    opacity 1.6s ease;
}
.ln-pic.in .pic.eyes i {
  transform: scale(1.5);
  opacity: 0.94;
}
.ln-board .pillars {
  max-width: 340px;
  margin: 8px auto 4px;
  gap: 8px;
}
.ln-board .pillar {
  padding: 10px 4px;
}
.ln-board .pillar .gz {
  font-size: 23px;
}
.ln-board .pillar.hero {
  border-color: var(--lamp);
}
.ln-board .pillar.hero .gz {
  color: var(--seal);
  font-size: 30px;
  display: inline-block;
  transform: scale(0.62);
  transition: transform 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.9s;
}
.ln-board.in .pillar.hero .gz {
  transform: scale(1);
}
.ln-board.in .pillar.hero {
  animation: heroGlow 2.8s ease-in-out 1s infinite alternate;
}
.ln-board.in .pillar:not(.hero) {
  opacity: 0.5;
  transition: opacity 1.4s ease 0.5s;
}
@keyframes heroGlow {
  from {
    box-shadow: 0 0 20px rgba(217, 164, 91, 0.22);
  }
  to {
    box-shadow: 0 0 46px rgba(217, 164, 91, 0.5);
  }
}
.ln-board.press.in .pillar.hero {
  animation: none;
  transition:
    box-shadow 1.2s ease,
    border-color 1.2s ease;
}
.ln-board.press .pillar.hero .gz {
  color: var(--cream-soft);
  opacity: 0.4;
  transform: none !important;
  transition:
    opacity 1.2s ease,
    color 1.2s ease;
}
.ln-board.press .pillar.hero.lift .gz {
  color: var(--seal);
  opacity: 1;
}
.ln-board.press .pillar.hero.lift {
  box-shadow: 0 0 26px rgba(217, 164, 91, 0.35);
  border-color: var(--lamp);
}
.tw-hint {
  position: fixed;
  bottom: calc(4vh + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  text-align: center;
  font-size: 15px;
  color: var(--cream-soft);
  letter-spacing: 0.2em;
  opacity: 0;
  transition: opacity 0.9s;
  pointer-events: none;
  z-index: 3;
}
.tw-hint.on {
  opacity: 0.55;
  animation: pulse 2.2s ease-in-out infinite;
}
#paywrap {
  position: relative;
  z-index: 2;
  display: none;
  opacity: 0;
  transition: opacity 1.1s ease;
}
#paywrap.on {
  opacity: 1;
}
#letter.cut {
  padding-bottom: 0;
}
.pay-pov {
  opacity: 0;
  filter: blur(7px);
  padding-top: 2vh;
  transition:
    opacity 2.4s ease,
    filter 2.4s ease;
}
#paywrap.on .pay-pov {
  opacity: 1;
  filter: blur(0);
}
.pay-pov .pov {
  width: min(84vw, 410px);
  aspect-ratio: 5/8;
  margin: 0 auto;
  background: url("img/pov.webp") center 34% / cover no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 57% 55% at 50% 47%, #000 30%, transparent 76%);
  mask-image: radial-gradient(ellipse 57% 55% at 50% 47%, #000 30%, transparent 76%);
}
@media (min-width: 900px) {
  .pay-pov .pov {
    width: 480px;
    -webkit-mask-image: radial-gradient(ellipse 63% 60% at 50% 47%, #000 16%, transparent 86%);
    mask-image: radial-gradient(ellipse 63% 60% at 50% 47%, #000 16%, transparent 86%);
  }
}
.pay-speech {
  padding: 1vh 26px 6vh;
  text-align: center;
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 1.5s ease,
    transform 1.5s ease;
}
#paywrap > .rwrap {
  opacity: 0;
  transition: opacity 1.5s ease 0.3s;
}
#paywrap.speak .pay-speech {
  opacity: 1;
  transform: none;
}
#paywrap.speak > .rwrap {
  opacity: 1;
}
.pay-speech .speech {
  font-family: var(--disp);
  font-size: clamp(18px, 4.9vw, 22px);
  line-height: 2.15;
  color: var(--cream);
  max-width: 490px;
  margin: 0 auto;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}
.pay-speech .speech strong {
  color: var(--lamp);
  font-weight: 400;
}
@media (max-width: 560px) {
  #letter {
    padding: 12vh 22px 42vh;
    font-size: 16.5px;
  }
}
.rwrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 34px 22px 90px;
}
.rcard {
  background:
    url("img/hanji-tex.webp") center/cover no-repeat,
    var(--paper);
  color: var(--ink);
  padding: 32px 30px;
  margin: 18px 0;
  position: relative;
  box-shadow: 0 22px 54px -26px rgba(0, 0, 0, 0.82);
}
.rcard h3 {
  font-family: var(--disp);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 14px;
  color: var(--ink);
}
.rcard h3 .hj {
  color: var(--seal);
  margin-right: 9px;
}
.rcard h3 .hseal {
  width: 26px;
  height: 26px;
  vertical-align: -6px;
  margin-right: 9px;
}
.rcard p {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.9;
}
.ohang {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}
.oh {
  display: grid;
  grid-template-columns: 64px 1fr 34px;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  color: var(--ink-soft);
}
.oh .bar {
  height: 9px;
  background: var(--paper2);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}
.oh .bar i {
  display: block;
  height: 100%;
  border-radius: 5px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.talent-name {
  font-family: var(--disp);
  font-size: 26px;
  color: var(--seal-deep);
  margin: 4px 0 10px;
}
.jeon {
  font-family: var(--disp);
  font-size: 17px;
  line-height: 2.05;
  color: var(--ink);
}
.sealcover {
  cursor: pointer;
  text-align: center;
  padding: 30px 14px 26px;
  border: 1.5px dashed var(--seal);
  border-radius: 2px;
  background: rgba(178, 58, 38, 0.05);
  transition:
    transform 0.45s ease,
    opacity 0.45s ease;
  user-select: none;
}
.sealcover .strip {
  font-family: var(--disp);
  font-size: 38px;
  color: var(--seal);
  display: block;
  margin-bottom: 10px;
  animation: pulse 2.2s ease-in-out infinite;
}
.sealcover p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
}
.sealcover.tear {
  transform: translateY(-10px) rotate(-2.5deg);
  opacity: 0;
  pointer-events: none;
}
.reveal-in {
  animation: revealIn 0.7s ease both;
}
@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.veil {
  position: relative;
  max-height: 3.7em;
  overflow: hidden;
}
.veil::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.4em;
  background: linear-gradient(180deg, rgba(239, 229, 204, 0), var(--paper) 88%);
}
.veil-note {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-top: 10px;
  font-size: 14px;
  color: var(--seal-deep);
}
.veil-note .fj {
  font-family: var(--disp);
  color: var(--seal);
}
.deadline {
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-faint);
  margin-top: 18px;
}
.lockbox {
  border: 1px dashed var(--line);
  border-radius: 2px;
  padding: 16px 18px;
  margin: 12px 0;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.lockbox .lk {
  color: var(--seal);
  font-size: 18px;
}
.lockbox .t {
  font-size: 15.5px;
  color: var(--ink-soft);
}
.price {
  text-align: center;
  margin-top: 22px;
}
.price .old {
  color: var(--ink-faint);
  text-decoration: line-through;
  font-size: 15px;
  margin-right: 12px;
}
.price .now {
  font-family: var(--disp);
  font-size: 24px;
  color: var(--seal-deep);
}
.rfoot {
  text-align: center;
  margin-top: 26px;
}
.bgimg.sepia {
  filter: sepia(0.7) contrast(0.95) brightness(0.85);
}
.note-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(12px + env(safe-area-inset-bottom));
  padding: 0 18px;
  text-align: center;
  font-size: 9.5px;
  line-height: 1.5;
  color: rgba(233, 220, 190, 0.26);
  letter-spacing: 0.02em;
  z-index: 2;
  pointer-events: none;
}
.prelude {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 3;
  pointer-events: none;
  background: rgba(6, 4, 2, 0);
  transition: background 0.55s ease;
}
.prelude.in {
  background: rgba(6, 4, 2, 0.5);
}
/* 글자 바로 뒤를 한 번 더 어둡게 눌러 배경 필사 획과 겹쳐도 또렷하게 */
.prelude::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 62% 30% at 50% 50%, rgba(6, 4, 2, 0.62), rgba(6, 4, 2, 0) 100%);
  opacity: 0;
  transition: opacity 0.55s ease;
}
.prelude.in::before {
  opacity: 1;
}
.prelude p {
  position: relative;
  text-shadow:
    0 0 12px rgba(0, 0, 0, 0.7),
    0 1px 3px rgba(0, 0, 0, 0.6);
  font-family: var(--disp);
  font-size: clamp(20px, 3.4vw, 27px);
  line-height: 2;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.prelude.in p {
  opacity: 1;
  transform: none;
}
.scene.haspre .pcard p {
  transition-duration: 0.8s;
}
.scene.haspre .pcard .sub,
.scene.haspre .note-foot {
  opacity: 0;
  transition: opacity 0.9s ease;
}
.scene.haspre .tap-hint {
  opacity: 0;
  animation: none;
}
.scene.haspre.told .pcard .sub,
.scene.haspre.told .note-foot {
  opacity: 1;
}
.scene.haspre.told .tap-hint {
  animation: pulse 2.2s ease-in-out infinite;
}
.scene.softin {
  transition: opacity 1.1s ease;
}
.scene.softin .ask-head,
.scene.softin .ask-field {
  animation: paperIn 1s ease 0.45s backwards;
}
@keyframes paperIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .scene.softin .ask-head,
  .scene.softin .ask-field {
    animation: none;
  }
}
.speech {
  font-family: var(--disp);
  font-size: 16.5px;
  line-height: 2.1;
  color: var(--ink);
}
.cutline {
  font-family: var(--disp);
  font-size: 19px;
  color: var(--ink);
  margin-top: 20px;
}
.cutblur {
  position: relative;
  margin-top: 14px;
  user-select: none;
  pointer-events: none;
}
.cutblur p {
  filter: blur(4.5px);
  font-family: var(--disp);
  font-size: 16px;
  line-height: 2.05;
  color: var(--ink-soft);
}
.cutblur::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(239, 229, 204, 0) 0%, var(--paper) 90%);
}
.locklist {
  margin-top: 8px;
}
.lockitem {
  margin-top: 16px;
}
.lockitem .bong {
  float: right;
  width: 21px;
  height: 21px;
  margin: 3px 0 4px 10px;
  transform: rotate(-4deg);
  opacity: 0.95;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}
.lockitem .lt {
  font-size: 15px;
  color: var(--ink);
  font-weight: 700;
}
.lockitem .tease {
  position: relative;
  font-size: 13.4px;
  color: var(--ink-soft);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent 99%);
  mask-image: linear-gradient(90deg, #000 78%, transparent 99%);
}
.lockitem .tease .bl {
  filter: blur(3.5px);
  opacity: 0.8;
}
.lockitem.open .ans {
  font-size: 14.5px;
  color: var(--ink);
  margin-top: 4px;
  line-height: 1.65;
}
.lockitem.open .ans b {
  color: var(--seal-deep);
  font-weight: 700;
}
.lockitem.open .ans-sub {
  font-size: 12.8px;
  color: var(--ink-soft);
  margin-top: 3px;
}
.lockcut {
  height: 7px;
  background: url("img/ink-underline.webp") center/102% 420% no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.45;
  margin: 15px 0 0;
}
.price-intro {
  text-align: center;
  font-family: var(--disp);
  font-size: 15.5px;
  color: var(--ink-soft);
  margin-top: 28px;
}
.price2 {
  text-align: center;
  margin-top: 12px;
}
.price2 .old {
  color: var(--ink-faint);
  text-decoration: line-through;
  font-size: 14.5px;
}
.price2 .now {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-top: 1px;
  font-family: var(--disp);
}
.price2 .now .pct {
  font-size: 36px;
  color: var(--seal);
}
.price2 .now .won {
  font-size: 36px;
  color: var(--ink);
}
.price2 .pdesc {
  margin-top: 9px;
  font-size: 13.5px;
  color: var(--ink-faint);
}
.cta-full {
  display: block;
  width: 100%;
  background: url("img/sbtn-solid.webp") center/100% 100% no-repeat;
  color: #f7e6cc;
  border: none;
  font-family: var(--disp);
  font-size: 19px;
  padding: 24px 20px;
  letter-spacing: 0.08em;
  margin-top: 22px;
  text-shadow: 0 1px 2px rgba(70, 8, 0, 0.55);
}
.cta-full:hover {
  filter: brightness(1.06);
}
.cta-sub {
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-faint);
  margin-top: 10px;
}
.law-links {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.law-links a {
  font-size: 11.5px;
  color: rgba(233, 220, 190, 0.42);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.law-links a:hover,
.law-links a:active {
  color: rgba(233, 220, 190, 0.72);
}
.buy-note {
  margin: 14px auto 0;
  max-width: 330px;
  font-size: 11px;
  line-height: 1.65;
  color: rgba(233, 220, 190, 0.34);
  word-break: keep-all;
  text-wrap: balance;
}
#dbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 68;
  background: #100a04;
  border-top: 1px solid rgba(217, 164, 91, 0.35);
  padding: 0 0 calc(12px + env(safe-area-inset-bottom));
  transform: translateY(105%);
  transition: transform 0.6s cubic-bezier(0.22, 0.9, 0.3, 1);
}
#dbar.on {
  transform: none;
}
#dbar .bl {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  padding: 9px 16px 11px;
  background: rgba(40, 28, 13, 0.92);
}
#dbar .bl .t1 {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--cream);
}
#dbar .bl .t1 b {
  color: #ff8a65;
  font-weight: 700;
}
#dbar .bl .t1 b i {
  font-style: normal;
  font-size: 21px;
  letter-spacing: 0.01em;
  line-height: 1;
  position: relative;
  top: 2px;
}
#dbar .bl .t2 {
  font-family: var(--disp);
  font-size: 18px;
  color: #f2c766;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  font-weight: 700;
  transition: color 0.8s ease;
}
#dbar .gz {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(217, 164, 91, 0.14);
  overflow: visible;
}
#dbar .gz i {
  display: block;
  height: 100%;
  width: 100%;
  position: relative;
  background: linear-gradient(90deg, rgba(138, 90, 43, 0.85), #e8b95e 55%, #ffdc94);
  transition:
    width 1s linear,
    background 1s ease;
}
#dbar .gz i::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffdc94;
  box-shadow: 0 0 9px 2px rgba(242, 199, 102, 0.7);
  animation: gzBreath 2.4s ease-in-out infinite;
}
@keyframes gzBreath {
  0%,
  100% {
    opacity: 0.5;
    transform: translateY(-50%) scale(0.8);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
  }
}
#dbar.hot .gz i {
  background: linear-gradient(90deg, rgba(122, 42, 28, 0.85), #d4472f 55%, #ff8a65);
}
#dbar.hot .gz i::after {
  background: #ff9d7a;
  box-shadow: 0 0 10px 3px rgba(224, 83, 58, 0.8);
  animation-duration: 1.2s;
}
#dbar.hot .bl .t2 {
  color: #ff8a65;
}
@media (prefers-reduced-motion: reduce) {
  #dbar .gz i::after {
    animation: none;
    opacity: 0.9;
  }
}
#dbar .bcta {
  display: block;
  width: calc(100% - 32px);
  max-width: 500px;
  margin: 12px auto 0;
  background: var(--seal);
  color: #f7ead2;
  border: none;
  font-family: var(--disp);
  font-size: 19px;
  padding: 17px 12px;
  border-radius: 10px;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 26px -10px rgba(178, 58, 38, 0.8);
  cursor: pointer;
}
#dbar .bcta:hover {
  background: var(--seal-deep);
}
body.dbar-on #paywrap {
  padding-bottom: 150px;
}
#lvfeed {
  position: fixed;
  left: 0;
  bottom: 98px;
  z-index: 66;
  pointer-events: none;
}
body.dbar-on #lvfeed {
  bottom: calc(212px + env(safe-area-inset-bottom));
}
#lvfeed .lvi {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4eede;
  color: #3a3026;
  border-left: 2px solid rgba(178, 58, 38, 0.75);
  border-radius: 0 10px 10px 0;
  padding: 7px 14px 8px 10px;
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.7);
  transform: translateX(-32%);
  opacity: 0;
  filter: blur(3px);
  transition:
    transform 1.3s cubic-bezier(0.16, 0.7, 0.3, 1),
    opacity 1.15s ease,
    filter 1.15s ease;
}
#lvfeed .lvi.in {
  transform: none;
  opacity: 1;
  filter: none;
}
#lvfeed .lvi.out {
  transform: none;
  filter: none;
  opacity: 0;
  transition: opacity 1.05s ease;
}
#lvfeed .sl {
  width: 18px;
  height: 18px;
  flex: none;
  opacity: 0.85;
}
#lvfeed .n {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
#lvfeed .g {
  font-size: 11px;
  color: #8a8073;
  margin: 2px 0 0 8px;
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  #lvfeed .lvi,
  #lvfeed .lvi.out {
    transition: opacity 0.35s ease;
  }
}
.reviews {
  max-width: 640px;
  margin: 24px auto 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.reviews-head {
  font-family: var(--disp);
  font-size: 15px;
  color: var(--cream-soft);
  letter-spacing: 0.12em;
  text-align: center;
  margin-bottom: 6px;
}
.reviews-head b {
  color: var(--lamp);
  font-weight: 400;
}
.review {
  background: #fbf7ef;
  color: #2a2016;
  border-radius: 12px;
  padding: 15px 16px 14px;
  border-left: 3px solid var(--seal);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.8);
}
.review .rv-top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 11px;
}
.review .rv-ava-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: #e7ddc9;
  border: 1px solid rgba(90, 60, 20, 0.15);
  isolation: isolate;
}
.review .rv-ava {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}
/* 후기 프로필 사진: 개인정보 보호용 흐림 */
.review .rv-ava-wrap.blur .rv-ava {
  filter: blur(3.5px);
  transform: scale(1.25);
}
.review .rv-hd {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.review .rv-id {
  font-size: 14.5px;
  font-weight: 700;
  color: #2a2016;
  line-height: 1.25;
}
.review .rv-id .age {
  color: #9a876a;
  font-weight: 400;
  font-size: 12.5px;
  margin-left: 3px;
}
.review .rv-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.review .stars {
  color: #e0a13a;
  font-size: 13px;
  letter-spacing: 0.14em;
}
.review .rv-tag {
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 600;
}
.review .rv-tag.g {
  color: #2f7d4f;
  background: rgba(47, 125, 79, 0.13);
}
.review .rv-tag.b {
  color: #2f6ea8;
  background: rgba(47, 110, 168, 0.13);
}
.review .rv-tag.o {
  color: #b7791f;
  background: rgba(183, 121, 31, 0.15);
}
.review .rv-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #2a2016;
  margin-bottom: 5px;
  word-break: keep-all;
}
.review .rv-body {
  font-size: 13px;
  color: #5f4e37;
  line-height: 1.72;
}
.review .rv-body b {
  color: #2a2016;
  font-weight: 700;
}
body.kb-open .scene {
  overflow-y: auto;
  overflow-x: hidden;
  justify-content: flex-start;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: calc(24px + var(--kb, 0px));
}
body.kb-open .scene .docwrap {
  margin: auto;
}
.scene:has(.docwrap) {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
.scene:has(.docwrap) .docwrap {
  margin: auto;
}
@media (orientation: portrait) and (max-width: 700px) {
  .bgimg.face {
    background-size: auto 60vh;
    background-size: auto min(60svh, 116vw);
    background-repeat: no-repeat;
    background-color: var(--night);
  }
  .caption.mid,
  .caption.low {
    top: auto;
    bottom: calc(13% + env(safe-area-inset-bottom));
    transform: none;
  }
  .caption.low {
    bottom: calc(19% + env(safe-area-inset-bottom));
  }
  .ln-pic .pic.eyes i {
    background-position: center 40%;
    transform-origin: 50% 48%;
  }
  .lt-cine {
    width: min(60vw, 290px);
    aspect-ratio: 1/1;
    background-size: cover;
    background-position: center;
    -webkit-mask-image: radial-gradient(ellipse 62% 62% at 50% 47%, #000 32%, transparent 74%);
    mask-image: radial-gradient(ellipse 62% 62% at 50% 47%, #000 32%, transparent 74%);
  }
}
@media (max-width: 560px) {
  .doc {
    padding: 32px 26px 28px;
  }
  .doc h2 {
    font-size: 22px;
  }
  .stamp {
    width: 60px;
    height: 60px;
    font-size: 19px;
    right: auto;
    left: 20px;
    bottom: 22px;
  }
  .rcard {
    padding: 24px 20px;
  }
  .btn-seal {
    padding: 14px 34px;
    font-size: 17px;
  }
  #restart {
    top: 14px;
    left: 14px;
  }
  .caption {
    bottom: calc(12% + env(safe-area-inset-bottom));
  }
  .pillars {
    gap: 7px;
  }
  .pillar .gz {
    font-size: 26px;
  }
  .review {
    padding: 14px 14px 13px;
  }
  .price2 .now .pct,
  .price2 .now .won {
    font-size: 30px;
  }
}
@media (max-height: 700px) {
  .scene:has(.docwrap) {
    padding-top: 14px;
  }
  .doc {
    padding: 26px 28px 24px;
  }
  .doc .madang {
    margin-bottom: 8px;
  }
  .doc h2 {
    font-size: 22px;
    margin-bottom: 4px;
  }
  .doc .say {
    font-size: 14.5px;
    margin-bottom: 16px;
  }
  .doc label {
    margin: 13px 0 6px;
  }
  .doc .foot {
    margin-top: 24px;
  }
}
@media (min-width: 900px) {
  body {
    zoom: 1.25;
  }
  .ln-pic .pic.eyes {
    width: 80vw;
    margin-left: calc(50% - 40vw);
  }
  .ln-pic .pic.eyes i {
    translate: 4.3% 0;
    transform-origin: 45.7% 34%;
  }
  .lt-cine {
    translate: 4.3% 0;
    -webkit-mask-image: radial-gradient(ellipse 36% 78% at 45.7% 44%, #000 26%, transparent 68%);
    mask-image: radial-gradient(ellipse 36% 78% at 45.7% 44%, #000 26%, transparent 68%);
  }
}
@media (min-width: 900px) and (min-aspect-ratio: 23/20) {
  .bgimg.face.closeup {
    background-size: 109.4% auto;
    background-position: 0% 50%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .stamp.in {
    opacity: 0.93 !important;
    scale: 1 !important;
  }
  #paywrap.on {
    opacity: 1 !important;
  }
}

/* ---------- 테스트 결제 창 (기획 스튜디오 기본 결제 자리) ---------- */
.pmodal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 4, 2, 0.72);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pmodal.on {
  opacity: 1;
}
.pmodal-card {
  width: min(360px, 100%);
  padding: 30px 26px 22px;
  text-align: center;
  background:
    url("img/hanji-tex.webp") center/cover no-repeat,
    var(--paper);
  color: var(--ink);
  box-shadow: 0 22px 54px -26px rgba(0, 0, 0, 0.82);
}
.pmodal-card h3 {
  font-family: var(--disp);
  font-size: 21px;
  font-weight: 400;
  margin-bottom: 10px;
}
.pmodal-card .pm-body {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  word-break: keep-all;
}
.pmodal-card .pm-sel {
  margin: 14px 0 18px;
  font-size: 15px;
  color: var(--seal);
  word-break: keep-all;
}
.pmodal-card .pm-no {
  margin-top: 12px;
}
