/* 개발자 버전 — 터미널 */
:root {
  --bg: #050a07; --fg: #c7e8d1; --panel: #0b120e; --line: #16261c; --line-2: #1f5a38;
  --green: #4ade80; --dim: #6f9a7f; --dim2: #3f7a55; --blue: #60a5fa; --yellow: #fbbf24; --pink: #f472b6; --red: #f87171;
  --mono: 'JetBrains Mono', 'Nanum Gothic Coding', ui-monospace, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scrollbar-color: var(--line-2) var(--bg); }
body { margin: 0; min-height: 100svh; display: flex; justify-content: center; background: var(--bg); color: var(--fg); font: 400 12.5px / 1.75 var(--mono); -webkit-font-smoothing: antialiased; }
::selection { background: var(--green); color: var(--bg); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.c-green { color: var(--green); } .c-dim { color: var(--dim); } .c-dim2 { color: var(--dim2); } .c-blue { color: var(--blue); } .c-yellow { color: var(--yellow); } .c-pink { color: var(--pink); } .c-red { color: var(--red); }
.sm { font-size: 11px; }
[hidden] { display: none !important; }

.term { width: 100%; max-width: 430px; min-height: 100svh; position: relative; }
.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px 12px; background: var(--panel); border-bottom: 1px solid var(--line); }
.bar__dot { width: 10px; height: 10px; border-radius: 50%; }
.bar__dot--r { background: #ff5f57; } .bar__dot--y { background: #febc2e; } .bar__dot--g { background: #28c840; }
.bar__title { margin-left: 8px; color: var(--dim); font-size: 11px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar__hint { flex: none; margin-left: auto; font-size: 11px; color: var(--dim2); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.bar__ff { color: var(--green); opacity: .35; transition: opacity .15s; }
.term.is-fast .bar__ff { opacity: 1; animation: ffBlink .3s steps(1) infinite; }
@keyframes ffBlink { 50% { opacity: .3; } }
.term.is-booting { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }

.boot { padding: 16px 14px 0; display: flex; flex-direction: column; gap: 2px; }
.boot__line { white-space: pre-wrap; word-break: break-all; animation: lineIn .18s ease-out both; }
@keyframes lineIn { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }
.prompt { padding: 2px 14px 40px; }
.prompt[hidden] { display: none; }
.cursor { display: inline-block; width: 8px; height: 14px; background: var(--green); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.cursor--sm { width: 6px; height: 11px; vertical-align: -1px; background: var(--dim2); }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.body { padding: 0 14px 40px; display: flex; flex-direction: column; gap: 28px; animation: fadeUp .5s ease-out both; }
.body[hidden] { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.blk { display: flex; flex-direction: column; gap: 6px; animation: fadeUp .5s ease-out both; }
.blk:nth-child(2) { animation-delay: .08s; } .blk:nth-child(3) { animation-delay: .16s; } .blk:nth-child(4) { animation-delay: .24s; } .blk:nth-child(5) { animation-delay: .32s; } .blk:nth-child(6) { animation-delay: .4s; } .blk:nth-child(7) { animation-delay: .48s; } .blk:nth-child(8) { animation-delay: .56s; } .blk:nth-child(9) { animation-delay: .64s; }
.cmd { margin: 0; }
.cmt { color: var(--dim2); font-size: 11px; }
.cmt--dark { color: rgba(26, 26, 26, .65); }
.col { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }
.row--wrap { flex-wrap: wrap; }
.row--wrap > * { flex: 1 1 calc(50% - 4px); }

/* weddingfetch */
.fetch { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.fetch__art { margin: 0; font: 400 10px / 1.15 var(--mono); color: var(--pink); white-space: pre; }
.fetch__art--beat { transform-origin: 50% 55%; animation: heartbeat 1.3s ease-in-out infinite; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.1); } 28% { transform: scale(1); } 42% { transform: scale(1.06); } 56% { transform: scale(1); } }
.live { position: relative; display: inline-block; width: 9px; height: 9px; margin: 0 4px 0 1px; border-radius: 50%; background: var(--green); vertical-align: 0; }
.live::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 1px solid var(--green); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.beat { display: inline-block; animation: beat 1s ease-in-out infinite; transform-origin: center; }
@keyframes beat { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.35); } 40% { transform: scale(1); } 60% { transform: scale(1.2); } }
.boot__cmd .typed { color: var(--green); }
.boot__cmd .cursor { margin-left: 1px; }
.boot__bar { color: var(--fg); }
.boot__bar b { color: var(--green); font-weight: 400; }
.fetch__rule { color: #3a5a45; }
.kv { margin: 0; display: grid; grid-template-columns: 4.5em 1fr; column-gap: 4px; }
.kv dt { color: var(--blue); }
.kv dt::after { content: ':'; color: var(--fg); float: right; }
.kv dd { margin: 0; word-break: keep-all; }

/* greeting */
.quote { padding: 14px 16px; border-left: 2px solid var(--line-2); display: flex; flex-direction: column; gap: 12px; text-wrap: pretty; }
.quote p { margin: 0; }

/* gallery */
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gal__slot { aspect-ratio: 1; border: 1px dashed var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--dim2); font-size: 10px; overflow: hidden; }
.gal__slot span { font-size: 16px; }
.gal__slot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; max-width: 300px; text-align: center; }
.cal__dow { color: var(--dim); }
.cal__d { color: var(--fg); }
.cal__d--wed { background: var(--green); color: var(--bg); font-weight: 600; border-radius: 2px; animation: calGlow 2.2s ease-in-out infinite; }
@keyframes calGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } 50% { box-shadow: 0 0 0 5px rgba(74, 222, 128, .22); } }
.cal__d--sun { color: var(--red); } .cal__d--sat { color: var(--blue); }

