:root {
  --bg: #f4f8ff; --ink: #33384f; --ink2: #586282; --pink: #6aa6f0; --pink2: #d3e6ff; --mint: #8ce0c4; --mint2: #d8f7ec;
  --sky: #a5d8ff; --lemon: #9ccbf5; --lilac: #d0bfff; --card: #ffffff; --line: #cbd8ec; --red: #ff6b6b; --shadow: 0 3px 0 rgba(70,95,150,.28);
  --font: system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #dfeaf8; color: var(--ink); font-family: var(--font); overflow: hidden; }
body { overscroll-behavior: none; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
#app { position: relative; height: 100dvh; max-width: 560px; margin: 0 auto; background: var(--bg); overflow: hidden; }
button { font-family: inherit; color: var(--ink); border: 0; cursor: pointer; min-height: 44px; min-width: 44px; border-radius: 14px; font-size: 15px; }
button:disabled { opacity: .5; cursor: default; }
.cta { background: linear-gradient(#d63370, #c2255c); color: #fff; font-weight: 800; font-size: 18px; min-height: 56px; padding: 0 20px; box-shadow: var(--shadow); } /* 흰 글자 대비 4.6:1 이상 */
.cta2 { background: linear-gradient(#a8ecd4, var(--mint)); color: #20503f; font-weight: 800; font-size: 16px; min-height: 52px; box-shadow: var(--shadow); }
.sec { background: var(--card); border: 2px solid var(--line); font-weight: 700; min-height: 48px; }
.ghost { background: rgba(255,255,255,.75); border: 2px solid var(--line); font-weight: 700; padding: 0 10px; }
.icon { width: 44px; padding: 0; font-size: 16px; }
.glow { animation: glow 1s ease-in-out infinite; position: relative; z-index: 2; }
@keyframes glow { 0%,100% { box-shadow: 0 0 0 0 rgba(106,166,240,.0), var(--shadow); } 50% { box-shadow: 0 0 0 6px rgba(106,166,240,.55), var(--shadow); } }

.scr { position: absolute; inset: 0; display: none; flex-direction: column; }
.scr.on { display: flex; }
.bar { display: flex; align-items: center; gap: 6px; padding: 6px 8px; height: 56px; flex: none; }
.bar h2 { flex: 1; margin: 0; font-size: 18px; }

/* 시작 화면 */
#scrTitle { background: linear-gradient(#d6e9ff, #e9f6ff); align-items: center; justify-content: center; }
.titleBox { text-align: center; padding: 16px; width: 100%; }
.logo { width: min(150px, 38vw); height: auto; display: block; margin: 0 auto -2px; filter: drop-shadow(0 3px 0 rgba(60,80,130,.25)); }
.kicker { margin: 0; color: var(--ink2); font-size: 14px; font-weight: 700; }
h1 { margin: 4px 0 0; font-size: 34px; line-height: 1.05; letter-spacing: -1px; color: #2f5fb8; -webkit-text-stroke: 1px #fff; paint-order: stroke fill; text-shadow: 0 3px 0 #fff, 0 5px 0 rgba(60,80,130,.25); display: flex; flex-direction: column; align-items: center; }
h1 .t2 { font-size: 40px; color: #c2255c; }
.subTitle { margin: 4px 0 8px; font-size: 15px; font-weight: 800; letter-spacing: 6px; color: #586282; }
.heroRow { display: flex; justify-content: center; gap: 4px; }
.heroRow img { width: 30%; max-width: 120px; animation: bob 2.4s ease-in-out infinite; }
.heroRow img:nth-child(2) { animation-delay: .4s; } .heroRow img:nth-child(3) { animation-delay: .8s; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.sub { font-size: 15px; line-height: 1.5; margin: 10px 0 16px; }
#btnStart { width: min(280px, 90%); }
.note { font-size: 14px; color: var(--ink2); line-height: 1.55; margin-top: 14px; }
.ageBox { margin: 0 auto 14px; width: min(320px, 92%); border: 2px solid #c2255c; background: #fff; color: #8f1d48; border-radius: 14px; padding: 8px 10px; font-size: 15px; font-weight: 800; line-height: 1.4; }
.badge { display: inline-block; background: #c2255c; color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 800; margin-bottom: 4px; }

/* 지도 */
.mapBody { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0 12px 12px; }
.mapBody h3 { font-size: 15px; margin: 14px 0 6px; }
.stageList { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.stageBtn { background: var(--card); border: 2px solid var(--line); min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2px; font-weight: 800; font-size: 17px; }
.stageBtn small { font-size: 12px; color: #f0a020; letter-spacing: -1px; font-weight: 700; }
.stageBtn.sel { border-color: var(--pink); background: var(--pink2); }
.stageBtn.lock { background: #ebeef4; color: #9aa5bb; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--card); border: 2px solid var(--line); display: flex; align-items: center; gap: 4px; padding: 2px 10px 2px 4px; min-height: 52px; font-size: 14px; font-weight: 700; }
.chip img { width: 40px; height: 40px; object-fit: contain; }
.chip.on { border-color: var(--pink); background: var(--pink2); }
.chip.lock { opacity: .5; }
.chip .em { font-size: 22px; width: 36px; text-align: center; }
.msg { font-size: 13px; color: var(--ink2); min-height: 18px; }
.mapFoot { padding: 8px 12px 12px; flex: none; }
.mapFoot .cta { width: 100%; }

/* 게임 화면 */
#hud { background: rgba(255,255,255,.6); }
.hudMid { flex: 1; min-width: 0; }
#hudLabel { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hpRow { display: flex; align-items: center; gap: 4px; }
.hpIc { flex: none; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.hpIc img { width: 22px; height: 22px; object-fit: contain; }
.hpRow .hpBar { flex: 1; min-width: 0; }
.hpBar { position: relative; height: 16px; background: #d9e3f2; border-radius: 9px; overflow: hidden; margin-top: 3px; }
.hpBar i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: linear-gradient(90deg, #5cc99d, #8ee3c0); transition: width .2s; }
.hpBar span { position: absolute; inset: 0; text-align: center; font-size: 12px; line-height: 16px; font-weight: 800; }
#field { position: relative; flex: 1; min-height: 200px; overflow: hidden; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#banner { position: absolute; left: 8px; right: 8px; top: 10px; text-align: center; font-weight: 800; font-size: 16px; pointer-events: none; opacity: 0; transition: opacity .2s; }
#banner.on { opacity: 1; }
#banner span { display: inline-block; background: rgba(255,255,255,.92); border-radius: 14px; padding: 6px 12px; box-shadow: var(--shadow); }
#banner.warn span { background: #fff0f0; color: #c92a2a; }
#seats { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 0 4px 4px; }
.seat { position: relative; background: rgba(255,255,255,.55); border: 2px dashed #9db8e0; border-radius: 16px; padding: 0; min-height: 58px; }
.seat.has { background: rgba(240,246,255,.94); border-style: solid; }
.seat.sel, .bn.sel, .furBtn.sel { border-color: #2f7de1 !important; box-shadow: 0 0 0 3px rgba(47,125,225,.35); }
.seat.danger { background: rgba(255,120,120,.55); }
.unit { position: relative; width: 100%; height: 100%; }
.unit .uw { position: absolute; left: 46%; top: 50%; width: 46px; height: 46px; transform: translate(-50%, -46%); pointer-events: none; }
.unit .uw img.c { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 0 1px #5b3d2e) drop-shadow(0 0 1px #5b3d2e); }   /* 새 유닛의 흰 스티커 외곽선에 갈색 윤곽을 더해 몹과 맞춤 */
.unit img.o { position: absolute; left: 4px; top: -2px; width: 22px; height: 22px; pointer-events: none; }
.unit .st { position: absolute; right: 1px; top: 1px; min-width: 24px; padding: 0 3px; border-radius: 9px; font-size: 12px; line-height: 15px; font-weight: 800; text-align: center; color: #fff; background: #6b7fa8; border: 1.5px solid #fff; box-shadow: 0 1px 2px rgba(40,50,80,.5); letter-spacing: -.3px; }
.unit .st.s2 { background: #2f8f6a; }
.unit .st.s3 { background: #c2552c; }   /* 별 등급 배지: ★1 남청 / ★2 초록 / ★3 주황(색+숫자로 구분) */
.unit .pb { position: absolute; left: 6px; right: 6px; bottom: 3px; height: 4px; background: #cbd8ec; border-radius: 3px; overflow: hidden; }
.unit .pb i { display: block; height: 100%; background: #ffa94d; }
.unit .zz { position: absolute; left: 2px; top: 0; font-size: 14px; }
.rb img.c { animation: hue 2s linear infinite; }
@keyframes hue { to { filter: hue-rotate(360deg) saturate(1.6); } }
.pop { animation: pop .35s ease-out; }
@keyframes pop { 0% { transform: scale(.6); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }

#benchRow { flex: none; display: flex; gap: 6px; padding: 6px 8px 2px; height: 58px; }
#bench { flex: 1; display: grid; grid-template-columns: repeat(6, minmax(44px, 1fr)); gap: 4px; min-width: 0; }
.bn { background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 0; min-height: 50px; position: relative; }
.bn.empty { background: #eef3fb; border-style: dashed; }
.bn .unit .uw { width: 38px; height: 38px; }
.furBtn { flex: none; width: 52px; background: #eaf5ff; border: 2px solid #9ccbf5; font-size: 20px; padding: 0; position: relative; }
.furBtn b, .tool b { position: absolute; right: 3px; bottom: 1px; font-size: 13px; }

#panel { flex: none; display: flex; gap: 8px; padding: 6px 8px; align-items: stretch; }
#board { flex: none; display: grid; grid-template-columns: repeat(3, 52px); grid-auto-rows: 52px; gap: 4px; padding: 4px; background: #cdd9ee; border-radius: 16px; }
.cell { position: relative; background: #fff; border-radius: 12px; padding: 0; min-height: 52px; min-width: 52px; border: 2px solid #b4c6e4; }
.cell img { width: 42px; height: 42px; object-fit: contain; pointer-events: none; }
.cell.q::after { content: ''; display: block; width: 28px; height: 28px; margin: auto; border: 2px dotted #b9a98a; border-radius: 50%; opacity: .7; }  /* 빈 칸: 점선 소환진 */
.cell.glowin { animation: glowin .4s ease-out both; }   /* 소환진 빛이 번지며 병사가 나타남(뒤집지 않음) */
@keyframes glowin { 0% { opacity: 0; transform: scale(.7); filter: brightness(2.2) saturate(.4); } 60% { opacity: 1; transform: scale(1.06); filter: brightness(1.5); } 100% { opacity: 1; transform: scale(1); filter: none; } }
.cell.hit { background: #e3f6ff; border-color: #4fb0f0; box-shadow: 0 0 0 3px rgba(79,176,240,.5); }
.cell.dg { background: #efe5ff; border-color: #b197fc; box-shadow: 0 0 0 3px rgba(177,151,252,.55); }
.cell .pin { position: absolute; right: 0; top: -2px; font-size: 14px; }
.cell.pinmode { border-color: #2f7de1; border-style: dashed; }
#ctrl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
#btnSpin { flex: 1; min-width: 0; }
.spinRow { display: flex; gap: 5px; }
#btnSpinAll { flex: none; width: 92px; padding: 0 4px; font-size: 13px; line-height: 1.15; min-height: 44px; }
#btnSpinAll[hidden] { display: none; }
.quickRow button small { display: block; font-size: 12px; font-weight: 600; margin-top: 2px; opacity: .95; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.tool { position: relative; background: var(--card); border: 2px solid var(--line); font-size: 20px; min-height: 46px; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.tool .tl { font-size: 13px; font-weight: 800; line-height: 1; color: var(--ink); }
.tool.on { background: var(--lemon); border-color: #2f7de1; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.row2 button { padding: 0 4px; font-size: 14px; }
#hint { flex: none; min-height: 30px; padding: 2px 10px 8px; font-size: 13px; line-height: 1.35; color: var(--ink2); text-align: center; }
#hint b { color: #c2255c; }

/* 모달 */
.modal { position: absolute; inset: 0; background: rgba(40,48,80,.5); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 10; }
.modal.on { display: flex; }
.card { position: relative; background: var(--card); border-radius: 22px; width: min(340px, 100%); max-height: 90dvh; overflow-y: auto; overflow-x: hidden; padding: 18px 16px 16px; box-shadow: 0 8px 30px rgba(40,60,110,.32); }
.card h3 { margin: 0 0 8px; font-size: 19px; text-align: center; padding: 0 36px; }
.card p { font-size: 14px; line-height: 1.5; margin: 6px 0; }
.card .x { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; background: #eef3fb; font-size: 18px; padding: 0; }
.card .btns { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.card .btns button { width: 100%; }
.rw { display: flex; align-items: center; gap: 10px; text-align: left; background: #f7faff; border: 2px solid var(--line); min-height: 60px; padding: 6px 10px; width: 100%; }
.rw .em { font-size: 26px; width: 34px; text-align: center; }
.rw b { display: block; font-size: 15px; } .rw small { font-size: 13px; color: var(--ink2); }
.stars { text-align: center; font-size: 40px; letter-spacing: 4px; color: #ffc94d; text-shadow: 0 2px 0 #e8a000; }
.stars .off { color: #dde3ee; text-shadow: none; }
table.pt { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0; }
table.pt th, table.pt td { border-bottom: 1px solid var(--line); padding: 5px 4px; text-align: center; }
table.pt td:first-child, table.pt th:first-child { text-align: left; }
.small { font-size: 13px !important; line-height: 1.55 !important; color: var(--ink2); }
.warnTxt { color: #a61e4d; } .warnBox { background: #fff0f6; border: 2px solid #c2255c; border-radius: 12px; padding: 8px 10px; color: #8f1d48; font-weight: 700; }
details.more { margin: 8px 0; border: 2px solid var(--line); border-radius: 12px; padding: 4px 10px; } details.more summary { cursor: pointer; font-weight: 800; font-size: 14px; min-height: 44px; display: flex; align-items: center; }
.toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; background: #f7faff; border: 2px solid var(--line); padding: 0 12px; min-height: 52px; font-weight: 700; }
.premium { border: 2px dashed var(--lilac); border-radius: 16px; padding: 10px; margin-top: 10px; background: #f6f4ff; }
.yarnRow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.yarnRow button { background: #f7faff; border: 2px solid var(--line); min-height: 76px; display: flex; flex-direction: column; align-items: center; font-size: 12px; font-weight: 700; padding: 4px; }
.yarnRow img { width: 42px; height: 42px; object-fit: contain; }
/* ---------- 2주차 ---------- */
/* 보스전: 보스 체력 막대(캔버스 위쪽 5~21px) 아래로 안내 띠를 내린다 */
#field.boss #banner { top: 30px; }
.note.age { margin-top: 6px; font-weight: 700; }
.bisc { flex: none; display: flex; align-items: center; gap: 2px; background: #eaf5ff; border: 2px solid #9ccbf5; border-radius: 12px; padding: 0 8px; height: 44px; font-weight: 800; font-size: 15px; }
.bisc .em { font-size: 18px; display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; }
.bisc .em img { width: 24px; height: 24px; object-fit: contain; }
.story { margin: 2px 0 0; font-size: 14px; font-weight: 700; color: #2f5fb8; min-height: 20px; }
.shopIt .pr .ic { width: 1.1em; height: 1.1em; }
.ti img { width: 28px; height: 28px; object-fit: contain; }
.unit .uw img.sk, .dexPic img.sk { position: absolute; transform: translate(-50%, -50%); height: auto; pointer-events: none; }
.dexPic { position: relative; display: block; width: 64px; height: 64px; flex: none; }
.card h4 { margin: 12px 0 4px; font-size: 14px; }
.shopIt { position: relative; }
.shopIt img { width: 34px; height: 34px; object-fit: contain; }
.shopIt .pr { margin-left: auto; font-weight: 800; font-size: 15px; white-space: nowrap; }
.shopIt[aria-disabled="true"] { opacity: .55; }
.shopIt.sold { background: #f1f8f4; }
.shopRow { margin-top: 10px; }
.shopRow button { min-height: 52px; }
.price { text-align: center; font-size: 22px !important; font-weight: 800; color: #2f5fb8; }
.premium .sec { width: 100%; margin-top: 6px; }
.premium.on { border-style: solid; border-color: var(--mint); background: var(--mint2); }
.mockAd { position: absolute; inset: 0; z-index: 30; background: rgba(40,30,50,.82); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mockAd .mcard { background: #fff; border-radius: 20px; padding: 18px 16px; width: min(320px, 100%); text-align: center; }
.mockAd .mbig { font-size: 44px; font-weight: 800; color: #2f5fb8; margin: 8px 0; }
.mockAd .mrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
/* Flow 그림: 진형판 틀(칸은 반투명으로 틀 위에), 승급·진형 완성 빛 6칸 스트립(밝게 겹치는 screen 합성) */
#board.framed { background-color: #f7d9b8; background-size: 100% 100%; background-repeat: no-repeat; padding: 10px; }
#board.framed .cell { background: rgba(255,255,255,.72); }
#board.framed .cell.hit { background: rgba(227,246,255,.92); } #board.framed .cell.dg { background: rgba(239,229,255,.9); }
.fxb { position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; z-index: 3;
  background-image: var(--fx); background-size: 600% 100%; background-repeat: no-repeat; mix-blend-mode: screen; animation: fxs .6s steps(5, jump-none) forwards; }
@keyframes fxs { from { background-position: 0% 0; } to { background-position: 100% 0; } }
/* 도감 */
.dexCount { font-weight: 800; color: var(--ink2); padding-right: 6px; }
.dexBody { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0 12px 16px; }
.dexList { display: grid; grid-template-columns: 1fr; gap: 8px; }
.dexCard { display: flex; gap: 10px; align-items: center; background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 8px; }
.dexCard img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.dexCard.lock img { filter: brightness(0) opacity(.25); }
.dexCard .rbImg { animation: hue 2s linear infinite; }
.dexTxt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dexTxt b { font-size: 15px; } .dexTxt .role { font-size: 12px; color: var(--ink2); }
.dexTxt small { font-size: 13px; color: var(--ink2); line-height: 1.4; }
.dexTxt .rec { color: #4a6a9a; }
.stars.sm { font-size: 16px; letter-spacing: 1px; text-align: left; text-shadow: none; }
.mapCol { min-width: 0; }

/* 가로 화면(PC 1280×720·태블릿 가로): 필드 왼쪽, 판·도구 오른쪽 */
@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  #app { max-width: 1280px; }
  #scrGame.on { display: grid; grid-template-columns: minmax(0, 1fr) 430px; grid-template-rows: 56px auto auto 1fr; }
  #hud { grid-column: 1 / 3; grid-row: 1; }
  #field { grid-column: 1; grid-row: 2 / 5; min-height: 0; }
  #benchRow { grid-column: 2; grid-row: 2; height: 70px; padding-top: 10px; }
  #panel { grid-column: 2; grid-row: 3; flex-direction: column; align-items: center; }
  #hint { grid-column: 2; grid-row: 4; font-size: 15px; padding-top: 10px; }
  #board { grid-template-columns: repeat(3, 78px); grid-auto-rows: 78px; gap: 6px; padding: 6px; }
  .cell { min-width: 78px; min-height: 78px; } .cell img { width: 64px; height: 64px; }
  #ctrl { width: 100%; }
  #seats { height: 84px; } .seat { min-height: 78px; }
  .unit .uw { width: 64px; height: 64px; }
  .mapBody { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 8px 24px; }
  .mapFoot { max-width: 420px; margin: 0 auto; width: 100%; }
  .dexList { grid-template-columns: 1fr 1fr 1fr; }
  .dexBody { padding: 0 24px 20px; }
  .card { width: min(420px, 100%); }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (max-height: 680px) {
  #board { grid-template-columns: repeat(3, 48px); grid-auto-rows: 48px; }
  .cell { min-height: 48px; min-width: 48px; } .cell img { width: 38px; height: 38px; }
  #btnSpin, #btnSpinAll { min-height: 52px; } #btnSpin { font-size: 17px; } .tool { min-height: 44px; } .row2 button { min-height: 44px; }
  #hint { min-height: 24px; padding-bottom: 4px; font-size: 12px; }
}

.ic { width: 1.25em; height: 1.25em; object-fit: contain; vertical-align: -0.25em; }
.em .ic { width: 30px; height: 30px; }
.cell .pin .ic { width: 18px; height: 18px; }

/* 휴대폰 가로(높이 520px 이하): 필드 왼쪽, 대기·판·버튼 오른쪽. 세로 스크롤 없이 전투 시작까지 모두 화면 안에 든다 */
@media (orientation: landscape) and (max-height: 520px) {
  #app { max-width: none; }
  #scrGame.on { display: grid; grid-template-columns: minmax(0, 1fr) 372px; grid-template-rows: 48px 50px auto 1fr; }
  #hud { grid-column: 1 / 3; grid-row: 1; height: 48px; padding: 0 8px; }
  #hud .icon { min-height: 44px; height: 44px; }
  #field { grid-column: 1; grid-row: 2 / 5; min-height: 0; }
  #benchRow { grid-column: 2; grid-row: 2; height: 50px; padding: 2px 8px 0; }
  #bench { grid-template-columns: repeat(6, minmax(44px, 1fr)); }
  .bn { min-height: 46px; } .bn .unit .uw { width: 34px; height: 34px; }
  .furBtn { width: 48px; }
  #panel { grid-column: 2; grid-row: 3; flex-direction: row; align-items: flex-start; padding: 4px 8px; gap: 8px; }
  #board { grid-template-columns: repeat(3, 46px); grid-auto-rows: 46px; gap: 3px; padding: 4px; }
  #board.framed { padding: 7px; }
  .cell { min-width: 44px; min-height: 44px; } .cell img { width: 36px; height: 36px; }
  #ctrl { flex: 1; width: auto; gap: 4px; }
  #btnSpin, #btnSpinAll { min-height: 46px; } #btnSpin { font-size: 17px; }
  .tool { min-height: 44px; } .row2 button { min-height: 44px; }
  #hint { grid-column: 2; grid-row: 4; min-height: 0; padding: 2px 10px; font-size: 12px; font-size: 13px; overflow: hidden; }
  #seats { height: 56px; } .seat { min-height: 50px; }
  .unit .uw { width: 40px; height: 40px; }
  .mapBody { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .dexList { grid-template-columns: 1fr 1fr; }
  .titleBox { padding: 4px 12px; } .heroRow img { max-width: 70px; } h1 { font-size: 24px; margin: 2px 0 0; flex-direction: row; justify-content: center; gap: 8px; } h1 .t2 { font-size: 24px; } .logo { display: none; } .subTitle { margin: 0 0 4px; font-size: 13px; } .sub { margin: 4px 0 8px; font-size: 14px; } .note { margin-top: 6px; font-size: 13px; } .ageBox { margin-bottom: 8px; padding: 4px 8px; }
  #scrTitle { overflow-y: auto; justify-content: flex-start; }
}

/* 기사단 v0.3.0 보정 */
.bn .unit .uw { left: 42%; }
.bn .unit .st { min-width: 20px; font-size: 12px; line-height: 14px; padding: 0 2px; }
.tool .tl { white-space: nowrap; }
/* 세로가 짧은 폰(높이 700px 이하, 세로 방향): 시작 화면이 한 화면에 들어오게 줄인다 */
@media (max-height: 700px) and (orientation: portrait) {
  #scrTitle { overflow-y: auto; }
  .logo { width: 84px; margin-bottom: -4px; }
  h1 { font-size: 30px; } h1 .t2 { font-size: 34px; }
  .heroRow img { max-width: 84px; }
  .sub { margin: 4px 0 8px; font-size: 14px; } .note { margin-top: 8px; font-size: 13px; }
  .ageBox { margin-bottom: 8px; } .badge { margin-bottom: 0; }
}
