/* v0.7.0: 예고 대응(빨간 줄 피하기·주황 줄 막기), 정예 훈장 줄, 다음 정예 카드, 좁은 화면(CSS 320) 핵심 조작 */
.seat.guard { background: rgba(255,170,60,.6); box-shadow: inset 0 0 0 3px #ff922b; animation: guardBlink .5s ease-in-out infinite alternate; }
@keyframes guardBlink { to { box-shadow: inset 0 0 0 5px #ff922b; } }
.medals { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 6px 8px; margin: 6px 0; font-size: 13px; }
.medals > b { color: #c2552c; }
.mdRow { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin-top: 4px; }
.md { position: relative; display: block; aspect-ratio: 1; border-radius: 50%; background: #eef1f7; border: 2px solid #d6dbe6; overflow: hidden; }
.md img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) brightness(.75); opacity: .55; }
.md.on { border-color: #f0c040; background: #fff3bf; box-shadow: 0 0 0 2px rgba(240,192,64,.45); }
.md.on img { filter: none; opacity: 1; }
.md i { position: absolute; right: -1px; bottom: -2px; font-style: normal; font-size: 11px; }
.md small { position: absolute; left: 2px; top: 0; font-size: 9px; font-weight: 900; color: #6b7487; }
.elitePat { background: #fff0f0; border-radius: 8px; padding: 2px 6px; }
.pat .eliteTag, .elitePat .eliteTag { background: #e03131; color: #fff; border-radius: 999px; padding: 0 6px; font-size: 11px; }
.eliteNext { background: linear-gradient(#fff8e1, #fff); border: 2px solid #e03131; border-radius: 14px; padding: 8px 10px; margin: 8px 0; }
.eliteNext > b { color: #c92a2a; font-size: 15px; }
.enRow { display: flex; gap: 8px; align-items: center; }
.enRow img { width: 72px; height: 72px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
@media (max-width: 359px) {
  .spinRow button, .row2 button { font-size: 14px; white-space: nowrap; padding-left: 4px; padding-right: 4px; letter-spacing: -.5px; }
  .tools .tool .tl { font-size: 11px; }
  #ctrl { min-width: 0; }
  #board { grid-template-columns: repeat(3, 42px); grid-auto-rows: 42px; gap: 3px; padding: 3px; }   /* 320 폭: 판을 줄여 도구 3개·자동 배치·출전이 잘리지 않게 */
  #board .cell { min-width: 0; min-height: 0; }
  #panel { gap: 6px; padding: 6px; }
  .tools { gap: 4px; } .tools .tool .ti { font-size: 17px; }
  #star3Bar { font-size: 11px; gap: 3px; }
}