﻿﻿﻿html{
	color:#000;
	background:#FFF;
}
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td{
	margin:0;
	padding:0;
}
table{
	border-collapse: collapse;
	border-spacing: 0;
}
fieldset, img{
	border: 0;
}
address, caption, cite, code, dfn, em, strong, th, var{
	font-style: normal;
	font-weight: normal;
}
li{
	list-style:none;
}
caption, th{
	text-align:left;
}
h1, h2, h3, h4, h5, h6{
	font-size: 100%;
	font-weight: normal;
}
q:before, q:after{
	content: '';
}
abbr, acronym{
	border: 0;
	font-variant: normal;
}
sup{
	vertical-align: text-top;
}
sub{
	vertical-align: text-bottom;
}
input, textarea, select{
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
}
input, textarea, select{
	*font-size: 100%;
}
legend{
	color: #000;
}
html, body{
	font-family: 'Press Start 2P', Tahoma, Verdana, Arial, Helvetica, sans-serif;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.clearfix:after{
	content: "/20";
	display: block;
	height: 0;
	overflow: hidden;
	clear: both;
}

.clearfix{
	zoom: 1;
}

html, body{
	width: 100%;
	height: 100%;
	background: #0b0b14;
}

body{
	position: relative;
	overflow: hidden;
}

em{
	display: none;
}

#extra, #view{
	position: absolute;
	left: 50%;
	top: 50%;
	width: 640px;
	height: 480px;
	margin: -240px 0 0 -320px;
	text-align: left;
	background: #fff;
	max-width: 100vw;
	max-height: 100vh;
	transform-origin: center center;
	transform: scale(var(--scale, 1));
	z-index: 5;
}

#view{
	display: block;
	background: transparent url(blank.gif) repeat 0 0;
	cursor: default;
	z-index: 20;
}

#extra{
	background: #000;
}

#extra .layer{
	position: absolute;
	left: 0;
	top: 0;
	width: 640px;
	height: 480px;
	z-index: 10;
}

#fork{
	display: block;
	position: absolute;
	right: 0;
	top: 0;
	width: 356px;
	height: 92px;
	cursor: pointer;
	background-image: url(fork.gif);
	z-index: 0;
}

#desc{
	width: 100%;
	position: absolute;
	left: 0;
	top: 50%;
	height: 80px;
	color: #00ff66;
	line-height: 40px;
	margin-top: 200px;
	text-align: center;
	font-size: 14px;
	font-family: 'Press Start 2P', monospace;
	text-shadow: 2px 2px 0px #000000;
	z-index: 10;
}

#desc a{
	color: #318fe1;
}

#browser{
	font-size: 14px;
	line-height: 16px;
}

#browser .b{
	color: #fff;
	font-weight: 700;
}

.game-modal{
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 100;
	justify-content: center;
	align-items: center;
}

.game-modal-overlay{
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(11, 11, 20, 0.75);
	backdrop-filter: blur(3px);
}

.game-modal-box{
	position: relative;
	width: 380px;
	max-width: 90vw;
	background: linear-gradient(160deg, #2a2418 0%, #3d3220 50%, #2a2418 100%);
	border: 2px solid rgba(252, 127, 12, 0.35);
	border-radius: 16px;
	padding: 28px 30px 24px;
	text-align: center;
	box-shadow: 0 0 60px rgba(252, 127, 12, 0.12), 0 8px 32px rgba(0, 0, 0, 0.55);
}

.game-modal-title{
	font-size: 20px;
	font-weight: bold;
	color: #fc7f0c;
	background: linear-gradient(180deg, #ffec53 0%, #fc7f0c 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 18px;
	font-family: '黑体', SimHei, 'Microsoft YaHei', sans-serif;
	letter-spacing: 2px;
}

.game-modal-content{
	font-size: 13px;
	color: #e8d5a3;
	line-height: 2.2;
	margin-bottom: 22px;
	font-family: '黑体', SimHei, 'Microsoft YaHei', sans-serif;
}

.game-modal-content p{
	margin: 8px 0;
}

.game-modal-btn{
	display: inline-block;
	padding: 12px 32px;
	font-size: 14px;
	font-weight: bold;
	color: #3d2410;
	background: linear-gradient(180deg, #ffec53 0%, #fc7f0c 100%);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	font-family: '黑体', SimHei, 'Microsoft YaHei', sans-serif;
	box-shadow: 0 4px 16px rgba(252, 127, 12, 0.35);
	transition: transform 0.15s, box-shadow 0.15s;
	margin: 5px;
	letter-spacing: 1px;
}

.game-modal-btn:hover{
	transform: translateY(-2px);
	box-shadow: 0 6px 22px rgba(252, 127, 12, 0.5);
}

.game-modal-btn:active{
	transform: translateY(1px);
	box-shadow: 0 2px 8px rgba(252, 127, 12, 0.3);
}

.game-modal-btn.cake-theme{
	background: linear-gradient(180deg, #ff99bb 0%, #f46ca1 100%);
	color: #ffffff;
	box-shadow: 0 4px 16px rgba(244, 108, 161, 0.35);
	animation: pulse 1.5s infinite;
}

.game-modal-btn.cake-theme:hover{
	box-shadow: 0 6px 22px rgba(244, 108, 161, 0.5);
}

@keyframes pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.04); }
}