.home {
  display: block;
  max-width: 1200px;
  margin: 10px auto;
  padding: 20px;
}

.home h1 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 40px;
}

.home-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.home-section {
  width: 100%;
  max-width: 500px;
}

/* Large screens: side-by-side layout */
@media (min-width: 900px) {
  .home-content {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
  }

  .home-section {
    flex: 1;
    max-width: 500px;
  }
}

.home form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.home form input[type="text"] {
  padding: 12px 15px;
  font-size: 16px;
  border: 2px solid #000;
  border-radius: 5px;
  box-shadow: 1px 1px 1px 1px #DDD;
  outline: none;
}

.home form input[type="text"]:focus {
  border-color: #000091;
}

.home form button {
  cursor: pointer;
  background: blue;
  color: #FFF;
  outline: none;
  border: 2px solid #000091;
  border-radius: 5px;
  box-shadow: 1px 1px 1px 1px #DDD;
  padding: 15px 15px;
  font-weight: bold;
  font-size: 16px;
  margin-top: 10px;
}

.home form button:hover {
  background: #0000CC;
}

.home form button:active {
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.home details {
  border: 2px solid #000;
  border-radius: 5px;
  padding: 15px;
  box-shadow: 1px 1px 1px 1px #DDD;
}

.home details summary > *:last-child {
  margin-bottom: 0;
}

.home details summary .rules__intro {
  font-size: 1.2em;
}

.home details summary {
  cursor: pointer;
  margin-bottom: 0;
  user-select: none;
}

.home details[open] summary {
  margin-bottom: 15px;
}

.home details summary:hover {
  color: #0000CC;
}

.home .rules h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.1em;
}

.home .rules h3:first-of-type {
  margin-top: 0;
}

.home .rules ul {
  margin: 0;
  padding-left: 25px;
}

.home .rules li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.home .rules li > ul {
  margin-top: 10px;
}

.home .rules p {
  margin: 0 0 15px 0;
  line-height: 1.5;
}

.rules__card {
  display: inline-block;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 2px 8px;
  font-family: monospace;
  font-weight: bold;
  font-size: 0.95em;
  white-space: nowrap;
}
