:root {
  --glass: rgba(18, 28, 58, 0.62);
  --glass-strong: rgba(14, 22, 48, 0.86);
  --line: rgba(255, 255, 255, 0.18);
  --text: #f4f7ff;
  --muted: #b8c4dc;
  --red: #d63a35;
  --red-deep: #a8241f;
  --gold: #f5c84c;
  --paper: #fffaf0;
  --ink: #1c2a4a;
  --radius: 18px;
  --font-title: 'Jua', system-ui, sans-serif;
  --font-body: 'Gowun Dodum', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0b1430;
  color: var(--text);
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.hidden {
  display: none !important;
}
.muted {
  color: var(--muted);
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

/* ---------- 3D 장소 이름표 ---------- */
#labels {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.world-label {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 50% 100%;
  padding: 6px 14px 7px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  font-family: var(--font-title);
  font-size: 17px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.world-label .ico {
  margin-right: 6px;
}
.world-label .check {
  display: none;
  margin-left: 6px;
  font-style: normal;
  color: var(--gold);
}
.world-label.visited .check {
  display: inline;
}

/* ---------- HUD ---------- */
#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
#hud.capturing {
  visibility: hidden;
}
#hud button,
#hud .panel {
  pointer-events: auto;
}
.top-left,
.top-right,
.top-center {
  position: absolute;
  top: 14px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.top-left {
  left: 14px;
  flex-wrap: wrap;
  max-width: 46vw;
}
.top-right {
  right: 14px;
}
.top-center {
  left: 50%;
  transform: translateX(-50%);
  top: 66px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  font-size: 14px;
  white-space: nowrap;
}
.chip.place {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.chip.place b {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 400;
}
.chip.place span {
  font-size: 12px;
  color: var(--muted);
}
.chip.soft {
  font-size: 13px;
  border-radius: 999px;
  color: var(--muted);
}
.chip.soft b {
  color: var(--text);
}
.chip.music {
  flex-direction: column;
  gap: 0;
  min-width: 64px;
}
.chip.music .i {
  font-size: 18px;
}
.chip.music small {
  font-size: 10px;
  color: var(--muted);
}
.chip.music.off .i {
  filter: grayscale(1);
  opacity: 0.5;
}
.chip.time {
  flex-direction: column;
  gap: 0;
  min-width: 78px;
}
.chip.time small {
  font-size: 10px;
  color: var(--muted);
}
.chip.time b {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 400;
}

.panel {
  position: absolute;
  top: 80px;
  left: 14px;
  width: 260px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--glass-strong);
  border: 1px solid var(--line);
}
.panel h4 {
  margin: 0 0 8px;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 17px;
}
.panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.panel li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel li i {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--muted);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 12px;
  flex: none;
}
.panel li.done {
  color: var(--muted);
  text-decoration: line-through;
}
.panel li.done i {
  background: var(--gold);
  border-color: var(--gold);
  color: #3a2a00;
}

.prompt {
  position: absolute;
  left: 50%;
  bottom: 118px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px 12px 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #e5524c, var(--red-deep));
  box-shadow: 0 10px 28px rgba(168, 36, 31, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  font-family: var(--font-title);
  font-size: 18px;
  animation: pop 0.25s ease-out;
}
.prompt kbd {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--red-deep);
  font-family: var(--font-title);
  font-size: 16px;
}

#ride-bar {
  position: absolute;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  font-size: 14px;
  white-space: nowrap;
  pointer-events: auto;
  animation: rise 0.3s ease-out;
}
#hud.riding #ride-bar {
  display: flex;
}
#hud.riding #toolbar,
#hud.riding #hint,
#hud.riding #joystick,
#hud.riding .prompt {
  display: none !important;
}

#toolbar {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
#toolbar button {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 64px;
  padding: 8px 10px 6px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  font-size: 12px;
  position: relative;
}
#toolbar button:hover {
  background: rgba(255, 255, 255, 0.1);
}
#toolbar .i {
  font-size: 20px;
}
#hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(244, 247, 255, 0.75);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

