@import url("https://fonts.googleapis.com/css2?family=DotGothic16&display=swap");

* {
  box-sizing: border-box;
}

body {
  margin: 0;

  font-family: "DotGothic16", sans-serif;

  color: #2b1b2f;

  background:
    linear-gradient(
      180deg,
      #ffe27a 0%,
      #fff2bd 100%
    );
}

.records-page {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;

  margin: 0 auto;
  padding: 18px 14px 36px;
}

/* ヘッダー */

.records-header {
  position: relative;

  margin: 0 auto 18px;
  padding: 22px 14px 16px;

  text-align: center;

  background: #fff8dc;

  border: 4px solid #2b1b2f;

  box-shadow:
    5px 5px 0 rgba(43, 27, 47, 0.25);
}

.records-header h1 {
  margin: 0 0 10px;

  font-size: 1.35rem;
  line-height: 1.35;

  color: #ff006e;
}

.records-header p {
  margin: 0;

  font-size: 0.78rem;
  line-height: 1.55;
}

/* テープ */

.tape {
  position: absolute;
  top: -12px;

  width: 70px;
  height: 22px;

  background: rgba(255, 255, 255, 0.65);

  border: 2px solid rgba(43, 27, 47, 0.35);
}

.tape-left {
  left: 20px;
  transform: rotate(-5deg);
}

.tape-right {
  right: 20px;
  transform: rotate(5deg);
}

/* フィルター */

.filter-area {
  margin: 0 auto 16px;
  padding: 12px;

  background: rgba(255,255,255,0.82);

  border: 3px solid #2b1b2f;
}

.filter-area label {
  display: block;

  margin-bottom: 7px;

  font-size: 0.74rem;
}

.filter-area select {
  width: 100%;

  padding: 10px 8px;

  font-family: inherit;
  font-size: 0.88rem;

  color: #2b1b2f;

  background: #fffdf2;

  border: 3px solid #2b1b2f;
}

/* ランキング */

.ranking-area {
  margin-bottom: 20px;
}

.ranking-title {
  margin-bottom: 10px;
  padding: 9px 10px;

  text-align: center;

  font-size: 0.88rem;

  color: #fff;

  background: #ff3b78;

  border: 4px solid #2b1b2f;

  box-shadow:
    4px 4px 0 #2b1b2f;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-card,
.loading-card {
  position: relative;

  padding: 10px 10px 9px;

  background: #fff8dc;

  border: 3px solid #2b1b2f;

  box-shadow:
    3px 3px 0 rgba(43, 27, 47, 0.22);
}

.rank-card::before {
  content: "";

  position: absolute;
  top: -8px;
  left: 50%;

  width: 54px;
  height: 14px;

  transform: translateX(-50%) rotate(-2deg);

  background: rgba(255,255,255,0.6);

  border: 1px solid rgba(43, 27, 47, 0.25);
}

.rank-card.rank-1 {
  background: #fff0a6;
}

.rank-card.rank-2 {
  background: #e8eef5;
}

.rank-card.rank-3 {
  background: #f4d7b5;
}

.rank-head {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 8px;

  margin-bottom: 6px;
}

.rank-place {
  font-size: 0.92rem;
  color: #ff006e;
}

.rank-score {
  font-size: 0.94rem;
}

.rank-name {
  margin-bottom: 5px;

  font-size: 0.82rem;
  line-height: 1.35;
}

.rank-title-text {
  margin-bottom: 4px;

  font-size: 0.72rem;
  line-height: 1.35;
}

.rank-date {
  font-size: 0.62rem;
  line-height: 1.3;

  text-align: right;

  opacity: 0.7;
}

.empty-card {
  padding: 12px;

  font-size: 0.78rem;
  line-height: 1.5;

  text-align: center;

  background: #fffdf2;

  border: 3px solid #2b1b2f;
}

/* 戻る */

.back-home {
  display: block;

  width: 88%;
  max-width: 320px;

  margin: 22px auto 0;
  padding: 13px 12px;

  text-align: center;
  text-decoration: none;

  font-size: 0.9rem;

  color: #fff;

  background: #2b1b2f;

  border: 4px solid #2b1b2f;

  box-shadow:
    4px 4px 0 #ff3b78;
}
