/* Award designer. Steps on the left, the layout preview stays in view on the right (on top on a phone). */
:root {
  --ink: #1c2129; --ink2: #3a414d; --muted: #5f6671; --rule: #dcdfe4; --paper: #f7f8fa; --surface: #fff;
  --gold: #f2c744; --gold-deep: #d9a227; --gold-soft: #fdf3cf; --warn: #9a3412; --warn-bg: #fff1e6;
  --display: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
img { max-width: 100%; display: block; }

.band { background: var(--ink); color: #fff; }
.band__in { max-width: 78rem; margin: 0 auto; padding: .8rem 1rem; display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; }
.band h1 { margin: 0; font: 600 1.35rem/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--gold); }
.band span { font-size: .85rem; color: #c9cdd4; }
.band .chip { margin-left: auto; border: 1px solid var(--gold); color: var(--gold); padding: .05rem .5rem; border-radius: 2px; font: .72rem var(--display); letter-spacing: .12em; text-transform: uppercase; }

.wrap { max-width: 78rem; margin: 0 auto; padding: 1.25rem 1rem 4rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 1.5rem; align-items: start; }
.steps { display: grid; gap: 1rem; min-width: 0; }
.step { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 1rem 1.1rem 1.2rem; display: grid; gap: .8rem; min-width: 0; scroll-margin-top: 1rem; }
.step h2 { margin: 0; font: 500 1.05rem/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; display: flex; gap: .6rem; align-items: center; }
.step h2 b { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--gold); font-size: .9rem; }
.meta { margin: 0; color: var(--muted); font-size: .88rem; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .6rem; }
.tile { display: grid; gap: .3rem; justify-items: center; text-align: center; padding: .9rem .5rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; cursor: pointer; }
.tile svg { width: 3.2rem; height: 3.2rem; }
.tile strong { font: 500 1rem var(--display); letter-spacing: .04em; text-transform: uppercase; }
.tile small { color: var(--muted); font-size: .8rem; }
.tile:hover { border-color: var(--muted); }
.tile[aria-pressed="true"] { background: var(--gold-soft); border-color: var(--gold-deep); box-shadow: inset 0 0 0 1px var(--gold-deep); }

input[type="search"], .form input, .form textarea, select, .line input, .opt input { width: 100%; padding: .5rem .65rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; max-height: 9.5rem; overflow: auto; }
.chipbtn { border: 1px solid var(--rule); background: var(--surface); border-radius: 999px; padding: .28rem .7rem; font-size: .86rem; cursor: pointer; }
.chipbtn small { color: var(--muted); }
.chipbtn:hover { border-color: var(--muted); }
.chipbtn[aria-pressed="true"] { background: var(--gold-soft); border-color: var(--gold-deep); font-weight: 600; }
.dot { display: inline-block; width: .9rem; height: .9rem; border-radius: 50%; vertical-align: -.1rem; margin-right: .3rem; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .6rem; }
.card { display: grid; gap: .3rem; align-content: start; text-align: left; padding: .5rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; cursor: pointer; }
.card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--paper); border-radius: 3px; }
.card strong { font-size: .88rem; line-height: 1.25; overflow-wrap: anywhere; }
.card small { color: var(--muted); font-size: .78rem; }
.card:hover { border-color: var(--muted); }
.card[aria-pressed="true"] { border-color: var(--gold-deep); box-shadow: 0 0 0 2px var(--gold); }

.btn { justify-self: start; padding: .6rem 1.1rem; background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 4px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
.btn--ghost { background: var(--surface); color: var(--ink); }
.btn:disabled { opacity: .45; cursor: default; }

.piece { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .8rem; align-items: center; }
.piece img { width: 5.5rem; height: 5.5rem; object-fit: contain; background: var(--paper); border-radius: 4px; }
.piece strong { display: block; font-size: 1.05rem; line-height: 1.25; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .7rem .9rem; margin-top: .8rem; }
.opt { display: grid; gap: .25rem; font-size: .88rem; font-weight: 600; min-width: 0; }
.opt small { font-weight: 400; color: var(--muted); }
.opt .chips { max-height: none; font-weight: 400; }
.opt input[type="number"] { max-width: 7rem; }

.lines { display: grid; gap: .45rem; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .5rem; align-items: center; }
.line span { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 3.2rem; text-align: right; }
.line span.over { color: var(--warn); font-weight: 700; }
.line button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; padding: 0 .3rem; }
.row { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin-top: .7rem; }
.row label { font-size: .88rem; font-weight: 600; display: flex; gap: .5rem; align-items: center; }
.row select { width: auto; }
.drop { display: grid; gap: .5rem; padding: .9rem; border: 1px dashed var(--muted); border-radius: 6px; background: var(--paper); }
.file { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; font-size: .9rem; }
.file b { overflow-wrap: anywhere; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem .9rem; }
.form label { display: grid; gap: .25rem; font-size: .88rem; font-weight: 600; }
.form__wide { grid-column: 1 / -1; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .7rem 0; }
.actions .btn { justify-self: auto; font-size: .9rem; padding: .5rem .8rem; }
.attach { margin: 0; padding: .6rem .8rem; background: var(--gold-soft); border-left: 3px solid var(--gold-deep); font-size: .9rem; flex-basis: 100%; }
#ticket { width: 100%; height: 34rem; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }

.stage { position: sticky; top: 1rem; display: grid; gap: .6rem; min-width: 0; }
.stage__art { background: #1c2129; border-radius: 6px; padding: .6rem; }
.stage__art svg { border-radius: 3px; background: #1c2129; }
.row .opt { flex: 1 1 14rem; }
.row input[type="color"] { width: 2.6rem; height: 2rem; padding: 0; border: 1px solid var(--rule); border-radius: 4px; }
.stage__art svg { display: block; width: 100%; height: auto; max-height: 62vh; }
.stage__label { margin: 0; font: .75rem var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; }
.facts, .warns { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .88rem; }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem .1rem; border-bottom: 1px solid var(--rule); }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.warns li { padding: .5rem .7rem; background: var(--warn-bg); border-left: 3px solid var(--warn); color: var(--warn); border-radius: 2px; }
.warns li.note { background: var(--gold-soft); border-color: var(--gold-deep); color: var(--ink2); }

@media (max-width: 56rem) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .stage { position: sticky; top: 0; z-index: 5; order: -1; background: var(--paper); padding-bottom: .4rem; }
  .stage__art svg { max-height: 34vh; }
  .stage .facts { display: none; }
  .form { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
