/* The bar Lyra Games adds on top of each game page. Self-contained: the games have their own CSS. */
.lyra-play-bar {
  display: flex; align-items: center; gap: 10px; padding: 4px 12px; min-height: 48px; box-sizing: border-box;
  background: #1d1b3a; color: #f2f0ff; font: 14px/1.3 system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Microsoft YaHei", sans-serif;
  position: relative; z-index: 2147483000;
}
.lyra-play-bar a, .lyra-play-bar button { color: inherit; font: inherit; }
.lyra-play-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; font-weight: 600; white-space: nowrap; }
.lyra-play-back::before { content: "‹"; font-size: 20px; line-height: 1; margin-right: 2px; }
.lyra-play-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .8; }
.lyra-play-open {
  min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid #ffffff55; background: transparent; cursor: pointer; white-space: nowrap;
}
.lyra-play-open:hover, .lyra-play-open[aria-expanded="true"] { background: #ffffff1f; }
.lyra-play-bar :focus-visible, .lyra-play-panel :focus-visible { outline: 3px solid #a59cff; outline-offset: 2px; }
.lyra-play-panel {
  position: fixed; top: 52px; right: 12px; width: min(360px, calc(100vw - 24px)); box-sizing: border-box; z-index: 2147483001;
  background: #fff; color: #1b1a2b; border-radius: 14px; box-shadow: 0 10px 40px #0005; padding: 14px 16px;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Microsoft YaHei", sans-serif;
}
.lyra-play-panel[hidden] { display: none; }
.lyra-play-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lyra-play-head h2 { font-size: 17px; margin: 0; }
.lyra-play-close { min-height: 44px; padding: 0 10px; border: 0; background: transparent; color: #4b3fd1; cursor: pointer; font: inherit; }
.lyra-play-body p { margin: 8px 0; }
.lyra-play-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lyra-play-panel .btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #4b3fd1;
  background: #fff; color: #4b3fd1; text-decoration: none; font: inherit; font-weight: 600; cursor: pointer;
}
.lyra-play-panel .btn.primary { background: #4b3fd1; color: #fff; }
.lyra-play-status { min-height: 1.5em; margin: 6px 0 0; font-weight: 600; }
.lyra-play-note { margin: 4px 0 0; font-size: 13px; color: #5b5a70; }
@media (prefers-color-scheme: dark) {
  .lyra-play-panel { background: #1f1d33; color: #eceaff; }
  .lyra-play-panel .btn { background: transparent; color: #c7c1ff; border-color: #a59cff; }
  .lyra-play-panel .btn.primary { background: #a59cff; color: #12111f; }
  .lyra-play-close { color: #c7c1ff; }
  .lyra-play-note { color: #b4b1cc; }
}
@media print { .lyra-play-bar, .lyra-play-panel { display: none !important; } }
