﻿@charset "utf-8";
/**
 * 公共样式 — 手绘风（参考 hand-drawn-character-creator-v2.html）
 */
@font-face {
	font-family: 'Patrick Hand';
	src: url(../fonts/PatrickHand.woff2) format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
body, ul, ol, li, p, h1, h2, h3, h4, h5, h6, form, fieldset, table, th, td, img, div {
	margin: 0px;
	padding: 0px;
	border: 0px;
}
body {
	background: #f2ecdd;
	color: #2c2a25;
	font-size: 14px;
	font-family: 'Patrick Hand', 'Comic Sans MS', 'Segoe Print', 'Microsoft YaHei', cursive;
}
ul, ol {
	list-style-type: none;
}
input, textarea, select {
	vertical-align: middle;
	font-size: 14px;
	padding: 2px;
	font-family: 'Patrick Hand', 'Comic Sans MS', 'Segoe Print', 'Microsoft YaHei', cursive;
}
a, a:hover {
	text-decoration: none;
}
.clear {
	clear: both;
	display: block;
	font-size: 0px;
	line-height: 0px;
	margin: 0px;
	padding: 0px;
	border: 0px;
}
/**
 * page
 */
#donkeyJump {
	width: 480px;
	height: 800px;
	position: absolute;
	left: 0px;
	top: 0px;
	transform-origin: 0 0;
}
#donkeyJump .block {
	position: absolute;
	left: 0px;
	top: 0px;
	width: 480px;
	height: 800px;
}
#donkeyJump .background {
	background-color: #f2ecdd;
}
#donkeyJump .icon {
	background-image: url(../images/system/icon.png);
	background-repeat: no-repeat;
}
/**
 * 预备界面（首页）— 手绘风
 */
#gameCover {
	background-color: #f2ecdd;
}
#gameCover .block {
	background-color: #f2ecdd;
}
/* 首页大标题：手绘风 */
#coverTitle {
	position: absolute;
	left: 0;
	top: 60px;
	width: 480px;
	text-align: center;
	font-family: 'Patrick Hand', cursive;
	font-size: 64px;
	font-weight: 400;
	color: #c05a48;
	text-shadow: 3px 3px 0 #2c2a25;
	transform: rotate(-2deg);
	letter-spacing: 4px;
}
/* 手绘角色头像 */
#avatarBox {
	position: absolute;
	left: 20px;
	top: 160px;
	width: 440px;
	height: 380px;
	overflow: hidden;
}
#avatarBox canvas {
	display: block;
	width: 440px;
	height: 380px;
}
/* 姓名输入框 */
#nameField {
	position: absolute;
	left: 72px;
	top: 560px;
	width: 336px;
	height: 56px;
}
#nameField input {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 50%;
	margin: 0 auto;
	padding: 0 24px;
	border: 3px solid #2c2a25;
	border-radius: 14px 16px 12px 15px / 14px 12px 16px 15px;
	outline: none;
	background: #fffdf5;
	font-family: 'Patrick Hand', cursive;
	font-size: 26px;
	color: #2c2a25;
	box-shadow: 0 3px 0 #2c2a25;
}
#nameField input::placeholder {
	color: #2c2a25;
	opacity: 0.35;
}
#nameField input:focus {
	background: #ffffff;
	box-shadow: 0 4px 0 #2c2a25;
}
/* 声音按钮：仅显示一个喇叭 icon，开关状态切换图标（内联 SVG，纯手绘线条风格） */
#btnSound {
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	left: 16px;
	top: 24px;
	width: 48px;
	height: 48px;
	background: #f6f1e3;
	border: 3px solid #2c2a25;
	border-radius: 50%;
	box-shadow: 0 4px 0 #2c2a25;
	text-decoration: none;
}
#btnSound::before {
	content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232c2a25'><path d='M3 8v8h3l6 5V3L6 8H3z'/><path d='M15.5 9a4.5 4.5 0 0 1 0 6'/><path d='M13.7 5.8a7.5 7.5 0 0 1 0 12.4'/></svg>");
	width: 24px;
	height: 24px;
}
#btnSound.disabled {
	border-color: #8a8578;
	box-shadow: 0 4px 0 #8a8578;
	background: #efe9d8;
}
#btnSound.disabled::before {
	content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 8v8h3l6 5V3L6 8H3z' fill='%238a8578'/><path d='M16 6l6 12' stroke='%238a8578' stroke-width='2.2' stroke-linecap='round'/><path d='M22 6l-6 12' stroke='%238a8578' stroke-width='2.2' stroke-linecap='round'/></svg>");
	width: 24px;
	height: 24px;
}
/* 按钮区：开始 + 排行榜 左右同一行 */
#coverBtns {
	position: absolute;
	left: 40px;
	top: 650px;
	width: 400px;
	height: 100px;
}
#coverBtns a {
	display: block;
	position: absolute;
	top: 0;
	width: 180px;
	height: 80px;
	line-height: 80px;
	text-align: center;
	font-size: 38px;
	color: #2c2a25;
	background: #f6f1e3;
	border: 3px solid #2c2a25;
	border-radius: 18px 22px 16px 20px / 18px 16px 22px 20px;
	box-shadow: 0 5px 0 #2c2a25;
}
#coverBtns #btnPlay {
	left: 0;
	color: #c05a48;
	transform: rotate(-1.5deg);
}
#coverBtns #btnScore {
	left: 220px;
	color: #3f6f8e;
	transform: rotate(1deg);
}
#coverBtns a:hover {
	background: #fffdf5;
}
#coverBtns a:active {
	top: 3px;
	box-shadow: 0 2px 0 #2c2a25;
}
#progressText {
	display: block;
	position: absolute;
	left: 200px;
	top: 380px;
	font-size: 24px;
	color: #2c2a25;
	-webkit-transform: rotate(-4deg);
	-moz-transform: rotate(-4deg);
}
/**
 * 游戏主体
 */
