/* Certificate-only styles; game, dialogue and naming controls keep their layout. */
.certificate{display:flex;flex-direction:column;align-items:center;gap:10px;flex:none}
.certificate canvas[hidden]{display:none}
.card-art{width:min(100%,820px);line-height:0;flex:none;filter:drop-shadow(0 10px 12px #59402d25);touch-action:pan-y}
.card-art:has(svg){aspect-ratio:86/54}
.card-art svg{width:100%;height:auto;display:block}
.card-art:has(+canvas[data-ready=false]){opacity:.8}
.card-photo-editor{width:min(100%,820px);box-sizing:border-box;border:1px solid #d9c8ac;border-radius:14px;padding:10px 14px;display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:#fffaf0}
.card-photo-editor[hidden]{display:none}.card-photo-editor legend{padding:0 8px;font-size:14px;font-weight:700}
.card-photo-editor p{width:100%;font-size:12px}
.card-photo-editor label{flex:1 1 160px;font-size:12px;white-space:nowrap;display:flex;align-items:center;gap:8px}
.card-photo-editor input{min-width:0;width:100%;accent-color:#738565;min-height:30px}
.card-photo-editor button{font-size:12px;padding:8px 12px;min-height:38px}
.card-status:empty{display:none}.card-status{font-size:13px}
#game[data-step=CERTIFICATE] .result-sheet{max-height:calc(100dvh - 195px);width:min(1000px,94vw)}
@media(max-width:700px){#game[data-step=CERTIFICATE] .result-sheet{max-height:calc(100dvh - 175px)}.card-photo-editor{gap:5px;padding:8px}.card-photo-editor label{flex-basis:100%}.card-art{filter:drop-shadow(0 5px 6px #59402d20)}}
