/* code.css — the code window ใส่โค้ด (js/online/code.js). The K look comes from css/kui.css (kw-*); this file is layout only. */
#codewin .rdm-wrap { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; box-sizing: border-box; }
.rdm-win { width: min(calc(560 * var(--u)), 100%); }
.rdm-win .kw-title > span:first-child { font-family: 'Mitr', 'Baloo 2', sans-serif; font-size: calc(30 * var(--u)); }
.rdm-body { display: grid; gap: calc(14 * var(--u)); padding: calc(20 * var(--u)) calc(24 * var(--u)) calc(22 * var(--u)); }
.rdm-label { font-weight: 600; }
.rdm-input {
  box-sizing: border-box; width: 100%; min-height: max(44px, calc(52 * var(--u))); padding: 0 calc(16 * var(--u));
  border: calc(4 * var(--u)) solid #37637b; border-radius: calc(14 * var(--u)); background: #10283b;
  font: 800 max(16px, calc(26 * var(--u))) / 1.2 'Baloo 2', 'Mitr', sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
}
.rdm-input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; color: #a7c5d9; }
#codewin .kw-btn { min-height: max(44px, calc(44 * var(--u))); justify-self: center; padding-inline: max(20px, calc(28 * var(--u))); white-space: nowrap; }
.rdm-answer { min-height: 1.45em; text-align: center; font-size: calc(18 * var(--u)); overflow-wrap: anywhere; }
.rdm-answer p { margin: 0 0 calc(8 * var(--u)); }
.rdm-answer.good { color: #a7c5d9; }
.rdm-answer.bad { color: #d2acb0; }
.rdm-gives, .rdm-mailed { font-size: calc(16 * var(--u)); color: #a7c5d9; }
.rdm-parts { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(8 * var(--u)); margin-bottom: calc(8 * var(--u)); }
.rdm-part {
  display: inline-flex; align-items: center; gap: calc(6 * var(--u)); padding: calc(4 * var(--u)) calc(10 * var(--u));
  border: calc(2 * var(--u)) solid rgba(48, 42, 59, 0.35); border-radius: calc(10 * var(--u)); background: #10283b; color: var(--ink);
}
.rdm-part img { width: calc(28 * var(--u)); height: calc(28 * var(--u)); object-fit: contain; }
@media (max-width: 640px) { #codewin { --u: calc(100vw / 440); } }
#codewin .kw-x { min-width: 44px; min-height: 44px; }
.ml-foot [data-ml="code"] { min-height: 44px; min-width: 44px; }
