html {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #05030a;
  color: #e8d7ff;
  font-family: "Courier New", monospace;
  font-size: 11px;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: radial-gradient(#7d4cc4 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.15;
  pointer-events: none;
}

.site {
  width: 92%;
  max-width: 700px;
  margin: 0px auto;
  padding: 16px;
  border: 2px solid #8b5bd6;
  background: rgba(8, 4, 18, 0.95);
  box-shadow: 0 0 30px #3b146b;
  align-items: center;
}

.hero {
  text-align: center;
  padding: 22px 20px;
  border-bottom: 1px dashed #9d74df;
}

.hero h1 {
  margin: 0;
  font-size: 1.8rem;
  color: #caa7ff;
  text-shadow: 0 0 8px #7d4cc4;
}

.hero p {
  color: #d8c4ff;
}

.box {
  border: 1px solid #9d74df;
  padding: 14px;
  margin: 16px 0;
  background: #0c0718;
}

.welcome {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
}

.welcome-img {
  min-height: 100px;
  border: 1px dashed #9d74df;
  display: grid;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.top-buttons,
.quick-links {
  display: grid;
  gap: 16px;
}

.top-buttons {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
}

.quick-links {
  grid-template-columns: repeat(3, 1fr);
}

a {
  color: #f2c7ff;
  text-decoration: none;
  border: 1px solid #9d74df;
  /*border-radius: 12px 12px 4px 4px;*/
  padding: 10px;
  margin-bottom: 5px;
  font-size: 0.8rem;
  display: block;
  text-align: center;
  background: #130a24;
}

a:hover {
  background: #24113f;
  color: white;
  text-shadow: 0 0 6px #d6aaff;
}

h2 {
  text-align: center;
  color: #d7b6ff;
  font-weight: normal;
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.card {
  border: 2px solid #9d74df;
  padding: 10px;
  background: #0c0718;
}

.card h3 {
  text-align: center;
  margin-top: 0;
}

.card p {
  font-size: 0.8rem;
}

.card a {
  padding: 6px;
  text-align: left;
  font-size: 0.8rem;
}

.portrait {
  width: 100%;
  height: 110px;
  border: 1px solid #9d74df;
  background: #1a0d2f;
  margin-bottom: 12px;
}

.riddle {
  border-color: #b84b7b;
}

.wanderer {
  border-color: #7e68d8;
}

.miku {
  border-color: #5fd3d6;
}

.updates {
  position: relative;
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  align-items: center;
}

.updates-text h2 {
  text-align: left;
  margin-top: 0;
}

.updates-text ul {
  margin: 0;
  padding-left: 18px;
}

.updates-img img {
  width: 100%;
  height: auto;
  display: block;
}

.updates-btn {
  width: fit-content;
  margin: 14px auto 0 auto;
  display: block;
  text-align: center;
}

.guestbook {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.guestbook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.guestbook-btn {
  height: auto;
}

footer {
  text-align: center;
  margin-top: 28px;
  color: #b99ae8;
}

/* mobile */
@media (max-width: 360px) {
  .site {
    width: 88%;
    max-width: 360px;
    margin: 10px auto;
    padding: 12px;
    border-left: none;
    border-right: none;
  }
  
  body {
    font-size: 11px;
  }

  .welcome {
    grid-template-columns: repeat(3,1fr;
  }

  .welcome-img {
    min-height: 120px;
  }

  .top-buttons,
  .quick-links,
  .family-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
  }

  .guestbook {
    display: block;
    text-align: center;
  }

  .hero {
    padding: 28px 10px;
  }
}