/* 미래점방 홈 — 메인 전용. 색은 theme.css 토큰만 쓴다(hex 금지, test_palette).
   구조·문구는 /lab/redfish 시안과 동일하게 옮겼다(2026-08-24 대표 지시). */

/* 미래점방 — turings.site 모바일 테마 시안
 *
 * 8904 파스텔을 베이스로 하되 "흐릿함"을 걷어냈다.
 *   · 종이를 한 단 낮추고 글자를 한 단 올려 대비를 벌린다
 *   · 테두리를 2px 진한 갈색으로 고정하고, 그림자를 퍼지는 것 대신
 *     아래로 떨어지는 단색 단(段)으로 바꾼다 — 종이가 실제로 떠 보인다
 *   · 밴드 사이를 굵은 줄로 끊어 빈 곳이 안 생기게 한다
 */

:root {
    /* 팔레트 — 파스텔이되 한 단 진하게 */
    --red: var(--jb-red);
    --red-2: var(--jb-red-deep);
    --yellow: var(--jb-yellow);
    --mint: var(--jb-mint);
    --mint-l: var(--jb-mint-light);
    --wood: var(--jb-wood);
    --wood-2: var(--jb-wood-deep);

    --paper: var(--jb-paper);
    --paper-2: var(--jb-paper-2);
    --paper-3: var(--jb-paper-3);
    --card: var(--c-white);
    --ink: var(--jb-ink);
    --ink-2: var(--jb-ink-soft);
    --edge: var(--jb-line);
    --edge-2: var(--jb-wood);
    --outside: var(--jb-outside);

    --radius: 16px;
    --bw: 2px;
    --drop: 0 4px 0 rgb(139 94 60 / 30%);
    --drop-sm: 0 3px 0 rgb(139 94 60 / 26%);
    --lift: 0 10px 24px rgb(94 66 39 / 22%);
    --rule: 3px;
    --tabh: 74px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--outside);
    color: var(--ink);
    font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
    font-size: 16px; line-height: 1.66;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ── 폰 컬럼 ── */
.app {
    position: relative; max-width: 620px; margin: 0 auto; min-height: 100vh;
    background: var(--paper);
    box-shadow: 0 0 0 1px rgb(94 66 39 / 20%), 0 20px 60px rgb(60 40 20 / 28%);
    overflow: hidden;
}
.pad { padding: 0 18px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 14px; top: 14px; z-index: 99; background: var(--card);
    min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: var(--radius); }

/* ── 상단바 ── */
.bar {
    position: relative; z-index: 3;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 18px;
    background: var(--paper);
    border-bottom: var(--rule) solid var(--edge-2);
}
.brand { display: flex; align-items: center; gap: 9px; min-height: 44px; }
.brand i {
    width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto;
    background: radial-gradient(circle at 34% 30%, var(--c-white) 0 12%, var(--yellow) 13% 52%, var(--red) 53%);
    border: 2px solid var(--edge-2);
}
.brand b { font-family: "Gaegu", cursive; font-size: 24px; font-weight: 700; letter-spacing: .02em; }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px; padding: 0 14px;
    background: var(--yellow); color: var(--ink);
    border: var(--bw) solid var(--edge-2); border-radius: var(--radius);
    font-size: 15px; font-weight: 700; box-shadow: var(--drop-sm);
}
.icon-btn:active { transform: translateY(3px); box-shadow: none; }
.back {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
    font-size: 16px; font-weight: 700;
}

/* ── 히어로 ── */
.shopwrap { position: relative; border-bottom: var(--rule) solid var(--edge-2); background: var(--paper); }
.shopwrap > img { width: 100%; height: auto; }
.doorway { position: absolute; left: 44.43%; top: 48.02%; width: 13.00%; height: 35.37%; perspective: 900px; }
.doorway::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(120% 80% at 50% 100%, var(--jb-glow), transparent 72%),
                linear-gradient(to bottom, var(--jb-door-hi), var(--jb-door-lo));
}
.door { position: absolute; inset: 0; transform-origin: left center; backface-visibility: hidden; }
.is-open .door { animation: swing 11s ease-in-out .6s infinite both; }
@keyframes swing {
    0%, 4% { transform: rotateY(0); filter: brightness(1); }
    14%, 40% { transform: rotateY(-98deg); filter: brightness(.85); }
    52%, 100% { transform: rotateY(0); filter: brightness(1); }
}
.doorway::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: radial-gradient(80% 60% at 50% 70%, var(--jb-glow), transparent 74%);
}
.is-open .doorway::after { animation: glow 11s ease-in-out .6s infinite both; }
@keyframes glow { 0%,6%,56%,100% { opacity: 0; } 16%,42% { opacity: .6; } }

