body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f7fb;
  color: #222;
  line-height: 1.6;
}

.container {
  max-width: 1050px;
  margin: 0 auto;
  padding: 30px 20px 40px;
}

.top-nav {
  background: white;
  padding: 18px 22px;
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.nav-brand {
  font-weight: bold;
  color: #12355b;
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #12355b;
  text-decoration: none;
  font-weight: bold;
}

.nav-links a:hover {
  text-decoration: underline;
}

.hero {
  text-align: center;
  margin-bottom: 25px;
}

.hero h1 {
  color: #12355b;
  font-size: 34px;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero p {
  color: #444;
  font-size: 17px;
  max-width: 780px;
  margin: 0 auto;
}

.card {
  background: white;
  padding: 28px;
  margin-bottom: 22px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 26px;
  color: #12355b;
  line-height: 1.25;
}

.card h3 {
  color: #12355b;
}

.card p {
  color: #333;
}

.section-note {
  margin-bottom: 18px;
  color: #333;
}

.section-note-small {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 16px;
  color: #444;
}

label {
  display: block;
  margin-top: 16px;
  margin-bottom: 8px;
  font-weight: bold;
  color: #12355b;
}

select,
button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border-radius: 8px;
  box-sizing: border-box;
}

select {
  border: 1px solid #ccc;
  background: white;
}

button {
  margin-top: 22px;
  background: #12355b;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background: #0d2947;
}

.result-list {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-index {
  width: 34px;
  height: 34px;
  background: #12355b;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.result-number {
  width: 100%;
  padding: 14px;
  background: #f4f7fb;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  font-weight: bold;
  color: #12355b;
}

.home-info-grid,
.schedule-list,
.latest-results-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 20px;
}

.home-info-card,
.schedule-item,
.latest-result-item {
  background: #f8fafc;
  border: 1px solid #d8e2ee;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.home-info-card h3,
.schedule-item h3,
.latest-result-item h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.2rem;
  color: #12355b;
}

.home-info-card p,
.schedule-item p,
.latest-result-item p {
  margin: 8px 0;
  line-height: 1.45;
}

.info-label {
  font-weight: 700;
  color: #12355b;
}

.result-status {
  font-weight: 700;
  color: #0f3d63;
  background: #eaf4ff;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.latest-results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 20px;
}

.latest-result-item {
  min-width: 0;
}

.pick5-latest-card {
  background: #f8fafc;
  border: 1px solid #cbdced;
}

.pick5-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.pick5-card-header h3 {
  margin-bottom: 6px;
}

.pick5-card-header .result-status {
  margin: 0;
  white-space: nowrap;
}

.pick5-card-note {
  margin: 0;
  color: #4a5563;
  font-size: 0.95rem;
  line-height: 1.4;
}

.pick5-result-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pick5-result-box {
  background: white;
  border: 1px solid #d8e2ee;
  border-radius: 12px;
  padding: 14px;
}

.pick5-result-box h4 {
  margin: 0 0 10px;
  color: #12355b;
  font-size: 1rem;
  line-height: 1.3;
}

.pick5-result-value {
  color: #222;
  font-size: 0.98rem;
  line-height: 1.45;
}

.pick5-result-value span {
  display: block;
}

.pick5-last-updated {
  margin-top: 16px;
  margin-bottom: 0;
}

.disclaimer-card {
  border-left: 5px solid #12355b;
}

.support-mission-card {
  text-align: center;
  border-top: 4px solid #12355b;
}

.support-mission-card p {
  max-width: 720px;
  margin: 0 auto 22px auto;
  color: #333;
}

.support-button {
  display: inline-block;
  background: #12355b;
  color: white;
  padding: 14px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.support-button:hover {
  background: #0d2947;
}

.footer {
  text-align: center;
  color: #555;
  padding: 20px 0;
}

@media (min-width: 760px) {
  .home-info-grid,
  .schedule-list,
  .latest-results-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .latest-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pick5-latest-card {
    grid-column: 1 / -1;
  }
}

@media (min-width: 980px) {
  .latest-results-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pick5-latest-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .pick5-result-layout {
    grid-template-columns: 1fr;
  }

  .pick5-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .pick5-card-header .result-status {
    white-space: normal;
  }
}

@media (max-width: 700px) {
  .container {
    padding: 20px 14px 35px;
  }

  .top-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 12px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .card {
    padding: 22px;
  }

  .card h2 {
    font-size: 23px;
  }

  .result-list {
    grid-template-columns: 1fr;
  }

  .home-info-card,
  .schedule-item,
  .latest-result-item {
    padding: 16px;
  }

  .pick5-result-box {
    padding: 14px;
  }

  .pick5-result-value {
    font-size: 0.96rem;
  }

  .support-button {
    width: 100%;
    box-sizing: border-box;
  }
}