#joystick {
  position: absolute;
  left: 24px;
  bottom: 110px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(18, 28, 58, 0.35);
  border: 2px solid var(--line);
  pointer-events: auto;
  touch-action: none;
}
#stick {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ---------- 알림 ---------- */
#toasts {
  position: fixed;
  top: 112px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  justify-items: center;
  pointer-events: none;
  z-index: 30;
}
.toast {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  font-size: 14px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s, transform 0.35s;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: none;
}
.toast small {
  color: var(--gold);
  margin-left: 4px;
}

/* ---------- 대화창 ---------- */
#dialog {
  position: fixed;
  left: 50%;
  bottom: 120px;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 32px));
  z-index: 20;
  animation: rise 0.3s ease-out;
}
.dialog-card {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  border: 3px solid #f0dcc0;
}
.dialog-icon {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 34px;
  background: #fde8e3;
}
.dialog-body h3 {
  margin: 2px 0 6px;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 20px;
  color: var(--red-deep);
}
.dialog-body p {
  margin: 0;
  line-height: 1.6;
  font-size: 15px;
}
.dialog-body .muted {
  color: #7b8599;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.dialog-card .close,
.sheet .close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
}

.btn {
  padding: 9px 16px;
  border-radius: 12px;
  border: 1.5px solid #e2d6c4;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 15px;
}
.btn:hover {
  background: #fdf3e6;
}
.btn.primary {
  border-color: transparent;
  background: linear-gradient(180deg, #e5524c, var(--red-deep));
  color: #fff;
}
.btn.primary:hover {
  filter: brightness(1.07);
}
.btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.btn.big {
  padding: 14px 34px;
  font-size: 20px;
  border-radius: 16px;
}

/* ---------- 모달 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(6, 12, 30, 0.55);
  backdrop-filter: blur(3px);
}
.sheet {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 20px 22px;
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  animation: rise 0.3s ease-out;
}
.sheet h2 {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 22px;
}
.map-sheet {
  text-align: center;
}
.map-sheet .muted {
  color: #7b8599;
  margin: 8px 0 0;
  font-size: 13px;
}
.cert-sheet {
  text-align: center;
  width: min(760px, 100%);
}
.cert-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 12px;
}
.cert-tabs button {
  flex: 1;
  max-width: 220px;
  padding: 9px 10px;
  border: 2px solid #e1d6c0;
  border-radius: 12px;
  background: #fff;
  font-family: var(--font-title);
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}
.cert-tabs button small {
  display: block;
  font-family: inherit;
  font-size: 12px;
  color: #9a7a2c;
}
.cert-tabs button.on {
  border-color: #b3261e;
  background: #fff3ef;
}
.cert-controls,
.cert-adjust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
}
.cert-adjust small {
  width: 100%;
  color: #7b8599;
}
.cert-adjust.hidden {
  display: none;
}
.cert-name input {
  width: 150px;
  margin-left: 6px;
  padding: 8px 12px;
  border: 1px solid #d6dbe6;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
}
#cert-canvas {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 12px;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  touch-action: none;
}
.cert-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.cert-promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff3ef;
  border: 1px solid #f1c9bf;
  font-size: 14px;
}
.cert-sheet .muted {
  color: #7b8599;
  margin: 8px 0 0;
  font-size: 13px;
}
#map-canvas {
  width: min(520px, 100%);
  height: auto;
  aspect-ratio: 1;
  cursor: pointer;
}

/* ---------- 편지지 ---------- */
.letter {
  position: relative;
  width: min(600px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 26px 26px 20px;
  border-radius: 20px;
  color: var(--ink);
  background:
    repeating-linear-gradient(-45deg, #d63a35 0 14px, #fffaf0 14px 22px, #2f6fb5 22px 36px, #fffaf0 36px 44px) top / 100% 8px no-repeat,
    var(--paper);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: rise 0.3s ease-out;
  user-select: text;
}
.letter .close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
}
.letter.sealing {
  animation: seal 1.1s ease-in forwards;
  pointer-events: none;
}
.letter-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-right: 30px;
}
.stamp {
  flex: none;
  width: 64px;
  height: 76px;
  display: grid;
  place-items: center;
  font-size: 36px;
  background: #fde8e3;
  border: 3px dashed #d63a35;
  border-radius: 6px;
  transform: rotate(-4deg);
}
.letter-head small {
  font-size: 11px;
  letter-spacing: 0.25em;
  color: #b3261e;
}
.letter-head h2 {
  margin: 2px 0 4px;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 23px;
}
.letter-head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}
.letter-head .deadline {
  margin-top: 4px;
  font-size: 13px;
  color: #2f6b4f;
}
.steps {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 18px 0 14px;
  counter-reset: s;
}
.steps li {
  flex: 1;
  padding: 7px 4px;
  border-radius: 10px;
  background: #f1e8da;
  color: #8b7d68;
  text-align: center;
  font-size: 13px;
  font-family: var(--font-title);
  counter-increment: s;
}
.steps li::before {
  content: counter(s) '. ';
}
.steps li.on {
  background: #d63a35;
  color: #fff;
}
.steps li.done {
  background: #e7f2ea;
  color: #2f6b4f;
}
.step {
  display: grid;
  gap: 12px;
}
.step label {
  display: grid;
  gap: 5px;
  font-size: 14px;
  font-weight: 700;
}
.step label small {
  font-weight: 400;
  color: #8b7d68;
  margin-left: 4px;
}
.step .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.step input:not([type='checkbox']),
.step select,
.step textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e2d6c4;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 400 15px var(--font-body);
  outline: none;
}
.step textarea {
  resize: vertical;
  line-height: 1.6;
  background: repeating-linear-gradient(#fff 0 calc(1.6em - 1px), #f3ead9 calc(1.6em - 1px) 1.6em) 0 10px / 100% 1.6em local;
}
.step input:focus,
.step select:focus,
.step textarea:focus {
  border-color: #d63a35;
  box-shadow: 0 0 0 3px rgba(214, 58, 53, 0.15);
}
.step .invalid {
  border-color: #d63a35 !important;
  background: #fff6f5;
}
.agree {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f7f0e4;
}
.agree .check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}
.agree input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: #d63a35;
  flex: none;
}
.agree details {
  margin-left: 26px;
  font-size: 13px;
  color: #5c6478;
}
.agree summary {
  cursor: pointer;
  color: #8b7d68;
}
.agree details ul {
  margin: 6px 0 0;
  padding-left: 16px;
  line-height: 1.6;
}
.form-error {
  min-height: 20px;
  margin: 10px 0 0;
  color: #c0262d;
  font-size: 14px;
}
.letter-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}
.letter-foot .btn {
  min-width: 110px;
}
.btn.small {
  padding: 5px 10px;
  font-size: 13px;
  border-radius: 9px;
}

