/* SayJet · 반응형: 가로 태블릿 · 높이 단계 압축 · 좁은 폰 */
/* ── 가로 태블릿 (1280×800 기준) ── */
@media (orientation:landscape) and (min-width:820px){
  .app{display:grid;height:100dvh;min-height:0;grid-template-columns:84px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:"top top" "rail content";gap:14px 16px;padding:14px 18px 16px}
  .top{grid-area:top}
  .content{grid-area:content;min-height:0;overflow:auto;border-radius:var(--r-lg)}
  .home{display:grid;grid-template-columns:minmax(0,1fr) 352px;gap:14px 16px;height:100%;min-height:0}
  .home .main{display:flex;flex-direction:column;gap:14px;min-width:0;min-height:0}
  .home .aside{display:flex;flex-direction:column;gap:12px;min-width:0;min-height:0;overflow-y:auto;scrollbar-width:none}
  .home .aside::-webkit-scrollbar{display:none}
  .home .aside>*{flex-shrink:0}   /* 오른쪽 칸은 스크롤 — 카드(여권은 overflow:hidden)를 눌러 줄여 아래가 잘리지 않게(대표 10-19: 여권 사진 잘림) */
  .chip-fs{display:flex}
  .home .main>*,.home .aside>*{order:0}
  .map-card{flex:1 1 auto;min-height:0}
  .map-head{flex-wrap:nowrap}
  .map-head .tracker{width:300px;margin-left:auto;flex:none}
  .map-stage{flex:1 1 auto;min-height:0}
  .map-scroll{position:absolute;inset:0;overflow:hidden}
  .map-svg{width:100%;height:100%;aspect-ratio:auto}
  .collect{flex:1 1 auto;min-height:0}
  .rail{position:static;grid-area:rail;display:flex;flex-direction:column;gap:6px;padding:8px;border-radius:28px;background:#fff;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:var(--shadow);animation:rise .7s .08s var(--ease-out) backwards}
  .nav-item{min-height:78px}
  .nav-item.on::before{top:auto;bottom:7px}
  .nav-badge{left:calc(50% + 8px)}
  .rail-foot{display:block;margin-top:auto;align-self:center;padding:12px 0 8px;writing-mode:vertical-rl;font:600 11px var(--f-latin);letter-spacing:4px;color:var(--ink-3)}
  .pane{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  .pane .wide{grid-column:1/-1}
  .ex{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:36px;align-items:center}
  .l-actions #lMain{flex:0 0 380px;margin-left:auto}
  .toast{bottom:30px}
  .quit{align-items:center} .quit-in{border-radius:26px}
  .d-actions{justify-content:center} .d-actions .btn{flex:0 1 300px}
}
@media (orientation:landscape) and (min-width:820px) and (max-height:760px){
  .pp-body{grid-template-columns:62px 1fr} .pp-photo{width:62px;height:72px} .mrz{display:none}
}
@media (orientation:portrait),(max-width:819px){
  .l-actions{flex-direction:column-reverse}
  .l-actions #lSkip{min-height:56px}
}
@media (max-width:560px){
  .apass{grid-template-columns:1fr;justify-items:center}
  .ar-stamp{width:140px;height:140px} .ar-stamp b{font-size:34px}
  .opt{font-size:30px;min-height:100px}
  .postmark .pm-c{width:84px;height:84px;font-size:16px} .postmark svg{display:none}
}

/* 가로 화면 높이가 낮을 때(태블릿 브라우저 주소창·탭 영역 등): 스크롤 없이 한 화면에 맞추기 */
@media (orientation:landscape) and (min-width:820px) and (max-width:999px){
  .home{grid-template-columns:minmax(0,1fr) 300px}
}
@media (orientation:landscape) and (min-width:820px) and (max-height:700px){
  .app{padding:10px 14px 12px;gap:10px 14px}
  .chip{height:46px} .chip-ico{width:32px;height:32px;font-size:19px} .chip-fs{width:46px}
  .brand-mark{width:40px;height:40px} .brand-word{font-size:26px}
  .rail{padding:6px;gap:4px} .nav-item{min-height:62px;font-size:13px} .nav-item svg{font-size:22px} .rail-foot{display:none}
  .home{gap:10px 14px} .home .main{gap:10px} .home .aside{gap:10px}
  .collect{flex:0 0 auto;padding:10px 12px}   /* 명대사 엽서: 숨기지 않고 한 장만 작게 */
  .collect .card-head{margin-bottom:4px} .collect-note,.collect .pc.g1,.collect .pc.g2,.collect .pc-side,.collect .pc-src{display:none}
  .collect .pc-stack{min-height:0;padding:2px 2px 4px} .collect .pc{min-height:0}
  .collect .pc.front{grid-template-columns:1fr;padding:9px 12px 8px;transform:rotate(-1deg)}
  .collect .pc-quote{font-size:15px} .collect .pc-ko{font-size:12px;margin-top:2px} .collect .pc.empty{padding:8px;font-size:13px}
  .goal-note{display:none} .goal .card-head{margin-bottom:6px} .tk-in{height:58px}
  .cta{min-height:84px}
  .passport{padding:10px 14px 8px} .pp-top{margin-bottom:6px} .pp-rank{font-size:22px} .pp-stamps{margin-top:8px}
  .mission{min-height:66px;padding:10px 12px} .m-ico{width:38px;height:38px}
  .map-card{padding:10px;gap:8px}
}
@media (orientation:landscape) and (min-width:820px) and (max-height:580px){
  .brand-sub{display:none}
  .pp-stamps,.pp-label{display:none}
  .pp-body{grid-template-columns:52px 1fr} .pp-photo{width:52px;height:60px}
  .missions .sec-head{display:none} .m-row{margin-top:4px}
  .goal .tk-in{height:50px}
  .map-legend{display:none}
  .collect .card-head,.collect .pc-ko{display:none} .collect{padding:8px 10px}
  .map-fly{min-height:40px;padding:0 14px;font-size:14px;right:8px;bottom:8px}
}
@media (display-mode:standalone),(display-mode:fullscreen){.chip-fs{display:none!important}}
