/* 共用基本樣式 */
body {
    margin: 0;
    padding: 0;
    font-family: "源樣黑體","Helvetica Neue", Arial, sans-serif;
    background: #f0f0f0;
}



/*---------首頁----------*/
/* 全螢幕提示遮罩 */
#resolutionOverlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	z-index: 9999;
	display: none;
	color: white;
	text-align: center;
	padding-top: 15%;
	font-size: 24px;
	line-height: 45px;
}
#resolutionOverlay button {
	margin-top: 20px;
	padding: 10px 20px;
	font-size: 18px;
	background-color: #007bff;
	border: none;
	color: white;
	border-radius: 8px;
	cursor: pointer;
}
#resolutionOverlay button:hover {
	background-color: #0056b3;
}




/* 歡迎頁 */
.gameBg, #coverExplain {
    background: url("../img/bg_gameInfo.jpg");
    background-size: cover;
    background-position: bottom center;
}

.bgVideo {
    filter: brightness(0.5);
    position: fixed;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

.bgVideo video {
    display: block;
    width: 100vw;
    height: auto;
}

#Logo {
    display: block;
    position: fixed;
    z-index: 1;
    top: 80px;
    left: 80px;
}

#standby {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100vw;
    height: 100vh;
}

.IndexSlogan {
    display: block;
    position: absolute;
    top: 400px;
    left: 80px;
}

.IndexSlogan h1 {
    color: #fff;
    font-size: 88px;
    margin: 0 0 20px;
	line-height: 120px;
}

.IndexSlogan h5 {
    color: #fff;
    font-size: 50px;
    font-weight: 100;
    margin: 0;
}

.indexClickNotice {
    display: block;
    position: absolute;
    right: 0;
    bottom: 150px;
    color: #fff;
    text-align: center;
    width: 600px;
    font-size: 50px;
    background: #004098;
    line-height: 100px;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
}



/*----------挑戰者資料填寫----------*/
#ChallengerDataInput {
    min-height: 100vh;
    display: none;
    position: relative;
    z-index: 2;
    width: 100vw;
    height: 100vh;
}


.form-box {
    position: absolute;
    display: block;
    left: calc(50% - 300px);
    top: calc((100% - 595px) / 2);
    width: 600px;
    text-align: center;
}

.form-box h2 {
    font-size: 60px;
    color: #fff;
    margin-bottom: 50px;
    margin-top: 0;
}



/* 輸入欄位 */
.form-box input[type="text"] {
    width: calc(100% - 30px);
    padding: 20px 15px;
    margin: 0 0 30px;
    border: none;
    border-radius: 50px;
    font-size: 40px;
    text-align: center;
}

button.play-click {
    background: #004098;
    font-size: 50px;
    letter-spacing: 15px;
    padding: 20px 0 20px 15px;
    width: 400px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 30px;
    margin-top: 20px;
}




/* 標準按鈕樣式 */
button, .btn {
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 8px;
    border: none;
    background: #00aaff;
    color: white;
    cursor: pointer;
    text-decoration: none;
}
button:hover, .btn:hover {
    background: #0099dd;
}



/*----------遊戲頁----------*/

/* 蓋版用 */
#coverExplain {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    color: #575757;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#coverExplain h1 {
    font-size: 60px;
    margin: 0 auto 20px;
}

#coverExplain p {
    font-size: 40px;
    text-align: center;
    line-height: 60px;
    margin: 0;
}

#coverExplain .block {
    padding-top: 100px;
}

#coverExplain h3 {
    font-size: 50px;
    margin: 0 0 20px;
    font-weight: 500;
}

.sampleImg {
    display: block;
    padding: 50px 0;
}




/* 遊戲頁版面 */
#gameArea {
    display: flex;
    height: 100vh; /* 高度整個視窗 */
    overflow: hidden; /* 本體不要捲動 */
}

#leftSide {
    flex: 11;
    overflow: hidden; /* 禁止左邊自己捲動 */
}


#rightSide {
    flex: 2.05;
    padding: 10px;
    overflow-y: auto;
    max-height: 100vh;
    background: #fafafa;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

#rightSide h3 {
    color: #004098;
    font-size: 40px;
    text-align: center;
}


/* 玩家資料 */
.GameInfo {
    display: flex;
    background: #004098;
    margin-bottom: 15px;
}

.GameLogo {
    padding: 35px;
    background: #fff;
}

