* { box-sizing: border-box; }
body { margin: 0; color: #192238; font: 16px/1.5 system-ui, sans-serif; background: #e8edf5 url(images/background.jpg) center top / cover fixed; }
header { padding: 12px 20px; background: #fff; text-align: center; }
header img { display: block; margin: auto; max-width: min(100%, 950px); max-height: 140px; object-fit: contain; }
main { margin: 24px auto; width: min(1180px, calc(100% - 24px)); padding: clamp(12px, 3vw, 30px); background: #fff; border-radius: 16px; }
h1, h2 { line-height: 1.15; margin: 0 0 12px; }
h2 { font-size: 1.12rem; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
button, select { font: inherit; padding: 6px 10px; color: #13213c; background: #fff; border: 1px solid #8495b1; border-radius: 6px; }
button { cursor: pointer; }
button:hover:not(:disabled) { background: #e7efff; }
button[aria-pressed=true] { background: #194683; color: white; }
button:disabled { opacity: .47; cursor: default; }
:focus-visible { outline: 3px solid #164d99; outline-offset: 2px; }
aside { background: #edf2f9; padding: 14px; border-radius: 10px; }
#palette { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 12px 0 20px; }
#palette button { padding: 3px; }
#palette img { width: 100%; height: 42px; display: block; object-fit: contain; }
#court { display: block; width: 100%; height: auto; background: #234a6c; border-radius: 10px; user-select: none; }
.marker { cursor: grab; touch-action: none; }
.marker:active { cursor: grabbing; }
#status { min-height: 1.5em; margin-bottom: 0; }
@media (max-width: 750px) { .workspace { grid-template-columns: 1fr; } #palette { grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); } }
