.home-hero {
  margin-bottom: 2rem;
}

.home-new-expansions-section {
  margin-top: 2rem;
}

.hidden {
  display: none !important;
}

.home-current-game-section {
  margin-bottom: 2rem;
}

.home-current-game-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.home-current-game-header p {
  color: var(--muted);
  margin-top: 0.2rem;
}

.home-game-number,
.home-game-master {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-size: 0.95rem;
  margin-left: 0.45rem;
  padding: 0.18rem 0.6rem;
  vertical-align: middle;
}

.home-game-master {
  background: var(--surface-alt);
  color: var(--primary);
  border: 1px solid var(--border);
}

.home-current-game-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
}

.home-status-panel {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.home-status-panel h3 {
  margin-bottom: 0.85rem;
}

.home-player-list,
.home-announcements-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.home-player-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-player-row,
.home-announcement-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}

.home-player-row.dead {
  background: #eeeeee;
  color: var(--muted);
  opacity: 0.78;
}

.home-player-name {
  font-weight: 700;
}

.home-player-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.home-player-row.alive .home-player-status {
  color: #0d5c2f;
  background: #dff4e8;
}

.home-player-row.dead .home-player-status {
  color: #6c1f1f;
  background: #f2dddd;
}

.home-announcement-row {
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
}

.home-announcement-time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.home-announcement-message {
  line-height: 1.45;
}

.home-announcement-message em {
  color: var(--primary);
  font-style: italic;
  font-weight: 700;
}

.home-expansions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.home-expansion-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.home-expansion-card h3 {
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.home-expansion-card p {
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 0.9rem;
}

.home-expansion-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 0.65rem 0.9rem;
}

.home-expansion-link:hover {
  background: var(--primary-light);
}

.home-hero-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem 2rem;
}

.home-hero-card h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.home-hero-card p {
  max-width: 750px;
  font-size: 1.05rem;
  color: #ecebff;
}

.home-hero-card p + p {
  margin-top: 0.85rem;
}

.home-news-section {
  margin-top: 2rem;
}

.home-section-title {
  text-align: center;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.new-roles-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.new-role-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
}

.new-role-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.new-role-name {
  color: var(--primary);
  font-size: 1.15rem;
  line-height: 1.3;
}

.new-role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.new-role-description {
  color: var(--text);
  line-height: 1.6;
  white-space: pre-line;
}

.home-empty-message {
  color: var(--muted);
}
.home-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
  overscroll-behavior: none;
}

.home-modal.hidden {
  display: none;
}

.home-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.home-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  width: min(800px, 95%);
  max-height: calc(100vh - 2rem);
  z-index: 1;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.5rem;
}

.home-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 2rem;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 3;
}

.home-modal-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.25rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.home-modal-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  align-self: start;
}

.home-modal-text {
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.35rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

@media (max-width: 900px) {
  .home-modal-body {
    grid-template-columns: 1fr;
  }

  .home-modal-image {
    max-width: 260px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .home-current-game-header,
  .home-current-game-grid {
    grid-template-columns: 1fr;
  }

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

  .home-current-game-header {
    flex-direction: column;
  }

  .home-expansions-grid {
    grid-template-columns: 1fr;
  }

  .home-modal {
    padding: 0.5rem;
  }

  .home-modal-content {
    width: 100%;
    max-height: calc(100vh - 1rem);
    padding: 1rem;
    border-radius: 14px;
  }

  .home-modal-body {
    gap: 1rem;
  }

  .home-modal-text {
    padding-right: 0.2rem;
  }

  .home-modal-close {
    top: 8px;
    right: 10px;
  }

  .home-roles-grid,
  .new-roles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }

  .home-role-image,
  .new-role-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #d9d9e8;
    padding: 0.35rem;
    display: block;
  }

  .home-role-content,
  .new-role-content {
    padding: 0.65rem;
  }
}
