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

/* Groupings Coming Soon */

.groupings-coming-soon {
    border-radius: 24px;
    padding: 32px 20px 28px;
    text-align: center;
    margin-top: 8px;
}

.groupings-icon {
    position: relative;
    display: inline-block;
    color: #086b2e;
    font-size: 52px;
    line-height: 1;
    margin-bottom: 22px;
}

.groupings-clock {
    position: absolute;
    right: -12px;
    bottom: -7px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    background: #f0f8f2;
    border-radius: 50%;

    font-size: 27px;
}

.groupings-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.groupings-line {
    flex: 1;
    max-width: 85px;
    height: 2px;
    background: #086b2e;
}

.groupings-title {
    color: #086b2e;
    font-size: 21px;
    font-weight: 700;
    white-space: nowrap;
}

.groupings-message {
    margin-top: 18px;

    color: #343a40;
    font-size: 14px;
    line-height: 1.6;
}

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;
}

.no-groupings-message {
    width: 100%;
    background: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    color: #0f5132;
    margin-top: 150px;
}

.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;
     position: relative;
}

.refresh-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 5px 10px;
    font-size: 28px;
    line-height: 1;
    color: #212529;
    cursor: pointer;
}

.refresh-btn:active {
    transform: translateY(-50%) scale(.9);
}

.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: -10px;
  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;
}
.last-update {
  font-size: 12px;
    margin-top:20px;
  color: #666;
}

.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;
  }
}
