/* The Luau playground (tools/luau-playground.html, 2026-10-21), on tools.css: the toolbar, the editor and
   output side by side (stacked on phones), the comparison table and the "five things to try" list. */
.lp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.lp-btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.lp-kbd { margin-left: 6px; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .14); font-size: 11.5px; font-weight: 600; }
.lp-select select {
  min-height: 40px; padding: 0 34px 0 12px; border: 1px solid rgba(233, 226, 250, .16); border-radius: 10px;
  background: #1c1528 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23b7abc8' stroke-width='1.75' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
  color: #e6def3; font: inherit; font-size: 14px; appearance: none; cursor: pointer;
}
.lp-select select:focus-visible, .lp-code:focus-visible, .lp-link:focus-visible { outline: 2px solid var(--rc-focus, #a78bfa); outline-offset: 2px; }
.lp-link { margin-left: auto; padding: 6px 4px; border: 0; background: none; color: #b7abc8; font: inherit; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lp-link:hover { color: #f6f1ff; }

.lp-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; }
.lp-code, .lp-output { font-family: var(--rc-font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace); font-size: 13.5px; line-height: 1.6; tab-size: 4; }
.lp-code {
  display: block; width: 100%; min-height: 360px; resize: vertical; padding: 14px 16px; white-space: pre; overflow: auto;
  border: 1px solid rgba(233, 226, 250, .14); border-radius: 14px; background: #0f0b17; color: #efe9fb; caret-color: #c4b5fd;
}
.lp-out-wrap { display: flex; flex-direction: column; min-width: 0; border: 1px solid rgba(233, 226, 250, .14); border-radius: 14px; background: #0f0b17; overflow: hidden; }
.lp-out-head { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; border-bottom: 1px solid rgba(233, 226, 250, .1); font-size: 12.5px; font-weight: 600; color: #b7abc8; }
.lp-status { font-weight: 500; color: #8f84a3; }
.lp-output { flex: 1; min-height: 300px; max-height: 420px; padding: 12px 14px; overflow: auto; color: #e6def3; white-space: pre-wrap; word-break: break-word; }
.lp-line + .lp-line { margin-top: 2px; }
.lp-line.is-error { color: #fca5a5; }
.lp-line.is-ok { color: #6ee7b7; }
.lp-line.is-note { color: #b7abc8; }

.lp-table { max-width: 920px; margin: 0 auto; }
.lp-note { max-width: 920px; margin: 14px auto 0; color: var(--rc-text-2, #c5b9d8); font-size: 15px; line-height: 1.6; }
.lp-steps { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; padding-left: 22px; color: var(--rc-text-2, #c5b9d8); font-size: 16px; line-height: 1.6; }
.lp-steps strong { color: #f6f1ff; }

@media (max-width: 760px) {
  .lp-split { grid-template-columns: minmax(0, 1fr); }
  .lp-code { min-height: 260px; }
  .lp-output { min-height: 160px; }
  .lp-link { margin-left: 0; }
  .lp-kbd { display: none; }
}