#gameBody {
	display: none;
}
#gameCanvas canvas {
	position: absolute;
	left: 0px;
	top: 0px;
}
#btnPause {
	display: block;
	position: absolute;
	left: 380px;
	top: 730px;
	width: 80px;
	height: 50px;
	line-height: 50px;
	text-align: center;
	font-size: 28px;
	color: #2c2a25;
	background: #f6f1e3;
	border: 3px solid #2c2a25;
	border-radius: 14px 16px 12px 15px / 14px 12px 16px 15px;
	box-shadow: 0 4px 0 #2c2a25;
}
#number {
	position: absolute;
	left: 8px;
	top: 8px;
	width: 190px;
	padding-left: 66px;
	height: 128px;
	background-position: -21px -749px;
}
#number span {
	display: block;
	width: 16px;
	height: 24px;
	background-image: url(../images/system/icon.png);
	background-repeat: no-repeat;
	float: left;
	margin: 30px 3px 0px 0px;
}
#number .number0 {
	background-position: -8px -880px;
}
#number .number1 {
	background-position: -26px -880px;
}
#number .number2 {
	background-position: -44px -880px;
}
#number .number3 {
	background-position: -62px -880px;
}
#number .number4 {
	background-position: -80px -880px;
}
#number .number5 {
	background-position: -98px -880px;
}
#number .number6 {
	background-position: -116px -880px;
}
#number .number7 {
	background-position: -134px -880px;
}
#number .number8 {
	background-position: -152px -880px;
}
#number .number9 {
	background-position: -170px -880px;
}
#panelResume {
	position: absolute;
	left: 90px;
	top: 200px;
	width: 300px;
	height: 320px;
	background: #f6f1e3;
	border: 4px solid #2c2a25;
	border-radius: 20px 24px 18px 22px / 20px 18px 24px 22px;
	display: none;
	z-index: 50;
}
#resumeTitle {
	position: absolute;
	left: 0;
	top: 20px;
	width: 300px;
	text-align: center;
	font-family: 'Patrick Hand', cursive;
	font-size: 56px;
	color: #c05a48;
	text-shadow: 3px 3px 0 #2c2a25;
}
#btnResumeExit, #btnResume {
	display: block;
	position: absolute;
	top: 150px;
	width: 110px;
	height: 60px;
	line-height: 60px;
	text-align: center;
	font-size: 30px;
	color: #2c2a25;
	background: #fffdf5;
	border: 3px solid #2c2a25;
	border-radius: 14px 16px 12px 15px / 14px 12px 16px 15px;
	box-shadow: 0 4px 0 #2c2a25;
}
#btnResumeExit {
	left: 30px;
	color: #3f6f8e;
}
#btnResume {
	left: 160px;
	color: #c05a48;
}
#btnResumeExit:active, #btnResume:active {
	top: 153px;
	box-shadow: 0 1px 0 #2c2a25;
}
#beingReady {
	position: absolute;
	left: 46px;
	top: 346px;
	width: 388px;
	height: 108px;
	background-position: 0px 0px;
	display: none;
}
#beingGo {
	position: absolute;
	left: 130px;
	top: 355px;
	width: 220px;
	height: 90px;
	background-position: -4px -137px;
	display: none;
}
#canvasSkyLayer {
	background: #0D1635;
}
/**
 * 游戏结束 — 手绘风
 */
