/* 自分たちのゲームの「このゲームについて・遊び方」の欄（tools/own_about.py が各ゲームのはじめの画面に入れる）
   どのゲームの CSS ともぶつからないよう、名前は全部 aq- で始める。
   開け閉めはポップオーバー（popover 属性・JavaScript なし）。いちばん手前の層に出るので、ゲームの帯の下にもぐらない */
.aq-btn {
  position: relative; z-index: 5; display: block; width: fit-content; max-width: calc(100% - 32px); margin: 14px auto 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Meiryo", sans-serif;
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: .04em;
  color: #e8f6ff; background: rgba(4, 12, 20, .55); border: 1px solid rgba(232, 246, 255, .35); cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  text-shadow: none; box-shadow: none; text-transform: none;
}
.aq-btn:hover { background: rgba(4, 12, 20, .78); }
.aq-btn:focus-visible, .aq-x:focus-visible, .aq-play:focus-visible { outline: 2px solid #7fe4ff; outline-offset: 3px; }
.aq-pop {
  position: fixed; inset: 0; margin: auto; box-sizing: border-box;
  width: min(560px, calc(100vw - 32px)); height: fit-content; max-height: min(88dvh, 900px);
  padding: 24px 22px 22px; border-radius: 18px; border: 1px solid rgba(127, 228, 255, .4);
  background: #071320; color: #eef6fb; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Meiryo", sans-serif;
  text-align: left; font-size: 14px; font-weight: 400; line-height: 1.8; letter-spacing: .02em; text-shadow: none;
  box-shadow: 0 30px 80px -30px rgba(0, 180, 255, .45);
}
.aq-pop:not(:popover-open) { display: none; }
.aq-pop::backdrop { background: rgba(2, 6, 10, .74); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.aq-pop * { box-sizing: border-box; }
.aq-x {
  position: sticky; top: -10px; float: right; margin: -10px -8px 0 8px; width: 40px; height: 40px; padding: 0;
  border-radius: 50%; border: 1px solid rgba(127, 228, 255, .45); background: #071320; color: #eef6fb;
  font: 400 20px/1 sans-serif; cursor: pointer; z-index: 1;
}
.aq-x:hover { background: #0c2336; }
.aq-k { margin: 0; color: #7fe4ff; font-size: 12px; letter-spacing: .14em; }
.aq-h { margin: 4px 0 0; padding: 0; font-size: clamp(19px, 4.6vw, 23px); line-height: 1.45; font-weight: 700; color: #fff; letter-spacing: .02em; font-family: inherit; }
.aq-lead { margin: 10px 0 0; color: rgba(255, 255, 255, .82); font-size: 15px; }
.aq-facts { margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; font-size: 13px; }
.aq-facts dt { margin: 0; color: #93abb9; font-size: 11px; letter-spacing: .06em; }
.aq-facts dd { margin: 0; overflow-wrap: anywhere; }
.aq-s { margin: 20px 0 6px; padding: 0; font-size: 14px; font-weight: 700; color: #7fe4ff; letter-spacing: .06em; font-family: inherit; }
.aq-list { margin: 0; padding: 0 0 0 1.4em; display: grid; gap: 4px; }
.aq-list li { margin: 0; padding: 0; }
.aq-p { margin: 0; }
.aq-more { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.aq-pop a { color: #eef6fb; text-decoration: underline; text-underline-offset: 4px; }
.aq-pop a:hover { color: #7fe4ff; }
.aq-shelf { display: inline-block; margin-top: 16px; color: #7fe4ff !important; }
.aq-end { margin-top: 20px; text-align: center; }
.aq-play {
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; padding: 12px 30px; border-radius: 999px; border: 0; cursor: pointer;
  background: #1ec8ff; color: #02101c;
}
@media (prefers-reduced-motion: no-preference) { .aq-pop:popover-open { animation: aq-in .28s ease-out; } }
@keyframes aq-in { from { opacity: 0; transform: translateY(8px); } }