/* 간판 — 대표 지시로 키웠다 */
.sign {
    position: absolute; left: 50.2%; top: 41.6%;
    transform: translate(-50%, -50%) rotate(-.4deg);
    width: 30%; text-align: center; pointer-events: none; z-index: 2;
}
.sign span {
    display: block; font-family: "Gaegu", cursive; font-weight: 700;
    font-size: min(7.6vw, 47px); line-height: 1; letter-spacing: .01em;
    color: var(--jb-sign);
    text-shadow: 0 2px 0 rgb(74 45 22 / 90%), 0 3px 6px rgb(50 30 12 / 70%);
}

/* ── 히어로 문구 ── */
.hero-copy { text-align: center; padding: 20px 18px 0; }
.kicker {
    display: inline-flex; align-items: center; gap: 6px; font-size: 15px;
    color: var(--ink); background: var(--card);
    border: var(--bw) solid var(--edge); border-radius: 999px;
    padding: 5px 15px; box-shadow: var(--drop-sm);
}
.kicker b { color: var(--red); font-weight: 700; }
h1 {
    margin: 15px 0 0; font-family: "Gowun Dodum", serif;
    font-size: 28px; line-height: 1.34; letter-spacing: -.02em; font-weight: 700;
}
h1 em { font-style: normal; color: var(--red); }
h1 .sm { display: block; margin-top: 5px; font-size: 21px; font-weight: 400; color: var(--ink-2); }

/* ── 버튼 ── */
.btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; min-height: 58px; padding: 0 22px;
    border: var(--bw) solid var(--red-2); border-radius: 999px;
    background: var(--red); color: var(--c-white);
    font-size: 18px; font-weight: 700; box-shadow: 0 5px 0 var(--red-2), var(--lift);
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--red-2); }
.btn-2 {
    background: var(--mint-l); color: var(--ink);
    border-color: var(--edge-2); box-shadow: 0 4px 0 rgb(139 94 60 / 40%);
}
.btn-2:active { box-shadow: 0 1px 0 rgb(139 94 60 / 40%); }

