.app-shell {
  min-height: 100vh;
}

.page-body {
  padding: 20px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111827;
  color: #fff;
  padding: 16px 20px;
}

.topbar-title {
  font-size: 28px;
  font-weight: 700;
}

.topbar-nav {
  display: flex;
  gap: 16px;
}

.panel {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.mt-24 {
  margin-top: 24px;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px 16px;
  align-items: center;
}

.wide-row {
  grid-column: 1 / -1;
}

.simple-list {
  display: grid;
  gap: 12px;
}

.simple-list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: #f9fafb;
  border-radius: 12px;
  padding: 14px 16px;
}

.login-wrap {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-panel {
  width: 420px;
  display: grid;
  gap: 12px;
}

.new-match-panel {
  max-width: 1400px;
  margin: 0 auto;
}

.new-match-form {
  display: grid;
  gap: 18px;
}

.nm-block {
  display: grid;
  gap: 10px;
}

.nm-label {
  font-size: 26px;
  font-weight: 800;
}

.match-type-btns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.match-type-btn {
  min-height: 64px;
  border: none;
  border-radius: 16px;
  background: #e5e7eb;
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
}

.match-type-btn.active {
  background: #2563eb;
  color: #fff;
}

.player-slot {
  display: grid;
  gap: 10px;
}

.player-slot input {
  height: 60px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 24px;
}

.player-preset-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.preset-btn {
  min-height: 48px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.initial-score-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.score-adjust-btn {
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  cursor: pointer;
}

.initial-score-box input {
  width: 140px;
  height: 64px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
}

.config-preview-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}

.home-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.home-action-card {
  min-height: 150px;
  border-radius: 24px;
  padding: 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.home-action-card.action-blue {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.home-action-card.action-green {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

.home-action-card.action-orange {
  background: linear-gradient(135deg, #ea580c, #c2410c);
}

.home-action-card.action-purple {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.home-action-card.action-green-disabled {
  background: linear-gradient(135deg, #86efac, #4ade80);
  opacity: 0.7;
  cursor: not-allowed;
}

.action-icon {
  font-size: 40px;
  line-height: 1;
}

.action-text {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
}

.home-recent-panel h2 {
  margin: 0;
}

.recent-match-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.recent-match-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.recent-match-title {
  font-size: 22px;
  font-weight: 800;
}

.recent-match-time {
  font-size: 14px;
  color: #666;
}

.empty-recent-box {
  margin-top: 18px;
  padding: 26px;
  border-radius: 16px;
  background: #f9fafb;
  text-align: center;
  font-size: 20px;
  color: #6b7280;
}