main {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 2em;
  justify-content: space-between;
}

header h1 {
  margin: 0;
  font-size: 2em;
  color: black;
}

.navbar {
  border-bottom: 2px solid #fff;
  margin-bottom: 20px;
}

article.entry {
  margin-bottom: 2em;
  max-width: 640px;
}

article.page {
  margin-bottom: 2em;
  max-width: 1100px;
}

article h2 {
  margin: 32px 0 12px 0;
  font-size: 1.45em;
  font-weight: 600;
  font-family: serif;
}

article h3, aside h3 {
  font-size: 1.2em;
  font-weight: 600;
  font-family: serif;
  font-style: italic;
}

.article-author {
  margin-bottom: 2em;
}

.image-author {
  text-align: center;
  font-style: italic;
  font-size: 0.9rem;
}

img {
  max-width: 100%;
  height: auto;
}

p, li {
  line-height: 1.6;
}

figure {
  margin: 0;
}

.section {
  margin-bottom: 44px;
}

.sidebar {
  max-width: 340px;
  flex: 1;
}

.sidebar h3 {
  font-size: 1.5em;
  font-weight: 550;
  font-family: serif;
  margin-top: 0;
}

.sidebar p {
  margin-bottom: 1.5em;
}

.recent-post {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5em;
}

.recent-post > a {
  display: block;
  flex-shrink: 0;
  width: 120px;
  margin-right: 15px;
}

.recent-post img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.recent-post p {
  margin: 0;
  line-height: 1.4;
  font-size: 0.95rem;
  font-weight: 600;
  flex: 1;
  align-self: center;
}

.recent-post a:link, .recent-post a:visited {
  text-decoration: none;
  color: #444;
}

.recent-post p a:hover {
  color: #4a90d9;
}

.article-author {
    margin-top: 10px;
    margin-bottom: 30px;
    color: #666;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.article-author a {
    font-weight: bold;
    text-decoration: none;
    color: #4af;
}

.game-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  overscroll-behavior: contain;
}

.game-container iframe {
  width: 100%;
  height: min(1100px, calc(100vh - 320px));
  min-height: 540px;
  border: 0;
  display: block;
  overscroll-behavior: contain;
}

@media (max-width: 990px) {
  body {
    padding: 0.5em;
  }

  header, main, footer {
    width: 100%;
    padding: 0 1em;
  }

  header {
    max-height: 400px;
    height: 400px;
  }

  .logo {
    display: none;
  }

  .title {
    flex: unset;
  }

  header h1 {
    font-size: 1.5em;
  }

  .navbar a {
    padding: 0.5em 1em;
  }

  article h2 {
    font-size: 1.3em;
  }

  main {
    flex-direction: column;
  }

  .sidebar {
    max-width: 100%;
  }
}

/* ---- Game page ---- */
.game-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1440px;
  width: 100%;
  padding: 0 20px;
}

.game-page > h1 {
  text-align: center;
  margin-bottom: 20px;
}

.game-page .entry-content {
  max-width: 700px;
  margin: 40px auto 0;
}

.game-fullscreen-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.game-fullscreen-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f5f5f5;
  color: #333;
  border: 0;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.game-fullscreen-btn:hover {
  background: #e8e8e8;
}