/* ── 사주 기둥 ── */
.pillars-box {
    margin: 18px 18px 0; padding: 14px 12px 12px;
    background: var(--card);
    border: var(--bw) solid var(--edge-2); border-radius: var(--radius);
    box-shadow: var(--drop);
}
.pillars-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
    margin: 0 4px 10px;
}
.pillars-head b { font-family: "Gowun Dodum", serif; font-size: 17px; }
.pillars-head span { font-size: 15px; color: var(--ink-2); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.p-col { display: grid; gap: 6px; }
.p-head { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 15px; color: var(--ink-2); }
.p-head b { font-family: "Gowun Dodum", serif; color: var(--ink); }
.p-tile {
    position: relative; display: grid; place-items: center; gap: 1px;
    padding: 9px 2px 7px;
    background: var(--paper-2);
    border: var(--bw) solid var(--edge); border-radius: 10px;
    box-shadow: var(--drop-sm); opacity: 0;
}
.p-tile .g { font-family: "Gowun Dodum", serif; font-size: 26px; line-height: 1.05; }
.p-tile .r { font-size: 15px; color: var(--ink-2); }
.p-tile.is-me { border-color: var(--red); background: var(--jb-me); }
.p-tile.is-me::after {
    content: "나"; position: absolute; top: -10px; right: -7px;
    display: grid; place-items: center; min-width: 23px; height: 23px; padding: 0 5px;
    border-radius: 999px; background: var(--red); color: var(--c-white);
    font-size: 15px; font-weight: 700; line-height: 1;
    border: 2px solid var(--card);
}
.el-목 .g { color: var(--jb-el-wood); } .el-화 .g { color: var(--red-2); }
.el-토 .g { color: var(--wood-2); } .el-금 .g { color: var(--jb-el-metal); } .el-수 .g { color: var(--jb-el-water); }

/* ── 생년월일 ── */
.gate {
    margin: 14px 18px 0; padding: 15px 15px 16px;
    background: var(--card); border: var(--bw) solid var(--edge-2);
    border-radius: var(--radius); box-shadow: var(--drop);
}
.gate label { display: block; font-size: 15px; color: var(--ink-2); margin-bottom: 8px; }
.gate input {
    width: 100%; min-height: 54px; padding: 0 15px; margin-bottom: 11px;
    font-size: 18px; font-family: inherit; color: var(--ink);
    background: var(--paper); border: var(--bw) solid var(--edge); border-radius: 12px;
}
.gate input:focus { outline: none; border-color: var(--red); }

/* ── 섹션 ── */
section { padding: 34px 0 36px; }
.band { background: var(--paper-2); border-top: var(--rule) solid var(--edge-2); border-bottom: var(--rule) solid var(--edge-2); }
.band-3 { background: var(--paper-3); border-top: var(--rule) solid var(--edge-2); border-bottom: var(--rule) solid var(--edge-2); }
h2 { margin: 0 0 6px; text-align: center; font-family: "Gowun Dodum", serif;
     font-size: 25px; line-height: 1.36; letter-spacing: -.02em; font-weight: 700; }
.sub { margin: 0 0 20px; text-align: center; font-size: 15px; color: var(--ink-2); }
h2.only { margin-bottom: 20px; }

/* ── 선반 ── */
.rack { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.thing {
    display: flex; flex-direction: column; align-items: center; height: 100%;
    background: var(--card); border: var(--bw) solid var(--edge-2);
    border-radius: var(--radius); padding: 0 0 14px; box-shadow: var(--drop);
    overflow: hidden;
}
.thing:active { transform: translateY(3px); box-shadow: none; }
/* 진열칸 — 물건 그림은 흰 바닥에 띄우지 않고 종이색 무대에 앉힌다(2026-08-24 대표 선택 A안).
   그림 상자가 정사각이면 넓은 그림 위아래로 카드마다 다른 공백이 남는다.
   무대 높이를 고정해 모든 카드의 그림 자리가 같은 무게로 보이게 한다. */
.thing .stage {
    width: 100%; height: 112px; margin-bottom: 12px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, var(--paper-2), var(--paper-3));
    border-bottom: 1px solid var(--edge);
}
.thing .stage img { max-width: 78%; max-height: 86px; width: auto; object-fit: contain;
    filter: drop-shadow(0 4px 6px rgb(94 66 39 / 22%)); }
.thing h3 { margin: 0 10px 2px; font-size: 15px; font-weight: 700; text-align: center; line-height: 1.4; }
.thing .p { font-size: 15px; color: var(--ink-2); margin-bottom: 10px; }
.thing .go {
    margin: auto 10px 0; display: flex; align-items: center; justify-content: center;
    min-height: 44px; width: calc(100% - 20px); border-radius: 999px;
    background: var(--mint-l); border: var(--bw) solid var(--mint);
    font-size: 15px; font-weight: 700;
}
.thing.wide { grid-column: 1 / -1; flex-direction: row; gap: 14px; padding: 12px 14px; align-items: center; overflow: visible; }
/* 가로 카드·꾸러미는 무대를 붙박이가 아니라 타일로 쓴다 — 가로 배치에서는
   가장자리까지 채우면 글 영역과 부딪히기 때문. */
.thing.wide .stage {
    width: 108px; height: 108px; flex: 0 0 108px; margin: 0;
    border: 1px solid var(--edge); border-radius: 12px;
}
.thing.wide .stage img { max-width: 82%; max-height: 88px; }
.thing.wide .txt { flex: 1 1 auto; min-width: 0; }
.thing.wide h3 { text-align: left; margin: 0; }
.thing.wide .p { margin: 0; }
.thing.wide .go { margin: 0; width: auto; flex: 0 0 auto; padding: 0 18px; }
.plank {
    height: 15px; margin: 9px 0 22px; border-radius: 4px;
    background: linear-gradient(180deg, var(--jb-plank-hi), var(--jb-wood) 55%, var(--jb-plank-lo));
    border: 1px solid var(--jb-wood-deep); box-shadow: 0 5px 10px rgb(94 66 39 / 34%);
}
.plank.last { margin-bottom: 0; }

/* ── 묶음 ── */
.pack {
    display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 8px 15px;
    background: var(--card); border: var(--bw) solid var(--edge-2);
    border-radius: var(--radius); padding: 13px 15px; margin-bottom: 12px; box-shadow: var(--drop);
}
.pack:last-of-type { margin-bottom: 0; }
.pack .stage {
    width: 112px; height: 112px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, var(--paper-2), var(--paper-3));
    border: 1px solid var(--edge); border-radius: 12px;
}
.pack .stage img { max-width: 84%; max-height: 92px; width: auto; object-fit: contain;
    filter: drop-shadow(0 4px 6px rgb(94 66 39 / 22%)); }
