/* 스킨 토큰: 가죽 #241914 · 양피지 #F3E5AB · 황동 #E69A28 + 파스텔 */
:root { --leather: #241914; --parch: #F3E5AB; --brass: #E69A28; --cream: #FFF4E0; --wood: #8A5A3B; --pink: #FFB5C8; --mint: #B8F0D8; --sky: #BFE3FF; --lilac: #D9C8FF; --ink: #3B2A20; --ok: #2E8B57; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { word-break: keep-all; overflow-wrap: anywhere; margin: 0; background: #F6E6C8; color: var(--ink); font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; overscroll-behavior: none; }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--cream); position: relative; padding-bottom: env(safe-area-inset-bottom); }
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
img { user-select: none; -webkit-user-drag: none; }
h2 { margin: 8px 0; font-size: 22px; } h3 { margin: 14px 12px 6px; font-size: 16px; } h3 small { font-weight: 400; font-size: 12px; opacity: .7; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; min-height: 48px; padding: 10px 16px; border-radius: 16px; background: #fff; border: 2px solid var(--wood); font-weight: 700; font-size: 16px; box-shadow: 0 3px 0 rgba(138,90,59,.35); }
.btn small { font-weight: 500; font-size: 12px; opacity: .8; width: 100%; }
.btn.primary { background: linear-gradient(#FFD98A, var(--brass)); border-color: #B5701A; color: var(--leather); }
.btn.big { min-height: 60px; font-size: 19px; width: calc(100% - 24px); margin: 6px 12px; }
.btn.wide { width: calc(100% - 24px); margin: 8px 12px; }
.btn[aria-disabled=true], button[aria-disabled=true] { opacity: .45; }
.chip { min-height: 40px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 2px solid var(--wood); font-weight: 700; font-size: 14px; }
.chip.on { background: var(--brass); color: #fff; }
.chip.up { background: linear-gradient(#FFE6A0, var(--brass)); }
.chip.lockd { opacity: .55; }
.hl { animation: pulse 1.1s ease-in-out infinite; position: relative; z-index: 2; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(230,154,40,.0), 0 3px 0 rgba(138,90,59,.35); } 50% { box-shadow: 0 0 0 6px rgba(230,154,40,.55), 0 3px 0 rgba(138,90,59,.35); } }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--leather); color: var(--parch); min-height: 48px; }
.top .cur { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 16px; }
.top .cur img { width: 24px; height: 24px; }
.top .cur.silver img { filter: grayscale(1) brightness(1.3); }
.top .cur small { font-size: 11px; font-weight: 500; opacity: .8; }
.top .ico { margin-left: auto; background: transparent; font-size: 20px; min-width: 44px; min-height: 44px; }
.nosave { background: #C0392B; color: #fff; font-size: 11px; padding: 3px 6px; border-radius: 8px; }
/* S0 */
.title { min-height: 100vh; background-size: cover; background-position: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px 0; }
.logo { text-align: center; background: rgba(255,244,224,.88); border: 3px solid var(--wood); border-radius: 22px; padding: 12px 22px; }
.logo h1 { margin: 0; font-size: 34px; color: var(--leather); letter-spacing: -1px; }
.logo p { margin: 2px 0 0; color: var(--wood); font-weight: 700; }
.title-wagon { width: 260px; }
.foot { font-size: 12px; background: rgba(255,244,224,.85); padding: 4px 10px; border-radius: 8px; }
.wagon { position: relative; width: 100%; aspect-ratio: 200/150; }
.wagon .wg { width: 100%; height: 100%; }
.wagon .cat { position: absolute; width: 34%; left: 33%; top: 2%; }
.wagon.run .wg { animation: bob .5s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-3px); } }
/* S1 */
.camp { background-size: cover; background-position: top center; background-attachment: local; padding-bottom: 90px; position: relative; }
.campwagon { margin: 10px 12px; padding: 10px; background: rgba(255,244,224,.92); border: 3px solid var(--wood); border-radius: 20px; text-align: center; }
.campwagon .wagon { width: 210px; margin: 0 auto; }
.wname { font-weight: 800; font-size: 18px; } .wname small { display: block; font-weight: 500; font-size: 13px; opacity: .8; }
.campwagon .btn { margin-top: 8px; width: 100%; }
.goal { margin: 8px 0 0; font-size: 14px; color: var(--wood); font-weight: 700; }
.tollbadge { display: flex; align-items: center; gap: 8px; margin: 10px 12px 0; padding: 10px 14px; width: calc(100% - 24px); background: var(--mint); border: 2px solid var(--ok); border-radius: 16px; font-weight: 800; font-size: 16px; min-height: 52px; }
.tollbadge img { width: 34px; }
.trialcard { display: grid; grid-template-columns: 48px 1fr; gap: 0 10px; align-items: center; text-align: left; margin: 8px 12px; width: calc(100% - 24px); padding: 10px; border-radius: 16px; background: linear-gradient(#FFF6D0, #FFE08A); border: 2px solid var(--brass); }
.trialcard img { grid-row: span 2; width: 48px; } .trialcard span { font-size: 13px; }
.wsgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 12px; }
.ws { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto auto; gap: 0 8px; text-align: left; padding: 8px; border-radius: 14px; background: rgba(255,255,255,.93); border: 2px solid var(--wood); min-height: 76px; }
.ws img { grid-row: span 3; width: 40px; align-self: center; } .ws b { font-size: 14px; } .ws span { font-size: 11px; opacity: .8; } .ws em { font-style: normal; font-weight: 800; color: #B5701A; }
.packsel { margin: 10px 12px; display: flex; gap: 6px; align-items: center; background: rgba(255,244,224,.9); padding: 6px 10px; border-radius: 14px; flex-wrap: wrap; }
.map { display: flex; flex-direction: column; gap: 6px; margin: 0 12px; }
.stage { display: grid; grid-template-columns: 48px 1fr auto; grid-template-rows: auto auto; gap: 0 10px; align-items: center; text-align: left; padding: 6px 10px; background: rgba(255,255,255,.93); border: 2px solid var(--wood); border-radius: 14px; min-height: 60px; }
.stage img { grid-row: span 2; width: 48px; height: 48px; object-fit: contain; } .stage .sn { font-weight: 800; } .stage .ss { font-size: 12px; opacity: .8; }
.stage .st { color: var(--brass); font-size: 15px; } .stage.next { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(230,154,40,.35); }
.stage.lock { filter: grayscale(.9); opacity: .55; }
.cheer { font-style: normal; font-size: 11px; background: var(--pink); padding: 2px 6px; border-radius: 8px; grid-row: span 2; }
.elites { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0 12px; }
.eb { min-height: 52px; border-radius: 12px; background: #fff; border: 2px solid #7A5BB0; font-weight: 800; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.eb i { font-style: normal; font-size: 10px; color: #7A5BB0; } .eb.lock { opacity: .5; }
.campfoot { text-align: center; margin: 14px; } .link { background: none; text-decoration: underline; font-size: 14px; min-height: 44px; }
.nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--leather); z-index: 15; }
.nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 58px; border-radius: 14px; background: var(--parch); font-weight: 800; font-size: 13px; position: relative; }
.nav button img { width: 28px; height: 28px; } .nav .go { background: linear-gradient(#FFD98A, var(--brass)); font-size: 16px; }
.nav .dot::after { content: ''; position: absolute; top: 6px; right: 12px; width: 11px; height: 11px; border-radius: 50%; background: #FF4D6D; border: 2px solid #fff; }
/* S2 */
.pack { padding: 6px 12px 12px; }
.runhead { display: flex; gap: 8px; align-items: center; font-size: 14px; } .runhead b { font-size: 15px; }
.hpbar { flex: 1; position: relative; height: 20px; background: #E7D7B8; border-radius: 10px; overflow: hidden; } .hpbar i { position: absolute; inset: 0 auto 0 0; background: #7ED957; } .hpbar em { position: relative; font-style: normal; font-size: 11px; font-weight: 800; padding-left: 8px; line-height: 20px; }
.statrow { display: flex; gap: 8px; align-items: center; margin: 6px 0; flex-wrap: wrap; }
.mini-wagon { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; } .mini-wagon img { width: 54px; }
.dps { font-size: 14px; } .dps b { font-size: 20px; color: #C0392B; }
.syn { font-size: 13px; padding: 4px 8px; border-radius: 10px; background: #eee; font-weight: 700; } .syn.lit { background: #FFE08A; }
.pack .cheer { background: var(--pink); padding: 4px 8px; border-radius: 10px; font-size: 12px; }
.hint { margin: 4px 0 8px; padding: 8px 10px; background: #FFF6D0; border: 2px dashed var(--brass); border-radius: 12px; font-size: 14px; font-weight: 700; }
.gridwrap { display: flex; justify-content: center; }
.grid { position: relative; background: #5A3A26; border-radius: 14px; box-shadow: inset 0 0 0 4px #3D271A, 0 4px 0 rgba(0,0,0,.2); touch-action: none; }
.cell { position: absolute; border-radius: 9px; }
.cell.on { background: var(--parch); box-shadow: inset 0 0 0 2px rgba(138,90,59,.35); transform: scale(.92); }
.cell.off { background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 6px, transparent 6px 12px); }
.cell.golden { background: linear-gradient(#FFF1B8, #FFD25A); box-shadow: inset 0 0 0 2px #E69A28; }
.item { position: absolute; display: flex; align-items: center; justify-content: center; touch-action: none; }
.item .part { position: absolute; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 2px var(--wood), 0 2px 0 rgba(0,0,0,.25); }
.item.relic .part { background: var(--lilac); }
.item.s2 .part { background: var(--sky); } .item.s3 .part { background: #FFD6A0; } .item.s4 .part { background: linear-gradient(#FFE58A, #FFB5C8); }
.item img { position: relative; pointer-events: none; max-height: 90%; }
.item .star { position: absolute; bottom: 1px; right: 4px; color: #E69A28; font-size: 12px; text-shadow: 0 1px 0 #fff; pointer-events: none; }
.item .part.gold { background: linear-gradient(#FFF1B8, #FFD25A) !important; box-shadow: inset 0 0 0 3px #E69A28, 0 0 8px 2px rgba(255,210,90,.8); }
.item.sel .part { box-shadow: inset 0 0 0 3px #E69A28, 0 0 0 3px rgba(230,154,40,.6); }
.item.mergeable .part { animation: mglow .8s ease-in-out infinite alternate; }
@keyframes mglow { to { box-shadow: inset 0 0 0 3px #2E8B57, 0 0 10px 3px rgba(46,139,87,.6); } }
.synsvg { position: absolute; inset: 0; pointer-events: none; } .synline { stroke: #FF8A3D; stroke-width: 4; stroke-linecap: round; opacity: .85; stroke-dasharray: 2 6; } .syndot { fill: #FFD25A; stroke: #B5562B; stroke-width: 2; }
.selinfo { min-height: 38px; font-size: 13px; margin: 8px 0 4px; }
.supply { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.supply:has(.offer:nth-child(4)) { grid-template-columns: repeat(4, 1fr); }
.offer { display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 14px; background: #fff; border: 2px solid var(--wood); min-height: 96px; touch-action: none; position: relative; }
.offer img { width: 44px; height: 44px; object-fit: contain; pointer-events: none; } .offer .on { font-size: 12px; font-weight: 700; } .offer .star { color: var(--brass); font-size: 11px; min-height: 13px; } .offer em { font-style: normal; font-weight: 800; font-size: 13px; color: #6B6B6B; }
.offer.free { background: var(--mint); } .offer.free em { color: var(--ok); }
.offer.sel { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(230,154,40,.5); transform: translateY(-2px); }
.offer.poor { opacity: .55; } .offer.empty { justify-content: center; font-size: 12px; opacity: .5; border-style: dashed; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0 6px; }
.tools:has(> :nth-child(7)) { grid-template-columns: repeat(4, 1fr); }
.tools button { min-height: 44px; min-width: 0; padding: 0 4px; white-space: nowrap; border-radius: 12px; background: var(--parch); border: 2px solid var(--wood); font-weight: 700; font-size: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tools small { font-size: 10px; font-weight: 500; }
.pack .btn.go { width: 100%; margin: 6px 0 0; }
.ghost { position: fixed; z-index: 100; pointer-events: none; opacity: .85; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
/* S3 */
.battle { padding: 0 0 12px; }
.bhead { display: flex; gap: 6px; align-items: center; padding: 6px 10px; flex-wrap: wrap; font-size: 14px; } .bhead .speed { display: flex; gap: 4px; margin-left: auto; }
#cv { display: block; touch-action: none; }
.meter { padding: 6px 12px; font-size: 13px; min-height: 34px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .meter span { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; } .meter img { width: 22px; }
.minis { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 12px; }
.mw { position: relative; width: calc(var(--mc) + 14px); height: calc(var(--mc) + 14px); background: #fff; border: 2px solid var(--wood); border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.mw img { width: 80%; position: relative; z-index: 1; } .mw .cdfill { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(230,154,40,.35); } .mw b { position: absolute; bottom: 0; right: 2px; font-size: 9px; color: var(--brass); z-index: 2; }
/* S4 */
.gatescr { padding: 16px 12px; text-align: center; } .gatescr p { margin: 0 0 12px; }
.gates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gate { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; border-radius: 20px; background: #fff; border: 3px solid var(--wood); min-height: 220px; box-shadow: 0 4px 0 rgba(138,90,59,.35); }
.gate img { width: 84px; height: 84px; object-fit: contain; } .gate b { font-size: 17px; } .gate span { font-size: 13px; opacity: .85; } .gate em { font-style: normal; background: var(--mint); padding: 2px 10px; border-radius: 10px; font-weight: 800; }
/* S5 */
.result { padding: 16px 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.result .rc { width: 130px; } .result .cause { margin: 6px 16px 12px; padding: 10px; background: #FFF0F0; border-radius: 12px; font-weight: 700; }
.stars { font-size: 44px; color: var(--brass); letter-spacing: 4px; } .stars i { font-style: normal; color: #ddd; }
.gain { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 18px; flex-wrap: wrap; justify-content: center; } .gain img { width: 28px; } .gain em { font-style: normal; font-size: 12px; background: var(--mint); padding: 2px 8px; border-radius: 8px; }
.result > .btn { width: calc(100% - 24px); margin: 6px 12px; }
.unlock { margin: 8px 12px; padding: 12px; border-radius: 16px; background: #FFF6D0; border: 2px solid var(--brass); display: flex; flex-direction: column; gap: 4px; align-items: center; width: calc(100% - 24px); }
.unlock img { width: 54px; } .unlock span { font-size: 13px; } .unlock .btn { width: 100%; }
/* S6 */
.shop { padding: 8px 12px 20px; } .mock { display: inline-block; font-size: 12px; background: #E8F7EE; color: var(--ok); border: 1px solid var(--ok); padding: 2px 8px; border-radius: 8px; font-weight: 700; }
.prod { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 12px; margin: 10px 0; background: #fff; border: 3px solid var(--wood); border-radius: 18px; }
.prod.focus { border-color: var(--brass); box-shadow: 0 0 0 4px rgba(230,154,40,.35); }
.prod > img { width: 64px; } .prod .wprev { width: 64px; } .prod b { font-size: 17px; } .prod .price { display: block; font-weight: 800; color: #B5701A; margin: 2px 0; }
.prod ul { margin: 6px 0; padding-left: 18px; font-size: 14px; } .prod p { font-size: 13px; margin: 4px 0; } .prod .fair { color: var(--ok); font-weight: 700; }
.prod .btn { width: 100%; margin-top: 6px; } .row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 6px 0; } .row .btn { flex: 1; }
.shopwagon { width: 200px; margin: 0 auto; }
.probs { margin-top: 10px; } .prob { width: 100%; border-collapse: collapse; margin: 6px 0 10px; font-size: 13px; background: #fff; border-radius: 10px; overflow: hidden; }
.prob caption { text-align: left; font-weight: 800; padding: 4px 0; } .prob td { padding: 5px 8px; border-bottom: 1px solid #F0E2C6; } .prob td:last-child { text-align: right; font-weight: 700; } .prob .sum td { background: #FFF6D0; font-weight: 800; }
.note { font-size: 12px; opacity: .75; } .legal { font-size: 12px; opacity: .75; text-align: center; }
/* S7 */
.s7 { padding: 8px 0 20px; } .tabs { display: flex; gap: 4px; padding: 0 8px; overflow-x: auto; }
.tab { flex: 1 0 auto; min-height: 44px; padding: 6px 10px; border-radius: 12px 12px 0 0; background: var(--parch); font-weight: 700; font-size: 14px; } .tab.on { background: #fff; border: 2px solid var(--wood); border-bottom: 0; }
.tabbody { background: #fff; margin: 0 8px; padding: 10px; border-radius: 0 0 14px 14px; border: 2px solid var(--wood); min-height: 300px; }
.quest { display: grid; grid-template-columns: 1fr auto auto; grid-template-rows: auto auto; gap: 2px 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid #F0E2C6; }
.quest b { font-size: 15px; } .quest span { font-size: 13px; grid-row: 2; } .quest em { font-style: normal; font-weight: 800; color: #B5701A; font-size: 13px; } .quest .btn { grid-row: span 2; min-height: 44px; padding: 6px 14px; }
.quest.all span { display: none; }
.attend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; } .ad { padding: 8px 4px; text-align: center; background: var(--cream); border-radius: 12px; border: 2px solid #E7D7B8; font-size: 12px; } .ad b { display: block; font-size: 13px; } .ad.got { background: var(--mint); } .ad.today { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(230,154,40,.35); }
.bundle { text-align: center; } .bundle img { width: 120px; } .bundle .btn { width: 100%; margin: 4px 0; }
.codex { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .cx { padding: 8px; background: var(--cream); border-radius: 12px; text-align: center; } .cx img { width: 48px; height: 48px; object-fit: contain; } .cx b { display: block; font-size: 14px; } .cx span { font-size: 11px; opacity: .8; } .cx.unk img { filter: brightness(0) opacity(.35); }
/* 모달·토스트 */
.modal { position: fixed; inset: 0; background: rgba(36,25,20,.55); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal .box { background: var(--cream); border: 3px solid var(--wood); border-radius: 20px; padding: 16px; width: 100%; max-width: 380px; }
.modal h3 { margin: 0 0 8px; } .modal .col { display: flex; flex-direction: column; gap: 8px; } .modal .btn { width: 100%; }
@media (max-height: 700px) { .btn.big { min-height: 52px; font-size: 17px; } .offer { min-height: 72px; padding: 3px; } .offer img { width: 30px; height: 30px; } .selinfo { min-height: 0; font-size: 12px; margin: 4px 0; } .hint { font-size: 12px; padding: 5px 8px; margin: 2px 0 4px; } .statrow { margin: 3px 0; } .tools { margin: 6px 0 4px; } .tools button { min-height: 44px; font-size: 12px; } .pack .btn.go { min-height: 50px; } }

/* 2차: 토스트(아래쪽, 한 덩어리 글) */
.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; min-width: 180px; max-width: min(440px, 90vw); background: rgba(36,25,20,.93); color: #FFF4E0; padding: 10px 16px; border-radius: 14px; z-index: 60; font-weight: 700; font-size: 15px; line-height: 1.4; text-align: center; pointer-events: none; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.toast img { width: 28px; flex: none; } .toast .tw { width: 72px; } .toast .tt { flex: 0 1 auto; min-width: 0; white-space: normal; word-break: keep-all; }
.toast.big { bottom: auto; top: 50%; transform: translate(-50%, -50%); min-width: 260px; font-size: 18px; padding: 14px 20px; background: linear-gradient(#FFD98A, var(--brass)); color: var(--leather); border: 3px solid #B5701A; }
.scr-S3 .toast:not(.big) { bottom: auto; top: 96px; }
/* 2차: 보급 카드 모양 미니 아이콘 */
.offer .shp { position: absolute; top: 5px; left: 5px; display: grid; grid-template-columns: repeat(2, 8px); grid-template-rows: repeat(2, 8px); gap: 1px; }
.offer .shp b { background: var(--wood); border-radius: 2px; }
/* 2차: 웨이브 특징·추천 배치 결과 */
.wavetip { margin: 4px 0 8px; padding: 7px 10px; border-radius: 12px; font-size: 13px; background: #EEF6FF; border: 2px solid #8DB8E8; }
.wavetip b { display: block; font-size: 14px; } .wavetip.swarm { background: #FFF0E6; border-color: #F2A36B; } .wavetip.boss { background: #FFEAF0; border-color: #FF8FAB; } .wavetip.cmp { background: #FFF6D0; border-color: var(--brass); }
.autonote { display: block; padding: 6px 8px; background: #F2FFF6; border: 1px solid #9ED9B4; border-radius: 10px; }
.cell.golden.off-gold { background: repeating-linear-gradient(45deg, #FFF1B8 0 6px, #F3E5AB 6px 12px); box-shadow: inset 0 0 0 2px rgba(230,154,40,.5); }
.item .part.rowfull { box-shadow: inset 0 0 0 3px #6E7B88, 0 0 8px 2px rgba(110,198,255,.8); }
/* 2차: 전투 아래 공간 — 응원 함성·화력 패널 */
.rally { display: flex; align-items: center; gap: 10px; width: calc(100% - 24px); margin: 8px 12px 0; min-height: 64px; padding: 8px 12px; border-radius: 18px; background: linear-gradient(#FFE6A0, var(--brass)); border: 3px solid #B5701A; text-align: left; }
.rally img { width: 48px; height: 48px; object-fit: contain; } .rally b { display: block; font-size: 18px; color: var(--leather); } .rally small { font-size: 12px; }
.rally.used { background: #EFE6D3; border-color: #C8B79A; filter: saturate(.4); }
.bpanel { margin: 6px 12px 0; padding: 8px; background: #FFF8EA; border: 2px solid #E7D7B8; border-radius: 16px; }
.bstat { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; margin-bottom: 6px; } .bstat b { font-size: 18px; color: #C0392B; }
.bstat .trait { background: #EEF6FF; border: 1px solid #8DB8E8; border-radius: 10px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.bpanel .minis { padding: 0; } .bpanel .mw { width: calc(var(--mc) + 22px); height: calc(var(--mc) + 22px); }
/* 2차: 시승 선택·비교 */
.trialbox { margin: 8px 12px; padding: 10px; border-radius: 16px; background: linear-gradient(#FFF6D0, #FFE08A); border: 2px solid var(--brass); }
.trialbox > b { display: block; font-size: 16px; } .trialbox > span { display: block; font-size: 12px; margin: 2px 0 8px; }
.trialpick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trialpick .trialcard { margin: 0; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; background: #fff; }
.trialpick .trialcard img { width: 44px; height: 44px; object-fit: contain; } .trialpick .trialcard span { font-size: 12px; }
.cmpgrid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 4px 8px; width: 100%; font-size: 13px; margin: 6px 0; align-items: center; }
.cmpgrid em { font-style: normal; font-weight: 800; text-align: center; } .cmpgrid em.up { color: #B5562B; font-size: 16px; } .cmpgrid > b { text-align: center; font-size: 13px; }
.cmpsum { margin: 2px 0 6px; font-size: 14px; }
.unlock .row { width: 100%; } .result .goal { margin: 4px 16px; text-align: center; }
/* 2차: 고양이·축제 의상·조명 장면 */
.wagon .catw { position: absolute; display: block; aspect-ratio: 1; } .wagon .catw .cat { position: static; width: 100%; } .wagon .catw .costume { position: absolute; inset: -18% -8% auto; width: 116%; }
.festscene { position: relative; height: 190px; margin: 8px 0 4px; border-radius: 14px; background-size: cover; background-position: center 70%; overflow: hidden; filter: brightness(.55) saturate(.7); transition: filter .4s; }
.festscene.on { filter: none; } .festscene .wagon { position: absolute; left: 2%; bottom: 0; width: 62%; }
.festscene .glow { position: absolute; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(rgba(255,214,110,.75), rgba(255,214,110,0) 70%); opacity: 0; animation: flick 1.6s ease-in-out infinite alternate; }
.festscene.on .glow { opacity: 1; } .festscene .g1 { left: 0; bottom: 50px; } .festscene .g2 { left: 20%; bottom: 70px; animation-delay: .5s; } .festscene .g3 { left: 40%; bottom: 46px; animation-delay: 1s; }
@keyframes flick { to { transform: scale(1.15); } }
.festscene .fm { position: absolute; bottom: 14px; width: 46px; } .festscene .m1 { right: 22%; } .festscene .m2 { right: 6%; bottom: 22px; }
.festscene .fcap { position: absolute; left: 8px; top: 6px; font-size: 12px; font-weight: 800; color: #FFF4E0; background: rgba(36,25,20,.6); padding: 2px 8px; border-radius: 8px; }
