:root {
  --hf1113a-mat: var(--th-dk, #0a0f16) var(--th-lt, #1c2129);
}

.hf1113a-games { margin: 14px 0 0; }
.hf1113a-gl {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hf1113a-gl[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
.hf1113a-gi { min-width: 0; }
.hf1113a-g {
  display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--fg); text-decoration: none;
  border-radius: var(--r-md);
}
.hf1113a-g:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
a.hf1113a-g:hover .hf1113a-gn, a.hf1113a-g:focus-visible .hf1113a-gn { color: var(--primary); text-decoration: underline; }
.hf1113a-mat {
  display: flex; align-items: center; justify-content: center; min-height: 72px; padding: 6px;
  border-radius: var(--r-md); background: var(--hf1113a-mat); overflow: hidden;
}
.hf1113a-img { display: block; min-width: 0; max-width: 100%; height: auto; max-height: 220px; object-fit: contain; }
.hf1113a-gl:not([data-n="1"]) .hf1113a-img { max-height: 140px; }
.hf1113a-tile {
  display: flex; align-items: center; justify-content: center; min-height: 96px; padding: 12px;
  border: 1px solid var(--border-2); border-radius: var(--r-md); background: var(--card-2); color: var(--fg);
  font-weight: 700; line-height: 1.25; text-align: center; overflow-wrap: anywhere;
}
.hf1113a-gn { font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.hf1113a-gs { margin-top: -3px; color: var(--muted); font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.hf1113a-credit { margin: 10px 0 0; color: var(--muted-2); font-size: 12px; line-height: 1.4; }

.hf1113a-wrap { position: relative; }
.hf1113a-hint { display: block; }
.hf1113a-ac {
  position: absolute; left: 0; right: 0; z-index: 60; margin: 0; padding: 8px; box-sizing: border-box;
  max-height: min(380px, 70vh); overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--border-3); border-radius: var(--r-md); background: var(--card); color: var(--fg);
  box-shadow: var(--e3);
}
.hf1113a-ac[hidden], .hf1113a-prev[hidden], .hf1113a-msg[hidden], .hf1113a-list[hidden] { display: none; }
.hf1113a-sw { display: flex; gap: 6px; margin: 0 0 6px; }
.hf1113a-swk {
  flex: 1 1 0; min-width: 0; min-height: 40px; padding: 0 10px; border: 1px solid var(--border-2);
  border-radius: var(--r-xs); background: var(--bg-2); color: var(--muted); font: inherit; font-size: 14px;
  font-weight: 700; cursor: pointer;
}
.hf1113a-swk[aria-pressed="true"] { border-color: var(--edge-primary); background: var(--fill-primary); color: var(--fg); }
.hf1113a-swk:disabled { color: var(--muted-2); cursor: default; }
.hf1113a-swk:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.hf1113a-list { list-style: none; margin: 0; padding: 0; }
.hf1113a-opt {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 8px; border-radius: var(--r-xs);
  cursor: pointer;
}
.hf1113a-opt:hover { background: var(--bg-2); }
.hf1113a-opt[aria-selected="true"] { background: var(--fill-accent); box-shadow: inset 0 0 0 1px var(--edge-accent); }
.hf1113a-th {
  flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 6px; background: var(--hf1113a-mat); overflow: hidden;
}
.hf1113a-th img { display: block; width: auto; height: auto; max-width: 40px; max-height: 40px; object-fit: contain; }
.hf1113a-th.is-tile {
  border: 1px solid var(--border-2); background: var(--card-2); color: var(--muted); font-size: 12px; font-weight: 800;
}
.hf1113a-th.is-small { width: 28px; height: 28px; }
.hf1113a-th.is-small img { max-width: 28px; max-height: 28px; }
.hf1113a-th.is-small.is-tile { font-size: 10px; }
.hf1113a-ot { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.hf1113a-on { color: var(--fg); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.hf1113a-os { color: var(--muted); font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.hf1113a-tag {
  flex: none; padding: 2px 8px; border: 1px solid var(--edge-primary); border-radius: 999px;
  background: var(--fill-primary); color: var(--fg); font-size: 12px; font-weight: 700; white-space: nowrap;
}
.hf1113a-flip { margin-top: 2px; min-height: 40px; color: var(--primary); font-weight: 700; text-decoration: underline; }
.hf1113a-msg { margin: 2px 4px 6px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.hf1113a-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.hf1113a-prev {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 6px; color: var(--muted);
  font-size: 13px; line-height: 1.3;
}
.hf1113a-pg { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--fg); font-weight: 600; }

@media (max-width: 420px) {
  .hf1113a-opt { flex-wrap: wrap; row-gap: 4px; }
  .hf1113a-ot { flex: 1 1 calc(100% - 50px); }
  .hf1113a-tag { margin-left: 50px; }
}

@media (forced-colors: active) {
  .hf1113a-opt[aria-selected="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
  .hf1113a-swk[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: 1px; }
}
