:root {
  --ink: #000;
  --highlight: #ffe14d;
  --outline: #fff;
  --outline-width: 3px;
  --glow: drop-shadow(var(--outline-width) 0 0 var(--outline))
    drop-shadow(calc(var(--outline-width) * -1) 0 0 var(--outline))
    drop-shadow(0 var(--outline-width) 0 var(--outline))
    drop-shadow(0 calc(var(--outline-width) * -1) 0 var(--outline));
}

* {
  box-sizing: border-box;
  font-family: "MS Gothic", "MS PGothic", msgothic, sans-serif;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  background-color: #fff;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("/images/paper.jpg") top / 3400px no-repeat;
}

a {
  color: var(--ink);
  text-decoration: none;
}

::selection {
  color: #000;
  background-color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.45);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.65);
}

.page-wrap {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 40px 16px 20px;
}

.page-title {
  margin: 0 0 24px;
  text-align: center;
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  font-weight: bold;
  line-height: 1.1;
}

.page-footer {
  margin: 28px auto 20px;
  text-align: center;
  font-size: 0.8rem;
}

.back-btn {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  transition: transform 0.2s;
}

.back-btn img {
  position: absolute;
  inset: 0;
  width: 80%;
  height: 100%;
  object-fit: contain;
}

.back-btn:hover {
  transform: scale(1.08);
}

.back-btn:hover img {
  filter: var(--glow);
}

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.75rem;
  border: 2px dashed rgba(0, 0, 0, 0.45);
}

.loaded > .placeholder {
  display: none;
}

@media (max-width: 560px) {
  .page-wrap {
    padding-top: 24px;
  }
}
