



.view--page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: calc(var(--topbar-h) + var(--safe-top) + 20px) calc(var(--safe-right) + 16px)
    calc(var(--safe-bottom) + 26px) calc(var(--safe-left) + 16px);
  animation: page-in 380ms var(--ease-soft) both;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-card {
  width: min(100%, 34rem);
  padding: clamp(20px, 5.4vw, 32px);
  border: var(--pixel-line) solid var(--plum);
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--pixel-shadow-lg);
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.page-kicker {
  color: var(--strawberry);
  font-family: var(--font-pixel);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-title {
  margin-top: 4px;
  color: var(--plum);
  font-size: clamp(1.4rem, 5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.page-summary {
  margin-top: 14px;
  color: var(--plum-soft);
  font-size: 16px;
  line-height: 1.8;
}

.page-subhead {
  margin-top: 20px;
  color: var(--ink-faint);
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.planned-list {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.planned-list li {
  position: relative;
  padding-left: 20px;
  color: var(--plum-soft);
  font-size: 16px;
  line-height: 1.7;
}

.planned-list li::before {
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 8px;
  height: 8px;
  border: 2px solid var(--plum);
  background: var(--sun);
  content: "";
}

.planned-list li:nth-child(even)::before {
  background: var(--mint);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.page-footnote {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 2px dashed rgb(73 59 81 / 18%);
  color: var(--ink-faint);
  font-size: 13px;
  line-height: 1.75;
}



.memory-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(100%, 430px);
}

.memory-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.memory-label {
  display: grid;
  gap: 2px;
}

.memory-label strong {
  color: var(--plum);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.memory-label span {
  color: var(--plum-soft);
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  padding: 0 14px;
  border: 2.5px solid var(--plum);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 2px 2px 0 var(--plum);
  color: var(--plum);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.back-btn:active {
  box-shadow: none;
  transform: translate(2px, 2px);
}


.pixel-progress {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  width: 100%;
  height: 12px;
}

.pixel-progress i {
  border: 2px solid var(--plum);
  background: var(--card);
}

.pixel-progress i.is-filled {
  background: var(--strawberry);
}

.pixel-progress i.is-filled:nth-child(2n) {
  background: var(--sun);
}

.memory-card {
  position: relative;
  width: 100%;
  padding: 9px;
  border: var(--pixel-line) solid var(--plum);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--pixel-shadow-lg);
}


.memory-card::before,
.memory-card::after {
  position: absolute;
  z-index: 2;
  width: 10px;
  height: 10px;
  background: var(--sun);
  box-shadow: 12px 0 0 var(--strawberry), 0 12px 0 var(--mint);
  content: "";
}

.memory-card::before {
  top: -6px;
  left: 14px;
}

.memory-card::after {
  right: 18px;
  bottom: -6px;
  background: var(--strawberry);
  box-shadow: -12px 0 0 var(--sun), 0 -12px 0 var(--mint);
}

.memory-frame {
  position: relative;
  border: var(--pixel-line) solid var(--plum);
  border-radius: 4px;
  background: var(--plum);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.memory-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
}

.memory-index {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 8px;
  border: 2px solid var(--plum);
  border-radius: 4px;
  background: var(--cream-light);
  color: var(--plum);
  font-family: var(--font-pixel);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.memory-info {
  display: grid;
  gap: 8px;
  padding: 10px 2px 2px;
}

.memory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.memory-scene {
  color: var(--plum);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.memory-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 2px dashed rgb(73 59 81 / 18%);
  color: var(--ink-faint);
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.memory-hint {
  max-width: 30rem;
  color: var(--plum-soft);
  font-size: 13.5px;
  line-height: 1.7;
  text-align: center;
}



.dev-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(100%, 44rem);
}

.dev-panel {
  padding: clamp(18px, 4.6vw, 26px);
  border: var(--pixel-line) solid var(--plum);
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--pixel-shadow);
}

.dev-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.dev-title {
  color: var(--plum);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.dev-version {
  color: var(--plum-soft);
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.dev-section {
  margin-top: 18px;
}

.dev-section h3 {
  margin-bottom: 8px;
  color: var(--strawberry);
  font-family: var(--font-pixel);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dev-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 9px 0;
  border-top: 2px dashed rgb(73 59 81 / 14%);
}

.dev-row:first-of-type {
  border-top: 0;
}

.dev-row p {
  color: var(--plum-soft);
  font-size: 14px;
  line-height: 1.6;
}

.dev-row strong {
  display: block;
  color: var(--plum);
  font-size: 15px;
  line-height: 1.45;
}

.status-tag {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 2px solid var(--plum);
  border-radius: 4px;
  font-family: var(--font-pixel);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.status-tag--done {
  background: var(--mint);
}

.status-tag--wait {
  background: var(--sun);
}

.status-tag--blocked {
  background: var(--lavender);
}

.dev-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.dev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}



.neutral-card {
  width: min(100%, 34rem);
  padding: clamp(22px, 5.6vw, 34px);
  border: var(--pixel-line) solid var(--plum);
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--pixel-shadow);
  text-align: center;
}

.neutral-card .pixel-rule {
  margin: 0 auto 14px;
}

.neutral-title {
  color: var(--plum);
  font-size: clamp(1.3rem, 4.8vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.neutral-text {
  margin-top: 10px;
  color: var(--plum-soft);
  font-size: 16px;
  line-height: 1.8;
}

.neutral-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .view--page {
    animation: none;
  }
}
