/* =========================================================
   Rise Up 퀘스트 2안 — 게임 화면 스킨
   굵은 외곽선 · 아래 그림자 버튼 · 하늘/땅 스테이지
   ========================================================= */
:root {
  --green: #05624b;
  --green-deep: #033629;
  --mint: #5cd6b8;
  --mint-soft: #e6f7f2;
  --pink: #e36495;
  --yellow: #ffd65a;
  --gold: #f5b81f;
  --sky: #27a0c1;
  --blog: #03c75a;
  --insta: #c13584;
  --place: #f58a1f;
  --out: #1b2b26;
  --paper: #fff8e7;
  --ink: #1b2b26;
  --ink-sub: #4d5a55;
  --ink-mute: #8a948f;
  --inner: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "A2Z", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink); line-height: 1.5; word-break: keep-all; -webkit-font-smoothing: antialiased;
  background: #2f6f5c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23ffffff' stroke-opacity='.04'/%3E%3C/svg%3E");
}
ol, ul { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
em { font-style: normal; }
.inner { width: 100%; max-width: var(--inner); margin: 0 auto; padding: 0 20px; }
.sample-bar { padding: 8px 16px; text-align: center; font-size: 13px; font-weight: 600; color: #5c4a00; background: #fff1c7; }

/* 게임 공통: 굵은 외곽선 카드 */
.card, .quest, .item, .pod, .rk, .status, .tabs, .modal__box {
  border: 3px solid var(--out); box-shadow: 0 6px 0 var(--out);
}
.card { padding: 20px; border-radius: 20px; background: var(--paper); }

/* ---------- HUD ---------- */
.hud { position: sticky; top: 0; z-index: 40; padding: 8px 0; background: var(--green-deep); border-bottom: 3px solid var(--out); }
.hud__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hud__me { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hud__ava { flex: none; width: 44px; height: 44px; border: 3px solid var(--out); border-radius: 12px; background: var(--mint-soft); overflow: hidden; }
.hud__ava svg { width: 140%; margin: -2px 0 0 -20%; }
.hud__name { font-size: 14px; color: #fff; white-space: nowrap; }
.hud__lv { padding: 1px 7px; border: 2px solid var(--out); border-radius: 6px; font-size: 12px; font-weight: 900; color: var(--out); background: var(--yellow); }
.hud__xp { width: 170px; height: 10px; margin-top: 4px; border: 2px solid var(--out); border-radius: 99px; background: #0d4a3b; overflow: hidden; }
.hud__xp i { display: block; height: 100%; background: var(--pink); transition: width .6s; }
.hud__res { display: flex; gap: 6px; }
.res { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border: 2px solid var(--out); border-radius: 10px; font-size: 14px; color: #fff; background: #0d4a3b; text-decoration: none; }
.res b { font-weight: 900; color: var(--yellow); }
.res__dot { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; border: 2px solid var(--out); border-radius: 99px; font-size: 11px; line-height: 16px; text-align: center; color: #fff !important; background: #e5484d; animation: wiggle 1.6s infinite; }

/* ---------- 스테이지 ---------- */
.stage { position: relative; overflow: hidden; padding: 20px 0 26px; }
.sky { position: absolute; inset: 0; background: linear-gradient(#7fd0ff 0%, #bfe9ff 55%, #e9f8ff 70%); }
.stage[data-lv="4"] .sky { background: linear-gradient(#ff9a8b 0%, #ffd3a5 55%, #fff1d6 70%); }
.stage[data-lv="5"] .sky { background: linear-gradient(#2a2563 0%, #6a4fb5 45%, #f3a6c8 72%); }
.cloud { position: absolute; width: 120px; height: 36px; border-radius: 99px; background: #fff; opacity: .85; animation: drift 40s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: #fff; }
.cloud::before { width: 50px; height: 50px; left: 18px; top: -24px; }
.cloud::after { width: 64px; height: 64px; left: 48px; top: -34px; }
.c1 { top: 60px; left: -10%; }
.c2 { top: 130px; left: 30%; transform: scale(.7); animation-duration: 55s; }
.c3 { top: 40px; left: 70%; transform: scale(.85); animation-duration: 48s; }
@keyframes drift { from { translate: 0 0; } to { translate: 120vw 0; } }
.sparkles i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px #fff; animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .2; transform: scale(.5); } }

.stage__grid { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: end; }
.stage__scene { position: relative; }
.stage__season { display: inline-block; padding: 5px 12px; border: 3px solid var(--out); border-radius: 10px; font-size: 13px; font-weight: 800; background: #fff; box-shadow: 0 4px 0 var(--out); }
.stage__season b { color: var(--pink); }
.scene { position: relative; height: 360px; }
.scene__bld { position: absolute; right: 2%; bottom: -6px; width: 62%; }
.scene__bld svg { width: 100%; display: block; }
.scene__char { position: absolute; left: 4%; bottom: -4px; width: 36%; animation: idle 2.2s ease-in-out infinite; transform-origin: bottom center; }
.scene__char svg { width: 100%; display: block; filter: drop-shadow(0 6px 0 rgba(0,0,0,.12)); }
.scene__char.jump { animation: jump .7s cubic-bezier(.3,1.6,.5,1); }
@keyframes idle { 50% { transform: translateY(-6px) scaleY(1.02); } }
@keyframes jump { 0% { transform: translateY(0); } 40% { transform: translateY(-60px) rotate(-6deg); } 100% { transform: translateY(0); } }
.scene__pop { position: absolute; left: 14%; bottom: 52%; pointer-events: none; }
.pop { position: absolute; white-space: nowrap; padding: 4px 10px; border: 3px solid var(--out); border-radius: 10px; font-size: 18px; font-weight: 900; background: var(--yellow); animation: floatup 1.4s ease-out forwards; }
@keyframes floatup { 0% { opacity: 0; transform: translateY(10px) scale(.6); } 20% { opacity: 1; transform: translateY(0) scale(1.1); } 100% { opacity: 0; transform: translateY(-70px); } }
.ground { position: relative; height: 54px; margin: 0 -40px; border-top: 3px solid var(--out); border-radius: 50% 50% 0 0 / 30px 30px 0 0; background: linear-gradient(#7ccf5f, #5cb146); display: flex; align-items: center; justify-content: center; }
.ground span { padding: 3px 14px; border: 3px solid var(--out); border-radius: 8px; font-size: 14px; font-weight: 900; color: #fff; background: #8a5a3c; box-shadow: 0 3px 0 var(--out); }

.status { position: relative; padding: 22px; border-radius: 22px; background: var(--paper); }
.status__eyebrow { font-size: 12px; font-weight: 800; color: var(--green); }
.status__title { margin-top: 4px; font-size: 30px; font-weight: 900; letter-spacing: -0.02em; }
.status__title em { padding: 2px 10px; border: 3px solid var(--out); border-radius: 10px; font-size: 18px; vertical-align: 5px; background: var(--yellow); }
.status__desc { margin-top: 6px; font-size: 14px; color: var(--ink-sub); }
.stats { margin-top: 14px; }
.stats li { display: grid; grid-template-columns: 112px 1fr 34px; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; font-weight: 800; }
.stats__k small { font-size: 11px; font-weight: 500; color: var(--ink-mute); }
.stats__bar { height: 14px; border: 2px solid var(--out); border-radius: 99px; background: #fff; overflow: hidden; }
.stats__bar i { display: block; height: 100%; background: var(--blog); transition: width .6s; }
.stats__bar--insta i { background: var(--insta); }
.stats__bar--place i { background: var(--place); }
.stats b { text-align: right; font-weight: 900; }
.xp { margin-top: 14px; }
.xp__head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 900; color: var(--ink-sub); letter-spacing: .03em; }
.xp__head b { color: var(--pink); letter-spacing: 0; }
.xp__bar { height: 20px; margin-top: 5px; border: 3px solid var(--out); border-radius: 99px; background: #fff; overflow: hidden; }
.xp__bar i {
  display: block; height: 100%; transition: width .6s ease;
  background: repeating-linear-gradient(-45deg, var(--pink), var(--pink) 10px, #ec85ad 10px, #ec85ad 20px); background-size: 28px 28px; animation: flow 1s linear infinite;
}
@keyframes flow { to { background-position: 28px 0; } }
.status__cta { display: flex; gap: 8px; margin-top: 16px; }
.gbtn { flex: 1; display: inline-flex; align-items: center; justify-content: center; height: 52px; border: 3px solid var(--out); border-radius: 14px; font-size: 16px; font-weight: 900; text-decoration: none; box-shadow: 0 6px 0 var(--out); transition: transform .1s, box-shadow .1s; }
.gbtn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--out); }
.gbtn--go { color: #fff; background: var(--pink); }
.gbtn--item { color: var(--out); background: var(--yellow); }

/* 레벨 로드 */
.road { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 22px; }
.road::before { content: ""; position: absolute; left: 10%; right: 10%; top: 38px; height: 8px; border: 2px solid var(--out); border-radius: 99px; background: #fff; }
.node { position: relative; text-align: center; }
.node__ava { position: relative; width: 76px; height: 76px; margin: 0 auto; border: 3px solid var(--out); border-radius: 50%; background: #fff; overflow: hidden; box-shadow: 0 4px 0 var(--out); }
.node__ava svg { width: 130%; margin: 0 0 0 -15%; }
.node--lock .node__ava { filter: grayscale(1) brightness(.85); opacity: .7; }
.node--now .node__ava { border-color: var(--pink); box-shadow: 0 0 0 4px var(--yellow), 0 4px 0 var(--out); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(255,214,90,.35), 0 4px 0 var(--out); } }
.node__lv { display: inline-block; margin-top: 8px; padding: 1px 8px; border: 2px solid var(--out); border-radius: 6px; font-size: 12px; font-weight: 900; background: var(--yellow); }
.node--lock .node__lv { background: #ddd; }
.node__title { margin-top: 3px; font-size: 14px; font-weight: 900; color: #fff; text-shadow: 0 2px 0 var(--out); }
.node__reward { display: inline-block; margin-top: 4px; padding: 3px 8px; border: 2px solid var(--out); border-radius: 8px; font-size: 11px; font-weight: 800; background: #fff; }
.node--open .node__reward { background: var(--mint); }
.node--open .node__reward::after { content: " ✔"; }

/* ---------- 섹션 공통 ---------- */
.sec { padding: 30px 0; }
.sec__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.sec__title { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border: 3px solid var(--out); border-radius: 14px; font-size: 22px; font-weight: 900; background: var(--yellow); box-shadow: 0 5px 0 var(--out); }
.sec__desc { font-size: 14px; color: #e6f7f2; }
.sec__desc b { color: var(--yellow); }

/* ---------- 명예의 전당 ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--paper); }
.tab { padding: 7px 14px; border: 0; border-radius: 9px; font-size: 14px; font-weight: 800; color: var(--ink-sub); background: transparent; cursor: pointer; }
.tab.is-on { color: #fff; background: var(--green); }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 12px; }
.pod { position: relative; padding: 0 12px 14px; border-radius: 20px; text-align: center; background: var(--paper); }
.pod__ava { width: 96px; margin: -10px auto 0; }
.pod--1 .pod__ava { width: 120px; }
.pod__ava svg { width: 100%; display: block; }
.pod__medal { position: absolute; top: 10px; left: 12px; font-size: 30px; }
.pod--1 { background: linear-gradient(#fff3c4, var(--paper)); }
.pod__store { font-size: 15px; font-weight: 900; }
.pod__who { font-size: 12px; color: var(--ink-mute); }
.pod__score { margin-top: 4px; font-size: 24px; font-weight: 900; color: var(--green); }
.pod__score small { font-size: 13px; }
.pod__lv { display: inline-block; padding: 1px 8px; border: 2px solid var(--out); border-radius: 6px; font-size: 11px; font-weight: 900; background: var(--yellow); }
.pod__ava--guild { display: flex; align-items: center; justify-content: center; height: 96px; font-size: 56px; }
.rank-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 16px; }
.rk { display: grid; grid-template-columns: 30px 38px 1fr auto; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 14px; background: var(--paper); box-shadow: 0 4px 0 var(--out); }
.rk__no { font-size: 15px; font-weight: 900; color: var(--ink-mute); text-align: center; }
.rk__ava { width: 38px; height: 38px; border: 2px solid var(--out); border-radius: 10px; background: var(--mint-soft); overflow: hidden; }
.rk__ava svg { width: 140%; margin: -2px 0 0 -20%; }
.rk__name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
.rk__name b { font-weight: 900; }
.rk__name small { margin-left: 4px; color: var(--ink-mute); }
.rk__score { font-size: 15px; font-weight: 900; color: var(--green); }
.rank-me { display: grid; grid-template-columns: 30px 38px 1fr auto; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 12px; border: 3px solid var(--out); border-radius: 14px; color: #fff; background: var(--pink); box-shadow: 0 5px 0 var(--out); }
.rank-me .rk__no, .rank-me .rk__score { color: #fff; }
.rank-me .rk__name small { color: rgba(255,255,255,.8); }
.rank-me__tag { margin-right: 6px; padding: 1px 6px; border: 2px solid var(--out); border-radius: 6px; font-size: 11px; font-weight: 900; color: var(--out); background: var(--yellow); }
.rate { display: inline-block; width: 60px; height: 8px; margin-left: 6px; vertical-align: middle; border: 1.5px solid var(--out); border-radius: 99px; background: #fff; overflow: hidden; }
.rate i { display: block; height: 100%; background: var(--pink); }

/* ---------- 모험 일지 ---------- */
.board__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.cal__head { display: flex; align-items: center; justify-content: space-between; }
.cal__title { display: flex; flex-direction: column; align-items: center; font-size: 19px; font-weight: 900; line-height: 1.25; }
.cal__title span { font-size: 13px; color: var(--green); }
.cal__nav { width: 38px; height: 38px; border: 3px solid var(--out); border-radius: 10px; font-size: 13px; background: var(--yellow); box-shadow: 0 3px 0 var(--out); cursor: pointer; }
.cal__nav:disabled { opacity: .35; cursor: default; }
.cal__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 10px; font-size: 12px; color: var(--ink-sub); }
.cal__legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal__week, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal__week span { padding: 4px 0; font-size: 12px; font-weight: 800; color: var(--ink-mute); text-align: center; }
.cal__week span:first-child { color: #e5484d; }
.day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 62px; padding: 5px 2px; border: 2px solid #e8dcc0; border-radius: 12px; background: #fff; cursor: pointer; }
.day__n { font-size: 13px; font-weight: 800; color: var(--ink-sub); }
.day--off { border-color: transparent; background: transparent; cursor: default; }
.day--off .day__n { color: #cbbf9f; }
.day--future { background: #fbf4e2; cursor: default; }
.day--future .day__n { color: var(--ink-mute); }
.day--today { border: 3px solid var(--pink); }
.day--today .day__n { color: var(--pink); font-weight: 900; }
.day--all { border: 3px solid var(--gold); background: #fff3c4; }
.day--sel { box-shadow: 0 0 0 3px var(--sky); }
.day__stamps { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.stamp { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 2px solid var(--out); border-radius: 50%; font-size: 8px; font-weight: 900; font-style: normal; color: #fff; transform: rotate(-12deg); }
.stamp--blog { background: var(--blog); }
.stamp--insta { background: var(--insta); }
.stamp--place { background: var(--place); }
.stamp--new { animation: stamp .55s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes stamp { 0% { transform: scale(3) rotate(-40deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1) rotate(-12deg); } }
.allkill { display: inline-block; padding: 0 4px; border: 2px solid var(--out); border-radius: 4px; font-size: 9px; font-weight: 900; font-style: normal; color: var(--out); background: var(--yellow); }
.day .allkill { position: absolute; top: -8px; right: -5px; }
.cal__detail { margin-top: 12px; padding: 12px 14px; border: 2px dashed #d9c79a; border-radius: 12px; font-size: 13px; background: #fff; }
.cal__detail b { display: block; margin-bottom: 6px; }
.cal__detail li { display: flex; align-items: center; gap: 6px; padding: 3px 0; color: var(--ink-sub); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.dash__h { font-size: 17px; font-weight: 900; }
.dash__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.stat { padding: 12px 14px; border: 3px solid var(--out); border-radius: 14px; background: #fff; }
.stat p { font-size: 12px; font-weight: 800; color: var(--ink-mute); }
.stat b { font-size: 28px; font-weight: 900; }
.stat span { margin-left: 2px; font-size: 13px; color: var(--ink-sub); }
.stat--main { background: var(--green); color: #fff; }
.stat--main p, .stat--main span { color: rgba(255,255,255,.75); }
.stat--main b { color: var(--yellow); }
.bump { display: inline-block; animation: bump .5s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }
.dash__tip { margin-top: 12px; padding: 12px; border: 2px dashed #d9c79a; border-radius: 12px; font-size: 13px; color: var(--ink-sub); background: #fff; }
.dash__tip b { color: var(--pink); }

/* ---------- 보급 상자 ---------- */
.new-badge { padding: 2px 8px; border: 2px solid var(--out); border-radius: 6px; font-size: 12px; color: #fff; background: #e5484d; }
.item-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.item { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--paper); }
.item--surprise { border-color: var(--out); background: linear-gradient(#fff3c4, var(--paper) 40%); }
.item--expired { opacity: .55; filter: grayscale(.6); }
.item__thumb { position: relative; aspect-ratio: 1 / 1; border-bottom: 3px solid var(--out); background: var(--mint-soft); overflow: hidden; }
.item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.item__thumb--text { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 18px; font-size: 13px; line-height: 1.6; color: var(--ink-sub); background: repeating-linear-gradient(#fff, #fff 25px, #f1e8d2 26px); }
.item__thumb--text b { font-size: 15px; color: var(--ink); }
.item__new { position: absolute; top: 10px; left: 10px; padding: 1px 8px; border: 2px solid var(--out); border-radius: 6px; font-size: 11px; font-weight: 900; color: #fff; background: #e5484d; }
.item__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px; }
.item__type { font-size: 12px; font-weight: 800; color: var(--sky); }
.item__title { font-size: 16px; font-weight: 900; line-height: 1.35; }
.item__from { font-size: 12px; color: var(--ink-mute); }
.item__actions { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; }
.ibtn { flex: 1; display: inline-flex; align-items: center; justify-content: center; height: 38px; border: 2px solid var(--out); border-radius: 10px; font-size: 13px; font-weight: 800; color: var(--ink); background: #fff; box-shadow: 0 3px 0 var(--out); cursor: pointer; text-decoration: none; }
.surprise { margin-top: 6px; padding: 10px; border: 2px solid var(--out); border-radius: 12px; background: #fff; }
.surprise__head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 900; color: #8a6200; }
.surprise__dday { padding: 0 7px; border: 2px solid var(--out); border-radius: 6px; font-size: 11px; color: #fff; background: var(--pink); }
.surprise p { margin-top: 4px; font-size: 12px; color: var(--ink-sub); }
.surprise .quest__btn { width: 100%; height: 40px; margin-top: 8px; color: var(--out); background: var(--yellow); }
.surprise--done { background: var(--mint-soft); }
.surprise--done .surprise__head { color: var(--green); }

/* ---------- 퀘스트 보드 ---------- */
.quests { padding-bottom: 60px; }
.q-group { margin: 22px 0 10px; font-size: 17px; font-weight: 900; color: #fff; text-shadow: 0 2px 0 var(--out); }
.q-group small { margin-left: 6px; font-size: 12px; font-weight: 500; color: #cdeee4; text-shadow: none; }
.q-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quest { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; background: var(--paper); }
.quest__top { display: flex; align-items: center; justify-content: space-between; }
.quest__ch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 900; }
.quest__xp { padding: 1px 10px; border: 2px solid var(--out); border-radius: 99px; font-size: 13px; font-weight: 900; background: var(--yellow); }
.quest__name { font-size: 17px; font-weight: 900; }
.quest__desc { font-size: 13px; color: var(--ink-sub); }
.quest__prog { height: 12px; margin-top: 4px; border: 2px solid var(--out); border-radius: 99px; background: #fff; overflow: hidden; }
.quest__prog i { display: block; height: 100%; background: var(--sky); }
.quest__prog-label { font-size: 12px; color: var(--ink-mute); }
.quest__btn { margin-top: 8px; height: 46px; border: 3px solid var(--out); border-radius: 12px; font-size: 15px; font-weight: 900; color: #fff; background: var(--green); box-shadow: 0 4px 0 var(--out); cursor: pointer; }
.quest__btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--out); }
.quest--done { background: var(--mint-soft); }
.quest--done .quest__btn, .surprise--done .quest__btn { color: var(--green); background: #fff; cursor: default; }
.quest--done::after { content: "CLEAR"; position: absolute; top: 10px; right: 70px; padding: 1px 8px; border: 3px solid var(--pink); border-radius: 6px; font-size: 13px; font-weight: 900; letter-spacing: .05em; color: var(--pink); background: #fff; transform: rotate(-10deg); }
.quest--auto .quest__btn { display: none; }

/* ---------- 모달 · 토스트 · FAB ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal__dim { position: absolute; inset: 0; background: rgba(5,20,15,.65); }
.modal__box { position: relative; width: 100%; max-width: 420px; padding: 28px 22px 22px; border-radius: 24px; background: var(--paper); text-align: center; }
.modal__x { position: absolute; top: 8px; right: 14px; border: 0; font-size: 28px; color: var(--ink-mute); background: none; cursor: pointer; }
.modal__badge { display: inline-block; padding: 2px 12px; border: 2px solid var(--out); border-radius: 99px; font-size: 13px; font-weight: 900; background: var(--yellow); }
.modal__title { margin-top: 10px; font-size: 22px; font-weight: 900; }
.modal__desc { margin: 8px 0 14px; font-size: 14px; color: var(--ink-sub); }
.modal__box input[type=url] { width: 100%; height: 50px; padding: 0 14px; border: 3px solid var(--out); border-radius: 12px; font-size: 15px; outline: none; background: #fff; }
.modal__file { display: block; margin-top: 10px; font-size: 13px; color: var(--ink-sub); text-align: left; }
.modal__file input { display: block; margin-top: 4px; font-size: 13px; }
.modal__err { min-height: 18px; margin-top: 6px; font-size: 13px; font-weight: 700; color: #e5484d; text-align: left; }
.btn { width: 100%; height: 54px; margin-top: 6px; border: 3px solid var(--out); border-radius: 14px; font-size: 17px; font-weight: 900; box-shadow: 0 5px 0 var(--out); cursor: pointer; }
.btn--go { color: #fff; background: var(--pink); }
.btn--link { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.chest { font-size: 72px; line-height: 1; animation: pop .7s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes pop { 0% { transform: scale(.2) rotate(-20deg); } 100% { transform: scale(1) rotate(0); } }
.copy__text { width: 100%; margin: 12px 0 4px; padding: 12px; border: 3px solid var(--out); border-radius: 12px; font-size: 14px; line-height: 1.6; resize: none; background: #fff; }

.modal__box--lvup { max-width: 460px; overflow: hidden; background: radial-gradient(circle at 50% 30%, #fff7cf, var(--paper) 60%); }
.modal__box--lvup::before { content: ""; position: absolute; inset: -50%; background: repeating-conic-gradient(rgba(255,214,90,.35) 0 10deg, transparent 10deg 20deg); animation: spin 12s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.modal__box--lvup > * { position: relative; }
.lvup__burst { display: inline-block; padding: 4px 18px; border: 3px solid var(--out); border-radius: 12px; font-size: 30px; font-weight: 900; letter-spacing: .04em; color: #fff; background: var(--pink); box-shadow: 0 5px 0 var(--out); animation: pop .6s cubic-bezier(.2,1.6,.4,1) both; }
.lvup__stage { position: relative; height: 210px; margin-top: 10px; }
.lvup__bld { position: absolute; right: 4%; bottom: 0; width: 60%; animation: bldRise .8s .3s cubic-bezier(.2,1.4,.4,1) both; }
.lvup__char { position: absolute; left: 8%; bottom: 0; width: 34%; animation: pop .7s .5s cubic-bezier(.2,1.6,.4,1) both; }
.lvup__bld svg, .lvup__char svg { width: 100%; display: block; }
@keyframes rise { 0% { transform: translateY(60px) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.lvup__sub { font-size: 14px; color: var(--ink-sub); }
.reward__item { display: inline-block; margin-top: 10px; padding: 6px 14px; border: 3px solid var(--out); border-radius: 12px; font-size: 18px; font-weight: 900; color: var(--out); background: var(--yellow); }

.toast { position: fixed; left: 50%; bottom: 90px; z-index: 70; transform: translateX(-50%); padding: 10px 18px; border: 3px solid var(--out); border-radius: 14px; font-size: 15px; font-weight: 900; color: var(--out); background: var(--yellow); box-shadow: 0 5px 0 var(--out); animation: toast 2.2s ease both; white-space: nowrap; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 20px); } 12%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 30; padding: 12px 18px; border: 3px solid var(--out); border-radius: 16px; font-size: 15px; font-weight: 900; color: #fff; text-decoration: none; background: var(--pink); box-shadow: 0 5px 0 var(--out); transition: opacity .25s, transform .25s; }
.fab.is-hidden { opacity: 0; pointer-events: none; transform: translateY(20px); }
.footer { padding: 24px 0 90px; font-size: 12px; color: #bfe0d5; text-align: center; }
@keyframes wiggle { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(-12deg); } 90% { transform: rotate(12deg); } }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .stage__grid, .board__grid { grid-template-columns: 1fr; }
  .scene { height: 300px; }
  .item-list { grid-template-columns: 1fr 1fr; }
  .q-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hud__xp { width: 110px; }
  .hud__name { font-size: 13px; }
  .res { padding: 4px 7px; font-size: 13px; }
  .scene { height: 250px; }
  .scene__char { width: 40%; }
  .status { padding: 18px; }
  .status__title { font-size: 24px; }
  .stats li { grid-template-columns: 100px 1fr 30px; }
  .road { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .road::before { top: 28px; }
  .node__ava { width: 56px; height: 56px; }
  .node__title { font-size: 11px; }
  .node__reward { font-size: 9px; padding: 2px 4px; }
  .sec__title { font-size: 18px; }
  .podium { gap: 6px; }
  .pod { padding: 0 6px 10px; }
  .pod__ava { width: 70px; }
  .pod--1 .pod__ava { width: 86px; }
  .pod__medal { font-size: 22px; top: 6px; left: 6px; }
  .pod__store { font-size: 12px; }
  .pod__who { font-size: 10px; }
  .pod__score { font-size: 18px; }
  .rank-list { grid-template-columns: 1fr; }
  .card { padding: 14px; }
  .day { min-height: 54px; border-radius: 9px; }
  .stamp { width: 14px; height: 14px; font-size: 7px; border-width: 1.5px; }
  .item-list { display: flex; gap: 12px; margin: 0 -20px; padding: 4px 20px 14px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .item { flex: 0 0 78%; scroll-snap-align: start; }
  .q-list { grid-template-columns: 1fr; }
}

/* ---------- 다듬기 ---------- */
.road { padding: 16px 12px 14px; border: 3px solid var(--out); border-radius: 20px; background: rgba(3,54,41,.88); box-shadow: 0 6px 0 var(--out); }
.road::before { top: 52px; }
.node__title { color: #fff; text-shadow: none; }
.scene__bld { width: 66%; }
@media (max-width: 640px) {
  .gbtn { height: 48px; font-size: 14px; }
  .stats__k small { display: none; }
  .road { padding: 12px 6px; }
  .road::before { top: 40px; }
}


/* =========================================================
   3안 — RISE UP 타워
   ========================================================= */
.tower-hero { padding: 22px 0 30px; background: linear-gradient(#071033 0%, #1d2f7a 30%, #3f8fe0 58%, #9fdcff 80%, #dff5ff 100%); }
.tower-hero .sky { display: none; }
.rising { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.rising i { position: absolute; bottom: -30px; font-size: 18px; font-weight: 900; color: rgba(255,255,255,.35); animation: rise 7s linear infinite; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(-110vh); opacity: 0; } }
.tower-hero__grid { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: stretch; }

.tower { position: relative; height: 640px; border: 3px solid var(--out); border-radius: 24px; overflow: hidden; box-shadow: 0 6px 0 var(--out);
  background:
    radial-gradient(circle at 20% 6%, #fff 1px, transparent 2px) 0 0 / 60px 60px,
    radial-gradient(circle at 70% 12%, #fff 1px, transparent 2px) 0 0 / 90px 90px,
    linear-gradient(#050b26 0%, #13226a 20%, #2f63c4 40%, #6cc0ff 60%, #b9e8ff 80%, #e9f8ff 92%); }
.tower__bands { position: absolute; inset: 0 0 46px 0; }
.band { position: absolute; left: 0; right: 0; border-top: 2px dashed rgba(255,255,255,.55); }
.band__label { position: absolute; top: 6px; left: 10px; padding: 2px 9px; border: 2px solid var(--out); border-radius: 8px; font-size: 12px; font-weight: 900; color: var(--out); background: rgba(255,255,255,.9); }
.band--reached .band__label { background: var(--yellow); }
.band__alt { position: absolute; top: -10px; right: 10px; font-size: 11px; font-weight: 900; color: #fff; text-shadow: 0 1px 0 var(--out); }
.cloud-band { position: absolute; left: -10%; right: -10%; height: 40px; border-radius: 99px; background: rgba(255,255,255,.75); filter: blur(2px); }

.tower__rail { position: absolute; left: 50%; top: 18px; bottom: 46px; width: 18px; margin-left: -9px; border: 3px solid var(--out); border-radius: 99px; background: repeating-linear-gradient(#fff 0 10px, #dfe7e4 10px 20px); }
.tower__rail i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 99px; background: linear-gradient(var(--yellow), var(--pink)); transition: height 1s cubic-bezier(.3,1.3,.5,1); }

.tower__me { position: absolute; left: 50%; width: 120px; margin-left: -60px; transition: bottom 1s cubic-bezier(.3,1.3,.5,1); z-index: 5; }
.tower__char { width: 92px; margin: 0 auto; animation: idle 2.2s ease-in-out infinite; }
.tower__char svg { width: 100%; display: block; filter: drop-shadow(0 0 10px rgba(255,214,90,.9)); }
.tower__char.jump { animation: jump .7s cubic-bezier(.3,1.6,.5,1); }
.tower__tag { display: block; width: max-content; margin: 2px auto 0; padding: 2px 10px; border: 3px solid var(--out); border-radius: 10px; font-size: 13px; font-weight: 900; color: #fff; background: var(--pink); box-shadow: 0 3px 0 var(--out); }
.tower__me .scene__pop { left: 50%; bottom: 100%; }

.tower__rivals .rival { position: absolute; display: flex; align-items: center; gap: 4px; z-index: 4; }
.rival--l { right: calc(50% + 22px); flex-direction: row-reverse; }
.rival--r { left: calc(50% + 22px); }
.rival__ava { width: 44px; height: 44px; border: 3px solid var(--out); border-radius: 50%; background: #fff; overflow: hidden; }
.rival__ava svg { width: 140%; margin: -2px 0 0 -20%; }
.rival__tag { padding: 1px 7px; border: 2px solid var(--out); border-radius: 8px; font-size: 11px; font-weight: 800; line-height: 1.35; background: #fff; white-space: nowrap; }
.rival__tag b { display: block; font-size: 12px; color: var(--green); }

.tower__chests .tchest { position: absolute; right: 12px; display: flex; align-items: center; gap: 4px; padding: 3px 8px 3px 4px; border: 2px solid var(--out); border-radius: 10px; font-size: 11px; font-weight: 800; background: #fff; transform: translateY(50%); z-index: 3; }
.tchest__i { font-size: 20px; }
.tchest--open { background: var(--mint); }
.tchest--open .tchest__i { animation: pop .6s cubic-bezier(.2,1.6,.4,1) both; }
.tchest--lock .tchest__i { filter: grayscale(1); opacity: .6; }

.tower__ground { position: absolute; left: -20px; right: -20px; bottom: 0; height: 46px; border-top: 3px solid var(--out); border-radius: 50% 50% 0 0 / 22px 22px 0 0; background: linear-gradient(#7ccf5f, #5cb146); display: flex; align-items: center; justify-content: center; }
.tower__ground span { padding: 2px 12px; border: 3px solid var(--out); border-radius: 8px; font-size: 13px; font-weight: 900; color: #fff; background: #8a5a3c; }

.tower-hero .status { display: flex; flex-direction: column; justify-content: center; }
.riseup { display: flex; align-items: flex-end; gap: 10px; margin-top: 6px; font-size: 76px; font-weight: 900; line-height: .9; letter-spacing: -0.02em; }
.riseup__word { display: inline-block; color: var(--green-deep); -webkit-text-stroke: 3px var(--out); color: #fff; text-shadow: 0 6px 0 var(--out); animation: riseIn .8s cubic-bezier(.2,1.5,.4,1) both; }
.riseup__word--up { position: relative; color: var(--yellow); animation-delay: .15s; }
.riseup__word--up i { position: absolute; top: -34px; right: -6px; font-size: 36px; font-style: normal; -webkit-text-stroke: 0; text-shadow: none; animation: bounceUp 1.2s ease-in-out infinite; }
@keyframes riseIn { 0% { transform: translateY(60px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes bounceUp { 50% { transform: translateY(-10px); } }
.tower-hero .status__desc b { color: var(--pink); }
.alt { margin-top: 14px; padding: 12px 14px; border: 3px solid var(--out); border-radius: 16px; background: #0b1a4a; color: #fff; }
.alt__k { font-size: 12px; font-weight: 800; color: #9fc4ff; }
.alt__v { font-size: 18px; font-weight: 900; }
.alt__v b { font-size: 48px; line-height: 1; color: var(--yellow); }
.alt__zone { font-size: 14px; font-weight: 800; }
.alt__zone em { padding: 0 7px; border: 2px solid var(--out); border-radius: 6px; font-size: 12px; color: var(--out); background: var(--yellow); }
.tower-hero .stage__season { align-self: flex-start; margin-top: 14px; }
.chest--drop { animation: drop 1s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes drop { 0% { transform: translateY(-120px) rotate(-10deg); } 100% { transform: none; } }

@media (max-width: 900px) {
  .tower-hero__grid { grid-template-columns: 1fr; }
  .tower { height: 560px; order: 2; }
  .tower-hero .status { order: 1; }
}
@media (max-width: 640px) {
  .riseup { font-size: 58px; }
  .alt__v b { font-size: 40px; }
  .tower__char { width: 74px; }
  .rival__ava { width: 36px; height: 36px; }
  .rival__tag { font-size: 10px; }
  .tchest { font-size: 10px; }
  .rival--l { right: calc(50% + 16px); }
  .rival--r { left: calc(50% + 16px); }
}

/* 3안 다듬기 — 이름표는 구역선 위, 보상은 이름표에, 라이벌은 오른쪽 */
.tower__bands { inset: 18px 0 46px 0; }
.band__label { top: auto; bottom: 6px; display: inline-flex; align-items: center; gap: 6px; }
.band__label small { font-size: 11px; color: var(--ink-mute); }
.band__reward { padding: 0 6px; border: 2px solid var(--out); border-radius: 6px; font-size: 11px; background: #fff; filter: grayscale(1); opacity: .75; }
.band--reached .band__reward { filter: none; opacity: 1; background: var(--mint); }
.band--reached .band__reward::after { content: " ✔"; }
.band__alt { display: none; }
.rival--target .rival__tag { background: var(--yellow); }
.rival--target .rival__ava { border-color: var(--pink); }
.tower__me { margin-left: -70px; }
@media (max-width: 640px) {
  .tower__rail { left: 58%; }
  .tower__me { left: 58%; }
  .rival--r { left: calc(58% + 14px); }
  .rival__tag { padding: 1px 5px; }
  .rival__tag b { font-size: 10px; }
  .rival__tag { font-size: 0; }
  .rival__tag b { font-size: 10px; }
  .band__label { left: 6px; padding: 1px 6px; font-size: 10px; gap: 3px; flex-wrap: wrap; max-width: 52%; }
  .band__label small { display: none; }
  .band__reward { font-size: 9px; padding: 0 4px; }
}
@media (max-width: 640px) { .hide-mo { display: none; } }

/* 이번 주 퀘스트 4칸 */
.q-list--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .q-list--4 { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   이벤트 히어로 — 이수지 · 기간 · 참여 방법 · 추첨 경품
   ========================================================= */
.event-hero { position: relative; overflow: hidden; padding: 30px 0 26px; color: #fff; border-bottom: 3px solid var(--out);
  background: radial-gradient(circle at 75% 40%, #0a8a69 0%, var(--green) 35%, var(--green-deep) 100%); }
.eh__rays { position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg at 72% 45%, rgba(255,255,255,.06) 0 8deg, transparent 8deg 16deg); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.eh__grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; align-items: end; }
.eh__copy { padding-bottom: 10px; }
.eh__badge { display: inline-block; padding: 5px 12px; border: 2px solid var(--out); border-radius: 99px; font-size: 13px; font-weight: 800; color: var(--out); background: var(--mint); }
.riseup { display: flex; align-items: flex-end; gap: 12px; margin-top: 10px; font-size: 92px; font-weight: 900; line-height: .9; letter-spacing: -0.02em; }
.riseup__word { display: inline-block; color: #fff; -webkit-text-stroke: 3px var(--out); text-shadow: 0 7px 0 var(--out); animation: riseIn .8s cubic-bezier(.2,1.5,.4,1) both; }
.riseup__word--up { position: relative; color: var(--yellow); animation-delay: .15s; }
.riseup__word--up i { position: absolute; top: -40px; right: -6px; font-size: 40px; font-style: normal; -webkit-text-stroke: 0; text-shadow: none; animation: bounceUp 1.2s ease-in-out infinite; }
@keyframes riseIn { 0% { transform: translateY(60px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes bounceUp { 50% { transform: translateY(-10px); } }
.eh__sub { margin-top: 16px; font-size: 19px; line-height: 1.55; color: rgba(255,255,255,.92); }
.eh__sub b { color: var(--yellow); }
.eh__info { display: grid; gap: 6px; margin-top: 16px; padding: 12px 14px; border: 3px solid var(--out); border-radius: 16px; color: var(--ink); background: var(--paper); box-shadow: 0 5px 0 var(--out); max-width: 460px; }
.eh__info div { display: flex; gap: 10px; font-size: 15px; }
.eh__info dt { flex: none; width: 64px; font-weight: 800; color: var(--ink-sub); }
.eh__info dd { font-weight: 800; }
.eh__info dd b { color: var(--pink); }
.eh__steps { display: flex; gap: 8px; margin-top: 14px; max-width: 460px; }
.eh__steps li { flex: 1; padding: 8px 6px; border: 2px solid rgba(255,255,255,.35); border-radius: 12px; font-size: 12px; line-height: 1.4; text-align: center; background: rgba(0,0,0,.15); }
.eh__steps b { display: block; width: 22px; height: 22px; margin: 0 auto 4px; border: 2px solid var(--out); border-radius: 50%; font-size: 12px; line-height: 18px; color: var(--out); background: var(--yellow); }
.eh__cta { display: flex; gap: 10px; margin-top: 16px; max-width: 460px; }
.eh__visual { position: relative; height: 470px; }
.eh__model { position: absolute; right: 0; bottom: -26px; height: 480px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.eh__bubble { position: absolute; left: 0; top: 40px; z-index: 2; padding: 12px 16px; border: 3px solid var(--out); border-radius: 18px; font-size: 16px; font-weight: 800; line-height: 1.3; text-align: center; color: var(--out); background: #fff; box-shadow: 0 5px 0 var(--out); transform: rotate(-6deg); animation: bob 3s ease-in-out infinite; }
.eh__bubble b { font-size: 24px; color: var(--pink); }
.eh__bubble::after { content: ""; position: absolute; right: -14px; top: 50%; width: 18px; height: 18px; border-top: 3px solid var(--out); border-right: 3px solid var(--out); background: #fff; transform: translateY(-50%) rotate(45deg); }
.eh__float { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border: 3px solid var(--out); border-radius: 99px; font-size: 18px; font-weight: 900; color: var(--out); background: #fff; box-shadow: 0 4px 0 var(--out); animation: bob 3s ease-in-out infinite; }
.eh__float .stamp { width: 24px; height: 24px; font-size: 11px; }
.eh__float--b { left: 8%; bottom: 34%; animation-delay: .6s; }
.eh__float--i { right: 0; top: 30%; animation-delay: 1.2s; }
.eh__float--p { left: 22%; bottom: 10%; animation-delay: 1.8s; }
@keyframes bob { 50% { translate: 0 -10px; } }
.eh__prizes { position: relative; margin-top: 18px; padding: 16px; border: 3px solid var(--out); border-radius: 20px; color: var(--ink); background: var(--paper); box-shadow: 0 6px 0 var(--out); }
.eh__prizes-title { font-size: 18px; font-weight: 900; }
.eh__prizes-title small { margin-left: 6px; font-size: 13px; font-weight: 600; color: var(--ink-sub); }
.eh__prize-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.eh__prize-list li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border: 2px solid var(--out); border-radius: 14px; font-size: 13px; font-weight: 700; text-align: center; background: #fff; }
.eh__prize-list span { font-size: 28px; line-height: 1.1; }
.eh__prize-list b { padding: 0 8px; border: 2px solid var(--out); border-radius: 6px; font-size: 12px; font-weight: 900; background: var(--yellow); }
.eh__prize-list em { font-size: 13px; font-weight: 900; color: var(--pink); }
.eh__prize--week { background: var(--mint-soft) !important; }
.eh__prize--week b { background: var(--mint); }
.eh__prizes-note { margin-top: 10px; font-size: 12px; color: var(--ink-mute); }

@media (max-width: 900px) {
  .eh__grid { grid-template-columns: 1fr; }
  .eh__visual { height: 340px; }
  .eh__model { right: 50%; height: 350px; transform: translateX(50%); }
  .eh__prize-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .riseup { font-size: 64px; }
  .eh__sub { font-size: 16px; }
  .eh__info div { font-size: 14px; }
  .eh__bubble { top: 16px; font-size: 13px; }
  .eh__bubble b { font-size: 19px; }
  .eh__prize-list { grid-template-columns: 1fr 1fr; }
  .eh__prize--week { grid-column: span 2; }
}
@keyframes bldRise { 0% { transform: translateY(60px) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (max-width: 640px) { .riseup__word--up i { top: -24px; font-size: 24px; } }

/* =========================================================
   3안 다듬기 — 고양이 캐릭터
   ========================================================= */
.cat { position: relative; display: block; width: 100%; container-type: inline-size; }
.cat img { display: block; width: 100%; height: auto; }
.rk__ava, .hud__ava, .rival__ava { display: flex; align-items: center; justify-content: center; padding: 3px; background: #fff; }
.rk__ava .cat, .hud__ava .cat, .rival__ava .cat { width: 100%; }
.rk__ava svg, .hud__ava svg, .rival__ava svg { display: none; }
.tower__char { width: 108px; }
.tower__char .cat img { filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 2px #fff); }
.pod__ava { padding: 18px 10px 4px; }
.lvup__char { width: 30%; bottom: 6px; }
@media (max-width: 640px) { .tower__char { width: 84px; } }
.stats li { grid-template-columns: 140px 1fr 34px; }
.stats__k { white-space: nowrap; }
@media (max-width: 640px) { .stats li { grid-template-columns: 124px 1fr 30px; } }

/* =========================================================
   운영 — 로그인 · 시즌 안내 · 로그아웃
   ========================================================= */
.season-note { padding: 10px 16px; text-align: center; font-size: 14px; font-weight: 800; color: var(--out); background: var(--yellow); border-bottom: 3px solid var(--out); }
.res--out { cursor: pointer; font-size: 12px; color: #fff; }
.modal--login { z-index: 80; }
.modal--login .modal__dim { background: rgba(3,30,22,.82); }
.login { max-width: 400px; }
.login__cat { width: 96px; margin: -60px auto 6px; display: block; filter: drop-shadow(0 4px 0 rgba(0,0,0,.2)); }
.login select, .login input { display: block; width: 100%; height: 48px; margin-top: 8px; padding: 0 12px; border: 3px solid var(--out); border-radius: 12px; font-size: 15px; background: #fff; }
.login select:disabled { background: #eee; color: var(--ink-mute); }
.login .modal__desc b { color: var(--pink); }
.login__help { margin-top: 10px; font-size: 12px; color: var(--ink-mute); }
.rejected-note { display: block; font-size: 11px; color: #e5484d; }
.rank-empty { grid-column: 1 / -1; padding: 24px; border: 3px dashed rgba(255,255,255,.4); border-radius: 16px; text-align: center; font-size: 15px; font-weight: 700; color: #fff; }
/* 긴 주소가 칸을 밀어내 휴대폰 화면이 옆으로 넓어지지 않게 — flex·grid 항목은 min-width 를 풀어야 줄어든다 */
.cal__detail a { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--sky); }
.cal__detail .stamp { flex: none; }
.board__grid > * { min-width: 0; }
/* 블로그 대표 이미지 만들기 */
.bi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 12px; text-align: left; }
.bi__view canvas { display: block; width: 100%; height: auto; border: 3px solid var(--ink); border-radius: 14px; background: #fff; }
.bi__no { margin: 6px 0 0; font-size: 12px; text-align: center; color: var(--ink-sub); }
.bi__form .sf-label:first-child { margin-top: 0; }
.bi__form input, .bi__form textarea { width: 100%; }
.bi__form textarea { resize: vertical; }
@media (max-width: 720px) { .bi { grid-template-columns: 1fr; } .bi__view { max-width: 340px; margin: 0 auto; } }
.sm-photo__tip { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-sub); text-align: center; }
.sm-photo__tip b { color: var(--ink); }

/* 로그인 전 — 현황 패널 안 로그인 폼 */
.status-login { margin-top: 10px; }
.status-login__lead { font-size: 15px; line-height: 1.6; color: var(--ink-sub); }
.status-login__lead b { color: var(--pink); }
.status-login__field { display: block; margin-top: 12px; }
.status-login__field span { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 800; color: var(--ink-sub); }
.status-login__field span small { font-weight: 600; color: var(--ink-mute); }
.status-login__field input[readonly] { color: var(--ink-sub); background: #f3efe2; }
.status-login [hidden] { display: none; }
.status-login__field input { width: 100%; height: 50px; padding: 0 14px; border: 3px solid var(--out); border-radius: 12px; font-size: 16px; background: #fff; outline: none; }
.status-login__field input:focus { border-color: var(--pink); }
.status-login__btn { display: flex; width: 100%; margin-top: 6px; border: 3px solid var(--out); cursor: pointer; }
.status-login__help { margin-top: 10px; font-size: 12px; color: var(--ink-mute); }
.status.is-focus { animation: focusRing 1.2s ease 2; }
@keyframes focusRing { 50% { box-shadow: 0 0 0 6px var(--pink), 0 6px 0 var(--out); } }
.rank-login { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rank-login button { flex: none; padding: 6px 12px; border: 2px solid var(--out); border-radius: 10px; font-size: 13px; font-weight: 900; color: var(--out); background: var(--yellow); cursor: pointer; }
.rank-me .rk__name { white-space: normal; line-height: 1.35; }

/* 구간 150점 */
.eh__prize-list--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .eh__prize-list--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .eh__prize-list--5 { grid-template-columns: 1fr 1fr; } .eh__prize-list--5 .eh__prize--week { grid-column: span 2; } }

/* 보상 칩이 두 개인 구간 이름표는 기둥 왼쪽 안에서 줄바꿈 */
.band__label { max-width: calc(50% - 22px); flex-wrap: wrap; row-gap: 3px; }
@media (max-width: 640px) { .band__label { max-width: calc(58% - 18px); } }
.eh__model { width: auto; }
@media (max-width: 640px) { .eh__cta .gbtn { padding: 0 8px; font-size: 14px; white-space: nowrap; } }

/* ---------------- 숏폼 생성기 ---------------- */
.sf-card { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 16px 18px; border: 3px solid var(--out); border-radius: 20px; background: linear-gradient(120deg, #fff 0%, #eafff7 100%); box-shadow: 0 6px 0 var(--out); }
.sf-card__icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border: 3px solid var(--out); border-radius: 16px; font-size: 28px; background: var(--yellow); }
.sf-card__body { flex: 1; min-width: 0; }
.sf-card__title { font-size: 18px; font-weight: 900; }
.sf-card__badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 900; color: #fff; background: var(--green); vertical-align: 2px; }
.sf-card__desc { margin-top: 4px; font-size: 13.5px; color: var(--ink-sub); }
.gbtn--sf { flex: none; width: 108px; color: #fff; background: var(--green); cursor: pointer; }
.ibtn--sf { color: #fff; background: var(--green); }
@media (max-width: 640px) {
  .sf-card { flex-wrap: wrap; }
  .gbtn--sf { width: 100%; }
}

.modal--sf { align-items: flex-start; overflow-y: auto; padding: 24px 12px; }
.sf-box { max-width: 560px; margin: auto; text-align: left; }
.sf-box .modal__title { text-align: center; }
.sf-quota { margin: 4px 0 14px; font-size: 12.5px; color: var(--ink-mute); text-align: center; }
.sf-from { margin-bottom: 10px; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; background: #fff3c4; }
.sf-label { display: block; margin: 14px 0 6px; font-size: 14px; font-weight: 900; }
.sf-label small { font-weight: 600; color: var(--ink-mute); }
.sf-label b { color: var(--green); }
.sf-box textarea, .sf-box input:not([type=range]), .sf-box select { width: 100%; padding: 10px 12px; border: 2px solid var(--out); border-radius: 10px; font: inherit; font-size: 15px; background: #fff; outline: none; resize: vertical; }
.sf-box input[type=range] { width: 100%; accent-color: var(--green); }
.sf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sf-chip { padding: 5px 10px; border: 2px solid var(--out); border-radius: 99px; font-size: 12.5px; font-weight: 700; background: #fff; cursor: pointer; }
.sf-chip.is-on { color: #fff; background: var(--green); }
.sf-styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sf-style { display: block; padding: 4px 4px 6px; border: 2px solid var(--out); border-radius: 12px; font: inherit; text-align: center; background: #fff; cursor: pointer; }
.sf-style img, .sf-style video { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 8px; object-fit: cover; background: #eee; }
.sf-style b { display: block; margin-top: 5px; font-size: 12px; font-weight: 900; line-height: 1.25; word-break: keep-all; }
.sf-style small { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 600; line-height: 1.3; color: var(--ink-mute); word-break: keep-all; }
.sf-style.is-on { border-color: var(--green); box-shadow: 0 0 0 3px var(--green); }
.sf-styles--small { margin-bottom: 12px; }
.sf-styles--small .sf-style small { display: none; }
.sf-styles--small .sf-style img { aspect-ratio: 9 / 10; object-position: top; }
.sf-link { display: block; margin: 10px auto 0; border: 0; font-size: 13.5px; font-weight: 700; color: var(--ink-sub); text-decoration: underline; background: none; cursor: pointer; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.sf-bar { display: flex; gap: 3px; height: 28px; padding: 3px; border: 2px solid var(--out); border-radius: 10px; background: #fff; }
.sf-bar__seg { display: grid; place-items: center; min-width: 18px; border-radius: 6px; font-size: 12px; font-style: normal; font-weight: 900; color: #fff; }
.sf-bar__seg--hook { background: var(--pink); }
.sf-bar__seg--points { background: var(--sky); }
.sf-bar__seg--quote { background: var(--gold); }
.sf-bar__seg--cta { background: var(--green); }
.sf-bar__rest { border-radius: 6px; background: repeating-linear-gradient(45deg, #eee 0 6px, #f8f8f8 6px 12px); }
.sf-need { margin: 6px 0 10px; font-size: 12.5px; color: var(--ink-sub); }
.sf-need--over { font-weight: 800; color: #e5484d; }
.sf-scene { margin-bottom: 10px; padding: 12px; border: 2px solid var(--out); border-radius: 14px; background: #fff; }
.sf-scene__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sf-scene__head b { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; color: #fff; background: var(--out); }
.sf-scene__head select { flex: 1; padding: 6px 8px; font-size: 14px; font-weight: 800; }
.sf-scene__sec { flex: none; font-size: 12px; font-weight: 800; color: var(--ink-sub); }
.sf-scene__del { flex: none; border: 0; font-size: 22px; line-height: 1; color: var(--ink-mute); background: none; cursor: pointer; }
.sf-scene label, .sf-row label { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 800; color: var(--ink-sub); }
.sf-scene label small, .sf-row label small { font-weight: 600; color: var(--ink-mute); }
.sf-scene input, .sf-scene textarea { margin-top: 3px; }
.sf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sf-row--btn { margin-top: 4px; }
.sf-row--btn .ibtn { height: 44px; }

#sfMake { text-align: center; }
.sf-film { font-size: 52px; animation: sfSpin 2.4s linear infinite; }
@keyframes sfSpin { to { transform: rotate(360deg); } }
.sf-make__title { margin: 8px 0 12px; font-size: 18px; font-weight: 900; text-align: center; }
.sf-prog { height: 18px; border: 2px solid var(--out); border-radius: 99px; overflow: hidden; background: #fff; }
.sf-prog i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(45deg, var(--green) 0 10px, #0a7a5e 10px 20px); transition: width .6s; }
.sf-video { display: block; width: 100%; max-width: 270px; aspect-ratio: 9 / 16; margin: 0 auto 10px; border: 3px solid var(--out); border-radius: 16px; background: #000; }

.sf-mine { margin-top: 18px; padding-top: 12px; border-top: 2px dashed #d9d2bd; }
.sf-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sf-thumb { position: relative; aspect-ratio: 9 / 16; padding: 0; border: 2px solid var(--out); border-radius: 10px; overflow: hidden; background: #e9efe9; cursor: pointer; }
.sf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sf-thumb__st { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 900; color: var(--ink-sub); }
.sf-thumb__t { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; font-size: 11px; font-weight: 800; color: #fff; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(0,0,0,.6); }
.toast { z-index: 95; }

/* ---------------- 카드뉴스 ---------------- */
.item__thumb[data-slides] { position: relative; cursor: pointer; }
.item__count { position: absolute; right: 8px; bottom: 8px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 900; color: #fff; background: rgba(0,0,0,.65); }
.modal--slides { align-items: flex-start; overflow-y: auto; padding: 24px 12px; }
.slides-box { max-width: 560px; margin: auto; }
.slides { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.slide { flex: 0 0 82%; scroll-snap-align: center; margin: 0; }
.slide img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 3px solid var(--out); border-radius: 14px; background: #fff; }
.slide figcaption { display: flex; justify-content: space-between; margin-top: 6px; font-size: 13px; font-weight: 800; color: var(--ink-sub); }
.slide figcaption a { color: var(--green); }

/* 숏폼 기획 카드 · 새 장면 종류 */
.sf-plan { display: grid; gap: 3px; margin-bottom: 10px; padding: 10px 12px; border: 2px solid var(--out); border-radius: 12px; font-size: 12.5px; color: var(--ink-sub); background: #eef1ff; }
.sf-plan b { font-size: 14px; color: var(--ink); }
.sf-scene__role { flex: none; padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 800; color: #3d4bb0; background: #eef1ff; }
.sf-bar__seg--number { background: #7c5cd6; }
.sf-bar__seg--versus { background: #e0636c; }

/* 숏폼 — 포맷 선택·기획 비트·한 줄 강조 */
#sfFormat { width: 100%; }
.sf-len-sel { width: auto !important; padding: 2px 6px !important; font-size: 12.5px !important; }
.sf-plan ol { margin: 4px 0; padding-left: 18px; }
.sf-plan li { margin: 2px 0; }
.sf-plan li i { font-style: normal; color: #3d4bb0; }
.sf-link--left { margin: 4px 0 0; text-align: left; }
.sf-bar__seg--punch { background: #0f8a72; }

/* 숏폼 장면 그림 */
.sf-art { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.sf-art__label { font-size: 12.5px; font-weight: 800; color: var(--ink-sub); }
.sf-art__chip { position: relative; width: 56px; height: 56px; border: 2px solid var(--out); border-radius: 10px; background: #fff8e7; }
.sf-art__chip img { width: 100%; height: 100%; object-fit: contain; }
.sf-art__chip button { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border: 0; border-radius: 50%; font-size: 14px; line-height: 22px; color: #fff; background: var(--out); cursor: pointer; }
.sf-art select { width: auto !important; max-width: 200px; padding: 6px 8px !important; font-size: 13px !important; }

/* 오프라인 미션 — 사진 인증 */
.sm-photo { display: grid; gap: 8px; }
.sm-photo__pick { display: flex; align-items: center; justify-content: center; height: 54px; border: 3px dashed var(--out); border-radius: 12px; font-size: 15px; font-weight: 800; background: #fff; cursor: pointer; }
.sm-photo__pick input { display: none; }
.sm-photo__preview { width: 100%; max-height: 260px; object-fit: contain; border-radius: 12px; border: 2px solid var(--out); background: #fff; }
.stamp--offline { background: #7c5cd6; }

/* 미래엔영어 공식 로고 (파일 그대로) */
.eh__logo { display: block; width: auto; height: 48px; margin-bottom: 12px; padding: 8px 18px; border: 2px solid var(--out); border-radius: 99px; background: #fff; box-sizing: content-box; }
@media (max-width: 640px) { .eh__logo { height: 38px; padding: 6px 14px; } }

/* ---------------- AI 가 만드는 중 (블로그 글 · 숏폼 대본 · 영상) — 기다리는 동안 움직임과 단계를 보여 준다 ---------------- */
.aiwait { margin-top: 12px; padding: 18px 16px 14px; border: 3px solid var(--out); border-radius: 18px; text-align: center; background: linear-gradient(160deg, #fff 0%, #eafff7 100%); }
.aiwait__icon { display: inline-block; font-size: 46px; line-height: 1; animation: aiBob 1.1s ease-in-out infinite; }
@keyframes aiBob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-9px) rotate(6deg); } }
.aiwait__title { margin: 8px 0 12px; font-size: 17px; font-weight: 900; }
.aiwait__title::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: aiDots 1.4s steps(1) infinite; }
@keyframes aiDots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.aiwait__steps { margin: 0 0 12px; padding: 0; list-style: none; text-align: left; }
.aiwait__steps li { display: flex; align-items: center; gap: 8px; padding: 5px 2px; font-size: 14px; font-weight: 700; color: var(--ink-mute); }
.aiwait__steps li::before { content: ""; flex: none; width: 18px; height: 18px; border: 2px solid #c9c2ad; border-radius: 50%; background: #fff; }
.aiwait__steps li.is-on { color: var(--ink); font-weight: 900; }
.aiwait__steps li.is-on::before { border-color: var(--green); border-top-color: transparent; animation: sfSpin .8s linear infinite; }
.aiwait__steps li.is-done { color: var(--ink-sub); }
.aiwait__steps li.is-done::before { content: "✓"; display: grid; place-items: center; border-color: var(--green); font-size: 12px; font-weight: 900; color: #fff; background: var(--green); }
.aiwait__steps small { font-weight: 700; color: var(--green); }
.aiwait__time { margin-top: 8px; font-size: 13px; font-weight: 800; color: var(--ink-sub); }
.aiwait__note { margin-top: 2px; font-size: 12.5px; color: var(--ink-mute); }
/* 진행 막대의 줄무늬가 계속 흘러서 멈춘 것처럼 보이지 않게 한다 */
.sf-prog i { background-size: 28.28px 28.28px; animation: aiStripe .9s linear infinite; }
@keyframes aiStripe { to { background-position: 28.28px 0; } }
@media (prefers-reduced-motion: reduce) { .aiwait__icon, .sf-film, .sf-prog i { animation: none; } }

#imgModal .sf-box { max-width: 780px; }

/* ---------- 카드뉴스 직접 만들기 (cardgen.js) ---------- */
#cgModal .sf-box { max-width: 860px; width: 100%; min-width: 0; }
.cg-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; margin-top: 10px; scroll-snap-type: x proximity; }
.cg-tab { flex: 0 0 96px; padding: 0; border: 3px solid transparent; border-radius: 10px; background: none; cursor: pointer; text-align: center; scroll-snap-align: start; font: inherit; }
.cg-tab img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 7px; }
.cg-tab span { display: block; margin-top: 4px; font-size: 11px; font-weight: 800; color: var(--ink-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-tab.on { border-color: #ff7a00; }
.cg-tab--sq { flex-basis: 108px; }
.cg-tab--sq canvas { display: block; width: 100%; aspect-ratio: 1; border-radius: 7px; background: #222; }
.cg-tab.on span { color: var(--ink); }
.cg-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.cg-guide { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.cg-page { margin: 0 0 4px; font-size: 16px; font-weight: 900; color: var(--green); }
.cg-ex { margin: 4px 0 0; font-size: 12px; line-height: 1.45; color: var(--ink-mute); }
/* 사진 바꾸기 — 사진 칸이 있는 장·디자인에서만 */
.cg-photo { margin: 0 0 6px; padding: 10px 12px 12px; border-radius: 12px; background: var(--mint-soft); }
.cg-photo .sf-label { margin-top: 0; }
.cg-photo__row { display: flex; flex-wrap: wrap; gap: 8px; }
.cg-photo__pick { cursor: pointer; }
.cg-photo__mine { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cg-photo__one { width: 56px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; }
.cg-photo__one img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cg-photo__one.on { border-color: #ff7a00; }
.cg-warn { margin: 12px 0 0; padding: 8px 10px; border-radius: 8px; background: #fff2e0; color: #a34b00; font-size: 13px; font-weight: 800; }
.cg-note { margin: 8px 0 0; font-size: 12px; color: var(--ink-mute); }
.cg .bi__form { max-height: 70vh; overflow-y: auto; padding-right: 4px; }
@media (max-width: 720px) { .cg .bi__form { max-height: none; } }

/* ---------- 지사 계정 — 소속 가맹점 현황 ---------- */
.status-branch__name { margin-top: 10px; font-size: 24px; font-weight: 900; }
.status-branch__who { margin-top: 2px; font-size: 15px; font-weight: 700; color: var(--ink-sub); }
.status-branch .status__desc { margin: 10px 0 16px; line-height: 1.6; }
.br-help { margin: -4px 0 14px; font-size: 13.5px; line-height: 1.6; color: #e6f7f2; }
.br-help b { color: var(--yellow); }
.br-list { display: grid; gap: 10px; }
.br { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 64px 150px; align-items: center; gap: 12px; padding: 10px 14px; border: 3px solid var(--out); border-radius: 14px; background: var(--paper); box-shadow: 0 4px 0 var(--out); }
.br--off { background: #e9efe9; box-shadow: none; border-color: rgba(27,43,38,.35); }
.br__no { font-size: 16px; font-weight: 900; color: var(--ink-mute); text-align: center; }
.br__name { min-width: 0; }
.br__name b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 16px; font-weight: 900; }
.br__name small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12.5px; color: var(--ink-mute); }
.br__chs { display: flex; gap: 6px; }
.br__ch { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 3px solid var(--out); border-radius: 12px; font-size: 19px; text-decoration: none; background: #fff; box-shadow: 0 3px 0 var(--out); transition: transform .1s, box-shadow .1s; }
a.br__ch:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--out); }
.br__ch--blog { background: #d9f7e5; }
.br__ch--insta { background: #f9dcee; }
.br__ch--place { background: #fde6cc; }
.br__ch--none { border-color: rgba(27,43,38,.25); box-shadow: none; background: transparent; filter: grayscale(1); opacity: .35; }
.br__score { font-size: 20px; font-weight: 900; color: var(--green); text-align: right; }
.br__score small { margin-left: 1px; font-size: 12px; }
.br--off .br__score { color: var(--ink-mute); }
.br__btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 40px; padding: 0 10px; border: 3px solid var(--out); border-radius: 12px; font-size: 13.5px; font-weight: 900; color: var(--out); background: var(--yellow); box-shadow: 0 3px 0 var(--out); cursor: pointer; white-space: nowrap; }
.br__btn b { padding: 0 6px; border-radius: 99px; font-size: 12px; color: #fff; background: var(--out); }
.br__btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--out); }
.br__btn--none { border-color: transparent; box-shadow: none; font-weight: 700; color: var(--ink-mute); background: none; cursor: default; }
.br-box { max-width: 560px; text-align: left; }
.br-box .modal__title, .br-box .modal__desc { text-align: center; }
.br-subs { display: grid; gap: 8px; }
.br-sub { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border: 2px solid var(--out); border-radius: 12px; background: #fff; }
.br-sub--rej { background: #fdecec; }
.br-sub__date { font-size: 14px; font-weight: 900; text-align: center; line-height: 1.2; }
.br-sub__date small { display: block; font-size: 11px; font-weight: 700; color: var(--ink-mute); }
.br-sub__what { min-width: 0; font-size: 13.5px; color: var(--ink-sub); }
.br-sub__what b { font-weight: 900; color: var(--ink); }
.br-sub__what small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: var(--ink-mute); }
.br-sub__what em { display: block; font-size: 12px; font-style: normal; font-weight: 700; color: #e5484d; }
.br-sub__go { padding: 6px 10px; border: 2px solid var(--out); border-radius: 10px; font-size: 13px; font-weight: 900; color: var(--out); text-decoration: none; background: var(--mint-soft); white-space: nowrap; }
@media (max-width: 640px) {
  .br { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px 10px; padding: 10px 12px; }
  .br__chs { grid-column: 2; grid-row: 2; }
  .br__score { grid-column: 3; grid-row: 1; }
  .br__btn { grid-column: 3; grid-row: 2; height: 36px; font-size: 12.5px; }
  .br__ch { width: 36px; height: 36px; font-size: 17px; }
}
/* 지사 계정은 내 점수·레벨이 없다 — 위쪽 막대에서 감춘다 */
.is-branch span.res, .is-branch #playerLv { display: none; }

/* 첫 화면 알림 (notice.js · 영어만) */
.nt-box { width: min(460px, calc(100vw - 32px)); max-width: none; box-sizing: border-box; max-height: calc(100vh - 32px); overflow-y: auto; }
.nt-box .modal__title, .nt-box .modal__desc { word-break: keep-all; }
.nt-img { display: block; width: 100%; border-radius: 12px; margin: 4px 0 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.nt-sub { margin: 0 0 6px; font-size: 14px; font-weight: 800; color: var(--green); }
.nt-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.nt-list li { text-align: left; padding: 8px 10px; border-radius: 10px; background: var(--mint-soft); font-size: 13px; line-height: 1.45; color: var(--ink); }
.nt-list b { display: block; font-size: 11px; color: var(--green); }
.nt-list em { font-style: normal; font-weight: 800; color: #d94f00; }
.nt-list em.nt-done { color: var(--ink-mute); }
.nt-foot { display: flex; justify-content: space-between; margin-top: 10px; }
.nt-link { border: 0; background: none; padding: 6px 2px; font-size: 13px; color: var(--ink-sub); text-decoration: underline; cursor: pointer; }
