/* Skill and life cards, with accessible image previews. */
.drawn-side{max-width:410px}
.skills-table{gap:55px;padding:26px 60px 20px;align-items:center}
.deck{width:210px;height:280px;margin-bottom:30px}
.deck b{font-size:64px}
.deck strong{font-size:34px}
.drawn-card{height:480px;cursor:default}
.card-front{text-align:left;color:var(--ink);width:100%;font-family:var(--font);cursor:pointer}
.card-front,.card-back{padding:22px;overflow:auto;scrollbar-width:thin;scrollbar-color:#d6c2c9 transparent}
.card-front[aria-hidden="true"],.card-back[aria-hidden="true"]{pointer-events:none}
.card-symbol{height:180px;min-height:180px;flex-shrink:0;font-size:110px;margin:16px 0 18px}
.card-symbol.long-symbol{font-size:83px;letter-spacing:-4px}
.card-title{margin-top:0;font-size:27px;line-height:1.55;overflow-wrap:anywhere}
.card-tags{font-size:14px;line-height:1.85;margin-top:12px;overflow-wrap:anywhere}
.card-front .card-hint{font-size:12px;margin-top:auto;padding-top:18px}
.card-back>strong{font-size:27px;line-height:1.6;margin:26px 0 16px}
.card-back #card-description{font-size:16px;line-height:1.9;margin:0;color:#67575e}
.card-return{margin-top:auto;padding:10px 0 0;display:flex;justify-content:space-between;align-items:center;width:100%;background:none;color:var(--red);font-size:13px;text-align:left;min-height:44px;flex-shrink:0}
.card-return>span{font-size:23px}
.has-photos .card-back>strong{font-size:21px;line-height:1.5;margin:12px 0 8px}
.has-photos .card-back #card-description{font-size:14px;line-height:1.7}
.card-gallery{display:grid;grid-template-columns:1fr;gap:10px;margin-top:12px;margin-bottom:6px}
.card-gallery[hidden]{display:none}
.card-gallery.comparison{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.card-photo{display:flex;flex-direction:column;min-width:0;border:1px solid #eadde2;background:white;padding:6px;border-radius:6px;text-align:left;color:var(--ink)}
.card-photo>img{width:100%;height:165px;object-fit:contain;background:#f9f6f7;border-radius:2px;filter:none}
.card-gallery.comparison .card-photo>img{height:140px}
.card-photo>span{font-size:12px;margin:7px 3px 0;color:var(--red)}
.card-photo>small{font-size:10px;margin:2px 3px 3px;color:#827079}
.card-photo:hover{border-color:var(--red)}
.card-top{flex-shrink:0;font-size:10px;gap:10px}
.card-pagination{margin-top:14px}
.photo-viewer{width:fit-content;max-width:94vw;max-height:94svh;margin:auto;padding:16px;border:1px solid #e9dde1;border-radius:10px;background:white;color:var(--ink);overflow:auto}
.photo-viewer::backdrop{background:rgba(24,17,21,.82);backdrop-filter:blur(5px)}
.photo-viewer-head{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:12px}
.photo-viewer-head p{font-size:14px;line-height:1.6;color:var(--red)}
#close-photo{flex-shrink:0;width:42px;height:42px;background:#f6f0f2;border-radius:50%;font-size:27px;color:var(--red);line-height:1}
#photo-full{display:block;max-width:min(86vw,1500px);max-height:calc(90svh - 90px);width:auto;height:auto;margin:auto;object-fit:contain;filter:none}
@media(max-width:1100px){.skills-table{padding-inline:30px;gap:40px}.card-front,.card-back{padding:22px}.drawn-card{height:480px}.card-title{font-size:25px}.has-photos .card-back>strong{font-size:21px}.card-gallery.comparison .card-photo>img{height:140px}}
@media(max-width:760px){.skills-table{display:flex;flex-direction:column;gap:30px;padding:28px 18px 18px}.drawn-side{max-width:390px}.drawn-card{height:480px;max-width:none}.deck{margin-bottom:35px}.card-symbol{height:160px;min-height:160px;font-size:100px}.card-symbol.long-symbol{font-size:78px}.card-title{font-size:25px}.card-top{font-size:10px}.card-tags{font-size:13px}.card-back>strong{font-size:25px}.card-gallery.comparison .card-photo>img{height:140px}.card-back #card-description{font-size:14px}.photo-viewer{padding:12px;max-width:96vw}.photo-viewer-head{gap:14px}.photo-viewer-head p{font-size:12px}#photo-full{max-width:87vw}.deck-caption{font-size:12px}.card-progress{width:12.5%}}
@media(prefers-reduced-motion:reduce){.card-front,.card-back{transition:none}}
