.lock-page { padding-top: 44px; }
.lock-title { margin-bottom: 25px; }
.lock-title h1 { margin: 0 0 10px; }
.lock-title p { max-width: 44ch; margin: 0; color: var(--subtle); font-size: 17px; }
.lock-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr); align-items: start; gap: 24px; }
.lock-game { min-height: 225px; }
.lock-placeholder { color: var(--subtle); }
.lock-stage .chain-art { margin: 4px auto 0; }
.lock-intro .chain-art { max-width: 560px; margin: 9px auto 0; }
.lock-board-title { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 5px; }
.lock-board-title h2 { margin: 0; }
.lock-timer { color: #f4d7a7; font: 700 14px/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.lock-track, .lock-bonds, .lock-phrases { list-style: none; padding: 0; margin: 0; }
.lock-track { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.lock-track li { min-width: 0; min-height: 44px; }
.lock-track button, .lock-track .fixed, .empty-slot { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 44px; padding: 4px 2px; border: 1px solid #7589a2; border-radius: 5px; color: #f6f9ff; background: #2c3b4f; font-size: clamp(11px, 1.5vw, 15px); font-weight: 700; text-align: center; overflow-wrap: anywhere; }
.lock-track button:hover { border-color: #e2ba81; background: #433c2b; }
.lock-track .fixed { flex-direction: column; gap: 1px; color: #f0d3aa; background: #3d362d; border-color: #9c835c; }
.lock-track .fixed span { font-size: 11px; font-weight: 650; }
.lock-track .fixed strong { max-width: 100%; line-height: 1.15; }
.lock-track .empty-slot { border-style: dashed; color: #d4dfed; background: #243246; font-family: var(--mono); font-size: 11px; }
.lock-bonds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding-inline: 8.333%; margin-top: 7px; }
.lock-bonds li { display: grid; place-items: center; height: 13px; }
.lock-bonds span { width: 10px; height: 2px; background: #8b9cb1; }
.lock-bonds .holds span { width: 6px; height: 11px; border: solid #e1c084; border-width: 0 2px 2px 0; background: transparent; transform: translateY(-1px) rotate(42deg); }
.lock-bonds .breaks span { width: 10px; height: 10px; background: linear-gradient(45deg, transparent 40%, #edaa96 40% 60%, transparent 60%), linear-gradient(-45deg, transparent 40%, #edaa96 40% 60%, transparent 60%); }

.lock-rack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; min-width: 0; margin: 15px 0 0; padding: 0; border: 0; }
.lock-rack legend { padding: 0 0 6px; font-size: 13px; font-weight: 700; }
.rack-word { min-width: 0; min-height: 44px; padding: 5px; border: 1px solid #b9cadd; border-radius: 7px; color: var(--ink); background: var(--wash); font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.rack-word:hover:not(:disabled) { border-color: #7e97b2; background: #d8e6f3; }
.rack-word:disabled { color: var(--subtle); background: var(--white); border-color: var(--line); }
.lock-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 16px; margin-top: 13px; }
.lock-actions .primary:disabled, .post-time .primary:disabled { color: #4b6077; border-color: #c7d6e4; background: #e1e9f3; }
.lock-message { margin: 8px 0 0; color: #2e587d; font-size: 14px; }
.lock-message:empty, .rank-notice:empty { display: none; }
.lock-message.error { color: #8b3940; }
.lock-phrases { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; }
.lock-phrases li { padding: 3px 7px; border: 1px solid #8294ac; border-radius: 5px; color: #edf4fc; font-size: 12px; }
.post-time { margin-top: 16px; }
.post-time label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 13px; }
.post-time > div { display: flex; gap: 8px; }
.post-time input { flex: 1; min-width: 0; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; }
.lock-posted { margin: 12px 0 0; color: #2e587d; font-size: 14px; font-weight: 700; }

.rankings { min-width: 0; scroll-margin-top: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.rank-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rank-header h2 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.rank-rule, .rank-notice { margin: 0 0 13px; color: var(--subtle); font-size: 13px; }
.rank-notice { margin: 7px 0 0; }
.rank-empty { padding: 11px 0 3px; margin: 0; border-top: 1px solid var(--line); color: var(--subtle); font-size: 14px; }
.rankings table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.rankings th, .rankings td { padding: 7px 4px; border-top: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
.rankings th:last-child, .rankings td:last-child { text-align: right; }
.rankings .your-rank { background: var(--wash); font-weight: 700; }

@media (max-width: 740px) {
  .lock-page { padding-top: 28px; }
  .lock-title { margin-bottom: 15px; }
  .lock-title p { font-size: 15px; }
  .lock-layout { grid-template-columns: minmax(0, 1fr); gap: 13px; }
}

@media (max-width: 440px) {
  .lock-page { padding-top: 14px; }
  .lock-title { margin-bottom: 8px; }
  .lock-title h1 { margin: 0; font-size: 28px; }
  .lock-title p { display: none; }
  .lock-stage { padding-inline: 7px; }
  .lock-track { gap: 3px; }
  .lock-track li { min-height: 42px; }
  .lock-track button, .lock-track .fixed, .empty-slot { min-height: 42px; }
  .rankings { padding: 12px; }
}
