.face-page {
  padding: 0 6px 26px;
}

.face-page > .section-title-row {
  margin-right: 5px;
  margin-left: 5px;
}

.face-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 4px 6px 12px;
}

.face-heading h2 {
  margin: 0;
  color: #e8e8e8;
  font-size: 15px;
  font-weight: 500;
}

.face-heading button,
.face-heading a {
  padding: 0;
  color: var(--orange);
  font-size: 14px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 10px;
}

.template-card {
  min-width: 0;
  padding: 0;
  color: inherit;
  text-align: center;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.template-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  aspect-ratio: 4 / 5;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.template-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.template-card[data-tone="rose"] .template-image img {
  filter: saturate(1.08) contrast(1.03);
}

.template-card[data-tone="mist"] .template-image img {
  filter: saturate(0.82) brightness(1.06);
}

.template-card[data-tone="warm"] .template-image img {
  filter: sepia(0.14) saturate(1.08) brightness(1.03);
}

.template-card[data-tone="blue"] .template-image img {
  filter: saturate(0.92) hue-rotate(8deg) brightness(0.96);
}

.template-card:hover .template-image {
  border-color: rgba(255, 138, 18, 0.48);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
  transform: translateY(-2px);
}

.template-card:hover .template-image img {
  transform: scale(1.025);
}

.template-card:active .template-image {
  transform: scale(0.985);
}

.coin-badge {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  padding: 4px 6px;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  background: linear-gradient(180deg, #ff8d21, #ff5c00);
  border-radius: 7px 0 7px 0;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.26);
}

.template-name {
  display: block;
  padding-top: 7px;
  color: #8f8f8f;
  font-size: 15px;
  line-height: 1.2;
}

.face-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 0 0;
}

.face-pagination button {
  min-width: 25px;
  height: 31px;
  padding: 0 8px;
  color: #e5e5e5;
  font-size: 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
}

.face-pagination button:hover {
  background: #171717;
}

.face-pagination button:disabled {
  color: #4f4f4f;
  cursor: not-allowed;
  background: transparent;
}

.face-pagination .page-button.active {
  color: var(--orange);
  border-color: var(--orange);
}

.face-pagination .page-gap {
  color: #888;
  cursor: default;
}

.jump-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 0 22px;
  color: #d0d0d0;
  font-size: 14px;
}

.jump-row input {
  width: 38px;
  height: 31px;
  padding: 0 5px;
  color: #fff;
  text-align: center;
  background: #111;
  border: 1px solid #333;
  border-radius: 4px;
  outline: none;
}

.jump-row input:focus {
  border-color: var(--orange);
}

.jump-row input:disabled,
.jump-row button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.jump-row button {
  height: 31px;
  padding: 0 10px;
  color: #17100a;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(180deg, #ffb12b, #ff7a00);
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.face-note {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0 1px;
  padding: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 141, 20, 0.2), transparent 48%),
    #12100d;
  border: 1px solid rgba(255, 145, 24, 0.15);
  border-radius: 8px;
}

.face-note span {
  color: var(--orange);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.1px;
}

.face-note strong {
  color: #e6e6e6;
  font-size: 14px;
  font-weight: 500;
}

.template-empty {
  grid-column: 1 / -1;
  padding: 70px 12px;
  color: #777;
  font-size: 14px;
  text-align: center;
  border: 1px dashed #282828;
  border-radius: 9px;
}

@media (min-width: 768px) {
  .face-page {
    padding: 0 14px 34px;
  }

  .face-heading {
    padding: 8px 8px 16px;
  }

  .face-heading h2 {
    font-size: 19px;
  }

  .face-heading button {
    font-size: 15px;
  }

  .template-grid {
    gap: 22px 14px;
  }

  .template-name {
    padding-top: 10px;
    font-size: 17px;
  }

  .coin-badge {
    padding: 5px 8px;
    font-size: 11px;
  }

  .face-note {
    padding: 20px 22px;
  }

  .face-note strong {
    font-size: 17px;
  }
}
