/* Secondary actions remain recognizable and comfortable to tap in every menu. */
.text-button,.home-page .text-button,.account-options .text-button,.share-options .text-button,
.share-download,.share-options>summary,.account-options>summary,.account-options>a,
.help-details>summary,.rank-rules>summary,.home-player-more>summary,#tutorial-skip{
 display:flex;align-items:center;justify-content:center;gap:8px;
 width:fit-content;max-width:100%;min-height:46px;padding:11px 20px;
 border:1px solid #53617d;border-radius:7px;background:#151e35;color:#f5f2e9;
 font:700 16px/1.3 var(--body);letter-spacing:0;text-align:center;text-decoration:none;
 cursor:pointer;transition:background .15s,border-color .15s;
}
.text-button:hover:enabled,.share-download:hover,summary:hover,#tutorial-skip:hover{background:#26324c;border-color:#e9bd71}
.text-button:disabled{opacity:.5;cursor:default}
.text-button:focus-visible,.share-download:focus-visible,summary:focus-visible,#tutorial-skip:focus-visible{outline:3px solid #ffe0a1;outline-offset:4px}
.text-button{margin:16px auto}
.home-page .text-button,.account-options .text-button,.account-options>a{margin:8px 0}
.account-options .text-button,.account-options>a{width:100%;white-space:normal}
.share-options>summary{margin:0 auto}
.share-options .text-button,.share-download{width:100%;margin:10px auto 0}
.help-details>summary,.rank-rules>summary,.home-player-more>summary{width:100%;justify-content:space-between;text-align:left;list-style:none}
.help-details>summary::after,.rank-rules>summary::after,.home-player-more>summary::after{content:'+';font-size:22px}
.help-details[open]>summary::after,.rank-rules[open]>summary::after,.home-player-more[open]>summary::after{content:'−'}
#skip-tutorial-offer{font-size:16px;padding:12px 16px}
#tutorial-skip{min-height:44px;padding:8px 12px;flex-shrink:0}
.rank-back,.rank-secondary,.rank-refresh{font-size:16px;font-weight:700;min-height:46px}
dialog[data-kind="pause"] .text-button{width:100%;margin:12px 0 0}

.coronation-details{margin-top:20px;padding-top:0}
.report-title h3{font-size:21px}
.report-title>span,.move-stats span{font-size:14px}
.move-stats>div{padding:12px}
.skill-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;font-size:14px;line-height:1.4}
.skill-stats>span{padding:10px 12px;background:#0c1520bd;border:1px solid #ddd1b11c;border-radius:5px}
.skill-stats b{display:block;font:800 24px/1.2 var(--heading);margin:0 0 3px}
.coronation-share{position:relative;z-index:2;max-width:500px;margin:26px auto 0;padding:0}
.coronation-share button{display:flex;align-items:center;justify-content:center;gap:16px;width:100%;min-height:56px;padding:14px 20px;border-radius:7px;font-size:25px;line-height:1.2}
.coronation-share button span{margin:0}
.coronation-account .start:enabled{cursor:pointer}
.coronation-actions{max-width:500px;margin:18px auto 0;flex-direction:column;gap:14px}
.coronation-actions .start{width:100%;min-height:54px;border-radius:7px;font-size:22px;gap:20px}
.coronation-actions #coronation-menu{min-width:160px;margin:0}
@media(max-width:400px){.move-stats>div{padding:10px 8px}.coronation-share button{font-size:23px}.coronation-actions .start{font-size:20px}}
@media(prefers-reduced-motion:reduce){.text-button,.share-download,summary,#tutorial-skip{transition:none}}

.challenge-dialog #challenge-status{margin:0;color:#b7c2d7;font:400 14px/1.4 var(--body);text-align:center}
.challenge-dialog #challenge-status:empty{display:none}
#challenge-caption{width:100%;min-height:118px;flex-shrink:0;padding:10px;background:#111a2b;color:#fff5db;border:1px solid #53617d;border-radius:6px;font:400 14px/1.5 var(--body);resize:vertical;user-select:text}
.challenge-dialog .share-preview img{max-height:52svh}

.challenge-dialog .text-button{width:100%;margin:0;font-size:16px}
