/* Shared page layout. No external fonts, libraries, or runtime dependencies. */
:root {
  --accent-color: #f261b8;
  --accent-hover: #ff82c9;
  color-scheme: dark;
  font-family: Arial, "Malgun Gothic", sans-serif;
  background: #1a1a1a;
  color: #ccc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.site-header {
  padding: 10px 20px;
  background: #333;
  color: #fff;
  text-align: center;
}

.site-header h1 {
  margin: 0;
}

/* Local transparent logo; intrinsic dimensions reserve its layout space. */
.site-logo {
  display: block;
  width: 176px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.page-content {
  width: calc(100% - 32px);
  max-width: 840px;
  margin: 20px auto;
  padding: 20px;
  background: #2a2a2a;
  box-shadow: 0 0 10px rgb(0 0 0 / 50%);
}

.page-content h2 {
  margin: 18px 0;
  font-size: 24px;
  line-height: 1.4;
  word-break: keep-all;
}

.address-line {
  margin: 0 0 4px;
}

.address-line strong {
  color: #fff;
  white-space: nowrap;
}

.domain-number {
  color: var(--accent-color);
}

.address-hint,
.guide-note,
.bookmark-note {
  margin: 0;
  font-size: 14px;
  color: #c4c4c4;
  word-break: keep-all;
}

/* Keep both pink buttons stacked, with dark text for readable contrast. */
.link-panel {
  display: grid;
  gap: 16px;
  margin: 20px 0;
  padding: 36px 20px 40px;
  background: #333;
  box-shadow: 0 0 10px rgb(0 0 0 / 70%);
}

.action-link {
  display: block;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--accent-color);
  color: #20151c;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  line-height: 1.5;
  word-break: keep-all;
}

.action-link:hover {
  background: var(--accent-hover);
}

a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.bookmark-note {
  margin-top: 6px;
}

.site-footer {
  padding: 10px 16px;
  background: #333;
  color: #fff;
  text-align: center;
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer span {
  white-space: nowrap;
}

/* The same layout serves the standalone error page. */
.error-code {
  margin: 12px 0;
  color: var(--accent-color);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 480px) {
  .page-content {
    width: calc(100% - 24px);
    padding: 18px 16px;
  }

  .page-content h2 {
    margin-top: 10px;
    font-size: 21px;
  }

  .link-panel {
    padding: 24px 16px;
  }
}
