* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --fs-xs: 0.6rem;
  --fs-sm: 0.7rem;
  --fs-desc: 0.8rem;
  --fs-base: 0.9rem;
  --fs-lg: 1.1rem;
}

body {
  background: #0f0e17;
  color: #fffffe;
  font-family: 'Press Start 2P', monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  position: relative;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
  z-index: 999;
}

.container {
  max-width: 720px;
  width: 100%;
}

header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  border-bottom: 3px solid #ff8906;
}

.logo {
  font-size: 2rem;
  color: #ff8906;
  text-shadow:
    3px 3px 0 #e16162,
    6px 6px 0 rgba(255, 137, 6, 0.3);
  letter-spacing: 4px;
  margin-bottom: 0.75rem;
}

.logo small {
  font-size: 1rem;
  color: #a7a9be;
  text-shadow: none;
  letter-spacing: 2px;
}

.section-title {
  font-size: var(--fs-lg);
  color: #e16162;
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: 3px;
}

.hero {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 2.5rem;
  image-rendering: pixelated;
}

.potatokun {
  position: fixed;
  bottom: 12px;
  right: 12px;
  width: 64px;
  height: auto;
  image-rendering: pixelated;
  opacity: 0.9;
  z-index: 1;
}

.game-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.game-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 2px solid #232946;
  background: rgba(35, 41, 70, 0.3);
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
  cursor: pointer;
}

.game-card:hover {
  border-color: #ff8906;
  background: rgba(35, 41, 70, 0.6);
  transform: translateX(4px);
}

.game-card .thumb {
  width: 64px;
  height: 64px;
  background: #232946;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  position: relative;
}

.game-card .thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.dev-badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  font-size: 0.5rem;
  background: #e16162;
  color: #fffffe;
  padding: 3px 5px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.game-card .info {
  flex: 1;
  min-width: 0;
}

.game-card .title {
  font-size: var(--fs-base);
  color: #ff8906;
  margin-bottom: 0.4rem;
}

.game-card .desc {
  font-size: var(--fs-desc);
  color: #a7a9be;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.game-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.game-card .tag {
  font-size: var(--fs-xs);
  color: #ff8906;
  background: rgba(255, 137, 6, 0.1);
  border: 1px solid rgba(255, 137, 6, 0.3);
  padding: 0.3rem 0.65rem;
  letter-spacing: 1px;
}

.game-card .arrow {
  font-size: 1.2rem;
  color: #232946;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.game-card:hover .arrow {
  color: #ff8906;
}

/* ── Author icons on game card ── */
.authors {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-shrink: 0;
}

.author-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #232946;
  color: #a7a9be;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #232946;
}

/* ── About / Staff section ── */
.staff-desc {
  text-align: center;
  font-size: var(--fs-desc);
  color: #a7a9be;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.staff-list {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.staff-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 2px solid #232946;
  background: rgba(35, 41, 70, 0.3);
  flex: 1;
}

.staff-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #232946;
  color: #a7a9be;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.staff-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.staff-links {
  display: flex;
  gap: 0.4rem;
}

.staff-name {
  font-size: var(--fs-sm);
  color: #fffffe;
}

.staff-link {
  color: #a7a9be;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: color 0.15s ease;
  font-size: 0;
}

.staff-link svg {
  width: 14px;
  height: 14px;
}

.staff-link:hover {
  color: #fffffe;
}

footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 2px solid #232946;
  font-size: var(--fs-sm);
  color: #a7a9be;
  line-height: 2;
}

/* ── Contact section ── */
.contact {
  text-align: center;
  margin-bottom: 3rem;
  padding: 1.5rem;
  border: 2px solid #232946;
  background: rgba(35, 41, 70, 0.3);
}

.contact-text {
  font-size: var(--fs-desc);
  color: #a7a9be;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.contact-link {
  display: inline-block;
  font-size: var(--fs-desc);
  color: #ff8906;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border: 2px solid #ff8906;
  transition: all 0.15s ease;
}

.contact-link:hover {
  background: rgba(255, 137, 6, 0.1);
  transform: translateY(-2px);
}

.contact-note {
  font-size: var(--fs-xs);
  color: #a7a9be;
  margin-top: 1rem;
  line-height: 1.8;
}

/* ── Policy page ── */
.policy {
  margin-bottom: 3rem;
  padding: 1.5rem;
  border: 2px solid #232946;
  background: rgba(35, 41, 70, 0.3);
  font-family: sans-serif;
  line-height: 1.9;
  color: #e0e0e0;
  font-size: 1rem;
}

.policy h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: var(--fs-base);
  color: #ff8906;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.policy .last-updated {
  font-family: 'Press Start 2P', monospace;
  font-size: var(--fs-xs);
  color: #a7a9be;
  text-align: center;
  margin-bottom: 2rem;
}

.policy h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: var(--fs-sm);
  color: #e16162;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
}

.policy p {
  margin-bottom: 0.75rem;
}

.policy .email {
  font-family: 'Press Start 2P', monospace;
  font-size: var(--fs-xs);
  color: #ff8906;
  padding-left: 1rem;
}

.policy .operator {
  font-family: 'Press Start 2P', monospace;
  font-size: var(--fs-sm);
  color: #ff8906;
}

.logo-link {
  text-decoration: none;
  display: block;
}

.header-sub {
  text-align: center;
  margin-top: -2rem;
  margin-bottom: 1.5rem;
}

.back-link {
  font-family: 'Press Start 2P', monospace;
  font-size: var(--fs-sm);
  color: #a7a9be;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: #ff8906;
}

.footer-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link:hover {
  color: #ff8906;
}

@media (max-width: 480px) {
  .policy {
    padding: 1rem;
    font-size: 0.9rem;
  }
  .policy h2 {
    font-size: var(--fs-xs);
  }
  .header-sub {
    margin-top: -1.5rem;
  }
  body { padding: 1rem 0.75rem; }
  .logo { font-size: 1.6rem; }
  .logo small { font-size: 0.85rem; display: block; }
  .game-card { padding: 1rem; }
  .game-card .thumb { width: 48px; height: 48px; font-size: 1.4rem; }
  .dev-badge { font-size: 0.4rem; }
  .staff-list { gap: 0.5rem; flex-wrap: wrap; }
  .staff-card { padding: 0.6rem 0.75rem; gap: 0.5rem; }
  .staff-avatar { width: 30px; height: 30px; font-size: 0.65rem; }
  .staff-info { gap: 0.35rem; }
}
