/* LDK-1 Beat Contest, Vol. 8 "L.DRE OS" style: square corners, hard steel shadows, window title bars. */
:root {
  --navy: #222a4a; --cream: #efe9da; --steel: #8fa3c8; --ink: #1b2240;
  --muted: #4a5578; --white: #fff; --bad: #a3242f;
  --px: 'Silkscreen', monospace; --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--navy); color: var(--cream); font-family: var(--mono); font-size: 15px; line-height: 1.45; }
a { color: inherit; }
[hidden] { display: none !important; }

.page { max-width: 1080px; margin: 0 auto; padding: 18px 16px 32px; display: flex; flex-direction: column; gap: 20px; }

.top { display: flex; justify-content: space-between; align-items: center; }
.tag { background: var(--cream); color: var(--ink); font-family: var(--px); font-size: 15px; padding: 4px 10px; box-shadow: 5px 5px 0 var(--steel); }
.closes { font-family: var(--px); font-size: 12px; color: var(--steel); }

.cols { display: flex; flex-direction: column; gap: 22px; }
.side { display: contents; }
.main { order: 1; }
.title { order: 0; }
.sys { order: 2; }
.studio { order: 3; }

/* Windows */
.win { background: var(--cream); color: var(--ink); border: 3px solid var(--cream); box-shadow: 7px 7px 0 var(--steel); margin: 0; }
.bar { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-bottom: 3px solid var(--ink); background: var(--cream); color: var(--ink); font-family: var(--px); font-size: 13px; }
.bar.steel { background: var(--steel); justify-content: center; letter-spacing: 3px; }
.dots { flex: 1; height: 9px; background-image: radial-gradient(var(--ink) 1.2px, transparent 1.4px); background-size: 5px 5px; }
.xb { width: 16px; height: 16px; border: 2px solid var(--ink); display: grid; place-items: center; font-size: 10px; line-height: 1; }

.title { background: var(--ink); color: var(--cream); }
.title-body { padding: 14px 14px 18px; text-align: center; }
.kicker { font-family: var(--px); font-size: 14px; color: var(--steel); letter-spacing: 2px; }
h1 { margin: 2px 0 0; font-family: var(--px); font-weight: 700; font-size: 44px; line-height: 1; }
.chips { margin-top: 12px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; font-family: var(--px); font-size: 12px; }
.chip { border: 2px solid var(--steel); padding: 1px 8px; }
.chip.solid { background: var(--steel); color: var(--ink); padding: 3px 8px; border: 0; }

.sys { background: var(--ink); color: var(--cream); }
.sys-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.sys-body p { margin: 0; }
.k { font-family: var(--px); font-size: 12px; color: var(--steel); }

.studio img { display: block; width: 100%; height: 220px; object-fit: cover; object-position: 50% 45%; image-rendering: pixelated; }

/* Form */
.form-body { padding: 16px 14px 18px; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .lbl, legend { font-family: var(--px); font-size: 12px; letter-spacing: 1px; color: var(--ink); }
.opt { color: var(--muted); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
input[type=text], input[type=email], input:not([type]) {
  width: 100%; height: 46px; border: 3px solid var(--ink); border-radius: 0; background: var(--white); padding: 0 10px;
  font-family: var(--mono); font-size: 16px; color: var(--ink); appearance: none;
}
input:focus-visible, .drop:focus-within, .sound:focus-within, button:focus-visible, a:focus-visible { outline: 3px solid var(--steel); outline-offset: 2px; }

.drop { position: relative; display: flex; flex-direction: column; gap: 10px; border: 3px dashed var(--ink); background: var(--white); padding: 12px; cursor: pointer; min-height: 76px; justify-content: center; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop.over { background: #dfe6f3; }
.drop.bad { border-color: var(--bad); }
.drop-empty { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.drop-big { font-family: var(--px); font-size: 14px; }
.drop-small { font-size: 12px; color: var(--muted); }
.drop-file { display: flex; align-items: center; gap: 10px; }
.ftype { width: 42px; height: 42px; flex: none; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-family: var(--px); font-size: 11px; }
.fmeta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fname { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsub { font-size: 12px; color: var(--muted); }
.fsub.bad { color: var(--bad); font-weight: 600; }
.swap { height: 44px; padding: 0 10px; display: grid; place-items: center; border: 3px solid var(--ink); background: var(--cream); font-family: var(--px); font-size: 11px; }
.progress { height: 12px; border: 2px solid var(--ink); background: var(--cream); }
.progress div { width: 0; height: 100%; background: var(--steel); transition: width .2s; }
.hint { font-size: 12px; color: var(--muted); }

.sounds { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sounds legend { padding: 0; margin-bottom: 8px; }
.sound { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 10px; border: 3px solid var(--ink); background: var(--white); font-family: var(--px); font-size: 12px; cursor: pointer; }
.sound input, .agree input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--steel); }
.sound:has(input:checked) { background: var(--ink); color: var(--cream); }

.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; cursor: pointer; }
.turnstile { min-height: 65px; }
.error { margin: 0; padding: 10px 12px; border: 3px solid var(--bad); background: #fbeaea; color: var(--bad); font-size: 14px; font-weight: 600; }

.go { display: grid; place-items: center; width: 100%; height: 56px; border: 3px solid var(--ink); background: var(--ink); color: var(--cream); font-family: var(--px); font-size: 18px; letter-spacing: 1px; box-shadow: 5px 5px 0 var(--steel); cursor: pointer; text-decoration: none; border-radius: 0; }
.go:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--steel); }
.go:disabled { opacity: .7; cursor: wait; }
.go.ghost { background: var(--cream); color: var(--ink); }

/* Confirmation / closed */
.done-body { padding: 22px 18px 24px; display: flex; flex-direction: column; gap: 12px; text-align: center; align-items: center; }
.done-body p { margin: 0; max-width: 420px; }
.done-check { width: 64px; height: 64px; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-size: 34px; }
.done-body h2 { margin: 0; font-family: var(--px); font-size: 28px; line-height: 1.1; }
.done-what { font-family: var(--px); font-size: 14px; background: var(--ink); color: var(--cream); padding: 8px 12px; }
.done-body .go { margin-top: 8px; }

.foot { font-family: var(--px); font-size: 11px; color: var(--steel); text-align: center; }
.foot a { text-decoration: none; }

/* Desktop: art + info on the left, form on the right */
@media (min-width: 860px) {
  .page { padding: 28px 28px 40px; gap: 26px; }
  .cols { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 34px; align-items: start; }
  .side { display: flex; flex-direction: column; gap: 26px; }
  .title, .sys, .studio, .main { order: 0; }
  h1 { font-size: 64px; }
  .studio img { height: 340px; }
}
