/* Account player destinations; legacy and standalone previews keep their layout. */
body[data-player-account="required"] .coach-card {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
.coach-card .destination-nav {
  display: flex;
  justify-content: space-around;
  gap: 2px;
  padding: 6px;
  border: 1px solid #284653;
  border-radius: 20px;
}
.coach-card .destination-nav a {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  min-height: 52px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px 2px;
  border: 0;
  border-radius: 14px;
  color: #b0c6d3;
  font-size: 12px;
  line-height: 1.25;
  text-decoration: none;
}
.destination-nav a > span:first-child {
  font-size: 21px;
}
.destination-nav a > span:last-child {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}
.coach-card .destination-nav a.is-active {
  color: #90f5df;
  background: #173f43;
}
.destination-nav a:focus-visible,
#buddyProfile a:focus-visible,
#buddyProfile button:focus-visible,
#buddyProfile summary:focus-visible {
  outline: 3px solid #a5f8e4;
  outline-offset: 3px;
}
@media (max-width: 767px) {
  .coach-card .destination-nav {
    position: fixed;
    z-index: 30;
    left: 50%;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: min(460px, calc(100% - 24px));
    margin: 0;
    transform: translateX(-50%);
    background: #0b2131;
    box-shadow: 0 -6px 24px #0005;
  }
}
@media (min-width: 768px) {
  .coach-card .destination-nav {
    position: static;
    transform: none;
    width: 100%;
    margin: 12px 0 20px;
  }
  body[data-player-account="required"] .coach-card {
    padding-bottom: 24px;
  }
}
body:has(.session-results[open]) .destination-nav,
body:has(> .encounter-card:not([hidden])) .destination-nav {
  display: none;
}
@media (min-width: 600px) and (max-height: 500px) {
  .coach-card:not(.profile-view) .destination-nav {
    position: fixed;
    z-index: 30;
    left: 50%;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: min(460px, calc(100% - 24px));
    margin: 0;
    transform: translateX(-50%);
    background: #0b2131;
  }
}
.coach-card.profile-view > .brushing-today,
.coach-card.profile-view > .daily-mission-panel {
  display: none;
}
.brushing-today {
  margin: 10px 0;
  color: #a9dacf;
  font-size: 13px;
  text-align: center;
}
#buddyProfile {
  color: #e8f8ff;
  overflow-wrap: anywhere;
}
#buddyProfile .player-screen {
  margin-top: 20px;
}
#buddyProfile .player-screen > h2 {
  margin: 0 0 18px;
  font-size: 25px;
}
#buddyProfile .player-dashboard {
  padding: 0;
  border: 0;
  background: none;
  margin: 0;
}
#buddyProfile .dashboard-hero {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
#buddyProfile .dashboard-avatar {
  width: 52px;
  height: 52px;
  min-width: 1.6em;
  min-height: 1.6em;
  flex-shrink: 0;
  line-height: 1;
  font-size: 30px;
}
#buddyProfile .dashboard-identity {
  flex: 1 1 130px;
  min-width: 0;
}
#buddyProfile .dashboard-identity span {
  font-size: 12px;
}
#buddyProfile .dashboard-level > div:first-child {
  font-size: 12px;
  gap: 12px;
  flex-wrap: wrap;
}
#buddyProfile .dashboard-identity h2 {
  font-size: 22px;
  margin: 3px 0;
}
#buddyProfile .dashboard-edit {
  min-height: 44px;
  padding: 8px;
  font-size: 12px;
}
#buddyProfile .dashboard-level {
  margin: 16px 0 22px;
}
.profile-today {
  padding: 18px;
  background: linear-gradient(135deg, #163d43, #102b39);
  border: 1px solid #365b63;
  border-radius: 20px;
}
.summary-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.summary-heading h3 {
  margin: 0;
  font-size: 18px;
}
.today-count {
  color: #92f0cd;
  font-size: 22px;
}
.today-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  font-size: 13px;
  color: #b1c7d1;
}
.today-slots .is-complete {
  color: #92f0cd;
}
.summary-status:empty {
  display: none;
}
.summary-status {
  font-size: 13px;
  line-height: 1.5;
}
#buddyProfile .last-result-button {
  margin: 14px 0 0;
  width: auto;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: #a5f8e4;
  font-size: 13px;
}
.profile-week {
  margin-top: 26px;
}
.profile-week > h3 {
  margin: 0 0 14px;
  font-size: 18px;
}
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.week-strip > span {
  min-width: 0;
  overflow-wrap: anywhere;
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 9px 0;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #bbd0db;
  font-size: 12px;
}
.week-strip [aria-current="date"] {
  border-color: #82d8cd;
}
.week-strip .is-complete {
  background: #153d37;
  color: #a5f8c3;
}
.week-strip .is-upcoming {
  color: #728a9e;
}
#buddyProfile .daily-guidance {
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
#buddyProfile .daily-guidance h3 {
  margin: 12px 0 6px;
  font-size: 15px;
}
#buddyProfile .daily-guidance progress {
  width: 100%;
  height: 8px;
}
.weekly-count {
  font-size: 13px;
  color: #a9c4d2;
  margin: 8px 0;
}
.weekly-details,
.next-reward-details {
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.5;
}
.next-reward-details > h2 {
  display: none;
}
#buddyProfile summary {
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
}
.latest-achievement {
  display: grid;
  gap: 8px;
  color: #ebdc9c;
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid #29414d;
  border-bottom: 1px solid #29414d;
  text-decoration: none;
}
.latest-achievement small {
  font-size: 10px;
  letter-spacing: 1px;
  color: #afbcc0;
}
.latest-achievement span {
  font-size: 12px;
  color: #b0c3cb;
}
.profile-links {
  display: grid;
  gap: 2px;
}
.profile-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  text-decoration: none;
  color: #c9e4ed;
  font-size: 14px;
}
.screen-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}
.screen-tabs a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  color: #b7cfda;
  background: #112b3a;
  text-decoration: none;
  font-size: 13px;
}
.screen-tabs a.is-active {
  color: #a5f8e4;
  background: #1e4549;
}
.screen-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #a5f8e4;
  font-size: 13px;
  text-decoration: none;
}
#buddyProfile .collection-panel {
  padding: 0;
  border: 0;
  background: none;
  margin: 20px 0 0;
}
#buddyProfile .badge-album {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: none;
}
#buddyProfile .replay-panel {
  padding: 0;
}
#buddyProfile .replay-panel > h2 {
  display: none;
}
#replayBalance {
  font-size: 14px;
  line-height: 1.6;
}
#pendingGame:not(:empty) {
  padding: 16px;
  border: 1px solid #508478;
  background: #153934;
  border-radius: 16px;
}
#pendingGame:empty {
  display: none;
}
#buddyProfile .replay-grid {
  gap: 12px;
}
#buddyProfile .replay-grid article {
  display: flex;
  flex-direction: column;
  padding: 14px;
}
#buddyProfile .replay-grid button {
  margin-top: auto;
  min-height: 48px;
}
.game-personal-record {
  margin: 0 0 16px;
}
.activity-history h2 {
  font-size: 24px;
  margin: 14px 0;
}
.activity-list h3 {
  color: #9bbaca;
  font-size: 13px;
  margin: 24px 0 8px;
}
.activity-entry {
  border-bottom: 1px solid #2c4756;
  padding: 5px 0;
}
.activity-entry summary {
  font-size: 14px;
}
.activity-entry p,
.activity-status {
  font-size: 13px;
  line-height: 1.6;
  color: #b3cbd6;
}
.activity-entry button,
.activity-more,
.summary-retry {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #3b646c;
  background: #183c46;
  color: #e5fcf5;
  border-radius: 12px;
  cursor: pointer;
}
.history-calendar .brushing-history {
  padding: 0;
  border: 0;
  background: none;
}
.history-calendar .bh-goals,
.history-calendar .bh-goal-note,
.history-calendar .bh-goal-count {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .player-screen *,
  .destination-nav * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