.pack h3 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.4; }
.pack .p { font-size: 15px; color: var(--ink-2); }
.pack .go {
    grid-column: 1 / -1; display: flex; align-items: center; justify-content: center;
    min-height: 44px; border-radius: 999px;
    background: var(--mint-l); border: var(--bw) solid var(--mint); font-size: 15px; font-weight: 700;
}

/* ── 안내자 ── */
.guide {
    display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: end;
    margin: 0 18px;
}
.guide.big { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.guide img { width: 100%; }
.guide.big img { max-width: 230px; }
.bubble {
    position: relative; padding: 14px 16px;
    background: var(--card); border: var(--bw) solid var(--edge-2);
    border-radius: var(--radius); box-shadow: var(--drop);
    font-size: 16px; line-height: 1.7;
}
.bubble::before {
    content: ""; position: absolute; left: -9px; bottom: 22px;
    width: 14px; height: 14px; background: var(--card);
    border-left: var(--bw) solid var(--edge-2); border-bottom: var(--bw) solid var(--edge-2);
    transform: rotate(45deg);
}
.guide.big .bubble::before { display: none; }

/* ── 글 ── */
.lead { margin: 0 18px; font-family: "Gowun Dodum", serif; font-size: 22px; line-height: 1.5; font-weight: 700; }
.para { margin: 12px 18px 0; font-size: 16px; line-height: 1.8; }
.para.sub2 { color: var(--ink-2); }
.card {
    margin: 14px 18px 0; padding: 16px;
    background: var(--card); border: var(--bw) solid var(--edge-2);
    border-radius: var(--radius); box-shadow: var(--drop);
}
.card h3 { margin: 0 0 8px; font-family: "Gowun Dodum", serif; font-size: 18px; }
.card p { margin: 0; font-size: 16px; line-height: 1.75; }

/* 오행 막대 */
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 9px; font-size: 15px; }
.bar-track { height: 16px; background: var(--paper-3); border: 1px solid var(--edge); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--mint); }
.bar-row.hot .bar-fill { background: var(--red); }
.bar-row.zero .bar-fill { background: transparent; }

/* 잠긴 자리 */
.locked {
    margin: 14px 18px 0; padding: 18px 16px; text-align: center;
    background: repeating-linear-gradient(135deg, var(--paper-2), var(--paper-2) 10px, var(--paper-3) 10px, var(--paper-3) 20px);
    border: var(--bw) dashed var(--edge-2); border-radius: var(--radius);
}
.locked b { display: block; font-size: 17px; margin-bottom: 4px; }
.locked span { font-size: 15px; color: var(--ink-2); }

/* 근거 접기 */
details.basis { margin: 10px 0 0; font-size: 15px; }
details.basis summary { cursor: pointer; color: var(--ink-2); min-height: 44px; display: flex; align-items: center; }
details.basis ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); }

