:root {
  color-scheme: dark;
  color: #f3f5dd;
  background: #12251d;
  font-family: system-ui, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; padding: max(25px, env(safe-area-inset-top)) clamp(15px, 5vw, 50px) 24px; }
.hall { max-width: 930px; margin-inline: auto; }
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(8px, 1.4vw, 15px) 0 clamp(19px, 2.6vw, 29px);
  gap: 16px;
}
.intro p {
  margin: 0 0 8px;
  color: #b7cfab;
  font-size: clamp(.92rem, 2.2vw, 1.12rem);
  font-weight: 700;
}
h1 {
  margin: 0;
  color: #faf7df;
  font-size: clamp(2.15rem, 7vw, 4.4rem);
  font-weight: 850;
  letter-spacing: -.085em;
  line-height: 1.08;
}
.intro-tools { display: grid; justify-items: end; gap: 7px; flex: none; }
.hall-icon { width: clamp(42px, 8vw, 66px); height: auto; border-radius: 23%; }
.install { min-height: 40px; padding: 5px 10px; border: 0; border-radius: 9px; color: #e5edcf; background: #2a4838; font: inherit; font-size: .82rem; font-weight: 760; cursor: pointer; }
.install:focus-visible { outline: 3px solid #d7ee8e; outline-offset: 3px; }
dialog { width: min(360px, calc(100% - 28px)); padding: 20px; border: 1px solid #47664e; border-radius: 16px; color: #f3f5dd; background: #1d362b; }
dialog h2 { margin: 0; font-size: 1.18rem; }
dialog::backdrop { background: #091911b0; }
.shelf {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 1.55vw, 17px);
  margin: 0;
  padding: 0;
}
.slot {
  position: relative;
  min-width: 0;
  aspect-ratio: 1.9;
  border-radius: clamp(11px, 1.9vw, 23px);
  background: #1d362b;
}
.game-link {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: inherit;
  color: #fff9e5;
  text-decoration: none;
  background: #4a6843;
  isolation: isolate;
  outline-offset: 4px;
}
.game-link:focus-visible { outline: 3px solid #d7ee8e; }
.game-link:hover .game-title span { background: #eff4a9; }
.game-link img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.game-link::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(transparent 31%, #14291eb0 65%, #111e16 100%);
  content: "";
}
.game-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 5px;
  padding: clamp(6px, 2vw, 15px);
}
.game-title strong { font-size: clamp(.86rem, 3.1vw, 1.4rem); font-weight: 810; line-height: 1.13; letter-spacing: -.06em; }
.game-title span { padding: 5px 9px; border-radius: 7px; background: #d5ea91; color: #23341e; font-size: .8rem; font-weight: 820; }
.empty { display: grid; place-items: center; color: #446651; }
.empty span { display: block; width: 16%; min-width: 16px; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 28%; transform: rotate(13deg); }
.availability { margin: 15px 0 0; color: #a8c5a9; font-size: .85rem; text-align: right; }
@media (max-width: 540px) {
  .slot { aspect-ratio: 1; }
  .game-title { flex-wrap: wrap; }
  .game-title span { font-size: .66rem; padding: 3px 5px; }
  .availability { margin-top: 12px; }
}
