/* 드롭 정보 (/game/drops/) — 그리기는 js/drops.js, 데이터·그림은 tools/drop_sim.py → static/drops */
.dr { display: flex; flex-direction: column; gap: 16px; }
.dr.is-loading .dr-main { opacity: .5; pointer-events: none; }
/* 받는 동안 목록 자리를 미리 잡는다: 받은 뒤 120줄이 생기며 아래(발·설명)가 밀려나던 것(10-19 측정: 폰 첫 열기 화면 밀림 0.26) */
.dr.is-loading .dr-list { min-height: 100vh; }
.dr [hidden] { display: none !important; }  /* .seg·.btn 의 display 가 hidden 을 덮지 않게 */

/* 검색 줄 */
.dr-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dr-search { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); color: var(--fg-3); transition: border-color .2s ease; }
.dr-search:focus-within { border-color: var(--brand); }
.dr-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dr-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--fg); font: inherit; font-size: 15px; outline: none; }
.dr-search input::placeholder { color: var(--fg-3); }
.dr-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.dr-opts .seg button { padding: 8px 16px; }
.dr-n { font-size: 12px; opacity: .75; font-weight: 400; }

/* 두 칸: 왼쪽 목록 · 오른쪽 자세히 */
.dr-main { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 20px; align-items: start; transition: opacity .2s ease; }
.dr-left { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dr-count { font-size: 13px; color: var(--fg-3); min-height: 20px; }
.dr-list { list-style: none; display: flex; flex-direction: column; border-radius: 8px; background: var(--panel); overflow: hidden; }
.dr-list > li + li { border-top: 1px solid var(--sep); }
/* 화면 밖 줄은 배치·그리기를 건너뛴다(120줄을 다시 그릴 때 폰에서 끊기던 것, 10-19 "렉안걸리게"). 64px = 처음 자리, 그린 뒤엔 실제 높이를 기억 */
.dr-list > li { content-visibility: auto; contain-intrinsic-size: auto 64px; }
.dr-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; width: 100%;
  padding: 8px 12px; border: 0; background: none; text-align: left; cursor: pointer; transition: background .15s ease; }
