.account-page {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 40px);
  color: #fff;
  line-height: 1.6;
}
.skip {
  position: absolute;
  top: -100px;
}
.skip:focus {
  top: 0;
  z-index: 50;
  padding: 12px;
  background: #fff;
  color: #092f4c;
}
.account-page a {
  color: #9cdeff;
}
.account-page [hidden] {
  display: none !important;
}
.account-page input,
.account-page button,
.account-page select,
.account-save button,
.account-save select {
  font: inherit;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #8599ac;
  max-width: 100%;
  box-sizing: border-box;
}
.account-page input {
  display: block;
  width: 100%;
  color: #102e43;
  background: #fff;
  margin: 6px 0 16px;
}
.account-page button,
.account-save button {
  cursor: pointer;
  background: #edf7fc;
  color: #102e43;
}
.account-page button:disabled,
.account-save button:disabled {
  opacity: 0.6;
  cursor: default;
}
.account-page form {
  max-width: 500px;
}
.persona-card {
  background: #fff1;
  padding: 16px;
  border: 1px solid #ffffff38;
  border-radius: 12px;
  margin: 16px 0;
}
.persona-card form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}
.persona-card label {
  flex: 1;
  min-width: 160px;
}
.persona-card input {
  margin-bottom: 0;
}
.persona-save-status,
#participation-status {
  min-height: 1.5em;
  margin: 6px 0;
  color: #ffdfa0;
}
.account-page #message {
  min-height: 1.5em;
  color: #ffdfa0;
}
.account-page table {
  border-collapse: collapse;
  width: 100%;
}
.account-page th,
.account-page td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ffffff38;
  overflow-wrap: anywhere;
}
.account-page #results {
  overflow-x: auto;
}
.account-save {
  padding: 16px;
  margin: 16px 0;
  border: 1px solid #8497a8;
  border-radius: 10px;
  text-align: left;
}
.account-save button,
.account-save select {
  margin: 6px;
}
.account-save label {
  display: inline-block;
}
.account-save a {
  color: inherit;
}
.account-save p {
  white-space: normal;
  overflow-wrap: anywhere;
}
.account-page,
.account-page * {
  box-sizing: border-box;
}
.account-page h1 {
  font-size: clamp(2rem, 6vw, 3rem);
}
.account-page h2 {
  font-size: clamp(1.2rem, 4vw, 1.7rem);
  overflow-wrap: anywhere;
}
.account-page .persona-card label {
  min-width: min(160px, 100%);
}
.persona-card > button {
  margin-top: 12px;
}
.account-page .check-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  cursor: pointer;
}
.account-page input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 3px 0 0;
  flex-shrink: 0;
}
.competition-help {
  font-size: 0.9rem;
  color: #d0e2ed;
}
.rank-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.rank-tabs button[aria-pressed="true"] {
  background: #ffdfa0;
  border-color: #ffdfa0;
}
.rank-table {
  overflow-x: auto;
}
.rank-table small {
  display: block;
  font-variant-numeric: tabular-nums;
  color: #c7dbe8;
}
.rank-table th {
  white-space: nowrap;
}
@media (max-width: 480px) {
  .rank-table th,
  .rank-table td {
    padding: 10px 5px;
  }
  .rank-table th {
    font-size: 0.75rem;
  }
  .rank-table small {
    font-size: 0.7rem;
    white-space: nowrap;
  }
}
.rank-pagination {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.rank-intro {
  padding: 18px;
  border: 1px solid #ffffff38;
  border-radius: 12px;
  background: #fff1;
}
.account-page [hidden] {
  display: none !important;
}
.account-page .rank-score {
  min-height: 44px;
  padding: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ranking-details {
  padding: 12px;
  text-align: left;
}
.ranking-details h3 {
  margin-top: 0;
}
.ranking-details h4 {
  margin: 24px 0 8px;
  font-size: 1rem;
}
.ranking-details dl {
  margin: 0;
}
.ranking-details dl > div,
.ranking-chapter-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #ffffff28;
  padding: 12px 0;
}
.ranking-details dd {
  margin: 0;
  flex-shrink: 0;
}
.ranking-chapter-total h4,
.ranking-chapter-total p {
  margin: 0;
}
@media (max-width: 600px) {
  .ranking-details dl > div,
  .ranking-chapter-total {
    flex-direction: column;
    gap: 4px;
  }
}
