:root { color-scheme: dark; font: 17px/1.45 Georgia, serif; color: #f0e3d3; background: #080706; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header, .bar, .actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
header { padding: .8rem 5%; justify-content: space-between; border-bottom: 1px solid #543d2b; }
a { color: #f2cfaa; }
.brand { letter-spacing: .12em; text-decoration: none; font-size: clamp(24px, 3vw, 38px); }
main { width: min(94%, 1000px); margin: 2rem auto; }
h1, h2 { font-weight: 400; line-height: 1.14; }
h1 { font-size: clamp(34px, 5vw, 58px); font-style: italic; }
h2 { margin: .5rem 0; }
small { font-size: .86rem; color: #d0c6ba; }
#message:empty { display: none; }
#message { border-left: 2px solid #c78e59; padding-left: .75rem; }
.bar h2 { margin-right: auto; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; padding: .48rem .85rem; border: 1px solid #c78e59; border-radius: 4px; background: #f0c79e; color: #1a110c; }
button:disabled { opacity: .55; cursor: default; }
.secondary, .danger { background: #15100c; color: #f2cfaa; }
.danger { margin-left: auto; color: #f5b6a1; }
.panel { padding: clamp(16px, 3vw, 30px); border: 1px solid #78502f; border-radius: 6px; background: #100c09; display: grid; gap: 1rem; margin: 1.3rem 0; }
#login { max-width: 440px; }
label { display: grid; gap: .28rem; }
input, select, textarea { padding: .55rem; min-width: 0; border: 1px solid #75583d; border-radius: 4px; background: #0a0807; color: inherit; width: 100%; }
textarea { resize: vertical; }
.check { display: flex; align-items: center; gap: .6rem; }
.check input { width: auto; }
.pair, #slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
fieldset { min-width: 0; border: 1px solid #543d2b; padding: .8rem; }
#slots { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: .6rem; }
.slot { min-width: 0; }
.slot img { display: block; max-width: 100%; height: 90px; object-fit: contain; margin: .4rem 0; }
.slot input { font-size: .8rem; }
.slot button { margin-top: .35rem; padding: .25rem .5rem; font-size: .82rem; }
.row { display: flex; align-items: center; gap: .8rem; padding: .75rem 0; border-bottom: 1px solid #493323; }
.row div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.row strong, .row small { display: block; }
.row img { width: 70px; height: 50px; object-fit: cover; }
:focus-visible { outline: 2px solid #ffc48a; outline-offset: 3px; }
@media (max-width: 620px) { #slots, .pair { grid-template-columns: 1fr; } main { width: 92%; } .bar h2 { width: 100%; } }