.dr-row:hover { background: var(--hover); }
.dr-row.is-on { background: var(--elev); box-shadow: inset 3px 0 0 var(--brand); }
.dr-thumb { grid-row: 1 / 3; display: flex; align-items: center; justify-content: center; width: 56px; height: 52px; }
.dr-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 14px; font-weight: 500; color: var(--fg); }
.dr-name .badge { height: 18px; padding: 0 6px; font-size: 11px; }
.dr-sub { min-width: 0; font-size: 12px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-name { flex-wrap: wrap; }
.dr-name .badge, .dr-head h2 .badge, .dr-dname .badge { cursor: help; }
.dr-empty { padding: 20px 16px; font-size: 14px; color: var(--fg-3); }
.dr-more { align-self: stretch; }

/* 그림 — 원본 픽셀 그대로(정수 배는 또렷하게) */
.dr-pic { image-rendering: pixelated; max-width: none; }
.dr-pic.is-small { image-rendering: auto; }
.dr-ic { display: inline-block; flex: none; background-image: var(--dr-items); background-repeat: no-repeat; image-rendering: pixelated; vertical-align: middle; }
.dr-ic-none { width: 32px; height: 32px; border-radius: 4px; background: var(--panel-2); }
.dr-pic-none { display: block; width: 40px; height: 40px; border-radius: 6px; background: var(--panel-2); }

/* 자세히 */
.dr-detail { position: sticky; top: 16px; min-width: 0; border-radius: 8px; background: var(--panel); padding: 20px; display: flex; flex-direction: column; gap: 20px;
  max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: thin; }
.dr-detail .sd-empty { font-size: 14px; color: var(--fg-3); }
.dr-head { display: flex; gap: 16px; align-items: center; }
.dr-head h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 20px; }
.dr-head-mob { flex-direction: column; align-items: stretch; }
.dr-stage { display: flex; align-items: flex-end; justify-content: center; min-height: 80px; padding: 16px; border-radius: 8px; background: var(--panel-2); }
.dr-istage { flex: none; align-items: center; width: 96px; height: 96px; min-height: 0; padding: 0; }
.dr-meta { margin-top: 4px; font-size: 13px; color: var(--fg-2); }
.dr-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dr-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 12px 0 0; }
.dr-stats > div { padding: 8px 12px; border-radius: 6px; background: var(--panel-2); }
.dr-stats dt { font-size: 12px; color: var(--fg-3); }
.dr-stats dd { margin: 0; font-size: 15px; font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums; }
.dr-istats { margin: 0; }
.dr-desc { padding: 12px 14px; border-radius: 6px; background: var(--panel-2); font-size: 13px; color: var(--fg-2); line-height: 1.6; }
.dr-desc em { font-style: normal; color: var(--brand-text); }
.dr-sec h3 { margin-bottom: 8px; font-size: 14px; color: var(--fg-2); }
.dr-gnote { font-size: 13px; color: var(--fg-2); }
.dr-drops { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; }
.dr-drop { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 10px; border: 1px solid transparent; border-radius: 6px;
  background: var(--panel-2); text-align: left; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.dr-drop:hover:not(:disabled) { background: var(--hover); border-color: var(--line); }
.dr-drop:disabled { cursor: default; }
.dr-dic { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; }
.dr-dmob { width: 44px; height: 44px; }
.dr-dname { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; font-size: 13px; color: var(--fg); }
.dr-dname .badge { height: 18px; padding: 0 6px; font-size: 11px; cursor: help; }
.dr-dq { flex: none; font-size: 12px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
/* 나오는 곳 */
.dr-where { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.dr-where > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 10px 12px; border-radius: 6px; background: var(--panel-2); }
.dr-where dt { font-size: 12px; color: var(--fg-3); padding-top: 1px; }
.dr-where dd { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--fg-2); }
.dr-where b { color: var(--fg); font-weight: 500; }
.dr-maps { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.dr-maps li { padding: 2px 8px; border-radius: 4px; background: var(--elev); font-size: 12px; color: var(--fg); }
.dr-maps.is-fold .is-more { display: none; }
.dr-maps .dr-maps-more { background: none; padding: 2px 0; }
.dr-sp { margin-left: 2px; font-size: 11px; color: #f1e4c6; opacity: .8; cursor: help; }
.dr-src { font-size: 11px; color: var(--fg-3); }
.dr-link { border: 0; background: none; padding: 0; font: inherit; color: var(--link); cursor: pointer; text-align: left; }
.dr-link:hover { text-decoration: underline; }
.dr-link .mono { font-size: 11px; }
.dr-same { margin-top: 8px; font-size: 13px; color: var(--fg-2); line-height: 1.8; }
.dr-global { align-self: flex-start; border: 0; background: none; padding: 0; font-size: 13px; color: var(--link); cursor: pointer; }
.dr-global:hover { text-decoration: underline; }
.dr-notes { margin-top: 24px; }
.dr-notes summary { cursor: pointer; font-weight: 500; }
.dr-notes .prose { margin-top: 12px; font-size: 14px; color: var(--fg-2); }
.dr-notes ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 1023px) {
  .dr-main { grid-template-columns: minmax(0, 1fr); }
  .dr-detail { position: static; max-height: none; overflow: visible; }
  .dr-list { max-height: 60vh; overflow-y: auto; }
  .dr.is-loading .dr-list { min-height: 60vh; }
}
@media (max-width: 767px) {
  .dr-detail { padding: 16px; }
  .dr-drops { grid-template-columns: minmax(0, 1fr); }
  .dr-opts { width: 100%; }
  .dr-where > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (pointer: coarse) {
  .dr-opts .seg button { padding-top: 12px; padding-bottom: 12px; }  /* 손가락 화면: 누르기 쉽게(site.css 와 같은 높이) */
}
@media (pointer: coarse) { .dr-search input { font-size: 16px; } }