/* 영수증 */
.receipt { margin: 0 18px; padding: 16px; background: var(--card);
    border: var(--bw) solid var(--edge-2); border-radius: var(--radius); box-shadow: var(--drop); }
.receipt .row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 16px; }
.receipt .row + .row { border-top: 1px dashed var(--edge); }
.receipt .row.total { font-weight: 700; font-size: 18px; border-top: var(--bw) solid var(--edge-2); }

/* 보관함 */
.shelf-item {
    display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 13px;
    margin: 0 18px 11px; padding: 12px 14px;
    background: var(--card); border: var(--bw) solid var(--edge-2);
    border-radius: var(--radius); box-shadow: var(--drop-sm);
}
.shelf-item img { width: 64px; height: 64px; object-fit: contain; }
.shelf-item b { font-size: 16px; }
.shelf-item span { display: block; font-size: 15px; color: var(--ink-2); }
.shelf-item .go { font-size: 15px; font-weight: 700; color: var(--red); }

/* ── 푸터 ── */
.foot { background: var(--paper-3); border-top: var(--rule) solid var(--edge-2);
        /* 바닥 여유는 여기 한 곳 — 탭바(74px)+안전영역+빨간 + 버튼이 솟는 몫.
           .app 나 body 에 주면 푸터 밖으로 배경 띠가 샌다(AGENTS.md Web and design). */
        padding: 24px 18px calc(var(--tabh) + env(safe-area-inset-bottom, 0px) + 42px);
        font-size: 15px; color: var(--ink-2); }
.foot p { margin: 3px 0; line-height: 1.7; word-break: keep-all; }
.foot .fl { display: flex; flex-wrap: wrap; gap: 0 10px; margin: 0 0 10px; }
.foot .fl a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px;
    color: var(--ink); font-weight: 500; }

/* ── 탭바 ── */
.tabs {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 20;
    width: 100%; max-width: 620px;
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    height: calc(var(--tabh) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--paper);
    border-top: var(--rule) solid var(--edge-2);
    box-shadow: 0 -2px 0 rgb(255 255 255 / 60%) inset, 0 -12px 26px rgb(94 66 39 / 20%);
}
.tab { position: relative; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 3px; height: var(--tabh); font-size: 15px; color: var(--ink-2); }
.tab::before { content: ""; position: absolute; inset: 7px 6px 5px; border-radius: 12px; transition: .14s; }
.tab.on::before { background: var(--mint-l); border: 1px solid var(--mint);
    box-shadow: inset 0 2px 0 rgb(255 255 255 / 70%), 0 3px 0 rgb(139 94 60 / 24%); }
.tab.on { color: var(--ink); font-weight: 700; }
.tab svg, .tab span { position: relative; }
.tab svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tab:active { transform: translateY(2px); }
.tab-mid { height: var(--tabh); justify-content: flex-end; padding-bottom: 10px; }
.tab-mid .bub {
    position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
    width: 58px; height: 58px; border-radius: 50%;
    background: linear-gradient(150deg, var(--red), var(--jb-x01));
    border: 2px solid var(--red-2); color: var(--c-white);
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 2px 0 rgb(255 255 255 / 40%), 0 5px 0 var(--red-2), 0 12px 22px rgb(0 0 0 / 26%);
}
.tab-mid .bub svg { width: 26px; height: 26px; }
.tab-mid span { font-size: 15px; font-weight: 700; color: var(--red); }
.tab-mid::before { display: none; }
.tab-mid:active .bub { transform: translate(-50%, 4px); box-shadow: inset 0 2px 0 rgb(255 255 255 / 40%), 0 1px 0 var(--red-2); }

