* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #282323;
  color: #d8d0c8;
  font-family: "Trebuchet MS", "Noto Sans KR", sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

a {
  color: #d9b36c;
  text-decoration: none;
}

a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-frame {
  max-width: 980px;
  margin: 28px auto;
  border: 1px solid #8d7a6c;
  background:
    linear-gradient(rgba(40, 35, 35, 0.88), rgba(40, 35, 35, 0.94)),
    url("img/bg.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.15);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  padding: 18px 24px;
  border-bottom: 1px solid #8d7a6c;
  background: rgba(20, 17, 17, 0.55);
}

.site-title h1 {
  margin: 0;
  color: #d9b36c;
  font-size: 24px;
  letter-spacing: 1px;
}

.site-title p {
  margin: 2px 0 0;
  color: #aaa09a;
  font-size: 12px;
}

nav {
  display: flex;
  gap: 14px;
  font-size: 13px;
  text-transform: uppercase;
  flex-wrap: wrap;
}

nav a.active {
  color: #fff;
  border-bottom: 1px solid #d9b36c;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding: 42px 24px;
  border-bottom: 1px solid #8d7a6c;
  min-height: 260px;
}

.eyebrow {
  color: #d9b36c;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h2 {
  max-width: 540px;
  margin: 0 0 16px;
  color: #fff;
  font-size: 32px;
  line-height: 1.25;
}

.hero p {
  max-width: 560px;
}

.hero-image {
  border: 1px solid rgba(217, 179, 108, 0.45);
  background: rgba(217, 179, 108, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8d7a6c;
  font-size: 13px;
  min-height: 180px;
}

.section {
  padding: 28px 24px;
  border-bottom: 1px solid #4b403a;
}

.section h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 20px;
  border-bottom: 1px solid #4b403a;
  padding-bottom: 8px;
}

.page-intro {
  color: #aaa09a;
  max-width: 620px;
  margin-bottom: 24px;
}

.meta {
  margin: 2px 0 12px;
  color: #aaa09a;
  font-size: 13px;
}

.simple-card,
.log-entry {
  border: 1px solid rgba(141, 122, 108, 0.55);
  background: rgba(20, 17, 17, 0.35);
  padding: 18px;
}

.simple-card h3,
.log-entry h3 {
  margin: 0;
  color: #fff;
}

.updates {
  list-style: none;
  padding: 0;
  margin: 0;
}

.updates li {
  padding: 6px 0;
  border-bottom: 1px dotted rgba(141, 122, 108, 0.45);
}

.updates span {
  color: #d9b36c;
  margin-right: 12px;
}

.recent-card,
.game-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  border: 1px solid rgba(141, 122, 108, 0.55);
  background: rgba(20, 17, 17, 0.35);
  padding: 12px;
}

.recent-card {
  grid-template-columns: 220px 1fr;
}

.recent-card img,
.game-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(141, 122, 108, 0.45);
  filter: grayscale(15%) contrast(92%);
}

.recent-card h3,
.game-card h3 {
  margin: 0;
  color: #fff;
  font-size: 21px;
}

.recent-card h3 {
  font-size: 22px;
}

.recent-card h3 a,
.game-card h3 a {
  color: #fff;
}

.recent-card h3 a:hover,
.game-card h3 a:hover {
  color: #d9b36c;
}

.game-list {
  display: grid;
  gap: 18px;
}

.game-year {
  margin: 0 0 2px;
  color: #d9b36c;
  font-size: 13px;
}

.game-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 42px 24px;
  border-bottom: 1px solid #8d7a6c;
}

.game-hero h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 34px;
  line-height: 1.2;
}

.game-hero p {
  max-width: 560px;
}

.game-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(217, 179, 108, 0.45);
  background: rgba(20, 17, 17, 0.35);
  filter: grayscale(10%) contrast(92%);
}

.game-links {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.game-links a {
  border: 1px solid rgba(217, 179, 108, 0.45);
  padding: 6px 10px;
  background: rgba(217, 179, 108, 0.08);
}

.game-links a:hover {
  background: rgba(217, 179, 108, 0.18);
  text-decoration: none;
}

.info-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-bottom: 1px dotted rgba(141, 122, 108, 0.45);
  padding: 6px 0;
}

.info-list dt {
  color: #d9b36c;
}

.info-list dd {
  margin: 0;
  color: #d8d0c8;
}

/* Gallery page */

.gallery-box {
  max-height: 640px;
  overflow-y: auto;
  border: 1px solid rgba(141, 122, 108, 0.55);
  background: rgba(20, 17, 17, 0.25);
  padding: 14px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-item {
  display: block;
  border: 1px solid rgba(141, 122, 108, 0.55);
  background: rgba(20, 17, 17, 0.35);
  padding: 8px;
}

.gallery-item img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(15%) contrast(92%);
}

.gallery-item span {
  display: block;
  margin-top: 8px;
  color: #aaa09a;
  font-size: 12px;
}

.gallery-item:hover {
  background: rgba(217, 179, 108, 0.1);
  text-decoration: none;
}

.gallery-item:hover span {
  color: #fff;
}

/* scrollbar */

.gallery-box::-webkit-scrollbar {
  width: 10px;
}

.gallery-box::-webkit-scrollbar-track {
  background: rgba(20, 17, 17, 0.45);
}

.gallery-box::-webkit-scrollbar-thumb {
  background: rgba(217, 179, 108, 0.35);
  border: 1px solid rgba(141, 122, 108, 0.55);
}

.gallery-box::-webkit-scrollbar-thumb:hover {
  background: rgba(217, 179, 108, 0.55);
}

.log-entry {
  margin-bottom: 16px;
}

.log-date {
  margin: 0 0 4px;
  color: #d9b36c;
  font-size: 13px;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 520px;
}

.link-list a {
  border: 1px solid rgba(217, 179, 108, 0.45);
  background: rgba(20, 17, 17, 0.35);
  padding: 10px 12px;
}

.link-list a:hover {
  background: rgba(217, 179, 108, 0.12);
  text-decoration: none;
}

footer {
  padding: 18px 24px;
  color: #8f8580;
  font-size: 12px;
  background: rgba(20, 17, 17, 0.45);
}

footer p {
  margin: 2px 0;
}

@media (max-width: 720px) {
  .site-frame {
    margin: 0;
    border-left: 0;
    border-right: 0;
  }

  .topbar {
    display: block;
  }

  nav {
    margin-top: 12px;
  }

  .hero,
  .recent-card,
  .game-card,
  .game-hero {
    grid-template-columns: 1fr;
  }

  .info-list div {
    grid-template-columns: 1fr;
  }

  .gallery-grid,
  .link-list {
    grid-template-columns: 1fr;
  }
  
  .gallery-box {
    max-height: none;
    overflow-y: visible;
  }
}