.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.fact-card {
  background: linear-gradient(135deg, var(--bg-surface), rgba(21, 27, 47, 0.8));
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: var(--border-radius);
  padding: 1.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.fact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transition: opacity 0.3s;
}

.fact-card:hover::before {
  opacity: 1;
}

.fact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.1);
}

.fact-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.fact-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  color: var(--accent-primary);
}

.fact-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.filters {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.game-card {
  background: linear-gradient(145deg, var(--bg-surface), rgba(21, 27, 47, 0.6));
  border: 1px solid rgba(56, 189, 248, 0.1);
  border-radius: var(--border-radius);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  transition: all 0.3s ease;
  position: relative;
}

.game-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.08);
}

.game-card.hidden {
  display: none;
}

.game-rank {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--accent-primary);
  opacity: 0.2;
  line-height: 1;
  flex-shrink: 0;
  min-width: 50px;
}

.game-image {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(167, 139, 250, 0.1));
  border: 1px solid rgba(56, 189, 248, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-muted);
  opacity: 0.5;
}

.game-info {
  flex: 1;
  min-width: 0;
}

.game-info h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.game-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.game-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-year {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-primary);
}

.badge-genre {
  background: rgba(167, 139, 250, 0.15);
  color: var(--accent-secondary);
}

.badge-dev {
  background: rgba(250, 204, 21, 0.15);
  color: var(--accent-highlight);
}

.badge-platform {
  background: rgba(56, 189, 248, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(56, 189, 248, 0.15);
}

.game-stars {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.star-filled {
  color: var(--accent-highlight);
}

.star-empty {
  color: rgba(170, 180, 200, 0.25);
}

.game-info p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

.game-fact {
  background: rgba(250, 204, 21, 0.08);
  border-left: 3px solid var(--accent-highlight);
  padding: 0.5rem 0.75rem;
  border-radius: 0 4px 4px 0;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.game-fact strong {
  color: var(--accent-highlight);
}

.game-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.game-link:hover {
  color: var(--accent-highlight);
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.history-card {
  background: var(--bg-surface);
  border: 1px solid rgba(56, 189, 248, 0.1);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: all 0.3s ease;
}

.history-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.08);
}

.history-card .card-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--accent-primary);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.history-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}

.history-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.history-card ul {
  list-style: none;
  padding: 0;
  margin-top: 0.75rem;
}

.history-card ul li {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.history-card ul li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent-highlight);
  font-weight: 700;
}

.suggest-section {
  background: var(--bg-surface);
  border-top: 1px solid rgba(56, 189, 248, 0.1);
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.suggest-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-primary);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(11, 16, 32, 0.5);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2338bdf8' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-submit {
  text-align: center;
  margin-top: 1.5rem;
}

.form-submit .btn {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.form-message {
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-weight: 600;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #ef4444;
}

.rating-select {
  display: flex;
  flex-direction: row-reverse;
  gap: 0.25rem;
  justify-content: flex-end;
}

.rating-select input {
  display: none;
}

.rating-select label {
  font-size: 1.75rem;
  cursor: pointer;
  color: rgba(170, 180, 200, 0.25);
  transition: color 0.2s;
}

.rating-select label:hover,
.rating-select label:hover ~ label,
.rating-select input:checked ~ label {
  color: var(--accent-highlight);
}