@media (max-width: 400px) {
    h1 { font-size: 25px; } h1 .sm { font-size: 19px; }
    h2 { font-size: 22px; } .lead { font-size: 20px; }
    .thing h3 { font-size: 15px; }
    .thing.wide { flex-wrap: wrap; } .thing.wide .go { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .is-open .door, .is-open .doorway::after { animation: none; }
    .p-tile { opacity: 1 !important; }
}

/* ══════════════════════════════════════════════════════════
   안내자 컷 — turings.site 의 wt-panel / wt-bubble 방식을 따랐다.
   큰 패널에 인물을 꽉 채우고, 그 아래 굵은 말풍선을 놓는다.
   소녀와 고양이가 번갈아 나온다.
   ══════════════════════════════════════════════════════════ */
.cut { margin: 0 18px; }
.cut + .cut { margin-top: 22px; }
.cut-panel {
    position: relative; overflow: hidden;
    border: var(--bw) solid var(--edge-2); border-radius: 26px;
    background: linear-gradient(180deg, var(--paper-2), var(--paper-3));
    box-shadow: var(--drop), var(--lift);
}
.cut-panel img { width: 100%; height: auto; display: block; }
/* 인물이 프레임 안에 다 들어가게. 잘라 내지 않고 둘레에 15% 여백을 둔다.
   (전에는 cover 로 잘라서 머리와 발이 잘렸다 — 대표 지적) */
.cut-panel.tight { aspect-ratio: 1 / 1; padding: 7.5%; }
.cut-panel.tight img { width: 100%; height: 100%; object-fit: contain; }

.cut-bubble {
    position: relative; margin: 16px 0 0; padding: 16px 18px;
    background: var(--card); color: var(--ink);
    border: var(--bw) solid var(--edge-2); border-radius: 20px;
    box-shadow: 0 6px 0 rgb(139 94 60 / 30%);
    font-size: 19px; font-weight: 700; line-height: 1.56;
    letter-spacing: -.02em; word-break: keep-all;
}
.cut-bubble::after {
    content: ""; position: absolute; top: -11px; left: 34px;
    width: 18px; height: 18px; background: var(--card);
    border-left: var(--bw) solid var(--edge-2); border-top: var(--bw) solid var(--edge-2);
    transform: rotate(45deg);
}
.cut.right .cut-bubble::after { left: auto; right: 34px; }
.cut-bubble small { display: block; margin-top: 6px; font-size: 15px; font-weight: 400; color: var(--ink-2); }

@media (max-width: 400px) {
    .cut-bubble { font-size: 18px; }
}

/* ══════════════════════════════════════════════════════════
   생년월일시 입력 — turings.site `/saju/` 의 wt-stage-card 구조를
   그대로 살리고 색만 우리 것으로 바꿨다.
   이름 · 달력 기준(양력/음력/윤달) · 생년월일 3칸 · 태어난 시각(십이지시) · 성별
   ══════════════════════════════════════════════════════════ */
.form-card {
    margin: 18px 18px 0; padding: 18px 16px 20px;
    background: var(--card);
    border: var(--bw) solid var(--edge-2); border-radius: 22px;
    box-shadow: var(--drop), var(--lift);
}
.form-card h2 { text-align: left; font-size: 22px; margin: 0 0 16px; }
.field { margin-bottom: 16px; }
.field:last-of-type { margin-bottom: 0; }
.field-label { display: block; font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.input {
    width: 100%; min-height: 52px; padding: 0 13px;
    font-size: 17px; font-family: inherit; color: var(--ink);
    background: var(--paper); border: var(--bw) solid var(--edge);
    border-radius: 12px;
    appearance: none;
    background-image: none;
}
select.input {
    background-image: linear-gradient(45deg, transparent 50%, var(--edge-2) 50%),
                      linear-gradient(135deg, var(--edge-2) 50%, transparent 50%);
    background-position: right 17px center, right 12px center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 32px;
}
.input:focus { outline: none; border-color: var(--red); background: var(--card); }
.date-parts { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 8px; }

/* 양력·음력 고르기 — 라디오를 알약 단추로 */
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice label {
    position: relative; display: flex; align-items: center; justify-content: center;
    min-height: 52px; border-radius: 12px;
    background: var(--paper); border: var(--bw) solid var(--edge);
    font-size: 16px; font-weight: 700; cursor: pointer;
}
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice input:checked + span { color: var(--red); }
.choice label:has(input:checked) {
    background: var(--mint-l); border-color: var(--edge-2);
    box-shadow: inset 0 2px 0 rgb(255 255 255 / 70%), var(--drop-sm);
}
.inline-check {
    display: flex; align-items: center; gap: 8px;
    min-height: 44px; margin-top: 9px; font-size: 15px; color: var(--ink-2);
}
.inline-check input { width: 20px; height: 20px; accent-color: var(--red); }
.hint { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }

/* ── 홈 마지막 — :8904 의 주인장 배치를 그대로 가져왔다.
   소녀 그림과 고양이 그림 두 장을 겹쳐 놓는다(합성본이 아니다). ── */
.owner {
    display: grid; justify-items: center; gap: 10px; text-align: center;
    margin: 0 18px; padding: 24px 20px 26px;
    background: linear-gradient(135deg, var(--mint-l), rgb(127 201 176 / 42%));
    border: var(--bw) solid var(--edge-2); border-radius: 24px;
    box-shadow: var(--drop), var(--lift);
}
.owner .fig { position: relative; width: 74%; max-width: 250px; margin-bottom: 4px; }
.owner .fig .girl { width: 100%; }
.owner .fig .cat { position: absolute; right: -15%; bottom: -1%; width: 46%; }
.owner h2 { margin: 6px 0 8px; }
.owner p { margin: 0; font-size: 16px; color: var(--ink-2); }

/* ── 본문 컷은 작게. 프레임 안에 다 들어오게 ── */
.cut.sm .cut-panel { max-width: 240px; margin-inline: auto; aspect-ratio: 3 / 4; padding: 7.5%; }
.cut.sm .cut-bubble { font-size: 18px; }

/* ── 홈 히어로의 생년월일 — turings.site 히어로와 같은 연/월/일 세 칸 ── */
.hero-birth {
    margin: 18px 18px 0; padding: 16px 15px 18px;
    background: var(--card); border: var(--bw) solid var(--edge-2);
    border-radius: 20px; box-shadow: var(--drop), var(--lift);
}
.hero-birth .field-label { text-align: left; }

/* ══ 메인 전용 보강 — hub 직조와 카드 낙하 모션 ══ */
.status {
    margin: 0 0 14px; text-align: center;
    font-size: 15px; color: var(--ink-2);
}
.shelf-flow .rack + .plank { margin-top: 9px; }
.thing.is-soon { border-style: dashed; }
.thing.is-soon img { opacity: .88; }
.go.is-soon { background: var(--paper-2); border-color: var(--edge); color: var(--ink-2); }

/* 카드가 위에서 떨어져 자리를 잡는다 — hub 의 dropCards 가 .is-in 을 켠다 */
.js-motion .thing, .js-motion .pack {
    opacity: 0; transform: translateY(-14px);
    transition: opacity .4s ease, transform .45s cubic-bezier(.22,.9,.34,1.1);
}
.js-motion .thing.is-in, .js-motion .pack.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .js-motion .thing, .js-motion .pack { opacity: 1; transform: none; transition: none; }
}

/* shell.js 가 site-footer 에 주입하는 낙관 줄 */
.foot .footer-seal, .foot [data-footer-seal] { margin-top: 8px; font-size: 15px; color: var(--ink-2); }

/* ══ 간격 손질 (2026-08-24 대표 지시 — 붙은 요소 벌리기. 문구 불변) ══ */

/* 생년월일 카드 — 셀렉트 줄과 버튼이 0px 로 붙어 있었다.
   원인: `.gate input` 은 태그 선택자라 <select> 에 여백 규칙이 아예 없었다. */
.gate { padding: 18px 16px; }
.gate label { margin-bottom: 10px; }
.gate .date-parts { margin-bottom: 14px; }

/* 마무리 — 이식 때 .closing 블록이 통째로 빠져 lead→버튼이 0px 였다 */
.closing { text-align: center; }
.closing .shout {
    margin: 0 0 8px; font-family: "Gaegu", cursive;
    font-size: 33px; line-height: 1.28; font-weight: 700;
    color: var(--red); letter-spacing: .01em;
}
.closing .lead {
    margin: 0 0 24px; font-family: "Gowun Dodum", serif;
    font-size: 23px; line-height: 1.42; font-weight: 700; color: var(--ink);
}
@media (max-width: 400px) {
    .closing .shout { font-size: 29px; }
    .closing .lead { font-size: 20px; }
}

/* 푸터 — shell.js 가 40개 페이지에 넣는 낙관 줄·연락처 줄이 여기도 들어오게
   (.footer-inner 래퍼는 index.html 에 추가). 정적 연락처 줄은 중복이라 뺐다. */
.foot .footer-seal {
    display: flex; align-items: center; gap: 8px;
    margin: 2px 0 10px; font-size: 16px; color: var(--ink);
}
.foot .footer-seal img { display: none; }
.foot .footer-seal b { font-family: "Gaegu", cursive; font-size: 22px; }
.foot .footer-contact { margin-top: 10px; }
.foot .footer-contact a { color: var(--ink-2); text-decoration: none; }
.foot .footer-contact span { margin: 0 5px; }

/* KB 에스크로 마크 — shell 이 주입한다. base.css 를 안 싣는 화면이라 여기서 입힌다
   (base.css 의 .kb-escrow-* 규칙을 우리 토큰으로 옮긴 것). */
.kb-escrow-mark { flex: 0 0 auto; margin-top: 12px; }
.kb-escrow-button {
    display: inline-flex; min-height: 76px; padding: 8px 14px 8px 8px;
    border: var(--bw) solid var(--edge); border-radius: 12px;
    align-items: center; gap: 10px;
    color: var(--ink); background: var(--card);
    font: inherit; text-align: left; cursor: pointer;
    box-shadow: var(--drop-sm);
}
.kb-escrow-button img { width: 58px; height: 58px; object-fit: contain; }
.kb-escrow-button span { display: grid; gap: 3px; }
.kb-escrow-button b { font-size: 15px; }
.kb-escrow-button small { font-size: 15px; color: var(--ink-2); }

/* ══ 히어로 세로 호흡 (2026-08-24 대표 2차 지적 — 킥커·제목·카드가 촘촘하다) ══ */
.hero-copy { padding: 26px 18px 0; }
.hero-copy h1 { margin-top: 18px; }
h1 .sm { margin-top: 9px; }
.gate { margin: 24px 18px 0; padding: 20px 18px 22px; }  /* 아래 간격은 섹션 padding 이 진다 — 마진 탈출로 애매해지지 않게 */
.gate label { margin-bottom: 12px; }
.gate .date-parts { margin-bottom: 18px; }
.gate .date-parts { gap: 10px; }

/* 화면 전체 리듬도 반 단 올린다 — 섹션과 선반이 같이 갑갑해 보이지 않게 */
section { padding: 36px 0 40px; }
h2 { margin-bottom: 6px; }
.sub { margin-bottom: 22px; }
.rack { gap: 12px; }

/* ══ 3차 지적은 가운데 정렬이었으나 2026-08-24 대표가 왼쪽을 골랐다.
   줄 길이가 제각각인 사업자 블록은 가운데 두면 양쪽이 다 들쭉날쭉해진다.
   사업자 줄만 빼면 링크·낙관과 어긋나므로 푸터 전체를 왼쪽으로 통일. ══ */
.foot { text-align: left; }
.foot .fl { justify-content: flex-start; }
.foot .fl a:first-child { padding-left: 0; }
.foot .footer-seal { justify-content: flex-start; }
.foot .kb-escrow-mark { display: flex; justify-content: flex-start; }

/* ══ 카드 제목·가격 키우기 (2026-08-24 대표 지시) ══
   커진 글자가 좁은 카드에서 아무 데서나 꺾이지 않게 — 꺾일 이름은 hub 가
   <br> 로 자리를 미리 정하고, 나머지는 keep-all 로 낱말 단위로만 꺾인다. */
.thing h3 {
    font-size: 18px; line-height: 1.32;
    word-break: keep-all; min-height: calc(1.32em * 1);
}
.thing .p { font-size: 17px; font-weight: 700; color: var(--ink); }
.thing.is-soon .p { color: var(--ink-2); }
.pack h3 { font-size: 18px; word-break: keep-all; }
.pack .p { font-size: 17px; font-weight: 700; color: var(--ink); }
@media (max-width: 400px) {
    .thing h3 { font-size: 17px; }
    .pack h3 { font-size: 17px; }
}