/* ---------- 접수 완료 / 신청 내역 ---------- */
.done-top {
  text-align: center;
}
.done-icon {
  font-size: 52px;
  animation: pop 0.5s ease-out;
}
.done-top h2 {
  margin: 4px 0 6px;
}
.done-top p {
  margin: 0 0 14px;
}
.order-no {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px;
  border-radius: 14px;
  background: #fde8e3;
}
.order-no span {
  font-size: 13px;
  color: #8b7d68;
}
.order-no b {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #a8241f;
  user-select: all;
}
.pay {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1.5px solid #e2d6c4;
}
.pay h4 {
  margin: 0 0 8px;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 17px;
}
.pay dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  margin: 0;
  font-size: 14px;
}
.pay dt {
  color: #8b7d68;
}
.pay dd {
  margin: 0;
}
.pay p {
  margin: 8px 0 0;
  font-size: 13px;
  color: #5c6478;
}
.pay.pending {
  border-style: dashed;
}
.pay a.btn {
  display: block;
  margin-top: 12px;
  text-align: center;
  text-decoration: none;
}
.done-info {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
}
.order-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid #efe4d3;
  margin-bottom: 8px;
}
.order-card small {
  display: block;
  font-size: 12px;
  color: #8b7d68;
  font-family: ui-monospace, Consolas, monospace;
}
.order-card .meta {
  text-align: right;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e7f2ea;
  color: #2f6b4f;
  font-size: 12px;
}
.empty {
  text-align: center;
  color: #7b8599;
  line-height: 1.7;
  padding: 18px 0;
}

