/* 도리끄투 메인 화면 */

body.portal {
  margin: 0;
  min-width: 1024px;
  font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
  color: #333333;
  background-color: #53a653;
  background-image: url('/img/kkutu/gamebg.png');
  background-repeat: repeat;
}

body.portal::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

/* 상단 바 */
#Top {
  position: relative;
  z-index: 5;
  height: 30px;
  background-color: #7cc4f8;
  background-image: none;
  border-bottom: 1px solid #4f9ad4;
}

#Top .Menu {
  display: flex;
  align-items: center;
  height: 30px;
  padding-left: 6px;
}

#Top .menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-width: 40px;
  padding: 0 12px;
  box-sizing: border-box;
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  color: #1f4568;
  font-size: 12px;
  text-decoration: none;
}

#Top .menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

#account-info {
  margin-left: auto;
  padding-right: 14px;
  color: #1f4568;
  font-size: 12px;
  font-weight: bold;
}

/* 본문 */
#Portal {
  position: relative;
  z-index: 2;
  width: 1010px;
  margin: 22px auto 0;
}

.portal-hero {
  float: left;
  width: 620px;
  text-align: center;
}

.portal-logo-wrap {
  display: inline-block;
  padding: 18px 26px;
  border-radius: 22px;
  background-color: #e2a9f1;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

#portal-logo {
  display: block;
  width: 288px;
}

.portal-sub {
  margin: 10px 0 0;
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 게임 시작 나무판 (원본 비율) */
.jjoriping {
  position: relative;
  width: 325px;
  height: 85px;
  margin: 30px auto 0;
  font-size: 0;
  line-height: 0;
}

.jjoriping .jjoObj {
  position: absolute;
  z-index: 2;
  display: block;
}

.jjoriping .jjoEyeL {
  left: 0;
  right: auto;
  top: -40px;
}

.jjoriping .jjoNose {
  left: 50%;
  right: auto;
  top: 2px;
  margin-left: -11px;
}

.jjoriping .jjoEyeR {
  left: auto;
  right: 0;
  top: -40px;
}

.jjoriping .jjoDisplayBar {
  position: absolute;
  left: 0;
  top: 0;
  width: 325px;
  height: 85px;
  padding: 14px 5px 5px;
  box-sizing: border-box;
  border: 2px solid #000000;
  border-radius: 0 0 10px 10px;
  background-color: #deaf56;
}

#game-start {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
  border: none;
  border-radius: 10px 10px 0 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: #eeeeee;
  font-family: inherit;
  font-size: 20px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

#game-start:hover {
  background-color: rgba(0, 0, 0, 0.85);
  color: #ffd75e;
}

.portal-hint {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/* 서버 목록 */
.portal-side {
  float: right;
  width: 340px;
  margin-top: 18px;
}

.server-list-box {
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.42);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.server-list-title {
  display: flex;
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 7px 10px;
  background-color: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-size: 12px;
  font-weight: normal;
}

#server-refresh {
  color: #bde3ff;
  cursor: pointer;
}

#server-total {
  margin-left: auto;
  padding-right: 2px;
  color: #9fd0ff;
  font-size: 10px;
}

#server-list {
  padding: 8px;
  box-sizing: border-box;
}

#server-list .server {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  height: 32px;
  padding: 0 6px;
  box-sizing: border-box;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
}

#server-list .server:hover {
  background-color: rgba(255, 255, 255, 0.16);
}

.server-status {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ss-o {
  background-color: #46d246;
  box-shadow: 0 0 6px #46d246;
}

.ss-q {
  background-color: #ee5555;
}

.server-name {
  flex: 1 1 auto;
  min-width: 0;
  color: #ffffff;
  overflow: hidden;
  white-space: nowrap;
}

.server-people {
  flex: 0 0 62px;
  color: #cfe6ff;
  font-size: 11px;
  text-align: right;
  white-space: nowrap;
}

.server-enter {
  flex: 0 0 34px;
  margin-left: 8px;
  padding: 2px 0;
  border-radius: 4px;
  background-color: #6cb2e8;
  color: #ffffff;
  font-size: 11px;
  text-align: center;
}

.portal-links {
  margin-top: 10px;
  text-align: right;
}

.portal-links a {
  display: inline-block;
  margin-left: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  background-color: rgba(0, 0, 0, 0.42);
  color: #ffffff;
  font-size: 11px;
  text-decoration: none;
}

.portal-links a:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

/* 공지 */
.portal-notice {
  clear: both;
  margin-top: 18px;
  border: 2px solid #ffffff;
  border-radius: 6px;
  background-color: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.portal-notice h3 {
  margin: 0;
  padding: 7px 12px;
  border-bottom: 1px solid #dddddd;
  background-color: #f2f2f2;
  color: #333333;
  font-size: 13px;
}

.portal-notice iframe {
  display: block;
  width: 100%;
  height: 236px;
  border: none;
}

/* 하단 */
#Bottom {
  position: relative;
  z-index: 2;
  width: 1010px;
  margin: 18px auto 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

#Bottom .bottom-legal {
  margin-bottom: 8px;
}

#Bottom a {
  color: #ffe9a8;
}


#Bottom .bottom-legal {
  margin-bottom: 6px;
  line-height: 1.65;
}

#Bottom .bottom-legal label {
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 10px;
}

#Bottom a {
  color: #ffe9a8;
}

#server-total {
  overflow: hidden;
  max-width: 56px;
  text-overflow: ellipsis;
}


/* 바로가기 버튼 (끄딧 / 끄투fsv) */
.site-links {
  display: flex;
  gap: 8px;
}

.site-link {
  flex: 1;
  display: block;
  padding: 10px 0;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.45);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
}

.site-link:hover {
  background-color: rgba(0, 0, 0, 0.62);
  color: #ffd75e;
}
