/* ───────── 01 등록 폼 ───────── */
.form-card {
  width: 360px;
  background: var(--paper);
  color: var(--ink);
  border: var(--stroke);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--ink);
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-bottom: var(--stroke);
  background: var(--cream);
  font-size: 12px;
  font-weight: 700;
}

.win-bar i {
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.win-bar span {
  margin-left: 8px;
}

.fc-body {
  padding: 14px 18px 18px;
}

.fc-row--poster {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.fc-poster-hint {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: var(--mute);
}

.fc-poster-hint b {
  color: var(--ink);
  font-size: 13px;
}

/* 손으로 만든 듯한 행사 포스터 (타이포만) */
.mini-poster {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 66px;
  height: 88px;
  padding: 6px;
  background: var(--butter);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
  background-image: radial-gradient(rgb(29 25 21 / 0.18) 1px, transparent 1.2px);
  background-size: 5px 5px;
}

.mini-poster__top,
.mini-poster__bot {
  font-size: 6.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.mini-poster__mid {
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--orange);
}

.fc-label {
  display: block;
  margin: 10px 0 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
}

.fc-input {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  background: #fff;
}

.fc-input.is-active {
  border-color: var(--ink);
}

.caret {
  width: 1.5px;
  height: 16px;
  margin-left: 1px;
  background: var(--orange);
  opacity: 0;
}

.fc-input.is-active .caret {
  opacity: 1;
  animation: blink 0.9s steps(2) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.fc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.fc-chips span {
  padding: 5px 9px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}

.fc-submit {
  display: grid;
  place-items: center;
  height: 46px;
  margin-top: 16px;
  border: var(--stroke);
  border-radius: 12px;
  background: var(--orange);
  color: var(--on-orange);
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 4px 0 var(--ink);
}

/* ───────── 손님 폰 ───────── */
.phone,
.scanner {
  width: 272px;
  height: 560px;
  padding: 10px;
  border: 3px solid var(--ink);
  border-radius: 44px;
  background: var(--ink);
}

.phone__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 6;
  width: 82px;
  height: 22px;
  margin-left: -41px;
  border-radius: 20px;
  background: var(--ink);
}

.phone__screen,
.scanner__screen {
  position: relative;
  height: 100%;
  border-radius: 34px;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}

.scr {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.app-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 46px 16px 8px;
}

.app-head b {
  font-size: 20px;
  letter-spacing: -0.04em;
}

.app-head span {
  font-size: 12px;
  font-weight: 700;
}

.app-chips {
  display: flex;
  gap: 5px;
  padding: 0 12px 10px;
  overflow: hidden;
}

.app-chips span {
  flex-shrink: 0;
  padding: 5px 10px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #fff;
}

.app-chips .on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.map {
  position: relative;
  flex: 1;
  background: #ece2cd;
}

.map__roads {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map__pin {
  position: absolute;
  width: 36px;
  height: 36px;
}

.map__me {
  position: absolute;
  left: 118px;
  top: 236px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 0 7px rgb(59 130 246 / 0.22);
}

.map__ours {
  position: absolute;
  left: 140px;
  top: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 100%;
}

.map__ours img {
  width: 52px;
  height: 52px;
}

.map__label {
  margin-top: -2px;
  padding: 5px 9px;
  border: var(--stroke);
  border-radius: 10px;
  background: var(--paper);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.map__label b {
  display: block;
  font-size: 12px;
}

/* 푸시 알림 */
.push {
  position: absolute;
  top: 46px;
  left: 8px;
  right: 8px;
  z-index: 5;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 8px;
  padding: 10px 11px;
  border: var(--stroke);
  border-radius: 16px;
  background: var(--paper);
  font-size: 11px;
  line-height: 1.35;
  box-shadow: 0 5px 0 var(--ink);
}

.push img {
  border-radius: 8px;
}

.push b {
  display: block;
  font-size: 12px;
}

.push span {
  color: var(--ink-soft);
}

.push time {
  font-size: 10px;
  color: var(--mute);
}

/* 퍼지는 소문 */
.ripples i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  opacity: 0;
}

.nearby span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  padding: 6px 11px 6px 26px;
  border: var(--stroke);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
}

.nearby span::before {
  content: '⚡';
  position: absolute;
  left: 8px;
  font-size: 11px;
}

/* 이벤트 상세 */
.scr-detail {
  background: var(--paper);
}

.detail-poster {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 214px;
  padding: 48px 16px 12px;
  background: var(--butter);
  border-bottom: var(--stroke);
  background-image: radial-gradient(rgb(29 25 21 / 0.16) 1.2px, transparent 1.4px);
  background-size: 7px 7px;
}

.detail-poster .mini-poster__top,
.detail-poster .mini-poster__bot {
  font-size: 10px;
}

.detail-poster__big {
  font-size: 40px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.07em;
  color: var(--orange);
}

.detail-body {
  padding: 14px 16px;
}

.chip-cat {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--on-orange);
  font-size: 10.5px;
  font-weight: 800;
}

.chip-cat--ink {
  background: var(--ink);
}

.detail-title {
  display: block;
  margin: 6px 0 10px;
  font-size: 17px;
  letter-spacing: -0.04em;
}

.detail-body dl,
.ticket__info,
.scanner__sheet dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 12px;
  margin: 0;
  font-size: 12px;
}

