* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root { color-scheme: dark; font: 100%/1.5 system-ui,sans-serif; color: #eef4ff; background: #121a26; }
body { margin: 0; }
main { width: min(100% - 2rem, 58rem); margin: 2rem auto 4rem; }
header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem; }
h1, h2, p { margin: 0 0 .75rem; }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
a { color: #a6d4ff; overflow-wrap: anywhere; }
nav, .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.panel { background: #202c3d; border: 2px solid #344760; border-radius: .75rem; padding: 1rem; margin-bottom: 1rem; }
label { display: block; margin: .6rem 0; }
input, textarea, select, button { font: inherit; }
input:not([type=checkbox]), textarea, select { display: block; width: 100%; padding: .5rem; border-radius: .35rem; border: 1px solid #8090a3; background: #121a26; }
textarea { min-height: 5rem; }
button { min-height: 44px; border: 1px solid #7799bf; border-radius: .45rem; padding: .45rem .8rem; background: #294768; color: #fff; cursor: pointer; }
button:disabled { opacity: .52; cursor: default; }
:focus-visible { outline: 3px solid #83c6ff; outline-offset: 3px; }
summary { cursor: pointer; font-weight: 650; }
#bid { width: 100%; min-height: 64px; font-weight: 700; font-size: 1.25rem; background: #1661a0; }
#lot-panel.success, #lot-panel.mine { border-color: #ffd266; }
#lot-panel.success { animation: glow .65s ease-out; }
#lot-panel.race { border-color: #a0a7b2; }
#description, #secret { white-space: pre-wrap; overflow-wrap: anywhere; }
#price { font-weight: 700; font-size: 1.45em; }
#message { min-height: 1.5rem; }
#photo, #qr { max-width: 100%; max-height: 50vh; border-radius: .35rem; }
#qr { width: min(65vw, 330px); image-rendering: pixelated; border-radius: 0; }
[data-view=screen] main { width: min(100% - 3rem, 86rem); text-align: center; font-size: clamp(1rem, 2.5vw, 2rem); }
[data-view=screen] header { justify-content: center; align-items: center; }
@keyframes glow { from { box-shadow: 0 0 1rem #ffd266; } to { box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
