* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
  background-color: #1b2838;
  color: #c6d4df;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 480px;
  padding: 32px 24px;
  text-align: center;
}

h1 {
  font-size: 24px;
  margin-bottom: 24px;
  color: #ffffff;
}

.input-row {
  display: flex;
  gap: 8px;
}

input[type="text"] {
  flex: 1;
  padding: 10px 14px;
  font-size: 15px;
  background-color: #2a475e;
  color: #c6d4df;
  border: 1px solid #4c6b8a;
  border-radius: 4px;
  outline: none;
}

input[type="text"]::placeholder {
  color: #7a9ab5;
}

input[type="text"]:focus {
  border-color: #1a9fff;
}

.btn {
  padding: 10px 20px;
  font-size: 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-primary {
  background-color: #1a9fff;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #0e87e0;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: #7a9ab5;
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover {
  color: #c6d4df;
}

#result {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.game-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #2a475e;
  border-radius: 6px;
  padding: 10px 14px;
}

.game-card img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  flex-shrink: 0;
}

.game-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.game-name {
  font-size: 14px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-time {
  font-size: 12px;
  color: #7a9ab5;
}
