* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #e8e8e8;
  font-family: "Verdana", "Geneva", sans-serif;
  padding: 24px 16px 40px;
  display: flex;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.block {
  background: #fff;
  border: 1px solid #c8c8c8;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.07);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.3s ease forwards;
}
.block:nth-child(1) { animation-delay: 0.05s; }
.block:nth-child(2) { animation-delay: 0.15s; }
.block:nth-child(3) { animation-delay: 0.25s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

.banner {
  aspect-ratio: 16/9;
  background: #111;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pad { padding: 20px 22px; }

.section-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 15px;
  font-weight: bold;
  color: #000080;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding-bottom: 7px;
  border-bottom: 1px solid #000080;
  margin-bottom: 16px;
}

.terminal {
  background: #f5f5f5;
  border-left: 3px solid #000080;
  padding: 14px 18px;
  font-family: "Verdana", "Geneva", sans-serif;
  font-size: 12px;
  line-height: 2;
  color: #222;
}

.term-key { color: #000080; font-weight: bold; }
.term-status { color: #b06000; font-weight: bold; }

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.project-card {
  background: #0a0a0a;
  border: 1px solid #1c1c1c;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.project-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.25);
}

.card-thumb {
  aspect-ratio: 16/9;
  background: #111;
  position: relative;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.project-card:hover .card-thumb img { opacity: 0.8; }

.card-thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Verdana", sans-serif;
  font-size: 9px;
  color: #252525;
  letter-spacing: 2px;
}

.card-body { padding: 12px 14px; }

.card-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 13px;
  color: #00d438;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  line-height: 1.4;
}

.project-card:hover .card-title { color: #fff; }

.card-meta {
  font-family: "Verdana", sans-serif;
  font-size: 10px;
  color: #484848;
}

.project-page { display: none; }
.project-page.active { display: block; }

.project-page-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 6px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0f0f0;
  border: 1px solid #bbb;
  padding: 5px 12px;
  font-family: "Verdana", sans-serif;
  font-size: 10px;
  cursor: pointer;
  color: #000080;
  letter-spacing: 1px;
  transition: background 0.1s;
  align-self: flex-start;
}
.back-btn:hover { background: #e4e4e4; }

.project-name {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 20px;
  font-weight: bold;
  color: #000080;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.project-rule {
  height: 2px;
  background: linear-gradient(to right, #000080, #1084d0, transparent);
  margin-bottom: 18px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #c8c8c8;
  border-left: 3px solid #000080;
  padding: 11px 18px;
  text-decoration: none;
  margin-bottom: 6px;
  transition: background 0.15s, border-color 0.15s;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.06);
}
.download-btn:hover {
  background: #f5f8ff;
  border-color: #000080;
  border-left-color: #000080;
}

.download-btn-icon {
  width: 28px;
  height: 28px;
  background: #000080;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}

.download-btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.download-btn-label {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 13px;
  color: #000080;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.download-btn-sub {
  font-family: "Verdana", sans-serif;
  font-size: 9px;
  color: #888;
  letter-spacing: 0.5px;
}

.download-meta {
  display: block;
  font-family: "Verdana", sans-serif;
  font-size: 9px;
  color: #999;
  margin-bottom: 22px;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 8px;
  background: #000;
  padding: 10px;
  border: 1px solid #1a1a1a;
  margin-bottom: 14px;
}

.screenshots img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border: 1px solid #1e1e1e;
  transition: border-color 0.15s;
}
.screenshots img:hover { border-color: #000080; }

.screenshot-ph {
  aspect-ratio: 4/3;
  background: #0a0a0a;
  border: 1px solid #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Verdana", sans-serif;
  font-size: 9px;
  color: #252525;
}

.page-meta {
  font-family: "Verdana", sans-serif;
  font-size: 9px;
  color: #bbb;
}

footer {
  text-align: center;
  font-family: "Verdana", sans-serif;
  font-size: 9px;
  color: #aaa;
  letter-spacing: 2px;
  margin-top: 2px;
}

@media (max-width: 580px) {
  .projects-grid { grid-template-columns: 1fr; }
}
