* { box-sizing: border-box; margin: 0; padding: 0 }
html, body { width: 100%; height: 100%; overflow: hidden; background: #08080b; color: #ddd9ec; font-family: Georgia, serif; user-select: none }
canvas#game { display: block; width: 100vw; height: 100vh; cursor: crosshair }
.hidden { display: none !important }
button { font-family: inherit; background: #171422; color: #ddd9ec; border: 1px solid #4d4666; padding: 7px 12px; cursor: pointer }
button:hover:not(:disabled) { border-color: #b9a8f0 }
button.sel { background: #3a2b63; border-color: #cdbdff }
button:disabled { opacity: .35; cursor: default }
#menu { position: fixed; inset: 0; background: radial-gradient(circle at 40% 55%, #24202f, #07060a 72%); display: flex; flex-direction: column; align-items: center; overflow: auto; padding: 24px 16px }
#menu h1 { font-weight: normal; letter-spacing: 8px; font-size: 26px; margin-bottom: 16px }
.cards, .weapons, .row { display: flex; gap: 8px; flex-wrap: wrap }
.detail { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; margin-top: 10px }
.detail canvas { width: min(520px, 92vw); height: auto }
.info { width: min(420px, 92vw); display: flex; flex-direction: column; gap: 10px; line-height: 1.5 }
.info em { color: #a996e6 } .info .st, .info .wd { font-size: 13px; color: #aaa5bd }
.info .start { margin-top: 8px; padding: 13px; font-size: 17px; background: #4a1621; border-color: #a8404f }
#panel { position: fixed; top: 90px; right: 12px; width: 310px; max-height: calc(100vh - 220px); overflow-y: auto; background: #0c0a12ee; border: 1px solid #4d4666; padding: 12px; font-size: 12px }
#panel h4 { margin: 10px 0 6px } #panel button { padding: 4px 8px; font-size: 11px } #panel .row { margin-bottom: 6px }
.readout { white-space: pre-line; color: #b9c4ff; margin-top: 6px; line-height: 1.5 }
details { margin-top: 8px; border-top: 1px solid #2d2840; padding-top: 6px } summary { cursor: pointer; color: #cdbdff }
label { display: grid; grid-template-columns: 112px 1fr 40px; gap: 6px; align-items: center; margin-top: 4px }
label input { width: 100%; accent-color: #8b72d6 } label b { text-align: right; font-weight: normal }
