.dan-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 128px 18px 82px;
}

.dan-main .page-title {
  display: block;
  width: 100%;
  text-align: center;
}

.dan-intro-text {
  max-width: 820px;
  margin: 0 auto 34px;
  color: #3f3f3f;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.9;
  text-align: center;
}


.dan-dataset-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(760px, 100%);
  margin: -10px auto 36px;
}

.dan-dataset-button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: #00a9e2;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 169, 226, 0.2);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dan-dataset-button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.dan-dataset-button:disabled {
  opacity: 0.38;
  cursor: default;
  box-shadow: none;
}

.dan-dataset-title {
  min-width: min(560px, 64vw);
  padding: 12px 20px;
  color: #008bd2;
  background: rgba(255, 255, 255, 0.72);
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 900;
  text-align: center;
}

.dan-credit {
  margin: 34px auto 0;
  color: #3d3d3d;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
}

.dan-credit a {
  color: #008bd2;
  text-decoration: underline;
}

.dan-empty-message {
  margin: 30px auto;
  color: #3d3d3d;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.dan-rank-list {
  display: grid;
  gap: 28px;
}

.dan-rank-card {
  background: rgba(255, 255, 255, 0.64);
  border: 0;
  box-shadow: none;
  padding: 0;
  overflow: hidden;
}

.dan-rank-toggle {
  width: 100%;
  min-height: 76px;
  border: 0;
  background: var(--dan-toggle-bg, rgba(211, 245, 255, 0.82));
  color: var(--dan-toggle-text, #008bd2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  font: inherit;
  transition: background 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

.dan-rank-toggle:hover,
.dan-rank-toggle.is-open {
  background: var(--dan-toggle-bg, rgba(190, 239, 255, 0.96));
  filter: brightness(0.98);
}

.dan-rank-title {
  margin: 0;
  color: inherit;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  text-align: center;
  letter-spacing: 0;
}

.dan-rank-arrow {
  font-size: clamp(18px, 2.6vw, 28px);
  font-weight: 900;
  line-height: 1;
  transition: transform 0.2s ease;
}

.dan-rank-toggle.is-open .dan-rank-arrow {
  transform: rotate(180deg);
}

.dan-rank-content {
  padding: 24px 26px 26px;
}

.dan-table-wrap {
  overflow-x: auto;
}

.dan-stage-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  table-layout: fixed;
  color: #3d3d3d;
  font-weight: 800;
  background: #ffffff;
}

.dan-col-order {
  width: 9.09%;
}

.dan-col-song {
  width: 36.36%;
}

.dan-col-create-id,
.dan-col-difficulty,
.dan-col-notes {
  width: 18.18%;
}
.dan-stage-table th,
.dan-stage-table td {
  border: 1px solid #9fe8ff;
  padding: 14px 16px;
  text-align: center;
  vertical-align: middle;
}

.dan-stage-table thead th {
  background: #00a7df;
  color: #ffffff;
  font-size: 16px;
}

.dan-stage-table tbody tr:nth-child(odd) {
  background: #e8f9ff;
}

.dan-stage-table tbody th {
  color: #008bd2;
}

.dan-song-link {
  color: #008bd2;
  text-decoration: none;
  border-bottom: 2px solid rgba(0, 169, 226, 0.35);
}

.dan-song-link:hover {
  color: #00a7df;
  border-bottom-color: currentColor;
}

.dan-empty {
  color: #8a9aa2;
  font-weight: 700;
}

.dan-conditions {
  margin-top: 18px;
  padding: 18px 20px;
  background: rgba(226, 248, 255, 0.82);
  border: 1px solid rgba(71, 207, 246, 0.42);
}

.dan-conditions h3 {
  margin: 0 0 12px;
  color: #008bd2;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.dan-conditions dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.dan-conditions div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.78);
}

.dan-conditions dt {
  color: #008bd2;
  font-weight: 900;
}

.dan-conditions dd {
  margin: 0;
  color: #3d3d3d;
  font-weight: 800;
}


.dan-total-combo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0 4px;
  padding: 0;
  background: transparent;
  color: #3d3d3d;
  font-weight: 900;
}

