/* 데스크펫 v1.2 — 공지 새 글·선물 · 접속 중 배틀(로비) · 배틀 이모티콘 화면 (js/notices.js · js/lobby.js · js/emotes.js) */

/* ---------- 공지: 상단 바 숫자 배지 · NEW · 선물 ---------- */
.notice-dot.has-n { width: auto; height: auto; min-width: 22px; padding: 0 5px; right: -8px; top: -9px; border-radius: 11px; color: #fff;
  font: 400 12px/17px var(--f-big, inherit); font-style: normal; text-align: center; }
.notice-dot.is-gift { background: var(--butter, #FFD93B); min-width: 26px; right: -10px; top: -12px; font: 400 16px/21px 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; padding: 0 3px; }
.notice-new { font-style: normal; font-size: 12px; color: #fff; background: #FF4D6D; border: 2px solid var(--ink); border-radius: 999px; padding: 0 7px; letter-spacing: .5px; }
.notice-item.is-new { box-shadow: 0 4px 0 rgba(43,27,23,.18), 0 0 0 3px #FFB3C1; }
.notice-gift { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 10px; padding: 10px 12px; background: #FFF3C4; border: 2.5px dashed var(--ink); border-radius: 14px; }
.notice-gift.done { background: #EFEAE0; opacity: .85; }
.ng-title { font-family: var(--f-big); font-weight: 400; font-size: 17px; }
.ng-items { display: flex; gap: 10px; flex: 1; flex-wrap: wrap; font-size: 16px; }
.ng-items span { display: inline-flex; align-items: center; gap: 4px; }
.ng-items img { width: 22px; height: 22px; image-rendering: pixelated; }
.ng-done { font-size: 15px; color: var(--sub); }
.ng-claim { animation: ngWiggle 1.6s ease-in-out infinite; }
@keyframes ngWiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-4deg); } 90% { transform: rotate(4deg); } 95% { transform: rotate(-2deg); } }
.notice-reward { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 0; padding: 8px 12px 10px; border: 2.5px dashed var(--ink); border-radius: 12px; background: #FFF8DC; }
.notice-reward legend { padding: 0 6px; font-size: 15px; }
.notice-reward label { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.notice-reward img { width: 22px; height: 22px; image-rendering: pixelated; }
.notice-reward input { width: 110px; font: inherit; font-size: 16px; padding: 4px 8px; border: 2.5px solid var(--ink); border-radius: 10px; background: var(--cream); color: var(--ink); cursor: text; }
.notice-reward small { flex-basis: 100%; color: var(--sub); font-size: 13px; }

/* ---------- 로비 오른쪽 [접속 중] 탭 (친구 탭 아래) ---------- */
.side-friends.side-lobby { top: calc(50% + 56px); transform: none; }
.side-lobby .sl-ico { position: relative; width: 38px; height: 38px; font-size: 26px; line-height: 38px; text-align: center; }
.side-lobby .sl-dot { position: absolute; left: -2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #3DDC84; border: 2px solid var(--ink); animation: noticePing 1.6s ease-in-out infinite; }
.side-lobby .sl-n { position: absolute; top: -6px; left: -6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: #3DBE74; color: #fff; border: 2px solid var(--ink);
  font: 400 13px/18px var(--f-big, inherit); font-style: normal; text-align: center; }
.side-lobby .sl-n[hidden] { display: none; }

/* ---------- 접속 중 패널 ---------- */
.lobby { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.lobby-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 10px 14px; background: var(--sky, #CDEBFF); border: 2.5px dashed var(--ink); border-radius: 16px; }
.lobby-sub { flex: 1 1 260px; margin: 0; font-size: 15px; line-height: 1.45; }
.lobby-show { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.lobby-msg, .lobby-count { text-align: center; color: var(--sub); margin: 4px 0; font-size: 15px; }
.lobby-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lobby-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--paper); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 rgba(43,27,23,.18); }
.lobby-pet { width: 52px; height: 52px; object-fit: contain; image-rendering: pixelated; flex: none; }
.lobby-pet.unknown { display: grid; place-items: center; font-size: 24px; background: var(--cream); border-radius: 12px; }
.lobby-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lobby-nick { font-family: var(--f-big); font-weight: 400; font-size: 19px; overflow-wrap: anywhere; display: flex; align-items: center; gap: 6px; }
.lobby-fr { font-style: normal; font-size: 12px; background: var(--mint); border: 2px solid var(--ink); border-radius: 999px; padding: 0 7px; font-family: var(--f-body, inherit); }
.lobby-main small { color: var(--sub); font-size: 13.5px; }
.lobby-st { font-style: normal; }
.lobby-st.st-main { color: #2E9E5E; }
.lobby-st.st-game { color: #C98A00; }
.lobby-st.st-battle { color: #C2445F; }
.lobby-row .btn[disabled] { opacity: .5; }
.lobby-empty img { width: 110px; image-rendering: pixelated; }
.lobby-empty p { max-width: 34ch; line-height: 1.5; }

/* ---------- 배틀 이모티콘 ---------- */
.emote-bar { position: fixed; left: 16px; bottom: 18px; z-index: 310;   /* 결과 팝업(#modals 300) 위에서도 누를 수 있게 */ display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.emote-bar[hidden], .emote-tray[hidden] { display: none; }
.emote-toggle { width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--ink); background: var(--butter, #FFD93B); font-size: 28px; line-height: 1; box-shadow: 0 4px 0 var(--ink); cursor: pointer; }
.emote-toggle:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.emote-toggle[aria-expanded="true"] { background: var(--mint); }
.emote-tray { display: grid; grid-template-columns: repeat(4, 76px); gap: 6px; padding: 8px; background: var(--paper); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 rgba(43,27,23,.25); }
.emote-pick { display: grid; justify-items: center; gap: 2px; padding: 6px 2px 5px; border: 2.5px solid var(--ink); border-radius: 12px; background: #fff; font: inherit; font-size: 12px; color: var(--ink); cursor: pointer; }
.emote-pick:hover, .emote-pick:focus-visible { background: var(--butter, #FFD93B); transform: translateY(-2px); }
.emote-pick .emo-ico { font-size: 26px; line-height: 30px; width: 30px; height: 30px; object-fit: contain; image-rendering: pixelated; }
.emote-pick .emo-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70px; }
/* 경기 중: 점수판 옆 작은 버튼, 이모티콘 판은 버튼 아래로 (오른쪽 끝 맞춤) */
.emote-bar.at-hud { bottom: auto; }
.emote-bar.at-hud .emote-toggle { width: 44px; height: 44px; font-size: 22px; box-shadow: 0 3px 0 var(--ink); }
.emote-bar.at-hud .emote-tray { position: absolute; top: 52px; right: 0; }
.emote-pop { position: fixed; z-index: 320; display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; background: #fff; border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: 0 4px 0 rgba(43,27,23,.3); font-size: 16px; color: var(--ink); pointer-events: none; white-space: nowrap; animation: emoIn .28s cubic-bezier(.3,1.6,.5,1) both; }
.emote-pop.from-opp { background: #FFE4EA; }
.emote-pop.from-me { background: #E5F7EE; }
.emote-pop .emo-ico { font-size: 30px; line-height: 34px; width: 34px; height: 34px; object-fit: contain; image-rendering: pixelated; }
.emote-pop.out { animation: emoOut .3s ease-in both; }
@keyframes emoIn { from { transform: scale(.4) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes emoOut { to { transform: translateY(-10px); opacity: 0; } }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 900px) {
  .side-friends.side-lobby { position: fixed; top: calc(var(--bar-h, 56px) + 112px); z-index: 30; }
}
@media (max-width: 560px) {
  .side-friends.side-lobby { top: calc(var(--bar-h, 56px) + 92px); }
  .side-lobby .sl-ico { width: 28px; height: 28px; font-size: 20px; line-height: 28px; }
  .emote-bar { left: 8px; bottom: max(10px, env(safe-area-inset-bottom)); }
  .emote-toggle { width: 46px; height: 46px; font-size: 24px; }
  .emote-tray { grid-template-columns: repeat(4, 64px); gap: 5px; padding: 6px; }
  .emote-pick { font-size: 11px; }
  .emote-pick .emo-t { max-width: 60px; }
  .lobby-pet { width: 42px; height: 42px; }
}

/* v1.3: 대결 게임 고르기 창 — 게임이 3개 이상이면 한 줄에 맞춰 (좁으면 자동 줄바꿈) */
.fr-vs-games:has(> :nth-child(3)) { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }

/* ================= v1.4 말랑상사 사원증 (js/intern.js · app.js renderLogin) ================= */
/* 상단 바: 인턴 = 점선 노란 사원증 슬롯 */
.pill.login-pill.intern { background: #FFF3C4; border-style: dashed; }
.pill.login-pill.intern .login-ico { border-radius: 5px; width: 20px; height: 24px; background: var(--paper) url("../assets/chars/duck_front.webp") center 70% / 120% auto no-repeat; box-shadow: inset 0 4px 0 var(--pink); }
.pill.login-pill.intern b { font-family: var(--f-big); font-weight: 400; }

/* 권하는 카드 (작은 카드 한 장) */
.intern-nudge { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; margin: 10px auto 4px; max-width: 520px; padding: 10px 14px 12px;
  background: #FFF8DC; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 rgba(43,27,23,.18); text-align: left; animation: inUp .3s cubic-bezier(.3,1.4,.5,1) both; }
.intern-nudge.out { animation: inOut .22s ease-in both; }
@keyframes inUp { from { transform: translateY(10px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes inOut { to { transform: translateY(6px); opacity: 0; } }
.intern-nudge .in-x { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--paper); font: 700 14px/1 var(--f-body, inherit); color: var(--ink); cursor: pointer; }
.intern-nudge .in-x:hover { background: var(--blush); }
.in-badge { position: relative; grid-row: span 2; width: 58px; height: 74px; border: 3px solid var(--ink); border-radius: 10px; background: var(--paper); display: grid; justify-items: center; align-content: end; padding-bottom: 3px; box-shadow: 0 3px 0 rgba(43,27,23,.2); }
.in-badge .in-clip { position: absolute; top: -9px; left: 50%; width: 18px; height: 10px; margin-left: -9px; border: 2.5px solid var(--ink); border-radius: 4px; background: var(--sky); }
.in-badge img { width: 44px; height: 40px; object-fit: contain; image-rendering: pixelated; }
.in-badge em { font-style: normal; font-size: 11px; padding: 0 6px; border-radius: 6px; background: var(--butter); border: 2px solid var(--ink); line-height: 1.3; }
.in-text { display: grid; gap: 3px; padding-right: 26px; }
.in-text b { font-size: 16px; line-height: 1.4; }
.in-text small { color: var(--sub); font-size: 12.5px; line-height: 1.35; }
.in-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.intern-nudge.gate { padding-right: 14px; }
.intern-nudge.gate .in-text { padding-right: 0; }
.rank-me-in.intern-host { display: block; padding: 0; background: none; border: 0; }
.rank-me-in.intern-host .intern-nudge { margin: 4px auto; }
.battle-box.battle-intern { display: grid; align-content: center; min-height: 260px; }
.battle-box.battle-intern .intern-nudge { margin: 0; }
.gacha .intern-nudge, .reveal-stage .intern-nudge { max-width: 440px; }
#resultCard .intern-nudge { margin: 8px auto 10px; }

/* 로그인 창: 인턴 안내 줄 */
.login-intern { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 10px; font-size: 13.5px; color: var(--sub); text-align: center; }
.intern-tag { font-style: normal; font-size: 12px; padding: 1px 8px; border-radius: 8px; border: 2px dashed var(--ink); background: #FFF3C4; color: var(--ink); white-space: nowrap; }

/* 사원증 카드 */
.id-card { position: relative; width: min(340px, 100%); margin: 14px auto 4px; background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 rgba(43,27,23,.2); overflow: visible; text-align: left; }
.idc-strap { position: absolute; top: -16px; left: 50%; width: 26px; height: 16px; margin-left: -13px; border: 3px solid var(--ink); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--sky); }
.idc-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: var(--pink); border-bottom: 3px solid var(--ink); border-radius: 15px 15px 0 0; }
.idc-co { font-family: var(--f-big); font-size: 18px; color: var(--paper); text-shadow: 0 2px 0 var(--ink); letter-spacing: .5px; }
.idc-kind { font-size: 12px; padding: 1px 8px; border-radius: 8px; background: var(--cream); border: 2px solid var(--ink); }
.idc-body { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 12px 14px; align-items: center; }
.idc-photo { width: 104px; height: 118px; border: 3px solid var(--ink); border-radius: 12px; background: var(--mint); display: grid; place-items: end center; overflow: hidden; }
.idc-photo img { width: 96px; height: 100px; object-fit: contain; object-position: bottom; image-rendering: pixelated; }
.idc-info { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; margin: 0; font-size: 13.5px; align-items: baseline; }
.idc-info dt { color: var(--sub); font-size: 12px; white-space: nowrap; }
.idc-info dd { margin: 0; overflow-wrap: anywhere; }
.idc-info .idc-nick { font-family: var(--f-big); font-size: 20px; line-height: 1.15; }
.idc-foot { display: flex; justify-content: space-between; align-items: center; padding: 6px 14px 10px; }
.idc-bar { width: 120px; height: 18px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px); opacity: .7; border-radius: 2px; }
.idc-rank, .idc-admin { font-style: normal; font-size: 12px; padding: 2px 9px; border-radius: 8px; border: 2px solid var(--ink); background: var(--mint); }
.idc-admin { background: var(--butter); }
.login-me .id-card { margin-top: 18px; }
.id-celebrate { display: grid; gap: 6px; justify-items: center; }
.idc-gift { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 18px; font-family: var(--f-big); }
.idc-gift img { width: 26px; height: 26px; image-rendering: pixelated; }
.idc-perks { font-size: 14px !important; color: var(--sub); max-width: 34ch; text-align: center; }

/* 출근 때 기록 고르기 */
.rec-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0; }
.rec-opt { display: grid; gap: 4px; padding: 10px 12px; border: 3px solid var(--ink); border-radius: 14px; background: var(--paper); }
.rec-opt small { color: var(--sub); font-size: 13px; }
.rec-warn { font-size: 13px !important; color: #C2445F; }
@media (max-width: 560px) {
  .rec-choose { grid-template-columns: 1fr; }
  .idc-body { grid-template-columns: 84px 1fr; }
  .idc-photo { width: 84px; height: 96px; } .idc-photo img { width: 78px; height: 82px; }
  .intern-nudge { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .in-badge { grid-row: auto; }
  .in-text { padding-right: 0; }
  .in-btns { justify-content: center; }
}

/* 한 줄짜리 제안 카드 (결과 화면 · 뽑기 화면) — 1280×720 에서 아래 버튼이 밀려 잘리지 않게 */
.intern-nudge.compact { grid-template-columns: 1fr auto; gap: 4px 10px; padding: 7px 12px; margin: 6px auto; max-width: 600px; }
.intern-nudge.compact .in-badge { display: none; }
.intern-nudge.compact .in-text { padding-right: 0; gap: 1px; }
.intern-nudge.compact .in-text b { font-size: 14.5px; line-height: 1.3; }
.intern-nudge.compact .in-text small { font-size: 11.5px; }
.intern-nudge.compact .in-btns { flex-wrap: nowrap; }
.intern-nudge.compact .in-x { display: none; }   /* 한 줄 카드는 [다음에] 글자 버튼이 닫기 */
.gacha-right:has(.intern-nudge) .gacha-rule { display: none; }
#resultCard:has(.intern-nudge) .res-break { margin-bottom: 0; }
@media (max-width: 560px) { .intern-nudge.compact { grid-template-columns: 1fr; } .intern-nudge.compact .in-btns { justify-content: center; } }
.gacha-right .intern-nudge.compact .in-text small { display: none; }   /* 뽑기 화면은 자리가 좁아 한 줄 안내 생략 (로그인 창·결과 화면엔 있음) */
.gacha-right .intern-nudge.compact { margin: 2px auto 0; }
.gacha-right:has(.intern-nudge) .gacha-sub { display: none; }   /* 제안 카드가 떠 있는 동안만 (닫으면 다시 보임) — 1280×720 에서 반쯤 잘리지 않게 */
.gacha-right:has(.intern-nudge) .gacha-note:empty { display: none; }
.gacha-unigift { display: block; margin: 0 auto 8px; width: max-content; max-width: 100%; font-style: normal; font-size: 15px; padding: 3px 12px; border: 2.5px solid var(--ink); border-radius: 999px; background: linear-gradient(90deg, #FFE27A, #FFB3C7, #C7B5F2); animation: ngWiggle 2s ease-in-out infinite; }

/* ================= v1.4.3 테스터 리뷰 (2026-10-13) ================= */
/* 1) 로비 아래 메뉴 글씨: 두꺼운 Black Han Sans + 8방향 2px 그림자 → ㄹ·ㅁ·ㅇ 속이 메워져 뭉개짐.
 *    획이 열린 Jua + 얇은 바깥 테두리(stroke 를 글자 뒤에 칠함) + 조금 크게 */
.subs .sub-btn > span:not(.sub-ico) { font-family: var(--f-body); font-size: clamp(17px, 1.45vw, 22px); letter-spacing: .03em;
  -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); }
:lang(ja) .subs .sub-btn > span:not(.sub-ico) { font-size: clamp(13px, 1.12vw, 17px); -webkit-text-stroke: 3.5px var(--ink); letter-spacing: 0; }
:lang(en) .subs .sub-btn > span:not(.sub-ico) { font-size: clamp(15px, 1.25vw, 19px); }

/* 2) 게임 시작 설명창: [메인으로] [시작] 같은 높이 · 가운데 정렬 · 글자 가운데 */
.howto-btns { align-items: center; gap: 14px; }
.howto-btns .btn { --h: 58px; min-width: 156px; font-size: 20px; justify-content: center; text-align: center; }
.howto-btns .btn kbd { font-size: 13px; line-height: 1.2; }
/* 키보드 포커스 표시: 네모 테두리 대신 버튼 모양을 따라 빛나게 (젤리 버튼은 그림 테두리라 outline 이 네모로 나왔음) */
.btn:focus { outline: none; }
.btn:focus-visible { outline: none; filter: drop-shadow(0 0 3px #FF8FA3) drop-shadow(0 0 2px #FF8FA3) drop-shadow(0 3px 0 rgba(43,27,23,.22)); }
/* 3) 설명 그림과 글이 겹치지 않게: 그림 칸은 그림 너비만큼(최소 150px), 글은 남은 칸 */
@media (min-width: 561px) { .howto-steps li { grid-template-columns: 30px minmax(150px, max-content) minmax(0, 1fr); } }   /* 폰(≤560)은 mobile.css 의 2줄 배치 그대로 */
.ht-art { min-width: 0; }
.ht-t { overflow-wrap: anywhere; }
:lang(ja) .ht-t { line-height: 1.45; }

/* 4) 창 제목 리본 · [닫기] 를 테두리에서 조금 아래로 (설정 · 뽑기 · 도감 · 랭킹 · 1:1 배틀 · 업적 등 모든 창) */
/*    + 좌우: 제목줄(아이콘 · [닫기]) 양 끝을 아래 내용 칸 양 끝과 맞춤 (내용 칸 여백 20px 와 같게 — 예전엔 6px 라 14px 씩 바깥으로 나와 보였음) */
@media (min-width: 561px) { .panel-head { margin-top: 12px; padding-left: 20px; padding-right: 20px; } }

/* 5) 왼쪽 아래 링크 줄: '문의·버그 신고' 만 아래로 처지던 것 — 줄 높이 고정 · 가운데 맞춤 */
.site-links { align-items: center; }
.site-links a { display: inline-block; line-height: 1.4; vertical-align: middle; }
/* 4-1) 제목을 내린 만큼 뽑기 창 오른쪽 칸을 살짝 줄임 (맨 아래 규칙 글자가 테두리에 걸리지 않게) */
@media (min-width: 561px) {
  #panel[data-panel="gacha"] .gacha-right { gap: 8px; }
  #panel[data-panel="gacha"] .gacha-stage { height: 270px; }
  #panel[data-panel="gacha"] .gacha-rule { margin: 0; line-height: 1.3; font-size: 13px; }
}
/* 6) 펫 머지 설명 3번: 펫블록용 깜빡임(ht-line) 대신 '분홍 선 위로 쌓이면 끝' 그림 */
.ht-over { position: relative; display: flex; gap: 2px; padding: 12px 8px 2px; }
.ht-over::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; border-top: 3px dashed #FF6F8E; }
.ht-over img { position: relative; }
.ht-over img:first-child { transform: translateY(-8px); }

/* ---------- v1.5 바탕화면 바로가기 (js/install.js) ---------- */
.pill.install-pill { cursor: url("ui/cursor_hand.png") 11 2, pointer; position: relative; gap: 4px; padding: 0 12px 0 10px; font-size: 15px; }
.pill.install-pill:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.pill.install-pill .install-ico { font-size: 17px; line-height: 1; }
.pill.install-pill:hover .install-ico { display: inline-block; transform: translateY(-2px); transition: transform .2s; }
.install-guide { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; max-width: 420px; }
.install-guide img { border-radius: 22px; box-shadow: 0 3px 0 var(--ink); border: 3px solid var(--ink); }
.install-how { background: var(--cream, #FFF6DF); border: 2px dashed var(--ink); border-radius: 12px; padding: 10px 14px; line-height: 1.55; }
@media (max-width: 900px) { .pill.install-pill { padding: 0 8px; } .pill.install-pill .install-t { display: none; } }

/* ---------- v1.5 칭호 (js/titles.js) — 시안 _dev/시안/칭호 의 이름표 그대로. 등급이 오를수록 화려 (transform·opacity·background-position·filter 만) ---------- */
:root { --t-normal: #2B1B17; --t-rare: #E8A200; --t-epic: #A06CF0; --t-unique: #3FA7F5; --t-legend: #FF5A8A; }
.ttl { position: relative; display: inline-flex; isolation: isolate; border-radius: 999px; vertical-align: middle;
  font-family: var(--f-big); font-size: 17px; line-height: 1; white-space: nowrap; --bw: 3px; }
.ttl-in { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px 7px 11px; border-radius: 999px; }
.ttl-ico { font-style: normal; font-size: .95em; line-height: 1; }
.ttl.sm { font-size: 12.5px; --bw: 2px; }
.ttl.sm .ttl-in { padding: 4px 9px 4px 7px; gap: 3px; }
.ttl.lg { font-size: 22px; --bw: 4px; }
.ttl.lg .ttl-in { padding: 10px 20px 10px 15px; }

/* 1) 노말 — 정적 테두리. 크림 바탕 + 진갈 외곽선 (사이트 기본 버튼과 같은 결) */
.t-normal .ttl-in { background: var(--cream); border: var(--bw) solid var(--ink); color: var(--ink); box-shadow: 0 2px 0 rgba(43,27,23,.2); }

/* 2) 레어 — 금빛 + 은은한 반짝 (빛 한 줄이 3.2초마다 스침 — 게임 .nm-rare 와 같은 금색) */
.t-rare .ttl-in { overflow: hidden; background: linear-gradient(180deg, #FFF6C9, #FFE37A); border: var(--bw) solid #B86A00; color: #6B3E00; box-shadow: 0 2px 0 rgba(120,70,0,.35); }
.t-rare .ttl-in::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.95), transparent); transform: translateX(-150%) skewX(-18deg); animation: tSheen 3.2s ease-in-out infinite; }
@keyframes tSheen { 0%, 55% { transform: translateX(-150%) skewX(-18deg); } 100% { transform: translateX(330%) skewX(-18deg); } }

/* 3) 에픽 — 흐르는 그라데이션 테두리 (보라·분홍·하늘이 테두리를 따라 흐름) + 부드러운 빛 */
.t-epic { padding: var(--bw); background: linear-gradient(90deg, #A06CF0, #FF8FA3, #7FC8FF, #A06CF0, #FF8FA3, #7FC8FF, #A06CF0); background-size: 300% 100%;
  animation: tFlow 4s linear infinite; box-shadow: 0 0 0 1.5px var(--ink), 0 3px 0 1.5px rgba(43,27,23,.25), 0 0 12px rgba(160,108,240,.35); }
.t-epic .ttl-in { background: linear-gradient(180deg, #FBF6FF, #EEDFFF); color: #4E2394; }
@keyframes tFlow { from { background-position: 0% 0; } to { background-position: 150% 0; } }

/* 4) 유니크 — 무지개 테두리(게임 .nm-unique 무지개) + 반짝이 입자 + 숨쉬는 빛 */
.t-unique { padding: var(--bw); background: linear-gradient(90deg, #FF5A8A, #FF9F1C, #FFD93B, #3CC98B, #3FA7F5, #A06CF0, #FF5A8A); background-size: 300% 100%;
  animation: tFlow 3s linear infinite, tGlowU 1.8s ease-in-out infinite alternate; box-shadow: 0 0 0 1.5px var(--ink), 0 3px 0 1.5px rgba(43,27,23,.25); }
.t-unique .ttl-in { background: linear-gradient(180deg, #FFFFFF, #EAF6FF); color: #24427A; }
@keyframes tGlowU { from { filter: drop-shadow(0 0 2px rgba(255,255,255,.9)) drop-shadow(0 0 4px rgba(120,180,255,.35)); } to { filter: drop-shadow(0 0 3px rgba(255,255,255,.95)) drop-shadow(0 0 10px rgba(255,160,220,.75)); } }

/* 반짝이 입자 (유니크·레전드 공용) — JS 가 .ttl-fx 안에 <i> 를 4~7개 넣음, 위치·지연은 CSS 변수 */
.ttl-fx { position: absolute; inset: -10px -8px; z-index: 3; pointer-events: none; }
.ttl-fx i { position: absolute; left: var(--x); top: var(--y); width: 9px; height: 9px; margin: -4.5px; opacity: 0;
  background: radial-gradient(circle, #fff 0 18%, transparent 20%), conic-gradient(from 45deg, transparent 0 20%, #FFE97A 0 30%, transparent 0 45%, #FFE97A 0 55%, transparent 0 70%, #FFE97A 0 80%, transparent 0 95%, #FFE97A 0);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: tTwinkle var(--d, 1.6s) ease-in-out var(--dl, 0s) infinite; }
.ttl.sm .ttl-fx i { width: 7px; height: 7px; margin: -3.5px; }
@keyframes tTwinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 45% { opacity: 1; transform: scale(1.1) rotate(45deg); } 70% { opacity: .2; transform: scale(.6) rotate(80deg); } }

/* 5) 레전드 — 회전하는 금+무지개 테두리 + 오라(맥박) + 뒤쪽 빛줄기 + 떠오르는 입자 + 왕관 */
.t-legend { padding: var(--bw); overflow: visible; box-shadow: 0 0 0 1.5px var(--ink), 0 3px 0 1.5px rgba(43,27,23,.3); animation: tAura 2.2s ease-in-out infinite; }
.t-legend .ttl-ring { position: absolute; inset: 0; z-index: 1; border-radius: inherit; overflow: hidden; }
.t-legend .ttl-ring::before { content: ""; position: absolute; left: 50%; top: 50%; width: 260%; aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(#FFD93B, #FF9F1C, #FF5A8A, #A06CF0, #3FA7F5, #3CC98B, #FFD93B 50%, #FFF7C2 56%, #FFD93B 62%, #FF9F1C, #FFD93B);
  animation: tSpin 3.2s linear infinite; }
.t-legend .ttl-in { background: radial-gradient(120% 140% at 50% 0%, #4A2E26, #2B1B17 70%); }
.t-legend .ttl-in > b { font-weight: 400; background: linear-gradient(100deg, #FFC93B 0%, #FFF3B0 25%, #FFB3D1 45%, #FFE066 65%, #FFF3B0 85%, #FFC93B 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #FFD93B; animation: tTextShine 2.6s linear infinite; }
.t-legend .ttl-ico { filter: drop-shadow(0 0 3px rgba(255,217,59,.9)); }
.t-legend .ttl-fx i { animation-name: tRise; background: radial-gradient(circle, #fff 0 25%, #FFE066 35%, rgba(255,160,200,.0) 70%); clip-path: none; border-radius: 50%; }
@keyframes tRise { 0% { opacity: 0; transform: translateY(6px) scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-16px) scale(1); } }
@keyframes tSpin { to { transform: rotate(360deg); } }
@keyframes tAura { 0%, 100% { filter: drop-shadow(0 0 4px rgba(255,217,59,.55)) drop-shadow(0 0 0 rgba(255,90,138,0)); } 50% { filter: drop-shadow(0 0 7px rgba(255,217,59,.9)) drop-shadow(0 0 14px rgba(255,90,138,.55)); } }
@keyframes tTextShine { from { background-position: 125% 0; } to { background-position: -125% 0; } }

@media (prefers-reduced-motion: reduce) {
  .ttl, .ttl *, .ttl *::before, .ttl *::after { animation: none !important; }
  .ttl-fx { display: none; }
}
.ttl-in > b { font-weight: 400; }
.ttl { cursor: inherit; }
/* 로비: 함께하는 친구 이름표 위 */
.main-title { display: block; margin: 26px auto -30px; padding: 0; border: 0; background: none; cursor: url("ui/cursor_hand.png") 11 2, pointer; position: relative; z-index: 3; }
.main-title[hidden] { display: none; }
.main-left.has-title .pet-tag { margin-top: 42px; }
.main-title:hover .ttl { transform: translateY(-2px); transition: transform .15s; }
/* 랭킹 줄 · 접속 중 목록 · 토스트 */
td.nick .ttl, .lobby-nick .ttl { margin-left: 10px; }   /* 랭킹 줄 · 접속 중 목록: 이름과 칭호 사이 */
.main-title { margin-top: 34px; }   /* 레전드 왕관이 러그에 묻히지 않게 조금 위 여유 */
.lobby-nick .ttl { vertical-align: -2px; }
.ttl-toast { display: flex; align-items: center; gap: 8px; }
.ttl-toast .ttl { font-size: 13px; }
/* 사원증 칭호 줄 */
.idc-title { display: flex; justify-content: center; padding: 8px 10px 4px; border-top: 2px dashed rgba(43,27,23,.2); margin: 4px 14px 0; }
/* 칭호 창 */
.ttls { display: flex; flex-direction: column; gap: 10px; }
.ttl-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 12px 16px; border: 3px solid var(--ink); border-radius: 18px; background: #FFFDF6; }
.ttl-cur { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 56px; }
.ttl-cur small { color: var(--sub, #7A645B); font-size: 13px; }
.ttl-none { color: var(--sub, #7A645B); }
.ttl-sum { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ttl-shards { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--paper, #fff); font-family: var(--f-big); }
.ttl-shards img, .ttl-foot .btn img { width: 20px; height: 20px; image-rendering: pixelated; vertical-align: -4px; margin-right: 3px; }
.ttl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.ttl-card { display: grid; grid-template-rows: 76px auto auto; gap: 6px; padding: 10px 12px 12px; border: 2.5px solid rgba(43,27,23,.25); border-radius: 16px; background: var(--paper, #fff); text-align: center; }
.ttl-card:not(.own) .ttl-stage { filter: grayscale(.85) opacity(.55); }
.ttl-card:not(.own) .ttl-stage .ttl, .ttl-card:not(.own) .ttl-stage .ttl * { animation-play-state: paused; }
.ttl-card.own { border-color: var(--ink); }
.ttl-card.on { background: #FFF6C9; box-shadow: 0 0 0 3px var(--butter, #FFD93B); }
.ttl-card[data-tier="legend"] .ttl-stage { background: #3A2B4A; }
.ttl-stage { display: grid; place-items: center; border-radius: 12px; background: #FFFDF6; overflow: hidden; }
.ttl-how { margin: 0; font-size: 13.5px; line-height: 1.35; }
.ttl-lim { font-style: normal; font-size: 12px; color: #C2185B; white-space: nowrap; }
.ttl-foot { display: flex; justify-content: center; align-items: center; min-height: 34px; }
.ttl-foot .ach-prog { width: 100%; }
.ttl-on { font-family: var(--f-big); color: #2E8B57; }
.ttl-confirm { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 8px 4px; }
@media (max-width: 560px) {
  .ttl-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ttl-card { grid-template-rows: 64px auto auto; padding: 8px; }
  .ttl-card .ttl { font-size: 13px; }
  .ttl.lg { font-size: 18px; }
}

/* ---------- v1.5 폰·태블릿 정리 ---------- */
/* 로비 아래 링크 줄(소개·게임 방법·문의·개인정보·약관): 좁은 화면에선 화면을 차지해 숨기고 ⚙️ 설정 창 '안내' 묶음으로 (PC 는 그대로 — 광고 심사·검색용 링크도 HTML 에 계속 있음) */
@media (max-width: 900px) { #siteLinks { display: none; } }
/* 폰을 가로로 든 채 게임 중 → 세로로 돌려 달라는 덮개 (js/orient.js) */
.orient-cover { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; background: rgba(43,27,23,.82); }
.orient-cover[hidden] { display: none; }
.oc-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 28px; border: 3px solid var(--ink); border-radius: 20px; background: var(--cream, #FFF6DF); text-align: center; box-shadow: 0 6px 0 var(--ink); }
.oc-card b { font-family: var(--f-big); font-size: 22px; font-weight: 400; }
.oc-card small { color: var(--sub, #7A645B); font-size: 14px; }
.oc-phone { font-size: 44px; display: inline-block; animation: ocTurn 1.6s ease-in-out infinite; }
@keyframes ocTurn { 0%, 30% { transform: rotate(-90deg); } 60%, 100% { transform: rotate(0deg); } }
@media (prefers-reduced-motion: reduce) { .oc-phone { animation: none; } }

/* v1.5 칭호 등급별 이펙트 (에테르AI 애니메이션, assets/fx/title/*.webp = 18장 가로 스트립, 180ms) — 노말 없음
 *  레어: 오른쪽 위 금빛 별 · 에픽: 오른쪽 끝 빛 리본 · 유니크: 이름표 뒤 무지개 폭죽 · 레전드: 이름표 위 왕관(오라는 이름표 뒤로 숨음) */
.ttl-sp { position: absolute; z-index: 4; pointer-events: none; background-repeat: no-repeat; background-size: 1800% 100%; image-rendering: pixelated;
  animation: ttlSp 3.24s steps(18, jump-none) infinite; }   /* 18장 = 정확히 18칸 (17칸이면 한 칸씩 밀려 옆으로 흐르고 잘림) */
@keyframes ttlSp { from { background-position: 0 0; } to { background-position: 100% 0; } }
/* 반짝이: 등급 색 그림 · 자리 s1~s6 = 크기·위치·박자가 모두 달라 따로따로 반짝 (레어 4 · 에픽 5 · 유니크 6 · 레전드 4) */
.sp-star { aspect-ratio: 115 / 120; }
.st-rare { background-image: url("fx/title/star_rare.webp"); }
.st-epic { background-image: url("fx/title/star_epic.webp"); }
.st-unique { background-image: url("fx/title/star_unique.webp"); }
.st-legend { background-image: url("fx/title/star_legend.webp"); }
.sp-star.s1 { height: 1.15em; right: -.6em; top: -.65em; }
.sp-star.s2 { height: .9em; left: -.5em; bottom: -.55em; animation-duration: 3.6s; animation-delay: -.7s; }
.sp-star.s3 { height: .6em; left: 24%; top: -.7em; animation-duration: 2.9s; animation-delay: -1.4s; }
.sp-star.s4 { height: .72em; right: 20%; bottom: -.62em; animation-duration: 3.9s; animation-delay: -2.1s; }
.sp-star.s5 { height: .55em; left: -.78em; top: -.3em; animation-duration: 2.7s; animation-delay: -2.6s; }
.sp-star.s6 { height: .62em; right: -.82em; bottom: -.15em; animation-duration: 3.3s; animation-delay: -1.1s; }
/* 레전드: 왕관 (이름표 앞 · 아래 빛무리는 잘라 냄) */
.sp-crown { background-image: url("fx/title/legend.webp"); aspect-ratio: 110 / 160; height: 4em; left: 50%; top: -2.75em; margin-left: -1.375em; z-index: 5; clip-path: inset(0 0 30% 0); }
.ttl.sm .sp-crown { height: 3.4em; top: -2.35em; margin-left: -1.17em; }
.t-legend .sp-star.s3 { left: 14%; }   /* 왕관과 겹치지 않게 */
@media (prefers-reduced-motion: reduce) { .ttl-sp { animation: none; } }
.ttl-in { padding-left: 14px; }   /* 아이콘을 뺀 만큼 왼쪽 여백을 오른쪽과 맞춤 */
.ttl.sm .ttl-in { padding-left: 9px; }
.ttl.lg .ttl-in { padding-left: 20px; }

/* ---------- v1.5.1 게임 중 대결 신청 카드 (js/social.js cornerInvite) — 화면 오른쪽 위 구석, 게임판을 덜 가리게 작게 ---------- */
.inv-corner { position: fixed; z-index: 400; right: 8px; top: 6px; width: min(460px, calc(100vw - 16px)); min-height: 52px; display: flex; align-items: center; gap: 8px;
  padding: 6px 30px 6px 8px; background: var(--paper, #fff); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 rgba(43,27,23,.25); animation: icIn .3s ease-out; }
.inv-corner.out { opacity: 0; transform: translateY(-20px); transition: opacity .25s, transform .25s; }
.inv-corner .fr-pet { flex: none; width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; }
.inv-corner .ic-txt { flex: 1; display: grid; min-width: 0; }
.inv-corner .ic-txt b { font-size: 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-corner .ic-txt small { color: var(--sub, #7A645B); font-size: 11.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-corner .ic-btns { flex: none; display: flex; gap: 5px; }
.inv-corner .ic-btns .btn { --h: 34px; font-size: 13px; padding: 0 10px; }
.inv-corner .ic-x { position: absolute; right: 4px; top: 50%; margin-top: -12px; width: 24px; height: 24px; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--sub, #7A645B); cursor: pointer; }
@keyframes icIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .inv-corner { animation: none; } }
body[data-app="1"] .inv-corner { top: calc(env(safe-area-inset-top, 0px) + 4px); }
@media (max-width: 420px) { .inv-corner .ic-txt small { display: none; } }
/* 게임판 대신 상단 바 위에 얇게 겹침 — 게임판을 가리지 않음 */
.battle-declined { margin: 0 0 6px; padding: 6px 12px; border-radius: 12px; background: #FFE3E3; border: 2px solid #E57373; color: #8B2C2C; }
.lobby-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* v1.5.2 로비 메뉴: 뽑기 · 1:1 배틀만 진갈색 테두리가 없던 것 — 예전(v0.9) #btnGacha · #btnBattle 의 그림 테두리(border-image-source, id 라 우선)가
 * v0.9.10 의 새 테두리(3px 진갈색)를 덮고 있었음 → 그림 테두리 끔 (다른 메뉴 버튼과 같은 모양) */
.subs #btnGacha, .subs #btnBattle { border-image: none; }

/* ---------- v1.5.4 사원증 새 디자인 (힉스필드 그림 assets/ui/idcard_bg.webp 1091×859, 글씨 없는 틀) — 칸 위치는 그림 기준 %, 글자 크기는 카드 폭 기준(cqw) ---------- */
.id-card.idc-art { width: min(380px, 100%); aspect-ratio: 1091 / 859; margin: 10px auto 4px; padding: 0; border: 0; border-radius: 0; box-shadow: none; overflow: visible;
  background: url("ui/idcard_bg.webp") center / 100% 100% no-repeat; container-type: inline-size; text-align: left; }
.idc-art > * { position: absolute; }
.idc-art .idc-co { left: 21%; top: 16.5%; height: 12%; display: flex; align-items: center; font-family: var(--f-big); font-size: 6.4cqw; color: #fff; text-shadow: 0 .45cqw 0 var(--ink), -.3cqw 0 var(--ink), .3cqw 0 var(--ink), 0 -.3cqw var(--ink); }
.idc-art .idc-kind { right: 23%; top: 19.3%; padding: .3cqw 2.2cqw; font-size: 3.1cqw; border-radius: 99px; background: var(--cream, #FFF6DF); border: .5cqw solid var(--ink); }
.idc-art .idc-photo { left: 5.8%; top: 33.8%; width: 29.9%; height: 39.9%; display: grid; place-items: end center; overflow: hidden; border-radius: 3cqw; border: 0; background: none; }
.idc-art .idc-photo img { position: absolute; left: 4%; top: 4%; width: 92%; height: 92%; max-width: none; object-fit: contain; object-position: bottom; image-rendering: pixelated; }   /* 칸 안에 그림 전체 (머리 장식 잘리지 않게) */
.idc-art .idc-row { left: 48.6%; right: 8.5%; height: 7.4%; display: flex; align-items: center; gap: 2cqw; white-space: nowrap; overflow: hidden; }
.idc-art .r1 { top: 33.9%; } .idc-art .r2 { top: 45.4%; } .idc-art .r3 { top: 56.8%; } .idc-art .r4 { top: 68.1%; }
.idc-art .idc-row small { flex: none; width: 19cqw; font-size: 3cqw; color: var(--sub, #7A645B); overflow: hidden; text-overflow: ellipsis; }
.idc-art .idc-row b { font-weight: 400; font-size: 3.9cqw; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.idc-art .idc-row b.idc-nick { font-family: var(--f-big); font-size: 4.8cqw; }
.idc-art .idc-title { left: 29.9%; top: 83.6%; width: 39.4%; height: 8.3%; display: grid; place-items: center; overflow: visible; padding: 0; margin: 0; border: 0; }
.idc-art .idc-title .ttl { font-size: 3.6cqw; }
.idc-art .idc-notitle { font-size: 3cqw; color: rgba(43,27,23,.45); }
.idc-art .idc-pill { left: 74.8%; top: 85.3%; width: 13.8%; height: 6.6%; display: grid; place-items: center; font-style: normal; font-size: 2.8cqw; white-space: nowrap; padding: 0; border: 0; background: none; }
.idc-art .idc-title .ttl b, .idc-art .idc-kind, .idc-art .idc-co { line-height: 1; }
.idc-art .idc-title .ttl b { font-size: inherit; }   /* 로그인 창의 굵은 글씨 규칙(.login-me b)이 칭호 글자를 키우던 것 */

/* ===== v1.7.3 시작 로그인 창 · 건너뛴 뒤 말풍선 · 펫서바이버 뒤 가입 카드 ===== */
.login.start-login .login-intern { display: none; }
.sl-note { margin: 0 auto 10px; max-width: 440px; padding: 8px 12px; border-radius: 12px; border: 2.5px solid var(--ink); background: #FFE3E8; font-size: 14px; line-height: 1.45; text-align: center; }
.sl-note.grace { background: #FFF3C4; }
.sl-hero { display: grid; gap: 8px; margin: 0 auto 10px; max-width: 440px; padding: 12px 14px; background: #FFF8DC; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 rgba(43,27,23,.18); text-align: left; }
.sl-hero b { font-family: var(--f-big); font-weight: 400; font-size: 19px; line-height: 1.3; text-align: center; }
.sl-ben { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sl-ben span { display: grid; justify-items: center; gap: 2px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 6px 4px; font-size: 12.5px; text-align: center; line-height: 1.25; }
.sl-ben i { font-style: normal; font-size: 20px; }
.sl-skip { display: grid; justify-items: center; gap: 4px; margin: 0 auto 12px; padding-bottom: 12px; border-bottom: 2px dashed rgba(43,27,23,.25); max-width: 440px; }
.sl-skip small { font-size: 13px; color: #C2304A; text-align: center; }
@media (max-width: 560px) { .sl-ben span { font-size: 11.5px; } .sl-hero b { font-size: 17px; } }

.start-tip { position: fixed; z-index: 60; max-width: min(330px, calc(100vw - 24px)); display: grid; gap: 2px; padding: 10px 14px; background: #fff; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); font-size: 14px; line-height: 1.4; animation: inUp .3s cubic-bezier(.3,1.4,.5,1) both; pointer-events: none; }
.start-tip small { font-size: 12.5px; color: var(--sub, #7A645B); }
.start-tip::before { content: ''; position: absolute; top: -21px; left: var(--ax, 40px); border: 9px solid transparent; border-bottom-color: var(--ink); }
.start-tip.up::before { top: auto; bottom: -21px; border-bottom-color: transparent; border-top-color: var(--ink); }
.start-tip.out { animation: inOut .22s ease-in both; }

/* 탭바와 같은 가운데·같은 폭, 탭바 바로 위 (js/intern.js placePs). 글·버튼은 가운데 */
.intern-nudge.ps-float { position: fixed; z-index: 47; margin: 0; max-width: none; box-sizing: border-box; grid-template-columns: auto minmax(0, 1fr); justify-content: center; padding: 10px 40px 12px 16px; }
.intern-nudge.ps-float .in-text { justify-items: center; text-align: center; padding-right: 0; }
.intern-nudge.ps-float .in-text b { display: grid; gap: 2px; font-size: 16px; text-wrap: balance; }
.intern-nudge.ps-float .in-text b span { font-family: var(--f-body, inherit); font-size: 14px; font-weight: 700; line-height: 1.4; text-wrap: balance; }
.intern-nudge.ps-float .in-btns { grid-column: 2; justify-content: center; }
.intern-nudge.ps-float.compact { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 6px 36px 8px; }
.intern-nudge.ps-float.compact .in-badge, .intern-nudge.ps-float.compact .in-text small { display: none; }
.intern-nudge.ps-float.compact .in-text b { font-size: 14px; }
.intern-nudge.ps-float.compact .in-text b span { font-size: 13px; line-height: 1.35; }
.intern-nudge.ps-float.compact .in-btns { grid-column: 1; }
.intern-nudge.ps-float .in-text b, .intern-nudge.ps-float .in-text b span { word-break: keep-all; }   /* '·해금' 처럼 가운뎃점에서 꺾이지 않게 */
@media (max-width: 560px) { .intern-nudge.ps-float .in-text b span { font-size: 13px; } .intern-nudge.ps-float .in-btns { grid-column: 1 / -1; } }   /* 폰: 버튼은 카드 폭 전체에 나란히 */
