:root { color-scheme: light; font-family: "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif; color: #17130c; background: #f3eddf; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 90% 0, #ffd24d 0 18%, transparent 19%), #f3eddf; }
button, input { font: inherit; }
button { cursor: pointer; }
main { width: min(1040px, calc(100% - 32px)); margin: auto; padding: 36px 0 80px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 36px; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand-mark { display: grid; place-items: center; width: 58px; height: 58px; background: #17130c; color: #ffd24d; border-radius: 4px; font-size: 30px; transform: rotate(-3deg); }
h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.05em; }
header p { margin: 4px 0 0; font-family: system-ui, sans-serif; color: #685f50; }
.clear { border: 2px solid #17130c; background: transparent; padding: 11px 14px; border-radius: 3px; box-shadow: 4px 4px 0 #17130c; }
.clear:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; padding: 18px; background: #ffd24d; border: 3px solid #17130c; box-shadow: 8px 8px 0 #17130c; }
label span { display: block; margin: 0 0 7px; font: 700 12px system-ui, sans-serif; text-transform: uppercase; letter-spacing: .08em; }
input { width: 100%; min-width: 0; height: 50px; border: 2px solid #17130c; background: #fffdf7; border-radius: 2px; padding: 0 14px; font-family: system-ui, sans-serif; font-size: 17px; outline: none; }
input:focus { box-shadow: inset 0 -4px #ff7348; }
form > button { align-self: end; height: 50px; padding: 0 26px; border: 2px solid #17130c; background: #ff7348; color: #17130c; }
#formError { grid-column: 1 / -1; margin: 0; min-height: 0; color: #a31e00; font: 700 13px system-ui, sans-serif; }
#formError:empty { display: none; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 46px 0 16px; border-bottom: 3px solid #17130c; }
h2 { margin: 0 0 10px; font-size: 20px; }
.section-head span { font: 600 14px system-ui, sans-serif; color: #685f50; }
.parcel-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.parcel-card { min-width: 0; padding: 18px 20px 16px; background: #fffdf7; border: 3px solid #17130c; box-shadow: 6px 6px 0 #ff7348; transition: transform .15s, opacity .15s; outline: none; }
.parcel-card:hover, .parcel-card:focus-visible { transform: translateY(-3px); }
.card-top, .hint { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 700 12px system-ui, sans-serif; color: #685f50; }
.status { padding: 4px 8px; background: #d9ff69; color: #17130c; border: 1px solid #17130c; }
.code { display: block; overflow-wrap: anywhere; margin: 20px 0 8px; font-size: clamp(42px, 8vw, 76px); line-height: .95; letter-spacing: -.06em; }
.note { min-height: 24px; margin: 0 0 22px; overflow-wrap: anywhere; font: 600 16px system-ui, sans-serif; color: #4b4236; }
.delete { width: 30px; height: 30px; border: 0; background: transparent; font-size: 24px; color: #685f50; }
.parcel-card.done { opacity: .5; background: #d8d2c6; box-shadow: 6px 6px 0 #837a6b; }
.parcel-card.done .code { text-decoration: line-through 5px; }
.parcel-card.done .status { background: #b7b0a4; }
.empty { grid-column: 1/-1; padding: 70px 20px; text-align: center; border: 3px dashed #a69b89; font-family: system-ui, sans-serif; color: #685f50; }
.empty strong { display: block; color: #17130c; font-size: 22px; margin-bottom: 8px; }
@media (max-width: 680px) { main { width: min(100% - 22px, 1040px); padding-top: 20px; } header { align-items: flex-start; } header p { max-width: 190px; } .clear { margin-top: 4px; font-size: 12px; } form { grid-template-columns: 1fr; } form > button { width: 100%; } .parcel-list { grid-template-columns: 1fr; } .code { font-size: clamp(48px, 18vw, 72px); } }