.dan-total-combo span {
  color: #008bd2;
}

.dan-total-combo strong {
  color: #3d3d3d;
  font-size: 20px;
}
@media (max-width: 760px) {
  .dan-main {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    padding: 96px 10px 60px;
  }

  .dan-main .page-title {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.15;
  }

  .dan-intro-text {
    max-width: 100%;
    margin-bottom: 22px;
    font-size: 13px;
    line-height: 1.7;
  }

  .dan-dataset-switcher {
    width: 100%;
    gap: 8px;
    margin: 0 auto 24px;
  }

  .dan-dataset-button {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .dan-dataset-title {
    min-width: 0;
    flex: 1 1 auto;
    padding: 10px 8px;
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .dan-rank-list {
    gap: 18px;
  }

  .dan-rank-toggle {
    min-height: 58px;
    gap: 8px;
    padding: 0 12px;
  }

  .dan-rank-title {
    font-size: 24px;
  }

  .dan-rank-arrow {
    font-size: 18px;
  }

  .dan-rank-content {
    padding: 12px 8px 16px;
  }

  .dan-table-wrap {
    width: 100%;
    overflow-x: visible;
  }

  .dan-stage-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 11px;
  }

  .dan-stage-table th,
  .dan-stage-table td {
    padding: 8px 4px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .dan-stage-table thead th {
    font-size: 11px;
  }

  .dan-song-link {
    border-bottom-width: 1px;
    overflow-wrap: anywhere;
  }

  .dan-conditions {
    margin-top: 12px;
    padding: 12px 10px;
  }

  .dan-conditions h3 {
    font-size: 17px;
  }

  .dan-conditions dl {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .dan-conditions div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px;
    text-align: center;
  }

  .dan-total-combo {
    margin-top: 10px;
    font-size: 13px;
  }

  .dan-credit {
    font-size: 13px;
    line-height: 1.7;
  }
}

@media (max-width: 420px) {
  .dan-col-order {
  width: 9.09%;
}

.dan-col-song {
  width: 36.36%;
}

.dan-col-create-id,
.dan-col-difficulty,
.dan-col-notes {
  width: 18.18%;
}
}





/* dan difficulty split start */
.dan-difficulty {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.dan-difficulty-label,
.dan-difficulty-level {
  display: inline-block;
}

@media (max-width: 760px) {
  .dan-difficulty {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1.08;
    white-space: normal;
  }

  .dan-difficulty-label {
    font-size: 10px;
  }

  .dan-difficulty-level {
    font-size: 14px;
  }
}
/* dan difficulty split end */

.dan-create-cell {
  text-align: center;
  font-weight: 700;
  line-height: 1.5;
}

.dan-create-link {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .dan-create-cell {
    font-size: 0.95em;
    line-height: 1.55;
  }
}


/* dan CREATE id column */
.dan-create-id-cell {
  color: #3d3d3d;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.dan-create-song-cell {
  overflow-wrap: anywhere;
}

/* dan toggle custom color hard override */
.dan-rank-toggle,
.dan-rank-toggle .dan-rank-title,
.dan-rank-toggle .dan-rank-arrow {
  color: var(--dan-toggle-text, #008bd2) !important;
}

.dan-rank-toggle * {
  color: inherit !important;
}



/* dan toggle text gradient fix */
.dan-rank-toggle .dan-rank-title {
  display: inline-block;
  color: var(--dan-toggle-text, #008bd2) !important;
  background-image: var(--dan-toggle-title-bg, none) !important;
  background-color: transparent !important;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: var(--dan-toggle-title-fill, currentColor);
}

.dan-rank-toggle .dan-rank-arrow {
  color: var(--dan-toggle-text, #008bd2) !important;
  background: transparent !important;
  -webkit-text-fill-color: currentColor;
}


/* dan page footer placement */
body.dan-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.dan-page .dan-main {
  width: 100%;
  box-sizing: border-box;
}

body.dan-page .site-rights-footer {
  margin-top: auto;
}
