/* 웹사이트판 추가 스타일 — 기본은 ../style.css (도장 사이트와 같은 모양) */
header.top .brand { display: flex; align-items: center; gap: 10px; flex: 1; color: inherit; text-decoration: none; }
nav.menu { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
nav.menu::-webkit-scrollbar { display: none; }
nav.menu a { flex: none; padding: 6px 12px; border-radius: 99px; color: var(--ink); text-decoration: none; font-size: 15px; border: 1px solid var(--line); background: var(--card); }
nav.menu a.on { background: var(--red); color: #fff; border-color: var(--red); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 16px 0; border-top: 1px solid var(--line); }
.birth label, .namebox label { display: block; margin-bottom: 10px; font-weight: 700; font-size: 14px; }
.birth input, .birth select, .namebox input, .namebox select { width: 100%; padding: 10px; font-size: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); margin-top: 4px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.f2 > *, .f3 > *, .birth input, .birth select { min-width: 0; }   /* 좁은 폰에서 입력칸이 화면 밖으로 밀리지 않게 */
main, .card { min-width: 0; overflow-wrap: anywhere; }
.err { color: var(--red); min-height: 1em; font-size: 14px; }
.tab, .sub { display: none; }
.tab.on, .sub.on { display: block; }
.sub { border-top: 0; padding-top: 0; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.pillar { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 8px 4px; }
.pillar .h { font-size: 12px; color: var(--sub); }
.pillar .c { font-size: 28px; font-weight: 800; line-height: 1.2; }
.pillar .s { font-size: 11px; color: var(--sub); }
.bars .b { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 14px; }
.bars .b i { display: block; height: 10px; border-radius: 6px; }
.bars .b span { width: 64px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: 15px; }
.kv b { color: var(--sub); font-weight: 600; }
.score { font-size: 40px; font-weight: 800; color: var(--red); }
.cand { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cand .n { font-size: 20px; font-weight: 800; }
.cand .n small { font-size: 15px; color: var(--sub); margin-left: 6px; font-weight: 600; }
.lock { background: color-mix(in srgb, var(--gold) 14%, var(--card)); border: 1px dashed var(--gold); border-radius: 12px; padding: 12px; margin-top: 12px; font-size: 14px; }
.slots { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.slot { min-width: 64px; text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: var(--paper); cursor: pointer; }
.slot .c { font-size: 26px; font-weight: 800; }
.slot.empty .c { color: var(--sub); }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; max-height: 320px; overflow: auto; margin-top: 8px; }
.picker button { text-align: left; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); cursor: pointer; font: inherit; font-size: 12px; }
.picker button b { font-size: 22px; display: block; }
.sealrec { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.sealrec img { width: 72px; height: 96px; object-fit: cover; border-radius: 10px; }
.note { color: var(--sub); font-size: 12px; margin: 24px 0; }
.foot { font-size: 13px; color: var(--sub); padding-bottom: 40px; }
.busy { opacity: .5; pointer-events: none; }

/* ---- 해외판 (g.js) ---- */
#globalArea { display: none; }
body.gmode #globalArea { display: block; }
body.gmode #menu, body.gmode #tab-seal, body.gmode #calcArea, body.gmode header.top a.btn, body.gmode .sticky-buy { display: none !important; }
.edsw { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 99px; padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.gmenu { padding-top: 12px; align-items: center; }
.gmenu select { flex: none; padding: 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
#globalArea .card label { display: block; font-weight: 700; font-size: 14px; margin: 8px 0; }
#globalArea .card input, #globalArea .card select, #globalArea .card textarea { width: 100%; min-width: 0; padding: 10px; font-size: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); margin-top: 4px; }
#globalArea .card label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
#globalArea .card label.check input { width: auto; margin-top: 4px; }
.gtype { text-align: center; }
.gtype .emoji { font-size: 48px; }
.gtype .code { color: var(--red); font-weight: 700; }
.gseller { font-size: 12px; color: var(--sub); }
.trust { font-size: 13px; color: var(--sub); }
body.gmode .seo-links { display: none; }
.seo-links { margin: 16px 0; font-size: 14px; }
body.calc .sticky-buy { display: none; }
.lock .applink { display: block; text-align: center; margin-top: 10px; }