/* venue */
.json { margin: 0; white-space: pre-wrap; word-break: break-all; font: inherit; }
.map { position: relative; height: 200px; border: 1px dashed var(--line-2); overflow: hidden; background: radial-gradient(60% 60% at 50% 45%, #0b1a11, transparent); }
.map__fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--dim); font-size: 11px; }
.map__frame { position: relative; z-index: 1; display: block; width: 100%; height: 100%; border: 0; filter: saturate(.7) contrast(1.05); }
.map__naver { position: absolute !important; inset: 0; width: 100%; height: 100%; z-index: 2; filter: saturate(.75) contrast(1.05); }
.map__naver[hidden] { display: none !important; }
/* 지도 마커: 터미널 라벨 + 핑 링 */
.nvmk { width: 240px; height: 64px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: inherit; }
.nvmk__lbl { padding: 4px 9px; background: rgba(5, 10, 7, .94); border: 1px solid var(--green); color: var(--fg); font-size: 12px; line-height: 1.3; white-space: nowrap; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .8); }
.nvmk__pin { position: relative; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(5, 10, 7, .88); font-size: 22px; line-height: 1; color: var(--green); text-shadow: 0 0 8px var(--green); }
.nvmk__pin::before, .nvmk__pin::after { content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px; border-radius: 50%; border: 1px solid var(--green); animation: ping 2.4s ease-out infinite; }
.nvmk__pin::after { animation-delay: 1.2s; }
.map__pin { position: relative; font-size: 22px; line-height: 1; color: var(--green); }
.map__pin::before, .map__pin::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; border-radius: 50%; border: 1px solid var(--green); animation: ping 2.4s ease-out infinite; }
.map__pin::after { animation-delay: 1.2s; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; border: 1px solid var(--line-2); background: none; color: var(--green); font-size: 12px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, transform .1s; }
.btn:hover { background: var(--panel); }
.btn:active { transform: scale(.98); }
.btn--sm { padding: 4px 8px; font-size: 11px; }
.btn--sm:hover { background: var(--line-2); color: #fff; }
.btn--fill { background: var(--line-2); color: #e6f5ea; }
.btn--fill:hover { background: #27704a; }
.btn--kakao { background: #f9e000; border-color: #f9e000; color: #1a1a1a; font-weight: 600; }
.btn--kakao:hover { filter: brightness(.95); background: #f9e000; }
.btn.is-done { color: var(--yellow); border-color: var(--yellow); }

/* accounts */
.panel { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); }
.panel__l { display: flex; flex-direction: column; min-width: 0; word-break: break-all; }
.panel__l > :first-child { font-size: 11px; }

/* guestbook */
.log__entry { padding: 8px 12px; border-left: 2px solid var(--pink); background: var(--panel); word-break: break-word; animation: lineIn .25s ease-out both; }
.form { margin-top: 6px; }
.row--in { align-items: center; gap: 6px; }
.row--in > span { flex: none; }
.form input, .form textarea { width: 100%; padding: 6px 8px; background: var(--panel); border: 1px solid var(--line); color: var(--fg); font-size: 12px; border-radius: 0; }
.form textarea { display: block; padding: 8px; resize: none; }
.form input::placeholder, .form textarea::placeholder { color: var(--dim2); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--line-2); }

.link { color: var(--green); font-size: 11px; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); translate: -50% 0; max-width: calc(100% - 32px); padding: 8px 12px; background: var(--panel); border: 1px solid var(--line-2); color: var(--green); font-size: 11px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .25s, transform .3s; z-index: 20; }
.toast.is-show { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .cursor, .boot__line, .body, .log__entry, .blk, .fetch__art--beat, .live::after, .cal__d--wed, .map__pin::before, .map__pin::after, .term.is-fast .bar__ff { animation: none; }
}