/* ---------- 시작 화면 ---------- */
#intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: radial-gradient(ellipse at 50% 60%, rgba(6, 12, 30, 0.15), rgba(6, 12, 30, 0.7));
  transition: opacity 0.9s;
}
#intro.leave {
  opacity: 0;
  pointer-events: none;
}
.intro-card {
  text-align: center;
  max-width: 640px;
  max-height: 100%;
  overflow-y: auto;
}
.intro-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  text-align: left;
}
.intro-features li {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(10, 18, 40, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  font-size: 13px;
  line-height: 1.5;
  color: #dfe6f5;
}
.intro-features .i {
  font-size: 22px;
  line-height: 1.2;
}
.intro-features b {
  display: block;
  color: #fff;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 15px;
}
.intro-keys {
  margin-bottom: 18px;
  font-size: 12.5px;
  color: #c9d3e8;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.intro-keys kbd {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  margin: 0 2px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.16);
  font: inherit;
}
.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
  font-size: 14px;
  line-height: 1.55;
}
.feature-list li + li {
  margin-top: 6px;
}
@media (max-width: 560px) {
  .intro-features {
    grid-template-columns: 1fr;
  }
  .intro-card h1 {
    margin: 4px 0 8px;
  }
}
.intro-sub {
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--gold);
}
.intro-card h1 {
  margin: 10px 0 12px;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(44px, 10vw, 76px);
  line-height: 1.05;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
}
.intro-card p {
  margin: 0 0 22px;
  line-height: 1.7;
  color: #e3e9f7;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.swatch-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 14px;
}
#swatches {
  display: flex;
  gap: 8px;
}
.swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.4);
  padding: 0;
}
.swatch.on {
  border-color: #fff;
  transform: scale(1.12);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

#flash {
  position: fixed;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 60;
}
#flash.go {
  animation: flash 0.5s ease-out;
}

@keyframes pop {
  from {
    transform: translateX(-50%) scale(0.85);
    opacity: 0;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 14px;
  }
}
@keyframes seal {
  40% {
    transform: scale(0.9) rotateX(25deg);
  }
  100% {
    transform: translateY(-60vh) scale(0.15) rotate(-12deg);
    opacity: 0;
  }
}
@keyframes flash {
  from {
    opacity: 0.85;
  }
  to {
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .top-left {
    max-width: 62vw;
  }
  #dday {
    display: none;
  }
  .top-center {
    display: none;
  }
  #hint {
    white-space: normal;
    width: calc(100vw - 32px);
    text-align: center;
  }
  #toolbar button {
    min-width: 50px;
    padding: 8px 6px 6px;
  }
  .letter {
    padding: 22px 16px 16px;
  }
  .step .row {
    grid-template-columns: 1fr;
  }
  .stamp {
    width: 50px;
    height: 60px;
    font-size: 28px;
  }
  #dialog {
    bottom: 104px;
  }
  .prompt {
    bottom: 104px;
  }
}

/* 접수 서버 관련 */
.letter-head .deadline.closed { color: #c62828; font-weight: 700; }
.letter .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#turnstile-box { margin-top: 12px; min-height: 0; }
#turnstile-box:empty { display: none; }
