/* ------------- Fenêtres en overlay (scores + initiales) ------------- */

.overlay {
	display: none;
	position: fixed;
	z-index: 10;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.9);
	color: #ddd;
	font-family: "Courier New", Courier, Monospace;
}

.overlay-content {
	position: relative;
	max-width: 640px;
	margin: 0 auto;
	padding: 70px 16px 40px;
	text-align: center;
}

.overlay .closebtn {
	position: absolute;
	top: 15px;
	right: 30px;
	font-size: 50px;
	line-height: 1;
	color: #818181;
	text-decoration: none;
	transition: color 0.3s;
}

.overlay .closebtn:hover, .overlay .closebtn:focus {
	color: #f1f1f1;
	text-decoration: none;
}

.overlay h2 {
	color: #ffd34e;
	font-size: 34px;
	font-weight: bold;
	letter-spacing: 4px;
	margin-bottom: 12px;
	text-shadow: 0 0 10px rgba(255, 211, 78, 0.5);
}

.overlay h3 {
	color: #81daf5;
	font-size: 18px;
	font-weight: bold;
	letter-spacing: 3px;
	margin: 35px 0 10px;
}

.overlay code {
	color: #fff;
	word-break: break-all;
}

.overlay button {
	font-family: inherit;
	cursor: pointer;
}

.grid-info {
	color: #999;
	font-size: 14px;
	margin-bottom: 20px;
}

/* --- tableau du top 5 --- */

.score-table, .other-table {
	margin: 0 auto;
	border-collapse: collapse;
	font-size: 22px;
}

.score-table th, .other-table th {
	color: #818181;
	font-size: 13px;
	letter-spacing: 2px;
	padding: 4px 14px;
}

.score-table td {
	padding: 6px 14px;
	color: #eee;
	font-weight: bold;
}

.score-table tr:nth-child(2) td { color: #ffd34e; }

.score-table tr.empty td { color: #555; }

.score-table tr.new td {
	color: #000;
	background-color: #ffd34e;
	animation: blink 0.8s steps(2, start) 4;
}

@keyframes blink {
	to { visibility: hidden; }
}

.other-table {
	font-size: 14px;
}

.other-table td {
	padding: 4px 10px;
	color: #bbb;
	text-align: left;
}

.other-table td.seed {
	max-width: 200px;
}

.other-table button {
	padding: 2px 10px;
}

/* --- saisie des initiales --- */

.final-time {
	color: #fff;
	font-size: 40px;
	font-weight: bold;
	margin: 5px 0 25px;
}

.initials {
	margin: 20px 0 30px;
}

.initials .slot {
	display: inline-block;
	margin: 0 8px;
	vertical-align: middle;
}

.initials .slot button {
	display: block;
	width: 60px;
	margin: 0 auto;
	padding: 4px 0;
	background: transparent;
	border: none;
	color: #818181;
	font-size: 22px;
}

.initials .slot button:hover {
	color: #fff;
}

.initials .letter {
	display: block;
	width: 60px;
	padding: 6px 0;
	border-bottom: 4px solid #555;
	color: #ddd;
	font-size: 56px;
	font-weight: bold;
	cursor: pointer;
}

.initials .slot.active .letter {
	color: #ffd34e;
	border-bottom-color: #ffd34e;
	animation: blink 1s steps(2, start) infinite;
}

.name-help {
	color: #777;
	font-size: 12px;
	margin-top: 18px;
	line-height: 1.6;
}

#nameOk {
	font-size: 18px;
	font-weight: bold;
	padding: 8px 30px;
}

#nameSkip {
	background: transparent;
	border: none;
	color: #818181;
	font-size: 13px;
	margin-left: 10px;
	text-decoration: underline;
}

@media only screen and (max-width: 650px) {
	.overlay h2 { font-size: 24px; }
	.score-table { font-size: 16px; }
	.score-table th, .score-table td { padding: 4px 6px; }
	.other-table { font-size: 12px; }
}
