/* One consistent footer for all three travel games. */
html body #resultOverlay .resultCard .resultButtons{
  display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:center;gap:12px;width:min(288px,100%);margin:18px auto 0;
}
html body #resultOverlay .resultButtons .resultMenuReturn{
  width:100% !important;min-width:0 !important;height:40px !important;min-height:40px !important;
}
html body #resultOverlay .resultButtons .resultMenuReturn img{
  width:100%;height:40px;object-fit:contain;
}
html body #resultOverlay .resultButtons .resultFooterAction{
  display:flex;align-items:center;justify-content:center;box-sizing:border-box;
  width:100% !important;min-width:0 !important;
  height:40px !important;min-height:40px !important;padding:0 6px !important;
  border:1px solid rgba(255,255,255,.7);border-radius:10px;
  background:rgba(16,36,78,.75);color:#fff;
  font:600 clamp(11px,3.5vw,13px)/1.2 system-ui;white-space:nowrap;
  box-shadow:none !important;text-shadow:none !important;text-decoration:none;
}
.resultRecordEn{display:none;}
html[lang="en"] .resultRecordJa{display:none;}
html[lang="en"] .resultRecordEn{display:inline;}
.resultRewards{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:12px;}
.resultRewards[hidden]{display:none;}
.resultRewardButton{
  min-height:40px;padding:6px 12px;border:1px solid rgba(255,255,255,.7);
  border-radius:10px;background:rgba(16,36,78,.75);color:white;
  font:600 13px/1.4 system-ui;box-shadow:none;cursor:pointer;
}
.resultLanguage{display:flex;justify-content:flex-end;gap:4px;margin:0 0 8px;}
.resultLangButton{min-height:32px;padding:4px 10px;border:1px solid #ffffff66;border-radius:8px;background:transparent;color:#fff;font:600 12px/1.3 system-ui;cursor:pointer;}
.resultLangButton[aria-pressed="true"]{border-color:#ffe078;color:#ffe078;background:#132f59;}

html body #resultOverlay .resultButtons .resultMenuReturn{box-sizing:border-box!important;padding:0!important;border:0!important;line-height:0!important;max-height:40px!important;background:transparent!important;box-shadow:none!important;}
html body #resultOverlay .resultButtons .resultFooterAction{max-height:40px!important;align-self:center;}

html body #resultOverlay .resultCard{font-family:system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;}
html body #resultOverlay .resultCard .resultMain{font-family:inherit;font-size:clamp(28px,5vw,54px);font-weight:700;line-height:1.15;text-align:center;}
html body #resultOverlay .resultCard .resultSub{font-family:inherit;font-size:clamp(18px,3vw,30px);font-weight:600;line-height:1.5;text-align:center;background:none;color:white;padding:12px 0;margin-top:12px;}
html body #resultOverlay .resultCard .resultClosingMessage{display:block;font-size:clamp(14px,2vw,20px);font-weight:500;margin-top:12px;}
@media(orientation:landscape) and (max-height:500px){html body #resultOverlay .resultCard .resultMain{font-size:28px;}html body #resultOverlay .resultCard .resultSub{font-size:16px;margin:0;padding:0;}html body #resultOverlay .resultCard .resultClosingMessage{font-size:14px;margin-top:6px;}}
