/* One icon joins the existing header controls; it never creates a toolbar row. */
.selector-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-left: auto; }
.selector-reaction { position: relative; display: inline-flex; align-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; color: #a43f45; font: 14px/1.5 Pretendard,sans-serif; }
.selector-reaction .selector-reaction-actions { display: contents; }
.selector-reaction .selector-like { box-sizing: border-box; display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; min-width: 44px; max-width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0!important; border: 0!important; border-radius: 12px; background: transparent!important; color: #a43f45; cursor: pointer; box-shadow: none!important; transform: none!important; touch-action: manipulation; }
.selector-reaction .selector-like svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.selector-reaction .selector-like[aria-pressed='true'] svg { fill: currentColor; }
.selector-reaction .selector-like:hover:not(:disabled) { color: #7e2631; }
.selector-reaction .selector-like:disabled { opacity: .6; cursor: wait; }
.selector-reaction .selector-like:focus-visible,.selector-like-footer:focus-visible { outline: 3px solid #625074; outline-offset: 2px; }
.selector-reaction :is(.selector-reaction-prompt,.selector-like-label,.selector-like-count,.selector-like-rule) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.selector-like-status { box-sizing: border-box; width: min(100% - 32px, 760px); margin: 4px auto 0; color: #604a3b; font: 13px/1.5 Pretendard,sans-serif; overflow-wrap: anywhere; }
.selector-like-status:empty { display: none; }
.selector-like-status[data-error='true'] { color: #883c29; }
.selector-like-footer { box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: fit-content; min-height: 44px; margin: 8px auto; padding: 4px 8px; color: #694d3d; font: 12px/1.5 Pretendard,sans-serif; text-decoration: underline; text-underline-offset: 3px; }
body[data-tm-game-ui] header :is(.header-controls,.header-actions,.nav,nav,.selector-header-actions) { flex-wrap: nowrap; }
@media(max-width:400px) {
 body[data-tm-game-ui] header { column-gap: 4px; }
 body[data-tm-game-ui] header :is(.header-controls,.header-actions,.nav,nav,.selector-header-actions) { gap: 2px; max-width: none; }
 body[data-tm-game-ui] header :is(.header-controls,.header-actions,.nav,nav,.selector-header-actions) > button { font-size: 12px!important; padding-inline: 5px; }
 body[data-tm-game-ui='signature-race'] header { padding-inline: 12px; }
 body[data-tm-game-ui='signature-race'] header .brand { font-size: 24px; }
 body[data-tm-game-ui='signature-race'] header .nav > a { font-size: 11px; }
 body[data-tm-game-ui='constellation-teams'] header .header-actions > span { display: none; }
 body[data-tm-game-ui='roulette'] header .wordmark { font-size: 18px; }
}
@media(forced-colors:active) { .selector-reaction .selector-like[aria-pressed='true'] svg { fill: ButtonText; } }
/* Read-only public totals overlay the thumbnail, inside its existing game link. */
.home-shelves .tile-art { position: relative; }
.home-shelves .home-like-count { position: absolute; right: 8px; bottom: clamp(28px, 20%, 44px); display: inline-flex; align-items: center; gap: 4px; max-width: calc(100% - 16px); padding: 4px 7px; border: 1px solid #e2b9af; border-radius: 16px; background: rgb(255 247 235 / 75%); color: #a43f45; font: 700 12px/1.4 Pretendard,sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-shelves .home-like-count[hidden] { display: none; }
.home-shelves .home-like-count svg { width: 13px; height: 13px; flex: none; fill: currentColor; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.tm-legal-footer{box-sizing:border-box;width:min(100% - 32px,1120px);margin:16px auto 0;padding:8px 0 18px;border-top:1px solid #dfd3bf;color:#75614c;font:11.5px/1.5 Pretendard,sans-serif;text-align:center}
.tm-legal-links{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:0 12px}
.tm-legal-footer a,.tm-legal-footer .selector-like-footer{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:4px 2px;color:#75614c;font:11.5px/1.5 Pretendard,sans-serif;text-decoration:underline;text-underline-offset:3px}
.tm-legal-footer a:hover{color:#453025}
.tm-legal-footer a:focus-visible{outline:3px solid #625074;outline-offset:2px}
.tm-legal-copy{display:inline-flex;align-items:center;min-height:44px;color:#84705b;font-size:11.5px}
