#screen button,#screen .home-link{
  position:relative;min-height:44px;border:1px solid #a57232;border-radius:10px;
  background:linear-gradient(180deg,#fffae9,#f1dfb5);
  box-shadow:inset 0 0 0 2px #fff6d6,inset 0 -3px 0 #b382422c,0 3px 0 #71481e40;
  transition:filter .15s,transform .15s,box-shadow .15s;
}
#screen :is(button,.home-link):hover:not(:disabled){filter:brightness(1.06)}
#screen :is(button,.home-link):active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 0 0 2px #cba15e}
#screen button.primary{
  color:#fff2c9;background:linear-gradient(180deg,#794c2b,#4a2a19);
  border-color:#b88b48;box-shadow:inset 0 0 0 2px #e6b95f68,0 3px 0 #4d301875;
}
#screen button.primary::after{content:" ›";margin-inline-start:.35em;color:#f4cd7b}
#screen button:disabled{opacity:.58;box-shadow:none}
#screen button[aria-pressed]{padding-inline-start:39px;text-align:left}
#screen button[aria-pressed]::before{
  content:"";position:absolute;top:16px;left:14px;width:15px;height:19px;
  background:url(gem-amber.png) center/contain no-repeat;opacity:.48;
}
#screen button[aria-pressed=true]{
  background:linear-gradient(180deg,#f4e8c3,#ddc07d);
  border-color:#83531e;box-shadow:inset 0 0 0 2px #ffeebf,0 2px 0 #6d451c6e;
}
#screen button[aria-pressed=true]::before{opacity:1}
#screen .missionary-card{padding-right:34px}
#screen .missionary-card::after,.experience-mode::after{
  content:"›";position:absolute;right:13px;top:50%;transform:translateY(-50%);font-size:22px;color:#825626;
}
.experience-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:22px 0 4px}
#screen .experience-mode{
  --tone:#51212a;--art:url(scene-voyage.png);
  display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;
  min-height:190px;height:100%;margin:0;padding:55px 26px 16px 17px;
  border-radius:38% 38% 12px 12px / 26% 26% 12px 12px;
  border:2px solid #cb9f4f;color:#fff1c5;
  background:linear-gradient(180deg,#1e140e0d 0%,var(--tone) 80%),var(--art) center 40%/cover no-repeat;
  box-shadow:inset 0 0 0 2px #ffdf8885,inset 0 0 22px #170e0b9c,0 5px 9px #5f3a2949;
}
#screen .experience-mode--choose{--tone:#263e32;--art:url(scene-translation.png)}
.experience-mode::before{
  content:"";position:absolute;top:5px;left:calc(50% - 10px);width:20px;height:27px;
  background:url(gem-amber.png) center/contain no-repeat;filter:drop-shadow(0 2px 3px #23140d);
}
.experience-mode--choose::before{background-image:url(gem-teal.png)}
.experience-mode::after{top:auto;bottom:16px;transform:none;color:#f4cf7c}
.experience-mode strong{font-size:clamp(16px,3vw,20px);line-height:1.3}
.experience-mode small{color:#fff0c9;font-size:13px;line-height:1.4;margin-top:6px}
#screen .scene-footer :is(button,.home-link){display:inline-flex;align-items:center;justify-content:center;text-align:center}
#screen .scene-footer summary{min-height:44px;align-content:center}
@media(max-width:520px){
 .experience-modes{grid-template-columns:1fr;gap:13px}
 #screen .experience-mode{min-height:143px;border-radius:30% 30% 11px 11px / 25% 25% 11px 11px;padding-top:45px}
}
@media(prefers-reduced-motion:reduce){#screen :is(button,.home-link){transition:none}}
#screen h1[tabindex="-1"]:focus{outline:none}

#screen .experience-mode--match{--tone:#34354c;--art:url(missionary-match-art.webp);grid-column:1/-1;background-position:center,center 48%}
.experience-mode--match::before{background-image:url(gem-teal.png)}
.match-result-art{display:block;width:100%;max-height:230px;object-fit:cover;border-radius:12px;margin:0 0 20px}
.match-result-scores{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0 24px}
.match-score{display:grid;grid-template-columns:1fr auto;gap:3px 8px;padding:9px 12px;border:1px solid #d6ba86;border-radius:9px;background:#fbf0d9;font-size:14px}
.match-score meter{grid-column:1/-1;width:100%}
#screen .match-question-footer{justify-content:space-between}
#screen .match-question-footer button:last-child{margin-inline-start:auto}
#screen .match-question-footer button{min-height:44px;min-width:96px}
.match-print-sheet{display:none}
@media print{
 @page{size:A4 portrait;margin:12mm}
 body:has(.match-print-sheet){background:white;color:#2e251d;font-size:10.5pt;line-height:1.5}
 body:has(.match-print-sheet) main{margin:0;padding:0;max-width:none}
 body:has(.match-print-sheet) article{background:white;border:0;border-radius:0;box-shadow:none}
 body:has(.match-print-sheet) .header,#screen:has(.match-print-sheet)>:not(.match-print-sheet){display:none}
 #screen:has(.match-print-sheet){padding:0}
 .match-print-sheet{display:block;border:4px double #93764d;padding:8mm;break-inside:avoid;background:#fff9ed;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 .match-print-cover{display:block;width:100%;height:41mm;object-fit:cover;object-position:center 52%;margin-bottom:5mm}
 .match-print-sheet h2{font-size:22pt;line-height:1.2;margin:2mm 0}
 .match-print-sheet h3{font-size:12pt;margin:4mm 0 1mm}
 .match-print-sheet p{margin:0 0 2mm}
 .match-print-sheet .match-print-type{color:#3b5754;font-size:13pt;font-weight:700;border-bottom:1px solid #93764d;padding-bottom:3mm}
 .match-print-profile{display:flex;align-items:flex-start;gap:5mm;border-block:1px solid #93764d;margin:4mm 0;padding:3mm 0;break-inside:avoid}
 .match-print-profile>div{flex:1}
 .match-print-profile h3{margin-top:0}
 .match-print-profile .archive-photo{flex:0 0 35mm;margin:0;background:none;border:0;border-radius:0}
 .match-print-profile .archive-photo img{width:100%;max-height:32mm;margin:0;object-position:center}
 .match-print-profile .archive-photo figcaption,.match-print-profile .archive-photo small{padding:0;font-size:7pt;line-height:1.35}
 .match-print-profile .archive-photo a{display:none}
}