.pd-header {
  position: relative;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.04);
}

.pd-header-inner,
.pd-footer-inner,
.pd-content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.pd-header-inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pd-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4a90e2;
  font-size: 1.45rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.pd-brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.pd-nav,
.pd-footer nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.pd-nav a,
.pd-footer a {
  color: #374151;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.pd-nav a:hover,
.pd-footer a:hover {
  color: #2563eb;
}

.pd-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.pd-footer-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #6b7280;
  font-size: 0.92rem;
}

.pd-content {
  padding: 44px 0 64px;
}

.pd-doc {
  color: #222831;
  background: #f5f6f8;
  font-family: Arial, "Noto Sans KR", sans-serif;
}

.pd-doc-card {
  max-width: 860px;
  padding: 34px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.pd-doc-card h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0;
}

.pd-doc-card h2 {
  margin: 30px 0 10px;
  font-size: 1.28rem;
}

.pd-doc-card p,
.pd-doc-card li {
  color: #4b5563;
  line-height: 1.75;
}

.pd-doc-card a {
  color: #2563eb;
}

.game-info {
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto 64px;
  display: grid;
  gap: 18px;
}

.adsense-unit {
  display: block;
  overflow: hidden;
}

.adsense-unit-horizontal {
  width: min(100%, 970px);
  min-height: 90px;
  margin: 28px auto;
}

.adsense-unit-vertical {
  width: 100%;
  min-height: 520px;
}

.game-info > .adsense-unit-horizontal:first-child {
  margin-top: 0;
}

.ad-supported-game {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, auto) minmax(120px, 180px);
  align-items: start;
  gap: 18px;
}

.ad-supported-game > main {
  width: 100%;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
}

.ad-supported-game > main.game-shell,
.ad-supported-game > main.page-shell,
.ad-supported-game > main.sudoku-main,
.ad-supported-game > main.survivor-page {
  width: 100%;
  max-width: 100%;
}

.ad-side {
  min-height: 520px;
  padding-top: 20px;
  position: sticky;
  top: 82px;
}

.game-info h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  letter-spacing: 0;
}

.game-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.game-info-card {
  padding: 22px;
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.game-info-card h3 {
  margin: 0 0 10px;
  font-size: 1.04rem;
}

.game-info-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.65;
}

.game-recommend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.game-recommend a {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(74, 144, 226, 0.12);
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 860px) {
  .pd-header-inner,
  .pd-footer-inner,
  .pd-content,
  .game-info {
    width: min(100% - 28px, 1180px);
  }

  .pd-header-inner,
  .pd-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
  }

  .pd-nav,
  .pd-footer nav {
    justify-content: flex-start;
    gap: 10px 12px;
  }

  .pd-nav a,
  .pd-footer a {
    font-size: 0.86rem;
  }

  .pd-doc-card {
    padding: 24px;
  }

  .game-info-grid {
    grid-template-columns: 1fr;
  }

  .game-info {
    margin-top: 24px;
  }

  .adsense-unit-horizontal {
    margin: 22px auto;
  }

  .ad-supported-game {
    width: 100%;
    display: block;
  }

  .ad-side {
    display: none;
  }
}