#gameOver {
	display: none;
	background-color: #f2ecdd;
}
#overTitle {
	position: absolute;
	left: 0;
	top: 180px;
	width: 480px;
	text-align: center;
	font-family: 'Patrick Hand', cursive;
	font-size: 64px;
	font-weight: 400;
	color: #c05a48;
	text-shadow: 3px 3px 0 #2c2a25;
	transform: rotate(-2deg);
}
/* 游戏结束画面：悲伤角色头像 */
#overAvatarBox {
	position: absolute;
	left: 160px;
	top: 235px;
	width: 160px;
	height: 160px;
	overflow: hidden;
}
#overAvatarBox canvas {
	display: block;
	width: 160px;
	height: 160px;
}
#name, #score {
	display: block;
	position: absolute;
	left: 0;
	width: 480px;
	text-align: center;
	font-family: 'Patrick Hand', cursive;
	font-size: 34px;
	color: #2c2a25;
}
#name {
	top: 400px;
}
#name:before {
	content: '名字：';
	color: #8a8578;
}
#score {
	top: 450px;
	color: #c05a48;
}
#score:before {
	content: '得分：';
	color: #8a8578;
}
/* 结算页按钮区：排行榜 / 再来一次 / 主页 */
#overBtns {
	position: absolute;
	left: 30px;
	top: 560px;
	width: 420px;
	height: 100px;
}
#overBtns a {
	display: block;
	position: absolute;
	top: 0;
	width: 126px;
	height: 72px;
	line-height: 72px;
	text-align: center;
	font-size: 30px;
	color: #2c2a25;
	background: #f6f1e3;
	border: 3px solid #2c2a25;
	border-radius: 16px 20px 14px 18px / 16px 14px 20px 18px;
	box-shadow: 0 5px 0 #2c2a25;
}
#overBtns #btnScore2 {
	left: 0;
	color: #3f6f8e;
	transform: rotate(-1deg);
}
#overBtns #btnRetry {
	left: 147px;
	color: #c05a48;
	transform: rotate(1deg);
}
#overBtns #btnHome {
	left: 294px;
	color: #6f7f3f;
	transform: rotate(-0.5deg);
}
#overBtns a:hover {
	background: #fffdf5;
}
#overBtns a:active {
	top: 3px;
	box-shadow: 0 2px 0 #2c2a25;
}
/**
 * 排行榜 — 手绘风
 */