.Gamer {
    padding: 40px;
    width: calc(100% - 655px - 80px);
}

.Gamer span {
    font-size: 85px;
    color: #fff;
    font-weight: bold;
}

.GameInfolabel {
    font-size: 40px;
    margin-bottom: 10px;
    color: #fff;
}

.GameScore, .GameTime {
    margin: 40px 0;
    border-left: 1px solid #fff;
    padding: 0 30px;
    text-align: center;
}

.GameScore span {
    font-size: 85px;
    color: #FFF597;
}

.GameTime span {
    font-size: 85px;
    color: #FF9797;
}


/* 遊戲字盤 */
.letterGrid {
    display: grid;
    grid-template-columns: repeat(20, 73px);
    grid-gap: 5px;
	padding: 20px;
}
.letterCell {
    width: 75px;
    height: 75px;
    line-height: 75px;
    text-align: center;
    background: #dadada;
    font-size: 40px;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    user-select: none;
	transition: background-color 0.3s ease;
}
.letterCell.selected {
    background: #FFE4A8;
}

/* 右側單字區 */
.wordItem {
    background: #F7F7F7;
    border: 1px solid #E0E0E0;
    color: #fff;
    margin: 8px 0;
    padding: 6px 12px 6px 6px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wordText {
    text-transform: uppercase;
    font-size: 37px;
    color: #202020;
}

.bingo .wordText {
    color: #fff;
}

.scoreCircle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #E0E0E0;
    text-align: center;
    line-height: 50px;
    margin-right: 10px;
    font-size: 30px;
}

.bingo .scoreCircle {
    background: #6fbeff;
    color: #fff;
}

/* 通用頁面容器 */
.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
    padding: 20px;
}



/* 表格美化 */
table {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
th, td {
    padding: 12px 20px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}
th {
    background: #00aaff;
    color: white;
    font-weight: bold;
}
td {
    font-size: 16px;
}

/* 分數醒目 */
.score {
    font-size: 32px;
    color: #00aaff;
    font-weight: bold;
    margin: 20px 0;
}

/* 回首頁按鈕 */
.btn-home {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background: #00aaff;
    color: white;
    font-size: 18px;
    border-radius: 8px;
    text-decoration: none;
}
.btn-home:hover {
    background: #0088cc;
}


/*-----遊戲結束-----*/
.gameEndBg {
	display: block;
	position: fixed;
	z-index: 0;
	width: 100vw;
    height: 100vh;
	top: 0;
	left: 0;
	background: url("../img/bg_gameEnd.jpg");
	background-size: cover;
	background-position: center bottom;
	filter: blur(0);
	transition: 1.5s;
}

.gameEndBg.blur {
	filter: blur(10px);
} 



#gameEndBk_1::after {content: "";display: block;height: 300px;}

#gameEndBk_2 {
	display: none;
}
#gameEndBk_2::after {content: "";display: block;height: 150px;}
.gameEnd {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gameEnd h2 {
    font-size: 60px;
    color: #004098;
    margin: 0 auto 30px;
}

.GameScoreTxt {
    font-size: 55px;
    color: #575757;
}

.GameScoreTxt span {
    font-size: 80px;
    color: #ff0000;
}

.GameEndNote {
    margin-top: 100px;
    font-size: 45px;
    border: 1px solid #575757;
    padding: 20px 100px;
    color: #575757;
    border-radius: 50px;
}

.ScoreList {
    display: block;
    margin-top: 50px;
    background: rgba(245, 245, 248, .8);
    width: 80%;
    border-radius: 50px;
}

.ScoreList ul {
    display: block;
    list-style: none;
    font-size: 0;
    padding: 30px;
    margin: 0;
}

.ScoreList ul li {
    display: inline-block;
    width: calc(100% / 3);
    text-align: center;
	vertical-align: top;
}

.ScoreList ul li > div {
    margin-bottom: 20px;
}

.ScoreList ul li > div:last-child {
    margin-bottom: 0;
}

.championImg img {
    display: block;
    margin: 0 auto;
    width: 140px;
    height: auto;
}

.GameEndScoreName {
    color: #004098;
    font-size: 60px;
    font-weight: bold;
}

.GameEndScoreCo {
    font-size: 55px;
    color: #575757;
}

.GameEndScore {
    font-size: 45px;
    color: #575757;
}

.GameEndScore span {
    font-size: 65px;
    color: #ff0000;
}
