:root { color-scheme: light; font: 17px/1.5 "Segoe UI", sans-serif; color: #23392e; background: #f7f5ee; }
* { box-sizing: border-box; }
body { margin: 0; }
header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem max(1rem, calc((100vw - 52rem)/2)); background: #1f4033; color: white; }
header strong, h1, h2 { font-family: Georgia, serif; }
header strong { font-size: 1.4rem; }
header span { font-size: .9rem; }
main { max-width: 54rem; padding: 1rem 1rem 4rem; margin: auto; }
h1 { font-size: clamp(2.3rem, 7vw, 3.8rem); line-height: 1.1; margin: 1.3rem 0 .7rem; overflow-wrap: anywhere; }
h2 { font-size: 1.4rem; margin: 0 0 .6rem; }
p, ul { margin: .6rem 0; }
ul { padding-inline-start: 1.4rem; }
button, input, select { font: inherit; }
button { border: 1px solid #486655; background: #fff; color: #1f4033; border-radius: .4rem; padding: .45rem .9rem; cursor: pointer; }
button[type=submit], #new { background: #1f4033; color: white; }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #ad611c; outline-offset: 2px; }
.back { padding-inline: 0; background: transparent; border: 0; text-decoration: underline; }
.actions, .row { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.actions { margin: 1rem 0; }
.row { justify-content: space-between; padding: .35rem 0; }
form { max-width: 38rem; }
form > label, fieldset > label { display: block; margin: .65rem 0; }
input:not([type=checkbox],[type=file]), select { border: 1px solid #819287; border-radius: .35rem; background: white; padding: .45rem; max-width: 100%; }
form > label > input, form > label > select { display: block; width: 100%; }
input[type=checkbox] { width: 1.1rem; height: 1.1rem; vertical-align: middle; }
.upload { display: grid; gap: .2rem; font-size: .9rem; }
fieldset, .panel { min-width: 0; margin: .9rem 0; padding: .85rem 1rem; border: 1px solid #d1d6c9; border-radius: .45rem; background: #fffef9; }
legend { font-weight: 600; }
#status { color: #4c5b4e; }
#status.error { color: #9c301e; }
#details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: .8rem; margin: 1rem 0; }
#details .panel { margin: 0; }
#heroes { list-style: none; padding: 0; }
#heroes button { width: 100%; text-align: left; margin: .3rem 0; }
.panel details { margin: .35rem 0; padding: .35rem 0; border-bottom: 1px solid #e0e2d6; }
summary { cursor: pointer; color: #214e3a; font-weight: 600; }
summary:focus-visible { outline: 3px solid #ad611c; }
.panel h3 { margin-bottom: .3rem; }
.control, #choices > label { display: grid; gap: .25rem; margin: .6rem 0; }
.control:has(input[type=checkbox],input[type=radio]) { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: .5rem; }
.control input[type=checkbox], .control input[type=radio] { flex: none; }
.rule-text { white-space: pre-line; overflow-wrap: anywhere; }
.house { padding-inline-start: .75rem; border-inline-start: 3px solid #b58045; }
.card small, footer { color: #53675a; }
.panel button { margin: .2rem .2rem .2rem 0; }
footer { max-width: 54rem; margin: auto; padding: 0 1rem 2rem; font-size: .85rem; }
footer a { color: #28553d; }
@media (max-width: 36rem) { header { flex-wrap: wrap; gap: .25rem 1rem; } }
