html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: #f4f4f4;
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
}

.app-shell {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.app-header {
  background: #0c4b2d;
  color: #fff;
  flex: 0 0 auto;
}

.course-name {
  font-size: 18px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-btn {
  width: 2rem;
  border: 0;
}

.menu-btn span {
  display: block;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  border-radius: 3px;
}

.header-stat {
  min-width: 70px;
}

.stat-number {
  font-size: 1.75rem;
  line-height: 1;
}

.stat-label {
  font-size: .52rem;
  margin-top: 4px;
  letter-spacing: .02em;
}

.section-title {
  flex: 0 0 auto;
  text-align: center;
  background: #cfcfcf;
  padding: .45rem 1rem;
  font-size: 1.2rem;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
  z-index: 2;
}

.player-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 86px;
  background: #f1f1f1;
  -webkit-overflow-scrolling: touch;
}

.player-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  overflow: hidden;
}

.player-row {
  min-height: 41px;
  padding: 0 1rem;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-row:last-child {
  border-bottom: 0;
}

.player-name {
  font-size: 20px;
  font-weight: 700;
}

.player-check {
  width: 1.70rem;
  height: 1.70rem;
  margin: 0;
  cursor: pointer;
  border-width: 2px;
}

.player-check:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.details-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f7f7f7;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -4px 18px rgba(0,0,0,.12);
  transform: translateY(calc(100% - 72px));
  transition: transform .3s ease;
  z-index: 10;
  max-height: 78dvh;
  overflow: hidden;
}

.details-sheet.open {
  transform: translateY(0);
}

.details-handle {
  width: 100%;
  height: 72px;
  border: 0;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 500;
}

.details-panel {
  height: calc(78dvh - 72px);
  overflow-y: auto;
  padding: 0 1rem 2rem;
}

.detail-value {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
}

.detail-label {
  color: #686868;
  font-size: .95rem;
  font-weight: 700;
  margin-top: .6rem;
}

.cash-value {
  color: #004d00;
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  margin-top: .2rem;
}

.offcanvas {
    max-width: 280px;
}

.offcanvas-title {
    font-weight: 700;
}

@media (max-width: 430px) {
  .course-name {
    font-size: 18px;
  }

  .header-stat {
    min-width: 58px;
  }

  .stat-number {
    font-size: 1.45rem;
  }

  .player-name {
    font-size: 1.05rem;
  }

  .player-row {
    min-height: 54px;
    padding-inline: .8rem;
  }

  .player-check {
    width: 2.25rem;
    height: 2.25rem;
  }

  .detail-value {
    font-size: 2.35rem;
  }

  .cash-value {
    font-size: 4.25rem;
  }
}
