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

body {
  font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
  font-size: 14px;
  background: #f5f5f5;
  color: #333;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 32px 16px;
}

.page-wrapper {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
  max-width: 1280px;
}

.ad-slot {
  width: 300px;
  min-width: 300px;
  height: 600px;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 13px;
  position: sticky;
  top: 32px;
  margin-top: 45px;
}

@media (max-width: 1000px) { .ad-slot.ad-left  { display: none; } }
@media (max-width: 1280px) { .ad-slot.ad-right { display: none; } }

.container {
  width: 100%;
  max-width: 640px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

h1 { font-size: 22px; font-weight: 700; color: #1a1a1a; }
h1 span { color: #0078d4; }

.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 48px 24px;
  text-align: center;
}

.ip-label {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.ip-value {
  font-size: 48px;
  font-weight: 700;
  color: #0078d4;
  font-family: 'Consolas', monospace;
  letter-spacing: 2px;
  min-height: 64px;
  line-height: 1.2;
}

.ip-value.loading { color: #bbb; font-size: 32px; font-weight: 400; }
.ip-value.error   { color: #c5221f; font-size: 24px; }

.ip-info {
  margin-top: 16px;
  font-size: 13px;
  color: #999;
}

.btn-refresh {
  margin-top: 32px;
  background: #0078d4;
  border: none;
  color: #fff;
  padding: 10px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-refresh:hover { background: #005fa3; }