.detail-body dt,
.ticket__info dt,
.scanner__sheet dt {
  color: var(--mute);
  font-weight: 600;
}

.detail-body dd,
.ticket__info dd,
.scanner__sheet dd {
  margin: 0;
  font-weight: 700;
}

.detail-cta,
.sheet-pay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 18px;
  display: grid;
  place-items: center;
  height: 46px;
  border: var(--stroke);
  border-radius: 12px;
  background: var(--orange);
  color: var(--on-orange);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 0 var(--ink);
}

.scr-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 250px;
  padding: 12px 16px;
  border-top: var(--stroke);
  border-radius: 22px 22px 0 0;
  background: var(--paper);
}

.sheet-grip {
  display: block;
  width: 40px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 4px;
  background: var(--line);
}

.sheet-opt {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 10px 12px;
  border: var(--stroke);
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
}

.qty {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--cream);
}

.sheet-total {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 13px;
}

.scr-done {
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  background: var(--paper);
  font-size: 12px;
  color: var(--ink-soft);
}

.done-emoji {
  font-size: 34px;
}

.done-title {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.done-slot {
  width: 131px;
  height: 241px;
  margin-top: 14px;
  border: 2px dashed var(--line);
  border-radius: 14px;
}

.cursor {
  z-index: 20;
  width: 34px;
  height: 34px;
  margin: 0;
  pointer-events: none;
}

/* ───────── 티켓 — 실제 앱 '내 티켓' 화면을 따른다 ───────── */
.ticket-wrap {
  width: 250px;
  height: 470px;
  filter: drop-shadow(7px 7px 0 var(--ink));
}

.ticket {
  --ny: 396px;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 12px 0;
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  -webkit-mask:
    radial-gradient(circle 13px at 0 var(--ny), #0000 97%, #000) ,
    radial-gradient(circle 13px at 100% var(--ny), #0000 97%, #000);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle 13px at 0 var(--ny), #0000 97%, #000) intersect,
    radial-gradient(circle 13px at 100% var(--ny), #0000 97%, #000);
}

/* 행사 포스터 (타이포만으로 만든 예시) */
.tk-poster {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 258px;
  padding: 14px 12px 10px;
  border-radius: 10px;
  background: var(--butter);
  background-image: radial-gradient(rgb(29 25 21 / 0.16) 1.2px, transparent 1.4px);
  background-size: 6px 6px;
  overflow: hidden;
}

.tk-poster__top,
.tk-poster__bot {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.tk-poster__bot {
  margin: 0 -12px -10px;
  padding: 6px 12px;
  background: var(--lilac);
}

.tk-poster__big {
  font-size: 46px;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.07em;
  color: var(--orange);
}

.tk-title {
  display: block;
  max-width: 100%;
  margin-top: 12px;
  font-size: 15px;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tk-title--left {
  align-self: stretch;
  margin-top: 4px;
}

.tk-addr,
.tk-date {
  max-width: 100%;
  font-size: 11px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tk-addr {
  margin-top: 4px;
}

.tk-logo {
  width: 74px;
  height: auto;
  margin-top: 10px;
}

.tk-perf {
  position: absolute;
  left: 18px;
  right: 18px;
  top: var(--ny);
  border-top: 1.5px dashed #c9c2b6;
}

.tk-foot {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--ny);
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--orange);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* QR 면 */
.ticket--qr {
  align-items: stretch;
  padding: 26px 16px 0;
  opacity: 0;
}

.qr.tk-qrcode {
  align-self: center;
  width: 164px;
  height: 164px;
  padding: 0;
  background: #fff;
}

.tk-no {
  margin-top: 18px;
  font-size: 12.5px;
  letter-spacing: -0.01em;
}

.tk-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 10px 0 0;
  font-size: 11px;
}

.tk-info dt {
  color: var(--ink-soft);
}

.tk-info dd {
  margin: 0;
}

.tk-more {
  margin-top: auto;
  margin-bottom: 92px;
  align-self: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
}

.flap {
  align-self: flex-start;
  height: 28px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.flap span {
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
}

.flap__a {
  background: var(--cream);
  color: var(--ink-soft);
  border: 1.5px solid var(--line);
  border-radius: 8px;
}

.flap__b {
  background: var(--orange);
  color: var(--on-orange);
}

.qr {
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  width: 92px;
  height: 92px;
  padding: 4px;
  background: #fff;
  border-radius: 6px;
}

.qr i {
  background: var(--ink);
}

.qr i.o {
  background: transparent;
}

/* 스탬프 */
.stamp {
  position: absolute;
  right: 4px;
  top: 64px;
  display: grid;
  place-items: center;
  align-content: center;
  width: 124px;
  height: 124px;
  border: 4px double var(--orange);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.6);
  color: var(--orange);
  font-size: 23px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  filter: url(#stamp-rough);
  opacity: 0;
  pointer-events: none;
}

.stamp small {
  display: block;
  font-size: 10px;
  font-weight: 800;
  margin-top: 3px;
  letter-spacing: 0.04em;
}

/* 뒷면: 방문자 카드 */
.ticket--back {
  --ny: 9999px;
  align-items: stretch;
  padding: 0;
  opacity: 0;
}

.vcard {
  padding: 18px 18px;
}

.vcard__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--orange);
}

.vcard__head .live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
}

.vcard__head .live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.vcard__who {
  margin-top: 10px;
}

.vcard__who b {
  display: block;
  font-size: 26px;
  letter-spacing: -0.05em;
}

.vcard__who span {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}

.vcard__rows {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.vcard__rows li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-top: 1.5px solid #ece6db;
  font-size: 11.5px;
}

.vcard__rows li > span {
  flex-shrink: 0;
  color: var(--mute);
  font-weight: 600;
}

.vcard__rows b {
  text-align: right;
  font-size: 12px;
}

.vcard__rows .tags {
  display: flex;
  gap: 4px;
}

.vcard__rows .tags i {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--butter);
  font-style: normal;
  font-size: 11px;
}

.vcard__route {
  flex-wrap: wrap;
}

.vcard__route svg {
  width: 120px;
  height: 36px;
}

.vcard__route small {
  width: 100%;
  text-align: right;
  font-size: 10px;
  color: var(--mute);
}

/* ───────── 04 스캐너 ───────── */
.scanner__screen {
  background: #2a2520;
  color: var(--cream);
}

.scanner__head {
  padding: 48px 16px 12px;
}

.scanner__head b {
  display: block;
  font-size: 18px;
}

.scanner__head span {
  font-size: 11px;
  opacity: 0.6;
}

.viewfinder {
  position: relative;
  width: 196px;
  height: 196px;
  margin: 18px auto 0;
  display: grid;
  place-items: center;
}

.vf-c {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 0 solid var(--orange);
}

.vf-c--tl { top: 0; left: 0; border-width: 4px 0 0 4px; border-radius: 10px 0 0 0; }
.vf-c--tr { top: 0; right: 0; border-width: 4px 4px 0 0; border-radius: 0 10px 0 0; }
.vf-c--bl { bottom: 0; left: 0; border-width: 0 0 4px 4px; border-radius: 0 0 0 10px; }
.vf-c--br { bottom: 0; right: 0; border-width: 0 4px 4px 0; border-radius: 0 0 10px 0; }

.qr--seen {
  width: 128px;
  height: 128px;
  opacity: 0;
}

.scanline {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 12px;
  height: 3px;
  border-radius: 3px;
  background: var(--orange);
  box-shadow: 0 0 14px 2px rgb(255 87 36 / 0.7);
  opacity: 0;
}

.scanner__sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 16px 16px;
  border-radius: 22px 22px 0 0;
  background: var(--paper);
  color: var(--ink);
}

.scanner__btn {
  display: grid;
  place-items: center;
  height: 44px;
  margin-top: 14px;
  border: var(--stroke);
  border-radius: 12px;
  background: var(--orange);
  color: var(--on-orange);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 0 var(--ink);
}

.counter {
  top: 26px;
  left: auto;
  right: 0;
  padding: 8px 14px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.counter b {
  display: inline-block;
  min-width: 1.2em;
  color: var(--orange);
  font-size: 18px;
  text-align: center;
}
