/* Shared states for menu controls. Keep course/category artwork intact. */
:is(.page-tools,.view-tabs,.player-actions,.licence-share,.personal-launch,.game-navigation,.back-to-top,.coverage-strip) button,
.player-actions #view-proof,
:is(.profile-heading,.explorer-heading) button {
  box-sizing:border-box;
  transition:border-color 140ms ease,box-shadow 140ms ease,filter 140ms ease;
}
:is(.page-tools,.view-tabs,.player-actions,.licence-share,.personal-launch,.game-navigation,.back-to-top,.coverage-strip) button:not(:disabled):is(:hover,:focus-visible),
.player-actions #view-proof:is(:hover,:focus-visible),
:is(.profile-heading,.explorer-heading) button:not(:disabled):is(:hover,:focus-visible) {
  border-color:#fff374;
  color:#fff374;
  box-shadow:0 0 0 1px #fff37480,0 0 12px #fff37435;
}
:is(.page-tools,.view-tabs,.player-actions,.licence-share,.personal-launch,.game-navigation,.back-to-top,.coverage-strip) button:focus-visible,
.player-actions #view-proof:focus-visible,
:is(.profile-heading,.explorer-heading) button:focus-visible,
:is(select,input,textarea):focus-visible,
summary:focus-visible {
  outline:3px solid #fff374;
  outline-offset:3px;
}
:is(.page-tools,.view-tabs,.player-actions,.licence-share,.personal-launch,.game-navigation,.back-to-top,.coverage-strip) button:disabled {
  filter:grayscale(1);
  color:#d4dfed;
  border-color:#8496af;
  box-shadow:none;
  cursor:not-allowed;
}
.licence-share :is(#profile-save-player,#share-licence,#profile-pb,#profile-timeline,#profile-compare,#profile-player-save-undo),
:is(.profile-heading,.explorer-heading) button {
  min-height:40px;
  padding:10px 12px;
  border:1px solid #d7f4ff;
  border-radius:8px;
  background:url('assets/menu-card.png') center/100% 100% no-repeat;
  color:white;
  font:13px/1.3 ASR,Arial,sans-serif;
  text-shadow:1px 2px #061020;
}
.licence-share :is(#profile-save-player,#share-licence,#profile-pb,#profile-timeline,#profile-compare,#profile-player-save-undo)[aria-pressed=true],
.page-tools button[aria-pressed=true] {
  color:#fff374;
  border-color:#fff374;
}
.licence-share :is(#profile-save-player,#share-licence,#profile-pb,#profile-timeline,#profile-compare,#profile-player-save-undo):not(:disabled):is(:hover,:focus-visible) {
  color:#fff374;
  border-color:#fff374;
  box-shadow:0 0 0 1px #fff37480,0 0 12px #fff37435;
}
.licence-share :is(#profile-save-player,#share-licence,#profile-pb,#profile-timeline,#profile-compare,#profile-player-save-undo):focus-visible {
  outline:3px solid #fff374;
  outline-offset:3px;
}
.player-actions,.licence-share {
  align-items:center;
  gap:10px;
}
.player-actions :is(button,#view-proof),.licence-share button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  margin:0;
  max-width:100%;
  white-space:normal;
}
.tool-filters label,.comparison-controls label {line-height:1.4;}
.tool-filters :is(select,input),.comparison-controls select {min-height:40px;}
dialog {scrollbar-gutter:stable;}
dialog :is(.profile-heading,.explorer-heading) {align-items:center;gap:12px;}
dialog :is(.profile-heading,.explorer-heading) h2 {line-height:1.3;margin:0;}
dialog :is(.profile-heading,.explorer-heading)>button {flex-shrink:0;}
@media(max-width:680px) {
  .player-actions :is(button,#view-proof),.licence-share button,
  .licence-share :is(#profile-save-player,#share-licence,#profile-pb,#profile-timeline,#profile-compare,#profile-player-save-undo),
  :is(.profile-heading,.explorer-heading) button,
  .tool-filters :is(select,input),.comparison-controls select {min-height:44px;}
}
@media(prefers-reduced-motion:no-preference) {
  [role=tabpanel]:not([hidden]),#discoveries-view:not([hidden]),dialog[open] {
    animation:menu-reveal 160ms ease-out;
  }
}
@keyframes menu-reveal {from{opacity:.75}to{opacity:1}}
@media(prefers-reduced-motion:reduce) {
  .course-enter,[role=tabpanel],#discoveries-view,dialog {animation:none;}
  :is(.page-tools,.view-tabs,.player-actions,.licence-share,.personal-launch,.game-navigation,.back-to-top,.coverage-strip) button,
  .player-actions #view-proof,:is(.profile-heading,.explorer-heading) button {transition:none;}
}

.selection-detail .player-actions .player-proof-row{flex-basis:100%;width:100%;display:flex;justify-content:flex-start}
.selection-detail .player-actions .player-proof-row:has(#view-proof[hidden]){display:none}
.selection-detail .player-actions .player-proof-row #view-proof{margin-left:0}
#results tr:not(.selected):hover{filter:brightness(1.15);outline:2px solid #fff374;outline-offset:1px;z-index:1}#results tr:not(.selected):hover .player-name{color:#fff374}
