[data-recent-games] {
  --recent-accent: #8959ff;
  --recent-thumb: 104px;
  color: #f7f7fb;
  min-width: 0;
  grid-column: 1 / -1;
  margin: 0 0 22px;
}
[data-recent-games][hidden],
[data-recent-games] [hidden] { display: none !important; }
[data-recent-games] h2 { margin: 0; font: inherit; }
[data-recent-games] button { font-family: inherit; cursor: pointer; }
[data-recent-games] button:focus-visible,
[data-recent-games] a:focus-visible { outline: 2px solid #b897ff; outline-offset: 2px; }
[data-recent-open] {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: none;
  color: inherit;
  padding: 2px 0;
  min-height: 44px;
  font-size: clamp(21px, 2.5vw, 32px);
  font-weight: 750;
  line-height: 1.16;
  text-align: start;
}
[data-recent-open] svg, [data-recent-close] svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[data-recent-open] svg { color: #a8aabc; }
[data-recent-row] {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #53536b transparent;
  padding: 4px 3px 6px;
}
[data-recent-row] [data-recent-card] { flex: 0 0 var(--recent-thumb); }
[data-recent-card] { position: relative; min-width: 0; }
[data-recent-link] {
  display: block;
  overflow: hidden;
  border-radius: 15px;
  background: #272940;
  aspect-ratio: 1;
}
[data-recent-link] img { display: block; width: 100%; height: 100%; object-fit: cover; }
[data-recent-drawer] {
  position: fixed;
  inset: var(--recent-top, 74px) 8px 8px auto;
  box-sizing: border-box;
  width: min(455px, calc(100% - 16px));
  max-width: none;
  max-height: none;
  height: calc(100dvh - var(--recent-top, 74px) - 8px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #1a1b29;
  color: #f7f7fb;
}
[data-recent-drawer][open] { display: block; }
[data-recent-drawer]::backdrop { background: rgb(0 0 0 / .58); }
[data-recent-frame] { display: flex; flex-direction: column; height: 100%; }
[data-recent-head] { position: relative; text-align: center; flex: none; border-bottom: 1px solid #2c2d40; }
[data-recent-head] h2 { padding: 18px 50px 8px; font-size: 22px; line-height: 1.2; font-weight: 750; }
[data-recent-close] {
  display: grid;
  place-items: center;
  position: absolute;
  right: 10px;
  top: 7px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
}
[data-recent-close]:hover { background: #303144; }
[data-recent-label] { font-size: 15px; font-weight: 650; }
[data-recent-label] span { display: inline-block; padding: 16px 19px 13px; border-bottom: 3px solid var(--recent-accent); }
[data-recent-content] {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 23px 15px 16px;
  scrollbar-width: thin;
  scrollbar-color: #73768d transparent;
}
[data-recent-grid] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
[data-recent-grid] [data-recent-link] { aspect-ratio: 16 / 9; border-radius: 13px; }
[data-recent-remove] {
  position: absolute;
  top: -5px;
  right: -3px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid #1a1b29;
  border-radius: 50%;
  padding: 0;
  color: white;
  background: #e90d62;
  font-size: 23px;
  line-height: 1;
}
[data-recent-remove]:hover { background: #ba0b50; }
[data-recent-empty], [data-recent-status] { margin: 4px 0 16px; color: #cbcddd; }
[data-recent-more] {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 14px 0 0;
  border: 0;
  border-radius: 10px;
  background: #353050;
  color: inherit;
  font-size: 15px;
  font-weight: 700;
}
@media (max-width: 760px) {
  [data-recent-games] { --recent-thumb: 76px; margin-bottom: 14px; }
  [data-recent-open] { min-height: 39px; }
  [data-recent-drawer] { inset: 8px 8px max(8px, env(safe-area-inset-bottom)) auto; height: calc(100dvh - 8px - max(8px, env(safe-area-inset-bottom))); }
}
@media (prefers-reduced-motion: no-preference) {
  [data-recent-drawer][open] { animation: recent-enter .2s ease-out; }
  @keyframes recent-enter { from { transform: translateX(18px); opacity: .55; } }
}
body:has([data-recent-drawer][open]) { overflow: hidden; }
[data-recent-link]:not(:has(img)) {
  display: grid;
  place-items: center;
  padding: 8px;
  color: inherit;
  font-size: 14px;
  line-height: 1.18;
  text-align: center;
  overflow-wrap: anywhere;
}
