#-----------------------------------------------------------#
#  죄와 벌++ 이율배반 										#
#  Copyright(C) 2001-2002 by Vivid Studio. BLANK BOARD		#
#  Vivid Studio.[ http://www17.big.or.jp/~obochan/vivid/ ]	#
#  BLANK BOARD [ http://pom.to/ ]							#
#-----------------------------------------------------------#
# 표시 PC용 파츠1 Version 1.0								#
#--- [주의사항] --------------------------------------------#
# 1.이 스크립트는 이하의 이용규정에 따라 배포되고 있습니다.	#
#   http://www24.big.or.jp/~obo/game/ore_/gild/				#
#-----------------------------------------------------------#

#-------------------------------------------------------------------------------
# 통상 표시용
sub layout_flag_0{
	my @metu=('','(멸망)');
	my $reset_time_out = int(($set-$time)/(3600*24));

	print <<EOM;
<div class="game-layout">
    <!-- 하단 메인 정보 영역 -->
    <div style="display: flex; flex-direction: column; gap: 20px;">
EOM

	if($log){
		print <<EOM;
        <div class="card">
            <div class="card-title">행동 로그</div>
            <div class="moji1">$log</div>
        </div>
EOM
	}

	print <<EOM;
        <div class="card">
            <div class="card-title">공지사항</div>
            <div class="moji1">$bmes</div>
        </div>

        <div class="card" style="overflow-x: auto;">
            <div class="card-title">국가 정세</div>
            <table class="bar" style="width: 100%; border-collapse: collapse; text-align: center; color: var(--text-primary);">
                <thead>
                    <tr style="background-color: rgba(255,255,255,0.05);">
                        <th style="padding: 10px; border-bottom: 1px solid var(--border-color);">&nbsp;</th>
                        <th style="padding: 10px; border-bottom: 1px solid var(--border-color); background-color: $color[1]; color: #fff;">$cmp[1]$metu[$ce1]</th>
                        <th style="padding: 10px; border-bottom: 1px solid var(--border-color); background-color: $color[2]; color: #fff;">$cmp[2]$metu[$ce2]</th>
                        <th style="padding: 10px; border-bottom: 1px solid var(--border-color); background-color: $color[3]; color: #fff;">$cmp[3]$metu[$ce3]</th>
                        <th style="padding: 10px; border-bottom: 1px solid var(--border-color); background-color: $color[4]; color: #fff;">$cmp[4]$metu[$ce4]</th>
                        <th style="padding: 10px; border-bottom: 1px solid var(--border-color); background-color: $color[5]; color: #fff;">$cmp[5]$metu[$ce5]</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td style="padding: 8px; border-bottom: 1px solid var(--border-color); font-weight: bold; background-color: rgba(255,255,255,0.02);">총 국력</td>
                        <td style="padding: 8px; border-bottom: 1px solid var(--border-color);">$cn1</td>
                        <td style="padding: 8px; border-bottom: 1px solid var(--border-color);">$cn2</td>
                        <td style="padding: 8px; border-bottom: 1px solid var(--border-color);">$cn3</td>
                        <td style="padding: 8px; border-bottom: 1px solid var(--border-color);">$cn4</td>
                        <td style="padding: 8px; border-bottom: 1px solid var(--border-color);">$cn5</td>
                    </tr>
                    <tr>
                        <td style="padding: 8px; border-bottom: 1px solid var(--border-color); font-weight: bold; background-color: rgba(255,255,255,0.02);">국가 예산</td>
                        <td style="padding: 8px; border-bottom: 1px solid var(--border-color);">$cg1</td>
                        <td style="padding: 8px; border-bottom: 1px solid var(--border-color);">$cg2</td>
                        <td style="padding: 8px; border-bottom: 1px solid var(--border-color);">$cg3</td>
                        <td style="padding: 8px; border-bottom: 1px solid var(--border-color);">$cg4</td>
                        <td style="padding: 8px; border-bottom: 1px solid var(--border-color);">$cg5</td>
                    </tr>
                    <tr>
                        <td style="padding: 8px; border-bottom: 1px solid var(--border-color); font-weight: bold; background-color: rgba(255,255,255,0.02);">총 군량</td>
                        <td style="padding: 8px; border-bottom: 1px solid var(--border-color);">$cf1</td>
                        <td style="padding: 8px; border-bottom: 1px solid var(--border-color);">$cf2</td>
                        <td style="padding: 8px; border-bottom: 1px solid var(--border-color);">$cf3</td>
                        <td style="padding: 8px; border-bottom: 1px solid var(--border-color);">$cf4</td>
                        <td style="padding: 8px; border-bottom: 1px solid var(--border-color);">$cf5</td>
                    </tr>
                    <tr>
                        <td style="padding: 8px; border-bottom: 1px solid var(--border-color); font-weight: bold; background-color: rgba(255,255,255,0.02);">총 병사 수</td>
                        <td style="padding: 8px; border-bottom: 1px solid var(--border-color);">$cs1</td>
                        <td style="padding: 8px; border-bottom: 1px solid var(--border-color);">$cs2</td>
                        <td style="padding: 8px; border-bottom: 1px solid var(--border-color);">$cs3</td>
                        <td style="padding: 8px; border-bottom: 1px solid var(--border-color);">$cs4</td>
                        <td style="padding: 8px; border-bottom: 1px solid var(--border-color);">$cs5</td>
                    </tr>
                    <tr>
                        <td style="padding: 8px; font-weight: bold; background-color: rgba(255,255,255,0.02);">소속 인원</td>
                        <td style="padding: 8px;">$c1/$c1a</td>
                        <td style="padding: 8px;">$c2/$c2a</td>
                        <td style="padding: 8px;">$c3/$c3a</td>
                        <td style="padding: 8px;">$c4/$c4a</td>
                        <td style="padding: 8px;">$c5/$c5a</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>

    <!-- 하단 사이드 정보 영역 -->
    <div style="display: flex; flex-direction: column; gap: 20px;">
        <div class="card">
            <div class="card-title">시스템 정보</div>
            <div class="moji2">
                &nbsp;&nbsp;제 $goal_no 기<br>
                &nbsp;&nbsp;통일 기한까지 남은 시간: $reset_time_out일
            </div>
        </div>

        <div class="card">
            <div class="card-title">접속자 정보</div>
            <div class="moji2">
                참가 총수: $all_mem명 / 정원 $sanka명<br>
                통일 국력: $data_reset&nbsp;&nbsp;난이도: $reset_point
                <hr style="margin: 10px 0;">
                이전 패자: $hasya [$cmp[$hcamp]]
            </div>
        </div>
    </div>
</div>
EOM
}





1;
