/* v56.42 5v5 share card (sharecard.js): the 分享戰績 sheet over the result card, and the card on a shared 5v5 link's page. The panel and buttons
   take the game skin (skin.css); the picture is sized to leave the buttons on screen on a 320×568 phone and a short landscape one. */
#card-sheet{z-index:7}
#card-sheet .menu-panel{width:min(440px,100%);text-align:center}
#card-sheet h2{margin:4px 0 10px;font-size:22px;font-style:italic;color:#ffe9a8;text-shadow:0 3px 0 #6b3f00,0 0 3px #000}
#card-img{display:block;width:auto;max-width:100%;height:auto;max-height:calc(100dvh - 300px);aspect-ratio:1080/1350;margin:0 auto 12px;border-radius:10px;background:#06151d;box-shadow:0 8px 24px #000a;-webkit-touch-callout:default}
.card-acts{display:flex;flex-direction:column;align-items:center;gap:8px}
.card-acts .result-row{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.card-acts .secondary{margin:0;min-height:44px;width:auto}
.card-acts .primary{min-height:48px}
#shared-card:empty{display:none}
#shared-card canvas{display:block;width:auto;max-width:100%;height:auto;max-height:calc(100dvh - 330px);aspect-ratio:1080/1350;margin:6px auto 12px;border-radius:10px;box-shadow:0 8px 24px #000a}
#shared-score.carded #shared-points,#shared-score.carded #shared-stats{display:none}
#shared-score .menu-panel{text-align:center}
@media (max-height:500px) and (orientation:landscape){#shared-card canvas{max-height:calc(100dvh - 190px)}#card-sheet .menu-panel{width:min(680px,100%)}}
#shared-score.carded #shared-hero{display:none}
/* short landscape: the picture on the left, the buttons on the right */
@media (max-height:500px) and (orientation:landscape){#card-sheet .menu-panel{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto 1fr auto;column-gap:16px;align-items:center}#card-sheet h2{grid-column:2}#card-img{grid-column:1;grid-row:1/4;max-height:calc(100dvh - 90px);margin:0}.card-acts{grid-column:2}#card-status{grid-column:2}}
@media (max-height:500px) and (orientation:landscape){#shared-score.carded .menu-panel{display:grid;grid-template-columns:auto minmax(220px,1fr);column-gap:18px;align-items:center;width:min(720px,100%)}#shared-score.carded .menu-panel>*{grid-column:2}#shared-score.carded #shared-card{grid-column:1;grid-row:1/9}#shared-score.carded #shared-card canvas{max-height:calc(100dvh - 90px);margin:0}}
#shared-score.carded #dismiss-score{justify-self:center;width:auto}
/* v56.65: the box that puts the player's record (record.js) on the picture, between the picture and the buttons; the picture gives it room. */
.card-rec{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 8px;min-height:36px;margin:-4px 0 10px;font-size:13px;font-weight:700;color:#bce6d6;cursor:pointer}
.card-rec.hidden{display:none}
.card-rec input{flex:none;width:20px;height:20px;margin:0;accent-color:#e5b95a;cursor:pointer}
.card-rec b{color:#ffd977;white-space:nowrap}
#card-sheet.rec #card-img{max-height:calc(100dvh - 346px)}
@media (max-height:500px) and (orientation:landscape){#card-sheet.rec .menu-panel{grid-template-rows:auto auto 1fr auto}#card-sheet.rec #card-img{grid-row:1/5;max-height:calc(100dvh - 90px)}.card-rec{grid-column:2;margin:0 0 6px}}
