/* 별빛 상회: 가게 안·지도는 픽셀 그림(캔버스), 창·버튼·HUD 는 다른 Leapinity 게임과 같은 키트 모양 (흰 둥근 카드·분홍→보라) */
:root { --bs: var(--kit-btn-scale, 1); --fs: 1; --ink: #2f3550; --muted: #7a809c; --accent: #8b7cf6; --pink: #ff8fb8; --good: #1f9d63; --bad: #d9486b; --warn: #d97a2b; --gold: #f5a524; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; }
body { font-family: "Pretendard Variable", "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; background: #141a33; color: var(--ink); word-break: keep-all; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.hidden { display: none !important; }
button { font-family: inherit; }

#stage { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse 70% 60% at 50% 40%, #1f2850 0%, #12172e 100%); }
#cv { display: block; image-rendering: pixelated; touch-action: none; border-radius: 6px; }

/* 위쪽 줄 (게임 이름 · 계정 칩 · 설정) */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 9060; display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top) + 10px) calc(env(safe-area-inset-right) + 14px) 8px calc(env(safe-area-inset-left) + 14px); pointer-events: none; }
.top > * { pointer-events: auto; }
.top h1 { margin: 0; font-size: 16px; font-weight: 900; color: #fff; padding: 7px 14px; border-radius: 99px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); letter-spacing: -.3px; }
#accountSlot { margin-left: auto; }
body.night .top, body.boot .top { display: none; }
.round { width: max(44px, calc(40px * var(--bs))); height: max(44px, calc(40px * var(--bs))); flex: none; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #5b5f86; font-size: calc(17px * var(--bs)); font-weight: 900; box-shadow: 0 4px 12px rgba(10, 10, 40, .25); cursor: pointer; display: grid; place-items: center; padding: 0; }
.round.wide { width: auto; padding: 0 12px; border-radius: 99px; font-size: calc(14px * var(--bs)); }
.round:active { transform: scale(.94); }
/* 손가락으로 누르는 기기: 판 중 단추는 44px 이상 (모든 미니게임 같은 규칙) */
@media (pointer: coarse) { .hud-btns .round { width: max(44px, calc(44px * var(--bs))); height: max(44px, calc(44px * var(--bs))); } .hud-btns .round.wide { width: auto; } }

/* 첫 화면 */
.screen { position: fixed; inset: 0; z-index: 10; }
#home { display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 64px) 16px calc(env(safe-area-inset-bottom) + 14px); pointer-events: none; }
#home > * { pointer-events: auto; }
.hero { text-align: center; pointer-events: none !important; }
.title-word { margin: 6px auto 4px; font-size: 54px; font-weight: 900; line-height: 1.1; letter-spacing: -1.5px; color: #ffe08a; text-shadow: 0 0 22px rgba(255, 200, 90, .45), 0 4px 0 #8a4d2a; animation: bob 2.6s ease-in-out infinite; }
.title-sub { margin: 0 auto 10px; font-size: 15px; font-weight: 800; color: #d9dcf5; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
@keyframes bob { 50% { transform: translateY(-5px); } }
.best { margin: 0 auto; display: inline-block; padding: 6px 14px; border-radius: 99px; background: rgba(255, 255, 255, .9); font-weight: 800; font-size: 14px; color: #8b5cf6; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.best:empty { display: none; }
.spacer { flex: 1; min-height: 12px; pointer-events: none !important; }
.panel { width: 100%; max-width: 440px; margin: 0 auto; padding: 14px; border-radius: 24px; background: rgba(255, 255, 255, .94); border: 1px solid #ece8f4; box-shadow: 0 14px 40px rgba(0, 0, 0, .3); display: grid; gap: 8px; max-height: 62vh; overflow-y: auto; }
.big { min-height: 44px; padding: calc(13px * var(--bs)) 12px; border-radius: calc(16px * var(--bs)); border: 0; font: inherit; font-weight: 900; font-size: calc(16px * var(--bs)); cursor: pointer; transition: transform .1s; line-height: 1.3; }
.big:active { transform: scale(.97); }
.big small { display: block; font-size: 12.5px; font-weight: 700; opacity: .9; }
.big.primary { color: #fff; background: linear-gradient(135deg, #ff8fb8, #8b7cf6); box-shadow: 0 8px 20px rgba(139, 124, 246, .32); font-size: calc(18px * var(--bs)); }
.big.ghost { background: #fff; color: var(--accent); border: 1.5px solid #e4def5; }
.howto { border-radius: 16px; background: #faf8ff; border: 1px solid #ece8f4; padding: 8px 12px; }
.howto summary { cursor: pointer; font-weight: 900; font-size: 14px; color: #5b5f86; padding: 2px 0; }
.howto ul { margin: 6px 0 2px; padding-left: 18px; font-size: 13.5px; line-height: 1.6; color: #565c7c; }

/* 밤 HUD (키트 알약 모양) */
.hud { position: fixed; top: 0; left: 0; right: 0; z-index: 20; padding: calc(env(safe-area-inset-top) + 8px) calc(env(safe-area-inset-right) + 10px) 0 calc(env(safe-area-inset-left) + 10px); display: grid; gap: 6px; pointer-events: none; font-size: calc(14px * var(--fs)); }
.hud-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.hud-row.small { font-size: .9em; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 7px; border-radius: 99px; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 12px rgba(10, 10, 40, .25); font-weight: 800; color: #3d4266; white-space: nowrap; }
.chip img { width: 20px; height: 20px; image-rendering: pixelated; }
.chip b { font-weight: 900; color: #2f3550; }
.chip.gold b { color: #b86b00; }
.chip.goal { position: relative; overflow: hidden; }
.chip.goal i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #ece8f4; }
.chip.goal em { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff8fb8, #8b7cf6); transition: width .3s; }
.hud-btns { margin-left: auto; display: flex; gap: 6px; pointer-events: auto; }
.flash { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 92px); transform: translateX(-50%); z-index: 25; max-width: min(92vw, 640px); padding: 9px 18px; border-radius: 99px; background: rgba(255, 255, 255, .95); color: #3d2f7a; font-weight: 900; font-size: calc(15px * var(--fs)); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); text-align: center; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
.flash.on { opacity: 1; transform: translateX(-50%) translateY(4px); }
.flash.bad { color: #b4234d; }
.hint { position: fixed; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 6px); z-index: 20; margin: 0; text-align: center; color: rgba(230, 234, 255, .85); font-size: calc(13px * var(--fs)); font-weight: 700; text-shadow: 0 1px 4px #000; pointer-events: none; padding: 0 12px; }

/* 창 (키트 kit-modal/kit-sheet 모양 그대로, 여러 장 겹침) */
#layer { position: fixed; inset: 0; z-index: 9050; pointer-events: none; font-size: calc(15px * var(--fs)); }
#layer .ns-modal { z-index: 1; position: fixed; inset: 0; display: grid; place-items: center; padding: calc(env(safe-area-inset-top) + 10px) 12px calc(env(safe-area-inset-bottom) + 10px); background: rgba(14, 12, 40, .5); backdrop-filter: blur(3px); pointer-events: auto; }
#layer .ns-modal.over { z-index: 3; }
body:not(.night) #layer .ns-modal { padding-top: calc(env(safe-area-inset-top) + 60px); }
#layer .ns-sheet { position: relative; width: 100%; max-width: 560px; max-height: 100%; overflow-y: auto; padding: 20px 18px; border-radius: 24px; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); animation: kitUp .22s ease-out; }
#layer .ns-sheet.wide { max-width: 940px; }
#layer .ns-sheet.mid { max-width: 700px; }
#layer .ns-head { text-align: center; margin-bottom: 10px; }
#layer .ns-head h2 { margin: 0; font-size: 1.45em; font-weight: 900; letter-spacing: -.5px; background: linear-gradient(90deg, #ff6fa3, #7c6cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
#layer .ns-head p { margin: 4px 0 0; color: var(--muted); font-size: .9em; font-weight: 700; }
#layer .ns-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f3f0ff; color: #7a73b8; font-weight: 900; cursor: pointer; font-size: 15px; }
#layer .ns-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); } /* 닫기 ✕ 누르는 칸 44px (보이는 크기는 그대로, 2026-11-07) */
#layer .kit-btn { font-size: 1em; }
#layer .kit-btn.small { font-size: .87em; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 4px 0 10px; }
.fact { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 99px; background: #f3f0ff; font-weight: 800; font-size: .92em; color: #4a4f78; }
.fact img { width: 20px; height: 20px; image-rendering: pixelated; }
.fact.gold { background: #fff3d1; color: #9a5b00; }
.fact.warn { background: #ffe9e1; color: #b4502a; }
.fact.good { background: #e3f7ec; color: #1d7a4c; }
.pix { image-rendering: pixelated; }

/* 낮 준비 */
.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.act { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 16px; border: 1.5px solid #ece8f4; background: #faf9ff; cursor: pointer; text-align: left; font: inherit; color: var(--ink); min-width: 0; }
.act img { width: 28px; height: 28px; image-rendering: pixelated; flex: none; }
.act b { display: block; font-size: 1em; }
.act small { display: block; color: var(--muted); font-weight: 700; font-size: .82em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act:active { transform: scale(.98); }
.rows { display: grid; gap: 6px; }
.prow { display: grid; grid-template-columns: 34px minmax(70px, 1.1fr) minmax(118px, 1fr) minmax(130px, 1fr) minmax(90px, .9fr); align-items: center; gap: 8px; padding: 7px 10px; border-radius: 16px; background: #faf9ff; border: 1px solid #efecf8; border-left: 5px solid var(--pc, #ccc); }
.prow .pic { width: 30px; height: 30px; image-rendering: pixelated; }
.prow .nm b { display: block; font-weight: 900; }
.prow .nm small { color: var(--muted); font-weight: 700; font-size: .82em; }
.prow .info { font-size: .84em; font-weight: 800; line-height: 1.35; }
.prow .info .up { color: var(--good); } .prow .info .down { color: var(--bad); }
.step { display: grid; gap: 2px; }
.step > small { font-size: .74em; color: var(--muted); font-weight: 800; }
.stepper { display: flex; align-items: center; border-radius: 12px; background: #fff; border: 1.5px solid #e4def5; overflow: hidden; }
.stepper button { width: calc(44px * var(--bs)); height: calc(44px * var(--bs)); border: 0; background: #f3f0ff; color: #7c6cf6; font-weight: 900; font-size: 18px; cursor: pointer; flex: none; }
.stepper button:active { background: #e6e0ff; }
.stepper input { width: 100%; min-width: 0; border: 0; text-align: center; font: inherit; font-weight: 900; font-size: 1em; color: var(--ink); background: transparent; padding: 0; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.lines { margin: 10px 0 0; display: grid; gap: 4px; font-weight: 800; font-size: .9em; }
.lines .ok { color: var(--good); } .lines .warn { color: var(--warn); } .lines .bad { color: var(--bad); } .lines .info { color: #4a4f78; }
.ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 4px; padding: 10px 12px; border-radius: 16px; background: #f6f4ff; font-weight: 800; font-size: .92em; }
.ctrl label { display: inline-flex; align-items: center; gap: 6px; }
.ctrl select { min-height: 44px; font: inherit; font-weight: 800; padding: 5px 8px; border-radius: 10px; border: 1.5px solid #e4def5; background: #fff; color: var(--ink); }
.ctrl input[type=range] { width: min(240px, 40vw); accent-color: #8b7cf6; }
.ctrl .tv { color: #6b4fd8; }
.seg { display: inline-flex; border-radius: 12px; overflow: hidden; border: 1.5px solid #e4def5; }
.seg button { min-height: 44px; min-width: 44px; border: 0; background: #fff; padding: 6px 11px; font-weight: 800; cursor: pointer; color: #6b6f92; font-size: .95em; }
.seg button.on { background: linear-gradient(135deg, #ff8fb8, #8b7cf6); color: #fff; }
.startbar { position: sticky; bottom: -20px; margin: 8px -18px -20px; padding: 10px 18px 14px; background: linear-gradient(transparent, #fff 30%); }
.startbar .kit-btn { width: 100%; }

/* 정산 · 신문 · 성적표 줄 */
.ledger { display: grid; gap: 3px; }
.ledger .sec { margin-top: 8px; padding: 4px 10px; border-radius: 10px; background: #f3f0ff; color: #6b4fd8; font-weight: 900; font-size: .86em; }
.ledger .row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 10px; font-weight: 700; }
.ledger .row b { font-variant-numeric: tabular-nums; }
.ledger .row b.up { color: var(--good); } .ledger .row b.down { color: var(--bad); }
.ledger .note { padding: 2px 10px; color: #5b5f86; font-size: .9em; font-weight: 700; }
.ledger .key { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 16px; background: linear-gradient(135deg, #fff4d6, #ffe5ef); font-weight: 900; font-size: 1.15em; }
.ledger .key b.up { color: var(--good); } .ledger .key b.down { color: var(--bad); }
.ledger .total { margin-top: 6px; padding: 8px 12px; border-radius: 14px; background: #f6f4ff; font-weight: 900; text-align: center; }
.ledger .rep { padding: 6px 10px; font-weight: 800; color: #8b4fc0; }
.ledger .rec { padding: 4px 10px; font-weight: 800; color: #b86b00; text-align: center; }
.goldline { margin: 8px 0 0; text-align: center; font-weight: 900; color: #b86b00; }

/* 가게 고르기 */
.picks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pick { display: grid; gap: 6px; padding: 12px; border-radius: 18px; border: 1.5px solid #ece8f4; background: #faf9ff; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.pick:hover { border-color: #c9bdfb; }
.pick:active { transform: scale(.98); }
.pick .ph { display: flex; align-items: center; gap: 8px; }
.pick .ph img { width: 40px; height: 40px; image-rendering: pixelated; }
.pick .ph b { font-size: 1.2em; font-weight: 900; }
.pick .goods { display: flex; gap: 3px; }
.pick .goods img { width: 24px; height: 24px; image-rendering: pixelated; }
.pick small { color: var(--muted); font-weight: 700; line-height: 1.45; }
.pick .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.pick .tags span { padding: 2px 8px; border-radius: 99px; background: #fff; border: 1px solid #ece8f4; font-size: .78em; font-weight: 800; color: #5b5f86; }

/* 홍보 */
.promos { display: grid; gap: 8px; }
.promo { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; border: 1.5px solid #ece8f4; background: #faf9ff; cursor: pointer; font: inherit; text-align: left; color: var(--ink); }
.promo .ck { width: 24px; height: 24px; border-radius: 8px; border: 2px solid #c9bdfb; flex: none; display: grid; place-items: center; color: #fff; font-weight: 900; }
.promo.on { border-color: #8b7cf6; background: #f3f0ff; }
.promo.on .ck { background: linear-gradient(135deg, #ff8fb8, #8b7cf6); border-color: transparent; }
.promo:disabled { opacity: .45; cursor: default; }
.promo b { display: block; } .promo small { color: var(--muted); font-weight: 700; }
.promo .pc { margin-left: auto; font-weight: 900; color: #b86b00; white-space: nowrap; }

/* 지도 */
.mapwrap { display: grid; grid-template-columns: auto minmax(240px, 1fr); gap: 12px; align-items: start; }
.mapbox { border-radius: 14px; overflow: hidden; line-height: 0; background: #0e1c33; box-shadow: inset 0 0 0 2px #e4def5; }
.mapbox canvas { cursor: pointer; touch-action: manipulation; image-rendering: pixelated; }
.side { display: grid; gap: 8px; align-content: start; min-width: 0; }
.side h3 { margin: 0; font-size: 1.1em; font-weight: 900; }
.side .state { display: inline-block; padding: 3px 10px; border-radius: 99px; font-weight: 900; font-size: .85em; background: #f3f0ff; color: #6b4fd8; justify-self: start; }
.side .state.warn { background: #ffe9e1; color: #b4502a; } .side .state.gold { background: #fff3d1; color: #9a5b00; } .side .state.cyan { background: #dff7f4; color: #11786a; }
.side .detail { white-space: pre-line; font-size: .9em; line-height: 1.55; color: #4a4f78; font-weight: 600; }
.side .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.side .btns .kit-btn { padding: 9px 8px; font-size: .86em; line-height: 1.3; }
.side .btns .wide2 { grid-column: span 2; }
.types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.types button { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; border: 1.5px solid #ece8f4; background: #fff; font: inherit; font-weight: 800; font-size: .78em; cursor: pointer; color: var(--ink); }
.types button img { width: 28px; height: 28px; image-rendering: pixelated; }
.types button.on { border-color: #8b7cf6; background: #f3f0ff; }
.legend { font-size: .8em; color: var(--muted); font-weight: 700; }
.mapinfo { text-align: center; font-weight: 800; color: #4a4f78; font-size: .9em; margin: -4px 0 8px; }

/* 신문 */
.paper { background: #f5f0db; border-radius: 16px; padding: 14px 16px; color: #38332a; font-family: inherit; }
.paper h3 { margin: 0; text-align: center; font-size: 2em; font-weight: 900; letter-spacing: 2px; }
.paper .issue { text-align: center; color: #7a7262; font-weight: 700; font-size: .88em; border-bottom: 3px double #38332a; padding-bottom: 8px; margin-bottom: 10px; }
.paper .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.paper .st { display: grid; grid-template-columns: auto 1fr auto; gap: 3px 10px; font-size: .9em; font-weight: 700; }
.paper .st .u { color: #2a6e33; } .paper .st .d { color: #a3341f; } .paper .st .z { color: #8a8270; }
.paper .pie { display: flex; gap: 10px; align-items: center; }
.paper .leg { display: grid; gap: 3px; font-size: .85em; font-weight: 700; }
.paper .leg span { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.paper .adv { margin-top: 10px; padding-top: 8px; border-top: 2px solid #38332a; font-size: .92em; line-height: 1.6; font-weight: 600; }
.paper h4 { margin: 0 0 6px; font-size: 1em; }

/* 성적표 */
.grade { text-align: center; margin: 4px 0 10px; }
.grade b { display: block; font-size: 2em; font-weight: 900; background: linear-gradient(90deg, #ff6fa3, #7c6cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grade small { color: var(--muted); font-weight: 800; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* 설정 */
.setrow { display: flex; align-items: center; gap: 10px; padding: 8px 4px; font-weight: 800; }
.setrow > span:first-child { min-width: 86px; }
.setrow input[type=range] { flex: 1; accent-color: #8b7cf6; }
.setrow .val { min-width: 44px; text-align: right; color: var(--muted); }
.credit { margin-top: 10px; font-size: .85em; color: var(--muted); line-height: 1.6; text-align: center; }

@media (max-width: 760px) {
  .acts { grid-template-columns: 1fr 1fr 1fr; }
  .act { flex-direction: column; text-align: center; gap: 4px; padding: 8px 4px; }
  .act small { white-space: normal; }
  .prow { grid-template-columns: 30px 1fr 1fr; }
  .prow .info { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
  .mapwrap { grid-template-columns: 1fr; justify-items: center; }
  .paper .cols, .two { grid-template-columns: 1fr; }
  .picks { grid-template-columns: 1fr; }
}
/* 휴대폰 가로 (낮은 화면) */
@media (max-height: 500px) {
  #layer .ns-sheet { padding: 14px 14px; border-radius: 18px; }
  #layer .ns-head { margin-bottom: 6px; } #layer .ns-head h2 { font-size: 1.2em; }
  .startbar { bottom: -14px; margin: 6px -14px -14px; padding: 8px 14px 10px; }
  .title-word { font-size: 38px; } .title-sub { display: none; }
  #home { padding-top: calc(env(safe-area-inset-top) + 52px); }
  .panel { max-height: 70vh; padding: 10px; }
  .big { padding: 10px; }
  .prow { grid-template-columns: 30px minmax(60px, 1fr) minmax(108px, 1fr) minmax(118px, 1fr) minmax(80px, .9fr); padding: 5px 8px; }
  .prow .info { grid-column: auto; display: block; }
  .acts .act { flex-direction: row; text-align: left; }
  .mapwrap { grid-template-columns: auto minmax(200px, 1fr); justify-items: stretch; }
  .hud { gap: 4px; } .chip { padding: 3px 9px 3px 5px; } .chip img { width: 16px; height: 16px; }
  .flash { top: calc(env(safe-area-inset-top) + 70px); }
}
@media (prefers-reduced-motion: reduce) { .title-word { animation: none; } }
.legend2 { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .86em; font-weight: 800; color: #4a4f78; }
.legend2 i { display: inline-block; width: 12px; height: 12px; margin-right: 5px; vertical-align: -1px; box-sizing: border-box; }

/* 좁은 휴대폰: 손님 계정 칸(💾 가입 붙음)이 남은 너비 안에서 줄어들게 → 오른쪽이 잘리지 않음 (2026-10-31) */
@media (max-width: 480px) {
  #accountSlot { min-width: 0; flex: 0 1 auto; }
  #accountSlot .kit-chip { max-width: 100%; }
  #accountSlot .kit-chip button { white-space: nowrap; }
  #accountSlot .kc-me { min-width: 0; flex: 0 1 auto; padding: 5px 7px 5px 10px; }
  #accountSlot .kc-me b, #accountSlot .kc-me span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #accountSlot .kc-rank { flex: none; padding: 0 6px; }
  #accountSlot .kc-shop, #accountSlot .kc-save { flex: none; padding: 0 8px; }
}

/* 좁은 휴대폰: 🏠 단추가 생긴 계정 칸 자리가 모자라서 위쪽 작은 이름표는 숨김 (가운데 큰 제목에 이름이 있음, 2026-11-01) */
@media (max-width: 420px) { .top > h1 { display: none; } #accountSlot .kc-me { min-width: 64px; } }
/* '⛶ 전체 화면으로' 단추(kit/orient.js 는 위 가운데): 낮에는 계정 칸과, 밤에는 위 정보 칸과 겹쳐서 자리를 옮김 (2026-11-01) */
.or-fs { top: calc(8px + env(safe-area-inset-top, 0px)) !important; left: calc(120px + env(safe-area-inset-left, 0px)) !important; transform: none !important; }
body.night .or-fs { top: auto !important; bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important; left: auto !important; right: calc(10px + env(safe-area-inset-right, 0px)) !important; }
/* 세로 휴대폰 낮: 계정 칸이 왼쪽까지 와서 44px 동그란 ⛶ 단추로 왼쪽 위 구석에 (2026-11-02) */
@media (orientation: portrait) { body:not(.night) .or-fs { left: calc(8px + env(safe-area-inset-left, 0px)) !important; width: 44px; height: 44px; padding: 0; font-size: 0; } body:not(.night) .or-fs::before { content: "⛶"; font-size: 20px; line-height: 44px; } }

/* ---------- 🎬 첫 화면 배경 (kit/title.css 위에 별빛 상회 색·무늬·떠다니는 그림, 2026-11-10) ---------- */
#title { --lt-a: #f0a020; --lt-b: #e0507a; --lt-ink: #232846; --lt-muted: #3d4166; --lt-brand: #5a64d8; --lt-sh: #4a4fb8; --lt-glow: rgba(108,124,255,.45);
  --lt-bgc: #121836; background-image: linear-gradient(180deg,#121836 0%,#1d2547 55%,#2b2f6a 100%);
  --lt-fade: radial-gradient(ellipse max(56vw,300px) max(40vh,300px) at 50% 46%,rgba(255,247,232,.96) 0,rgba(255,247,232,.8) 42%,rgba(255,247,232,0) 100%); }
#title .lt-o { filter: drop-shadow(0 6px 10px rgba(0,0,20,.45)); }
#title .lt-play { background: linear-gradient(90deg,#6c7cff,#9a6ce0); }
#title .stars { position: absolute;left:0;top:0;width:3px;height:3px;box-shadow:48px 159px 0 0px rgba(255,240,200,0.84),359px 789px 0 0px rgba(255,240,200,0.56),661px 275px 0 0px rgba(255,240,200,0.92),1253px 624px 0 0px rgba(255,240,200,0.91),1180px 748px 0 0px rgba(255,240,200,0.98),996px 263px 0 0px rgba(255,240,200,0.56),1244px 150px 0 0px rgba(255,240,200,0.78),1175px 430px 0 0px rgba(255,240,200,0.89),61px 213px 0 1px rgba(255,240,200,0.37),832px 747px 0 0px rgba(255,240,200,0.90),1246px 748px 0 0px rgba(255,240,200,0.72),662px 355px 0 0px rgba(255,240,200,0.84),745px 353px 0 0px rgba(255,240,200,0.51),1013px 710px 0 0px rgba(255,240,200,0.52),884px 508px 0 0px rgba(255,240,200,0.72),455px 552px 0 0px rgba(255,240,200,0.76),822px 149px 0 0px rgba(255,240,200,0.43),480px 583px 0 0px rgba(255,240,200,0.77),561px 320px 0 0px rgba(255,240,200,0.43),223px 49px 0 0px rgba(255,240,200,0.59),132px 583px 0 0px rgba(255,240,200,0.65),143px 773px 0 0px rgba(255,240,200,0.55),175px 187px 0 0px rgba(255,240,200,0.48),875px 532px 0 0px rgba(255,240,200,0.86),709px 798px 0 0px rgba(255,240,200,0.43),898px 677px 0 0px rgba(255,240,200,0.73),1393px 267px 0 0px rgba(255,240,200,0.37),149px 283px 0 0px rgba(255,240,200,0.93),1042px 503px 0 0px rgba(255,240,200,0.70),1118px 171px 0 0px rgba(255,240,200,0.79),838px 875px 0 0px rgba(255,240,200,0.37),1058px 474px 0 0px rgba(255,240,200,0.80),982px 42px 0 0px rgba(255,240,200,0.99),1218px 625px 0 0px rgba(255,240,200,0.49),907px 522px 0 0px rgba(255,240,200,0.36),1242px 601px 0 0px rgba(255,240,200,0.55),1072px 863px 0 0px rgba(255,240,200,0.75),285px 223px 0 0px rgba(255,240,200,0.63),68px 522px 0 0px rgba(255,240,200,0.90),123px 282px 0 0px rgba(255,240,200,0.62),457px 267px 0 1px rgba(255,240,200,0.59),622px 584px 0 0px rgba(255,240,200,0.70),622px 573px 0 0px rgba(255,240,200,0.96),666px 766px 0 0px rgba(255,240,200,0.77),582px 578px 0 1px rgba(255,240,200,0.54),41px 773px 0 1px rgba(255,240,200,0.51),960px 204px 0 0px rgba(255,240,200,0.44),1095px 282px 0 0px rgba(255,240,200,0.84),21px 759px 0 0px rgba(255,240,200,0.85),1373px 67px 0 1px rgba(255,240,200,0.38),1416px 439px 0 0px rgba(255,240,200,0.69),1203px 651px 0 0px rgba(255,240,200,0.36),165px 567px 0 0px rgba(255,240,200,0.41),414px 373px 0 0px rgba(255,240,200,0.79),909px 144px 0 0px rgba(255,240,200,1.00),890px 664px 0 1px rgba(255,240,200,0.93),230px 316px 0 0px rgba(255,240,200,0.62),668px 906px 0 0px rgba(255,240,200,0.71),952px 94px 0 1px rgba(255,240,200,0.47),1207px 309px 0 0px rgba(255,240,200,0.70),185px 440px 0 0px rgba(255,240,200,0.36),780px 753px 0 0px rgba(255,240,200,0.49),96px 585px 0 0px rgba(255,240,200,0.43),1199px 19px 0 0px rgba(255,240,200,0.82),1281px 616px 0 0px rgba(255,240,200,0.90),396px 622px 0 0px rgba(255,240,200,0.35),176px 82px 0 1px rgba(255,240,200,0.69),172px 204px 0 0px rgba(255,240,200,0.78),352px 226px 0 0px rgba(255,240,200,0.84),980px 794px 0 1px rgba(255,240,200,0.53),787px 372px 0 0px rgba(255,240,200,0.61),793px 809px 0 0px rgba(255,240,200,0.62),516px 895px 0 0px rgba(255,240,200,0.96),344px 884px 0 0px rgba(255,240,200,0.81),818px 596px 0 0px rgba(255,240,200,0.47),693px 406px 0 0px rgba(255,240,200,0.84),996px 563px 0 1px rgba(255,240,200,0.54),1094px 516px 0 1px rgba(255,240,200,0.71),1336px 10px 0 0px rgba(255,240,200,0.78),789px 792px 0 0px rgba(255,240,200,0.95),80px 694px 0 0px rgba(255,240,200,0.80),128px 379px 0 1px rgba(255,240,200,0.55),532px 290px 0 0px rgba(255,240,200,0.36),572px 384px 0 0px rgba(255,240,200,0.88),75px 407px 0 0px rgba(255,240,200,0.76),195px 108px 0 0px rgba(255,240,200,0.38),398px 611px 0 1px rgba(255,240,200,0.98),1275px 514px 0 1px rgba(255,240,200,0.62),1009px 261px 0 0px rgba(255,240,200,0.55),562px 180px 0 1px rgba(255,240,200,0.49); }
#title .street { position: absolute;left:0;right:0;bottom:0;height:150px;border-bottom:4px solid #141a30; }
#title .sb-o1 { top:10%; right:8%; }
#title .sb-d1 { background:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22288%22%20height%3D%22100%22%20viewBox%3D%220%200%20288%20100%22%20shape-rendering%3D%22crispEdges%22%3E%3Cg%20transform%3D%22translate(0%200)%22%3E%3Crect%20x%3D%224%22%20y%3D%2234%22%20width%3D%2276%22%20height%3D%2266%22%20fill%3D%22%2325304a%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2230%22%20width%3D%2276%22%20height%3D%226%22%20fill%3D%22%233a4568%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2236%22%20width%3D%2219%22%20height%3D%2210%22%20fill%3D%22%23f0c36a%22%2F%3E%3Crect%20x%3D%2223%22%20y%3D%2236%22%20width%3D%2219%22%20height%3D%2210%22%20fill%3D%22%23b94f5f%22%2F%3E%3Crect%20x%3D%2242%22%20y%3D%2236%22%20width%3D%2219%22%20height%3D%2210%22%20fill%3D%22%23f0c36a%22%2F%3E%3Crect%20x%3D%2261%22%20y%3D%2236%22%20width%3D%2219%22%20height%3D%2210%22%20fill%3D%22%23b94f5f%22%2F%3E%3Crect%20x%3D%2212%22%20y%3D%2254%22%20width%3D%2228%22%20height%3D%2222%22%20fill%3D%22%23ffd884%22%2F%3E%3Crect%20x%3D%2225%22%20y%3D%2254%22%20width%3D%222%22%20height%3D%2222%22%20fill%3D%22%2325304a%22%2F%3E%3Crect%20x%3D%2248%22%20y%3D%2252%22%20width%3D%2222%22%20height%3D%2248%22%20fill%3D%22%23d78b50%22%2F%3E%3Crect%20x%3D%2251%22%20y%3D%2256%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22%23ffd884%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%2216%22%20width%3D%2248%22%20height%3D%2212%22%20fill%3D%22%231a2140%22%2F%3E%3Crect%20x%3D%2220%22%20y%3D%2218%22%20width%3D%2244%22%20height%3D%228%22%20fill%3D%22%23ff7ab8%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(96%200)%22%3E%3Crect%20x%3D%224%22%20y%3D%2234%22%20width%3D%2276%22%20height%3D%2266%22%20fill%3D%22%2325304a%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2230%22%20width%3D%2276%22%20height%3D%226%22%20fill%3D%22%233a4568%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2236%22%20width%3D%2219%22%20height%3D%2210%22%20fill%3D%22%236dd3c0%22%2F%3E%3Crect%20x%3D%2223%22%20y%3D%2236%22%20width%3D%2219%22%20height%3D%2210%22%20fill%3D%22%23f4f1e8%22%2F%3E%3Crect%20x%3D%2242%22%20y%3D%2236%22%20width%3D%2219%22%20height%3D%2210%22%20fill%3D%22%236dd3c0%22%2F%3E%3Crect%20x%3D%2261%22%20y%3D%2236%22%20width%3D%2219%22%20height%3D%2210%22%20fill%3D%22%23f4f1e8%22%2F%3E%3Crect%20x%3D%2212%22%20y%3D%2254%22%20width%3D%2228%22%20height%3D%2222%22%20fill%3D%22%23ffd884%22%2F%3E%3Crect%20x%3D%2225%22%20y%3D%2254%22%20width%3D%222%22%20height%3D%2222%22%20fill%3D%22%2325304a%22%2F%3E%3Crect%20x%3D%2248%22%20y%3D%2252%22%20width%3D%2222%22%20height%3D%2248%22%20fill%3D%22%23d78b50%22%2F%3E%3Crect%20x%3D%2251%22%20y%3D%2256%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22%23ffd884%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%2216%22%20width%3D%2248%22%20height%3D%2212%22%20fill%3D%22%231a2140%22%2F%3E%3Crect%20x%3D%2220%22%20y%3D%2218%22%20width%3D%2244%22%20height%3D%228%22%20fill%3D%22%23ffd45e%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(192%200)%22%3E%3Crect%20x%3D%224%22%20y%3D%2234%22%20width%3D%2276%22%20height%3D%2266%22%20fill%3D%22%2325304a%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2230%22%20width%3D%2276%22%20height%3D%226%22%20fill%3D%22%233a4568%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2236%22%20width%3D%2219%22%20height%3D%2210%22%20fill%3D%22%239a8cff%22%2F%3E%3Crect%20x%3D%2223%22%20y%3D%2236%22%20width%3D%2219%22%20height%3D%2210%22%20fill%3D%22%23f4f1e8%22%2F%3E%3Crect%20x%3D%2242%22%20y%3D%2236%22%20width%3D%2219%22%20height%3D%2210%22%20fill%3D%22%239a8cff%22%2F%3E%3Crect%20x%3D%2261%22%20y%3D%2236%22%20width%3D%2219%22%20height%3D%2210%22%20fill%3D%22%23f4f1e8%22%2F%3E%3Crect%20x%3D%2212%22%20y%3D%2254%22%20width%3D%2228%22%20height%3D%2222%22%20fill%3D%22%23ffd884%22%2F%3E%3Crect%20x%3D%2225%22%20y%3D%2254%22%20width%3D%222%22%20height%3D%2222%22%20fill%3D%22%2325304a%22%2F%3E%3Crect%20x%3D%2248%22%20y%3D%2252%22%20width%3D%2222%22%20height%3D%2248%22%20fill%3D%22%23d78b50%22%2F%3E%3Crect%20x%3D%2251%22%20y%3D%2256%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22%23ffd884%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%2216%22%20width%3D%2248%22%20height%3D%2212%22%20fill%3D%22%231a2140%22%2F%3E%3Crect%20x%3D%2220%22%20y%3D%2218%22%20width%3D%2244%22%20height%3D%228%22%20fill%3D%22%236dff9a%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E') repeat-x 50% 100%/auto 150px; }
#title .sb-o2 { top:12%; left:10%; }
#title .sb-o3 { top:30%; right:7%; }
#title .sb-o4 { top:4%; left:44%; }
#title .sb-o5 { bottom:32%; left:7%; }
#title .sb-o6 { font-size:40px; top:24%; left:4%; --r: -8deg; }
#title .sb-o7 { font-size:36px; bottom:21%; right:8%; }
#title .sb-o8 { font-size:32px; top:18%; right:30%; }
#title .sb-o9 { font-size:32px; top:40%; left:5%; }
/* 위쪽 머리줄(.top, z-index 9060)은 첫 화면 위에 떠서 첫 화면 동안 숨김 (계정 칩은 첫 화면 오른쪽 위로 옮겨짐) */
html.lt-on #top { visibility: hidden; }
/* 견본과 다르게: 로그인한 계정 칩(넓음)·작은 단추와 안 겹치게, 큰 화면·가로 휴대폰은 아래 가게 거리를 낮게 */
#title .sb-o4 { top: 12%; left: 40%; } #title .sb-o7 { bottom: 15%; right: 6%; }
@media (min-width: 900px) and (min-height: 680px) { #title .street.sb-d1 { height: 84px; background-size: auto 84px; } }
@media (orientation: landscape) and (max-height: 500px) { #title .street.sb-d1 { height: 56px; background-size: auto 56px; } #title .sb-o1 { top: 20%; right: 16%; } #title .sb-o7 { bottom: 18%; } }
