/* Shared 2007-inspired base. Width, palette and spacing are design choices,
   not measurements from an authenticated 2007 Wayback capture.
   Page-specific adaptations live in portal-site.css. */
.portal-home {
  min-width: 0;
  margin: 0;
  background: #fff;
  color: #444;
  font: 12px/1.5 "돋움", Dotum, "굴림", Gulim, sans-serif;
}
html:has(.portal-home) { min-width: 0; }
.portal-home .site-shell { opacity: 1; visibility: visible; transition: none; }
.portal-home .page-loading-screen { display: none; }
.portal-home.loading-active { overflow: auto; }
.portal-home .container {
  display: block;
  width: 960px;
  min-width: 0;
  margin: 0 auto;
  background: #fff;
  border: 0;
}
.portal-home .left { display: none; }
.portal-home .right {
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0 10px 24px;
  color: #444;
}
.portal-home a { color: #444; }
.portal-home a:hover { color: #c13778; text-decoration: underline; }
.portal-home a:focus-visible { outline: 2px solid #a12d63; outline-offset: 3px; }
.portal-utility {
  display: flex;
  justify-content: space-between;
  padding: 5px 2px;
  border-bottom: 1px solid #eee;
  color: #888;
  font-size: 11px;
}
.portal-utility a { text-decoration: none; color: #777; }
.portal-home .retro-header {
  max-width: none;
  margin: 0;
  padding: 17px 10px 13px;
  text-align: left;
  background: #fff;
}
.portal-home .retro-header h1 {
  margin: 0;
  color: #d24283;
  font: bold 32px/1.2 "굴림", Gulim, sans-serif;
  letter-spacing: -2px;
  text-shadow: none;
}
.portal-home .retro-header p {
  margin: 6px 0 0;
  color: #777;
  font-size: 11px;
  font-weight: normal;
}
.portal-nav, .portal-subnav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.portal-nav {
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid #df85ac;
  border-top: 3px solid #d84889;
  background: #fff0f6;
}
.portal-nav a {
  padding: 2px 22px;
  border-right: 1px solid #eac2d3;
  color: #a62b61;
  font-size: 13px;
  font-weight: bold;
  line-height: 16px;
  text-decoration: none;
}
.portal-nav a:last-child { border-right: 0; }
.portal-subnav {
  justify-content: flex-start;
  gap: 20px;
  padding: 5px 15px;
  border: 1px solid #e8d7df;
  border-top: 0;
  background: #fffdf6;
  font-size: 11px;
}
.portal-subnav strong { color: #a06537; }
.portal-subnav a { text-decoration: none; }
.portal-home .notice {
  width: 100%;
  margin: 7px 0 0;
  padding: 3px 8px;
  border: 0;
  border-bottom: 1px dotted #ddd;
  background: #fff;
  color: #866175;
  font-size: 11px;
  font-weight: normal;
}
.portal-home .visitor-box {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin: 0 0 10px;
  padding: 5px 3px;
  border: 0;
  background: #fff;
}
.portal-home .visitor-text { font-size: 11px; color: #777; }
.portal-home .fake-counter { padding: 1px 2px; border: 1px solid #ccc; background: #fff; box-shadow: none; }
.portal-home .fake-counter span {
  min-width: 9px;
  height: 15px;
  padding: 0;
  background: #fff;
  color: #b64175;
  font: bold 12px/15px monospace;
  text-shadow: none;
  border: 0;
}
.portal-home .visitor-subtext { margin: 0; color: #999; font-size: 11px; }
.portal-home .home-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 584px) minmax(0, 344px);
  gap: 12px;
  margin: 0 0 12px;
  max-width: none;
}
.portal-home .main-visual-box {
  padding: 6px;
  border: 1px solid #e3c1d1;
  background: #fff7fb;
}
.portal-home .main-visual-img {
  width: 100%;
  height: 270px;
  max-height: none;
  padding: 0;
  border: 0;
  background: #fff7fb;
  object-fit: contain;
}
.portal-home .main-visual-caption { margin: 4px 0 0; color: #987284; font-size: 11px; }
.portal-home .update-panel { padding: 0; border: 1px solid #ddd; background: #fff; }
.portal-home .mini-title {
  margin: 0;
  padding: 5px 9px;
  border-bottom: 1px solid #e6dce1;
  background: #fff3f8;
  color: #a73869;
  font-size: 12px;
  text-align: left;
}
.portal-home .update-scroll {
  height: auto;
  overflow: visible;
  padding: 8px 10px;
  border: 0;
  background: #fff;
  font-size: 11px;
}
.portal-home .update-scroll ul { margin: 0; padding-left: 13px; }
.portal-home .update-scroll li { margin: 0 0 5px; line-height: 1.45; }
.portal-home .update-scroll time { margin-right: 5px; color: #999; font-size: 10px; }
.portal-shortcuts { margin: 0 8px 7px; border: 1px solid #eadcb6; background: #fffdf4; }
.portal-home .portal-shortcuts .mini-title { background: #fff7d9; color: #93712d; border-color: #eadcb6; }
.portal-shortcuts > a { display: block; padding: 3px 8px; font-size: 11px; text-decoration: none; }
.portal-shortcuts > a span { float: right; color: #c7a968; font-size: 9px; }
.portal-home .retro-section {
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: 1px solid #ddd;
  background: #fff;
  text-align: left;
}
.portal-home .retro-section h2 {
  margin: 0;
  padding: 5px 10px;
  border-bottom: 1px solid #e2dce0;
  background: #fff3f8;
  color: #a73869;
  font: bold 12px/1.5 "돋움", Dotum, "굴림", Gulim, sans-serif;
}
.portal-home .owner-comment { padding: 8px 11px; border: 0; background: #fff; font-size: 12px; line-height: 1.6; }
.portal-home .owner-comment p { margin: 0; }
.portal-home .info-table { border: 0; font-size: 12px; background: #fff; }
.portal-home .info-table th, .portal-home .info-table td { padding: 4px 10px; border: 0; border-bottom: 1px solid #eee; background: #fff; }
.portal-home .info-table th { width: 135px; color: #a73869; }
.portal-home .info-table thead th { padding: 3px 10px; background: #fafafa; color: #888; font-size: 11px; }
.portal-home .info-table thead th:last-child { width: auto; }
.portal-home .info-table tbody tr:last-child > * { border-bottom: 0; }
.portal-home .info-table a { color: #476697; text-decoration: none; }
.portal-home .animal-section { margin-top: 0; }
.portal-home .alliance-links { justify-content: flex-start; gap: 24px; padding: 9px 12px; }
.portal-home .alliance-links a { color: #476697; font-size: 11px; font-weight: normal; }
.portal-home .home-footer { width: 100%; margin: 18px 0 0; padding-top: 10px; border-top: 2px solid #e2c0cf; color: #999; font-size: 11px; }
/* Phone adaptation is intentionally modern; desktop is the reference layout. */
@media (max-width: 979px) {
  .portal-home .container { width: 100%; margin: 0; }
  .portal-home .right { padding: 0 12px 20px; }
  .portal-nav a { padding: 3px 12px; }
}
@media (max-width: 640px) {
  .portal-home .mobile-menu { display: none; }
  .portal-utility { font-size: 10px; gap: 8px; }
  .portal-utility > span { display: none; }
  .portal-utility > div { margin-left: auto; }
  .portal-home .retro-header { padding: 15px 3px 12px; }
  .portal-home .retro-header h1 { font-size: 28px; }
  .portal-home .retro-header p { font-size: 10px; line-height: 1.6; }
  .portal-nav { justify-content: flex-start; padding: 5px; gap: 3px 0; }
  .portal-nav a { padding: 5px 10px; font-size: 12px; }
  .portal-subnav { gap: 7px 15px; padding: 6px 10px; }
  .portal-home .visitor-box { flex-wrap: wrap; gap: 3px 12px; justify-content: center; }
  .portal-home .home-top-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .portal-home .main-visual-img { height: 230px; }
  .portal-home .info-table th { width: 82px; padding: 5px 7px; }
  .portal-home .info-table td { padding: 5px 7px; font-size: 11px; }
  .portal-home .alliance-links { gap: 8px 16px; }
}
