/* 메인 게임 화면: 상단 바 · 하위 탭 · 포털 개요 */
:root {
  --topbar-h: 56px;
  --subtabs-h: 42px;
  --todo: rgba(58, 160, 255, .09);
  --urgent: rgba(226, 87, 92, .12);
}

.num { font-variant-numeric: tabular-nums; }

.icon-btn {
  width: 34px; height: 34px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; border-radius: 6px; color: var(--muted);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover:not(:disabled) { color: var(--text); border-color: var(--line); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ---------- 상단 바 ---------- */
.topbar {
  position: relative; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  height: var(--topbar-h); padding: 0 16px;
  background: var(--panel); border-bottom: 1px solid var(--line);
}
.tb-hist { display: flex; gap: 2px; }
.tb-burger { display: none; }
.tb-badge {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c, #555); color: #fff;
  font-family: var(--f-ui); font-weight: 700; font-size: 12px; letter-spacing: .02em;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .15), 0 0 0 4px rgba(0, 0, 0, .3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.tb-menu { display: flex; align-items: stretch; height: 100%; margin-left: 8px; }
.tb-item { position: relative; display: flex; }
.tb-link {
  display: flex; align-items: center; gap: 5px; padding: 0 12px;
  color: var(--muted); text-decoration: none;
  font-family: var(--f-ui); font-weight: 700; font-size: 17px; letter-spacing: .02em;
  border-bottom: 2px solid transparent;
}
.tb-link:hover { color: var(--text); }
.tb-item.on .tb-link { color: var(--gold-2); border-bottom-color: var(--gold); }
.caret { width: 10px; height: 6px; opacity: .7; }
.tb-drop {
  display: none; position: absolute; top: 100%; left: 0; min-width: 180px;
  padding: 6px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}
.tb-drop a { display: block; padding: 8px 10px; border-radius: 5px; color: var(--text); text-decoration: none; font-size: 13px; }
.tb-drop a:hover { background: rgba(255, 255, 255, .06); }
@media (hover: hover) and (min-width: 1024px) {
  .tb-item:hover:not(.no-drop) .tb-drop { display: block; }
}

.tb-clock { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.tb-date { font-family: var(--f-ui); font-weight: 600; font-size: 16px; color: var(--text); white-space: nowrap; }
.btn-continue {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border: 0; border-radius: 6px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1407;
  font-weight: 700; font-size: 15px;
  box-shadow: 0 0 0 1px rgba(240, 213, 138, .4), 0 4px 16px rgba(200, 162, 74, .25);
}
.btn-continue svg { width: 14px; height: 14px; }
.btn-continue:hover { filter: brightness(1.08); }

/* ---------- 하위 탭 ---------- */
.subtabs {
  display: flex; gap: 2px; height: var(--subtabs-h); padding: 0 16px;
  background: rgba(15, 22, 38, .6); border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.subtabs::-webkit-scrollbar { display: none; }
.subtabs a {
  flex: none; display: flex; align-items: center; padding: 0 12px;
  color: var(--muted); text-decoration: none; font-size: 13px; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.subtabs a:hover { color: var(--text); }
.subtabs a.on { color: var(--gold-2); border-bottom-color: var(--gold); font-weight: 700; }

/* ---------- 본문 ---------- */
.game-body { flex: 1; min-height: 0; overflow: auto; padding: 20px; }

.placeholder-view { max-width: 640px; margin: 60px auto; text-align: center; color: var(--muted); }
.placeholder-view h2 { color: var(--text); margin: 8px 0; font-size: 26px; }
.ph-crumb { font-family: var(--f-ui); letter-spacing: .08em; color: var(--gold); font-size: 13px; }

/* ---------- 포털 > 개요 ---------- */
.portal { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 16px; max-width: 1440px; margin: 0 auto; align-items: start; }

.msg-panel { overflow: hidden; }
.msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 16px 18px 12px; }
.msg-head h2 { margin: 0; font-size: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 5px 12px; border-radius: 999px; font-size: 13px;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
}
.chip:hover { color: var(--text); }
.chip.on { background: var(--gold); border-color: var(--gold); color: #1a1407; font-weight: 700; }
.msg-tools { margin-left: auto; display: flex; gap: 2px; }
.msg-search { display: none; padding: 0 18px 12px; }
.msg-search.open { display: block; }
.msg-search input { width: 100%; }

.msg-day {
  padding: 7px 18px; font-size: 12px; font-weight: 700; color: var(--muted);
  background: var(--panel-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.msg-row {
  display: grid; grid-template-columns: 10px 36px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  width: 100%; padding: 11px 18px 11px 10px; text-align: left;
  background: transparent; border: 0; border-bottom: 1px solid #172036;
}
.msg-row:hover { background: rgba(255, 255, 255, .035); }
.msg-row.pr-todo { background: var(--todo); }
.msg-row.pr-urgent { background: var(--urgent); }
.msg-dot { width: 7px; height: 7px; border-radius: 50%; }
.msg-row.unread .msg-dot { background: var(--gold); }
.msg-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #1c2843; color: #b9c4da;
}
.msg-icon svg { width: 18px; height: 18px; }
.msg-icon.lg { width: 48px; height: 48px; flex: none; }
.msg-icon.lg svg { width: 24px; height: 24px; }
.msg-text { display: flex; flex-direction: column; min-width: 0; }
.msg-text small { font-size: 12px; color: var(--muted); }
.msg-text b { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-row.unread .msg-text b { font-weight: 700; color: #fff; }
.msg-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.flag { font-style: normal; font-weight: 700; color: var(--danger); }
.msg-empty { padding: 30px; text-align: center; color: var(--muted); }

.msg-detail { padding: 16px 20px 24px; }
.md-head { display: flex; gap: 14px; align-items: center; margin: 18px 0 10px; }
.md-head h2 { margin: 0; font-size: 20px; }
.md-from { color: var(--muted); font-size: 13px; margin-top: 4px; }
.md-badge { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; background: var(--todo); color: #8cc8ff; }
.msg-detail.pr-urgent .md-badge { background: var(--urgent); color: #ff9a9e; }
.md-body { margin-top: 14px; line-height: 1.75; color: #d0d7e4; max-width: 720px; }
.md-actions { margin-top: 18px; }

/* 카드 */
.portal-cards { display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.card-head h3 { margin: 0; font-size: 14px; font-weight: 700; }
.card-head a { font-size: 12px; color: var(--gold); text-decoration: none; }
.card-head a:hover { text-decoration: underline; }
.card .k { color: var(--muted); font-size: 12px; margin-right: 8px; }

.team-badge {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 22px; height: 22px; border-radius: 50%; vertical-align: middle;
  background: var(--c); color: #fff; font-family: var(--f-ui); font-weight: 700; font-size: 8px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .5);
}
.team-badge.lg { width: 52px; height: 52px; font-size: 14px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .12); }

.nm-body { display: flex; gap: 14px; align-items: center; }
.nm-info { display: flex; flex-direction: column; gap: 2px; }
.nm-info b { font-size: 16px; }
.nm-info small { color: var(--muted); font-size: 12px; }
.nm-foot { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid #1b2438; font-size: 13px; }
.form { display: inline-flex; gap: 3px; vertical-align: middle; }
.form i { width: 8px; height: 18px; border-radius: 2px; }
.form i.w { background: #3fbf7f; }
.form i.l { background: var(--danger); height: 10px; align-self: flex-end; }

.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-table th { text-align: left; font-weight: 500; font-size: 11px; color: var(--muted); padding: 0 4px 6px; }
.mini-table td { padding: 6px 4px; border-top: 1px solid #172036; }
.mini-table td.num, .mini-table th:nth-child(n+3) { text-align: right; }
.mini-table tr.me td { background: rgba(200, 162, 74, .12); color: var(--gold-2); font-weight: 700; }
.mini-table tr.gap td { text-align: center; color: var(--muted); padding: 2px; }
.pos { font-family: var(--f-ui); font-weight: 700; font-size: 12px; color: var(--gold); }
.tier { font-size: 12px; color: var(--muted); }
.tier .num { color: var(--text); margin-left: 4px; }
.delta { font-size: 12px; width: 44px; }
.delta.up { color: #3fbf7f; }
.delta.down { color: var(--danger); }

.cl-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; padding: 4px 0; }
.cl-line small { color: var(--muted); width: 100%; padding-left: 0; }
.res { padding: 1px 7px; border-radius: 3px; font-size: 11px; font-weight: 700; color: #fff; }
.res.w { background: #2f9e67; }
.res.l { background: var(--danger); }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wk-day { text-align: center; padding: 6px 2px 8px; border-radius: 6px; background: var(--panel-2); min-height: 76px; }
.wk-day.today { outline: 1px solid var(--gold); background: rgba(200, 162, 74, .1); }
.wk-dow { font-size: 11px; color: var(--muted); }
.wk-num { font-family: var(--f-ui); font-weight: 700; font-size: 17px; }
.wk-ev { display: flex; flex-direction: column; align-items: center; gap: 3px; margin-top: 4px; }
.ev { display: inline-flex; width: 18px; height: 18px; border-radius: 4px; align-items: center; justify-content: center; font-style: normal; }
.ev svg { width: 12px; height: 12px; }
.ev-match { background: rgba(226, 87, 92, .25); color: #ff9a9e; }
.ev-scrim { background: rgba(58, 160, 255, .2); color: #8cc8ff; }
.ev-training { background: rgba(63, 191, 127, .2); color: #7fe0ae; }
.ev-event { background: rgba(200, 162, 74, .22); color: var(--gold-2); }
.wk-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.wk-legend span { display: inline-flex; align-items: center; gap: 4px; }
.wk-legend .ev { width: 14px; height: 14px; }
.wk-legend .ev svg { width: 10px; height: 10px; }


/* 실제 로고·사진 */
.tb-badge.has-logo { background: radial-gradient(circle, rgba(255,255,255,.1), transparent 70%); box-shadow: none; }
.tb-badge img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 1px rgba(255,255,255,.55)) drop-shadow(0 0 3px rgba(255,255,255,.18)); }
.team-logo { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; vertical-align: middle; }
.team-logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 1px rgba(255,255,255,.55)) drop-shadow(0 0 3px rgba(255,255,255,.18)); }
.team-logo.lg { width: 56px; height: 56px; }
.team-logo .team-badge { width: 100%; height: 100%; }
.tm-cell { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.tm-cell > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-ph.xs { width: 24px; height: 24px; font-size: 11px; }
.msg-icon { overflow: hidden; }
.msg-face { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cl-line .pl-ph.xs { margin-left: 2px; }

/* 포지션 아이콘 */
.pos-ic { display: inline-flex; align-items: center; gap: 5px; color: var(--gold); vertical-align: middle; }
.pos-ic svg { width: 18px; height: 18px; flex: none; }
.pos-ic b { font-family: var(--f-ui); font-weight: 700; font-size: 12px; letter-spacing: .04em; }
.pos-ic .pi-on { fill: currentColor; }
.pos-ic .pi-dim { fill: currentColor; opacity: .35; }
.pos-ic.none { font-size: 12px; color: var(--muted); }

/* ---------- 태블릿 ---------- */
@media (max-width: 1023px) {
  .portal { grid-template-columns: minmax(0, 1fr); }
  .portal-cards { display: grid; grid-template-columns: 1fr 1fr; }
  .portal-cards .card:last-child { grid-column: 1 / -1; }
  .tb-link { padding: 0 8px; font-size: 15px; }
  .caret { display: none; }
  .tb-date { font-size: 14px; }
  .btn-continue { padding: 8px 14px; }
}

/* ---------- 모바일 ---------- */
@media (max-width: 767px) {
  .topbar { padding: 0 10px; gap: 6px; }
  .tb-burger { display: inline-flex; order: -1; }
  .tb-menu {
    display: none; position: absolute; top: var(--topbar-h); left: 0; right: 0; height: auto;
    flex-direction: column; margin: 0; padding: 6px;
    background: var(--panel-2); border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
  }
  #screen-game.menu-open .tb-menu { display: flex; }
  .tb-link { padding: 12px 14px; font-size: 17px; border-bottom: 0; border-left: 3px solid transparent; width: 100%; }
  .tb-item.on .tb-link { border-left-color: var(--gold); }
  .tb-drop { display: none !important; }
  .tb-badge { margin-left: auto; }

  /* 날짜 + 계속: 하단 고정 바 */
  .tb-clock {
    position: fixed; left: 0; right: 0; bottom: var(--footer-h); z-index: 30;
    height: 60px; padding: 0 14px; justify-content: space-between;
    background: var(--panel); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 20px rgba(0, 0, 0, .35);
  }
  .tb-date { font-size: 16px; }
  .btn-continue { padding: 11px 26px; font-size: 16px; }
  .game-body { padding: 12px 12px 76px; }

  .subtabs { gap: 6px; height: auto; padding: 8px 10px; }
  .subtabs a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
  .subtabs a.on { border-color: var(--gold); background: rgba(200, 162, 74, .12); }

  .portal-cards { display: flex; }
  .msg-head { padding: 14px 12px 10px; }
  .msg-tools { order: 1; }
  .chips { order: 2; width: 100%; }
  .msg-row { padding: 10px 12px 10px 6px; gap: 10px; grid-template-columns: 8px 32px minmax(0, 1fr) auto; }
  .msg-icon { width: 32px; height: 32px; }
  .msg-day { padding: 6px 12px; }
}
.card-head .dday { margin-left: auto; margin-right: 10px; font-family: var(--f-ui); font-weight: 700; font-size: 13px; color: var(--gold-2); padding: 1px 8px; border-radius: 4px; background: rgba(200, 162, 74, .14); }
.card-head h3 small { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 6px; }

/* 다음 경기: 일정 발표 전 */
.nm-pending { display: flex; flex-direction: column; gap: 4px; padding: 6px 0 2px; }
.nm-pending b { font-size: 16px; }
.nm-pending span { font-size: 13px; color: #b3bccd; }
.nm-pending small { font-size: 12px; color: var(--muted); }

/* 메시지 선택지 */
.md-choices { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.md-choice { text-align: left; padding: 11px 14px; border-radius: 8px; border: 1px solid var(--line, #2a3348); background: rgba(255,255,255,.03); color: inherit; font: inherit; cursor: pointer; }
.md-choice:hover { border-color: var(--accent, #4aa3ff); background: rgba(74,163,255,.08); }
.md-answer { margin-top: 18px; padding: 12px 14px; border-left: 3px solid var(--accent, #4aa3ff); background: rgba(255,255,255,.03); border-radius: 0 8px 8px 0; display: flex; flex-direction: column; gap: 4px; }
.md-answer small { color: var(--muted); font-size: 11px; }
.md-answer p { margin: 4px 0 0; }
.md-fx { font-size: 12px; color: #8cc8ff; }
.md-badge.done { background: rgba(255,255,255,.07); color: var(--muted); }
.btn-continue.busy { opacity: .7; cursor: progress; }

/* ---------- 처리 중 화면 (계속) ---------- */
.btn-continue { position: relative; overflow: hidden; }
.btn-continue.busy { opacity: 1; cursor: pointer; background: linear-gradient(180deg, #3a2f12, #2a220d); color: var(--gold-2); }
.btn-continue.busy::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: linear-gradient(180deg, var(--gold-2), var(--gold)); opacity: .55; transition: width .4s ease; }
.btn-continue.busy > * { position: relative; }
.proc-back { position: fixed; inset: var(--topbar-h, 56px) 0 var(--footer-h) 0; z-index: 25; background: rgba(4, 7, 14, .55); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .25s; pointer-events: none; }
.proc-back.on { opacity: 1; }
.proc { width: min(980px, 100%); max-height: 100%; overflow: auto; background: rgba(15, 22, 38, .97); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); padding: 10px 12px 12px; transform: translateY(8px); transition: transform .25s; }
.proc-back.on .proc { transform: none; }
.proc-title { font-size: 12px; color: var(--muted); padding: 2px 4px 8px; }
.proc-grid { display: grid; grid-template-columns: 270px 1fr; gap: 12px; }
.proc-left, .proc-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.proc-day { --c: var(--gold); border-radius: 8px; padding: 14px 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 85%, #000), color-mix(in srgb, var(--c) 45%, #0f1626)); color: #fff; }
.proc-date { display: flex; align-items: center; justify-content: space-between; }
.proc-date b { font-size: 19px; }
.proc-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: proc-spin .8s linear infinite; }
@keyframes proc-spin { to { transform: rotate(360deg); } }
.proc-stop { font-style: normal; font-size: 11px; font-weight: 700; background: rgba(0,0,0,.3); padding: 2px 8px; border-radius: 4px; }
.proc-next { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; font-size: 13px; }
.proc-next small { opacity: .8; font-size: 11px; }
.proc-next span { display: flex; align-items: center; gap: 6px; }
.proc-next .team-logo { width: 18px; height: 18px; }
.proc-sub { opacity: .8; font-size: 12px; }
.proc-reason { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.25); font-size: 12px; font-weight: 700; }
.proc-msgs { background: var(--panel-2); border-radius: 8px; padding: 10px 0 6px; flex: 1; min-height: 200px; }
.proc-msgs h4, .proc-cal h4 { margin: 0 12px 8px; font-size: 13px; }
.proc-msg-list { max-height: 300px; overflow: auto; }
.proc-msg-day { font-size: 11px; color: var(--muted); background: rgba(255,255,255,.04); padding: 4px 12px; }
.proc-msg { display: grid; grid-template-columns: 1fr auto; padding: 7px 12px; border-bottom: 1px solid rgba(255,255,255,.04); animation: proc-in .35s ease; }
.proc-msg span { font-size: 11px; color: var(--muted); grid-column: 1; }
.proc-msg b { font-size: 12px; font-weight: 500; grid-column: 1; }
.proc-msg time { grid-column: 2; grid-row: 1 / 3; align-self: end; font-size: 10px; color: var(--muted); }
.proc-msg.pr-urgent b { color: #ff9a9e; }
.proc-msg.pr-todo b { color: #8cc8ff; }
.proc-none { color: var(--muted); font-size: 12px; padding: 6px 12px; margin: 0; }
@keyframes proc-in { from { opacity: 0; transform: translateX(-8px); } }
.proc-news { display: grid; grid-template-columns: 220px 1fr; background: var(--panel-2); border-radius: 8px; overflow: hidden; min-height: 200px; }
.proc-news.flip { animation: proc-in .4s ease; }
.proc-news-img { --c: #334; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--c) 60%, #222), color-mix(in srgb, var(--c) 25%, #0b101c)); }
.proc-news-img .team-logo { width: 110px; height: 110px; }
.proc-news-img .team-badge { transform: scale(2.2); }
.proc-face { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.proc-news-txt { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.proc-news-txt .nw-tag { align-self: flex-start; }
.proc-news-txt b { font-size: 17px; line-height: 1.35; }
.proc-news-txt p { margin: 0; font-size: 12.5px; color: #b3bccd; line-height: 1.6; }
.proc-news-txt small { margin-top: auto; font-size: 11px; color: var(--muted); }
.proc-cal { background: var(--panel-2); border-radius: 8px; padding: 10px 10px 12px; }
.proc-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.proc-dow { font-size: 10px; color: var(--muted); text-align: center; }
.proc-cell { min-height: 62px; background: rgba(255,255,255,.03); border-radius: 4px; padding: 4px 5px; display: flex; flex-direction: column; gap: 3px; transition: background .3s; overflow: hidden; }
.proc-cell > span { font-size: 11px; }
.proc-cell > div { display: flex; gap: 2px; flex-wrap: wrap; }
.proc-cell .ev { width: 15px; height: 15px; }
.proc-cell small { font-size: 9.5px; color: #b3bccd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proc-cell.past { opacity: .45; }
.proc-cell.today { background: color-mix(in srgb, var(--gold) 30%, transparent); box-shadow: inset 0 2px 0 var(--gold-2); }
@media (max-width: 767px) {
  .proc-back { padding: 10px 10px 76px; align-items: flex-start; }
  .proc-grid { grid-template-columns: 1fr; }
  .proc-msgs { min-height: 0; }
  .proc-msg-list { max-height: 140px; }
  .proc-news { grid-template-columns: 1fr; }
  .proc-news-img { display: none; }
  .proc-news-txt p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .proc-cell { min-height: 44px; }
  .proc-cell small { display: none; }
}
.btn-continue.match { background: linear-gradient(180deg, #ff7a6b, #d94a3d); color: #fff; }

/* ---------- 경기 중 잠금: 메뉴 대신 진행 표시 ---------- */
#screen-game.locked .tb-menu, #screen-game.locked .tb-hist, #screen-game.locked .tb-burger { visibility: hidden; pointer-events: none; }
.btn-continue.locked, .btn-continue.locked:hover { background: #222b3d; color: var(--muted); box-shadow: 0 0 0 1px var(--line); filter: none; cursor: default; }
.btn-continue.locked svg { display: none; }
#screen-game.locked .subtabs { align-items: center; gap: 6px; }
.subtabs .ml-title { margin-right: 10px; font-size: 13px; color: var(--text); white-space: nowrap; }
.subtabs .ml-title b { color: var(--gold-2); margin-right: 4px; }
.subtabs .ml-step { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; color: var(--muted); border: 1px solid transparent; white-space: nowrap; }
.subtabs .ml-step.on { color: var(--gold-2); border-color: var(--gold); background: rgba(200, 162, 74, .12); font-weight: 700; }
.subtabs .ml-note { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
@media (max-width: 760px) { .subtabs .ml-note { display: none; } }