#rankPanel {
	display: none;
	background-color: #f2ecdd;
}
#rankBox {
	position: absolute;
	left: 40px;
	top: 70px;
	width: 400px;
	height: 660px;
	background: #f2ecdd;
	border: 4px solid #2c2a25;
	border-radius: 20px 24px 18px 22px / 20px 18px 24px 22px;
	overflow: hidden;
	z-index: 999;
}
#rankTitle {
	position: absolute;
	left: 0;
	top: 0;
	width: 400px;
	height: 70px;
	line-height: 70px;
	text-align: center;
	font-family: 'Patrick Hand', cursive;
	font-size: 44px;
	font-weight: 400;
	color: #c05a48;
	text-shadow: 2px 2px 0 #2c2a25;
	border-bottom: 3px solid #2c2a25;
}
#rankList {
	position: absolute;
	left: 20px;
	top: 90px;
	width: 360px;
	height: 480px;
	overflow-y: auto;
}
.rankItem {
	position: relative;
	height: 50px;
	line-height: 50px;
	margin-bottom: 8px;
	padding: 0 16px;
	background: #fffdf5;
	border: 2px solid #2c2a25;
	border-radius: 12px 14px 10px 13px / 12px 10px 14px 13px;
	font-family: 'Patrick Hand', cursive;
	font-size: 26px;
	color: #2c2a25;
	overflow: hidden;
	white-space: nowrap;
}
.rankItem .rankNo {
	display: inline-block;
	width: 44px;
	text-align: center;
	font-weight: bold;
	color: #c05a48;
}
.rankItem .rankName {
	display: inline-block;
	max-width: 150px;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: bottom;
}
.rankItem .rankScore {
	position: absolute;
	right: 16px;
	top: 0;
	font-weight: bold;
	color: #3f6f8e;
}
.rankItem.top1 { background: #fff3c4; }
.rankItem.top2 { background: #f0f0f0; }
.rankItem.top3 { background: #f6e2cf; }
#rankEmpty {
	text-align: center;
	padding-top: 170px;
	font-family: 'Patrick Hand', cursive;
	font-size: 30px;
	color: #8a8578;
}
#btnRankBack {
	display: block;
	position: absolute;
	left: 100px;
	top: 592px;
	width: 200px;
	height: 54px;
	line-height: 54px;
	text-align: center;
	background: #f6f1e3;
	color: #c05a48;
	font-family: 'Patrick Hand', cursive;
	font-size: 30px;
	border-radius: 14px 16px 12px 15px / 14px 12px 16px 15px;
	text-decoration: none;
	border: 3px solid #2c2a25;
	box-shadow: 0 4px 0 #2c2a25;
}
#btnRankBack:hover {
	background: #fffdf5;
}
#btnRankBack:active {
	top: 595px;
	box-shadow: 0 1px 0 #2c2a25;
}
/**
 * 名字输入弹窗 — 手绘风
 */
#nameModal {
	display: none;
	background-color: rgba(242, 236, 221, 0.92);
	z-index: 100;
}
#nameModalBox {
	position: absolute;
	left: 60px;
	top: 230px;
	width: 360px;
	height: 300px;
	background: #f6f1e3;
	border: 4px solid #2c2a25;
	border-radius: 22px 26px 20px 24px / 22px 20px 26px 24px;
}
#nameModalTitle {
	position: absolute;
	left: 0;
	top: 0;
	width: 360px;
	height: 60px;
	line-height: 60px;
	text-align: center;
	font-family: 'Patrick Hand', cursive;
	font-size: 38px;
	font-weight: 400;
	color: #c05a48;
	text-shadow: 2px 2px 0 #2c2a25;
	border-bottom: 3px solid #2c2a25;
}
#nameInput {
	position: absolute;
	left: 50%;
	top: 90px;
	transform: translate(-50%, 0%);
	width: 300px;
	height: 52px;
	padding: 0 14px;
	font-family: 'Patrick Hand', cursive;
	font-size: 28px;
	color: #2c2a25;
	border: 3px solid #2c2a25;
	border-radius: 12px 14px 10px 13px / 12px 10px 14px 13px;
	background: #fffdf5;
	outline: none;
}
#nameModalScore {
	position: absolute;
	left: 30px;
	top: 160px;
	font-family: 'Patrick Hand', cursive;
	font-size: 26px;
	color: #c05a48;
}
#nameModalScore:before {
	content: '本局得分：';
	color: #8a8578;
}
#nameOk {
	display: block;
	position: absolute;
	left: 100px;
	top: 220px;
	width: 160px;
	height: 58px;
	line-height: 58px;
	text-align: center;
	background: #f6f1e3;
	color: #c05a48;
	font-family: 'Patrick Hand', cursive;
	font-size: 32px;
	border-radius: 16px 18px 14px 17px / 16px 14px 18px 17px;
	text-decoration: none;
	border: 3px solid #2c2a25;
	box-shadow: 0 4px 0 #2c2a25;
}
#nameOk:hover {
	background: #fffdf5;
}
#nameOk:active {
	top: 223px;
	box-shadow: 0 1px 0 #2c2a25;
}